hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-0
SELECT DISTINCT 63 DIV col1 AS col2 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-0
SELECT DISTINCT 63 / col1 AS col2 FROM tab2
----
0
1

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4
SELECT * FROM tab0 cor0 WHERE + 21 >= - - 76 * + + CAST( - + CAST( NULL AS SIGNED ) AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4
SELECT * FROM tab0 cor0 WHERE + 21 >= - - 76 * + + CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER )
----

query I rowsort
SELECT ALL 34 * + + ( - 75 ) + - 23 AS col2 FROM tab1 AS cor0
----
-2573
-2573
-2573

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

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

query I rowsort
SELECT - col2 + ( col1 ) AS col1 FROM tab0
----
-98
11
34

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-10
SELECT ALL CAST( + 82 AS SIGNED ) AS col0 FROM tab0
----
82
82
82

skipif mysql # not compatible
query I rowsort label-10
SELECT ALL CAST ( + 82 AS INTEGER ) AS col0 FROM tab0
----
82
82
82

query I rowsort
SELECT DISTINCT + 9 * + - col1 + + 3 * - col1 * - col2 * + - col1 FROM tab1 AS cor0
----
-4470
-451059
-56574

query I rowsort
SELECT - ( 69 ) FROM tab2 AS cor0
----
-69
-69
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-13
SELECT ALL - + ( - 66 ) * + col2 DIV + col2 AS col0 FROM tab1 AS cor0
----
66
66
66

skipif mysql # not compatible
query I rowsort label-13
SELECT ALL - + ( - 66 ) * + col2 / + col2 AS col0 FROM tab1 AS cor0
----
66
66
66

query I rowsort
SELECT col0 * - 33 + col2 FROM tab0
----
-2861
-3102
-448

onlyif mysql # aggregate syntax: 
query I rowsort label-15
SELECT - MIN( + - 13 ) + - 77 AS col1 FROM tab2 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-15
SELECT - MIN ( + - 13 ) + - 77 AS col1 FROM tab2 AS cor0
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-16
SELECT DISTINCT - + CAST( NULL AS SIGNED ) AS col1, col0 - + 58 FROM tab2 AS cor0
----
NULL
-12
NULL
17
NULL
6

skipif mysql # not compatible
query II rowsort label-16
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) AS col1, col0 - + 58 FROM tab2 AS cor0
----
NULL
-12
NULL
17
NULL
6

query I rowsort
SELECT - 6 * - col2 FROM tab0 AS cor0
----
282
594
60

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-18
SELECT - - col2 * col0 + + - 40, CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
1018
NULL
2520
NULL
4310
NULL

skipif mysql # not compatible
query II rowsort label-18
SELECT - - col2 * col0 + + - 40, CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
1018
NULL
2520
NULL
4310
NULL

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-20
SELECT + + col1 * - col0 / - col2 + - - CAST( NULL AS DECIMAL ) + - 95 * - - 98 col0, col2 col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-20
SELECT + + col1 * - col0 / - col2 + - - CAST ( NULL AS REAL ) + - 95 * - - 98 col0, col2 col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-26
SELECT - 55 AS col0, COUNT( * ) AS col0 FROM tab0
----
-55
3

skipif mysql # not compatible
query II rowsort label-26
SELECT - 55 AS col0, COUNT ( * ) AS col0 FROM tab0
----
-55
3

onlyif mysql # aggregate syntax: 
query II rowsort label-27
SELECT + 73 AS col2, + SUM( ALL 66 ) FROM tab1
----
73
198

skipif mysql # not compatible
query II rowsort label-27
SELECT + 73 AS col2, + SUM ( ALL 66 ) FROM tab1
----
73
198

query II rowsort
SELECT - col0, 4 * 83 AS col2 FROM tab0
----
-15
332
-87
332
-97
332

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

onlyif mysql # aggregate syntax: 
query I rowsort label-30
SELECT DISTINCT - COUNT( * ) * - 39 * + + 95 AS col1 FROM tab1 AS cor0
----
11115

skipif mysql # not compatible
query I rowsort label-30
SELECT DISTINCT - COUNT ( * ) * - 39 * + + 95 AS col1 FROM tab1 AS cor0
----
11115

query I rowsort
SELECT - col1 + 7 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-40
-7
2

onlyif mysql # aggregate syntax: 
query I rowsort label-32
SELECT ALL 76 - - ( - COUNT( * ) ) FROM tab1, tab1 cor0
----
67

skipif mysql # not compatible
query I rowsort label-32
SELECT ALL 76 - - ( - COUNT ( * ) ) FROM tab1, tab1 cor0
----
67

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND 49
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-35
SELECT ALL + 59 + + CAST( + col0 AS SIGNED ) col0 FROM tab1 AS cor0
----
110
144
150

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-35
SELECT ALL + 59 + + CAST ( + col0 AS INTEGER ) col0 FROM tab1 AS cor0
----
110
144
150

query I rowsort
SELECT + col1 + 63 FROM tab2 AS cor0 WHERE ( 45 ) >= ( - 43 )
----
114
130
140

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-37
SELECT DISTINCT + + col1 + - col0 AS col1, - CAST( - + col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-8
75
13
64
5
46

skipif mysql # not compatible
query II rowsort label-37
SELECT DISTINCT + + col1 + - col0 AS col1, - CAST ( - + col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-8
75
13
64
5
46

query I rowsort
SELECT 85 FROM tab1 AS cor0 WHERE + col2 * + - col1 * + + col1 IS NULL
----

query II rowsort
SELECT ALL col2, + col0 * - - 25 AS col0 FROM tab0
----
10
2175
47
375
99
2425

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

query I rowsort
SELECT 42 * col0 FROM tab2
----
1932
2688
3150

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

query I rowsort
SELECT ALL - col2 AS col1 FROM tab2 AS cor0 WHERE - col1 * - 80 * + 0 * col1 * - 29 IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-44
SELECT MIN ( DISTINCT + col1 ) + - COUNT ( * ) FROM tab1 AS cor0
----
2

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-49
SELECT col1 * + - 46 * + CAST( - + 33 AS SIGNED ) FROM tab1 AS cor0
----
21252
71346
7590

skipif mysql # not compatible
query I rowsort label-49
SELECT col1 * + - 46 * + CAST ( - + 33 AS INTEGER ) FROM tab1 AS cor0
----
21252
71346
7590

query I rowsort
SELECT ALL 61 * - - col0 FROM tab1 AS cor0
----
3111
5185
5551

query I rowsort
SELECT 3 * - col2 AS col0 FROM tab2 AS cor0
----
-120
-174
-69

query I rowsort
SELECT - 7 * - col1 AS col1 FROM tab2 WHERE NOT - + col1 * 42 IS NOT NULL
----

query I rowsort
SELECT AVG ( - 92 ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-54
SELECT col2 AS col0, - 95 DIV 58 AS col0 FROM tab0 AS cor0
----
10
-1
47
-1
99
-1

skipif mysql # not compatible
query II rowsort label-54
SELECT col2 AS col0, - 95 / 58 AS col0 FROM tab0 AS cor0
----
10
-1
47
-1
99
-1

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 * + 61 * + col1 >= + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-57
SELECT ALL - - MIN( col2 ) + ( - 46 ) AS col2 FROM tab0 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-57
SELECT ALL - - MIN ( col2 ) + ( - 46 ) AS col2 FROM tab0 AS cor0
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-58
SELECT + CAST( - col2 AS SIGNED ) + + 37 + + + col2 + + 28 FROM tab1 AS cor0
----
65
65
65

skipif mysql # not compatible
query I rowsort label-58
SELECT + CAST ( - col2 AS INTEGER ) + + 37 + + + col2 + + 28 FROM tab1 AS cor0
----
65
65
65

query I rowsort
SELECT col0 * - 10 + - + col0 + col0 * - + 50 + + col0 * + col0 + - col1 * + - 0 AS col2 FROM tab1 AS cor0
----
-510
2040
2730

query I rowsort
SELECT - col1 + + col1 * - - col0 FROM tab1 AS cor0
----
420
4230
700

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + 77 col0 FROM tab2
----
19
37
54

onlyif mysql # DIV for integer division: 
query I rowsort label-63
SELECT 11 DIV 24 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-63
SELECT 11 / 24 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT col1 * 14 AS col1 FROM tab2
----
1078
714
938

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

query I rowsort
SELECT + 21 - - 4 - - col1 FROM tab2 AS cor0
----
102
76
92

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-68
SELECT ALL - CAST( col1 AS SIGNED ) + - - col1 AS col1, col0 FROM tab1
----
0
51
0
85
0
91

skipif mysql # not compatible
query II rowsort label-68
SELECT ALL - CAST ( col1 AS INTEGER ) + - - col1 AS col1, col0 FROM tab1
----
0
51
0
85
0
91

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

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

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

query I rowsort
SELECT + col1 * - col1 + col1 + - col2 + col0 FROM tab1 AS cor0
----
-2139
-227
6

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

onlyif mysql # DIV for integer division: 
query I rowsort label-73
SELECT + col0 DIV + + col0 FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-73
SELECT + col0 / + + col0 FROM tab2 cor0
----
1
1
1

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

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

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

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

query I rowsort
SELECT ALL - - col0 + + col0 + - + 0 FROM tab0 AS cor0
----
174
194
30

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

query I rowsort
SELECT 75 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

onlyif mysql # DIV for integer division: 
query I rowsort label-79
SELECT - col1 + col1 DIV - col1 FROM tab2
----
-52
-68
-78

skipif mysql # not compatible
query I rowsort label-79
SELECT - col1 + col1 / - col1 FROM tab2
----
-52
-68
-78

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 * - - col1 * + col0, col1 + + ( - - 23 ) col1 FROM tab2 cor0
----
-119646
74
-336675
90
-379456
100

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

query I rowsort
SELECT DISTINCT + 5 + - - col2 FROM tab0 AS cor0
----
104
15
52

query I rowsort
SELECT ALL col1 - 40 FROM tab1 cor0
----
-26
-35
7

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

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

query III rowsort
SELECT * FROM tab1 WHERE col2 >= col1 + + 28 * col0 - + col2 - col2
----

query I rowsort
SELECT DISTINCT - col0 + - + col0 FROM tab0
----
-174
-194
-30

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

skipif mysql # not compatible
query I rowsort label-89
SELECT ALL 68 + - - COUNT ( * ) + - COUNT ( * ) FROM tab0
----
68

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

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

query II rowsort
SELECT + 87 + col0 AS col2, - 46 FROM tab2
----
133
-46
151
-46
162
-46

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

onlyif mysql # DIV for integer division: 
query I rowsort label-93
SELECT ALL col1 DIV - - col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-93
SELECT ALL col1 / - - col1 FROM tab0
----
1
1
1

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-95
SELECT + 14 AS col2 FROM tab1 cor0 WHERE + CAST( + col1 AS SIGNED ) / + 87 + 63 IS NULL
----

skipif mysql # not compatible
query I rowsort label-95
SELECT + 14 AS col2 FROM tab1 cor0 WHERE + CAST ( + col1 AS INTEGER ) / + 87 + 63 IS NULL
----

query I rowsort
SELECT DISTINCT col0 * + 22 + - col2 FROM tab2 AS cor0
----
1368
1592
989

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 20 * - 5 col1 FROM tab1 AS cor0
----
-100
-100
-100

onlyif mysql # DIV for integer division: 
query I rowsort label-100
SELECT 40 DIV col1 FROM tab0 cor0
----
0
1
40

skipif mysql # not compatible
query I rowsort label-100
SELECT 40 / col1 FROM tab0 cor0
----
0
1
40

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

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 * - 81 + + col1 - + 7 > NULL
----

query I rowsort
SELECT DISTINCT 20 FROM tab2 WHERE NOT NULL NOT BETWEEN + + 79 AND + - col2
----

query I rowsort
SELECT - 92 + - ( + col0 ) * col0 AS col2 FROM tab0
----
-317
-7661
-9501

onlyif mysql # aggregate syntax: 
query I rowsort label-105
SELECT 32 * + ( + + COUNT( * ) ) + - COUNT( * ) FROM tab2
----
93

skipif mysql # not compatible
query I rowsort label-105
SELECT 32 * + ( + + COUNT ( * ) ) + - COUNT ( * ) FROM tab2
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-106
SELECT - col1, + col1 * - + col1 AS col1 FROM tab2 cor0 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-106
SELECT - col1, + col1 * - + col1 AS col1 FROM tab2 cor0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-108
SELECT ALL CAST( + col0 AS SIGNED ) + - + col0 + + 8 FROM tab1 AS cor0
----
8
8
8

skipif mysql # not compatible
query I rowsort label-108
SELECT ALL CAST ( + col0 AS INTEGER ) + - + col0 + + 8 FROM tab1 AS cor0
----
8
8
8

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-110
SELECT + + CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE + 26 < ( - 62 )
----

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

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

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

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT + 27 IS NULL OR - - col0 BETWEEN NULL AND NULL
----
23
40
58

query I rowsort
SELECT - - 47 + + col1 AS col0 FROM tab1 AS cor0
----
52
61
94

query I rowsort
SELECT + - 36 * - - ( - col1 ) + + - col2 AS col2 FROM tab0 AS cor0
----
-63
2869
746

query II rowsort
SELECT - col1 + + + 76, col0 FROM tab1 AS cor0
----
29
91
62
51
71
85

query I rowsort
SELECT 40 + col1 * + col2 AS col1 FROM tab0 AS cor0
----
139
250
3847

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

skipif mysql # not compatible
query I rowsort label-119
SELECT CAST ( NULL AS INTEGER ) * + ( - col0 ) + - 73 * - col0 + - 34 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 + 29 FROM tab2 AS cor0
----
106
80
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-121
SELECT DISTINCT + CAST( - + 37 AS SIGNED ) * - 83 + + + ( col0 ) + col2, + col2 AS col0 FROM tab0
----
3133
47
3168
10
3267
99

skipif mysql # not compatible
query II rowsort label-121
SELECT DISTINCT + CAST ( - + 37 AS INTEGER ) * - 83 + + + ( col0 ) + col2, + col2 AS col0 FROM tab0
----
3133
47
3168
10
3267
99

query I rowsort
SELECT ALL col1 - - 62 FROM tab0
----
143
63
83

onlyif mysql # aggregate syntax: 
query I rowsort label-123
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0 WHERE + ( 89 ) + + + col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-123
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0 WHERE + ( 89 ) + + + col2 IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT ( 82 ) - + + 23 FROM tab0
----
59

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

onlyif mysql # DIV for integer division: 
query I rowsort label-126
SELECT ALL ( - col2 ) * + col2 + - col2 - col2 DIV - - ( - col1 ) AS col1 FROM tab2
----
-1640
-3422
-552

skipif mysql # not compatible
query I rowsort label-126
SELECT ALL ( - col2 ) * + col2 + - col2 - col2 / - - ( - col1 ) AS col1 FROM tab2
----
-1640
-3422
-552

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

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

query I rowsort
SELECT 73 * + col1 + + - col2 - - col2 + col0 - + + 13 FROM tab0 AS cor0
----
157
1607
5915

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

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

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

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

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

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

query II rowsort
SELECT DISTINCT + col2 AS col2, + col0 + col1 * col1 FROM tab2
----
23
2647
40
5993
58
4564

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

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

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

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

query II rowsort
SELECT - col2 AS col2, col0 * + + 9 FROM tab1 AS cor0
----
-59
765
-68
819
-96
459

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

onlyif mysql # DIV for integer division: 
query I rowsort label-139
SELECT DISTINCT + 61 DIV col1 AS col0 FROM tab0 AS cor0
----
0
2
61

skipif mysql # not compatible
query I rowsort label-139
SELECT DISTINCT + 61 / col1 AS col0 FROM tab0 AS cor0
----
0
2
61

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

query I rowsort
SELECT - 43 * - col1 AS col2 FROM tab2
----
2193
2881
3311

query II rowsort
SELECT ALL col1 * col1, + col1 FROM tab0 WHERE NOT NULL BETWEEN - col0 AND NULL
----

query I rowsort
SELECT 2 * + col1 FROM tab1
----
10
28
94

query III rowsort
SELECT * FROM tab0 WHERE NOT + 85 + - ( - + 50 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-145
SELECT - CAST( col2 AS SIGNED ) AS col2, - col1 col0 FROM tab0
----
-10
-21
-47
-81
-99
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-145
SELECT - CAST ( col2 AS INTEGER ) AS col2, - col1 col0 FROM tab0
----
-10
-21
-47
-81
-99
-1

query I rowsort
SELECT 64 * 50 FROM tab0, tab0 AS cor0
----
9 values hashing to f8ed911b57331c4cf52f0fae7ceba87c

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-147
SELECT MAX( ALL - + CAST( NULL AS DECIMAL ) ) / + COUNT( * ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-147
SELECT MAX ( ALL - + CAST ( NULL AS REAL ) ) / + COUNT ( * ) AS col2 FROM tab0
----
NULL

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

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

query I rowsort
SELECT DISTINCT col0 + - 65 * + col2 FROM tab0 AS cor0
----
-3040
-563
-6338

query I rowsort
SELECT - ( + 14 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d321461994ba49c3a70fa6373032fc94

onlyif mysql # aggregate syntax: 
query I rowsort label-151
SELECT + 7 + MIN( DISTINCT + + 92 ) AS col1 FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-151
SELECT + 7 + MIN ( DISTINCT + + 92 ) AS col1 FROM tab1
----
99

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-154
SELECT + - COUNT( * ) FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND ( - ( + col0 ) )
----
0

skipif mysql # not compatible
query I rowsort label-154
SELECT + - COUNT ( * ) FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND ( - ( + col0 ) )
----
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 65 - - 86 col1 FROM tab1 AS cor0
----
151
151
151

query I rowsort
SELECT DISTINCT + 51 + col1 FROM tab0
----
132
52
72

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-158
SELECT * FROM tab0 WHERE ( - ( - 38 ) ) IN ( + + col1, + col0 + + col1 + + 11 * - 84, - ( col2 ), 30 + col0 - - CAST( - col2 AS SIGNED ) + - - 39, + col0, + CAST( NULL AS SIGNED ) + col1 * - - col0, - + col0 )
----

skipif mysql # not compatible
query III rowsort label-158
SELECT * FROM tab0 WHERE ( - ( - 38 ) ) IN ( + + col1, + col0 + + col1 + + 11 * - 84, - ( col2 ), 30 + col0 - - CAST ( - col2 AS INTEGER ) + - - 39, + col0, + CAST ( NULL AS INTEGER ) + col1 * - - col0, - + col0 )
----

query I rowsort
SELECT ( - col0 ) * + - 32 * ( - + col2 ) AS col0 FROM tab2
----
-139200
-33856
-81920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-160
SELECT DISTINCT - 25 * 14 * - CAST( + + COUNT( * ) AS SIGNED ) * ( - MIN( 88 ) ) AS col0 FROM tab1
----
-92400

skipif mysql # not compatible
query I rowsort label-160
SELECT DISTINCT - 25 * 14 * - CAST ( + + COUNT ( * ) AS INTEGER ) * ( - MIN ( 88 ) ) AS col0 FROM tab1
----
-92400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + ( col2 ) + ( col0 ) col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
1104
2624
4425

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

query II rowsort
SELECT - col0 * - 87 AS col1, + 67 FROM tab0 AS cor0
----
1305
67
7569
67
8439
67

onlyif mysql # DIV for integer division: 
query I rowsort label-164
SELECT + 43 DIV - col1 AS col2 FROM tab0 AS cor0
----
-2
-43
0

skipif mysql # not compatible
query I rowsort label-164
SELECT + 43 / - col1 AS col2 FROM tab0 AS cor0
----
-2
-43
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-166
SELECT + MIN( + + CAST( + + 1 AS SIGNED ) ) col1 FROM tab1
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-166
SELECT + MIN ( + + CAST ( + + 1 AS INTEGER ) ) col1 FROM tab1
----
1

query I rowsort
SELECT DISTINCT 64 AS col1 FROM tab1, tab2 AS cor0
----
64

query I rowsort
SELECT - 4 + + - 28 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

query I rowsort
SELECT 97 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - ( + 90 ) = + 90
----

onlyif mysql # aggregate syntax: 
query I rowsort label-171
SELECT + + SUM( ALL - - 81 ) + + + COUNT( * ) FROM tab1 AS cor0
----
246

skipif mysql # not compatible
query I rowsort label-171
SELECT + + SUM ( ALL - - 81 ) + + + COUNT ( * ) FROM tab1 AS cor0
----
246

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 86 NOT BETWEEN + 66 * - + col1 AND + col2
----
15
81
47
87
21
10

query II rowsort
SELECT ALL - - col1 + 54, col2 AS col1 FROM tab1 AS cor0
----
101
68
59
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-178
SELECT + MAX( + 47 ) FROM tab2 cor0
----
47

skipif mysql # not compatible
query I rowsort label-178
SELECT + MAX ( + 47 ) FROM tab2 cor0
----
47

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - ( 81 ) > 24
----

query I rowsort
SELECT - col0 + - col1 + - 51 AS col0 FROM tab1 AS cor0
----
-116
-141
-189

query III rowsort
SELECT * FROM tab0 cor0 WHERE col1 NOT BETWEEN NULL AND + col0
----
15
81
47

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-185
SELECT + + col0 + CAST( + 59 AS SIGNED ) + + col2 + + 55, col0 * + + col2 AS col1 FROM tab1 cor0
----
258
5015
261
4896
273
6188

skipif mysql # not compatible
query II rowsort label-185
SELECT + + col0 + CAST ( + 59 AS INTEGER ) + + col2 + + 55, col0 * + + col2 AS col1 FROM tab1 cor0
----
258
5015
261
4896
273
6188

query I rowsort
SELECT DISTINCT - + col0 + - col2 * + 63 * 16 AS col1 FROM tab0 AS cor0
----
-10167
-47391
-99889

query II rowsort
SELECT - + ( + 42 ), - col1 AS col0 FROM tab1 AS cor0
----
-42
-14
-42
-47
-42
-5

query I rowsort
SELECT ALL ( col0 ) * + + ( col2 ) - + - ( - col2 ) AS col2 FROM tab2 AS cor0
----
1035
2520
4292

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

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

query II rowsort
SELECT ALL col0, - 65 * - col1 FROM tab2
----
46
3315
64
5005
75
4355

query I rowsort
SELECT ( 30 ) AS col2 FROM tab1
----
30
30
30

query II rowsort
SELECT DISTINCT col2 AS col0, + 94 FROM tab0 AS cor0
----
10
94
47
94
99
94

query II rowsort
SELECT ( 91 ) * - col0 AS col0, - col2 AS col1 FROM tab2 AS cor0
----
-4186
-23
-5824
-40
-6825
-58

query I rowsort
SELECT ALL - 29 * - col2 AS col0 FROM tab2 AS cor0
----
1160
1682
667

onlyif mysql # DIV for integer division: 
query I rowsort label-196
SELECT - 62 DIV ( + 52 * col1 ) + 30 * - col1 AS col2 FROM tab1
----
-1410
-150
-420

skipif mysql # not compatible
query I rowsort label-196
SELECT - 62 / ( + 52 * col1 ) + 30 * - col1 AS col2 FROM tab1
----
-1410
-150
-420

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NOT + col0 / col1 = col0 * - 95
----
14
47
5

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-199
SELECT DISTINCT - COUNT ( ALL - col1 ) col0 FROM tab1
----
-3

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN ( NULL ) AND - 54
----

onlyif mysql # aggregate syntax: 
query I rowsort label-202
SELECT COUNT( * ) + 44 FROM tab2
----
47

skipif mysql # not compatible
query I rowsort label-202
SELECT COUNT ( * ) + 44 FROM tab2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-203
SELECT ALL + 94 + - SUM( 89 ) AS col1 FROM tab1
----
-173

skipif mysql # not compatible
query I rowsort label-203
SELECT ALL + 94 + - SUM ( 89 ) AS col1 FROM tab1
----
-173

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

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

query I rowsort
SELECT + ( - 32 ) + col2 AS col1 FROM tab2
----
-9
26
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 + 85 col1 FROM tab0
----
131
131
131

query I rowsort
SELECT ALL + col2 FROM tab2 WHERE NOT - col0 + col0 BETWEEN - col0 AND ( - col0 )
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-208
SELECT DISTINCT MIN( 38 ) AS col2 FROM tab1 WHERE NOT - col1 NOT BETWEEN NULL AND ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-208
SELECT DISTINCT MIN ( 38 ) AS col2 FROM tab1 WHERE NOT - col1 NOT BETWEEN NULL AND ( NULL )
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( ( col1 ) )
----

query I rowsort
SELECT DISTINCT - 35 * + col0 AS col2 FROM tab1
----
-1785
-2975
-3185

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-212
SELECT col1 * - CAST( - col2 AS SIGNED ) - 81 FROM tab2
----
1092
2999
3805

skipif mysql # not compatible
query I rowsort label-212
SELECT col1 * - CAST ( - col2 AS INTEGER ) - 81 FROM tab2
----
1092
2999
3805

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

query I rowsort
SELECT 76 * - col0 - col1 FROM tab1
----
-3890
-6465
-6963

query I rowsort
SELECT - 80 + + col0 * + col0 FROM tab0 WHERE NOT + col2 * - 99 + col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( ( col1 ) ) col2 FROM tab2
----
-51
-67
-77

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

query I rowsort
SELECT - ( - 47 ) FROM tab2
----
47
47
47

onlyif mysql # aggregate syntax: 
query I rowsort label-219
SELECT COUNT( * ) * - 44 FROM tab0
----
-132

skipif mysql # not compatible
query I rowsort label-219
SELECT COUNT ( * ) * - 44 FROM tab0
----
-132

query I rowsort
SELECT DISTINCT + col0 FROM tab2 WHERE ( NULL ) IN ( 82 )
----

query I rowsort
SELECT DISTINCT 48 * 10 AS col2 FROM tab2 AS cor0
----
480

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

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

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

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

query I rowsort
SELECT + 30 FROM tab0 AS cor0 WHERE ( col0 ) <= + col1
----
30

query I rowsort
SELECT ALL + 63 * 41 AS col0 FROM tab1 AS cor0 WHERE + col2 IS NULL
----

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

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

query I rowsort
SELECT ALL + col0 * - col2 - col1 AS col1 FROM tab1 AS cor0
----
-4910
-5020
-6235

onlyif mysql # aggregate syntax: 
query I rowsort label-229
SELECT ALL COUNT( * ) + + 50 AS col1 FROM tab1 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-229
SELECT ALL COUNT ( * ) + + 50 AS col1 FROM tab1 AS cor0
----
53

query I rowsort
SELECT DISTINCT col2 * col0 - col1 AS col1 FROM tab0
----
624
849
9602

onlyif mysql # aggregate syntax: 
query I rowsort label-231
SELECT ALL 21 - - MIN( + col0 ) FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-231
SELECT ALL 21 - - MIN ( + col0 ) FROM tab0
----
36

query I rowsort
SELECT + 1 * + 45 FROM tab2
----
45
45
45

query I rowsort
SELECT ALL - 78 * + col2 FROM tab1
----
-4602
-5304
-7488

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

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

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

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

query I rowsort
SELECT - col2 * col2 FROM tab0 cor0 WHERE NOT NULL < NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-240
SELECT + COUNT( DISTINCT col1 ) + AVG ( DISTINCT + 63 ) * - 17 col0 FROM tab2 cor0 WHERE NOT col0 + - col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-240
SELECT + COUNT ( DISTINCT col1 ) + AVG ( DISTINCT + 63 ) * - 17 col0 FROM tab2 cor0 WHERE NOT col0 + - col2 IS NOT NULL
----
NULL

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

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

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

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

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

query I rowsort
SELECT + col2 * 3 AS col2 FROM tab0 AS cor0
----
141
297
30

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 > - 47
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 37 AS col2 FROM tab0 WHERE col0 > 45
----
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col2 FROM tab1 WHERE col0 + col2 * 39 IN ( - 95 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-249
SELECT + COUNT( col0 ) FROM tab1 WHERE ( NULL ) = col0 OR col0 * ( 96 * + col1 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-249
SELECT + COUNT ( col0 ) FROM tab1 WHERE ( NULL ) = col0 OR col0 * ( 96 * + col1 ) IS NOT NULL
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + 92 + + col0 ) BETWEEN NULL AND + 76 + 80
----
75
67
58

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 = ( + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-253
SELECT DISTINCT + SUM( ALL col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( + 35 ) NOT BETWEEN CAST( 68 AS DECIMAL ) / 13 AND + CAST( col0 AS SIGNED )
----
223

skipif mysql # not compatible
query I rowsort label-253
SELECT DISTINCT + SUM ( ALL col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( + 35 ) NOT BETWEEN CAST ( 68 AS REAL ) / 13 AND + CAST ( col0 AS INTEGER )
----
223

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

onlyif mysql # DIV for integer division: 
query I rowsort label-255
SELECT col2 DIV - + col1 + col2 DIV col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-255
SELECT col2 / - + col1 + col2 / col1 FROM tab2 cor0
----
0
0
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-256
SELECT - - 61 col2, COUNT ( * ) FROM tab0 AS cor0
----
61
3

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

skipif mysql # not compatible
query III rowsort label-257
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( CAST ( - 72 AS REAL ) )
----

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-260
SELECT DISTINCT 4 AS col0, SUM( - 39 ) * 63 AS col2 FROM tab0 AS cor0
----
4
-7371

skipif mysql # not compatible
query II rowsort label-260
SELECT DISTINCT 4 AS col0, SUM ( - 39 ) * 63 AS col2 FROM tab0 AS cor0
----
4
-7371

onlyif mysql # aggregate syntax: 
query I rowsort label-261
SELECT + COUNT( * ) + 57 * - - 31 FROM tab2 AS cor0
----
1770

skipif mysql # not compatible
query I rowsort label-261
SELECT + COUNT ( * ) + 57 * - - 31 FROM tab2 AS cor0
----
1770

query I rowsort
SELECT + col1 * + - 99 + - - 3 * - col2 + - col0 FROM tab1 AS cor0
----
-1725
-4948
-757

query I rowsort
SELECT - col0 * col1 * col0 + - col1 FROM tab0 AS cor0
----
-158970
-18306
-9410

query II rowsort
SELECT DISTINCT - col0 AS col0, + ( - 44 ) AS col0 FROM tab2 AS cor0
----
-46
-44
-64
-44
-75
-44

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-267
SELECT + 31 * + MAX( ALL + + col2 ) + + SUM( ALL - col0 ) AS col2 FROM tab1
----
2749

skipif mysql # not compatible
query I rowsort label-267
SELECT + 31 * + MAX ( ALL + + col2 ) + + SUM ( ALL - col0 ) AS col2 FROM tab1
----
2749

query I rowsort
SELECT col2 FROM tab2 WHERE ( NULL ) <> NULL
----

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

query I rowsort
SELECT DISTINCT col1 + + 40 - + + 34 FROM tab0
----
27
7
87

query III rowsort
SELECT * FROM tab2 WHERE NULL <> - 81 / + ( - 40 ) * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-272
SELECT ALL - COUNT( * ) + - MIN( col0 ) - - - 0 + 86 * - 51 FROM tab1
----
-4440

skipif mysql # not compatible
query I rowsort label-272
SELECT ALL - COUNT ( * ) + - MIN ( col0 ) - - - 0 + 86 * - 51 FROM tab1
----
-4440

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

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

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

query I rowsort
SELECT ALL 58 + col2 AS col1 FROM tab1 AS cor0
----
117
126
154

query I rowsort
SELECT - col1 AS col0 FROM tab2 WHERE - col1 NOT BETWEEN + col1 AND NULL
----
-51
-67
-77

query I rowsort
SELECT DISTINCT 44 * 13 AS col2 FROM tab2
----
572

query I rowsort
SELECT DISTINCT - col2 * 96 AS col0 FROM tab2
----
-2208
-3840
-5568

onlyif mysql # DIV for integer division: 
query I rowsort label-279
SELECT ALL + 35 DIV + - col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-279
SELECT ALL + 35 / + - col0 FROM tab1
----
0
0
0

query I rowsort
SELECT ( + ( - col0 ) ) * + col1 * 59 FROM tab1
----
-25075
-252343
-42126

query II rowsort
SELECT - col2 AS col0, 85 + col2 * - col0 * 24 FROM tab2 AS cor0
----
-23
-25307
-40
-61355
-58
-104315

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col1, 54 AS col2 FROM tab1 cor0
----
14
54
47
54
5
54

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 <> + + col2
----

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

skipif mysql # not compatible
query I rowsort label-285
SELECT - SUM ( + 80 ) * - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

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

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

query I rowsort
SELECT DISTINCT - col0 / + col2 FROM tab0 WHERE ( NOT + ( + 79 ) >= 58 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-288
SELECT col2 DIV - - 69 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-288
SELECT col2 / - - 69 FROM tab0
----
0
0
1

query I rowsort
SELECT - 7 * 9 AS col2 FROM tab1 WHERE NOT ( + col0 ) IS NOT NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-291
SELECT DISTINCT + 45 DIV + 52 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-291
SELECT DISTINCT + 45 / + 52 AS col2 FROM tab2
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-293
SELECT ALL COUNT( * ) + 98 AS col0 FROM tab1 AS cor0 WHERE NULL <> ( + col1 )
----
98

skipif mysql # not compatible
query I rowsort label-293
SELECT ALL COUNT ( * ) + 98 AS col0 FROM tab1 AS cor0 WHERE NULL <> ( + col1 )
----
98

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 80 + + ( - - col2 ) <> - - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-299
SELECT ALL + 45 DIV + col2 + 89 AS col0, 23 AS col1 FROM tab2 AS cor0
----
89
23
90
23
90
23

skipif mysql # not compatible
query II rowsort label-299
SELECT ALL + 45 / + col2 + 89 AS col0, 23 AS col1 FROM tab2 AS cor0
----
89
23
90
23
90
23

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

onlyif mysql # aggregate syntax: 
query I rowsort label-301
SELECT ALL + COUNT( * ) + + 33 * 62 AS col2 FROM tab0 cor0
----
2049

skipif mysql # not compatible
query I rowsort label-301
SELECT ALL + COUNT ( * ) + + 33 * 62 AS col2 FROM tab0 cor0
----
2049

onlyif mysql # aggregate syntax: 
query I rowsort label-302
SELECT - ( + MIN( + 12 ) ) FROM tab0 cor0
----
-12

skipif mysql # not compatible
query I rowsort label-302
SELECT - ( + MIN ( + 12 ) ) FROM tab0 cor0
----
-12

query I rowsort
SELECT ALL - 74 * 33 * 84 FROM tab1
----
-205128
-205128
-205128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-304
SELECT - CAST( - + MAX( + - 55 ) AS SIGNED ) - - COUNT( * ) FROM tab0
----
-52

skipif mysql # not compatible
query I rowsort label-304
SELECT - CAST ( - + MAX ( + - 55 ) AS INTEGER ) - - COUNT ( * ) FROM tab0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-305
SELECT ALL COUNT( * ) - - MAX( DISTINCT col0 ) FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-305
SELECT ALL COUNT ( * ) - - MAX ( DISTINCT col0 ) FROM tab1
----
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col0 * + + col2 - ( ( + 19 ) ) col2 FROM tab1
----
25056
290817
68525

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - 53 col1 FROM tab2
----
-7
11
22

query I rowsort
SELECT - 55 + - col0 * 32 FROM tab0
----
-2839
-3159
-535

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-310
SELECT ALL - - 83 DIV + col1 + CAST( + col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
13
182
48

skipif mysql # not compatible
query I rowsort label-310
SELECT ALL - - 83 / + col1 + CAST ( + col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
13
182
48

onlyif mysql # DIV for integer division: 
query II rowsort label-311
SELECT ALL - 6 DIV - col0, + col1 + 25 AS col0 FROM tab0 AS cor0
----
0
106
0
26
0
46

skipif mysql # not compatible
query II rowsort label-311
SELECT ALL - 6 / - col0, + col1 + 25 AS col0 FROM tab0 AS cor0
----
0
106
0
26
0
46

query I rowsort
SELECT - 85 AS col2 FROM tab1 cor0
----
-85
-85
-85

query I rowsort
SELECT ALL + col0 * - ( - col0 ) + + + 27 * + col2 AS col2 FROM tab0 AS cor0
----
12082
1494
7839

query II rowsort
SELECT ALL + - 51 * 4, col0 FROM tab2 AS cor0
----
-204
46
-204
64
-204
75

query I rowsort
SELECT ALL - col2 * - 17 AS col0 FROM tab1 AS cor0
----
1003
1156
1632

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-316
SELECT - COUNT( * ) * + 76 AS col1, CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
-228
NULL

skipif mysql # not compatible
query II rowsort label-316
SELECT - COUNT ( * ) * + 76 AS col1, CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
-228
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-317
SELECT ALL 13 * COUNT( * ) FROM tab1
----
39

skipif mysql # not compatible
query I rowsort label-317
SELECT ALL 13 * COUNT ( * ) FROM tab1
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-318
SELECT ALL * FROM tab1 WHERE NOT + col0 IN ( + 7 * - + CAST( NULL AS SIGNED ) + ( + + col2 ) )
----

skipif mysql # not compatible
query III rowsort label-318
SELECT ALL * FROM tab1 WHERE NOT + col0 IN ( + 7 * - + CAST ( NULL AS INTEGER ) + ( + + col2 ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-319
SELECT + MAX( - col1 ) DIV + 26 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-319
SELECT + MAX ( - col1 ) / + 26 AS col1 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-320
SELECT + col0 DIV + + 47 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-320
SELECT + col0 / + + 47 FROM tab0
----
0
1
2

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

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

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

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

skipif mysql # not compatible
query I rowsort label-323
SELECT ALL + COUNT ( * ) AS col0 FROM tab2 WHERE NULL IS NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col1 col1 FROM tab1
----
37
44
80

query II rowsort
SELECT ALL + col0, col1 + + + col1 * - + col1 * - + ( + 7 ) AS col2 FROM tab0 AS cor0
----
15
46008
87
3108
97
8

onlyif mysql # aggregate syntax: 
query I rowsort label-326
SELECT + 81 * - MIN( ALL 15 ) AS col0 FROM tab0
----
-1215

skipif mysql # not compatible
query I rowsort label-326
SELECT + 81 * - MIN ( ALL 15 ) AS col0 FROM tab0
----
-1215

query I rowsort
SELECT + + col2 + - 63 * col1 AS col2 FROM tab1 AS cor0
----
-256
-2893
-786

query I rowsort
SELECT ALL 64 + + 28 AS col0 FROM tab1 AS cor0
----
92
92
92

query I rowsort
SELECT ALL - col2 * - col0 + 36 FROM tab0 AS cor0
----
741
906
9639

query I rowsort
SELECT ALL + col2 + - 51 FROM tab2 AS cor0
----
-11
-28
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 57 + + col1 col2 FROM tab2 AS cor0
----
-6
10
20

query I rowsort
SELECT DISTINCT + + 14 + - col0 AS col1 FROM tab1 AS cor0
----
-37
-71
-77

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 - - col2 col1 FROM tab0 cor0
----
-11
-34
98

query I rowsort
SELECT 56 AS col1 FROM tab2 WHERE - col1 * - col2 + + 89 - + 64 IS NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0 WHERE NOT + 66 <> NULL
----

query II rowsort
SELECT - col0 * - col1, - col2 AS col2 FROM tab0
----
1215
-47
1827
-10
97
-99

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( + col2 - + 49 / - 37 + - 69 - + - col2 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NULL ) <= ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL >= ( 72 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 87 IN ( + 37, col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-342
SELECT - COUNT( + + col1 ) * - 12 AS col2 FROM tab2 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-342
SELECT - COUNT ( + + col1 ) * - 12 AS col2 FROM tab2 AS cor0
----
36

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-343
SELECT COUNT ( * ) col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col2, col0 * 3 * - 53 AS col0 FROM tab0
----
1
-15423
21
-13833
81
-2385

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN NULL AND - col1
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-347
SELECT DISTINCT SUM( ALL - + 33 ) AS col1 FROM tab2
----
-99

skipif mysql # not compatible
query I rowsort label-347
SELECT DISTINCT SUM ( ALL - + 33 ) AS col1 FROM tab2
----
-99

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

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

query II rowsort
SELECT DISTINCT + 14, col1 + + col1 + - col1 * col0 AS col1 FROM tab2 AS cor0
----
14
-2244
14
-4774
14
-4891

query II rowsort
SELECT - 4 AS col1, - col0 FROM tab0 AS cor0
----
-4
-15
-4
-87
-4
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col2, + col0 * 73 FROM tab2 AS cor0
----
-23
3358
-40
4672
-58
5475

query I rowsort
SELECT - col0 * col1 + 82 AS col1 FROM tab1 AS cor0
----
-343
-4195
-632

query II rowsort
SELECT col2, + col2 - - + col2 - + + col2 + + 41 + - col2 * col1 * - - col1 + - col1 AS col1 FROM tab2 AS cor0
----
23
-59810
40
-237156
58
-260330

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT + + col2 NOT BETWEEN NULL AND ( + col0 ) )
----
15
81
47
97
1
99

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

query I rowsort
SELECT DISTINCT col1 * - 25 * + col2 AS col1 FROM tab1
----
-33600
-7375
-79900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-358
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-358
SELECT ALL + CAST ( - - col2 AS INTEGER ) col1 FROM tab1
----
59
68
96

query I rowsort
SELECT ALL - 35 + - col0 FROM tab1
----
-120
-126
-86

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

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

query I rowsort
SELECT ALL - + col1 * - - 81 FROM tab1 AS cor0
----
-1134
-3807
-405

onlyif mysql # aggregate syntax: 
query I rowsort label-362
SELECT DISTINCT + 13 + + COUNT( * ) FROM tab0
----
16

skipif mysql # not compatible
query I rowsort label-362
SELECT DISTINCT + 13 + + COUNT ( * ) FROM tab0
----
16

query I rowsort
SELECT col2 * 47 + col0 AS col1 FROM tab1
----
2858
3287
4563

query III rowsort
SELECT * FROM tab0 WHERE col1 > ( - - ( + col0 ) )
----
15
81
47

query I rowsort
SELECT + - 70 FROM tab2 WHERE + col2 BETWEEN NULL AND + col1
----

query I rowsort
SELECT DISTINCT - col2 * + col1 * + 14 FROM tab2 AS cor0
----
-16422
-43120
-54404

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

query I rowsort
SELECT ALL + + 21 * - col1 FROM tab2 cor0
----
-1071
-1407
-1617

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - - col0 ) * + + 40 * - - col0 + 66 col0 FROM tab1 AS cor0 WHERE NOT col1 * col0 * - + 46 IS NULL
----
104106
289066
331306

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

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

query I rowsort
SELECT - + 12 - + 14 FROM tab0 AS cor0
----
-26
-26
-26

query I rowsort
SELECT ALL - 33 + - col1 + col0 AS col1 FROM tab2 AS cor0
----
-25
-38
-46

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

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

query I rowsort
SELECT DISTINCT col1 - - - col0 FROM tab1
----
-37
-44
-80

query I rowsort
SELECT - col1 * - + ( - col1 ) + - 72 FROM tab1
----
-2281
-268
-97

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-382
SELECT - - COUNT( - ( - col1 ) ) * - 59 col0 FROM tab0 AS cor0
----
-177

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-382
SELECT - - COUNT ( - ( - col1 ) ) * - 59 col0 FROM tab0 AS cor0
----
-177

query I rowsort
SELECT + col0 + + col1 AS col1 FROM tab0 AS cor0 WHERE NOT - col0 / col2 IS NULL
----
108
96
98

query I rowsort
SELECT - ( + col0 ) * - ( - + 94 ) + + - 49 * + + 26 FROM tab2 AS cor0
----
-5598
-7290
-8324

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

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

query I rowsort
SELECT + 27 * - - col0 FROM tab2 AS cor0
----
1242
1728
2025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-387
SELECT CAST( + + col2 AS SIGNED ) + - + 6 + + col0 FROM tab0
----
190
56
91

skipif mysql # not compatible
query I rowsort label-387
SELECT CAST ( + + col2 AS INTEGER ) + - + 6 + + col0 FROM tab0
----
190
56
91

onlyif mysql # DIV for integer division: 
query I rowsort label-388
SELECT DISTINCT 83 + + col1 DIV - - col1 FROM tab1 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-388
SELECT DISTINCT 83 + + col1 / - - col1 FROM tab1 AS cor0
----
84

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

query I rowsort
SELECT ALL + - col2 * + - ( 45 ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) >= NULL
----

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

query I rowsort
SELECT ALL 72 + - - col1 FROM tab0 AS cor0
----
153
73
93

onlyif mysql # aggregate syntax: 
query I rowsort label-393
SELECT MAX( ALL - 59 ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-59

skipif mysql # not compatible
query I rowsort label-393
SELECT MAX ( ALL - 59 ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-59

query II rowsort
SELECT DISTINCT col1 + - - col2 AS col0, col2 AS col1 FROM tab0 cor0
----
100
99
128
47
31
10

onlyif mysql # aggregate syntax: 
query I rowsort label-395
SELECT ALL MAX( + col1 ) * + SUM( + - 0 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-395
SELECT ALL MAX ( + col1 ) * + SUM ( + - 0 ) FROM tab0 AS cor0
----
0

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

skipif mysql # not compatible
query I rowsort label-396
SELECT DISTINCT COUNT ( * ) / + 24 * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - 55 * - col2 * - 30 + - col0 AS col2 FROM tab0 AS cor0
----
-163447
-16587
-77565

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

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

query I rowsort
SELECT ALL col0 - + - 77 FROM tab0 AS cor0
----
164
174
92

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

query I rowsort
SELECT ALL col0 - - + col0 AS col2 FROM tab2 AS cor0
----
128
150
92

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL = - ( - - col2 )
----

query I rowsort
SELECT DISTINCT + col1 * - col1 FROM tab2 WHERE - - 98 * - 75 IS NOT NULL
----
-2601
-4489
-5929

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

skipif mysql # not compatible
query I rowsort label-405
SELECT DISTINCT + COUNT ( 66 ) AS col2 FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-406
SELECT + - col1 DIV col1 + - 28 AS col2 FROM tab0 AS cor0
----
-29
-29
-29

skipif mysql # not compatible
query I rowsort label-406
SELECT + - col1 / col1 + - 28 AS col2 FROM tab0 AS cor0
----
-29
-29
-29

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-407
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - col0 * - CAST( NULL AS SIGNED ) BETWEEN 65 * + - col1 / - 50 * - col2 * - col1 + + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-407
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - col0 * - CAST ( NULL AS INTEGER ) BETWEEN 65 * + - col1 / - 50 * - col2 * - col1 + + CAST ( NULL AS INTEGER ) AND NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-409
SELECT DISTINCT - ( - - COUNT( * ) ) AS col1 FROM tab0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-409
SELECT DISTINCT - ( - - COUNT ( * ) ) AS col1 FROM tab0 WHERE NULL IS NULL
----
-3

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

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

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

query I rowsort
SELECT DISTINCT + ( + 35 ) + + col0 + + 49 FROM tab1 AS cor0
----
135
169
175

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

query I rowsort
SELECT DISTINCT - ( + + col0 ) AS col0 FROM tab0 cor0
----
-15
-87
-97

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

onlyif mysql # aggregate syntax: 
query I rowsort label-416
SELECT ALL + SUM( - - 72 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( 68 ) BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-416
SELECT ALL + SUM ( - - 72 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( 68 ) BETWEEN NULL AND NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-417
SELECT ( + ( col1 ) ) DIV - 9 AS col0 FROM tab1
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-417
SELECT ( + ( col1 ) ) / - 9 AS col0 FROM tab1
----
-1
-5
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 90 * 31 * 25 * + 65 NOT BETWEEN NULL AND + col2
----

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

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

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

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

query II rowsort
SELECT ALL col1 * + ( + col0 ), col2 + + 42 * - col2 AS col0 FROM tab2
----
2346
-943
4928
-1640
5025
-2378

query I rowsort
SELECT DISTINCT + col1 + + + 26 FROM tab1
----
31
40
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-423
SELECT DISTINCT - CAST( NULL AS SIGNED ) * COUNT( * ) AS col1 FROM tab2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-424
SELECT ALL MAX( DISTINCT + col0 ) + MIN( ALL + col2 ) AS col2 FROM tab0
----
107

skipif mysql # not compatible
query I rowsort label-424
SELECT ALL MAX ( DISTINCT + col0 ) + MIN ( ALL + col2 ) AS col2 FROM tab0
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-425
SELECT 8 + - + 83 - + + COUNT( * ) AS col2 FROM tab1
----
-78

skipif mysql # not compatible
query I rowsort label-425
SELECT 8 + - + 83 - + + COUNT ( * ) AS col2 FROM tab1
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-426
SELECT col0 + + 45 DIV col1 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-426
SELECT col0 + + 45 / col1 FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-427
SELECT ALL + ( - - COUNT( * ) ) FROM tab0 WHERE - 6 NOT BETWEEN + - col0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-427
SELECT ALL + ( - - COUNT ( * ) ) FROM tab0 WHERE - 6 NOT BETWEEN + - col0 AND NULL
----
0

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

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

query I rowsort
SELECT DISTINCT - 77 + + 10 - - col2 FROM tab2 AS cor0
----
-27
-44
-9

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 * - 77 col1, col1 AS col0 FROM tab0
----
1155
81
6699
21
7469
1

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

skipif mysql # not compatible
query I rowsort label-433
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE ( NOT + CAST ( NULL AS INTEGER ) + - + col0 IS NULL )
----
0

query I rowsort
SELECT DISTINCT - col2 * + col0 + 18 AS col1 FROM tab1 AS cor0
----
-4878
-4997
-6170

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-437
SELECT ALL SUM( + CAST( + 61 AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
183

skipif mysql # not compatible
query I rowsort label-437
SELECT ALL SUM ( + CAST ( + 61 AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-438
SELECT 85 * SUM( ALL 65 ) FROM tab2
----
16575

skipif mysql # not compatible
query I rowsort label-438
SELECT 85 * SUM ( ALL 65 ) FROM tab2
----
16575

query I rowsort
SELECT + ( - 35 ) FROM tab0
----
-35
-35
-35

query I rowsort
SELECT - 37 AS col2 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
-37
-37
-37

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE + 96 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-442
SELECT + COUNT( DISTINCT 49 ) AS col2 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-442
SELECT + COUNT ( DISTINCT 49 ) AS col2 FROM tab2 AS cor0
----
1

query I rowsort
SELECT DISTINCT + 94 * col1 + + col2 + + 2 FROM tab2 AS cor0
----
4819
6358
7280

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-444
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN + col1 + + 41 * CAST( NULL AS SIGNED ) AND - col1 * - ( 47 ) + - col0
----

skipif mysql # not compatible
query III rowsort label-444
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN + col1 + + 41 * CAST ( NULL AS INTEGER ) AND - col1 * - ( 47 ) + - col0
----

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-448
SELECT + COUNT( * ) + 51 AS col1, COUNT( * ) FROM tab2
----
54
3

skipif mysql # not compatible
query II rowsort label-448
SELECT + COUNT ( * ) + 51 AS col1, COUNT ( * ) FROM tab2
----
54
3

query I rowsort
SELECT col0 + + 43 + - col2 FROM tab2
----
60
66
67

onlyif mysql # aggregate syntax: 
query I rowsort label-450
SELECT ALL COUNT( DISTINCT 37 ) * - 61 - + - 48 FROM tab0
----
-13

skipif mysql # not compatible
query I rowsort label-450
SELECT ALL COUNT ( DISTINCT 37 ) * - 61 - + - 48 FROM tab0
----
-13

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

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

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

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

query I rowsort
SELECT DISTINCT - 74 + col0 + + col2 FROM tab2
----
-5
30
59

query II rowsort
SELECT col0 AS col2, + 0 AS col0 FROM tab1 AS cor0 WHERE NULL = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 + + col1 col0 FROM tab0 AS cor0
----
100
128
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - 19 col0, col2 AS col0 FROM tab1 cor0
----
-19
59
-19
68
-19
96

query II rowsort
SELECT DISTINCT - col2 AS col1, ( - - col2 ) * 68 + col1 AS col0 FROM tab0 AS cor0
----
-10
701
-47
3277
-99
6733

query I rowsort
SELECT ALL + col2 + + 34 + 2 FROM tab0 AS cor0
----
135
46
83

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

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

query II rowsort
SELECT ( + - 92 ) - - col1 AS col0, col1 AS col0 FROM tab1
----
-45
47
-78
14
-87
5

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-463
SELECT + COUNT( - 54 ) AS col2, - COUNT( ( + 53 ) ) + - 84 - - SUM( - + ( - + CAST( NULL AS SIGNED ) ) ) + - - 31 FROM tab1 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-463
SELECT + COUNT ( - 54 ) AS col2, - COUNT ( ( + 53 ) ) + - 84 - - SUM ( - + ( - + CAST ( NULL AS INTEGER ) ) ) + - - 31 FROM tab1 AS cor0
----
3
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-464
SELECT - + SUM( ALL col0 ), + COUNT( * ) * 42 + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-227
129

skipif mysql # not compatible
query II rowsort label-464
SELECT - + SUM ( ALL col0 ), + COUNT ( * ) * 42 + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-227
129

onlyif mysql # DIV for integer division: 
query II rowsort label-465
SELECT ALL col1 DIV + col0 * - col0 AS col1, 10 + 67 AS col2 FROM tab1
----
0
77
0
77
0
77

skipif mysql # not compatible
query II rowsort label-465
SELECT ALL col1 / + col0 * - col0 AS col1, 10 + 67 AS col2 FROM tab1
----
0
77
0
77
0
77

query III rowsort
SELECT * FROM tab2 WHERE NOT + 32 * - 3 * + 37 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + ( - col1 ) * + 9 AS col2 FROM tab0
----
-189
-729
-9

query I rowsort
SELECT ALL - col2 * + ( + - col2 ) FROM tab0
----
100
2209
9801

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

query I rowsort
SELECT 75 * + 13 AS col0 FROM tab0
----
975
975
975

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-473
SELECT DISTINCT col2 DIV col0 AS col1, + 55 FROM tab2
----
0
55

skipif mysql # not compatible
query II rowsort label-473
SELECT DISTINCT col2 / col0 AS col1, + 55 FROM tab2
----
0
55

query I rowsort
SELECT ALL + col2 + - 96 AS col1 FROM tab2
----
-38
-56
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-475
SELECT ALL + col1 * - - CAST( - - col1 AS SIGNED ) * col2 + + 48 AS col0 FROM tab0 cor0
----
147
308415
4458

skipif mysql # not compatible
query I rowsort label-475
SELECT ALL + col1 * - - CAST ( - - col1 AS INTEGER ) * col2 + + 48 AS col0 FROM tab0 cor0
----
147
308415
4458

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-476
SELECT ALL - col0 - CAST( NULL AS DECIMAL ) + - - 97 - - + col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-476
SELECT ALL - col0 - CAST ( NULL AS REAL ) + - - 97 - - + col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - col1 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-477
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2, COUNT( * ) AS col1 FROM tab0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-477
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2, COUNT ( * ) AS col1 FROM tab0
----
NULL
3

query I rowsort
SELECT col2 - - col0 * - col2 AS col0 FROM tab2
----
-1035
-2520
-4292

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-481
SELECT - 45 * + 12 * - MIN( ALL - + CAST( + col0 AS SIGNED ) ) + - - COUNT( - col2 ) AS col1 FROM tab1
----
-49137

skipif mysql # not compatible
query I rowsort label-481
SELECT - 45 * + 12 * - MIN ( ALL - + CAST ( + col0 AS INTEGER ) ) + - - COUNT ( - col2 ) AS col1 FROM tab1
----
-49137

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

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

query I rowsort
SELECT col1 * + col0 + 73 AS col1 FROM tab2
----
2419
5001
5098

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-484
SELECT ALL 91 DIV COUNT( * ) DIV - + COUNT( * ) FROM tab1, tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-484
SELECT ALL 91 / COUNT ( * ) / - + COUNT ( * ) FROM tab1, tab0 cor0
----
-1

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

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

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

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

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

query I rowsort
SELECT DISTINCT - col2 * + col2 * + 33 * + col0 FROM tab1 AS cor0
----
-13885872
-15510528
-9764205

query I rowsort
SELECT DISTINCT - col2 * - - 58 FROM tab0 cor0
----
-2726
-5742
-580

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-494
SELECT ALL - ( 11 ) FROM tab2 WHERE + col1 < - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-494
SELECT ALL - ( 11 ) FROM tab2 WHERE + col1 < - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT - ( - 57 ) FROM tab2
----
57

query I rowsort
SELECT + ( + - 14 ) FROM tab0
----
-14
-14
-14

query I rowsort
SELECT DISTINCT + 13 FROM tab1 WHERE ( - - 21 ) IS NOT NULL
----
13

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL <= 39
----

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

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

query I rowsort
SELECT col2 + - 77 * + + 43 AS col0 FROM tab2 AS cor0
----
-3253
-3271
-3288

onlyif mysql # aggregate syntax: 
query I rowsort label-504
SELECT + SUM( + 61 ) FROM tab2
----
183

skipif mysql # not compatible
query I rowsort label-504
SELECT + SUM ( + 61 ) FROM tab2
----
183

query II rowsort
SELECT DISTINCT + col1 * + - col0 AS col0, + col1 AS col1 FROM tab0
----
-1215
81
-1827
21
-97
1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 * col1 + - - 6 - 1 / - + 3 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 * - + 21, col1 col0 FROM tab2
----
1344
77
1575
67
966
51

query II rowsort
SELECT ALL - 40, - col1 AS col0 FROM tab1 WHERE NOT + 84 IS NULL
----
-40
-14
-40
-47
-40
-5

query I rowsort
SELECT col2 - - - col1 * + + col1 AS col1 FROM tab1 AS cor0
----
-100
-2141
34

query I rowsort
SELECT col1 - + 82 + - col2 FROM tab0 AS cor0
----
-180
-48
-71

query I rowsort
SELECT + ( 50 ) - - + col1 AS col2 FROM tab2 AS cor0
----
101
117
127

query I rowsort
SELECT ALL 98 * 29 + + 50 + col2 * - col1 AS col0 FROM tab1 AS cor0
----
-304
1548
2597

query I rowsort
SELECT + - col1 - - 49 + + + 35 FROM tab1 AS cor0
----
37
70
79

query I rowsort
SELECT col1 - - 54 FROM tab0 cor0
----
135
55
75

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-517
SELECT + col2 DIV + + 21 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-517
SELECT + col2 / + + 21 FROM tab2 AS cor0
----
1
1
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-518
SELECT ALL MIN( - 50 ) * + + CAST( NULL AS SIGNED ) / + MAX( ALL 34 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-518
SELECT ALL MIN ( - 50 ) * + + CAST ( NULL AS INTEGER ) / + MAX ( ALL 34 ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + - 2 * col0 + - 6 + + col2 FROM tab1 AS cor0
----
-117
-12
-120

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-521
SELECT DISTINCT COUNT( * ) AS col1, - 99 * + 9 + + ( + 42 ) DIV MIN( - 92 ) AS col2 FROM tab2 AS cor0
----
3
-891

skipif mysql # not compatible
query II rowsort label-521
SELECT DISTINCT COUNT ( * ) AS col1, - 99 * + 9 + + ( + 42 ) / MIN ( - 92 ) AS col2 FROM tab2 AS cor0
----
3
-891

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-522
SELECT ALL col2, CAST( NULL AS SIGNED ), + ( + col0 ) FROM tab1
----
9 values hashing to e16da2d2194968b4cfe4db03bcf4af08

skipif mysql # not compatible
query III rowsort label-522
SELECT ALL col2, CAST ( NULL AS INTEGER ), + ( + col0 ) FROM tab1
----
9 values hashing to e16da2d2194968b4cfe4db03bcf4af08

query I rowsort
SELECT ALL - col2 + ( + 29 ) FROM tab2 WHERE ( NOT ( NOT - col0 / + + col0 IS NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-524
SELECT ALL MIN( DISTINCT - 98 ) AS col2 FROM tab2, tab0 AS cor0
----
-98

skipif mysql # not compatible
query I rowsort label-524
SELECT ALL MIN ( DISTINCT - 98 ) AS col2 FROM tab2, tab0 AS cor0
----
-98

query II rowsort
SELECT DISTINCT col2, 44 * - col0 FROM tab2
----
23
-2024
40
-2816
58
-3300

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

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

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

query I rowsort
SELECT DISTINCT - ( + ( - - col0 ) ) FROM tab1
----
-51
-85
-91

query I rowsort
SELECT DISTINCT - 4 * + - col2 FROM tab0
----
188
396
40

query I rowsort
SELECT ALL 25 * - + col1 AS col2 FROM tab1
----
-1175
-125
-350

query II rowsort
SELECT ALL - 18, 45 * col2 * - col1 AS col0 FROM tab1 AS cor0 WHERE col1 * 0 IS NULL
----

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

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

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

query II rowsort
SELECT DISTINCT - col2, + 45 * col0 * + - col1 * - + col2 - - col2 AS col2 FROM tab1 AS cor0 WHERE NULL > NULL
----

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

query I rowsort
SELECT DISTINCT - col0 + + - 51 * - col2 * - 11 FROM tab0 AS cor0
----
-26382
-55636
-5697

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-538
SELECT ALL 78 + - CAST( NULL AS SIGNED ) col1 FROM tab0
----
NULL
NULL
NULL

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

query III rowsort
SELECT * FROM tab1 WHERE - - 45 < NULL
----

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

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

query I rowsort
SELECT ALL + col0 * 42 * - + 53 * ( + col0 ) - col2 AS col1 FROM tab1
----
-16082909
-18433574
-5789922

query I rowsort
SELECT col0 + + col2 + + col1 AS col2 FROM tab1
----
149
161
206

query I rowsort
SELECT ALL 76 * + col0 FROM tab2 AS cor0
----
3496
4864
5700

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

onlyif mysql # DIV for integer division: 
query II rowsort label-545
SELECT DISTINCT + col0 DIV 14 + + 4 AS col1, 12 AS col1 FROM tab1 cor0
----
10
12
7
12

skipif mysql # not compatible
query II rowsort label-545
SELECT DISTINCT + col0 / 14 + + 4 AS col1, 12 AS col1 FROM tab1 cor0
----
10
12
7
12

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + 57 IS NOT NULL
----

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

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

query II rowsort
SELECT ( + col1 ) AS col0, - col2 * + col2 - + col2 FROM tab1 AS cor0
----
14
-9312
47
-4692
5
-3540

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-550
SELECT + - col0 DIV - - 50 AS col0, col0 - + 81 * + + col1 AS col0 FROM tab0 cor0
----
-1
-1614
-1
16
0
-6546

skipif mysql # not compatible
query II rowsort label-550
SELECT + - col0 / - - 50 AS col0, col0 - + 81 * + + col1 AS col0 FROM tab0 cor0
----
-1
-1614
-1
16
0
-6546

onlyif mysql # aggregate syntax: 
query I rowsort label-551
SELECT + 97 * MIN( ALL - col0 ) FROM tab2 AS cor0
----
-7275

skipif mysql # not compatible
query I rowsort label-551
SELECT + 97 * MIN ( ALL - col0 ) FROM tab2 AS cor0
----
-7275

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 73 * 72 * + - col2 col0 FROM tab0
----
-247032
-520344
-52560

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - ( col1 ) = + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-554
SELECT DISTINCT + 87 * + - COUNT( * ) FROM tab0
----
-261

skipif mysql # not compatible
query I rowsort label-554
SELECT DISTINCT + 87 * + - COUNT ( * ) FROM tab0
----
-261

query I rowsort
SELECT 21 + 76 FROM tab1
----
97
97
97

query I rowsort
SELECT DISTINCT - 54 AS col0 FROM tab2 WHERE NULL = NULL
----

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

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

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

query I rowsort
SELECT ALL col0 + + col1 + 55 AS col0 FROM tab0
----
151
153
163

query I rowsort
SELECT DISTINCT - 60 + + col0 * - col1 AS col1 FROM tab1 AS cor0
----
-4337
-485
-774

query I rowsort
SELECT - - col2 * + 60 + + + col0 AS col0 FROM tab2 AS cor0
----
1426
2464
3555

onlyif mysql # aggregate syntax: 
query II rowsort label-563
SELECT ALL 6 * - - COUNT( * ), + 85 AS col0 FROM tab1 AS cor0
----
18
85

skipif mysql # not compatible
query II rowsort label-563
SELECT ALL 6 * - - COUNT ( * ), + 85 AS col0 FROM tab1 AS cor0
----
18
85

onlyif mysql # aggregate syntax: 
query I rowsort label-564
SELECT ALL MAX( 32 ) + SUM( ALL + col1 ) + COUNT( * ) AS col1 FROM tab0 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-564
SELECT ALL MAX ( 32 ) + SUM ( ALL + col1 ) + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
138

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-565
SELECT + - 55 + + - COUNT( * ) + + + MAX( + - col2 ) DIV + COUNT( * ) AS col0 FROM tab1 cor0
----
-77

skipif mysql # not compatible
query I rowsort label-565
SELECT + - 55 + + - COUNT ( * ) + + + MAX ( + - col2 ) / + COUNT ( * ) AS col0 FROM tab1 cor0
----
-77

query I rowsort
SELECT - col1 + + + 38 * - 96 AS col0 FROM tab2 cor0
----
-3699
-3715
-3725

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-567
SELECT MIN( col2 ) + 56 DIV 91 AS col2 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-567
SELECT MIN ( col2 ) + 56 / 91 AS col2 FROM tab1 AS cor0
----
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 + - col2 col0 FROM tab2 AS cor0
----
-117
-125
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0, col1 * + ( col0 ) + - col1 col2 FROM tab0 AS cor0
----
15
1134
87
1806
97
96

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

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

query I rowsort
SELECT ALL - col1 + + - 73 AS col1 FROM tab1
----
-120
-78
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 * - col2 + + 22 col1, col1 FROM tab1
----
-3459
5
-4602
47
-9194
14

query I rowsort
SELECT ALL 61 * - ( + col2 ) FROM tab1
----
-3599
-4148
-5856

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 61 < + 27
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col1 * 96 AS col1 FROM tab2
----
4896
6432
7392

onlyif mysql # aggregate syntax: 
query I rowsort label-577
SELECT - - COUNT( ALL - - 99 ) col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-577
SELECT - - COUNT ( ALL - - 99 ) col0 FROM tab0 AS cor0
----
3

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

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

query I rowsort
SELECT + 7 * + col1 + + + 84 + - col1 + col0 * - col1 + - + col2 + ( - + col0 ) AS col1 FROM tab1 AS cor0
----
-4070
-455
-693

query I rowsort
SELECT DISTINCT 99 * - col0 + col0 + - - 16 FROM tab0 AS cor0
----
-1454
-8510
-9490

query I rowsort
SELECT DISTINCT + + col0 * + 19 FROM tab2 AS cor0
----
1216
1425
874

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-584
SELECT ALL - CAST( CAST( - col1 AS DECIMAL ) AS SIGNED ) * - + col1 + + col0 + 97 FROM tab1 AS cor0
----
-2021
-48
157

skipif mysql # not compatible
query I rowsort label-584
SELECT ALL - CAST ( CAST ( - col1 AS REAL ) AS INTEGER ) * - + col1 + + col0 + 97 FROM tab1 AS cor0
----
-2021
-48
157

query I rowsort
SELECT ALL - col2 * + col0 * - 47 + - col1 FROM tab1 AS cor0
----
230098
235700
290789

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL >= 16
----

onlyif mysql # aggregate syntax: 
query I rowsort label-588
SELECT + 65 * + + 70 - + + COUNT( * ) * - COUNT( * ) AS col1 FROM tab0 cor0
----
4559

skipif mysql # not compatible
query I rowsort label-588
SELECT + 65 * + + 70 - + + COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab0 cor0
----
4559

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-589
SELECT 42 * CAST( + 5 AS SIGNED ) FROM tab1
----
210
210
210

skipif mysql # not compatible
query I rowsort label-589
SELECT 42 * CAST ( + 5 AS INTEGER ) FROM tab1
----
210
210
210

onlyif mysql # DIV for integer division: 
query I rowsort label-590
SELECT DISTINCT - col0 DIV 13 DIV 96 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-590
SELECT DISTINCT - col0 / 13 / 96 AS col0 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-591
SELECT ALL col1 DIV + + col1 * - + 97 DIV + col2 AS col1 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-591
SELECT ALL col1 / + + col1 * - + 97 / + col2 AS col1 FROM tab1
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-592
SELECT + CAST( + col1 AS SIGNED ) AS col0, col0 AS col2 FROM tab1
----
14
51
47
91
5
85

skipif mysql # not compatible
query II rowsort label-592
SELECT + CAST ( + col1 AS INTEGER ) AS col0, col0 AS col2 FROM tab1
----
14
51
47
91
5
85

query I rowsort
SELECT ALL ( + - 30 ) AS col1 FROM tab0
----
-30
-30
-30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 * - col2 + + + 12 col1 FROM tab1 AS cor0
----
4908
5027
6200

query I rowsort
SELECT ALL 5 + - col0 - col2 FROM tab0 cor0
----
-191
-57
-92

query I rowsort
SELECT + col1 + - 73 AS col1 FROM tab1
----
-26
-59
-68

query I rowsort
SELECT - col2 * 84 FROM tab0
----
-3948
-8316
-840

query I rowsort
SELECT - 51 * + - 33 FROM tab2
----
1683
1683
1683

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

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

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

query I rowsort
SELECT ALL - col1 + - 73 FROM tab1 AS cor0
----
-120
-78
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-603
SELECT DISTINCT 85 + + col2 DIV - - 81 AS col1 FROM tab1 cor0
----
85
86

skipif mysql # not compatible
query I rowsort label-603
SELECT DISTINCT 85 + + col2 / - - 81 AS col1 FROM tab1 cor0
----
85
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-604
SELECT ALL - + CAST( + 40 AS SIGNED ) + - ( + + col2 ) FROM tab0 AS cor0
----
-139
-50
-87

skipif mysql # not compatible
query I rowsort label-604
SELECT ALL - + CAST ( + 40 AS INTEGER ) + - ( + + col2 ) FROM tab0 AS cor0
----
-139
-50
-87

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

query I rowsort
SELECT DISTINCT - 60 + - 5 * + ( col1 ) FROM tab0 AS cor0
----
-165
-465
-65

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

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

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

query I rowsort
SELECT DISTINCT 84 * + + 12 AS col0 FROM tab1
----
1008

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

skipif mysql # not compatible
query I rowsort label-610
SELECT ALL CAST ( + MAX ( + col1 ) AS INTEGER ) AS col2 FROM tab0
----
81

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-613
SELECT MAX( ALL + col2 ) col0 FROM tab0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-613
SELECT MAX ( ALL + col2 ) col0 FROM tab0
----
99

query III rowsort
SELECT ALL 79, 5 * + 56 * + - col1 AS col2, + 59 AS col0 FROM tab2
----
9 values hashing to 566f67e9c40d7d72bc7027aae2c8f55f

query I rowsort
SELECT + 63 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
63
63
63

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

onlyif mysql # aggregate syntax: 
query I rowsort label-617
SELECT DISTINCT + SUM( ALL + col0 ) * + - 27 AS col1 FROM tab0 cor0
----
-5373

skipif mysql # not compatible
query I rowsort label-617
SELECT DISTINCT + SUM ( ALL + col0 ) * + - 27 AS col1 FROM tab0 cor0
----
-5373

onlyif mysql # aggregate syntax: 
query I rowsort label-618
SELECT - ( + + 29 ) * - COUNT( - 5 ) * - - 45 AS col2 FROM tab0 AS cor0
----
3915

skipif mysql # not compatible
query I rowsort label-618
SELECT - ( + + 29 ) * - COUNT ( - 5 ) * - - 45 AS col2 FROM tab0 AS cor0
----
3915

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-619
SELECT DISTINCT + 4 DIV COUNT( * ) AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-619
SELECT DISTINCT + 4 / COUNT ( * ) AS col0 FROM tab2
----
1

query I rowsort
SELECT 24 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

query I rowsort
SELECT ALL + 45 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

onlyif mysql # aggregate syntax: 
query I rowsort label-622
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab0 WHERE + + col1 BETWEEN 5 + - col0 AND 72
----
2

skipif mysql # not compatible
query I rowsort label-622
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab0 WHERE + + col1 BETWEEN 5 + - col0 AND 72
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-623
SELECT MAX( ALL 1 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-623
SELECT MAX ( ALL 1 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 < + + 46 - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT ALL - + col0 * + ( ( + 85 ) ) AS col1 FROM tab0 AS cor0
----
-1275
-7395
-8245

query I rowsort
SELECT ALL + col2 + - - col0 + - 23 AS col0 FROM tab1 AS cor0
----
121
124
136

query I rowsort
SELECT - col2 + col0 + + 94 AS col0 FROM tab1
----
117
120
49

onlyif mysql # aggregate syntax: 
query I rowsort label-629
SELECT ALL + + COUNT( + 73 ) FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-629
SELECT ALL + + COUNT ( + 73 ) FROM tab1 WHERE NOT NULL IS NULL
----
0

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

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

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

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

query III rowsort
SELECT * FROM tab2 WHERE col1 > col0
----
46
51
23
64
77
40

query I rowsort
SELECT 16 * + col1 + 49 FROM tab1
----
129
273
801

onlyif mysql # DIV for integer division: 
query I rowsort label-634
SELECT DISTINCT col2 DIV + 64 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-634
SELECT DISTINCT col2 / + 64 FROM tab2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-635
SELECT - 19 DIV - COUNT( * ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-635
SELECT - 19 / - COUNT ( * ) FROM tab2
----
6

query I rowsort
SELECT DISTINCT 30 + - 90 AS col0 FROM tab2
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-637
SELECT DISTINCT + COUNT( + 15 ) - ( COUNT( * ) ) * + 74 AS col1 FROM tab1
----
-219

skipif mysql # not compatible
query I rowsort label-637
SELECT DISTINCT + COUNT ( + 15 ) - ( COUNT ( * ) ) * + 74 AS col1 FROM tab1
----
-219

onlyif mysql # aggregate syntax: 
query I rowsort label-638
SELECT + 8 + SUM( col2 ) FROM tab2
----
129

skipif mysql # not compatible
query I rowsort label-638
SELECT + 8 + SUM ( col2 ) FROM tab2
----
129

query I rowsort
SELECT 26 * + col2 + - col2 * + col0 FROM tab2
----
-1520
-2842
-460

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 IN ( + col0 * + 4 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-641
SELECT ALL 20 DIV COUNT( * ) AS col0 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-641
SELECT ALL 20 / COUNT ( * ) AS col0 FROM tab1
----
6

query I rowsort
SELECT + 9 * - 27 AS col0 FROM tab0
----
-243
-243
-243

query I rowsort
SELECT + 43 * col0 AS col1 FROM tab1
----
2193
3655
3913

query I rowsort
SELECT 59 * - 50 FROM tab2
----
-2950
-2950
-2950

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 * 97 - col0 = NULL
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-648
SELECT + CAST( 74 AS SIGNED ) * + col0 FROM tab2
----
3404
4736
5550

skipif mysql # not compatible
query I rowsort label-648
SELECT + CAST ( 74 AS INTEGER ) * + col0 FROM tab2
----
3404
4736
5550

query I rowsort
SELECT ( - col1 ) * col2 + 95 * col1 FROM tab0
----
-4
1785
3888

query I rowsort
SELECT col2 * 83 + col0 AS col0 FROM tab1
----
4982
5735
8019

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-651
SELECT DISTINCT CAST( + col1 AS SIGNED ) * - ( + col0 ) FROM tab0
----
-1215
-1827
-97

skipif mysql # not compatible
query I rowsort label-651
SELECT DISTINCT CAST ( + col1 AS INTEGER ) * - ( + col0 ) FROM tab0
----
-1215
-1827
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-652
SELECT - col0 DIV + ( + col0 ) - 48 FROM tab2
----
-49
-49
-49

skipif mysql # not compatible
query I rowsort label-652
SELECT - col0 / + ( + col0 ) - 48 FROM tab2
----
-49
-49
-49

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 95 IN ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 <= 53
----

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab1 WHERE - 70 IN ( + 96 * + col2 + + col1 )
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-662
SELECT DISTINCT - 2 + COUNT( ALL CAST( 66 AS SIGNED ) - col0 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-662
SELECT DISTINCT - 2 + COUNT ( ALL CAST ( 66 AS INTEGER ) - col0 ) FROM tab1
----
1

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

query I rowsort
SELECT DISTINCT - col1 * - col0 FROM tab2 AS cor0 WHERE ( - col1 * col2 ) IS NOT NULL
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-665
SELECT DISTINCT + MIN( ALL 95 ) AS col1 FROM tab2 AS cor0 WHERE col2 * col0 BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-665
SELECT DISTINCT + MIN ( ALL 95 ) AS col1 FROM tab2 AS cor0 WHERE col2 * col0 BETWEEN NULL AND NULL
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 24 * 79 + col1 ) >= - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-667
SELECT MAX( ALL col1 ) * 33 FROM tab2 AS cor0
----
2541

skipif mysql # not compatible
query I rowsort label-667
SELECT MAX ( ALL col1 ) * 33 FROM tab2 AS cor0
----
2541

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-668
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 91 + + CAST( + 34 AS SIGNED ) < NULL
----

skipif mysql # not compatible
query III rowsort label-668
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 91 + + CAST ( + 34 AS INTEGER ) < NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 WHERE NOT ( 20 ) IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

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

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

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

query I rowsort
SELECT ALL - 77 + col2 * + col0 AS col0 FROM tab2 AS cor0
----
2483
4273
981

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 / col1 IS NULL
----

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

query I rowsort
SELECT ALL + 69 + 61 * + 78 AS col1 FROM tab0 cor0
----
4827
4827
4827

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-678
SELECT DISTINCT + col1 * + col2 + CAST( col1 AS SIGNED ) FROM tab0
----
100
231
3888

skipif mysql # not compatible
query I rowsort label-678
SELECT DISTINCT + col1 * + col2 + CAST ( col1 AS INTEGER ) FROM tab0
----
100
231
3888

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

query I rowsort
SELECT DISTINCT col1 * + 28 FROM tab0
----
2268
28
588

query I rowsort
SELECT col0 + 31 + col2 * - col2 FROM tab0
----
-2163
-9673
18

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

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

query III rowsort
SELECT * FROM tab2 WHERE col1 <> ( col2 - 1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 + - col2 + 5 FROM tab0
----
-27
3
82

query I rowsort
SELECT + col2 + - - 52 * col2 FROM tab1
----
3127
3604
5088

onlyif mysql # aggregate syntax: 
query I rowsort label-686
SELECT + SUM( - + 24 ) + - 64 AS col1 FROM tab2 cor0
----
-136

skipif mysql # not compatible
query I rowsort label-686
SELECT + SUM ( - + 24 ) + - 64 AS col1 FROM tab2 cor0
----
-136

onlyif mysql # aggregate syntax: 
query I rowsort label-687
SELECT ALL + 97 + + + COUNT( * ) AS col2 FROM tab1 cor0
----
100

skipif mysql # not compatible
query I rowsort label-687
SELECT ALL + 97 + + + COUNT ( * ) AS col2 FROM tab1 cor0
----
100

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-688
SELECT * FROM tab2 cor0 WHERE NULL <= CAST( - 73 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-688
SELECT * FROM tab2 cor0 WHERE NULL <= CAST ( - 73 AS INTEGER )
----

query I rowsort
SELECT ALL 90 * - col1 AS col2 FROM tab0 AS cor0
----
-1890
-7290
-90

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-690
SELECT - COUNT ( col2 ) col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 20 * 16 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-693
SELECT - SUM( DISTINCT + - 37 ) FROM tab1
----
37

skipif mysql # not compatible
query I rowsort label-693
SELECT - SUM ( DISTINCT + - 37 ) FROM tab1
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-694
SELECT ALL * FROM tab2 WHERE NOT ( - 38 ) = - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-694
SELECT ALL * FROM tab2 WHERE NOT ( - 38 ) = - CAST ( NULL AS INTEGER )
----

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

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

query I rowsort
SELECT DISTINCT + 94 + 70 AS col0 FROM tab1 AS cor0 WHERE NOT ( + col0 + + col0 ) IS NULL
----
164

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

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

query I rowsort
SELECT ALL + ( 97 ) * + 83 + col2 * + col0 FROM tab1 AS cor0 WHERE NOT + col2 IS NULL
----
12947
13066
14239

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

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

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

skipif mysql # not compatible
query I rowsort label-701
SELECT + - 60 / - + COUNT ( * ) FROM tab1 cor0
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-702
SELECT ALL 22 DIV + MIN( DISTINCT 6 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-702
SELECT ALL 22 / + MIN ( DISTINCT 6 ) FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col2 FROM tab0 cor0 WHERE NOT + ( - 93 ) / - col0 >= ( col1 - + 1 )
----
10
47

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-705
SELECT - COUNT ( * ) col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-3

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL > + ( + + col1 ) * col2 + 59
----

query II rowsort
SELECT DISTINCT ( - col2 ), col2 AS col2 FROM tab0
----
-10
10
-47
47
-99
99

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

query I rowsort
SELECT ALL col1 * - 49 AS col1 FROM tab1
----
-2303
-245
-686

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-712
SELECT + + col0 * col0 + + - col2 DIV + col0 AS col0 FROM tab0 AS cor0
----
222
7569
9408

skipif mysql # not compatible
query I rowsort label-712
SELECT + + col0 * col0 + + - col2 / + col0 AS col0 FROM tab0 AS cor0
----
222
7569
9408

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-715
SELECT ALL - - 63 * 92 + - 58 * MAX( DISTINCT + 91 ) AS col1 FROM tab2 cor0
----
518

skipif mysql # not compatible
query I rowsort label-715
SELECT ALL - - 63 * 92 + - 58 * MAX ( DISTINCT + 91 ) AS col1 FROM tab2 cor0
----
518

query I rowsort
SELECT ALL + - ( - 4 ) * col2 + col2 FROM tab1 AS cor0
----
295
340
480

query I rowsort
SELECT 5 + + col1 FROM tab2 AS cor0
----
56
72
82

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

query I rowsort
SELECT DISTINCT col2 + + 99 AS col1 FROM tab0 AS cor0
----
109
146
198

query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE ( col0 * col1 * - col0 / - + col1 + col2 ) IS NULL
----

query I rowsort
SELECT DISTINCT col2 + - + col2 + 59 + + + col2 * + col1 FROM tab2 AS cor0
----
1232
3139
3945

query I rowsort
SELECT + - col1 + + + col2 * - - col0 - - + col0 FROM tab0 cor0
----
639
936
9699

query II rowsort
SELECT DISTINCT 50 + + + 79 AS col2, + col0 FROM tab0
----
129
15
129
87
129
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - 90 col2 FROM tab0
----
-4230
-8910
-900

query I rowsort
SELECT ALL 37 * col2 FROM tab2
----
1480
2146
851

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

onlyif mysql # aggregate syntax: 
query I rowsort label-727
SELECT COUNT( * ) * + 36 AS col2 FROM tab2 WHERE ( NULL > + col0 * + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-727
SELECT COUNT ( * ) * + 36 AS col2 FROM tab2 WHERE ( NULL > + col0 * + col1 )
----
0

query I rowsort
SELECT DISTINCT 93 FROM tab1 WHERE NOT ( NOT NULL IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-729
SELECT DISTINCT 22 DIV 82 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-729
SELECT DISTINCT 22 / 82 FROM tab1
----
0

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

skipif mysql # not compatible
query I rowsort label-730
SELECT ALL + ( + COUNT ( * ) ) * 15 - + ( - - CAST ( - COUNT ( * ) AS INTEGER ) ) FROM tab1
----
48

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

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

query I rowsort
SELECT + + col2 * ( col2 ) AS col2 FROM tab0 AS cor0
----
100
2209
9801

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

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

query I rowsort
SELECT DISTINCT + - 35 - + 85 AS col0 FROM tab2 AS cor0
----
-120

query I rowsort
SELECT 49 - - - col2 FROM tab0 AS cor0
----
-50
2
39

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

onlyif mysql # DIV for integer division: 
query I rowsort label-738
SELECT ALL col1 DIV + 61 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-738
SELECT ALL col1 / + 61 AS col0 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col2 FROM tab2 WHERE - col2 * + col0 * - col2 - + + ( + col2 ) * - col1 IS NOT NULL
----
46
64
75

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

onlyif mysql # aggregate syntax: 
query I rowsort label-741
SELECT 44 + SUM( DISTINCT + 42 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NOT ( NOT ( - col1 IS NULL ) ) )
----
86

skipif mysql # not compatible
query I rowsort label-741
SELECT 44 + SUM ( DISTINCT + 42 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NOT ( NOT ( - col1 IS NULL ) ) )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-742
SELECT + MAX( ALL - - 31 ) * - 3 FROM tab0 cor0
----
-93

skipif mysql # not compatible
query I rowsort label-742
SELECT + MAX ( ALL - - 31 ) * - 3 FROM tab0 cor0
----
-93

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

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

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

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

query I rowsort
SELECT + - col1 * + 80 + + ( - - 33 ) FROM tab0 AS cor0
----
-1647
-47
-6447

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

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

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

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 BETWEEN - ( col1 ) AND 74
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT ( + col2 ) * + col2 AS col2 FROM tab1
----
3481
4624
9216

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

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

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

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

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

query I rowsort
SELECT DISTINCT col2 - - - col1 * + - 65 FROM tab0 cor0 WHERE col2 * col1 < + - col1 + + 16
----

onlyif mysql # aggregate syntax: 
query I rowsort label-756
SELECT ALL SUM( - col2 ) FROM tab0 AS cor0 WHERE NULL IN ( 80 )
----
NULL

skipif mysql # not compatible
query I rowsort label-756
SELECT ALL SUM ( - col2 ) FROM tab0 AS cor0 WHERE NULL IN ( 80 )
----
NULL

query I rowsort
SELECT DISTINCT + - 94 + col1 AS col1 FROM tab0 AS cor0
----
-13
-73
-93

query I rowsort
SELECT col2 + - + col1 + + 32 AS col1 FROM tab0
----
-2
130
21

query I rowsort
SELECT + 12 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d4f5a8e032294c3b9342821617800972

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

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

query I rowsort
SELECT ALL - col2 AS col0 FROM tab2 AS cor0 WHERE + 6 * col0 / - - 46 > - 5
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-763
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) AS col2, - 81 col2 FROM tab0 AS cor0
----
9
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-763
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) AS col2, - 81 col2 FROM tab0 AS cor0
----
9
-81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-764
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + col1, CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-764
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + col1, CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT - 38 + - 70 + - col1 * + 67 AS col1 FROM tab1 AS cor0
----
-1046
-3257
-443

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-766
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE CAST( - 60 AS SIGNED ) <= ( - col1 + - + col1 )
----
2

skipif mysql # not compatible
query I rowsort label-766
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE CAST ( - 60 AS INTEGER ) <= ( - col1 + - + col1 )
----
2

query I rowsort
SELECT ALL - col1 FROM tab0 AS cor0 WHERE 30 = col2
----

query I rowsort
SELECT ALL - col2 + 83 - + ( + col2 ) AS col2 FROM tab0 cor0
----
-11
-115
63

onlyif mysql # aggregate syntax: 
query I rowsort label-769
SELECT SUM( + col0 ) FROM tab1 AS cor0 WHERE NULL < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-769
SELECT SUM ( + col0 ) FROM tab1 AS cor0 WHERE NULL < NULL
----
NULL

query I rowsort
SELECT ALL - ( + 68 ) - - col2 FROM tab2 AS cor0
----
-10
-28
-45

query I rowsort
SELECT - col1 + - col1 - + col2 * - + 79 AS col0 FROM tab0
----
3551
748
7819

query I rowsort
SELECT + col0 + + + 42 + - 43 AS col2 FROM tab0
----
14
86
96

query I rowsort
SELECT 75 * 36 * - col1 + + col0 AS col2 FROM tab1
----
-126809
-13415
-37749

query I rowsort
SELECT ALL col1 * + 22 FROM tab1
----
1034
110
308

query I rowsort
SELECT ALL + - col0 * - 54 FROM tab0 AS cor0
----
4698
5238
810

query I rowsort
SELECT col2 FROM tab1 WHERE NOT - col2 >= ( 81 )
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-777
SELECT ALL 32 * MAX( ALL + col0 ) AS col0 FROM tab1
----
2912

skipif mysql # not compatible
query I rowsort label-777
SELECT ALL 32 * MAX ( ALL + col0 ) AS col0 FROM tab1
----
2912

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

query I rowsort
SELECT + 99 * - 33 AS col2 FROM tab0
----
-3267
-3267
-3267

query I rowsort
SELECT ALL - 19 AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4

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

query II rowsort
SELECT - col0 AS col0, 49 + - - col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 / + + 87 * - 77 / + - col2 + + 76 * col2 > NULL
----

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

skipif mysql # not compatible
query I rowsort label-784
SELECT CAST ( + + 87 AS INTEGER ) AS col0 FROM tab0
----
87
87
87

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

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

query I rowsort
SELECT - col1 * - col2 * - 66 + + col2 AS col0 FROM tab1
----
-19411
-210868
-88608

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

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

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

query I rowsort
SELECT DISTINCT - + col0 + 0 AS col1 FROM tab1 WHERE NULL IS NULL
----
-51
-85
-91

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

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

query I rowsort
SELECT + 27 * col2 AS col2 FROM tab1 AS cor0
----
1593
1836
2592

onlyif mysql # DIV for integer division: 
query I rowsort label-792
SELECT ( - col0 ) DIV 10 col2 FROM tab0 AS cor0
----
-1
-8
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-792
SELECT ( - col0 ) / 10 col2 FROM tab0 AS cor0
----
-1
-8
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - + ( + col2 ) * + 61 * - ( + col1 ) - - col1 * + col1 col0 FROM tab0 AS cor0
----
13272
238869
6041

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

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

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

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

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

query II rowsort
SELECT ALL 0, col1 AS col1 FROM tab1 AS cor0
----
0
14
0
47
0
5

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

onlyif mysql # DIV for integer division: 
query I rowsort label-799
SELECT DISTINCT + 56 DIV col2 * col1 + col1 - - col1 * + col2 FROM tab0 AS cor0
----
100
336
3969

skipif mysql # not compatible
query I rowsort label-799
SELECT DISTINCT + 56 / col2 * col1 + col1 - - col1 * + col2 FROM tab0 AS cor0
----
100
336
3969

onlyif mysql # DIV for integer division: 
query I rowsort label-800
SELECT + - 65 * 26 * col1 DIV col2 + - 17 FROM tab1 AS cor0
----
-1185
-160
-263

skipif mysql # not compatible
query I rowsort label-800
SELECT + - 65 * 26 * col1 / col2 + - 17 FROM tab1 AS cor0
----
-1185
-160
-263

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-801
SELECT DISTINCT - SUM( DISTINCT 21 ) + CAST( AVG ( - 31 ) AS SIGNED ) FROM tab1 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-801
SELECT DISTINCT - SUM ( DISTINCT 21 ) + CAST ( AVG ( - 31 ) AS INTEGER ) FROM tab1 AS cor0
----
-52

query I rowsort
SELECT - col1 + - col1 + + col2 AS col2 FROM tab1 AS cor0
----
-26
49
68

query I rowsort
SELECT ALL - 62 * + col1 - - + col1 FROM tab2
----
-3111
-4087
-4697

query I rowsort
SELECT DISTINCT - col0 + - 11 AS col0 FROM tab1 WHERE NOT col2 IS NULL
----
-102
-62
-96

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 63 col2, + col2 AS col1 FROM tab0 WHERE NOT - - col1 IS NULL
----
63
10
63
47
63
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-808
SELECT - + SUM( - - ( - + col2 ) ) DIV + MIN( - col0 ) FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-808
SELECT - + SUM ( - - ( - + col2 ) ) / + MIN ( - col0 ) FROM tab0 cor0
----
-1

query I rowsort
SELECT ALL - 2 * + + col2 AS col0 FROM tab0 AS cor0
----
-198
-20
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-810
SELECT + - col0 DIV + 56 + + col1 AS col1 FROM tab0 AS cor0
----
0
20
81

skipif mysql # not compatible
query I rowsort label-810
SELECT + - col0 / + 56 + + col1 AS col1 FROM tab0 AS cor0
----
0
20
81

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

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

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

query I rowsort
SELECT + - col1 / - + 93 * + 68 AS col0 FROM tab2 WHERE NOT ( col0 ) IS NOT NULL
----

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

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

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

skipif mysql # not compatible
query I rowsort label-815
SELECT ALL - CAST ( 16 AS INTEGER ) FROM tab1
----
-16
-16
-16

query I rowsort
SELECT ALL ( + 60 ) * 44 FROM tab2 AS cor0
----
2640
2640
2640

query I rowsort
SELECT - 64 * - - 87 FROM tab0 AS cor0
----
-5568
-5568
-5568

query I rowsort
SELECT - + col1 * + 63 FROM tab0 AS cor0
----
-1323
-5103
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 74 * 38 * col1 * - col2 * + ( + col1 ) col0 FROM tab2 AS cor0
----
-168222276
-666893920
-732137944

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-821
SELECT ALL 49 DIV COUNT( * ) FROM tab0 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-821
SELECT ALL 49 / COUNT ( * ) FROM tab0 AS cor0
----
16

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-823
SELECT ALL - col2 DIV - 1 AS col2 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-823
SELECT ALL - col2 / - 1 AS col2 FROM tab0 AS cor0
----
10
47
99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-825
SELECT ALL COUNT( * ) * - MAX( col0 ) FROM tab2
----
-225

skipif mysql # not compatible
query I rowsort label-825
SELECT ALL COUNT ( * ) * - MAX ( col0 ) FROM tab2
----
-225

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-826
SELECT DISTINCT * FROM tab0 WHERE - col1 BETWEEN NULL AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-826
SELECT DISTINCT * FROM tab0 WHERE - col1 BETWEEN NULL AND CAST ( NULL AS INTEGER )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-828
SELECT + col1 AS col0, CAST( NULL AS SIGNED ), + col1 AS col0 FROM tab2
----
9 values hashing to c5e30744665dd7cc427e3888bee2df4a

skipif mysql # not compatible
query III rowsort label-828
SELECT + col1 AS col0, CAST ( NULL AS INTEGER ), + col1 AS col0 FROM tab2
----
9 values hashing to c5e30744665dd7cc427e3888bee2df4a

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 AS col1, ( col2 ) col1 FROM tab2
----
46
23
64
40
75
58

query I rowsort
SELECT DISTINCT - - col1 + + col2 - 91 AS col1 FROM tab0 AS cor0
----
-60
37
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-832
SELECT CAST( - col2 AS SIGNED ) + + col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-832
SELECT CAST ( - col2 AS INTEGER ) + + col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-833
SELECT DISTINCT - MIN( - + 12 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
12

skipif mysql # not compatible
query I rowsort label-833
SELECT DISTINCT - MIN ( - + 12 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
12

query I rowsort
SELECT - 61 FROM tab1 WHERE NULL <> + col2
----

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN + col2 * - col2 AND ( 46 * col2 + + + col2 )
----
46
64
75

query I rowsort
SELECT col1 - - - 96 * - 64 AS col1 FROM tab1 AS cor0
----
6149
6158
6191

query I rowsort
SELECT - 31 - - col1 AS col0 FROM tab0 AS cor0
----
-10
-30
50

onlyif mysql # aggregate syntax: 
query I rowsort label-838
SELECT ALL - - SUM( DISTINCT ( - col2 ) ) + 66 FROM tab2 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-838
SELECT ALL - - SUM ( DISTINCT ( - col2 ) ) + 66 FROM tab2 AS cor0
----
-55

query I rowsort
SELECT ALL + 60 * + 59 - col0 - - 49 + - 59 * + - col0 * - col1 AS col0 FROM tab0
----
-104291
-2231
-68111

onlyif mysql # aggregate syntax: 
query I rowsort label-840
SELECT 75 + COUNT( * ) + - 95 + - + SUM( ALL col0 ) * 10 col2 FROM tab2
----
-1867

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-840
SELECT 75 + COUNT ( * ) + - 95 + - + SUM ( ALL col0 ) * 10 col2 FROM tab2
----
-1867

query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 <> + ( + - 10 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-842
SELECT + col0 * 43 + - CAST( col1 AS SIGNED ) AS col0 FROM tab2
----
1927
2675
3158

skipif mysql # not compatible
query I rowsort label-842
SELECT + col0 * 43 + - CAST ( col1 AS INTEGER ) AS col0 FROM tab2
----
1927
2675
3158

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-843
SELECT ALL 93 DIV - 48 - - SUM( col1 ) FROM tab0
----
102

skipif mysql # not compatible
query I rowsort label-843
SELECT ALL 93 / - 48 - - SUM ( col1 ) FROM tab0
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-844
SELECT DISTINCT COUNT( * ) - + - 54 AS col0 FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-844
SELECT DISTINCT COUNT ( * ) - + - 54 AS col0 FROM tab2
----
57

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + 10 ) <> - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-846
SELECT COUNT( * ) * 62 AS col0 FROM tab1
----
186

skipif mysql # not compatible
query I rowsort label-846
SELECT COUNT ( * ) * 62 AS col0 FROM tab1
----
186

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-848
SELECT + + col0 DIV col1 DIV - col0, CAST( 47 AS SIGNED ) AS col1 FROM tab1 cor0
----
0
47
0
47
0
47

skipif mysql # not compatible
query II rowsort label-848
SELECT + + col0 / col1 / - col0, CAST ( 47 AS INTEGER ) AS col1 FROM tab1 cor0
----
0
47
0
47
0
47

query I rowsort
SELECT DISTINCT - + 68 * 36 * - 89 FROM tab2 AS cor0
----
217872

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 * - 48 NOT IN ( col0 )
----

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

query I rowsort
SELECT col0 * 3 AS col1 FROM tab1 AS cor0
----
153
255
273

query I rowsort
SELECT DISTINCT - 51 + - col1 FROM tab2 AS cor0
----
-102
-118
-128

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-854
SELECT DISTINCT - col1 AS col1, + col2 DIV + col1 FROM tab2 AS cor0 WHERE ( NOT - CAST( NULL AS SIGNED ) IS NOT NULL )
----
-51
0
-67
0
-77
0

skipif mysql # not compatible
query II rowsort label-854
SELECT DISTINCT - col1 AS col1, + col2 / + col1 FROM tab2 AS cor0 WHERE ( NOT - CAST ( NULL AS INTEGER ) IS NOT NULL )
----
-51
0
-67
0
-77
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) < - 0
----

onlyif mysql # DIV for integer division: 
query II rowsort label-856
SELECT + col1 * 53 DIV - 20 + - col0 * + 66 AS col0, col2 * + col2 AS col0 FROM tab1
----
-3403
9216
-5623
3481
-6130
4624

skipif mysql # not compatible
query II rowsort label-856
SELECT + col1 * 53 / - 20 + - col0 * + 66 AS col0, col2 * + col2 AS col0 FROM tab1
----
-3403
9216
-5623
3481
-6130
4624

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

query I rowsort
SELECT DISTINCT - ( + ( - ( - 15 ) ) ) AS col1 FROM tab2 WHERE col1 > ( - + 94 - - + col0 )
----
-15

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

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

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

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

query I rowsort
SELECT + - ( - col1 ) * + - 97 FROM tab1 AS cor0
----
-1358
-4559
-485

query I rowsort
SELECT DISTINCT - col2 * - col0 AS col1 FROM tab2 AS cor0 WHERE 5 IS NOT NULL
----
1058
2560
4350

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

query I rowsort
SELECT ALL col1 + + - col2 - - ( 76 ) + 71 + - + col2 + + col1 AS col0 FROM tab2 AS cor0
----
165
203
221

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-866
SELECT - 33 + + CAST( + col2 AS SIGNED ) FROM tab1 AS cor0
----
26
35
63

skipif mysql # not compatible
query I rowsort label-866
SELECT - 33 + + CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0
----
26
35
63

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

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

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

skipif mysql # not compatible
query I rowsort label-869
SELECT - 90 / col0 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

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

query III rowsort
SELECT ALL * FROM tab1 WHERE - 80 = + + 60
----

query I rowsort
SELECT DISTINCT - 98 * + col1 - - col1 - col2 * - col2 FROM tab2 WHERE NULL < - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-873
SELECT - 38 * + + SUM( DISTINCT - col1 ) FROM tab1
----
2508

skipif mysql # not compatible
query I rowsort label-873
SELECT - 38 * + + SUM ( DISTINCT - col1 ) FROM tab1
----
2508

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

query I rowsort
SELECT - ( + 88 ) AS col1 FROM tab2
----
-88
-88
-88

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-879
SELECT DISTINCT - MAX( 27 ) col2 FROM tab2
----
-27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-879
SELECT DISTINCT - MAX ( 27 ) col2 FROM tab2
----
-27

query I rowsort
SELECT col0 * + 28 * + col0 FROM tab2
----
114688
157500
59248

query II rowsort
SELECT ALL - col0 * + - 23 + + 54, + 10 AS col1 FROM tab2 AS cor0
----
1112
10
1526
10
1779
10

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 60 + + col0 col2 FROM tab2 cor0
----
106
124
135

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

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

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

skipif mysql # not compatible
query I rowsort label-886
SELECT + COUNT ( * ) / + ( 65 ) FROM tab0
----
0

query I rowsort
SELECT col2 + + col1 * + + col2 FROM tab1
----
1440
3264
354

query I rowsort
SELECT - col0 + + 43 FROM tab2
----
-21
-3
-32

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

query II rowsort
SELECT col2 + + 96 - col1 + + + col1 * - 91, 84 AS col0 FROM tab2
----
-4573
84
-6010
84
-6948
84

onlyif mysql # aggregate syntax: 
query I rowsort label-891
SELECT + MAX( 36 ) AS col0 FROM tab1, tab0 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-891
SELECT + MAX ( 36 ) AS col0 FROM tab1, tab0 AS cor0
----
36

query I rowsort
SELECT - 87 * col1 * - col2 + + 19 + - col0 AS col0 FROM tab2 AS cor0
----
102024
267915
338026

query I rowsort
SELECT 91 + + + 56 FROM tab0 AS cor0
----
147
147
147

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IN ( col2 + - col2 )
----

query I rowsort
SELECT 52 * + - col2 AS col1 FROM tab0
----
-2444
-5148
-520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-896
SELECT - MIN( CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-896
SELECT - MIN ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
NULL

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

query I rowsort
SELECT + 22 * 27 FROM tab1
----
594
594
594

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

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-904
SELECT - CAST( NULL AS DECIMAL ) * - 83 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-904
SELECT - CAST ( NULL AS REAL ) * - 83 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - 80 + - 45 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

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

query I rowsort
SELECT - 67 * 81 FROM tab2 AS cor0
----
-5427
-5427
-5427

onlyif mysql # aggregate syntax: 
query I rowsort label-908
SELECT - SUM( ALL - col2 ) FROM tab0 WHERE + col2 / 73 IS NOT NULL OR NOT NULL IS NULL
----
156

skipif mysql # not compatible
query I rowsort label-908
SELECT - SUM ( ALL - col2 ) FROM tab0 WHERE + col2 / 73 IS NOT NULL OR NOT NULL IS NULL
----
156

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-910
SELECT 85, 48 * + COUNT( * ) DIV + COUNT( * ) AS col0 FROM tab0
----
85
48

skipif mysql # not compatible
query II rowsort label-910
SELECT 85, 48 * + COUNT ( * ) / + COUNT ( * ) AS col0 FROM tab0
----
85
48

query II rowsort
SELECT 92 AS col0, 66 AS col2 FROM tab2
----
92
66
92
66
92
66

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

query II rowsort
SELECT DISTINCT - ( + col2 ) * - col2 * - + col2 AS col2, 47 AS col0 FROM tab1
----
-205379
47
-314432
47
-884736
47

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

onlyif mysql # aggregate syntax: 
query I rowsort label-915
SELECT DISTINCT 47 * + COUNT( * ) AS col0 FROM tab1
----
141

skipif mysql # not compatible
query I rowsort label-915
SELECT DISTINCT 47 * + COUNT ( * ) AS col0 FROM tab1
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-916
SELECT ALL + MIN( ( + 36 ) ) FROM tab0 WHERE NULL NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-916
SELECT ALL + MIN ( ( + 36 ) ) FROM tab0 WHERE NULL NOT BETWEEN NULL AND NULL
----
NULL

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-920
SELECT ALL - col1 / + 99 / + + 33 * + 54 + + + CAST( - 93 AS SIGNED ) col1 FROM tab0 WHERE ( NOT - 11 <= - - col1 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-920
SELECT ALL - col1 / + 99 / + + 33 * + 54 + + + CAST ( - 93 AS INTEGER ) col1 FROM tab0 WHERE ( NOT - 11 <= - - col1 )
----

query I rowsort
SELECT + 75 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

query II rowsort
SELECT - + 80 * - 38 AS col2, + 96 FROM tab2 AS cor0
----
3040
96
3040
96
3040
96

query I rowsort
SELECT ALL col1 + + col0 + + col1 AS col0 FROM tab2 cor0
----
148
209
218

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 47 ) + + col0 col0 FROM tab0 AS cor0
----
-32
40
50

query II rowsort
SELECT - col2 + + col1, col0 FROM tab2 AS cor0
----
28
46
37
64
9
75

query I rowsort
SELECT ALL + - col2 + - col0 * + 40 * col2 + - ( 57 ) AS col1 FROM tab0 AS cor0
----
-28304
-34867
-384276

query I rowsort
SELECT col1 + + col1 * col1 * - - ( col2 ) AS col0 FROM tab1
----
1480
150259
18830

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

query I rowsort
SELECT ALL + ( - 52 ) + + + 6 FROM tab0 WHERE NOT + col2 + - - col2 + + - ( - + col2 ) / + col2 + + 44 / col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-930
SELECT ALL + COUNT( * ) FROM tab2 WHERE col0 <= + 39 * 48 * 22
----
3

skipif mysql # not compatible
query I rowsort label-930
SELECT ALL + COUNT ( * ) FROM tab2 WHERE col0 <= + 39 * 48 * 22
----
3

query I rowsort
SELECT DISTINCT - 52 + - ( 80 ) + - - col0 FROM tab0 AS cor0
----
-117
-35
-45

query I rowsort
SELECT DISTINCT + - 66 + - + 90 * + col0 AS col0 FROM tab2 AS cor0
----
-4206
-5826
-6816

onlyif mysql # aggregate syntax: 
query I rowsort label-933
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab2 cor0 WHERE NULL BETWEEN + 90 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-933
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab2 cor0 WHERE NULL BETWEEN + 90 AND NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-934
SELECT + AVG ( ALL + col1 ) FROM tab2 WHERE - 55 * + + 65 * - CAST( - col0 AS DECIMAL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-934
SELECT + AVG ( ALL + col1 ) FROM tab2 WHERE - 55 * + + 65 * - CAST ( - col0 AS REAL ) IS NULL
----
NULL

query I rowsort
SELECT ALL - + 72 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6

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

query I rowsort
SELECT ALL AVG ( + col2 ) FROM tab2 cor0 WHERE NOT NULL IS NULL
----
NULL

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT - + col2 AS col1 FROM tab2 WHERE NOT - + ( + + col2 ) * + 70 / col0 IS NOT NULL
----

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

query II rowsort
SELECT + col2, col2 FROM tab0 WHERE NOT NULL IS NULL
----

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

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

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

query I rowsort
SELECT - col2 * + - col2 + + col1 FROM tab1
----
3486
4671
9230

onlyif mysql # aggregate syntax: 
query I rowsort label-950
SELECT ALL - - 57 + + + COUNT( ALL + 38 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
66

skipif mysql # not compatible
query I rowsort label-950
SELECT ALL - - 57 + + + COUNT ( ALL + 38 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-951
SELECT + 23 / - SUM( ALL col2 ) FROM tab0 WHERE ( + - 14 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-951
SELECT + 23 / - SUM ( ALL col2 ) FROM tab0 WHERE ( + - 14 ) IS NULL
----
NULL

query I rowsort
SELECT + ( 34 ) FROM tab1
----
34
34
34

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-954
SELECT ALL CAST( col0 AS SIGNED ) + - ( - col2 ) * - + col1 * - col1 AS col2, 38 AS col2 FROM tab2 AS cor0
----
237224
38
260437
38
59869
38

skipif mysql # not compatible
query II rowsort label-954
SELECT ALL CAST ( col0 AS INTEGER ) + - ( - col2 ) * - + col1 * - col1 AS col2, 38 AS col2 FROM tab2 AS cor0
----
237224
38
260437
38
59869
38

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

onlyif mysql # aggregate syntax: 
query I rowsort label-956
SELECT DISTINCT - 35 + 50 * - ( + 22 ) + + COUNT( * ) col2 FROM tab2 AS cor0
----
-1132

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-956
SELECT DISTINCT - 35 + 50 * - ( + 22 ) + + COUNT ( * ) col2 FROM tab2 AS cor0
----
-1132

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

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

query I rowsort
SELECT col2 FROM tab0 WHERE + 63 * - col0 IS NOT NULL
----
10
47
99

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

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

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

query I rowsort
SELECT col1 + + - ( - 33 ) AS col2 FROM tab0
----
114
34
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-962
SELECT + CAST( - + SUM( - 71 ) AS SIGNED ) AS col2 FROM tab0 WHERE col1 IS NOT NULL
----
213

skipif mysql # not compatible
query I rowsort label-962
SELECT + CAST ( - + SUM ( - 71 ) AS INTEGER ) AS col2 FROM tab0 WHERE col1 IS NOT NULL
----
213

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

skipif mysql # not compatible
query I rowsort label-963
SELECT COUNT ( + - col0 ) + - 91 FROM tab1
----
-88

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col0 <> - - 13 * - - col0
----

query I rowsort
SELECT + - 14 AS col2 FROM ( tab1 cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to d321461994ba49c3a70fa6373032fc94

onlyif mysql # aggregate syntax: 
query I rowsort label-967
SELECT DISTINCT COUNT( ALL col1 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-967
SELECT DISTINCT COUNT ( ALL col1 ) AS col0 FROM tab2
----
3

query II rowsort
SELECT DISTINCT - col0 AS col1, + 35 * - 13 FROM tab0 AS cor0
----
-15
-455
-87
-455
-97
-455

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) >= 78 * - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * 21 * - 78 col0, col2 AS col0 FROM tab0 AS cor0
----
-142506
10
-158886
99
-24570
47

query I rowsort
SELECT col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----

query II rowsort
SELECT DISTINCT - - col1 * col1 + - - 0 AS col0, - col1 FROM tab1 AS cor0
----
196
-14
2209
-47
25
-5

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

query I rowsort
SELECT DISTINCT 33 * - - ( col1 ) + - col2 AS col2 FROM tab0 AS cor0
----
-66
2626
683

query II rowsort
SELECT col1 * col0 AS col2, col1 * - 13 FROM tab2
----
2346
-663
4928
-1001
5025
-871

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + ( + 75 ) / - - col0 + col1 * + - col2 NOT IN ( + col0, 53 )
----

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

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

query I rowsort
SELECT col1 * - - 77 FROM tab1
----
1078
3619
385

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-980
SELECT ALL col0 * - CAST( - - col1 AS SIGNED ) FROM tab2
----
-2346
-4928
-5025

skipif mysql # not compatible
query I rowsort label-980
SELECT ALL col0 * - CAST ( - - col1 AS INTEGER ) FROM tab2
----
-2346
-4928
-5025

query I rowsort
SELECT DISTINCT - col2 + + col2 FROM tab2 WHERE + col2 + + 10 BETWEEN NULL AND 74 * - 86
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-983
SELECT ALL - MAX( ALL - col0 ) FROM tab0 AS cor0 WHERE NOT 39 >= - 17 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-983
SELECT ALL - MAX ( ALL - col0 ) FROM tab0 AS cor0 WHERE NOT 39 >= - 17 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + + col2 + - 70 AS col0 FROM tab0 AS cor0
----
-23
-60
29

query I rowsort
SELECT DISTINCT + ( - - col1 ) + - + 69 FROM tab0 cor0
----
-48
-68
12

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

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

query I rowsort
SELECT DISTINCT + 9 / + + 29 * - col2 + col2 AS col0 FROM tab0 WHERE NOT + ( - - col2 ) IS NOT NULL
----

query I rowsort
SELECT col1 + - col1 * + col1 * col2 FROM tab0 AS cor0
----
-308286
-4389
-98

query I rowsort
SELECT ALL + 57 + - 33 FROM tab1 AS cor0
----
24
24
24

query I rowsort
SELECT - 15 + - 28 FROM tab0 AS cor0
----
-43
-43
-43

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL > col2 / + - 65 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-993
SELECT DISTINCT - + SUM( - col0 ) + 37 FROM tab2 AS cor0
----
222

skipif mysql # not compatible
query I rowsort label-993
SELECT DISTINCT - + SUM ( - col0 ) + 37 FROM tab2 AS cor0
----
222

query I rowsort
SELECT ( - - col2 ) + - col1 + - - 41 - - col0 * + - 12 * + 89 FROM tab2 AS cor0
----
-49115
-68348
-80068

query I rowsort
SELECT ALL + col1 - - col2 - + + col2 AS col0 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-996
SELECT - 46 AS col0, ( - - CAST( NULL AS SIGNED ) ) FROM tab0
----
-46
NULL
-46
NULL
-46
NULL

skipif mysql # not compatible
query II rowsort label-996
SELECT - 46 AS col0, ( - - CAST ( NULL AS INTEGER ) ) FROM tab0
----
-46
NULL
-46
NULL
-46
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col0 ) col0 FROM tab2
----
46
64
75

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

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

query I rowsort
SELECT + - col2 AS col1 FROM tab0 WHERE + col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1000
SELECT ALL 58 * - - COUNT( * ) AS col0 FROM tab1
----
174

skipif mysql # not compatible
query I rowsort label-1000
SELECT ALL 58 * - - COUNT ( * ) AS col0 FROM tab1
----
174

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1002
SELECT ALL - SUM( DISTINCT - col1 ) AS col1, SUM( + col2 ) AS col2 FROM tab2 AS cor0
----
195
121

skipif mysql # not compatible
query II rowsort label-1002
SELECT ALL - SUM ( DISTINCT - col1 ) AS col1, SUM ( + col2 ) AS col2 FROM tab2 AS cor0
----
195
121

query I rowsort
SELECT DISTINCT + 3 - + ( + 70 ) AS col1 FROM tab1 AS cor0
----
-67

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

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

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

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

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

query I rowsort
SELECT ALL col1 * + ( + col0 ) - 95 FROM tab1 AS cor0
----
330
4182
619

onlyif mysql # aggregate syntax: 
query II rowsort label-1009
SELECT - - 34 * + + 85, MAX( DISTINCT + col1 ) + COUNT( * ) AS col2 FROM tab0 AS cor0
----
2890
84

skipif mysql # not compatible
query II rowsort label-1009
SELECT - - 34 * + + 85, MAX ( DISTINCT + col1 ) + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
2890
84

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

query I rowsort
SELECT + ( + 4 ) FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + 63, 89, - col0 * - col2 * - + col2 )
----

query I rowsort
SELECT col1 * + col2 + - col2 AS col2 FROM tab0 AS cor0
----
0
200
3760

query II rowsort
SELECT + 21, + col0 * + 24 AS col2 FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
21
2088
21
2328
21
360

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

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

query I rowsort
SELECT ALL - col2 * + 80 * + - col0 AS col1 FROM tab1 WHERE NOT NULL >= - col2 * - col0
----

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

query I rowsort
SELECT col0 - - col0 FROM tab2 WHERE NOT + col2 IS NULL
----
128
150
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1018
SELECT DISTINCT CAST( SUM( - col0 ) AS SIGNED ) AS col1 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-1018
SELECT DISTINCT CAST ( SUM ( - col0 ) AS INTEGER ) AS col1 FROM tab2
----
-185

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

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

skipif mysql # not compatible
query I rowsort label-1020
SELECT + MIN ( 39 ) AS col1 FROM tab1
----
39

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

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

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

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

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

query II rowsort
SELECT ALL col1, - col1 + - 35 + + + col2 FROM tab1 cor0
----
14
47
47
-14
5
19

query I rowsort
SELECT ALL + - 45 AS col1 FROM tab1 AS cor0
----
-45
-45
-45

query I rowsort
SELECT + + 47 AS col2 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

onlyif mysql # aggregate syntax: 
query I rowsort label-1027
SELECT ALL SUM( ALL + col2 ) + MAX( - col0 ) AS col1 FROM tab0 WHERE + - col0 + - col2 > + + 59 * ( + + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1027
SELECT ALL SUM ( ALL + col2 ) + MAX ( - col0 ) AS col1 FROM tab0 WHERE + - col0 + - col2 > + + 59 * ( + + col0 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1028
SELECT ALL + MIN( + col1 ) * COUNT( * ) FROM tab2 AS cor0 WHERE + col2 NOT BETWEEN - col0 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1028
SELECT ALL + MIN ( + col1 ) * COUNT ( * ) FROM tab2 AS cor0 WHERE + col2 NOT BETWEEN - col0 AND NULL
----
NULL

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

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL >= col0 + - + 35 * + 25
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1031
SELECT ALL + col0 + + + col0 DIV col2 AS col0 FROM tab2 AS cor0
----
48
65
76

skipif mysql # not compatible
query I rowsort label-1031
SELECT ALL + col0 + + + col0 / col2 AS col0 FROM tab2 AS cor0
----
48
65
76

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

query I rowsort
SELECT DISTINCT col2 * + - ( 84 ) * + - 25 + + col0 * col2 * col0 - + col2 AS col1 FROM tab0 cor0
----
109228
1139292
96680

query I rowsort
SELECT + col2 * - col1 - + + 91 FROM tab0 AS cor0
----
-190
-301
-3898

query I rowsort
SELECT ALL + col0 - - + col0 * + + col1 + + col1 AS col0 FROM tab2
----
2443
5069
5167

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1036
SELECT ALL - COUNT( * ) * + - CAST( - ( + - COUNT( * ) ) AS SIGNED ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1036
SELECT ALL - COUNT ( * ) * + - CAST ( - ( + - COUNT ( * ) ) AS INTEGER ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT + col1 * ( 25 ) FROM tab0
----
2025
25
525

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1040
SELECT + - SUM( 71 ) AS col2 FROM tab1 cor0
----
-213

skipif mysql # not compatible
query I rowsort label-1040
SELECT + - SUM ( 71 ) AS col2 FROM tab1 cor0
----
-213

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * + ( col2 ) > + 24 + + 97
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1043
SELECT - col2, + ( + - 41 ) * CAST( + ( - 87 ) AS SIGNED ) col0 FROM tab0
----
-10
3567
-47
3567
-99
3567

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1043
SELECT - col2, + ( + - 41 ) * CAST ( + ( - 87 ) AS INTEGER ) col0 FROM tab0
----
-10
3567
-47
3567
-99
3567

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - 35 IS NULL
----

query I rowsort
SELECT DISTINCT col1 * + + 80 + + ( col0 ) FROM tab2 cor0
----
4126
5435
6224

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1048
SELECT 3 * - + CAST( + col2 AS SIGNED ) FROM tab0 AS cor0
----
-141
-297
-30

skipif mysql # not compatible
query I rowsort label-1048
SELECT 3 * - + CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0
----
-141
-297
-30

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

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

query I rowsort
SELECT + + 3 * + 6 FROM tab1 AS cor0
----
18
18
18

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

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

query I rowsort
SELECT + 94 + col0 FROM tab1
----
145
179
185

query I rowsort
SELECT - 73 + - col1 FROM tab1
----
-120
-78
-87

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1056
SELECT ALL - - CAST( 30 AS SIGNED ) + COUNT( - + col2 ) FROM tab2 cor0
----
33

skipif mysql # not compatible
query I rowsort label-1056
SELECT ALL - - CAST ( 30 AS INTEGER ) + COUNT ( - + col2 ) FROM tab2 cor0
----
33

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

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

query II rowsort
SELECT ALL 67, + col2 AS col1 FROM tab2
----
67
23
67
40
67
58

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

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

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

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

query I rowsort
SELECT DISTINCT - col0 * - - ( + 55 ) FROM tab0
----
-4785
-5335
-825

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

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

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

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

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

query I rowsort
SELECT - col0 + + ( + 3 ) AS col2 FROM tab0 AS cor0
----
-12
-84
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-1066
SELECT - col0 DIV + col0 + + + 46 + + 80 - - - 10 AS col1 FROM tab2 AS cor0
----
115
115
115

skipif mysql # not compatible
query I rowsort label-1066
SELECT - col0 / + col0 + + + 46 + + 80 - - - 10 AS col1 FROM tab2 AS cor0
----
115
115
115

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1067
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 - + + CAST( NULL AS DECIMAL ) + - col1 = NULL
----

skipif mysql # not compatible
query III rowsort label-1067
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 - + + CAST ( NULL AS REAL ) + - col1 = NULL
----

query I rowsort
SELECT DISTINCT col2 - - - col0 FROM tab1 cor0
----
-23
-26
45

onlyif mysql # DIV for integer division: 
query I rowsort label-1069
SELECT ALL + + 18 + col1 - + + col1 + - col1 * 77 DIV + ( + + 58 ) AS col2 FROM tab2 AS cor0
----
-49
-70
-84

skipif mysql # not compatible
query I rowsort label-1069
SELECT ALL + + 18 + col1 - + + col1 + - col1 * 77 / + ( + + 58 ) AS col2 FROM tab2 AS cor0
----
-49
-70
-84

query I rowsort
SELECT ALL col2 - 22 FROM tab0 AS cor0
----
-12
25
77

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col1 - + + 33 col1 FROM tab1
----
-8
163
2176

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1073
SELECT - - col0 + + 34 - + - CAST( 27 AS SIGNED ) - + - col0 * col0 AS col0 FROM tab1 WHERE - col1 <= - col0
----

skipif mysql # not compatible
query I rowsort label-1073
SELECT - - col0 + + 34 - + - CAST ( 27 AS INTEGER ) - + - col0 * col0 AS col0 FROM tab1 WHERE - col1 <= - col0
----

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

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

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

skipif mysql # not compatible
query I rowsort label-1076
SELECT DISTINCT + 0 * + 27 / col1 FROM tab1
----
0

query I rowsort
SELECT - 19 * + + col0 AS col2 FROM tab1
----
-1615
-1729
-969

query I rowsort
SELECT col2 * - + 34 FROM tab2
----
-1360
-1972
-782

onlyif mysql # aggregate syntax: 
query II rowsort label-1079
SELECT DISTINCT - 84 * - 51 col2, + MAX( ALL - col1 ) AS col1 FROM tab2 AS cor0
----
4284
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1079
SELECT DISTINCT - 84 * - 51 col2, + MAX ( ALL - col1 ) AS col1 FROM tab2 AS cor0
----
4284
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-1080
SELECT ALL SUM( DISTINCT 97 ) * + COUNT( * ) col2 FROM tab2 AS cor0
----
291

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1080
SELECT ALL SUM ( DISTINCT 97 ) * + COUNT ( * ) col2 FROM tab2 AS cor0
----
291

query I rowsort
SELECT ALL - col2 * - 5 FROM tab1
----
295
340
480

query I rowsort
SELECT ALL + col0 FROM tab2 WHERE - 28 + + col0 IS NULL
----

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

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

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

query II rowsort
SELECT + 65 * col1 * - col1, + col0 - - col1 AS col1 FROM tab2 AS cor0
----
-169065
97
-291785
142
-385385
141

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1088
SELECT DISTINCT - 35 + + col2 DIV + ( - - col2 ) FROM tab2 cor0
----
-34

skipif mysql # not compatible
query I rowsort label-1088
SELECT DISTINCT - 35 + + col2 / + ( - - col2 ) FROM tab2 cor0
----
-34

query II rowsort
SELECT ALL + + 55 AS col1, - 85 FROM tab0 AS cor0
----
55
-85
55
-85
55
-85

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1092
SELECT DISTINCT + SUM( ALL + + 15 ) col1 FROM tab0
----
45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1092
SELECT DISTINCT + SUM ( ALL + + 15 ) col1 FROM tab0
----
45

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

query III rowsort
SELECT * FROM tab2 WHERE - 91 BETWEEN ( + 31 ) AND ( NULL )
----

query I rowsort
SELECT ALL ( - 28 ) FROM tab2
----
-28
-28
-28

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1096
SELECT * FROM tab1 WHERE 72 * + 91 IN ( + + col0 + - col2, CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-1096
SELECT * FROM tab1 WHERE 72 * + 91 IN ( + + col0 + - col2, CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT col0 AS col1 FROM tab0 WHERE col0 * 40 + + 5 + - - 1 IS NOT NULL
----
15
87
97

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

query II rowsort
SELECT ALL 39 AS col0, + col2 AS col0 FROM tab0
----
39
10
39
47
39
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1100
SELECT DISTINCT + COUNT( * ) + - 86 AS col2 FROM tab2
----
-83

skipif mysql # not compatible
query I rowsort label-1100
SELECT DISTINCT + COUNT ( * ) + - 86 AS col2 FROM tab2
----
-83

query I rowsort
SELECT + col1 * - - col1 + + + 69 + col0 * - 65 AS col2 FROM tab0
----
-5145
-6235
5655

query I rowsort
SELECT DISTINCT - col1 + + + col0 * + 47 AS col2 FROM tab2 AS cor0
----
2111
2931
3458

onlyif mysql # aggregate syntax: 
query I rowsort label-1103
SELECT DISTINCT + COUNT( * ) + - - SUM( 98 ) FROM tab0 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-1103
SELECT DISTINCT + COUNT ( * ) + - - SUM ( 98 ) FROM tab0 AS cor0
----
297

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 * - - ( col2 ) * + col0 <> + - 48
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1105
SELECT ALL MIN ( + 77 ) col2 FROM tab0 AS cor0
----
77

query II rowsort
SELECT ALL - col1 + + 40 AS col2, + col2 * - 75 * - col0 + + col2 * - col0 FROM tab1 AS cor0
----
-7
457912
26
362304
35
371110

query I rowsort
SELECT - col2 + + + 71 FROM tab2 AS cor0
----
13
31
48

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1109
SELECT DISTINCT - MIN( DISTINCT + col1 ) * 51 FROM tab0 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-1109
SELECT DISTINCT - MIN ( DISTINCT + col1 ) * 51 FROM tab0 cor0
----
-51

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

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

query II rowsort
SELECT DISTINCT - 30, ( - 49 ) AS col1 FROM tab2
----
-30
-49

query I rowsort
SELECT ALL + 39 * - + col2 AS col1 FROM tab0
----
-1833
-3861
-390

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1114
SELECT + CAST( - 80 AS SIGNED ) FROM tab2
----
-80
-80
-80

skipif mysql # not compatible
query I rowsort label-1114
SELECT + CAST ( - 80 AS INTEGER ) FROM tab2
----
-80
-80
-80

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

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

query I rowsort
SELECT + 8 * + + 94 * - col2 * 89 * 58 FROM tab0 cor0
----
-182445728
-384300576
-38818240

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1119
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) NOT IN ( + 5 + CAST( col1 AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-1119
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) NOT IN ( + 5 + CAST ( col1 AS REAL ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 6 + + col0 col0 FROM tab0
----
103
21
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1121
SELECT ALL MIN( 17 ) + - ( + 31 + + COUNT( * ) ) * + MAX( col2 ) AS col2 FROM tab1
----
-3247

skipif mysql # not compatible
query I rowsort label-1121
SELECT ALL MIN ( 17 ) + - ( + 31 + + COUNT ( * ) ) * + MAX ( col2 ) AS col2 FROM tab1
----
-3247

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

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

query I rowsort
SELECT - 27 FROM tab2 WHERE NOT ( NULL ) >= ( - 69 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1125
SELECT COUNT( * ) col0 FROM tab2 WHERE + col0 <> NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1125
SELECT COUNT ( * ) col0 FROM tab2 WHERE + col0 <> NULL
----
0

query I rowsort
SELECT col1 AS col2 FROM tab1 WHERE NOT - col2 * - 79 <> ( - ( - 38 ) ) + col2 * + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1127
SELECT + COUNT( * ) + MAX( ALL + ( col1 ) ) AS col2 FROM tab2
----
80

skipif mysql # not compatible
query I rowsort label-1127
SELECT + COUNT ( * ) + MAX ( ALL + ( col1 ) ) AS col2 FROM tab2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-1128
SELECT DISTINCT COUNT( * ) AS col0 FROM tab1 WHERE NOT + 58 + - col0 IN ( + col1 )
----
3

skipif mysql # not compatible
query I rowsort label-1128
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab1 WHERE NOT + 58 + - col0 IN ( + col1 )
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - col0 * + 33 ) IN ( + 64 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 57 * col1 AS col2 FROM tab1
----
2679
285
798

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1131
SELECT DISTINCT CAST( + AVG ( ( + 67 ) ) AS SIGNED ) / COUNT( * ) AS col0 FROM tab1 WHERE NOT ( 18 ) * 22 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1131
SELECT DISTINCT CAST ( + AVG ( ( + 67 ) ) AS INTEGER ) / COUNT ( * ) AS col0 FROM tab1 WHERE NOT ( 18 ) * 22 = NULL
----
NULL

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

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

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

query I rowsort
SELECT DISTINCT + 92 AS col2 FROM tab0 WHERE ( col1 ) >= - 43
----
92

query I rowsort
SELECT DISTINCT + 98 * col2 FROM tab0
----
4606
9702
980

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

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

query I rowsort
SELECT 43 - col1 FROM tab2
----
-24
-34
-8

query I rowsort
SELECT col1 * - ( 28 ) - + 58 FROM tab1
----
-1374
-198
-450

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

skipif mysql # not compatible
query I rowsort label-1139
SELECT COUNT ( * ) * 19 AS col0 FROM tab0
----
57

query I rowsort
SELECT col1 + ( + 46 ) AS col2 FROM tab0
----
127
47
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 44 col1 FROM tab2 WHERE + col1 IS NULL
----

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

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

query I rowsort
SELECT DISTINCT - 28 FROM tab2 WHERE col1 <= ( 61 )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-1144
SELECT ALL - COUNT( * ) AS col1 FROM tab1 WHERE NULL < - 83 - - 45
----
0

skipif mysql # not compatible
query I rowsort label-1144
SELECT ALL - COUNT ( * ) AS col1 FROM tab1 WHERE NULL < - 83 - - 45
----
0

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE 50 IS NULL
----

query I rowsort
SELECT DISTINCT ( + col0 ) FROM tab2 WHERE NOT col0 + - 0 / - col1 > + 77 - col0 * col1
----

query I rowsort
SELECT DISTINCT + 42 AS col0 FROM tab1 WHERE NOT - 27 IS NULL
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1148
SELECT + MAX( DISTINCT - 74 ) AS col1 FROM tab2
----
-74

skipif mysql # not compatible
query I rowsort label-1148
SELECT + MAX ( DISTINCT - 74 ) AS col1 FROM tab2
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-1149
SELECT - MAX( DISTINCT col1 ) FROM tab0 WHERE ( NULL ) < ( 4 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1149
SELECT - MAX ( DISTINCT col1 ) FROM tab0 WHERE ( NULL ) < ( 4 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1150
SELECT + ( + col1 ) * - col0 FROM tab1 WHERE NOT - 46 <= CAST( NULL AS SIGNED ) * + 93
----

skipif mysql # not compatible
query I rowsort label-1150
SELECT + ( + col1 ) * - col0 FROM tab1 WHERE NOT - 46 <= CAST ( NULL AS INTEGER ) * + 93
----

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1154
SELECT ( COUNT( * ) ) DIV 14 col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1154
SELECT ( COUNT ( * ) ) / 14 col1 FROM tab1 AS cor0
----
0

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

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

query I rowsort
SELECT col0 - 75 AS col0 FROM tab0 AS cor0
----
-60
12
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - col1 col0 FROM tab1 cor0
----
37
44
80

query I rowsort
SELECT ALL ( col0 ) + 37 AS col1 FROM tab2 AS cor0
----
101
112
83

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

skipif mysql # not compatible
query I rowsort label-1159
SELECT DISTINCT + 51 / + ( 33 * 67 ) - ( col1 ) FROM tab2 AS cor0
----
-51
-67
-77

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1161
SELECT ALL + col2 DIV + col0 - col0 * col1 FROM tab1
----
-425
-4277
-713

skipif mysql # not compatible
query I rowsort label-1161
SELECT ALL + col2 / + col0 - col0 * col1 FROM tab1
----
-425
-4277
-713

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

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

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

query I rowsort
SELECT ALL + col0 + 75 * 63 FROM tab2 AS cor0
----
4771
4789
4800

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + 60 col0 FROM tab2 AS cor0
----
1380
2400
3480

onlyif mysql # aggregate syntax: 
query I rowsort label-1167
SELECT - 44 * SUM( + col1 ) FROM tab2 AS cor0
----
-8580

skipif mysql # not compatible
query I rowsort label-1167
SELECT - 44 * SUM ( + col1 ) FROM tab2 AS cor0
----
-8580

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

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

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

query I rowsort
SELECT col1 * 84 FROM tab0 AS cor0 WHERE NOT + 8 + 62 * + col2 IS NOT NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1172
SELECT + CAST( - col2 AS SIGNED ) * 97 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
-2231
-3880
-5626

skipif mysql # not compatible
query I rowsort label-1172
SELECT + CAST ( - col2 AS INTEGER ) * 97 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
-2231
-3880
-5626

query III rowsort
SELECT * FROM tab2 WHERE NOT - 92 / col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 72 = ( NULL )
----

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

skipif mysql # not compatible
query I rowsort label-1175
SELECT DISTINCT + 22 * + - COUNT ( * ) FROM tab2
----
-66

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

query I rowsort
SELECT ALL - 29 * col2 AS col0 FROM tab1
----
-1711
-1972
-2784

query I rowsort
SELECT + col0 * 76 AS col2 FROM tab2
----
3496
4864
5700

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE 43 * col2 BETWEEN col2 AND NULL
----

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

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

query I rowsort
SELECT ALL + col2 * - 14 FROM tab2 cor0
----
-322
-560
-812

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 39 + + 27 BETWEEN - col0 AND col0
----
51
14
96

query IIIIII rowsort
SELECT * FROM tab0 cor0 JOIN tab1 AS cor1 ON NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1184
SELECT + 98 + - - MIN( ALL + - col0 ) + ( + MIN( ALL + col0 ) ) DIV 90 AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-1184
SELECT + 98 + - - MIN ( ALL + - col0 ) + ( + MIN ( ALL + col0 ) ) / 90 AS col1 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1185
SELECT - MIN( ALL 10 ) FROM tab2 WHERE NOT + - col0 >= - col0 * col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1185
SELECT - MIN ( ALL 10 ) FROM tab2 WHERE NOT + - col0 >= - col0 * col2
----
NULL

query I rowsort
SELECT DISTINCT + col2 + - + col1 + 79 + 81 * - col1 FROM tab1 AS cor0
----
-272
-3707
-973

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

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

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

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

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

query I rowsort
SELECT col2 * - 96 AS col1 FROM tab1
----
-5664
-6528
-9216

query I rowsort
SELECT - 8 + 52 AS col1 FROM tab0 WHERE - 15 IS NOT NULL
----
44
44
44

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

query I rowsort
SELECT + col2 + col0 + 92 * - col1 AS col1 FROM tab2
----
-4623
-6031
-6980

onlyif mysql # aggregate syntax: 
query I rowsort label-1195
SELECT DISTINCT 63 * - - COUNT( * ) AS col2 FROM tab2
----
189

skipif mysql # not compatible
query I rowsort label-1195
SELECT DISTINCT 63 * - - COUNT ( * ) AS col2 FROM tab2
----
189

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

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

query I rowsort
SELECT - col0 / col2 AS col2 FROM tab2 cor0 WHERE NULL > - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1198
SELECT DISTINCT - + col2 + 21 AS col2, - CAST( 5 AS SIGNED ) FROM tab2 AS cor0
----
-19
-5
-2
-5
-37
-5

skipif mysql # not compatible
query II rowsort label-1198
SELECT DISTINCT - + col2 + 21 AS col2, - CAST ( 5 AS INTEGER ) FROM tab2 AS cor0
----
-19
-5
-2
-5
-37
-5

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

query I rowsort
SELECT ALL col1 - + 13 AS col0 FROM tab2
----
38
54
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1201
SELECT + + COUNT( ALL 6 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-1201
SELECT + + COUNT ( ALL 6 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1202
SELECT DISTINCT - COUNT( * ) + - SUM( - 33 ) AS col2 FROM tab0 WHERE ( NULL ) = col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1202
SELECT DISTINCT - COUNT ( * ) + - SUM ( - 33 ) AS col2 FROM tab0 WHERE ( NULL ) = col0
----
NULL

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

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

query I rowsort
SELECT ( + 34 ) AS col0 FROM tab1 cor0
----
34
34
34

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1207
SELECT - MAX( DISTINCT 67 ) FROM tab1
----
-67

skipif mysql # not compatible
query I rowsort label-1207
SELECT - MAX ( DISTINCT 67 ) FROM tab1
----
-67

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1208
SELECT ALL + CAST( NULL AS DECIMAL ) AS col0, COUNT( * ) FROM tab2
----
NULL
3

skipif mysql # not compatible
query II rowsort label-1208
SELECT ALL + CAST ( NULL AS REAL ) AS col0, COUNT ( * ) FROM tab2
----
NULL
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1209
SELECT 29, COUNT( * ) * + + CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
29
NULL

skipif mysql # not compatible
query II rowsort label-1209
SELECT 29, COUNT ( * ) * + + CAST ( NULL AS REAL ) AS col2 FROM tab2
----
29
NULL

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

skipif mysql # not compatible
query II rowsort label-1210
SELECT DISTINCT - col2 AS col0, col0 / + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
-59
NULL
-68
NULL
-96
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( 22 ) col2 FROM tab1
----
-22
-22
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1212
SELECT DISTINCT + 8 DIV - - SUM( 54 ) + 46 AS col2 FROM tab2 AS cor0 WHERE + 48 * - col1 IS NOT NULL
----
46

skipif mysql # not compatible
query I rowsort label-1212
SELECT DISTINCT + 8 / - - SUM ( 54 ) + 46 AS col2 FROM tab2 AS cor0 WHERE + 48 * - col1 IS NOT NULL
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1213
SELECT ALL col1 + 73 FROM tab1 WHERE NOT ( - col2 * col1 * + 56 + - + CAST( + + col2 AS SIGNED ) ) = - 59
----
120
78
87

skipif mysql # not compatible
query I rowsort label-1213
SELECT ALL col1 + 73 FROM tab1 WHERE NOT ( - col2 * col1 * + 56 + - + CAST ( + + col2 AS INTEGER ) ) = - 59
----
120
78
87

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1215
SELECT DISTINCT - col2 * col2 DIV + + col2 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-1215
SELECT DISTINCT - col2 * col2 / + + col2 FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1216
SELECT 84 + - - SUM( - 94 ) * 83 + 21 * 34 AS col2 FROM tab1 AS cor0
----
-22608

skipif mysql # not compatible
query I rowsort label-1216
SELECT 84 + - - SUM ( - 94 ) * 83 + 21 * 34 AS col2 FROM tab1 AS cor0
----
-22608

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 + - 28 col2, + col1 FROM tab2 AS cor0
----
23
51
39
67
49
77

query I rowsort
SELECT col0 + + col0 + + + col0 + - col0 + - - col1 * + + 55 AS col1 FROM tab1 AS cor0
----
2767
445
872

query I rowsort
SELECT - col1 * - 88 + + + 55 FROM tab0 AS cor0
----
143
1903
7183

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + ( - 76 ) * - col2 + - 77 ) <> col1 * 21 / + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1222
SELECT DISTINCT + CAST( + + col2 AS SIGNED ) + - col2 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1222
SELECT DISTINCT + CAST ( + + col2 AS INTEGER ) + - col2 AS col0 FROM tab2 AS cor0
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1224
SELECT DISTINCT - col2 * + CAST( + col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-705
-870
-9603

skipif mysql # not compatible
query I rowsort label-1224
SELECT DISTINCT - col2 * + CAST ( + col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1225
SELECT - col0 * + 93 + + 43 FROM tab0 WHERE - col1 * + ( - - col1 ) = CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1225
SELECT - col0 * + 93 + + 43 FROM tab0 WHERE - col1 * + ( - - col1 ) = CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 27 * col0 col2 FROM tab1
----
1377
2295
2457

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

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

query I rowsort
SELECT ALL - col0 * - + 99 * + 59 FROM tab0
----
508167
566577
87615

query I rowsort
SELECT ALL - 39 + - 46 * + 32 FROM tab1 AS cor0
----
-1511
-1511
-1511

query I rowsort
SELECT + - 49 - + col1 FROM tab1 cor0
----
-54
-63
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col2 + + 83 + + col1 * - - 18 * - col0 + - + col0 * + 40 * + 84 - - col1 col1 FROM tab2 cor0
----
-195481
-300504
-338414

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

skipif mysql # not compatible
query I rowsort label-1232
SELECT ALL + ( - - 72 ) + + MIN ( DISTINCT col1 ) / - COUNT ( * ) FROM tab2 AS cor0
----
55

query I rowsort
SELECT ALL + 39 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

onlyif mysql # aggregate syntax: 
query I rowsort label-1234
SELECT DISTINCT + MIN( ALL - 29 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-29

skipif mysql # not compatible
query I rowsort label-1234
SELECT DISTINCT + MIN ( ALL - 29 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-29

query I rowsort
SELECT col1 * - col1 * - 89 FROM tab1 cor0
----
17444
196601
2225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1236
SELECT DISTINCT col2 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND NULL OR NOT - 52 BETWEEN + - col2 AND + 23 * + 97 + - - col1 * - + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1236
SELECT DISTINCT col2 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND NULL OR NOT - 52 BETWEEN + - col2 AND + 23 * + 97 + - - col1 * - + col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1237
SELECT + 51 DIV ( 72 ) + - SUM( - ( - - col0 ) ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
227

skipif mysql # not compatible
query I rowsort label-1237
SELECT + 51 / ( 72 ) + - SUM ( - ( - - col0 ) ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
227

onlyif mysql # DIV for integer division: 
query II rowsort label-1238
SELECT - - col2 DIV + col0 AS col1, + col1 + - col2 + + col2 * - 66 AS col0 FROM tab1 AS cor0
----
0
-3948
0
-4509
1
-6418

skipif mysql # not compatible
query II rowsort label-1238
SELECT - - col2 / + col0 AS col1, + col1 + - col2 + + col2 * - 66 AS col0 FROM tab1 AS cor0
----
0
-3948
0
-4509
1
-6418

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1241
SELECT DISTINCT + MAX( DISTINCT + col1 ) + - MAX( ALL - + CAST( + col0 AS SIGNED ) ) AS col1 FROM tab2 WHERE NOT + - col1 IS NULL
----
123

skipif mysql # not compatible
query I rowsort label-1241
SELECT DISTINCT + MAX ( DISTINCT + col1 ) + - MAX ( ALL - + CAST ( + col0 AS INTEGER ) ) AS col1 FROM tab2 WHERE NOT + - col1 IS NULL
----
123

query II rowsort
SELECT ALL - 19 AS col0, + col1 + - 15 + - - col1 * - - col2 AS col2 FROM tab1
----
-19
1343
-19
285
-19
3228

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 61 + + col2 IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-1244
SELECT COUNT ( DISTINCT col1 ) AS col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1245
SELECT ALL - SUM( - 38 ) AS col0 FROM tab2
----
114

skipif mysql # not compatible
query I rowsort label-1245
SELECT ALL - SUM ( - 38 ) AS col0 FROM tab2
----
114

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col0 * - col1 >= NULL
----

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

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

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( col2 + col2 + 25 + - 98, + col0 )
----

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1250
SELECT col0 DIV + col2 AS col0, + 90 + - - 85 FROM tab2
----
1
175
1
175
2
175

skipif mysql # not compatible
query II rowsort label-1250
SELECT col0 / + col2 AS col0, + 90 + - - 85 FROM tab2
----
1
175
1
175
2
175

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col1, - col1 * col0 + + - col2 AS col2 FROM tab1 AS cor0
----
-51
-810
-85
-484
-91
-4345

query I rowsort
SELECT DISTINCT + + col0 + 3 AS col2 FROM tab0 AS cor0
----
100
18
90

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1254
SELECT - - 41 AS col1, 66 DIV col2 FROM tab1 AS cor0
----
41
0
41
0
41
1

skipif mysql # not compatible
query II rowsort label-1254
SELECT - - 41 AS col1, 66 / col2 FROM tab1 AS cor0
----
41
0
41
0
41
1

query II rowsort
SELECT - col1 + 26 * col2 - + - ( - col1 ) AS col0, + 67 - 34 + - col2 * + + ( col2 ) FROM tab2
----
1374
-3331
496
-496
886
-1567

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

query II rowsort
SELECT - 70 + + col1 AS col0, - ( col0 ) * + ( + col2 ) FROM tab0
----
-49
-870
-69
-9603
11
-705

query I rowsort
SELECT DISTINCT col1 - - - col0 AS col1 FROM tab0
----
-66
-96
66

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1261
SELECT col0 AS col2 FROM tab1 WHERE - + 13 IN ( col0 * CAST( - 25 AS SIGNED ) + - 2 + - 4 )
----

skipif mysql # not compatible
query I rowsort label-1261
SELECT col0 AS col2 FROM tab1 WHERE - + 13 IN ( col0 * CAST ( - 25 AS INTEGER ) + - 2 + - 4 )
----

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

skipif mysql # not compatible
query I rowsort label-1262
SELECT - MAX ( ALL 51 ) FROM tab2 AS cor0
----
-51

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

query I rowsort
SELECT 25 * - 34 AS col0 FROM tab0
----
-850
-850
-850

query I rowsort
SELECT ALL + - 68 AS col0 FROM tab1 AS cor0
----
-68
-68
-68

query I rowsort
SELECT ALL - col0 * - + col1 AS col2 FROM tab0 cor0
----
1215
1827
97

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

query I rowsort
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE NOT + col1 <= 61
----
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0, 91 col2 FROM tab2 AS cor0
----
-46
91
-64
91
-75
91

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1273
SELECT * FROM tab0 WHERE NOT col1 - - + 87 <= + + col2 * - + CAST( NULL AS SIGNED ) * + 5 / + 86
----

skipif mysql # not compatible
query III rowsort label-1273
SELECT * FROM tab0 WHERE NOT col1 - - + 87 <= + + col2 * - + CAST ( NULL AS INTEGER ) * + 5 / + 86
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1274
SELECT + col0 DIV 32 FROM tab0
----
0
2
3

skipif mysql # not compatible
query I rowsort label-1274
SELECT + col0 / 32 FROM tab0
----
0
2
3

onlyif mysql # DIV for integer division: 
query II rowsort label-1275
SELECT ALL + 67 DIV + col0 AS col0, col2 * + col0 FROM tab2
----
0
4350
1
1058
1
2560

skipif mysql # not compatible
query II rowsort label-1275
SELECT ALL + 67 / + col0 AS col0, col2 * + col0 FROM tab2
----
0
4350
1
1058
1
2560

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

query I rowsort
SELECT + col0 * - col0 * - + 92 FROM tab2
----
194672
376832
517500

onlyif mysql # aggregate syntax: 
query I rowsort label-1278
SELECT ALL COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN col0 AND + col2 + - col2
----
0

skipif mysql # not compatible
query I rowsort label-1278
SELECT ALL COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN col0 AND + col2 + - col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1279
SELECT MAX( + ( + - CAST( - 78 AS SIGNED ) ) ) * - ( COUNT( * ) ) + 12 AS col2 FROM tab0 AS cor0 WHERE + col0 * - 58 * + + col0 IS NOT NULL
----
-222

skipif mysql # not compatible
query I rowsort label-1279
SELECT MAX ( + ( + - CAST ( - 78 AS INTEGER ) ) ) * - ( COUNT ( * ) ) + 12 AS col2 FROM tab0 AS cor0 WHERE + col0 * - 58 * + + col0 IS NOT NULL
----
-222

query I rowsort
SELECT - - col2 * col0 + + col1 FROM tab1 AS cor0
----
4910
5020
6235

query I rowsort
SELECT ALL + col0 + + 4 FROM tab2 AS cor0
----
50
68
79

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1282
SELECT DISTINCT + + col1 FROM tab2 WHERE NOT + CAST( + + 69 AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1282
SELECT DISTINCT + + col1 FROM tab2 WHERE NOT + CAST ( + + 69 AS REAL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1283
SELECT - + col2 DIV - col1 + - col0 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-1283
SELECT - + col2 / - col1 + - col0 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # DIV for integer division: 
query II rowsort label-1284
SELECT DISTINCT 9 AS col1, col1 DIV + col1 FROM tab2 AS cor0
----
9
1

skipif mysql # not compatible
query II rowsort label-1284
SELECT DISTINCT 9 AS col1, col1 / + col1 FROM tab2 AS cor0
----
9
1

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1285
SELECT ALL ( col2 ) + - - col2 AS col2, + CAST( NULL AS DECIMAL ) * - col2 * col0 FROM tab1 AS cor0
----
118
NULL
136
NULL
192
NULL

skipif mysql # not compatible
query II rowsort label-1285
SELECT ALL ( col2 ) + - - col2 AS col2, + CAST ( NULL AS REAL ) * - col2 * col0 FROM tab1 AS cor0
----
118
NULL
136
NULL
192
NULL

query I rowsort
SELECT DISTINCT - + 48 + - - col0 AS col1 FROM tab1 AS cor0
----
3
37
43

query II rowsort
SELECT - 94 AS col1, 98 AS col2 FROM tab2 cor0
----
-94
98
-94
98
-94
98

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

skipif mysql # not compatible
query II rowsort label-1288
SELECT - COUNT ( * ) AS col0, 1 AS col2 FROM tab2 AS cor0
----
-3
1

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

skipif mysql # not compatible
query I rowsort label-1289
SELECT ALL + + CAST ( NULL AS REAL ) - + MIN ( ALL - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
NULL

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

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

query II rowsort
SELECT ALL col1 + 6 AS col0, - col2 FROM tab2
----
57
-23
73
-58
83
-40

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

query I rowsort
SELECT DISTINCT + col2 * + col0 - col2 + - + col2 AS col1 FROM tab1
----
4704
4897
6052

query I rowsort
SELECT 33 - 39 FROM tab1
----
-6
-6
-6

query I rowsort
SELECT 38 * + - 30 - col0 FROM tab2
----
-1186
-1204
-1215

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

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

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

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

query II rowsort
SELECT ALL ( + col2 ) * - col2 + col1 * + col0 + + 30 AS col0, col0 + + - col0 + + col1 AS col0 FROM tab1 AS cor0
----
-3026
5
-317
47
-8472
14

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1303
SELECT + col2 * + col0 + CAST( - 1 AS SIGNED ) FROM tab1 AS cor0
----
4895
5014
6187

skipif mysql # not compatible
query I rowsort label-1303
SELECT + col2 * + col0 + CAST ( - 1 AS INTEGER ) FROM tab1 AS cor0
----
4895
5014
6187

query I rowsort
SELECT DISTINCT - col1 * 39 + + + col2 AS col1 FROM tab0 AS cor0
----
-3112
-809
60

query I rowsort
SELECT ( 22 ) * + - col2 + - 77 FROM tab1 cor0
----
-1375
-1573
-2189

query I rowsort
SELECT DISTINCT - - 46 / - - ( + + 8 ) / + + col2 FROM tab0 AS cor0 WHERE NOT NULL >= + col0
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 46 * + 23 col0 FROM tab2 AS cor0
----
1058
1058
1058

query I rowsort
SELECT ALL + col1 * + - 18 + + 21 * - - 59 * 95 FROM tab2 AS cor0
----
116319
116499
116787

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

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

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

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

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

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

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

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

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

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

query II rowsort
SELECT col1 AS col0, col2 + + + 64 * col1 FROM tab0
----
1
163
21
1354
81
5231

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

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

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

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

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

query I rowsort
SELECT 47 * + 96 AS col1 FROM tab2
----
4512
4512
4512

onlyif mysql # DIV for integer division: 
query II rowsort label-1324
SELECT - + col1 * - col0 - - col2 DIV col2 AS col0, 76 * - col1 * - + col1 * - col2 + + col2 AS col2 FROM tab0 AS cor0
----
1216
-23435845
1828
-335150
98
-7425

skipif mysql # not compatible
query II rowsort label-1324
SELECT - + col1 * - col0 - - col2 / col2 AS col0, 76 * - col1 * - + col1 * - col2 + + col2 AS col2 FROM tab0 AS cor0
----
1216
-23435845
1828
-335150
98
-7425

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

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab2 cor0 WHERE ( NOT col1 - - col2 IS NULL )
----
-46
-64
-75

query I rowsort
SELECT ALL - col2 FROM tab2 AS cor0 WHERE NULL < col0 / 6
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1328
SELECT DISTINCT + - COUNT( * ) + + SUM( DISTINCT - 94 ) * + ( + - MAX( + col2 ) ) FROM tab2 AS cor0
----
5449

skipif mysql # not compatible
query I rowsort label-1328
SELECT DISTINCT + - COUNT ( * ) + + SUM ( DISTINCT - 94 ) * + ( + - MAX ( + col2 ) ) FROM tab2 AS cor0
----
5449

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

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

query I rowsort
SELECT ALL - - 29 * + 81 - + 7 * + col1 * + 76 + col0 AS col1 FROM tab0 cor0
----
-40728
-8736
1914

query I rowsort
SELECT 15 + 97 FROM tab1
----
112
112
112

query I rowsort
SELECT ALL col1 AS col0 FROM tab0 WHERE - + col0 > NULL
----

query I rowsort
SELECT - col0 + 28 * + ( col0 ) AS col1 FROM tab0
----
2349
2619
405

query I rowsort
SELECT 23 + + + ( + col2 ) AS col1 FROM tab2
----
46
63
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1335
SELECT DISTINCT - col0 - - + CAST( + col2 AS SIGNED ) AS col0 FROM tab2
----
-17
-23
-24

skipif mysql # not compatible
query I rowsort label-1335
SELECT DISTINCT - col0 - - + CAST ( + col2 AS INTEGER ) AS col0 FROM tab2
----
-17
-23
-24

query II rowsort
SELECT ALL col2 AS col1, col2 * + 65 + - col0 FROM tab2
----
23
1449
40
2536
58
3695

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + + col0 col0 FROM tab0
----
1215
1827
97

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

skipif mysql # not compatible
query I rowsort label-1339
SELECT ALL + CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1340
SELECT - COUNT( * ) AS col2, 88 AS col2 FROM tab1 cor0
----
-3
88

skipif mysql # not compatible
query II rowsort label-1340
SELECT - COUNT ( * ) AS col2, 88 AS col2 FROM tab1 cor0
----
-3
88

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 / - 75 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1342
SELECT DISTINCT + + col0 DIV col2 col1 FROM tab2 cor0
----
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1342
SELECT DISTINCT + + col0 / col2 col1 FROM tab2 cor0
----
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1343
SELECT - SUM( DISTINCT - 59 ) + COUNT( DISTINCT col0 ) - - COUNT( * ) * + 95 * 9 FROM tab2 AS cor0
----
2627

skipif mysql # not compatible
query I rowsort label-1343
SELECT - SUM ( DISTINCT - 59 ) + COUNT ( DISTINCT col0 ) - - COUNT ( * ) * + 95 * 9 FROM tab2 AS cor0
----
2627

query I rowsort
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE NULL <= col2
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1345
SELECT DISTINCT col2 DIV - + col2 AS col2, - col0 + - CAST( + + col1 AS SIGNED ) + 70 + - 98 * + 84 FROM tab0
----
-1
-8258
-1
-8260
-1
-8270

skipif mysql # not compatible
query II rowsort label-1345
SELECT DISTINCT col2 / - + col2 AS col2, - col0 + - CAST ( + + col1 AS INTEGER ) + 70 + - 98 * + 84 FROM tab0
----
-1
-8258
-1
-8260
-1
-8270

onlyif mysql # DIV for integer division: 
query I rowsort label-1346
SELECT col0 + + col2 DIV + - col1 AS col0 FROM tab1
----
45
74
90

skipif mysql # not compatible
query I rowsort label-1346
SELECT col0 + + col2 / + - col1 AS col0 FROM tab1
----
45
74
90

onlyif mysql # DIV for integer division: 
query I rowsort label-1347
SELECT 62 DIV col2 * 95 AS col2 FROM tab0
----
0
570
95

skipif mysql # not compatible
query I rowsort label-1347
SELECT 62 / col2 * 95 AS col2 FROM tab0
----
0
570
95

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query III rowsort label-1348
SELECT * FROM tab1 WHERE - col2 + col2 <> 57 DIV - 11 - - + CAST( col1 AS DECIMAL )
----
51
14
96
91
47
68

skipif mysql # not compatible
query III rowsort label-1348
SELECT * FROM tab1 WHERE - col2 + col2 <> 57 / - 11 - - + CAST ( col1 AS REAL )
----
51
14
96
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1349
SELECT DISTINCT MIN( DISTINCT - 33 ) * - COUNT( * ) col2 FROM tab2
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1349
SELECT DISTINCT MIN ( DISTINCT - 33 ) * - COUNT ( * ) col2 FROM tab2
----
99

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 89 IS NULL
----

query I rowsort
SELECT DISTINCT - 20 + - col0 * col2 + 37 FROM tab2 cor0
----
-1041
-2543
-4333

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

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( - col1, 26, - 38 + col1 )
----

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

query I rowsort
SELECT - col0 + - + 8 * - col1 + + 79 FROM tab2
----
441
540
631

onlyif mysql # aggregate syntax: 
query I rowsort label-1357
SELECT ALL - + 37 + - 67 + + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-107

skipif mysql # not compatible
query I rowsort label-1357
SELECT ALL - + 37 + - 67 + + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-107

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 39 <= - ( - col1 ) + + col2
----
15
81
47
97
1
99

query I rowsort
SELECT DISTINCT + 5 + - 28 + + + ( + ( 46 ) ) * + col0 + + - col1 AS col0 FROM tab1 AS cor0
----
2309
3882
4116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1361
SELECT - + 15 DIV + COUNT( * ) AS col2 FROM tab0 cor0
----
-5

skipif mysql # not compatible
query I rowsort label-1361
SELECT - + 15 / + COUNT ( * ) AS col2 FROM tab0 cor0
----
-5

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1363
SELECT ALL + col0 + - - 41 + CAST( col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
103
138
237

skipif mysql # not compatible
query I rowsort label-1363
SELECT ALL + col0 + - - 41 + CAST ( col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
103
138
237

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( 15 ), col1 + - 38 col0 FROM tab1 WHERE col0 IS NOT NULL
----
15
-24
15
-33
15
9

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1367
SELECT COUNT( ALL ( - - 82 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1367
SELECT COUNT ( ALL ( - - 82 ) ) FROM tab1
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1368
SELECT CAST( NULL AS DECIMAL ) * + col2 AS col1, + 90 FROM tab0
----
NULL
90
NULL
90
NULL
90

skipif mysql # not compatible
query II rowsort label-1368
SELECT CAST ( NULL AS REAL ) * + col2 AS col1, + 90 FROM tab0
----
NULL
90
NULL
90
NULL
90

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1371
SELECT + - 91 * + + CAST( NULL AS SIGNED ) AS col2, 7 FROM tab1 AS cor0
----
NULL
7
NULL
7
NULL
7

skipif mysql # not compatible
query II rowsort label-1371
SELECT + - 91 * + + CAST ( NULL AS INTEGER ) AS col2, 7 FROM tab1 AS cor0
----
NULL
7
NULL
7
NULL
7

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1376
SELECT - + SUM ( col1 ) AS col1 FROM tab0 AS cor0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-1377
SELECT DISTINCT - 61 + - - COUNT( * ) FROM tab0 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-1377
SELECT DISTINCT - 61 + - - COUNT ( * ) FROM tab0 AS cor0
----
-58

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

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

query I rowsort
SELECT - ( + 62 ) FROM tab2 AS cor0 WHERE - col2 + + 92 IS NULL
----

query I rowsort
SELECT ALL 86 + + col0 FROM tab2 AS cor0
----
132
150
161

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

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

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

query I rowsort
SELECT - col0 FROM tab0 WHERE + col2 = + 71
----

query I rowsort
SELECT col0 + + 74 * + col0 AS col0 FROM tab1
----
3825
6375
6825

query I rowsort
SELECT ALL col2 AS col2 FROM tab1 WHERE NOT - - 95 * - - col0 + + 76 + col0 / - col0 * 25 NOT IN ( + ( + + col1 ) + - + col1 )
----

query III rowsort
SELECT - col1 + + col0 AS col0, - col0 AS col1, - + col0 - + + 15 AS col1 FROM tab2 WHERE - 80 + + col1 + - col1 / col2 = - col1 * - 38 + - col2
----

query I rowsort
SELECT ALL ( + - col1 ) + col0 FROM tab0
----
-66
66
96

onlyif mysql # DIV for integer division: 
query I rowsort label-1389
SELECT ALL - col0 * + ( col0 ) DIV col0 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-1389
SELECT ALL - col0 * + ( col0 ) / col0 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT - - 1 + 69 - - col2 FROM tab0 AS cor0
----
117
169
80

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

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

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

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

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

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

query I rowsort
SELECT ALL 70 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

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

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

query I rowsort
SELECT ALL - col0 + - - 0 * + 44 + 81 FROM tab2 AS cor0
----
17
35
6

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1399
SELECT ALL - - MIN ( - 81 ) col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1400
SELECT * FROM tab2 WHERE NOT 15 * - + col2 + - CAST( NULL AS SIGNED ) - - col1 + - 50 < + 97 * + col2 + - 0 * - 50
----

skipif mysql # not compatible
query III rowsort label-1400
SELECT * FROM tab2 WHERE NOT 15 * - + col2 + - CAST ( NULL AS INTEGER ) - - col1 + - 50 < + 97 * + col2 + - 0 * - 50
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1402
SELECT COUNT( * ) AS col0, + ( 80 ) FROM tab2
----
3
80

skipif mysql # not compatible
query II rowsort label-1402
SELECT COUNT ( * ) AS col0, + ( 80 ) FROM tab2
----
3
80

onlyif mysql # DIV for integer division: 
query I rowsort label-1403
SELECT DISTINCT + col2 DIV - 22 AS col2 FROM tab2
----
-1
-2

skipif mysql # not compatible
query I rowsort label-1403
SELECT DISTINCT + col2 / - 22 AS col2 FROM tab2
----
-1
-2

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

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

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

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

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

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

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

query II rowsort
SELECT - col0, - 87 * - 35 AS col2 FROM tab0 AS cor0
----
-15
3045
-87
3045
-97
3045

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1413
SELECT ALL + CAST( - 36 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-36
-36
-36

skipif mysql # not compatible
query I rowsort label-1413
SELECT ALL + CAST ( - 36 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-36
-36
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-1414
SELECT ALL - MAX( + col0 ) + COUNT( DISTINCT - col2 ) * + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-1414
SELECT ALL - MAX ( + col0 ) + COUNT ( DISTINCT - col2 ) * + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-66

query II rowsort
SELECT DISTINCT - col0 + col0 AS col0, col0 * + 35 * + - ( - 71 ) AS col1 FROM tab2 cor0
----
0
114310
0
159040
0
186375

query I rowsort
SELECT ALL + col0 + - 83 + col0 * + 23 * 10 FROM tab1 AS cor0
----
11698
19552
20938

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 45 + col1, col2 col0 FROM tab0 AS cor0
----
-24
10
-44
99
36
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1418
SELECT DISTINCT COUNT( * ) + - 20 AS col1 FROM tab1 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-1418
SELECT DISTINCT COUNT ( * ) + - 20 AS col1 FROM tab1 AS cor0
----
-17

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 57 + 55 + + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1420
SELECT DISTINCT + COUNT( * ) * - - COUNT( * ) + - + 2 AS col2 FROM tab2 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-1420
SELECT DISTINCT + COUNT ( * ) * - - COUNT ( * ) + - + 2 AS col2 FROM tab2 AS cor0
----
7

query I rowsort
SELECT - col2 + ( 68 ) AS col0 FROM tab0 AS cor0
----
-31
21
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1422
SELECT - 14 FROM tab1 AS cor0 WHERE col1 BETWEEN NULL AND + CAST( - 15 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1422
SELECT - 14 FROM tab1 AS cor0 WHERE col1 BETWEEN NULL AND + CAST ( - 15 AS INTEGER )
----

query I rowsort
SELECT DISTINCT + ( - col0 ) + - + col0 FROM tab1
----
-102
-170
-182

query I rowsort
SELECT DISTINCT ( - 32 ) AS col1 FROM tab0
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-1425
SELECT - 55 DIV col2 FROM tab0
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-1425
SELECT - 55 / col2 FROM tab0
----
-1
-5
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1426
SELECT + COUNT( * ) AS col0 FROM tab2 WHERE NULL > 98 * 94 + + col1 + - + col2
----
0

skipif mysql # not compatible
query I rowsort label-1426
SELECT + COUNT ( * ) AS col0 FROM tab2 WHERE NULL > 98 * 94 + + col1 + - + col2
----
0

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 48 NOT IN ( + col0 / - 75 )
----

query I rowsort
SELECT + 62 * col0 AS col1 FROM tab0
----
5394
6014
930

query I rowsort
SELECT ALL - col0 + - - 5 FROM tab0
----
-10
-82
-92

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL >= - col0 * + - 16
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE 95 <= + 92 - + + 55 * 95
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1433
SELECT MAX( col0 ) + - + SUM( ALL + + 50 ) * - + COUNT( * ) AS col0 FROM tab1
----
541

skipif mysql # not compatible
query I rowsort label-1433
SELECT MAX ( col0 ) + - + SUM ( ALL + + 50 ) * - + COUNT ( * ) AS col0 FROM tab1
----
541

query II rowsort
SELECT - - col2 AS col1, col2 + + col0 FROM tab1 WHERE NOT + 46 IS NULL
----
59
144
68
159
96
147

query I rowsort
SELECT + 40 * + ( + col0 ) FROM tab1 AS cor0
----
2040
3400
3640

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1439
SELECT - + ( - + 8 ) * - 43 * + col0 * + CAST( NULL AS SIGNED ) + + 39 + + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1439
SELECT - + ( - + 8 ) * - 43 * + col0 * + CAST ( NULL AS INTEGER ) + + 39 + + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 17 * - 54 + 94 AS col1 FROM tab1 AS cor0
----
-824
-824
-824

query I rowsort
SELECT ALL + ( + 40 ) * + col0 * 37 FROM tab1
----
125800
134680
75480

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1443
SELECT ALL MAX( + - 92 ) FROM tab0
----
-92

skipif mysql # not compatible
query I rowsort label-1443
SELECT ALL MAX ( + - 92 ) FROM tab0
----
-92

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

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

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

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

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

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

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

query I rowsort
SELECT ALL + - 84 + + 79 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 85 col0 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

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

skipif mysql # not compatible
query I rowsort label-1450
SELECT - MIN ( - + 22 ) AS col1 FROM tab1
----
22

query I rowsort
SELECT ALL - 43 + - 17 FROM tab1 AS cor0
----
-60
-60
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-1452
SELECT + 72 + - COUNT( * ) col0 FROM tab0
----
69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1452
SELECT + 72 + - COUNT ( * ) col0 FROM tab0
----
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 4 ) + + col1 col1 FROM tab2
----
47
63
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col0 * + col0 * col1 col1 FROM tab2
----
107865
315315
376808

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1455
SELECT DISTINCT - + ( + MAX( DISTINCT - 2 ) ) + - - CAST( NULL AS SIGNED ) / + 11 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1455
SELECT DISTINCT - + ( + MAX ( DISTINCT - 2 ) ) + - - CAST ( NULL AS INTEGER ) / + 11 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - + 24 + - - col2 FROM tab1 AS cor0
----
35
44
72

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

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

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1461
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 * + - CAST( NULL AS DECIMAL ) > - - 17 + + 45 * + col0 / + + col1
----

skipif mysql # not compatible
query III rowsort label-1461
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 * + - CAST ( NULL AS REAL ) > - - 17 + + 45 * + col0 / + + col1
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1463
SELECT SUM( 3 ) AS col2 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-1463
SELECT SUM ( 3 ) AS col2 FROM tab2
----
9

query I rowsort
SELECT - 43 * - col0 FROM tab1
----
2193
3655
3913

onlyif mysql # aggregate syntax: 
query II rowsort label-1465
SELECT + 57 AS col2, SUM( DISTINCT col0 ) FROM tab2
----
57
185

skipif mysql # not compatible
query II rowsort label-1465
SELECT + 57 AS col2, SUM ( DISTINCT col0 ) FROM tab2
----
57
185

onlyif mysql # aggregate syntax: 
query I rowsort label-1466
SELECT ALL - - MIN( DISTINCT col2 ) * + COUNT( * ) - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE - ( + - col1 ) + 66 IS NOT NULL
----
27

skipif mysql # not compatible
query I rowsort label-1466
SELECT ALL - - MIN ( DISTINCT col2 ) * + COUNT ( * ) - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE - ( + - col1 ) + 66 IS NOT NULL
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-1467
SELECT ALL + - COUNT( * ) * + 20 - - COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) > NULL
----
0

skipif mysql # not compatible
query I rowsort label-1467
SELECT ALL + - COUNT ( * ) * + 20 - - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) > NULL
----
0

query II rowsort
SELECT - col0 + - col0 AS col0, 31 FROM tab1
----
-102
31
-170
31
-182
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1469
SELECT ALL 9 + + + col0 + + CAST( - CAST( - - col2 AS SIGNED ) AS SIGNED ) FROM tab0 cor0
----
-23
7
86

skipif mysql # not compatible
query I rowsort label-1469
SELECT ALL 9 + + + col0 + + CAST ( - CAST ( - - col2 AS INTEGER ) AS INTEGER ) FROM tab0 cor0
----
-23
7
86

query I rowsort
SELECT DISTINCT + 95 + col1 AS col2 FROM tab1 AS cor0
----
100
109
142

query I rowsort
SELECT - - ( + - col0 ) + 97 * + col1 + + + 42 * ( - 61 ) AS col0 FROM tab2 AS cor0
----
2339
3862
4843

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

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

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

query I rowsort
SELECT ALL + - col1 + 41 AS col2 FROM tab0 AS cor0
----
-40
20
40

query I rowsort
SELECT ALL 94 + + - col2 * - + ( + + col1 ) FROM tab2 AS cor0
----
1267
3174
3980

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

query I rowsort
SELECT DISTINCT - col1 + - - 8 FROM tab1
----
-39
-6
3

query II rowsort
SELECT + col1, + ( col0 ) * - - 36 AS col0 FROM tab1
----
14
1836
47
3276
5
3060

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

query I rowsort
SELECT ALL - col1 - col1 + - 14 AS col2 FROM tab0
----
-16
-176
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-1481
SELECT ALL 41 AS col2, + MAX( + 24 ) AS col2 FROM tab2
----
41
24

skipif mysql # not compatible
query II rowsort label-1481
SELECT ALL 41 AS col2, + MAX ( + 24 ) AS col2 FROM tab2
----
41
24

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1488
SELECT - COUNT( * ) DIV + ( + 53 ) AS col0, + COUNT( * ) * - + COUNT( * ) FROM tab1 cor0
----
0
-9

skipif mysql # not compatible
query II rowsort label-1488
SELECT - COUNT ( * ) / + ( + 53 ) AS col0, + COUNT ( * ) * - + COUNT ( * ) FROM tab1 cor0
----
0
-9

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1490
SELECT 5 * + - COUNT( DISTINCT - 34 ) - 93 AS col1 FROM tab1, tab0 AS cor0
----
-98

skipif mysql # not compatible
query I rowsort label-1490
SELECT 5 * + - COUNT ( DISTINCT - 34 ) - 93 AS col1 FROM tab1, tab0 AS cor0
----
-98

query I rowsort
SELECT DISTINCT 11 + 33 FROM tab0 WHERE + col2 + 39 * + + col0 * - col1 IS NOT NULL
----
44

query I rowsort
SELECT 11 - + 8 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 2 * + col1 col2 FROM tab1 AS cor0
----
10
28
94

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 < 72 + - + 22
----

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

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

query I rowsort
SELECT ALL - col0 + - 32 AS col1 FROM tab2
----
-107
-78
-96

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

skipif mysql # not compatible
query I rowsort label-1501
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE ( ( + col2 ) * 43 + - CAST ( NULL AS INTEGER ) * col1 ) = NULL
----

query I rowsort
SELECT - 52 + 56 FROM tab0 AS cor0
----
4
4
4

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

query I rowsort
SELECT DISTINCT - 43 + - - 67 FROM tab0 AS cor0
----
24

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1507
SELECT DISTINCT SUM( DISTINCT - 14 ) + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-1507
SELECT DISTINCT SUM ( DISTINCT - 14 ) + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT + - 67 * 13 * + col2 AS col0 FROM tab2 AS cor0
----
-20033
-34840
-50518

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

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

query I rowsort
SELECT DISTINCT - 63 * + 73 + ( + + col2 ) AS col0 FROM tab2 AS cor0
----
-4541
-4559
-4576

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

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

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

query I rowsort
SELECT ALL - col2 - + 44 FROM tab2 AS cor0
----
-102
-67
-84

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

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

query I rowsort
SELECT - ( + + col1 ) * ( + + 19 ) AS col0 FROM tab2 AS cor0
----
-1273
-1463
-969

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

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

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

query II rowsort
SELECT DISTINCT + 33, - 71 AS col1 FROM tab2
----
33
-71

query I rowsort
SELECT ALL ( 28 ) AS col0 FROM tab0
----
28
28
28

onlyif mysql # aggregate syntax: 
query I rowsort label-1520
SELECT ALL - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) >= - - col0
----
0

skipif mysql # not compatible
query I rowsort label-1520
SELECT ALL - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) >= - - col0
----
0

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

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1524
SELECT DISTINCT + + CAST ( COUNT ( * ) AS INTEGER ) col1 FROM tab2 AS cor0
----
3

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

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

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

query I rowsort
SELECT - 0 * - 45 FROM tab0 AS cor0 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT col2 + - + 29 + + col2 * col0 * 58 * + 8 * ( - + 62 ) FROM tab2
----
-125140771
-30436550
-73646069

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1530
SELECT ALL COUNT( * ) AS col1 FROM tab1 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-1530
SELECT ALL COUNT ( * ) AS col1 FROM tab1 WHERE NULL IS NULL
----
3

query I rowsort
SELECT DISTINCT - 8 + - + 91 FROM tab0
----
-99

query I rowsort
SELECT - 26 - + 43 FROM tab0 WHERE ( NOT ( NULL ) IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1533
SELECT * FROM tab2 WHERE ( NOT - CAST( 64 AS SIGNED ) IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1533
SELECT * FROM tab2 WHERE ( NOT - CAST ( 64 AS INTEGER ) IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1534
SELECT DISTINCT MIN( 48 ) * + - 10 + SUM( - col0 ) AS col0 FROM tab2
----
-665

skipif mysql # not compatible
query I rowsort label-1534
SELECT DISTINCT MIN ( 48 ) * + - 10 + SUM ( - col0 ) AS col0 FROM tab2
----
-665

query I rowsort
SELECT ALL col2 + - - 49 AS col1 FROM tab0 AS cor0
----
148
59
96

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1537
SELECT ALL + + CAST( + - CAST( + ( col0 ) AS SIGNED ) AS SIGNED ) DIV + col0 + col0 FROM tab0 AS cor0
----
14
86
96

skipif mysql # not compatible
query I rowsort label-1537
SELECT ALL + + CAST ( + - CAST ( + ( col0 ) AS INTEGER ) AS INTEGER ) / + col0 + col0 FROM tab0 AS cor0
----
14
86
96

query I rowsort
SELECT DISTINCT 49 - 62 FROM tab1 AS cor0
----
-13

query I rowsort
SELECT + col1 * - + col1 FROM tab1 AS cor0
----
-196
-2209
-25

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

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

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

query I rowsort
SELECT DISTINCT - 34 * - + 84 + - 30 AS col0 FROM tab0
----
2826

query I rowsort
SELECT ALL col0 - - + 87 FROM tab0
----
102
174
184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1544
SELECT DISTINCT CAST( NULL AS SIGNED ) * - MAX( DISTINCT - + 21 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1544
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - MAX ( DISTINCT - + 21 ) FROM tab2
----
NULL

query I rowsort
SELECT ALL + ( - col1 ) AS col0 FROM tab2 WHERE + col0 IS NOT NULL
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1546
SELECT DISTINCT CAST( + 21 AS SIGNED ) DIV + - col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1546
SELECT DISTINCT CAST ( + 21 AS INTEGER ) / + - col0 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1547
SELECT DISTINCT 28 * + - COUNT( * ) FROM tab1
----
-84

skipif mysql # not compatible
query I rowsort label-1547
SELECT DISTINCT 28 * + - COUNT ( * ) FROM tab1
----
-84

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

query I rowsort
SELECT DISTINCT - col1 FROM tab2 cor0 WHERE NOT col0 > NULL
----

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

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

query I rowsort
SELECT + ( + - col1 ) * 54 AS col2 FROM tab2 AS cor0
----
-2754
-3618
-4158

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

query II rowsort
SELECT + 31 AS col2, col0 * + col0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
31
2601
31
7225
31
8281

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 26 * - col0 + col0 col1, 93 * - col0 FROM tab1 AS cor0
----
-1275
-4743
-2125
-7905
-2275
-8463

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) >= col1 * + 32
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( + + col1 + - - col2 + - col0 + - - 5 + - + col2 * - - col1, + 84 * + col0, + col1, col2, - col1, col2 )
----

query I rowsort
SELECT + col2 + - col0 * + + col1 * col2 AS col1 FROM tab0
----
-18260
-57058
-9504

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

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

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

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

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

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

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

query I rowsort
SELECT 58 + 63 * + col0 AS col2 FROM tab0
----
1003
5539
6169

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1566
SELECT 95 + CAST( - MIN( ALL - col2 ) + 90 AS SIGNED ) AS col2 FROM tab1
----
281

skipif mysql # not compatible
query I rowsort label-1566
SELECT 95 + CAST ( - MIN ( ALL - col2 ) + 90 AS INTEGER ) AS col2 FROM tab1
----
281

query I rowsort
SELECT col1 * 63 + col1 AS col1 FROM tab0
----
1344
5184
64

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1569
SELECT - 83 DIV col1 FROM tab1
----
-1
-16
-5

skipif mysql # not compatible
query I rowsort label-1569
SELECT - 83 / col1 FROM tab1
----
-1
-16
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1570
SELECT - MAX( ALL 39 ) * - MAX( DISTINCT col2 ) AS col1 FROM tab1 WHERE NOT ( col0 ) IS NULL
----
3744

skipif mysql # not compatible
query I rowsort label-1570
SELECT - MAX ( ALL 39 ) * - MAX ( DISTINCT col2 ) AS col1 FROM tab1 WHERE NOT ( col0 ) IS NULL
----
3744

onlyif mysql # DIV for integer division: 
query I rowsort label-1571
SELECT + col2 DIV - col2 - 62 AS col2 FROM tab2
----
-63
-63
-63

skipif mysql # not compatible
query I rowsort label-1571
SELECT + col2 / - col2 - 62 AS col2 FROM tab2
----
-63
-63
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1572
SELECT ALL + col0 FROM tab1 WHERE + col0 / col1 + CAST( - 74 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-1572
SELECT ALL + col0 FROM tab1 WHERE + col0 / col1 + CAST ( - 74 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1573
SELECT - 7 + - COUNT( * ) DIV MAX( col1 * + 86 ) FROM tab2
----
-7

skipif mysql # not compatible
query I rowsort label-1573
SELECT - 7 + - COUNT ( * ) / MAX ( col1 * + 86 ) FROM tab2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1574
SELECT 56 + COUNT( * ) FROM tab1 WHERE ( + col2 ) >= 42
----
59

skipif mysql # not compatible
query I rowsort label-1574
SELECT 56 + COUNT ( * ) FROM tab1 WHERE ( + col2 ) >= 42
----
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col2 + col2 col1 FROM tab0 WHERE NOT 42 > ( col2 * + col0 )
----
-658
-860
-9504

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1577
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab1 WHERE NULL NOT BETWEEN - 10 AND - 40 / + 75
----

skipif mysql # not compatible
query I rowsort label-1577
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab1 WHERE NULL NOT BETWEEN - 10 AND - 40 / + 75
----

query I rowsort
SELECT ALL + ( ( - 26 ) ) AS col1 FROM tab2
----
-26
-26
-26

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1580
SELECT CAST( 99 AS SIGNED ) FROM tab1 WHERE - 36 / - ( col1 ) = + col0
----

skipif mysql # not compatible
query I rowsort label-1580
SELECT CAST ( 99 AS INTEGER ) FROM tab1 WHERE - 36 / - ( col1 ) = + col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1581
SELECT DISTINCT - COUNT( * ) DIV 77 AS col2 FROM tab1 WHERE NOT ( - col0 ) >= 91 DIV 12
----
0

skipif mysql # not compatible
query I rowsort label-1581
SELECT DISTINCT - COUNT ( * ) / 77 AS col2 FROM tab1 WHERE NOT ( - col0 ) >= 91 / 12
----
0

query III rowsort
SELECT * FROM tab0 WHERE 23 + + col1 BETWEEN col1 * 41 + col2 * + 47 AND NULL
----

query I rowsort
SELECT ALL ( + 13 ) AS col1 FROM tab1
----
13
13
13

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1586
SELECT - COUNT( * ) FROM tab1 WHERE - col1 - - 7 * col0 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1586
SELECT - COUNT ( * ) FROM tab1 WHERE - col1 - - 7 * col0 IS NOT NULL
----
-3

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 86 - col1 ) BETWEEN col1 / - col2 AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 97 col2 FROM tab2 AS cor0 CROSS JOIN tab0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1590
SELECT COUNT( * ) * + 31 AS col1 FROM tab2 AS cor0 WHERE NOT ( col2 + - col2 ) = - col1 + col0 * + 49
----
93

skipif mysql # not compatible
query I rowsort label-1590
SELECT COUNT ( * ) * + 31 AS col1 FROM tab2 AS cor0 WHERE NOT ( col2 + - col2 ) = - col1 + col0 * + 49
----
93

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1593
SELECT + - 26 + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-1593
SELECT + - 26 + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-29

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1595
SELECT ALL - col0 DIV 10 AS col1 FROM tab1 AS cor0
----
-5
-8
-9

skipif mysql # not compatible
query I rowsort label-1595
SELECT ALL - col0 / 10 AS col1 FROM tab1 AS cor0
----
-5
-8
-9

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col1 + + col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1597
SELECT - + COUNT( * ) + + COUNT( * ) * - 60 FROM tab1 AS cor0
----
-183

skipif mysql # not compatible
query I rowsort label-1597
SELECT - + COUNT ( * ) + + COUNT ( * ) * - 60 FROM tab1 AS cor0
----
-183

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1598
SELECT ALL - col0 DIV - 39 + CAST( col2 AS SIGNED ) FROM tab1
----
61
70
97

skipif mysql # not compatible
query I rowsort label-1598
SELECT ALL - col0 / - 39 + CAST ( col2 AS INTEGER ) FROM tab1
----
61
70
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1599
SELECT + col2 * CAST( col2 AS SIGNED ) AS col0 FROM tab0
----
100
2209
9801

skipif mysql # not compatible
query I rowsort label-1599
SELECT + col2 * CAST ( col2 AS INTEGER ) AS col0 FROM tab0
----
100
2209
9801

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - 88 ) IS NOT NULL
----

query I rowsort
SELECT - 58 * + + 26 FROM tab0
----
-1508
-1508
-1508

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( 32 )
----

query III rowsort
SELECT * FROM tab0 WHERE ( col2 ) IN ( - 46 )
----

query III rowsort
SELECT * FROM tab0 WHERE ( col2 + 63 * - col2 ) IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1605
SELECT ALL CAST( NULL AS DECIMAL ) AS col1 FROM tab1 WHERE NOT ( col2 * - ( col2 ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1605
SELECT ALL CAST ( NULL AS REAL ) AS col1 FROM tab1 WHERE NOT ( col2 * - ( col2 ) ) IS NOT NULL
----

query I rowsort
SELECT ALL - ( 21 ) FROM tab0 WHERE NOT + col1 * - col2 IS NULL
----
-21
-21
-21

query I rowsort
SELECT 79 FROM tab1 WHERE ( 67 + - col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1608
SELECT ALL MIN( + 50 ) AS col0 FROM tab2 WHERE col0 + + 25 NOT BETWEEN - col2 AND + col2 * 65
----
NULL

skipif mysql # not compatible
query I rowsort label-1608
SELECT ALL MIN ( + 50 ) AS col0 FROM tab2 WHERE col0 + + 25 NOT BETWEEN - col2 AND + col2 * 65
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL = ( - 66 )
----

query I rowsort
SELECT DISTINCT - col1 + + ( col1 ) FROM tab2 cor0
----
0

query I rowsort
SELECT DISTINCT - col0 FROM tab0 AS cor0 WHERE NOT ( col2 + col2 * + col2 ) IS NULL
----
-15
-87
-97

query I rowsort
SELECT DISTINCT + col1 FROM tab2 AS cor0 WHERE NOT - col0 / ( - ( - ( col1 ) ) ) + col1 IS NULL
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1613
SELECT ALL + 66 + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1613
SELECT ALL + 66 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1614
SELECT ( + + COUNT( * ) ) - 28 FROM tab0 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-1614
SELECT ( + + COUNT ( * ) ) - 28 FROM tab0 AS cor0
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1615
SELECT + - col0 - - CAST( + 60 AS SIGNED ) * col1 FROM tab1 AS cor0
----
215
2729
789

skipif mysql # not compatible
query I rowsort label-1615
SELECT + - col0 - - CAST ( + 60 AS INTEGER ) * col1 FROM tab1 AS cor0
----
215
2729
789

query I rowsort
SELECT + ( 78 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1617
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( 50 + - - col2 ) >= ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-1617
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( 50 + - - col2 ) >= ( + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1618
SELECT - 58 AS col2, col2 DIV + 40 AS col2 FROM tab2 AS cor0
----
-58
0
-58
1
-58
1

skipif mysql # not compatible
query II rowsort label-1618
SELECT - 58 AS col2, col2 / + 40 AS col2 FROM tab2 AS cor0
----
-58
0
-58
1
-58
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1619
SELECT 94 * + COUNT( * ) * - - MAX( + 45 ) AS col0 FROM tab0 AS cor0
----
12690

skipif mysql # not compatible
query I rowsort label-1619
SELECT 94 * + COUNT ( * ) * - - MAX ( + 45 ) AS col0 FROM tab0 AS cor0
----
12690

query I rowsort
SELECT DISTINCT 56 + + 40 AS col0 FROM tab2 AS cor0 WHERE 10 IN ( - + ( col1 ) * - col1 )
----

query II rowsort
SELECT ALL - 51 AS col0, + col1 FROM tab0 AS cor0
----
-51
1
-51
21
-51
81

query I rowsort
SELECT 4 * col0 FROM tab0 AS cor0 WHERE NOT NULL <> - col2
----

query II rowsort
SELECT ALL + 0, + col2 AS col1 FROM tab1 AS cor0
----
0
59
0
68
0
96

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 IN ( ( col0 ) * - 83 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-1625
SELECT - - col1 DIV col2 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1625
SELECT - - col1 / col2 AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1626
SELECT ALL COUNT( * ) * + 20 AS col1 FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-1626
SELECT ALL COUNT ( * ) * + 20 AS col1 FROM tab2
----
60

query III rowsort
SELECT * FROM tab1 WHERE col2 < NULL AND NULL < ( NULL )
----

query I rowsort
SELECT - ( 48 ) * + col0 + + col1 FROM tab2 WHERE NOT + + col2 IS NULL
----
-2157
-2995
-3533

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 * col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE NULL >= - - 31
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1631
SELECT - col0 + + CAST( - col1 AS SIGNED ) * - 39 col1 FROM tab0 WHERE NOT ( + + 66 ) IS NULL
----
-58
3144
732

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1631
SELECT - col0 + + CAST ( - col1 AS INTEGER ) * - 39 col1 FROM tab0 WHERE NOT ( + + 66 ) IS NULL
----
-58
3144
732

onlyif mysql # aggregate syntax: 
query I rowsort label-1632
SELECT - - COUNT( * ) AS col1 FROM tab1 WHERE NOT - 70 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-1632
SELECT - - COUNT ( * ) AS col1 FROM tab1 WHERE NOT - 70 <> NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1633
SELECT + SUM( + 23 ) FROM tab0 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-1633
SELECT + SUM ( + 23 ) FROM tab0 AS cor0
----
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - - col1 + + - col2 col1 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1635
SELECT DISTINCT + col1 * + + CAST( 48 AS SIGNED ) AS col1, + 37 * - ( col1 ) AS col2 FROM tab0
----
1008
-777
3888
-2997
48
-37

skipif mysql # not compatible
query II rowsort label-1635
SELECT DISTINCT + col1 * + + CAST ( 48 AS INTEGER ) AS col1, + 37 * - ( col1 ) AS col2 FROM tab0
----
1008
-777
3888
-2997
48
-37

query I rowsort
SELECT + 97 * - + col1 AS col1 FROM tab2 AS cor0
----
-4947
-6499
-7469

query II rowsort
SELECT - 28, - 36 AS col0 FROM tab0 AS cor0
----
-28
-36
-28
-36
-28
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-1638
SELECT DISTINCT + - COUNT( * ) + - + 59 FROM tab0 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-1638
SELECT DISTINCT + - COUNT ( * ) + - + 59 FROM tab0 AS cor0
----
-62

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - ( - col2 ) BETWEEN + col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1640
SELECT - col2 AS col2, - col0 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

skipif mysql # not compatible
query II rowsort label-1640
SELECT - col2 AS col2, - col0 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - 99 ) <= ( ( - 32 ) + col0 / + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 BETWEEN + 4 AND + 95
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1643
SELECT ALL + COUNT( * ) col2 FROM tab1, tab1 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1643
SELECT ALL + COUNT ( * ) col2 FROM tab1, tab1 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1644
SELECT col2 * - - 36 + - CAST( 21 AS SIGNED ), 96 * col1 col2 FROM tab2
----
1419
7392
2067
6432
807
4896

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1644
SELECT col2 * - - 36 + - CAST ( 21 AS INTEGER ), 96 * col1 col2 FROM tab2
----
1419
7392
2067
6432
807
4896

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1645
SELECT DISTINCT - COUNT( * ), 38 - + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-1645
SELECT DISTINCT - COUNT ( * ), 38 - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
-3
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1646
SELECT DISTINCT + MAX( - + CAST( - + col0 AS SIGNED ) ) * + COUNT( * ) FROM tab1
----
273

skipif mysql # not compatible
query I rowsort label-1646
SELECT DISTINCT + MAX ( - + CAST ( - + col0 AS INTEGER ) ) * + COUNT ( * ) FROM tab1
----
273

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1647
SELECT DISTINCT + + 39 + + + col1 * - + 30 + + 26 + - - col0 * 37 * CAST( - 99 * - 41 AS SIGNED ) FROM tab2 AS cor0
----
11261780
6906953
9609467

skipif mysql # not compatible
query I rowsort label-1647
SELECT DISTINCT + + 39 + + + col1 * - + 30 + + 26 + - - col0 * 37 * CAST ( - 99 * - 41 AS INTEGER ) FROM tab2 AS cor0
----
11261780
6906953
9609467

query I rowsort
SELECT DISTINCT - 9 + + 5 AS col1 FROM tab2 cor0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-1649
SELECT - MIN( + 54 ) col1 FROM tab1 AS cor0
----
-54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1649
SELECT - MIN ( + 54 ) col1 FROM tab1 AS cor0
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1650
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) * + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1650
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) * + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 8 FROM tab2 WHERE - 10 IS NULL
----

query I rowsort
SELECT DISTINCT col1 - - col2 FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
110
115
64

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 85 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1654
SELECT DISTINCT MAX( ALL + col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT + col1 * - - 55 * + - col2 BETWEEN ( + + col2 * - + 73 + - 64 ) AND ( + col0 / col1 )
----
91

skipif mysql # not compatible
query I rowsort label-1654
SELECT DISTINCT MAX ( ALL + col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT + col1 * - - 55 * + - col2 BETWEEN ( + + col2 * - + 73 + - 64 ) AND ( + col0 / col1 )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1655
SELECT - + COUNT( + - 54 ) + + - 3 col1 FROM tab2 cor0 WHERE NOT NULL BETWEEN col2 * + col0 AND NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1655
SELECT - + COUNT ( + - 54 ) + + - 3 col1 FROM tab2 cor0 WHERE NOT NULL BETWEEN col2 * + col0 AND NULL
----
-3

query II rowsort
SELECT DISTINCT - col0, col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1657
SELECT + MAX( ALL - col0 ) AS col1 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-1657
SELECT + MAX ( ALL - col0 ) AS col1 FROM tab1
----
-51

query II rowsort
SELECT DISTINCT col2, col1 * - + col0 AS col2 FROM tab1
----
59
-425
68
-4277
96
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-1659
SELECT ALL - SUM( + - 99 ) AS col0 FROM tab1
----
297

skipif mysql # not compatible
query I rowsort label-1659
SELECT ALL - SUM ( + - 99 ) AS col0 FROM tab1
----
297

onlyif mysql # aggregate syntax: 
query I rowsort label-1660
SELECT - - COUNT( * ) FROM tab2 WHERE NOT + - col0 <= + 65
----
0

skipif mysql # not compatible
query I rowsort label-1660
SELECT - - COUNT ( * ) FROM tab2 WHERE NOT + - col0 <= + 65
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1661
SELECT - col2 DIV - 15 AS col2 FROM tab2
----
1
2
3

skipif mysql # not compatible
query I rowsort label-1661
SELECT - col2 / - 15 AS col2 FROM tab2
----
1
2
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1662
SELECT DISTINCT COUNT( * ) * + 53 FROM tab0
----
159

skipif mysql # not compatible
query I rowsort label-1662
SELECT DISTINCT COUNT ( * ) * + 53 FROM tab0
----
159

query I rowsort
SELECT DISTINCT - 68 FROM ( tab2 cor0 CROSS JOIN tab2 AS cor1 )
----
-68

query I rowsort
SELECT ALL - col0 * + 39 * col0 FROM tab2
----
-159744
-219375
-82524

query I rowsort
SELECT DISTINCT col0 * + col0 * + + col1 FROM tab1
----
36125
36414
389207

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1666
SELECT DISTINCT + - CAST( col1 AS SIGNED ) * col0 * - col1 * + + col2 * col2 FROM tab0 cor0
----
217398735
3836700
950697

skipif mysql # not compatible
query I rowsort label-1666
SELECT DISTINCT + - CAST ( col1 AS INTEGER ) * col0 * - col1 * + + col2 * col2 FROM tab0 cor0
----
217398735
3836700
950697

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1667
SELECT - 45 AS col0 FROM tab0 AS cor0 WHERE + col1 * col2 - + CAST( NULL AS SIGNED ) IS NULL
----
-45
-45
-45

skipif mysql # not compatible
query I rowsort label-1667
SELECT - 45 AS col0 FROM tab0 AS cor0 WHERE + col1 * col2 - + CAST ( NULL AS INTEGER ) IS NULL
----
-45
-45
-45

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + 8 * + col1 * - 23 NOT BETWEEN ( + - col1 * - + ( + col1 ) ) AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 70 * 66 + col2 FROM tab2 AS cor0
----
-4562
-4580
-4597

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE - col0 BETWEEN + col1 * 78 + 43 AND ( - ( col2 ) * + + col1 + col0 + col0 * col2 / col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1671
SELECT + ( + 8 ) * - CAST( + - 25 AS SIGNED ) * + + 60 + - 9 FROM tab1 AS cor0
----
11991
11991
11991

skipif mysql # not compatible
query I rowsort label-1671
SELECT + ( + 8 ) * - CAST ( + - 25 AS INTEGER ) * + + 60 + - 9 FROM tab1 AS cor0
----
11991
11991
11991

query I rowsort
SELECT DISTINCT - 18 + col0 FROM tab0
----
-3
69
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1673
SELECT DISTINCT 37 * - 19 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1673
SELECT DISTINCT 37 * - 19 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE - col0 * 85 * - col1 <> + 2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1675
SELECT DISTINCT - COUNT( * ) DIV + 71 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1675
SELECT DISTINCT - COUNT ( * ) / + 71 FROM tab2
----
0

query I rowsort
SELECT + col1 - col1 AS col0 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col2 * 70 FROM tab0 AS cor0
----
-3290
-6930
-700

onlyif mysql # DIV for integer division: 
query I rowsort label-1678
SELECT DISTINCT 37 DIV + col1 FROM tab0
----
0
1
37

skipif mysql # not compatible
query I rowsort label-1678
SELECT DISTINCT 37 / + col1 FROM tab0
----
0
1
37

onlyif mysql # aggregate syntax: 
query I rowsort label-1679
SELECT + COUNT( * ) * + 74 col1 FROM tab2
----
222

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1679
SELECT + COUNT ( * ) * + 74 col1 FROM tab2
----
222

query I rowsort
SELECT - col2 * 73 AS col1 FROM tab0 AS cor0
----
-3431
-7227
-730

query II rowsort
SELECT DISTINCT - + ( + col1 ) AS col0, col1 AS col2 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1682
SELECT ALL + 58 AS col1, + 90 * - COUNT( * ) * + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
58
NULL

skipif mysql # not compatible
query II rowsort label-1682
SELECT ALL + 58 AS col1, + 90 * - COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
58
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1684
SELECT + + COUNT( * ) AS col2, - COUNT( * ) AS col1 FROM tab1 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-1684
SELECT + + COUNT ( * ) AS col2, - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
3
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-1685
SELECT - col0 DIV + 61 FROM tab0 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-1685
SELECT - col0 / + 61 FROM tab0 AS cor0
----
-1
-1
0

query I rowsort
SELECT ALL + + 34 AS col2 FROM tab1 WHERE NULL IS NULL
----
34
34
34

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL > + col2 * col1 / 35
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1688
SELECT ALL - MAX( ALL - + col2 ) AS col0, - 36 * - COUNT( * ) FROM tab0
----
10
108

skipif mysql # not compatible
query II rowsort label-1688
SELECT ALL - MAX ( ALL - + col2 ) AS col0, - 36 * - COUNT ( * ) FROM tab0
----
10
108

onlyif mysql # aggregate syntax: 
query I rowsort label-1689
SELECT DISTINCT - + MAX( + + 15 ) / + - 84 FROM tab2 WHERE NULL = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1689
SELECT DISTINCT - + MAX ( + + 15 ) / + - 84 FROM tab2 WHERE NULL = NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 <= + - col2 * - col0 / - ( - + 38 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 57 * col0 * - col1 col2 FROM tab1 AS cor0
----
24225
243789
40698

query I rowsort
SELECT - col0 + 85 AS col1 FROM tab2 AS cor0
----
10
21
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1693
SELECT col2 * ( - col0 ) + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1693
SELECT col2 * ( - col0 ) + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 6 col1 FROM tab1 AS cor0
----
-6
-6
-6

query I rowsort
SELECT DISTINCT + - 29 AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 AND + + 3
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1696
SELECT + + COUNT( * ) AS col0 FROM tab1 WHERE + col0 + - - 52 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-1696
SELECT + + COUNT ( * ) AS col0 FROM tab1 WHERE + col0 + - - 52 < NULL
----
0

query I rowsort
SELECT DISTINCT col0 * - 45 AS col1 FROM tab1
----
-2295
-3825
-4095

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1698
SELECT COUNT( * ) DIV - 19 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1698
SELECT COUNT ( * ) / - 19 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 42 col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1700
SELECT ALL - col1 + - col1 + - ( - CAST( NULL AS SIGNED ) ) + ( + ( - col0 ) ) / col0 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1700
SELECT ALL - col1 + - col1 + - ( - CAST ( NULL AS INTEGER ) ) + ( + ( - col0 ) ) / col0 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1701
SELECT + MIN( + + col0 ) AS col0 FROM tab1 cor0
----
51

skipif mysql # not compatible
query I rowsort label-1701
SELECT + MIN ( + + col0 ) AS col0 FROM tab1 cor0
----
51

query I rowsort
SELECT DISTINCT + - col1 * + + col2 + col0 * col2 + + col1 FROM tab1 AS cor0
----
3039
3566
4725

query I rowsort
SELECT DISTINCT col2 + - col1 * + - col2 AS col0 FROM tab2 cor0
----
1196
3120
3944

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 + + + 44 col0 FROM tab0 AS cor0
----
-3
-55
34

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1705
SELECT DISTINCT - 34 - + 75 + CAST( 56 AS SIGNED ) DIV col2 DIV - + 76 FROM tab1 AS cor0
----
-109

skipif mysql # not compatible
query I rowsort label-1705
SELECT DISTINCT - 34 - + 75 + CAST ( 56 AS INTEGER ) / col2 / - + 76 FROM tab1 AS cor0
----
-109

query I rowsort
SELECT DISTINCT - 95 + 61 + col2 AS col0 FROM tab2 cor0
----
-11
24
6

query I rowsort
SELECT ALL - - 52 + - - col1 AS col0 FROM tab1 AS cor0
----
57
66
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1708
SELECT DISTINCT COUNT( * ) - MIN( DISTINCT + CAST( + 21 AS SIGNED ) ) FROM tab0
----
-18

skipif mysql # not compatible
query I rowsort label-1708
SELECT DISTINCT COUNT ( * ) - MIN ( DISTINCT + CAST ( + 21 AS INTEGER ) ) FROM tab0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-1709
SELECT COUNT( ALL - col1 ) + + 84 FROM tab1
----
87

skipif mysql # not compatible
query I rowsort label-1709
SELECT COUNT ( ALL - col1 ) + + 84 FROM tab1
----
87

query I rowsort
SELECT ALL col1 * - + col1 AS col2 FROM tab0
----
-1
-441
-6561

query I rowsort
SELECT + 71 AS col0 FROM tab0 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1712
SELECT ALL - 66 + + COUNT( * ) FROM tab0 WHERE + - col0 IS NULL
----
-66

skipif mysql # not compatible
query I rowsort label-1712
SELECT ALL - 66 + + COUNT ( * ) FROM tab0 WHERE + - col0 IS NULL
----
-66

query I rowsort
SELECT col0 + + col0 * - 58 FROM tab1
----
-2907
-4845
-5187

onlyif mysql # aggregate syntax: 
query I rowsort label-1714
SELECT ALL + MIN( + col0 ) * MIN( + 63 ) - + + 28 AS col1 FROM tab2
----
2870

skipif mysql # not compatible
query I rowsort label-1714
SELECT ALL + MIN ( + col0 ) * MIN ( + 63 ) - + + 28 AS col1 FROM tab2
----
2870

onlyif mysql # aggregate syntax: 
query I rowsort label-1715
SELECT 78 + + - COUNT( * ) FROM tab1
----
75

skipif mysql # not compatible
query I rowsort label-1715
SELECT 78 + + - COUNT ( * ) FROM tab1
----
75

query I rowsort
SELECT + - ( - + col1 ) + + col1 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 10 * + ( + - col2 ) / 82 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1718
SELECT 36 + - col1 + col0 / col1 / - CAST( col1 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT NULL = NULL
----

skipif mysql # not compatible
query I rowsort label-1718
SELECT 36 + - col1 + col0 / col1 / - CAST ( col1 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT ALL + col1 * - + col0 AS col1 FROM tab0 cor0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1720
SELECT + + MIN( DISTINCT + 5 ) DIV + ( - - MIN( - - col2 ) ) AS col1 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-1720
SELECT + + MIN ( DISTINCT + 5 ) / + ( - - MIN ( - - col2 ) ) AS col1 FROM tab1 cor0
----
0

query I rowsort
SELECT + ( + 71 ) FROM tab1 AS cor0
----
71
71
71

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 75 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1723
SELECT DISTINCT ( + + MAX( DISTINCT + col2 ) ) AS col1 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-1723
SELECT DISTINCT ( + + MAX ( DISTINCT + col2 ) ) AS col1 FROM tab0 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1724
SELECT ALL + - ( - MIN( ALL col1 ) ) AS col2 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-1724
SELECT ALL + - ( - MIN ( ALL col1 ) ) AS col2 FROM tab2 AS cor0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1725
SELECT ALL - ( + col2 ) * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1725
SELECT ALL - ( + col2 ) * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1726
SELECT MIN( + CAST( NULL AS SIGNED ) ) col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1726
SELECT MIN ( + CAST ( NULL AS INTEGER ) ) col1 FROM tab2
----
NULL

query I rowsort
SELECT - col2 * ( + col2 ) AS col1 FROM tab0
----
-100
-2209
-9801

query II rowsort
SELECT col2, 75 FROM tab1
----
59
75
68
75
96
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1729
SELECT + 99 * - + COUNT( * ) FROM tab0
----
-297

skipif mysql # not compatible
query I rowsort label-1729
SELECT + 99 * - + COUNT ( * ) FROM tab0
----
-297

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col0, - 14 AS col1 FROM tab1
----
59
-14
68
-14
96
-14

query III rowsort
SELECT * FROM tab2 WHERE NOT + 16 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 89 * + - ( - + col1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1733
SELECT DISTINCT CAST( NULL AS SIGNED ) + - - COUNT( * ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1733
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - - COUNT ( * ) FROM tab1 cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1734
SELECT - COUNT( ( + CAST( 51 AS SIGNED ) ) ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1734
SELECT - COUNT ( ( + CAST ( 51 AS INTEGER ) ) ) AS col2 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1735
SELECT CAST( NULL AS SIGNED ) AS col0, - col2 FROM tab0 AS cor0
----
NULL
-10
NULL
-47
NULL
-99

skipif mysql # not compatible
query II rowsort label-1735
SELECT CAST ( NULL AS INTEGER ) AS col0, - col2 FROM tab0 AS cor0
----
NULL
-10
NULL
-47
NULL
-99

query I rowsort
SELECT DISTINCT + - col2 * + col2 + - 18 FROM tab2 AS cor0
----
-1618
-3382
-547

query I rowsort
SELECT ALL - 86 * col2 AS col2 FROM tab0 AS cor0
----
-4042
-8514
-860

query II rowsort
SELECT - col2 + + col2 AS col1, - col2 AS col1 FROM tab0 AS cor0
----
0
-10
0
-47
0
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-1739
SELECT ALL 11 * 62 DIV + col1 + - col0 AS col0 FROM tab2 cor0
----
-33
-56
-65

skipif mysql # not compatible
query I rowsort label-1739
SELECT ALL 11 * 62 / + col1 + - col0 AS col0 FROM tab2 cor0
----
-33
-56
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1740
SELECT COUNT( * ) DIV - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1740
SELECT COUNT ( * ) / - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 * - ( - - col1 ) BETWEEN + + col2 + - + col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1742
SELECT ALL + 63 - - - col1 AS col0, col1 * + + col1 DIV + col1 AS col2 FROM tab2 AS cor0
----
-14
77
-4
67
12
51

skipif mysql # not compatible
query II rowsort label-1742
SELECT ALL + 63 - - - col1 AS col0, col1 * + + col1 / + col1 AS col2 FROM tab2 AS cor0
----
-14
77
-4
67
12
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1743
SELECT DISTINCT - + SUM( col2 ) * - COUNT( * ) AS col1, 22 DIV - + MAX( ALL 94 ) FROM tab1 AS cor0
----
669
0

skipif mysql # not compatible
query II rowsort label-1743
SELECT DISTINCT - + SUM ( col2 ) * - COUNT ( * ) AS col1, 22 / - + MAX ( ALL 94 ) FROM tab1 AS cor0
----
669
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 71 - - - col0 col0 FROM tab2
----
-4
25
7

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0 WHERE 46 IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # aggregate syntax: 
query I rowsort label-1746
SELECT ALL - - COUNT( * ) col2 FROM tab1 WHERE NULL = - col1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1746
SELECT ALL - - COUNT ( * ) col2 FROM tab1 WHERE NULL = - col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1747
SELECT * FROM tab1 WHERE CAST( NULL AS SIGNED ) + - 70 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1747
SELECT * FROM tab1 WHERE CAST ( NULL AS INTEGER ) + - 70 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( + - col0 )
----

query I rowsort
SELECT ALL col2 - + + 89 + - - 82 + - col0 - col2 * col0 * + - col2 * col2 FROM tab0
----
1557370
86916
94118998

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1750
SELECT - col1 * col2 AS col0 FROM tab0 cor0 WHERE NOT ( CAST( NULL AS SIGNED ) IS NOT NULL ) OR NOT NULL < NULL
----
-210
-3807
-99

skipif mysql # not compatible
query I rowsort label-1750
SELECT - col1 * col2 AS col0 FROM tab0 cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) IS NOT NULL ) OR NOT NULL < NULL
----
-210
-3807
-99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND - col2
----

query I rowsort
SELECT DISTINCT col1 * + + 93 FROM tab1 AS cor0
----
1302
4371
465

query II rowsort
SELECT - 32 * + 38, + ( - col0 ) AS col1 FROM tab2 AS cor0
----
-1216
-46
-1216
-64
-1216
-75

query I rowsort
SELECT - 82 FROM tab1 AS cor0 WHERE NOT + col2 + + col1 IS NULL
----
-82
-82
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1755
SELECT - CAST( NULL AS SIGNED ) * + 76 col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1755
SELECT - CAST ( NULL AS INTEGER ) * + 76 col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col1 * col2 * col2 FROM tab2 AS cor0
----
123200
225388
26979

onlyif mysql # DIV for integer division: 
query I rowsort label-1757
SELECT ALL + col0 DIV 75 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-1757
SELECT ALL + col0 / 75 FROM tab1 AS cor0
----
0
1
1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + col2 * col0 ) NOT IN ( - 51 / - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1759
SELECT ALL col2 DIV - + 90 + + col1 col0 FROM tab1 AS cor0
----
13
47
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1759
SELECT ALL col2 / - + 90 + + col1 col0 FROM tab1 AS cor0
----
13
47
5

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 - - + 68 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 7 col2 FROM tab2 WHERE NULL IS NULL
----
7

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 86 col0 FROM tab2 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1764
SELECT DISTINCT 71, - 72 + + COUNT( * ) AS col0 FROM tab1
----
71
-69

skipif mysql # not compatible
query II rowsort label-1764
SELECT DISTINCT 71, - 72 + + COUNT ( * ) AS col0 FROM tab1
----
71
-69

query I rowsort
SELECT 49 + - + 54 FROM tab0
----
-5
-5
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + + - col2 col1 FROM tab2 AS cor0
----
28
37
9

query I rowsort
SELECT DISTINCT col2 + 11 AS col1 FROM tab1 AS cor0
----
107
70
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1768
SELECT ALL COUNT( * ) * COUNT( * ) * + - COUNT( * ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1768
SELECT ALL COUNT ( * ) * COUNT ( * ) * + - COUNT ( * ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT ALL + 70 + 71 AS col2 FROM tab0 AS cor0
----
141
141
141

onlyif mysql # DIV for integer division: 
query I rowsort label-1770
SELECT ALL - - col2 DIV + + 40 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-1770
SELECT ALL - - col2 / + + 40 FROM tab2 AS cor0
----
0
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1771
SELECT + CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-1771
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1772
SELECT DISTINCT ( + - CAST( + + col0 AS SIGNED ) ) FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-1772
SELECT DISTINCT ( + - CAST ( + + col0 AS INTEGER ) ) FROM tab0
----
-15
-87
-97

query III rowsort
SELECT * FROM tab0 WHERE ( NOT 2 + + col2 + - 17 >= NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + col2 BETWEEN + 41 AND NULL
----

query I rowsort
SELECT 4 * - 15 - col0 FROM tab1 AS cor0
----
-111
-145
-151

query I rowsort
SELECT col1 - - ( col1 ) AS col0 FROM tab2 AS cor0
----
102
134
154

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab1 AS cor0 WHERE NULL IN ( + 60 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1778
SELECT + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN col1 / - col2 + col1 AND - col1
----
0

skipif mysql # not compatible
query I rowsort label-1778
SELECT + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN col1 / - col2 + col1 AND - col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1779
SELECT DISTINCT + col1 DIV 40 - ( + + col0 ) AS col1 FROM tab0 cor0
----
-13
-87
-97

skipif mysql # not compatible
query I rowsort label-1779
SELECT DISTINCT + col1 / 40 - ( + + col0 ) AS col1 FROM tab0 cor0
----
-13
-87
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1780
SELECT DISTINCT - ( + - CAST( - + 59 AS SIGNED ) ) + - SUM( DISTINCT col2 ) FROM tab0 cor0
----
-215

skipif mysql # not compatible
query I rowsort label-1780
SELECT DISTINCT - ( + - CAST ( - + 59 AS INTEGER ) ) + - SUM ( DISTINCT col2 ) FROM tab0 cor0
----
-215

query I rowsort
SELECT DISTINCT 40 * - 88 + + 0 AS col2 FROM tab0
----
-3520

query III rowsort
SELECT * FROM tab1 WHERE NOT - 59 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1783
SELECT DISTINCT + + COUNT( * ) AS col2 FROM tab1 WHERE NULL <> + col1
----
0

skipif mysql # not compatible
query I rowsort label-1783
SELECT DISTINCT + + COUNT ( * ) AS col2 FROM tab1 WHERE NULL <> + col1
----
0

query I rowsort
SELECT - col2 * - 49 AS col1 FROM tab1
----
2891
3332
4704

query I rowsort
SELECT ( 79 ) * + 10 * + - col2 * 58 FROM tab0
----
-2153540
-4536180
-458200

query I rowsort
SELECT DISTINCT - + ( - 66 ) FROM tab1 AS cor0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1787
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT CAST( NULL AS SIGNED ) IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1787
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT CAST ( NULL AS INTEGER ) IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1788
SELECT ALL + col0 * - CAST( NULL AS SIGNED ) col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1788
SELECT ALL + col0 * - CAST ( NULL AS INTEGER ) col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( - - col2 ) * + ( - - col2 ) AS col1 FROM tab0
----
100
2209
9801

query II rowsort
SELECT 90 + col0 + - col2 + + - col1, + 95 * col1 AS col0 FROM tab1 AS cor0
----
111
475
31
1330
66
4465

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 83 IS NULL
----

query I rowsort
SELECT DISTINCT - ( 82 ) * - - ( - + 52 ) FROM tab0 cor0
----
4264

onlyif mysql # aggregate syntax: 
query I rowsort label-1793
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL IN ( + col1 / 94 )
----
0

skipif mysql # not compatible
query I rowsort label-1793
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL IN ( + col1 / 94 )
----
0

query I rowsort
SELECT 5 + - - col0 FROM tab1 AS cor0
----
56
90
96

query I rowsort
SELECT + col1 + - ( - - 71 ) * + - col2 FROM tab2 AS cor0
----
1684
2917
4185

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1796
SELECT ALL - COUNT( * ) DIV - 45 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1796
SELECT ALL - COUNT ( * ) / - 45 AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1797
SELECT + CAST( NULL AS SIGNED ) + - ( + col2 ) * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1797
SELECT + CAST ( NULL AS INTEGER ) + - ( + col2 ) * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1798
SELECT - COUNT( + col0 ) AS col0, COUNT( * ) FROM tab1 WHERE - + col2 IS NOT NULL
----
-3
3

skipif mysql # not compatible
query II rowsort label-1798
SELECT - COUNT ( + col0 ) AS col0, COUNT ( * ) FROM tab1 WHERE - + col2 IS NOT NULL
----
-3
3

query II rowsort
SELECT - ( col2 ), 51 AS col0 FROM tab1
----
-59
51
-68
51
-96
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1800
SELECT DISTINCT - MAX( col2 ) AS col1 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-1800
SELECT DISTINCT - MAX ( col2 ) AS col1 FROM tab0
----
-99

query I rowsort
SELECT 42 AS col1 FROM tab2 WHERE ( 83 IS NOT NULL )
----
42
42
42

query I rowsort
SELECT DISTINCT + 61 * col2 + + 15 FROM tab1 cor0
----
3614
4163
5871

query I rowsort
SELECT + 36 - - + col2 AS col1 FROM tab0 AS cor0
----
135
46
83

query I rowsort
SELECT + 39 - + + col1 + - - 4 AS col0 FROM tab2 AS cor0
----
-24
-34
-8

query I rowsort
SELECT DISTINCT + col2 - - 47 FROM tab0 AS cor0
----
146
57
94

onlyif mysql # aggregate syntax: 
query II rowsort label-1806
SELECT ALL - COUNT( * ), 24 AS col1 FROM tab2
----
-3
24

skipif mysql # not compatible
query II rowsort label-1806
SELECT ALL - COUNT ( * ), 24 AS col1 FROM tab2
----
-3
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1807
SELECT - COUNT( + + 80 ) DIV + COUNT( * ) + COUNT( * ) AS col2 FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-1807
SELECT - COUNT ( + + 80 ) / + COUNT ( * ) + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
2

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE ( NOT - + col1 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT col1 + + - 94 FROM tab1 AS cor0
----
-47
-80
-89

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + ( + col2 ) * - col2 / 54 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + col0 * + - col1 + 88 FROM tab0 AS cor0
----
1303
185
1915

onlyif mysql # aggregate syntax: 
query I rowsort label-1812
SELECT ALL 85 + + + COUNT( ALL + 0 ) FROM tab0 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-1812
SELECT ALL 85 + + + COUNT ( ALL + 0 ) FROM tab0 AS cor0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1813
SELECT ALL + 38 - - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-1813
SELECT ALL + 38 - - + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-1814
SELECT + + MAX( ALL - - 11 ) FROM tab1 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-1814
SELECT + + MAX ( ALL - - 11 ) FROM tab1 AS cor0
----
11

query II rowsort
SELECT - - 67 AS col1, col2 AS col2 FROM tab1 AS cor0
----
67
59
67
68
67
96

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + col1 + + col0 <= NULL
----

query II rowsort
SELECT ALL + 27 AS col0, + col1 + + 54 FROM tab1
----
27
101
27
59
27
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1818
SELECT DISTINCT - COUNT( DISTINCT - col2 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-1818
SELECT DISTINCT - COUNT ( DISTINCT - col2 ) FROM tab0
----
-3

query I rowsort
SELECT col0 / - + col1 * ( - 44 ) - - - 58 * - col2 + col2 AS col1 FROM tab2 WHERE NOT + 54 + + - 21 + col0 <= NULL
----

query II rowsort
SELECT DISTINCT col0 AS col2, ( + ( - - col0 ) ) AS col1 FROM tab2
----
46
46
64
64
75
75

query II rowsort
SELECT col0, - col0 * - col1 AS col0 FROM tab0
----
15
1215
87
1827
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1822
SELECT DISTINCT + 18 * + COUNT( * ) - - 25 AS col2 FROM tab2 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-1822
SELECT DISTINCT + 18 * + COUNT ( * ) - - 25 AS col2 FROM tab2 AS cor0
----
79

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col2 ) BETWEEN NULL AND + col0
----

query II rowsort
SELECT DISTINCT + + col0, 88 * - col2 - - + 10 AS col1 FROM tab0 AS cor0
----
15
-4126
87
-870
97
-8702

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT - col1 * + col0 * + col2 * col0 + + 30 - col0 FROM tab0 AS cor0
----
-1589547
-856560
-931558

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1828
SELECT ALL - col2 + + + CAST( NULL AS SIGNED ) - + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1828
SELECT ALL - col2 + + + CAST ( NULL AS INTEGER ) - + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1829
SELECT - 11 DIV + - 89 * + - ( 57 ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1829
SELECT - 11 / + - 89 * + - ( 57 ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
0
0
0

query I rowsort
SELECT ALL + ( - 76 ) + + col2 + + col2 FROM tab1 AS cor0
----
116
42
60

query I rowsort
SELECT ALL - col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( + - 84 )
----

query I rowsort
SELECT DISTINCT ( + 40 ) AS col0 FROM tab2
----
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + 18 col1 FROM tab1
----
114
77
86

query I rowsort
SELECT ALL - col0 * + 58 AS col0 FROM tab1
----
-2958
-4930
-5278

query I rowsort
SELECT ALL - col2 * - col1 * col1 * + - col2 FROM tab0
----
-14493249
-44100
-9801

onlyif mysql # aggregate syntax: 
query I rowsort label-1836
SELECT - 42 + + COUNT( * ) FROM tab2
----
-39

skipif mysql # not compatible
query I rowsort label-1836
SELECT - 42 + + COUNT ( * ) FROM tab2
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1837
SELECT DISTINCT + col1 + + CAST( NULL AS SIGNED ) + + col2 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1837
SELECT DISTINCT + col1 + + CAST ( NULL AS INTEGER ) + + col2 AS col0 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT - 27 * - + 31 AS col1 FROM tab0
----
837

onlyif mysql # aggregate syntax: 
query I rowsort label-1839
SELECT ALL 12 * COUNT( * ) col2 FROM tab0 AS cor0
----
36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1839
SELECT ALL 12 * COUNT ( * ) col2 FROM tab0 AS cor0
----
36

query I rowsort
SELECT ALL 28 AS col0 FROM tab1 AS cor0 WHERE NULL > NULL
----

query I rowsort
SELECT - 93 + col0 FROM tab2 AS cor0
----
-18
-29
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 - col2, 13 col0 FROM tab1
----
0
13
0
13
0
13

query I rowsort
SELECT ALL col2 * + + col1 * - - col0 FROM tab2
----
197120
291450
53958

onlyif mysql # DIV for integer division: 
query I rowsort label-1844
SELECT 69 DIV + ( - 21 ) - - 96 * + - 60 FROM tab1
----
-5763
-5763
-5763

skipif mysql # not compatible
query I rowsort label-1844
SELECT 69 / + ( - 21 ) - - 96 * + - 60 FROM tab1
----
-5763
-5763
-5763

onlyif mysql # DIV for integer division: 
query I rowsort label-1845
SELECT DISTINCT - + col0 DIV - 76 + + - col1 AS col0 FROM tab0 AS cor0
----
-20
-81
0

skipif mysql # not compatible
query I rowsort label-1845
SELECT DISTINCT - + col0 / - 76 + + - col1 AS col0 FROM tab0 AS cor0
----
-20
-81
0

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) BETWEEN + 23 + + - col0 AND - - col1
----

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab2 AS cor0 WHERE NOT + col1 * 90 IS NOT NULL
----

query I rowsort
SELECT col1 / 33 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1849
SELECT ALL CAST( 85 AS SIGNED ) col0 FROM tab0 AS cor0
----
85
85
85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1849
SELECT ALL CAST ( 85 AS INTEGER ) col0 FROM tab0 AS cor0
----
85
85
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 47 * - col2 col1 FROM tab1 cor0
----
2773
3196
4512

query I rowsort
SELECT DISTINCT col2 * - 79 FROM tab2 AS cor0
----
-1817
-3160
-4582

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN col0 AND + col0
----

query II rowsort
SELECT ALL col1, - col0 + - col1 AS col2 FROM tab1
----
14
-65
47
-138
5
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-1854
SELECT SUM( DISTINCT + ( - col2 ) ) FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-1854
SELECT SUM ( DISTINCT + ( - col2 ) ) FROM tab1
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-1855
SELECT - COUNT( * ) * - - 69 FROM tab2
----
-207

skipif mysql # not compatible
query I rowsort label-1855
SELECT - COUNT ( * ) * - - 69 FROM tab2
----
-207

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( + - col2 + + + col0 - + col1 * 22 * col1 * col2 * 6 )
----

query I rowsort
SELECT DISTINCT - 50 * 34 FROM tab1 AS cor0
----
-1700

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col2 * - - col1 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + 62, col1 AS col0 FROM tab1 AS cor0
----
62
14
62
47
62
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1860
SELECT DISTINCT MIN( + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1860
SELECT DISTINCT MIN ( + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT ( - + 40 ) FROM tab2 AS cor0 WHERE - col0 = NULL
----

query I rowsort
SELECT ALL + - AVG ( + col2 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN + col2 AND NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1863
SELECT + + col1 DIV + 24 + col2 - + col1 AS col2 FROM tab1 cor0
----
22
54
82

skipif mysql # not compatible
query I rowsort label-1863
SELECT + + col1 / + 24 + col2 - + col1 AS col2 FROM tab1 cor0
----
22
54
82

query I rowsort
SELECT 51 AS col1 FROM tab1 AS cor0 WHERE + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1865
SELECT - - COUNT( DISTINCT + col2 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1865
SELECT - - COUNT ( DISTINCT + col2 ) AS col1 FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 WHERE - col0 * ( - 34 ) * - + 28 - - col1 + - + col2 + + + col0 * + 75 * 85 BETWEEN NULL AND col0
----

query II rowsort
SELECT ALL + 77 * - + col0 * 71, - col1 AS col2 FROM tab2
----
-251482
-51
-349888
-77
-410025
-67

query I rowsort
SELECT ALL + col1 + + col2 * - ( 66 ) AS col0 FROM tab1 AS cor0
----
-3889
-4441
-6322

query I rowsort
SELECT + ( col1 ) - - col0 * - ( - col2 ) FROM tab2 AS cor0
----
1109
2637
4417

onlyif mysql # DIV for integer division: 
query I rowsort label-1870
SELECT + 4 DIV + 21 * + 51 - + - col2 AS col0 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-1870
SELECT + 4 / + 21 * + 51 - + - col2 AS col0 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT DISTINCT - col2 + + ( col0 ) * + col2 FROM tab0 AS cor0
----
658
860
9504

query I rowsort
SELECT + 85 + - - col1 FROM tab2 AS cor0
----
136
152
162

query I rowsort
SELECT - col2 + 27 FROM tab0
----
-20
-72
17

query I rowsort
SELECT DISTINCT ( 97 ) AS col2 FROM tab2
----
97

query I rowsort
SELECT col0 FROM tab2 WHERE NOT 35 * 80 IS NULL
----
46
64
75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 94 * - + 41 + + - col2 + + + col1 + - + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1877
SELECT col2 * + CAST( NULL AS SIGNED ) * 43 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1877
SELECT col2 * + CAST ( NULL AS INTEGER ) * 43 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 75 col1 FROM tab0 AS cor0
----
75

query I rowsort
SELECT DISTINCT - + 24 * + 20 FROM tab1 AS cor0
----
-480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1880
SELECT ALL - 50 * - COUNT( * ) - - CAST( NULL AS SIGNED ) * + 22 * COUNT( * ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1880
SELECT ALL - 50 * - COUNT ( * ) - - CAST ( NULL AS INTEGER ) * + 22 * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1881
SELECT ALL CAST( NULL AS SIGNED ) * + - col0 FROM tab0 WHERE col2 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1881
SELECT ALL CAST ( NULL AS INTEGER ) * + - col0 FROM tab0 WHERE col2 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1882
SELECT - ( CAST( + col2 AS SIGNED ) ) * - col2 + + 47 AS col0 FROM tab1 WHERE NOT - + col1 < NULL
----

skipif mysql # not compatible
query I rowsort label-1882
SELECT - ( CAST ( + col2 AS INTEGER ) ) * - col2 + + 47 AS col0 FROM tab1 WHERE NOT - + col1 < NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND + - 97 + - - 87
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1884
SELECT DISTINCT COUNT( 30 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1884
SELECT DISTINCT COUNT ( 30 ) FROM tab1
----
3

query I rowsort
SELECT 91 * + 48 FROM tab1
----
4368
4368
4368

query I rowsort
SELECT - + col2 FROM tab1 WHERE NOT + + col1 IS NULL
----
-59
-68
-96

query I rowsort
SELECT DISTINCT - + col0 * - ( - 66 ) AS col0 FROM tab1 AS cor0
----
-3366
-5610
-6006

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1888
SELECT + col2 + - - CAST( NULL AS SIGNED ) - + + ( + + col0 ) AS col0, col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-1888
SELECT + col2 + - - CAST ( NULL AS INTEGER ) - + + ( + + col0 ) AS col0, col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

query I rowsort
SELECT DISTINCT ( - + 55 ) AS col0 FROM tab2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-1890
SELECT ALL - 69 + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-1890
SELECT ALL - 69 + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 AS col0, col2 col0 FROM tab1 AS cor0
----
-14
96
-47
68
-5
59

query I rowsort
SELECT ALL - col0 + + + col2 * - col0 FROM tab1 AS cor0
----
-4947
-5100
-6279

onlyif mysql # aggregate syntax: 
query I rowsort label-1893
SELECT DISTINCT MIN( DISTINCT col0 ) + - 9 FROM tab1 cor0
----
42

skipif mysql # not compatible
query I rowsort label-1893
SELECT DISTINCT MIN ( DISTINCT col0 ) + - 9 FROM tab1 cor0
----
42

query I rowsort
SELECT 50 - - col2 FROM tab1 AS cor0
----
109
118
146

onlyif mysql # aggregate syntax: 
query I rowsort label-1895
SELECT DISTINCT + COUNT( * ) + - + COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1895
SELECT DISTINCT + COUNT ( * ) + - + COUNT ( * ) FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1896
SELECT - - ( + COUNT( * ) ) * ( + COUNT( - col0 ) ) + + 66 AS col0 FROM tab0 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-1896
SELECT - - ( + COUNT ( * ) ) * ( + COUNT ( - col0 ) ) + + 66 AS col0 FROM tab0 AS cor0
----
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 * - - ( + 95 ) - - 7 AS col2, - 97 col2 FROM tab2
----
4852
-97
6372
-97
7322
-97

query I rowsort
SELECT + + 92 + - + col0 + col2 / col2 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1899
SELECT CAST( 19 AS SIGNED ) + - + col1 FROM tab0
----
-2
-62
18

skipif mysql # not compatible
query I rowsort label-1899
SELECT CAST ( 19 AS INTEGER ) + - + col1 FROM tab0
----
-2
-62
18

query I rowsort
SELECT ALL 50 - - - 83 AS col1 FROM tab1
----
-33
-33
-33

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE NOT NULL BETWEEN + col2 AND 38
----

query III rowsort
SELECT * FROM tab1 WHERE + col1 + - 10 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1903
SELECT - CAST( - - 36 AS SIGNED ) * - + col2 FROM tab1
----
2124
2448
3456

skipif mysql # not compatible
query I rowsort label-1903
SELECT - CAST ( - - 36 AS INTEGER ) * - + col2 FROM tab1
----
2124
2448
3456

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 26 col1, 32 FROM tab1 cor0
----
-26
32
-26
32
-26
32

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL = + 8
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1906
SELECT DISTINCT + COUNT( ALL + CAST( NULL AS SIGNED ) ) col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1906
SELECT DISTINCT + COUNT ( ALL + CAST ( NULL AS INTEGER ) ) col0 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1907
SELECT 97 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1907
SELECT 97 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - col0 * + col2, - col1 AS col0 FROM tab0 AS cor0
----
-705
-81
-870
-21
-9603
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1909
SELECT DISTINCT SUM( - - 97 ) * + 32 AS col1 FROM tab2 AS cor0
----
9312

skipif mysql # not compatible
query I rowsort label-1909
SELECT DISTINCT SUM ( - - 97 ) * + 32 AS col1 FROM tab2 AS cor0
----
9312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col1 * - - col1 col0, 65 - - col1 + + - col0 + col0 AS col0 FROM tab2 cor0
----
2601
116
4489
132
5929
142

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( ( - col2 ) ) > ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1912
SELECT 45 DIV - COUNT( * ) AS col2 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-1912
SELECT 45 / - COUNT ( * ) AS col2 FROM tab0
----
-15

onlyif mysql # DIV for integer division: 
query II rowsort label-1913
SELECT - 49 DIV 82 DIV ( + + col0 ) col1, + col0 + - 83 FROM tab1
----
0
-32
0
2
0
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1913
SELECT - 49 / 82 / ( + + col0 ) col1, + col0 + - 83 FROM tab1
----
0
-32
0
2
0
8

onlyif mysql # DIV for integer division: 
query I rowsort label-1914
SELECT ALL + 17 DIV - + col0 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1914
SELECT ALL + 17 / - + col0 AS col1 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col1, 0 AS col1 FROM tab2
----
-51
0
-67
0
-77
0

query II rowsort
SELECT + col0, + col0 * - ( + 27 ) AS col2 FROM tab0
----
15
-405
87
-2349
97
-2619

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <> + 63
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + ( - col1 ) = + 67 + 9
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col1 ) + + col2 * - ( col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1920
SELECT - COUNT( * ) AS col2, MAX( col1 ) FROM tab1 AS cor0
----
-3
47

skipif mysql # not compatible
query II rowsort label-1920
SELECT - COUNT ( * ) AS col2, MAX ( col1 ) FROM tab1 AS cor0
----
-3
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col1 * 35 + - + col1 - + col0 * 91 + + col2 col2, + 92 + - col1 AS col2 FROM tab1 AS cor0
----
-5049
78
-7856
87
-9905
45

query I rowsort
SELECT ALL col2 * - + col0 - ( - col2 ) * col2 * - col1 AS col1 FROM tab0 AS cor0
----
-179634
-19404
-2970

query I rowsort
SELECT 87 + - col1 AS col0 FROM tab1 AS cor0
----
40
73
82

query I rowsort
SELECT DISTINCT col0 - ( - col1 ) AS col2 FROM tab1 AS cor0
----
138
65
90

query II rowsort
SELECT 54, - col0 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
54
-51
54
-85
54
-91

query I rowsort
SELECT ALL col1 - - 94 AS col2 FROM tab0
----
115
175
95

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 36 IS NOT NULL
----

query I rowsort
SELECT ALL col2 * col0 * 61 - - col1 * + col1 FROM tab2
----
162089
269839
67139

onlyif mysql # DIV for integer division: 
query II rowsort label-1929
SELECT DISTINCT + col1 col0, - 8 DIV + + col0 FROM tab2 AS cor0
----
51
0
67
0
77
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1929
SELECT DISTINCT + col1 col0, - 8 / + + col0 FROM tab2 AS cor0
----
51
0
67
0
77
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1930
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-1930
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
NULL

query I rowsort
SELECT DISTINCT + ( 17 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1932
SELECT ALL - COUNT( * ) * - 6 * COUNT( * ) AS col2 FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-1932
SELECT ALL - COUNT ( * ) * - 6 * COUNT ( * ) AS col2 FROM tab1
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-1933
SELECT + 1 DIV + col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1933
SELECT + 1 / + col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1934
SELECT - COUNT( * ) * - - 98 AS col0 FROM tab2 AS cor0
----
-294

skipif mysql # not compatible
query I rowsort label-1934
SELECT - COUNT ( * ) * - - 98 AS col0 FROM tab2 AS cor0
----
-294

query I rowsort
SELECT - - col1 * - col2 * col0 FROM tab0 AS cor0
----
-18270
-57105
-9603

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + ( col1 ) > 24 + + col0
----
87
21
10
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1937
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + ( + - col1 ) * 82 BETWEEN - col0 + - CAST( col2 AS SIGNED ) + + + 66 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1937
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + ( + - col1 ) * 82 BETWEEN - col0 + - CAST ( col2 AS INTEGER ) + + + 66 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * 36 * - col2 col1 FROM tab0 AS cor0
----
352836
3600
79524

query I rowsort
SELECT - col2 * - col1 + - + 34 FROM tab0 cor0
----
176
3773
65

query I rowsort
SELECT ALL + col1 AS col0 FROM tab1 WHERE NOT + - 8 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1941
SELECT DISTINCT MIN( - + 26 ) FROM tab0
----
-26

skipif mysql # not compatible
query I rowsort label-1941
SELECT DISTINCT MIN ( - + 26 ) FROM tab0
----
-26

query I rowsort
SELECT ALL col1 * - 86 * col1 FROM tab2
----
-223686
-386054
-509894

onlyif mysql # DIV for integer division: 
query I rowsort label-1943
SELECT + col0 DIV + 26 + + col1 AS col0 FROM tab0
----
24
4
81

skipif mysql # not compatible
query I rowsort label-1943
SELECT + col0 / + 26 + + col1 AS col0 FROM tab0
----
24
4
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1944
SELECT - + COUNT( * ) FROM tab2 AS cor0 WHERE - col2 * + col1 * - + col1 * - col1 * col1 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1944
SELECT - + COUNT ( * ) FROM tab2 AS cor0 WHERE - col2 * + col1 * - + col1 * - col1 * col1 IS NOT NULL
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - col2 col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1946
SELECT + MAX( ALL - - col0 ) AS col0 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-1946
SELECT + MAX ( ALL - - col0 ) AS col0 FROM tab1
----
91

query I rowsort
SELECT DISTINCT - - col1 AS col0 FROM tab2 cor0 WHERE NOT ( NOT NULL IS NULL )
----
51
67
77

query I rowsort
SELECT ALL 73 + - col0 FROM tab2 AS cor0
----
-2
27
9

query I rowsort
SELECT DISTINCT + col0 + - - 93 AS col1 FROM tab1 cor0
----
144
178
184

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL > + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1951
SELECT + + COUNT( * ) - + COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1951
SELECT + + COUNT ( * ) - + COUNT ( * ) FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 48 * col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1953
SELECT DISTINCT + 12 + ( + + SUM( + + col2 ) ) AS col2 FROM tab2 AS cor0
----
133

skipif mysql # not compatible
query I rowsort label-1953
SELECT DISTINCT + 12 + ( + + SUM ( + + col2 ) ) AS col2 FROM tab2 AS cor0
----
133

query I rowsort
SELECT ALL - col0 FROM tab2 AS cor0 WHERE ( 24 ) + + col0 IS NOT NULL
----
-46
-64
-75

query III rowsort
SELECT * FROM tab2 WHERE NULL <> - col1 * col2 + col1
----

query I rowsort
SELECT ALL - col2 + ( - 54 ) FROM tab0 WHERE - 22 + + 22 IN ( - + col0 )
----

query I rowsort
SELECT ALL 23 * ( + col0 ) FROM tab0
----
2001
2231
345

onlyif mysql # aggregate syntax: 
query I rowsort label-1958
SELECT - + MAX( DISTINCT 4 ) AS col2 FROM tab2 WHERE NULL > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1958
SELECT - + MAX ( DISTINCT 4 ) AS col2 FROM tab2 WHERE NULL > NULL
----
NULL

query II rowsort
SELECT col2 * - col2, 98 AS col2 FROM tab0
----
-100
98
-2209
98
-9801
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1960
SELECT DISTINCT - MAX( ALL + + col2 ), - CAST( NULL AS SIGNED ) / - - SUM( ALL - col0 ) AS col0 FROM tab1
----
-96
NULL

skipif mysql # not compatible
query II rowsort label-1960
SELECT DISTINCT - MAX ( ALL + + col2 ), - CAST ( NULL AS INTEGER ) / - - SUM ( ALL - col0 ) AS col0 FROM tab1
----
-96
NULL

query II rowsort
SELECT DISTINCT - ( - - col0 ) AS col1, col0 FROM tab2
----
-46
46
-64
64
-75
75

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 < + ( + col0 ) + - col1
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 * + col2 * - 95 NOT BETWEEN col2 - + - col0 AND col1
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND - + col1 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1965
SELECT DISTINCT MIN( 58 ) FROM tab1 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-1965
SELECT DISTINCT MIN ( 58 ) FROM tab1 AS cor0
----
58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 90 * + + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 73 * + + col2 * 36 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 42 col0 FROM tab0 AS cor0
----
42

query I rowsort
SELECT DISTINCT col2 + + 35 FROM tab0 AS cor0 WHERE NOT 67 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1970
SELECT ALL - COUNT( * ) * + 36 AS col1 FROM tab1 AS cor0
----
-108

skipif mysql # not compatible
query I rowsort label-1970
SELECT ALL - COUNT ( * ) * + 36 AS col1 FROM tab1 AS cor0
----
-108

query I rowsort
SELECT - 30 + - - col0 AS col2 FROM tab2 AS cor0
----
16
34
45

query I rowsort
SELECT - col2 * + - 66 + + 26 AS col1 FROM tab0 cor0
----
3128
6560
686

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col1 + - 30 col2 FROM tab0
----
-29
411
6531

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1974
SELECT col0 * + + col2 / - col0 / CAST( NULL AS SIGNED ) AS col2, ( + ( - + 66 ) ) AS col2 FROM tab0
----
NULL
-66
NULL
-66
NULL
-66

skipif mysql # not compatible
query II rowsort label-1974
SELECT col0 * + + col2 / - col0 / CAST ( NULL AS INTEGER ) AS col2, ( + ( - + 66 ) ) AS col2 FROM tab0
----
NULL
-66
NULL
-66
NULL
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 * - + 83 AS col1, col2 col1 FROM tab2
----
-1909
23
-3320
40
-4814
58

query I rowsort
SELECT ALL + col1 * - 23 * col0 AS col2 FROM tab1
----
-16422
-9775
-98371

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1977
SELECT DISTINCT - 57 * + col1 + + ( - col2 ) * + CAST( NULL AS SIGNED ) * - col1 - + + col0, + col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-1977
SELECT DISTINCT - 57 * + col1 + + ( - col2 ) * + CAST ( NULL AS INTEGER ) * - col1 - + + col0, + col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

query I rowsort
SELECT ALL 16 + - - col2 AS col2 FROM tab2 AS cor0
----
39
56
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1979
SELECT ALL - CAST( NULL AS SIGNED ) + - MIN( - col0 ) * + MIN( ALL - col2 ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1979
SELECT ALL - CAST ( NULL AS INTEGER ) + - MIN ( - col0 ) * + MIN ( ALL - col2 ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1980
SELECT - + MIN( ALL - + col1 ) + - 69 AS col0 FROM tab1 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-1980
SELECT - + MIN ( ALL - + col1 ) + - 69 AS col0 FROM tab1 AS cor0
----
-22

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT col0 IS NOT NULL ) OR + 77 IS NULL
----

query I rowsort
SELECT DISTINCT + col1 + + col0 * + col2 FROM tab0 AS cor0
----
786
891
9604

query II rowsort
SELECT + + ( 81 ), + col0 AS col0 FROM tab0 cor0
----
81
15
81
87
81
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1984
SELECT + + CAST( + + COUNT( DISTINCT + + col0 ) AS SIGNED ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1984
SELECT + + CAST ( + + COUNT ( DISTINCT + + col0 ) AS INTEGER ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1985
SELECT ALL COUNT( * ) + COUNT( * ) AS col2 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-1985
SELECT ALL COUNT ( * ) + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
6

query I rowsort
SELECT col1 - - ( + + 77 ) AS col1 FROM tab0
----
158
78
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1987
SELECT ALL COUNT( + col1 ) FROM tab2 WHERE ( + col1 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-1987
SELECT ALL COUNT ( + col1 ) FROM tab2 WHERE ( + col1 ) IS NOT NULL
----
3

query I rowsort
SELECT ALL + 32 * - + ( - col2 ) AS col1 FROM tab2
----
1280
1856
736

query I rowsort
SELECT DISTINCT + col2 * + 7 FROM tab2
----
161
280
406

query I rowsort
SELECT DISTINCT - 2 FROM tab0 WHERE NOT + col2 IN ( - + 16, 55 )
----
-2

query I rowsort
SELECT ( ( - + col2 ) ) FROM tab0
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1992
SELECT - CAST( 51 AS SIGNED ) / + 32 AS col1 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND + col2 + + col1
----

skipif mysql # not compatible
query I rowsort label-1992
SELECT - CAST ( 51 AS INTEGER ) / + 32 AS col1 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND + col2 + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1993
SELECT COUNT( * ) * 23 AS col1 FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-1993
SELECT COUNT ( * ) * 23 AS col1 FROM tab1
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-1994
SELECT DISTINCT - - 94 DIV + - 31 col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1994
SELECT DISTINCT - - 94 / + - 31 col2 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab2 WHERE NOT 20 * + col2 <> col1
----

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN ( + 31 ) AND col2 * 38
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1997
SELECT ALL CAST( NULL AS SIGNED ) + col0 FROM tab2 WHERE 36 + col0 / + CAST( NULL AS SIGNED ) NOT IN ( - col2 )
----

skipif mysql # not compatible
query I rowsort label-1997
SELECT ALL CAST ( NULL AS INTEGER ) + col0 FROM tab2 WHERE 36 + col0 / + CAST ( NULL AS INTEGER ) NOT IN ( - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + ( - col0 ) col0 FROM tab1
----
-23
-26
45

query I rowsort
SELECT DISTINCT col2 * col1 FROM tab1 WHERE 73 * col2 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - 40 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NOT 41 + - col1 < - col2 + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 - + 32 FROM tab0
----
-119
-129
-47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2003
SELECT * FROM tab2 WHERE NOT + col2 > + 19 - CAST( + 10 AS SIGNED ) * + 52
----

skipif mysql # not compatible
query III rowsort label-2003
SELECT * FROM tab2 WHERE NOT + col2 > + 19 - CAST ( + 10 AS INTEGER ) * + 52
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 68 * + col0 + - col0 col2 FROM tab1
----
3417
5695
6097

query I rowsort
SELECT ALL + col1 * - 60 FROM tab2
----
-3060
-4020
-4620

onlyif mysql # DIV for integer division: 
query I rowsort label-2006
SELECT 17 - col2 DIV + col2 AS col1 FROM tab2
----
16
16
16

skipif mysql # not compatible
query I rowsort label-2006
SELECT 17 - col2 / + col2 AS col1 FROM tab2
----
16
16
16

query I rowsort
SELECT ALL col2 + + col1 * 10 AS col2 FROM tab1
----
109
236
538

query I rowsort
SELECT col2 * + col1 + + 52 * ( + col2 ) AS col0 FROM tab0
----
5247
6251
730

query I rowsort
SELECT col2 + - col0 FROM tab0 WHERE ( 13 + col0 ) IS NULL
----

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE NOT 45 > + col0 / 57
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2011
SELECT DISTINCT 28 * COUNT( * ) AS col1 FROM tab1
----
84

skipif mysql # not compatible
query I rowsort label-2011
SELECT DISTINCT 28 * COUNT ( * ) AS col1 FROM tab1
----
84

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 66 > col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2013
SELECT - col1 DIV + 3 + 16 AS col1 FROM tab2
----
-1
-6
-9

skipif mysql # not compatible
query I rowsort label-2013
SELECT - col1 / + 3 + 16 AS col1 FROM tab2
----
-1
-6
-9

query I rowsort
SELECT ALL 89 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT - col0 * ( 45 ) + 24 * - 70 FROM tab1
----
-3975
-5505
-5775

query III rowsort
SELECT * FROM tab1 WHERE + col1 + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 89 * + ( - 76 ) FROM tab2
----
-6764
-6764
-6764

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 37 + - 4 = ( col0 )
----

query I rowsort
SELECT + col2 * + 54 AS col2 FROM tab0
----
2538
5346
540

onlyif mysql # aggregate syntax: 
query I rowsort label-2020
SELECT DISTINCT ( - MIN( col1 ) ) AS col1 FROM tab2 WHERE NULL <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2020
SELECT DISTINCT ( - MIN ( col1 ) ) AS col1 FROM tab2 WHERE NULL <> NULL
----
NULL

query I rowsort
SELECT 1 * - col1 AS col1 FROM tab2
----
-51
-67
-77

query I rowsort
SELECT ALL - 32 + - col0 AS col0 FROM tab1
----
-117
-123
-83

query I rowsort
SELECT - col0 * + 89 AS col1 FROM tab1
----
-4539
-7565
-8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col2 FROM tab1 WHERE ( + col2 ) BETWEEN ( + col0 - 74 ) AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 > - 91
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2026
SELECT COUNT( * ) + 12 FROM tab0 WHERE ( - col2 * col1 ) > NULL
----
12

skipif mysql # not compatible
query I rowsort label-2026
SELECT COUNT ( * ) + 12 FROM tab0 WHERE ( - col2 * col1 ) > NULL
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2027
SELECT * FROM tab1 cor0 WHERE NULL BETWEEN col0 + + CAST( col2 AS SIGNED ) AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-2027
SELECT * FROM tab1 cor0 WHERE NULL BETWEEN col0 + + CAST ( col2 AS INTEGER ) AND ( NULL )
----

query I rowsort
SELECT DISTINCT 76 FROM tab1 WHERE NOT - 77 BETWEEN ( NULL ) AND - 79
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2029
SELECT DISTINCT + 9 - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2029
SELECT DISTINCT + 9 - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2030
SELECT - SUM( ALL 65 ) AS col2 FROM tab1
----
-195

skipif mysql # not compatible
query I rowsort label-2030
SELECT - SUM ( ALL 65 ) AS col2 FROM tab1
----
-195

onlyif mysql # DIV for integer division: 
query I rowsort label-2031
SELECT DISTINCT col1 DIV - col2 + + col0 AS col0 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-2031
SELECT DISTINCT col1 / - col2 + + col0 AS col0 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2032
SELECT ALL + SUM( - 83 ) + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-246

skipif mysql # not compatible
query I rowsort label-2032
SELECT ALL + SUM ( - 83 ) + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-246

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 IN ( + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 55 AS col0 FROM tab1 cor0
----
55

query I rowsort
SELECT DISTINCT col2 + - 7 FROM tab0 AS cor0 WHERE NOT ( col2 ) >= - 97 / col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2036
SELECT * FROM tab0 AS cor0 WHERE NOT - 83 - + CAST( + col0 AS SIGNED ) <> ( col1 )
----

skipif mysql # not compatible
query III rowsort label-2036
SELECT * FROM tab0 AS cor0 WHERE NOT - 83 - + CAST ( + col0 AS INTEGER ) <> ( col1 )
----

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + col0 AND NULL
----

query I rowsort
SELECT ALL + 34 FROM tab2 AS cor0 WHERE ( col0 + - 76 ) NOT BETWEEN - 87 + - col2 AND - col1 + 61
----
34
34

query I rowsort
SELECT ALL + col1 * ( col1 ) AS col2 FROM tab1 cor0
----
196
2209
25

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) < ( 1 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 - col1 > NULL
----

query I rowsort
SELECT DISTINCT col1 * + ( 2 ) FROM tab0
----
162
2
42

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2043
SELECT DISTINCT + col2 + - CAST( - col1 + - CAST( NULL AS SIGNED ) AS DECIMAL ) FROM tab2 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2043
SELECT DISTINCT + col2 + - CAST ( - col1 + - CAST ( NULL AS INTEGER ) AS REAL ) FROM tab2 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col1 FROM tab1 WHERE ( - col2 ) IS NOT NULL
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 46 - - ( col2 ) < - col1 + + 78
----

query I rowsort
SELECT col2 FROM tab1 WHERE NOT NULL IN ( col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2047
SELECT COUNT( * ) * - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT 42 + - CAST( NULL AS SIGNED ) > col2
----
0

skipif mysql # not compatible
query I rowsort label-2047
SELECT COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT 42 + - CAST ( NULL AS INTEGER ) > col2
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + 86 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2049
SELECT ALL - MIN( ALL col1 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2049
SELECT ALL - MIN ( ALL col1 ) FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2050
SELECT - MIN( 53 ) FROM tab0 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-2050
SELECT - MIN ( 53 ) FROM tab0 AS cor0
----
-53

query II rowsort
SELECT 65, 45 AS col1 FROM tab1
----
65
45
65
45
65
45

query II rowsort
SELECT + 17 AS col2, col0 AS col2 FROM tab0
----
17
15
17
87
17
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2053
SELECT - MIN( + + col1 ) AS col1 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-2053
SELECT - MIN ( + + col1 ) AS col1 FROM tab1
----
-5

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) >= + - col0 * + 13
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2055
SELECT * FROM tab0 AS cor0 WHERE col0 + + - col1 + + 41 > + CAST( - col0 AS SIGNED )
----
87
21
10
97
1
99

skipif mysql # not compatible
query III rowsort label-2055
SELECT * FROM tab0 AS cor0 WHERE col0 + + - col1 + + 41 > + CAST ( - col0 AS INTEGER )
----
87
21
10
97
1
99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 18 * col1 <= ( col0 )
----

query I rowsort
SELECT + - col0 + + 58 * col2 * col1 AS col0 FROM tab2 AS cor0
----
178576
225313
67988

query I rowsort
SELECT col2 + + - col0 * - 44 AS col0 FROM tab0 AS cor0
----
3838
4367
707

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2059
SELECT ALL CAST( NULL AS DECIMAL ) + + 58 + + col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2059
SELECT ALL CAST ( NULL AS REAL ) + + 58 + + col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + 50 ) = col1
----

query I rowsort
SELECT - - 49 + - 3 * - - col1 AS col1 FROM tab2 AS cor0
----
-104
-152
-182

query II rowsort
SELECT ALL - - 96 AS col1, + col2 + + - col0 + col0 * 71 AS col0 FROM tab0 AS cor0
----
96
1097
96
6100
96
6889

onlyif mysql # aggregate syntax: 
query II rowsort label-2063
SELECT DISTINCT - COUNT( * ), 87 + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-3
90

skipif mysql # not compatible
query II rowsort label-2063
SELECT DISTINCT - COUNT ( * ), 87 + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-3
90

onlyif mysql # DIV for integer division: 
query I rowsort label-2064
SELECT + 1 * + + col1 DIV 40 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-2064
SELECT + 1 * + + col1 / 40 FROM tab0
----
0
0
2

query I rowsort
SELECT DISTINCT + 44 AS col0 FROM tab2 WHERE NOT 37 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2066
SELECT 96 * - COUNT( * ) AS col0 FROM tab1
----
-288

skipif mysql # not compatible
query I rowsort label-2066
SELECT 96 * - COUNT ( * ) AS col0 FROM tab1
----
-288

onlyif mysql # aggregate syntax: 
query I rowsort label-2067
SELECT + AVG ( DISTINCT col2 ) + - COUNT( * ) FROM tab1 WHERE NULL NOT IN ( col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2067
SELECT + AVG ( DISTINCT col2 ) + - COUNT ( * ) FROM tab1 WHERE NULL NOT IN ( col1 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2068
SELECT ALL - ( 93 ) FROM tab0 WHERE NOT ( col0 * + CAST( + col0 AS SIGNED ) + 47 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2068
SELECT ALL - ( 93 ) FROM tab0 WHERE NOT ( col0 * + CAST ( + col0 AS INTEGER ) + 47 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2069
SELECT DISTINCT COUNT( * ) + + ( + 8 ) col0 FROM tab0
----
11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2069
SELECT DISTINCT COUNT ( * ) + + ( + 8 ) col0 FROM tab0
----
11

query I rowsort
SELECT + ( - - 17 ) / - col2 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL col2 * - 55 + + 69 AS col1 FROM tab1 AS cor0
----
-3176
-3671
-5211

query III rowsort
SELECT * FROM tab2 cor0 WHERE 85 <= - col1 * - 47
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 58 + ( - col0 ) FROM tab1 AS cor0
----
-27
-33
7

query I rowsort
SELECT col0 - 33 + + 42 FROM tab1 AS cor0
----
100
60
94

query I rowsort
SELECT ALL - col2 + - - ( col0 ) FROM tab1 AS cor0
----
-45
23
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2076
SELECT MAX( DISTINCT + 24 ) FROM tab2 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-2076
SELECT MAX ( DISTINCT + 24 ) FROM tab2 AS cor0
----
24

query II rowsort
SELECT + col2, - col0 + - col0 + + col2 * + 78 AS col0 FROM tab1 AS cor0
----
59
4432
68
5122
96
7386

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col0 * - 9 * + + col2 + 25 - col0 IS NOT NULL
----

query II rowsort
SELECT + - col1 * - col0 - col2 AS col2, - col2 FROM tab2 AS cor0
----
2323
-23
4888
-40
4967
-58

query I rowsort
SELECT - col0 * - 74 AS col0 FROM tab2 cor0
----
3404
4736
5550

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 >= - 51
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2082
SELECT DISTINCT COUNT( * ) * - ( - 45 ) * 8 + + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-2082
SELECT DISTINCT COUNT ( * ) * - ( - 45 ) * 8 + + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NULL > NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2083
SELECT + + MIN( DISTINCT 14 ) * ( - + 30 ) FROM tab0 AS cor0
----
-420

skipif mysql # not compatible
query I rowsort label-2083
SELECT + + MIN ( DISTINCT 14 ) * ( - + 30 ) FROM tab0 AS cor0
----
-420

query I rowsort
SELECT ALL col0 * + - 60 AS col0 FROM tab2 AS cor0
----
-2760
-3840
-4500

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - col2 * - + col2 NOT IN ( + 89 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 * - col1, - col0 + col2 col0 FROM tab2
----
-2601
-23
-4489
-17
-5929
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2087
SELECT ALL + CAST( + MIN( + col0 ) AS SIGNED ) AS col1 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-2087
SELECT ALL + CAST ( + MIN ( + col0 ) AS INTEGER ) AS col1 FROM tab1
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 93 col2 FROM tab1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT + 8 AS col0, - 18 AS col1 FROM tab2
----
8
-18
8
-18
8
-18

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2090
SELECT ALL MIN( - + CAST( NULL AS DECIMAL ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2090
SELECT ALL MIN ( - + CAST ( NULL AS REAL ) ) AS col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2091
SELECT DISTINCT 64 AS col2, CAST( - ( + col0 ) AS SIGNED ) DIV col1 FROM tab1
----
64
-1
64
-17
64
-3

skipif mysql # not compatible
query II rowsort label-2091
SELECT DISTINCT 64 AS col2, CAST ( - ( + col0 ) AS INTEGER ) / col1 FROM tab1
----
64
-1
64
-17
64
-3

query II rowsort
SELECT ALL col0, 61 AS col1 FROM tab2
----
46
61
64
61
75
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2093
SELECT ALL 28 * - COUNT( * ) AS col1 FROM tab1
----
-84

skipif mysql # not compatible
query I rowsort label-2093
SELECT ALL 28 * - COUNT ( * ) AS col1 FROM tab1
----
-84

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2094
SELECT ALL - AVG ( ALL + 37 ) + - CAST( NULL AS DECIMAL ) FROM tab2 WHERE col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2094
SELECT ALL - AVG ( ALL + 37 ) + - CAST ( NULL AS REAL ) FROM tab2 WHERE col2 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2095
SELECT ALL + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND 23 + - - 14
----

skipif mysql # not compatible
query I rowsort label-2095
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND 23 + - - 14
----

query I rowsort
SELECT + - 96 AS col2 FROM tab0 cor0
----
-96
-96
-96

query I rowsort
SELECT DISTINCT - - 52 * - - col1 AS col1 FROM tab0 AS cor0
----
1092
4212
52

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2098
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + CAST( - col2 AS SIGNED ) / - CAST( NULL AS SIGNED ) * + + col2 BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-2098
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + CAST ( - col2 AS INTEGER ) / - CAST ( NULL AS INTEGER ) * + + col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col1 + - - ( + col2 ) + + col2 + + col1 + col0 FROM tab1 AS cor0
----
203
227
243

query I rowsort
SELECT DISTINCT + ( + col2 ) * col1 AS col1 FROM tab1 AS cor0
----
1344
295
3196

query I rowsort
SELECT ALL 13 * + 36 FROM tab0
----
468
468
468

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 68 * - col1 * + col2 col0 FROM tab0
----
-14280
-258876
-6732

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2103
SELECT ( - - CAST( NULL AS SIGNED ) ), COUNT( * ) AS col0 FROM tab1 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-2103
SELECT ( - - CAST ( NULL AS INTEGER ) ), COUNT ( * ) AS col0 FROM tab1 AS cor0
----
NULL
3

query II rowsort
SELECT DISTINCT + 21 + - 31, col0 AS col2 FROM tab1 AS cor0
----
-10
51
-10
85
-10
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col0 FROM tab0 AS cor0 WHERE ( NOT NULL NOT BETWEEN + col0 AND + 17 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2106
SELECT ALL + - SUM( 24 ) col1 FROM tab2 cor0
----
-72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2106
SELECT ALL + - SUM ( 24 ) col1 FROM tab2 cor0
----
-72

query I rowsort
SELECT DISTINCT - + col0 + - ( - 52 ) FROM tab2 cor0
----
-12
-23
6

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 NOT BETWEEN NULL AND + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2109
SELECT ( - COUNT( * ) ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2109
SELECT ( - COUNT ( * ) ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( ( 99 ) IS NULL )
----

query II rowsort
SELECT DISTINCT - 14, + 85 AS col2 FROM tab1
----
-14
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2112
SELECT 73 + - COUNT( * ) AS col1 FROM tab0
----
70

skipif mysql # not compatible
query I rowsort label-2112
SELECT 73 + - COUNT ( * ) AS col1 FROM tab0
----
70

onlyif mysql # DIV for integer division: 
query II rowsort label-2113
SELECT col2 DIV - + col2 + 83 AS col0, col0 AS col2 FROM tab2
----
82
46
82
64
82
75

skipif mysql # not compatible
query II rowsort label-2113
SELECT col2 / - + col2 + 83 AS col0, col0 AS col2 FROM tab2
----
82
46
82
64
82
75

query I rowsort
SELECT + col2 + + ( - 10 ) FROM tab1
----
49
58
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2115
SELECT COUNT( * ) + - CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2115
SELECT COUNT ( * ) + - CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2116
SELECT 89 / + col0 + + + CAST( NULL AS SIGNED ) AS col0, + col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-2116
SELECT 89 / + col0 + + + CAST ( NULL AS INTEGER ) AS col0, + col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

onlyif mysql # aggregate syntax: 
query II rowsort label-2117
SELECT ALL - 3, COUNT( * ) col0 FROM tab1
----
-3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2117
SELECT ALL - 3, COUNT ( * ) col0 FROM tab1
----
-3
3

query I rowsort
SELECT DISTINCT + - 64 + - ( + 35 ) FROM tab1 cor0
----
-99

query I rowsort
SELECT DISTINCT col2 + 42 FROM tab1 AS cor0
----
101
110
138

query I rowsort
SELECT - - 13 * 96 AS col0 FROM tab0 AS cor0
----
1248
1248
1248

query I rowsort
SELECT + col2 * - col0 - col1 FROM tab0
----
-786
-891
-9604

query I rowsort
SELECT 79 * - - col2 FROM tab1 AS cor0
----
4661
5372
7584

query I rowsort
SELECT ALL - 25 * - - 16 + - + 17 FROM tab1 AS cor0 WHERE - col1 * 14 / - 84 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 30 col1 FROM tab0
----
30

query I rowsort
SELECT DISTINCT 79 * col0 FROM tab0 WHERE NOT - - 66 * col2 NOT BETWEEN col0 - - col1 AND ( - 45 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2126
SELECT DISTINCT - col2 / + ( + ( CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab1 WHERE NULL IN ( + CAST( + col0 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-2126
SELECT DISTINCT - col2 / + ( + ( CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab1 WHERE NULL IN ( + CAST ( + col0 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2127
SELECT DISTINCT - COUNT( ALL - col0 ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2127
SELECT DISTINCT - COUNT ( ALL - col0 ) AS col2 FROM tab1
----
-3

query I rowsort
SELECT ALL col2 * + - 23 FROM tab2
----
-1334
-529
-920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2129
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + COUNT( * ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2129
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - - 25 FROM tab1 cor0
----
25

query II rowsort
SELECT ALL - 33 * col1 * + + 60, col2 FROM tab0 AS cor0
----
-160380
47
-1980
99
-41580
10

onlyif mysql # DIV for integer division: 
query I rowsort label-2132
SELECT ALL - 34 DIV 11 + - col0 FROM tab1 AS cor0
----
-54
-88
-94

skipif mysql # not compatible
query I rowsort label-2132
SELECT ALL - 34 / 11 + - col0 FROM tab1 AS cor0
----
-54
-88
-94

query I rowsort
SELECT + col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN 6 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2134
SELECT + + COUNT( * ) * COUNT( * ) * 0 * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2134
SELECT + + COUNT ( * ) * COUNT ( * ) * 0 * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2135
SELECT ALL - CAST( - + col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-2135
SELECT ALL - CAST ( - + col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT - - col1 * col1 * 23 AS col0 FROM tab1 AS cor0
----
4508
50807
575

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2137
SELECT + CAST( NULL AS SIGNED ) * 84 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2137
SELECT + CAST ( NULL AS INTEGER ) * 84 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2138
SELECT ALL - MIN( ALL + + 8 ) FROM tab1
----
-8

skipif mysql # not compatible
query I rowsort label-2138
SELECT ALL - MIN ( ALL + + 8 ) FROM tab1
----
-8

query I rowsort
SELECT ALL - 79 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f

query II rowsort
SELECT - 23 * - 9 AS col1, 26 AS col2 FROM tab1
----
207
26
207
26
207
26

query I rowsort
SELECT DISTINCT - + col0 * col2 * + col2 FROM tab0 AS cor0
----
-33135
-8700
-950697

onlyif mysql # aggregate syntax: 
query I rowsort label-2142
SELECT ALL - COUNT( * ) + 84 FROM tab2 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-2142
SELECT ALL - COUNT ( * ) + 84 FROM tab2 AS cor0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2143
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - CAST( NULL AS SIGNED ) + + 28 + 2 * + col2 / - - col2 + + - 74 * col0 / col0 IN ( - col2 )
----

skipif mysql # not compatible
query III rowsort label-2143
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - CAST ( NULL AS INTEGER ) + + 28 + 2 * + col2 / - - col2 + + - 74 * col0 / col0 IN ( - col2 )
----

query I rowsort
SELECT DISTINCT - - col0 + - col0 + col2 + col2 * - + 55 AS col1 FROM tab1 AS cor0
----
-3186
-3672
-5184

query I rowsort
SELECT ALL + col1 + - col0 + + col1 FROM tab2 AS cor0
----
56
59
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2146
SELECT + CAST( NULL AS SIGNED ) + + 60 AS col2 FROM tab2 AS cor0 WHERE ( - + 69 ) + - 92 + - col1 / col1 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2146
SELECT + CAST ( NULL AS INTEGER ) + + 60 AS col2 FROM tab2 AS cor0 WHERE ( - + 69 ) + - 92 + - col1 / col1 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2147
SELECT COUNT( * ) * MIN( - + 8 ) + + 19 AS col0 FROM tab0 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-2147
SELECT COUNT ( * ) * MIN ( - + 8 ) + + 19 AS col0 FROM tab0 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2148
SELECT DISTINCT - COUNT( DISTINCT + 40 ) + 22 AS col1 FROM tab0 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-2148
SELECT DISTINCT - COUNT ( DISTINCT + 40 ) + 22 AS col1 FROM tab0 AS cor0
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2149
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) NOT BETWEEN - col2 AND - + 93
----

skipif mysql # not compatible
query III rowsort label-2149
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) NOT BETWEEN - col2 AND - + 93
----

query I rowsort
SELECT + 89 * - 30 AS col0 FROM tab1
----
-2670
-2670
-2670

query I rowsort
SELECT ALL + col2 * - + col1 AS col2 FROM tab0
----
-210
-3807
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2152
SELECT DISTINCT - - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * + - col2 / + col2 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2152
SELECT DISTINCT - - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * + - col2 / + col2 AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - ( - col0 ) * + - 80 * - - 1 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND 26 * + col0 + col0 + - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2154
SELECT ALL + CAST( NULL AS SIGNED ) + - + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2154
SELECT ALL + CAST ( NULL AS INTEGER ) + - + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2155
SELECT + MAX( ALL 19 ) AS col1 FROM tab2 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-2155
SELECT + MAX ( ALL 19 ) AS col1 FROM tab2 AS cor0
----
19

query I rowsort
SELECT + 36 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

query II rowsort
SELECT + col2 AS col2, - col2 FROM tab0
----
10
-10
47
-47
99
-99

query I rowsort
SELECT DISTINCT col1 * + 83 AS col1 FROM tab1
----
1162
3901
415

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2159
SELECT DISTINCT 21 - - - 47 + + - col0 + + col0 * - col1 * + + col1 + 76 FROM tab2 AS cor0 WHERE NULL NOT IN ( + col0 * + + CAST( NULL AS DECIMAL ), - 0, + 15 )
----

skipif mysql # not compatible
query I rowsort label-2159
SELECT DISTINCT 21 - - - 47 + + - col0 + + col0 * - col1 * + + col1 + 76 FROM tab2 AS cor0 WHERE NULL NOT IN ( + col0 * + + CAST ( NULL AS REAL ), - 0, + 15 )
----

query I rowsort
SELECT - 43 * - + col1 AS col0 FROM tab2 AS cor0
----
2193
2881
3311

query I rowsort
SELECT - col0 * + col0 + - col0 FROM tab2 AS cor0
----
-2162
-4160
-5700

query I rowsort
SELECT ALL + - ( - + 69 ) AS col0 FROM tab0 AS cor0
----
69
69
69

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( - col0 + - - col1 + + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2164
SELECT + COUNT( DISTINCT + + col1 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2164
SELECT + COUNT ( DISTINCT + + col1 ) AS col0 FROM tab1 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT col1 - + col0 IS NOT NULL
----

query I rowsort
SELECT col1 * + col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + ( + + 94 ) AS col2 FROM tab2 AS cor0
----
94
94
94

query I rowsort
SELECT ALL ( + + 56 ) FROM tab0
----
56
56
56

query I rowsort
SELECT ( + 17 ) * ( - ( + 11 ) ) AS col2 FROM tab2 WHERE NOT NULL <= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( + 23 ) col0, 91 - + 22 * + col0 + col1 AS col2 FROM tab0
----
23
-158
23
-1802
23
-2042

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col0 ) IN ( + col1, ( - col2 ), + 52 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2172
SELECT ALL + CAST( - - AVG ( DISTINCT col2 ) AS SIGNED ) * - 22 AS col1, + COUNT( * ) AS col0 FROM tab1
----
-1628
3

skipif mysql # not compatible
query II rowsort label-2172
SELECT ALL + CAST ( - - AVG ( DISTINCT col2 ) AS INTEGER ) * - 22 AS col1, + COUNT ( * ) AS col0 FROM tab1
----
-1628
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2173
SELECT ALL + COUNT( * ) + + 33 FROM tab2 WHERE NOT NULL < + + col1 - + - 58
----
33

skipif mysql # not compatible
query I rowsort label-2173
SELECT ALL + COUNT ( * ) + + 33 FROM tab2 WHERE NOT NULL < + + col1 - + - 58
----
33

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 37 < NULL
----

query I rowsort
SELECT DISTINCT 46 * 13 * + col0 FROM tab1
----
30498
50830
54418

onlyif mysql # aggregate syntax: 
query I rowsort label-2176
SELECT COUNT( * ) + + MIN( DISTINCT - col1 ) AS col1 FROM tab1 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-2176
SELECT COUNT ( * ) + + MIN ( DISTINCT - col1 ) AS col1 FROM tab1 AS cor0
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2177
SELECT + col0 * + col1 + - - col2 + - - col2 - + CAST( col2 AS SIGNED ) col0 FROM tab2 AS cor0
----
2369
4968
5083

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2177
SELECT + col0 * + col1 + - - col2 + - - col2 - + CAST ( col2 AS INTEGER ) col0 FROM tab2 AS cor0
----
2369
4968
5083

query I rowsort
SELECT ( + col2 ) + 98 FROM tab0 AS cor0
----
108
145
197

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2179
SELECT DISTINCT * FROM tab0 WHERE - + col1 NOT BETWEEN + CAST( NULL AS SIGNED ) AND + col0
----

skipif mysql # not compatible
query III rowsort label-2179
SELECT DISTINCT * FROM tab0 WHERE - + col1 NOT BETWEEN + CAST ( NULL AS INTEGER ) AND + col0
----

query I rowsort
SELECT - 16 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2181
SELECT DISTINCT - col1 * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2181
SELECT DISTINCT - col1 * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT ALL - + 20 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 - - col2 + + col0 * - col2 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2184
SELECT COUNT( DISTINCT + + ( + col2 ) ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2184
SELECT COUNT ( DISTINCT + + ( + col2 ) ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT - + col1 * - col2 * col2 AS col1 FROM tab0 AS cor0
----
178929
2100
9801

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - + 35 * col2 col1 FROM tab0 AS cor0
----
-1564
-329
-3464

query I rowsort
SELECT - col0 - + 50 + - 83 AS col1 FROM tab0 AS cor0
----
-148
-220
-230

onlyif mysql # DIV for integer division: 
query I rowsort label-2188
SELECT ALL - 26 DIV - + 37 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2188
SELECT ALL - 26 / - + 37 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + + col2 - + col2 + + col2 AS col1 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT DISTINCT - 12 + - - col2 AS col2 FROM tab0 AS cor0
----
-2
35
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2191
SELECT ALL - + CAST( NULL AS SIGNED ) + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2191
SELECT ALL - + CAST ( NULL AS INTEGER ) + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2192
SELECT DISTINCT SUM( + col1 ) FROM tab1 AS cor0 WHERE + 68 IS NOT NULL
----
66

skipif mysql # not compatible
query I rowsort label-2192
SELECT DISTINCT SUM ( + col1 ) FROM tab1 AS cor0 WHERE + 68 IS NOT NULL
----
66

query I rowsort
SELECT 30 FROM tab2 cor0 WHERE col0 + + 72 >= + col0 * - + 53 / + col2 - + col2
----
30
30
30

query III rowsort
SELECT * FROM tab2 WHERE col2 >= - 58 * - + 98 - + col0 * + col1
----

query I rowsort
SELECT ALL col0 - col2 * - - col2 FROM tab0
----
-13
-2194
-9704

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT IN ( - ( + 61 ), ( col0 ), + 85, col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) <= ( - col2 ) / - + col2
----

query I rowsort
SELECT DISTINCT + col1 - - ( col0 ) FROM tab2
----
141
142
97

onlyif mysql # DIV for integer division: 
query I rowsort label-2199
SELECT - col2 DIV + col1 + 99 FROM tab0
----
0
99
99

skipif mysql # not compatible
query I rowsort label-2199
SELECT - col2 / + col1 + 99 FROM tab0
----
0
99
99

query I rowsort
SELECT + ( + - col0 ) + - - col2 FROM tab1
----
-23
-26
45

query I rowsort
SELECT - col0 + ( + 14 ) * col2 AS col2 FROM tab2
----
276
496
737

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2202
SELECT - CAST( NULL AS DECIMAL ) + + COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2202
SELECT - CAST ( NULL AS REAL ) + + COUNT ( * ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2203
SELECT DISTINCT + COUNT( - ( col1 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2203
SELECT DISTINCT + COUNT ( - ( col1 ) ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2204
SELECT ( + - MIN( DISTINCT - - col0 ) ) col1 FROM tab2 WHERE NULL IS NULL
----
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2204
SELECT ( + - MIN ( DISTINCT - - col0 ) ) col1 FROM tab2 WHERE NULL IS NULL
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2205
SELECT ALL + + CAST( col1 AS SIGNED ) AS col0, col0 - - col0 FROM tab2 AS cor0 WHERE NOT NULL <= + col2 + - - col2 * - col0
----

skipif mysql # not compatible
query II rowsort label-2205
SELECT ALL + + CAST ( col1 AS INTEGER ) AS col0, col0 - - col0 FROM tab2 AS cor0 WHERE NOT NULL <= + col2 + - - col2 * - col0
----

query II rowsort
SELECT DISTINCT col1 AS col0, col1 + 4 FROM tab2 cor0
----
51
55
67
71
77
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2207
SELECT DISTINCT - COUNT( ALL col2 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2207
SELECT DISTINCT - COUNT ( ALL col2 ) AS col0 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL < + 63
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2209
SELECT ( + - col2 ) DIV - col1 + 95 AS col0 FROM tab0
----
194
95
95

skipif mysql # not compatible
query I rowsort label-2209
SELECT ( + - col2 ) / - col1 + 95 AS col0 FROM tab0
----
194
95
95

query I rowsort
SELECT - col2 * + 54 * + - col2 FROM tab2
----
181656
28566
86400

onlyif mysql # DIV for integer division: 
query II rowsort label-2211
SELECT DISTINCT col1 DIV + col2, col0 FROM tab2
----
1
64
1
75
2
46

skipif mysql # not compatible
query II rowsort label-2211
SELECT DISTINCT col1 / + col2, col0 FROM tab2
----
1
64
1
75
2
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2212
SELECT - SUM( ALL + - 88 ) * - COUNT( - col1 ) FROM tab0
----
-792

skipif mysql # not compatible
query I rowsort label-2212
SELECT - SUM ( ALL + - 88 ) * - COUNT ( - col1 ) FROM tab0
----
-792

query I rowsort
SELECT ALL - 41 FROM tab2 cor0
----
-41
-41
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-2214
SELECT + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT - ( + 64 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2214
SELECT + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT - ( + 64 ) IS NULL
----
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 < + 10
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2216
SELECT - - col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL <= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2216
SELECT - - col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL <= CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT + + col1 * 53, 88 AS col0 FROM tab0 AS cor0
----
1113
88
4293
88
53
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2218
SELECT + - ( - MAX( DISTINCT + - col0 ) ) col2 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2218
SELECT + - ( - MAX ( DISTINCT + - col0 ) ) col2 FROM tab2 AS cor0
----
-46

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 * - 3 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 79 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT 37 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
37

query I rowsort
SELECT - 62 * 61 AS col2 FROM tab2 AS cor0
----
-3782
-3782
-3782

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) <= - - col1
----

query II rowsort
SELECT col0 AS col1, col1 FROM tab2 cor0 WHERE 89 > - - col0
----
46
51
64
77
75
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2225
SELECT + COUNT( * ) + - 90 DIV SUM( DISTINCT + col0 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2225
SELECT + COUNT ( * ) + - 90 / SUM ( DISTINCT + col0 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT - 52 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 9500afe5646d620d5e8943351a29d082

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2227
SELECT DISTINCT CAST( NULL AS SIGNED ) + - col2 + - - col0 + col1 * + - col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2227
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - col2 + - - col0 + col1 * + - col2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + + 40 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2229
SELECT DISTINCT - COUNT( DISTINCT - + 11 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2229
SELECT DISTINCT - COUNT ( DISTINCT - + 11 ) FROM tab0 AS cor0
----
-1

query I rowsort
SELECT DISTINCT - 98 + col2 FROM tab1 cor0
----
-2
-30
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2231
SELECT - + COUNT( * ) DIV - COUNT( * ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2231
SELECT - + COUNT ( * ) / - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2232
SELECT + MIN( ALL + 64 ) AS col1 FROM tab2 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-2232
SELECT + MIN ( ALL + 64 ) AS col1 FROM tab2 AS cor0
----
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 55 * col1 + - + col0 col0 FROM tab1 AS cor0
----
-2676
-360
-821

onlyif mysql # aggregate syntax: 
query I rowsort label-2234
SELECT DISTINCT MAX( - + 28 ) + - COUNT( - col2 ) AS col1 FROM tab0 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-2234
SELECT DISTINCT MAX ( - + 28 ) + - COUNT ( - col2 ) AS col1 FROM tab0 AS cor0
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2235
SELECT ALL * FROM tab2 AS cor0 WHERE 81 BETWEEN ( CAST( NULL AS SIGNED ) ) AND - 91 * col2
----

skipif mysql # not compatible
query III rowsort label-2235
SELECT ALL * FROM tab2 AS cor0 WHERE 81 BETWEEN ( CAST ( NULL AS INTEGER ) ) AND - 91 * col2
----

query I rowsort
SELECT ALL col2 - - - col0 * col1 FROM tab2 AS cor0
----
-2323
-4888
-4967

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2237
SELECT DISTINCT + CAST( NULL AS SIGNED ) - + + col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2237
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - + + col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2238
SELECT ALL - col2 * - CAST( + - 7 AS SIGNED ) * + - ( col1 ) AS col1 FROM tab0
----
1470
26649
693

skipif mysql # not compatible
query I rowsort label-2238
SELECT ALL - col2 * - CAST ( + - 7 AS INTEGER ) * + - ( col1 ) AS col1 FROM tab0
----
1470
26649
693

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2239
SELECT + COUNT( * ) - + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2239
SELECT + COUNT ( * ) - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT ALL + col0 - - col1 + + + col0 FROM tab0
----
111
195
195

query I rowsort
SELECT ALL - ( - col0 ) - - col2 AS col2 FROM tab2
----
104
133
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2242
SELECT ALL SUM( ALL - col0 ) FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-2242
SELECT ALL SUM ( ALL - col0 ) FROM tab1
----
-227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col1 FROM tab1 WHERE NOT - - col0 IS NULL
----
59
68
96

query II rowsort
SELECT + + 23, + col0 + + 20 AS col2 FROM tab2 AS cor0
----
23
66
23
84
23
95

query I rowsort
SELECT + + col1 * - ( + + 98 ) AS col2 FROM tab2 AS cor0
----
-4998
-6566
-7546

onlyif mysql # DIV for integer division: 
query II rowsort label-2246
SELECT 39 DIV + - 58 + + 95, + col1 col1 FROM tab0 cor0
----
95
1
95
21
95
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2246
SELECT 39 / + - 58 + + 95, + col1 col1 FROM tab0 cor0
----
95
1
95
21
95
81

query I rowsort
SELECT - col2 - - + col2 AS col2 FROM tab2 WHERE NOT NULL IN ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2248
SELECT - MIN( 17 ) FROM tab0
----
-17

skipif mysql # not compatible
query I rowsort label-2248
SELECT - MIN ( 17 ) FROM tab0
----
-17

query II rowsort
SELECT ALL col0, - 91 AS col2 FROM tab2
----
46
-91
64
-91
75
-91

query III rowsort
SELECT ALL - col1 AS col0, col0 * col2 * col2 AS col2, + - 32 + + 3 + - 65 + - col0 * + 78 FROM tab1 AS cor0
----
9 values hashing to 9e010f4193441e57aa7b9c6fcf3e39c4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col2 col1, + col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2252
SELECT DISTINCT + 70 * + CAST( + col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
3290
6930
700

skipif mysql # not compatible
query I rowsort label-2252
SELECT DISTINCT + 70 * + CAST ( + col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
3290
6930
700

query I rowsort
SELECT ALL + col2 FROM tab0 AS cor0 WHERE 56 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2254
SELECT - COUNT( * ) * + 73 + - 93 AS col1 FROM tab1 AS cor0
----
-312

skipif mysql # not compatible
query I rowsort label-2254
SELECT - COUNT ( * ) * + 73 + - 93 AS col1 FROM tab1 AS cor0
----
-312

query I rowsort
SELECT ALL - - col2 AS col2 FROM tab2 AS cor0 WHERE NOT - col1 + + col2 / + + col2 <= NULL
----

query II rowsort
SELECT - 53, col1 AS col1 FROM tab0 AS cor0
----
-53
1
-53
21
-53
81

query I rowsort
SELECT DISTINCT - 27 FROM tab0 AS cor0 WHERE NOT col1 - col1 >= - ( + - 84 )
----
-27

query I rowsort
SELECT - col1 * 31 - 66 + - - col2 + 36 AS col2 FROM tab2 AS cor0 WHERE NOT ( col1 ) NOT BETWEEN - col2 AND + col2
----

query I rowsort
SELECT + - 39 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT IN ( - 68, col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2261
SELECT DISTINCT 54 DIV COUNT( * ) AS col2, - ( - CAST( COUNT( * ) AS SIGNED ) ) col0 FROM tab1
----
18
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2261
SELECT DISTINCT 54 / COUNT ( * ) AS col2, - ( - CAST ( COUNT ( * ) AS INTEGER ) ) col0 FROM tab1
----
18
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( 75 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2263
SELECT - col2 DIV 78 + ( - col0 ) + - col1 - + 68 AS col0 FROM tab2
----
-165
-209
-210

skipif mysql # not compatible
query I rowsort label-2263
SELECT - col2 / 78 + ( - col0 ) + - col1 - + 68 AS col0 FROM tab2
----
-165
-209
-210

query I rowsort
SELECT - col1 * - ( - - col2 ) * + + 7 + - - col1 + - - col2 AS col0 FROM tab2 AS cor0
----
21677
27327
8285

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2265
SELECT ALL - + 8 * - + CAST( + - MIN( - col1 ) AS SIGNED ) * - CAST( - 83 AS SIGNED ) + - 44 col1 FROM tab1 AS cor0 WHERE NULL IN ( + 36, 26, - col2, - 85, col1, + col2 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2265
SELECT ALL - + 8 * - + CAST ( + - MIN ( - col1 ) AS INTEGER ) * - CAST ( - 83 AS INTEGER ) + - 44 col1 FROM tab1 AS cor0 WHERE NULL IN ( + 36, 26, - col2, - 85, col1, + col2 )
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 0 = + col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2267
SELECT 19 + + - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2267
SELECT 19 + + - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 * - 57 AS col2 FROM tab0
----
-2679
-5643
-570

query I rowsort
SELECT ALL ( - + 61 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 51f53697966a79d306a4570537cd91a1

onlyif mysql # aggregate syntax: 
query I rowsort label-2270
SELECT COUNT( - + col2 ) * + - COUNT( * ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-2270
SELECT COUNT ( - + col2 ) * + - COUNT ( * ) FROM tab2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2271
SELECT + MAX( - 94 ) + - + COUNT( * ) * + + 68 * - ( + 38 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
23162

skipif mysql # not compatible
query I rowsort label-2271
SELECT + MAX ( - 94 ) + - + COUNT ( * ) * + + 68 * - ( + 38 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
23162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1, col1 col0 FROM tab1
----
-14
14
-47
47
-5
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2273
SELECT 71 - MIN( ALL + 15 ) DIV - COUNT( * ) FROM tab0 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-2273
SELECT 71 - MIN ( ALL + 15 ) / - COUNT ( * ) FROM tab0 AS cor0
----
76

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE col0 <= + col0
----
-23
-40
-58

query I rowsort
SELECT ALL 62 * + col1 + - 28 FROM tab2 AS cor0
----
3134
4126
4746

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2276
SELECT DISTINCT - SUM( + 23 ) - + - CAST( NULL AS DECIMAL ) AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2276
SELECT DISTINCT - SUM ( + 23 ) - + - CAST ( NULL AS REAL ) AS col2 FROM tab0 cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 NOT IN ( + col1, col0 )
----

query I rowsort
SELECT ALL + + 69 + + - 6 AS col0 FROM tab0 AS cor0
----
63
63
63

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( col1 * 88, + col1, + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2280
SELECT + COUNT( * ) AS col2 FROM tab1 WHERE NOT + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2280
SELECT + COUNT ( * ) AS col2 FROM tab1 WHERE NOT + col1 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2281
SELECT - COUNT( ( + 87 ) ) col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2281
SELECT - COUNT ( ( + 87 ) ) col1 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 26 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2283
SELECT - COUNT( * ) * - + COUNT( * ) - - 76 AS col0 FROM tab0 WHERE NOT + col0 <= NULL
----
76

skipif mysql # not compatible
query I rowsort label-2283
SELECT - COUNT ( * ) * - + COUNT ( * ) - - 76 AS col0 FROM tab0 WHERE NOT + col0 <= NULL
----
76

query I rowsort
SELECT DISTINCT - col1 * + col0 FROM tab1 AS cor0 WHERE NOT ( NOT - col0 + - + 21 IS NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 44 + - 72 + col1 col2 FROM tab1 AS cor0
----
-14
-23
19

query II rowsort
SELECT + 61 + + col0 + + + col2, + col0 FROM tab1 cor0
----
205
85
208
51
220
91

query I rowsort
SELECT DISTINCT + 40 + - 63 * - 60 FROM tab2 AS cor0
----
3820

onlyif mysql # aggregate syntax: 
query I rowsort label-2288
SELECT ALL 82 * - - COUNT( * ) FROM tab2
----
246

skipif mysql # not compatible
query I rowsort label-2288
SELECT ALL 82 * - - COUNT ( * ) FROM tab2
----
246

onlyif mysql # DIV for integer division: 
query I rowsort label-2289
SELECT 76 DIV + col0 AS col2 FROM tab0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-2289
SELECT 76 / + col0 AS col2 FROM tab0
----
0
0
5

query II rowsort
SELECT + col0, - col1 * + ( + + col2 ) - 1 AS col2 FROM tab0
----
15
-3808
87
-211
97
-100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2291
SELECT DISTINCT - CAST( - ( - MIN( - col0 ) ) AS SIGNED ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-2291
SELECT DISTINCT - CAST ( - ( - MIN ( - col0 ) ) AS INTEGER ) FROM tab0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2292
SELECT DISTINCT MAX( 31 ) * 16 AS col2 FROM tab2
----
496

skipif mysql # not compatible
query I rowsort label-2292
SELECT DISTINCT MAX ( 31 ) * 16 AS col2 FROM tab2
----
496

onlyif mysql # aggregate syntax: 
query I rowsort label-2293
SELECT ALL SUM( - - col2 ) AS col2 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-2293
SELECT ALL SUM ( - - col2 ) AS col2 FROM tab2
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-2294
SELECT ALL COUNT( + 95 ) + + COUNT( * ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-2294
SELECT ALL COUNT ( + 95 ) + + COUNT ( * ) FROM tab1
----
6

query I rowsort
SELECT ALL col1 + 20 AS col1 FROM tab1
----
25
34
67

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 BETWEEN + + col1 AND - - 37
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 76 * + + 98 BETWEEN NULL AND col0 / + - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2298
SELECT DISTINCT + col0 + + + col2 DIV + - 41 AS col0 FROM tab1 AS cor0
----
49
84
90

skipif mysql # not compatible
query I rowsort label-2298
SELECT DISTINCT + col0 + + + col2 / + - 41 AS col0 FROM tab1 AS cor0
----
49
84
90

query II rowsort
SELECT DISTINCT + + 87, col2 AS col1 FROM tab2 AS cor0
----
87
23
87
40
87
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 47 col2 FROM tab2 WHERE - 47 + - col1 IS NOT NULL
----
47

query I rowsort
SELECT DISTINCT - 57 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2302
SELECT + 77 DIV - 95 col0 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2302
SELECT + 77 / - 95 col0 FROM tab0 cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2303
SELECT CAST( + 93 AS SIGNED ) col2, - col0 FROM tab0 AS cor0
----
93
-15
93
-87
93
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2303
SELECT CAST ( + 93 AS INTEGER ) col2, - col0 FROM tab0 AS cor0
----
93
-15
93
-87
93
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2304
SELECT - COUNT( * ) * - AVG ( ALL 81 ) + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2304
SELECT - COUNT ( * ) * - AVG ( ALL 81 ) + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2305
SELECT - + 96 DIV + col2 FROM tab0 AS cor0
----
-2
-9
0

skipif mysql # not compatible
query I rowsort label-2305
SELECT - + 96 / + col2 FROM tab0 AS cor0
----
-2
-9
0

query I rowsort
SELECT + col2 * 89 - col2 FROM tab2 AS cor0
----
2024
3520
5104

query I rowsort
SELECT ALL + col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND - 87 + col0 + - 89 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2308
SELECT + - COUNT( * ) FROM tab1 AS cor0 WHERE NOT 73 - col2 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2308
SELECT + - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT 73 - col2 IS NULL
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2309
SELECT DISTINCT + CAST( NULL AS DECIMAL ) col2, + col2 + col1 FROM tab2 AS cor0
----
NULL
117
NULL
125
NULL
74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2309
SELECT DISTINCT + CAST ( NULL AS REAL ) col2, + col2 + col1 FROM tab2 AS cor0
----
NULL
117
NULL
125
NULL
74

query I rowsort
SELECT - 0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2311
SELECT ALL col0 + + - CAST( - 17 AS SIGNED ) * + col2 FROM tab1
----
1088
1247
1683

skipif mysql # not compatible
query I rowsort label-2311
SELECT ALL col0 + + - CAST ( - 17 AS INTEGER ) * + col2 FROM tab1
----
1088
1247
1683

onlyif mysql # DIV for integer division: 
query I rowsort label-2312
SELECT DISTINCT - col2 DIV - 28 + - 68 AS col2 FROM tab0
----
-65
-67
-68

skipif mysql # not compatible
query I rowsort label-2312
SELECT DISTINCT - col2 / - 28 + - 68 AS col2 FROM tab0
----
-65
-67
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-2313
SELECT ALL - - COUNT( * ) + - 10 AS col2, + MIN( ALL - col2 ) + + + COUNT( * ) FROM tab0 AS cor0
----
-7
-96

skipif mysql # not compatible
query II rowsort label-2313
SELECT ALL - - COUNT ( * ) + - 10 AS col2, + MIN ( ALL - col2 ) + + + COUNT ( * ) FROM tab0 AS cor0
----
-7
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2314
SELECT DISTINCT - COUNT( * ) * + ( + COUNT( * ) ) * + COUNT( * ) DIV - 49 + + 99 * - + COUNT( * ) * 15 FROM tab0 AS cor0
----
-4455

skipif mysql # not compatible
query I rowsort label-2314
SELECT DISTINCT - COUNT ( * ) * + ( + COUNT ( * ) ) * + COUNT ( * ) / - 49 + + 99 * - + COUNT ( * ) * 15 FROM tab0 AS cor0
----
-4455

onlyif mysql # aggregate syntax: 
query I rowsort label-2315
SELECT MIN( 89 ) FROM tab0 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-2315
SELECT MIN ( 89 ) FROM tab0 AS cor0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2316
SELECT ( - 17 ) * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-2316
SELECT ( - 17 ) * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
51

query I rowsort
SELECT + col2 * - + 94 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-4418
-9306
-940

query II rowsort
SELECT + 44 * - col2, col2 AS col0 FROM tab1 AS cor0
----
-2596
59
-2992
68
-4224
96

onlyif mysql # aggregate syntax: 
query II rowsort label-2319
SELECT DISTINCT COUNT( * ) + 16 AS col2, 44 AS col2 FROM tab2 AS cor0
----
19
44

skipif mysql # not compatible
query II rowsort label-2319
SELECT DISTINCT COUNT ( * ) + 16 AS col2, 44 AS col2 FROM tab2 AS cor0
----
19
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2320
SELECT 22 + - CAST( + SUM( DISTINCT - - col0 ) AS SIGNED ) FROM tab1 AS cor0 WHERE ( + col1 ) NOT IN ( + + col0 )
----
-205

skipif mysql # not compatible
query I rowsort label-2320
SELECT 22 + - CAST ( + SUM ( DISTINCT - - col0 ) AS INTEGER ) FROM tab1 AS cor0 WHERE ( + col1 ) NOT IN ( + + col0 )
----
-205

query I rowsort
SELECT ALL - col1 + 10 AS col1 FROM tab2 AS cor0
----
-41
-57
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-2322
SELECT - ( - - ( - - COUNT( * ) ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2322
SELECT - ( - - ( - - COUNT ( * ) ) ) FROM tab2 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 + + - col0 + - col0 + col1 * + 3 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - 25 FROM tab0 AS cor0
----
-25

query I rowsort
SELECT ALL - ( - - col2 ) AS col0 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT ALL - col2 * 59 FROM tab0
----
-2773
-5841
-590

onlyif mysql # aggregate syntax: 
query I rowsort label-2327
SELECT ALL + ( - COUNT( * ) ) * + COUNT( * ) + 3 * + - ( - COUNT( * ) ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2327
SELECT ALL + ( - COUNT ( * ) ) * + COUNT ( * ) + 3 * + - ( - COUNT ( * ) ) FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2328
SELECT - - 70 * + COUNT( * ) * MAX( ALL - col2 ) + 62 + - 69 AS col2 FROM tab1 AS cor0
----
-12397

skipif mysql # not compatible
query I rowsort label-2328
SELECT - - 70 * + COUNT ( * ) * MAX ( ALL - col2 ) + 62 + - 69 AS col2 FROM tab1 AS cor0
----
-12397

query I rowsort
SELECT DISTINCT - col0 - col2 + + col0 * + - col2 FROM tab1 cor0
----
-5043
-5159
-6347

query I rowsort
SELECT DISTINCT 33 - col1 + + - col1 FROM tab0
----
-129
-9
31

query I rowsort
SELECT + col2 - 60 FROM tab1
----
-1
36
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2332
SELECT + COUNT( + col0 ) - MAX( + col2 ) * COUNT( * ) FROM tab0
----
-294

skipif mysql # not compatible
query I rowsort label-2332
SELECT + COUNT ( + col0 ) - MAX ( + col2 ) * COUNT ( * ) FROM tab0
----
-294

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2333
SELECT ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2333
SELECT ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( + ( + + col2 ) + + 69 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT 88 AS col2, col2 FROM tab2 AS cor0
----
88
23
88
40
88
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2337
SELECT DISTINCT - COUNT( * ) * COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2337
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

query II rowsort
SELECT ALL + 29 AS col1, - 2 AS col1 FROM tab0 cor0
----
29
-2
29
-2
29
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2339
SELECT ALL - - 67 * - MIN( + + 20 ) + - - ( + COUNT( * ) ) + ( SUM( DISTINCT + - col0 ) ) FROM tab2 AS cor0
----
-1522

skipif mysql # not compatible
query I rowsort label-2339
SELECT ALL - - 67 * - MIN ( + + 20 ) + - - ( + COUNT ( * ) ) + ( SUM ( DISTINCT + - col0 ) ) FROM tab2 AS cor0
----
-1522

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 69 col1 FROM tab0
----
69
69
69

query I rowsort
SELECT + col0 FROM tab1 WHERE NOT + + col2 IS NULL
----
51
85
91

query I rowsort
SELECT ALL + ( 92 ) FROM tab2 AS cor0 WHERE NOT - 5 * + - col2 * + col0 * + col1 BETWEEN - col1 - - col1 / - col2 * - 27 * - col1 + + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2343
SELECT SUM( + ( + + col0 ) ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-2343
SELECT SUM ( + ( + + col0 ) ) FROM tab1
----
227

query I rowsort
SELECT DISTINCT - 98 + col0 + 84 AS col0 FROM tab1 AS cor0
----
37
71
77

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 * 58 > - 55
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2346
SELECT DISTINCT + 96 + + - 30 - + MAX( - + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2346
SELECT DISTINCT + 96 + + - 30 - + MAX ( - + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col1 * - ( - 97 ) FROM tab2
----
4947
6499
7469

onlyif mysql # aggregate syntax: 
query I rowsort label-2348
SELECT - COUNT( * ) FROM tab0 WHERE 57 >= - - col1
----
-2

skipif mysql # not compatible
query I rowsort label-2348
SELECT - COUNT ( * ) FROM tab0 WHERE 57 >= - - col1
----
-2

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - col2 * - + 95 + + - col2 + col1 NOT BETWEEN NULL AND + 2
----

query I rowsort
SELECT DISTINCT - 35 * - col1 * col1 * - 79 AS col1 FROM tab2
----
-12412085
-16393685
-7191765

onlyif mysql # DIV for integer division: 
query I rowsort label-2351
SELECT - ( 41 ) DIV - col0 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-2351
SELECT - ( 41 ) / - col0 FROM tab0
----
0
0
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2352
SELECT COUNT( * ) FROM tab2 WHERE ( + 16 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2352
SELECT COUNT ( * ) FROM tab2 WHERE ( + 16 ) IS NOT NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 - + + col0 > - col0
----

query I rowsort
SELECT - 48 + + col2 AS col0 FROM tab2 AS cor0
----
-25
-8
10

query I rowsort
SELECT + + 41 FROM tab0 AS cor0 WHERE - 46 < NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( col1, col2 + 99 / - 60 + + col1 + col2, 28 - col2, - 73 + - 46, - col0, + 8 )
----

query I rowsort
SELECT DISTINCT - col1 * + col0 * ( - col2 ) FROM tab0 WHERE NOT + ( - col1 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2358
SELECT DISTINCT + + 77 DIV col0 AS col1 FROM tab0 AS cor0
----
0
5

skipif mysql # not compatible
query I rowsort label-2358
SELECT DISTINCT + + 77 / col0 AS col1 FROM tab0 AS cor0
----
0
5

onlyif mysql # DIV for integer division: 
query I rowsort label-2359
SELECT - 18 DIV + - col1 FROM tab0 AS cor0
----
0
0
18

skipif mysql # not compatible
query I rowsort label-2359
SELECT - 18 / + - col1 FROM tab0 AS cor0
----
0
0
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2360
SELECT + + COUNT( * ) * + ( CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2360
SELECT + + COUNT ( * ) * + ( CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2361
SELECT col2 DIV + ( - col1 ) + - col1 AS col2 FROM tab0 cor0
----
-100
-21
-81

skipif mysql # not compatible
query I rowsort label-2361
SELECT col2 / + ( - col1 ) + - col1 AS col2 FROM tab0 cor0
----
-100
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2362
SELECT + COUNT( ALL col0 ) FROM tab2 AS cor0 WHERE NOT col2 = + + ( + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-2362
SELECT + COUNT ( ALL col0 ) FROM tab2 AS cor0 WHERE NOT col2 = + + ( + col2 )
----
0

query I rowsort
SELECT - col1 * - col0 * + + 11 AS col1 FROM tab0 AS cor0
----
1067
13365
20097

query I rowsort
SELECT ALL + col2 FROM tab0 AS cor0 WHERE col0 NOT IN ( - 68 * col1, + col0 )
----

query II rowsort
SELECT DISTINCT - col1 AS col2, - ( 76 ) FROM tab2
----
-51
-76
-67
-76
-77
-76

query II rowsort
SELECT ALL - 0, 80 AS col2 FROM tab1
----
0
80
0
80
0
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - + - col1 col0 FROM tab1 WHERE - + 51 IS NOT NULL
----
138
65
90

query I rowsort
SELECT ALL + col0 * col2 * - col1 AS col2 FROM tab1
----
-25075
-290836
-68544

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1, - col2 col2 FROM tab2
----
51
-23
67
-58
77
-40

query II rowsort
SELECT + + 41, col2 AS col0 FROM tab0 cor0
----
41
10
41
47
41
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2371
SELECT ALL - MAX( DISTINCT + 89 ) AS col1 FROM tab1 AS cor0
----
-89

skipif mysql # not compatible
query I rowsort label-2371
SELECT ALL - MAX ( DISTINCT + 89 ) AS col1 FROM tab1 AS cor0
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2372
SELECT DISTINCT - col2 col2, + CAST( + + 39 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-10
39
-47
39
-99
39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2372
SELECT DISTINCT - col2 col2, + CAST ( + + 39 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-10
39
-47
39
-99
39

query I rowsort
SELECT col0 + 42 AS col0 FROM tab1 AS cor0
----
127
133
93

query I rowsort
SELECT ALL ( 13 ) AS col2 FROM tab0 AS cor0
----
13
13
13

query IIIIII rowsort
SELECT * FROM tab2 cor0 JOIN tab1 AS cor1 ON + 98 * - 28 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( 64 ) * - + 92 - + - 39 col0 FROM tab0 AS cor0
----
-5849
-5849
-5849

query I rowsort
SELECT ALL + col2 * - + 39 * + + col2 FROM tab2 cor0
----
-131196
-20631
-62400

query I rowsort
SELECT - col0 + + - col2 AS col0 FROM tab2
----
-104
-133
-69

query I rowsort
SELECT ALL + 34 * + + col1 AS col2 FROM tab2
----
1734
2278
2618

query I rowsort
SELECT 37 + col2 + + 39 * - col0 AS col2 FROM tab0
----
-3346
-3647
-501

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * - col0 + - + 89 col0 FROM tab1 AS cor0 WHERE - col2 < - - col1
----
-4985
-5104
-6277

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2382
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2382
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2383
SELECT SUM( ALL - + 23 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-207

skipif mysql # not compatible
query I rowsort label-2383
SELECT SUM ( ALL - + 23 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-207

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2384
SELECT + col2 AS col1 FROM tab0 WHERE NOT + CAST( col1 AS SIGNED ) IS NULL
----
10
47
99

skipif mysql # not compatible
query I rowsort label-2384
SELECT + col2 AS col1 FROM tab0 WHERE NOT + CAST ( col1 AS INTEGER ) IS NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2385
SELECT + + COUNT( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2385
SELECT + + COUNT ( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2386
SELECT + COUNT( * ) * - 12 * + COUNT( * ) AS col1 FROM tab2
----
-108

skipif mysql # not compatible
query I rowsort label-2386
SELECT + COUNT ( * ) * - 12 * + COUNT ( * ) AS col1 FROM tab2
----
-108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2387
SELECT - CAST( + 69 AS SIGNED ) FROM tab2
----
-69
-69
-69

skipif mysql # not compatible
query I rowsort label-2387
SELECT - CAST ( + 69 AS INTEGER ) FROM tab2
----
-69
-69
-69

query I rowsort
SELECT ALL 92 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query I rowsort
SELECT ALL - col2 * col1 * - ( - 12 ) AS col0 FROM tab2 cor0
----
-14076
-36960
-46632

query I rowsort
SELECT - 86 * - 73 FROM tab2 AS cor0
----
6278
6278
6278

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2391
SELECT DISTINCT 66 DIV - - 71 + - COUNT( * ) col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2391
SELECT DISTINCT 66 / - - 71 + - COUNT ( * ) col0 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2392
SELECT - COUNT( * ) * + 99 AS col1 FROM tab0 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-2392
SELECT - COUNT ( * ) * + 99 AS col1 FROM tab0 AS cor0
----
-297

query I rowsort
SELECT - 45 * + col2 * - + col0 * + - ( + + 74 ) FROM tab0
----
-2347650
-2897100
-31977990

onlyif mysql # aggregate syntax: 
query I rowsort label-2394
SELECT DISTINCT + - COUNT( * ) col1 FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2394
SELECT DISTINCT + - COUNT ( * ) col1 FROM tab0 WHERE NULL IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE + col0 IS NULL AND 8 * col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 - + col2 AS col2 FROM tab0 WHERE NULL IS NULL
----
-2
-32
77

onlyif mysql # DIV for integer division: 
query II rowsort label-2397
SELECT DISTINCT + col2 AS col0, - 18 DIV + col1 + col1 FROM tab1
----
59
2
68
47
96
13

skipif mysql # not compatible
query II rowsort label-2397
SELECT DISTINCT + col2 AS col0, - 18 / + col1 + col1 FROM tab1
----
59
2
68
47
96
13

query III rowsort
SELECT * FROM tab0 WHERE ( 77 ) NOT BETWEEN NULL AND ( NULL )
----

query II rowsort
SELECT + + col1 * + 46 AS col2, - col2 FROM tab0 WHERE NULL IS NULL
----
3726
-47
46
-99
966
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-2400
SELECT ALL - + ( + 92 ) + + - COUNT( * ) AS col2 FROM tab0 cor0
----
-95

skipif mysql # not compatible
query I rowsort label-2400
SELECT ALL - + ( + 92 ) + + - COUNT ( * ) AS col2 FROM tab0 cor0
----
-95

query I rowsort
SELECT ALL col0 + 92 AS col0 FROM tab0 AS cor0
----
107
179
189

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2 AS cor0 WHERE 39 = - + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2403
SELECT - 60 * CAST( NULL AS SIGNED ) / col1 + 95 + + 25 AS col1 FROM tab2 AS cor0 WHERE NULL <= 1
----

skipif mysql # not compatible
query I rowsort label-2403
SELECT - 60 * CAST ( NULL AS INTEGER ) / col1 + 95 + + 25 AS col1 FROM tab2 AS cor0 WHERE NULL <= 1
----

query II rowsort
SELECT 80 AS col0, col2 AS col0 FROM tab1 AS cor0
----
80
59
80
68
80
96

query I rowsort
SELECT ALL col1 + + col0 - - col1 AS col0 FROM tab2 AS cor0
----
148
209
218

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL >= 34
----

query I rowsort
SELECT + 14 AS col0 FROM tab0 WHERE col0 IS NOT NULL
----
14
14
14

query I rowsort
SELECT ALL - 0 * col2 - + col0 FROM tab1
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2409
SELECT + 23 * + + ( + COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-2409
SELECT + 23 * + + ( + COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
69

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE - 86 <= col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2411
SELECT ALL - + COUNT( + + 2 ) col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2411
SELECT ALL - + COUNT ( + + 2 ) col0 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-2412
SELECT ALL - ( + 86 ), + MIN( + 11 ) AS col0 FROM tab2 AS cor0
----
-86
11

skipif mysql # not compatible
query II rowsort label-2412
SELECT ALL - ( + 86 ), + MIN ( + 11 ) AS col0 FROM tab2 AS cor0
----
-86
11

query I rowsort
SELECT ALL - + 39 * - + col0 * - col1 AS col1 FROM tab1 AS cor0
----
-16575
-166803
-27846

query I rowsort
SELECT DISTINCT 83 * - col0 AS col2 FROM tab0
----
-1245
-7221
-8051

query I rowsort
SELECT ALL + 21 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2416
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 * - CAST( NULL AS SIGNED ) > + col2 / + col0 + CAST( NULL AS SIGNED ) - - - col2
----

skipif mysql # not compatible
query III rowsort label-2416
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 * - CAST ( NULL AS INTEGER ) > + col2 / + col0 + CAST ( NULL AS INTEGER ) - - - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2417
SELECT DISTINCT 80, CAST( NULL AS SIGNED ) * + 23 * + col2 AS col1 FROM tab0 AS cor0
----
80
NULL

skipif mysql # not compatible
query II rowsort label-2417
SELECT DISTINCT 80, CAST ( NULL AS INTEGER ) * + 23 * + col2 AS col1 FROM tab0 AS cor0
----
80
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2418
SELECT DISTINCT + col0 * - CAST( NULL AS SIGNED ) + 57 + + 95 col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2418
SELECT DISTINCT + col0 * - CAST ( NULL AS INTEGER ) + 57 + + 95 col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + col0 * - 72 AS col2 FROM tab0 AS cor0
----
-1080
-6264
-6984

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2420
SELECT ALL + - COUNT( * ) * - 33 + + COUNT( DISTINCT - 61 ) * - COUNT( DISTINCT ( col2 ) ) + - 32 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2420
SELECT ALL + - COUNT ( * ) * - 33 + + COUNT ( DISTINCT - 61 ) * - COUNT ( DISTINCT ( col2 ) ) + - 32 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2421
SELECT 82 * + col1 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2421
SELECT 82 * + col1 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2422
SELECT DISTINCT + 87 * 17 + + 17 + + COUNT( * ) * - 42 FROM tab1 AS cor0
----
1370

skipif mysql # not compatible
query I rowsort label-2422
SELECT DISTINCT + 87 * 17 + + 17 + + COUNT ( * ) * - 42 FROM tab1 AS cor0
----
1370

onlyif mysql # aggregate syntax: 
query I rowsort label-2423
SELECT ALL + - COUNT( ALL - + 14 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2423
SELECT ALL + - COUNT ( ALL - + 14 ) FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL BETWEEN col1 - + ( - - col0 ) AND 33 * - - 84
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2425
SELECT - + col2 * + CAST( + ( 82 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-4838
-5576
-7872

skipif mysql # not compatible
query I rowsort label-2425
SELECT - + col2 * + CAST ( + ( 82 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-4838
-5576
-7872

onlyif mysql # aggregate syntax: 
query I rowsort label-2426
SELECT SUM( 67 ) + + COUNT( * ) AS col0 FROM tab0
----
204

skipif mysql # not compatible
query I rowsort label-2426
SELECT SUM ( 67 ) + + COUNT ( * ) AS col0 FROM tab0
----
204

onlyif mysql # DIV for integer division: 
query I rowsort label-2427
SELECT 19 DIV col1 * + col0 + + - col2 FROM tab1
----
-45
-68
196

skipif mysql # not compatible
query I rowsort label-2427
SELECT 19 / col1 * + col0 + + - col2 FROM tab1
----
-45
-68
196

query I rowsort
SELECT DISTINCT - col1 * + col2 * - + col0 AS col2 FROM tab1
----
25075
290836
68544

query I rowsort
SELECT + col0 + - 12 - - col0 * + + 57 * + 72 * - col0 FROM tab1 AS cor0
----
-10674465
-29651327
-33985145

query I rowsort
SELECT + col1 * + + col0 FROM tab1 AS cor0
----
425
4277
714

query I rowsort
SELECT ALL col1 + col1 + - + col1 FROM tab0
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2432
SELECT DISTINCT - col0 * - col2 * col0 * 41 * 47 * + - CAST( NULL AS SIGNED ), col0 AS col1 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-2432
SELECT DISTINCT - col0 * - col2 * col0 * 41 * 47 * + - CAST ( NULL AS INTEGER ), col0 AS col1 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 35 col2 FROM tab0
----
-35

query I rowsort
SELECT col0 - + 36 FROM tab0
----
-21
51
61

query I rowsort
SELECT DISTINCT - 19 + + - 9 + 44 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
16

query I rowsort
SELECT ALL + col1 * + 52 AS col2 FROM tab0
----
1092
4212
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + 16 ) col0 FROM tab2 AS cor0
----
16

query II rowsort
SELECT ALL + col0 + + col2 * - + col0 AS col0, + col0 AS col0 FROM tab1 AS cor0
----
-4845
51
-4930
85
-6097
91

query I rowsort
SELECT ALL col0 AS col1 FROM tab0 AS cor0 WHERE col1 BETWEEN + 48 AND - + ( + - 3 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2440
SELECT ALL + CAST( NULL AS SIGNED ) + - col1 * col0 + - 37 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2440
SELECT ALL + CAST ( NULL AS INTEGER ) + - col1 * col0 + - 37 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 AS col0 FROM tab2 cor0 WHERE NULL NOT BETWEEN col2 AND - col2 / - + 39 * col0
----

query I rowsort
SELECT DISTINCT + col2 - - ( + - 47 ) * + col0 AS col0 FROM tab1 AS cor0
----
-2301
-3936
-4209

query I rowsort
SELECT ALL col1 + - + 24 AS col0 FROM tab1
----
-10
-19
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2444
SELECT DISTINCT + COUNT( * ) - - - COUNT( * ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2444
SELECT DISTINCT + COUNT ( * ) - - - COUNT ( * ) AS col2 FROM tab1
----
0

query I rowsort
SELECT ALL + 7 - + col0 + - col2 FROM tab0
----
-189
-55
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-2446
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0 WHERE NULL >= 97
----
0

skipif mysql # not compatible
query I rowsort label-2446
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0 WHERE NULL >= 97
----
0

query I rowsort
SELECT DISTINCT ( - + 21 ) AS col2 FROM tab2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-2448
SELECT - SUM( DISTINCT - + 59 ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-2448
SELECT - SUM ( DISTINCT - + 59 ) FROM tab1
----
59

query I rowsort
SELECT ALL + col1 AS col1 FROM tab2 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2450
SELECT DISTINCT CAST( NULL AS SIGNED ), 78 - + COUNT( * ) AS col2 FROM tab2
----
NULL
75

skipif mysql # not compatible
query II rowsort label-2450
SELECT DISTINCT CAST ( NULL AS INTEGER ), 78 - + COUNT ( * ) AS col2 FROM tab2
----
NULL
75

onlyif mysql # DIV for integer division: 
query II rowsort label-2451
SELECT col2 DIV col0, - 20 AS col2 FROM tab1
----
0
-20
0
-20
1
-20

skipif mysql # not compatible
query II rowsort label-2451
SELECT col2 / col0, - 20 AS col2 FROM tab1
----
0
-20
0
-20
1
-20

query I rowsort
SELECT DISTINCT 15 * + 13 FROM tab0
----
195

query I rowsort
SELECT + ( - 56 ) AS col1 FROM tab1
----
-56
-56
-56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( + 19 ) col2, ( - col0 ) FROM tab2
----
19
-46
19
-64
19
-75

query I rowsort
SELECT DISTINCT 55 * - 28 * + 19 FROM tab2 WHERE NULL IS NULL OR NULL IS NULL
----
-29260

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2456
SELECT DISTINCT COUNT( - col1 ) * + 66 DIV - COUNT( * ) FROM tab0 cor0
----
-66

skipif mysql # not compatible
query I rowsort label-2456
SELECT DISTINCT COUNT ( - col1 ) * + 66 / - COUNT ( * ) FROM tab0 cor0
----
-66

query I rowsort
SELECT DISTINCT - 19 + 31 + + 15 * + + col0 AS col0 FROM tab0 AS cor0
----
1317
1467
237

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE NULL IN ( - col1, 40 * + + col2 + col2 * - - col1 + + col0 + 93 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2459
SELECT ALL col0 col1, CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2459
SELECT ALL col0 col1, CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + + 13 + - - col2 + col1 FROM tab2 AS cor0
----
130
138
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2461
SELECT + + COUNT( * ) DIV - COUNT( * ) - + COUNT( ALL + + col0 ) FROM tab1 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-2461
SELECT + + COUNT ( * ) / - COUNT ( * ) - + COUNT ( ALL + + col0 ) FROM tab1 AS cor0
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2462
SELECT DISTINCT CAST( - + col0 AS SIGNED ) FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-2462
SELECT DISTINCT CAST ( - + col0 AS INTEGER ) FROM tab0
----
-15
-87
-97

query I rowsort
SELECT ( + col0 ) * + col2 AS col2 FROM tab0
----
705
870
9603

query I rowsort
SELECT DISTINCT - col2 + - + col2 FROM tab1
----
-118
-136
-192

query I rowsort
SELECT DISTINCT 24 - + col2 * ( + + col2 ) * + col0 * + - col0 AS col1 FROM tab1 AS cor0 WHERE NULL BETWEEN col0 AND ( - col0 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 / + + col0 * + 69 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2467
SELECT CAST( + 84 AS SIGNED ) FROM tab0 cor0
----
84
84
84

skipif mysql # not compatible
query I rowsort label-2467
SELECT CAST ( + 84 AS INTEGER ) FROM tab0 cor0
----
84
84
84

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 44 + - - col2 IS NULL
----

query I rowsort
SELECT + col2 * col1 + + 71 - - + 97 * col0 FROM tab1 AS cor0
----
12094
6362
8611

query I rowsort
SELECT ALL - + col2 * - col2 + + col2 AS col1 FROM tab2 AS cor0
----
1640
3422
552

onlyif mysql # aggregate syntax: 
query I rowsort label-2471
SELECT ALL - COUNT( ALL col2 ) FROM tab1 WHERE NULL = ( + col0 ) * col1 + + col0 * - 84
----
0

skipif mysql # not compatible
query I rowsort label-2471
SELECT ALL - COUNT ( ALL col2 ) FROM tab1 WHERE NULL = ( + col0 ) * col1 + + col0 * - 84
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2472
SELECT - col0 * - CAST( - col1 AS SIGNED ) AS col2 FROM tab1
----
-425
-4277
-714

skipif mysql # not compatible
query I rowsort label-2472
SELECT - col0 * - CAST ( - col1 AS INTEGER ) AS col2 FROM tab1
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-2473
SELECT DISTINCT + COUNT( * ) * COUNT( * ) AS col0 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-2473
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) AS col0 FROM tab1
----
9

query III rowsort
SELECT * FROM tab0 WHERE ( + 81 * - col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2475
SELECT ALL MIN( ALL col1 ) FROM tab0 WHERE + 86 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2475
SELECT ALL MIN ( ALL col1 ) FROM tab0 WHERE + 86 IS NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2476
SELECT ALL CAST( 69 AS DECIMAL ) AS col0 FROM tab0 WHERE ( - 87 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2476
SELECT ALL CAST ( 69 AS REAL ) AS col0 FROM tab0 WHERE ( - 87 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 38 BETWEEN - col1 * + col0 AND NULL
----

query I rowsort
SELECT 36 + + col1 AS col1 FROM tab0
----
117
37
57

query I rowsort
SELECT ALL col2 * + col1 AS col1 FROM tab2 WHERE col0 + col1 * - 26 NOT BETWEEN NULL AND ( col1 )
----

query I rowsort
SELECT 73 + col2 * - col0 AS col1 FROM tab1
----
-4823
-4942
-6115

query I rowsort
SELECT 42 * + 38 FROM tab1
----
1596
1596
1596

query I rowsort
SELECT DISTINCT ( + 47 ) FROM tab2
----
47

query I rowsort
SELECT + 12 + - col1 * col0 FROM tab2
----
-2334
-4916
-5013

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 29 col2 FROM tab1
----
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 47 col0 FROM tab0
----
47
47
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2486
SELECT DISTINCT CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2486
SELECT DISTINCT CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab2
----
-3

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) > ( 79 * - 53 )
----

query I rowsort
SELECT 14 - - 76 FROM tab1
----
90
90
90

query I rowsort
SELECT ALL col2 + + col0 * col0 AS col0 FROM tab2
----
2139
4136
5683

onlyif mysql # aggregate syntax: 
query I rowsort label-2490
SELECT SUM( ALL 34 ) AS col1 FROM tab2
----
102

skipif mysql # not compatible
query I rowsort label-2490
SELECT SUM ( ALL 34 ) AS col1 FROM tab2
----
102

query I rowsort
SELECT + col1 - + ( - col1 ) FROM tab0
----
162
2
42

onlyif mysql # DIV for integer division: 
query I rowsort label-2492
SELECT ALL - 32 + - 32 DIV col1 AS col2 FROM tab2
----
-32
-32
-32

skipif mysql # not compatible
query I rowsort label-2492
SELECT ALL - 32 + - 32 / col1 AS col2 FROM tab2
----
-32
-32
-32

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2493
SELECT ALL * FROM tab1 WHERE ( + ( 90 ) ) < CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-2493
SELECT ALL * FROM tab1 WHERE ( + ( 90 ) ) < CAST ( NULL AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2494
SELECT ALL + COUNT( ALL 11 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2494
SELECT ALL + COUNT ( ALL 11 ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2495
SELECT * FROM tab0 WHERE NULL NOT BETWEEN + 86 AND + CAST( 10 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2495
SELECT * FROM tab0 WHERE NULL NOT BETWEEN + 86 AND + CAST ( 10 AS INTEGER )
----

query I rowsort
SELECT ALL 74 + + col1 AS col1 FROM tab2
----
125
141
151

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2497
SELECT col2 + - CAST( - ( - 49 ) AS SIGNED ) AS col2 FROM tab1
----
10
19
47

skipif mysql # not compatible
query I rowsort label-2497
SELECT col2 + - CAST ( - ( - 49 ) AS INTEGER ) AS col2 FROM tab1
----
10
19
47

query I rowsort
SELECT + 10 * col1 AS col0 FROM tab0 AS cor0
----
10
210
810

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( - 35 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 BETWEEN NULL AND ( + col2 )
----
85
5
59
91
47
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col1 col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-98
11
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2502
SELECT + CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2
----
9

skipif mysql # not compatible
query I rowsort label-2502
SELECT + CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2
----
9

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 * col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2504
SELECT + 23 * COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1
----
207

skipif mysql # not compatible
query I rowsort label-2504
SELECT + 23 * COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1
----
207

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 92 col2 FROM tab1
----
-92
-92
-92

query I rowsort
SELECT DISTINCT 69 * col2 + col2 AS col2 FROM tab2 AS cor0
----
1610
2800
4060

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 20 ) NOT IN ( col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2508
SELECT DISTINCT + ( - COUNT( * ) ) + CAST( + COUNT( * ) - - 24 AS SIGNED ) AS col0 FROM tab1 cor0 WHERE NOT - ( 51 ) IS NULL
----
24

skipif mysql # not compatible
query I rowsort label-2508
SELECT DISTINCT + ( - COUNT ( * ) ) + CAST ( + COUNT ( * ) - - 24 AS INTEGER ) AS col0 FROM tab1 cor0 WHERE NOT - ( 51 ) IS NULL
----
24

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 NOT BETWEEN NULL AND col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2510
SELECT + + CAST( MAX( 72 ) AS SIGNED ) FROM tab2 cor0
----
72

skipif mysql # not compatible
query I rowsort label-2510
SELECT + + CAST ( MAX ( 72 ) AS INTEGER ) FROM tab2 cor0
----
72

query I rowsort
SELECT DISTINCT col0 * col1 + 68 * - col2 AS col0 FROM tab0 AS cor0
----
-1981
-6635
1147

query I rowsort
SELECT + col1 * + 22 AS col1 FROM tab1 AS cor0
----
1034
110
308

query I rowsort
SELECT col2 AS col1 FROM tab1 AS cor0 WHERE - col1 / + 4 >= ( col0 / col0 + col0 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2514
SELECT DISTINCT + 93 * + col0 + + col0 * - CAST( NULL AS DECIMAL ) col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2514
SELECT DISTINCT + 93 * + col0 + + col0 * - CAST ( NULL AS REAL ) col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2515
SELECT DISTINCT + col1 - 58 AS col2 FROM tab1 AS cor0 WHERE NOT ( ( CAST( - col1 AS SIGNED ) ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2515
SELECT DISTINCT + col1 - 58 AS col2 FROM tab1 AS cor0 WHERE NOT ( ( CAST ( - col1 AS INTEGER ) ) ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 <= - 35 * + ( col1 )
----

query I rowsort
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE NOT 79 * 73 NOT BETWEEN col0 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL < - 30 * + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2519
SELECT - COUNT( * ) + - SUM( col2 ) AS col0 FROM tab1
----
-226

skipif mysql # not compatible
query I rowsort label-2519
SELECT - COUNT ( * ) + - SUM ( col2 ) AS col0 FROM tab1
----
-226

query I rowsort
SELECT ALL + AVG ( + col0 ) AS col1 FROM tab1 WHERE NOT 89 - col2 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2521
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col0 ) BETWEEN ( NULL ) AND 75 * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2521
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col0 ) BETWEEN ( NULL ) AND 75 * CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2522
SELECT ALL - COUNT( 1 ) FROM tab2 WHERE NOT NULL > col2 / - 33
----
0

skipif mysql # not compatible
query I rowsort label-2522
SELECT ALL - COUNT ( 1 ) FROM tab2 WHERE NOT NULL > col2 / - 33
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 BETWEEN - col2 AND col2
----
87
21
10

query III rowsort
SELECT * FROM tab2 WHERE ( col2 + - col1 ) < NULL
----

query I rowsort
SELECT col1 + + - 99 AS col1 FROM tab2
----
-22
-32
-48

query I rowsort
SELECT col2 * - 58 + col1 FROM tab0
----
-2645
-559
-5741

query I rowsort
SELECT + col0 * + - 45 + col1 FROM tab2
----
-2019
-2803
-3308

query I rowsort
SELECT ALL + - col1 * - col1 + + 83 FROM tab2 AS cor0
----
2684
4572
6012

onlyif mysql # aggregate syntax: 
query I rowsort label-2529
SELECT ALL SUM( ALL 90 ) FROM tab0 cor0 WHERE NOT col0 / 87 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2529
SELECT ALL SUM ( ALL 90 ) FROM tab0 cor0 WHERE NOT col0 / 87 = NULL
----
NULL

query I rowsort
SELECT DISTINCT col2 + + - col1 + 11 * col1 FROM tab0 AS cor0
----
109
220
857

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL > ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2532
SELECT - COUNT( ALL - ( - col2 ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2532
SELECT - COUNT ( ALL - ( - col2 ) ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT col1 + - + col0 + - col1 FROM tab1 cor0
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2534
SELECT col2 col1, col1 + - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2534
SELECT col2 col1, col1 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
59
NULL
68
NULL
96
NULL

query I rowsort
SELECT - col1 - + col0 * + 60 + 64 * - col0 AS col2 FROM tab0
----
-10809
-12029
-1941

query I rowsort
SELECT ( + col1 ) - + col0 + 38 AS col1 FROM tab2
----
30
43
51

query I rowsort
SELECT - col2 * col1 + + 7 + + col0 AS col2 FROM tab2 AS cor0
----
-1120
-3009
-3804

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE 62 IN ( - 7 * + 60 + 12 * 68 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( 35 ) IN ( col2 + + col0 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN - - col0 AND 52
----

query I rowsort
SELECT - col2 AS col2 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2542
SELECT DISTINCT - COUNT( DISTINCT - 65 ) AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2542
SELECT DISTINCT - COUNT ( DISTINCT - 65 ) AS col1 FROM tab0 AS cor0
----
-1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 78 IN ( - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 FROM tab2 cor0 WHERE NOT ( + 58 ) < NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col2 + + col1 ) BETWEEN 92 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2546
SELECT ALL + 66 * - COUNT( * ) FROM tab0 cor0
----
-198

skipif mysql # not compatible
query I rowsort label-2546
SELECT ALL + 66 * - COUNT ( * ) FROM tab0 cor0
----
-198

onlyif mysql # DIV for integer division: 
query I rowsort label-2547
SELECT DISTINCT - col0 DIV + - col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2547
SELECT DISTINCT - col0 / + - col0 FROM tab0
----
1

query I rowsort
SELECT ALL 35 * ( 26 ) FROM tab1
----
910
910
910

query I rowsort
SELECT DISTINCT col2 * - - col2 * + col2 FROM tab2
----
12167
195112
64000

query I rowsort
SELECT col1 * + col1 * - - ( + + col0 ) AS col0 FROM tab2
----
119646
336675
379456

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2551
SELECT DISTINCT - 29 DIV - MAX( DISTINCT + - col2 ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2551
SELECT DISTINCT - 29 / - MAX ( DISTINCT + - col2 ) AS col2 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2552
SELECT + 34 * 34 * + + MAX( ALL - - 69 ) AS col0 FROM tab2
----
79764

skipif mysql # not compatible
query I rowsort label-2552
SELECT + 34 * 34 * + + MAX ( ALL - - 69 ) AS col0 FROM tab2
----
79764

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE NOT - col0 IS NULL
----
51
67
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2554
SELECT - CAST( + - MIN( ALL - 2 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-2554
SELECT - CAST ( + - MIN ( ALL - 2 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-2

query I rowsort
SELECT ALL - 1 * + - 61 * col2 + 79 AS col0 FROM tab2 AS cor0
----
1482
2519
3617

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 52 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2557
SELECT ALL + ( - COUNT( * ) ) col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2557
SELECT ALL + ( - COUNT ( * ) ) col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT + + 11 + + col2 FROM tab2 AS cor0
----
34
51
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2559
SELECT 28 + - CAST( + ( - - col1 ) AS SIGNED ) FROM tab0 AS cor0
----
-53
27
7

skipif mysql # not compatible
query I rowsort label-2559
SELECT 28 + - CAST ( + ( - - col1 ) AS INTEGER ) FROM tab0 AS cor0
----
-53
27
7

query I rowsort
SELECT + 9 + - col0 + + ( - 29 ) * + col2 FROM tab1 cor0 WHERE - 85 <> - col0
----
-2054
-2826

query II rowsort
SELECT DISTINCT + col2, - col1 FROM tab0 AS cor0 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2562
SELECT CAST( NULL AS SIGNED ) AS col1, col2 - + - 12 AS col2 FROM tab1
----
NULL
108
NULL
71
NULL
80

skipif mysql # not compatible
query II rowsort label-2562
SELECT CAST ( NULL AS INTEGER ) AS col1, col2 - + - 12 AS col2 FROM tab1
----
NULL
108
NULL
71
NULL
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2563
SELECT CAST( NULL AS SIGNED ) / - + MIN( DISTINCT - 76 ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2563
SELECT CAST ( NULL AS INTEGER ) / - + MIN ( DISTINCT - 76 ) AS col1 FROM tab1
----
NULL

query II rowsort
SELECT DISTINCT col0 AS col0, - 84 AS col1 FROM tab1
----
51
-84
85
-84
91
-84

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 19 / + + col2 - + 80 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2, 65 col1 FROM tab0
----
10
65
47
65
99
65

query III rowsort
SELECT * FROM tab0 WHERE - col0 + - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - col0 BETWEEN ( - col1 ) AND - col1 + + 0
----

query I rowsort
SELECT 51 + + - 88 AS col1 FROM tab2 AS cor0
----
-37
-37
-37

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) >= - - 44
----

query I rowsort
SELECT - 42 + - col2 * + + 6 FROM tab0 AS cor0
----
-102
-324
-636

onlyif mysql # aggregate syntax: 
query I rowsort label-2572
SELECT ALL COUNT( - 4 ) - 86 FROM tab0 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-2572
SELECT ALL COUNT ( - 4 ) - 86 FROM tab0 AS cor0
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2573
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( 37 + + - CAST( - col0 AS SIGNED ) ) IN ( col2 )
----

skipif mysql # not compatible
query III rowsort label-2573
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( 37 + + - CAST ( - col0 AS INTEGER ) ) IN ( col2 )
----

query I rowsort
SELECT + + col2 AS col1 FROM tab2 WHERE + - col0 < + + 45 + 8 + - + col0
----
23
40
58

query III rowsort
SELECT * FROM tab2 WHERE + - ( + 18 ) + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col1 FROM tab1 WHERE NOT ( 50 / + col1 * + + col0 ) IS NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2577
SELECT + MIN( - col0 ) * + 24 * COUNT( * ) FROM tab1 AS cor0
----
-6552

skipif mysql # not compatible
query I rowsort label-2577
SELECT + MIN ( - col0 ) * + 24 * COUNT ( * ) FROM tab1 AS cor0
----
-6552

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 >= + col0 + + - col2
----

query I rowsort
SELECT ALL + + 17 * + 89 * ( - col2 ) AS col2 FROM tab1 AS cor0
----
-102884
-145248
-89267

query II rowsort
SELECT + col0 * - - col1, - col1 AS col2 FROM tab0 AS cor0
----
1215
-81
1827
-21
97
-1

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL IN ( 56 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2582
SELECT SUM( + + ( - col2 ) ) AS col0 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-2582
SELECT SUM ( + + ( - col2 ) ) AS col0 FROM tab0 AS cor0
----
-156

query I rowsort
SELECT DISTINCT 54 * col2 AS col0 FROM tab0 AS cor0
----
2538
5346
540

query I rowsort
SELECT 64 + + col1 AS col1 FROM tab0 AS cor0 WHERE NOT ( NOT col2 IS NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( NOT + col1 * 53 NOT BETWEEN - col1 AND NULL )
----

query II rowsort
SELECT col1 * - col0, - 58 AS col2 FROM tab1 AS cor0
----
-425
-58
-4277
-58
-714
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2587
SELECT ALL 92 * - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-276

skipif mysql # not compatible
query I rowsort label-2587
SELECT ALL 92 * - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-276

query I rowsort
SELECT ALL 75 AS col1 FROM tab0 AS cor0 WHERE NOT + col0 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 69 col1 FROM tab1 AS cor0
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-2590
SELECT + col0 DIV 65 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2590
SELECT + col0 / 65 FROM tab0
----
0
1
1

query I rowsort
SELECT DISTINCT + col0 * + + col1 AS col2 FROM tab1
----
425
4277
714

onlyif mysql # aggregate syntax: 
query II rowsort label-2592
SELECT DISTINCT - 32 AS col2, - COUNT( * ) AS col1 FROM tab2
----
-32
-3

skipif mysql # not compatible
query II rowsort label-2592
SELECT DISTINCT - 32 AS col2, - COUNT ( * ) AS col1 FROM tab2
----
-32
-3

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 BETWEEN 19 AND ( + col2 ) * - - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - col1 BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 + 53 / + - 69 + + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 73 * + col0 IS NOT NULL
----

query I rowsort
SELECT - 86 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da

onlyif mysql # aggregate syntax: 
query I rowsort label-2598
SELECT DISTINCT COUNT( ALL + col2 ) + - - COUNT( * ) AS col0 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2598
SELECT DISTINCT COUNT ( ALL + col2 ) + - - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
6

query II rowsort
SELECT ALL + + col2 + col1 + - - ( + 39 ), col2 * - col2 - + col0 AS col1 FROM tab0 AS cor0
----
139
-9898
167
-2224
70
-187

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2600
SELECT DISTINCT + col1 + + CAST( NULL AS SIGNED ) * + 2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2600
SELECT DISTINCT + col1 + + CAST ( NULL AS INTEGER ) * + 2 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2601
SELECT + col2 + + 66 DIV - + 23 AS col0 FROM tab0 AS cor0
----
45
8
97

skipif mysql # not compatible
query I rowsort label-2601
SELECT + col2 + + 66 / - + 23 AS col0 FROM tab0 AS cor0
----
45
8
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2602
SELECT ALL + COUNT( * ) + - 58 FROM tab2 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-2602
SELECT ALL + COUNT ( * ) + - 58 FROM tab2 AS cor0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-2603
SELECT DISTINCT + - COUNT( * ) col0 FROM tab1 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2603
SELECT DISTINCT + - COUNT ( * ) col0 FROM tab1 cor0
----
-3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + ( + col0 ) BETWEEN ( col0 * + 10 ) AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 / col0 + col1 * - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 64 * - 44 + 30 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2607
SELECT ALL + COUNT( * ) + - 62 AS col1 FROM tab0
----
-59

skipif mysql # not compatible
query I rowsort label-2607
SELECT ALL + COUNT ( * ) + - 62 AS col1 FROM tab0
----
-59

query II rowsort
SELECT ALL + col0 AS col1, 7 AS col2 FROM tab2
----
46
7
64
7
75
7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2609
SELECT * FROM tab0 WHERE + - col1 * + + CAST( NULL AS SIGNED ) * - col1 * - 47 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2609
SELECT * FROM tab0 WHERE + - col1 * + + CAST ( NULL AS INTEGER ) * - col1 * - 47 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2610
SELECT - col2 DIV - col0 + + CAST( + col2 AS SIGNED ) AS col2 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-2610
SELECT - col2 / - col0 + + CAST ( + col2 AS INTEGER ) AS col2 FROM tab2
----
23
40
58

query I rowsort
SELECT 20 + + 15 - + 67 + - col0 AS col1 FROM tab0
----
-119
-129
-47

query II rowsort
SELECT - 16 AS col0, col0 * + + 28 + - col1 FROM tab0
----
-16
2415
-16
2715
-16
339

onlyif mysql # DIV for integer division: 
query I rowsort label-2613
SELECT + col1 DIV 30 FROM tab2 AS cor0
----
1
2
2

skipif mysql # not compatible
query I rowsort label-2613
SELECT + col1 / 30 FROM tab2 AS cor0
----
1
2
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 5 col1 FROM tab2 AS cor0 WHERE col0 <= ( + + 32 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + 66 >= + ( + 3 ) + col2 * + ( + - col0 ) * + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 27 * + ( col2 ) - ( 84 ) IS NOT NULL
----

query II rowsort
SELECT ALL + + ( - + 85 ) AS col2, - col0 FROM tab1 AS cor0
----
-85
-51
-85
-85
-85
-91

query I rowsort
SELECT - col1 * - + 86 * - 35 FROM tab0 AS cor0
----
-243810
-3010
-63210

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 + - 49 IS NOT NULL
----

query I rowsort
SELECT ALL - col0 * 73 * - - col2 * col0 AS col2 FROM tab2 AS cor0
----
-11960320
-23816250
-3552764

query I rowsort
SELECT ALL - 56 + - col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-114
-79
-96

query I rowsort
SELECT - + col0 FROM tab1 cor0 WHERE NOT col1 * + + 68 IS NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2623
SELECT + COUNT( DISTINCT ( - col1 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2623
SELECT + COUNT ( DISTINCT ( - col1 ) ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2624
SELECT ALL - CAST( - + 85 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
85
85
85

skipif mysql # not compatible
query I rowsort label-2624
SELECT ALL - CAST ( - + 85 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
85
85
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2625
SELECT 4 DIV COUNT( ALL + 88 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-2625
SELECT 4 / COUNT ( ALL + 88 ) FROM tab2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2626
SELECT col0 * - - CAST( - + col2 AS SIGNED ) FROM tab0
----
-705
-870
-9603

skipif mysql # not compatible
query I rowsort label-2626
SELECT col0 * - - CAST ( - + col2 AS INTEGER ) FROM tab0
----
-705
-870
-9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 54 col0 FROM tab0
----
54
54
54

query III rowsort
SELECT ALL * FROM tab1 WHERE - ( - 27 ) IN ( 68 + + col0 )
----

query I rowsort
SELECT - ( - col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT 48 + + col1 + + 96 AS col2 FROM tab1
----
149
158
191

query I rowsort
SELECT DISTINCT col1 + - 80 FROM tab2
----
-13
-29
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2632
SELECT ALL - 54 * + + MIN( ALL - col2 ) * + ( + 28 ) + COUNT( * ) FROM tab2 AS cor0
----
87699

skipif mysql # not compatible
query I rowsort label-2632
SELECT ALL - 54 * + + MIN ( ALL - col2 ) * + ( + 28 ) + COUNT ( * ) FROM tab2 AS cor0
----
87699

onlyif mysql # aggregate syntax: 
query I rowsort label-2633
SELECT ALL - + COUNT( * ) FROM tab1 AS cor0 WHERE col1 BETWEEN col2 + ( - col2 ) + - - 66 AND 65
----
0

skipif mysql # not compatible
query I rowsort label-2633
SELECT ALL - + COUNT ( * ) FROM tab1 AS cor0 WHERE col1 BETWEEN col2 + ( - col2 ) + - - 66 AND 65
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 67 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2635
SELECT ALL - COUNT( - col0 ) + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2635
SELECT ALL - COUNT ( - col0 ) + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 65 * 3 col2 FROM tab0 AS cor0 WHERE - col1 IS NOT NULL
----
-195
-195
-195

query I rowsort
SELECT DISTINCT - 91 + col2 FROM tab1 cor0
----
-23
-32
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2638
SELECT - - SUM( - 39 ) FROM tab0 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort label-2638
SELECT - - SUM ( - 39 ) FROM tab0 AS cor0
----
-117

query I rowsort
SELECT DISTINCT 28 + - 76 AS col1 FROM tab0 AS cor0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-2640
SELECT DISTINCT MIN( DISTINCT - col1 ) AS col1 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-2640
SELECT DISTINCT MIN ( DISTINCT - col1 ) AS col1 FROM tab2 AS cor0
----
-77

query I rowsort
SELECT DISTINCT + col2 * - col0 - - - 19 * - col0 AS col0 FROM tab2 AS cor0
----
-1344
-184
-2925

query I rowsort
SELECT - col2 AS col2 FROM tab1 AS cor0 WHERE 20 * col1 IS NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( - - 16 + + - col1 * + ( 72 ) BETWEEN 64 + col0 AND - col0 * 82 * + col1 * + col0 + + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2644
SELECT DISTINCT ( - - CAST( NULL AS SIGNED ) ) + col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2644
SELECT DISTINCT ( - - CAST ( NULL AS INTEGER ) ) + col0 FROM tab1
----
NULL

query I rowsort
SELECT ALL 7 * + col0 - - col2 FROM tab1
----
453
654
705

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT IN ( col0 / + 38 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 <> col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-2648
SELECT ALL - 51 + + 25, col0 DIV - 81 col2 FROM tab1
----
-26
-1
-26
-1
-26
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2648
SELECT ALL - 51 + + 25, col0 / - 81 col2 FROM tab1
----
-26
-1
-26
-1
-26
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2649
SELECT ALL + COUNT( * ) * 19 AS col0, 6 FROM tab2
----
57
6

skipif mysql # not compatible
query II rowsort label-2649
SELECT ALL + COUNT ( * ) * 19 AS col0, 6 FROM tab2
----
57
6

query II rowsort
SELECT - 10, 82 * + 38 AS col2 FROM tab2 WHERE + 88 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2651
SELECT - + COUNT( * ) AS col2 FROM tab2 WHERE - - 25 * col2 NOT BETWEEN + - col0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2651
SELECT - + COUNT ( * ) AS col2 FROM tab2 WHERE - - 25 * col2 NOT BETWEEN + - col0 AND NULL
----
0

query I rowsort
SELECT ALL + 20 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

query I rowsort
SELECT + - col2 * - 67 FROM tab0 AS cor0
----
3149
6633
670

onlyif mysql # aggregate syntax: 
query I rowsort label-2654
SELECT ALL - - ( - + COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2654
SELECT ALL - - ( - + COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT - - col2 FROM tab1 cor0 WHERE NOT col1 * + col2 IN ( col1, + col2 )
----
59
68
96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * - ( - + col2 ) * - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + col1 AS col0, col2 AS col1 FROM tab2 AS cor0
----
51
23
67
58
77
40

query I rowsort
SELECT + ( - + 10 ) FROM tab0 AS cor0
----
-10
-10
-10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2659
SELECT DISTINCT col1, - CAST( + col1 AS SIGNED ) + - ( - - 89 ) FROM tab2
----
51
-140
67
-156
77
-166

skipif mysql # not compatible
query II rowsort label-2659
SELECT DISTINCT col1, - CAST ( + col1 AS INTEGER ) + - ( - - 89 ) FROM tab2
----
51
-140
67
-156
77
-166

query II rowsort
SELECT DISTINCT - col1, ( + ( + - col1 ) ) FROM tab2
----
-51
-51
-67
-67
-77
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2661
SELECT MIN( DISTINCT 74 ) AS col0 FROM tab2
----
74

skipif mysql # not compatible
query I rowsort label-2661
SELECT MIN ( DISTINCT 74 ) AS col0 FROM tab2
----
74

query I rowsort
SELECT DISTINCT - ( - 85 ) AS col0 FROM tab1
----
85

query I rowsort
SELECT col0 + + - col2 AS col2 FROM tab1
----
-45
23
26

query I rowsort
SELECT 73 + col0 + - col0 AS col1 FROM tab0
----
73
73
73

query I rowsort
SELECT - + col1 + + - col2 AS col2 FROM tab1 AS cor0
----
-110
-115
-64

query I rowsort
SELECT ALL 60 + - + col0 - 75 AS col2 FROM tab2 AS cor0
----
-61
-79
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-2667
SELECT ALL COUNT( * ) + + + COUNT( * ) AS col2, COUNT( * ) FROM tab0 cor0
----
6
3

skipif mysql # not compatible
query II rowsort label-2667
SELECT ALL COUNT ( * ) + + + COUNT ( * ) AS col2, COUNT ( * ) FROM tab0 cor0
----
6
3

query I rowsort
SELECT - col0 AS col1 FROM tab2 WHERE NULL <> - col1
----

query I rowsort
SELECT + col2 - + - col1 + - col1 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT col2 * - + col0 - - col1 + + 53 * - 10 AS col0 FROM tab2 AS cor0
----
-1537
-3013
-4813

query I rowsort
SELECT - 14 + 84 FROM tab0 AS cor0
----
70
70
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2672
SELECT ALL + CAST( ( - 12 ) AS SIGNED ) + col2 FROM tab1 AS cor0
----
47
56
84

skipif mysql # not compatible
query I rowsort label-2672
SELECT ALL + CAST ( ( - 12 ) AS INTEGER ) + col2 FROM tab1 AS cor0
----
47
56
84

query II rowsort
SELECT col1 + - col1, 10 AS col2 FROM tab0 AS cor0
----
0
10
0
10
0
10

query I rowsort
SELECT + 97 + + col0 AS col1 FROM tab0 WHERE ( col2 - + 79 + - ( col2 ) + 72 IS NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2675
SELECT ALL CAST( NULL AS DECIMAL ) * + 91 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2675
SELECT ALL CAST ( NULL AS REAL ) * + 91 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 - + + col1 AS col2 FROM tab2
----
-141
-142
-97

query II rowsort
SELECT DISTINCT col1 AS col1, - col1 AS col2 FROM tab1
----
14
-14
47
-47
5
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - 58 col0 FROM tab1
----
-2958
-4930
-5278

query I rowsort
SELECT - ( + + 76 ) + + + 8 + - col2 AS col0 FROM tab0 WHERE - col2 > NULL
----

query I rowsort
SELECT col2 * + 0 * col0 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2681
SELECT - CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE + col1 / + 87 NOT BETWEEN + - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-2681
SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE + col1 / + 87 NOT BETWEEN + - CAST ( NULL AS INTEGER ) AND NULL
----

query II rowsort
SELECT ALL - 61 AS col0, + col2 * 29 + + col0 FROM tab1
----
-61
1796
-61
2063
-61
2835

query I rowsort
SELECT col2 AS col0 FROM tab1 WHERE NOT col2 - - col1 >= - col0
----

query I rowsort
SELECT 31 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 * - 24, + 77 col1 FROM tab1
----
1128
77
120
77
336
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2686
SELECT ALL COUNT( * ) DIV 49 DIV + SUM( ( - - col1 ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2686
SELECT ALL COUNT ( * ) / 49 / + SUM ( ( - - col1 ) ) FROM tab0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 80 / - col1 + - col0 + - col1 / - col0 * - col0 * ( + ( + ( + + col2 ) ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2688
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT - CAST( NULL AS DECIMAL ) IN ( col1 ) )
----

skipif mysql # not compatible
query III rowsort label-2688
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT - CAST ( NULL AS REAL ) IN ( col1 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2689
SELECT 36 DIV col0 * - col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2689
SELECT 36 / col0 * - col2 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 + + 84 NOT BETWEEN - 44 - - - col1 AND - col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - 48 >= col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2692
SELECT ( + col1 ) DIV 12 FROM tab1
----
0
1
3

skipif mysql # not compatible
query I rowsort label-2692
SELECT ( + col1 ) / 12 FROM tab1
----
0
1
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2693
SELECT 93 / col2 * + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2693
SELECT 93 / col2 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2694
SELECT DISTINCT + COUNT( * ) * 87 FROM tab1
----
261

skipif mysql # not compatible
query I rowsort label-2694
SELECT DISTINCT + COUNT ( * ) * 87 FROM tab1
----
261

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2695
SELECT DISTINCT * FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) + - 9 IS NULL
----

skipif mysql # not compatible
query III rowsort label-2695
SELECT DISTINCT * FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) + - 9 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 42 col0 FROM tab0
----
1974
4158
420

onlyif mysql # DIV for integer division: 
query II rowsort label-2697
SELECT 67 AS col2, + 99 * - ( 36 ) - - ( + col0 ) DIV - col0 FROM tab0
----
67
-3565
67
-3565
67
-3565

skipif mysql # not compatible
query II rowsort label-2697
SELECT 67 AS col2, + 99 * - ( 36 ) - - ( + col0 ) / - col0 FROM tab0
----
67
-3565
67
-3565
67
-3565

onlyif mysql # aggregate syntax: 
query I rowsort label-2698
SELECT COUNT( * ) FROM tab1 WHERE + col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2698
SELECT COUNT ( * ) FROM tab1 WHERE + col1 IS NOT NULL
----
3

query I rowsort
SELECT ALL - 61 + + col0 AS col2 FROM tab2 AS cor0
----
-15
14
3

query II rowsort
SELECT + col2 + - col2 * + col2 AS col1, col1 FROM tab1 AS cor0
----
-3422
5
-4556
47
-9120
14

query I rowsort
SELECT + 21 + - col0 AS col2 FROM tab0
----
-66
-76
6

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NOT ( NOT NULL BETWEEN NULL AND NULL ) )
----

query I rowsort
SELECT + + 29 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

onlyif mysql # aggregate syntax: 
query I rowsort label-2704
SELECT ALL - 6 + - - COUNT( * ) AS col2 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2704
SELECT ALL - 6 + - - COUNT ( * ) AS col2 FROM tab0 cor0
----
-3

query I rowsort
SELECT ALL + col1 + - - col1 + - + ( - col2 ) * - col2 AS col1 FROM tab1 cor0
----
-3471
-4530
-9188

query II rowsort
SELECT - - 80 AS col0, - col2 - + 46 FROM tab2 AS cor0
----
80
-104
80
-69
80
-86

query I rowsort
SELECT DISTINCT - col2 - - - 41 + - - col1 AS col1 FROM tab1 AS cor0
----
-123
-62
-95

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NULL < col2
----

query I rowsort
SELECT - - col2 - - - col1 FROM tab0 AS cor0
----
-11
-34
98

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2710
SELECT - CAST( NULL AS DECIMAL ) - 13 + + 90 - - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2710
SELECT - CAST ( NULL AS REAL ) - 13 + + 90 - - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 6 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
6
6
6

onlyif mysql # DIV for integer division: 
query I rowsort label-2712
SELECT - ( 80 ) - + col2 DIV + 55 FROM tab0 AS cor0
----
-80
-80
-81

skipif mysql # not compatible
query I rowsort label-2712
SELECT - ( 80 ) - + col2 / + 55 FROM tab0 AS cor0
----
-80
-80
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - col0 - + 20 col0 FROM tab1
----
-43
-46
25

query I rowsort
SELECT col1 - col2 + + col0 + + col2 FROM tab1
----
138
65
90

query I rowsort
SELECT col2 - + 59 AS col0 FROM tab2
----
-1
-19
-36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * ( col0 ) col2 FROM tab0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query II rowsort label-2717
SELECT + + COUNT( * ) AS col1, MIN( - - 79 ) AS col1 FROM tab1 WHERE NOT NULL IS NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-2717
SELECT + + COUNT ( * ) AS col1, MIN ( - - 79 ) AS col1 FROM tab1 WHERE NOT NULL IS NULL
----
0
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 72 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( + ( - col1 ) ) AS col0 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2720
SELECT + SUM( ALL - + 48 ) AS col0 FROM tab0
----
-144

skipif mysql # not compatible
query I rowsort label-2720
SELECT + SUM ( ALL - + 48 ) AS col0 FROM tab0
----
-144

onlyif mysql # DIV for integer division: 
query II rowsort label-2721
SELECT + col2 AS col0, - col2 DIV + - col1 FROM tab1 AS cor0
----
59
11
68
1
96
6

skipif mysql # not compatible
query II rowsort label-2721
SELECT + col2 AS col0, - col2 / + - col1 FROM tab1 AS cor0
----
59
11
68
1
96
6

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 71 NOT IN ( 4 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + + col2 + - + 98 * - + 82 FROM tab2 AS cor0
----
8059
8076
8094

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2724
SELECT ALL - + CAST( + - 29 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
29
29
29

skipif mysql # not compatible
query I rowsort label-2724
SELECT ALL - + CAST ( + - 29 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
29
29
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2725
SELECT + - ( col2 ) FROM tab1 WHERE NOT + + CAST( + col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2725
SELECT + - ( col2 ) FROM tab1 WHERE NOT + + CAST ( + col1 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT - 64 AS col0 FROM tab2 WHERE ( col0 IS NULL )
----

query I rowsort
SELECT + 13 FROM tab1 WHERE ( NOT 49 IN ( - 29 ) )
----
13
13
13

query I rowsort
SELECT DISTINCT - col0 * + - 48 AS col1 FROM tab2
----
2208
3072
3600

onlyif mysql # aggregate syntax: 
query II rowsort label-2729
SELECT DISTINCT ( + COUNT( * ) ) AS col2, + 8 + - ( - 56 ) FROM tab1
----
3
64

skipif mysql # not compatible
query II rowsort label-2729
SELECT DISTINCT ( + COUNT ( * ) ) AS col2, + 8 + - ( - 56 ) FROM tab1
----
3
64

query I rowsort
SELECT - 30 + - + col0 FROM tab1
----
-115
-121
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-2731
SELECT col2 * 66 DIV + - col0 + col2 col0 FROM tab2
----
-1
-10
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2731
SELECT col2 * 66 / + - col0 + col2 col0 FROM tab2
----
-1
-10
7

query I rowsort
SELECT - col2 * col0 + col1 AS col2 FROM tab1
----
-4882
-5010
-6141

query I rowsort
SELECT 48 + - - col2 * + + 11 FROM tab0 cor0
----
1137
158
565

query I rowsort
SELECT DISTINCT col1 * - - col2 - - col2 FROM tab1 AS cor0
----
1440
3264
354

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + + col0 col1 FROM tab0
----
174
194
30

query I rowsort
SELECT col0 + + col1 * - - col0 * - + 32 FROM tab0 AS cor0
----
-3007
-38865
-58377

query I rowsort
SELECT 85 + - + ( - + col1 ) FROM tab1 AS cor0
----
132
90
99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 95 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2739
SELECT ALL - + col1 DIV + col1 + + 3 FROM tab1 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-2739
SELECT ALL - + col1 / + col1 + + 3 FROM tab1 AS cor0
----
2
2
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2740
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - 26 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2740
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - 26 AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2741
SELECT DISTINCT + COUNT( * ), 8 col1 FROM tab0 AS cor0
----
3
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2741
SELECT DISTINCT + COUNT ( * ), 8 col1 FROM tab0 AS cor0
----
3
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2742
SELECT + COUNT( * ) AS col2 FROM tab2 WHERE NOT + + 51 IN ( col1, - col2, col2 )
----
2

skipif mysql # not compatible
query I rowsort label-2742
SELECT + COUNT ( * ) AS col2 FROM tab2 WHERE NOT + + 51 IN ( col1, - col2, col2 )
----
2

query I rowsort
SELECT - 70 * - ( + ( + 82 ) ) AS col0 FROM tab1
----
5740
5740
5740

query II rowsort
SELECT ( + 62 ), + 23 AS col1 FROM tab0
----
62
23
62
23
62
23

query I rowsort
SELECT 72 FROM tab0 WHERE NOT NULL <= + 43
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 7 col0 FROM tab0 AS cor0
----
-7
-7
-7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 32 * - 37 = - + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 37 = NULL
----

query I rowsort
SELECT DISTINCT - col2 * - - 29 + + col1 FROM tab2 AS cor0
----
-1083
-1615
-616

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2750
SELECT ALL COUNT( DISTINCT + - 7 ) DIV - ( + + 67 ) * + 32 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2750
SELECT ALL COUNT ( DISTINCT + - 7 ) / - ( + + 67 ) * + 32 AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2751
SELECT ALL - CAST( NULL AS SIGNED ) + - 81 + - - CAST( NULL AS SIGNED ) - - 88 + COUNT( * ) + - SUM( - - 9 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2751
SELECT ALL - CAST ( NULL AS INTEGER ) + - 81 + - - CAST ( NULL AS INTEGER ) - - 88 + COUNT ( * ) + - SUM ( - - 9 ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2752
SELECT + - 29 DIV COUNT( * ) * - 44 AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
132

skipif mysql # not compatible
query I rowsort label-2752
SELECT + - 29 / COUNT ( * ) * - 44 AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
132

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2753
SELECT DISTINCT 5 AS col1 FROM tab0 WHERE - CAST( NULL AS DECIMAL ) * + - CAST( NULL AS DECIMAL ) BETWEEN col2 AND ( col2 )
----

skipif mysql # not compatible
query I rowsort label-2753
SELECT DISTINCT 5 AS col1 FROM tab0 WHERE - CAST ( NULL AS REAL ) * + - CAST ( NULL AS REAL ) BETWEEN col2 AND ( col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2754
SELECT DISTINCT - col0 DIV + col1 FROM tab1 cor0
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-2754
SELECT DISTINCT - col0 / + col1 FROM tab1 cor0
----
-1
-17
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2755
SELECT ALL 43 + - col2 * CAST( NULL AS SIGNED ) * - col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2755
SELECT ALL 43 + - col2 * CAST ( NULL AS INTEGER ) * - col2 FROM tab1 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + - 89 + 81, col1 FROM tab0 AS cor0
----
-8
1
-8
21
-8
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2757
SELECT ALL + + ( 44 ) + - SUM( - col0 ) AS col1 FROM tab0 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-2757
SELECT ALL + + ( 44 ) + - SUM ( - col0 ) AS col1 FROM tab0 AS cor0
----
243

query I rowsort
SELECT + + col0 + - 2 AS col1 FROM tab2 AS cor0
----
44
62
73

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 78 * - col2 + - 90 / + - ( + col1 ) IS NULL
----

query I rowsort
SELECT - 29 * + ( + 69 ) + col2 - col2 AS col1 FROM tab1 AS cor0
----
-2001
-2001
-2001

onlyif mysql # DIV for integer division: 
query I rowsort label-2761
SELECT - 40 DIV + - col0 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2761
SELECT - 40 / + - col0 AS col1 FROM tab1
----
0
0
0

query II rowsort
SELECT col0 * - col1 * - col0, + 55 * col0 AS col1 FROM tab2
----
107916
2530
315392
3520
376875
4125

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2763
SELECT ALL - 3 DIV + COUNT( + col1 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-2763
SELECT ALL - 3 / + COUNT ( + col1 ) FROM tab0
----
-1

query I rowsort
SELECT ALL col1 / col0 AS col1 FROM tab1 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - 85 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 12 + - 47 col0 FROM tab1 cor0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2767
SELECT ALL - + 73 * - COUNT( * ) + + COUNT( * ) FROM tab1 AS cor0
----
222

skipif mysql # not compatible
query I rowsort label-2767
SELECT ALL - + 73 * - COUNT ( * ) + + COUNT ( * ) FROM tab1 AS cor0
----
222

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - + 95 * col2 col0 FROM tab0 AS cor0
----
-4450
-863
-9308

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2769
SELECT + col1 * + ( col1 ) + + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2769
SELECT + col1 * + ( col1 ) + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 39 * - 30 AS col2, 89 * + - 40 col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to a0b728d74fad06ff24ded639fa8c49ea

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 70 + + 75 col2 FROM tab0
----
145
145
145

query I rowsort
SELECT - 62 * + 70 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 2ae3ba44837377c213a27e05e321c076

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 53 - - + 34 BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col2 * + 64 * - col2 AS col1 FROM tab0 AS cor0
----
141376
627264
6400

query I rowsort
SELECT - - ( + + 86 ) AS col0 FROM tab1 AS cor0
----
86
86
86

onlyif mysql # DIV for integer division: 
query I rowsort label-2776
SELECT - + 4 DIV + col2 AS col1 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2776
SELECT - + 4 / + col2 AS col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 85 - ( - col2 ) AS col2 FROM tab2 WHERE NULL = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) <= 66
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 51 = NULL
----

query I rowsort
SELECT ALL + - 4 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND + - 68 - col2 + + 25
----

query I rowsort
SELECT DISTINCT + 99 * - col0 FROM tab0 AS cor0
----
-1485
-8613
-9603

query I rowsort
SELECT - 73 * col2 AS col2 FROM tab1 AS cor0
----
-4307
-4964
-7008

query II rowsort
SELECT ALL col1, col1 * + col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
51
1173
67
3886
77
3080

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2784
SELECT * FROM tab1 WHERE NOT ( CAST( ( + + col0 ) AS SIGNED ) ) <> - col2
----

skipif mysql # not compatible
query III rowsort label-2784
SELECT * FROM tab1 WHERE NOT ( CAST ( ( + + col0 ) AS INTEGER ) ) <> - col2
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - 15 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2786
SELECT CAST( + col0 AS SIGNED ) * col2 FROM tab0
----
705
870
9603

skipif mysql # not compatible
query I rowsort label-2786
SELECT CAST ( + col0 AS INTEGER ) * col2 FROM tab0
----
705
870
9603

onlyif mysql # DIV for integer division: 
query I rowsort label-2787
SELECT DISTINCT + col1 * 53 + - ( - 61 ) DIV + col1 AS col1 FROM tab0 AS cor0
----
1115
114
4293

skipif mysql # not compatible
query I rowsort label-2787
SELECT DISTINCT + col1 * 53 + - ( - 61 ) / + col1 AS col1 FROM tab0 AS cor0
----
1115
114
4293

query I rowsort
SELECT DISTINCT col0 * - 86 FROM tab2 AS cor0 WHERE ( NULL IS NULL )
----
-3956
-5504
-6450

query I rowsort
SELECT ALL ( - + 18 ) + - col0 AS col2 FROM tab2 AS cor0
----
-64
-82
-93

query I rowsort
SELECT ALL - + col0 + + + col0 AS col1 FROM tab0 AS cor0
----
0
0
0

query II rowsort
SELECT + - col1 AS col2, ( col1 ) FROM tab1 cor0
----
-14
14
-47
47
-5
5

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2792
SELECT - CAST( NULL AS DECIMAL ) col2, 74 * - col0 * - + ( + + col2 ) AS col2 FROM tab2 AS cor0
----
NULL
189440
NULL
321900
NULL
78292

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2792
SELECT - CAST ( NULL AS REAL ) col2, 74 * - col0 * - + ( + + col2 ) AS col2 FROM tab2 AS cor0
----
NULL
189440
NULL
321900
NULL
78292

onlyif mysql # aggregate syntax: 
query III rowsort label-2793
SELECT DISTINCT + 68, - COUNT( ALL - 93 ) * + 99 AS col2, - + MIN( ALL col2 ) col0 FROM tab0 AS cor0
----
68
-297
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-2793
SELECT DISTINCT + 68, - COUNT ( ALL - 93 ) * + 99 AS col2, - + MIN ( ALL col2 ) col0 FROM tab0 AS cor0
----
68
-297
-10

query I rowsort
SELECT + ( + 53 ) AS col2 FROM tab0 WHERE NULL IS NULL
----
53
53
53

query III rowsort
SELECT * FROM tab0 WHERE + - 15 * - col1 * col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + + col1 col0 FROM tab2
----
0

query I rowsort
SELECT 55 + - ( - col0 ) + + col2 FROM tab1
----
199
202
214

onlyif mysql # DIV for integer division: 
query I rowsort label-2798
SELECT + col2 DIV - col2 + ( - col1 ) + - col0 FROM tab2
----
-142
-143
-98

skipif mysql # not compatible
query I rowsort label-2798
SELECT + col2 / - col2 + ( - col1 ) + - col0 FROM tab2
----
-142
-143
-98

query I rowsort
SELECT 62 + + + col1 FROM tab2
----
113
129
139

onlyif mysql # aggregate syntax: 
query I rowsort label-2800
SELECT SUM( + ( col2 ) ) * + COUNT( * ) AS col1 FROM tab0 AS cor0
----
468

skipif mysql # not compatible
query I rowsort label-2800
SELECT SUM ( + ( col2 ) ) * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
468

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2801
SELECT DISTINCT 33 * - + CAST( 69 AS SIGNED ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-2277

skipif mysql # not compatible
query I rowsort label-2801
SELECT DISTINCT 33 * - + CAST ( 69 AS INTEGER ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-2277

query IIIIII rowsort
SELECT ALL * FROM ( tab2 cor0 CROSS JOIN tab2 AS cor1 ) WHERE NULL IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( col0 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 41 col1 FROM tab0 cor0
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2805
SELECT + + col1 * + 58 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2805
SELECT + + col1 * + 58 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2806
SELECT + 6 DIV + 26 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2806
SELECT + 6 / + 26 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
15
87
97

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL >= ( + 22 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 0 / - - 99 + + 81 * AVG ( - + col0 ), + 87 col0 FROM tab1 WHERE NULL <> NULL
----
NULL
87

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) >= - ( - - 30 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2811
SELECT - 47 * - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-2811
SELECT - 47 * - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
141

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 * 29 col1, + 89 FROM tab2 AS cor0
----
1160
89
1682
89
667
89

query I rowsort
SELECT ALL - 36 + col1 AS col0 FROM tab1 AS cor0
----
-22
-31
11

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2814
SELECT * FROM tab1 AS cor0 WHERE ( + 41 * - col0 * - CAST( + - col0 AS SIGNED ) ) NOT BETWEEN - ( + col0 ) AND + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2814
SELECT * FROM tab1 AS cor0 WHERE ( + 41 * - col0 * - CAST ( + - col0 AS INTEGER ) ) NOT BETWEEN - ( + col0 ) AND + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col2 + + col1 * + - col0 AS col1 FROM tab0 AS cor0
----
-1262
-1837
-196

query I rowsort
SELECT ALL - ( - col2 ) + + 70 + + col1 AS col1 FROM tab2 AS cor0
----
144
187
195

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2817
SELECT - CAST( NULL AS DECIMAL ) * + 71 - SUM( - - col0 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2817
SELECT - CAST ( NULL AS REAL ) * + 71 - SUM ( - - col0 ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2818
SELECT ALL - - CAST( + - COUNT( * ) AS SIGNED ) - + - SUM( ALL - 52 ) AS col1 FROM tab1 AS cor0
----
-159

skipif mysql # not compatible
query I rowsort label-2818
SELECT ALL - - CAST ( + - COUNT ( * ) AS INTEGER ) - + - SUM ( ALL - 52 ) AS col1 FROM tab1 AS cor0
----
-159

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN 36 / + col0 - - col2 - 74 * 8 AND ( ( 59 ) )
----
15
81
47
87
21
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + col1 col2 FROM tab1 AS cor0
----
-37
-44
-80

query I rowsort
SELECT ALL - 26 - - + col0 FROM tab0
----
-11
61
71

query I rowsort
SELECT col1 * - 69 * + col0 + + - 1 FROM tab0 AS cor0
----
-126064
-6694
-83836

query I rowsort
SELECT + col1 + - col1 * - col1 FROM tab2 AS cor0
----
2652
4556
6006

query I rowsort
SELECT DISTINCT col2 - + - 91 FROM tab2 AS cor0
----
114
131
149

onlyif mysql # DIV for integer division: 
query I rowsort label-2825
SELECT DISTINCT col1 DIV + - col2 AS col2 FROM tab2
----
-1
-2

skipif mysql # not compatible
query I rowsort label-2825
SELECT DISTINCT col1 / + - col2 AS col2 FROM tab2
----
-1
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2826
SELECT DISTINCT + col2 * + 38 * + ( + + col0 ) * CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2826
SELECT DISTINCT + col2 * + 38 * + ( + + col0 ) * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2827
SELECT DISTINCT + - 40 * 9 DIV col0 * + + col2 AS col0 FROM tab1 AS cor0
----
-204
-236
-672

skipif mysql # not compatible
query I rowsort label-2827
SELECT DISTINCT + - 40 * 9 / col0 * + + col2 AS col0 FROM tab1 AS cor0
----
-204
-236
-672

query I rowsort
SELECT ALL - + col2 AS col2 FROM tab2 AS cor0 WHERE NOT 28 NOT BETWEEN NULL AND col2 * - col0 + + col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + 10 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2830
SELECT CAST( - col0 AS SIGNED ) * - - CAST( NULL AS SIGNED ) + 85 + 88 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2830
SELECT CAST ( - col0 AS INTEGER ) * - - CAST ( NULL AS INTEGER ) + 85 + 88 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2831
SELECT - - ( - + ( col2 ) ) / col1 / col0 * - + CAST( NULL AS DECIMAL ) + + - col2 AS col1, col0 FROM tab0 cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-2831
SELECT - - ( - + ( col2 ) ) / col1 / col0 * - + CAST ( NULL AS REAL ) + + - col2 AS col1, col0 FROM tab0 cor0
----
NULL
15
NULL
87
NULL
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2832
SELECT + ( ( + + COUNT( * ) ) ) * COUNT( * ) AS col2 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2832
SELECT + ( ( + + COUNT ( * ) ) ) * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2833
SELECT + 69 * COUNT( ALL - - col0 ) AS col2 FROM tab1 cor0
----
207

skipif mysql # not compatible
query I rowsort label-2833
SELECT + 69 * COUNT ( ALL - - col0 ) AS col2 FROM tab1 cor0
----
207

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 BETWEEN - col1 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 39 BETWEEN NULL AND - col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - - col2 <> 48
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2837
SELECT + 55 + - ( + COUNT( * ) ) AS col0 FROM tab2 cor0
----
52

skipif mysql # not compatible
query I rowsort label-2837
SELECT + 55 + - ( + COUNT ( * ) ) AS col0 FROM tab2 cor0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2838
SELECT DISTINCT - 40 * SUM( + 59 ) AS col2 FROM tab2 AS cor0
----
-7080

skipif mysql # not compatible
query I rowsort label-2838
SELECT DISTINCT - 40 * SUM ( + 59 ) AS col2 FROM tab2 AS cor0
----
-7080

onlyif mysql # aggregate syntax: 
query I rowsort label-2839
SELECT ALL - + MIN( col0 ) FROM tab1 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2839
SELECT ALL - + MIN ( col0 ) FROM tab1 cor0
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-2840
SELECT ALL + col2 * col0 + col0 DIV col0 FROM tab2 AS cor0
----
1059
2561
4351

skipif mysql # not compatible
query I rowsort label-2840
SELECT ALL + col2 * col0 + col0 / col0 FROM tab2 AS cor0
----
1059
2561
4351

onlyif mysql # DIV for integer division: 
query I rowsort label-2841
SELECT + - col0 DIV - - col1 AS col0 FROM tab0 AS cor0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-2841
SELECT + - col0 / - - col1 AS col0 FROM tab0 AS cor0
----
-4
-97
0

query II rowsort
SELECT DISTINCT + - col0 + - 22 AS col2, + col1 * 89 FROM tab2 AS cor0
----
-68
4539
-86
6853
-97
5963

query II rowsort
SELECT + 71 - - 15 AS col2, 66 * - col1 AS col2 FROM tab2 AS cor0
----
86
-3366
86
-4422
86
-5082

onlyif mysql # aggregate syntax: 
query I rowsort label-2844
SELECT DISTINCT 66 - - - COUNT( * ) col0 FROM tab2 cor0
----
63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2844
SELECT DISTINCT 66 - - - COUNT ( * ) col0 FROM tab2 cor0
----
63

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <= 58
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2846
SELECT COUNT( * ) + - SUM( - col1 ) + COUNT( * ) * + + MIN( DISTINCT col1 ) col1 FROM tab1
----
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2846
SELECT COUNT ( * ) + - SUM ( - col1 ) + COUNT ( * ) * + + MIN ( DISTINCT col1 ) col1 FROM tab1
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2847
SELECT DISTINCT 33 + + COUNT( * ) / + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2847
SELECT DISTINCT 33 + + COUNT ( * ) / + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + - 43 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL col2 + + - col1 + col2 FROM tab2 AS cor0
----
-5
3
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2850
SELECT + CAST( + 7 AS SIGNED ) * + + 86 * - 72 FROM tab1 AS cor0 WHERE NOT ( NULL ) < + ( col1 )
----

skipif mysql # not compatible
query I rowsort label-2850
SELECT + CAST ( + 7 AS INTEGER ) * + + 86 * - 72 FROM tab1 AS cor0 WHERE NOT ( NULL ) < + ( col1 )
----

query II rowsort
SELECT col0 AS col2, col2 - - + 12 AS col0 FROM tab0
----
15
59
87
22
97
111

query I rowsort
SELECT ALL - 54 * - ( - 74 ) FROM tab2
----
-3996
-3996
-3996

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2853
SELECT DISTINCT - CAST( NULL AS DECIMAL ) AS col1, col1 AS col2 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-2853
SELECT DISTINCT - CAST ( NULL AS REAL ) AS col1, col1 AS col2 FROM tab2
----
NULL
51
NULL
67
NULL
77

query I rowsort
SELECT - col2 * + - col1 AS col2 FROM tab1 AS cor0
----
1344
295
3196

query I rowsort
SELECT DISTINCT - ( - col1 ) * col2 + + - col0 FROM tab0 AS cor0
----
123
2
3792

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 * + col2 <= NULL
----

query I rowsort
SELECT - - 12 * + 11 FROM tab1 AS cor0
----
132
132
132

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <= - - ( - + 38 )
----

query II rowsort
SELECT ALL - - col1, + col2 AS col0 FROM tab2 cor0
----
51
23
67
58
77
40

onlyif mysql # aggregate syntax: 
query II rowsort label-2860
SELECT ALL COUNT( * ) * - 80 AS col0, 34 col0 FROM tab1 AS cor0
----
-240
34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2860
SELECT ALL COUNT ( * ) * - 80 AS col0, 34 col0 FROM tab1 AS cor0
----
-240
34

query I rowsort
SELECT DISTINCT - - col1 * 88 * - col2 FROM tab1 AS cor0
----
-118272
-25960
-281248

onlyif mysql # DIV for integer division: 
query I rowsort label-2862
SELECT DISTINCT + col1 DIV - 16 - - + col2 FROM tab0 AS cor0
----
42
9
99

skipif mysql # not compatible
query I rowsort label-2862
SELECT DISTINCT + col1 / - 16 - - + col2 FROM tab0 AS cor0
----
42
9
99

query I rowsort
SELECT ALL col1 * col2 * + col0 FROM tab0
----
18270
57105
9603

onlyif mysql # DIV for integer division: 
query I rowsort label-2864
SELECT DISTINCT - col0 DIV + 66 AS col1 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-2864
SELECT DISTINCT - col0 / + 66 AS col1 FROM tab2
----
-1
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 23 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ( - + col2 ) AS col2 FROM tab0 WHERE NOT + 69 * 92 + - col2 IS NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2867
SELECT ALL 36 DIV - - COUNT( * ) AS col0 FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-2867
SELECT ALL 36 / - - COUNT ( * ) AS col0 FROM tab2
----
12

query II rowsort
SELECT DISTINCT - col2 + + 25, col1 * - - col0 AS col1 FROM tab0
----
-22
1215
-74
97
15
1827

onlyif mysql # aggregate syntax: 
query I rowsort label-2869
SELECT COUNT( ALL + ( col2 ) ) col1 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2869
SELECT COUNT ( ALL + ( col2 ) ) col1 FROM tab1
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) IN ( 49 * - col2 * 62, col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2871
SELECT col2 + + + col1 DIV - 22 AS col1 FROM tab0
----
10
44
99

skipif mysql # not compatible
query I rowsort label-2871
SELECT col2 + + + col1 / - 22 AS col1 FROM tab0
----
10
44
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2872
SELECT ( COUNT( * ) ) + + COUNT( * ) AS col1 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-2872
SELECT ( COUNT ( * ) ) + + COUNT ( * ) AS col1 FROM tab2
----
6

query I rowsort
SELECT ALL - - ( + 72 ) + col2 FROM tab1 AS cor0
----
131
140
168

query I rowsort
SELECT ALL + 45 FROM tab1 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
45
45
45

query I rowsort
SELECT DISTINCT - col0 * - + 18 + col0 FROM tab2 AS cor0
----
1216
1425
874

onlyif mysql # aggregate syntax: 
query I rowsort label-2876
SELECT DISTINCT - COUNT( * ) - - 7 * - COUNT( * ) col0 FROM tab0 AS cor0
----
-24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2876
SELECT DISTINCT - COUNT ( * ) - - 7 * - COUNT ( * ) col0 FROM tab0 AS cor0
----
-24

query II rowsort
SELECT - 3 AS col1, + 44 + - - col2 FROM tab1 AS cor0
----
-3
103
-3
112
-3
140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2878
SELECT ALL - - 10 / - 79 + - CAST( NULL AS SIGNED ) + 38 * + 44 AS col0 FROM tab0 AS cor0 WHERE ( NOT - col1 NOT BETWEEN NULL AND NULL )
----

skipif mysql # not compatible
query I rowsort label-2878
SELECT ALL - - 10 / - 79 + - CAST ( NULL AS INTEGER ) + 38 * + 44 AS col0 FROM tab0 AS cor0 WHERE ( NOT - col1 NOT BETWEEN NULL AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2879
SELECT + + SUM( + col0 ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-2879
SELECT + + SUM ( + col0 ) FROM tab0 AS cor0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-2880
SELECT ALL 39 - + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-2880
SELECT ALL 39 - + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-2881
SELECT ALL SUM( ALL - - ( + + col2 ) ) col1 FROM tab1 WHERE NOT 45 > col1 + - 37
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2881
SELECT ALL SUM ( ALL - - ( + + col2 ) ) col1 FROM tab1 WHERE NOT 45 > col1 + - 37
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2882
SELECT ALL MIN( ALL + 79 ) FROM tab0
----
79

skipif mysql # not compatible
query I rowsort label-2882
SELECT ALL MIN ( ALL + 79 ) FROM tab0
----
79

onlyif mysql # DIV for integer division: 
query II rowsort label-2883
SELECT ALL - col1 DIV ( col1 ) - - col2 AS col2, - col0 AS col2 FROM tab0
----
46
-15
9
-87
98
-97

skipif mysql # not compatible
query II rowsort label-2883
SELECT ALL - col1 / ( col1 ) - - col2 AS col2, - col0 AS col2 FROM tab0
----
46
-15
9
-87
98
-97

query I rowsort
SELECT + 19 * col1 AS col0 FROM tab2 AS cor0
----
1273
1463
969

onlyif mysql # aggregate syntax: 
query I rowsort label-2885
SELECT DISTINCT COUNT( * ) * + - COUNT( * ) + COUNT( * ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-2885
SELECT DISTINCT COUNT ( * ) * + - COUNT ( * ) + COUNT ( * ) FROM tab2 AS cor0
----
-6

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 BETWEEN col2 AND - 92
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2887
SELECT ALL - COUNT( * ) * - 23 AS col2 FROM tab1 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-2887
SELECT ALL - COUNT ( * ) * - 23 AS col2 FROM tab1 AS cor0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2888
SELECT + + 0 * + COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2888
SELECT + + 0 * + COUNT ( * ) FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2889
SELECT col0 DIV col0 AS col0 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2889
SELECT col0 / col0 AS col0 FROM tab1 cor0
----
1
1
1

query I rowsort
SELECT DISTINCT + col1 * - + col2 FROM tab0 AS cor0
----
-210
-3807
-99

query I rowsort
SELECT + 30 * + + ( - col2 ) AS col1 FROM tab0 AS cor0
----
-1410
-2970
-300

query I rowsort
SELECT - + ( col2 ) * - 4 FROM tab1 AS cor0
----
236
272
384

query I rowsort
SELECT ALL col1 * + + ( 69 ) AS col1 FROM tab2 AS cor0
----
3519
4623
5313

onlyif mysql # aggregate syntax: 
query II rowsort label-2894
SELECT ALL COUNT( * ) AS col2, 24 FROM tab1
----
3
24

skipif mysql # not compatible
query II rowsort label-2894
SELECT ALL COUNT ( * ) AS col2, 24 FROM tab1
----
3
24

query I rowsort
SELECT + col2 + - 79 AS col1 FROM tab2
----
-21
-39
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-2896
SELECT DISTINCT 71 + COUNT( * ) + 45 AS col1 FROM tab1 AS cor0
----
119

skipif mysql # not compatible
query I rowsort label-2896
SELECT DISTINCT 71 + COUNT ( * ) + 45 AS col1 FROM tab1 AS cor0
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-2897
SELECT ALL + COUNT( * ) + + - MIN( - col2 ) * 90 AS col1 FROM tab1 AS cor0
----
8643

skipif mysql # not compatible
query I rowsort label-2897
SELECT ALL + COUNT ( * ) + + - MIN ( - col2 ) * 90 AS col1 FROM tab1 AS cor0
----
8643

onlyif mysql # aggregate syntax: 
query I rowsort label-2898
SELECT SUM( DISTINCT - + col0 ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-2898
SELECT SUM ( DISTINCT - + col0 ) FROM tab2 AS cor0
----
-185

query I rowsort
SELECT ALL - col0 + - - 14 FROM tab0 AS cor0
----
-1
-73
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-2900
SELECT 83 * 7 * - MIN( col1 ) AS col2 FROM tab2
----
-29631

skipif mysql # not compatible
query I rowsort label-2900
SELECT 83 * 7 * - MIN ( col1 ) AS col2 FROM tab2
----
-29631

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - 87 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2902
SELECT + COUNT( * ) * + - 96, COUNT( * ) AS col2 FROM tab1
----
-288
3

skipif mysql # not compatible
query II rowsort label-2902
SELECT + COUNT ( * ) * + - 96, COUNT ( * ) AS col2 FROM tab1
----
-288
3

query I rowsort
SELECT 32 - + col1 AS col1 FROM tab0
----
-49
11
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2904
SELECT - COUNT( 67 ) + COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2904
SELECT - COUNT ( 67 ) + COUNT ( * ) FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2905
SELECT ALL CAST( + col0 AS SIGNED ) + + col0 FROM tab0 AS cor0
----
174
194
30

skipif mysql # not compatible
query I rowsort label-2905
SELECT ALL CAST ( + col0 AS INTEGER ) + + col0 FROM tab0 AS cor0
----
174
194
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2906
SELECT + COUNT( * ) * 84 * + + COUNT( * ) FROM tab1, tab2 AS cor0
----
6804

skipif mysql # not compatible
query I rowsort label-2906
SELECT + COUNT ( * ) * 84 * + + COUNT ( * ) FROM tab1, tab2 AS cor0
----
6804

onlyif mysql # aggregate syntax: 
query I rowsort label-2907
SELECT - SUM( - 96 ) FROM tab1
----
288

skipif mysql # not compatible
query I rowsort label-2907
SELECT - SUM ( - 96 ) FROM tab1
----
288

query III rowsort
SELECT * FROM tab1 WHERE + 68 + + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( 0 ) FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2910
SELECT ALL COUNT( * ), COUNT( + + col2 ) FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-2910
SELECT ALL COUNT ( * ), COUNT ( + + col2 ) FROM tab0
----
3
3

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN + 22 AND + col1 * + col1 + + - col0 + - - 57
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 25 * + + 58 + - - col0 * col1 + 9 + - ( - - 96 ) + - col2 col0 FROM tab0 AS cor0
----
1361
2531
3180

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 60 BETWEEN - col0 * + + col1 AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * 92 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2915
SELECT - MAX( + 72 ) AS col2 FROM tab0 cor0
----
-72

skipif mysql # not compatible
query I rowsort label-2915
SELECT - MAX ( + 72 ) AS col2 FROM tab0 cor0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-2916
SELECT + COUNT( * ) FROM tab2 WHERE NOT ( NULL ) <= col1 * 95
----
0

skipif mysql # not compatible
query I rowsort label-2916
SELECT + COUNT ( * ) FROM tab2 WHERE NOT ( NULL ) <= col1 * 95
----
0

query III rowsort
SELECT * FROM tab0 WHERE + ( - col0 ) * - col1 < 44 + col0
----
97
1
99

query I rowsort
SELECT - col0 FROM tab0 WHERE ( NULL ) < NULL
----

query I rowsort
SELECT - col0 * 23 + + 20 FROM tab2
----
-1038
-1452
-1705

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2921
SELECT SUM( ALL col0 ) AS col1 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-2921
SELECT SUM ( ALL col0 ) AS col1 FROM tab1
----
227

query I rowsort
SELECT col0 + + ( 9 ) AS col1 FROM tab1
----
100
60
94

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col1 ) <= ( + col2 * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2924
SELECT ALL + ( MIN( - col1 ) ) AS col1 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-2924
SELECT ALL + ( MIN ( - col1 ) ) AS col1 FROM tab1
----
-47

query I rowsort
SELECT + 89 + col1 AS col0 FROM tab2
----
140
156
166

query I rowsort
SELECT - 20 AS col0 FROM tab2 WHERE + ( ( + 38 ) ) NOT BETWEEN NULL AND col0
----

query I rowsort
SELECT + col0 * 74 FROM tab2
----
3404
4736
5550

query I rowsort
SELECT col0 AS col1 FROM tab2 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2929
SELECT DISTINCT ( - 65 ) * COUNT( - col0 ) + 78 FROM tab1 WHERE ( col1 + + 44 ) <> NULL
----
78

skipif mysql # not compatible
query I rowsort label-2929
SELECT DISTINCT ( - 65 ) * COUNT ( - col0 ) + 78 FROM tab1 WHERE ( col1 + + 44 ) <> NULL
----
78

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN NULL AND ( - col2 )
----

query I rowsort
SELECT - ( + ( col1 ) ) AS col2 FROM tab2
----
-51
-67
-77

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT IN ( 22 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2933
SELECT DISTINCT + 85 col1 FROM tab0 WHERE NOT + 15 * + CAST( NULL AS SIGNED ) - 9 IN ( col2 / - col0 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2933
SELECT DISTINCT + 85 col1 FROM tab0 WHERE NOT + 15 * + CAST ( NULL AS INTEGER ) - 9 IN ( col2 / - col0 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - 41 * 12 ) IS NOT NULL
----

query I rowsort
SELECT ALL 69 * - 18 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-1242
-1242
-1242

onlyif mysql # DIV for integer division: 
query I rowsort label-2936
SELECT col0 - col0 DIV - col2 AS col2 FROM tab1
----
51
86
92

skipif mysql # not compatible
query I rowsort label-2936
SELECT col0 - col0 / - col2 AS col2 FROM tab1
----
51
86
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2937
SELECT DISTINCT + COUNT( - col0 ) + + COUNT( ALL - col0 ) AS col1 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2937
SELECT DISTINCT + COUNT ( - col0 ) + + COUNT ( ALL - col0 ) AS col1 FROM tab0 AS cor0
----
6

query I rowsort
SELECT DISTINCT + 52 + - col1 * col2 FROM tab2 AS cor0
----
-1121
-3028
-3834

query I rowsort
SELECT col0 + col1 * - 94 FROM tab2 AS cor0
----
-4748
-6223
-7174

onlyif mysql # DIV for integer division: 
query I rowsort label-2940
SELECT DISTINCT col2 DIV + 25 FROM tab2 AS cor0 WHERE ( - col2 ) IS NOT NULL
----
0
1
2

skipif mysql # not compatible
query I rowsort label-2940
SELECT DISTINCT col2 / + 25 FROM tab2 AS cor0 WHERE ( - col2 ) IS NOT NULL
----
0
1
2

onlyif mysql # DIV for integer division: 
query I rowsort label-2941
SELECT + col1 * 40 + + col0 DIV 1 col0 FROM tab0
----
137
3255
927

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2941
SELECT + col1 * 40 + + col0 / 1 col0 FROM tab0
----
137
3255
927

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2942
SELECT ( - MAX( ALL col2 ) ) + 69 DIV MAX( CAST( col1 AS SIGNED ) ) FROM tab1
----
-95

skipif mysql # not compatible
query I rowsort label-2942
SELECT ( - MAX ( ALL col2 ) ) + 69 / MAX ( CAST ( col1 AS INTEGER ) ) FROM tab1
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-2943
SELECT DISTINCT + COUNT( col2 ) FROM tab2 WHERE NOT col0 + 0 IN ( 38 )
----
3

skipif mysql # not compatible
query I rowsort label-2943
SELECT DISTINCT + COUNT ( col2 ) FROM tab2 WHERE NOT col0 + 0 IN ( 38 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2944
SELECT DISTINCT SUM( - 53 ) FROM tab2 AS cor0 CROSS JOIN tab2
----
-477

skipif mysql # not compatible
query I rowsort label-2944
SELECT DISTINCT SUM ( - 53 ) FROM tab2 AS cor0 CROSS JOIN tab2
----
-477

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 9 * 94 col1 FROM tab2 AS cor0
----
846

onlyif mysql # aggregate syntax: 
query I rowsort label-2946
SELECT + SUM( 28 ) AS col0 FROM tab1 cor0
----
84

skipif mysql # not compatible
query I rowsort label-2946
SELECT + SUM ( 28 ) AS col0 FROM tab1 cor0
----
84

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( + col1 / col2 ) AND ( + ( - col2 ) * + col0 )
----

query I rowsort
SELECT col1 * 95 - + col0 AS col0 FROM tab1 AS cor0
----
1279
390
4374

query I rowsort
SELECT DISTINCT - 98 * - 18 + - 78 FROM tab1 AS cor0
----
1686

onlyif mysql # aggregate syntax: 
query I rowsort label-2950
SELECT + + MIN( col1 ) - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-2950
SELECT + + MIN ( col1 ) - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
54

query I rowsort
SELECT - - 14 - col0 FROM tab0 AS cor0
----
-1
-73
-83

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2952
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( + col0 - col0 * ( + CAST( + col0 AS SIGNED ) ) ) AND - 57 / - 96 + col2 / + 19
----

skipif mysql # not compatible
query III rowsort label-2952
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( + col0 - col0 * ( + CAST ( + col0 AS INTEGER ) ) ) AND - 57 / - 96 + col2 / + 19
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2953
SELECT DISTINCT + SUM( DISTINCT + col2 ) col2 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2953
SELECT DISTINCT + SUM ( DISTINCT + col2 ) col2 FROM tab2 AS cor0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-2954
SELECT DISTINCT + MAX( DISTINCT 15 ) AS col2 FROM tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-2954
SELECT DISTINCT + MAX ( DISTINCT 15 ) AS col2 FROM tab1 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2955
SELECT DISTINCT - ( COUNT( * ) ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( + col2 * - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-2955
SELECT DISTINCT - ( COUNT ( * ) ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( + col2 * - col2 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2956
SELECT DISTINCT + MAX( + 53 ) AS col0 FROM tab1
----
53

skipif mysql # not compatible
query I rowsort label-2956
SELECT DISTINCT + MAX ( + 53 ) AS col0 FROM tab1
----
53

query I rowsort
SELECT DISTINCT - 47 * + 30 AS col0 FROM tab1
----
-1410

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2958
SELECT DISTINCT COUNT( * ) / ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 WHERE - col1 * 34 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2958
SELECT DISTINCT COUNT ( * ) / ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 WHERE - col1 * 34 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2959
SELECT DISTINCT ( COUNT( * ) ) AS col0 FROM tab2 WHERE NOT + 81 >= ( col2 )
----
0

skipif mysql # not compatible
query I rowsort label-2959
SELECT DISTINCT ( COUNT ( * ) ) AS col0 FROM tab2 WHERE NOT + 81 >= ( col2 )
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 76 IN ( 2 * + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2961
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN CAST( - col0 AS SIGNED ) AND 47 + 61
----

skipif mysql # not compatible
query III rowsort label-2961
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN CAST ( - col0 AS INTEGER ) AND 47 + 61
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 BETWEEN 61 AND - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 11 AS col1 FROM tab1 cor0
----
11
11
11

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT col0 * + col0 <= NULL
----

query I rowsort
SELECT 61 * 1 * col1 AS col0 FROM tab2 AS cor0
----
3111
4087
4697

query I rowsort
SELECT col1 * - + 12 FROM tab0 AS cor0
----
-12
-252
-972

query I rowsort
SELECT - - ( - - 20 ) FROM tab2 cor0
----
20
20
20

query I rowsort
SELECT DISTINCT col2 * col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
1173
3080
3886

query I rowsort
SELECT - col1 FROM tab0 WHERE NOT ( - col2 + col0 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT + 55 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( ( + col0 ) * - 41 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col2 col2, col2 AS col0 FROM tab2 AS cor0
----
23
23
40
40
58
58

onlyif mysql # DIV for integer division: 
query II rowsort label-2973
SELECT - col1 AS col2, + col1 DIV + + col1 AS col0 FROM tab2 AS cor0
----
-51
1
-67
1
-77
1

skipif mysql # not compatible
query II rowsort label-2973
SELECT - col1 AS col2, + col1 / + + col1 AS col0 FROM tab2 AS cor0
----
-51
1
-67
1
-77
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2974
SELECT DISTINCT + COUNT( * ) + + - COUNT( * ) + - COUNT( * ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2974
SELECT DISTINCT + COUNT ( * ) + + - COUNT ( * ) + - COUNT ( * ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL - col2 + - + 80 AS col1 FROM tab0 cor0
----
-127
-179
-90

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col2 * - 81 AND - 40
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2977
SELECT - MAX( ALL - col0 ) * - COUNT( * ) * + COUNT( * ) FROM tab2 AS cor0
----
-414

skipif mysql # not compatible
query I rowsort label-2977
SELECT - MAX ( ALL - col0 ) * - COUNT ( * ) * + COUNT ( * ) FROM tab2 AS cor0
----
-414

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 * - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2979
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * - + col0 BETWEEN col0 + - col1 AND + col0
----

skipif mysql # not compatible
query III rowsort label-2979
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * - + col0 BETWEEN col0 + - col1 AND + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2980
SELECT MAX( col1 ) FROM tab2 WHERE ( - + CAST( NULL AS SIGNED ) ) BETWEEN ( col2 + 47 / 19 ) AND ( col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2980
SELECT MAX ( col1 ) FROM tab2 WHERE ( - + CAST ( NULL AS INTEGER ) ) BETWEEN ( col2 + 47 / 19 ) AND ( col0 )
----
NULL

query I rowsort
SELECT col0 + - 57 FROM tab0
----
-42
30
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2982
SELECT ALL ( - 8 ) + AVG ( + 91 ) * - AVG ( DISTINCT 7 ) col2 FROM tab2 WHERE NOT NULL BETWEEN + 50 - + col0 + 63 AND 50 * col0 + + CAST( + col0 AS SIGNED )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2982
SELECT ALL ( - 8 ) + AVG ( + 91 ) * - AVG ( DISTINCT 7 ) col2 FROM tab2 WHERE NOT NULL BETWEEN + 50 - + col0 + 63 AND 50 * col0 + + CAST ( + col0 AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + col0 * col2 * + col1 FROM tab1
----
25075
290836
68544

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2984
SELECT DISTINCT - ( + CAST( NULL AS SIGNED ) ) + COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2984
SELECT DISTINCT - ( + CAST ( NULL AS INTEGER ) ) + COUNT ( * ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2985
SELECT DISTINCT CAST( NULL AS SIGNED ) / ( + 20 ) + 94 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2985
SELECT DISTINCT CAST ( NULL AS INTEGER ) / ( + 20 ) + 94 AS col2 FROM tab2
----
NULL

query I rowsort
SELECT + - col2 * + col0 - - col0 AS col2 FROM tab1 AS cor0
----
-4845
-4930
-6097

query I rowsort
SELECT DISTINCT col0 + - - col2 AS col2 FROM tab1 AS cor0
----
144
147
159

query I rowsort
SELECT - 25 - - + 68 FROM tab2
----
43
43
43

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2989
SELECT ALL * FROM tab0 cor0 WHERE NOT - CAST( + col2 AS SIGNED ) + - col2 >= + col1 + + 1 * - col0
----
15
81
47
97
1
99

skipif mysql # not compatible
query III rowsort label-2989
SELECT ALL * FROM tab0 cor0 WHERE NOT - CAST ( + col2 AS INTEGER ) + - col2 >= + col1 + + 1 * - col0
----
15
81
47
97
1
99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + 59 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2992
SELECT DISTINCT MIN( - col1 ) FROM tab1 cor0
----
-47

skipif mysql # not compatible
query I rowsort label-2992
SELECT DISTINCT MIN ( - col1 ) FROM tab1 cor0
----
-47

query I rowsort
SELECT DISTINCT - + col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2994
SELECT DISTINCT COUNT( * ), - 56 + + 30 col0 FROM tab0
----
3
-26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2994
SELECT DISTINCT COUNT ( * ), - 56 + + 30 col0 FROM tab0
----
3
-26

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col1 NOT IN ( + 16 )
----

query I rowsort
SELECT 46 FROM tab1 WHERE NOT ( NULL ) > + 24
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2997
SELECT DISTINCT - ( - - col2 ) DIV col0 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-2997
SELECT DISTINCT - ( - - col2 ) / col0 FROM tab1
----
-1
0

query II rowsort
SELECT + col1 AS col1, + col1 + 44 AS col0 FROM tab2
----
51
95
67
111
77
121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, 26 * + 35 * col2 + - col0 * - - col2 col0 FROM tab0
----
10
8230
47
42065
99
80487

onlyif mysql # DIV for integer division: 
query I rowsort label-3000
SELECT DISTINCT - - 10 DIV - - col1 * + 53 - + 83 AS col1 FROM tab2 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-3000
SELECT DISTINCT - - 10 / - - col1 * + 53 - + 83 AS col1 FROM tab2 AS cor0
----
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 14 * - col2 col2 FROM tab0 AS cor0
----
-1386
-140
-658

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 68 col0 FROM tab0 AS cor0 WHERE NOT col0 <> NULL
----

query I rowsort
SELECT 5 * + + 14 AS col2 FROM tab2
----
70
70
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3004
SELECT + MIN( + 28 ) FROM tab0
----
28

skipif mysql # not compatible
query I rowsort label-3004
SELECT + MIN ( + 28 ) FROM tab0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3005
SELECT + 96 + - MIN( ALL 34 ) AS col0 FROM tab0
----
62

skipif mysql # not compatible
query I rowsort label-3005
SELECT + 96 + - MIN ( ALL 34 ) AS col0 FROM tab0
----
62

query I rowsort
SELECT - ( 38 ) + - + 42 AS col2 FROM tab1
----
-80
-80
-80

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3007
SELECT ALL + col0 * CAST( NULL AS SIGNED ) + - CAST( NULL AS DECIMAL ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3007
SELECT ALL + col0 * CAST ( NULL AS INTEGER ) + - CAST ( NULL AS REAL ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE NULL <> NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3009
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3009
SELECT DISTINCT + CAST ( NULL AS REAL ) + col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 IN ( - col0 + - - 10 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( - 13 / + + col1 + ( + - ( - + col2 ) ) + - col2 ) AND NULL
----

query I rowsort
SELECT ALL + - col2 * - - col2 + + col0 AS col2 FROM tab1 AS cor0
----
-3396
-4533
-9165

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <= 26
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3014
SELECT ALL CAST( + ( - col2 ) AS SIGNED ) * 10 DIV col1 + - + 58 + col2 * + col2 FROM tab0 AS cor0
----
2146
38
8753

skipif mysql # not compatible
query I rowsort label-3014
SELECT ALL CAST ( + ( - col2 ) AS INTEGER ) * 10 / col1 + - + 58 + col2 * + col2 FROM tab0 AS cor0
----
2146
38
8753

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN ( + 48 + + + 99 * + col2 * - + col1 + 28 ) AND 31 - 53
----

query I rowsort
SELECT col1 * - - col0 * - 85 * 88 FROM tab1
----
-3179000
-31991960
-5340720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 11 col2, - col0 FROM tab2
----
11
-46
11
-64
11
-75

query III rowsort
SELECT * FROM tab0 WHERE - + 41 IN ( col1 * + col1 + col2 + + col0 )
----

query I rowsort
SELECT ALL - col1 * 73 + - - 51 FROM tab1
----
-314
-3380
-971

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3020
SELECT DISTINCT + col2 + - col2 + - col2 * - + CAST( NULL AS SIGNED ) + + col1 / + 67 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3020
SELECT DISTINCT + col2 + - col2 + - col2 * - + CAST ( NULL AS INTEGER ) + + col1 / + 67 FROM tab1
----
NULL

query I rowsort
SELECT - col1 + + ( 55 ) AS col1 FROM tab0 AS cor0
----
-26
34
54

onlyif mysql # aggregate syntax: 
query II rowsort label-3022
SELECT COUNT( * ) + ( + COUNT( * ) ) AS col0, - 2 + - SUM( - - 39 ) AS col0 FROM tab0 AS cor0
----
6
-119

skipif mysql # not compatible
query II rowsort label-3022
SELECT COUNT ( * ) + ( + COUNT ( * ) ) AS col0, - 2 + - SUM ( - - 39 ) AS col0 FROM tab0 AS cor0
----
6
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-3023
SELECT DISTINCT - COUNT( ( + col1 ) ) AS col1 FROM tab1 AS cor0 WHERE col2 IS NULL AND NOT col0 * - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3023
SELECT DISTINCT - COUNT ( ( + col1 ) ) AS col1 FROM tab1 AS cor0 WHERE col2 IS NULL AND NOT col0 * - col1 IS NOT NULL
----
0

query I rowsort
SELECT - + col1 + - + col1 + - 65 + col2 * - - col0 AS col2 FROM tab2 AS cor0
----
2341
4151
891

query I rowsort
SELECT + 12 + + col1 AS col0 FROM tab1 cor0
----
17
26
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3026
SELECT ALL 68 - CAST( NULL AS SIGNED ) - + MAX( DISTINCT - - 50 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3026
SELECT ALL 68 - CAST ( NULL AS INTEGER ) - + MAX ( DISTINCT - - 50 ) FROM tab2
----
NULL

query I rowsort
SELECT + col2 * + - 76 AS col0 FROM tab2 AS cor0
----
-1748
-3040
-4408

query I rowsort
SELECT + col2 * + + 52 AS col2 FROM tab1 AS cor0
----
3068
3536
4992

query I rowsort
SELECT ALL + col0 * - - col0 + col2 * - col2 + ( - 5 ) FROM tab0 AS cor0
----
-1989
-397
7464

query I rowsort
SELECT ALL - 15 + - col0 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
-102
-112
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-3031
SELECT - col2 DIV 91 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3031
SELECT - col2 / 91 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + - 56 * col2 - 56 FROM tab0 AS cor0
----
-2688
-5600
-616

query I rowsort
SELECT - ( col0 ) * + col1 / - col0 FROM tab0 cor0 WHERE NOT + col2 * - - 12 * - ( 61 ) NOT IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3034
SELECT ALL - MIN( ALL - col1 ) * + 11 AS col0 FROM tab1 cor0
----
517

skipif mysql # not compatible
query I rowsort label-3034
SELECT ALL - MIN ( ALL - col1 ) * + 11 AS col0 FROM tab1 cor0
----
517

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + ( + col2 ) ) col0 FROM tab1 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3036
SELECT ALL CAST( NULL AS SIGNED ) * - ( + 61 ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3036
SELECT ALL CAST ( NULL AS INTEGER ) * - ( + 61 ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3037
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab2 WHERE 98 < NULL
----

skipif mysql # not compatible
query I rowsort label-3037
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab2 WHERE 98 < NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + + 56 NOT IN ( + - col0, col1 * - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3039
SELECT ALL MAX( DISTINCT col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT - 58 + + 22 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3039
SELECT ALL MAX ( DISTINCT col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT - 58 + + 22 < NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3040
SELECT ALL + CAST( NULL AS SIGNED ) * + + ( + col0 ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3040
SELECT ALL + CAST ( NULL AS INTEGER ) * + + ( + col0 ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3041
SELECT + CAST( NULL AS SIGNED ) * - - CAST( - + 94 AS SIGNED ), + COUNT( * ) AS col2 FROM tab2 cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-3041
SELECT + CAST ( NULL AS INTEGER ) * - - CAST ( - + 94 AS INTEGER ), + COUNT ( * ) AS col2 FROM tab2 cor0
----
NULL
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3042
SELECT - 81 * - ( SUM( DISTINCT col1 ) ) AS col2 FROM tab2 AS cor0
----
15795

skipif mysql # not compatible
query I rowsort label-3042
SELECT - 81 * - ( SUM ( DISTINCT col1 ) ) AS col2 FROM tab2 AS cor0
----
15795

onlyif mysql # aggregate syntax: 
query I rowsort label-3043
SELECT - - MAX( + 31 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
31

skipif mysql # not compatible
query I rowsort label-3043
SELECT - - MAX ( + 31 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3044
SELECT ALL + COUNT( * ) + - 51 FROM tab2
----
-48

skipif mysql # not compatible
query I rowsort label-3044
SELECT ALL + COUNT ( * ) + - 51 FROM tab2
----
-48

query II rowsort
SELECT - 92 AS col1, 34 FROM tab1
----
-92
34
-92
34
-92
34

query I rowsort
SELECT DISTINCT 89 + - + 78 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
11

query I rowsort
SELECT ALL - - col2 FROM tab1 AS cor0 WHERE + col1 + col0 + + 2 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - + col1 ) col2 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-3049
SELECT ALL + - 79 DIV col1 + - 26 col1 FROM tab0 AS cor0
----
-105
-26
-29

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3049
SELECT ALL + - 79 / col1 + - 26 col1 FROM tab0 AS cor0
----
-105
-26
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-3050
SELECT DISTINCT COUNT( * ) + - - 74 col0 FROM tab1 AS cor0
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3050
SELECT DISTINCT COUNT ( * ) + - - 74 col0 FROM tab1 AS cor0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3051
SELECT DISTINCT CAST( - col1 AS SIGNED ) + ( + col0 ) - col0 col1 FROM tab2 cor0
----
-51
-67
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3051
SELECT DISTINCT CAST ( - col1 AS INTEGER ) + ( + col0 ) - col0 col1 FROM tab2 cor0
----
-51
-67
-77

query I rowsort
SELECT + 46 + - 59 FROM tab1 AS cor0
----
-13
-13
-13

query I rowsort
SELECT - + 60 * 76 + col1 FROM tab2 AS cor0
----
-4483
-4493
-4509

onlyif mysql # aggregate syntax: 
query I rowsort label-3054
SELECT COUNT( * ) + - + MAX( DISTINCT col2 ) FROM tab1 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-3054
SELECT COUNT ( * ) + - + MAX ( DISTINCT col2 ) FROM tab1 AS cor0
----
-93

query I rowsort
SELECT ALL + - col2 * + - col0 + - 85 AS col1 FROM tab1 cor0
----
4811
4930
6103

query III rowsort
SELECT * FROM tab0 WHERE ( NOT 58 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3057
SELECT DISTINCT + COUNT( * ) * MAX( + 5 ) AS col1 FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-3057
SELECT DISTINCT + COUNT ( * ) * MAX ( + 5 ) AS col1 FROM tab2
----
15

query I rowsort
SELECT + ( - 89 ) FROM tab1
----
-89
-89
-89

query I rowsort
SELECT + ( 82 ) AS col1 FROM tab0
----
82
82
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3060
SELECT DISTINCT ( - CAST( - col0 AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-3060
SELECT DISTINCT ( - CAST ( - col0 AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query II rowsort label-3061
SELECT ALL 95 + + COUNT( * ), COUNT( DISTINCT - col2 ) AS col1 FROM tab1 AS cor0
----
98
3

skipif mysql # not compatible
query II rowsort label-3061
SELECT ALL 95 + + COUNT ( * ), COUNT ( DISTINCT - col2 ) AS col1 FROM tab1 AS cor0
----
98
3

query I rowsort
SELECT DISTINCT - col0 * - col0 - + col0 + + col2 + + col0 FROM tab0 AS cor0
----
272
7579
9508

onlyif mysql # aggregate syntax: 
query I rowsort label-3063
SELECT ALL COUNT( * ) + - - 21 - COUNT( * ) FROM tab2 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-3063
SELECT ALL COUNT ( * ) + - - 21 - COUNT ( * ) FROM tab2 AS cor0
----
21

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + 65 ) * - + col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3065
SELECT COUNT( * ) + - 66 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
-66

skipif mysql # not compatible
query I rowsort label-3065
SELECT COUNT ( * ) + - 66 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-3066
SELECT + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3066
SELECT + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT + col0 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT + 26 IS NOT NULL
----

query II rowsort
SELECT - 4, col2 FROM tab0
----
-4
10
-4
47
-4
99

query II rowsort
SELECT col0 * + col0 * 66, + col2 FROM tab0
----
14850
47
499554
10
620994
99

query I rowsort
SELECT DISTINCT 36 * - + col0 AS col2 FROM tab2 AS cor0
----
-1656
-2304
-2700

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 19 + + col2 * col1 * - col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3072
SELECT SUM( DISTINCT col0 ) / + MIN( DISTINCT - + col0 ) + + 11 AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3072
SELECT SUM ( DISTINCT col0 ) / + MIN ( DISTINCT - + col0 ) + + 11 AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL IN ( col2, col0 ) )
----

query I rowsort
SELECT - 85 FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT DISTINCT - 71 AS col1 FROM tab1 cor0
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-3076
SELECT ALL - col0 DIV - - 85 AS col0 FROM tab0 AS cor0 WHERE NOT 70 = + col2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3076
SELECT ALL - col0 / - - 85 AS col0 FROM tab0 AS cor0 WHERE NOT 70 = + col2
----
-1
-1
0

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( + - col0 ) AND + 55
----

query I rowsort
SELECT 21 + + col0 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3079
SELECT - col2 DIV + 55 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3079
SELECT - col2 / + 55 FROM tab1
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3080
SELECT + COUNT( ALL + + col0 ) AS col2, - ( + - COUNT( * ) ) FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-3080
SELECT + COUNT ( ALL + + col0 ) AS col2, - ( + - COUNT ( * ) ) FROM tab0
----
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 79 ) col2 FROM tab2
----
-79
-79
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-3082
SELECT DISTINCT - SUM( - ( - col2 ) ) AS col0 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-3082
SELECT DISTINCT - SUM ( - ( - col2 ) ) AS col0 FROM tab0
----
-156

onlyif mysql # DIV for integer division: 
query I rowsort label-3083
SELECT ALL - col2 DIV - col1 + + + col1 AS col0 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-3083
SELECT ALL - col2 / - col1 + + + col1 AS col0 FROM tab2
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3084
SELECT ALL * FROM tab1 WHERE CAST( - col2 AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3084
SELECT ALL * FROM tab1 WHERE CAST ( - col2 AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3085
SELECT + MAX( + col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT 62 = col2
----
47

skipif mysql # not compatible
query I rowsort label-3085
SELECT + MAX ( + col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT 62 = col2
----
47

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - ( + + col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col1 + - col1 NOT BETWEEN + + col2 AND col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3088
SELECT col1 + CAST( - 19 AS SIGNED ) * + + col0 AS col2, - 68 FROM tab1 AS cor0
----
-1610
-68
-1682
-68
-955
-68

skipif mysql # not compatible
query II rowsort label-3088
SELECT col1 + CAST ( - 19 AS INTEGER ) * + + col0 AS col2, - 68 FROM tab1 AS cor0
----
-1610
-68
-1682
-68
-955
-68

query II rowsort
SELECT DISTINCT 52 * - + col1 * - 9 AS col0, + col2 FROM tab0
----
37908
47
468
99
9828
10

query II rowsort
SELECT DISTINCT + col1, 43 * - col0 FROM tab0 AS cor0 WHERE col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3091
SELECT ALL - CAST( + - col1 AS SIGNED ) + - + col1 AS col2, col0 AS col2 FROM tab1 cor0
----
0
51
0
85
0
91

skipif mysql # not compatible
query II rowsort label-3091
SELECT ALL - CAST ( + - col1 AS INTEGER ) + - + col1 AS col2, col0 AS col2 FROM tab1 cor0
----
0
51
0
85
0
91

onlyif mysql # DIV for integer division: 
query I rowsort label-3092
SELECT - - 14 * ( col0 ) DIV + ( + col2 ) + 7 * - col2 + col2 * + + 56 AS col1 FROM tab0 AS cor0
----
2307
4864
611

skipif mysql # not compatible
query I rowsort label-3092
SELECT - - 14 * ( col0 ) / + ( + col2 ) + 7 * - col2 + col2 * + + 56 AS col1 FROM tab0 AS cor0
----
2307
4864
611

query I rowsort
SELECT DISTINCT - col0 - + + col1 - + 76 AS col0 FROM tab2 AS cor0
----
-173
-217
-218

onlyif mysql # aggregate syntax: 
query I rowsort label-3094
SELECT - MIN( ALL - col2 ) AS col2 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-3094
SELECT - MIN ( ALL - col2 ) AS col2 FROM tab1 AS cor0
----
96

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL IN ( 14, - col1, - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3096
SELECT ALL + 71 * - - CAST( - col0 AS SIGNED ) * + - col2 - - 54 * - 30 AS col2, + 68 FROM tab1
----
345996
68
354445
68
437728
68

skipif mysql # not compatible
query II rowsort label-3096
SELECT ALL + 71 * - - CAST ( - col0 AS INTEGER ) * + - col2 - - 54 * - 30 AS col2, + 68 FROM tab1
----
345996
68
354445
68
437728
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 24 - 6 col2 FROM tab1
----
18
18
18

query I rowsort
SELECT + 37 - col2 AS col1 FROM tab2
----
-21
-3
14

query II rowsort
SELECT ALL - col0 AS col1, 88 FROM tab2
----
-46
88
-64
88
-75
88

query I rowsort
SELECT ALL - col1 * col2 * col1 AS col0 FROM tab2
----
-237160
-260362
-59823

onlyif mysql # aggregate syntax: 
query I rowsort label-3101
SELECT DISTINCT 43 - - + COUNT( * ) AS col2 FROM tab0
----
46

skipif mysql # not compatible
query I rowsort label-3101
SELECT DISTINCT 43 - - + COUNT ( * ) AS col2 FROM tab0
----
46

query I rowsort
SELECT ALL - col0 * - + 2 AS col1 FROM tab1
----
102
170
182

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3103
SELECT ALL MIN( - 23 ) * - SUM( ALL + col0 ) + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3103
SELECT ALL MIN ( - 23 ) * - SUM ( ALL + col0 ) + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT + 84 + col1 FROM tab0 cor0
----
105
165
85

onlyif mysql # DIV for integer division: 
query II rowsort label-3105
SELECT DISTINCT - + col0, + 81 DIV 63 + + col1 col2 FROM tab0 AS cor0
----
-15
82
-87
22
-97
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3105
SELECT DISTINCT - + col0, + 81 / 63 + + col1 col2 FROM tab0 AS cor0
----
-15
82
-87
22
-97
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3106
SELECT CAST( + + COUNT( - 48 ) AS SIGNED ) * 47 + + - COUNT( * ) AS col1 FROM tab1
----
138

skipif mysql # not compatible
query I rowsort label-3106
SELECT CAST ( + + COUNT ( - 48 ) AS INTEGER ) * 47 + + - COUNT ( * ) AS col1 FROM tab1
----
138

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - 20 + + - col1 col2 FROM tab2 AS cor0
----
-1357
-1567
-971

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 90 col0 FROM tab2 AS cor0
----
90
90
90

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 43 NOT IN ( + col2 + 31 - + - col0 - - col2 * - - 42 + col0 * - col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <= - col1 + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3111
SELECT ALL + SUM( DISTINCT + col1 ) col1 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3111
SELECT ALL + SUM ( DISTINCT + col1 ) col1 FROM tab1 AS cor0
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-3112
SELECT - + 87 DIV col2 + + - col2 + + - 71 FROM tab1 AS cor0
----
-131
-140
-167

skipif mysql # not compatible
query I rowsort label-3112
SELECT - + 87 / col2 + + - col2 + + - 71 FROM tab1 AS cor0
----
-131
-140
-167

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3113
SELECT * FROM tab2 AS cor0 WHERE NOT - ( - - col1 ) * - 94 - + col0 + - - col1 / 76 + - - CAST( NULL AS DECIMAL ) + + col0 + - col0 * + + col0 - + col1 NOT IN ( + 28 )
----

skipif mysql # not compatible
query III rowsort label-3113
SELECT * FROM tab2 AS cor0 WHERE NOT - ( - - col1 ) * - 94 - + col0 + - - col1 / 76 + - - CAST ( NULL AS REAL ) + + col0 + - col0 * + + col0 - + col1 NOT IN ( + 28 )
----

query I rowsort
SELECT - - col1 AS col1 FROM tab0 cor0 WHERE NOT + 72 * - col2 - - col1 / + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-3115
SELECT * FROM tab2, tab1 cor0 WHERE NULL <= - CAST( NULL AS SIGNED ) + - 60
----

skipif mysql # not compatible
query IIIIII rowsort label-3115
SELECT * FROM tab2, tab1 cor0 WHERE NULL <= - CAST ( NULL AS INTEGER ) + - 60
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - 98 + - 77 col1 FROM tab0
----
-154
-174
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-3117
SELECT DISTINCT MAX( + - 18 ) FROM tab1
----
-18

skipif mysql # not compatible
query I rowsort label-3117
SELECT DISTINCT MAX ( + - 18 ) FROM tab1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-3118
SELECT DISTINCT + ( COUNT( * ) ) + ( 0 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3118
SELECT DISTINCT + ( COUNT ( * ) ) + ( 0 ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3119
SELECT + col2 + col2 + + CAST( NULL AS SIGNED ) * + col1 + + col2 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3119
SELECT + col2 + col2 + + CAST ( NULL AS INTEGER ) * + col1 + + col2 AS col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 NOT IN ( - + 0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( col0 ) + + 27 AS col0 FROM tab1
----
112
118
78

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3122
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 + - + CAST( - - 93 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3122
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 + - + CAST ( - - 93 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT + col1 * + col0 + - + col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-2
1168
1817

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3124
SELECT DISTINCT CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3124
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3125
SELECT DISTINCT 82 + COUNT( * ) AS col0 FROM tab1
----
85

skipif mysql # not compatible
query I rowsort label-3125
SELECT DISTINCT 82 + COUNT ( * ) AS col0 FROM tab1
----
85

query I rowsort
SELECT ALL 21 * + 6 AS col1 FROM tab2
----
126
126
126

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL <> NULL
----

query III rowsort
SELECT * FROM tab2 WHERE col2 / - - col1 / - col1 BETWEEN 89 + - col2 / - col2 * + ( - + col0 ) AND + + col2
----

query I rowsort
SELECT ALL + col0 + - - col0 FROM tab0 AS cor0
----
174
194
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3130
SELECT 35 + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-3130
SELECT 35 + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3131
SELECT DISTINCT - - col1 + + col0 + - col0 + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3131
SELECT DISTINCT - - col1 + + col0 + - col0 + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col0 ) * - - 92 * - 35 + - col0 * - 97 col2 FROM tab0 AS cor0
----
-271701
-302931
-46845

query II rowsort
SELECT - ( + 19 ) * + col1 + + col2 AS col1, 98 FROM tab1 AS cor0
----
-170
98
-36
98
-825
98

query I rowsort
SELECT ALL col2 - + col1 FROM tab2 cor0
----
-28
-37
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3135
SELECT + 63 * - col0 + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3135
SELECT + 63 * - col0 + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 15 FROM tab2 WHERE NULL IS NULL
----
15
15
15

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3137
SELECT ALL * FROM tab1 WHERE - col2 * + col2 * col0 BETWEEN col1 AND + ( - CAST( NULL AS SIGNED ) ) * - ( - 12 )
----

skipif mysql # not compatible
query III rowsort label-3137
SELECT ALL * FROM tab1 WHERE - col2 * + col2 * col0 BETWEEN col1 AND + ( - CAST ( NULL AS INTEGER ) ) * - ( - 12 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3138
SELECT + COUNT( ALL + + 46 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3138
SELECT + COUNT ( ALL + + 46 ) FROM tab1
----
3

query I rowsort
SELECT + col2 * - ( 85 ) AS col2 FROM tab1
----
-5015
-5780
-8160

query I rowsort
SELECT - col0 * + 29 * 94 FROM tab2
----
-125396
-174464
-204450

onlyif mysql # DIV for integer division: 
query I rowsort label-3141
SELECT DISTINCT col2 DIV - 28 AS col1 FROM tab2
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-3141
SELECT DISTINCT col2 / - 28 AS col1 FROM tab2
----
-1
-2
0

query I rowsort
SELECT - 40 * - 46 FROM tab2
----
1840
1840
1840

query I rowsort
SELECT DISTINCT + + col1 AS col0 FROM tab0 WHERE + - col1 < + 52 + + col0 + + + col0
----
1
21
81

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3144
SELECT ALL + CAST( NULL AS DECIMAL ) / - COUNT( * ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3144
SELECT ALL + CAST ( NULL AS REAL ) / - COUNT ( * ) AS col1 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3145
SELECT col1 DIV - - col0 AS col0 FROM tab0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-3145
SELECT col1 / - - col0 AS col0 FROM tab0
----
0
0
5

query I rowsort
SELECT + 6 * - col1 FROM tab2
----
-306
-402
-462

onlyif mysql # aggregate syntax: 
query I rowsort label-3147
SELECT DISTINCT + MIN( ALL + 80 ) AS col2 FROM tab2 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-3147
SELECT DISTINCT + MIN ( ALL + 80 ) AS col2 FROM tab2 AS cor0
----
80

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - 6 / col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3149
SELECT DISTINCT - COUNT( 56 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3149
SELECT DISTINCT - COUNT ( 56 ) FROM tab0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3150
SELECT DISTINCT - COUNT( * ) + - CAST( NULL AS SIGNED ) FROM tab2 WHERE 2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3150
SELECT DISTINCT - COUNT ( * ) + - CAST ( NULL AS INTEGER ) FROM tab2 WHERE 2 IS NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3151
SELECT DISTINCT + COUNT( * ) DIV + + 76 * MAX( DISTINCT 74 ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3151
SELECT DISTINCT + COUNT ( * ) / + + 76 * MAX ( DISTINCT 74 ) AS col1 FROM tab0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 81 / - - col2 * - col2 NOT IN ( - - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 AS col0, col1 - + 65 + - col0 col1 FROM tab1 AS cor0
----
51
-102
85
-145
91
-109

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + col1, + col2 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3155
SELECT DISTINCT - col0 AS col0, + 96 DIV - 71 AS col1 FROM tab0 AS cor0
----
-15
-1
-87
-1
-97
-1

skipif mysql # not compatible
query II rowsort label-3155
SELECT DISTINCT - col0 AS col0, + 96 / - 71 AS col1 FROM tab0 AS cor0
----
-15
-1
-87
-1
-97
-1

query I rowsort
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE NOT + 3 < col0
----

query II rowsort
SELECT ALL col0, col0 * - ( + - 47 ) + - col2 + 74 * - col0 AS col1 FROM tab1 AS cor0
----
51
-1473
85
-2354
91
-2525

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 BETWEEN + col2 * - col0 + + col0 + col2 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 67 col0 FROM tab2
----
-1541
-2680
-3886

onlyif mysql # DIV for integer division: 
query I rowsort label-3160
SELECT col2 DIV + 29 FROM tab1
----
2
2
3

skipif mysql # not compatible
query I rowsort label-3160
SELECT col2 / + 29 FROM tab1
----
2
2
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3161
SELECT CAST( MAX( - col2 ) AS SIGNED ) * - - COUNT( ALL + col0 ) FROM tab2
----
-69

skipif mysql # not compatible
query I rowsort label-3161
SELECT CAST ( MAX ( - col2 ) AS INTEGER ) * - - COUNT ( ALL + col0 ) FROM tab2
----
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 22 + - col1 col2 FROM tab0
----
-59
1
21

query I rowsort
SELECT ALL 91 * - - 18 AS col1 FROM tab2
----
1638
1638
1638

onlyif mysql # aggregate syntax: 
query I rowsort label-3164
SELECT DISTINCT COUNT( * ) - - + 98 FROM tab2
----
101

skipif mysql # not compatible
query I rowsort label-3164
SELECT DISTINCT COUNT ( * ) - - + 98 FROM tab2
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-3165
SELECT DISTINCT COUNT( ALL col1 ) * + - 63 - - 70 FROM tab1
----
-119

skipif mysql # not compatible
query I rowsort label-3165
SELECT DISTINCT COUNT ( ALL col1 ) * + - 63 - - 70 FROM tab1
----
-119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3166
SELECT - - SUM( - CAST( NULL AS SIGNED ) ) * + + 77 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3166
SELECT - - SUM ( - CAST ( NULL AS INTEGER ) ) * + + 77 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 84 + + col1 FROM tab2 AS cor0
----
135
151
161

query I rowsort
SELECT + col1 - + - col0 AS col0 FROM tab1 AS cor0
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3169
SELECT ALL + 6 - + COUNT( * ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3169
SELECT ALL + 6 - + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT - - col1 * - col2 * - 12 - - col0 * - 63 AS col2 FROM tab2 cor0
----
11178
32928
41907

query I rowsort
SELECT - 28 * + + 35 + - 21 AS col2 FROM tab0 WHERE + ( 4 ) NOT IN ( + + col2 )
----
-1001
-1001
-1001

query I rowsort
SELECT + 76 FROM tab1, tab0 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( ( - col2 ) < col2 )
----

query I rowsort
SELECT ( + col1 ) * + - col2 AS col2 FROM tab1
----
-1344
-295
-3196

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NOT NULL > ( NULL ) )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3176
SELECT ALL + col2 DIV + - col2 AS col0, 75 DIV - - 34 FROM tab1
----
-1
2
-1
2
-1
2

skipif mysql # not compatible
query II rowsort label-3176
SELECT ALL + col2 / + - col2 AS col0, 75 / - - 34 FROM tab1
----
-1
2
-1
2
-1
2

query I rowsort
SELECT DISTINCT 49 * - + col2 FROM tab1
----
-2891
-3332
-4704

onlyif mysql # DIV for integer division: 
query I rowsort label-3178
SELECT ALL + col2 DIV - 38 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-3178
SELECT ALL + col2 / - 38 FROM tab0
----
-1
-2
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3179
SELECT ALL COUNT( ALL - 82 ) FROM tab0 WHERE NOT NULL NOT BETWEEN - - col1 + - - 66 + - col0 * + + col1 AND 59
----
0

skipif mysql # not compatible
query I rowsort label-3179
SELECT ALL COUNT ( ALL - 82 ) FROM tab0 WHERE NOT NULL NOT BETWEEN - - col1 + - - 66 + - col0 * + + col1 AND 59
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3180
SELECT ALL ( + MIN( ALL - - col1 ) ) AS col0 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-3180
SELECT ALL ( + MIN ( ALL - - col1 ) ) AS col0 FROM tab1 AS cor0
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3181
SELECT - CAST( NULL AS SIGNED ) / + - col2 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3181
SELECT - CAST ( NULL AS INTEGER ) / + - col2 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 * - 27 + 52 + + col1 + - 76 + - col0 * - - 10 AS col0 FROM tab2 AS cor0
----
-1054
-1667
-2273

query I rowsort
SELECT - 1 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

query II rowsort
SELECT ALL - col1 AS col1, - col0 FROM tab0 WHERE col2 + - 6 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3185
SELECT ALL + 99 DIV + + SUM( DISTINCT 62 ) AS col2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-3185
SELECT ALL + 99 / + + SUM ( DISTINCT 62 ) AS col2 FROM tab2
----
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 - - ( col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - + 74 AS col2 FROM tab0 AS cor0
----
-74

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 43 <= - col0
----

query I rowsort
SELECT DISTINCT - + col2 FROM tab0 AS cor0 WHERE NOT ( + + col2 IS NOT NULL )
----

query II rowsort
SELECT DISTINCT + + 41 AS col0, + 23 * col2 AS col1 FROM tab0 AS cor0
----
41
1081
41
2277
41
230

query III rowsort
SELECT * FROM tab1 WHERE NULL < - + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col2, - col1 col1 FROM tab0
----
10
-21
47
-81
99
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3193
SELECT col2 DIV + col1 + col2 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-3193
SELECT col2 / + col1 + col2 FROM tab2
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3194
SELECT - 77 * - COUNT( * ) + - - 11 + - COUNT( * ) AS col0 FROM tab1
----
239

skipif mysql # not compatible
query I rowsort label-3194
SELECT - 77 * - COUNT ( * ) + - - 11 + - COUNT ( * ) AS col0 FROM tab1
----
239

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3195
SELECT ALL - ( - CAST( + + col0 AS SIGNED ) ) + 43 * 69 AS col0 FROM tab2
----
3013
3031
3042

skipif mysql # not compatible
query I rowsort label-3195
SELECT ALL - ( - CAST ( + + col0 AS INTEGER ) ) + 43 * 69 AS col0 FROM tab2
----
3013
3031
3042

query I rowsort
SELECT ALL 14 + - - ( 52 ) FROM tab2 AS cor0
----
66
66
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3197
SELECT ALL + CAST( + 24 AS SIGNED ) + - CAST( NULL AS SIGNED ) - - + 5 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3197
SELECT ALL + CAST ( + 24 AS INTEGER ) + - CAST ( NULL AS INTEGER ) - - + 5 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT 36 * col1 + - col2 FROM tab2
----
1813
2354
2732

onlyif mysql # aggregate syntax: 
query I rowsort label-3199
SELECT DISTINCT - 34 + - 60 + - - ( - - COUNT( ALL - 37 ) ) AS col1 FROM tab2 AS cor0 WHERE col2 + - col2 - col2 > NULL
----
-94

skipif mysql # not compatible
query I rowsort label-3199
SELECT DISTINCT - 34 + - 60 + - - ( - - COUNT ( ALL - 37 ) ) AS col1 FROM tab2 AS cor0 WHERE col2 + - col2 - col2 > NULL
----
-94

query I rowsort
SELECT - col0 + + ( + col0 ) AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3201
SELECT + 97 * MAX( DISTINCT - col2 ) + - - 22 AS col1 FROM tab0 AS cor0
----
-948

skipif mysql # not compatible
query I rowsort label-3201
SELECT + 97 * MAX ( DISTINCT - col2 ) + - - 22 AS col1 FROM tab0 AS cor0
----
-948

query I rowsort
SELECT ALL - col0 * - + 99 AS col1 FROM tab0 AS cor0 WHERE NOT - col2 / + ( - col0 ) + - col1 BETWEEN NULL AND ( + col0 * - + col1 * + - col2 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 70 ) <> ( + col1 ) / - 99 + - col0 + - ( ( - + ( col0 ) ) ) - + + 99 + col1 + + - ( + - col0 ) * - col0
----

query I rowsort
SELECT ALL col0 * 97 AS col0 FROM tab1
----
4947
8245
8827

onlyif mysql # aggregate syntax: 
query I rowsort label-3205
SELECT DISTINCT 13 * ( SUM( ALL + col0 ) ) AS col1 FROM tab0
----
2587

skipif mysql # not compatible
query I rowsort label-3205
SELECT DISTINCT 13 * ( SUM ( ALL + col0 ) ) AS col1 FROM tab0
----
2587

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab2 WHERE NOT 91 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3207
SELECT ( + - 19 ) * + + COUNT( * ) AS col1 FROM tab2
----
-57

skipif mysql # not compatible
query I rowsort label-3207
SELECT ( + - 19 ) * + + COUNT ( * ) AS col1 FROM tab2
----
-57

query II rowsort
SELECT DISTINCT col1, col0 * + col0 + + 41 * + col1 AS col1 FROM tab2
----
51
4207
67
8372
77
7253

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3209
SELECT ALL - ( + MIN( ALL + CAST( NULL AS DECIMAL ) ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3209
SELECT ALL - ( + MIN ( ALL + CAST ( NULL AS REAL ) ) ) AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3210
SELECT + 49 AS col1, + COUNT( * ) + + + 8 DIV - COUNT( * ) FROM tab1
----
49
1

skipif mysql # not compatible
query II rowsort label-3210
SELECT + 49 AS col1, + COUNT ( * ) + + + 8 / - COUNT ( * ) FROM tab1
----
49
1

query I rowsort
SELECT ALL ( 79 ) FROM tab0
----
79
79
79

query I rowsort
SELECT DISTINCT + 28 + + 56 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-3213
SELECT ALL col1 DIV + - col2 AS col0 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-3213
SELECT ALL col1 / + - col2 AS col0 FROM tab0 AS cor0
----
-1
-2
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3214
SELECT ALL - - 67 DIV - col2 FROM tab0 AS cor0
----
-1
-6
0

skipif mysql # not compatible
query I rowsort label-3214
SELECT ALL - - 67 / - col2 FROM tab0 AS cor0
----
-1
-6
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + + col1 col2 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3216
SELECT ALL + COUNT( ALL + CAST( - col2 AS SIGNED ) ) * + + COUNT( * ) - 16 + + COUNT( * ) FROM tab1 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-3216
SELECT ALL + COUNT ( ALL + CAST ( - col2 AS INTEGER ) ) * + + COUNT ( * ) - 16 + + COUNT ( * ) FROM tab1 AS cor0
----
-4

query I rowsort
SELECT DISTINCT - col1 + + 43 + + 28 FROM tab1 cor0
----
24
57
66

query I rowsort
SELECT DISTINCT + col1 + 13 FROM tab1 AS cor0
----
18
27
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + + col1 * col1 col1 FROM tab1
----
201019
2125
9996

onlyif mysql # aggregate syntax: 
query I rowsort label-3220
SELECT - COUNT( - col0 ) * - ( 66 ) AS col0 FROM tab2
----
198

skipif mysql # not compatible
query I rowsort label-3220
SELECT - COUNT ( - col0 ) * - ( 66 ) AS col0 FROM tab2
----
198

onlyif mysql # DIV for integer division: 
query I rowsort label-3221
SELECT DISTINCT 38 + + + col0 * 9 DIV + - 93 AS col2 FROM tab0
----
29
30
37

skipif mysql # not compatible
query I rowsort label-3221
SELECT DISTINCT 38 + + + col0 * 9 / + - 93 AS col2 FROM tab0
----
29
30
37

query I rowsort
SELECT - + 34 + 50 FROM tab2 AS cor0
----
16
16
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3223
SELECT DISTINCT + CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) - + 0 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3223
SELECT DISTINCT + CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) - + 0 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - ( - col0 ) FROM tab0 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3225
SELECT DISTINCT COUNT( * ) + - - 74 AS col0 FROM tab0 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-3225
SELECT DISTINCT COUNT ( * ) + - - 74 AS col0 FROM tab0 AS cor0
----
77

query I rowsort
SELECT ALL - col1 FROM tab2 cor0 WHERE NULL IS NULL
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3227
SELECT CAST( NULL AS SIGNED ) / + 43 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3227
SELECT CAST ( NULL AS INTEGER ) / + 43 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 87 AS col2 FROM tab2 cor0 WHERE NOT - col1 <= NULL
----

query II rowsort
SELECT col2, 44 * + col0 * + col1 AS col0 FROM tab0 AS cor0
----
10
80388
47
53460
99
4268

onlyif mysql # DIV for integer division: 
query I rowsort label-3230
SELECT ALL - + ( col0 ) * col1 DIV + col1 AS col2 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-3230
SELECT ALL - + ( col0 ) * col1 / + col1 AS col2 FROM tab0 AS cor0
----
-15
-87
-97

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + col1 < + 24
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3232
SELECT DISTINCT + COUNT( ALL + - col1 ) col0 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3232
SELECT DISTINCT + COUNT ( ALL + - col1 ) col0 FROM tab0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * - - col1 = - 10
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( - + col0 ) * ( + 52 ) + + col0 AS col2 FROM tab1 AS cor0
----
-2601
-4335
-4641

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + col1 / - - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3236
SELECT ALL - COUNT( - ( - 53 ) ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3236
SELECT ALL - COUNT ( - ( - 53 ) ) AS col2 FROM tab0
----
-3

query I rowsort
SELECT ALL ( 32 ) + - col2 FROM tab2
----
-26
-8
9

query I rowsort
SELECT DISTINCT - 16 + - col1 AS col0 FROM tab0 AS cor0
----
-17
-37
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-3239
SELECT DISTINCT 24 DIV + - ( + - ( + + col2 ) ) + col1 FROM tab2 AS cor0
----
52
67
77

skipif mysql # not compatible
query I rowsort label-3239
SELECT DISTINCT 24 / + - ( + - ( + + col2 ) ) + col1 FROM tab2 AS cor0
----
52
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3240
SELECT ( + MIN( col0 ) ) AS col2 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-3240
SELECT ( + MIN ( col0 ) ) AS col2 FROM tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3241
SELECT + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3241
SELECT + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE - col1 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3242
SELECT - 9 AS col0, - ( - MIN( - col2 ) ) FROM tab0 AS cor0
----
-9
-99

skipif mysql # not compatible
query II rowsort label-3242
SELECT - 9 AS col0, - ( - MIN ( - col2 ) ) FROM tab0 AS cor0
----
-9
-99

query I rowsort
SELECT - + 44 * - 61 + - - 45 AS col0 FROM tab2 AS cor0
----
2729
2729
2729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 45 * + col2 + + 64 col2 FROM tab2 AS cor0
----
1099
1864
2674

query II rowsort
SELECT - col2 * + + col1 + - - 14 AS col1, col2 FROM tab1 AS cor0
----
-1330
96
-281
59
-3182
68

onlyif mysql # DIV for integer division: 
query I rowsort label-3246
SELECT + col2 + - col2 DIV - + 27 AS col0 FROM tab2
----
23
41
60

skipif mysql # not compatible
query I rowsort label-3246
SELECT + col2 + - col2 / - + 27 AS col0 FROM tab2
----
23
41
60

query I rowsort
SELECT - 15 + + col2 AS col2 FROM tab1
----
44
53
81

query II rowsort
SELECT ALL - col1 * - col0, col2 AS col0 FROM tab2
----
2346
23
4928
40
5025
58

query I rowsort
SELECT - 48 * col1 AS col0 FROM tab2
----
-2448
-3216
-3696

query I rowsort
SELECT ALL + - ( - - 71 ) FROM tab0 AS cor0
----
-71
-71
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-3251
SELECT + SUM( ALL - col0 ) - 52 FROM tab2
----
-237

skipif mysql # not compatible
query I rowsort label-3251
SELECT + SUM ( ALL - col0 ) - 52 FROM tab2
----
-237

onlyif mysql # DIV for integer division: 
query I rowsort label-3252
SELECT ALL col0 DIV col1 * - col2 FROM tab2
----
-58
0
0

skipif mysql # not compatible
query I rowsort label-3252
SELECT ALL col0 / col1 * - col2 FROM tab2
----
-58
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3253
SELECT CAST( - 84 AS SIGNED ) AS col2 FROM tab0
----
-84
-84
-84

skipif mysql # not compatible
query I rowsort label-3253
SELECT CAST ( - 84 AS INTEGER ) AS col2 FROM tab0
----
-84
-84
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-3254
SELECT + COUNT( ALL - + col1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3254
SELECT + COUNT ( ALL - + col1 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT - col2 + - ( + col2 ) FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

query II rowsort
SELECT 6 AS col2, + col1 AS col0 FROM tab2 AS cor0
----
6
51
6
67
6
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3257
SELECT DISTINCT + - COUNT( ALL - + 31 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3257
SELECT DISTINCT + - COUNT ( ALL - + 31 ) FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 84 col2 FROM tab0 AS cor0
----
84
84
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3259
SELECT ALL - COUNT( DISTINCT - col0 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3259
SELECT ALL - COUNT ( DISTINCT - col0 ) FROM tab0 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 65 - - col0 + - 98 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL ( + col2 ) * ( col2 ) AS col2 FROM tab2 AS cor0
----
1600
3364
529

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 BETWEEN NULL AND 77
----

query I rowsort
SELECT + 87 * - col1 FROM tab1
----
-1218
-4089
-435

onlyif mysql # aggregate syntax: 
query I rowsort label-3264
SELECT MAX( + 6 ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-3264
SELECT MAX ( + 6 ) FROM tab1
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-3265
SELECT ALL - COUNT( * ), - 14 AS col0 FROM tab2
----
-3
-14

skipif mysql # not compatible
query II rowsort label-3265
SELECT ALL - COUNT ( * ), - 14 AS col0 FROM tab2
----
-3
-14

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 31 + - col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3267
SELECT ALL MIN( DISTINCT 7 ) FROM tab0 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-3267
SELECT ALL MIN ( DISTINCT 7 ) FROM tab0 AS cor0
----
7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-3268
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 DIV 64 * + CAST( + col1 AS SIGNED ) * + col0 * - + col0 < ( + col0 * - col2 )
----
85
5
59
91
47
68

skipif mysql # not compatible
query III rowsort label-3268
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 / 64 * + CAST ( + col1 AS INTEGER ) * + col0 * - + col0 < ( + col0 * - col2 )
----
85
5
59
91
47
68

onlyif mysql # DIV for integer division: 
query I rowsort label-3269
SELECT - - 76 DIV 14 FROM tab2 AS cor0
----
5
5
5

skipif mysql # not compatible
query I rowsort label-3269
SELECT - - 76 / 14 FROM tab2 AS cor0
----
5
5
5

query I rowsort
SELECT col2 + + + 52 AS col0 FROM tab1
----
111
120
148

query I rowsort
SELECT - - ( + 49 ) + - + 92 AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a

onlyif mysql # aggregate syntax: 
query I rowsort label-3272
SELECT DISTINCT - - COUNT( * ) FROM tab1 AS cor0 WHERE - col1 * col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3272
SELECT DISTINCT - - COUNT ( * ) FROM tab1 AS cor0 WHERE - col1 * col2 IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3273
SELECT DISTINCT + ( - CAST( MIN( ALL + col1 ) AS SIGNED ) ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-3273
SELECT DISTINCT + ( - CAST ( MIN ( ALL + col1 ) AS INTEGER ) ) FROM tab1 AS cor0
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-3274
SELECT - col1 DIV 27 FROM tab2
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-3274
SELECT - col1 / 27 FROM tab2
----
-1
-2
-2

query I rowsort
SELECT DISTINCT col1 * 11 FROM tab2
----
561
737
847

query II rowsort
SELECT + 82 AS col2, col0 FROM tab1
----
82
51
82
85
82
91

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + ( + - col1 ) * col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 29 ) - - col0 col0 FROM tab1
----
22
56
62

query I rowsort
SELECT DISTINCT + col1 * 45 AS col2 FROM tab0
----
3645
45
945

query I rowsort
SELECT DISTINCT 25 + col2 + - col2 + + 86 + 19 + 94 * col2 * 35 + + col0 AS col2 FROM tab1 cor0
----
194325
223941
316021

onlyif mysql # aggregate syntax: 
query I rowsort label-3281
SELECT 25 * 95 + 46 + COUNT( * ) AS col1 FROM tab1 AS cor0
----
2424

skipif mysql # not compatible
query I rowsort label-3281
SELECT 25 * 95 + 46 + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
2424

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3282
SELECT + + CAST( - + col2 AS SIGNED ) FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-3282
SELECT + + CAST ( - + col2 AS INTEGER ) FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT - - 17 * + 89 + col1 AS col0 FROM tab2 AS cor0
----
1564
1580
1590

onlyif mysql # DIV for integer division: 
query I rowsort label-3284
SELECT ALL - 77 DIV col2 FROM tab0
----
-1
-7
0

skipif mysql # not compatible
query I rowsort label-3284
SELECT ALL - 77 / col2 FROM tab0
----
-1
-7
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3285
SELECT DISTINCT MAX( + 74 ) + + ( COUNT( * ) ) FROM tab0 AS cor0 WHERE NOT col0 <= + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3285
SELECT DISTINCT MAX ( + 74 ) + + ( COUNT ( * ) ) FROM tab0 AS cor0 WHERE NOT col0 <= + col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3286
SELECT - - MAX( ALL - ( + col2 ) ) AS col0 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-3286
SELECT - - MAX ( ALL - ( + col2 ) ) AS col0 FROM tab2 AS cor0
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3287
SELECT ALL - CAST( - col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-3287
SELECT ALL - CAST ( - col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3288
SELECT 46 / - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3288
SELECT 46 / - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3289
SELECT DISTINCT - - MAX( ALL + 6 ) * + + 43 AS col2 FROM tab2 AS cor0
----
258

skipif mysql # not compatible
query I rowsort label-3289
SELECT DISTINCT - - MAX ( ALL + 6 ) * + + 43 AS col2 FROM tab2 AS cor0
----
258

onlyif mysql # aggregate syntax: 
query I rowsort label-3290
SELECT - 41 * - - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-123

skipif mysql # not compatible
query I rowsort label-3290
SELECT - 41 * - - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-123

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3291
SELECT ALL 31 DIV MAX( col1 ), + 63 AS col2 FROM tab1
----
0
63

skipif mysql # not compatible
query II rowsort label-3291
SELECT ALL 31 / MAX ( col1 ), + 63 AS col2 FROM tab1
----
0
63

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3292
SELECT * FROM tab0 WHERE NOT NULL <= - CAST( + 88 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-3292
SELECT * FROM tab0 WHERE NOT NULL <= - CAST ( + 88 AS REAL )
----

query I rowsort
SELECT - + col1 + 9 FROM tab2 WHERE NOT 32 BETWEEN NULL AND 29
----
-42
-58
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3294
SELECT ALL + 50 FROM tab0 WHERE - 59 * - + 88 * + + CAST( NULL AS SIGNED ) IS NULL
----
50
50
50

skipif mysql # not compatible
query I rowsort label-3294
SELECT ALL + 50 FROM tab0 WHERE - 59 * - + 88 * + + CAST ( NULL AS INTEGER ) IS NULL
----
50
50
50

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3295
SELECT ALL * FROM tab0 cor0 WHERE NOT - col0 * - col1 * - col1 NOT IN ( - 86 + - col2, - CAST( 50 AS SIGNED ), col1 )
----

skipif mysql # not compatible
query III rowsort label-3295
SELECT ALL * FROM tab0 cor0 WHERE NOT - col0 * - col1 * - col1 NOT IN ( - 86 + - col2, - CAST ( 50 AS INTEGER ), col1 )
----

query I rowsort
SELECT 67 * col2 * + + ( - col2 ) FROM tab1
----
-233227
-309808
-617472

query I rowsort
SELECT DISTINCT 84 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3298
SELECT ( - COUNT( * ) ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3298
SELECT ( - COUNT ( * ) ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-9

query I rowsort
SELECT 20 + + + col2 FROM tab2 AS cor0
----
43
60
78

query I rowsort
SELECT + + 3 + + 87 FROM tab1 AS cor0
----
90
90
90

query I rowsort
SELECT - col1 + 53 AS col2 FROM tab2
----
-14
-24
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3302
SELECT DISTINCT + COUNT( * ) * + MAX( DISTINCT + col2 ) FROM tab2
----
174

skipif mysql # not compatible
query I rowsort label-3302
SELECT DISTINCT + COUNT ( * ) * + MAX ( DISTINCT + col2 ) FROM tab2
----
174

onlyif mysql # DIV for integer division: 
query I rowsort label-3303
SELECT ALL - 90 DIV - 66 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3303
SELECT ALL - 90 / - 66 FROM tab1
----
1
1
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3304
SELECT ALL col1 + 55 + + ( CAST( NULL AS DECIMAL ) ) * - 6 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3304
SELECT ALL col1 + 55 + + ( CAST ( NULL AS REAL ) ) * - 6 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + col0 + + - col1 FROM tab2 AS cor0
----
-13
-5
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3306
SELECT 98 * 63 - + CAST( NULL AS SIGNED ) / + MIN( col0 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3306
SELECT 98 * 63 - + CAST ( NULL AS INTEGER ) / + MIN ( col0 ) FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT + col0 * + ( + col1 ) AS col2, + 68 + - col1 AS col2 FROM tab0 AS cor0
----
1215
-13
1827
47
97
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3308
SELECT SUM( - + ( + col0 ) ) FROM tab1 AS cor0 WHERE NOT NULL > 63
----
NULL

skipif mysql # not compatible
query I rowsort label-3308
SELECT SUM ( - + ( + col0 ) ) FROM tab1 AS cor0 WHERE NOT NULL > 63
----
NULL

query I rowsort
SELECT ALL - 38 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

query II rowsort
SELECT DISTINCT + col2 AS col2, 66 FROM tab1 AS cor0
----
59
66
68
66
96
66

query I rowsort
SELECT DISTINCT + ( + 4 ) AS col2 FROM tab2 AS cor0
----
4

query I rowsort
SELECT DISTINCT - 75 * col0 AS col0 FROM tab1 cor0
----
-3825
-6375
-6825

query I rowsort
SELECT - + col0 * + col1 + - 74 FROM tab2 AS cor0
----
-2420
-5002
-5099

query I rowsort
SELECT ALL - 25 * + 72 * 72 FROM tab1 cor0
----
-129600
-129600
-129600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col1 - + 34 col0 FROM tab1 AS cor0
----
391
4243
680

query I rowsort
SELECT + col1 * - 34 AS col0 FROM tab1 AS cor0 WHERE NOT ( NOT + - col0 * - + 97 / - 43 IS NOT NULL )
----
-1598
-170
-476

onlyif mysql # aggregate syntax: 
query I rowsort label-3317
SELECT ALL 38 * - + COUNT( * ) FROM tab0 AS cor0
----
-114

skipif mysql # not compatible
query I rowsort label-3317
SELECT ALL 38 * - + COUNT ( * ) FROM tab0 AS cor0
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-3318
SELECT - COUNT( * ) * + COUNT( * ) AS col0 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-3318
SELECT - COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab0
----
-9

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 + + + 38 IS NOT NULL
----

query II rowsort
SELECT - ( - col1 ) AS col1, col2 FROM tab1
----
14
96
47
68
5
59

query I rowsort
SELECT ALL - - 70 AS col0 FROM tab2 WHERE + col0 <> - - col2
----
70
70
70

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN col1 + 60 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3323
SELECT DISTINCT - col0 + + col0 + - + 33 DIV + col1 + + col1 FROM tab1 cor0
----
-1
12
47

skipif mysql # not compatible
query I rowsort label-3323
SELECT DISTINCT - col0 + + col0 + - + 33 / + col1 + + col1 FROM tab1 cor0
----
-1
12
47

query I rowsort
SELECT ALL + col0 + - col0 + - 78 FROM tab0 AS cor0
----
-78
-78
-78

query II rowsort
SELECT DISTINCT - col2 + - col2, 31 + + 74 AS col2 FROM tab2 AS cor0
----
-116
105
-46
105
-80
105

onlyif mysql # aggregate syntax: 
query I rowsort label-3326
SELECT + 80 + COUNT( * ) FROM tab2 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-3326
SELECT + 80 + COUNT ( * ) FROM tab2 AS cor0
----
83

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( + col0 * col2 )
----

query I rowsort
SELECT ALL + + ( 48 ) AS col0 FROM tab2 AS cor0
----
48
48
48

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 = - col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3330
SELECT * FROM tab2 WHERE + col0 * - col1 * + col0 NOT IN ( + - 37 + - 42, CAST( col2 AS DECIMAL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3330
SELECT * FROM tab2 WHERE + col0 * - col1 * + col0 NOT IN ( + - 37 + - 42, CAST ( col2 AS REAL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - - col2 + + - 41 FROM tab0 AS cor0
----
-31
58
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3332
SELECT ALL COUNT( DISTINCT - 52 ) AS col0 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-3332
SELECT ALL COUNT ( DISTINCT - 52 ) AS col0 FROM tab0 cor0
----
1

query I rowsort
SELECT DISTINCT + + ( + - 93 ) FROM tab2 cor0
----
-93

query I rowsort
SELECT DISTINCT col2 + + - 63 + + + col1 * + - 17 + - col2 AS col1 FROM tab2 AS cor0
----
-1202
-1372
-930

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3335
SELECT + + MIN( CAST( 68 AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-3335
SELECT + + MIN ( CAST ( 68 AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
68

query I rowsort
SELECT ALL - 62 - + 72 * - + col2 FROM tab0 AS cor0
----
3322
658
7066

query I rowsort
SELECT col2 * + ( + ( col2 ) ) - - - col2 AS col1 FROM tab0
----
2162
90
9702

query I rowsort
SELECT - col1 - - col2 - - col1 + + col0 AS col1 FROM tab1
----
144
147
159

query I rowsort
SELECT ALL 19 - + - col2 AS col1 FROM tab1
----
115
78
87

query I rowsort
SELECT - - col0 * + ( - col2 ) + 28 + + col0 AS col0 FROM tab1 WHERE - col1 BETWEEN col2 + col1 AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3341
SELECT ALL + MAX( DISTINCT col2 ) AS col2 FROM tab0 cor0
----
99

skipif mysql # not compatible
query I rowsort label-3341
SELECT ALL + MAX ( DISTINCT col2 ) AS col2 FROM tab0 cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3342
SELECT ALL - - MAX( DISTINCT - 15 ) AS col1 FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-3342
SELECT ALL - - MAX ( DISTINCT - 15 ) AS col1 FROM tab1 AS cor0
----
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 78 col0 FROM tab0 AS cor0
----
78
78
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3344
SELECT - COUNT( * ) * + COUNT( * ) * + 10 FROM tab1 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-3344
SELECT - COUNT ( * ) * + COUNT ( * ) * + 10 FROM tab1 AS cor0
----
-90

query I rowsort
SELECT DISTINCT ( 12 ) * col0 * - col0 + + + ( + 45 ) + - col1 * col2 + + - col0 AS col0 FROM tab2 AS cor0
----
-26566
-52251
-71416

query II rowsort
SELECT + 80, - col2 AS col2 FROM tab1 AS cor0
----
80
-59
80
-68
80
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3347
SELECT + - 78 + COUNT( * ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-69

skipif mysql # not compatible
query I rowsort label-3347
SELECT + - 78 + COUNT ( * ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-69

query I rowsort
SELECT - col2 * + 89 * + col1 FROM tab0 AS cor0
----
-18690
-338823
-8811

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - 89 * col2 <> - - col1 * + 60
----

query I rowsort
SELECT DISTINCT + col0 + ( - col1 ) AS col2 FROM tab1 AS cor0
----
37
44
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3351
SELECT ALL - 18 * - COUNT( * ) + - - COUNT( * ) DIV + 98 FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-3351
SELECT ALL - 18 * - COUNT ( * ) + - - COUNT ( * ) / + 98 FROM tab2 AS cor0
----
54

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND 51 * 43
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3353
SELECT - COUNT( * ) AS col0 FROM tab0 WHERE NOT + + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3353
SELECT - COUNT ( * ) AS col0 FROM tab0 WHERE NOT + + col1 IS NOT NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3354
SELECT ALL + - col1 * CAST( + - 18 AS DECIMAL ) + - + col2 / + - col0 FROM tab0 WHERE NOT NULL <= NULL
----

skipif mysql # not compatible
query I rowsort label-3354
SELECT ALL + - col1 * CAST ( + - 18 AS REAL ) + - + col2 / + - col0 FROM tab0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col0, col2 AS col0 FROM tab0 AS cor0
----
-10
10
-47
47
-99
99

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3358
SELECT ALL - MAX( ( - - col0 ) ) AS col0 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-3358
SELECT ALL - MAX ( ( - - col0 ) ) AS col0 FROM tab0 AS cor0
----
-97

query I rowsort
SELECT DISTINCT - - ( - 81 ) AS col2 FROM tab2 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3360
SELECT DISTINCT COUNT( 11 ) * - 86 FROM tab2
----
-258

skipif mysql # not compatible
query I rowsort label-3360
SELECT DISTINCT COUNT ( 11 ) * - 86 FROM tab2
----
-258

onlyif mysql # DIV for integer division: 
query I rowsort label-3361
SELECT - 96 + - col1 DIV col2 FROM tab2
----
-97
-97
-98

skipif mysql # not compatible
query I rowsort label-3361
SELECT - 96 + - col1 / col2 FROM tab2
----
-97
-97
-98

query I rowsort
SELECT 84 + col0 * 42 AS col2 FROM tab2
----
2016
2772
3234

query I rowsort
SELECT col2 - 90 AS col2 FROM tab0 WHERE col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3364
SELECT + col2 DIV - 84 AS col0 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3364
SELECT + col2 / - 84 AS col0 FROM tab0
----
-1
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3365
SELECT - col1 DIV col2 + - col2 FROM tab2
----
-25
-41
-59

skipif mysql # not compatible
query I rowsort label-3365
SELECT - col1 / col2 + - col2 FROM tab2
----
-25
-41
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-3366
SELECT - 2 * ( - col0 ) - col2 DIV - 74 AS col1 FROM tab0
----
174
195
30

skipif mysql # not compatible
query I rowsort label-3366
SELECT - 2 * ( - col0 ) - col2 / - 74 AS col1 FROM tab0
----
174
195
30

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3367
SELECT DISTINCT * FROM tab2 WHERE col2 BETWEEN ( + 38 + 70 / CAST( NULL AS SIGNED ) ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-3367
SELECT DISTINCT * FROM tab2 WHERE col2 BETWEEN ( + 38 + 70 / CAST ( NULL AS INTEGER ) ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3368
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE + 15 BETWEEN NULL AND - col2
----
0

skipif mysql # not compatible
query I rowsort label-3368
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE + 15 BETWEEN NULL AND - col2
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col2 * - col0 + + 36 ) BETWEEN + 1 AND - col2
----

query I rowsort
SELECT col1 * 54 AS col0 FROM tab2
----
2754
3618
4158

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col0 / + col2 ) IN ( - col0 )
----

query I rowsort
SELECT 6 AS col0 FROM tab1 WHERE col1 / 8 + + col2 * + 6 < ( + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3373
SELECT DISTINCT - 54 DIV - col0 AS col2 FROM tab0
----
0
3

skipif mysql # not compatible
query I rowsort label-3373
SELECT DISTINCT - 54 / - col0 AS col2 FROM tab0
----
0
3

query I rowsort
SELECT ALL + 72 * col1 FROM tab0
----
1512
5832
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3375
SELECT - CAST( + ( COUNT( * ) ) AS SIGNED ) * - MIN( DISTINCT + col0 * col0 + col0 ) - 2 AS col1 FROM tab0
----
718

skipif mysql # not compatible
query I rowsort label-3375
SELECT - CAST ( + ( COUNT ( * ) ) AS INTEGER ) * - MIN ( DISTINCT + col0 * col0 + col0 ) - 2 AS col1 FROM tab0
----
718

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 57 >= - col0 * 49 + + 52 * col1
----
46
51
23
64
77
40

query III rowsort
SELECT * FROM tab0 WHERE NOT + 31 IS NOT NULL
----

query I rowsort
SELECT col0 + + col2 AS col0 FROM tab1 WHERE NULL IS NULL
----
144
147
159

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 WHERE NOT 57 IS NULL
----
14
47
5

query I rowsort
SELECT ALL - ( 63 ) FROM tab2
----
-63
-63
-63

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3381
SELECT * FROM tab2 WHERE NOT CAST( - 60 AS SIGNED ) + col1 NOT IN ( 80 )
----

skipif mysql # not compatible
query III rowsort label-3381
SELECT * FROM tab2 WHERE NOT CAST ( - 60 AS INTEGER ) + col1 NOT IN ( 80 )
----

query I rowsort
SELECT + ( ( col0 ) ) AS col0 FROM tab0 WHERE ( - col2 / col2 ) NOT IN ( - col2 - - 73 * col0 )
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3383
SELECT COUNT( ALL + col2 ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3383
SELECT COUNT ( ALL + col2 ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

query I rowsort
SELECT 54 - col1 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3385
SELECT + MIN( DISTINCT + 78 ) FROM tab0 WHERE ( + col2 * ( - col0 ) + col2 ) NOT IN ( 46 )
----
78

skipif mysql # not compatible
query I rowsort label-3385
SELECT + MIN ( DISTINCT + 78 ) FROM tab0 WHERE ( + col2 * ( - col0 ) + col2 ) NOT IN ( 46 )
----
78

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE NOT 80 IN ( col0 )
----
59
68
96

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - 78 + + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3388
SELECT COUNT( * ) + + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NOT ( col2 ) BETWEEN col1 AND ( col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3388
SELECT COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NOT ( col2 ) BETWEEN col1 AND ( col0 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3389
SELECT DISTINCT - 17 * - COUNT( * ) AS col0 FROM tab2 cor0
----
51

skipif mysql # not compatible
query I rowsort label-3389
SELECT DISTINCT - 17 * - COUNT ( * ) AS col0 FROM tab2 cor0
----
51

query I rowsort
SELECT DISTINCT ( - 54 ) AS col0 FROM tab0 AS cor0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-3391
SELECT ALL SUM( DISTINCT - 17 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0
----
-17

skipif mysql # not compatible
query I rowsort label-3391
SELECT ALL SUM ( DISTINCT - 17 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0
----
-17

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 WHERE ( + 99 ) < - 67
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 23 >= NULL
----

query I rowsort
SELECT col0 * - 37 FROM tab2 WHERE NOT ( col2 ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3395
SELECT ALL + 39 FROM tab0 AS cor0 WHERE + ( ( 70 ) ) * col2 NOT BETWEEN NULL AND col0 / - CAST( col2 * - col1 AS SIGNED )
----
39
39
39

skipif mysql # not compatible
query I rowsort label-3395
SELECT ALL + 39 FROM tab0 AS cor0 WHERE + ( ( 70 ) ) * col2 NOT BETWEEN NULL AND col0 / - CAST ( col2 * - col1 AS INTEGER )
----
39
39
39

query I rowsort
SELECT DISTINCT + 79 * col0 AS col2 FROM tab2 AS cor0
----
3634
5056
5925

onlyif mysql # aggregate syntax: 
query I rowsort label-3397
SELECT ALL - SUM( ALL col2 ) FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-3397
SELECT ALL - SUM ( ALL col2 ) FROM tab1 AS cor0
----
-223

query I rowsort
SELECT ALL + col0 + 95 FROM tab2 AS cor0
----
141
159
170

query I rowsort
SELECT ALL col1 + 4 AS col1 FROM tab1 cor0
----
18
51
9

query I rowsort
SELECT ALL - col0 * 94 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-4324
-6016
-7050

onlyif mysql # aggregate syntax: 
query I rowsort label-3401
SELECT 38 * COUNT( * ) AS col2 FROM tab2 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-3401
SELECT 38 * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
114

query I rowsort
SELECT col2 + + col1 AS col1 FROM tab0 WHERE NULL IS NULL
----
100
128
31

onlyif mysql # DIV for integer division: 
query I rowsort label-3403
SELECT col2 DIV + col0 * col1 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3403
SELECT col2 / + col0 * col1 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT col0 * + - 67 FROM tab0
----
-1005
-5829
-6499

onlyif mysql # aggregate syntax: 
query I rowsort label-3405
SELECT DISTINCT + COUNT( * ) * + MAX( ALL 24 ) AS col2 FROM tab0
----
72

skipif mysql # not compatible
query I rowsort label-3405
SELECT DISTINCT + COUNT ( * ) * + MAX ( ALL 24 ) AS col2 FROM tab0
----
72

query I rowsort
SELECT col2 * - - ( col1 ) * col2 FROM tab0
----
178929
2100
9801

query I rowsort
SELECT ALL + 6 + col2 - col0 AS col1 FROM tab2
----
-11
-17
-18

query III rowsort
SELECT * FROM tab2 WHERE NULL < + 69
----

query III rowsort
SELECT * FROM tab2 WHERE col2 + + col1 * - col1 > 99
----

query I rowsort
SELECT ALL col1 * - + col1 * - 17 FROM tab2
----
100793
44217
76313

query I rowsort
SELECT ALL 20 + + 75 + - col0 FROM tab1
----
10
4
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3412
SELECT + 60 + MIN( ALL - col0 ) FROM tab2 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-3412
SELECT + 60 + MIN ( ALL - col0 ) FROM tab2 cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3413
SELECT COUNT( * ) - 91 * COUNT( * ) FROM tab1 AS cor0 WHERE NULL NOT IN ( col2 + + 93 * - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-3413
SELECT COUNT ( * ) - 91 * COUNT ( * ) FROM tab1 AS cor0 WHERE NULL NOT IN ( col2 + + 93 * - col1 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3414
SELECT col1 + + + col0 DIV col0 FROM tab1
----
15
48
6

skipif mysql # not compatible
query I rowsort label-3414
SELECT col1 + + + col0 / col0 FROM tab1
----
15
48
6

query I rowsort
SELECT ALL 51 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

query I rowsort
SELECT - 1 * - - col2 * + - col0 AS col2 FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3417
SELECT ALL - 96 DIV - COUNT( + ( 97 ) ) AS col2 FROM tab2 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-3417
SELECT ALL - 96 / - COUNT ( + ( 97 ) ) AS col2 FROM tab2 AS cor0
----
32

query I rowsort
SELECT ALL 75 + + 42 FROM tab1 AS cor0
----
117
117
117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3419
SELECT DISTINCT + col2 * - col0 AS col1 FROM tab1 AS cor0 WHERE NOT + col1 * - col0 + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-3419
SELECT DISTINCT + col2 * - col0 AS col1 FROM tab1 AS cor0 WHERE NOT + col1 * - col0 + CAST ( NULL AS INTEGER ) IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 * 16 + col2 BETWEEN + col1 + col1 AND - col2
----

query I rowsort
SELECT - col0 * + 10 - - 4 AS col1 FROM tab1 AS cor0
----
-506
-846
-906

onlyif mysql # aggregate syntax: 
query I rowsort label-3422
SELECT ALL + COUNT( * ) + - + 79 AS col2 FROM tab0 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-3422
SELECT ALL + COUNT ( * ) + - + 79 AS col2 FROM tab0 AS cor0
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3423
SELECT CAST( NULL AS SIGNED ) - - 83 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3423
SELECT CAST ( NULL AS INTEGER ) - - 83 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 98 * + + col2 FROM tab1 AS cor0
----
-5782
-6664
-9408

onlyif mysql # aggregate syntax: 
query I rowsort label-3425
SELECT + + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3425
SELECT + + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT col1 * + + 57 FROM tab0
----
1197
4617
57

query I rowsort
SELECT ALL 72 * + 27 * + + 96 AS col1 FROM tab0
----
186624
186624
186624

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 = ( + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - col1 ) NOT IN ( 22 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-3430
SELECT ALL MIN( + col1 ) col2, - COUNT( * ) FROM tab2
----
51
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3430
SELECT ALL MIN ( + col1 ) col2, - COUNT ( * ) FROM tab2
----
51
-3

query I rowsort
SELECT - + col0 * - - col1 + + + col0 AS col1 FROM tab0 AS cor0
----
-1200
-1740
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col1 col1 FROM tab0 AS cor0 WHERE NOT ( + col1 + + + 92 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3433
SELECT + ( - - CAST( + 68 AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
68
68
68

skipif mysql # not compatible
query I rowsort label-3433
SELECT + ( - - CAST ( + 68 AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
68
68
68

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT NULL BETWEEN + 42 AND ( NULL ) )
----

query I rowsort
SELECT - + 5 * + col0 * + - col0 AS col0 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
10580
20480
28125

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + 53 + - col2 AS col1 FROM tab0 AS cor0
----
-46
43
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 90 + + ( + col2 ) col0, col1 AS col0 FROM tab2 AS cor0
----
113
51
130
77
148
67

onlyif mysql # DIV for integer division: 
query I rowsort label-3439
SELECT - - ( + col1 ) DIV 42 + + 9 DIV + col0 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3439
SELECT - - ( + col1 ) / 42 + + 9 / + col0 FROM tab1 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col1 ) col2 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT - col0 + + 24 + col1 FROM tab1
----
-13
-20
-56

query I rowsort
SELECT + col2 + + 56 FROM tab2
----
114
79
96

query I rowsort
SELECT DISTINCT ( col1 ) FROM tab1 WHERE NOT - - col2 NOT IN ( col2 )
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3444
SELECT DISTINCT + MIN( DISTINCT - ( + 23 ) ) * - - 37 FROM tab1
----
-851

skipif mysql # not compatible
query I rowsort label-3444
SELECT DISTINCT + MIN ( DISTINCT - ( + 23 ) ) * - - 37 FROM tab1
----
-851

query I rowsort
SELECT ALL - col1 * - + col1 * col1 FROM tab1
----
103823
125
2744

query II rowsort
SELECT col0 AS col0, - col2 AS col2 FROM tab1
----
51
-96
85
-59
91
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3447
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 96 * + col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3447
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 96 * + col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3448
SELECT - CAST( - - 37 AS SIGNED ) FROM tab0
----
-37
-37
-37

skipif mysql # not compatible
query I rowsort label-3448
SELECT - CAST ( - - 37 AS INTEGER ) FROM tab0
----
-37
-37
-37

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3449
SELECT ALL - col1 AS col0, CAST( + col0 AS SIGNED ) + + - 31 * 79 + - col1 AS col1 FROM tab0
----
-1
-2353
-21
-2383
-81
-2515

skipif mysql # not compatible
query II rowsort label-3449
SELECT ALL - col1 AS col0, CAST ( + col0 AS INTEGER ) + + - 31 * 79 + - col1 AS col1 FROM tab0
----
-1
-2353
-21
-2383
-81
-2515

onlyif mysql # DIV for integer division: 
query I rowsort label-3450
SELECT ALL + col1 DIV + + ( - col2 ) + + col0 * ( + + col2 ) AS col2 FROM tab2 AS cor0
----
1056
2559
4349

skipif mysql # not compatible
query I rowsort label-3450
SELECT ALL + col1 / + + ( - col2 ) + + col0 * ( + + col2 ) AS col2 FROM tab2 AS cor0
----
1056
2559
4349

onlyif mysql # aggregate syntax: 
query I rowsort label-3451
SELECT DISTINCT + 8 + + COUNT( * ) - + SUM( + - 93 ) FROM tab1 AS cor0
----
290

skipif mysql # not compatible
query I rowsort label-3451
SELECT DISTINCT + 8 + + COUNT ( * ) - + SUM ( + - 93 ) FROM tab1 AS cor0
----
290

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3452
SELECT + 15 + + CAST( - ( + col1 ) AS SIGNED ) * - col2 + col2 AS col2 FROM tab2
----
1211
3135
3959

skipif mysql # not compatible
query I rowsort label-3452
SELECT + 15 + + CAST ( - ( + col1 ) AS INTEGER ) * - col2 + col2 AS col2 FROM tab2
----
1211
3135
3959

query I rowsort
SELECT DISTINCT - col0 * + + 79 AS col2 FROM tab2
----
-3634
-5056
-5925

query II rowsort
SELECT - col1 + + + col2 AS col2, 56 FROM tab0
----
-11
56
-34
56
98
56

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + 53 - - col1, col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3456
SELECT DISTINCT - CAST( + ( + - col1 ) AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE + col1 >= + col2 * - 97
----
1
21
81

skipif mysql # not compatible
query I rowsort label-3456
SELECT DISTINCT - CAST ( + ( + - col1 ) AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE + col1 >= + col2 * - 97
----
1
21
81

query I rowsort
SELECT ALL + col2 * + - col2 FROM tab0 AS cor0
----
-100
-2209
-9801

query II rowsort
SELECT DISTINCT + + col2, + 57 FROM tab2 AS cor0 WHERE + ( - - col2 ) - - + col2 IS NOT NULL
----
23
57
40
57
58
57

onlyif mysql # DIV for integer division: 
query II rowsort label-3459
SELECT + col0, col2 DIV + - col2 FROM tab1
----
51
-1
85
-1
91
-1

skipif mysql # not compatible
query II rowsort label-3459
SELECT + col0, col2 / + - col2 FROM tab1
----
51
-1
85
-1
91
-1

query I rowsort
SELECT DISTINCT col1 * col0 * - 68 FROM tab2
----
-159528
-335104
-341700

query II rowsort
SELECT 59 AS col0, 57 AS col1 FROM tab2
----
59
57
59
57
59
57

query I rowsort
SELECT ALL 13 FROM tab1 WHERE + - col0 BETWEEN + col1 + + - 14 AND ( + col0 * - col2 + + 13 * + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3463
SELECT * FROM tab0 WHERE col1 * + CAST( + col2 AS SIGNED ) IS NULL OR NOT ( col1 ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-3463
SELECT * FROM tab0 WHERE col1 * + CAST ( + col2 AS INTEGER ) IS NULL OR NOT ( col1 ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3464
SELECT DISTINCT SUM( DISTINCT col2 ) col0 FROM tab0
----
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3464
SELECT DISTINCT SUM ( DISTINCT col2 ) col0 FROM tab0
----
156

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL = + + ( 17 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3466
SELECT COUNT( * ) * ( 90 ) FROM tab2
----
270

skipif mysql # not compatible
query I rowsort label-3466
SELECT COUNT ( * ) * ( 90 ) FROM tab2
----
270

query II rowsort
SELECT ALL - 94, col1 FROM tab2
----
-94
51
-94
67
-94
77

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + 15 + col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3469
SELECT CAST( NULL AS SIGNED ) * - 14 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3469
SELECT CAST ( NULL AS INTEGER ) * - 14 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 73 FROM tab1 WHERE NOT - - col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3471
SELECT DISTINCT + - col2 DIV 27 AS col1 FROM tab1 AS cor0
----
-2
-3

skipif mysql # not compatible
query I rowsort label-3471
SELECT DISTINCT + - col2 / 27 AS col1 FROM tab1 AS cor0
----
-2
-3

query II rowsort
SELECT ALL + col1 AS col2, col1 FROM tab1 cor0
----
14
14
47
47
5
5

query I rowsort
SELECT DISTINCT - + 89 + + col0 FROM tab0 AS cor0
----
-2
-74
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col1, + 77 AS col1 FROM tab1 cor0
----
-51
77
-85
77
-91
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3475
SELECT ALL + ( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3475
SELECT ALL + ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query II rowsort
SELECT DISTINCT + col1 + 86 AS col2, col2 + - + 87 + - + col2 FROM tab1 cor0
----
100
-87
133
-87
91
-87

query II rowsort
SELECT + + col0 * + col2, - col2 * + 8 * + col2 * + 60 AS col0 FROM tab2 AS cor0
----
1058
-253920
2560
-768000
4350
-1614720

onlyif mysql # DIV for integer division: 
query I rowsort label-3478
SELECT ALL + - col1 + + - col0 DIV col2 AS col0 FROM tab2 AS cor0
----
-53
-68
-78

skipif mysql # not compatible
query I rowsort label-3478
SELECT ALL + - col1 + + - col0 / col2 AS col0 FROM tab2 AS cor0
----
-53
-68
-78

query I rowsort
SELECT + ( - 68 ) * 20 FROM tab0
----
-1360
-1360
-1360

query I rowsort
SELECT DISTINCT 60 * - + col1 FROM tab0
----
-1260
-4860
-60

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3481
SELECT * FROM tab0 WHERE + CAST( - 41 AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-3481
SELECT * FROM tab0 WHERE + CAST ( - 41 AS INTEGER ) >= NULL
----

query I rowsort
SELECT ALL + ( 26 ) * - - col0 * - col0 FROM tab0
----
-196794
-244634
-5850

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - ( + col2 ) ) - - col2 * 3 * 50 * 94 col2 FROM tab1
----
1353696
831959
958868

onlyif mysql # aggregate syntax: 
query I rowsort label-3484
SELECT ALL COUNT( * ) * + - 39 AS col0 FROM tab2
----
-117

skipif mysql # not compatible
query I rowsort label-3484
SELECT ALL COUNT ( * ) * + - 39 AS col0 FROM tab2
----
-117

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3485
SELECT 18 AS col1 FROM tab0 WHERE ( - col1 - - - 17 - CAST( - - col0 AS DECIMAL ) * col2 + 20 ) IS NOT NULL
----
18
18
18

skipif mysql # not compatible
query I rowsort label-3485
SELECT 18 AS col1 FROM tab0 WHERE ( - col1 - - - 17 - CAST ( - - col0 AS REAL ) * col2 + 20 ) IS NOT NULL
----
18
18
18

query I rowsort
SELECT ALL 75 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col1 AND - col1
----

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE 8 * - 40 <> + col0 * - 72
----
14
47
5

query I rowsort
SELECT - 80 + + + col2 AS col0 FROM tab1 AS cor0
----
-12
-21
16

query III rowsort
SELECT ALL * FROM tab2 WHERE - + ( + - col2 ) IN ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3490
SELECT - - MAX( DISTINCT - col2 ) AS col1 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-3490
SELECT - - MAX ( DISTINCT - col2 ) AS col1 FROM tab1 AS cor0
----
-59

query I rowsort
SELECT + 46 * + col0 AS col1 FROM tab0 AS cor0
----
4002
4462
690

query I rowsort
SELECT - col2 * 24 * - 6 AS col1 FROM tab1 AS cor0
----
13824
8496
9792

query I rowsort
SELECT - ( + 49 ) FROM tab2 AS cor0
----
-49
-49
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-3494
SELECT ALL + 79 DIV - col0 AS col0 FROM tab0 cor0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-3494
SELECT ALL + 79 / - col0 AS col0 FROM tab0 cor0
----
-5
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 87 * - 62 ) NOT BETWEEN NULL AND + col1 / - - 23
----

query I rowsort
SELECT - - col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-3497
SELECT ALL col1 DIV - 92 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3497
SELECT ALL col1 / - 92 AS col1 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3498
SELECT ALL - col2 DIV + - col1 AS col0 FROM tab0
----
0
0
99

skipif mysql # not compatible
query I rowsort label-3498
SELECT ALL - col2 / + - col1 AS col0 FROM tab0
----
0
0
99

query III rowsort
SELECT ALL * FROM tab2 WHERE + + 91 IS NULL
----

query I rowsort
SELECT col1 FROM tab1 WHERE NOT - + col0 * col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3501
SELECT DISTINCT + COUNT( * ) * - 25 AS col2, ( + 65 ) * CAST( NULL AS SIGNED ) col1 FROM tab1 WHERE - - col2 IS NOT NULL
----
-75
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3501
SELECT DISTINCT + COUNT ( * ) * - 25 AS col2, ( + 65 ) * CAST ( NULL AS INTEGER ) col1 FROM tab1 WHERE - - col2 IS NOT NULL
----
-75
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col1 + - + col1 * - + col1 col0 FROM tab0 AS cor0
----
-1386
-96
5346

query I rowsort
SELECT - col0 * - col1 * col1 AS col1 FROM tab2 AS cor0
----
119646
336675
379456

query I rowsort
SELECT col2 * - 29 + + 69 AS col2 FROM tab1 AS cor0
----
-1642
-1903
-2715

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 INNER JOIN tab0 AS cor1 ON ( ( NULL ) IS NULL )
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query I rowsort
SELECT DISTINCT col2 * - - 54 * col0 AS col0 FROM tab1
----
264384
270810
334152

onlyif mysql # aggregate syntax: 
query I rowsort label-3507
SELECT ALL - MIN( + - 34 ) + - COUNT( * ) FROM tab0 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-3507
SELECT ALL - MIN ( + - 34 ) + - COUNT ( * ) FROM tab0 AS cor0
----
31

query II rowsort
SELECT + col0 + ( - 80 ), - 79 AS col2 FROM tab0 AS cor0
----
-65
-79
17
-79
7
-79

query I rowsort
SELECT + 41 + - - col1 AS col2 FROM tab0 cor0
----
122
42
62

query I rowsort
SELECT ( - col2 ) + + + 40 + - col2 FROM tab0 AS cor0
----
-158
-54
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3511
SELECT DISTINCT + + CAST( - col0 AS SIGNED ) + + + col0 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3511
SELECT DISTINCT + + CAST ( - col0 AS INTEGER ) + + + col0 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + col1 + + - col2 AS col2 FROM tab1 AS cor0
----
-21
-54
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-3513
SELECT ALL col2 * col0 - col0 + - ( 24 ) DIV - 48 AS col2 FROM tab2 AS cor0
----
1012
2496
4275

skipif mysql # not compatible
query I rowsort label-3513
SELECT ALL col2 * col0 - col0 + - ( 24 ) / - 48 AS col2 FROM tab2 AS cor0
----
1012
2496
4275

onlyif mysql # aggregate syntax: 
query I rowsort label-3514
SELECT DISTINCT - COUNT( DISTINCT + + col1 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3514
SELECT DISTINCT - COUNT ( DISTINCT + + col1 ) AS col2 FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col2 + - - 28 * - col0 col0, col1 - - 6 AS col0 FROM tab1 AS cor0
----
-1332
20
-2321
11
-2480
53

query II rowsort
SELECT ALL col2, col0 * - 4 AS col0 FROM tab0 AS cor0
----
10
-348
47
-60
99
-388

onlyif mysql # DIV for integer division: 
query I rowsort label-3517
SELECT 34 DIV col0 + + + ( + + col1 ) FROM tab2 WHERE - 91 + + col1 NOT IN ( col1, - col1 )
----
51
67
77

skipif mysql # not compatible
query I rowsort label-3517
SELECT 34 / col0 + + + ( + + col1 ) FROM tab2 WHERE - 91 + + col1 NOT IN ( col1, - col1 )
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3518
SELECT + CAST( NULL AS SIGNED ) FROM tab1 WHERE - col1 * - col2 IN ( - - col2 * + 23, col2, - col2 )
----

skipif mysql # not compatible
query I rowsort label-3518
SELECT + CAST ( NULL AS INTEGER ) FROM tab1 WHERE - col1 * - col2 IN ( - - col2 * + 23, col2, - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 88 + + 36 col2 FROM tab1
----
124
124
124

query I rowsort
SELECT col2 + + col2 - - col1 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - ( 81 ) AS col1 FROM tab1
----
-81
-81
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3522
SELECT + COUNT( 42 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3522
SELECT + COUNT ( 42 ) AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL col2 AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND NULL AND NOT ( NOT - - col0 IS NOT NULL )
----

query I rowsort
SELECT - col0 - + + 14 FROM tab1 AS cor0
----
-105
-65
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3525
SELECT DISTINCT - - MIN( ALL - 45 ) - + 92 FROM tab2 AS cor0
----
-137

skipif mysql # not compatible
query I rowsort label-3525
SELECT DISTINCT - - MIN ( ALL - 45 ) - + 92 FROM tab2 AS cor0
----
-137

query I rowsort
SELECT - 23 * - - 27 FROM tab1
----
-621
-621
-621

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3527
SELECT + CAST( - - 4 AS SIGNED ) AS col1 FROM tab1
----
4
4
4

skipif mysql # not compatible
query I rowsort label-3527
SELECT + CAST ( - - 4 AS INTEGER ) AS col1 FROM tab1
----
4
4
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3528
SELECT + COUNT( DISTINCT col0 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3528
SELECT + COUNT ( DISTINCT col0 ) AS col2 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3529
SELECT ALL SUM( DISTINCT - 68 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-68

skipif mysql # not compatible
query I rowsort label-3529
SELECT ALL SUM ( DISTINCT - 68 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-68

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 = col2 * ( - + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + 12 AS col0, col2 + - 16 FROM tab0 AS cor0
----
12
-6
12
31
12
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 14 col0 FROM tab0 AS cor0 WHERE NOT - col0 + col0 * + col0 BETWEEN - - 63 AND + 10
----
-14

query I rowsort
SELECT DISTINCT + 92 * col0 AS col0 FROM tab2 AS cor0
----
4232
5888
6900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3534
SELECT ALL MAX( ( - ( CAST( NULL AS SIGNED ) ) ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3534
SELECT ALL MAX ( ( - ( CAST ( NULL AS INTEGER ) ) ) ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3535
SELECT - SUM( DISTINCT - col0 ) AS col1 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-3535
SELECT - SUM ( DISTINCT - col0 ) AS col1 FROM tab0
----
199

query II rowsort
SELECT DISTINCT col0, - col2 AS col0 FROM tab0
----
15
-47
87
-10
97
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3537
SELECT + ( SUM( + col0 ) ) FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-3537
SELECT + ( SUM ( + col0 ) ) FROM tab2
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-3538
SELECT DISTINCT COUNT( * ) * - + 41 AS col1 FROM tab0 AS cor0
----
-123

skipif mysql # not compatible
query I rowsort label-3538
SELECT DISTINCT COUNT ( * ) * - + 41 AS col1 FROM tab0 AS cor0
----
-123

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT ( NOT ( NULL ) IS NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3540
SELECT ALL - MAX( - - col1 ) + 37 FROM tab2 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-3540
SELECT ALL - MAX ( - - col1 ) + 37 FROM tab2 AS cor0
----
-40

query I rowsort
SELECT ALL - 67 * + ( col2 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3953
-4556
-6432

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN - ( + 94 ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 54 + + - 42 col1 FROM tab1 AS cor0
----
12
12
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3544
SELECT ALL 25 DIV COUNT( ALL - col0 ) AS col2 FROM tab0 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-3544
SELECT ALL 25 / COUNT ( ALL - col0 ) AS col2 FROM tab0 AS cor0
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-3545
SELECT DISTINCT + COUNT( DISTINCT - 13 ) AS col2, SUM( DISTINCT + col0 ) FROM tab2
----
1
185

skipif mysql # not compatible
query II rowsort label-3545
SELECT DISTINCT + COUNT ( DISTINCT - 13 ) AS col2, SUM ( DISTINCT + col0 ) FROM tab2
----
1
185

query I rowsort
SELECT ALL - ( + col1 ) AS col0 FROM tab2 WHERE NOT + ( + - 51 ) IS NOT NULL
----

query I rowsort
SELECT - ( col2 ) + - + 20 AS col2 FROM tab0
----
-119
-30
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-3548
SELECT ALL + ( + + COUNT( * ) ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-3548
SELECT ALL + ( + + COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL IS NOT NULL
----
9

query I rowsort
SELECT ALL col0 + + col1 * + - col2 AS col1 FROM tab1 AS cor0
----
-1293
-210
-3105

query I rowsort
SELECT DISTINCT - 96 + 9 * + 99 FROM tab1 AS cor0
----
795

query I rowsort
SELECT ALL ( - - 22 ) + + col0 FROM tab1 cor0
----
107
113
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3552
SELECT DISTINCT + CAST( + col0 AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE - col2 * - col0 IS NOT NULL
----
15
87
97

skipif mysql # not compatible
query I rowsort label-3552
SELECT DISTINCT + CAST ( + col0 AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE - col2 * - col0 IS NOT NULL
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3553
SELECT DISTINCT + - CAST( 65 AS SIGNED ) + - col0 AS col0 FROM tab0 AS cor0
----
-152
-162
-80

skipif mysql # not compatible
query I rowsort label-3553
SELECT DISTINCT + - CAST ( 65 AS INTEGER ) + - col0 AS col0 FROM tab0 AS cor0
----
-152
-162
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3554
SELECT ALL + COUNT( * ) - + COUNT( * ) AS col1 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3554
SELECT ALL + COUNT ( * ) - + COUNT ( * ) AS col1 FROM tab1 cor0
----
0

query I rowsort
SELECT - ( + ( - col0 ) ) FROM tab1 AS cor0
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3556
SELECT DISTINCT CAST( NULL AS SIGNED ) - - - col0, - 54 AS col0 FROM tab1 AS cor0
----
NULL
-54

skipif mysql # not compatible
query II rowsort label-3556
SELECT DISTINCT CAST ( NULL AS INTEGER ) - - - col0, - 54 AS col0 FROM tab1 AS cor0
----
NULL
-54

query II rowsort
SELECT col1 AS col0, + col2 * + + col1 FROM tab2 WHERE - col0 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( NOT NULL NOT IN ( - col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3559
SELECT 57 - + COUNT( * ) AS col0 FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-3559
SELECT 57 - + COUNT ( * ) AS col0 FROM tab0
----
54

query II rowsort
SELECT col2 * + col2 - + - 84, 32 AS col0 FROM tab2
----
1684
32
3448
32
613
32

query I rowsort
SELECT DISTINCT + col2 * + 33 FROM tab2
----
1320
1914
759

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3562
SELECT DISTINCT + col1 - - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3562
SELECT DISTINCT + col1 - - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3563
SELECT DISTINCT 46 - + SUM( - col1 ) AS col0 FROM tab1
----
112

skipif mysql # not compatible
query I rowsort label-3563
SELECT DISTINCT 46 - + SUM ( - col1 ) AS col0 FROM tab1
----
112

onlyif mysql # DIV for integer division: 
query I rowsort label-3564
SELECT DISTINCT - + col1 DIV col0 AS col2 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3564
SELECT DISTINCT - + col1 / col0 AS col2 FROM tab1 cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3565
SELECT ALL 36 DIV + ( col1 ) + - col2 AS col2 FROM tab0 AS cor0
----
-47
-63
-9

skipif mysql # not compatible
query I rowsort label-3565
SELECT ALL 36 / + ( col1 ) + - col2 AS col2 FROM tab0 AS cor0
----
-47
-63
-9

query I rowsort
SELECT + AVG ( DISTINCT col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT + 50 * - 47 AS col1 FROM tab1 AS cor0
----
-2350
-2350
-2350

query III rowsort
SELECT * FROM tab0 WHERE NOT + 12 * + ( + col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT - 7 + - - col1 NOT IN ( + col1, - col0 - - + col0, col0 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - ( + + 6 ) FROM tab1 AS cor0
----
-6
-6
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3571
SELECT + - CAST( NULL AS SIGNED ) * + + ( - ( + - MAX( col0 ) ) ) + + + 6 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3571
SELECT + - CAST ( NULL AS INTEGER ) * + + ( - ( + - MAX ( col0 ) ) ) + + + 6 AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - 87 * 49 + + ( - - 89 ) * col2 AS col1 FROM tab1 AS cor0
----
1789
4281
988

onlyif mysql # aggregate syntax: 
query I rowsort label-3573
SELECT COUNT( ALL + - col2 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3573
SELECT COUNT ( ALL + - col2 ) AS col2 FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 53 * - col0 * + - col2 - 41 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3575
SELECT DISTINCT ( + - 22 ) * - COUNT( * ) FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-3575
SELECT DISTINCT ( + - 22 ) * - COUNT ( * ) FROM tab0
----
66

query III rowsort
SELECT * FROM tab2 WHERE - 9 NOT IN ( + col1 * col1 + - 5 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * 67 - + col1 col0 FROM tab2 WHERE NULL <= NULL
----

query I rowsort
SELECT DISTINCT col2 * + - col2 FROM tab2 AS cor0 WHERE col2 > NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3579
SELECT + - COUNT( * ) * + - 54 + 75, 7 + - 57 AS col1 FROM tab0 AS cor0
----
237
-50

skipif mysql # not compatible
query II rowsort label-3579
SELECT + - COUNT ( * ) * + - 54 + 75, 7 + - 57 AS col1 FROM tab0 AS cor0
----
237
-50

query I rowsort
SELECT ALL + 19 + + col2 AS col1 FROM tab0 AS cor0
----
118
29
66

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - 11 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 72 + - 13 col2 FROM tab2, tab1 AS cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

onlyif mysql # aggregate syntax: 
query I rowsort label-3583
SELECT DISTINCT - MAX( DISTINCT + col1 ) AS col1 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-3583
SELECT DISTINCT - MAX ( DISTINCT + col1 ) AS col1 FROM tab2
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3584
SELECT DISTINCT - ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 cor0 WHERE + col1 NOT BETWEEN NULL AND - - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3584
SELECT DISTINCT - ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 cor0 WHERE + col1 NOT BETWEEN NULL AND - - col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3585
SELECT ALL + ( + - col1 ) + - ( - CAST( NULL AS SIGNED ) ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3585
SELECT ALL + ( + - col1 ) + - ( - CAST ( NULL AS INTEGER ) ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3586
SELECT + COUNT( * ) + - MAX( ( - 23 ) ) FROM tab1 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-3586
SELECT + COUNT ( * ) + - MAX ( ( - 23 ) ) FROM tab1 AS cor0
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3587
SELECT + 81 + - CAST( - COUNT( ALL col0 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-3587
SELECT + 81 + - CAST ( - COUNT ( ALL col0 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3588
SELECT + 86 + + - SUM( 8 ) FROM tab0 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-3588
SELECT + 86 + + - SUM ( 8 ) FROM tab0 AS cor0
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3589
SELECT - CAST( + - col1 AS SIGNED ) + - col0 + + col1 FROM tab2 cor0
----
56
59
90

skipif mysql # not compatible
query I rowsort label-3589
SELECT - CAST ( + - col1 AS INTEGER ) + - col0 + + col1 FROM tab2 cor0
----
56
59
90

query II rowsort
SELECT DISTINCT col2 + - 73, + col0 AS col2 FROM tab1
----
-14
85
-5
91
23
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3591
SELECT DISTINCT 44 * - - MIN( ALL - 60 ) col2 FROM tab0
----
-2640

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3591
SELECT DISTINCT 44 * - - MIN ( ALL - 60 ) col2 FROM tab0
----
-2640

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3592
SELECT 26 * + CAST( col0 AS SIGNED ) col2, 32 AS col0 FROM tab1
----
1326
32
2210
32
2366
32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3592
SELECT 26 * + CAST ( col0 AS INTEGER ) col2, 32 AS col0 FROM tab1
----
1326
32
2210
32
2366
32

onlyif mysql # DIV for integer division: 
query I rowsort label-3593
SELECT DISTINCT + col0 DIV 79 DIV - col0 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3593
SELECT DISTINCT + col0 / 79 / - col0 AS col1 FROM tab2
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN - col2 AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3595
SELECT ALL - CAST( NULL AS SIGNED ) / + - col0, col1 * + - col2 AS col0 FROM tab0 AS cor0
----
NULL
-210
NULL
-3807
NULL
-99

skipif mysql # not compatible
query II rowsort label-3595
SELECT ALL - CAST ( NULL AS INTEGER ) / + - col0, col1 * + - col2 AS col0 FROM tab0 AS cor0
----
NULL
-210
NULL
-3807
NULL
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-3596
SELECT DISTINCT + col0 DIV + 7 - col0 FROM tab0 cor0
----
-13
-75
-84

skipif mysql # not compatible
query I rowsort label-3596
SELECT DISTINCT + col0 / + 7 - col0 FROM tab0 cor0
----
-13
-75
-84

onlyif mysql # DIV for integer division: 
query II rowsort label-3597
SELECT 8 col1, - 98 DIV 48 FROM tab2
----
8
-2
8
-2
8
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3597
SELECT 8 col1, - 98 / 48 FROM tab2
----
8
-2
8
-2
8
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 73 + 97 - - col1 * - 0 col2 FROM tab1 AS cor0
----
170

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col2 * + 26 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3600
SELECT ALL - CAST( NULL AS SIGNED ) * - 11 + + - 28 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3600
SELECT ALL - CAST ( NULL AS INTEGER ) * - 11 + + - 28 FROM tab0 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + + col2, 6 * + col0 FROM tab2 AS cor0
----
23
276
40
384
58
450

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 87 + + col1 * + col0 + ( 45 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + col0 AS col1, col0 * + col2 - - 72 - - col1 - + ( - 22 ) AS col0 FROM tab0 AS cor0
----
15
880
87
985
97
9698

onlyif mysql # aggregate syntax: 
query I rowsort label-3604
SELECT ALL - COUNT( * ) * - COUNT( * ) AS col1 FROM tab1, tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-3604
SELECT ALL - COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab1, tab0 AS cor0
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-3605
SELECT + col0 DIV + 54 AS col0 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3605
SELECT + col0 / + 54 AS col0 FROM tab2
----
0
1
1

query I rowsort
SELECT 51 * + 64 * - 32 AS col0 FROM tab1
----
-104448
-104448
-104448

onlyif mysql # DIV for integer division: 
query II rowsort label-3607
SELECT col1 DIV + col1 AS col0, 20 * ( - 15 ) DIV - col1 FROM tab2
----
1
3
1
4
1
5

skipif mysql # not compatible
query II rowsort label-3607
SELECT col1 / + col1 AS col0, 20 * ( - 15 ) / - col1 FROM tab2
----
1
3
1
4
1
5

query I rowsort
SELECT + col2 * ( - col2 ) AS col2 FROM tab0
----
-100
-2209
-9801

query II rowsort
SELECT ALL + ( col0 ), - col1 - 32 FROM tab1
----
51
-46
85
-37
91
-79

query I rowsort
SELECT - 83 * 22 AS col0 FROM tab0
----
-1826
-1826
-1826

onlyif mysql # aggregate syntax: 
query I rowsort label-3611
SELECT DISTINCT + COUNT( * ) * - 83 FROM tab2 AS cor0 WHERE col0 * - - col2 IN ( + + col2 * col1 )
----
0

skipif mysql # not compatible
query I rowsort label-3611
SELECT DISTINCT + COUNT ( * ) * - 83 FROM tab2 AS cor0 WHERE col0 * - - col2 IN ( + + col2 * col1 )
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3612
SELECT - col1 DIV col1 + + 7 + col0 * - 35 + CAST( + 45 AS SIGNED ) * - col0 FROM tab2 AS cor0
----
-3674
-5114
-5994

skipif mysql # not compatible
query I rowsort label-3612
SELECT - col1 / col1 + + 7 + col0 * - 35 + CAST ( + 45 AS INTEGER ) * - col0 FROM tab2 AS cor0
----
-3674
-5114
-5994

onlyif mysql # DIV for integer division: 
query I rowsort label-3613
SELECT ALL + 93 DIV 62 + + + col0 AS col2 FROM tab0 AS cor0
----
16
88
98

skipif mysql # not compatible
query I rowsort label-3613
SELECT ALL + 93 / 62 + + + col0 AS col2 FROM tab0 AS cor0
----
16
88
98

query III rowsort
SELECT * FROM tab2 WHERE NULL > + 67
----

query I rowsort
SELECT DISTINCT + col0 * - col0 + + col2 FROM tab0 AS cor0
----
-178
-7559
-9310

query I rowsort
SELECT ALL + - col1 + + 47 FROM tab2 AS cor0
----
-20
-30
-4

query I rowsort
SELECT 67 - - 36 * - - col0 * col2 * 67 FROM tab2 AS cor0
----
10492267
2551963
6174787

query I rowsort
SELECT + + 83 - - ( + col1 ) FROM tab1 cor0
----
130
88
97

query I rowsort
SELECT DISTINCT - - col0 / - - ( 59 ) + + col1 AS col0 FROM tab1 AS cor0 WHERE NOT col2 + - 97 + - - 46 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3620
SELECT DISTINCT - col1 * - CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3620
SELECT DISTINCT - col1 * - CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3621
SELECT DISTINCT + 80 * + COUNT( * ), 12 col2 FROM tab2
----
240
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3621
SELECT DISTINCT + 80 * + COUNT ( * ), 12 col2 FROM tab2
----
240
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3622
SELECT ALL - CAST( NULL AS SIGNED ) / ( + col1 ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3622
SELECT ALL - CAST ( NULL AS INTEGER ) / ( + col1 ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3623
SELECT ALL - 97 DIV - col1 AS col2 FROM tab0
----
1
4
97

skipif mysql # not compatible
query I rowsort label-3623
SELECT ALL - 97 / - col1 AS col2 FROM tab0
----
1
4
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3624
SELECT ALL COUNT( col2 ) DIV + + 70 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3624
SELECT ALL COUNT ( col2 ) / + + 70 FROM tab1
----
0

query I rowsort
SELECT DISTINCT - ( col1 ) * - 75 FROM tab2 WHERE NOT NULL IN ( + col2, + col1 * col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + 21, + col0 + - - col0 * + col1 * - col2 col0 FROM tab1 AS cor0
----
21
-24990
21
-290745
21
-68493

query II rowsort
SELECT DISTINCT - 72 AS col1, col1 AS col1 FROM tab2 AS cor0
----
-72
51
-72
67
-72
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3628
SELECT MIN( DISTINCT + + CAST( + ( + + col0 ) AS SIGNED ) ) * - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3628
SELECT MIN ( DISTINCT + + CAST ( + ( + + col0 ) AS INTEGER ) ) * - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT col0 * - 60 AS col0 FROM tab1
----
-3060
-5100
-5460

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3630
SELECT DISTINCT * FROM tab1 WHERE CAST( col2 AS SIGNED ) - col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-3630
SELECT DISTINCT * FROM tab1 WHERE CAST ( col2 AS INTEGER ) - col1 IS NULL
----

query I rowsort
SELECT ALL + 28 + - - 18 AS col1 FROM tab2 AS cor0
----
46
46
46

onlyif mysql # DIV for integer division: 
query I rowsort label-3632
SELECT ALL - col2 DIV col1 + + 30 - - - col0 * col0 AS col2 FROM tab2 AS cor0
----
-2086
-4066
-5595

skipif mysql # not compatible
query I rowsort label-3632
SELECT ALL - col2 / col1 + + 30 - - - col0 * col0 AS col2 FROM tab2 AS cor0
----
-2086
-4066
-5595

query I rowsort
SELECT - col2 * + + col0 FROM tab2 AS cor0
----
-1058
-2560
-4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col1 * + - col1 AS col2, + col0 col1 FROM tab0 cor0
----
1
97
441
87
6561
15

query I rowsort
SELECT ALL 56 * + col1 AS col0 FROM tab0 AS cor0
----
1176
4536
56

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 16 < + - col0 * - 33
----

query I rowsort
SELECT DISTINCT 93 * - - col1 AS col1 FROM tab0
----
1953
7533
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3638
SELECT DISTINCT MIN( ALL + 79 ) * - 64 + 67 FROM tab0
----
-4989

skipif mysql # not compatible
query I rowsort label-3638
SELECT DISTINCT MIN ( ALL + 79 ) * - 64 + 67 FROM tab0
----
-4989

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col2, - 62 AS col0 FROM tab2
----
-51
-62
-67
-62
-77
-62

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3640
SELECT CAST( NULL AS DECIMAL ) + + + MAX( - 96 ) FROM tab1 cor0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3640
SELECT CAST ( NULL AS REAL ) + + + MAX ( - 96 ) FROM tab1 cor0 WHERE NULL IS NULL
----
NULL

query II rowsort
SELECT + + 70 AS col0, col1 FROM tab0 cor0
----
70
1
70
21
70
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3642
SELECT ( + MAX( 65 ) ) * + + 74 FROM tab0 AS cor0
----
4810

skipif mysql # not compatible
query I rowsort label-3642
SELECT ( + MAX ( 65 ) ) * + + 74 FROM tab0 AS cor0
----
4810

query II rowsort
SELECT DISTINCT - + col2 * - - col0 + - col0, + col0 - + + ( + - col0 ) + + - col2 AS col1 FROM tab1 AS cor0
----
-4947
6
-5100
111
-6279
114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3644
SELECT DISTINCT + col1 AS col2 FROM tab2 WHERE col1 * + CAST( col2 AS SIGNED ) * 29 IS NOT NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-3644
SELECT DISTINCT + col1 AS col2 FROM tab2 WHERE col1 * + CAST ( col2 AS INTEGER ) * 29 IS NOT NULL
----
51
67
77

query I rowsort
SELECT 29 * + col0 - - + 95 FROM tab1
----
1574
2560
2734

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IS NOT NULL OR NOT col0 + - + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 * - + 19 + + col1 * + 59 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - + col2 col0 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT - col2 + + col1 - + col0 FROM tab1 AS cor0
----
-112
-133
-139

onlyif mysql # aggregate syntax: 
query I rowsort label-3650
SELECT ALL COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE 66 + + col1 / - 90 IN ( + col2, 20, + 71 )
----
0

skipif mysql # not compatible
query I rowsort label-3650
SELECT ALL COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE 66 + + col1 / - 90 IN ( + col2, 20, + 71 )
----
0

query I rowsort
SELECT ALL + + col2 FROM tab0 AS cor0 WHERE NOT + 49 <= col0
----
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 * + ( - col2 ), col0 col1 FROM tab1
----
-4896
51
-5015
85
-6188
91

onlyif mysql # DIV for integer division: 
query I rowsort label-3653
SELECT ALL - 36 DIV - col0 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-3653
SELECT ALL - 36 / - col0 FROM tab0
----
0
0
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 71 * - 45 col1 FROM tab0
----
-3195
-3195
-3195

query I rowsort
SELECT ALL + col0 * + 43 AS col0 FROM tab2
----
1978
2752
3225

query I rowsort
SELECT + col2 * - 49 FROM tab1
----
-2891
-3332
-4704

query I rowsort
SELECT DISTINCT - + ( + - col1 ) AS col2 FROM tab0 cor0
----
1
21
81

skipif postgresql # PostgreSQL handles NULL in DIV/0 by differently
query II rowsort
SELECT 55 / 0 AS col1, + col1 * col1 * + - col0 AS col2 FROM tab2 cor0 WHERE NOT NULL >= NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 BETWEEN NULL AND + + col0
----
15
81
47
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3660
SELECT DISTINCT 54 * + MIN( 83 ) AS col2 FROM tab2 cor0
----
4482

skipif mysql # not compatible
query I rowsort label-3660
SELECT DISTINCT 54 * + MIN ( 83 ) AS col2 FROM tab2 cor0
----
4482

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL < + + 86
----

query I rowsort
SELECT ALL - 82 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c

query I rowsort
SELECT ALL - 39 + + - col2 FROM tab1
----
-107
-135
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3664
SELECT DISTINCT CAST( + - col1 AS SIGNED ) col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3664
SELECT DISTINCT CAST ( + - col1 AS INTEGER ) col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + 70 + - 19 FROM tab0 cor0
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3666
SELECT ALL 10 + - + col0 + + + CAST( + col2 AS SIGNED ) * - - 3 AS col2 FROM tab0 AS cor0
----
-47
136
210

skipif mysql # not compatible
query I rowsort label-3666
SELECT ALL 10 + - + col0 + + + CAST ( + col2 AS INTEGER ) * - - 3 AS col2 FROM tab0 AS cor0
----
-47
136
210

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 78 col2 FROM tab1 cor0
----
78
78
78

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3668
SELECT * FROM tab1 AS cor0 WHERE ( CAST( NULL AS SIGNED ) BETWEEN ( - col1 ) AND NULL )
----

skipif mysql # not compatible
query III rowsort label-3668
SELECT * FROM tab1 AS cor0 WHERE ( CAST ( NULL AS INTEGER ) BETWEEN ( - col1 ) AND NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3669
SELECT + - col0 FROM tab2 AS cor0 WHERE 94 * 34 + - CAST( - 27 AS SIGNED ) = + ( - col0 )
----

skipif mysql # not compatible
query I rowsort label-3669
SELECT + - col0 FROM tab2 AS cor0 WHERE 94 * 34 + - CAST ( - 27 AS INTEGER ) = + ( - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3670
SELECT - col0 * col2 * + 25 AS col1 FROM tab1 AS cor0 WHERE ( - col1 ) / + 87 * - col1 + col1 * + CAST( col2 AS SIGNED ) > 87 * - 23
----
-122400
-125375
-154700

skipif mysql # not compatible
query I rowsort label-3670
SELECT - col0 * col2 * + 25 AS col1 FROM tab1 AS cor0 WHERE ( - col1 ) / + 87 * - col1 + col1 * + CAST ( col2 AS INTEGER ) > 87 * - 23
----
-122400
-125375
-154700

query II rowsort
SELECT 80 AS col0, col1 FROM tab1 cor0
----
80
14
80
47
80
5

onlyif mysql # DIV for integer division: 
query II rowsort label-3672
SELECT col1 * col2 DIV - 47 + - - col2, 36 AS col2 FROM tab2 AS cor0
----
-1
36
-24
36
-25
36

skipif mysql # not compatible
query II rowsort label-3672
SELECT col1 * col2 / - 47 + - - col2, 36 AS col2 FROM tab2 AS cor0
----
-1
36
-24
36
-25
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3673
SELECT ( + CAST( - col0 AS SIGNED ) ) * + 77 AS col1 FROM tab2
----
-3542
-4928
-5775

skipif mysql # not compatible
query I rowsort label-3673
SELECT ( + CAST ( - col0 AS INTEGER ) ) * + 77 AS col1 FROM tab2
----
-3542
-4928
-5775

onlyif mysql # DIV for integer division: 
query I rowsort label-3674
SELECT DISTINCT + col0 DIV + 19 AS col2 FROM tab2
----
2
3

skipif mysql # not compatible
query I rowsort label-3674
SELECT DISTINCT + col0 / + 19 AS col2 FROM tab2
----
2
3

query III rowsort
SELECT * FROM tab0 WHERE + col1 * - col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 12 < - ( - - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3677
SELECT + 24 DIV + - ( col1 ) * + col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3677
SELECT + 24 / + - ( col1 ) * + col2 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3678
SELECT ALL SUM( DISTINCT + - 89 ), CAST( NULL AS SIGNED ) + + COUNT( * ) AS col2 FROM tab1
----
-89
NULL

skipif mysql # not compatible
query II rowsort label-3678
SELECT ALL SUM ( DISTINCT + - 89 ), CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col2 FROM tab1
----
-89
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 51 * + col0 * 78 col0 FROM tab0
----
346086
385866
59670

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE NOT + - 37 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 + col2 + col0 * col0 IS NULL AND 37 <= - + 63
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3682
SELECT + + CAST( - + ( - + col1 ) AS SIGNED ) + + col1 FROM tab0 AS cor0
----
162
2
42

skipif mysql # not compatible
query I rowsort label-3682
SELECT + + CAST ( - + ( - + col1 ) AS INTEGER ) + + col1 FROM tab0 AS cor0
----
162
2
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3683
SELECT MIN( ALL - ( 87 ) ) AS col0 FROM tab0 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-3683
SELECT MIN ( ALL - ( 87 ) ) AS col0 FROM tab0 AS cor0
----
-87

query I rowsort
SELECT DISTINCT + 43 * - - col0 - - col1 AS col1 FROM tab1
----
2207
3660
3960

query I rowsort
SELECT DISTINCT - 53 - - + 24 + 4 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-25

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE ( NULL ) NOT BETWEEN NULL AND ( - 68 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3687
SELECT + - col2 DIV + + 20 AS col2 FROM tab2 AS cor0
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-3687
SELECT + - col2 / + + 20 AS col2 FROM tab2 AS cor0
----
-1
-2
-2

query I rowsort
SELECT ALL - col0 FROM tab2 AS cor0 WHERE NOT col1 + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3689
SELECT ALL + - 16 AS col1, - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-16
-3

skipif mysql # not compatible
query II rowsort label-3689
SELECT ALL + - 16 AS col1, - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-16
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-3690
SELECT ALL COUNT( * ) AS col1, + 34 AS col0 FROM tab2 AS cor0
----
3
34

skipif mysql # not compatible
query II rowsort label-3690
SELECT ALL COUNT ( * ) AS col1, + 34 AS col0 FROM tab2 AS cor0
----
3
34

query I rowsort
SELECT ALL + - ( + + col0 ) * + 2 * - - 65 * - col1 FROM tab0 AS cor0
----
12610
157950
237510

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 IN ( - - ( - col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3693
SELECT MAX( + + col2 ) AS col0 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-3693
SELECT MAX ( + + col2 ) AS col0 FROM tab2 AS cor0
----
58

query I rowsort
SELECT - + col0 * - 54 FROM tab0 AS cor0
----
4698
5238
810

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 + - + 15 + + - col2 * - + 23 + + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3696
SELECT DISTINCT 65 FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) * + col0 + - + CAST( NULL AS SIGNED ) + + col1 IS NOT NULL
----
65

skipif mysql # not compatible
query I rowsort label-3696
SELECT DISTINCT 65 FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) * + col0 + - + CAST ( NULL AS INTEGER ) + + col1 IS NOT NULL
----
65

query II rowsort
SELECT ALL - 10 * - col0 AS col0, - col1 + col1 - + + 33 * + + col2 AS col1 FROM tab1 AS cor0
----
510
-3168
850
-1947
910
-2244

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + 43 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3699
SELECT DISTINCT - MAX( CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3699
SELECT DISTINCT - MAX ( CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT col2 FROM tab1 WHERE NOT - + 85 * 84 * 78 - - col0 IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query II rowsort label-3701
SELECT ALL + - COUNT( * ) col2, + COUNT( * ) * + - 51 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9
-459

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3701
SELECT ALL + - COUNT ( * ) col2, + COUNT ( * ) * + - 51 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9
-459

query I rowsort
SELECT 24 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

query I rowsort
SELECT + col0 AS col2 FROM tab0 AS cor0 WHERE col2 >= NULL
----

query II rowsort
SELECT col2 AS col0, 77 AS col0 FROM tab1 AS cor0
----
59
77
68
77
96
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col0 + - 75 col0 FROM tab2 AS cor0
----
2271
4853
4950

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3706
SELECT DISTINCT + 59 + - COUNT( * ) + COUNT( * ) DIV + COUNT( * ) AS col2 FROM tab1 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-3706
SELECT DISTINCT + 59 + - COUNT ( * ) + COUNT ( * ) / + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
57

query I rowsort
SELECT ALL - - col1 * col1 + - + ( - - col0 ) + + 23 * - 75 + col1 AS col2 FROM tab1 AS cor0
----
-1566
-1780
440

query I rowsort
SELECT - - col1 + - col2 + - col1 AS col2 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT ALL + col2 - col0 FROM tab1 AS cor0 WHERE NOT col1 - - col0 IN ( + 42, - 93, + - col1, + - 89, + - 15 )
----
-23
-26
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + 33 col0 FROM tab1 AS cor0 WHERE NOT NULL >= col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3711
SELECT 2 DIV - + 28 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3711
SELECT 2 / - + 28 AS col2 FROM tab2
----
0
0
0

query II rowsort
SELECT + col0, + col2 - + col2 FROM tab0 cor0
----
15
0
87
0
97
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL = col2 - - 95
----

query II rowsort
SELECT - col1, + ( + 98 ) AS col1 FROM tab0 AS cor0
----
-1
98
-21
98
-81
98

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 + - + ( - col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3716
SELECT DISTINCT + - col0 / - col0 - + 62 + 74 + + col2 - - ( - + CAST( NULL AS SIGNED ) ) * + 3 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3716
SELECT DISTINCT + - col0 / - col0 - + 62 + 74 + + col2 - - ( - + CAST ( NULL AS INTEGER ) ) * + 3 AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3717
SELECT ALL - - CAST( + 84 AS SIGNED ) - col2 + - + 88 * 65 FROM tab2 cor0
----
-5659
-5676
-5694

skipif mysql # not compatible
query I rowsort label-3717
SELECT ALL - - CAST ( + 84 AS INTEGER ) - col2 + - + 88 * 65 FROM tab2 cor0
----
-5659
-5676
-5694

query I rowsort
SELECT ALL - + col0 AS col2 FROM tab0 WHERE - - col0 + ( - col2 ) > + 76
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3719
SELECT 97 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3719
SELECT 97 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 74 * - + col2 * + 80 FROM tab1 AS cor0
----
349280
402560
568320

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 BETWEEN - col0 AND NULL
----
46
51
23
64
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3722
SELECT DISTINCT + COUNT( * ) + + COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
6

skipif mysql # not compatible
query I rowsort label-3722
SELECT DISTINCT + COUNT ( * ) + + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3723
SELECT DISTINCT + ( + ( + - CAST( NULL AS SIGNED ) ) ) col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3723
SELECT DISTINCT + ( + ( + - CAST ( NULL AS INTEGER ) ) ) col2 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT - col1 AS col0, col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - col2 FROM tab1 AS cor0 WHERE NOT - col0 * - col2 IS NULL
----
-59
-68
-96

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 + + col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3727
SELECT ALL MIN( DISTINCT + 18 ) col2 FROM tab2
----
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3727
SELECT ALL MIN ( DISTINCT + 18 ) col2 FROM tab2
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3728
SELECT DISTINCT + 67, ( - + AVG ( ALL CAST( NULL AS SIGNED ) ) ) AS col2 FROM tab2
----
67
NULL

skipif mysql # not compatible
query II rowsort label-3728
SELECT DISTINCT + 67, ( - + AVG ( ALL CAST ( NULL AS INTEGER ) ) ) AS col2 FROM tab2
----
67
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3729
SELECT - MIN( - 48 ) AS col1 FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-3729
SELECT - MIN ( - 48 ) AS col1 FROM tab2
----
48

query II rowsort
SELECT col0, col2 * 29 FROM tab1
----
51
2784
85
1711
91
1972

onlyif mysql # aggregate syntax: 
query I rowsort label-3731
SELECT DISTINCT - MAX( - + col0 ) AS col2 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-3731
SELECT DISTINCT - MAX ( - + col0 ) AS col2 FROM tab0
----
15

query I rowsort
SELECT ALL + col0 * + - 22 FROM tab2
----
-1012
-1408
-1650

query I rowsort
SELECT ALL 45 * + + col0 FROM tab0
----
3915
4365
675

onlyif mysql # aggregate syntax: 
query I rowsort label-3734
SELECT DISTINCT - COUNT( col0 ) col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3734
SELECT DISTINCT - COUNT ( col0 ) col1 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-3735
SELECT DISTINCT - MIN( + col0 ) AS col1, + MAX( DISTINCT + 1 ) AS col2 FROM tab1
----
-51
1

skipif mysql # not compatible
query II rowsort label-3735
SELECT DISTINCT - MIN ( + col0 ) AS col1, + MAX ( DISTINCT + 1 ) AS col2 FROM tab1
----
-51
1

query I rowsort
SELECT - col1 + + col1 + col2 AS col1 FROM tab1
----
59
68
96

query I rowsort
SELECT ALL - 4 FROM tab0 WHERE - - col0 = col0 * + col0 * - col0
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 91 * + col2 * - col2 < NULL
----

query I rowsort
SELECT ALL + col0 + + - 93 AS col1 FROM tab0 AS cor0
----
-6
-78
4

onlyif mysql # aggregate syntax: 
query II rowsort label-3740
SELECT + MIN( - + col2 ), 57 AS col1 FROM tab2 AS cor0
----
-58
57

skipif mysql # not compatible
query II rowsort label-3740
SELECT + MIN ( - + col2 ), 57 AS col1 FROM tab2 AS cor0
----
-58
57

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3741
SELECT DISTINCT - col2 + - - CAST( NULL AS DECIMAL ) FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-3741
SELECT DISTINCT - col2 + - - CAST ( NULL AS REAL ) FROM tab2 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + - 7 col2 FROM tab1
----
-329
-35
-98

query I rowsort
SELECT 92 - col2 FROM tab0
----
-7
45
82

query II rowsort
SELECT col2 + - + ( col0 ) AS col0, + col1 FROM tab2
----
-17
67
-23
51
-24
77

query I rowsort
SELECT + col2 * col0 FROM tab2 cor0 WHERE NULL IS NULL
----
1058
2560
4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3746
SELECT ALL + CAST( NULL AS SIGNED ) + 61 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3746
SELECT ALL + CAST ( NULL AS INTEGER ) + 61 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 AS col2 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - col2 - + 88 FROM tab2 AS cor0
----
-30
-48
-65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 99 + - - col0 col1 FROM tab2 AS cor0
----
-24
-35
-53

query II rowsort
SELECT ALL + col1, col0 + - 90 FROM tab1 cor0
----
14
-39
47
1
5
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3751
SELECT DISTINCT - COUNT( 77 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3751
SELECT DISTINCT - COUNT ( 77 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + col2 * + 11 AS col0 FROM tab2
----
253
440
638

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3753
SELECT - col1, - CAST( NULL AS SIGNED ) * + + col0 + - - col2 * - col0 + + col0 col0 FROM tab0
----
-1
NULL
-21
NULL
-81
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3753
SELECT - col1, - CAST ( NULL AS INTEGER ) * + + col0 + - - col2 * - col0 + + col0 col0 FROM tab0
----
-1
NULL
-21
NULL
-81
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3754
SELECT ALL col1 DIV + + col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3754
SELECT ALL col1 / + + col1 FROM tab1
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 50 col1 FROM tab1 AS cor0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-3756
SELECT - COUNT( * ) * - 40 * - 38 AS col2 FROM tab2 AS cor0
----
-4560

skipif mysql # not compatible
query I rowsort label-3756
SELECT - COUNT ( * ) * - 40 * - 38 AS col2 FROM tab2 AS cor0
----
-4560

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 + - col1 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3758
SELECT - col1 DIV - - col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3758
SELECT - col1 / - - col0 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND col0 + + - ( col2 )
----

query I rowsort
SELECT ALL + col1 + col1 + + 25 AS col2 FROM tab1 cor0 WHERE NOT NULL = col0
----

query I rowsort
SELECT ALL + + col1 + 23 FROM tab0 AS cor0 WHERE NOT - col1 * + col2 < col2 * - 91 + - col2
----
104
24
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3762
SELECT + SUM( DISTINCT - col1 ) * + MAX( DISTINCT 76 ) AS col2 FROM tab1 AS cor0
----
-5016

skipif mysql # not compatible
query I rowsort label-3762
SELECT + SUM ( DISTINCT - col1 ) * + MAX ( DISTINCT 76 ) AS col2 FROM tab1 AS cor0
----
-5016

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3763
SELECT DISTINCT + ( + CAST( NULL AS SIGNED ) ) col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3763
SELECT DISTINCT + ( + CAST ( NULL AS INTEGER ) ) col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3764
SELECT + 41 * + col1 * - - col1 DIV - col1 FROM tab1 AS cor0
----
-1927
-205
-574

skipif mysql # not compatible
query I rowsort label-3764
SELECT + 41 * + col1 * - - col1 / - col1 FROM tab1 AS cor0
----
-1927
-205
-574

query II rowsort
SELECT col2, col2 * + col1 AS col2 FROM tab0 cor0 WHERE NOT NULL < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - col2 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3767
SELECT ALL + COUNT( * ) + - COUNT( ALL - - col2 ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3767
SELECT ALL + COUNT ( * ) + - COUNT ( ALL - - col2 ) AS col2 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3768
SELECT - + MAX( col2 ) AS col1 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-3768
SELECT - + MAX ( col2 ) AS col1 FROM tab0 AS cor0
----
-99

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + col1 + - 25 IS NOT NULL
----

query II rowsort
SELECT ALL col1 AS col2, col1 AS col1 FROM tab2
----
51
51
67
67
77
77

query I rowsort
SELECT ALL - - ( col1 ) + + col1 + col0 FROM tab1 AS cor0
----
185
79
95

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL > - 1 * col2
----

query I rowsort
SELECT DISTINCT + - 6 + - col2 FROM tab0 AS cor0
----
-105
-16
-53

query I rowsort
SELECT ALL - 61 + - col0 FROM tab2 AS cor0
----
-107
-125
-136

query I rowsort
SELECT ALL + 2 * col0 * ( - col0 ) AS col1 FROM tab0 AS cor0
----
-15138
-18818
-450

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + col2 * - - 88 col2 FROM tab2
----
-103224
-271040
-341968

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IS NOT NULL OR NOT + col1 <= 71
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL ( - ( 47 ) ) * - col1 + col0 + + col1 FROM tab1
----
2347
325
723

query I rowsort
SELECT ALL 32 + ( - - col2 ) FROM tab0
----
131
42
79

query I rowsort
SELECT ALL - 91 + - col0 FROM tab2
----
-137
-155
-166

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3781
SELECT DISTINCT - MIN( + col2 ) * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3781
SELECT DISTINCT - MIN ( + col2 ) * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3782
SELECT ALL - COUNT( - - col0 ) FROM tab2 AS cor0 WHERE NOT + ( + 67 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3782
SELECT ALL - COUNT ( - - col0 ) FROM tab2 AS cor0 WHERE NOT + ( + 67 ) IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT + ( - 70 ) FROM tab0 AS cor0 WHERE NOT 24 + + col0 < - ( col2 )
----
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 55 col2 FROM tab2 cor0
----
-55

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 * + 17 = - col2 + + 90
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3786
SELECT DISTINCT + 75 * - COUNT( * ) col1 FROM tab0
----
-225

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3786
SELECT DISTINCT + 75 * - COUNT ( * ) col1 FROM tab0
----
-225

onlyif mysql # DIV for integer division: 
query I rowsort label-3787
SELECT ALL 47 DIV 96 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3787
SELECT ALL 47 / 96 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - ( + 85 ) >= NULL
----

query I rowsort
SELECT ALL - col2 * + - col2 * + + col0 FROM tab0 AS cor0
----
33135
8700
950697

query I rowsort
SELECT 67 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3791
SELECT - CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0 WHERE NOT 61 * col0 < NULL
----

skipif mysql # not compatible
query I rowsort label-3791
SELECT - CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0 WHERE NOT 61 * col0 < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3792
SELECT ALL + CAST( + MAX( + ( 12 ) ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-3792
SELECT ALL + CAST ( + MAX ( + ( 12 ) ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3793
SELECT CAST( - - MAX( DISTINCT 73 ) AS SIGNED ) AS col0 FROM tab0
----
73

skipif mysql # not compatible
query I rowsort label-3793
SELECT CAST ( - - MAX ( DISTINCT 73 ) AS INTEGER ) AS col0 FROM tab0
----
73

query II rowsort
SELECT col0 * col2 AS col0, + ( - ( - - col0 ) ) - + col2 FROM tab1
----
4896
-147
5015
-144
6188
-159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + col2 * - 47 FROM tab2
----
-1081
-1880
-2726

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 * + + col2 + col2 BETWEEN + + col0 AND + 56
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND + col0 / - 31
----

query II rowsort
SELECT - 98 AS col2, + col1 AS col2 FROM tab1
----
-98
14
-98
47
-98
5

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - + col1 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE 72 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 92 ) col1 FROM tab1
----
92
92
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3803
SELECT DISTINCT - COUNT( * ) + COUNT( 44 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3803
SELECT DISTINCT - COUNT ( * ) + COUNT ( 44 ) FROM tab2
----
0

query I rowsort
SELECT ALL ( col1 ) + + 57 AS col1 FROM tab2
----
108
124
134

query II rowsort
SELECT ALL 62, col0 + - + col2 - + 15 + 5 + + 61 AS col0 FROM tab2 AS cor0
----
62
68
62
74
62
75

query I rowsort
SELECT DISTINCT + col1 * 82 + - col0 AS col1 FROM tab0
----
-15
1635
6627

query I rowsort
SELECT DISTINCT 32 * 51 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
1632

onlyif mysql # aggregate syntax: 
query I rowsort label-3808
SELECT ALL + ( 95 ) + - ( + COUNT( * ) ) FROM tab0
----
92

skipif mysql # not compatible
query I rowsort label-3808
SELECT ALL + ( 95 ) + - ( + COUNT ( * ) ) FROM tab0
----
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 47 col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-47

query I rowsort
SELECT ALL - col1 - - + 99 AS col1 FROM tab0 AS cor0
----
18
78
98

onlyif mysql # aggregate syntax: 
query II rowsort label-3811
SELECT + - 74 - - - COUNT( * ) AS col1, - MIN( DISTINCT - col2 ) AS col2 FROM tab0 AS cor0
----
-77
99

skipif mysql # not compatible
query II rowsort label-3811
SELECT + - 74 - - - COUNT ( * ) AS col1, - MIN ( DISTINCT - col2 ) AS col2 FROM tab0 AS cor0
----
-77
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col2 ) + col1 col0 FROM tab0 AS cor0
----
100
128
31

query I rowsort
SELECT + col1 - + - col1 AS col0 FROM tab2 AS cor0
----
102
134
154

onlyif mysql # aggregate syntax: 
query I rowsort label-3814
SELECT - + COUNT( * ) - + COUNT( * ) FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-3814
SELECT - + COUNT ( * ) - + COUNT ( * ) FROM tab0 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3815
SELECT - - 35 - MAX( ALL - + col0 ) FROM tab2 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-3815
SELECT - - 35 - MAX ( ALL - + col0 ) FROM tab2 AS cor0
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-3816
SELECT DISTINCT - 42 * - col1 - col1 DIV 60 FROM tab1
----
1974
210
588

skipif mysql # not compatible
query I rowsort label-3816
SELECT DISTINCT - 42 * - col1 - col1 / 60 FROM tab1
----
1974
210
588

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3817
SELECT DISTINCT + 46 - + COUNT( * ) + + + CAST( NULL AS DECIMAL ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3817
SELECT DISTINCT + 46 - + COUNT ( * ) + + + CAST ( NULL AS REAL ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT ALL - col0 - + + col1 AS col1 FROM tab0
----
-108
-96
-98

query I rowsort
SELECT col1 FROM tab2 WHERE NOT ( ( NULL ) IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3820
SELECT ALL + MAX( - 67 ) FROM tab1
----
-67

skipif mysql # not compatible
query I rowsort label-3820
SELECT ALL + MAX ( - 67 ) FROM tab1
----
-67

query I rowsort
SELECT DISTINCT + col1 * 81 AS col2 FROM tab2 AS cor0
----
4131
5427
6237

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3822
SELECT + + col2 * + col2 * col1, CAST( NULL AS SIGNED ) + ( col2 ) + - + 35 AS col2 FROM tab2 AS cor0
----
123200
NULL
225388
NULL
26979
NULL

skipif mysql # not compatible
query II rowsort label-3822
SELECT + + col2 * + col2 * col1, CAST ( NULL AS INTEGER ) + ( col2 ) + - + 35 AS col2 FROM tab2 AS cor0
----
123200
NULL
225388
NULL
26979
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL NOT BETWEEN - col1 AND NULL ) OR + 75 + - - 97 NOT BETWEEN + col1 * + col1 * 72 AND - - col1 / - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( ( 85 ) ), 62 * col1 col0 FROM tab2 AS cor0
----
85
3162
85
4154
85
4774

query I rowsort
SELECT col1 + 88 AS col1 FROM tab1
----
102
135
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3826
SELECT MIN( - 4 ) FROM tab2
----
-4

skipif mysql # not compatible
query I rowsort label-3826
SELECT MIN ( - 4 ) FROM tab2
----
-4

query I rowsort
SELECT DISTINCT col2 + col2 * - 98 AS col0 FROM tab1
----
-5723
-6596
-9312

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3828
SELECT * FROM tab1 WHERE NOT col0 < ( - 39 / CAST( NULL AS SIGNED ) + - col1 )
----

skipif mysql # not compatible
query III rowsort label-3828
SELECT * FROM tab1 WHERE NOT col0 < ( - 39 / CAST ( NULL AS INTEGER ) + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3829
SELECT ALL + COUNT( * ) + + COUNT( * ) * + COUNT( * ) FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-3829
SELECT ALL + COUNT ( * ) + + COUNT ( * ) * + COUNT ( * ) FROM tab2
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3830
SELECT CAST( - 27 AS SIGNED ) col2 FROM tab2
----
-27
-27
-27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3830
SELECT CAST ( - 27 AS INTEGER ) col2 FROM tab2
----
-27
-27
-27

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 55 * ( col0 * col1 ) = ( + ( col1 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3832
SELECT - 66 * - 35 FROM tab0 WHERE NOT 78 * CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-3832
SELECT - 66 * - 35 FROM tab0 WHERE NOT 78 * CAST ( NULL AS REAL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3833
SELECT DISTINCT SUM( DISTINCT + col2 ) col1 FROM tab2 WHERE NOT col0 BETWEEN NULL AND 2
----
121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3833
SELECT DISTINCT SUM ( DISTINCT + col2 ) col1 FROM tab2 WHERE NOT col0 BETWEEN NULL AND 2
----
121

query I rowsort
SELECT col0 - 92 AS col1 FROM tab0
----
-5
-77
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3835
SELECT ALL + 62 * - col2 - + CAST( NULL AS SIGNED ) * 37 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3835
SELECT ALL + 62 * - col2 - + CAST ( NULL AS INTEGER ) * 37 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 + - 77 AS col1 FROM tab0
----
-30
-67
22

query III rowsort
SELECT * FROM tab0 WHERE + col1 - col2 * + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3838
SELECT + COUNT( * ) + - SUM( - col2 ) FROM tab2
----
124

skipif mysql # not compatible
query I rowsort label-3838
SELECT + COUNT ( * ) + - SUM ( - col2 ) FROM tab2
----
124

query I rowsort
SELECT - 45 * 41 FROM tab0
----
-1845
-1845
-1845

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3840
SELECT + CAST( NULL AS SIGNED ) * col0 + - col0 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3840
SELECT + CAST ( NULL AS INTEGER ) * col0 + - col0 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 90 + - col2 FROM tab1
----
-6
22
31

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col0 * + 26 ) BETWEEN ( NULL ) AND - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 44 + col2 AS col0 FROM tab0
----
143
54
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 70 ) * col2 col0 FROM tab2 WHERE NOT - 74 * + 82 NOT BETWEEN col1 AND ( col0 )
----

query I rowsort
SELECT - col1 FROM tab0 WHERE NOT ( + 4 ) < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3846
SELECT ALL COUNT( * ) + COUNT( ALL - col1 ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-3846
SELECT ALL COUNT ( * ) + COUNT ( ALL - col1 ) FROM tab2 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3847
SELECT - COUNT( + 65 ) col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3847
SELECT - COUNT ( + 65 ) col0 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3848
SELECT MIN( DISTINCT 97 ) col1 FROM tab2 AS cor0
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3848
SELECT MIN ( DISTINCT 97 ) col1 FROM tab2 AS cor0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3849
SELECT - SUM( + 31 ) FROM tab0 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-3849
SELECT - SUM ( + 31 ) FROM tab0 AS cor0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3850
SELECT DISTINCT COUNT( ALL col1 ) AS col1 FROM tab0 cor0 WHERE ( - ( col1 ) ) + col1 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-3850
SELECT DISTINCT COUNT ( ALL col1 ) AS col1 FROM tab0 cor0 WHERE ( - ( col1 ) ) + col1 < NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3851
SELECT ALL 79 * SUM( col2 * CAST( NULL AS SIGNED ) ) col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3851
SELECT ALL 79 * SUM ( col2 * CAST ( NULL AS INTEGER ) ) col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3852
SELECT DISTINCT - COUNT( * ) DIV + 16 AS col1 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3852
SELECT DISTINCT - COUNT ( * ) / + 16 AS col1 FROM tab2 cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3853
SELECT - CAST( - ( col0 ) AS SIGNED ) * col2 AS col2 FROM tab2 WHERE + col1 + + 51 IS NOT NULL
----
1058
2560
4350

skipif mysql # not compatible
query I rowsort label-3853
SELECT - CAST ( - ( col0 ) AS INTEGER ) * col2 AS col2 FROM tab2 WHERE + col1 + + 51 IS NOT NULL
----
1058
2560
4350

query I rowsort
SELECT 32 FROM tab2 WHERE ( col0 ) IS NOT NULL
----
32
32
32

query I rowsort
SELECT - 48 + - col2 * - ( col2 ) FROM tab2
----
1552
3316
481

query III rowsort
SELECT * FROM tab1 WHERE + 95 NOT BETWEEN ( NULL ) AND + col2 * - col0 + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 64 + - 80 AS col2 FROM tab1
----
-16
-16
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-3858
SELECT - - 91 DIV + col0 + + col0 FROM tab0 cor0
----
21
88
97

skipif mysql # not compatible
query I rowsort label-3858
SELECT - - 91 / + col0 + + col0 FROM tab0 cor0
----
21
88
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT AVG ( ALL col1 ) col2 FROM tab0 AS cor0 WHERE 95 < NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3860
SELECT 4 + - COUNT( DISTINCT + 58 + + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-3860
SELECT 4 + - COUNT ( DISTINCT + 58 + + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
4

query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE NULL < 97
----

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE + 0 / + col2 > ( + col1 * 67 )
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( NULL ) NOT IN ( - 38 - + col2 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <> + 14 * - col2
----

query I rowsort
SELECT DISTINCT - - 63 + + col1 AS col2 FROM tab1 AS cor0
----
110
68
77

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL BETWEEN NULL AND col1
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 + - col0 / + col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 33 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col2 FROM tab1 WHERE NOT 79 * + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3870
SELECT CAST( NULL AS SIGNED ) * + 35 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3870
SELECT CAST ( NULL AS INTEGER ) * + 35 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3871
SELECT DISTINCT + COUNT( * ) FROM tab0 WHERE + 57 IN ( col0 )
----
0

skipif mysql # not compatible
query I rowsort label-3871
SELECT DISTINCT + COUNT ( * ) FROM tab0 WHERE + 57 IN ( col0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3872
SELECT MIN( ALL + + col2 ) AS col0 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-3872
SELECT MIN ( ALL + + col2 ) AS col0 FROM tab0
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3873
SELECT - COUNT( * ) * ( + COUNT( * ) ) * MAX( - col0 DIV col2 ) + 66 AS col0 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-3873
SELECT - COUNT ( * ) * ( + COUNT ( * ) ) * MAX ( - col0 / col2 ) + 66 AS col0 FROM tab1 AS cor0
----
66

query I rowsort
SELECT 23 - - AVG ( col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - 66 )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN 70 AND 57
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3876
SELECT DISTINCT - 3 * - COUNT( * ) FROM tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-3876
SELECT DISTINCT - 3 * - COUNT ( * ) FROM tab1 cor0
----
9

query I rowsort
SELECT ( 25 ) * + 79 AS col0 FROM tab1 AS cor0
----
1975
1975
1975

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3878
SELECT + CAST( + - COUNT( * ) AS SIGNED ) FROM tab2, tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3878
SELECT + CAST ( + - COUNT ( * ) AS INTEGER ) FROM tab2, tab0 AS cor0
----
-9

query I rowsort
SELECT DISTINCT - ( - - 67 ) FROM tab1
----
-67

query I rowsort
SELECT DISTINCT 96 AS col2 FROM tab2 WHERE NOT ( col2 ) BETWEEN 50 AND - col1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3881
SELECT COUNT( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3881
SELECT COUNT ( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT DISTINCT - ( + - col0 ) AS col0 FROM tab0
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 > ( + - 31 )
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3884
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT col0 BETWEEN ( - 36 ) AND - 65
----
-3

skipif mysql # not compatible
query I rowsort label-3884
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col0 BETWEEN ( - 36 ) AND - 65
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - col2 col1 FROM tab2 cor0
----
-104
-133
-69

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 IN ( col2 / + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col1 + + col0 AS col1 FROM tab2 AS cor0 WHERE - col0 IS NULL
----

query I rowsort
SELECT DISTINCT + - col0 * - col1 * + col2 FROM tab1 AS cor0
----
25075
290836
68544

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 61 IS NOT NULL
----

query I rowsort
SELECT ALL - col2 * - col0 + col1 * 18 FROM tab0 cor0
----
1248
2163
9621

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 NOT IN ( - 67 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - ( + col1 ) * + + 16 FROM tab2 AS cor0
----
-1072
-1232
-816

query I rowsort
SELECT + col0 * + + col2 AS col1 FROM tab2
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-3894
SELECT ALL COUNT( * ) * - 17 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-3894
SELECT ALL COUNT ( * ) * - 17 FROM tab2
----
-51

query I rowsort
SELECT ALL col2 * - - col2 + - col2 * - 17 FROM tab1
----
10848
4484
5780

onlyif mysql # aggregate syntax: 
query I rowsort label-3896
SELECT - - COUNT( * ) FROM tab0 WHERE NULL > + + col0
----
0

skipif mysql # not compatible
query I rowsort label-3896
SELECT - - COUNT ( * ) FROM tab0 WHERE NULL > + + col0
----
0

query I rowsort
SELECT 92 + 8 AS col0 FROM tab1
----
100
100
100

query I rowsort
SELECT DISTINCT col1 * 95 * + col0 FROM tab2
----
222870
468160
477375

query I rowsort
SELECT DISTINCT - col1 * - col0 + col0 + - - col2 FROM tab0
----
1277
1924
293

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( ( NOT + col1 < + ( ( + 85 ) ) ) )
----

query II rowsort
SELECT ALL - col2 + - - col2 AS col0, + 10 FROM tab2 AS cor0
----
0
10
0
10
0
10

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col0 ) + + + 79 + + col1 BETWEEN 38 AND + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3903
SELECT + col1 + - CAST( NULL AS SIGNED ) + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3903
SELECT + col1 + - CAST ( NULL AS INTEGER ) + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col0 ) > - ( + 90 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 * col1 + - col2 NOT BETWEEN ( NULL ) AND + col1 / col0 AND - col1 + - ( - 17 ) NOT IN ( col1 + + ( col0 ) )
----
51
14
96
91
47
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3906
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 89 - - col1 * - 17 FROM tab1 AS cor0 WHERE NOT + 45 BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-3906
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 89 - - col1 * - 17 FROM tab1 AS cor0 WHERE NOT + 45 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3907
SELECT - 61 / - CAST( NULL AS SIGNED ) / + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3907
SELECT - 61 / - CAST ( NULL AS INTEGER ) / + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3908
SELECT + - COUNT( + CAST( + col2 AS SIGNED ) ) * COUNT( * ) * + + 37 - + 76 * AVG ( ALL col0 + + 36 * CAST( NULL AS SIGNED ) ) col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3908
SELECT + - COUNT ( + CAST ( + col2 AS INTEGER ) ) * COUNT ( * ) * + + 37 - + 76 * AVG ( ALL col0 + + 36 * CAST ( NULL AS INTEGER ) ) col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3909
SELECT + + 62 AS col2, + COUNT( * ) - + 74 * + + 24 FROM tab1 AS cor0
----
62
-1773

skipif mysql # not compatible
query II rowsort label-3909
SELECT + + 62 AS col2, + COUNT ( * ) - + 74 * + + 24 FROM tab1 AS cor0
----
62
-1773

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3910
SELECT DISTINCT + + CAST( NULL AS SIGNED ) FROM tab0 WHERE NULL <> + ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-3910
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) FROM tab0 WHERE NULL <> + ( - CAST ( NULL AS INTEGER ) )
----

query II rowsort
SELECT col1 AS col1, + 91 FROM tab1
----
14
91
47
91
5
91

query I rowsort
SELECT DISTINCT col0 + + 7 FROM tab1 WHERE ( NOT + col1 NOT BETWEEN NULL AND NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3913
SELECT DISTINCT CAST( - col2 AS SIGNED ) / - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3913
SELECT DISTINCT CAST ( - col2 AS INTEGER ) / - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - 54 ) IN ( ( - + col2 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col0 AS col0, col0 AS col1 FROM tab0 AS cor0
----
15
15
87
87
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3916
SELECT ALL MAX( ALL - 67 ) FROM tab0 cor0 WHERE NOT NULL <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3916
SELECT ALL MAX ( ALL - 67 ) FROM tab0 cor0 WHERE NOT NULL <> NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL > ( + 88 * - col0 * - 73 * - col0 * col0 )
----

query I rowsort
SELECT - - col1 + + 55 + col2 + + col2 FROM tab1 AS cor0
----
178
238
261

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 + + + ( - + col0 ) * - col2 / - + 87 + + 97 BETWEEN ( 81 ) AND 52 * - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 49 FROM tab0 AS cor0 WHERE NULL IS NULL
----
49
49
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3921
SELECT DISTINCT COUNT( * ) * - 4 FROM tab1
----
-12

skipif mysql # not compatible
query I rowsort label-3921
SELECT DISTINCT COUNT ( * ) * - 4 FROM tab1
----
-12

query I rowsort
SELECT DISTINCT + col0 * - 59 * - - col0 FROM tab1
----
-153459
-426275
-488579

onlyif mysql # aggregate syntax: 
query I rowsort label-3923
SELECT 54 * COUNT( * ) AS col0 FROM tab0
----
162

skipif mysql # not compatible
query I rowsort label-3923
SELECT 54 * COUNT ( * ) AS col0 FROM tab0
----
162

onlyif mysql # DIV for integer division: 
query I rowsort label-3924
SELECT col0 DIV 81 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3924
SELECT col0 / 81 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - 8 * + ( - - col2 ) * ( + + col2 ) FROM tab2
----
-12800
-26912
-4232

query I rowsort
SELECT 93 * - col1 + col2 AS col1 FROM tab1 AS cor0
----
-1206
-406
-4303

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3927
SELECT * FROM tab2 AS cor0 WHERE + CAST( + col0 AS SIGNED ) NOT BETWEEN + col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-3927
SELECT * FROM tab2 AS cor0 WHERE + CAST ( + col0 AS INTEGER ) NOT BETWEEN + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3928
SELECT - - MIN( col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-3928
SELECT - - MIN ( col0 ) FROM tab1 AS cor0
----
51

query I rowsort
SELECT DISTINCT + 84 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
84

query I rowsort
SELECT + col0 * - + 96 AS col1 FROM tab0
----
-1440
-8352
-9312

onlyif mysql # aggregate syntax: 
query I rowsort label-3931
SELECT DISTINCT + ( + COUNT( - + col1 ) ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3931
SELECT DISTINCT + ( + COUNT ( - + col1 ) ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT - col0 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3933
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < CAST( - + col0 AS SIGNED ) * col0
----

skipif mysql # not compatible
query III rowsort label-3933
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < CAST ( - + col0 AS INTEGER ) * col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3934
SELECT 71 DIV + col2 AS col0 FROM tab0 AS cor0
----
0
1
7

skipif mysql # not compatible
query I rowsort label-3934
SELECT 71 / + col2 AS col0 FROM tab0 AS cor0
----
0
1
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3935
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE + 10 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3935
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE + 10 IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3936
SELECT DISTINCT + + COUNT( * ) * - 44 - - + MAX( ALL - col0 ) FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN ( col0 ) AND CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3936
SELECT DISTINCT + + COUNT ( * ) * - 44 - - + MAX ( ALL - col0 ) FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN ( col0 ) AND CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3937
SELECT - COUNT( * ) col1 FROM tab0 WHERE NOT NULL >= ( NULL )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3937
SELECT - COUNT ( * ) col1 FROM tab0 WHERE NOT NULL >= ( NULL )
----
0

query I rowsort
SELECT col0 * col2 * + 35 FROM tab1
----
171360
175525
216580

onlyif mysql # aggregate syntax: 
query II rowsort label-3939
SELECT COUNT( * ) AS col2, + 20 col2 FROM tab1
----
3
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3939
SELECT COUNT ( * ) AS col2, + 20 col2 FROM tab1
----
3
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3940
SELECT DISTINCT 59 * - 47 * + - col2 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3940
SELECT DISTINCT 59 * - 47 * + - col2 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

query II rowsort
SELECT ALL + ( - - col2 ) * - col2 AS col2, col1 + col1 + - 51 AS col2 FROM tab2
----
-1600
103
-3364
83
-529
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3942
SELECT + 25 * COUNT( + + 46 ) AS col1 FROM tab0
----
75

skipif mysql # not compatible
query I rowsort label-3942
SELECT + 25 * COUNT ( + + 46 ) AS col1 FROM tab0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3943
SELECT MIN( DISTINCT + col2 ) * + MIN( col2 ) FROM tab0
----
100

skipif mysql # not compatible
query I rowsort label-3943
SELECT MIN ( DISTINCT + col2 ) * + MIN ( col2 ) FROM tab0
----
100

query II rowsort
SELECT 98, + col1 + + + ( - - 93 ) * - - col0 + col1 AS col2 FROM tab1
----
98
4771
98
7915
98
8557

onlyif mysql # aggregate syntax: 
query I rowsort label-3945
SELECT ALL SUM( 39 ) FROM tab0 AS cor0
----
117

skipif mysql # not compatible
query I rowsort label-3945
SELECT ALL SUM ( 39 ) FROM tab0 AS cor0
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-3946
SELECT + COUNT( - - col2 ) + 44 FROM tab2
----
47

skipif mysql # not compatible
query I rowsort label-3946
SELECT + COUNT ( - - col2 ) + 44 FROM tab2
----
47

query I rowsort
SELECT 29 + col0 FROM tab2
----
104
75
93

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 / - col2 < ( - ( col2 ) / + 18 + + - col1 + - 58 )
----

query I rowsort
SELECT + ( - + 82 ) AS col0 FROM tab2 cor0
----
-82
-82
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-3950
SELECT ALL + col0 DIV + ( + 23 ) + 75 FROM tab0 cor0
----
75
78
79

skipif mysql # not compatible
query I rowsort label-3950
SELECT ALL + col0 / + ( + 23 ) + 75 FROM tab0 cor0
----
75
78
79

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 = 79
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + - col0 + - - col2 * + col2 FROM tab0 AS cor0
----
13
2194
9704

onlyif mysql # aggregate syntax: 
query I rowsort label-3953
SELECT ALL - MAX( + col1 ) + - - 58 * - - 28 + + + 63 FROM tab2 AS cor0
----
1610

skipif mysql # not compatible
query I rowsort label-3953
SELECT ALL - MAX ( + col1 ) + - - 58 * - - 28 + + + 63 FROM tab2 AS cor0
----
1610

query II rowsort
SELECT ALL 52 * 1 AS col2, col0 * - col0 FROM tab1
----
52
-2601
52
-7225
52
-8281

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 79 * + col1 col2 FROM tab0
----
1659
6399
79

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 = - 98
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 + col0 + 79 * col1 AS col1 FROM tab1
----
1143
3757
475

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 NOT IN ( - col1 * - - 48 / + col2 * col0 * + col0 )
----

query I rowsort
SELECT DISTINCT - col0 + - + 93 FROM tab0
----
-108
-180
-190

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL >= 37
----

query I rowsort
SELECT + col1 + + - col1 FROM tab0 cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3962
SELECT + 72 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3962
SELECT + 72 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 * - 50 AS col2 FROM tab2 WHERE col1 IS NOT NULL
----
-2300
-3200
-3750

onlyif mysql # aggregate syntax: 
query I rowsort label-3964
SELECT ALL MAX( DISTINCT - col2 ) * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-3964
SELECT ALL MAX ( DISTINCT - col2 ) * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-69

query II rowsort
SELECT ALL + 20, col2 AS col0 FROM tab2 AS cor0
----
20
23
20
40
20
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3966
SELECT SUM( DISTINCT - - col0 ) AS col0 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-3966
SELECT SUM ( DISTINCT - - col0 ) AS col0 FROM tab0 AS cor0
----
199

query II rowsort
SELECT + col1, col1 + - + col1 AS col0 FROM tab1 cor0
----
14
0
47
0
5
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3968
SELECT ALL CAST( NULL AS SIGNED ) * - + 4 + col1 + - 46 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3968
SELECT ALL CAST ( NULL AS INTEGER ) * - + 4 + col1 + - 46 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3969
SELECT + 7 DIV - col1 * + - 44 + + col1 + + col2 + - 23 FROM tab2 AS cor0
----
102
51
94

skipif mysql # not compatible
query I rowsort label-3969
SELECT + 7 / - col1 * + - 44 + + col1 + + col2 + - 23 FROM tab2 AS cor0
----
102
51
94

query I rowsort
SELECT + col2 FROM tab2 WHERE NOT - + 77 IS NULL
----
23
40
58

query I rowsort
SELECT DISTINCT ( ( + + col0 ) ) FROM tab1
----
51
85
91

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 * + 15 / - col0 + - - col1 IN ( + col0, 18 - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 + - - 66 AS col1 FROM tab2 WHERE NOT + + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3974
SELECT ALL - MIN( ALL + + 84 ) AS col1 FROM tab2
----
-84

skipif mysql # not compatible
query I rowsort label-3974
SELECT ALL - MIN ( ALL + + 84 ) AS col1 FROM tab2
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-3975
SELECT DISTINCT ( + MIN( ( + col2 ) ) ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-3975
SELECT DISTINCT ( + MIN ( ( + col2 ) ) ) FROM tab2 AS cor0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3976
SELECT + + MAX( DISTINCT + 10 ) FROM tab1 cor0
----
10

skipif mysql # not compatible
query I rowsort label-3976
SELECT + + MAX ( DISTINCT + 10 ) FROM tab1 cor0
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3977
SELECT - CAST( - 23 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
23
23
23

skipif mysql # not compatible
query I rowsort label-3977
SELECT - CAST ( - 23 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
23
23
23

query II rowsort
SELECT DISTINCT - + col1 * + - 97 * + + 65 + - 64, col0 * col1 AS col2 FROM tab2 AS cor0
----
321491
2346
422371
5025
485421
4928

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3979
SELECT DISTINCT COUNT( * ) DIV - + MIN( col2 ) col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3979
SELECT DISTINCT COUNT ( * ) / - + MIN ( col2 ) col2 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3980
SELECT - + MIN( DISTINCT 7 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-7

skipif mysql # not compatible
query I rowsort label-3980
SELECT - + MIN ( DISTINCT 7 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-3981
SELECT COUNT( * ) + 30 AS col2 FROM tab2
----
33

skipif mysql # not compatible
query I rowsort label-3981
SELECT COUNT ( * ) + 30 AS col2 FROM tab2
----
33

query I rowsort
SELECT ALL + + col0 + - 58 * + + ( + col0 ) AS col2 FROM tab2 AS cor0
----
-2622
-3648
-4275

query I rowsort
SELECT - + col1 + - + col1 AS col0 FROM tab2 AS cor0
----
-102
-134
-154

query I rowsort
SELECT DISTINCT + - col0 + + 78 + col1 FROM tab2 AS cor0
----
70
83
91

query I rowsort
SELECT + col0 + 5 FROM tab1 AS cor0
----
56
90
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3986
SELECT DISTINCT - CAST( NULL AS SIGNED ) + CAST( col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3986
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + CAST ( col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3987
SELECT 45 + COUNT( * ) AS col0 FROM tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-3987
SELECT 45 + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3988
SELECT ALL - - 41 + + + MAX( + + col2 ) AS col2 FROM tab1 AS cor0
----
137

skipif mysql # not compatible
query I rowsort label-3988
SELECT ALL - - 41 + + + MAX ( + + col2 ) AS col2 FROM tab1 AS cor0
----
137

query I rowsort
SELECT DISTINCT - 28 + + col2 * + col1 AS col0 FROM tab0 AS cor0
----
182
3779
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3990
SELECT ALL + COUNT( * ) - - - 51 FROM tab2
----
-48

skipif mysql # not compatible
query I rowsort label-3990
SELECT ALL + COUNT ( * ) - - - 51 FROM tab2
----
-48

query I rowsort
SELECT DISTINCT - + col2 * - - col2 * - col0 FROM tab0 WHERE NOT - + col2 IS NULL
----
33135
8700
950697

onlyif mysql # aggregate syntax: 
query I rowsort label-3992
SELECT MIN( ALL 93 ) FROM tab2 WHERE - col1 NOT IN ( + - ( + col2 ) * + - col1, - col0 )
----
93

skipif mysql # not compatible
query I rowsort label-3992
SELECT MIN ( ALL 93 ) FROM tab2 WHERE - col1 NOT IN ( + - ( + col2 ) * + - col1, - col0 )
----
93

query I rowsort
SELECT DISTINCT - ( 90 ) - - col0 * + - col1 - + col2 FROM tab1
----
-4435
-574
-900

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 48 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + col1 AS col0, ( + col1 ) * + - 1 AS col1 FROM tab1
----
14
-14
47
-47
5
-5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3996
SELECT ALL * FROM tab2 WHERE NOT - col1 BETWEEN col1 * + col1 * + - col2 + + - ( - ( - + CAST( - 12 AS SIGNED ) ) ) AND ( + 42 / - col1 * + col1 * - 21 + 7 - - col0 * col0 / col1 )
----

skipif mysql # not compatible
query III rowsort label-3996
SELECT ALL * FROM tab2 WHERE NOT - col1 BETWEEN col1 * + col1 * + - col2 + + - ( - ( - + CAST ( - 12 AS INTEGER ) ) ) AND ( + 42 / - col1 * + col1 * - 21 + 7 - - col0 * col0 / col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3997
SELECT DISTINCT + - COUNT( 53 ) AS col2 FROM tab1 WHERE NOT col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3997
SELECT DISTINCT + - COUNT ( 53 ) AS col2 FROM tab1 WHERE NOT col2 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3998
SELECT 84 DIV + ( + COUNT( * ) ) FROM tab0
----
28

skipif mysql # not compatible
query I rowsort label-3998
SELECT 84 / + ( + COUNT ( * ) ) FROM tab0
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3999
SELECT DISTINCT MIN( DISTINCT + CAST( NULL AS SIGNED ) ) AS col1, COUNT( DISTINCT col1 ) AS col1 FROM tab1 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-3999
SELECT DISTINCT MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col1, COUNT ( DISTINCT col1 ) AS col1 FROM tab1 AS cor0
----
NULL
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4000
SELECT + - 62 - - COUNT( * ) FROM tab0 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-4000
SELECT + - 62 - - COUNT ( * ) FROM tab0 AS cor0
----
-59

query I rowsort
SELECT DISTINCT + 12 + + col0 + col1 - + 58 + col0 + - col1 * - col0 * - + col2 AS col2 FROM tab0 AS cor0
----
-18121
-57040
-9454

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 * + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4003
SELECT ALL MAX( DISTINCT - + 58 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-58

skipif mysql # not compatible
query I rowsort label-4003
SELECT ALL MAX ( DISTINCT - + 58 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-4004
SELECT ALL - COUNT( + 57 ) col2, COUNT( * ) AS col0 FROM tab0
----
-3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4004
SELECT ALL - COUNT ( + 57 ) col2, COUNT ( * ) AS col0 FROM tab0
----
-3
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4005
SELECT - COUNT( ALL - col2 ) * - + 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-4005
SELECT - COUNT ( ALL - col2 ) * - + CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4006
SELECT DISTINCT + col2 * + CAST( - col0 AS SIGNED ) FROM tab1 AS cor0
----
-4896
-5015
-6188

skipif mysql # not compatible
query I rowsort label-4006
SELECT DISTINCT + col2 * + CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-4007
SELECT SUM( ALL col1 ) FROM tab1 AS cor0 WHERE NOT - col0 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4007
SELECT SUM ( ALL col1 ) FROM tab1 AS cor0 WHERE NOT - col0 > NULL
----
NULL

query I rowsort
SELECT DISTINCT col1 * - + col2 AS col1 FROM tab0 AS cor0
----
-210
-3807
-99

query I rowsort
SELECT ALL 64 FROM tab2 AS cor0 WHERE NOT col2 <> col2
----
64
64
64

query I rowsort
SELECT - 48 AS col0 FROM tab0 AS cor0 WHERE NOT - col1 IS NULL
----
-48
-48
-48

query II rowsort
SELECT + col0, + col1 FROM tab1 cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 * - - 20 AS col2 FROM tab1
----
100
280
940

onlyif mysql # aggregate syntax: 
query I rowsort label-4013
SELECT DISTINCT 53 * + MAX( - col0 ) * - + 10 FROM tab1
----
27030

skipif mysql # not compatible
query I rowsort label-4013
SELECT DISTINCT 53 * + MAX ( - col0 ) * - + 10 FROM tab1
----
27030

onlyif mysql # aggregate syntax: 
query I rowsort label-4014
SELECT COUNT( DISTINCT - - 86 ) AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-4014
SELECT COUNT ( DISTINCT - - 86 ) AS col0 FROM tab2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4015
SELECT - 68 DIV - + MIN( col0 ) AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-4015
SELECT - 68 / - + MIN ( col0 ) AS col1 FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4016
SELECT - COUNT( * ) AS col2, MIN( + ( - - 67 ) ) FROM tab0
----
-3
67

skipif mysql # not compatible
query II rowsort label-4016
SELECT - COUNT ( * ) AS col2, MIN ( + ( - - 67 ) ) FROM tab0
----
-3
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4017
SELECT + CAST( - col2 AS SIGNED ) AS col2 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-4017
SELECT + CAST ( - col2 AS INTEGER ) AS col2 FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4018
SELECT ALL COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE - 83 + - col0 + - col0 / - 91 / col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4018
SELECT ALL COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE - 83 + - col0 + - col0 / - 91 / col0 IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT - col2 + + 49 * - - col0 * + col1 FROM tab1 AS cor0
----
20766
209505
34890

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4020
SELECT + CAST( - col1 AS SIGNED ) + - 38 FROM tab2 AS cor0
----
-105
-115
-89

skipif mysql # not compatible
query I rowsort label-4020
SELECT + CAST ( - col1 AS INTEGER ) + - 38 FROM tab2 AS cor0
----
-105
-115
-89

query I rowsort
SELECT 5 * col1 + + + col1 FROM tab1 AS cor0
----
282
30
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4022
SELECT ALL - COUNT( - 72 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4022
SELECT ALL - COUNT ( - 72 ) AS col0 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4023
SELECT CAST( NULL AS SIGNED ) + + 43 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4023
SELECT CAST ( NULL AS INTEGER ) + + 43 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4024
SELECT - CAST( - - 38 AS SIGNED ) + + col2 + - 4 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 55 * ( - col2 ) + + 14 AND NULL
----

skipif mysql # not compatible
query I rowsort label-4024
SELECT - CAST ( - - 38 AS INTEGER ) + + col2 + - 4 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 55 * ( - col2 ) + + 14 AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 78 BETWEEN + col2 AND NULL
----

query I rowsort
SELECT + - 69 * ( + - col0 ) - col1 AS col2 FROM tab0 AS cor0
----
5982
6692
954

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4027
SELECT ALL + COUNT( * ) - CAST( NULL AS SIGNED ) col1, 38 FROM tab1 AS cor0
----
NULL
38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4027
SELECT ALL + COUNT ( * ) - CAST ( NULL AS INTEGER ) col1, 38 FROM tab1 AS cor0
----
NULL
38

query II rowsort
SELECT - + col1 - - 42, col1 FROM tab1 cor0
----
-5
47
28
14
37
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4029
SELECT - COUNT( * ) - - 42 FROM tab1 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-4029
SELECT - COUNT ( * ) - - 42 FROM tab1 AS cor0
----
39

query I rowsort
SELECT ALL ( - col0 ) + + + 98 FROM tab1 AS cor0
----
13
47
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - - 77 * + + 22 col0 FROM tab2
----
1717
1734
1752

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE - col0 >= NULL
----

query I rowsort
SELECT - col1 + - - col1 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4034
SELECT DISTINCT + ( - MIN( DISTINCT - + ( + col0 ) ) ) col1 FROM tab1
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4034
SELECT DISTINCT + ( - MIN ( DISTINCT - + ( + col0 ) ) ) col1 FROM tab1
----
91

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 47 + + + col2 = - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - 94 * - - 85 col0 FROM tab1
----
-7943
-7976
-7985

query I rowsort
SELECT ALL 26 + col0 AS col0 FROM tab0
----
113
123
41

query I rowsort
SELECT DISTINCT 64 FROM tab0 AS cor0 WHERE NULL IS NULL
----
64

query II rowsort
SELECT - 49 AS col0, 19 * - col1 - + - 32 AS col2 FROM tab1
----
-49
-234
-49
-63
-49
-861

query I rowsort
SELECT DISTINCT + + 12 FROM tab0 AS cor0 WHERE NOT - col0 BETWEEN NULL AND 9
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4041
SELECT + - COUNT( * ) * CAST( + 79 AS SIGNED ) + - COUNT( * ) FROM tab1 AS cor0 WHERE NOT - col1 < - 97
----
-240

skipif mysql # not compatible
query I rowsort label-4041
SELECT + - COUNT ( * ) * CAST ( + 79 AS INTEGER ) + - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - col1 < - 97
----
-240

query I rowsort
SELECT ALL - 2 FROM tab0 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT 33 * - col0 FROM tab1 AS cor0
----
-1683
-2805
-3003

query II rowsort
SELECT col1 AS col0, 88 + - - 37 + col2 - + 27 * - - 14 FROM tab0 AS cor0
----
1
-154
21
-243
81
-206

onlyif mysql # aggregate syntax: 
query II rowsort label-4045
SELECT 15 * - MAX( DISTINCT + col2 ) * + 6, + 72 AS col1 FROM tab2 AS cor0
----
-5220
72

skipif mysql # not compatible
query II rowsort label-4045
SELECT 15 * - MAX ( DISTINCT + col2 ) * + 6, + 72 AS col1 FROM tab2 AS cor0
----
-5220
72

query I rowsort
SELECT DISTINCT - - 85 * - 23 * + 17 AS col2 FROM tab0 AS cor0
----
-33235

onlyif mysql # DIV for integer division: 
query I rowsort label-4047
SELECT + 42 * + 42 * + + col2 * col1 DIV col1 FROM tab0 AS cor0
----
174636
17640
82908

skipif mysql # not compatible
query I rowsort label-4047
SELECT + 42 * + 42 * + + col2 * col1 / col1 FROM tab0 AS cor0
----
174636
17640
82908

query III rowsort
SELECT * FROM tab1 WHERE NOT - 37 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4049
SELECT ALL + MIN( DISTINCT + col2 ) AS col1, + COUNT( * ) FROM tab2
----
23
3

skipif mysql # not compatible
query II rowsort label-4049
SELECT ALL + MIN ( DISTINCT + col2 ) AS col1, + COUNT ( * ) FROM tab2
----
23
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4050
SELECT ALL + MAX( ALL col0 ) AS col2 FROM tab1 WHERE ( - - 25 ) * - + col1 + CAST( NULL AS DECIMAL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4050
SELECT ALL + MAX ( ALL col0 ) AS col2 FROM tab1 WHERE ( - - 25 ) * - + col1 + CAST ( NULL AS REAL ) IS NOT NULL
----
NULL

query II rowsort
SELECT col0 + + 88 AS col2, 30 FROM tab2
----
134
30
152
30
163
30

query I rowsort
SELECT ALL + - 6 FROM tab2 WHERE + col0 IS NULL
----

query I rowsort
SELECT - + col2 AS col0 FROM tab2 WHERE NULL IS NULL AND 43 = + col0
----

query I rowsort
SELECT ALL col1 AS col1 FROM tab0 WHERE NOT col1 IS NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4055
SELECT + - COUNT( * ) + + 63 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) >= - 45
----
63

skipif mysql # not compatible
query I rowsort label-4055
SELECT + - COUNT ( * ) + + 63 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) >= - 45
----
63

query I rowsort
SELECT + + col1 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN col0 AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4057
SELECT DISTINCT COUNT( * ) * + 7 AS col1 FROM tab1 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-4057
SELECT DISTINCT COUNT ( * ) * + 7 AS col1 FROM tab1 AS cor0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4058
SELECT DISTINCT + - ( + 59 ) - - MIN( + - 69 ) + + 1 AS col0 FROM tab0 AS cor0
----
-127

skipif mysql # not compatible
query I rowsort label-4058
SELECT DISTINCT + - ( + 59 ) - - MIN ( + - 69 ) + + 1 AS col0 FROM tab0 AS cor0
----
-127

query I rowsort
SELECT ALL + + col1 + + 66 * + col1 AS col2 FROM tab1 AS cor0
----
3149
335
938

query I rowsort
SELECT DISTINCT 36 AS col1 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4061
SELECT COUNT( * ) AS col0, - MIN( ALL + col1 ) * 7 AS col1 FROM tab2 AS cor0
----
3
-357

skipif mysql # not compatible
query II rowsort label-4061
SELECT COUNT ( * ) AS col0, - MIN ( ALL + col1 ) * 7 AS col1 FROM tab2 AS cor0
----
3
-357

onlyif mysql # aggregate syntax: 
query II rowsort label-4062
SELECT DISTINCT - COUNT( * ) - SUM( DISTINCT - col2 ), + 41 + + + 19 AS col1 FROM tab1 cor0
----
220
60

skipif mysql # not compatible
query II rowsort label-4062
SELECT DISTINCT - COUNT ( * ) - SUM ( DISTINCT - col2 ), + 41 + + + 19 AS col1 FROM tab1 cor0
----
220
60

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 38 IS NULL
----

query I rowsort
SELECT DISTINCT - col2 * + - 47 AS col1 FROM tab1
----
2773
3196
4512

query I rowsort
SELECT DISTINCT + - 5 AS col1 FROM tab2 AS cor0
----
-5

query I rowsort
SELECT + 74 * + + col1 FROM tab1
----
1036
3478
370

query II rowsort
SELECT ALL 19 AS col2, 75 FROM tab0
----
19
75
19
75
19
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4068
SELECT ( - SUM( + col1 ) ) AS col2 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-4068
SELECT ( - SUM ( + col1 ) ) AS col2 FROM tab1
----
-66

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE NOT ( ( ( NULL ) IS NULL ) )
----

query I rowsort
SELECT DISTINCT - + 41 * col1 FROM tab1 AS cor0
----
-1927
-205
-574

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4071
SELECT DISTINCT - + 41 AS col1, - CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-41
3

skipif mysql # not compatible
query II rowsort label-4071
SELECT DISTINCT - + 41 AS col1, - CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-41
3

query II rowsort
SELECT DISTINCT + + 45, col2 AS col1 FROM tab0 AS cor0
----
45
10
45
47
45
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4073
SELECT ALL + - MIN( - col1 ) col0 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4073
SELECT ALL + - MIN ( - col1 ) col0 FROM tab2 AS cor0
----
77

query I rowsort
SELECT DISTINCT - - col0 + - - col1 FROM tab2 AS cor0
----
141
142
97

query II rowsort
SELECT DISTINCT + col1 AS col2, col2 - + 8 AS col0 FROM tab1 cor0
----
14
88
47
60
5
51

query II rowsort
SELECT ALL col0 AS col0, - col2 - 16 AS col0 FROM tab2 AS cor0
----
46
-39
64
-56
75
-74

query II rowsort
SELECT ALL 41, col0 FROM tab0
----
41
15
41
87
41
97

query II rowsort
SELECT DISTINCT col0 AS col2, col2 AS col2 FROM tab0
----
15
47
87
10
97
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 34 * + 78 col2, 5 FROM tab2
----
2652
5
2652
5
2652
5

query II rowsort
SELECT DISTINCT col0 AS col2, 69 AS col2 FROM tab2
----
46
69
64
69
75
69

query I rowsort
SELECT ( col2 ) * + col1 * col0 AS col1 FROM tab1
----
25075
290836
68544

query II rowsort
SELECT 26 AS col0, - col2 + + col0 FROM tab2
----
26
17
26
23
26
24

onlyif mysql # DIV for integer division: 
query I rowsort label-4083
SELECT ALL col1 DIV 64 DIV + 19 + + col2 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-4083
SELECT ALL col1 / 64 / + 19 + + col2 FROM tab0
----
10
47
99

query I rowsort
SELECT + 89 AS col1 FROM tab1 WHERE + 52 + + col1 IS NOT NULL
----
89
89
89

query I rowsort
SELECT ALL - + col2 * + - col0 AS col1 FROM tab0 AS cor0
----
705
870
9603

query I rowsort
SELECT DISTINCT col0 + + 81 - col2 FROM tab1 AS cor0
----
104
107
36

onlyif mysql # DIV for integer division: 
query I rowsort label-4087
SELECT + col0 DIV - - 58 + + col1 FROM tab0 AS cor0
----
2
22
81

skipif mysql # not compatible
query I rowsort label-4087
SELECT + col0 / - - 58 + + col1 FROM tab0 AS cor0
----
2
22
81

query I rowsort
SELECT ALL + - col1 * + + col1 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - 13 AND col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4089
SELECT ALL + col1 + col2 + - - col1 DIV col0 AS col1 FROM tab2 AS cor0
----
118
125
75

skipif mysql # not compatible
query I rowsort label-4089
SELECT ALL + col1 + col2 + - - col1 / col0 AS col1 FROM tab2 AS cor0
----
118
125
75

query I rowsort
SELECT DISTINCT - col0 * - col0 * + + col2 AS col0 FROM tab2
----
163840
326250
48668

query I rowsort
SELECT - 44 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - + ( - 44 ) ) col1 FROM tab1 AS cor0 WHERE - col1 - col1 / - col1 NOT IN ( - 8 + + 87, col2 - 47 / - + col0, + col2 )
----
44
44
44

query I rowsort
SELECT ALL - col0 * - col1 * col0 FROM tab2
----
107916
315392
376875

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4094
SELECT ALL 93 DIV + - COUNT( * ) AS col1 FROM tab1
----
-31

skipif mysql # not compatible
query I rowsort label-4094
SELECT ALL 93 / + - COUNT ( * ) AS col1 FROM tab1
----
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-4095
SELECT ALL + 31, + COUNT( * ) * 98 AS col0 FROM tab2
----
31
294

skipif mysql # not compatible
query II rowsort label-4095
SELECT ALL + 31, + COUNT ( * ) * 98 AS col0 FROM tab2
----
31
294

onlyif mysql # aggregate syntax: 
query I rowsort label-4096
SELECT DISTINCT SUM( - 23 ) * + 65 AS col1 FROM tab1
----
-4485

skipif mysql # not compatible
query I rowsort label-4096
SELECT DISTINCT SUM ( - 23 ) * + 65 AS col1 FROM tab1
----
-4485

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 56 * - col1 col2 FROM tab2
----
-2856
-3752
-4312

query II rowsort
SELECT ALL - col0 * col1 * - + 91 AS col1, 55 + col2 * - ( col2 ) FROM tab0
----
110565
-2154
166257
-45
8827
-9746

query I rowsort
SELECT 59 FROM tab0 AS cor0 WHERE NOT col1 * - col2 IS NOT NULL
----

query I rowsort
SELECT ALL - + ( + ( + col0 ) ) AS col0 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4101
SELECT ALL CAST( ( col1 ) AS SIGNED ) * + + col0 + + 64 col1 FROM tab0 AS cor0
----
1279
161
1891

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4101
SELECT ALL CAST ( ( col1 ) AS INTEGER ) * + + col0 + + 64 col1 FROM tab0 AS cor0
----
1279
161
1891

query I rowsort
SELECT ALL + col0 + - - col2 AS col1 FROM tab2 AS cor0
----
104
133
69

query I rowsort
SELECT DISTINCT - + col0 + - - col1 AS col0 FROM tab1 AS cor0
----
-37
-44
-80

query II rowsort
SELECT ALL col0 + - col1, + ( - 45 ) FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 36 + + col0 FROM tab1 AS cor0
----
121
127
87

query I rowsort
SELECT ALL - + col0 + - - 92 * + 33 AS col0 FROM tab1 AS cor0
----
2945
2951
2985

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 84 * + col1 col0 FROM tab1
----
1176
3948
420

query I rowsort
SELECT ALL - ( 13 ) AS col0 FROM tab1
----
-13
-13
-13

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( + col1, col0 * - col1 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT NULL > - 31 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4111
SELECT - SUM( - col1 ) col1 FROM tab0
----
103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4111
SELECT - SUM ( - col1 ) col1 FROM tab0
----
103

query I rowsort
SELECT ALL 85 + - 71 AS col0 FROM tab1
----
14
14
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4113
SELECT DISTINCT - - COUNT( ( col0 ) ) + COUNT( * ) AS col2 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4113
SELECT DISTINCT - - COUNT ( ( col0 ) ) + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
6

query I rowsort
SELECT DISTINCT col2 * + - col2 + col0 + + 40 FROM tab1 AS cor0
----
-3356
-4493
-9125

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + 5, 73 col2 FROM tab2 AS cor0
----
-5
73

onlyif mysql # DIV for integer division: 
query I rowsort label-4116
SELECT + - 77 DIV 81 + col1 + col1 + - col1 * ( - col0 ) DIV - + col0 AS col0 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-4116
SELECT + - 77 / 81 + col1 + col1 + - col1 * ( - col0 ) / - + col0 AS col0 FROM tab1 AS cor0
----
14
47
5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 11 * - - col0 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - 51, - col2 + + 34 AS col1 FROM tab0 AS cor0
----
-51
-13
-51
-65
-51
24

query I rowsort
SELECT ALL - + col2 * - 93 FROM tab2 AS cor0
----
2139
3720
5394

query II rowsort
SELECT ALL - col2 AS col1, + col2 FROM tab2 AS cor0
----
-23
23
-40
40
-58
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4121
SELECT DISTINCT - CAST( + + col1 AS SIGNED ) * col2 col0 FROM tab0
----
-210
-3807
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4121
SELECT DISTINCT - CAST ( + + col1 AS INTEGER ) * col2 col0 FROM tab0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4122
SELECT ALL COUNT( * ) * COUNT( DISTINCT - - 32 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4122
SELECT ALL COUNT ( * ) * COUNT ( DISTINCT - - 32 ) AS col1 FROM tab2
----
3

query I rowsort
SELECT + col1 AS col2 FROM tab1 WHERE NOT + 17 IS NOT NULL
----

query I rowsort
SELECT ( + 60 ) FROM tab1
----
60
60
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4125
SELECT DISTINCT + 94 * + COUNT( + col1 ) FROM tab2
----
282

skipif mysql # not compatible
query I rowsort label-4125
SELECT DISTINCT + 94 * + COUNT ( + col1 ) FROM tab2
----
282

query I rowsort
SELECT + ( + ( - + col0 ) ) FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT 40 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

onlyif mysql # aggregate syntax: 
query I rowsort label-4128
SELECT - ( - + COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4128
SELECT - ( - + COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4129
SELECT DISTINCT ( - + CAST( NULL AS SIGNED ) ) + - ( - + COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4129
SELECT DISTINCT ( - + CAST ( NULL AS INTEGER ) ) + - ( - + COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 22 col0, col0 AS col0 FROM tab1 AS cor0
----
-22
51
-22
85
-22
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4131
SELECT + - COUNT( * ) AS col1 FROM tab1 cor0 WHERE NULL > col1
----
0

skipif mysql # not compatible
query I rowsort label-4131
SELECT + - COUNT ( * ) AS col1 FROM tab1 cor0 WHERE NULL > col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4132
SELECT - SUM( - - 76 ) * - 82 AS col1 FROM tab0 AS cor0
----
18696

skipif mysql # not compatible
query I rowsort label-4132
SELECT - SUM ( - - 76 ) * - 82 AS col1 FROM tab0 AS cor0
----
18696

onlyif mysql # DIV for integer division: 
query I rowsort label-4133
SELECT DISTINCT - + col0 DIV + 7 + - 99 * col2 + - 32 FROM tab0 AS cor0
----
-1034
-4687
-9846

skipif mysql # not compatible
query I rowsort label-4133
SELECT DISTINCT - + col0 / + 7 + - 99 * col2 + - 32 FROM tab0 AS cor0
----
-1034
-4687
-9846

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4134
SELECT ALL - CAST( - + col1 AS SIGNED ) + + + 68 + - col0 AS col2 FROM tab0 AS cor0
----
-28
134
2

skipif mysql # not compatible
query I rowsort label-4134
SELECT ALL - CAST ( - + col1 AS INTEGER ) + + + 68 + - col0 AS col2 FROM tab0 AS cor0
----
-28
134
2

onlyif mysql # DIV for integer division: 
query I rowsort label-4135
SELECT DISTINCT + 75 DIV col2 col0 FROM tab0
----
0
1
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4135
SELECT DISTINCT + 75 / col2 col0 FROM tab0
----
0
1
7

query I rowsort
SELECT + col0 * - + col2 AS col0 FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT + ( - 23 ) - - col0 AS col1 FROM tab2
----
23
41
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4138
SELECT - 66 - - COUNT( * ) FROM tab0
----
-63

skipif mysql # not compatible
query I rowsort label-4138
SELECT - 66 - - COUNT ( * ) FROM tab0
----
-63

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) IS NOT NULL AND NOT + col0 + - + 43 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 81 + + + col1 col2, 77 FROM tab2
----
-14
77
-30
77
-4
77

query I rowsort
SELECT 69 * 80 + - - 49 FROM tab1 AS cor0
----
5569
5569
5569

onlyif mysql # aggregate syntax: 
query I rowsort label-4142
SELECT + 38 + - COUNT( * ) FROM tab2 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-4142
SELECT + 38 + - COUNT ( * ) FROM tab2 AS cor0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4143
SELECT + COUNT( DISTINCT - + col0 ) * - 16 FROM tab0 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-4143
SELECT + COUNT ( DISTINCT - + col0 ) * - 16 FROM tab0 AS cor0
----
-48

query II rowsort
SELECT col0 AS col0, - col1 AS col0 FROM tab2
----
46
-51
64
-77
75
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-4145
SELECT - 7 DIV col0 * 72 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4145
SELECT - 7 / col0 * 72 AS col2 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 >= - ( - - ( + + col0 ) ) - - col2 + - 38 + - ( 97 )
----

query I rowsort
SELECT ALL 91 * - col0 AS col2 FROM tab0 cor0
----
-1365
-7917
-8827

query I rowsort
SELECT ( - + col1 ) * - col1 FROM tab2 cor0
----
2601
4489
5929

onlyif mysql # aggregate syntax: 
query I rowsort label-4149
SELECT - 64 * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-4149
SELECT - 64 * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-4150
SELECT - SUM( - 95 ) FROM tab1 AS cor0
----
285

skipif mysql # not compatible
query I rowsort label-4150
SELECT - SUM ( - 95 ) FROM tab1 AS cor0
----
285

query I rowsort
SELECT ALL ( col2 ) * + + col1 FROM tab1
----
1344
295
3196

query I rowsort
SELECT - 38 * 79 FROM tab0
----
-3002
-3002
-3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col1, - col0 FROM tab1
----
14
-51
47
-91
5
-85

query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 + + ( - + col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4155
SELECT ALL - ( + + ( + + 20 ) ) + - 46 FROM tab2 WHERE - col0 * - - CAST( + - col0 AS DECIMAL ) IS NOT NULL
----
-66
-66
-66

skipif mysql # not compatible
query I rowsort label-4155
SELECT ALL - ( + + ( + + 20 ) ) + - 46 FROM tab2 WHERE - col0 * - - CAST ( + - col0 AS REAL ) IS NOT NULL
----
-66
-66
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4156
SELECT MIN( + CAST( - + col2 AS SIGNED ) ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-4156
SELECT MIN ( + CAST ( - + col2 AS INTEGER ) ) FROM tab1
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4157
SELECT + - CAST( NULL AS SIGNED ) * + - ( col2 ) + - 1 + + 40 * - + col2 / - - col0 FROM tab1 cor0 WHERE NOT NULL >= + 79 * + col2
----

skipif mysql # not compatible
query I rowsort label-4157
SELECT + - CAST ( NULL AS INTEGER ) * + - ( col2 ) + - 1 + + 40 * - + col2 / - - col0 FROM tab1 cor0 WHERE NOT NULL >= + 79 * + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 35 col0, + col2 FROM tab2 AS cor0
----
35
23
35
40
35
58

query II rowsort
SELECT + - col2, + col2 FROM tab2 AS cor0
----
-23
23
-40
40
-58
58

query II rowsort
SELECT col1, - col0 * - col2 AS col2 FROM tab1 AS cor0
----
14
4896
47
6188
5
5015

query II rowsort
SELECT + 59 AS col0, + col0 AS col2 FROM tab0 AS cor0
----
59
15
59
87
59
97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN + - col2 + + 54 AND col0 / + - col0 + 11 * col1
----
51
14
96
91
47
68

query I rowsort
SELECT DISTINCT + - col2 + - col2 + + + col0 FROM tab2 AS cor0 WHERE 34 IS NOT NULL
----
-16
-41
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4164
SELECT DISTINCT 23 DIV + COUNT( * ) col1 FROM tab0 AS cor0
----
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4164
SELECT DISTINCT 23 / + COUNT ( * ) col1 FROM tab0 AS cor0
----
7

query II rowsort
SELECT DISTINCT - ( - col2 ) AS col2, col1 AS col0 FROM tab0
----
10
21
47
81
99
1

query II rowsort
SELECT ALL col1 + - col1, - col0 AS col0 FROM tab1
----
0
-51
0
-85
0
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-4167
SELECT + col2 DIV col1 DIV 55 + 6 - - col0 * - col1 AS col1 FROM tab2 AS cor0
----
-2340
-4922
-5019

skipif mysql # not compatible
query I rowsort label-4167
SELECT + col2 / col1 / 55 + 6 - - col0 * - col1 AS col1 FROM tab2 AS cor0
----
-2340
-4922
-5019

query I rowsort
SELECT 30 + + 84 FROM tab1 AS cor0
----
114
114
114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4169
SELECT ALL + 38 / CAST( NULL AS SIGNED ) * - - col0 * ( 63 ) + - - col0 + col2 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4169
SELECT ALL + 38 / CAST ( NULL AS INTEGER ) * - - col0 * ( 63 ) + - - col0 + col2 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 68 + - + col0 FROM tab0 AS cor0
----
-19
-29
53

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + ( - col1 ) + col2 IS NULL
----

query I rowsort
SELECT + + ( - + col0 ) + + + col1 AS col2 FROM tab1 AS cor0
----
-37
-44
-80

query III rowsort
SELECT * FROM tab1 WHERE - 91 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE + - 26 >= + col2 - ( 89 )
----
85
5
59

query I rowsort
SELECT ALL - 32 - - + col0 * - 71 * - col1 AS col1 FROM tab0
----
129685
6855
86233

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4176
SELECT ALL - 27 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4176
SELECT ALL - 27 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4177
SELECT + 65 DIV col1 DIV + - col2 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4177
SELECT + 65 / col1 / + - col2 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT + 96 * - 56 AS col0 FROM tab2
----
-5376
-5376
-5376

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 <= + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4180
SELECT - MIN( DISTINCT + col2 ) * 29 FROM tab2
----
-667

skipif mysql # not compatible
query I rowsort label-4180
SELECT - MIN ( DISTINCT + col2 ) * 29 FROM tab2
----
-667

onlyif mysql # DIV for integer division: 
query I rowsort label-4181
SELECT DISTINCT 1 DIV + + col2 + - 93 FROM tab2
----
-93

skipif mysql # not compatible
query I rowsort label-4181
SELECT DISTINCT 1 / + + col2 + - 93 FROM tab2
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-4182
SELECT ALL 78 * + SUM( col0 ) FROM tab0
----
15522

skipif mysql # not compatible
query I rowsort label-4182
SELECT ALL 78 * + SUM ( col0 ) FROM tab0
----
15522

query I rowsort
SELECT 89 - col0 FROM tab2 cor0
----
14
25
43

query I rowsort
SELECT DISTINCT + + ( + col1 ) + + + 70 FROM tab1 AS cor0
----
117
75
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4185
SELECT + 96 DIV - - 59 AS col1, 13 DIV + - COUNT( * ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
1
-4

skipif mysql # not compatible
query II rowsort label-4185
SELECT + 96 / - - 59 AS col1, 13 / + - COUNT ( * ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
1
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4186
SELECT DISTINCT MAX( 11 ) AS col1 FROM tab1, tab1 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-4186
SELECT DISTINCT MAX ( 11 ) AS col1 FROM tab1, tab1 AS cor0
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4187
SELECT DISTINCT + 20 DIV + - MAX( + 50 ) AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
0

skipif mysql # not compatible
query I rowsort label-4187
SELECT DISTINCT + 20 / + - MAX ( + 50 ) AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4188
SELECT ALL + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT 46 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4188
SELECT ALL + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT 46 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4189
SELECT - col0 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) > + - col2
----

skipif mysql # not compatible
query I rowsort label-4189
SELECT - col0 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) > + - col2
----

query I rowsort
SELECT + 68 + + - 97 AS col2 FROM tab1 AS cor0 WHERE NOT NULL <= 57 - col1
----

query I rowsort
SELECT DISTINCT + col1 * + col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
1173
3080
3886

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4192
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-4192
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) >= NULL
----

query I rowsort
SELECT + col2 * - 81 * - col2 FROM tab1
----
281961
374544
746496

query II rowsort
SELECT ALL + 51, - col1 AS col1 FROM tab2
----
51
-51
51
-67
51
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-4195
SELECT 68, + COUNT( * ) AS col0 FROM tab1
----
68
3

skipif mysql # not compatible
query II rowsort label-4195
SELECT 68, + COUNT ( * ) AS col0 FROM tab1
----
68
3

query I rowsort
SELECT 77 FROM tab1 WHERE NOT + col2 + + col0 - + 3 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4197
SELECT ALL 79 FROM tab2 WHERE + 25 IN ( + - 3 + - - CAST( - - col2 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-4197
SELECT ALL 79 FROM tab2 WHERE + 25 IN ( + - 3 + - - CAST ( - - col2 AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4198
SELECT DISTINCT + 93 DIV col1 + + - 14, + col1 FROM tab2
----
-13
51
-13
67
-13
77

skipif mysql # not compatible
query II rowsort label-4198
SELECT DISTINCT + 93 / col1 + + - 14, + col1 FROM tab2
----
-13
51
-13
67
-13
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 25 col0 FROM tab2 AS cor0
----
25

query I rowsort
SELECT ALL - ( - - 28 ) * col0 * 44 + - 66 - + + 64 + - 36 + + col0 FROM tab1 AS cor0
----
-104801
-112187
-62947

onlyif mysql # aggregate syntax: 
query II rowsort label-4201
SELECT DISTINCT - COUNT( * ) AS col1, 0 FROM tab0
----
-3
0

skipif mysql # not compatible
query II rowsort label-4201
SELECT DISTINCT - COUNT ( * ) AS col1, 0 FROM tab0
----
-3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4202
SELECT MAX( ALL + - 5 ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-4202
SELECT MAX ( ALL + - 5 ) FROM tab1 AS cor0
----
-5

query I rowsort
SELECT ALL + col1 + + ( 30 ) AS col0 FROM tab0 AS cor0
----
111
31
51

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN - col0 * - col0 + - + col2 AND NULL
----

query I rowsort
SELECT ALL + + col1 + - + col1 + - + 17 * col1 - col1 AS col2 FROM tab1 AS cor0
----
-252
-846
-90

query II rowsort
SELECT + col1, 22 FROM tab2 AS cor0
----
51
22
67
22
77
22

query I rowsort
SELECT - col0 AS col2 FROM tab0 AS cor0 WHERE 2 IS NOT NULL
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4208
SELECT + + COUNT( ( + - col2 ) ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4208
SELECT + + COUNT ( ( + - col2 ) ) FROM tab1 cor0
----
3

query I rowsort
SELECT ALL col1 + - col2 + + - 5 AS col0 FROM tab0 cor0
----
-103
29
6

query I rowsort
SELECT col1 - - col0 * - col1 + + - col1 FROM tab0
----
-1215
-1827
-97

query II rowsort
SELECT - 40 + + col2, col0 FROM tab2
----
-17
46
0
64
18
75

query I rowsort
SELECT ALL + col1 - - + col0 * + ( + col2 ) * col2 FROM tab0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4213
SELECT DISTINCT - COUNT( * ) * + MIN( - - col0 ) * - MIN( ALL 57 ) AS col0 FROM tab2
----
7866

skipif mysql # not compatible
query I rowsort label-4213
SELECT DISTINCT - COUNT ( * ) * + MIN ( - - col0 ) * - MIN ( ALL 57 ) AS col0 FROM tab2
----
7866

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4214
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col1 * - col1 * - ( + - ( - col1 ) ) + - col1 + + col0 + + ( - col0 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4214
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col1 * - col1 * - ( + - ( - col1 ) ) + - col1 + + col0 + + ( - col0 ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4215
SELECT + + COUNT( DISTINCT - col2 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4215
SELECT + + COUNT ( DISTINCT - col2 ) AS col1 FROM tab2 AS cor0
----
3

query II rowsort
SELECT DISTINCT + col0 * - col2 * - 84 AS col0, col2 * + col0 * + col2 FROM tab2
----
215040
102400
365400
252300
88872
24334

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 45 col1 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query II rowsort
SELECT DISTINCT col1, - col0 * - - col1 FROM tab2
----
51
-2346
67
-5025
77
-4928

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 * + col1 * col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4220
SELECT + + col1 DIV + col1 FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4220
SELECT + + col1 / + col1 FROM tab2 cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4221
SELECT + + MIN( ALL - 93 ) FROM tab2 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-4221
SELECT + + MIN ( ALL - 93 ) FROM tab2 AS cor0
----
-93

onlyif mysql # DIV for integer division: 
query II rowsort label-4222
SELECT + - col1 AS col0, - 48 DIV - col1 AS col1 FROM tab1 AS cor0
----
-14
3
-47
1
-5
9

skipif mysql # not compatible
query II rowsort label-4222
SELECT + - col1 AS col0, - 48 / - col1 AS col1 FROM tab1 AS cor0
----
-14
3
-47
1
-5
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4223
SELECT - - SUM( - col2 ) AS col0 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-4223
SELECT - - SUM ( - col2 ) AS col0 FROM tab0 AS cor0
----
-156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4224
SELECT - + col2 * + - col1 * - CAST( NULL AS SIGNED ) * + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4224
SELECT - + col2 * + - col1 * - CAST ( NULL AS INTEGER ) * + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 / col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 29 * - col0 + col0 * col0 + - 82 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4227
SELECT ALL COUNT( * ) + + 6 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-4227
SELECT ALL COUNT ( * ) + + 6 FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4228
SELECT - MIN( - col2 ) AS col1 FROM tab2 AS cor0 WHERE NULL >= + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4228
SELECT - MIN ( - col2 ) AS col1 FROM tab2 AS cor0 WHERE NULL >= + col1
----
NULL

query I rowsort
SELECT col0 * - - col2 * + - 30 FROM tab2
----
-130500
-31740
-76800

query I rowsort
SELECT + 6 + - - 43 * + col0 AS col0 FROM tab0 cor0
----
3747
4177
651

onlyif mysql # DIV for integer division: 
query II rowsort label-4231
SELECT ALL 66 DIV col1 + + col1, col2 - - - 1 AS col2 FROM tab0 AS cor0
----
24
9
67
98
81
46

skipif mysql # not compatible
query II rowsort label-4231
SELECT ALL 66 / col1 + + col1, col2 - - - 1 AS col2 FROM tab0 AS cor0
----
24
9
67
98
81
46

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 + col0 = - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4233
SELECT DISTINCT - + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + - - 34 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4233
SELECT DISTINCT - + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + - - 34 AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - 20 + 29 + + + col2 FROM tab1 AS cor0
----
105
68
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4235
SELECT + SUM( ALL - col2 ) + + + 96 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4235
SELECT + SUM ( ALL - col2 ) + + + 96 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4236
SELECT DISTINCT MAX( DISTINCT CAST( NULL AS SIGNED ) ) * COUNT( * ) + COUNT( * ) * + ( - COUNT( * ) ) + - COUNT( * ) + ( CAST( NULL AS SIGNED ) ) + + MAX( DISTINCT 20 ) / 55 + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4236
SELECT DISTINCT MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) * COUNT ( * ) + COUNT ( * ) * + ( - COUNT ( * ) ) + - COUNT ( * ) + ( CAST ( NULL AS INTEGER ) ) + + MAX ( DISTINCT 20 ) / 55 + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - - col2 - - 13 AS col1 FROM tab0 cor0
----
112
23
60

query I rowsort
SELECT DISTINCT col1 - col0 * + col2 FROM tab0 AS cor0
----
-624
-849
-9602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 - 56 col0 FROM tab2
----
-107
-123
-133

query I rowsort
SELECT DISTINCT - 31 * col1 * 53 * + col2 AS col1 FROM tab1
----
-2208192
-484685
-5251028

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4241
SELECT ALL COUNT( * ) - - + CAST( NULL AS SIGNED ) + - COUNT( * ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4241
SELECT ALL COUNT ( * ) - - + CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4242
SELECT ALL - COUNT( * ) * - 46 col1 FROM tab0
----
138

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4242
SELECT ALL - COUNT ( * ) * - 46 col1 FROM tab0
----
138

onlyif mysql # DIV for integer division: 
query I rowsort label-4243
SELECT DISTINCT + 4 DIV + col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4243
SELECT DISTINCT + 4 / + col0 FROM tab0
----
0

query I rowsort
SELECT - 7 + + - col1 - + col1 FROM tab0 WHERE + ( - + col0 ) IS NOT NULL
----
-169
-49
-9

query I rowsort
SELECT col1 * - - 23 FROM tab0 cor0
----
1863
23
483

onlyif mysql # aggregate syntax: 
query I rowsort label-4246
SELECT - - COUNT( * ) * 78 FROM tab0 WHERE NOT NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-4246
SELECT - - COUNT ( * ) * 78 FROM tab0 WHERE NOT NULL < NULL
----
0

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL BETWEEN - 34 + 22 * - - 38 AND + 74
----

query I rowsort
SELECT ALL + col1 AS col0 FROM tab1 AS cor0 WHERE NOT + col0 * 60 = + - 70
----
14
47
5

onlyif mysql # aggregate syntax: 
query II rowsort label-4249
SELECT DISTINCT + - COUNT( col2 ) AS col0, COUNT( * ) FROM tab2 cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-4249
SELECT DISTINCT + - COUNT ( col2 ) AS col0, COUNT ( * ) FROM tab2 cor0
----
-3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4250
SELECT DISTINCT - SUM( ALL + + col1 ) AS col1 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-4250
SELECT DISTINCT - SUM ( ALL + + col1 ) AS col1 FROM tab0 AS cor0
----
-103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4251
SELECT + CAST( NULL AS SIGNED ) * - + col2 * - - 79 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4251
SELECT + CAST ( NULL AS INTEGER ) * - + col2 * - - 79 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4252
SELECT + MAX( ALL - col2 ) * COUNT( * ) AS col1 FROM tab0 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-4252
SELECT + MAX ( ALL - col2 ) * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-30

query I rowsort
SELECT ALL - 37 * col2 FROM tab2
----
-1480
-2146
-851

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4254
SELECT DISTINCT - col0 * - + CAST( - + 36 AS SIGNED ) AS col2 FROM tab2
----
-1656
-2304
-2700

skipif mysql # not compatible
query I rowsort label-4254
SELECT DISTINCT - col0 * - + CAST ( - + 36 AS INTEGER ) AS col2 FROM tab2
----
-1656
-2304
-2700

onlyif mysql # DIV for integer division: 
query I rowsort label-4255
SELECT ALL - 98 DIV + + col1 col0 FROM tab0
----
-1
-4
-98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4255
SELECT ALL - 98 / + + col1 col0 FROM tab0
----
-1
-4
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4256
SELECT - COUNT( * ) FROM tab0 WHERE ( NOT ( + 66 + + - 40 ) IS NULL )
----
-3

skipif mysql # not compatible
query I rowsort label-4256
SELECT - COUNT ( * ) FROM tab0 WHERE ( NOT ( + 66 + + - 40 ) IS NULL )
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4257
SELECT * FROM tab2 WHERE - col1 + - + CAST( col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4257
SELECT * FROM tab2 WHERE - col1 + - + CAST ( col2 AS INTEGER ) IS NULL
----

query II rowsort
SELECT 35 AS col2, col1 AS col1 FROM tab2
----
35
51
35
67
35
77

query I rowsort
SELECT DISTINCT + 4 FROM tab2 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT 32 AS col0, 28 AS col1 FROM tab2
----
32
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4261
SELECT DISTINCT COUNT( DISTINCT 96 ) FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) NOT IN ( + + 92, - col2 * - ( ( - col1 ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-4261
SELECT DISTINCT COUNT ( DISTINCT 96 ) FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) NOT IN ( + + 92, - col2 * - ( ( - col1 ) ) )
----
0

query I rowsort
SELECT ALL + - col1 * + 43 + col1 FROM tab0 AS cor0
----
-3402
-42
-882

query I rowsort
SELECT 82 / - col1 * + 70 + col1 + + ( - ( - col1 ) ) + + col1 AS col1 FROM tab0 AS cor0 WHERE col1 >= NULL
----

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE NULL = ( NULL )
----

query I rowsort
SELECT + 60 + - 3 * + 8 AS col0 FROM tab0 AS cor0
----
36
36
36

query I rowsort
SELECT 13 * - col0 AS col2 FROM tab0
----
-1131
-1261
-195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4267
SELECT DISTINCT CAST( - 88 AS SIGNED ) AS col0 FROM tab2
----
-88

skipif mysql # not compatible
query I rowsort label-4267
SELECT DISTINCT CAST ( - 88 AS INTEGER ) AS col0 FROM tab2
----
-88

query I rowsort
SELECT col1 + 13 * + col1 FROM tab0
----
1134
14
294

onlyif mysql # aggregate syntax: 
query I rowsort label-4269
SELECT ALL + ( COUNT( col2 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4269
SELECT ALL + ( COUNT ( col2 ) ) FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 78 ) col1 FROM tab1
----
78
78
78

query I rowsort
SELECT ALL 4 + col2 AS col1 FROM tab0 WHERE NOT NULL <= ( - col0 + + 66 )
----

query I rowsort
SELECT ALL ( - col1 ) * ( - col0 ) AS col1 FROM tab2
----
2346
4928
5025

onlyif mysql # DIV for integer division: 
query I rowsort label-4273
SELECT + col1 DIV - col2 + + col2 AS col0 FROM tab2
----
21
39
57

skipif mysql # not compatible
query I rowsort label-4273
SELECT + col1 / - col2 + + col2 AS col0 FROM tab2
----
21
39
57

query I rowsort
SELECT 52 AS col2 FROM tab2 WHERE NOT - 70 BETWEEN NULL AND - col1
----
52

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4275
SELECT DISTINCT * FROM tab1 WHERE NOT CAST( 97 AS DECIMAL ) * + col1 IN ( 69 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4275
SELECT DISTINCT * FROM tab1 WHERE NOT CAST ( 97 AS REAL ) * + col1 IN ( 69 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 1 + - 46 AS col0 FROM tab1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4277
SELECT + 31 * COUNT( ALL - col1 ) col0 FROM tab2 WHERE ( NULL ) = ( NULL )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4277
SELECT + 31 * COUNT ( ALL - col1 ) col0 FROM tab2 WHERE ( NULL ) = ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4278
SELECT ALL COUNT( ALL col2 ) FROM tab1 WHERE + 95 NOT IN ( 48 * - col0 )
----
3

skipif mysql # not compatible
query I rowsort label-4278
SELECT ALL COUNT ( ALL col2 ) FROM tab1 WHERE + 95 NOT IN ( 48 * - col0 )
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4279
SELECT ALL + 75 DIV col2 AS col2 FROM tab0
----
0
1
7

skipif mysql # not compatible
query I rowsort label-4279
SELECT ALL + 75 / col2 AS col2 FROM tab0
----
0
1
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4280
SELECT DISTINCT 76 * COUNT( * ) AS col2 FROM tab0 WHERE NULL IS NULL
----
228

skipif mysql # not compatible
query I rowsort label-4280
SELECT DISTINCT 76 * COUNT ( * ) AS col2 FROM tab0 WHERE NULL IS NULL
----
228

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN ( - col1 ) / 98 AND ( NULL )
----

query I rowsort
SELECT ( 91 ) - 39 * col0 FROM tab0
----
-3302
-3692
-494

query I rowsort
SELECT 19 * ( col2 ) FROM tab1 WHERE NOT + 22 > NULL
----

query I rowsort
SELECT 97 + 99 * col0 FROM tab0
----
1582
8710
9700

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4285
SELECT col2 / CAST( NULL AS DECIMAL ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4285
SELECT col2 / CAST ( NULL AS REAL ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 + 47 FROM tab2
----
111
122
93

query I rowsort
SELECT ALL - col2 * - 48 FROM tab2
----
1104
1920
2784

query I rowsort
SELECT ( + 68 ) + - 14 FROM tab2
----
54
54
54

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + 28 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-4290
SELECT ALL + col2 DIV - col1 + + col1 FROM tab0
----
-98
21
81

skipif mysql # not compatible
query I rowsort label-4290
SELECT ALL + col2 / - col1 + + col1 FROM tab0
----
-98
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-4291
SELECT 98 DIV + col0 - - 11 * col1 AS col1 FROM tab1
----
155
518
56

skipif mysql # not compatible
query I rowsort label-4291
SELECT 98 / + col0 - - 11 * col1 AS col1 FROM tab1
----
155
518
56

query I rowsort
SELECT - ( - 72 ) AS col0 FROM tab1 WHERE NOT NULL NOT IN ( - col1 * - col2 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4293
SELECT ALL - col0 + - ( CAST( NULL AS DECIMAL ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4293
SELECT ALL - col0 + - ( CAST ( NULL AS REAL ) ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4294
SELECT DISTINCT 84 * - COUNT( * ) AS col1 FROM tab1 WHERE NOT NULL <> - 37
----
0

skipif mysql # not compatible
query I rowsort label-4294
SELECT DISTINCT 84 * - COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL <> - 37
----
0

query I rowsort
SELECT ALL - col0 + - col1 * 65 FROM tab1
----
-3146
-410
-961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 67 * - ( + 13 ) col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-871

query I rowsort
SELECT 3 * 10 FROM tab2 WHERE ( 51 ) IS NULL
----

query I rowsort
SELECT - col2 FROM tab0 WHERE NOT + col1 + ( 73 ) IS NULL
----
-10
-47
-99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 * 68 IN ( 1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col2 ) NOT BETWEEN ( + 73 - col2 ) AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * 6 col2 FROM tab0 AS cor0
----
282
594
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4302
SELECT MIN( 87 ) FROM tab1 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-4302
SELECT MIN ( 87 ) FROM tab1 AS cor0
----
87

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 82 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4304
SELECT DISTINCT - COUNT( col1 ) col2 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4304
SELECT DISTINCT - COUNT ( col1 ) col2 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4305
SELECT ALL - - COUNT( * ) * + SUM( ALL - 5 ) AS col0 FROM tab0 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-4305
SELECT ALL - - COUNT ( * ) * + SUM ( ALL - 5 ) AS col0 FROM tab0 AS cor0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-4306
SELECT DISTINCT 73 * + COUNT( * ) FROM tab0 AS cor0
----
219

skipif mysql # not compatible
query I rowsort label-4306
SELECT DISTINCT 73 * + COUNT ( * ) FROM tab0 AS cor0
----
219

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col0 / + col2 = NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * col1 + - 73 <= 86
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4309
SELECT 22 * MAX( DISTINCT col1 ) AS col0 FROM tab0 AS cor0
----
1782

skipif mysql # not compatible
query I rowsort label-4309
SELECT 22 * MAX ( DISTINCT col1 ) AS col0 FROM tab0 AS cor0
----
1782

query I rowsort
SELECT ALL col1 * - ( + 60 + - 87 ) + col0 AS col0 FROM tab0 AS cor0
----
124
2202
654

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4311
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 * col2 - + col1 / ( + CAST( + col2 AS SIGNED ) ) < - 30
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4311
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 * col2 - + col1 / ( + CAST ( + col2 AS INTEGER ) ) < - 30
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 58 * - col0 FROM tab2 AS cor0
----
-2668
-3712
-4350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4313
SELECT DISTINCT - - ( + 6 ) * COUNT( * ) + CAST( NULL AS SIGNED ) * MAX( ( - col2 ) * - ( 0 ) + CAST( NULL AS DECIMAL ) ) col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4313
SELECT DISTINCT - - ( + 6 ) * COUNT ( * ) + CAST ( NULL AS INTEGER ) * MAX ( ( - col2 ) * - ( 0 ) + CAST ( NULL AS REAL ) ) col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 65 * - 67 AS col2 FROM tab2 AS cor0
----
-4355

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4315
SELECT DISTINCT + col0 * + 18 FROM tab1 cor0 WHERE NOT - col2 + - col0 * + CAST( NULL AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query I rowsort label-4315
SELECT DISTINCT + col0 * + 18 FROM tab1 cor0 WHERE NOT - col2 + - col0 * + CAST ( NULL AS INTEGER ) <= NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col0 IN ( + 29 * + col1 - 43 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4317
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col2 AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4317
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col2 AS col2 FROM tab0 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4318
SELECT ALL 33 + + col0 * col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-4318
SELECT ALL 33 + + col0 * col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4319
SELECT DISTINCT - col0 DIV 51 AS col1 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-4319
SELECT DISTINCT - col0 / 51 AS col1 FROM tab2
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4320
SELECT + COUNT( * ) FROM tab1 WHERE - 13 NOT IN ( 83 * 9 )
----
3

skipif mysql # not compatible
query I rowsort label-4320
SELECT + COUNT ( * ) FROM tab1 WHERE - 13 NOT IN ( 83 * 9 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4321
SELECT DISTINCT COUNT( * ) col1 FROM tab0 WHERE NOT NULL IN ( + col0 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4321
SELECT DISTINCT COUNT ( * ) col1 FROM tab0 WHERE NOT NULL IN ( + col0 )
----
0

query I rowsort
SELECT col1 + + + col1 * 72 FROM tab0
----
1533
5913
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 87 * col1 col1 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + 6 AS col1 FROM tab0 WHERE NULL IS NULL
----
6
6
6

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE + 2 IS NULL
----

query I rowsort
SELECT 16 * + - 99 * col1 + 99 AS col0 FROM tab0
----
-128205
-1485
-33165

query I rowsort
SELECT DISTINCT - 21 + 55 * - col2 AS col2 FROM tab0 WHERE NOT NULL NOT IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4328
SELECT + SUM( - - 92 ) AS col1 FROM tab1
----
276

skipif mysql # not compatible
query I rowsort label-4328
SELECT + SUM ( - - 92 ) AS col1 FROM tab1
----
276

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 + 42 * 32 NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 4 col0 FROM tab1 AS cor0
----
4
4
4

query I rowsort
SELECT ALL col1 FROM tab0 cor0 WHERE ( NULL ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4332
SELECT + 43 AS col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( col1 ) AND + CAST( NULL AS SIGNED ) * ( + col1 )
----

skipif mysql # not compatible
query I rowsort label-4332
SELECT + 43 AS col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( col1 ) AND + CAST ( NULL AS INTEGER ) * ( + col1 )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + col1 * - col0 IS NULL AND NOT - col1 BETWEEN ( - col2 ) AND NULL
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4334
SELECT - 30 + + - ( COUNT( * ) ) FROM tab2, tab2 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-4334
SELECT - 30 + + - ( COUNT ( * ) ) FROM tab2, tab2 AS cor0
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4335
SELECT DISTINCT - 41 FROM tab0 WHERE NOT + col1 NOT BETWEEN + 62 * col1 + - CAST( - ( - 2 ) AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-4335
SELECT DISTINCT - 41 FROM tab0 WHERE NOT + col1 NOT BETWEEN + 62 * col1 + - CAST ( - ( - 2 ) AS INTEGER ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND - 35
----

query I rowsort
SELECT 1 + 5 FROM tab0 AS cor0
----
6
6
6

onlyif mysql # DIV for integer division: 
query I rowsort label-4338
SELECT ALL 72 + + 72 + - col2 DIV 42 AS col2 FROM tab0 AS cor0
----
142
143
144

skipif mysql # not compatible
query I rowsort label-4338
SELECT ALL 72 + + 72 + - col2 / 42 AS col2 FROM tab0 AS cor0
----
142
143
144

onlyif mysql # aggregate syntax: 
query I rowsort label-4339
SELECT + + 73 + - COUNT( * ) * + MIN( DISTINCT - col0 ) AS col2 FROM tab0 AS cor0
----
364

skipif mysql # not compatible
query I rowsort label-4339
SELECT + + 73 + - COUNT ( * ) * + MIN ( DISTINCT - col0 ) AS col2 FROM tab0 AS cor0
----
364

query I rowsort
SELECT 37 + + + col0 FROM tab1 AS cor0
----
122
128
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4341
SELECT - MIN( DISTINCT - CAST( NULL AS SIGNED ) ) / - ( - MIN( col1 ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4341
SELECT - MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) / - ( - MIN ( col1 ) ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 82 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( 39 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4344
SELECT MAX( + col2 ) AS col0 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-4344
SELECT MAX ( + col2 ) AS col0 FROM tab0 AS cor0
----
99

query II rowsort
SELECT DISTINCT col0 AS col2, - 63 AS col1 FROM tab0 AS cor0
----
15
-63
87
-63
97
-63

query I rowsort
SELECT 31 FROM tab2 WHERE NOT + col2 IS NULL
----
31
31
31

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab1 WHERE NOT - - 32 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4348
SELECT ALL 30 * + MAX( + col0 ) FROM tab2
----
2250

skipif mysql # not compatible
query I rowsort label-4348
SELECT ALL 30 * + MAX ( + col0 ) FROM tab2
----
2250

onlyif mysql # aggregate syntax: 
query I rowsort label-4349
SELECT + COUNT( * ) * - 67 * COUNT( * ) AS col0 FROM tab0
----
-603

skipif mysql # not compatible
query I rowsort label-4349
SELECT + COUNT ( * ) * - 67 * COUNT ( * ) AS col0 FROM tab0
----
-603

onlyif mysql # aggregate syntax: 
query I rowsort label-4350
SELECT ALL + + SUM( DISTINCT - col2 ) AS col0 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-4350
SELECT ALL + + SUM ( DISTINCT - col2 ) AS col0 FROM tab1 AS cor0
----
-223

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 IN ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4352
SELECT * FROM tab1 AS cor0 WHERE NOT ( CAST( NULL AS SIGNED ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4352
SELECT * FROM tab1 AS cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 < - - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 46 + - col0 * ( + col0 ) * col2 FROM tab0
----
-10529
-75644
-931445

onlyif mysql # aggregate syntax: 
query I rowsort label-4355
SELECT DISTINCT + SUM( DISTINCT + col1 ) FROM tab0 cor0
----
103

skipif mysql # not compatible
query I rowsort label-4355
SELECT DISTINCT + SUM ( DISTINCT + col1 ) FROM tab0 cor0
----
103

query I rowsort
SELECT + 63 FROM tab2 AS cor0 WHERE NOT ( NULL ) < + - 17 * col0 * + col1 * + col1
----

query I rowsort
SELECT DISTINCT col0 + col1 AS col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( + col1 ) AND + ( col0 ) * + col1 + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4358
SELECT DISTINCT - - 33 + - CAST( NULL AS SIGNED ) * col1 + - - col2 col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4358
SELECT DISTINCT - - 33 + - CAST ( NULL AS INTEGER ) * col1 + - - col2 col0 FROM tab1 cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( 10 + + col0 ) NOT BETWEEN ( col0 ) * + 30 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + - col1 * col1 * + + 78, ( 95 ) + + 76 AS col1 FROM tab2 AS cor0
----
-202878
171
-350142
171
-462462
171

query I rowsort
SELECT DISTINCT col1 + + 5 FROM tab2 AS cor0
----
56
72
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4362
SELECT - CAST( + ( + ( - 34 ) ) AS SIGNED ) * col2 col1 FROM tab0 AS cor0
----
1598
3366
340

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4362
SELECT - CAST ( + ( + ( - 34 ) ) AS INTEGER ) * col2 col1 FROM tab0 AS cor0
----
1598
3366
340

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 76 - + ( - 36 ) IN ( + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4364
SELECT ALL - - col1 DIV - - col2 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-4364
SELECT ALL - - col1 / - - col2 FROM tab2 AS cor0
----
1
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4365
SELECT COUNT( * ) * + 30 * 4 + - 61 FROM tab2 AS cor0
----
299

skipif mysql # not compatible
query I rowsort label-4365
SELECT COUNT ( * ) * + 30 * 4 + - 61 FROM tab2 AS cor0
----
299

onlyif mysql # aggregate syntax: 
query II rowsort label-4366
SELECT + MAX( ALL col0 ) AS col0, 90 FROM tab0
----
97
90

skipif mysql # not compatible
query II rowsort label-4366
SELECT + MAX ( ALL col0 ) AS col0, 90 FROM tab0
----
97
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4367
SELECT DISTINCT 98 + col2 FROM tab0 WHERE NOT - + col2 * CAST( NULL AS SIGNED ) <= col2 * - + col0 + - 69 / col1
----

skipif mysql # not compatible
query I rowsort label-4367
SELECT DISTINCT 98 + col2 FROM tab0 WHERE NOT - + col2 * CAST ( NULL AS INTEGER ) <= col2 * - + col0 + - 69 / col1
----

query I rowsort
SELECT col1 * - ( + - col2 ) * + - col2 + col2 + - col1 AS col2 FROM tab0
----
-178963
-2111
-9703

query I rowsort
SELECT DISTINCT 22 + + col2 + - 7 FROM tab2 cor0
----
38
55
73

query I rowsort
SELECT + col1 * - - 26 + 10 * - col1 AS col1 FROM tab2 AS cor0 WHERE col2 + + + col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4371
SELECT - MIN( - col0 ) / + - 86 FROM tab1 AS cor0 WHERE col1 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4371
SELECT - MIN ( - col0 ) / + - 86 FROM tab1 AS cor0 WHERE col1 >= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4372
SELECT + + COUNT( * ) FROM tab2 AS cor0 WHERE - 44 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4372
SELECT + + COUNT ( * ) FROM tab2 AS cor0 WHERE - 44 IS NOT NULL
----
3

query I rowsort
SELECT ALL + col0 + - 21 * - col2 * + + col2 + - col2 AS col1 FROM tab1 AS cor0
----
193491
73127
97127

onlyif mysql # aggregate syntax: 
query I rowsort label-4374
SELECT ALL - - MAX( DISTINCT + + col2 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-4374
SELECT ALL - - MAX ( DISTINCT + + col2 ) FROM tab2 AS cor0
----
58

query I rowsort
SELECT DISTINCT + + 22 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4376
SELECT 83 * - ( + COUNT( * ) ) AS col1 FROM tab1
----
-249

skipif mysql # not compatible
query I rowsort label-4376
SELECT 83 * - ( + COUNT ( * ) ) AS col1 FROM tab1
----
-249

query III rowsort
SELECT * FROM tab2 WHERE + + col0 + + - col1 BETWEEN ( - col2 * - col1 ) AND ( NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL = + ( - 38 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4379
SELECT ALL + - MIN( ALL + 57 ) DIV + COUNT( * ) col0 FROM tab2 cor0
----
-19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4379
SELECT ALL + - MIN ( ALL + 57 ) / + COUNT ( * ) col0 FROM tab2 cor0
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-4380
SELECT - - 97 DIV - - col2 AS col0 FROM tab0 cor0
----
0
2
9

skipif mysql # not compatible
query I rowsort label-4380
SELECT - - 97 / - - col2 AS col0 FROM tab0 cor0
----
0
2
9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 92 - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-4382
SELECT ALL - + COUNT( - - 86 ), 10 col2 FROM tab2 AS cor0
----
-3
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4382
SELECT ALL - + COUNT ( - - 86 ), 10 col2 FROM tab2 AS cor0
----
-3
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4383
SELECT DISTINCT COUNT( ALL col2 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4383
SELECT DISTINCT COUNT ( ALL col2 ) AS col2 FROM tab0
----
3

query II rowsort
SELECT - col0, - 77 AS col0 FROM tab0
----
-15
-77
-87
-77
-97
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4385
SELECT - ( + - COUNT( * ) ) col2 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4385
SELECT - ( + - COUNT ( * ) ) col2 FROM tab2
----
3

query I rowsort
SELECT 21 FROM tab1 WHERE NOT + col1 + + + 78 + - 34 BETWEEN + col1 / - - col1 AND NULL
----

query I rowsort
SELECT col2 * + col1 FROM tab1 WHERE NOT - + col2 <= + col1
----

query I rowsort
SELECT ALL - - col1 AS col0 FROM tab2 WHERE NOT + col1 * + col1 / + + col1 * + col0 IS NOT NULL
----

query II rowsort
SELECT ALL + col1, 34 AS col2 FROM tab1 AS cor0
----
14
34
47
34
5
34

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 97 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 AS col0 FROM tab2 AS cor0 WHERE NOT + 50 NOT IN ( + 24 + + ( - + col1 ) ) AND ( NOT NULL IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4392
SELECT col2 AS col1 FROM tab0 AS cor0 WHERE 27 - - CAST( - col0 AS SIGNED ) * - - 74 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4392
SELECT col2 AS col1 FROM tab0 AS cor0 WHERE 27 - - CAST ( - col0 AS INTEGER ) * - - 74 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4393
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4393
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
3

query I rowsort
SELECT ALL + 62 * + + col2 + col0 FROM tab2 AS cor0
----
1472
2544
3671

onlyif mysql # aggregate syntax: 
query I rowsort label-4395
SELECT ALL 45 + - + ( + COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-4395
SELECT ALL 45 + - + ( + COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4396
SELECT DISTINCT - - SUM( - col1 ) + - ( + - MIN( DISTINCT - col2 ) ) FROM tab0 cor0
----
-202

skipif mysql # not compatible
query I rowsort label-4396
SELECT DISTINCT - - SUM ( - col1 ) + - ( + - MIN ( DISTINCT - col2 ) ) FROM tab0 cor0
----
-202

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE NOT col2 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 <= ( + col1 + + col0 * 69 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + col2 + col0 * - - col2 FROM tab1 AS cor0
----
4992
5074
6256

query III rowsort
SELECT * FROM tab2 WHERE - 63 BETWEEN - + col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4401
SELECT ALL * FROM tab2 WHERE NOT + col0 IN ( + col1, CAST( NULL AS SIGNED ) + + col1, 64 )
----

skipif mysql # not compatible
query III rowsort label-4401
SELECT ALL * FROM tab2 WHERE NOT + col0 IN ( + col1, CAST ( NULL AS INTEGER ) + + col1, 64 )
----

query I rowsort
SELECT ALL 32 + - 94 AS col1 FROM tab2
----
-62
-62
-62

query III rowsort
SELECT * FROM tab1 WHERE 89 NOT BETWEEN - col1 * col1 AND NULL
----

query I rowsort
SELECT ALL + + 55 * + col1 FROM tab2 AS cor0
----
2805
3685
4235

query I rowsort
SELECT DISTINCT 94 + - 93 AS col2 FROM tab0 AS cor0
----
1

query I rowsort
SELECT DISTINCT col0 + - + col2 * 13 * + 56 AS col1 FROM tab1 AS cor0
----
-42867
-49413
-69837

query II rowsort
SELECT + 89, - col2 FROM tab2 AS cor0 WHERE + 36 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4408
SELECT - - SUM( - + 62 ) AS col2 FROM tab1 AS cor0
----
-186

skipif mysql # not compatible
query I rowsort label-4408
SELECT - - SUM ( - + 62 ) AS col2 FROM tab1 AS cor0
----
-186

query I rowsort
SELECT ALL + 24 + - col0 FROM tab2 AS cor0
----
-22
-40
-51

query I rowsort
SELECT ALL - - col1 FROM tab2 AS cor0 WHERE col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4411
SELECT DISTINCT + COUNT( * ) - + COUNT( * ) col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4411
SELECT DISTINCT + COUNT ( * ) - + COUNT ( * ) col0 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN - + ( - + ( - + col0 ) ) * + 43 / - 92 + + col2 AND NULL
----

query I rowsort
SELECT - 33 * col0 AS col0 FROM tab2
----
-1518
-2112
-2475

query I rowsort
SELECT + + 98 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

query I rowsort
SELECT + 99 * - ( + - col0 ) AS col2 FROM tab2
----
4554
6336
7425

query II rowsort
SELECT ALL + 95 AS col1, - col1 * + col0 AS col1 FROM tab1 AS cor0
----
95
-425
95
-4277
95
-714

query I rowsort
SELECT + col0 + - col0 FROM tab1 AS cor0 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT + col2 * - 45 FROM tab2 AS cor0
----
-1035
-1800
-2610

query I rowsort
SELECT ALL - - 26 AS col0 FROM tab0 cor0
----
26
26
26

query I rowsort
SELECT - 60 FROM tab1 AS cor0 WHERE NOT col0 + + 0 IS NULL
----
-60
-60
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4421
SELECT DISTINCT - col2 / + + CAST( + + col2 AS SIGNED ) * - - 50 * - col0 - + col2 FROM tab1 AS cor0 WHERE NOT + 57 > ( + 35 + - col0 - - 54 )
----

skipif mysql # not compatible
query I rowsort label-4421
SELECT DISTINCT - col2 / + + CAST ( + + col2 AS INTEGER ) * - - 50 * - col0 - + col2 FROM tab1 AS cor0 WHERE NOT + 57 > ( + 35 + - col0 - - 54 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT ( col1 / + 31 ) >= col1 + + - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col1 * - col1 * 15 FROM tab0
----
15
6615
98415

onlyif mysql # aggregate syntax: 
query I rowsort label-4424
SELECT COUNT( * ) * COUNT( * ) * + + COUNT( * ) FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-4424
SELECT COUNT ( * ) * COUNT ( * ) * + + COUNT ( * ) FROM tab1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4425
SELECT MAX( - 17 ) FROM tab2
----
-17

skipif mysql # not compatible
query I rowsort label-4425
SELECT MAX ( - 17 ) FROM tab2
----
-17

onlyif mysql # DIV for integer division: 
query II rowsort label-4426
SELECT DISTINCT ( - col0 ) AS col2, - 55 * + + col2 + + col0 DIV 21 FROM tab1
----
-51
-5278
-85
-3241
-91
-3736

skipif mysql # not compatible
query II rowsort label-4426
SELECT DISTINCT ( - col0 ) AS col2, - 55 * + + col2 + + col0 / 21 FROM tab1
----
-51
-5278
-85
-3241
-91
-3736

onlyif mysql # aggregate syntax: 
query I rowsort label-4427
SELECT DISTINCT + COUNT( 14 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4427
SELECT DISTINCT + COUNT ( 14 ) FROM tab1
----
3

query I rowsort
SELECT DISTINCT - + 55 AS col1 FROM tab0 cor0
----
-55

query I rowsort
SELECT ( - ( + 33 ) ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT - 56 IS NULL
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4430
SELECT DISTINCT - CAST( + 65 AS SIGNED ) + - - ( - + 73 ) - - - col2 FROM tab0 AS cor0
----
-148
-185
-237

skipif mysql # not compatible
query I rowsort label-4430
SELECT DISTINCT - CAST ( + 65 AS INTEGER ) + - - ( - + 73 ) - - - col2 FROM tab0 AS cor0
----
-148
-185
-237

onlyif mysql # aggregate syntax: 
query I rowsort label-4431
SELECT + 46 * - COUNT( * ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4431
SELECT + 46 * - COUNT ( * ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE col1 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <= - col2
----

query I rowsort
SELECT ALL + - 87 + + col2 AS col0 FROM tab2 AS cor0
----
-29
-47
-64

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4435
SELECT * FROM tab2 AS cor0 WHERE CAST( - col1 AS SIGNED ) * col0 * + + col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-4435
SELECT * FROM tab2 AS cor0 WHERE CAST ( - col1 AS INTEGER ) * col0 * + + col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4436
SELECT DISTINCT 90 * + col1 + - 5 + + + col0 DIV - + col0 AS col0 FROM tab2 AS cor0
----
4584
6024
6924

skipif mysql # not compatible
query I rowsort label-4436
SELECT DISTINCT 90 * + col1 + - 5 + + + col0 / - + col0 AS col0 FROM tab2 AS cor0
----
4584
6024
6924

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4437
SELECT * FROM tab2 AS cor0 WHERE col1 / - - CAST( NULL AS SIGNED ) <> 75 + - 7 * - 38
----

skipif mysql # not compatible
query III rowsort label-4437
SELECT * FROM tab2 AS cor0 WHERE col1 / - - CAST ( NULL AS INTEGER ) <> 75 + - 7 * - 38
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 63 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4439
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + - COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4439
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + - COUNT ( * ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4440
SELECT ALL + MIN( 40 ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
40

skipif mysql # not compatible
query I rowsort label-4440
SELECT ALL + MIN ( 40 ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
40

query II rowsort
SELECT DISTINCT + ( + 11 ) * - 76 + + 80 AS col1, col0 + col1 AS col2 FROM tab1
----
-756
138
-756
65
-756
90

query I rowsort
SELECT DISTINCT col2 * ( + col2 ) AS col1 FROM tab1
----
3481
4624
9216

query I rowsort
SELECT + col0 * col1 + + col1 AS col0 FROM tab2
----
2397
5005
5092

onlyif mysql # aggregate syntax: 
query I rowsort label-4444
SELECT SUM( DISTINCT - - col0 ) - SUM( + col0 ) AS col1 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4444
SELECT SUM ( DISTINCT - - col0 ) - SUM ( + col0 ) AS col1 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ALL + col2 + + 1 - col1 AS col2 FROM tab2
----
-27
-36
-8

query I rowsort
SELECT ALL + col0 + + + 25 FROM tab1 AS cor0
----
110
116
76

query I rowsort
SELECT - ( 53 ) AS col1 FROM tab0
----
-53
-53
-53

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 9 + + col0 * + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL = 34
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 84 AS col1, - col0 col0 FROM tab2 AS cor0
----
84
-46
84
-64
84
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4451
SELECT + + MIN( DISTINCT - + col2 ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-4451
SELECT + + MIN ( DISTINCT - + col2 ) FROM tab2 AS cor0
----
-58

query II rowsort
SELECT + - col0 AS col1, + 63 FROM tab0 cor0
----
-15
63
-87
63
-97
63

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 = + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col1, col0 FROM tab0 WHERE NOT - 2 NOT BETWEEN - col0 AND + col0
----
1
97
21
87
81
15

query I rowsort
SELECT 36 * + col1 + - 80 FROM tab2
----
1756
2332
2692

query III rowsort
SELECT * FROM tab2 WHERE NOT 20 IS NOT NULL
----

query II rowsort
SELECT - col1 AS col2, col1 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4458
SELECT DISTINCT - - SUM( - 25 ) FROM tab0 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-4458
SELECT DISTINCT - - SUM ( - 25 ) FROM tab0 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4459
SELECT DISTINCT COUNT( * ) + + MIN( ALL - col0 ) + + 38 FROM tab2 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-4459
SELECT DISTINCT COUNT ( * ) + + MIN ( ALL - col0 ) + + 38 FROM tab2 AS cor0
----
-34

query I rowsort
SELECT - 85 + ( + 99 ) + + col2 AS col1 FROM tab1 AS cor0
----
110
73
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4461
SELECT - ( - + COUNT( * ) ) + - SUM( ALL - 70 ) col1 FROM tab1 AS cor0
----
213

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4461
SELECT - ( - + COUNT ( * ) ) + - SUM ( ALL - 70 ) col1 FROM tab1 AS cor0
----
213

query I rowsort
SELECT - 70 AS col2 FROM tab2 AS cor0 WHERE ( - ( - - 91 ) ) BETWEEN NULL AND + col1 + + 0 * + col1 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4463
SELECT COUNT( + col0 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4463
SELECT COUNT ( + col0 ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL 54 + - col0 FROM tab2
----
-10
-21
8

query I rowsort
SELECT ALL + col0 + - col0 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

query IIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 WHERE NOT + 68 >= ( + 70 )
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query I rowsort
SELECT 53 * + 97 FROM tab1
----
5141
5141
5141

query I rowsort
SELECT - + col1 + col1 FROM tab0 WHERE NULL IS NULL
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4469
SELECT COUNT( DISTINCT + + 67 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4469
SELECT COUNT ( DISTINCT + + 67 ) FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4470
SELECT ALL - COUNT( * ) FROM tab0 AS cor0 WHERE NOT 33 <> col1 * col1 + + - 99
----
0

skipif mysql # not compatible
query I rowsort label-4470
SELECT ALL - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT 33 <> col1 * col1 + + - 99
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4471
SELECT + 59 - - CAST( - col0 AS SIGNED ) FROM tab1 AS cor0
----
-26
-32
8

skipif mysql # not compatible
query I rowsort label-4471
SELECT + 59 - - CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0
----
-26
-32
8

onlyif mysql # aggregate syntax: 
query II rowsort label-4472
SELECT COUNT( * ) AS col2, COUNT( * ) FROM tab0 cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-4472
SELECT COUNT ( * ) AS col2, COUNT ( * ) FROM tab0 cor0
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4473
SELECT ALL + + CAST( col0 AS SIGNED ) * col0 + col1 AS col2 FROM tab1 AS cor0
----
2615
7230
8328

skipif mysql # not compatible
query I rowsort label-4473
SELECT ALL + + CAST ( col0 AS INTEGER ) * col0 + col1 AS col2 FROM tab1 AS cor0
----
2615
7230
8328

query I rowsort
SELECT + 40 AS col2 FROM tab1 AS cor0 WHERE NOT + col0 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL IN ( 69, col0, + + ( + 36 ) / col0 )
----

query I rowsort
SELECT - 63 FROM tab1 AS cor0 WHERE NOT ( NOT NULL <= + col0 )
----

query I rowsort
SELECT + 76 * col1 AS col1 FROM tab2 AS cor0
----
3876
5092
5852

onlyif mysql # aggregate syntax: 
query I rowsort label-4478
SELECT DISTINCT - SUM( - 34 ) AS col1 FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND - col2 * - 13
----
NULL

skipif mysql # not compatible
query I rowsort label-4478
SELECT DISTINCT - SUM ( - 34 ) AS col1 FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND - col2 * - 13
----
NULL

query I rowsort
SELECT DISTINCT + col2 * - col0 * - col1 FROM tab0 AS cor0
----
18270
57105
9603

query I rowsort
SELECT ALL 59 AS col0 FROM tab0 AS cor0 WHERE NOT col1 + - col1 * - 26 IS NULL
----
59
59
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4481
SELECT MAX( DISTINCT + + ( - + col2 ) ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-4481
SELECT MAX ( DISTINCT + + ( - + col2 ) ) FROM tab0 AS cor0
----
-10

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT + col2 > NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4483
SELECT DISTINCT + COUNT( * ), + MIN( + 19 ) AS col2 FROM tab0
----
3
19

skipif mysql # not compatible
query II rowsort label-4483
SELECT DISTINCT + COUNT ( * ), + MIN ( + 19 ) AS col2 FROM tab0
----
3
19

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - ( col1 ) ) * col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4485
SELECT - 58 * - CAST( 70 AS SIGNED ) * + ( - ( - + col0 ) ) FROM tab1
----
207060
345100
369460

skipif mysql # not compatible
query I rowsort label-4485
SELECT - 58 * - CAST ( 70 AS INTEGER ) * + ( - ( - + col0 ) ) FROM tab1
----
207060
345100
369460

query I rowsort
SELECT DISTINCT ( + 22 ) FROM tab0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4487
SELECT + SUM( ALL + col1 ) FROM tab2 WHERE NOT NULL > - ( col2 ) * + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4487
SELECT + SUM ( ALL + col1 ) FROM tab2 WHERE NOT NULL > - ( col2 ) * + col1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 AS col1, col0 col1 FROM tab2 AS cor0
----
46
46
64
64
75
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 4 * col2 + + ( - col2 ) col0 FROM tab1 cor0
----
-295
-340
-480

query II rowsort
SELECT DISTINCT - - col1 + + col1 * + col1, 52 * col1 * col2 AS col1 FROM tab0 AS cor0
----
2
5148
462
10920
6642
197964

query I rowsort
SELECT - col0 AS col1 FROM tab0 AS cor0 WHERE - 59 IS NOT NULL AND NOT NULL < NULL
----

query I rowsort
SELECT DISTINCT + 22 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
22

query I rowsort
SELECT DISTINCT + col2 + - + 26 * + 64 AS col2 FROM tab1
----
-1568
-1596
-1605

query II rowsort
SELECT DISTINCT 21, + 48 AS col1 FROM tab1
----
21
48

query I rowsort
SELECT 58 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

query I rowsort
SELECT ALL + 53 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 23 )
----

query I rowsort
SELECT ALL + col0 * - 47 + + 97 + 41 AS col1 FROM tab0 AS cor0
----
-3951
-4421
-567

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - 36 col0 FROM tab0 AS cor0
----
-26
11
63

query I rowsort
SELECT 98 - + col0 * - col1 * + col0 AS col1 FROM tab2 AS cor0
----
108014
315490
376973

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL >= - col1 - + + col1 * 17 / col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4501
SELECT 28 * + - 97 + - + 31 * - MIN( ALL + + CAST( - + col2 AS SIGNED ) ) + - + SUM( col1 ) + COUNT( * ) FROM tab2
----
-4706

skipif mysql # not compatible
query I rowsort label-4501
SELECT 28 * + - 97 + - + 31 * - MIN ( ALL + + CAST ( - + col2 AS INTEGER ) ) + - + SUM ( col1 ) + COUNT ( * ) FROM tab2
----
-4706

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4502
SELECT + CAST( + COUNT( * ) AS SIGNED ) AS col2 FROM tab0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4502
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 WHERE NULL IS NULL
----
3

query I rowsort
SELECT ALL + col1 - - 1 * + - 71 FROM tab2
----
-20
-4
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4504
SELECT + 72 * COUNT( * ) + - SUM( - 15 ) AS col2 FROM tab1
----
261

skipif mysql # not compatible
query I rowsort label-4504
SELECT + 72 * COUNT ( * ) + - SUM ( - 15 ) AS col2 FROM tab1
----
261

onlyif mysql # aggregate syntax: 
query I rowsort label-4505
SELECT ALL + COUNT( DISTINCT - 5 ) FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-4505
SELECT ALL + COUNT ( DISTINCT - 5 ) FROM tab2 cor0
----
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - - col0 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4507
SELECT DISTINCT - - MAX( - col0 ) * + + 90 AS col0, + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
-4140
NULL

skipif mysql # not compatible
query II rowsort label-4507
SELECT DISTINCT - - MAX ( - col0 ) * + + 90 AS col0, + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
-4140
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4508
SELECT COUNT( ALL 83 ) FROM tab2 AS cor0 WHERE NOT + 5 + - ( - 19 ) - + - col0 + + - CAST( NULL AS SIGNED ) * - 16 * ( + col0 ) < ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4508
SELECT COUNT ( ALL 83 ) FROM tab2 AS cor0 WHERE NOT + 5 + - ( - 19 ) - + - col0 + + - CAST ( NULL AS INTEGER ) * - 16 * ( + col0 ) < ( NULL )
----
0

query I rowsort
SELECT DISTINCT - 94 FROM tab2 AS cor0 WHERE NULL > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4510
SELECT ALL - + col1 + - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4510
SELECT ALL - + col1 + - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0, col0 col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-51
51
-85
85
-91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4512
SELECT ( + MIN( ALL + - 0 ) ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4512
SELECT ( + MIN ( ALL + - 0 ) ) FROM tab2 cor0
----
0

query I rowsort
SELECT DISTINCT + col0 * + + ( - col0 ) + col1 AS col1 FROM tab0 AS cor0
----
-144
-7548
-9408

query II rowsort
SELECT ALL - col1, + 64 AS col1 FROM tab2 AS cor0
----
-51
64
-67
64
-77
64

query I rowsort
SELECT DISTINCT + ( - - col1 ) * - 3 FROM tab2 AS cor0
----
-153
-201
-231

query I rowsort
SELECT DISTINCT + 33 FROM tab0, tab0 cor0
----
33

query I rowsort
SELECT DISTINCT col2 * col0 + + col0 * + - col0 * col2 AS col2 FROM tab1
----
-244800
-421260
-556920

query I rowsort
SELECT ALL + 81 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

query I rowsort
SELECT + 51 + - 10 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query I rowsort
SELECT DISTINCT - 56 * col0 AS col0 FROM tab1
----
-2856
-4760
-5096

onlyif mysql # DIV for integer division: 
query I rowsort label-4521
SELECT ALL 40 + 78 DIV - col1 FROM tab1 AS cor0
----
25
35
39

skipif mysql # not compatible
query I rowsort label-4521
SELECT ALL 40 + 78 / - col1 FROM tab1 AS cor0
----
25
35
39

onlyif mysql # DIV for integer division: 
query I rowsort label-4522
SELECT ALL + col1 * - 0 DIV col2 + + col0 AS col1 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-4522
SELECT ALL + col1 * - 0 / col2 + + col0 AS col1 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4523
SELECT DISTINCT - COUNT( * ) + - COUNT( + + col2 ) AS col0 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-4523
SELECT DISTINCT - COUNT ( * ) + - COUNT ( + + col2 ) AS col0 FROM tab0 AS cor0
----
-6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4524
SELECT ALL - + CAST( NULL AS DECIMAL ) + + 99 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4524
SELECT ALL - + CAST ( NULL AS REAL ) + + 99 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 71 - - col2 AS col1 FROM tab2 AS cor0
----
111
129
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4526
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE col2 - + - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4526
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE col2 - + - col0 IS NULL
----
0

query I rowsort
SELECT ALL + 82 - + - ( + 99 ) AS col1 FROM tab1 cor0
----
181
181
181

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4528
SELECT ALL col1, col1 / + 52 / - - CAST( NULL AS DECIMAL ) * + + ( 13 ) col1 FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4528
SELECT ALL col1, col1 / + 52 / - - CAST ( NULL AS REAL ) * + + ( 13 ) col1 FROM tab0
----
1
NULL
21
NULL
81
NULL

query I rowsort
SELECT + col2 FROM tab1 WHERE NOT NULL = NULL
----

query I rowsort
SELECT DISTINCT col0 * + - 26 AS col0 FROM tab1
----
-1326
-2210
-2366

onlyif mysql # aggregate syntax: 
query I rowsort label-4531
SELECT SUM( - 76 ) AS col2 FROM tab0 AS cor0
----
-228

skipif mysql # not compatible
query I rowsort label-4531
SELECT SUM ( - 76 ) AS col2 FROM tab0 AS cor0
----
-228

query I rowsort
SELECT ALL + 12 * - col0 + - col2 FROM tab0 AS cor0 WHERE NOT + 12 IS NULL
----
-1054
-1263
-227

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4533
SELECT - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4533
SELECT - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
NULL
NULL
NULL

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 41 - + 81 IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4535
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4535
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( + 78 ) col0, col2 FROM tab1 cor0
----
78
59
78
68
78
96

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 71 * - col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 45 col2 FROM tab1 AS cor0
----
45
45
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4539
SELECT MIN( DISTINCT + - col1 ) AS col1 FROM tab1 cor0 WHERE + 19 * + col2 IS NOT NULL
----
-47

skipif mysql # not compatible
query I rowsort label-4539
SELECT MIN ( DISTINCT + - col1 ) AS col1 FROM tab1 cor0 WHERE + 19 * + col2 IS NOT NULL
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4540
SELECT - COUNT( 41 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4540
SELECT - COUNT ( 41 ) AS col2 FROM tab0 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 15 ) col0 FROM tab1 AS cor0
----
-15
-15
-15

query II rowsort
SELECT ALL 46, col1 FROM tab2
----
46
51
46
67
46
77

query I rowsort
SELECT ALL col2 FROM tab1 WHERE + - col0 - - col0 < - 9
----

query III rowsort
SELECT * FROM tab0 WHERE 52 * + col1 * + col2 <> NULL
----

query II rowsort
SELECT ALL + col0 AS col2, col2 + ( ( + + col2 ) ) * - 38 AS col0 FROM tab2
----
46
-851
64
-1480
75
-2146

onlyif mysql # aggregate syntax: 
query II rowsort label-4546
SELECT COUNT( * ), + 47 AS col0 FROM tab0
----
3
47

skipif mysql # not compatible
query II rowsort label-4546
SELECT COUNT ( * ), + 47 AS col0 FROM tab0
----
3
47

query I rowsort
SELECT DISTINCT - col0 + col2 + 35 AS col2 FROM tab2
----
11
12
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4548
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-4548
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NULL > NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4549
SELECT DISTINCT CAST( col2 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
23
40
58

skipif mysql # not compatible
query I rowsort label-4549
SELECT DISTINCT CAST ( col2 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
23
40
58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL >= + ( - 84 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4551
SELECT DISTINCT 11 DIV COUNT( * ) * + COUNT( * ) - + COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-4551
SELECT DISTINCT 11 / COUNT ( * ) * + COUNT ( * ) - + COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4552
SELECT 35 DIV SUM( DISTINCT col1 ) col1 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4552
SELECT 35 / SUM ( DISTINCT col1 ) col1 FROM tab0
----
0

query I rowsort
SELECT - col2 - - + 97 AS col2 FROM tab0 AS cor0
----
-2
50
87

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - ( 7 ) * + - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 14 * col1 AS col0 FROM tab0 AS cor0
----
-1134
-14
-294

onlyif mysql # aggregate syntax: 
query I rowsort label-4556
SELECT COUNT( DISTINCT - + col2 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4556
SELECT COUNT ( DISTINCT - + col2 ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4557
SELECT + CAST( NULL AS SIGNED ) * col1 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4557
SELECT + CAST ( NULL AS INTEGER ) * col1 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 94 * 48 AS col2 FROM tab1
----
-4512
-4512
-4512

onlyif mysql # aggregate syntax: 
query I rowsort label-4559
SELECT + 22 * + COUNT( * ) FROM tab2
----
66

skipif mysql # not compatible
query I rowsort label-4559
SELECT + 22 * + COUNT ( * ) FROM tab2
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4560
SELECT DISTINCT + CAST( - 5 AS SIGNED ) * - - 87 AS col0 FROM tab0
----
-435

skipif mysql # not compatible
query I rowsort label-4560
SELECT DISTINCT + CAST ( - 5 AS INTEGER ) * - - 87 AS col0 FROM tab0
----
-435

onlyif mysql # DIV for integer division: 
query I rowsort label-4561
SELECT DISTINCT + 11 DIV - + col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4561
SELECT DISTINCT + 11 / - + col1 FROM tab2
----
0

query I rowsort
SELECT ALL 76 AS col0 FROM tab0 cor0
----
76
76
76

query II rowsort
SELECT ALL + 28 AS col1, col0 FROM tab2 AS cor0
----
28
46
28
64
28
75

onlyif mysql # aggregate syntax: 
query II rowsort label-4564
SELECT 42 AS col2, + SUM( - + 64 ) AS col0 FROM tab0
----
42
-192

skipif mysql # not compatible
query II rowsort label-4564
SELECT 42 AS col2, + SUM ( - + 64 ) AS col0 FROM tab0
----
42
-192

query III rowsort
SELECT ALL * FROM tab1 WHERE - + col1 / + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + ( - + 11 ) AS col2 FROM tab1 AS cor0
----
11
11
11

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4567
SELECT ALL CAST( NULL AS DECIMAL ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4567
SELECT ALL CAST ( NULL AS REAL ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4568
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL IN ( 51, + CAST( NULL AS SIGNED ), - col1 - + 88 * + col2 * + 11, + col0, + + col2 )
----

skipif mysql # not compatible
query III rowsort label-4568
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL IN ( 51, + CAST ( NULL AS INTEGER ), - col1 - + 88 * + col2 * + 11, + col0, + + col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4569
SELECT - SUM( + + col2 ) + + 60 + 63 DIV 55 * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-4569
SELECT - SUM ( + + col2 ) + + 60 + 63 / 55 * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-99

query I rowsort
SELECT ALL + + 99 + - col2 FROM tab0 AS cor0
----
0
52
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4571
SELECT DISTINCT + + AVG ( DISTINCT + ( + CAST( NULL AS SIGNED ) ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4571
SELECT DISTINCT + + AVG ( DISTINCT + ( + CAST ( NULL AS INTEGER ) ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - 8 + + col0 AS col2 FROM tab0 AS cor0
----
7
79
89

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - ( + col1 ) IS NULL
----

query I rowsort
SELECT col0 * + 12 * + - col1 AS col2 FROM tab2
----
-28152
-59136
-60300

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 90 * - col2 * - col2 col1 FROM tab1
----
313290
416160
829440

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4576
SELECT CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * - - 75 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4576
SELECT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * - - 75 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4577
SELECT + ( + MAX( ALL + col2 ) ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-4577
SELECT + ( + MAX ( ALL + col2 ) ) FROM tab1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4578
SELECT + + ( - COUNT( * ) ) col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4578
SELECT + + ( - COUNT ( * ) ) col2 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4579
SELECT ALL CAST( col0 AS SIGNED ) - + col2 + - - 13 FROM tab2 AS cor0
----
30
36
37

skipif mysql # not compatible
query I rowsort label-4579
SELECT ALL CAST ( col0 AS INTEGER ) - + col2 + - - 13 FROM tab2 AS cor0
----
30
36
37

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4580
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN col2 AND + ( - - ( + CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-4580
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN col2 AND + ( - - ( + CAST ( NULL AS INTEGER ) ) )
----

query I rowsort
SELECT - col0 + - 24 AS col1 FROM tab2
----
-70
-88
-99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT + col0 * + + 71 * col1 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 0 + 32 AS col1 FROM tab0
----
32
32
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 col1, - col0 * col2 * - ( - 73 ) AS col0 FROM tab1
----
59
-366095
68
-451724
96
-357408

query III rowsort
SELECT * FROM tab0 WHERE NOT ( ( NOT + 53 * + 89 IS NULL ) )
----

query I rowsort
SELECT + 5 * - col1 + + - col0 - - - ( + col1 ) * + col1 FROM tab1 cor0
----
-135
-2535
-317

onlyif mysql # aggregate syntax: 
query I rowsort label-4587
SELECT ALL - SUM( ALL + col2 ) AS col0 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-4587
SELECT ALL - SUM ( ALL + col2 ) AS col0 FROM tab0 AS cor0
----
-156

query II rowsort
SELECT - col1 * 40 * + - 43, 50 * + col0 AS col1 FROM tab2 AS cor0
----
115240
3750
132440
3200
87720
2300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4589
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + CAST( NULL AS DECIMAL ) + + + MAX( + col2 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4589
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + CAST ( NULL AS REAL ) + + + MAX ( + col2 ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab1 AS cor0 WHERE NOT - col2 > + col0
----
59
68
96

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col2 < col1 * col2
----
97
1
99

query I rowsort
SELECT DISTINCT + col1 * 98 * 27 FROM tab0
----
214326
2646
55566

query III rowsort
SELECT * FROM tab1 WHERE NOT 52 IS NULL AND NOT ( NULL ) < col0
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 62 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-4595
SELECT + ( + SUM( DISTINCT - col1 ) ) * + 96 col2, 82 AS col0 FROM tab0
----
-9888
82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4595
SELECT + ( + SUM ( DISTINCT - col1 ) ) * + 96 col2, 82 AS col0 FROM tab0
----
-9888
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4596
SELECT + CAST( + + 6 AS SIGNED ) * + - col2 col2 FROM tab1
----
-354
-408
-576

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4596
SELECT + CAST ( + + 6 AS INTEGER ) * + - col2 col2 FROM tab1
----
-354
-408
-576

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT col1 IS NULL )
----

query I rowsort
SELECT ALL + - col0 * col2 * - + 37 AS col2 FROM tab0 cor0
----
26085
32190
355311

query I rowsort
SELECT ALL - col1 AS col0 FROM tab2 AS cor0 WHERE NOT 60 IS NOT NULL
----

query I rowsort
SELECT + 72 + ( + 92 ) FROM tab2
----
164
164
164

query I rowsort
SELECT col2 * - + 79 + - - col1 FROM tab0
----
-3632
-769
-7820

query II rowsort
SELECT ALL col1 AS col0, col1 FROM tab0 AS cor0
----
1
1
21
21
81
81

query I rowsort
SELECT - ( + 65 ) AS col0 FROM tab2 cor0
----
-65
-65
-65

query I rowsort
SELECT ALL + - 75 * - col0 FROM tab0 AS cor0
----
1125
6525
7275

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 < - + 50 * - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4606
SELECT ALL + col2 DIV + col2 + - col0 FROM tab2 AS cor0
----
-45
-63
-74

skipif mysql # not compatible
query I rowsort label-4606
SELECT ALL + col2 / + col2 + - col0 FROM tab2 AS cor0
----
-45
-63
-74

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col2 NOT BETWEEN - - col1 + + col0 AND + + col2 - col2
----

query I rowsort
SELECT col1 + col1 + + ( + + col2 ) - col2 * col2 * - col1 FROM tab2
----
123394
225580
27104

onlyif mysql # aggregate syntax: 
query I rowsort label-4609
SELECT - COUNT( * ) * - - SUM( DISTINCT - col1 ) + + + 84 FROM tab0
----
393

skipif mysql # not compatible
query I rowsort label-4609
SELECT - COUNT ( * ) * - - SUM ( DISTINCT - col1 ) + + + 84 FROM tab0
----
393

query I rowsort
SELECT + col2 * + + 44 + - col2 + - col0 AS col2 FROM tab1
----
2452
2833
4077

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 13 + 7 col1 FROM tab1
----
20
20
20

query I rowsort
SELECT ALL + + col1 AS col2 FROM tab1 WHERE - 60 + - - col0 = - col1 * - col2
----

query I rowsort
SELECT DISTINCT + 67 + + 99 * + - 15 AS col1 FROM tab1 AS cor0
----
-1418

query II rowsort
SELECT DISTINCT col2 - - 80 * 63 + + col1 - col0 * + col1 AS col0, col0 * - col1 FROM tab0 AS cor0
----
3244
-1827
3953
-1215
5043
-97

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 42 BETWEEN + 82 * + 50 * - 98 AND NULL
----

query II rowsort
SELECT DISTINCT + 82 + + col0, - col2 FROM tab2 WHERE NOT - col1 IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + 50 IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

onlyif mysql # aggregate syntax: 
query I rowsort label-4618
SELECT ALL COUNT( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4618
SELECT ALL COUNT ( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND + col1
----

query I rowsort
SELECT - col0 * - col2 + + col1 FROM tab0 AS cor0
----
786
891
9604

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 16 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + col0 * - + 81 - + ( + + 73 ) FROM tab2 cor0
----
3653
5111
6002

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4623
SELECT - - COUNT( * ) DIV + - COUNT( * ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4623
SELECT - - COUNT ( * ) / + - COUNT ( * ) FROM tab2 AS cor0
----
-1

query I rowsort
SELECT DISTINCT + col2 * col0 * ( + - col2 ) FROM tab2 AS cor0
----
-102400
-24334
-252300

onlyif mysql # aggregate syntax: 
query I rowsort label-4625
SELECT - + MIN( ALL - col1 ) AS col0 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-4625
SELECT - + MIN ( ALL - col1 ) AS col0 FROM tab2 AS cor0
----
77

query I rowsort
SELECT - col2 * 99 * + col1 + col1 FROM tab1 AS cor0
----
-133042
-29200
-316357

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4627
SELECT DISTINCT COUNT( * ) AS col0, + SUM( - - CAST( NULL AS SIGNED ) ) FROM tab0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-4627
SELECT DISTINCT COUNT ( * ) AS col0, + SUM ( - - CAST ( NULL AS INTEGER ) ) FROM tab0
----
3
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4628
SELECT ALL col1 * - - CAST( 85 AS SIGNED ) FROM tab1 AS cor0
----
1190
3995
425

skipif mysql # not compatible
query I rowsort label-4628
SELECT ALL col1 * - - CAST ( 85 AS INTEGER ) FROM tab1 AS cor0
----
1190
3995
425

onlyif mysql # DIV for integer division: 
query I rowsort label-4629
SELECT DISTINCT - 64 DIV 50 AS col1 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4629
SELECT DISTINCT - 64 / 50 AS col1 FROM tab1 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4630
SELECT + - 35 * + CAST( - col0 AS SIGNED ) FROM tab1 AS cor0
----
1785
2975
3185

skipif mysql # not compatible
query I rowsort label-4630
SELECT + - 35 * + CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0
----
1785
2975
3185

onlyif mysql # DIV for integer division: 
query I rowsort label-4631
SELECT DISTINCT + 95 DIV col1 AS col1 FROM tab1 AS cor0
----
19
2
6

skipif mysql # not compatible
query I rowsort label-4631
SELECT DISTINCT + 95 / col1 AS col1 FROM tab1 AS cor0
----
19
2
6

query I rowsort
SELECT + col0 * - 25 FROM tab2
----
-1150
-1600
-1875

query I rowsort
SELECT ALL 63 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query I rowsort
SELECT + 22 AS col2 FROM tab1 WHERE + col2 * + col2 >= - col0 * - col0 - 20
----
22

query I rowsort
SELECT ALL col2 * + 89 + - col0 * - col1 - - col2 AS col2 FROM tab2 AS cor0
----
10245
4416
8528

onlyif mysql # DIV for integer division: 
query II rowsort label-4636
SELECT col0 + + 14 + col1 * - + ( - 93 ) AS col0, 72 DIV - col0 + + col1 FROM tab0 AS cor0
----
204
1
2054
21
7562
77

skipif mysql # not compatible
query II rowsort label-4636
SELECT col0 + + 14 + col1 * - + ( - 93 ) AS col0, 72 / - col0 + + col1 FROM tab0 AS cor0
----
204
1
2054
21
7562
77

query I rowsort
SELECT 46 + - - col2 AS col2 FROM tab2 AS cor0
----
104
69
86

query I rowsort
SELECT + 40 + - + 98 * col0 * - 81 AS col0 FROM tab2 AS cor0
----
365188
508072
595390

query I rowsort
SELECT ALL + + col0 - - col1 AS col2 FROM tab1 AS cor0
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4640
SELECT ALL + + ( + - COUNT( ALL + col0 ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4640
SELECT ALL + + ( + - COUNT ( ALL + col0 ) ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + ( - 24 ) FROM tab2
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4642
SELECT ALL - col1 - - - 34 * - ( CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4642
SELECT ALL - col1 - - - 34 * - ( CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4643
SELECT CAST( NULL AS DECIMAL ) * - col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4643
SELECT CAST ( NULL AS REAL ) * - col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 97 + col2 * 18 * + col1 FROM tab1 AS cor0
----
24289
5407
57625

query I rowsort
SELECT - 5 - - 82 FROM tab0 AS cor0
----
77
77
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - - col2 col2 FROM tab2 AS cor0
----
104
133
69

query I rowsort
SELECT ALL col1 + - 49 AS col2 FROM tab0 AS cor0
----
-28
-48
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4648
SELECT ALL - CAST( NULL AS SIGNED ) + + + 14 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4648
SELECT ALL - CAST ( NULL AS INTEGER ) + + + 14 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT + 80 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4650
SELECT DISTINCT + AVG ( DISTINCT + - 91 ) - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4650
SELECT DISTINCT + AVG ( DISTINCT + - 91 ) - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 56, - col2 col1 FROM tab2 AS cor0
----
56
-23
56
-40
56
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-4652
SELECT DISTINCT + - COUNT( * ) AS col1, MIN( + col0 ) FROM tab0 AS cor0
----
-3
15

skipif mysql # not compatible
query II rowsort label-4652
SELECT DISTINCT + - COUNT ( * ) AS col1, MIN ( + col0 ) FROM tab0 AS cor0
----
-3
15

query I rowsort
SELECT - col1 * + - col2 AS col1 FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-4654
SELECT 90 * + - COUNT( * ) FROM tab2 AS cor0
----
-270

skipif mysql # not compatible
query I rowsort label-4654
SELECT 90 * + - COUNT ( * ) FROM tab2 AS cor0
----
-270

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - col1, + 13 / col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN + col1 + col0 AND NULL
----

query I rowsort
SELECT + col1 * + - col0 FROM tab2 cor0
----
-2346
-4928
-5025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4658
SELECT ALL CAST( + 46 AS SIGNED ) * ( + col0 ) FROM tab0
----
4002
4462
690

skipif mysql # not compatible
query I rowsort label-4658
SELECT ALL CAST ( + 46 AS INTEGER ) * ( + col0 ) FROM tab0
----
4002
4462
690

onlyif mysql # aggregate syntax: 
query I rowsort label-4659
SELECT DISTINCT + COUNT( DISTINCT ( 81 ) ) AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-4659
SELECT DISTINCT + COUNT ( DISTINCT ( 81 ) ) AS col1 FROM tab2
----
1

query III rowsort
SELECT ALL * FROM tab0 WHERE - 94 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE ( + col0 IS NOT NULL )
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4662
SELECT - SUM( ALL - - 5 ) col2 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4662
SELECT - SUM ( ALL - - 5 ) col2 FROM tab0 AS cor0
----
-15

query I rowsort
SELECT col1 AS col1 FROM tab1 WHERE + + col2 >= col0
----
14

query I rowsort
SELECT ALL - col2 * - col2 * - col0 * col0 + - 19 * - - col1 FROM tab1 AS cor0
----
-23971082
-25150320
-38292237

onlyif mysql # aggregate syntax: 
query I rowsort label-4665
SELECT DISTINCT 28 + - 35 + - SUM( col0 ) AS col1 FROM tab0 cor0
----
-206

skipif mysql # not compatible
query I rowsort label-4665
SELECT DISTINCT 28 + - 35 + - SUM ( col0 ) AS col1 FROM tab0 cor0
----
-206

query I rowsort
SELECT ALL + 14 - + - col1 FROM tab0 AS cor0
----
15
35
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4667
SELECT DISTINCT + + COUNT( * ) - + CAST( NULL AS SIGNED ) - + CAST( + - 33 AS DECIMAL ) * - 17 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4667
SELECT DISTINCT + + COUNT ( * ) - + CAST ( NULL AS INTEGER ) - + CAST ( + - 33 AS REAL ) * - 17 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4668
SELECT ALL + COUNT( * ) + + - COUNT( * ) + + ( - 63 ) AS col1 FROM tab2 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-4668
SELECT ALL + COUNT ( * ) + + - COUNT ( * ) + + ( - 63 ) AS col1 FROM tab2 AS cor0
----
-63

query II rowsort
SELECT col2 + 74 AS col2, col0 * 97 * + col0 FROM tab0
----
121
21825
173
912673
84
734193

query I rowsort
SELECT - 46 + 51 AS col0 FROM tab2
----
5
5
5

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4671
SELECT DISTINCT * FROM tab2 WHERE NOT + - CAST( NULL AS DECIMAL ) < - col1
----

skipif mysql # not compatible
query III rowsort label-4671
SELECT DISTINCT * FROM tab2 WHERE NOT + - CAST ( NULL AS REAL ) < - col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 * - + 49 * - - 66 / + - col0 + - 50 IS NOT NULL
----

query I rowsort
SELECT ALL + col0 * + ( - col0 ) FROM tab2
----
-2116
-4096
-5625

query I rowsort
SELECT DISTINCT 18 * - 96 FROM tab1
----
-1728

onlyif mysql # aggregate syntax: 
query I rowsort label-4675
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab0 WHERE NOT - + col2 * col1 - - 58 * 3 * + 88 = col2
----
-3

skipif mysql # not compatible
query I rowsort label-4675
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab0 WHERE NOT - + col2 * col1 - - 58 * 3 * + 88 = col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4676
SELECT + - MAX( - - col1 ) AS col0 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-4676
SELECT + - MAX ( - - col1 ) AS col0 FROM tab0 AS cor0
----
-81

query III rowsort
SELECT * FROM tab2 WHERE NOT 31 * - - col1 BETWEEN - - ( + 29 ) * - + 55 * - + col0 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col1 col2 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
-2601
-4489
-5929

onlyif mysql # DIV for integer division: 
query I rowsort label-4679
SELECT col2 DIV col1 * + + col0 col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4679
SELECT col2 / col1 * + + col0 col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - col1 * col1 * + ( + - 6 ) FROM tab0 AS cor0
----
2646
39366
6

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT col0 NOT BETWEEN ( - + 9 / + col2 * + 42 * + col0 ) AND NULL
----

query II rowsort
SELECT ALL - + col1, col0 AS col2 FROM tab1 AS cor0
----
-14
51
-47
91
-5
85

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 57 + + col0 <> NULL
----

query I rowsort
SELECT DISTINCT - + col0 FROM tab1 AS cor0 WHERE NOT NULL < 93 - - ( - col0 )
----

query I rowsort
SELECT - col0 + 11 + col0 / - col1 FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4686
SELECT + ( - COUNT( DISTINCT col2 ) ) + + SUM( + - 39 ) AS col1 FROM tab2
----
-120

skipif mysql # not compatible
query I rowsort label-4686
SELECT + ( - COUNT ( DISTINCT col2 ) ) + + SUM ( + - 39 ) AS col1 FROM tab2
----
-120

query I rowsort
SELECT DISTINCT 9 + - + 64 FROM tab0
----
-55

query I rowsort
SELECT - - col2 * + col0 - + col0 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT - col0 * - 60 * + col0 AS col2 FROM tab0 AS cor0
----
13500
454140
564540

onlyif mysql # aggregate syntax: 
query I rowsort label-4690
SELECT ALL COUNT( * ) + - MAX( ALL - col1 ) AS col2 FROM tab0 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-4690
SELECT ALL COUNT ( * ) + - MAX ( ALL - col1 ) AS col2 FROM tab0 AS cor0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4691
SELECT ALL - - COUNT( * ) + + COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-4691
SELECT ALL - - COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
18

query II rowsort
SELECT DISTINCT col0 * - - 4 + - col0, col0 FROM tab1
----
153
51
255
85
273
91

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 17 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col0 * 96 * - 14 + - col2 FROM tab0 AS cor0
----
116918
130269
20113

onlyif mysql # aggregate syntax: 
query I rowsort label-4695
SELECT - COUNT( * ) * 69 + 30 + + COUNT( * ) FROM tab0 AS cor0
----
-174

skipif mysql # not compatible
query I rowsort label-4695
SELECT - COUNT ( * ) * 69 + 30 + + COUNT ( * ) FROM tab0 AS cor0
----
-174

query II rowsort
SELECT + + col1 + - col1, col2 AS col0 FROM tab1 AS cor0
----
0
59
0
68
0
96

query I rowsort
SELECT DISTINCT + col2 + - 74 AS col2 FROM tab2 AS cor0
----
-16
-34
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4698
SELECT ALL - col1 * CAST( NULL AS SIGNED ) + col0 FROM tab0 AS cor0 WHERE col2 * - col0 <> - 60
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4698
SELECT ALL - col1 * CAST ( NULL AS INTEGER ) + col0 FROM tab0 AS cor0 WHERE col2 * - col0 <> - 60
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4699
SELECT DISTINCT COUNT( * ) AS col0 FROM tab1 WHERE NOT 71 + + ( CAST( NULL AS DECIMAL ) ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4699
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab1 WHERE NOT 71 + + ( CAST ( NULL AS REAL ) ) IS NOT NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * 73 col0 FROM tab1
----
1022
3431
365

query I rowsort
SELECT DISTINCT col1 - - + 84 FROM tab1
----
131
89
98

query I rowsort
SELECT ALL + col2 * - 71 FROM tab1 WHERE - col1 * + 57 IS NULL
----

query I rowsort
SELECT + col0 - - + 11 FROM tab0
----
108
26
98

query I rowsort
SELECT ALL col0 * 96 AS col1 FROM tab1
----
4896
8160
8736

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 48 * col1 col2 FROM tab0
----
1008
3888
48

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4706
SELECT ALL * FROM tab2 WHERE NOT ( + CAST( col0 AS SIGNED ) * - col1 / + + col1 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4706
SELECT ALL * FROM tab2 WHERE NOT ( + CAST ( col0 AS INTEGER ) * - col1 / + + col1 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4707
SELECT ALL col2 DIV - ( + 47 ) AS col1 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4707
SELECT ALL col2 / - ( + 47 ) AS col1 FROM tab2
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4708
SELECT ALL - col2 AS col0 FROM tab1 WHERE NOT NULL = CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4708
SELECT ALL - col2 AS col0 FROM tab1 WHERE NOT NULL = CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT 99 + ( + col0 + - 66 ) * + 6 FROM tab1
----
213
249
9

query I rowsort
SELECT 5 + - col2 AS col0 FROM tab0
----
-42
-5
-94

query I rowsort
SELECT 38 + col1 FROM tab0 WHERE NOT NULL <> ( col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col2 col1 FROM tab0 WHERE NULL IS NULL
----
-2
-32
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4713
SELECT ( 16 ) + - CAST( - ( COUNT( * ) ) AS SIGNED ) FROM tab0
----
19

skipif mysql # not compatible
query I rowsort label-4713
SELECT ( 16 ) + - CAST ( - ( COUNT ( * ) ) AS INTEGER ) FROM tab0
----
19

query I rowsort
SELECT ALL 34 + col1 FROM tab1 WHERE NOT NULL NOT BETWEEN ( 39 ) AND + col2
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 79 + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4716
SELECT - CAST( NULL AS SIGNED ) * 6 + - 39 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4716
SELECT - CAST ( NULL AS INTEGER ) * 6 + - 39 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4717
SELECT ALL - MAX( ALL 60 ) FROM tab1
----
-60

skipif mysql # not compatible
query I rowsort label-4717
SELECT ALL - MAX ( ALL 60 ) FROM tab1
----
-60

query I rowsort
SELECT + col1 + - 79 AS col2 FROM tab1
----
-32
-65
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4719
SELECT DISTINCT - MIN( + CAST( NULL AS SIGNED ) ) + - 78 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4719
SELECT DISTINCT - MIN ( + CAST ( NULL AS INTEGER ) ) + - 78 AS col2 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + 27 FROM tab1 WHERE col0 * col2 IS NULL
----

query I rowsort
SELECT + col1 + + 54 * + col0 AS col2 FROM tab2
----
2535
3533
4117

query I rowsort
SELECT ALL + col1 + - 19 AS col1 FROM tab1 WHERE col2 * - col0 - + col1 BETWEEN ( NULL ) AND - 9
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4723
SELECT + 27 * CAST( NULL AS SIGNED ) + col2 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4723
SELECT + 27 * CAST ( NULL AS INTEGER ) + col2 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * - 82 + col1 AS col2 FROM tab0
----
-3773
-799
-8117

query I rowsort
SELECT DISTINCT 0 FROM tab1 WHERE NOT col1 / + 24 IS NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE 78 * col1 <= - col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN 85 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4728
SELECT ALL 48 * COUNT( * ) FROM tab1
----
144

skipif mysql # not compatible
query I rowsort label-4728
SELECT ALL 48 * COUNT ( * ) FROM tab1
----
144

query I rowsort
SELECT DISTINCT - col2 - + 52 * - col1 AS col0 FROM tab1
----
201
2376
632

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) <> + col0 * - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4731
SELECT + col1 * - CAST( col1 AS SIGNED ) + + 79 AS col0 FROM tab0 WHERE NOT NULL <= ( + col2 )
----

skipif mysql # not compatible
query I rowsort label-4731
SELECT + col1 * - CAST ( col1 AS INTEGER ) + + 79 AS col0 FROM tab0 WHERE NOT NULL <= ( + col2 )
----

query I rowsort
SELECT DISTINCT - col1 * col1 AS col2 FROM tab2 AS cor0 WHERE ( col1 ) = col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IN ( - col2 * 4 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <= 10
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 WHERE + 7 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4736
SELECT DISTINCT SUM( 19 ) FROM tab0 AS cor0 CROSS JOIN tab2
----
171

skipif mysql # not compatible
query I rowsort label-4736
SELECT DISTINCT SUM ( 19 ) FROM tab0 AS cor0 CROSS JOIN tab2
----
171

query I rowsort
SELECT ALL 78 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query I rowsort
SELECT DISTINCT ( + col1 ) FROM tab0 AS cor0 WHERE + col2 > NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL <= 75
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4740
SELECT ALL + + 20 - COUNT( * ) FROM tab2 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-4740
SELECT ALL + + 20 - COUNT ( * ) FROM tab2 AS cor0
----
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - col1 col0 FROM tab1 AS cor0
----
37
44
80

onlyif mysql # DIV for integer division: 
query I rowsort label-4742
SELECT ALL + + 25 - col2 DIV - col1 FROM tab1 AS cor0
----
26
31
36

skipif mysql # not compatible
query I rowsort label-4742
SELECT ALL + + 25 - col2 / - col1 FROM tab1 AS cor0
----
26
31
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4743
SELECT + ( col1 ) + - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4743
SELECT + ( col1 ) + - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 * col1 * 8 FROM tab0
----
1680
30456
792

query I rowsort
SELECT ( 26 ) AS col1 FROM tab0
----
26
26
26

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - ( - col0 ) / 40 ) NOT IN ( - col0 - + col2 * + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col0 AS col2 FROM tab2 WHERE NOT NULL IS NULL OR ( NULL ) <= + col2
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - 71 ) IS NOT NULL
----

query I rowsort
SELECT ALL + col2 * - - col0 AS col0 FROM tab2
----
1058
2560
4350

onlyif mysql # DIV for integer division: 
query I rowsort label-4750
SELECT DISTINCT - col1 DIV 29 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-4750
SELECT DISTINCT - col1 / 29 FROM tab1
----
-1
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 = ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 33 * - - col2 col1 FROM tab1
----
1947
2244
3168

query III rowsort
SELECT * FROM tab0 WHERE NOT - 7 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 63 AS col2 FROM tab0 WHERE NULL BETWEEN ( + col2 ) AND - ( 94 )
----

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE NOT + col2 BETWEEN col0 AND NULL
----
46
64
75

query I rowsort
SELECT 63 * - col0 FROM tab2 AS cor0
----
-2898
-4032
-4725

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col2 col0 FROM tab0 AS cor0 WHERE NOT + col1 NOT BETWEEN NULL AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4758
SELECT + 37 * ( COUNT( * ) ) AS col2 FROM tab1, tab0 AS cor0
----
333

skipif mysql # not compatible
query I rowsort label-4758
SELECT + 37 * ( COUNT ( * ) ) AS col2 FROM tab1, tab0 AS cor0
----
333

onlyif mysql # aggregate syntax: 
query I rowsort label-4759
SELECT DISTINCT + ( - COUNT( * ) ) * 88 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-792

skipif mysql # not compatible
query I rowsort label-4759
SELECT DISTINCT + ( - COUNT ( * ) ) * 88 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-792

query I rowsort
SELECT ALL + ( col0 ) * col2 AS col0 FROM tab1 WHERE - 61 NOT IN ( col0 )
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-4761
SELECT COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4761
SELECT COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE NOT ( - col1 ) > + 46
----
-51
-67
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + 81 col0 FROM tab0 AS cor0
----
1215
7047
7857

query I rowsort
SELECT ALL - 0 * + 25 * - + ( col0 ) + 71 AS col0 FROM tab0 AS cor0
----
71
71
71

query I rowsort
SELECT DISTINCT + 0 + 66 * + col2 FROM tab2 AS cor0
----
1518
2640
3828

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + + col0 col1 FROM tab2 AS cor0
----
2116
4096
5625

onlyif mysql # aggregate syntax: 
query I rowsort label-4767
SELECT - 64 + COUNT( col1 ) + - 96 col0 FROM tab1 cor0
----
-157

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4767
SELECT - 64 + COUNT ( col1 ) + - 96 col0 FROM tab1 cor0
----
-157

query I rowsort
SELECT 18 + col0 AS col2 FROM tab2 AS cor0
----
64
82
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + - col0 col0 FROM tab0 cor0
----
-108
-96
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4770
SELECT ALL + COUNT( * ) / - + MIN( ALL + col1 ) * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4770
SELECT ALL + COUNT ( * ) / - + MIN ( ALL + col1 ) * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) BETWEEN col0 - col0 / + 52 AND + col1
----

query I rowsort
SELECT + 35 FROM tab0 WHERE ( NULL ) IS NULL
----
35
35
35

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + 51 ) BETWEEN NULL AND + col0
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4774
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT - ( + col1 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4774
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT - ( + col1 ) IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT - - col2 + 56 AS col0 FROM tab1 AS cor0
----
115
124
152

onlyif mysql # DIV for integer division: 
query I rowsort label-4776
SELECT ALL + col2 + - ( - - col2 ) + - col0 + - col2 DIV col2 FROM tab0 AS cor0
----
-16
-88
-98

skipif mysql # not compatible
query I rowsort label-4776
SELECT ALL + col2 + - ( - - col2 ) + - col0 + - col2 / col2 FROM tab0 AS cor0
----
-16
-88
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4777
SELECT DISTINCT - MIN( ALL + ( + col0 ) ) / 96 * CAST( NULL AS SIGNED ) + 93 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4777
SELECT DISTINCT - MIN ( ALL + ( + col0 ) ) / 96 * CAST ( NULL AS INTEGER ) + 93 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4778
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + COUNT( * ) + - + 97 AS col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4778
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + COUNT ( * ) + - + 97 AS col1 FROM tab2 cor0
----
NULL

query I rowsort
SELECT 26 FROM tab2 WHERE - col2 + + col2 IS NULL
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL = NULL
----

query I rowsort
SELECT + - col2 + - + col2 AS col2 FROM tab2 WHERE - 92 IS NOT NULL
----
-116
-46
-80

query I rowsort
SELECT ALL 46 + - + col2 AS col2 FROM tab1 AS cor0
----
-13
-22
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-4783
SELECT ALL + ( + 31 ) + - ( + + COUNT( * ) ) FROM tab2 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-4783
SELECT ALL + ( + 31 ) + - ( + + COUNT ( * ) ) FROM tab2 AS cor0
----
28

query I rowsort
SELECT DISTINCT col2 + + col2 - col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + col1 * + 8 FROM tab1 AS cor0 WHERE col2 / + col2 * + col0 BETWEEN ( - col2 ) AND col2 / ( + col0 ) + - col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4786
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - CAST( NULL AS DECIMAL ) BETWEEN NULL AND - col0
----

skipif mysql # not compatible
query III rowsort label-4786
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - CAST ( NULL AS REAL ) BETWEEN NULL AND - col0
----

query I rowsort
SELECT col1 * col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( 49 ) BETWEEN NULL AND 72 * + 64
----

query I rowsort
SELECT 70 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN ( + col2 ) AND - col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + 24, + col1 + 18 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4790
SELECT DISTINCT + 9 FROM tab1 WHERE + ( + + CAST( NULL AS SIGNED ) ) NOT IN ( - col0 )
----

skipif mysql # not compatible
query I rowsort label-4790
SELECT DISTINCT + 9 FROM tab1 WHERE + ( + + CAST ( NULL AS INTEGER ) ) NOT IN ( - col0 )
----

query I rowsort
SELECT DISTINCT - col0 * + col0 * + 49 AS col0 FROM tab2
----
-103684
-200704
-275625

onlyif mysql # aggregate syntax: 
query I rowsort label-4792
SELECT DISTINCT - COUNT( - - 79 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4792
SELECT DISTINCT - COUNT ( - - 79 ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4793
SELECT COUNT( * ) * - COUNT( * ) AS col1 FROM tab1, tab2 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-4793
SELECT COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab1, tab2 AS cor0
----
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 0 * + col0 col1 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4795
SELECT CAST( NULL AS DECIMAL ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4795
SELECT CAST ( NULL AS REAL ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

query II rowsort
SELECT ALL col2 AS col2, 40 AS col1 FROM tab2
----
23
40
40
40
58
40

query I rowsort
SELECT 7 * 43 FROM tab0
----
301
301
301

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN - col1 * 22 AND + col2 * - col1 * 26
----

query II rowsort
SELECT - ( + - col1 ) AS col0, + 89 + ( - col1 ) + + col1 FROM tab2
----
51
89
67
89
77
89

query II rowsort
SELECT DISTINCT col2, - 95 FROM tab1
----
59
-95
68
-95
96
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-4801
SELECT ALL - MIN( ALL - + col0 ) AS col0 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-4801
SELECT ALL - MIN ( ALL - + col0 ) AS col0 FROM tab0 AS cor0
----
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 AS col0, col2 * col0 col0 FROM tab0 AS cor0
----
-10
870
-47
705
-99
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-4803
SELECT DISTINCT SUM( + - col0 ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-4803
SELECT DISTINCT SUM ( + - col0 ) FROM tab1 AS cor0
----
-227

query I rowsort
SELECT ALL col0 * - col2 * - col2 AS col1 FROM tab0 AS cor0
----
33135
8700
950697

query I rowsort
SELECT DISTINCT + col0 * - col2 FROM tab2 WHERE - col0 + - + col1 IN ( col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 32 * + col1 <> + col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 90 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - - 93 + + col1 AS col2 FROM tab2 AS cor0
----
144
160
170

query I rowsort
SELECT 92 + + col2 AS col2 FROM tab2 AS cor0 WHERE ( col2 ) <= col1
----
115
132
150

query II rowsort
SELECT + col2 * + 89, col2 + + ( + 35 ) AS col2 FROM tab1 AS cor0
----
5251
94
6052
103
8544
131

query II rowsort
SELECT col0 + + + col0 AS col0, 61 FROM tab1 AS cor0 WHERE ( NOT NULL IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4812
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 28 + - ( col0 ) NOT IN ( - col1 + + col0 - - CAST( NULL AS SIGNED ) - - CAST( 54 AS SIGNED ) * - col1 )
----

skipif mysql # not compatible
query III rowsort label-4812
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 28 + - ( col0 ) NOT IN ( - col1 + + col0 - - CAST ( NULL AS INTEGER ) - - CAST ( 54 AS INTEGER ) * - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4813
SELECT ALL + - col0 + 18 DIV - 99 * 4 FROM tab1 cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-4813
SELECT ALL + - col0 + 18 / - 99 * 4 FROM tab1 cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4814
SELECT ALL - SUM( ALL - col2 ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4814
SELECT ALL - SUM ( ALL - col2 ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

query II rowsort
SELECT + 91 AS col2, col2 * 28 * + - col0 AS col2 FROM tab1
----
91
-137088
91
-140420
91
-173264

onlyif mysql # aggregate syntax: 
query I rowsort label-4816
SELECT + COUNT( * ) + - 72 FROM tab1
----
-69

skipif mysql # not compatible
query I rowsort label-4816
SELECT + COUNT ( * ) + - 72 FROM tab1
----
-69

query II rowsort
SELECT DISTINCT 86 AS col2, + col2 AS col0 FROM tab1
----
86
59
86
68
86
96

query I rowsort
SELECT ALL - + col0 FROM tab1 WHERE NOT 77 + - + 53 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4819
SELECT ALL - SUM( col0 ) AS col2 FROM tab0 WHERE col2 * - col2 IS NOT NULL
----
-199

skipif mysql # not compatible
query I rowsort label-4819
SELECT ALL - SUM ( col0 ) AS col2 FROM tab0 WHERE col2 * - col2 IS NOT NULL
----
-199

query I rowsort
SELECT ALL 59 + + col0 AS col0 FROM tab0
----
146
156
74

query I rowsort
SELECT col0 * + 83 * - - ( + col0 ) + + - col0 FROM tab2
----
175582
339904
466800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4822
SELECT + col1 + + ( 42 ) * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4822
SELECT + col1 + + ( 42 ) * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + 47 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa

query I rowsort
SELECT col0 * + + 14 * col1 AS col0 FROM tab2
----
32844
68992
70350

query I rowsort
SELECT DISTINCT - + 92 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - - col2 + + col2 * + + col0 * + 95 col1 FROM tab0
----
67037
82747
912481

query I rowsort
SELECT - 98 - 53 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to f40aa0b5c301d6179d07413f4c2d6796

query I rowsort
SELECT + + col0 - col0 AS col0 FROM tab1 AS cor0 WHERE NOT col0 + - + 1 <= col1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4829
SELECT + COUNT( DISTINCT - ( - col1 ) ) AS col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4829
SELECT + COUNT ( DISTINCT - ( - col1 ) ) AS col2 FROM tab1 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4830
SELECT DISTINCT - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4830
SELECT DISTINCT - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT col1 + - col0 * col1 AS col0, 24 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4832
SELECT - SUM( - 84 ) FROM tab0 cor0
----
252

skipif mysql # not compatible
query I rowsort label-4832
SELECT - SUM ( - 84 ) FROM tab0 cor0
----
252

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 6 * col0 + col0 col0 FROM tab0 AS cor0 WHERE ( col0 + col2 * + + col1 ) NOT IN ( ( + col1 ) )
----
105
609
679

query II rowsort
SELECT DISTINCT + - col2 * - - col0 AS col2, col1 AS col0 FROM tab0 AS cor0
----
-705
81
-870
21
-9603
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4835
SELECT col0 DIV - - col2 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-4835
SELECT col0 / - - col2 FROM tab2
----
1
1
2

query I rowsort
SELECT - 92 + col2 * + 3 AS col0 FROM tab0 WHERE NOT - col0 / + - 48 - 14 * + + col1 IS NULL
----
-62
205
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4837
SELECT - CAST( + - col0 AS SIGNED ) AS col1 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-4837
SELECT - CAST ( + - col0 AS INTEGER ) AS col1 FROM tab2
----
46
64
75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * col0 + col2 BETWEEN ( col2 + - col1 ) AND ( NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + ( 6 ) AND - + col2 + + ( - col2 ) + - - col0 / - 19
----

query I rowsort
SELECT ALL - - col2 * col2 + col2 + - + col2 + + col0 + col0 FROM tab0 AS cor0
----
2239
274
9995

query I rowsort
SELECT ALL - 81 + + col0 FROM tab1
----
-30
10
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2, - col0 + - col1 col0 FROM tab1
----
59
-90
68
-138
96
-65

query I rowsort
SELECT - col1 + - + 26 + - col2 + + - col0 FROM tab0 AS cor0
----
-144
-169
-223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4844
SELECT DISTINCT - 46 + - CAST( col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-131
-137
-97

skipif mysql # not compatible
query I rowsort label-4844
SELECT DISTINCT - 46 + - CAST ( col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-131
-137
-97

query I rowsort
SELECT ALL + 96 + + - col0 FROM tab2 AS cor0
----
21
32
50

query I rowsort
SELECT 77 * + 37 + col1 FROM tab1 AS cor0
----
2854
2863
2896

onlyif mysql # DIV for integer division: 
query I rowsort label-4847
SELECT col0 DIV 36 * + + col1 + + 79 + 26 AS col0 FROM tab2 AS cor0
----
156
182
239

skipif mysql # not compatible
query I rowsort label-4847
SELECT col0 / 36 * + + col1 + + 79 + 26 AS col0 FROM tab2 AS cor0
----
156
182
239

onlyif mysql # aggregate syntax: 
query I rowsort label-4848
SELECT + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE 41 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4848
SELECT + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE 41 IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4849
SELECT COUNT( * ) + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4849
SELECT COUNT ( * ) + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4850
SELECT DISTINCT 51 - - MAX( + 8 ) FROM tab2
----
59

skipif mysql # not compatible
query I rowsort label-4850
SELECT DISTINCT 51 - - MAX ( + 8 ) FROM tab2
----
59

query I rowsort
SELECT DISTINCT + col1 * + - col1 AS col0 FROM tab0
----
-1
-441
-6561

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NOT 15 = NULL )
----

query I rowsort
SELECT - 87 * 3 - - col1 FROM tab1 AS cor0
----
-214
-247
-256

onlyif mysql # DIV for integer division: 
query I rowsort label-4854
SELECT ALL + - col1 DIV - col1 FROM tab1 AS cor0 WHERE 71 * 77 IS NOT NULL
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4854
SELECT ALL + - col1 / - col1 FROM tab1 AS cor0 WHERE 71 * 77 IS NOT NULL
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4855
SELECT - COUNT( * ) * + 32 * - COUNT( * ) * 57 * + - COUNT( * ) FROM tab2
----
-49248

skipif mysql # not compatible
query I rowsort label-4855
SELECT - COUNT ( * ) * + 32 * - COUNT ( * ) * 57 * + - COUNT ( * ) FROM tab2
----
-49248

query II rowsort
SELECT - + col2, + col2 AS col1 FROM tab2 cor0
----
-23
23
-40
40
-58
58

onlyif mysql # aggregate syntax: 
query II rowsort label-4857
SELECT + 88 AS col2, + COUNT( * ) * + MIN( - 53 ) col1 FROM tab0 AS cor0
----
88
-159

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4857
SELECT + 88 AS col2, + COUNT ( * ) * + MIN ( - 53 ) col1 FROM tab0 AS cor0
----
88
-159

query II rowsort
SELECT DISTINCT + 54, + col0 FROM tab1 AS cor0
----
54
51
54
85
54
91

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 / + col0 + + - 75 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4860
SELECT - MIN( DISTINCT + + 52 ) AS col0 FROM tab0 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-4860
SELECT - MIN ( DISTINCT + + 52 ) AS col0 FROM tab0 AS cor0
----
-52

query II rowsort
SELECT DISTINCT + + col0, + col0 AS col1 FROM tab2 cor0
----
46
46
64
64
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4862
SELECT ALL - - MIN( DISTINCT - col2 ) AS col0 FROM tab2 cor0
----
-58

skipif mysql # not compatible
query I rowsort label-4862
SELECT ALL - - MIN ( DISTINCT - col2 ) AS col0 FROM tab2 cor0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4863
SELECT ALL - + MAX( 47 ) * - COUNT( * ) FROM tab1 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-4863
SELECT ALL - + MAX ( 47 ) * - COUNT ( * ) FROM tab1 AS cor0
----
141

onlyif mysql # DIV for integer division: 
query I rowsort label-4864
SELECT col1 DIV - col0 col1 FROM tab0 AS cor0
----
-5
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4864
SELECT col1 / - col0 col1 FROM tab0 AS cor0
----
-5
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4865
SELECT ALL COUNT( ALL - + 24 ) col2 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4865
SELECT ALL COUNT ( ALL - + 24 ) col2 FROM tab0
----
3

query I rowsort
SELECT ALL - ( + 80 ) AS col2 FROM tab2
----
-80
-80
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4867
SELECT + + MAX( ALL - 99 ) FROM tab2 WHERE 8 + + col0 BETWEEN NULL AND - 87 * - + col1 * - col1 + - + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4867
SELECT + + MAX ( ALL - 99 ) FROM tab2 WHERE 8 + + col0 BETWEEN NULL AND - 87 * - + col1 * - col1 + - + col1
----
NULL

query I rowsort
SELECT DISTINCT + 12 AS col0 FROM tab1, tab0 AS cor0
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4869
SELECT DISTINCT - CAST( NULL AS SIGNED ) + 11 AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4869
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + 11 AS col1 FROM tab1 cor0
----
NULL

query I rowsort
SELECT - 72 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col2 FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4872
SELECT DISTINCT + - 50 * + - ( + 82 ) + - + 92 + + COUNT( * ) * - + 34 AS col2, CAST( NULL AS DECIMAL ) AS col0 FROM tab0 cor0
----
3906
NULL

skipif mysql # not compatible
query II rowsort label-4872
SELECT DISTINCT + - 50 * + - ( + 82 ) + - + 92 + + COUNT ( * ) * - + 34 AS col2, CAST ( NULL AS REAL ) AS col0 FROM tab0 cor0
----
3906
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4873
SELECT - col1 + - 87 DIV col0 + + 83 + + + col1 FROM tab2
----
82
82
82

skipif mysql # not compatible
query I rowsort label-4873
SELECT - col1 + - 87 / col0 + + 83 + + + col1 FROM tab2
----
82
82
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4874
SELECT - 10 * + - 66 * - CAST( NULL AS SIGNED ) + + - 3 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4874
SELECT - 10 * + - 66 * - CAST ( NULL AS INTEGER ) + + - 3 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 46 + + col0 + + 50 + + 4 AS col1 FROM tab1
----
59
93
99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 77 + - col1 <> - 60
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 52 * ( col2 ) FROM tab2
----
1196
2080
3016

query I rowsort
SELECT DISTINCT - ( + 83 ) * - col0 * + - col2 AS col1 FROM tab2
----
-212480
-361050
-87814

query I rowsort
SELECT + 59 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4880
SELECT - - CAST( MIN( ALL 33 ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-4880
SELECT - - CAST ( MIN ( ALL 33 ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4881
SELECT DISTINCT - - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ), + COUNT( * ) * - - 50 AS col2 FROM tab1 AS cor0
----
NULL
150

skipif mysql # not compatible
query II rowsort label-4881
SELECT DISTINCT - - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ), + COUNT ( * ) * - - 50 AS col2 FROM tab1 AS cor0
----
NULL
150

query I rowsort
SELECT - ( + ( - 81 ) ) AS col1 FROM tab2 AS cor0
----
81
81
81

onlyif mysql # DIV for integer division: 
query I rowsort label-4883
SELECT - - ( - + 68 ) DIV + - 12 FROM tab0 AS cor0
----
5
5
5

skipif mysql # not compatible
query I rowsort label-4883
SELECT - - ( - + 68 ) / + - 12 FROM tab0 AS cor0
----
5
5
5

query II rowsort
SELECT DISTINCT + col0 * - col2 AS col1, 34 FROM tab2 AS cor0
----
-1058
34
-2560
34
-4350
34

onlyif mysql # DIV for integer division: 
query I rowsort label-4885
SELECT + 79 DIV col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4885
SELECT + 79 / col1 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT ALL + col2 * + + col2 * 82 * - col2 * - col1 + col2 FROM tab0 AS cor0
----
1722010
689592413
79564617

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4887
SELECT ALL 51 DIV + - MIN( DISTINCT 49 ) AS col2 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-4887
SELECT ALL 51 / + - MIN ( DISTINCT 49 ) AS col2 FROM tab1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4888
SELECT MAX( - 2 ) col0 FROM tab2
----
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4888
SELECT MAX ( - 2 ) col0 FROM tab2
----
-2

query I rowsort
SELECT DISTINCT - ( + col1 ) * + 9 AS col0 FROM tab2
----
-459
-603
-693

query III rowsort
SELECT * FROM tab2 WHERE NOT + 36 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) BETWEEN - col2 / 89 + + - col1 AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4892
SELECT ALL - COUNT( * ) AS col1 FROM tab2, tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4892
SELECT ALL - COUNT ( * ) AS col1 FROM tab2, tab1 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-4893
SELECT + 91 * - - ( COUNT( * ) ) AS col0, 75 FROM tab1
----
273
75

skipif mysql # not compatible
query II rowsort label-4893
SELECT + 91 * - - ( COUNT ( * ) ) AS col0, 75 FROM tab1
----
273
75

query II rowsort
SELECT + - col2 AS col0, + col1 AS col0 FROM tab2 cor0
----
-23
51
-40
77
-58
67

query I rowsort
SELECT - - 96 FROM tab0 cor0
----
96
96
96

query I rowsort
SELECT - ( - col2 ) AS col0 FROM tab0 AS cor0 WHERE col2 > - col1
----
10
47
99

query III rowsort
SELECT * FROM tab2 WHERE 81 + col1 - - col0 >= ( - - col2 * - col1 * + - col1 * 84 + + - col2 )
----

query I rowsort
SELECT DISTINCT col2 + + ( - col0 ) FROM tab2
----
-17
-23
-24

query I rowsort
SELECT DISTINCT + 67 AS col0 FROM tab1 AS cor0 WHERE - col1 * col0 + + 13 < - + col0
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4900
SELECT COUNT( * ) / + COUNT( * ) + + + 63 - 95 + + CAST( NULL AS SIGNED ) * + 60 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4900
SELECT COUNT ( * ) / + COUNT ( * ) + + + 63 - 95 + + CAST ( NULL AS INTEGER ) * + 60 AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4901
SELECT + CAST( + 68 AS SIGNED ) + COUNT( * ) AS col1 FROM tab2 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-4901
SELECT + CAST ( + 68 AS INTEGER ) + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
71

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 92 + + 66 BETWEEN 85 AND NULL
----

query I rowsort
SELECT + - col1 + - - 99 FROM tab0 cor0
----
18
78
98

query I rowsort
SELECT + - 73 + - col0 + col2 FROM tab0 AS cor0
----
-150
-41
-71

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 21 BETWEEN - + 20 AND col0
----

query I rowsort
SELECT DISTINCT + - ( - col2 ) - col1 * - col1 * 35 FROM tab2 AS cor0
----
157173
207555
91058

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4907
SELECT COUNT( * ) AS col2, 43 DIV + 72 FROM tab1
----
3
0

skipif mysql # not compatible
query II rowsort label-4907
SELECT COUNT ( * ) AS col2, 43 / + 72 FROM tab1
----
3
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + 26 * - col0 ) > + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4909
SELECT ( + COUNT( ALL + col0 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4909
SELECT ( + COUNT ( ALL + col0 ) ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4910
SELECT DISTINCT MAX( ALL - col2 ) - - - SUM( + col0 ) AS col1 FROM tab0
----
-209

skipif mysql # not compatible
query I rowsort label-4910
SELECT DISTINCT MAX ( ALL - col2 ) - - - SUM ( + col0 ) AS col1 FROM tab0
----
-209

query I rowsort
SELECT ALL - 87 * 46 * - col1 AS col1 FROM tab2
----
204102
268134
308154

query I rowsort
SELECT + col0 * 4 * - col0 FROM tab1 AS cor0
----
-10404
-28900
-33124

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) = ( + 96 / - + 85 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4914
SELECT - SUM( + - 52 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
468

skipif mysql # not compatible
query I rowsort label-4914
SELECT - SUM ( + - 52 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
468

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4915
SELECT DISTINCT CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4915
SELECT DISTINCT CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-4916
SELECT DISTINCT - COUNT( * ), COUNT( * ) col1, - - COUNT( * ) AS col1 FROM tab0
----
-3
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-4916
SELECT DISTINCT - COUNT ( * ), COUNT ( * ) col1, - - COUNT ( * ) AS col1 FROM tab0
----
-3
3
3

query II rowsort
SELECT DISTINCT - - 12 * col0, col2 - - 61 AS col2 FROM tab0 AS cor0 WHERE NOT + col1 * col1 * - 94 IS NOT NULL
----

query II rowsort
SELECT + - col2 AS col1, - col0 * - col0 FROM tab0 cor0
----
-10
7569
-47
225
-99
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-4919
SELECT + COUNT( * ) * + - SUM( - + col0 ) FROM tab1 AS cor0
----
681

skipif mysql # not compatible
query I rowsort label-4919
SELECT + COUNT ( * ) * + - SUM ( - + col0 ) FROM tab1 AS cor0
----
681

onlyif mysql # aggregate syntax: 
query II rowsort label-4920
SELECT DISTINCT - + COUNT( * ), + 75 AS col2 FROM tab0 AS cor0
----
-3
75

skipif mysql # not compatible
query II rowsort label-4920
SELECT DISTINCT - + COUNT ( * ), + 75 AS col2 FROM tab0 AS cor0
----
-3
75

query II rowsort
SELECT + 61, 33 AS col2 FROM tab2 AS cor0
----
61
33
61
33
61
33

query II rowsort
SELECT DISTINCT + col2, col1 FROM tab2 cor0
----
23
51
40
77
58
67

onlyif mysql # aggregate syntax: 
query II rowsort label-4923
SELECT DISTINCT 60, COUNT( * ) AS col1 FROM tab0 AS cor0
----
60
3

skipif mysql # not compatible
query II rowsort label-4923
SELECT DISTINCT 60, COUNT ( * ) AS col1 FROM tab0 AS cor0
----
60
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL >= - 3 * + 62
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4925
SELECT - - COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4925
SELECT - - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4926
SELECT - ( COUNT( * ) ) DIV - 35 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4926
SELECT - ( COUNT ( * ) ) / - 35 AS col2 FROM tab0
----
0

query I rowsort
SELECT DISTINCT - 53 * - - col0 AS col0 FROM tab0
----
-4611
-5141
-795

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4928
SELECT + 70 DIV COUNT( * ) * + + COUNT( DISTINCT + + col0 ) AS col1 FROM tab0
----
69

skipif mysql # not compatible
query I rowsort label-4928
SELECT + 70 / COUNT ( * ) * + + COUNT ( DISTINCT + + col0 ) AS col1 FROM tab0
----
69

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 + 21 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4930
SELECT - ( - - CAST( NULL AS SIGNED ) ) col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4930
SELECT - ( - - CAST ( NULL AS INTEGER ) ) col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - 68 * + - 13 FROM tab1
----
884
884
884

query I rowsort
SELECT - col0 FROM tab2 WHERE NOT col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - 24 col0 FROM tab0
----
-105
-25
-45

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 + + - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4935
SELECT - - 44 FROM tab0 AS cor0 WHERE NULL > - CAST( + col2 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4935
SELECT - - 44 FROM tab0 AS cor0 WHERE NULL > - CAST ( + col2 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4936
SELECT + 76 + - MAX( ALL + col0 ) AS col0 FROM tab1 WHERE NULL IS NULL
----
-15

skipif mysql # not compatible
query I rowsort label-4936
SELECT + 76 + - MAX ( ALL + col0 ) AS col0 FROM tab1 WHERE NULL IS NULL
----
-15

query I rowsort
SELECT DISTINCT - 1 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4938
SELECT + - MIN( 10 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-10

skipif mysql # not compatible
query I rowsort label-4938
SELECT + - MIN ( 10 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4939
SELECT DISTINCT col1 / - - col2 + + CAST( NULL AS SIGNED ) * - 41 AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4939
SELECT DISTINCT col1 / - - col2 + + CAST ( NULL AS INTEGER ) * - 41 AS col0 FROM tab0 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4940
SELECT - CAST( CAST( + - col0 AS DECIMAL ) AS SIGNED ) - - ( - + col0 ) AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4940
SELECT - CAST ( CAST ( + - col0 AS REAL ) AS INTEGER ) - - ( - + col0 ) AS col2 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 * - col1 + - - 12 IN ( col2 * + - col1, col0 * + 75, - col1 )
----

query I rowsort
SELECT + col1 + - col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL AND + col2 * - + 93 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 - 74 FROM tab0 cor0
----
-53
-73
7

query I rowsort
SELECT ALL + col0 - - 24 AS col1 FROM tab0 AS cor0
----
111
121
39

query I rowsort
SELECT - - col1 + - col1 * + 61 AS col2 FROM tab0 AS cor0
----
-1260
-4860
-60

query I rowsort
SELECT DISTINCT + + ( + col1 ) + - - col2 AS col1 FROM tab0 AS cor0
----
100
128
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4947
SELECT + col2 * - 17 + CAST( NULL AS SIGNED ) + + col0 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4947
SELECT + col2 * - 17 + CAST ( NULL AS INTEGER ) + + col0 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 IN ( + 35, 87 * 88 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4949
SELECT DISTINCT CAST( - 28 AS SIGNED ) AS col0, col0 AS col2 FROM tab0
----
-28
15
-28
87
-28
97

skipif mysql # not compatible
query II rowsort label-4949
SELECT DISTINCT CAST ( - 28 AS INTEGER ) AS col0, col0 AS col2 FROM tab0
----
-28
15
-28
87
-28
97

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( + col2 ) * 27 < 82 / + ( + col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4951
SELECT DISTINCT + COUNT( * ) DIV - + COUNT( * ) AS col0 FROM tab1, tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4951
SELECT DISTINCT + COUNT ( * ) / - + COUNT ( * ) AS col0 FROM tab1, tab0 AS cor0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4952
SELECT ALL CAST( NULL AS SIGNED ) AS col0, - COUNT( * ) FROM tab1 WHERE NOT + + col0 IS NOT NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-4952
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, - COUNT ( * ) FROM tab1 WHERE NOT + + col0 IS NOT NULL
----
NULL
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND - 62
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4954
SELECT - + SUM( ALL col0 ) FROM tab2 cor0 WHERE NOT + col0 * - col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4954
SELECT - + SUM ( ALL col0 ) FROM tab2 cor0 WHERE NOT + col0 * - col2 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4955
SELECT - CAST( NULL AS SIGNED ) AS col2, - COUNT( * ) FROM tab1 AS cor0
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-4955
SELECT - CAST ( NULL AS INTEGER ) AS col2, - COUNT ( * ) FROM tab1 AS cor0
----
NULL
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4956
SELECT MIN( + + col0 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-4956
SELECT MIN ( + + col0 ) FROM tab2 AS cor0
----
46

query I rowsort
SELECT + 90 * + - col2 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-2070
-3600
-5220

query I rowsort
SELECT DISTINCT + col2 + + - col0 AS col0 FROM tab1 AS cor0
----
-23
-26
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4959
SELECT + ( + 15 ) + + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-4959
SELECT + ( + 15 ) + + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
12

query I rowsort
SELECT ALL 34 * - 30 FROM tab0 AS cor0
----
-1020
-1020
-1020

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4961
SELECT DISTINCT - + 26 DIV + + SUM( - + col0 ) col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4961
SELECT DISTINCT - + 26 / + + SUM ( - + col0 ) col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - col2 + - 76 AS col2 FROM tab2 AS cor0
----
-116
-134
-99

query I rowsort
SELECT - ( + 75 ) + + + 98 + col0 + col0 + - + col0 FROM tab1
----
108
114
74

query I rowsort
SELECT col1 + + 57 + col2 * - col2 + - + 49 * + + col0 FROM tab0
----
-14496
-2806
-4285

query I rowsort
SELECT ALL col1 / + + ( - 53 ) AS col1 FROM tab1 WHERE NOT NULL NOT IN ( - col2 * - col1 * col1 / 23 + - 40 + col1 )
----

query II rowsort
SELECT DISTINCT + 87, - col0 AS col1 FROM tab2
----
87
-46
87
-64
87
-75

query I rowsort
SELECT ALL col0 * - 98 + + col2 FROM tab1
----
-4902
-8271
-8850

query III rowsort
SELECT * FROM tab2 WHERE + + 28 < ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4969
SELECT ALL 31 * - COUNT( * ) * + - 31 AS col2 FROM tab1
----
2883

skipif mysql # not compatible
query I rowsort label-4969
SELECT ALL 31 * - COUNT ( * ) * + - 31 AS col2 FROM tab1
----
2883

query I rowsort
SELECT col1 * + - col1 * ( col1 ) * + - 42 * + 7 AS col0 FROM tab1 AS cor0 WHERE NULL > + 52
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4971
SELECT + 60 AS col0, + 34 * CAST( - col2 AS SIGNED ) FROM tab2 AS cor0
----
60
-1360
60
-1972
60
-782

skipif mysql # not compatible
query II rowsort label-4971
SELECT + 60 AS col0, + 34 * CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0
----
60
-1360
60
-1972
60
-782

onlyif mysql # aggregate syntax: 
query I rowsort label-4972
SELECT ALL + COUNT( * ) FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4972
SELECT ALL + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT ALL - col0 * + + col2 - + 27 AS col1 FROM tab0 cor0
----
-732
-897
-9630

onlyif mysql # aggregate syntax: 
query I rowsort label-4974
SELECT - 50 + + COUNT( * ) AS col2 FROM tab0
----
-47

skipif mysql # not compatible
query I rowsort label-4974
SELECT - 50 + + COUNT ( * ) AS col2 FROM tab0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4975
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE NULL IN ( col1, col0 )
----
0

skipif mysql # not compatible
query I rowsort label-4975
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE NULL IN ( col1, col0 )
----
0

query I rowsort
SELECT ALL + 33 + + col2 * + 66 FROM tab0 AS cor0
----
3135
6567
693

query I rowsort
SELECT ALL - col1 - - - 87 AS col0 FROM tab2 cor0
----
-138
-154
-164

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4978
SELECT DISTINCT + ( - col0 ), + CAST( col2 AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) <> - 37
----

skipif mysql # not compatible
query II rowsort label-4978
SELECT DISTINCT + ( - col0 ), + CAST ( col2 AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) <> - 37
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 16 AS col2, - 61 * - 69 col1 FROM tab1
----
16
4209

onlyif mysql # aggregate syntax: 
query I rowsort label-4980
SELECT DISTINCT ( - MAX( ALL + col0 ) ) col2 FROM tab0
----
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4980
SELECT DISTINCT ( - MAX ( ALL + col0 ) ) col2 FROM tab0
----
-97

query II rowsort
SELECT + 61, 35 AS col1 FROM tab2
----
61
35
61
35
61
35

query II rowsort
SELECT 9 AS col0, col2 FROM tab1
----
9
59
9
68
9
96

query I rowsort
SELECT ( - col0 ) * + col1 * + + col1 * + - col2 AS col2 FROM tab2
----
15178240
19527150
2751858

onlyif mysql # aggregate syntax: 
query I rowsort label-4984
SELECT DISTINCT - MIN( ALL + - col0 ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-4984
SELECT DISTINCT - MIN ( ALL + - col0 ) FROM tab0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4985
SELECT DISTINCT COUNT( DISTINCT - + col0 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4985
SELECT DISTINCT COUNT ( DISTINCT - + col0 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4986
SELECT - - COUNT( * ) FROM tab0 WHERE NOT col0 * - - col2 * + col2 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-4986
SELECT - - COUNT ( * ) FROM tab0 WHERE NOT col0 * - - col2 * + col2 <= NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 21 col0, col1 AS col0 FROM tab1
----
21
14
21
47
21
5

query I rowsort
SELECT - ( - + col1 ) / 62 + - col2 AS col2 FROM tab2 AS cor0 WHERE NOT ( NOT NULL < NULL )
----

query II rowsort
SELECT col0, 7 AS col2 FROM tab1 AS cor0
----
51
7
85
7
91
7

onlyif mysql # DIV for integer division: 
query I rowsort label-4990
SELECT - col0 DIV + 71 FROM tab0 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4990
SELECT - col0 / + 71 FROM tab0 AS cor0
----
-1
-1
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col0 NOT IN ( 44, + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4992
SELECT ALL COUNT( ALL + - 67 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4992
SELECT ALL COUNT ( ALL + - 67 ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT + - 9 FROM tab1 WHERE NOT col0 + - - col0 > NULL
----

query I rowsort
SELECT DISTINCT 8 * - - 29 - - + 13 FROM tab0 AS cor0
----
245

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4995
SELECT DISTINCT col1 + + CAST( + - col1 AS DECIMAL ) FROM tab2 AS cor0 WHERE NOT 46 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4995
SELECT DISTINCT col1 + + CAST ( + - col1 AS REAL ) FROM tab2 AS cor0 WHERE NOT 46 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - - 37 * + col0 * + col2 + + - col1, + col0 FROM tab2 AS cor0
----
160883
75
39095
46
94643
64

query I rowsort
SELECT DISTINCT + 76 AS col0 FROM tab1 AS cor0
----
76

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 + - 25 * - col2 * + - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - 7 AS col1 FROM tab0 cor0
----
-7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5000
SELECT ALL - COUNT( DISTINCT CAST( + col0 AS DECIMAL ) ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5000
SELECT ALL - COUNT ( DISTINCT CAST ( + col0 AS REAL ) ) AS col2 FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5001
SELECT DISTINCT 73 * + CAST( col1 AS SIGNED ) + col0 AS col1 FROM tab0
----
1620
170
5928

skipif mysql # not compatible
query I rowsort label-5001
SELECT DISTINCT 73 * + CAST ( col1 AS INTEGER ) + col0 AS col1 FROM tab0
----
1620
170
5928

onlyif mysql # aggregate syntax: 
query II rowsort label-5002
SELECT DISTINCT - COUNT( * ) AS col0, 45 col2 FROM tab0
----
-3
45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5002
SELECT DISTINCT - COUNT ( * ) AS col0, 45 col2 FROM tab0
----
-3
45

query I rowsort
SELECT DISTINCT - col0 * - 10 AS col2 FROM tab2
----
460
640
750

query I rowsort
SELECT ALL - 73 * + col0 + - col2 FROM tab2
----
-3381
-4712
-5533

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5005
SELECT ALL * FROM tab2 AS cor0 WHERE 34 / + col2 + + 35 * CAST( NULL AS SIGNED ) * - - 44 * - ( + col2 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5005
SELECT ALL * FROM tab2 AS cor0 WHERE 34 / + col2 + + 35 * CAST ( NULL AS INTEGER ) * - - 44 * - ( + col2 ) IS NOT NULL
----

query II rowsort
SELECT - 77, col0 FROM tab2 AS cor0
----
-77
46
-77
64
-77
75

query I rowsort
SELECT + 25 * + 0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5008
SELECT DISTINCT + 54 - - COUNT( * ) AS col2 FROM tab0
----
57

skipif mysql # not compatible
query I rowsort label-5008
SELECT DISTINCT + 54 - - COUNT ( * ) AS col2 FROM tab0
----
57

query I rowsort
SELECT ALL col2 * - 55 - ( - 15 ) + 68 AS col1 FROM tab0
----
-2502
-467
-5362

onlyif mysql # DIV for integer division: 
query I rowsort label-5010
SELECT ALL + col2 DIV + + col2 AS col2 FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5010
SELECT ALL + col2 / + + col2 AS col2 FROM tab2 cor0
----
1
1
1

query I rowsort
SELECT DISTINCT + + col2 + + + ( + col0 ) AS col0 FROM tab1 AS cor0
----
144
147
159

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5012
SELECT * FROM tab2 AS cor0 WHERE ( NOT ( NULL NOT BETWEEN col1 AND - + CAST( NULL AS DECIMAL ) ) )
----

skipif mysql # not compatible
query III rowsort label-5012
SELECT * FROM tab2 AS cor0 WHERE ( NOT ( NULL NOT BETWEEN col1 AND - + CAST ( NULL AS REAL ) ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5013
SELECT DISTINCT - - col2 + - 15 * + - CAST( + 68 AS SIGNED ) AS col0, 77 FROM tab2 AS cor0
----
1043
77
1060
77
1078
77

skipif mysql # not compatible
query II rowsort label-5013
SELECT DISTINCT - - col2 + - 15 * + - CAST ( + 68 AS INTEGER ) AS col0, 77 FROM tab2 AS cor0
----
1043
77
1060
77
1078
77

query I rowsort
SELECT DISTINCT - col1 + - 96 AS col2 FROM tab1 AS cor0
----
-101
-110
-143

onlyif mysql # aggregate syntax: 
query II rowsort label-5015
SELECT DISTINCT - COUNT( * ), + 57 AS col2 FROM tab2 AS cor0
----
-3
57

skipif mysql # not compatible
query II rowsort label-5015
SELECT DISTINCT - COUNT ( * ), + 57 AS col2 FROM tab2 AS cor0
----
-3
57

query I rowsort
SELECT ALL + - col2 * - 79 FROM tab1 AS cor0
----
4661
5372
7584

query I rowsort
SELECT DISTINCT 93 * col2 * 79 * + 91 * + 1 AS col2 FROM tab0
----
31423119
66189123
6685770

query I rowsort
SELECT ALL 32 * + - ( + col0 ) AS col2 FROM tab1
----
-1632
-2720
-2912

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 * - col0 + + + ( col2 ) * 74 <> 4
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5020
SELECT ALL - CAST( NULL AS SIGNED ) / - COUNT( * ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5020
SELECT ALL - CAST ( NULL AS INTEGER ) / - COUNT ( * ) AS col2 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5021
SELECT - + col0 DIV - + col0 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5021
SELECT - + col0 / - + col0 AS col1 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5022
SELECT DISTINCT - 81 DIV + col2 FROM tab0 AS cor0
----
-1
-8
0

skipif mysql # not compatible
query I rowsort label-5022
SELECT DISTINCT - 81 / + col2 FROM tab0 AS cor0
----
-1
-8
0

query II rowsort
SELECT DISTINCT col0, col1 * - 16 FROM tab0
----
15
-1296
87
-336
97
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-5024
SELECT col2 * + ( - col2 ) + - 99 + + col2 DIV col1 AS col2 FROM tab0 AS cor0
----
-199
-2308
-9801

skipif mysql # not compatible
query I rowsort label-5024
SELECT col2 * + ( - col2 ) + - 99 + + col2 / col1 AS col2 FROM tab0 AS cor0
----
-199
-2308
-9801

query I rowsort
SELECT + - 82 * - col0 * + 18 + + - col2 AS col0 FROM tab1 AS cor0
----
125401
134248
75180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5026
SELECT DISTINCT CAST( NULL AS SIGNED ) + - - COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5026
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - - COUNT ( * ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + col0 * + col2 * - ( + col0 ) + - + col2 AS col2 FROM tab2 cor0
----
-163880
-326308
-48691

onlyif mysql # aggregate syntax: 
query I rowsort label-5028
SELECT + COUNT( - col2 ) + COUNT( * ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5028
SELECT + COUNT ( - col2 ) + COUNT ( * ) FROM tab1 AS cor0
----
6

query I rowsort
SELECT - + col1 + + col0 AS col1 FROM tab2 AS cor0
----
-13
-5
8

query I rowsort
SELECT + 66 + - + col1 FROM tab1 AS cor0
----
19
52
61

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + col0 + + - 19 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5032
SELECT ( + 68 ) + + SUM( ALL - col1 ) FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-5032
SELECT ( + 68 ) + + SUM ( ALL - col1 ) FROM tab1 AS cor0
----
2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5033
SELECT DISTINCT MAX( ALL + - col2 ) * - 61 * + + CAST( NULL AS DECIMAL ) FROM tab0 WHERE NOT + + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5033
SELECT DISTINCT MAX ( ALL + - col2 ) * - 61 * + + CAST ( NULL AS REAL ) FROM tab0 WHERE NOT + + col1 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT col1 * - + 24 + + ( - 57 ) * + - 21 + - col1 FROM tab0
----
-828
1172
672

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5035
SELECT - CAST( + CAST( - col0 AS SIGNED ) AS SIGNED ) col2 FROM tab1
----
51
85
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5035
SELECT - CAST ( + CAST ( - col0 AS INTEGER ) AS INTEGER ) col2 FROM tab1
----
51
85
91

query I rowsort
SELECT DISTINCT - col1 + + 26 FROM tab2 AS cor0
----
-25
-41
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5037
SELECT DISTINCT - COUNT( DISTINCT + + 23 ) AS col1 FROM tab2 WHERE NOT - 96 IS NULL
----
-1

skipif mysql # not compatible
query I rowsort label-5037
SELECT DISTINCT - COUNT ( DISTINCT + + 23 ) AS col1 FROM tab2 WHERE NOT - 96 IS NULL
----
-1

query I rowsort
SELECT ALL col1 FROM tab0 cor0 WHERE NOT - ( - 75 ) - - 13 < - col0
----
1
21
81

query I rowsort
SELECT DISTINCT + 5 + + + col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + 62 AND NULL
----

query I rowsort
SELECT - col0 * + - col2 FROM tab1 AS cor0
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-5041
SELECT - 57 * + COUNT( * ) FROM tab2 AS cor0
----
-171

skipif mysql # not compatible
query I rowsort label-5041
SELECT - 57 * + COUNT ( * ) FROM tab2 AS cor0
----
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-5042
SELECT ALL + MAX( DISTINCT - col0 ) FROM tab1 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-5042
SELECT ALL + MAX ( DISTINCT - col0 ) FROM tab1 cor0
----
-51

query I rowsort
SELECT DISTINCT col1 * - 20 - - 25 * + col0 AS col2 FROM tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND - col0
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 27 + + + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5045
SELECT DISTINCT COUNT( col1 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5045
SELECT DISTINCT COUNT ( col1 ) AS col1 FROM tab0
----
3

query III rowsort
SELECT * FROM tab1 WHERE NOT - 63 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5047
SELECT ALL + + CAST( + col0 AS SIGNED ) FROM tab2 WHERE NULL IN ( - - col0, - col1 * 99 )
----

skipif mysql # not compatible
query I rowsort label-5047
SELECT ALL + + CAST ( + col0 AS INTEGER ) FROM tab2 WHERE NULL IN ( - - col0, - col1 * 99 )
----

query I rowsort
SELECT DISTINCT + col1 * - 5 AS col1 FROM tab0
----
-105
-405
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5049
SELECT 98 * - COUNT( ALL - ( - - col1 ) ) AS col2 FROM tab0
----
-294

skipif mysql # not compatible
query I rowsort label-5049
SELECT 98 * - COUNT ( ALL - ( - - col1 ) ) AS col2 FROM tab0
----
-294

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - ( + col2 ) BETWEEN NULL AND + 39 + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5051
SELECT DISTINCT - + COUNT( - 36 ) * - 62 AS col1 FROM tab0 AS cor0
----
186

skipif mysql # not compatible
query I rowsort label-5051
SELECT DISTINCT - + COUNT ( - 36 ) * - 62 AS col1 FROM tab0 AS cor0
----
186

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 20 > + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - + 43, col0 AS col0 FROM tab0 AS cor0
----
-43
15
-43
87
-43
97

query II rowsort
SELECT ALL - - col2, - col1 * - 33 * - col2 AS col0 FROM tab2 cor0
----
23
-38709
40
-101640
58
-128238

query I rowsort
SELECT ALL - + 23 AS col2 FROM tab1 cor0
----
-23
-23
-23

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5056
SELECT CAST( NULL AS DECIMAL ) + - ( - + col2 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5056
SELECT CAST ( NULL AS REAL ) + - ( - + col2 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5057
SELECT COUNT( - ( - 81 ) ) * + 36 FROM tab2
----
108

skipif mysql # not compatible
query I rowsort label-5057
SELECT COUNT ( - ( - 81 ) ) * + 36 FROM tab2
----
108

query I rowsort
SELECT DISTINCT - 80 + + 44 AS col0 FROM tab1 AS cor0
----
-36

query I rowsort
SELECT ALL col1 + + col1 - - col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL = - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5060
SELECT ALL + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT col0 NOT IN ( col0 )
----
3

skipif mysql # not compatible
query I rowsort label-5060
SELECT ALL + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT col0 NOT IN ( col0 )
----
3

query I rowsort
SELECT - + 76 - col2 + + col1 AS col1 FROM tab0 AS cor0
----
-174
-42
-65

query I rowsort
SELECT + ( - + col0 ) + + + col2 FROM tab0
----
-77
2
32

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5063
SELECT 81 + col0 * + + 72, CAST( NULL AS DECIMAL ) + + 63 AS col1 FROM tab2
----
3393
NULL
4689
NULL
5481
NULL

skipif mysql # not compatible
query II rowsort label-5063
SELECT 81 + col0 * + + 72, CAST ( NULL AS REAL ) + + 63 AS col1 FROM tab2
----
3393
NULL
4689
NULL
5481
NULL

query I rowsort
SELECT 89 + - 65 FROM tab0
----
24
24
24

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 + 97 NOT BETWEEN - - 34 AND NULL
----

query I rowsort
SELECT - col2 * - col2 * - + col0 + col1 * + col0 AS col2 FROM tab2
----
-21988
-247275
-97472

query I rowsort
SELECT - col2 + + + 56 AS col1 FROM tab2
----
-2
16
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5068
SELECT col0 - 55 FROM tab1 AS cor0 WHERE col0 + - col2 - 18 = CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5068
SELECT col0 - 55 FROM tab1 AS cor0 WHERE col0 + - col2 - 18 = CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + col0 * - + col1 * col0 AS col1 FROM tab1
----
-36125
-36414
-389207

onlyif mysql # aggregate syntax: 
query I rowsort label-5070
SELECT DISTINCT + COUNT( * ) * + 70 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
630

skipif mysql # not compatible
query I rowsort label-5070
SELECT DISTINCT + COUNT ( * ) * + 70 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
630

query I rowsort
SELECT 38 * + + col0 FROM tab1 AS cor0 WHERE NOT col1 <> ( + col1 / + 5 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 46 col2 FROM tab1 AS cor0
----
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * 33 col0 FROM tab2 AS cor0
----
-1683
-2211
-2541

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 2 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5075
SELECT DISTINCT 54 DIV - COUNT( * ) AS col0 FROM tab1
----
-18

skipif mysql # not compatible
query I rowsort label-5075
SELECT DISTINCT 54 / - COUNT ( * ) AS col0 FROM tab1
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5076
SELECT DISTINCT * FROM tab1 WHERE - ( 54 ) * 78 >= - + col2 * + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5076
SELECT DISTINCT * FROM tab1 WHERE - ( 54 ) * 78 >= - + col2 * + - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 - - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5078
SELECT ALL * FROM tab0 WHERE + - CAST( NULL AS SIGNED ) * col2 + + 70 NOT BETWEEN - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-5078
SELECT ALL * FROM tab0 WHERE + - CAST ( NULL AS INTEGER ) * col2 + + 70 NOT BETWEEN - CAST ( NULL AS INTEGER ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col0 FROM tab0 cor0 WHERE NOT col0 > col0
----
-15
-87
-97

query I rowsort
SELECT - 53 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

query I rowsort
SELECT ALL + col2 + ( - ( + + 74 ) ) FROM tab0
----
-27
-64
25

query I rowsort
SELECT DISTINCT + ( - col1 ) + + 72 FROM tab2
----
-5
21
5

query I rowsort
SELECT col0 FROM tab1 cor0 WHERE NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5084
SELECT + 47 + - 61 * + - MAX( - + col0 ) AS col2 FROM tab1 AS cor0
----
-3064

skipif mysql # not compatible
query I rowsort label-5084
SELECT + 47 + - 61 * + - MAX ( - + col0 ) AS col2 FROM tab1 AS cor0
----
-3064

query I rowsort
SELECT - + 67 + 27 AS col1 FROM tab0 AS cor0
----
-40
-40
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-5086
SELECT 8 + - SUM( + col1 ) AS col2 FROM tab2 AS cor0
----
-187

skipif mysql # not compatible
query I rowsort label-5086
SELECT 8 + - SUM ( + col1 ) AS col2 FROM tab2 AS cor0
----
-187

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5087
SELECT DISTINCT CAST( + col2 AS SIGNED ) + - 24 col1 FROM tab0 AS cor0 WHERE NOT 92 NOT IN ( - col1 * - col0 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5087
SELECT DISTINCT CAST ( + col2 AS INTEGER ) + - 24 col1 FROM tab0 AS cor0 WHERE NOT 92 NOT IN ( - col1 * - col0 )
----

query I rowsort
SELECT DISTINCT - 94 + - col2 FROM tab1 AS cor0
----
-153
-162
-190

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5089
SELECT ALL * FROM tab1 cor0 WHERE + CAST( ( + + 93 ) AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5089
SELECT ALL * FROM tab1 cor0 WHERE + CAST ( ( + + 93 ) AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5090
SELECT COUNT( + col1 ) * + 87 FROM tab2
----
261

skipif mysql # not compatible
query I rowsort label-5090
SELECT COUNT ( + col1 ) * + 87 FROM tab2
----
261

query III rowsort
SELECT * FROM tab1 WHERE - col0 >= + col1 * + col1 + 96
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 * + 90 + + + col0 * - 61 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5093
SELECT - 61 / - 64 - + - CAST( NULL AS SIGNED ) * - COUNT( * ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5093
SELECT - 61 / - 64 - + - CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT + 98 - + col2 FROM tab2
----
40
58
75

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL < - 45 / - 19
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5096
SELECT ALL - ( - 97 ) DIV col2 + + + col2 AS col1 FROM tab2 AS cor0 WHERE col0 * 35 * - + col1 + - + col1 + - col0 IS NOT NULL
----
27
42
59

skipif mysql # not compatible
query I rowsort label-5096
SELECT ALL - ( - 97 ) / col2 + + + col2 AS col1 FROM tab2 AS cor0 WHERE col0 * 35 * - + col1 + - + col1 + - col0 IS NOT NULL
----
27
42
59

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE + 11 IS NULL
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 JOIN tab0 AS cor1 ON NOT + 90 * - 17 IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

onlyif mysql # aggregate syntax: 
query I rowsort label-5099
SELECT DISTINCT + + ( + + SUM( DISTINCT col2 ) ) col1 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5099
SELECT DISTINCT + + ( + + SUM ( DISTINCT col2 ) ) col1 FROM tab2 AS cor0
----
121

query II rowsort
SELECT ALL - + col2, col1 / + col0 AS col1 FROM tab2 AS cor0 WHERE col0 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT ALL + - 22 AS col2, col0 FROM tab1 AS cor0
----
-22
51
-22
85
-22
91

query I rowsort
SELECT DISTINCT + - 28 * col1 FROM tab1 AS cor0
----
-1316
-140
-392

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col1 * - 20 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 81 * - 64 FROM tab0 cor0
----
5184
5184
5184

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 64 > NULL
----

query II rowsort
SELECT + ( + col1 ) AS col2, + 58 FROM tab1
----
14
58
47
58
5
58

query I rowsort
SELECT DISTINCT + col2 * col2 + + - col0 AS col2 FROM tab2
----
1536
3289
483

onlyif mysql # aggregate syntax: 
query I rowsort label-5108
SELECT DISTINCT - ( + 15 ) * - 11 * - + COUNT( * ) col0 FROM tab1
----
-495

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5108
SELECT DISTINCT - ( + 15 ) * - 11 * - + COUNT ( * ) col0 FROM tab1
----
-495

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5109
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + 81 ) IN ( - CAST( + 18 AS SIGNED ), + col2 * - col0 / col1 * - + col1 )
----

skipif mysql # not compatible
query III rowsort label-5109
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + 81 ) IN ( - CAST ( + 18 AS INTEGER ), + col2 * - col0 / col1 * - + col1 )
----

query I rowsort
SELECT DISTINCT 52 FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN 16 * + - 21 AND - col0
----

query I rowsort
SELECT ALL + ( - + 1 ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

onlyif mysql # aggregate syntax: 
query I rowsort label-5113
SELECT + COUNT( * ) * - 87 * - + COUNT( DISTINCT + 24 ) * ( - - 37 ) FROM tab1
----
9657

skipif mysql # not compatible
query I rowsort label-5113
SELECT + COUNT ( * ) * - 87 * - + COUNT ( DISTINCT + 24 ) * ( - - 37 ) FROM tab1
----
9657

onlyif mysql # aggregate syntax: 
query I rowsort label-5114
SELECT ALL + COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE ( NULL ) IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-5114
SELECT ALL + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE ( NULL ) IS NULL
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5115
SELECT ALL - CAST( NULL AS SIGNED ) + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5115
SELECT ALL - CAST ( NULL AS INTEGER ) + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * - col1 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
210
3807
99

query I rowsort
SELECT DISTINCT + - 88 + col0 AS col1 FROM tab0 cor0
----
-1
-73
9

query I rowsort
SELECT ALL - 22 - - 3 AS col1 FROM tab2 AS cor0
----
-19
-19
-19

query I rowsort
SELECT - 42 + 29 + + col0 FROM tab1
----
38
72
78

onlyif mysql # aggregate syntax: 
query II rowsort label-5120
SELECT DISTINCT COUNT( * ) * + 30, - COUNT( * ) AS col0 FROM tab0
----
90
-3

skipif mysql # not compatible
query II rowsort label-5120
SELECT DISTINCT COUNT ( * ) * + 30, - COUNT ( * ) AS col0 FROM tab0
----
90
-3

query I rowsort
SELECT col2 AS col2 FROM tab2 WHERE 53 BETWEEN NULL AND col2 * - col2 + + col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5122
SELECT MAX( - 7 ) * + MIN( - 18 ) DIV + COUNT( * ) col2 FROM tab2
----
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5122
SELECT MAX ( - 7 ) * + MIN ( - 18 ) / + COUNT ( * ) col2 FROM tab2
----
42

query I rowsort
SELECT + + ( - 33 ) FROM tab0 AS cor0
----
-33
-33
-33

query II rowsort
SELECT + 36, col1 AS col1 FROM tab1 AS cor0
----
36
14
36
47
36
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5125
SELECT - 0 AS col1, ( + - 21 ) * 89 + - CAST( NULL AS SIGNED ) - - col0 - - - col1 + + - col1 AS col2 FROM tab2 AS cor0
----
0
NULL
0
NULL
0
NULL

skipif mysql # not compatible
query II rowsort label-5125
SELECT - 0 AS col1, ( + - 21 ) * 89 + - CAST ( NULL AS INTEGER ) - - col0 - - - col1 + + - col1 AS col2 FROM tab2 AS cor0
----
0
NULL
0
NULL
0
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <> + col2 * + 37
----

query I rowsort
SELECT - 15 * 24 AS col0 FROM tab1 AS cor0
----
-360
-360
-360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5128
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 34 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5128
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 34 AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - col2 AS col0 FROM tab1 AS cor0 WHERE - 6 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5130
SELECT + + 63 * + + CAST( + CAST( COUNT( * ) AS DECIMAL ) AS SIGNED ) AS col1 FROM tab1 cor0
----
189

skipif mysql # not compatible
query I rowsort label-5130
SELECT + + 63 * + + CAST ( + CAST ( COUNT ( * ) AS REAL ) AS INTEGER ) AS col1 FROM tab1 cor0
----
189

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 48 * + col0 + - col2 col1 FROM tab0
----
4166
4557
673

query III rowsort
SELECT * FROM tab2 WHERE NOT + 8 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + 38 col1 FROM tab0
----
-3306
-3686
-570

onlyif mysql # aggregate syntax: 
query I rowsort label-5134
SELECT + COUNT( ALL 44 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5134
SELECT + COUNT ( ALL 44 ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5135
SELECT ALL - SUM( 98 ) FROM tab1
----
-294

skipif mysql # not compatible
query I rowsort label-5135
SELECT ALL - SUM ( 98 ) FROM tab1
----
-294

onlyif mysql # DIV for integer division: 
query I rowsort label-5136
SELECT 7 DIV ( - 31 ) + col0 AS col1 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-5136
SELECT 7 / ( - 31 ) + col0 AS col1 FROM tab0
----
15
87
97

query I rowsort
SELECT 29 * col2 AS col2 FROM tab2
----
1160
1682
667

query I rowsort
SELECT ( 20 ) * 58 FROM tab1
----
1160
1160
1160

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + 94 * + 67 ) = NULL
----

query I rowsort
SELECT col1 + 23 * col0 FROM tab0
----
2022
2232
426

query III rowsort
SELECT ALL * FROM tab1 WHERE ( 71 ) < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col0 * col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5143
SELECT SUM( 66 ) * - 56 FROM tab2 WHERE ( - 67 ) >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5143
SELECT SUM ( 66 ) * - 56 FROM tab2 WHERE ( - 67 ) >= NULL
----
NULL

query I rowsort
SELECT + 68 * 53 FROM tab0
----
3604
3604
3604

query I rowsort
SELECT DISTINCT + 64 + 52 * - 62 AS col0 FROM tab0
----
-3160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 61 * col1 + + 96 * col1 col2 FROM tab2 WHERE NOT col1 NOT BETWEEN + col1 / 1 AND ( - col1 )
----

query I rowsort
SELECT - ( - ( col2 ) ) + - col0 FROM tab1
----
-23
-26
45

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5148
SELECT + ( 62 ) * CAST( NULL AS DECIMAL ) + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5148
SELECT + ( 62 ) * CAST ( NULL AS REAL ) + col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE ( 96 ) IN ( 99 * + 21 + 85 / + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5150
SELECT CAST( 64 AS DECIMAL ) AS col2 FROM tab1 WHERE ( col2 ) IN ( CAST( col0 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-5150
SELECT CAST ( 64 AS REAL ) AS col2 FROM tab1 WHERE ( col2 ) IN ( CAST ( col0 AS INTEGER ) )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - 1 ) - - 61 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - ( 84 ) * + col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - ( col0 ) * - col2 AS col1 FROM tab0
----
705
870
9603

onlyif mysql # DIV for integer division: 
query I rowsort label-5154
SELECT ALL - col2 DIV 73 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5154
SELECT ALL - col2 / 73 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT + 72 + - col2 AS col0 FROM tab2
----
14
32
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5156
SELECT COUNT( + 58 ) FROM tab0 WHERE col2 * + col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5156
SELECT COUNT ( + 58 ) FROM tab0 WHERE col2 * + col1 IS NOT NULL
----
3

query I rowsort
SELECT - col2 * + col0 - + col1 * - 71 FROM tab1
----
-2851
-3902
-4660

query III rowsort
SELECT * FROM tab2 WHERE - 40 + 92 IN ( - 24 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - ( - col0 ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5161
SELECT 71 * CAST( NULL AS DECIMAL ) + - 75 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5161
SELECT 71 * CAST ( NULL AS REAL ) + - 75 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-5162
SELECT COUNT( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab2
----
9

skipif mysql # not compatible
query I rowsort label-5162
SELECT COUNT ( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab2
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5163
SELECT - + CAST( - AVG ( - col2 ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-5163
SELECT - + CAST ( - AVG ( - col2 ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-74

query I rowsort
SELECT 95 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
95
95
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5165
SELECT ALL + col0 FROM tab2 AS cor0 WHERE NOT CAST( - 69 AS SIGNED ) + col0 IS NULL
----
46
64
75

skipif mysql # not compatible
query I rowsort label-5165
SELECT ALL + col0 FROM tab2 AS cor0 WHERE NOT CAST ( - 69 AS INTEGER ) + col0 IS NULL
----
46
64
75

query I rowsort
SELECT DISTINCT + 41 AS col0 FROM tab1 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ALL 42 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT ( + 36 ) * col2 FROM tab2
----
1440
2088
828

onlyif mysql # DIV for integer division: 
query I rowsort label-5169
SELECT + 23 DIV - col2 AS col0 FROM tab0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-5169
SELECT + 23 / - col2 AS col0 FROM tab0
----
-2
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5170
SELECT ALL CAST( col2 AS SIGNED ) + + col0 AS col2 FROM tab1
----
144
147
159

skipif mysql # not compatible
query I rowsort label-5170
SELECT ALL CAST ( col2 AS INTEGER ) + + col0 AS col2 FROM tab1
----
144
147
159

query III rowsort
SELECT * FROM tab1 WHERE col1 / col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col0 FROM tab0 WHERE + ( - col0 ) IS NULL
----

query I rowsort
SELECT DISTINCT + ( - col0 ) + + 55 * + col2 FROM tab0 AS cor0
----
2570
463
5348

query I rowsort
SELECT ALL + col0 * - col1 + 59 AS col0 FROM tab2 AS cor0 WHERE 38 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5175
SELECT DISTINCT + 31 + - - COUNT( * ) col0 FROM tab1 AS cor0
----
34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5175
SELECT DISTINCT + 31 + - - COUNT ( * ) col0 FROM tab1 AS cor0
----
34

query I rowsort
SELECT - col0 * + + 85 FROM tab0
----
-1275
-7395
-8245

onlyif mysql # aggregate syntax: 
query I rowsort label-5177
SELECT ALL COUNT( * ) AS col2 FROM tab0 WHERE NOT ( NOT - col2 - + 63 IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5177
SELECT ALL COUNT ( * ) AS col2 FROM tab0 WHERE NOT ( NOT - col2 - + 63 IS NULL )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5178
SELECT + 64 DIV COUNT( * ) AS col0 FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-5178
SELECT + 64 / COUNT ( * ) AS col0 FROM tab2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5179
SELECT DISTINCT SUM( 51 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
459

skipif mysql # not compatible
query I rowsort label-5179
SELECT DISTINCT SUM ( 51 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
459

query I rowsort
SELECT ALL col0 * + + 93 * - - ( col1 ) FROM tab0
----
112995
169911
9021

query I rowsort
SELECT DISTINCT + 30 + - - col1 FROM tab1 AS cor0
----
35
44
77

query I rowsort
SELECT - - col2 + col1 FROM tab0 AS cor0 WHERE 79 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5183
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE NULL < col0 * - col2 + 84 * col1
----
0

skipif mysql # not compatible
query I rowsort label-5183
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE NULL < col0 * - col2 + 84 * col1
----
0

query I rowsort
SELECT + 65 + - + ( - + col2 ) * col1 FROM tab1 AS cor0
----
1409
3261
360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5185
SELECT ALL + col0 * 74 AS col0 FROM tab1 AS cor0 WHERE ( CAST( NULL AS SIGNED ) ) NOT BETWEEN ( NULL ) AND ( - 81 )
----

skipif mysql # not compatible
query I rowsort label-5185
SELECT ALL + col0 * 74 AS col0 FROM tab1 AS cor0 WHERE ( CAST ( NULL AS INTEGER ) ) NOT BETWEEN ( NULL ) AND ( - 81 )
----

query I rowsort
SELECT ALL 80 * col2 FROM tab1 AS cor0 WHERE ( - 12 ) <= ( - 43 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5187
SELECT COUNT( - + col2 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5187
SELECT COUNT ( - + col2 ) FROM tab0 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5188
SELECT ALL - CAST( NULL AS SIGNED ) * + col1 * col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5188
SELECT ALL - CAST ( NULL AS INTEGER ) * + col1 * col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 / - col0 * col2 BETWEEN col2 * - col1 AND 63 * 58
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5190
SELECT - 77 + COUNT( * ) FROM tab2 WHERE NOT ( col2 + - col0 ) IS NOT NULL
----
-77

skipif mysql # not compatible
query I rowsort label-5190
SELECT - 77 + COUNT ( * ) FROM tab2 WHERE NOT ( col2 + - col0 ) IS NOT NULL
----
-77

query I rowsort
SELECT ALL + col0 * col0 AS col1 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
225
7569
9409

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col2 * - 32 + 18 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + 48 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - - col1 * - + col1 FROM tab2 AS cor0
----
-2601
-4489
-5929

query I rowsort
SELECT ALL 2 AS col1 FROM tab1 cor0 WHERE ( NOT + col0 <= NULL )
----

query I rowsort
SELECT DISTINCT - col2 + col1 AS col0 FROM tab1 AS cor0 WHERE NOT + col2 BETWEEN + 80 * + + col0 * col0 - - col0 AND 94
----
-21
-54
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-5197
SELECT ALL + col0 DIV + 64 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5197
SELECT ALL + col0 / + 64 FROM tab0
----
0
1
1

onlyif mysql # CAST syntax: DECIMAL type: 
query IIIIII rowsort label-5198
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE ( CAST( 76 AS DECIMAL ) ) IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

skipif mysql # not compatible
query IIIIII rowsort label-5198
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE ( CAST ( 76 AS REAL ) ) IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # aggregate syntax: 
query I rowsort label-5199
SELECT DISTINCT - MAX( + + 51 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-51

skipif mysql # not compatible
query I rowsort label-5199
SELECT DISTINCT - MAX ( + + 51 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5200
SELECT DISTINCT ( - + COUNT( * ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5200
SELECT DISTINCT ( - + COUNT ( * ) ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT 0 + col2 + col2 - 93 AS col1 FROM tab1 AS cor0
----
25
43
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5202
SELECT DISTINCT + CAST( + - 15 AS SIGNED ) + - + 22 AS col0 FROM tab2 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-5202
SELECT DISTINCT + CAST ( + - 15 AS INTEGER ) + - + 22 AS col0 FROM tab2 AS cor0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-5203
SELECT - COUNT( * ) + + 92 FROM tab0 cor0
----
89

skipif mysql # not compatible
query I rowsort label-5203
SELECT - COUNT ( * ) + + 92 FROM tab0 cor0
----
89

query I rowsort
SELECT DISTINCT - 23 + - + col0 * col2 FROM tab2 AS cor0
----
-1081
-2583
-4373

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5205
SELECT DISTINCT - 94 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5205
SELECT DISTINCT - 94 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5206
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IN ( + col0, CAST( - - col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5206
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IN ( + col0, CAST ( - - col2 AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5207
SELECT - - col2 * + 21 + 74 DIV 96 AS col1 FROM tab1 AS cor0
----
1239
1428
2016

skipif mysql # not compatible
query I rowsort label-5207
SELECT - - col2 * + 21 + 74 / 96 AS col1 FROM tab1 AS cor0
----
1239
1428
2016

query I rowsort
SELECT + - col2 + col1 + - 26 AS col2 FROM tab0 AS cor0
----
-124
-15
8

query I rowsort
SELECT + ( - ( + col2 ) ) + col1 AS col0 FROM tab1 AS cor0
----
-21
-54
-82

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) BETWEEN NULL AND ( - col1 )
----

query I rowsort
SELECT - col2 FROM tab1 WHERE ( NOT - col0 IS NULL )
----
-59
-68
-96

query I rowsort
SELECT + 32 AS col1 FROM tab0, tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5213
SELECT DISTINCT CAST( + 1 AS SIGNED ) FROM tab2 WHERE NULL IS NULL
----
1

skipif mysql # not compatible
query I rowsort label-5213
SELECT DISTINCT CAST ( + 1 AS INTEGER ) FROM tab2 WHERE NULL IS NULL
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5214
SELECT col2 FROM tab2 WHERE ( + + CAST( NULL AS SIGNED ) * - + col0 * + col2 * + + col1 - col2 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5214
SELECT col2 FROM tab2 WHERE ( + + CAST ( NULL AS INTEGER ) * - + col0 * + col2 * + + col1 - col2 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 83 * + col1 col1 FROM tab2 WHERE ( - col1 + col1 + + col1 * - - ( col1 ) ) IS NULL
----

query II rowsort
SELECT ALL col1 + - col2, - col0 AS col0 FROM tab1
----
-21
-91
-54
-85
-82
-51

query II rowsort
SELECT ALL col0 AS col1, 40 FROM tab1 WHERE - + col1 IS NOT NULL
----
51
40
85
40
91
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 * ( col1 ) col2 FROM tab1 AS cor0
----
201019
2125
9996

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5219
SELECT ALL - col0 / + col0 - + CAST( NULL AS SIGNED ) + 56 + - col0 + + col1 * - col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5219
SELECT ALL - col0 / + col0 - + CAST ( NULL AS INTEGER ) + 56 + - col0 + + col1 * - col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 + - + 4 + + 87 AS col0 FROM tab1 AS cor0
----
36
69
78

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( 40 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query IIIIII rowsort label-5222
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL BETWEEN ( NULL ) AND + ( + CAST( + + 28 AS DECIMAL ) )
----

skipif mysql # not compatible
query IIIIII rowsort label-5222
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL BETWEEN ( NULL ) AND + ( + CAST ( + + 28 AS REAL ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5223
SELECT DISTINCT - CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5223
SELECT DISTINCT - CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-5224
SELECT + 17 DIV + - 28 + + + 26 FROM tab0 AS cor0
----
26
26
26

skipif mysql # not compatible
query I rowsort label-5224
SELECT + 17 / + - 28 + + + 26 FROM tab0 AS cor0
----
26
26
26

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL >= - 67
----

query II rowsort
SELECT - - 8 + - - ( col1 ) AS col0, 38 / + ( 33 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( ( NOT - 58 > col2 * col0 + col1 / col1 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col2 * - col1 + + + col1 FROM tab2 WHERE NULL IN ( col1, - col2 * - 33 )
----

query I rowsort
SELECT DISTINCT col2 + - col1 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 + + 3 BETWEEN NULL AND - col2 * + + 3
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL ( 27 ) FROM tab1
----
27
27
27

query I rowsort
SELECT ALL - col0 + + col1 FROM tab1 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT + col0 * + 69 AS col2 FROM tab2
----
3174
4416
5175

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col1 + - 57 AND - + ( - + col1 )
----

query I rowsort
SELECT ALL - col0 * 31 AS col0 FROM tab1 AS cor0
----
-1581
-2635
-2821

query I rowsort
SELECT - col1 + col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5237
SELECT ALL + ( MAX( DISTINCT - + col2 ) ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-5237
SELECT ALL + ( MAX ( DISTINCT - + col2 ) ) FROM tab2 AS cor0
----
-23

query I rowsort
SELECT DISTINCT col2 * + - 97 AS col2 FROM tab0 AS cor0
----
-4559
-9603
-970

query I rowsort
SELECT ALL col2 + + - 1 + - col0 FROM tab2
----
-18
-24
-25

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col1 <> + - 98
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + + col1 + col2 AS col2, 65 * 87 + - 61 AS col0 FROM tab0 AS cor0
----
100
5594
128
5594
31
5594

query I rowsort
SELECT - 8 FROM tab2 cor0 WHERE 7 * col1 <= - col2 * + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - col1 col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5244
SELECT ALL 19 DIV + - col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5244
SELECT ALL 19 / + - col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5245
SELECT ALL + MIN( + col1 ) FROM tab0 AS cor0 WHERE - col1 NOT BETWEEN ( - + col1 ) AND col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5245
SELECT ALL + MIN ( + col1 ) FROM tab0 AS cor0 WHERE - col1 NOT BETWEEN ( - + col1 ) AND col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5246
SELECT DISTINCT - 87 DIV + + ( - col1 ) col1 FROM tab1 AS cor0
----
1
17
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5246
SELECT DISTINCT - 87 / + + ( - col1 ) col1 FROM tab1 AS cor0
----
1
17
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5247
SELECT ALL + col0 FROM tab1 AS cor0 WHERE NOT ( CAST( + - 91 AS SIGNED ) * - 36 * + + ( - 94 ) + 68 * - + col2 + 43 + col0 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5247
SELECT ALL + col0 FROM tab1 AS cor0 WHERE NOT ( CAST ( + - 91 AS INTEGER ) * - 36 * + + ( - 94 ) + 68 * - + col2 + 43 + col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5248
SELECT - + MIN( ALL col0 ) * 70 FROM tab2 AS cor0
----
-3220

skipif mysql # not compatible
query I rowsort label-5248
SELECT - + MIN ( ALL col0 ) * 70 FROM tab2 AS cor0
----
-3220

query I rowsort
SELECT + 83 + - col0 AS col1 FROM tab1
----
-2
-8
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5250
SELECT ALL + MAX( + - col2 ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-5250
SELECT ALL + MAX ( + - col2 ) FROM tab1
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-5251
SELECT col2 DIV - col2 + + col1 FROM tab2
----
50
66
76

skipif mysql # not compatible
query I rowsort label-5251
SELECT col2 / - col2 + + col1 FROM tab2
----
50
66
76

query I rowsort
SELECT ALL - col1 + + + col0 FROM tab0
----
-66
66
96

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <> - - 75
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5254
SELECT ALL ( 2 ) * - 34 * - + COUNT( * ) * SUM( - col1 ) - COUNT( * ) FROM tab1 AS cor0
----
-13467

skipif mysql # not compatible
query I rowsort label-5254
SELECT ALL ( 2 ) * - 34 * - + COUNT ( * ) * SUM ( - col1 ) - COUNT ( * ) FROM tab1 AS cor0
----
-13467

onlyif mysql # aggregate syntax: 
query I rowsort label-5255
SELECT MAX( DISTINCT + 2 ) col2 FROM tab0 AS cor0
----
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5255
SELECT MAX ( DISTINCT + 2 ) col2 FROM tab0 AS cor0
----
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( - col2 ) col2 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5257
SELECT DISTINCT + col2, + ( + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-5257
SELECT DISTINCT + col2, + ( + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

query I rowsort
SELECT + ( - 41 ) * + col2 FROM tab2 cor0
----
-1640
-2378
-943

query I rowsort
SELECT ALL + col0 AS col0 FROM tab2 cor0 WHERE NULL = col0 / - 35
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col0, col0 col2 FROM tab2 AS cor0
----
46
46
64
64
75
75

query I rowsort
SELECT DISTINCT 82 * col1 AS col1 FROM tab2 WHERE 84 BETWEEN + - col0 * ( col0 ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <= - 25
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - 69 - + col1 - + - col0 ) IN ( - 3 * + + 32, 20 + col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 + 53 = - col2 + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5265
SELECT col2 FROM tab0 WHERE NOT NULL < - + CAST( 12 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5265
SELECT col2 FROM tab0 WHERE NOT NULL < - + CAST ( 12 AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 42 col0 FROM tab0 AS cor0
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5267
SELECT - COUNT( * ) * + - COUNT( * ) DIV + - MIN( - col1 ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5267
SELECT - COUNT ( * ) * + - COUNT ( * ) / + - MIN ( - col1 ) AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL - + col2 + - + col2 FROM tab2 WHERE NULL = col2
----

query I rowsort
SELECT - + col0 + 38 + + + 46 * + - 85 FROM tab2 AS cor0
----
-3918
-3936
-3947

onlyif mysql # DIV for integer division: 
query II rowsort label-5270
SELECT 70 DIV col0, col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
0
59
0
68
1
96

skipif mysql # not compatible
query II rowsort label-5270
SELECT 70 / col0, col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
0
59
0
68
1
96

onlyif mysql # DIV for integer division: 
query I rowsort label-5271
SELECT DISTINCT 96 DIV 65 * - col0 + 88 AS col2 FROM tab1 AS cor0
----
-3
3
37

skipif mysql # not compatible
query I rowsort label-5271
SELECT DISTINCT 96 / 65 * - col0 + 88 AS col2 FROM tab1 AS cor0
----
-3
3
37

query I rowsort
SELECT ALL + 69 + col2 FROM tab1 AS cor0
----
128
137
165

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 3 + - - 97 + col2 * - 94 col2 FROM tab0 AS cor0
----
-4318
-840
-9206

onlyif mysql # DIV for integer division: 
query I rowsort label-5274
SELECT DISTINCT - ( + 1 ) + col2 + col1 DIV + 34 + + col2 AS col2 FROM tab2 AS cor0
----
116
46
81

skipif mysql # not compatible
query I rowsort label-5274
SELECT DISTINCT - ( + 1 ) + col2 + col1 / + 34 + + col2 AS col2 FROM tab2 AS cor0
----
116
46
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5275
SELECT DISTINCT SUM( + + 37 ) col1 FROM tab1 AS cor0
----
111

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5275
SELECT DISTINCT SUM ( + + 37 ) col1 FROM tab1 AS cor0
----
111

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 IN ( - col1, 98 / + col2 * 17 + - + 75 + + col1, - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5277
SELECT 15 DIV + MIN( DISTINCT + + 38 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5277
SELECT 15 / + MIN ( DISTINCT + + 38 ) FROM tab0
----
0

query I rowsort
SELECT + col1 - - col2 + - 96 FROM tab2 AS cor0
----
-22
21
29

query I rowsort
SELECT - - col0 - - col1 FROM tab0 AS cor0
----
108
96
98

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 + + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5281
SELECT ALL - COUNT( * ) - + 42 FROM tab0 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-5281
SELECT ALL - COUNT ( * ) - + 42 FROM tab0 AS cor0
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5282
SELECT - COUNT( * ) DIV - 97 FROM tab2 WHERE NOT ( NULL < NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5282
SELECT - COUNT ( * ) / - 97 FROM tab2 WHERE NOT ( NULL < NULL )
----
0

query I rowsort
SELECT ALL + - 79 AS col2 FROM tab1 AS cor0
----
-79
-79
-79

query II rowsort
SELECT ALL col0 AS col1, - col0 FROM tab0 AS cor0
----
15
-15
87
-87
97
-97

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 + - - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5286
SELECT - 68 DIV COUNT( * ) * - 92 FROM tab2 AS cor0
----
2024

skipif mysql # not compatible
query I rowsort label-5286
SELECT - 68 / COUNT ( * ) * - 92 FROM tab2 AS cor0
----
2024

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5287
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 * - - ( - - ( CAST( 10 AS SIGNED ) ) ) BETWEEN + - col1 AND + 56
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5287
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 * - - ( - - ( CAST ( 10 AS INTEGER ) ) ) BETWEEN + - col1 AND + 56
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 38 FROM tab1 cor0
----
-38
-38
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 9 col1, col1 AS col1 FROM tab0
----
9
1
9
21
9
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5290
SELECT ALL + + CAST( NULL AS SIGNED ) - - + 48 FROM tab0 WHERE NOT - col2 + 87 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5290
SELECT ALL + + CAST ( NULL AS INTEGER ) - - + 48 FROM tab0 WHERE NOT - col2 + 87 IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT 14 * 36 FROM tab2
----
504
504
504

query II rowsort
SELECT DISTINCT + col0 * col0 AS col2, - col1 FROM tab0
----
225
-81
7569
-21
9409
-1

query I rowsort
SELECT ALL - - 46 AS col0 FROM tab0 WHERE NULL IS NULL
----
46
46
46

query I rowsort
SELECT + + 52 * + + col1 + - 8 + - + 82 * ( + + 34 ) FROM tab0 WHERE NOT + ( + col0 ) / - col2 BETWEEN + 16 + - ( + + 7 ) AND NULL
----
-1704
-2744
1416

query III rowsort
SELECT DISTINCT col0 AS col0, + col0 AS col1, + + col2 FROM tab2 AS cor0
----
9 values hashing to 798e672c4b70c465069b48010c06bdc3

onlyif mysql # aggregate syntax: 
query I rowsort label-5296
SELECT DISTINCT COUNT( * ) + - MAX( col1 ) AS col0 FROM tab1 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-5296
SELECT DISTINCT COUNT ( * ) + - MAX ( col1 ) AS col0 FROM tab1 AS cor0
----
-44

query I rowsort
SELECT DISTINCT + 80 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
80

query I rowsort
SELECT - col0 * - 44 * + col1 FROM tab1 cor0
----
18700
188188
31416

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5299
SELECT + 68 / + ( CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0 WHERE ( + - CAST( NULL AS SIGNED ) ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5299
SELECT + 68 / + ( CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0 WHERE ( + - CAST ( NULL AS INTEGER ) ) IS NULL
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + 11 col2 FROM tab0 AS cor0
----
-4
-76
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-5301
SELECT ALL - - COUNT( * ) + + + 36 FROM tab2 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-5301
SELECT ALL - - COUNT ( * ) + + + 36 FROM tab2 AS cor0
----
39

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 - 31 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5303
SELECT COUNT( * ) * - 15 * + SUM( DISTINCT - 40 ) FROM tab1 AS cor0 WHERE ( 52 + - col2 ) IS NOT NULL
----
1800

skipif mysql # not compatible
query I rowsort label-5303
SELECT COUNT ( * ) * - 15 * + SUM ( DISTINCT - 40 ) FROM tab1 AS cor0 WHERE ( 52 + - col2 ) IS NOT NULL
----
1800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5304
SELECT - ( CAST( + 74 AS SIGNED ) ) * - - col2 + - - col0 + - - col1 AS col2 FROM tab1 cor0
----
-4276
-4894
-7039

skipif mysql # not compatible
query I rowsort label-5304
SELECT - ( CAST ( + 74 AS INTEGER ) ) * - - col2 + - - col0 + - - col1 AS col2 FROM tab1 cor0
----
-4276
-4894
-7039

query I rowsort
SELECT 98 + - col2 AS col0 FROM tab0
----
-1
51
88

onlyif mysql # DIV for integer division: 
query I rowsort label-5306
SELECT + col1 * 12 DIV - - col2 + col1 + - 23 FROM tab1
----
-17
-8
32

skipif mysql # not compatible
query I rowsort label-5306
SELECT + col1 * 12 / - - col2 + col1 + - 23 FROM tab1
----
-17
-8
32

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5307
SELECT DISTINCT COUNT( + + CAST( ( + col2 ) AS DECIMAL ) ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5307
SELECT DISTINCT COUNT ( + + CAST ( ( + col2 ) AS REAL ) ) AS col1 FROM tab0
----
3

query II rowsort
SELECT ALL - col2 + - 58 + + - col0 + + col1 * col1 * + + col0 AS col0, col1 FROM tab2
----
119519
51
336484
67
379294
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5309
SELECT ALL 44 * - + COUNT( * ) AS col1 FROM tab0
----
-132

skipif mysql # not compatible
query I rowsort label-5309
SELECT ALL 44 * - + COUNT ( * ) AS col1 FROM tab0
----
-132

query I rowsort
SELECT 49 FROM tab1 WHERE + + col1 IS NOT NULL
----
49
49
49

query I rowsort
SELECT + - col2 AS col0 FROM tab1 WHERE col1 NOT BETWEEN NULL AND + 32
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-5312
SELECT DISTINCT - 27 DIV - + 96 AS col1 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5312
SELECT DISTINCT - 27 / - + 96 AS col1 FROM tab1 cor0
----
0

query I rowsort
SELECT DISTINCT - ( - 3 ) * + col0 * + col2 FROM tab1 AS cor0
----
14688
15045
18564

query I rowsort
SELECT DISTINCT + ( - ( - col2 ) ) FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query II rowsort label-5315
SELECT ( - + COUNT( * ) ) AS col0, - COUNT( * ) AS col0 FROM tab0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-5315
SELECT ( - + COUNT ( * ) ) AS col0, - COUNT ( * ) AS col0 FROM tab0
----
-3
-3

query I rowsort
SELECT ALL + + 58 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5317
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE 37 IS NULL
----

skipif mysql # not compatible
query I rowsort label-5317
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE 37 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5318
SELECT ALL + ( + CAST( COUNT( * ) AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5318
SELECT ALL + ( + CAST ( COUNT ( * ) AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5319
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * CAST( - col1 AS SIGNED ) * - + 37 IN ( - col1 * col2 * 6, 55 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5319
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * CAST ( - col1 AS INTEGER ) * - + 37 IN ( - col1 * col2 * 6, 55 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 12 AS col2 FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
12
12
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5321
SELECT ALL - MIN( ALL + 92 ) AS col0 FROM tab1 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-5321
SELECT ALL - MIN ( ALL + 92 ) AS col0 FROM tab1 AS cor0
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-5322
SELECT + col1 DIV - ( + col1 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5322
SELECT + col1 / - ( + col1 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1
-1
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5323
SELECT 8 DIV - 80 * + COUNT( * ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5323
SELECT 8 / - 80 * + COUNT ( * ) FROM tab0 cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT ( NOT + 24 IS NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + 70 FROM tab1 AS cor0 WHERE NOT + col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5326
SELECT ALL + COUNT( * ) * 66 + + 94 AS col2 FROM tab0 cor0
----
292

skipif mysql # not compatible
query I rowsort label-5326
SELECT ALL + COUNT ( * ) * 66 + + 94 AS col2 FROM tab0 cor0
----
292

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5327
SELECT DISTINCT - + 43 * col2 * CAST( + ( + col2 ) AS SIGNED ) FROM tab2 AS cor0
----
-144652
-22747
-68800

skipif mysql # not compatible
query I rowsort label-5327
SELECT DISTINCT - + 43 * col2 * CAST ( + ( + col2 ) AS INTEGER ) FROM tab2 AS cor0
----
-144652
-22747
-68800

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5328
SELECT + 37 DIV - COUNT( * ) FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-5328
SELECT + 37 / - COUNT ( * ) FROM tab0 AS cor0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-5329
SELECT MIN( ALL + 36 ) FROM tab2 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-5329
SELECT MIN ( ALL + 36 ) FROM tab2 AS cor0
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-5330
SELECT DISTINCT col2 + + 36 DIV 36 DIV 7 AS col0 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-5330
SELECT DISTINCT col2 + + 36 / 36 / 7 AS col0 FROM tab2
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-5331
SELECT ALL - col2 DIV 83 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5331
SELECT ALL - col2 / 83 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5332
SELECT - + SUM( DISTINCT - col1 ) AS col0 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5332
SELECT - + SUM ( DISTINCT - col1 ) AS col0 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE - - col1 BETWEEN + - 49 * - 42 AND + col1
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + + 45 - - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - 93 AS col2 FROM tab2 cor0
----
-93
-93
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-5336
SELECT + MIN( DISTINCT - col1 ) * 55 AS col1 FROM tab1 AS cor0
----
-2585

skipif mysql # not compatible
query I rowsort label-5336
SELECT + MIN ( DISTINCT - col1 ) * 55 AS col1 FROM tab1 AS cor0
----
-2585

onlyif mysql # aggregate syntax: 
query I rowsort label-5337
SELECT - COUNT( * ) + + ( + + 48 ) FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-5337
SELECT - COUNT ( * ) + + ( + + 48 ) FROM tab0
----
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 + + 22 + - 70 * + col1 * - col0 AS col2, col0 * 22 col1 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5339
SELECT ALL CAST( NULL AS SIGNED ) * + + ( col1 ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5339
SELECT ALL CAST ( NULL AS INTEGER ) * + + ( col1 ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5340
SELECT ALL + MIN( + 13 ) * COUNT( * ) / + + 91 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 28 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5340
SELECT ALL + MIN ( + 13 ) * COUNT ( * ) / + + 91 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 28 < NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( 71 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5342
SELECT - - 84 * - 19 + + - MAX( ALL + 15 ) + COUNT( * ) FROM tab0 AS cor0
----
-1608

skipif mysql # not compatible
query I rowsort label-5342
SELECT - - 84 * - 19 + + - MAX ( ALL + 15 ) + COUNT ( * ) FROM tab0 AS cor0
----
-1608

onlyif mysql # DIV for integer division: 
query I rowsort label-5343
SELECT + col1 + + - 88 DIV ( col0 ) + - + col0 + + - col2 FROM tab2 AS cor0
----
-19
-28
-67

skipif mysql # not compatible
query I rowsort label-5343
SELECT + col1 + + - 88 / ( col0 ) + - + col0 + + - col2 FROM tab2 AS cor0
----
-19
-28
-67

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 29 * 25 <= - col0 / 29 + - + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5345
SELECT ALL - 0 - + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5345
SELECT ALL - 0 - + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 AS col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN 65 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5347
SELECT ALL - 91 - + CAST( - + col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-44
-81
8

skipif mysql # not compatible
query I rowsort label-5347
SELECT ALL - 91 - + CAST ( - + col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-44
-81
8

query II rowsort
SELECT col1 * + - 62, + col1 AS col1 FROM tab0
----
-1302
21
-5022
81
-62
1

query I rowsort
SELECT ALL 67 - - 51 FROM tab0
----
118
118
118

onlyif mysql # aggregate syntax: 
query I rowsort label-5350
SELECT DISTINCT - SUM( ALL + 26 ) * - 66 FROM tab2 WHERE col0 IS NOT NULL
----
5148

skipif mysql # not compatible
query I rowsort label-5350
SELECT DISTINCT - SUM ( ALL + 26 ) * - 66 FROM tab2 WHERE col0 IS NOT NULL
----
5148

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5351
SELECT ALL col2 * + + CAST( NULL AS SIGNED ) / - col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5351
SELECT ALL col2 * + + CAST ( NULL AS INTEGER ) / - col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + - 75 FROM tab0 WHERE NULL IS NULL
----
-75
-75
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5353
SELECT ALL ( - COUNT( DISTINCT col1 ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5353
SELECT ALL ( - COUNT ( DISTINCT col1 ) ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5354
SELECT ALL - - MAX( ALL + ( ( - col2 ) ) ) AS col0 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-5354
SELECT ALL - - MAX ( ALL + ( ( - col2 ) ) ) AS col0 FROM tab2 AS cor0
----
-23

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - col1 - + col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5356
SELECT ALL + SUM( - 40 ) * + 60 FROM tab2 AS cor0
----
-7200

skipif mysql # not compatible
query I rowsort label-5356
SELECT ALL + SUM ( - 40 ) * + 60 FROM tab2 AS cor0
----
-7200

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 89 + + col1 * - col2 > NULL
----

query I rowsort
SELECT DISTINCT + - 44 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-44

query II rowsort
SELECT + col0 AS col1, col0 * 98 * + 58 AS col1 FROM tab0
----
15
85260
87
494508
97
551348

onlyif mysql # aggregate syntax: 
query I rowsort label-5360
SELECT MAX( 95 ) FROM tab1 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-5360
SELECT MAX ( 95 ) FROM tab1 AS cor0
----
95

query I rowsort
SELECT ALL + - col1 * + + col1 FROM tab2 AS cor0
----
-2601
-4489
-5929

query I rowsort
SELECT DISTINCT 33 * + 20 AS col1 FROM tab1 AS cor0
----
660

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - ( + col1 ) >= - 18
----
91
47
68

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - col1 AND + col0 + + - col2 / col2
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 + + - ( - col2 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5366
SELECT ALL CAST( + col2 AS SIGNED ) AS col1 FROM tab0 cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-5366
SELECT ALL CAST ( + col2 AS INTEGER ) AS col1 FROM tab0 cor0
----
10
47
99

query I rowsort
SELECT ALL ( + 4 ) FROM tab2 AS cor0
----
4
4
4

query I rowsort
SELECT - ( + - col2 ) * + 32 FROM tab0
----
1504
3168
320

query I rowsort
SELECT ALL 26 + - + ( + 30 ) FROM tab0
----
-4
-4
-4

query II rowsort
SELECT - 99, col2 FROM tab2 WHERE + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5371
SELECT - SUM( ALL + - ( + 39 ) ) * - 65 + COUNT( * ) AS col0 FROM tab1
----
-7602

skipif mysql # not compatible
query I rowsort label-5371
SELECT - SUM ( ALL + - ( + 39 ) ) * - 65 + COUNT ( * ) AS col0 FROM tab1
----
-7602

query I rowsort
SELECT ALL col0 + + - col2 + + 45 FROM tab1
----
0
68
71

query I rowsort
SELECT ALL col0 * - col0 + - 72 AS col1 FROM tab2 cor0
----
-2188
-4168
-5697

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL > col0 - + + col0
----

query I rowsort
SELECT ALL + col0 + 36 FROM tab2 AS cor0
----
100
111
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5376
SELECT ALL COUNT( * ) + + 7 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NOT NULL
----
16

skipif mysql # not compatible
query I rowsort label-5376
SELECT ALL COUNT ( * ) + + 7 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NOT NULL
----
16

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5377
SELECT CAST( - + col1 AS SIGNED ) DIV + col1, col2 FROM tab0
----
-1
10
-1
47
-1
99

skipif mysql # not compatible
query II rowsort label-5377
SELECT CAST ( - + col1 AS INTEGER ) / + col1, col2 FROM tab0
----
-1
10
-1
47
-1
99

query I rowsort
SELECT DISTINCT - 82 + - col2 FROM tab1 cor0
----
-141
-150
-178

onlyif mysql # aggregate syntax: 
query I rowsort label-5379
SELECT SUM( ALL - col1 ) + + 42 AS col0 FROM tab1 cor0
----
-24

skipif mysql # not compatible
query I rowsort label-5379
SELECT SUM ( ALL - col1 ) + + 42 AS col0 FROM tab1 cor0
----
-24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 16 col2 FROM tab2 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 94 * - + ( - 7 ) col2 FROM tab0
----
658

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5382
SELECT + - MAX( col0 ) DIV ( - - 99 ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5382
SELECT + - MAX ( col0 ) / ( - - 99 ) AS col2 FROM tab0 AS cor0
----
0

query II rowsort
SELECT 59 AS col0, + col1 * col1 FROM tab1 AS cor0
----
59
196
59
2209
59
25

onlyif mysql # DIV for integer division: 
query II rowsort label-5384
SELECT DISTINCT 62 AS col2, - 37 DIV - + 65 + 25 AS col1 FROM tab2 AS cor0
----
62
25

skipif mysql # not compatible
query II rowsort label-5384
SELECT DISTINCT 62 AS col2, - 37 / - + 65 + 25 AS col1 FROM tab2 AS cor0
----
62
25

query II rowsort
SELECT - col0, col0 AS col2 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * 55 * - col2 * - col2 col1 FROM tab0
----
-115500
-539055
-9841095

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 * - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( + col1 ) * - col1 AS col0 FROM tab0 AS cor0
----
-1
-441
-6561

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5389
SELECT - - col2 + - CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5389
SELECT - - col2 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5390
SELECT + + COUNT( * ) + + COUNT( ( - - 27 ) ) * - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5390
SELECT + + COUNT ( * ) + + COUNT ( ( - - 27 ) ) * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + col0 + 80 AS col2 FROM tab2
----
126
144
155

query III rowsort
SELECT ALL * FROM tab1 WHERE + 58 + - + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5393
SELECT CAST( + ( - COUNT( * ) ) AS SIGNED ) col2 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5393
SELECT CAST ( + ( - COUNT ( * ) ) AS INTEGER ) col2 FROM tab0
----
-3

query I rowsort
SELECT ALL 67 + 47 AS col1 FROM tab2 AS cor0
----
114
114
114

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 52 ) * - col1 col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 34 < - - ( - 9 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5397
SELECT ALL + MAX( DISTINCT + 20 ) AS col0 FROM tab2
----
20

skipif mysql # not compatible
query I rowsort label-5397
SELECT ALL + MAX ( DISTINCT + 20 ) AS col0 FROM tab2
----
20

query I rowsort
SELECT DISTINCT col1 * col2 * + + col2 AS col0 FROM tab2
----
123200
225388
26979

query I rowsort
SELECT DISTINCT ( col2 ) + 91 AS col0 FROM tab0 AS cor0
----
101
138
190

query I rowsort
SELECT ALL - 25 + - + 68 FROM tab2 AS cor0
----
-93
-93
-93

query I rowsort
SELECT ALL - ( - 25 ) - 83 FROM tab1 AS cor0
----
-58
-58
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-5402
SELECT DISTINCT 7 DIV 44 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5402
SELECT DISTINCT 7 / 44 AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5403
SELECT - COUNT( * ) * - + 98 FROM tab1
----
294

skipif mysql # not compatible
query I rowsort label-5403
SELECT - COUNT ( * ) * - + 98 FROM tab1
----
294

onlyif mysql # aggregate syntax: 
query I rowsort label-5404
SELECT + MIN( ALL ( - + 68 ) ) AS col2 FROM tab2, tab2 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-5404
SELECT + MIN ( ALL ( - + 68 ) ) AS col2 FROM tab2, tab2 AS cor0
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5405
SELECT ALL - CAST( NULL AS SIGNED ) * - + 62 * - + col1 AS col0, 96 AS col0 FROM tab0
----
NULL
96
NULL
96
NULL
96

skipif mysql # not compatible
query II rowsort label-5405
SELECT ALL - CAST ( NULL AS INTEGER ) * - + 62 * - + col1 AS col0, 96 AS col0 FROM tab0
----
NULL
96
NULL
96
NULL
96

query II rowsort
SELECT ALL + 33 AS col0, - 74 FROM tab2
----
33
-74
33
-74
33
-74

query II rowsort
SELECT + 23, - col1 AS col1 FROM tab0 WHERE NOT + 6 <= - - col1
----
23
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5408
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE + col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-5408
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE + col1 IS NULL
----

query I rowsort
SELECT DISTINCT - + col0 * + - col0 AS col1 FROM tab2 AS cor0
----
2116
4096
5625

query I rowsort
SELECT ALL + 37 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

query I rowsort
SELECT ALL - col0 + - col2 * - col2 AS col1 FROM tab0 AS cor0
----
13
2194
9704

query I rowsort
SELECT col2 * 41 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT ALL + col2 + - 89 FROM tab1 AS cor0
----
-21
-30
7

query II rowsort
SELECT ALL + 28 + + - 57 - + 54 AS col1, col2 AS col0 FROM tab0
----
-83
10
-83
47
-83
99

onlyif mysql # DIV for integer division: 
query I rowsort label-5415
SELECT - ( + col1 ) DIV + col1 + - + col0 + col1 AS col1 FROM tab2
----
-9
12
4

skipif mysql # not compatible
query I rowsort label-5415
SELECT - ( + col1 ) / + col1 + - + col0 + col1 AS col1 FROM tab2
----
-9
12
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5416
SELECT ALL COUNT( ALL - + 88 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5416
SELECT ALL COUNT ( ALL - + 88 ) FROM tab0
----
3

query I rowsort
SELECT - col2 FROM tab0 WHERE ( col1 ) = - col0 / + - col0
----
-99

query I rowsort
SELECT + ( 81 ) + - 41 FROM tab1
----
40
40
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5419
SELECT DISTINCT COUNT( ALL - CAST( NULL AS SIGNED ) ) + + COUNT( * ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5419
SELECT DISTINCT COUNT ( ALL - CAST ( NULL AS INTEGER ) ) + + COUNT ( * ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5420
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 * CAST( col0 AS SIGNED ) <> - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5420
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 * CAST ( col0 AS INTEGER ) <> - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col1 - + + 16 AS col2 FROM tab1 AS cor0
----
-11
-2
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5422
SELECT DISTINCT - SUM( col1 ) col0 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5422
SELECT DISTINCT - SUM ( col1 ) col0 FROM tab0 AS cor0
----
-103

query I rowsort
SELECT ALL col0 * - + col0 - + col2 FROM tab0
----
-272
-7579
-9508

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT 76 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( NULL NOT BETWEEN col2 AND - + col2 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 65 <> - + col2 * - col1 * - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5427
SELECT col2 - - CAST( - - 61 AS SIGNED ) FROM tab2
----
101
119
84

skipif mysql # not compatible
query I rowsort label-5427
SELECT col2 - - CAST ( - - 61 AS INTEGER ) FROM tab2
----
101
119
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5428
SELECT DISTINCT COUNT( + 83 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5428
SELECT DISTINCT COUNT ( + 83 ) AS col1 FROM tab2
----
3

query I rowsort
SELECT + - 19 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4

query I rowsort
SELECT - 92 + 98 AS col0 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
6
6
6

onlyif mysql # DIV for integer division: 
query I rowsort label-5431
SELECT ALL - - 21 DIV - - 13 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5431
SELECT ALL - - 21 / - - 13 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5432
SELECT ALL - COUNT( + ( - - 86 ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5432
SELECT ALL - COUNT ( + ( - - 86 ) ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL + - col1 AS col0 FROM tab0 AS cor0 WHERE NOT col1 * - 12 * - + col1 >= - - col0 * + col2
----
-1

query I rowsort
SELECT + + 84 * - 21 FROM tab0 cor0
----
-1764
-1764
-1764

onlyif mysql # aggregate syntax: 
query I rowsort label-5435
SELECT ALL + MAX( - col1 ) AS col1 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-5435
SELECT ALL + MAX ( - col1 ) AS col1 FROM tab2 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-5436
SELECT ALL COUNT( * ) AS col1, COUNT( * ) col2 FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5436
SELECT ALL COUNT ( * ) AS col1, COUNT ( * ) col2 FROM tab2 AS cor0
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5437
SELECT DISTINCT + - CAST( + col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-5437
SELECT DISTINCT + - CAST ( + col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5438
SELECT CAST( 50 AS SIGNED ) AS col2 FROM tab2
----
50
50
50

skipif mysql # not compatible
query I rowsort label-5438
SELECT CAST ( 50 AS INTEGER ) AS col2 FROM tab2
----
50
50
50

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col2 + - col0 - - - col0 * col0 <= + 92
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5440
SELECT + 4 * + COUNT( * ) FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-5440
SELECT + 4 * + COUNT ( * ) FROM tab0
----
12

query II rowsort
SELECT ( 26 ), + col2 FROM tab0
----
26
10
26
47
26
99

query I rowsort
SELECT ALL 58 * col0 AS col1 FROM tab2
----
2668
3712
4350

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE NOT - 80 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5444
SELECT - COUNT( * ) * + + MAX( DISTINCT + 47 ) FROM tab1 AS cor0 WHERE NOT 70 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5444
SELECT - COUNT ( * ) * + + MAX ( DISTINCT + 47 ) FROM tab1 AS cor0 WHERE NOT 70 IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 / + col0 * - col1 + + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5446
SELECT ALL ( COUNT( * ) ) * + + 56 + + MIN( - col2 ) AS col2 FROM tab2
----
110

skipif mysql # not compatible
query I rowsort label-5446
SELECT ALL ( COUNT ( * ) ) * + + 56 + + MIN ( - col2 ) AS col2 FROM tab2
----
110

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5447
SELECT CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) * - - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5447
SELECT CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) * - - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * + + col2 + + + ( + col2 ) FROM tab2 AS cor0
----
1640
3422
552

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + + 28 ) col2 FROM tab0 AS cor0
----
28
28
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 29 col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT + col1 AS col0, + col2 * - col2 AS col0 FROM tab1
----
14
-9216
47
-4624
5
-3481

query I rowsort
SELECT ALL col1 * - 15 AS col0 FROM tab2
----
-1005
-1155
-765

query I rowsort
SELECT DISTINCT 58 * + col0 + + - col0 FROM tab1
----
2907
4845
5187

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - col2 - + - col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5455
SELECT ALL - + COUNT( * ) FROM tab1 WHERE NOT ( - col2 * + + col1 BETWEEN + col2 + 9 + + col1 AND + col0 )
----
-3

skipif mysql # not compatible
query I rowsort label-5455
SELECT ALL - + COUNT ( * ) FROM tab1 WHERE NOT ( - col2 * + + col1 BETWEEN + col2 + 9 + + col1 AND + col0 )
----
-3

query I rowsort
SELECT + col1 - - col2 AS col1 FROM tab1 WHERE ( NULL IS NULL )
----
110
115
64

query I rowsort
SELECT ALL 43 * - + col1 AS col1 FROM tab0
----
-3483
-43
-903

query I rowsort
SELECT ALL + + col2 + - col0 * - 46 FROM tab1 AS cor0
----
2442
3969
4254

query I rowsort
SELECT ALL - col0 + + - col1 * - + col2 AS col0 FROM tab0 AS cor0
----
123
2
3792

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE + 33 IS NULL
----

query I rowsort
SELECT + col2 + - col2 * - 2 FROM tab2
----
120
174
69

query I rowsort
SELECT + col2 * - ( + 90 ) * + 4 FROM tab2 AS cor0
----
-14400
-20880
-8280

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( 70 ) col1 FROM tab2 AS cor0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-5464
SELECT - COUNT( * ) * - 0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5464
SELECT - COUNT ( * ) * - 0 FROM tab2 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) <> + col0 + + 68
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5466
SELECT - MIN( ( ( + 32 ) ) ) FROM tab0 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-5466
SELECT - MIN ( ( ( + 32 ) ) ) FROM tab0 AS cor0
----
-32

query II rowsort
SELECT - 84 AS col2, + 99 AS col0 FROM tab0 AS cor0 WHERE NOT - 71 > NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NOT ( ( NULL < NULL ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5469
SELECT 41 * + - ( + MIN( DISTINCT - 19 ) ) FROM tab1
----
779

skipif mysql # not compatible
query I rowsort label-5469
SELECT 41 * + - ( + MIN ( DISTINCT - 19 ) ) FROM tab1
----
779

query I rowsort
SELECT ALL col0 FROM tab1 WHERE NULL <= - + col0 * + 72
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5471
SELECT ALL col1 DIV col0 * - - 21 * - CAST( + 35 AS SIGNED ) AS col1 FROM tab0
----
-3675
0
0

skipif mysql # not compatible
query I rowsort label-5471
SELECT ALL col1 / col0 * - - 21 * - CAST ( + 35 AS INTEGER ) AS col1 FROM tab0
----
-3675
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 56 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5473
SELECT ALL + 72 DIV + - col2 FROM tab2
----
-1
-1
-3

skipif mysql # not compatible
query I rowsort label-5473
SELECT ALL + 72 / + - col2 FROM tab2
----
-1
-1
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5474
SELECT ALL * FROM tab0 AS cor0 WHERE + CAST( NULL AS SIGNED ) + + + col0 + - - col1 NOT BETWEEN 30 AND NULL
----

skipif mysql # not compatible
query III rowsort label-5474
SELECT ALL * FROM tab0 AS cor0 WHERE + CAST ( NULL AS INTEGER ) + + + col0 + - - col1 NOT BETWEEN 30 AND NULL
----

query I rowsort
SELECT ALL col0 * - col2 * + - col1 AS col1 FROM tab0 cor0
----
18270
57105
9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5476
SELECT + ( + CAST( NULL AS SIGNED ) ) * + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5476
SELECT + ( + CAST ( NULL AS INTEGER ) ) * + col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + 59 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 80 * col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + 35 - - - 43 FROM tab0 AS cor0
----
-8
-8
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5480
SELECT DISTINCT col1 col2 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5480
SELECT DISTINCT col1 col2 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE 17 < NULL
----

query I rowsort
SELECT ALL - 84 * 37 FROM tab1 AS cor0
----
-3108
-3108
-3108

query II rowsort
SELECT DISTINCT col1, ( - 10 ) FROM tab1
----
14
-10
47
-10
5
-10

query I rowsort
SELECT 32 + - col0 AS col1 FROM tab0
----
-55
-65
17

onlyif mysql # aggregate syntax: 
query I rowsort label-5485
SELECT COUNT( * ) * + ( + + COUNT( * ) ) * + COUNT( * ) + + - 27 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5485
SELECT COUNT ( * ) * + ( + + COUNT ( * ) ) * + COUNT ( * ) + + - 27 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5486
SELECT DISTINCT COUNT( * ), COUNT( * ) AS col2 FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-5486
SELECT DISTINCT COUNT ( * ), COUNT ( * ) AS col2 FROM tab2
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5487
SELECT ALL + - COUNT( * ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5487
SELECT ALL + - COUNT ( * ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-3

query I rowsort
SELECT col1 + 52 * + col1 FROM tab0
----
1113
4293
53

onlyif mysql # DIV for integer division: 
query I rowsort label-5489
SELECT - col1 * + - 89 + - col2 DIV - + col1 AS col1 FROM tab1
----
1252
4184
456

skipif mysql # not compatible
query I rowsort label-5489
SELECT - col1 * + - 89 + - col2 / - + col1 AS col1 FROM tab1
----
1252
4184
456

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT col1 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 cor0 WHERE - 99 > - - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5492
SELECT * FROM tab2 AS cor0 WHERE NULL >= - ( - col1 ) + 53 + CAST( - col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5492
SELECT * FROM tab2 AS cor0 WHERE NULL >= - ( - col1 ) + 53 + CAST ( - col0 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5493
SELECT ALL MIN( DISTINCT 1 ) * + SUM( DISTINCT + 4 ) AS col1 FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-5493
SELECT ALL MIN ( DISTINCT 1 ) * + SUM ( DISTINCT + 4 ) AS col1 FROM tab0
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-5494
SELECT ALL - + COUNT( * ) AS col0, + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-5494
SELECT ALL - + COUNT ( * ) AS col0, + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-3
3

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE NOT ( col2 + + - col2 * col1 ) <> NULL
----

query I rowsort
SELECT ALL 36 AS col0 FROM tab1 AS cor0 WHERE - 31 + col1 + - col2 / + col0 >= + col2
----

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE NOT NULL >= - 62 * + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5498
SELECT DISTINCT - 80 * + - COUNT( * ) * 42 + COUNT( * ) AS col2 FROM tab1 AS cor0
----
10083

skipif mysql # not compatible
query I rowsort label-5498
SELECT DISTINCT - 80 * + - COUNT ( * ) * 42 + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
10083

onlyif mysql # DIV for integer division: 
query I rowsort label-5499
SELECT - + ( 38 ) DIV - + col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5499
SELECT - + ( 38 ) / - + col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5500
SELECT ( + - COUNT( col2 ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5500
SELECT ( + - COUNT ( col2 ) ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5501
SELECT DISTINCT + COUNT( * ) * + 60 AS col0 FROM tab1 AS cor0
----
180

skipif mysql # not compatible
query I rowsort label-5501
SELECT DISTINCT + COUNT ( * ) * + 60 AS col0 FROM tab1 AS cor0
----
180

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5502
SELECT - - 40 DIV - - MIN( + 87 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5502
SELECT - - 40 / - - MIN ( + 87 ) FROM tab0 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL > 94
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5504
SELECT + - 11 DIV + + col1 + col1 col1 FROM tab0 cor0
----
-10
21
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5504
SELECT + - 11 / + + col1 + col1 col1 FROM tab0 cor0
----
-10
21
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5505
SELECT DISTINCT COUNT( * ) * COUNT( * ) AS col2, 77 DIV - 12 FROM tab0
----
9
-6

skipif mysql # not compatible
query II rowsort label-5505
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) AS col2, 77 / - 12 FROM tab0
----
9
-6

query I rowsort
SELECT DISTINCT col1 * + 88 AS col0 FROM tab2
----
4488
5896
6776

query I rowsort
SELECT DISTINCT + + 65 AS col2 FROM tab0 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5508
SELECT DISTINCT - COUNT( * ) * - + ( - 57 ) * - COUNT( * ) AS col2 FROM tab2
----
513

skipif mysql # not compatible
query I rowsort label-5508
SELECT DISTINCT - COUNT ( * ) * - + ( - 57 ) * - COUNT ( * ) AS col2 FROM tab2
----
513

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + 26 col2 FROM tab2 AS cor0
----
1326
1742
2002

onlyif mysql # DIV for integer division: 
query I rowsort label-5510
SELECT - + 66 DIV col2 AS col0 FROM tab0 AS cor0
----
-1
-6
0

skipif mysql # not compatible
query I rowsort label-5510
SELECT - + 66 / col2 AS col0 FROM tab0 AS cor0
----
-1
-6
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5511
SELECT + 22 DIV - COUNT( * ) + + - 16 AS col2 FROM tab0 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-5511
SELECT + 22 / - COUNT ( * ) + + - 16 AS col2 FROM tab0 AS cor0
----
-23

query I rowsort
SELECT DISTINCT - 75 + 64 AS col0 FROM tab2 AS cor0
----
-11

query I rowsort
SELECT DISTINCT + col1 * col2 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL 22 + col0 AS col0 FROM tab2 AS cor0
----
68
86
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5515
SELECT ALL - 52 AS col0, - CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
-52
NULL
-52
NULL
-52
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5515
SELECT ALL - 52 AS col0, - CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
-52
NULL
-52
NULL
-52
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5516
SELECT + - CAST( NULL AS SIGNED ) + - + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5516
SELECT + - CAST ( NULL AS INTEGER ) + - + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5517
SELECT - col2 + - col0 DIV + col2 FROM tab0 cor0 WHERE 43 * + col0 <> - + 47
----
-18
-47
-99

skipif mysql # not compatible
query I rowsort label-5517
SELECT - col2 + - col0 / + col2 FROM tab0 cor0 WHERE 43 * + col0 <> - + 47
----
-18
-47
-99

query I rowsort
SELECT + - ( + - col1 ) FROM tab2 AS cor0
----
51
67
77

query II rowsort
SELECT col1 AS col2, 18 FROM tab0 AS cor0
----
1
18
21
18
81
18

query I rowsort
SELECT DISTINCT - 5 - + col1 - - 70 FROM tab2
----
-12
-2
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 16 ) col1 FROM tab1
----
16

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 48 <> col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5523
SELECT 92 * + col2 - - - 68 + CAST( - + col2 AS SIGNED ) AS col1 FROM tab0
----
4209
842
8941

skipif mysql # not compatible
query I rowsort label-5523
SELECT 92 * + col2 - - - 68 + CAST ( - + col2 AS INTEGER ) AS col1 FROM tab0
----
4209
842
8941

onlyif mysql # aggregate syntax: 
query I rowsort label-5524
SELECT ALL - SUM( DISTINCT - col0 ) AS col0 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-5524
SELECT ALL - SUM ( DISTINCT - col0 ) AS col0 FROM tab2
----
185

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + - col2 = + 90 AND NOT NULL NOT BETWEEN + col2 AND - ( + 32 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 61 + + col0 col0 FROM tab0 AS cor0
----
148
158
76

query I rowsort
SELECT DISTINCT - - 54 FROM tab2 cor0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5528
SELECT ALL - ( COUNT( * ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5528
SELECT ALL - ( COUNT ( * ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-9

query I rowsort
SELECT ALL - 12 * + col0 FROM tab1 cor0
----
-1020
-1092
-612

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 * col2 IS NOT NULL
----

query I rowsort
SELECT + + AVG ( DISTINCT + col0 ) FROM tab1 AS cor0 WHERE NOT + col1 IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL + 66, col2 AS col1, + col0 col2 FROM tab1
----
9 values hashing to 5ab5685aa398b0d6f6fbb151040227c9

query I rowsort
SELECT DISTINCT 74 * 56 * col2 FROM tab1
----
244496
281792
397824

onlyif mysql # aggregate syntax: 
query I rowsort label-5534
SELECT ALL MIN( DISTINCT - 99 ) FROM tab1
----
-99

skipif mysql # not compatible
query I rowsort label-5534
SELECT ALL MIN ( DISTINCT - 99 ) FROM tab1
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5535
SELECT - ( - + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5535
SELECT - ( - + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 + + 98 - + col1 FROM tab0
----
-64
56
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5537
SELECT ALL + MAX( + col0 ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-5537
SELECT ALL + MAX ( + col0 ) FROM tab1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5538
SELECT ALL - COUNT( - col0 ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5538
SELECT ALL - COUNT ( - col0 ) AS col2 FROM tab0
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 29 * + col0 > + + col0 * - + col0 * + 20
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL 98 AS col1, + ( + col0 ) FROM tab1 AS cor0
----
98
51
98
85
98
91

onlyif mysql # DIV for integer division: 
query I rowsort label-5541
SELECT + col2 DIV 31 FROM tab1
----
1
2
3

skipif mysql # not compatible
query I rowsort label-5541
SELECT + col2 / 31 FROM tab1
----
1
2
3

query I rowsort
SELECT DISTINCT + 90 * col1 FROM tab1 WHERE NOT - 79 * col2 <= - + 86 + - 36 * - col2 - + col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5543
SELECT DISTINCT - ( - 53 ) + - COUNT( * ) + - COUNT( * ) * + COUNT( * ), - MIN( ALL - - 92 ) + 71 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-37
-21

skipif mysql # not compatible
query II rowsort label-5543
SELECT DISTINCT - ( - 53 ) + - COUNT ( * ) + - COUNT ( * ) * + COUNT ( * ), - MIN ( ALL - - 92 ) + 71 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-37
-21

query I rowsort
SELECT DISTINCT col1 + - + 23 + col2 * - - ( + col2 ) FROM tab2
----
1654
3408
557

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 * col2 / + 27 < NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( + ( col0 ), + 94 / + col2, + - col1, + - ( + - col2 ) * + + 92 / - - col0 + col2, + col2 )
----

query II rowsort
SELECT + col0 - - col2 * - col2, - col1 AS col0 FROM tab2 AS cor0
----
-1536
-77
-3289
-67
-483
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5548
SELECT DISTINCT - ( + - col1 ) + + ( CAST( - 74 AS SIGNED ) ) FROM tab0 AS cor0
----
-53
-73
7

skipif mysql # not compatible
query I rowsort label-5548
SELECT DISTINCT - ( + - col1 ) + + ( CAST ( - 74 AS INTEGER ) ) FROM tab0 AS cor0
----
-53
-73
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 65 col0 FROM tab1 AS cor0
----
65

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND + col1 / col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5551
SELECT ALL * FROM tab2 AS cor0 WHERE NULL IS NOT NULL AND NOT - ( - col2 ) = + + CAST( + - col1 AS SIGNED ) * CAST( NULL AS SIGNED ) / col2
----

skipif mysql # not compatible
query III rowsort label-5551
SELECT ALL * FROM tab2 AS cor0 WHERE NULL IS NOT NULL AND NOT - ( - col2 ) = + + CAST ( + - col1 AS INTEGER ) * CAST ( NULL AS INTEGER ) / col2
----

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE col0 * col1 IS NULL
----

query I rowsort
SELECT - + col2 * + + col2 + + - col1 * col2 + col0 + ( - 99 ) AS col1 FROM tab0 cor0
----
-322
-6100
-9902

onlyif mysql # aggregate syntax: 
query I rowsort label-5554
SELECT DISTINCT + COUNT( * ) - + + 46 FROM tab0
----
-43

skipif mysql # not compatible
query I rowsort label-5554
SELECT DISTINCT + COUNT ( * ) - + + 46 FROM tab0
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5555
SELECT DISTINCT - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5555
SELECT DISTINCT - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT ALL + col1 - ( col1 ) AS col1 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE - + col2 = + col1
----

query I rowsort
SELECT - + col2 * + + col2 FROM tab0 AS cor0
----
-100
-2209
-9801

query I rowsort
SELECT - 32 AS col0 FROM tab2 cor0 WHERE NOT - col1 / - col0 IS NULL
----
-32
-32
-32

query I rowsort
SELECT DISTINCT - 65 AS col1 FROM tab0 cor0
----
-65

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( 63 / - ( - col2 ) )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col0 ) < ( - 49 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5563
SELECT DISTINCT - COUNT( * ) + + ( 24 ) FROM tab0 WHERE CAST( NULL AS SIGNED ) = ( col2 )
----
24

skipif mysql # not compatible
query I rowsort label-5563
SELECT DISTINCT - COUNT ( * ) + + ( 24 ) FROM tab0 WHERE CAST ( NULL AS INTEGER ) = ( col2 )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5564
SELECT DISTINCT - 98 + + COUNT( * ) AS col0 FROM tab2
----
-95

skipif mysql # not compatible
query I rowsort label-5564
SELECT DISTINCT - 98 + + COUNT ( * ) AS col0 FROM tab2
----
-95

query I rowsort
SELECT 70 FROM tab1 WHERE NULL NOT BETWEEN - 29 AND col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5566
SELECT col2 + - 57 DIV 11 FROM tab0
----
42
5
94

skipif mysql # not compatible
query I rowsort label-5566
SELECT col2 + - 57 / 11 FROM tab0
----
42
5
94

query I rowsort
SELECT col0 / + col1 AS col1 FROM tab2 WHERE NOT - col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + 13 IS NULL
----

query I rowsort
SELECT + col1 FROM tab1 WHERE col0 + 41 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 81 * + 58 col0 FROM tab2 WHERE NOT ( + col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5571
SELECT + 71 * - 92 + + COUNT( * ) AS col2 FROM tab0
----
-6529

skipif mysql # not compatible
query I rowsort label-5571
SELECT + 71 * - 92 + + COUNT ( * ) AS col2 FROM tab0
----
-6529

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE NOT ( - col0 ) IS NULL
----
-23
-40
-58

query I rowsort
SELECT + ( col1 ) * + col1 + - col2 FROM tab2
----
2578
4431
5889

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) BETWEEN NULL AND - col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5575
SELECT DISTINCT - 72 + - SUM( ALL col2 + 61 DIV 11 ) col2 FROM tab0
----
-243

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5575
SELECT DISTINCT - 72 + - SUM ( ALL col2 + 61 / 11 ) col2 FROM tab0
----
-243

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab0 WHERE NULL BETWEEN - col1 AND ( + 71 + - 45 )
----

query I rowsort
SELECT ALL + 36 - + col0 FROM tab0
----
-51
-61
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5578
SELECT SUM( - 43 ) * - COUNT( * ) FROM tab0
----
387

skipif mysql # not compatible
query I rowsort label-5578
SELECT SUM ( - 43 ) * - COUNT ( * ) FROM tab0
----
387

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col1 ) < col1
----

query I rowsort
SELECT ALL - col1 - + 37 FROM tab1
----
-42
-51
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5581
SELECT DISTINCT COUNT( ALL col1 ) FROM tab1 WHERE NULL <> col2 * - ( 8 )
----
0

skipif mysql # not compatible
query I rowsort label-5581
SELECT DISTINCT COUNT ( ALL col1 ) FROM tab1 WHERE NULL <> col2 * - ( 8 )
----
0

query I rowsort
SELECT - col0 AS col0 FROM tab2 WHERE NOT NULL <= - col2
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 48 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5584
SELECT - CAST( - 54 AS SIGNED ) * col2 + ( - col0 ) AS col0 FROM tab0
----
2523
453
5249

skipif mysql # not compatible
query I rowsort label-5584
SELECT - CAST ( - 54 AS INTEGER ) * col2 + ( - col0 ) AS col0 FROM tab0
----
2523
453
5249

query I rowsort
SELECT DISTINCT - 92 * 17 FROM tab1
----
-1564

onlyif mysql # DIV for integer division: 
query I rowsort label-5586
SELECT ALL - ( col0 ) * - col0 + - col0 DIV col1 FROM tab1 AS cor0
----
2598
7208
8280

skipif mysql # not compatible
query I rowsort label-5586
SELECT ALL - ( col0 ) * - col0 + - col0 / col1 FROM tab1 AS cor0
----
2598
7208
8280

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 72 col1 FROM tab0 AS cor0 WHERE NULL BETWEEN - 14 - col2 AND col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL BETWEEN NULL AND 63
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5589
SELECT DISTINCT - COUNT( * ) FROM tab1 cor0 CROSS JOIN tab2
----
-9

skipif mysql # not compatible
query I rowsort label-5589
SELECT DISTINCT - COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab2
----
-9

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN - 97 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + 59 col0 FROM tab1
----
106
64
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5592
SELECT ALL COUNT( * ) * + 97 col0 FROM tab1
----
291

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5592
SELECT ALL COUNT ( * ) * + 97 col0 FROM tab1
----
291

onlyif mysql # DIV for integer division: 
query I rowsort label-5593
SELECT 4 + col0 DIV - col0 FROM tab1
----
3
3
3

skipif mysql # not compatible
query I rowsort label-5593
SELECT 4 + col0 / - col0 FROM tab1
----
3
3
3

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col2 <> ( NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 96 / + 40 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5596
SELECT + SUM( + 28 ) FROM tab2 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-5596
SELECT + SUM ( + 28 ) FROM tab2 AS cor0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5597
SELECT SUM( col1 ) col2 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5597
SELECT SUM ( col1 ) col2 FROM tab1 AS cor0
----
66

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 14 / - col0 + + col1 NOT IN ( 81 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( col2 + - 77 ) > - 14
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5600
SELECT + CAST( 40 AS SIGNED ) AS col1 FROM tab2 cor0
----
40
40
40

skipif mysql # not compatible
query I rowsort label-5600
SELECT + CAST ( 40 AS INTEGER ) AS col1 FROM tab2 cor0
----
40
40
40

onlyif mysql # DIV for integer division: 
query I rowsort label-5601
SELECT ALL col1 DIV col0 - col1 FROM tab2 AS cor0
----
-50
-67
-76

skipif mysql # not compatible
query I rowsort label-5601
SELECT ALL col1 / col0 - col1 FROM tab2 AS cor0
----
-50
-67
-76

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 50 = ( 68 * 95 )
----

query I rowsort
SELECT ALL - - col2 * 42 - + col0 FROM tab2 AS cor0
----
1616
2361
920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5604
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab1 WHERE col0 NOT BETWEEN col1 AND - 88
----
NULL

skipif mysql # not compatible
query I rowsort label-5604
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab1 WHERE col0 NOT BETWEEN col1 AND - 88
----
NULL

query I rowsort
SELECT ALL 59 AS col2 FROM tab0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5606
SELECT DISTINCT - COUNT( * ) * + + MAX( + col1 ) FROM tab0
----
-243

skipif mysql # not compatible
query I rowsort label-5606
SELECT DISTINCT - COUNT ( * ) * + + MAX ( + col1 ) FROM tab0
----
-243

onlyif mysql # aggregate syntax: 
query I rowsort label-5607
SELECT ALL + MAX( DISTINCT - 40 ) AS col2 FROM tab2 WHERE NOT ( 40 ) < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5607
SELECT ALL + MAX ( DISTINCT - 40 ) AS col2 FROM tab2 WHERE NOT ( 40 ) < NULL
----
NULL

query I rowsort
SELECT col0 * + 36 AS col0 FROM tab1
----
1836
3060
3276

query I rowsort
SELECT DISTINCT 30 * col1 AS col1 FROM tab2
----
1530
2010
2310

onlyif mysql # aggregate syntax: 
query I rowsort label-5610
SELECT COUNT( * ) AS col0 FROM tab2 WHERE NOT - col2 BETWEEN NULL AND - col0 * col0
----
3

skipif mysql # not compatible
query I rowsort label-5610
SELECT COUNT ( * ) AS col0 FROM tab2 WHERE NOT - col2 BETWEEN NULL AND - col0 * col0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5611
SELECT CAST( - 32 AS SIGNED ) * - ( - 50 ) col1 FROM tab1
----
-1600
-1600
-1600

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5611
SELECT CAST ( - 32 AS INTEGER ) * - ( - 50 ) col1 FROM tab1
----
-1600
-1600
-1600

query I rowsort
SELECT + 96 * + col2 AS col2 FROM tab0
----
4512
9504
960

query I rowsort
SELECT DISTINCT + 25 AS col2 FROM tab1 WHERE NOT ( NULL ) > ( NULL )
----

query I rowsort
SELECT - col2 + 94 FROM tab1 WHERE NOT - 99 IS NULL
----
-2
26
35

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + col1 ) IN ( - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 13 * + + col0 FROM tab2 AS cor0
----
598
832
975

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab1 AS cor0 WHERE NOT col0 - col2 <= NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <= ( - col0 - - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5619
SELECT ALL - COUNT( ALL col0 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5619
SELECT ALL - COUNT ( ALL col0 ) AS col2 FROM tab0 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 75 col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 16, col0 col1 FROM tab0
----
-16
15
-16
87
-16
97

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL BETWEEN ( 73 ) AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( - - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * - + col1 col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

query II rowsort
SELECT DISTINCT - - col2, - col2 AS col2 FROM tab1 cor0
----
59
-59
68
-68
96
-96

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NOT ( + col1 + + ( col2 ) * - col0 ) IS NULL
----
1
21
81

query I rowsort
SELECT DISTINCT + 30 * + col0 + 93 FROM tab1 AS cor0 WHERE ( + col0 * + col1 * col2 ) IS NULL
----

query II rowsort
SELECT DISTINCT 89 AS col2, + ( 1 ) AS col1 FROM tab0 AS cor0
----
89
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5629
SELECT DISTINCT - + 92 + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-89

skipif mysql # not compatible
query I rowsort label-5629
SELECT DISTINCT - + 92 + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-89

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5630
SELECT DISTINCT - 42 col2 FROM tab2 cor0 WHERE NOT - CAST( + + col1 AS DECIMAL ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5630
SELECT DISTINCT - 42 col2 FROM tab2 cor0 WHERE NOT - CAST ( + + col1 AS REAL ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - col2 FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN ( - + col2 ) AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5632
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + CAST( col2 AS DECIMAL ) * col1 + col2 )
----

skipif mysql # not compatible
query III rowsort label-5632
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + CAST ( col2 AS REAL ) * col1 + col2 )
----

query I rowsort
SELECT col0 AS col2 FROM tab2 WHERE ( - - 24 + - - ( + 63 ) ) NOT BETWEEN ( - col0 ) AND - col0 + - col0
----
46
64
75

query I rowsort
SELECT + 2 * + 49 AS col1 FROM tab2
----
98
98
98

query II rowsort
SELECT ALL col1 + col2, - 19 + col0 AS col0 FROM tab1
----
110
32
115
72
64
66

query I rowsort
SELECT 64 + - 21 FROM tab1
----
43
43
43

query I rowsort
SELECT 89 + - 20 FROM tab0
----
69
69
69

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5638
SELECT ALL * FROM tab0 WHERE NULL > ( - CAST( - + col0 AS DECIMAL ) * 96 + - col2 )
----

skipif mysql # not compatible
query III rowsort label-5638
SELECT ALL * FROM tab0 WHERE NULL > ( - CAST ( - + col0 AS REAL ) * 96 + - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 25 col2 FROM tab0 WHERE - + col2 NOT IN ( + - 0 )
----
25
25
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5640
SELECT 12 + - + MAX( ALL + col1 ) FROM tab2
----
-65

skipif mysql # not compatible
query I rowsort label-5640
SELECT 12 + - + MAX ( ALL + col1 ) FROM tab2
----
-65

query I rowsort
SELECT ALL col2 * + + col1 + - 47 FROM tab1 AS cor0
----
1297
248
3149

query I rowsort
SELECT col2 * - 94 * + - col2 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5643
SELECT COUNT( * ) / MAX( CAST( NULL AS DECIMAL ) ) col1 FROM tab1 AS cor0 WHERE NULL <> col1 - + - ( + col2 ) * 94
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5643
SELECT COUNT ( * ) / MAX ( CAST ( NULL AS REAL ) ) col1 FROM tab1 AS cor0 WHERE NULL <> col1 - + - ( + col2 ) * 94
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5644
SELECT - - CAST( + + 49 AS SIGNED ) col1 FROM tab2 AS cor0
----
49
49
49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5644
SELECT - - CAST ( + + 49 AS INTEGER ) col1 FROM tab2 AS cor0
----
49
49
49

query I rowsort
SELECT ( 51 ) FROM tab1 WHERE - col1 + - col1 - 60 + - 87 * 33 IN ( - 59 )
----

query I rowsort
SELECT DISTINCT + 43 FROM tab0 WHERE NOT - + col2 + col0 - - col2 * col2 >= 23
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5647
SELECT + ( - + COUNT( * ) ) + - ( + COUNT( * ) ) + 22 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
4

skipif mysql # not compatible
query I rowsort label-5647
SELECT + ( - + COUNT ( * ) ) + - ( + COUNT ( * ) ) + 22 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5648
SELECT ALL COUNT( * ) DIV - COUNT( * ) + - MAX( col1 ) * - 30 AS col1 FROM tab0 AS cor0
----
2429

skipif mysql # not compatible
query I rowsort label-5648
SELECT ALL COUNT ( * ) / - COUNT ( * ) + - MAX ( col1 ) * - 30 AS col1 FROM tab0 AS cor0
----
2429

query I rowsort
SELECT + 65 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5650
SELECT DISTINCT + ( - 68 ) * col2 + + - col2 * col2 + - col2 DIV ( - col0 + 90 ) AS col2 FROM tab2 cor0
----
-2093
-4321
-7311

skipif mysql # not compatible
query I rowsort label-5650
SELECT DISTINCT + ( - 68 ) * col2 + + - col2 * col2 + - col2 / ( - col0 + 90 ) AS col2 FROM tab2 cor0
----
-2093
-4321
-7311

onlyif mysql # aggregate syntax: 
query I rowsort label-5651
SELECT DISTINCT + MAX( col0 ) col1 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5651
SELECT DISTINCT + MAX ( col0 ) col1 FROM tab1 AS cor0
----
91

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5652
SELECT + COUNT( * ), 41 * - CAST( NULL AS DECIMAL ) AS col1 FROM tab2 cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-5652
SELECT + COUNT ( * ), 41 * - CAST ( NULL AS REAL ) AS col1 FROM tab2 cor0
----
3
NULL

query I rowsort
SELECT ALL col1 * col2 + - 92 - - col1 FROM tab1 cor0
----
1266
208
3151

query I rowsort
SELECT ALL + col2 * col1 * - col0 FROM tab2
----
-197120
-291450
-53958

onlyif mysql # aggregate syntax: 
query I rowsort label-5655
SELECT COUNT( 8 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5655
SELECT COUNT ( 8 ) FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * 14 col2 FROM tab1
----
1190
1274
714

query I rowsort
SELECT ALL + col2 * + - 83 FROM tab0
----
-3901
-8217
-830

query I rowsort
SELECT DISTINCT 18 - + col1 + - 97 FROM tab2 WHERE NOT NULL IN ( + + 40, col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5659
SELECT ALL + CAST( NULL AS SIGNED ) * - 99 / - 5 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5659
SELECT ALL + CAST ( NULL AS INTEGER ) * - 99 / - 5 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5660
SELECT 11 * - COUNT( * ) FROM tab0
----
-33

skipif mysql # not compatible
query I rowsort label-5660
SELECT 11 * - COUNT ( * ) FROM tab0
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-5661
SELECT DISTINCT + col2 DIV 35 AS col2 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-5661
SELECT DISTINCT + col2 / 35 AS col2 FROM tab2
----
0
1

query I rowsort
SELECT DISTINCT + + 24 * col1 FROM tab1 AS cor0
----
1128
120
336

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5663
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE + col2 + - ( - CAST( col2 AS SIGNED ) ) IS NOT NULL
----
15
87
97

skipif mysql # not compatible
query I rowsort label-5663
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE + col2 + - ( - CAST ( col2 AS INTEGER ) ) IS NOT NULL
----
15
87
97

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab0 WHERE NULL BETWEEN col0 * col2 AND ( - ( + + 84 ) / - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5665
SELECT - COUNT( * ) + COUNT( + - 94 ) col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5665
SELECT - COUNT ( * ) + COUNT ( + - 94 ) col0 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5666
SELECT DISTINCT + COUNT( * ) + - + COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5666
SELECT DISTINCT + COUNT ( * ) + - + COUNT ( * ) FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5667
SELECT + col0 + - + ( + + col2 ) * + CAST( NULL AS SIGNED ) / - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5667
SELECT + col0 + - + ( + + col2 ) * + CAST ( NULL AS INTEGER ) / - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5668
SELECT + - 32 + - COUNT( + 34 ) AS col0 FROM tab2 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-5668
SELECT + - 32 + - COUNT ( + 34 ) AS col0 FROM tab2 AS cor0
----
-35

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( ( NULL ) <= NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5670
SELECT ALL - - col2 DIV col1 + - + 91 AS col0 FROM tab2 AS cor0
----
-91
-91
-91

skipif mysql # not compatible
query I rowsort label-5670
SELECT ALL - - col2 / col1 + - + 91 AS col0 FROM tab2 AS cor0
----
-91
-91
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5671
SELECT - col2 + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * + + col1 + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5671
SELECT - col2 + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * + + col1 + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5672
SELECT DISTINCT - col1 DIV - - col1 AS col1 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-5672
SELECT DISTINCT - col1 / - - col1 AS col1 FROM tab1
----
-1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 <= ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 39 BETWEEN + col1 / + - 12 AND - 58 OR NOT ( NULL ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL + ( col1 ) + + col2 AS col1, + col1 AS col1 FROM tab1
----
110
14
115
47
64
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5676
SELECT ALL + CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE + col1 BETWEEN - 10 AND - col1
----

skipif mysql # not compatible
query I rowsort label-5676
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE + col1 BETWEEN - 10 AND - col1
----

query I rowsort
SELECT + 63 FROM tab2 AS cor0 WHERE NULL <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5678
SELECT + COUNT( * ) - 65 AS col1 FROM tab2 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-5678
SELECT + COUNT ( * ) - 65 AS col1 FROM tab2 AS cor0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-5679
SELECT - ( + + COUNT( * ) ) - + 20 FROM tab0 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-5679
SELECT - ( + + COUNT ( * ) ) - + 20 FROM tab0 AS cor0
----
-23

query I rowsort
SELECT ALL + col2 + + + 66 AS col2 FROM tab1 AS cor0
----
125
134
162

query II rowsort
SELECT DISTINCT - ( col0 ) AS col0, col1 FROM tab2 AS cor0
----
-46
51
-64
77
-75
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5682
SELECT ALL ( + 67 ) * SUM( - + ( + 57 ) ) AS col2 FROM tab0 AS cor0
----
-11457

skipif mysql # not compatible
query I rowsort label-5682
SELECT ALL ( + 67 ) * SUM ( - + ( + 57 ) ) AS col2 FROM tab0 AS cor0
----
-11457

query I rowsort
SELECT ALL + col2 * + - ( + 40 ) FROM tab2 AS cor0
----
-1600
-2320
-920

query I rowsort
SELECT ALL + + col2 * - ( col0 ) FROM tab1 AS cor0
----
-4896
-5015
-6188

query I rowsort
SELECT ALL col1 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IN ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5686
SELECT ALL - CAST( CAST( + col1 AS SIGNED ) AS SIGNED ) AS col0 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-5686
SELECT ALL - CAST ( CAST ( + col1 AS INTEGER ) AS INTEGER ) AS col0 FROM tab2
----
-51
-67
-77

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 65 * + - 83 < - 39 * + + col0 + + col1 + + - col1 / col0 / 57 / + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5688
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col2, - 48 AS col2 FROM tab1
----
NULL
-48

skipif mysql # not compatible
query II rowsort label-5688
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2, - 48 AS col2 FROM tab1
----
NULL
-48

query III rowsort
SELECT * FROM tab1 WHERE NOT 35 + - 29 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 39 * 44 FROM tab1
----
1716
1716
1716

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5691
SELECT - COUNT( * ) * CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5691
SELECT - COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT + col2 * + col0 - + col1 FROM tab1 AS cor0
----
4882
5010
6141

onlyif mysql # aggregate syntax: 
query I rowsort label-5693
SELECT COUNT( * ) * - + MIN( DISTINCT + col0 ) AS col0 FROM tab2 AS cor0
----
-138

skipif mysql # not compatible
query I rowsort label-5693
SELECT COUNT ( * ) * - + MIN ( DISTINCT + col0 ) AS col0 FROM tab2 AS cor0
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-5694
SELECT ALL COUNT( * ) * + 3 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5694
SELECT ALL COUNT ( * ) * + 3 FROM tab1 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5695
SELECT ALL - ( + ( MAX( - 2 ) ) ) AS col2 FROM tab1 cor0
----
2

skipif mysql # not compatible
query I rowsort label-5695
SELECT ALL - ( + ( MAX ( - 2 ) ) ) AS col2 FROM tab1 cor0
----
2

query I rowsort
SELECT DISTINCT 49 * - + col1 AS col0 FROM tab0 AS cor0
----
-1029
-3969
-49

query I rowsort
SELECT DISTINCT - 29 * + col2 FROM tab0 AS cor0
----
-1363
-2871
-290

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 BETWEEN + col2 + col0 AND ( - 65 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT col2 AS col2, - 57 AS col2 FROM tab2
----
23
-57
40
-57
58
-57

query II rowsort
SELECT + col2, ( - + col2 ) * - ( col2 ) + - col0 FROM tab1 AS cor0
----
59
3396
68
4533
96
9165

onlyif mysql # aggregate syntax: 
query I rowsort label-5701
SELECT + + COUNT( DISTINCT + col2 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5701
SELECT + + COUNT ( DISTINCT + col2 ) FROM tab0 cor0
----
3

query I rowsort
SELECT ALL + 49 + + - col2 * - col2 FROM tab2 cor0
----
1649
3413
578

query I rowsort
SELECT - 55 + + 22 + + - ( + 80 ) FROM tab1
----
-113
-113
-113

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5704
SELECT + CAST( NULL AS SIGNED ) + - + 98 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5704
SELECT + CAST ( NULL AS INTEGER ) + - + 98 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 88 + - + col2 FROM tab2
----
30
48
65

query I rowsort
SELECT col1 FROM tab1 WHERE ( NOT ( NOT - - col1 NOT BETWEEN + 69 + - - 56 - + col0 AND + + col0 * - + col1 * + 12 + col0 ) )
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5707
SELECT DISTINCT + COUNT( * ) FROM tab2 AS cor0 WHERE NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-5707
SELECT DISTINCT + COUNT ( * ) FROM tab2 AS cor0 WHERE NULL <> NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5708
SELECT ALL - 16 + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-5708
SELECT ALL - 16 + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-13

query I rowsort
SELECT col1 * + + col0 - + - ( + col2 ) FROM tab1
----
4345
484
810

query I rowsort
SELECT DISTINCT 45 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5711
SELECT ALL + + CAST( NULL AS SIGNED ), ( - col2 ) * + ( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5711
SELECT ALL + + CAST ( NULL AS INTEGER ), ( - col2 ) * + ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 + + 60 AS col2 FROM tab1 AS cor0 WHERE ( NULL > + - col2 + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5713
SELECT ALL + - MAX( ALL - col1 ) AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5713
SELECT ALL + - MAX ( ALL - col1 ) AS col2 FROM tab0 AS cor0
----
1

query II rowsort
SELECT ALL - + col1 AS col1, - col1 FROM tab2 AS cor0
----
-51
-51
-67
-67
-77
-77

onlyif mysql # DIV for integer division: 
query II rowsort label-5715
SELECT DISTINCT - 74 AS col2, - col0 DIV - + 11 FROM tab0 AS cor0
----
-74
1
-74
7
-74
8

skipif mysql # not compatible
query II rowsort label-5715
SELECT DISTINCT - 74 AS col2, - col0 / - + 11 FROM tab0 AS cor0
----
-74
1
-74
7
-74
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5716
SELECT ALL + COUNT( ALL + col2 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5716
SELECT ALL + COUNT ( ALL + col2 ) AS col2 FROM tab2
----
3

query I rowsort
SELECT DISTINCT + - col2 + col2 FROM tab2 AS cor0 WHERE NOT - col0 IS NULL
----
0

query I rowsort
SELECT + 43 * + col1 AS col1 FROM tab2 AS cor0
----
2193
2881
3311

query I rowsort
SELECT + col2 * + - 31 FROM tab0 AS cor0
----
-1457
-3069
-310

onlyif mysql # aggregate syntax: 
query I rowsort label-5720
SELECT - MAX( - col2 ) AS col2 FROM tab2 cor0
----
23

skipif mysql # not compatible
query I rowsort label-5720
SELECT - MAX ( - col2 ) AS col2 FROM tab2 cor0
----
23

query I rowsort
SELECT + col0 * + - 82 + - 16 FROM tab0 AS cor0
----
-1246
-7150
-7970

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5722
SELECT + + 67 + - CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5722
SELECT + + 67 + - CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 AS col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND - col1
----

query I rowsort
SELECT - 77 * 52 AS col0 FROM tab0 AS cor0
----
-4004
-4004
-4004

onlyif mysql # aggregate syntax: 
query I rowsort label-5725
SELECT ALL COUNT( col0 ) AS col1 FROM tab2 WHERE NOT ( - col2 ) <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-5725
SELECT ALL COUNT ( col0 ) AS col1 FROM tab2 WHERE NOT ( - col2 ) <> NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5726
SELECT ALL + COUNT( * ), SUM( DISTINCT - ( + col0 ) ) AS col1 FROM tab2
----
3
-185

skipif mysql # not compatible
query II rowsort label-5726
SELECT ALL + COUNT ( * ), SUM ( DISTINCT - ( + col0 ) ) AS col1 FROM tab2
----
3
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-5727
SELECT DISTINCT COUNT( * ) + - - 9 FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-5727
SELECT DISTINCT COUNT ( * ) + - - 9 FROM tab1
----
12

query I rowsort
SELECT DISTINCT + ( - col1 ) * + 61 AS col0 FROM tab1
----
-2867
-305
-854

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT ( NOT col1 - - 63 / + + 55 NOT IN ( + - 97 + col2 + + - 1, col2 ) ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 * col2 - - col2 FROM tab2 AS cor0
----
-1035
-2520
-4292

query I rowsort
SELECT - col0 * + 57 + 64 AS col0 FROM tab0 cor0
----
-4895
-5465
-791

query I rowsort
SELECT - col1 + + ( + 85 ) AS col1 FROM tab1 cor0
----
38
71
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5733
SELECT + - ( + COUNT( DISTINCT + col0 ) ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5733
SELECT + - ( + COUNT ( DISTINCT + col0 ) ) AS col0 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL = - + col2
----

query I rowsort
SELECT col0 * 33 AS col1 FROM tab0
----
2871
3201
495

query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 * + col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5737
SELECT - 78 DIV col0 AS col1, + col2 + + ( + 7 ) AS col2 FROM tab0 AS cor0
----
-5
54
0
106
0
17

skipif mysql # not compatible
query II rowsort label-5737
SELECT - 78 / col0 AS col1, + col2 + + ( + 7 ) AS col2 FROM tab0 AS cor0
----
-5
54
0
106
0
17

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5738
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) + - col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-5738
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) + - col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5739
SELECT + col0 DIV col2 - - col2 * col2 - col2 FROM tab1 AS cor0
----
3423
4557
9120

skipif mysql # not compatible
query I rowsort label-5739
SELECT + col0 / col2 - - col2 * col2 - col2 FROM tab1 AS cor0
----
3423
4557
9120

onlyif mysql # DIV for integer division: 
query I rowsort label-5740
SELECT DISTINCT - + ( + - 43 ) DIV - col0 FROM tab0 AS cor0
----
-2
0

skipif mysql # not compatible
query I rowsort label-5740
SELECT DISTINCT - + ( + - 43 ) / - col0 FROM tab0 AS cor0
----
-2
0

query I rowsort
SELECT DISTINCT - 38 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5742
SELECT DISTINCT - - COUNT( * ) - - ( - 21 ) FROM tab1 AS cor0 WHERE NOT - col2 * + + col1 >= NULL
----
-21

skipif mysql # not compatible
query I rowsort label-5742
SELECT DISTINCT - - COUNT ( * ) - - ( - 21 ) FROM tab1 AS cor0 WHERE NOT - col2 * + + col1 >= NULL
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-5743
SELECT 8 / + + SUM( + col1 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5743
SELECT 8 / + + SUM ( + col1 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5744
SELECT - col2 DIV col2 DIV col1 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5744
SELECT - col2 / col2 / col1 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5745
SELECT - ( + + MIN( + 81 ) ) AS col2 FROM tab1
----
-81

skipif mysql # not compatible
query I rowsort label-5745
SELECT - ( + + MIN ( + 81 ) ) AS col2 FROM tab1
----
-81

query II rowsort
SELECT ALL - col1 AS col0, col1 FROM tab1
----
-14
14
-47
47
-5
5

onlyif mysql # aggregate syntax: 
query II rowsort label-5747
SELECT + 94, + COUNT( * ) AS col1 FROM tab2
----
94
3

skipif mysql # not compatible
query II rowsort label-5747
SELECT + 94, + COUNT ( * ) AS col1 FROM tab2
----
94
3

query I rowsort
SELECT ALL + col1 + + 26 FROM tab0
----
107
27
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5749
SELECT ALL MAX( ALL - col1 ) AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-5749
SELECT ALL MAX ( ALL - col1 ) AS col2 FROM tab0
----
-1

query I rowsort
SELECT ALL ( + - col2 ) FROM tab2 AS cor0 WHERE NOT + ( + 23 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5751
SELECT + + COUNT( col2 ) * - ( + AVG ( + col2 ) ) + - AVG ( ALL + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5751
SELECT + + COUNT ( col2 ) * - ( + AVG ( + col2 ) ) + - AVG ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT col0 FROM tab0 WHERE + - col2 < ( - 45 + col2 + - col0 * - col2 + + 96 + + col0 * - col1 )
----
97

query I rowsort
SELECT DISTINCT - + 52 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-52

query II rowsort
SELECT DISTINCT col0 + + 65 AS col1, - 22 - + + col2 AS col2 FROM tab2 AS cor0
----
111
-45
129
-62
140
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-5755
SELECT ALL - COUNT( * ) + 82 AS col2 FROM tab0 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-5755
SELECT ALL - COUNT ( * ) + 82 AS col2 FROM tab0 AS cor0
----
79

query I rowsort
SELECT ALL - 31 * 92 + - 11 * - - 27 + ( - col2 ) + + 2 + + col1 * - col1 FROM tab2 cor0
----
-5771
-7694
-9116

query I rowsort
SELECT ( - col2 ) - - col1 AS col0 FROM tab1 AS cor0
----
-21
-54
-82

query I rowsort
SELECT DISTINCT col1 + + col0 * - col0 FROM tab1 AS cor0
----
-2587
-7220
-8234

query I rowsort
SELECT DISTINCT - col2 * - 27 FROM tab1 AS cor0 WHERE + ( + + col2 ) = + - col1 * + - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 + - - col0 col2 FROM tab1 AS cor0
----
138
65
90

query II rowsort
SELECT DISTINCT + + col1 - + 0 * + + ( + col2 ) AS col2, - col2 FROM tab0 cor0
----
1
-99
21
-10
81
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-5762
SELECT - 57 DIV col1 * col1 + + col2 + 3 AS col2 FROM tab1 AS cor0
----
24
43
7

skipif mysql # not compatible
query I rowsort label-5762
SELECT - 57 / col1 * col1 + + col2 + 3 AS col2 FROM tab1 AS cor0
----
24
43
7

query I rowsort
SELECT ALL - 71 - - - 61 FROM tab2 AS cor0
----
-132
-132
-132

onlyif mysql # DIV for integer division: 
query I rowsort label-5764
SELECT ( + + col0 ) + col0 + col1 - col2 DIV + col0 FROM tab0
----
108
194
195

skipif mysql # not compatible
query I rowsort label-5764
SELECT ( + + col0 ) + col0 + col1 - col2 / + col0 FROM tab0
----
108
194
195

query I rowsort
SELECT DISTINCT col1 * + - 15 FROM tab1
----
-210
-705
-75

query I rowsort
SELECT ALL col0 - + 97 FROM tab1
----
-12
-46
-6

query I rowsort
SELECT - col1 + + 47 * - 95 FROM tab2
----
-4516
-4532
-4542

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 63 * - col1 = - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 * + ( + - 66 ) AS col0 FROM tab2
----
-3366
-4422
-5082

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5770
SELECT ALL * FROM tab0 AS cor0 WHERE + CAST( + 88 AS SIGNED ) BETWEEN + col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-5770
SELECT ALL * FROM tab0 AS cor0 WHERE + CAST ( + 88 AS INTEGER ) BETWEEN + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5771
SELECT ALL - - MAX( ALL + - ( + 48 ) ) AS col2 FROM tab0 cor0
----
-48

skipif mysql # not compatible
query I rowsort label-5771
SELECT ALL - - MAX ( ALL + - ( + 48 ) ) AS col2 FROM tab0 cor0
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-5772
SELECT ALL - COUNT( * ) AS col1, - 21 AS col2 FROM tab1 AS cor0
----
-3
-21

skipif mysql # not compatible
query II rowsort label-5772
SELECT ALL - COUNT ( * ) AS col1, - 21 AS col2 FROM tab1 AS cor0
----
-3
-21

query I rowsort
SELECT DISTINCT col1 * + ( col1 ) FROM tab0
----
1
441
6561

onlyif mysql # aggregate syntax: 
query I rowsort label-5774
SELECT ALL + 66 + + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
75

skipif mysql # not compatible
query I rowsort label-5774
SELECT ALL + 66 + + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
75

query II rowsort
SELECT - + 35, - 4 AS col2 FROM tab0 AS cor0
----
-35
-4
-35
-4
-35
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5776
SELECT ALL - CAST( - - 29 AS SIGNED ) * - col2 - + 99 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
1264
191
2772

skipif mysql # not compatible
query I rowsort label-5776
SELECT ALL - CAST ( - - 29 AS INTEGER ) * - col2 - + 99 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
1264
191
2772

query I rowsort
SELECT ALL + ( - 52 ) AS col2 FROM tab2 AS cor0
----
-52
-52
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-5778
SELECT - COUNT( DISTINCT - - 89 ) * - COUNT( * ) FROM tab0 AS cor0 WHERE NOT 47 * + - col1 = 43
----
3

skipif mysql # not compatible
query I rowsort label-5778
SELECT - COUNT ( DISTINCT - - 89 ) * - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT 47 * + - col1 = 43
----
3

query II rowsort
SELECT 66 AS col2, col1 + + + col2 - - col1 FROM tab1 AS cor0
----
66
124
66
162
66
69

query III rowsort
SELECT * FROM tab0 WHERE NOT ( ( 41 ) ) = 84
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col0 FROM tab1 WHERE NOT + - 62 BETWEEN - col1 AND NULL
----
51
85
91

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE + col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5783
SELECT - + CAST( NULL AS SIGNED ) * - COUNT( * ) FROM tab1 WHERE NOT + col1 IN ( - + col1, col0 * col1 * + col2 / + 88 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5783
SELECT - + CAST ( NULL AS INTEGER ) * - COUNT ( * ) FROM tab1 WHERE NOT + col1 IN ( - + col1, col0 * col1 * + col2 / + 88 )
----
NULL

query I rowsort
SELECT DISTINCT - - col0 AS col1 FROM tab2 WHERE 25 IS NOT NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5785
SELECT + 1 * COUNT( * ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5785
SELECT + 1 * COUNT ( * ) FROM tab1
----
3

query II rowsort
SELECT DISTINCT + ( 6 ) AS col2, + 85 AS col2 FROM tab2
----
6
85

query I rowsort
SELECT DISTINCT col1 + 6 FROM tab0
----
27
7
87

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 > NULL
----

query I rowsort
SELECT + col2 * + + 88 * + col1 AS col0 FROM tab1 AS cor0
----
118272
25960
281248

query I rowsort
SELECT DISTINCT - 24 * + 30 FROM tab0
----
-720

query I rowsort
SELECT - col1 + + - 33 + + col2 FROM tab2
----
-42
-61
-70

query I rowsort
SELECT col0 AS col1 FROM tab1 WHERE + col2 * + 89 IS NOT NULL
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5793
SELECT + col1 * - CAST( NULL AS SIGNED ) + - + col0 AS col1, + col1 AS col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-5793
SELECT + col1 * - CAST ( NULL AS INTEGER ) + - + col0 AS col1, + col1 AS col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5794
SELECT DISTINCT + 62 + + MIN( ALL 14 ) * - 7 AS col2 FROM tab0 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-5794
SELECT DISTINCT + 62 + + MIN ( ALL 14 ) * - 7 AS col2 FROM tab0 AS cor0
----
-36

query I rowsort
SELECT DISTINCT 33 - - 71 AS col2 FROM tab2 AS cor0
----
104

query I rowsort
SELECT DISTINCT 44 FROM tab1 AS cor0 WHERE col2 NOT IN ( - - 82 + + col1 )
----
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col0 FROM tab2 WHERE NOT + col1 IS NULL
----
23
40
58

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE NOT 20 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5799
SELECT DISTINCT + - COUNT( * ) col2 FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5799
SELECT DISTINCT + - COUNT ( * ) col2 FROM tab0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT 91 * - 52 FROM tab0
----
-4732
-4732
-4732

onlyif mysql # DIV for integer division: 
query II rowsort label-5801
SELECT - 74 DIV + col1, + col1 + + col1 col2 FROM tab1 AS cor0
----
-1
94
-14
10
-5
28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5801
SELECT - 74 / + col1, + col1 + + col1 col2 FROM tab1 AS cor0
----
-1
94
-14
10
-5
28

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5802
SELECT DISTINCT * FROM tab1 WHERE NULL < + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5802
SELECT DISTINCT * FROM tab1 WHERE NULL < + + CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5803
SELECT ALL col1 DIV + + ( + col2 ) AS col1 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-5803
SELECT ALL col1 / + + ( + col2 ) AS col1 FROM tab0
----
0
1
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5804
SELECT DISTINCT col1 * - col1 + CAST( - - col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-2555
-4414
-5865

skipif mysql # not compatible
query I rowsort label-5804
SELECT DISTINCT col1 * - col1 + CAST ( - - col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-2555
-4414
-5865

query II rowsort
SELECT + - col1 AS col0, + col0 + + + col0 AS col1 FROM tab0 AS cor0
----
-1
194
-21
174
-81
30

query II rowsort
SELECT col2 AS col2, - col1 AS col0 FROM tab1 AS cor0
----
59
-5
68
-47
96
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-5807
SELECT - COUNT( ALL - - col2 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5807
SELECT - COUNT ( ALL - - col2 ) AS col2 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5808
SELECT DISTINCT + 49 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5808
SELECT DISTINCT + 49 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + col0 * + 80 <= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 53 BETWEEN NULL AND + + col0
----
46
51
23

onlyif mysql # DIV for integer division: 
query I rowsort label-5811
SELECT col2 DIV + + 36 FROM tab1
----
1
1
2

skipif mysql # not compatible
query I rowsort label-5811
SELECT col2 / + + 36 FROM tab1
----
1
1
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5812
SELECT + 69 DIV + COUNT( * ) AS col0 FROM tab0
----
23

skipif mysql # not compatible
query I rowsort label-5812
SELECT + 69 / + COUNT ( * ) AS col0 FROM tab0
----
23

query I rowsort
SELECT - ( 58 ) + + col0 + + col1 FROM tab1
----
32
7
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5814
SELECT 82 * + + col2 * CAST( NULL AS SIGNED ) + - + 83 + + 77 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5814
SELECT 82 * + + col2 * CAST ( NULL AS INTEGER ) + - + 83 + + 77 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5815
SELECT + COUNT( * ) * + 0 + + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5815
SELECT + COUNT ( * ) * + 0 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5816
SELECT DISTINCT + SUM( ALL - 16 ) col2 FROM tab2
----
-48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5816
SELECT DISTINCT + SUM ( ALL - 16 ) col2 FROM tab2
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-5817
SELECT ALL - 41 + ( + col2 ) DIV - col1 FROM tab1
----
-42
-47
-52

skipif mysql # not compatible
query I rowsort label-5817
SELECT ALL - 41 + ( + col2 ) / - col1 FROM tab1
----
-42
-47
-52

query I rowsort
SELECT 78 + 66 AS col1 FROM tab0 AS cor0
----
144
144
144

query I rowsort
SELECT DISTINCT 76 * + - 94 AS col0 FROM tab2 cor0
----
-7144

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT col0, col1 * - col2 * 36 + + - 65 AS col2 FROM tab0 AS cor0
----
15
-137117
87
-7625
97
-3629

query IIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 WHERE 15 IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

onlyif mysql # DIV for integer division: 
query I rowsort label-5823
SELECT + col2 DIV - + col1 AS col1 FROM tab1
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-5823
SELECT + col2 / - + col1 AS col1 FROM tab1
----
-1
-11
-6

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN 75 + - col2 AND + - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5825
SELECT + col1 DIV - ( + 85 ) - + 4 * + - 61 FROM tab2
----
244
244
244

skipif mysql # not compatible
query I rowsort label-5825
SELECT + col1 / - ( + 85 ) - + 4 * + - 61 FROM tab2
----
244
244
244

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 * + col2 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5827
SELECT DISTINCT - 55 - + ( - - col0 ) DIV + col1 + 79 * - + 71 AS col0 FROM tab0 AS cor0
----
-5664
-5668
-5761

skipif mysql # not compatible
query I rowsort label-5827
SELECT DISTINCT - 55 - + ( - - col0 ) / + col1 + 79 * - + 71 AS col0 FROM tab0 AS cor0
----
-5664
-5668
-5761

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5828
SELECT DISTINCT - - CAST( - + col2 AS SIGNED ) + - col1 AS col1 FROM tab0 cor0
----
-100
-128
-31

skipif mysql # not compatible
query I rowsort label-5828
SELECT DISTINCT - - CAST ( - + col2 AS INTEGER ) + - col1 AS col1 FROM tab0 cor0
----
-100
-128
-31

query II rowsort
SELECT + + col0 + col1 AS col0, + col1 FROM tab2 AS cor0
----
141
77
142
67
97
51

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 + + + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5831
SELECT - 78 + + COUNT( * ) + MIN( ALL + - col0 ) * - - CAST( SUM( col0 ) AS SIGNED ) * + COUNT( + col1 ) col2 FROM tab0 AS cor0
----
-57984

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5831
SELECT - 78 + + COUNT ( * ) + MIN ( ALL + - col0 ) * - - CAST ( SUM ( col0 ) AS INTEGER ) * + COUNT ( + col1 ) col2 FROM tab0 AS cor0
----
-57984

onlyif mysql # aggregate syntax: 
query I rowsort label-5832
SELECT DISTINCT + COUNT( - + 85 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5832
SELECT DISTINCT + COUNT ( - + 85 ) AS col2 FROM tab0
----
3

query I rowsort
SELECT + 74 * col0 * - col1 AS col0 FROM tab1
----
-31450
-316498
-52836

query I rowsort
SELECT ALL 35 / - - col1 + + - 36 FROM tab1 WHERE NOT + + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5835
SELECT ALL MAX( + - col0 ) AS col0 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-5835
SELECT ALL MAX ( + - col0 ) AS col0 FROM tab1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5836
SELECT DISTINCT + SUM( + + col0 ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-5836
SELECT DISTINCT + SUM ( + + col0 ) FROM tab1
----
227

query II rowsort
SELECT DISTINCT col2, + 58 FROM tab1
----
59
58
68
58
96
58

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 + + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col1 * + - col1 AS col1 FROM tab0 AS cor0
----
-1
-441
-6561

query I rowsort
SELECT DISTINCT - 22 * - - col2 * ( col0 ) AS col1 FROM tab0 AS cor0
----
-15510
-19140
-211266

query I rowsort
SELECT DISTINCT - col2 * + - 7 + + col2 + - col0 FROM tab1 AS cor0
----
387
453
717

query II rowsort
SELECT ALL + 58 AS col0, + 21 FROM tab2 AS cor0
----
58
21
58
21
58
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5843
SELECT DISTINCT + + COUNT( DISTINCT + 32 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5843
SELECT DISTINCT + + COUNT ( DISTINCT + 32 ) FROM tab2 AS cor0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5844
SELECT + + MAX( CAST( NULL AS SIGNED ) ) * - 95 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5844
SELECT + + MAX ( CAST ( NULL AS INTEGER ) ) * - 95 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5845
SELECT MIN( ALL - 85 ) AS col1 FROM tab1
----
-85

skipif mysql # not compatible
query I rowsort label-5845
SELECT MIN ( ALL - 85 ) AS col1 FROM tab1
----
-85

query III rowsort
SELECT ALL * FROM tab0 WHERE + - 59 >= - col2
----
97
1
99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND col2 - + + col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 NOT BETWEEN col1 * + - 28 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5849
SELECT DISTINCT + - 8 * COUNT( * ) * + + 14 FROM tab2 AS cor0
----
-336

skipif mysql # not compatible
query I rowsort label-5849
SELECT DISTINCT + - 8 * COUNT ( * ) * + + 14 FROM tab2 AS cor0
----
-336

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - col0 IN ( + col1, col1 * - col0, + ( - - col1 ) + - 97 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col2 + + - col0 FROM tab2 AS cor0
----
-17
-23
-24

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 + - - 65 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 + + 7 + + 70 FROM tab0 AS cor0
----
158
78
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - col2 * + col1 col0 FROM tab1 AS cor0
----
-1475
-150212
-18816

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col1 BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5856
SELECT DISTINCT + + col0 DIV 28 FROM tab0 AS cor0
----
0
3

skipif mysql # not compatible
query I rowsort label-5856
SELECT DISTINCT + + col0 / 28 FROM tab0 AS cor0
----
0
3

query II rowsort
SELECT ALL col2 AS col0, - col1 AS col2 FROM tab2
----
23
-51
40
-77
58
-67

query III rowsort
SELECT * FROM tab1 WHERE ( NULL BETWEEN + col2 AND NULL )
----

query I rowsort
SELECT DISTINCT + col0 + + + ( - 20 ) + + + col1 + + 99 AS col2 FROM tab2
----
176
220
221

query I rowsort
SELECT ALL + 47 + + col0 AS col1 FROM tab1 AS cor0
----
132
138
98

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + - 86 * col1 * + col1 + - col0 IS NULL OR + col2 * + - 34 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 19 + - ( + col1 ) col1 FROM tab0 AS cor0
----
-2
-62
18

query II rowsort
SELECT col0 AS col0, + ( col1 ) - 85 FROM tab2 cor0
----
46
-34
64
-8
75
-18

query II rowsort
SELECT + col1 AS col0, - col1 FROM tab1 AS cor0
----
14
-14
47
-47
5
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-5865
SELECT - 85 DIV + 40 AS col2 FROM tab0 AS cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-5865
SELECT - 85 / + 40 AS col2 FROM tab0 AS cor0
----
-2
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5866
SELECT ALL + + MIN( DISTINCT - col2 ) + - 43 FROM tab2 AS cor0
----
-101

skipif mysql # not compatible
query I rowsort label-5866
SELECT ALL + + MIN ( DISTINCT - col2 ) + - 43 FROM tab2 AS cor0
----
-101

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5867
SELECT + CAST( + 20 AS SIGNED ) FROM tab0 AS cor0
----
20
20
20

skipif mysql # not compatible
query I rowsort label-5867
SELECT + CAST ( + 20 AS INTEGER ) FROM tab0 AS cor0
----
20
20
20

query II rowsort
SELECT + - col1, 33 AS col1 FROM tab2 AS cor0
----
-51
33
-67
33
-77
33

query II rowsort
SELECT ALL + 40 AS col2, 20 FROM tab1 AS cor0
----
40
20
40
20
40
20

query II rowsort
SELECT col0, 29 AS col0 FROM tab0 cor0
----
15
29
87
29
97
29

query II rowsort
SELECT - col2 AS col2, 64 AS col0 FROM tab2 AS cor0
----
-23
64
-40
64
-58
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 74 col1, 90 AS col1 FROM tab0 AS cor0
----
-74
90

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 80 + + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5874
SELECT DISTINCT - MAX( + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5874
SELECT DISTINCT - MAX ( + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5875
SELECT ALL SUM( ALL + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5875
SELECT ALL SUM ( ALL + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT - - col2 / 25 + col1 * col0 AS col0 FROM tab0 WHERE NOT NULL <> - - col0 + col0
----

query II rowsort
SELECT col1 * col1, col1 * + col2 AS col0 FROM tab0
----
1
99
441
210
6561
3807

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5878
SELECT * FROM tab1 WHERE NOT NULL <= CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-5878
SELECT * FROM tab1 WHERE NOT NULL <= CAST ( NULL AS REAL )
----

query I rowsort
SELECT - 66 * + col2 AS col1 FROM tab1
----
-3894
-4488
-6336

onlyif mysql # aggregate syntax: 
query I rowsort label-5880
SELECT - ( + MIN( DISTINCT - col1 ) ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-5880
SELECT - ( + MIN ( DISTINCT - col1 ) ) FROM tab2 AS cor0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5881
SELECT + COUNT( * ) FROM tab0 cor0 WHERE NOT NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-5881
SELECT + COUNT ( * ) FROM tab0 cor0 WHERE NOT NULL = NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5882
SELECT - + MAX( + col2 ) DIV + 65 - - - 83 FROM tab0 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-5882
SELECT - + MAX ( + col2 ) / + 65 - - - 83 FROM tab0 AS cor0
----
-84

query I rowsort
SELECT ALL - 97 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b

onlyif mysql # aggregate syntax: 
query I rowsort label-5884
SELECT DISTINCT COUNT( DISTINCT 11 ) - - - 99 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-98

skipif mysql # not compatible
query I rowsort label-5884
SELECT DISTINCT COUNT ( DISTINCT 11 ) - - - 99 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5885
SELECT + CAST( NULL AS SIGNED ) AS col2, - CAST( NULL AS SIGNED ) * col2 AS col0 FROM tab2
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5885
SELECT + CAST ( NULL AS INTEGER ) AS col2, - CAST ( NULL AS INTEGER ) * col2 AS col0 FROM tab2
----
NULL
NULL
NULL
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5886
SELECT DISTINCT - MAX( DISTINCT + col0 ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-5886
SELECT DISTINCT - MAX ( DISTINCT + col0 ) FROM tab1
----
-91

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT DISTINCT - col0 + + col0 + - 49 - col0 AS col1 FROM tab2 AS cor0
----
-113
-124
-95

query II rowsort
SELECT DISTINCT + + 85 AS col2, col2 FROM tab1 cor0
----
85
59
85
68
85
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5890
SELECT MAX( DISTINCT 99 ) AS col1 FROM tab2 cor0
----
99

skipif mysql # not compatible
query I rowsort label-5890
SELECT MAX ( DISTINCT 99 ) AS col1 FROM tab2 cor0
----
99

query III rowsort
SELECT * FROM tab1 cor0 WHERE 72 * - col1 NOT BETWEEN + - 56 AND col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5892
SELECT ALL + MAX( ALL + 65 ) FROM tab0 cor0
----
65

skipif mysql # not compatible
query I rowsort label-5892
SELECT ALL + MAX ( ALL + 65 ) FROM tab0 cor0
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5893
SELECT - ( + ( - col0 ) ) + + + col1 AS col2 FROM tab2 cor0 WHERE col1 IN ( 53, - col1 * 83 + - CAST( + CAST( - col2 AS SIGNED ) AS SIGNED ), + col2 )
----

skipif mysql # not compatible
query I rowsort label-5893
SELECT - ( + ( - col0 ) ) + + + col1 AS col2 FROM tab2 cor0 WHERE col1 IN ( 53, - col1 * 83 + - CAST ( + CAST ( - col2 AS INTEGER ) AS INTEGER ), + col2 )
----

query I rowsort
SELECT DISTINCT - 30 + 95 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5895
SELECT ALL + MIN( + - ( - col2 ) ), SUM( + + col0 ) * CAST( NULL AS SIGNED ) * 36 AS col2 FROM tab2 AS cor0
----
23
NULL

skipif mysql # not compatible
query II rowsort label-5895
SELECT ALL + MIN ( + - ( - col2 ) ), SUM ( + + col0 ) * CAST ( NULL AS INTEGER ) * 36 AS col2 FROM tab2 AS cor0
----
23
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 1 + + - col0 col2 FROM tab0 cor0
----
-14
-86
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 57 + - col2 col2 FROM tab2
----
-1
17
34

query I rowsort
SELECT - col2 + - + 58 FROM tab1
----
-117
-126
-154

query I rowsort
SELECT DISTINCT + - col0 * + - col1 + + col2 AS col0 FROM tab0 AS cor0
----
1262
1837
196

query I rowsort
SELECT + - ( + col0 ) * + + col2 FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5901
SELECT - CAST( NULL AS SIGNED ) * + - 71 + - col0 FROM tab0 WHERE NULL <> 99
----

skipif mysql # not compatible
query I rowsort label-5901
SELECT - CAST ( NULL AS INTEGER ) * + - 71 + - col0 FROM tab0 WHERE NULL <> 99
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + col1 ) > + col2 * - - col1 * 13
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5903
SELECT ALL + 5 * + MAX( ( - 92 ) ) FROM tab2 AS cor0
----
-460

skipif mysql # not compatible
query I rowsort label-5903
SELECT ALL + 5 * + MAX ( ( - 92 ) ) FROM tab2 AS cor0
----
-460

query I rowsort
SELECT ALL + col2 + + 6 + + + col2 - - - 59 * - col0 FROM tab2 cor0 WHERE NOT NULL = + col2 + + + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5905
SELECT ALL - ( + CAST( + col0 AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-5905
SELECT ALL - ( + CAST ( + col0 AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT + + 94 AS col0 FROM tab0 cor0
----
94
94
94

onlyif mysql # aggregate syntax: 
query II rowsort label-5907
SELECT - - 95 col0, COUNT( * ) AS col1 FROM tab2 cor0
----
95
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5907
SELECT - - 95 col0, COUNT ( * ) AS col1 FROM tab2 cor0
----
95
3

query II rowsort
SELECT + - 28 AS col2, - col1 AS col0 FROM tab2 AS cor0
----
-28
-51
-28
-67
-28
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5909
SELECT ALL CAST( + 66 AS SIGNED ) AS col1 FROM tab1
----
66
66
66

skipif mysql # not compatible
query I rowsort label-5909
SELECT ALL CAST ( + 66 AS INTEGER ) AS col1 FROM tab1
----
66
66
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5910
SELECT ALL COUNT( DISTINCT col0 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5910
SELECT ALL COUNT ( DISTINCT col0 ) AS col0 FROM tab2
----
3

query I rowsort
SELECT ( - 89 ) FROM tab0, tab0 AS cor0
----
9 values hashing to 924a74d31360fa4301c953b423a4710e

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5912
SELECT CAST( NULL AS DECIMAL ) * - AVG ( - col1 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5912
SELECT CAST ( NULL AS REAL ) * - AVG ( - col1 ) FROM tab1
----
NULL

query I rowsort
SELECT ( + col1 ) + - col2 FROM tab2 WHERE NOT - 64 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5914
SELECT ALL - col1 * CAST( NULL AS SIGNED ) * - col2 FROM tab2 WHERE ( NOT - col0 * + + CAST( NULL AS SIGNED ) * + - 36 = + 70 )
----

skipif mysql # not compatible
query I rowsort label-5914
SELECT ALL - col1 * CAST ( NULL AS INTEGER ) * - col2 FROM tab2 WHERE ( NOT - col0 * + + CAST ( NULL AS INTEGER ) * + - 36 = + 70 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - 7 ) <= 31
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 98 * - + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 * - 92 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 69 + - + col0 * 77 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + - col0 + - col1 AS col1, col2 FROM tab0 AS cor0
----
-108
10
-96
47
-98
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5920
SELECT + 34 + + + col2 * CAST( NULL AS SIGNED ) + 3 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5920
SELECT + 34 + + + col2 * CAST ( NULL AS INTEGER ) + 3 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 18 AS col1 FROM tab0 cor0
----
-18
-18
-18

query I rowsort
SELECT - col1 * + - 22 + + col2 FROM tab0 AS cor0
----
121
1829
472

onlyif mysql # aggregate syntax: 
query I rowsort label-5923
SELECT + MIN( DISTINCT - col0 ) AS col2 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-5923
SELECT + MIN ( DISTINCT - col0 ) AS col2 FROM tab1 AS cor0
----
-91

query I rowsort
SELECT + col0 * + - 52 FROM tab0
----
-4524
-5044
-780

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( + - 33 + col0 )
----

query I rowsort
SELECT - ( + 51 ) * col2 - - col0 FROM tab0
----
-2382
-423
-4952

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 30 * + - col0 col1 FROM tab0
----
2610
2910
450

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5928
SELECT - col0 - + ( col2 ) - + CAST( col1 AS SIGNED ) * + - col0 FROM tab0
----
-99
1153
1730

skipif mysql # not compatible
query I rowsort label-5928
SELECT - col0 - + ( col2 ) - + CAST ( col1 AS INTEGER ) * + - col0 FROM tab0
----
-99
1153
1730

onlyif mysql # aggregate syntax: 
query I rowsort label-5929
SELECT + COUNT( * ) - ( COUNT( * ) ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5929
SELECT + COUNT ( * ) - ( COUNT ( * ) ) AS col2 FROM tab0
----
0

query III rowsort
SELECT * FROM tab0 cor0 WHERE + 13 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT col2 + 30 - + - col1, + 21 AS col1 FROM tab0 AS cor0
----
130
21
158
21
61
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5932
SELECT ALL - + COUNT( * ) * COUNT( * ) FROM tab0 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5932
SELECT ALL - + COUNT ( * ) * COUNT ( * ) FROM tab0 cor0
----
-9

query I rowsort
SELECT DISTINCT + col2 + - col0 FROM tab1 AS cor0 WHERE NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5934
SELECT DISTINCT + 48 * COUNT( * ) FROM tab0 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-5934
SELECT DISTINCT + 48 * COUNT ( * ) FROM tab0 AS cor0
----
144

onlyif mysql # DIV for integer division: 
query II rowsort label-5935
SELECT 82 DIV + 2 AS col1, - col2 FROM tab0 AS cor0
----
41
-10
41
-47
41
-99

skipif mysql # not compatible
query II rowsort label-5935
SELECT 82 / + 2 AS col1, - col2 FROM tab0 AS cor0
----
41
-10
41
-47
41
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5936
SELECT + + COUNT( DISTINCT - col1 ) col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5936
SELECT + + COUNT ( DISTINCT - col1 ) col2 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5937
SELECT 17 / + + 83 * - col2 * - - col2 / + ( - CAST( NULL AS SIGNED ) ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5937
SELECT 17 / + + 83 * - col2 * - - col2 / + ( - CAST ( NULL AS INTEGER ) ) FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5938
SELECT - COUNT( * ) * COUNT( + col2 ) AS col1 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5938
SELECT - COUNT ( * ) * COUNT ( + col2 ) AS col1 FROM tab0 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5939
SELECT - - 14 * + + COUNT( col1 ) FROM tab2 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-5939
SELECT - - 14 * + + COUNT ( col1 ) FROM tab2 AS cor0
----
42

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col2 / + + col0 <> NULL
----

query I rowsort
SELECT ALL - + 10 AS col1 FROM tab2 AS cor0
----
-10
-10
-10

query I rowsort
SELECT + col2 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND - ( + col2 ) / - 80 / + 83 * col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 + - col0 NOT IN ( + col0, col1, + - col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5944
SELECT DISTINCT + - 37 + COUNT( - 71 ) + - - COUNT( CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 WHERE + col2 IS NULL
----
-37

skipif mysql # not compatible
query I rowsort label-5944
SELECT DISTINCT + - 37 + COUNT ( - 71 ) + - - COUNT ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 WHERE + col2 IS NULL
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-5945
SELECT ( + MIN( + col2 ) ) col1 FROM tab0
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5945
SELECT ( + MIN ( + col2 ) ) col1 FROM tab0
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5946
SELECT ALL - 97 DIV + + COUNT( * ) FROM tab2
----
-32

skipif mysql # not compatible
query I rowsort label-5946
SELECT ALL - 97 / + + COUNT ( * ) FROM tab2
----
-32

query I rowsort
SELECT ALL - col1 * - + 36 AS col1 FROM tab1 AS cor0
----
1692
180
504

onlyif mysql # aggregate syntax: 
query I rowsort label-5948
SELECT + COUNT( * ) col1 FROM tab1 WHERE - - 43 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5948
SELECT + COUNT ( * ) col1 FROM tab1 WHERE - - 43 IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 + - col1 * + - col0 * + 33 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col2 + - col2 * + 61 AS col2 FROM tab2 cor0
----
-1380
-2400
-3480

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND ( + - ( col1 ) ) * - + col2
----

query I rowsort
SELECT + 7 + + + 18 + - + col1 FROM tab2 AS cor0
----
-26
-42
-52

query I rowsort
SELECT DISTINCT ( 43 ) AS col2 FROM tab0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-5955
SELECT + 84 + - 4 + - COUNT( * ) * - + 23 FROM tab2
----
149

skipif mysql # not compatible
query I rowsort label-5955
SELECT + 84 + - 4 + - COUNT ( * ) * - + 23 FROM tab2
----
149

query I rowsort
SELECT col2 + - 16 + + 98 FROM tab1
----
141
150
178

query I rowsort
SELECT 95 + + 46 AS col0 FROM tab1
----
141
141
141

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5958
SELECT 87 + - 7, CAST( NULL AS SIGNED ) + + col2 * + - col0 AS col0 FROM tab2
----
80
NULL
80
NULL
80
NULL

skipif mysql # not compatible
query II rowsort label-5958
SELECT 87 + - 7, CAST ( NULL AS INTEGER ) + + col2 * + - col0 AS col0 FROM tab2
----
80
NULL
80
NULL
80
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5959
SELECT ALL - MAX( + col0 ) * 8 FROM tab2
----
-600

skipif mysql # not compatible
query I rowsort label-5959
SELECT ALL - MAX ( + col0 ) * 8 FROM tab2
----
-600

query I rowsort
SELECT 28 + + 1 AS col0 FROM tab2
----
29
29
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5961
SELECT - CAST( NULL AS SIGNED ) * + SUM( col0 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5961
SELECT - CAST ( NULL AS INTEGER ) * + SUM ( col0 ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + + col0 - - + col0 + - + 32 FROM tab1 AS cor0
----
138
150
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5963
SELECT ALL - 55 * + 21 + + - COUNT( * ) FROM tab1 AS cor0
----
-1158

skipif mysql # not compatible
query I rowsort label-5963
SELECT ALL - 55 * + 21 + + - COUNT ( * ) FROM tab1 AS cor0
----
-1158

query I rowsort
SELECT + col1 AS col1 FROM tab1 AS cor0 WHERE ( col1 ) + col2 - - + col2 > 21 + + - col0 + - 26 * - 77
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5965
SELECT ALL SUM( DISTINCT + + 33 ) AS col1 FROM tab0 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-5965
SELECT ALL SUM ( DISTINCT + + 33 ) AS col1 FROM tab0 AS cor0
----
33

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - 48
----

query I rowsort
SELECT DISTINCT col1 * - + ( - 81 ) FROM tab1
----
1134
3807
405

query I rowsort
SELECT - col2 AS col0 FROM tab1 WHERE NOT - - col2 * - - col2 / + - 79 + col2 IS NULL
----
-59
-68
-96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 15 / - col1 + - col0 = NULL )
----

query I rowsort
SELECT + - ( 19 ) * - col1 AS col2 FROM tab1 AS cor0
----
266
893
95

query I rowsort
SELECT - col0 * 44 - - - col2 FROM tab2 AS cor0
----
-2047
-2856
-3358

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5972
SELECT DISTINCT - 88 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5972
SELECT DISTINCT - 88 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5973
SELECT ALL + CAST( NULL AS SIGNED ) * COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5973
SELECT ALL + CAST ( NULL AS INTEGER ) * COUNT ( * ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + - col1 * + 27 * - 83 FROM tab2 AS cor0
----
114291
150147
172557

query I rowsort
SELECT ALL col1 * col1 * + - col1 FROM tab2
----
-132651
-300763
-456533

onlyif mysql # DIV for integer division: 
query I rowsort label-5976
SELECT DISTINCT + ( - 7 ) DIV + 70 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5976
SELECT DISTINCT + ( - 7 ) / + 70 FROM tab2
----
0

query I rowsort
SELECT ALL - col2 * - + 33 FROM tab2
----
1320
1914
759

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5978
SELECT ALL 56 DIV - 55, SUM( CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-5978
SELECT ALL 56 / - 55, SUM ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5979
SELECT ALL + COUNT( * ) + + + ( + 30 ) FROM tab2
----
33

skipif mysql # not compatible
query I rowsort label-5979
SELECT ALL + COUNT ( * ) + + + ( + 30 ) FROM tab2
----
33

query I rowsort
SELECT DISTINCT - - col2 + - col1 * - col2 FROM tab1 AS cor0
----
1440
3264
354

onlyif mysql # aggregate syntax: 
query I rowsort label-5981
SELECT ALL - - COUNT( * ) + - 59 FROM tab0 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-5981
SELECT ALL - - COUNT ( * ) + - 59 FROM tab0 AS cor0
----
-56

query I rowsort
SELECT DISTINCT - col2 + + - 90 FROM tab1
----
-149
-158
-186

query I rowsort
SELECT ALL col2 AS col2 FROM tab2 WHERE NOT + - col2 + + col0 * + + ( + 42 ) IS NULL
----
23
40
58

query I rowsort
SELECT ALL - col1 + + + col0 + + col1 AS col0 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT ALL 99 - + col2 * - col0 FROM tab0 AS cor0
----
804
969
9702

query II rowsort
SELECT - col0, - col0 FROM tab1 AS cor0
----
-51
-51
-85
-85
-91
-91

query II rowsort
SELECT DISTINCT + col0 * col1 + col1, 28 AS col0 FROM tab0 AS cor0
----
1296
28
1848
28
98
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5988
SELECT - MAX( DISTINCT + 66 ) FROM tab2 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-5988
SELECT - MAX ( DISTINCT + 66 ) FROM tab2 AS cor0
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5989
SELECT CAST( 4 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
4
4
4

skipif mysql # not compatible
query I rowsort label-5989
SELECT CAST ( 4 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
4
4
4

query II rowsort
SELECT + col0, col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col1 AND NULL
----

query I rowsort
SELECT ALL + col1 * - col0 - col0 - + col1 AS col0 FROM tab2
----
-2443
-5069
-5167

query I rowsort
SELECT ALL - ( 16 ) AS col1 FROM tab1
----
-16
-16
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5993
SELECT col0 + - CAST( NULL AS SIGNED ) / col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5993
SELECT col0 + - CAST ( NULL AS INTEGER ) / col1 FROM tab1 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 23 >= NULL
----

query I rowsort
SELECT - col1 * + col1 * - - col2 AS col0 FROM tab2
----
-237160
-260362
-59823

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( 31 ) * col2 col1 FROM tab0 AS cor0
----
-1457
-3069
-310

onlyif mysql # aggregate syntax: 
query I rowsort label-5997
SELECT DISTINCT + + COUNT( + 86 ) * COUNT( * ) AS col1 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5997
SELECT DISTINCT + + COUNT ( + 86 ) * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5998
SELECT - + 74 * + col0 + - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5998
SELECT - + 74 * + col0 + - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 63 * + col0 AS col1 FROM tab0 AS cor0 WHERE NOT - col2 IS NULL
----
-5481
-6111
-945

onlyif mysql # aggregate syntax: 
query I rowsort label-6000
SELECT ALL COUNT( 97 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6000
SELECT ALL COUNT ( 97 ) FROM tab0
----
3

query I rowsort
SELECT + ( - col2 ) * + + col2 AS col1 FROM tab2 WHERE NOT ( 55 * + - col1 ) IS NULL
----
-1600
-3364
-529

query I rowsort
SELECT ALL ( + 94 ) AS col0 FROM tab2
----
94
94
94

onlyif mysql # DIV for integer division: 
query I rowsort label-6003
SELECT 48 DIV - 98 * + col1 + 72 FROM tab2
----
72
72
72

skipif mysql # not compatible
query I rowsort label-6003
SELECT 48 / - 98 * + col1 + 72 FROM tab2
----
72
72
72

query I rowsort
SELECT col2 + + col0 * - + col0 - + + col1 - - - 98 + 51 AS col0 FROM tab1
----
-2566
-7218
-8307

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col2 + - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6006
SELECT ALL - 67 + + - 95 + COUNT( * ) + 10 DIV - 24 FROM tab0 AS cor0
----
-159

skipif mysql # not compatible
query I rowsort label-6006
SELECT ALL - 67 + + - 95 + COUNT ( * ) + 10 / - 24 FROM tab0 AS cor0
----
-159

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 83 BETWEEN col1 - - col1 AND - 23
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 54 NOT IN ( - ( 61 ) )
----

query I rowsort
SELECT ( - col1 ) AS col2 FROM tab0 WHERE NULL > 93 * col2
----

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN + col2 AND ( + col2 + - col1 * - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6011
SELECT DISTINCT + CAST( + 9 AS SIGNED ) * col0 AS col0 FROM tab0
----
135
783
873

skipif mysql # not compatible
query I rowsort label-6011
SELECT DISTINCT + CAST ( + 9 AS INTEGER ) * col0 AS col0 FROM tab0
----
135
783
873

query I rowsort
SELECT 74 + - col0 AS col1 FROM tab1
----
-11
-17
23

onlyif mysql # DIV for integer division: 
query I rowsort label-6013
SELECT DISTINCT 77 DIV + col0 AS col1 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-6013
SELECT DISTINCT 77 / + col0 AS col1 FROM tab1
----
0
1

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE - ( col0 ) IS NOT NULL
----
-15
-87
-97

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab1 WHERE ( col1 ) >= - col0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6016
SELECT + 99 + 55 * COUNT( * ) AS col1 FROM tab2 WHERE NOT + col1 BETWEEN col2 * 39 AND ( + 51 ) - 83
----
264

skipif mysql # not compatible
query I rowsort label-6016
SELECT + 99 + 55 * COUNT ( * ) AS col1 FROM tab2 WHERE NOT + col1 BETWEEN col2 * 39 AND ( + 51 ) - 83
----
264

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6017
SELECT - CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) FROM tab0 WHERE ( - col2 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-6017
SELECT - CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) FROM tab0 WHERE ( - col2 ) IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6018
SELECT - col0 col1 FROM tab0 WHERE NULL BETWEEN ( NULL ) AND ( 29 / CAST( col1 * col2 AS DECIMAL ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6018
SELECT - col0 col1 FROM tab0 WHERE NULL BETWEEN ( NULL ) AND ( 29 / CAST ( col1 * col2 AS REAL ) )
----

query I rowsort
SELECT - col0 * 87 FROM tab2
----
-4002
-5568
-6525

query I rowsort
SELECT ALL - col1 AS col2 FROM tab2 WHERE NOT NULL <> ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE + 15 * + 5 BETWEEN ( NULL ) AND ( col2 * - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6022
SELECT DISTINCT * FROM tab2 WHERE NOT col2 NOT BETWEEN NULL AND ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6022
SELECT DISTINCT * FROM tab2 WHERE NOT col2 NOT BETWEEN NULL AND ( - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT - col2 * 20 FROM tab1
----
-1180
-1360
-1920

onlyif mysql # aggregate syntax: 
query I rowsort label-6024
SELECT DISTINCT COUNT( * ) + - 29 AS col1 FROM tab1
----
-26

skipif mysql # not compatible
query I rowsort label-6024
SELECT DISTINCT COUNT ( * ) + - 29 AS col1 FROM tab1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-6025
SELECT - MIN( - col0 ) + - COUNT( * ) col0 FROM tab2
----
72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6025
SELECT - MIN ( - col0 ) + - COUNT ( * ) col0 FROM tab2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6026
SELECT DISTINCT + MIN( 83 ) col2 FROM tab2 WHERE NOT NULL BETWEEN ( + col0 ) AND NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6026
SELECT DISTINCT + MIN ( 83 ) col2 FROM tab2 WHERE NOT NULL BETWEEN ( + col0 ) AND NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - ( - 81 ) NOT IN ( + 70 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6028
SELECT + COUNT( * ) DIV - 37 FROM tab1 WHERE 51 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6028
SELECT + COUNT ( * ) / - 37 FROM tab1 WHERE 51 IS NOT NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL < ( col2 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) > + col0
----

query I rowsort
SELECT ALL - col2 - col2 FROM tab2 WHERE NOT ( 59 + + col1 * col0 ) IS NOT NULL
----

query I rowsort
SELECT col1 * - col2 FROM tab2 AS cor0 WHERE NOT ( 73 ) NOT BETWEEN ( NULL ) AND col2
----

query I rowsort
SELECT AVG ( DISTINCT - col2 ) FROM tab0 AS cor0 WHERE NOT NULL <> col1 * col1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( 6 * - col2 ) NOT IN ( col2 )
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 65 <> col2
----

query I rowsort
SELECT 77 FROM tab1 AS cor0 WHERE NOT - col0 IN ( col1 * 27 )
----
77
77
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 94 * + ( - col0 ) col1 FROM tab1 AS cor0
----
-4794
-7990
-8554

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6039
SELECT DISTINCT ( + col0 ) * col2 AS col0 FROM tab1 AS cor0 WHERE NOT ( CAST( + col0 AS SIGNED ) ) IS NULL
----
4896
5015
6188

skipif mysql # not compatible
query I rowsort label-6039
SELECT DISTINCT ( + col0 ) * col2 AS col0 FROM tab1 AS cor0 WHERE NOT ( CAST ( + col0 AS INTEGER ) ) IS NULL
----
4896
5015
6188

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6040
SELECT * FROM tab2 AS cor0 WHERE NOT col2 IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6040
SELECT * FROM tab2 AS cor0 WHERE NOT col2 IN ( CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT + ( - 71 ) + 9 AS col0 FROM tab0 cor0
----
-62
-62
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-6042
SELECT - col2 + 5 DIV col1 AS col1 FROM tab1 cor0
----
-58
-68
-96

skipif mysql # not compatible
query I rowsort label-6042
SELECT - col2 + 5 / col1 AS col1 FROM tab1 cor0
----
-58
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 58 - + col0 * col1 col1 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col2 * 83 + col2 FROM tab2 AS cor0
----
1932
3360
4872

query I rowsort
SELECT DISTINCT col2 * 46 FROM tab1 AS cor0
----
2714
3128
4416

query I rowsort
SELECT + col1 + + 85 FROM tab0 AS cor0
----
106
166
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6047
SELECT DISTINCT - SUM( ALL 74 ) FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
-222

skipif mysql # not compatible
query I rowsort label-6047
SELECT DISTINCT - SUM ( ALL 74 ) FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
-222

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + 41 ) - col2 / 25 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + col1 NOT BETWEEN - 43 * col1 + - col0 AND ( + col1 * + 50 + + col1 )
----

query I rowsort
SELECT DISTINCT + col0 + + ( 87 ) * col2 FROM tab2
----
2047
3544
5121

query I rowsort
SELECT 97 FROM tab1 WHERE NULL NOT BETWEEN col1 AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) > + col2
----

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE - col0 + - 87 IS NOT NULL
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-6054
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6054
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col1 FROM tab0 AS cor0 WHERE NULL >= col1 * + 33
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6056
SELECT + 88 + + - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6056
SELECT + 88 + + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 42 * - col0 + - col1 AS col2 FROM tab2
----
-1983
-2765
-3217

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6058
SELECT - col1 FROM tab0 WHERE + 84 - + col2 BETWEEN + col0 * - CAST( NULL AS SIGNED ) AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-6058
SELECT - col1 FROM tab0 WHERE + 84 - + col2 BETWEEN + col0 * - CAST ( NULL AS INTEGER ) AND ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6059
SELECT DISTINCT - + 33 * - + CAST( - - MAX( + CAST( NULL AS SIGNED ) ) AS DECIMAL ) + - COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6059
SELECT DISTINCT - + 33 * - + CAST ( - - MAX ( + CAST ( NULL AS INTEGER ) ) AS REAL ) + - COUNT ( * ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - col1 + + col0 * + col2 <= ( col1 + col0 * col0 )
----
51
14
96

query I rowsort
SELECT ALL - col1 * 7 + + ( col0 ) - + col0 FROM tab0 AS cor0
----
-147
-567
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-6062
SELECT col1 DIV - col2 AS col2 FROM tab0 cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-6062
SELECT col1 / - col2 AS col2 FROM tab0 cor0
----
-1
-2
0

query I rowsort
SELECT ALL - 60 - + - col0 - + + col1 AS col1 FROM tab2 AS cor0
----
-52
-65
-73

query I rowsort
SELECT DISTINCT col2 + col1 FROM tab0 AS cor0 WHERE NULL NOT IN ( col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( ( + + ( col0 ) ) / 70 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 - + col0 - + 23 * + 11 AS col0 FROM tab0 AS cor0
----
-253
-253
-253

query I rowsort
SELECT DISTINCT + ( - 17 ) FROM tab0 AS cor0
----
-17

query I rowsort
SELECT ALL 58 FROM tab1 AS cor0 WHERE NULL BETWEEN ( NULL ) AND ( + + 72 )
----

query I rowsort
SELECT ALL col0 AS col0 FROM tab0 WHERE + 42 + + + col2 * col2 BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6070
SELECT + COUNT( * ) AS col0 FROM tab2 WHERE NOT NULL > ( col0 )
----
0

skipif mysql # not compatible
query I rowsort label-6070
SELECT + COUNT ( * ) AS col0 FROM tab2 WHERE NOT NULL > ( col0 )
----
0

query I rowsort
SELECT DISTINCT col1 * + + 95 FROM tab0
----
1995
7695
95

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col2 <= + + col1 - 25
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + col0 + col1 AS col2 FROM tab1 WHERE NOT ( NULL ) < col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6074
SELECT DISTINCT 67 DIV COUNT( ALL - + col0 ) AS col1 FROM tab1
----
22

skipif mysql # not compatible
query I rowsort label-6074
SELECT DISTINCT 67 / COUNT ( ALL - + col0 ) AS col1 FROM tab1
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6075
SELECT - ( CAST( NULL AS SIGNED ) ) * CAST( NULL AS SIGNED ) * col1 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6075
SELECT - ( CAST ( NULL AS INTEGER ) ) * CAST ( NULL AS INTEGER ) * col1 AS col0 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT ALL ( col1 ), col0 + col1 * + col1 AS col0 FROM tab0
----
1
98
21
528
81
6576

query I rowsort
SELECT DISTINCT + 92 - + 52 FROM tab1 AS cor0 WHERE NOT ( + col2 * col1 ) > NULL
----

query I rowsort
SELECT DISTINCT col0 * col1 + - - ( col0 ) - col2 AS col0 FROM tab2 cor0
----
2369
4952
5042

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6079
SELECT CAST( + COUNT( ALL - - col0 ) AS SIGNED ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6079
SELECT CAST ( + COUNT ( ALL - - col0 ) AS INTEGER ) FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-6080
SELECT * FROM tab2 WHERE NOT + col2 + - CAST( NULL AS SIGNED ) BETWEEN + col2 * 56 AND ( - CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6080
SELECT * FROM tab2 WHERE NOT + col2 + - CAST ( NULL AS INTEGER ) BETWEEN + col2 * 56 AND ( - CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6081
SELECT DISTINCT MAX( ALL - col1 ) AS col0 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-6081
SELECT DISTINCT MAX ( ALL - col1 ) AS col0 FROM tab1
----
-5

query I rowsort
SELECT ALL - 31 FROM tab2 AS cor0 WHERE NOT - col2 <> ( NULL )
----

query I rowsort
SELECT 16 * + + col0 AS col2 FROM tab1 AS cor0
----
1360
1456
816

query I rowsort
SELECT 50 * + + 61 AS col0 FROM tab0 AS cor0
----
3050
3050
3050

query I rowsort
SELECT DISTINCT - 21 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT col2 * + 49 FROM tab1 AS cor0 WHERE + 58 * + col1 = ( col0 + - 87 + - 97 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6087
SELECT MIN( DISTINCT - 50 ) AS col2 FROM tab1 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-6087
SELECT MIN ( DISTINCT - 50 ) AS col2 FROM tab1 AS cor0
----
-50

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + 11 BETWEEN + - 18 AND 38 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6089
SELECT 47 + + 89 * - 44 + + - MIN( col2 ) FROM tab1
----
-3928

skipif mysql # not compatible
query I rowsort label-6089
SELECT 47 + + 89 * - 44 + + - MIN ( col2 ) FROM tab1
----
-3928

onlyif mysql # aggregate syntax: 
query I rowsort label-6090
SELECT DISTINCT ( COUNT( + 98 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6090
SELECT DISTINCT ( COUNT ( + 98 ) ) FROM tab1
----
3

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN + col0 AND ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6092
SELECT ALL - ( - CAST( NULL AS SIGNED ) ) + COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6092
SELECT ALL - ( - CAST ( NULL AS INTEGER ) ) + COUNT ( * ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6093
SELECT + col2 + + 73 + - col2 * - CAST( 32 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
1624
3340
403

skipif mysql # not compatible
query I rowsort label-6093
SELECT + col2 + + 73 + - col2 * - CAST ( 32 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
1624
3340
403

query I rowsort
SELECT ALL + - col2 * + + col1 * - - col1 * 8 + 57 * + - col0 AS col0 FROM tab1 AS cor0
----
-1206883
-153435
-16645

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6095
SELECT ALL - + col0 - + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6095
SELECT ALL - + col0 - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6096
SELECT DISTINCT + 53 * - 66 AS col2, ( + col1 ) FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
-3498
14
-3498
47
-3498
5

skipif mysql # not compatible
query II rowsort label-6096
SELECT DISTINCT + 53 * - 66 AS col2, ( + col1 ) FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
-3498
14
-3498
47
-3498
5

query I rowsort
SELECT 24 - + - 77 AS col2 FROM tab2
----
101
101
101

query II rowsort
SELECT + 12 - - col0 AS col2, 63 FROM tab0
----
109
63
27
63
99
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6099
SELECT COUNT( * ) - - 13 FROM tab2
----
16

skipif mysql # not compatible
query I rowsort label-6099
SELECT COUNT ( * ) - - 13 FROM tab2
----
16

query I rowsort
SELECT DISTINCT col0 * + col1 + - - col2 * - - 1 FROM tab0
----
1262
1837
196

onlyif mysql # DIV for integer division: 
query I rowsort label-6101
SELECT col2 - - 25 DIV col1 * + col2 AS col0 FROM tab0
----
20
2574
47

skipif mysql # not compatible
query I rowsort label-6101
SELECT col2 - - 25 / col1 * + col2 AS col0 FROM tab0
----
20
2574
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - col2 col1 FROM tab0 AS cor0
----
-2
-32
77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT + - 87 > + + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6104
SELECT DISTINCT 50 + - SUM( - - 99 ) FROM tab2 AS cor0
----
-247

skipif mysql # not compatible
query I rowsort label-6104
SELECT DISTINCT 50 + - SUM ( - - 99 ) FROM tab2 AS cor0
----
-247

query I rowsort
SELECT ALL + + col0 * - col0 * + 17 - - col2 FROM tab1 cor0
----
-122766
-140709
-44121

query I rowsort
SELECT - - 98 FROM tab0 cor0
----
98
98
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 12 col1 FROM tab2 AS cor0
----
-12
-12
-12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 14 col1 FROM tab2 AS cor0
----
-14
-14
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-6109
SELECT DISTINCT - ( - + COUNT( * ) ), 5 AS col2 FROM tab0 cor0
----
3
5

skipif mysql # not compatible
query II rowsort label-6109
SELECT DISTINCT - ( - + COUNT ( * ) ), 5 AS col2 FROM tab0 cor0
----
3
5

query II rowsort
SELECT - 6 AS col0, + 98 FROM tab2
----
-6
98
-6
98
-6
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6111
SELECT DISTINCT - COUNT( CAST( ( - 41 ) AS SIGNED ) ) AS col1 FROM tab1 WHERE ( - col2 + + - ( 93 ) * + col1 * 3 + + + 10 ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6111
SELECT DISTINCT - COUNT ( CAST ( ( - 41 ) AS INTEGER ) ) AS col1 FROM tab1 WHERE ( - col2 + + - ( 93 ) * + col1 * 3 + + + 10 ) IS NOT NULL
----
-3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 * + 98 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6113
SELECT DISTINCT - CAST( NULL AS DECIMAL ) / - - col0 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6113
SELECT DISTINCT - CAST ( NULL AS REAL ) / - - col0 AS col0 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6114
SELECT ALL + col2 DIV ( col1 ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6114
SELECT ALL + col2 / ( col1 ) FROM tab2
----
0
0
0

query II rowsort
SELECT ALL - - 73, col1 FROM tab0 AS cor0
----
73
1
73
21
73
81

query II rowsort
SELECT - + col2 AS col1, - 94 AS col1 FROM tab2 cor0 WHERE NOT ( NULL ) BETWEEN NULL AND + col2
----

query I rowsort
SELECT DISTINCT - ( + + 29 ) * 64 AS col0 FROM tab2
----
-1856

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 / + col1 + + col2 * - - col1 <= - 7
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6119
SELECT DISTINCT - - ( + CAST( NULL AS SIGNED ) ) * 38 + - col2 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6119
SELECT DISTINCT - - ( + CAST ( NULL AS INTEGER ) ) * 38 + - col2 AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6120
SELECT col0 DIV - 46 AS col0 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-6120
SELECT col0 / - 46 AS col0 FROM tab0 AS cor0
----
-1
-2
0

query I rowsort
SELECT + col1 * - 38 * + 56 AS col1 FROM tab2 AS cor0
----
-108528
-142576
-163856

onlyif mysql # aggregate syntax: 
query I rowsort label-6122
SELECT MIN( - - col2 ) AS col2 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-6122
SELECT MIN ( - - col2 ) AS col2 FROM tab0
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6123
SELECT - 51 * col0 FROM tab2 WHERE - - 46 * - - col0 BETWEEN ( col1 * + - col0 * - CAST( - + col1 AS SIGNED ) ) AND + ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-6123
SELECT - 51 * col0 FROM tab2 WHERE - - 46 * - - col0 BETWEEN ( col1 * + - col0 * - CAST ( - + col1 AS INTEGER ) ) AND + ( + CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 85 + 9 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 14 = ( + - 96 ) OR NULL > + ( + 21 )
----

query I rowsort
SELECT ALL - - 24 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

onlyif mysql # aggregate syntax: 
query I rowsort label-6127
SELECT + - COUNT( + - 75 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6127
SELECT + - COUNT ( + - 75 ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-6128
SELECT 56, - MIN( DISTINCT col1 ) AS col1 FROM tab0 cor0
----
56
-1

skipif mysql # not compatible
query II rowsort label-6128
SELECT 56, - MIN ( DISTINCT col1 ) AS col1 FROM tab0 cor0
----
56
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6129
SELECT + MIN( ALL + 54 ) AS col2 FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-6129
SELECT + MIN ( ALL + 54 ) AS col2 FROM tab2 AS cor0
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6130
SELECT DISTINCT CAST( NULL AS SIGNED ) * + col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6130
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6131
SELECT - - col2 DIV + col0 AS col2 FROM tab0 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-6131
SELECT - - col2 / + col0 AS col2 FROM tab0 AS cor0
----
0
1
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6132
SELECT + COUNT( * ) DIV + + COUNT( * ) + 72 AS col2 FROM tab0 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-6132
SELECT + COUNT ( * ) / + + COUNT ( * ) + 72 AS col2 FROM tab0 AS cor0
----
73

query I rowsort
SELECT DISTINCT - 62 * col2 AS col2 FROM tab0 AS cor0 WHERE - col2 IN ( + + col2, col1 * + - col2 )
----
-6138

query II rowsort
SELECT col2, 97 FROM tab1 AS cor0
----
59
97
68
97
96
97

query I rowsort
SELECT ALL ( + 32 ) * + + 88 AS col0 FROM tab2
----
2816
2816
2816

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6136
SELECT DISTINCT COUNT( - + 76 ) DIV - + MIN( + - 19 ) * - - COUNT( * ) AS col0 FROM tab1, tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6136
SELECT DISTINCT COUNT ( - + 76 ) / - + MIN ( + - 19 ) * - - COUNT ( * ) AS col0 FROM tab1, tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6137
SELECT DISTINCT 28 DIV 53 * - 23 * + col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6137
SELECT DISTINCT 28 / 53 * - 23 * + col1 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6138
SELECT DISTINCT * FROM tab1 WHERE ( CAST( NULL AS SIGNED ) BETWEEN - col1 AND + CAST( - col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6138
SELECT DISTINCT * FROM tab1 WHERE ( CAST ( NULL AS INTEGER ) BETWEEN - col1 AND + CAST ( - col0 AS INTEGER ) )
----

query I rowsort
SELECT 41 * - - col1 AS col0 FROM tab2
----
2091
2747
3157

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 84 NOT BETWEEN ( - col2 / - col2 ) AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT + col1 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6142
SELECT - SUM( 12 ) FROM tab1
----
-36

skipif mysql # not compatible
query I rowsort label-6142
SELECT - SUM ( 12 ) FROM tab1
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6143
SELECT col1 * + CAST( NULL AS SIGNED ) * + 49 * - 63 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6143
SELECT col1 * + CAST ( NULL AS INTEGER ) * + 49 * - 63 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6144
SELECT + - MIN( DISTINCT - 93 ) FROM tab1 cor0
----
93

skipif mysql # not compatible
query I rowsort label-6144
SELECT + - MIN ( DISTINCT - 93 ) FROM tab1 cor0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6145
SELECT + - MIN( ALL + col2 ) AS col0 FROM tab0 cor0
----
-10

skipif mysql # not compatible
query I rowsort label-6145
SELECT + - MIN ( ALL + col2 ) AS col0 FROM tab0 cor0
----
-10

query II rowsort
SELECT - 20, 74 AS col0 FROM tab0 AS cor0 WHERE NULL < ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 47 col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - 29 + - + 37 + + - 82 * col0 AS col2 FROM tab1 AS cor0 WHERE NOT ( NOT col1 * col2 / + col1 IS NOT NULL )
----
-4248
-7036
-7528

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
-10
-47
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * + - col1 col0 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # DIV for integer division: 
query I rowsort label-6151
SELECT - col1 + - 1 DIV - col2 + + col0 AS col1 FROM tab0
----
-66
66
96

skipif mysql # not compatible
query I rowsort label-6151
SELECT - col1 + - 1 / - col2 + + col0 AS col1 FROM tab0
----
-66
66
96

query III rowsort
SELECT * FROM tab1 WHERE - 24 + - - 96 IS NULL
----

query I rowsort
SELECT col2 * - + 72 + - col1 + + 72 * - + 17 AS col0 FROM tab1
----
-5477
-6167
-8150

query I rowsort
SELECT ALL ( + col2 ) * + col0 FROM tab2 WHERE NOT - 47 * ( - 49 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6155
SELECT - col0 * col1 DIV - - col0 + + ( + col2 ) FROM tab2
----
-28
-37
-9

skipif mysql # not compatible
query I rowsort label-6155
SELECT - col0 * col1 / - - col0 + + ( + col2 ) FROM tab2
----
-28
-37
-9

query I rowsort
SELECT DISTINCT 79 + - 22 FROM tab0
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-6157
SELECT 35 DIV + col1 + col1 FROM tab0
----
22
36
81

skipif mysql # not compatible
query I rowsort label-6157
SELECT 35 / + col1 + col1 FROM tab0
----
22
36
81

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( 32 ) > col1
----
15
81
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6159
SELECT ALL - - CAST( NULL AS SIGNED ) AS col1 FROM tab1 WHERE col2 + col2 * - col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-6159
SELECT ALL - - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 WHERE col2 + col2 * - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6160
SELECT DISTINCT COUNT( * ) + + COUNT( + col2 ) + + - 48 AS col1 FROM tab1 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-6160
SELECT DISTINCT COUNT ( * ) + + COUNT ( + col2 ) + + - 48 AS col1 FROM tab1 AS cor0
----
-42

query I rowsort
SELECT DISTINCT ( + 96 ) + + + col0 * - 41 FROM tab2 cor0
----
-1790
-2528
-2979

query I rowsort
SELECT DISTINCT + - 75 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-75

query I rowsort
SELECT DISTINCT - - 87 FROM tab1 cor0
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6164
SELECT AVG ( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6164
SELECT AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6165
SELECT ALL + MIN( ALL col0 ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-6165
SELECT ALL + MIN ( ALL col0 ) FROM tab0 AS cor0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6166
SELECT 22 + ( - CAST( - 4 AS SIGNED ) ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND col2
----

skipif mysql # not compatible
query I rowsort label-6166
SELECT 22 + ( - CAST ( - 4 AS INTEGER ) ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND col2
----

query II rowsort
SELECT - col1, 2 AS col0 FROM tab2
----
-51
2
-67
2
-77
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6168
SELECT DISTINCT SUM( + - ( - col0 ) ) * CAST( + COUNT( ALL + 96 ) AS SIGNED ) FROM tab2
----
555

skipif mysql # not compatible
query I rowsort label-6168
SELECT DISTINCT SUM ( + - ( - col0 ) ) * CAST ( + COUNT ( ALL + 96 ) AS INTEGER ) FROM tab2
----
555

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 95 ) col1 FROM tab1
----
95
95
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 2 AS col0, col2 + 43 col2 FROM tab0
----
-2
142
-2
53
-2
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 AS col0, col0 col1 FROM tab0
----
-15
15
-87
87
-97
97

query II rowsort
SELECT DISTINCT col0 AS col2, - col2 AS col2 FROM tab1
----
51
-96
85
-59
91
-68

query II rowsort
SELECT ALL + 77 AS col0, 52 FROM tab2
----
77
52
77
52
77
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6174
SELECT ALL + col2 * - + col1 + + - col1 + - col1 FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) * + + 79 + - col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-6174
SELECT ALL + col2 * - + col1 + + - col1 + - col1 FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) * + + 79 + - col1 IS NULL
----

query I rowsort
SELECT DISTINCT + ( - col1 ) * col1 FROM tab2 cor0
----
-2601
-4489
-5929

query I rowsort
SELECT ALL - col2 * 28 + col1 FROM tab2 cor0
----
-1043
-1557
-593

query I rowsort
SELECT - 93 * - col0 AS col2 FROM tab2 AS cor0
----
4278
5952
6975

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6178
SELECT - col1 AS col1 FROM tab1 WHERE + + CAST( - col1 AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query I rowsort label-6178
SELECT - col1 AS col1 FROM tab1 WHERE + + CAST ( - col1 AS INTEGER ) <> NULL
----

query I rowsort
SELECT DISTINCT + + col2 + + 51 FROM tab1 AS cor0
----
110
119
147

onlyif mysql # aggregate syntax: 
query I rowsort label-6180
SELECT - COUNT( * ) * - 63 - - 73 AS col2 FROM tab1 AS cor0
----
262

skipif mysql # not compatible
query I rowsort label-6180
SELECT - COUNT ( * ) * - 63 - - 73 AS col2 FROM tab1 AS cor0
----
262

query I rowsort
SELECT + 40 * 19 FROM tab0 AS cor0
----
760
760
760

query I rowsort
SELECT 84 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
84
84
84

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 57 * + col1 = + - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6184
SELECT ALL MIN( - 2 ) FROM tab2
----
-2

skipif mysql # not compatible
query I rowsort label-6184
SELECT ALL MIN ( - 2 ) FROM tab2
----
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 37 col0 FROM tab2
----
37

query I rowsort
SELECT DISTINCT col2 * + + col2 AS col1 FROM tab1
----
3481
4624
9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 9 - - 48 col0 FROM tab1
----
57
57
57

query I rowsort
SELECT col2 - - - col0 + + ( - col1 ) FROM tab0
----
-49
-98
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6189
SELECT * FROM tab2 AS cor0 WHERE + CAST( - - 94 AS SIGNED ) <> - + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6189
SELECT * FROM tab2 AS cor0 WHERE + CAST ( - - 94 AS INTEGER ) <> - + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6190
SELECT ALL + - ( COUNT( * ) ) + + 3 + - COUNT( * ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6190
SELECT ALL + - ( COUNT ( * ) ) + + 3 + - COUNT ( * ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT 19 + col1 AS col1 FROM tab1 AS cor0
----
24
33
66

query I rowsort
SELECT ALL + col2 * - col1 + - col1 + col1 AS col1 FROM tab1 cor0 WHERE NULL BETWEEN + ( - col2 ) AND NULL
----

query I rowsort
SELECT DISTINCT - ( - 71 ) + - col0 FROM tab0 AS cor0
----
-16
-26
56

onlyif mysql # aggregate syntax: 
query II rowsort label-6194
SELECT DISTINCT + COUNT( * ) AS col0, 10 AS col2 FROM tab2 AS cor0
----
3
10

skipif mysql # not compatible
query II rowsort label-6194
SELECT DISTINCT + COUNT ( * ) AS col0, 10 AS col2 FROM tab2 AS cor0
----
3
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6195
SELECT ALL COUNT( * ) AS col1 FROM tab0 WHERE - col2 * + col1 + - - col2 * col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6195
SELECT ALL COUNT ( * ) AS col1 FROM tab0 WHERE - col2 * + col1 + - - col2 * col1 IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6196
SELECT 85 DIV col2 * + - col1 * + 62 * col2 FROM tab1
----
-18290
-198152
0

skipif mysql # not compatible
query I rowsort label-6196
SELECT 85 / col2 * + - col1 * + 62 * col2 FROM tab1
----
-18290
-198152
0

onlyif mysql # DIV for integer division: 
query II rowsort label-6197
SELECT ALL + col2 DIV + - 64, col1 AS col2 FROM tab1
----
-1
14
-1
47
0
5

skipif mysql # not compatible
query II rowsort label-6197
SELECT ALL + col2 / + - 64, col1 AS col2 FROM tab1
----
-1
14
-1
47
0
5

query I rowsort
SELECT ( - 41 ) AS col0 FROM tab2 AS cor0
----
-41
-41
-41

query I rowsort
SELECT ALL - ( - - ( - - col2 ) ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT - col2 * + - col0 AS col0 FROM tab1 cor0 WHERE NOT ( NOT NULL BETWEEN - + col2 AND col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6201
SELECT 58 DIV - 62 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6201
SELECT 58 / - 62 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 * - + col2 * + ( + col2 ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT col1, + 79 FROM tab2
----
51
79
67
79
77
79

query II rowsort
SELECT DISTINCT + col1 AS col2, + 88 FROM tab0
----
1
88
21
88
81
88

query I rowsort
SELECT DISTINCT - col0 / - + col1 AS col1 FROM tab0 WHERE NULL < + + 36
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 - col0 <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6207
SELECT - CAST( + - COUNT( * ) AS SIGNED ) + - 35 AS col1 FROM tab2
----
-32

skipif mysql # not compatible
query I rowsort label-6207
SELECT - CAST ( + - COUNT ( * ) AS INTEGER ) + - 35 AS col1 FROM tab2
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6208
SELECT DISTINCT CAST( 22 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-6208
SELECT DISTINCT CAST ( 22 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
22

query I rowsort
SELECT DISTINCT + ( ( + col0 ) ) / + 53 * + 24 FROM tab1 AS cor0 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6210
SELECT + MAX( ALL + - 98 ) col2 FROM tab1 AS cor0
----
-98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6210
SELECT + MAX ( ALL + - 98 ) col2 FROM tab1 AS cor0
----
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - - 94 col2 FROM tab2 AS cor0
----
36
54
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 32 + - ( - col0 ) col0 FROM tab1 AS cor0
----
19
53
59

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 + - - col1 < 35 - col1 * 0
----
87
21
10

query I rowsort
SELECT ALL - col1 + - + 37 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - col0 * - + col1 - - 34 AS col2 FROM tab1
----
4311
459
748

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6216
SELECT DISTINCT + col0 * - ( CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6216
SELECT DISTINCT + col0 * - ( CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query I rowsort
SELECT col1 + - col0 + + 70 * - + 42 AS col2 FROM tab0
----
-2874
-3006
-3036

query I rowsort
SELECT + + col1 FROM tab1 WHERE col2 + - col1 * - - col0 <> 20
----
14
47
5

query I rowsort
SELECT + col2 + - - col2 + col2 * + ( + + col0 ) * + col1 * + col2 AS col2 FROM tab2
----
1241080
16904216
7884880

query II rowsort
SELECT DISTINCT - col2 + col0 AS col0, + col2 FROM tab1
----
-45
96
23
68
26
59

query I rowsort
SELECT ALL 39 * + - col2 * + col0 FROM tab2
----
-169650
-41262
-99840

query I rowsort
SELECT + col2 AS col1 FROM tab2 WHERE NULL IN ( - col1, + col0 )
----

query I rowsort
SELECT + - col2 + col1 + col1 FROM tab1 WHERE - - col1 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + col2 BETWEEN col0 AND + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6225
SELECT DISTINCT - + 63 * COUNT( * ) * - 75 FROM tab0 AS cor0
----
14175

skipif mysql # not compatible
query I rowsort label-6225
SELECT DISTINCT - + 63 * COUNT ( * ) * - 75 FROM tab0 AS cor0
----
14175

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col1 >= - - 10 + - + col2 )
----

query I rowsort
SELECT col1 * - 51 AS col1 FROM tab0 AS cor0
----
-1071
-4131
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6228
SELECT ALL MIN( DISTINCT + - 44 ) * + 15 / CAST( NULL AS SIGNED ) + + + COUNT( * ) * COUNT( * ) + - - AVG ( ALL - 52 ) * - COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6228
SELECT ALL MIN ( DISTINCT + - 44 ) * + 15 / CAST ( NULL AS INTEGER ) + + + COUNT ( * ) * COUNT ( * ) + - - AVG ( ALL - 52 ) * - COUNT ( * ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6229
SELECT ( - COUNT( + + col2 ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-6229
SELECT ( - COUNT ( + + col2 ) ) FROM tab2
----
-3

query III rowsort
SELECT * FROM tab1 WHERE NOT + 63 = - 57 * - - 82
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col1 * - 20 AS col1 FROM tab1
----
-100
-280
-940

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col1, - col2 * + 15 + + 97 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - ( + - col2 ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT col1 AS col2, + col0 FROM tab1 AS cor0
----
14
51
47
91
5
85

query II rowsort
SELECT - + col0, 25 AS col2 FROM tab2 AS cor0
----
-46
25
-64
25
-75
25

onlyif mysql # DIV for integer division: 
query I rowsort label-6236
SELECT 1 DIV - 30 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6236
SELECT 1 / - 30 FROM tab0 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6237
SELECT COUNT( + - 42 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6237
SELECT COUNT ( + - 42 ) AS col2 FROM tab0
----
3

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE - + col2 + + col1 > NULL OR NULL > NULL
----

query I rowsort
SELECT DISTINCT - 49 * + 81 * 6 FROM tab0
----
-23814

onlyif mysql # aggregate syntax: 
query I rowsort label-6240
SELECT ALL - 58 + + - COUNT( * ) AS col2 FROM tab2
----
-61

skipif mysql # not compatible
query I rowsort label-6240
SELECT ALL - 58 + + - COUNT ( * ) AS col2 FROM tab2
----
-61

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 > NULL
----

query I rowsort
SELECT 40 * - 61 AS col1 FROM tab0 AS cor0
----
-2440
-2440
-2440

query I rowsort
SELECT DISTINCT - 35 + + 60 AS col2 FROM tab2 AS cor0
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6244
SELECT ALL col2 AS col0 FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
10
47
99

skipif mysql # not compatible
query I rowsort label-6244
SELECT ALL col2 AS col0 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
10
47
99

query I rowsort
SELECT DISTINCT - 85 + + + col2 * + - col1 * col0 * - col0 AS col0 FROM tab2 AS cor0
----
12615595
21858665
2481983

query I rowsort
SELECT ALL - + 39 - - 99 + + col1 * - - col2 * col0 AS col1 FROM tab1 AS cor0
----
25135
290896
68604

query I rowsort
SELECT DISTINCT + + col2 - - - 0 AS col1 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6248
SELECT ALL - - 94 + - COUNT( * ) col2 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6248
SELECT ALL - - 94 + - COUNT ( * ) col2 FROM tab1 AS cor0
----
91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( ( col1 ) ) >= NULL
----

query I rowsort
SELECT + col1 * + ( + - col1 ) - - + 19 FROM tab2 cor0
----
-2582
-4470
-5910

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE NOT col0 * + ( + col2 ) * + col2 + col1 IS NOT NULL
----

query I rowsort
SELECT ALL col1 * - 94 FROM tab1
----
-1316
-4418
-470

onlyif mysql # aggregate syntax: 
query I rowsort label-6253
SELECT DISTINCT COUNT( * ) * - + 77 - + 80 AS col1 FROM tab1
----
-311

skipif mysql # not compatible
query I rowsort label-6253
SELECT DISTINCT COUNT ( * ) * - + 77 - + 80 AS col1 FROM tab1
----
-311

query I rowsort
SELECT ALL + 93 + col2 * - - col0 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6255
SELECT + ( - col0 ) DIV + 34 + + 23 + - col0 DIV 28 FROM tab2 WHERE NOT NULL IS NOT NULL
----
19
20
21

skipif mysql # not compatible
query I rowsort label-6255
SELECT + ( - col0 ) / + 34 + + 23 + - col0 / 28 FROM tab2 WHERE NOT NULL IS NOT NULL
----
19
20
21

query I rowsort
SELECT DISTINCT - col1 * + col2 * + - 5 FROM tab2
----
15400
19430
5865

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( ( - - col2 ), col0 * + + col0, + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6258
SELECT SUM( ALL col2 ) col0 FROM tab2 cor0
----
121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6258
SELECT SUM ( ALL col2 ) col0 FROM tab2 cor0
----
121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6259
SELECT ALL CAST( - ( - col0 ) AS SIGNED ) col2 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6259
SELECT ALL CAST ( - ( - col0 ) AS INTEGER ) col2 FROM tab0 AS cor0
----
15
87
97

query II rowsort
SELECT - col1, - col2 AS col1 FROM tab0 cor0
----
-1
-99
-21
-10
-81
-47

query I rowsort
SELECT ALL 47 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

onlyif mysql # aggregate syntax: 
query I rowsort label-6262
SELECT ALL - - ( - COUNT( DISTINCT - col0 ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6262
SELECT ALL - - ( - COUNT ( DISTINCT - col0 ) ) FROM tab2 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 81 * 79 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col0 * + - col1 - - col0 AS col2 FROM tab1 AS cor0 WHERE NOT - 75 >= NULL
----

query I rowsort
SELECT ALL - 38 AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col1
----

query I rowsort
SELECT - + col2 AS col2 FROM tab1 AS cor0 WHERE NOT col2 * + 77 * + col1 * 93 < NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 * + - col0 * + 58 * - - col0 <> 78
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6268
SELECT ALL - - col1 DIV col2 + + ( + col2 ) FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-6268
SELECT ALL - - col1 / col2 + + ( + col2 ) FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT - col0 FROM tab0 WHERE NOT ( NULL ) <= - col0 * - 13 + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6270
SELECT ALL - ( + + COUNT( * ) ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-6270
SELECT ALL - ( + + COUNT ( * ) ) AS col0 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6271
SELECT ( + + 63 ) * COUNT( * ) + + COUNT( * ) FROM tab2
----
192

skipif mysql # not compatible
query I rowsort label-6271
SELECT ( + + 63 ) * COUNT ( * ) + + COUNT ( * ) FROM tab2
----
192

query I rowsort
SELECT ALL + col1 + + - col0 AS col2 FROM tab2
----
-8
13
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6273
SELECT + col2 + + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6273
SELECT + col2 + + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT ALL col2, + ( + 63 ) AS col2 FROM tab2
----
23
63
40
63
58
63

query I rowsort
SELECT col2 + - - 16 + + - col0 AS col0 FROM tab0
----
-61
18
48

onlyif mysql # DIV for integer division: 
query II rowsort label-6276
SELECT 72 DIV + + 17 + + col1 AS col2, col2 AS col0 FROM tab0
----
25
10
5
99
85
47

skipif mysql # not compatible
query II rowsort label-6276
SELECT 72 / + + 17 + + col1 AS col2, col2 AS col0 FROM tab0
----
25
10
5
99
85
47

query I rowsort
SELECT + - col0 + + col2 AS col2 FROM tab2 cor0
----
-17
-23
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-6278
SELECT DISTINCT - MAX( DISTINCT 19 ) AS col2 FROM tab2 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-6278
SELECT DISTINCT - MAX ( DISTINCT 19 ) AS col2 FROM tab2 AS cor0
----
-19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 27 + - + ( + - col2 ) col2 FROM tab0 AS cor0
----
126
37
74

query I rowsort
SELECT ALL + + col2 + + + col0 FROM tab1 AS cor0
----
144
147
159

query I rowsort
SELECT ALL + 21 + col0 FROM tab2
----
67
85
96

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + + col2 * + col0 * - + col0 IN ( - + col0, + col2 ) AND NOT col2 > + + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col0 + + 16 FROM tab0 AS cor0
----
-71
-81
1

query I rowsort
SELECT ALL - - col1 * - 96 - ( + col0 ) FROM tab2 AS cor0
----
-4942
-6507
-7456

onlyif mysql # aggregate syntax: 
query I rowsort label-6285
SELECT MAX( ALL - + col2 ) + + - 69 FROM tab1 AS cor0
----
-128

skipif mysql # not compatible
query I rowsort label-6285
SELECT MAX ( ALL - + col2 ) + + - 69 FROM tab1 AS cor0
----
-128

query I rowsort
SELECT ALL - col2 - + ( - col0 ) AS col1 FROM tab2 AS cor0
----
17
23
24

query I rowsort
SELECT + 79 + col2 AS col2 FROM tab1 AS cor0
----
138
147
175

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6288
SELECT + CAST( NULL AS SIGNED ), + SUM( - col0 ) col0 FROM tab1
----
NULL
-227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6288
SELECT + CAST ( NULL AS INTEGER ), + SUM ( - col0 ) col0 FROM tab1
----
NULL
-227

query I rowsort
SELECT DISTINCT col1 * 5 AS col0 FROM tab0
----
105
405
5

query I rowsort
SELECT + + 96 FROM tab2 WHERE NOT + col1 IS NULL
----
96
96
96

onlyif mysql # DIV for integer division: 
query I rowsort label-6291
SELECT DISTINCT - 99 * 60 * col0 DIV col1 AS col2 FROM tab1
----
-100980
-11500
-21638

skipif mysql # not compatible
query I rowsort label-6291
SELECT DISTINCT - 99 * 60 * col0 / col1 AS col2 FROM tab1
----
-100980
-11500
-21638

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 33 * col0 col2 FROM tab2
----
1518
2112
2475

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6293
SELECT + CAST( - - CAST( 17 AS SIGNED ) AS SIGNED ) FROM tab2
----
17
17
17

skipif mysql # not compatible
query I rowsort label-6293
SELECT + CAST ( - - CAST ( 17 AS INTEGER ) AS INTEGER ) FROM tab2
----
17
17
17

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 * + col1 * + - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6295
SELECT ALL CAST( + - col0 AS SIGNED ) * - col1 FROM tab0 WHERE NOT 71 * - - col2 * + col1 / - - 19 IS NULL
----
1215
1827
97

skipif mysql # not compatible
query I rowsort label-6295
SELECT ALL CAST ( + - col0 AS INTEGER ) * - col1 FROM tab0 WHERE NOT 71 * - - col2 * + col1 / - - 19 IS NULL
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query II rowsort label-6296
SELECT ALL + 98 AS col2, + COUNT( + 52 ) FROM tab1 cor0
----
98
3

skipif mysql # not compatible
query II rowsort label-6296
SELECT ALL + 98 AS col2, + COUNT ( + 52 ) FROM tab1 cor0
----
98
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6297
SELECT SUM( DISTINCT + col0 ) * + COUNT( * ) FROM tab2 AS cor0
----
555

skipif mysql # not compatible
query I rowsort label-6297
SELECT SUM ( DISTINCT + col0 ) * + COUNT ( * ) FROM tab2 AS cor0
----
555

query II rowsort
SELECT - - col2, + col1 AS col1 FROM tab1 AS cor0
----
59
5
68
47
96
14

query I rowsort
SELECT DISTINCT + col2 * - 18 FROM tab2
----
-1044
-414
-720

onlyif mysql # aggregate syntax: 
query I rowsort label-6300
SELECT ALL - MAX( ALL col2 ) AS col1 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-6300
SELECT ALL - MAX ( ALL col2 ) AS col1 FROM tab0
----
-99

query I rowsort
SELECT DISTINCT 81 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
81

query I rowsort
SELECT ( col1 ) * - + col2 AS col2 FROM tab1
----
-1344
-295
-3196

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6303
SELECT DISTINCT - AVG ( DISTINCT + + CAST( NULL AS DECIMAL ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6303
SELECT DISTINCT - AVG ( DISTINCT + + CAST ( NULL AS REAL ) ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6304
SELECT ALL + + SUM( + 41 ) + - ( + COUNT( * ) ) col0, ( - COUNT( * ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
360
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6304
SELECT ALL + + SUM ( + 41 ) + - ( + COUNT ( * ) ) col0, ( - COUNT ( * ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
360
-9

query I rowsort
SELECT DISTINCT 3 FROM tab2 WHERE col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - col1 * + - col1 + - + col2 AND NULL
----

query I rowsort
SELECT DISTINCT - col0 + + + col2 * - col2 AS col0 FROM tab0 AS cor0
----
-187
-2224
-9898

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 * col2 + + 49 + + col2 >= - - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6309
SELECT ALL col0 * 68 DIV + col0 + + + 4 col2 FROM tab2 AS cor0
----
72
72
72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6309
SELECT ALL col0 * 68 / + col0 + + + 4 col2 FROM tab2 AS cor0
----
72
72
72

query I rowsort
SELECT + 98 + - ( col2 ) FROM tab2 AS cor0
----
40
58
75

query I rowsort
SELECT + col0 + + 3 FROM tab1 cor0
----
54
88
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6312
SELECT DISTINCT - COUNT( * ) DIV - + MIN( col2 ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6312
SELECT DISTINCT - COUNT ( * ) / - + MIN ( col2 ) AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6313
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( NOT + CAST( - col1 AS SIGNED ) IS NULL )
----

skipif mysql # not compatible
query III rowsort label-6313
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( NOT + CAST ( - col1 AS INTEGER ) IS NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6314
SELECT + + 31 DIV - + col2 * + - col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6314
SELECT + + 31 / - + col2 * + - col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT col0 * - 80 FROM tab0
----
-1200
-6960
-7760

query I rowsort
SELECT + 17 * col0 FROM tab2
----
1088
1275
782

onlyif mysql # aggregate syntax: 
query I rowsort label-6317
SELECT + COUNT( DISTINCT - ( + + ( - 11 ) ) ) col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6317
SELECT + COUNT ( DISTINCT - ( + + ( - 11 ) ) ) col1 FROM tab1 AS cor0
----
1

query I rowsort
SELECT + - 9 * - 63 * + 75 * - ( + col2 ) + + col0 + - col2 * - - col2 + - col0 + col0 + + 56 + ( - + 63 ) * - col2 AS col1 FROM tab2 AS cor0
----
-1699960
-2466029
-977053

onlyif mysql # aggregate syntax: 
query I rowsort label-6319
SELECT DISTINCT - ( + - COUNT( * ) ) - 62 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-6319
SELECT DISTINCT - ( + - COUNT ( * ) ) - 62 FROM tab1 AS cor0
----
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - + col2 col0 FROM tab1 WHERE + col2 IS NOT NULL
----
-3481
-4624
-9216

query III rowsort
SELECT * FROM tab0 WHERE ( NOT + 5 * col0 IS NOT NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6322
SELECT - COUNT( * ) DIV 96 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6322
SELECT - COUNT ( * ) / 96 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + ( - 35 ) FROM tab2 AS cor0
----
-35
-35
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-6324
SELECT ( col1 ) DIV + - 20 + col2 col2 FROM tab2 AS cor0
----
21
37
55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6324
SELECT ( col1 ) / + - 20 + col2 col2 FROM tab2 AS cor0
----
21
37
55

query II rowsort
SELECT - - col0, col0 * - 14 AS col1 FROM tab2 AS cor0
----
46
-644
64
-896
75
-1050

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 + col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND + - col1
----

query I rowsort
SELECT + 97 * + 78 AS col2 FROM tab1
----
7566
7566
7566

onlyif mysql # aggregate syntax: 
query I rowsort label-6329
SELECT 39 * COUNT( + 39 ) AS col2 FROM tab2
----
117

skipif mysql # not compatible
query I rowsort label-6329
SELECT 39 * COUNT ( + 39 ) AS col2 FROM tab2
----
117

query I rowsort
SELECT - 31 * + col0 FROM tab2 cor0
----
-1426
-1984
-2325

query I rowsort
SELECT - - ( + + col0 ) FROM tab0 cor0
----
15
87
97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col2 = NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6333
SELECT ALL - 28 + - col0 AS col1 FROM tab0 AS cor0 WHERE NOT col0 * + 99 * + CAST( - 59 AS SIGNED ) IS NULL
----
-115
-125
-43

skipif mysql # not compatible
query I rowsort label-6333
SELECT ALL - 28 + - col0 AS col1 FROM tab0 AS cor0 WHERE NOT col0 * + 99 * + CAST ( - 59 AS INTEGER ) IS NULL
----
-115
-125
-43

query I rowsort
SELECT DISTINCT col0 + 20 AS col1 FROM tab0
----
107
117
35

query III rowsort
SELECT * FROM tab1 WHERE NOT - 38 <> NULL
----

query II rowsort
SELECT DISTINCT + col0 AS col0, - col2 FROM tab2 AS cor0
----
46
-23
64
-40
75
-58

query I rowsort
SELECT ALL 33 + col1 FROM tab0 AS cor0
----
114
34
54

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 24 + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6339
SELECT ALL col0, col1 + - CAST( - col1 AS SIGNED ) * + CAST( NULL AS DECIMAL ) + - 52 FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-6339
SELECT ALL col0, col1 + - CAST ( - col1 AS INTEGER ) * + CAST ( NULL AS REAL ) + - 52 FROM tab1
----
51
NULL
85
NULL
91
NULL

query I rowsort
SELECT 12 + - col2 FROM tab1
----
-47
-56
-84

query I rowsort
SELECT DISTINCT 80 * - - 11 FROM tab1
----
880

query I rowsort
SELECT DISTINCT - 62 FROM tab0 AS cor0 WHERE ( NULL ) IN ( - - 14 + - col2 )
----

query I rowsort
SELECT ALL + 72 + col2 FROM tab2 AS cor0
----
112
130
95

query I rowsort
SELECT ALL + ( + - ( - 86 ) ) AS col1 FROM tab0 AS cor0
----
86
86
86

query I rowsort
SELECT + - 0 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6346
SELECT 40 DIV - - COUNT( DISTINCT + 65 ) - 85 FROM tab0
----
-45

skipif mysql # not compatible
query I rowsort label-6346
SELECT 40 / - - COUNT ( DISTINCT + 65 ) - 85 FROM tab0
----
-45

query I rowsort
SELECT ALL 53 - - 83 * 26 AS col1 FROM tab1
----
2211
2211
2211

onlyif mysql # aggregate syntax: 
query I rowsort label-6348
SELECT ALL + COUNT( * ) + 81 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
90

skipif mysql # not compatible
query I rowsort label-6348
SELECT ALL + COUNT ( * ) + 81 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-6349
SELECT ALL col1 DIV + 9 FROM tab1
----
0
1
5

skipif mysql # not compatible
query I rowsort label-6349
SELECT ALL col1 / + 9 FROM tab1
----
0
1
5

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col1 + - col0 + + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6351
SELECT DISTINCT - ( + - COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6351
SELECT DISTINCT - ( + - COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6352
SELECT col1 * - CAST( NULL AS SIGNED ) / - col0 col0, col2 FROM tab2 AS cor0 WHERE NOT ( NOT - - col1 / + col0 > - ( - 57 ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6352
SELECT col1 * - CAST ( NULL AS INTEGER ) / - col0 col0, col2 FROM tab2 AS cor0 WHERE NOT ( NOT - - col1 / + col0 > - ( - 57 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6353
SELECT - - MAX( + col0 ) AS col2 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-6353
SELECT - - MAX ( + col0 ) AS col2 FROM tab1 AS cor0
----
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 41 col0 FROM tab2 cor0
----
41

query I rowsort
SELECT + ( + + 38 ) FROM tab1 AS cor0
----
38
38
38

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN col1 * col0 + col1 AND + ( col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6357
SELECT COUNT( * ) DIV 39 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6357
SELECT COUNT ( * ) / 39 FROM tab1
----
0

query II rowsort
SELECT ALL - col0 AS col2, - 85 AS col1 FROM tab2
----
-46
-85
-64
-85
-75
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-6359
SELECT + MAX( ( - col0 ) ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-6359
SELECT + MAX ( ( - col0 ) ) FROM tab0
----
-15

query I rowsort
SELECT DISTINCT ( + 70 ) / - + col2 AS col0 FROM tab1 WHERE + + 37 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 34 col2 FROM tab1
----
-34
-34
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-6362
SELECT ALL + MAX( DISTINCT + 81 ) AS col1 FROM tab2
----
81

skipif mysql # not compatible
query I rowsort label-6362
SELECT ALL + MAX ( DISTINCT + 81 ) AS col1 FROM tab2
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6363
SELECT ALL + CAST( 94 AS SIGNED ) FROM tab2
----
94
94
94

skipif mysql # not compatible
query I rowsort label-6363
SELECT ALL + CAST ( 94 AS INTEGER ) FROM tab2
----
94
94
94

query I rowsort
SELECT ALL ( - - 50 ) FROM tab0 AS cor0
----
50
50
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6365
SELECT DISTINCT + MAX( ALL - 72 ) AS col2 FROM tab2 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-6365
SELECT DISTINCT + MAX ( ALL - 72 ) AS col2 FROM tab2 AS cor0
----
-72

query II rowsort
SELECT + col0 AS col0, 20 FROM tab2 AS cor0
----
46
20
64
20
75
20

query I rowsort
SELECT - col1 + - + ( - 15 ) AS col2 FROM tab0
----
-6
-66
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6368
SELECT ( - 97 ) * + - AVG ( - - 62 ) * + CAST( NULL AS SIGNED ) / + 63 + + COUNT( * ) + 68 AS col1, 34 FROM tab1, tab2 AS cor0
----
NULL
34

skipif mysql # not compatible
query II rowsort label-6368
SELECT ( - 97 ) * + - AVG ( - - 62 ) * + CAST ( NULL AS INTEGER ) / + 63 + + COUNT ( * ) + 68 AS col1, 34 FROM tab1, tab2 AS cor0
----
NULL
34

query I rowsort
SELECT 67 + + col0 AS col2 FROM tab1 AS cor0
----
118
152
158

query I rowsort
SELECT DISTINCT + 64 + col1 FROM tab0 AS cor0
----
145
65
85

query I rowsort
SELECT + col2 + - - col1 + + col0 FROM tab0 AS cor0
----
118
143
197

onlyif mysql # aggregate syntax: 
query I rowsort label-6372
SELECT DISTINCT + + SUM( - 79 ) FROM tab0 AS cor0
----
-237

skipif mysql # not compatible
query I rowsort label-6372
SELECT DISTINCT + + SUM ( - 79 ) FROM tab0 AS cor0
----
-237

onlyif mysql # aggregate syntax: 
query I rowsort label-6373
SELECT + ( + MIN( + + col1 ) ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-6373
SELECT + ( + MIN ( + + col1 ) ) FROM tab2 AS cor0
----
51

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab0 cor0 WHERE NOT col0 NOT BETWEEN - - col1 + + - col0 AND + col0
----
1
21

query I rowsort
SELECT DISTINCT - 59 AS col2 FROM tab2 WHERE + + col1 + col2 IS NULL
----

query I rowsort
SELECT DISTINCT col1 * + 10 FROM tab1
----
140
470
50

query I rowsort
SELECT + - 82 AS col2 FROM tab1 WHERE NULL <= + - col2 + 79
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IS NULL AND - ( col0 ) * col2 * - col2 + + - col0 IS NOT NULL
----

query I rowsort
SELECT - col2 * + col2 * - - ( + + col2 ) + + col2 - - + 68 AS col1 FROM tab1 AS cor0
----
-205252
-314296
-884572

query I rowsort
SELECT + 66 + + 44 FROM tab0 AS cor0
----
110
110
110

query I rowsort
SELECT ALL - col0 + + col1 * + col1 * - + col0 + + col0 FROM tab0 AS cor0
----
-38367
-97
-98415

query I rowsort
SELECT - 90 * + ( - - 68 ) + - 53 FROM tab2 AS cor0
----
-6173
-6173
-6173

onlyif mysql # DIV for integer division: 
query I rowsort label-6383
SELECT ALL col2 * - + 44 - - - 7 DIV + 64 + + ( + + col2 ) AS col2 FROM tab0 AS cor0
----
-2021
-4257
-430

skipif mysql # not compatible
query I rowsort label-6383
SELECT ALL col2 * - + 44 - - - 7 / + 64 + + ( + + col2 ) AS col2 FROM tab0 AS cor0
----
-2021
-4257
-430

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6384
SELECT DISTINCT + col2 + - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6384
SELECT DISTINCT + col2 + - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT ALL col0 * + 91 * 62 FROM tab1
----
287742
479570
513422

onlyif mysql # aggregate syntax: 
query II rowsort label-6386
SELECT 45 AS col1, - COUNT( * ) FROM tab0
----
45
-3

skipif mysql # not compatible
query II rowsort label-6386
SELECT 45 AS col1, - COUNT ( * ) FROM tab0
----
45
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6387
SELECT + CAST( NULL AS DECIMAL ) / + - ( + col2 ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6387
SELECT + CAST ( NULL AS REAL ) / + - ( + col2 ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6388
SELECT - CAST( NULL AS SIGNED ) * - - 37 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6388
SELECT - CAST ( NULL AS INTEGER ) * - - 37 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + col2 AS col2, col2 AS col0 FROM tab1 AS cor0
----
59
59
68
68
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6390
SELECT COUNT( + col1 ) * - 44 AS col1 FROM tab2 AS cor0
----
-132

skipif mysql # not compatible
query I rowsort label-6390
SELECT COUNT ( + col1 ) * - 44 AS col1 FROM tab2 AS cor0
----
-132

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + col1 + - col0 < + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6392
SELECT DISTINCT MIN( ALL - - 64 ) FROM tab0 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-6392
SELECT DISTINCT MIN ( ALL - - 64 ) FROM tab0 AS cor0
----
64

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 BETWEEN NULL AND col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 79 * - 76 < + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6395
SELECT DISTINCT COUNT( * ) * 21 DIV + - COUNT( * ) FROM tab0
----
-21

skipif mysql # not compatible
query I rowsort label-6395
SELECT DISTINCT COUNT ( * ) * 21 / + - COUNT ( * ) FROM tab0
----
-21

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col0 * - 83 * + col2 + + col1 = col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 * + 96 FROM tab2
----
-4896
-6432
-7392

onlyif mysql # aggregate syntax: 
query I rowsort label-6398
SELECT ALL COUNT( * ) + MIN( DISTINCT col1 ) + + COUNT( * ) FROM tab0
----
7

skipif mysql # not compatible
query I rowsort label-6398
SELECT ALL COUNT ( * ) + MIN ( DISTINCT col1 ) + + COUNT ( * ) FROM tab0
----
7

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND - col1 / col2 + + col2 * - col2
----

query I rowsort
SELECT ALL + 59 * + 25 AS col2 FROM tab1
----
1475
1475
1475

query I rowsort
SELECT - 50 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL > - - 89
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 * - 57 * 59 + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-6404
SELECT ALL 44 DIV + - col0 + - 90 FROM tab0 AS cor0
----
-90
-90
-92

skipif mysql # not compatible
query I rowsort label-6404
SELECT ALL 44 / + - col0 + - 90 FROM tab0 AS cor0
----
-90
-90
-92

query I rowsort
SELECT col1 + 85 + + 91 FROM tab0 AS cor0
----
177
197
257

onlyif mysql # aggregate syntax: 
query I rowsort label-6406
SELECT DISTINCT - COUNT( + col2 ) * - + SUM( ALL + + col2 ) AS col2 FROM tab2
----
363

skipif mysql # not compatible
query I rowsort label-6406
SELECT DISTINCT - COUNT ( + col2 ) * - + SUM ( ALL + + col2 ) AS col2 FROM tab2
----
363

onlyif mysql # aggregate syntax: 
query I rowsort label-6407
SELECT ALL COUNT( * ) - + MIN( - - 13 ) AS col2 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-6407
SELECT ALL COUNT ( * ) - + MIN ( - - 13 ) AS col2 FROM tab0
----
-10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 * + col0, 2 col2 FROM tab2
----
2346
2
4928
2
5025
2

query I rowsort
SELECT 5 FROM tab1 WHERE + 47 IS NULL
----

query I rowsort
SELECT ( col0 ) * 27 AS col1 FROM tab0
----
2349
2619
405

query III rowsort
SELECT * FROM tab2 WHERE - col1 * col2 + - ( + - 67 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6412
SELECT SUM( + 1 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6412
SELECT SUM ( + 1 ) AS col0 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6413
SELECT - - col0 * ( - CAST( NULL AS SIGNED ) ) * - + col0 AS col1 FROM tab0 WHERE NOT col2 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6413
SELECT - - col0 * ( - CAST ( NULL AS INTEGER ) ) * - + col0 AS col1 FROM tab0 WHERE NOT col2 IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + ( - 12 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 + - + col2 NOT BETWEEN NULL AND - col2 * + - col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 <= + col2 * col2 + - col1 * - - 92
----

query I rowsort
SELECT ( + - 44 ) FROM tab0 AS cor0
----
-44
-44
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6418
SELECT + ( + ( - + 89 ) ) / + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6418
SELECT + ( + ( - + 89 ) ) / + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 * + col1 * col0 FROM tab2
----
107916
315392
376875

onlyif mysql # aggregate syntax: 
query I rowsort label-6420
SELECT DISTINCT - SUM( DISTINCT + - col2 ) AS col1 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-6420
SELECT DISTINCT - SUM ( DISTINCT + - col2 ) AS col1 FROM tab0
----
156

query I rowsort
SELECT - col0 * 63 * 62 * ( + col0 ) AS col1 FROM tab0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( + - col0 ) * - col0 + + 78 - col1 + - + ( col0 ) - - - col1 FROM tab2
----
-2186
-4236
-5756

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab1 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6424
SELECT ALL + - 58 + - MIN( + - 17 ) FROM tab1 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-6424
SELECT ALL + - 58 + - MIN ( + - 17 ) FROM tab1 AS cor0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-6425
SELECT ALL - - SUM( ALL - col0 ) AS col2 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-6425
SELECT ALL - - SUM ( ALL - col0 ) AS col2 FROM tab1 AS cor0
----
-227

query II rowsort
SELECT ALL col1 AS col2, 22 AS col1 FROM tab1 AS cor0
----
14
22
47
22
5
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6427
SELECT + - 46 + - - MIN( - col2 ) FROM tab0 AS cor0
----
-145

skipif mysql # not compatible
query I rowsort label-6427
SELECT + - 46 + - - MIN ( - col2 ) FROM tab0 AS cor0
----
-145

query I rowsort
SELECT ALL col0 + 96 + - col1 * 85 FROM tab2
----
-4193
-5524
-6385

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6429
SELECT ALL - CAST( NULL AS SIGNED ) + - col1 + - ( CAST( - 69 AS SIGNED ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6429
SELECT ALL - CAST ( NULL AS INTEGER ) + - col1 + - ( CAST ( - 69 AS INTEGER ) ) FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - + col0 col1 FROM tab2 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6431
SELECT DISTINCT - COUNT( * ) + - 39 AS col2, - 21 AS col0 FROM tab1 AS cor0
----
-42
-21

skipif mysql # not compatible
query II rowsort label-6431
SELECT DISTINCT - COUNT ( * ) + - 39 AS col2, - 21 AS col0 FROM tab1 AS cor0
----
-42
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6432
SELECT ALL - CAST( NULL AS SIGNED ) + - col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6432
SELECT ALL - CAST ( NULL AS INTEGER ) + - col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6433
SELECT DISTINCT MAX( DISTINCT - 54 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
-54

skipif mysql # not compatible
query I rowsort label-6433
SELECT DISTINCT MAX ( DISTINCT - 54 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
-54

query II rowsort
SELECT - ( + - col1 ) AS col0, col2 FROM tab2 AS cor0
----
51
23
67
58
77
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6435
SELECT col2 FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) * 90 <> NULL
----

skipif mysql # not compatible
query I rowsort label-6435
SELECT col2 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) * 90 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6436
SELECT ALL + - COUNT( * ) - + 47 FROM tab2 cor0
----
-50

skipif mysql # not compatible
query I rowsort label-6436
SELECT ALL + - COUNT ( * ) - + 47 FROM tab2 cor0
----
-50

query III rowsort
SELECT * FROM tab1 WHERE - - col2 * - ( - col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 * - col1 - - 13 + + + 6 FROM tab1
----
4296
444
733

query I rowsort
SELECT ALL 89 / + - AVG ( ALL - - 46 ) FROM tab1 WHERE NOT + 53 + - 21 / - col0 NOT BETWEEN col1 AND NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6440
SELECT + 3 + + COUNT( * ) DIV - 1 - COUNT( + 88 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-6440
SELECT + 3 + + COUNT ( * ) / - 1 - COUNT ( + 88 ) AS col0 FROM tab2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6441
SELECT + AVG ( DISTINCT - + col1 ) * - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6441
SELECT + AVG ( DISTINCT - + col1 ) * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT + col0 * - + col0 AS col0 FROM tab2 AS cor0
----
-2116
-4096
-5625

onlyif mysql # aggregate syntax: 
query I rowsort label-6443
SELECT + COUNT( - - 87 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6443
SELECT + COUNT ( - - 87 ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6444
SELECT - CAST( NULL AS SIGNED ) + + 46 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6444
SELECT - CAST ( NULL AS INTEGER ) + + 46 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6445
SELECT CAST( NULL AS SIGNED ) + 12 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6445
SELECT CAST ( NULL AS INTEGER ) + 12 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * 32 + col2 * + col2 AS col0 FROM tab1
----
12288
5369
6800

query I rowsort
SELECT ALL col1 AS col0 FROM tab0 WHERE - col1 + - 44 IS NOT NULL
----
1
21
81

query III rowsort
SELECT * FROM tab1 WHERE col1 NOT BETWEEN col0 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 94 + col2 * + 13 AS col0 FROM tab2
----
205
426
660

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NULL NOT BETWEEN ( NULL ) AND - col0
----

query I rowsort
SELECT + 83 + + 70 FROM tab2
----
153
153
153

query I rowsort
SELECT + 45 * + 73 + col0 AS col0 FROM tab0
----
3300
3372
3382

onlyif mysql # aggregate syntax: 
query I rowsort label-6453
SELECT DISTINCT 29 + + COUNT( * ) FROM tab1
----
32

skipif mysql # not compatible
query I rowsort label-6453
SELECT DISTINCT 29 + + COUNT ( * ) FROM tab1
----
32

query III rowsort
SELECT * FROM tab0 WHERE NOT 62 * + col2 + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6455
SELECT ( + COUNT( * ) ) AS col1 FROM tab1 WHERE NOT + col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6455
SELECT ( + COUNT ( * ) ) AS col1 FROM tab1 WHERE NOT + col2 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6456
SELECT MIN( 62 ) + COUNT( * ) FROM tab0
----
65

skipif mysql # not compatible
query I rowsort label-6456
SELECT MIN ( 62 ) + COUNT ( * ) FROM tab0
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6457
SELECT DISTINCT * FROM tab1 WHERE NOT col2 BETWEEN - col2 AND - CAST( 3 AS SIGNED ) / - CAST( - col2 * + col0 + col0 / col0 AS SIGNED ) + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6457
SELECT DISTINCT * FROM tab1 WHERE NOT col2 BETWEEN - col2 AND - CAST ( 3 AS INTEGER ) / - CAST ( - col2 * + col0 + col0 / col0 AS INTEGER ) + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE NOT col0 NOT IN ( + col0 )
----
51
67
77

query I rowsort
SELECT + 22 * + ( + 14 ) AS col2 FROM tab0
----
308
308
308

query III rowsort
SELECT * FROM tab1 WHERE col0 * - col2 BETWEEN NULL AND 13 * + col1
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 * + col1 + - col1 IS NULL
----

query I rowsort
SELECT 73 FROM tab1 WHERE NOT ( NULL ) = - 36
----

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( + 39 - - col1 * col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 54 * + col0 col1 FROM tab0
----
-4698
-5238
-810

onlyif mysql # aggregate syntax: 
query I rowsort label-6465
SELECT ALL COUNT( * ) + 9 * - 65 AS col0 FROM tab0 WHERE NULL BETWEEN + 30 AND + col2
----
-585

skipif mysql # not compatible
query I rowsort label-6465
SELECT ALL COUNT ( * ) + 9 * - 65 AS col0 FROM tab0 WHERE NULL BETWEEN + 30 AND + col2
----
-585

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) BETWEEN + 76 - col2 AND NULL
----

query I rowsort
SELECT ALL + ( ( + col1 ) ) * - ( - col0 - col1 ) + - col2 FROM tab2
----
10817
4924
9456

query I rowsort
SELECT ALL col2 AS col1 FROM tab2 AS cor0 WHERE - col0 - + col0 IS NOT NULL
----
23
40
58

query I rowsort
SELECT ( 88 ) + - col2 FROM tab1 cor0
----
-8
20
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6470
SELECT DISTINCT 75 DIV COUNT( * ) FROM tab1 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-6470
SELECT DISTINCT 75 / COUNT ( * ) FROM tab1 AS cor0
----
25

query I rowsort
SELECT DISTINCT + 28 FROM tab0 AS cor0 WHERE NOT - col0 / - col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - ( 32 ) col0 FROM tab0 AS cor0
----
-11
-31
49

query I rowsort
SELECT ( + 29 ) * 77 AS col1 FROM tab2
----
2233
2233
2233

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 41 * 43 col0 FROM tab2
----
1763
1763
1763

onlyif mysql # aggregate syntax: 
query I rowsort label-6475
SELECT + MAX( col1 ) AS col2 FROM tab2 WHERE NULL IS NULL
----
77

skipif mysql # not compatible
query I rowsort label-6475
SELECT + MAX ( col1 ) AS col2 FROM tab2 WHERE NULL IS NULL
----
77

query I rowsort
SELECT ( col0 ) * 34 FROM tab0
----
2958
3298
510

query I rowsort
SELECT 89 - - col1 AS col0 FROM tab0
----
110
170
90

query I rowsort
SELECT - col1 - 87 * - col2 AS col1 FROM tab2
----
1950
3403
4979

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + 70 AND 35
----

query I rowsort
SELECT 45 + 18 FROM tab2 AS cor0
----
63
63
63

query I rowsort
SELECT DISTINCT col0 + 46 AS col0 FROM tab0 AS cor0
----
133
143
61

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6482
SELECT - col1 + 37 FROM tab2 cor0 WHERE ( CAST( NULL AS DECIMAL ) ) > ( col0 )
----

skipif mysql # not compatible
query I rowsort label-6482
SELECT - col1 + 37 FROM tab2 cor0 WHERE ( CAST ( NULL AS REAL ) ) > ( col0 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( 91 * ( 6 * - col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6484
SELECT DISTINCT - - COUNT( * ) + 24 FROM tab2 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-6484
SELECT DISTINCT - - COUNT ( * ) + 24 FROM tab2 AS cor0
----
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 9 - col2 col0 FROM tab1 AS cor0
----
-50
-59
-87

query I rowsort
SELECT ALL - + 69 * 66 + col2 * 40 FROM tab2 cor0
----
-2234
-2954
-3634

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6487
SELECT ALL - 60 + CAST( COUNT( - col2 ) AS SIGNED ) * - ( 5 ) AS col1 FROM tab0 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-6487
SELECT ALL - 60 + CAST ( COUNT ( - col2 ) AS INTEGER ) * - ( 5 ) AS col1 FROM tab0 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6488
SELECT DISTINCT MIN( DISTINCT col1 ) AS col2 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-6488
SELECT DISTINCT MIN ( DISTINCT col1 ) AS col2 FROM tab2 AS cor0
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6489
SELECT DISTINCT COUNT( - ( + CAST( NULL AS SIGNED ) ) ) - - 53 FROM tab2
----
53

skipif mysql # not compatible
query I rowsort label-6489
SELECT DISTINCT COUNT ( - ( + CAST ( NULL AS INTEGER ) ) ) - - 53 FROM tab2
----
53

query I rowsort
SELECT + col0 * - + col0 * 83 FROM tab2
----
-175628
-339968
-466875

onlyif mysql # aggregate syntax: 
query I rowsort label-6491
SELECT ALL - COUNT( + 34 ) - + COUNT( * ) FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-6491
SELECT ALL - COUNT ( + 34 ) - + COUNT ( * ) FROM tab1
----
-6

query III rowsort
SELECT * FROM tab2 WHERE col0 / + 65 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6493
SELECT ALL + ( - 8 ) + MIN( ALL + col2 - + col2 ) FROM tab0 WHERE ( - CAST( + col0 AS SIGNED ) ) < - col1 / + col2
----
-8

skipif mysql # not compatible
query I rowsort label-6493
SELECT ALL + ( - 8 ) + MIN ( ALL + col2 - + col2 ) FROM tab0 WHERE ( - CAST ( + col0 AS INTEGER ) ) < - col1 / + col2
----
-8

query III rowsort
SELECT * FROM tab0 WHERE NOT - 68 <= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6495
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 82 * + ( CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-6495
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 82 * + ( CAST ( NULL AS INTEGER ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6496
SELECT ALL + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT + 92 * col0 BETWEEN col0 - + col1 AND + col0 + - 17
----
3

skipif mysql # not compatible
query I rowsort label-6496
SELECT ALL + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT + 92 * col0 BETWEEN col0 - + col1 AND + col0 + - 17
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6498
SELECT DISTINCT COUNT( * ) + + 90 AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
99

skipif mysql # not compatible
query I rowsort label-6498
SELECT DISTINCT COUNT ( * ) + + 90 AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
99

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT col1 < col1 )
----

query I rowsort
SELECT ALL + 25 * col2 * col2 * col0 AS col1 FROM tab1 AS cor0
----
10519600
11750400
7397125

onlyif mysql # aggregate syntax: 
query I rowsort label-6501
SELECT 44 * + COUNT( * ) * - - 65 AS col2 FROM tab2 AS cor0
----
8580

skipif mysql # not compatible
query I rowsort label-6501
SELECT 44 * + COUNT ( * ) * - - 65 AS col2 FROM tab2 AS cor0
----
8580

query I rowsort
SELECT - - col0 * 50 FROM tab0 AS cor0
----
4350
4850
750

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 59 * + + 50 IS NOT NULL
----

query I rowsort
SELECT ALL - 27 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-27
-27
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-6505
SELECT - - 90, - ( - ( + COUNT( * ) ) ) AS col2 FROM tab2 AS cor0
----
90
3

skipif mysql # not compatible
query II rowsort label-6505
SELECT - - 90, - ( - ( + COUNT ( * ) ) ) AS col2 FROM tab2 AS cor0
----
90
3

query I rowsort
SELECT - 11 * - col0 + + 64 + + 79 * col1 AS col2 FROM tab0 AS cor0
----
1210
2680
6628

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 NOT IN ( + col2 )
----

query I rowsort
SELECT - 53 * + 44 FROM tab2
----
-2332
-2332
-2332

onlyif mysql # DIV for integer division: 
query I rowsort label-6509
SELECT col2 DIV - - ( - + col2 ) AS col1 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6509
SELECT col2 / - - ( - + col2 ) AS col1 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - col0 + + col1 + col0 AS col1 FROM tab0 AS cor0
----
1
21
81

query II rowsort
SELECT - ( col0 ), - 29 + 68 * 51 AS col0 FROM tab0 AS cor0
----
-15
3439
-87
3439
-97
3439

query I rowsort
SELECT 76 + - + col1 + + + 51 FROM tab1 AS cor0
----
113
122
80

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 71 * - - 29 IS NOT NULL
----

query I rowsort
SELECT - col1 AS col1 FROM tab0 cor0 WHERE - col0 IS NOT NULL
----
-1
-21
-81

query III rowsort
SELECT * FROM tab0 WHERE col2 + col2 + - col1 + + 34 * col0 * - col1 * - col0 >= ( NULL )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + ( - 62 ) NOT IN ( 41 + 31 )
----

query I rowsort
SELECT ALL - - 61 + - col1 + + col0 AS col2 FROM tab1 cor0
----
105
141
98

onlyif mysql # DIV for integer division: 
query I rowsort label-6518
SELECT 64 DIV col0 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6518
SELECT 64 / col0 FROM tab1 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( 14 ) + + col0 + - col1 col2 FROM tab0 AS cor0
----
-52
110
80

query I rowsort
SELECT DISTINCT - ( - 66 ) FROM tab1 AS cor0
----
66

query II rowsort
SELECT DISTINCT col0, - col2 * + - col0 FROM tab1
----
51
4896
85
5015
91
6188

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6522
SELECT ALL * FROM tab2 WHERE NOT ( NOT ( + col0 / col2 BETWEEN NULL AND 50 + CAST( col2 AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-6522
SELECT ALL * FROM tab2 WHERE NOT ( NOT ( + col0 / col2 BETWEEN NULL AND 50 + CAST ( col2 AS INTEGER ) ) )
----

query I rowsort
SELECT - col1 + - 35 FROM tab1 WHERE NOT NULL BETWEEN + + 2 + + col0 AND + - 69
----

query II rowsort
SELECT col0 * + col0, + col2 FROM tab1
----
2601
96
7225
59
8281
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6525
SELECT COUNT( + + 32 ) col1 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6525
SELECT COUNT ( + + 32 ) col1 FROM tab0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 13 <> NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( 32 ) * - col2 * + + 74 + - - col1 * - col0 IN ( ( + 23 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + 7 AS col0 FROM tab1 AS cor0
----
7
7
7

query II rowsort
SELECT ALL col1 AS col1, - 98 * col0 AS col1 FROM tab2 cor0
----
51
-4508
67
-7350
77
-6272

query I rowsort
SELECT 17 + - - col2 FROM tab2 WHERE NOT NULL <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6531
SELECT col1 * + col0 DIV - col0 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-6531
SELECT col1 * + col0 / - col0 FROM tab2
----
-51
-67
-77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT ( - col0 / + col0 - - col2 + col2 - + col2 / - col2 ) <> - col2 * - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 AS col0 FROM tab2 AS cor0 WHERE NOT - col0 * - col0 IS NULL
----
51
67
77

query I rowsort
SELECT ALL + ( - - ( + - col0 ) ) AS col1 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-6535
SELECT DISTINCT col1 + + col1 DIV col0 + + col1 FROM tab1 AS cor0
----
10
28
94

skipif mysql # not compatible
query I rowsort label-6535
SELECT DISTINCT col1 + + col1 / col0 + + col1 FROM tab1 AS cor0
----
10
28
94

query III rowsort
SELECT * FROM tab1 WHERE + col1 > ( - col1 * - col0 )
----

query I rowsort
SELECT col2 + + - 57 AS col0 FROM tab0
----
-10
-47
42

query II rowsort
SELECT DISTINCT col0, + col1 AS col2 FROM tab2
----
46
51
64
77
75
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 49 + 44 + + + col2 + - col0 col0 FROM tab1
----
138
67
70

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( - col1 + - col1 )
----

query I rowsort
SELECT - 71 * + - col2 + + col2 * + col2 FROM tab2
----
2162
4440
7482

query I rowsort
SELECT DISTINCT + col0 - + col2 + col2 * + + 71 AS col2 FROM tab0 cor0
----
3305
7027
787

query II rowsort
SELECT DISTINCT + - col0 - - col1 + + 93, + 64 * - col2 * + - 32 * - + 99 AS col0 FROM tab1 AS cor0
----
13
-11962368
49
-13787136
56
-19464192

onlyif mysql # aggregate syntax: 
query I rowsort label-6544
SELECT DISTINCT - 21 - + - MIN( ALL - ( - 83 ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
62

skipif mysql # not compatible
query I rowsort label-6544
SELECT DISTINCT - 21 - + - MIN ( ALL - ( - 83 ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6545
SELECT ALL ( - + SUM( ALL - - col1 ) ) FROM tab0 AS cor0 WHERE NOT 55 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6545
SELECT ALL ( - + SUM ( ALL - - col1 ) ) FROM tab0 AS cor0 WHERE NOT 55 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT - - col2 + + + col1 FROM tab2 AS cor0
----
117
125
74

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 87 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6548
SELECT ALL * FROM tab1 AS cor0 WHERE CAST( col0 AS SIGNED ) NOT IN ( + 90, col2 + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6548
SELECT ALL * FROM tab1 AS cor0 WHERE CAST ( col0 AS INTEGER ) NOT IN ( + 90, col2 + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6549
SELECT - - MAX( col0 ) col2 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6549
SELECT - - MAX ( col0 ) col2 FROM tab0 AS cor0
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6550
SELECT COUNT( + 89 ) DIV COUNT( * ) AS col2 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-6550
SELECT COUNT ( + 89 ) / COUNT ( * ) AS col2 FROM tab0 cor0
----
1

query I rowsort
SELECT ALL - - 62 * - 67 AS col0 FROM tab2 AS cor0
----
-4154
-4154
-4154

query I rowsort
SELECT ALL + col2 * - col0 * - col1 FROM tab1
----
25075
290836
68544

query I rowsort
SELECT + col0 * + 98 AS col1 FROM tab0
----
1470
8526
9506

onlyif mysql # DIV for integer division: 
query I rowsort label-6554
SELECT ALL 41 DIV 66 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6554
SELECT ALL 41 / 66 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL + 4 FROM tab2 WHERE NOT ( - - col0 * + col1 / - col2 ) IS NULL
----
4
4
4

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6556
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - MIN( col2 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6556
SELECT DISTINCT - CAST ( NULL AS REAL ) * - MIN ( col2 ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6557
SELECT ALL * FROM tab0 WHERE NOT + col1 NOT IN ( 7 * + + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6557
SELECT ALL * FROM tab0 WHERE NOT + col1 NOT IN ( 7 * + + CAST ( NULL AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 AS col1, 32 col2 FROM tab2 AS cor0
----
-46
32
-64
32
-75
32

query I rowsort
SELECT DISTINCT + col1 * + col0 * - 71 AS col0 FROM tab2 AS cor0
----
-166566
-349888
-356775

onlyif mysql # DIV for integer division: 
query I rowsort label-6560
SELECT ALL + ( - col0 ) DIV 9 AS col0 FROM tab1
----
-10
-5
-9

skipif mysql # not compatible
query I rowsort label-6560
SELECT ALL + ( - col0 ) / 9 AS col0 FROM tab1
----
-10
-5
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( - + col1 ) + + 96 col2 FROM tab1 AS cor0
----
101
110
143

onlyif mysql # aggregate syntax: 
query II rowsort label-6562
SELECT ALL - 32, + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-32
3

skipif mysql # not compatible
query II rowsort label-6562
SELECT ALL - 32, + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-32
3

query I rowsort
SELECT ALL 6 * - - col2 + col2 AS col1 FROM tab1 AS cor0
----
413
476
672

query I rowsort
SELECT - 95 + - col1 FROM tab2 cor0
----
-146
-162
-172

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6565
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) - - col0 <= NULL
----

skipif mysql # not compatible
query III rowsort label-6565
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) - - col0 <= NULL
----

query I rowsort
SELECT ALL - col0 + 73 FROM tab0 cor0
----
-14
-24
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6567
SELECT COUNT( ALL + col0 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6567
SELECT COUNT ( ALL + col0 ) AS col2 FROM tab1 AS cor0
----
3

query II rowsort
SELECT DISTINCT - 48 AS col2, + ( + + col1 ) * - 80 FROM tab2 AS cor0
----
-48
-4080
-48
-5360
-48
-6160

query II rowsort
SELECT ALL - 83 AS col1, + ( - col0 ) AS col2 FROM tab1 AS cor0
----
-83
-51
-83
-85
-83
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6570
SELECT MIN( DISTINCT col1 ) * 97 + - + 18 * CAST( + + ( + ( - - 78 ) ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-919

skipif mysql # not compatible
query I rowsort label-6570
SELECT MIN ( DISTINCT col1 ) * 97 + - + 18 * CAST ( + + ( + ( - - 78 ) ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-919

onlyif mysql # aggregate syntax: 
query I rowsort label-6571
SELECT + SUM( DISTINCT - - col2 ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-6571
SELECT + SUM ( DISTINCT - - col2 ) FROM tab0 AS cor0
----
156

query I rowsort
SELECT ALL - + ( + + col0 ) FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-6573
SELECT ALL col1 + + - 75 - 37 DIV - col0 col0 FROM tab0
----
-54
-74
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6573
SELECT ALL col1 + + - 75 - 37 / - col0 col0 FROM tab0
----
-54
-74
8

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - col1 + + 2 * - 45 IS NOT NULL
----

query I rowsort
SELECT ALL col0 + col2 + + col1 FROM tab2
----
120
181
200

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6576
SELECT * FROM tab2 AS cor0 WHERE ( col1 * CAST( NULL AS SIGNED ) + + col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6576
SELECT * FROM tab2 AS cor0 WHERE ( col1 * CAST ( NULL AS INTEGER ) + + col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6577
SELECT - + MIN( DISTINCT + - col0 ) * 0 AS col0 FROM tab0 AS cor0 WHERE + col0 BETWEEN 25 AND 81
----
NULL

skipif mysql # not compatible
query I rowsort label-6577
SELECT - + MIN ( DISTINCT + - col0 ) * 0 AS col0 FROM tab0 AS cor0 WHERE + col0 BETWEEN 25 AND 81
----
NULL

query I rowsort
SELECT ALL + + 75 - - col1 + - col0 AS col2 FROM tab2 AS cor0
----
67
80
88

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 4 + col1 + - col0 + - 31 * - col2 NOT BETWEEN + ( - 68 ) AND - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-6580
SELECT ALL - SUM( col0 ) AS col0, + 39 AS col1 FROM tab1 AS cor0
----
-227
39

skipif mysql # not compatible
query II rowsort label-6580
SELECT ALL - SUM ( col0 ) AS col0, + 39 AS col1 FROM tab1 AS cor0
----
-227
39

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - + 15 ) + 51 BETWEEN 3 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6582
SELECT ALL - COUNT( DISTINCT 98 ) AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-6582
SELECT ALL - COUNT ( DISTINCT 98 ) AS col2 FROM tab0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6583
SELECT DISTINCT col1 DIV col2 col2 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6583
SELECT DISTINCT col1 / col2 col2 FROM tab1
----
0

query I rowsort
SELECT DISTINCT - col0 * - - 21 AS col1 FROM tab0 AS cor0 WHERE NOT NULL <> + col2 + - col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col2 < - 49
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-6586
SELECT - col1 DIV - - 16 + + + col0 FROM tab1 AS cor0
----
51
85
89

skipif mysql # not compatible
query I rowsort label-6586
SELECT - col1 / - - 16 + + + col0 FROM tab1 AS cor0
----
51
85
89

query I rowsort
SELECT DISTINCT - - ( + + 62 ) FROM tab0 AS cor0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6588
SELECT - MAX( ALL - col1 ) AS col2 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-6588
SELECT - MAX ( ALL - col1 ) AS col2 FROM tab2 AS cor0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6589
SELECT DISTINCT 64 AS col0 FROM tab1 cor0 WHERE col0 + CAST( NULL AS SIGNED ) = NULL
----

skipif mysql # not compatible
query I rowsort label-6589
SELECT DISTINCT 64 AS col0 FROM tab1 cor0 WHERE col0 + CAST ( NULL AS INTEGER ) = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 43 col0 FROM tab1 AS cor0
----
43

query I rowsort
SELECT DISTINCT col2 * + col0 + + - 75 + ( - - col0 ) + + - col1 FROM tab0 cor0
----
564
861
9624

query III rowsort
SELECT ALL * FROM tab1 WHERE + - col0 * - - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT + 16 * - col1 + - + col2 - + - 51 + + col2 - - - 50 / 35 * + col1 * + col0 * + col1 + 95 + + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 58 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + 17 * col2 * 90 FROM tab1
----
104040
146880
90270

onlyif mysql # aggregate syntax: 
query I rowsort label-6596
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE NOT + - 45 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-6596
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE NOT + - 45 <= NULL
----
0

query I rowsort
SELECT + col2 * + + col2 AS col0 FROM tab1
----
3481
4624
9216

query I rowsort
SELECT + 36 + col1 FROM tab0 AS cor0
----
117
37
57

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col1 / 67 < + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 31 col0 FROM tab0 AS cor0
----
31
31
31

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN 34 AND col1 + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6602
SELECT DISTINCT 26 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6602
SELECT DISTINCT 26 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - 39 * + col1 + - - col0 AS col1 FROM tab2 AS cor0
----
-1943
-2538
-2939

onlyif mysql # aggregate syntax: 
query I rowsort label-6604
SELECT COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( - 34 IN ( - 89 ) )
----
0

skipif mysql # not compatible
query I rowsort label-6604
SELECT COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( - 34 IN ( - 89 ) )
----
0

query I rowsort
SELECT - - 62 + - 48 AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query I rowsort
SELECT DISTINCT + 61 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
61

query I rowsort
SELECT col1 + 61 AS col1 FROM tab1 cor0 WHERE NULL IS NULL
----
108
66
75

query I rowsort
SELECT DISTINCT - ( + + 30 ) + + col2 FROM tab2 AS cor0
----
-7
10
28

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 BETWEEN + 22 AND 32
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( col1 ) AND + ( - 63 ) + - col0
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6611
SELECT ALL CAST( - + col2 AS SIGNED ) DIV col1 AS col1 FROM tab0 AS cor0
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-6611
SELECT ALL CAST ( - + col2 AS INTEGER ) / col1 AS col1 FROM tab0 AS cor0
----
-99
0
0

query II rowsort
SELECT DISTINCT - + col0 AS col0, - col1 + - + col1 FROM tab0 cor0
----
-15
-162
-87
-42
-97
-2

query I rowsort
SELECT ALL - + col1 + - col0 AS col0 FROM tab0 AS cor0
----
-108
-96
-98

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL = - 5 * + 64
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - 92 * - col2 AND + col0
----

query I rowsort
SELECT DISTINCT + 29 - + - col1 AS col2 FROM tab2
----
106
80
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6617
SELECT - 23 + + COUNT( * ) AS col2 FROM tab0
----
-20

skipif mysql # not compatible
query I rowsort label-6617
SELECT - 23 + + COUNT ( * ) AS col2 FROM tab0
----
-20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 60 col1 FROM tab2
----
60
60
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6619
SELECT CAST( col2 AS SIGNED ) + + 8 AS col1 FROM tab2
----
31
48
66

skipif mysql # not compatible
query I rowsort label-6619
SELECT CAST ( col2 AS INTEGER ) + + 8 AS col1 FROM tab2
----
31
48
66

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6620
SELECT 60 / - - CAST( NULL AS DECIMAL ) + col1 + 19, + col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-6620
SELECT 60 / - - CAST ( NULL AS REAL ) + col1 + 19, + col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

query II rowsort
SELECT ALL - col2, - col1 AS col0 FROM tab0
----
-10
-21
-47
-81
-99
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6622
SELECT + COUNT( * ) + + 40 AS col1 FROM tab2
----
43

skipif mysql # not compatible
query I rowsort label-6622
SELECT + COUNT ( * ) + + 40 AS col1 FROM tab2
----
43

query I rowsort
SELECT col2 + 99 AS col0 FROM tab0
----
109
146
198

query I rowsort
SELECT DISTINCT - 21 + 10 AS col2 FROM tab2
----
-11

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 33 + col1 + + col0 <= + - 31
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6626
SELECT ALL - - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6626
SELECT ALL - - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

query I rowsort
SELECT - + ( ( + + col2 ) ) - + col1 - col0 AS col2 FROM tab0 AS cor0
----
-118
-143
-197

query I rowsort
SELECT ALL + - col1 * - + ( + col0 ) + - + col1 + 19 FROM tab1 AS cor0
----
4249
439
719

query I rowsort
SELECT + 99 - col0 AS col2 FROM tab1 AS cor0
----
14
48
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 31 col1 FROM tab2 AS cor0
----
31
31
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6631
SELECT ( - ( - + COUNT( * ) ) ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6631
SELECT ( - ( - + COUNT ( * ) ) ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6632
SELECT - ( MAX( DISTINCT - 41 ) ) FROM tab0 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-6632
SELECT - ( MAX ( DISTINCT - 41 ) ) FROM tab0 AS cor0
----
41

query I rowsort
SELECT ALL 68 / + col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - 17 * - col0 + + col1 + + ( - ( + - col1 ) ) AS col2 FROM tab2 AS cor0
----
1242
1409
884

onlyif mysql # aggregate syntax: 
query I rowsort label-6635
SELECT ALL - 87 * - COUNT( * ) AS col1 FROM tab1 AS cor0
----
261

skipif mysql # not compatible
query I rowsort label-6635
SELECT ALL - 87 * - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
261

onlyif mysql # aggregate syntax: 
query I rowsort label-6636
SELECT DISTINCT - SUM( - - 13 ) AS col1 FROM tab1
----
-39

skipif mysql # not compatible
query I rowsort label-6636
SELECT DISTINCT - SUM ( - - 13 ) AS col1 FROM tab1
----
-39

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NOT ( - col1 IS NOT NULL ) )
----

query II rowsort
SELECT - col1 AS col0, + ( - + 18 ) + + 51 * + 1 AS col1 FROM tab0
----
-1
33
-21
33
-81
33

onlyif mysql # aggregate syntax: 
query I rowsort label-6639
SELECT - MIN( - 81 ) FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-6639
SELECT - MIN ( - 81 ) FROM tab1
----
81

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL = + - col0 * + + 80
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6641
SELECT - COUNT( * ) AS col0, 24 AS col0 FROM tab2
----
-3
24

skipif mysql # not compatible
query II rowsort label-6641
SELECT - COUNT ( * ) AS col0, 24 AS col0 FROM tab2
----
-3
24

query II rowsort
SELECT ALL + + 95, - col2 FROM tab0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + 94 * + col2 AS col1 FROM tab2 cor0
----
2162
3760
5452

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 76 + + + 36 * col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL ( + - col0 ) * col0 * + 36 FROM tab0 AS cor0
----
-272484
-338724
-8100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6646
SELECT - + COUNT( + - CAST( 7 AS SIGNED ) ) + - - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-6646
SELECT - + COUNT ( + - CAST ( 7 AS INTEGER ) ) + - - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6647
SELECT DISTINCT CAST( 6 AS SIGNED ) AS col1 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-6647
SELECT DISTINCT CAST ( 6 AS INTEGER ) AS col1 FROM tab2
----
6

query I rowsort
SELECT DISTINCT - col1 + - col2 * - + 56 * col2 FROM tab0 AS cor0
----
123623
548855
5579

onlyif mysql # aggregate syntax: 
query I rowsort label-6649
SELECT - - 51 * + - COUNT( * ) FROM tab2 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-6649
SELECT - - 51 * + - COUNT ( * ) FROM tab2 AS cor0
----
-153

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 / col0 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6651
SELECT ALL + + col2 DIV - col0 - + 12 FROM tab2 cor0
----
-12
-12
-12

skipif mysql # not compatible
query I rowsort label-6651
SELECT ALL + + col2 / - col0 - + 12 FROM tab2 cor0
----
-12
-12
-12

query II rowsort
SELECT ALL col0 + + col1 * col1 * - 12 * 14 + 94 - - - col1 AS col1, col1 AS col0 FROM tab2 AS cor0
----
-436879
51
-754050
67
-995991
77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( + col0, + 99, - 28 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6654
SELECT ALL - MIN( - 84 ) * + 13 + - - 71 + COUNT( DISTINCT + col0 ) FROM tab1 AS cor0
----
1166

skipif mysql # not compatible
query I rowsort label-6654
SELECT ALL - MIN ( - 84 ) * + 13 + - - 71 + COUNT ( DISTINCT + col0 ) FROM tab1 AS cor0
----
1166

onlyif mysql # DIV for integer division: 
query I rowsort label-6655
SELECT DISTINCT col2 DIV 79 + 29 * - - col0 - - 39 FROM tab1 AS cor0
----
1519
2504
2678

skipif mysql # not compatible
query I rowsort label-6655
SELECT DISTINCT col2 / 79 + 29 * - - col0 - - 39 FROM tab1 AS cor0
----
1519
2504
2678

query I rowsort
SELECT - ( + col0 ) * col2 + + col2 AS col1 FROM tab1
----
-4800
-4956
-6120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6657
SELECT COUNT( * ) DIV 49 AS col0, - 33 FROM tab2 WHERE - CAST( NULL AS SIGNED ) IS NOT NULL
----
0
-33

skipif mysql # not compatible
query II rowsort label-6657
SELECT COUNT ( * ) / 49 AS col0, - 33 FROM tab2 WHERE - CAST ( NULL AS INTEGER ) IS NOT NULL
----
0
-33

query I rowsort
SELECT col0 + 33 AS col2 FROM tab0 WHERE ( NULL ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6659
SELECT COUNT( * ) + - ( - MAX( ALL col2 ) ) FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-6659
SELECT COUNT ( * ) + - ( - MAX ( ALL col2 ) ) FROM tab1
----
99

query I rowsort
SELECT DISTINCT - col0 * + 52 + - col2 + + - col2 * + 22 FROM tab1 cor0
----
-4860
-5777
-6296

query I rowsort
SELECT - - col2 + 75 FROM tab0 cor0
----
122
174
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6662
SELECT CAST( NULL AS SIGNED ) * + - COUNT( * ) + + 3 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6662
SELECT CAST ( NULL AS INTEGER ) * + - COUNT ( * ) + + 3 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT ALL 25, + col1 FROM tab0
----
25
1
25
21
25
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6664
SELECT ALL COUNT( * ) * + 86 FROM tab0, tab1 AS cor0
----
774

skipif mysql # not compatible
query I rowsort label-6664
SELECT ALL COUNT ( * ) * + 86 FROM tab0, tab1 AS cor0
----
774

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6665
SELECT CAST( - 1 AS SIGNED ) FROM tab2, tab2 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

skipif mysql # not compatible
query I rowsort label-6665
SELECT CAST ( - 1 AS INTEGER ) FROM tab2, tab2 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

onlyif mysql # aggregate syntax: 
query II rowsort label-6666
SELECT DISTINCT 15, COUNT( * ) AS col2 FROM tab2
----
15
3

skipif mysql # not compatible
query II rowsort label-6666
SELECT DISTINCT 15, COUNT ( * ) AS col2 FROM tab2
----
15
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6667
SELECT - CAST( NULL AS SIGNED ) + + col1 AS col1 FROM tab0 WHERE NOT NULL >= - col0
----

skipif mysql # not compatible
query I rowsort label-6667
SELECT - CAST ( NULL AS INTEGER ) + + col1 AS col1 FROM tab0 WHERE NOT NULL >= - col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6668
SELECT - + COUNT( * ) AS col2, 33 FROM tab1 AS cor0
----
-3
33

skipif mysql # not compatible
query II rowsort label-6668
SELECT - + COUNT ( * ) AS col2, 33 FROM tab1 AS cor0
----
-3
33

query II rowsort
SELECT ALL - - col1 AS col0, - col1 AS col1 FROM tab2 AS cor0
----
51
-51
67
-67
77
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + ( + col2 ) ) col0 FROM tab1 AS cor0
----
59
68
96

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - 16 NOT BETWEEN NULL AND + - 38 * col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + col0 + - 54 col1 FROM tab1 AS cor0
----
371
4223
660

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6673
SELECT CAST( + ( + - 58 ) AS SIGNED ) FROM tab1
----
-58
-58
-58

skipif mysql # not compatible
query I rowsort label-6673
SELECT CAST ( + ( + - 58 ) AS INTEGER ) FROM tab1
----
-58
-58
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6674
SELECT DISTINCT + CAST( NULL AS SIGNED ) col1 FROM tab2 WHERE + col1 = + col0
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6674
SELECT DISTINCT + CAST ( NULL AS INTEGER ) col1 FROM tab2 WHERE + col1 = + col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL < + ( + col2 )
----

query I rowsort
SELECT ( - - ( col1 ) ) + - 4 FROM tab2
----
47
63
73

query I rowsort
SELECT 57 * - + col2 + + col2 FROM tab1
----
-3304
-3808
-5376

query I rowsort
SELECT DISTINCT + 80 AS col1 FROM tab1 AS cor0 WHERE ( NULL IS NULL )
----
80

query I rowsort
SELECT DISTINCT + - col2 + - 77 FROM tab2 AS cor0 WHERE NOT ( - col2 * ( - + 22 ) IS NOT NULL )
----

query I rowsort
SELECT DISTINCT + + ( + 72 ) AS col2 FROM tab1 AS cor0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6681
SELECT ALL MAX( + 89 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
89

skipif mysql # not compatible
query I rowsort label-6681
SELECT ALL MAX ( + 89 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 AS col1, 98 col2 FROM tab2 WHERE NULL = ( + col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE - - col2 > - ( - 65 ) + - col0 + + 95 + - - col2 * col0
----

query II rowsort
SELECT DISTINCT - + col2 + + col0 - - col2 AS col0, col2 FROM tab1 AS cor0
----
51
96
85
59
91
68

query I rowsort
SELECT + + col2 * - - col2 + - 21 + - 72 FROM tab0 AS cor0
----
2116
7
9708

onlyif mysql # aggregate syntax: 
query I rowsort label-6686
SELECT DISTINCT - - COUNT( * ) - - 20 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-6686
SELECT DISTINCT - - COUNT ( * ) - - 20 FROM tab2 AS cor0
----
23

query I rowsort
SELECT DISTINCT - col1 + + 99 + - col2 * - + col1 AS col2 FROM tab0 AS cor0
----
197
288
3825

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6688
SELECT ALL - - CAST( NULL AS SIGNED ) - + + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6688
SELECT ALL - - CAST ( NULL AS INTEGER ) - + + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 87 - + col1 + + col2 AS col0 FROM tab0 AS cor0 WHERE col1 + - col0 IS NOT NULL
----
185
53
76

query I rowsort
SELECT - + col1 + + - 14 + col0 * - col0 FROM tab1 AS cor0
----
-2629
-7244
-8342

query I rowsort
SELECT DISTINCT 88 FROM tab1 AS cor0 WHERE + col0 / - col2 + + + col0 NOT BETWEEN - col0 AND 48
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-6692
SELECT + MIN( col0 ) + COUNT( * ) FROM tab2
----
49

skipif mysql # not compatible
query I rowsort label-6692
SELECT + MIN ( col0 ) + COUNT ( * ) FROM tab2
----
49

query I rowsort
SELECT DISTINCT col1 * - + 44 FROM tab2
----
-2244
-2948
-3388

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6694
SELECT - col1 * - + CAST( NULL AS SIGNED ) * + col1 col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6694
SELECT - col1 * - + CAST ( NULL AS INTEGER ) * + col1 col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6695
SELECT ALL + 45 DIV - ( - MIN( DISTINCT col0 ) ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6695
SELECT ALL + 45 / - ( - MIN ( DISTINCT col0 ) ) FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL >= + col2 - - - col1
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + 98 ) IS NULL
----

query I rowsort
SELECT ALL 35 * + 99 AS col1 FROM tab1
----
3465
3465
3465

query I rowsort
SELECT + col1 AS col2 FROM tab0 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6700
SELECT ALL COUNT( * ) AS col2, COUNT( * ) AS col1 FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-6700
SELECT ALL COUNT ( * ) AS col2, COUNT ( * ) AS col1 FROM tab0
----
3
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6701
SELECT - 24 DIV + 96 DIV - COUNT( * ) - - - COUNT( * ) col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6701
SELECT - 24 / + 96 / - COUNT ( * ) - - - COUNT ( * ) col2 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 13 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6703
SELECT DISTINCT + 16 DIV + col1 AS col1 FROM tab0 AS cor0
----
0
16

skipif mysql # not compatible
query I rowsort label-6703
SELECT DISTINCT + 16 / + col1 AS col1 FROM tab0 AS cor0
----
0
16

onlyif mysql # DIV for integer division: 
query I rowsort label-6704
SELECT + col2 DIV + + col1 + + col1 + - 35 FROM tab2 AS cor0
----
16
32
42

skipif mysql # not compatible
query I rowsort label-6704
SELECT + col2 / + + col1 + + col1 + - 35 FROM tab2 AS cor0
----
16
32
42

query II rowsort
SELECT ALL - col0, col1 AS col1 FROM tab2 AS cor0
----
-46
51
-64
77
-75
67

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN + col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6707
SELECT - CAST( 80 AS SIGNED ) col0 FROM tab1 AS cor0
----
-80
-80
-80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6707
SELECT - CAST ( 80 AS INTEGER ) col0 FROM tab1 AS cor0
----
-80
-80
-80

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 + 69 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6709
SELECT DISTINCT MIN( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6709
SELECT DISTINCT MIN ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col1, col1 FROM tab0
----
-10
21
-47
81
-99
1

query I rowsort
SELECT ALL col1 + + - 95 + + + 33 FROM tab1
----
-15
-48
-57

query I rowsort
SELECT ( + 84 ) AS col0 FROM tab0
----
84
84
84

query I rowsort
SELECT DISTINCT col1 + + col0 * - 32 FROM tab1
----
-1618
-2715
-2865

query I rowsort
SELECT ALL - 43 + 59 FROM tab2
----
16
16
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6715
SELECT DISTINCT - col1 * + CAST( NULL AS SIGNED ) + + col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6715
SELECT DISTINCT - col1 * + CAST ( NULL AS INTEGER ) + + col0 FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - col2 IN ( + col1 )
----

query I rowsort
SELECT + + col0 + + - 18 FROM tab2 AS cor0
----
28
46
57

query II rowsort
SELECT - col0 + col1 AS col2, - 20 * + 6 AS col2 FROM tab2 AS cor0
----
-8
-120
13
-120
5
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-6719
SELECT ALL + ( + + COUNT( ALL + 57 ) ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6719
SELECT ALL + ( + + COUNT ( ALL + 57 ) ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL + 74 + - - 91 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ba887a18b86a2c64d4b2c70e5cbb32da

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6721
SELECT + CAST( NULL AS SIGNED ) + + col2 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6721
SELECT + CAST ( NULL AS INTEGER ) + + col2 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6722
SELECT + MIN( + col1 ) col1 FROM tab0 WHERE ( NOT ( - col1 NOT IN ( - - col1 ) ) )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6722
SELECT + MIN ( + col1 ) col1 FROM tab0 WHERE ( NOT ( - col1 NOT IN ( - - col1 ) ) )
----
NULL

query I rowsort
SELECT + col0 + + ( - 12 ) AS col2 FROM tab0
----
3
75
85

query I rowsort
SELECT DISTINCT - col1 * - - ( col0 ) FROM tab1
----
-425
-4277
-714

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6725
SELECT - CAST( + ( + - CAST( col2 AS DECIMAL ) ) AS SIGNED ) AS col0, - 40 * col2 - + - 90 FROM tab1 AS cor0 WHERE ( + 12 ) IS NULL
----

skipif mysql # not compatible
query II rowsort label-6725
SELECT - CAST ( + ( + - CAST ( col2 AS REAL ) ) AS INTEGER ) AS col0, - 40 * col2 - + - 90 FROM tab1 AS cor0 WHERE ( + 12 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6726
SELECT - ( - 5 ) AS col2, COUNT( * ) * + - 27 AS col1 FROM tab1 AS cor0
----
5
-81

skipif mysql # not compatible
query II rowsort label-6726
SELECT - ( - 5 ) AS col2, COUNT ( * ) * + - 27 AS col1 FROM tab1 AS cor0
----
5
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 col2 FROM tab0 AS cor0 WHERE NULL <= ( NULL )
----

query I rowsort
SELECT ALL + 59 * - col1 + - - 77 - - ( - col0 ) * - + col2 FROM tab0 AS cor0
----
-292
-3997
9621

query II rowsort
SELECT ALL + col0 AS col0, 67 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IN ( + - col2 + 2, + 23, + col0 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - ( 52 ) - - col1 BETWEEN - + col2 AND + - ( - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - ( + + col2 ) * - - ( ( - + 40 ) ) + - 16 - + col2 col0, - 88 + - + col1 FROM tab2 AS cor0
----
1544
-165
2246
-155
881
-139

query I rowsort
SELECT ALL + col0 * + col0 - - col2 FROM tab2
----
2139
4136
5683

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-6733
SELECT DISTINCT CAST( CAST( - col2 AS DECIMAL ) AS SIGNED ) * 93 DIV - + col2 FROM tab1
----
93

skipif mysql # not compatible
query I rowsort label-6733
SELECT DISTINCT CAST ( CAST ( - col2 AS REAL ) AS INTEGER ) * 93 / - + col2 FROM tab1
----
93

query I rowsort
SELECT - 59 * + col1 AS col0 FROM tab0
----
-1239
-4779
-59

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 NOT IN ( - col0, 21, - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6736
SELECT DISTINCT - 59 + + + COUNT( * ) AS col1 FROM tab1 cor0 WHERE NOT NULL IS NULL
----
-59

skipif mysql # not compatible
query I rowsort label-6736
SELECT DISTINCT - 59 + + + COUNT ( * ) AS col1 FROM tab1 cor0 WHERE NOT NULL IS NULL
----
-59

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6737
SELECT + 51 DIV 97 + + + 58 DIV 63 + - CAST( - col2 AS SIGNED ) * - 83 + + - col2 + - ( 35 ) - - - col1 DIV + col1 FROM tab0 AS cor0
----
-3984
-8352
-876

skipif mysql # not compatible
query I rowsort label-6737
SELECT + 51 / 97 + + + 58 / 63 + - CAST ( - col2 AS INTEGER ) * - 83 + + - col2 + - ( 35 ) - - - col1 / + col1 FROM tab0 AS cor0
----
-3984
-8352
-876

query I rowsort
SELECT + 55 * col2 AS col0 FROM tab2 AS cor0
----
1265
2200
3190

query II rowsort
SELECT DISTINCT col1 * + 55 AS col2, col0 AS col0 FROM tab2
----
2805
46
3685
75
4235
64

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 8 * col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 83 * - col2 col2 FROM tab0 AS cor0
----
3901
8217
830

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 8 * - col0 * + 91 + + col0 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6743
SELECT ALL + CAST( - col1 AS SIGNED ) / - col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-6743
SELECT ALL + CAST ( - col1 AS INTEGER ) / - col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6744
SELECT + SUM( - - col1 ) col1 FROM tab0 cor0
----
103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6744
SELECT + SUM ( - - col1 ) col1 FROM tab0 cor0
----
103

query I rowsort
SELECT ALL - - 73 AS col1 FROM tab2 cor0
----
73
73
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6746
SELECT DISTINCT - CAST( COUNT( - + col0 ) AS SIGNED ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-6746
SELECT DISTINCT - CAST ( COUNT ( - + col0 ) AS INTEGER ) AS col0 FROM tab1
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-6747
SELECT col1 + + 30 - + 85 DIV + col2 FROM tab1
----
34
44
76

skipif mysql # not compatible
query I rowsort label-6747
SELECT col1 + + 30 - + 85 / + col2 FROM tab1
----
34
44
76

query I rowsort
SELECT ALL + ( col0 ) + + col2 AS col2 FROM tab0 WHERE NOT ( NULL >= NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6749
SELECT DISTINCT COUNT( * ) + + MIN( DISTINCT - ( + col1 ) ) AS col1 FROM tab2
----
-74

skipif mysql # not compatible
query I rowsort label-6749
SELECT DISTINCT COUNT ( * ) + + MIN ( DISTINCT - ( + col1 ) ) AS col1 FROM tab2
----
-74

query I rowsort
SELECT + 31 + 63 * + 33 AS col2 FROM tab0
----
2110
2110
2110

query I rowsort
SELECT DISTINCT - 83 + + col2 AS col1 FROM tab2
----
-25
-43
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6752
SELECT ALL + MIN( DISTINCT - ( + - CAST( - col1 AS SIGNED ) ) ) + + + ( - 77 ) - - 75 FROM tab1
----
-49

skipif mysql # not compatible
query I rowsort label-6752
SELECT ALL + MIN ( DISTINCT - ( + - CAST ( - col1 AS INTEGER ) ) ) + + + ( - 77 ) - - 75 FROM tab1
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6753
SELECT + ( - + 66 ) * - 22 * - + CAST( - + col2 AS SIGNED ) * ( + + col2 ) + col1 AS col1 FROM tab1 AS cor0
----
13381646
5054417
6714095

skipif mysql # not compatible
query I rowsort label-6753
SELECT + ( - + 66 ) * - 22 * - + CAST ( - + col2 AS INTEGER ) * ( + + col2 ) + col1 AS col1 FROM tab1 AS cor0
----
13381646
5054417
6714095

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6754
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6754
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT - col0 - + col1 * - - col0 FROM tab0
----
-1230
-1914
-194

query I rowsort
SELECT 16 - - + 82 FROM tab2
----
98
98
98

query I rowsort
SELECT - 38 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

query I rowsort
SELECT col0 - ( col2 ) AS col0 FROM tab2
----
17
23
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6759
SELECT - COUNT( DISTINCT + 78 ) - + COUNT( * ) AS col0 FROM tab1
----
-4

skipif mysql # not compatible
query I rowsort label-6759
SELECT - COUNT ( DISTINCT + 78 ) - + COUNT ( * ) AS col0 FROM tab1
----
-4

query I rowsort
SELECT DISTINCT + - 28 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-28

query II rowsort
SELECT DISTINCT + + col1, - col2 - col0 FROM tab1 AS cor0
----
14
-147
47
-159
5
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-6762
SELECT ALL MAX( ALL col2 ) + - 48 AS col0 FROM tab0 cor0
----
51

skipif mysql # not compatible
query I rowsort label-6762
SELECT ALL MAX ( ALL col2 ) + - 48 AS col0 FROM tab0 cor0
----
51

query I rowsort
SELECT DISTINCT + 36 - - col2 FROM tab1 cor0
----
104
132
95

query I rowsort
SELECT ALL + - ( - col1 ) + - col2 + - col1 AS col2 FROM tab2 cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6765
SELECT DISTINCT - COUNT( - 54 ) * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-6765
SELECT DISTINCT - COUNT ( - 54 ) * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-6766
SELECT - 80, + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-80
3

skipif mysql # not compatible
query II rowsort label-6766
SELECT - 80, + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-80
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT IN ( - col2 + col0, col0, col2, - col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + 45 * col1 * - 15 + + col2 * + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-6769
SELECT SUM( - col0 ), - 11 AS col1 FROM tab1
----
-227
-11

skipif mysql # not compatible
query II rowsort label-6769
SELECT SUM ( - col0 ), - 11 AS col1 FROM tab1
----
-227
-11

query II rowsort
SELECT 61 * col2 AS col1, + col1 AS col2 FROM tab1
----
3599
5
4148
47
5856
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6771
SELECT SUM( ALL + + ( + 63 ) ) AS col0 FROM tab1
----
189

skipif mysql # not compatible
query I rowsort label-6771
SELECT SUM ( ALL + + ( + 63 ) ) AS col0 FROM tab1
----
189

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6772
SELECT ALL + CAST( - - CAST( + - col1 AS SIGNED ) AS SIGNED ) FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-6772
SELECT ALL + CAST ( - - CAST ( + - col1 AS INTEGER ) AS INTEGER ) FROM tab0
----
-1
-21
-81

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( + 79 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-6774
SELECT + COUNT( DISTINCT - col2 ) AS col2, - MIN( - col2 ) AS col1 FROM tab2
----
3
58

skipif mysql # not compatible
query II rowsort label-6774
SELECT + COUNT ( DISTINCT - col2 ) AS col2, - MIN ( - col2 ) AS col1 FROM tab2
----
3
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6775
SELECT ALL + 4 * + col1 + col1 AS col0, - col2 / - - col1 AS col1 FROM tab1 AS cor0 WHERE NOT col1 BETWEEN - - CAST( 43 AS SIGNED ) + - CAST( 66 AS SIGNED ) AND - ( - + col0 ) + col0
----

skipif mysql # not compatible
query II rowsort label-6775
SELECT ALL + 4 * + col1 + col1 AS col0, - col2 / - - col1 AS col1 FROM tab1 AS cor0 WHERE NOT col1 BETWEEN - - CAST ( 43 AS INTEGER ) + - CAST ( 66 AS INTEGER ) AND - ( - + col0 ) + col0
----

query I rowsort
SELECT + - ( + col1 ) AS col1 FROM tab0 AS cor0 WHERE NOT + col0 * - + col1 >= + + 85 * - col1 - + col0
----

query II rowsort
SELECT + + 52 * + 98, - col2 * - 76 AS col1 FROM tab0 AS cor0
----
5096
3572
5096
7524
5096
760

onlyif mysql # aggregate syntax: 
query I rowsort label-6778
SELECT ALL - SUM( - col1 ) FROM tab1 AS cor0 WHERE NULL > - col1 * - col2 * - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6778
SELECT ALL - SUM ( - col1 ) FROM tab1 AS cor0 WHERE NULL > - col1 * - col2 * - col0
----
NULL

query I rowsort
SELECT DISTINCT 37 FROM tab0 AS cor0 WHERE NULL IS NULL
----
37

query I rowsort
SELECT - col2 + - col0 + - 16 FROM tab2 AS cor0
----
-120
-149
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-6781
SELECT ALL + 23 DIV + - 66 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6781
SELECT ALL + 23 / + - 66 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + ( + col1 ) FROM tab1 AS cor0 WHERE + col0 + col2 NOT BETWEEN NULL AND + col1 + - + ( - + col1 ) * - - col2 * - + col0 + col0
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-6783
SELECT ALL + - col1 DIV + - col2 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-6783
SELECT ALL + - col1 / + - col2 FROM tab0 AS cor0
----
0
1
2

query II rowsort
SELECT col2 AS col0, + col0 AS col1 FROM tab1 AS cor0
----
59
85
68
91
96
51

query I rowsort
SELECT - col2 * - 75 FROM tab1
----
4425
5100
7200

query II rowsort
SELECT col2 * - col2 AS col0, col2 FROM tab0
----
-100
10
-2209
47
-9801
99

query I rowsort
SELECT DISTINCT 23 * 26 + + col1 AS col1 FROM tab0
----
599
619
679

onlyif mysql # DIV for integer division: 
query I rowsort label-6788
SELECT DISTINCT + col0 DIV 14 AS col2 FROM tab1
----
3
6

skipif mysql # not compatible
query I rowsort label-6788
SELECT DISTINCT + col0 / 14 AS col2 FROM tab1
----
3
6

query I rowsort
SELECT ALL 75 + - + col1 FROM tab0
----
-6
54
74

query I rowsort
SELECT ALL - 39 + - + col0 * col0 * + col2 * col0 FROM tab2
----
-10485799
-2238767
-24468789

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6791
SELECT DISTINCT col1 + CAST( - 32 AS SIGNED ) AS col1 FROM tab2
----
19
35
45

skipif mysql # not compatible
query I rowsort label-6791
SELECT DISTINCT col1 + CAST ( - 32 AS INTEGER ) AS col1 FROM tab2
----
19
35
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6792
SELECT - 86 + - + ( - + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6792
SELECT - 86 + - + ( - + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + 87 + - - 90 AS col1, 71 * + col0 - + 68 AS col0 FROM tab2 AS cor0
----
177
3198
177
4476
177
5257

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 # CAST syntax: SIGNED type: 
query II rowsort label-6795
SELECT col2 / - CAST( NULL AS SIGNED ), + 91 / - CAST( NULL AS SIGNED ) * + col0 AS col1 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6795
SELECT col2 / - CAST ( NULL AS INTEGER ), + 91 / - CAST ( NULL AS INTEGER ) * + col0 AS col1 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
NULL
NULL
NULL
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - 80 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-80

query I rowsort
SELECT col1 * 70 AS col1 FROM tab0
----
1470
5670
70

query I rowsort
SELECT ( - 70 ) * - + col0 AS col1 FROM tab1 AS cor0
----
3570
5950
6370

onlyif mysql # aggregate syntax: 
query II rowsort label-6799
SELECT DISTINCT - - COUNT( * ) AS col1, - COUNT( * ) AS col1 FROM tab1 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-6799
SELECT DISTINCT - - COUNT ( * ) AS col1, - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
3
-3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN col0 / + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6801
SELECT MAX( + 60 ) AS col1 FROM tab0 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-6801
SELECT MAX ( + 60 ) AS col1 FROM tab0 AS cor0
----
60

query I rowsort
SELECT col2 * - col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( + col1 ) IS NULL
----
-100
-2209
-9801

onlyif mysql # aggregate syntax: 
query I rowsort label-6803
SELECT ALL MAX( DISTINCT ( + ( - 92 ) ) ) + - 99 FROM tab1 AS cor0 WHERE 28 * col2 - col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6803
SELECT ALL MAX ( DISTINCT ( + ( - 92 ) ) ) + - 99 FROM tab1 AS cor0 WHERE 28 * col2 - col2 IS NULL
----
NULL

query II rowsort
SELECT DISTINCT 86 AS col2, col2 FROM tab0
----
86
10
86
47
86
99

query II rowsort
SELECT ALL - 90 AS col2, col2 FROM tab2
----
-90
23
-90
40
-90
58

onlyif mysql # aggregate syntax: 
query II rowsort label-6806
SELECT ALL 10, - COUNT( * ) AS col1 FROM tab1
----
10
-3

skipif mysql # not compatible
query II rowsort label-6806
SELECT ALL 10, - COUNT ( * ) AS col1 FROM tab1
----
10
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-6807
SELECT - 22 AS col0, + 25 DIV + col2 + col2 - - 3 DIV + col1 * - col0 FROM tab1
----
-22
59
-22
68
-22
96

skipif mysql # not compatible
query II rowsort label-6807
SELECT - 22 AS col0, + 25 / + col2 + col2 - - 3 / + col1 * - col0 FROM tab1
----
-22
59
-22
68
-22
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, - col0 col2 FROM tab2
----
46
-46
64
-64
75
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6809
SELECT ALL - COUNT( * ) FROM tab2 cor0 WHERE NOT + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6809
SELECT ALL - COUNT ( * ) FROM tab2 cor0 WHERE NOT + col1 IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * col0 col2 FROM tab1 AS cor0
----
2601
7225
8281

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6811
SELECT + - CAST( NULL AS SIGNED ) * - 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-6811
SELECT + - CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) * + col1 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - 74 * - col2 FROM tab1 cor0
----
-4366
-5032
-7104

query IIIIII rowsort
SELECT * FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE 12 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-6814
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-6814
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + CAST ( NULL AS INTEGER ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT + col2 * - - 87 + 21 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 33 * - + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-6817
SELECT + 90 + - - col0 DIV - - col1, col0 FROM tab1
----
107
85
91
91
93
51

skipif mysql # not compatible
query II rowsort label-6817
SELECT + 90 + - - col0 / - - col1, col0 FROM tab1
----
107
85
91
91
93
51

query I rowsort
SELECT DISTINCT - 35 * - + col2 FROM tab0 WHERE NOT - ( - 76 ) * col0 + - col0 + + 20 * 49 IN ( - 16 )
----
1645
3465
350

onlyif mysql # aggregate syntax: 
query I rowsort label-6819
SELECT - 86 * COUNT( * ) AS col1 FROM tab1 WHERE 39 IS NOT NULL
----
-258

skipif mysql # not compatible
query I rowsort label-6819
SELECT - 86 * COUNT ( * ) AS col1 FROM tab1 WHERE 39 IS NOT NULL
----
-258

onlyif mysql # aggregate syntax: 
query I rowsort label-6820
SELECT - ( + 48 ) * SUM( 17 ) + - - 52 FROM tab0
----
-2396

skipif mysql # not compatible
query I rowsort label-6820
SELECT - ( + 48 ) * SUM ( 17 ) + - - 52 FROM tab0
----
-2396

query I rowsort
SELECT + col0 + - 80 FROM tab2
----
-16
-34
-5

query I rowsort
SELECT ALL - col2 + - - 87 FROM tab0
----
-12
40
77

onlyif mysql # aggregate syntax: 
query II rowsort label-6823
SELECT ALL 2 col1, - COUNT( * ) FROM tab0
----
2
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6823
SELECT ALL 2 col1, - COUNT ( * ) FROM tab0
----
2
-3

query II rowsort
SELECT - 30 AS col1, - 28 FROM tab1 AS cor0
----
-30
-28
-30
-28
-30
-28

query I rowsort
SELECT DISTINCT + ( + + ( 72 ) ) + + col0 * col2 FROM tab1 AS cor0
----
4968
5087
6260

query I rowsort
SELECT ALL + - col0 + - 23 AS col0 FROM tab0 AS cor0
----
-110
-120
-38

query I rowsort
SELECT DISTINCT + col1 FROM tab2 AS cor0 WHERE 76 + + - 86 / + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6828
SELECT + ( + COUNT( * ) ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-6828
SELECT + ( + COUNT ( * ) ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9

query I rowsort
SELECT ALL col1 - 76 AS col2 FROM tab0
----
-55
-75
5

query III rowsort
SELECT * FROM tab0 WHERE NOT 5 > NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 = - 26
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( - 61, - 53, + col2, + col0 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6833
SELECT DISTINCT + col2 DIV - + col0 AS col2, - col1 + - col1 AS col1 FROM tab1 AS cor0
----
-1
-28
0
-10
0
-94

skipif mysql # not compatible
query II rowsort label-6833
SELECT DISTINCT + col2 / - + col0 AS col2, - col1 + - col1 AS col1 FROM tab1 AS cor0
----
-1
-28
0
-10
0
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-6834
SELECT - COUNT( + 75 ) * + + ( 90 ) FROM tab0 AS cor0
----
-270

skipif mysql # not compatible
query I rowsort label-6834
SELECT - COUNT ( + 75 ) * + + ( 90 ) FROM tab0 AS cor0
----
-270

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NOT + ( col0 ) IS NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6836
SELECT - MAX( DISTINCT - col1 ) FROM tab1 WHERE NOT col1 * - + col1 + - 18 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6836
SELECT - MAX ( DISTINCT - col1 ) FROM tab1 WHERE NOT col1 * - + col1 + - 18 = NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + ( 6 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6838
SELECT + ( COUNT( ALL + col1 ) ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6838
SELECT + ( COUNT ( ALL + col1 ) ) AS col0 FROM tab0
----
3

query I rowsort
SELECT + col2 * + + 5 AS col1 FROM tab1
----
295
340
480

query II rowsort
SELECT DISTINCT 13 AS col2, col0 * - 51 FROM tab0
----
13
-4437
13
-4947
13
-765

onlyif mysql # aggregate syntax: 
query II rowsort label-6841
SELECT ALL - 79, - MIN( - col1 ) AS col0 FROM tab0
----
-79
81

skipif mysql # not compatible
query II rowsort label-6841
SELECT ALL - 79, - MIN ( - col1 ) AS col0 FROM tab0
----
-79
81

query I rowsort
SELECT col0 + + col0 - + col2 - + 90 * - col0 AS col1 FROM tab2
----
4209
5848
6842

query I rowsort
SELECT - + 45 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 71160abf09589695379a70558726f0ba

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6844
SELECT DISTINCT - + col0 + - - col0 * - - col2 FROM tab2 AS cor0 WHERE NULL <= - CAST( NULL AS SIGNED ) + + - 30
----

skipif mysql # not compatible
query I rowsort label-6844
SELECT DISTINCT - + col0 + - - col0 * - - col2 FROM tab2 AS cor0 WHERE NULL <= - CAST ( NULL AS INTEGER ) + + - 30
----

query I rowsort
SELECT - - col2 + - col2 * - - 87 FROM tab0 AS cor0
----
-4042
-8514
-860

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6846
SELECT ALL col1 + - CAST( NULL AS SIGNED ) / + col2 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6846
SELECT ALL col1 + - CAST ( NULL AS INTEGER ) / + col2 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6847
SELECT * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) * - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6847
SELECT * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) * - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6848
SELECT DISTINCT - - COUNT( * ) col1 FROM tab1 AS cor0 WHERE NULL <= col1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6848
SELECT DISTINCT - - COUNT ( * ) col1 FROM tab1 AS cor0 WHERE NULL <= col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6849
SELECT 63 * SUM( + 68 ) FROM tab0 AS cor0
----
12852

skipif mysql # not compatible
query I rowsort label-6849
SELECT 63 * SUM ( + 68 ) FROM tab0 AS cor0
----
12852

onlyif mysql # aggregate syntax: 
query I rowsort label-6850
SELECT ALL 14 + - + MIN( + col2 ) FROM tab0 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-6850
SELECT ALL 14 + - + MIN ( + col2 ) FROM tab0 AS cor0
----
4

query I rowsort
SELECT DISTINCT + 29 * - 26 - col0 * 31 * - - 29 AS col0 FROM tab2 AS cor0
----
-42108
-58290
-68179

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 77 AS col2, + 66 col0 FROM tab1 AS cor0
----
-77
66

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 / + + 27 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - + col0 ) * col0 col2 FROM tab1 WHERE - col2 = + col1 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6855
SELECT + 32 + COUNT( * ) AS col1 FROM tab2, tab2 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-6855
SELECT + 32 + COUNT ( * ) AS col1 FROM tab2, tab2 AS cor0
----
41

query I rowsort
SELECT ALL - col2 * 98 - - col0 FROM tab1 AS cor0
----
-5697
-6573
-9357

query I rowsort
SELECT ALL + col0 + + col2 - + col2 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT DISTINCT col1 * col0 - + + col2 AS col0 FROM tab2 AS cor0
----
2323
4888
4967

query I rowsort
SELECT + col1 * + col2 + col0 + + col2 AS col2 FROM tab0 AS cor0
----
295
307
3869

onlyif mysql # aggregate syntax: 
query II rowsort label-6860
SELECT + COUNT( * ) + - COUNT( * ) AS col0, MIN( col2 ) FROM tab2 cor0
----
0
23

skipif mysql # not compatible
query II rowsort label-6860
SELECT + COUNT ( * ) + - COUNT ( * ) AS col0, MIN ( col2 ) FROM tab2 cor0
----
0
23

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6861
SELECT ALL * FROM tab2 WHERE NOT - + 47 * - col2 * - col1 + + col2 + + - 21 - + + 50 / - CAST( - 92 AS SIGNED ) BETWEEN col2 AND + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6861
SELECT ALL * FROM tab2 WHERE NOT - + 47 * - col2 * - col1 + + col2 + + - 21 - + + 50 / - CAST ( - 92 AS INTEGER ) BETWEEN col2 AND + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - ( - + 2 ) FROM tab2 AS cor0
----
2
2
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6863
SELECT - col1 * + col0 + - - 12 + - + CAST( + col1 AS SIGNED ) * - col1 AS col0 FROM tab1 cor0
----
-2056
-388
-506

skipif mysql # not compatible
query I rowsort label-6863
SELECT - col1 * + col0 + - - 12 + - + CAST ( + col1 AS INTEGER ) * - col1 AS col0 FROM tab1 cor0
----
-2056
-388
-506

onlyif mysql # aggregate syntax: 
query II rowsort label-6864
SELECT DISTINCT COUNT( * ) col0, + 49 AS col1 FROM tab0 AS cor0
----
3
49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6864
SELECT DISTINCT COUNT ( * ) col0, + 49 AS col1 FROM tab0 AS cor0
----
3
49

onlyif mysql # DIV for integer division: 
query I rowsort label-6865
SELECT col2 DIV + 62 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6865
SELECT col2 / + 62 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT - 93, col2 FROM tab0 AS cor0
----
-93
10
-93
47
-93
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6867
SELECT - CAST( - col2 AS SIGNED ) AS col1 FROM tab0 cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-6867
SELECT - CAST ( - col2 AS INTEGER ) AS col1 FROM tab0 cor0
----
10
47
99

query I rowsort
SELECT + col0 * - 23 + col0 FROM tab0 WHERE NOT NULL < NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 95 - + - col2 > - col2 * + - col2
----
15
81
47
97
1
99

query I rowsort
SELECT DISTINCT - ( - + 73 ) FROM tab0
----
73

query I rowsort
SELECT - 26 + + 3 * 18 FROM tab1
----
28
28
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6872
SELECT DISTINCT - COUNT( * ) + - COUNT( DISTINCT col1 ) - - 83 FROM tab1 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-6872
SELECT DISTINCT - COUNT ( * ) + - COUNT ( DISTINCT col1 ) - - 83 FROM tab1 AS cor0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6873
SELECT CAST( + 74 AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

skipif mysql # not compatible
query I rowsort label-6873
SELECT CAST ( + 74 AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

onlyif mysql # aggregate syntax: 
query I rowsort label-6874
SELECT + + COUNT( * ) col1 FROM ( tab2 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-6874
SELECT + + COUNT ( * ) col1 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6875
SELECT DISTINCT - CAST( + ( + col2 ) AS SIGNED ) + 17 - + col2 AS col2 FROM tab0 AS cor0
----
-181
-3
-77

skipif mysql # not compatible
query I rowsort label-6875
SELECT DISTINCT - CAST ( + ( + col2 ) AS INTEGER ) + 17 - + col2 AS col2 FROM tab0 AS cor0
----
-181
-3
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-6876
SELECT + - COUNT( * ) + + + MAX( + - 9 ) AS col0 FROM tab2 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-6876
SELECT + - COUNT ( * ) + + + MAX ( + - 9 ) AS col0 FROM tab2 AS cor0
----
-12

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <= 99 * col1
----

query I rowsort
SELECT DISTINCT - col0 + 94 FROM tab2 AS cor0
----
19
30
48

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 45 IN ( - col2, 69 * + - col0 / + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 22 * + col0 FROM tab0 cor0 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6881
SELECT DISTINCT COUNT( * ) - SUM( + + col0 ) AS col0 FROM tab2
----
-182

skipif mysql # not compatible
query I rowsort label-6881
SELECT DISTINCT COUNT ( * ) - SUM ( + + col0 ) AS col0 FROM tab2
----
-182

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - col1 * col2 * - - ( + 94 ) col0 FROM tab1
----
2357050
27338584
6443136

query II rowsort
SELECT ALL 17 AS col0, - col2 + + col1 FROM tab1
----
17
-21
17
-54
17
-82

query II rowsort
SELECT ALL col1, 36 FROM tab1
----
14
36
47
36
5
36

onlyif mysql # aggregate syntax: 
query I rowsort label-6885
SELECT ALL COUNT( * ) + COUNT( ALL + + col0 ) AS col2 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-6885
SELECT ALL COUNT ( * ) + COUNT ( ALL + + col0 ) AS col2 FROM tab0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6886
SELECT ALL + COUNT( * ) * + 84 FROM tab0
----
252

skipif mysql # not compatible
query I rowsort label-6886
SELECT ALL + COUNT ( * ) * + 84 FROM tab0
----
252

query I rowsort
SELECT - 31 * + + 79 * + + 58 * 51 FROM tab2
----
-7244142
-7244142
-7244142

query I rowsort
SELECT ALL ( + col1 ) + - col0 - + + 23 FROM tab0 AS cor0
----
-119
-89
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 26 * - col0 col2, + 13 * - col1 AS col1 FROM tab0 AS cor0
----
2262
-273
2522
-13
390
-1053

query II rowsort
SELECT ALL - - 20 AS col1, 80 FROM tab2 AS cor0
----
20
80
20
80
20
80

query I rowsort
SELECT + ( - + 11 ) FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6892
SELECT DISTINCT - + SUM( - 27 ) FROM tab1 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-6892
SELECT DISTINCT - + SUM ( - 27 ) FROM tab1 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6893
SELECT - ( COUNT( * ) ) + - - COUNT( - 38 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-6893
SELECT - ( COUNT ( * ) ) + - - COUNT ( - 38 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6894
SELECT DISTINCT MIN( - col2 ) * + - COUNT( 81 ) FROM tab2
----
174

skipif mysql # not compatible
query I rowsort label-6894
SELECT DISTINCT MIN ( - col2 ) * + - COUNT ( 81 ) FROM tab2
----
174

query I rowsort
SELECT - + 42 * + col1 AS col2 FROM tab1 AS cor0
----
-1974
-210
-588

onlyif mysql # aggregate syntax: 
query I rowsort label-6896
SELECT DISTINCT COUNT( * ) * - COUNT( * ) * COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL > - 49
----
0

skipif mysql # not compatible
query I rowsort label-6896
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) * COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL > - 49
----
0

query I rowsort
SELECT DISTINCT ( + col0 ) * 41 FROM tab0 AS cor0
----
3567
3977
615

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6898
SELECT + CAST( - col2 AS SIGNED ) DIV 45 AS col0 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6898
SELECT + CAST ( - col2 AS INTEGER ) / 45 AS col0 FROM tab2 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6899
SELECT - COUNT( - 28 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-6899
SELECT - COUNT ( - 28 ) FROM tab2
----
-3

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT ( - ( + - 83 ) * 25 * + col1 ) IS NULL )
----

query I rowsort
SELECT DISTINCT + 83 * - + col0 FROM tab1
----
-4233
-7055
-7553

onlyif mysql # aggregate syntax: 
query I rowsort label-6902
SELECT DISTINCT + ( - MAX( ALL - 28 ) ) FROM tab0
----
28

skipif mysql # not compatible
query I rowsort label-6902
SELECT DISTINCT + ( - MAX ( ALL - 28 ) ) FROM tab0
----
28

query I rowsort
SELECT ALL 37 * - col1 AS col2 FROM tab0
----
-2997
-37
-777

onlyif mysql # aggregate syntax: 
query I rowsort label-6904
SELECT + COUNT( * ) col2 FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6904
SELECT + COUNT ( * ) col2 FROM tab0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT ALL + col1 + + 68 * + col1 FROM tab1
----
3243
345
966

query II rowsort
SELECT + 98, - col0 + - 21 + - col2 * - 16 AS col0 FROM tab2
----
98
301
98
555
98
832

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6907
SELECT DISTINCT col2 + - - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6907
SELECT DISTINCT col2 + - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + col2 + + 85 FROM tab2 AS cor0
----
108
125
143

query I rowsort
SELECT + + 94 + col0 FROM tab0 AS cor0
----
109
181
191

query I rowsort
SELECT DISTINCT + col2 + ( + col1 ) FROM tab2
----
117
125
74

query III rowsort
SELECT * FROM tab2 WHERE NOT 6 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 - ( + 56 ) * col1 AS col2 FROM tab2 WHERE NULL IS NULL
----
-2902
-3827
-4376

query I rowsort
SELECT - col0 * - 12 + 56 * - col2 FROM tab2
----
-1472
-2348
-736

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE 50 BETWEEN ( + col0 ) AND - col1 + 15
----

query I rowsort
SELECT ALL ( 88 ) * + col2 - 13 FROM tab1 WHERE col1 BETWEEN - 51 - 76 AND 67 / - col0
----

query I rowsort
SELECT 17 * + 29 FROM tab2
----
493
493
493

query III rowsort
SELECT * FROM tab0 WHERE ( col2 - col2 ) < 23
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6918
SELECT + 81 * - COUNT( * ) AS col0 FROM tab0
----
-243

skipif mysql # not compatible
query I rowsort label-6918
SELECT + 81 * - COUNT ( * ) AS col0 FROM tab0
----
-243

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6919
SELECT DISTINCT * FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) * col0 <> ( + CAST( NULL AS SIGNED ) / col0 )
----

skipif mysql # not compatible
query III rowsort label-6919
SELECT DISTINCT * FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) * col0 <> ( + CAST ( NULL AS INTEGER ) / col0 )
----

query I rowsort
SELECT DISTINCT 1 FROM tab1 WHERE NOT 91 / col0 IS NULL
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6921
SELECT ALL CAST( col2 AS SIGNED ) * col0 FROM tab1
----
4896
5015
6188

skipif mysql # not compatible
query I rowsort label-6921
SELECT ALL CAST ( col2 AS INTEGER ) * col0 FROM tab1
----
4896
5015
6188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6922
SELECT ALL - 49 FROM tab0 WHERE NOT - col2 NOT BETWEEN ( + col0 * - 38 + - 57 ) AND + CAST( - col2 AS SIGNED ) + + col1
----
-49
-49
-49

skipif mysql # not compatible
query I rowsort label-6922
SELECT ALL - 49 FROM tab0 WHERE NOT - col2 NOT BETWEEN ( + col0 * - 38 + - 57 ) AND + CAST ( - col2 AS INTEGER ) + + col1
----
-49
-49
-49

query III rowsort
SELECT * FROM tab2 WHERE + col0 NOT BETWEEN ( 34 ) AND ( col2 / - 22 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6924
SELECT COUNT( * ) - MAX( col2 ) AS col2 FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-6924
SELECT COUNT ( * ) - MAX ( col2 ) AS col2 FROM tab0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6925
SELECT ALL - COUNT( * ) * - 56 FROM tab2
----
168

skipif mysql # not compatible
query I rowsort label-6925
SELECT ALL - COUNT ( * ) * - 56 FROM tab2
----
168

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT IN ( ( 33 ) * + col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE + col1 * - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6928
SELECT 86 * + 3 + col2 * col1 col1 FROM tab0 WHERE NOT + CAST( 3 AS SIGNED ) IN ( - 85 )
----
357
4065
468

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6928
SELECT 86 * + 3 + col2 * col1 col1 FROM tab0 WHERE NOT + CAST ( 3 AS INTEGER ) IN ( - 85 )
----
357
4065
468

query I rowsort
SELECT col2 AS col1 FROM tab2 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab1 WHERE NULL >= ( + 98 )
----

query I rowsort
SELECT DISTINCT 30 + - col1 AS col0 FROM tab0
----
-51
29
9

onlyif mysql # DIV for integer division: 
query I rowsort label-6932
SELECT - col2 DIV - 50 col0 FROM tab2
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6932
SELECT - col2 / - 50 col0 FROM tab2
----
0
0
1

query I rowsort
SELECT col2 AS col1 FROM tab1 WHERE 38 NOT IN ( col2 + col2 * + col1 )
----
59
68
96

query I rowsort
SELECT 73 * - 87 + 3 AS col0 FROM tab0
----
-6348
-6348
-6348

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 19 * col2 col1 FROM tab0
----
1881
190
893

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6936
SELECT ( - 1 ) * - col2 + - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6936
SELECT ( - 1 ) * - col2 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6937
SELECT ALL CAST( NULL AS DECIMAL ) + col1 FROM tab0 WHERE ( NULL ) IN ( - ( - ( - col2 ) ) * + 89 )
----

skipif mysql # not compatible
query I rowsort label-6937
SELECT ALL CAST ( NULL AS REAL ) + col1 FROM tab0 WHERE ( NULL ) IN ( - ( - ( - col2 ) ) * + 89 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + col0 * 69 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6939
SELECT ALL ( - CAST( - 99 AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
99
99
99

skipif mysql # not compatible
query I rowsort label-6939
SELECT ALL ( - CAST ( - 99 AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
99
99
99

query I rowsort
SELECT col2 + col2 AS col1 FROM tab2 AS cor0 WHERE NOT - col0 IS NULL
----
116
46
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6941
SELECT ALL COUNT( * ) * - 67 - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0
----
-612

skipif mysql # not compatible
query I rowsort label-6941
SELECT ALL COUNT ( * ) * - 67 - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0
----
-612

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN - ( col0 ) - - 91 AND 54
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6943
SELECT - 48 * - COUNT( - col2 ) col1 FROM tab0 AS cor0
----
144

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6943
SELECT - 48 * - COUNT ( - col2 ) col1 FROM tab0 AS cor0
----
144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6944
SELECT + CAST( MAX( - col1 ) AS SIGNED ) * CAST( COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-6944
SELECT + CAST ( MAX ( - col1 ) AS INTEGER ) * CAST ( COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
-15

query I rowsort
SELECT ALL + + 49 * + col0 AS col0 FROM tab0 AS cor0
----
4263
4753
735

query I rowsort
SELECT 10 * + col2 AS col0 FROM tab1 AS cor0
----
590
680
960

query I rowsort
SELECT ALL + + col1 * ( col2 - 28 * + col0 ) FROM tab2 AS cor0
----
-134904
-136814
-64515

query I rowsort
SELECT ALL + 5 * - col0 AS col0 FROM tab2 AS cor0
----
-230
-320
-375

onlyif mysql # aggregate syntax: 
query I rowsort label-6949
SELECT - 33 * COUNT( * ) AS col1 FROM tab1 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-6949
SELECT - 33 * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6950
SELECT ALL col0 FROM tab1 AS cor0 WHERE NOT + 18 * + CAST( NULL AS SIGNED ) + ( 18 ) BETWEEN NULL AND + ( + 74 )
----

skipif mysql # not compatible
query I rowsort label-6950
SELECT ALL col0 FROM tab1 AS cor0 WHERE NOT + 18 * + CAST ( NULL AS INTEGER ) + ( 18 ) BETWEEN NULL AND + ( + 74 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6951
SELECT - + col0 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6951
SELECT - + col0 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6952
SELECT DISTINCT ( + 7 ) DIV COUNT( * ) FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-6952
SELECT DISTINCT ( + 7 ) / COUNT ( * ) FROM tab1 AS cor0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6953
SELECT 15 * CAST( NULL AS SIGNED ) col2 FROM tab2 cor0 WHERE NOT col1 IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6953
SELECT 15 * CAST ( NULL AS INTEGER ) col2 FROM tab2 cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 35 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
35

query I rowsort
SELECT ALL - 82 * col0 AS col1 FROM tab0 AS cor0
----
-1230
-7134
-7954

onlyif mysql # aggregate syntax: 
query I rowsort label-6956
SELECT DISTINCT + MAX( ALL + col1 ) * - COUNT( * ) col1 FROM tab0
----
-243

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6956
SELECT DISTINCT + MAX ( ALL + col1 ) * - COUNT ( * ) col1 FROM tab0
----
-243

query III rowsort
SELECT * FROM tab0 WHERE NOT 28 / 49 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6958
SELECT 90 * - 91 * 54 + COUNT( * ) AS col2 FROM tab0
----
-442257

skipif mysql # not compatible
query I rowsort label-6958
SELECT 90 * - 91 * 54 + COUNT ( * ) AS col2 FROM tab0
----
-442257

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6959
SELECT CAST( NULL AS SIGNED ) + 49 + - col2 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6959
SELECT CAST ( NULL AS INTEGER ) + 49 + - col2 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 + col1 AS col0 FROM tab1 WHERE NULL BETWEEN ( 90 ) AND col0 + 91 * - 57
----

query III rowsort
SELECT * FROM tab2 WHERE col2 / + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6962
SELECT DISTINCT 47 + + COUNT( DISTINCT - 62 ) + + COUNT( * ) FROM tab0
----
51

skipif mysql # not compatible
query I rowsort label-6962
SELECT DISTINCT 47 + + COUNT ( DISTINCT - 62 ) + + COUNT ( * ) FROM tab0
----
51

query I rowsort
SELECT 20 + - col2 AS col2 FROM tab0
----
-27
-79
10

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6964
SELECT 96 * ( COUNT( * ) ) + CAST( NULL AS DECIMAL ) col1 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6964
SELECT 96 * ( COUNT ( * ) ) + CAST ( NULL AS REAL ) col1 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + - 88 ) col0 FROM tab0
----
-88

query I rowsort
SELECT - 79 + + col1 FROM tab0
----
-58
-78
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 2 * - col2 - - ( - col2 ) * + 47 col1 FROM tab1 AS cor0
----
-2891
-3332
-4704

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 IN ( 5 * + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NULL ) NOT BETWEEN 46 AND ( + 74 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6970
SELECT DISTINCT - ( - col1 ) + ( col2 + + ( - CAST( NULL AS DECIMAL ) ) ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6970
SELECT DISTINCT - ( - col1 ) + ( col2 + + ( - CAST ( NULL AS REAL ) ) ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6971
SELECT DISTINCT ( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6971
SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - 75 + - 2 FROM tab1 WHERE - 3 + + col0 IS NOT NULL
----
-77
-77
-77

query III rowsort
SELECT * FROM tab0 WHERE NULL < ( col0 * - 33 )
----

query I rowsort
SELECT - col0 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( col2 * - col0 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 BETWEEN NULL AND ( col2 * - col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6976
SELECT DISTINCT - CAST( NULL AS DECIMAL ) - - COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6976
SELECT DISTINCT - CAST ( NULL AS REAL ) - - COUNT ( * ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN 17 AND ( col1 / - col1 )
----

query I rowsort
SELECT 35 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
35
35
35

query I rowsort
SELECT ALL + - 84 - + col2 AS col2 FROM tab2 AS cor0
----
-107
-124
-142

query III rowsort
SELECT * FROM tab0 WHERE + - col1 IN ( 38 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 94 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-6982
SELECT - MAX( ALL - 74 ) AS col1, COUNT( ALL - col1 ) FROM tab0
----
74
3

skipif mysql # not compatible
query II rowsort label-6982
SELECT - MAX ( ALL - 74 ) AS col1, COUNT ( ALL - col1 ) FROM tab0
----
74
3

query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 < NULL
----

query I rowsort
SELECT col2 * - col1 FROM tab0 WHERE NOT 23 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + col1 AND NULL
----

query I rowsort
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE NOT 33 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6987
SELECT - ( + MIN( ALL - col2 ) ) AS col1 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-6987
SELECT - ( + MIN ( ALL - col2 ) ) AS col1 FROM tab0 AS cor0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6988
SELECT DISTINCT col1 AS col1, + 34 / + CAST( NULL AS SIGNED ) + col2 * - - col1 * + 65 col1 FROM tab2
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6988
SELECT DISTINCT col1 AS col1, + 34 / + CAST ( NULL AS INTEGER ) + col2 * - - col1 * + 65 col1 FROM tab2
----
51
NULL
67
NULL
77
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6989
SELECT DISTINCT + + SUM( 68 ) + - 59 - 56 AS col1 FROM tab2 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-6989
SELECT DISTINCT + + SUM ( 68 ) + - 59 - 56 AS col1 FROM tab2 AS cor0
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6990
SELECT ALL + - COUNT( * ) * - + 55 + COUNT( * ) - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT 34 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6990
SELECT ALL + - COUNT ( * ) * - + 55 + COUNT ( * ) - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT 34 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6991
SELECT - + SUM( ALL col0 ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-6991
SELECT - + SUM ( ALL col0 ) FROM tab0 AS cor0
----
-199

query I rowsort
SELECT col2 AS col1 FROM tab0 AS cor0 WHERE NOT 35 + - 89 + + 12 NOT BETWEEN NULL AND + 24
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6993
SELECT ( - - SUM( DISTINCT + col1 ) ) + - COUNT( * ) + COUNT( * ) * + MIN( DISTINCT + col1 - + col0 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-177

skipif mysql # not compatible
query I rowsort label-6993
SELECT ( - - SUM ( DISTINCT + col1 ) ) + - COUNT ( * ) + COUNT ( * ) * + MIN ( DISTINCT + col1 - + col0 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-177

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6994
SELECT DISTINCT + col0 AS col0, CAST( - 15 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
51
-15
85
-15
91
-15

skipif mysql # not compatible
query II rowsort label-6994
SELECT DISTINCT + col0 AS col0, CAST ( - 15 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
51
-15
85
-15
91
-15

query I rowsort
SELECT - col0 * - - ( col0 ) * col1 AS col2 FROM tab0 cor0
----
-158949
-18225
-9409

query I rowsort
SELECT DISTINCT + col0 + + + col1 AS col0 FROM tab2
----
141
142
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6997
SELECT DISTINCT * FROM tab0 WHERE NOT ( + 78 ) <= ( ( + CAST( + ( 25 ) AS SIGNED ) ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6997
SELECT DISTINCT * FROM tab0 WHERE NOT ( + 78 ) <= ( ( + CAST ( + ( 25 ) AS INTEGER ) ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - + col2 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6999
SELECT + + 21 * - SUM( ALL + 39 ) * + MAX( DISTINCT col2 ) FROM tab0 WHERE NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6999
SELECT + + 21 * - SUM ( ALL + 39 ) * + MAX ( DISTINCT col2 ) FROM tab0 WHERE NULL >= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7000
SELECT ALL MIN( DISTINCT - 11 ) * + + COUNT( - 38 ) * + COUNT( * ) * - 36 + + 98 FROM tab1
----
3662

skipif mysql # not compatible
query I rowsort label-7000
SELECT ALL MIN ( DISTINCT - 11 ) * + + COUNT ( - 38 ) * + COUNT ( * ) * - 36 + + 98 FROM tab1
----
3662

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 col0 FROM tab0 WHERE ( NOT col0 IS NULL )
----
15
87
97

query III rowsort
SELECT * FROM tab1 WHERE col0 * - col0 BETWEEN ( NULL ) AND + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col1 ) + + col2 col2 FROM tab2 AS cor0
----
-28
-37
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 AS col0, - 56 + - 21 col2 FROM tab1 AS cor0
----
51
-77
85
-77
91
-77

query II rowsort
SELECT DISTINCT + col1, 42 AS col0 FROM tab0 AS cor0
----
1
42
21
42
81
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7006
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + + col0 AS col1 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7006
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + + col0 AS col1 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7007
SELECT DISTINCT + CAST( NULL AS SIGNED ), CAST( NULL AS SIGNED ) / - col1 FROM tab2 AS cor0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7007
SELECT DISTINCT + CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) / - col1 FROM tab2 AS cor0
----
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7008
SELECT DISTINCT + - col1 - + CAST( NULL AS DECIMAL ) + - - 5 + col2 col0, + 85 AS col2 FROM tab0 AS cor0
----
NULL
85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7008
SELECT DISTINCT + - col1 - + CAST ( NULL AS REAL ) + - - 5 + col2 col0, + 85 AS col2 FROM tab0 AS cor0
----
NULL
85

query I rowsort
SELECT ALL + ( 89 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

query I rowsort
SELECT ALL - 64 - + col1 AS col1 FROM tab2 AS cor0
----
-115
-131
-141

query I rowsort
SELECT DISTINCT + col2 * - col0 * col0 + + col2 + + col2 + + 80 * - 69 * 77 FROM tab0 AS cor0
----
-1356333
-435521
-500710

onlyif mysql # aggregate syntax: 
query I rowsort label-7012
SELECT DISTINCT ( - - 4 ) - + SUM( DISTINCT + + 7 ) - 42 + - + COUNT( * ) FROM tab2 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-7012
SELECT DISTINCT ( - - 4 ) - + SUM ( DISTINCT + + 7 ) - 42 + - + COUNT ( * ) FROM tab2 AS cor0
----
-48

query I rowsort
SELECT - col0 - - + 99 + - + col0 FROM tab0 AS cor0
----
-75
-95
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7014
SELECT COUNT( * ) - - + 75 FROM tab2 cor0
----
78

skipif mysql # not compatible
query I rowsort label-7014
SELECT COUNT ( * ) - - + 75 FROM tab2 cor0
----
78

query I rowsort
SELECT ALL col0 AS col0 FROM tab1 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT DISTINCT 16 * + 68 FROM tab0 AS cor0
----
1088

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7017
SELECT + SUM( + col2 ) * - CAST( + - AVG ( + CAST( col2 AS SIGNED ) ) AS SIGNED ) AS col1 FROM tab1
----
16502

skipif mysql # not compatible
query I rowsort label-7017
SELECT + SUM ( + col2 ) * - CAST ( + - AVG ( + CAST ( col2 AS INTEGER ) ) AS INTEGER ) AS col1 FROM tab1
----
16502

query I rowsort
SELECT ALL col2 * 62 AS col1 FROM tab0
----
2914
6138
620

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7019
SELECT DISTINCT + CAST( NULL AS SIGNED ) / + col1 / - col0 AS col2, - 4 + + 75 AS col2 FROM tab2
----
NULL
71

skipif mysql # not compatible
query II rowsort label-7019
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + col1 / - col0 AS col2, - 4 + + 75 AS col2 FROM tab2
----
NULL
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7020
SELECT - 54 * COUNT( * ) FROM tab2
----
-162

skipif mysql # not compatible
query I rowsort label-7020
SELECT - 54 * COUNT ( * ) FROM tab2
----
-162

query I rowsort
SELECT ALL - col2 * + 36 FROM tab0
----
-1692
-3564
-360

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - 71 * 21 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 43 * + col2 FROM tab1 AS cor0
----
-2537
-2924
-4128

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL > ( - col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7025
SELECT ALL CAST( NULL AS SIGNED ) AS col1, COUNT( * ) AS col2 FROM tab0, tab0 AS cor0
----
NULL
9

skipif mysql # not compatible
query II rowsort label-7025
SELECT ALL CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) AS col2 FROM tab0, tab0 AS cor0
----
NULL
9

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + 43 IS NOT NULL
----

query I rowsort
SELECT ALL - col1 * col0 / - - 81 * + + col0 FROM tab0 cor0 WHERE ( NULL ) IN ( - 18, 43 * - + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 * 54 AS col2, col0 col1 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7029
SELECT DISTINCT + 96 + + CAST( NULL AS SIGNED ), col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-7029
SELECT DISTINCT + 96 + + CAST ( NULL AS INTEGER ), col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

onlyif mysql # aggregate syntax: 
query II rowsort label-7030
SELECT DISTINCT SUM( ALL - 44 ) col2, 85 AS col0 FROM tab0 cor0
----
-132
85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7030
SELECT DISTINCT SUM ( ALL - 44 ) col2, 85 AS col0 FROM tab0 cor0
----
-132
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7031
SELECT ALL CAST( SUM( ALL - 69 ) AS SIGNED ) FROM tab1
----
-207

skipif mysql # not compatible
query I rowsort label-7031
SELECT ALL CAST ( SUM ( ALL - 69 ) AS INTEGER ) FROM tab1
----
-207

query II rowsort
SELECT - col1 + - 76 * col2, + 19 AS col2 FROM tab1
----
-4489
19
-5215
19
-7310
19

query I rowsort
SELECT - ( + col1 ) + + col2 AS col2 FROM tab0
----
-11
-34
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + + col0 col0 FROM tab2
----
128
150
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7035
SELECT ALL CAST( - - col1 AS SIGNED ) AS col0 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-7035
SELECT ALL CAST ( - - col1 AS INTEGER ) AS col0 FROM tab2
----
51
67
77

query I rowsort
SELECT DISTINCT col0 * + col2 * - col1 + col1 + + col0 AS col2 FROM tab2
----
-196979
-291308
-53861

query I rowsort
SELECT DISTINCT + col2 * + 88 + - - 98 FROM tab1
----
5290
6082
8546

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7038
SELECT + - 53 FROM tab0 WHERE NULL IN ( col0 * + 16, ( - + CAST( NULL AS DECIMAL ) ) * col2 + + col2 )
----

skipif mysql # not compatible
query I rowsort label-7038
SELECT + - 53 FROM tab0 WHERE NULL IN ( col0 * + 16, ( - + CAST ( NULL AS REAL ) ) * col2 + + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7039
SELECT ALL + col2 + + 59 + - 81 + 84 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7039
SELECT ALL + col2 + + 59 + - 81 + 84 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7040
SELECT - COUNT( + - 54 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7040
SELECT - COUNT ( + - 54 ) FROM tab2 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL > col2 )
----

query I rowsort
SELECT ALL 60 - - 17 FROM tab0
----
77
77
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col0 * + + col0 col2 FROM tab1
----
249696
426275
563108

query I rowsort
SELECT col2 - - col1 * + - 69 AS col0 FROM tab1
----
-286
-3175
-870

onlyif mysql # aggregate syntax: 
query I rowsort label-7045
SELECT 57 * 42 - + COUNT( * ) col0 FROM tab0
----
2391

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7045
SELECT 57 * 42 - + COUNT ( * ) col0 FROM tab0
----
2391

query I rowsort
SELECT + col2 + ( - - col0 ) FROM tab0 AS cor0 WHERE NOT + col0 + - col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7047
SELECT ALL MAX( ALL - col0 ) col1 FROM tab1
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7047
SELECT ALL MAX ( ALL - col0 ) col1 FROM tab1
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-7048
SELECT ALL col1 * + col2 DIV - ( - col2 ) FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-7048
SELECT ALL col1 * + col2 / - ( - col2 ) FROM tab0
----
1
21
81

query I rowsort
SELECT + col0 * + 57 FROM tab1
----
2907
4845
5187

onlyif mysql # DIV for integer division: 
query III rowsort label-7050
SELECT DISTINCT col1 AS col0, ( - col1 ) DIV - 12 AS col1, - col0 FROM tab1
----
9 values hashing to 79576b11f40fbeb8dc4959fbce7b4462

skipif mysql # not compatible
query III rowsort label-7050
SELECT DISTINCT col1 AS col0, ( - col1 ) / - 12 AS col1, - col0 FROM tab1
----
9 values hashing to 79576b11f40fbeb8dc4959fbce7b4462

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 3 * - - col1 + + col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 86 col2 FROM tab0 AS cor0
----
86
86
86

query I rowsort
SELECT DISTINCT 77 FROM tab2 AS cor0 WHERE NOT NULL > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7054
SELECT ALL + MAX( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7054
SELECT ALL + MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 97 col1, - col1 FROM tab0 AS cor0
----
-97
-1
-97
-21
-97
-81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7056
SELECT ALL * FROM tab0 WHERE NOT + - CAST( NULL AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-7056
SELECT ALL * FROM tab0 WHERE NOT + - CAST ( NULL AS INTEGER ) >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7057
SELECT + COUNT( * ) * MIN( - + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7057
SELECT + COUNT ( * ) * MIN ( - + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7058
SELECT DISTINCT COUNT( + + 15 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7058
SELECT DISTINCT COUNT ( + + 15 ) AS col0 FROM tab0
----
3

query I rowsort
SELECT 93 AS col2 FROM tab0 WHERE + + col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7060
SELECT - - AVG ( ALL + CAST( NULL AS DECIMAL ) ) / ( - MAX( col1 ) ) + + 94 + + 56 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7060
SELECT - - AVG ( ALL + CAST ( NULL AS REAL ) ) / ( - MAX ( col1 ) ) + + 94 + + 56 FROM tab2 cor0
----
NULL

query I rowsort
SELECT - ( + col2 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 + + col0 AS col2, + col2 col0 FROM tab2 cor0
----
104
40
133
58
69
23

query I rowsort
SELECT + 93 + - col2 - col0 AS col2 FROM tab0 AS cor0
----
-103
-4
31

query II rowsort
SELECT - 41 AS col0, 27 AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to d3068b7c6fbac2f2b8b19a57ed295939

onlyif mysql # aggregate syntax: 
query I rowsort label-7065
SELECT COUNT( * ) * 79 FROM tab2
----
237

skipif mysql # not compatible
query I rowsort label-7065
SELECT COUNT ( * ) * 79 FROM tab2
----
237

onlyif mysql # DIV for integer division: 
query I rowsort label-7066
SELECT - col0 DIV + col2 + - - 98 * col1 AS col0 FROM tab1 AS cor0
----
1372
4605
489

skipif mysql # not compatible
query I rowsort label-7066
SELECT - col0 / + col2 + - - 98 * col1 AS col0 FROM tab1 AS cor0
----
1372
4605
489

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( - - col1 ) col0 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT DISTINCT ( - - col2 ) AS col2 FROM tab2 AS cor0
----
23
40
58

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( NULL ) IN ( + + col1 - col1 )
----

query I rowsort
SELECT - 61 * - - col2 AS col0 FROM tab1 AS cor0
----
-3599
-4148
-5856

query I rowsort
SELECT ALL col2 * - 71 AS col0 FROM tab1 AS cor0
----
-4189
-4828
-6816

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7072
SELECT - COUNT( * ) DIV + - 85 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7072
SELECT - COUNT ( * ) / + - 85 FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7073
SELECT + - col2 DIV - - col0 FROM tab0 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-7073
SELECT + - col2 / - - col0 FROM tab0 AS cor0
----
-1
-3
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 68 = + 5
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7075
SELECT DISTINCT + CAST( NULL AS SIGNED ) * AVG ( ALL 67 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7075
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * AVG ( ALL 67 ) FROM tab1
----
NULL

query I rowsort
SELECT - 17 FROM tab1 WHERE NOT col0 + col0 NOT IN ( col2 * - col2 )
----

query I rowsort
SELECT 54 * col0 AS col1 FROM tab2
----
2484
3456
4050

onlyif mysql # aggregate syntax: 
query I rowsort label-7078
SELECT 95 * + - MAX( ALL + col1 ) FROM tab2
----
-7315

skipif mysql # not compatible
query I rowsort label-7078
SELECT 95 * + - MAX ( ALL + col1 ) FROM tab2
----
-7315

query I rowsort
SELECT ( col2 ) + - col2 + + - col1 AS col2 FROM tab1
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7080
SELECT + ( + - 16 ) * col0 / + + ( - CAST( NULL AS SIGNED ) ) * + - 23 + col1 * + col1 - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7080
SELECT + ( + - 16 ) * col0 / + + ( - CAST ( NULL AS INTEGER ) ) * + - 23 + col1 * + col1 - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 92 + + + col1 > + + col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) < - col2
----

query I rowsort
SELECT ALL - 2 + ( - ( + col1 ) ) AS col1 FROM tab2
----
-53
-69
-79

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN col1 * 15 / - + 64 AND ( NULL )
----

query I rowsort
SELECT 61 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 07149905a72bd87553381f34d19ed290

onlyif mysql # aggregate syntax: 
query I rowsort label-7086
SELECT ALL - MAX( ALL - - col1 ) AS col0 FROM tab2 WHERE NOT ( col0 ) + 87 IN ( - + 12, - 20, - - col0 )
----
-77

skipif mysql # not compatible
query I rowsort label-7086
SELECT ALL - MAX ( ALL - - col1 ) AS col0 FROM tab2 WHERE NOT ( col0 ) + 87 IN ( - + 12, - 20, - - col0 )
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-7087
SELECT ALL - col0 DIV - 79 col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7087
SELECT ALL - col0 / - 79 col2 FROM tab1
----
0
1
1

query I rowsort
SELECT - ( - 22 ) AS col2 FROM tab1
----
22
22
22

query I rowsort
SELECT col0 AS col1 FROM tab1 AS cor0 WHERE ( col2 ) < ( NULL )
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE + 89 + - 50 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7091
SELECT ALL + col0 + - - CAST( 82 AS SIGNED ) DIV - + col1 FROM tab1 AS cor0
----
46
69
90

skipif mysql # not compatible
query I rowsort label-7091
SELECT ALL + col0 + - - CAST ( 82 AS INTEGER ) / - + col1 FROM tab1 AS cor0
----
46
69
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7092
SELECT DISTINCT MIN( ALL + 73 ) FROM tab1 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-7092
SELECT DISTINCT MIN ( ALL + 73 ) FROM tab1 AS cor0
----
73

query II rowsort
SELECT + - 31 + + col2, 60 AS col1 FROM tab2 AS cor0
----
-8
60
27
60
9
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7094
SELECT ALL ( + 0 ) + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7094
SELECT ALL ( + 0 ) + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT 82 * col0 * ( - 20 ) + - 62 + + col0 FROM tab0 AS cor0
----
-142655
-159045
-24647

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) <= - - col2
----

query I rowsort
SELECT DISTINCT + 42 + col2 AS col0 FROM tab1 cor0
----
101
110
138

query II rowsort
SELECT ALL + - 13 + col1 AS col1, 98 + - - 67 FROM tab0 cor0
----
-12
165
68
165
8
165

query I rowsort
SELECT - - ( - + col0 ) + - 62 AS col2 FROM tab2 WHERE ( NOT + 0 - + 87 IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7100
SELECT + col2 * + + col2 * - 10 + - 7 DIV + col0 AS col2 FROM tab0
----
-1000
-22090
-98010

skipif mysql # not compatible
query I rowsort label-7100
SELECT + col2 * + + col2 * - 10 + - 7 / + col0 AS col2 FROM tab0
----
-1000
-22090
-98010

query I rowsort
SELECT + ( + col2 ) FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7102
SELECT col0 DIV + 85 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7102
SELECT col0 / + 85 FROM tab1
----
0
1
1

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL BETWEEN - 26 * - col2 * - 31 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7104
SELECT + SUM( ( - - col2 ) ) * - + COUNT( * ) col1 FROM tab0 AS cor0
----
-468

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7104
SELECT + SUM ( ( - - col2 ) ) * - + COUNT ( * ) col1 FROM tab0 AS cor0
----
-468

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7105
SELECT + 16 + SUM( ALL CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7105
SELECT + 16 + SUM ( ALL CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <> + + col2 * - - col1
----

query I rowsort
SELECT + + col1 - - - col1 FROM tab1 WHERE NOT 72 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7108
SELECT DISTINCT + MIN( + col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-7108
SELECT DISTINCT + MIN ( + col2 ) FROM tab0 AS cor0
----
10

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( + 10 * - col1 ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7110
SELECT DISTINCT - COUNT( - 35 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7110
SELECT DISTINCT - COUNT ( - 35 ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7111
SELECT ALL - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE ( NULL <= - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-7111
SELECT ALL - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE ( NULL <= - col1 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7112
SELECT + col2 DIV - col1 + - 98 FROM tab1 AS cor0
----
-104
-109
-99

skipif mysql # not compatible
query I rowsort label-7112
SELECT + col2 / - col1 + - 98 FROM tab1 AS cor0
----
-104
-109
-99

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7113
SELECT CAST( NULL AS DECIMAL ) * col2 AS col2, col0 + 95 - + + 84 * + 77 FROM tab0 AS cor0
----
NULL
-6276
NULL
-6286
NULL
-6358

skipif mysql # not compatible
query II rowsort label-7113
SELECT CAST ( NULL AS REAL ) * col2 AS col2, col0 + 95 - + + 84 * + 77 FROM tab0 AS cor0
----
NULL
-6276
NULL
-6286
NULL
-6358

onlyif mysql # aggregate syntax: 
query I rowsort label-7114
SELECT MAX( DISTINCT + - ( 25 ) ) FROM tab0
----
-25

skipif mysql # not compatible
query I rowsort label-7114
SELECT MAX ( DISTINCT + - ( 25 ) ) FROM tab0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-7115
SELECT DISTINCT + 52 * - COUNT( * ) * 78 AS col0 FROM tab0
----
-12168

skipif mysql # not compatible
query I rowsort label-7115
SELECT DISTINCT + 52 * - COUNT ( * ) * 78 AS col0 FROM tab0
----
-12168

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - 65 + + + col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7117
SELECT MIN( DISTINCT 61 ) AS col1 FROM tab1 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-7117
SELECT MIN ( DISTINCT 61 ) AS col1 FROM tab1 AS cor0
----
61

query I rowsort
SELECT - ( - 45 ) AS col1 FROM tab2 AS cor0
----
45
45
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7119
SELECT DISTINCT - MAX( - + 7 ) * - 51 * + + 79 + + - COUNT( * ) FROM tab0 AS cor0
----
-28206

skipif mysql # not compatible
query I rowsort label-7119
SELECT DISTINCT - MAX ( - + 7 ) * - 51 * + + 79 + + - COUNT ( * ) FROM tab0 AS cor0
----
-28206

onlyif mysql # aggregate syntax: 
query I rowsort label-7120
SELECT - + COUNT( * ) FROM tab0 AS cor0 WHERE NULL = - 30
----
0

skipif mysql # not compatible
query I rowsort label-7120
SELECT - + COUNT ( * ) FROM tab0 AS cor0 WHERE NULL = - 30
----
0

query I rowsort
SELECT - + ( col0 ) + + 56 FROM tab2 AS cor0
----
-19
-8
10

onlyif mysql # DIV for integer division: 
query I rowsort label-7122
SELECT col2 DIV + 77 + + col0 * - + 81 AS col2 FROM tab2
----
-3726
-5184
-6075

skipif mysql # not compatible
query I rowsort label-7122
SELECT col2 / + 77 + + col0 * - + 81 AS col2 FROM tab2
----
-3726
-5184
-6075

query II rowsort
SELECT ALL 31 * - - 82 AS col1, - 56 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to 54fa17229406662c0843be7e2091c49b

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7124
SELECT ALL 25 + - + SUM( CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7124
SELECT ALL 25 + - + SUM ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + ( - ( - 60 ) ) col0 FROM tab1
----
107
65
74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7126
SELECT - - 34 AS col0, - CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
34
NULL
34
NULL
34
NULL

skipif mysql # not compatible
query II rowsort label-7126
SELECT - - 34 AS col0, - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
34
NULL
34
NULL
34
NULL

query I rowsort
SELECT DISTINCT - + col1 AS col0 FROM tab0 AS cor0 WHERE ( - 55 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7128
SELECT - col2 col0, 19 * + CAST( - col2 AS SIGNED ) * col1 FROM tab1 AS cor0
----
-59
-5605
-68
-60724
-96
-25536

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7128
SELECT - col2 col0, 19 * + CAST ( - col2 AS INTEGER ) * col1 FROM tab1 AS cor0
----
-59
-5605
-68
-60724
-96
-25536

onlyif mysql # aggregate syntax: 
query I rowsort label-7129
SELECT ALL - + ( - - COUNT( * ) ) + + - 69 FROM tab2 cor0
----
-72

skipif mysql # not compatible
query I rowsort label-7129
SELECT ALL - + ( - - COUNT ( * ) ) + + - 69 FROM tab2 cor0
----
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 85, - ( 79 ) col2 FROM tab0 AS cor0
----
85
-79
85
-79
85
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-7131
SELECT - COUNT( * ) * - 14 + 71 * 36 col2 FROM tab2 AS cor0
----
2598

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7131
SELECT - COUNT ( * ) * - 14 + 71 * 36 col2 FROM tab2 AS cor0
----
2598

query II rowsort
SELECT col2 AS col2, col0 AS col0 FROM tab0 AS cor0
----
10
87
47
15
99
97

query I rowsort
SELECT + 7 * 80 FROM tab1 cor0
----
560
560
560

onlyif mysql # aggregate syntax: 
query I rowsort label-7134
SELECT + - 4 * MIN( DISTINCT + + col0 ) FROM tab1 AS cor0 WHERE - ( 51 ) NOT BETWEEN + 42 AND NULL
----
-204

skipif mysql # not compatible
query I rowsort label-7134
SELECT + - 4 * MIN ( DISTINCT + + col0 ) FROM tab1 AS cor0 WHERE - ( 51 ) NOT BETWEEN + 42 AND NULL
----
-204

onlyif mysql # aggregate syntax: 
query I rowsort label-7135
SELECT DISTINCT - - MAX( ALL - + col1 ) AS col1 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-7135
SELECT DISTINCT - - MAX ( ALL - + col1 ) AS col1 FROM tab2 AS cor0
----
-51

query I rowsort
SELECT + col1 * + - col1 FROM tab2 AS cor0
----
-2601
-4489
-5929

query I rowsort
SELECT + + 38 FROM tab2 WHERE + 93 <= + 37
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( + col2 ) + 56 + + - col0 col0 FROM tab2 AS cor0
----
-13
-48
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7139
SELECT ALL - - MAX( + col0 ) FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
97

skipif mysql # not compatible
query I rowsort label-7139
SELECT ALL - - MAX ( + col0 ) FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
97

query I rowsort
SELECT 22 AS col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - col2 + - - col1 AND 76
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7141
SELECT + - col2 DIV - 6 FROM tab0 AS cor0
----
1
16
7

skipif mysql # not compatible
query I rowsort label-7141
SELECT + - col2 / - 6 FROM tab0 AS cor0
----
1
16
7

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 76 = ( + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7143
SELECT + col1 / - col0 * - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7143
SELECT + col1 / - col0 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - - 77 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + - 85 * - 21 + ( + col0 ) AS col0 FROM tab2 AS cor0
----
1831
1849
1860

onlyif mysql # aggregate syntax: 
query I rowsort label-7146
SELECT ALL - SUM( ALL col1 ) AS col1 FROM tab1 cor0
----
-66

skipif mysql # not compatible
query I rowsort label-7146
SELECT ALL - SUM ( ALL col1 ) AS col1 FROM tab1 cor0
----
-66

query I rowsort
SELECT 1 * - 23 AS col1 FROM tab0 AS cor0
----
-23
-23
-23

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 12 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7149
SELECT COUNT( * ) DIV 35 DIV - 40 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7149
SELECT COUNT ( * ) / 35 / - 40 AS col1 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL > 20
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7151
SELECT * FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-7151
SELECT * FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7152
SELECT DISTINCT + + 12 * - COUNT( * ) * - MAX( - col0 ) + - COUNT( ALL + - 45 ) + 12 AS col0 FROM tab1 AS cor0
----
-1827

skipif mysql # not compatible
query I rowsort label-7152
SELECT DISTINCT + + 12 * - COUNT ( * ) * - MAX ( - col0 ) + - COUNT ( ALL + - 45 ) + 12 AS col0 FROM tab1 AS cor0
----
-1827

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 98 / + 26 + + + 65
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7154
SELECT col1 DIV ( col1 ) col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7154
SELECT col1 / ( col1 ) col2 FROM tab2
----
1
1
1

query I rowsort
SELECT DISTINCT 67 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
67

query I rowsort
SELECT col0 - - 89 AS col1 FROM tab0
----
104
176
186

query I rowsort
SELECT ALL + + 72 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

onlyif mysql # aggregate syntax: 
query I rowsort label-7158
SELECT DISTINCT - 46 + - COUNT( * ) FROM tab1 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-7158
SELECT DISTINCT - 46 + - COUNT ( * ) FROM tab1 AS cor0
----
-49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT - + 32 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + - 96 * - col1 AS col0 FROM tab0 AS cor0 WHERE NULL = col0 + - + col2 + - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7161
SELECT SUM( 32 ) + + 69 FROM tab0 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-7161
SELECT SUM ( 32 ) + + 69 FROM tab0 AS cor0
----
165

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7162
SELECT CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7162
SELECT CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 2 ) IS NULL
----

query I rowsort
SELECT ALL 84 + + col2 + + ( + + col1 ) AS col1 FROM tab2 cor0
----
158
201
209

query II rowsort
SELECT ALL 59 AS col0, col0 * - col2 AS col0 FROM tab0 AS cor0
----
59
-705
59
-870
59
-9603

query I rowsort
SELECT ALL - col0 - + - col2 AS col0 FROM tab0
----
-77
2
32

onlyif mysql # DIV for integer division: 
query II rowsort label-7167
SELECT DISTINCT 5 AS col2, - col0 DIV + + col2 FROM tab0
----
5
-8
5
0

skipif mysql # not compatible
query II rowsort label-7167
SELECT DISTINCT 5 AS col2, - col0 / + + col2 FROM tab0
----
5
-8
5
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7168
SELECT + COUNT( * ) FROM tab1 WHERE ( - 0 + - col0 * + col0 ) <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-7168
SELECT + COUNT ( * ) FROM tab1 WHERE ( - 0 + - col0 * + col0 ) <= NULL
----
0

query I rowsort
SELECT ( - col2 ) * - col1 * col2 AS col1 FROM tab0
----
178929
2100
9801

query I rowsort
SELECT 25 * + 23 FROM tab1
----
575
575
575

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7171
SELECT - col2 * - - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7171
SELECT - col2 * - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7172
SELECT - 86 DIV COUNT( * ) DIV MIN( - ( col2 ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7172
SELECT - 86 / COUNT ( * ) / MIN ( - ( col2 ) ) FROM tab0
----
0

query I rowsort
SELECT ALL ( - col1 ) * + 15 FROM tab0
----
-1215
-15
-315

onlyif mysql # DIV for integer division: 
query I rowsort label-7174
SELECT - + 32 DIV + 67 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7174
SELECT - + 32 / + 67 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7175
SELECT 63 * + COUNT( * ) FROM tab1
----
189

skipif mysql # not compatible
query I rowsort label-7175
SELECT 63 * + COUNT ( * ) FROM tab1
----
189

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE + 47 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7177
SELECT DISTINCT - 88 DIV + - ( 10 ) FROM tab0 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-7177
SELECT DISTINCT - 88 / + - ( 10 ) FROM tab0 AS cor0
----
8

query II rowsort
SELECT DISTINCT + col1 * + + col0 + + col0 AS col2, + col2 * - 24 FROM tab1 cor0
----
4368
-1632
510
-1416
765
-2304

query I rowsort
SELECT ALL - 69 AS col0 FROM tab2 cor0
----
-69
-69
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col2 FROM tab2 AS cor0 WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7181
SELECT - SUM( - 77 ) col2 FROM tab0 AS cor0
----
231

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7181
SELECT - SUM ( - 77 ) col2 FROM tab0 AS cor0
----
231

query II rowsort
SELECT - col2 * - - col2 AS col1, + 96 AS col2 FROM tab1 cor0
----
-3481
96
-4624
96
-9216
96

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col0 ) / + - col1 + + - col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7184
SELECT ALL - col1 DIV - 61 + - 29 FROM tab2
----
-28
-28
-29

skipif mysql # not compatible
query I rowsort label-7184
SELECT ALL - col1 / - 61 + - 29 FROM tab2
----
-28
-28
-29

query II rowsort
SELECT DISTINCT col0, - col1 FROM tab2
----
46
-51
64
-77
75
-67

query I rowsort
SELECT ALL ( - + col2 ) * + + 91 + - + col0 AS col1 FROM tab1 AS cor0
----
-5454
-6279
-8787

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - ( + - col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7188
SELECT 80 * + CAST( NULL AS SIGNED ) + + 27 * + + 34 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7188
SELECT 80 * + CAST ( NULL AS INTEGER ) + + 27 * + + 34 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + 69 + + - col2 col2 FROM tab0 AS cor0
----
-1082
-6013
-6792

query I rowsort
SELECT - col1 + + + col0 AS col2 FROM tab0 AS cor0
----
-66
66
96

query I rowsort
SELECT ALL - - 64 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7192
SELECT COUNT( * ) DIV - 85 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7192
SELECT COUNT ( * ) / - 85 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + col0 * col2 * + + col0 AS col2 FROM tab0 AS cor0
----
10575
75690
931491

query I rowsort
SELECT + + ( + ( + - col1 ) ) FROM tab2 AS cor0
----
-51
-67
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - - 54 + + - col0 + + col0 col0 FROM tab1 AS cor0
----
3186
3672
5184

query I rowsort
SELECT ALL - 59 * - + col1 + - + col2 FROM tab1 AS cor0
----
236
2705
730

query I rowsort
SELECT - - col0 - + col1 AS col2 FROM tab2 AS cor0
----
-13
-5
8

query I rowsort
SELECT - col1 - + col1 + - 98 FROM tab2
----
-200
-232
-252

query II rowsort
SELECT 1 AS col0, - col2 AS col0 FROM tab0
----
1
-10
1
-47
1
-99

query I rowsort
SELECT ALL + 74 * col2 FROM tab0
----
3478
7326
740

query I rowsort
SELECT DISTINCT - col1 * - ( col1 ) FROM tab2
----
2601
4489
5929

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 38 NOT IN ( - - col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7203
SELECT ALL - 47 DIV COUNT( * ) AS col0 FROM tab1
----
-15

skipif mysql # not compatible
query I rowsort label-7203
SELECT ALL - 47 / COUNT ( * ) AS col0 FROM tab1
----
-15

query II rowsort
SELECT ALL - col1 AS col1, - col1 * - col2 FROM tab1 WHERE NOT ( col2 * 75 <> NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7205
SELECT DISTINCT + col0 DIV - col1 AS col2 FROM tab1
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-7205
SELECT DISTINCT + col0 / - col1 AS col2 FROM tab1
----
-1
-17
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-7206
SELECT - col2 DIV 7 FROM tab1 AS cor0
----
-13
-8
-9

skipif mysql # not compatible
query I rowsort label-7206
SELECT - col2 / 7 FROM tab1 AS cor0
----
-13
-8
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7207
SELECT ALL - + MAX( ALL - col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-7207
SELECT ALL - + MAX ( ALL - col0 ) FROM tab1 AS cor0
----
51

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 BETWEEN 80 AND NULL
----

query I rowsort
SELECT DISTINCT ( - 47 ) * - + 20 * 9 FROM tab0 AS cor0
----
8460

onlyif mysql # DIV for integer division: 
query II rowsort label-7210
SELECT ALL - col1 DIV + col2 col1, + col2 FROM tab2
----
-1
40
-1
58
-2
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7210
SELECT ALL - col1 / + col2 col1, + col2 FROM tab2
----
-1
40
-1
58
-2
23

query II rowsort
SELECT DISTINCT + col1 AS col1, + col1 FROM tab1
----
14
14
47
47
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7212
SELECT 32 * + 13 * + COUNT( * ) AS col1 FROM tab1
----
1248

skipif mysql # not compatible
query I rowsort label-7212
SELECT 32 * + 13 * + COUNT ( * ) AS col1 FROM tab1
----
1248

onlyif mysql # aggregate syntax: 
query I rowsort label-7213
SELECT DISTINCT - MAX( 51 ) col1 FROM tab0 AS cor0
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7213
SELECT DISTINCT - MAX ( 51 ) col1 FROM tab0 AS cor0
----
-51

query II rowsort
SELECT ALL + col0, 8 AS col2 FROM tab0 AS cor0
----
15
8
87
8
97
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7215
SELECT - SUM( ALL - - col1 ) AS col2 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-7215
SELECT - SUM ( ALL - - col1 ) AS col2 FROM tab2 AS cor0
----
-195

query III rowsort
SELECT ALL - col2 AS col0, 65, col1 FROM tab0 AS cor0
----
9 values hashing to 3d1bc73581a59b4f8ae1513d616d28a9

onlyif mysql # aggregate syntax: 
query I rowsort label-7217
SELECT DISTINCT MAX( ALL + - 8 ) FROM tab2 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-7217
SELECT DISTINCT MAX ( ALL + - 8 ) FROM tab2 AS cor0
----
-8

query II rowsort
SELECT ALL + col1 AS col1, 4 AS col2 FROM tab1 cor0
----
14
4
47
4
5
4

query I rowsort
SELECT ALL col1 * + ( col2 ) AS col2 FROM tab0
----
210
3807
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7220
SELECT + 9 + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7220
SELECT + 9 + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7221
SELECT DISTINCT CAST( + + COUNT( * ) AS SIGNED ) DIV + - 61 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7221
SELECT DISTINCT CAST ( + + COUNT ( * ) AS INTEGER ) / + - 61 AS col1 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7222
SELECT SUM( 93 ) AS col2 FROM tab2 WHERE NULL BETWEEN ( NULL ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7222
SELECT SUM ( 93 ) AS col2 FROM tab2 WHERE NULL BETWEEN ( NULL ) AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7223
SELECT + 90 + - 23 * - COUNT( * ) * + 24 AS col2 FROM tab1
----
1746

skipif mysql # not compatible
query I rowsort label-7223
SELECT + 90 + - 23 * - COUNT ( * ) * + 24 AS col2 FROM tab1
----
1746

onlyif mysql # aggregate syntax: 
query II rowsort label-7224
SELECT DISTINCT + SUM( + - 44 ) AS col2, - COUNT( * ) FROM tab1
----
-132
-3

skipif mysql # not compatible
query II rowsort label-7224
SELECT DISTINCT + SUM ( + - 44 ) AS col2, - COUNT ( * ) FROM tab1
----
-132
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7225
SELECT DISTINCT COUNT( col1 ) + ( - 20 ) AS col2 FROM tab0
----
-17

skipif mysql # not compatible
query I rowsort label-7225
SELECT DISTINCT COUNT ( col1 ) + ( - 20 ) AS col2 FROM tab0
----
-17

query I rowsort
SELECT DISTINCT col1 + + 43 AS col1 FROM tab1 cor0
----
48
57
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7227
SELECT - CAST( + 16 AS SIGNED ) FROM tab1 cor0
----
-16
-16
-16

skipif mysql # not compatible
query I rowsort label-7227
SELECT - CAST ( + 16 AS INTEGER ) FROM tab1 cor0
----
-16
-16
-16

query I rowsort
SELECT DISTINCT col1 * - col1 - + col2 FROM tab1
----
-2277
-292
-84

query II rowsort
SELECT + 23 + - ( - - ( + col1 ) ), col2 FROM tab2
----
-28
23
-44
58
-54
40

query III rowsort
SELECT * FROM tab1 WHERE + col1 NOT IN ( - 52 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-7231
SELECT col2 * 95 + - 64 DIV ( + ( + 31 ) ) - - + col0 FROM tab2
----
2229
3862
5583

skipif mysql # not compatible
query I rowsort label-7231
SELECT col2 * 95 + - 64 / ( + ( + 31 ) ) - - + col0 FROM tab2
----
2229
3862
5583

query I rowsort
SELECT ALL + col0 * + col2 + + col1 * + col0 * + col1 - col1 * + + col0 - col1 + - + col2 + + + col0 FROM tab2
----
118330
335950
377035

query I rowsort
SELECT DISTINCT + 35 + + col2 * col2 AS col2 FROM tab1
----
3516
4659
9251

query I rowsort
SELECT - col2 * - col0 FROM tab1 WHERE col2 IS NOT NULL
----
4896
5015
6188

query II rowsort
SELECT DISTINCT - + col0, 84 AS col2 FROM tab1 AS cor0
----
-51
84
-85
84
-91
84

query I rowsort
SELECT ALL + - col1 + - 83 FROM tab0 cor0
----
-104
-164
-84

query I rowsort
SELECT DISTINCT - 52 AS col0 FROM tab2 cor0
----
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 89 * - col2 col2 FROM tab1 AS cor0
----
5251
6052
8544

onlyif mysql # aggregate syntax: 
query I rowsort label-7239
SELECT DISTINCT + - MIN( + - 3 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7239
SELECT DISTINCT + - MIN ( + - 3 ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7240
SELECT - - col1 DIV - 64 + + ( + - col2 ) + col2 AS col0 FROM tab0 WHERE NOT - 39 IS NULL
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7240
SELECT - - col1 / - 64 + + ( + - col2 ) + col2 AS col0 FROM tab0 WHERE NOT - 39 IS NULL
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7241
SELECT DISTINCT COUNT( * ) * 84 AS col0 FROM tab1
----
252

skipif mysql # not compatible
query I rowsort label-7241
SELECT DISTINCT COUNT ( * ) * 84 AS col0 FROM tab1
----
252

query I rowsort
SELECT 39 AS col1 FROM tab2 WHERE NOT + 14 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7243
SELECT ALL COUNT( * ) DIV - + 68 * - - COUNT( * ) * 71 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7243
SELECT ALL COUNT ( * ) / - + 68 * - - COUNT ( * ) * 71 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7244
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7244
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7245
SELECT DISTINCT + MIN( + 43 ) FROM tab2
----
43

skipif mysql # not compatible
query I rowsort label-7245
SELECT DISTINCT + MIN ( + 43 ) FROM tab2
----
43

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + 76 + - col1 AND - + col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN - col2 * col2 AND NULL
----

query II rowsort
SELECT - col1 * - - col1, col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( + 63 < + col2 )
----
-2601
23
-4489
58
-5929
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7249
SELECT - SUM( ALL col1 ) + - + SUM( - col2 ) col2 FROM tab1
----
157

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7249
SELECT - SUM ( ALL col1 ) + - + SUM ( - col2 ) col2 FROM tab1
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-7250
SELECT ALL + COUNT( ALL + col1 ) AS col1 FROM tab0 WHERE NOT + 22 + - col1 * - + col2 NOT BETWEEN 14 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7250
SELECT ALL + COUNT ( ALL + col1 ) AS col1 FROM tab0 WHERE NOT + 22 + - col1 * - + col2 NOT BETWEEN 14 AND NULL
----
0

query I rowsort
SELECT ALL 1 * col1 / - col1 * - col0 FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT ALL - - 40 AS col2 FROM tab0 AS cor0
----
40
40
40

onlyif mysql # aggregate syntax: 
query II rowsort label-7253
SELECT DISTINCT + - 72 * 12 * - 94, - MIN( - col2 ) AS col1 FROM tab0 AS cor0
----
81216
99

skipif mysql # not compatible
query II rowsort label-7253
SELECT DISTINCT + - 72 * 12 * - 94, - MIN ( - col2 ) AS col1 FROM tab0 AS cor0
----
81216
99

query I rowsort
SELECT col2 * - col1 + + 21 AS col0 FROM tab1 cor0
----
-1323
-274
-3175

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 = - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - - AVG ( - col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL <> col0
----
NULL

query I rowsort
SELECT + 21 * 55 FROM tab1 AS cor0
----
1155
1155
1155

query I rowsort
SELECT - col2 * - 75 * - 93 * 88 AS col1 FROM tab2
----
-14117400
-24552000
-35600400

onlyif mysql # aggregate syntax: 
query I rowsort label-7259
SELECT + COUNT( DISTINCT 80 ) AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-7259
SELECT + COUNT ( DISTINCT 80 ) AS col0 FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7260
SELECT DISTINCT COUNT( * ) AS col2 FROM tab2, tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-7260
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab2, tab1 cor0
----
9

query I rowsort
SELECT ALL - col2 + + col0 * - + 93 FROM tab1
----
-4839
-7964
-8531

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7262
SELECT - 97 + + CAST( NULL AS SIGNED ) + + - COUNT( * ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7262
SELECT - 97 + + CAST ( NULL AS INTEGER ) + + - COUNT ( * ) FROM tab0 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 51 col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col1, col0 * - col2 + + col2 * + + col2 FROM tab2 AS cor0 WHERE NOT ( NOT + - 74 <= NULL )
----

query II rowsort
SELECT - 18 * + - 13 AS col0, - col1 FROM tab0 AS cor0
----
234
-1
234
-21
234
-81

query II rowsort
SELECT + - 61 * - + col0, ( col0 ) FROM tab0 AS cor0
----
5307
87
5917
97
915
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7267
SELECT - ( + + ( + SUM( + CAST( + + 6 AS SIGNED ) ) ) ) AS col0 FROM tab2 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-7267
SELECT - ( + + ( + SUM ( + CAST ( + + 6 AS INTEGER ) ) ) ) AS col0 FROM tab2 AS cor0
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-7268
SELECT - MAX( - + col1 ), - MAX( DISTINCT + 93 ) + - + 54 col1 FROM tab0 AS cor0
----
1
-147

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7268
SELECT - MAX ( - + col1 ), - MAX ( DISTINCT + 93 ) + - + 54 col1 FROM tab0 AS cor0
----
1
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-7269
SELECT ALL + COUNT( + + col1 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7269
SELECT ALL + COUNT ( + + col1 ) AS col0 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7270
SELECT DISTINCT MAX( + - col2 ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-7270
SELECT DISTINCT MAX ( + - col2 ) FROM tab1
----
-59

query II rowsort
SELECT - - 58, + col2 * 19 FROM tab1 WHERE NOT 18 * - col2 + - - 81 NOT BETWEEN + col1 AND + 36
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7272
SELECT + - COUNT( * ) * - ( + - 77 ) AS col0 FROM tab2 AS cor0
----
-231

skipif mysql # not compatible
query I rowsort label-7272
SELECT + - COUNT ( * ) * - ( + - 77 ) AS col0 FROM tab2 AS cor0
----
-231

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7273
SELECT COUNT( * ) DIV 83 * + 76, MIN( ALL + - 29 ) * - MIN( - + col1 ) col2 FROM tab1 AS cor0
----
0
-1363

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7273
SELECT COUNT ( * ) / 83 * + 76, MIN ( ALL + - 29 ) * - MIN ( - + col1 ) col2 FROM tab1 AS cor0
----
0
-1363

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 30 >= NULL
----

query I rowsort
SELECT - - col2 * 47 FROM tab0 cor0
----
2209
4653
470

onlyif mysql # aggregate syntax: 
query I rowsort label-7276
SELECT DISTINCT + 8 * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-7276
SELECT DISTINCT + 8 * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7277
SELECT ALL + MIN( ALL col2 ) DIV - COUNT( * ) AS col1 FROM tab2 cor0
----
-7

skipif mysql # not compatible
query I rowsort label-7277
SELECT ALL + MIN ( ALL col2 ) / - COUNT ( * ) AS col1 FROM tab2 cor0
----
-7

query I rowsort
SELECT DISTINCT 31 + + col2 AS col1 FROM tab0
----
130
41
78

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 36 - - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + - ( + 22 ) ) col1 FROM tab2
----
-22
-22
-22

query II rowsort
SELECT DISTINCT + + col0 + + col0, - 2 AS col2 FROM tab0 AS cor0
----
174
-2
194
-2
30
-2

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 17 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 97 col2 FROM tab1 AS cor0
----
-97
-97
-97

query II rowsort
SELECT DISTINCT 5 + 37 AS col2, col2 AS col2 FROM tab2 cor0
----
42
23
42
40
42
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7285
SELECT - ( + + 65 ) + - COUNT( * ) AS col0 FROM tab2 cor0
----
-68

skipif mysql # not compatible
query I rowsort label-7285
SELECT - ( + + 65 ) + - COUNT ( * ) AS col0 FROM tab2 cor0
----
-68

query II rowsort
SELECT ALL + col2 * + - col2, + col2 * - + col0 * - 57 AS col1 FROM tab1 AS cor0
----
-3481
285855
-4624
352716
-9216
279072

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 * - 94 + + - 30 < col0 + - 25 + - 40
----

query I rowsort
SELECT - ( + col1 ) * - col0 + - ( + 3 ) FROM tab1
----
422
4274
711

query I rowsort
SELECT col2 * + 2 * 32 AS col1 FROM tab0
----
3008
6336
640

query I rowsort
SELECT DISTINCT col0 + col0 + - + 20 AS col0 FROM tab2
----
108
130
72

query I rowsort
SELECT ALL 49 + - + ( col0 ) + + col1 + col1 FROM tab1
----
-26
26
52

query I rowsort
SELECT - - 4 AS col0 FROM tab2 AS cor0
----
4
4
4

onlyif mysql # aggregate syntax: 
query II rowsort label-7293
SELECT ALL - COUNT( + + col2 ) + + + COUNT( ALL ( col0 ) ) col1, MAX( ALL - 3 ) FROM tab1 AS cor0
----
0
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7293
SELECT ALL - COUNT ( + + col2 ) + + + COUNT ( ALL ( col0 ) ) col1, MAX ( ALL - 3 ) FROM tab1 AS cor0
----
0
-3

query I rowsort
SELECT DISTINCT - ( + col1 ) * + - ( 87 ) + - + col0 AS col0 FROM tab0 cor0
----
-10
1740
7032

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7295
SELECT ALL COUNT( * ) - + - COUNT( * ) * CAST( NULL AS SIGNED ) * - COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7295
SELECT ALL COUNT ( * ) - + - COUNT ( * ) * CAST ( NULL AS INTEGER ) * - COUNT ( * ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 69 FROM tab1 WHERE 51 IS NULL
----

query II rowsort
SELECT - col1 AS col1, + 49 AS col2 FROM tab0
----
-1
49
-21
49
-81
49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7298
SELECT DISTINCT ( + + col1 ) col0, CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7298
SELECT DISTINCT ( + + col1 ) col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
1
NULL
21
NULL
81
NULL

query II rowsort
SELECT DISTINCT 90, - col2 AS col0 FROM tab1
----
90
-59
90
-68
90
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7300
SELECT + CAST( NULL AS SIGNED ) / - CAST( - col1 AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7300
SELECT + CAST ( NULL AS INTEGER ) / - CAST ( - col1 AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7301
SELECT DISTINCT + col1 DIV col0 * 2 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7301
SELECT DISTINCT + col1 / col0 * 2 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL - ( 79 ) AS col2 FROM tab2 AS cor0
----
-79
-79
-79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7303
SELECT col1 * - CAST( NULL AS SIGNED ) * + ( - - col1 ) AS col1, + 47 FROM tab0 AS cor0 WHERE NOT 61 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-7303
SELECT col1 * - CAST ( NULL AS INTEGER ) * + ( - - col1 ) AS col1, + 47 FROM tab0 AS cor0 WHERE NOT 61 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7304
SELECT DISTINCT SUM( + ( + col2 ) ) AS col2 FROM tab0 cor0
----
156

skipif mysql # not compatible
query I rowsort label-7304
SELECT DISTINCT SUM ( + ( + col2 ) ) AS col2 FROM tab0 cor0
----
156

query I rowsort
SELECT 66 * + + 66 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 0b043da1f18c2fa3192010894a9bdbec

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7307
SELECT + MIN( - 60 ) FROM tab2
----
-60

skipif mysql # not compatible
query I rowsort label-7307
SELECT + MIN ( - 60 ) FROM tab2
----
-60

query I rowsort
SELECT + + 45 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + 50 AS col0 FROM tab1
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7310
SELECT - COUNT( * ) DIV 13 FROM tab0 AS cor0 WHERE NOT + col2 + col1 + - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7310
SELECT - COUNT ( * ) / 13 FROM tab0 AS cor0 WHERE NOT + col2 + col1 + - col0 IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7311
SELECT DISTINCT + - CAST( + 26 AS SIGNED ), - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-26
-3

skipif mysql # not compatible
query II rowsort label-7311
SELECT DISTINCT + - CAST ( + 26 AS INTEGER ), - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-26
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 87 IS NOT NULL
----

query II rowsort
SELECT ALL - 63, + col2 FROM tab0
----
-63
10
-63
47
-63
99

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - 34 + + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 85 + + - col0 AS col1 FROM tab2 AS cor0
----
10
21
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7317
SELECT DISTINCT SUM( - col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7317
SELECT DISTINCT SUM ( - col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col1 AS col0, 96 - - col1 col1 FROM tab2 AS cor0
----
-51
147
-67
163
-77
173

onlyif mysql # aggregate syntax: 
query I rowsort label-7319
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE col1 + + col0 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7319
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE col1 + + col0 BETWEEN NULL AND NULL
----
0

query II rowsort
SELECT + + 97 * + col1 * + col0, col2 AS col0 FROM tab2 AS cor0
----
227562
23
478016
40
487425
58

query II rowsort
SELECT DISTINCT - col2 AS col2, + 31 * col1 + col0 FROM tab2 AS cor0
----
-23
1627
-40
2451
-58
2152

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7322
SELECT ALL CAST( NULL AS SIGNED ) * col1 AS col2, 94 * - col2 FROM tab0
----
NULL
-4418
NULL
-9306
NULL
-940

skipif mysql # not compatible
query II rowsort label-7322
SELECT ALL CAST ( NULL AS INTEGER ) * col1 AS col2, 94 * - col2 FROM tab0
----
NULL
-4418
NULL
-9306
NULL
-940

query III rowsort
SELECT * FROM tab2 WHERE + col1 <> + col2 * col2 + + col1 * + - 70 * - + 33 - - - col2 - + + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7324
SELECT ALL COUNT( * ) * + + 92 AS col2 FROM tab1
----
276

skipif mysql # not compatible
query I rowsort label-7324
SELECT ALL COUNT ( * ) * + + 92 AS col2 FROM tab1
----
276

query I rowsort
SELECT DISTINCT 39 * - 6 + col0 + - + col2 AS col0 FROM tab1
----
-208
-211
-279

query II rowsort
SELECT ALL - col0 * + + col0 AS col1, col0 * + col1 FROM tab1
----
-2601
714
-7225
425
-8281
4277

query II rowsort
SELECT DISTINCT + 70 + col0 AS col1, 87 AS col0 FROM tab2
----
116
87
134
87
145
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7328
SELECT + 43 + - MAX( ALL - col2 ) col0 FROM tab0 AS cor0
----
53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7328
SELECT + 43 + - MAX ( ALL - col2 ) col0 FROM tab0 AS cor0
----
53

query I rowsort
SELECT ALL - col0 - + 44 AS col1 FROM tab1 AS cor0
----
-129
-135
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-7330
SELECT DISTINCT - - 64 + - + 34 + - COUNT( * ) * + 18 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-132

skipif mysql # not compatible
query I rowsort label-7330
SELECT DISTINCT - - 64 + - + 34 + - COUNT ( * ) * + 18 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-132

onlyif mysql # aggregate syntax: 
query II rowsort label-7331
SELECT + 75 AS col1, 99 * 14 + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
75
1395

skipif mysql # not compatible
query II rowsort label-7331
SELECT + 75 AS col1, 99 * 14 + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
75
1395

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7332
SELECT ALL + + 72 DIV SUM( ALL - - ( - col1 ) ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7332
SELECT ALL + + 72 / SUM ( ALL - - ( - col1 ) ) FROM tab1 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7333
SELECT DISTINCT - + col2 DIV + 64 AS col0 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-7333
SELECT DISTINCT - + col2 / + 64 AS col0 FROM tab0 AS cor0
----
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7334
SELECT ALL + CAST( + ( col2 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-7334
SELECT ALL + CAST ( + ( col2 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT DISTINCT + + 3 FROM tab2 WHERE NULL = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7336
SELECT DISTINCT - 69 DIV - col2 AS col0 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-7336
SELECT DISTINCT - 69 / - col2 AS col0 FROM tab1
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7337
SELECT MAX( + + 19 ) FROM tab1
----
19

skipif mysql # not compatible
query I rowsort label-7337
SELECT MAX ( + + 19 ) FROM tab1
----
19

query I rowsort
SELECT - 18 + col1 AS col1 FROM tab2
----
33
49
59

query I rowsort
SELECT + 84 + + col0 AS col2 FROM tab0
----
171
181
99

query I rowsort
SELECT + 98 + + col2 FROM tab1
----
157
166
194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + + col0 - - 2 col2 FROM tab0
----
-30
0
79

query I rowsort
SELECT ALL 37 + + col1 FROM tab2
----
104
114
88

query II rowsort
SELECT - col0 AS col2, - 30 AS col0 FROM tab0 AS cor0
----
-15
-30
-87
-30
-97
-30

query I rowsort
SELECT ALL col1 + + col2 + - - col2 AS col1 FROM tab0 AS cor0
----
175
199
41

query I rowsort
SELECT ALL - + 81 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

onlyif mysql # aggregate syntax: 
query I rowsort label-7346
SELECT - MIN( DISTINCT col0 ) + - MAX( ALL - col1 ) FROM tab1
----
-46

skipif mysql # not compatible
query I rowsort label-7346
SELECT - MIN ( DISTINCT col0 ) + - MAX ( ALL - col1 ) FROM tab1
----
-46

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL AND ( + col1 * - ( + - 29 ) * - - 13 IS NULL )
----

query I rowsort
SELECT + ( + - col1 ) + col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7349
SELECT ALL + - 19 DIV - col1 * 11 + + - col1 - - - 29 col0 FROM tab2 AS cor0
----
-106
-80
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7349
SELECT ALL + - 19 / - col1 * 11 + + - col1 - - - 29 col0 FROM tab2 AS cor0
----
-106
-80
-96

query I rowsort
SELECT DISTINCT 36 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - + col1 ) AND ( NOT NULL IS NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7351
SELECT - - 67 * + CAST( - SUM( - - col2 ) AS SIGNED ) + + SUM( ALL col2 ) col0 FROM tab0 AS cor0
----
-10296

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7351
SELECT - - 67 * + CAST ( - SUM ( - - col2 ) AS INTEGER ) + + SUM ( ALL col2 ) col0 FROM tab0 AS cor0
----
-10296

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL >= ( + + col0 )
----

query I rowsort
SELECT ALL - - col1 + + col2 * - - 48 AS col2 FROM tab1 cor0
----
2837
3311
4622

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 + + ( + 8 ) * - col2 >= col1 + + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7355
SELECT + COUNT( * ) * 35 / MIN( - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7355
SELECT + COUNT ( * ) * 35 / MIN ( - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE ( + 81 + + col2 + + ( - 27 ) <= NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7357
SELECT DISTINCT - 27 * CAST( NULL AS SIGNED ) - + - 79 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7357
SELECT DISTINCT - 27 * CAST ( NULL AS INTEGER ) - + - 79 FROM tab1
----
NULL

query I rowsort
SELECT ALL - + col1 * ( + - 33 ) * col0 + + col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
14084
141209
23658

query I rowsort
SELECT + col0 * + + col2 * + 92 AS col0 FROM tab0
----
64860
80040
883476

query I rowsort
SELECT DISTINCT - ( 31 ) * - - ( + ( col1 ) ) FROM tab0
----
-2511
-31
-651

onlyif mysql # aggregate syntax: 
query I rowsort label-7361
SELECT DISTINCT - COUNT( * ) * 16 FROM tab2
----
-48

skipif mysql # not compatible
query I rowsort label-7361
SELECT DISTINCT - COUNT ( * ) * 16 FROM tab2
----
-48

query I rowsort
SELECT - col2 * + 88 * + col1 FROM tab1
----
-118272
-25960
-281248

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( col2, - col1, - col0 )
----

query I rowsort
SELECT + 89 * - col2 FROM tab0
----
-4183
-8811
-890

query I rowsort
SELECT + 96 + col0 AS col1 FROM tab1 WHERE NULL = + 84
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7366
SELECT * FROM tab0 WHERE NOT NULL BETWEEN NULL AND - 47 * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7366
SELECT * FROM tab0 WHERE NOT NULL BETWEEN NULL AND - 47 * - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL + col0 + 71 * - 90 AS col1 FROM tab2
----
-6315
-6326
-6344

query I rowsort
SELECT col2 + 94 FROM tab0
----
104
141
193

onlyif mysql # aggregate syntax: 
query I rowsort label-7369
SELECT COUNT( * ) AS col0 FROM tab2 WHERE col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7369
SELECT COUNT ( * ) AS col0 FROM tab2 WHERE col0 IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab1 WHERE NOT - col2 IS NULL
----
51
85
91

query I rowsort
SELECT + col2 * col1 AS col1 FROM tab2 WHERE NULL IN ( col0 / col2 + col1 / 97 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 79 / 43 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 74 + - 78 AS col2 FROM tab0
----
-4
-4
-4

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 * col2 BETWEEN ( + col0 ) AND + 53
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7375
SELECT + ( + COUNT( * ) ) + 67 AS col0 FROM tab2
----
70

skipif mysql # not compatible
query I rowsort label-7375
SELECT + ( + COUNT ( * ) ) + 67 AS col0 FROM tab2
----
70

query I rowsort
SELECT - ( col2 ) + + 23 AS col2 FROM tab1
----
-36
-45
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-7377
SELECT DISTINCT - 43 - - COUNT( * ) FROM tab1
----
-40

skipif mysql # not compatible
query I rowsort label-7377
SELECT DISTINCT - 43 - - COUNT ( * ) FROM tab1
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7378
SELECT ALL - 84 + - COUNT( ALL col0 ) DIV 26 FROM tab0
----
-84

skipif mysql # not compatible
query I rowsort label-7378
SELECT ALL - 84 + - COUNT ( ALL col0 ) / 26 FROM tab0
----
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col0 col0 FROM tab2 WHERE + ( col2 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7380
SELECT DISTINCT + COUNT( DISTINCT + 72 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-7380
SELECT DISTINCT + COUNT ( DISTINCT + 72 ) FROM tab2
----
1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7381
SELECT - CAST( + CAST( + 66 AS DECIMAL ) AS SIGNED ) FROM tab1
----
-66
-66
-66

skipif mysql # not compatible
query I rowsort label-7381
SELECT - CAST ( + CAST ( + 66 AS REAL ) AS INTEGER ) FROM tab1
----
-66
-66
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-7382
SELECT ALL - ( - SUM( DISTINCT + 17 ) ) FROM tab2
----
17

skipif mysql # not compatible
query I rowsort label-7382
SELECT ALL - ( - SUM ( DISTINCT + 17 ) ) FROM tab2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-7383
SELECT - MAX( DISTINCT ( + 93 ) ) FROM tab1 WHERE NOT col2 = col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7383
SELECT - MAX ( DISTINCT ( + 93 ) ) FROM tab1 WHERE NOT col2 = col2
----
NULL

query I rowsort
SELECT + col0 - col1 * col1 AS col0 FROM tab2
----
-2555
-4414
-5865

query III rowsort
SELECT * FROM tab1 WHERE NOT 41 <> + col2
----

query I rowsort
SELECT DISTINCT + ( 12 ) FROM tab2 WHERE NOT ( + ( col1 ) ) = ( col2 )
----
12

query III rowsort
SELECT * FROM tab2 WHERE ( - col0 ) IN ( - 78 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 42 * + col0 - 64 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7389
SELECT ALL + COUNT( DISTINCT ( + 37 ) ) * 22 AS col2 FROM tab1
----
22

skipif mysql # not compatible
query I rowsort label-7389
SELECT ALL + COUNT ( DISTINCT ( + 37 ) ) * 22 AS col2 FROM tab1
----
22

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( 99 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7391
SELECT ALL - 58 * + COUNT( * ) FROM tab1
----
-174

skipif mysql # not compatible
query I rowsort label-7391
SELECT ALL - 58 * + COUNT ( * ) FROM tab1
----
-174

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7392
SELECT ALL * FROM tab1 WHERE NOT CAST( - 56 AS SIGNED ) + CAST( NULL AS SIGNED ) BETWEEN col2 * + 19 AND col0 * + ( col1 )
----

skipif mysql # not compatible
query III rowsort label-7392
SELECT ALL * FROM tab1 WHERE NOT CAST ( - 56 AS INTEGER ) + CAST ( NULL AS INTEGER ) BETWEEN col2 * + 19 AND col0 * + ( col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( 93 ) * - 1 col1 FROM tab1
----
-93
-93
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7394
SELECT + CAST( NULL AS SIGNED ) FROM tab0 cor0 WHERE NULL BETWEEN 20 AND - col0
----

skipif mysql # not compatible
query I rowsort label-7394
SELECT + CAST ( NULL AS INTEGER ) FROM tab0 cor0 WHERE NULL BETWEEN 20 AND - col0
----

query I rowsort
SELECT col2 + - col2 * - col1 FROM tab0 AS cor0
----
198
220
3854

query I rowsort
SELECT + col1 AS col0 FROM tab2 AS cor0 WHERE + col2 >= - col2 + + 75
----
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7397
SELECT MAX( 15 ) + - 30 FROM tab1
----
-15

skipif mysql # not compatible
query I rowsort label-7397
SELECT MAX ( 15 ) + - 30 FROM tab1
----
-15

query I rowsort
SELECT 3 + 76 AS col0 FROM tab0
----
79
79
79

query I rowsort
SELECT ALL + col0 * col2 + 91 FROM tab1
----
4987
5106
6279

onlyif mysql # aggregate syntax: 
query I rowsort label-7400
SELECT ALL ( + 24 ) * ( MIN( col0 ) * 27 ) FROM tab1
----
33048

skipif mysql # not compatible
query I rowsort label-7400
SELECT ALL ( + 24 ) * ( MIN ( col0 ) * 27 ) FROM tab1
----
33048

query I rowsort
SELECT DISTINCT + 66 * - col2 + + ( - 11 ) FROM tab1 AS cor0
----
-3905
-4499
-6347

query I rowsort
SELECT DISTINCT col1 + - col1 * col2 AS col2 FROM tab1 AS cor0
----
-1330
-290
-3149

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + ( col1 ) * + col2 IN ( + col2 )
----
97
1
99

query I rowsort
SELECT ALL - - 60 - 6 * - 59 AS col1 FROM tab2 AS cor0
----
414
414
414

onlyif mysql # aggregate syntax: 
query I rowsort label-7405
SELECT ALL + - 61 + + COUNT( ALL 52 ) AS col2 FROM tab0 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-7405
SELECT ALL + - 61 + + COUNT ( ALL 52 ) AS col2 FROM tab0 AS cor0
----
-58

query I rowsort
SELECT - + ( - 15 ) AS col1 FROM tab0 AS cor0
----
15
15
15

query I rowsort
SELECT ALL + ( 72 ) - - 80 FROM tab1 AS cor0
----
152
152
152

query I rowsort
SELECT + 39 * - col2 AS col2 FROM tab1 AS cor0 WHERE NULL NOT IN ( col0 )
----

query I rowsort
SELECT + 46 - + 18 AS col1 FROM tab1 AS cor0
----
28
28
28

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 5 <= ( - 59 )
----

query I rowsort
SELECT ALL + col0 - 13 AS col1 FROM tab1 AS cor0
----
38
72
78

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL IN ( 29 )
----

query I rowsort
SELECT 58 FROM tab2 WHERE NULL IS NULL
----
58
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7414
SELECT ALL COUNT( + 97 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7414
SELECT ALL COUNT ( + 97 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7415
SELECT ALL - ( COUNT( - 55 ) ) - 77 AS col1 FROM tab2
----
-80

skipif mysql # not compatible
query I rowsort label-7415
SELECT ALL - ( COUNT ( - 55 ) ) - 77 AS col1 FROM tab2
----
-80

query III rowsort
SELECT * FROM tab2 WHERE - 88 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7417
SELECT DISTINCT col1 * + CAST( 14 AS SIGNED ) - - 52 AS col2 FROM tab2
----
1130
766
990

skipif mysql # not compatible
query I rowsort label-7417
SELECT DISTINCT col1 * + CAST ( 14 AS INTEGER ) - - 52 AS col2 FROM tab2
----
1130
766
990

query III rowsort
SELECT * FROM tab1 WHERE NOT 59 / - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7419
SELECT DISTINCT MAX( - 60 ) FROM tab1
----
-60

skipif mysql # not compatible
query I rowsort label-7419
SELECT DISTINCT MAX ( - 60 ) FROM tab1
----
-60

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 5 - 29 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 94 * ( - 68 ) + - col0 FROM tab1 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7422
SELECT - COUNT( * ) * + + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7422
SELECT - COUNT ( * ) * + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col0 ) BETWEEN col0 AND col2
----
85
5
59
91
47
68

query I rowsort
SELECT ALL + col2 * ( - col0 ) AS col1 FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-7425
SELECT DISTINCT + - COUNT( * ) * 61 AS col1 FROM tab2 AS cor0
----
-183

skipif mysql # not compatible
query I rowsort label-7425
SELECT DISTINCT + - COUNT ( * ) * 61 AS col1 FROM tab2 AS cor0
----
-183

query I rowsort
SELECT DISTINCT + col2 * - 99 AS col0 FROM tab2 AS cor0
----
-2277
-3960
-5742

query I rowsort
SELECT DISTINCT + col1 FROM tab2 WHERE NULL = - 43
----

query I rowsort
SELECT ALL + 90 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + col1 * + col0 + + col1 ) <= + ( col2 ) / - 96
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7430
SELECT DISTINCT + 57 * MIN( 47 ) FROM tab2 AS cor0
----
2679

skipif mysql # not compatible
query I rowsort label-7430
SELECT DISTINCT + 57 * MIN ( 47 ) FROM tab2 AS cor0
----
2679

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7431
SELECT 43 DIV + COUNT( * ) FROM tab1 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-7431
SELECT 43 / + COUNT ( * ) FROM tab1 AS cor0
----
14

query I rowsort
SELECT + ( col0 ) * - - col1 * col0 FROM tab2 AS cor0
----
107916
315392
376875

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7433
SELECT ALL + 63 * - CAST( NULL AS SIGNED ) / - COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7433
SELECT ALL + 63 * - CAST ( NULL AS INTEGER ) / - COUNT ( * ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL ( 53 ) FROM tab1 AS cor0
----
53
53
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + + col1 * + + col2 col0 FROM tab0 cor0
----
308367
4410
99

query I rowsort
SELECT ALL + 75 FROM tab0 AS cor0 WHERE 60 NOT IN ( 53 )
----
75
75
75

query I rowsort
SELECT DISTINCT + + ( col0 ) * + col2 AS col0 FROM tab0 AS cor0
----
705
870
9603

query I rowsort
SELECT 17 * - col0 FROM tab1 WHERE NOT - - 17 IS NOT NULL
----

query I rowsort
SELECT ALL - 15 * - ( + 19 ) AS col1 FROM tab2
----
285
285
285

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + 92 - - col2 ) <= 77 / 89
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7441
SELECT DISTINCT + MAX( + col0 ) * 58 - + COUNT( * ) FROM tab0 WHERE + 5 - + ( + col0 ) BETWEEN + col2 AND - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7441
SELECT DISTINCT + MAX ( + col0 ) * 58 - + COUNT ( * ) FROM tab0 WHERE + 5 - + ( + col0 ) BETWEEN + col2 AND - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - col0 + + + col0 AS col1 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - + col1 + + col1 col0 FROM tab0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7444
SELECT - 10 + + + COUNT( + + col2 ) AS col2 FROM tab1
----
-7

skipif mysql # not compatible
query I rowsort label-7444
SELECT - 10 + + + COUNT ( + + col2 ) AS col2 FROM tab1
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-7445
SELECT - col1 DIV + + col2 + - - col0 AS col2 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-7445
SELECT - col1 / + + col2 + - - col0 AS col2 FROM tab1
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7446
SELECT - CAST( + 68 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-68
-68
-68

skipif mysql # not compatible
query I rowsort label-7446
SELECT - CAST ( + 68 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-68
-68
-68

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + ( 38 ) ) > col1
----
51
14
96
85
5
59

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + 27 ) BETWEEN col1 * col1 * col1 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 51 * + 65 NOT BETWEEN - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7450
SELECT + 27 AS col0, COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
27
0

skipif mysql # not compatible
query II rowsort label-7450
SELECT + 27 AS col0, COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
27
0

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( 46 ) BETWEEN NULL AND NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( 29 ) IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7453
SELECT DISTINCT * FROM tab0 WHERE ( - col2 + + CAST( + 73 AS SIGNED ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7453
SELECT DISTINCT * FROM tab0 WHERE ( - col2 + + CAST ( + 73 AS INTEGER ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 49 + - + col0 FROM tab2 cor0
----
-15
-26
3

query I rowsort
SELECT + ( + col0 ) + + col0 AS col0 FROM tab0 AS cor0
----
174
194
30

query I rowsort
SELECT ALL col0 * + col2 + col2 AS col0 FROM tab0 AS cor0 WHERE col2 + 66 IS NOT NULL
----
752
880
9702

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 39 ) BETWEEN + col1 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 > + col0
----

query I rowsort
SELECT ALL col1 - + - 51 + col0 AS col1 FROM tab0 AS cor0
----
147
149
159

query I rowsort
SELECT + + col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col1 AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7461
SELECT ALL + + 83 + - SUM( DISTINCT + 63 ) FROM tab2 AS cor0 WHERE - col2 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7461
SELECT ALL + + 83 + - SUM ( DISTINCT + 63 ) FROM tab2 AS cor0 WHERE - col2 <= NULL
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - 37 + col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7463
SELECT DISTINCT - 69 AS col0, COUNT( * ) FROM tab1
----
-69
3

skipif mysql # not compatible
query II rowsort label-7463
SELECT DISTINCT - 69 AS col0, COUNT ( * ) FROM tab1
----
-69
3

query II rowsort
SELECT ALL col1, 96 FROM tab0
----
1
96
21
96
81
96

query I rowsort
SELECT + - col2 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-7466
SELECT + ( 54 ), COUNT( * ) AS col2 FROM tab2
----
54
3

skipif mysql # not compatible
query II rowsort label-7466
SELECT + ( 54 ), COUNT ( * ) AS col2 FROM tab2
----
54
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7467
SELECT ALL - SUM( DISTINCT + col1 ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-7467
SELECT ALL - SUM ( DISTINCT + col1 ) FROM tab2
----
-195

query II rowsort
SELECT ALL 51 AS col2, + 89 * - + 43 AS col1 FROM tab1
----
51
-3827
51
-3827
51
-3827

onlyif mysql # aggregate syntax: 
query I rowsort label-7469
SELECT DISTINCT MIN( - col0 ) AS col0 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-7469
SELECT DISTINCT MIN ( - col0 ) AS col0 FROM tab2 AS cor0
----
-75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col2 ) >= - 65
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 36 = - + 61 * + 39
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + + ( - col1 ) + - - 19 + + col1 FROM tab1 cor0
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7473
SELECT ( 49 ) + MAX( 16 ) * - AVG ( ALL - CAST( - col0 AS SIGNED ) ) FROM tab1 AS cor0 WHERE NOT ( NOT + 72 * - - col2 + col0 < - + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7473
SELECT ( 49 ) + MAX ( 16 ) * - AVG ( ALL - CAST ( - col0 AS INTEGER ) ) FROM tab1 AS cor0 WHERE NOT ( NOT + 72 * - - col2 + col0 < - + col1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7474
SELECT + - ( + - COUNT( * ) ) * ( + + COUNT( * ) ) + + 65 col0 FROM tab0 AS cor0
----
74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7474
SELECT + - ( + - COUNT ( * ) ) * ( + + COUNT ( * ) ) + + 65 col0 FROM tab0 AS cor0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7475
SELECT COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT - ( col2 ) + + - 71 * - col2 * + 9 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7475
SELECT COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT - ( col2 ) + + - 71 * - col2 * + 9 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7476
SELECT - MAX( - col1 ) * 65 FROM tab1 AS cor0
----
325

skipif mysql # not compatible
query I rowsort label-7476
SELECT - MAX ( - col1 ) * 65 FROM tab1 AS cor0
----
325

onlyif mysql # aggregate syntax: 
query I rowsort label-7477
SELECT - COUNT( * ) + - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE - 90 * - col2 IS NOT NULL
----
-6

skipif mysql # not compatible
query I rowsort label-7477
SELECT - COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE - 90 * - col2 IS NOT NULL
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7478
SELECT + - COUNT( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7478
SELECT + - COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab0 cor0
----
0

query I rowsort
SELECT - col2 * - col1 * + - 50 FROM tab0 cor0
----
-10500
-190350
-4950

onlyif mysql # aggregate syntax: 
query I rowsort label-7480
SELECT + COUNT( * ) FROM tab1 cor0 WHERE ( ( + 25 + + 5 NOT BETWEEN ( NULL ) AND NULL ) )
----
0

skipif mysql # not compatible
query I rowsort label-7480
SELECT + COUNT ( * ) FROM tab1 cor0 WHERE ( ( + 25 + + 5 NOT BETWEEN ( NULL ) AND NULL ) )
----
0

query II rowsort
SELECT + col1 AS col1, 55 + col1 - - 13 FROM tab2
----
51
119
67
135
77
145

onlyif mysql # DIV for integer division: 
query I rowsort label-7482
SELECT 81 DIV - - 21 FROM tab1
----
3
3
3

skipif mysql # not compatible
query I rowsort label-7482
SELECT 81 / - - 21 FROM tab1
----
3
3
3

onlyif mysql # aggregate syntax: 
query II rowsort label-7483
SELECT ALL + 24, - COUNT( * ) AS col0 FROM tab2
----
24
-3

skipif mysql # not compatible
query II rowsort label-7483
SELECT ALL + 24, - COUNT ( * ) AS col0 FROM tab2
----
24
-3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + 48 + col0 + + col0 NOT IN ( - col2 * col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col2 AS col0 FROM tab0 WHERE NULL >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7486
SELECT ALL + col1 DIV + col0 + col1 FROM tab0
----
1
21
86

skipif mysql # not compatible
query I rowsort label-7486
SELECT ALL + col1 / + col0 + col1 FROM tab0
----
1
21
86

query I rowsort
SELECT DISTINCT col0 * - 6 + - + col0 * + - col1 FROM tab2
----
2070
4544
4575

query I rowsort
SELECT col2 * col2 AS col0 FROM tab1 AS cor0 WHERE 5 BETWEEN NULL AND + col0 / + - col2 / - col0 + col0 + - + col2 + + ( col0 ) / col0 * + col2
----

query I rowsort
SELECT DISTINCT - + col2 AS col2 FROM tab0 AS cor0 WHERE col2 <> NULL
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( - col0 ) NOT BETWEEN + col2 AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7491
SELECT + ( COUNT( * ) ) AS col1 FROM tab1 WHERE - col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7491
SELECT + ( COUNT ( * ) ) AS col1 FROM tab1 WHERE - col0 IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT 24 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
24

query I rowsort
SELECT ALL + 50 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

query I rowsort
SELECT ALL + 18 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query I rowsort
SELECT DISTINCT - 26 * - - col1 * - col1 AS col0 FROM tab2 AS cor0 WHERE - col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7496
SELECT DISTINCT + MIN( - col2 ) + + CAST( NULL AS SIGNED ) + AVG ( col2 ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7496
SELECT DISTINCT + MIN ( - col2 ) + + CAST ( NULL AS INTEGER ) + AVG ( col2 ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - ( 94 ) - col2 FROM tab1 AS cor0
----
-153
-162
-190

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL >= - col0 * + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7499
SELECT DISTINCT SUM( - 60 ) AS col1 FROM tab0 AS cor0
----
-180

skipif mysql # not compatible
query I rowsort label-7499
SELECT DISTINCT SUM ( - 60 ) AS col1 FROM tab0 AS cor0
----
-180

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7500
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1, col2 * 35 FROM tab0
----
NULL
1645
NULL
3465
NULL
350

skipif mysql # not compatible
query II rowsort label-7500
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, col2 * 35 FROM tab0
----
NULL
1645
NULL
3465
NULL
350

query I rowsort
SELECT DISTINCT col1 * 86 FROM tab1
----
1204
4042
430

onlyif mysql # aggregate syntax: 
query I rowsort label-7502
SELECT - COUNT( col1 ) AS col0 FROM tab1 WHERE NOT NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-7502
SELECT - COUNT ( col1 ) AS col0 FROM tab1 WHERE NOT NULL <= NULL
----
0

query I rowsort
SELECT 20 * - + col2 * - - col2 * + ( - ( + 37 ) ) FROM tab1
----
2575940
3421760
6819840

query II rowsort
SELECT DISTINCT - 43, + 23 AS col1 FROM tab1 AS cor0
----
-43
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7505
SELECT ( COUNT( * ) ) FROM tab0 AS cor0 WHERE NOT col1 + - col0 + - col2 BETWEEN col1 * + - col1 + + col1 + - + CAST( col1 AS SIGNED ) / - col1 AND - 38
----
2

skipif mysql # not compatible
query I rowsort label-7505
SELECT ( COUNT ( * ) ) FROM tab0 AS cor0 WHERE NOT col1 + - col0 + - col2 BETWEEN col1 * + - col1 + + col1 + - + CAST ( col1 AS INTEGER ) / - col1 AND - 38
----
2

query II rowsort
SELECT + col2 AS col1, 39 FROM tab2 AS cor0
----
23
39
40
39
58
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7507
SELECT ALL CAST( NULL AS SIGNED ) + + + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT - 18 * - 2 IN ( - + 28 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7507
SELECT ALL CAST ( NULL AS INTEGER ) + + + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT - 18 * - 2 IN ( - + 28 )
----
NULL

query II rowsort
SELECT DISTINCT col2, - col1 FROM tab2
----
23
-51
40
-77
58
-67

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL < 13
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 NOT IN ( + col2 * col0 )
----

query I rowsort
SELECT col0 * - + col1 + - ( + - ( - - col2 ) ) FROM tab1 AS cor0
----
-366
-4209
-618

query I rowsort
SELECT DISTINCT + 28 + 60 FROM tab0 AS cor0
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-7513
SELECT COUNT( * ), + 90 AS col0 FROM tab0 AS cor0
----
3
90

skipif mysql # not compatible
query II rowsort label-7513
SELECT COUNT ( * ), + 90 AS col0 FROM tab0 AS cor0
----
3
90

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 IN ( col0, 76 + - 7, - col0 + + 79 - + 17 + + 23 )
----

query I rowsort
SELECT DISTINCT - 3 AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT col2 + - col2 + + - 79 + + + 66 AS col1 FROM tab1
----
-13
-13
-13

query I rowsort
SELECT ALL col0 FROM tab0 WHERE NOT ( NOT NULL IS NOT NULL )
----

query I rowsort
SELECT col1 + + 30 AS col2 FROM tab1
----
35
44
77

query I rowsort
SELECT + col2 * + 50 AS col0 FROM tab0
----
2350
4950
500

query I rowsort
SELECT DISTINCT col1 + + col1 - 29 AS col2 FROM tab1
----
-1
-19
65

query I rowsort
SELECT ALL 52 + 88 FROM tab1
----
140
140
140

query I rowsort
SELECT DISTINCT + col1 FROM tab0 WHERE ( ( NULL ) IS NULL )
----
1
21
81

query I rowsort
SELECT ALL - col0 + col2 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
-23
-26
45

query I rowsort
SELECT ALL + col1 * - + 73 * - col2 + - 42 FROM tab0 AS cor0
----
15288
277869
7185

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7525
SELECT - CAST( - + 11 AS SIGNED ), + col1 AS col2 FROM tab2 AS cor0
----
11
51
11
67
11
77

skipif mysql # not compatible
query II rowsort label-7525
SELECT - CAST ( - + 11 AS INTEGER ), + col1 AS col2 FROM tab2 AS cor0
----
11
51
11
67
11
77

query I rowsort
SELECT col1 + + - col0 AS col1 FROM tab1
----
-37
-44
-80

query I rowsort
SELECT 65 + ( + + col0 ) FROM tab2
----
111
129
140

onlyif mysql # aggregate syntax: 
query I rowsort label-7528
SELECT SUM( + + 95 ) AS col0 FROM tab2 AS cor0
----
285

skipif mysql # not compatible
query I rowsort label-7528
SELECT SUM ( + + 95 ) AS col0 FROM tab2 AS cor0
----
285

query I rowsort
SELECT DISTINCT + ( + 63 ) FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND 35 * col0 + col2
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 69 * 47 + 84 - - 62 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7531
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST( col1 AS SIGNED ) < NULL
----

skipif mysql # not compatible
query III rowsort label-7531
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST ( col1 AS INTEGER ) < NULL
----

query II rowsort
SELECT - + col2, + ( + col0 ) FROM tab2 AS cor0
----
-23
46
-40
64
-58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7533
SELECT - MAX( ALL 18 ) AS col1 FROM tab0 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-7533
SELECT - MAX ( ALL 18 ) AS col1 FROM tab0 AS cor0
----
-18

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7534
SELECT DISTINCT - col2 * - 10 * + col1 * - CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7534
SELECT DISTINCT - col2 * - 10 * + col1 * - CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) AS col0 FROM tab0
----
NULL

query II rowsort
SELECT - 26 AS col2, 35 AS col1 FROM tab0 WHERE NOT 92 = - 27 + col0 * + col0
----
-26
35
-26
35
-26
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7536
SELECT MIN( ALL + ( - col0 ) ) AS col1 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-7536
SELECT MIN ( ALL + ( - col0 ) ) AS col1 FROM tab0
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7537
SELECT ALL - CAST( NULL AS SIGNED ) * 30 * COUNT( * ) * + SUM( col2 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7537
SELECT ALL - CAST ( NULL AS INTEGER ) * 30 * COUNT ( * ) * + SUM ( col2 ) FROM tab2
----
NULL

query I rowsort
SELECT - 95 AS col0 FROM tab1 WHERE NOT col1 IS NULL
----
-95
-95
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + + col1 ) col1 FROM tab0
----
1
21
81

query I rowsort
SELECT ALL + col0 FROM tab1 WHERE + 22 * + + col1 IS NULL
----

query I rowsort
SELECT + 17 * col0 AS col2 FROM tab1
----
1445
1547
867

onlyif mysql # aggregate syntax: 
query I rowsort label-7542
SELECT ALL COUNT( DISTINCT + - 59 ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7542
SELECT ALL COUNT ( DISTINCT + - 59 ) AS col2 FROM tab0
----
1

query I rowsort
SELECT + 35 * col1 FROM tab1
----
1645
175
490

onlyif mysql # aggregate syntax: 
query I rowsort label-7544
SELECT ALL + + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND + ( - col0 ) + 23
----
0

skipif mysql # not compatible
query I rowsort label-7544
SELECT ALL + + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND + ( - col0 ) + 23
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7545
SELECT + - 73 * + - COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
657

skipif mysql # not compatible
query I rowsort label-7545
SELECT + - 73 * + - COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
657

onlyif mysql # aggregate syntax: 
query I rowsort label-7546
SELECT 72 * - COUNT( * ) + - 10 + - SUM( ALL + 51 ) * - - COUNT( * ) AS col2 FROM tab1
----
-685

skipif mysql # not compatible
query I rowsort label-7546
SELECT 72 * - COUNT ( * ) + - 10 + - SUM ( ALL + 51 ) * - - COUNT ( * ) AS col2 FROM tab1
----
-685

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7548
SELECT + MAX( ALL + 90 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
90

skipif mysql # not compatible
query I rowsort label-7548
SELECT + MAX ( ALL + 90 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
90

query I rowsort
SELECT DISTINCT - col1 + + 21 AS col1 FROM tab0 cor0
----
-60
0
20

query I rowsort
SELECT DISTINCT + + ( + 69 ) FROM tab1 AS cor0
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7551
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 * - CAST( NULL AS SIGNED ) >= + col2 * + - col1 + + ( + - 79 ) - col2 + col0
----

skipif mysql # not compatible
query III rowsort label-7551
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 * - CAST ( NULL AS INTEGER ) >= + col2 * + - col1 + + ( + - 79 ) - col2 + col0
----

query I rowsort
SELECT - - 36 AS col0 FROM tab1 cor0
----
36
36
36

query I rowsort
SELECT ALL 39 + + - col2 - - 59 FROM tab1 AS cor0
----
2
30
39

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col0 <> - + 81 + + 50
----

query I rowsort
SELECT + 40 - + col2 * + col1 FROM tab0
----
-170
-3767
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7556
SELECT DISTINCT + CAST( NULL AS SIGNED ) col2 FROM tab1 WHERE NULL <> + col1 / ( - col0 ) + + col2 AND NULL IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7556
SELECT DISTINCT + CAST ( NULL AS INTEGER ) col2 FROM tab1 WHERE NULL <> + col1 / ( - col0 ) + + col2 AND NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7557
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0 WHERE - 33 NOT BETWEEN + ( - - col0 ) AND - 72 * - + 92 * + CAST( + + col1 AS SIGNED ) + + 41 + - + 6 AND NOT col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7557
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0 WHERE - 33 NOT BETWEEN + ( - - col0 ) AND - 72 * - + 92 * + CAST ( + + col1 AS INTEGER ) + + 41 + - + 6 AND NOT col2 IS NULL
----
3

query I rowsort
SELECT + col1 * + ( - col2 ) FROM tab1 WHERE col0 IS NOT NULL
----
-1344
-295
-3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7559
SELECT ALL + col0 + - ( - CAST( col2 AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
196
62
97

skipif mysql # not compatible
query I rowsort label-7559
SELECT ALL + col0 + - ( - CAST ( col2 AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
196
62
97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL >= + 73
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 - col0 col1 FROM tab2 AS cor0
----
-17
-23
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7562
SELECT + - 23 + CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-7562
SELECT + - 23 + CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-20

query I rowsort
SELECT ALL + col1 * - col0 - + col2 AS col0 FROM tab1 AS cor0
----
-4345
-484
-810

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 48 / - col0 >= + col0 * 71
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7565
SELECT ALL - col2 DIV 49 + + col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
58
67
95

skipif mysql # not compatible
query I rowsort label-7565
SELECT ALL - col2 / 49 + + col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
58
67
95

query I rowsort
SELECT DISTINCT + 67 FROM tab1 WHERE NOT - 67 + + - col1 IS NULL
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7567
SELECT - COUNT( * ) DIV - - SUM( DISTINCT CAST( - + col1 AS SIGNED ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7567
SELECT - COUNT ( * ) / - - SUM ( DISTINCT CAST ( - + col1 AS INTEGER ) ) FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7568
SELECT - ( - + 66 ) DIV 7 * col2 FROM tab1 AS cor0
----
531
612
864

skipif mysql # not compatible
query I rowsort label-7568
SELECT - ( - + 66 ) / 7 * col2 FROM tab1 AS cor0
----
531
612
864

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 10 <= - col1
----

query I rowsort
SELECT DISTINCT - col0 * + + col1 + - 38 FROM tab2 AS cor0
----
-2384
-4966
-5063

query I rowsort
SELECT ALL 53 * - + col1 FROM tab1
----
-2491
-265
-742

query I rowsort
SELECT ALL 19 * ( 56 ) AS col2 FROM tab1
----
1064
1064
1064

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NOT + 59 IS NOT NULL )
----

query II rowsort
SELECT + 85 * col2 * + col1 AS col1, - col0 + + col2 + + + col1 FROM tab0
----
17850
-56
323595
113
8415
3

query I rowsort
SELECT ALL - col2 AS col2 FROM tab2 WHERE ( + col2 ) * + 70 IS NOT NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7576
SELECT ALL - MAX( DISTINCT - col1 ) AS col0 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-7576
SELECT ALL - MAX ( DISTINCT - col1 ) AS col0 FROM tab2
----
51

query II rowsort
SELECT ALL ( - col2 ) * - + col1 AS col0, + col2 FROM tab1
----
1344
96
295
59
3196
68

query I rowsort
SELECT + 4 * + ( - - 0 ) AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7579
SELECT ALL + COUNT( * ) * + MAX( ALL + col0 ) FROM tab1 AS cor0
----
273

skipif mysql # not compatible
query I rowsort label-7579
SELECT ALL + COUNT ( * ) * + MAX ( ALL + col0 ) FROM tab1 AS cor0
----
273

onlyif mysql # DIV for integer division: 
query I rowsort label-7580
SELECT DISTINCT col1 DIV - col2 * - 43 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7580
SELECT DISTINCT col1 / - col2 * - 43 AS col1 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7581
SELECT - col0 DIV + + col0 AS col2 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7581
SELECT - col0 / + + col0 AS col2 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT ALL - 73 + col1 FROM tab2 AS cor0
----
-22
-6
4

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 / + - 78 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7584
SELECT col0 + + 15 AS col1, CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
100
NULL
106
NULL
66
NULL

skipif mysql # not compatible
query II rowsort label-7584
SELECT col0 + + 15 AS col1, CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
100
NULL
106
NULL
66
NULL

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE ( NULL ) > - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7586
SELECT DISTINCT - COUNT( * ) * 42 * - 83 AS col2 FROM tab2 AS cor0
----
10458

skipif mysql # not compatible
query I rowsort label-7586
SELECT DISTINCT - COUNT ( * ) * 42 * - 83 AS col2 FROM tab2 AS cor0
----
10458

query I rowsort
SELECT DISTINCT - - ( + + col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NOT NULL BETWEEN - 49 + + + 66 AND col0 )
----

query I rowsort
SELECT ALL + col1 + + + col0 - + col0 AS col0 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7589
SELECT ALL COUNT( + - col1 ) DIV 58 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7589
SELECT ALL COUNT ( + - col1 ) / 58 FROM tab1 cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7590
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 74 >= + - ( - + CAST( NULL AS SIGNED ) ) / 90 + - col1 / + col1
----

skipif mysql # not compatible
query III rowsort label-7590
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 74 >= + - ( - + CAST ( NULL AS INTEGER ) ) / 90 + - col1 / + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7591
SELECT - col2 AS col2 FROM tab0 AS cor0 WHERE 97 + col1 + + CAST( + 94 AS SIGNED ) * - - col2 >= - col1
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-7591
SELECT - col2 AS col2 FROM tab0 AS cor0 WHERE 97 + col1 + + CAST ( + 94 AS INTEGER ) * - - col2 >= - col1
----
-10
-47
-99

query I rowsort
SELECT ALL - 43 - + + col1 FROM tab1
----
-48
-57
-90

query I rowsort
SELECT DISTINCT - ( + 60 ) FROM tab0
----
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2, col1 col0 FROM tab1
----
-59
5
-68
47
-96
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7595
SELECT ALL - MIN( col1 ) + - + MAX( - - col1 ) AS col1 FROM tab0
----
-82

skipif mysql # not compatible
query I rowsort label-7595
SELECT ALL - MIN ( col1 ) + - + MAX ( - - col1 ) AS col1 FROM tab0
----
-82

query I rowsort
SELECT ALL - + 45 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 42 * - + 68 FROM tab0
----
-2856
-2856
-2856

query I rowsort
SELECT - + col0 AS col1 FROM tab2 WHERE ( + - col1 <= NULL ) OR NULL IS NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7599
SELECT + ( - ( - SUM( ALL 33 ) ) ) AS col2 FROM tab2
----
99

skipif mysql # not compatible
query I rowsort label-7599
SELECT + ( - ( - SUM ( ALL 33 ) ) ) AS col2 FROM tab2
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-7600
SELECT ALL + col2 DIV + col2 + - - 39 + + 13 * col2 DIV - 19 FROM tab0 AS cor0
----
-27
34
8

skipif mysql # not compatible
query I rowsort label-7600
SELECT ALL + col2 / + col2 + - - 39 + + 13 * col2 / - 19 FROM tab0 AS cor0
----
-27
34
8

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7601
SELECT 34 - CAST( NULL AS DECIMAL ) col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7601
SELECT 34 - CAST ( NULL AS REAL ) col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col1 FROM tab0 AS cor0 WHERE NULL BETWEEN + 68 AND ( col1 ) * - 78
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - + 98 ) col0 FROM tab0 AS cor0
----
98

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 * + col1 NOT BETWEEN + col0 AND + 28 * + 81 + + + col1 * - col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7605
SELECT + COUNT( * ), - 1 DIV - 15 AS col2 FROM tab2 AS cor0
----
3
0

skipif mysql # not compatible
query II rowsort label-7605
SELECT + COUNT ( * ), - 1 / - 15 AS col2 FROM tab2 AS cor0
----
3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7606
SELECT ALL + COUNT( - - col0 ) * + MIN( DISTINCT - col1 ) FROM tab2 AS cor0 WHERE NULL = - ( col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7606
SELECT ALL + COUNT ( - - col0 ) * + MIN ( DISTINCT - col1 ) FROM tab2 AS cor0 WHERE NULL = - ( col1 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7607
SELECT DISTINCT + + ( + ( CAST( NULL AS SIGNED ) ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7607
SELECT DISTINCT + + ( + ( CAST ( NULL AS INTEGER ) ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7608
SELECT - col1 DIV 45 DIV col0 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7608
SELECT - col1 / 45 / col0 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - col2 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col0, col2 col1 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

query III rowsort
SELECT * FROM tab1 WHERE NOT 32 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col1 FROM tab0 WHERE NOT - col2 IS NULL
----
10
47
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7613
SELECT DISTINCT COUNT( * ) * + CAST( - + COUNT( * ) AS SIGNED ) + - 76 FROM tab0
----
-85

skipif mysql # not compatible
query I rowsort label-7613
SELECT DISTINCT COUNT ( * ) * + CAST ( - + COUNT ( * ) AS INTEGER ) + - 76 FROM tab0
----
-85

query I rowsort
SELECT - 43 * col2 AS col2 FROM tab2
----
-1720
-2494
-989

query I rowsort
SELECT DISTINCT - col0 + + + 30 AS col2 FROM tab2
----
-16
-34
-45

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 < col0
----
46
51
23
64
77
40

query I rowsort
SELECT 97 + 59 FROM tab2 AS cor0
----
156
156
156

query III rowsort
SELECT * FROM tab0 WHERE 78 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7619
SELECT DISTINCT col0 * - - 72 + CAST( NULL AS DECIMAL ) AS col0, - 80 FROM tab1
----
NULL
-80

skipif mysql # not compatible
query II rowsort label-7619
SELECT DISTINCT col0 * - - 72 + CAST ( NULL AS REAL ) AS col0, - 80 FROM tab1
----
NULL
-80

query I rowsort
SELECT DISTINCT 23 + + col2 FROM tab2 AS cor0
----
46
63
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7621
SELECT ALL + 82 + + MIN( ALL - - 63 ) col0 FROM tab1 AS cor0
----
145

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7621
SELECT ALL + 82 + + MIN ( ALL - - 63 ) col0 FROM tab1 AS cor0
----
145

onlyif mysql # DIV for integer division: 
query I rowsort label-7622
SELECT ALL - + col1 + - 99 + - col1 DIV - - col1 FROM tab1 AS cor0
----
-105
-114
-147

skipif mysql # not compatible
query I rowsort label-7622
SELECT ALL - + col1 + - 99 + - col1 / - - col1 FROM tab1 AS cor0
----
-105
-114
-147

query II rowsort
SELECT - col0 * + - col1 * + col1 AS col2, 12 AS col2 FROM tab0 AS cor0
----
38367
12
97
12
98415
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7624
SELECT col1 * + - col1 * + col1 * ( - + 5 ) - - 3 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7624
SELECT col1 * + - col1 * + col1 * ( - + 5 ) - - 3 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 - - + col2 AS col1 FROM tab0 AS cor0
----
-11
-34
98

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 0 - + + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE + + 77 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7628
SELECT DISTINCT * FROM tab1 WHERE NOT NULL >= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7628
SELECT DISTINCT * FROM tab1 WHERE NOT NULL >= CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7629
SELECT DISTINCT + 0 - - COUNT( * ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7629
SELECT DISTINCT + 0 - - COUNT ( * ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7630
SELECT DISTINCT + - 46 + + COUNT( * ) + + 61 + - 8 AS col1 FROM tab2 WHERE NOT + - col0 <> col2
----
7

skipif mysql # not compatible
query I rowsort label-7630
SELECT DISTINCT + - 46 + + COUNT ( * ) + + 61 + - 8 AS col1 FROM tab2 WHERE NOT + - col0 <> col2
----
7

query I rowsort
SELECT col2 * 85 + + col2 * + col1 + - ( col1 ) * + 58 * + + 76 FROM tab0
----
-349246
-91508
4106

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE NOT ( + 19 ) IS NOT NULL
----

query I rowsort
SELECT 11 + - - 62 AS col0 FROM tab1
----
73
73
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7634
SELECT DISTINCT + 95 + + MIN( DISTINCT + col1 ) col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7634
SELECT DISTINCT + 95 + + MIN ( DISTINCT + col1 ) col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab1 cor0 WHERE 23 * col0 - + col2 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7636
SELECT - + 13 DIV + COUNT( * ) AS col0 FROM tab1 cor0
----
-4

skipif mysql # not compatible
query I rowsort label-7636
SELECT - + 13 / + COUNT ( * ) AS col0 FROM tab1 cor0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7637
SELECT - SUM( DISTINCT - + 27 ) AS col2 FROM tab0 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-7637
SELECT - SUM ( DISTINCT - + 27 ) AS col2 FROM tab0 AS cor0
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7638
SELECT DISTINCT + 45 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-7638
SELECT DISTINCT + 45 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7639
SELECT + CAST( NULL AS SIGNED ) / - + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7639
SELECT + CAST ( NULL AS INTEGER ) / - + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7640
SELECT ALL 84 * - COUNT( * ) FROM tab2 AS cor0
----
-252

skipif mysql # not compatible
query I rowsort label-7640
SELECT ALL 84 * - COUNT ( * ) FROM tab2 AS cor0
----
-252

query I rowsort
SELECT + col2 + col0 + col2 * col0 AS col1 FROM tab2
----
1127
2664
4483

query I rowsort
SELECT + 86 FROM tab0 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7643
SELECT DISTINCT MAX( DISTINCT + + col2 ) + - + 44 AS col0 FROM tab1
----
52

skipif mysql # not compatible
query I rowsort label-7643
SELECT DISTINCT MAX ( DISTINCT + + col2 ) + - + 44 AS col0 FROM tab1
----
52

query I rowsort
SELECT - col2 * col2 + 17 AS col2 FROM tab2
----
-1583
-3347
-512

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7645
SELECT - + 56 FROM tab0 WHERE - CAST( - col2 AS SIGNED ) NOT BETWEEN + col2 * + + 68 * - col0 AND NULL
----

skipif mysql # not compatible
query I rowsort label-7645
SELECT - + 56 FROM tab0 WHERE - CAST ( - col2 AS INTEGER ) NOT BETWEEN + col2 * + + 68 * - col0 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL >= - 81
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 53 + - col2 col0 FROM tab0
----
-100
-152
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-7648
SELECT + 60 AS col0, - COUNT( * ) AS col2 FROM tab0 AS cor0
----
60
-3

skipif mysql # not compatible
query II rowsort label-7648
SELECT + 60 AS col0, - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
60
-3

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND + col1
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7650
SELECT DISTINCT + col2 DIV + CAST( + col2 AS SIGNED ) + - col2 + CAST( + col2 AS SIGNED ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7650
SELECT DISTINCT + col2 / + CAST ( + col2 AS INTEGER ) + - col2 + CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0
----
1

query I rowsort
SELECT + 45 * col1 * 83 AS col1 FROM tab1 AS cor0
----
175545
18675
52290

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND - 14
----

query I rowsort
SELECT DISTINCT + + 97 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
97

query I rowsort
SELECT DISTINCT col1 * + 89 FROM tab0
----
1869
7209
89

query II rowsort
SELECT - 27, - 98 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
18 values hashing to a77ababbea22b3742a2ba4c073ce1d56

query I rowsort
SELECT 78 * - 77 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 2023770a958a3b3e5d19b7189a7cfc87

query I rowsort
SELECT ALL + + col1 + 89 FROM tab0 AS cor0
----
110
170
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7658
SELECT - + COUNT( DISTINCT + 53 ) col1 FROM tab1 AS cor0 WHERE 71 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7658
SELECT - + COUNT ( DISTINCT + 53 ) col1 FROM tab1 AS cor0 WHERE 71 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7659
SELECT - 66 + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-7659
SELECT - 66 + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-69

query I rowsort
SELECT DISTINCT + 46 + + col2 AS col1 FROM tab2 AS cor0
----
104
69
86

query I rowsort
SELECT DISTINCT - col2 - - + 14 * + col0 * + 72 AS col0 FROM tab1 cor0
----
51312
85621
91660

query I rowsort
SELECT + + 6 + + - col2 AS col2 FROM tab1 AS cor0
----
-53
-62
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-7663
SELECT ALL COUNT( * ) - + MAX( col0 ) FROM tab1 cor0
----
-88

skipif mysql # not compatible
query I rowsort label-7663
SELECT ALL COUNT ( * ) - + MAX ( col0 ) FROM tab1 cor0
----
-88

query I rowsort
SELECT ALL ( ( - col1 ) ) * - col0 AS col2 FROM tab0 AS cor0
----
1215
1827
97

query I rowsort
SELECT ALL + col1 - + - 37 - + ( - col2 ) - - + col1 + - + col1 * + col0 * - - 93 FROM tab0
----
-112749
-169822
-8883

query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 * - col1 + - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col1, - 92 FROM tab2
----
46
-92
64
-92
75
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-7668
SELECT - COUNT( * ) * - 54 AS col2 FROM tab2
----
162

skipif mysql # not compatible
query I rowsort label-7668
SELECT - COUNT ( * ) * - 54 AS col2 FROM tab2
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-7669
SELECT ALL - - 67 + + COUNT( * ) FROM tab0 WHERE NOT - - col0 > NULL
----
67

skipif mysql # not compatible
query I rowsort label-7669
SELECT ALL - - 67 + + COUNT ( * ) FROM tab0 WHERE NOT - - col0 > NULL
----
67

query I rowsort
SELECT 1 * - 61 FROM tab2
----
-61
-61
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7671
SELECT ALL COUNT( * ) * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7671
SELECT ALL COUNT ( * ) * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT ALL col1 * - + 92 FROM tab0
----
-1932
-7452
-92

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <= + 7
----

query II rowsort
SELECT DISTINCT - - col0, ( + col1 ) FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
46
51
64
77
75
67

query I rowsort
SELECT DISTINCT ( 16 ) FROM tab0
----
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( + - col2 ) col0, 54 * - + col2 FROM tab0
----
-10
-540
-47
-2538
-99
-5346

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7677
SELECT + 84 - + CAST( col0 AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NOT + ( 29 ) + + 99 * + - 48 IS NULL
----
-13
-3
69

skipif mysql # not compatible
query I rowsort label-7677
SELECT + 84 - + CAST ( col0 AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NOT + ( 29 ) + + 99 * + - 48 IS NULL
----
-13
-3
69

onlyif mysql # DIV for integer division: 
query I rowsort label-7678
SELECT + + 47 DIV + 58 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7678
SELECT + + 47 / + 58 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT col0 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
46
64
75

query I rowsort
SELECT - + ( - + col2 ) FROM tab0 AS cor0 WHERE NOT col2 / + 20 <= col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7681
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab2 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7681
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab2 WHERE NULL IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7682
SELECT + + COUNT( * ) AS col2 FROM tab1 WHERE NULL NOT BETWEEN NULL AND + col2 * col0 * + col0
----
0

skipif mysql # not compatible
query I rowsort label-7682
SELECT + + COUNT ( * ) AS col2 FROM tab1 WHERE NULL NOT BETWEEN NULL AND + col2 * col0 * + col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7683
SELECT DISTINCT - - 24 * - col0 + CAST( - col2 AS SIGNED ) FROM tab1 cor0
----
-1320
-2099
-2252

skipif mysql # not compatible
query I rowsort label-7683
SELECT DISTINCT - - 24 * - col0 + CAST ( - col2 AS INTEGER ) FROM tab1 cor0
----
-1320
-2099
-2252

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - ( + col1 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7685
SELECT 23 * - col0 + + col1 + - col1 / - CAST( NULL AS SIGNED ) * + 84 + 24 + - ( + + 30 ) + CAST( NULL AS SIGNED ) * + col1 * + 72 + + col2 - - + col0 + - 13 * col0 * - - col0 * + - 22 * col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7685
SELECT 23 * - col0 + + col1 + - col1 / - CAST ( NULL AS INTEGER ) * + 84 + 24 + - ( + + 30 ) + CAST ( NULL AS INTEGER ) * + col1 * + 72 + + col2 - - + col0 + - 13 * col0 * - - col0 * + - 22 * col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col2, - col2 FROM tab2
----
46
-23
64
-40
75
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-7687
SELECT ALL - 28 - - - COUNT( * ), + 90 * + 38 - + 79 - - 27 AS col0 FROM tab0 AS cor0
----
-31
3368

skipif mysql # not compatible
query II rowsort label-7687
SELECT ALL - 28 - - - COUNT ( * ), + 90 * + 38 - + 79 - - 27 AS col0 FROM tab0 AS cor0
----
-31
3368

onlyif mysql # aggregate syntax: 
query I rowsort label-7688
SELECT DISTINCT + - MAX( ALL + - col2 ) + - 96 FROM tab1 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-7688
SELECT DISTINCT + - MAX ( ALL + - col2 ) + - 96 FROM tab1 AS cor0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-7689
SELECT COUNT( * ) - COUNT( + col2 ) col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7689
SELECT COUNT ( * ) - COUNT ( + col2 ) col0 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7690
SELECT col0 - + col2 + 15 + - ( 72 ) DIV col1 FROM tab0 AS cor0
----
-17
-59
89

skipif mysql # not compatible
query I rowsort label-7690
SELECT col0 - + col2 + 15 + - ( 72 ) / col1 FROM tab0 AS cor0
----
-17
-59
89

query I rowsort
SELECT + - col2 * + 34 - + 64 AS col0 FROM tab1 AS cor0
----
-2070
-2376
-3328

onlyif mysql # DIV for integer division: 
query I rowsort label-7692
SELECT - 8 DIV - + col0 - + 67 + - + col2 AS col2 FROM tab0 AS cor0
----
-114
-166
-77

skipif mysql # not compatible
query I rowsort label-7692
SELECT - 8 / - + col0 - + 67 + - + col2 AS col2 FROM tab0 AS cor0
----
-114
-166
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 19 col2 FROM tab2 AS cor0
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7694
SELECT DISTINCT - + CAST( + + col2 AS SIGNED ) * + - 94 FROM tab1 AS cor0
----
5546
6392
9024

skipif mysql # not compatible
query I rowsort label-7694
SELECT DISTINCT - + CAST ( + + col2 AS INTEGER ) * + - 94 FROM tab1 AS cor0
----
5546
6392
9024

onlyif mysql # aggregate syntax: 
query I rowsort label-7695
SELECT DISTINCT - COUNT( * ) * - 70 FROM tab0
----
210

skipif mysql # not compatible
query I rowsort label-7695
SELECT DISTINCT - COUNT ( * ) * - 70 FROM tab0
----
210

onlyif mysql # DIV for integer division: 
query I rowsort label-7696
SELECT ALL - col1 DIV - col0 col0 FROM tab2
----
0
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7696
SELECT ALL - col1 / - col0 col0 FROM tab2
----
0
1
1

query I rowsort
SELECT ALL 60 * - 56 * + col1 FROM tab0
----
-272160
-3360
-70560

onlyif mysql # aggregate syntax: 
query I rowsort label-7698
SELECT DISTINCT + COUNT( * ) * - 37 AS col1 FROM tab2
----
-111

skipif mysql # not compatible
query I rowsort label-7698
SELECT DISTINCT + COUNT ( * ) * - 37 AS col1 FROM tab2
----
-111

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + col0 * - 6 + - col0 > col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - col1 * + col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7701
SELECT + COUNT( + - CAST( + 93 AS SIGNED ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7701
SELECT + COUNT ( + - CAST ( + 93 AS INTEGER ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7702
SELECT COUNT( * ) * - + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-81

skipif mysql # not compatible
query I rowsort label-7702
SELECT COUNT ( * ) * - + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-81

query II rowsort
SELECT ALL col2, - col2 * 79 AS col0 FROM tab2
----
23
-1817
40
-3160
58
-4582

query I rowsort
SELECT - + ( + - col0 ) FROM tab1 cor0
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - 2 col0, + 27 + - + col2 FROM tab2 AS cor0
----
-2
-13
-2
-31
-2
4

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL = col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7707
SELECT 83 + - 52 + - ( MAX( - col2 ) ) FROM tab1 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-7707
SELECT 83 + - 52 + - ( MAX ( - col2 ) ) FROM tab1 AS cor0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7708
SELECT DISTINCT SUM( ALL - - col2 ) AS col2 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-7708
SELECT DISTINCT SUM ( ALL - - col2 ) AS col2 FROM tab2 AS cor0
----
121

query I rowsort
SELECT DISTINCT - 60 * - ( - 65 ) AS col0 FROM tab0 cor0
----
-3900

onlyif mysql # aggregate syntax: 
query I rowsort label-7710
SELECT ALL + MAX( ALL + col0 ) AS col0 FROM tab0 AS cor0 WHERE NOT - 64 / - 6 + 81 IS NULL
----
97

skipif mysql # not compatible
query I rowsort label-7710
SELECT ALL + MAX ( ALL + col0 ) AS col0 FROM tab0 AS cor0 WHERE NOT - 64 / - 6 + 81 IS NULL
----
97

query I rowsort
SELECT + col2 + - 79 AS col0 FROM tab2
----
-21
-39
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-7712
SELECT COUNT( * ) + + + 90, 41 col0 FROM tab2
----
93
41

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7712
SELECT COUNT ( * ) + + + 90, 41 col0 FROM tab2
----
93
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 45 * col1 + - ( - col0 ), + col0 col0 FROM tab1
----
2206
91
310
85
681
51

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL IN ( + + col0 * + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7715
SELECT * FROM tab1 AS cor0 WHERE NULL <> + 24 - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7715
SELECT * FROM tab1 AS cor0 WHERE NULL <> + 24 - - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7716
SELECT DISTINCT + SUM( + col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
121

skipif mysql # not compatible
query I rowsort label-7716
SELECT DISTINCT + SUM ( + col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
121

query I rowsort
SELECT ALL col2 * - col2 - + col2 AS col0 FROM tab1 AS cor0
----
-3540
-4692
-9312

onlyif mysql # aggregate syntax: 
query I rowsort label-7718
SELECT ALL - MAX( DISTINCT col0 ) AS col1 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-7718
SELECT ALL - MAX ( DISTINCT col0 ) AS col1 FROM tab0
----
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - col1 * 79 col0 FROM tab1
----
-1120
-3760
-400

query I rowsort
SELECT DISTINCT ( + col1 ) + + + col0 AS col2 FROM tab0
----
108
96
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7721
SELECT CAST( - - col0 AS SIGNED ) + - col0 + col0 FROM tab0 cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-7721
SELECT CAST ( - - col0 AS INTEGER ) + - col0 + col0 FROM tab0 cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7722
SELECT ALL + + ( - SUM( DISTINCT - + 79 ) ) * + 56 AS col2 FROM tab1 AS cor0
----
4424

skipif mysql # not compatible
query I rowsort label-7722
SELECT ALL + + ( - SUM ( DISTINCT - + 79 ) ) * + 56 AS col2 FROM tab1 AS cor0
----
4424

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 45 col2 FROM tab0 AS cor0 WHERE 58 <= - 66
----

query I rowsort
SELECT DISTINCT col1 * - 6 FROM tab2 AS cor0
----
-306
-402
-462

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 2 col1 FROM tab0 AS cor0
----
2
2
2

query I rowsort
SELECT ALL - 34 * - + ( - col2 ) FROM tab2 AS cor0 WHERE + 70 + + col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7727
SELECT DISTINCT + col1 * col1 DIV col0 FROM tab2
----
56
59
92

skipif mysql # not compatible
query I rowsort label-7727
SELECT DISTINCT + col1 * col1 / col0 FROM tab2
----
56
59
92

onlyif mysql # aggregate syntax: 
query II rowsort label-7728
SELECT + 88 AS col0, - COUNT( * ) + + 47 FROM tab1
----
88
44

skipif mysql # not compatible
query II rowsort label-7728
SELECT + 88 AS col0, - COUNT ( * ) + + 47 FROM tab1
----
88
44

query I rowsort
SELECT DISTINCT col0 * - 82 AS col2 FROM tab1
----
-4182
-6970
-7462

onlyif mysql # aggregate syntax: 
query I rowsort label-7730
SELECT ALL SUM( DISTINCT 99 ) col2 FROM tab2
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7730
SELECT ALL SUM ( DISTINCT 99 ) col2 FROM tab2
----
99

query II rowsort
SELECT DISTINCT 40 AS col2, 78 AS col0 FROM tab0
----
40
78

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 50 BETWEEN NULL AND - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - - col1 ) <> NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - col0 AND 61
----

query I rowsort
SELECT ALL - col1 * - - 0 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + 88 * - + col0 AS col2 FROM tab1 AS cor0
----
-4488
-7480
-8008

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 72 col2 FROM tab1 AS cor0
----
-72

query I rowsort
SELECT - 70 * - + col2 AS col0 FROM tab0 WHERE NOT - col1 <= NULL
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL AND NOT ( NOT NULL IS NOT NULL )
----

query I rowsort
SELECT DISTINCT + col1 * + + col0 + + col1 + - col0 AS col1 FROM tab0
----
1
1281
1761

query I rowsort
SELECT ( col2 ) * - - ( col2 ) * + 44 * + - 45 + + + col0 / + 6 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT + 50 AS col2, + col2 - + col1 + - col1 * + col1 FROM tab2 AS cor0 WHERE NOT col0 + 61 * + col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7743
SELECT ALL col2 + + col1 DIV col1 AS col2 FROM tab2 AS cor0
----
24
41
59

skipif mysql # not compatible
query I rowsort label-7743
SELECT ALL col2 + + col1 / col1 AS col2 FROM tab2 AS cor0
----
24
41
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7744
SELECT ALL - MIN( ALL - col1 ) FROM tab1 AS cor0 WHERE NOT + col2 IS NULL
----
47

skipif mysql # not compatible
query I rowsort label-7744
SELECT ALL - MIN ( ALL - col1 ) FROM tab1 AS cor0 WHERE NOT + col2 IS NULL
----
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( + - 10 ) * - 98 col0 FROM tab0 AS cor0
----
980
980
980

query I rowsort
SELECT + + col0 * - col1 * - col2 FROM tab2 AS cor0
----
197120
291450
53958

onlyif mysql # aggregate syntax: 
query I rowsort label-7747
SELECT - SUM( - + col1 ) * + COUNT( DISTINCT - col0 ) - + COUNT( DISTINCT + col0 ) FROM tab0 AS cor0
----
306

skipif mysql # not compatible
query I rowsort label-7747
SELECT - SUM ( - + col1 ) * + COUNT ( DISTINCT - col0 ) - + COUNT ( DISTINCT + col0 ) FROM tab0 AS cor0
----
306

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7748
SELECT col0 DIV - 34 DIV - - CAST( + 1 AS SIGNED ) FROM tab2 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-7748
SELECT col0 / - 34 / - - CAST ( + 1 AS INTEGER ) FROM tab2 AS cor0
----
-1
-1
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 90 * col0 col2 FROM tab1
----
-4590
-7650
-8190

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7750
SELECT + COUNT( * ) * + MAX( ALL CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7750
SELECT + COUNT ( * ) * + MAX ( ALL CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7751
SELECT DISTINCT + 34 AS col1, - col0 + - 5 - - CAST( NULL AS SIGNED ) * - 84 * + - col0 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-7751
SELECT DISTINCT + 34 AS col1, - col0 + - 5 - - CAST ( NULL AS INTEGER ) * - 84 * + - col0 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7752
SELECT DISTINCT 73 + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-7752
SELECT DISTINCT 73 + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
70

query I rowsort
SELECT - col1 + ( col2 ) * - 90 AS col1 FROM tab0 AS cor0
----
-4311
-8911
-921

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7754
SELECT ALL - + CAST( NULL AS SIGNED ) * - 93 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-7754
SELECT ALL - + CAST ( NULL AS INTEGER ) * - 93 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7755
SELECT DISTINCT + col1 - + col1 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7755
SELECT DISTINCT + col1 - + col1 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT ALL - 49 AS col2, 2 AS col0 FROM tab1, tab0 AS cor0
----
18 values hashing to e35b1859bba30c10a0197ce66942fe82

query I rowsort
SELECT DISTINCT ( + - 80 ) AS col0 FROM tab0, tab0 AS cor0
----
-80

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 92 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7759
SELECT + MIN( ALL ( CAST( NULL AS SIGNED ) ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7759
SELECT + MIN ( ALL ( CAST ( NULL AS INTEGER ) ) ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 90 * col2 - - col0 + + col0 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7761
SELECT + 29 * - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-7761
SELECT + 29 * - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-87

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL <> 15
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7763
SELECT 51 * + + COUNT( * ) col0 FROM tab2 AS cor0
----
153

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7763
SELECT 51 * + + COUNT ( * ) col0 FROM tab2 AS cor0
----
153

query I rowsort
SELECT ALL + 0 * col1 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col1 ) >= NULL
----

query I rowsort
SELECT - + 11 FROM tab2 WHERE NOT - 56 * col2 + - - col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col1, col0 * + 73 AS col2 FROM tab1
----
14
3723
47
6643
5
6205

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 AS col0, + col1 col0 FROM tab2
----
46
51
64
77
75
67

query I rowsort
SELECT - 53 * - 90 AS col2 FROM tab2 cor0
----
4770
4770
4770

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7770
SELECT - 21 DIV - + COUNT( * ) AS col2 FROM tab1 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-7770
SELECT - 21 / - + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
7

query I rowsort
SELECT ALL col1 * - - col1 * col1 AS col2 FROM tab1
----
103823
125
2744

query II rowsort
SELECT ALL - col1 + col0 AS col0, col1 * + - col1 + + 2 AS col1 FROM tab2
----
-13
-5927
-5
-2599
8
-4487

onlyif mysql # aggregate syntax: 
query I rowsort label-7773
SELECT ALL - + SUM( - 98 ) col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
882

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7773
SELECT ALL - + SUM ( - 98 ) col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
882

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7774
SELECT ALL CAST( - ( + 87 ) AS SIGNED ) * - col0 * + ( - col1 ) + ( + + col2 ) AS col1 FROM tab2
----
-204079
-428696
-437117

skipif mysql # not compatible
query I rowsort label-7774
SELECT ALL CAST ( - ( + 87 ) AS INTEGER ) * - col0 * + ( - col1 ) + ( + + col2 ) AS col1 FROM tab2
----
-204079
-428696
-437117

query I rowsort
SELECT DISTINCT col0 * + - col1 AS col2 FROM tab2 AS cor0
----
-2346
-4928
-5025

query I rowsort
SELECT DISTINCT - col1 + - 63 + + col2 FROM tab0 AS cor0
----
-74
-97
35

query I rowsort
SELECT ALL - 65 * + + 82 AS col1 FROM tab1 AS cor0
----
-5330
-5330
-5330

query I rowsort
SELECT DISTINCT - col0 + + col0 * + - 91 * col1 AS col2 FROM tab2 AS cor0
----
-213532
-448512
-457350

query I rowsort
SELECT 96 + - col0 AS col0 FROM tab2 AS cor0
----
21
32
50

query I rowsort
SELECT + - col0 + - 24 AS col0 FROM tab0 AS cor0
----
-111
-121
-39

query I rowsort
SELECT ALL - - ( + - col2 ) AS col1 FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7782
SELECT - COUNT( * ) + - COUNT( * ) - + COUNT( * ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-7782
SELECT - COUNT ( * ) + - COUNT ( * ) - + COUNT ( * ) FROM tab0
----
-9

query III rowsort
SELECT * FROM tab0 WHERE - ( col1 ) IS NULL
----

query I rowsort
SELECT DISTINCT - col0 + - - 8 FROM tab0
----
-7
-79
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7785
SELECT COUNT( * ) DIV + 21 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7785
SELECT COUNT ( * ) / + 21 FROM tab0
----
0

query I rowsort
SELECT ( - ( + - 95 ) ) FROM tab2
----
95
95
95

onlyif mysql # DIV for integer division: 
query I rowsort label-7787
SELECT col0 DIV - - 1 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-7787
SELECT col0 / - - 1 FROM tab1
----
51
85
91

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE + col1 * col2 IS NULL
----

query I rowsort
SELECT ALL - col1 - - 20 AS col1 FROM tab0 AS cor0
----
-1
-61
19

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - col2 ) <= col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col1 + + col0 > col0 * - 69 + - - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-7792
SELECT ALL 99, ( COUNT( * ) ) AS col0 FROM tab2
----
99
3

skipif mysql # not compatible
query II rowsort label-7792
SELECT ALL 99, ( COUNT ( * ) ) AS col0 FROM tab2
----
99
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7793
SELECT DISTINCT - CAST( + + 99 AS SIGNED ) FROM tab0 cor0
----
-99

skipif mysql # not compatible
query I rowsort label-7793
SELECT DISTINCT - CAST ( + + 99 AS INTEGER ) FROM tab0 cor0
----
-99

query I rowsort
SELECT DISTINCT - 65 FROM tab0 AS cor0 WHERE ( + col1 IS NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - 74 / + col2 - - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - ( + 16 ) AS col0 FROM tab0
----
-16
-16
-16

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 NOT BETWEEN ( - 43 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7798
SELECT + 79 * + SUM( + - col1 ) AS col0 FROM tab2
----
-15405

skipif mysql # not compatible
query I rowsort label-7798
SELECT + 79 * + SUM ( + - col1 ) AS col0 FROM tab2
----
-15405

query I rowsort
SELECT DISTINCT + ( - col2 ) + - col2 AS col2 FROM tab1
----
-118
-136
-192

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL = 61
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND - 14
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * - col1 col1 FROM tab0 AS cor0
----
-1215
-1827
-97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * + + ( - - col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - - col1 + 21 - + - col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7805
SELECT - 2 + + - 73 * - COUNT( * ) * + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-659

skipif mysql # not compatible
query I rowsort label-7805
SELECT - 2 + + - 73 * - COUNT ( * ) * + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-659

query I rowsort
SELECT + 14 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7807
SELECT ALL 78 * - + col1 + - - col0 AS col1, ( + - CAST( NULL AS DECIMAL ) ) AS col2 FROM tab1 AS cor0
----
-1041
NULL
-305
NULL
-3575
NULL

skipif mysql # not compatible
query II rowsort label-7807
SELECT ALL 78 * - + col1 + - - col0 AS col1, ( + - CAST ( NULL AS REAL ) ) AS col2 FROM tab1 AS cor0
----
-1041
NULL
-305
NULL
-3575
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7808
SELECT + MAX( DISTINCT + col2 ) AS col2 FROM tab0 cor0
----
99

skipif mysql # not compatible
query I rowsort label-7808
SELECT + MAX ( DISTINCT + col2 ) AS col2 FROM tab0 cor0
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-7809
SELECT - 82 DIV + - 72 AS col2 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7809
SELECT - 82 / + - 72 AS col2 FROM tab2 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 19 col0 FROM tab1 AS cor0
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-7811
SELECT + - 60 DIV 72 - - - col0 AS col0 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-7811
SELECT + - 60 / 72 - - - col0 AS col0 FROM tab0 AS cor0
----
-15
-87
-97

query II rowsort
SELECT ALL + 23 AS col1, - col0 FROM tab0
----
23
-15
23
-87
23
-97

query I rowsort
SELECT DISTINCT + col2 * + 65 FROM tab2
----
1495
2600
3770

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7814
SELECT ALL col0 * ( - CAST( NULL AS SIGNED ) ) * 19 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7814
SELECT ALL col0 * ( - CAST ( NULL AS INTEGER ) ) * 19 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + col1 FROM tab2 WHERE NULL > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7816
SELECT + col1 col0 FROM tab2 AS cor0 WHERE - 15 NOT BETWEEN NULL AND 9 DIV col0 * + col0 * - col2
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7816
SELECT + col1 col0 FROM tab2 AS cor0 WHERE - 15 NOT BETWEEN NULL AND 9 / col0 * + col0 * - col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7817
SELECT col1 + + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7817
SELECT col1 + + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7818
SELECT ( - col2 ) * - CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7818
SELECT ( - col2 ) * - CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col0 FROM tab2 cor0 WHERE + 75 IS NOT NULL
----
51
67
77

query I rowsort
SELECT + 59 * + + col1 FROM tab2 AS cor0
----
3009
3953
4543

query II rowsort
SELECT + + col2 * + col1 AS col0, col0 FROM tab0 AS cor0
----
210
87
3807
15
99
97

query I rowsort
SELECT - + col0 * - - 3 FROM tab1 AS cor0
----
-153
-255
-273

query I rowsort
SELECT + + col0 * + 63 AS col1 FROM tab0 cor0
----
5481
6111
945

query III rowsort
SELECT * FROM tab0 WHERE NOT 98 / + - col0 = 17
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN + col1 AND - 40 / - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7826
SELECT DISTINCT MIN( DISTINCT col2 ) + - ( + - COUNT( * ) ) + + 76 FROM tab0
----
89

skipif mysql # not compatible
query I rowsort label-7826
SELECT DISTINCT MIN ( DISTINCT col2 ) + - ( + - COUNT ( * ) ) + + 76 FROM tab0
----
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 AS col1, - col1 * - - col1 col0 FROM tab1
----
59
-25
68
-2209
96
-196

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0 WHERE NOT - ( + 46 ) IS NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col0 + + + col1 * + + col0 * - + col1 + col2 col1 FROM tab1
----
-1976
-200813
-9835

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7830
SELECT ALL * FROM tab2 WHERE + col2 + - - CAST( NULL AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-7830
SELECT ALL * FROM tab2 WHERE + col2 + - - CAST ( NULL AS INTEGER ) <> NULL
----

query I rowsort
SELECT ALL - col1 + - 31 AS col0 FROM tab2
----
-108
-82
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7832
SELECT DISTINCT CAST( + - col2 AS SIGNED ) AS col0 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-7832
SELECT DISTINCT CAST ( + - col2 AS INTEGER ) AS col0 FROM tab0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-7833
SELECT ALL + COUNT( * ), - ( COUNT( * ) ) - - COUNT( * ) col1 FROM tab0 AS cor0
----
3
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7833
SELECT ALL + COUNT ( * ), - ( COUNT ( * ) ) - - COUNT ( * ) col1 FROM tab0 AS cor0
----
3
0

query I rowsort
SELECT col0 * + + 26 AS col0 FROM tab1 AS cor0
----
1326
2210
2366

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7835
SELECT ALL - col2 + col2 AS col0 FROM tab0 WHERE NOT - CAST( NULL AS SIGNED ) IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7835
SELECT ALL - col2 + col2 AS col0 FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL
----
0
0
0

query I rowsort
SELECT ALL ( - 70 ) FROM tab2 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT 13 + + 16 FROM tab0 WHERE NOT - ( - col0 ) <> NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( col0 ) <= NULL
----

query I rowsort
SELECT col2 + 54 AS col0 FROM tab1
----
113
122
150

onlyif mysql # aggregate syntax: 
query I rowsort label-7840
SELECT SUM( DISTINCT col2 ) * ( COUNT( * ) ) FROM tab0
----
468

skipif mysql # not compatible
query I rowsort label-7840
SELECT SUM ( DISTINCT col2 ) * ( COUNT ( * ) ) FROM tab0
----
468

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7841
SELECT - 40 + CAST( NULL AS SIGNED ) FROM tab1 WHERE - ( col0 ) > + col0 + 58
----

skipif mysql # not compatible
query I rowsort label-7841
SELECT - 40 + CAST ( NULL AS INTEGER ) FROM tab1 WHERE - ( col0 ) > + col0 + 58
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7842
SELECT - COUNT( * ) FROM tab2 WHERE NOT ( NULL ) = 51
----
0

skipif mysql # not compatible
query I rowsort label-7842
SELECT - COUNT ( * ) FROM tab2 WHERE NOT ( NULL ) = 51
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 >= col2 * - 86
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 45 + - ( col1 + col1 * 29 ) col1 FROM tab1
----
-105
-1365
-375

query I rowsort
SELECT - 34 + col2 FROM tab0
----
-24
13
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7846
SELECT ALL + 53 + COUNT( * ) AS col1 FROM tab1
----
56

skipif mysql # not compatible
query I rowsort label-7846
SELECT ALL + 53 + COUNT ( * ) AS col1 FROM tab1
----
56

query I rowsort
SELECT col2 AS col0 FROM tab1 WHERE + col1 IS NOT NULL
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7848
SELECT 18 * - CAST( col0 AS SIGNED ) FROM tab0
----
-1566
-1746
-270

skipif mysql # not compatible
query I rowsort label-7848
SELECT 18 * - CAST ( col0 AS INTEGER ) FROM tab0
----
-1566
-1746
-270

onlyif mysql # DIV for integer division: 
query I rowsort label-7849
SELECT col2 * col1 + col1 DIV - col0 FROM tab1
----
1344
295
3196

skipif mysql # not compatible
query I rowsort label-7849
SELECT col2 * col1 + col1 / - col0 FROM tab1
----
1344
295
3196

onlyif mysql # DIV for integer division: 
query I rowsort label-7850
SELECT DISTINCT + col1 DIV col0 col0 FROM tab2
----
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7850
SELECT DISTINCT + col1 / col0 col0 FROM tab2
----
0
1

query I rowsort
SELECT DISTINCT 10 AS col2 FROM tab0 WHERE NOT 93 <> ( col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE + col0 * col2 + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7853
SELECT ALL + ( + CAST( + col0 AS SIGNED ) ) * col0 col2 FROM tab2
----
2116
4096
5625

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7853
SELECT ALL + ( + CAST ( + col0 AS INTEGER ) ) * col0 col2 FROM tab2
----
2116
4096
5625

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7854
SELECT DISTINCT + col1 / CAST( NULL AS SIGNED ) + 4 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7854
SELECT DISTINCT + col1 / CAST ( NULL AS INTEGER ) + 4 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7855
SELECT ALL - ( COUNT( * ) ) * - 64 FROM tab0 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-7855
SELECT ALL - ( COUNT ( * ) ) * - 64 FROM tab0 AS cor0
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-7856
SELECT ALL - MAX( ALL ( + col2 ) ) AS col0 FROM tab2 AS cor0 WHERE NOT + col0 IN ( col1 )
----
-58

skipif mysql # not compatible
query I rowsort label-7856
SELECT ALL - MAX ( ALL ( + col2 ) ) AS col0 FROM tab2 AS cor0 WHERE NOT + col0 IN ( col1 )
----
-58

query I rowsort
SELECT col2 FROM tab2 cor0 WHERE NOT - 3 = 25 * ( + col0 )
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 22 * 4 col0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7859
SELECT ALL + COUNT( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7859
SELECT ALL + COUNT ( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-7860
SELECT DISTINCT - col0 DIV + 75 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-7860
SELECT DISTINCT - col0 / + 75 FROM tab0
----
-1
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 91 NOT BETWEEN - 92 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 38 * - col0 col1 FROM tab2 AS cor0
----
-1748
-2432
-2850

onlyif mysql # aggregate syntax: 
query I rowsort label-7863
SELECT ALL + COUNT( * ) * 19 FROM tab2 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-7863
SELECT ALL + COUNT ( * ) * 19 FROM tab2 AS cor0
----
57

query I rowsort
SELECT DISTINCT col2 * 75 FROM tab1 AS cor0
----
4425
5100
7200

onlyif mysql # aggregate syntax: 
query I rowsort label-7865
SELECT COUNT( * ) * 20 AS col1 FROM tab1 AS cor0 WHERE NOT NULL <= + 9
----
0

skipif mysql # not compatible
query I rowsort label-7865
SELECT COUNT ( * ) * 20 AS col1 FROM tab1 AS cor0 WHERE NOT NULL <= + 9
----
0

query I rowsort
SELECT - ( ( + 18 ) ) * 23 FROM tab0 AS cor0
----
-414
-414
-414

query I rowsort
SELECT + 4 * - col0 * col0 FROM tab0
----
-30276
-37636
-900

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7868
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) IN ( CAST( NULL AS DECIMAL ) + col2 )
----

skipif mysql # not compatible
query III rowsort label-7868
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) IN ( CAST ( NULL AS REAL ) + col2 )
----

query I rowsort
SELECT - col2 AS col1 FROM tab1 WHERE NOT ( col1 ) NOT IN ( ( col1 ) / col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE - col0 / - 17 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 BETWEEN ( - 16 ) AND ( NULL )
----

query I rowsort
SELECT col1 FROM tab2 WHERE + col1 * - 8 + 53 * - col1 NOT IN ( col0 + + 93 )
----
51
67
77

query I rowsort
SELECT DISTINCT + col2 + + - col2 + col0 * - col0 AS col0 FROM tab0 AS cor0
----
-225
-7569
-9409

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7874
SELECT ALL + 20 DIV + - col1 + col0 * - CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
-705
-870
-9623

skipif mysql # not compatible
query I rowsort label-7874
SELECT ALL + 20 / + - col1 + col0 * - CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
-705
-870
-9623

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL >= 6
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7876
SELECT 41 - - ( + ( CAST( CAST( col0 AS SIGNED ) AS SIGNED ) ) ) FROM tab1 WHERE - col2 / col0 IN ( - col2 )
----

skipif mysql # not compatible
query I rowsort label-7876
SELECT 41 - - ( + ( CAST ( CAST ( col0 AS INTEGER ) AS INTEGER ) ) ) FROM tab1 WHERE - col2 / col0 IN ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7877
SELECT DISTINCT - COUNT( * ) col2 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7877
SELECT DISTINCT - COUNT ( * ) col2 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
-9

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 56 = + + col2 * ( - col2 )
----

query I rowsort
SELECT DISTINCT - - col2 + - 12 FROM tab2 AS cor0
----
11
28
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7880
SELECT + 32 * - COUNT( - 24 ) col2 FROM tab0 AS cor0 WHERE NULL > + 97 + + 74 * col1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7880
SELECT + 32 * - COUNT ( - 24 ) col2 FROM tab0 AS cor0 WHERE NULL > + 97 + + 74 * col1
----
0

query I rowsort
SELECT DISTINCT - ( + col2 ) + col0 AS col2 FROM tab2 AS cor0
----
17
23
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7882
SELECT DISTINCT + COUNT( DISTINCT + 73 ) - 92 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-7882
SELECT DISTINCT + COUNT ( DISTINCT + 73 ) - 92 FROM tab1 AS cor0
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-7883
SELECT + 14 - 41 DIV col2 AS col0 FROM tab1 AS cor0
----
14
14
14

skipif mysql # not compatible
query I rowsort label-7883
SELECT + 14 - 41 / col2 AS col0 FROM tab1 AS cor0
----
14
14
14

query I rowsort
SELECT 24 - + col2 + + col2 AS col1 FROM tab2 AS cor0
----
24
24
24

query I rowsort
SELECT - col0 - + col1 * - 49 AS col0 FROM tab0 AS cor0
----
-48
3954
942

query I rowsort
SELECT ALL + ( col2 ) - + + col2 + - 17 * + col0 AS col2 FROM tab0 AS cor0
----
-1479
-1649
-255

query I rowsort
SELECT ALL + col2 * - - col0 FROM tab2
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-7888
SELECT 97 + - - COUNT( * ) + + 8 * + 83 AS col2 FROM tab2
----
764

skipif mysql # not compatible
query I rowsort label-7888
SELECT 97 + - - COUNT ( * ) + + 8 * + 83 AS col2 FROM tab2
----
764

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7889
SELECT DISTINCT * FROM tab1 WHERE NOT ( col1 ) IS NULL AND NOT NULL >= - 5 * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7889
SELECT DISTINCT * FROM tab1 WHERE NOT ( col1 ) IS NULL AND NOT NULL >= - 5 * CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL ( + 54 ) - col2 FROM tab0 WHERE NOT ( + 66 ) BETWEEN col2 * + ( - 0 / col2 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7891
SELECT DISTINCT - MIN( DISTINCT 61 ) FROM tab0
----
-61

skipif mysql # not compatible
query I rowsort label-7891
SELECT DISTINCT - MIN ( DISTINCT 61 ) FROM tab0
----
-61

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab2 WHERE NOT ( col1 * - col0 * - ( ( + col2 ) ) ) IS NOT NULL
----

query I rowsort
SELECT - 39 * - col2 FROM tab1 WHERE NOT - 18 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7894
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST( - - 7 AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7894
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST ( - - 7 AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 80 * - 5 FROM tab0 AS cor0
----
-400
-400
-400

onlyif mysql # aggregate syntax: 
query I rowsort label-7896
SELECT ALL + + COUNT( * ) FROM tab2 AS cor0 WHERE NOT - 31 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7896
SELECT ALL + + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - 31 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT - - col0 * col1 IS NULL )
----

query I rowsort
SELECT 91 * 90 FROM tab0
----
8190
8190
8190

query I rowsort
SELECT ( + col0 ) * - - 7 * - + 87 AS col1 FROM tab1
----
-31059
-51765
-55419

query I rowsort
SELECT col1 * - 1 AS col1 FROM tab0 AS cor0
----
-1
-21
-81

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - col1 * - col2 + + col0 * + - 17 * + col2 IN ( col0 * col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7902
SELECT DISTINCT - - col1 * + 34 * CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
3298
41310
62118

skipif mysql # not compatible
query I rowsort label-7902
SELECT DISTINCT - - col1 * + 34 * CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
3298
41310
62118

query I rowsort
SELECT + 5 * + col0 AS col1 FROM tab2 AS cor0
----
230
320
375

query I rowsort
SELECT ALL - 86 * + - col2 AS col0 FROM tab0 cor0
----
4042
8514
860

query I rowsort
SELECT + col0 AS col1 FROM tab2 AS cor0 WHERE NOT 17 * col0 IS NOT NULL
----

query I rowsort
SELECT 39 + - col0 FROM tab2 AS cor0
----
-25
-36
-7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 2 + + + 5 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7908
SELECT - ( - + COUNT( * ) ) FROM tab2 AS cor0 WHERE NOT NULL IN ( - col2, - 19 )
----
0

skipif mysql # not compatible
query I rowsort label-7908
SELECT - ( - + COUNT ( * ) ) FROM tab2 AS cor0 WHERE NOT NULL IN ( - col2, - 19 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7909
SELECT DISTINCT col2 / CAST( NULL AS SIGNED ) * + 65 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7909
SELECT DISTINCT col2 / CAST ( NULL AS INTEGER ) * + 65 FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 IN ( - - ( - - col2 ) )
----

query I rowsort
SELECT DISTINCT + col2 + 49 FROM tab0
----
148
59
96

query I rowsort
SELECT DISTINCT - ( - 40 ) * - + 30 AS col1 FROM tab1
----
-1200

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7913
SELECT COUNT( * ) DIV + 15 FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7913
SELECT COUNT ( * ) / + 15 FROM tab0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT - col2 * - col1 + 50 FROM tab1
----
1394
3246
345

query I rowsort
SELECT col2 + - col1 - col0 AS col1 FROM tab0
----
-49
-98
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7916
SELECT ALL col2 * + + 91 + + - CAST( - + 58 AS SIGNED ) AS col1 FROM tab2
----
2151
3698
5336

skipif mysql # not compatible
query I rowsort label-7916
SELECT ALL col2 * + + 91 + + - CAST ( - + 58 AS INTEGER ) AS col1 FROM tab2
----
2151
3698
5336

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7917
SELECT * FROM tab2 WHERE NULL >= + CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) + - col2
----

skipif mysql # not compatible
query III rowsort label-7917
SELECT * FROM tab2 WHERE NULL >= + CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) + - col2
----

query I rowsort
SELECT DISTINCT + + col1 + + 90 AS col0 FROM tab1 AS cor0
----
104
137
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7919
SELECT ALL - + CAST( + 43 AS SIGNED ) FROM tab2 cor0
----
-43
-43
-43

skipif mysql # not compatible
query I rowsort label-7919
SELECT ALL - + CAST ( + 43 AS INTEGER ) FROM tab2 cor0
----
-43
-43
-43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - col1 col0 FROM tab2 AS cor0
----
-28
-37
-9

query II rowsort
SELECT + + col1, + col0 AS col2 FROM tab0 AS cor0 WHERE NULL = col1 - 5
----

query I rowsort
SELECT ALL 67 * + col1 + + + col1 FROM tab1
----
3196
340
952

onlyif mysql # aggregate syntax: 
query I rowsort label-7923
SELECT DISTINCT - - COUNT( * ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-7923
SELECT DISTINCT - - COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT DISTINCT - + col2 + + + col1 AS col2 FROM tab2 AS cor0
----
28
37
9

query I rowsort
SELECT ALL - col1 - - 1 FROM tab0 AS cor0
----
-20
-80
0

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NULL <> + 32 * - col1 + - col2 + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7927
SELECT MIN( + 17 ) AS col1 FROM tab2 AS cor0 WHERE col2 + col0 * 49 IN ( 40, 17 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7927
SELECT MIN ( + 17 ) AS col1 FROM tab2 AS cor0 WHERE col2 + col0 * 49 IN ( 40, 17 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 * col0 / + col2 AS col1, 7 col1 FROM tab1 AS cor0 WHERE col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7929
SELECT ALL + ( + - COUNT( * ) ) AS col1 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7929
SELECT ALL + ( + - COUNT ( * ) ) AS col1 FROM tab1 cor0
----
-3

query I rowsort
SELECT ALL - col0 AS col0 FROM tab0 WHERE NULL <= NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 IN ( col0, col0 + - 85 + - col0 * + + col2 * col1 )
----

query I rowsort
SELECT + col0 * - + 32 * 57 AS col0 FROM tab2
----
-116736
-136800
-83904

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7933
SELECT DISTINCT col1 + col2 AS col0 FROM tab1 WHERE NOT + col2 IN ( + col1 * col2 * col2 - + col0 + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-7933
SELECT DISTINCT col1 + col2 AS col0 FROM tab1 WHERE NOT + col2 IN ( + col1 * col2 * col2 - + col0 + CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col0 ) = - col0 * 2 * - col0 * col0 / + + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 * - col1 + - ( - 95 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7936
SELECT DISTINCT ( ( - + 14 ) ) * - + COUNT( * ) * 84 FROM tab1 cor0
----
3528

skipif mysql # not compatible
query I rowsort label-7936
SELECT DISTINCT ( ( - + 14 ) ) * - + COUNT ( * ) * 84 FROM tab1 cor0
----
3528

query I rowsort
SELECT ALL - - 15 * col0 FROM tab2 cor0
----
1125
690
960

onlyif mysql # aggregate syntax: 
query I rowsort label-7938
SELECT + - SUM( ALL 76 ) AS col1 FROM tab0 AS cor0
----
-228

skipif mysql # not compatible
query I rowsort label-7938
SELECT + - SUM ( ALL 76 ) AS col1 FROM tab0 AS cor0
----
-228

query III rowsort
SELECT ALL * FROM tab0 WHERE + + col2 <= col1
----
15
81
47
87
21
10

query I rowsort
SELECT ALL - col1 + 48 FROM tab2
----
-19
-29
-3

query I rowsort
SELECT DISTINCT ( + 54 ) AS col2 FROM tab0 AS cor0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-7942
SELECT ALL + COUNT( * ) FROM tab0 AS cor0 WHERE NULL <= col1 + - col2 + + - 80 / - col2
----
0

skipif mysql # not compatible
query I rowsort label-7942
SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 WHERE NULL <= col1 + - col2 + + - 80 / - col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7943
SELECT ALL 1 + COUNT( * ) * + 4 FROM tab2 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-7943
SELECT ALL 1 + COUNT ( * ) * + 4 FROM tab2 AS cor0
----
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 74 col1 FROM tab1 AS cor0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7945
SELECT - MAX( ALL + + 15 ) FROM tab1
----
-15

skipif mysql # not compatible
query I rowsort label-7945
SELECT - MAX ( ALL + + 15 ) FROM tab1
----
-15

query III rowsort
SELECT ALL * FROM tab0 WHERE - col2 <= + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - 25 col2 FROM tab2
----
-48
-65
-83

query I rowsort
SELECT ALL + 29 + - col1 AS col2 FROM tab2
----
-22
-38
-48

query I rowsort
SELECT ALL + col1 AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN - 4 * - col1 AND - + col1
----

query I rowsort
SELECT DISTINCT + col1 + - - col2 FROM tab1 AS cor0
----
110
115
64

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7951
SELECT DISTINCT * FROM tab0 cor0 WHERE ( + CAST( - + 92 AS SIGNED ) + col0 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7951
SELECT DISTINCT * FROM tab0 cor0 WHERE ( + CAST ( - + 92 AS INTEGER ) + col0 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7952
SELECT DISTINCT + col1 * - 51 - - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7952
SELECT DISTINCT + col1 * - 51 - - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - col1 + - - col2 + col2 + col2 AS col1 FROM tab0 AS cor0
----
296
60
9

query I rowsort
SELECT + col2 * col2 + + + 22 * + + col0 AS col1 FROM tab0 AS cor0
----
11935
2014
2539

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7955
SELECT DISTINCT 46 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-7955
SELECT DISTINCT 46 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7956
SELECT col2 / - CAST( NULL AS SIGNED ) * 85 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7956
SELECT col2 / - CAST ( NULL AS INTEGER ) * 85 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 AS col2, col1 col0 FROM tab0 AS cor0
----
10
21
47
81
99
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + + col1 + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, 67 * 83 * - ( + - col2 ) * ( + col2 ) col1 FROM tab2 AS cor0
----
23
2941769
40
8897600
58
18707204

onlyif mysql # aggregate syntax: 
query II rowsort label-7960
SELECT + COUNT( * ) AS col2, - COUNT( * ) FROM tab0 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-7960
SELECT + COUNT ( * ) AS col2, - COUNT ( * ) FROM tab0 AS cor0
----
3
-3

query I rowsort
SELECT + - ( + 74 ) AS col1 FROM tab2 AS cor0
----
-74
-74
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-7962
SELECT DISTINCT COUNT( * ) AS col1, + 80 col1 FROM tab0 AS cor0
----
3
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7962
SELECT DISTINCT COUNT ( * ) AS col1, + 80 col1 FROM tab0 AS cor0
----
3
80

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col2 * + col2 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 10 + + col0 IS NULL
----

query II rowsort
SELECT ALL + col0 * + + col1 + + - ( + 87 ), col1 AS col0 FROM tab1 AS cor0
----
338
5
4190
47
627
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7966
SELECT + ( MIN( + col0 ) ) AS col0 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-7966
SELECT + ( MIN ( + col0 ) ) AS col0 FROM tab2
----
46

query I rowsort
SELECT + col2 * + - col1 AS col1 FROM tab2
----
-1173
-3080
-3886

query III rowsort
SELECT * FROM tab2 WHERE NOT + 45 / col2 <= NULL
----

query I rowsort
SELECT ALL - col0 * - col2 * + + col0 FROM tab2
----
163840
326250
48668

query I rowsort
SELECT ALL col2 * + 89 + - col0 FROM tab2 AS cor0
----
2001
3496
5087

query III rowsort
SELECT * FROM tab2 cor0 WHERE 54 / + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7972
SELECT DISTINCT MIN( + + col2 ) AS col0 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-7972
SELECT DISTINCT MIN ( + + col2 ) AS col0 FROM tab2 AS cor0
----
23

query I rowsort
SELECT ( + 56 ) FROM tab0 cor0 WHERE NULL IS NULL
----
56
56
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7974
SELECT ALL CAST( + 91 AS SIGNED ) + col0 FROM tab0 cor0
----
106
178
188

skipif mysql # not compatible
query I rowsort label-7974
SELECT ALL CAST ( + 91 AS INTEGER ) + col0 FROM tab0 cor0
----
106
178
188

query II rowsort
SELECT DISTINCT - + col2 AS col1, + 75 FROM tab2 AS cor0
----
-23
75
-40
75
-58
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7976
SELECT - CAST( NULL AS SIGNED ) + - + 18 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7976
SELECT - CAST ( NULL AS INTEGER ) + - + 18 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 88 * + - col0 + - col1 * - 54 AS col0 FROM tab1
----
10546
5244
7750

onlyif mysql # DIV for integer division: 
query II rowsort label-7978
SELECT 59 DIV col1, col1 FROM tab1
----
1
47
11
5
4
14

skipif mysql # not compatible
query II rowsort label-7978
SELECT 59 / col1, col1 FROM tab1
----
1
47
11
5
4
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7979
SELECT ALL CAST( + col0 AS SIGNED ) + col1 + - 47 * col0 + + 63 AS col0 FROM tab0
----
-3918
-4398
-546

skipif mysql # not compatible
query I rowsort label-7979
SELECT ALL CAST ( + col0 AS INTEGER ) + col1 + - 47 * col0 + + 63 AS col0 FROM tab0
----
-3918
-4398
-546

query II rowsort
SELECT ALL - col2 + - col2 AS col0, col0 + col0 AS col1 FROM tab0 AS cor0
----
-198
194
-20
174
-94
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7981
SELECT 67 - + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-7981
SELECT 67 - + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
64

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + 23 BETWEEN NULL AND col2
----

query I rowsort
SELECT 64 + + 23 FROM tab1
----
87
87
87

query I rowsort
SELECT DISTINCT + 15 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7985
SELECT ALL col2 DIV - 90 AS col2 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7985
SELECT ALL col2 / - 90 AS col2 FROM tab1 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7986
SELECT DISTINCT + COUNT( - 55 ) col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7986
SELECT DISTINCT + COUNT ( - 55 ) col2 FROM tab0 cor0
----
3

query I rowsort
SELECT ALL col2 AS col2 FROM tab0 AS cor0 WHERE col1 * + - col2 + + + 56 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7988
SELECT ALL - - MIN( - col2 ) AS col0 FROM tab1 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-7988
SELECT ALL - - MIN ( - col2 ) AS col0 FROM tab1 cor0
----
-96

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL IS NOT NULL OR + - col2 NOT BETWEEN ( 43 ) AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col0 * col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col1 * - 57 AS col2 FROM tab0
----
-1197
-4617
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-7992
SELECT ALL - MAX( DISTINCT + col2 ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-7992
SELECT ALL - MAX ( DISTINCT + col2 ) FROM tab1
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7993
SELECT ALL + CAST( + CAST( COUNT( * ) AS SIGNED ) AS SIGNED ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7993
SELECT ALL + CAST ( + CAST ( COUNT ( * ) AS INTEGER ) AS INTEGER ) FROM tab1
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + col1 * - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 18 col0, + 70 FROM tab1
----
18
70
18
70
18
70

query II rowsort
SELECT col0, - 33 FROM tab0
----
15
-33
87
-33
97
-33

query I rowsort
SELECT ( - col2 ) FROM tab1 WHERE NOT + + col1 IS NOT NULL
----

query I rowsort
SELECT col2 * - - ( col2 ) FROM tab2
----
1600
3364
529

onlyif mysql # DIV for integer division: 
query I rowsort label-7999
SELECT ALL + col2 DIV col2 AS col1 FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7999
SELECT ALL + col2 / col2 AS col1 FROM tab2 cor0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8000
SELECT col2 AS col1, CAST( 55 AS SIGNED ) AS col1 FROM tab2 cor0
----
23
55
40
55
58
55

skipif mysql # not compatible
query II rowsort label-8000
SELECT col2 AS col1, CAST ( 55 AS INTEGER ) AS col1 FROM tab2 cor0
----
23
55
40
55
58
55

onlyif mysql # aggregate syntax: 
query II rowsort label-8001
SELECT MIN( + 24 ) + + MAX( ALL - - col0 ), + COUNT( * ) AS col1 FROM tab0 AS cor0
----
121
3

skipif mysql # not compatible
query II rowsort label-8001
SELECT MIN ( + 24 ) + + MAX ( ALL - - col0 ), + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
121
3

query I rowsort
SELECT DISTINCT - 53 + - ( ( - col2 ) ) + - col0 AS col2 FROM tab0 cor0
----
-130
-21
-51

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + ( col0 ) + - + 20 * col1 * - - 49 <= + - 75
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - - col1 * + col1 + - - col2 AS col1 FROM tab2 AS cor0
----
2624
4547
5969

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 34 * - - 47 + col2 col2 FROM tab2 cor0
----
-1540
-1558
-1575

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL >= - 90
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8007
SELECT DISTINCT - COUNT( * ) + - 41 FROM tab1 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-8007
SELECT DISTINCT - COUNT ( * ) + - 41 FROM tab1 AS cor0
----
-44

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 73 / + col2 IS NOT NULL
----

query I rowsort
SELECT - 24 * + col2 AS col2 FROM tab2 AS cor0
----
-1392
-552
-960

query III rowsort
SELECT * FROM tab0 WHERE ( NOT 1 * + 56 < ( NULL ) )
----

query I rowsort
SELECT ALL col2 * - col0 * + 87 AS col0 FROM tab1
----
-425952
-436305
-538356

query I rowsort
SELECT - col1 - 35 AS col0 FROM tab0
----
-116
-36
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8013
SELECT col0 + - CAST( NULL AS SIGNED ) / - + col2 * ( - col1 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8013
SELECT col0 + - CAST ( NULL AS INTEGER ) / - + col2 * ( - col1 ) FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT ALL col0 AS col0, 54 * + col1 AS col1 FROM tab2
----
46
2754
64
4158
75
3618

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8015
SELECT ALL + CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab1 WHERE - col2 IN ( - ( 72 ), col1, + 83, col2 + - col1, + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-8015
SELECT ALL + CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 WHERE - col2 IN ( - ( 72 ), col1, + 83, col2 + - col1, + col2 )
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8016
SELECT * FROM tab0 WHERE + col0 * - col1 - + CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8016
SELECT * FROM tab0 WHERE + col0 * - col1 - + CAST ( NULL AS REAL ) IS NOT NULL
----

query I rowsort
SELECT ALL col2 - - + col2 * + col2 AS col2 FROM tab1 AS cor0
----
3540
4692
9312

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN + - 44 * + col0 + - 35 + 18 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8019
SELECT ALL SUM( + col1 ) AS col0 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-8019
SELECT ALL SUM ( + col1 ) AS col0 FROM tab2
----
195

onlyif mysql # DIV for integer division: 
query I rowsort label-8020
SELECT - 25 DIV col2 AS col1 FROM tab0 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-8020
SELECT - 25 / col2 AS col1 FROM tab0 AS cor0
----
-2
0
0

query I rowsort
SELECT + ( + + 71 ) FROM tab1 AS cor0
----
71
71
71

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT - col0 IS NULL )
----

query I rowsort
SELECT - - 59 FROM tab2 cor0
----
59
59
59

query I rowsort
SELECT + 34 * - col1 + + col1 FROM tab1 cor0
----
-1551
-165
-462

query II rowsort
SELECT ALL 16 * col2 AS col2, - 4 * - - col1 AS col2 FROM tab2 AS cor0
----
368
-204
640
-308
928
-268

onlyif mysql # DIV for integer division: 
query I rowsort label-8026
SELECT DISTINCT col2 DIV + - 57 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-8026
SELECT DISTINCT col2 / + - 57 FROM tab0
----
-1
0

query II rowsort
SELECT DISTINCT 11 * + col2 * - col1 AS col1, + 20 FROM tab1
----
-14784
20
-3245
20
-35156
20

query III rowsort
SELECT ALL * FROM tab0 WHERE - + 68 NOT BETWEEN NULL AND 40
----

query I rowsort
SELECT col2 FROM tab2 WHERE NOT col0 < - - col0 - 89
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8030
SELECT DISTINCT CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8030
SELECT DISTINCT CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT col0 * + 60 AS col2 FROM tab2
----
2760
3840
4500

onlyif mysql # DIV for integer division: 
query I rowsort label-8032
SELECT DISTINCT col0 * + col2 + 69 + - + col1 + + - 25 DIV + col0 col0 FROM tab1
----
4951
5079
6210

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8032
SELECT DISTINCT col0 * + col2 + 69 + - + col1 + + - 25 / + col0 col0 FROM tab1
----
4951
5079
6210

onlyif mysql # aggregate syntax: 
query I rowsort label-8033
SELECT MIN( - + ( - col2 ) ) AS col0 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-8033
SELECT MIN ( - + ( - col2 ) ) AS col0 FROM tab1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8034
SELECT COUNT( - col2 ) * - - COUNT( * ) * - MAX( ALL col1 ) FROM tab2
----
-693

skipif mysql # not compatible
query I rowsort label-8034
SELECT COUNT ( - col2 ) * - - COUNT ( * ) * - MAX ( ALL col1 ) FROM tab2
----
-693

onlyif mysql # aggregate syntax: 
query I rowsort label-8035
SELECT + MAX( ALL col1 ) col0 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8035
SELECT + MAX ( ALL col1 ) col0 FROM tab0 AS cor0
----
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 16 * + col0 col2 FROM tab2 AS cor0
----
1024
1200
736

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab0 cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT ( NULL < + + 75 )
----

query I rowsort
SELECT ALL col0 * ( - col1 ) AS col0 FROM tab2 cor0
----
-2346
-4928
-5025

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2 AS cor0 WHERE NOT + ( + col0 ) / col2 IS NULL
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8040
SELECT + - CAST( NULL AS SIGNED ) + 72, col0 AS col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-8040
SELECT + - CAST ( NULL AS INTEGER ) + 72, col0 AS col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

query I rowsort
SELECT 20 + + - ( - - ( + + col2 ) ) FROM tab1 AS cor0
----
-39
-48
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-8042
SELECT DISTINCT + ( - COUNT( + 45 ) ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8042
SELECT DISTINCT + ( - COUNT ( + 45 ) ) FROM tab2 cor0
----
-3

query I rowsort
SELECT ALL col0 + 38 AS col0 FROM tab2 AS cor0
----
102
113
84

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8044
SELECT * FROM tab2 AS cor0 WHERE NULL = - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8044
SELECT * FROM tab2 AS cor0 WHERE NULL = - CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col0 - col2 col1, - 26 col0 FROM tab1 cor0
----
-144
-26
-147
-26
-159
-26

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col0 BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 84 / - col1 <= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + 95 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 85 * + - col1 AS col2 FROM tab2
----
4335
5695
6545

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8050
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) * COUNT( * ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-8050
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) * COUNT ( * ) FROM tab2
----
9

query I rowsort
SELECT col2 * 22 AS col1 FROM tab1
----
1298
1496
2112

onlyif mysql # aggregate syntax: 
query I rowsort label-8052
SELECT ALL MIN( + - ( - - col0 ) ) AS col1 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-8052
SELECT ALL MIN ( + - ( - - col0 ) ) AS col1 FROM tab1
----
-91

query I rowsort
SELECT + 10 * col0 * + col1 FROM tab2
----
23460
49280
50250

query I rowsort
SELECT + col0 - - + col2 + col2 * + col2 FROM tab1
----
3625
4783
9363

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 74 * - + col2 + + 31 - - - col1 col1 FROM tab1 AS cor0
----
-4340
-5048
-7087

query I rowsort
SELECT - ( + + col1 ) / - + col2 + + 29 / - - col0 AS col1 FROM tab0 cor0 WHERE col1 * - col1 = - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8057
SELECT * FROM tab1 AS cor0 WHERE NOT NULL < col0 + + + col0 + - 5 - - 11 * col0 * + + CAST( + col1 AS SIGNED ) * - - 86
----

skipif mysql # not compatible
query III rowsort label-8057
SELECT * FROM tab1 AS cor0 WHERE NOT NULL < col0 + + + col0 + - 5 - - 11 * col0 * + + CAST ( + col1 AS INTEGER ) * - - 86
----

query I rowsort
SELECT DISTINCT - 96 * - 30 AS col2 FROM tab0
----
2880

onlyif mysql # aggregate syntax: 
query II rowsort label-8059
SELECT - - 64 AS col0, MIN( + + col0 ) + - + COUNT( DISTINCT ( - + col2 ) ) FROM tab1 AS cor0
----
64
48

skipif mysql # not compatible
query II rowsort label-8059
SELECT - - 64 AS col0, MIN ( + + col0 ) + - + COUNT ( DISTINCT ( - + col2 ) ) FROM tab1 AS cor0
----
64
48

query I rowsort
SELECT - col0 * + - 67 FROM tab0 AS cor0 WHERE NOT NULL <= ( NULL )
----

query I rowsort
SELECT DISTINCT + 89 * - col0 * + col2 AS col0 FROM tab1 AS cor0
----
-435744
-446335
-550732

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8062
SELECT DISTINCT + + 63 * - col1 + - CAST( NULL AS DECIMAL ) / - col2 AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8062
SELECT DISTINCT + + 63 * - col1 + - CAST ( NULL AS REAL ) / - col2 AS col0 FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8063
SELECT ALL + - 64 * + MAX( - - 63 ) FROM tab0 AS cor0
----
-4032

skipif mysql # not compatible
query I rowsort label-8063
SELECT ALL + - 64 * + MAX ( - - 63 ) FROM tab0 AS cor0
----
-4032

onlyif mysql # aggregate syntax: 
query I rowsort label-8064
SELECT ( - - SUM( DISTINCT + 70 ) ) AS col1 FROM tab1 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-8064
SELECT ( - - SUM ( DISTINCT + 70 ) ) AS col1 FROM tab1 AS cor0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8065
SELECT 84 * - - COUNT( * ) FROM tab2 cor0
----
252

skipif mysql # not compatible
query I rowsort label-8065
SELECT 84 * - - COUNT ( * ) FROM tab2 cor0
----
252

onlyif mysql # DIV for integer division: 
query I rowsort label-8066
SELECT ALL + - ( col1 ) DIV ( - 68 ) col1 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8066
SELECT ALL + - ( col1 ) / ( - 68 ) col1 FROM tab2 AS cor0
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8067
SELECT col0 DIV - - 55 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8067
SELECT col0 / - - 55 FROM tab1 AS cor0
----
0
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8068
SELECT DISTINCT + col2 DIV - col1 * - col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8068
SELECT DISTINCT + col2 / - col1 * - col1 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8069
SELECT ALL col1 DIV - - col1 AS col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8069
SELECT ALL col1 / - - col1 AS col2 FROM tab2
----
1
1
1

query I rowsort
SELECT ALL - col2 * + + col0 FROM tab1
----
-4896
-5015
-6188

query II rowsort
SELECT ALL 82 * + 94, col0 AS col0 FROM tab1
----
7708
51
7708
85
7708
91

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( - 57, 86 )
----

query II rowsort
SELECT ALL col1 + + - col0 AS col0, + 91 + + col1 FROM tab2
----
-8
158
13
168
5
142

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8074
SELECT DISTINCT * FROM tab0 WHERE - col1 * - col1 * col1 + col1 + + + col1 <> + - CAST( 83 AS SIGNED )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8074
SELECT DISTINCT * FROM tab0 WHERE - col1 * - col1 * col1 + col1 + + + col1 <> + - CAST ( 83 AS INTEGER )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-8075
SELECT + COUNT( * ) * - 6, - 18 FROM tab2
----
-18
-18

skipif mysql # not compatible
query II rowsort label-8075
SELECT + COUNT ( * ) * - 6, - 18 FROM tab2
----
-18
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-8076
SELECT DISTINCT - + col1 + col1 DIV + col0 AS col2 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-8076
SELECT DISTINCT - + col1 + col1 / + col0 AS col2 FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT - 91 FROM tab0 AS cor0 WHERE - ( 96 ) + + 31 BETWEEN NULL AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2, - col2 + 65 col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8079
SELECT ALL - - COUNT( * ) FROM tab0 AS cor0 WHERE - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8079
SELECT ALL - - COUNT ( * ) FROM tab0 AS cor0 WHERE - col2 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8080
SELECT - SUM( ALL + col0 ) + + 68 FROM tab0 AS cor0
----
-131

skipif mysql # not compatible
query I rowsort label-8080
SELECT - SUM ( ALL + col0 ) + + 68 FROM tab0 AS cor0
----
-131

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - 86 * + 30 + - - col1 * + 99 * - 52 + - col2 col0 FROM tab2 cor0
----
-195334
-203231
-293236

onlyif mysql # aggregate syntax: 
query I rowsort label-8082
SELECT ALL - 7 + - COUNT( * ) FROM tab2
----
-10

skipif mysql # not compatible
query I rowsort label-8082
SELECT ALL - 7 + - COUNT ( * ) FROM tab2
----
-10

query II rowsort
SELECT ALL - - col0 + - col0 + - col1, 6 AS col1 FROM tab2 AS cor0
----
-51
6
-67
6
-77
6

query II rowsort
SELECT - 82, col1 * 5 AS col1 FROM tab1 AS cor0
----
-82
235
-82
25
-82
70

onlyif mysql # DIV for integer division: 
query II rowsort label-8085
SELECT DISTINCT - 36 * + col0 + + - col1 AS col1, col1 DIV + col1 FROM tab1 cor0
----
-1850
1
-3065
1
-3323
1

skipif mysql # not compatible
query II rowsort label-8085
SELECT DISTINCT - 36 * + col0 + + - col1 AS col1, col1 / + col1 FROM tab1 cor0
----
-1850
1
-3065
1
-3323
1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 19 IS NULL
----

query I rowsort
SELECT ALL - 2 * + col2 - - col0 + - col1 FROM tab0 AS cor0
----
-102
-160
46

query I rowsort
SELECT - + 26 - - 79 + - 52 AS col0 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - col1 - + 67 FROM tab2 AS cor0
----
-118
-134
-144

onlyif mysql # aggregate syntax: 
query II rowsort label-8090
SELECT - MIN( DISTINCT - ( + col2 ) ), COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE + col2 IS NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-8090
SELECT - MIN ( DISTINCT - ( + col2 ) ), COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE + col2 IS NULL
----
NULL
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8091
SELECT DISTINCT - + CAST( NULL AS SIGNED ) - + - col1 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8091
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) - + - col1 AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8092
SELECT ALL col1 - - + CAST( - 31 AS SIGNED ) + - + col1 AS col2 FROM tab1
----
-31
-31
-31

skipif mysql # not compatible
query I rowsort label-8092
SELECT ALL col1 - - + CAST ( - 31 AS INTEGER ) + - + col1 AS col2 FROM tab1
----
-31
-31
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-8093
SELECT ALL + COUNT( * ) AS col1, COUNT( + col0 ) AS col1 FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-8093
SELECT ALL + COUNT ( * ) AS col1, COUNT ( + col0 ) AS col1 FROM tab1
----
3
3

onlyif mysql # aggregate syntax: 
query II rowsort label-8094
SELECT - 85, SUM( ALL - - col0 ) AS col1 FROM tab0 AS cor0
----
-85
199

skipif mysql # not compatible
query II rowsort label-8094
SELECT - 85, SUM ( ALL - - col0 ) AS col1 FROM tab0 AS cor0
----
-85
199

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8095
SELECT + + CAST( + - col0 AS SIGNED ) * + col1 FROM tab1 AS cor0
----
-425
-4277
-714

skipif mysql # not compatible
query I rowsort label-8095
SELECT + + CAST ( + - col0 AS INTEGER ) * + col1 FROM tab1 AS cor0
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-8096
SELECT COUNT( DISTINCT - + 54 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8096
SELECT COUNT ( DISTINCT - + 54 ) FROM tab2 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, col1 col2 FROM tab2 AS cor0
----
23
51
40
77
58
67

query I rowsort
SELECT + + ( - + col1 ) AS col2 FROM tab1 AS cor0
----
-14
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col1, col2 + + col1 FROM tab2 cor0
----
-23
74
-40
117
-58
125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8100
SELECT DISTINCT + col1 * - + CAST( NULL AS SIGNED ) * + + col1 + + 8 AS col1 FROM tab1 AS cor0 WHERE NOT + col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8100
SELECT DISTINCT + col1 * - + CAST ( NULL AS INTEGER ) * + + col1 + + 8 AS col1 FROM tab1 AS cor0 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT ALL + 64 * + + col2 AS col2 FROM tab0 WHERE NOT NULL = + ( + - col2 )
----

query I rowsort
SELECT + col2 * - 82 AS col1 FROM tab2
----
-1886
-3280
-4756

query II rowsort
SELECT + col0 * - + 53 AS col2, - col0 * + col0 FROM tab0 cor0
----
-4611
-7569
-5141
-9409
-795
-225

onlyif mysql # DIV for integer division: 
query I rowsort label-8104
SELECT ( 71 ) DIV + col2 FROM tab2 AS cor0
----
1
1
3

skipif mysql # not compatible
query I rowsort label-8104
SELECT ( 71 ) / + col2 FROM tab2 AS cor0
----
1
1
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8105
SELECT DISTINCT + COUNT( - col2 ) * + - 19 FROM tab0 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-8105
SELECT DISTINCT + COUNT ( - col2 ) * + - 19 FROM tab0 AS cor0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-8106
SELECT + MIN( DISTINCT + + col0 ) AS col1 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-8106
SELECT + MIN ( DISTINCT + + col0 ) AS col1 FROM tab2 AS cor0
----
46

query I rowsort
SELECT ALL - col2 FROM tab2 AS cor0 WHERE NOT + 12 + col2 BETWEEN + col2 * col1 AND NULL
----
-23
-40
-58

query I rowsort
SELECT + col2 * ( + + 71 ) * - 33 - - col1 FROM tab1 AS cor0
----
-138232
-159277
-224914

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8109
SELECT ALL + + MIN( - 11 ) * ( + - 58 ) + - MIN( ALL + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8109
SELECT ALL + + MIN ( - 11 ) * ( + - 58 ) + - MIN ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 90 IS NOT NULL
----

query II rowsort
SELECT DISTINCT 14, + col0 AS col0 FROM tab1
----
14
51
14
85
14
91

query I rowsort
SELECT col1 + - col0 - col2 AS col2 FROM tab1
----
-112
-133
-139

query I rowsort
SELECT DISTINCT - 68 + + 14 AS col1 FROM tab1 AS cor0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-8114
SELECT DISTINCT - COUNT( 43 ) AS col0 FROM tab2 AS cor0 WHERE NOT col0 + 77 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8114
SELECT DISTINCT - COUNT ( 43 ) AS col0 FROM tab2 AS cor0 WHERE NOT col0 + 77 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8115
SELECT COUNT( * ) AS col0 FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8115
SELECT COUNT ( * ) AS col0 FROM tab0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8116
SELECT ALL CAST( - - 24 AS SIGNED ) + + COUNT( * ) FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-8116
SELECT ALL CAST ( - - 24 AS INTEGER ) + + COUNT ( * ) FROM tab2
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8117
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE + CAST( + - 24 AS SIGNED ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8117
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE + CAST ( + - 24 AS INTEGER ) IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8118
SELECT + - col0 AS col0 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8118
SELECT + - col0 AS col0 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + 55 + - 86 col2 FROM tab2 AS cor0
----
15
33
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8120
SELECT ALL MAX( DISTINCT - + 61 ) FROM tab1 cor0
----
-61

skipif mysql # not compatible
query I rowsort label-8120
SELECT ALL MAX ( DISTINCT - + 61 ) FROM tab1 cor0
----
-61

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 36 * col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8122
SELECT ALL 52 * SUM( DISTINCT + - CAST( NULL AS SIGNED ) ) - + SUM( - col0 ) + MAX( ALL col0 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8122
SELECT ALL 52 * SUM ( DISTINCT + - CAST ( NULL AS INTEGER ) ) - + SUM ( - col0 ) + MAX ( ALL col0 ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL 55 * + col2 AS col1 FROM tab1
----
3245
3740
5280

query I rowsort
SELECT DISTINCT col1 * col2 - + ( 21 ) FROM tab2
----
1152
3059
3865

onlyif mysql # aggregate syntax: 
query I rowsort label-8125
SELECT DISTINCT + COUNT( * ) * 1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8125
SELECT DISTINCT + COUNT ( * ) * 1 FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 34 col2 FROM tab1, tab2 AS cor0
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-8127
SELECT DISTINCT - 8, - COUNT( * ) AS col2 FROM tab0
----
-8
-3

skipif mysql # not compatible
query II rowsort label-8127
SELECT DISTINCT - 8, - COUNT ( * ) AS col2 FROM tab0
----
-8
-3

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT NULL <> + 34 * 75 * - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8129
SELECT ALL * FROM tab2 AS cor0 WHERE ( CAST( NULL AS SIGNED ) ) BETWEEN ( - 36 ) AND + 75
----

skipif mysql # not compatible
query III rowsort label-8129
SELECT ALL * FROM tab2 AS cor0 WHERE ( CAST ( NULL AS INTEGER ) ) BETWEEN ( - 36 ) AND + 75
----

query II rowsort
SELECT 87 AS col1, 74 FROM tab2
----
87
74
87
74
87
74

query I rowsort
SELECT ALL + 47 * col1 FROM tab1 AS cor0 WHERE NOT NULL >= - col2 - + col0 - - col1 + 83
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8132
SELECT DISTINCT 63 * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
189

skipif mysql # not compatible
query I rowsort label-8132
SELECT DISTINCT 63 * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
189

onlyif mysql # aggregate syntax: 
query II rowsort label-8133
SELECT ALL + 61 AS col1, 60 * - SUM( DISTINCT - col2 ) col0 FROM tab1 AS cor0
----
61
13380

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8133
SELECT ALL + 61 AS col1, 60 * - SUM ( DISTINCT - col2 ) col0 FROM tab1 AS cor0
----
61
13380

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8134
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) / + + ( + col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8134
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) / + + ( + col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - + col0 FROM tab0 AS cor0 WHERE NOT + col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8136
SELECT DISTINCT + SUM( ALL + 74 ) FROM tab0 AS cor0
----
222

skipif mysql # not compatible
query I rowsort label-8136
SELECT DISTINCT + SUM ( ALL + 74 ) FROM tab0 AS cor0
----
222

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - 51 + - - 54 - - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + ( + 3 ) FROM tab2 AS cor0
----
-3
-3
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-8139
SELECT DISTINCT + + COUNT( * ) col1, - ( COUNT( * ) ) + 1 AS col1 FROM tab2 AS cor0
----
3
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8139
SELECT DISTINCT + + COUNT ( * ) col1, - ( COUNT ( * ) ) + 1 AS col1 FROM tab2 AS cor0
----
3
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8140
SELECT DISTINCT - + MAX( ALL + - ( + 65 ) ) AS col2 FROM tab1 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-8140
SELECT DISTINCT - + MAX ( ALL + - ( + 65 ) ) AS col2 FROM tab1 AS cor0
----
65

query I rowsort
SELECT - + ( 24 ) * - col1 AS col1 FROM tab2 AS cor0
----
1224
1608
1848

onlyif mysql # aggregate syntax: 
query I rowsort label-8142
SELECT - MIN( + - 37 ) * - COUNT( 13 ) FROM tab2
----
-111

skipif mysql # not compatible
query I rowsort label-8142
SELECT - MIN ( + - 37 ) * - COUNT ( 13 ) FROM tab2
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-8143
SELECT + MAX( DISTINCT col2 ) * - COUNT( col2 ) FROM tab0
----
-297

skipif mysql # not compatible
query I rowsort label-8143
SELECT + MAX ( DISTINCT col2 ) * - COUNT ( col2 ) FROM tab0
----
-297

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 62 col0 FROM tab0
----
62
62
62

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8145
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 * col2 * - CAST( col2 AS SIGNED ) < NULL
----

skipif mysql # not compatible
query III rowsort label-8145
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 * col2 * - CAST ( col2 AS INTEGER ) < NULL
----

query II rowsort
SELECT - + col2 + 42 AS col0, col2 AS col2 FROM tab0 AS cor0
----
-5
47
-57
99
32
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8147
SELECT DISTINCT 46 + COUNT( * ) * 7 AS col1 FROM tab0
----
67

skipif mysql # not compatible
query I rowsort label-8147
SELECT DISTINCT 46 + COUNT ( * ) * 7 AS col1 FROM tab0
----
67

query III rowsort
SELECT * FROM tab0 WHERE ( - col2 ) <> + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 40 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8150
SELECT ALL - col1 DIV col2 + + - col1 AS col1 FROM tab2 AS cor0
----
-53
-68
-78

skipif mysql # not compatible
query I rowsort label-8150
SELECT ALL - col1 / col2 + + - col1 AS col1 FROM tab2 AS cor0
----
-53
-68
-78

query I rowsort
SELECT DISTINCT + col2 + + ( - - col1 ) AS col2 FROM tab1 AS cor0
----
110
115
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8152
SELECT - - COUNT( * ) - - - 6 - + COUNT( * ) col1 FROM tab1 cor0
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8152
SELECT - - COUNT ( * ) - - - 6 - + COUNT ( * ) col1 FROM tab1 cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8153
SELECT DISTINCT + 41 - COUNT( * ) AS col1 FROM tab0 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-8153
SELECT DISTINCT + 41 - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col0, col0 * + col0 AS col1 FROM tab2 AS cor0
----
23
2116
40
4096
58
5625

query II rowsort
SELECT - 32, 93 * 8 * col1 AS col1 FROM tab2 AS cor0
----
-32
37944
-32
49848
-32
57288

query II rowsort
SELECT + col0, + col2 * + col0 FROM tab0 AS cor0
----
15
705
87
870
97
9603

query I rowsort
SELECT - ( + - col2 ) AS col2 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-8158
SELECT DISTINCT - 74 DIV col1 FROM tab1
----
-1
-14
-5

skipif mysql # not compatible
query I rowsort label-8158
SELECT DISTINCT - 74 / col1 FROM tab1
----
-1
-14
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8159
SELECT DISTINCT + MAX( DISTINCT + + col1 ) * - COUNT( * ) FROM tab2
----
-231

skipif mysql # not compatible
query I rowsort label-8159
SELECT DISTINCT + MAX ( DISTINCT + + col1 ) * - COUNT ( * ) FROM tab2
----
-231

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 NOT BETWEEN + 77 / 79 + - col1 + + col2 AND - col0
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 + - 21 < NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 * + col0 / - - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8163
SELECT ALL * FROM tab0 WHERE NOT - CAST( NULL AS SIGNED ) - + col0 = - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8163
SELECT ALL * FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) - + col0 = - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL col2 AS col1 FROM tab1 WHERE NOT - col2 + - 25 - + col0 * + col1 - col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - 26 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-26

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8166
SELECT ALL - col2 / + CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) + + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8166
SELECT ALL - col2 / + CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) + + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 18 AS col0 FROM tab2 AS cor0 WHERE NOT ( NOT ( NULL ) IS NULL )
----
18

query II rowsort
SELECT DISTINCT ( - + col2 ), + col0 AS col2 FROM tab1 AS cor0
----
-59
85
-68
91
-96
51

query II rowsort
SELECT 3, col1 AS col0 FROM tab2
----
3
51
3
67
3
77

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 BETWEEN NULL AND col1
----

query I rowsort
SELECT ALL - - col1 AS col0 FROM tab0 cor0 WHERE NOT NULL BETWEEN NULL AND + 46
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8172
SELECT - + MAX( ALL + col1 ) AS col1 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-8172
SELECT - + MAX ( ALL + col1 ) AS col1 FROM tab0 AS cor0
----
-81

query I rowsort
SELECT - col1 * - 92 + + col0 AS col1 FROM tab0 AS cor0
----
189
2019
7467

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8174
SELECT DISTINCT - - MIN( ALL + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8174
SELECT DISTINCT - - MIN ( ALL + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT + - col1 AS col0, + col2 * + - 3 col2, col1 + - 74 FROM tab0 AS cor0
----
9 values hashing to 2f95f60c37e6675be170cdd0d158e85a

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8176
SELECT - col0 + CAST( col1 AS SIGNED ) AS col2 FROM tab2
----
-8
13
5

skipif mysql # not compatible
query I rowsort label-8176
SELECT - col0 + CAST ( col1 AS INTEGER ) AS col2 FROM tab2
----
-8
13
5

query II rowsort
SELECT + col2, - ( col1 ) AS col1 FROM tab2
----
23
-51
40
-77
58
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-8178
SELECT - ( MIN( DISTINCT + col2 ) ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-8178
SELECT - ( MIN ( DISTINCT + col2 ) ) FROM tab1
----
-59

query I rowsort
SELECT ALL ( - + col1 ) + + 14 FROM tab2
----
-37
-53
-63

query II rowsort
SELECT + 16 AS col0, col1 - + + 18 AS col2 FROM tab1
----
16
-13
16
-4
16
29

query I rowsort
SELECT DISTINCT - col1 + + - 89 FROM tab1 AS cor0
----
-103
-136
-94

query I rowsort
SELECT DISTINCT + 83 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 35 + - - 57 AND + 80 OR NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL = 11
----

query I rowsort
SELECT - - 55 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query II rowsort
SELECT 47 + - col1 AS col2, + col2 + + col0 FROM tab1
----
0
159
33
147
42
144

query I rowsort
SELECT 95 + - 39 * 97 * + 26 FROM tab2
----
-98263
-98263
-98263

onlyif mysql # aggregate syntax: 
query I rowsort label-8187
SELECT ALL + - SUM( + 90 ) + SUM( DISTINCT + 54 ) FROM tab2 AS cor0
----
-216

skipif mysql # not compatible
query I rowsort label-8187
SELECT ALL + - SUM ( + 90 ) + SUM ( DISTINCT + 54 ) FROM tab2 AS cor0
----
-216

onlyif mysql # aggregate syntax: 
query I rowsort label-8188
SELECT + 18 + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-8188
SELECT + 18 + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 col2 FROM tab2 AS cor0 WHERE + col2 >= - col0 * - col0 * + col2
----

query I rowsort
SELECT - ( col2 ) * - 31 AS col1 FROM tab0 AS cor0
----
1457
3069
310

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8191
SELECT + col0 FROM tab0 AS cor0 WHERE NOT NULL >= - col0 + - 9 + - CAST( col0 AS SIGNED ) * 46 - - + 17
----

skipif mysql # not compatible
query I rowsort label-8191
SELECT + col0 FROM tab0 AS cor0 WHERE NOT NULL >= - col0 + - 9 + - CAST ( col0 AS INTEGER ) * 46 - - + 17
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8192
SELECT ALL + MIN( - ( - col1 ) ) AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8192
SELECT ALL + MIN ( - ( - col1 ) ) AS col0 FROM tab0 AS cor0
----
1

query I rowsort
SELECT + ( - - 49 ) * 28 FROM tab2
----
1372
1372
1372

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8194
SELECT - CAST( NULL AS SIGNED ) * + col1 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8194
SELECT - CAST ( NULL AS INTEGER ) * + col1 AS col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8196
SELECT ALL + SUM( - + col1 ) AS col2 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-8196
SELECT ALL + SUM ( - + col1 ) AS col2 FROM tab2
----
-195

query II rowsort
SELECT + col0 AS col2, - 76 AS col2 FROM tab1
----
51
-76
85
-76
91
-76

query I rowsort
SELECT ALL col0 * + 75 AS col1 FROM tab0
----
1125
6525
7275

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 74 + + col1 + + col0 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 45 * col0 col2 FROM tab2
----
2070
2880
3375

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) IN ( 3 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col0 * + + ( - + 79 ) col2 FROM tab1 AS cor0
----
-33575
-337883
-56406

query I rowsort
SELECT + ( - ( + + 52 ) ) + + col0 FROM tab0
----
-37
35
45

query I rowsort
SELECT col2 * + col2 + - col2 * + col2 AS col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8205
SELECT - COUNT( * ) + - + SUM( - col1 ) col2 FROM tab0
----
100

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8205
SELECT - COUNT ( * ) + - + SUM ( - col1 ) col2 FROM tab0
----
100

query I rowsort
SELECT + 34 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

onlyif mysql # aggregate syntax: 
query I rowsort label-8207
SELECT DISTINCT + COUNT( 84 ) + + + 84 AS col0 FROM tab2 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-8207
SELECT DISTINCT + COUNT ( 84 ) + + + 84 AS col0 FROM tab2 AS cor0
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8208
SELECT DISTINCT + CAST( NULL AS SIGNED ) + col0 AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8208
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + col0 AS col0 FROM tab1 cor0
----
NULL

query I rowsort
SELECT ALL + 15 AS col0 FROM tab0 AS cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT DISTINCT 5 + - - col1 AS col0 FROM tab0 AS cor0
----
26
6
86

query I rowsort
SELECT DISTINCT - - 12 AS col1 FROM tab2 AS cor0
----
12

query I rowsort
SELECT ALL - ( 64 ) AS col0 FROM tab1 AS cor0
----
-64
-64
-64

query II rowsort
SELECT ALL + col2, - 46 FROM tab0
----
10
-46
47
-46
99
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-8214
SELECT ALL + col1 DIV + col1 col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8214
SELECT ALL + col1 / + col1 col0 FROM tab2
----
1
1
1

query II rowsort
SELECT + col0 * col2 + - col2 AS col2, - col1 * col1 AS col0 FROM tab0 AS cor0
----
658
-6561
860
-441
9504
-1

query I rowsort
SELECT DISTINCT + col1 * 84 + + - col1 + + - col0 + col2 * - ( + col1 ) * + col2 AS col0 FROM tab2 AS cor0
----
-116873
-219902
-22792

query I rowsort
SELECT + col0 + 34 FROM tab2 cor0
----
109
80
98

query II rowsort
SELECT + 80 AS col0, - 53 AS col2 FROM tab0 AS cor0
----
80
-53
80
-53
80
-53

query I rowsort
SELECT - 31 * - - 71 * 1 FROM tab1 AS cor0
----
-2201
-2201
-2201

onlyif mysql # aggregate syntax: 
query I rowsort label-8220
SELECT 63 * - COUNT( * ) * SUM( + col1 ) AS col0 FROM tab2 AS cor0
----
-36855

skipif mysql # not compatible
query I rowsort label-8220
SELECT 63 * - COUNT ( * ) * SUM ( + col1 ) AS col0 FROM tab2 AS cor0
----
-36855

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8221
SELECT ALL col2 FROM tab2 AS cor0 WHERE ( NOT ( NOT NULL > + CAST( + 84 AS SIGNED ) ) )
----

skipif mysql # not compatible
query I rowsort label-8221
SELECT ALL col2 FROM tab2 AS cor0 WHERE ( NOT ( NOT NULL > + CAST ( + 84 AS INTEGER ) ) )
----

query II rowsort
SELECT 22 AS col2, + ( - - col1 ) FROM tab1
----
22
14
22
47
22
5

onlyif mysql # DIV for integer division: 
query I rowsort label-8223
SELECT DISTINCT - - 74 DIV + + 31 col0 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8223
SELECT DISTINCT - - 74 / + + 31 col0 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
2

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8225
SELECT + MAX( ALL + + col2 ) AS col1 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-8225
SELECT + MAX ( ALL + + col2 ) AS col1 FROM tab2 AS cor0
----
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 AS col2, col2 - + 99 col2 FROM tab2 AS cor0
----
46
-76
64
-59
75
-41

query I rowsort
SELECT + - col1 * + + col1 AS col2 FROM tab0 AS cor0
----
-1
-441
-6561

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8228
SELECT - CAST( - + col0 AS SIGNED ), 2 AS col0 FROM tab0 AS cor0
----
15
2
87
2
97
2

skipif mysql # not compatible
query II rowsort label-8228
SELECT - CAST ( - + col0 AS INTEGER ), 2 AS col0 FROM tab0 AS cor0
----
15
2
87
2
97
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8229
SELECT ALL + CAST( + col0 AS SIGNED ) * + 79 AS col1 FROM tab0 AS cor0
----
1185
6873
7663

skipif mysql # not compatible
query I rowsort label-8229
SELECT ALL + CAST ( + col0 AS INTEGER ) * + 79 AS col1 FROM tab0 AS cor0
----
1185
6873
7663

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8230
SELECT COUNT( * ), - SUM( + col2 ) DIV 62 + - 50 AS col0 FROM tab0 cor0
----
3
-52

skipif mysql # not compatible
query II rowsort label-8230
SELECT COUNT ( * ), - SUM ( + col2 ) / 62 + - 50 AS col0 FROM tab0 cor0
----
3
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8231
SELECT ALL CAST( - col0 AS SIGNED ) AS col1 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-8231
SELECT ALL CAST ( - col0 AS INTEGER ) AS col1 FROM tab1
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8232
SELECT + + 32 - COUNT( * ) + 24 AS col1 FROM tab2 WHERE NOT + col1 IS NOT NULL
----
56

skipif mysql # not compatible
query I rowsort label-8232
SELECT + + 32 - COUNT ( * ) + 24 AS col1 FROM tab2 WHERE NOT + col1 IS NOT NULL
----
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - 27 + - + col2 col0 FROM tab2 cor0
----
1040
1508
598

query I rowsort
SELECT DISTINCT + - 66 * col0 + + + col1 + + - col1 * col2 FROM tab1 AS cor0
----
-4696
-5900
-9155

onlyif mysql # aggregate syntax: 
query I rowsort label-8235
SELECT ALL - COUNT( * ) * - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8235
SELECT ALL - COUNT ( * ) * - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
9

query I rowsort
SELECT + + col2 AS col2 FROM tab0 cor0 WHERE NOT - col1 <> NULL
----

query II rowsort
SELECT - col0 * - 23 + + 57, + col0 FROM tab0 AS cor0
----
2058
87
2288
97
402
15

query I rowsort
SELECT DISTINCT + 86 AS col2 FROM tab1 cor0
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-8239
SELECT DISTINCT - col2 DIV col0 AS col1 FROM tab1 cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-8239
SELECT DISTINCT - col2 / col0 AS col1 FROM tab1 cor0
----
-1
0

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NULL >= NULL
----

query I rowsort
SELECT 69 FROM tab1 WHERE col1 * + 90 <= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + ( - col1 ) NOT BETWEEN + - col2 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8243
SELECT 60 + + + 32 * COUNT( * ) FROM tab2 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-8243
SELECT 60 + + + 32 * COUNT ( * ) FROM tab2 AS cor0
----
156

query I rowsort
SELECT ALL + ( ( + col1 ) ) + - 5 FROM tab1 AS cor0
----
0
42
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8245
SELECT DISTINCT + - 35 + + COUNT( * ) * MIN( DISTINCT col1 ) + - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-8245
SELECT DISTINCT + - 35 + + COUNT ( * ) * MIN ( DISTINCT col1 ) + - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-23

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 43 >= - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 38 * + + ( 25 ) * + 26 * 87 col2 FROM tab0
----
100998300
212741100
21489000

query I rowsort
SELECT ALL + ( col1 ) + ( 28 ) * - + col1 + - 42 AS col2 FROM tab0
----
-2229
-609
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-8249
SELECT MAX( ALL - - col0 ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-8249
SELECT MAX ( ALL - - col0 ) FROM tab2
----
75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8250
SELECT CAST( NULL AS DECIMAL ) * + 31 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8250
SELECT CAST ( NULL AS REAL ) * + 31 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + col0 * - col1 AS col0 FROM tab1 WHERE + + 80 IS NULL
----

query I rowsort
SELECT + - col1 FROM tab0 WHERE NULL >= NULL
----

query I rowsort
SELECT - - col1 * - ( + 68 ) FROM tab2 AS cor0 WHERE NOT 1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8254
SELECT ALL MAX( - + 86 ) FROM tab0
----
-86

skipif mysql # not compatible
query I rowsort label-8254
SELECT ALL MAX ( - + 86 ) FROM tab0
----
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 94 * - 37 - + + ( - - col2 ) col1 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8256
SELECT ( 97 ) * - MIN( DISTINCT + col1 ) - COUNT( * ) AS col0 FROM tab0
----
-100

skipif mysql # not compatible
query I rowsort label-8256
SELECT ( 97 ) * - MIN ( DISTINCT + col1 ) - COUNT ( * ) AS col0 FROM tab0
----
-100

query I rowsort
SELECT ( + ( - - col2 ) ) FROM tab2
----
23
40
58

query I rowsort
SELECT ( - + col2 ) * ( - + 51 ) FROM tab1
----
3009
3468
4896

query I rowsort
SELECT ALL + col1 AS col1 FROM tab2 AS cor0 WHERE NOT + ( + + col0 ) IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8260
SELECT COUNT( * ) * - + SUM( + col2 ) AS col0 FROM tab1 AS cor0
----
-669

skipif mysql # not compatible
query I rowsort label-8260
SELECT COUNT ( * ) * - + SUM ( + col2 ) AS col0 FROM tab1 AS cor0
----
-669

query I rowsort
SELECT DISTINCT 70 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - col2 col2 FROM tab0 AS cor0 WHERE NOT + col2 * col1 BETWEEN NULL AND + 69
----
-98
11
34

query II rowsort
SELECT + col0, - 67 FROM tab1
----
51
-67
85
-67
91
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8264
SELECT DISTINCT - + CAST( NULL AS SIGNED ) FROM tab0 WHERE + 66 > ( + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8264
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) FROM tab0 WHERE + 66 > ( + col0 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col2, 36 FROM tab0
----
1
36
21
36
81
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 32, col0 col2 FROM tab0
----
-32
15
-32
87
-32
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8267
SELECT DISTINCT + + COUNT( * ) FROM tab0 WHERE NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-8267
SELECT DISTINCT + + COUNT ( * ) FROM tab0 WHERE NULL < NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8268
SELECT ( - ( MAX( DISTINCT col0 ) ) ) * - 21 AS col0 FROM tab2
----
1575

skipif mysql # not compatible
query I rowsort label-8268
SELECT ( - ( MAX ( DISTINCT col0 ) ) ) * - 21 AS col0 FROM tab2
----
1575

query II rowsort
SELECT ALL col1 AS col2, - 1 FROM tab2
----
51
-1
67
-1
77
-1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 23 + + col0 >= 40
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8271
SELECT DISTINCT 56 + - MIN( DISTINCT - col2 ) col2 FROM tab1
----
152

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8271
SELECT DISTINCT 56 + - MIN ( DISTINCT - col2 ) col2 FROM tab1
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-8272
SELECT DISTINCT SUM( ALL + + col0 ) AS col1 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-8272
SELECT DISTINCT SUM ( ALL + + col0 ) AS col1 FROM tab1 AS cor0
----
227

query I rowsort
SELECT ALL - - col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( ( - col0 * + 2 + - - col0 + - - col1 IS NULL ) )
----
14
47
5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + 1 / - - ( - col2 ) IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 90 + + - 58 FROM tab0 cor0
----
32
32
32

query I rowsort
SELECT - - col1 * - 19 + + col1 AS col0 FROM tab1 AS cor0
----
-252
-846
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8277
SELECT DISTINCT - ( MIN( - 37 ) ) + 4 FROM tab2
----
41

skipif mysql # not compatible
query I rowsort label-8277
SELECT DISTINCT - ( MIN ( - 37 ) ) + 4 FROM tab2
----
41

query I rowsort
SELECT ALL col2 + - col0 * col1 + + - 17 FROM tab1
----
-383
-4226
-635

query I rowsort
SELECT col0 FROM tab2 cor0 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - col0 - + col1 + col1 AS col1 FROM tab2 AS cor0
----
-46
-64
-75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 72 * - 87 + + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8282
SELECT ( ( + - 87 ) ) - - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-8282
SELECT ( ( + - 87 ) ) - - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-84

query I rowsort
SELECT - + 96 * - 86 - + + col1 * - 31 AS col0 FROM tab2 AS cor0
----
10333
10643
9837

query I rowsort
SELECT ALL + col1 - - - 37 AS col2 FROM tab0
----
-16
-36
44

onlyif mysql # aggregate syntax: 
query II rowsort label-8285
SELECT ALL COUNT( * ) * - - 89 * 2, + COUNT( * ) col2 FROM tab1
----
534
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8285
SELECT ALL COUNT ( * ) * - - 89 * 2, + COUNT ( * ) col2 FROM tab1
----
534
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8286
SELECT DISTINCT ( COUNT( - - col1 ) ) * + + COUNT( * ) AS col2 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-8286
SELECT DISTINCT ( COUNT ( - - col1 ) ) * + + COUNT ( * ) AS col2 FROM tab1
----
9

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8287
SELECT DISTINCT + COUNT( * ) + - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8287
SELECT DISTINCT + COUNT ( * ) + - CAST ( NULL AS REAL ) FROM tab2
----
NULL

query I rowsort
SELECT + + ( - 34 ) FROM tab0 AS cor0
----
-34
-34
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-8289
SELECT - 88, + COUNT( * ) col2 FROM tab2 AS cor0
----
-88
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8289
SELECT - 88, + COUNT ( * ) col2 FROM tab2 AS cor0
----
-88
3

query I rowsort
SELECT ALL 17 + 68 AS col1 FROM tab1
----
85
85
85

query III rowsort
SELECT * FROM tab2 WHERE ( - col2 ) NOT IN ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 - col1 IN ( + col1 * col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col0 BETWEEN - col2 AND ( 88 )
----
15
81
47
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8294
SELECT ALL COUNT( * ) * 40 + COUNT( * ) * COUNT( * ) FROM tab2
----
129

skipif mysql # not compatible
query I rowsort label-8294
SELECT ALL COUNT ( * ) * 40 + COUNT ( * ) * COUNT ( * ) FROM tab2
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-8295
SELECT 38 + MAX( DISTINCT ( + col2 ) ) AS col1 FROM tab2
----
96

skipif mysql # not compatible
query I rowsort label-8295
SELECT 38 + MAX ( DISTINCT ( + col2 ) ) AS col1 FROM tab2
----
96

query I rowsort
SELECT ALL - ( col0 ) + + col1 AS col1 FROM tab0
----
-66
-96
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8297
SELECT DISTINCT - 5 + - COUNT( * ) FROM tab0
----
-8

skipif mysql # not compatible
query I rowsort label-8297
SELECT DISTINCT - 5 + - COUNT ( * ) FROM tab0
----
-8

query I rowsort
SELECT ALL - ( col1 ) FROM tab2 WHERE NOT + 8 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8299
SELECT - 32 + + CAST( NULL AS SIGNED ) * col1 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8299
SELECT - 32 + + CAST ( NULL AS INTEGER ) * col1 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 57 * 35 + 12 AS col0 FROM tab2
----
2007
2007
2007

onlyif mysql # aggregate syntax: 
query I rowsort label-8301
SELECT + MIN( ALL col2 ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-8301
SELECT + MIN ( ALL col2 ) FROM tab0
----
10

query I rowsort
SELECT ( + col1 ) AS col1 FROM tab0 WHERE NOT ( 41 ) >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8303
SELECT * FROM tab2 WHERE NOT ( - 6 / CAST( NULL AS SIGNED ) ) > ( + col0 )
----

skipif mysql # not compatible
query III rowsort label-8303
SELECT * FROM tab2 WHERE NOT ( - 6 / CAST ( NULL AS INTEGER ) ) > ( + col0 )
----

query I rowsort
SELECT ALL 94 FROM tab0 WHERE NOT + col2 <> col2 * + 34
----

query I rowsort
SELECT ALL + 87 - - 4 AS col1 FROM tab2
----
91
91
91

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 + + col2 * col0 IN ( - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE col1 <= ( + 92 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 77 - 96 AS col1 FROM tab2
----
-19
-19
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-8309
SELECT ALL COUNT( * ) FROM tab2 WHERE ( col0 * + 2 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8309
SELECT ALL COUNT ( * ) FROM tab2 WHERE ( col0 * + 2 ) IS NOT NULL
----
3

query I rowsort
SELECT ALL col0 FROM tab2 WHERE 5 / + col0 > 92
----

query I rowsort
SELECT ALL 15 + + col0 FROM tab1
----
100
106
66

query I rowsort
SELECT DISTINCT + ( col2 ) * + col0 AS col1 FROM tab1 WHERE 27 IS NULL
----

query I rowsort
SELECT 92 * + col0 AS col0 FROM tab0 AS cor0
----
1380
8004
8924

onlyif mysql # aggregate syntax: 
query I rowsort label-8314
SELECT ALL - ( + COUNT( * ) ) + COUNT( * ) col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8314
SELECT ALL - ( + COUNT ( * ) ) + COUNT ( * ) col0 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8315
SELECT ALL - col2 DIV col2 + 29 FROM tab2 AS cor0
----
28
28
28

skipif mysql # not compatible
query I rowsort label-8315
SELECT ALL - col2 / col2 + 29 FROM tab2 AS cor0
----
28
28
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8316
SELECT DISTINCT SUM( + 22 ) AS col1 FROM tab2
----
66

skipif mysql # not compatible
query I rowsort label-8316
SELECT DISTINCT SUM ( + 22 ) AS col1 FROM tab2
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8317
SELECT ALL col0 + - CAST( NULL AS SIGNED ) * 34 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8317
SELECT ALL col0 + - CAST ( NULL AS INTEGER ) * 34 FROM tab1 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 IN ( col2 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - 4 - + 29 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 + + 65 FROM tab1 AS cor0
----
112
70
79

onlyif mysql # DIV for integer division: 
query I rowsort label-8321
SELECT - col0 DIV col2 + 41 FROM tab1 AS cor0
----
40
40
41

skipif mysql # not compatible
query I rowsort label-8321
SELECT - col0 / col2 + 41 FROM tab1 AS cor0
----
40
40
41

query I rowsort
SELECT DISTINCT col2 - + col0 AS col2 FROM tab0 AS cor0
----
-77
2
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8323
SELECT + - MAX( + 74 ) + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-8323
SELECT + - MAX ( + 74 ) + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-77

query I rowsort
SELECT DISTINCT + col0 + 36 AS col0 FROM tab0 cor0
----
123
133
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8325
SELECT ALL + - MIN( - col0 ) col2 FROM tab2 cor0
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8325
SELECT ALL + - MIN ( - col0 ) col2 FROM tab2 cor0
----
75

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8326
SELECT ALL 39 / MIN( CAST( NULL AS DECIMAL ) - col1 ) - + 23 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8326
SELECT ALL 39 / MIN ( CAST ( NULL AS REAL ) - col1 ) - + 23 AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL col0 - - ( col0 ) FROM tab1 AS cor0
----
102
170
182

onlyif mysql # aggregate syntax: 
query I rowsort label-8328
SELECT DISTINCT + 91 * + + MAX( DISTINCT 27 ) AS col1 FROM tab1
----
2457

skipif mysql # not compatible
query I rowsort label-8328
SELECT DISTINCT + 91 * + + MAX ( DISTINCT 27 ) AS col1 FROM tab1
----
2457

query I rowsort
SELECT col2 + + col2 AS col2 FROM tab1 WHERE col2 NOT BETWEEN ( NULL ) AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 34 / col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8331
SELECT - MAX( ALL col2 ) * + 8 FROM tab0
----
-792

skipif mysql # not compatible
query I rowsort label-8331
SELECT - MAX ( ALL col2 ) * + 8 FROM tab0
----
-792

query I rowsort
SELECT DISTINCT col0 - + col1 + + col2 FROM tab1
----
112
133
139

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8333
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 / - ( - col0 ) BETWEEN CAST( NULL AS SIGNED ) AND col0
----

skipif mysql # not compatible
query III rowsort label-8333
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 / - ( - col0 ) BETWEEN CAST ( NULL AS INTEGER ) AND col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8334
SELECT DISTINCT - col0 DIV + 80 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8334
SELECT DISTINCT - col0 / + 80 FROM tab2
----
0

query I rowsort
SELECT + 72 * 50 AS col1 FROM tab2
----
3600
3600
3600

query I rowsort
SELECT ALL col1 * + 68 * - 16 FROM tab0
----
-1088
-22848
-88128

onlyif mysql # aggregate syntax: 
query I rowsort label-8337
SELECT + 90 - MIN( 57 ) * + COUNT( * ) FROM tab2
----
-81

skipif mysql # not compatible
query I rowsort label-8337
SELECT + 90 - MIN ( 57 ) * + COUNT ( * ) FROM tab2
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-8338
SELECT + 4 - + 33 DIV + col2 FROM tab1
----
4
4
4

skipif mysql # not compatible
query I rowsort label-8338
SELECT + 4 - + 33 / + col2 FROM tab1
----
4
4
4

query I rowsort
SELECT DISTINCT + ( - 70 ) * - 39 AS col2 FROM tab2
----
2730

query III rowsort
SELECT * FROM tab1 WHERE - col0 + + ( col2 + col2 ) = ( + col2 )
----

query I rowsort
SELECT col1 - + col2 * - 53 AS col0 FROM tab2
----
1270
2197
3141

query I rowsort
SELECT - 97 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8343
SELECT ALL COUNT( * ) * - MIN( - col0 ) * 71 FROM tab1
----
19383

skipif mysql # not compatible
query I rowsort label-8343
SELECT ALL COUNT ( * ) * - MIN ( - col0 ) * 71 FROM tab1
----
19383

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8344
SELECT * FROM tab2 WHERE NOT col2 * - ( - col2 * + CAST( col0 AS SIGNED ) ) + + col1 * - 86 NOT BETWEEN NULL AND ( 89 )
----

skipif mysql # not compatible
query III rowsort label-8344
SELECT * FROM tab2 WHERE NOT col2 * - ( - col2 * + CAST ( col0 AS INTEGER ) ) + + col1 * - 86 NOT BETWEEN NULL AND ( 89 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8345
SELECT ALL 58 * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8345
SELECT ALL 58 * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE col2 * 43 IS NOT NULL
----
-14
-47
-5

query II rowsort
SELECT 22, - col0 AS col2 FROM tab2
----
22
-46
22
-64
22
-75

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN - 81 - + col2 AND + 42 * 25 + 82 * 49
----

query I rowsort
SELECT ( - 60 ) * 21 FROM tab0
----
-1260
-1260
-1260

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL NOT BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8351
SELECT - + COUNT( * ) * - COUNT( * ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
81

skipif mysql # not compatible
query I rowsort label-8351
SELECT - + COUNT ( * ) * - COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
81

query I rowsort
SELECT DISTINCT 71 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
71

onlyif mysql # DIV for integer division: 
query II rowsort label-8353
SELECT ALL col1 AS col0, col1 DIV + col0 AS col1 FROM tab0 AS cor0
----
1
0
21
0
81
5

skipif mysql # not compatible
query II rowsort label-8353
SELECT ALL col1 AS col0, col1 / + col0 AS col1 FROM tab0 AS cor0
----
1
0
21
0
81
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8354
SELECT ALL + MAX( ALL - col2 ) AS col0 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-8354
SELECT ALL + MAX ( ALL - col2 ) AS col0 FROM tab1 AS cor0
----
-59

query II rowsort
SELECT ALL + col2, - 19 AS col1 FROM tab1 AS cor0
----
59
-19
68
-19
96
-19

query I rowsort
SELECT ALL - col0 + + col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IN ( - col2 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + ( - 50 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 0 * col1 FROM tab2 AS cor0 WHERE NOT NULL IN ( ( col0 ) )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( 63 ) < ( - 28 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8360
SELECT DISTINCT + SUM( DISTINCT - col2 ) AS col2 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-8360
SELECT DISTINCT + SUM ( DISTINCT - col2 ) AS col2 FROM tab0 AS cor0
----
-156

query I rowsort
SELECT DISTINCT - 16 * - - col2 + + col0 + - 61 FROM tab2 AS cor0
----
-383
-637
-914

query I rowsort
SELECT DISTINCT col1 * 66 AS col0 FROM tab1 AS cor0
----
3102
330
924

query II rowsort
SELECT - 30 AS col2, col1 AS col0 FROM tab2 cor0
----
-30
51
-30
67
-30
77

query I rowsort
SELECT + - 62 * + - col0 AS col2 FROM tab1 AS cor0
----
3162
5270
5642

query I rowsort
SELECT - ( - 88 ) FROM tab0 cor0
----
88
88
88

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 + + col0 / col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8367
SELECT ALL - MIN( 79 ) FROM tab0
----
-79

skipif mysql # not compatible
query I rowsort label-8367
SELECT ALL - MIN ( 79 ) FROM tab0
----
-79

query I rowsort
SELECT - 36 + 39 FROM tab0 WHERE NOT + col1 <> ( + 66 )
----

query I rowsort
SELECT DISTINCT 20 * + col0 + col2 FROM tab0 WHERE NOT 15 - + - col1 NOT BETWEEN - col0 AND col2 * 57
----
1750
2039
347

onlyif mysql # aggregate syntax: 
query I rowsort label-8370
SELECT ALL - COUNT( 25 ) AS col2 FROM tab2 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8370
SELECT ALL - COUNT ( 25 ) AS col2 FROM tab2 WHERE NULL IS NULL
----
-3

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col0 ) > col2 / col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8372
SELECT CAST( NULL AS SIGNED ) / - 10 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8372
SELECT CAST ( NULL AS INTEGER ) / - 10 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8373
SELECT ALL col1 * - + CAST( + - col0 AS SIGNED ) AS col1 FROM tab2
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-8373
SELECT ALL col1 * - + CAST ( + - col0 AS INTEGER ) AS col1 FROM tab2
----
2346
4928
5025

query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 < + + col0 * 86
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - ( + - 59 ) AS col2 FROM tab1 cor0
----
59
59
59

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( ( + - col0 * 30 ) < + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8377
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE ( NULL BETWEEN NULL AND - 83 )
----
0

skipif mysql # not compatible
query I rowsort label-8377
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL BETWEEN NULL AND - 83 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8378
SELECT COUNT( * ) + - - 85 AS col1 FROM tab2 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-8378
SELECT COUNT ( * ) + - - 85 AS col1 FROM tab2 AS cor0
----
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col2, + col2 + + col2 AS col1 FROM tab0
----
-15
94
-87
20
-97
198

query I rowsort
SELECT ALL col1 * - col2 * + 66 AS col2 FROM tab1
----
-19470
-210936
-88704

onlyif mysql # aggregate syntax: 
query I rowsort label-8381
SELECT ALL + ( + + COUNT( * ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8381
SELECT ALL + ( + + COUNT ( * ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT ALL - ( + col2 ) + + col0 AS col1 FROM tab0 AS cor0
----
-2
-32
77

query I rowsort
SELECT DISTINCT col0 * col1 FROM tab2 cor0 WHERE NOT ( NULL ) IS NULL AND ( NULL ) = - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 53 - - - 93 col2 FROM tab0 AS cor0
----
-40
-40
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - 60 col0 FROM tab1 AS cor0
----
-9
25
31

query III rowsort
SELECT * FROM tab0 WHERE NOT 97 NOT IN ( + - 45 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8387
SELECT COUNT( * ) * - COUNT( DISTINCT + col2 ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-8387
SELECT COUNT ( * ) * - COUNT ( DISTINCT + col2 ) FROM tab1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8388
SELECT DISTINCT + MIN( 31 ) AS col2 FROM tab2
----
31

skipif mysql # not compatible
query I rowsort label-8388
SELECT DISTINCT + MIN ( 31 ) AS col2 FROM tab2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8389
SELECT + - MIN( ALL + - col1 ) AS col2 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-8389
SELECT + - MIN ( ALL + - col1 ) AS col2 FROM tab2 AS cor0
----
77

query I rowsort
SELECT ALL - + col1 * + + 94 AS col0 FROM tab0 AS cor0
----
-1974
-7614
-94

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) >= col0
----

query I rowsort
SELECT ALL - - 18 * - 0 * + 43 AS col1 FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT DISTINCT + col0 * - col1, col2 FROM tab0
----
-1215
47
-1827
10
-97
99

onlyif mysql # DIV for integer division: 
query II rowsort label-8394
SELECT ALL 6 DIV + col0, col1 FROM tab1
----
0
14
0
47
0
5

skipif mysql # not compatible
query II rowsort label-8394
SELECT ALL 6 / + col0, col1 FROM tab1
----
0
14
0
47
0
5

onlyif mysql # aggregate syntax: 
query II rowsort label-8395
SELECT + MAX( ALL 51 ) col0, COUNT( * ) FROM tab0
----
51
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8395
SELECT + MAX ( ALL 51 ) col0, COUNT ( * ) FROM tab0
----
51
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8396
SELECT - CAST( NULL AS SIGNED ) * - ( - - col1 ) * + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8396
SELECT - CAST ( NULL AS INTEGER ) * - ( - - col1 ) * + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8397
SELECT + COUNT( - - col0 ) AS col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8397
SELECT + COUNT ( - - col0 ) AS col2 FROM tab1 cor0
----
3

query I rowsort
SELECT ALL - col2 * + col1 + col0 + - 53 FROM tab1 AS cor0
----
-1346
-263
-3158

onlyif mysql # aggregate syntax: 
query I rowsort label-8399
SELECT DISTINCT + MIN( + - col1 ) FROM tab0 cor0 WHERE NOT ( ( ( col0 ) IS NOT NULL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8399
SELECT DISTINCT + MIN ( + - col1 ) FROM tab0 cor0 WHERE NOT ( ( ( col0 ) IS NOT NULL ) )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + - 66 + + 37 col0 FROM tab2 cor0
----
-52
-69
-87

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + 35 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 69 * + 59 + + 66 AS col1 FROM tab1
----
4137
4137
4137

query I rowsort
SELECT ALL - + 83 / 46 * - + col1 FROM tab2 WHERE + col0 * - + 47 BETWEEN NULL AND NULL
----

query II rowsort
SELECT DISTINCT - col1 + + col0 * + + col2, + 41 AS col1 FROM tab1
----
4882
41
5010
41
6141
41

query I rowsort
SELECT ALL col1 * + ( + 4 ) + + col1 FROM tab0
----
105
405
5

query I rowsort
SELECT DISTINCT + 14 FROM tab2 AS cor0 WHERE - col1 * - col0 * 1 - + - col2 IS NOT NULL
----
14

query I rowsort
SELECT DISTINCT 27 - + + col0 * - - 9 * + + col1 * - col0 AS col0 FROM tab1 AS cor0
----
325152
327753
3502890

query II rowsort
SELECT ALL + col2, + col2 + col0 AS col0 FROM tab0 cor0
----
10
97
47
62
99
196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 78 - - - col2 col0, col0 FROM tab2
----
20
75
38
64
55
46

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( ( NULL ) < ( NULL ) )
----

query I rowsort
SELECT - 45 + + col1 * + 2 * - + col0 AS col1 FROM tab0
----
-239
-2475
-3699

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab1 WHERE ( + 0 ) NOT BETWEEN col1 + + 13 AND NULL
----
-51
-85
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-8413
SELECT DISTINCT + col2 + + col2 * + col2 DIV col2 + 66 - + 9 + col1 * 85 FROM tab1 AS cor0
----
1439
4188
600

skipif mysql # not compatible
query I rowsort label-8413
SELECT DISTINCT + col2 + + col2 * + col2 / col2 + 66 - + 9 + col1 * 85 FROM tab1 AS cor0
----
1439
4188
600

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 81 * col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8415
SELECT DISTINCT - ( 72 ) - - + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8415
SELECT DISTINCT - ( 72 ) - - + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + - ( + 47 ) + + col2 AS col1 FROM tab0 AS cor0 WHERE ( - 44 ) IS NULL
----

query II rowsort
SELECT DISTINCT - col1 * - col0, + col2 FROM tab1 cor0
----
425
59
4277
68
714
96

query I rowsort
SELECT 34 * - + 33 FROM tab0
----
-1122
-1122
-1122

query II rowsort
SELECT DISTINCT - col0 AS col2, col0 AS col1 FROM tab2
----
-46
46
-64
64
-75
75

query II rowsort
SELECT col0 * + col1 * - col2 AS col0, - 7 FROM tab0
----
-18270
-7
-57105
-7
-9603
-7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8421
SELECT + col1, col1 * ( + CAST( + ( + 82 ) AS SIGNED ) ) FROM tab2
----
51
4182
67
5494
77
6314

skipif mysql # not compatible
query II rowsort label-8421
SELECT + col1, col1 * ( + CAST ( + ( + 82 ) AS INTEGER ) ) FROM tab2
----
51
4182
67
5494
77
6314

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8422
SELECT ( + - CAST( NULL AS DECIMAL ) ) * + 94 AS col0, - col1 AS col2 FROM tab2
----
NULL
-51
NULL
-67
NULL
-77

skipif mysql # not compatible
query II rowsort label-8422
SELECT ( + - CAST ( NULL AS REAL ) ) * + 94 AS col0, - col1 AS col2 FROM tab2
----
NULL
-51
NULL
-67
NULL
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8423
SELECT 83 * + MAX( DISTINCT + - 46 ) AS col0 FROM tab1
----
-3818

skipif mysql # not compatible
query I rowsort label-8423
SELECT 83 * + MAX ( DISTINCT + - 46 ) AS col0 FROM tab1
----
-3818

query I rowsort
SELECT col1 * + col0 * + ( + col0 ) FROM tab2
----
107916
315392
376875

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <= ( - + col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8426
SELECT - + COUNT( * ) AS col0, 60 AS col1 FROM tab1 AS cor0
----
-3
60

skipif mysql # not compatible
query II rowsort label-8426
SELECT - + COUNT ( * ) AS col0, 60 AS col1 FROM tab1 AS cor0
----
-3
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + col2 col0 FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8428
SELECT + ( + 1 ) * + col2 DIV + - 81 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8428
SELECT + ( + 1 ) * + col2 / + - 81 FROM tab1
----
-1
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8429
SELECT DISTINCT + 15 DIV - SUM( - col2 ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8429
SELECT DISTINCT + 15 / - SUM ( - col2 ) AS col0 FROM tab0
----
0

query I rowsort
SELECT ALL col2 + - + ( - col2 ) FROM tab1
----
118
136
192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8431
SELECT ALL + + COUNT( * ) * MIN( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8431
SELECT ALL + + COUNT ( * ) * MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab2 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8432
SELECT ALL col2 DIV + 82 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8432
SELECT ALL col2 / + 82 FROM tab1 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8433
SELECT COUNT( * ) * - - SUM( + + col1 ) AS col0 FROM tab1 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-8433
SELECT COUNT ( * ) * - - SUM ( + + col1 ) AS col0 FROM tab1 AS cor0
----
198

query I rowsort
SELECT - col1 * - + 35 FROM tab0 AS cor0
----
2835
35
735

query I rowsort
SELECT - col0 * + 90 * col0 AS col1 FROM tab1
----
-234090
-650250
-745290

onlyif mysql # aggregate syntax: 
query I rowsort label-8436
SELECT - COUNT( ALL 20 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8436
SELECT - COUNT ( ALL 20 ) FROM tab1
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-8437
SELECT + col1 DIV + 6 FROM tab2
----
11
12
8

skipif mysql # not compatible
query I rowsort label-8437
SELECT + col1 / + 6 FROM tab2
----
11
12
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8438
SELECT 98 * ( - COUNT( * ) ) + - 56 AS col1 FROM tab1
----
-350

skipif mysql # not compatible
query I rowsort label-8438
SELECT 98 * ( - COUNT ( * ) ) + - 56 AS col1 FROM tab1
----
-350

query I rowsort
SELECT ALL ( + 24 ) * + 6 + - - col2 FROM tab0
----
154
191
243

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8440
SELECT ALL + col1 + + col2 + - col2 * + CAST( NULL AS DECIMAL ) FROM tab2 WHERE NULL <= ( 83 )
----

skipif mysql # not compatible
query I rowsort label-8440
SELECT ALL + col1 + + col2 + - col2 * + CAST ( NULL AS REAL ) FROM tab2 WHERE NULL <= ( 83 )
----

query I rowsort
SELECT DISTINCT col2 + + - col0 FROM tab2
----
-17
-23
-24

query I rowsort
SELECT ALL - + col2 AS col1 FROM tab1 WHERE NULL IS NULL
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8443
SELECT CAST( - 27 AS SIGNED ) * - col1 + col1 * + col0 FROM tab1 AS cor0
----
1092
5546
560

skipif mysql # not compatible
query I rowsort label-8443
SELECT CAST ( - 27 AS INTEGER ) * - col1 + col1 * + col0 FROM tab1 AS cor0
----
1092
5546
560

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8444
SELECT - 4 * - + CAST( NULL AS DECIMAL ) / - 29 FROM tab2 AS cor0 WHERE 5 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8444
SELECT - 4 * - + CAST ( NULL AS REAL ) / - 29 FROM tab2 AS cor0 WHERE 5 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8445
SELECT ALL COUNT( DISTINCT + - ( + ( + + 49 ) ) ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-8445
SELECT ALL COUNT ( DISTINCT + - ( + ( + + 49 ) ) ) FROM tab1
----
1

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT - 41 IS NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query I rowsort
SELECT + 74 - 77 * - + col1 FROM tab0
----
151
1691
6311

onlyif mysql # aggregate syntax: 
query I rowsort label-8448
SELECT DISTINCT - COUNT( DISTINCT - - col0 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8448
SELECT DISTINCT - COUNT ( DISTINCT - - col0 ) FROM tab2 AS cor0
----
-3

query II rowsort
SELECT col1, 1 + 26 FROM tab1 AS cor0
----
14
27
47
27
5
27

query I rowsort
SELECT + ( + + 98 ) FROM tab1 AS cor0
----
98
98
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8451
SELECT + COUNT( * ) FROM tab0 WHERE NOT + col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8451
SELECT + COUNT ( * ) FROM tab0 WHERE NOT + col1 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8452
SELECT - SUM( + - col2 ) col2 FROM tab1
----
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8452
SELECT - SUM ( + - col2 ) col2 FROM tab1
----
223

query I rowsort
SELECT ALL - ( + 72 ) FROM tab2 WHERE NOT - 9 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8454
SELECT DISTINCT ( + - COUNT( * ) ) FROM tab1 WHERE NOT + + ( 21 ) NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8454
SELECT DISTINCT ( + - COUNT ( * ) ) FROM tab1 WHERE NOT + + ( 21 ) NOT BETWEEN NULL AND NULL
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-8455
SELECT + col1 DIV col2 col1, col2 FROM tab2 AS cor0
----
1
40
1
58
2
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8455
SELECT + col1 / col2 col1, col2 FROM tab2 AS cor0
----
1
40
1
58
2
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8456
SELECT ALL col0 FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) + + 13 + + col1 * + col1 * col2 IS NOT NULL
----
51
85
91

skipif mysql # not compatible
query I rowsort label-8456
SELECT ALL col0 FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) + + 13 + + col1 * + col1 * col2 IS NOT NULL
----
51
85
91

query I rowsort
SELECT - - 56 * col2 + + 9 FROM tab2 AS cor0
----
1297
2249
3257

onlyif mysql # aggregate syntax: 
query I rowsort label-8458
SELECT - COUNT( * ) FROM tab0 cor0 WHERE col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8458
SELECT - COUNT ( * ) FROM tab0 cor0 WHERE col1 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8459
SELECT DISTINCT - 33 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8459
SELECT DISTINCT - 33 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8460
SELECT ALL COUNT( * ) FROM tab1 AS cor0 WHERE - 90 * col2 NOT IN ( col1 * 88 )
----
3

skipif mysql # not compatible
query I rowsort label-8460
SELECT ALL COUNT ( * ) FROM tab1 AS cor0 WHERE - 90 * col2 NOT IN ( col1 * 88 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8461
SELECT ALL COUNT( - col1 ) + + 2 FROM tab2 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-8461
SELECT ALL COUNT ( - col1 ) + + 2 FROM tab2 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8462
SELECT DISTINCT + - MIN( - col1 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
81

skipif mysql # not compatible
query I rowsort label-8462
SELECT DISTINCT + - MIN ( - col1 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8463
SELECT DISTINCT * FROM tab0 WHERE NOT - CAST( NULL AS SIGNED ) BETWEEN CAST( - 36 AS SIGNED ) AND ( - col1 )
----

skipif mysql # not compatible
query III rowsort label-8463
SELECT DISTINCT * FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) BETWEEN CAST ( - 36 AS INTEGER ) AND ( - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8464
SELECT + col0 DIV 83 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8464
SELECT + col0 / 83 FROM tab2
----
0
0
0

query II rowsort
SELECT ALL - col0 AS col2, 57 FROM tab2
----
-46
57
-64
57
-75
57

query II rowsort
SELECT col1 AS col2, col0 + - col0 AS col0 FROM tab2
----
51
0
67
0
77
0

query I rowsort
SELECT ALL - col2 * + 1 AS col2 FROM tab1
----
-59
-68
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-8468
SELECT + 80 DIV + - col0 AS col2 FROM tab0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-8468
SELECT + 80 / + - col0 AS col2 FROM tab0
----
-5
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8469
SELECT DISTINCT MIN( ALL 85 ) + COUNT( * ) DIV - 77 + 81 AS col1 FROM tab2
----
166

skipif mysql # not compatible
query I rowsort label-8469
SELECT DISTINCT MIN ( ALL 85 ) + COUNT ( * ) / - 77 + 81 AS col1 FROM tab2
----
166

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8470
SELECT - + col0 AS col1 FROM tab1 AS cor0 WHERE - 84 + col2 NOT IN ( - + col2 * - CAST( - col2 AS DECIMAL ) / - ( + col2 ) + + - 81, 38 * + col1, + + CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-8470
SELECT - + col0 AS col1 FROM tab1 AS cor0 WHERE - 84 + col2 NOT IN ( - + col2 * - CAST ( - col2 AS REAL ) / - ( + col2 ) + + - 81, 38 * + col1, + + CAST ( NULL AS REAL ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8471
SELECT ALL - - 16 - - col0 * ( col2 ) DIV + col0 + ( col0 ) + col2 FROM tab1 AS cor0
----
219
243
259

skipif mysql # not compatible
query I rowsort label-8471
SELECT ALL - - 16 - - col0 * ( col2 ) / + col0 + ( col0 ) + col2 FROM tab1 AS cor0
----
219
243
259

query I rowsort
SELECT + col0 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 - + col1 AS col1 FROM tab0 AS cor0
----
-66
66
96

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( NOT NULL <> + 25 )
----

query I rowsort
SELECT ALL - - 15 FROM tab0 WHERE NOT + 88 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 >= + col2 * + + 21 + - col0 * - col2 + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query III rowsort label-8477
SELECT ALL col1 DIV + 77, - 13 AS col2, + col2 + - col2 AS col1 FROM tab1
----
9 values hashing to de213b4d1982b9a047044095b89466d5

skipif mysql # not compatible
query III rowsort label-8477
SELECT ALL col1 / + 77, - 13 AS col2, + col2 + - col2 AS col1 FROM tab1
----
9 values hashing to de213b4d1982b9a047044095b89466d5

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 < col1 / 41
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ( 41 ) AS col1, ( 2 ) FROM tab0 AS cor0
----
41
2
41
2
41
2

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 * + col0 = col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 = col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8482
SELECT DISTINCT 15 * + COUNT( * ) col0 FROM tab0 AS cor0
----
45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8482
SELECT DISTINCT 15 * + COUNT ( * ) col0 FROM tab0 AS cor0
----
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( - col1 ) col0, 34 col1 FROM tab1 AS cor0
----
-14
34
-47
34
-5
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8484
SELECT DISTINCT + MAX( 85 ) AS col1 FROM tab0
----
85

skipif mysql # not compatible
query I rowsort label-8484
SELECT DISTINCT + MAX ( 85 ) AS col1 FROM tab0
----
85

query I rowsort
SELECT ( - 86 ) AS col2 FROM tab0 WHERE NOT - col1 NOT BETWEEN col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8486
SELECT col2, col1 DIV col2 FROM tab1
----
59
0
68
0
96
0

skipif mysql # not compatible
query II rowsort label-8486
SELECT col2, col1 / col2 FROM tab1
----
59
0
68
0
96
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8487
SELECT DISTINCT - col1 / + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8487
SELECT DISTINCT - col1 / + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT ALL + 24 * 38 * + + 59 FROM tab0
----
53808
53808
53808

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8489
SELECT ALL + - COUNT( * ) * 42 - + AVG ( ( + col2 ) ) FROM tab2 WHERE + 92 IN ( - 3 + - - CAST( NULL AS SIGNED ) * - 29 / - 60, + col0, ( + 29 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8489
SELECT ALL + - COUNT ( * ) * 42 - + AVG ( ( + col2 ) ) FROM tab2 WHERE + 92 IN ( - 3 + - - CAST ( NULL AS INTEGER ) * - 29 / - 60, + col0, ( + 29 ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8490
SELECT + 70 + - 40 + - CAST( - + col2 AS SIGNED ) DIV - 65 * - + 68 AS col2 FROM tab2 AS cor0
----
30
30
30

skipif mysql # not compatible
query I rowsort label-8490
SELECT + 70 + - 40 + - CAST ( - + col2 AS INTEGER ) / - 65 * - + 68 AS col2 FROM tab2 AS cor0
----
30
30
30

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab0 WHERE NULL IS NULL
----
-10
-47
-99

query I rowsort
SELECT DISTINCT + col0 * - - 56 + + col0 + + 43 FROM tab0
----
5002
5572
898

query I rowsort
SELECT ALL + 37 * - col1 + + - col0 AS col2 FROM tab2 AS cor0
----
-1933
-2554
-2913

query I rowsort
SELECT ALL - ( - 85 ) FROM tab1 AS cor0
----
85
85
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + 10 + + - col0 + - + 84 * + - col0 + - + col2 col2 FROM tab1 cor0
----
4277
7046
7955

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8496
SELECT - - CAST( + 43 AS SIGNED ) AS col2 FROM tab1 cor0
----
43
43
43

skipif mysql # not compatible
query I rowsort label-8496
SELECT - - CAST ( + 43 AS INTEGER ) AS col2 FROM tab1 cor0
----
43
43
43

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 49 <> + col2 - + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT - ( + - col2 ) AS col2, col2 FROM tab2 cor0
----
23
23
40
40
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8499
SELECT + ( - - SUM( ALL - 57 ) ) - + + 87 - + COUNT( * ) FROM tab0 AS cor0
----
-261

skipif mysql # not compatible
query I rowsort label-8499
SELECT + ( - - SUM ( ALL - 57 ) ) - + + 87 - + COUNT ( * ) FROM tab0 AS cor0
----
-261

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8500
SELECT ALL col1 - + - col1, + 14 - - col0 + 58 + - 21 * + CAST( NULL AS DECIMAL ) * ( + + col0 ) / + col0 + + ( 41 ) col2 FROM tab2 AS cor0
----
102
NULL
134
NULL
154
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8500
SELECT ALL col1 - + - col1, + 14 - - col0 + 58 + - 21 * + CAST ( NULL AS REAL ) * ( + + col0 ) / + col0 + + ( 41 ) col2 FROM tab2 AS cor0
----
102
NULL
134
NULL
154
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8501
SELECT - SUM( + - col1 ) AS col1 FROM tab0 WHERE col1 - col0 BETWEEN NULL AND + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-8501
SELECT - SUM ( + - col1 ) AS col1 FROM tab0 WHERE col1 - col0 BETWEEN NULL AND + 51
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8502
SELECT + col1 + + col2 DIV - col1, - col1 * + - col1 AS col2 FROM tab0
----
-98
1
21
441
81
6561

skipif mysql # not compatible
query II rowsort label-8502
SELECT + col1 + + col2 / - col1, - col1 * + - col1 AS col2 FROM tab0
----
-98
1
21
441
81
6561

onlyif mysql # aggregate syntax: 
query I rowsort label-8503
SELECT ALL + ( - - MAX( DISTINCT col1 ) ) AS col2 FROM tab2 WHERE NOT - col0 IS NULL
----
77

skipif mysql # not compatible
query I rowsort label-8503
SELECT ALL + ( - - MAX ( DISTINCT col1 ) ) AS col2 FROM tab2 WHERE NOT - col0 IS NULL
----
77

query I rowsort
SELECT ALL - col0 + + + ( + + 97 ) AS col2 FROM tab1
----
12
46
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8505
SELECT ALL - 91 * ( + COUNT( * ) ) AS col1 FROM tab2
----
-273

skipif mysql # not compatible
query I rowsort label-8505
SELECT ALL - 91 * ( + COUNT ( * ) ) AS col1 FROM tab2
----
-273

onlyif mysql # DIV for integer division: 
query I rowsort label-8506
SELECT - col0 DIV - col2 + col0 AS col1 FROM tab0
----
15
95
97

skipif mysql # not compatible
query I rowsort label-8506
SELECT - col0 / - col2 + col0 AS col1 FROM tab0
----
15
95
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8507
SELECT + COUNT( * ) * - COUNT( + - ( - col0 ) ) AS col2 FROM tab0 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8507
SELECT + COUNT ( * ) * - COUNT ( + - ( - col0 ) ) AS col2 FROM tab0 cor0
----
-9

query I rowsort
SELECT ALL + ( + + col2 ) - - - col2 * col1 FROM tab0 AS cor0
----
-200
-3760
0

query I rowsort
SELECT - ( + + col1 ) AS col2 FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT ALL + col2 * - 57 AS col1 FROM tab2
----
-1311
-2280
-3306

query I rowsort
SELECT DISTINCT 30 * - - 90 * - col0 FROM tab1
----
-137700
-229500
-245700

onlyif mysql # aggregate syntax: 
query II rowsort label-8512
SELECT DISTINCT + COUNT( * ) * + ( + + SUM( col2 ) ) AS col2, COUNT( DISTINCT + + col0 ) FROM tab2 AS cor0
----
363
3

skipif mysql # not compatible
query II rowsort label-8512
SELECT DISTINCT + COUNT ( * ) * + ( + + SUM ( col2 ) ) AS col2, COUNT ( DISTINCT + + col0 ) FROM tab2 AS cor0
----
363
3

query II rowsort
SELECT ALL - col0 AS col0, col1 AS col1 FROM tab1 AS cor0
----
-51
14
-85
5
-91
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8514
SELECT DISTINCT - + COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8514
SELECT DISTINCT - + COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col0, col2 AS col2 FROM tab0 AS cor0
----
1
99
21
10
81
47

query I rowsort
SELECT col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8517
SELECT + + col2, CAST( + + 2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
23
2
40
2
58
2

skipif mysql # not compatible
query II rowsort label-8517
SELECT + + col2, CAST ( + + 2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
23
2
40
2
58
2

query I rowsort
SELECT DISTINCT + 29 * ( + 98 ) FROM tab1 AS cor0
----
2842

query II rowsort
SELECT ALL - col1, col1 AS col2 FROM tab1 cor0 WHERE ( - col2 ) NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ALL - col1 + - 74 FROM tab2 WHERE 68 IS NOT NULL
----
-125
-141
-151

query I rowsort
SELECT ALL - col1 * + - col1 * + 61 FROM tab0
----
26901
400221
61

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 * + 43 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8523
SELECT - CAST( NULL AS SIGNED ) * col0 * + + col0 * + - col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8523
SELECT - CAST ( NULL AS INTEGER ) * col0 * + + col0 * + - col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8524
SELECT ALL ( + - MAX( DISTINCT + col1 ) ) AS col0 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-8524
SELECT ALL ( + - MAX ( DISTINCT + col1 ) ) AS col0 FROM tab2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8525
SELECT DISTINCT COUNT( * ) - COUNT( * ) * 84 FROM tab2 cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8525
SELECT DISTINCT COUNT ( * ) - COUNT ( * ) * 84 FROM tab2 cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-8526
SELECT ALL - 34 * + col1 AS col1, + 14 DIV 83 AS col1 FROM tab0 AS cor0
----
-2754
0
-34
0
-714
0

skipif mysql # not compatible
query II rowsort label-8526
SELECT ALL - 34 * + col1 AS col1, + 14 / 83 AS col1 FROM tab0 AS cor0
----
-2754
0
-34
0
-714
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8527
SELECT ALL MAX( DISTINCT - + ( ( + - 96 ) ) ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-8527
SELECT ALL MAX ( DISTINCT - + ( ( + - 96 ) ) ) FROM tab1
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8528
SELECT ALL * FROM tab1 WHERE CAST( - + col1 AS SIGNED ) BETWEEN - - col0 * + col2 AND NULL OR NOT NULL IN ( - + ( col0 ) + + 41, - ( + col2 ) )
----

skipif mysql # not compatible
query III rowsort label-8528
SELECT ALL * FROM tab1 WHERE CAST ( - + col1 AS INTEGER ) BETWEEN - - col0 * + col2 AND NULL OR NOT NULL IN ( - + ( col0 ) + + 41, - ( + col2 ) )
----

query I rowsort
SELECT DISTINCT 22 + - col0 * col1 - 15 FROM tab0 AS cor0
----
-1208
-1820
-90

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 + + col0 * - 81 * - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8531
SELECT DISTINCT MIN( DISTINCT 2 ) col2 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND ( NULL )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8531
SELECT DISTINCT MIN ( DISTINCT 2 ) col2 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND ( NULL )
----
NULL

query I rowsort
SELECT + 76 AS col0 FROM tab1 AS cor0 WHERE NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8533
SELECT DISTINCT 82 - + + COUNT( * ) col2 FROM tab1 AS cor0
----
79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8533
SELECT DISTINCT 82 - + + COUNT ( * ) col2 FROM tab1 AS cor0
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8534
SELECT CAST( + + ( + col1 ) AS SIGNED ) FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-8534
SELECT CAST ( + + ( + col1 ) AS INTEGER ) FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8535
SELECT ALL SUM( + + 50 ) FROM tab2
----
150

skipif mysql # not compatible
query I rowsort label-8535
SELECT ALL SUM ( + + 50 ) FROM tab2
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-8536
SELECT ALL - 43 + COUNT( * ) FROM tab1
----
-40

skipif mysql # not compatible
query I rowsort label-8536
SELECT ALL - 43 + COUNT ( * ) FROM tab1
----
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 39 + + + ( - col1 ) col2 FROM tab2
----
-12
-28
-38

query I rowsort
SELECT ALL - 36 * col2 * 10 + col0 FROM tab1 AS cor0
----
-21155
-24389
-34509

query I rowsort
SELECT ALL 88 + - + col1 + + 59 AS col0 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
100
133
142

query II rowsort
SELECT DISTINCT + ( + col1 ) AS col2, + col1 * - col0 FROM tab0 cor0
----
1
-97
21
-1827
81
-1215

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 * 34 / col0 * + col1 NOT BETWEEN + 84 * + 32 AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8542
SELECT - MIN( - col2 ) AS col0 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-8542
SELECT - MIN ( - col2 ) AS col0 FROM tab1
----
96

query I rowsort
SELECT ALL - col1 * + - col0 FROM tab1
----
425
4277
714

query I rowsort
SELECT ALL + ( + 72 ) FROM tab0 cor0
----
72
72
72

query I rowsort
SELECT DISTINCT 93 * col1 AS col2 FROM tab1 cor0
----
1302
4371
465

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT + 68 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8547
SELECT + - col0 / - CAST( NULL AS SIGNED ) * col2, + col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-8547
SELECT + - col0 / - CAST ( NULL AS INTEGER ) * col2, + col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8548
SELECT DISTINCT - MIN( + col1 ) AS col2 FROM tab1 AS cor0 WHERE + 23 + + ( - col1 ) + + col0 NOT IN ( - + col0 + col0 + - CAST( NULL AS SIGNED ), col1 + + 53 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8548
SELECT DISTINCT - MIN ( + col1 ) AS col2 FROM tab1 AS cor0 WHERE + 23 + + ( - col1 ) + + col0 NOT IN ( - + col0 + col0 + - CAST ( NULL AS INTEGER ), col1 + + 53 )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 81 / + + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL ( + + 11 ) * + col0 AS col2 FROM tab1
----
1001
561
935

query I rowsort
SELECT - col1 * 84 * + - 33 * - 41 AS col1 FROM tab1
----
-1591128
-5341644
-568260

query II rowsort
SELECT - 21 AS col0, + col1 - - 63 FROM tab0
----
-21
144
-21
64
-21
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8553
SELECT MIN( + CAST( - col2 AS SIGNED ) ) AS col1 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-8553
SELECT MIN ( + CAST ( - col2 AS INTEGER ) ) AS col1 FROM tab0
----
-99

query I rowsort
SELECT DISTINCT col1 * - 51 FROM tab1
----
-2397
-255
-714

query I rowsort
SELECT + + col2 AS col0 FROM tab2 WHERE NOT - col1 * - 4 * - col2 * + 51 * 58 + 18 * 77 IS NULL
----
23
40
58

query I rowsort
SELECT ALL col1 + - + col0 AS col2 FROM tab2
----
-8
13
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8557
SELECT ALL + 58 DIV + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-8557
SELECT ALL + 58 / + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
19

query II rowsort
SELECT 85 + col0 AS col1, - 98 FROM tab1
----
136
-98
170
-98
176
-98

query I rowsort
SELECT ALL 30 + 41 - - col0 * col1 FROM tab0
----
1286
168
1898

query I rowsort
SELECT ALL + + col0 FROM tab2 WHERE ( NOT ( NULL ) NOT BETWEEN + col0 + + + col2 AND NULL )
----

query II rowsort
SELECT DISTINCT - col2 AS col2, col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-59
59
-68
68
-96
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8562
SELECT - 71 - + ( - + 53 ) DIV COUNT( * ) AS col0 FROM tab2 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-8562
SELECT - 71 - + ( - + 53 ) / COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-54

query II rowsort
SELECT + col2 - col0 AS col1, + col0 FROM tab2 AS cor0
----
-17
75
-23
46
-24
64

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8564
SELECT * FROM tab1 AS cor0 WHERE col2 * col0 * + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8564
SELECT * FROM tab1 AS cor0 WHERE col2 * col0 * + CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT + + 94 + + ( 63 ) AS col1 FROM tab0 AS cor0
----
157
157
157

onlyif mysql # DIV for integer division: 
query II rowsort label-8566
SELECT DISTINCT - col1 * col0 - 40 AS col0, - col1 DIV + 9 - + 84 FROM tab0
----
-1255
-93
-137
-84
-1867
-86

skipif mysql # not compatible
query II rowsort label-8566
SELECT DISTINCT - col1 * col0 - 40 AS col0, - col1 / + 9 - + 84 FROM tab0
----
-1255
-93
-137
-84
-1867
-86

query III rowsort
SELECT * FROM tab2 WHERE - + 37 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8568
SELECT + ( - + COUNT( * ) ) * - + CAST( + COUNT( * ) AS SIGNED ) + + COUNT( * ) AS col0 FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-8568
SELECT + ( - + COUNT ( * ) ) * - + CAST ( + COUNT ( * ) AS INTEGER ) + + COUNT ( * ) AS col0 FROM tab0
----
12

query I rowsort
SELECT ALL - ( ( + 44 ) ) * col1 + - 8 FROM tab2
----
-2252
-2956
-3396

query II rowsort
SELECT DISTINCT col1 AS col1, - 36 FROM tab2
----
51
-36
67
-36
77
-36

query I rowsort
SELECT ALL + col2 AS col2 FROM tab1 WHERE NOT col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 < NULL
----

query II rowsort
SELECT 3 AS col1, + col1 * - 32 AS col1 FROM tab0 AS cor0
----
3
-2592
3
-32
3
-672

query II rowsort
SELECT ALL col0, - col0 - - ( 63 ) FROM tab1 AS cor0
----
51
12
85
-22
91
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-8575
SELECT + COUNT( ALL ( 53 ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8575
SELECT + COUNT ( ALL ( 53 ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8576
SELECT + COUNT( * ) * - 97 FROM tab1 AS cor0
----
-291

skipif mysql # not compatible
query I rowsort label-8576
SELECT + COUNT ( * ) * - 97 FROM tab1 AS cor0
----
-291

query I rowsort
SELECT DISTINCT ( + col2 ) * col2 AS col0 FROM tab0 AS cor0
----
100
2209
9801

query I rowsort
SELECT ( - col1 ) * - ( col1 ) FROM tab2 AS cor0
----
2601
4489
5929

query I rowsort
SELECT ALL - col2 * + col2 * col0 FROM tab2 AS cor0
----
-102400
-24334
-252300

onlyif mysql # DIV for integer division: 
query I rowsort label-8580
SELECT - 42 DIV - col2 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8580
SELECT - 42 / - col2 AS col2 FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT - col1 * col1 + col1 * + 99 AS col2, ( + - col2 ) AS col2 FROM tab1 AS cor0
----
1190
-96
2444
-68
470
-59

query I rowsort
SELECT DISTINCT 56 * - - 83 + 88 AS col2 FROM tab1 AS cor0
----
4736

query I rowsort
SELECT + col2 * - + 56 + - 5 + - col0 + - + 11 * ( col0 ) FROM tab2
----
-1845
-3013
-4153

onlyif mysql # aggregate syntax: 
query I rowsort label-8584
SELECT DISTINCT - MAX( DISTINCT - + 61 ) FROM tab1
----
61

skipif mysql # not compatible
query I rowsort label-8584
SELECT DISTINCT - MAX ( DISTINCT - + 61 ) FROM tab1
----
61

query I rowsort
SELECT ALL 43 + - + col0 FROM tab0
----
-44
-54
28

query I rowsort
SELECT ALL col1 / col0 FROM tab2 WHERE ( col1 - - 89 > NULL )
----

query I rowsort
SELECT DISTINCT + col0 * 29 AS col0 FROM tab1 AS cor0
----
1479
2465
2639

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8588
SELECT DISTINCT - CAST( NULL AS SIGNED ) / - - 5 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8588
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / - - 5 AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + col1 * + - 87 * - + 19 + - col2 AS col1 FROM tab0 AS cor0
----
133846
1554
34703

query I rowsort
SELECT col0 * - + 26 AS col1 FROM tab1 AS cor0 WHERE + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8591
SELECT ALL 74 + - MAX( - col1 ) AS col0 FROM tab1
----
79

skipif mysql # not compatible
query I rowsort label-8591
SELECT ALL 74 + - MAX ( - col1 ) AS col0 FROM tab1
----
79

query I rowsort
SELECT DISTINCT col1 + + + 92 AS col0 FROM tab1
----
106
139
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8593
SELECT DISTINCT + 0 - - 65 + - 2 + + - COUNT( + + 3 ) AS col2 FROM tab2 cor0
----
60

skipif mysql # not compatible
query I rowsort label-8593
SELECT DISTINCT + 0 - - 65 + - 2 + + - COUNT ( + + 3 ) AS col2 FROM tab2 cor0
----
60

query I rowsort
SELECT + + 55 FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND col0 + 83
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 80 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 14 + 7 * col1 AS col1 FROM tab1 AS cor0
----
112
343
49

query I rowsort
SELECT ALL - 7 - - col1 AS col1 FROM tab2 AS cor0
----
44
60
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8598
SELECT + CAST( COUNT( * ) AS SIGNED ) col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8598
SELECT + CAST ( COUNT ( * ) AS INTEGER ) col0 FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( + col2 ) * col2 * + + 72 + ( col1 ) * 49 IS NOT NULL
----

query I rowsort
SELECT col1 * col1 * + - col0 AS col0 FROM tab2
----
-119646
-336675
-379456

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN NULL AND - - 95
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 14 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - col1 * + 24, col0 FROM tab2
----
-1224
46
-1608
75
-1848
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8604
SELECT DISTINCT CAST( NULL AS SIGNED ) * - + SUM( ALL + col0 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8604
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - + SUM ( ALL + col0 ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8605
SELECT COUNT( * ) DIV - 40 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8605
SELECT COUNT ( * ) / - 40 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-8606
SELECT DISTINCT - 47 DIV + ( - col1 ), 40 AS col0 FROM tab1
----
1
40
3
40
9
40

skipif mysql # not compatible
query II rowsort label-8606
SELECT DISTINCT - 47 / + ( - col1 ), 40 AS col0 FROM tab1
----
1
40
3
40
9
40

query II rowsort
SELECT DISTINCT - col1 AS col1, col2 AS col2 FROM tab0
----
-1
99
-21
10
-81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8608
SELECT SUM( + 6 ) AS col2 FROM ( tab0 cor0 CROSS JOIN tab1 AS cor1 )
----
54

skipif mysql # not compatible
query I rowsort label-8608
SELECT SUM ( + 6 ) AS col2 FROM ( tab0 cor0 CROSS JOIN tab1 AS cor1 )
----
54

query I rowsort
SELECT + + 15 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

onlyif mysql # aggregate syntax: 
query I rowsort label-8610
SELECT DISTINCT - 26 * + COUNT( * ) FROM tab2 cor0
----
-78

skipif mysql # not compatible
query I rowsort label-8610
SELECT DISTINCT - 26 * + COUNT ( * ) FROM tab2 cor0
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8611
SELECT - MAX( ALL + col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN + col1 + - - col2 AND col0 * - - col0 - - col0 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8611
SELECT - MAX ( ALL + col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN + col1 + - - col2 AND col0 * - - col0 - - col0 - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - + col2 FROM tab0 AS cor0 WHERE NOT 14 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - 35 AS col2 FROM tab0 cor0
----
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + + col0 ) col1 FROM tab1 cor0
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8615
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 - - + CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8615
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 - - + 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 col2 * + - col0 col1 FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT - ( 84 ) FROM tab2
----
-84
-84
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-8618
SELECT DISTINCT + + 24 * + 70 - - COUNT( - col1 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
1683

skipif mysql # not compatible
query I rowsort label-8618
SELECT DISTINCT + + 24 * + 70 - - COUNT ( - col1 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
1683

onlyif mysql # aggregate syntax: 
query I rowsort label-8619
SELECT SUM( ALL 83 ) AS col0 FROM tab2
----
249

skipif mysql # not compatible
query I rowsort label-8619
SELECT SUM ( ALL 83 ) AS col0 FROM tab2
----
249

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8620
SELECT DISTINCT col1 * + col1 + - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8620
SELECT DISTINCT col1 * + col1 + - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT col1 + - + col0 + + - col0 FROM tab0
----
-153
-193
51

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 78 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 48 - - - 88 - + col2 * + col2 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL + - col0 + col2 + + + col1 FROM tab2 AS cor0
----
28
50
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8625
SELECT - col2 + + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8625
SELECT - col2 + + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 + - + 68 + + + col2 / col2 * + - col2 NOT BETWEEN - 71 AND + col2
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8627
SELECT ALL - 50 * + MAX( DISTINCT + 70 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-3500

skipif mysql # not compatible
query I rowsort label-8627
SELECT ALL - 50 * + MAX ( DISTINCT + 70 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-3500

onlyif mysql # aggregate syntax: 
query I rowsort label-8628
SELECT + COUNT( * ) - + - 62 FROM tab2 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-8628
SELECT + COUNT ( * ) - + - 62 FROM tab2 AS cor0
----
65

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8629
SELECT DISTINCT + CAST( NULL AS DECIMAL ) - + COUNT( ALL + - col0 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8629
SELECT DISTINCT + CAST ( NULL AS REAL ) - + COUNT ( ALL + - col0 ) FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8630
SELECT ALL + col2 + col0 DIV - col1 FROM tab0 AS cor0
----
2
47
6

skipif mysql # not compatible
query I rowsort label-8630
SELECT ALL + col2 + col0 / - col1 FROM tab0 AS cor0
----
2
47
6

onlyif mysql # aggregate syntax: 
query II rowsort label-8631
SELECT - + 66 AS col2, + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-66
3

skipif mysql # not compatible
query II rowsort label-8631
SELECT - + 66 AS col2, + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-66
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 36 col0 FROM tab2 AS cor0
----
-36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - + 66 ) col2 FROM tab1 AS cor0
----
-66
-66
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-8634
SELECT ALL ( - - 15 ) * COUNT( * ) FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-8634
SELECT ALL ( - - 15 ) * COUNT ( * ) FROM tab0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8635
SELECT SUM( DISTINCT 5 ) FROM tab1, tab0 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-8635
SELECT SUM ( DISTINCT 5 ) FROM tab1, tab0 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8636
SELECT + ( - 36 ) + + MAX( ALL - col2 ) * - COUNT( * ) FROM tab0 WHERE NOT NULL < 29
----
NULL

skipif mysql # not compatible
query I rowsort label-8636
SELECT + ( - 36 ) + + MAX ( ALL - col2 ) * - COUNT ( * ) FROM tab0 WHERE NOT NULL < 29
----
NULL

query II rowsort
SELECT ALL 96, - col0 AS col2 FROM tab2
----
96
-46
96
-64
96
-75

query I rowsort
SELECT DISTINCT col0 * + - 73 AS col1 FROM tab1
----
-3723
-6205
-6643

onlyif mysql # aggregate syntax: 
query I rowsort label-8639
SELECT DISTINCT - 64 * + + MAX( + + 62 ) * - COUNT( DISTINCT + ( + - col2 ) ) AS col2 FROM tab0
----
11904

skipif mysql # not compatible
query I rowsort label-8639
SELECT DISTINCT - 64 * + + MAX ( + + 62 ) * - COUNT ( DISTINCT + ( + - col2 ) ) AS col2 FROM tab0
----
11904

onlyif mysql # DIV for integer division: 
query I rowsort label-8640
SELECT ALL - 31 DIV + col1 AS col2 FROM tab0
----
-1
-31
0

skipif mysql # not compatible
query I rowsort label-8640
SELECT ALL - 31 / + col1 AS col2 FROM tab0
----
-1
-31
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8641
SELECT ALL - col2 DIV col0 * - - col1 AS col1 FROM tab0
----
-1
-243
0

skipif mysql # not compatible
query I rowsort label-8641
SELECT ALL - col2 / col0 * - - col1 AS col1 FROM tab0
----
-1
-243
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8642
SELECT - col1 / - - col1 * col2 * - + col2 * + CAST( NULL AS SIGNED ) col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8642
SELECT - col1 / - - col1 * col2 * - + col2 * + CAST ( NULL AS INTEGER ) col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8643
SELECT ALL ( 29 ) DIV + - 7 FROM tab2 cor0
----
-4
-4
-4

skipif mysql # not compatible
query I rowsort label-8643
SELECT ALL ( 29 ) / + - 7 FROM tab2 cor0
----
-4
-4
-4

query II rowsort
SELECT col0 AS col2, - col2 FROM tab0 AS cor0
----
15
-47
87
-10
97
-99

query I rowsort
SELECT + 85 * - ( - col0 ) - - col2 AS col2 FROM tab2 cor0
----
3933
5480
6433

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col2 col2, col2 + - col0 AS col0 FROM tab0 AS cor0
----
10
-77
47
32
99
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8647
SELECT - - MIN( ALL col2 ) AS col0 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-8647
SELECT - - MIN ( ALL col2 ) AS col0 FROM tab0 AS cor0
----
10

query II rowsort
SELECT - col0 * - + col1 AS col0, 64 AS col0 FROM tab0 WHERE NOT - col0 IS NULL
----
1215
64
1827
64
97
64

query I rowsort
SELECT + 78 AS col1 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT 10 + ( col0 ) FROM tab0 AS cor0
----
107
25
97

query I rowsort
SELECT ALL + col1 + - 47 FROM tab2 AS cor0
----
20
30
4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8652
SELECT - CAST( NULL AS SIGNED ) + - + col1, - col2 col2 FROM tab2 AS cor0
----
NULL
-23
NULL
-40
NULL
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8652
SELECT - CAST ( NULL AS INTEGER ) + - + col1, - col2 col2 FROM tab2 AS cor0
----
NULL
-23
NULL
-40
NULL
-58

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) < ( NULL )
----

query II rowsort
SELECT + col0 + - - col2 AS col2, - col2 FROM tab2 AS cor0
----
104
-40
133
-58
69
-23

query I rowsort
SELECT - 50 * + 20 AS col0 FROM tab2
----
-1000
-1000
-1000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8656
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0, CAST( - MIN( + - col0 ) AS DECIMAL ) FROM tab2 WHERE NOT NULL IS NULL
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8656
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, CAST ( - MIN ( + - col0 ) AS REAL ) FROM tab2 WHERE NOT NULL IS NULL
----
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE - col2 + + col1 NOT BETWEEN NULL AND + col0
----
15
81
47

query III rowsort
SELECT * FROM tab0 WHERE col0 * - + 53 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col1 * - col2 + 51 AS col0 FROM tab2
----
-1122
-3029
-3835

query I rowsort
SELECT ALL col2 * - - col1 * - 90 + + - col0 + + - 5 FROM tab1
----
-121016
-26640
-287736

query I rowsort
SELECT DISTINCT 62 + col0 + col0 FROM tab1
----
164
232
244

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - + col2 = + + col1 AND NOT 32 IS NOT NULL
----

query I rowsort
SELECT + + 76 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8664
SELECT DISTINCT + MIN( + 95 ) + 27 * + MAX( + col2 ) / + + CAST( NULL AS DECIMAL ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8664
SELECT DISTINCT + MIN ( + 95 ) + 27 * + MAX ( + col2 ) / + + CAST ( NULL AS REAL ) AS col0 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8665
SELECT 41 DIV - 85 AS col0, - 93 + - - col0 AS col1 FROM tab1 WHERE 65 + - col0 + + col0 + - col0 NOT IN ( + col2, col1 )
----
0
-2
0
-8

skipif mysql # not compatible
query II rowsort label-8665
SELECT 41 / - 85 AS col0, - 93 + - - col0 AS col1 FROM tab1 WHERE 65 + - col0 + + col0 + - col0 NOT IN ( + col2, col1 )
----
0
-2
0
-8

query I rowsort
SELECT DISTINCT col0 * + 73 AS col0 FROM tab1
----
3723
6205
6643

onlyif mysql # aggregate syntax: 
query I rowsort label-8667
SELECT - MAX( DISTINCT - 7 ) AS col0 FROM tab2 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-8667
SELECT - MAX ( DISTINCT - 7 ) AS col0 FROM tab2 AS cor0
----
7

query I rowsort
SELECT - col0 * col1 * + 18 FROM tab0 AS cor0
----
-1746
-21870
-32886

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - col2 ) / + col2 <= col1 + - 0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 3 * - col1 AS col2, + col2 * + 13 col2 FROM tab2 AS cor0
----
-153
299
-201
754
-231
520

onlyif mysql # DIV for integer division: 
query I rowsort label-8671
SELECT ALL 53 DIV 64 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8671
SELECT ALL 53 / 64 AS col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8672
SELECT ALL - 3 * + - 99 * - - COUNT( * ) FROM tab0
----
891

skipif mysql # not compatible
query I rowsort label-8672
SELECT ALL - 3 * + - 99 * - - COUNT ( * ) FROM tab0
----
891

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 + col2 - - - 61 + + - col1 * col0 + - + 0 + 15 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 59 * - 63 AS col0 FROM tab0
----
3717

query III rowsort
SELECT ALL * FROM tab2 WHERE - + col0 * - - col0 * - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8676
SELECT MAX( ALL + CAST( NULL AS SIGNED ) ) col0 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8676
SELECT MAX ( ALL + CAST ( NULL AS INTEGER ) ) col0 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8677
SELECT + col0 DIV - 98 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8677
SELECT + col0 / - 98 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL > - 66
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL > ( + + col0 * + - 7 * + + col1 )
----

query I rowsort
SELECT col2 + - 51 FROM tab0
----
-4
-41
48

query II rowsort
SELECT + 72 AS col1, - col1 FROM tab0
----
72
-1
72
-21
72
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-8682
SELECT 95 AS col0, COUNT( * ) FROM tab1
----
95
3

skipif mysql # not compatible
query II rowsort label-8682
SELECT 95 AS col0, COUNT ( * ) FROM tab1
----
95
3

query I rowsort
SELECT ALL - 37 + + col0 + - - 74 AS col1 FROM tab2 AS cor0
----
101
112
83

query I rowsort
SELECT DISTINCT ( col0 ) * col1 * - 78 FROM tab0 AS cor0
----
-142506
-7566
-94770

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8685
SELECT + col1 AS col0, - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-8685
SELECT + col1 AS col0, - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
1
NULL
21
NULL
81
NULL

query II rowsort
SELECT DISTINCT + 45 AS col1, col2 * col1 FROM tab2 AS cor0
----
45
1173
45
3080
45
3886

onlyif mysql # aggregate syntax: 
query II rowsort label-8687
SELECT ALL + - MAX( ALL - col2 ) AS col1, - COUNT( * ) FROM tab2 AS cor0 WHERE NULL <> - col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-8687
SELECT ALL + - MAX ( ALL - col2 ) AS col1, - COUNT ( * ) FROM tab2 AS cor0 WHERE NULL <> - col1
----
NULL
0

query II rowsort
SELECT ALL + 14 AS col2, col0 * - col0 + 85 + + - col1 * ( - 51 ) AS col0 FROM tab0 AS cor0
----
14
-6413
14
-9273
14
3991

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8689
SELECT ALL + 45 DIV - MAX( DISTINCT - - col1 ) * - 62 + + COUNT( * ) + - SUM( + - col1 ) AS col2 FROM tab0 AS cor0
----
106

skipif mysql # not compatible
query I rowsort label-8689
SELECT ALL + 45 / - MAX ( DISTINCT - - col1 ) * - 62 + + COUNT ( * ) + - SUM ( + - col1 ) AS col2 FROM tab0 AS cor0
----
106

query I rowsort
SELECT - 58 - + 73 + col0 * - col0 AS col1 FROM tab0
----
-356
-7700
-9540

query I rowsort
SELECT - col1 + + 40 + + col1 * - col2 + 76 - 40 FROM tab0
----
-155
-24
-3812

onlyif mysql # aggregate syntax: 
query II rowsort label-8692
SELECT ALL - 44 AS col0, + MAX( DISTINCT col2 ) FROM tab2 WHERE NOT NULL BETWEEN NULL AND + + col2 * + col1
----
-44
NULL

skipif mysql # not compatible
query II rowsort label-8692
SELECT ALL - 44 AS col0, + MAX ( DISTINCT col2 ) FROM tab2 WHERE NOT NULL BETWEEN NULL AND + + col2 * + col1
----
-44
NULL

query I rowsort
SELECT + ( + 59 ) + - col1 + + 32 FROM tab1
----
44
77
86

query I rowsort
SELECT - col2 + - + col1 FROM tab1
----
-110
-115
-64

query I rowsort
SELECT + 12 * - col1 * + 13 + - + 45 AS col0 FROM tab2
----
-10497
-12057
-8001

query I rowsort
SELECT ALL 45 + + col1 FROM tab0
----
126
46
66

onlyif mysql # aggregate syntax: 
query II rowsort label-8697
SELECT DISTINCT SUM( DISTINCT + col1 ) AS col1, 7 AS col0 FROM tab0
----
103
7

skipif mysql # not compatible
query II rowsort label-8697
SELECT DISTINCT SUM ( DISTINCT + col1 ) AS col1, 7 AS col0 FROM tab0
----
103
7

query I rowsort
SELECT + ( - 60 ) + + col2 + + + col1 FROM tab0 AS cor0
----
-29
40
68

query I rowsort
SELECT + 47 AS col2 FROM tab1 cor0
----
47
47
47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8700
SELECT * FROM tab2 AS cor0 WHERE + 65 * - - 86 > + col1 + + CAST( NULL AS SIGNED ) + + col1
----

skipif mysql # not compatible
query III rowsort label-8700
SELECT * FROM tab2 AS cor0 WHERE + 65 * - - 86 > + col1 + + CAST ( NULL AS INTEGER ) + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8701
SELECT DISTINCT - ( - MIN( col0 ) ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-8701
SELECT DISTINCT - ( - MIN ( col0 ) ) FROM tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-8702
SELECT MIN( col2 ), + COUNT( 36 ) col0 FROM tab1 AS cor0 WHERE NOT NULL > NULL
----
NULL
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8702
SELECT MIN ( col2 ), + COUNT ( 36 ) col0 FROM tab1 AS cor0 WHERE NOT NULL > NULL
----
NULL
0

query I rowsort
SELECT + ( - ( - col1 ) ) AS col1 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT DISTINCT ( + 15 ) * - 36 FROM tab2 AS cor0
----
-540

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 >= 26
----
15
81
47
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8706
SELECT + SUM( - 9 ) FROM tab1
----
-27

skipif mysql # not compatible
query I rowsort label-8706
SELECT + SUM ( - 9 ) FROM tab1
----
-27

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND - 58
----

query II rowsort
SELECT col0 AS col0, + col2 AS col1 FROM tab2 cor0 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8709
SELECT COUNT( ALL col2 ) AS col2, + ( 98 ) FROM tab2 AS cor0
----
3
98

skipif mysql # not compatible
query II rowsort label-8709
SELECT COUNT ( ALL col2 ) AS col2, + ( 98 ) FROM tab2 AS cor0
----
3
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8710
SELECT ALL + COUNT( DISTINCT col0 ) + - COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8710
SELECT ALL + COUNT ( DISTINCT col0 ) + - COUNT ( * ) FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8711
SELECT SUM( DISTINCT - 9 ) AS col0 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8711
SELECT SUM ( DISTINCT - 9 ) AS col0 FROM tab0 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8712
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8712
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8713
SELECT DISTINCT - ( - 5 ) DIV MIN( + ( - 33 ) ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8713
SELECT DISTINCT - ( - 5 ) / MIN ( + ( - 33 ) ) AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL 37 * - + 54 FROM tab2
----
-1998
-1998
-1998

query I rowsort
SELECT - 53 + + 14 FROM tab0 AS cor0
----
-39
-39
-39

query I rowsort
SELECT - col0 + + - col1 AS col2 FROM tab1 AS cor0
----
-138
-65
-90

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 61 = - - col1 + - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8718
SELECT ALL col0 * + CAST( - + 53 AS SIGNED ) + + col1 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8718
SELECT ALL col0 * + CAST ( - + 53 AS INTEGER ) + + col1 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 72 + + 92 col1 FROM tab0 AS cor0
----
20
20
20

query III rowsort
SELECT * FROM tab0 cor0 WHERE col0 * - + col2 < - ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + - - col1 col2 FROM tab1 AS cor0
----
-37
-44
-80

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 41 >= ( - col0 * + col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE - + col1 + - - ( 19 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8724
SELECT col2 * + - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8724
SELECT col2 * + - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8725
SELECT DISTINCT - - CAST( + AVG ( col1 ) AS SIGNED ) AS col2 FROM tab1 WHERE NULL BETWEEN - + col0 * - col1 + + col1 * + + col2 - + col2 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8725
SELECT DISTINCT - - CAST ( + AVG ( col1 ) AS INTEGER ) AS col2 FROM tab1 WHERE NULL BETWEEN - + col0 * - col1 + + col1 * + + col2 - + col2 AND NULL
----
NULL

query I rowsort
SELECT - 40 * + col2 FROM tab2
----
-1600
-2320
-920

query I rowsort
SELECT + col2 * + col1 FROM tab1 WHERE + 7 >= NULL
----

query I rowsort
SELECT ALL - col0 + + 42 FROM tab0
----
-45
-55
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8729
SELECT ALL + - COUNT( * ) * + 25 * 16 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-3600

skipif mysql # not compatible
query I rowsort label-8729
SELECT ALL + - COUNT ( * ) * + 25 * 16 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-3600

query I rowsort
SELECT DISTINCT 34 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
34

query I rowsort
SELECT + col2 * - - col2 * - 45 + + + col0 FROM tab2 WHERE NOT - - col1 / col0 > NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 + - ( col2 ) <= - 78 * col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - + col2 * + 10 AS col2, - col2 AS col2 FROM tab1 AS cor0
----
-590
-59
-680
-68
-960
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-8734
SELECT + COUNT( * ) * + + COUNT( col1 ) AS col0, 33 FROM tab0 AS cor0
----
9
33

skipif mysql # not compatible
query II rowsort label-8734
SELECT + COUNT ( * ) * + + COUNT ( col1 ) AS col0, 33 FROM tab0 AS cor0
----
9
33

onlyif mysql # DIV for integer division: 
query I rowsort label-8735
SELECT ALL - col0 DIV - + col1 + - - col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
15
194
91

skipif mysql # not compatible
query I rowsort label-8735
SELECT ALL - col0 / - + col1 + - - col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
15
194
91

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 * - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8737
SELECT DISTINCT SUM( + 25 ), COUNT( * ) col1 FROM tab1 AS cor0
----
75
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8737
SELECT DISTINCT SUM ( + 25 ), COUNT ( * ) col1 FROM tab1 AS cor0
----
75
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col1 ) / - col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 / + col0 col0 FROM tab1 AS cor0 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 * ( col2 ) * col2 * col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
12117361
21381376
84934656

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8741
SELECT DISTINCT MAX( - - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8741
SELECT DISTINCT MAX ( - - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query I rowsort
SELECT + col2 AS col1 FROM tab0 WHERE NOT + col0 * col0 IS NOT NULL
----

query II rowsort
SELECT + 94 AS col0, - ( col0 ) FROM tab1
----
94
-51
94
-85
94
-91

query I rowsort
SELECT ALL + col1 * col1 + + + col1 FROM tab1
----
210
2256
30

query I rowsort
SELECT col1 AS col1 FROM tab1 WHERE NOT - col0 + 32 = - 41
----
14
47
5

query I rowsort
SELECT 81 / 16 * - col2 AS col1 FROM tab1 cor0 WHERE NOT - 24 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8747
SELECT ALL MAX( ALL + col0 ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-8747
SELECT ALL MAX ( ALL + col0 ) FROM tab2 AS cor0
----
75

query I rowsort
SELECT + col1 + + - 3 FROM tab2 AS cor0
----
48
64
74

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8750
SELECT ALL - CAST( 55 AS SIGNED ) AS col1 FROM tab1 WHERE + col2 IN ( + 31 * - col2 )
----

skipif mysql # not compatible
query I rowsort label-8750
SELECT ALL - CAST ( 55 AS INTEGER ) AS col1 FROM tab1 WHERE + col2 IN ( + 31 * - col2 )
----

query I rowsort
SELECT ALL 5 + + col2 FROM tab0
----
104
15
52

query I rowsort
SELECT - col1 + ( 29 ) FROM tab1
----
-18
15
24

query I rowsort
SELECT DISTINCT col0 * + col1 FROM tab1 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND ( - col2 )
----

query I rowsort
SELECT ALL - 62 AS col2 FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN - col2 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN ( col1 ) AND NULL
----

query I rowsort
SELECT ALL col0 * 41 AS col2 FROM tab0
----
3567
3977
615

query III rowsort
SELECT * FROM tab1 WHERE 21 = NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 17 * col2 BETWEEN 6 AND + 35
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 19 * - col2 AS col2 FROM tab0
----
-1881
-190
-893

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 38 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 16 * col2 col0 FROM tab0
----
1584
160
752

onlyif mysql # DIV for integer division: 
query I rowsort label-8762
SELECT ALL + col1 DIV + 27 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8762
SELECT ALL + col1 / + 27 FROM tab1
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8763
SELECT 35 + COUNT( DISTINCT - 2 ) FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-8763
SELECT 35 + COUNT ( DISTINCT - 2 ) FROM tab2
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-8764
SELECT + col1 DIV 69 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8764
SELECT + col1 / 69 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE ( + 45 + - col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8766
SELECT - MAX( col2 ) - - 66 AS col0 FROM tab2
----
8

skipif mysql # not compatible
query I rowsort label-8766
SELECT - MAX ( col2 ) - - 66 AS col0 FROM tab2
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-8767
SELECT ALL - col2 DIV col0 - col2 AS col1 FROM tab2 WHERE col1 * + 5 + + ( + col1 ) * + 97 NOT IN ( - 93 * 8 )
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-8767
SELECT ALL - col2 / col0 - col2 AS col1 FROM tab2 WHERE col1 * + 5 + + ( + col1 ) * + 97 NOT IN ( - 93 * 8 )
----
-23
-40
-58

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE - col1 IS NULL
----

query I rowsort
SELECT ALL ( + ( 32 ) ) + col0 FROM tab1
----
117
123
83

query I rowsort
SELECT col2 * + ( - col2 ) + - col0 FROM tab2
----
-1664
-3439
-575

query I rowsort
SELECT ALL ( col2 ) * + col1 FROM tab0 WHERE - ( - col0 ) IS NOT NULL
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8772
SELECT DISTINCT COUNT( * ) + 27 FROM tab1
----
30

skipif mysql # not compatible
query I rowsort label-8772
SELECT DISTINCT COUNT ( * ) + 27 FROM tab1
----
30

query I rowsort
SELECT 64 * - col2 AS col1 FROM tab2
----
-1472
-2560
-3712

onlyif mysql # aggregate syntax: 
query I rowsort label-8774
SELECT 70 * COUNT( * ) AS col1 FROM tab1
----
210

skipif mysql # not compatible
query I rowsort label-8774
SELECT 70 * COUNT ( * ) AS col1 FROM tab1
----
210

query I rowsort
SELECT col0 + - col0 * 42 FROM tab1
----
-2091
-3485
-3731

onlyif mysql # DIV for integer division: 
query I rowsort label-8776
SELECT DISTINCT col0 DIV 13 col0 FROM tab1 AS cor0
----
3
6
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8776
SELECT DISTINCT col0 / 13 col0 FROM tab1 AS cor0
----
3
6
7

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL NOT IN ( 59 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8778
SELECT ALL + ( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8778
SELECT ALL + ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( 22 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8780
SELECT DISTINCT MIN( DISTINCT col1 ) AS col2 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-8780
SELECT DISTINCT MIN ( DISTINCT col1 ) AS col2 FROM tab1 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8781
SELECT + COUNT( * ) - + MIN( 17 ) * 43 col2 FROM tab0 AS cor0 CROSS JOIN tab2
----
-722

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8781
SELECT + COUNT ( * ) - + MIN ( 17 ) * 43 col2 FROM tab0 AS cor0 CROSS JOIN tab2
----
-722

query I rowsort
SELECT DISTINCT + 57 * - 79 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0
----
-4503

onlyif mysql # aggregate syntax: 
query I rowsort label-8783
SELECT COUNT( * ) AS col1 FROM tab0 WHERE NOT ( NULL ) > ( 76 )
----
0

skipif mysql # not compatible
query I rowsort label-8783
SELECT COUNT ( * ) AS col1 FROM tab0 WHERE NOT ( NULL ) > ( 76 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8784
SELECT - MAX( DISTINCT + 0 ) * COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8784
SELECT - MAX ( DISTINCT + 0 ) * COUNT ( * ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT + - 0 * - col2 AS col0 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT ALL + col1 + + 74 FROM tab1 AS cor0 WHERE NOT + 0 - col0 NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT + col1 * + 13 FROM tab2 AS cor0
----
1001
663
871

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + 43 ) + 57 * + 25 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8789
SELECT ALL - col1 DIV - 86 FROM tab1 AS cor0 WHERE CAST( - 21 AS SIGNED ) * col2 + ( + col2 ) IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8789
SELECT ALL - col1 / - 86 FROM tab1 AS cor0 WHERE CAST ( - 21 AS INTEGER ) * col2 + ( + col2 ) IS NOT NULL
----
0
0
0

query I rowsort
SELECT - 33 AS col1 FROM tab0 WHERE NOT 4 > NULL
----

query I rowsort
SELECT ALL col0 + col2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8792
SELECT DISTINCT + ( COUNT( * ) ) FROM tab2 WHERE ( NULL ) < - col1
----
0

skipif mysql # not compatible
query I rowsort label-8792
SELECT DISTINCT + ( COUNT ( * ) ) FROM tab2 WHERE ( NULL ) < - col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8793
SELECT ALL col0 + - col2 - - col0 DIV - col0 AS col0 FROM tab2
----
16
22
23

skipif mysql # not compatible
query I rowsort label-8793
SELECT ALL col0 + - col2 - - col0 / - col0 AS col0 FROM tab2
----
16
22
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8794
SELECT ALL - col2 + CAST( NULL AS SIGNED ) * + col0 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8794
SELECT ALL - col2 + CAST ( NULL AS INTEGER ) * + col0 AS col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL IN ( 77 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8796
SELECT COUNT( - CAST( - 40 AS SIGNED ) ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8796
SELECT COUNT ( - CAST ( - 40 AS INTEGER ) ) AS col1 FROM tab2
----
3

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab0 WHERE NOT - col2 + - col1 * + 27 IN ( col2 )
----
1
21
81

query I rowsort
SELECT DISTINCT - col1 / + col2 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) >= NULL
----

query I rowsort
SELECT ALL col1 + + col0 FROM tab0 AS cor0 WHERE col2 NOT IN ( col2 / + col2 )
----
108
96
98

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 + + col1 * + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8801
SELECT - - MIN( ALL + 0 ) * - 97 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8801
SELECT - - MIN ( ALL + 0 ) * - 97 FROM tab1 cor0
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col1 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8803
SELECT ALL - CAST( NULL AS DECIMAL ) + COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8803
SELECT ALL - CAST ( NULL AS REAL ) + COUNT ( * ) FROM tab0
----
NULL

query I rowsort
SELECT 59 AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8805
SELECT + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE + CAST( - ( col0 ) AS SIGNED ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8805
SELECT + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE + CAST ( - ( col0 ) AS INTEGER ) IS NOT NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 41 = ( - 57 * - col0 )
----

query I rowsort
SELECT col1 + + col1 * 19 AS col2 FROM tab2 cor0
----
1020
1340
1540

query I rowsort
SELECT ALL - col0 + - - col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8809
SELECT DISTINCT - CAST( 57 AS SIGNED ) * CAST( ( CAST( - col1 AS SIGNED ) ) AS SIGNED ) * + 65 + ( - col0 ) * col1 AS col1 FROM tab0 AS cor0
----
298890
3608
75978

skipif mysql # not compatible
query I rowsort label-8809
SELECT DISTINCT - CAST ( 57 AS INTEGER ) * CAST ( ( CAST ( - col1 AS INTEGER ) ) AS INTEGER ) * + 65 + ( - col0 ) * col1 AS col1 FROM tab0 AS cor0
----
298890
3608
75978

onlyif mysql # DIV for integer division: 
query I rowsort label-8810
SELECT ALL 96 DIV - - col2 + + col2 FROM tab1 AS cor0
----
60
69
97

skipif mysql # not compatible
query I rowsort label-8810
SELECT ALL 96 / - - col2 + + col2 FROM tab1 AS cor0
----
60
69
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8811
SELECT ALL - ( + - COUNT( * ) ) * COUNT( - 97 ) - + COUNT( - col0 ) AS col2 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8811
SELECT ALL - ( + - COUNT ( * ) ) * COUNT ( - 97 ) - + COUNT ( - col0 ) AS col2 FROM tab0 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8812
SELECT DISTINCT - + 99 + - - 65 * + COUNT( * ) AS col1 FROM tab0 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-8812
SELECT DISTINCT - + 99 + - - 65 * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
96

query I rowsort
SELECT DISTINCT - 52 - 4 AS col2 FROM tab2 AS cor0
----
-56

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8815
SELECT SUM( + 49 ) FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
147

skipif mysql # not compatible
query I rowsort label-8815
SELECT SUM ( + 49 ) FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-8816
SELECT - 87 * - COUNT( * ) FROM tab1 AS cor0 WHERE col0 + - 27 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-8816
SELECT - 87 * - COUNT ( * ) FROM tab1 AS cor0 WHERE col0 + - 27 >= NULL
----
0

query I rowsort
SELECT - col1 AS col1 FROM tab0 cor0 WHERE NULL <= NULL
----

query II rowsort
SELECT ALL 16 - col0, - col0 AS col0 FROM tab1
----
-35
-51
-69
-85
-75
-91

query I rowsort
SELECT DISTINCT + 72 - - + col0 * - 95 * + 77 FROM tab1
----
-372993
-621703
-665593

onlyif mysql # DIV for integer division: 
query I rowsort label-8820
SELECT ( - 21 ) DIV - col0 AS col1 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8820
SELECT ( - 21 ) / - col0 AS col1 FROM tab0
----
0
0
1

query I rowsort
SELECT DISTINCT - col1 * 95 * col2 * 42 AS col0 FROM tab0
----
-15189930
-395010
-837900

query I rowsort
SELECT DISTINCT 50 * + + 53 * + col0 AS col0 FROM tab1
----
135150
225250
241150

onlyif mysql # aggregate syntax: 
query I rowsort label-8823
SELECT ALL MAX( DISTINCT 90 ) * - 29 + + COUNT( * ) AS col0 FROM tab1
----
-2607

skipif mysql # not compatible
query I rowsort label-8823
SELECT ALL MAX ( DISTINCT 90 ) * - 29 + + COUNT ( * ) AS col0 FROM tab1
----
-2607

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8824
SELECT ( - CAST( NULL AS SIGNED ) ) * + COUNT( * ) * - COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8824
SELECT ( - CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) * - COUNT ( * ) FROM tab1
----
NULL

query I rowsort
SELECT ( 21 ) AS col1 FROM tab0 WHERE NOT NULL BETWEEN ( - ( - - col0 ) * - 69 ) AND ( - col0 - + col1 )
----

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
51
67
77

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL <> ( + 93 + - col1 + + 62 * col2 )
----

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE NULL < ( col1 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 + + ( - ( - col0 ) ) * ( 22 ) = col2 - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 30 * - + col1 > - 10
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 39 IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query I rowsort
SELECT - - col2 * + ( col2 ) FROM tab2 AS cor0
----
1600
3364
529

query I rowsort
SELECT DISTINCT + col0 + col0 - + col0 AS col0 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT DISTINCT - ( ( - + 61 ) ) AS col0 FROM tab2 AS cor0
----
61

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col0 * + col2 <= ( - col0 * 68 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8836
SELECT + SUM( ALL - + col2 ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-8836
SELECT + SUM ( ALL - + col2 ) FROM tab0 AS cor0
----
-156

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8837
SELECT - CAST( NULL AS SIGNED ), + col1 * + col1 AS col2 FROM tab0 cor0
----
NULL
1
NULL
441
NULL
6561

skipif mysql # not compatible
query II rowsort label-8837
SELECT - CAST ( NULL AS INTEGER ), + col1 * + col1 AS col2 FROM tab0 cor0
----
NULL
1
NULL
441
NULL
6561

onlyif mysql # aggregate syntax: 
query I rowsort label-8838
SELECT ALL - - COUNT( DISTINCT + ( + - col0 ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8838
SELECT ALL - - COUNT ( DISTINCT + ( + - col0 ) ) FROM tab2 AS cor0
----
3

query II rowsort
SELECT 28 AS col2, col2 FROM tab2
----
28
23
28
40
28
58

query II rowsort
SELECT col2, - 12 AS col2 FROM tab2
----
23
-12
40
-12
58
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-8841
SELECT 2 AS col1, COUNT( * ) AS col1 FROM tab1
----
2
3

skipif mysql # not compatible
query II rowsort label-8841
SELECT 2 AS col1, COUNT ( * ) AS col1 FROM tab1
----
2
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8842
SELECT ALL COUNT( * ) * 55 FROM tab2
----
165

skipif mysql # not compatible
query I rowsort label-8842
SELECT ALL COUNT ( * ) * 55 FROM tab2
----
165

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( - - col0 + + + ( + + col0 ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8844
SELECT ALL - COUNT( * ) DIV - 9 col0 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8844
SELECT ALL - COUNT ( * ) / - 9 col0 FROM tab2
----
0

query II rowsort
SELECT col2 + - + col2, col1 FROM tab0
----
0
1
0
21
0
81

query I rowsort
SELECT ( + ( + - 6 ) ) + + 57 AS col1 FROM tab1
----
51
51
51

query I rowsort
SELECT DISTINCT col0 + + 96 FROM tab0 AS cor0
----
111
183
193

query I rowsort
SELECT - col1 + 60 AS col0 FROM tab1 AS cor0
----
13
46
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8849
SELECT DISTINCT + AVG ( + + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0 WHERE NOT - 40 + + - col0 BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8849
SELECT DISTINCT + AVG ( + + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0 WHERE NOT - 40 + + - col0 BETWEEN NULL AND NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 33 col2 FROM tab2 WHERE NULL IN ( - col2, col0 )
----

query I rowsort
SELECT 83 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8852
SELECT - AVG ( CAST( NULL AS SIGNED ) ) - - 87 - COUNT( * ) * - 38 AS col2 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8852
SELECT - AVG ( CAST ( NULL AS INTEGER ) ) - - 87 - COUNT ( * ) * - 38 AS col2 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
NULL

query I rowsort
SELECT ALL + 73 + + - col0 AS col0 FROM tab0 AS cor0
----
-14
-24
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8854
SELECT ALL COUNT( * ) FROM tab2 AS cor0 WHERE - col0 IN ( - col2, + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-8854
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 WHERE - col0 IN ( - col2, + col0 )
----
0

query I rowsort
SELECT + 19 FROM tab1 AS cor0 WHERE ( NULL IS NOT NULL )
----

query I rowsort
SELECT + col0 - + col1 + + col2 AS col1 FROM tab0 AS cor0
----
-19
195
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - col0 col0 FROM tab2 cor0
----
-141
-142
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8858
SELECT DISTINCT + COUNT( * ) + - 86 FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( + col1 )
----
-86

skipif mysql # not compatible
query I rowsort label-8858
SELECT DISTINCT + COUNT ( * ) + - 86 FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( + col1 )
----
-86

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 + - col0 + + col1 + - col2 <> ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8860
SELECT ( - - COUNT( * ) ) * + COUNT( * ) * + 28 - CAST( NULL AS SIGNED ), COUNT( * ) AS col0 FROM tab0 cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-8860
SELECT ( - - COUNT ( * ) ) * + COUNT ( * ) * + 28 - CAST ( NULL AS INTEGER ), COUNT ( * ) AS col0 FROM tab0 cor0
----
NULL
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8861
SELECT - 77 + SUM( DISTINCT + + 81 ) FROM tab0 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-8861
SELECT - 77 + SUM ( DISTINCT + + 81 ) FROM tab0 AS cor0
----
4

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 > + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8863
SELECT - - MAX( ALL col0 ) + + COUNT( * ) FROM tab2 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-8863
SELECT - - MAX ( ALL col0 ) + + COUNT ( * ) FROM tab2 AS cor0
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8864
SELECT - ( + + COUNT( * ) ) + - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8864
SELECT - ( + + COUNT ( * ) ) + - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 >= - col2 * + 19
----

query I rowsort
SELECT + 4 * - col2 AS col0 FROM tab0
----
-188
-396
-40

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8867
SELECT DISTINCT col1, CAST( NULL AS SIGNED ) FROM tab1
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-8867
SELECT DISTINCT col1, CAST ( NULL AS INTEGER ) FROM tab1
----
14
NULL
47
NULL
5
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8868
SELECT * FROM tab0 WHERE NOT ( col2 ) NOT IN ( CAST( NULL AS SIGNED ), - col2 * - 1, 92 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8868
SELECT * FROM tab0 WHERE NOT ( col2 ) NOT IN ( CAST ( NULL AS INTEGER ), - col2 * - 1, 92 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT - - col1 + + - col2 IN ( + col2 + - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 44 * 2 AS col2 FROM tab0
----
-88
-88
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-8871
SELECT DISTINCT + col0 DIV + - col2 FROM tab2
----
-1
-2

skipif mysql # not compatible
query I rowsort label-8871
SELECT DISTINCT + col0 / + - col2 FROM tab2
----
-1
-2

query I rowsort
SELECT DISTINCT ( - 57 ) FROM tab1
----
-57

query I rowsort
SELECT DISTINCT - 51 * + col0 FROM tab0 AS cor0
----
-4437
-4947
-765

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8874
SELECT ALL - 62 * - ( - CAST( NULL AS SIGNED ) ) * - 56 + + COUNT( * ) + + 34 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8874
SELECT ALL - 62 * - ( - CAST ( NULL AS INTEGER ) ) * - 56 + + COUNT ( * ) + + 34 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( + + col1, - 78, + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col1 > + 89
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( 49 - - col2 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8878
SELECT + col2 + + + col1 DIV col2 AS col2 FROM tab0 AS cor0
----
12
48
99

skipif mysql # not compatible
query I rowsort label-8878
SELECT + col2 + + + col1 / col2 AS col2 FROM tab0 AS cor0
----
12
48
99

query I rowsort
SELECT - 17 + 12 AS col2 FROM tab2
----
-5
-5
-5

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + 0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 * - col1 <> - ( 72 )
----

query I rowsort
SELECT ALL + col2 * + 4 + + col0 AS col1 FROM tab1
----
321
363
435

query II rowsort
SELECT col1 AS col2, 49 AS col2 FROM tab2 AS cor0
----
51
49
67
49
77
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8884
SELECT + MAX( - 85 ) AS col0 FROM tab0 cor0
----
-85

skipif mysql # not compatible
query I rowsort label-8884
SELECT + MAX ( - 85 ) AS col0 FROM tab0 cor0
----
-85

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 32 + + - 22 BETWEEN - ( - - col1 ) + 19 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8886
SELECT DISTINCT - COUNT( * ) AS col0 FROM ( tab1 cor0 CROSS JOIN tab2 cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-8886
SELECT DISTINCT - COUNT ( * ) AS col0 FROM ( tab1 cor0 CROSS JOIN tab2 cor1 )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8887
SELECT ALL COUNT( * ) + + 4 FROM tab0 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-8887
SELECT ALL COUNT ( * ) + + 4 FROM tab0 AS cor0
----
7

onlyif mysql # DIV for integer division: 
query II rowsort label-8888
SELECT - col0, - ( - - col2 ) + - + 68 + + - col0 - + 48 DIV + ( 22 ) col1 FROM tab1 AS cor0
----
-51
-217
-85
-214
-91
-229

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8888
SELECT - col0, - ( - - col2 ) + - + 68 + + - col0 - + 48 / + ( 22 ) col1 FROM tab1 AS cor0
----
-51
-217
-85
-214
-91
-229

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8889
SELECT MAX( - col2 ) DIV + - 34 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8889
SELECT MAX ( - col2 ) / + - 34 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 + - - col0 * + 20 * + col2 * - - col0 * - 72 > - 50
----

query I rowsort
SELECT DISTINCT col2 * + 24 * - - 64 FROM tab1 AS cor0
----
104448
147456
90624

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 / + col1 * - - col1 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8893
SELECT ALL * FROM tab2 WHERE ( + col1 * - CAST( ( col0 ) AS SIGNED ) * - 26 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8893
SELECT ALL * FROM tab2 WHERE ( + col1 * - CAST ( ( col0 ) AS INTEGER ) * - 26 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE - ( + 52 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col0 + col2 + + + 24 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + 52
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT - ( col0 ) >= - 18 / - 68 + - col1 )
----
46
51
23
64
77
40

query I rowsort
SELECT - ( ( col1 ) ) AS col2 FROM tab0 AS cor0 WHERE ( - 50 ) <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8898
SELECT ALL - 24 DIV + col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8898
SELECT ALL - 24 / + col0 FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT ALL col2, 69 AS col0 FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT 61 + - - col1 + - - 5, - col2 + - 31 FROM tab2 AS cor0 WHERE - 50 - - + col2 BETWEEN + 2 AND - + col1
----

query I rowsort
SELECT DISTINCT - 50 * - + 46 FROM tab0 AS cor0
----
2300

onlyif mysql # aggregate syntax: 
query I rowsort label-8902
SELECT ALL - 38 + COUNT( * ) + + 79 AS col1 FROM tab1
----
44

skipif mysql # not compatible
query I rowsort label-8902
SELECT ALL - 38 + COUNT ( * ) + + 79 AS col1 FROM tab1
----
44

query I rowsort
SELECT ALL + col2 AS col0 FROM tab1 WHERE NOT NULL IN ( + 8, + col1 / - 31 * + 35, 46 + - 90, - col2 )
----

query I rowsort
SELECT 23 * - col1 + + col2 AS col2 FROM tab2
----
-1150
-1483
-1731

query I rowsort
SELECT ALL 61 + - - col2 + - - ( col2 ) FROM tab2
----
107
141
177

query II rowsort
SELECT DISTINCT - col1 + - 56 AS col1, - col0 AS col0 FROM tab1
----
-103
-91
-61
-85
-70
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8907
SELECT ALL - ( + ( + - 99 ) ) * + COUNT( * ) * + 89 - + + MIN( DISTINCT - col0 ) FROM tab2 cor0
----
26508

skipif mysql # not compatible
query I rowsort label-8907
SELECT ALL - ( + ( + - 99 ) ) * + COUNT ( * ) * + 89 - + + MIN ( DISTINCT - col0 ) FROM tab2 cor0
----
26508

query I rowsort
SELECT DISTINCT + 10 - - 89 - - - col2 AS col1 FROM tab1 cor0
----
3
31
40

onlyif mysql # aggregate syntax: 
query II rowsort label-8909
SELECT - MIN( - + 34 ), 58 AS col0 FROM tab0 cor0
----
34
58

skipif mysql # not compatible
query II rowsort label-8909
SELECT - MIN ( - + 34 ), 58 AS col0 FROM tab0 cor0
----
34
58

query I rowsort
SELECT col2 * 48 FROM tab2
----
1104
1920
2784

onlyif mysql # aggregate syntax: 
query I rowsort label-8911
SELECT ALL + COUNT( * ) - COUNT( * ) FROM tab2 WHERE + 51 + - + 61 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8911
SELECT ALL + COUNT ( * ) - COUNT ( * ) FROM tab2 WHERE + 51 + - + 61 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8912
SELECT DISTINCT - COUNT( DISTINCT + col0 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8912
SELECT DISTINCT - COUNT ( DISTINCT + col0 ) AS col2 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL + col2 FROM tab0 AS cor0 WHERE NULL BETWEEN + col2 AND + + col2
----

query I rowsort
SELECT ALL col0 * ( + - 32 ) AS col1 FROM tab1 AS cor0
----
-1632
-2720
-2912

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 12 <> NULL
----

query I rowsort
SELECT - col0 AS col0 FROM tab2 AS cor0 WHERE NOT col2 <= - 76
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8917
SELECT - MAX( 46 ) FROM tab2 cor0
----
-46

skipif mysql # not compatible
query I rowsort label-8917
SELECT - MAX ( 46 ) FROM tab2 cor0
----
-46

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col0 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT - + col0 * - - col0 * 57 + 31 FROM tab1 cor0
----
-148226
-411794
-471986

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + + col0 + col2 col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
198
229
250

onlyif mysql # aggregate syntax: 
query I rowsort label-8921
SELECT ALL + - MAX( - col1 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-8921
SELECT ALL + - MAX ( - col1 ) FROM tab2 AS cor0
----
51

query II rowsort
SELECT col2, - col1 FROM tab0 AS cor0 WHERE NOT 85 IS NULL
----
10
-21
47
-81
99
-1

query II rowsort
SELECT ALL 94 AS col0, + col0 AS col2 FROM tab1
----
94
51
94
85
94
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8924
SELECT + CAST( NULL AS SIGNED ) AS col0, 4 AS col1 FROM tab2
----
NULL
4
NULL
4
NULL
4

skipif mysql # not compatible
query II rowsort label-8924
SELECT + CAST ( NULL AS INTEGER ) AS col0, 4 AS col1 FROM tab2
----
NULL
4
NULL
4
NULL
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8925
SELECT DISTINCT MIN( - col2 ) AS col0 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-8925
SELECT DISTINCT MIN ( - col2 ) AS col0 FROM tab2
----
-58

query II rowsort
SELECT DISTINCT col1 AS col1, col2 AS col2 FROM tab1
----
14
96
47
68
5
59

query III rowsort
SELECT * FROM tab1 WHERE NOT - 94 >= 29 * 3 * col0 + - + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT - - 2 AS col2, 62 * + col0 + + 15 FROM tab0 AS cor0
----
2
5409
2
6029
2
945

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT ( + ( - - col1 ) ) IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8930
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - 58
----
0

skipif mysql # not compatible
query I rowsort label-8930
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - 58
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8931
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT + - CAST( NULL AS SIGNED ) + ( - + col1 ) - - 55 * col0 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8931
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT + - CAST ( NULL AS INTEGER ) + ( - + col1 ) - - 55 * col0 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8932
SELECT ALL + CAST( NULL AS SIGNED ) + + col0 AS col2, ( - col0 ) col2 FROM tab1 AS cor0
----
NULL
-51
NULL
-85
NULL
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8932
SELECT ALL + CAST ( NULL AS INTEGER ) + + col0 AS col2, ( - col0 ) col2 FROM tab1 AS cor0
----
NULL
-51
NULL
-85
NULL
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-8933
SELECT ALL + col1 DIV - col0 + + ( col2 ) AS col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-8933
SELECT ALL + col1 / - col0 + + ( col2 ) AS col2 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT + 25 + + + 44 + + - 19 * + 27 AS col2 FROM tab1 AS cor0
----
-444
-444
-444

onlyif mysql # DIV for integer division: 
query I rowsort label-8935
SELECT DISTINCT - 94 DIV - 92 + - col2 FROM tab0 AS cor0
----
-46
-9
-98

skipif mysql # not compatible
query I rowsort label-8935
SELECT DISTINCT - 94 / - 92 + - col2 FROM tab0 AS cor0
----
-46
-9
-98

query I rowsort
SELECT ALL - 2 + - + 92 * + 39 FROM tab2 AS cor0
----
-3590
-3590
-3590

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 4 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + col0 + + - 25 * col1 FROM tab2 AS cor0
----
-1229
-1600
-1861

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8939
SELECT * FROM tab2 AS cor0 WHERE + col0 + + col1 IN ( + 46 * + col2 * + CAST( NULL AS SIGNED ) + - - col0 * - col0 )
----

skipif mysql # not compatible
query III rowsort label-8939
SELECT * FROM tab2 AS cor0 WHERE + col0 + + col1 IN ( + 46 * + col2 * + CAST ( NULL AS INTEGER ) + - - col0 * - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8940
SELECT ALL ( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8940
SELECT ALL ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 60 FROM tab1 WHERE NOT 58 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8942
SELECT MIN( DISTINCT + 73 ) - + 65 * - - COUNT( * ) AS col2 FROM tab0
----
-122

skipif mysql # not compatible
query I rowsort label-8942
SELECT MIN ( DISTINCT + 73 ) - + 65 * - - COUNT ( * ) AS col2 FROM tab0
----
-122

query I rowsort
SELECT ALL - + 91 + + col0 FROM tab1 AS cor0
----
-40
-6
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8944
SELECT - col1 DIV + - ( + col1 ) AS col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8944
SELECT - col1 / + - ( + col1 ) AS col0 FROM tab0
----
1
1
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8945
SELECT MAX( + col0 ), + 9 * - - 74 AS col2 FROM tab1
----
91
666

skipif mysql # not compatible
query II rowsort label-8945
SELECT MAX ( + col0 ), + 9 * - - 74 AS col2 FROM tab1
----
91
666

onlyif mysql # DIV for integer division: 
query II rowsort label-8946
SELECT DISTINCT col1 DIV col1, + 31 AS col1 FROM tab2 AS cor0
----
1
31

skipif mysql # not compatible
query II rowsort label-8946
SELECT DISTINCT col1 / col1, + 31 AS col1 FROM tab2 AS cor0
----
1
31

onlyif mysql # DIV for integer division: 
query I rowsort label-8947
SELECT + + 68 DIV ( + 21 ) FROM tab2 AS cor0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-8947
SELECT + + 68 / ( + 21 ) FROM tab2 AS cor0
----
3
3
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8948
SELECT ALL + CAST( - MAX( - col2 ) AS SIGNED ) * - SUM( ALL + + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8948
SELECT ALL + CAST ( - MAX ( - col2 ) AS INTEGER ) * - SUM ( ALL + + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8949
SELECT + 33 DIV 26, col0 AS col0 FROM tab1 AS cor0
----
1
51
1
85
1
91

skipif mysql # not compatible
query II rowsort label-8949
SELECT + 33 / 26, col0 AS col0 FROM tab1 AS cor0
----
1
51
1
85
1
91

onlyif mysql # DIV for integer division: 
query II rowsort label-8950
SELECT DISTINCT - - col1 DIV - col2 AS col2, col0 DIV col2 * + 27 + col2 FROM tab2 cor0
----
-1
67
-1
85
-2
77

skipif mysql # not compatible
query II rowsort label-8950
SELECT DISTINCT - - col1 / - col2 AS col2, col0 / col2 * + 27 + col2 FROM tab2 cor0
----
-1
67
-1
85
-2
77

query I rowsort
SELECT ALL 45 AS col2 FROM tab2 AS cor0 WHERE NOT ( NOT + col0 * - col2 <> NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8952
SELECT ALL MIN( + 89 ) FROM tab1 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-8952
SELECT ALL MIN ( + 89 ) FROM tab1 AS cor0
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8953
SELECT DISTINCT + ( - col0 ) * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8953
SELECT DISTINCT + ( - col0 ) * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8954
SELECT ALL - col0 DIV 73 * col0 AS col0, + col2 FROM tab0
----
-87
10
-97
99
0
47

skipif mysql # not compatible
query II rowsort label-8954
SELECT ALL - col0 / 73 * col0 AS col0, + col2 FROM tab0
----
-87
10
-97
99
0
47

query I rowsort
SELECT ALL - - 20 AS col2 FROM tab1 WHERE - - 11 / - col2 BETWEEN NULL AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8956
SELECT DISTINCT - ( - COUNT( - col2 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8956
SELECT DISTINCT - ( - COUNT ( - col2 ) ) FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8957
SELECT 24 AS col1, + CAST( NULL AS SIGNED ) * 93 - + col2 + ( 74 ) FROM tab0
----
24
NULL
24
NULL
24
NULL

skipif mysql # not compatible
query II rowsort label-8957
SELECT 24 AS col1, + CAST ( NULL AS INTEGER ) * 93 - + col2 + ( 74 ) FROM tab0
----
24
NULL
24
NULL
24
NULL

query I rowsort
SELECT 16 * - col1 - + col2 FROM tab2 AS cor0
----
-1130
-1272
-839

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 col0 FROM tab0 AS cor0 WHERE NOT 6 + col0 * + 12 IS NULL
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8960
SELECT CAST( NULL AS SIGNED ) + + 89 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8960
SELECT CAST ( NULL AS INTEGER ) + + 89 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE 3 <> - 53
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 21 + - col1 AS col1 FROM tab1 AS cor0
----
-26
16
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8963
SELECT - col1 * - 90 * - col1 + col0 * + + CAST( + - col0 AS SIGNED ) + - col1 * - col1 FROM tab1 AS cor0 WHERE 1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-8963
SELECT - col1 * - 90 * - col1 + col0 * + + CAST ( + - col0 AS INTEGER ) + - col1 * - col1 FROM tab1 AS cor0 WHERE 1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8964
SELECT ALL + 29 + + + COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL > 84 * + ( - col0 ) * - 43 + + - col2 * + 9 / col1 * + col0 + + col1 + - + col0 + + col2 + ( + col0 ) * - 39
----
29

skipif mysql # not compatible
query I rowsort label-8964
SELECT ALL + 29 + + + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL > 84 * + ( - col0 ) * - 43 + + - col2 * + 9 / col1 * + col0 + + col1 + - + col0 + + col2 + ( + col0 ) * - 39
----
29

query II rowsort
SELECT DISTINCT + + col0 AS col0, 48 + + col1 + - col1 + - col1 + + col1 FROM tab0 AS cor0
----
15
48
87
48
97
48

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8966
SELECT CAST( - - CAST( NULL AS SIGNED ) AS DECIMAL ) * - + col0 + + + 59 FROM tab0 cor0 WHERE col1 * - 84 / 63 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8966
SELECT CAST ( - - CAST ( NULL AS INTEGER ) AS REAL ) * - + col0 + + + 59 FROM tab0 cor0 WHERE col1 * - 84 / 63 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8967
SELECT ALL + COUNT( * ) FROM tab1 AS cor0 WHERE - col1 <= 93
----
3

skipif mysql # not compatible
query I rowsort label-8967
SELECT ALL + COUNT ( * ) FROM tab1 AS cor0 WHERE - col1 <= 93
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8968
SELECT DISTINCT + COUNT( * ) + MIN( DISTINCT - col2 ) AS col0 FROM tab0 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-8968
SELECT DISTINCT + COUNT ( * ) + MIN ( DISTINCT - col2 ) AS col0 FROM tab0 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8969
SELECT ALL + - COUNT( - - 40 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8969
SELECT ALL + - COUNT ( - - 40 ) AS col1 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + - col1 * - col0 - - 22 FROM tab0 cor0
----
119
1237
1849

query I rowsort
SELECT ALL + col0 - + col0 + + col2 * col0 + col1 FROM tab0 AS cor0
----
786
891
9604

query I rowsort
SELECT 76 * col0 + - col2 * - col0 - + + col0 FROM tab2 AS cor0
----
4508
7360
9975

onlyif mysql # aggregate syntax: 
query I rowsort label-8973
SELECT DISTINCT - + ( + COUNT( * ) ) col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8973
SELECT DISTINCT - + ( + COUNT ( * ) ) col0 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8974
SELECT + + MAX( + - col2 ) + 83 FROM tab1 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-8974
SELECT + + MAX ( + - col2 ) + 83 FROM tab1 AS cor0
----
24

query I rowsort
SELECT + col0 + col0 - - ( - ( col2 ) ) FROM tab0
----
-17
164
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8976
SELECT DISTINCT + + MAX( - col0 ) * - 36 - - - 40 * - COUNT( DISTINCT 75 ) AS col0 FROM tab0 WHERE - + col2 >= CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8976
SELECT DISTINCT + + MAX ( - col0 ) * - 36 - - - 40 * - COUNT ( DISTINCT 75 ) AS col0 FROM tab0 WHERE - + col2 >= CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8977
SELECT + ( - + COUNT( * ) ) FROM tab1 AS cor0 WHERE + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8977
SELECT + ( - + COUNT ( * ) ) FROM tab1 AS cor0 WHERE + col2 IS NULL
----
0

query II rowsort
SELECT - col2 * - 80 AS col1, col0 - - - col2 + - - ( - + col2 ) * col2 FROM tab1 AS cor0
----
4720
-3455
5440
-4601
7680
-9261

query I rowsort
SELECT DISTINCT col2 + + + col2 + - col1 FROM tab2 AS cor0
----
-5
3
49

query I rowsort
SELECT ALL + + 73 * + col0 + - 60 AS col1 FROM tab2 AS cor0
----
3298
4612
5415

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 39 * - - col1 col1 FROM tab1
----
1833
195
546

query I rowsort
SELECT ALL - col1 * + + col2 * col1 * + col0 AS col0 FROM tab0
----
-383670
-4625505
-9603

query II rowsort
SELECT + col2 AS col1, col0 FROM tab2 cor0
----
23
46
40
64
58
75

query II rowsort
SELECT ALL + col1, ( - + col2 ) * + col0 AS col2 FROM tab0 AS cor0
----
1
-9603
21
-870
81
-705

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8985
SELECT + 2 DIV + COUNT( * ) + - - COUNT( - - col0 ) + COUNT( * ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8985
SELECT + 2 / + COUNT ( * ) + - - COUNT ( - - col0 ) + COUNT ( * ) FROM tab2 AS cor0
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 6 * - + col0 col1 FROM tab1 AS cor0
----
-306
-510
-546

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8987
SELECT ALL - ( CAST( AVG ( ALL + + col1 ) AS SIGNED ) ) FROM tab2 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-8987
SELECT ALL - ( CAST ( AVG ( ALL + + col1 ) AS INTEGER ) ) FROM tab2 AS cor0
----
-65

query I rowsort
SELECT col0 * - 23 FROM tab2 AS cor0
----
-1058
-1472
-1725

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col2 > - - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8990
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT CAST( - col2 AS SIGNED ) = + + CAST( 7 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8990
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT CAST ( - col2 AS INTEGER ) = + + CAST ( 7 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 * 12 FROM tab0
----
12
252
972

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 50 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 col0 FROM tab2 WHERE NOT NULL <= + col0 * + - 46 * - col2
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - 89 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + 54 > NULL
----

query I rowsort
SELECT DISTINCT + ( + 42 ) AS col1 FROM tab0
----
42

query III rowsort
SELECT * FROM tab2 WHERE NOT - ( col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8998
SELECT ALL 40 + + - ( - - COUNT( * ) ) col2 FROM tab0
----
37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8998
SELECT ALL 40 + + - ( - - COUNT ( * ) ) col2 FROM tab0
----
37

query II rowsort
SELECT ( col1 ), + col2 AS col0 FROM tab1
----
14
96
47
68
5
59

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + col0 * - 22 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col1 + col0 - + 8 * - - col1 AS col2 FROM tab0
----
-552
-60
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9002
SELECT DISTINCT + COUNT( * ) + COUNT( DISTINCT + col1 ) AS col0 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-9002
SELECT DISTINCT + COUNT ( * ) + COUNT ( DISTINCT + col1 ) AS col0 FROM tab2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9003
SELECT + SUM( + ( - - ( - 98 ) ) ) + 7 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-287

skipif mysql # not compatible
query I rowsort label-9003
SELECT + SUM ( + ( - - ( - 98 ) ) ) + 7 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-287

onlyif mysql # aggregate syntax: 
query II rowsort label-9004
SELECT ALL + + 29 + - - SUM( DISTINCT + + col1 ) + ( 77 ), COUNT( * ) AS col0 FROM tab2 AS cor0
----
301
3

skipif mysql # not compatible
query II rowsort label-9004
SELECT ALL + + 29 + - - SUM ( DISTINCT + + col1 ) + ( 77 ), COUNT ( * ) AS col0 FROM tab2 AS cor0
----
301
3

query II rowsort
SELECT ALL 18 AS col0, col2 AS col1 FROM tab1 AS cor0
----
18
59
18
68
18
96

query I rowsort
SELECT ALL + 48 - + - col2 + - + 4 * - + col2 FROM tab1 AS cor0
----
343
388
528

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9007
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0 WHERE ( col1 + col2 ) = col2
----

skipif mysql # not compatible
query I rowsort label-9007
SELECT DISTINCT CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0 WHERE ( col1 + col2 ) = col2
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 65 * 11 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9009
SELECT DISTINCT col2 + - col2 DIV + - col0 FROM tab1 cor0
----
59
68
97

skipif mysql # not compatible
query I rowsort label-9009
SELECT DISTINCT col2 + - col2 / + - col0 FROM tab1 cor0
----
59
68
97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 38 * + col1 < + col0
----

query II rowsort
SELECT DISTINCT col1 - + 25 AS col1, 59 + + + col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND - - col1
----

query II rowsort
SELECT col0 AS col1, ( col2 ) AS col2 FROM tab1
----
51
96
85
59
91
68

query I rowsort
SELECT + 12 * + 90 * + col0 AS col2 FROM tab1
----
55080
91800
98280

query I rowsort
SELECT 65 - + 61 - + col2 FROM tab1
----
-55
-64
-92

query I rowsort
SELECT DISTINCT col1 + - - col1 AS col1 FROM tab2
----
102
134
154

query I rowsort
SELECT - 78 - - col0 AS col1 FROM tab1
----
-27
13
7

query I rowsort
SELECT col2 - - 38 FROM tab2
----
61
78
96

query II rowsort
SELECT ALL - + col2, + col1 + - col1 AS col2 FROM tab0 AS cor0
----
-10
0
-47
0
-99
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 <> NULL
----

query I rowsort
SELECT DISTINCT - + 1 * - - col2 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT ALL + - 2 * col1 + - 54 AS col1 FROM tab1 AS cor0
----
-148
-64
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-9023
SELECT ALL - col0 DIV - 72 col0 FROM tab2
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9023
SELECT ALL - col0 / - 72 col0 FROM tab2
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col1 * - - 41 col0 FROM tab1
----
-1025
-8036
-90569

query I rowsort
SELECT DISTINCT 33 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + ( ( + col0 ) ) + + col0 NOT BETWEEN NULL AND + + col0
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL < 70
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9028
SELECT DISTINCT 50 * 17 + + COUNT( * ) - + - COUNT( * ) FROM tab0 cor0
----
856

skipif mysql # not compatible
query I rowsort label-9028
SELECT DISTINCT 50 * 17 + + COUNT ( * ) - + - COUNT ( * ) FROM tab0 cor0
----
856

onlyif mysql # aggregate syntax: 
query I rowsort label-9029
SELECT ALL + 5 * + COUNT( * ) FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-9029
SELECT ALL + 5 * + COUNT ( * ) FROM tab2
----
15

query II rowsort
SELECT col2 AS col0, ( + col2 ) FROM tab0
----
10
10
47
47
99
99

onlyif mysql # DIV for integer division: 
query I rowsort label-9031
SELECT ALL 68 DIV + 6 col2 FROM tab0
----
11
11
11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9031
SELECT ALL 68 / + 6 col2 FROM tab0
----
11
11
11

query I rowsort
SELECT ALL col1 + 5 FROM tab2
----
56
72
82

query I rowsort
SELECT + col1 * - 41 FROM tab0 WHERE NOT + col0 * + col2 IS NULL
----
-3321
-41
-861

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9034
SELECT DISTINCT + COUNT( * ) DIV - 50 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9034
SELECT DISTINCT + COUNT ( * ) / - 50 AS col2 FROM tab0
----
0

query I rowsort
SELECT DISTINCT - 17 FROM tab2 WHERE - col1 NOT IN ( ( - col2 ), + col1 )
----
-17

query II rowsort
SELECT + col0 AS col1, col2 * col0 AS col1 FROM tab2
----
46
1058
64
2560
75
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-9037
SELECT - MIN( + 68 ) AS col2 FROM tab1
----
-68

skipif mysql # not compatible
query I rowsort label-9037
SELECT - MIN ( + 68 ) AS col2 FROM tab1
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9038
SELECT ALL CAST( NULL AS SIGNED ) * - 6 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9038
SELECT ALL CAST ( NULL AS INTEGER ) * - 6 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9039
SELECT ALL + - ( + COUNT( * ) ) col0 FROM tab0 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9039
SELECT ALL + - ( + COUNT ( * ) ) col0 FROM tab0 cor0
----
-3

query I rowsort
SELECT - + col0 FROM tab0 AS cor0 WHERE NULL < col0
----

query I rowsort
SELECT col2 * - - 36 AS col0 FROM tab2
----
1440
2088
828

query II rowsort
SELECT 50 * + col2, - col2 AS col0 FROM tab0
----
2350
-47
4950
-99
500
-10

query I rowsort
SELECT DISTINCT col2 - + 87 + - - ( col1 ) - - + 1 * + + 67 * + 44 + col2 AS col2 FROM tab2 AS cor0
----
2958
3018
3044

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9044
SELECT DISTINCT + + col0 + - col1 * + - col2 * - + CAST( NULL AS SIGNED ) + - ( + 62 ) * + + col0 * - col2 AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9044
SELECT DISTINCT + + col0 + - col1 * + - col2 * - + CAST ( NULL AS INTEGER ) + - ( + 62 ) * + + col0 * - col2 AS col0 FROM tab0 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9045
SELECT - 12 DIV + - col2 - - - 11 AS col1 FROM tab2 AS cor0
----
-11
-11
-11

skipif mysql # not compatible
query I rowsort label-9045
SELECT - 12 / + - col2 - - - 11 AS col1 FROM tab2 AS cor0
----
-11
-11
-11

query I rowsort
SELECT + col2 + + - col1 * - - ( + col2 ) * + col0 AS col2 FROM tab0 AS cor0
----
-18260
-57058
-9504

query I rowsort
SELECT - 52 + + 17 FROM tab2 AS cor0
----
-35
-35
-35

query I rowsort
SELECT DISTINCT col0 * 43 + + 18 - col2 + + 22 FROM tab1 AS cor0
----
2137
3636
3885

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + col0 * 35 >= 15
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9050
SELECT DISTINCT + CAST( + - COUNT( * ) AS SIGNED ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9050
SELECT DISTINCT + CAST ( + - COUNT ( * ) AS INTEGER ) AS col1 FROM tab1
----
-3

query I rowsort
SELECT DISTINCT 52 FROM tab2, tab1 AS cor0
----
52

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT 67 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9053
SELECT - ( - - CAST( - col2 AS SIGNED ) ) AS col2 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-9053
SELECT - ( - - CAST ( - col2 AS INTEGER ) ) AS col2 FROM tab1
----
59
68
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 + - + ( col0 ) + + 3 * + 22 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col0, 71 AS col0 FROM tab0 AS cor0
----
15
71
87
71
97
71

query I rowsort
SELECT DISTINCT + 97 * - col0 AS col0 FROM tab0 AS cor0
----
-1455
-8439
-9409

onlyif mysql # DIV for integer division: 
query I rowsort label-9057
SELECT DISTINCT - col1 - col2 + - col0 * - 52 + col2 + - 95 DIV 92 AS col0 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
2637
4414
4684

skipif mysql # not compatible
query I rowsort label-9057
SELECT DISTINCT - col1 - col2 + - col0 * - 52 + col2 + - 95 / 92 AS col0 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
2637
4414
4684

query III rowsort
SELECT * FROM tab2 WHERE NOT 30 + + - col2 + + ( - - col1 ) * - col0 * + - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 82 AS col0, - col1 col2 FROM tab0
----
-82
-1
-82
-21
-82
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9060
SELECT DISTINCT - COUNT( * ) col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9060
SELECT DISTINCT - COUNT ( * ) col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9061
SELECT DISTINCT + SUM( DISTINCT + 97 ) FROM tab2 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-9061
SELECT DISTINCT + SUM ( DISTINCT + 97 ) FROM tab2 AS cor0
----
97

query I rowsort
SELECT ALL 76 + - 88 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col2 col2, col2 * + col1 FROM tab1 AS cor0
----
59
295
68
3196
96
1344

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9064
SELECT + 39 + + + CAST( NULL AS SIGNED ) + - col0 / - ( - col2 ) * + + col1 * col1 - + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9064
SELECT + 39 + + + CAST ( NULL AS INTEGER ) + - col0 / - ( - col2 ) * + + col1 * col1 - + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + ( + - col2 ) AND 25
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 43 * + + col2 + - col2 + + 81 * col2 col0 FROM tab0 AS cor0
----
12177
1230
5781

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9067
SELECT col0 * col1 * col1 * - 8 * - col2 + CAST( + col2 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-9067
SELECT col0 * col1 * col1 * - 8 * - col2 + CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 63 col2 FROM tab0 WHERE 68 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL >= - - col1
----

query I rowsort
SELECT DISTINCT + ( + col1 ) + + 19 FROM tab0
----
100
20
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - - col1 ) col1 FROM tab2
----
-51
-67
-77

query I rowsort
SELECT ALL - 11 AS col0 FROM tab2 WHERE + col1 IS NULL
----

query I rowsort
SELECT ALL + 38 + + col2 * - col2 * - - col0 AS col1 FROM tab2
----
-102362
-24296
-252262

query I rowsort
SELECT DISTINCT + col2 * + 59 AS col0 FROM tab1
----
3481
4012
5664

query II rowsort
SELECT + ( + col1 ) AS col2, 86 + - + 37 + - col1 * - - col0 AS col0 FROM tab0 AS cor0
----
1
-48
21
-1778
81
-1166

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9076
SELECT ALL - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NOT col2 * col1 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9076
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NOT col2 * col1 IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9077
SELECT ALL + + COUNT( ALL - col0 ) col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9077
SELECT ALL + + COUNT ( ALL - col0 ) col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT + + 62 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9079
SELECT DISTINCT + MIN( DISTINCT - 39 ) * + 88 FROM tab1, tab0 AS cor0
----
-3432

skipif mysql # not compatible
query I rowsort label-9079
SELECT DISTINCT + MIN ( DISTINCT - 39 ) * + 88 FROM tab1, tab0 AS cor0
----
-3432

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9080
SELECT ALL - COUNT( * ) DIV 75 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-9080
SELECT ALL - COUNT ( * ) / 75 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
0

query I rowsort
SELECT ALL 68 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9082
SELECT DISTINCT - 48 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9082
SELECT DISTINCT - 48 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL AVG ( - col1 ) * + - 64 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9084
SELECT DISTINCT - 8 - + MAX( + 57 ) AS col1 FROM tab1 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-9084
SELECT DISTINCT - 8 - + MAX ( + 57 ) AS col1 FROM tab1 AS cor0
----
-65

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 / + - 94 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + ( + 71 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-9087
SELECT - col2 DIV + col1, col0 AS col1 FROM tab0 WHERE NOT - 8 + - - ( - + col2 ) * + col0 + 76 + - - 53 IS NULL
----
-99
97
0
15
0
87

skipif mysql # not compatible
query II rowsort label-9087
SELECT - col2 / + col1, col0 AS col1 FROM tab0 WHERE NOT - 8 + - - ( - + col2 ) * + col0 + 76 + - - 53 IS NULL
----
-99
97
0
15
0
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9088
SELECT DISTINCT SUM( - + 71 ) FROM tab0
----
-213

skipif mysql # not compatible
query I rowsort label-9088
SELECT DISTINCT SUM ( - + 71 ) FROM tab0
----
-213

query I rowsort
SELECT ALL - + 98 * - - col0 - - - col2 AS col0 FROM tab1 WHERE NOT - 60 * + 76 * - 62 < NULL
----

query I rowsort
SELECT ALL + + col1 * + col2 AS col2 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND - + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9091
SELECT DISTINCT + + ( - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9091
SELECT DISTINCT + + ( - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL ( - col0 ) - + col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + col0 AS col0 FROM tab2 cor0 WHERE NOT - col1 IS NULL
----
46
64
75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <> 49
----

query I rowsort
SELECT + - 6 FROM tab0 AS cor0 WHERE NOT + col1 + - col0 * + 87 + - col0 IS NULL
----
-6
-6
-6

query I rowsort
SELECT + - col2 FROM tab2 AS cor0 WHERE 12 / col2 IS NULL
----

query I rowsort
SELECT DISTINCT 28 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - - 62 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9099
SELECT DISTINCT MIN( ALL + ( + col0 ) ) AS col0 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-9099
SELECT DISTINCT MIN ( ALL + ( + col0 ) ) AS col0 FROM tab2 AS cor0
----
46

query I rowsort
SELECT DISTINCT + 22 + - - 81 AS col0 FROM tab1
----
103

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9101
SELECT ALL col1 + + col2 AS col0, + 86 + + CAST( col1 AS SIGNED ) col2 FROM tab0
----
100
87
128
167
31
107

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9101
SELECT ALL col1 + + col2 AS col0, + 86 + + CAST ( col1 AS INTEGER ) col2 FROM tab0
----
100
87
128
167
31
107

query III rowsort
SELECT * FROM tab0 WHERE col2 NOT BETWEEN NULL AND col0
----
15
81
47
97
1
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + - 21 col2 FROM tab0
----
-6
66
76

query I rowsort
SELECT ALL col2 * + col1 + col0 + col2 FROM tab2 AS cor0
----
1242
3184
4019

query I rowsort
SELECT + 57 + - + col2 FROM tab2 AS cor0
----
-1
17
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9106
SELECT DISTINCT - ( + - COUNT( + col2 ) ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9106
SELECT DISTINCT - ( + - COUNT ( + col2 ) ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-9107
SELECT + - 22, COUNT( * ) * - 47 col2 FROM tab2 AS cor0
----
-22
-141

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9107
SELECT + - 22, COUNT ( * ) * - 47 col2 FROM tab2 AS cor0
----
-22
-141

query I rowsort
SELECT ALL col1 * + ( 89 ) FROM tab0
----
1869
7209
89

query I rowsort
SELECT DISTINCT - - col1 + 39 AS col0 FROM tab1 AS cor0
----
44
53
86

onlyif mysql # aggregate syntax: 
query II rowsort label-9110
SELECT - 14 AS col1, + COUNT( * ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
-14
0

skipif mysql # not compatible
query II rowsort label-9110
SELECT - 14 AS col1, + COUNT ( * ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
-14
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9111
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE NOT - col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9111
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - col2 IS NULL
----
3

query I rowsort
SELECT ALL + ( - - 54 ) FROM tab1 AS cor0
----
54
54
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9113
SELECT DISTINCT - 71 * + + COUNT( * ) FROM tab2
----
-213

skipif mysql # not compatible
query I rowsort label-9113
SELECT DISTINCT - 71 * + + COUNT ( * ) FROM tab2
----
-213

query I rowsort
SELECT DISTINCT - col0 * - col0 * + 30 FROM tab1
----
216750
248430
78030

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND - - col0 + col0
----

query I rowsort
SELECT ALL + + 69 - - col0 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
156
166
84

onlyif mysql # DIV for integer division: 
query I rowsort label-9117
SELECT col1 DIV + 55 col0 FROM tab0
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9117
SELECT col1 / + 55 col0 FROM tab0
----
0
0
1

query III rowsort
SELECT * FROM tab1 WHERE NOT + 53 * + 11 + - 60 * + col2 - + - col1 BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9119
SELECT ALL SUM( ALL + 69 ) FROM tab0 AS cor0
----
207

skipif mysql # not compatible
query I rowsort label-9119
SELECT ALL SUM ( ALL + 69 ) FROM tab0 AS cor0
----
207

onlyif mysql # DIV for integer division: 
query I rowsort label-9120
SELECT + 53 DIV - + 62 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9120
SELECT + 53 / - + 62 AS col1 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT - - 43, ( - col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
43
-10
43
-47
43
-99

query I rowsort
SELECT ALL - col1 + - ( + col0 ) AS col0 FROM tab1
----
-138
-65
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9123
SELECT ALL + col0 * - 34 + - + col1 + + + ( + CAST( NULL AS SIGNED ) ) * + col0 * - col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9123
SELECT ALL + col0 * - 34 + - + col1 + + + ( + CAST ( NULL AS INTEGER ) ) * + col0 * - col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9124
SELECT - 53 + - - CAST( + col1 AS SIGNED ) FROM tab1
----
-39
-48
-6

skipif mysql # not compatible
query I rowsort label-9124
SELECT - 53 + - - CAST ( + col1 AS INTEGER ) FROM tab1
----
-39
-48
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9125
SELECT 67 * - CAST( + 36 AS SIGNED ) + + COUNT( * ) FROM tab2 AS cor0
----
-2409

skipif mysql # not compatible
query I rowsort label-9125
SELECT 67 * - CAST ( + 36 AS INTEGER ) + + COUNT ( * ) FROM tab2 AS cor0
----
-2409

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9126
SELECT + + CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0 WHERE + 97 + + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9126
SELECT + + CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0 WHERE + 97 + + CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9127
SELECT + ( AVG ( ALL + CAST( NULL AS SIGNED ) ) ) + + - 79 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9127
SELECT + ( AVG ( ALL + CAST ( NULL AS INTEGER ) ) ) + + - 79 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9128
SELECT + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE - col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9128
SELECT + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE - col1 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9129
SELECT DISTINCT - ( + - MIN( DISTINCT - 90 ) ) FROM tab1 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-9129
SELECT DISTINCT - ( + - MIN ( DISTINCT - 90 ) ) FROM tab1 AS cor0
----
-90

query III rowsort
SELECT * FROM tab1 WHERE - col0 >= + col2 * col0 * - + col0 * - 91 + - col1
----

query I rowsort
SELECT col0 * + - ( + col2 ) AS col0 FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT DISTINCT + col1 + 32 AS col2 FROM tab1
----
37
46
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9133
SELECT SUM( DISTINCT - 72 ) FROM tab0
----
-72

skipif mysql # not compatible
query I rowsort label-9133
SELECT SUM ( DISTINCT - 72 ) FROM tab0
----
-72

query III rowsort
SELECT * FROM tab1 WHERE - ( col1 ) BETWEEN + + col0 * col1 AND - + col1 + col1 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9135
SELECT - 71 * COUNT( * ) * - - 1 AS col0 FROM tab2 WHERE - 59 + + - 16 * + - col2 NOT IN ( col2 * col1, - ( ( - col2 ) ) * - col2 / col0, - col2 )
----
-213

skipif mysql # not compatible
query I rowsort label-9135
SELECT - 71 * COUNT ( * ) * - - 1 AS col0 FROM tab2 WHERE - 59 + + - 16 * + - col2 NOT IN ( col2 * col1, - ( ( - col2 ) ) * - col2 / col0, - col2 )
----
-213

query I rowsort
SELECT DISTINCT + 3 - + col2 * - 83 AS col2 FROM tab2 AS cor0
----
1912
3323
4817

query I rowsort
SELECT ALL + + col2 - + - col0 FROM tab1 AS cor0
----
144
147
159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9138
SELECT + ( + + 60 ) + SUM( DISTINCT + ( - CAST( col0 AS SIGNED ) ) ) FROM tab2 AS cor0
----
-125

skipif mysql # not compatible
query I rowsort label-9138
SELECT + ( + + 60 ) + SUM ( DISTINCT + ( - CAST ( col0 AS INTEGER ) ) ) FROM tab2 AS cor0
----
-125

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL = - - col2
----

query I rowsort
SELECT - 77 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107

query I rowsort
SELECT DISTINCT + - ( + ( - 17 ) ) AS col1 FROM tab1 AS cor0
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9142
SELECT - - col2 AS col2, CAST( NULL AS SIGNED ) + col1 / + 49 AS col2 FROM tab0 cor0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-9142
SELECT - - col2 AS col2, CAST ( NULL AS INTEGER ) + col1 / + 49 AS col2 FROM tab0 cor0
----
10
NULL
47
NULL
99
NULL

query I rowsort
SELECT + - 31 + ( col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT 79 IS NOT NULL
----

query I rowsort
SELECT - ( + 2 ) FROM tab2
----
-2
-2
-2

query I rowsort
SELECT 62 + + ( 91 ) + + 80 * + 16 FROM tab1, tab2 cor0
----
9 values hashing to 156d97cc5d94ba4f3a569ea519cb33c5

query III rowsort
SELECT + col1 * - - col1 AS col2, col1 AS col2, + - col1 FROM tab0
----
9 values hashing to e8c3ace73afc8aede751cf2b387c653b

query I rowsort
SELECT DISTINCT col2 * - col1 * - col0 FROM tab0
----
18270
57105
9603

onlyif mysql # DIV for integer division: 
query I rowsort label-9148
SELECT ALL col1 DIV - - 33 FROM tab2
----
1
2
2

skipif mysql # not compatible
query I rowsort label-9148
SELECT ALL col1 / - - 33 FROM tab2
----
1
2
2

onlyif mysql # DIV for integer division: 
query II rowsort label-9149
SELECT ALL - col1 DIV 55 * - - col1, - col2 AS col1 FROM tab2
----
-67
-58
-77
-40
0
-23

skipif mysql # not compatible
query II rowsort label-9149
SELECT ALL - col1 / 55 * - - col1, - col2 AS col1 FROM tab2
----
-67
-58
-77
-40
0
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-9150
SELECT MIN( + - col2 ) AS col1 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-9150
SELECT MIN ( + - col2 ) AS col1 FROM tab1
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-9151
SELECT + + col1 + + col1 DIV col1 AS col1 FROM tab1 AS cor0
----
15
48
6

skipif mysql # not compatible
query I rowsort label-9151
SELECT + + col1 + + col1 / col1 AS col1 FROM tab1 AS cor0
----
15
48
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9152
SELECT - + COUNT( * ) + + MIN( ALL + + 50 ) AS col2 FROM tab2 cor0
----
47

skipif mysql # not compatible
query I rowsort label-9152
SELECT - + COUNT ( * ) + + MIN ( ALL + + 50 ) AS col2 FROM tab2 cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9153
SELECT COUNT( - - 16 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9153
SELECT COUNT ( - - 16 ) FROM tab0
----
3

query I rowsort
SELECT ALL 25 * - ( 26 ) + + col0 FROM tab1
----
-559
-565
-599

query I rowsort
SELECT DISTINCT + + col0 FROM tab0 AS cor0 WHERE + col1 + + col0 IS NOT NULL
----
15
87
97

query II rowsort
SELECT + col2 AS col0, col2 AS col1 FROM tab1 AS cor0 WHERE NULL <> ( NULL )
----

query I rowsort
SELECT ALL + col1 * + ( + - ( + 91 ) ) + - 60 * + col2 + + col0 FROM tab0 cor0
----
-10176
-2424
-5934

query I rowsort
SELECT DISTINCT + ( 15 ) + - - 94 AS col0 FROM tab2 AS cor0
----
109

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9159
SELECT * FROM tab1 AS cor0 WHERE ( NOT + col1 / - col1 + CAST( NULL AS SIGNED ) < - + 14 / - 81 + + col2 )
----

skipif mysql # not compatible
query III rowsort label-9159
SELECT * FROM tab1 AS cor0 WHERE ( NOT + col1 / - col1 + CAST ( NULL AS INTEGER ) < - + 14 / - 81 + + col2 )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL <= ( 16 + - col1 )
----

query I rowsort
SELECT + 60 + + col2 AS col2 FROM tab2 AS cor0
----
100
118
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9162
SELECT ALL - ( - 23 ) AS col0 FROM tab1 WHERE - col1 + - - col2 + + - ( CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9162
SELECT ALL - ( - 23 ) AS col0 FROM tab1 WHERE - col1 + - - col2 + + - ( CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 + + col0 AS col0, col0 col1 FROM tab1
----
144
85
147
51
159
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9164
SELECT col2 + - ( + CAST( NULL AS SIGNED ) ) + + col0 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9164
SELECT col2 + - ( + CAST ( NULL AS INTEGER ) ) + + col0 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * - 14 + - 91 * + col2 FROM tab0
----
-10395
-1050
-4935

query II rowsort
SELECT DISTINCT - col0 + + + col0 AS col2, + col1 AS col2 FROM tab0
----
0
1
0
21
0
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9167
SELECT + + COUNT( ALL - 97 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9167
SELECT + + COUNT ( ALL - 97 ) FROM tab1 cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 96 >= NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 NOT BETWEEN - 98 AND 92
----
51
14
96

query I rowsort
SELECT DISTINCT - 48 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-48

query I rowsort
SELECT col0 FROM tab0 WHERE NOT ( 31 - - col2 IN ( col1 * + col2 ) )
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 / - - 36 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9173
SELECT + COUNT( * ) * - - 45 FROM tab2 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-9173
SELECT + COUNT ( * ) * - - 45 FROM tab2 AS cor0
----
135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9174
SELECT - + col2 / 97 / - CAST( NULL AS SIGNED ) + + - 62 + - - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9174
SELECT - + col2 / 97 / - CAST ( NULL AS INTEGER ) + + - 62 + - - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9175
SELECT + MAX( CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9175
SELECT + MAX ( CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - 43 * - - col1 FROM tab0 AS cor0
----
-3483
-43
-903

query I rowsort
SELECT 19 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( col1 )
----

query I rowsort
SELECT DISTINCT 55 * - + col0 FROM tab2
----
-2530
-3520
-4125

onlyif mysql # aggregate syntax: 
query II rowsort label-9179
SELECT COUNT( * ), - 20 AS col2 FROM tab1
----
3
-20

skipif mysql # not compatible
query II rowsort label-9179
SELECT COUNT ( * ), - 20 AS col2 FROM tab1
----
3
-20

query III rowsort
SELECT ALL * FROM tab0 WHERE - - 95 - - + col0 > + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 40 * + - 23 AS col0 FROM tab1
----
-920
-920
-920

query II rowsort
SELECT - 63 AS col0, + col0 + - - col0 - - col2 - + 86 * - col0 AS col1 FROM tab2
----
-63
4071
-63
5672
-63
6658

onlyif mysql # aggregate syntax: 
query I rowsort label-9183
SELECT DISTINCT MAX( - 49 ) FROM tab2
----
-49

skipif mysql # not compatible
query I rowsort label-9183
SELECT DISTINCT MAX ( - 49 ) FROM tab2
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9184
SELECT ALL MAX( ALL + + ( - + ( + + col2 ) ) ) * + 65 DIV MIN( - 31 ) * + + COUNT( * ) * MIN( DISTINCT - col2 ) + - 3 + - + 62 col2 FROM tab0 AS cor0
----
-6005

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9184
SELECT ALL MAX ( ALL + + ( - + ( + + col2 ) ) ) * + 65 / MIN ( - 31 ) * + + COUNT ( * ) * MIN ( DISTINCT - col2 ) + - 3 + - + 62 col2 FROM tab0 AS cor0
----
-6005

query I rowsort
SELECT DISTINCT + ( - col1 ) * + col0 * - 43 FROM tab2 AS cor0
----
100878
211904
216075

onlyif mysql # aggregate syntax: 
query II rowsort label-9186
SELECT ALL MAX( + + col1 ), 96 AS col2 FROM tab0 AS cor0
----
81
96

skipif mysql # not compatible
query II rowsort label-9186
SELECT ALL MAX ( + + col1 ), 96 AS col2 FROM tab0 AS cor0
----
81
96

query I rowsort
SELECT - 83 * + + 87 AS col0 FROM tab1 cor0
----
-7221
-7221
-7221

query I rowsort
SELECT DISTINCT - col0 * + col0 * + col2 FROM tab2 AS cor0
----
-163840
-326250
-48668

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9189
SELECT 5 DIV + - SUM( col1 ) + - + 26, + 80 AS col1 FROM tab1 AS cor0
----
-26
80

skipif mysql # not compatible
query II rowsort label-9189
SELECT 5 / + - SUM ( col1 ) + - + 26, + 80 AS col1 FROM tab1 AS cor0
----
-26
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9190
SELECT DISTINCT - - MAX( DISTINCT + 18 ) * + 77 FROM tab2 AS cor0
----
1386

skipif mysql # not compatible
query I rowsort label-9190
SELECT DISTINCT - - MAX ( DISTINCT + 18 ) * + 77 FROM tab2 AS cor0
----
1386

query I rowsort
SELECT + 97 * ( ( + col1 ) ) FROM tab1 AS cor0
----
1358
4559
485

query I rowsort
SELECT DISTINCT + col2 + - col1 * ( + col2 ) FROM tab2
----
-1150
-3040
-3828

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 <> + - 46
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT col1 + - col2 + + 29 FROM tab2 AS cor0
----
38
57
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9196
SELECT - COUNT( * ) * + COUNT( * ) FROM tab2 cor0 WHERE ( NULL ) = - - col2
----
0

skipif mysql # not compatible
query I rowsort label-9196
SELECT - COUNT ( * ) * + COUNT ( * ) FROM tab2 cor0 WHERE ( NULL ) = - - col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9197
SELECT DISTINCT - 39 + + COUNT( - + col1 ) AS col0 FROM tab0 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-9197
SELECT DISTINCT - 39 + + COUNT ( - + col1 ) AS col0 FROM tab0 AS cor0
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-9198
SELECT DISTINCT + col2 DIV col0 DIV - col1 col2 FROM tab2 cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9198
SELECT DISTINCT + col2 / col0 / - col1 col2 FROM tab2 cor0
----
0

query I rowsort
SELECT ALL + + col0 - - - 14 FROM tab2 AS cor0
----
32
50
61

query III rowsort
SELECT * FROM tab2 cor0 WHERE + 14 IS NULL
----

query I rowsort
SELECT 76 * + + col0 FROM tab2
----
3496
4864
5700

query I rowsort
SELECT DISTINCT + col1 * - col1 + 32 AS col1 FROM tab1
----
-164
-2177
7

query I rowsort
SELECT DISTINCT - + col2 * - col2 + + col0 AS col0 FROM tab2 AS cor0
----
1664
3439
575

onlyif mysql # aggregate syntax: 
query I rowsort label-9204
SELECT + + 94 + - 97 - + + COUNT( * ) * + + 53 FROM tab1 cor0
----
-162

skipif mysql # not compatible
query I rowsort label-9204
SELECT + + 94 + - 97 - + + COUNT ( * ) * + + 53 FROM tab1 cor0
----
-162

query I rowsort
SELECT ( + col2 ) + 35 AS col0 FROM tab2
----
58
75
93

query III rowsort
SELECT * FROM tab1 WHERE - 72 * col2 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + 77 IN ( + col1 )
----
64
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9208
SELECT ALL + SUM( DISTINCT + 47 ) FROM tab2
----
47

skipif mysql # not compatible
query I rowsort label-9208
SELECT ALL + SUM ( DISTINCT + 47 ) FROM tab2
----
47

query I rowsort
SELECT col2 * - col0 + + ( + col1 ) FROM tab0
----
-624
-849
-9602

onlyif mysql # DIV for integer division: 
query I rowsort label-9210
SELECT col0 DIV + col2 + + col1 AS col0 FROM tab1
----
14
48
6

skipif mysql # not compatible
query I rowsort label-9210
SELECT col0 / + col2 + + col1 AS col0 FROM tab1
----
14
48
6

query I rowsort
SELECT DISTINCT - col2 + + 4 AS col1 FROM tab1
----
-55
-64
-92

query I rowsort
SELECT DISTINCT col2 * + 58 - 21 AS col2 FROM tab0
----
2705
559
5721

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9213
SELECT DISTINCT * FROM tab0 WHERE - 48 + - col1 * - CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND col0 * - col2
----

skipif mysql # not compatible
query III rowsort label-9213
SELECT DISTINCT * FROM tab0 WHERE - 48 + - col1 * - CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND col0 * - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9214
SELECT MIN( col0 ) * COUNT( * ) + + 90 AS col1 FROM tab0
----
135

skipif mysql # not compatible
query I rowsort label-9214
SELECT MIN ( col0 ) * COUNT ( * ) + + 90 AS col1 FROM tab0
----
135

onlyif mysql # DIV for integer division: 
query I rowsort label-9215
SELECT DISTINCT 24 DIV - 18 + - col2 FROM tab1
----
-60
-69
-97

skipif mysql # not compatible
query I rowsort label-9215
SELECT DISTINCT 24 / - 18 + - col2 FROM tab1
----
-60
-69
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9216
SELECT - ( + 45 ) DIV MAX( CAST( col1 AS SIGNED ) + col0 * col1 ) + MAX( DISTINCT + 68 ) AS col1 FROM tab2
----
68

skipif mysql # not compatible
query I rowsort label-9216
SELECT - ( + 45 ) / MAX ( CAST ( col1 AS INTEGER ) + col0 * col1 ) + MAX ( DISTINCT + 68 ) AS col1 FROM tab2
----
68

query I rowsort
SELECT col2 FROM tab0 WHERE NOT NULL > col0 + + col2
----

query I rowsort
SELECT DISTINCT - 50 + col1 * - 0 FROM tab1
----
-50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 83 col2 FROM tab1
----
83

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 25 * col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9221
SELECT SUM( DISTINCT 0 ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9221
SELECT SUM ( DISTINCT 0 ) AS col0 FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 57 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col0 + - col1 * 88 FROM tab1
----
-1181
-355
-4045

onlyif mysql # aggregate syntax: 
query I rowsort label-9224
SELECT + COUNT( col0 ) + 49 AS col1 FROM tab2
----
52

skipif mysql # not compatible
query I rowsort label-9224
SELECT + COUNT ( col0 ) + 49 AS col1 FROM tab2
----
52

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN + 12 * 11 + col1 * + col1 AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) BETWEEN + 15 * + 32 AND ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9227
SELECT DISTINCT 73 + - COUNT( * ) AS col2 FROM tab2
----
70

skipif mysql # not compatible
query I rowsort label-9227
SELECT DISTINCT 73 + - COUNT ( * ) AS col2 FROM tab2
----
70

query I rowsort
SELECT ALL - col0 * + col2 + col0 * + col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 76 * col1 AS col2 FROM tab1 AS cor0 WHERE NOT - col2 * + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9230
SELECT ALL 56 * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-168

skipif mysql # not compatible
query I rowsort label-9230
SELECT ALL 56 * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-168

query I rowsort
SELECT col1 * + ( 37 ) + 53 FROM tab2 AS cor0
----
1940
2532
2902

query I rowsort
SELECT - col0 + - 52 FROM tab1 cor0
----
-103
-137
-143

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9233
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 86 NOT IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9233
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 86 NOT IN ( CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL > ( + col0 * - col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN ( + col2 ) AND - col2
----

query I rowsort
SELECT DISTINCT + 81 * ( 22 * 15 ) + - col1 FROM tab2 AS cor0
----
26653
26663
26679

onlyif mysql # aggregate syntax: 
query I rowsort label-9237
SELECT - 32 - ( - MAX( col0 ) ) FROM tab2 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-9237
SELECT - 32 - ( - MAX ( col0 ) ) FROM tab2 AS cor0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9238
SELECT ALL - + COUNT( * ) - 48 * COUNT( * ) AS col1 FROM tab1 AS cor0
----
-147

skipif mysql # not compatible
query I rowsort label-9238
SELECT ALL - + COUNT ( * ) - 48 * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-9239
SELECT - + COUNT( DISTINCT 35 ) - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-9239
SELECT - + COUNT ( DISTINCT 35 ) - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-4

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - 57 ) IN ( ( - col0 ) )
----

query I rowsort
SELECT - 52 * ( 93 + + col2 ) + 54 FROM tab1 cor0
----
-7850
-8318
-9774

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 29 = ( NULL )
----

query I rowsort
SELECT ALL + col1 - - 61 FROM tab0 AS cor0
----
142
62
82

query I rowsort
SELECT ALL - col1 FROM tab2 AS cor0 WHERE NOT 32 IS NULL
----
-51
-67
-77

query III rowsort
SELECT * FROM tab2 WHERE 69 + - 75 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9246
SELECT CAST( NULL AS SIGNED ) * + 37 + col0 * col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9246
SELECT CAST ( NULL AS INTEGER ) * + 37 + col0 * col2 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9247
SELECT COUNT( * ) + - + MAX( - 20 ) * COUNT( * ) AS col1 FROM tab0
----
63

skipif mysql # not compatible
query I rowsort label-9247
SELECT COUNT ( * ) + - + MAX ( - 20 ) * COUNT ( * ) AS col1 FROM tab0
----
63

query I rowsort
SELECT DISTINCT col0 * 20 FROM tab0
----
1740
1940
300

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN 89 * - ( + col2 ) + 20 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9250
SELECT ALL MIN( + CAST( NULL AS DECIMAL ) ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9250
SELECT ALL MIN ( + CAST ( NULL AS REAL ) ) FROM tab1 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col2 FROM tab0 AS cor0 WHERE NOT col2 = ( col1 )
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-9252
SELECT DISTINCT - 67 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-9252
SELECT DISTINCT - 67 / col2 col1 FROM tab2 AS cor0
----
-1
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-9253
SELECT DISTINCT col2 DIV ( 30 ) AS col2 FROM tab1 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-9253
SELECT DISTINCT col2 / ( 30 ) AS col2 FROM tab1 AS cor0
----
1
2
3

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( 96 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 * - col0 AS col0 FROM tab1 WHERE NOT + - col0 <> - 68
----

query I rowsort
SELECT - col0 AS col1 FROM tab2 WHERE NOT ( NOT + col1 BETWEEN ( NULL ) AND NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9257
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST( + col0 AS SIGNED ) >= + col2
----
15
81
47
97
1
99

skipif mysql # not compatible
query III rowsort label-9257
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST ( + col0 AS INTEGER ) >= + col2
----
15
81
47
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9258
SELECT 79 * - COUNT( DISTINCT - 82 * + col1 ) FROM tab0 cor0 WHERE NOT col1 IS NULL
----
-237

skipif mysql # not compatible
query I rowsort label-9258
SELECT 79 * - COUNT ( DISTINCT - 82 * + col1 ) FROM tab0 cor0 WHERE NOT col1 IS NULL
----
-237

onlyif mysql # aggregate syntax: 
query I rowsort label-9259
SELECT + + SUM( DISTINCT - + col1 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-9259
SELECT + + SUM ( DISTINCT - + col1 ) FROM tab1 AS cor0
----
-66

query II rowsort
SELECT DISTINCT - - col0, col0 FROM tab1 AS cor0
----
51
51
85
85
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9261
SELECT - 99 * 83 * + 88 * - COUNT( * ) AS col2 FROM tab2 cor0
----
2169288

skipif mysql # not compatible
query I rowsort label-9261
SELECT - 99 * 83 * + 88 * - COUNT ( * ) AS col2 FROM tab2 cor0
----
2169288

onlyif mysql # aggregate syntax: 
query I rowsort label-9262
SELECT ALL - - MAX( + col1 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-9262
SELECT ALL - - MAX ( + col1 ) FROM tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9263
SELECT ALL COUNT( * ) AS col2 FROM tab2 cor0 WHERE ( 97 + - + col1 * + col2 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9263
SELECT ALL COUNT ( * ) AS col2 FROM tab2 cor0 WHERE ( 97 + - + col1 * + col2 ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9264
SELECT + - 58 + COUNT( * ) col2 FROM tab1 AS cor0
----
-55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9264
SELECT + - 58 + COUNT ( * ) col2 FROM tab1 AS cor0
----
-55

query I rowsort
SELECT - col0 * col2 + + - 71 FROM tab0 AS cor0
----
-776
-941
-9674

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + col2 - - + col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9267
SELECT 54 DIV - + col2 + 58 + + col0 FROM tab1 AS cor0
----
109
143
149

skipif mysql # not compatible
query I rowsort label-9267
SELECT 54 / - + col2 + 58 + + col0 FROM tab1 AS cor0
----
109
143
149

onlyif mysql # aggregate syntax: 
query I rowsort label-9268
SELECT DISTINCT SUM( + col0 ) AS col2 FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9268
SELECT DISTINCT SUM ( + col0 ) AS col2 FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 9 col0 FROM tab1 AS cor0 WHERE NOT - 26 / - col0 BETWEEN ( - col0 * + col0 + - col0 ) AND + 26 * + ( - col0 ) + col0 / col0 OR NOT ( - col0 ) IS NOT NULL
----
-9

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + 40 - + col2 + col1 IS NULL
----

query I rowsort
SELECT 31 FROM tab0 WHERE NOT + col0 * - - 55 / 13 NOT BETWEEN ( NULL ) AND col2
----

query I rowsort
SELECT ALL - col0 + 24 + - 83 * + col0 * + 83 + + col0 * + 85 AS col0 FROM tab0
----
-102051
-592011
-660061

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN col2 AND ( - col1 )
----

query I rowsort
SELECT DISTINCT - - 63 AS col2 FROM tab0 AS cor0
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-9275
SELECT col0 AS col1 FROM tab0 WHERE + col2 + col0 DIV col1 <> col2
----
87
97

skipif mysql # not compatible
query I rowsort label-9275
SELECT col0 AS col1 FROM tab0 WHERE + col2 + col0 / col1 <> col2
----
87
97

query I rowsort
SELECT DISTINCT col0 + 79 FROM tab1 WHERE NOT NULL IS NOT NULL
----
130
164
170

query I rowsort
SELECT ALL + - col1 FROM tab2 WHERE - - col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9278
SELECT - 88 + + - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-97

skipif mysql # not compatible
query I rowsort label-9278
SELECT - 88 + + - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-97

query II rowsort
SELECT col0 AS col0, - col2 AS col2 FROM tab0 AS cor0
----
15
-47
87
-10
97
-99

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 * col1 + - col0 + 24 * col0 >= NULL
----

query I rowsort
SELECT DISTINCT - ( + col1 ) * - + col2 - + col1 FROM tab2 AS cor0
----
1122
3003
3819

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9282
SELECT col2 * + col0 FROM tab0 AS cor0 WHERE - CAST( + 14 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-9282
SELECT col2 * + col0 FROM tab0 AS cor0 WHERE - CAST ( + 14 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9283
SELECT DISTINCT + 45 * - MIN( ALL - + col0 ) col1 FROM tab1 AS cor0
----
4095

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9283
SELECT DISTINCT + 45 * - MIN ( ALL - + col0 ) col1 FROM tab1 AS cor0
----
4095

query II rowsort
SELECT ALL 80 AS col1, col2 AS col0 FROM tab1 AS cor0 WHERE - 71 IS NOT NULL
----
80
59
80
68
80
96

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN - - col0 * + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9286
SELECT DISTINCT + + MAX( ALL - + 70 ) FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9286
SELECT DISTINCT + + MAX ( ALL - + 70 ) FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 72 * col0 col1 FROM tab0
----
1080
6264
6984

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT NULL <> ( NULL ) )
----

query I rowsort
SELECT ALL ( - - col0 ) * col0 AS col1 FROM tab1
----
2601
7225
8281

onlyif mysql # DIV for integer division: 
query I rowsort label-9290
SELECT DISTINCT + 30 DIV + col0 AS col1 FROM tab0
----
0
2

skipif mysql # not compatible
query I rowsort label-9290
SELECT DISTINCT + 30 / + col0 AS col1 FROM tab0
----
0
2

query I rowsort
SELECT + ( - 84 ) * + - col2 FROM tab1
----
4956
5712
8064

query I rowsort
SELECT + ( + 24 ) AS col1 FROM tab0 AS cor0
----
24
24
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9293
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0 WHERE + 64 BETWEEN col2 AND ( - ( + col0 ) + + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-9293
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0 WHERE + 64 BETWEEN col2 AND ( - ( + col0 ) + + col0 )
----
0

query I rowsort
SELECT - ( 49 ) * - + col0 AS col0 FROM tab1
----
2499
4165
4459

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9295
SELECT DISTINCT + - 95 + ( col0 ) col1 FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS DECIMAL ) + - col2 <= NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9295
SELECT DISTINCT + - 95 + ( col0 ) col1 FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS REAL ) + - col2 <= NULL
----

query I rowsort
SELECT DISTINCT + - 92 AS col0 FROM tab0 cor0
----
-92

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9297
SELECT ALL - CAST( + col2 AS DECIMAL ) * col2 + ( + col0 ) FROM tab0 AS cor0 WHERE NOT + 98 NOT IN ( + + col2 + - col0 * + col1, + col1 )
----

skipif mysql # not compatible
query I rowsort label-9297
SELECT ALL - CAST ( + col2 AS REAL ) * col2 + ( + col0 ) FROM tab0 AS cor0 WHERE NOT + 98 NOT IN ( + + col2 + - col0 * + col1, + col1 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( - col1, - col0 + + col2 )
----

query I rowsort
SELECT DISTINCT - col2 + - - col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND col2 - + col1 + col0
----

query I rowsort
SELECT ALL col0 * + col0 AS col2 FROM tab1 AS cor0 WHERE NOT 9 IN ( - col2 + - + col2 + 99 * - col0 )
----
2601
7225
8281

onlyif mysql # aggregate syntax: 
query I rowsort label-9301
SELECT COUNT( * ) * + MIN( + col2 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9301
SELECT COUNT ( * ) * + MIN ( + col2 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9302
SELECT 49 AS col2, COUNT( * ) AS col0 FROM tab2
----
49
3

skipif mysql # not compatible
query II rowsort label-9302
SELECT 49 AS col2, COUNT ( * ) AS col0 FROM tab2
----
49
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 * ( - col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col0 AS col2 FROM tab0 WHERE ( + + 26 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9305
SELECT DISTINCT - COUNT( * ), 33 AS col1 FROM tab1
----
-3
33

skipif mysql # not compatible
query II rowsort label-9305
SELECT DISTINCT - COUNT ( * ), 33 AS col1 FROM tab1
----
-3
33

query I rowsort
SELECT + ( 85 ) FROM tab0
----
85
85
85

onlyif mysql # DIV for integer division: 
query I rowsort label-9307
SELECT 39 DIV - col2 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9307
SELECT 39 / - col2 FROM tab2
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9308
SELECT DISTINCT - col2 + CAST( NULL AS SIGNED ) * - col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9308
SELECT DISTINCT - col2 + CAST ( NULL AS INTEGER ) * - col0 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9309
SELECT col2 + + col2 + + - col1 DIV col0 FROM tab2
----
116
45
79

skipif mysql # not compatible
query I rowsort label-9309
SELECT col2 + + col2 + + - col1 / col0 FROM tab2
----
116
45
79

query I rowsort
SELECT ALL col1 + 97 AS col2 FROM tab2
----
148
164
174

query II rowsort
SELECT ALL + 52, + col0 FROM tab1 AS cor0
----
52
51
52
85
52
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9312
SELECT ALL - COUNT( 71 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9312
SELECT ALL - COUNT ( 71 ) FROM tab0
----
-3

query I rowsort
SELECT + 97 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

onlyif mysql # aggregate syntax: 
query I rowsort label-9314
SELECT - ( COUNT( * ) ) AS col2 FROM tab2, tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9314
SELECT - ( COUNT ( * ) ) AS col2 FROM tab2, tab0 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9315
SELECT - - COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-9315
SELECT - - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - 67 col2 FROM tab0
----
-114
-166
-77

query I rowsort
SELECT 30 AS col1 FROM tab2 AS cor0 WHERE 84 IS NOT NULL
----
30
30
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 + - - 71 col2, - 50 * + 96 AS col0 FROM tab2 AS cor0
----
111
-4800
129
-4800
94
-4800

query I rowsort
SELECT DISTINCT + + col0 * + 79 + col1 FROM tab1 AS cor0 WHERE NULL >= - 31
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9320
SELECT + COUNT( * ) - COUNT( * ) * 14 * - 68 * - MIN( DISTINCT 11 ) FROM tab1 AS cor0
----
-31413

skipif mysql # not compatible
query I rowsort label-9320
SELECT + COUNT ( * ) - COUNT ( * ) * 14 * - 68 * - MIN ( DISTINCT 11 ) FROM tab1 AS cor0
----
-31413

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9321
SELECT col2 * col0 + CAST( NULL AS DECIMAL ) AS col2, col2 + + - 91 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-9321
SELECT col2 * col0 + CAST ( NULL AS REAL ) AS col2, col2 + + - 91 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + + col2 + - - 56 FROM tab2 AS cor0
----
114
79
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col0 + - + col0 * - - 20 col0 FROM tab0 AS cor0
----
-1806
-2036
-234

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( col0 ) <> col2 * col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9325
SELECT DISTINCT 48 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9325
SELECT DISTINCT 48 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT ALL col2 * 91 AS col0 FROM tab1 WHERE NULL >= - col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 NOT BETWEEN ( NULL ) AND + col1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + col1 ) > ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9329
SELECT DISTINCT + col1 * - col0 * col1 DIV - col1 FROM tab0
----
1215
1827
97

skipif mysql # not compatible
query I rowsort label-9329
SELECT DISTINCT + col1 * - col0 * col1 / - col1 FROM tab0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query II rowsort label-9330
SELECT ALL - COUNT( * ) AS col2, - COUNT( * ) col2 FROM tab1
----
-3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9330
SELECT ALL - COUNT ( * ) AS col2, - COUNT ( * ) col2 FROM tab1
----
-3
-3

query I rowsort
SELECT 9 * - 49 AS col2 FROM tab1
----
-441
-441
-441

query II rowsort
SELECT ( + - 13 ) * + + 85 AS col2, col2 + + ( ( - 72 ) ) FROM tab2
----
-1105
-14
-1105
-32
-1105
-49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 41 IS NOT NULL
----

query II rowsort
SELECT - col0, + col2 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - 24 * - - col0 FROM tab0 AS cor0
----
-2088
-2328
-360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9336
SELECT ALL - CAST( NULL AS SIGNED ) * col1 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9336
SELECT ALL - CAST ( NULL AS INTEGER ) * col1 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9337
SELECT DISTINCT - CAST( COUNT( DISTINCT + 79 ) AS SIGNED ) col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9337
SELECT DISTINCT - CAST ( COUNT ( DISTINCT + 79 ) AS INTEGER ) col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 + 17 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( - + col2 ) + + - col0 * + 27 AS col1 FROM tab1 AS cor0
----
-1473
-2354
-2525

onlyif mysql # aggregate syntax: 
query I rowsort label-9340
SELECT + COUNT( * ) + + - MIN( DISTINCT + col1 ) FROM tab2 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-9340
SELECT + COUNT ( * ) + + - MIN ( DISTINCT + col1 ) FROM tab2 AS cor0
----
-48

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( + 34 / + 74 + - col0 ) < col0 * 44 * + col1
----

query I rowsort
SELECT + col0 * + col1 + - col1 + + + 13 * + + 93 * 25 AS col2 FROM tab0 AS cor0
----
30321
31359
32031

query II rowsort
SELECT DISTINCT col2 AS col0, col0 FROM tab2 cor0
----
23
46
40
64
58
75

query I rowsort
SELECT col2 AS col2 FROM tab0 WHERE - 40 IS NOT NULL
----
10
47
99

query I rowsort
SELECT ALL + + ( - 92 ) FROM tab2 WHERE + - col0 / col0 * 28 + - + col1 * - - 1 + + - col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - col0 ) = NULL
----

query I rowsort
SELECT DISTINCT - 28 + col1 + - 19 FROM tab2 AS cor0
----
20
30
4

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 - - col1 IS NULL
----

query I rowsort
SELECT col0 * + 44 - 37 + + + col0 FROM tab2 AS cor0
----
2033
2843
3338

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9350
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + col0 + - + col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9350
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + col0 + - + col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - col1 + + 15 AS col2 FROM tab2
----
-36
-52
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-9352
SELECT DISTINCT - MAX( DISTINCT + ( - col0 ) ) + + 34 AS col0 FROM tab1
----
85

skipif mysql # not compatible
query I rowsort label-9352
SELECT DISTINCT - MAX ( DISTINCT + ( - col0 ) ) + + 34 AS col0 FROM tab1
----
85

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE 56 * col1 BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9354
SELECT + + COUNT( + 80 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9354
SELECT + + COUNT ( + 80 ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT + ( - + col1 ) AS col2 FROM tab0 AS cor0
----
-1
-21
-81

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( 36 + - col0 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - 36 * + 0 AS col1 FROM tab0 cor0
----
0
0
0

query II rowsort
SELECT 86 AS col2, + col2 * col0 FROM tab1 cor0
----
86
4896
86
5015
86
6188

onlyif mysql # aggregate syntax: 
query II rowsort label-9359
SELECT DISTINCT 36 AS col2, - COUNT( * ) FROM tab0 cor0
----
36
-3

skipif mysql # not compatible
query II rowsort label-9359
SELECT DISTINCT 36 AS col2, - COUNT ( * ) FROM tab0 cor0
----
36
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 82 * - ( + 51 ) col0 FROM tab2 AS cor0
----
-4182

query I rowsort
SELECT ALL 27 * + 26 AS col1 FROM tab0
----
702
702
702

onlyif mysql # aggregate syntax: 
query I rowsort label-9362
SELECT ALL - COUNT( DISTINCT 51 ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-9362
SELECT ALL - COUNT ( DISTINCT 51 ) FROM tab1
----
-1

query I rowsort
SELECT 89 * + col1 FROM tab0
----
1869
7209
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9364
SELECT SUM( - 89 ) * - 32 AS col1 FROM tab0
----
8544

skipif mysql # not compatible
query I rowsort label-9364
SELECT SUM ( - 89 ) * - 32 AS col1 FROM tab0
----
8544

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * - - 49 col0, - 16 AS col0 FROM tab0
----
4263
-16
4753
-16
735
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-9366
SELECT 48 * COUNT( * ) * 21 AS col1 FROM tab1
----
3024

skipif mysql # not compatible
query I rowsort label-9366
SELECT 48 * COUNT ( * ) * 21 AS col1 FROM tab1
----
3024

onlyif mysql # aggregate syntax: 
query I rowsort label-9367
SELECT 37 * + COUNT( * ) * - - 71 AS col0 FROM tab1
----
7881

skipif mysql # not compatible
query I rowsort label-9367
SELECT 37 * + COUNT ( * ) * - - 71 AS col0 FROM tab1
----
7881

query I rowsort
SELECT + col1 FROM tab0 WHERE NOT + col0 + + - col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9369
SELECT ALL + 30 DIV - col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9369
SELECT ALL + 30 / - col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9370
SELECT ALL 7, + COUNT( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
7
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9370
SELECT ALL 7, + COUNT ( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
7
9

query I rowsort
SELECT DISTINCT - 1 + col1 FROM tab0 cor0
----
0
20
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9372
SELECT ALL + CAST( NULL AS SIGNED ) * - + 25 + COUNT( * ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9372
SELECT ALL + CAST ( NULL AS INTEGER ) * - + 25 + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9373
SELECT + ( ( COUNT( * ) ) ) * SUM( DISTINCT - + 18 ) FROM tab0 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-9373
SELECT + ( ( COUNT ( * ) ) ) * SUM ( DISTINCT - + 18 ) FROM tab0 AS cor0
----
-54

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 24 <= NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 NOT IN ( + col0, col1 + - - 54 )
----
51
14
96
91
47
68

query I rowsort
SELECT ALL + 32 * 51 FROM tab0 cor0
----
1632
1632
1632

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9377
SELECT DISTINCT + COUNT( * ) DIV 2 AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9377
SELECT DISTINCT + COUNT ( * ) / 2 AS col1 FROM tab0 AS cor0
----
1

query I rowsort
SELECT - 14 * - ( + + ( - col0 ) ) FROM tab0 AS cor0
----
-1218
-1358
-210

query II rowsort
SELECT ALL - ( + col1 ) * - 43 / - col1 AS col0, + 93 * + 58 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9380
SELECT ALL + - COUNT( * ) * + 37 * + 50 AS col1 FROM tab0 cor0
----
-5550

skipif mysql # not compatible
query I rowsort label-9380
SELECT ALL + - COUNT ( * ) * + 37 * + 50 AS col1 FROM tab0 cor0
----
-5550

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 IN ( 25, 52 + 46 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9382
SELECT DISTINCT + ( + COUNT( * ) ) DIV 76, 11 AS col0 FROM tab2 AS cor0
----
0
11

skipif mysql # not compatible
query II rowsort label-9382
SELECT DISTINCT + ( + COUNT ( * ) ) / 76, 11 AS col0 FROM tab2 AS cor0
----
0
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 26 + col0 - - + 32 * + - col1 * col1 col2 FROM tab0 AS cor0
----
-14051
-209963
39

query I rowsort
SELECT + 68 * col2 * + 7 + 91 FROM tab0
----
22463
47215
4851

onlyif mysql # DIV for integer division: 
query I rowsort label-9385
SELECT 67 * - col1 + col0 DIV 66 AS col0 FROM tab1
----
-3148
-334
-938

skipif mysql # not compatible
query I rowsort label-9385
SELECT 67 * - col1 + col0 / 66 AS col0 FROM tab1
----
-3148
-334
-938

query I rowsort
SELECT + col1 + - - col2 - + col2 AS col1 FROM tab2
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 31 + col1 col1 FROM tab2
----
108
82
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9388
SELECT - ( + + 21 ) * - ( + COUNT( * ) ) FROM tab0 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-9388
SELECT - ( + + 21 ) * - ( + COUNT ( * ) ) FROM tab0 AS cor0
----
63

query I rowsort
SELECT - 36 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9390
SELECT SUM( - + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9390
SELECT SUM ( - + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 NOT IN ( + + 77 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col0 IN ( - 82, 62 + + col0, + col2 - + - col0 + ( + + col2 ) * col0, + 92 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-9393
SELECT - col0, + 29 DIV + - ( - - col0 ) AS col2 FROM tab2
----
-46
0
-64
0
-75
0

skipif mysql # not compatible
query II rowsort label-9393
SELECT - col0, + 29 / + - ( - - col0 ) AS col2 FROM tab2
----
-46
0
-64
0
-75
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - 81 + col2 = ( + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( - + 97 ) FROM tab2
----
-97
-97
-97

query I rowsort
SELECT + 76 * - - 37 FROM tab2
----
2812
2812
2812

query I rowsort
SELECT DISTINCT - ( + - 59 ) * + - col2 + 4 FROM tab2 AS cor0 WHERE NOT - col1 / + col0 * - col2 IS NULL
----
-1353
-2356
-3418

query I rowsort
SELECT ALL 78 * + - 91 FROM tab2 AS cor0
----
-7098
-7098
-7098

query II rowsort
SELECT + col1 AS col1, + col1 AS col2 FROM tab1 AS cor0
----
14
14
47
47
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9400
SELECT DISTINCT + MAX( DISTINCT - 11 ) AS col0 FROM tab0 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-9400
SELECT DISTINCT + MAX ( DISTINCT - 11 ) AS col0 FROM tab0 AS cor0
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-9401
SELECT ( + col2 ) DIV col0 + + - 51 AS col2 FROM tab2 AS cor0 WHERE NOT + 66 + - + col0 IS NULL
----
-51
-51
-51

skipif mysql # not compatible
query I rowsort label-9401
SELECT ( + col2 ) / col0 + + - 51 AS col2 FROM tab2 AS cor0 WHERE NOT + 66 + - + col0 IS NULL
----
-51
-51
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9402
SELECT ALL COUNT( * ) + - + ( + 61 ) FROM tab0
----
-58

skipif mysql # not compatible
query I rowsort label-9402
SELECT ALL COUNT ( * ) + - + ( + 61 ) FROM tab0
----
-58

query I rowsort
SELECT DISTINCT - 89 AS col2 FROM tab0 AS cor0 WHERE NULL = col1 + - col2
----

query I rowsort
SELECT DISTINCT col0 + + 38 FROM tab0 AS cor0
----
125
135
53

query I rowsort
SELECT + col2 AS col2 FROM tab0 AS cor0 WHERE + col2 NOT BETWEEN NULL AND + col2 - - 17 * + col0
----

query I rowsort
SELECT ALL + col2 * - col0 - - col0 + + + col0 * + + col2 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
15
87
97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT + col1 NOT IN ( 13, - col1, col2 / - col0 ) )
----

query I rowsort
SELECT DISTINCT 87 / - + ( 28 ) FROM tab1 WHERE ( col2 + + + col2 ) IS NULL
----

query I rowsort
SELECT ALL - 58 + col1 AS col0 FROM tab2
----
-7
19
9

query I rowsort
SELECT + col2 - + - 46 FROM tab2
----
104
69
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9411
SELECT SUM( col1 ) - - ( - SUM( col0 ) ) AS col0 FROM tab1
----
-161

skipif mysql # not compatible
query I rowsort label-9411
SELECT SUM ( col1 ) - - ( - SUM ( col0 ) ) AS col0 FROM tab1
----
-161

query III rowsort
SELECT * FROM tab1 WHERE 57 / ( + 16 ) <> col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( + col2 ) * + 45 - - col0 FROM tab0
----
-2100
-363
-4358

onlyif mysql # DIV for integer division: 
query I rowsort label-9414
SELECT DISTINCT col1 DIV + col0 + - col1 AS col0 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-9414
SELECT DISTINCT col1 / + col0 + - col1 AS col0 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-9415
SELECT - 20 * - - COUNT( * ) AS col1, - MIN( - 80 ) FROM tab2
----
-60
80

skipif mysql # not compatible
query II rowsort label-9415
SELECT - 20 * - - COUNT ( * ) AS col1, - MIN ( - 80 ) FROM tab2
----
-60
80

onlyif mysql # DIV for integer division: 
query I rowsort label-9416
SELECT DISTINCT col1 DIV + col2 AS col1 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-9416
SELECT DISTINCT col1 / + col2 AS col1 FROM tab0
----
0
1
2

query I rowsort
SELECT col0 * col1 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT + - col0 AS col1, + ( + + col0 ) * + - 73 * - col0 FROM tab1 AS cor0
----
-51
189873
-85
527425
-91
604513

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9419
SELECT + col0 + - 31 + - 86, - col0 AS col2 FROM tab1 AS cor0 WHERE NOT ( - CAST( NULL AS SIGNED ) ) IS NOT NULL
----
-26
-91
-32
-85
-66
-51

skipif mysql # not compatible
query II rowsort label-9419
SELECT + col0 + - 31 + - 86, - col0 AS col2 FROM tab1 AS cor0 WHERE NOT ( - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
-26
-91
-32
-85
-66
-51

query II rowsort
SELECT ALL + 34 * - col2, + col2 AS col1 FROM tab1
----
-2006
59
-2312
68
-3264
96

query III rowsort
SELECT ALL * FROM tab1 WHERE - - ( - col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9422
SELECT ALL * FROM tab0 WHERE + + CAST( col1 AS SIGNED ) / - ( CAST( - - ( + - col1 ) AS SIGNED ) ) >= CAST( + + col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9422
SELECT ALL * FROM tab0 WHERE + + CAST ( col1 AS INTEGER ) / - ( CAST ( - - ( + - col1 ) AS INTEGER ) ) >= CAST ( + + col2 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9423
SELECT + COUNT( * ) * - COUNT( ALL - col2 ) AS col0 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-9423
SELECT + COUNT ( * ) * - COUNT ( ALL - col2 ) AS col0 FROM tab0
----
-9

query I rowsort
SELECT + + col1 FROM tab1 WHERE NOT 3 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9425
SELECT + ( + - CAST( NULL AS SIGNED ) ) * - 87 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9425
SELECT + ( + - CAST ( NULL AS INTEGER ) ) * - 87 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 71 IS NOT NULL
----

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE NOT - 54 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9428
SELECT - - 77 DIV 35 * + + col2 + + col2 FROM tab2 AS cor0
----
120
174
69

skipif mysql # not compatible
query I rowsort label-9428
SELECT - - 77 / 35 * + + col2 + + col2 FROM tab2 AS cor0
----
120
174
69

onlyif mysql # DIV for integer division: 
query I rowsort label-9429
SELECT col2 DIV col1 * - - col0 AS col1 FROM tab0
----
0
0
9603

skipif mysql # not compatible
query I rowsort label-9429
SELECT col2 / col1 * - - col0 AS col1 FROM tab0
----
0
0
9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9430
SELECT ALL - col2 * - - col1 FROM tab2 WHERE - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9430
SELECT ALL - col2 * - - col1 FROM tab2 WHERE - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT - 52 * col1 * + col1 AS col0 FROM tab2
----
-135252
-233428
-308308

query I rowsort
SELECT ALL + col1 AS col0 FROM tab0 WHERE NOT - 93 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9433
SELECT ALL COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE col1 < + 67
----
3

skipif mysql # not compatible
query I rowsort label-9433
SELECT ALL COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE col1 < + 67
----
3

query I rowsort
SELECT - 50 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9435
SELECT ALL + col1 + - - CAST( NULL AS SIGNED ) / - CAST( NULL AS SIGNED ) + + + col2 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-9435
SELECT ALL + col1 + - - CAST ( NULL AS INTEGER ) / - CAST ( NULL AS INTEGER ) + + + col2 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9436
SELECT 54 * ( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0 WHERE col2 * - 81 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9436
SELECT 54 * ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0 WHERE col2 * - 81 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9437
SELECT ALL + - 82 - + + 42 * 36 + 29 * - ( - - COUNT( * ) ) + + - ( + ( + + 16 ) ) FROM tab0 cor0
----
-1697

skipif mysql # not compatible
query I rowsort label-9437
SELECT ALL + - 82 - + + 42 * 36 + 29 * - ( - - COUNT ( * ) ) + + - ( + ( + + 16 ) ) FROM tab0 cor0
----
-1697

onlyif mysql # DIV for integer division: 
query II rowsort label-9438
SELECT DISTINCT col1, + 53 DIV + - col2 * + col0 + + col2 AS col2 FROM tab1 AS cor0
----
14
96
47
68
5
59

skipif mysql # not compatible
query II rowsort label-9438
SELECT DISTINCT col1, + 53 / + - col2 * + col0 + + col2 AS col2 FROM tab1 AS cor0
----
14
96
47
68
5
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9439
SELECT ALL - CAST( - col2 AS SIGNED ) col2 FROM tab1 cor0
----
59
68
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9439
SELECT ALL - CAST ( - col2 AS INTEGER ) col2 FROM tab1 cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9440
SELECT + 91 + + + COUNT( * ) AS col1 FROM tab2
----
94

skipif mysql # not compatible
query I rowsort label-9440
SELECT + 91 + + + COUNT ( * ) AS col1 FROM tab2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9441
SELECT ( + + 46 ) + + 74 * + MAX( - col2 ) * + - COUNT( * ) FROM tab1
----
13144

skipif mysql # not compatible
query I rowsort label-9441
SELECT ( + + 46 ) + + 74 * + MAX ( - col2 ) * + - COUNT ( * ) FROM tab1
----
13144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9442
SELECT ALL - 30 * + 82 / - + ( + col0 ) * - col1 + - 10 + - - ( - CAST( - 26 AS SIGNED ) ) / CAST( NULL AS SIGNED ) * - 65 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9442
SELECT ALL - 30 * + 82 / - + ( + col0 ) * - col1 + - 10 + - - ( - CAST ( - 26 AS INTEGER ) ) / CAST ( NULL AS INTEGER ) * - 65 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9443
SELECT - col1 DIV + 22 col1, 70 AS col0 FROM tab0
----
-3
70
0
70
0
70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9443
SELECT - col1 / + 22 col1, 70 AS col0 FROM tab0
----
-3
70
0
70
0
70

query I rowsort
SELECT - 41 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL + + col0 + - - col1 + - col1 AS col1 FROM tab2 cor0
----
46
64
75

query I rowsort
SELECT ALL col1 + 2 - - col0 * + 21 FROM tab2 AS cor0
----
1019
1423
1644

query I rowsort
SELECT + 25 + - + col0 / + col1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL < ( NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9448
SELECT - - CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9448
SELECT - - CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT + 12 AS col2 FROM tab0 cor0
----
12

query I rowsort
SELECT ALL ( + 14 ) AS col0 FROM tab2 AS cor0
----
14
14
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9451
SELECT DISTINCT COUNT( * ) * - 60 * - CAST( 32 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col2 )
----
0

skipif mysql # not compatible
query I rowsort label-9451
SELECT DISTINCT COUNT ( * ) * - 60 * - CAST ( 32 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col2 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9452
SELECT - 21 AS col2, + COUNT( * ) FROM tab1 AS cor0
----
-21
3

skipif mysql # not compatible
query II rowsort label-9452
SELECT - 21 AS col2, + COUNT ( * ) FROM tab1 AS cor0
----
-21
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9453
SELECT + COUNT( * ) DIV + - 25 AS col2 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9453
SELECT + COUNT ( * ) / + - 25 AS col2 FROM tab2 cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9454
SELECT ALL - col1 AS col2, - CAST( - - col2 AS SIGNED ), + - 68 AS col1 FROM tab1 AS cor0
----
9 values hashing to 12f7ecb7e5c02fc87ffade599268fa0e

skipif mysql # not compatible
query III rowsort label-9454
SELECT ALL - col1 AS col2, - CAST ( - - col2 AS INTEGER ), + - 68 AS col1 FROM tab1 AS cor0
----
9 values hashing to 12f7ecb7e5c02fc87ffade599268fa0e

query I rowsort
SELECT - ( - - col2 ) AS col2 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9456
SELECT DISTINCT - + ( - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9456
SELECT DISTINCT - + ( - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 58 * + col2 AS col1 FROM tab2 AS cor0
----
1334
2320
3364

onlyif mysql # aggregate syntax: 
query I rowsort label-9458
SELECT 35 * + + ( COUNT( * ) ) AS col2 FROM tab1
----
105

skipif mysql # not compatible
query I rowsort label-9458
SELECT 35 * + + ( COUNT ( * ) ) AS col2 FROM tab1
----
105

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 = - col2 * + + 18 + col0
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + 58 <= - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 50 + + 95 FROM tab0
----
145

onlyif mysql # DIV for integer division: 
query I rowsort label-9462
SELECT ALL - col0 + - col1 DIV 43 FROM tab2 cor0
----
-47
-65
-76

skipif mysql # not compatible
query I rowsort label-9462
SELECT ALL - col0 + - col1 / 43 FROM tab2 cor0
----
-47
-65
-76

query I rowsort
SELECT ALL + col0 + - col1 - + 7 * col0 AS col1 FROM tab1 AS cor0
----
-320
-515
-593

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9464
SELECT - CAST( NULL AS SIGNED ) AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9464
SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-9465
SELECT - COUNT( * ) + - 29 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-38

skipif mysql # not compatible
query I rowsort label-9465
SELECT - COUNT ( * ) + - 29 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-9466
SELECT + col2 DIV - col1 + + 36 + col0 + + 87 AS col0 FROM tab2 AS cor0
----
169
187
198

skipif mysql # not compatible
query I rowsort label-9466
SELECT + col2 / - col1 + + 36 + col0 + + 87 AS col0 FROM tab2 AS cor0
----
169
187
198

query I rowsort
SELECT + 59 + - ( + col2 ) AS col2 FROM tab0 cor0
----
-40
12
49

query I rowsort
SELECT - ( + - ( - 38 ) ) AS col1 FROM tab1 cor0
----
-38
-38
-38

query I rowsort
SELECT DISTINCT + col2 + + 52 AS col0 FROM tab1 AS cor0
----
111
120
148

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9470
SELECT ALL * FROM tab0 AS cor0 WHERE NULL <= CAST( + col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9470
SELECT ALL * FROM tab0 AS cor0 WHERE NULL <= CAST ( + col2 AS INTEGER )
----

query I rowsort
SELECT ALL + - 54 * - 21 - 97 * 13 * col1 FROM tab2 AS cor0
----
-63177
-83353
-95963

query I rowsort
SELECT DISTINCT - 43 AS col1 FROM tab1 AS cor0 WHERE NOT + col1 + - 9 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9473
SELECT MIN( + col2 ) AS col1 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-9473
SELECT MIN ( + col2 ) AS col1 FROM tab0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9474
SELECT COUNT( * ) * + 92 - + - COUNT( * ) FROM tab0
----
279

skipif mysql # not compatible
query I rowsort label-9474
SELECT COUNT ( * ) * + 92 - + - COUNT ( * ) FROM tab0
----
279

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9475
SELECT ALL CAST( NULL AS SIGNED ) * - 73 / - AVG ( ALL - - 71 ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9475
SELECT ALL CAST ( NULL AS INTEGER ) * - 73 / - AVG ( ALL - - 71 ) AS col1 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9476
SELECT col0 DIV + 46 - col1 AS col1 FROM tab2
----
-50
-66
-76

skipif mysql # not compatible
query I rowsort label-9476
SELECT col0 / + 46 - col1 AS col1 FROM tab2
----
-50
-66
-76

query I rowsort
SELECT DISTINCT 41 + - + col1 FROM tab2
----
-10
-26
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9478
SELECT col0 + + col1 + - 24 FROM tab2 WHERE + ( - col2 ) IN ( - col0 ) AND NOT CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-9478
SELECT col0 + + col1 + - 24 FROM tab2 WHERE + ( - col2 ) IN ( - col0 ) AND NOT CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9479
SELECT 82 DIV + SUM( DISTINCT - 36 ) AS col2 FROM tab2
----
-2

skipif mysql # not compatible
query I rowsort label-9479
SELECT 82 / + SUM ( DISTINCT - 36 ) AS col2 FROM tab2
----
-2

query I rowsort
SELECT - col1 * + col2 + + col0 AS col1 FROM tab1 AS cor0
----
-1293
-210
-3105

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9481
SELECT ALL + - MAX( col0 ) DIV + + 21 FROM tab0 cor0
----
-4

skipif mysql # not compatible
query I rowsort label-9481
SELECT ALL + - MAX ( col0 ) / + + 21 FROM tab0 cor0
----
-4

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 / - + 1 + 41 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9483
SELECT + MIN( - col0 ) AS col1 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-9483
SELECT + MIN ( - col0 ) AS col1 FROM tab2 AS cor0
----
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 31 col2 FROM tab2 AS cor0
----
31
31
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 27 * - col0 * 90 col1 FROM tab2 AS cor0
----
111780
155520
182250

onlyif mysql # DIV for integer division: 
query I rowsort label-9486
SELECT DISTINCT + col2 DIV + 30 + + col2 AS col2 FROM tab1 AS cor0
----
60
70
99

skipif mysql # not compatible
query I rowsort label-9486
SELECT DISTINCT + col2 / + 30 + + col2 AS col2 FROM tab1 AS cor0
----
60
70
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9487
SELECT ALL - COUNT( * ) * COUNT( - 86 ) * COUNT( * ) + - 30 AS col1 FROM tab1 cor0
----
-57

skipif mysql # not compatible
query I rowsort label-9487
SELECT ALL - COUNT ( * ) * COUNT ( - 86 ) * COUNT ( * ) + - 30 AS col1 FROM tab1 cor0
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9488
SELECT ALL - - 31 DIV 98 + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9488
SELECT ALL - - 31 / 98 + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9489
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - col2 * col2 + - CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) * - 48 + + col1 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9489
SELECT DISTINCT - CAST ( NULL AS REAL ) * - col2 * col2 + - CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) * - 48 + + col1 AS col1 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT 51 * + col1 + + col0 FROM tab1
----
2488
340
765

onlyif mysql # DIV for integer division: 
query I rowsort label-9491
SELECT DISTINCT ( + col1 ) DIV col1 AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-9491
SELECT DISTINCT ( + col1 ) / col1 AS col0 FROM tab2
----
1

query I rowsort
SELECT DISTINCT - col0 + 29 FROM tab0
----
-58
-68
14

query I rowsort
SELECT - col1 AS col1 FROM tab2 WHERE ( NULL >= NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9494
SELECT DISTINCT - MIN( ALL col0 ) AS col2 FROM tab1 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-9494
SELECT DISTINCT - MIN ( ALL col0 ) AS col2 FROM tab1 cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9495
SELECT - COUNT( * ) AS col2 FROM tab0 WHERE + - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9495
SELECT - COUNT ( * ) AS col2 FROM tab0 WHERE + - col1 IS NULL
----
0

query I rowsort
SELECT DISTINCT + col0 + + col1 * + - 4 * - 92 + col0 FROM tab1
----
17478
2010
5254

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + 84 col0 FROM tab0
----
171
181
99

query I rowsort
SELECT col1 AS col0 FROM tab2 AS cor0 WHERE + 62 <> + 54 / + + 32
----
51
67
77

query I rowsort
SELECT DISTINCT + + col2 + - 83 FROM tab0 AS cor0
----
-36
-73
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - + col0 * + col2 + col2 + - 20 * + col2 + col2 col0 FROM tab2 AS cor0
----
-1449
-3240
-5336

onlyif mysql # DIV for integer division: 
query I rowsort label-9501
SELECT - 43 + + col2 DIV + - 77 AS col1 FROM tab2 AS cor0
----
-43
-43
-43

skipif mysql # not compatible
query I rowsort label-9501
SELECT - 43 + + col2 / + - 77 AS col1 FROM tab2 AS cor0
----
-43
-43
-43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 87 - - ( + col0 ) col0 FROM tab1 AS cor0
----
138
172
178

query II rowsort
SELECT ALL + col0 AS col1, col1 + - col1 AS col0 FROM tab0 AS cor0
----
15
0
87
0
97
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9504
SELECT CAST( ( col0 ) AS SIGNED ) + - - col0 AS col1 FROM tab2 cor0
----
128
150
92

skipif mysql # not compatible
query I rowsort label-9504
SELECT CAST ( ( col0 ) AS INTEGER ) + - - col0 AS col1 FROM tab2 cor0
----
128
150
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9505
SELECT DISTINCT - 79 - + COUNT( * ) * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-9505
SELECT DISTINCT - 79 - + COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-70

query I rowsort
SELECT 3 + + 95 FROM tab0
----
98
98
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9507
SELECT COUNT( * ) * - COUNT( * ) + - SUM( DISTINCT + col1 ) FROM tab1
----
-75

skipif mysql # not compatible
query I rowsort label-9507
SELECT COUNT ( * ) * - COUNT ( * ) + - SUM ( DISTINCT + col1 ) FROM tab1
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9508
SELECT MIN( - - CAST( NULL AS SIGNED ) ) + MAX( + col2 ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9508
SELECT MIN ( - - CAST ( NULL AS INTEGER ) ) + MAX ( + col2 ) AS col0 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9509
SELECT ALL col0 - + - col2 + + CAST( NULL AS SIGNED ) / - - col0 / - - 8 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9509
SELECT ALL col0 - + - col2 + + CAST ( NULL AS INTEGER ) / - - col0 / - - 8 AS col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 + - + 45 + - + col0 / + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9511
SELECT DISTINCT * FROM tab1 WHERE NOT - 92 BETWEEN + ( + 71 ) * - col0 * - col2 * + CAST( + col0 AS SIGNED ) + - 41 AND + 34
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9511
SELECT DISTINCT * FROM tab1 WHERE NOT - 92 BETWEEN + ( + 71 ) * - col0 * - col2 * + CAST ( + col0 AS INTEGER ) + - 41 AND + 34
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 27 AS col0 FROM tab0 WHERE NOT NULL >= - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9513
SELECT ( + col1 ) DIV - 91 col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9513
SELECT ( + col1 ) / - 91 col1 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9514
SELECT + CAST( NULL AS SIGNED ) * - 49 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-9514
SELECT + CAST ( NULL AS INTEGER ) * - 49 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9515
SELECT CAST( - - col0 AS SIGNED ) * - - col1 FROM tab1 cor0
----
425
4277
714

skipif mysql # not compatible
query I rowsort label-9515
SELECT CAST ( - - col0 AS INTEGER ) * - - col1 FROM tab1 cor0
----
425
4277
714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9516
SELECT + CAST( + 89 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
89
89
89

skipif mysql # not compatible
query I rowsort label-9516
SELECT + CAST ( + 89 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
89
89
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9517
SELECT COUNT( + - col0 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9517
SELECT COUNT ( + - col0 ) AS col1 FROM tab2 AS cor0
----
3

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL > NULL
----

query I rowsort
SELECT DISTINCT + 31 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
31

query II rowsort
SELECT ALL col0 AS col1, + col1 AS col2 FROM tab2 AS cor0
----
46
51
64
77
75
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9521
SELECT - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 18 * col0 AND - col2 OR NOT ( 16 + - 2 ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9521
SELECT - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 18 * col0 AND - col2 OR NOT ( 16 + - 2 ) IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9522
SELECT DISTINCT - 14 + - COUNT( 39 ) AS col0 FROM tab2 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-9522
SELECT DISTINCT - 14 + - COUNT ( 39 ) AS col0 FROM tab2 AS cor0
----
-17

query I rowsort
SELECT DISTINCT + col1 * ( + 83 ) FROM tab1 AS cor0
----
1162
3901
415

query I rowsort
SELECT + 4 + - col2 FROM tab0 AS cor0
----
-43
-6
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - 88 col2 FROM tab2 cor0
----
-13
-24
-42

query I rowsort
SELECT DISTINCT + col2 * - 1 AS col2 FROM tab1 AS cor0
----
-59
-68
-96

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col2 * - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 56 + + col1 AS col1 FROM tab2 AS cor0
----
107
123
133

onlyif mysql # DIV for integer division: 
query I rowsort label-9529
SELECT - col1 + - col2 * ( + col2 ) DIV + ( - 8 ) + + 78 * col0 * - col0 FROM tab0 AS cor0
----
-17355
-590391
-732678

skipif mysql # not compatible
query I rowsort label-9529
SELECT - col1 + - col2 * ( + col2 ) / + ( - 8 ) + + 78 * col0 * - col0 FROM tab0 AS cor0
----
-17355
-590391
-732678

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 53 * + col2 col2 FROM tab0 AS cor0
----
-2491
-5247
-530

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9531
SELECT DISTINCT - 66 DIV - COUNT( ALL + + col1 ) AS col1 FROM tab2 cor0
----
22

skipif mysql # not compatible
query I rowsort label-9531
SELECT DISTINCT - 66 / - COUNT ( ALL + + col1 ) AS col1 FROM tab2 cor0
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9532
SELECT - - CAST( + - col0 AS SIGNED ) AS col0 FROM tab1 WHERE - col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-9532
SELECT - - CAST ( + - col0 AS INTEGER ) AS col0 FROM tab1 WHERE - col2 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE 63 / + + 55 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9534
SELECT - COUNT( * ) col1 FROM tab0 WHERE + + col0 + 90 * - col2 >= NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9534
SELECT - COUNT ( * ) col1 FROM tab0 WHERE + + col0 + 90 * - col2 >= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9535
SELECT + ( MAX( ALL + + col2 ) ) - + + 56 FROM tab1 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-9535
SELECT + ( MAX ( ALL + + col2 ) ) - + + 56 FROM tab1 AS cor0
----
40

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-9536
SELECT * FROM tab1 AS cor0 WHERE + col2 / + 53 = - CAST( - CAST( NULL AS SIGNED ) AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-9536
SELECT * FROM tab1 AS cor0 WHERE + col2 / + 53 = - CAST ( - CAST ( NULL AS INTEGER ) AS REAL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
1
21
81

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - 54 >= NULL
----

query I rowsort
SELECT ALL - + col0 AS col1 FROM tab2 AS cor0 WHERE NOT col0 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 93 + - col2 col2 FROM tab2 AS cor0
----
-116
-133
-151

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9541
SELECT ALL - - AVG ( - ( 15 ) ) * + 76 - - - SUM( ALL - col1 ) * + - MAX( DISTINCT CAST( NULL AS DECIMAL ) ) - - - COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9541
SELECT ALL - - AVG ( - ( 15 ) ) * + 76 - - - SUM ( ALL - col1 ) * + - MAX ( DISTINCT CAST ( NULL AS REAL ) ) - - - COUNT ( * ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 4 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9543
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN CAST( NULL AS SIGNED ) / - - col0 AND - + 53
----

skipif mysql # not compatible
query III rowsort label-9543
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN CAST ( NULL AS INTEGER ) / - - col0 AND - + 53
----

query II rowsort
SELECT DISTINCT - 82, - col2 * + - ( col2 ) AS col0 FROM tab0
----
-82
100
-82
2209
-82
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-9545
SELECT DISTINCT COUNT( * ) col1 FROM tab1, tab0 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9545
SELECT DISTINCT COUNT ( * ) col1 FROM tab1, tab0 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9546
SELECT + COUNT( * ) * - 20 FROM tab0
----
-60

skipif mysql # not compatible
query I rowsort label-9546
SELECT + COUNT ( * ) * - 20 FROM tab0
----
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( - col0 ) col0 FROM tab0 AS cor0
----
-15
-87
-97

query II rowsort
SELECT - 46 * col0, col0 AS col1 FROM tab1 AS cor0
----
-2346
51
-3910
85
-4186
91

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 + - col2 BETWEEN + col2 AND - - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 54 col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
54
54
54

query I rowsort
SELECT DISTINCT 21 FROM tab1 AS cor0 WHERE NOT - 37 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9552
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT - col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9552
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - col2 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9553
SELECT + ( ( SUM( DISTINCT + col0 ) ) ) col0 FROM tab2
----
185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9553
SELECT + ( ( SUM ( DISTINCT + col0 ) ) ) col0 FROM tab2
----
185

query I rowsort
SELECT - col1 * 33 AS col1 FROM tab0
----
-2673
-33
-693

query I rowsort
SELECT DISTINCT + col2 * + ( - + 73 ) AS col1 FROM tab0 AS cor0
----
-3431
-7227
-730

query I rowsort
SELECT - ( - 71 ) FROM tab2 AS cor0 WHERE NOT NULL < + ( + col2 )
----

query I rowsort
SELECT DISTINCT + col0 * - + col2 FROM tab0 cor0
----
-705
-870
-9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, col0 col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
10
87
47
15
99
97

onlyif mysql # DIV for integer division: 
query I rowsort label-9559
SELECT ALL + - col1 * + col2 DIV - - col2 AS col2 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-9559
SELECT ALL + - col1 * + col2 / - - col2 AS col2 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT DISTINCT - ( 46 ) AS col1 FROM tab2 AS cor0
----
-46

query I rowsort
SELECT ALL - col0 AS col2 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9562
SELECT 99 DIV - 80 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9562
SELECT 99 / - 80 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT col1 * - col2 - - ( + col2 ) AS col2 FROM tab0 cor0
----
-200
-3760
0

query I rowsort
SELECT DISTINCT 34 * - col1 * - - ( - col2 ) FROM tab1
----
10030
108664
45696

query I rowsort
SELECT + 39 * - col0 AS col1 FROM tab1 WHERE NULL IS NULL
----
-1989
-3315
-3549

onlyif mysql # DIV for integer division: 
query I rowsort label-9566
SELECT col2 + 81 + + col2 * + col2 * col0 DIV - + col0 + - col2 - - col0 FROM tab0
----
-2113
-9623
68

skipif mysql # not compatible
query I rowsort label-9566
SELECT col2 + 81 + + col2 * + col2 * col0 / - + col0 + - col2 - - col0 FROM tab0
----
-2113
-9623
68

onlyif mysql # DIV for integer division: 
query I rowsort label-9567
SELECT - col0 DIV + - col1 + + col1 col1 FROM tab1
----
17
22
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9567
SELECT - col0 / + - col1 + + col1 col1 FROM tab1
----
17
22
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9568
SELECT COUNT( * ) * 89 * + 71 + 2 FROM tab0
----
18959

skipif mysql # not compatible
query I rowsort label-9568
SELECT COUNT ( * ) * 89 * + 71 + 2 FROM tab0
----
18959

query I rowsort
SELECT + 99 + + col2 AS col1 FROM tab0
----
109
146
198

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9570
SELECT + col1 AS col0, col2 FROM tab0 WHERE + 34 >= + + ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query II rowsort label-9570
SELECT + col1 AS col0, col2 FROM tab0 WHERE + 34 >= + + ( - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9571
SELECT ALL MAX( ALL - - col1 ) + COUNT( * ) FROM tab2
----
80

skipif mysql # not compatible
query I rowsort label-9571
SELECT ALL MAX ( ALL - - col1 ) + COUNT ( * ) FROM tab2
----
80

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL >= + - 5
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9573
SELECT DISTINCT + + COUNT( * ) FROM tab1 AS cor0 WHERE NOT col0 + + 19 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9573
SELECT DISTINCT + + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col0 + + 19 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9574
SELECT + COUNT( * ) DIV - ( - 99 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9574
SELECT + COUNT ( * ) / - ( - 99 ) FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9575
SELECT 8 - - 65 AS col1, 94 * + COUNT( * ) AS col0 FROM tab1
----
73
282

skipif mysql # not compatible
query II rowsort label-9575
SELECT 8 - - 65 AS col1, 94 * + COUNT ( * ) AS col0 FROM tab1
----
73
282

query I rowsort
SELECT col2 * - ( 76 ) FROM tab1 AS cor0
----
-4484
-5168
-7296

onlyif mysql # aggregate syntax: 
query II rowsort label-9577
SELECT - - MIN( col0 ) AS col2, 77 AS col0 FROM tab1 AS cor0
----
51
77

skipif mysql # not compatible
query II rowsort label-9577
SELECT - - MIN ( col0 ) AS col2, 77 AS col0 FROM tab1 AS cor0
----
51
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9578
SELECT DISTINCT COUNT( * ) * + 24 AS col0 FROM tab2 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-9578
SELECT DISTINCT COUNT ( * ) * + 24 AS col0 FROM tab2 AS cor0
----
72

query I rowsort
SELECT ALL - - col0 FROM tab2 WHERE - 92 IS NULL
----

query I rowsort
SELECT DISTINCT - ( + 39 ) AS col2 FROM tab0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-9581
SELECT DISTINCT MAX( DISTINCT + col1 ) AS col1 FROM tab0 WHERE NOT + col1 IS NULL
----
81

skipif mysql # not compatible
query I rowsort label-9581
SELECT DISTINCT MAX ( DISTINCT + col1 ) AS col1 FROM tab0 WHERE NOT + col1 IS NULL
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-9582
SELECT - 44 DIV - - 66 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9582
SELECT - 44 / - - 66 FROM tab0
----
0
0
0

query I rowsort
SELECT + - col2 * - + col1 AS col1 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # DIV for integer division: 
query I rowsort label-9584
SELECT + 11 DIV + col1 * - col1 AS col2 FROM tab0 AS cor0
----
-11
0
0

skipif mysql # not compatible
query I rowsort label-9584
SELECT + 11 / + col1 * - col1 AS col2 FROM tab0 AS cor0
----
-11
0
0

query I rowsort
SELECT - - col1 * - 8 FROM tab1 AS cor0
----
-112
-376
-40

query III rowsort
SELECT ALL * FROM tab0 WHERE 48 IS NULL
----

query I rowsort
SELECT 86 + + + col2 + col2 AS col1 FROM tab2
----
132
166
202

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9588
SELECT 17 * - - CAST( NULL AS SIGNED ) + - - ( 76 ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9588
SELECT 17 * - - CAST ( NULL AS INTEGER ) + - - ( 76 ) AS col0 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT - 44, 34 AS col2 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9590
SELECT DISTINCT SUM( DISTINCT + 98 ) + + + 9 + COUNT( * ) * - COUNT( * ) col0 FROM tab1 AS cor0
----
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9590
SELECT DISTINCT SUM ( DISTINCT + 98 ) + + + 9 + COUNT ( * ) * - COUNT ( * ) col0 FROM tab1 AS cor0
----
98

query II rowsort
SELECT DISTINCT + 15 AS col2, - ( - col0 ) AS col2 FROM tab2 AS cor0
----
15
46
15
64
15
75

query I rowsort
SELECT + + 2 * - col0 * - col2 FROM tab2 AS cor0
----
2116
5120
8700

query I rowsort
SELECT DISTINCT + col0 + + col0 FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0 WHERE NOT - 70 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab0 WHERE - ( - + 27 ) + - col2 / + + col0 + + col0 IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9596
SELECT - 49 * + COUNT( * ) FROM tab2
----
-147

skipif mysql # not compatible
query I rowsort label-9596
SELECT - 49 * + COUNT ( * ) FROM tab2
----
-147

query I rowsort
SELECT - col0 - + col2 AS col0 FROM tab2 WHERE NULL NOT IN ( - col0 + + ( 78 ), col0 / col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9598
SELECT ALL - CAST( NULL AS SIGNED ) + - 0 / - col2 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9598
SELECT ALL - CAST ( NULL AS INTEGER ) + - 0 / - col2 AS col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NOT ( NULL ) <= NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 = + 0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT - col0 - - 44, - ( - col1 ) AS col0 FROM tab0
----
-43
21
-53
1
29
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9602
SELECT * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) * - col1 - - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9602
SELECT * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) * - col1 - - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + col2 AS col1, - col0 + - col0 - col1 * + 27 AS col0 FROM tab2 AS cor0 WHERE 36 IS NOT NULL
----
23
-1469
40
-2207
58
-1959

query II rowsort
SELECT ALL - 26 - - ( col1 ), + 73 AS col1 FROM tab2 AS cor0
----
25
73
41
73
51
73

query I rowsort
SELECT + - col1 AS col2 FROM tab2 AS cor0 WHERE - 40 * - - 1 IS NOT NULL
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9606
SELECT DISTINCT + CAST( NULL AS SIGNED ) - - col0 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9606
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - - col0 AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9607
SELECT DISTINCT - COUNT( * ) * COUNT( + 59 ) AS col1 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-9607
SELECT DISTINCT - COUNT ( * ) * COUNT ( + 59 ) AS col1 FROM tab1
----
-9

query I rowsort
SELECT col2 * - 61 FROM tab2
----
-1403
-2440
-3538

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col2 col2 FROM tab2
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-9610
SELECT COUNT( * ) * + MIN( ALL - 32 ) AS col1 FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-9610
SELECT COUNT ( * ) * + MIN ( ALL - 32 ) AS col1 FROM tab0
----
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col2, - 16 AS col0 FROM tab2 AS cor0
----
-46
-16
-64
-16
-75
-16

query II rowsort
SELECT - - col2 AS col0, ( + - col0 ) AS col2 FROM tab0 cor0
----
10
-87
47
-15
99
-97

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 - - col2 <= - 79
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL + col0 AS col2, col2 AS col2 FROM tab2 cor0
----
46
23
64
40
75
58

query II rowsort
SELECT ALL + 9 AS col1, col1 + + col1 AS col0 FROM tab1 AS cor0
----
9
10
9
28
9
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 col2 FROM tab1 AS cor0 WHERE NOT - col1 < NULL
----

query II rowsort
SELECT ALL - col0 * 78, col1 AS col1 FROM tab0
----
-1170
81
-6786
21
-7566
1

query I rowsort
SELECT + ( - + 31 ) AS col2 FROM tab2
----
-31
-31
-31

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9619
SELECT CAST( CAST( NULL AS SIGNED ) AS SIGNED ), col2 AS col0 FROM tab1
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-9619
SELECT CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ), col2 AS col0 FROM tab1
----
NULL
59
NULL
68
NULL
96

query III rowsort
SELECT ALL * FROM tab2 WHERE + 76 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9621
SELECT ALL + COUNT( + 45 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9621
SELECT ALL + COUNT ( + 45 ) AS col2 FROM tab0
----
3

query I rowsort
SELECT col1 * + 94 AS col2 FROM tab0
----
1974
7614
94

query I rowsort
SELECT ( 11 ) AS col2 FROM tab1
----
11
11
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9624
SELECT ALL + COUNT( ALL + col1 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9624
SELECT ALL + COUNT ( ALL + col1 ) AS col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9625
SELECT + COUNT( * ) - - 14 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
23

skipif mysql # not compatible
query I rowsort label-9625
SELECT + COUNT ( * ) - - 14 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab1 WHERE col0 IS NOT NULL
----
59
68
96

query I rowsort
SELECT ALL + 42 + - ( + col2 ) + - - col0 FROM tab1 AS cor0
----
-3
65
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9628
SELECT CAST( + COUNT( * ) AS SIGNED ) - + - 96 + CAST( + COUNT( * ) AS SIGNED ) - - 93 FROM tab1 cor0
----
195

skipif mysql # not compatible
query I rowsort label-9628
SELECT CAST ( + COUNT ( * ) AS INTEGER ) - + - 96 + CAST ( + COUNT ( * ) AS INTEGER ) - - 93 FROM tab1 cor0
----
195

query II rowsort
SELECT ALL + + 52, + col1 * + - 8 AS col2 FROM tab0 AS cor0
----
52
-168
52
-648
52
-8

query I rowsort
SELECT + + col1 + + 14 * + col1 AS col1 FROM tab1 AS cor0
----
210
705
75

query I rowsort
SELECT + + col1 + + - ( - - 55 ) - + + col1 FROM tab0 AS cor0
----
-55
-55
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-9632
SELECT 37 + - + SUM( + 8 ) col2 FROM tab1
----
13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9632
SELECT 37 + - + SUM ( + 8 ) col2 FROM tab1
----
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 10 * - 93 + col2 col2 FROM tab1
----
-834
-862
-871

query I rowsort
SELECT + col0 + - col2 - col2 - + col2 FROM tab1
----
-113
-237
-92

query I rowsort
SELECT ALL + col0 * col1 AS col1 FROM tab0 WHERE col1 IS NOT NULL
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9636
SELECT - 73 + + MIN( DISTINCT - 39 ) col2 FROM tab2
----
-112

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9636
SELECT - 73 + + MIN ( DISTINCT - 39 ) col2 FROM tab2
----
-112

onlyif mysql # DIV for integer division: 
query I rowsort label-9637
SELECT + + ( + + col1 ) + 86 + - 51 DIV col1 AS col1 FROM tab0 WHERE + + col2 IS NOT NULL
----
105
167
36

skipif mysql # not compatible
query I rowsort label-9637
SELECT + + ( + + col1 ) + 86 + - 51 / col1 AS col1 FROM tab0 WHERE + + col2 IS NOT NULL
----
105
167
36

query I rowsort
SELECT - col1 + + col1 + col1 + col1 FROM tab2
----
102
134
154

query I rowsort
SELECT ALL col0 + + col1 + - col2 AS col1 FROM tab2
----
101
74
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9640
SELECT DISTINCT + COUNT( * ) DIV SUM( + + ( - - col0 ) ) - 56 AS col0 FROM tab0 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-9640
SELECT DISTINCT + COUNT ( * ) / SUM ( + + ( - - col0 ) ) - 56 AS col0 FROM tab0 AS cor0
----
-56

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE col1 + - col2 / - col2 > + 58 * + + 35 + - col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL > col1 * + col0
----

query I rowsort
SELECT + col0 * 57 FROM tab1 AS cor0
----
2907
4845
5187

query I rowsort
SELECT ALL - col0 * - 2 * col1 * + + col1 AS col1 FROM tab2
----
239292
673350
758912

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9645
SELECT + CAST( NULL AS SIGNED ) + - + ( + col1 ) AS col2 FROM tab0 WHERE NOT 85 * col2 * - + ( + 66 ) * - + 3 * - - col1 + col2 + - ( - 30 ) + - - col1 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9645
SELECT + CAST ( NULL AS INTEGER ) + - + ( + col1 ) AS col2 FROM tab0 WHERE NOT 85 * col2 * - + ( + 66 ) * - + 3 * - - col1 + col2 + - ( - 30 ) + - - col1 IS NULL
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 6 col1 FROM tab0 cor0
----
6
6
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9647
SELECT DISTINCT COUNT( * ) DIV + 77 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9647
SELECT DISTINCT COUNT ( * ) / + 77 AS col2 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9648
SELECT + COUNT( * ) col1 FROM tab0 WHERE NOT + 63 - - col1 IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9648
SELECT + COUNT ( * ) col1 FROM tab0 WHERE NOT + 63 - - col1 IS NULL
----
3

query I rowsort
SELECT ALL - ( - + col2 ) + - - 95 - col2 + - 4 AS col2 FROM tab1
----
91
91
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9650
SELECT 33 / + 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-9650
SELECT 33 / + CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9651
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + ( col1 ) AS col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9651
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + ( col1 ) AS col1 FROM tab2 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9652
SELECT + - col0 * - col0 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9652
SELECT + - col0 * - col0 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 21 * - + col1 AS col2 FROM tab1 AS cor0
----
-105
-294
-987

query I rowsort
SELECT DISTINCT col2 * + 98 FROM tab1
----
5782
6664
9408

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE NOT NULL IN ( - col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL IN ( + 90 * - col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9657
SELECT - 58 + COUNT( * ) DIV - 41 col2 FROM tab0
----
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9657
SELECT - 58 + COUNT ( * ) / - 41 col2 FROM tab0
----
-58

query I rowsort
SELECT DISTINCT 2 * + col2 FROM tab2
----
116
46
80

query I rowsort
SELECT - 47 + col1 FROM tab2
----
20
30
4

query I rowsort
SELECT + 58 * - col2 AS col2 FROM tab1
----
-3422
-3944
-5568

onlyif mysql # DIV for integer division: 
query I rowsort label-9661
SELECT DISTINCT - col1 + 76 DIV col0 AS col2 FROM tab1
----
-13
-47
-5

skipif mysql # not compatible
query I rowsort label-9661
SELECT DISTINCT - col1 + 76 / col0 AS col2 FROM tab1
----
-13
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9662
SELECT + 48 * COUNT( * ) FROM tab0
----
144

skipif mysql # not compatible
query I rowsort label-9662
SELECT + 48 * COUNT ( * ) FROM tab0
----
144

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9663
SELECT * FROM tab1 WHERE + CAST( NULL AS SIGNED ) + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9663
SELECT * FROM tab1 WHERE + CAST ( NULL AS INTEGER ) + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9664
SELECT ALL - SUM( ALL - col1 ) + + 49 FROM tab1
----
115

skipif mysql # not compatible
query I rowsort label-9664
SELECT ALL - SUM ( ALL - col1 ) + + 49 FROM tab1
----
115

query I rowsort
SELECT ALL + col0 * + 27 FROM tab0
----
2349
2619
405

query I rowsort
SELECT DISTINCT - 40 AS col0 FROM tab2 WHERE NOT ( NULL ) > - col0
----

query I rowsort
SELECT 7 + 73 AS col1 FROM tab0
----
80
80
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 50 * + 9 + ( + col0 ) * 42 col1 FROM tab0 WHERE + 93 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab2 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9670
SELECT + 96 DIV - ( + col0 ) AS col2 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9670
SELECT + 96 / - ( + col0 ) AS col2 FROM tab1
----
-1
-1
-1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col2 ) <= col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9672
SELECT ALL + 58 - + COUNT( * ) AS col2 FROM tab1
----
55

skipif mysql # not compatible
query I rowsort label-9672
SELECT ALL + 58 - + COUNT ( * ) AS col2 FROM tab1
----
55

query I rowsort
SELECT DISTINCT 52 * + 21 AS col0 FROM tab1
----
1092

query I rowsort
SELECT ALL - ( + 21 ) AS col2 FROM tab1 WHERE NULL IS NULL
----
-21
-21
-21

query III rowsort
SELECT * FROM tab2 WHERE col2 * - col0 <= ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 5 col2 FROM tab0 WHERE col0 NOT BETWEEN - col0 AND - col0
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-9677
SELECT col2 DIV 87 AS col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9677
SELECT col2 / 87 AS col2 FROM tab1
----
0
0
1

query I rowsort
SELECT DISTINCT - 62 + col2 AS col0 FROM tab0
----
-15
-52
37

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9679
SELECT ALL * FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) BETWEEN col0 AND col2 + col1
----

skipif mysql # not compatible
query III rowsort label-9679
SELECT ALL * FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) BETWEEN col0 AND col2 + col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 - col1 <= + col1 * + col2
----

query I rowsort
SELECT + col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) >= + col0 / col1
----

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE NOT ( NULL ) NOT IN ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9683
SELECT DISTINCT - COUNT( - col2 ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9683
SELECT DISTINCT - COUNT ( - col2 ) AS col2 FROM tab2
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 98 col1 FROM tab1 AS cor0 CROSS JOIN tab2
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

query I rowsort
SELECT - - 11 * + col2 AS col1 FROM tab2 cor0
----
253
440
638

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9686
SELECT CAST( MIN( ALL ( col1 ) ) AS SIGNED ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-9686
SELECT CAST ( MIN ( ALL ( col1 ) ) AS INTEGER ) FROM tab1 AS cor0
----
5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col1 * + col0 + col0 ) <= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col1 / col2 - - col0 ) >= ( + ( 88 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9689
SELECT MAX( 73 ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN 39 - + col1 * - col2 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9689
SELECT MAX ( 73 ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN 39 - + col1 * - col2 AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9690
SELECT ALL - SUM( ALL - col1 ) FROM tab2 cor0
----
195

skipif mysql # not compatible
query I rowsort label-9690
SELECT ALL - SUM ( ALL - col1 ) FROM tab2 cor0
----
195

query I rowsort
SELECT col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL <> - 1 * - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 59 * + col2 col1 FROM tab1 cor0
----
-3481
-4012
-5664

query I rowsort
SELECT col0 * + col1 + + 57 FROM tab2 AS cor0 WHERE NOT 61 NOT IN ( 56 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9694
SELECT 15 DIV - + 39 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9694
SELECT 15 / - + 39 AS col0 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9695
SELECT ALL + COUNT( * ) AS col1 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9695
SELECT ALL + COUNT ( * ) AS col1 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT col2 FROM tab1 WHERE NOT 35 > col0
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9697
SELECT DISTINCT CAST( - 80 AS SIGNED ) + - 64 * - ( col2 ) FROM tab0
----
2928
560
6256

skipif mysql # not compatible
query I rowsort label-9697
SELECT DISTINCT CAST ( - 80 AS INTEGER ) + - 64 * - ( col2 ) FROM tab0
----
2928
560
6256

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9698
SELECT * FROM tab2 WHERE NOT ( - 71 * CAST( NULL AS DECIMAL ) ) <= + col1 / - col0 - - col0 * - 16
----

skipif mysql # not compatible
query III rowsort label-9698
SELECT * FROM tab2 WHERE NOT ( - 71 * CAST ( NULL AS REAL ) ) <= + col1 / - col0 - - col0 * - 16
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9699
SELECT DISTINCT + MIN( ALL - 12 ) FROM tab0 WHERE col0 * 64 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9699
SELECT DISTINCT + MIN ( ALL - 12 ) FROM tab0 WHERE col0 * 64 IS NULL
----
NULL

query I rowsort
SELECT ALL + col0 + + 42 * - col1 AS col0 FROM tab2
----
-2096
-2739
-3170

query I rowsort
SELECT ALL + col1 * + 96 FROM tab1 cor0
----
1344
4512
480

query I rowsort
SELECT ALL - 46 AS col0 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
-46
-46
-46

query I rowsort
SELECT ALL col1 * + - 34 FROM tab0 AS cor0
----
-2754
-34
-714

query I rowsort
SELECT col0 AS col2 FROM tab2 cor0 WHERE - col1 < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9705
SELECT + COUNT( * ) + + + 3 - - 21 FROM tab0 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-9705
SELECT + COUNT ( * ) + + + 3 - - 21 FROM tab0 AS cor0
----
27

query I rowsort
SELECT 7 FROM tab0 cor0 WHERE - col0 IS NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9708
SELECT DISTINCT 47 + + + COUNT( ALL + 5 ) col2 FROM tab2
----
50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9708
SELECT DISTINCT 47 + + + COUNT ( ALL + 5 ) col2 FROM tab2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9709
SELECT ALL + 21 + - COUNT( * ) FROM tab2
----
18

skipif mysql # not compatible
query I rowsort label-9709
SELECT ALL + 21 + - COUNT ( * ) FROM tab2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9710
SELECT COUNT( * ) FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NULL <> 12
----
0

skipif mysql # not compatible
query I rowsort label-9710
SELECT COUNT ( * ) FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NULL <> 12
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9711
SELECT ALL COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9711
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT DISTINCT + 63 + - - 50 FROM tab2 AS cor0
----
113

query I rowsort
SELECT ALL - col0 + - - 40 + - col0 FROM tab2 cor0
----
-110
-52
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9714
SELECT ALL + col0 / - col1 - - 23 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9714
SELECT ALL + col0 / - col1 - - 23 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9715
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NULL <> ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-9715
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NULL <> ( NULL )
----
0

query I rowsort
SELECT ALL + + col2 * - 80 * + col2 + + col1 AS col1 FROM tab1 AS cor0
----
-278475
-369873
-737266

onlyif mysql # aggregate syntax: 
query II rowsort label-9717
SELECT DISTINCT COUNT( * ) AS col2, 27 FROM tab1 AS cor0
----
3
27

skipif mysql # not compatible
query II rowsort label-9717
SELECT DISTINCT COUNT ( * ) AS col2, 27 FROM tab1 AS cor0
----
3
27

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 * + + col2 + - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9719
SELECT col0 - - 22 col1 FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) * - + col1 - 59 IS NULL
----
109
119
37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9719
SELECT col0 - - 22 col1 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) * - + col1 - 59 IS NULL
----
109
119
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9720
SELECT 37 + - ( - CAST( NULL AS SIGNED ) ) + col0 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9720
SELECT 37 + - ( - CAST ( NULL AS INTEGER ) ) + col0 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9721
SELECT - CAST( NULL AS DECIMAL ) AS col1 FROM tab0 WHERE NULL IN ( + 53 )
----

skipif mysql # not compatible
query I rowsort label-9721
SELECT - CAST ( NULL AS REAL ) AS col1 FROM tab0 WHERE NULL IN ( + 53 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9722
SELECT + col2 DIV col2 + - col0 FROM tab2
----
-45
-63
-74

skipif mysql # not compatible
query I rowsort label-9722
SELECT + col2 / col2 + - col0 FROM tab2
----
-45
-63
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9723
SELECT ALL col1 FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) >= ( - col2 )
----

skipif mysql # not compatible
query I rowsort label-9723
SELECT ALL col1 FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) >= ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9724
SELECT ( - ( + - SUM( ( + col1 ) ) ) ) * COUNT( * ) FROM tab2
----
585

skipif mysql # not compatible
query I rowsort label-9724
SELECT ( - ( + - SUM ( ( + col1 ) ) ) ) * COUNT ( * ) FROM tab2
----
585

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <= 9 + - 49 * - + ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9726
SELECT DISTINCT - MIN( ALL + 89 ) AS col2 FROM tab2 AS cor0 WHERE NULL <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9726
SELECT DISTINCT - MIN ( ALL + 89 ) AS col2 FROM tab2 AS cor0 WHERE NULL <= NULL
----
NULL

query I rowsort
SELECT ( - col0 ) FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
-46
-64
-75

query II rowsort
SELECT ALL col2 AS col2, col2 AS col2 FROM tab2
----
23
23
40
40
58
58

query I rowsort
SELECT DISTINCT + 66 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
66

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-9730
SELECT ALL - + CAST( NULL AS DECIMAL ) AS col0, col0 + - 80 + - col2 DIV col0 AS col0 FROM tab2 AS cor0
----
NULL
-16
NULL
-34
NULL
-5

skipif mysql # not compatible
query II rowsort label-9730
SELECT ALL - + CAST ( NULL AS REAL ) AS col0, col0 + - 80 + - col2 / col0 AS col0 FROM tab2 AS cor0
----
NULL
-16
NULL
-34
NULL
-5

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN + ( - - col1 ) AND - - col1
----

query I rowsort
SELECT + 71 + - col2 FROM tab1 AS cor0
----
-25
12
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col0 FROM tab0 AS cor0 WHERE NOT col1 = col0 / + col1
----
10
47
99

query I rowsort
SELECT - ( - col1 ) + - col1 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 81 * + 55 AS col0 FROM tab0 AS cor0
----
4455

query I rowsort
SELECT ALL + col2 * + + col2 AS col1 FROM tab2 cor0 WHERE NOT - 48 / - 45 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9737
SELECT ALL MAX( + 92 ) * + COUNT( * ) + - - AVG ( + col2 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9737
SELECT ALL MAX ( + 92 ) * + COUNT ( * ) + - - AVG ( + col2 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9738
SELECT DISTINCT MAX( DISTINCT + + col0 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-9738
SELECT DISTINCT MAX ( DISTINCT + + col0 ) FROM tab1 AS cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9739
SELECT COUNT( * ) + 78 AS col1 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-9739
SELECT COUNT ( * ) + 78 AS col1 FROM tab0 AS cor0
----
81

query II rowsort
SELECT ALL col2, col1 * 52 FROM tab0
----
10
1092
47
4212
99
52

query III rowsort
SELECT ALL * FROM tab1 WHERE ( 15 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9742
SELECT ALL MIN( + col0 ) * + COUNT( * ) col1 FROM tab0 WHERE - + ( - col1 ) + + - col2 * - col1 + + 76 * col2 > NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9742
SELECT ALL MIN ( + col0 ) * + COUNT ( * ) col1 FROM tab0 WHERE - + ( - col1 ) + + - col2 * - col1 + + 76 * col2 > NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9743
SELECT ( - 27 ) * col2 + + 1 AS col0 FROM tab0 WHERE + 82 + + + 16 * + 58 - col1 >= - CAST( col1 AS SIGNED ) * col1
----
-1268
-2672
-269

skipif mysql # not compatible
query I rowsort label-9743
SELECT ( - 27 ) * col2 + + 1 AS col0 FROM tab0 WHERE + 82 + + + 16 * + 58 - col1 >= - CAST ( col1 AS INTEGER ) * col1
----
-1268
-2672
-269

onlyif mysql # aggregate syntax: 
query II rowsort label-9744
SELECT + COUNT( * ), + 10 * - - 32 AS col0 FROM tab2 AS cor0
----
3
320

skipif mysql # not compatible
query II rowsort label-9744
SELECT + COUNT ( * ), + 10 * - - 32 AS col0 FROM tab2 AS cor0
----
3
320

query I rowsort
SELECT DISTINCT - ( + 42 ) FROM tab2 cor0
----
-42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 4 + - - 51 col1 FROM tab0
----
55
55
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9747
SELECT ALL 62 * + - 90 AS col1 FROM tab1 WHERE NOT NULL > NULL AND + CAST( NULL AS SIGNED ) + col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-9747
SELECT ALL 62 * + - 90 AS col1 FROM tab1 WHERE NOT NULL > NULL AND + CAST ( NULL AS INTEGER ) + col0 IS NULL
----

query I rowsort
SELECT - col1 + col2 * + col0 AS col1 FROM tab2
----
1007
2483
4283

query II rowsort
SELECT + col2 + - - col1 AS col0, - col1 * - ( 78 ) * - - col2 AS col1 FROM tab0
----
100
7722
128
296946
31
16380

onlyif mysql # DIV for integer division: 
query I rowsort label-9750
SELECT 50 DIV + - col2 FROM tab0 AS cor0
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-9750
SELECT 50 / + - col2 FROM tab0 AS cor0
----
-1
-5
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL IN ( - 51 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9752
SELECT + ( - CAST( 67 AS SIGNED ) ) FROM tab0 AS cor0
----
-67
-67
-67

skipif mysql # not compatible
query I rowsort label-9752
SELECT + ( - CAST ( 67 AS INTEGER ) ) FROM tab0 AS cor0
----
-67
-67
-67

query I rowsort
SELECT ALL + col2 - - - col0 * - - 81 + + + col2 AS col2 FROM tab1 cor0
----
-3939
-6767
-7235

query I rowsort
SELECT - col1 FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - col1 ) BETWEEN NULL AND NULL
----

query II rowsort
SELECT ALL col0 AS col0, - col1 * - - 92 AS col1 FROM tab2
----
46
-4692
64
-7084
75
-6164

query I rowsort
SELECT ALL - col2 * 12 AS col0 FROM tab1
----
-1152
-708
-816

onlyif mysql # aggregate syntax: 
query I rowsort label-9758
SELECT DISTINCT 42 * + COUNT( * ) FROM tab2
----
126

skipif mysql # not compatible
query I rowsort label-9758
SELECT DISTINCT 42 * + COUNT ( * ) FROM tab2
----
126

query I rowsort
SELECT 24 * + col1 FROM tab1
----
1128
120
336

query I rowsort
SELECT DISTINCT ( + 70 ) AS col0 FROM tab0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9761
SELECT ALL + MAX( ALL + - ( - + col2 ) ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-9761
SELECT ALL + MAX ( ALL + - ( - + col2 ) ) FROM tab1
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9762
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) BETWEEN + col2 / + 30 AND ( - + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9762
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) BETWEEN + col2 / + 30 AND ( - + CAST ( NULL AS INTEGER ) )
----

query II rowsort
SELECT 55 * - 39 * - + 36, 63 + + 1 AS col0 FROM tab1
----
77220
64
77220
64
77220
64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9764
SELECT ALL 76 * CAST( col0 AS SIGNED ) col0, col1 FROM tab2
----
3496
51
4864
77
5700
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9764
SELECT ALL 76 * CAST ( col0 AS INTEGER ) col0, col1 FROM tab2
----
3496
51
4864
77
5700
67

query I rowsort
SELECT 9 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9766
SELECT ALL - COUNT( * ) * - MAX( 85 ) + 42 * - 11 + 26 FROM tab1 AS cor0 WHERE NOT 1 + col0 + - 43 + - 26 / - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9766
SELECT ALL - COUNT ( * ) * - MAX ( 85 ) + 42 * - 11 + 26 FROM tab1 AS cor0 WHERE NOT 1 + col0 + - 43 + - 26 / - col1 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9767
SELECT ALL 21 DIV + col1 - + CAST( + + ( - + col1 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
22
22
81

skipif mysql # not compatible
query I rowsort label-9767
SELECT ALL 21 / + col1 - + CAST ( + + ( - + col1 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
22
22
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col0 col1, + 40 * + + col2 FROM tab0 AS cor0
----
-15
1880
-87
400
-97
3960

onlyif mysql # aggregate syntax: 
query I rowsort label-9769
SELECT DISTINCT 49 * - + MAX( + col0 ) AS col2 FROM tab2
----
-3675

skipif mysql # not compatible
query I rowsort label-9769
SELECT DISTINCT 49 * - + MAX ( + col0 ) AS col2 FROM tab2
----
-3675

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN - ( - col1 ) * + 64 AND ( + 88 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9771
SELECT ALL + CAST( NULL AS SIGNED ) + - 71 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9771
SELECT ALL + CAST ( NULL AS INTEGER ) + - 71 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 6 * + - col0 * - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9773
SELECT ALL col2 * + col0 + + - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9773
SELECT ALL col2 * + col0 + + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9774
SELECT ALL - CAST( + ( - col0 ) AS SIGNED ) FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-9774
SELECT ALL - CAST ( + ( - col0 ) AS INTEGER ) FROM tab1 AS cor0
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( + col2 ) AS col0, 0 col1 FROM tab0 AS cor0
----
10
0
47
0
99
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9776
SELECT - MIN( ALL 46 ) AS col0 FROM tab0 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-9776
SELECT - MIN ( ALL 46 ) AS col0 FROM tab0 AS cor0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9777
SELECT - 82 + COUNT( * ) AS col1 FROM tab0
----
-79

skipif mysql # not compatible
query I rowsort label-9777
SELECT - 82 + COUNT ( * ) AS col1 FROM tab0
----
-79

query I rowsort
SELECT col2 + 13 AS col2 FROM tab2
----
36
53
71

query I rowsort
SELECT + 16 * + 73 AS col0 FROM tab0 WHERE NULL IS NULL
----
1168
1168
1168

query I rowsort
SELECT col1 * + - col0 + - - 9 AS col2 FROM tab1
----
-416
-4268
-705

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 + + col0 * col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 37 FROM tab2 WHERE + 59 < + 60 + ( 92 )
----
37
37
37

query I rowsort
SELECT DISTINCT + 48 + col0 FROM tab0
----
135
145
63

query II rowsort
SELECT DISTINCT + 75 AS col1, col1 FROM tab2 AS cor0
----
75
51
75
67
75
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9785
SELECT DISTINCT - MAX( DISTINCT - - col2 ) col2 FROM tab2 AS cor0 WHERE + col1 <> ( + 6 - + ( - col1 ) )
----
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9785
SELECT DISTINCT - MAX ( DISTINCT - - col2 ) col2 FROM tab2 AS cor0 WHERE + col1 <> ( + 6 - + ( - col1 ) )
----
-58

query III rowsort
SELECT ALL col1, + 41 AS col1, + + col2 AS col0 FROM tab2 AS cor0
----
9 values hashing to c76eec073666edb473d808c6dbce9052

onlyif mysql # aggregate syntax: 
query I rowsort label-9787
SELECT - - MIN( + col1 ) AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9787
SELECT - - MIN ( + col1 ) AS col2 FROM tab0 AS cor0
----
1

query II rowsort
SELECT col2 AS col0, 90 + 15 FROM tab2 AS cor0
----
23
105
40
105
58
105

query II rowsort
SELECT - col1, + col0 AS col2 FROM tab0 AS cor0
----
-1
97
-21
87
-81
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9790
SELECT ALL - COUNT( * ) FROM tab1 AS cor0 WHERE NULL >= col2 * - 24 * ( + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-9790
SELECT ALL - COUNT ( * ) FROM tab1 AS cor0 WHERE NULL >= col2 * - 24 * ( + col1 )
----
0

query II rowsort
SELECT + col1 * - - 22 AS col1, - col1 FROM tab0 cor0
----
1782
-81
22
-1
462
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9792
SELECT + CAST( NULL AS SIGNED ) * + 16 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9792
SELECT + CAST ( NULL AS INTEGER ) * + 16 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 27 * - - col0 FROM tab0
----
-2349
-2619
-405

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9794
SELECT ALL - COUNT( * ) DIV - 81 col2, 25 AS col2 FROM tab2
----
0
25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9794
SELECT ALL - COUNT ( * ) / - 81 col2, 25 AS col2 FROM tab2
----
0
25

query I rowsort
SELECT - 52 FROM tab1 WHERE NOT - 99 IS NULL
----
-52
-52
-52

query I rowsort
SELECT DISTINCT + col1 * - - 29 FROM tab1
----
1363
145
406

query I rowsort
SELECT - col2 AS col2 FROM tab1 WHERE NOT ( + + col2 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN - - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9799
SELECT ( - - COUNT( ALL - - col1 ) ) AS col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9799
SELECT ( - - COUNT ( ALL - - col1 ) ) AS col2 FROM tab1 cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 35 col1 FROM tab2 AS cor0 WHERE + col0 - - 1 < NULL
----

query I rowsort
SELECT + ( + col1 ) + - + 51 FROM tab2 AS cor0
----
0
16
26

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col0 * - + 65 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9803
SELECT - + MAX( DISTINCT - 15 ) DIV 55 + + COUNT( * ) AS col1, + CAST( - 35 AS SIGNED ) FROM tab0 AS cor0
----
3
-35

skipif mysql # not compatible
query II rowsort label-9803
SELECT - + MAX ( DISTINCT - 15 ) / 55 + + COUNT ( * ) AS col1, + CAST ( - 35 AS INTEGER ) FROM tab0 AS cor0
----
3
-35

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT - + 25 BETWEEN NULL AND NULL )
----

query II rowsort
SELECT DISTINCT + 99 AS col2, + 85 * + col0 FROM tab2 AS cor0
----
99
3910
99
5440
99
6375

onlyif mysql # aggregate syntax: 
query I rowsort label-9806
SELECT DISTINCT + SUM( 82 ) * - 26 FROM tab1 AS cor0
----
-6396

skipif mysql # not compatible
query I rowsort label-9806
SELECT DISTINCT + SUM ( 82 ) * - 26 FROM tab1 AS cor0
----
-6396

onlyif mysql # aggregate syntax: 
query I rowsort label-9807
SELECT + 28 * 42 + + - COUNT( DISTINCT + ( 24 ) ) + - COUNT( * ) FROM tab0 AS cor0
----
1172

skipif mysql # not compatible
query I rowsort label-9807
SELECT + 28 * 42 + + - COUNT ( DISTINCT + ( 24 ) ) + - COUNT ( * ) FROM tab0 AS cor0
----
1172

query I rowsort
SELECT + 45 + - - ( - + 18 ) * 91 AS col0 FROM tab1 AS cor0
----
-1593
-1593
-1593

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE + col0 + - - col2 <= + col1
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( + col0, 70 * - col1 * + + col2, - 89, - + col2 + 69 )
----

query II rowsort
SELECT + col1 AS col2, - 16 FROM tab0 cor0
----
1
-16
21
-16
81
-16

query II rowsort
SELECT ALL - + col0, + col0 + + col1 AS col0 FROM tab0 AS cor0
----
-15
96
-87
108
-97
98

query III rowsort
SELECT * FROM tab0 WHERE - col2 + col2 BETWEEN + col2 / col1 AND - col1 + - 54 / + - col2
----

query III rowsort
SELECT * FROM tab1 WHERE + - 83 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col2 + - 32 * - 74 FROM tab1
----
2272
2300
2309

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 70 * + col0 * - - col0 IN ( + col2 * + + col2, + ( - + col2 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN col0 AND ( col1 + + col0 / - col0 )
----

query I rowsort
SELECT DISTINCT 25 FROM tab1 AS cor0 WHERE NOT 37 IS NULL AND NOT + 51 BETWEEN NULL AND col1
----
25

query I rowsort
SELECT col1 + ( + col2 ) AS col2 FROM tab2 AS cor0
----
117
125
74

query I rowsort
SELECT - 95 + - + col2 AS col2 FROM tab0 AS cor0
----
-105
-142
-194

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 * col0 <= - + 67
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - - 29 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query III rowsort
SELECT * FROM tab0 WHERE + - 47 IS NULL
----

query I rowsort
SELECT DISTINCT - col2 + + 69 AS col2 FROM tab1
----
-27
1
10

query I rowsort
SELECT + ( + ( + 0 ) ) AS col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9826
SELECT ALL CAST( NULL AS SIGNED ) * - col2 * col1, col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-9826
SELECT ALL CAST ( NULL AS INTEGER ) * - col2 * col1, col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col0 FROM tab1 AS cor0 WHERE NOT col0 * - ( ( + col0 ) ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE NULL <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9829
SELECT ALL - COUNT( * ) * + MAX( - 95 ) * MIN( - col2 ) * + - MIN( - col1 ) AS col0 FROM tab2 AS cor0
----
-1272810

skipif mysql # not compatible
query I rowsort label-9829
SELECT ALL - COUNT ( * ) * + MAX ( - 95 ) * MIN ( - col2 ) * + - MIN ( - col1 ) AS col0 FROM tab2 AS cor0
----
-1272810

query I rowsort
SELECT DISTINCT 93 * + - col0 AS col0 FROM tab2 AS cor0
----
-4278
-5952
-6975

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9831
SELECT + col1 FROM tab1 WHERE NOT 26 + + 93 * + + col2 IN ( CAST( - - col0 AS SIGNED ) )
----
14
47
5

skipif mysql # not compatible
query I rowsort label-9831
SELECT + col1 FROM tab1 WHERE NOT 26 + + 93 * + + col2 IN ( CAST ( - - col0 AS INTEGER ) )
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9832
SELECT + ( + + ( col1 ) ) * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9832
SELECT + ( + + ( col1 ) ) * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 63 + + col1 AS col1 FROM tab1 WHERE NOT - 97 >= NULL
----

query I rowsort
SELECT DISTINCT 60 + + 95 + - + ( - - 47 ) + - 60 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + + 73 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( - 2, 13, col1 )
----

query I rowsort
SELECT ALL + col2 + + 64 FROM tab0
----
111
163
74

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9838
SELECT + col0 * 76, + 59 AS col0, + CAST( NULL AS SIGNED ) * - + col1 * col1 AS col1 FROM tab2 cor0
----
9 values hashing to 00744ef50c682dc0f8fc1208445a0577

skipif mysql # not compatible
query III rowsort label-9838
SELECT + col0 * 76, + 59 AS col0, + CAST ( NULL AS INTEGER ) * - + col1 * col1 AS col1 FROM tab2 cor0
----
9 values hashing to 00744ef50c682dc0f8fc1208445a0577

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9839
SELECT + + col2 AS col1 FROM tab2 AS cor0 WHERE col2 NOT BETWEEN NULL AND + + col1 * - CAST( col0 AS SIGNED ) + - + 80 * col0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-9839
SELECT + + col2 AS col1 FROM tab2 AS cor0 WHERE col2 NOT BETWEEN NULL AND + + col1 * - CAST ( col0 AS INTEGER ) + - + 80 * col0
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-9840
SELECT DISTINCT col1 + - col1 + - col2 DIV - col0 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-9840
SELECT DISTINCT col1 + - col1 + - col2 / - col0 FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT DISTINCT 4 * + ( col2 ) AS col1 FROM tab0 cor0
----
188
396
40

query I rowsort
SELECT ALL + col2 + + + col1 FROM tab0 AS cor0
----
100
128
31

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 53 BETWEEN NULL AND + + col0 * - + col1 * - col1 * - 82
----

query II rowsort
SELECT DISTINCT - 55 * - 43, col2 FROM tab0 AS cor0
----
2365
10
2365
47
2365
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9845
SELECT - 85 + - col0 + - col1 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9845
SELECT - 85 + - col0 + - col1 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 89 + 55 + 84 FROM tab1 AS cor0
----
50
50
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9847
SELECT COUNT( + col2 ) FROM tab0 AS cor0 WHERE ( + col0 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9847
SELECT COUNT ( + col2 ) FROM tab0 AS cor0 WHERE ( + col0 ) IS NULL
----
0

query I rowsort
SELECT - 43 + + 66 AS col2 FROM tab1
----
23
23
23

onlyif mysql # DIV for integer division: 
query I rowsort label-9849
SELECT ALL col0 DIV 77 AS col1 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9849
SELECT ALL col0 / 77 AS col1 FROM tab0
----
0
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9850
SELECT + CAST( NULL AS SIGNED ) * + 40 + AVG ( col0 ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9850
SELECT + CAST ( NULL AS INTEGER ) * + 40 + AVG ( col0 ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT col2 + + 50 + + col1 AS col2 FROM tab1
----
114
160
165

onlyif mysql # aggregate syntax: 
query I rowsort label-9852
SELECT DISTINCT SUM( 38 ) FROM tab2
----
114

skipif mysql # not compatible
query I rowsort label-9852
SELECT DISTINCT SUM ( 38 ) FROM tab2
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-9853
SELECT ALL 89 + COUNT( * ) FROM tab1
----
92

skipif mysql # not compatible
query I rowsort label-9853
SELECT ALL 89 + COUNT ( * ) FROM tab1
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-9854
SELECT DISTINCT col1 DIV - col0 + + 18 col0 FROM tab0
----
13
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9854
SELECT DISTINCT col1 / - col0 + + 18 col0 FROM tab0
----
13
18

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN 35 * col0 AND - + 18 * - + col0 - + col1 * ( col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 40 - - 97 + 3 col0, 88 FROM tab1 AS cor0
----
60
88
60
88
60
88

onlyif mysql # DIV for integer division: 
query I rowsort label-9857
SELECT ALL - col2 DIV + + ( col2 ) - + 50 AS col2 FROM tab0 cor0
----
-51
-51
-51

skipif mysql # not compatible
query I rowsort label-9857
SELECT ALL - col2 / + + ( col2 ) - + 50 AS col2 FROM tab0 cor0
----
-51
-51
-51

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT 56 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9859
SELECT + COUNT( * ) - + CAST( + + COUNT( * ) AS SIGNED ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9859
SELECT + COUNT ( * ) - + CAST ( + + COUNT ( * ) AS INTEGER ) AS col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9860
SELECT ALL - COUNT( DISTINCT col1 ) col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9860
SELECT ALL - COUNT ( DISTINCT col1 ) col2 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col1 ) NOT BETWEEN col2 AND ( - col2 / + ( + + col2 ) * + col2 )
----

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE 20 IS NOT NULL
----
14
47
5

query I rowsort
SELECT ALL col1 * - 57 FROM tab2 AS cor0
----
-2907
-3819
-4389

onlyif mysql # aggregate syntax: 
query I rowsort label-9864
SELECT ALL - ( - ( - COUNT( * ) ) ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9864
SELECT ALL - ( - ( - COUNT ( * ) ) ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9865
SELECT DISTINCT + CAST( + + 74 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-9865
SELECT DISTINCT + CAST ( + + 74 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
74

query I rowsort
SELECT col1 * 84 AS col1 FROM tab0
----
1764
6804
84

query I rowsort
SELECT ALL 25 FROM tab2 WHERE NOT 41 IS NULL
----
25
25
25

query I rowsort
SELECT - col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL <= - col1 * - + col2
----

query I rowsort
SELECT + 58 * 92 * + ( - + 19 ) + - col2 AS col0 FROM tab1 AS cor0
----
-101443
-101452
-101480

query I rowsort
SELECT ALL + 67 * col2 FROM tab2 AS cor0
----
1541
2680
3886

query I rowsort
SELECT DISTINCT + col2 + + 92 AS col2 FROM tab2 WHERE ( - 3 ) IS NOT NULL
----
115
132
150

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9872
SELECT - ( ( - CAST( 8 AS SIGNED ) ) ) + - col1 - col2 DIV + col2 col1 FROM tab2 AS cor0
----
-44
-60
-70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9872
SELECT - ( ( - CAST ( 8 AS INTEGER ) ) ) + - col1 - col2 / + col2 col1 FROM tab2 AS cor0
----
-44
-60
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-9873
SELECT DISTINCT - col2 DIV 82 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-9873
SELECT DISTINCT - col2 / 82 FROM tab1 AS cor0
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9874
SELECT - COUNT( * ) + + SUM( - 60 ) AS col1 FROM tab1 AS cor0
----
-183

skipif mysql # not compatible
query I rowsort label-9874
SELECT - COUNT ( * ) + + SUM ( - 60 ) AS col1 FROM tab1 AS cor0
----
-183

onlyif mysql # DIV for integer division: 
query I rowsort label-9875
SELECT DISTINCT 75 DIV - + col0 AS col2 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-9875
SELECT DISTINCT 75 / - + col0 AS col2 FROM tab1 AS cor0
----
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9876
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL BETWEEN + 1 AND - CAST( - col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9876
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL BETWEEN + 1 AND - CAST ( - col0 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9877
SELECT - + COUNT( - col2 ) * COUNT( * ) AS col2 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9877
SELECT - + COUNT ( - col2 ) * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-9

query I rowsort
SELECT ALL col0 * + 32 AS col2 FROM tab0 AS cor0
----
2784
3104
480

query I rowsort
SELECT DISTINCT - ( + - col0 ) AS col0 FROM tab0 cor0
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 + + + col1 >= - + 5
----
97
1
99

query I rowsort
SELECT - col2 * 12 - - 73 * - col1 AS col0 FROM tab0
----
-1261
-1653
-6477

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IS NULL AND NOT 49 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL <= + + col1 + + col2
----

query I rowsort
SELECT DISTINCT + col0 + - + col2 FROM tab1
----
-45
23
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9885
SELECT DISTINCT - COUNT( * ) + + + CAST( + COUNT( * ) AS SIGNED ) * 51 AS col2 FROM tab1 AS cor0
----
150

skipif mysql # not compatible
query I rowsort label-9885
SELECT DISTINCT - COUNT ( * ) + + + CAST ( + COUNT ( * ) AS INTEGER ) * 51 AS col2 FROM tab1 AS cor0
----
150

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 BETWEEN col2 AND + - col1 - - 41
----

query I rowsort
SELECT DISTINCT col1 - - 50 * col0 FROM tab0 AS cor0
----
4371
4851
831

query I rowsort
SELECT ALL - col1 / - col1 * + col0 * + 75 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9889
SELECT - col1 * col0 - - + 56 + + - CAST( NULL AS SIGNED ) * + ( + col2 ) AS col0 FROM tab0 WHERE NOT - 32 * col2 * + + col0 > NULL
----

skipif mysql # not compatible
query I rowsort label-9889
SELECT - col1 * col0 - - + 56 + + - CAST ( NULL AS INTEGER ) * + ( + col2 ) AS col0 FROM tab0 WHERE NOT - 32 * col2 * + + col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9890
SELECT DISTINCT + SUM( 34 ) FROM tab2 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-9890
SELECT DISTINCT + SUM ( 34 ) FROM tab2 AS cor0
----
102

query I rowsort
SELECT ALL col1 AS col0 FROM tab1 AS cor0 WHERE NOT + 17 <= + - 54
----
14
47
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9892
SELECT DISTINCT 77 DIV - MIN( + col0 ) AS col2 FROM tab0 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-9892
SELECT DISTINCT 77 / - MIN ( + col0 ) AS col2 FROM tab0 AS cor0
----
-5

query II rowsort
SELECT ALL - col1 AS col2, col0 FROM tab2 cor0
----
-51
46
-67
75
-77
64

query I rowsort
SELECT + col2 / col2 * - + 90 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9895
SELECT ALL - + COUNT( * ) AS col1, - MAX( - col2 ) col2 FROM tab2 AS cor0
----
-3
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9895
SELECT ALL - + COUNT ( * ) AS col1, - MAX ( - col2 ) col2 FROM tab2 AS cor0
----
-3
23

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + 86 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 * 48 * col0 FROM tab1
----
124848
346800
397488

onlyif mysql # aggregate syntax: 
query I rowsort label-9898
SELECT ALL SUM( 97 ) AS col1 FROM tab0
----
291

skipif mysql # not compatible
query I rowsort label-9898
SELECT ALL SUM ( 97 ) AS col1 FROM tab0
----
291

onlyif mysql # aggregate syntax: 
query I rowsort label-9899
SELECT COUNT( col1 ) * + 42 FROM tab1
----
126

skipif mysql # not compatible
query I rowsort label-9899
SELECT COUNT ( col1 ) * + 42 FROM tab1
----
126

query I rowsort
SELECT ALL - ( + col2 ) + - - col2 AS col0 FROM tab1
----
0
0
0

query II rowsort
SELECT DISTINCT - 79 * + - col2, - col0 AS col0 FROM tab0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT - 26 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 47d0574274146de273829785364ada39

query I rowsort
SELECT - 41 + + + col0 AS col0 FROM tab1 AS cor0
----
10
44
50

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) > - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9905
SELECT DISTINCT + - COUNT( DISTINCT + - ( - col0 ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9905
SELECT DISTINCT + - COUNT ( DISTINCT + - ( - col0 ) ) FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9906
SELECT ALL - col2, + col1 * + col1 - - col0 AS col2 FROM tab2 AS cor0 WHERE - ( 44 ) * - CAST( col0 AS SIGNED ) + + col2 > ( + col1 + - - col1 )
----
-23
2647
-40
5993
-58
4564

skipif mysql # not compatible
query II rowsort label-9906
SELECT ALL - col2, + col1 * + col1 - - col0 AS col2 FROM tab2 AS cor0 WHERE - ( 44 ) * - CAST ( col0 AS INTEGER ) + + col2 > ( + col1 + - - col1 )
----
-23
2647
-40
5993
-58
4564

onlyif mysql # aggregate syntax: 
query I rowsort label-9907
SELECT - COUNT( * ) * COUNT( * ) col2 FROM tab2 WHERE - col1 * - col0 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9907
SELECT - COUNT ( * ) * COUNT ( * ) col2 FROM tab2 WHERE - col1 * - col0 IS NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 * + 7 - col0 IN ( + col0 * - - col0 + + col1 * + col0, col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9909
SELECT + 17 AS col0, SUM( ( CAST( NULL AS SIGNED ) ) ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
17
NULL

skipif mysql # not compatible
query II rowsort label-9909
SELECT + 17 AS col0, SUM ( ( CAST ( NULL AS INTEGER ) ) ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
17
NULL

query I rowsort
SELECT ALL - 82 AS col0 FROM tab1 cor0
----
-82
-82
-82

query I rowsort
SELECT DISTINCT col2 / - + col1 + - 37 + col0 FROM tab0 AS cor0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9912
SELECT - 12 DIV col2 DIV - 45 + - - col1 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-9912
SELECT - 12 / col2 / - 45 + - - col1 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT + 63 + ( 73 ) AS col1 FROM tab0 cor0
----
136
136
136

query I rowsort
SELECT - ( 42 ) + col0 FROM tab0
----
-27
45
55

query I rowsort
SELECT + 96 + - - col2 AS col0 FROM tab2
----
119
136
154

query I rowsort
SELECT DISTINCT col2 * col2 + + 65 FROM tab1
----
3546
4689
9281

query I rowsort
SELECT ALL col1 * - 39 FROM tab1
----
-1833
-195
-546

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 36, - col0 col2 FROM tab0 WHERE + ( - col1 ) NOT BETWEEN NULL AND - col1
----

query I rowsort
SELECT + col0 * - 13 FROM tab0
----
-1131
-1261
-195

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9920
SELECT ALL * FROM tab2 WHERE + col0 * - CAST( NULL AS DECIMAL ) * 94 * - ( - - col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9920
SELECT ALL * FROM tab2 WHERE + col0 * - CAST ( NULL AS REAL ) * 94 * - ( - - col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE + col0 + - col1 - + - col2 BETWEEN NULL AND + - 47 + col2
----

query I rowsort
SELECT DISTINCT 48 * - + col0 FROM tab0
----
-4176
-4656
-720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9923
SELECT ALL + CAST( NULL AS SIGNED ) + - col2 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9923
SELECT ALL + CAST ( NULL AS INTEGER ) + - col2 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9924
SELECT + MAX( - - 56 ) AS col0 FROM tab2 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-9924
SELECT + MAX ( - - 56 ) AS col0 FROM tab2 AS cor0
----
56

query I rowsort
SELECT - col1 * - col2 * - 96 FROM tab0
----
-20160
-365472
-9504

query I rowsort
SELECT - 98 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638

query III rowsort
SELECT * FROM tab2 WHERE NOT + 91 BETWEEN NULL AND + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9928
SELECT 17 * COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
51

skipif mysql # not compatible
query I rowsort label-9928
SELECT 17 * COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-9929
SELECT col1 DIV + col1 * - - 1 + - 45 AS col2 FROM tab2 cor0
----
-44
-44
-44

skipif mysql # not compatible
query I rowsort label-9929
SELECT col1 / + col1 * - - 1 + - 45 AS col2 FROM tab2 cor0
----
-44
-44
-44

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN - col0 AND - col2
----

query I rowsort
SELECT - 20 * - 65 * + col1 FROM tab2 cor0
----
100100
66300
87100

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9932
SELECT AVG ( - ( - CAST( NULL AS SIGNED ) ) ) AS col1, 76 + + 77 col2 FROM tab0
----
NULL
153

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9932
SELECT AVG ( - ( - CAST ( NULL AS INTEGER ) ) ) AS col1, 76 + + 77 col2 FROM tab0
----
NULL
153

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col1 FROM tab1 WHERE col1 - + col2 IS NOT NULL
----
51
85
91

query I rowsort
SELECT ALL - 54 + 27 AS col2 FROM tab2
----
-27
-27
-27

query I rowsort
SELECT DISTINCT col0 * + - 30 + - col0 FROM tab2
----
-1426
-1984
-2325

query II rowsort
SELECT 71 AS col0, col0 FROM tab2 AS cor0
----
71
46
71
64
71
75

query I rowsort
SELECT DISTINCT col1 * - 11 * - col0 + + col2 FROM tab0 AS cor0
----
1166
13412
20107

query II rowsort
SELECT DISTINCT col2 * - 38 * + col1 + + + col0 AS col2, col2 AS col1 FROM tab1
----
-11125
59
-121357
68
-51021
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9939
SELECT ( + COUNT( * ) ) * + - 45 + - - 33 FROM tab0
----
-102

skipif mysql # not compatible
query I rowsort label-9939
SELECT ( + COUNT ( * ) ) * + - 45 + - - 33 FROM tab0
----
-102

query I rowsort
SELECT ALL ( + col2 ) + col1 FROM tab0
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9941
SELECT DISTINCT - COUNT( * ) + ( + - 0 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9941
SELECT DISTINCT - COUNT ( * ) + ( + - 0 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL + - 18 - - + 50 - - col1 AS col0 FROM tab1 AS cor0
----
37
46
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9943
SELECT DISTINCT COUNT( * ) + 43 AS col2 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-9943
SELECT DISTINCT COUNT ( * ) + 43 AS col2 FROM tab2 AS cor0
----
46

query II rowsort
SELECT DISTINCT - + col0 + + - col1, col2 FROM tab1 AS cor0
----
-138
68
-65
96
-90
59

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 * - 86 IS NULL
----

query I rowsort
SELECT ALL - 55 * + + col2 - - + ( + + col0 ) + + col0 AS col0 FROM tab1 AS cor0
----
-3075
-3558
-5178

query II rowsort
SELECT DISTINCT 12 - - col0 AS col2, col2 FROM tab0 AS cor0
----
109
99
27
47
99
10

query I rowsort
SELECT DISTINCT col1 - + - 40 + 99 AS col1 FROM tab0 AS cor0
----
140
160
220

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 < - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9950
SELECT + CAST( 50 AS SIGNED ) FROM tab2 AS cor0
----
50
50
50

skipif mysql # not compatible
query I rowsort label-9950
SELECT + CAST ( 50 AS INTEGER ) FROM tab2 AS cor0
----
50
50
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9951
SELECT ALL - 59 - COUNT( * ) FROM tab2 cor0
----
-62

skipif mysql # not compatible
query I rowsort label-9951
SELECT ALL - 59 - COUNT ( * ) FROM tab2 cor0
----
-62

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + - col2 / 81 * - 69 + + col1 BETWEEN NULL AND NULL AND NOT col2 IS NULL
----

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE NOT - - col2 IS NULL
----
-15
-87
-97

query I rowsort
SELECT + 98 - + 75 FROM tab2
----
23
23
23

query I rowsort
SELECT DISTINCT col1 + + col0 * + col0 AS col2 FROM tab2
----
2167
4173
5692

query I rowsort
SELECT - 77 * - - col1 AS col1 FROM tab1
----
-1078
-3619
-385

query II rowsort
SELECT - 53, + col1 FROM tab2
----
-53
51
-53
67
-53
77

onlyif mysql # aggregate syntax: 
query II rowsort label-9958
SELECT ( + 87 ) * + 31, - 18 + + 61 * - SUM( DISTINCT + - col1 ) col1 FROM tab0 AS cor0 WHERE NOT NULL <> col2
----
2697
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9958
SELECT ( + 87 ) * + 31, - 18 + + 61 * - SUM ( DISTINCT + - col1 ) col1 FROM tab0 AS cor0 WHERE NOT NULL <> col2
----
2697
NULL

query I rowsort
SELECT col2 * + 74 AS col0 FROM tab0 WHERE NOT + col1 IN ( - col2, col1, + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9960
SELECT MAX( + 25 ) AS col0 FROM tab0
----
25

skipif mysql # not compatible
query I rowsort label-9960
SELECT MAX ( + 25 ) AS col0 FROM tab0
----
25

query I rowsort
SELECT ALL + col1 * - + col0 FROM tab1
----
-425
-4277
-714

query I rowsort
SELECT DISTINCT 51 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 6, col0 col0 FROM tab1 AS cor0
----
-6
51
-6
85
-6
91

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 77 IS NOT NULL
----

query II rowsort
SELECT ALL - 65 AS col2, col1 FROM tab0 AS cor0
----
-65
1
-65
21
-65
81

query I rowsort
SELECT DISTINCT + col0 * - - 22 AS col2 FROM tab0 AS cor0
----
1914
2134
330

query I rowsort
SELECT ALL col2 * 97 * - col0 AS col0 FROM tab2 cor0
----
-102626
-248320
-421950

query I rowsort
SELECT ALL col0 * 35 - - col0 FROM tab2 AS cor0
----
1656
2304
2700

onlyif mysql # DIV for integer division: 
query I rowsort label-9969
SELECT ALL + col1 DIV - + col0 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9969
SELECT ALL + col1 / - + col0 AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9970
SELECT ( - ( - MAX( DISTINCT + col0 ) ) ) col1 FROM tab0
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9970
SELECT ( - ( - MAX ( DISTINCT + col0 ) ) ) col1 FROM tab0
----
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - ( - col1 ), col1 col0 FROM tab0
----
1
1
21
21
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9972
SELECT - SUM( ALL 74 ) + - COUNT( * ) FROM tab2
----
-225

skipif mysql # not compatible
query I rowsort label-9972
SELECT - SUM ( ALL 74 ) + - COUNT ( * ) FROM tab2
----
-225

query I rowsort
SELECT DISTINCT ( - 49 ) * - col0 FROM tab0 AS cor0
----
4263
4753
735

query I rowsort
SELECT - ( 40 ) AS col2 FROM tab1 AS cor0
----
-40
-40
-40

query I rowsort
SELECT + 49 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

onlyif mysql # DIV for integer division: 
query I rowsort label-9976
SELECT col1 - - - col1 * col1 DIV + col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9976
SELECT col1 - - - col1 * col1 / + col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 50 + + + 94 FROM tab0 AS cor0
----
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 46 + - - col0 col1 FROM tab2 cor0
----
0
18
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9979
SELECT DISTINCT - CAST( NULL AS SIGNED ) - - col1 - 15 * + col1 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9979
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - - col1 - 15 * + col1 AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + 50 * + col0 * - + ( 18 ) + + col2 FROM tab1 AS cor0
----
-45804
-76441
-81832

query I rowsort
SELECT - 14 + + col0 + - - col1 AS col1 FROM tab0 AS cor0
----
82
84
94

query I rowsort
SELECT + - col2 + 37 * - 52 FROM tab1 cor0
----
-1983
-1992
-2020

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9983
SELECT DISTINCT + col0 - - - 89 * CAST( + col1 AS SIGNED ) + - col2 + - col1 * + col1 AS col1 FROM tab0 AS cor0
----
-13802
-2233
-92

skipif mysql # not compatible
query I rowsort label-9983
SELECT DISTINCT + col0 - - - 89 * CAST ( + col1 AS INTEGER ) + - col2 + - col1 * + col1 AS col1 FROM tab0 AS cor0
----
-13802
-2233
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-9984
SELECT - col1 * 97 * - col1 DIV + col1 AS col2 FROM tab0
----
2037
7857
97

skipif mysql # not compatible
query I rowsort label-9984
SELECT - col1 * 97 * - col1 / + col1 AS col2 FROM tab0
----
2037
7857
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9985
SELECT ALL * FROM tab0 WHERE NOT + col0 * + + col0 * + CAST( NULL AS SIGNED ) / col0 * - 83 BETWEEN - col0 AND + col2
----

skipif mysql # not compatible
query III rowsort label-9985
SELECT ALL * FROM tab0 WHERE NOT + col0 * + + col0 * + CAST ( NULL AS INTEGER ) / col0 * - 83 BETWEEN - col0 AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9986
SELECT DISTINCT - COUNT( ALL - 50 ) + ( 49 ) * + + 33 AS col1 FROM tab0 WHERE NOT - - ( 63 ) + - col1 IS NOT NULL
----
1617

skipif mysql # not compatible
query I rowsort label-9986
SELECT DISTINCT - COUNT ( ALL - 50 ) + ( 49 ) * + + 33 AS col1 FROM tab0 WHERE NOT - - ( 63 ) + - col1 IS NOT NULL
----
1617

query I rowsort
SELECT col1 / + col0 * + 6 FROM tab1 WHERE NOT + col2 IS NOT NULL AND 41 IS NOT NULL
----

query I rowsort
SELECT - ( + - 33 ) AS col2 FROM tab1 AS cor0
----
33
33
33

query I rowsort
SELECT DISTINCT + + col0 * + col1 AS col0 FROM tab1 AS cor0
----
425
4277
714

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - 31 < - 29
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9991
SELECT DISTINCT + 23 - - COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
32

skipif mysql # not compatible
query I rowsort label-9991
SELECT DISTINCT + 23 - - COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
32

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL > - 73
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 63 col2 FROM tab0
----
-63
-63
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9994
SELECT ALL 69 + 68 + - CAST( - col0 AS SIGNED ) + - col1 / + + col2 AS col0 FROM tab2 cor0 WHERE + col2 + - - 92 < - col2 - + col0 / - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9994
SELECT ALL 69 + 68 + - CAST ( - col0 AS INTEGER ) + - col1 / + + col2 AS col0 FROM tab2 cor0 WHERE + col2 + - - 92 < - col2 - + col0 / - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - col1 + - col2 FROM tab1 AS cor0 WHERE NOT + col1 NOT BETWEEN - 40 AND NULL
----

query I rowsort
SELECT - 4 + - 90 FROM tab1 AS cor0
----
-94
-94
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9997
SELECT - - col2 + - - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9997
SELECT - - col2 + - - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) < - + 68
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9999
SELECT + CAST( NULL AS SIGNED ) + - col1 * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9999
SELECT + CAST ( NULL AS INTEGER ) + - col1 * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

