hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + 49 BETWEEN - 92 AND NULL
----

query I rowsort
SELECT - col0 * - - col0 FROM tab1
----
-2601
-7225
-8281

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

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

query I rowsort
SELECT + - col2 * - - ( - + 66 ) FROM tab0 AS cor0
----
3102
6534
660

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

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

query I rowsort
SELECT DISTINCT + 69 AS col1 FROM tab2 AS cor0 WHERE NOT ( + 77 * - 63 / ( col0 ) IS NULL )
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-8
SELECT DISTINCT - 0 DIV col2 + + col0 * + - col0 FROM tab1 AS cor0
----
-2601
-7225
-8281

skipif mysql # not compatible
query I rowsort label-8
SELECT DISTINCT - 0 / col2 + + col0 * + - col0 FROM tab1 AS cor0
----
-2601
-7225
-8281

query I rowsort
SELECT + 18 + + col0 + - + ( - col1 ) FROM tab1 AS cor0
----
108
156
83

query I rowsort
SELECT + + col0 + - - 66 FROM tab0 AS cor0
----
153
163
81

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

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

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

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

query I rowsort
SELECT ALL + - col1 + + 61 AS col1 FROM tab2 AS cor0
----
-16
-6
10

query I rowsort
SELECT DISTINCT col1 + - 73 + 26 + + col0 FROM tab1
----
18
43
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-16
SELECT DISTINCT 11 - + COUNT( - 54 ) * - - 90 DIV - COUNT( ALL 32 ) FROM tab0
----
101

skipif mysql # not compatible
query I rowsort label-16
SELECT DISTINCT 11 - + COUNT ( - 54 ) * - - 90 / - COUNT ( ALL 32 ) FROM tab0
----
101

query I rowsort
SELECT DISTINCT + col2 * - + col1 - - col0 + + col0 FROM tab1
----
-1242
-125
-3014

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-18
SELECT CAST( - - col0 AS SIGNED ) - col0 - + col1 + 28 AS col2 FROM tab2 AS cor0
----
-23
-39
-49

skipif mysql # not compatible
query I rowsort label-18
SELECT CAST ( - - col0 AS INTEGER ) - col0 - + col1 + 28 AS col2 FROM tab2 AS cor0
----
-23
-39
-49

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

skipif mysql # not compatible
query I rowsort label-19
SELECT - 97 + + + 31 - - COUNT ( * ) FROM tab1
----
-63

query I rowsort
SELECT + - 44 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2

onlyif mysql # aggregate syntax: 
query I rowsort label-21
SELECT + SUM( ALL + 90 ) FROM tab0 AS cor0
----
270

skipif mysql # not compatible
query I rowsort label-21
SELECT + SUM ( ALL + 90 ) FROM tab0 AS cor0
----
270

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

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

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

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

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

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

query I rowsort
SELECT - col0 * - - 29 * + col0 AS col1 FROM tab1 cor0
----
-209525
-240149
-75429

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

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

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

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

query I rowsort
SELECT 30 * - 85 AS col1 FROM tab2
----
-2550
-2550
-2550

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-33
SELECT col0 + + ( - CAST( + - col1 AS SIGNED ) ) FROM tab0
----
108
96
98

skipif mysql # not compatible
query I rowsort label-33
SELECT col0 + + ( - CAST ( + - col1 AS INTEGER ) ) FROM tab0
----
108
96
98

query I rowsort
SELECT DISTINCT 9 * + - col2 FROM tab1 AS cor0
----
-531
-612
-864

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-39
SELECT DISTINCT - MAX ( 64 ) FROM tab2 AS cor0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-40
SELECT DISTINCT + + MIN( ALL - col1 ) AS col0 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-40
SELECT DISTINCT + + MIN ( ALL - col1 ) AS col0 FROM tab2 AS cor0
----
-77

query I rowsort
SELECT DISTINCT - 79 * + col0 + + - col0 * - 33 AS col0 FROM tab0 AS cor0
----
-4002
-4462
-690

query II rowsort
SELECT - - col2 - - ( - col0 ) AS col0, + col0 * + col0 AS col0 FROM tab1 AS cor0
----
-23
8281
-26
7225
45
2601

query III rowsort
SELECT * FROM tab0 WHERE ( 61 NOT BETWEEN 68 + - col0 AND - 10 - + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + ( - - 35 ) - col2 AS col1 FROM tab1
----
-24
-33
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-45
SELECT COUNT( * ) + + - 13 AS col2, + 67 FROM tab1
----
-10
67

skipif mysql # not compatible
query II rowsort label-45
SELECT COUNT ( * ) + + - 13 AS col2, + 67 FROM tab1
----
-10
67

query I rowsort
SELECT col2 + 40 FROM tab0
----
139
50
87

query I rowsort
SELECT ALL + col0 - - 98 * 67 AS col2 FROM tab0
----
6581
6653
6663

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

onlyif mysql # aggregate syntax: 
query I rowsort label-49
SELECT DISTINCT 20 - + - SUM( 81 ) * + - 59 FROM tab2
----
-14317

skipif mysql # not compatible
query I rowsort label-49
SELECT DISTINCT 20 - + - SUM ( 81 ) * + - 59 FROM tab2
----
-14317

query I rowsort
SELECT DISTINCT col0 * ( - - col0 ) - - col0 AS col0 FROM tab2
----
2162
4160
5700

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

onlyif mysql # aggregate syntax: 
query I rowsort label-52
SELECT - - COUNT( * ) * 80 * - + 83 * + + MIN( DISTINCT + col0 ) FROM tab1 AS cor0
----
-1015920

skipif mysql # not compatible
query I rowsort label-52
SELECT - - COUNT ( * ) * 80 * - + 83 * + + MIN ( DISTINCT + col0 ) FROM tab1 AS cor0
----
-1015920

query I rowsort
SELECT + col2 * 43 * - + col1 FROM tab2 AS cor0
----
-132440
-167098
-50439

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

query I rowsort
SELECT ALL col1 * 81 + + col0 FROM tab1 AS cor0
----
1185
3898
490

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

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

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

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

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

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

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

query I rowsort
SELECT ALL 96 * + col0 - - 16 FROM tab0 AS cor0
----
1456
8368
9328

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-62
SELECT ALL + 55 - + + 66 * + - 2 - + 82 AS col2 FROM tab0 cor0 WHERE NULL NOT BETWEEN + CAST( + col2 AS SIGNED ) AND + col0 + - 62
----

skipif mysql # not compatible
query I rowsort label-62
SELECT ALL + 55 - + + 66 * + - 2 - + 82 AS col2 FROM tab0 cor0 WHERE NULL NOT BETWEEN + CAST ( + col2 AS INTEGER ) AND + col0 + - 62
----

onlyif mysql # aggregate syntax: 
query I rowsort label-63
SELECT ( - - MIN( DISTINCT - 16 ) ) col1 FROM tab0 AS cor0
----
-16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-63
SELECT ( - - MIN ( DISTINCT - 16 ) ) col1 FROM tab0 AS cor0
----
-16

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-68
SELECT COUNT( * ) * 59 * + SUM( DISTINCT - 67 ) FROM tab1
----
-11859

skipif mysql # not compatible
query I rowsort label-68
SELECT COUNT ( * ) * 59 * + SUM ( DISTINCT - 67 ) FROM tab1
----
-11859

query I rowsort
SELECT ALL + 97 * + + 17 FROM tab0
----
1649
1649
1649

query I rowsort
SELECT 7 * - col0 AS col1 FROM tab1
----
-357
-595
-637

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT IN ( - 25, - 80, - col1 )
----

query I rowsort
SELECT - - 78 FROM tab2 WHERE NOT + 30 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-73
SELECT DISTINCT - CAST( ( + 82 ) AS SIGNED ) * - - 50 AS col1 FROM tab2
----
-4100

skipif mysql # not compatible
query I rowsort label-73
SELECT DISTINCT - CAST ( ( + 82 ) AS INTEGER ) * - - 50 AS col1 FROM tab2
----
-4100

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

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

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

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

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

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

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

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

query I rowsort
SELECT 3 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) >= NULL
----

query I rowsort
SELECT ALL + - col0 * + 20 - + col1 AS col0 FROM tab2 AS cor0
----
-1357
-1567
-971

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

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

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

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

query I rowsort
SELECT col0 + + - col1 + col1 - - - col2 * - col0 AS col1 FROM tab0 AS cor0
----
720
957
9700

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

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

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

query I rowsort
SELECT DISTINCT + col1 * - - 62 FROM tab1 AS cor0
----
2914
310
868

onlyif mysql # DIV for integer division: 
query I rowsort label-89
SELECT + 51 DIV - - col2 AS col0 FROM tab2
----
0
1
2

skipif mysql # not compatible
query I rowsort label-89
SELECT + 51 / - - col2 AS col0 FROM tab2
----
0
1
2

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-93
SELECT DISTINCT + + COUNT( ALL + col1 ) FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-93
SELECT DISTINCT + + COUNT ( ALL + col1 ) FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
3

query I rowsort
SELECT ALL - col1 * + col0 + 92 FROM tab1 AS cor0
----
-333
-4185
-622

onlyif mysql # aggregate syntax: 
query I rowsort label-95
SELECT + + COUNT( * ) * COUNT( col0 ) * ( 18 ) AS col2 FROM tab2 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-95
SELECT + + COUNT ( * ) * COUNT ( col0 ) * ( 18 ) AS col2 FROM tab2 AS cor0
----
162

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-97
SELECT DISTINCT - COUNT( * ) DIV 42 * - SUM( DISTINCT + col0 ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-97
SELECT DISTINCT - COUNT ( * ) / 42 * - SUM ( DISTINCT + col0 ) AS col2 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-98
SELECT ALL * FROM tab0 WHERE CAST( NULL AS SIGNED ) = NULL
----

skipif mysql # not compatible
query III rowsort label-98
SELECT ALL * FROM tab0 WHERE CAST ( NULL AS INTEGER ) = NULL
----

query I rowsort
SELECT - col1 * + + 41 AS col2 FROM tab0
----
-3321
-41
-861

query II rowsort
SELECT - 48 AS col2, - ( col2 ) AS col2 FROM tab1
----
-48
-59
-48
-68
-48
-96

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

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

query II rowsort
SELECT DISTINCT + col0, 72 FROM tab1 AS cor0
----
51
72
85
72
91
72

onlyif mysql # aggregate syntax: 
query I rowsort label-103
SELECT ALL + 48 * MIN( + + 47 ) AS col2 FROM tab0 cor0
----
2256

skipif mysql # not compatible
query I rowsort label-103
SELECT ALL + 48 * MIN ( + + 47 ) AS col2 FROM tab0 cor0
----
2256

onlyif mysql # aggregate syntax: 
query I rowsort label-104
SELECT DISTINCT MIN( - col2 ) AS col2 FROM tab2 AS cor0 WHERE NULL < 23 / - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-104
SELECT DISTINCT MIN ( - col2 ) AS col2 FROM tab2 AS cor0 WHERE NULL < 23 / - col2
----
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT col1 AS col1, 87 + 1 * + - 20 col2, + col0 FROM tab2 AS cor0
----
9 values hashing to ad09b03fa6c8e135805efba6f9241091

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

query I rowsort
SELECT DISTINCT + col1 + col0 FROM tab0 AS cor0 WHERE NOT + col1 * + 85 BETWEEN - 89 AND NULL
----

query I rowsort
SELECT + 89 * + col0 * - ( + + col2 ) FROM tab2
----
-227840
-387150
-94162

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-112
SELECT ( + ( + + col2 ) ) * 85 * 87 DIV col1 * - + col1 AS col0 FROM tab2
----
-170085
-295757
-428867

skipif mysql # not compatible
query I rowsort label-112
SELECT ( + ( + + col2 ) ) * 85 * 87 / col1 * - + col1 AS col0 FROM tab2
----
-170085
-295757
-428867

query II rowsort
SELECT + col0 * 74, ( + col1 ) + - col1 AS col1 FROM tab0
----
1110
0
6438
0
7178
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-114
SELECT ALL 90 * - - col0 AS col1 FROM tab2 WHERE NOT + col0 = - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-114
SELECT ALL 90 * - - col0 AS col1 FROM tab2 WHERE NOT + col0 = - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 0 + + 98 * - col1 = - 38
----

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

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

query I rowsort
SELECT + + 75 + + - col1 FROM tab1 AS cor0
----
28
61
70

query II rowsort
SELECT + + 60 + + + col0, - 46 AS col2 FROM tab2 cor0
----
106
-46
124
-46
135
-46

query II rowsort
SELECT DISTINCT col1 - - col1 * 61, - 45 AS col1 FROM tab0
----
1302
-45
5022
-45
62
-45

query II rowsort
SELECT col1 * ( - - col2 ), + col2 AS col1 FROM tab2 AS cor0
----
1173
23
3080
40
3886
58

query I rowsort
SELECT DISTINCT - 55 + + - col2 AS col0 FROM tab0 AS cor0
----
-102
-154
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-122
SELECT DISTINCT + SUM( - col1 ) * + - 85 AS col0 FROM tab0 AS cor0
----
8755

skipif mysql # not compatible
query I rowsort label-122
SELECT DISTINCT + SUM ( - col1 ) * + - 85 AS col0 FROM tab0 AS cor0
----
8755

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-123
SELECT + - 1 - CAST( + col1 AS SIGNED ) + col1 * 25 + - + col1 + col1 FROM tab0 AS cor0
----
1943
23
503

skipif mysql # not compatible
query I rowsort label-123
SELECT + - 1 - CAST ( + col1 AS INTEGER ) + col1 * 25 + - + col1 + col1 FROM tab0 AS cor0
----
1943
23
503

query I rowsort
SELECT - col0 * 19 + + + col2 - 0 AS col0 FROM tab1 AS cor0
----
-1556
-1661
-873

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

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

query I rowsort
SELECT DISTINCT col2 - + 44 AS col2 FROM tab1
----
15
24
52

query I rowsort
SELECT ALL 21 FROM tab2 WHERE col2 * 51 + + col1 IS NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-131
SELECT - + 55 * - - SUM( DISTINCT + 49 ) AS col0 FROM tab2 AS cor0
----
-2695

skipif mysql # not compatible
query I rowsort label-131
SELECT - + 55 * - - SUM ( DISTINCT + 49 ) AS col0 FROM tab2 AS cor0
----
-2695

onlyif mysql # aggregate syntax: 
query I rowsort label-132
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE NULL >= + col1 AND NOT - col1 + + - col1 * + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-132
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE NULL >= + col1 AND NOT - col1 + + - col1 * + col1 IS NOT NULL
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-134
SELECT CAST( NULL AS SIGNED ) / + - ( 69 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-134
SELECT CAST ( NULL AS INTEGER ) / + - ( 69 ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 29 * + col2 * - col2 + + col1 > + + col0 / + - col1
----

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

skipif mysql # not compatible
query I rowsort label-136
SELECT ALL ( + - COUNT ( * ) ) / - - 15 AS col0 FROM tab0 AS cor0
----
0

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col1 + 66 )
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-140
SELECT 84 DIV 21 + + col0 AS col0 FROM tab0
----
101
19
91

skipif mysql # not compatible
query I rowsort label-140
SELECT 84 / 21 + + col0 AS col0 FROM tab0
----
101
19
91

query I rowsort
SELECT DISTINCT - col1 + 57 FROM tab2
----
-10
-20
6

query I rowsort
SELECT DISTINCT + ( - col1 ) * - col1 FROM tab1
----
196
2209
25

query I rowsort
SELECT ALL col0 * + col2 * + + col0 AS col0 FROM tab1
----
249696
426275
563108

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1, + col1 + + col2 col0 FROM tab1
----
14
110
47
115
5
64

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

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

query III rowsort
SELECT * FROM tab2 WHERE - - col2 * - col1 / + 40 <> NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-148
SELECT DISTINCT + col2 + ( - ( col1 ) ) + - - col2 + col0 DIV - col2 + 18 * + + 55 * + + 32 FROM tab2 AS cor0
----
31673
31682
31728

skipif mysql # not compatible
query I rowsort label-148
SELECT DISTINCT + col2 + ( - ( col1 ) ) + - - col2 + col0 / - col2 + 18 * + + 55 * + + 32 FROM tab2 AS cor0
----
31673
31682
31728

query I rowsort
SELECT DISTINCT col1 + - - col1 AS col0 FROM tab2 AS cor0
----
102
134
154

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

query I rowsort
SELECT 83 + + col1 AS col2 FROM tab0
----
104
164
84

query I rowsort
SELECT - - col1 + col2 AS col2 FROM tab2 cor0
----
117
125
74

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

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

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

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

query I rowsort
SELECT DISTINCT - col1 * + + col1 * + + col1 + - col1 - - col0 FROM tab2 AS cor0
----
-132656
-300755
-456546

onlyif mysql # DIV for integer division: 
query I rowsort label-156
SELECT DISTINCT + col2 + - ( - + ( + - 1 ) ) * 49 DIV - + col0 - col1 + - - 44 * - + 51 col2 FROM tab1 cor0
----
-2162
-2190
-2223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-156
SELECT DISTINCT + col2 + - ( - + ( + - 1 ) ) * 49 / - + col0 - col1 + - - 44 * - + 51 col2 FROM tab1 cor0
----
-2162
-2190
-2223

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

query I rowsort
SELECT ALL col1 + - 66 AS col0 FROM tab0 AS cor0
----
-45
-65
15

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

skipif mysql # not compatible
query I rowsort label-159
SELECT ALL - ( CAST ( + col2 AS INTEGER ) ) AS col2 FROM tab2
----
-23
-40
-58

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

query I rowsort
SELECT col2 FROM tab1 WHERE NOT NULL < - 20
----

onlyif mysql # DIV for integer division: 
query I rowsort label-162
SELECT + col2 DIV ( - col0 ) * - col1 FROM tab1
----
0
0
14

skipif mysql # not compatible
query I rowsort label-162
SELECT + col2 / ( - col0 ) * - col1 FROM tab1
----
0
0
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 53 col2, - 80 AS col1 FROM tab0
----
53
-80
53
-80
53
-80

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

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

query I rowsort
SELECT ALL - 30 * + col2 AS col0 FROM tab2
----
-1200
-1740
-690

query II rowsort
SELECT 26 AS col0, col2 + - col2 AS col0 FROM tab2
----
26
0
26
0
26
0

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

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

query I rowsort
SELECT ALL col0 * - + 14 FROM tab2
----
-1050
-644
-896

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-170
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 + - 86 <= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-170
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 + - 86 <= CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-171
SELECT 77 * + - COUNT( * ) col0 FROM tab2 AS cor0
----
-231

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-171
SELECT 77 * + - COUNT ( * ) col0 FROM tab2 AS cor0
----
-231

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-173
SELECT + + col2 AS col1 FROM tab2 AS cor0 WHERE NOT col0 / - col1 * + CAST( NULL AS SIGNED ) / - - col1 IS NOT NULL
----
23
40
58

skipif mysql # not compatible
query I rowsort label-173
SELECT + + col2 AS col1 FROM tab2 AS cor0 WHERE NOT col0 / - col1 * + CAST ( NULL AS INTEGER ) / - - col1 IS NOT NULL
----
23
40
58

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

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

query I rowsort
SELECT ALL + 35 + - 11 AS col1 FROM tab0 WHERE NOT ( col2 / + 38 ) < ( ( - 19 ) )
----
24
24
24

query I rowsort
SELECT 15 FROM tab1 WHERE NOT NULL IS NULL
----

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

query I rowsort
SELECT col1 * 60 - 46 FROM tab2
----
3014
3974
4574

onlyif mysql # aggregate syntax: 
query I rowsort label-179
SELECT - COUNT( * ) - - COUNT( * ) * + 78 FROM tab0
----
231

skipif mysql # not compatible
query I rowsort label-179
SELECT - COUNT ( * ) - - COUNT ( * ) * + 78 FROM tab0
----
231

onlyif mysql # DIV for integer division: 
query I rowsort label-180
SELECT ALL + 76 DIV col2 + - col2 AS col0 FROM tab1
----
-58
-67
-96

skipif mysql # not compatible
query I rowsort label-180
SELECT ALL + 76 / col2 + - col2 AS col0 FROM tab1
----
-58
-67
-96

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + 33 ) NOT IN ( col1 / - 56 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-182
SELECT - AVG ( ALL CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-182
SELECT - AVG ( ALL CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT ( + 37 ) FROM tab0
----
37

query I rowsort
SELECT DISTINCT - col0 * - 23 + - 2 * - col1 AS col2 FROM tab0
----
2043
2233
507

onlyif mysql # DIV for integer division: 
query I rowsort label-185
SELECT DISTINCT 78 + 39 DIV col2 AS col0 FROM tab2
----
78
79

skipif mysql # not compatible
query I rowsort label-185
SELECT DISTINCT 78 + 39 / col2 AS col0 FROM tab2
----
78
79

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE NULL BETWEEN NULL AND - 11
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - col0 * col2 col0 FROM tab0
----
-658
-860
-9504

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-189
SELECT 82 + 50 col0 FROM tab1 WHERE col2 = CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-189
SELECT 82 + 50 col0 FROM tab1 WHERE col2 = CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - col0 AS col1 FROM tab1 WHERE NOT ( - col1 / - 75 + - 31 / + col1 ) NOT BETWEEN 90 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-191
SELECT - COUNT( * ) + - SUM( ALL 58 ) AS col0 FROM tab0
----
-177

skipif mysql # not compatible
query I rowsort label-191
SELECT - COUNT ( * ) + - SUM ( ALL 58 ) AS col0 FROM tab0
----
-177

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + col0 col0 FROM tab1
----
-4896
-5015
-6188

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 NOT IN ( 12 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-195
SELECT ALL - col0 * ( - col1 DIV - col1 ) AS col1 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-195
SELECT ALL - col0 * ( - col1 / - col1 ) AS col1 FROM tab0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-196
SELECT COUNT( * ) * - 82 FROM tab0
----
-246

skipif mysql # not compatible
query I rowsort label-196
SELECT COUNT ( * ) * - 82 FROM tab0
----
-246

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 17 + - col1 col1 FROM tab1
----
-30
12
3

query I rowsort
SELECT ALL + col2 * + 8 + + col0 * - col2 AS col0 FROM tab1
----
-4128
-4543
-5644

onlyif mysql # aggregate syntax: 
query I rowsort label-200
SELECT ALL - 9 + MIN( ALL col2 ) AS col0 FROM tab2 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-200
SELECT ALL - 9 + MIN ( ALL col2 ) AS col0 FROM tab2 AS cor0
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-201
SELECT COUNT( * ) + - 96 DIV - 3 AS col1 FROM tab1 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-201
SELECT COUNT ( * ) + - 96 / - 3 AS col1 FROM tab1 AS cor0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-202
SELECT 99 + COUNT( * ) FROM tab1 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-202
SELECT 99 + COUNT ( * ) FROM tab1 AS cor0
----
102

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

query I rowsort
SELECT 47 * 56 + col2 FROM tab2 cor0
----
2655
2672
2690

query I rowsort
SELECT DISTINCT col0 + 12 * - ( + col2 ) AS col0 FROM tab0 AS cor0
----
-1091
-33
-549

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-208
SELECT DISTINCT + COUNT( * ) - 92 FROM tab2 AS cor0
----
-89

skipif mysql # not compatible
query I rowsort label-208
SELECT DISTINCT + COUNT ( * ) - 92 FROM tab2 AS cor0
----
-89

query I rowsort
SELECT - 15 - - 60 AS col0 FROM tab1 AS cor0
----
45
45
45

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

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

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

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

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

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

query I rowsort
SELECT - 95 - 53 * - 37 AS col2 FROM tab0 AS cor0 WHERE - 17 IS NOT NULL
----
1866
1866
1866

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-214
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 23 * + 79 BETWEEN - col0 + CAST( NULL AS SIGNED ) AND - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-214
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 23 * + 79 BETWEEN - col0 + CAST ( NULL AS INTEGER ) AND - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 25 + col1 col1 FROM tab1 AS cor0
----
30
39
72

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-217
SELECT ALL - - MAX ( - 31 ) col2 FROM tab2 AS cor0
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-218
SELECT + CAST( MAX( + col0 ) AS SIGNED ) FROM tab1 AS cor0
----
91

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

query I rowsort
SELECT DISTINCT col0 + + 62 AS col0 FROM tab2 cor0 WHERE NOT ( col0 ) BETWEEN ( NULL ) AND col1
----
137

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

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

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

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

skipif mysql # not compatible
query I rowsort label-222
SELECT DISTINCT - COUNT ( * ) FROM tab1 WHERE NOT ( + 79 ) IS NULL
----
-3

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-224
SELECT ( - CAST( - COUNT( ALL col2 ) AS SIGNED ) ) DIV 89 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-224
SELECT ( - CAST ( - COUNT ( ALL col2 ) AS INTEGER ) ) / 89 FROM tab2
----
0

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

query I rowsort
SELECT DISTINCT - col0 * + - 92 FROM tab1
----
4692
7820
8372

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

onlyif mysql # DIV for integer division: 
query I rowsort label-228
SELECT - col2 * 43 DIV + col0 AS col0 FROM tab0 AS cor0
----
-134
-4
-43

skipif mysql # not compatible
query I rowsort label-228
SELECT - col2 * 43 / + col0 AS col0 FROM tab0 AS cor0
----
-134
-4
-43

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-230
SELECT CAST( 5 AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NOT - col1 > - col0
----
5
5

skipif mysql # not compatible
query I rowsort label-230
SELECT CAST ( 5 AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT - col1 > - col0
----
5
5

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

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

query I rowsort
SELECT DISTINCT + 27 AS col1 FROM tab0, tab1 AS cor0 WHERE ( NULL ) IS NULL
----
27

query I rowsort
SELECT DISTINCT col0 * - - 57 AS col1 FROM tab2
----
2622
3648
4275

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

query I rowsort
SELECT ALL 41 * + 28 FROM tab2
----
1148
1148
1148

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

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

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

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

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

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

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

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

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

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

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

skipif mysql # not compatible
query II rowsort label-242
SELECT DISTINCT + COUNT ( * ) AS col0, - 46 FROM tab2 AS cor0
----
3
-46

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

query I rowsort
SELECT - col0 + + 99 FROM tab2 AS cor0
----
24
35
53

query I rowsort
SELECT col1 * + col2 + - - col0 - 32 FROM tab0 AS cor0
----
164
265
3790

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-248
SELECT DISTINCT + CAST( - col1 AS SIGNED ) + - - 44 * - ( col1 ) col2 FROM tab0
----
-3645
-45
-945

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-248
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) + - - 44 * - ( col1 ) col2 FROM tab0
----
-3645
-45
-945

onlyif mysql # aggregate syntax: 
query I rowsort label-249
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE NULL > col1 - + col1 - col2 * 43 / - col1
----
0

skipif mysql # not compatible
query I rowsort label-249
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE NULL > col1 - + col1 - col2 * 43 / - col1
----
0

query I rowsort
SELECT DISTINCT col0 + - ( + ( - col0 ) ) AS col1 FROM tab2
----
128
150
92

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-252
SELECT DISTINCT col2 + - CAST( + col1 AS SIGNED ) AS col1 FROM tab2
----
-28
-37
-9

skipif mysql # not compatible
query I rowsort label-252
SELECT DISTINCT col2 + - CAST ( + col1 AS INTEGER ) AS col1 FROM tab2
----
-28
-37
-9

query I rowsort
SELECT DISTINCT - col2 + ( col1 ) + col0 * ( - col1 ) AS col0 FROM tab1
----
-4298
-479
-796

onlyif mysql # aggregate syntax: 
query I rowsort label-254
SELECT 74 * COUNT( ALL - col1 ) AS col1 FROM tab0
----
222

skipif mysql # not compatible
query I rowsort label-254
SELECT 74 * COUNT ( ALL - col1 ) AS col1 FROM tab0
----
222

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-255
SELECT col1 FROM tab1 WHERE ( + col1 + - - 88 + - CAST( NULL AS DECIMAL ) ) IS NULL
----
14
47
5

skipif mysql # not compatible
query I rowsort label-255
SELECT col1 FROM tab1 WHERE ( + col1 + - - 88 + - CAST ( NULL AS REAL ) ) IS NULL
----
14
47
5

query I rowsort
SELECT ALL 47 * - 19 * + 73 - + 46 - 45 * col2 FROM tab0
----
-65685
-67350
-69690

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col2 ) - + col1 col1 FROM tab0
----
-11
-34
98

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-260
SELECT ALL - + MIN( - - col1 ) + + MAX( - + col2 ) * - MAX( ALL col2 * ( ( 11 ) ) ) FROM tab1 AS cor0
----
62299

skipif mysql # not compatible
query I rowsort label-260
SELECT ALL - + MIN ( - - col1 ) + + MAX ( - + col2 ) * - MAX ( ALL col2 * ( ( 11 ) ) ) FROM tab1 AS cor0
----
62299

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

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

query I rowsort
SELECT ALL - ( - ( col0 ) ) + + + col1 AS col0 FROM tab1
----
138
65
90

query I rowsort
SELECT DISTINCT - col2 + + col2 * + col2 FROM tab0
----
2162
90
9702

query I rowsort
SELECT + + 76 AS col2 FROM tab2 WHERE NULL IS NULL
----
76
76
76

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-267
SELECT DISTINCT COUNT( * ) * + + SUM( col1 ) * MAX( ALL - - col2 ) + + 50 FROM tab0 cor0
----
30641

skipif mysql # not compatible
query I rowsort label-267
SELECT DISTINCT COUNT ( * ) * + + SUM ( col1 ) * MAX ( ALL - - col2 ) + + 50 FROM tab0 cor0
----
30641

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

query I rowsort
SELECT ALL + - 13 + - col2 + col0 AS col0 FROM tab2 cor0 WHERE NOT 95 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-270
SELECT - COUNT( * ) * MAX( ALL 16 ) FROM tab1
----
-48

skipif mysql # not compatible
query I rowsort label-270
SELECT - COUNT ( * ) * MAX ( ALL 16 ) FROM tab1
----
-48

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - 39 * 2 IN ( 70 )
----

query II rowsort
SELECT + col0 AS col1, col1 * 99 * - - col1 - + 10 * - 61 FROM tab1
----
51
20014
85
3085
91
219301

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-275
SELECT 52 DIV - + col1 AS col2 FROM tab1
----
-1
-10
-3

skipif mysql # not compatible
query I rowsort label-275
SELECT 52 / - + col1 AS col2 FROM tab1
----
-1
-10
-3

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

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

query I rowsort
SELECT col1 * + 26 - + ( + col0 ) AS col1 FROM tab1 WHERE NOT + col0 IS NULL
----
1131
313
45

query I rowsort
SELECT DISTINCT + 26 AS col0 FROM tab2 WHERE NOT + - 44 NOT IN ( 17 )
----

query II rowsort
SELECT + 86 + + + col1 AS col1, 71 AS col0 FROM tab2
----
137
71
153
71
163
71

query II rowsort
SELECT DISTINCT - 52, 5 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-52
5

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-281
SELECT 48 DIV col2 * CAST( - + 80 AS SIGNED ) AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-281
SELECT 48 / col2 * CAST ( - + 80 AS INTEGER ) AS col1 FROM tab1
----
0
0
0

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

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

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 50 NOT BETWEEN NULL AND - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 28 * 92 + - - 21 FROM tab1 AS cor0
----
2597
2597
2597

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

query I rowsort
SELECT ALL - col1 + - ( - 16 ) FROM tab1
----
-31
11
2

query II rowsort
SELECT ALL ( + col0 ) + + col0, col1 FROM tab0
----
174
21
194
1
30
81

query I rowsort
SELECT col2 * - col0 + + 98 + - col2 + + 15 FROM tab0 WHERE - 57 IS NULL
----

query I rowsort
SELECT + 76 FROM tab1 WHERE NULL IS NULL
----
76
76
76

query I rowsort
SELECT ALL + 40 + ( col0 ) FROM tab2
----
104
115
86

query III rowsort
SELECT * FROM tab0 WHERE col1 * - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-294
SELECT DISTINCT - col0 + - + CAST( - - 88 AS SIGNED ) AS col2, - col1 FROM tab2
----
-134
-51
-152
-77
-163
-67

skipif mysql # not compatible
query II rowsort label-294
SELECT DISTINCT - col0 + - + CAST ( - - 88 AS INTEGER ) AS col2, - col1 FROM tab2
----
-134
-51
-152
-77
-163
-67

query I rowsort
SELECT DISTINCT ( - - col1 ) * ( + col0 ) - 85 / col2 FROM tab0 WHERE NOT NULL < ( col1 + - + col1 * + col2 )
----

query I rowsort
SELECT - col1 + + - col1 + + 36 * + col0 AS col1 FROM tab2 AS cor0
----
1554
2150
2566

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-297
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <= - CAST( + col2 AS SIGNED ) / 0
----

skipif mysql # not compatible
query III rowsort label-297
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <= - CAST ( + col2 AS INTEGER ) / 0
----

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

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

query I rowsort
SELECT DISTINCT + 66 * + + col0 + - col0 FROM tab1 AS cor0
----
3315
5525
5915

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-304
SELECT MAX( 55 ) * 70 AS col2 FROM tab2 AS cor0
----
3850

skipif mysql # not compatible
query I rowsort label-304
SELECT MAX ( 55 ) * 70 AS col2 FROM tab2 AS cor0
----
3850

query I rowsort
SELECT DISTINCT - 42 * - 27 AS col1 FROM tab2 AS cor0
----
1134

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

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

query I rowsort
SELECT + ( 57 ) * col0 * col2 AS col2 FROM tab1 cor0
----
279072
285855
352716

onlyif mysql # aggregate syntax: 
query I rowsort label-308
SELECT COUNT( * ) AS col0 FROM tab1 WHERE NOT + col0 * + 52 * col1 * col0 / - 17 BETWEEN col0 AND NULL
----
3

skipif mysql # not compatible
query I rowsort label-308
SELECT COUNT ( * ) AS col0 FROM tab1 WHERE NOT + col0 * + 52 * col1 * col0 / - 17 BETWEEN col0 AND NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-309
SELECT DISTINCT col0 * + - 69 FROM tab2 WHERE NOT NULL NOT IN ( - ( + + col2 ) * 88 - - col1 + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-309
SELECT DISTINCT col0 * + - 69 FROM tab2 WHERE NOT NULL NOT IN ( - ( + + col2 ) * 88 - - col1 + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-310
SELECT ALL col0 DIV ( - col0 ) FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-310
SELECT ALL col0 / ( - col0 ) FROM tab2
----
-1
-1
-1

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - col0 * - 73 AS col1 FROM tab0
----
1095
6351
7081

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

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

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

query I rowsort
SELECT ALL - col0 AS col2 FROM tab0 AS cor0 WHERE NULL <> - col2 * + - col2
----

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-320
SELECT DISTINCT - col0 + + 32 DIV col2 - CAST( - - col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-144
-147
-159

skipif mysql # not compatible
query I rowsort label-320
SELECT DISTINCT - col0 + + 32 / col2 - CAST ( - - col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-144
-147
-159

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

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

query I rowsort
SELECT col2 * + col2 + - + 23 * - - ( - col0 ) AS col1 FROM tab0 cor0
----
12032
2101
2554

onlyif mysql # DIV for integer division: 
query II rowsort label-323
SELECT ALL + + 52, - col2 DIV - col2 AS col1 FROM tab2 AS cor0
----
52
1
52
1
52
1

skipif mysql # not compatible
query II rowsort label-323
SELECT ALL + + 52, - col2 / - col2 AS col1 FROM tab2 AS cor0
----
52
1
52
1
52
1

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

skipif mysql # not compatible
query II rowsort label-324
SELECT DISTINCT - 98 AS col1, + COUNT ( * ) FROM tab2 AS cor0
----
-98
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col0 FROM tab2 AS cor0 WHERE NULL < col1
----

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

query I rowsort
SELECT col2 + - ( col0 ) FROM tab1 cor0 WHERE col2 * + col0 NOT BETWEEN - 22 AND col1
----
-23
-26
45

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-329
SELECT DISTINCT 88 + + 80, + COUNT( * ) * - 61 AS col2 FROM tab2
----
168
-183

skipif mysql # not compatible
query II rowsort label-329
SELECT DISTINCT 88 + + 80, + COUNT ( * ) * - 61 AS col2 FROM tab2
----
168
-183

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-330
SELECT ALL + CAST( NULL AS SIGNED ) + - + CAST( NULL AS SIGNED ) * MAX( 27 ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-330
SELECT ALL + CAST ( NULL AS INTEGER ) + - + CAST ( NULL AS INTEGER ) * MAX ( 27 ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT ALL col2 * col1 - + + col0 - 22 AS col1 FROM tab0
----
-20
101
3770

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-333
SELECT ALL - col2 * + 74 * - 65 + + + 86 + col1 + col1 + - col1 + + + 93 DIV + col0 + - col0 col1 FROM tab0
----
226228
476180
48121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-333
SELECT ALL - col2 * + 74 * - 65 + + + 86 + col1 + col1 + - col1 + + + 93 / + col0 + - col0 col1 FROM tab0
----
226228
476180
48121

query I rowsort
SELECT + 66 - col1 + col0 AS col2 FROM tab2
----
53
61
74

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

onlyif mysql # DIV for integer division: 
query II rowsort label-336
SELECT - 94 - - 81 AS col2, 36 DIV - col2 AS col0 FROM tab0 AS cor0
----
-13
-3
-13
0
-13
0

skipif mysql # not compatible
query II rowsort label-336
SELECT - 94 - - 81 AS col2, 36 / - col2 AS col0 FROM tab0 AS cor0
----
-13
-3
-13
0
-13
0

onlyif mysql # aggregate syntax: 
query I rowsort label-337
SELECT ALL + + SUM( ALL + 58 ) * 54 AS col1 FROM tab2 AS cor0
----
9396

skipif mysql # not compatible
query I rowsort label-337
SELECT ALL + + SUM ( ALL + 58 ) * 54 AS col1 FROM tab2 AS cor0
----
9396

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

query I rowsort
SELECT DISTINCT + 69 * - col0 FROM tab0
----
-1035
-6003
-6693

query I rowsort
SELECT col1 * + 26 AS col2 FROM tab1
----
1222
130
364

onlyif mysql # aggregate syntax: 
query I rowsort label-341
SELECT COUNT( * ) * + + 69 col2 FROM tab2
----
207

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-341
SELECT COUNT ( * ) * + + 69 col2 FROM tab2
----
207

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

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

query II rowsort
SELECT DISTINCT col0 AS col0, ( + 17 ) FROM tab0
----
15
17
87
17
97
17

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col1 * - - col0 col0 FROM tab1 AS cor0 WHERE ( - col1 IS NOT NULL )
----
36125
36414
389207

onlyif mysql # aggregate syntax: 
query I rowsort label-349
SELECT - ( COUNT( * ) ) col2 FROM tab1 cor0
----
-3

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-355
SELECT ALL COUNT( DISTINCT 72 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-355
SELECT ALL COUNT ( DISTINCT 72 ) FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-356
SELECT - MIN( DISTINCT col1 ) col2 FROM tab2
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-356
SELECT - MIN ( DISTINCT col1 ) col2 FROM tab2
----
-51

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

onlyif mysql # aggregate syntax: 
query I rowsort label-358
SELECT COUNT( * ) AS col0 FROM tab0 WHERE NOT - + 92 + - 87 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-358
SELECT COUNT ( * ) AS col0 FROM tab0 WHERE NOT - + 92 + - 87 IS NULL
----
3

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-360
SELECT DISTINCT + MIN( DISTINCT col0 ) * - 65 * - 4 + COUNT( * ) DIV 86 AS col2 FROM tab2
----
11960

skipif mysql # not compatible
query I rowsort label-360
SELECT DISTINCT + MIN ( DISTINCT col0 ) * - 65 * - 4 + COUNT ( * ) / 86 AS col2 FROM tab2
----
11960

query I rowsort
SELECT ( col2 ) AS col1 FROM tab2 WHERE NOT - col1 > NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-363
SELECT DISTINCT COUNT( * ) * 18 * 3 FROM tab1
----
162

skipif mysql # not compatible
query I rowsort label-363
SELECT DISTINCT COUNT ( * ) * 18 * 3 FROM tab1
----
162

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - ( + col0 ) NOT BETWEEN 70 * - - 65 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 95 col1 FROM tab2 AS cor0 WHERE ( NULL ) < NULL
----

query I rowsort
SELECT + + col2 + + 76 * + col0 FROM tab0 cor0
----
1187
6622
7471

onlyif mysql # DIV for integer division: 
query I rowsort label-367
SELECT ALL - ( 21 ) DIV - col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-367
SELECT ALL - ( 21 ) / - col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-368
SELECT ALL - MAX( + 28 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-28

skipif mysql # not compatible
query I rowsort label-368
SELECT ALL - MAX ( + 28 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-369
SELECT ALL 25 * + COUNT( * ) * - COUNT( * ) FROM tab2
----
-225

skipif mysql # not compatible
query I rowsort label-369
SELECT ALL 25 * + COUNT ( * ) * - COUNT ( * ) FROM tab2
----
-225

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + + 72 ) col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

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

query I rowsort
SELECT DISTINCT 24 AS col0 FROM tab0 cor0
----
24

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-373
SELECT DISTINCT COUNT( * ) - COUNT( DISTINCT CAST( NULL AS DECIMAL ) ) + + COUNT( * ) * + 83 AS col1 FROM tab1
----
252

skipif mysql # not compatible
query I rowsort label-373
SELECT DISTINCT COUNT ( * ) - COUNT ( DISTINCT CAST ( NULL AS REAL ) ) + + COUNT ( * ) * + 83 AS col1 FROM tab1
----
252

query I rowsort
SELECT DISTINCT 18 - + 27 FROM tab0
----
-9

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-377
SELECT 90 DIV - col2 FROM tab2 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-377
SELECT 90 / - col2 FROM tab2 AS cor0
----
-1
-2
-3

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

query I rowsort
SELECT ALL col0 * - 16 * + + 7 FROM tab2
----
-5152
-7168
-8400

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

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

query I rowsort
SELECT DISTINCT + 58 * + 74 * - ( - 36 ) * + 58 AS col2 FROM tab1
----
8961696

query I rowsort
SELECT + col1 * col1 * + 52 AS col2 FROM tab1 AS cor0
----
10192
114868
1300

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

query I rowsort
SELECT col1 * + 14 + - col1 AS col2 FROM tab0 cor0
----
1053
13
273

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

query I rowsort
SELECT ALL + - 63 * - 93 + + col1 FROM tab0 AS cor0
----
5860
5880
5940

query I rowsort
SELECT DISTINCT - 67 * + + col1 FROM tab2 AS cor0
----
-3417
-4489
-5159

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

query I rowsort
SELECT ALL - + 50 FROM tab0 cor0 WHERE NOT 98 <= + + col1
----
-50
-50
-50

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-393
SELECT ALL ( + 62 ) DIV - + col1 - + col0 + - 12 - + ( + col2 ) * - col0, col0 FROM tab2
----
2484
64
4263
75
999
46

skipif mysql # not compatible
query II rowsort label-393
SELECT ALL ( + 62 ) / - + col1 - + col0 + - 12 - + ( + col2 ) * - col0, col0 FROM tab2
----
2484
64
4263
75
999
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-394
SELECT DISTINCT COUNT( * ) DIV + 20 AS col2, - 67 FROM tab1 cor0 WHERE NOT + 86 + + - col2 NOT BETWEEN - + col2 AND - col0 DIV col1
----
0
-67

skipif mysql # not compatible
query II rowsort label-394
SELECT DISTINCT COUNT ( * ) / + 20 AS col2, - 67 FROM tab1 cor0 WHERE NOT + 86 + + - col2 NOT BETWEEN - + col2 AND - col0 / col1
----
0
-67

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-396
SELECT - ( + 20 ) AS col1, COUNT( * ) * + 24 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-20
216

skipif mysql # not compatible
query II rowsort label-396
SELECT - ( + 20 ) AS col1, COUNT ( * ) * + 24 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-20
216

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-397
SELECT CAST( NULL AS DECIMAL ) + 93, - col2 + 25 + col0 col0 FROM tab0
----
NULL
-7
NULL
102
NULL
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-397
SELECT CAST ( NULL AS REAL ) + 93, - col2 + 25 + col0 col0 FROM tab0
----
NULL
-7
NULL
102
NULL
23

query I rowsort
SELECT ALL + ( + + col0 ) AS col1 FROM tab2 AS cor0
----
46
64
75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 84 - + - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-400
SELECT ALL CAST( + - col0 AS SIGNED ) AS col2, col1 FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

skipif mysql # not compatible
query II rowsort label-400
SELECT ALL CAST ( + - col0 AS INTEGER ) AS col2, col1 FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab0 AS cor0 WHERE col2 + + col2 >= col0
----
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-402
SELECT - 71 DIV + 95 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-402
SELECT - 71 / + 95 FROM tab0 cor0
----
0
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-404
SELECT DISTINCT + COUNT( * ) FROM tab1 WHERE + + col2 + col1 NOT IN ( - 95, col2 - - + 61, + col1 )
----
3

skipif mysql # not compatible
query I rowsort label-404
SELECT DISTINCT + COUNT ( * ) FROM tab1 WHERE + + col2 + col1 NOT IN ( - 95, col2 - - + 61, + col1 )
----
3

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( + + 34 + + + 56 * + 62, col2 )
----

query I rowsort
SELECT + col1 - - + col1 FROM tab2
----
102
134
154

onlyif mysql # aggregate syntax: 
query I rowsort label-407
SELECT DISTINCT - COUNT( * ) - + + 78 FROM tab1
----
-81

skipif mysql # not compatible
query I rowsort label-407
SELECT DISTINCT - COUNT ( * ) - + + 78 FROM tab1
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-408
SELECT DISTINCT - 96 DIV - col2 AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-408
SELECT DISTINCT - 96 / - col2 AS col1 FROM tab1
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 70 + 54 col0 FROM tab0 WHERE NOT NULL NOT BETWEEN - 36 + - ( + 23 ) AND NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-411
SELECT 33 DIV - col1 col2 FROM tab0 AS cor0
----
-1
-33
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-411
SELECT 33 / - col1 col2 FROM tab0 AS cor0
----
-1
-33
0

query I rowsort
SELECT + 33 AS col2 FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----

query II rowsort
SELECT + 54, col0 * - col1 AS col1 FROM tab2
----
54
-2346
54
-4928
54
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-414
SELECT ALL - SUM( ALL - 40 ) AS col0 FROM tab2
----
120

skipif mysql # not compatible
query I rowsort label-414
SELECT ALL - SUM ( ALL - 40 ) AS col0 FROM tab2
----
120

onlyif mysql # DIV for integer division: 
query I rowsort label-415
SELECT ( + + col2 ) DIV - 21 AS col2 FROM tab0 WHERE NOT 64 IS NULL
----
-2
-4
0

skipif mysql # not compatible
query I rowsort label-415
SELECT ( + + col2 ) / - 21 AS col2 FROM tab0 WHERE NOT 64 IS NULL
----
-2
-4
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-417
SELECT ALL + - SUM( ALL - 80 ) FROM tab0 AS cor0
----
240

skipif mysql # not compatible
query I rowsort label-417
SELECT ALL + - SUM ( ALL - 80 ) FROM tab0 AS cor0
----
240

query II rowsort
SELECT ALL - - 56 AS col2, 64 FROM tab0 cor0
----
56
64
56
64
56
64

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 98 col1, 30 FROM tab0 AS cor0
----
98
30
98
30
98
30

query I rowsort
SELECT ALL 66 + + - 59 AS col0 FROM tab2 AS cor0
----
7
7
7

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

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

skipif mysql # not compatible
query I rowsort label-423
SELECT - MIN ( + 82 ) FROM tab2 AS cor0
----
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + 57 col1 FROM tab1 AS cor0
----
108
142
148

query I rowsort
SELECT DISTINCT + col1 + + col1 * + 25 FROM tab1 AS cor0
----
1222
130
364

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 46 * + col1 col1, - ( col0 ) + 14 col1 FROM tab2
----
2346
-32
3082
-61
3542
-50

query I rowsort
SELECT ALL col2 + + 46 FROM tab0
----
145
56
93

query I rowsort
SELECT + - 11 AS col0 FROM tab0 WHERE + - 18 + - 87 + + - col0 IS NULL
----

query I rowsort
SELECT DISTINCT - col2 + + ( col1 ) FROM tab1
----
-21
-54
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 41 col2 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
-41
-41
-41

query I rowsort
SELECT DISTINCT + 35 + + 84 + - - col1 + col0 + - - col2 * 54 AS col1 FROM tab1 cor0
----
3395
3929
5368

query I rowsort
SELECT - 16 + - col2 AS col1 FROM tab0 AS cor0
----
-115
-26
-63

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

onlyif mysql # aggregate syntax: 
query I rowsort label-434
SELECT + MIN( - 76 ) * COUNT( * ) - - 45 FROM tab0 AS cor0
----
-183

skipif mysql # not compatible
query I rowsort label-434
SELECT + MIN ( - 76 ) * COUNT ( * ) - - 45 FROM tab0 AS cor0
----
-183

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 8 * + col2 + 25 col1, col0 FROM tab0 AS cor0
----
-351
15
-55
87
-767
97

query II rowsort
SELECT DISTINCT + - 9 * + ( + col1 ) AS col2, 74 FROM tab1 AS cor0
----
-126
74
-423
74
-45
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-437
SELECT - + 79 * - col2 + + - col0 + + col1 * col2 FROM tab1 AS cor0 WHERE ( - + CAST( - col0 AS SIGNED ) ) BETWEEN ( + col0 ) AND + col0 AND NOT - 2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-437
SELECT - + 79 * - col2 + + - col0 + + col1 * col2 FROM tab1 AS cor0 WHERE ( - + CAST ( - col0 AS INTEGER ) ) BETWEEN ( + col0 ) AND + col0 AND NOT - 2 IS NOT NULL
----

query I rowsort
SELECT + 42 + + - col2 FROM tab2 AS cor0
----
-16
19
2

query I rowsort
SELECT DISTINCT col0 * - 97 FROM tab1 AS cor0
----
-4947
-8245
-8827

query I rowsort
SELECT 43 * - - 18 + col2 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + ( - + col0 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-51
-85
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-442
SELECT ALL - col1 DIV - 40 AS col2 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-442
SELECT ALL - col1 / - 40 AS col2 FROM tab0
----
0
0
2

query I rowsort
SELECT col1 * - ( - - col1 ) AS col2 FROM tab0
----
-1
-441
-6561

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col2 * - 68 - 72 ) IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-446
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-446
SELECT ALL COUNT ( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT - + 32 * - col1 * + col0 + + 11 FROM tab0 AS cor0
----
3115
38891
58475

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 * 5 = - + col0 + + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 + 63 * - col1 * - col2 FROM tab0 AS cor0
----
13240
239888
6336

query I rowsort
SELECT ALL - col2 + - + 79 FROM tab0 AS cor0
----
-126
-178
-89

query I rowsort
SELECT ALL + + col2 / col0 AS col2 FROM tab2 AS cor0 WHERE ( 80 = NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-452
SELECT DISTINCT col0 DIV - + col1 - 33 FROM tab2 AS cor0 WHERE ( NOT - col2 + - 48 + - col0 IS NULL )
----
-33
-34

skipif mysql # not compatible
query I rowsort label-452
SELECT DISTINCT col0 / - + col1 - 33 FROM tab2 AS cor0 WHERE ( NOT - col2 + - 48 + - col0 IS NULL )
----
-33
-34

query I rowsort
SELECT - col1 + 91 FROM tab1 AS cor0
----
44
77
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 col0 FROM tab1 WHERE 56 - + - col1 * 37 IS NULL
----

query I rowsort
SELECT 16 + + col0 - - + 74 AS col0 FROM tab0
----
105
177
187

onlyif mysql # aggregate syntax: 
query II rowsort label-456
SELECT + 40, - SUM( ALL + col1 ) AS col1 FROM tab1
----
40
-66

skipif mysql # not compatible
query II rowsort label-456
SELECT + 40, - SUM ( ALL + col1 ) AS col1 FROM tab1
----
40
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-457
SELECT DISTINCT + COUNT( * ) + - - 5 DIV - MIN( ALL col2 ) + 6 AS col1 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-457
SELECT DISTINCT + COUNT ( * ) + - - 5 / - MIN ( ALL col2 ) + 6 AS col1 FROM tab0
----
9

query I rowsort
SELECT - 9 * col1 * - + col2 AS col1 FROM tab0
----
1890
34263
891

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-460
SELECT + col2 * + CAST( - - col1 AS SIGNED ) AS col0 FROM tab0
----
210
3807
99

skipif mysql # not compatible
query I rowsort label-460
SELECT + col2 * + CAST ( - - col1 AS INTEGER ) AS col0 FROM tab0
----
210
3807
99

query I rowsort
SELECT ALL + 61 FROM tab1 WHERE NOT + col2 + - col0 * + ( - - 33 ) NOT IN ( - col0, + ( - ( + 89 ) ), - - col0 )
----

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

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

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

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

query I rowsort
SELECT - + col2 * - 69 AS col0 FROM tab1 AS cor0
----
4071
4692
6624

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

query I rowsort
SELECT - 88 - + col2 FROM tab2 AS cor0
----
-111
-128
-146

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 74 col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-74

query I rowsort
SELECT - col2 + 19 AS col1 FROM tab0
----
-28
-80
9

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

onlyif mysql # aggregate syntax: 
query I rowsort label-471
SELECT ALL + COUNT( * ) - - 21 FROM tab2
----
24

skipif mysql # not compatible
query I rowsort label-471
SELECT ALL + COUNT ( * ) - - 21 FROM tab2
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-472
SELECT - col2 * - + 77 + + col0 * - CAST( NULL AS SIGNED ) * - col0 AS col0, col1 FROM tab1 AS cor0 WHERE + 94 >= - 16
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-472
SELECT - col2 * - + 77 + + col0 * - CAST ( NULL AS INTEGER ) * - col0 AS col0, col1 FROM tab1 AS cor0 WHERE + 94 >= - 16
----
NULL
14
NULL
47
NULL
5

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

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

skipif mysql # not compatible
query I rowsort label-474
SELECT ALL + 45 / 48 AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-475
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * 73, col1 AS col2 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-475
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * 73, col1 AS col2 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

onlyif mysql # DIV for integer division: 
query I rowsort label-476
SELECT col2 DIV 62 AS col0 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-476
SELECT col2 / 62 AS col0 FROM tab0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-477
SELECT ALL MAX( ALL - col2 ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-477
SELECT ALL MAX ( ALL - col2 ) FROM tab2
----
-23

query III rowsort
SELECT * FROM tab2 WHERE col2 = NULL AND NULL NOT BETWEEN NULL AND - 76
----

query II rowsort
SELECT DISTINCT 13 AS col0, - col2 FROM tab0
----
13
-10
13
-47
13
-99

query II rowsort
SELECT ALL + col0, 43 FROM tab2
----
46
43
64
43
75
43

onlyif mysql # aggregate syntax: 
query II rowsort label-481
SELECT - COUNT( * ), 98 AS col2 FROM tab1
----
-3
98

skipif mysql # not compatible
query II rowsort label-481
SELECT - COUNT ( * ), 98 AS col2 FROM tab1
----
-3
98

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

skipif mysql # not compatible
query II rowsort label-482
SELECT ALL 3 AS col2, + COUNT ( * ) FROM tab2
----
3
3

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 AS col0, ( 92 ) col0 FROM tab2 AS cor0
----
46
92
64
92
75
92

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 12 * - - col1 + col1 col2 FROM tab1
----
182
611
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-487
SELECT DISTINCT + + col2 FROM tab0 AS cor0 WHERE NOT 94 < 79 + CAST( NULL AS SIGNED ) * - - col0
----

skipif mysql # not compatible
query I rowsort label-487
SELECT DISTINCT + + col2 FROM tab0 AS cor0 WHERE NOT 94 < 79 + CAST ( NULL AS INTEGER ) * - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-488
SELECT ALL + - 80 * - - 4 + + + COUNT( * ) + 94 AS col1 FROM tab0 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-488
SELECT ALL + - 80 * - - 4 + + + COUNT ( * ) + 94 AS col1 FROM tab0 AS cor0
----
-223

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-490
SELECT ALL + COUNT( + - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-490
SELECT ALL + COUNT ( + - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col0 + - - 69 FROM tab0 AS cor0
----
156
166
84

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

query II rowsort
SELECT col0 * - col1 * + col0 AS col2, col2 AS col0 FROM tab0
----
-158949
10
-18225
47
-9409
99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-494
SELECT CAST( NULL AS DECIMAL ) * - ( col1 ) + - 58 + + - col0 / + 64 * col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-494
SELECT CAST ( NULL AS REAL ) * - ( col1 ) + - 58 + + - col0 / + 64 * col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-495
SELECT ALL col0 + 18 DIV - col2 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-495
SELECT ALL col0 + 18 / - col2 FROM tab1
----
51
85
91

onlyif mysql # aggregate syntax: 
query II rowsort label-496
SELECT DISTINCT COUNT( * ), + COUNT( * ) + - 75 AS col2 FROM tab0
----
3
-72

skipif mysql # not compatible
query II rowsort label-496
SELECT DISTINCT COUNT ( * ), + COUNT ( * ) + - 75 AS col2 FROM tab0
----
3
-72

query I rowsort
SELECT DISTINCT + ( + 55 ) * - 99 FROM tab1 AS cor0
----
-5445

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col0 + col2 + - - 82, col1 + - - ( col1 ) col1 FROM tab1 cor0
----
226
10
229
28
241
94

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

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

query I rowsort
SELECT + ( - 5 ) * col1 AS col0 FROM tab0
----
-105
-405
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT col0 col0, - col0 AS col2, col2 AS col0 FROM tab1 AS cor0
----
9 values hashing to 265748ae01d2cf906c1c502014f80e5f

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-503
SELECT ALL + COUNT( * ) * - COUNT( * ) DIV COUNT( * ) FROM tab1 AS cor0
----
-3

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - - 83 col2 FROM tab2 AS cor0
----
-1909
-3320
-4814

query I rowsort
SELECT - 30 * - 36 AS col1 FROM tab0 AS cor0
----
1080
1080
1080

query I rowsort
SELECT - col1 * + - 45 FROM tab2 AS cor0
----
2295
3015
3465

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-510
SELECT ALL SUM( DISTINCT col0 ) AS col1, - 67 FROM tab2
----
185
-67

skipif mysql # not compatible
query II rowsort label-510
SELECT ALL SUM ( DISTINCT col0 ) AS col1, - 67 FROM tab2
----
185
-67

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

onlyif mysql # DIV for integer division: 
query I rowsort label-512
SELECT ( - col1 ) DIV 1 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-512
SELECT ( - col1 ) / 1 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-513
SELECT DISTINCT - - SUM( ALL + - 73 ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-219

skipif mysql # not compatible
query I rowsort label-513
SELECT DISTINCT - - SUM ( ALL + - 73 ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-219

query I rowsort
SELECT col2 * + 8 AS col1 FROM tab0 cor0
----
376
792
80

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( - col0 ) IS NULL
----

query I rowsort
SELECT + 47 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

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

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

query II rowsort
SELECT + ( 81 ), ( + 52 ) + + - ( col0 ) FROM tab0 WHERE ( NOT + col1 IS NOT NULL )
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-520
SELECT ALL col0 / + 25 col2 FROM tab2 AS cor0
----
1
2
3

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

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

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

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

query I rowsort
SELECT ALL col0 + 41 - - 17 AS col0 FROM tab0
----
145
155
73

query I rowsort
SELECT + 87 FROM tab1 WHERE NULL <= col1 * - col2 + 82
----

onlyif mysql # aggregate syntax: 
query I rowsort label-526
SELECT DISTINCT + COUNT( * ) - MAX( ALL + col0 ) * - 18 AS col1 FROM tab1
----
1641

skipif mysql # not compatible
query I rowsort label-526
SELECT DISTINCT + COUNT ( * ) - MAX ( ALL + col0 ) * - 18 AS col1 FROM tab1
----
1641

query I rowsort
SELECT ALL 28 FROM tab2 cor0
----
28
28
28

query I rowsort
SELECT DISTINCT + 97 * - + 15 + - - 32 AS col2 FROM tab1 AS cor0
----
-1423

onlyif mysql # aggregate syntax: 
query I rowsort label-529
SELECT ALL 78 * COUNT( * ) * - 3 + - - COUNT( * ) FROM tab0 AS cor0
----
-699

skipif mysql # not compatible
query I rowsort label-529
SELECT ALL 78 * COUNT ( * ) * - 3 + - - COUNT ( * ) FROM tab0 AS cor0
----
-699

query I rowsort
SELECT ALL + col2 * - + col2 + + 59 FROM tab0 AS cor0 WHERE NOT - col0 * - ( + col0 ) < + + 25 + + + 3 * + col1
----
-41
-9742

onlyif mysql # aggregate syntax: 
query I rowsort label-531
SELECT + 41 + - COUNT( * ) FROM tab1
----
38

skipif mysql # not compatible
query I rowsort label-531
SELECT + 41 + - COUNT ( * ) FROM tab1
----
38

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

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

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

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

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

query I rowsort
SELECT DISTINCT + + 59 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> - col2
----

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

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

query I rowsort
SELECT + - col0 * + + col1 FROM tab0 cor0
----
-1215
-1827
-97

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

onlyif mysql # DIV for integer division: 
query I rowsort label-540
SELECT 96 DIV - + 22 AS col1 FROM tab2
----
-4
-4
-4

skipif mysql # not compatible
query I rowsort label-540
SELECT 96 / - + 22 AS col1 FROM tab2
----
-4
-4
-4

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

onlyif mysql # DIV for integer division: 
query II rowsort label-542
SELECT ALL - col0 * + 92, + col1 DIV + col0 AS col0 FROM tab1
----
-4692
0
-7820
0
-8372
0

skipif mysql # not compatible
query II rowsort label-542
SELECT ALL - col0 * + 92, + col1 / + col0 AS col0 FROM tab1
----
-4692
0
-7820
0
-8372
0

onlyif mysql # aggregate syntax: 
query I rowsort label-543
SELECT DISTINCT 54 * + SUM( - col0 ) FROM tab1
----
-12258

skipif mysql # not compatible
query I rowsort label-543
SELECT DISTINCT 54 * + SUM ( - col0 ) FROM tab1
----
-12258

query I rowsort
SELECT - col0 * 77 FROM tab2
----
-3542
-4928
-5775

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

skipif mysql # not compatible
query I rowsort label-545
SELECT + + col1 / 54 + - + col2 AS col0 FROM tab0 AS cor0
----
-10
-46
-99

query I rowsort
SELECT DISTINCT col1 + - + ( - - 77 ) FROM tab2 AS cor0
----
-10
-26
0

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL > 10
----

onlyif mysql # aggregate syntax: 
query I rowsort label-548
SELECT MIN( 34 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
34

skipif mysql # not compatible
query I rowsort label-548
SELECT MIN ( 34 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-549
SELECT ALL - - COUNT( 88 ) DIV - 10 col1 FROM tab1 WHERE NULL <> + ( + + 21 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-549
SELECT ALL - - COUNT ( 88 ) / - 10 col1 FROM tab1 WHERE NULL <> + ( + + 21 )
----
0

query I rowsort
SELECT col2 + - - 47 AS col0 FROM tab1 WHERE NULL IN ( 88, 75 * - col2 * - col1 * - + 28, col2, col2, - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 >= + col0 / col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-552
SELECT DISTINCT - - col1 * - + col1 + + + 80 DIV col0 AS col0 FROM tab1 AS cor0
----
-195
-2209
-25

skipif mysql # not compatible
query I rowsort label-552
SELECT DISTINCT - - col1 * - + col1 + + + 80 / col0 AS col0 FROM tab1 AS cor0
----
-195
-2209
-25

query I rowsort
SELECT DISTINCT + col2 + 6 AS col2 FROM tab2 AS cor0
----
29
46
64

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-555
SELECT DISTINCT col2 + - col0 DIV + 28 col1 FROM tab2
----
22
38
56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-555
SELECT DISTINCT col2 + - col0 / + 28 col1 FROM tab2
----
22
38
56

query I rowsort
SELECT 59 + + 71 FROM tab0
----
130
130
130

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

onlyif mysql # aggregate syntax: 
query I rowsort label-558
SELECT + 79 + - SUM( col1 ) * MAX( + col2 ) AS col0 FROM tab2
----
-11231

skipif mysql # not compatible
query I rowsort label-558
SELECT + 79 + - SUM ( col1 ) * MAX ( + col2 ) AS col0 FROM tab2
----
-11231

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE + col1 <> - - 34
----
46
64
75

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

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

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE ( col2 / + 70 ) IS NOT NULL
----
23
40
58

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

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

query I rowsort
SELECT ALL + 49 * - + ( col1 ) AS col0 FROM tab0 AS cor0
----
-1029
-3969
-49

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NOT NULL IS NOT NULL )
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query I rowsort
SELECT + 20 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

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

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

query I rowsort
SELECT DISTINCT 78 * + - 93 - + 80 AS col0 FROM tab2 AS cor0
----
-7334

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-570
SELECT ALL + CAST( - - 11 AS SIGNED ), col0 AS col0 FROM tab0 AS cor0
----
11
15
11
87
11
97

skipif mysql # not compatible
query II rowsort label-570
SELECT ALL + CAST ( - - 11 AS INTEGER ), col0 AS col0 FROM tab0 AS cor0
----
11
15
11
87
11
97

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-573
SELECT DISTINCT 37 DIV + 9 FROM tab2 AS cor0 WHERE ( + - col1 ) IS NOT NULL
----
4

skipif mysql # not compatible
query I rowsort label-573
SELECT DISTINCT 37 / + 9 FROM tab2 AS cor0 WHERE ( + - col1 ) IS NOT NULL
----
4

query I rowsort
SELECT ALL + 1 AS col0 FROM tab1
----
1
1
1

query I rowsort
SELECT ALL + - 71 / - + col2 FROM tab2 WHERE NOT - + col2 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 90 * + - col2 * - - col2 * 70 col0 FROM tab2
----
10080000
21193200
3332700

query I rowsort
SELECT ALL - 55 + - + col2 AS col2 FROM tab2 cor0
----
-113
-78
-95

query I rowsort
SELECT + 99 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

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

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

query II rowsort
SELECT DISTINCT 33 AS col0, col0 FROM tab1 AS cor0
----
33
51
33
85
33
91

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

onlyif mysql # aggregate syntax: 
query I rowsort label-582
SELECT DISTINCT + ( - MIN( DISTINCT - col2 ) ) AS col0 FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
96

skipif mysql # not compatible
query I rowsort label-582
SELECT DISTINCT + ( - MIN ( DISTINCT - col2 ) ) AS col0 FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-583
SELECT SUM( - 64 ) AS col0 FROM tab2 AS cor0
----
-192

skipif mysql # not compatible
query I rowsort label-583
SELECT SUM ( - 64 ) AS col0 FROM tab2 AS cor0
----
-192

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <> + 54
----

onlyif mysql # aggregate syntax: 
query I rowsort label-585
SELECT DISTINCT COUNT( * ) + + 54 * + - 10 AS col2 FROM tab0
----
-537

skipif mysql # not compatible
query I rowsort label-585
SELECT DISTINCT COUNT ( * ) + + 54 * + - 10 AS col2 FROM tab0
----
-537

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

query I rowsort
SELECT 16 FROM tab2, tab1 AS cor0
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-588
SELECT * FROM tab2 WHERE + col2 + 30 IN ( + + CAST( NULL AS SIGNED ), col1 / + 70 * + 79, + + col1 - - - col0 )
----

skipif mysql # not compatible
query III rowsort label-588
SELECT * FROM tab2 WHERE + col2 + 30 IN ( + + CAST ( NULL AS INTEGER ), col1 / + 70 * + 79, + + col1 - - - col0 )
----

query II rowsort
SELECT ALL - col2 + - col1 + 1, + col0 AS col0 FROM tab1
----
-109
51
-114
91
-63
85

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

query I rowsort
SELECT DISTINCT + ( - + col2 ) - + ( col1 ) FROM tab2
----
-117
-125
-74

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-592
SELECT ALL + COUNT ( * ) col1 FROM tab1 AS cor0 WHERE + 18 <= NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-593
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT CAST( + col0 AS SIGNED ) * + col0 BETWEEN NULL AND + 4 * - col1 + 31
----
3

skipif mysql # not compatible
query I rowsort label-593
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT CAST ( + col0 AS INTEGER ) * + col0 BETWEEN NULL AND + 4 * - col1 + 31
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-594
SELECT + MIN( DISTINCT + + col0 ) * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-594
SELECT + MIN ( DISTINCT + + col0 ) * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-45

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

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE NOT + 67 NOT BETWEEN - + col2 AND NULL
----

query I rowsort
SELECT ALL - col1 * - - 61 + - col1 FROM tab2 cor0
----
-3162
-4154
-4774

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

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

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

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

query I rowsort
SELECT ALL 44 AS col2 FROM tab0 AS cor0
----
44
44
44

query I rowsort
SELECT col2 * 58 * - + col1 AS col2 FROM tab1
----
-17110
-185368
-77952

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col2 ) col2 FROM tab1
----
-59
-68
-96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-605
SELECT COUNT( * ) * + - ( + 61 ) col0 FROM tab1
----
-183

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-605
SELECT COUNT ( * ) * + - ( + 61 ) col0 FROM tab1
----
-183

query I rowsort
SELECT + col0 * - 87 + + + col1 AS col2 FROM tab1 WHERE - + 48 * - - 0 IS NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-608
SELECT * FROM tab0 AS cor0 WHERE CAST( - + col2 AS SIGNED ) + col1 <= + - ( 1 ) * + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-608
SELECT * FROM tab0 AS cor0 WHERE CAST ( - + col2 AS INTEGER ) + col1 <= + - ( 1 ) * + - CAST ( NULL AS INTEGER )
----

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

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-612
SELECT DISTINCT CAST( NULL AS DECIMAL ) + + col2 FROM tab2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-613
SELECT COUNT( * ) - - 16 AS col2 FROM tab0, tab2 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-613
SELECT COUNT ( * ) - - 16 AS col2 FROM tab0, tab2 AS cor0
----
25

query I rowsort
SELECT + 56 AS col0 FROM tab2 WHERE - col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-615
SELECT ALL 28, COUNT( * ) AS col0 FROM tab2
----
28
3

skipif mysql # not compatible
query II rowsort label-615
SELECT ALL 28, COUNT ( * ) AS col0 FROM tab2
----
28
3

onlyif mysql # aggregate syntax: 
query I rowsort label-616
SELECT - - MAX( ALL - + col0 ) - + 48 + - + 0 + - + ( - MIN( col0 ) ) AS col1 FROM tab1 cor0
----
-48

skipif mysql # not compatible
query I rowsort label-616
SELECT - - MAX ( ALL - + col0 ) - + 48 + - + 0 + - + ( - MIN ( col0 ) ) AS col1 FROM tab1 cor0
----
-48

query I rowsort
SELECT + col2 - - - ( - + col1 ) FROM tab2 AS cor0
----
117
125
74

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 51 + + col0 * - 88 col2 FROM tab0
----
-1269
-7605
-8485

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-624
SELECT 97 * + COUNT( * ) col1 FROM tab0 AS cor0
----
291

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-624
SELECT 97 * + COUNT ( * ) col1 FROM tab0 AS cor0
----
291

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

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

skipif mysql # not compatible
query I rowsort label-626
SELECT ALL COUNT ( * ) * COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
81

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

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

query II rowsort
SELECT ( + col0 ) AS col1, 43 AS col2 FROM tab0 AS cor0
----
15
43
87
43
97
43

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-630
SELECT SUM( 98 ) AS col1 FROM tab0 cor0
----
294

skipif mysql # not compatible
query I rowsort label-630
SELECT SUM ( 98 ) AS col1 FROM tab0 cor0
----
294

onlyif mysql # DIV for integer division: 
query I rowsort label-631
SELECT ALL + col1 DIV + col2 + - 32 AS col2 FROM tab2 AS cor0
----
-30
-31
-31

skipif mysql # not compatible
query I rowsort label-631
SELECT ALL + col1 / + col2 + - 32 AS col2 FROM tab2 AS cor0
----
-30
-31
-31

query I rowsort
SELECT col2 + col1 + + col1 * - - col0 FROM tab1 AS cor0
----
4392
489
824

query II rowsort
SELECT - 12 + col1 AS col1, col1 FROM tab1 AS cor0
----
-7
5
2
14
35
47

query I rowsort
SELECT DISTINCT ( + - 79 ) AS col0 FROM tab2
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-635
SELECT CAST( - 28 AS SIGNED ) * - ( - + col0 ) AS col2 FROM tab2
----
-1288
-1792
-2100

skipif mysql # not compatible
query I rowsort label-635
SELECT CAST ( - 28 AS INTEGER ) * - ( - + col0 ) AS col2 FROM tab2
----
-1288
-1792
-2100

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-637
SELECT SUM( 69 ) * - COUNT( * ) FROM tab2
----
-621

skipif mysql # not compatible
query I rowsort label-637
SELECT SUM ( 69 ) * - COUNT ( * ) FROM tab2
----
-621

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2, + col0 * + + col2 * - ( - - col2 ) col1 FROM tab0
----
10
-8700
47
-33135
99
-950697

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-641
SELECT + ( COUNT( * ) ) FROM tab2 WHERE NOT NULL NOT BETWEEN ( 22 + 69 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-641
SELECT + ( COUNT ( * ) ) FROM tab2 WHERE NOT NULL NOT BETWEEN ( 22 + 69 ) AND NULL
----
0

query I rowsort
SELECT + col0 * 50 FROM tab0
----
4350
4850
750

query I rowsort
SELECT - AVG ( DISTINCT ( col0 ) ) FROM tab1 WHERE NOT ( - col2 * 30 ) <> + col0
----
NULL

query I rowsort
SELECT + col2 * - 43 AS col0 FROM tab0
----
-2021
-4257
-430

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col0 FROM tab0 WHERE NULL >= - col2 + + 49
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-646
SELECT - 96 AS col1 FROM tab0 WHERE NOT - col2 - col0 / - col1 >= ( col2 ) * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-646
SELECT - 96 AS col1 FROM tab0 WHERE NOT - col2 - col0 / - col1 >= ( col2 ) * CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL + ( + col0 ) FROM tab0 WHERE col1 < NULL
----

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

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

skipif mysql # not compatible
query I rowsort label-649
SELECT ALL - CAST ( NULL AS INTEGER ) + col0 * - 35 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-650
SELECT CAST( NULL AS DECIMAL ) * SUM( DISTINCT col2 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-650
SELECT CAST ( NULL AS REAL ) * SUM ( DISTINCT col2 ) FROM tab1
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-653
SELECT ALL + ( CAST ( NULL AS INTEGER ) ) / + 3 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-654
SELECT ALL SUM( ( - 16 ) ) AS col2 FROM tab2
----
-48

skipif mysql # not compatible
query I rowsort label-654
SELECT ALL SUM ( ( - 16 ) ) AS col2 FROM tab2
----
-48

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

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

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

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

query I rowsort
SELECT DISTINCT - 97 + 14 AS col2 FROM tab2
----
-83

query I rowsort
SELECT ALL - col2 * + col1 - + col0 AS col1 FROM tab2
----
-1219
-3144
-3961

query I rowsort
SELECT + col2 FROM tab1 WHERE ( NULL ) IS NULL
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-661
SELECT COUNT( - ( + CAST( NULL AS SIGNED ) ) ) FROM tab1
----
0

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

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

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

query I rowsort
SELECT ALL AVG ( DISTINCT - col0 ) FROM tab1 WHERE NULL < ( NULL )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + col1 ) > - 37
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL < ( col2 / col1 )
----

query I rowsort
SELECT DISTINCT - col0 * + col0 FROM tab2 WHERE NULL BETWEEN 93 AND NULL
----

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
59
68
96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-669
SELECT DISTINCT MAX( DISTINCT col0 ) FROM tab1 AS cor0 WHERE NOT col0 * col1 NOT IN ( 91 )
----
NULL

skipif mysql # not compatible
query I rowsort label-669
SELECT DISTINCT MAX ( DISTINCT col0 ) FROM tab1 AS cor0 WHERE NOT col0 * col1 NOT IN ( 91 )
----
NULL

query I rowsort
SELECT - col2 * 91 AS col0 FROM tab2 AS cor0
----
-2093
-3640
-5278

onlyif mysql # aggregate syntax: 
query I rowsort label-671
SELECT + 56 * - COUNT( * ) AS col2 FROM tab0
----
-168

skipif mysql # not compatible
query I rowsort label-671
SELECT + 56 * - COUNT ( * ) AS col2 FROM tab0
----
-168

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-673
SELECT 45 + COUNT( - col2 ) * MAX( + ( - ( - col1 ) ) ) FROM tab0 AS cor0 WHERE NOT + col1 IN ( 59 )
----
288

skipif mysql # not compatible
query I rowsort label-673
SELECT 45 + COUNT ( - col2 ) * MAX ( + ( - ( - col1 ) ) ) FROM tab0 AS cor0 WHERE NOT + col1 IN ( 59 )
----
288

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

skipif mysql # not compatible
query I rowsort label-674
SELECT DISTINCT col1 / 85 FROM tab1 AS cor0
----
0

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

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

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

skipif mysql # not compatible
query III rowsort label-676
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST ( NULL AS REAL ) = NULL
----

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

query I rowsort
SELECT col0 AS col0 FROM tab2 WHERE col0 NOT IN ( - col0 * col2 + - col2 )
----
46
64
75

query I rowsort
SELECT 29 AS col0 FROM tab0 WHERE NULL <> ( 94 )
----

query III rowsort
SELECT * FROM tab1 WHERE + col2 * col2 - - 92 / - 24 BETWEEN ( + 16 - col0 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-681
SELECT ALL - ( MAX( DISTINCT - col1 ) ) * - SUM( col0 ) col0 FROM tab1
----
-1135

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-681
SELECT ALL - ( MAX ( DISTINCT - col1 ) ) * - SUM ( col0 ) col0 FROM tab1
----
-1135

query I rowsort
SELECT 38 + + col1 AS col2 FROM tab0 AS cor0 WHERE - 7 * + col2 + - col0 / - 20 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-683
SELECT 12 * COUNT( DISTINCT col1 ) FROM tab0 cor0 WHERE NULL NOT IN ( 40 )
----
0

skipif mysql # not compatible
query I rowsort label-683
SELECT 12 * COUNT ( DISTINCT col1 ) FROM tab0 cor0 WHERE NULL NOT IN ( 40 )
----
0

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

query I rowsort
SELECT 47 * - + col0 FROM tab2 AS cor0
----
-2162
-3008
-3525

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-689
SELECT DISTINCT - - 59 * - CAST( NULL AS SIGNED ) - - 27 AS col0 FROM ( tab0 cor0 CROSS JOIN tab1 cor1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-689
SELECT DISTINCT - - 59 * - CAST ( NULL AS INTEGER ) - - 27 AS col0 FROM ( tab0 cor0 CROSS JOIN tab1 cor1 )
----
NULL

query I rowsort
SELECT ALL + col2 * + + col1 AS col0 FROM tab1 AS cor0
----
1344
295
3196

query I rowsort
SELECT DISTINCT - - 81 - - + col2 FROM tab1 AS cor0
----
140
149
177

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-693
SELECT ALL - + col2 - + 56 + - col1 + col1 DIV col1 AS col2 FROM tab1 AS cor0
----
-119
-165
-170

skipif mysql # not compatible
query I rowsort label-693
SELECT ALL - + col2 - + 56 + - col1 + col1 / col1 AS col2 FROM tab1 AS cor0
----
-119
-165
-170

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-695
SELECT DISTINCT + + SUM( DISTINCT - 25 ) AS col2 FROM tab2 AS cor0 WHERE NOT + 82 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-695
SELECT DISTINCT + + SUM ( DISTINCT - 25 ) AS col2 FROM tab2 AS cor0 WHERE NOT + 82 IS NOT NULL
----
NULL

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

query I rowsort
SELECT + AVG ( - 97 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----
NULL

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-700
SELECT + AVG ( + col2 ) FROM tab0 WHERE NOT col1 + - + 91 + - CAST( NULL AS SIGNED ) < ( - 27 * + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-700
SELECT + AVG ( + col2 ) FROM tab0 WHERE NOT col1 + - + 91 + - CAST ( NULL AS INTEGER ) < ( - 27 * + col0 )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-703
SELECT ALL + 37 * - COUNT( * ) AS col0 FROM tab2 WHERE NOT - col0 > col0
----
-111

skipif mysql # not compatible
query I rowsort label-703
SELECT ALL + 37 * - COUNT ( * ) AS col0 FROM tab2 WHERE NOT - col0 > col0
----
-111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-704
SELECT DISTINCT 63 FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) >= col1
----

skipif mysql # not compatible
query I rowsort label-704
SELECT DISTINCT 63 FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) >= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-705
SELECT + 72 + COUNT( * ) AS col1 FROM tab1 WHERE NOT NULL BETWEEN ( - + col2 ) AND NULL
----
72

skipif mysql # not compatible
query I rowsort label-705
SELECT + 72 + COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL BETWEEN ( - + col2 ) AND NULL
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-706
SELECT SUM( col2 ) AS col0, 86 FROM tab1
----
223
86

skipif mysql # not compatible
query II rowsort label-706
SELECT SUM ( col2 ) AS col0, 86 FROM tab1
----
223
86

query I rowsort
SELECT ALL 22 AS col0 FROM tab0 WHERE - ( - 49 ) IS NOT NULL
----
22
22
22

onlyif mysql # aggregate syntax: 
query I rowsort label-708
SELECT + MIN( ALL - col0 ) AS col1 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-708
SELECT + MIN ( ALL - col0 ) AS col1 FROM tab0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-709
SELECT DISTINCT + SUM( + 39 ) col1 FROM tab0
----
117

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-709
SELECT DISTINCT + SUM ( + 39 ) col1 FROM tab0
----
117

query I rowsort
SELECT ALL + col0 * + col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> ( - - col1 * + 94 )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-712
SELECT ALL - 95 * + ( + col0 * - 44 ) FROM tab1 AS cor0 WHERE CAST( - 57 AS SIGNED ) IS NOT NULL
----
213180
355300
380380

skipif mysql # not compatible
query I rowsort label-712
SELECT ALL - 95 * + ( + col0 * - 44 ) FROM tab1 AS cor0 WHERE CAST ( - 57 AS INTEGER ) IS NOT NULL
----
213180
355300
380380

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * + + col2 col0 FROM tab2 AS cor0
----
1058
2560
4350

query I rowsort
SELECT col1 FROM tab1 WHERE NOT + col2 + + col0 + + col2 BETWEEN + col0 * 65 AND + 86
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 45 * col2 * - 4 col1 FROM tab2
----
-10440
-4140
-7200

query I rowsort
SELECT 7 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

onlyif mysql # aggregate syntax: 
query I rowsort label-721
SELECT - 39 * + 4 * + + 18 + - COUNT( * ) + + - 70 col1 FROM tab0
----
-2881

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-721
SELECT - 39 * + 4 * + + 18 + - COUNT ( * ) + + - 70 col1 FROM tab0
----
-2881

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-722
SELECT ALL + - CAST( NULL AS SIGNED ) * - col0 + - col1 + 3 / - col0 col0 FROM tab2 AS cor0 WHERE - 82 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-722
SELECT ALL + - CAST ( NULL AS INTEGER ) * - col0 + - col1 + 3 / - col0 col0 FROM tab2 AS cor0 WHERE - 82 IS NULL
----

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

query I rowsort
SELECT ALL 84 + col1 + ( - - col0 ) - - + col0 FROM tab2 AS cor0
----
227
289
301

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

query I rowsort
SELECT DISTINCT + 43 FROM tab2 AS cor0 WHERE NOT NULL > NULL
----

query II rowsort
SELECT 6 - + + col2 AS col2, 56 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - 64 + - col2 AS col1 FROM tab2 AS cor0
----
-104
-122
-87

query I rowsort
SELECT DISTINCT - col1 * - - ( + col2 ) + - + col0 + + col1 FROM tab1 AS cor0
----
-1381
-3240
-375

query I rowsort
SELECT ALL - col2 * + - col2 + + + 90 AS col0 FROM tab0 AS cor0
----
190
2299
9891

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

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

query III rowsort
SELECT * FROM tab2 WHERE - col0 = ( ( - 69 ) * + col1 )
----

query I rowsort
SELECT DISTINCT col2 + 41 AS col2 FROM tab2
----
64
81
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-734
SELECT ALL - COUNT( DISTINCT - + col2 ) + - CAST( + AVG ( ALL + col1 ) AS SIGNED ) AS col1 FROM tab2
----
-68

skipif mysql # not compatible
query I rowsort label-734
SELECT ALL - COUNT ( DISTINCT - + col2 ) + - CAST ( + AVG ( ALL + col1 ) AS INTEGER ) AS col1 FROM tab2
----
-68

query I rowsort
SELECT - col0 * + 90 * 0 AS col0 FROM tab1
----
0
0
0

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

query I rowsort
SELECT - col2 FROM tab1 WHERE - - col0 <= + col0
----
-59
-68
-96

query I rowsort
SELECT + col2 * 63 FROM tab2
----
1449
2520
3654

onlyif mysql # aggregate syntax: 
query II rowsort label-739
SELECT COUNT( * ) AS col0, 73 - - 98 AS col1 FROM tab0
----
3
171

skipif mysql # not compatible
query II rowsort label-739
SELECT COUNT ( * ) AS col0, 73 - - 98 AS col1 FROM tab0
----
3
171

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

query I rowsort
SELECT DISTINCT + col1 - + + ( + + 31 ) * - col0 - col1 FROM tab2
----
1426
1984
2325

query I rowsort
SELECT + 34 - - ( + col2 ) AS col2 FROM tab0 AS cor0
----
133
44
81

query II rowsort
SELECT ALL + - col1 AS col1, + col0 * col0 FROM tab0 AS cor0
----
-1
9409
-21
7569
-81
225

query I rowsort
SELECT 10 FROM tab0 cor0 WHERE - col0 NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL 36 * + + col0 * - col1 + col2 AS col0 FROM tab0
----
-3393
-43693
-65762

query II rowsort
SELECT ALL col0 - - 13, - col0 AS col1 FROM tab1
----
104
-91
64
-51
98
-85

query I rowsort
SELECT ALL + + col2 AS col1 FROM tab0 WHERE NULL < NULL
----

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

skipif mysql # not compatible
query I rowsort label-748
SELECT DISTINCT ( + COUNT ( ALL - col2 ) ) FROM tab0
----
3

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-750
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 23 / CAST( 69 AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-750
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 23 / CAST ( 69 AS REAL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-751
SELECT ALL + ( 86 ) col2, col1 DIV - col1 FROM tab1 cor0
----
86
-1
86
-1
86
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-751
SELECT ALL + ( 86 ) col2, col1 / - col1 FROM tab1 cor0
----
86
-1
86
-1
86
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-754
SELECT + COUNT( * ) * MIN( ALL + - col1 ) AS col0 FROM tab0 AS cor0
----
-243

skipif mysql # not compatible
query I rowsort label-754
SELECT + COUNT ( * ) * MIN ( ALL + - col1 ) AS col0 FROM tab0 AS cor0
----
-243

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-755
SELECT DISTINCT col1, - col1 + + - CAST( NULL AS SIGNED ) FROM tab2
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-755
SELECT DISTINCT col1, - col1 + + - CAST ( NULL AS INTEGER ) FROM tab2
----
51
NULL
67
NULL
77
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 34 col2, - col0 + + col0 FROM tab1
----
34
0
34
0
34
0

query I rowsort
SELECT + col2 FROM tab2 WHERE NOT NULL BETWEEN + - col2 AND + + col0
----

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

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

query I rowsort
SELECT DISTINCT - ( 64 ) FROM tab2 WHERE - col2 - col2 / col0 = + col0 - - - col0
----

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

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

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

query I rowsort
SELECT ALL - - 11 FROM tab2 cor0
----
11
11
11

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

query I rowsort
SELECT ALL + - 28 + 54 FROM tab0 AS cor0
----
26
26
26

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

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

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

query I rowsort
SELECT ALL + - 48 AS col1 FROM tab1 AS cor0
----
-48
-48
-48

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-769
SELECT DISTINCT + + COUNT( * ) AS col0 FROM tab1 cor0 WHERE 54 NOT BETWEEN CAST( NULL AS DECIMAL ) / + + col0 AND 47
----
3

skipif mysql # not compatible
query I rowsort label-769
SELECT DISTINCT + + COUNT ( * ) AS col0 FROM tab1 cor0 WHERE 54 NOT BETWEEN CAST ( NULL AS REAL ) / + + col0 AND 47
----
3

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

query I rowsort
SELECT col0 + + 34 FROM tab0 AS cor0
----
121
131
49

query II rowsort
SELECT + - ( col0 ) AS col1, + col2 + col2 - + col2 FROM tab2 WHERE NULL >= - col2
----

query I rowsort
SELECT DISTINCT + col2 * + 86 * 15 + - 38 FROM tab0
----
127672
12862
60592

query III rowsort
SELECT * FROM tab0 WHERE - col2 NOT BETWEEN NULL AND - col0
----
87
21
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-775
SELECT ALL - 42 + + 50 + - + CAST( - col0 AS SIGNED ) + col1 col0 FROM tab0
----
104
106
116

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-775
SELECT ALL - 42 + + 50 + - + CAST ( - col0 AS INTEGER ) + col1 col0 FROM tab0
----
104
106
116

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-777
SELECT + MAX( DISTINCT + col2 ) + + 11 AS col0, COUNT( * ) DIV + - COUNT( - col2 ) AS col2 FROM tab1
----
107
-1

skipif mysql # not compatible
query II rowsort label-777
SELECT + MAX ( DISTINCT + col2 ) + + 11 AS col0, COUNT ( * ) / + - COUNT ( - col2 ) AS col2 FROM tab1
----
107
-1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL IS NULL AND NOT + col2 > NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-780
SELECT 90 + + MIN( ALL col2 ) * 62 FROM tab1
----
3748

skipif mysql # not compatible
query I rowsort label-780
SELECT 90 + + MIN ( ALL col2 ) * 62 FROM tab1
----
3748

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

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

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 + - + 23 * + - col2 NOT BETWEEN ( col0 ) AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-784
SELECT - - SUM( ALL col0 ) * SUM( ALL - col1 ) + + + 3 FROM tab0 WHERE NOT - - col2 + - col0 IS NULL
----
-20494

skipif mysql # not compatible
query I rowsort label-784
SELECT - - SUM ( ALL col0 ) * SUM ( ALL - col1 ) + + + 3 FROM tab0 WHERE NOT - - col2 + - col0 IS NULL
----
-20494

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-786
SELECT DISTINCT ( - SUM( DISTINCT 20 ) ) FROM tab1
----
-20

skipif mysql # not compatible
query I rowsort label-786
SELECT DISTINCT ( - SUM ( DISTINCT 20 ) ) FROM tab1
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-787
SELECT - + CAST( 36 AS SIGNED ) * - col0 FROM tab1 AS cor0
----
1836
3060
3276

skipif mysql # not compatible
query I rowsort label-787
SELECT - + CAST ( 36 AS INTEGER ) * - col0 FROM tab1 AS cor0
----
1836
3060
3276

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col2 - - col2 col1 FROM tab0 AS cor0
----
110
2256
9900

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

query II rowsort
SELECT - + col2, - col0 * - - 28 + + col1 AS col2 FROM tab1 AS cor0
----
-59
-2375
-68
-2501
-96
-1414

onlyif mysql # DIV for integer division: 
query I rowsort label-792
SELECT ALL + col1 DIV + col0 + - 79 AS col2 FROM tab1 AS cor0
----
-79
-79
-79

skipif mysql # not compatible
query I rowsort label-792
SELECT ALL + col1 / + col0 + - 79 AS col2 FROM tab1 AS cor0
----
-79
-79
-79

onlyif mysql # DIV for integer division: 
query II rowsort label-793
SELECT DISTINCT - col1 AS col1, col1 DIV 6 AS col1 FROM tab1 AS cor0
----
-14
2
-47
7
-5
0

skipif mysql # not compatible
query II rowsort label-793
SELECT DISTINCT - col1 AS col1, col1 / 6 AS col1 FROM tab1 AS cor0
----
-14
2
-47
7
-5
0

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

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

query I rowsort
SELECT + col0 AS col1 FROM tab2 WHERE NOT ( 2 <> - col1 )
----

query I rowsort
SELECT 89 * + ( - col0 ) * col2 AS col1 FROM tab2
----
-227840
-387150
-94162

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-798
SELECT - col1 + col2 / - - CAST( NULL AS SIGNED ), col1 * col2 AS col2 FROM tab1 AS cor0
----
NULL
1344
NULL
295
NULL
3196

skipif mysql # not compatible
query II rowsort label-798
SELECT - col1 + col2 / - - CAST ( NULL AS INTEGER ), col1 * col2 AS col2 FROM tab1 AS cor0
----
NULL
1344
NULL
295
NULL
3196

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col0 <> col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 42 AS col0 FROM tab2 AS cor0
----
42
42
42

query I rowsort
SELECT ALL - 25 FROM tab0 cor0
----
-25
-25
-25

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

query I rowsort
SELECT DISTINCT - 8 FROM tab1 WHERE ( col2 ) IS NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-805
SELECT ALL * FROM tab0 WHERE NULL BETWEEN col1 - - + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-805
SELECT ALL * FROM tab0 WHERE NULL BETWEEN col1 - - + CAST ( NULL AS INTEGER ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL < col0 OR NOT NULL IS NULL
----

query I rowsort
SELECT col2 - - + col1 * - 99 * col0 AS col1 FROM tab0
----
-120238
-180863
-9504

query I rowsort
SELECT DISTINCT - + col1 FROM tab1 WHERE - + 26 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-809
SELECT 34 * + ( - CAST( NULL AS DECIMAL ) ) - col0, 88 AS col1 FROM tab0
----
NULL
88
NULL
88
NULL
88

skipif mysql # not compatible
query II rowsort label-809
SELECT 34 * + ( - CAST ( NULL AS REAL ) ) - col0, 88 AS col1 FROM tab0
----
NULL
88
NULL
88
NULL
88

query I rowsort
SELECT 11 - - - col1 AS col2 FROM tab2
----
-40
-56
-66

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 * 68 col0, - 95 AS col0 FROM tab2 cor0
----
1564
-95
2720
-95
3944
-95

query I rowsort
SELECT DISTINCT col1 * - - 1 AS col2 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT - + col2 * col1 + 78 + - + col0 - + ( - + 37 ) AS col2 FROM tab2 AS cor0
----
-1104
-3029
-3846

onlyif mysql # DIV for integer division: 
query I rowsort label-815
SELECT ALL - 98 DIV 93 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-815
SELECT ALL - 98 / 93 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-816
SELECT col1 DIV 34 * - + col1 FROM tab2
----
-154
-51
-67

skipif mysql # not compatible
query I rowsort label-816
SELECT col1 / 34 * - + col1 FROM tab2
----
-154
-51
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + ( - + 31 ) * col2, col2 col1 FROM tab1 AS cor0
----
1829
59
2108
68
2976
96

query I rowsort
SELECT - + 1 FROM tab2 AS cor0 WHERE NOT - col2 <> NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-819
SELECT ALL - + 10 DIV - COUNT( * ) + - 81 + + + 70 FROM tab0 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-819
SELECT ALL - + 10 / - COUNT ( * ) + - 81 + + + 70 FROM tab0 AS cor0
----
-8

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 13 BETWEEN NULL AND NULL
----

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

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

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

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

query II rowsort
SELECT ALL col2 AS col2, 59 * + - col2 FROM tab1 AS cor0
----
59
-3481
68
-4012
96
-5664

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

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

query I rowsort
SELECT + col2 * - 53 * 19 FROM tab0
----
-10070
-47329
-99693

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

skipif mysql # not compatible
query I rowsort label-827
SELECT ALL col1 / + - col1 AS col0 FROM tab1
----
-1
-1
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-829
SELECT + MIN( DISTINCT + - 40 ) FROM tab0
----
-40

skipif mysql # not compatible
query I rowsort label-829
SELECT + MIN ( DISTINCT + - 40 ) FROM tab0
----
-40

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + col1 >= col0 )
----
75
67
58

onlyif mysql # aggregate syntax: 
query I rowsort label-833
SELECT DISTINCT SUM( DISTINCT col1 ) FROM tab2 AS cor0 WHERE ( NOT ( + col2 + + - col1 ) IS NULL )
----
195

skipif mysql # not compatible
query I rowsort label-833
SELECT DISTINCT SUM ( DISTINCT col1 ) FROM tab2 AS cor0 WHERE ( NOT ( + col2 + + - col1 ) IS NULL )
----
195

query I rowsort
SELECT ALL + 33 + - col1 FROM tab0 cor0
----
-48
12
32

onlyif mysql # aggregate syntax: 
query I rowsort label-835
SELECT + ( - COUNT( * ) ) + - MIN( - - col0 ) AS col1 FROM tab2 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-835
SELECT + ( - COUNT ( * ) ) + - MIN ( - - col0 ) AS col1 FROM tab2 AS cor0
----
-49

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

query I rowsort
SELECT + - 21 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757

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

query II rowsort
SELECT ALL - + col1 + - col0 + col2, col2 AS col1 FROM tab0 AS cor0
----
-49
47
-98
10
1
99

query I rowsort
SELECT 50 + + col2 AS col1 FROM tab0
----
149
60
97

query I rowsort
SELECT ALL + 89 + 92 * + 66 AS col1 FROM tab2
----
6161
6161
6161

onlyif mysql # aggregate syntax: 
query I rowsort label-842
SELECT + 81 - - COUNT( * ) col1 FROM tab0, tab2 AS cor0
----
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-842
SELECT + 81 - - COUNT ( * ) col1 FROM tab0, tab2 AS cor0
----
90

query I rowsort
SELECT ALL col2 * col2 + col0 * - 63 FROM tab1
----
-1109
-1874
6003

onlyif mysql # aggregate syntax: 
query I rowsort label-844
SELECT DISTINCT + MAX( ALL - col2 ) + + 59 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-844
SELECT DISTINCT + MAX ( ALL - col2 ) + + 59 AS col2 FROM tab1
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-846
SELECT ALL CAST( - + ( col2 ) AS SIGNED ) - - 33 AS col1 FROM tab0
----
-14
-66
23

skipif mysql # not compatible
query I rowsort label-846
SELECT ALL CAST ( - + ( col2 ) AS INTEGER ) - - 33 AS col1 FROM tab0
----
-14
-66
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col2 FROM tab0 AS cor0 WHERE NOT NULL <> 22 OR NOT 64 + + + col0 - - + col0 < 0 AND - 41 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col2, - ( - col0 ) + col0 * + col2 FROM tab1 AS cor0
----
-14
4947
-47
6279
-5
5100

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-851
SELECT DISTINCT - CAST( MIN( ALL + col1 ) AS SIGNED ) * SUM( DISTINCT - + col0 ) col0 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-851
SELECT DISTINCT - CAST ( MIN ( ALL + col1 ) AS INTEGER ) * SUM ( DISTINCT - + col0 ) col0 FROM tab0 AS cor0
----
199

onlyif mysql # DIV for integer division: 
query I rowsort label-852
SELECT ALL - + col0 DIV + ( - 38 ) AS col2 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-852
SELECT ALL - + col0 / + ( - 38 ) AS col2 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-853
SELECT DISTINCT 93 * COUNT( * ) col2 FROM tab1 AS cor0
----
279

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-856
SELECT ALL - CAST( - 85 AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE ( + 98 <> NULL )
----

skipif mysql # not compatible
query I rowsort label-856
SELECT ALL - CAST ( - 85 AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE ( + 98 <> NULL )
----

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

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

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

query II rowsort
SELECT ALL - + col0 * + col1, 78 AS col0 FROM tab1 AS cor0
----
-425
78
-4277
78
-714
78

query I rowsort
SELECT DISTINCT + col2 * - col0 + col0 AS col2 FROM tab2 AS cor0
----
-1012
-2496
-4275

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 13 + + 54 col1 FROM tab1
----
67
67
67

query I rowsort
SELECT DISTINCT + col2 + 47 * col0 FROM tab1
----
2493
4054
4345

query I rowsort
SELECT DISTINCT 40 * + 20 FROM tab0
----
800

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

skipif mysql # not compatible
query I rowsort label-864
SELECT ALL col0 / + 39 FROM tab2
----
1
1
1

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

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

query I rowsort
SELECT DISTINCT 87 AS col2 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN col1 AND - col1 * + + col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-867
SELECT ALL + + 89 DIV + MAX( - + col0 ) AS col1 FROM tab0 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-867
SELECT ALL + + 89 / + MAX ( - + col0 ) AS col1 FROM tab0 AS cor0
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-868
SELECT + - COUNT( + 37 ) DIV + COUNT( - col0 ) AS col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-868
SELECT + - COUNT ( + 37 ) / + COUNT ( - col0 ) AS col2 FROM tab2 AS cor0
----
-1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-870
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) = + 99 * - CAST( - ( col2 ) AS SIGNED ) + 51
----

skipif mysql # not compatible
query III rowsort label-870
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) = + 99 * - CAST ( - ( col2 ) AS INTEGER ) + 51
----

query I rowsort
SELECT ALL + - 24 * + 11 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f0f37d502972884b7481e70bbf5b459e

query I rowsort
SELECT col0 + - + 15 * col2 AS col1 FROM tab0
----
-1388
-63
-690

query I rowsort
SELECT ALL + col0 + + - col0 + - col2 FROM tab1
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-874
SELECT + 80 + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-874
SELECT + 80 + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-875
SELECT DISTINCT + 51 DIV - col2 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-875
SELECT DISTINCT + 51 / - col2 FROM tab1 cor0
----
0

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-879
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) * + - ( + 20 ) BETWEEN + 87 / col2 AND - col1 * - CAST( NULL AS SIGNED ) * + col1 * - col1
----

skipif mysql # not compatible
query III rowsort label-879
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) * + - ( + 20 ) BETWEEN + 87 / col2 AND - col1 * - CAST ( NULL AS INTEGER ) * + col1 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-880
SELECT COUNT( DISTINCT 64 ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-880
SELECT COUNT ( DISTINCT 64 ) AS col1 FROM tab0
----
1

query II rowsort
SELECT ALL - ( 46 ) - - - col1 + ( - + col2 ), + 24 AS col2 FROM tab0
----
-146
24
-174
24
-77
24

query I rowsort
SELECT DISTINCT + col2 + - col2 + - col1 * - col0 AS col0 FROM tab0
----
1215
1827
97

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-884
SELECT ALL - 54 DIV - col0 AS col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-884
SELECT ALL - 54 / - col0 AS col2 FROM tab1
----
0
0
1

query II rowsort
SELECT - - col2 * - - 39 AS col1, col0 * - - 35 FROM tab2 AS cor0
----
1560
2240
2262
2625
897
1610

onlyif mysql # aggregate syntax: 
query I rowsort label-886
SELECT ALL - SUM( 74 ) AS col2 FROM tab2 AS cor0
----
-222

skipif mysql # not compatible
query I rowsort label-886
SELECT ALL - SUM ( 74 ) AS col2 FROM tab2 AS cor0
----
-222

query I rowsort
SELECT 8 * - col0 AS col0 FROM tab0
----
-120
-696
-776

query I rowsort
SELECT 56 * 71 * 35 AS col2 FROM tab1
----
139160
139160
139160

query I rowsort
SELECT ( + 64 ) * + col1 * ( + col1 ) AS col0 FROM tab1
----
12544
141376
1600

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

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

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

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

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

query I rowsort
SELECT DISTINCT col0 * + col0 + - 89 FROM tab2
----
2027
4007
5536

query II rowsort
SELECT - col1 * - col0 AS col2, col0 FROM tab0
----
1215
15
1827
87
97
97

query I rowsort
SELECT + - 79 AS col1 FROM tab1 WHERE ( NOT ( NULL ) <= NULL )
----

query I rowsort
SELECT ALL 36 * col2 * - col0 FROM tab1
----
-176256
-180540
-222768

query I rowsort
SELECT DISTINCT + 27 + + - col1 * + 37 AS col0 FROM tab2
----
-1860
-2452
-2822

onlyif mysql # aggregate syntax: 
query II rowsort label-899
SELECT ALL COUNT( + 52 ) + + + 86 * + - 90, ( - COUNT( * ) ) AS col2 FROM tab1
----
-7737
-3

skipif mysql # not compatible
query II rowsort label-899
SELECT ALL COUNT ( + 52 ) + + + 86 * + - 90, ( - COUNT ( * ) ) AS col2 FROM tab1
----
-7737
-3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 78 * ( col0 ) + + 59 * + col2 <> NULL
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-904
SELECT ALL + COUNT( ALL col1 ) + COUNT( ALL + 91 ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-904
SELECT ALL + COUNT ( ALL col1 ) + COUNT ( ALL + 91 ) FROM tab2 AS cor0
----
6

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 - - 31 * + + 87 IN ( 10 + 61 )
----

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-909
SELECT ALL + - MIN( DISTINCT + 48 ) + + COUNT( * ) AS col2, CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-45
NULL

skipif mysql # not compatible
query II rowsort label-909
SELECT ALL + - MIN ( DISTINCT + 48 ) + + COUNT ( * ) AS col2, CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-45
NULL

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

query I rowsort
SELECT + 79 AS col2 FROM tab2 AS cor0 WHERE NULL < NULL
----

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

query II rowsort
SELECT DISTINCT col0 * + col0, 9 * - + col1 * + 82 + - col2 AS col0 FROM tab2
----
2116
-37661
4096
-56866
5625
-49504

onlyif mysql # aggregate syntax: 
query I rowsort label-914
SELECT ALL - COUNT( * ) * 27 FROM tab2
----
-81

skipif mysql # not compatible
query I rowsort label-914
SELECT ALL - COUNT ( * ) * 27 FROM tab2
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-915
SELECT DISTINCT + 93 * + COUNT( DISTINCT + col2 ) FROM tab1
----
279

skipif mysql # not compatible
query I rowsort label-915
SELECT DISTINCT + 93 * + COUNT ( DISTINCT + col2 ) FROM tab1
----
279

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 80 IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-918
SELECT + - 99 * + SUM( col0 ) AS col0 FROM tab0 AS cor0
----
-19701

skipif mysql # not compatible
query I rowsort label-918
SELECT + - 99 * + SUM ( col0 ) AS col0 FROM tab0 AS cor0
----
-19701

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-920
SELECT 93 AS col1, 20 * COUNT( * ) AS col1 FROM tab0 AS cor0
----
93
60

skipif mysql # not compatible
query II rowsort label-920
SELECT 93 AS col1, 20 * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
93
60

onlyif mysql # aggregate syntax: 
query I rowsort label-921
SELECT - 47 * COUNT( * ) + - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-432

skipif mysql # not compatible
query I rowsort label-921
SELECT - 47 * COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-432

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

skipif mysql # not compatible
query I rowsort label-922
SELECT ALL ( - SUM ( col1 ) ) AS col0 FROM tab1
----
-66

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

skipif mysql # not compatible
query I rowsort label-923
SELECT - MIN ( - - col2 ) FROM tab0 AS cor0
----
-10

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

query II rowsort
SELECT col0, col2 FROM tab0 AS cor0 WHERE NULL BETWEEN + col1 + + col0 AND - 66
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 47 + - 13 + col1 * - col0 * col2 * + + col0 col1 FROM tab2
----
-12615740
-21858810
-2482128

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

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

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

query I rowsort
SELECT ALL 33 + - col1 * + + col1 FROM tab2
----
-2568
-4456
-5896

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 4, col2 col2 FROM tab1
----
-4
59
-4
68
-4
96

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

query I rowsort
SELECT col0 * - 1 FROM tab2
----
-46
-64
-75

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

query I rowsort
SELECT DISTINCT - 35 AS col0 FROM tab0 AS cor0
----
-35

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

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

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

query I rowsort
SELECT ALL - col2 + 59 + - 33 * - 12 + - 46 FROM tab1
----
313
341
350

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

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

query I rowsort
SELECT DISTINCT - 66 * - + col2 * - col1 AS col1 FROM tab0 AS cor0
----
-13860
-251262
-6534

query I rowsort
SELECT DISTINCT + + col0 FROM tab0 AS cor0 WHERE - col0 * 59 / col0 * col2 IN ( - + col2 * + col1 + + 65 * col2 + + col1 - - + 47, + col2 )
----

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

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

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-950
SELECT DISTINCT + ( + COUNT( * ) ) * - COUNT( * ) + COUNT( * ) + - MAX( + 89 ) AS col2 FROM tab1 cor0
----
-95

skipif mysql # not compatible
query I rowsort label-950
SELECT DISTINCT + ( + COUNT ( * ) ) * - COUNT ( * ) + COUNT ( * ) + - MAX ( + 89 ) AS col2 FROM tab1 cor0
----
-95

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

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

query I rowsort
SELECT - - 40 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 63 col2, + col1 + 20 * + col1 * + col0 FROM tab0
----
63
1941
63
24381
63
36561

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

skipif mysql # not compatible
query II rowsort label-955
SELECT DISTINCT - + 92, COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-92
3

onlyif mysql # DIV for integer division: 
query I rowsort label-956
SELECT DISTINCT + 49 DIV 36 + ( - col2 ) + + - 88 FROM tab1 AS cor0
----
-146
-155
-183

skipif mysql # not compatible
query I rowsort label-956
SELECT DISTINCT + 49 / 36 + ( - col2 ) + + - 88 FROM tab1 AS cor0
----
-146
-155
-183

query II rowsort
SELECT + - 63 * - col2, + col0 FROM tab1 AS cor0
----
3717
85
4284
91
6048
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + 2 AS col2, 20 col2 FROM tab1 AS cor0
----
2
20

query I rowsort
SELECT DISTINCT - col1 + - 74 AS col1 FROM tab1 cor0
----
-121
-79
-88

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-961
SELECT CAST( NULL AS SIGNED ) AS col2, + 74 AS col1 FROM tab1 AS cor0
----
NULL
74
NULL
74
NULL
74

skipif mysql # not compatible
query II rowsort label-961
SELECT CAST ( NULL AS INTEGER ) AS col2, + 74 AS col1 FROM tab1 AS cor0
----
NULL
74
NULL
74
NULL
74

onlyif mysql # aggregate syntax: 
query II rowsort label-962
SELECT ALL 30 + + MAX( col0 ) col1, COUNT( * ) AS col1 FROM tab2
----
105
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-962
SELECT ALL 30 + + MAX ( col0 ) col1, COUNT ( * ) AS col1 FROM tab2
----
105
3

query I rowsort
SELECT - col2 * - + col1 + - col1 + - col0 FROM tab2
----
1076
2939
3744

query I rowsort
SELECT ALL 97 + - ( + 34 ) AS col2 FROM tab1
----
63
63
63

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

query I rowsort
SELECT ALL col2 + + - 72 FROM tab0
----
-25
-62
27

onlyif mysql # DIV for integer division: 
query II rowsort label-967
SELECT DISTINCT + col0 * col2 AS col1, col0 * + ( - + col1 ) + - 26 - - col1 DIV - 40 FROM tab1
----
4896
-740
5015
-451
6188
-4304

skipif mysql # not compatible
query II rowsort label-967
SELECT DISTINCT + col0 * col2 AS col1, col0 * + ( - + col1 ) + - 26 - - col1 / - 40 FROM tab1
----
4896
-740
5015
-451
6188
-4304

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

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

query I rowsort
SELECT + 68 + + col2 AS col1 FROM tab2 cor0
----
108
126
91

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 * col2 col0, + ( 55 ) AS col2 FROM tab1 AS cor0
----
4896
55
5015
55
6188
55

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

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

query II rowsort
SELECT DISTINCT + - 29 * col0 AS col2, + col0 AS col2 FROM tab1 cor0
----
-1479
51
-2465
85
-2639
91

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

query I rowsort
SELECT DISTINCT 63 * 48 FROM tab0
----
3024

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 9 * 52 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-978
SELECT ALL + + COUNT( * ) * 46 AS col1 FROM tab2 cor0
----
138

skipif mysql # not compatible
query I rowsort label-978
SELECT ALL + + COUNT ( * ) * 46 AS col1 FROM tab2 cor0
----
138

query I rowsort
SELECT ALL + col0 * 89 AS col1 FROM tab1 AS cor0
----
4539
7565
8099

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-981
SELECT - 93 * COUNT( * ) FROM tab1 AS cor0
----
-279

skipif mysql # not compatible
query I rowsort label-981
SELECT - 93 * COUNT ( * ) FROM tab1 AS cor0
----
-279

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-982
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE NOT + 37 <> - CAST( NULL AS SIGNED ) / 46 - - col0 / col1 * col0 * - col1
----
0

skipif mysql # not compatible
query I rowsort label-982
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + 37 <> - CAST ( NULL AS INTEGER ) / 46 - - col0 / col1 * col0 * - col1
----
0

query I rowsort
SELECT DISTINCT - col1 * + - 58 AS col0 FROM tab2 AS cor0
----
2958
3886
4466

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-985
SELECT DISTINCT + ( SUM( 48 ) ) FROM tab1
----
144

skipif mysql # not compatible
query I rowsort label-985
SELECT DISTINCT + ( SUM ( 48 ) ) FROM tab1
----
144

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-987
SELECT DISTINCT - 31 * 60 * - - CAST( NULL AS SIGNED ) / - - col1 * - col0 FROM tab2 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-987
SELECT DISTINCT - 31 * 60 * - - CAST ( NULL AS INTEGER ) / - - col1 * - col0 FROM tab2 WHERE NULL IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 69 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-989
SELECT ALL 22 * - + COUNT( * ) AS col0 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-989
SELECT ALL 22 * - + COUNT ( * ) AS col0 FROM tab1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-990
SELECT DISTINCT + 45 * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-135

skipif mysql # not compatible
query I rowsort label-990
SELECT DISTINCT + 45 * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-991
SELECT ALL + COUNT( ALL - 28 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-991
SELECT ALL + COUNT ( ALL - 28 ) FROM tab1
----
3

query I rowsort
SELECT ALL - col1 * + - col1 AS col0 FROM tab1
----
196
2209
25

onlyif mysql # aggregate syntax: 
query I rowsort label-993
SELECT DISTINCT - SUM( DISTINCT 48 ) FROM tab1
----
-48

skipif mysql # not compatible
query I rowsort label-993
SELECT DISTINCT - SUM ( DISTINCT 48 ) FROM tab1
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-994
SELECT - ( - col1 ) DIV + col0 AS col2 FROM tab0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-994
SELECT - ( - col1 ) / + col0 AS col2 FROM tab0
----
0
0
5

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

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

query I rowsort
SELECT 92 + - col2 AS col1 FROM tab1 cor0
----
-4
24
33

onlyif mysql # DIV for integer division: 
query II rowsort label-997
SELECT - - col2 + + + 93 DIV - 38, col2 FROM tab0 cor0
----
45
47
8
10
97
99

skipif mysql # not compatible
query II rowsort label-997
SELECT - - col2 + + + 93 / - 38, col2 FROM tab0 cor0
----
45
47
8
10
97
99

query I rowsort
SELECT + 89 + 37 FROM tab1 AS cor0
----
126
126
126

onlyif mysql # DIV for integer division: 
query I rowsort label-999
SELECT DISTINCT col0 DIV - + col2 - + 19 FROM tab2 AS cor0
----
-20
-21

skipif mysql # not compatible
query I rowsort label-999
SELECT DISTINCT col0 / - + col2 - + 19 FROM tab2 AS cor0
----
-20
-21

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1001
SELECT ALL - + 38 + MIN( - col0 ) AS col2 FROM tab2 AS cor0
----
-113

skipif mysql # not compatible
query I rowsort label-1001
SELECT ALL - + 38 + MIN ( - col0 ) AS col2 FROM tab2 AS cor0
----
-113

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1002
SELECT 43 + - COUNT ( * ) col0 FROM tab2 AS cor0
----
40

query I rowsort
SELECT ALL + 22 + + + col1 * + 58 - - - col0 FROM tab0 AS cor0
----
-17
1153
4705

query III rowsort
SELECT * FROM tab2 WHERE 4 > + + col1
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1006
SELECT ALL COUNT( * ) - + 52 FROM tab2, tab1 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-1006
SELECT ALL COUNT ( * ) - + 52 FROM tab2, tab1 AS cor0
----
-43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 23 + + + col2 * + 57 col1 FROM tab2
----
1334
2303
3329

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1010
SELECT COUNT( * ) - - ( - 9 ) FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-1010
SELECT COUNT ( * ) - - ( - 9 ) FROM tab1
----
-6

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-46
-64
-75

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1013
SELECT ALL + col1 DIV + - 18 + + - col1 col0 FROM tab2 cor0
----
-53
-70
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1013
SELECT ALL + col1 / + - 18 + + - col1 col0 FROM tab2 cor0
----
-53
-70
-81

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 * - col0 + 12 + - - col2 <> ( - - col1 ) * - + col0
----

query I rowsort
SELECT + 14 * col0 AS col2 FROM tab1 WHERE NOT - - col0 + - col0 * 73 * - 75 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1016
SELECT - col1 DIV + - col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1016
SELECT - col1 / + - col1 FROM tab2
----
1
1
1

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

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

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

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

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

query I rowsort
SELECT + 72 * - 45 FROM tab1 AS cor0
----
-3240
-3240
-3240

query II rowsort
SELECT DISTINCT - col0, col0 * - 56 + - - col1 AS col0 FROM tab0
----
-15
-759
-87
-4851
-97
-5431

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1023
SELECT - 85 DIV - ( - - 5 ) AS col0, + 20 - COUNT( * ) AS col0 FROM tab1
----
17
17

skipif mysql # not compatible
query II rowsort label-1023
SELECT - 85 / - ( - - 5 ) AS col0, + 20 - COUNT ( * ) AS col0 FROM tab1
----
17
17

query I rowsort
SELECT col2 * 11 AS col1 FROM tab1
----
1056
649
748

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

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

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

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

query I rowsort
SELECT - 77 FROM tab1, tab2 AS cor0
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107

onlyif mysql # DIV for integer division: 
query I rowsort label-1028
SELECT + + 49 DIV - 75 * + col2 + col1 * col0 + - + 60 FROM tab0 cor0
----
1155
1767
37

skipif mysql # not compatible
query I rowsort label-1028
SELECT + + 49 / - 75 * + col2 + col1 * col0 + - + 60 FROM tab0 cor0
----
1155
1767
37

query I rowsort
SELECT + 17 * col0 + + col1 + - - ( - col2 ) AS col1 FROM tab0 AS cor0
----
1490
1551
289

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1030
SELECT - CAST( - 45 AS SIGNED ) + - col0 AS col2 FROM tab2 AS cor0
----
-1
-19
-30

skipif mysql # not compatible
query I rowsort label-1030
SELECT - CAST ( - 45 AS INTEGER ) + - col0 AS col2 FROM tab2 AS cor0
----
-1
-19
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-1031
SELECT - + ( COUNT( * ) ) + + + 71 FROM tab1 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-1031
SELECT - + ( COUNT ( * ) ) + + + 71 FROM tab1 AS cor0
----
68

query I rowsort
SELECT ( col2 ) + col2 FROM tab1
----
118
136
192

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1033
SELECT ALL - 64 * - + col1 + + + col0 + + 16 + - + CAST( NULL AS DECIMAL ), col1 AS col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-1033
SELECT ALL - 64 * - + col1 + + + col0 + + 16 + - + CAST ( NULL AS REAL ), col1 AS col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

query I rowsort
SELECT col2 + - 47 AS col2 FROM tab2
----
-24
-7
11

onlyif mysql # aggregate syntax: 
query I rowsort label-1035
SELECT DISTINCT COUNT( * ) - - 52 FROM tab2
----
55

skipif mysql # not compatible
query I rowsort label-1035
SELECT DISTINCT COUNT ( * ) - - 52 FROM tab2
----
55

query II rowsort
SELECT + col2 * + - col0, col1 FROM tab1
----
-4896
14
-5015
5
-6188
47

onlyif mysql # DIV for integer division: 
query I rowsort label-1037
SELECT 70 DIV + col1 FROM tab0
----
0
3
70

skipif mysql # not compatible
query I rowsort label-1037
SELECT 70 / + col1 FROM tab0
----
0
3
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1038
SELECT + + COUNT( * ) AS col0, + CAST( + 28 AS SIGNED ) + + CAST( + 71 AS SIGNED ) + + - 18 AS col2 FROM tab2 AS cor0
----
3
81

skipif mysql # not compatible
query II rowsort label-1038
SELECT + + COUNT ( * ) AS col0, + CAST ( + 28 AS INTEGER ) + + CAST ( + 71 AS INTEGER ) + + - 18 AS col2 FROM tab2 AS cor0
----
3
81

query II rowsort
SELECT ALL 72 AS col0, col1 FROM tab1 AS cor0
----
72
14
72
47
72
5

query I rowsort
SELECT ALL - col2 AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND + 47 * - col2 + - col1
----

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

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

query I rowsort
SELECT - 38 * + col0 FROM tab0 AS cor0
----
-3306
-3686
-570

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

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

skipif mysql # not compatible
query I rowsort label-1044
SELECT ALL - MAX ( ALL - col1 ) AS col0 FROM tab0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1045
SELECT ALL col0 AS col0 FROM tab2 WHERE NOT ( NOT + CAST( + ( + 9 ) AS SIGNED ) IN ( 60 + - ( + col0 ) + - + 5 + + - col2 ) )
----

skipif mysql # not compatible
query I rowsort label-1045
SELECT ALL col0 AS col0 FROM tab2 WHERE NOT ( NOT + CAST ( + ( + 9 ) AS INTEGER ) IN ( 60 + - ( + col0 ) + - + 5 + + - col2 ) )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1047
SELECT CAST( - + col1 AS SIGNED ) * - - col0 * + + col1 FROM tab1
----
-201019
-2125
-9996

skipif mysql # not compatible
query I rowsort label-1047
SELECT CAST ( - + col1 AS INTEGER ) * - - col0 * + + col1 FROM tab1
----
-201019
-2125
-9996

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

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

query II rowsort
SELECT ALL col2, - col0 / 7 * - + 0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1053
SELECT ALL - 57 + - - 11 DIV + 62 AS col1, - col2 FROM tab0
----
-57
-10
-57
-47
-57
-99

skipif mysql # not compatible
query II rowsort label-1053
SELECT ALL - 57 + - - 11 / + 62 AS col1, - col2 FROM tab0
----
-57
-10
-57
-47
-57
-99

query II rowsort
SELECT DISTINCT + 85, col1 FROM tab0 AS cor0
----
85
1
85
21
85
81

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1055
SELECT ALL + MIN ( + - CAST ( - ( col1 ) AS INTEGER ) ) col1 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND - col0 + col0 + - - CAST ( NULL AS REAL ) + + 36
----
NULL

query II rowsort
SELECT col1 AS col2, - col2 * - 63 * - col2 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) < NULL
----

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

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

skipif mysql # not compatible
query I rowsort label-1058
SELECT DISTINCT - COUNT ( * ) + 82 FROM tab2
----
79

query III rowsort
SELECT ALL * FROM tab2 WHERE 9 + - - col0 IS NULL
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1062
SELECT + CAST( col0 AS SIGNED ) - + col1 * + - 8 + col1 AS col1 FROM tab1
----
130
177
514

skipif mysql # not compatible
query I rowsort label-1062
SELECT + CAST ( col0 AS INTEGER ) - + col1 * + - 8 + col1 AS col1 FROM tab1
----
130
177
514

query I rowsort
SELECT ALL 47 + - col2 AS col1 FROM tab1
----
-12
-21
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-1064
SELECT ALL + 46 DIV + col1 - 3 AS col1 FROM tab0
----
-1
-3
43

skipif mysql # not compatible
query I rowsort label-1064
SELECT ALL + 46 / + col1 - 3 AS col1 FROM tab0
----
-1
-3
43

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

query I rowsort
SELECT + 66 - - + col0 * - - col1 FROM tab0
----
1281
163
1893

query I rowsort
SELECT col1 * col1 - - - col0 AS col0 FROM tab2
----
2555
4414
5865

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( col0 ) col2 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-1071
SELECT DISTINCT - ( + COUNT( * ) ) * - 16 AS col2 FROM tab2 cor0
----
48

skipif mysql # not compatible
query I rowsort label-1071
SELECT DISTINCT - ( + COUNT ( * ) ) * - 16 AS col2 FROM tab2 cor0
----
48

query II rowsort
SELECT + col1 * 22 * + col2 AS col2, + col1 * - col0 FROM tab2
----
25806
-2346
67760
-4928
85492
-5025

query I rowsort
SELECT + - 83 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb

query I rowsort
SELECT ALL - 81 AS col2 FROM tab1 AS cor0 WHERE 99 IS NULL
----

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

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

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

query I rowsort
SELECT - 7 * 40 FROM tab1 AS cor0
----
-280
-280
-280

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

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

query II rowsort
SELECT DISTINCT + ( + col2 ) - - col0 AS col0, + col2 * + col0 FROM tab1 WHERE col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col1 * + 75 col1 FROM tab2
----
-231000
-291450
-87975

query I rowsort
SELECT 65 + + - col2 AS col1 FROM tab0 WHERE NOT - 59 * + col2 * + - col0 + + col0 + col1 + col0 + + - col0 * - col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - col0 + col2 <= - col0 + + col0 * + 54
----

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

query I rowsort
SELECT - 39 * - + col1 AS col2 FROM tab0
----
3159
39
819

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1085
SELECT - CAST( - - 19 AS SIGNED ) + + col0 * + col0 * col0 AS col0 FROM tab1
----
132632
614106
753552

skipif mysql # not compatible
query I rowsort label-1085
SELECT - CAST ( - - 19 AS INTEGER ) + + col0 * + col0 * col0 AS col0 FROM tab1
----
132632
614106
753552

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1086
SELECT * FROM tab2 AS cor0 WHERE + CAST( + col2 AS DECIMAL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1086
SELECT * FROM tab2 AS cor0 WHERE + CAST ( + col2 AS REAL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1087
SELECT - 73 + + - col1 + 80 * col1 * ( - + CAST( 14 AS SIGNED ) ) + - - col0 + ( - - col0 ) FROM tab1 cor0
----
-15665
-52578
-5508

skipif mysql # not compatible
query I rowsort label-1087
SELECT - 73 + + - col1 + 80 * col1 * ( - + CAST ( 14 AS INTEGER ) ) + - - col0 + ( - - col0 ) FROM tab1 cor0
----
-15665
-52578
-5508

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1088
SELECT COUNT( * ) * + + COUNT( * ) FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN ( col0 ) AND CAST( NULL AS SIGNED ) / - col1
----
0

skipif mysql # not compatible
query I rowsort label-1088
SELECT COUNT ( * ) * + + COUNT ( * ) FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN ( col0 ) AND CAST ( NULL AS INTEGER ) / - col1
----
0

query II rowsort
SELECT - 35, - 29 AS col2 FROM tab0 AS cor0
----
-35
-29
-35
-29
-35
-29

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1091
SELECT ( + 85 ), - MAX( CAST( NULL AS DECIMAL ) ) AS col2 FROM tab0
----
85
NULL

skipif mysql # not compatible
query II rowsort label-1091
SELECT ( + 85 ), - MAX ( CAST ( NULL AS REAL ) ) AS col2 FROM tab0
----
85
NULL

query I rowsort
SELECT - + 59 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1093
SELECT CAST( - AVG ( + + col2 ) AS SIGNED ) AS col1 FROM tab0
----
-52

skipif mysql # not compatible
query I rowsort label-1093
SELECT CAST ( - AVG ( + + col2 ) AS INTEGER ) AS col1 FROM tab0
----
-52

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab1 WHERE 46 IS NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( 10 ) col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e

onlyif mysql # aggregate syntax: 
query I rowsort label-1097
SELECT DISTINCT 22 - - COUNT( * ) FROM tab1 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-1097
SELECT DISTINCT 22 - - COUNT ( * ) FROM tab1 AS cor0
----
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 89 * - col2 col0 FROM tab0 AS cor0
----
-4183
-8811
-890

query I rowsort
SELECT ALL - 40 * + col0 + col1 AS col2 FROM tab1 AS cor0
----
-2026
-3395
-3593

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 57 > NULL
----

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

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

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

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

query I rowsort
SELECT + col1 + + col2 * + ( + - 89 ) AS col2 FROM tab0
----
-4102
-869
-8810

query I rowsort
SELECT DISTINCT col2 * + 36 AS col0 FROM tab0
----
1692
3564
360

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 55 * + - col1 * - + col2 col1, col1 * - col2 FROM tab1 AS cor0
----
16225
-295
175780
-3196
73920
-1344

query I rowsort
SELECT - + col1 AS col0 FROM tab2 AS cor0 WHERE NOT 19 * - - 85 * - - 6 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1109
SELECT ALL col0 FROM tab1 WHERE NULL <= CAST( col0 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1109
SELECT ALL col0 FROM tab1 WHERE NULL <= CAST ( col0 AS INTEGER )
----

query I rowsort
SELECT col2 * col2 + 91 FROM tab1
----
3572
4715
9307

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1113
SELECT + COUNT( - 32 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1113
SELECT + COUNT ( - 32 ) AS col0 FROM tab2
----
3

query I rowsort
SELECT ALL + col0 AS col1 FROM tab1 WHERE NOT 90 IS NULL
----
51
85
91

query I rowsort
SELECT + 78 * col1 FROM tab1 WHERE NOT col1 * + col0 = col1 / col1
----
1092
3666
390

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

query I rowsort
SELECT - col0 * - 73 FROM tab0 WHERE NULL < 16
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1118
SELECT MIN( - CAST( - col0 AS SIGNED ) ) * - 63 FROM tab0 WHERE - col2 > col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1118
SELECT MIN ( - CAST ( - col0 AS INTEGER ) ) * - 63 FROM tab0 WHERE - col2 > col0
----
NULL

query I rowsort
SELECT ALL 57 AS col2 FROM tab0 WHERE NOT + col1 >= ( 98 )
----
57
57
57

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( 46 ) > ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1121
SELECT col1 * + CAST( + 58 * col1 AS SIGNED ) FROM tab2
----
150858
260362
343882

skipif mysql # not compatible
query I rowsort label-1121
SELECT col1 * + CAST ( + 58 * col1 AS INTEGER ) FROM tab2
----
150858
260362
343882

query I rowsort
SELECT 93 * - col1 AS col1 FROM tab0
----
-1953
-7533
-93

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1124
SELECT DISTINCT MIN( 58 ) * - 2 FROM tab1
----
-116

skipif mysql # not compatible
query I rowsort label-1124
SELECT DISTINCT MIN ( 58 ) * - 2 FROM tab1
----
-116

query I rowsort
SELECT + col2 + 19 AS col0 FROM tab1
----
115
78
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + 88 col1 FROM tab0
----
4136
8712
880

query I rowsort
SELECT DISTINCT + 23 + 63 FROM tab1
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1128
SELECT DISTINCT CAST( + AVG ( col1 ) AS SIGNED ) + COUNT( + 27 ) AS col0 FROM tab1
----
25

skipif mysql # not compatible
query I rowsort label-1128
SELECT DISTINCT CAST ( + AVG ( col1 ) AS INTEGER ) + COUNT ( + 27 ) AS col0 FROM tab1
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1129
SELECT DISTINCT 1 + AVG ( + 50 + + CAST( NULL AS SIGNED ) * col0 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1129
SELECT DISTINCT 1 + AVG ( + 50 + + CAST ( NULL AS INTEGER ) * col0 ) FROM tab1
----
NULL

query I rowsort
SELECT col0 * 22 AS col2 FROM tab2 WHERE NOT ( col2 ) IS NULL
----
1012
1408
1650

onlyif mysql # aggregate syntax: 
query I rowsort label-1131
SELECT ALL MAX( DISTINCT - col2 ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-1131
SELECT ALL MAX ( DISTINCT - col2 ) FROM tab0
----
-10

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

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

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

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query I rowsort
SELECT + 36 * - 6 + - 61 AS col0 FROM tab2
----
-277
-277
-277

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

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

query I rowsort
SELECT - col1 + - 58 FROM tab1
----
-105
-63
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-1140
SELECT col1 DIV - col2 + col1 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-1140
SELECT col1 / - col2 + col1 FROM tab1
----
14
47
5

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

query I rowsort
SELECT - - ( + 30 ) * - col0 FROM tab2 AS cor0
----
-1380
-1920
-2250

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1143
SELECT COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE ( 26 ) NOT IN ( CAST( col1 AS SIGNED ) )
----
3

skipif mysql # not compatible
query I rowsort label-1143
SELECT COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE ( 26 ) NOT IN ( CAST ( col1 AS INTEGER ) )
----
3

query I rowsort
SELECT + col2 * 30 AS col1 FROM tab1 AS cor0
----
1770
2040
2880

query I rowsort
SELECT DISTINCT + col1 * 71 AS col2 FROM tab2 AS cor0
----
3621
4757
5467

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1147
SELECT - SUM( ALL col0 ) AS col0 FROM tab2 AS cor0 WHERE - 52 NOT BETWEEN NULL AND ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1147
SELECT - SUM ( ALL col0 ) AS col0 FROM tab2 AS cor0 WHERE - 52 NOT BETWEEN NULL AND ( NULL )
----
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE 84 IN ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1149
SELECT ALL + MAX( DISTINCT - col0 ) AS col0 FROM tab1 AS cor0 WHERE ( col0 / - col1 + 24 ) <> ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1149
SELECT ALL + MAX ( DISTINCT - col0 ) AS col0 FROM tab1 AS cor0 WHERE ( col0 / - col1 + 24 ) <> ( NULL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1150
SELECT col0 / + CAST( + 92 AS SIGNED ) FROM tab2 AS cor0 WHERE NULL IN ( col0 )
----

skipif mysql # not compatible
query I rowsort label-1150
SELECT col0 / + CAST ( + 92 AS INTEGER ) FROM tab2 AS cor0 WHERE NULL IN ( col0 )
----

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

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

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

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

query I rowsort
SELECT DISTINCT + 24 FROM tab0 WHERE ( NULL ) BETWEEN NULL AND + 35
----

query I rowsort
SELECT col2 FROM tab1 WHERE NOT col0 / 21 IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1156
SELECT - COUNT( ALL - ( 24 ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-1156
SELECT - COUNT ( ALL - ( 24 ) ) FROM tab0
----
-3

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

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

skipif mysql # not compatible
query I rowsort label-1158
SELECT COUNT ( * ) / + 28 AS col1 FROM tab2
----
0

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

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

query I rowsort
SELECT col0 * col1 FROM tab0 WHERE NOT NULL BETWEEN - 59 AND + col0 * 5
----

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

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

query I rowsort
SELECT DISTINCT - - ( - 65 ) * - col2 AS col0 FROM tab1 AS cor0
----
3835
4420
6240

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

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NOT - col1 <> - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1166
SELECT DISTINCT - 63 + + 87 * COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
720

skipif mysql # not compatible
query I rowsort label-1166
SELECT DISTINCT - 63 + + 87 * COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
720

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 50 col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8

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

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

query I rowsort
SELECT ALL - + 44 + + + col2 + + ( 45 ) FROM tab0 cor0
----
100
11
48

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1172
SELECT - COUNT( * ) DIV - - 17 FROM tab2 AS cor0
----
0

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - col1 ) = 44
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1175
SELECT ALL - col1 DIV - 18 FROM tab2 AS cor0
----
2
3
4

skipif mysql # not compatible
query I rowsort label-1175
SELECT ALL - col1 / - 18 FROM tab2 AS cor0
----
2
3
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1176
SELECT DISTINCT + - SUM( DISTINCT - 24 ) + COUNT( * ) FROM tab1 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-1176
SELECT DISTINCT + - SUM ( DISTINCT - 24 ) + COUNT ( * ) FROM tab1 AS cor0
----
27

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

skipif mysql # not compatible
query I rowsort label-1177
SELECT - MIN ( + 8 ) FROM tab2 AS cor0
----
-8

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

query III rowsort
SELECT * FROM tab1 WHERE - ( - - col0 ) / - col1 IS NULL
----

query II rowsort
SELECT ALL + 19 + + col2, col2 FROM tab0
----
118
99
29
10
66
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1181
SELECT col2 + col2 + - CAST( col0 AS SIGNED ) AS col1 FROM tab1
----
141
33
45

skipif mysql # not compatible
query I rowsort label-1181
SELECT col2 + col2 + - CAST ( col0 AS INTEGER ) AS col1 FROM tab1
----
141
33
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1182
SELECT DISTINCT 16 * SUM( + 59 ) + - 58 FROM tab2
----
2774

skipif mysql # not compatible
query I rowsort label-1182
SELECT DISTINCT 16 * SUM ( + 59 ) + - 58 FROM tab2
----
2774

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

query I rowsort
SELECT DISTINCT 85 * - 9 FROM tab1
----
-765

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

query I rowsort
SELECT DISTINCT + 64 - col1 FROM tab0 AS cor0
----
-17
43
63

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

query III rowsort
SELECT ALL * FROM tab1 WHERE - 61 NOT IN ( - 70 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col0 - - - 0 AS col2 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT DISTINCT - ( 28 ) FROM tab0 AS cor0
----
-28

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1193
SELECT * FROM tab2 AS cor0 WHERE NOT 74 * - col1 + 24 + + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) IN ( 2 * col2 )
----

skipif mysql # not compatible
query III rowsort label-1193
SELECT * FROM tab2 AS cor0 WHERE NOT 74 * - col1 + 24 + + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) IN ( 2 * col2 )
----

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

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

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

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

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

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

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

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

query I rowsort
SELECT + - 18 FROM tab2 cor0
----
-18
-18
-18

query I rowsort
SELECT - 3 * + + col0 * - + col2 AS col2 FROM tab1
----
14688
15045
18564

onlyif mysql # aggregate syntax: 
query II rowsort label-1202
SELECT DISTINCT - 30 col0, - COUNT( * ) col2 FROM tab2, tab2 AS cor0
----
-30
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1202
SELECT DISTINCT - 30 col0, - COUNT ( * ) col2 FROM tab2, tab2 AS cor0
----
-30
-9

query I rowsort
SELECT DISTINCT + 61 FROM tab0 WHERE ( + - col0 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 + + - col1 * - 64 BETWEEN col2 AND 40
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-1205
SELECT ALL - col0 DIV 39 * + 73 FROM tab1 AS cor0
----
-146
-146
-73

skipif mysql # not compatible
query I rowsort label-1205
SELECT ALL - col0 / 39 * + 73 FROM tab1 AS cor0
----
-146
-146
-73

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= + 19 * - 22 + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1209
SELECT ALL - SUM( + - 98 ) * + COUNT( * ) FROM tab0 AS cor0
----
882

skipif mysql # not compatible
query I rowsort label-1209
SELECT ALL - SUM ( + - 98 ) * + COUNT ( * ) FROM tab0 AS cor0
----
882

query I rowsort
SELECT + col1 * + 53 + - + 65 FROM tab1 AS cor0
----
200
2426
677

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 37 + + col0 AS col0, + col0 col0 FROM tab1 AS cor0
----
14
51
48
85
54
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1213
SELECT ALL - 7 + + + ( + 89 ) * - SUM( DISTINCT - 39 ) + - - 67 col0 FROM tab0 AS cor0
----
3531

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1213
SELECT ALL - 7 + + + ( + 89 ) * - SUM ( DISTINCT - 39 ) + - - 67 col0 FROM tab0 AS cor0
----
3531

query I rowsort
SELECT + col2 * + + 23 + ( - 65 ) - + 32 AS col0 FROM tab2 AS cor0
----
1237
432
823

onlyif mysql # aggregate syntax: 
query I rowsort label-1215
SELECT DISTINCT 37 + - COUNT( * ) * SUM( DISTINCT + + col1 ) FROM tab0 AS cor0
----
-272

skipif mysql # not compatible
query I rowsort label-1215
SELECT DISTINCT 37 + - COUNT ( * ) * SUM ( DISTINCT + + col1 ) FROM tab0 AS cor0
----
-272

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1216
SELECT DISTINCT - - 78 DIV - COUNT( ALL + col0 ) FROM tab0 cor0 WHERE 45 NOT IN ( - col2 + - col0, - col1 )
----
-26

skipif mysql # not compatible
query I rowsort label-1216
SELECT DISTINCT - - 78 / - COUNT ( ALL + col0 ) FROM tab0 cor0 WHERE 45 NOT IN ( - col2 + - col0, - col1 )
----
-26

query III rowsort
SELECT * FROM tab1 WHERE - 59 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1218
SELECT - CAST( ( + + col2 ) AS SIGNED ) + - + col2 FROM tab1 WHERE col2 >= NULL
----

skipif mysql # not compatible
query I rowsort label-1218
SELECT - CAST ( ( + + col2 ) AS INTEGER ) + - + col2 FROM tab1 WHERE col2 >= NULL
----

query I rowsort
SELECT ALL + col1 AS col2 FROM tab0 WHERE - 56 IN ( + col1, + 6 )
----

query II rowsort
SELECT col0 AS col1, col0 * - col2 AS col0 FROM tab2
----
46
-1058
64
-2560
75
-4350

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1221
SELECT + MIN( + 43 ) DIV + + 5, + SUM( ALL - 67 ) * - 76 AS col0 FROM tab1
----
8
15276

skipif mysql # not compatible
query II rowsort label-1221
SELECT + MIN ( + 43 ) / + + 5, + SUM ( ALL - 67 ) * - 76 AS col0 FROM tab1
----
8
15276

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 - - 81 col0 FROM tab0
----
127
127
127

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1223
SELECT ALL - ( - col0 ) + - - CAST( - - 74 AS SIGNED ) FROM tab2 AS cor0
----
120
138
149

skipif mysql # not compatible
query I rowsort label-1223
SELECT ALL - ( - col0 ) + - - CAST ( - - 74 AS INTEGER ) FROM tab2 AS cor0
----
120
138
149

query I rowsort
SELECT - 85 + - + 45 * + 55 * 78 AS col2 FROM tab0 AS cor0
----
-193135
-193135
-193135

onlyif mysql # DIV for integer division: 
query I rowsort label-1225
SELECT DISTINCT - 15 DIV - col1 + - col1 + + col2 * + - col1 FROM tab2 AS cor0
----
-1224
-3157
-3953

skipif mysql # not compatible
query I rowsort label-1225
SELECT DISTINCT - 15 / - col1 + - col1 + + col2 * + - col1 FROM tab2 AS cor0
----
-1224
-3157
-3953

onlyif mysql # aggregate syntax: 
query I rowsort label-1226
SELECT DISTINCT - 6 * + - COUNT( * ) FROM tab0 cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1226
SELECT DISTINCT - 6 * + - COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL IS NULL
----
0

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

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

query I rowsort
SELECT DISTINCT 33 FROM tab0 cor0 WHERE + col1 NOT IN ( + - 14 * + 44 * + col0 * - col0 + col0 )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-1229
SELECT DISTINCT - MIN( DISTINCT + - col0 ) AS col2 FROM tab1 AS cor0 WHERE NULL <> - 32
----
NULL

skipif mysql # not compatible
query I rowsort label-1229
SELECT DISTINCT - MIN ( DISTINCT + - col0 ) AS col2 FROM tab1 AS cor0 WHERE NULL <> - 32
----
NULL

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

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

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

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

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

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

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

query I rowsort
SELECT ALL ( - 81 ) FROM tab2
----
-81
-81
-81

query I rowsort
SELECT col1 * + - col1 AS col0 FROM tab2 WHERE NOT ( 12 * - col2 + + + col0 ) IN ( - col1 * + 5 )
----
-2601
-4489
-5929

onlyif mysql # aggregate syntax: 
query I rowsort label-1236
SELECT + - COUNT( ALL + col0 ) col1 FROM tab2 WHERE NOT + - 52 IS NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1236
SELECT + - COUNT ( ALL + col0 ) col1 FROM tab2 WHERE NOT + - 52 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1237
SELECT ALL - COUNT( ALL - + 92 ) * - 18 * + COUNT( * ) col2 FROM tab1
----
162

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1237
SELECT ALL - COUNT ( ALL - + 92 ) * - 18 * + COUNT ( * ) col2 FROM tab1
----
162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1238
SELECT ALL - MIN( DISTINCT CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1238
SELECT ALL - MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL

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

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

query I rowsort
SELECT col1 + - col2 + - - col1 FROM tab2 AS cor0
----
114
76
79

query I rowsort
SELECT DISTINCT ( 73 ) * col1 AS col2 FROM tab1
----
1022
3431
365

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1244
SELECT ALL - 29, COUNT( DISTINCT - col2 ) AS col1 FROM tab1 cor0
----
-29
3

skipif mysql # not compatible
query II rowsort label-1244
SELECT ALL - 29, COUNT ( DISTINCT - col2 ) AS col1 FROM tab1 cor0
----
-29
3

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

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

query I rowsort
SELECT + col1 + + col0 + - + col1 + + - col1 FROM tab1 AS cor0
----
37
44
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1247
SELECT - CAST( - + col1 AS SIGNED ) * - col2 + ( + col0 ) AS col2 FROM tab1 AS cor0
----
-1293
-210
-3105

skipif mysql # not compatible
query I rowsort label-1247
SELECT - CAST ( - + col1 AS INTEGER ) * - col2 + ( + col0 ) AS col2 FROM tab1 AS cor0
----
-1293
-210
-3105

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1249
SELECT - COUNT( * ) + 65 FROM tab2
----
62

skipif mysql # not compatible
query I rowsort label-1249
SELECT - COUNT ( * ) + 65 FROM tab2
----
62

query I rowsort
SELECT - 19 + + 14 AS col1 FROM tab2
----
-5
-5
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 17 col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query I rowsort
SELECT DISTINCT + + 48 * 47 FROM tab0 AS cor0
----
2256

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1253
SELECT - col1 * - 56 FROM tab2 cor0 WHERE NULL = - CAST( - - 85 AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-1253
SELECT - col1 * - 56 FROM tab2 cor0 WHERE NULL = - CAST ( - - 85 AS REAL )
----

query II rowsort
SELECT - 59 - - col0 AS col1, 13 AS col0 FROM tab1 AS cor0
----
-8
13
26
13
32
13

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

query I rowsort
SELECT DISTINCT + ( + col2 ) AS col0 FROM tab0 AS cor0 WHERE NULL IN ( - 23, - 59, - col2 * + col0 )
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1258
SELECT DISTINCT + 61 AS col1, 17 * + SUM( ALL - + col0 ) AS col2 FROM tab2 AS cor0
----
61
-3145

skipif mysql # not compatible
query II rowsort label-1258
SELECT DISTINCT + 61 AS col1, 17 * + SUM ( ALL - + col0 ) AS col2 FROM tab2 AS cor0
----
61
-3145

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 2 NOT IN ( - 52, - col0 * - - 96 * 11 + - col1 * 69 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1264
SELECT DISTINCT CAST( 97 AS SIGNED ) AS col2 FROM tab1
----
97

skipif mysql # not compatible
query I rowsort label-1264
SELECT DISTINCT CAST ( 97 AS INTEGER ) AS col2 FROM tab1
----
97

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 * + + col2 IS NOT NULL
----

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

query I rowsort
SELECT DISTINCT col1 + - 64 + + + col2 + + col2 + + + 76 FROM tab2 cor0
----
109
169
195

query I rowsort
SELECT 79 * col0 AS col2 FROM tab0 AS cor0
----
1185
6873
7663

onlyif mysql # aggregate syntax: 
query II rowsort label-1269
SELECT + 2 AS col1, - ( + COUNT( * ) ) + - + COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
2
-18

skipif mysql # not compatible
query II rowsort label-1269
SELECT + 2 AS col1, - ( + COUNT ( * ) ) + - + COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
2
-18

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1271
SELECT col1 + - + CAST ( NULL AS INTEGER ) + col1 + + col2 + - 67 / col2 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( + 39 ) FROM tab0 AS cor0 WHERE col2 * + col0 + 91 <= - - 58
----

query I rowsort
SELECT ALL + 33 * + 2 + - col2 FROM tab1 AS cor0
----
-2
-30
7

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

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1278
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * + + col1 + + 28 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1278
SELECT DISTINCT - CAST ( NULL AS REAL ) * + + col1 + + 28 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1279
SELECT - SUM( DISTINCT - + 41 ) * - MIN( ALL + 12 ) FROM tab1
----
-492

skipif mysql # not compatible
query I rowsort label-1279
SELECT - SUM ( DISTINCT - + 41 ) * - MIN ( ALL + 12 ) FROM tab1
----
-492

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1281
SELECT ALL 47 * + + col1 * CAST( NULL AS SIGNED ) + - 13 + col1 * - ( col1 ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1281
SELECT ALL 47 * + + col1 * CAST ( NULL AS INTEGER ) + - 13 + col1 * - ( col1 ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 13 + col0 FROM tab1
----
104
64
98

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

query I rowsort
SELECT ALL - 74 - - col0 FROM tab2
----
-10
-28
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1285
SELECT COUNT( * ) DIV - - 65 - - ( + COUNT( * ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1285
SELECT COUNT ( * ) / - - 65 - - ( + COUNT ( * ) ) FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1286
SELECT ALL 49 DIV - + col0 FROM tab0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-1286
SELECT ALL 49 / - + col0 FROM tab0
----
-3
0
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1288
SELECT + 69 * col2 DIV col2 FROM tab0
----
69
69
69

skipif mysql # not compatible
query I rowsort label-1288
SELECT + 69 * col2 / col2 FROM tab0
----
69
69
69

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 = - + col1 / - - col1 + + 62
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1292
SELECT DISTINCT + 55 DIV - 88 * + COUNT( * ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-1292
SELECT DISTINCT + 55 / - 88 * + COUNT ( * ) FROM tab2 cor0
----
0

query I rowsort
SELECT ALL - + col1 * + ( col1 ) FROM tab2 cor0
----
-2601
-4489
-5929

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1295
SELECT + CAST( NULL AS DECIMAL ) col2 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1295
SELECT + CAST ( NULL AS REAL ) col2 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 9 * col0 col1 FROM tab2
----
414
576
675

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

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

skipif mysql # not compatible
query I rowsort label-1298
SELECT ALL + COUNT ( * ) * + 54 FROM tab0
----
162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 50 * - col2 col0 FROM tab2
----
-1150
-2000
-2900

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

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

query I rowsort
SELECT ALL 26 * + 86 * - col0 * col1 * + col1 AS col0 FROM tab0
----
-216892
-220055940
-85788612

query II rowsort
SELECT 17 + - 64 + - col1 AS col0, - 4 FROM tab1 AS cor0
----
-52
-4
-61
-4
-94
-4

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1303
SELECT - + 86 AS col2, CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
-86
NULL
-86
NULL
-86
NULL

skipif mysql # not compatible
query II rowsort label-1303
SELECT - + 86 AS col2, CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
-86
NULL
-86
NULL
-86
NULL

query I rowsort
SELECT DISTINCT - + col0 + 97 AS col1 FROM tab1 AS cor0
----
12
46
6

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 37 < 94 + + ( - - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1306
SELECT ALL + ( COUNT( * ) ) * COUNT( DISTINCT + 72 ) + - - COUNT( - 19 ) AS col0 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
18

skipif mysql # not compatible
query I rowsort label-1306
SELECT ALL + ( COUNT ( * ) ) * COUNT ( DISTINCT + 72 ) + - - COUNT ( - 19 ) AS col0 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
18

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - 54 * 52 AND 70
----

query I rowsort
SELECT - ( + col2 ) - + - 12 AS col2 FROM tab0 AS cor0
----
-35
-87
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1309
SELECT + + 46 - - COUNT( * ) + - 70 + COUNT( * ) + - + MIN( DISTINCT col1 ) * - 16 AS col1 FROM tab2 AS cor0
----
798

skipif mysql # not compatible
query I rowsort label-1309
SELECT + + 46 - - COUNT ( * ) + - 70 + COUNT ( * ) + - + MIN ( DISTINCT col1 ) * - 16 AS col1 FROM tab2 AS cor0
----
798

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 14 < - 94
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT col2 * + col1 + - - 16 > NULL )
----

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

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

query I rowsort
SELECT + col2 + - 5 AS col0 FROM tab1 cor0
----
54
63
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1314
SELECT 52 DIV ( SUM( DISTINCT col2 ) ) + + 74 AS col0 FROM tab0
----
74

skipif mysql # not compatible
query I rowsort label-1314
SELECT 52 / ( SUM ( DISTINCT col2 ) ) + + 74 AS col0 FROM tab0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1315
SELECT - COUNT( * ) + - 76 FROM tab1
----
-79

skipif mysql # not compatible
query I rowsort label-1315
SELECT - COUNT ( * ) + - 76 FROM tab1
----
-79

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + 72 col0 FROM tab2
----
123
139
149

query I rowsort
SELECT DISTINCT col2 - + - 68 FROM tab2
----
108
126
91

query I rowsort
SELECT ALL - + col2 FROM tab2 WHERE + 83 + + col0 IS NULL
----

query I rowsort
SELECT - col0 * - 89 + - col0 AS col2 FROM tab0 WHERE NOT 7 = NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1322
SELECT - - 62 * MAX( + 84 ) AS col0 FROM tab0 AS cor0
----
5208

skipif mysql # not compatible
query I rowsort label-1322
SELECT - - 62 * MAX ( + 84 ) AS col0 FROM tab0 AS cor0
----
5208

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1325
SELECT - + 73 AS col2 FROM tab0 WHERE NOT + - ( + 64 ) + - - col0 * + - CAST( + - 27 AS DECIMAL ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-1325
SELECT - + 73 AS col2 FROM tab0 WHERE NOT + - ( + 64 ) + - - col0 * + - CAST ( + - 27 AS REAL ) BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1326
SELECT DISTINCT + col1 DIV - 65 AS col1 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-1326
SELECT DISTINCT + col1 / - 65 AS col1 FROM tab0 AS cor0
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1327
SELECT + - COUNT( * ) + + MAX( ALL + col1 ) FROM tab1 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-1327
SELECT + - COUNT ( * ) + + MAX ( ALL + col1 ) FROM tab1 AS cor0
----
44

query I rowsort
SELECT DISTINCT + - col2 + 54 FROM tab2 cor0
----
-4
14
31

query I rowsort
SELECT DISTINCT + col2 * + 39 AS col0 FROM tab1
----
2301
2652
3744

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1331
SELECT ALL col2 * - CAST( NULL AS DECIMAL ) AS col1, - 42 FROM tab2
----
NULL
-42
NULL
-42
NULL
-42

skipif mysql # not compatible
query II rowsort label-1331
SELECT ALL col2 * - CAST ( NULL AS REAL ) AS col1, - 42 FROM tab2
----
NULL
-42
NULL
-42
NULL
-42

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1337
SELECT 93 + MAX( DISTINCT + col2 ) col2 FROM tab2
----
151

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1337
SELECT 93 + MAX ( DISTINCT + col2 ) col2 FROM tab2
----
151

onlyif mysql # aggregate syntax: 
query I rowsort label-1338
SELECT - - 8 * COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
72

skipif mysql # not compatible
query I rowsort label-1338
SELECT - - 8 * COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-1339
SELECT ALL + col2 * + 7 - col0 * 73 DIV - - col0 + col2 FROM tab1
----
399
471
695

skipif mysql # not compatible
query I rowsort label-1339
SELECT ALL + col2 * + 7 - col0 * 73 / - - col0 + col2 FROM tab1
----
399
471
695

query I rowsort
SELECT ALL 67 * + + col0 * col2 - col2 FROM tab0
----
47188
58280
643302

onlyif mysql # aggregate syntax: 
query II rowsort label-1341
SELECT DISTINCT - - COUNT( * ) AS col1, 62 AS col2 FROM tab0 AS cor0
----
3
62

skipif mysql # not compatible
query II rowsort label-1341
SELECT DISTINCT - - COUNT ( * ) AS col1, 62 AS col2 FROM tab0 AS cor0
----
3
62

onlyif mysql # aggregate syntax: 
query I rowsort label-1342
SELECT ALL - 64 + - - COUNT( DISTINCT + col0 ) FROM tab2 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-1342
SELECT ALL - 64 + - - COUNT ( DISTINCT + col0 ) FROM tab2 AS cor0
----
-61

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

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

query I rowsort
SELECT DISTINCT + 30 AS col0 FROM tab2 AS cor0 WHERE NOT NULL = + col1
----

query I rowsort
SELECT DISTINCT ( 62 ) + + + col0 FROM tab1 AS cor0
----
113
147
153

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1347
SELECT ALL - + col1 * - 33 + CAST( + + col1 AS SIGNED ) + + 85 * + col2 * + ( - 76 ) AS col0 FROM tab1 AS cor0
----
-380970
-437682
-619684

skipif mysql # not compatible
query I rowsort label-1347
SELECT ALL - + col1 * - 33 + CAST ( + + col1 AS INTEGER ) + + 85 * + col2 * + ( - 76 ) AS col0 FROM tab1 AS cor0
----
-380970
-437682
-619684

query I rowsort
SELECT - 51 - 7 FROM tab1 AS cor0
----
-58
-58
-58

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1350
SELECT DISTINCT SUM ( DISTINCT + - col1 ) col0 FROM tab1
----
-66

query III rowsort
SELECT * FROM tab1 WHERE NOT + 44 > + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query I rowsort
SELECT DISTINCT 14 * col2 FROM tab2
----
322
560
812

query I rowsort
SELECT + ( + 68 ) AS col1 FROM tab0
----
68
68
68

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

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

query I rowsort
SELECT DISTINCT - 8 * 23 + + - 58 AS col0 FROM tab2
----
-242

onlyif mysql # aggregate syntax: 
query I rowsort label-1358
SELECT ALL 28 * - - COUNT( * ) FROM tab1
----
84

skipif mysql # not compatible
query I rowsort label-1358
SELECT ALL 28 * - - COUNT ( * ) FROM tab1
----
84

query I rowsort
SELECT - col0 + - 62 * - 22 AS col0 FROM tab2
----
1289
1300
1318

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

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE - col1 <= NULL
----

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 * col2 IS NOT NULL
----

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1368
SELECT + - COUNT ( * ) - + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-18

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

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

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

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

query II rowsort
SELECT + col2 - col0 AS col0, - col1 AS col0 FROM tab0
----
-77
-21
2
-1
32
-81

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1373
SELECT ALL + - MAX( - - 11 ) col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + 26
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1373
SELECT ALL + - MAX ( - - 11 ) col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + 26
----
NULL

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1375
SELECT - + 11 DIV + - 49 - - col2 + - col2 + + + col0, - col0 AS col2 FROM tab1 AS cor0
----
51
-51
85
-85
91
-91

skipif mysql # not compatible
query II rowsort label-1375
SELECT - + 11 / + - 49 - - col2 + - col2 + + + col0, - col0 AS col2 FROM tab1 AS cor0
----
51
-51
85
-85
91
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-1376
SELECT + 96 * - COUNT( * ) + 91 AS col2 FROM tab2 AS cor0
----
-197

skipif mysql # not compatible
query I rowsort label-1376
SELECT + 96 * - COUNT ( * ) + 91 AS col2 FROM tab2 AS cor0
----
-197

query I rowsort
SELECT - col2 * col1 * ( - - col0 ) AS col1 FROM tab2 AS cor0
----
-197120
-291450
-53958

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

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

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

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

query I rowsort
SELECT DISTINCT + - col2 * + ( + 57 ) * - col2 + - 43 + - col0 AS col2 FROM tab2 AS cor0
----
191630
30064
91093

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1382
SELECT DISTINCT + MAX ( ALL - col0 ) col2 FROM tab0 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-1383
SELECT DISTINCT + COUNT( * ) FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-1383
SELECT DISTINCT + COUNT ( * ) FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1385
SELECT + SUM( ALL + 12 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
108

skipif mysql # not compatible
query I rowsort label-1385
SELECT + SUM ( ALL + 12 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
108

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 54 < - 87
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 30 + ( - col2 ) AND + - 59 / - - col1 + col1 + - + 74 * + + col1
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1392
SELECT + col2 * - col1 * col0 DIV + + col0 AS col1 FROM tab0 AS cor0
----
-210
-3807
-99

skipif mysql # not compatible
query I rowsort label-1392
SELECT + col2 * - col1 * col0 / + + col0 AS col1 FROM tab0 AS cor0
----
-210
-3807
-99

query II rowsort
SELECT DISTINCT 31 + - + col0 * - - 68 + - 79 + 13 + + ( 40 ) * col0 * - col1 * col0, col2 * + 77 AS col1 FROM tab2 AS cor0
----
-12620067
3080
-15080135
4466
-4319803
1771

query I rowsort
SELECT ALL col0 + + + col2 * - - 15 FROM tab0
----
1582
237
720

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1396
SELECT DISTINCT 43 - - + 48, + CAST( NULL AS SIGNED ) / + col1 col0 FROM tab2
----
91
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1396
SELECT DISTINCT 43 - - + 48, + CAST ( NULL AS INTEGER ) / + col1 col0 FROM tab2
----
91
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 54, - col2 + - col0 col1 FROM tab1 AS cor0
----
54
-144
54
-147
54
-159

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1401
SELECT DISTINCT - COUNT( * ) DIV - + 7 col2 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1401
SELECT DISTINCT - COUNT ( * ) / - + 7 col2 FROM tab0
----
0

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1403
SELECT ( 20 ), + col2 + + 47 DIV - col1 AS col0 FROM tab1
----
20
50
20
67
20
93

skipif mysql # not compatible
query II rowsort label-1403
SELECT ( 20 ), + col2 + + 47 / - col1 AS col0 FROM tab1
----
20
50
20
67
20
93

query I rowsort
SELECT ALL 1 * + 41 * - + col2 FROM tab2
----
-1640
-2378
-943

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1407
SELECT ALL CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) AS col2, COUNT( * ) * + 32 AS col0 FROM tab1 cor0
----
NULL
96

skipif mysql # not compatible
query II rowsort label-1407
SELECT ALL CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2, COUNT ( * ) * + 32 AS col0 FROM tab1 cor0
----
NULL
96

query I rowsort
SELECT - 99 * - 23 + 7 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 75bc8a46bb0f16a044da419c2e5fa0be

onlyif mysql # aggregate syntax: 
query I rowsort label-1409
SELECT ( MAX( + - 54 ) ) FROM tab2
----
-54

skipif mysql # not compatible
query I rowsort label-1409
SELECT ( MAX ( + - 54 ) ) FROM tab2
----
-54

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

skipif mysql # not compatible
query I rowsort label-1410
SELECT CAST ( NULL AS INTEGER ) + + + 0 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 + - col0 * - col1 + + 88 <> NULL
----

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

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

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

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

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

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

query I rowsort
SELECT col0 * - + col0 + - + col0 AS col1 FROM tab0
----
-240
-7656
-9506

query I rowsort
SELECT 93 + + col1 - + - 99 * ( + 14 ) FROM tab0
----
1480
1500
1560

onlyif mysql # aggregate syntax: 
query I rowsort label-1417
SELECT - 67 + + 78 * + 78 * 1 + - COUNT( * ) AS col2 FROM tab1
----
6014

skipif mysql # not compatible
query I rowsort label-1417
SELECT - 67 + + 78 * + 78 * 1 + - COUNT ( * ) AS col2 FROM tab1
----
6014

onlyif mysql # aggregate syntax: 
query I rowsort label-1418
SELECT + MIN( + col1 ) + + + 57 FROM tab0
----
58

skipif mysql # not compatible
query I rowsort label-1418
SELECT + MIN ( + col1 ) + + + 57 FROM tab0
----
58

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

skipif mysql # not compatible
query I rowsort label-1419
SELECT COUNT ( * ) + - 32 + - - 7 FROM tab2
----
-22

query I rowsort
SELECT col0 * - 93 + + - col0 AS col2 FROM tab0
----
-1410
-8178
-9118

onlyif mysql # aggregate syntax: 
query I rowsort label-1421
SELECT ALL COUNT( * ) + COUNT( * ) + - + 2 AS col2 FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-1421
SELECT ALL COUNT ( * ) + COUNT ( * ) + - + 2 AS col2 FROM tab0
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1422
SELECT - 53 + - 50 + + 79 + + 85 * + + col0 * - CAST( + - 81 AS SIGNED ) * + col1 AS col1 FROM tab1
----
2926101
29447121
4915866

skipif mysql # not compatible
query I rowsort label-1422
SELECT - 53 + - 50 + + 79 + + 85 * + + col0 * - CAST ( + - 81 AS INTEGER ) * + col1 AS col1 FROM tab1
----
2926101
29447121
4915866

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1423
SELECT DISTINCT - - col0 FROM tab2 WHERE NOT NULL BETWEEN + 63 * + - 13 + + - col2 + - + 54 - CAST( - col1 AS SIGNED ) AND - + col0 - + col1
----

skipif mysql # not compatible
query I rowsort label-1423
SELECT DISTINCT - - col0 FROM tab2 WHERE NOT NULL BETWEEN + 63 * + - 13 + + - col2 + - + 54 - CAST ( - col1 AS INTEGER ) AND - + col0 - + col1
----

query I rowsort
SELECT + 1 + - - col2 FROM tab2
----
24
41
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1425
SELECT - - ( + 46 ) / - + 79 * - AVG ( ALL col0 ) * - - 17 * + + COUNT( - + col2 ) - + 73 FROM tab0 WHERE NULL <= - - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-1425
SELECT - - ( + 46 ) / - + 79 * - AVG ( ALL col0 ) * - - 17 * + + COUNT ( - + col2 ) - + 73 FROM tab0 WHERE NULL <= - - 22
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1427
SELECT + CAST( + + 56 AS SIGNED ) DIV col0 * + col2 AS col0 FROM tab0 AS cor0
----
0
0
141

skipif mysql # not compatible
query I rowsort label-1427
SELECT + CAST ( + + 56 AS INTEGER ) / col0 * + col2 AS col0 FROM tab0 AS cor0
----
0
0
141

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col2 + 41 * - - col1 + col2 col0, 15 FROM tab1 AS cor0
----
1927
15
205
15
574
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1430
SELECT COUNT( * ) - - + 18 FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-1430
SELECT COUNT ( * ) - - + 18 FROM tab1
----
21

query I rowsort
SELECT + col1 * - + col1 - + - col0 * col0 FROM tab2
----
-1833
-485
1136

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE NOT col2 < ( - col1 )
----
23
40
58

query I rowsort
SELECT DISTINCT + 37 * + 90 FROM tab2
----
3330

query I rowsort
SELECT ALL + col0 * + + col0 FROM tab1
----
2601
7225
8281

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

query I rowsort
SELECT DISTINCT col0 * + + 89 + - 77 FROM tab2 cor0
----
4017
5619
6598

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL >= 1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1438
SELECT ALL + MIN( DISTINCT - - col2 ) * + - 20 FROM tab1 AS cor0
----
-1180

skipif mysql # not compatible
query I rowsort label-1438
SELECT ALL + MIN ( DISTINCT - - col2 ) * + - 20 FROM tab1 AS cor0
----
-1180

onlyif mysql # aggregate syntax: 
query I rowsort label-1439
SELECT ALL + + COUNT( * ) * 19 FROM tab2 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-1439
SELECT ALL + + COUNT ( * ) * 19 FROM tab2 AS cor0
----
57

query I rowsort
SELECT DISTINCT 70 * + 47 AS col1 FROM tab0 AS cor0
----
3290

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1442
SELECT ALL - CAST( NULL AS SIGNED ) col0, CAST( NULL AS SIGNED ) + col1 FROM tab1 cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1443
SELECT DISTINCT + 25 AS col0, COUNT( + - 29 ) AS col0 FROM tab0
----
25
3

skipif mysql # not compatible
query II rowsort label-1443
SELECT DISTINCT + 25 AS col0, COUNT ( + - 29 ) AS col0 FROM tab0
----
25
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1444
SELECT ALL - 14 DIV - col2 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1444
SELECT ALL - 14 / - col2 AS col0 FROM tab1
----
0
0
0

query II rowsort
SELECT ALL - col0 AS col1, + ( col1 ) AS col1 FROM tab2
----
-46
51
-64
77
-75
67

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 = - 67 * - 85 + - ( - col0 ) + + 27 * - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col0 AS col1, 21 AS col2 FROM tab2
----
46
21
64
21
75
21

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1452
SELECT - col1 AS col1, CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-51
NULL
-67
NULL
-77
NULL

skipif mysql # not compatible
query II rowsort label-1452
SELECT - col1 AS col1, CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-51
NULL
-67
NULL
-77
NULL

query II rowsort
SELECT ALL - + ( col2 ) AS col1, col2 + - 89 + + 60 * + col0 FROM tab1 AS cor0
----
-59
5070
-68
5439
-96
3067

query I rowsort
SELECT col2 * - 35 - - col0 AS col2 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
-1630
-263
-3368

query I rowsort
SELECT + col0 + + 70 * col0 AS col1 FROM tab2 AS cor0
----
3266
4544
5325

onlyif mysql # DIV for integer division: 
query I rowsort label-1456
SELECT ALL + col2 DIV + - 26 + 75 + col2 FROM tab0 AS cor0
----
121
171
85

skipif mysql # not compatible
query I rowsort label-1456
SELECT ALL + col2 / + - 26 + 75 + col2 FROM tab0 AS cor0
----
121
171
85

query I rowsort
SELECT DISTINCT + + col0 * + - col2 + - + col0 + col1 * - col0 FROM tab0 AS cor0
----
-1935
-2784
-9797

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1459
SELECT - MIN( DISTINCT - col0 ) AS col2, + 83 * 18 FROM tab2 AS cor0
----
75
1494

skipif mysql # not compatible
query II rowsort label-1459
SELECT - MIN ( DISTINCT - col0 ) AS col2, + 83 * 18 FROM tab2 AS cor0
----
75
1494

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1461
SELECT ALL - + col0 DIV + col2 + ( - col1 ) + - col2 * + + col1 FROM tab0 cor0
----
-100
-239
-3888

skipif mysql # not compatible
query I rowsort label-1461
SELECT ALL - + col0 / + col2 + ( - col1 ) + - col2 * + + col1 FROM tab0 cor0
----
-100
-239
-3888

query I rowsort
SELECT DISTINCT + col2 + - 2 + 23 * + 61 FROM tab1
----
1460
1469
1497

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1464
SELECT ALL + 4 * + + COUNT( * ) - 83 + COUNT( * ) * 26 * + COUNT( * ) AS col1, COUNT( * ) * + + SUM( DISTINCT - col0 ) * + ( 30 ) AS col0 FROM tab0
----
163
-17910

skipif mysql # not compatible
query II rowsort label-1464
SELECT ALL + 4 * + + COUNT ( * ) - 83 + COUNT ( * ) * 26 * + COUNT ( * ) AS col1, COUNT ( * ) * + + SUM ( DISTINCT - col0 ) * + ( 30 ) AS col0 FROM tab0
----
163
-17910

query I rowsort
SELECT - ( + 30 ) - - 11 - + + ( - col0 ) AS col2 FROM tab1
----
32
66
72

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

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT - 7 < + + col2 * col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query II rowsort
SELECT DISTINCT + + col1, col0 FROM tab0 AS cor0 WHERE - col0 - + col2 IS NOT NULL
----
1
97
21
87
81
15

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 * + - 51 * + col2 + col1 + + ( + col1 ) = + + col1
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( 47 ) = NULL
----

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

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

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

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

query I rowsort
SELECT ALL - ( + - 10 ) * col1 FROM tab1
----
140
470
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1478
SELECT ALL - ( 34 ) * + CAST( NULL AS SIGNED ) / + ( 82 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1478
SELECT ALL - ( 34 ) * + CAST ( NULL AS INTEGER ) / + ( 82 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + - - col1 * + col2 + - 80 + col1 FROM tab0 AS cor0
----
172
21
3889

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1481
SELECT ALL CAST( NULL AS SIGNED ) + - + COUNT( * ) + - AVG ( DISTINCT + col1 ) * + COUNT( * ) FROM tab1 cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1481
SELECT ALL CAST ( NULL AS INTEGER ) + - + COUNT ( * ) + - AVG ( DISTINCT + col1 ) * + COUNT ( * ) FROM tab1 cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1482
SELECT 12 * - 74 + + ( col1 ) DIV + col1 - + col0 AS col0, + ( - - ( - col2 ) ) AS col0 FROM tab0 AS cor0
----
-902
-47
-974
-10
-984
-99

skipif mysql # not compatible
query II rowsort label-1482
SELECT 12 * - 74 + + ( col1 ) / + col1 - + col0 AS col0, + ( - - ( - col2 ) ) AS col0 FROM tab0 AS cor0
----
-902
-47
-974
-10
-984
-99

query I rowsort
SELECT DISTINCT + ( - col1 ) + - col2 * - + 58 FROM tab0
----
2645
559
5741

onlyif mysql # aggregate syntax: 
query I rowsort label-1484
SELECT - 41 * - COUNT( * ) FROM tab1
----
123

skipif mysql # not compatible
query I rowsort label-1484
SELECT - 41 * - COUNT ( * ) FROM tab1
----
123

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

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

query I rowsort
SELECT ALL - - col1 + + 17 FROM tab2 AS cor0
----
68
84
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1487
SELECT + 42 DIV COUNT( * ) + 53 AS col0 FROM tab0 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-1487
SELECT + 42 / COUNT ( * ) + 53 AS col0 FROM tab0 AS cor0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1488
SELECT DISTINCT + SUM( + + 74 ) FROM tab2
----
222

skipif mysql # not compatible
query I rowsort label-1488
SELECT DISTINCT + SUM ( + + 74 ) FROM tab2
----
222

query II rowsort
SELECT ALL 81 + + + ( - 10 ), - 39 AS col1 FROM tab1
----
71
-39
71
-39
71
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-1490
SELECT DISTINCT + 91 - + COUNT( * ) AS col0 FROM tab2
----
88

skipif mysql # not compatible
query I rowsort label-1490
SELECT DISTINCT + 91 - + COUNT ( * ) AS col0 FROM tab2
----
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 62 ) + - col0 col0 FROM tab1
----
-113
-147
-153

query I rowsort
SELECT DISTINCT col2 + - col2 * col2 * col1 AS col1 FROM tab0
----
-178882
-2090
-9702

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1494
SELECT + COUNT( * ) * + COUNT( * ) + + - 90 FROM tab2
----
-81

skipif mysql # not compatible
query I rowsort label-1494
SELECT + COUNT ( * ) * + COUNT ( * ) + + - 90 FROM tab2
----
-81

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1496
SELECT MAX ( DISTINCT - + 29 ) col2 FROM tab2, tab1 AS cor0
----
-29

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1498
SELECT DISTINCT + col2 AS col2 FROM tab2 WHERE NOT - ( + - col1 ) * - CAST( NULL AS SIGNED ) BETWEEN NULL AND + col2
----

skipif mysql # not compatible
query I rowsort label-1498
SELECT DISTINCT + col2 AS col2 FROM tab2 WHERE NOT - ( + - col1 ) * - CAST ( NULL AS INTEGER ) BETWEEN NULL AND + col2
----

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

query I rowsort
SELECT ( - 8 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1504
SELECT - + MAX( - - 99 ) * 89 FROM tab2 AS cor0 WHERE NOT 84 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1504
SELECT - + MAX ( - - 99 ) * 89 FROM tab2 AS cor0 WHERE NOT 84 IS NOT NULL
----
NULL

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1511
SELECT DISTINCT - COUNT( 97 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1511
SELECT DISTINCT - COUNT ( 97 ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1512
SELECT ( + CAST( NULL AS SIGNED ) ) * - CAST( NULL AS DECIMAL ) + + 9 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1512
SELECT ( + CAST ( NULL AS INTEGER ) ) * - CAST ( NULL AS REAL ) + + 9 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT ALL col0 * + + 27 FROM tab0
----
2349
2619
405

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

query III rowsort
SELECT * FROM tab1 WHERE + - 63 * 6 + - col1 <> NULL
----

query I rowsort
SELECT + col0 FROM tab0 WHERE col2 IS NOT NULL
----
15
87
97

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1518
SELECT * FROM tab2 WHERE - CAST( + ( + 93 ) AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-1518
SELECT * FROM tab2 WHERE - CAST ( + ( + 93 ) AS REAL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1519
SELECT ALL - + MIN( + col2 ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-1519
SELECT ALL - + MIN ( + col2 ) FROM tab2 AS cor0
----
-23

query I rowsort
SELECT + col2 * + 27 + - - col0 + - col0 FROM tab1 AS cor0
----
1593
1836
2592

onlyif mysql # DIV for integer division: 
query I rowsort label-1521
SELECT col0 DIV + + 21 AS col1 FROM tab2 AS cor0
----
2
3
3

skipif mysql # not compatible
query I rowsort label-1521
SELECT col0 / + + 21 AS col1 FROM tab2 AS cor0
----
2
3
3

query I rowsort
SELECT + col1 * + 85 FROM tab1 AS cor0
----
1190
3995
425

query I rowsort
SELECT DISTINCT + 16 + col0 FROM tab0 AS cor0
----
103
113
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1524
SELECT COUNT( * ) - 50 DIV - SUM( DISTINCT - col2 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1524
SELECT COUNT ( * ) - 50 / - SUM ( DISTINCT - col2 ) FROM tab1
----
3

query I rowsort
SELECT - - col2 + + 45 AS col2 FROM tab1 WHERE NULL IS NULL
----
104
113
141

query I rowsort
SELECT DISTINCT ( - col0 ) - - - col1 * - 42 AS col0 FROM tab0
----
-55
3387
795

query I rowsort
SELECT + 72 - 19 AS col0 FROM tab0
----
53
53
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 AS col1, - col0 col1 FROM tab2
----
-51
-46
-67
-75
-77
-64

query I rowsort
SELECT ALL + - col2 AS col0 FROM tab2 WHERE - + 8 + + col1 = + - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1530
SELECT DISTINCT + CAST( NULL AS SIGNED ) / + - 90, + col0 AS col2 FROM tab2
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-1530
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + - 90, + col0 AS col2 FROM tab2
----
NULL
46
NULL
64
NULL
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1531
SELECT ALL col0 * - - 13 FROM tab0 WHERE NOT - CAST( NULL AS SIGNED ) IS NOT NULL
----
1131
1261
195

skipif mysql # not compatible
query I rowsort label-1531
SELECT ALL col0 * - - 13 FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL
----
1131
1261
195

query I rowsort
SELECT - 29 * + col1 AS col2 FROM tab1 AS cor0
----
-1363
-145
-406

query I rowsort
SELECT + col0 AS col1 FROM tab2 cor0 WHERE NOT - col0 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1534
SELECT + ( - col1 ) DIV + 10 + col2 AS col2 FROM tab2 AS cor0
----
18
33
52

skipif mysql # not compatible
query I rowsort label-1534
SELECT + ( - col1 ) / + 10 + col2 AS col2 FROM tab2 AS cor0
----
18
33
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 84 col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < 72
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1537
SELECT CAST( NULL AS SIGNED ) / - col2 * + 76 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----

skipif mysql # not compatible
query I rowsort label-1537
SELECT CAST ( NULL AS INTEGER ) / - col2 * + 76 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1538
SELECT - CAST( + - COUNT( * ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1538
SELECT - CAST ( + - COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND - + col1
----

query I rowsort
SELECT col2 * + 9 AS col2 FROM tab1
----
531
612
864

query I rowsort
SELECT 43 + - col1 FROM tab2 WHERE ( NOT NULL >= + 27 / - col0 * + + col1 * + + 4 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1542
SELECT ALL + COUNT( + + 73 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1542
SELECT ALL + COUNT ( + + 73 ) AS col1 FROM tab2
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 >= + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1544
SELECT DISTINCT SUM( col1 ) AS col0 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-1544
SELECT DISTINCT SUM ( col1 ) AS col0 FROM tab1
----
66

query I rowsort
SELECT ALL col2 + - - col2 * 66 AS col0 FROM tab1 cor0
----
3953
4556
6432

onlyif mysql # aggregate syntax: 
query I rowsort label-1546
SELECT + SUM( ALL + - col1 ) col0 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1546
SELECT + SUM ( ALL + - col1 ) col0 FROM tab2 AS cor0
----
-195

query I rowsort
SELECT ALL + 12 * + 17 FROM tab1
----
204
204
204

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1548
SELECT 68 AS col2 FROM tab1 WHERE NOT col1 NOT IN ( + ( - CAST( NULL AS SIGNED ) ) * + col0 )
----

skipif mysql # not compatible
query I rowsort label-1548
SELECT 68 AS col2 FROM tab1 WHERE NOT col1 NOT IN ( + ( - CAST ( NULL AS INTEGER ) ) * + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 = 58 * col0 + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( col0 ) FROM tab1 WHERE NOT col1 - + col1 NOT BETWEEN + 89 AND + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1551
SELECT - 76 DIV - 27 AS col0 FROM tab1
----
2
2
2

skipif mysql # not compatible
query I rowsort label-1551
SELECT - 76 / - 27 AS col0 FROM tab1
----
2
2
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1552
SELECT COUNT( * ) + + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1552
SELECT COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT 2 AS col1 FROM tab2 WHERE ( NULL ) = NULL
----

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 WHERE ( - col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1555
SELECT ALL + SUM( col1 ) AS col2 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-1555
SELECT ALL + SUM ( col1 ) AS col2 FROM tab2
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-1556
SELECT DISTINCT - COUNT( * ) FROM tab1 WHERE NOT col0 - col2 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1556
SELECT DISTINCT - COUNT ( * ) FROM tab1 WHERE NOT col0 - col2 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1557
SELECT ALL MAX( ALL col0 ) AS col0 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-1557
SELECT ALL MAX ( ALL col0 ) AS col0 FROM tab1
----
91

query I rowsort
SELECT 47 * + col1 FROM tab0
----
3807
47
987

query I rowsort
SELECT ALL 64 * col2 AS col2 FROM tab0
----
3008
6336
640

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN + col1 * - col2 AND ( NULL )
----

query I rowsort
SELECT ALL - ( ( col0 ) ) AS col1 FROM tab2
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-1562
SELECT + COUNT( * ) AS col0 FROM tab2 WHERE NOT ( + 25 + + col1 ) IN ( - col2 * 20 )
----
3

skipif mysql # not compatible
query I rowsort label-1562
SELECT + COUNT ( * ) AS col0 FROM tab2 WHERE NOT ( + 25 + + col1 ) IN ( - col2 * 20 )
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + 56 col1 FROM tab0
----
143
153
71

onlyif mysql # aggregate syntax: 
query I rowsort label-1564
SELECT - SUM( DISTINCT + ( - 74 ) ) + - 25 AS col0 FROM tab0
----
49

skipif mysql # not compatible
query I rowsort label-1564
SELECT - SUM ( DISTINCT + ( - 74 ) ) + - 25 AS col0 FROM tab0
----
49

query I rowsort
SELECT ALL - 92 * col2 AS col1 FROM tab1 AS cor0
----
-5428
-6256
-8832

query I rowsort
SELECT + col2 + 64 FROM tab1 AS cor0 WHERE NOT col2 <= - 14
----
123
132
160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 91 col0 FROM tab2 AS cor0
----
-4186
-5824
-6825

query I rowsort
SELECT ALL ( 80 ) FROM tab2 AS cor0
----
80
80
80

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 28 + - col1 / col2 IS NOT NULL
----

query I rowsort
SELECT col2 * col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
4896
5015
6188

onlyif mysql # DIV for integer division: 
query I rowsort label-1571
SELECT ALL col0 DIV - 36 AS col1 FROM tab1 AS cor0
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-1571
SELECT ALL col0 / - 36 AS col1 FROM tab1 AS cor0
----
-1
-2
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-1572
SELECT ALL ( + col0 ) DIV col2 AS col0 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-1572
SELECT ALL ( + col0 ) / col2 AS col0 FROM tab1
----
0
1
1

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 - - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1574
SELECT + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0
----
9

skipif mysql # not compatible
query I rowsort label-1574
SELECT + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1575
SELECT DISTINCT + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1
----
9

skipif mysql # not compatible
query I rowsort label-1575
SELECT DISTINCT + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1
----
9

query I rowsort
SELECT - col0 * col2 + col2 FROM tab0 cor0
----
-658
-860
-9504

query I rowsort
SELECT col2 + - col2 * - col0 FROM tab0 AS cor0
----
752
880
9702

query I rowsort
SELECT - 87 + col0 * 30 AS col2 FROM tab1 AS cor0
----
1443
2463
2643

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1579
SELECT ALL CAST( NULL AS SIGNED ) + - SUM( + col2 ) FROM tab2 AS cor0 WHERE NULL NOT IN ( 90 * - 13 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1579
SELECT ALL CAST ( NULL AS INTEGER ) + - SUM ( + col2 ) FROM tab2 AS cor0 WHERE NULL NOT IN ( 90 * - 13 )
----
NULL

query I rowsort
SELECT DISTINCT - col2 FROM tab1 AS cor0 WHERE ( + 43 ) NOT IN ( + col1 * col1 )
----
-59
-68
-96

query I rowsort
SELECT - ( col0 ) + col1 * col0 FROM tab1 AS cor0
----
340
4186
663

query I rowsort
SELECT DISTINCT col2 * ( + 29 * col2 ) AS col1 FROM tab2 AS cor0
----
15341
46400
97556

query I rowsort
SELECT + - col1 + - col2 * col2 FROM tab2 AS cor0
----
-1677
-3431
-580

onlyif mysql # aggregate syntax: 
query I rowsort label-1584
SELECT - COUNT( * ) + + 33 AS col1 FROM tab2 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-1584
SELECT - COUNT ( * ) + + 33 AS col1 FROM tab2 AS cor0
----
30

query I rowsort
SELECT - 99 * col1 + - col2 FROM tab1 AS cor0
----
-1482
-4721
-554

onlyif mysql # DIV for integer division: 
query I rowsort label-1586
SELECT DISTINCT col0 DIV - 1 + col0 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1586
SELECT DISTINCT col0 / - 1 + col0 AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1587
SELECT + SUM( ALL - col2 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-156

skipif mysql # not compatible
query I rowsort label-1587
SELECT + SUM ( ALL - col2 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-156

query I rowsort
SELECT ALL 26 + + col2 AS col2 FROM tab0 AS cor0 WHERE col2 <> ( - col0 + + col2 * col0 )
----
125
36
73

query I rowsort
SELECT DISTINCT - + col0 * col2 + - 12 FROM tab0 AS cor0
----
-717
-882
-9615

query I rowsort
SELECT col2 AS col2 FROM tab1 WHERE - col1 * + col0 + + col0 * 84 IS NULL
----

query I rowsort
SELECT - 4 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ( 48 ) * - 44 FROM tab2
----
-2112
-2112
-2112

query I rowsort
SELECT DISTINCT - + ( + 29 ) AS col1 FROM tab1 AS cor0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-1594
SELECT COUNT( * ) * 95 FROM tab2 cor0 WHERE ( NULL ) < col0
----
0

skipif mysql # not compatible
query I rowsort label-1594
SELECT COUNT ( * ) * 95 FROM tab2 cor0 WHERE ( NULL ) < col0
----
0

query I rowsort
SELECT + 12 + + - 48 + - col1 FROM tab2 AS cor0
----
-103
-113
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col0 col0 FROM tab2 AS cor0 WHERE col1 * - col0 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col0 + 44 ) NOT IN ( + 26 / + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1598
SELECT ALL col2 * - - CAST( + 93 AS SIGNED ) * + col1 + + 29 FROM tab1
----
125021
27464
297257

skipif mysql # not compatible
query I rowsort label-1598
SELECT ALL col2 * - - CAST ( + 93 AS INTEGER ) * + col1 + + 29 FROM tab1
----
125021
27464
297257

query I rowsort
SELECT DISTINCT - 64 + 75 FROM tab0
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1600
SELECT ALL + CAST( NULL AS SIGNED ) + + col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1600
SELECT ALL + CAST ( NULL AS INTEGER ) + + col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 37 + + + col1 FROM tab1
----
42
51
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1602
SELECT + MIN( DISTINCT 99 ) AS col0 FROM tab2
----
99

skipif mysql # not compatible
query I rowsort label-1602
SELECT + MIN ( DISTINCT 99 ) AS col0 FROM tab2
----
99

query I rowsort
SELECT ALL - + col1 - + + 11 + col1 FROM tab0 AS cor0
----
-11
-11
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-1604
SELECT ALL SUM( - - col2 ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-1604
SELECT ALL SUM ( - - col2 ) FROM tab2 AS cor0
----
121

query I rowsort
SELECT ALL - - 28 FROM tab2 cor0 WHERE + col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 24 col2 FROM tab0 AS cor0 WHERE NOT - col2 NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 AS col1, 60 col1 FROM tab2 AS cor0
----
51
60
67
60
77
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1608
SELECT DISTINCT + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1608
SELECT DISTINCT + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT 56 * col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
2632
280
784

query I rowsort
SELECT - 66 AS col1 FROM tab0 WHERE NOT + 0 IS NOT NULL
----

query II rowsort
SELECT + 64 * - col0 AS col0, col0 AS col2 FROM tab2
----
-2944
46
-4096
64
-4800
75

query I rowsort
SELECT DISTINCT - col0 * + 10 AS col1 FROM tab1
----
-510
-850
-910

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL > ( ( + + col1 ) )
----

query I rowsort
SELECT DISTINCT 31 * - 79 * - 18 AS col0 FROM tab0
----
44082

query I rowsort
SELECT - - col2 FROM tab1 WHERE NOT + col1 <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1616
SELECT DISTINCT COUNT( * ) + - MIN( + col1 ) FROM tab2 AS cor0 WHERE NOT col0 - CAST( NULL AS SIGNED ) BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1616
SELECT DISTINCT COUNT ( * ) + - MIN ( + col1 ) FROM tab2 AS cor0 WHERE NOT col0 - CAST ( NULL AS INTEGER ) BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT ALL 97 * - 78 * + col0 FROM tab0 AS cor0
----
-113490
-658242
-733902

onlyif mysql # DIV for integer division: 
query I rowsort label-1618
SELECT + - col2 * 45 DIV 1 * + col2 FROM tab0 AS cor0
----
-441045
-4500
-99405

skipif mysql # not compatible
query I rowsort label-1618
SELECT + - col2 * 45 / 1 * + col2 FROM tab0 AS cor0
----
-441045
-4500
-99405

query I rowsort
SELECT DISTINCT + 36 * + col0 AS col2 FROM tab2
----
1656
2304
2700

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1620
SELECT ALL COUNT( * ) DIV ( - - COUNT( * ) ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1620
SELECT ALL COUNT ( * ) / ( - - COUNT ( * ) ) FROM tab0 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1621
SELECT ALL col2 DIV - ( + col0 ) FROM tab0 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-1621
SELECT ALL col2 / - ( + col0 ) FROM tab0 AS cor0
----
-1
-3
0

query I rowsort
SELECT + col0 * - - col2 FROM tab0 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1623
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE - col1 * - - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1623
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE - col1 * - - col0 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1624
SELECT ALL + COUNT( * ) + - 15 FROM tab1 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-1624
SELECT ALL + COUNT ( * ) + - 15 FROM tab1 AS cor0
----
-12

query I rowsort
SELECT 58 * + col1 + 87 AS col0 FROM tab2 cor0
----
3045
3973
4553

onlyif mysql # DIV for integer division: 
query I rowsort label-1626
SELECT ALL ( + 47 ) DIV - 9 + col1 + - + col2 + 8 * 15 AS col0 FROM tab0 AS cor0
----
126
149
17

skipif mysql # not compatible
query I rowsort label-1626
SELECT ALL ( + 47 ) / - 9 + col1 + - + col2 + 8 * 15 AS col0 FROM tab0 AS cor0
----
126
149
17

query I rowsort
SELECT - 9 * 66 FROM tab0, tab0 AS cor0
----
9 values hashing to 22666e132673523aadd4903c94ef6930

query I rowsort
SELECT 94 + - 96 * + + col2 AS col1 FROM tab1
----
-5570
-6434
-9122

onlyif mysql # DIV for integer division: 
query I rowsort label-1629
SELECT ALL - ( + + col2 ) + - 22 DIV + - ( col1 ) FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-1629
SELECT ALL - ( + + col2 ) + - 22 / + - ( col1 ) FROM tab2
----
-23
-40
-58

query I rowsort
SELECT DISTINCT col0 + 76 AS col2 FROM tab0
----
163
173
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * + col2 + + 82 + - col0, + col2 col2 FROM tab2
----
1618
40
3371
58
565
23

onlyif mysql # DIV for integer division: 
query I rowsort label-1632
SELECT col2 + - 71 DIV + + col2 AS col1 FROM tab0
----
3
46
99

skipif mysql # not compatible
query I rowsort label-1632
SELECT col2 + - 71 / + + col2 AS col1 FROM tab0
----
3
46
99

query I rowsort
SELECT DISTINCT - 75 + - col0 FROM tab2
----
-121
-139
-150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1634
SELECT - CAST( NULL AS SIGNED ) + 44 - - COUNT( * ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1634
SELECT - CAST ( NULL AS INTEGER ) + 44 - - COUNT ( * ) AS col1 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - 36 col1 FROM tab1
----
15
49
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1636
SELECT ALL + SUM( - 60 ) AS col1 FROM tab1, tab0 AS cor0
----
-540

skipif mysql # not compatible
query I rowsort label-1636
SELECT ALL + SUM ( - 60 ) AS col1 FROM tab1, tab0 AS cor0
----
-540

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1638
SELECT MAX( + + col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-1638
SELECT MAX ( + + col1 ) FROM tab2 AS cor0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1639
SELECT 70 col0 FROM tab2 AS cor0 WHERE CAST( + + col2 AS SIGNED ) IS NOT NULL
----
70
70
70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1639
SELECT 70 col0 FROM tab2 AS cor0 WHERE CAST ( + + col2 AS INTEGER ) IS NOT NULL
----
70
70
70

onlyif mysql # DIV for integer division: 
query I rowsort label-1640
SELECT - 85 DIV + col1 + - + 51 FROM tab0 cor0
----
-136
-52
-55

skipif mysql # not compatible
query I rowsort label-1640
SELECT - 85 / + col1 + - + 51 FROM tab0 cor0
----
-136
-52
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-1641
SELECT - ( COUNT( * ) ) * + - COUNT( * ) * 23 AS col1 FROM tab2 AS cor0
----
207

skipif mysql # not compatible
query I rowsort label-1641
SELECT - ( COUNT ( * ) ) * + - COUNT ( * ) * 23 AS col1 FROM tab2 AS cor0
----
207

onlyif mysql # aggregate syntax: 
query I rowsort label-1642
SELECT COUNT( * ) * - COUNT( * ) - + 36 FROM tab0
----
-45

skipif mysql # not compatible
query I rowsort label-1642
SELECT COUNT ( * ) * - COUNT ( * ) - + 36 FROM tab0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-1643
SELECT ALL + MAX( DISTINCT + - col1 ) - - 86 col1 FROM tab2
----
35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1643
SELECT ALL + MAX ( DISTINCT + - col1 ) - - 86 col1 FROM tab2
----
35

query I rowsort
SELECT DISTINCT col2 - - ( + col1 ) FROM tab2
----
117
125
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1645
SELECT DISTINCT col0 + + - CAST( NULL AS SIGNED ) + col2 * - col2 * + - 47 * col1 * col0 + + col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1645
SELECT DISTINCT col0 + + - CAST ( NULL AS INTEGER ) + col2 * - col2 * + - 47 * col1 * col0 + + col1 FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - 40 * - col1 + - - ( col1 ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1647
SELECT COUNT( * ) * + + COUNT( * ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-1647
SELECT COUNT ( * ) * + + COUNT ( * ) FROM tab0 AS cor0
----
9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL <= NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1649
SELECT DISTINCT - COUNT( * ) * + 98 FROM tab2 AS cor0
----
-294

skipif mysql # not compatible
query I rowsort label-1649
SELECT DISTINCT - COUNT ( * ) * + 98 FROM tab2 AS cor0
----
-294

query I rowsort
SELECT col1 * + col1 - + 65 AS col2 FROM tab2 AS cor0
----
2536
4424
5864

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL >= + col2 - 93
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1652
SELECT + ( - COUNT( * ) ) * COUNT( * ), COUNT( * ) AS col2 FROM tab1 AS cor0
----
-9
3

skipif mysql # not compatible
query II rowsort label-1652
SELECT + ( - COUNT ( * ) ) * COUNT ( * ), COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-9
3

query I rowsort
SELECT - - ( + 4 ) AS col2 FROM tab0 AS cor0
----
4
4
4

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1654
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-1654
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) >= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1655
SELECT DISTINCT + col2 + - 7 AS col0 FROM tab2 cor0 WHERE NOT NULL > - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-1655
SELECT DISTINCT + col2 + - 7 AS col0 FROM tab2 cor0 WHERE NOT NULL > - CAST ( NULL AS REAL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1656
SELECT - CAST( + + 53 AS SIGNED ) AS col0 FROM tab1
----
-53
-53
-53

skipif mysql # not compatible
query I rowsort label-1656
SELECT - CAST ( + + 53 AS INTEGER ) AS col0 FROM tab1
----
-53
-53
-53

onlyif mysql # DIV for integer division: 
query III rowsort label-1657
SELECT DISTINCT 82 AS col2, - 43 + + col1 DIV + col0 * col2 * - 55 AS col1, + ( + col2 ) * - col1 FROM tab1
----
9 values hashing to d6b302ef0ff70a6fbd81d2534398983f

skipif mysql # not compatible
query III rowsort label-1657
SELECT DISTINCT 82 AS col2, - 43 + + col1 / + col0 * col2 * - 55 AS col1, + ( + col2 ) * - col1 FROM tab1
----
9 values hashing to d6b302ef0ff70a6fbd81d2534398983f

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1658
SELECT CAST( + 70 AS SIGNED ) AS col2 FROM tab2
----
70
70
70

skipif mysql # not compatible
query I rowsort label-1658
SELECT CAST ( + 70 AS INTEGER ) AS col2 FROM tab2
----
70
70
70

query I rowsort
SELECT - ( ( col2 ) ) + col2 * 92 AS col2 FROM tab2 WHERE NOT - ( + 67 ) < NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL >= + 14
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1661
SELECT + 5 * - + COUNT( * ) col0 FROM tab2 WHERE NOT + col2 NOT IN ( - - col0 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1661
SELECT + 5 * - + COUNT ( * ) col0 FROM tab2 WHERE NOT + col2 NOT IN ( - - col0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1662
SELECT - COUNT( + 92 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1662
SELECT - COUNT ( + 92 ) AS col2 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1663
SELECT - - MIN( ALL col0 ) col2 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1663
SELECT - - MIN ( ALL col0 ) col2 FROM tab2 AS cor0
----
46

query I rowsort
SELECT ( 35 ) * + + col1 * - col1 * + col0 + + ( - + col1 ) FROM tab1 AS cor0
----
-349874
-7035712
-74380

query I rowsort
SELECT DISTINCT 45 FROM tab2 cor0 WHERE 80 * - - col1 BETWEEN + col0 + + - 15 / - col0 * - - col0 * col0 * - col1 AND col1
----

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 AS cor0 WHERE NOT - col2 * 37 / + col0 > ( + + 39 )
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1667
SELECT DISTINCT + col1 * - + CAST( col1 AS SIGNED ) AS col1 FROM tab2
----
-2601
-4489
-5929

skipif mysql # not compatible
query I rowsort label-1667
SELECT DISTINCT + col1 * - + CAST ( col1 AS INTEGER ) AS col1 FROM tab2
----
-2601
-4489
-5929

query II rowsort
SELECT - col0 + + col1, - col2 AS col1 FROM tab0 AS cor0
----
-66
-10
-96
-99
66
-47

query I rowsort
SELECT ALL col2 * + col0 * - + 58 AS col2 FROM tab0 AS cor0
----
-40890
-50460
-556974

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1670
SELECT - CAST( + COUNT( * ) AS SIGNED ) + - - 33 FROM tab0 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-1670
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) + - - 33 FROM tab0 AS cor0
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-1671
SELECT - col1 * + 75 - ( - - col1 ) DIV + - col1 + - col2 + + col2 FROM tab1 cor0
----
-1049
-3524
-374

skipif mysql # not compatible
query I rowsort label-1671
SELECT - col1 * + 75 - ( - - col1 ) / + - col1 + - col2 + + col2 FROM tab1 cor0
----
-1049
-3524
-374

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1672
SELECT ALL + + 88 DIV - SUM( - - col0 ) + MAX( DISTINCT col1 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-1672
SELECT ALL + + 88 / - SUM ( - - col0 ) + MAX ( DISTINCT col1 ) FROM tab1 AS cor0
----
47

query I rowsort
SELECT ALL - col0 AS col0 FROM tab0 AS cor0 WHERE NULL >= NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col1 + + col1 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 + + ( + + 77 ) AS col0 FROM tab0 AS cor0
----
-10
-20
62

onlyif mysql # aggregate syntax: 
query I rowsort label-1676
SELECT - + SUM( + - 87 ) AS col0 FROM tab0 AS cor0
----
261

skipif mysql # not compatible
query I rowsort label-1676
SELECT - + SUM ( + - 87 ) AS col0 FROM tab0 AS cor0
----
261

query I rowsort
SELECT - ( - col2 ) AS col2 FROM tab2 WHERE NULL > NULL
----

query I rowsort
SELECT - 20 * + - 48 * + col1 FROM tab2
----
48960
64320
73920

query III rowsort
SELECT * FROM tab0 WHERE - 43 * col2 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1680
SELECT ALL - col1 + - + CAST( col2 AS SIGNED ) AS col0, col0 col2 FROM tab0
----
-100
97
-128
15
-31
87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1680
SELECT ALL - col1 + - + CAST ( col2 AS INTEGER ) AS col0, col0 col2 FROM tab0
----
-100
97
-128
15
-31
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1681
SELECT + + col1 + 33 * + + 10 FROM tab1 WHERE - col0 + + - CAST( - 41 AS SIGNED ) < + col2
----
335
344
377

skipif mysql # not compatible
query I rowsort label-1681
SELECT + + col1 + 33 * + + 10 FROM tab1 WHERE - col0 + + - CAST ( - 41 AS INTEGER ) < + col2
----
335
344
377

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 17 ) col1 FROM tab2
----
17
17
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1683
SELECT DISTINCT - MAX( DISTINCT - col0 ) + 96 FROM tab2
----
142

skipif mysql # not compatible
query I rowsort label-1683
SELECT DISTINCT - MAX ( DISTINCT - col0 ) + 96 FROM tab2
----
142

query I rowsort
SELECT + col0 - col1 + - + 78 * - col0 AS col0 FROM tab1
----
4015
6710
7142

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - col0 col1 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 * - + 52 + - ( col0 ) + + - 83 AS col0 FROM tab0 AS cor0
----
4354
4864
682

onlyif mysql # aggregate syntax: 
query I rowsort label-1687
SELECT ALL - 55 + - MAX( DISTINCT col2 ) FROM tab2
----
-113

skipif mysql # not compatible
query I rowsort label-1687
SELECT ALL - 55 + - MAX ( DISTINCT col2 ) FROM tab2
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-1688
SELECT ALL - MIN( + 8 ) FROM tab2
----
-8

skipif mysql # not compatible
query I rowsort label-1688
SELECT ALL - MIN ( + 8 ) FROM tab2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-1689
SELECT + COUNT( * ) AS col1 FROM tab1 WHERE NOT + col2 <> 12
----
0

skipif mysql # not compatible
query I rowsort label-1689
SELECT + COUNT ( * ) AS col1 FROM tab1 WHERE NOT + col2 <> 12
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1690
SELECT - COUNT( * ) + - ( - 56 ) * + MAX( DISTINCT + 69 ) + - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
3846

skipif mysql # not compatible
query I rowsort label-1690
SELECT - COUNT ( * ) + - ( - 56 ) * + MAX ( DISTINCT + 69 ) + - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
3846

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1691
SELECT ALL CAST( - 84 AS SIGNED ) col1 FROM tab1
----
-84
-84
-84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1691
SELECT ALL CAST ( - 84 AS INTEGER ) col1 FROM tab1
----
-84
-84
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-1692
SELECT MIN( ALL + + ( col2 ) ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-1692
SELECT MIN ( ALL + + ( col2 ) ) FROM tab0 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1693
SELECT + + COUNT( * ) * COUNT( * ) FROM tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-1693
SELECT + + COUNT ( * ) * COUNT ( * ) FROM tab0 cor0
----
9

query II rowsort
SELECT DISTINCT + 51 AS col2, + col2 AS col0 FROM tab0 AS cor0
----
51
10
51
47
51
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col2 col1, col1 + + col1 - + 16 * - + col1 FROM tab1 cor0
----
59
90
68
846
96
252

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1696
SELECT DISTINCT 51 / col2 / - 57 + - ( col2 ) AS col1, - col0 * - 85 * + col0 col1 FROM tab0 AS cor0 WHERE NOT NULL >= CAST( NULL AS SIGNED ) + 39 + 60
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1696
SELECT DISTINCT 51 / col2 / - 57 + - ( col2 ) AS col1, - col0 * - 85 * + col0 col1 FROM tab0 AS cor0 WHERE NOT NULL >= CAST ( NULL AS INTEGER ) + 39 + 60
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - - col1 * + 29 * - + col0 ) IN ( + col2, col2, + 83 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1698
SELECT 26 DIV + 36 AS col1, + 82 * COUNT( * ) AS col2 FROM tab0
----
0
246

skipif mysql # not compatible
query II rowsort label-1698
SELECT 26 / + 36 AS col1, + 82 * COUNT ( * ) AS col2 FROM tab0
----
0
246

onlyif mysql # aggregate syntax: 
query I rowsort label-1699
SELECT ( SUM( - + col1 ) ) col2 FROM tab2
----
-195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1699
SELECT ( SUM ( - + col1 ) ) col2 FROM tab2
----
-195

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 <= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1701
SELECT col2 * + + CAST( NULL AS DECIMAL ) / - 13 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1701
SELECT col2 * + + CAST ( NULL AS REAL ) / - 13 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * + col1 * - 41 * - col0 AS col1 FROM tab1 AS cor0
----
1028075
11924276
2810304

onlyif mysql # aggregate syntax: 
query I rowsort label-1703
SELECT DISTINCT MAX( ALL col1 ) AS col0 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-1703
SELECT DISTINCT MAX ( ALL col1 ) AS col0 FROM tab1 AS cor0
----
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 + ( - - col2 ) AS col1, col1 col1 FROM tab1 AS cor0
----
21
47
54
5
82
14

query I rowsort
SELECT - col0 + + - ( + - col2 ) FROM tab2 AS cor0
----
-17
-23
-24

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - - col2 * - + 90 + - col0 IS NULL OR NULL BETWEEN NULL AND - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col2 + + 8 * - + ( col0 ) / + - 68, + col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL >= ( 17 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1708
SELECT DISTINCT MAX( ALL col2 ) DIV + 87 + - 8 FROM tab1
----
-7

skipif mysql # not compatible
query I rowsort label-1708
SELECT DISTINCT MAX ( ALL col2 ) / + 87 + - 8 FROM tab1
----
-7

query II rowsort
SELECT DISTINCT col0, col2 * - col2 AS col2 FROM tab1
----
51
-9216
85
-3481
91
-4624

query I rowsort
SELECT DISTINCT - + 60 + - col1 AS col2 FROM tab2 cor0
----
-111
-127
-137

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 - - 80 BETWEEN ( - col1 / + + col2 * col2 ) AND NULL
----

query I rowsort
SELECT + 0 + col2 AS col0 FROM tab1 AS cor0
----
59
68
96

query II rowsort
SELECT ALL + ( ( - + col2 ) ) + 51 AS col1, - col0 FROM tab1 AS cor0
----
-17
-91
-45
-51
-8
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1714
SELECT + ( + CAST( - MAX( ALL col1 ) AS SIGNED ) ) + - 78 FROM tab2 AS cor0
----
-155

skipif mysql # not compatible
query I rowsort label-1714
SELECT + ( + CAST ( - MAX ( ALL col1 ) AS INTEGER ) ) + - 78 FROM tab2 AS cor0
----
-155

onlyif mysql # aggregate syntax: 
query I rowsort label-1715
SELECT + - 69 + MAX( + col1 ) FROM tab1 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-1715
SELECT + - 69 + MAX ( + col1 ) FROM tab1 AS cor0
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1716
SELECT DISTINCT CAST( NULL AS SIGNED ) + - col2 + - 70 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1716
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - col2 + - 70 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1717
SELECT + MIN( + col1 ) + - ( + COUNT( * ) ) * 63 AS col1 FROM tab0 AS cor0
----
-188

skipif mysql # not compatible
query I rowsort label-1717
SELECT + MIN ( + col1 ) + - ( + COUNT ( * ) ) * 63 AS col1 FROM tab0 AS cor0
----
-188

onlyif mysql # DIV for integer division: 
query I rowsort label-1718
SELECT - col1 DIV col1 + + - 71 AS col2 FROM tab1
----
-72
-72
-72

skipif mysql # not compatible
query I rowsort label-1718
SELECT - col1 / col1 + + - 71 AS col2 FROM tab1
----
-72
-72
-72

query I rowsort
SELECT 25 + + + col2 * - 3 FROM tab1
----
-152
-179
-263

onlyif mysql # DIV for integer division: 
query I rowsort label-1720
SELECT ALL + col2 DIV - + col2 + col0 FROM tab2
----
45
63
74

skipif mysql # not compatible
query I rowsort label-1720
SELECT ALL + col2 / - + col2 + col0 FROM tab2
----
45
63
74

query I rowsort
SELECT DISTINCT - 99 - - 58 * - - col1 FROM tab1
----
191
2627
713

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1722
SELECT ALL 38 * - + col1 + + CAST( - 83 AS SIGNED ) FROM tab2
----
-2021
-2629
-3009

skipif mysql # not compatible
query I rowsort label-1722
SELECT ALL 38 * - + col1 + + CAST ( - 83 AS INTEGER ) FROM tab2
----
-2021
-2629
-3009

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col2 FROM tab0 WHERE NULL IN ( - ( + - 82 ) )
----

query I rowsort
SELECT + col1 * + + col1 * - col2 AS col1 FROM tab0 WHERE NULL IS NULL
----
-308367
-4410
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1725
SELECT ALL + COUNT( * ) - + 20 + COUNT( 3 ) AS col1, + COUNT( * ) + ( + - CAST( NULL AS SIGNED ) ) + + COUNT( * ) FROM tab0
----
-14
NULL

skipif mysql # not compatible
query II rowsort label-1725
SELECT ALL + COUNT ( * ) - + 20 + COUNT ( 3 ) AS col1, + COUNT ( * ) + ( + - CAST ( NULL AS INTEGER ) ) + + COUNT ( * ) FROM tab0
----
-14
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1726
SELECT DISTINCT + col1 DIV + 18 - col2 FROM tab2 AS cor0
----
-21
-36
-55

skipif mysql # not compatible
query I rowsort label-1726
SELECT DISTINCT + col1 / + 18 - col2 FROM tab2 AS cor0
----
-21
-36
-55

query I rowsort
SELECT ALL - + col0 - ( + col2 ) - + + ( - col1 ) AS col1 FROM tab1 cor0
----
-112
-133
-139

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <> - col1
----

query I rowsort
SELECT - 26 * - col2 - - col0 AS col2 FROM tab1 AS cor0
----
1619
1859
2547

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 62 + + col1 + - 85 / 8 + - col1 IS NULL
----

query I rowsort
SELECT - 30 * + - col0 * + + 20 FROM tab2
----
27600
38400
45000

onlyif mysql # aggregate syntax: 
query I rowsort label-1732
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-1732
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-1733
SELECT - MIN( DISTINCT + + col1 ) * + COUNT( * ) AS col0, - ( - 64 ) AS col0 FROM tab1 AS cor0
----
-15
64

skipif mysql # not compatible
query II rowsort label-1733
SELECT - MIN ( DISTINCT + + col1 ) * + COUNT ( * ) AS col0, - ( - 64 ) AS col0 FROM tab1 AS cor0
----
-15
64

query I rowsort
SELECT col2 AS col1 FROM tab0 cor0 WHERE NOT + col1 <> + - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * - - 70 col2 FROM tab0 AS cor0
----
-1470
-5670
-70

query I rowsort
SELECT + col1 * + ( - col1 ) - - + col1 + 71 * - + col0 FROM tab2 AS cor0 WHERE NOT NULL >= - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1737
SELECT ALL + - ( - - COUNT( * ) ) * + 79 FROM tab1 AS cor0
----
-237

skipif mysql # not compatible
query I rowsort label-1737
SELECT ALL + - ( - - COUNT ( * ) ) * + 79 FROM tab1 AS cor0
----
-237

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - col1 * - 59 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + 76 AS col0 FROM tab0 AS cor0
----
-76

query I rowsort
SELECT + + ( + - col2 ) AS col2 FROM tab1 AS cor0
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col0 * - col1 * - 59, + col1 * - 92 col1 FROM tab2 AS cor0
----
-138414
-4692
-290752
-7084
-296475
-6164

onlyif mysql # aggregate syntax: 
query I rowsort label-1742
SELECT + 76 - COUNT( * ) + COUNT( ALL + col1 ) + - 17 col0 FROM tab0 WHERE NOT + - 24 IN ( + col1 + - - 7 )
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1742
SELECT + 76 - COUNT ( * ) + COUNT ( ALL + col1 ) + - 17 col0 FROM tab0 WHERE NOT + - 24 IN ( + col1 + - - 7 )
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-1743
SELECT ALL 88 AS col1, COUNT( * ) FROM tab2
----
88
3

skipif mysql # not compatible
query II rowsort label-1743
SELECT ALL 88 AS col1, COUNT ( * ) FROM tab2
----
88
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 31 col2 FROM tab2
----
31
31
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1745
SELECT MAX( ALL - col0 ) DIV + + 6 FROM tab1
----
-8

skipif mysql # not compatible
query I rowsort label-1745
SELECT MAX ( ALL - col0 ) / + + 6 FROM tab1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-1746
SELECT SUM( ALL + col2 ) * + - 16 + + 56 + - - COUNT( * ) AS col0 FROM tab2
----
-1877

skipif mysql # not compatible
query I rowsort label-1746
SELECT SUM ( ALL + col2 ) * + - 16 + + 56 + - - COUNT ( * ) AS col0 FROM tab2
----
-1877

query I rowsort
SELECT ALL + col2 + - - 46 FROM tab2
----
104
69
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1748
SELECT - 55 FROM tab1 AS cor0 WHERE CAST( col1 AS SIGNED ) - + ( col0 ) > - + col1
----
-55

skipif mysql # not compatible
query I rowsort label-1748
SELECT - 55 FROM tab1 AS cor0 WHERE CAST ( col1 AS INTEGER ) - + ( col0 ) > - + col1
----
-55

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1749
SELECT + col0 + - - 58 AS col0, - col0 * CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
104
NULL
122
NULL
133
NULL

skipif mysql # not compatible
query II rowsort label-1749
SELECT + col0 + - - 58 AS col0, - col0 * CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
104
NULL
122
NULL
133
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1750
SELECT - CAST( NULL AS SIGNED ) + + col2 + - col2 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1750
SELECT - CAST ( NULL AS INTEGER ) + + col2 + - col2 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( + 78 ) AS col0 FROM tab1 AS cor0
----
78
78
78

query I rowsort
SELECT col2 * 62 FROM tab1 AS cor0
----
3658
4216
5952

query I rowsort
SELECT DISTINCT - ( - + col0 ) * + col2 FROM tab2 cor0
----
1058
2560
4350

query III rowsort
SELECT * FROM tab2 WHERE - + ( + col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1755
SELECT DISTINCT COUNT( * ) + + 97 - + SUM( DISTINCT - CAST( + 35 AS SIGNED ) ) FROM tab0
----
135

skipif mysql # not compatible
query I rowsort label-1755
SELECT DISTINCT COUNT ( * ) + + 97 - + SUM ( DISTINCT - CAST ( + 35 AS INTEGER ) ) FROM tab0
----
135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1756
SELECT ALL ( + 24 ) + + AVG ( ( + + CAST( NULL AS SIGNED ) ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1756
SELECT ALL ( + 24 ) + + AVG ( ( + + CAST ( NULL AS INTEGER ) ) ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1757
SELECT ALL + - MIN( + col1 ) AS col0 FROM tab1 WHERE ( + 35 ) <= ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1757
SELECT ALL + - MIN ( + col1 ) AS col0 FROM tab1 WHERE ( + 35 ) <= ( NULL )
----
NULL

query I rowsort
SELECT col1 + + + col0 * + col1 + + - col2 FROM tab0
----
-1
1249
1838

query I rowsort
SELECT col2 * - col2 FROM tab1 WHERE 5 * - col0 + - + col1 > 82
----

query II rowsort
SELECT col0, col1 * - - 8 FROM tab1 AS cor0
----
51
112
85
40
91
376

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1761
SELECT 10 col1, + MAX( DISTINCT - col0 ) - CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
10
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1761
SELECT 10 col1, + MAX ( DISTINCT - col0 ) - CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
10
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1762
SELECT DISTINCT - - 51 / + 98 - 75 * + - col2 + + CAST( NULL AS SIGNED ) / - - col1 col0, + col2 + + col2 FROM tab0 AS cor0
----
NULL
198
NULL
20
NULL
94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1762
SELECT DISTINCT - - 51 / + 98 - 75 * + - col2 + + CAST ( NULL AS INTEGER ) / - - col1 col0, + col2 + + col2 FROM tab0 AS cor0
----
NULL
198
NULL
20
NULL
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col0 ) col1 FROM tab2
----
-46
-64
-75

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 16 * 17 NOT BETWEEN - 85 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1765
SELECT ALL + SUM( ALL - col0 ) * + COUNT( * ) FROM tab2
----
-555

skipif mysql # not compatible
query I rowsort label-1765
SELECT ALL + SUM ( ALL - col0 ) * + COUNT ( * ) FROM tab2
----
-555

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - ( + ( - col2 ) ) * ( + - col2 ) + col2 + + col1 = NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1767
SELECT DISTINCT + 28 * 46, COUNT( * ) + + 96 col1 FROM tab2 cor0
----
1288
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1767
SELECT DISTINCT + 28 * 46, COUNT ( * ) + + 96 col1 FROM tab2 cor0
----
1288
99

query I rowsort
SELECT 18 * - + 67 AS col0 FROM tab0
----
-1206
-1206
-1206

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - 11 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - + 85 ) + - + col2 col0 FROM tab0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1771
SELECT 34 DIV col0 col0 FROM tab0
----
0
0
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1771
SELECT 34 / col0 col0 FROM tab0
----
0
0
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1772
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0 WHERE NOT - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1772
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0 WHERE NOT - col1 IS NOT NULL
----
0

query I rowsort
SELECT - 44 + - 88 FROM tab1
----
-132
-132
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-1774
SELECT DISTINCT 18 * + - COUNT( * ) FROM tab0
----
-54

skipif mysql # not compatible
query I rowsort label-1774
SELECT DISTINCT 18 * + - COUNT ( * ) FROM tab0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-1775
SELECT ALL SUM( ALL - col0 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1775
SELECT ALL SUM ( ALL - col0 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1776
SELECT - - SUM( + col1 ) AS col0 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-1776
SELECT - - SUM ( + col1 ) AS col0 FROM tab2 AS cor0
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-1777
SELECT + - SUM( - col0 ) AS col2 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-1777
SELECT + - SUM ( - col0 ) AS col2 FROM tab1 AS cor0
----
227

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 < + - 48
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1779
SELECT ALL 19 + - col1 + + + 84 * + - col1 * - 59 - col0 * ( + + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-1779
SELECT ALL 19 + - col1 + + + 84 * + - col1 * - 59 - col0 * ( + + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1780
SELECT ALL - - SUM( DISTINCT + 86 ) AS col2 FROM tab2 cor0
----
86

skipif mysql # not compatible
query I rowsort label-1780
SELECT ALL - - SUM ( DISTINCT + 86 ) AS col2 FROM tab2 cor0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-1781
SELECT DISTINCT 40 - - COUNT( * ) + + 2 * - + ( - - 44 ) - - + 92 FROM tab1 AS cor0 WHERE NOT + col2 * - col2 / + 61 * + - 86 + col0 < col1
----
47

skipif mysql # not compatible
query I rowsort label-1781
SELECT DISTINCT 40 - - COUNT ( * ) + + 2 * - + ( - - 44 ) - - + 92 FROM tab1 AS cor0 WHERE NOT + col2 * - col2 / + 61 * + - 86 + col0 < col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1782
SELECT DISTINCT - COUNT( - col1 ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1782
SELECT DISTINCT - COUNT ( - col1 ) FROM tab2 cor0
----
-3

query I rowsort
SELECT col0 + + + col2 FROM tab1 cor0
----
144
147
159

query I rowsort
SELECT 26 - - ( - col0 ) * + col2 * col0 FROM tab0 AS cor0 WHERE - 76 IS NOT NULL
----
-10549
-75664
-931465

onlyif mysql # aggregate syntax: 
query I rowsort label-1785
SELECT - - SUM( ALL - 76 ) + 29 FROM tab2 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-1785
SELECT - - SUM ( ALL - 76 ) + 29 FROM tab2 AS cor0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-1786
SELECT COUNT( * ) + + - 85 col1 FROM tab1 AS cor0
----
-82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1786
SELECT COUNT ( * ) + + - 85 col1 FROM tab1 AS cor0
----
-82

query I rowsort
SELECT ALL col2 * 78 + 90 + + col0 + - col2 FROM tab2 AS cor0
----
1907
3234
4631

query I rowsort
SELECT DISTINCT - ( col0 ) + col0 + + 98 * - 65 * + - col2 AS col1 FROM tab1
----
375830
433160
611520

query I rowsort
SELECT 17 + - 45 FROM tab1
----
-28
-28
-28

query I rowsort
SELECT DISTINCT col1 + + + col1 * ( + col1 ) FROM tab2
----
2652
4556
6006

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1791
SELECT DISTINCT - COUNT( * ) DIV MIN( col1 ) - 3 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-1791
SELECT DISTINCT - COUNT ( * ) / MIN ( col1 ) - 3 FROM tab1
----
-3

query I rowsort
SELECT DISTINCT - + 64 + - col0 AS col0 FROM tab0 WHERE + ( + col1 ) IS NOT NULL
----
-151
-161
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-1793
SELECT ALL - COUNT( * ) + + 28 AS col1 FROM tab1
----
25

skipif mysql # not compatible
query I rowsort label-1793
SELECT ALL - COUNT ( * ) + + 28 AS col1 FROM tab1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1794
SELECT + SUM( + col0 ) * SUM( col1 ) FROM tab2 WHERE NULL IS NULL
----
36075

skipif mysql # not compatible
query I rowsort label-1794
SELECT + SUM ( + col0 ) * SUM ( col1 ) FROM tab2 WHERE NULL IS NULL
----
36075

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * + + col0 + - 78 * - - col0 col0 FROM tab1 WHERE - 98 * col1 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1796
SELECT DISTINCT + 35 / + CAST( NULL AS SIGNED ) - + CAST( - ( ( + + col1 ) ) AS SIGNED ) * - + 89 / - 48 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1796
SELECT DISTINCT + 35 / + CAST ( NULL AS INTEGER ) - + CAST ( - ( ( + + col1 ) ) AS INTEGER ) * - + 89 / - 48 AS col0 FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 * + col2 * - 36 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1798
SELECT CAST( + 21 AS SIGNED ) AS col1, col0 DIV + CAST( + - 69 AS SIGNED ) FROM tab1 AS cor0
----
21
-1
21
-1
21
0

skipif mysql # not compatible
query II rowsort label-1798
SELECT CAST ( + 21 AS INTEGER ) AS col1, col0 / + CAST ( + - 69 AS INTEGER ) FROM tab1 AS cor0
----
21
-1
21
-1
21
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1799
SELECT ALL + + CAST( - - 1 AS SIGNED ) * - col2 DIV - col0 FROM tab0 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-1799
SELECT ALL + + CAST ( - - 1 AS INTEGER ) * - col2 / - col0 FROM tab0 AS cor0
----
0
1
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1800
SELECT - MAX( - - 24 ) col2 FROM tab2 AS cor0
----
-24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1800
SELECT - MAX ( - - 24 ) col2 FROM tab2 AS cor0
----
-24

query III rowsort
SELECT * FROM tab1 WHERE NOT + 24 < + - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 AS col1, 9 * - - col1 col2 FROM tab2
----
23
459
40
693
58
603

query I rowsort
SELECT DISTINCT col0 * - 3 AS col1 FROM tab2
----
-138
-192
-225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1804
SELECT CAST( - - col1 AS SIGNED ) * col2 AS col2 FROM tab2
----
1173
3080
3886

skipif mysql # not compatible
query I rowsort label-1804
SELECT CAST ( - - col1 AS INTEGER ) * col2 AS col2 FROM tab2
----
1173
3080
3886

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1805
SELECT DISTINCT + AVG ( ALL 38 ) * + + SUM( DISTINCT + CAST( NULL AS SIGNED ) ) + - MAX( ALL + col1 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1805
SELECT DISTINCT + AVG ( ALL 38 ) * + + SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) + - MAX ( ALL + col1 ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + col0 * 95 * - + col1 FROM tab1 AS cor0
----
-40375
-406315
-67830

query I rowsort
SELECT - - 50 + + col0 - col2 FROM tab2 cor0
----
67
73
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1808
SELECT ALL - - COUNT( * ) * ( + 77 ) AS col2 FROM tab1 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-1808
SELECT ALL - - COUNT ( * ) * ( + 77 ) AS col2 FROM tab1 AS cor0
----
231

onlyif mysql # aggregate syntax: 
query I rowsort label-1809
SELECT ALL COUNT( * ) + + 6 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-1809
SELECT ALL COUNT ( * ) + + 6 FROM tab0 AS cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 97 + + + 32 col1 FROM tab0 AS cor0
----
129
129
129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1811
SELECT ALL - COUNT( * ) / + AVG ( ALL CAST( NULL AS SIGNED ) ) + - + COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1811
SELECT ALL - COUNT ( * ) / + AVG ( ALL CAST ( NULL AS INTEGER ) ) + - + COUNT ( * ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT ( + col0 ) + + - 53 AS col0 FROM tab2 AS cor0
----
-7
11
22

onlyif mysql # DIV for integer division: 
query I rowsort label-1813
SELECT ALL + col2 DIV - ( + col2 ) FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1813
SELECT ALL + col2 / - ( + col2 ) FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1814
SELECT DISTINCT 17 + - COUNT( * ) * COUNT( * ) + 50 FROM tab2 cor0
----
58

skipif mysql # not compatible
query I rowsort label-1814
SELECT DISTINCT 17 + - COUNT ( * ) * COUNT ( * ) + 50 FROM tab2 cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1815
SELECT DISTINCT + - SUM( ALL - col0 ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-1815
SELECT DISTINCT + - SUM ( ALL - col0 ) FROM tab0 AS cor0
----
199

query I rowsort
SELECT DISTINCT - 5 * + 1 + 45 AS col2 FROM tab0
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1817
SELECT + COUNT( DISTINCT + col0 ) DIV + ( + 26 ) AS col2, MIN( - col0 ) AS col2 FROM tab1
----
0
-91

skipif mysql # not compatible
query II rowsort label-1817
SELECT + COUNT ( DISTINCT + col0 ) / + ( + 26 ) AS col2, MIN ( - col0 ) AS col2 FROM tab1
----
0
-91

query I rowsort
SELECT ALL - - 81 FROM tab1 WHERE NOT ( NOT ( NULL ) = - - col2 )
----

query II rowsort
SELECT - col0 * - + 71 AS col1, col2 AS col0 FROM tab2
----
3266
23
4544
40
5325
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 64 col2 FROM tab1
----
64
64
64

onlyif mysql # DIV for integer division: 
query I rowsort label-1821
SELECT DISTINCT - + 80 DIV col0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1821
SELECT DISTINCT - + 80 / col0 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT + + 31 + - col2 AS col2 FROM tab1 cor0
----
-28
-37
-65

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1823
SELECT ALL + CAST( NULL AS DECIMAL ) / 77 / - col1 * - 54 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1823
SELECT ALL + CAST ( NULL AS REAL ) / 77 / - col1 * - 54 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1824
SELECT * FROM tab1 AS cor0 WHERE CAST( + col2 AS DECIMAL ) + 84 IS NULL
----

skipif mysql # not compatible
query III rowsort label-1824
SELECT * FROM tab1 AS cor0 WHERE CAST ( + col2 AS REAL ) + 84 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1825
SELECT DISTINCT col2 + + CAST( + col1 AS SIGNED ) AS col0 FROM tab1
----
110
115
64

skipif mysql # not compatible
query I rowsort label-1825
SELECT DISTINCT col2 + + CAST ( + col1 AS INTEGER ) AS col0 FROM tab1
----
110
115
64

query III rowsort
SELECT * FROM tab1 WHERE - - col1 * + 57 < + ( + 31 )
----

query I rowsort
SELECT 82 + - + 79 * - - 90 AS col0 FROM tab2
----
-7028
-7028
-7028

query I rowsort
SELECT + col1 * + + col0 AS col1 FROM tab1
----
425
4277
714

query II rowsort
SELECT - col0, - col2 + 48 AS col0 FROM tab2 AS cor0
----
-46
25
-64
8
-75
-10

query I rowsort
SELECT DISTINCT - col2 + + + 44 * + col2 AS col0 FROM tab1 AS cor0
----
2537
2924
4128

onlyif mysql # aggregate syntax: 
query II rowsort label-1831
SELECT ALL 94, MAX( + + col1 ) AS col0 FROM tab0
----
94
81

skipif mysql # not compatible
query II rowsort label-1831
SELECT ALL 94, MAX ( + + col1 ) AS col0 FROM tab0
----
94
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1832
SELECT DISTINCT - SUM( + 54 ) FROM tab1
----
-162

skipif mysql # not compatible
query I rowsort label-1832
SELECT DISTINCT - SUM ( + 54 ) FROM tab1
----
-162

query II rowsort
SELECT col2, + 93 AS col2 FROM tab0
----
10
93
47
93
99
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1834
SELECT CAST( - 38 AS SIGNED ), COUNT( * ) AS col1 FROM tab2
----
-38
3

skipif mysql # not compatible
query II rowsort label-1834
SELECT CAST ( - 38 AS INTEGER ), COUNT ( * ) AS col1 FROM tab2
----
-38
3

onlyif mysql # aggregate syntax: 
query II rowsort label-1835
SELECT 50 AS col1, + MAX( + - col2 ) FROM tab2
----
50
-23

skipif mysql # not compatible
query II rowsort label-1835
SELECT 50 AS col1, + MAX ( + - col2 ) FROM tab2
----
50
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-1836
SELECT DISTINCT - COUNT( * ) col2, MAX( DISTINCT col0 ) AS col1 FROM tab1
----
-3
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1836
SELECT DISTINCT - COUNT ( * ) col2, MAX ( DISTINCT col0 ) AS col1 FROM tab1
----
-3
91

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 73 BETWEEN - 30 - + 75 - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1838
SELECT - MAX( ALL 94 ) AS col2 FROM tab1 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-1838
SELECT - MAX ( ALL 94 ) AS col2 FROM tab1 AS cor0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-1839
SELECT + + MAX( ALL + - 20 ) AS col0 FROM tab2 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-1839
SELECT + + MAX ( ALL + - 20 ) AS col0 FROM tab2 AS cor0
----
-20

query I rowsort
SELECT 88 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

query I rowsort
SELECT DISTINCT - ( col2 ) + - + 71 + + 14 FROM tab1 AS cor0 WHERE 54 * - 29 / - 41 - - col2 IS NOT NULL
----
-116
-125
-153

query I rowsort
SELECT ALL - 18 FROM tab1 cor0
----
-18
-18
-18

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 50 + + + 84 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 / col2 * - col2 * + col2 AS col0 FROM tab2 AS cor0 WHERE NOT + 2 = NULL
----

query I rowsort
SELECT + - ( - 34 ) FROM tab1 AS cor0
----
34
34
34

query I rowsort
SELECT ALL 37 * col2 FROM tab1
----
2183
2516
3552

query I rowsort
SELECT col2 * - col1 + 17 * + col0 FROM tab1
----
-1649
-477
1150

onlyif mysql # aggregate syntax: 
query I rowsort label-1848
SELECT COUNT( * ) + + + 53 FROM tab2
----
56

skipif mysql # not compatible
query I rowsort label-1848
SELECT COUNT ( * ) + + + 53 FROM tab2
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1849
SELECT DISTINCT - 94 DIV COUNT( * ) FROM tab0
----
-31

skipif mysql # not compatible
query I rowsort label-1849
SELECT DISTINCT - 94 / COUNT ( * ) FROM tab0
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-1850
SELECT DISTINCT col0 DIV col1 * - col0 AS col2 FROM tab2
----
-75
0

skipif mysql # not compatible
query I rowsort label-1850
SELECT DISTINCT col0 / col1 * - col0 AS col2 FROM tab2
----
-75
0

query II rowsort
SELECT - + col0 * + col1 - + col1 + - ( - col2 ) + - col2 AS col2, col1 AS col2 FROM tab0 WHERE + col2 IS NOT NULL
----
-1296
81
-1848
21
-98
1

query I rowsort
SELECT DISTINCT + - col2 * + 38 * + 5 FROM tab1 AS cor0
----
-11210
-12920
-18240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1853
SELECT + COUNT( * ) * - - 81 * CAST( COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
729

skipif mysql # not compatible
query I rowsort label-1853
SELECT + COUNT ( * ) * - - 81 * CAST ( COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 28 + - - col0 col2 FROM tab2 cor0
----
103
74
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 + - col2, col2 col2 FROM tab0
----
-98
99
11
10
34
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1856
SELECT + col0 * col2 * + - ( - CAST( NULL AS SIGNED ) ) + - col2 FROM tab0 WHERE + - 32 NOT IN ( - - col1 - + 27, - col0, - 71, + ( + col2 ) + col2 + + + col0 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1856
SELECT + col0 * col2 * + - ( - CAST ( NULL AS INTEGER ) ) + - col2 FROM tab0 WHERE + - 32 NOT IN ( - - col1 - + 27, - col0, - 71, + ( + col2 ) + col2 + + + col0 )
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 28 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + + col2 AS col0 FROM tab0 WHERE + 51 * + - 96 * col1 * + col1 * - col0 IS NOT NULL
----
10
47
99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1859
SELECT DISTINCT - + CAST( NULL AS DECIMAL ) - - - ( col0 ) * + ( - - col2 ) / - 62 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1859
SELECT DISTINCT - + CAST ( NULL AS REAL ) - - - ( col0 ) * + ( - - col2 ) / - 62 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1860
SELECT - MIN( DISTINCT + 89 ) FROM tab2 AS cor0
----
-89

skipif mysql # not compatible
query I rowsort label-1860
SELECT - MIN ( DISTINCT + 89 ) FROM tab2 AS cor0
----
-89

query I rowsort
SELECT col1 * - col1 * - col1 AS col2 FROM tab2 AS cor0
----
132651
300763
456533

onlyif mysql # DIV for integer division: 
query I rowsort label-1862
SELECT + 77 DIV - ( + col0 ) + col1 + col2 * + col2 AS col0 FROM tab0 AS cor0
----
121
2285
9802

skipif mysql # not compatible
query I rowsort label-1862
SELECT + 77 / - ( + col0 ) + col1 + col2 * + col2 AS col0 FROM tab0 AS cor0
----
121
2285
9802

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-1863
SELECT * FROM tab0 WHERE NOT + 60 * - col0 <= + - ( CAST( NULL AS SIGNED ) ) * + ( - + col1 ) * - col2 + + 54 / - CAST( - 19 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-1863
SELECT * FROM tab0 WHERE NOT + 60 * - col0 <= + - ( CAST ( NULL AS INTEGER ) ) * + ( - + col1 ) * - col2 + + 54 / - CAST ( - 19 AS REAL )
----

query II rowsort
SELECT ALL col1 AS col0, - ( col1 ) FROM tab0
----
1
-1
21
-21
81
-81

query I rowsort
SELECT - + col0 AS col2 FROM tab2 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 97 * + 24 FROM tab1
----
2328

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col2 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - col0 AS col2, - 96 FROM tab0 AS cor0
----
-15
-96
-87
-96
-97
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-1869
SELECT + + COUNT( DISTINCT - - col2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1869
SELECT + + COUNT ( DISTINCT - - col2 ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1870
SELECT 55 + + col1 - - col0 / + CAST( NULL AS SIGNED ) AS col0, + col0 + - col0 AS col2 FROM tab2 AS cor0
----
NULL
0
NULL
0
NULL
0

skipif mysql # not compatible
query II rowsort label-1870
SELECT 55 + + col1 - - col0 / + CAST ( NULL AS INTEGER ) AS col0, + col0 + - col0 AS col2 FROM tab2 AS cor0
----
NULL
0
NULL
0
NULL
0

query I rowsort
SELECT - col0 * + + col1 + + col2 FROM tab0 AS cor0
----
-1168
-1817
2

query I rowsort
SELECT col0 + - - col0 AS col2 FROM tab2 AS cor0
----
128
150
92

onlyif mysql # DIV for integer division: 
query I rowsort label-1873
SELECT col0 DIV col1 DIV 78 + col2 AS col1 FROM tab0 AS cor0
----
10
100
47

skipif mysql # not compatible
query I rowsort label-1873
SELECT col0 / col1 / 78 + col2 AS col1 FROM tab0 AS cor0
----
10
100
47

query II rowsort
SELECT DISTINCT - - 98 AS col1, col1 FROM tab0 AS cor0
----
98
1
98
21
98
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1875
SELECT - MIN( ALL + 65 ) DIV - - COUNT( - col0 ) AS col2 FROM tab0 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-1875
SELECT - MIN ( ALL + 65 ) / - - COUNT ( - col0 ) AS col2 FROM tab0 AS cor0
----
-21

query I rowsort
SELECT - - ( + + 20 ) FROM tab2 AS cor0
----
20
20
20

onlyif mysql # aggregate syntax: 
query II rowsort label-1877
SELECT ( + - 39 ), COUNT( * ) AS col1 FROM tab0
----
-39
3

skipif mysql # not compatible
query II rowsort label-1877
SELECT ( + - 39 ), COUNT ( * ) AS col1 FROM tab0
----
-39
3

query I rowsort
SELECT DISTINCT 71 * 56 + - 51 AS col0 FROM tab0
----
3925

onlyif mysql # aggregate syntax: 
query I rowsort label-1879
SELECT DISTINCT COUNT( DISTINCT - col1 ) * - COUNT( * ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-1879
SELECT DISTINCT COUNT ( DISTINCT - col1 ) * - COUNT ( * ) FROM tab2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1880
SELECT ALL ( COUNT( * ) ) FROM tab2 WHERE + - col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-1880
SELECT ALL ( COUNT ( * ) ) FROM tab2 WHERE + - col0 IS NOT NULL
----
3

query I rowsort
SELECT - - 70 FROM tab0 WHERE ( 85 ) BETWEEN NULL AND - 45 / - col0 + col1 + col1
----

query I rowsort
SELECT DISTINCT col0 + 9 * + + 79 * - 78 AS col2 FROM tab2
----
-55383
-55394
-55412

query I rowsort
SELECT DISTINCT + 80 * + - col1 AS col0 FROM tab1 WHERE + col1 IS NOT NULL
----
-1120
-3760
-400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1884
SELECT col0 - - CAST( - 65 AS SIGNED ) FROM tab2
----
-1
-19
10

skipif mysql # not compatible
query I rowsort label-1884
SELECT col0 - - CAST ( - 65 AS INTEGER ) FROM tab2
----
-1
-19
10

query I rowsort
SELECT - col0 - - col0 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT - + ( col0 ) * ( col2 ) * - ( - - col1 ) - - ( - - col2 ) * - col0 FROM tab0 AS cor0
----
0
17400
56400

onlyif mysql # aggregate syntax: 
query I rowsort label-1887
SELECT ALL ( - - MAX( DISTINCT - - 1 ) ) AS col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1887
SELECT ALL ( - - MAX ( DISTINCT - - 1 ) ) AS col0 FROM tab1 AS cor0
----
1

query I rowsort
SELECT DISTINCT - 39 * + col1 + col1 + - col2 FROM tab0 AS cor0
----
-137
-3125
-808

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1889
SELECT CAST( - col1 AS SIGNED ) + col0 AS col1 FROM tab1 AS cor0
----
37
44
80

skipif mysql # not compatible
query I rowsort label-1889
SELECT CAST ( - col1 AS INTEGER ) + col0 AS col1 FROM tab1 AS cor0
----
37
44
80

query I rowsort
SELECT ALL col0 * 74 * - col2 AS col2 FROM tab0 cor0
----
-52170
-64380
-710622

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1891
SELECT ALL + col1 + + + CAST( col0 AS SIGNED ) + 75 FROM tab1 AS cor0
----
140
165
213

skipif mysql # not compatible
query I rowsort label-1891
SELECT ALL + col1 + + + CAST ( col0 AS INTEGER ) + 75 FROM tab1 AS cor0
----
140
165
213

onlyif mysql # aggregate syntax: 
query I rowsort label-1892
SELECT - - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-1892
SELECT - - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1893
SELECT + - 36 DIV COUNT( * ) + + + 13 - + 70 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-61

skipif mysql # not compatible
query I rowsort label-1893
SELECT + - 36 / COUNT ( * ) + + + 13 - + 70 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-61

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + ( + - 72 ) >= + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1895
SELECT - + ( + COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1895
SELECT - + ( + COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + 96 <> ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1897
SELECT ALL - col0 * - 93 + + CAST( NULL AS SIGNED ) AS col0, col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-1897
SELECT ALL - col0 * - 93 + + CAST ( NULL AS INTEGER ) AS col0, col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1898
SELECT DISTINCT SUM( DISTINCT 23 ) * - COUNT( DISTINCT + - col1 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1898
SELECT DISTINCT SUM ( DISTINCT 23 ) * - COUNT ( DISTINCT + - col1 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

query II rowsort
SELECT DISTINCT + col1 AS col0, + 44 AS col0 FROM tab2 AS cor0
----
51
44
67
44
77
44

query I rowsort
SELECT + 60 * + - col1 AS col2 FROM tab2
----
-3060
-4020
-4620

query III rowsort
SELECT * FROM tab2 WHERE NOT - 69 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1902
SELECT - CAST( - - col2 AS SIGNED ) FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-1902
SELECT - CAST ( - - col2 AS INTEGER ) FROM tab0
----
-10
-47
-99

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col1 NOT IN ( + + 70 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1904
SELECT - col0 DIV 43 AS col0 FROM tab0
----
-2
-2
0

skipif mysql # not compatible
query I rowsort label-1904
SELECT - col0 / 43 AS col0 FROM tab0
----
-2
-2
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1905
SELECT ALL ( col0 ) AS col0, CAST( NULL AS DECIMAL ) FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-1905
SELECT ALL ( col0 ) AS col0, CAST ( NULL AS REAL ) FROM tab2
----
46
NULL
64
NULL
75
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 60 >= - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1907
SELECT ALL - - COUNT( + - 46 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1907
SELECT ALL - - COUNT ( + - 46 ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1908
SELECT + MAX( 77 ) FROM tab1
----
77

skipif mysql # not compatible
query I rowsort label-1908
SELECT + MAX ( 77 ) FROM tab1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1909
SELECT DISTINCT + COUNT( - - col0 ) + - 25 AS col2 FROM tab0
----
-22

skipif mysql # not compatible
query I rowsort label-1909
SELECT DISTINCT + COUNT ( - - col0 ) + - 25 AS col2 FROM tab0
----
-22

query I rowsort
SELECT + 91 * - col0 AS col1 FROM tab1
----
-4641
-7735
-8281

query II rowsort
SELECT + col2 * col1 * 75, - 33 * - - 19 AS col1 FROM tab1
----
100800
-627
22125
-627
239700
-627

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1912
SELECT - CAST( NULL AS DECIMAL ) * ( - 75 ) / + ( CAST( + + ( + COUNT( * ) ) AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1912
SELECT - CAST ( NULL AS REAL ) * ( - 75 ) / + ( CAST ( + + ( + COUNT ( * ) ) AS INTEGER ) ) FROM tab2
----
NULL

query I rowsort
SELECT + + col0 * + - col1 AS col2 FROM tab2 AS cor0
----
-2346
-4928
-5025

query I rowsort
SELECT ALL ( - 4 ) FROM tab1 cor0
----
-4
-4
-4

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IS NULL AND NOT NULL IS NULL
----

query I rowsort
SELECT + + col2 + + + col0 FROM tab1 cor0
----
144
147
159

query I rowsort
SELECT + 51 + + col0 - + 69 FROM tab0 AS cor0
----
-3
69
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1918
SELECT + MAX( DISTINCT - + col0 ) AS col1 FROM tab2 AS cor0 WHERE 16 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1918
SELECT + MAX ( DISTINCT - + col0 ) AS col1 FROM tab2 AS cor0 WHERE 16 IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col0 FROM tab2 WHERE NULL > - col2 + ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1920
SELECT COUNT( * ) * - 21 + + 0 FROM tab0
----
-63

skipif mysql # not compatible
query I rowsort label-1920
SELECT COUNT ( * ) * - 21 + + 0 FROM tab0
----
-63

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN + + 69 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1922
SELECT COUNT( * ) + + 77 + - + 26 * - COUNT( * ) + + 21 AS col2 FROM tab2
----
179

skipif mysql # not compatible
query I rowsort label-1922
SELECT COUNT ( * ) + + 77 + - + 26 * - COUNT ( * ) + + 21 AS col2 FROM tab2
----
179

query II rowsort
SELECT DISTINCT - col1 AS col2, + col1 AS col1 FROM tab1
----
-14
14
-47
47
-5
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 - - 83 col1, - 97 AS col2 FROM tab0 AS cor0
----
-14
-97
-4
-97
68
-97

query I rowsort
SELECT DISTINCT + 2 AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
2

query I rowsort
SELECT + 37 AS col1 FROM tab2 cor0 WHERE NOT col1 * col1 BETWEEN NULL AND - col0
----
37
37
37

onlyif mysql # aggregate syntax: 
query I rowsort label-1927
SELECT - ( + SUM( ALL col0 ) ) col2 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1927
SELECT - ( + SUM ( ALL col0 ) ) col2 FROM tab1 AS cor0
----
-227

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1928
SELECT MAX( DISTINCT + 48 ) AS col2, + 75 - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
48
NULL

skipif mysql # not compatible
query II rowsort label-1928
SELECT MAX ( DISTINCT + 48 ) AS col2, + 75 - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
48
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1929
SELECT - 70 * - ( COUNT( * ) ) col0 FROM tab0 AS cor0
----
210

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1929
SELECT - 70 * - ( COUNT ( * ) ) col0 FROM tab0 AS cor0
----
210

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1930
SELECT ALL + COUNT( * ) DIV 23 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1930
SELECT ALL + COUNT ( * ) / 23 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1931
SELECT ALL - + 26 DIV 52 - + - SUM( DISTINCT col2 ) col1 FROM tab1 cor0
----
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1931
SELECT ALL - + 26 / 52 - + - SUM ( DISTINCT col2 ) col1 FROM tab1 cor0
----
223

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL < - col0 * + ( col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 16 * 70 col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
1120
1120
1120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1934
SELECT 48 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1934
SELECT 48 * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1935
SELECT - 30 - - - MIN( + col1 ) + - 95 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1935
SELECT - 30 - - - MIN ( + col1 ) + - 95 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE - - col0 + - col2 <= col0 + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL - 37 AS col2, - 56 * - col0 FROM tab1
----
-37
2856
-37
4760
-37
5096

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) = NULL OR NOT NULL IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-1939
SELECT col2 AS col1, - 94 DIV + + col2 AS col1 FROM tab2
----
23
-4
40
-2
58
-1

skipif mysql # not compatible
query II rowsort label-1939
SELECT col2 AS col1, - 94 / + + col2 AS col1 FROM tab2
----
23
-4
40
-2
58
-1

query I rowsort
SELECT DISTINCT + ( + col2 ) + - - 36 - - col1 FROM tab1 AS cor0
----
100
146
151

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL = + col1 * + col0 + - 2 * - - 4
----

query II rowsort
SELECT col2, - 97 + - col1 * + + 26 * + col1 - - - col1 + + + col2 + + col0 + + 22 + - col0 AS col2 FROM tab0 AS cor0
----
10
-11552
47
-170695
99
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 col2 FROM tab2 cor0 WHERE + col2 + + + col0 = col2 * + 36
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1944
SELECT - COUNT( * ) + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1944
SELECT - COUNT ( * ) + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + + col0 * col2 + + - col1 AS col1 FROM tab2 AS cor0
----
1007
2483
4283

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + ( - + ( 32 ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-1947
SELECT ALL + 72 DIV - + 95 * + + col1 + - 11 col2 FROM tab2 AS cor0
----
-11
-11
-11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1947
SELECT ALL + 72 / - + 95 * + + col1 + - 11 col2 FROM tab2 AS cor0
----
-11
-11
-11

query I rowsort
SELECT ALL col0 + + + col0 AS col1 FROM tab2
----
128
150
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1949
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) FROM tab1 WHERE + col0 * 74 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1949
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) FROM tab1 WHERE + col0 * 74 IS NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1950
SELECT * FROM tab0 WHERE NOT NULL IS NULL AND NOT + - CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-1950
SELECT * FROM tab0 WHERE NOT NULL IS NULL AND NOT + - CAST ( NULL AS REAL ) IS NULL
----

query I rowsort
SELECT ALL - 88 - - col2 FROM tab0
----
-41
-78
11

onlyif mysql # aggregate syntax: 
query I rowsort label-1952
SELECT 83 * - - COUNT( * ) * + 70 - - + COUNT( col1 ) AS col2 FROM tab1
----
17433

skipif mysql # not compatible
query I rowsort label-1952
SELECT 83 * - - COUNT ( * ) * + 70 - - + COUNT ( col1 ) AS col2 FROM tab1
----
17433

query I rowsort
SELECT col0 - + 69 AS col1 FROM tab2
----
-23
-5
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1954
SELECT col2 - - CAST( NULL AS SIGNED ) col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1954
SELECT col2 - - CAST ( NULL AS INTEGER ) col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1955
SELECT SUM( - 47 ) - + + MIN( DISTINCT 72 ) FROM tab0
----
-213

skipif mysql # not compatible
query I rowsort label-1955
SELECT SUM ( - 47 ) - + + MIN ( DISTINCT 72 ) FROM tab0
----
-213

query I rowsort
SELECT DISTINCT col0 * + - 33 FROM tab1
----
-1683
-2805
-3003

onlyif mysql # aggregate syntax: 
query I rowsort label-1957
SELECT + ( + COUNT( * ) ) + - COUNT( + col2 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1957
SELECT + ( + COUNT ( * ) ) + - COUNT ( + col2 ) FROM tab2 AS cor0
----
0

query II rowsort
SELECT 81, + col2 FROM tab2
----
81
23
81
40
81
58

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1959
SELECT - 28 DIV + - col2 col2, + CAST( + col2 AS SIGNED ) FROM tab2
----
0
40
0
58
1
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1959
SELECT - 28 / + - col2 col2, + CAST ( + col2 AS INTEGER ) FROM tab2
----
0
40
0
58
1
23

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE NOT col2 = NULL
----

query I rowsort
SELECT ALL - + 33 * 90 FROM tab2 AS cor0
----
-2970
-2970
-2970

query I rowsort
SELECT DISTINCT - + col1 * + - col1 * 30 AS col1 FROM tab1 cor0
----
5880
66270
750

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 88 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1964
SELECT ALL - col2 DIV - 41 FROM tab1 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-1964
SELECT ALL - col2 / - 41 FROM tab1 AS cor0
----
1
1
2

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 NOT BETWEEN + col0 AND NULL
----

query I rowsort
SELECT ( + + col1 ) * - col2 FROM tab1 AS cor0
----
-1344
-295
-3196

query II rowsort
SELECT ALL - col2, col0 AS col2 FROM tab2 AS cor0
----
-23
46
-40
64
-58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1968
SELECT ALL - COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) < - + col0
----
0

skipif mysql # not compatible
query I rowsort label-1968
SELECT ALL - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) < - + col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1969
SELECT - COUNT( * ) * + ( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1969
SELECT - COUNT ( * ) * + ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1970
SELECT + MIN( ALL - col0 ) AS col0 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-1970
SELECT + MIN ( ALL - col0 ) AS col0 FROM tab1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-1971
SELECT DISTINCT COUNT( * ) * + COUNT( * ) AS col1 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-1971
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-1972
SELECT 60 DIV + - 66 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1972
SELECT 60 / + - 66 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT col1 * + 51 AS col1 FROM tab1
----
2397
255
714

onlyif mysql # DIV for integer division: 
query II rowsort label-1974
SELECT ALL + 28 DIV col1, + col2 DIV - ( + - col0 ) AS col0 FROM tab1
----
0
0
2
1
5
0

skipif mysql # not compatible
query II rowsort label-1974
SELECT ALL + 28 / col1, + col2 / - ( + - col0 ) AS col0 FROM tab1
----
0
0
2
1
5
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1975
SELECT - CAST( NULL AS SIGNED ) + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1975
SELECT - CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-23
-40
-58

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 21 * + + 48 IS NULL
----

query II rowsort
SELECT ALL - - col1 * + col2 + + col1, + col2 FROM tab0 AS cor0
----
100
99
231
10
3888
47

onlyif mysql # DIV for integer division: 
query I rowsort label-1979
SELECT DISTINCT col2 DIV + - 87 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-1979
SELECT DISTINCT col2 / + - 87 FROM tab1
----
-1
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 83 <= - + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + ( - col0 ) IS NOT NULL
----

query I rowsort
SELECT ALL - 4 AS col0 FROM tab2 cor0
----
-4
-4
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-1983
SELECT MAX( ALL ( - col1 ) ) + 49 AS col1 FROM tab2 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-1983
SELECT MAX ( ALL ( - col1 ) ) + 49 AS col1 FROM tab2 AS cor0
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1984
SELECT ALL 6 DIV + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-1984
SELECT ALL 6 / + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1985
SELECT DISTINCT - CAST( NULL AS SIGNED ) col1, 8 AS col0 FROM tab2 AS cor0
----
NULL
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1985
SELECT DISTINCT - CAST ( NULL AS INTEGER ) col1, 8 AS col0 FROM tab2 AS cor0
----
NULL
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + ( col1 ) col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1987
SELECT DISTINCT CAST( - - col2 AS SIGNED ) AS col1 FROM tab1 WHERE - + 54 + + col0 * - 25 <= NULL
----

skipif mysql # not compatible
query I rowsort label-1987
SELECT DISTINCT CAST ( - - col2 AS INTEGER ) AS col1 FROM tab1 WHERE - + 54 + + col0 * - 25 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1988
SELECT 51 + - COUNT( * ) FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-1988
SELECT 51 + - COUNT ( * ) FROM tab1
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1989
SELECT CAST( + 16 AS SIGNED ) + - MAX( DISTINCT + col2 ) AS col1 FROM tab0
----
-83

skipif mysql # not compatible
query I rowsort label-1989
SELECT CAST ( + 16 AS INTEGER ) + - MAX ( DISTINCT + col2 ) AS col1 FROM tab0
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1990
SELECT ALL - col1, col2 + col2 AS col1 FROM tab0 WHERE NOT NULL NOT BETWEEN + 79 AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query II rowsort label-1990
SELECT ALL - col1, col2 + col2 AS col1 FROM tab0 WHERE NOT NULL NOT BETWEEN + 79 AND + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1991
SELECT SUM( + col0 ) AS col2 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-1991
SELECT SUM ( + col0 ) AS col2 FROM tab2 AS cor0
----
185

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 * 4 + col0 > + col1 + - - 62 / col1 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1993
SELECT + 61 * - SUM( - ( + + col2 ) ) + - 64 AS col0 FROM tab2 AS cor0 WHERE NOT - col0 >= ( - col1 )
----
3474

skipif mysql # not compatible
query I rowsort label-1993
SELECT + 61 * - SUM ( - ( + + col2 ) ) + - 64 AS col0 FROM tab2 AS cor0 WHERE NOT - col0 >= ( - col1 )
----
3474

query I rowsort
SELECT ALL + 38 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

onlyif mysql # aggregate syntax: 
query II rowsort label-1995
SELECT + COUNT( * ), + MIN( - 78 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9
-78

skipif mysql # not compatible
query II rowsort label-1995
SELECT + COUNT ( * ), + MIN ( - 78 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-1996
SELECT COUNT( DISTINCT - ( 15 ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-1996
SELECT COUNT ( DISTINCT - ( 15 ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
1

query I rowsort
SELECT DISTINCT 57 * + 26 AS col1 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
1482

onlyif mysql # aggregate syntax: 
query I rowsort label-1998
SELECT - COUNT( * ) * + SUM( + col2 ) FROM tab0 AS cor0 WHERE NOT 7 + col2 IS NULL
----
-468

skipif mysql # not compatible
query I rowsort label-1998
SELECT - COUNT ( * ) * + SUM ( + col2 ) FROM tab0 AS cor0 WHERE NOT 7 + col2 IS NULL
----
-468

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1999
SELECT - + CAST( - 68 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
68
68
68

skipif mysql # not compatible
query I rowsort label-1999
SELECT - + CAST ( - 68 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
68
68
68

query I rowsort
SELECT + - 27 AS col2 FROM tab0 AS cor0
----
-27
-27
-27

query I rowsort
SELECT + - ( - ( + - 19 ) ) FROM tab2 AS cor0
----
-19
-19
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-2002
SELECT + + col2 * - - 0 DIV - 45 * - 93 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2002
SELECT + + col2 * - - 0 / - 45 * - 93 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + 10 * + col1 + col2 + - + 71 AS col2 FROM tab1 cor0
----
165
38
467

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL <= + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2005
SELECT - SUM( ALL - + 72 ) AS col0 FROM tab1
----
216

skipif mysql # not compatible
query I rowsort label-2005
SELECT - SUM ( ALL - + 72 ) AS col0 FROM tab1
----
216

query I rowsort
SELECT ALL col0 * 87 * + - col1 FROM tab1
----
-36975
-372099
-62118

query I rowsort
SELECT DISTINCT + 95 * col0 FROM tab2
----
4370
6080
7125

onlyif mysql # aggregate syntax: 
query I rowsort label-2008
SELECT ALL SUM( ALL - 79 ) * - 51 * + COUNT( * ) FROM tab1
----
36261

skipif mysql # not compatible
query I rowsort label-2008
SELECT ALL SUM ( ALL - 79 ) * - 51 * + COUNT ( * ) FROM tab1
----
36261

query I rowsort
SELECT DISTINCT col0 * 1 FROM tab0
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2010
SELECT + - col1 col2 FROM tab2 WHERE NOT NULL BETWEEN + + CAST( NULL AS SIGNED ) * + + col2 + + 30 AND 66
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2010
SELECT + - col1 col2 FROM tab2 WHERE NOT NULL BETWEEN + + CAST ( NULL AS INTEGER ) * + + col2 + + 30 AND 66
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2011
SELECT ALL + col2 DIV - 55 AS col1 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2011
SELECT ALL + col2 / - 55 AS col1 FROM tab0
----
-1
0
0

query II rowsort
SELECT col0 AS col0, + 59 FROM tab2
----
46
59
64
59
75
59

query I rowsort
SELECT DISTINCT - ( - + ( - 3 ) ) * + + 92 FROM tab2
----
-276

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2014
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0, - 12 FROM tab1
----
NULL
-12

skipif mysql # not compatible
query II rowsort label-2014
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, - 12 FROM tab1
----
NULL
-12

query I rowsort
SELECT - col1 + - - 60 + col1 FROM tab2 WHERE 71 / 79 IS NULL
----

query I rowsort
SELECT DISTINCT + + col0 + 2 FROM tab2 AS cor0
----
48
66
77

onlyif mysql # DIV for integer division: 
query I rowsort label-2017
SELECT DISTINCT - col2 DIV + col1 AS col2 FROM tab1
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-2017
SELECT DISTINCT - col2 / + col1 AS col2 FROM tab1
----
-1
-11
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 60 col0 FROM tab2 AS cor0
----
60
60
60

query I rowsort
SELECT DISTINCT col0 * - 40 - - - col0 * col0 FROM tab2 AS cor0
----
-3956
-6656
-8625

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - col1 + - 33 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 55 col0, - col2 AS col2 FROM tab1 cor0 WHERE NOT col0 NOT BETWEEN + - col1 AND + col1
----

query I rowsort
SELECT ALL - col1 + - 28 + col2 FROM tab0 AS cor0
----
-39
-62
70

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 * + col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 5 BETWEEN NULL AND 12 * + 28 * - - col0
----

query II rowsort
SELECT ALL ( - col1 ), col2 + col2 + - - col0 * + 23 AS col1 FROM tab0 AS cor0
----
-1
2429
-21
2021
-81
439

query I rowsort
SELECT DISTINCT + + col2 + 67 - + col2 - - ( - col1 ) + 7 FROM tab2 cor0
----
-3
23
7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2027
SELECT DISTINCT 87 + - - COUNT( * ) * - COUNT( CAST( NULL AS DECIMAL ) ) AS col1 FROM tab2 cor0
----
87

skipif mysql # not compatible
query I rowsort label-2027
SELECT DISTINCT 87 + - - COUNT ( * ) * - COUNT ( CAST ( NULL AS REAL ) ) AS col1 FROM tab2 cor0
----
87

query II rowsort
SELECT DISTINCT + 36 * - 56 * col1 - + col2, col0 FROM tab0
----
-163343
15
-2115
97
-42346
87

onlyif mysql # DIV for integer division: 
query I rowsort label-2029
SELECT ALL col1 DIV + col2 + - - ( + - ( ( col1 ) ) ) * 36 FROM tab0
----
-2915
-36
-754

skipif mysql # not compatible
query I rowsort label-2029
SELECT ALL col1 / + col2 + - - ( + - ( ( col1 ) ) ) * 36 FROM tab0
----
-2915
-36
-754

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN - 74 AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2031
SELECT - - COUNT( * ) * - - 55 AS col2 FROM tab1 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-2031
SELECT - - COUNT ( * ) * - - 55 AS col2 FROM tab1 AS cor0
----
165

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + ( - - col0 ) - + + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2033
SELECT DISTINCT ( - + 56 ) * - ( + + COUNT( * ) ) AS col0 FROM tab0 cor0
----
168

skipif mysql # not compatible
query I rowsort label-2033
SELECT DISTINCT ( - + 56 ) * - ( + + COUNT ( * ) ) AS col0 FROM tab0 cor0
----
168

query III rowsort
SELECT * FROM tab2 WHERE 41 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 40 FROM tab2 WHERE NULL IS NULL
----
40
40
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2036
SELECT DISTINCT + COUNT( * ) + 59 FROM tab1 WHERE ( + col1 - ( + col1 ) ) IS NOT NULL
----
62

skipif mysql # not compatible
query I rowsort label-2036
SELECT DISTINCT + COUNT ( * ) + 59 FROM tab1 WHERE ( + col1 - ( + col1 ) ) IS NOT NULL
----
62

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col0 ) + col0 / - 27 NOT BETWEEN 30 * col2 AND - 22
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 47 - - col0 * col2 AS col2 FROM tab2
----
1105
2607
4397

onlyif mysql # aggregate syntax: 
query I rowsort label-2039
SELECT DISTINCT - COUNT( ALL 48 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2039
SELECT DISTINCT - COUNT ( ALL 48 ) FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2040
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <> ( CAST( NULL AS SIGNED ) + col2 * - 64 )
----

skipif mysql # not compatible
query III rowsort label-2040
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <> ( CAST ( NULL AS INTEGER ) + col2 * - 64 )
----

query I rowsort
SELECT DISTINCT - 79 * col1 FROM tab0 WHERE NOT ( NULL ) > + col0
----

query I rowsort
SELECT ALL + ( - col0 ) * - col1 AS col1 FROM tab2
----
2346
4928
5025

query I rowsort
SELECT ALL 50 * 54 AS col0 FROM tab1
----
2700
2700
2700

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) NOT IN ( - 85 )
----

query I rowsort
SELECT DISTINCT + 86 * col1 AS col1 FROM tab0
----
1806
6966
86

query I rowsort
SELECT - 7 FROM tab0 WHERE NOT + 36 NOT IN ( 31 )
----

query I rowsort
SELECT ALL col2 * 49 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
2303
4851
490

query I rowsort
SELECT 19 FROM tab1 WHERE NOT NULL IS NOT NULL
----
19
19
19

query I rowsort
SELECT DISTINCT col2 - 59 FROM tab0
----
-12
-49
40

query I rowsort
SELECT ALL 88 FROM tab1 WHERE - col2 - + col1 IS NOT NULL
----
88
88
88

query I rowsort
SELECT + col1 FROM tab1 WHERE 73 IN ( + col2 - - ( col1 + col1 * - 52 ) )
----

query I rowsort
SELECT - col2 * + 6 FROM tab1
----
-354
-408
-576

query I rowsort
SELECT DISTINCT + 34 + col0 * + col2 FROM tab1
----
4930
5049
6222

onlyif mysql # aggregate syntax: 
query I rowsort label-2054
SELECT COUNT( * ) * 54 FROM tab1
----
162

skipif mysql # not compatible
query I rowsort label-2054
SELECT COUNT ( * ) * 54 FROM tab1
----
162

query I rowsort
SELECT DISTINCT - ( col2 ) + + 59 FROM tab1
----
-37
-9
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2056
SELECT ALL - 57 DIV - COUNT( * ) + 0 * + 62 FROM tab1
----
19

skipif mysql # not compatible
query I rowsort label-2056
SELECT ALL - 57 / - COUNT ( * ) + 0 * + 62 FROM tab1
----
19

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 15 NOT IN ( 46 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2058
SELECT + 96 AS col0 FROM tab2 AS cor0 WHERE ( - 6 / + CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2058
SELECT + 96 AS col0 FROM tab2 AS cor0 WHERE ( - 6 / + CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2059
SELECT ALL + CAST( 84 AS SIGNED ) FROM tab1 cor0
----
84
84
84

skipif mysql # not compatible
query I rowsort label-2059
SELECT ALL + CAST ( 84 AS INTEGER ) FROM tab1 cor0
----
84
84
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2060
SELECT ALL COUNT( * ) * + CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2060
SELECT ALL COUNT ( * ) * + CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL 92 + 30 FROM tab0 AS cor0
----
122
122
122

onlyif mysql # DIV for integer division: 
query I rowsort label-2062
SELECT col1 DIV - col1 AS col2 FROM tab0 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2062
SELECT col1 / - col1 AS col2 FROM tab0 cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT col2 / + 6 FROM tab1 WHERE ( NULL ) = ( NULL )
----

query I rowsort
SELECT col2 FROM tab0 WHERE col0 + 27 / - col0 IS NULL
----

query I rowsort
SELECT + 5 - col0 AS col1 FROM tab0
----
-10
-82
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-2066
SELECT ( - 90 ) - - SUM( DISTINCT - 16 + - col1 ) AS col1 FROM tab1
----
-204

skipif mysql # not compatible
query I rowsort label-2066
SELECT ( - 90 ) - - SUM ( DISTINCT - 16 + - col1 ) AS col1 FROM tab1
----
-204

query I rowsort
SELECT + col2 - + col0 AS col1 FROM tab0
----
-77
2
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2068
SELECT + COUNT( * ) + - 52 AS col2 FROM tab1 AS cor0 WHERE CAST( - col1 AS SIGNED ) < ( 29 )
----
-49

skipif mysql # not compatible
query I rowsort label-2068
SELECT + COUNT ( * ) + - 52 AS col2 FROM tab1 AS cor0 WHERE CAST ( - col1 AS INTEGER ) < ( 29 )
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-2069
SELECT - col2 + + col1 DIV - col0 FROM tab2 AS cor0
----
-24
-41
-58

skipif mysql # not compatible
query I rowsort label-2069
SELECT - col2 + + col1 / - col0 FROM tab2 AS cor0
----
-24
-41
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2070
SELECT DISTINCT - ( MIN( + CAST( NULL AS SIGNED ) ) ) * 13 + + 64 FROM tab0 AS cor0 WHERE NOT + col0 / col2 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2070
SELECT DISTINCT - ( MIN ( + CAST ( NULL AS INTEGER ) ) ) * 13 + + 64 FROM tab0 AS cor0 WHERE NOT + col0 / col2 > NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2071
SELECT + - COUNT( * ) + - 66 * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-201

skipif mysql # not compatible
query I rowsort label-2071
SELECT + - COUNT ( * ) + - 66 * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-201

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col0 <= ( - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 70 + - 65 AS col1 FROM tab0 AS cor0
----
-135
-135
-135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2074
SELECT - + 41 * + CAST( NULL AS SIGNED ) + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2074
SELECT - + 41 * + CAST ( NULL AS INTEGER ) + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 7 NOT IN ( + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 60 * - col2 + 65 FROM tab0 AS cor0
----
2885
6005
665

onlyif mysql # DIV for integer division: 
query I rowsort label-2077
SELECT 13 DIV - col1 AS col1 FROM tab0 AS cor0
----
-13
0
0

skipif mysql # not compatible
query I rowsort label-2077
SELECT 13 / - col1 AS col1 FROM tab0 AS cor0
----
-13
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2078
SELECT ALL - 62 DIV col0 FROM tab0 AS cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-2078
SELECT ALL - 62 / col0 FROM tab0 AS cor0
----
-4
0
0

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col1 BETWEEN col2 AND + col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2080
SELECT ALL + 1 DIV + SUM( ALL - 30 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2080
SELECT ALL + 1 / + SUM ( ALL - 30 ) FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col0 FROM tab2 WHERE NULL < ( col0 * + ( 69 ) )
----

query I rowsort
SELECT DISTINCT - 87 FROM tab0 WHERE NOT ( col1 + col2 ) <> ( 57 + - col0 )
----

query I rowsort
SELECT DISTINCT 11 * - col1 * 84 AS col1 FROM tab2
----
-47124
-61908
-71148

query I rowsort
SELECT ( - + col0 ) * - 55 AS col2 FROM tab2
----
2530
3520
4125

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2085
SELECT ALL COUNT( ALL - ( ( - col1 ) ) ) DIV - COUNT( * ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-2085
SELECT ALL COUNT ( ALL - ( ( - col1 ) ) ) / - COUNT ( * ) FROM tab1
----
-1

query I rowsort
SELECT ALL 20 + 31 AS col1 FROM tab0 cor0 WHERE + 85 NOT IN ( col0 )
----
51
51
51

query I rowsort
SELECT - col0 * + - col0 AS col0 FROM tab0 AS cor0
----
225
7569
9409

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col0 ) NOT IN ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN - col1 * + 46 AND 49
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 89 * - col0 < ( - col2 )
----

query IIIIII rowsort
SELECT * FROM ( tab0 cor0 CROSS JOIN tab2 cor1 ) WHERE NOT 40 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2092
SELECT ALL - MIN( ALL 66 ) AS col0 FROM tab0 cor0
----
-66

skipif mysql # not compatible
query I rowsort label-2092
SELECT ALL - MIN ( ALL 66 ) AS col0 FROM tab0 cor0
----
-66

query I rowsort
SELECT DISTINCT + col2 * + 65 * col0 FROM tab2 AS cor0
----
166400
282750
68770

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2094
SELECT + CAST( - MIN( - col0 ) AS SIGNED ) + CAST( ( 38 ) + COUNT( * ) * 41 AS SIGNED ) FROM tab1 AS cor0
----
252

skipif mysql # not compatible
query I rowsort label-2094
SELECT + CAST ( - MIN ( - col0 ) AS INTEGER ) + CAST ( ( 38 ) + COUNT ( * ) * 41 AS INTEGER ) FROM tab1 AS cor0
----
252

onlyif mysql # aggregate syntax: 
query I rowsort label-2095
SELECT - COUNT( * ) + + 57 + COUNT( - 86 ) FROM tab2 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-2095
SELECT - COUNT ( * ) + + 57 + COUNT ( - 86 ) FROM tab2 AS cor0
----
57

query II rowsort
SELECT col2, + 61 * + - 67 FROM tab1 cor0
----
59
-4087
68
-4087
96
-4087

query II rowsort
SELECT DISTINCT 61 AS col2, + col1 AS col1 FROM tab0 cor0
----
61
1
61
21
61
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2098
SELECT DISTINCT - COUNT( * ) + + 58 - COUNT( * ) * 89 AS col0 FROM tab2 AS cor0
----
-212

skipif mysql # not compatible
query I rowsort label-2098
SELECT DISTINCT - COUNT ( * ) + + 58 - COUNT ( * ) * 89 AS col0 FROM tab2 AS cor0
----
-212

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - ( - col2 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2100
SELECT DISTINCT + + col2 + - + col2 DIV - - col1 FROM tab2 cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-2100
SELECT DISTINCT + + col2 + - + col2 / - - col1 FROM tab2 cor0
----
23
40
58

query I rowsort
SELECT ALL col2 - - col0 FROM tab1 WHERE ( 30 ) NOT BETWEEN + ( + ( col0 ) ) AND ( col2 )
----
144
147
159

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 76 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab1 WHERE ( + col2 * - 41 + + col2 ) BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 NOT BETWEEN - + col2 AND col1 + - 67
----

query I rowsort
SELECT DISTINCT ( - - col0 ) + + col1 * - - col0 * + ( 17 ) + - 45 AS col1 FROM tab0
----
1701
20625
31101

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( NOT ( NULL ) NOT IN ( - 34 ) )
----

query II rowsort
SELECT DISTINCT - - col1 + + 85 AS col1, col0 * - col2 FROM tab2 AS cor0
----
136
-1058
152
-4350
162
-2560

query III rowsort
SELECT * FROM tab2 cor0 WHERE - col1 * col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + 8 + col1 FROM tab2 cor0
----
59
75
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 50 + - 15 col1 FROM tab2 cor0
----
35
35
35

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) < + col0 * + + ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-2112
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

skipif mysql # not compatible
query IIIIII rowsort label-2112
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # aggregate syntax: 
query I rowsort label-2113
SELECT ALL - ( + COUNT( * ) ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2113
SELECT ALL - ( + COUNT ( * ) ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-9

query I rowsort
SELECT DISTINCT 46 * - + ( - 85 ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
3910

onlyif mysql # aggregate syntax: 
query I rowsort label-2115
SELECT DISTINCT + ( + MIN( ALL - col2 ) ) AS col2 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-2115
SELECT DISTINCT + ( + MIN ( ALL - col2 ) ) AS col2 FROM tab1 AS cor0
----
-96

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 IS NULL AND ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2117
SELECT 2 - - col2 DIV + + col2 FROM tab0 AS cor0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-2117
SELECT 2 - - col2 / + + col2 FROM tab0 AS cor0
----
3
3
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 70 < ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col0 ) * + 60 + + 64 + + + ( + col1 ) col0 FROM tab0 AS cor0
----
1045
5305
5885

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE NOT - col2 * - col2 = NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2121
SELECT DISTINCT ( - 13 ) DIV 8 * - COUNT( * ) * 40 AS col1 FROM tab2 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-2121
SELECT DISTINCT ( - 13 ) / 8 * - COUNT ( * ) * 40 AS col1 FROM tab2 AS cor0
----
120

query I rowsort
SELECT col1 FROM tab1 cor0 WHERE NOT - col2 + - col0 + - 49 IS NULL
----
14
47
5

query II rowsort
SELECT ALL - col1 AS col0, 85 AS col1 FROM tab0
----
-1
85
-21
85
-81
85

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2124
SELECT - col1, CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
-14
NULL
-47
NULL
-5
NULL

skipif mysql # not compatible
query II rowsort label-2124
SELECT - col1, CAST ( NULL AS REAL ) AS col1 FROM tab1
----
-14
NULL
-47
NULL
-5
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 98 ) <= col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2126
SELECT DISTINCT + CAST( - MIN( ALL + col2 ) AS SIGNED ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-2126
SELECT DISTINCT + CAST ( - MIN ( ALL + col2 ) AS INTEGER ) FROM tab2
----
-23

query I rowsort
SELECT ALL 40 * - 65 FROM tab1 WHERE ( col1 / + ( - + 15 ) ) IS NULL
----

query I rowsort
SELECT ALL 23 * + col2 FROM tab1
----
1357
1564
2208

onlyif mysql # aggregate syntax: 
query I rowsort label-2129
SELECT DISTINCT 99 * - ( - COUNT( * ) ) FROM tab0 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-2129
SELECT DISTINCT 99 * - ( - COUNT ( * ) ) FROM tab0 AS cor0
----
297

query I rowsort
SELECT + col1 * - + col0 FROM tab1 AS cor0 WHERE NOT + 34 = + 26
----
-425
-4277
-714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT col0 col2, + col2 + - 26 AS col2, col1 AS col0 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + ( + + col1 ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
51
67
77

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab0 WHERE NOT ( - ( - - 5 ) * + ( - 3 ) ) IS NULL
----
1
21
81

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 * - 11 <= - col0
----
85
5
59

query I rowsort
SELECT DISTINCT col0 * 59 FROM tab2
----
2714
3776
4425

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + - col0 ) IS NOT NULL
----

query I rowsort
SELECT - 35 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND ( - + col2 ) + - - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2139
SELECT DISTINCT CAST( col1 AS SIGNED ) * + col0 AS col1 FROM tab1
----
425
4277
714

skipif mysql # not compatible
query I rowsort label-2139
SELECT DISTINCT CAST ( col1 AS INTEGER ) * + col0 AS col1 FROM tab1
----
425
4277
714

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2140
SELECT + col1 DIV + CAST( - col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-2140
SELECT + col1 / + CAST ( - col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1
-2
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2141
SELECT ALL - ( + - ( + MAX( - + 86 ) ) ) AS col0 FROM tab0 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-2141
SELECT ALL - ( + - ( + MAX ( - + 86 ) ) ) AS col0 FROM tab0 AS cor0
----
-86

query I rowsort
SELECT DISTINCT - 60 FROM tab2 AS cor0 WHERE col0 * - col0 <> + - ( - - 36 ) * col0 + - 42
----
-60

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - ( + - 35 ) + - 64 >= NULL
----

query I rowsort
SELECT col1 + 15 * - col0 FROM tab0 AS cor0
----
-1284
-144
-1454

onlyif mysql # aggregate syntax: 
query I rowsort label-2145
SELECT MAX( + 50 ) FROM tab2 cor0 WHERE 99 IS NOT NULL
----
50

skipif mysql # not compatible
query I rowsort label-2145
SELECT MAX ( + 50 ) FROM tab2 cor0 WHERE 99 IS NOT NULL
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2146
SELECT 42 + - MAX( - col0 ) + COUNT( * ) + + + 16 + + 41 - - 69 * - COUNT( * ) * 61 AS col1 FROM tab2
----
-12479

skipif mysql # not compatible
query I rowsort label-2146
SELECT 42 + - MAX ( - col0 ) + COUNT ( * ) + + + 16 + + 41 - - 69 * - COUNT ( * ) * 61 AS col1 FROM tab2
----
-12479

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2147
SELECT + 4 FROM tab1 WHERE + - CAST( - col2 AS SIGNED ) IS NOT NULL
----
4
4
4

skipif mysql # not compatible
query I rowsort label-2147
SELECT + 4 FROM tab1 WHERE + - CAST ( - col2 AS INTEGER ) IS NOT NULL
----
4
4
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2148
SELECT ALL MAX( DISTINCT - + col1 ) col2 FROM tab1
----
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2148
SELECT ALL MAX ( DISTINCT - + col1 ) col2 FROM tab1
----
-5

query I rowsort
SELECT col2 + + - col1 + col1 + - col1 * + col0 * - col1 * - 31 * + col1 + + 65 FROM tab2
----
-189160238
-699273852
-905761367

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - col1 + - - col2 - - + col0 ) NOT BETWEEN + col2 * + col0 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2151
SELECT CAST( + 20 AS DECIMAL ) / + 98 + - col2 + - col0 - col2 FROM tab0 WHERE ( 2 * - col1 ) = NULL
----

skipif mysql # not compatible
query I rowsort label-2151
SELECT CAST ( + 20 AS REAL ) / + 98 + - col2 + - col0 - col2 FROM tab0 WHERE ( 2 * - col1 ) = NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2152
SELECT - + col0 col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + CAST( CAST( + - col0 AS DECIMAL ) AS SIGNED ) AND - - col1
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2152
SELECT - + col0 col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + CAST ( CAST ( + - col0 AS REAL ) AS INTEGER ) AND - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2153
SELECT COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE + col2 * - col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2153
SELECT COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE + col2 * - col0 IS NOT NULL
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 44 + - + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 = NULL AND NULL IS NULL
----

query I rowsort
SELECT - 0 - col0 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT + 19 AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-2158
SELECT ALL * FROM tab1 WHERE - CAST( NULL AS DECIMAL ) + + + CAST( - 32 AS SIGNED ) + + ( + - col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2158
SELECT ALL * FROM tab1 WHERE - CAST ( NULL AS REAL ) + + + CAST ( - 32 AS INTEGER ) + + ( + - col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT - 19 AS col0 FROM tab0 AS cor0
----
-19

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2161
SELECT + col0 * - - CAST( NULL AS DECIMAL ) * 14 + - col2 - + ( - - col0 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2161
SELECT + col0 * - - CAST ( NULL AS REAL ) * 14 + - col2 - + ( - - col0 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NOT col1 * + + col0 + + col1 * col2 / - col2 * - + col2 NOT BETWEEN col0 AND NULL
----

query I rowsort
SELECT + 32 * + col2 AS col0 FROM tab2 AS cor0
----
1280
1856
736

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + col0 ) <= ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE 38 <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2166
SELECT SUM( DISTINCT + + 37 ) * - CAST( + + COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
-111

skipif mysql # not compatible
query I rowsort label-2166
SELECT SUM ( DISTINCT + + 37 ) * - CAST ( + + COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
-111

query I rowsort
SELECT - 55 FROM tab2 AS cor0 WHERE NOT col2 * col2 NOT IN ( - col0, col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2168
SELECT DISTINCT - MIN( DISTINCT - 22 ) AS col1 FROM tab1 WHERE NOT + - col0 * + + 32 * - + ( + col1 ) = - 57
----
22

skipif mysql # not compatible
query I rowsort label-2168
SELECT DISTINCT - MIN ( DISTINCT - 22 ) AS col1 FROM tab1 WHERE NOT + - col0 * + + 32 * - + ( + col1 ) = - 57
----
22

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2169
SELECT - 10 / col1 FROM tab0 WHERE NOT ( + 1 ) * + col2 + + col1 + + col1 * - - ( + CAST( NULL AS DECIMAL ) ) < ( + ( 18 ) + + col2 )
----

skipif mysql # not compatible
query I rowsort label-2169
SELECT - 10 / col1 FROM tab0 WHERE NOT ( + 1 ) * + col2 + + col1 + + col1 * - - ( + CAST ( NULL AS REAL ) ) < ( + ( 18 ) + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2170
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab1 WHERE NOT - 76 <> + col0
----
0

skipif mysql # not compatible
query I rowsort label-2170
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab1 WHERE NOT - 76 <> + col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2171
SELECT ALL + COUNT( * ) FROM tab0 WHERE NOT 22 >= - col1 / - col0 + - - col2 - col0
----
1

skipif mysql # not compatible
query I rowsort label-2171
SELECT ALL + COUNT ( * ) FROM tab0 WHERE NOT 22 >= - col1 / - col0 + - - col2 - col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2172
SELECT + - SUM( ALL + - col1 ) AS col1 FROM tab1 WHERE NOT + + col1 BETWEEN NULL AND + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2172
SELECT + - SUM ( ALL + - col1 ) AS col1 FROM tab1 WHERE NOT + + col1 BETWEEN NULL AND + col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2173
SELECT - SUM( + + col0 ) AS col2 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-2173
SELECT - SUM ( + + col0 ) AS col2 FROM tab1 AS cor0
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-2174
SELECT SUM( ALL 66 ) FROM tab0 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-2174
SELECT SUM ( ALL 66 ) FROM tab0 AS cor0
----
198

query I rowsort
SELECT DISTINCT + + col0 * + 90 AS col1 FROM tab2 AS cor0
----
4140
5760
6750

onlyif mysql # aggregate syntax: 
query I rowsort label-2176
SELECT - MAX( DISTINCT 27 ) AS col2 FROM tab1 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-2176
SELECT - MAX ( DISTINCT 27 ) AS col2 FROM tab1 AS cor0
----
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 2 col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
2

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - + col2 ) * + col0 BETWEEN NULL AND ( - col0 - + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2179
SELECT CAST( NULL AS SIGNED ) / col0 * - col0 + + ( ( + + 78 ) ) + + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2179
SELECT CAST ( NULL AS INTEGER ) / col0 * - col0 + + ( ( + + 78 ) ) + + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 26 * + - col0 * + col0 + 22 * - col0 FROM tab2 cor0
----
-107904
-147900
-56028

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2181
SELECT DISTINCT CAST( MAX( col0 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-2181
SELECT DISTINCT CAST ( MAX ( col0 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 * - 86 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2183
SELECT DISTINCT SUM( ALL 85 ) + + MIN( ALL - 88 ) AS col2 FROM tab2 AS cor0
----
167

skipif mysql # not compatible
query I rowsort label-2183
SELECT DISTINCT SUM ( ALL 85 ) + + MIN ( ALL - 88 ) AS col2 FROM tab2 AS cor0
----
167

onlyif mysql # DIV for integer division: 
query I rowsort label-2184
SELECT DISTINCT 12 * + col0 DIV - col0 - + - col0 FROM tab2
----
34
52
63

skipif mysql # not compatible
query I rowsort label-2184
SELECT DISTINCT 12 * + col0 / - col0 - + - col0 FROM tab2
----
34
52
63

query II rowsort
SELECT DISTINCT + ( + col1 ) AS col2, col2 + + + col0 FROM tab1
----
14
147
47
159
5
144

query I rowsort
SELECT + col0 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2187
SELECT DISTINCT + 8 + + + COUNT( - 40 ) FROM tab1 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-2187
SELECT DISTINCT + 8 + + + COUNT ( - 40 ) FROM tab1 AS cor0
----
11

query I rowsort
SELECT DISTINCT 28 FROM tab2 AS cor0 WHERE NULL <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 * - col2 NOT BETWEEN + + col1 + col2 AND - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2190
SELECT DISTINCT + SUM( - col2 ) * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
669

skipif mysql # not compatible
query I rowsort label-2190
SELECT DISTINCT + SUM ( - col2 ) * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
669

onlyif mysql # aggregate syntax: 
query I rowsort label-2191
SELECT 75 * + COUNT( * ) FROM tab2 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-2191
SELECT 75 * + COUNT ( * ) FROM tab2 AS cor0
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-2192
SELECT DISTINCT + SUM( - col0 ) AS col1 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-2192
SELECT DISTINCT + SUM ( - col0 ) AS col1 FROM tab2 AS cor0
----
-185

query I rowsort
SELECT ALL + - 94 FROM tab2 AS cor0 WHERE 36 IS NOT NULL
----
-94
-94
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-2194
SELECT ALL ( - - SUM( DISTINCT col0 ) ) AS col1 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-2194
SELECT ALL ( - - SUM ( DISTINCT col0 ) ) AS col1 FROM tab2
----
185

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - ( + col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2196
SELECT + 96 * + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2196
SELECT + 96 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 14 * - + col2 AS col2 FROM tab2
----
322
560
812

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 72 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 83 * 30 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2200
SELECT DISTINCT - 21 AS col1 FROM tab1 AS cor0 WHERE + 58 + col2 BETWEEN - col2 * 66 - + col0 AND + + col1 * + + CAST( NULL AS SIGNED ) + - ( + 60 ) + + col2
----

skipif mysql # not compatible
query I rowsort label-2200
SELECT DISTINCT - 21 AS col1 FROM tab1 AS cor0 WHERE + 58 + col2 BETWEEN - col2 * 66 - + col0 AND + + col1 * + + CAST ( NULL AS INTEGER ) + - ( + 60 ) + + col2
----

query II rowsort
SELECT + col1 AS col2, - col1 * - col2 AS col1 FROM tab2
----
51
1173
67
3886
77
3080

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 79 IS NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query I rowsort
SELECT + 33 + 94 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 55400066049fe9a655ffc1f4b4055564

query I rowsort
SELECT 13 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query III rowsort
SELECT * FROM tab0 WHERE - 96 <= - 37 + + - col1 - - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col2, 87 FROM tab0
----
10
87
47
87
99
87

query I rowsort
SELECT ALL + 28 AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query II rowsort
SELECT ALL - + ( - 1 ) + col2, ( - col0 ) AS col2 FROM tab2 AS cor0
----
24
-46
41
-64
59
-75

query I rowsort
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE + 40 * - col1 + + col0 IS NULL
----

query I rowsort
SELECT ALL col1 * + col1 + + 14 FROM tab0
----
15
455
6575

query I rowsort
SELECT - col1 + + 77 * - 89 FROM tab0
----
-6854
-6874
-6934

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 21 + 56 col1 FROM tab2
----
77

query I rowsort
SELECT + ( - ( - - 34 ) ) + ( col0 ) AS col0 FROM tab2
----
12
30
41

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2215
SELECT * FROM tab2 WHERE + - col1 * CAST( NULL AS SIGNED ) < + col0 * col2
----

skipif mysql # not compatible
query III rowsort label-2215
SELECT * FROM tab2 WHERE + - col1 * CAST ( NULL AS INTEGER ) < + col0 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2216
SELECT + 87 + - + 49 * - + COUNT( * ) AS col1 FROM tab1
----
234

skipif mysql # not compatible
query I rowsort label-2216
SELECT + 87 + - + 49 * - + COUNT ( * ) AS col1 FROM tab1
----
234

query II rowsort
SELECT ALL + col0, col0 + + col0 * - col2 + + + col0 FROM tab1
----
51
-4794
85
-4845
91
-6006

onlyif mysql # aggregate syntax: 
query I rowsort label-2218
SELECT ALL - COUNT( col0 ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2218
SELECT ALL - COUNT ( col0 ) FROM tab1 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2219
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - CAST( - 82 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2219
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - CAST ( - 82 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2220
SELECT MAX( DISTINCT + col1 ) FROM tab2 cor0
----
77

skipif mysql # not compatible
query I rowsort label-2220
SELECT MAX ( DISTINCT + col1 ) FROM tab2 cor0
----
77

query I rowsort
SELECT - + 25 FROM tab1 WHERE NOT + + ( + col0 ) IS NULL
----
-25
-25
-25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 10 col2 FROM tab0
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-2223
SELECT ALL SUM( DISTINCT - - col0 ) AS col0, - 75 FROM tab2
----
185
-75

skipif mysql # not compatible
query II rowsort label-2223
SELECT ALL SUM ( DISTINCT - - col0 ) AS col0, - 75 FROM tab2
----
185
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2224
SELECT DISTINCT + 66 * - 72 - + COUNT( * ) AS col2 FROM tab1 cor0
----
-4755

skipif mysql # not compatible
query I rowsort label-2224
SELECT DISTINCT + 66 * - 72 - + COUNT ( * ) AS col2 FROM tab1 cor0
----
-4755

onlyif mysql # aggregate syntax: 
query I rowsort label-2225
SELECT ALL - MAX( - ( col1 ) ) FROM tab2 cor0
----
51

skipif mysql # not compatible
query I rowsort label-2225
SELECT ALL - MAX ( - ( col1 ) ) FROM tab2 cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2226
SELECT ALL 91 * COUNT( * ) AS col1 FROM tab1 AS cor0
----
273

skipif mysql # not compatible
query I rowsort label-2226
SELECT ALL 91 * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
273

query I rowsort
SELECT ALL ( 83 ) AS col1 FROM tab0 AS cor0
----
83
83
83

query I rowsort
SELECT ALL - 47 FROM tab1 AS cor0 WHERE NULL <= ( NULL )
----

query I rowsort
SELECT + 72 * col1 * + 72 + + - col1 + col0 + + col2 * + col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL <= + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 54 col1 FROM tab2 AS cor0
----
54
54
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2231
SELECT ALL MIN( - 21 ) FROM tab1 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-2231
SELECT ALL MIN ( - 21 ) FROM tab1 AS cor0
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2232
SELECT ALL + MAX( ALL 34 ) - + CAST( NULL AS SIGNED ), 65 - - COUNT( * ) * - - COUNT( 0 ) - - CAST( NULL AS SIGNED ) * - + COUNT( * ) * + AVG ( - - col2 ) + 0 FROM tab2 cor0 WHERE + 91 IS NOT NULL
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2232
SELECT ALL + MAX ( ALL 34 ) - + CAST ( NULL AS INTEGER ), 65 - - COUNT ( * ) * - - COUNT ( 0 ) - - CAST ( NULL AS INTEGER ) * - + COUNT ( * ) * + AVG ( - - col2 ) + 0 FROM tab2 cor0 WHERE + 91 IS NOT NULL
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2233
SELECT DISTINCT - COUNT( DISTINCT - 46 ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2233
SELECT DISTINCT - COUNT ( DISTINCT - 46 ) FROM tab2 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2234
SELECT DISTINCT + ( + - 84 ) * - SUM( col2 ) FROM tab0
----
13104

skipif mysql # not compatible
query I rowsort label-2234
SELECT DISTINCT + ( + - 84 ) * - SUM ( col2 ) FROM tab0
----
13104

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + 80 col0 FROM tab0
----
1680
6480
80

query I rowsort
SELECT ( - 60 ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2237
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT CAST( NULL AS SIGNED ) IS NOT NULL )
----

skipif mysql # not compatible
query III rowsort label-2237
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT CAST ( NULL AS INTEGER ) IS NOT NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 <= - col1
----

query II rowsort
SELECT - 17 AS col2, col1 AS col0 FROM tab1
----
-17
14
-17
47
-17
5

query I rowsort
SELECT - 32 * - - col0 AS col0 FROM tab2 AS cor0
----
-1472
-2048
-2400

onlyif mysql # aggregate syntax: 
query II rowsort label-2241
SELECT DISTINCT + COUNT( * ), + COUNT( * ) FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-2241
SELECT DISTINCT + COUNT ( * ), + COUNT ( * ) FROM tab0 AS cor0
----
3
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 26 < - + col0
----

query I rowsort
SELECT DISTINCT + col1 + + - 60 AS col0 FROM tab1 AS cor0
----
-13
-46
-55

query II rowsort
SELECT - col0, col2 * + col0 AS col1 FROM tab1 AS cor0
----
-51
4896
-85
5015
-91
6188

query I rowsort
SELECT ALL - 94 + - col0 AS col0 FROM tab2 AS cor0
----
-140
-158
-169

query I rowsort
SELECT col1 * - col0 + + + col0 FROM tab1
----
-340
-4186
-663

query I rowsort
SELECT - 45 * - 61 AS col1 FROM tab1
----
2745
2745
2745

onlyif mysql # DIV for integer division: 
query I rowsort label-2248
SELECT 28 DIV - col0 AS col0 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2248
SELECT 28 / - col0 AS col0 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2249
SELECT + CAST( + col0 AS SIGNED ) FROM tab1 cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-2249
SELECT + CAST ( + col0 AS INTEGER ) FROM tab1 cor0
----
51
85
91

query II rowsort
SELECT - col2 * - col1 AS col2, col1 AS col2 FROM tab2 AS cor0
----
1173
51
3080
77
3886
67

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 10 <= NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 - + col1 - + 75 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - col1 * 63 + col1 AS col0 FROM tab2 AS cor0
----
3264
4288
4928

query I rowsort
SELECT DISTINCT - col1 + - 37 * - 59 FROM tab0
----
2102
2162
2182

query I rowsort
SELECT - ( 52 ) - 38 FROM tab2
----
-90
-90
-90

query I rowsort
SELECT DISTINCT col1 - + 51 * - col0 FROM tab2
----
2397
3341
3892

onlyif mysql # aggregate syntax: 
query I rowsort label-2257
SELECT ALL + 27 + - COUNT( * ) AS col0 FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-2257
SELECT ALL + 27 + - COUNT ( * ) AS col0 FROM tab0
----
24

query I rowsort
SELECT - 59 FROM tab1 WHERE col2 IS NOT NULL
----
-59
-59
-59

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2259
SELECT * FROM tab2 WHERE + + col0 NOT IN ( + ( + - CAST( NULL AS SIGNED ) ), 75 * + col2, + col1 / - col0 )
----

skipif mysql # not compatible
query III rowsort label-2259
SELECT * FROM tab2 WHERE + + col0 NOT IN ( + ( + - CAST ( NULL AS INTEGER ) ), 75 * + col2, + col1 / - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 53 IS NULL
----

query I rowsort
SELECT ALL col0 * 23 + + - col1 FROM tab1
----
1159
1950
2046

query I rowsort
SELECT DISTINCT col0 - + - col1 - 73 * - col2 AS col1 FROM tab0
----
3527
7325
838

onlyif mysql # aggregate syntax: 
query I rowsort label-2263
SELECT DISTINCT + COUNT( * ) FROM tab2 WHERE NOT col2 + - 11 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2263
SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE NOT col2 + - 11 >= NULL
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 <= col2 + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2265
SELECT DISTINCT SUM( DISTINCT + - col1 ) * - COUNT( ALL - - 14 ) AS col2 FROM tab2 AS cor0
----
585

skipif mysql # not compatible
query I rowsort label-2265
SELECT DISTINCT SUM ( DISTINCT + - col1 ) * - COUNT ( ALL - - 14 ) AS col2 FROM tab2 AS cor0
----
585

query I rowsort
SELECT DISTINCT + - col2 * - 45 AS col1 FROM tab0 AS cor0
----
2115
4455
450

query I rowsort
SELECT ALL + 95 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

query I rowsort
SELECT ALL - ( - - col0 ) FROM tab1
----
-51
-85
-91

onlyif mysql # DIV for integer division: 
query II rowsort label-2269
SELECT ALL 85 AS col0, + col0 * col0 + + col0 DIV - - 4 AS col0 FROM tab1
----
85
2613
85
7246
85
8303

skipif mysql # not compatible
query II rowsort label-2269
SELECT ALL 85 AS col0, + col0 * col0 + + col0 / - - 4 AS col0 FROM tab1
----
85
2613
85
7246
85
8303

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2270
SELECT + col0 * - - ( + CAST( NULL AS SIGNED ) ) + col1 FROM tab0 AS cor0 WHERE NOT col0 + + - col1 = NULL
----

skipif mysql # not compatible
query I rowsort label-2270
SELECT + col0 * - - ( + CAST ( NULL AS INTEGER ) ) + col1 FROM tab0 AS cor0 WHERE NOT col0 + + - col1 = NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) <> + col1
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 + - 2 + - col0 - + - col0 * - col1 + 22 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2273
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT col2 * + 53 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2273
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col2 * + 53 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2274
SELECT MIN( - 63 ) AS col2 FROM tab1 cor0
----
-63

skipif mysql # not compatible
query I rowsort label-2274
SELECT MIN ( - 63 ) AS col2 FROM tab1 cor0
----
-63

query I rowsort
SELECT + col2 * - + col2 + + 69 * col2 FROM tab2 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2276
SELECT - 22 DIV + col2 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2276
SELECT - 22 / + col2 AS col2 FROM tab1
----
0
0
0

query II rowsort
SELECT DISTINCT + 37 * + col0, + 35 FROM tab0 WHERE NOT - - 51 >= col2 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2278
SELECT + 89 + - ( - COUNT( * ) ) FROM tab1
----
92

skipif mysql # not compatible
query I rowsort label-2278
SELECT + 89 + - ( - COUNT ( * ) ) FROM tab1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2279
SELECT ALL SUM( ALL - col1 ) AS col0 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-2279
SELECT ALL SUM ( ALL - col1 ) AS col0 FROM tab1
----
-66

query I rowsort
SELECT col2 * - col1 + + col2 FROM tab1
----
-1248
-236
-3128

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 + + col1 col1, - col1 AS col1 FROM tab2
----
0
-51
0
-67
0
-77

query I rowsort
SELECT DISTINCT + + 24 + 97 FROM tab0 AS cor0
----
121

onlyif mysql # DIV for integer division: 
query I rowsort label-2283
SELECT ALL - col1 * + 80 + + - col0 DIV - 27 FROM tab1 AS cor0
----
-1119
-3757
-397

skipif mysql # not compatible
query I rowsort label-2283
SELECT ALL - col1 * + 80 + + - col0 / - 27 FROM tab1 AS cor0
----
-1119
-3757
-397

onlyif mysql # aggregate syntax: 
query I rowsort label-2284
SELECT DISTINCT COUNT( * ) * - 23 + - ( + + COUNT( * ) ) FROM tab1 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-2284
SELECT DISTINCT COUNT ( * ) * - 23 + - ( + + COUNT ( * ) ) FROM tab1 AS cor0
----
-72

query I rowsort
SELECT ALL col0 + + 7 AS col0 FROM tab0 AS cor0
----
104
22
94

onlyif mysql # aggregate syntax: 
query II rowsort label-2286
SELECT DISTINCT + + COUNT( * ), + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9
9

skipif mysql # not compatible
query II rowsort label-2286
SELECT DISTINCT + + COUNT ( * ), + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 65 col0 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
65

query I rowsort
SELECT ALL + ( - col2 ) AS col1 FROM tab2 cor0
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1, - 95 + - - col1 + + - col1 + - + col1 col2 FROM tab1 AS cor0
----
14
-109
47
-142
5
-100

query I rowsort
SELECT - - 77 + + col0 AS col1 FROM tab0 AS cor0
----
164
174
92

query I rowsort
SELECT ALL + col0 * - col1 * 80 AS col1 FROM tab0 AS cor0
----
-146160
-7760
-97200

query I rowsort
SELECT ALL - 22 + + col2 + col1 + - col1 * + - col0 - - col2 + + + 90 * - col0 * + col0 * - 72 FROM tab2 AS cor0
----
13714101
26547143
36455186

query II rowsort
SELECT DISTINCT + col2, 40 FROM tab2 AS cor0
----
23
40
40
40
58
40

query I rowsort
SELECT col0 * + col0 + 93 * + - col1 + + col0 + ( + col0 ) - - 26 AS col2 FROM tab1 AS cor0
----
1427
4118
6956

onlyif mysql # DIV for integer division: 
query I rowsort label-2295
SELECT - ( + + 63 ) DIV - - col1 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2295
SELECT - ( + + 63 ) / - - col1 FROM tab2
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2296
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL NOT IN ( col2, 25, - ( - 28 ), - CAST( NULL AS SIGNED ) - + CAST( 37 AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-2296
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL NOT IN ( col2, 25, - ( - 28 ), - CAST ( NULL AS INTEGER ) - + CAST ( 37 AS INTEGER ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2297
SELECT + ( - COUNT( - 35 ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2297
SELECT + ( - COUNT ( - 35 ) ) FROM tab1
----
-3

query I rowsort
SELECT ALL + ( + - col1 ) FROM tab2
----
-51
-67
-77

query I rowsort
SELECT col1 / + col0 FROM tab2 WHERE NOT - ( - 68 ) < ( - col0 ) * - col0 + - 55 * - 92 + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2300
SELECT * FROM tab2 WHERE NOT - 44 + - 30 / + - CAST( NULL AS SIGNED ) + 99 / + + col1 > + 8
----

skipif mysql # not compatible
query III rowsort label-2300
SELECT * FROM tab2 WHERE NOT - 44 + - 30 / + - CAST ( NULL AS INTEGER ) + 99 / + + col1 > + 8
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2301
SELECT DISTINCT + 24 * + COUNT( * ) AS col0 FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-2301
SELECT DISTINCT + 24 * + COUNT ( * ) AS col0 FROM tab1
----
72

query I rowsort
SELECT DISTINCT + 72 * - - col1 - - col1 FROM tab2 AS cor0
----
3723
4891
5621

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2303
SELECT - CAST( NULL AS SIGNED ) * - col2 col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2303
SELECT - CAST ( NULL AS INTEGER ) * - col2 col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 19 * + - col0 FROM tab1
----
-1615
-1729
-969

query I rowsort
SELECT DISTINCT - + col2 * - 50 FROM tab2 AS cor0
----
1150
2000
2900

onlyif mysql # aggregate syntax: 
query I rowsort label-2306
SELECT + 87 * + MIN( - + col2 ) + - 97 + - 65 * MIN( 23 ) + + 97 + - 90 FROM tab2 cor0
----
-6631

skipif mysql # not compatible
query I rowsort label-2306
SELECT + 87 * + MIN ( - + col2 ) + - 97 + - 65 * MIN ( 23 ) + + 97 + - 90 FROM tab2 cor0
----
-6631

query I rowsort
SELECT - col1 + + 66 + + - 24 FROM tab2 AS cor0
----
-25
-35
-9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2308
SELECT col1 AS col1, CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-2308
SELECT col1 AS col1, CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 col1, + 34 AS col0 FROM tab0 AS cor0
----
-15
34
-87
34
-97
34

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 = - col2 * - col1 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2311
SELECT - MAX( + + col2 ) AS col2 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-2311
SELECT - MAX ( + + col2 ) AS col2 FROM tab1 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-2312
SELECT DISTINCT COUNT( * ) col1, - 67 + - MAX( ALL - col2 ) AS col0 FROM tab0 AS cor0
----
3
-57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2312
SELECT DISTINCT COUNT ( * ) col1, - 67 + - MAX ( ALL - col2 ) AS col0 FROM tab0 AS cor0
----
3
-57

query III rowsort
SELECT * FROM tab0 WHERE NOT 69 * - + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 86 + col2 FROM tab1
----
145
154
182

onlyif mysql # DIV for integer division: 
query I rowsort label-2315
SELECT ALL - ( + - col0 ) * col2 DIV - col1 FROM tab0
----
-41
-8
-9603

skipif mysql # not compatible
query I rowsort label-2315
SELECT ALL - ( + - col0 ) * col2 / - col1 FROM tab0
----
-41
-8
-9603

query I rowsort
SELECT ALL 4 + - + 44 FROM tab0
----
-40
-40
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2317
SELECT ALL COUNT( * ) DIV 22 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2317
SELECT ALL COUNT ( * ) / 22 AS col0 FROM tab2
----
0

query I rowsort
SELECT - 69 * - col0 AS col0 FROM tab0 AS cor0
----
1035
6003
6693

onlyif mysql # aggregate syntax: 
query I rowsort label-2319
SELECT ALL ( 88 ) + COUNT( * ) AS col2 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-2319
SELECT ALL ( 88 ) + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + ( + 19 ) col2 FROM tab0 AS cor0
----
118
29
66

query II rowsort
SELECT ALL - ( - col0 ) + 0 + col0 AS col0, 69 FROM tab1 AS cor0
----
102
69
170
69
182
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2322
SELECT 96 * - CAST( ( + col2 ) AS SIGNED ) FROM tab0
----
-4512
-9504
-960

skipif mysql # not compatible
query I rowsort label-2322
SELECT 96 * - CAST ( ( + col2 ) AS INTEGER ) FROM tab0
----
-4512
-9504
-960

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2323
SELECT + ( + CAST( NULL AS DECIMAL ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2323
SELECT + ( + CAST ( NULL AS REAL ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - 24 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2325
SELECT COUNT( DISTINCT CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2325
SELECT COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL IN ( + col0, 78 + + + 82 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + ( + + col1 ) + - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2328
SELECT col1 * - CAST( - 35 AS SIGNED ) + col2 - + 48 * - + col1 AS col2 FROM tab1 AS cor0
----
1258
3969
474

skipif mysql # not compatible
query I rowsort label-2328
SELECT col1 * - CAST ( - 35 AS INTEGER ) + col2 - + 48 * - + col1 AS col2 FROM tab1 AS cor0
----
1258
3969
474

query II rowsort
SELECT DISTINCT ( - col0 ), 43 + + col1 AS col2 FROM tab1 AS cor0
----
-51
57
-85
48
-91
90

query I rowsort
SELECT col2 * + 95 AS col0 FROM tab2
----
2185
3800
5510

onlyif mysql # aggregate syntax: 
query I rowsort label-2331
SELECT DISTINCT + COUNT( ALL + + 48 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2331
SELECT DISTINCT + COUNT ( ALL + + 48 ) FROM tab1
----
3

query II rowsort
SELECT col2 AS col1, + col0 AS col2 FROM tab2
----
23
46
40
64
58
75

query II rowsort
SELECT ALL - col2 AS col2, col2 + - col2 FROM tab0 AS cor0
----
-10
0
-47
0
-99
0

query I rowsort
SELECT - + ( + - 23 ) AS col0 FROM tab0 AS cor0
----
23
23
23

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 93 * + + 53 * + col0 * - - col2 < col0 + - - 8 + + 50 + col1 - - + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 26 * col2 AS col2 FROM tab0 AS cor0
----
-1222
-2574
-260

onlyif mysql # aggregate syntax: 
query I rowsort label-2337
SELECT SUM( DISTINCT + 98 ) * 21 FROM tab0
----
2058

skipif mysql # not compatible
query I rowsort label-2337
SELECT SUM ( DISTINCT + 98 ) * 21 FROM tab0
----
2058

query I rowsort
SELECT + 44 * + - col2 FROM tab2
----
-1012
-1760
-2552

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2339
SELECT DISTINCT col1 + ( CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2339
SELECT DISTINCT col1 + ( CAST ( NULL AS REAL ) ) FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 9 col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
9
9
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2341
SELECT ALL COUNT( * ) * + MAX( DISTINCT col0 ) FROM tab1 AS cor0 WHERE + col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2341
SELECT ALL COUNT ( * ) * + MAX ( DISTINCT col0 ) FROM tab1 AS cor0 WHERE + col2 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2342
SELECT DISTINCT + col2 * - CAST( 54 AS SIGNED ) - - col1 AS col1 FROM tab0 AS cor0 WHERE ( col1 ) IS NOT NULL
----
-2457
-519
-5345

skipif mysql # not compatible
query I rowsort label-2342
SELECT DISTINCT + col2 * - CAST ( 54 AS INTEGER ) - - col1 AS col1 FROM tab0 AS cor0 WHERE ( col1 ) IS NOT NULL
----
-2457
-519
-5345

query I rowsort
SELECT col0 + ( + 70 ) AS col1 FROM tab2
----
116
134
145

query I rowsort
SELECT ALL + 57 + + 40 - + - 89 AS col0 FROM tab1
----
186
186
186

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2345
SELECT ALL ( - - CAST( NULL AS SIGNED ) ) / AVG ( 9 ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2345
SELECT ALL ( - - CAST ( NULL AS INTEGER ) ) / AVG ( 9 ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - ( + + 11 ) + col0 - - + col1 FROM tab0
----
85
87
97

query III rowsort
SELECT * FROM tab1 WHERE + 10 < NULL
----

query I rowsort
SELECT + col2 + + col0 * col2 FROM tab2
----
1081
2600
4408

query III rowsort
SELECT * FROM tab0 WHERE + 44 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2350
SELECT ALL + MAX( ALL - + col2 ) + - + 38 FROM tab2
----
-61

skipif mysql # not compatible
query I rowsort label-2350
SELECT ALL + MAX ( ALL - + col2 ) + - + 38 FROM tab2
----
-61

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + 84 * - ( col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2352
SELECT DISTINCT + COUNT( * ) * - COUNT( DISTINCT - col2 ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-2352
SELECT DISTINCT + COUNT ( * ) * - COUNT ( DISTINCT - col2 ) FROM tab1
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-2353
SELECT ALL col1 DIV - 21 FROM tab1 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-2353
SELECT ALL col1 / - 21 FROM tab1 AS cor0
----
-2
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2354
SELECT DISTINCT - col0 DIV + ( + - 54 ) FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-2354
SELECT DISTINCT - col0 / + ( + - 54 ) FROM tab0 AS cor0
----
0
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 > + col0
----
46
51
23
64
77
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2356
SELECT ALL CAST( NULL AS SIGNED ) - COUNT( * ) / - COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2356
SELECT ALL CAST ( NULL AS INTEGER ) - COUNT ( * ) / - COUNT ( * ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2357
SELECT ALL - MIN( DISTINCT col0 ) + + 18 AS col1 FROM tab2
----
-28

skipif mysql # not compatible
query I rowsort label-2357
SELECT ALL - MIN ( DISTINCT col0 ) + + 18 AS col1 FROM tab2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-2358
SELECT DISTINCT 14 - COUNT( 49 ) AS col0 FROM tab0
----
11

skipif mysql # not compatible
query I rowsort label-2358
SELECT DISTINCT 14 - COUNT ( 49 ) AS col0 FROM tab0
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2359
SELECT ALL + CAST( NULL AS SIGNED ) + - col1 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2359
SELECT ALL + CAST ( NULL AS INTEGER ) + - col1 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 40 + col1 col2 FROM tab1 cor0
----
45
54
87

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - 26 / col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2362
SELECT ALL - ( COUNT( * ) ) DIV - + COUNT( * ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2362
SELECT ALL - ( COUNT ( * ) ) / - + COUNT ( * ) FROM tab1 AS cor0
----
1

query I rowsort
SELECT 20 * 58 FROM tab2 AS cor0
----
1160
1160
1160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 AS col1, + col2 + col2 col2 FROM tab0 AS cor0
----
15
94
87
20
97
198

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2365
SELECT - - CAST( col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-2365
SELECT - - CAST ( col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
14
47
5

query II rowsort
SELECT ALL col2, - 60 FROM tab1 AS cor0
----
59
-60
68
-60
96
-60

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col0 NOT IN ( + + col0, - 9, col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - 79 col1 FROM tab2 AS cor0
----
-12
-2
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-2369
SELECT 59 + COUNT( * ) AS col2 FROM tab1
----
62

skipif mysql # not compatible
query I rowsort label-2369
SELECT 59 + COUNT ( * ) AS col2 FROM tab1
----
62

query I rowsort
SELECT - 83 + - col1 * - ( - col0 ) + - 26 FROM tab1 AS cor0
----
-4386
-534
-823

onlyif mysql # aggregate syntax: 
query I rowsort label-2371
SELECT ALL + MIN( DISTINCT + + col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-2371
SELECT ALL + MIN ( DISTINCT + + col0 ) FROM tab1 AS cor0
----
51

query I rowsort
SELECT DISTINCT 51 AS col2 FROM tab0 AS cor0 WHERE NOT + col2 * - 28 IS NULL
----
51

query II rowsort
SELECT + 45, 33 AS col0 FROM tab2 AS cor0
----
45
33
45
33
45
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2374
SELECT MAX( + + 85 ) AS col0 FROM tab1 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-2374
SELECT MAX ( + + 85 ) AS col0 FROM tab1 AS cor0
----
85

query I rowsort
SELECT ALL + 14 + - - 53 AS col0 FROM tab1 AS cor0
----
67
67
67

query I rowsort
SELECT ALL - col0 * + 64 + + + col2 + - col2 AS col1 FROM tab0 AS cor0
----
-5568
-6208
-960

onlyif mysql # aggregate syntax: 
query I rowsort label-2377
SELECT MIN( ALL col2 ) AS col0 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-2377
SELECT MIN ( ALL col2 ) AS col0 FROM tab1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2378
SELECT DISTINCT + 91 + - COUNT( * ) AS col2 FROM tab2
----
88

skipif mysql # not compatible
query I rowsort label-2378
SELECT DISTINCT + 91 + - COUNT ( * ) AS col2 FROM tab2
----
88

query I rowsort
SELECT ALL - col1 + - + col1 * - + 47 * - 72 * + + col2 FROM tab2
----
-10422797
-13150291
-3969483

query III rowsort
SELECT ALL * FROM tab2 WHERE - + 14 + + - col2 - - col1 * - col0 + - col2 NOT BETWEEN + ( - col1 ) + - col1 AND - - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-2381
SELECT DISTINCT COUNT( * ) + + 77 AS col1, 39 + + 24 FROM tab2
----
80
63

skipif mysql # not compatible
query II rowsort label-2381
SELECT DISTINCT COUNT ( * ) + + 77 AS col1, 39 + + 24 FROM tab2
----
80
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 61 col1 FROM tab0
----
61
61
61

query I rowsort
SELECT DISTINCT - col2 * + col2 + col1 * col2 FROM tab0
----
-9702
110
1598

onlyif mysql # aggregate syntax: 
query I rowsort label-2384
SELECT + 18 + + MIN( DISTINCT - col0 ) FROM tab2 cor0
----
-57

skipif mysql # not compatible
query I rowsort label-2384
SELECT + 18 + + MIN ( DISTINCT - col0 ) FROM tab2 cor0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-2385
SELECT DISTINCT - + MAX( ALL 30 ) FROM tab0 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-2385
SELECT DISTINCT - + MAX ( ALL 30 ) FROM tab0 AS cor0
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-2386
SELECT + 39, SUM( DISTINCT 38 ) AS col1 FROM tab1
----
39
38

skipif mysql # not compatible
query II rowsort label-2386
SELECT + 39, SUM ( DISTINCT 38 ) AS col1 FROM tab1
----
39
38

query I rowsort
SELECT ALL + 32 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d30a2acbf33c88274474306936d3227b

onlyif mysql # aggregate syntax: 
query I rowsort label-2388
SELECT - ( + COUNT( * ) ) * - MIN( + col2 ) + COUNT( * ) AS col2 FROM tab1 cor0
----
180

skipif mysql # not compatible
query I rowsort label-2388
SELECT - ( + COUNT ( * ) ) * - MIN ( + col2 ) + COUNT ( * ) AS col2 FROM tab1 cor0
----
180

query II rowsort
SELECT - - col2, + col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN ( + col1 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2390
SELECT ALL - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT + 81 NOT BETWEEN NULL AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2390
SELECT ALL - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT + 81 NOT BETWEEN NULL AND + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2391
SELECT - - MAX( - 13 ) * 7 + - COUNT( * ) FROM tab1 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-2391
SELECT - - MAX ( - 13 ) * 7 + - COUNT ( * ) FROM tab1 AS cor0
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2392
SELECT DISTINCT * FROM tab2 WHERE NOT col2 * CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2392
SELECT DISTINCT * FROM tab2 WHERE NOT col2 * CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 * + 25 FROM tab0
----
2025
25
525

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( ( 37 IS NOT NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2395
SELECT - SUM( DISTINCT col1 ) col1 FROM tab0
----
-103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2395
SELECT - SUM ( DISTINCT col1 ) col1 FROM tab0
----
-103

query II rowsort
SELECT DISTINCT - ( + col0 ), col2 + col0 AS col0 FROM tab1
----
-51
147
-85
144
-91
159

query II rowsort
SELECT ALL 63 AS col0, + 95 + col2 FROM tab1
----
63
154
63
163
63
191

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 / - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2399
SELECT - ( + COUNT( * ) ) + - + 91 FROM tab1 AS cor0 WHERE NOT + col0 IS NOT NULL
----
-91

skipif mysql # not compatible
query I rowsort label-2399
SELECT - ( + COUNT ( * ) ) + - + 91 FROM tab1 AS cor0 WHERE NOT + col0 IS NOT NULL
----
-91

query II rowsort
SELECT ALL - col1, - 78 AS col0 FROM tab2 AS cor0
----
-51
-78
-67
-78
-77
-78

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2401
SELECT CAST( NULL AS SIGNED ) col2, - col2 col0 FROM tab0 AS cor0 WHERE NOT ( 72 ) <> col0
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2401
SELECT CAST ( NULL AS INTEGER ) col2, - col2 col0 FROM tab0 AS cor0 WHERE NOT ( 72 ) <> col0
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND ( + col2 )
----

query I rowsort
SELECT DISTINCT ( + 51 ) AS col1 FROM tab0
----
51

query I rowsort
SELECT DISTINCT + 99 AS col2 FROM tab1 WHERE NOT - - 24 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2405
SELECT DISTINCT - 20, + 31 FROM tab2 WHERE NOT + 17 >= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query II rowsort label-2405
SELECT DISTINCT - 20, + 31 FROM tab2 WHERE NOT + 17 >= + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - 36 FROM tab2 AS cor0 WHERE col2 - 72 < col1
----
-36
-36
-36

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( - col0 * + col0, + 46, - + 9, - col2, + col2, + - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2408
SELECT DISTINCT + + CAST( + + 54 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-2408
SELECT DISTINCT + + CAST ( + + 54 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2409
SELECT DISTINCT CAST( + 1 AS SIGNED ) AS col0, COUNT( - col2 ) FROM tab1 cor0
----
1
3

skipif mysql # not compatible
query II rowsort label-2409
SELECT DISTINCT CAST ( + 1 AS INTEGER ) AS col0, COUNT ( - col2 ) FROM tab1 cor0
----
1
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2410
SELECT col2 col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND + col0 - + CAST( NULL AS SIGNED ) - col0 + + 41 * + col2 + - col1
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2410
SELECT col2 col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND + col0 - + CAST ( NULL AS INTEGER ) - col0 + + 41 * + col2 + - col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) > + col0
----

query II rowsort
SELECT ALL 42 + 47 AS col0, col0 AS col2 FROM tab2 AS cor0
----
89
46
89
64
89
75

onlyif mysql # DIV for integer division: 
query I rowsort label-2413
SELECT ALL - col2 DIV + + 40 + - - 15 + - col1 col1 FROM tab2 AS cor0 WHERE NOT + col0 < - + col0
----
-36
-53
-63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2413
SELECT ALL - col2 / + + 40 + - - 15 + - col1 col1 FROM tab2 AS cor0 WHERE NOT + col0 < - + col0
----
-36
-53
-63

query I rowsort
SELECT ALL + 94 AS col0 FROM tab2 WHERE + col0 * col1 IS NULL
----

query I rowsort
SELECT DISTINCT col0 - + - col2 AS col2 FROM tab2
----
104
133
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2416
SELECT ALL + ( - CAST( - col0 AS SIGNED ) ) + - + 15 * - - 82 FROM tab0
----
-1133
-1143
-1215

skipif mysql # not compatible
query I rowsort label-2416
SELECT ALL + ( - CAST ( - col0 AS INTEGER ) ) + - + 15 * - - 82 FROM tab0
----
-1133
-1143
-1215

query I rowsort
SELECT DISTINCT col2 + 51 FROM tab2
----
109
74
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2418
SELECT - MIN( + 96 ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-2418
SELECT - MIN ( + 96 ) FROM tab1
----
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-2419
SELECT ALL 92 AS col2, - COUNT( * ) AS col0 FROM tab0
----
92
-3

skipif mysql # not compatible
query II rowsort label-2419
SELECT ALL 92 AS col2, - COUNT ( * ) AS col0 FROM tab0
----
92
-3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - 96 AND ( + col0 ) + col0
----

query I rowsort
SELECT col2 - + col2 * + ( + 35 ) + + 67 FROM tab0 AS cor0
----
-1531
-273
-3299

query I rowsort
SELECT - col2 - + - col2 + col0 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2423
SELECT ALL COUNT( * ) + - 23 + - COUNT( * ) + - - 25 + 37 * AVG ( + - CAST( NULL AS SIGNED ) ) col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2423
SELECT ALL COUNT ( * ) + - 23 + - COUNT ( * ) + - - 25 + 37 * AVG ( + - CAST ( NULL AS INTEGER ) ) col0 FROM tab1 AS cor0
----
NULL

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 LEFT OUTER JOIN tab0 AS cor1 ON NOT ( NULL ) IS NULL
----
18 values hashing to d882cc47988b8673bd5cc0da3b69bcc6

onlyif mysql # aggregate syntax: 
query I rowsort label-2425
SELECT DISTINCT ( + + SUM( DISTINCT - + col0 ) ) AS col0 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-2425
SELECT DISTINCT ( + + SUM ( DISTINCT - + col0 ) ) AS col0 FROM tab0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-2426
SELECT DISTINCT + COUNT( * ) * 49 + - 96 + - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
336

skipif mysql # not compatible
query I rowsort label-2426
SELECT DISTINCT + COUNT ( * ) * 49 + - 96 + - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
336

query I rowsort
SELECT ( col0 ) AS col0 FROM tab2 cor0 WHERE NOT col0 <= col0 * + col1
----

query I rowsort
SELECT + + col0 * - col0 * + + col2 AS col0 FROM tab1 AS cor0
----
-249696
-426275
-563108

query I rowsort
SELECT ALL + col0 * + + ( + 65 ) AS col1 FROM tab2 AS cor0
----
2990
4160
4875

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 < - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - col1 + - 98 IS NOT NULL
----

query I rowsort
SELECT - 22 * col1 + col1 FROM tab1 cor0
----
-105
-294
-987

onlyif mysql # aggregate syntax: 
query I rowsort label-2433
SELECT DISTINCT - SUM( ALL - 89 ) AS col2 FROM tab0
----
267

skipif mysql # not compatible
query I rowsort label-2433
SELECT DISTINCT - SUM ( ALL - 89 ) AS col2 FROM tab0
----
267

query I rowsort
SELECT + col1 * + + 50 FROM tab0
----
1050
4050
50

onlyif mysql # DIV for integer division: 
query I rowsort label-2435
SELECT DISTINCT + 29 DIV + 53 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2435
SELECT DISTINCT + 29 / + 53 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2436
SELECT DISTINCT * FROM tab1 WHERE NOT col1 BETWEEN + + CAST( + + col0 AS SIGNED ) + 87 AND - col0 / col0 * + 99 + + col0 + - col0 - + + col2 * + col2 * col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2436
SELECT DISTINCT * FROM tab1 WHERE NOT col1 BETWEEN + + CAST ( + + col0 AS INTEGER ) + 87 AND - col0 / col0 * + 99 + + col0 + - col0 - + + col2 * + col2 * col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2437
SELECT ALL COUNT( ALL + col0 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2437
SELECT ALL COUNT ( ALL + col0 ) AS col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2438
SELECT ALL MAX( - col0 ) FROM tab0 WHERE NOT + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2438
SELECT ALL MAX ( - col0 ) FROM tab0 WHERE NOT + col1 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2439
SELECT DISTINCT + ( + + MIN( DISTINCT - col1 ) ) + + MAX( + + 59 ) AS col0, 28 AS col0 FROM tab0 AS cor0
----
-22
28

skipif mysql # not compatible
query II rowsort label-2439
SELECT DISTINCT + ( + + MIN ( DISTINCT - col1 ) ) + + MAX ( + + 59 ) AS col0, 28 AS col0 FROM tab0 AS cor0
----
-22
28

query I rowsort
SELECT DISTINCT - col2 - col0 / + col0 AS col0 FROM tab0 AS cor0 WHERE NULL <> NULL
----

query I rowsort
SELECT DISTINCT - col0 + - - col2 AS col2 FROM tab2 AS cor0
----
-17
-23
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-2442
SELECT ALL - col1 DIV + col1 + - + col1 AS col1 FROM tab0
----
-2
-22
-82

skipif mysql # not compatible
query I rowsort label-2442
SELECT ALL - col1 / + col1 + - + col1 AS col1 FROM tab0
----
-2
-22
-82

query I rowsort
SELECT ALL + + col2 * col2 AS col1 FROM tab0 WHERE + col1 / - + col0 + - + col2 IS NOT NULL
----
100
2209
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-2444
SELECT ALL MAX( DISTINCT - ( + col1 ) ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-2444
SELECT ALL MAX ( DISTINCT - ( + col1 ) ) FROM tab1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2445
SELECT DISTINCT SUM( DISTINCT col1 ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-2445
SELECT DISTINCT SUM ( DISTINCT col1 ) FROM tab0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-2446
SELECT - SUM( DISTINCT 42 ) AS col0 FROM tab1 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-2446
SELECT - SUM ( DISTINCT 42 ) AS col0 FROM tab1 AS cor0
----
-42

query II rowsort
SELECT ALL col2 AS col1, + col0 FROM tab2 AS cor0
----
23
46
40
64
58
75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 47 <= - + col0
----

query II rowsort
SELECT ALL + col1 AS col2, + col1 + - - col0 FROM tab0 AS cor0
----
1
98
21
108
81
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2450
SELECT SUM( - col1 ) FROM tab0 cor0
----
-103

skipif mysql # not compatible
query I rowsort label-2450
SELECT SUM ( - col1 ) FROM tab0 cor0
----
-103

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 = + col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2452
SELECT * FROM tab0 AS cor0 WHERE - col0 * - col2 + - CAST( NULL AS DECIMAL ) * - col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2452
SELECT * FROM tab0 AS cor0 WHERE - col0 * - col2 + - CAST ( NULL AS REAL ) * - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 + ( - ( + col1 ) ) FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 WHERE - col0 * - + 55 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2455
SELECT col2 DIV col0 - + 71 + - col1 AS col2 FROM tab1
----
-118
-76
-84

skipif mysql # not compatible
query I rowsort label-2455
SELECT col2 / col0 - + 71 + - col1 AS col2 FROM tab1
----
-118
-76
-84

query I rowsort
SELECT ALL ( + col2 ) - - - 30 FROM tab0
----
-20
17
69

query I rowsort
SELECT DISTINCT 18 * - col0 AS col2 FROM tab1
----
-1530
-1638
-918

query I rowsort
SELECT + col1 * - 41 + - col1 AS col0 FROM tab1
----
-1974
-210
-588

query II rowsort
SELECT - col0 + col2, col2 FROM tab1
----
-23
68
-26
59
45
96

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - 7 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2461
SELECT DISTINCT - CAST( - MIN( ALL - col1 ) AS SIGNED ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-2461
SELECT DISTINCT - CAST ( - MIN ( ALL - col1 ) AS INTEGER ) FROM tab0 AS cor0
----
-81

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE NOT 75 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col1, - col2 AS col1 FROM tab0
----
1
-99
21
-10
81
-47

query I rowsort
SELECT - col1 * - - 32 AS col2 FROM tab2
----
-1632
-2144
-2464

query I rowsort
SELECT ALL - col0 FROM tab2 AS cor0 WHERE + 97 - - col1 > - col2
----
-46
-64
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2466
SELECT DISTINCT - 55 DIV + COUNT( ALL + - 61 ) + - COUNT( col2 ) FROM tab1 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-2466
SELECT DISTINCT - 55 / + COUNT ( ALL + - 61 ) + - COUNT ( col2 ) FROM tab1 AS cor0
----
-21

onlyif mysql # DIV for integer division: 
query II rowsort label-2467
SELECT col2 col2, col2 DIV - - col0 AS col2 FROM tab2 AS cor0
----
23
0
40
0
58
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2467
SELECT col2 col2, col2 / - - col0 AS col2 FROM tab2 AS cor0
----
23
0
40
0
58
0

query I rowsort
SELECT ALL - col0 * + 50 FROM tab0 AS cor0
----
-4350
-4850
-750

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + - col1 * - - col2 FROM tab0 cor0
----
-210
-3807
-99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2471
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 < - CAST( - - 90 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2471
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 < - CAST ( - - 90 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2472
SELECT ALL + COUNT( + - 66 ) AS col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2472
SELECT ALL + COUNT ( + - 66 ) AS col1 FROM tab1 cor0
----
3

query II rowsort
SELECT ALL + 37, col0 AS col2 FROM tab2 AS cor0
----
37
46
37
64
37
75

query II rowsort
SELECT DISTINCT - 47, col0 / + - col1 + col0 FROM tab1 AS cor0 WHERE NOT + col2 - - - col1 > NULL
----

query I rowsort
SELECT + 58 * - + col0 AS col1 FROM tab0
----
-5046
-5626
-870

query II rowsort
SELECT ALL 71 * + col0 * + + 5 + + + col2, col2 FROM tab1
----
18201
96
30234
59
32373
68

query I rowsort
SELECT ALL col0 * + + ( col1 ) FROM tab2
----
2346
4928
5025

query I rowsort
SELECT ALL + col0 * - - 30 - - col1 FROM tab0 AS cor0
----
2631
2911
531

query I rowsort
SELECT + 74 + + col1 + + 14 * 75 AS col0 FROM tab1 AS cor0
----
1129
1138
1171

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2480
SELECT ALL + CAST( NULL AS SIGNED ) / - - col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2480
SELECT ALL + CAST ( NULL AS INTEGER ) / - - col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2481
SELECT DISTINCT - 82 DIV - - col0 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-2481
SELECT DISTINCT - 82 / - - col0 FROM tab1 AS cor0
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2482
SELECT + COUNT( DISTINCT - col0 ) * 97 + + 84 FROM tab0 WHERE NULL IS NOT NULL
----
84

skipif mysql # not compatible
query I rowsort label-2482
SELECT + COUNT ( DISTINCT - col0 ) * 97 + + 84 FROM tab0 WHERE NULL IS NOT NULL
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2483
SELECT COUNT( ALL + 35 ) + + - COUNT( * ) FROM tab1 WHERE - CAST( 82 AS SIGNED ) > NULL
----
0

skipif mysql # not compatible
query I rowsort label-2483
SELECT COUNT ( ALL + 35 ) + + - COUNT ( * ) FROM tab1 WHERE - CAST ( 82 AS INTEGER ) > NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2484
SELECT - 22 * - COUNT( * ) FROM tab2
----
66

skipif mysql # not compatible
query I rowsort label-2484
SELECT - 22 * - COUNT ( * ) FROM tab2
----
66

query I rowsort
SELECT DISTINCT 10 + col0 FROM tab1
----
101
61
95

query II rowsort
SELECT ALL col1 AS col1, + col2 AS col0 FROM tab2
----
51
23
67
58
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2487
SELECT DISTINCT + + ( - + COUNT( * ) ) AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2487
SELECT DISTINCT + + ( - + COUNT ( * ) ) AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT DISTINCT col1 + - 63 FROM tab1 AS cor0
----
-16
-49
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2489
SELECT col2 * CAST( - - col2 AS SIGNED ) + + - 42 AS col0 FROM tab0 AS cor0
----
2167
58
9759

skipif mysql # not compatible
query I rowsort label-2489
SELECT col2 * CAST ( - - col2 AS INTEGER ) + + - 42 AS col0 FROM tab0 AS cor0
----
2167
58
9759

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2490
SELECT + + 29 + + - 36 + + col0 + + col1 + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2490
SELECT + + 29 + + - 36 + + col0 + + col1 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2491
SELECT COUNT( * ) * 93 + + 25 AS col2 FROM tab0
----
304

skipif mysql # not compatible
query I rowsort label-2491
SELECT COUNT ( * ) * 93 + + 25 AS col2 FROM tab0
----
304

query I rowsort
SELECT ALL + 86 + 31 AS col0 FROM tab0
----
117
117
117

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2493
SELECT 17 DIV - COUNT( * ) AS col1 FROM tab0
----
-5

skipif mysql # not compatible
query I rowsort label-2493
SELECT 17 / - COUNT ( * ) AS col1 FROM tab0
----
-5

query III rowsort
SELECT * FROM tab2 WHERE NULL <= - - 96 + - 32 + - 0 * - col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2495
SELECT col0 AS col0, - col1 DIV 42 FROM tab0
----
15
-1
87
0
97
0

skipif mysql # not compatible
query II rowsort label-2495
SELECT col0 AS col0, - col1 / 42 FROM tab0
----
15
-1
87
0
97
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 48 + - + col0 BETWEEN NULL AND + + col1
----

query II rowsort
SELECT col1, + col0 AS col2 FROM tab0 AS cor0
----
1
97
21
87
81
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2498
SELECT - COUNT( * ) * + - CAST( - 11 AS SIGNED ) col0 FROM tab1 cor0
----
-33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2498
SELECT - COUNT ( * ) * + - CAST ( - 11 AS INTEGER ) col0 FROM tab1 cor0
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-2499
SELECT - ( 57 ) * + 39 * + - 47 * - SUM( col2 ) AS col2, + COUNT( * ) col0 FROM tab2 AS cor0
----
-12642201
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2499
SELECT - ( 57 ) * + 39 * + - 47 * - SUM ( col2 ) AS col2, + COUNT ( * ) col0 FROM tab2 AS cor0
----
-12642201
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2500
SELECT DISTINCT MIN( ALL + 58 ) AS col0 FROM tab0 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-2500
SELECT DISTINCT MIN ( ALL + 58 ) AS col0 FROM tab0 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2501
SELECT DISTINCT - COUNT( * ) col1 FROM tab0 AS cor0 WHERE NOT 51 IS NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2501
SELECT DISTINCT - COUNT ( * ) col1 FROM tab0 AS cor0 WHERE NOT 51 IS NULL
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 92 col0 FROM tab1 cor0
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2503
SELECT + COUNT( ( CAST( NULL AS SIGNED ) ) ) AS col1, MAX( DISTINCT - col2 ) * - COUNT( ( + - col1 ) ) * 87 AS col2 FROM tab0 AS cor0
----
0
2610

skipif mysql # not compatible
query II rowsort label-2503
SELECT + COUNT ( ( CAST ( NULL AS INTEGER ) ) ) AS col1, MAX ( DISTINCT - col2 ) * - COUNT ( ( + - col1 ) ) * 87 AS col2 FROM tab0 AS cor0
----
0
2610

query II rowsort
SELECT ALL col2 + + col0, + col0 FROM tab0 AS cor0
----
196
97
62
15
97
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + - col1 col0 FROM tab0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2506
SELECT ALL 1 * COUNT( * ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2506
SELECT ALL 1 * COUNT ( * ) AS col2 FROM tab2
----
3

query I rowsort
SELECT 95 * - + col2 FROM tab0
----
-4465
-9405
-950

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2508
SELECT DISTINCT col0 * - - CAST( + col2 AS SIGNED ) AS col2 FROM tab2
----
1058
2560
4350

skipif mysql # not compatible
query I rowsort label-2508
SELECT DISTINCT col0 * - - CAST ( + col2 AS INTEGER ) AS col2 FROM tab2
----
1058
2560
4350

query I rowsort
SELECT col1 * + + 7 FROM tab0
----
147
567
7

query I rowsort
SELECT 64 + - 30 FROM tab2 AS cor0
----
34
34
34

query I rowsort
SELECT ALL - + 87 + - col2 AS col2 FROM tab2 AS cor0
----
-110
-127
-145

query II rowsort
SELECT - + col2 * + 90 * col2, - 69 * + col2 AS col1 FROM tab0 AS cor0 WHERE col1 = - + 34
----

query I rowsort
SELECT col0 FROM tab1 WHERE - col0 NOT IN ( col2 )
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2514
SELECT - 25 FROM tab1 WHERE NOT ( NULL ) <> CAST( NULL AS SIGNED ) * 90
----

skipif mysql # not compatible
query I rowsort label-2514
SELECT - 25 FROM tab1 WHERE NOT ( NULL ) <> CAST ( NULL AS INTEGER ) * 90
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2515
SELECT 55 AS col1 FROM tab0 WHERE NOT NULL BETWEEN + 25 * ( + 32 / col2 ) AND - CAST( NULL AS SIGNED ) / - col0
----

skipif mysql # not compatible
query I rowsort label-2515
SELECT 55 AS col1 FROM tab0 WHERE NOT NULL BETWEEN + 25 * ( + 32 / col2 ) AND - CAST ( NULL AS INTEGER ) / - col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2516
SELECT ALL 65 DIV MIN( DISTINCT 21 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2516
SELECT ALL 65 / MIN ( DISTINCT 21 ) FROM tab2
----
3

query I rowsort
SELECT col2 * 35 AS col1 FROM tab0
----
1645
3465
350

query I rowsort
SELECT DISTINCT ( - 62 ) * col1 FROM tab2
----
-3162
-4154
-4774

query I rowsort
SELECT ALL - col2 AS col0 FROM tab2 WHERE col2 + + 89 IN ( - col1 )
----

query I rowsort
SELECT col2 - - 37 * col2 FROM tab2
----
1520
2204
874

query III rowsort
SELECT * FROM tab2 WHERE col0 + col0 * + col2 IS NULL
----

query I rowsort
SELECT + col1 + + col0 AS col0 FROM tab0 WHERE NULL NOT BETWEEN NULL AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2523
SELECT DISTINCT ( MAX( 31 ) ) AS col2 FROM tab0
----
31

skipif mysql # not compatible
query I rowsort label-2523
SELECT DISTINCT ( MAX ( 31 ) ) AS col2 FROM tab0
----
31

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 <= ( col2 - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 + - 61 AS col0 FROM tab2 WHERE NOT 10 IS NULL
----
-15
14
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2526
SELECT ALL + SUM( ALL col2 ) DIV - 21 FROM tab0
----
-7

skipif mysql # not compatible
query I rowsort label-2526
SELECT ALL + SUM ( ALL col2 ) / - 21 FROM tab0
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2527
SELECT DISTINCT MAX( DISTINCT 60 ) FROM tab1 WHERE NOT - CAST( NULL AS SIGNED ) * + col1 BETWEEN ( + col0 * - col2 ) AND ( - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2527
SELECT DISTINCT MAX ( DISTINCT 60 ) FROM tab1 WHERE NOT - CAST ( NULL AS INTEGER ) * + col1 BETWEEN ( + col0 * - col2 ) AND ( - col1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2528
SELECT DISTINCT COUNT( * ) - 14 FROM tab0 WHERE NULL IN ( col0 )
----
-14

skipif mysql # not compatible
query I rowsort label-2528
SELECT DISTINCT COUNT ( * ) - 14 FROM tab0 WHERE NULL IN ( col0 )
----
-14

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab2 WHERE col1 * + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2530
SELECT ALL 3 - MIN( ALL col2 ) AS col0 FROM tab0
----
-7

skipif mysql # not compatible
query I rowsort label-2530
SELECT ALL 3 - MIN ( ALL col2 ) AS col0 FROM tab0
----
-7

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 / + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 AS col2 FROM tab0 WHERE NOT NULL < + col0
----

query I rowsort
SELECT col0 AS col1 FROM tab2 WHERE NULL <= + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2534
SELECT SUM( DISTINCT - 93 ) AS col1 FROM tab1
----
-93

skipif mysql # not compatible
query I rowsort label-2534
SELECT SUM ( DISTINCT - 93 ) AS col1 FROM tab1
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2535
SELECT * FROM tab0 WHERE NOT col1 NOT IN ( + 6 + - CAST( NULL AS SIGNED ) * + col1 )
----

skipif mysql # not compatible
query III rowsort label-2535
SELECT * FROM tab0 WHERE NOT col1 NOT IN ( + 6 + - CAST ( NULL AS INTEGER ) * + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2536
SELECT ALL - 10 DIV 49 FROM tab1 WHERE NOT NULL IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2536
SELECT ALL - 10 / 49 FROM tab1 WHERE NOT NULL IS NOT NULL
----
0
0
0

query I rowsort
SELECT DISTINCT - 68 FROM tab1 WHERE NOT 79 <> 83 + + col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 83 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 64 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2540
SELECT - col0 * - CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) / 68 NOT BETWEEN + col2 AND + CAST( NULL AS DECIMAL ) * col0
----

skipif mysql # not compatible
query I rowsort label-2540
SELECT - col0 * - CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) / 68 NOT BETWEEN + col2 AND + CAST ( NULL AS REAL ) * col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2541
SELECT + 45 FROM tab1 WHERE NOT NULL IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-2541
SELECT + 45 FROM tab1 WHERE NOT NULL IN ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2542
SELECT ALL + AVG ( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2542
SELECT ALL + AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE NOT ( col1 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE col2 > col2 / col0
----
46
64
75

query I rowsort
SELECT DISTINCT - ( col1 ) * 69 FROM tab0 AS cor0
----
-1449
-5589
-69

query I rowsort
SELECT col2 FROM tab0 WHERE NOT + col2 BETWEEN ( + col2 ) AND ( col1 * - 77 + + col1 )
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2547
SELECT - COUNT( * ) AS col0 FROM tab2 WHERE NOT + col1 NOT IN ( - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-2547
SELECT - COUNT ( * ) AS col0 FROM tab2 WHERE NOT + col1 NOT IN ( - col2 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2548
SELECT ALL + COUNT( * ) AS col2 FROM tab1 WHERE - 91 + col0 * col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2548
SELECT ALL + COUNT ( * ) AS col2 FROM tab1 WHERE - 91 + col0 * col1 IS NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + 64 * 36 - - col1 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab0 AS cor0 WHERE + ( - 16 ) IS NOT NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2551
SELECT DISTINCT + + MIN( ALL - col0 ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-2551
SELECT DISTINCT + + MIN ( ALL - col0 ) FROM tab0 AS cor0
----
-97

query I rowsort
SELECT ALL + + ( 88 ) FROM tab2 AS cor0
----
88
88
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2553
SELECT - - CAST( + 72 AS SIGNED ) FROM tab2 AS cor0
----
72
72
72

skipif mysql # not compatible
query I rowsort label-2553
SELECT - - CAST ( + 72 AS INTEGER ) FROM tab2 AS cor0
----
72
72
72

query I rowsort
SELECT + ( ( 56 ) ) AS col0 FROM tab2 AS cor0
----
56
56
56

query I rowsort
SELECT DISTINCT - - 51 AS col1 FROM tab1 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2556
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL <> - col0
----
0

skipif mysql # not compatible
query I rowsort label-2556
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL <> - col0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2557
SELECT DISTINCT col2 + - CAST( NULL AS DECIMAL ) * col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2557
SELECT DISTINCT col2 + - CAST ( NULL AS REAL ) * col0 FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( 45 ) <> ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2559
SELECT ALL col2 * - col2 * - col2 + - col1 DIV - 53 FROM tab0
----
1000
103824
970299

skipif mysql # not compatible
query I rowsort label-2559
SELECT ALL col2 * - col2 * - col2 + - col1 / - 53 FROM tab0
----
1000
103824
970299

onlyif mysql # aggregate syntax: 
query I rowsort label-2560
SELECT DISTINCT - COUNT( DISTINCT + 3 ) AS col2 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-2560
SELECT DISTINCT - COUNT ( DISTINCT + 3 ) AS col2 FROM tab2
----
-1

query I rowsort
SELECT + col1 FROM tab1 WHERE + col0 + col2 > NULL
----

query I rowsort
SELECT DISTINCT 29 + ( col2 ) + 64 AS col2 FROM tab2
----
116
133
151

query III rowsort
SELECT * FROM tab1 WHERE col2 IN ( + col0 * + 3 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab1 WHERE col2 + - 28 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2565
SELECT CAST( + - col1 AS SIGNED ) * 54 + + 69 AS col2 FROM tab2
----
-2685
-3549
-4089

skipif mysql # not compatible
query I rowsort label-2565
SELECT CAST ( + - col1 AS INTEGER ) * 54 + + 69 AS col2 FROM tab2
----
-2685
-3549
-4089

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2566
SELECT ALL CAST( NULL AS SIGNED ) * MAX( ALL ( + 67 ) ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2566
SELECT ALL CAST ( NULL AS INTEGER ) * MAX ( ALL ( + 67 ) ) AS col2 FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col2 + + col2 ) >= + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2568
SELECT - COUNT( * ) + - 11 - - COUNT( * ) AS col0 FROM tab0
----
-11

skipif mysql # not compatible
query I rowsort label-2568
SELECT - COUNT ( * ) + - 11 - - COUNT ( * ) AS col0 FROM tab0
----
-11

query I rowsort
SELECT ALL ( 88 ) FROM tab2
----
88
88
88

query III rowsort
SELECT * FROM tab2 WHERE - col1 / ( + 81 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2571
SELECT ALL + - COUNT( - col0 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2571
SELECT ALL + - COUNT ( - col0 ) FROM tab2 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2573
SELECT COUNT( DISTINCT 29 ) + + 37 AS col2 FROM tab1 AS cor0 WHERE ( + col2 ) BETWEEN ( - col0 ) AND ( ( col2 ) )
----
38

skipif mysql # not compatible
query I rowsort label-2573
SELECT COUNT ( DISTINCT 29 ) + + 37 AS col2 FROM tab1 AS cor0 WHERE ( + col2 ) BETWEEN ( - col0 ) AND ( ( col2 ) )
----
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 - + col1 * col0 col1 FROM tab0 AS cor0
----
-1168
-1817
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2575
SELECT - COUNT( * ) * - COUNT( * ) AS col1 FROM tab2 WHERE - + ( col0 ) * - col2 IN ( col2 * - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-2575
SELECT - COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab2 WHERE - + ( col0 ) * - col2 IN ( col2 * - col2 )
----
0

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 47 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2577
SELECT - COUNT( * ) col2 FROM tab0 WHERE NULL NOT IN ( + col2 - + ( col0 ) * + col0 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2577
SELECT - COUNT ( * ) col2 FROM tab0 WHERE NULL NOT IN ( + col2 - + ( col0 ) * + col0 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 <= ( - 19 )
----

query I rowsort
SELECT DISTINCT - ( - ( + col1 ) ) * - col0 AS col2 FROM tab1 AS cor0
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-2580
SELECT DISTINCT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( + col0 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2580
SELECT DISTINCT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( + col0 ) IS NOT NULL
----
0

query I rowsort
SELECT - + 89 * + ( + col1 ) * + col0 FROM tab2 AS cor0
----
-208794
-438592
-447225

onlyif mysql # aggregate syntax: 
query I rowsort label-2582
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN + col0 + + col0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2582
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN + col0 + + col0 AND NULL
----
0

query II rowsort
SELECT - 43, + col2 AS col0 FROM tab0 AS cor0
----
-43
10
-43
47
-43
99

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 82 * - col2 * - col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) IN ( + 41 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2586
SELECT 63 - + col1 AS col0 FROM tab0 WHERE NOT CAST( + - col1 AS SIGNED ) IS NULL
----
-18
42
62

skipif mysql # not compatible
query I rowsort label-2586
SELECT 63 - + col1 AS col0 FROM tab0 WHERE NOT CAST ( + - col1 AS INTEGER ) IS NULL
----
-18
42
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2587
SELECT + COUNT( ALL - - col1 ) DIV 93 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2587
SELECT + COUNT ( ALL - - col1 ) / 93 FROM tab0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2588
SELECT ALL - CAST( 35 AS SIGNED ) * - COUNT( * ) col1 FROM tab1
----
105

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2588
SELECT ALL - CAST ( 35 AS INTEGER ) * - COUNT ( * ) col1 FROM tab1
----
105

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) IS NULL AND ( NULL ) <= ( 47 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2590
SELECT + + SUM( + col1 ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-2590
SELECT + + SUM ( + col1 ) FROM tab0 AS cor0
----
103

query I rowsort
SELECT ALL - - 29 * + - ( + ( col0 ) ) AS col1 FROM tab2 AS cor0
----
-1334
-1856
-2175

query I rowsort
SELECT - - col1 * - - col1 AS col0 FROM tab2 AS cor0
----
2601
4489
5929

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 NOT BETWEEN - - col0 AND - 36 + 7
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2594
SELECT + 88 * + + MAX( - col2 ) * + + ( - COUNT( * ) ) * 11 AS col1 FROM tab0
----
29040

skipif mysql # not compatible
query I rowsort label-2594
SELECT + 88 * + + MAX ( - col2 ) * + + ( - COUNT ( * ) ) * 11 AS col1 FROM tab0
----
29040

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query I rowsort
SELECT DISTINCT + 69 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2597
SELECT DISTINCT MIN( + col2 ) FROM tab2 WHERE ( + col2 ) IN ( col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2597
SELECT DISTINCT MIN ( + col2 ) FROM tab2 WHERE ( + col2 ) IN ( col1 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 49 + col2 * - + col0 col1 FROM tab2 AS cor0
----
-1009
-2511
-4301

query I rowsort
SELECT col2 + + ( + col0 ) * - col2 FROM tab2 AS cor0
----
-1035
-2520
-4292

query I rowsort
SELECT - col1 + + 55 AS col0 FROM tab0 cor0
----
-26
34
54

query I rowsort
SELECT DISTINCT - 51 * col1 + + col0 AS col0 FROM tab0 AS cor0
----
-4116
-984
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2602
SELECT - COUNT( * ) FROM tab0 cor0 WHERE NOT ( - col1 * - ( - + col1 ) ) >= - col2 * ( col0 )
----
-1

skipif mysql # not compatible
query I rowsort label-2602
SELECT - COUNT ( * ) FROM tab0 cor0 WHERE NOT ( - col1 * - ( - + col1 ) ) >= - col2 * ( col0 )
----
-1

query I rowsort
SELECT ALL - 34 * 59 * - col2 + + col2 + + col1 * col0 AS col1 FROM tab0 AS cor0
----
198790
21897
95544

onlyif mysql # aggregate syntax: 
query I rowsort label-2604
SELECT + MIN( + + col1 ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-2604
SELECT + MIN ( + + col1 ) FROM tab1 AS cor0
----
5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - col1 + - col2 ) BETWEEN NULL AND + 1
----

query I rowsort
SELECT DISTINCT + col2 * col2 - - col2 FROM tab1 AS cor0 WHERE - col0 <= + 23 * 38
----
3540
4692
9312

query I rowsort
SELECT DISTINCT - - 34 + - col0 AS col0 FROM tab2 AS cor0
----
-12
-30
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-2608
SELECT MIN( ALL + - ( + + col1 ) ) AS col0 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-2608
SELECT MIN ( ALL + - ( + + col1 ) ) AS col0 FROM tab0 AS cor0
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2609
SELECT DISTINCT COUNT( ALL - - CAST( - col2 AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2609
SELECT DISTINCT COUNT ( ALL - - CAST ( - col2 AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL col1 * - col2 FROM tab2 AS cor0 WHERE ( 52 + - + ( + col2 ) ) NOT BETWEEN - col2 AND ( col2 * col1 + - col0 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 70 + 93 NOT BETWEEN 39 AND + + 10
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 >= + ( + 84 )
----

query I rowsort
SELECT ALL + col1 + - 55 + + col1 + - col1 * ( col0 ) * - 23 AS col0 FROM tab2 AS cor0
----
113443
115654
54005

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col0 AS col0 FROM tab1 WHERE NOT - - 23 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( 2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2617
SELECT MAX( DISTINCT - col1 ) FROM tab2 WHERE ( NOT 87 NOT BETWEEN ( NULL ) AND 89 * - ( - col0 ) * 75 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2617
SELECT MAX ( DISTINCT - col1 ) FROM tab2 WHERE ( NOT 87 NOT BETWEEN ( NULL ) AND 89 * - ( - col0 ) * 75 )
----
NULL

query II rowsort
SELECT DISTINCT 27, 47 - ( + col2 ) AS col0 FROM tab2
----
27
-11
27
24
27
7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2619
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2, 16 FROM tab0
----
NULL
16

skipif mysql # not compatible
query II rowsort label-2619
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2, 16 FROM tab0
----
NULL
16

query II rowsort
SELECT ALL col0 AS col2, - col2 FROM tab1 WHERE NOT NULL NOT IN ( - col1 )
----

query I rowsort
SELECT + col1 + - 87 AS col0 FROM tab0 AS cor0
----
-6
-66
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2622
SELECT - - ( - + col1 ) + - 23 + - + CAST( - col2 AS SIGNED ) + col1 AS col0 FROM tab1 AS cor0
----
36
45
73

skipif mysql # not compatible
query I rowsort label-2622
SELECT - - ( - + col1 ) + - 23 + - + CAST ( - col2 AS INTEGER ) + col1 AS col0 FROM tab1 AS cor0
----
36
45
73

query I rowsort
SELECT - col0 + + 84 FROM tab1 AS cor0
----
-1
-7
33

query I rowsort
SELECT ALL col0 * - + col0 + + + 44 FROM tab0 AS cor0
----
-181
-7525
-9365

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2625
SELECT ALL COUNT( * ) * COUNT( * ) - + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2625
SELECT ALL COUNT ( * ) * COUNT ( * ) - + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2626
SELECT - - col2 * - col1 - + ( + CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2626
SELECT - - col2 * - col1 - + ( + CAST ( NULL AS REAL ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL = - 58 + - 8 + - - 23
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2628
SELECT - MAX( + - col1 ) AS col0 FROM tab2 AS cor0 WHERE NOT + col1 * - col1 NOT BETWEEN - col0 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2628
SELECT - MAX ( + - col1 ) AS col0 FROM tab2 AS cor0 WHERE NOT + col1 * - col1 NOT BETWEEN - col0 AND NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + 73 + - col0 ) IS NULL
----

query I rowsort
SELECT DISTINCT 33 * + + 74 * - col1 AS col2 FROM tab0 AS cor0
----
-197802
-2442
-51282

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL > col2 * - col0 * - col2 * - + col0
----

query I rowsort
SELECT - AVG ( ALL + - 75 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2633
SELECT ALL + COUNT( * ) * + 81 FROM tab0
----
243

skipif mysql # not compatible
query I rowsort label-2633
SELECT ALL + COUNT ( * ) * + 81 FROM tab0
----
243

onlyif mysql # aggregate syntax: 
query II rowsort label-2634
SELECT + 21 col1, - 81 + COUNT( * ) + COUNT( * ) FROM tab0
----
21
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2634
SELECT + 21 col1, - 81 + COUNT ( * ) + COUNT ( * ) FROM tab0
----
21
-75

query I rowsort
SELECT DISTINCT 12 + + 18 FROM tab0 WHERE NOT + col1 + - + col0 * - col2 IS NOT NULL
----

query II rowsort
SELECT DISTINCT col1, 24 * + - col1 * ( + - col2 ) FROM tab2
----
51
28152
67
93264
77
73920

onlyif mysql # aggregate syntax: 
query I rowsort label-2637
SELECT DISTINCT COUNT( + col2 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2637
SELECT DISTINCT COUNT ( + col2 ) AS col0 FROM tab2
----
3

query I rowsort
SELECT ALL + col2 AS col2 FROM tab2 WHERE NOT + + col2 * - - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 32 * + - col1 FROM tab0
----
-2592
-32
-672

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2640
SELECT CAST( NULL AS SIGNED ), col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-2640
SELECT CAST ( NULL AS INTEGER ), col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

query II rowsort
SELECT col1 AS col1, - 43 AS col2 FROM tab0 AS cor0
----
1
-43
21
-43
81
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-2642
SELECT ALL + COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2642
SELECT ALL + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT - col0 * 76 AS col2 FROM tab1
----
-3876
-6460
-6916

query I rowsort
SELECT DISTINCT col1 * - col2 * - 84 * 50 + + + col0 + col2 * - col0 * ( + 90 ) + col0 FROM tab0 AS cor0
----
-448276
15925980
803874

query I rowsort
SELECT DISTINCT + 3 AS col2 FROM tab0 cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col0 AND + col1 * - col0 * + 42
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2647
SELECT DISTINCT - 48 DIV + col0 + + - col2 AS col2 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-2647
SELECT DISTINCT - 48 / + col0 + + - col2 AS col2 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT ALL - - col0 + - - col0 AS col0 FROM tab0 AS cor0
----
174
194
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2649
SELECT + MIN( - 93 ) + + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2649
SELECT + MIN ( - 93 ) + + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ( - col1 ) FROM tab0 WHERE NULL IS NULL
----
-1
-21
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-2651
SELECT ( - col2 ) DIV + + col2 + col1 * 39 AS col2 FROM tab1
----
1832
194
545

skipif mysql # not compatible
query I rowsort label-2651
SELECT ( - col2 ) / + + col2 + col1 * 39 AS col2 FROM tab1
----
1832
194
545

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 29 * + col2 + col2 col1 FROM tab0
----
-1316
-2772
-280

query I rowsort
SELECT 61 * + col0 + col2 * + 63 * - + col0 * + 46 FROM tab1
----
-14185497
-14528285
-17927273

onlyif mysql # aggregate syntax: 
query I rowsort label-2654
SELECT MIN( - ( - 23 ) ) + - + 90 AS col1 FROM tab2
----
-67

skipif mysql # not compatible
query I rowsort label-2654
SELECT MIN ( - ( - 23 ) ) + - + 90 AS col1 FROM tab2
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2655
SELECT - CAST( NULL AS SIGNED ) + - col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2655
SELECT - CAST ( NULL AS INTEGER ) + - col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 75 + + col2 AS col1 FROM tab1 WHERE ( + 28 ) IS NOT NULL
----
134
143
171

query II rowsort
SELECT DISTINCT 95 * + col1 - col1 * + - col2 + 68 AS col2, col2 FROM tab0
----
11570
47
2273
10
262
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + col2 col0 FROM tab2
----
104
133
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2659
SELECT - ( ( - ( SUM( DISTINCT - col1 ) ) ) ), - CAST( NULL AS SIGNED ) - - 84 AS col1 FROM tab0 AS cor0
----
-103
NULL

skipif mysql # not compatible
query II rowsort label-2659
SELECT - ( ( - ( SUM ( DISTINCT - col1 ) ) ) ), - CAST ( NULL AS INTEGER ) - - 84 AS col1 FROM tab0 AS cor0
----
-103
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN ( NULL ) AND - 19 * + col1 + + - col1 * ( + 16 ) * - + col2 + - col1
----

query I rowsort
SELECT ALL - 88 + - col0 FROM tab2 AS cor0
----
-134
-152
-163

query I rowsort
SELECT + - 66 FROM tab1 AS cor0 WHERE + col0 * col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2663
SELECT ALL - 79 + + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-2663
SELECT ALL - 79 + + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-82

query II rowsort
SELECT col2 AS col0, + col2 FROM tab0 cor0
----
10
10
47
47
99
99

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 3 NOT IN ( - - col2 + - 66 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2666
SELECT ALL + SUM( - + col0 ) AS col2 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-2666
SELECT ALL + SUM ( - + col0 ) AS col2 FROM tab0
----
-199

query I rowsort
SELECT - 84 FROM tab1 WHERE NOT ( NULL < ( + col0 * + - ( + + 83 ) * + - col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2668
SELECT MAX( DISTINCT + + col0 ) AS col1 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-2668
SELECT MAX ( DISTINCT + + col0 ) AS col1 FROM tab1
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-2669
SELECT ALL 14 DIV + col1 + - col2 + - + col1 AS col2 FROM tab2 WHERE - 28 IS NOT NULL
----
-117
-125
-74

skipif mysql # not compatible
query I rowsort label-2669
SELECT ALL 14 / + col1 + - col2 + - + col1 AS col2 FROM tab2 WHERE - 28 IS NOT NULL
----
-117
-125
-74

query II rowsort
SELECT + col2 + - col1 * 91 * ( + - 0 ), col2 + + + col2 AS col2 FROM tab2 WHERE NOT ( NULL IS NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2671
SELECT ALL SUM( ALL - col0 ) AS col0, + 48 AS col1 FROM tab1 WHERE - col1 + + col1 = + col2
----
NULL
48

skipif mysql # not compatible
query II rowsort label-2671
SELECT ALL SUM ( ALL - col0 ) AS col0, + 48 AS col1 FROM tab1 WHERE - col1 + + col1 = + col2
----
NULL
48

query I rowsort
SELECT DISTINCT - 84 * + 73 * + 10 FROM tab0 AS cor0
----
-61320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 26 col2 FROM tab1 AS cor0
----
26

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + ( col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2675
SELECT ALL MAX( 6 ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2675
SELECT ALL MAX ( 6 ) FROM tab2 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2676
SELECT DISTINCT COUNT( * ) * COUNT( * ) AS col1 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-2676
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) AS col1 FROM tab1
----
9

query I rowsort
SELECT - 15 + + col0 AS col2 FROM tab2
----
31
49
60

query I rowsort
SELECT + + 70 * col2 AS col1 FROM tab0 AS cor0
----
3290
6930
700

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 + - + 4 + + + col1 - + - col1 / col0 NOT IN ( + col1 / - - col0 - - - col1 + + 46, col0, + - 34 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2680
SELECT - col0 * 38 * col2 DIV col0 FROM tab1 AS cor0
----
-2242
-2584
-3648

skipif mysql # not compatible
query I rowsort label-2680
SELECT - col0 * 38 * col2 / col0 FROM tab1 AS cor0
----
-2242
-2584
-3648

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 0 AS col0, col0 col0 FROM tab1 AS cor0
----
0
51
0
85
0
91

onlyif mysql # DIV for integer division: 
query I rowsort label-2682
SELECT + col1 DIV - + 11 + + 23 FROM tab2 AS cor0
----
16
17
19

skipif mysql # not compatible
query I rowsort label-2682
SELECT + col1 / - + 11 + + 23 FROM tab2 AS cor0
----
16
17
19

query I rowsort
SELECT ALL + col2 * + 11 + + 75 + + - col1 + - 44 AS col2 FROM tab2 AS cor0
----
233
394
602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col2 FROM tab1 AS cor0 WHERE - ( + + 10 ) BETWEEN - - col0 AND NULL
----

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE ( NULL ) <> ( - 7 )
----

query I rowsort
SELECT + ( 94 ) - col1 FROM tab1
----
47
80
89

query I rowsort
SELECT ALL - 91 * + - col2 * + col2 - col2 FROM tab1
----
316712
420716
838560

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 80 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2689
SELECT ALL COUNT( 4 ) * - 12 AS col1 FROM tab1 cor0
----
-36

skipif mysql # not compatible
query I rowsort label-2689
SELECT ALL COUNT ( 4 ) * - 12 AS col1 FROM tab1 cor0
----
-36

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE NOT NULL <= - - 15
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2691
SELECT COUNT( * ) FROM tab1 WHERE NOT + 97 - - + col0 + 31 + - col0 <= ( - 53 )
----
3

skipif mysql # not compatible
query I rowsort label-2691
SELECT COUNT ( * ) FROM tab1 WHERE NOT + 97 - - + col0 + 31 + - col0 <= ( - 53 )
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 53 * + - 16 col2 FROM tab2
----
-848
-848
-848

query II rowsort
SELECT col1, col0 * + - col0 AS col1 FROM tab1
----
14
-2601
47
-8281
5
-7225

query I rowsort
SELECT col2 * + - 84 AS col2 FROM tab1
----
-4956
-5712
-8064

onlyif mysql # aggregate syntax: 
query I rowsort label-2695
SELECT ALL - MAX( ALL col1 ) FROM tab0 WHERE NOT col0 + - col2 + + + 92 + + col0 * 70 + + - ( + - col2 ) IS NULL
----
-81

skipif mysql # not compatible
query I rowsort label-2695
SELECT ALL - MAX ( ALL col1 ) FROM tab0 WHERE NOT col0 + - col2 + + + 92 + + col0 * 70 + + - ( + - col2 ) IS NULL
----
-81

query I rowsort
SELECT col0 + - + 34 FROM tab2
----
12
30
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2697
SELECT DISTINCT + MIN( + - col1 ) AS col2 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-2697
SELECT DISTINCT + MIN ( + - col1 ) AS col2 FROM tab2
----
-77

query I rowsort
SELECT col2 FROM tab2 WHERE NOT - ( - col2 ) IS NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2699
SELECT SUM( DISTINCT + col0 ) + - + ( 62 ) AS col0 FROM tab2
----
123

skipif mysql # not compatible
query I rowsort label-2699
SELECT SUM ( DISTINCT + col0 ) + - + ( 62 ) AS col0 FROM tab2
----
123

query I rowsort
SELECT DISTINCT - col1 + col2 * + col1 FROM tab1
----
1330
290
3149

query I rowsort
SELECT DISTINCT - ( + col0 ) * + ( - 75 ) AS col2 FROM tab2
----
3450
4800
5625

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE NOT NULL IN ( - + 25 )
----

query I rowsort
SELECT ALL + col2 + + - 94 - + col0 AS col1 FROM tab2 AS cor0 WHERE NOT + col1 IS NULL AND NOT col0 IS NULL
----
-111
-117
-118

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 23 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * - + col1 + + 6 * + - 72 + col0 col1, - 91 AS col1 FROM tab1 AS cor0
----
-1095
-91
-4618
-91
-772
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-2706
SELECT + col0 DIV - col0 + + 80 AS col1 FROM tab2 AS cor0
----
79
79
79

skipif mysql # not compatible
query I rowsort label-2706
SELECT + col0 / - col0 + + 80 AS col1 FROM tab2 AS cor0
----
79
79
79

query I rowsort
SELECT DISTINCT ( - + col0 ) + 91 FROM tab2 AS cor0
----
16
27
45

query III rowsort
SELECT * FROM tab0 WHERE + col0 <= - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2709
SELECT DISTINCT + COUNT( * ) + 89 + - - 20 FROM tab1
----
112

skipif mysql # not compatible
query I rowsort label-2709
SELECT DISTINCT + COUNT ( * ) + 89 + - - 20 FROM tab1
----
112

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab0 WHERE ( - col1 BETWEEN NULL AND - + ( - 51 ) * col2 * - - 94 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - - 28 col2 FROM tab0
----
109
29
49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2712
SELECT ALL CAST( NULL AS SIGNED ) * - - 91 - + col2 AS col0, - col2 - + ( - col0 ) col1 FROM tab1
----
NULL
-45
NULL
23
NULL
26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2712
SELECT ALL CAST ( NULL AS INTEGER ) * - - 91 - + col2 AS col0, - col2 - + ( - col0 ) col1 FROM tab1
----
NULL
-45
NULL
23
NULL
26

query I rowsort
SELECT + 32 AS col2 FROM tab1 WHERE NULL IN ( + col1, - col0, + col0 + + col2 - 55 * + + ( 39 ) )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 27 * + col2 / + col1 * col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2715
SELECT - CAST( NULL AS SIGNED ) - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2715
SELECT - CAST ( NULL AS INTEGER ) - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 + + + col2 * 29 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + - 13 AS col0 FROM tab2 AS cor0
----
-13
-13
-13

query I rowsort
SELECT DISTINCT + ( + - col1 ) * 83 FROM tab0 AS cor0
----
-1743
-6723
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-2719
SELECT MIN( - 57 ) FROM tab2 WHERE NOT NULL NOT IN ( 82 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2719
SELECT MIN ( - 57 ) FROM tab2 WHERE NOT NULL NOT IN ( 82 )
----
NULL

query I rowsort
SELECT DISTINCT + 33 AS col1 FROM tab2 WHERE NULL NOT IN ( - 89, 42 * + col1 )
----

query I rowsort
SELECT ALL ( - + 49 ) AS col2 FROM tab2
----
-49
-49
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-2722
SELECT ALL col0 DIV + 54 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2722
SELECT ALL col0 / + 54 FROM tab0
----
0
1
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 88 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( + 18 ) + 15 col1, 9 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + - 35 * - - col0 + col2 FROM tab1 AS cor0
----
-1689
-2916
-3117

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 27 col0 FROM tab2 AS cor0
----
27
27
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2727
SELECT - - SUM( DISTINCT + 2 ) * - COUNT( * ) + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2727
SELECT - - SUM ( DISTINCT + 2 ) * - COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2728
SELECT - COUNT( ALL - 25 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2728
SELECT - COUNT ( ALL - 25 ) FROM tab2 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL > - - col0 + 93
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2730
SELECT ALL CAST( NULL AS SIGNED ) * 0 col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2730
SELECT ALL CAST ( NULL AS INTEGER ) * 0 col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2731
SELECT ALL MAX( - 30 ) FROM tab2
----
-30

skipif mysql # not compatible
query I rowsort label-2731
SELECT ALL MAX ( - 30 ) FROM tab2
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2732
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE col0 * - col2 = - col2
----

skipif mysql # not compatible
query I rowsort label-2732
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE col0 * - col2 = - col2
----

query II rowsort
SELECT col1 AS col0, col1 + col0 FROM tab0 AS cor0
----
1
98
21
108
81
96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2734
SELECT - CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2734
SELECT - CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 50 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2736
SELECT + MIN( DISTINCT - + col1 ) AS col2 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-2736
SELECT + MIN ( DISTINCT - + col1 ) AS col2 FROM tab2
----
-77

query II rowsort
SELECT - 59 AS col0, col1 AS col0 FROM tab2 AS cor0
----
-59
51
-59
67
-59
77

query I rowsort
SELECT ALL 60 + + col2 AS col1 FROM tab2 AS cor0
----
100
118
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2739
SELECT col0 * - 51 + CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
-4427
-4848
-718

skipif mysql # not compatible
query I rowsort label-2739
SELECT col0 * - 51 + CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
-4427
-4848
-718

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 col2, 12 AS col1 FROM tab0 AS cor0
----
10
12
47
12
99
12

query I rowsort
SELECT ALL - col1 * - - col0 * + col0 FROM tab2 AS cor0
----
-107916
-315392
-376875

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 72 IS NULL
----

query I rowsort
SELECT ALL - col0 + + + 2 + - 93 AS col0 FROM tab0 AS cor0
----
-106
-178
-188

onlyif mysql # DIV for integer division: 
query II rowsort label-2744
SELECT DISTINCT - col0 - 23 col2, - col1 DIV - col2 FROM tab0
----
-110
2
-120
0
-38
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2744
SELECT DISTINCT - col0 - 23 col2, - col1 / - col2 FROM tab0
----
-110
2
-120
0
-38
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2745
SELECT - MAX( DISTINCT + 42 ) FROM tab0
----
-42

skipif mysql # not compatible
query I rowsort label-2745
SELECT - MAX ( DISTINCT + 42 ) FROM tab0
----
-42

query I rowsort
SELECT + + col0 AS col0 FROM tab2 WHERE NOT + - 26 IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query II rowsort label-2747
SELECT ALL - 38 AS col1, + COUNT( * ) AS col0 FROM tab0
----
-38
3

skipif mysql # not compatible
query II rowsort label-2747
SELECT ALL - 38 AS col1, + COUNT ( * ) AS col0 FROM tab0
----
-38
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + ( 52 ) IS NOT NULL
----

query I rowsort
SELECT col2 * + + col0 FROM tab2
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-2750
SELECT MAX( 20 ) FROM tab0
----
20

skipif mysql # not compatible
query I rowsort label-2750
SELECT MAX ( 20 ) FROM tab0
----
20

query I rowsort
SELECT DISTINCT + - 51 AS col1 FROM tab0 AS cor0
----
-51

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) < - 87
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 * col2 BETWEEN NULL AND - 33 * + + col2
----

query II rowsort
SELECT DISTINCT 7 * ( - + col0 ) AS col1, col2 + - 17 + col2 FROM tab1 cor0
----
-357
175
-595
101
-637
119

query II rowsort
SELECT + 63, col2 AS col2 FROM tab0 AS cor0
----
63
10
63
47
63
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2756
SELECT CAST( - COUNT( * ) AS SIGNED ) + + - 84 FROM tab2
----
-87

skipif mysql # not compatible
query I rowsort label-2756
SELECT CAST ( - COUNT ( * ) AS INTEGER ) + + - 84 FROM tab2
----
-87

query III rowsort
SELECT * FROM tab0 WHERE NULL = + 76
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2758
SELECT col1 / + col1 * - + col2 * + - col1 + - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2758
SELECT col1 / + col1 * - + col2 * + - col1 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 56 AS col2 FROM tab2 WHERE NOT NULL NOT BETWEEN + col1 + + + col1 * - col0 - - - 4 AND + col1 + col2 + + + 36
----

query I rowsort
SELECT ALL 45 * + 40 FROM tab1
----
1800
1800
1800

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND - 48 / + + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2762
SELECT - col1 col1, - CAST( NULL AS SIGNED ) FROM tab1
----
-14
NULL
-47
NULL
-5
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2762
SELECT - col1 col1, - CAST ( NULL AS INTEGER ) FROM tab1
----
-14
NULL
-47
NULL
-5
NULL

query II rowsort
SELECT DISTINCT col0 AS col0, - col0 + - 88 * 66 AS col1 FROM tab2
----
46
-5854
64
-5872
75
-5883

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 * + col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL ( - - col1 ) FROM tab2 cor0
----
51
67
77

query I rowsort
SELECT ALL - + 0 - 53 FROM tab1 AS cor0
----
-53
-53
-53

query I rowsort
SELECT - col2 + - + col2 AS col1 FROM tab1 cor0
----
-118
-136
-192

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2 AS cor0 WHERE NULL NOT IN ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2769
SELECT ALL CAST( - + col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-2769
SELECT ALL CAST ( - + col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT + col0 + + - col1 AS col1 FROM tab2 AS cor0
----
-13
-5
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2771
SELECT DISTINCT - COUNT( * ) * - COUNT( ALL - 9 ) * - CAST( NULL AS SIGNED ) + + 1 col0 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2771
SELECT DISTINCT - COUNT ( * ) * - COUNT ( ALL - 9 ) * - CAST ( NULL AS INTEGER ) + + 1 col0 FROM tab1
----
NULL

query I rowsort
SELECT 90 * ( - col2 ) AS col0 FROM tab2
----
-2070
-3600
-5220

query I rowsort
SELECT - ( 28 ) AS col1 FROM tab2
----
-28
-28
-28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 64 AS col0, - 93 * col1 col0 FROM tab1
----
64
-1302
64
-4371
64
-465

onlyif mysql # aggregate syntax: 
query II rowsort label-2775
SELECT COUNT( * ) AS col1, COUNT( * ) * - 52 FROM tab1
----
3
-156

skipif mysql # not compatible
query II rowsort label-2775
SELECT COUNT ( * ) AS col1, COUNT ( * ) * - 52 FROM tab1
----
3
-156

query I rowsort
SELECT ALL 53 * + col0 AS col0 FROM tab1 AS cor0
----
2703
4505
4823

onlyif mysql # aggregate syntax: 
query I rowsort label-2777
SELECT + COUNT( * ) * + + 76 FROM tab2 AS cor0
----
228

skipif mysql # not compatible
query I rowsort label-2777
SELECT + COUNT ( * ) * + + 76 FROM tab2 AS cor0
----
228

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - 87 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2779
SELECT ALL + + col2 DIV - - 50 + + + col1 FROM tab0 AS cor0
----
2
21
81

skipif mysql # not compatible
query I rowsort label-2779
SELECT ALL + + col2 / - - 50 + + + col1 FROM tab0 AS cor0
----
2
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2780
SELECT DISTINCT COUNT( * ) + - COUNT( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE + 91 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2780
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE + 91 IS NULL
----
0

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col2 + - col1 / + col1 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2782
SELECT ALL col1 * - - col1 DIV col1 + col0 FROM tab2 AS cor0
----
141
142
97

skipif mysql # not compatible
query I rowsort label-2782
SELECT ALL col1 * - - col1 / col1 + col0 FROM tab2 AS cor0
----
141
142
97

query I rowsort
SELECT DISTINCT - 41 + 25 FROM tab2 AS cor0
----
-16

query II rowsort
SELECT col0 * + - col1 AS col0, + 7 FROM tab0 cor0
----
-1215
7
-1827
7
-97
7

query I rowsort
SELECT ALL + + ( - 39 ) * + col0 * + col0 FROM tab2 AS cor0 WHERE col2 * 83 IS NOT NULL
----
-159744
-219375
-82524

query I rowsort
SELECT ALL + col1 FROM tab1 cor0 WHERE + 27 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2787
SELECT ALL + 70 / + ( - 5 ) AS col0 FROM tab0 cor0 WHERE NOT 60 * - col0 NOT BETWEEN col0 AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2787
SELECT ALL + 70 / + ( - 5 ) AS col0 FROM tab0 cor0 WHERE NOT 60 * - col0 NOT BETWEEN col0 AND - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2788
SELECT + ( + 37 ) AS col1, MAX( DISTINCT + ( - 11 ) ) FROM tab0 AS cor0
----
37
-11

skipif mysql # not compatible
query II rowsort label-2788
SELECT + ( + 37 ) AS col1, MAX ( DISTINCT + ( - 11 ) ) FROM tab0 AS cor0
----
37
-11

query I rowsort
SELECT ALL - col0 * + col0 + + + 93 FROM tab0
----
-132
-7476
-9316

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2790
SELECT ALL - ( - - col2 ) + - - 2 + - - CAST( NULL AS SIGNED ) / - - 66 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2790
SELECT ALL - ( - - col2 ) + - - 2 + - - CAST ( NULL AS INTEGER ) / - - 66 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2791
SELECT DISTINCT COUNT( * ) + + - MIN( + ( - col0 ) ) AS col0 FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-2791
SELECT DISTINCT COUNT ( * ) + + - MIN ( + ( - col0 ) ) AS col0 FROM tab2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2792
SELECT DISTINCT - ( - COUNT( * ) ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2792
SELECT DISTINCT - ( - COUNT ( * ) ) AS col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2793
SELECT ALL - COUNT( * ) * - 62 AS col1 FROM tab2
----
186

skipif mysql # not compatible
query I rowsort label-2793
SELECT ALL - COUNT ( * ) * - 62 AS col1 FROM tab2
----
186

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2794
SELECT + col1 * - CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2794
SELECT + col1 * - CAST ( NULL AS REAL ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2795
SELECT ALL + - COUNT( * ) col0 FROM tab2 WHERE NOT + 17 IS NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2795
SELECT ALL + - COUNT ( * ) col0 FROM tab2 WHERE NOT + 17 IS NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2796
SELECT DISTINCT CAST( NULL AS SIGNED ) * 7 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2796
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 7 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2797
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2797
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 62 col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-2799
SELECT ALL 96 + - COUNT( * ) FROM tab0
----
93

skipif mysql # not compatible
query I rowsort label-2799
SELECT ALL 96 + - COUNT ( * ) FROM tab0
----
93

query I rowsort
SELECT - col1 - + col2 * + + col1 FROM tab0 AS cor0
----
-100
-231
-3888

onlyif mysql # aggregate syntax: 
query I rowsort label-2801
SELECT - + SUM( col1 ) - 92 col2 FROM tab2 AS cor0
----
-287

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2801
SELECT - + SUM ( col1 ) - 92 col2 FROM tab2 AS cor0
----
-287

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2802
SELECT ALL + COUNT( * ) - MIN( ALL + col0 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> - CAST( NULL AS SIGNED ) / + - col0 * + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2802
SELECT ALL + COUNT ( * ) - MIN ( ALL + col0 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> - CAST ( NULL AS INTEGER ) / + - col0 * + col1
----
NULL

query I rowsort
SELECT + + 3 * - col1 * + col0 * + col2 FROM tab0 cor0
----
-171315
-28809
-54810

query I rowsort
SELECT - col0 * + 34 FROM tab0
----
-2958
-3298
-510

query I rowsort
SELECT ALL - 10 * + 64 FROM tab1
----
-640
-640
-640

query II rowsort
SELECT + col1 * + + col2, col0 * - 59 AS col0 FROM tab1 WHERE NOT ( NOT NULL IS NULL )
----
1344
-3009
295
-5015
3196
-5369

query I rowsort
SELECT - - col0 FROM tab1 WHERE NOT ( ( - - col2 * 1 IS NULL ) )
----
51
85
91

query I rowsort
SELECT DISTINCT col2 * + + 86 AS col0 FROM tab1
----
5074
5848
8256

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2809
SELECT - - col2 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 56, - 45, + col0, - + col0 * - 37 + + CAST( NULL AS SIGNED ) / col2 )
----

skipif mysql # not compatible
query I rowsort label-2809
SELECT - - col2 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 56, - 45, + col0, - + col0 * - 37 + + CAST ( NULL AS INTEGER ) / col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 20 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL AND NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2812
SELECT ALL + COUNT( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2812
SELECT ALL + COUNT ( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----
0

query I rowsort
SELECT ALL + 55 + + col2 FROM tab2 AS cor0 WHERE - col1 IS NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - 90 + - + ( + col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2815
SELECT ALL - MIN( ALL + + col2 ) AS col0 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-2815
SELECT ALL - MIN ( ALL + + col2 ) AS col0 FROM tab1 AS cor0
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2816
SELECT - CAST( NULL AS SIGNED ) col2 FROM tab0 cor0 WHERE + CAST( + col2 AS SIGNED ) / - 20 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2816
SELECT - CAST ( NULL AS INTEGER ) col2 FROM tab0 cor0 WHERE + CAST ( + col2 AS INTEGER ) / - 20 IS NULL
----

query I rowsort
SELECT + 45 * - 77 + + col2 AS col2 FROM tab2 AS cor0
----
-3407
-3425
-3442

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + - col2 col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + 82 + 76 * - - 97 AS col2 FROM tab0 AS cor0
----
7454
7454
7454

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 50 * + col0 BETWEEN NULL AND - + col1
----

query I rowsort
SELECT DISTINCT - col2 + + - col0 + - col0 FROM tab1
----
-198
-229
-250

query I rowsort
SELECT 50 + + col0 AS col0 FROM tab0
----
137
147
65

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2823
SELECT col2 + - CAST( NULL AS SIGNED ) AS col0, + col1 col2 FROM tab1
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2823
SELECT col2 + - CAST ( NULL AS INTEGER ) AS col0, + col1 col2 FROM tab1
----
NULL
14
NULL
47
NULL
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2824
SELECT ALL 52 + + CAST( + - 65 AS SIGNED ) FROM tab0
----
-13
-13
-13

skipif mysql # not compatible
query I rowsort label-2824
SELECT ALL 52 + + CAST ( + - 65 AS INTEGER ) FROM tab0
----
-13
-13
-13

query I rowsort
SELECT ALL + 8 * + col2 AS col0 FROM tab1
----
472
544
768

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2826
SELECT DISTINCT - ( - + 83 ) DIV - COUNT( * ) AS col0 FROM tab1
----
-27

skipif mysql # not compatible
query I rowsort label-2826
SELECT DISTINCT - ( - + 83 ) / - COUNT ( * ) AS col0 FROM tab1
----
-27

query II rowsort
SELECT 73 * + col1, 34 AS col2 FROM tab0
----
1533
34
5913
34
73
34

query I rowsort
SELECT ALL 6 * col2 FROM tab1
----
354
408
576

query I rowsort
SELECT 91 * - 79 AS col0 FROM tab1
----
-7189
-7189
-7189

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2830
SELECT DISTINCT COUNT( * ) DIV 27 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2830
SELECT DISTINCT COUNT ( * ) / 27 FROM tab0
----
0

query I rowsort
SELECT DISTINCT 59 / + - col1 + 78 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col0 * col0 - col2 + + col0 + - col0 - + - 14 * - col1 AS col2 FROM tab1
----
-2893
-7354
-9007

onlyif mysql # aggregate syntax: 
query I rowsort label-2833
SELECT COUNT( * ) - 46 * + COUNT( * ) FROM tab0
----
-135

skipif mysql # not compatible
query I rowsort label-2833
SELECT COUNT ( * ) - 46 * + COUNT ( * ) FROM tab0
----
-135

query I rowsort
SELECT + 4 - - - col1 FROM tab2
----
-47
-63
-73

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2835
SELECT CAST( NULL AS DECIMAL ) - MIN( col2 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2835
SELECT CAST ( NULL AS REAL ) - MIN ( col2 ) FROM tab0
----
NULL

query II rowsort
SELECT DISTINCT col2 AS col2, - col0 AS col0 FROM tab2
----
23
-46
40
-64
58
-75

query II rowsort
SELECT ALL 7 AS col2, + col1 * - col1 FROM tab1 AS cor0
----
7
-196
7
-2209
7
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-2838
SELECT ALL - + COUNT( DISTINCT + - ( col2 ) ) AS col1 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2838
SELECT ALL - + COUNT ( DISTINCT + - ( col2 ) ) AS col1 FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-2839
SELECT + 64, COUNT( * ) AS col1 FROM tab2 AS cor0
----
64
3

skipif mysql # not compatible
query II rowsort label-2839
SELECT + 64, COUNT ( * ) AS col1 FROM tab2 AS cor0
----
64
3

query I rowsort
SELECT + 34 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
34
34
34

query I rowsort
SELECT + - col0 * - - 61 FROM tab0 AS cor0
----
-5307
-5917
-915

query I rowsort
SELECT 0 * + col2 + col0 * + col2 * col2 * - 38 AS col0 FROM tab1 AS cor0
----
-11243630
-15989792
-17860608

onlyif mysql # aggregate syntax: 
query I rowsort label-2843
SELECT ALL COUNT( - col1 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2843
SELECT ALL COUNT ( - col1 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT - - 36 FROM tab0 cor0
----
36
36
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab2 WHERE NOT + 20 - - col1 / + 7 NOT BETWEEN + - col2 AND + - 71
----

query I rowsort
SELECT col2 * - 59 AS col2 FROM tab0
----
-2773
-5841
-590

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 < col0 + col2
----

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE NOT - 90 IN ( + col0, - 10, 24, - col0 )
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2849
SELECT - CAST( NULL AS SIGNED ) * - - COUNT( + col2 ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2849
SELECT - CAST ( NULL AS INTEGER ) * - - COUNT ( + col2 ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 97 * + 38 AS col0 FROM tab0
----
3686

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + col2 + 91 > NULL
----

query II rowsort
SELECT + col0, + col1 FROM tab2 AS cor0
----
46
51
64
77
75
67

query I rowsort
SELECT ALL + col1 + + col1 + - - 33 AS col0 FROM tab1 AS cor0
----
127
43
61

query I rowsort
SELECT - ( 28 ) FROM tab0 AS cor0 WHERE - ( - col1 ) <> NULL
----

query I rowsort
SELECT DISTINCT col2 + 6 FROM tab0 cor0
----
105
16
53

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2856
SELECT DISTINCT - + CAST( - + 84 AS SIGNED ) + 25, col2 AS col1 FROM tab0 AS cor0
----
109
10
109
47
109
99

skipif mysql # not compatible
query II rowsort label-2856
SELECT DISTINCT - + CAST ( - + 84 AS INTEGER ) + 25, col2 AS col1 FROM tab0 AS cor0
----
109
10
109
47
109
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2857
SELECT ALL + + CAST( NULL AS SIGNED ) + 27 / col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2857
SELECT ALL + + CAST ( NULL AS INTEGER ) + 27 / col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - 61 + + - col2 FROM tab2 AS cor0 WHERE + col2 IS NULL
----

query I rowsort
SELECT 62 FROM tab1 WHERE NULL IS NULL
----
62
62
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2860
SELECT DISTINCT - col0 / + 97 * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2860
SELECT DISTINCT - col0 / + 97 * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query II rowsort
SELECT DISTINCT col1 AS col2, 6 AS col1 FROM tab2
----
51
6
67
6
77
6

query II rowsort
SELECT 37 + 62, col1 FROM tab0 AS cor0
----
99
1
99
21
99
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2863
SELECT ALL + + MAX( - + col1 ) AS col2 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2863
SELECT ALL + + MAX ( - + col1 ) AS col2 FROM tab2 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-2864
SELECT DISTINCT - - COUNT( * ) + 74 FROM tab0 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-2864
SELECT DISTINCT - - COUNT ( * ) + 74 FROM tab0 AS cor0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2865
SELECT - - MIN( + 18 ) FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-2865
SELECT - - MIN ( + 18 ) FROM tab0 AS cor0
----
18

query I rowsort
SELECT DISTINCT - + 37 AS col0 FROM tab0 AS cor0
----
-37

query I rowsort
SELECT DISTINCT + + col2 * - - 71 * col1 FROM tab2 AS cor0
----
218680
275906
83283

onlyif mysql # DIV for integer division: 
query I rowsort label-2868
SELECT DISTINCT + + 89 DIV - 31 + - col1 FROM tab1 cor0
----
-16
-49
-7

skipif mysql # not compatible
query I rowsort label-2868
SELECT DISTINCT + + 89 / - 31 + - col1 FROM tab1 cor0
----
-16
-49
-7

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) < col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2870
SELECT ALL - COUNT( 39 ) * ( - + 79 ) FROM tab2 cor0
----
237

skipif mysql # not compatible
query I rowsort label-2870
SELECT ALL - COUNT ( 39 ) * ( - + 79 ) FROM tab2 cor0
----
237

query I rowsort
SELECT 23 * - - col1 - col1 FROM tab2 AS cor0
----
1122
1474
1694

query III rowsort
SELECT * FROM tab1 WHERE NOT + 84 * col2 + + col2 <= + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2873
SELECT COUNT( * ) * - 71 * - COUNT( * ) AS col2 FROM tab1
----
639

skipif mysql # not compatible
query I rowsort label-2873
SELECT COUNT ( * ) * - 71 * - COUNT ( * ) AS col2 FROM tab1
----
639

query I rowsort
SELECT col1 * - ( - + col0 ) * col2 FROM tab0
----
18270
57105
9603

query I rowsort
SELECT DISTINCT ( - + ( + + col1 ) ) FROM tab2
----
-51
-67
-77

query II rowsort
SELECT - col0, 80 AS col1 FROM tab0
----
-15
80
-87
80
-97
80

query I rowsort
SELECT - col2 * - - col1 FROM tab0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2878
SELECT - SUM( DISTINCT + + col1 ) AS col0 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-2878
SELECT - SUM ( DISTINCT + + col1 ) AS col0 FROM tab0
----
-103

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2879
SELECT ALL * FROM tab0 WHERE - + CAST( NULL AS SIGNED ) IN ( col2 )
----

skipif mysql # not compatible
query III rowsort label-2879
SELECT ALL * FROM tab0 WHERE - + CAST ( NULL AS INTEGER ) IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2880
SELECT ALL + ( - COUNT( * ) ) AS col0 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2880
SELECT ALL + ( - COUNT ( * ) ) AS col0 FROM tab0 cor0
----
-3

query II rowsort
SELECT DISTINCT + col1, 69 FROM tab2 AS cor0
----
51
69
67
69
77
69

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL >= - col0 * - col2
----

query I rowsort
SELECT ALL + 49 + + col0 + + - col1 AS col1 FROM tab0 cor0
----
-17
115
145

query I rowsort
SELECT + - 10 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT ( ( col1 ) ) IN ( - col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2886
SELECT ALL - COUNT( * ) AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-2886
SELECT ALL - COUNT ( * ) AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2887
SELECT - CAST( NULL AS SIGNED ) * + - COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2887
SELECT - CAST ( NULL AS INTEGER ) * + - COUNT ( * ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2888
SELECT ALL - - SUM( ALL + - 31 ) AS col1, - COUNT( DISTINCT - 59 ) AS col2 FROM tab0 AS cor0
----
-93
-1

skipif mysql # not compatible
query II rowsort label-2888
SELECT ALL - - SUM ( ALL + - 31 ) AS col1, - COUNT ( DISTINCT - 59 ) AS col2 FROM tab0 AS cor0
----
-93
-1

query I rowsort
SELECT DISTINCT - + 33 FROM tab0 AS cor0
----
-33

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col1 * - + col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - 45 + - 89 FROM tab1 AS cor0
----
-134
-134
-134

query III rowsort
SELECT * FROM tab2 WHERE + - 32 * col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 * - + col1 * 24 + col2 AS col2 FROM tab1
----
32352
7139
76772

query III rowsort
SELECT * FROM tab0 WHERE + col0 NOT BETWEEN NULL AND + - ( + col2 ) * - 76 * + + col0 + - ( col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE + ( + col0 ) * - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2896
SELECT - MIN( ALL - col0 ) AS col1 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-2896
SELECT - MIN ( ALL - col0 ) AS col1 FROM tab0
----
97

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 87 + + + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND + col1
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL < - col2 * + ( + 8 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT ( NOT NULL IS NOT NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2901
SELECT + MAX( + 55 ) - 66 FROM tab0 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-2901
SELECT + MAX ( + 55 ) - 66 FROM tab0 AS cor0
----
-11

query I rowsort
SELECT DISTINCT - col1 * - 62 + col1 FROM tab0 AS cor0
----
1323
5103
63

onlyif mysql # DIV for integer division: 
query I rowsort label-2903
SELECT - ( - col2 ) DIV - col1 AS col0 FROM tab1 AS cor0
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-2903
SELECT - ( - col2 ) / - col1 AS col0 FROM tab1 AS cor0
----
-1
-11
-6

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( - col2 ) + + 43 IS NOT NULL OR + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2905
SELECT ALL COUNT( DISTINCT col1 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2905
SELECT ALL COUNT ( DISTINCT col1 ) AS col0 FROM tab2
----
3

query I rowsort
SELECT ALL - - 67 AS col0 FROM tab1 WHERE NULL IS NULL
----
67
67
67

query II rowsort
SELECT ALL + col1 AS col1, + col1 FROM tab2 AS cor0
----
51
51
67
67
77
77

query I rowsort
SELECT 8 + - col0 FROM tab1 AS cor0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT ALL + - col0 * + 65 FROM tab1 AS cor0
----
-3315
-5525
-5915

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2910
SELECT + 36 FROM tab1 AS cor0 WHERE NOT NULL > CAST( NULL AS SIGNED ) * + 98 + - 63
----

skipif mysql # not compatible
query I rowsort label-2910
SELECT + 36 FROM tab1 AS cor0 WHERE NOT NULL > CAST ( NULL AS INTEGER ) * + 98 + - 63
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2911
SELECT DISTINCT + - 13 DIV + col0 * col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2911
SELECT DISTINCT + - 13 / + col0 * col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT col0 * - col1 * + 18 FROM tab1 cor0
----
-12852
-7650
-76986

query I rowsort
SELECT ALL col1 * - ( col1 ) FROM tab0 AS cor0
----
-1
-441
-6561

onlyif mysql # DIV for integer division: 
query I rowsort label-2914
SELECT DISTINCT + 32 DIV 85 + - + col2 + + col1 * + col0 + - col2 - - col1 AS col2 FROM tab0 AS cor0
----
-100
1202
1828

skipif mysql # not compatible
query I rowsort label-2914
SELECT DISTINCT + 32 / 85 + - + col2 + + col1 * + col0 + - col2 - - col1 AS col2 FROM tab0 AS cor0
----
-100
1202
1828

query I rowsort
SELECT - col1 * + + 77 AS col1 FROM tab0
----
-1617
-6237
-77

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 * + - col2 NOT BETWEEN NULL AND - - col2
----

query I rowsort
SELECT DISTINCT - ( + + 77 ) FROM tab0 WHERE NOT 89 * + - 77 + - col0 + - ( - col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2918
SELECT - MIN( - ( + col2 ) ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-2918
SELECT - MIN ( - ( + col2 ) ) FROM tab2 AS cor0
----
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - + col1 col1 FROM tab1 AS cor0
----
37
44
80

query I rowsort
SELECT ALL col0 * + - 16 * + - col0 + 53 * + col1 FROM tab0
----
122217
150597
7893

query I rowsort
SELECT DISTINCT + - col1 AS col0 FROM tab0 WHERE NOT - 54 * - col2 NOT BETWEEN NULL AND - + 41
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2922
SELECT ( - + col1 ) * - col1, + col1 + + + 26 DIV - + col0 AS col2 FROM tab2 AS cor0
----
2601
51
4489
67
5929
77

skipif mysql # not compatible
query II rowsort label-2922
SELECT ( - + col1 ) * - col1, + col1 + + + 26 / - + col0 AS col2 FROM tab2 AS cor0
----
2601
51
4489
67
5929
77

query II rowsort
SELECT DISTINCT - 36 AS col1, + col0 AS col0 FROM tab2 AS cor0
----
-36
46
-36
64
-36
75

onlyif mysql # aggregate syntax: 
query II rowsort label-2924
SELECT ALL + 3 AS col1, MAX( col2 ) col1 FROM tab2 cor0
----
3
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2924
SELECT ALL + 3 AS col1, MAX ( col2 ) col1 FROM tab2 cor0
----
3
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2925
SELECT COUNT( - col2 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2925
SELECT COUNT ( - col2 ) FROM tab0 cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 46 BETWEEN + 20 AND - col0 + + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col2 + - - 20 AS col2 FROM tab2 AS cor0
----
-20
-3
-38

query I rowsort
SELECT DISTINCT + AVG ( + 91 ) AS col0 FROM tab2 AS cor0 WHERE + 27 >= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2929
SELECT - COUNT( - - col0 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2929
SELECT - COUNT ( - - col0 ) FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2930
SELECT DISTINCT CAST( NULL AS DECIMAL ) + 17 + - + 67 * - AVG ( ALL - col1 ) + - COUNT( * ) + + + COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2930
SELECT DISTINCT CAST ( NULL AS REAL ) + 17 + - + 67 * - AVG ( ALL - col1 ) + - COUNT ( * ) + + + COUNT ( * ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - col2 + 57 * - - 38 + + col1 * - - col1 AS col0 FROM tab2 AS cor0
----
4744
6597
8055

query I rowsort
SELECT ALL - 71 - - col1 + col2 + + + col2 * - + col2 AS col0 FROM tab0
----
-140
-2152
-9772

onlyif mysql # aggregate syntax: 
query I rowsort label-2933
SELECT + COUNT( * ) FROM tab2 WHERE - - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2933
SELECT + COUNT ( * ) FROM tab2 WHERE - - col0 IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 * col0 > - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2935
SELECT - 95 * - ( 26 ) - - + CAST( - - col2 AS SIGNED ) AS col1 FROM tab2
----
2493
2510
2528

skipif mysql # not compatible
query I rowsort label-2935
SELECT - 95 * - ( 26 ) - - + CAST ( - - col2 AS INTEGER ) AS col1 FROM tab2
----
2493
2510
2528

onlyif mysql # DIV for integer division: 
query I rowsort label-2936
SELECT ALL col1 DIV col1 * ( + + col1 ) + + - 84 col0 FROM tab0
----
-3
-63
-83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2936
SELECT ALL col1 / col1 * ( + + col1 ) + + - 84 col0 FROM tab0
----
-3
-63
-83

query I rowsort
SELECT ALL 10 * col2 AS col0 FROM tab2
----
230
400
580

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 + + col0 + - ( - 26 ) AS col2, 96 col2 FROM tab2
----
118
96
154
96
176
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2939
SELECT ALL - ( 91 ) - COUNT( * ) FROM tab1
----
-94

skipif mysql # not compatible
query I rowsort label-2939
SELECT ALL - ( 91 ) - COUNT ( * ) FROM tab1
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2940
SELECT ALL - 59 + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2940
SELECT ALL - 59 + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2941
SELECT DISTINCT CAST( NULL AS SIGNED ) - + 97 * - - col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2941
SELECT DISTINCT CAST ( NULL AS INTEGER ) - + 97 * - - col2 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2942
SELECT ALL + col0 DIV - ( - col1 ) - col1 + 10 * - col2 FROM tab1
----
-578
-726
-971

skipif mysql # not compatible
query I rowsort label-2942
SELECT ALL + col0 / - ( - col1 ) - col1 + 10 * - col2 FROM tab1
----
-578
-726
-971

query I rowsort
SELECT + col2 + + 28 FROM tab2 AS cor0
----
51
68
86

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2944
SELECT DISTINCT - MIN( - CAST( NULL AS DECIMAL ) ) AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2944
SELECT DISTINCT - MIN ( - CAST ( NULL AS REAL ) ) AS col1 FROM tab1 cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 * - col2 > NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 / - col0 * col2 * col2 * + 89 * - - col2 - - 29 + col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2947
SELECT DISTINCT + MAX( DISTINCT + - 72 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-72

skipif mysql # not compatible
query I rowsort label-2947
SELECT DISTINCT + MAX ( DISTINCT + - 72 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2948
SELECT COUNT( col0 ) DIV COUNT( ALL + 16 ) AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2948
SELECT COUNT ( col0 ) / COUNT ( ALL + 16 ) AS col0 FROM tab0 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 23 * + ( - - col2 ) + - col2 * col0 * + + 20 col1 FROM tab1 AS cor0
----
-122196
-95712
-98943

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2950
SELECT ( - CAST( + 87 AS SIGNED ) ) * - - col2 + + CAST( - 14 AS SIGNED ) * + - 64 FROM tab2 AS cor0 WHERE NOT - 28 / col2 * + + col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2950
SELECT ( - CAST ( + 87 AS INTEGER ) ) * - - col2 + + CAST ( - 14 AS INTEGER ) * + - 64 FROM tab2 AS cor0 WHERE NOT - 28 / col2 * + + col2 IS NOT NULL
----

query II rowsort
SELECT - col2, col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-23
46
-40
64
-58
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2952
SELECT CAST( + col1 AS SIGNED ) * - - col2 AS col2 FROM tab1 AS cor0
----
1344
295
3196

skipif mysql # not compatible
query I rowsort label-2952
SELECT CAST ( + col1 AS INTEGER ) * - - col2 AS col2 FROM tab1 AS cor0
----
1344
295
3196

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 73 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2954
SELECT DISTINCT - + 42 DIV - col2 AS col1 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2954
SELECT DISTINCT - + 42 / - col2 AS col1 FROM tab1 cor0
----
0

query I rowsort
SELECT + 48 * + + col1 FROM tab0
----
1008
3888
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2956
SELECT + 61 + + COUNT( DISTINCT + col2 ) + 39 + MIN( ALL - + col1 ) * - 48 + 36 AS col2 FROM tab2
----
3835

skipif mysql # not compatible
query I rowsort label-2956
SELECT + 61 + + COUNT ( DISTINCT + col2 ) + 39 + MIN ( ALL - + col1 ) * - 48 + 36 AS col2 FROM tab2
----
3835

onlyif mysql # aggregate syntax: 
query I rowsort label-2957
SELECT + MIN( - 90 ) + - 53 FROM tab1
----
-143

skipif mysql # not compatible
query I rowsort label-2957
SELECT + MIN ( - 90 ) + - 53 FROM tab1
----
-143

onlyif mysql # DIV for integer division: 
query I rowsort label-2958
SELECT col1 + + - col2 DIV 50 AS col2 FROM tab2
----
51
66
77

skipif mysql # not compatible
query I rowsort label-2958
SELECT col1 + + - col2 / 50 AS col2 FROM tab2
----
51
66
77

onlyif mysql # DIV for integer division: 
query I rowsort label-2959
SELECT + 23 DIV col1 + - 30 AS col1 FROM tab0
----
-29
-30
-7

skipif mysql # not compatible
query I rowsort label-2959
SELECT + 23 / col1 + - 30 AS col1 FROM tab0
----
-29
-30
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2960
SELECT ALL - CAST( NULL AS SIGNED ) * + ( + col1 ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2960
SELECT ALL - CAST ( NULL AS INTEGER ) * + ( + col1 ) AS col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 83 / + ( - + 25 ) IS NULL
----

query II rowsort
SELECT DISTINCT - col2, col1 + + - 28 AS col2 FROM tab1 AS cor0
----
-59
-23
-68
19
-96
-14

query I rowsort
SELECT DISTINCT + col0 + - 21 AS col1 FROM tab0 AS cor0
----
-6
66
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2964
SELECT DISTINCT - MAX( - 46 ) + + + COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
55

skipif mysql # not compatible
query I rowsort label-2964
SELECT DISTINCT - MAX ( - 46 ) + + + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-2965
SELECT DISTINCT COUNT( * ) + + - COUNT( * ) AS col0, + 34 AS col1 FROM tab2
----
0
34

skipif mysql # not compatible
query II rowsort label-2965
SELECT DISTINCT COUNT ( * ) + + - COUNT ( * ) AS col0, + 34 AS col1 FROM tab2
----
0
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2966
SELECT ALL + - SUM( - 82 ) DIV - + 55 FROM tab0 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-2966
SELECT ALL + - SUM ( - 82 ) / - + 55 FROM tab0 AS cor0
----
-4

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 35 + - ( + 16 ) >= col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 25 IS NOT NULL
----

query I rowsort
SELECT ALL col2 AS col1 FROM tab1 cor0 WHERE NULL NOT BETWEEN ( NULL ) AND - + col0 + + 19 * + col2 + + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 63 col1 FROM tab1 AS cor0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2971
SELECT DISTINCT + 91 + - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-2971
SELECT DISTINCT + 91 + - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col2 ) col0 FROM tab0 cor0 WHERE - ( + + col0 ) * - + col1 IS NOT NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2973
SELECT + SUM( - - 95 ) AS col1 FROM tab2
----
285

skipif mysql # not compatible
query I rowsort label-2973
SELECT + SUM ( - - 95 ) AS col1 FROM tab2
----
285

query I rowsort
SELECT - - 45 - 77 FROM tab2 WHERE NULL > col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 23 col0 FROM tab0
----
-23
-23
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 37 - 69 col2 FROM tab0
----
-106
-106
-106

query II rowsort
SELECT DISTINCT - col0 * - + col1 * - - col0 + + 45 AS col2, 76 - + col1 FROM tab0
----
158994
55
18270
-5
9454
75

query I rowsort
SELECT ALL + col2 * - 34 + 81 + - col0 AS col0 FROM tab1 cor0
----
-2010
-2322
-3234

query I rowsort
SELECT DISTINCT 0 AS col0 FROM tab1 WHERE NOT NULL <> + 60 - + 19
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + 87 col2 FROM tab2 WHERE NOT ( - 74 ) IS NULL
----
138
154
164

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab1 WHERE NOT ( NULL ) = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2982
SELECT ALL + CAST( 40 AS SIGNED ) AS col0 FROM tab0
----
40
40
40

skipif mysql # not compatible
query I rowsort label-2982
SELECT ALL + CAST ( 40 AS INTEGER ) AS col0 FROM tab0
----
40
40
40

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2983
SELECT * FROM tab1 WHERE NOT NULL <= ( ( CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-2983
SELECT * FROM tab1 WHERE NOT NULL <= ( ( CAST ( NULL AS INTEGER ) ) )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2984
SELECT ALL col2 col1 FROM tab2 WHERE col0 * + 83 + - CAST( NULL AS DECIMAL ) * + CAST( NULL AS SIGNED ) IN ( + col2 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2984
SELECT ALL col2 col1 FROM tab2 WHERE col0 * + 83 + - CAST ( NULL AS REAL ) * + CAST ( NULL AS INTEGER ) IN ( + col2 )
----

query I rowsort
SELECT ALL ( - 90 ) FROM tab2
----
-90
-90
-90

query III rowsort
SELECT * FROM tab2 WHERE col0 + 89 NOT BETWEEN NULL AND - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 55 FROM tab1 WHERE col2 * + col1 >= 73
----
-55

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2988
SELECT * FROM tab0 WHERE NOT ( CAST( + col1 AS DECIMAL ) * col2 ) IN ( 49 + - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2988
SELECT * FROM tab0 WHERE NOT ( CAST ( + col1 AS REAL ) * col2 ) IN ( 49 + - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 * 85 FROM tab0
----
1785
6885
85

query I rowsort
SELECT - col2 * + col0 FROM tab0 WHERE NOT NULL BETWEEN - col2 + + col2 * col0 AND 10
----

query I rowsort
SELECT col1 FROM tab1 WHERE ( col0 ) BETWEEN ( col2 ) AND ( + col1 )
----

query I rowsort
SELECT DISTINCT 80 * - col2 AS col2 FROM tab2
----
-1840
-3200
-4640

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 IN ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col2 + + col2 AS col0 FROM tab0 WHERE NOT NULL < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2995
SELECT CAST( col1 AS SIGNED ) AS col0 FROM tab2 WHERE col2 IS NOT NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-2995
SELECT CAST ( col1 AS INTEGER ) AS col0 FROM tab2 WHERE col2 IS NOT NULL
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2996
SELECT - CAST( NULL AS SIGNED ) / + col2 FROM tab0 WHERE NOT + 91 * CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2996
SELECT - CAST ( NULL AS INTEGER ) / + col2 FROM tab0 WHERE NOT + 91 * CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2997
SELECT 67 + ( + 87 + + COUNT( * ) ) * - COUNT( * ) AS col1 FROM tab0
----
-203

skipif mysql # not compatible
query I rowsort label-2997
SELECT 67 + ( + 87 + + COUNT ( * ) ) * - COUNT ( * ) AS col1 FROM tab0
----
-203

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 0 NOT BETWEEN ( + 28 ) AND 61
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 35 col1 FROM tab1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3000
SELECT - 97 + COUNT( * ) FROM tab2 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-3000
SELECT - 97 + COUNT ( * ) FROM tab2 AS cor0
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3001
SELECT DISTINCT * FROM tab0 WHERE NOT ( ( col0 ) + - CAST( col2 - + col0 AS SIGNED ) * col2 ) IN ( - col0 + ( col0 ) * col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3001
SELECT DISTINCT * FROM tab0 WHERE NOT ( ( col0 ) + - CAST ( col2 - + col0 AS INTEGER ) * col2 ) IN ( - col0 + ( col0 ) * col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 36 col1 FROM tab2 cor0
----
36
36
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3003
SELECT DISTINCT + ( + SUM( DISTINCT + 35 ) ) FROM tab1 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-3003
SELECT DISTINCT + ( + SUM ( DISTINCT + 35 ) ) FROM tab1 AS cor0
----
35

query I rowsort
SELECT - - col2 * + ( - col0 ) FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-3005
SELECT - COUNT( * ) - 38 FROM tab2 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-3005
SELECT - COUNT ( * ) - 38 FROM tab2 AS cor0
----
-41

query I rowsort
SELECT + + col0 - ( - 77 ) AS col0 FROM tab0 AS cor0
----
164
174
92

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * - 44 - 43 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL >= ( + col2 * - col0 )
----

query I rowsort
SELECT DISTINCT - ( col2 ) * 54 FROM tab2 AS cor0 WHERE NOT col0 * 45 + - 67 BETWEEN ( + col2 + + 39 * - 71 ) AND NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NULL ) <> ( - col1 + + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3011
SELECT MAX( ALL + + col0 ) AS col1 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-3011
SELECT MAX ( ALL + + col0 ) AS col1 FROM tab1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3012
SELECT ALL + COUNT( - - ( - 53 ) ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3012
SELECT ALL + COUNT ( - - ( - 53 ) ) AS col1 FROM tab2
----
3

query I rowsort
SELECT ALL + 53 FROM tab0 WHERE ( + 59 * 79 ) IS NULL
----

query I rowsort
SELECT 93 * - col0 * - col0 FROM tab2
----
196788
380928
523125

onlyif mysql # aggregate syntax: 
query I rowsort label-3015
SELECT DISTINCT + SUM( DISTINCT + 98 ) AS col1 FROM tab2 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-3015
SELECT DISTINCT + SUM ( DISTINCT + 98 ) AS col1 FROM tab2 AS cor0
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3016
SELECT CAST( NULL AS SIGNED ) * + col1 AS col0 FROM tab0 AS cor0 WHERE NOT ( - 39 + + col2 ) IS NULL AND NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3016
SELECT CAST ( NULL AS INTEGER ) * + col1 AS col0 FROM tab0 AS cor0 WHERE NOT ( - 39 + + col2 ) IS NULL AND NULL IS NULL
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 * 6 NOT IN ( col1 * 8 + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 13 col1, - col1 FROM tab1
----
13
-14
13
-47
13
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 20 col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

query I rowsort
SELECT - + 5 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3021
SELECT DISTINCT - 20 + - col1 col0 FROM tab2 WHERE NOT ( NOT + 78 * 72 - + col2 * col2 <= CAST( col2 AS DECIMAL ) + col1 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3021
SELECT DISTINCT - 20 + - col1 col0 FROM tab2 WHERE NOT ( NOT + 78 * 72 - + col2 * col2 <= CAST ( col2 AS REAL ) + col1 )
----

query I rowsort
SELECT ALL 52 * - 1 AS col0 FROM tab1 AS cor0
----
-52
-52
-52

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( 5 * - - col0 / ( + col2 ) ) BETWEEN NULL AND ( NULL )
----

query II rowsort
SELECT ALL - - col0, col2 AS col0 FROM tab2 AS cor0
----
46
23
64
40
75
58

query I rowsort
SELECT DISTINCT + col1 + - col2 FROM tab1 AS cor0 WHERE ( - ( + + col2 ) ) IN ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3026
SELECT + + 25 + - ( - MIN( - col1 ) ) AS col1 FROM tab0 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-3026
SELECT + + 25 + - ( - MIN ( - col1 ) ) AS col1 FROM tab0 AS cor0
----
-56

query I rowsort
SELECT ALL 18 + - 88 + + col0 AS col2 FROM tab1 AS cor0
----
-19
15
21

query I rowsort
SELECT + ( - - 39 ) * + 73 + col1 * 56 + 66 FROM tab1 cor0
----
3193
3697
5545

query I rowsort
SELECT DISTINCT + col0 + + + col2 + - + col1 FROM tab0 AS cor0
----
-19
195
76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3030
SELECT ALL CAST( - col0 AS SIGNED ) col1, col2 AS col1 FROM tab2
----
-46
23
-64
40
-75
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3030
SELECT ALL CAST ( - col0 AS INTEGER ) col1, col2 AS col1 FROM tab2
----
-46
23
-64
40
-75
58

query I rowsort
SELECT DISTINCT - 43 * - col2 * - col2 FROM tab2
----
-144652
-22747
-68800

query III rowsort
SELECT * FROM tab0 WHERE + col1 BETWEEN - 19 AND col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL col2 * + col0 AS col0, 66 FROM tab1
----
4896
66
5015
66
6188
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 33 col2 FROM tab0
----
-33

query I rowsort
SELECT DISTINCT col0 + - col1 * - col1 * - 34 AS col0 FROM tab1
----
-6613
-75015
-765

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3036
SELECT DISTINCT + MAX( - 21 ) AS col0 FROM tab0 WHERE NOT NULL >= ( 88 * + CAST( NULL AS SIGNED ) * - 54 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3036
SELECT DISTINCT + MAX ( - 21 ) AS col0 FROM tab0 WHERE NOT NULL >= ( 88 * + CAST ( NULL AS INTEGER ) * - 54 )
----
NULL

query I rowsort
SELECT ALL col1 * col1 + + ( col0 ) FROM tab1 WHERE NOT NULL BETWEEN ( + + col2 ) AND + col2
----

query III rowsort
SELECT * FROM tab1 WHERE ( - - col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3039
SELECT 56 + - CAST( - + col2 AS SIGNED ) AS col2 FROM tab1
----
115
124
152

skipif mysql # not compatible
query I rowsort label-3039
SELECT 56 + - CAST ( - + col2 AS INTEGER ) AS col2 FROM tab1
----
115
124
152

query I rowsort
SELECT ALL 8 + col2 * - col0 AS col2 FROM tab0
----
-697
-862
-9595

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3041
SELECT ALL * FROM tab2 WHERE NOT - col1 * CAST( NULL AS SIGNED ) <> col2
----

skipif mysql # not compatible
query III rowsort label-3041
SELECT ALL * FROM tab2 WHERE NOT - col1 * CAST ( NULL AS INTEGER ) <> col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - 0 + + 61 ) IN ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3043
SELECT ALL 35 DIV + col2 AS col1 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3043
SELECT ALL 35 / + col2 AS col1 FROM tab2
----
0
0
1

query I rowsort
SELECT + col0 AS col0 FROM tab1 AS cor0 WHERE NULL <= + col0
----

query I rowsort
SELECT - ( 15 ) FROM tab1 cor0
----
-15
-15
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3046
SELECT DISTINCT COUNT( * ) * + - MIN( DISTINCT + 97 ) FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
-291

skipif mysql # not compatible
query I rowsort label-3046
SELECT DISTINCT COUNT ( * ) * + - MIN ( DISTINCT + 97 ) FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
-291

query II rowsort
SELECT ALL + - col2 AS col0, - 26 AS col1 FROM tab1 AS cor0
----
-59
-26
-68
-26
-96
-26

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3048
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - 2 * - CAST( - 90 AS SIGNED ) * - col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3048
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - 2 * - CAST ( - 90 AS INTEGER ) * - col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col0 AS col0, + 46 FROM tab1 AS cor0 WHERE NOT NULL < ( + col0 )
----

query I rowsort
SELECT ALL - 32 * col0 AS col0 FROM tab2 AS cor0
----
-1472
-2048
-2400

query I rowsort
SELECT DISTINCT - col0 * + + col0 AS col0 FROM tab2
----
-2116
-4096
-5625

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col1, + col2 AS col1 FROM tab0
----
-10
10
-47
47
-99
99

onlyif mysql # DIV for integer division: 
query II rowsort label-3053
SELECT 47 DIV + col1 col0, col2 FROM tab1
----
1
68
3
96
9
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3053
SELECT 47 / + col1 col0, col2 FROM tab1
----
1
68
3
96
9
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3054
SELECT - SUM( + 70 ) FROM tab0, tab1 AS cor0
----
-630

skipif mysql # not compatible
query I rowsort label-3054
SELECT - SUM ( + 70 ) FROM tab0, tab1 AS cor0
----
-630

query I rowsort
SELECT DISTINCT - 50 FROM tab0 WHERE NOT + + col0 >= - col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 * 34 >= + 42
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE - - col0 NOT BETWEEN ( NULL ) AND col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 * + - 6 + + col2 AS col2 FROM tab2 AS cor0
----
329
460
502

onlyif mysql # aggregate syntax: 
query I rowsort label-3059
SELECT DISTINCT ( COUNT( DISTINCT + + col0 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3059
SELECT DISTINCT ( COUNT ( DISTINCT + + col0 ) ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3060
SELECT DISTINCT - - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3060
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT 31 + + 15 AS col2 FROM tab2
----
46
46
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3062
SELECT DISTINCT - 72 + - COUNT( * ) AS col2 FROM tab0 cor0
----
-75

skipif mysql # not compatible
query I rowsort label-3062
SELECT DISTINCT - 72 + - COUNT ( * ) AS col2 FROM tab0 cor0
----
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col1, 1 AS col2 FROM tab0 AS cor0 WHERE NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3064
SELECT - MAX( - 60 ) AS col1 FROM tab1 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-3064
SELECT - MAX ( - 60 ) AS col1 FROM tab1 AS cor0
----
60

query II rowsort
SELECT ALL + col0 * + col1 + + 33, col0 FROM tab2 AS cor0
----
2379
46
4961
64
5058
75

query III rowsort
SELECT * FROM tab0 WHERE 4 BETWEEN - col1 * - + 97 - - + 70 AND + 99 - - + col1 OR NULL IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 33 + col1 + - + 16 AS col0 FROM tab0
----
-28
-48
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3068
SELECT DISTINCT SUM( - col1 ) AS col0 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-3068
SELECT DISTINCT SUM ( - col1 ) AS col0 FROM tab2
----
-195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3069
SELECT DISTINCT + col1 FROM tab2 WHERE NOT ( + col0 + + 7 ) BETWEEN - col2 AND ( + - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-3069
SELECT DISTINCT + col1 FROM tab2 WHERE NOT ( + col0 + + 7 ) BETWEEN - col2 AND ( + - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT + col0 AS col1 FROM tab1 WHERE + + col1 IS NOT NULL
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-3071
SELECT col0 DIV + - col0 - col2 AS col0 FROM tab1
----
-60
-69
-97

skipif mysql # not compatible
query I rowsort label-3071
SELECT col0 / + - col0 - col2 AS col0 FROM tab1
----
-60
-69
-97

query I rowsort
SELECT 53 + col2 FROM tab2
----
111
76
93

query II rowsort
SELECT ALL - - 77, col0 * + + col1 * + col0 + + col0 FROM tab0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT + + 23 + col1 + col1 FROM tab2 AS cor0
----
125
157
177

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3075
SELECT + CAST( + - 89 AS SIGNED ) + + - col0 + - col0 / + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3075
SELECT + CAST ( + - 89 AS INTEGER ) + + - col0 + - col0 / + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - col0 ) <> col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3077
SELECT ALL - SUM( ALL 38 ) * 46 AS col1 FROM tab1 AS cor0
----
-5244

skipif mysql # not compatible
query I rowsort label-3077
SELECT ALL - SUM ( ALL 38 ) * 46 AS col1 FROM tab1 AS cor0
----
-5244

query II rowsort
SELECT - 25 + + - 58 AS col0, 52 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to 9af6f26bfa974c56e880763034b4bf30

query I rowsort
SELECT DISTINCT ( col0 ) * - + col1 - - col1 FROM tab0
----
-1134
-1806
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3080
SELECT DISTINCT + - col0 FROM tab1 AS cor0 WHERE col2 + CAST( - 94 AS SIGNED ) IS NOT NULL
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-3080
SELECT DISTINCT + - col0 FROM tab1 AS cor0 WHERE col2 + CAST ( - 94 AS INTEGER ) IS NOT NULL
----
-51
-85
-91

query II rowsort
SELECT + + col1 * + + col1, col2 * + 26 AS col0 FROM tab1 AS cor0
----
196
2496
2209
1768
25
1534

query I rowsort
SELECT + - 23 * - 82 FROM tab2 AS cor0
----
1886
1886
1886

query I rowsort
SELECT ALL - col0 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 84 * - col2 * - col1 FROM tab2 AS cor0
----
-258720
-326424
-98532

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3085
SELECT col0 + col1 FROM tab2 cor0 WHERE NOT ( NULL ) NOT IN ( + CAST( - col0 AS SIGNED ) * - col1 - + col0 + col2 * - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-3085
SELECT col0 + col1 FROM tab2 cor0 WHERE NOT ( NULL ) NOT IN ( + CAST ( - col0 AS INTEGER ) * - col1 - + col0 + col2 * - CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND 95
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3087
SELECT col2 DIV + 35 col0 FROM tab1
----
1
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3087
SELECT col2 / + 35 col0 FROM tab1
----
1
1
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3088
SELECT DISTINCT 36 DIV + COUNT( * ) FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-3088
SELECT DISTINCT 36 / + COUNT ( * ) FROM tab2
----
12

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 93 / 93 * - col0 * + ( - col1 ) * col0 - - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( - + 55 ) AS col0 FROM tab1
----
-55

query I rowsort
SELECT ALL + col2 * - - col0 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + col2 * 9 FROM tab1 AS cor0
----
531
612
864

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 26 + + col2 + + 44 IN ( - + col2, col1 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * - + col1 + + + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3095
SELECT ALL + COUNT( * ) * + 39 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
351

skipif mysql # not compatible
query I rowsort label-3095
SELECT ALL + COUNT ( * ) * + 39 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
351

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + - col2 IS NOT NULL AND NOT NULL IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col2 ) BETWEEN 98 * col1 * + col1 * - 42 AND - ( + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3098
SELECT DISTINCT - - ( col2 ) * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3098
SELECT DISTINCT - - ( col2 ) * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3099
SELECT ALL - 53, - MAX( DISTINCT 72 ) AS col1 FROM tab1 AS cor0
----
-53
-72

skipif mysql # not compatible
query II rowsort label-3099
SELECT ALL - 53, - MAX ( DISTINCT 72 ) AS col1 FROM tab1 AS cor0
----
-53
-72

query I rowsort
SELECT DISTINCT + col1 * + col0 * - col0 AS col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 50 * - ( + col1 ) - + col0 * + 64 + 82 AND - col2
----

query I rowsort
SELECT - ( + + col0 ) + - 58 FROM tab0
----
-145
-155
-73

query I rowsort
SELECT 7 + + col2 FROM tab1
----
103
66
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3103
SELECT ALL 90 * CAST( + + col0 AS SIGNED ) + - CAST( - 73 AS SIGNED ) + - 10 + + - 40 * ( - col2 ) * col2 * CAST( + 12 AS SIGNED ) AS col2 FROM tab0
----
1061733
4713273
55893

skipif mysql # not compatible
query I rowsort label-3103
SELECT ALL 90 * CAST ( + + col0 AS INTEGER ) + - CAST ( - 73 AS INTEGER ) + - 10 + + - 40 * ( - col2 ) * col2 * CAST ( + 12 AS INTEGER ) AS col2 FROM tab0
----
1061733
4713273
55893

query II rowsort
SELECT DISTINCT col1 - + col2, + col1 FROM tab2
----
28
51
37
77
9
67

query II rowsort
SELECT - 29 AS col0, - col2 FROM tab0 WHERE ( NOT - col0 IS NULL )
----
-29
-10
-29
-47
-29
-99

query I rowsort
SELECT col1 - + - 6 * + ( + col2 ) * + - 30 FROM tab2 AS cor0
----
-10373
-4089
-7123

query I rowsort
SELECT ALL 38 + + 61 - + col2 * col1 FROM tab1 AS cor0
----
-1245
-196
-3097

query I rowsort
SELECT + col0 - + 18 FROM tab2 AS cor0
----
28
46
57

onlyif mysql # DIV for integer division: 
query I rowsort label-3109
SELECT DISTINCT col2 * col2 * - 83 + + 0 DIV 8 AS col0 FROM tab0
----
-183347
-813483
-8300

skipif mysql # not compatible
query I rowsort label-3109
SELECT DISTINCT col2 * col2 * - 83 + + 0 / 8 AS col0 FROM tab0
----
-183347
-813483
-8300

query I rowsort
SELECT - col0 AS col0 FROM tab1 WHERE - col2 IS NOT NULL
----
-51
-85
-91

query I rowsort
SELECT 12 + - col2 FROM tab0
----
-35
-87
2

query I rowsort
SELECT DISTINCT 83 AS col0 FROM tab2 AS cor0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3113
SELECT - COUNT( * ) + 97 FROM tab1 AS cor0 WHERE NOT + col1 BETWEEN - 62 + col1 AND - 46
----
94

skipif mysql # not compatible
query I rowsort label-3113
SELECT - COUNT ( * ) + 97 FROM tab1 AS cor0 WHERE NOT + col1 BETWEEN - 62 + col1 AND - 46
----
94

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 + + 52 BETWEEN NULL AND + + 26
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1, col2 col0 FROM tab1 cor0
----
-14
96
-47
68
-5
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3116
SELECT ALL CAST( NULL AS SIGNED ) * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3116
SELECT ALL CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3117
SELECT ALL + SUM( ALL 25 ) AS col1 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-3117
SELECT ALL + SUM ( ALL 25 ) AS col1 FROM tab2 AS cor0
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3118
SELECT - + CAST( SUM( DISTINCT - 55 ) AS SIGNED ) col2 FROM tab2 AS cor0
----
55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3118
SELECT - + CAST ( SUM ( DISTINCT - 55 ) AS INTEGER ) col2 FROM tab2 AS cor0
----
55

query I rowsort
SELECT col2 * - - col0 + 58 AS col1 FROM tab1 AS cor0
----
4954
5073
6246

onlyif mysql # aggregate syntax: 
query I rowsort label-3120
SELECT DISTINCT - 73 * + SUM( ALL - + col0 ) AS col0 FROM tab0
----
14527

skipif mysql # not compatible
query I rowsort label-3120
SELECT DISTINCT - 73 * + SUM ( ALL - + col0 ) AS col0 FROM tab0
----
14527

onlyif mysql # DIV for integer division: 
query I rowsort label-3121
SELECT - col0 DIV - + 5 FROM tab1
----
10
17
18

skipif mysql # not compatible
query I rowsort label-3121
SELECT - col0 / - + 5 FROM tab1
----
10
17
18

onlyif mysql # DIV for integer division: 
query I rowsort label-3122
SELECT col2 DIV 45 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-3122
SELECT col2 / 45 FROM tab0
----
0
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3123
SELECT DISTINCT COUNT( * ) * 66 AS col0 FROM tab1
----
198

skipif mysql # not compatible
query I rowsort label-3123
SELECT DISTINCT COUNT ( * ) * 66 AS col0 FROM tab1
----
198

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3124
SELECT DISTINCT col2 DIV CAST( + CAST( + col0 AS SIGNED ) AS SIGNED ) DIV - col2 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3124
SELECT DISTINCT col2 / CAST ( + CAST ( + col0 AS INTEGER ) AS INTEGER ) / - col2 AS col0 FROM tab0
----
0

query I rowsort
SELECT DISTINCT col1 - - - col0 FROM tab2 WHERE + + 9 IS NOT NULL
----
-8
13
5

query II rowsort
SELECT DISTINCT 56 * + 71 * + 10 AS col2, - col1 * col0 AS col1 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
39760
-1215
39760
-1827
39760
-97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 + col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col1 ) IN ( + col1, col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3129
SELECT DISTINCT ( + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3129
SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT - col2 * 71 AS col1 FROM tab1
----
-4189
-4828
-6816

onlyif mysql # aggregate syntax: 
query I rowsort label-3131
SELECT DISTINCT + + COUNT( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-3131
SELECT DISTINCT + + COUNT ( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3132
SELECT ALL + COUNT( DISTINCT + 60 ) * - 66 AS col2 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-3132
SELECT ALL + COUNT ( DISTINCT + 60 ) * - 66 AS col2 FROM tab1
----
-66

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE + 57 <= - col2
----

query II rowsort
SELECT col0, - 72 FROM tab2 AS cor0
----
46
-72
64
-72
75
-72

query I rowsort
SELECT - 90 * col0 FROM tab1 cor0
----
-4590
-7650
-8190

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 IN ( 57 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col0, - col1 * - col0 AS col2 FROM tab2 AS cor0
----
46
2346
64
4928
75
5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + - col2 col2 FROM tab2 AS cor0
----
-1173
-3080
-3886

query I rowsort
SELECT DISTINCT ( + 85 ) * + col1 FROM tab2
----
4335
5695
6545

query I rowsort
SELECT ALL - 37 + 80 FROM tab2
----
43
43
43

onlyif mysql # DIV for integer division: 
query I rowsort label-3141
SELECT DISTINCT 30 DIV col0 DIV + 35 - - col0 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-3141
SELECT DISTINCT 30 / col0 / + 35 - - col0 FROM tab1
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3142
SELECT DISTINCT - SUM( + - 34 ) FROM tab2
----
102

skipif mysql # not compatible
query I rowsort label-3142
SELECT DISTINCT - SUM ( + - 34 ) FROM tab2
----
102

query I rowsort
SELECT + 34 + - 30 + + col0 * col1 FROM tab1 AS cor0
----
4281
429
718

query I rowsort
SELECT DISTINCT - - col1 * - col0 / - 44 FROM tab2 AS cor0 WHERE col0 / - col2 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3145
SELECT CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3145
SELECT CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3146
SELECT ALL COUNT( ALL - - 55 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3146
SELECT ALL COUNT ( ALL - - 55 ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE + 84 * - col2 IS NOT NULL
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col0, 48 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 43 + - - 1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + 18 AS col0 FROM tab0 AS cor0
----
-18
-18
-18

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3151
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 + - col2 + CAST( - col1 AS SIGNED ) * col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-3151
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 + - col2 + CAST ( - col1 AS INTEGER ) * col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3152
SELECT 53 * - + col1 * - CAST( NULL AS SIGNED ) + + col2 * col1 * + col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3152
SELECT 53 * - + col1 * - CAST ( NULL AS INTEGER ) + + col2 * col1 * + col2 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3153
SELECT ALL ( COUNT( * ) ) AS col1, + 10 DIV - 64 AS col0 FROM tab1 cor0
----
3
0

skipif mysql # not compatible
query II rowsort label-3153
SELECT ALL ( COUNT ( * ) ) AS col1, + 10 / - 64 AS col0 FROM tab1 cor0
----
3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3154
SELECT ALL + ( - - MIN( ALL - col1 ) ) AS col2 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-3154
SELECT ALL + ( - - MIN ( ALL - col1 ) ) AS col2 FROM tab0 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3155
SELECT ALL + COUNT( DISTINCT - 40 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-3155
SELECT ALL + COUNT ( DISTINCT - 40 ) FROM tab1
----
1

query I rowsort
SELECT col0 + 84 * col0 FROM tab0
----
1275
7395
8245

onlyif mysql # aggregate syntax: 
query I rowsort label-3157
SELECT ALL COUNT( * ) * - MIN( ALL - 96 ) AS col2 FROM tab2
----
288

skipif mysql # not compatible
query I rowsort label-3157
SELECT ALL COUNT ( * ) * - MIN ( ALL - 96 ) AS col2 FROM tab2
----
288

query I rowsort
SELECT col1 FROM tab0 WHERE NOT + - col1 IS NULL
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3159
SELECT CAST( NULL AS SIGNED ) + col2 * - 42 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3159
SELECT CAST ( NULL AS INTEGER ) + col2 * - 42 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3160
SELECT - 98 DIV - + col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3160
SELECT - 98 / - + col1 FROM tab2
----
1
1
1

query I rowsort
SELECT DISTINCT - + col0 + + + col0 AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3162
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 28 <> CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3162
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 28 <> CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL + col1 + - ( + col2 ) FROM tab0 WHERE + 93 < + col2 + - - col0
----
-98
11

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3164
SELECT * FROM tab0 WHERE col1 <> ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3164
SELECT * FROM tab0 WHERE col1 <> ( - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3165
SELECT DISTINCT - COUNT( * ) DIV 15 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3165
SELECT DISTINCT - COUNT ( * ) / 15 FROM tab2 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3166
SELECT ALL - MAX( ALL + col2 ) col1 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3166
SELECT ALL - MAX ( ALL + col2 ) col1 FROM tab1 AS cor0
----
-96

query I rowsort
SELECT ALL - 26 * 50 + + col0 FROM tab0 AS cor0
----
-1203
-1213
-1285

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3168
SELECT - col2 * - col0 + - + CAST( - - 54 AS SIGNED ) FROM tab0 AS cor0
----
651
816
9549

skipif mysql # not compatible
query I rowsort label-3168
SELECT - col2 * - col0 + - + CAST ( - - 54 AS INTEGER ) FROM tab0 AS cor0
----
651
816
9549

query I rowsort
SELECT ALL + + 10 AS col0 FROM tab0 AS cor0 WHERE NOT 23 IS NULL
----
10
10
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3170
SELECT ALL MAX( + - col0 ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-3170
SELECT ALL MAX ( + - col0 ) FROM tab0 AS cor0
----
-15

query II rowsort
SELECT - + col0 + - 33 + + 70 + - + col2 AS col1, + col0 + + 84 * - col1 * col0 * col2 FROM tab0 AS cor0
----
-159
-806555
-25
-4796805
-60
-1534593

query I rowsort
SELECT DISTINCT col0 + - col1 * - col0 FROM tab1
----
4368
510
765

query I rowsort
SELECT 14 * - + col2 - - 45 AS col1 FROM tab0
----
-1341
-613
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-3174
SELECT COUNT( * ) * - + 27 col1 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3174
SELECT COUNT ( * ) * - + 27 col1 FROM tab0 AS cor0
----
-81

query I rowsort
SELECT DISTINCT - 67 AS col2 FROM tab0, tab0 AS cor0 WHERE NOT NULL <> 19
----

query II rowsort
SELECT ALL + 65 AS col1, 55 * - 91 FROM tab1
----
65
-5005
65
-5005
65
-5005

query II rowsort
SELECT + 77 AS col2, - col0 FROM tab2 AS cor0
----
77
-46
77
-64
77
-75

query II rowsort
SELECT ALL col0, col0 * + + col0 AS col0 FROM tab1 cor0
----
51
2601
85
7225
91
8281

query II rowsort
SELECT ALL col1, - col1 AS col1 FROM tab0 AS cor0
----
1
-1
21
-21
81
-81

query I rowsort
SELECT 47 * 56 - + col1 + + col2 AS col1 FROM tab1 AS cor0 WHERE ( - col1 IS NULL ) OR NOT - - col2 IS NULL
----
2653
2686
2714

onlyif mysql # aggregate syntax: 
query I rowsort label-3181
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-3181
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL = NULL
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 + - 54 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3183
SELECT ALL - MIN( - + 13 ) FROM tab2 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-3183
SELECT ALL - MIN ( - + 13 ) FROM tab2 AS cor0
----
13

query I rowsort
SELECT ALL + + col1 * + 89 - + col2 AS col1 FROM tab2 cor0 WHERE col1 * - col2 + + col1 * - - col0 * - + col2 / + col1 - + 94 + col1 * col0 / - col0 * - col1 + - col2 IS NULL
----

query I rowsort
SELECT ALL + col2 AS col1 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
10
47
99

query II rowsort
SELECT col0 AS col1, - 48 AS col0 FROM tab0 AS cor0
----
15
-48
87
-48
97
-48

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 46 IS NOT NULL OR NULL <= + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 93 + + - col0 + col2 AS col2 FROM tab1
----
138
67
70

onlyif mysql # DIV for integer division: 
query I rowsort label-3189
SELECT + 73 DIV - 93 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3189
SELECT + 73 / - 93 AS col2 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 1 col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
1
1
1

query I rowsort
SELECT DISTINCT ( + 88 ) FROM tab2
----
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col2 col0 FROM tab2 WHERE ( + - 23 ) IS NOT NULL
----
-1058
-2560
-4350

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 34 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3194
SELECT ALL - MIN( DISTINCT + col2 ) + - - MAX( ALL - col0 ) FROM tab2 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-3194
SELECT ALL - MIN ( DISTINCT + col2 ) + - - MAX ( ALL - col0 ) FROM tab2 AS cor0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-3195
SELECT - MAX( - + col1 ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-3195
SELECT - MAX ( - + col1 ) FROM tab1
----
5

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN - col2 + - col2 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3197
SELECT + col2 DIV col1 * 90 AS col2 FROM tab0 AS cor0
----
0
0
8910

skipif mysql # not compatible
query I rowsort label-3197
SELECT + col2 / col1 * 90 AS col2 FROM tab0 AS cor0
----
0
0
8910

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 * - col1 - + ( - 15 ) = ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3199
SELECT - MIN( + 84 ) AS col1 FROM tab2 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-3199
SELECT - MIN ( + 84 ) AS col1 FROM tab2 AS cor0
----
-84

query II rowsort
SELECT ALL - 34 + + ( + - col1 ) + + + 49 AS col1, 10 * + 55 FROM tab1 AS cor0
----
-32
550
1
550
10
550

query I rowsort
SELECT ALL - col2 + - 10 AS col1 FROM tab0 AS cor0
----
-109
-20
-57

query I rowsort
SELECT DISTINCT - - col0 + + + 93 FROM tab0 cor0
----
108
180
190

query I rowsort
SELECT ALL - 25 + - ( - 0 ) FROM tab0 AS cor0
----
-25
-25
-25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3204
SELECT DISTINCT + col1 / + 19 + - + CAST( NULL AS SIGNED ) - ( - + col1 ), col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-3204
SELECT DISTINCT + col1 / + 19 + - + CAST ( NULL AS INTEGER ) - ( - + col1 ), col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

query I rowsort
SELECT - col2 * - - 4 * - col2 AS col2 FROM tab2 WHERE + - col0 * + + col2 * - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3206
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) + + col1 - + - ( + col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3206
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) + + col1 - + - ( + col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - ( - 55 ) AS col0 FROM tab0 AS cor0
----
55

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 - col1 <= ( - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - + ( ( 39 ) ) AS col2 FROM tab1 AS cor0 WHERE NOT col2 * - col2 <> - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-3210
SELECT * FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL >= 5 + - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query IIIIII rowsort label-3210
SELECT * FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL >= 5 + - + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL + - ( + - 29 ) * col0 + 24 FROM tab2 AS cor0
----
1358
1880
2199

query I rowsort
SELECT ALL 22 + - - col1 AS col2 FROM tab2 AS cor0
----
73
89
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3213
SELECT ( + + COUNT( * ) ) + + 55 * + 73 AS col2 FROM tab0
----
4018

skipif mysql # not compatible
query I rowsort label-3213
SELECT ( + + COUNT ( * ) ) + + 55 * + 73 AS col2 FROM tab0
----
4018

query I rowsort
SELECT DISTINCT + col0 * + 94 + - 83 AS col0 FROM tab1
----
4711
7907
8471

query II rowsort
SELECT DISTINCT - 98, col1 * - 45 AS col2 FROM tab0
----
-98
-3645
-98
-45
-98
-945

query I rowsort
SELECT - col0 + - col0 * - + col0 * - col0 FROM tab2
----
-262208
-421950
-97382

onlyif mysql # DIV for integer division: 
query I rowsort label-3217
SELECT - 7 DIV + col2 + ( + 79 ) FROM tab1
----
79
79
79

skipif mysql # not compatible
query I rowsort label-3217
SELECT - 7 / + col2 + ( + 79 ) FROM tab1
----
79
79
79

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 * 52 = 67
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3219
SELECT - COUNT( * ) - - 66 col1 FROM tab0
----
63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3219
SELECT - COUNT ( * ) - - 66 col1 FROM tab0
----
63

query I rowsort
SELECT ALL - - col0 - + ( + - col2 ) FROM tab1 AS cor0
----
144
147
159

query I rowsort
SELECT + col1 + - 18 * - - col2 AS col2 FROM tab2 cor0
----
-363
-643
-977

onlyif mysql # DIV for integer division: 
query I rowsort label-3222
SELECT DISTINCT - 77 * 95 DIV + 98 AS col0 FROM tab2 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-3222
SELECT DISTINCT - 77 * 95 / + 98 AS col0 FROM tab2 AS cor0
----
-74

query I rowsort
SELECT DISTINCT 31 * - - col2 * - col1 + + + col1 FROM tab1 cor0
----
-41650
-9140
-99029

query I rowsort
SELECT 16 AS col0 FROM tab2 AS cor0 WHERE col2 IN ( col0 + col0, + col1, - col0 )
----

query I rowsort
SELECT DISTINCT 88 + - 54 + ( - + col0 ) FROM tab1 AS cor0
----
-17
-51
-57

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3226
SELECT - col0 * + ( - - CAST( NULL AS SIGNED ) ) * + col2 * - + 53 * - 33, col1 * + - ( col1 ) AS col1 FROM tab0
----
NULL
-1
NULL
-441
NULL
-6561

skipif mysql # not compatible
query II rowsort label-3226
SELECT - col0 * + ( - - CAST ( NULL AS INTEGER ) ) * + col2 * - + 53 * - 33, col1 * + - ( col1 ) AS col1 FROM tab0
----
NULL
-1
NULL
-441
NULL
-6561

onlyif mysql # aggregate syntax: 
query II rowsort label-3227
SELECT + COUNT( * ), - ( + MIN( DISTINCT - ( + col1 ) ) ) AS col1 FROM tab0
----
3
81

skipif mysql # not compatible
query II rowsort label-3227
SELECT + COUNT ( * ), - ( + MIN ( DISTINCT - ( + col1 ) ) ) AS col1 FROM tab0
----
3
81

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3228
SELECT - CAST( NULL AS DECIMAL ), col2 * col1 col1 FROM tab1
----
NULL
1344
NULL
295
NULL
3196

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3228
SELECT - CAST ( NULL AS REAL ), col2 * col1 col1 FROM tab1
----
NULL
1344
NULL
295
NULL
3196

query I rowsort
SELECT DISTINCT + - col1 * - col0 FROM tab1 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT + col0, 0 FROM tab0
----
15
0
87
0
97
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3231
SELECT * FROM tab1 WHERE NOT + col0 BETWEEN 11 AND - - CAST( NULL AS SIGNED ) + col1
----

skipif mysql # not compatible
query III rowsort label-3231
SELECT * FROM tab1 WHERE NOT + col0 BETWEEN 11 AND - - CAST ( NULL AS INTEGER ) + col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 * + col2 * + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3233
SELECT DISTINCT COUNT( * ) DIV - + 41 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3233
SELECT DISTINCT COUNT ( * ) / - + 41 AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3234
SELECT ALL + 48 DIV - 74 + - COUNT( * ) AS col0, + ( + + ( 57 ) ) AS col2 FROM tab0 AS cor0
----
-3
57

skipif mysql # not compatible
query II rowsort label-3234
SELECT ALL + 48 / - 74 + - COUNT ( * ) AS col0, + ( + + ( 57 ) ) AS col2 FROM tab0 AS cor0
----
-3
57

query I rowsort
SELECT - col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-23
-40
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3236
SELECT ALL + + COUNT( * ) * COUNT( * ) AS col0, CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
81
NULL

skipif mysql # not compatible
query II rowsort label-3236
SELECT ALL + + COUNT ( * ) * COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
81
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3237
SELECT - COUNT( * ) * - 14 AS col1 FROM tab0
----
42

skipif mysql # not compatible
query I rowsort label-3237
SELECT - COUNT ( * ) * - 14 AS col1 FROM tab0
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3238
SELECT ALL * FROM tab1 WHERE NOT ( 43 * col1 ) BETWEEN NULL AND col0 + + + CAST( NULL AS SIGNED ) - + col1 * + col2
----

skipif mysql # not compatible
query III rowsort label-3238
SELECT ALL * FROM tab1 WHERE NOT ( 43 * col1 ) BETWEEN NULL AND col0 + + + CAST ( NULL AS INTEGER ) - + col1 * + col2
----

query I rowsort
SELECT ALL col2 / ( ( col1 ) ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3240
SELECT + MAX( ALL - col1 ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3240
SELECT + MAX ( ALL - col1 ) FROM tab2 AS cor0
----
-51

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab0 AS cor0 WHERE + 23 >= - 38
----
15
87
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3242
SELECT DISTINCT - + COUNT( - - 45 ) DIV + - 62 - - - SUM( - col2 ) AS col0 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-3242
SELECT DISTINCT - + COUNT ( - - 45 ) / + - 62 - - - SUM ( - col2 ) AS col0 FROM tab1 AS cor0
----
223

query II rowsort
SELECT + col0, col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ( - + col1 ) AS col2, + ( - col1 ) * + col1 - - + col0 + 76 * col1 FROM tab0 AS cor0
----
-1
172
-21
1242
-81
-390

query I rowsort
SELECT - col2 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-10
-47
-99

query I rowsort
SELECT col2 AS col0 FROM tab2 WHERE ( - 37 / - col1 IS NULL )
----

query II rowsort
SELECT DISTINCT ( - + col0 ), + col0 FROM tab2 WHERE NOT ( + + col0 + - col2 * + + col0 + + + col1 ) IS NULL
----
-46
46
-64
64
-75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3248
SELECT DISTINCT COUNT( * ) AS col0 FROM tab2, tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-3248
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab2, tab0 cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3249
SELECT ALL MAX( ALL + 80 ) col1 FROM tab2
----
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3249
SELECT ALL MAX ( ALL + 80 ) col1 FROM tab2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3250
SELECT - COUNT( * ) + 18 FROM tab2 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-3250
SELECT - COUNT ( * ) + 18 FROM tab2 AS cor0
----
15

query I rowsort
SELECT + 50 + - - col1 * + col0 * + col0 * col1 AS col0 FROM tab2 AS cor0
----
24285234
25250675
5503766

query I rowsort
SELECT + 53 + - col0 FROM tab1 AS cor0
----
-32
-38
2

query I rowsort
SELECT + 6 + - 21 - - - col0 FROM tab0 cor0
----
-102
-112
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3254
SELECT DISTINCT - COUNT( * ) * - 35 + - 71 + + MAX( - col0 ) * - 16 * - 62 * COUNT( * ) FROM tab0 AS cor0
----
-44606

skipif mysql # not compatible
query I rowsort label-3254
SELECT DISTINCT - COUNT ( * ) * - 35 + - 71 + + MAX ( - col0 ) * - 16 * - 62 * COUNT ( * ) FROM tab0 AS cor0
----
-44606

query I rowsort
SELECT DISTINCT col0 + - 50 FROM tab0
----
-35
37
47

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <> - - 98
----

query II rowsort
SELECT - col0 AS col2, - 45 FROM tab0
----
-15
-45
-87
-45
-97
-45

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3258
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( CAST( NULL AS SIGNED ) * 99 )
----

skipif mysql # not compatible
query III rowsort label-3258
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( CAST ( NULL AS INTEGER ) * 99 )
----

query I rowsort
SELECT + 86 - + col0 FROM tab1 AS cor0
----
-5
1
35

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 <= - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3261
SELECT - - 39 * - - col1 - CAST( NULL AS SIGNED ) 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-3261
SELECT - - 39 * - - col1 - CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3262
SELECT - SUM( - col0 ) AS col1 FROM tab1 cor0 WHERE NOT col1 IS NULL
----
227

skipif mysql # not compatible
query I rowsort label-3262
SELECT - SUM ( - col0 ) AS col1 FROM tab1 cor0 WHERE NOT col1 IS NULL
----
227

query I rowsort
SELECT + 71 * - - col2 FROM tab2 AS cor0
----
1633
2840
4118

query I rowsort
SELECT col2 * - ( - 69 ) FROM tab1 cor0
----
4071
4692
6624

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT col1 BETWEEN NULL AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3266
SELECT ( ( - COUNT( * ) ) ) col2 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3266
SELECT ( ( - COUNT ( * ) ) ) col2 FROM tab1
----
-3

query I rowsort
SELECT ALL - col2 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + col1 * - col1 * + 57 * 9 FROM tab0 AS cor0
----
-226233
-3365793
-513

onlyif mysql # aggregate syntax: 
query I rowsort label-3269
SELECT ALL - COUNT( ALL ( + - 78 ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3269
SELECT ALL - COUNT ( ALL ( + - 78 ) ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL + 26 * col2 FROM tab1 cor0
----
1534
1768
2496

onlyif mysql # aggregate syntax: 
query I rowsort label-3271
SELECT + MIN( ALL - - col2 ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-3271
SELECT + MIN ( ALL - - col2 ) FROM tab0
----
10

query I rowsort
SELECT 96 * + - col0 FROM tab2
----
-4416
-6144
-7200

onlyif mysql # DIV for integer division: 
query I rowsort label-3273
SELECT + 46 DIV + ( col0 ) FROM tab0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-3273
SELECT + 46 / + ( col0 ) FROM tab0
----
0
0
3

query I rowsort
SELECT ALL + 94 * + col0 AS col0 FROM tab1
----
4794
7990
8554

query II rowsort
SELECT col1 AS col0, - 8 AS col2 FROM tab1 AS cor0
----
14
-8
47
-8
5
-8

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN - + 78 AND - col1 + + 46
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3277
SELECT CAST( + 45 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
45
45
45

skipif mysql # not compatible
query I rowsort label-3277
SELECT CAST ( + 45 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
45
45
45

onlyif mysql # DIV for integer division: 
query I rowsort label-3278
SELECT DISTINCT col0 DIV 6 AS col0 FROM tab0 cor0
----
14
16
2

skipif mysql # not compatible
query I rowsort label-3278
SELECT DISTINCT col0 / 6 AS col0 FROM tab0 cor0
----
14
16
2

onlyif mysql # DIV for integer division: 
query I rowsort label-3279
SELECT ALL + col0 DIV + 90 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3279
SELECT ALL + col0 / + 90 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col2 + - - col0 FROM tab1 cor0
----
144
147
159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3281
SELECT DISTINCT - + CAST( + + col0 AS SIGNED ) FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-3281
SELECT DISTINCT - + CAST ( + + col0 AS INTEGER ) FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3282
SELECT + CAST( + - 22 AS SIGNED ) FROM tab0 cor0 WHERE ( NULL ) NOT BETWEEN NULL AND col1 + - + 1 OR NULL >= NULL
----

skipif mysql # not compatible
query I rowsort label-3282
SELECT + CAST ( + - 22 AS INTEGER ) FROM tab0 cor0 WHERE ( NULL ) NOT BETWEEN NULL AND col1 + - + 1 OR NULL >= NULL
----

query I rowsort
SELECT + col1 + - 51 FROM tab1 AS cor0
----
-37
-4
-46

query I rowsort
SELECT - ( + + 77 ) AS col2 FROM tab1 AS cor0 WHERE col2 / + - ( - col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3285
SELECT DISTINCT 31 * - - COUNT( * ) col1 FROM tab2
----
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3285
SELECT DISTINCT 31 * - - COUNT ( * ) col1 FROM tab2
----
93

query I rowsort
SELECT + 10 + 23 * + col1 AS col2 FROM tab2
----
1183
1551
1781

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3287
SELECT ALL + 65 * + + 30 + + COUNT( * ) + - + 46 + - - COUNT( * ) DIV - COUNT( * ) FROM tab2
----
1906

skipif mysql # not compatible
query I rowsort label-3287
SELECT ALL + 65 * + + 30 + + COUNT ( * ) + - + 46 + - - COUNT ( * ) / - COUNT ( * ) FROM tab2
----
1906

query II rowsort
SELECT DISTINCT 97 * col1 AS col0, + col2 * + col0 + - + col2 FROM tab1
----
1358
4800
4559
6120
485
4956

query I rowsort
SELECT + col2 * + - 77 AS col0 FROM tab2
----
-1771
-3080
-4466

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3290
SELECT DISTINCT + CAST( + col2 AS SIGNED ), col1 AS col2 FROM tab0
----
10
21
47
81
99
1

skipif mysql # not compatible
query II rowsort label-3290
SELECT DISTINCT + CAST ( + col2 AS INTEGER ), col1 AS col2 FROM tab0
----
10
21
47
81
99
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3291
SELECT ALL + col2 DIV - + col0 * + - col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3291
SELECT ALL + col2 / - + col0 * + - col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3292
SELECT ALL - CAST( NULL AS SIGNED ) / + col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3292
SELECT ALL - CAST ( NULL AS INTEGER ) / + col2 FROM tab1 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE 18 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3294
SELECT + - 67 - + - SUM( ALL + 93 ) FROM tab2 AS cor0
----
212

skipif mysql # not compatible
query I rowsort label-3294
SELECT + - 67 - + - SUM ( ALL + 93 ) FROM tab2 AS cor0
----
212

query I rowsort
SELECT - col1 - 8 FROM tab0 AS cor0
----
-29
-89
-9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT NULL <= NULL )
----

query I rowsort
SELECT DISTINCT - col0 + - 18 AS col1 FROM tab2
----
-64
-82
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3298
SELECT COUNT( * ) + - - 37 * - + 11 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3298
SELECT COUNT ( * ) + - - 37 * - + 11 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query II rowsort
SELECT - 30 AS col1, 23 + - ( - col2 ) FROM tab0 AS cor0
----
-30
122
-30
33
-30
70

query II rowsort
SELECT col2, col2 AS col0 FROM tab1 AS cor0
----
59
59
68
68
96
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3301
SELECT ALL + 22 * - col0 AS col1 FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) + - 55 BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-3301
SELECT ALL + 22 * - col0 AS col1 FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) + - 55 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3302
SELECT ALL COUNT( DISTINCT - - col2 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3302
SELECT ALL COUNT ( DISTINCT - - col2 ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT + 45 * - col2 FROM tab2 AS cor0
----
-1035
-1800
-2610

query I rowsort
SELECT - col1 * + 13 AS col2 FROM tab1 AS cor0
----
-182
-611
-65

query I rowsort
SELECT + col1 * - 53 + + 40 AS col2 FROM tab0 AS cor0
----
-1073
-13
-4253

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3306
SELECT ALL col1 AS col2, 0 + - CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-3306
SELECT ALL col1 AS col2, 0 + - CAST ( NULL AS REAL ) AS col2 FROM tab0
----
1
NULL
21
NULL
81
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3307
SELECT ALL COUNT( * ) FROM tab1 WHERE NOT ( NOT + col2 BETWEEN + - col1 + - col0 AND ( + + 44 ) )
----
0

skipif mysql # not compatible
query I rowsort label-3307
SELECT ALL COUNT ( * ) FROM tab1 WHERE NOT ( NOT + col2 BETWEEN + - col1 + - col0 AND ( + + 44 ) )
----
0

query II rowsort
SELECT col0, + 53 AS col2 FROM tab2
----
46
53
64
53
75
53

query I rowsort
SELECT DISTINCT 16 * + col0 AS col0 FROM tab0
----
1392
1552
240

onlyif mysql # aggregate syntax: 
query I rowsort label-3310
SELECT ALL + 12 * + COUNT( * ) AS col2 FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-3310
SELECT ALL + 12 * + COUNT ( * ) AS col2 FROM tab0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3311
SELECT ALL + MIN( ALL col2 ) AS col1 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-3311
SELECT ALL + MIN ( ALL col2 ) AS col1 FROM tab1 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-3312
SELECT + MIN( ALL col2 ), + 27 * + - 81 + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
59
-2190

skipif mysql # not compatible
query II rowsort label-3312
SELECT + MIN ( ALL col2 ), + 27 * + - 81 + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
59
-2190

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 30 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( - + ( col1 ) ) FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3315
SELECT + MAX( DISTINCT - - col0 ) AS col0 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-3315
SELECT + MAX ( DISTINCT - - col0 ) AS col0 FROM tab0 AS cor0
----
97

query I rowsort
SELECT ALL + col0 * + + col1 / - col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL <= + col1 + col2
----

query I rowsort
SELECT DISTINCT col0 + - - 42 + col2 FROM tab1 AS cor0
----
186
189
201

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 13 * + - col0 col1, - col1 FROM tab1
----
-1105
-5
-1183
-47
-663
-14

query II rowsort
SELECT ALL - 88 * 0 AS col1, + col1 AS col0 FROM tab0 AS cor0
----
0
1
0
21
0
81

query I rowsort
SELECT DISTINCT - 99 + - col1 FROM tab1 AS cor0
----
-104
-113
-146

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 23 col0 FROM tab2 AS cor0
----
23
23
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - 65 - - + ( 65 ) col2 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT ALL + 95 + - col0 * + 28 AS col0 FROM tab0 AS cor0
----
-2341
-2621
-325

onlyif mysql # aggregate syntax: 
query I rowsort label-3324
SELECT DISTINCT - COUNT( - - col0 ) + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-3324
SELECT DISTINCT - COUNT ( - - col0 ) + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-6

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 * - ( - + 0 ) * - col0 + 68 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3326
SELECT - MAX( - 61 ) FROM tab1 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-3326
SELECT - MAX ( - 61 ) FROM tab1 AS cor0
----
61

query II rowsort
SELECT - 64, 51 + - col1 FROM tab2 AS cor0 WHERE ( NULL ) = col0 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3328
SELECT - MIN( + 99 ) FROM tab2
----
-99

skipif mysql # not compatible
query I rowsort label-3328
SELECT - MIN ( + 99 ) FROM tab2
----
-99

query I rowsort
SELECT ALL col1 * 13 + - 46 + + ( 14 ) FROM tab1
----
150
33
579

onlyif mysql # DIV for integer division: 
query I rowsort label-3330
SELECT col1 DIV col1 * + 49 AS col2 FROM tab1 WHERE - 58 < ( - - col2 - + + col2 )
----
49
49
49

skipif mysql # not compatible
query I rowsort label-3330
SELECT col1 / col1 * + 49 AS col2 FROM tab1 WHERE - 58 < ( - - col2 - + + col2 )
----
49
49
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3331
SELECT DISTINCT COUNT( + col0 ) * - 47 + COUNT( * ) - + 39 FROM tab0
----
-177

skipif mysql # not compatible
query I rowsort label-3331
SELECT DISTINCT COUNT ( + col0 ) * - 47 + COUNT ( * ) - + 39 FROM tab0
----
-177

onlyif mysql # DIV for integer division: 
query I rowsort label-3332
SELECT ALL - 56 DIV - + col2 FROM tab0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-3332
SELECT ALL - 56 / - + col2 FROM tab0
----
0
1
5

query I rowsort
SELECT DISTINCT + 12 + - 41 + - col1 * 4 FROM tab0
----
-113
-33
-353

query I rowsort
SELECT - 12 + - + 67 AS col1 FROM tab1
----
-79
-79
-79

query III rowsort
SELECT * FROM tab2 WHERE 16 IN ( 9, 90, - col0 )
----

query II rowsort
SELECT ALL 49, + col2 FROM tab1
----
49
59
49
68
49
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3337
SELECT DISTINCT MIN( - col1 ) col0 FROM tab0
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3337
SELECT DISTINCT MIN ( - col1 ) col0 FROM tab0
----
-81

query I rowsort
SELECT DISTINCT - ( + col0 ) * + 6 + + 19 FROM tab0 AS cor0
----
-503
-563
-71

query I rowsort
SELECT DISTINCT - col1 * - - col0 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-3340
SELECT - COUNT( * ) AS col1 FROM tab1, tab2 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3340
SELECT - COUNT ( * ) AS col1 FROM tab1, tab2 cor0
----
-9

query I rowsort
SELECT DISTINCT - + 35 * + 40 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-1400

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE ( NOT NULL < - 4 )
----

query I rowsort
SELECT + 12 AS col2 FROM tab2 cor0
----
12
12
12

query I rowsort
SELECT - col0 * - - ( + - col2 ) FROM tab1 AS cor0
----
4896
5015
6188

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3345
SELECT col2, - col0 AS col1 FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) + - - ( + + col2 ) <= NULL
----

skipif mysql # not compatible
query II rowsort label-3345
SELECT col2, - col0 AS col1 FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) + - - ( + + col2 ) <= NULL
----

query I rowsort
SELECT DISTINCT + - 53 FROM tab2 AS cor0 WHERE NOT col1 >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3347
SELECT - CAST( NULL AS SIGNED ) * - COUNT( col0 ) AS col1, 68 FROM tab1
----
NULL
68

skipif mysql # not compatible
query II rowsort label-3347
SELECT - CAST ( NULL AS INTEGER ) * - COUNT ( col0 ) AS col1, 68 FROM tab1
----
NULL
68

query I rowsort
SELECT - 84 * 92 * col0 AS col2 FROM tab1
----
-394128
-656880
-703248

query I rowsort
SELECT - ( + 88 ) FROM tab0
----
-88
-88
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-3350
SELECT 81 DIV - 24 FROM tab1
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-3350
SELECT 81 / - 24 FROM tab1
----
-3
-3
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-3351
SELECT DISTINCT 99 DIV 56 * + + 81 FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-3351
SELECT DISTINCT 99 / 56 * + + 81 FROM tab1
----
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col1, 73 AS col2 FROM tab2
----
23
73
40
73
58
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3353
SELECT ALL - + MAX( col0 ) AS col1 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-3353
SELECT ALL - + MAX ( col0 ) AS col1 FROM tab0 AS cor0
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-3354
SELECT + + COUNT( * ), COUNT( * ) AS col2 FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-3354
SELECT + + COUNT ( * ), COUNT ( * ) AS col2 FROM tab1 AS cor0
----
3
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 = - ( - col0 ) + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 + col2 FROM tab0 AS cor0 WHERE NOT col2 <= + col0 + - col0
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3357
SELECT + COUNT( - - 6 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3357
SELECT + COUNT ( - - 6 ) FROM tab0 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-3358
SELECT col0 AS col2, col1 DIV col2 AS col1 FROM tab2
----
46
2
64
1
75
1

skipif mysql # not compatible
query II rowsort label-3358
SELECT col0 AS col2, col1 / col2 AS col1 FROM tab2
----
46
2
64
1
75
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 37 col0 FROM tab2
----
-37
-37
-37

query I rowsort
SELECT - 18 + + ( + + col1 ) FROM tab0 AS cor0
----
-17
3
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 28 AS col0, + 7 col2 FROM tab0 AS cor0
----
-28
7
-28
7
-28
7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL > - 66
----

query I rowsort
SELECT ALL + - col0 + - 38 AS col0 FROM tab1 AS cor0
----
-123
-129
-89

query I rowsort
SELECT + col2 + 26 * col1 AS col0 FROM tab1 AS cor0
----
1290
189
460

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3365
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 + + - col1 <= - CAST( NULL AS SIGNED ) * + + col2
----

skipif mysql # not compatible
query III rowsort label-3365
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 + + - col1 <= - CAST ( NULL AS INTEGER ) * + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3366
SELECT ALL - + 83 * + COUNT( * ) + + + COUNT( ALL - 63 ) col2 FROM tab1 AS cor0
----
-246

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3366
SELECT ALL - + 83 * + COUNT ( * ) + + + COUNT ( ALL - 63 ) col2 FROM tab1 AS cor0
----
-246

query I rowsort
SELECT ALL - 48 - + + col0 FROM tab1 cor0 WHERE NOT NULL < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3368
SELECT ALL + 95 + COUNT( * ) AS col2 FROM tab2
----
98

skipif mysql # not compatible
query I rowsort label-3368
SELECT ALL + 95 + COUNT ( * ) AS col2 FROM tab2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3369
SELECT DISTINCT COUNT( * ) * + + COUNT( * ) FROM tab2 WHERE ( ( NOT NULL BETWEEN NULL AND NULL ) )
----
0

skipif mysql # not compatible
query I rowsort label-3369
SELECT DISTINCT COUNT ( * ) * + + COUNT ( * ) FROM tab2 WHERE ( ( NOT NULL BETWEEN NULL AND NULL ) )
----
0

query I rowsort
SELECT ALL + col1 + + - col1 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL col1 + + col2 * - - 13 AS col1 FROM tab2
----
350
597
821

query I rowsort
SELECT DISTINCT col2 * col2 - col1 FROM tab1
----
3476
4577
9202

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3373
SELECT ALL - CAST( + 91 AS SIGNED ) + + 37 - COUNT( - ( 54 ) ), COUNT( * ) col2 FROM tab1, tab2 AS cor0
----
-63
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3373
SELECT ALL - CAST ( + 91 AS INTEGER ) + + 37 - COUNT ( - ( 54 ) ), COUNT ( * ) col2 FROM tab1, tab2 AS cor0
----
-63
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3374
SELECT ALL + COUNT( * ) + - 46 FROM tab1
----
-43

skipif mysql # not compatible
query I rowsort label-3374
SELECT ALL + COUNT ( * ) + - 46 FROM tab1
----
-43

query I rowsort
SELECT ALL 90 - - - col0 AS col1 FROM tab1
----
-1
39
5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 + + + col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ( 88 ) * 13 FROM tab2 AS cor0
----
1144
1144
1144

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 = 95 * 76
----

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT NULL <> - 65
----

query I rowsort
SELECT - col0 AS col1 FROM tab0 AS cor0 WHERE NOT 99 * + + col2 >= - + 87 + + 17 * + - col1 + + - 92
----

query II rowsort
SELECT DISTINCT col0, col2 FROM tab2 AS cor0
----
46
23
64
40
75
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3382
SELECT DISTINCT - ( + 87 ) / - COUNT( * ) + + CAST( NULL AS SIGNED ) col0, 7 AS col2 FROM tab0 AS cor0
----
NULL
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3382
SELECT DISTINCT - ( + 87 ) / - COUNT ( * ) + + CAST ( NULL AS INTEGER ) col0, 7 AS col2 FROM tab0 AS cor0
----
NULL
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3383
SELECT + + MAX( ALL + - col0 ) * - + 36 + + + 13 AS col0 FROM tab0 AS cor0
----
553

skipif mysql # not compatible
query I rowsort label-3383
SELECT + + MAX ( ALL + - col0 ) * - + 36 + + + 13 AS col0 FROM tab0 AS cor0
----
553

query I rowsort
SELECT - col0 AS col2 FROM tab1 AS cor0 WHERE NOT col2 * + - 45 / - col1 - + - 95 IS NOT NULL
----

query II rowsort
SELECT + col1 * + 89, col1 FROM tab0
----
1869
21
7209
81
89
1

query I rowsort
SELECT ALL col2 AS col1 FROM tab0 WHERE NOT + - col1 IS NULL
----
10
47
99

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN - + col1 AND ( col0 ) * + + col0
----

query II rowsort
SELECT ALL + ( col0 ), - 84 AS col1 FROM tab1
----
51
-84
85
-84
91
-84

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 52 * - 47 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3390
SELECT COUNT( * ) + - + 88 AS col2 FROM tab2 AS cor0
----
-85

skipif mysql # not compatible
query I rowsort label-3390
SELECT COUNT ( * ) + - + 88 AS col2 FROM tab2 AS cor0
----
-85

query I rowsort
SELECT col0 + 85 FROM tab2 AS cor0
----
131
149
160

query I rowsort
SELECT - ( 39 ) AS col0 FROM tab2 AS cor0
----
-39
-39
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3393
SELECT ( - 58 ) DIV - + COUNT( * ) AS col1 FROM tab1 cor0
----
19

skipif mysql # not compatible
query I rowsort label-3393
SELECT ( - 58 ) / - + COUNT ( * ) AS col1 FROM tab1 cor0
----
19

query II rowsort
SELECT DISTINCT + 50 AS col0, col1 * + 87 AS col2 FROM tab1 AS cor0
----
50
1218
50
4089
50
435

query I rowsort
SELECT DISTINCT - col1 + + 93 + - 85 FROM tab2 AS cor0
----
-43
-59
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-3396
SELECT - COUNT( ( - - col0 ) ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3396
SELECT - COUNT ( ( - - col0 ) ) AS col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL + + col1 + - - 67 AS col1 FROM tab0 AS cor0
----
148
68
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3398
SELECT ALL - 61 - COUNT( ALL + 21 ) * - 21 col2 FROM tab2
----
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3398
SELECT ALL - 61 - COUNT ( ALL + 21 ) * - 21 col2 FROM tab2
----
2

query I rowsort
SELECT col1 * - col2 + + col0 - + 62 FROM tab1
----
-1355
-272
-3167

query I rowsort
SELECT - col0 * col0 + - col0 AS col0 FROM tab2
----
-2162
-4160
-5700

query I rowsort
SELECT ALL col0 + - col1 + - 83 FROM tab2
----
-75
-88
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 54 col2, + 94 FROM tab1
----
54
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 34 - - 5 + + 2 + + col2 col0 FROM tab1
----
100
109
137

query I rowsort
SELECT + col2 * - col0 + + col1 AS col0 FROM tab1
----
-4882
-5010
-6141

query III rowsort
SELECT * FROM tab0 WHERE 21 BETWEEN 67 AND NULL
----

query I rowsort
SELECT ALL - col0 - + 97 AS col1 FROM tab0
----
-112
-184
-194

query I rowsort
SELECT + 53 + 89 FROM tab1
----
142
142
142

query II rowsort
SELECT ALL + col2 * 48 AS col2, 98 FROM tab2 AS cor0
----
1104
98
1920
98
2784
98

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 INNER JOIN tab1 AS cor1 ON NOT NULL < - ( - 61 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3410
SELECT ALL - SUM( DISTINCT 35 ), + COUNT( * ) AS col2 FROM tab0
----
-35
3

skipif mysql # not compatible
query II rowsort label-3410
SELECT ALL - SUM ( DISTINCT 35 ), + COUNT ( * ) AS col2 FROM tab0
----
-35
3

query I rowsort
SELECT DISTINCT - col2 * - + col2 + - - col1 AS col1 FROM tab2 WHERE - 9 BETWEEN - col0 + + + col1 AND NULL
----

query I rowsort
SELECT DISTINCT 81 * 11 FROM tab0 cor0 WHERE ( + 7 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3413
SELECT DISTINCT - - ( + CAST( NULL AS SIGNED ) ) * + + CAST( + 24 AS SIGNED ) + - - COUNT( * ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3413
SELECT DISTINCT - - ( + CAST ( NULL AS INTEGER ) ) * + + CAST ( + 24 AS INTEGER ) + - - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL 92 * + 9 * - - col1 FROM tab0 AS cor0
----
17388
67068
828

onlyif mysql # aggregate syntax: 
query I rowsort label-3415
SELECT - COUNT( ALL + + 40 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3415
SELECT - COUNT ( ALL + + 40 ) AS col2 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 / + + 93 IS NOT NULL
----

query I rowsort
SELECT ALL - col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL <> ( NULL )
----

query I rowsort
SELECT - - col1 * - col1 + col1 FROM tab0 cor0
----
-420
-6480
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3419
SELECT col1 * CAST( NULL AS SIGNED ) / - col0 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3419
SELECT col1 * CAST ( NULL AS INTEGER ) / - col0 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 + + - col0 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3421
SELECT col2 / - - CAST( NULL AS SIGNED ) + + - 69 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3421
SELECT col2 / - - CAST ( NULL AS INTEGER ) + + - 69 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3422
SELECT 32 + + COUNT( * ) AS col1 FROM tab1
----
35

skipif mysql # not compatible
query I rowsort label-3422
SELECT 32 + + COUNT ( * ) AS col1 FROM tab1
----
35

query I rowsort
SELECT ALL + col2 * - 43 AS col1 FROM tab1
----
-2537
-2924
-4128

query I rowsort
SELECT col0 FROM tab0 WHERE NOT ( NULL IS NOT NULL )
----
15
87
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3425
SELECT ALL + - COUNT( ALL + - 7 ) DIV + 17 AS col1, 18 AS col2 FROM tab0 AS cor0
----
0
18

skipif mysql # not compatible
query II rowsort label-3425
SELECT ALL + - COUNT ( ALL + - 7 ) / + 17 AS col1, 18 AS col2 FROM tab0 AS cor0
----
0
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3426
SELECT COUNT( * ) AS col1 FROM tab0 WHERE NOT ( - 13 - - col0 * + 22 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3426
SELECT COUNT ( * ) AS col1 FROM tab0 WHERE NOT ( - 13 - - col0 * + 22 ) IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3427
SELECT + COUNT( ALL col2 ) + COUNT( * ) AS col0 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-3427
SELECT + COUNT ( ALL col2 ) + COUNT ( * ) AS col0 FROM tab0
----
6

query I rowsort
SELECT ALL + col2 AS col0 FROM tab1 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab0 WHERE NOT col2 NOT BETWEEN col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3430
SELECT DISTINCT 94 * COUNT( * ) AS col1 FROM tab1
----
282

skipif mysql # not compatible
query I rowsort label-3430
SELECT DISTINCT 94 * COUNT ( * ) AS col1 FROM tab1
----
282

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab2 WHERE ( - ( - 38 ) ) NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3432
SELECT + 84 DIV - col1 FROM tab1
----
-1
-16
-6

skipif mysql # not compatible
query I rowsort label-3432
SELECT + 84 / - col1 FROM tab1
----
-1
-16
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3433
SELECT col1 * col2 AS col1 FROM tab1 WHERE NOT ( + col1 ) BETWEEN CAST( NULL AS SIGNED ) AND 52
----

skipif mysql # not compatible
query I rowsort label-3433
SELECT col1 * col2 AS col1 FROM tab1 WHERE NOT ( + col1 ) BETWEEN CAST ( NULL AS INTEGER ) AND 52
----

query I rowsort
SELECT + col1 * 2 - 44 * col0 FROM tab0
----
-3786
-4266
-498

query I rowsort
SELECT 88 FROM tab0 WHERE NOT NULL IS NOT NULL
----
88
88
88

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - 42 ) = NULL
----

query I rowsort
SELECT col1 - + col0 * col2 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + col2 + 15 * col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3439
SELECT - COUNT( * ) * ( COUNT( * ) ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-3439
SELECT - COUNT ( * ) * ( COUNT ( * ) ) FROM tab2
----
-9

query I rowsort
SELECT + 58 * + col1 AS col1 FROM tab2
----
2958
3886
4466

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - col1 * - col2 col2 FROM tab1
----
1358
300
3243

query I rowsort
SELECT ALL - col0 * 11 FROM tab0
----
-1067
-165
-957

onlyif mysql # aggregate syntax: 
query I rowsort label-3443
SELECT MIN( + col0 ) AS col1 FROM tab2 WHERE col2 / 1 <> col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3443
SELECT MIN ( + col0 ) AS col1 FROM tab2 WHERE col2 / 1 <> col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3444
SELECT * FROM tab0 WHERE ( col2 + CAST( NULL AS SIGNED ) ) = NULL
----

skipif mysql # not compatible
query III rowsort label-3444
SELECT * FROM tab0 WHERE ( col2 + CAST ( NULL AS INTEGER ) ) = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col0 ) * + 71 col2 FROM tab1
----
3621
6035
6461

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3446
SELECT - MIN( 81 ) + + COUNT( * ) FROM tab2 WHERE NOT NULL NOT BETWEEN ( CAST( NULL AS SIGNED ) ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3446
SELECT - MIN ( 81 ) + + COUNT ( * ) FROM tab2 WHERE NOT NULL NOT BETWEEN ( CAST ( NULL AS INTEGER ) ) AND NULL
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col2 ) BETWEEN 53 AND ( + 47 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3448
SELECT DISTINCT COUNT( * ) + - 18 AS col0 FROM tab2
----
-15

skipif mysql # not compatible
query I rowsort label-3448
SELECT DISTINCT COUNT ( * ) + - 18 AS col0 FROM tab2
----
-15

query I rowsort
SELECT ALL ( + 23 ) FROM tab2
----
23
23
23

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 IN ( + col1 * - 92 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - ( col1 * col1 ) col2 FROM tab2 AS cor0
----
-132651
-300763
-456533

query I rowsort
SELECT + ( 9 ) FROM tab0 AS cor0
----
9
9
9

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + col0 * 41 + - 54 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 72 * col2 col0 FROM tab0 WHERE col2 IS NOT NULL
----
3384
7128
720

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3455
SELECT + MAX( ALL col2 ) DIV - 49 AS col1 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-3455
SELECT + MAX ( ALL col2 ) / - 49 AS col1 FROM tab2
----
-1

query I rowsort
SELECT ALL 51 * col0 FROM tab2 AS cor0
----
2346
3264
3825

query I rowsort
SELECT ALL + + ( 2 ) * + 19 AS col1 FROM tab2 AS cor0
----
38
38
38

onlyif mysql # DIV for integer division: 
query I rowsort label-3458
SELECT ALL + col1 DIV 36 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3458
SELECT ALL + col1 / 36 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT ALL + 28 * + 82 + - col2 * - col1 AS col1 FROM tab0 AS cor0
----
2395
2506
6103

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 <= ( col1 * - col0 - + 80 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3461
SELECT + 40 * - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-120

skipif mysql # not compatible
query I rowsort label-3461
SELECT + 40 * - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-120

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3463
SELECT COUNT( * ) * 4 FROM tab2 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-3463
SELECT COUNT ( * ) * 4 FROM tab2 AS cor0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3464
SELECT DISTINCT + COUNT( * ) FROM tab0 AS cor0 WHERE 87 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3464
SELECT DISTINCT + COUNT ( * ) FROM tab0 AS cor0 WHERE 87 IS NULL
----
0

query I rowsort
SELECT ALL 54 + 92 AS col0 FROM tab2 AS cor0
----
146
146
146

query I rowsort
SELECT ALL - ( + 99 ) AS col1 FROM tab1 AS cor0
----
-99
-99
-99

query I rowsort
SELECT DISTINCT 49 + + + ( - col2 ) FROM tab1
----
-10
-19
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3468
SELECT DISTINCT + col0 AS col1 FROM tab1 WHERE + CAST( - col2 AS SIGNED ) > - col1 + + col1
----

skipif mysql # not compatible
query I rowsort label-3468
SELECT DISTINCT + col0 AS col1 FROM tab1 WHERE + CAST ( - col2 AS INTEGER ) > - col1 + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3469
SELECT - COUNT( - 22 ) FROM tab1 WHERE NOT ( + 7 ) = + col0
----
-3

skipif mysql # not compatible
query I rowsort label-3469
SELECT - COUNT ( - 22 ) FROM tab1 WHERE NOT ( + 7 ) = + col0
----
-3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 * + col0 + + 11 IN ( 72 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3471
SELECT 53 * + MAX( col0 ) * - COUNT( * ) AS col2 FROM tab0
----
-15423

skipif mysql # not compatible
query I rowsort label-3471
SELECT 53 * + MAX ( col0 ) * - COUNT ( * ) AS col2 FROM tab0
----
-15423

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3472
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + ( - col1 ) * 0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3472
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + ( - col1 ) * 0 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3473
SELECT col2 * - + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3473
SELECT col2 * - + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - 47 - - col0 ) = NULL
----

query I rowsort
SELECT DISTINCT 21 * + ( + 24 ) AS col1 FROM tab2
----
504

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3476
SELECT ALL 30 DIV - COUNT( * ) AS col0 FROM tab1
----
-10

skipif mysql # not compatible
query I rowsort label-3476
SELECT ALL 30 / - COUNT ( * ) AS col0 FROM tab1
----
-10

query III rowsort
SELECT * FROM tab0 WHERE - col0 NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ALL + 40 * col2 FROM tab2
----
1600
2320
920

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 87 * - 91 col2 FROM tab1
----
-7917

onlyif mysql # aggregate syntax: 
query I rowsort label-3480
SELECT MIN( col0 ) + COUNT( * ) AS col1 FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-3480
SELECT MIN ( col0 ) + COUNT ( * ) AS col1 FROM tab1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3481
SELECT DISTINCT + ( + + MIN( DISTINCT + 37 ) ) * + 84 AS col1 FROM tab1 cor0
----
3108

skipif mysql # not compatible
query I rowsort label-3481
SELECT DISTINCT + ( + + MIN ( DISTINCT + 37 ) ) * + 84 AS col1 FROM tab1 cor0
----
3108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3482
SELECT DISTINCT + - CAST( + 8 AS SIGNED ) + + MIN( ALL col1 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3482
SELECT DISTINCT + - CAST ( + 8 AS INTEGER ) + + MIN ( ALL col1 ) FROM tab1 AS cor0
----
-3

query III rowsort
SELECT * FROM tab1 WHERE - ( 26 ) - 97 < ( - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NOT 12 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3485
SELECT - COUNT( * ) * + - 38 col0 FROM tab2
----
114

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3485
SELECT - COUNT ( * ) * + - 38 col0 FROM tab2
----
114

onlyif mysql # DIV for integer division: 
query I rowsort label-3486
SELECT ALL col2 - + col0 DIV + col0 FROM tab0 WHERE ( ( - 25 * col2 ) IS NOT NULL )
----
46
9
98

skipif mysql # not compatible
query I rowsort label-3486
SELECT ALL col2 - + col0 / + col0 FROM tab0 WHERE ( ( - 25 * col2 ) IS NOT NULL )
----
46
9
98

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT 13 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 90 col0 FROM tab1 WHERE + + 29 NOT BETWEEN + col2 AND col2
----
90
90
90

query I rowsort
SELECT + col2 * col1 * - col1 AS col0 FROM tab0
----
-308367
-4410
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3490
SELECT ALL - + 72 - + ( - COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-3490
SELECT ALL - + 72 - + ( - COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-3491
SELECT ALL COUNT( * ) FROM tab1 AS cor0 WHERE NOT col1 + - col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3491
SELECT ALL COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col1 + - col2 IS NOT NULL
----
0

query I rowsort
SELECT - + 83 * col0 * + col0 - col0 FROM tab0 AS cor0
----
-18690
-628314
-781044

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 1 * col0 > ( + col0 * col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 * - 65 BETWEEN ( NULL ) AND ( col0 * col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3495
SELECT COUNT( * ) col0 FROM tab1 cor0 WHERE NULL = ( col1 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3495
SELECT COUNT ( * ) col0 FROM tab1 cor0 WHERE NULL = ( col1 )
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3496
SELECT * FROM tab2 WHERE NOT NULL BETWEEN ( - - CAST( NULL AS DECIMAL ) ) AND - ( col0 )
----

skipif mysql # not compatible
query III rowsort label-3496
SELECT * FROM tab2 WHERE NOT NULL BETWEEN ( - - CAST ( NULL AS REAL ) ) AND - ( col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) > col2 * 4 * 61
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL = - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3499
SELECT col2 DIV col1 col0 FROM tab1
----
1
11
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3499
SELECT col2 / col1 col0 FROM tab1
----
1
11
6

query I rowsort
SELECT ALL + col2 + col0 FROM tab1 WHERE NULL > col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3501
SELECT ALL - MIN( - - col0 ) * 77 col1 FROM tab0
----
-1155

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3501
SELECT ALL - MIN ( - - col0 ) * 77 col1 FROM tab0
----
-1155

query I rowsort
SELECT ALL + col0 + - col2 FROM tab2 WHERE ( + - col0 ) IS NOT NULL
----
17
23
24

onlyif mysql # aggregate syntax: 
query II rowsort label-3503
SELECT DISTINCT MAX( ALL + 82 ) AS col2, 19 FROM tab0
----
82
19

skipif mysql # not compatible
query II rowsort label-3503
SELECT DISTINCT MAX ( ALL + 82 ) AS col2, 19 FROM tab0
----
82
19

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col0 * + 15 ) <> ( - 93 )
----

query I rowsort
SELECT ( - col1 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( ( 92 * col2 ) IN ( + col2 * - col0 ) )
----
-1
-21
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3506
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - - CAST( + COUNT( * ) AS SIGNED ) + 99 FROM tab1 WHERE NOT ( NULL ) BETWEEN + col0 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3506
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - - CAST ( + COUNT ( * ) AS INTEGER ) + 99 FROM tab1 WHERE NOT ( NULL ) BETWEEN + col0 AND NULL
----
NULL

query I rowsort
SELECT - col2 * - - 4 AS col1 FROM tab1
----
-236
-272
-384

query I rowsort
SELECT - col0 / - 75 * - col0 AS col2 FROM tab2 WHERE NOT NULL <> + col1
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 98 <> col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3510
SELECT MAX( ALL 69 ) FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-3510
SELECT MAX ( ALL 69 ) FROM tab2
----
69

query III rowsort
SELECT * FROM tab2 WHERE NULL <> + 67 - + ( - col1 ) OR ( NULL ) NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3512
SELECT + - COUNT( ALL 33 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3512
SELECT + - COUNT ( ALL 33 ) AS col2 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3513
SELECT ALL - 42 + - MIN( ALL - col1 ) AS col1 FROM tab2 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-3513
SELECT ALL - 42 + - MIN ( ALL - col1 ) AS col1 FROM tab2 AS cor0
----
35

query I rowsort
SELECT ALL 32 + - - col1 FROM tab1 AS cor0
----
37
46
79

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( 60 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3516
SELECT ALL COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NULL NOT IN ( col1 * + + 29 * - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-3516
SELECT ALL COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NULL NOT IN ( col1 * + + 29 * - col0 )
----
0

query I rowsort
SELECT ALL 7 * + col2 + 77 FROM tab0 AS cor0
----
147
406
770

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3518
SELECT DISTINCT + 69 + + CAST( - - col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
156
166
84

skipif mysql # not compatible
query I rowsort label-3518
SELECT DISTINCT + 69 + + CAST ( - - col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
156
166
84

onlyif mysql # DIV for integer division: 
query I rowsort label-3519
SELECT DISTINCT 58 * + col2 DIV + + col2 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-3519
SELECT DISTINCT 58 * + col2 / + + col2 FROM tab2
----
58

query I rowsort
SELECT - col1 + col2 * - 70 FROM tab2 WHERE + col0 * col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3521
SELECT ALL + MIN( DISTINCT - 81 ) * - - ( 47 ) FROM tab1
----
-3807

skipif mysql # not compatible
query I rowsort label-3521
SELECT ALL + MIN ( DISTINCT - 81 ) * - - ( 47 ) FROM tab1
----
-3807

query I rowsort
SELECT + col2 + - 98 AS col2 FROM tab2
----
-40
-58
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3523
SELECT SUM( - col2 ) + - - 46 FROM tab1
----
-177

skipif mysql # not compatible
query I rowsort label-3523
SELECT SUM ( - col2 ) + - - 46 FROM tab1
----
-177

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3524
SELECT ALL col0 + - - col0 * + ( - 3 ) AS col0, CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
-102
NULL
-170
NULL
-182
NULL

skipif mysql # not compatible
query II rowsort label-3524
SELECT ALL col0 + - - col0 * + ( - 3 ) AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
-102
NULL
-170
NULL
-182
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3525
SELECT ALL + SUM( 98 ) AS col1 FROM tab2
----
294

skipif mysql # not compatible
query I rowsort label-3525
SELECT ALL + SUM ( 98 ) AS col1 FROM tab2
----
294

onlyif mysql # aggregate syntax: 
query I rowsort label-3526
SELECT COUNT( * ) * - + MIN( + col0 ) FROM tab2
----
-138

skipif mysql # not compatible
query I rowsort label-3526
SELECT COUNT ( * ) * - + MIN ( + col0 ) FROM tab2
----
-138

query II rowsort
SELECT DISTINCT + 14 AS col0, col2 * + col0 FROM tab1
----
14
4896
14
5015
14
6188

query II rowsort
SELECT ALL - col2 AS col0, + col0 AS col0 FROM tab2 AS cor0
----
-23
46
-40
64
-58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3529
SELECT 77 + + - COUNT( col1 ) AS col2 FROM tab1
----
74

skipif mysql # not compatible
query I rowsort label-3529
SELECT 77 + + - COUNT ( col1 ) AS col2 FROM tab1
----
74

query I rowsort
SELECT DISTINCT + 27 FROM tab1 AS cor0 WHERE NOT - 95 * + col2 * - col0 BETWEEN - 33 AND ( + 64 * col0 )
----
27

query I rowsort
SELECT ALL + 68 - - col2 + - + ( + - 82 ) FROM tab2 AS cor0
----
173
190
208

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3532
SELECT ALL - CAST( ( ( - COUNT( * ) ) ) AS SIGNED ) col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3532
SELECT ALL - CAST ( ( ( - COUNT ( * ) ) ) AS INTEGER ) col2 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3533
SELECT ALL - COUNT( * ) FROM tab1 AS cor0 WHERE NOT 84 IN ( 63, CAST( NULL AS DECIMAL ) )
----
0

skipif mysql # not compatible
query I rowsort label-3533
SELECT ALL - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT 84 IN ( 63, CAST ( NULL AS REAL ) )
----
0

query I rowsort
SELECT DISTINCT + 29 FROM tab1 cor0
----
29

query I rowsort
SELECT - 1 * + + 66 AS col0 FROM tab2 AS cor0
----
-66
-66
-66

query I rowsort
SELECT ALL - 14 * - col0 AS col2 FROM tab0 AS cor0
----
1218
1358
210

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 / - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col0 + + 57 * + col1 ) = NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3539
SELECT + - col0 DIV - 54, col0 col0 FROM tab2 AS cor0
----
0
46
1
64
1
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3539
SELECT + - col0 / - 54, col0 col0 FROM tab2 AS cor0
----
0
46
1
64
1
75

onlyif mysql # DIV for integer division: 
query I rowsort label-3540
SELECT DISTINCT + col1 DIV - - 35 FROM tab1 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-3540
SELECT DISTINCT + col1 / - - 35 FROM tab1 cor0
----
0
1

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( + - col2 * col0 * + 46 + - col1 <> ( NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3542
SELECT - MAX( col0 ) AS col2 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-3542
SELECT - MAX ( col0 ) AS col2 FROM tab1 AS cor0
----
-91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3543
SELECT 70 col2 FROM tab1 WHERE NOT + col2 * 80 * col0 * - col2 * + + col0 * col1 + - 99 NOT BETWEEN NULL AND CAST( NULL AS DECIMAL ) + col0
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3543
SELECT 70 col2 FROM tab1 WHERE NOT + col2 * 80 * col0 * - col2 * + + col0 * col1 + - 99 NOT BETWEEN NULL AND CAST ( NULL AS REAL ) + col0
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col1 NOT IN ( - col0, ( - + col2 ) )
----

query I rowsort
SELECT + 36 * - 87 AS col2 FROM tab2 WHERE NOT + col0 IS NULL
----
-3132
-3132
-3132

onlyif mysql # DIV for integer division: 
query I rowsort label-3546
SELECT ALL 4 DIV - col1 col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3546
SELECT ALL 4 / - col1 col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3547
SELECT DISTINCT - MAX( ALL 23 ) FROM tab2 WHERE NULL IS NULL
----
-23

skipif mysql # not compatible
query I rowsort label-3547
SELECT DISTINCT - MAX ( ALL 23 ) FROM tab2 WHERE NULL IS NULL
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-3548
SELECT + 83 DIV 30 FROM tab0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-3548
SELECT + 83 / 30 FROM tab0
----
2
2
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3549
SELECT DISTINCT MIN( ALL + 90 ) DIV - MAX( DISTINCT + 95 ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3549
SELECT DISTINCT MIN ( ALL + 90 ) / - MAX ( DISTINCT + 95 ) AS col2 FROM tab2
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3550
SELECT DISTINCT ( + COUNT( * ) ) * + COUNT( - 14 ) AS col2 FROM tab0 WHERE - 3 NOT IN ( col2, - 97 * CAST( + + 13 AS DECIMAL ) )
----
9

skipif mysql # not compatible
query I rowsort label-3550
SELECT DISTINCT ( + COUNT ( * ) ) * + COUNT ( - 14 ) AS col2 FROM tab0 WHERE - 3 NOT IN ( col2, - 97 * CAST ( + + 13 AS REAL ) )
----
9

query I rowsort
SELECT - 46 * - - 45 FROM tab2 AS cor0
----
-2070
-2070
-2070

query II rowsort
SELECT ALL - col2 AS col2, + 53 FROM tab1 AS cor0
----
-59
53
-68
53
-96
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3553
SELECT - MIN( - 11 ) AS col2 FROM tab2 cor0
----
11

skipif mysql # not compatible
query I rowsort label-3553
SELECT - MIN ( - 11 ) AS col2 FROM tab2 cor0
----
11

query I rowsort
SELECT - + ( + 6 ) AS col0 FROM tab0 cor0
----
-6
-6
-6

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL IN ( - col2 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 * - 77 = NULL
----

query I rowsort
SELECT + - 22 + + col2 FROM tab1 AS cor0 WHERE - 89 * col0 <= - + col2
----
37
46
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3558
SELECT ( CAST( COUNT( * ) AS SIGNED ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3558
SELECT ( CAST ( COUNT ( * ) AS INTEGER ) ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3559
SELECT ALL - CAST( col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-3559
SELECT ALL - CAST ( col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-10
-47
-99

query II rowsort
SELECT ( + 19 ), col2 AS col0 FROM tab1 AS cor0
----
19
59
19
68
19
96

query III rowsort
SELECT * FROM tab1 WHERE col1 * - col0 * - + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3562
SELECT DISTINCT 42 AS col0, col0 - 57 + + - col0 - CAST( NULL AS SIGNED ) FROM tab2
----
42
NULL

skipif mysql # not compatible
query II rowsort label-3562
SELECT DISTINCT 42 AS col0, col0 - 57 + + - col0 - CAST ( NULL AS INTEGER ) FROM tab2
----
42
NULL

query I rowsort
SELECT DISTINCT + 45 + + + 10 FROM tab1
----
55

query I rowsort
SELECT - 30 * col2 + - 51 * col2 AS col2 FROM tab0
----
-3807
-8019
-810

query III rowsort
SELECT * FROM tab0 WHERE - col0 + + + 55 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT - 91, 13 AS col1 FROM tab0
----
-91
13

query I rowsort
SELECT 57 * - 17 + + col1 * + ( - ( + ( - + col2 ) ) ) + - - col1 AS col0 FROM tab1
----
-669
2274
389

onlyif mysql # aggregate syntax: 
query I rowsort label-3568
SELECT COUNT( * ) + + + 39 col1 FROM tab2 AS cor0
----
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3568
SELECT COUNT ( * ) + + + 39 col1 FROM tab2 AS cor0
----
42

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( NOT + 22 * - 34 + - col0 > NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3570
SELECT DISTINCT + MAX( DISTINCT + col2 ) AS col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN 6 AND col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3570
SELECT DISTINCT + MAX ( DISTINCT + col2 ) AS col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN 6 AND col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3571
SELECT DISTINCT ( - + 58 ) + - ( CAST( NULL AS SIGNED ) ) * col0 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3571
SELECT DISTINCT ( - + 58 ) + - ( CAST ( NULL AS INTEGER ) ) * col0 AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - 17 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4

query I rowsort
SELECT DISTINCT col2 * + col1 * + 96 + - + col1 AS col0 FROM tab1
----
129010
28315
306769

onlyif mysql # aggregate syntax: 
query I rowsort label-3574
SELECT COUNT( * ) * + ( + 75 ) FROM tab0
----
225

skipif mysql # not compatible
query I rowsort label-3574
SELECT COUNT ( * ) * + ( + 75 ) FROM tab0
----
225

query I rowsort
SELECT + 95 - 89 AS col0 FROM tab0
----
6
6
6

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( ( + 23 ) * col2 ) IS NOT NULL AND + col1 >= + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + col0 AS col0, + col2 * + col0 AS col1 FROM tab1 AS cor0
----
51
4896
85
5015
91
6188

onlyif mysql # DIV for integer division: 
query II rowsort label-3578
SELECT ALL - 67 AS col2, - col1 DIV + 12 AS col1 FROM tab0 AS cor0
----
-67
-1
-67
-6
-67
0

skipif mysql # not compatible
query II rowsort label-3578
SELECT ALL - 67 AS col2, - col1 / + 12 AS col1 FROM tab0 AS cor0
----
-67
-1
-67
-6
-67
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3579
SELECT * FROM tab2 AS cor0 WHERE NOT 77 >= + 24 * + 56 + + col0 * + - col0 + ( + - col1 ) + - CAST( - col1 AS SIGNED ) + - col0 * col1 * 77 * col1
----

skipif mysql # not compatible
query III rowsort label-3579
SELECT * FROM tab2 AS cor0 WHERE NOT 77 >= + 24 * + 56 + + col0 * + - col0 + ( + - col1 ) + - CAST ( - col1 AS INTEGER ) + - col0 * col1 * 77 * col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col1 + ( + col2 ) col1 FROM tab1 AS cor0
----
4345
484
810

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3581
SELECT - + SUM( - - ( - - CAST( + 93 AS SIGNED ) ) ) col1 FROM tab2 AS cor0
----
-279

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3581
SELECT - + SUM ( - - ( - - CAST ( + 93 AS INTEGER ) ) ) col1 FROM tab2 AS cor0
----
-279

query I rowsort
SELECT ALL + col2 * - ( + + col0 ) AS col0 FROM tab2 AS cor0
----
-1058
-2560
-4350

query I rowsort
SELECT ALL - col1 * + 78 - col2 FROM tab1 AS cor0
----
-1188
-3734
-449

query II rowsort
SELECT col2 AS col1, 8 + col1 AS col0 FROM tab2 cor0
----
23
59
40
85
58
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3585
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - 7 * + CAST( NULL AS SIGNED ) <> - 86
----

skipif mysql # not compatible
query III rowsort label-3585
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - 7 * + CAST ( NULL AS INTEGER ) <> - 86
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3586
SELECT SUM( 37 ) AS col2 FROM tab2
----
111

skipif mysql # not compatible
query I rowsort label-3586
SELECT SUM ( 37 ) AS col2 FROM tab2
----
111

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 97 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 * - - col1 FROM tab2
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query II rowsort label-3589
SELECT ALL COUNT( DISTINCT - + col2 ) AS col0, - COUNT( * ) * + + 41 FROM tab0
----
3
-123

skipif mysql # not compatible
query II rowsort label-3589
SELECT ALL COUNT ( DISTINCT - + col2 ) AS col0, - COUNT ( * ) * + + 41 FROM tab0
----
3
-123

query I rowsort
SELECT 33 * + col2 * + col0 AS col0 FROM tab2
----
143550
34914
84480

query II rowsort
SELECT 7 AS col0, col1 FROM tab2 AS cor0 WHERE NOT NULL IN ( 35, 66 + - 91 )
----

query I rowsort
SELECT ALL + - 45 * + col0 FROM tab2 cor0
----
-2070
-2880
-3375

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3593
SELECT * FROM tab2 AS cor0 WHERE NOT ( CAST( NULL AS DECIMAL ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3593
SELECT * FROM tab2 AS cor0 WHERE NOT ( CAST ( NULL AS REAL ) ) IS NULL
----

query I rowsort
SELECT ALL - col2 AS col2 FROM tab1 WHERE NOT + 59 IS NULL
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3595
SELECT col0, CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NULL >= - col0 + + + 36
----

skipif mysql # not compatible
query II rowsort label-3595
SELECT col0, CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NULL >= - col0 + + + 36
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3596
SELECT ALL - MIN( ALL - 45 ) col1 FROM tab2 cor0
----
45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3596
SELECT ALL - MIN ( ALL - 45 ) col1 FROM tab2 cor0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3597
SELECT ALL + + MIN( - col0 ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-3597
SELECT ALL + + MIN ( - col0 ) FROM tab1 AS cor0
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3598
SELECT * FROM tab2 AS cor0 WHERE + col0 NOT IN ( - - col1, CAST( col2 AS SIGNED ) / + col1 * + - col1 / col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3598
SELECT * FROM tab2 AS cor0 WHERE + col0 NOT IN ( - - col1, CAST ( col2 AS INTEGER ) / + col1 * + - col1 / col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - - ( + + col0 ) FROM tab0 cor0
----
15
87
97

query I rowsort
SELECT DISTINCT + ( + col0 ) + + 64 AS col2 FROM tab2 AS cor0
----
110
128
139

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3601
SELECT - COUNT( * ) + - + MIN( CAST( NULL AS DECIMAL ) ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3601
SELECT - COUNT ( * ) + - + MIN ( CAST ( NULL AS REAL ) ) AS col1 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 * - - col2 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3603
SELECT ALL - col1 + CAST( - + 9 AS SIGNED ) + col0 AS col1 FROM tab0 AS cor0
----
-75
57
87

skipif mysql # not compatible
query I rowsort label-3603
SELECT ALL - col1 + CAST ( - + 9 AS INTEGER ) + col0 AS col1 FROM tab0 AS cor0
----
-75
57
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3604
SELECT DISTINCT COUNT( * ) + + 96 FROM tab2 cor0
----
99

skipif mysql # not compatible
query I rowsort label-3604
SELECT DISTINCT COUNT ( * ) + + 96 FROM tab2 cor0
----
99

query I rowsort
SELECT - col2 + - 80 AS col2 FROM tab2 AS cor0
----
-103
-120
-138

query I rowsort
SELECT - col1 * - - col1 + - - col1 AS col1 FROM tab2
----
-2550
-4422
-5852

query I rowsort
SELECT DISTINCT + col1 + + - ( + - col1 ) FROM tab1
----
10
28
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3608
SELECT - SUM( ALL - col0 ) AS col1 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-3608
SELECT - SUM ( ALL - col0 ) AS col1 FROM tab2
----
185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3609
SELECT DISTINCT col0 AS col2 FROM tab0 WHERE - - CAST( NULL AS SIGNED ) IS NULL
----
15
87
97

skipif mysql # not compatible
query I rowsort label-3609
SELECT DISTINCT col0 AS col2 FROM tab0 WHERE - - CAST ( NULL AS INTEGER ) IS NULL
----
15
87
97

query I rowsort
SELECT DISTINCT col1 + + + col2 * + - col0 AS col1 FROM tab0
----
-624
-849
-9602

onlyif mysql # aggregate syntax: 
query I rowsort label-3611
SELECT DISTINCT - - 42 * - - COUNT( * ) * COUNT( * ) AS col0 FROM tab0 cor0
----
378

skipif mysql # not compatible
query I rowsort label-3611
SELECT DISTINCT - - 42 * - - COUNT ( * ) * COUNT ( * ) AS col0 FROM tab0 cor0
----
378

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3612
SELECT ALL + CAST( + col0 AS SIGNED ) DIV + col2 - - col1 + + 45 FROM tab0 AS cor0
----
126
46
74

skipif mysql # not compatible
query I rowsort label-3612
SELECT ALL + CAST ( + col0 AS INTEGER ) / + col2 - - col1 + + 45 FROM tab0 AS cor0
----
126
46
74

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3613
SELECT - COUNT( * ) - - ( 99 ) + - 56 * + CAST( NULL AS DECIMAL ), 94 AS col1 FROM tab0 AS cor0
----
NULL
94

skipif mysql # not compatible
query II rowsort label-3613
SELECT - COUNT ( * ) - - ( 99 ) + - 56 * + CAST ( NULL AS REAL ), 94 AS col1 FROM tab0 AS cor0
----
NULL
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3614
SELECT ALL + 69 + + 25 + col1 * CAST( NULL AS SIGNED ) + - ( + 41 ) + - col1 * + 42 * + + col1 / 53 + - 12 + - ( col0 ) + 58 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3614
SELECT ALL + 69 + + 25 + col1 * CAST ( NULL AS INTEGER ) + - ( + 41 ) + - col1 * + 42 * + + col1 / 53 + - 12 + - ( col0 ) + 58 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3615
SELECT + ( + + 94 ) - + COUNT( * ) DIV COUNT( * ) col0 FROM tab0 AS cor0
----
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3615
SELECT + ( + + 94 ) - + COUNT ( * ) / COUNT ( * ) col0 FROM tab0 AS cor0
----
93

query I rowsort
SELECT - 33 - + col0 FROM tab2 AS cor0
----
-108
-79
-97

query I rowsort
SELECT ALL + col2 + - 38 + col1 - + 32 FROM tab0 AS cor0
----
-39
30
58

query I rowsort
SELECT col0 * + col1 + + col1 FROM tab0 AS cor0
----
1296
1848
98

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - col1 * + - col2 * + 73 * - col0 IN ( - col1 )
----

query I rowsort
SELECT DISTINCT - 58 * col1 FROM tab0
----
-1218
-4698
-58

query I rowsort
SELECT ALL + + 58 AS col1 FROM tab1 WHERE NOT + 55 IS NOT NULL
----

query I rowsort
SELECT - col1 AS col0 FROM tab1 WHERE NOT NULL >= ( col2 )
----

query I rowsort
SELECT DISTINCT + 49 * col0 * - col2 FROM tab1 AS cor0
----
-239904
-245735
-303212

query I rowsort
SELECT + col2 * 4 * - 43 AS col1 FROM tab2 AS cor0
----
-3956
-6880
-9976

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3625
SELECT - CAST( + 16 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-16
-16
-16

skipif mysql # not compatible
query I rowsort label-3625
SELECT - CAST ( + 16 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-16
-16
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3626
SELECT + COUNT( * ) DIV 67 * - 27 * + COUNT( * ) AS col2 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3626
SELECT + COUNT ( * ) / 67 * - 27 * + COUNT ( * ) AS col2 FROM tab1 cor0
----
0

query I rowsort
SELECT DISTINCT ( + 81 ) AS col1 FROM tab1 AS cor0
----
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - ( - + 80 ) col2, col1 FROM tab0
----
80
1
80
21
80
81

query I rowsort
SELECT ALL ( + + ( - + 35 ) ) AS col0 FROM tab2
----
-35
-35
-35

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 92 = - - 15 + + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3631
SELECT - ( SUM( + 60 ) ) AS col1 FROM tab2
----
-180

skipif mysql # not compatible
query I rowsort label-3631
SELECT - ( SUM ( + 60 ) ) AS col1 FROM tab2
----
-180

query I rowsort
SELECT DISTINCT col0 * - col1 * - - 59 AS col2 FROM tab1
----
-25075
-252343
-42126

query I rowsort
SELECT DISTINCT col2 * - - 30 * 43 FROM tab0
----
127710
12900
60630

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( + - 32 )
----

query I rowsort
SELECT ALL + + col1 * - + col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + col0 * - + 28, - col1 * + 30 + + + col1 + + - col1 * + 82 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3637
SELECT - CAST( NULL AS SIGNED ) + + CAST( + col0 AS SIGNED ) / + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3637
SELECT - CAST ( NULL AS INTEGER ) + + CAST ( + col0 AS INTEGER ) / + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 + col2, col2 col0 FROM tab2 AS cor0
----
-28
23
-37
40
-9
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3639
SELECT DISTINCT + + MAX( DISTINCT + 56 ) FROM tab1 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-3639
SELECT DISTINCT + + MAX ( DISTINCT + 56 ) FROM tab1 AS cor0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3640
SELECT ALL - ( ( - - COUNT( * ) ) ) AS col1 FROM tab2 WHERE NOT - - col1 * + + 26 * col2 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3640
SELECT ALL - ( ( - - COUNT ( * ) ) ) AS col1 FROM tab2 WHERE NOT - - col1 * + + 26 * col2 IS NULL
----
-3

query III rowsort
SELECT * FROM tab2 WHERE - 86 >= + col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3642
SELECT ALL - ( COUNT( * ) ) DIV 32 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3642
SELECT ALL - ( COUNT ( * ) ) / 32 FROM tab0 cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3643
SELECT ALL - MIN( - - col2 ) * - ( 61 ) AS col2, - COUNT( DISTINCT - 17 ) FROM tab0 AS cor0 WHERE + ( - CAST( - col1 AS SIGNED ) ) IS NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-3643
SELECT ALL - MIN ( - - col2 ) * - ( 61 ) AS col2, - COUNT ( DISTINCT - 17 ) FROM tab0 AS cor0 WHERE + ( - CAST ( - col1 AS INTEGER ) ) IS NULL
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3644
SELECT ALL MIN( col1 ) AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3644
SELECT ALL MIN ( col1 ) AS col2 FROM tab0 AS cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 * - 43 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3646
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE - ( + ( - + col2 ) ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3646
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE - ( + ( - + col2 ) ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3647
SELECT - COUNT( * ) - - COUNT( ALL 14 ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3647
SELECT - COUNT ( * ) - - COUNT ( ALL 14 ) AS col0 FROM tab2
----
0

query I rowsort
SELECT ALL col0 - - + col1 FROM tab1
----
138
65
90

query I rowsort
SELECT DISTINCT + 46 + - - 1 AS col0 FROM tab2, tab0 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3650
SELECT ALL - COUNT( ALL + col2 ) + + 69 * SUM( DISTINCT + - col0 ) FROM tab1
----
-15666

skipif mysql # not compatible
query I rowsort label-3650
SELECT ALL - COUNT ( ALL + col2 ) + + 69 * SUM ( DISTINCT + - col0 ) FROM tab1
----
-15666

query I rowsort
SELECT col2 + - - col0 AS col0 FROM tab2
----
104
133
69

query I rowsort
SELECT 1 + + col0 - col0 FROM tab1
----
1
1
1

query I rowsort
SELECT DISTINCT + 42 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
42

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 28 + ( + - 0 ) + - col0 ) <= + col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3655
SELECT DISTINCT 36 * - COUNT( * ) AS col2, COUNT( * ) AS col1 FROM tab0
----
-108
3

skipif mysql # not compatible
query II rowsort label-3655
SELECT DISTINCT 36 * - COUNT ( * ) AS col2, COUNT ( * ) AS col1 FROM tab0
----
-108
3

query I rowsort
SELECT DISTINCT col2 * - + col2 * col0 AS col0 FROM tab0 AS cor0
----
-33135
-8700
-950697

onlyif mysql # aggregate syntax: 
query I rowsort label-3657
SELECT COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3657
SELECT COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

query II rowsort
SELECT ( - 3 ) AS col2, 24 AS col0 FROM tab0 AS cor0
----
-3
24
-3
24
-3
24

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 61 * - col2 IS NOT NULL
----

query I rowsort
SELECT + col0 * ( + col1 ) AS col0 FROM tab1 cor0
----
425
4277
714

query I rowsort
SELECT ALL - col2 * + - col1 FROM tab2 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3662
SELECT DISTINCT 38 DIV - + col0 * + col1 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3662
SELECT DISTINCT 38 / - + col0 * + col1 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - - 90 AS col1 FROM tab0 AS cor0 WHERE 27 + - + col2 IS NOT NULL
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3664
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT ( col1 IN ( - + col2, col2, + CAST( NULL AS SIGNED ) ) ) )
----

skipif mysql # not compatible
query III rowsort label-3664
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT ( col1 IN ( - + col2, col2, + CAST ( NULL AS INTEGER ) ) ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3665
SELECT ALL - + CAST( - 92 AS SIGNED ) FROM tab2 cor0
----
92
92
92

skipif mysql # not compatible
query I rowsort label-3665
SELECT ALL - + CAST ( - 92 AS INTEGER ) FROM tab2 cor0
----
92
92
92

query I rowsort
SELECT DISTINCT - 63 AS col0 FROM tab1 WHERE NOT + + 84 < + - col2
----
-63

query I rowsort
SELECT DISTINCT col0 * + 23 * - col1 FROM tab0
----
-2231
-27945
-42021

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL < - 19 * - 4
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3669
SELECT DISTINCT - MIN( ALL - col1 ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-3669
SELECT DISTINCT - MIN ( ALL - col1 ) FROM tab1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3670
SELECT DISTINCT + 75 * MIN( DISTINCT - 90 ) FROM tab0
----
-6750

skipif mysql # not compatible
query I rowsort label-3670
SELECT DISTINCT + 75 * MIN ( DISTINCT - 90 ) FROM tab0
----
-6750

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3671
SELECT - - col2 AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN + 80 + col2 AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3671
SELECT - - col2 AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN + 80 + col2 AND - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL + ( - 55 ) FROM tab1
----
-55
-55
-55

query I rowsort
SELECT DISTINCT - 79 FROM tab0 AS cor0 WHERE NULL > NULL
----

query I rowsort
SELECT - 98 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638

onlyif mysql # aggregate syntax: 
query I rowsort label-3675
SELECT ALL - SUM( col0 ) * + + 95 AS col2 FROM tab1
----
-21565

skipif mysql # not compatible
query I rowsort label-3675
SELECT ALL - SUM ( col0 ) * + + 95 AS col2 FROM tab1
----
-21565

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 + + col2 AS col0, - col2 * - col0 col2 FROM tab0
----
-11
870
-34
705
98
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-3677
SELECT DISTINCT + - COUNT( * ) + - + ( + 77 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-86

skipif mysql # not compatible
query I rowsort label-3677
SELECT DISTINCT + - COUNT ( * ) + - + ( + 77 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-86

query I rowsort
SELECT DISTINCT + + col0 AS col2 FROM tab1 AS cor0 WHERE NOT - col0 + + 68 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3679
SELECT ALL + - ( - 49 ) + - - 46 DIV ( - col0 ) FROM tab0 cor0
----
46
49
49

skipif mysql # not compatible
query I rowsort label-3679
SELECT ALL + - ( - 49 ) + - - 46 / ( - col0 ) FROM tab0 cor0
----
46
49
49

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( - 65 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3681
SELECT DISTINCT - ( + col1 ) AS col2, - 18 DIV col2 col0 FROM tab1 AS cor0
----
-14
0
-47
0
-5
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3681
SELECT DISTINCT - ( + col1 ) AS col2, - 18 / col2 col0 FROM tab1 AS cor0
----
-14
0
-47
0
-5
0

query I rowsort
SELECT DISTINCT + ( - 75 ) FROM tab0 AS cor0
----
-75

query I rowsort
SELECT + - col2 AS col2 FROM tab0 AS cor0 WHERE + 10 IS NULL
----

query I rowsort
SELECT + col2 + - - col1 AS col0 FROM tab1 AS cor0
----
110
115
64

query II rowsort
SELECT DISTINCT - col0 AS col0, col0 FROM tab2 AS cor0
----
-46
46
-64
64
-75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3686
SELECT ALL - COUNT( * ) + - MAX( col2 ) * COUNT( * ) AS col0 FROM tab1 AS cor0
----
-291

skipif mysql # not compatible
query I rowsort label-3686
SELECT ALL - COUNT ( * ) + - MAX ( col2 ) * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-291

onlyif mysql # aggregate syntax: 
query I rowsort label-3687
SELECT COUNT( col1 ) * - 95 FROM tab0
----
-285

skipif mysql # not compatible
query I rowsort label-3687
SELECT COUNT ( col1 ) * - 95 FROM tab0
----
-285

query I rowsort
SELECT DISTINCT - ( 36 ) - col2 * col0 AS col0 FROM tab1
----
-4932
-5051
-6224

query I rowsort
SELECT DISTINCT col2 - - + col2 FROM tab0
----
198
20
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3690
SELECT ALL COUNT( * ) DIV + + 71 * + MAX( - col2 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3690
SELECT ALL COUNT ( * ) / + + 71 * + MAX ( - col2 ) FROM tab1
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL < + - col1
----

query I rowsort
SELECT - col0 * + ( + 27 ) FROM tab0
----
-2349
-2619
-405

onlyif mysql # aggregate syntax: 
query I rowsort label-3693
SELECT + MIN( - 89 ) * COUNT( * ) FROM tab0
----
-267

skipif mysql # not compatible
query I rowsort label-3693
SELECT + MIN ( - 89 ) * COUNT ( * ) FROM tab0
----
-267

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( col0, + col1, 92 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3695
SELECT + + COUNT( DISTINCT + col0 ) AS col1 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3695
SELECT + + COUNT ( DISTINCT + col0 ) AS col1 FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3696
SELECT + COUNT( * ), 41 col0 FROM tab2 AS cor0
----
3
41

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3696
SELECT + COUNT ( * ), 41 col0 FROM tab2 AS cor0
----
3
41

query I rowsort
SELECT ALL - col0 + 23 * 71 AS col0 FROM tab2 cor0 WHERE + col0 IS NOT NULL
----
1558
1569
1587

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3698
SELECT + - COUNT( * ), - CAST( - 65 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-3
65

skipif mysql # not compatible
query II rowsort label-3698
SELECT + - COUNT ( * ), - CAST ( - 65 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-3
65

query I rowsort
SELECT DISTINCT 16 + - col1 FROM tab1 AS cor0
----
-31
11
2

query I rowsort
SELECT col1 + col2 * + col0 FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3701
SELECT - SUM( ALL - col1 ) FROM tab0 cor0
----
103

skipif mysql # not compatible
query I rowsort label-3701
SELECT - SUM ( ALL - col1 ) FROM tab0 cor0
----
103

query I rowsort
SELECT ALL 30 * col1 FROM tab2
----
1530
2010
2310

query I rowsort
SELECT ALL - ( - col0 ) * - 92 FROM tab2
----
-4232
-5888
-6900

query I rowsort
SELECT DISTINCT ( + 92 ) FROM tab1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3705
SELECT ALL + MIN( + + ( - col0 ) ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-3705
SELECT ALL + MIN ( + + ( - col0 ) ) FROM tab0
----
-97

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 19 * + + col0 IS NULL
----

query I rowsort
SELECT - 32 + + + 4 + + + 7 FROM tab2 AS cor0
----
-21
-21
-21

query II rowsort
SELECT + col2, - col0 * - + 17 FROM tab0 AS cor0
----
10
1479
47
255
99
1649

query II rowsort
SELECT col2 - - + col0 * 52, col0 FROM tab1 AS cor0
----
2748
51
4479
85
4800
91

query II rowsort
SELECT - - col2 - + + col2 * - - col0 AS col1, col1 * + - col2 + 8 AS col2 FROM tab1 AS cor0
----
-4800
-1336
-4956
-287
-6120
-3188

query I rowsort
SELECT DISTINCT + - col2 + - col1 AS col0 FROM tab2 AS cor0
----
-117
-125
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-3712
SELECT COUNT( * ) + + 71 AS col1 FROM tab1 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-3712
SELECT COUNT ( * ) + + 71 AS col1 FROM tab1 AS cor0
----
74

query III rowsort
SELECT * FROM tab0 WHERE - col2 * + + col1 * - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + ( + 87 ) FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3715
SELECT ALL col2 DIV - col1 * 43 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3715
SELECT ALL col2 / - col1 * 43 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3716
SELECT + 43 * + MIN( ALL 25 ) AS col0 FROM tab2
----
1075

skipif mysql # not compatible
query I rowsort label-3716
SELECT + 43 * + MIN ( ALL 25 ) AS col0 FROM tab2
----
1075

query I rowsort
SELECT 83 * + 0 AS col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3718
SELECT - MAX( ALL + col0 ) AS col2 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-3718
SELECT - MAX ( ALL + col0 ) AS col2 FROM tab0
----
-97

query I rowsort
SELECT ALL + col1 * - 86 FROM tab0 AS cor0
----
-1806
-6966
-86

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 58 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-3721
SELECT + col2 col2, col0 * - col2 + + col1 * + + col2 + + col1 * col1 + - + col0 DIV col2 + - 38 + + 44 * 97 AS col0 FROM tab1 AS cor0
----
59
-466
68
3446
96
874

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3721
SELECT + col2 col2, col0 * - col2 + + col1 * + + col2 + + col1 * col1 + - + col0 / col2 + - 38 + + 44 * 97 AS col0 FROM tab1 AS cor0
----
59
-466
68
3446
96
874

onlyif mysql # DIV for integer division: 
query I rowsort label-3722
SELECT ALL - 74 DIV - col2 FROM tab0 AS cor0
----
0
1
7

skipif mysql # not compatible
query I rowsort label-3722
SELECT ALL - 74 / - col2 FROM tab0 AS cor0
----
0
1
7

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT 87 <= - 56 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3724
SELECT - SUM( ALL + col2 ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-3724
SELECT - SUM ( ALL + col2 ) FROM tab0 AS cor0
----
-156

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 < col0 * - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 69 AS col2 FROM tab0 cor0
----
69
69
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 48 + col2 + 63 + - 5 * + col2 col1 FROM tab1
----
-125
-161
-273

query I rowsort
SELECT DISTINCT col0 * + 13 + + + col2 AS col2 FROM tab1
----
1164
1251
759

query I rowsort
SELECT col1 * 48 * + + 53 + + - col0 + + - col2 - 87 * - col1 + col0 AS col2 FROM tab2
----
134158
176219
202547

query I rowsort
SELECT DISTINCT 23 AS col2 FROM tab2 WHERE NOT + col2 IS NULL
----
23

query II rowsort
SELECT ALL - ( - ( - col0 ) ) AS col2, - col2 FROM tab2
----
-46
-23
-64
-40
-75
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3732
SELECT col2 * - + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3732
SELECT col2 * - + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * + 33 AS col1 FROM tab1
----
1947
2244
3168

query I rowsort
SELECT DISTINCT + ( 34 ) AS col1 FROM tab1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3735
SELECT SUM( DISTINCT 2 ) FROM tab2 cor0
----
2

skipif mysql # not compatible
query I rowsort label-3735
SELECT SUM ( DISTINCT 2 ) FROM tab2 cor0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3736
SELECT DISTINCT - - 94 + - ( + 94 ) * ( - - MAX( - + 58 ) ) FROM tab2 AS cor0
----
5546

skipif mysql # not compatible
query I rowsort label-3736
SELECT DISTINCT - - 94 + - ( + 94 ) * ( - - MAX ( - + 58 ) ) FROM tab2 AS cor0
----
5546

onlyif mysql # aggregate syntax: 
query I rowsort label-3737
SELECT - COUNT( ALL 91 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3737
SELECT - COUNT ( ALL 91 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT 19 + col2 AS col1 FROM tab2
----
42
59
77

query I rowsort
SELECT DISTINCT - col0 - 34 AS col0 FROM tab0
----
-121
-131
-49

query I rowsort
SELECT ALL - 68 * + col0 + ( col2 ) + col2 * + 69 AS col2 FROM tab0
----
-5216
2270
334

query I rowsort
SELECT DISTINCT + + col2 * + 29 + col2 AS col2 FROM tab2 AS cor0
----
1200
1740
690

query I rowsort
SELECT + 76 * + - col2 + + + col1 FROM tab1 AS cor0
----
-4479
-5121
-7282

onlyif mysql # DIV for integer division: 
query I rowsort label-3743
SELECT 64 DIV + - col2 FROM tab0 AS cor0
----
-1
-6
0

skipif mysql # not compatible
query I rowsort label-3743
SELECT 64 / + - col2 FROM tab0 AS cor0
----
-1
-6
0

query I rowsort
SELECT DISTINCT col1 + + ( 91 ) FROM tab1 AS cor0
----
105
138
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3745
SELECT ALL + + COUNT( * ) DIV - - COUNT( * ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3745
SELECT ALL + + COUNT ( * ) / - - COUNT ( * ) FROM tab0 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3746
SELECT + col0 / - CAST( NULL AS SIGNED ) AS col0, + col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-3746
SELECT + col0 / - CAST ( NULL AS INTEGER ) AS col0, + col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

query I rowsort
SELECT - col1 * + 19 AS col2 FROM tab2
----
-1273
-1463
-969

query I rowsort
SELECT - - col1 FROM tab0 WHERE NOT col1 + col2 * col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3749
SELECT ALL MAX( + - ( col2 ) ) AS col2 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-3749
SELECT ALL MAX ( + - ( col2 ) ) AS col2 FROM tab1
----
-59

query I rowsort
SELECT ALL + ( - 42 ) AS col1 FROM tab1
----
-42
-42
-42

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + col2 * 7 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3752
SELECT DISTINCT COUNT( * ) + + COUNT( * ) col0 FROM tab0, tab2 AS cor0
----
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3752
SELECT DISTINCT COUNT ( * ) + + COUNT ( * ) col0 FROM tab0, tab2 AS cor0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3753
SELECT ALL - - 50 * - MAX( - col0 ) col0 FROM tab0 cor0
----
750

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3753
SELECT ALL - - 50 * - MAX ( - col0 ) col0 FROM tab0 cor0
----
750

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3754
SELECT 87 * - - CAST( + + col2 AS SIGNED ) + - col2 FROM tab1 AS cor0
----
5074
5848
8256

skipif mysql # not compatible
query I rowsort label-3754
SELECT 87 * - - CAST ( + + col2 AS INTEGER ) + - col2 FROM tab1 AS cor0
----
5074
5848
8256

query I rowsort
SELECT DISTINCT col0 * + col1 * + - col0 FROM tab2 AS cor0
----
-107916
-315392
-376875

onlyif mysql # DIV for integer division: 
query I rowsort label-3756
SELECT DISTINCT + + ( + col1 ) DIV + + col0 + + col1 * 13 FROM tab2 AS cor0
----
1002
664
871

skipif mysql # not compatible
query I rowsort label-3756
SELECT DISTINCT + + ( + col1 ) / + + col0 + + col1 * 13 FROM tab2 AS cor0
----
1002
664
871

query II rowsort
SELECT ALL - col2 AS col2, ( col2 ) FROM tab2
----
-23
23
-40
40
-58
58

query I rowsort
SELECT DISTINCT + - 48 * - col0 * - - col0 FROM tab0 AS cor0
----
10800
363312
451632

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3759
SELECT DISTINCT - 95 AS col0, + col1 * - CAST( NULL AS SIGNED ) * - col2 * + col1 FROM tab0 cor0
----
-95
NULL

skipif mysql # not compatible
query II rowsort label-3759
SELECT DISTINCT - 95 AS col0, + col1 * - CAST ( NULL AS INTEGER ) * - col2 * + col1 FROM tab0 cor0
----
-95
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3760
SELECT ALL + 79 DIV + + col1 + col1 AS col1 FROM tab1 cor0
----
19
20
48

skipif mysql # not compatible
query I rowsort label-3760
SELECT ALL + 79 / + + col1 + col1 AS col1 FROM tab1 cor0
----
19
20
48

onlyif mysql # aggregate syntax: 
query II rowsort label-3761
SELECT DISTINCT + COUNT( * ) AS col2, 50 FROM tab2 AS cor0
----
3
50

skipif mysql # not compatible
query II rowsort label-3761
SELECT DISTINCT + COUNT ( * ) AS col2, 50 FROM tab2 AS cor0
----
3
50

query I rowsort
SELECT + - col2 FROM tab0 AS cor0 WHERE col0 IS NULL
----

query II rowsort
SELECT ALL + 45, 61 * + col0 AS col0 FROM tab1 AS cor0
----
45
3111
45
5185
45
5551

onlyif mysql # aggregate syntax: 
query I rowsort label-3764
SELECT + MAX( - 10 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
-10

skipif mysql # not compatible
query I rowsort label-3764
SELECT + MAX ( - 10 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
-10

query I rowsort
SELECT - + col1 FROM tab1 AS cor0 WHERE + col2 IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT DISTINCT + col0 * - col0 + + - 35 FROM tab1
----
-2636
-7260
-8316

query I rowsort
SELECT DISTINCT - ( 5 ) AS col2 FROM tab0
----
-5

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL IS NULL OR - col2 NOT IN ( - - ( - 42 ), 30 * + col1, + + 25 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3769
SELECT ALL - MIN( DISTINCT - + ( - col2 ) ) AS col2 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-3769
SELECT ALL - MIN ( DISTINCT - + ( - col2 ) ) AS col2 FROM tab2
----
-23

query I rowsort
SELECT 66 + col1 AS col0 FROM tab1 AS cor0
----
113
71
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3771
SELECT - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3771
SELECT - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE col2 IS NULL
----
0

query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE NOT - col2 > + - col1
----
99

query I rowsort
SELECT - + 63 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab1 cor1 )
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5

onlyif mysql # aggregate syntax: 
query I rowsort label-3774
SELECT DISTINCT + ( COUNT( * ) ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3774
SELECT DISTINCT + ( COUNT ( * ) ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3775
SELECT ALL COUNT( * ) - 34 col1 FROM tab0
----
-31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3775
SELECT ALL COUNT ( * ) - 34 col1 FROM tab0
----
-31

query I rowsort
SELECT + col2 - - + col0 + + - 40 FROM tab2 AS cor0
----
29
64
93

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3777
SELECT 52 - - col0 - - - col0 * + + 58 - + - CAST( col1 AS SIGNED ), col0 AS col2 FROM tab0 AS cor0
----
-4886
87
-5476
97
-722
15

skipif mysql # not compatible
query II rowsort label-3777
SELECT 52 - - col0 - - - col0 * + + 58 - + - CAST ( col1 AS INTEGER ), col0 AS col2 FROM tab0 AS cor0
----
-4886
87
-5476
97
-722
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3778
SELECT ( 15 ) - - COUNT( - col1 ) DIV - MIN( ALL col2 ) AS col1 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-3778
SELECT ( 15 ) - - COUNT ( - col1 ) / - MIN ( ALL col2 ) AS col1 FROM tab0 AS cor0
----
15

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3780
SELECT COUNT( + - col0 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3780
SELECT COUNT ( + - col0 ) FROM tab2 cor0
----
3

query I rowsort
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE NOT col2 BETWEEN col0 + + 24 / - 49 * + 11 AND NULL
----
10

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 NOT IN ( + col2 + - col2 * col1 * + + 14 / - + col2 + + + col0, - 88 / + - 69 * + col2 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 - 72 IS NOT NULL
----

query II rowsort
SELECT - col0 * - - col2 AS col1, 23 FROM tab0
----
-705
23
-870
23
-9603
23

onlyif mysql # aggregate syntax: 
query II rowsort label-3785
SELECT DISTINCT - COUNT( - + col2 ) AS col1, COUNT( * ) AS col1 FROM tab0
----
-3
3

skipif mysql # not compatible
query II rowsort label-3785
SELECT DISTINCT - COUNT ( - + col2 ) AS col1, COUNT ( * ) AS col1 FROM tab0
----
-3
3

query I rowsort
SELECT ( + 2 ) AS col0 FROM tab1
----
2
2
2

query II rowsort
SELECT ALL + 31 * + 12 AS col2, + ( col0 ) FROM tab1
----
372
51
372
85
372
91

query I rowsort
SELECT DISTINCT - 98 * col1 AS col2 FROM tab1
----
-1372
-4606
-490

onlyif mysql # DIV for integer division: 
query I rowsort label-3789
SELECT DISTINCT - 48 DIV 6 FROM tab0
----
-8

skipif mysql # not compatible
query I rowsort label-3789
SELECT DISTINCT - 48 / 6 FROM tab0
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3790
SELECT - CAST( + col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-3790
SELECT - CAST ( + col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT DISTINCT + ( + + ( col1 ) ) AS col2 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT + + col0 * + col2 / - + 24 FROM tab0 AS cor0 WHERE NOT - ( + + 93 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 3 col1 FROM tab0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 12 col2 FROM tab0
----
1188
120
564

query I rowsort
SELECT + 58 + + + col1 * col2 AS col1 FROM tab0 AS cor0
----
157
268
3865

onlyif mysql # DIV for integer division: 
query I rowsort label-3796
SELECT - - col0 + col2 DIV - col2 FROM tab1 AS cor0
----
50
84
90

skipif mysql # not compatible
query I rowsort label-3796
SELECT - - col0 + col2 / - col2 FROM tab1 AS cor0
----
50
84
90

query I rowsort
SELECT ALL - - 68 FROM tab0 cor0
----
68
68
68

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL > 42
----

query I rowsort
SELECT DISTINCT + col2 + col2 + - col0 + col0 * - col2 + + 92 AS col2 FROM tab1 cor0
----
-4663
-4890
-6051

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3800
SELECT DISTINCT + 30 + - CAST( - 59 AS SIGNED ) * 20 FROM tab0
----
1210

skipif mysql # not compatible
query I rowsort label-3800
SELECT DISTINCT + 30 + - CAST ( - 59 AS INTEGER ) * 20 FROM tab0
----
1210

onlyif mysql # aggregate syntax: 
query I rowsort label-3801
SELECT + MIN( DISTINCT 40 ) FROM tab1
----
40

skipif mysql # not compatible
query I rowsort label-3801
SELECT + MIN ( DISTINCT 40 ) FROM tab1
----
40

query II rowsort
SELECT col2, - ( col0 ) AS col0 FROM tab0
----
10
-87
47
-15
99
-97

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE NOT ( NULL IS NULL )
----

query I rowsort
SELECT ( ( col2 ) ) * + col1 FROM tab2
----
1173
3080
3886

query I rowsort
SELECT ALL - col2 FROM tab2 AS cor0 WHERE NOT 26 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 48 * + ( - ( - col0 ) ) - - + 56 AS col1 FROM tab0 AS cor0
----
4232
4712
776

query III rowsort
SELECT * FROM tab0 cor0 WHERE 42 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 * - + col2 * + col2 + 12 * - 24 * - + ( - + 29 ) * col0 FROM tab2
----
-408526
-636928
-878700

onlyif mysql # aggregate syntax: 
query I rowsort label-3809
SELECT 1 + + - COUNT( * ) AS col2 FROM tab2
----
-2

skipif mysql # not compatible
query I rowsort label-3809
SELECT 1 + + - COUNT ( * ) AS col2 FROM tab2
----
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 * - col2 col1, col0 + + col1 FROM tab0 cor0
----
-705
96
-870
108
-9603
98

query I rowsort
SELECT + ( 53 ) + - 71 * col1 / 89 AS col0 FROM tab2 AS cor0 WHERE NOT + 49 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 59 BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col2 * - col0 + - 48 + - - col0 AS col0 FROM tab1 cor0
----
-4893
-4978
-6145

query I rowsort
SELECT - col1 / - 93 * + 2 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3815
SELECT DISTINCT COUNT( * ) col1 FROM tab0 cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3815
SELECT DISTINCT COUNT ( * ) col1 FROM tab0 cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3816
SELECT - 27 * + MAX( - ( + col1 ) ) AS col2 FROM tab1
----
135

skipif mysql # not compatible
query I rowsort label-3816
SELECT - 27 * + MAX ( - ( + col1 ) ) AS col2 FROM tab1
----
135

onlyif mysql # aggregate syntax: 
query II rowsort label-3817
SELECT DISTINCT COUNT( * ) AS col2, + 7 AS col0 FROM tab1
----
3
7

skipif mysql # not compatible
query II rowsort label-3817
SELECT DISTINCT COUNT ( * ) AS col2, + 7 AS col0 FROM tab1
----
3
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3818
SELECT ALL + SUM( ALL - - col0 ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-3818
SELECT ALL + SUM ( ALL - - col0 ) FROM tab0
----
199

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col0 ) * - - 20 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE + - ( - col2 ) >= NULL
----

query I rowsort
SELECT + col2 AS col1 FROM tab0 WHERE NOT NULL NOT BETWEEN + col0 AND 91
----

query I rowsort
SELECT ALL - col2 * + + col0 AS col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

query I rowsort
SELECT DISTINCT + col1 - - 41 FROM tab0 AS cor0 WHERE ( 18 ) BETWEEN NULL AND + 23
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3824
SELECT + MIN( 75 ) AS col2 FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-3824
SELECT + MIN ( 75 ) AS col2 FROM tab1 AS cor0
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-3825
SELECT ALL - - col0 DIV + col1 FROM tab1 AS cor0 WHERE - 50 IS NOT NULL
----
1
17
3

skipif mysql # not compatible
query I rowsort label-3825
SELECT ALL - - col0 / + col1 FROM tab1 AS cor0 WHERE - 50 IS NOT NULL
----
1
17
3

query I rowsort
SELECT - col1 + 73 + - col2 FROM tab2
----
-1
-44
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-3827
SELECT ALL MIN( - 60 ) * - + COUNT( * ) FROM tab1
----
180

skipif mysql # not compatible
query I rowsort label-3827
SELECT ALL MIN ( - 60 ) * - + COUNT ( * ) FROM tab1
----
180

query I rowsort
SELECT + - col2 * 60 + + col1 + - - ( - - col1 ) * + col1 AS col1 FROM tab0 AS cor0
----
-138
-5938
3822

query I rowsort
SELECT - col1 * + - col2 * + col0 FROM tab2 AS cor0
----
197120
291450
53958

onlyif mysql # aggregate syntax: 
query I rowsort label-3830
SELECT - - SUM( 65 ) FROM tab1 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-3830
SELECT - - SUM ( 65 ) FROM tab1 AS cor0
----
195

query I rowsort
SELECT ALL - col2 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3832
SELECT COUNT( * ) - + COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3832
SELECT COUNT ( * ) - + COUNT ( * ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3833
SELECT DISTINCT COUNT( * ) + - 42 FROM tab0
----
-39

skipif mysql # not compatible
query I rowsort label-3833
SELECT DISTINCT COUNT ( * ) + - 42 FROM tab0
----
-39

query III rowsort
SELECT * FROM tab0 WHERE - col1 * - 73 BETWEEN 90 - - 7 - col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + - col2 + ( - - ( - col2 ) ) * + col0 col1 FROM tab2
----
-464
115
520

query I rowsort
SELECT DISTINCT + 68 - 43 + + col2 AS col0 FROM tab1
----
121
84
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3837
SELECT 74 + + + 84 * + MAX( ALL + col1 ) FROM tab2
----
6542

skipif mysql # not compatible
query I rowsort label-3837
SELECT 74 + + + 84 * + MAX ( ALL + col1 ) FROM tab2
----
6542

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3838
SELECT ALL - col1 DIV col1 * + CAST( 13 AS SIGNED ) AS col0 FROM tab1
----
-13
-13
-13

skipif mysql # not compatible
query I rowsort label-3838
SELECT ALL - col1 / col1 * + CAST ( 13 AS INTEGER ) AS col0 FROM tab1
----
-13
-13
-13

query I rowsort
SELECT + col0 * + col2 * 12 + - col2 FROM tab0 AS cor0
----
10430
115137
8413

query I rowsort
SELECT + col0 + col1 + 48 FROM tab2 AS cor0 WHERE ( NULL IS NULL )
----
145
189
190

query I rowsort
SELECT DISTINCT - - 27 - + col2 + - - col0 + - + col2 + - col0 * - + col1 AS col1 FROM tab2 AS cor0
----
2373
4939
5011

onlyif mysql # aggregate syntax: 
query I rowsort label-3842
SELECT MAX( DISTINCT - 77 ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-3842
SELECT MAX ( DISTINCT - 77 ) FROM tab2
----
-77

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3843
SELECT DISTINCT * FROM tab2 WHERE + ( - - 67 ) > + ( CAST( - ( - col0 ) AS DECIMAL ) )
----
46
51
23
64
77
40

skipif mysql # not compatible
query III rowsort label-3843
SELECT DISTINCT * FROM tab2 WHERE + ( - - 67 ) > + ( CAST ( - ( - col0 ) AS REAL ) )
----
46
51
23
64
77
40

query I rowsort
SELECT ALL - - col2 AS col0 FROM tab1 AS cor0 WHERE + col2 >= + col1 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3845
SELECT DISTINCT COUNT( * ) col1 FROM tab2 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-3845
SELECT DISTINCT COUNT ( * ) col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3846
SELECT - 31 * - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3846
SELECT - 31 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + col0 * + 80 AS col1 FROM tab2 AS cor0 WHERE NOT - 88 + 41 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + 15 FROM tab2 AS cor0 WHERE NOT col0 = NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 20 <> col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3850
SELECT + - 53 + COUNT( * ) * MAX( - - ( - - col0 ) ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL <> 72
----
NULL

skipif mysql # not compatible
query I rowsort label-3850
SELECT + - 53 + COUNT ( * ) * MAX ( - - ( - - col0 ) ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL <> 72
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3851
SELECT DISTINCT - 11 AS col0, - COUNT( * ) * + - COUNT( * ) FROM tab1 AS cor0
----
-11
9

skipif mysql # not compatible
query II rowsort label-3851
SELECT DISTINCT - 11 AS col0, - COUNT ( * ) * + - COUNT ( * ) FROM tab1 AS cor0
----
-11
9

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 23 - - col1 NOT BETWEEN - + col1 / - ( col2 ) + - col0 + 9 AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3853
SELECT ALL COUNT( ALL - + col0 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3853
SELECT ALL COUNT ( ALL - + col0 ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3854
SELECT ALL * FROM tab1 WHERE - col2 < - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3854
SELECT ALL * FROM tab1 WHERE - col2 < - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3855
SELECT - ( + + COUNT( * ) ), 38 col1 FROM tab1, tab0 AS cor0
----
-9
38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3855
SELECT - ( + + COUNT ( * ) ), 38 col1 FROM tab1, tab0 AS cor0
----
-9
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3856
SELECT - COUNT( * ) DIV + MAX( + 55 ) DIV - COUNT( * ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3856
SELECT - COUNT ( * ) / + MAX ( + 55 ) / - COUNT ( * ) AS col0 FROM tab1
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3857
SELECT - MAX( ALL - - CAST( NULL AS DECIMAL ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3857
SELECT - MAX ( ALL - - CAST ( NULL AS REAL ) ) AS col0 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 49 col2 FROM tab0
----
49

query III rowsort
SELECT * FROM tab0 WHERE NOT 14 * - - col1 * + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3860
SELECT ALL + ( + CAST( NULL AS SIGNED ) ) + - - col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3860
SELECT ALL + ( + CAST ( NULL AS INTEGER ) ) + - - col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * 46 * - 15 AS col0 FROM tab2
----
-35190
-46230
-53130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3862
SELECT ALL + + col1 AS col0 FROM tab2 WHERE NOT + CAST( - 0 AS SIGNED ) IS NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-3862
SELECT ALL + + col1 AS col0 FROM tab2 WHERE NOT + CAST ( - 0 AS INTEGER ) IS NULL
----
51
67
77

query II rowsort
SELECT + col2, + col0 FROM tab0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - 26 col1 FROM tab0
----
-16
21
73

query I rowsort
SELECT 2 + - ( col1 ) * 79 * + 53 AS col1 FROM tab2
----
-213535
-280527
-322397

query I rowsort
SELECT + + 79 + - + 27 FROM tab2 cor0
----
52
52
52

query I rowsort
SELECT col1 + - - 45 FROM tab0 AS cor0
----
126
46
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3868
SELECT - 98 + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-3868
SELECT - 98 + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-95

query I rowsort
SELECT ALL + + col2 + - - 62 AS col2 FROM tab1 AS cor0
----
121
130
158

query I rowsort
SELECT 64 FROM tab2 WHERE - col0 / - + col0 - - col2 + 67 BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL ( - col0 ) - - - col0 AS col1 FROM tab1
----
-102
-170
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-3872
SELECT MIN( DISTINCT 55 ) AS col1 FROM tab1
----
55

skipif mysql # not compatible
query I rowsort label-3872
SELECT MIN ( DISTINCT 55 ) AS col1 FROM tab1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-3873
SELECT + MIN( ALL - 77 ) FROM tab0
----
-77

skipif mysql # not compatible
query I rowsort label-3873
SELECT + MIN ( ALL - 77 ) FROM tab0
----
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 4 - + col0 col2 FROM tab0
----
-11
-83
-93

query I rowsort
SELECT ALL - - col1 * ( - col2 ) + + + col2 - ( + col0 ) - + 40 + - - col2 FROM tab2 AS cor0
----
-1213
-3104
-3885

query I rowsort
SELECT + + col1 * - ( 29 ) + + col2 FROM tab1 AS cor0
----
-1295
-310
-86

query I rowsort
SELECT - + col2 * - 29 AS col1 FROM tab1 AS cor0
----
1711
1972
2784

query I rowsort
SELECT + col2 * - - 5 AS col0 FROM tab1 AS cor0
----
295
340
480

onlyif mysql # aggregate syntax: 
query I rowsort label-3879
SELECT DISTINCT + ( + COUNT( * ) ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-3879
SELECT DISTINCT + ( + COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9

query I rowsort
SELECT ALL + 56 + + - 48 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

onlyif mysql # aggregate syntax: 
query I rowsort label-3881
SELECT ALL SUM( DISTINCT - ( + col0 ) ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-3881
SELECT ALL SUM ( DISTINCT - ( + col0 ) ) FROM tab0
----
-199

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) <= + + ( 94 )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col1 <> col0
----

query II rowsort
SELECT + + col0, col2 FROM tab2 AS cor0
----
46
23
64
40
75
58

query II rowsort
SELECT + + col0 * + - 69 * - - col0, 93 * col1 * - ( 40 ) AS col2 FROM tab2 AS cor0
----
-146004
-189720
-282624
-286440
-388125
-249240

onlyif mysql # aggregate syntax: 
query I rowsort label-3886
SELECT 16 * - 84 - - COUNT( * ) FROM tab1 AS cor0
----
-1341

skipif mysql # not compatible
query I rowsort label-3886
SELECT 16 * - 84 - - COUNT ( * ) FROM tab1 AS cor0
----
-1341

query I rowsort
SELECT col2 * - - 30 FROM tab1 AS cor0
----
1770
2040
2880

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3888
SELECT CAST( NULL AS DECIMAL ) AS col0, - ( - + ( + - 12 ) ) AS col0 FROM tab0
----
NULL
-12
NULL
-12
NULL
-12

skipif mysql # not compatible
query II rowsort label-3888
SELECT CAST ( NULL AS REAL ) AS col0, - ( - + ( + - 12 ) ) AS col0 FROM tab0
----
NULL
-12
NULL
-12
NULL
-12

query I rowsort
SELECT ALL + 2 * - 61 FROM tab1
----
-122
-122
-122

onlyif mysql # DIV for integer division: 
query I rowsort label-3890
SELECT col0 * 36 DIV - - col0 AS col2 FROM tab2
----
36
36
36

skipif mysql # not compatible
query I rowsort label-3890
SELECT col0 * 36 / - - col0 AS col2 FROM tab2
----
36
36
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3891
SELECT 95 * - + ( - ( MIN( + col0 ) ) ) col1 FROM tab0
----
1425

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3891
SELECT 95 * - + ( - ( MIN ( + col0 ) ) ) col1 FROM tab0
----
1425

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT ( ( NOT ( NOT ( NULL ) <> - 88 + - 53 * 96 ) ) ) )
----

query I rowsort
SELECT ALL - col1 * + ( - 79 ) + col2 + - + ( 29 ) * - col0 * + + col2 AS col1 FROM tab2 AS cor0
----
131501
34734
80363

onlyif mysql # aggregate syntax: 
query I rowsort label-3894
SELECT ALL + - SUM( + 37 ) FROM tab1 AS cor0
----
-111

skipif mysql # not compatible
query I rowsort label-3894
SELECT ALL + - SUM ( + 37 ) FROM tab1 AS cor0
----
-111

query III rowsort
SELECT * FROM tab2 WHERE - - col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3896
SELECT - MAX( ALL - + 28 ) AS col2 FROM tab0 cor0
----
28

skipif mysql # not compatible
query I rowsort label-3896
SELECT - MAX ( ALL - + 28 ) AS col2 FROM tab0 cor0
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-3897
SELECT - + 7 DIV - col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3897
SELECT - + 7 / - col0 FROM tab2 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3898
SELECT 60 * - + MIN( DISTINCT - - col1 ) FROM tab2 AS cor0
----
-3060

skipif mysql # not compatible
query I rowsort label-3898
SELECT 60 * - + MIN ( DISTINCT - - col1 ) FROM tab2 AS cor0
----
-3060

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 * + ( + col1 ) < 37 * - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 3 + + ( col2 ) col0 FROM tab2 AS cor0
----
26
43
61

query I rowsort
SELECT + col0 - - 58 AS col1 FROM tab1 AS cor0
----
109
143
149

query I rowsort
SELECT DISTINCT - - 12 * - col2 * + col0 AS col2 FROM tab2 AS cor0
----
-12696
-30720
-52200

onlyif mysql # aggregate syntax: 
query I rowsort label-3903
SELECT DISTINCT - - COUNT( * ) + 27 + SUM( DISTINCT + col1 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-3903
SELECT DISTINCT - - COUNT ( * ) + 27 + SUM ( DISTINCT + col1 ) FROM tab1 AS cor0
----
96

query I rowsort
SELECT ALL col2 + - - 6 FROM tab1 AS cor0
----
102
65
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - - col1 col2 FROM tab1 AS cor0
----
110
115
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3906
SELECT ALL + + COUNT( * ) FROM tab2 WHERE + 2 NOT BETWEEN NULL AND col2
----
0

skipif mysql # not compatible
query I rowsort label-3906
SELECT ALL + + COUNT ( * ) FROM tab2 WHERE + 2 NOT BETWEEN NULL AND col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3907
SELECT ALL + COUNT( * ) + + COUNT( * ) FROM tab1 WHERE + + col1 BETWEEN + + 69 * col0 AND col0
----
0

skipif mysql # not compatible
query I rowsort label-3907
SELECT ALL + COUNT ( * ) + + COUNT ( * ) FROM tab1 WHERE + + col1 BETWEEN + + 69 * col0 AND col0
----
0

query I rowsort
SELECT DISTINCT + 51 AS col2 FROM tab1, tab2 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3909
SELECT ALL 24 - + + 37 - + COUNT( * ) + - 32 FROM tab1
----
-48

skipif mysql # not compatible
query I rowsort label-3909
SELECT ALL 24 - + + 37 - + COUNT ( * ) + - 32 FROM tab1
----
-48

query I rowsort
SELECT + 37 * - 53 * + 16 FROM tab2 AS cor0
----
-31376
-31376
-31376

query I rowsort
SELECT ALL - - col0 * - - 53 FROM tab2 AS cor0
----
2438
3392
3975

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN + 66 - 81 * 80 AND - col2 * 8 - + ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3913
SELECT ALL - MIN( DISTINCT col1 ) - - 34 AS col1 FROM tab1
----
29

skipif mysql # not compatible
query I rowsort label-3913
SELECT ALL - MIN ( DISTINCT col1 ) - - 34 AS col1 FROM tab1
----
29

query I rowsort
SELECT ALL 25 + + 85 FROM tab0
----
110
110
110

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL IN ( 20 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) >= col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col2 <> col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - ( col2 ) + - ( col0 ) FROM tab2
----
-104
-133
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 3 ) col2 FROM tab1
----
3
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3920
SELECT ALL COUNT( * ) + + 73 AS col2 FROM tab2
----
76

skipif mysql # not compatible
query I rowsort label-3920
SELECT ALL COUNT ( * ) + + 73 AS col2 FROM tab2
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3921
SELECT ALL * FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) BETWEEN NULL AND col2 * + 68
----

skipif mysql # not compatible
query III rowsort label-3921
SELECT ALL * FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) BETWEEN NULL AND col2 * + 68
----

query I rowsort
SELECT + col0 AS col1 FROM tab1 WHERE NULL NOT BETWEEN ( ( col0 ) + 57 ) AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3923
SELECT - CAST( NULL AS DECIMAL ) / - COUNT( * ) FROM tab2 WHERE NOT - col1 + col1 IN ( + col2 * + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3923
SELECT - CAST ( NULL AS REAL ) / - COUNT ( * ) FROM tab2 WHERE NOT - col1 + col1 IN ( + col2 * + col1 )
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE ( + col1 + + col2 ) <= ( - 85 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + 48 - - col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3926
SELECT SUM( + 60 ) FROM tab1
----
180

skipif mysql # not compatible
query I rowsort label-3926
SELECT SUM ( + 60 ) FROM tab1
----
180

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 * - 66 + + 49 / 56 IS NOT NULL
----

query I rowsort
SELECT ALL col1 AS col0 FROM tab1 WHERE NOT col1 IS NULL
----
14
47
5

query I rowsort
SELECT ALL + 50 AS col1 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT 10 - col1 FROM tab1
----
-37
-4
5

query I rowsort
SELECT ALL col1 * + 93 FROM tab1
----
1302
4371
465

query I rowsort
SELECT ALL - ( + col1 ) - col0 FROM tab2
----
-141
-142
-97

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IN ( + ( + 6 ) * 2 )
----

query I rowsort
SELECT + 43 * - col1 FROM tab1
----
-2021
-215
-602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 6 - col0 col1 FROM tab2
----
-40
-58
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - ( + 21 ) col2 FROM tab2
----
1218
483
840

onlyif mysql # aggregate syntax: 
query I rowsort label-3937
SELECT ALL SUM( + col1 ) AS col1 FROM tab0 WHERE col2 * col2 <= - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-3937
SELECT ALL SUM ( + col1 ) AS col1 FROM tab0 WHERE col2 * col2 <= - 22
----
NULL

query I rowsort
SELECT - 26 AS col1 FROM tab0 WHERE NOT - 47 IS NULL
----
-26
-26
-26

query I rowsort
SELECT DISTINCT col2 * 58 FROM tab0 WHERE 43 IS NULL
----

query I rowsort
SELECT DISTINCT 53 AS col1 FROM tab0 WHERE ( - 72 * col2 ) <> ( - 34 + + col1 )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3941
SELECT DISTINCT + 79 + + COUNT( * ) col0 FROM tab1 WHERE - 55 NOT BETWEEN col2 AND col2
----
82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3941
SELECT DISTINCT + 79 + + COUNT ( * ) col0 FROM tab1 WHERE - 55 NOT BETWEEN col2 AND col2
----
82

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - 51 ) = + col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( 77 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL ( 11 ) + + col2 AS col0 FROM tab2 AS cor0
----
34
51
69

query I rowsort
SELECT DISTINCT - 17 * col1 + col0 FROM tab1 cor0
----
-187
-708
0

query I rowsort
SELECT DISTINCT 30 + + col1 FROM tab0 AS cor0
----
111
31
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3947
SELECT col1 - 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-3947
SELECT col1 - CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3948
SELECT 25 + MIN( ( 88 ) + - col0 ) FROM tab1
----
22

skipif mysql # not compatible
query I rowsort label-3948
SELECT 25 + MIN ( ( 88 ) + - col0 ) FROM tab1
----
22

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3949
SELECT ALL col0 * - CAST( NULL AS DECIMAL ) FROM tab2 WHERE col1 >= + col1 + col0 * + 23
----

skipif mysql # not compatible
query I rowsort label-3949
SELECT ALL col0 * - CAST ( NULL AS REAL ) FROM tab2 WHERE col1 >= + col1 + col0 * + 23
----

query I rowsort
SELECT ALL - - col0 * 21 + - col2 FROM tab1 cor0
----
1726
1843
975

query I rowsort
SELECT + ( col2 ) + 77 AS col0 FROM tab2 AS cor0 WHERE - 39 IS NULL
----

query I rowsort
SELECT DISTINCT 16 + col0 AS col0 FROM tab2 AS cor0
----
62
80
91

query I rowsort
SELECT - - 84 AS col2 FROM tab2 AS cor0
----
84
84
84

onlyif mysql # DIV for integer division: 
query I rowsort label-3954
SELECT - col1 DIV - col0 col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3954
SELECT - col1 / - col0 col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3955
SELECT ALL + MIN( ALL - col1 ) AS col0 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-3955
SELECT ALL + MIN ( ALL - col1 ) AS col0 FROM tab1
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-3956
SELECT ALL col1 * col0 DIV col0 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-3956
SELECT ALL col1 * col0 / col0 FROM tab2
----
51
67
77

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 NOT BETWEEN NULL AND col2 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3958
SELECT ALL SUM( + + 78 ) FROM tab1
----
234

skipif mysql # not compatible
query I rowsort label-3958
SELECT ALL SUM ( + + 78 ) FROM tab1
----
234

query I rowsort
SELECT ALL - col0 * + 74 AS col1 FROM tab2 WHERE NULL <= ( + 3 * + 69 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3960
SELECT * FROM tab1 WHERE NOT ( col0 ) NOT BETWEEN - col1 * ( 25 * - 78 ) AND ( + ( + CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-3960
SELECT * FROM tab1 WHERE NOT ( col0 ) NOT BETWEEN - col1 * ( 25 * - 78 ) AND ( + ( + CAST ( NULL AS INTEGER ) ) )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 3 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3962
SELECT ALL - ( - MIN( ALL + 21 ) ) * - 16 FROM tab2 AS cor0
----
-336

skipif mysql # not compatible
query I rowsort label-3962
SELECT ALL - ( - MIN ( ALL + 21 ) ) * - 16 FROM tab2 AS cor0
----
-336

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3963
SELECT ALL - col1 col2 FROM tab1 AS cor0 WHERE NOT - col0 NOT BETWEEN ( col0 + col0 ) AND + CAST( NULL AS SIGNED ) + 93
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3963
SELECT ALL - col1 col2 FROM tab1 AS cor0 WHERE NOT - col0 NOT BETWEEN ( col0 + col0 ) AND + CAST ( NULL AS INTEGER ) + 93
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + 49 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + 23 IS NOT NULL
----

query I rowsort
SELECT ALL + 52 * + 17 FROM tab1 cor0
----
884
884
884

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 96 = ( NULL )
----

query I rowsort
SELECT ALL + ( + + col2 ) AS col1 FROM tab2
----
23
40
58

query I rowsort
SELECT DISTINCT + col0 * + 31 FROM tab0
----
2697
3007
465

query I rowsort
SELECT - 75 * 57 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ebc376c74bc416d084001496f430c52c

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3972
SELECT + COUNT( * ) DIV + 66 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3972
SELECT + COUNT ( * ) / + 66 AS col0 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col0 ) col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( + col2 ) AND + 5
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3974
SELECT ALL + col1 DIV - 79 + + ( 50 ) FROM tab1 AS cor0
----
50
50
50

skipif mysql # not compatible
query I rowsort label-3974
SELECT ALL + col1 / - 79 + + ( 50 ) FROM tab1 AS cor0
----
50
50
50

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3975
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - - CAST( NULL AS SIGNED ) ) + 6 NOT BETWEEN - col0 AND col2
----

skipif mysql # not compatible
query III rowsort label-3975
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - - CAST ( NULL AS INTEGER ) ) + 6 NOT BETWEEN - col0 AND col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3976
SELECT DISTINCT + + col1 * 44 DIV 19 col2 FROM tab1 cor0
----
108
11
32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3976
SELECT DISTINCT + + col1 * 44 / 19 col2 FROM tab1 cor0
----
108
11
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3977
SELECT DISTINCT - - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE 90 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3977
SELECT DISTINCT - - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE 90 IS NULL
----
0

query I rowsort
SELECT col1 + - 28 AS col1 FROM tab0 AS cor0 WHERE NOT ( - col0 ) IS NULL
----
-27
-7
53

query I rowsort
SELECT ALL + col1 * col1 * + 16 + 62 FROM tab0 AS cor0
----
105038
7118
78

onlyif mysql # DIV for integer division: 
query I rowsort label-3980
SELECT - col0 DIV - col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3980
SELECT - col0 / - col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
1
1
1

query I rowsort
SELECT DISTINCT AVG ( DISTINCT col2 ) FROM tab1 AS cor0 WHERE NULL NOT IN ( col1 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col1 ) col1 FROM tab0 WHERE - col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 73 * + col2 col2 FROM tab1
----
4307
4964
7008

query I rowsort
SELECT ALL - col1 * 67 + 57 + 17 * col2 FROM tab0
----
-1180
-4571
1673

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + 29 col1 FROM tab1
----
1479
2465
2639

onlyif mysql # aggregate syntax: 
query I rowsort label-3986
SELECT ALL + 30 * COUNT( * ) FROM tab1
----
90

skipif mysql # not compatible
query I rowsort label-3986
SELECT ALL + 30 * COUNT ( * ) FROM tab1
----
90

query I rowsort
SELECT DISTINCT - col2 * + + col0 AS col0 FROM tab0
----
-705
-870
-9603

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 79 + 34 + + - col1 IS NULL
----

query I rowsort
SELECT 17 + - col0 AS col0 FROM tab2 AS cor0
----
-29
-47
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3990
SELECT ALL + + COUNT( * ) col1 FROM tab2 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3990
SELECT ALL + + COUNT ( * ) col1 FROM tab2 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE 80 * + + 88 <> - col2 + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3992
SELECT + - col2 + CAST( + ( - 36 ) AS SIGNED ) + + col0 * + col2 FROM tab0 cor0
----
622
824
9468

skipif mysql # not compatible
query I rowsort label-3992
SELECT + - col2 + CAST ( + ( - 36 ) AS INTEGER ) + + col0 * + col2 FROM tab0 cor0
----
622
824
9468

query I rowsort
SELECT ALL col0 * + col0 + ( + 29 ) FROM tab1 AS cor0
----
2630
7254
8310

query I rowsort
SELECT DISTINCT col0 + - ( - + col0 ) FROM tab2
----
128
150
92

query I rowsort
SELECT ALL - 2 + - + col2 FROM tab1
----
-61
-70
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-3996
SELECT ALL + 20 - col0 DIV col2 DIV - - col2 * + 64 AS col1 FROM tab0
----
20
20
20

skipif mysql # not compatible
query I rowsort label-3996
SELECT ALL + 20 - col0 / col2 / - - col2 * + 64 AS col1 FROM tab0
----
20
20
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3997
SELECT SUM( - col2 ) AS col2 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-3997
SELECT SUM ( - col2 ) AS col2 FROM tab1
----
-223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3998
SELECT + - 67 - + - col0 - + CAST( + - col2 AS SIGNED ) * + 57 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3998
SELECT + - 67 - + - col0 - + CAST ( + - col2 AS INTEGER ) * + 57 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3999
SELECT 8 - - + col0 - - col1 DIV 92 AS col0 FROM tab1 AS cor0
----
59
93
99

skipif mysql # not compatible
query I rowsort label-3999
SELECT 8 - - + col0 - - col1 / 92 AS col0 FROM tab1 AS cor0
----
59
93
99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 IS NOT NULL AND ( + col0 * col0 ) <> 50
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4001
SELECT DISTINCT + + 0 / + 42 * + + SUM( CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4001
SELECT DISTINCT + + 0 / + 42 * + + SUM ( CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 9 + - 40 * + - col0 + - col2 * col0 BETWEEN NULL AND - col0 AND NOT + col1 IN ( 19 * col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4003
SELECT - - ( - AVG ( - CAST( 70 AS DECIMAL ) ) ) + + COUNT( * ) * 89 AS col0 FROM tab1 AS cor0 WHERE col2 + + + col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4003
SELECT - - ( - AVG ( - CAST ( 70 AS REAL ) ) ) + + COUNT ( * ) * 89 AS col0 FROM tab1 AS cor0 WHERE col2 + + + col0 IS NULL
----
NULL

query II rowsort
SELECT DISTINCT - col0 AS col0, + col2 * col0 FROM tab2 AS cor0
----
-46
1058
-64
2560
-75
4350

query II rowsort
SELECT ALL col2 AS col2, + col2 AS col2 FROM tab0
----
10
10
47
47
99
99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT ( NOT ( NOT ( col0 ) > ( + ( - col2 ) * - 59 ) ) ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4007
SELECT MIN( 43 ) FROM tab1
----
43

skipif mysql # not compatible
query I rowsort label-4007
SELECT MIN ( 43 ) FROM tab1
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-4008
SELECT COUNT( * ) AS col1, 79 AS col0 FROM tab2
----
3
79

skipif mysql # not compatible
query II rowsort label-4008
SELECT COUNT ( * ) AS col1, 79 AS col0 FROM tab2
----
3
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4009
SELECT + MAX( - ( + - col2 ) ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-4009
SELECT + MAX ( - ( + - col2 ) ) FROM tab0
----
99

query I rowsort
SELECT ALL + col2 AS col2 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col2 * + - 4 AS col1 FROM tab2 AS cor0
----
160
232
92

query II rowsort
SELECT + - 47, 94 AS col2 FROM tab2 cor0
----
-47
94
-47
94
-47
94

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN - col1 AND ( 40 - + col2 * + - 12 * + col1 / col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4014
SELECT - + SUM( DISTINCT col0 ) AS col1 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-4014
SELECT - + SUM ( DISTINCT col0 ) AS col1 FROM tab1 AS cor0
----
-227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 39 * + - 68 + + col0 col0 FROM tab1 AS cor0
----
-2561
-2567
-2601

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col1 NOT BETWEEN - col0 AND ( NULL )
----

query I rowsort
SELECT ALL - 50 + + 11 + + col1 FROM tab1 AS cor0
----
-25
-34
8

query I rowsort
SELECT DISTINCT + AVG ( 9 ) AS col2 FROM tab0 AS cor0 WHERE NULL BETWEEN - col2 / + 62 * + + 42 / + 37 / + + 21 AND + col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4019
SELECT DISTINCT SUM( ALL - col2 ) + 11, + COUNT( + col2 ) col0 FROM tab0 AS cor0
----
-145
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4019
SELECT DISTINCT SUM ( ALL - col2 ) + 11, + COUNT ( + col2 ) col0 FROM tab0 AS cor0
----
-145
3

query I rowsort
SELECT 82 + ( - 99 ) * - col0 AS col1 FROM tab2
----
4636
6418
7507

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - 78 ) = col2 * - 76 / 61
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4022
SELECT * FROM tab1 WHERE + 84 * - col1 * - + col2 + - CAST( NULL AS SIGNED ) > - 60
----

skipif mysql # not compatible
query III rowsort label-4022
SELECT * FROM tab1 WHERE + 84 * - col1 * - + col2 + - CAST ( NULL AS INTEGER ) > - 60
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4024
SELECT + CAST( + + col2 AS SIGNED ) DIV 6 * - col0 col2 FROM tab1
----
-1001
-765
-816

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4024
SELECT + CAST ( + + col2 AS INTEGER ) / 6 * - col0 col2 FROM tab1
----
-1001
-765
-816

query III rowsort
SELECT * FROM tab1 WHERE - + 28 < + 55
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4026
SELECT + SUM( DISTINCT CAST( - 16 AS SIGNED ) ) AS col0 FROM tab2
----
-16

skipif mysql # not compatible
query I rowsort label-4026
SELECT + SUM ( DISTINCT CAST ( - 16 AS INTEGER ) ) AS col0 FROM tab2
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4027
SELECT + col1 - - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4027
SELECT + col1 - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4028
SELECT - - COUNT( * ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4028
SELECT - - COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4029
SELECT ALL 24 - COUNT( * ) AS col2 FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-4029
SELECT ALL 24 - COUNT ( * ) AS col2 FROM tab2
----
21

query I rowsort
SELECT ALL - 27 AS col0 FROM tab0 cor0
----
-27
-27
-27

query I rowsort
SELECT ALL - + ( + 1 ) FROM tab1 cor0
----
-1
-1
-1

query I rowsort
SELECT + - col1 * - 26 FROM tab1 AS cor0
----
1222
130
364

query I rowsort
SELECT col2 * + 76 + - ( + 72 ) FROM tab1 AS cor0
----
4412
5096
7224

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4034
SELECT 61 DIV CAST( col1 AS SIGNED ) AS col0 FROM tab1
----
1
12
4

skipif mysql # not compatible
query I rowsort label-4034
SELECT 61 / CAST ( col1 AS INTEGER ) AS col0 FROM tab1
----
1
12
4

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab0 WHERE NOT - col2 + + 84 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4036
SELECT - 18, col1 DIV + col1 + - col0 DIV + col1 AS col2 FROM tab1
----
-18
-16
-18
-2
-18
0

skipif mysql # not compatible
query II rowsort label-4036
SELECT - 18, col1 / + col1 + - col0 / + col1 AS col2 FROM tab1
----
-18
-16
-18
-2
-18
0

query I rowsort
SELECT col1 FROM tab2 WHERE NOT - + 53 * + 1 IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4038
SELECT + MAX( 87 ) AS col0 FROM tab2 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-4038
SELECT + MAX ( 87 ) AS col0 FROM tab2 AS cor0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4039
SELECT DISTINCT + COUNT( ALL + - col0 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4039
SELECT DISTINCT + COUNT ( ALL + - col0 ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4040
SELECT DISTINCT 22 * COUNT( * ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-4040
SELECT DISTINCT 22 * COUNT ( * ) FROM tab1 AS cor0
----
66

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 20 NOT BETWEEN 90 * + ( + col1 ) AND + 80
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 58 * - - col1 * - 50 - 78 > + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 38 FROM tab0 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4044
SELECT DISTINCT - COUNT( * ), COUNT( ALL + 17 ) DIV - 75 + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-4044
SELECT DISTINCT - COUNT ( * ), COUNT ( ALL + 17 ) / - 75 + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-3
3

query I rowsort
SELECT ALL col2 * - 50 AS col2 FROM tab0
----
-2350
-4950
-500

query I rowsort
SELECT ALL - - 93 AS col1 FROM tab1 AS cor0
----
93
93
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4047
SELECT COUNT( * ) * + COUNT( * ) + - 53 FROM tab0 cor0
----
-44

skipif mysql # not compatible
query I rowsort label-4047
SELECT COUNT ( * ) * + COUNT ( * ) + - 53 FROM tab0 cor0
----
-44

query III rowsort
SELECT col0 AS col1, col0, + ( + + col0 ) AS col0 FROM tab1 AS cor0
----
9 values hashing to a69a1c25366f2e5dbc2b64a2b141dde4

query I rowsort
SELECT ALL + col2 + - + 54 AS col0 FROM tab1 AS cor0
----
14
42
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4050
SELECT + 40, + CAST( col2 AS SIGNED ) * + col2 - - - col1 + - - col1 * 63 AS col1 FROM tab0 AS cor0
----
40
1402
40
7231
40
9863

skipif mysql # not compatible
query II rowsort label-4050
SELECT + 40, + CAST ( col2 AS INTEGER ) * + col2 - - - col1 + - - col1 * 63 AS col1 FROM tab0 AS cor0
----
40
1402
40
7231
40
9863

onlyif mysql # aggregate syntax: 
query I rowsort label-4051
SELECT DISTINCT COUNT( ( - col1 ) ) + - ( - COUNT( * ) ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4051
SELECT DISTINCT COUNT ( ( - col1 ) ) + - ( - COUNT ( * ) ) FROM tab0 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4052
SELECT DISTINCT + COUNT( * ) + - - 78 AS col0 FROM tab2
----
81

skipif mysql # not compatible
query I rowsort label-4052
SELECT DISTINCT + COUNT ( * ) + - - 78 AS col0 FROM tab2
----
81

query II rowsort
SELECT + col2 + + col1 + + 4, col1 FROM tab2
----
121
77
129
67
78
51

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IS NULL OR NOT NULL IS NULL
----

query II rowsort
SELECT ALL - 49 + + 89 AS col1, + 68 FROM tab2 AS cor0
----
40
68
40
68
40
68

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4056
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE NULL BETWEEN 69 + CAST( + - col2 AS DECIMAL ) AND - 23
----
0

skipif mysql # not compatible
query I rowsort label-4056
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NULL BETWEEN 69 + CAST ( + - col2 AS REAL ) AND - 23
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4057
SELECT ALL col0 DIV col1 AS col0 FROM tab1 cor0 WHERE col0 IS NOT NULL
----
1
17
3

skipif mysql # not compatible
query I rowsort label-4057
SELECT ALL col0 / col1 AS col0 FROM tab1 cor0 WHERE col0 IS NOT NULL
----
1
17
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 < + - 25 + + - 34 * - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col1 + + col1 * - ( + col2 ) + - col2 - - col0 * + + col0 - - - 31 FROM tab1 AS cor0
----
1144
5033
6845

onlyif mysql # DIV for integer division: 
query I rowsort label-4060
SELECT - 32 DIV + 92 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4060
SELECT - 32 / + 92 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4061
SELECT ALL COUNT( * ) * + COUNT( * ) - + COUNT( * ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-4061
SELECT ALL COUNT ( * ) * + COUNT ( * ) - + COUNT ( * ) FROM tab2
----
6

query I rowsort
SELECT DISTINCT + 68 * + 55 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
3740

query I rowsort
SELECT ALL + 48 * - col1 FROM tab2 AS cor0
----
-2448
-3216
-3696

onlyif mysql # aggregate syntax: 
query I rowsort label-4064
SELECT ALL + MIN( - 45 ) FROM tab0 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-4064
SELECT ALL + MIN ( - 45 ) FROM tab0 AS cor0
----
-45

query I rowsort
SELECT + col2 * - - 25 FROM tab1 AS cor0
----
1475
1700
2400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4066
SELECT - - ( CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4066
SELECT - - ( CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL < NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4068
SELECT DISTINCT + - COUNT( DISTINCT - col2 ) + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT NULL < col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4068
SELECT DISTINCT + - COUNT ( DISTINCT - col2 ) + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT NULL < col2
----
NULL

query I rowsort
SELECT + col2 / + col0 * - + ( + 6 ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + col0 AND - - col1
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 < 69
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4071
SELECT DISTINCT COUNT( * ) * + 23 AS col1 FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-4071
SELECT DISTINCT COUNT ( * ) * + 23 AS col1 FROM tab2 AS cor0
----
69

query I rowsort
SELECT col2 * - 49 AS col2 FROM tab1 AS cor0 WHERE NOT - 68 + + 70 IS NULL
----
-2891
-3332
-4704

query I rowsort
SELECT - col2 FROM tab2 WHERE NOT - 51 IN ( - 9, - col0 )
----
-23
-40
-58

onlyif mysql # DIV for integer division: 
query II rowsort label-4074
SELECT col0 DIV + 45 AS col2, - col0 AS col2 FROM tab1
----
1
-51
1
-85
2
-91

skipif mysql # not compatible
query II rowsort label-4074
SELECT col0 / + 45 AS col2, - col0 AS col2 FROM tab1
----
1
-51
1
-85
2
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4075
SELECT DISTINCT COUNT( ALL col2 ) FROM tab2 WHERE + + col0 > ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4075
SELECT DISTINCT COUNT ( ALL col2 ) FROM tab2 WHERE + + col0 > ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4076
SELECT - ( + MIN( DISTINCT + - 25 ) ) FROM tab2
----
25

skipif mysql # not compatible
query I rowsort label-4076
SELECT - ( + MIN ( DISTINCT + - 25 ) ) FROM tab2
----
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 83 col0 FROM tab1
----
83
83
83

query I rowsort
SELECT DISTINCT + col1 * + 79 AS col0 FROM tab0 AS cor0
----
1659
6399
79

query I rowsort
SELECT - 23 * 80 * - col2 FROM tab2 AS cor0
----
106720
42320
73600

query I rowsort
SELECT ALL + - ( + 54 ) * + col1 AS col0 FROM tab2 cor0
----
-2754
-3618
-4158

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4081
SELECT DISTINCT - CAST( - col2 AS SIGNED ) + - col1 FROM tab2 AS cor0
----
-28
-37
-9

skipif mysql # not compatible
query I rowsort label-4081
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) + - col1 FROM tab2 AS cor0
----
-28
-37
-9

query III rowsort
SELECT * FROM tab2 WHERE NOT 55 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4083
SELECT - 2 AS col1, CAST( NULL AS SIGNED ) + - + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-2
NULL

skipif mysql # not compatible
query II rowsort label-4083
SELECT - 2 AS col1, CAST ( NULL AS INTEGER ) + - + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-2
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 37 + col0 * - + col1 col0 FROM tab0 AS cor0
----
-1178
-1790
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4085
SELECT - CAST( + 40 AS SIGNED ) + + 84 * + COUNT( * ) FROM tab0 AS cor0 WHERE col0 IN ( - ( col2 ) + - - col2 * + - 32 * - 43 * col2, - 32, + 45, - 7 )
----
-40

skipif mysql # not compatible
query I rowsort label-4085
SELECT - CAST ( + 40 AS INTEGER ) + + 84 * + COUNT ( * ) FROM tab0 AS cor0 WHERE col0 IN ( - ( col2 ) + - - col2 * + - 32 * - 43 * col2, - 32, + 45, - 7 )
----
-40

query I rowsort
SELECT DISTINCT - 26 + - 29 FROM tab2 AS cor0
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4087
SELECT CAST( NULL AS SIGNED ) + - 57 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4087
SELECT CAST ( NULL AS INTEGER ) + - 57 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + 11, + col0 AS col2 FROM tab0 AS cor0
----
11
15
11
87
11
97

query I rowsort
SELECT - 55 + + 34 AS col1 FROM tab2 AS cor0
----
-21
-21
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4090
SELECT ALL COUNT( * ) FROM tab1 AS cor0 WHERE ( + CAST( NULL AS SIGNED ) ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4090
SELECT ALL COUNT ( * ) FROM tab1 AS cor0 WHERE ( + CAST ( NULL AS INTEGER ) ) IS NULL
----
3

query I rowsort
SELECT ALL + col1 + - + 62 - - - col1 * - - col0 FROM tab2 AS cor0
----
-2357
-4913
-5020

query II rowsort
SELECT + 62 * - col1 AS col2, - 59 + - col2 AS col1 FROM tab2
----
-3162
-82
-4154
-117
-4774
-99

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4093
SELECT + CAST( NULL AS DECIMAL ), ( col0 ) + + 79 AS col0 FROM tab1
----
NULL
130
NULL
164
NULL
170

skipif mysql # not compatible
query II rowsort label-4093
SELECT + CAST ( NULL AS REAL ), ( col0 ) + + 79 AS col0 FROM tab1
----
NULL
130
NULL
164
NULL
170

query II rowsort
SELECT + col2 * + 55, 91 * - - col2 AS col0 FROM tab0
----
2585
4277
5445
9009
550
910

onlyif mysql # aggregate syntax: 
query I rowsort label-4095
SELECT DISTINCT - MIN( DISTINCT col0 ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-4095
SELECT DISTINCT - MIN ( DISTINCT col0 ) FROM tab0 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-4096
SELECT ALL + COUNT( * ), SUM( col2 ) AS col1 FROM tab2 AS cor0
----
3
121

skipif mysql # not compatible
query II rowsort label-4096
SELECT ALL + COUNT ( * ), SUM ( col2 ) AS col1 FROM tab2 AS cor0
----
3
121

query I rowsort
SELECT + + col2 - + col2 * col2 + - col0 AS col2 FROM tab1 AS cor0
----
-3507
-4647
-9171

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + ( - 48 ) IS NULL
----

query II rowsort
SELECT - 53, 63 AS col0 FROM tab2 AS cor0 WHERE ( - col1 ) IS NULL
----

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE ( + 54 IS NULL )
----

query I rowsort
SELECT DISTINCT col0 * + 78 - col2 AS col0 FROM tab1 AS cor0
----
3882
6571
7030

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN ( + - 96 ) AND - col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4103
SELECT DISTINCT - 22 * - SUM( ALL - 39 ) * + COUNT( * ) DIV + + COUNT( * ) FROM tab0 cor0
----
-2574

skipif mysql # not compatible
query I rowsort label-4103
SELECT DISTINCT - 22 * - SUM ( ALL - 39 ) * + COUNT ( * ) / + + COUNT ( * ) FROM tab0 cor0
----
-2574

onlyif mysql # aggregate syntax: 
query I rowsort label-4104
SELECT COUNT( ALL + col2 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4104
SELECT COUNT ( ALL + col2 ) FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4105
SELECT ALL + - COUNT( * ) * + + COUNT( * ) * + 75 FROM tab2 AS cor0
----
-675

skipif mysql # not compatible
query I rowsort label-4105
SELECT ALL + - COUNT ( * ) * + + COUNT ( * ) * + 75 FROM tab2 AS cor0
----
-675

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4106
SELECT ALL - - CAST( - 8 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-8
-8
-8

skipif mysql # not compatible
query I rowsort label-4106
SELECT ALL - - CAST ( - 8 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-8
-8
-8

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> + - 73
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4108
SELECT ALL + + 36 * - ( + + 55 ) * COUNT( * ) + - - COUNT( * ) FROM tab1 AS cor0
----
-5937

skipif mysql # not compatible
query I rowsort label-4108
SELECT ALL + + 36 * - ( + + 55 ) * COUNT ( * ) + - - COUNT ( * ) FROM tab1 AS cor0
----
-5937

query II rowsort
SELECT 71 * col1 AS col1, 55 AS col1 FROM tab0 AS cor0
----
1491
55
5751
55
71
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4110
SELECT DISTINCT - 98 * ( + COUNT( * ) ) FROM tab1 AS cor0
----
-294

skipif mysql # not compatible
query I rowsort label-4110
SELECT DISTINCT - 98 * ( + COUNT ( * ) ) FROM tab1 AS cor0
----
-294

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 49 * 65 col2 FROM tab1 AS cor0
----
3185
3185
3185

onlyif mysql # aggregate syntax: 
query I rowsort label-4112
SELECT ALL + + SUM( col2 ) AS col0 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-4112
SELECT ALL + + SUM ( col2 ) AS col0 FROM tab0 AS cor0
----
156

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4113
SELECT - 48 DIV MAX( + - col2 ) AS col0 FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-4113
SELECT - 48 / MAX ( + - col2 ) AS col0 FROM tab0
----
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 AS col0, col1 * + col0 col1 FROM tab2
----
23
2346
40
4928
58
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-4115
SELECT ALL + SUM( DISTINCT 2 ) AS col1 FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-4115
SELECT ALL + SUM ( DISTINCT 2 ) AS col1 FROM tab0
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-4116
SELECT ALL - COUNT( * ), 32 AS col0 FROM tab2
----
-3
32

skipif mysql # not compatible
query II rowsort label-4116
SELECT ALL - COUNT ( * ), 32 AS col0 FROM tab2
----
-3
32

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 + - col2 IS NULL
----

query I rowsort
SELECT + 81 * + col0 AS col2 FROM tab1
----
4131
6885
7371

onlyif mysql # aggregate syntax: 
query I rowsort label-4119
SELECT DISTINCT COUNT( * ) * - - COUNT( * ) col0 FROM tab1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4119
SELECT DISTINCT COUNT ( * ) * - - COUNT ( * ) col0 FROM tab1
----
9

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE 80 > + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4121
SELECT + COUNT( * ) + - + CAST( NULL AS DECIMAL ) * + 50 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4121
SELECT + COUNT ( * ) + - + CAST ( NULL AS REAL ) * + 50 AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4122
SELECT DISTINCT - SUM( DISTINCT - col0 ) + 92 FROM tab1
----
319

skipif mysql # not compatible
query I rowsort label-4122
SELECT DISTINCT - SUM ( DISTINCT - col0 ) + 92 FROM tab1
----
319

onlyif mysql # aggregate syntax: 
query I rowsort label-4123
SELECT DISTINCT 57 * - 52 * COUNT( * ) * + COUNT( * ) - + 66 + + 48 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-240102

skipif mysql # not compatible
query I rowsort label-4123
SELECT DISTINCT 57 * - 52 * COUNT ( * ) * + COUNT ( * ) - + 66 + + 48 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-240102

query I rowsort
SELECT + 59 FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

query I rowsort
SELECT ALL + col1 + + + 21 * + 5 AS col2 FROM tab1 AS cor0
----
110
119
152

onlyif mysql # DIV for integer division: 
query I rowsort label-4126
SELECT DISTINCT 42 DIV + - col0 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4126
SELECT DISTINCT 42 / + - col0 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL col2 + + col2 + - col1 FROM tab1 AS cor0 WHERE NOT ( NULL >= 90 - col2 )
----

query I rowsort
SELECT - - 89 - - 32 AS col2 FROM tab0 AS cor0
----
121
121
121

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 >= - - col0
----

query I rowsort
SELECT DISTINCT col2 + - - col1 FROM tab0 cor0
----
100
128
31

query I rowsort
SELECT ALL ( - 60 ) - + 82 + + 74 FROM tab2
----
-68
-68
-68

query I rowsort
SELECT DISTINCT - col1 + - + col2 * col1 FROM tab2
----
-1224
-3157
-3953

onlyif mysql # DIV for integer division: 
query I rowsort label-4133
SELECT ALL + col0 DIV - 21 + - 56 FROM tab1
----
-58
-60
-60

skipif mysql # not compatible
query I rowsort label-4133
SELECT ALL + col0 / - 21 + - 56 FROM tab1
----
-58
-60
-60

query II rowsort
SELECT ALL 73 + col1 AS col2, + col1 AS col1 FROM tab0 WHERE + col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4135
SELECT DISTINCT 94 DIV 32 + + col2 AS col2 FROM tab0
----
101
12
49

skipif mysql # not compatible
query I rowsort label-4135
SELECT DISTINCT 94 / 32 + + col2 AS col2 FROM tab0
----
101
12
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4136
SELECT - 17 + - COUNT( * ) FROM tab1 WHERE - col1 <= + + 22
----
-20

skipif mysql # not compatible
query I rowsort label-4136
SELECT - 17 + - COUNT ( * ) FROM tab1 WHERE - col1 <= + + 22
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-4137
SELECT DISTINCT + MIN( DISTINCT - - 17 ) FROM tab2
----
17

skipif mysql # not compatible
query I rowsort label-4137
SELECT DISTINCT + MIN ( DISTINCT - - 17 ) FROM tab2
----
17

query I rowsort
SELECT 19 * + - 57 FROM tab2 AS cor0
----
-1083
-1083
-1083

query II rowsort
SELECT - col0 AS col1, 30 FROM tab1 AS cor0
----
-51
30
-85
30
-91
30

query I rowsort
SELECT ALL + col1 * + 7 FROM tab0
----
147
567
7

query I rowsort
SELECT + ( + + col1 ) FROM tab2
----
51
67
77

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) > + + 39
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4143
SELECT DISTINCT + + 90 * - - COUNT( * ) + - - 58 AS col1 FROM tab0 AS cor0
----
328

skipif mysql # not compatible
query I rowsort label-4143
SELECT DISTINCT + + 90 * - - COUNT ( * ) + - - 58 AS col1 FROM tab0 AS cor0
----
328

onlyif mysql # aggregate syntax: 
query I rowsort label-4144
SELECT DISTINCT - COUNT( col1 ) * 71 FROM tab2 AS cor0
----
-213

skipif mysql # not compatible
query I rowsort label-4144
SELECT DISTINCT - COUNT ( col1 ) * 71 FROM tab2 AS cor0
----
-213

query II rowsort
SELECT col0 AS col2, + col0 AS col0 FROM tab0 AS cor0
----
15
15
87
87
97
97

onlyif mysql # aggregate syntax: 
query II rowsort label-4146
SELECT ALL - 5 AS col2, + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-5
3

skipif mysql # not compatible
query II rowsort label-4146
SELECT ALL - 5 AS col2, + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-5
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4147
SELECT DISTINCT MAX( ( + + col0 ) ) FROM tab0 cor0
----
97

skipif mysql # not compatible
query I rowsort label-4147
SELECT DISTINCT MAX ( ( + + col0 ) ) FROM tab0 cor0
----
97

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4149
SELECT ALL - MIN( - ( + col2 ) ) * SUM( DISTINCT + 98 ) AS col1 FROM tab0 AS cor0
----
9702

skipif mysql # not compatible
query I rowsort label-4149
SELECT ALL - MIN ( - ( + col2 ) ) * SUM ( DISTINCT + 98 ) AS col1 FROM tab0 AS cor0
----
9702

query II rowsort
SELECT DISTINCT ( + col1 ), 45 FROM tab1
----
14
45
47
45
5
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4151
SELECT ALL + MIN( - col2 ) * 55 AS col1 FROM tab0
----
-5445

skipif mysql # not compatible
query I rowsort label-4151
SELECT ALL + MIN ( - col2 ) * 55 AS col1 FROM tab0
----
-5445

query I rowsort
SELECT DISTINCT + + ( - col2 ) FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4153
SELECT + ( 78 ) DIV - col1 AS col2 FROM tab1
----
-1
-15
-5

skipif mysql # not compatible
query I rowsort label-4153
SELECT + ( 78 ) / - col1 AS col2 FROM tab1
----
-1
-15
-5

query I rowsort
SELECT 22 * - - col0 FROM tab0
----
1914
2134
330

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 * + col2 col1, col1 AS col2 FROM tab0
----
-210
21
-3807
81
-99
1

query I rowsort
SELECT col1 * - - col1 * + - 69 FROM tab0
----
-30429
-452709
-69

query I rowsort
SELECT ALL - col0 * + 56 FROM tab1
----
-2856
-4760
-5096

query III rowsort
SELECT ALL * FROM tab0 WHERE + 89 IS NULL
----

query II rowsort
SELECT ALL - col0 + - - ( - col2 ) + - + col1 + - + col0 AS col2, 88 AS col0 FROM tab2 AS cor0
----
-166
88
-245
88
-275
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4160
SELECT DISTINCT - col1 - - 47 FROM tab2 AS cor0 WHERE ( NULL NOT BETWEEN NULL AND CAST( - col2 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-4160
SELECT DISTINCT - col1 - - 47 FROM tab2 AS cor0 WHERE ( NULL NOT BETWEEN NULL AND CAST ( - col2 AS INTEGER ) )
----

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE - col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 <= - 69
----

query II rowsort
SELECT col1, + 19 FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
14
19
47
19
5
19

query I rowsort
SELECT DISTINCT - ( - 72 ) * 33 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
2376

query I rowsort
SELECT ALL 20 + + + col2 AS col1 FROM tab0 AS cor0
----
119
30
67

query III rowsort
SELECT * FROM tab1 cor0 WHERE 23 * - - ( - - 44 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - col0 * - 79 AS col1 FROM tab0 AS cor0
----
-1185
-6873
-7663

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 - + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4169
SELECT DISTINCT - 44 - - - COUNT( * ) FROM tab2
----
-47

skipif mysql # not compatible
query I rowsort label-4169
SELECT DISTINCT - 44 - - - COUNT ( * ) FROM tab2
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4170
SELECT ALL + CAST( NULL AS SIGNED ) - col1 col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4170
SELECT ALL + CAST ( NULL AS INTEGER ) - col1 col0 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - ( + col0 ) - - - col1 * - 87 col1, + 98 AS col0 FROM tab0
----
-10
98
1740
98
7032
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 68 col1 FROM tab2 cor0 WHERE NOT - col2 IS NULL
----
68

query II rowsort
SELECT DISTINCT + 27 - + 49 - + col2 + + + col2 + + 78 AS col0, 77 + - 79 AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col1
----

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE NOT ( col2 ) NOT BETWEEN - 10 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4175
SELECT 47 + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
56

skipif mysql # not compatible
query I rowsort label-4175
SELECT 47 + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4176
SELECT DISTINCT COUNT( * ) * + + ( + - 39 ) - - 32 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-319

skipif mysql # not compatible
query I rowsort label-4176
SELECT DISTINCT COUNT ( * ) * + + ( + - 39 ) - - 32 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-319

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 / - + col0 * - col1 col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT - col0, + col1 AS col0 FROM tab0 cor0 WHERE NOT 7 + ( + col1 ) IS NULL
----
-15
81
-87
21
-97
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 94 col2 FROM tab1 AS cor0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4180
SELECT - + MIN( - 68 ) FROM tab0 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-4180
SELECT - + MIN ( - 68 ) FROM tab0 AS cor0
----
68

query I rowsort
SELECT + - col0 * + 77 FROM tab0 cor0
----
-1155
-6699
-7469

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col0 col1, - 53 FROM tab1 AS cor0
----
-51
-53
-85
-53
-91
-53

query I rowsort
SELECT DISTINCT col2 - col1 AS col0 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4184
SELECT ALL - 11 * - MIN( + col1 ) AS col1 FROM tab1
----
55

skipif mysql # not compatible
query I rowsort label-4184
SELECT ALL - 11 * - MIN ( + col1 ) AS col1 FROM tab1
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4185
SELECT - 73 / + col1 + - 42 * - col2 AS col0 FROM tab0 WHERE NOT - col2 + - 28 * col2 BETWEEN NULL AND + CAST( - - 20 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4185
SELECT - 73 / + col1 + - 42 * - col2 AS col0 FROM tab0 WHERE NOT - col2 + - 28 * col2 BETWEEN NULL AND + CAST ( - - 20 AS INTEGER )
----

query II rowsort
SELECT DISTINCT 62, + 7 AS col1 FROM tab1
----
62
7

query II rowsort
SELECT DISTINCT 56 * 5 AS col0, col2 AS col0 FROM tab0
----
280
10
280
47
280
99

query I rowsort
SELECT - 0 FROM tab1 WHERE + - col0 + col2 IS NOT NULL
----
0
0
0

query I rowsort
SELECT + + col1 + 54 AS col0 FROM tab1 AS cor0
----
101
59
68

onlyif mysql # DIV for integer division: 
query I rowsort label-4190
SELECT + col1 DIV - + 93 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4190
SELECT + col1 / - + 93 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4191
SELECT - SUM( - 28 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4191
SELECT - SUM ( - 28 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ALL + + 40 + + 17 * - col0 * - - 29 FROM tab0 AS cor0
----
-42851
-47781
-7355

query I rowsort
SELECT col1 - + col0 + + + col2 AS col2 FROM tab0 AS cor0
----
-56
113
3

query I rowsort
SELECT DISTINCT + 52 + + col2 AS col2 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
110
75
92

query I rowsort
SELECT + col1 * + col2 FROM tab0 AS cor0 WHERE NULL <= col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4196
SELECT DISTINCT - 84 * - CAST( NULL AS DECIMAL ) FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4196
SELECT DISTINCT - 84 * - CAST ( NULL AS REAL ) FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4197
SELECT ALL ( - col0 ) DIV col0 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4197
SELECT ALL ( - col0 ) / col0 FROM tab0
----
-1
-1
-1

query II rowsort
SELECT DISTINCT + col2 AS col1, col0 + col2 + col1 FROM tab2
----
23
120
40
181
58
200

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 45 * + + 77 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 * - ( col2 ), 3 col0 FROM tab1 AS cor0
----
-1344
3
-295
3
-3196
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4201
SELECT + AVG ( + CAST( NULL AS SIGNED ) ) / ( - - 49 ) + + AVG ( + - col2 ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4201
SELECT + AVG ( + CAST ( NULL AS INTEGER ) ) / ( - - 49 ) + + AVG ( + - col2 ) FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4202
SELECT ALL - COUNT( * ) * COUNT( * ) AS col1 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4202
SELECT ALL - COUNT ( * ) * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-9

query I rowsort
SELECT - 37 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f

query I rowsort
SELECT ALL - + col0 + + ( + 4 ) FROM tab2 AS cor0
----
-42
-60
-71

query I rowsort
SELECT col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL > + col0
----

query I rowsort
SELECT - + col0 + + col0 FROM tab0 AS cor0 WHERE NOT - col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4207
SELECT COUNT( * ) * - COUNT( * ) + + MAX( DISTINCT - col1 ) * - COUNT( * ), COUNT( * ) col1 FROM tab1
----
6
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4207
SELECT COUNT ( * ) * - COUNT ( * ) + + MAX ( DISTINCT - col1 ) * - COUNT ( * ), COUNT ( * ) col1 FROM tab1
----
6
3

query III rowsort
SELECT * FROM tab1 WHERE + col0 - + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4209
SELECT DISTINCT ( - 6 ) + + SUM( + - col2 ) FROM tab2
----
-127

skipif mysql # not compatible
query I rowsort label-4209
SELECT DISTINCT ( - 6 ) + + SUM ( + - col2 ) FROM tab2
----
-127

onlyif mysql # aggregate syntax: 
query I rowsort label-4210
SELECT - SUM( ALL - - 96 ) AS col2 FROM tab0
----
-288

skipif mysql # not compatible
query I rowsort label-4210
SELECT - SUM ( ALL - - 96 ) AS col2 FROM tab0
----
-288

onlyif mysql # DIV for integer division: 
query I rowsort label-4211
SELECT col2 DIV col2 * - + col1 AS col0 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-4211
SELECT col2 / col2 * - + col1 AS col0 FROM tab1
----
-14
-47
-5

query I rowsort
SELECT col2 * - col0 * + - col1 * - col1 AS col1 FROM tab0
----
-383670
-4625505
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-4213
SELECT - 39 * + COUNT( ALL - col0 ) * + 11 FROM tab1 AS cor0
----
-1287

skipif mysql # not compatible
query I rowsort label-4213
SELECT - 39 * + COUNT ( ALL - col0 ) * + 11 FROM tab1 AS cor0
----
-1287

query II rowsort
SELECT ALL - - 10 AS col0, col0 AS col2 FROM tab2 AS cor0
----
10
46
10
64
10
75

query I rowsort
SELECT + - col1 - - 33 FROM tab1 AS cor0
----
-14
19
28

query II rowsort
SELECT - col0 + + - col0 AS col2, + col2 + 38 AS col0 FROM tab0
----
-174
48
-194
137
-30
85

query I rowsort
SELECT + 58 + - - col0 + + 87 AS col0 FROM tab2
----
191
209
220

query I rowsort
SELECT ALL - 59 + col0 AS col2 FROM tab0
----
-44
28
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4219
SELECT - - COUNT( * ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-4219
SELECT - - COUNT ( * ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4220
SELECT DISTINCT + 91 * + COUNT( * ) FROM tab0 AS cor0
----
273

skipif mysql # not compatible
query I rowsort label-4220
SELECT DISTINCT + 91 * + COUNT ( * ) FROM tab0 AS cor0
----
273

query I rowsort
SELECT DISTINCT - - 59 * + + col0 FROM tab2 AS cor0
----
2714
3776
4425

query I rowsort
SELECT col2 AS col1 FROM tab1 AS cor0 WHERE - col1 NOT BETWEEN NULL AND - ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4223
SELECT + ( + + COUNT( * ) ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4223
SELECT + ( + + COUNT ( * ) ) AS col2 FROM tab2
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - ( 90 ) * + - ( + 97 ) + - + 20 BETWEEN - 27 AND NULL
----

query I rowsort
SELECT DISTINCT + col0 * - - 21 * + 99 FROM tab2
----
133056
155925
95634

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 * + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4227
SELECT DISTINCT + ( COUNT( * ) ) * + COUNT( * ) * 80 FROM tab2
----
720

skipif mysql # not compatible
query I rowsort label-4227
SELECT DISTINCT + ( COUNT ( * ) ) * + COUNT ( * ) * 80 FROM tab2
----
720

query I rowsort
SELECT - - 69 * + col1 AS col2 FROM tab0 AS cor0
----
1449
5589
69

onlyif mysql # DIV for integer division: 
query I rowsort label-4229
SELECT DISTINCT col1 DIV - + ( col1 ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4229
SELECT DISTINCT col1 / - + ( col1 ) FROM tab2 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4230
SELECT SUM( - + col0 ) AS col0 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-4230
SELECT SUM ( - + col0 ) AS col0 FROM tab0 AS cor0
----
-199

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4231
SELECT DISTINCT col0 + col1 * col0 - + col1 + + CAST( + col1 AS SIGNED ) AS col1 FROM tab2
----
2392
4992
5100

skipif mysql # not compatible
query I rowsort label-4231
SELECT DISTINCT col0 + col1 * col0 - + col1 + + CAST ( + col1 AS INTEGER ) AS col1 FROM tab2
----
2392
4992
5100

query II rowsort
SELECT - col2 AS col2, ( 9 ) + - - 74 FROM tab0 AS cor0
----
-10
83
-47
83
-99
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4233
SELECT ALL 67 + COUNT( * ) FROM tab1 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-4233
SELECT ALL 67 + COUNT ( * ) FROM tab1 AS cor0
----
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 48 * 73 * + - 34 + col1 col0 FROM tab2 AS cor0
----
119187
119203
119213

query I rowsort
SELECT - col1 + - + col2 FROM tab1 AS cor0 WHERE + 61 IS NULL
----

query I rowsort
SELECT DISTINCT - 55 + + 85 AS col1 FROM tab0 AS cor0
----
30

query I rowsort
SELECT ALL col0 + + col0 + + ( col2 ) + col1 * - + 93 AS col0 FROM tab2 AS cor0
----
-4628
-6023
-6993

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <= - - 8 - - 6 * + ( + - col2 )
----

query I rowsort
SELECT - col1 / 3 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + 6 IN ( - 29, col2, - col1 )
----

query I rowsort
SELECT DISTINCT - - col1 - + col1 - + col0 + col2 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-77
2
32

onlyif mysql # DIV for integer division: 
query I rowsort label-4242
SELECT ALL col1 DIV + 55 + + col2 FROM tab0
----
10
48
99

skipif mysql # not compatible
query I rowsort label-4242
SELECT ALL col1 / + 55 + + col2 FROM tab0
----
10
48
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 41 col2 FROM tab0
----
140
51
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4244
SELECT DISTINCT + ( CAST( ( COUNT( * ) ) AS SIGNED ) ) col1 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4244
SELECT DISTINCT + ( CAST ( ( COUNT ( * ) ) AS INTEGER ) ) col1 FROM tab2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4245
SELECT + - CAST( NULL AS SIGNED ) + COUNT( ALL + + 63 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4245
SELECT + - CAST ( NULL AS INTEGER ) + COUNT ( ALL + + 63 ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4246
SELECT DISTINCT + + ( - COUNT( ALL - + col0 ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4246
SELECT DISTINCT + + ( - COUNT ( ALL - + col0 ) ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT - col0 + + 4 FROM tab0 AS cor0
----
-11
-83
-93

query I rowsort
SELECT 90 * + 44 FROM tab1 AS cor0
----
3960
3960
3960

onlyif mysql # aggregate syntax: 
query II rowsort label-4249
SELECT ALL - + 95 * COUNT( * ) AS col2, COUNT( * ) FROM tab0 cor0
----
-285
3

skipif mysql # not compatible
query II rowsort label-4249
SELECT ALL - + 95 * COUNT ( * ) AS col2, COUNT ( * ) FROM tab0 cor0
----
-285
3

query I rowsort
SELECT ALL - col2 AS col0 FROM tab0 WHERE + col1 <> + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4251
SELECT MIN( DISTINCT + + col2 ) FROM tab2 cor0
----
23

skipif mysql # not compatible
query I rowsort label-4251
SELECT MIN ( DISTINCT + + col2 ) FROM tab2 cor0
----
23

query I rowsort
SELECT + ( - col1 ) * - 27 * + + col2 FROM tab2 cor0 WHERE NOT + 82 <= + col0 * + + col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 58 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + 32 col1 FROM tab2 AS cor0
----
-1632
-2144
-2464

onlyif mysql # DIV for integer division: 
query I rowsort label-4255
SELECT + col0 DIV + ( - col2 ) AS col1 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4255
SELECT + col0 / + ( - col2 ) AS col1 FROM tab1 AS cor0
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4256
SELECT ALL + 41 * + + ( + COUNT( * ) ) col0 FROM tab1 AS cor0
----
123

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4256
SELECT ALL + 41 * + + ( + COUNT ( * ) ) col0 FROM tab1 AS cor0
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-4257
SELECT ALL + COUNT( ALL + 53 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4257
SELECT ALL + COUNT ( ALL + 53 ) FROM tab0
----
3

query I rowsort
SELECT DISTINCT ( + 13 ) FROM tab2, tab2 AS cor0
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-4259
SELECT DISTINCT + COUNT( * ) AS col2, - COUNT( * ) AS col1 FROM tab2
----
3
-3

skipif mysql # not compatible
query II rowsort label-4259
SELECT DISTINCT + COUNT ( * ) AS col2, - COUNT ( * ) AS col1 FROM tab2
----
3
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-4260
SELECT ALL - 72 AS col0, col2 DIV - col1 FROM tab2
----
-72
0
-72
0
-72
0

skipif mysql # not compatible
query II rowsort label-4260
SELECT ALL - 72 AS col0, col2 / - col1 FROM tab2
----
-72
0
-72
0
-72
0

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL > - - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 AS col0, - 80 col0 FROM tab1
----
59
-80
68
-80
96
-80

query II rowsort
SELECT 71 AS col2, col0 * + col2 * + 82 AS col0 FROM tab0
----
71
57810
71
71340
71
787446

query I rowsort
SELECT ALL - 87 * col2 FROM tab0
----
-4089
-8613
-870

onlyif mysql # DIV for integer division: 
query I rowsort label-4265
SELECT DISTINCT + - col1 DIV - col2 * col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4265
SELECT DISTINCT + - col1 / - col2 * col0 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4266
SELECT DISTINCT + MAX( DISTINCT col2 ) * - + 63 FROM tab2 cor0
----
-3654

skipif mysql # not compatible
query I rowsort label-4266
SELECT DISTINCT + MAX ( DISTINCT col2 ) * - + 63 FROM tab2 cor0
----
-3654

query I rowsort
SELECT - 95 FROM tab0 cor0 WHERE NOT NULL BETWEEN - col1 * - 20 / + col0 AND - + col2 / + - col1 * 52
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4268
SELECT ALL col1 FROM tab0 AS cor0 WHERE - CAST( - col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4268
SELECT ALL col1 FROM tab0 AS cor0 WHERE - CAST ( - col1 AS INTEGER ) IS NULL
----

query I rowsort
SELECT ( + 6 ) FROM ( tab0 AS cor0 CROSS JOIN tab2 cor1 )
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

onlyif mysql # aggregate syntax: 
query I rowsort label-4270
SELECT DISTINCT MIN( ALL col0 ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-4270
SELECT DISTINCT MIN ( ALL col0 ) FROM tab1
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-4271
SELECT 50 * - - COUNT( * ) AS col2, + 36 AS col2 FROM tab2
----
150
36

skipif mysql # not compatible
query II rowsort label-4271
SELECT 50 * - - COUNT ( * ) AS col2, + 36 AS col2 FROM tab2
----
150
36

query I rowsort
SELECT DISTINCT col0 * col0 * 72 AS col0 FROM tab2
----
152352
294912
405000

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4273
SELECT ALL - + CAST( NULL AS SIGNED ) + + col1 col1, + 94 FROM tab0 AS cor0
----
NULL
94
NULL
94
NULL
94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4273
SELECT ALL - + CAST ( NULL AS INTEGER ) + + col1 col1, + 94 FROM tab0 AS cor0
----
NULL
94
NULL
94
NULL
94

query I rowsort
SELECT - col0 AS col0 FROM tab1 AS cor0 WHERE + col1 * col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4275
SELECT + COUNT( * ) + ( 2 ) AS col0, - 11 FROM tab2 cor0
----
5
-11

skipif mysql # not compatible
query II rowsort label-4275
SELECT + COUNT ( * ) + ( 2 ) AS col0, - 11 FROM tab2 cor0
----
5
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4276
SELECT + MIN( + - col1 ) + + + MAX( - col2 ) FROM tab2 AS cor0 WHERE ( NOT + 97 > NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4276
SELECT + MIN ( + - col1 ) + + + MAX ( - col2 ) FROM tab2 AS cor0 WHERE ( NOT + 97 > NULL )
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <= - col0
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4278
SELECT ALL col2 DIV - col2 AS col2, + col0 col2 FROM tab2 AS cor0
----
-1
46
-1
64
-1
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4278
SELECT ALL col2 / - col2 AS col2, + col0 col2 FROM tab2 AS cor0
----
-1
46
-1
64
-1
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 75 * + - 78 col1 FROM tab2 cor0 WHERE - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4280
SELECT DISTINCT - 47 + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-4280
SELECT DISTINCT - 47 + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-50

query I rowsort
SELECT ALL - + col0 * 76 + 1 - + - 26 FROM tab1 cor0
----
-3849
-6433
-6889

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4282
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + + + col0 * col0 * - 25 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4282
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + + + col0 * col0 * - 25 AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4283
SELECT - AVG ( DISTINCT CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4283
SELECT - AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4284
SELECT ALL - MAX( + 19 ) + 7 AS col2 FROM tab2
----
-12

skipif mysql # not compatible
query I rowsort label-4284
SELECT ALL - MAX ( + 19 ) + 7 AS col2 FROM tab2
----
-12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 44 col1, col2 * + col2 FROM tab0
----
44
100
44
2209
44
9801

query I rowsort
SELECT + col0 * + - 12 FROM tab2
----
-552
-768
-900

onlyif mysql # aggregate syntax: 
query I rowsort label-4287
SELECT ALL MAX( - + 80 ) * SUM( ALL - + 91 ) * + MAX( ALL col2 ) AS col1 FROM tab0
----
2162160

skipif mysql # not compatible
query I rowsort label-4287
SELECT ALL MAX ( - + 80 ) * SUM ( ALL - + 91 ) * + MAX ( ALL col2 ) AS col1 FROM tab0
----
2162160

query I rowsort
SELECT + col2 * + + 5 FROM tab2
----
115
200
290

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4289
SELECT ALL - 54 DIV COUNT( * ) * COUNT( * ) * COUNT( * ) FROM tab2
----
-162

skipif mysql # not compatible
query I rowsort label-4289
SELECT ALL - 54 / COUNT ( * ) * COUNT ( * ) * COUNT ( * ) FROM tab2
----
-162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 56 AS col0, - col1 * + col0 * + - 19 - - + 44 col0 FROM tab1
----
56
13610
56
8119
56
81307

onlyif mysql # aggregate syntax: 
query I rowsort label-4291
SELECT DISTINCT - COUNT( - - 77 ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4291
SELECT DISTINCT - COUNT ( - - 77 ) AS col2 FROM tab2
----
-3

query I rowsort
SELECT DISTINCT 61 * col2 AS col1 FROM tab0 cor0
----
2867
6039
610

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4293
SELECT ALL + CAST( - col0 AS SIGNED ) + col0 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4293
SELECT ALL + CAST ( - col0 AS INTEGER ) + col0 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL + 78 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4295
SELECT + ( + 9 ) DIV - 76 + + COUNT( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4295
SELECT + ( + 9 ) / - 76 + + COUNT ( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4296
SELECT + MAX( ( - 19 ) ) * - - CAST( + 45 AS SIGNED ) - - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-846

skipif mysql # not compatible
query I rowsort label-4296
SELECT + MAX ( ( - 19 ) ) * - - CAST ( + 45 AS INTEGER ) - - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-846

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 1 >= - col2
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + 98 * - - 98 IS NOT NULL
----

query I rowsort
SELECT - + ( + col1 ) * + + 14 FROM tab2 cor0
----
-1078
-714
-938

query I rowsort
SELECT ALL + col2 + + col2 + - - col2 * - 6 * - 96 / - + col2 * col2 / - + col2 * + col2 FROM tab1 AS cor0 WHERE NOT col1 * col0 / + col0 + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4301
SELECT + 12 * SUM( - - 40 ) AS col1 FROM tab0 AS cor0
----
1440

skipif mysql # not compatible
query I rowsort label-4301
SELECT + 12 * SUM ( - - 40 ) AS col1 FROM tab0 AS cor0
----
1440

onlyif mysql # DIV for integer division: 
query I rowsort label-4302
SELECT col0 DIV - + col1 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4302
SELECT col0 / - + col1 FROM tab2 AS cor0
----
-1
0
0

query I rowsort
SELECT + col2 * 93 + + col0 + + col1 * - col1 FROM tab0 AS cor0
----
-2175
576
9303

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4304
SELECT COUNT( * ) DIV - COUNT( * ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4304
SELECT COUNT ( * ) / - COUNT ( * ) FROM tab1 AS cor0
----
-1

query I rowsort
SELECT + 51 * + - col1 FROM tab0
----
-1071
-4131
-51

query I rowsort
SELECT ( + - 2 ) FROM tab2
----
-2
-2
-2

query II rowsort
SELECT DISTINCT - 2, col1 * 75 * - 3 AS col1 FROM tab0
----
-2
-18225
-2
-225
-2
-4725

query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 <= + + 58 + - col2
----

query I rowsort
SELECT col0 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4310
SELECT ALL - 77 * - col0 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4310
SELECT ALL - 77 * - col0 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL BETWEEN 3 AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4312
SELECT DISTINCT + 49 + COUNT( * ) AS col1 FROM tab1 cor0
----
52

skipif mysql # not compatible
query I rowsort label-4312
SELECT DISTINCT + 49 + COUNT ( * ) AS col1 FROM tab1 cor0
----
52

query I rowsort
SELECT DISTINCT 33 + + - 35 FROM tab1 AS cor0
----
-2

query I rowsort
SELECT col0 + + + 79 FROM tab0
----
166
176
94

query II rowsort
SELECT DISTINCT - col0 + - - 73, 21 AS col1 FROM tab2
----
-2
21
27
21
9
21

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4316
SELECT * FROM tab1 WHERE - + col0 = CAST( + + col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4316
SELECT * FROM tab1 WHERE - + col0 = CAST ( + + col2 AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 72 * + 7 IS NULL
----

query I rowsort
SELECT - + 79 * + col0 FROM tab0 cor0 WHERE ( - col2 ) - + 19 IS NULL
----

query I rowsort
SELECT DISTINCT 4 + col0 AS col1 FROM tab0 AS cor0
----
101
19
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4320
SELECT - ( CAST( - col1 AS SIGNED ) ) FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-4320
SELECT - ( CAST ( - col1 AS INTEGER ) ) FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT ALL - col0 + - + ( + 40 ) AS col2 FROM tab2 AS cor0
----
-104
-115
-86

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab2 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4323
SELECT - + COUNT( 99 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4323
SELECT - + COUNT ( 99 ) AS col1 FROM tab1 AS cor0
----
-3

query II rowsort
SELECT - + col2 - col2 AS col1, 49 FROM tab2 AS cor0
----
-116
49
-46
49
-80
49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4325
SELECT ALL col2 + - col0, + col0 + + - CAST( NULL AS SIGNED ) * + col1 + col1 AS col0 FROM tab0
----
-77
NULL
2
NULL
32
NULL

skipif mysql # not compatible
query II rowsort label-4325
SELECT ALL col2 + - col0, + col0 + + - CAST ( NULL AS INTEGER ) * + col1 + col1 AS col0 FROM tab0
----
-77
NULL
2
NULL
32
NULL

query I rowsort
SELECT DISTINCT col0 + 60 * col1 AS col1 FROM tab2
----
3106
4095
4684

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( - col1, + col1 * - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4328
SELECT DISTINCT - 44 DIV - - 16 AS col0 FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-4328
SELECT DISTINCT - 44 / - - 16 AS col0 FROM tab0
----
-2

query I rowsort
SELECT 75 + + col0 FROM tab0
----
162
172
90

query I rowsort
SELECT ALL - col0 * + 42 - + 55 FROM tab1
----
-2197
-3625
-3877

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4331
SELECT - col0 * 13 - + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4331
SELECT - col0 * 13 - + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - 29 AS col0, + 52 AS col0 FROM tab0
----
-29
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4333
SELECT ALL - SUM( - 26 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
234

skipif mysql # not compatible
query I rowsort label-4333
SELECT ALL - SUM ( - 26 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
234

query II rowsort
SELECT DISTINCT col1 AS col2, ( + 14 ) FROM tab1 AS cor0
----
14
14
47
14
5
14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4335
SELECT + + col1 col1, + CAST( NULL AS SIGNED ) + col2 AS col1 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4335
SELECT + + col1 col1, + CAST ( NULL AS INTEGER ) + col2 AS col1 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col0 * col0 NOT BETWEEN + 87 + col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 27 col2 FROM tab2 AS cor0
----
-27
-27
-27

query II rowsort
SELECT DISTINCT - + 9, col0 AS col0 FROM tab2 AS cor0
----
-9
46
-9
64
-9
75

query II rowsort
SELECT ALL + + col1, col0 * + + col2 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4340
SELECT DISTINCT + COUNT( ALL ( + col2 ) ) + - 17 * + - 6 * SUM( ALL - + 96 ) FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4340
SELECT DISTINCT + COUNT ( ALL ( + col2 ) ) + - 17 * + - 6 * SUM ( ALL - + 96 ) FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----
NULL

query I rowsort
SELECT ( + 82 ) AS col2 FROM tab2
----
82
82
82

query I rowsort
SELECT - + col0 + - + 21 AS col2 FROM tab0 AS cor0 WHERE NOT col2 * + + col1 * - col2 IS NULL
----
-108
-118
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4343
SELECT - MAX( col2 ) col1 FROM tab0 cor0
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4343
SELECT - MAX ( col2 ) col1 FROM tab0 cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4344
SELECT DISTINCT COUNT( * ) * ( - - COUNT( * ) ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-4344
SELECT DISTINCT COUNT ( * ) * ( - - COUNT ( * ) ) FROM tab2
----
9

query I rowsort
SELECT - + col1 FROM tab2 AS cor0 WHERE + col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 11 IS NULL
----

query I rowsort
SELECT DISTINCT + + 12 + + col2 FROM tab0 AS cor0
----
111
22
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4348
SELECT ALL MAX( col2 ) * + 39 + + + ( - COUNT( * ) ) FROM tab2
----
2259

skipif mysql # not compatible
query I rowsort label-4348
SELECT ALL MAX ( col2 ) * + 39 + + + ( - COUNT ( * ) ) FROM tab2
----
2259

query I rowsort
SELECT col2 * ( - col0 ) * - col2 AS col2 FROM tab1
----
295885
420784
470016

onlyif mysql # aggregate syntax: 
query I rowsort label-4350
SELECT COUNT( - 10 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4350
SELECT COUNT ( - 10 ) FROM tab2
----
3

query I rowsort
SELECT ( + - 96 ) FROM tab2
----
-96
-96
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4352
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4352
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> + - CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 27 col0, col1 col1 FROM tab0 AS cor0
----
27
1
27
21
27
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4354
SELECT ALL + COUNT( * ) * ( - - COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4354
SELECT ALL + COUNT ( * ) * ( - - COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-4355
SELECT - col1 DIV ( - 52 ) AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4355
SELECT - col1 / ( - 52 ) AS col2 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4356
SELECT ALL + col0 FROM tab0 AS cor0 WHERE - 24 * col1 + CAST( + 19 AS DECIMAL ) + + - 60 * 14 * col2 / + + col1 > NULL
----

skipif mysql # not compatible
query I rowsort label-4356
SELECT ALL + col0 FROM tab0 AS cor0 WHERE - 24 * col1 + CAST ( + 19 AS REAL ) + + - 60 * 14 * col2 / + + col1 > NULL
----

query I rowsort
SELECT col1 AS col1 FROM tab2 AS cor0 WHERE NOT col0 <> - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4358
SELECT + COUNT( * ) * 99 AS col0 FROM tab0 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-4358
SELECT + COUNT ( * ) * 99 AS col0 FROM tab0 AS cor0
----
297

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4359
SELECT DISTINCT + + MAX( ALL + CAST( NULL AS SIGNED ) ) + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4359
SELECT DISTINCT + + MAX ( ALL + CAST ( NULL AS INTEGER ) ) + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4360
SELECT ALL col2 DIV ( col0 ) * + - col1 DIV + - 6 + + col1 AS col0 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-4360
SELECT ALL col2 / ( col0 ) * + - col1 / + - 6 + + col1 AS col0 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT ALL - + col0 AS col2 FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4362
SELECT DISTINCT - COUNT( + + 34 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4362
SELECT DISTINCT - COUNT ( + + 34 ) AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-4363
SELECT ALL col0, + 79 DIV - 9 AS col2 FROM tab0
----
15
-8
87
-8
97
-8

skipif mysql # not compatible
query II rowsort label-4363
SELECT ALL col0, + 79 / - 9 AS col2 FROM tab0
----
15
-8
87
-8
97
-8

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4365
SELECT ALL MAX( DISTINCT + ( col1 ) ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-4365
SELECT ALL MAX ( DISTINCT + ( col1 ) ) FROM tab2
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-4366
SELECT 43 DIV - + col0 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4366
SELECT 43 / - + col0 AS col1 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4367
SELECT - - CAST( NULL AS DECIMAL ) + col0 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4367
SELECT - - CAST ( NULL AS REAL ) + col0 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4368
SELECT ALL - SUM( DISTINCT - + 19 ) AS col2 FROM tab1 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-4368
SELECT ALL - SUM ( DISTINCT - + 19 ) AS col2 FROM tab1 AS cor0
----
19

query I rowsort
SELECT + - col2 + 98 FROM tab0 AS cor0
----
-1
51
88

query I rowsort
SELECT col1 + - 1 AS col1 FROM tab1
----
13
4
46

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 >= col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4372
SELECT * FROM tab1 WHERE ( + CAST( NULL AS DECIMAL ) ) IN ( 52 )
----

skipif mysql # not compatible
query III rowsort label-4372
SELECT * FROM tab1 WHERE ( + CAST ( NULL AS REAL ) ) IN ( 52 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4373
SELECT DISTINCT + 63 * MIN( ALL + col0 ) AS col2 FROM tab0
----
945

skipif mysql # not compatible
query I rowsort label-4373
SELECT DISTINCT + 63 * MIN ( ALL + col0 ) AS col2 FROM tab0
----
945

query I rowsort
SELECT - 42 * col0 - 86 * col0 FROM tab1
----
-10880
-11648
-6528

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 22 col1 FROM tab1
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-4376
SELECT 90 DIV + col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4376
SELECT 90 / + col2 FROM tab1
----
0
1
1

query I rowsort
SELECT 0 AS col0 FROM tab0 WHERE NULL < 92 * + 88
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4378
SELECT DISTINCT + col2 DIV + 96 + 59 col0 FROM tab1
----
59
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4378
SELECT DISTINCT + col2 / + 96 + 59 col0 FROM tab1
----
59
60

query I rowsort
SELECT 40 * + col0 AS col0 FROM tab2
----
1840
2560
3000

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - ( + col1 ) * - col0 ) <= - ( ( 48 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4381
SELECT DISTINCT col1 DIV + 67 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-4381
SELECT DISTINCT col1 / + 67 FROM tab2
----
0
1

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 - 50 * 16 > - ( col2 )
----

query I rowsort
SELECT + ( - 94 ) * + col2 FROM tab0
----
-4418
-9306
-940

onlyif mysql # aggregate syntax: 
query I rowsort label-4384
SELECT - COUNT( * ) * + 31 AS col2 FROM tab2
----
-93

skipif mysql # not compatible
query I rowsort label-4384
SELECT - COUNT ( * ) * + 31 AS col2 FROM tab2
----
-93

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 = - col1 - - col1 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4386
SELECT DISTINCT + MIN( ALL + col2 ) * + COUNT( * ) FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-4386
SELECT DISTINCT + MIN ( ALL + col2 ) * + COUNT ( * ) FROM tab2
----
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 64 * + col2 col0 FROM tab2
----
1472
2560
3712

onlyif mysql # DIV for integer division: 
query I rowsort label-4388
SELECT DISTINCT + 98 DIV + col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-4388
SELECT DISTINCT + 98 / + col2 FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4389
SELECT + COUNT( * ) * 7 col2 FROM tab1
----
21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4389
SELECT + COUNT ( * ) * 7 col2 FROM tab1
----
21

query I rowsort
SELECT + col2 * - ( col0 ) FROM tab2
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-4391
SELECT ALL - 16 * COUNT( * ) FROM tab2
----
-48

skipif mysql # not compatible
query I rowsort label-4391
SELECT ALL - 16 * COUNT ( * ) FROM tab2
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4392
SELECT COUNT( - 13 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4392
SELECT COUNT ( - 13 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4393
SELECT + MAX( + col1 ) * 13 FROM tab1 AS cor0
----
611

skipif mysql # not compatible
query I rowsort label-4393
SELECT + MAX ( + col1 ) * 13 FROM tab1 AS cor0
----
611

query I rowsort
SELECT ALL + 22 * 19 FROM tab1 AS cor0
----
418
418
418

onlyif mysql # DIV for integer division: 
query I rowsort label-4395
SELECT ALL - 45 DIV col2 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4395
SELECT ALL - 45 / col2 AS col2 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4396
SELECT DISTINCT MIN( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4396
SELECT DISTINCT MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4397
SELECT + CAST( 13 AS SIGNED ) FROM tab1
----
13
13
13

skipif mysql # not compatible
query I rowsort label-4397
SELECT + CAST ( 13 AS INTEGER ) FROM tab1
----
13
13
13

query I rowsort
SELECT ALL col1 * + 45 FROM tab1
----
2115
225
630

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col0 ) <> - col0 + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col2 FROM tab2 AS cor0 WHERE col0 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + 80 * - col1 )
----

query I rowsort
SELECT - col0 + + 45 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-40
-46
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4403
SELECT COUNT( * ) + - - 53 * COUNT( * ) FROM tab1
----
162

skipif mysql # not compatible
query I rowsort label-4403
SELECT COUNT ( * ) + - - 53 * COUNT ( * ) FROM tab1
----
162

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + col1 - 65 * + col1 ) NOT BETWEEN ( - col1 ) AND col0
----

query I rowsort
SELECT + 42 * - col1 * + col1 FROM tab1
----
-1050
-8232
-92778

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4406
SELECT + COUNT( ALL CAST( NULL AS SIGNED ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4406
SELECT + COUNT ( ALL CAST ( NULL AS INTEGER ) ) FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4407
SELECT CAST( NULL AS SIGNED ) * ( + col0 ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4407
SELECT CAST ( NULL AS INTEGER ) * ( + col0 ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 97 col0 FROM tab0 AS cor0 WHERE NOT col1 + + 63 IS NULL
----
-97
-97
-97

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE ( NULL ) <> + col0
----

query I rowsort
SELECT + col0 - + + col0 FROM tab0 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4411
SELECT DISTINCT 20 - + COUNT( - 67 ) AS col2 FROM tab2
----
17

skipif mysql # not compatible
query I rowsort label-4411
SELECT DISTINCT 20 - + COUNT ( - 67 ) AS col2 FROM tab2
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4412
SELECT - 62 * + - col2 + - - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4412
SELECT - 62 * + - col2 + - - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4413
SELECT DISTINCT - COUNT( * ) - - 24 AS col0 FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-4413
SELECT DISTINCT - COUNT ( * ) - - 24 AS col0 FROM tab0
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4414
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 WHERE NOT + CAST( - col2 AS SIGNED ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4414
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + CAST ( - col2 AS INTEGER ) IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4415
SELECT 11 + - col0 AS col0 FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) BETWEEN + CAST( NULL AS SIGNED ) * + 60 AND ( col0 )
----

skipif mysql # not compatible
query I rowsort label-4415
SELECT 11 + - col0 AS col0 FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) BETWEEN + CAST ( NULL AS INTEGER ) * + 60 AND ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4416
SELECT MAX( - + 35 ) FROM tab0 cor0
----
-35

skipif mysql # not compatible
query I rowsort label-4416
SELECT MAX ( - + 35 ) FROM tab0 cor0
----
-35

query I rowsort
SELECT DISTINCT + 34 + + col2 FROM tab2 AS cor0
----
57
74
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + + 55 * + 53 * - col0 col0 FROM tab1
----
21060875
24139115
7581915

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4419
SELECT + MAX( DISTINCT - CAST( + - CAST( + 16 AS SIGNED ) AS SIGNED ) ) FROM tab0
----
16

skipif mysql # not compatible
query I rowsort label-4419
SELECT + MAX ( DISTINCT - CAST ( + - CAST ( + 16 AS INTEGER ) AS INTEGER ) ) FROM tab0
----
16

query I rowsort
SELECT ALL - ( + + ( + + col2 ) ) FROM tab1
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4421
SELECT ALL MAX( DISTINCT + 86 ) FROM tab0
----
86

skipif mysql # not compatible
query I rowsort label-4421
SELECT ALL MAX ( DISTINCT + 86 ) FROM tab0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4422
SELECT + MAX( - + col0 ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-4422
SELECT + MAX ( - + col0 ) FROM tab1
----
-51

query I rowsort
SELECT - col2 FROM tab2 WHERE NOT - 77 * + - col2 * col0 - - col1 >= col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - col2 + col0 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 BETWEEN ( NULL ) AND col0 * col0
----

query I rowsort
SELECT + - col0 * - - 64 FROM tab2 cor0
----
-2944
-4096
-4800

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT + col2 NOT IN ( + + col1 )
----

query I rowsort
SELECT + col2 * - 13 FROM tab0
----
-1287
-130
-611

query I rowsort
SELECT 37 + + - col0 FROM tab2 WHERE NOT 82 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 <= ( - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4431
SELECT ALL * FROM tab1 cor0 WHERE 6 NOT BETWEEN - - 86 AND - CAST( NULL AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4431
SELECT ALL * FROM tab1 cor0 WHERE 6 NOT BETWEEN - - 86 AND - CAST ( NULL AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 39 + - col1 + - - col0 + + - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - col0 + + col2 + - col2 * - - col2 FROM tab0 cor0
----
-177
-2177
-9799

query I rowsort
SELECT ALL - col2 + - - col2 + - - col1 + col1 AS col1 FROM tab2 AS cor0
----
102
134
154

onlyif mysql # aggregate syntax: 
query I rowsort label-4435
SELECT DISTINCT MIN( + col1 ) * - 74 FROM tab0 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-4435
SELECT DISTINCT MIN ( + col1 ) * - 74 FROM tab0 AS cor0
----
-74

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NOT + col2 - col2 BETWEEN + + col1 + + + col0 + - 19 AND - col2
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4437
SELECT + 12 * - + ( SUM( - col1 ) ) AS col1 FROM tab2 AS cor0
----
2340

skipif mysql # not compatible
query I rowsort label-4437
SELECT + 12 * - + ( SUM ( - col1 ) ) AS col1 FROM tab2 AS cor0
----
2340

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 56 * + + 54 ) IS NULL
----

query I rowsort
SELECT DISTINCT 22 + ( + + col2 ) FROM tab1 AS cor0
----
118
81
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4440
SELECT ALL + CAST( - col0 AS SIGNED ) * 43 * + col1 FROM tab0 AS cor0
----
-4171
-52245
-78561

skipif mysql # not compatible
query I rowsort label-4440
SELECT ALL + CAST ( - col0 AS INTEGER ) * 43 * + col1 FROM tab0 AS cor0
----
-4171
-52245
-78561

onlyif mysql # DIV for integer division: 
query I rowsort label-4441
SELECT ALL - col0 * 80 DIV col0 + col2 AS col0 FROM tab1 AS cor0
----
-12
-21
16

skipif mysql # not compatible
query I rowsort label-4441
SELECT ALL - col0 * 80 / col0 + col2 AS col0 FROM tab1 AS cor0
----
-12
-21
16

query I rowsort
SELECT - ( + 79 ) FROM tab1
----
-79
-79
-79

query I rowsort
SELECT ALL col1 - - col1 AS col2 FROM tab2 WHERE NOT + col0 < + + 54
----
134
154

onlyif mysql # aggregate syntax: 
query II rowsort label-4444
SELECT DISTINCT SUM( ALL - col2 ) AS col0, + 78 col2 FROM tab2
----
-121
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4444
SELECT DISTINCT SUM ( ALL - col2 ) AS col0, + 78 col2 FROM tab2
----
-121
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4445
SELECT 46 * MIN( col2 ) AS col0 FROM tab0 WHERE ( - + ( col0 ) + + col0 + 93 ) < ( 79 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4445
SELECT 46 * MIN ( col2 ) AS col0 FROM tab0 WHERE ( - + ( col0 ) + + col0 + 93 ) < ( 79 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4446
SELECT - - COUNT( * ) + + SUM( DISTINCT 19 ) AS col1 FROM tab2 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-4446
SELECT - - COUNT ( * ) + + SUM ( DISTINCT 19 ) AS col1 FROM tab2 AS cor0
----
22

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 - + ( - - col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 82 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 9 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + 16, col1 - + + 22 + + - 29 * + col0 * 83 - + col1 AS col0 FROM tab0 AS cor0
----
16
-209431
16
-233501
16
-36127

query I rowsort
SELECT DISTINCT + col0 + - 85 FROM tab2 AS cor0 WHERE + col0 + - col0 = - - 91 + - 59
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4452
SELECT * FROM tab2 WHERE + col1 * - col0 BETWEEN NULL AND - - 9 * + CAST( + col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4452
SELECT * FROM tab2 WHERE + col1 * - col0 BETWEEN NULL AND - - 9 * + CAST ( + col2 AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4453
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( 56 * - CAST( NULL AS SIGNED ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4453
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( 56 * - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 95 - - col2 AS col1 FROM tab2 cor0
----
-37
-55
-72

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 85 * - ( - col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN + col1 + + col1 AND col1
----

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - + 4 AS col1 FROM tab0 cor0
----
-4
-4
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 50 col2 FROM tab2 AS cor0
----
50

query II rowsort
SELECT ALL 35, - col0 AS col0 FROM tab2
----
35
-46
35
-64
35
-75

query III rowsort
SELECT ALL * FROM tab1 WHERE + - col1 / + col1 NOT IN ( 83 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 36 FROM tab0 WHERE NOT NULL <= ( NULL )
----

query II rowsort
SELECT ALL + 83, col1 * + col0 AS col2 FROM tab1
----
83
425
83
4277
83
714

onlyif mysql # aggregate syntax: 
query I rowsort label-4464
SELECT ( + MIN( - + col2 ) ) AS col0 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-4464
SELECT ( + MIN ( - + col2 ) ) AS col0 FROM tab2
----
-58

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 62 - - + 80 - + col2 BETWEEN NULL AND ( NULL )
----

query II rowsort
SELECT DISTINCT col2, col2 + + col2 + col0 + - + col0 * 54 FROM tab2
----
23
-2392
40
-3312
58
-3859

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col2 + + col2 ) BETWEEN col2 * + ( - - 8 ) AND + + col1 / - ( - col0 ) + + 56
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col1 AS col1 FROM tab1 AS cor0 WHERE NOT - 30 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT col2 * col1 * - col2 * - 31 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 76 * col1 / - - 64 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4471
SELECT - col2 * + CAST( NULL AS SIGNED ) + col2 * - + 34 * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4471
SELECT - col2 * + CAST ( NULL AS INTEGER ) + col2 * - + 34 * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col2, col0 col0 FROM tab0 cor0
----
-10
87
-47
15
-99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4473
SELECT ALL COUNT( * ) * - - 30 col1 FROM tab2
----
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4473
SELECT ALL COUNT ( * ) * - - 30 col1 FROM tab2
----
90

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL BETWEEN 97 AND - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4475
SELECT ( + MIN( ALL + col1 ) ) + 96 AS col0 FROM tab2 AS cor0
----
147

skipif mysql # not compatible
query I rowsort label-4475
SELECT ( + MIN ( ALL + col1 ) ) + 96 AS col0 FROM tab2 AS cor0
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-4476
SELECT DISTINCT - 12 * - COUNT( * ) FROM tab1 cor0
----
36

skipif mysql # not compatible
query I rowsort label-4476
SELECT DISTINCT - 12 * - COUNT ( * ) FROM tab1 cor0
----
36

query I rowsort
SELECT ALL + ( - col2 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
-10
-47
-99

query I rowsort
SELECT + + col0 + - - 78 FROM tab0 AS cor0
----
165
175
93

query I rowsort
SELECT ALL 15 + - + col1 AS col1 FROM tab0
----
-6
-66
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4480
SELECT + col1 * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4480
SELECT + col1 * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE ( col0 * + 42 ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4482
SELECT DISTINCT SUM( col0 ) + - ( - SUM( - 95 ) ) AS col2 FROM tab0
----
-86

skipif mysql # not compatible
query I rowsort label-4482
SELECT DISTINCT SUM ( col0 ) + - ( - SUM ( - 95 ) ) AS col2 FROM tab0
----
-86

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 + col0 >= NULL
----

query I rowsort
SELECT DISTINCT + col1 - + 87 FROM tab2
----
-10
-20
-36

query I rowsort
SELECT ALL 26 * 8 FROM tab2
----
208
208
208

query I rowsort
SELECT ( + - 14 ) FROM tab0
----
-14
-14
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4487
SELECT ALL - COUNT( * ) * + 57 + + COUNT( 79 ) FROM tab0 cor0
----
-168

skipif mysql # not compatible
query I rowsort label-4487
SELECT ALL - COUNT ( * ) * + 57 + + COUNT ( 79 ) FROM tab0 cor0
----
-168

query I rowsort
SELECT DISTINCT - col1 + + - col2 AS col0 FROM tab0 AS cor0
----
-100
-128
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4489
SELECT - COUNT( * ) + - MAX( ALL - col2 ) AS col0 FROM tab1
----
56

skipif mysql # not compatible
query I rowsort label-4489
SELECT - COUNT ( * ) + - MAX ( ALL - col2 ) AS col0 FROM tab1
----
56

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4490
SELECT COUNT( + CAST( col0 AS DECIMAL ) ) + + 1 AS col0 FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-4490
SELECT COUNT ( + CAST ( col0 AS REAL ) ) + + 1 AS col0 FROM tab0
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4491
SELECT col1 + + 36 + 61 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4491
SELECT col1 + + 36 + 61 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * + 91 FROM tab0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT 63 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

onlyif mysql # aggregate syntax: 
query I rowsort label-4494
SELECT DISTINCT + MIN( 97 ) FROM tab1 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-4494
SELECT DISTINCT + MIN ( 97 ) FROM tab1 AS cor0
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-4495
SELECT ALL 92 DIV + - col0 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4495
SELECT ALL 92 / + - col0 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - ( - 74 ) AS col2 FROM tab0 AS cor0
----
74
74
74

query I rowsort
SELECT + 86 * col2 AS col0 FROM tab2 AS cor0
----
1978
3440
4988

query II rowsort
SELECT ( 41 ), + col2 AS col1 FROM tab0 cor0
----
41
10
41
47
41
99

onlyif mysql # DIV for integer division: 
query I rowsort label-4499
SELECT - - ( - + 11 ) DIV + col2 AS col2 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4499
SELECT - - ( - + 11 ) / + col2 AS col2 FROM tab2 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4500
SELECT ALL - + 61 * COUNT( * ) AS col2 FROM tab1 AS cor0
----
-183

skipif mysql # not compatible
query I rowsort label-4500
SELECT ALL - + 61 * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-183

onlyif mysql # aggregate syntax: 
query I rowsort label-4501
SELECT MAX( 37 ) FROM tab1
----
37

skipif mysql # not compatible
query I rowsort label-4501
SELECT MAX ( 37 ) FROM tab1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4502
SELECT DISTINCT + + MIN( - - ( + ( - 90 ) ) ) AS col2 FROM tab2 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-4502
SELECT DISTINCT + + MIN ( - - ( + ( - 90 ) ) ) AS col2 FROM tab2 AS cor0
----
-90

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN - col1 AND + col2 * 34 OR NOT col1 + + 30 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 * + col0 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
2116
4096
5625

query II rowsort
SELECT col2 + col2 AS col2, - 27 * - 43 FROM tab0 AS cor0
----
198
1161
20
1161
94
1161

query II rowsort
SELECT ALL + 46 AS col1, col1 + - - col1 * + 75 * + - col0 * col0 * - + col0 AS col1 FROM tab2
----
46
1513881677
46
2119921942
46
372310251

onlyif mysql # DIV for integer division: 
query I rowsort label-4507
SELECT + + col2 DIV + + 21 AS col2 FROM tab0 AS cor0
----
0
2
4

skipif mysql # not compatible
query I rowsort label-4507
SELECT + + col2 / + + 21 AS col2 FROM tab0 AS cor0
----
0
2
4

onlyif mysql # DIV for integer division: 
query I rowsort label-4508
SELECT col1 DIV 19 FROM tab2 cor0
----
2
3
4

skipif mysql # not compatible
query I rowsort label-4508
SELECT col1 / 19 FROM tab2 cor0
----
2
3
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4509
SELECT ALL MIN( ALL 31 ) AS col1 FROM tab2 cor0
----
31

skipif mysql # not compatible
query I rowsort label-4509
SELECT ALL MIN ( ALL 31 ) AS col1 FROM tab2 cor0
----
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * - col0 col0 FROM tab1 cor0
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-4511
SELECT MIN( 10 ) FROM tab2 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-4511
SELECT MIN ( 10 ) FROM tab2 AS cor0
----
10

query II rowsort
SELECT + col2, col2 * - + col0 AS col1 FROM tab2 AS cor0
----
23
-1058
40
-2560
58
-4350

query I rowsort
SELECT ( 65 ) AS col0 FROM tab1 AS cor0
----
65
65
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4514
SELECT - COUNT( ALL - + col0 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4514
SELECT - COUNT ( ALL - + col0 ) AS col1 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - - 23 + + col2 AS col2 FROM tab0 AS cor0
----
122
33
70

query I rowsort
SELECT - col2 - + 96 FROM tab1 cor0
----
-155
-164
-192

query I rowsort
SELECT ALL - 97 + - + 77 + - col1 AS col0 FROM tab2 AS cor0 WHERE 88 IS NULL
----

query I rowsort
SELECT ALL col2 * + 87 + 73 * - - col0 FROM tab2
----
10521
5359
8152

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 71 + + + 32 col2 FROM tab0
----
103
103
103

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) = NULL OR NOT + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 FROM tab2 WHERE + col2 / + col1 * col0 + col2 IS NOT NULL
----
-23
-40
-58

query I rowsort
SELECT - 78 + 98 FROM tab0
----
20
20
20

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4523
SELECT ALL * FROM tab2 WHERE NOT col1 + + col2 / - CAST( - ( - 14 ) AS SIGNED ) * + + col1 + - col0 <> - col2
----

skipif mysql # not compatible
query III rowsort label-4523
SELECT ALL * FROM tab2 WHERE NOT col1 + + col2 / - CAST ( - ( - 14 ) AS INTEGER ) * + + col1 + - col0 <> - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4524
SELECT DISTINCT + COUNT( - 29 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4524
SELECT DISTINCT + COUNT ( - 29 ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4525
SELECT * FROM tab2 cor0 WHERE ( 57 + + + col1 ) NOT IN ( 75, + ( - col0 ), col0 - col1, + ( - + CAST( NULL AS DECIMAL ) ) )
----

skipif mysql # not compatible
query III rowsort label-4525
SELECT * FROM tab2 cor0 WHERE ( 57 + + + col1 ) NOT IN ( 75, + ( - col0 ), col0 - col1, + ( - + CAST ( NULL AS REAL ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4526
SELECT + COUNT( * ) * + COUNT( * ) * 10 FROM tab2 AS cor0 WHERE ( + col0 ) <= + 64 * col2
----
90

skipif mysql # not compatible
query I rowsort label-4526
SELECT + COUNT ( * ) * + COUNT ( * ) * 10 FROM tab2 AS cor0 WHERE ( + col0 ) <= + 64 * col2
----
90

query I rowsort
SELECT ALL + 34 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4528
SELECT - ( + SUM( ALL + + CAST( NULL AS SIGNED ) ) ) * + + 33 AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4528
SELECT - ( + SUM ( ALL + + CAST ( NULL AS INTEGER ) ) ) * + + 33 AS col2 FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4529
SELECT ALL + SUM( ALL - + col1 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-4529
SELECT ALL + SUM ( ALL - + col1 ) FROM tab1 AS cor0
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4530
SELECT ALL CAST( + 28 AS SIGNED ) * - 76 FROM tab0 AS cor0
----
-2128
-2128
-2128

skipif mysql # not compatible
query I rowsort label-4530
SELECT ALL CAST ( + 28 AS INTEGER ) * - 76 FROM tab0 AS cor0
----
-2128
-2128
-2128

query I rowsort
SELECT - col2 AS col1 FROM tab0 AS cor0 WHERE NOT ( - col1 ) + - 40 IN ( + + col0, + ( + 98 ) * - - col2 )
----
-10
-47
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4532
SELECT ALL COUNT( * ) DIV + MAX( - + col1 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4532
SELECT ALL COUNT ( * ) / + MAX ( - + col1 ) FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4533
SELECT DISTINCT col1 DIV 14 AS col1 FROM tab1
----
0
1
3

skipif mysql # not compatible
query I rowsort label-4533
SELECT DISTINCT col1 / 14 AS col1 FROM tab1
----
0
1
3

query II rowsort
SELECT - 37, col0 FROM tab2
----
-37
46
-37
64
-37
75

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 - - col1 IS NULL
----

query II rowsort
SELECT ALL - ( + 0 ) AS col1, + 82 AS col0 FROM tab1
----
0
82
0
82
0
82

onlyif mysql # DIV for integer division: 
query I rowsort label-4537
SELECT + col1 DIV + - col1 AS col2 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4537
SELECT + col1 / + - col1 AS col2 FROM tab1
----
-1
-1
-1

query II rowsort
SELECT col1 AS col1, col2 FROM tab0
----
1
99
21
10
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4539
SELECT - MIN( ALL + - col0 ) col2 FROM tab0
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4539
SELECT - MIN ( ALL + - col0 ) col2 FROM tab0
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4540
SELECT + + CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4540
SELECT + + CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT - col1 + col1 FROM tab1 cor0 WHERE NOT - col2 BETWEEN NULL AND - + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4542
SELECT DISTINCT + MAX( DISTINCT col2 ) AS col0, 49 - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
58
52

skipif mysql # not compatible
query II rowsort label-4542
SELECT DISTINCT + MAX ( DISTINCT col2 ) AS col0, 49 - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
58
52

query I rowsort
SELECT - - 80 * col0 FROM tab1 AS cor0 WHERE 78 > 97
----

query I rowsort
SELECT DISTINCT - 43 + col0 AS col2 FROM tab0 AS cor0
----
-28
44
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4545
SELECT ALL + SUM( ALL + col1 ) AS col2 FROM tab0 cor0
----
103

skipif mysql # not compatible
query I rowsort label-4545
SELECT ALL + SUM ( ALL + col1 ) AS col2 FROM tab0 cor0
----
103

onlyif mysql # aggregate syntax: 
query II rowsort label-4546
SELECT ALL - + COUNT( * ) + - 73 AS col1, - COUNT( * ) col1 FROM tab2 AS cor0
----
-76
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4546
SELECT ALL - + COUNT ( * ) + - 73 AS col1, - COUNT ( * ) col1 FROM tab2 AS cor0
----
-76
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 61 * col0 * + 73 - - - col2 col0 FROM tab2
----
204815
284952
333917

query III rowsort
SELECT * FROM tab2 WHERE 61 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4549
SELECT DISTINCT SUM( ALL - + col1 ) AS col1 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-4549
SELECT DISTINCT SUM ( ALL - + col1 ) AS col1 FROM tab2
----
-195

query I rowsort
SELECT ALL col2 FROM tab2 WHERE NULL = + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4551
SELECT DISTINCT 19 * col2 * + + col0 - - col0 - - + 6 DIV col0 FROM tab1
----
117663
93075
95370

skipif mysql # not compatible
query I rowsort label-4551
SELECT DISTINCT 19 * col2 * + + col0 - - col0 - - + 6 / col0 FROM tab1
----
117663
93075
95370

query III rowsort
SELECT * FROM tab2 WHERE - 31 + + + col1 <= + ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4553
SELECT ALL * FROM tab1 WHERE NOT + - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4553
SELECT ALL * FROM tab1 WHERE NOT + - CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4554
SELECT ALL + ( + ( - COUNT( * ) ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4554
SELECT ALL + ( + ( - COUNT ( * ) ) ) FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4555
SELECT - col0 FROM tab0 AS cor0 WHERE - col2 NOT BETWEEN CAST( col1 AS SIGNED ) AND - col2
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-4555
SELECT - col0 FROM tab0 AS cor0 WHERE - col2 NOT BETWEEN CAST ( col1 AS INTEGER ) AND - col2
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4556
SELECT ALL ( col0 ) + - CAST( - col1 AS SIGNED ) AS col2, - col2 AS col2 FROM tab2 AS cor0
----
141
-40
142
-58
97
-23

skipif mysql # not compatible
query II rowsort label-4556
SELECT ALL ( col0 ) + - CAST ( - col1 AS INTEGER ) AS col2, - col2 AS col2 FROM tab2 AS cor0
----
141
-40
142
-58
97
-23

query III rowsort
SELECT * FROM tab2 cor0 WHERE - ( + + 46 ) >= NULL
----

query I rowsort
SELECT - 23 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - 78 * col1 AS col2 FROM tab2 WHERE NOT + col2 + + - col0 <> + ( + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4560
SELECT ALL CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4560
SELECT ALL CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT - ( col2 ) * - + ( + 38 ) + col1 FROM tab1
----
2247
2631
3662

onlyif mysql # aggregate syntax: 
query I rowsort label-4562
SELECT DISTINCT - COUNT( * ) * + 59 col0 FROM tab0 AS cor0
----
-177

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4562
SELECT DISTINCT - COUNT ( * ) * + 59 col0 FROM tab0 AS cor0
----
-177

query I rowsort
SELECT ALL + col1 * + 2 + - col0 FROM tab2 cor0
----
56
59
90

query I rowsort
SELECT - col2 * - - 3 * + 93 + + 53 + + + 57 AS col1 FROM tab1 AS cor0
----
-16351
-18862
-26674

query I rowsort
SELECT ALL + ( + - col2 ) * - col2 FROM tab1 AS cor0
----
3481
4624
9216

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT ( NOT - col2 + - 68 IS NOT NULL ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4567
SELECT DISTINCT + COUNT( * ) DIV + COUNT( * ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4567
SELECT DISTINCT + COUNT ( * ) / + COUNT ( * ) AS col1 FROM tab0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4568
SELECT col1 * + 59 / CAST( NULL AS SIGNED ), + col2 AS col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-4568
SELECT col1 * + 59 / CAST ( NULL AS INTEGER ), + col2 AS col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

onlyif mysql # DIV for integer division: 
query I rowsort label-4569
SELECT col2 DIV col2 DIV + - 47 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4569
SELECT col2 / col2 / + - 47 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL + 34 AS col0 FROM tab2
----
34
34
34

query II rowsort
SELECT ALL col0 AS col1, col0 AS col2 FROM tab1
----
51
51
85
85
91
91

onlyif mysql # aggregate syntax: 
query II rowsort label-4572
SELECT DISTINCT + COUNT( * ) AS col1, - 49 + - - MAX( col1 ) FROM tab0
----
3
32

skipif mysql # not compatible
query II rowsort label-4572
SELECT DISTINCT + COUNT ( * ) AS col1, - 49 + - - MAX ( col1 ) FROM tab0
----
3
32

query I rowsort
SELECT + 81 AS col2 FROM tab0 WHERE NOT NULL > - - col1
----

query I rowsort
SELECT ALL + col0 * + 12 FROM tab1
----
1020
1092
612

query I rowsort
SELECT DISTINCT 7 * + - 26 AS col0 FROM tab2 AS cor0
----
-182

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4576
SELECT ALL + CAST( col2 AS SIGNED ) + ( 23 ) FROM tab0 AS cor0
----
122
33
70

skipif mysql # not compatible
query I rowsort label-4576
SELECT ALL + CAST ( col2 AS INTEGER ) + ( 23 ) FROM tab0 AS cor0
----
122
33
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - - col2 col2 FROM tab1 AS cor0
----
1344
295
3196

query I rowsort
SELECT ALL 8 * + col1 + - + col0 FROM tab2 AS cor0
----
362
461
552

onlyif mysql # aggregate syntax: 
query I rowsort label-4579
SELECT 37 + COUNT( * ) AS col2 FROM tab1 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-4579
SELECT 37 + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
40

query I rowsort
SELECT + - col2 + - col1 + + - 91 * - + col1 AS col1 FROM tab0 AS cor0
----
-9
1880
7243

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 + + + col2 * + col0 * 24 IS NULL
----

query II rowsort
SELECT DISTINCT 92 AS col1, + col2 + col1 FROM tab0
----
92
100
92
128
92
31

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 = col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4584
SELECT DISTINCT - + COUNT( * ) * + 58 AS col2 FROM tab0 AS cor0
----
-174

skipif mysql # not compatible
query I rowsort label-4584
SELECT DISTINCT - + COUNT ( * ) * + 58 AS col2 FROM tab0 AS cor0
----
-174

onlyif mysql # aggregate syntax: 
query I rowsort label-4585
SELECT DISTINCT + MIN( DISTINCT 58 ) + - SUM( DISTINCT col1 ) AS col2 FROM tab2 AS cor0
----
-137

skipif mysql # not compatible
query I rowsort label-4585
SELECT DISTINCT + MIN ( DISTINCT 58 ) + - SUM ( DISTINCT col1 ) AS col2 FROM tab2 AS cor0
----
-137

onlyif mysql # DIV for integer division: 
query I rowsort label-4586
SELECT - + col0 DIV - 15 + + + col1 FROM tab2 AS cor0
----
54
72
81

skipif mysql # not compatible
query I rowsort label-4586
SELECT - + col0 / - 15 + + + col1 FROM tab2 AS cor0
----
54
72
81

query I rowsort
SELECT ALL - col0 * + 44 AS col2 FROM tab2 cor0
----
-2024
-2816
-3300

query I rowsort
SELECT DISTINCT ( - - col2 ) AS col1 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT DISTINCT - col2 + + col2 * + - col2 * col1 AS col0 FROM tab0 AS cor0
----
-178976
-2110
-9900

onlyif mysql # aggregate syntax: 
query II rowsort label-4590
SELECT ALL COUNT( * ) AS col1, COUNT( * ) AS col2 FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-4590
SELECT ALL COUNT ( * ) AS col1, COUNT ( * ) AS col2 FROM tab1 AS cor0
----
3
3

query I rowsort
SELECT + 50 + + col1 + - + col1 AS col1 FROM tab1
----
50
50
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4592
SELECT ALL + SUM( ALL - 45 ) - COUNT( * ) AS col1 FROM tab2
----
-138

skipif mysql # not compatible
query I rowsort label-4592
SELECT ALL + SUM ( ALL - 45 ) - COUNT ( * ) AS col1 FROM tab2
----
-138

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 + col2 + + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + ( + ( col2 ) ) FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT ALL + col0 AS col0 FROM tab1 AS cor0 WHERE NOT - 4 / + col0 * + col1 IN ( col1 )
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4596
SELECT - - SUM( ALL + + col1 ) col0 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4596
SELECT - - SUM ( ALL + + col1 ) col0 FROM tab2 AS cor0
----
195

query II rowsort
SELECT ALL 43, + col2 FROM tab1 AS cor0
----
43
59
43
68
43
96

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab1 AS cor0 WHERE col2 * col0 NOT BETWEEN NULL AND + + col2 + - col1
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4599
SELECT - + COUNT( + 26 ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4599
SELECT - + COUNT ( + 26 ) FROM tab1 cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4600
SELECT - COUNT( * ) FROM tab2 cor0 WHERE NOT + CAST( - col0 AS SIGNED ) - + ( + 93 ) BETWEEN NULL AND 22 + CAST( NULL AS DECIMAL )
----
0

skipif mysql # not compatible
query I rowsort label-4600
SELECT - COUNT ( * ) FROM tab2 cor0 WHERE NOT + CAST ( - col0 AS INTEGER ) - + ( + 93 ) BETWEEN NULL AND 22 + CAST ( NULL AS REAL )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 * 22 col2 FROM tab0 AS cor0
----
-1914
-2134
-330

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4602
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 20 + + 37 * - - col1 NOT BETWEEN + 50 / + + ( - CAST( NULL AS SIGNED ) ) * - col2 + + 56 + + - col2 + - - 22 AND - 22
----

skipif mysql # not compatible
query III rowsort label-4602
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 20 + + 37 * - - col1 NOT BETWEEN + 50 / + + ( - CAST ( NULL AS INTEGER ) ) * - col2 + + 56 + + - col2 + - - 22 AND - 22
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4603
SELECT - SUM( + 73 ) AS col1 FROM tab1 AS cor0
----
-219

skipif mysql # not compatible
query I rowsort label-4603
SELECT - SUM ( + 73 ) AS col1 FROM tab1 AS cor0
----
-219

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4604
SELECT DISTINCT + CAST( + + 38 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-4604
SELECT DISTINCT + CAST ( + + 38 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
38

query I rowsort
SELECT DISTINCT col0 + + ( col1 ) AS col2 FROM tab1
----
138
65
90

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( - - col0, col2, + + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4607
SELECT 98 DIV + - col2 FROM tab0
----
-2
-9
0

skipif mysql # not compatible
query I rowsort label-4607
SELECT 98 / + - col2 FROM tab0
----
-2
-9
0

query I rowsort
SELECT - col0 * - 72 AS col0 FROM tab1
----
3672
6120
6552

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col1 * - - col2 col2 FROM tab2
----
-237160
-260362
-59823

onlyif mysql # aggregate syntax: 
query I rowsort label-4610
SELECT DISTINCT 68 * - SUM( - 8 ) FROM tab1
----
1632

skipif mysql # not compatible
query I rowsort label-4610
SELECT DISTINCT 68 * - SUM ( - 8 ) FROM tab1
----
1632

query I rowsort
SELECT DISTINCT - col2 * + - col2 + col1 AS col2 FROM tab2
----
1677
3431
580

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4612
SELECT ALL + CAST( NULL AS DECIMAL ) * + 9 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4612
SELECT ALL + CAST ( NULL AS REAL ) * + 9 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 8 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-8
-8
-8

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 * - col0 IN ( + ( - col2 ) * + col0, - col0 )
----

query I rowsort
SELECT DISTINCT + - 90 + + + col2 AS col0 FROM tab0 cor0
----
-43
-80
9

onlyif mysql # aggregate syntax: 
query II rowsort label-4616
SELECT ALL - - 93 + + COUNT( * ) col2, COUNT( * ) FROM tab2 AS cor0
----
96
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4616
SELECT ALL - - 93 + + COUNT ( * ) col2, COUNT ( * ) FROM tab2 AS cor0
----
96
3

query I rowsort
SELECT + 75 + + - 19 + + + 67 * + col1 FROM tab1
----
3205
391
994

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NOT NULL NOT BETWEEN - col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4619
SELECT DISTINCT 21 DIV col2 + + CAST( - col1 AS SIGNED ) FROM tab0 AS cor0
----
-1
-19
-81

skipif mysql # not compatible
query I rowsort label-4619
SELECT DISTINCT 21 / col2 + + CAST ( - col1 AS INTEGER ) FROM tab0 AS cor0
----
-1
-19
-81

query I rowsort
SELECT col2 + - - col0 * - + 36 + - ( - + 12 ) FROM tab2 cor0
----
-1621
-2252
-2630

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 + - 78 IS NOT NULL
----

query I rowsort
SELECT + 96 + - col0 AS col1 FROM tab1 AS cor0
----
11
45
5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 9 * col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4624
SELECT ALL + - MIN( DISTINCT + ( + 80 ) ) FROM tab0 cor0
----
-80

skipif mysql # not compatible
query I rowsort label-4624
SELECT ALL + - MIN ( DISTINCT + ( + 80 ) ) FROM tab0 cor0
----
-80

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 + + col1 >= + 16 * col1
----
85
5
59

query II rowsort
SELECT + + col1, col1 + col1 FROM tab2 cor0
----
51
102
67
134
77
154

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab1 AS cor0 WHERE NULL <> - col0 - ( + 15 ) / col0 / + col2 * - - col0 * col1 / + + 29 * + - 41 / - - 45
----

query I rowsort
SELECT + ( - 34 ) AS col2 FROM tab2 AS cor0
----
-34
-34
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4629
SELECT MAX( DISTINCT + 58 ) AS col1 FROM tab1
----
58

skipif mysql # not compatible
query I rowsort label-4629
SELECT MAX ( DISTINCT + 58 ) AS col1 FROM tab1
----
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - - col0 + + 36 * - 63 col1 FROM tab2
----
-2126
-2127
-2171

query I rowsort
SELECT ALL col1 - + 79 FROM tab1
----
-32
-65
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4632
SELECT - COUNT( * ) - 83 AS col2 FROM tab1
----
-86

skipif mysql # not compatible
query I rowsort label-4632
SELECT - COUNT ( * ) - 83 AS col2 FROM tab1
----
-86

query I rowsort
SELECT ALL col2 + - col1 + 81 AS col0 FROM tab2
----
44
53
72

query I rowsort
SELECT - 40 - + 46 AS col1 FROM tab0
----
-86
-86
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4635
SELECT DISTINCT 14 + + + col0 / - + CAST( NULL AS SIGNED ) col2 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4635
SELECT DISTINCT 14 + + + col0 / - + CAST ( NULL AS INTEGER ) col2 FROM tab1
----
NULL

query I rowsort
SELECT + - ( + 24 ) FROM tab2 cor0
----
-24
-24
-24

query I rowsort
SELECT ALL - 40 AS col2 FROM tab0 cor0
----
-40
-40
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4638
SELECT + ( + ( COUNT( * ) ) ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4638
SELECT + ( + ( COUNT ( * ) ) ) AS col2 FROM tab0 AS cor0
----
3

query II rowsort
SELECT DISTINCT ( + col0 ), col1 FROM tab2 AS cor0
----
46
51
64
77
75
67

onlyif mysql # aggregate syntax: 
query II rowsort label-4640
SELECT COUNT( * ) AS col0, SUM( - + col0 ) FROM tab1
----
3
-227

skipif mysql # not compatible
query II rowsort label-4640
SELECT COUNT ( * ) AS col0, SUM ( - + col0 ) FROM tab1
----
3
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-4641
SELECT ALL MAX( DISTINCT + 87 ) FROM tab1
----
87

skipif mysql # not compatible
query I rowsort label-4641
SELECT ALL MAX ( DISTINCT + 87 ) FROM tab1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4642
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE NOT NULL NOT IN ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-4642
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE NOT NULL NOT IN ( col1 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col1 col1 FROM tab0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4644
SELECT MIN( DISTINCT + + col2 ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-4644
SELECT MIN ( DISTINCT + + col2 ) FROM tab0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4645
SELECT DISTINCT - ( - - 13 ) * - + MIN( ALL + col1 ) * + + COUNT( * ) AS col1 FROM tab2
----
1989

skipif mysql # not compatible
query I rowsort label-4645
SELECT DISTINCT - ( - - 13 ) * - + MIN ( ALL + col1 ) * + + COUNT ( * ) AS col1 FROM tab2
----
1989

onlyif mysql # aggregate syntax: 
query II rowsort label-4646
SELECT DISTINCT - COUNT( * ) AS col0, - 26 AS col0 FROM tab1
----
-3
-26

skipif mysql # not compatible
query II rowsort label-4646
SELECT DISTINCT - COUNT ( * ) AS col0, - 26 AS col0 FROM tab1
----
-3
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-4647
SELECT ALL 86 + - 0 + - + 40 + - - COUNT( * ) col2 FROM tab0
----
49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4647
SELECT ALL 86 + - 0 + - + 40 + - - COUNT ( * ) col2 FROM tab0
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-4648
SELECT + - COUNT( + + ( - + 83 ) ) + - - MAX( ALL - - ( col1 ) ), COUNT( * ) AS col2 FROM tab0 AS cor0
----
78
3

skipif mysql # not compatible
query II rowsort label-4648
SELECT + - COUNT ( + + ( - + 83 ) ) + - - MAX ( ALL - - ( col1 ) ), COUNT ( * ) AS col2 FROM tab0 AS cor0
----
78
3

query I rowsort
SELECT - 95 * + col1 + - 24 AS col2 FROM tab2 AS cor0
----
-4869
-6389
-7339

query I rowsort
SELECT + col2 * + + col2 * col0 + - + 31 + ( - - 55 ) AS col1 FROM tab0 cor0
----
33159
8724
950721

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4651
SELECT CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE ( NOT - 2 IS NOT NULL )
----

skipif mysql # not compatible
query I rowsort label-4651
SELECT CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE ( NOT - 2 IS NOT NULL )
----

query II rowsort
SELECT DISTINCT - ( + ( + - col2 ) ) + + col0 AS col0, col2 FROM tab1
----
144
59
147
96
159
68

onlyif mysql # DIV for integer division: 
query I rowsort label-4653
SELECT + - col0 DIV - col0 + + - col1 - col2 + + ( - - 47 ) - ( - col1 ) - 64 DIV col0 * - - col1 * + + col1 FROM tab1 cor0
----
-11
-20
-244

skipif mysql # not compatible
query I rowsort label-4653
SELECT + - col0 / - col0 + + - col1 - col2 + + ( - - 47 ) - ( - col1 ) - 64 / col0 * - - col1 * + + col1 FROM tab1 cor0
----
-11
-20
-244

onlyif mysql # aggregate syntax: 
query I rowsort label-4654
SELECT + 65 - MIN( DISTINCT col2 ) AS col2 FROM tab2 cor0
----
42

skipif mysql # not compatible
query I rowsort label-4654
SELECT + 65 - MIN ( DISTINCT col2 ) AS col2 FROM tab2 cor0
----
42

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL AND NOT 33 + + col2 = NULL
----

query I rowsort
SELECT col2 * + col1 + - 48 AS col2 FROM tab2 AS cor0
----
1125
3032
3838

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4657
SELECT CAST( 42 AS SIGNED ) + - col2 FROM tab0 AS cor0
----
-5
-57
32

skipif mysql # not compatible
query I rowsort label-4657
SELECT CAST ( 42 AS INTEGER ) + - col2 FROM tab0 AS cor0
----
-5
-57
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4658
SELECT ALL + ( + + 15 ) AS col2 FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) <> + col1 AND - 70 / - col1 / - col1 * + + 60 * col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4658
SELECT ALL + ( + + 15 ) AS col2 FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) <> + col1 AND - 70 / - col1 / - col1 * + + 60 * col0 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4659
SELECT ALL ( + + 49 ) DIV + SUM( DISTINCT + - col0 ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4659
SELECT ALL ( + + 49 ) / + SUM ( DISTINCT + - col0 ) AS col0 FROM tab0
----
0

query I rowsort
SELECT ALL - col2 * - - col0 FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT + col2 AS col2 FROM tab0 WHERE NOT - 99 IS NULL
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4662
SELECT col1, + ( + + CAST( NULL AS SIGNED ) ) FROM tab2
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-4662
SELECT col1, + ( + + CAST ( NULL AS INTEGER ) ) FROM tab2
----
51
NULL
67
NULL
77
NULL

query I rowsort
SELECT + ( + 59 ) * - col0 * 15 FROM tab2
----
-40710
-56640
-66375

onlyif mysql # aggregate syntax: 
query II rowsort label-4664
SELECT - 34 AS col1, + COUNT( * ) FROM tab0 AS cor0
----
-34
3

skipif mysql # not compatible
query II rowsort label-4664
SELECT - 34 AS col1, + COUNT ( * ) FROM tab0 AS cor0
----
-34
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( col0 * + 15 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4666
SELECT MAX( - - col0 ) col0 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4666
SELECT MAX ( - - col0 ) col0 FROM tab2 AS cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4667
SELECT ALL - SUM( - - col1 ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-4667
SELECT ALL - SUM ( - - col1 ) FROM tab2 AS cor0
----
-195

query III rowsort
SELECT * FROM tab2 WHERE NOT 8 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4669
SELECT COUNT( * ) * + CAST( NULL AS DECIMAL ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4669
SELECT COUNT ( * ) * + CAST ( NULL AS REAL ) AS col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4670
SELECT 16 / + - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4670
SELECT 16 / + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4671
SELECT DISTINCT + - CAST( - 25 AS SIGNED ) AS col0 FROM tab1 cor0
----
25

skipif mysql # not compatible
query I rowsort label-4671
SELECT DISTINCT + - CAST ( - 25 AS INTEGER ) AS col0 FROM tab1 cor0
----
25

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE + col2 NOT BETWEEN - col0 AND col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4673
SELECT DISTINCT - col1 * + ( + col1 ) + - col2 + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4673
SELECT DISTINCT - col1 * + ( + col1 ) + - col2 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + 47 AS col1 FROM tab2 AS cor0
----
47

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col2 > NULL
----

query I rowsort
SELECT + col2 FROM tab0 WHERE - + col1 NOT BETWEEN - col0 AND col2
----
47

query I rowsort
SELECT - - col2 AS col1 FROM tab2 WHERE NULL IS NULL
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4678
SELECT ALL + CAST( NULL AS SIGNED ) * + col0 AS col2, - 12 AS col1 FROM tab2
----
NULL
-12
NULL
-12
NULL
-12

skipif mysql # not compatible
query II rowsort label-4678
SELECT ALL + CAST ( NULL AS INTEGER ) * + col0 AS col2, - 12 AS col1 FROM tab2
----
NULL
-12
NULL
-12
NULL
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4679
SELECT COUNT( col2 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4679
SELECT COUNT ( col2 ) AS col2 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4680
SELECT DISTINCT - 76 + - + col0 FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4680
SELECT DISTINCT - 76 + - + col0 FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 54 col2 FROM tab1
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4682
SELECT ALL CAST( NULL AS SIGNED ) + SUM( DISTINCT + col2 ), CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4682
SELECT ALL CAST ( NULL AS INTEGER ) + SUM ( DISTINCT + col2 ), CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL

query I rowsort
SELECT col2 * + + col0 * - col1 AS col2 FROM tab2
----
-197120
-291450
-53958

query I rowsort
SELECT + col2 * - + 81 FROM tab1
----
-4779
-5508
-7776

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4685
SELECT * FROM tab2 AS cor0 WHERE + CAST( - ( col2 ) AS SIGNED ) + - - 98 < - CAST( - - col1 AS SIGNED ) + + col2 * ( 20 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4685
SELECT * FROM tab2 AS cor0 WHERE + CAST ( - ( col2 ) AS INTEGER ) + - - 98 < - CAST ( - - col1 AS INTEGER ) + + col2 * ( 20 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col1 + + - 78 FROM tab2 AS cor0
----
-1
-11
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4687
SELECT COUNT( DISTINCT + CAST( 58 AS SIGNED ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-4687
SELECT COUNT ( DISTINCT + CAST ( 58 AS INTEGER ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4688
SELECT - MAX( - + col1 ) AS col2 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-4688
SELECT - MAX ( - + col1 ) AS col2 FROM tab1 AS cor0
----
5

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE NOT col1 - + col1 <= - - col1 * - + col2 + + 81 + - - col2
----
10
47

query I rowsort
SELECT ALL 67 * - + col0 AS col1 FROM tab2 AS cor0
----
-3082
-4288
-5025

query II rowsort
SELECT DISTINCT + col0, + col0 AS col1 FROM tab2 AS cor0
----
46
46
64
64
75
75

query I rowsort
SELECT ALL - 40 * + + 76 FROM tab0 AS cor0
----
-3040
-3040
-3040

onlyif mysql # DIV for integer division: 
query I rowsort label-4693
SELECT + - 51 DIV - - col1 FROM tab1 AS cor0
----
-1
-10
-3

skipif mysql # not compatible
query I rowsort label-4693
SELECT + - 51 / - - col1 FROM tab1 AS cor0
----
-1
-10
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4694
SELECT DISTINCT - - 98 DIV COUNT( * ) AS col2 FROM tab2 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-4694
SELECT DISTINCT - - 98 / COUNT ( * ) AS col2 FROM tab2 AS cor0
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-4695
SELECT - - 81 DIV + - 79 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4695
SELECT - - 81 / + - 79 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-4696
SELECT DISTINCT col0 DIV - col0, - col2 * col2 AS col0 FROM tab2
----
-1
-1600
-1
-3364
-1
-529

skipif mysql # not compatible
query II rowsort label-4696
SELECT DISTINCT col0 / - col0, - col2 * col2 AS col0 FROM tab2
----
-1
-1600
-1
-3364
-1
-529

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4697
SELECT DISTINCT * FROM tab1 WHERE NOT + CAST( - col0 AS SIGNED ) BETWEEN + col0 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4697
SELECT DISTINCT * FROM tab1 WHERE NOT + CAST ( - col0 AS INTEGER ) BETWEEN + col0 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 * + - 19 * + col1 FROM tab0
----
1843
23085
34713

query I rowsort
SELECT col1 AS col0 FROM tab2 WHERE NOT + col0 / col2 * 79 + - col1 + 23 * 83 / - col0 IS NOT NULL
----

query I rowsort
SELECT ALL ( + 10 ) FROM tab2
----
10
10
10

onlyif mysql # DIV for integer division: 
query I rowsort label-4701
SELECT DISTINCT col0 * 95 DIV + + col0 col0 FROM tab1
----
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4701
SELECT DISTINCT col0 * 95 / + + col0 col0 FROM tab1
----
95

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE - - 62 + - 31 BETWEEN + col2 + 70 + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4703
SELECT ALL COUNT( DISTINCT - + 13 ) AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-4703
SELECT ALL COUNT ( DISTINCT - + 13 ) AS col1 FROM tab1
----
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + col2 AND + 15
----

query I rowsort
SELECT - 87 AS col2 FROM tab0 cor0
----
-87
-87
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4706
SELECT COUNT( * ) DIV + COUNT( * ) AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-4706
SELECT COUNT ( * ) / + COUNT ( * ) AS col0 FROM tab1
----
1

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 63 > - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 34 + 48 AS col1 FROM tab0 cor0
----
82

query III rowsort
SELECT * FROM tab2 cor0 WHERE col1 NOT BETWEEN + - col0 AND - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - - ( - col1 ) * - col2 FROM tab1 cor0
----
1344
295
3196

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4711
SELECT - + COUNT( * ) DIV + 23 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4711
SELECT - + COUNT ( * ) / + 23 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + + 61 + 11 FROM tab1 AS cor0
----
72

query III rowsort
SELECT * FROM tab0 WHERE ( col1 BETWEEN - col2 * - - col0 AND + col2 )
----
97
1
99

query I rowsort
SELECT 82 + - ( + 44 ) AS col2 FROM tab2
----
38
38
38

query I rowsort
SELECT DISTINCT 7 + - - ( + - col2 ) FROM tab2
----
-16
-33
-51

query I rowsort
SELECT 0 + - col0 AS col2 FROM tab2
----
-46
-64
-75

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 92 BETWEEN col0 * - col2 + + col1 AND NULL
----

query I rowsort
SELECT DISTINCT col2 * + - col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

query I rowsort
SELECT DISTINCT + col1 + + - col0 FROM tab0 AS cor0
----
-66
-96
66

onlyif mysql # DIV for integer division: 
query I rowsort label-4720
SELECT ALL - col2 + + 54 DIV + + 73 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-4720
SELECT ALL - col2 + + 54 / + + 73 FROM tab2
----
-23
-40
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4721
SELECT DISTINCT + 23 * CAST( NULL AS SIGNED ) AS col2, 80 + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
NULL
77

skipif mysql # not compatible
query II rowsort label-4721
SELECT DISTINCT + 23 * CAST ( NULL AS INTEGER ) AS col2, 80 + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
NULL
77

query I rowsort
SELECT ALL col2 * - col0 * + col1 * 55 AS col0 FROM tab2 AS cor0
----
-10841600
-16029750
-2967690

onlyif mysql # aggregate syntax: 
query I rowsort label-4723
SELECT + 14 * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-4723
SELECT + 14 * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
42

query I rowsort
SELECT + col0 * col1 * - col2 AS col0 FROM tab0 AS cor0
----
-18270
-57105
-9603

query I rowsort
SELECT 28 * + + col1 * + 55 FROM tab1 AS cor0
----
21560
72380
7700

onlyif mysql # aggregate syntax: 
query II rowsort label-4726
SELECT 74, COUNT( * ) AS col1 FROM tab1
----
74
3

skipif mysql # not compatible
query II rowsort label-4726
SELECT 74, COUNT ( * ) AS col1 FROM tab1
----
74
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4727
SELECT COUNT( - 34 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4727
SELECT COUNT ( - 34 ) FROM tab0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 * - col2 * + - col0 IS NULL
----

query I rowsort
SELECT DISTINCT + - col1 + - 21 * + col0 FROM tab0 WHERE NOT + - col0 IN ( + 63 * 8, col1 * - col0, - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4730
SELECT DISTINCT COUNT( + col2 ) * - - COUNT( * ) AS col2 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-4730
SELECT DISTINCT COUNT ( + col2 ) * - - COUNT ( * ) AS col2 FROM tab2
----
9

onlyif mysql # DIV for integer division: 
query II rowsort label-4731
SELECT DISTINCT + col1, + col0 DIV - 18 FROM tab0
----
1
-5
21
-4
81
0

skipif mysql # not compatible
query II rowsort label-4731
SELECT DISTINCT + col1, + col0 / - 18 FROM tab0
----
1
-5
21
-4
81
0

query II rowsort
SELECT 92 AS col1, 18 AS col1 FROM tab0
----
92
18
92
18
92
18

onlyif mysql # aggregate syntax: 
query II rowsort label-4733
SELECT SUM( ALL - ( + 31 ) ) AS col1, - 88 + + 8 col1 FROM tab2 AS cor0
----
-93
-80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4733
SELECT SUM ( ALL - ( + 31 ) ) AS col1, - 88 + + 8 col1 FROM tab2 AS cor0
----
-93
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-4734
SELECT col2 DIV col1 + + col1 + col2 AS col0 FROM tab1
----
116
116
75

skipif mysql # not compatible
query I rowsort label-4734
SELECT col2 / col1 + + col1 + col2 AS col0 FROM tab1
----
116
116
75

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4735
SELECT * FROM tab0 WHERE NULL BETWEEN NULL AND - - col0 * - col1 + + 18 + - CAST( col2 AS DECIMAL ) - col0 + - 29 + 48
----

skipif mysql # not compatible
query III rowsort label-4735
SELECT * FROM tab0 WHERE NULL BETWEEN NULL AND - - col0 * - col1 + + 18 + - CAST ( col2 AS REAL ) - col0 + - 29 + 48
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 * - 49 NOT BETWEEN + 37 + col0 * - + ( - - col2 ) AND col2 + - 81
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4737
SELECT ALL - 69 * + ( - - SUM( - + ( + - 99 ) ) ) col2 FROM tab0 AS cor0
----
-20493

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4737
SELECT ALL - 69 * + ( - - SUM ( - + ( + - 99 ) ) ) col2 FROM tab0 AS cor0
----
-20493

onlyif mysql # DIV for integer division: 
query I rowsort label-4738
SELECT ALL + + 67 * col0 + col0 + - 75 + - col2 DIV - - 82 * - 16 * + col0 AS col2 FROM tab2 AS cor0
----
3053
4277
5025

skipif mysql # not compatible
query I rowsort label-4738
SELECT ALL + + 67 * col0 + col0 + - 75 + - col2 / - - 82 * - 16 * + col0 AS col2 FROM tab2 AS cor0
----
3053
4277
5025

query I rowsort
SELECT ALL + col2 + - 92 * + + col0 FROM tab1 AS cor0
----
-4596
-7761
-8304

query I rowsort
SELECT ALL + 79 - col1 * - + col0 FROM tab1 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4741
SELECT DISTINCT + + MAX( - col0 ) + - COUNT( * ) FROM tab0 cor0
----
-18

skipif mysql # not compatible
query I rowsort label-4741
SELECT DISTINCT + + MAX ( - col0 ) + - COUNT ( * ) FROM tab0 cor0
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-4742
SELECT ALL - 93 DIV col0 * col0 + + ( - col2 ) * - - col1 FROM tab2
----
-1265
-3144
-3961

skipif mysql # not compatible
query I rowsort label-4742
SELECT ALL - 93 / col0 * col0 + + ( - col2 ) * - - col1 FROM tab2
----
-1265
-3144
-3961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - 52 ) + + col1 + + - col2 col2 FROM tab1
----
-106
-134
-73

query I rowsort
SELECT - col1 FROM tab1 WHERE NULL < NULL
----

query I rowsort
SELECT ALL - 79 + - 52 FROM tab0 WHERE + - 91 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4746
SELECT DISTINCT - ( + - MIN( 47 ) ) - + 86 FROM tab0
----
-39

skipif mysql # not compatible
query I rowsort label-4746
SELECT DISTINCT - ( + - MIN ( 47 ) ) - + 86 FROM tab0
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4747
SELECT DISTINCT + AVG ( + - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4747
SELECT DISTINCT + AVG ( + - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - - col0 * + col0 col1 FROM tab2
----
2139
4136
5683

query I rowsort
SELECT + 62 + col0 AS col0 FROM tab2 AS cor0
----
108
126
137

query I rowsort
SELECT 89 + + col0 AS col2 FROM tab2
----
135
153
164

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 AS col1, + col1 col2 FROM tab0
----
15
81
87
21
97
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4752
SELECT ALL - CAST( NULL AS SIGNED ), COUNT( * ) AS col1 FROM tab0 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-4752
SELECT ALL - CAST ( NULL AS INTEGER ), COUNT ( * ) AS col1 FROM tab0 AS cor0
----
NULL
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4754
SELECT DISTINCT + col0 * CAST( - + 1 AS SIGNED ) * 97 DIV - col2 FROM tab0 AS cor0
----
30
843
95

skipif mysql # not compatible
query I rowsort label-4754
SELECT DISTINCT + col0 * CAST ( - + 1 AS INTEGER ) * 97 / - col2 FROM tab0 AS cor0
----
30
843
95

query II rowsort
SELECT ALL + - col0, - col1 AS col2 FROM tab2 AS cor0
----
-46
-51
-64
-77
-75
-67

query II rowsort
SELECT DISTINCT col1 AS col1, col2 * col0 AS col1 FROM tab2 AS cor0
----
51
1058
67
4350
77
2560

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 84 * - col1 NOT BETWEEN - 25 + + 32 AND - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4758
SELECT col1 DIV - 78 * col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4758
SELECT col1 / - 78 * col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 27 * + 86 col2 FROM tab1
----
-2322
-2322
-2322

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4760
SELECT CAST( NULL AS SIGNED ) * + - 62 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4760
SELECT CAST ( NULL AS INTEGER ) * + - 62 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4761
SELECT ALL + COUNT( * ) * 71 AS col1, 86 col1 FROM tab1
----
213
86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4761
SELECT ALL + COUNT ( * ) * 71 AS col1, 86 col1 FROM tab1
----
213
86

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL BETWEEN NULL AND col0 - col0 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - 5 * + col1 * 10 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 * + 26 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 2 * - - 79 AS col1 FROM tab2 AS cor0
----
-158
-158
-158

onlyif mysql # DIV for integer division: 
query I rowsort label-4766
SELECT ALL - 25 DIV - - col0 col0 FROM tab0
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4766
SELECT ALL - 25 / - - col0 col0 FROM tab0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4767
SELECT + MAX( ALL - + col1 ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-4767
SELECT + MAX ( ALL - + col1 ) FROM tab1 AS cor0
----
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 9 col2, col2 + - - col0 AS col1 FROM tab0 AS cor0
----
9
196
9
62
9
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4769
SELECT + ( ( + COUNT( * ) ) ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4769
SELECT + ( ( + COUNT ( * ) ) ) FROM tab0 cor0
----
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT + col0 + - + col0 / ( + col0 ) BETWEEN NULL AND + - col2 + + + 49 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4771
SELECT - col1 DIV + 62 col2 FROM tab2 cor0
----
-1
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4771
SELECT - col1 / + 62 col2 FROM tab2 cor0
----
-1
-1
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN ( NULL ) AND + col1 + 54
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4773
SELECT ALL + 18 + - COUNT( * ) + - 85 FROM tab1 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-4773
SELECT ALL + 18 + - COUNT ( * ) + - 85 FROM tab1 AS cor0
----
-70

query I rowsort
SELECT DISTINCT - col2 + + 12 FROM tab0 cor0
----
-35
-87
2

query I rowsort
SELECT ALL + col2 * + col1 * col1 - - + 3 + 76 * - + 90 * + col1 FROM tab2
----
-197915
-289014
-289517

query I rowsort
SELECT DISTINCT col0 + - + 4 FROM tab0
----
11
83
93

query II rowsort
SELECT ALL col0 - - + col0, col2 FROM tab2
----
128
40
150
58
92
23

query I rowsort
SELECT DISTINCT col2 - col0 * + + 7 * + col1 FROM tab2 AS cor0
----
-16399
-34456
-35117

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( + - 90 ) col1 FROM tab1 AS cor0
----
-90
-90
-90

query II rowsort
SELECT col0 * 6, - col2 - + col2 AS col1 FROM tab0 AS cor0
----
522
-20
582
-198
90
-94

query I rowsort
SELECT - - ( ( - col2 ) ) FROM tab2 AS cor0
----
-23
-40
-58

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( NULL ) <> 95
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4783
SELECT ALL - - ( COUNT( - col1 ) ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4783
SELECT ALL - - ( COUNT ( - col1 ) ) FROM tab2 cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4784
SELECT ALL - 73 DIV col0 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4784
SELECT ALL - 73 / col0 FROM tab2
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4785
SELECT DISTINCT + MAX( DISTINCT 50 ) col2 FROM tab1
----
50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4785
SELECT DISTINCT + MAX ( DISTINCT 50 ) col2 FROM tab1
----
50

query I rowsort
SELECT ALL + col2 AS col0 FROM tab2 cor0 WHERE + col2 * + col1 BETWEEN - col1 + + col2 + + col0 AND + col1 + - col0 + - ( 88 ) / + - col1 + col2 * + - col2 * - - 70
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4787
SELECT ALL + + SUM( DISTINCT - - col1 ) AS col2 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-4787
SELECT ALL + + SUM ( DISTINCT - - col1 ) AS col2 FROM tab0 AS cor0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-4788
SELECT - SUM( - - col0 ) AS col2 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-4788
SELECT - SUM ( - - col0 ) AS col2 FROM tab1 AS cor0
----
-227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - 89 col2 FROM tab2 AS cor0
----
-4094
-5696
-6675

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col1 - - col1 * - col1 <= col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4791
SELECT ALL - CAST( - - col1 AS SIGNED ) FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-4791
SELECT ALL - CAST ( - - col1 AS INTEGER ) FROM tab1
----
-14
-47
-5

query I rowsort
SELECT ALL 4 * 44 * - 6 FROM tab0
----
-1056
-1056
-1056

query I rowsort
SELECT 30 * - - col2 AS col0 FROM tab1
----
1770
2040
2880

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( col1 ) + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4795
SELECT AVG ( DISTINCT col1 ) * + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4795
SELECT AVG ( DISTINCT col1 ) * + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - col0 + + + col2 FROM tab2 AS cor0
----
-17
-23
-24

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 + col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT col1 * 7 * + 54 FROM tab0
----
30618
378
7938

query I rowsort
SELECT ALL 42 * - 67 FROM ( tab0 cor0 CROSS JOIN tab2 cor1 )
----
9 values hashing to 2d6c96ae19db54cf07c83cbee88e1cc7

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL < NULL OR NOT ( NULL ) IS NULL
----

query I rowsort
SELECT col1 * + - ( + + 74 ) + col2 AS col2 FROM tab0
----
-1544
-5947
25

query I rowsort
SELECT 60 + - + col2 + - - 4 * + col0 AS col1 FROM tab0 AS cor0
----
349
398
73

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 + - 39 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL > ( + 3 ) + col1 + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 71 + 95 + - col0 + col0 * + 87 col0 FROM tab0 AS cor0
----
1456
7648
8508

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4806
SELECT DISTINCT + - CAST( + 85 AS SIGNED ) AS col0, - col1 * + 76 * - col2 FROM tab1 AS cor0
----
-85
102144
-85
22420
-85
242896

skipif mysql # not compatible
query II rowsort label-4806
SELECT DISTINCT + - CAST ( + 85 AS INTEGER ) AS col0, - col1 * + 76 * - col2 FROM tab1 AS cor0
----
-85
102144
-85
22420
-85
242896

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col1 + col1 col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL = + 63 * - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 22 col2 FROM tab1 AS cor0
----
-22
-22
-22

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL NOT BETWEEN NULL AND ( NULL ) )
----

query I rowsort
SELECT DISTINCT 10 - - - col0 FROM tab0
----
-5
-77
-87

query I rowsort
SELECT ALL + col0 * - 93 + + - col2 + - + 90 FROM tab1
----
-4929
-8054
-8621

onlyif mysql # aggregate syntax: 
query I rowsort label-4813
SELECT ALL - MAX( + - col2 ) AS col2 FROM tab0 WHERE col0 IS NOT NULL
----
10

skipif mysql # not compatible
query I rowsort label-4813
SELECT ALL - MAX ( + - col2 ) AS col2 FROM tab0 WHERE col0 IS NOT NULL
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4814
SELECT 10 - COUNT( * ) + + - 34 - - + MIN( - 44 ) AS col2 FROM tab1
----
-71

skipif mysql # not compatible
query I rowsort label-4814
SELECT 10 - COUNT ( * ) + + - 34 - - + MIN ( - 44 ) AS col2 FROM tab1
----
-71

query I rowsort
SELECT ( - col0 ) - + 67 AS col1 FROM tab1
----
-118
-152
-158

query I rowsort
SELECT + col2 - 85 FROM tab1
----
-17
-26
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4817
SELECT DISTINCT + CAST( NULL AS SIGNED ) - - COUNT( ALL - col2 ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4817
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - - COUNT ( ALL - col2 ) AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4818
SELECT 47 AS col0, + MAX( ALL + col1 ) AS col0 FROM tab0 AS cor0
----
47
81

skipif mysql # not compatible
query II rowsort label-4818
SELECT 47 AS col0, + MAX ( ALL + col1 ) AS col0 FROM tab0 AS cor0
----
47
81

query I rowsort
SELECT DISTINCT col1 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4820
SELECT ALL + MIN( ALL 44 ) AS col1 FROM tab2
----
44

skipif mysql # not compatible
query I rowsort label-4820
SELECT ALL + MIN ( ALL 44 ) AS col1 FROM tab2
----
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - + col1 col2 FROM tab2
----
-28
-37
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4822
SELECT - 85 + - COUNT( * ) AS col1 FROM tab1
----
-88

skipif mysql # not compatible
query I rowsort label-4822
SELECT - 85 + - COUNT ( * ) AS col1 FROM tab1
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4823
SELECT ALL ( SUM( ( col0 ) ) ) + COUNT( * ) FROM tab1
----
230

skipif mysql # not compatible
query I rowsort label-4823
SELECT ALL ( SUM ( ( col0 ) ) ) + COUNT ( * ) FROM tab1
----
230

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 * 35 BETWEEN ( col1 + - col2 ) AND col2
----

query I rowsort
SELECT DISTINCT col2 * ( - 83 ) + 76 FROM tab0 WHERE NULL NOT IN ( + col2 - + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 80 col1 FROM tab2
----
80
80
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4827
SELECT ALL + CAST( - 33 AS SIGNED ) + + col0 FROM tab1
----
18
52
58

skipif mysql # not compatible
query I rowsort label-4827
SELECT ALL + CAST ( - 33 AS INTEGER ) + + col0 FROM tab1
----
18
52
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4828
SELECT - COUNT( * ) AS col1 FROM tab0 WHERE NOT - 9 - 5 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4828
SELECT - COUNT ( * ) AS col1 FROM tab0 WHERE NOT - 9 - 5 IS NOT NULL
----
0

query I rowsort
SELECT - col0 AS col1 FROM tab2 WHERE NOT col1 + - col1 IS NULL
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4830
SELECT ALL + 1 FROM tab0 WHERE NOT 19 * col1 NOT BETWEEN NULL AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4830
SELECT ALL + 1 FROM tab0 WHERE NOT 19 * col1 NOT BETWEEN NULL AND - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT 23 * col2 FROM tab0
----
1081
2277
230

onlyif mysql # DIV for integer division: 
query I rowsort label-4832
SELECT col1 * - 52 + + 44 DIV - col1 AS col1 FROM tab1 AS cor0
----
-2444
-268
-731

skipif mysql # not compatible
query I rowsort label-4832
SELECT col1 * - 52 + + 44 / - col1 AS col1 FROM tab1 AS cor0
----
-2444
-268
-731

query I rowsort
SELECT + ( + ( col1 ) ) + + 15 FROM tab2 AS cor0
----
66
82
92

query I rowsort
SELECT 39 + 93 AS col0 FROM tab0 AS cor0
----
132
132
132

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col2 col1 FROM tab1 cor0
----
-23
-26
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + col0 + col0 col1 FROM tab2 AS cor0
----
-2070
-4032
-5550

onlyif mysql # aggregate syntax: 
query I rowsort label-4837
SELECT DISTINCT + COUNT( * ) FROM tab0 cor0 CROSS JOIN tab2
----
9

skipif mysql # not compatible
query I rowsort label-4837
SELECT DISTINCT + COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab2
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4838
SELECT - - 85 DIV - COUNT( - col0 ) - - COUNT( * ) FROM tab2 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-4838
SELECT - - 85 / - COUNT ( - col0 ) - - COUNT ( * ) FROM tab2 AS cor0
----
-25

query I rowsort
SELECT DISTINCT + 81 FROM tab0 AS cor0 WHERE NOT ( - col1 ) > + col2 * - col0
----

query I rowsort
SELECT 42 * + col2 - + col1 AS col0 FROM tab1 AS cor0
----
2473
2809
4018

query I rowsort
SELECT - col0 - 41 FROM tab0 AS cor0
----
-128
-138
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-4842
SELECT + - COUNT( + col1 ) - - ( + 83 ) FROM tab1 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-4842
SELECT + - COUNT ( + col1 ) - - ( + 83 ) FROM tab1 AS cor0
----
80

query I rowsort
SELECT - + 88 - col1 AS col2 FROM tab1 AS cor0
----
-102
-135
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4844
SELECT - 41 + COUNT( * ) DIV COUNT( * ) col2 FROM tab2 AS cor0
----
-40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4844
SELECT - 41 + COUNT ( * ) / COUNT ( * ) col2 FROM tab2 AS cor0
----
-40

query I rowsort
SELECT ALL col2 * col0 + - 67 AS col0 FROM tab1 AS cor0
----
4829
4948
6121

query I rowsort
SELECT - - 19 + - col2 AS col0 FROM tab2 cor0
----
-21
-39
-4

query I rowsort
SELECT ALL + - 3 * + col1 AS col2 FROM tab1 AS cor0
----
-141
-15
-42

query I rowsort
SELECT ALL + 64 + - col0 AS col1 FROM tab0 AS cor0
----
-23
-33
49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4849
SELECT + CAST( NULL AS DECIMAL ) * COUNT( * ) + COUNT( * ) / 97 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4849
SELECT + CAST ( NULL AS REAL ) * COUNT ( * ) + COUNT ( * ) / 97 AS col2 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE col0 + col1 <= ( NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - 90 ) = NULL
----

query I rowsort
SELECT - col0 FROM tab2 WHERE ( col2 + col0 ) BETWEEN 90 AND ( + ( - col1 ) ) + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 28 col2 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4854
SELECT ALL - SUM( ALL ( + 76 ) ) - + 61 AS col0 FROM tab1
----
-289

skipif mysql # not compatible
query I rowsort label-4854
SELECT ALL - SUM ( ALL ( + 76 ) ) - + 61 AS col0 FROM tab1
----
-289

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4855
SELECT DISTINCT CAST( NULL AS SIGNED ) + col0 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4855
SELECT DISTINCT CAST ( NULL AS INTEGER ) + col0 AS col2 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT col1 * + col2 FROM tab0 WHERE col1 * + ( col0 ) NOT IN ( col0 )
----
210
3807

query I rowsort
SELECT ALL + ( 39 ) * col1 FROM tab1 WHERE NULL BETWEEN col0 + - col0 AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4858
SELECT - MAX( DISTINCT 42 ) AS col1 FROM tab1
----
-42

skipif mysql # not compatible
query I rowsort label-4858
SELECT - MAX ( DISTINCT 42 ) AS col1 FROM tab1
----
-42

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 > + 88
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( 24 ) - col1 * - col0 <> + 5
----

query I rowsort
SELECT DISTINCT - 83 * - - col0 FROM tab0 cor0
----
-1245
-7221
-8051

query I rowsort
SELECT ALL - col1 * col0 - + 49 AS col2 FROM tab0 AS cor0
----
-1264
-146
-1876

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4863
SELECT DISTINCT + CAST( 41 AS SIGNED ) DIV col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4863
SELECT DISTINCT + CAST ( 41 AS INTEGER ) / col0 FROM tab2 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL NOT IN ( 17 + - col1 )
----

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab0 WHERE NOT NULL BETWEEN + col0 + col0 AND 34
----

query I rowsort
SELECT DISTINCT 82 + + 97 AS col1 FROM tab1 WHERE NOT ( 54 + col1 > col2 )
----
179

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4867
SELECT DISTINCT * FROM tab2 WHERE NOT ( CAST( col0 AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4867
SELECT DISTINCT * FROM tab2 WHERE NOT ( CAST ( col0 AS INTEGER ) ) IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM ( tab0 AS cor0 CROSS JOIN tab0 cor1 ) WHERE ( + 75 ) > ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <= + + 37 + + ( col1 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 - + col1 NOT IN ( 63 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4871
SELECT - 11 - - 73 DIV + 3 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

skipif mysql # not compatible
query I rowsort label-4871
SELECT - 11 - - 73 / + 3 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

onlyif mysql # aggregate syntax: 
query I rowsort label-4872
SELECT + COUNT( DISTINCT col2 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4872
SELECT + COUNT ( DISTINCT col2 ) FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( + col1 ) * col1 col2 FROM tab1 AS cor0
----
-196
-2209
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4874
SELECT DISTINCT + col2 + + + CAST( + col0 AS SIGNED ) - col0 AS col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-4874
SELECT DISTINCT + col2 + + + CAST ( + col0 AS INTEGER ) - col0 AS col2 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4875
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < ( CAST( + 64 AS SIGNED ) * col0 )
----

skipif mysql # not compatible
query III rowsort label-4875
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < ( CAST ( + 64 AS INTEGER ) * col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4876
SELECT - CAST( NULL AS SIGNED ) + - MAX( + col2 ) * COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4876
SELECT - CAST ( NULL AS INTEGER ) + - MAX ( + col2 ) * COUNT ( * ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4877
SELECT + CAST( NULL AS SIGNED ) + + + COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4877
SELECT + CAST ( NULL AS INTEGER ) + + + COUNT ( * ) FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT ALL col1 AS col1, col0 * + + col0 FROM tab2 cor0
----
51
2116
67
5625
77
4096

query I rowsort
SELECT + col2 AS col0 FROM tab2 AS cor0 WHERE NOT + col0 < - col1
----
23
40
58

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE NULL <= - col1 * - col2 / - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4881
SELECT ALL + ( MAX( DISTINCT + + col1 ) ) AS col1 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-4881
SELECT ALL + ( MAX ( DISTINCT + + col1 ) ) AS col1 FROM tab1
----
47

query I rowsort
SELECT DISTINCT col2 + - col1 FROM tab1 WHERE NOT + col0 NOT BETWEEN + + 40 * - 19 AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col2 FROM tab2 WHERE NOT - col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - - col2 <= ( NULL )
----

query I rowsort
SELECT - 31 * + + 54 AS col0 FROM tab0
----
-1674
-1674
-1674

onlyif mysql # aggregate syntax: 
query I rowsort label-4886
SELECT ALL + COUNT( * ) FROM tab2 WHERE NOT - - col0 + col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4886
SELECT ALL + COUNT ( * ) FROM tab2 WHERE NOT - - col0 + col1 IS NULL
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 / 69 + 18 * + col0 IS NOT NULL
----

query II rowsort
SELECT ( col1 ), + col2 FROM tab2
----
51
23
67
58
77
40

query I rowsort
SELECT DISTINCT + ( - - col2 ) FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4890
SELECT SUM( + col1 ) AS col0 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-4890
SELECT SUM ( + col1 ) AS col0 FROM tab1 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4891
SELECT DISTINCT - - COUNT( - col0 ) + + 44 FROM tab2 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-4891
SELECT DISTINCT - - COUNT ( - col0 ) + + 44 FROM tab2 AS cor0
----
47

query I rowsort
SELECT - 6 FROM tab2 cor0 WHERE ( NULL ) = ( - - 52 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN 89 / + col0 AND + 35
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4894
SELECT ALL - + CAST( NULL AS SIGNED ) + col2 * + + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4894
SELECT ALL - + CAST ( NULL AS INTEGER ) + col2 * + + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4895
SELECT DISTINCT - MAX( - 61 ) + CAST( - 25 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-4895
SELECT DISTINCT - MAX ( - 61 ) + CAST ( - 25 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
36

query I rowsort
SELECT col2 * 91 + - 33 + + - 25 * - 62 FROM tab1
----
10253
6886
7705

query I rowsort
SELECT - col0 * col1 + - + col1 AS col1 FROM tab0
----
-1296
-1848
-98

query I rowsort
SELECT ALL 56 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) BETWEEN ( - - col2 ) AND 27
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4900
SELECT ( + + col1 ) + col0 + - + col2 * col0 + col0 * ( + col2 + col0 DIV col0 ) AS col0 FROM tab1
----
116
175
229

skipif mysql # not compatible
query I rowsort label-4900
SELECT ( + + col1 ) + col0 + - + col2 * col0 + col0 * ( + col2 + col0 / col0 ) AS col0 FROM tab1
----
116
175
229

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * - - col0 + - col0 * + col0 + 97 col1 FROM tab2 AS cor0
----
97
97
97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 30 + - 28 / - 74 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4903
SELECT ALL - 97 * CAST( NULL AS SIGNED ) + - + col0 * - col1 * - col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4903
SELECT ALL - 97 * CAST ( NULL AS INTEGER ) + - + col0 * - col1 * - col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4904
SELECT - + SUM( col0 ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-4904
SELECT - + SUM ( col0 ) FROM tab1 AS cor0
----
-227

query I rowsort
SELECT ALL + 57 * 4 + 40 AS col2 FROM tab1 AS cor0
----
268
268
268

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - col2 AS col1, 12 FROM tab0
----
-10
12
-47
12
-99
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4908
SELECT + MIN( + + col2 ) DIV - + COUNT( DISTINCT - col0 ) + ( 66 ) AS col0 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-4908
SELECT + MIN ( + + col2 ) / - + COUNT ( DISTINCT - col0 ) + ( 66 ) AS col0 FROM tab1
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4909
SELECT * FROM tab1 WHERE NOT - + CAST( NULL AS SIGNED ) * col1 >= - col0 - - + col1
----

skipif mysql # not compatible
query III rowsort label-4909
SELECT * FROM tab1 WHERE NOT - + CAST ( NULL AS INTEGER ) * col1 >= - col0 - - + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, col1 + - - col0 * - - col2 col1 FROM tab0
----
15
786
87
891
97
9604

onlyif mysql # aggregate syntax: 
query I rowsort label-4911
SELECT - MIN( col1 ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4911
SELECT - MIN ( col1 ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND + col1
----
NULL

query II rowsort
SELECT DISTINCT - 59 AS col0, col1 FROM tab1 AS cor0
----
-59
14
-59
47
-59
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4913
SELECT ALL + - CAST( + + MIN( DISTINCT - col0 ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-4913
SELECT ALL + - CAST ( + + MIN ( DISTINCT - col0 ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
75

query II rowsort
SELECT + + col2, col2 * - 39 FROM tab2 AS cor0
----
23
-897
40
-1560
58
-2262

query I rowsort
SELECT ALL + + col2 * + + col1 FROM tab0 AS cor0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4916
SELECT - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT + ( col0 ) IN ( col0 / ( - 25 ) )
----
-3

skipif mysql # not compatible
query I rowsort label-4916
SELECT - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT + ( col0 ) IN ( col0 / ( - 25 ) )
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 66 col0 FROM tab1
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-4918
SELECT + COUNT( + + col0 ) AS col1, 82 FROM tab1
----
3
82

skipif mysql # not compatible
query II rowsort label-4918
SELECT + COUNT ( + + col0 ) AS col1, 82 FROM tab1
----
3
82

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 64 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4921
SELECT DISTINCT + COUNT( * ) FROM tab2 WHERE NOT - col1 - + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4921
SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE NOT - col1 - + col0 IS NOT NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4922
SELECT ALL COUNT( * ) * - + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4922
SELECT ALL COUNT ( * ) * - + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - col0 + - ( + col2 ) AS col0 FROM tab0 cor0
----
-196
-62
-97

query I rowsort
SELECT + col1 FROM tab0 cor0 WHERE NOT ( NOT ( NULL > col2 ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4925
SELECT + 95 DIV + SUM( - col2 ) - ( - COUNT( * ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4925
SELECT + 95 / + SUM ( - col2 ) - ( - COUNT ( * ) ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4926
SELECT DISTINCT CAST( NULL AS SIGNED ) / - col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4926
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT 24 FROM tab0 AS cor0 WHERE NOT + 9 IS NULL
----
24
24
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4928
SELECT DISTINCT + 2 + MIN( ALL 43 ) FROM tab1 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-4928
SELECT DISTINCT + 2 + MIN ( ALL 43 ) FROM tab1 AS cor0
----
45

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( ( - 84 IS NULL ) )
----

query I rowsort
SELECT ALL - + 25 * - + ( - - ( + 59 ) ) - + + ( col0 ) + - - col1 + + 82 FROM tab2 AS cor0
----
1549
1562
1570

query II rowsort
SELECT - - ( - 97 ) AS col2, col0 FROM tab0 AS cor0
----
-97
15
-97
87
-97
97

query I rowsort
SELECT DISTINCT 93 + - col2 - + col0 FROM tab0 AS cor0
----
-103
-4
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4933
SELECT - COUNT( * ) * 0 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4933
SELECT - COUNT ( * ) * 0 AS col1 FROM tab1
----
0

query I rowsort
SELECT DISTINCT 94 * + + 97 FROM tab1
----
9118

onlyif mysql # aggregate syntax: 
query I rowsort label-4935
SELECT DISTINCT + COUNT( * ) + - 41 FROM tab2
----
-38

skipif mysql # not compatible
query I rowsort label-4935
SELECT DISTINCT + COUNT ( * ) + - 41 FROM tab2
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4936
SELECT 65 + - CAST( + col0 AS SIGNED ) col0 FROM tab0
----
-22
-32
50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4936
SELECT 65 + - CAST ( + col0 AS INTEGER ) col0 FROM tab0
----
-22
-32
50

query III rowsort
SELECT * FROM tab0 WHERE - + 18 + col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4938
SELECT ALL - MIN( + - 29 ) col0 FROM tab0
----
29

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4938
SELECT ALL - MIN ( + - 29 ) col0 FROM tab0
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4939
SELECT DISTINCT 42 + - ( col1 ) + 51 + CAST( - 61 AS SIGNED ) - + + ( - - ( + 9 ) ) * 71 AS col1 FROM tab1
----
-612
-621
-654

skipif mysql # not compatible
query I rowsort label-4939
SELECT DISTINCT 42 + - ( col1 ) + 51 + CAST ( - 61 AS INTEGER ) - + + ( - - ( + 9 ) ) * 71 AS col1 FROM tab1
----
-612
-621
-654

query I rowsort
SELECT ALL col2 + col0 + + 23 * - col1 FROM tab0 AS cor0 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 78 + - col0 FROM tab2 AS cor0
----
14
3
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4942
SELECT - SUM( ALL + col2 ) AS col2 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-4942
SELECT - SUM ( ALL + col2 ) AS col2 FROM tab1 AS cor0
----
-223

onlyif mysql # DIV for integer division: 
query I rowsort label-4943
SELECT 10 DIV 80 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4943
SELECT 10 / 80 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - - 89 * + 40 + + + 13 FROM tab2 AS cor0
----
3573

query I rowsort
SELECT DISTINCT + 33 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
33

query I rowsort
SELECT + col0 - + col1 + + 11 FROM tab0 AS cor0
----
-55
107
77

query I rowsort
SELECT ALL 35 * col2 - + - col2 FROM tab0 AS cor0
----
1692
3564
360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4948
SELECT - + col0 * + col1 - + + CAST( NULL AS SIGNED ) + - - ( + col0 ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4948
SELECT - + col0 * + col1 - + + CAST ( NULL AS INTEGER ) + - - ( + col0 ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4949
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST( 60 AS SIGNED ) * col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4949
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST ( 60 AS INTEGER ) * col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4950
SELECT - + 79 * COUNT( * ) AS col0, - MAX( col0 ) col1 FROM tab0 AS cor0
----
-237
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4950
SELECT - + 79 * COUNT ( * ) AS col0, - MAX ( col0 ) col1 FROM tab0 AS cor0
----
-237
-97

query I rowsort
SELECT ALL ( + 88 ) FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT ALL + 27 AS col0 FROM tab2 cor0
----
27
27
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4953
SELECT - COUNT( ALL - col2 ) FROM tab0 WHERE NOT NULL > + col2
----
0

skipif mysql # not compatible
query I rowsort label-4953
SELECT - COUNT ( ALL - col2 ) FROM tab0 WHERE NOT NULL > + col2
----
0

query I rowsort
SELECT 82 * 7 FROM tab1
----
574
574
574

query I rowsort
SELECT ALL - col1 * - 20 AS col2 FROM tab1
----
100
280
940

onlyif mysql # aggregate syntax: 
query I rowsort label-4956
SELECT MIN( DISTINCT + col2 ) AS col0 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-4956
SELECT MIN ( DISTINCT + col2 ) AS col0 FROM tab0 AS cor0
----
10

query I rowsort
SELECT 58 + - 21 AS col2 FROM tab1
----
37
37
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4958
SELECT ALL + - COUNT( - 93 ) + 8 - - COUNT( - col2 ) + + - COUNT( * ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-4958
SELECT ALL + - COUNT ( - 93 ) + 8 - - COUNT ( - col2 ) + + - COUNT ( * ) FROM tab1 AS cor0
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-4959
SELECT + col0 + 92 + col1 DIV - - 58 AS col2 FROM tab0 AS cor0
----
108
179
189

skipif mysql # not compatible
query I rowsort label-4959
SELECT + col0 + 92 + col1 / - - 58 AS col2 FROM tab0 AS cor0
----
108
179
189

query I rowsort
SELECT ALL - - 95 * col2 * 54 + - + 1 * col1 - col1 FROM tab2 AS cor0
----
117888
205046
297406

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4961
SELECT ALL col1 AS col1 FROM tab1 AS cor0 WHERE + col0 <> + CAST( NULL AS SIGNED ) + + col2
----

skipif mysql # not compatible
query I rowsort label-4961
SELECT ALL col1 AS col1 FROM tab1 AS cor0 WHERE + col0 <> + CAST ( NULL AS INTEGER ) + + col2
----

query I rowsort
SELECT DISTINCT + col2 + + 90 FROM tab0 AS cor0
----
100
137
189

onlyif mysql # aggregate syntax: 
query I rowsort label-4963
SELECT DISTINCT - COUNT( * ) FROM tab0 cor0 WHERE col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4963
SELECT DISTINCT - COUNT ( * ) FROM tab0 cor0 WHERE col0 IS NULL
----
0

query II rowsort
SELECT DISTINCT col0 + + col1 AS col2, 32 FROM tab1 AS cor0
----
138
32
65
32
90
32

query I rowsort
SELECT ALL 58 + + 93 * - 95 FROM tab1 AS cor0
----
-8777
-8777
-8777

onlyif mysql # aggregate syntax: 
query I rowsort label-4966
SELECT DISTINCT - 52 + - - 55 + SUM( + + col2 ) FROM tab1
----
226

skipif mysql # not compatible
query I rowsort label-4966
SELECT DISTINCT - 52 + - - 55 + SUM ( + + col2 ) FROM tab1
----
226

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4967
SELECT col1 * 55, - ( - - CAST( NULL AS DECIMAL ) ) AS col1 FROM tab0
----
1155
NULL
4455
NULL
55
NULL

skipif mysql # not compatible
query II rowsort label-4967
SELECT col1 * 55, - ( - - CAST ( NULL AS REAL ) ) AS col1 FROM tab0
----
1155
NULL
4455
NULL
55
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4968
SELECT + 85 DIV COUNT( * ) * - + COUNT( * ) AS col0 FROM tab2
----
-84

skipif mysql # not compatible
query I rowsort label-4968
SELECT + 85 / COUNT ( * ) * - + COUNT ( * ) AS col0 FROM tab2
----
-84

query I rowsort
SELECT - 45 - + + ( col0 ) + col2 FROM tab0 AS cor0
----
-122
-13
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-4970
SELECT + 8 + SUM( ALL - col1 ) AS col2 FROM tab1 cor0
----
-58

skipif mysql # not compatible
query I rowsort label-4970
SELECT + 8 + SUM ( ALL - col1 ) AS col2 FROM tab1 cor0
----
-58

query I rowsort
SELECT 2 * - 30 AS col2 FROM tab0 WHERE NULL <> NULL
----

query I rowsort
SELECT ALL + col1 * - col2 * - + 65 * col0 FROM tab1 AS cor0
----
1629875
18904340
4455360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4973
SELECT ALL - 27 * - CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-4973
SELECT ALL - 27 * - CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-81

query II rowsort
SELECT col2, - col1 * - col1 FROM tab1 AS cor0
----
59
25
68
2209
96
196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 * + + 15 col1, col1 col1 FROM tab1
----
1020
47
1440
14
885
5

onlyif mysql # aggregate syntax: 
query II rowsort label-4976
SELECT ALL COUNT( ALL 7 ) AS col0, 86 AS col0 FROM tab2
----
3
86

skipif mysql # not compatible
query II rowsort label-4976
SELECT ALL COUNT ( ALL 7 ) AS col0, 86 AS col0 FROM tab2
----
3
86

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4977
SELECT DISTINCT * FROM tab2 WHERE NOT - CAST( + col1 AS SIGNED ) + + CAST( NULL AS SIGNED ) + - col0 * - ( 5 ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4977
SELECT DISTINCT * FROM tab2 WHERE NOT - CAST ( + col1 AS INTEGER ) + + CAST ( NULL AS INTEGER ) + - col0 * - ( 5 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL = + col0 + + ( - col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4979
SELECT CAST( NULL AS DECIMAL ) / - COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4979
SELECT CAST ( NULL AS REAL ) / - COUNT ( * ) FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 + + col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 84 col0 FROM tab1
----
-84

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 51 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-46
-64
-75

query I rowsort
SELECT ALL - - col2 AS col1 FROM tab1 AS cor0 WHERE 2 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4985
SELECT ALL - MIN( ALL + - col0 ) AS col1 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-4985
SELECT ALL - MIN ( ALL + - col0 ) AS col1 FROM tab0 AS cor0
----
97

query I rowsort
SELECT - - col1 + + 47 FROM tab1 cor0
----
52
61
94

query I rowsort
SELECT DISTINCT - 33 * - col0 + 98 FROM tab2 AS cor0
----
1616
2210
2573

onlyif mysql # aggregate syntax: 
query II rowsort label-4988
SELECT ALL + COUNT( * ), + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9
9

skipif mysql # not compatible
query II rowsort label-4988
SELECT ALL + COUNT ( * ), + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9
9

query I rowsort
SELECT - + 22 + - col0 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL + 96 AS col0 FROM tab0 cor0
----
96
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4991
SELECT ALL + 87 + SUM( ALL + col1 ) AS col2 FROM tab1 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-4991
SELECT ALL + 87 + SUM ( ALL + col1 ) AS col2 FROM tab1 AS cor0
----
153

query I rowsort
SELECT - 8 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4993
SELECT - COUNT( * ) DIV + 82 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4993
SELECT - COUNT ( * ) / + 82 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4994
SELECT - COUNT( * ) AS col1, + ( + - SUM( col1 ) ) AS col0 FROM tab1 AS cor0
----
-3
-66

skipif mysql # not compatible
query II rowsort label-4994
SELECT - COUNT ( * ) AS col1, + ( + - SUM ( col1 ) ) AS col0 FROM tab1 AS cor0
----
-3
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-4995
SELECT DISTINCT ( + MAX( ALL - - 44 ) ) AS col1 FROM tab1 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-4995
SELECT DISTINCT ( + MAX ( ALL - - 44 ) ) AS col1 FROM tab1 AS cor0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4996
SELECT ALL - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4996
SELECT ALL - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-3

query I rowsort
SELECT - col1 + + col0 + 69 * + 23 * + + 98 + col1 FROM tab1 AS cor0
----
155577
155611
155617

query I rowsort
SELECT 24 + 46 FROM tab1
----
70
70
70

query I rowsort
SELECT - 61 + - 97 AS col1 FROM tab0
----
-158
-158
-158

query I rowsort
SELECT DISTINCT ( - + col0 ) + col0 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5001
SELECT DISTINCT 0 DIV col2 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5001
SELECT DISTINCT 0 / col2 AS col1 FROM tab0
----
0

query I rowsort
SELECT DISTINCT + - col1 * - 79 FROM tab2 WHERE NOT - - col1 IS NOT NULL
----

query I rowsort
SELECT + + col1 AS col2 FROM tab1 WHERE + col2 IS NOT NULL
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col0 col1, + ( - col2 ) FROM tab0 AS cor0
----
15
-47
87
-10
97
-99

query I rowsort
SELECT DISTINCT + 47 FROM tab0 AS cor0 WHERE NOT NULL < 59
----

query I rowsort
SELECT 98 * + - 44 - 44 FROM tab2 AS cor0
----
-4356
-4356
-4356

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5007
SELECT - - CAST( + COUNT( + + col2 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5007
SELECT - - CAST ( + COUNT ( + + col2 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL - col0 * + - 48 FROM tab2 cor0
----
2208
3072
3600

query I rowsort
SELECT - + 15 - 79 * col2 * 60 AS col0 FROM tab2 AS cor0
----
-109035
-189615
-274935

query I rowsort
SELECT + - 91 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col1 AND NULL
----

query I rowsort
SELECT - 79 - - 27 + - 65 AS col2 FROM tab1 AS cor0
----
-117
-117
-117

query I rowsort
SELECT DISTINCT - col1 * col1 * + 75 AS col1 FROM tab2
----
-195075
-336675
-444675

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + col0 * - col1 ) IN ( + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col1 ) + + col2 col2 FROM tab2 WHERE col1 * + ( + + col2 ) * + 85 / - + col1 BETWEEN col0 AND col2 / col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5015
SELECT - CAST( - - 70 AS SIGNED ) * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5015
SELECT - CAST ( - - 70 AS INTEGER ) * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - 46 * + col2 AS col0 FROM tab2 AS cor0
----
1058
1840
2668

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col2 + col0 > NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5018
SELECT ALL + + CAST( NULL AS DECIMAL ) * + col2 AS col1, + col2 + - 15 col0 FROM tab0 AS cor0
----
NULL
-5
NULL
32
NULL
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5018
SELECT ALL + + CAST ( NULL AS REAL ) * + col2 AS col1, + col2 + - 15 col0 FROM tab0 AS cor0
----
NULL
-5
NULL
32
NULL
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5019
SELECT ALL + 20 DIV SUM( ALL col0 ) AS col0 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5019
SELECT ALL + 20 / SUM ( ALL col0 ) AS col0 FROM tab1 cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <= - col2 + col0
----

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2 WHERE col1 IS NOT NULL
----
46
64
75

query I rowsort
SELECT + col1 * - - 82 AS col1 FROM tab1
----
1148
3854
410

onlyif mysql # DIV for integer division: 
query I rowsort label-5023
SELECT 64 DIV + 24 col1 FROM tab1
----
2
2
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5023
SELECT 64 / + 24 col1 FROM tab1
----
2
2
2

query I rowsort
SELECT ALL ( - + 12 ) FROM tab1
----
-12
-12
-12

query II rowsort
SELECT ALL + col2, - col0 AS col0 FROM tab0 AS cor0
----
10
-87
47
-15
99
-97

query I rowsort
SELECT DISTINCT - + col2 * + 27 + + + col0 + - - col1 FROM tab0 AS cor0
----
-1173
-162
-2575

query I rowsort
SELECT ALL 40 AS col2 FROM tab2 AS cor0 WHERE NOT - 63 IS NULL
----
40
40
40

query I rowsort
SELECT col2 + - - col0 FROM tab1
----
144
147
159

query I rowsort
SELECT 53 * + + col2 + - col0 AS col2 FROM tab0
----
2476
443
5150

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) + + ( 11 ) col1 FROM tab0
----
108
26
98

query I rowsort
SELECT + 27 + ( 48 ) FROM tab0 AS cor0
----
75
75
75

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT ( + + 62 * - + col1 ) <= NULL )
----

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( - 64 )
----

query I rowsort
SELECT - col0 AS col0 FROM tab1 AS cor0 WHERE ( NOT + + col2 IS NULL )
----
-51
-85
-91

query I rowsort
SELECT ALL col0 * + col0 + + 74 FROM tab1 AS cor0
----
2675
7299
8355

query I rowsort
SELECT ALL + col1 + - 96 FROM tab0 AS cor0 WHERE + 94 - + + 64 + col0 * - + 25 IS NOT NULL
----
-15
-75
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5037
SELECT ALL - CAST( - - col1 AS SIGNED ) + + 56 AS col1 FROM tab1 cor0
----
42
51
9

skipif mysql # not compatible
query I rowsort label-5037
SELECT ALL - CAST ( - - col1 AS INTEGER ) + + 56 AS col1 FROM tab1 cor0
----
42
51
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 AS col0, - 61 col1 FROM tab0
----
1
-61
21
-61
81
-61

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IS NOT NULL OR NOT 23 * col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5040
SELECT ALL + MIN( col1 ) FROM tab1 WHERE - 54 IS NOT NULL
----
5

skipif mysql # not compatible
query I rowsort label-5040
SELECT ALL + MIN ( col1 ) FROM tab1 WHERE - 54 IS NOT NULL
----
5

query I rowsort
SELECT ALL - 7 + - 33 FROM tab2
----
-40
-40
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-5042
SELECT ALL SUM( ALL + - col0 ) AS col1 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-5042
SELECT ALL SUM ( ALL + - col0 ) AS col1 FROM tab1
----
-227

query I rowsort
SELECT + ( + col1 ) - - 96 AS col0 FROM tab1 WHERE NULL IS NULL
----
101
110
143

query I rowsort
SELECT col0 AS col0 FROM tab2 WHERE - ( - - col1 ) - 11 * + + col1 <> ( - 13 )
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5045
SELECT DISTINCT - COUNT( * ) * + - MIN( + col2 ) AS col2 FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-5045
SELECT DISTINCT - COUNT ( * ) * + - MIN ( + col2 ) AS col2 FROM tab2 AS cor0
----
69

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 22 * + 51 IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

onlyif mysql # aggregate syntax: 
query I rowsort label-5047
SELECT ALL + + COUNT( * ) * - ( 9 ) FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-81

skipif mysql # not compatible
query I rowsort label-5047
SELECT ALL + + COUNT ( * ) * - ( 9 ) FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5048
SELECT DISTINCT + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5048
SELECT DISTINCT + CAST ( NULL AS REAL ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5049
SELECT COUNT( * ) * - COUNT( ALL - col0 ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-5049
SELECT COUNT ( * ) * - COUNT ( ALL - col0 ) FROM tab0
----
-9

query I rowsort
SELECT ALL ( col0 ) * + col0 AS col2 FROM tab2 cor0
----
2116
4096
5625

query I rowsort
SELECT ALL col1 * + + col1 AS col2 FROM tab1 AS cor0
----
196
2209
25

onlyif mysql # DIV for integer division: 
query I rowsort label-5052
SELECT ALL 14 DIV + - 69 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5052
SELECT ALL 14 / + - 69 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-5053
SELECT DISTINCT + + 75 DIV col0 AS col1, 68 FROM tab1 AS cor0
----
0
68
1
68

skipif mysql # not compatible
query II rowsort label-5053
SELECT DISTINCT + + 75 / col0 AS col1, 68 FROM tab1 AS cor0
----
0
68
1
68

onlyif mysql # DIV for integer division: 
query I rowsort label-5054
SELECT + 89 DIV + col2 AS col0 FROM tab0 AS cor0
----
0
1
8

skipif mysql # not compatible
query I rowsort label-5054
SELECT + 89 / + col2 AS col0 FROM tab0 AS cor0
----
0
1
8

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5055
SELECT DISTINCT - CAST( NULL AS DECIMAL ) AS col1, MIN( + 80 ) FROM tab2 AS cor0
----
NULL
80

skipif mysql # not compatible
query II rowsort label-5055
SELECT DISTINCT - CAST ( NULL AS REAL ) AS col1, MIN ( + 80 ) FROM tab2 AS cor0
----
NULL
80

query I rowsort
SELECT - col1 * 33 FROM tab1
----
-1551
-165
-462

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT IN ( - col0 - - col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5058
SELECT DISTINCT + COUNT( * ) DIV + 70 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5058
SELECT DISTINCT + COUNT ( * ) / + 70 FROM tab2
----
0

query I rowsort
SELECT DISTINCT + + col2 + + 86 FROM tab2 WHERE - + col0 IS NULL
----

query I rowsort
SELECT 59 - - - col0 + 83 + 53 AS col0 FROM tab0 WHERE NOT - + col0 = col2
----
108
180
98

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL > - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5062
SELECT 17 + COUNT( * ) + + 79 * - 81 FROM tab1 AS cor0
----
-6379

skipif mysql # not compatible
query I rowsort label-5062
SELECT 17 + COUNT ( * ) + + 79 * - 81 FROM tab1 AS cor0
----
-6379

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 18 >= NULL
----

query I rowsort
SELECT DISTINCT - 88 FROM tab2 WHERE NOT 21 - - col1 IS NOT NULL
----

query II rowsort
SELECT DISTINCT col0, - col1 FROM tab1 AS cor0
----
51
-14
85
-5
91
-47

query I rowsort
SELECT + col0 - + - col2 AS col1 FROM tab0 AS cor0
----
196
62
97

query I rowsort
SELECT DISTINCT ( - col1 ) + + 10 FROM tab2 AS cor0
----
-41
-57
-67

query II rowsort
SELECT - 90 + 68 * 23, + col2 FROM tab0 AS cor0
----
1474
10
1474
47
1474
99

query I rowsort
SELECT ALL - 35 + - - 77 AS col0 FROM tab1 AS cor0
----
42
42
42

query I rowsort
SELECT DISTINCT col1 + 46 FROM tab1
----
51
60
93

onlyif mysql # DIV for integer division: 
query I rowsort label-5071
SELECT ALL 96 DIV + 7 - + 71 + - col0 FROM tab0
----
-145
-155
-73

skipif mysql # not compatible
query I rowsort label-5071
SELECT ALL 96 / + 7 - + 71 + - col0 FROM tab0
----
-145
-155
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-5072
SELECT DISTINCT - COUNT( * ) + + COUNT( * ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5072
SELECT DISTINCT - COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - + col0 ) + + 12 col2 FROM tab2
----
58
76
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5074
SELECT ALL MIN( 24 ) AS col0 FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-5074
SELECT ALL MIN ( 24 ) AS col0 FROM tab0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5075
SELECT ALL COUNT( * ) * - + MAX( ALL - col1 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5075
SELECT ALL COUNT ( * ) * - + MAX ( ALL - col1 ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5076
SELECT - COUNT( * ) * - 66 + 81 AS col0 FROM tab2 AS cor0
----
279

skipif mysql # not compatible
query I rowsort label-5076
SELECT - COUNT ( * ) * - 66 + 81 AS col0 FROM tab2 AS cor0
----
279

onlyif mysql # aggregate syntax: 
query I rowsort label-5077
SELECT ALL + COUNT( ( 43 ) ) * - MIN( + ( + 36 ) ) FROM tab0 AS cor0
----
-108

skipif mysql # not compatible
query I rowsort label-5077
SELECT ALL + COUNT ( ( 43 ) ) * - MIN ( + ( + 36 ) ) FROM tab0 AS cor0
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-5078
SELECT ALL + SUM( - 79 ) FROM tab1
----
-237

skipif mysql # not compatible
query I rowsort label-5078
SELECT ALL + SUM ( - 79 ) FROM tab1
----
-237

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5079
SELECT ALL + CAST( - + col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-5079
SELECT ALL + CAST ( - + col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-23
-40
-58

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 13 + 96 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5081
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) + col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-5081
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) + col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - - ( 91 ) ) col1 FROM tab0 cor0
----
91
91
91

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT NULL NOT BETWEEN col0 AND + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5084
SELECT DISTINCT - col2 DIV - - 85 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5084
SELECT DISTINCT - col2 / - - 85 FROM tab2 cor0
----
0

query II rowsort
SELECT ALL + 0 AS col1, - 69 * col2 AS col0 FROM tab1 AS cor0
----
0
-4071
0
-4692
0
-6624

query I rowsort
SELECT ALL + col0 AS col0 FROM tab0 AS cor0 WHERE NOT - col1 <= - 30
----
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5087
SELECT ALL * FROM tab0 WHERE NOT ( 47 * + CAST( NULL AS SIGNED ) * - ( - col2 ) ) = ( NULL )
----

skipif mysql # not compatible
query III rowsort label-5087
SELECT ALL * FROM tab0 WHERE NOT ( 47 * + CAST ( NULL AS INTEGER ) * - ( - col2 ) ) = ( NULL )
----

query I rowsort
SELECT ALL - 47 + - + col1 AS col0 FROM tab0 WHERE NOT + + 13 * - - col0 IS NULL
----
-128
-48
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-5089
SELECT DISTINCT COUNT( * ) AS col1, COUNT( * ) col0 FROM tab2
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5089
SELECT DISTINCT COUNT ( * ) AS col1, COUNT ( * ) col0 FROM tab2
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5090
SELECT DISTINCT + MAX( - - 83 ) FROM tab2
----
83

skipif mysql # not compatible
query I rowsort label-5090
SELECT DISTINCT + MAX ( - - 83 ) FROM tab2
----
83

query I rowsort
SELECT DISTINCT 60 * + + col0 FROM tab1
----
3060
5100
5460

query I rowsort
SELECT col2 * - 36 FROM tab0
----
-1692
-3564
-360

onlyif mysql # DIV for integer division: 
query I rowsort label-5093
SELECT - 99 DIV + + 82 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5093
SELECT - 99 / + + 82 FROM tab1
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5094
SELECT + 47 DIV - + 27 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5094
SELECT + 47 / - + 27 FROM tab2
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5095
SELECT + col1 DIV + 40 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5095
SELECT + col1 / + 40 FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5096
SELECT - 97 AS col2, + COUNT( * ) FROM tab2 AS cor0
----
-97
3

skipif mysql # not compatible
query II rowsort label-5096
SELECT - 97 AS col2, + COUNT ( * ) FROM tab2 AS cor0
----
-97
3

query I rowsort
SELECT + ( - + ( + col1 ) ) AS col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT col2 AS col0 FROM tab2 cor0 WHERE ( NULL ) IS NULL
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-5099
SELECT ALL col0 * + col1 + - col2 + col2 DIV - col1 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
355
4208
612

skipif mysql # not compatible
query I rowsort label-5099
SELECT ALL col0 * + col1 + - col2 + col2 / - col1 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
355
4208
612

query II rowsort
SELECT - col0 + - 39, col1 * + + col1 AS col2 FROM tab2
----
-103
5929
-114
4489
-85
2601

onlyif mysql # DIV for integer division: 
query I rowsort label-5101
SELECT DISTINCT col0 DIV - 90 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-5101
SELECT DISTINCT col0 / - 90 FROM tab0
----
-1
0

query I rowsort
SELECT + - col2 AS col1 FROM tab1 WHERE ( NOT - 71 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5103
SELECT ALL - COUNT( DISTINCT + col1 ) FROM tab1 WHERE NOT NULL < col0 + + col1
----
0

skipif mysql # not compatible
query I rowsort label-5103
SELECT ALL - COUNT ( DISTINCT + col1 ) FROM tab1 WHERE NOT NULL < col0 + + col1
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 27 / - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 22 col1 FROM tab0 AS cor0
----
-22
-22
-22

query I rowsort
SELECT - col0 AS col0 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5107
SELECT ( - COUNT( * ) ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5107
SELECT ( - COUNT ( * ) ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-3

query I rowsort
SELECT col2 - + 36 AS col2 FROM tab2
----
-13
22
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5109
SELECT - MAX( 13 ) AS col0 FROM tab2
----
-13

skipif mysql # not compatible
query I rowsort label-5109
SELECT - MAX ( 13 ) AS col0 FROM tab2
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-5110
SELECT + 85 * ( + COUNT( * ) ) AS col0, 27 col1 FROM tab2
----
255
27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5110
SELECT + 85 * ( + COUNT ( * ) ) AS col0, 27 col1 FROM tab2
----
255
27

query I rowsort
SELECT ALL + 19 AS col2 FROM tab2
----
19
19
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5112
SELECT COUNT( 62 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5112
SELECT COUNT ( 62 ) AS col0 FROM tab0
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT 97 - + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE NOT col0 < NULL
----

query II rowsort
SELECT DISTINCT - 16 AS col2, - col2 AS col1 FROM tab2 AS cor0
----
-16
-23
-16
-40
-16
-58

query I rowsort
SELECT ALL 50 * - 39 * col1 AS col2 FROM tab2
----
-130650
-150150
-99450

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * + 43 col1, col1 AS col1 FROM tab1
----
2537
5
2924
47
4128
14

query IIIIII rowsort
SELECT * FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE ( NULL ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - col2 + + 80 col2 FROM tab2 AS cor0
----
-1093
-3000
-3806

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 31 AND - 23
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5121
SELECT - + ( - SUM( DISTINCT ( + - 92 ) ) ) AS col1 FROM tab0 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-5121
SELECT - + ( - SUM ( DISTINCT ( + - 92 ) ) ) AS col1 FROM tab0 AS cor0
----
-92

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - col2 * - - 6 * - col2 + ( + 85 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5123
SELECT - col2 * - CAST( NULL AS SIGNED ) col2, col1 AS col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5123
SELECT - col2 * - CAST ( NULL AS INTEGER ) col2, col1 AS col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5124
SELECT + COUNT( * ) * - 63 AS col2 FROM tab1 AS cor0
----
-189

skipif mysql # not compatible
query I rowsort label-5124
SELECT + COUNT ( * ) * - 63 AS col2 FROM tab1 AS cor0
----
-189

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5125
SELECT CAST( NULL AS SIGNED ), + 2 DIV - SUM( ALL - + 44 ) AS col0 FROM tab1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-5125
SELECT CAST ( NULL AS INTEGER ), + 2 / - SUM ( ALL - + 44 ) AS col0 FROM tab1
----
NULL
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5126
SELECT DISTINCT * FROM tab0 WHERE NOT - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5126
SELECT DISTINCT * FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT col0 * + + ( + 18 ) AS col1 FROM tab0
----
1566
1746
270

onlyif mysql # aggregate syntax: 
query I rowsort label-5128
SELECT ALL 22 * - + COUNT( * ) AS col2 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-5128
SELECT ALL 22 * - + COUNT ( * ) AS col2 FROM tab1
----
-66

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 87 + + - 55 IS NULL
----

query I rowsort
SELECT ALL 15 * col1 + + col1 AS col0 FROM tab0 cor0
----
1296
16
336

query I rowsort
SELECT ALL + ( + 8 ) + + + 43 - + col0 FROM tab1
----
-34
-40
0

query I rowsort
SELECT ALL - - 69 + - col2 FROM tab0 AS cor0
----
-30
22
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 73 * - col1 + + col2 + col1 col0 FROM tab2 AS cor0
----
-3649
-4766
-5504

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + 27 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + col0 + col0 - col0 AS col0 FROM tab2 AS cor0
----
46
64
75

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 32 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 + - 95 * col1 AS col2 FROM tab1 WHERE NOT col2 BETWEEN ( + + col1 ) AND - 45
----
-1234
-416
-4397

onlyif mysql # aggregate syntax: 
query I rowsort label-5138
SELECT ALL ( - COUNT( ALL - - col0 ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5138
SELECT ALL ( - COUNT ( ALL - - col0 ) ) FROM tab2
----
-3

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 >= - - 81
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5140
SELECT - 20 * 97 * - col1 FROM tab0 WHERE NOT col1 + - + col0 NOT BETWEEN + - 39 * - + CAST( NULL AS DECIMAL ) AND - col1 * col2
----

skipif mysql # not compatible
query I rowsort label-5140
SELECT - 20 * 97 * - col1 FROM tab0 WHERE NOT col1 + - + col0 NOT BETWEEN + - 39 * - + CAST ( NULL AS REAL ) AND - col1 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5141
SELECT MAX( DISTINCT 69 ) FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-5141
SELECT MAX ( DISTINCT 69 ) FROM tab2
----
69

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - ( + 28 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 33 / col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5144
SELECT + MAX( + - 78 ) AS col0, CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
-78
NULL

skipif mysql # not compatible
query II rowsort label-5144
SELECT + MAX ( + - 78 ) AS col0, CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
-78
NULL

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) > NULL
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IN ( 5 )
----

query I rowsort
SELECT ALL col2 + 7 FROM tab2 AS cor0
----
30
47
65

query II rowsort
SELECT DISTINCT - col0, - col2 AS col0 FROM tab2 AS cor0
----
-46
-23
-64
-40
-75
-58

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL > 23
----

query I rowsort
SELECT DISTINCT - 57 + + col0 + + col1 + - col2 FROM tab0 AS cor0
----
-58
-8
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5151
SELECT ALL COUNT( * ) + + + MIN( ALL col1 ) FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-5151
SELECT ALL COUNT ( * ) + + + MIN ( ALL col1 ) FROM tab0
----
4

query I rowsort
SELECT DISTINCT - + col2 FROM tab1 WHERE NOT col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 * + 70 col0, col0 * col1 - col0 AS col0 FROM tab1
----
3290
4186
350
340
980
663

onlyif mysql # DIV for integer division: 
query I rowsort label-5154
SELECT 76 DIV - 66 AS col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5154
SELECT 76 / - 66 AS col0 FROM tab2
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5155
SELECT - 19 * 26 AS col1, + COUNT( * ) AS col0 FROM tab0
----
-494
3

skipif mysql # not compatible
query II rowsort label-5155
SELECT - 19 * 26 AS col1, + COUNT ( * ) AS col0 FROM tab0
----
-494
3

query I rowsort
SELECT + col0 * + col2 * + col2 - + col2 FROM tab1 AS cor0
----
295826
420716
469920

onlyif mysql # aggregate syntax: 
query I rowsort label-5157
SELECT ALL COUNT( * ) + + COUNT( col2 ) AS col1 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5157
SELECT ALL COUNT ( * ) + + COUNT ( col2 ) AS col1 FROM tab0 AS cor0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-5158
SELECT DISTINCT + col0 + - 98 * col0 DIV + 86 AS col2 FROM tab0 cor0
----
-12
-13
-2

skipif mysql # not compatible
query I rowsort label-5158
SELECT DISTINCT + col0 + - 98 * col0 / + 86 AS col2 FROM tab0 cor0
----
-12
-13
-2

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - ( - - 19 ) + 28 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5160
SELECT DISTINCT - MIN( + 29 ) FROM tab2 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-5160
SELECT DISTINCT - MIN ( + 29 ) FROM tab2 AS cor0
----
-29

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL <= col2
----

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NOT col1 >= - 92
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5163
SELECT ALL + + ( - MAX( col0 ) ) FROM tab1 cor0
----
-91

skipif mysql # not compatible
query I rowsort label-5163
SELECT ALL + + ( - MAX ( col0 ) ) FROM tab1 cor0
----
-91

query II rowsort
SELECT - col1 AS col1, col2 * + ( - 90 ) AS col1 FROM tab0
----
-1
-8910
-21
-900
-81
-4230

onlyif mysql # aggregate syntax: 
query II rowsort label-5165
SELECT ALL 44 AS col0, COUNT( * ) col0 FROM tab2
----
44
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5165
SELECT ALL 44 AS col0, COUNT ( * ) col0 FROM tab2
----
44
3

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 + + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT col0, ( + + col2 ) FROM tab2
----
46
23
64
40
75
58

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 26 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - 78 AS col0, 13 FROM tab1
----
-78
13
-78
13
-78
13

onlyif mysql # aggregate syntax: 
query II rowsort label-5170
SELECT 37 AS col0, COUNT( ALL - + col1 ) AS col0 FROM tab2 AS cor0
----
37
3

skipif mysql # not compatible
query II rowsort label-5170
SELECT 37 AS col0, COUNT ( ALL - + col1 ) AS col0 FROM tab2 AS cor0
----
37
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5171
SELECT ALL COUNT( * ) AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-5171
SELECT ALL COUNT ( * ) AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5172
SELECT ALL MIN( ALL + 56 ) col2 FROM tab2
----
56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5172
SELECT ALL MIN ( ALL + 56 ) col2 FROM tab2
----
56

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + ( - - 90 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5174
SELECT + ( MIN( ALL - col2 ) ) FROM tab2 cor0
----
-58

skipif mysql # not compatible
query I rowsort label-5174
SELECT + ( MIN ( ALL - col2 ) ) FROM tab2 cor0
----
-58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 63 BETWEEN + - col0 AND - + ( - col2 ) * + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + col2 * + ( + - col0 ) + - - col2 + - + col1, col0 FROM tab0 AS cor0
----
-739
15
-881
87
-9505
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5177
SELECT ( CAST( - - col1 AS SIGNED ) ) FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-5177
SELECT ( CAST ( - - col1 AS INTEGER ) ) FROM tab2 AS cor0
----
51
67
77

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL = - col0 * 71 / - 50 * - col1 * 77
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5179
SELECT ALL + COUNT( * ) + - MIN( DISTINCT - ( + ( ( + col0 ) ) ) ) AS col1 FROM tab2 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-5179
SELECT ALL + COUNT ( * ) + - MIN ( DISTINCT - ( + ( ( + col0 ) ) ) ) AS col1 FROM tab2 AS cor0
----
78

query I rowsort
SELECT DISTINCT + 90 + - - 24 FROM tab2 AS cor0
----
114

query II rowsort
SELECT DISTINCT + col0 + + 56 AS col1, col1 FROM tab1 AS cor0
----
107
14
141
5
147
47

query I rowsort
SELECT DISTINCT - 5 * + col1 + + col1 FROM tab0
----
-324
-4
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - + 45 * - + 51 col1 FROM tab2
----
2341
2359
2370

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + 29 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + ( + + col2 ) FROM tab1
----
59
68
96

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 98 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 + - + col1 AS col1 FROM tab1
----
21
54
82

query I rowsort
SELECT ALL + 70 + + + ( 9 ) FROM tab0 AS cor0 WHERE NOT - col0 + + 37 IS NULL
----
79
79
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5189
SELECT - CAST( col2 AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE + col1 + + - col0 >= NULL
----

skipif mysql # not compatible
query I rowsort label-5189
SELECT - CAST ( col2 AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE + col1 + + - col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5190
SELECT SUM( DISTINCT - col1 ) AS col2 FROM tab1 cor0
----
-66

skipif mysql # not compatible
query I rowsort label-5190
SELECT SUM ( DISTINCT - col1 ) AS col2 FROM tab1 cor0
----
-66

query I rowsort
SELECT + col1 * + + col1 * + 39 FROM tab0 AS cor0
----
17199
255879
39

query II rowsort
SELECT 60 * - col2, + col2 AS col1 FROM tab0
----
-2820
47
-5940
99
-600
10

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5193
SELECT + CAST( col0 AS DECIMAL ) * - 51 * 82 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND + col0 + + ( 51 )
----

skipif mysql # not compatible
query I rowsort label-5193
SELECT + CAST ( col0 AS REAL ) * - 51 * 82 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND + col0 + + ( 51 )
----

query I rowsort
SELECT ALL - 46 * - + col1 * - col0 * + ( + col0 ) FROM tab2 AS cor0
----
-14508032
-17336250
-4964136

query I rowsort
SELECT + ( - col2 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) >= + - col0 / - col0 + - ( 1 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5196
SELECT - CAST( NULL AS DECIMAL ) * - + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5196
SELECT - CAST ( NULL AS REAL ) * - + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5197
SELECT - 82 DIV + + COUNT( * ) FROM tab1 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-5197
SELECT - 82 / + + COUNT ( * ) FROM tab1 AS cor0
----
-27

query I rowsort
SELECT + ( col2 ) * - 88 FROM tab0 AS cor0
----
-4136
-8712
-880

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 74 NOT BETWEEN col1 * - - 82 AND col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5200
SELECT 39 DIV - 69 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5200
SELECT 39 / - 69 FROM tab2
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 WHERE + 99 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-5202
SELECT + col2 DIV + + col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5202
SELECT + col2 / + + col0 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL col1 * - + 74 AS col0 FROM tab2
----
-3774
-4958
-5698

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 + - col1 * + col0 + col2 + col0 >= NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 88 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 + - 11 IS NOT NULL
----

query I rowsort
SELECT ALL 41 * col2 AS col0 FROM tab1
----
2419
2788
3936

onlyif mysql # aggregate syntax: 
query I rowsort label-5208
SELECT 51 + + MAX( ALL - + ( - 80 ) ) AS col0 FROM tab0
----
131

skipif mysql # not compatible
query I rowsort label-5208
SELECT 51 + + MAX ( ALL - + ( - 80 ) ) AS col0 FROM tab0
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-5209
SELECT ALL 8 * + COUNT( col2 ) AS col2 FROM tab1
----
24

skipif mysql # not compatible
query I rowsort label-5209
SELECT ALL 8 * + COUNT ( col2 ) AS col2 FROM tab1
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5210
SELECT * FROM tab1 cor0 WHERE 53 * + CAST( - col0 AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-5210
SELECT * FROM tab1 cor0 WHERE 53 * + CAST ( - col0 AS INTEGER ) <> NULL
----

query I rowsort
SELECT - col0 + - 30 + col0 FROM tab2 AS cor0
----
-30
-30
-30

query I rowsort
SELECT ALL + AVG ( ALL 54 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5213
SELECT + MIN( + col1 ) + + + COUNT( * ) + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-5213
SELECT + MIN ( + col1 ) + + + COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
51

query I rowsort
SELECT ALL - col0 + - - col2 AS col2 FROM tab1 AS cor0
----
-23
-26
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5215
SELECT ALL - 33 + - 1 * + COUNT( * ) AS col1 FROM tab0 cor0
----
-36

skipif mysql # not compatible
query I rowsort label-5215
SELECT ALL - 33 + - 1 * + COUNT ( * ) AS col1 FROM tab0 cor0
----
-36

query I rowsort
SELECT DISTINCT + + ( col1 ) + + col1 * - + col2 * - col0 AS col1 FROM tab2 AS cor0
----
197197
291517
54009

query I rowsort
SELECT col0 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 76 + 64 FROM tab1
----
-12

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL > + - 44 + col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + ( + + 33 ) - + 39 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5221
SELECT ALL MAX( col0 ) - - + AVG ( - - ( + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5221
SELECT ALL MAX ( col0 ) - - + AVG ( - - ( + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5222
SELECT COUNT( * ) + + - COUNT( * ) + + - 41 AS col2 FROM tab2 cor0
----
-41

skipif mysql # not compatible
query I rowsort label-5222
SELECT COUNT ( * ) + + - COUNT ( * ) + + - 41 AS col2 FROM tab2 cor0
----
-41

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab0 WHERE 99 IS NOT NULL
----
1
21
81

query I rowsort
SELECT DISTINCT - col0 * 15 AS col1 FROM tab1 AS cor0
----
-1275
-1365
-765

onlyif mysql # aggregate syntax: 
query I rowsort label-5225
SELECT - + 59 * COUNT( * ) FROM tab0 AS cor0
----
-177

skipif mysql # not compatible
query I rowsort label-5225
SELECT - + 59 * COUNT ( * ) FROM tab0 AS cor0
----
-177

query I rowsort
SELECT col1 + + col2 AS col0 FROM tab0 WHERE NOT NULL >= - 86
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5227
SELECT ALL ( + SUM( + 90 ) ) * + COUNT( * ) AS col1 FROM tab0
----
810

skipif mysql # not compatible
query I rowsort label-5227
SELECT ALL ( + SUM ( + 90 ) ) * + COUNT ( * ) AS col1 FROM tab0
----
810

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5228
SELECT COUNT( * ) + COUNT( ALL CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 WHERE NOT NULL BETWEEN NULL AND ( + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-5228
SELECT COUNT ( * ) + COUNT ( ALL CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 WHERE NOT NULL BETWEEN NULL AND ( + col1 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - - col1 col1 FROM tab1
----
196
2209
25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5230
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - col1, - col0 AS col0 FROM tab2 cor0
----
NULL
-46
NULL
-64
NULL
-75

skipif mysql # not compatible
query II rowsort label-5230
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - col1, - col0 AS col0 FROM tab2 cor0
----
NULL
-46
NULL
-64
NULL
-75

query I rowsort
SELECT DISTINCT - AVG ( - 30 ) AS col1 FROM tab0 AS cor0 WHERE ( + 38 ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5232
SELECT - MIN( DISTINCT + col0 ) AS col2 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-5232
SELECT - MIN ( DISTINCT + col0 ) AS col2 FROM tab1
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5233
SELECT CAST( - - ( + - col2 ) AS SIGNED ) * - - 67 AS col1 FROM tab0
----
-3149
-6633
-670

skipif mysql # not compatible
query I rowsort label-5233
SELECT CAST ( - - ( + - col2 ) AS INTEGER ) * - - 67 AS col1 FROM tab0
----
-3149
-6633
-670

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT col1 < + col2 - + - 71 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col0 + - 81 FROM tab2 cor0
----
-17
-35
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5236
SELECT - - CAST( - + col2 AS SIGNED ) AS col2 FROM tab2 cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-5236
SELECT - - CAST ( - + col2 AS INTEGER ) AS col2 FROM tab2 cor0
----
-23
-40
-58

query I rowsort
SELECT DISTINCT - 9 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

query II rowsort
SELECT + col1 * + 66 - + col1 + - - col2 + + - col2 AS col0, + col1 + + col2 FROM tab2 AS cor0
----
3315
74
4355
125
5005
117

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + ( + col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5240
SELECT SUM( 80 ) * + 51 + 94 + + - 54 * - SUM( - col2 ) - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5240
SELECT SUM ( 80 ) * + 51 + 94 + + - 54 * - SUM ( - col2 ) - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + - col0 FROM tab1 AS cor0 WHERE + 56 * col2 IS NULL
----

query II rowsort
SELECT + - col2 * - 0 + + 69, + ( col0 ) FROM tab0 cor0
----
69
15
69
87
69
97

query II rowsort
SELECT DISTINCT col2 + - ( - 16 ), col0 AS col2 FROM tab1 AS cor0
----
112
51
75
85
84
91

query I rowsort
SELECT - 72 * - ( + + 32 ) * + 91 + 80 + - + col1 + - col1 - 51 + - + 90 * - 80 FROM tab2 AS cor0
----
216739
216759
216791

query I rowsort
SELECT - 56 + col2 AS col1 FROM tab1 AS cor0
----
12
3
40

query I rowsort
SELECT DISTINCT - - 25 + col1 AS col0 FROM tab1 AS cor0
----
30
39
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5247
SELECT ALL - 41 + COUNT( * ) FROM tab0 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-5247
SELECT ALL - 41 + COUNT ( * ) FROM tab0 AS cor0
----
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - 74 + 34 col2 FROM tab1
----
-26
-35
7

query II rowsort
SELECT col2 * - + col1 AS col2, - col2 AS col2 FROM tab2 WHERE NULL IS NULL
----
-1173
-23
-3080
-40
-3886
-58

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5250
SELECT ALL - 58 DIV 20 col2, col1 * + col2 + + CAST( NULL AS SIGNED ) + + 83 AS col2 FROM tab2
----
-2
NULL
-2
NULL
-2
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5250
SELECT ALL - 58 / 20 col2, col1 * + col2 + + CAST ( NULL AS INTEGER ) + + 83 AS col2 FROM tab2
----
-2
NULL
-2
NULL
-2
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5251
SELECT ALL CAST( NULL AS SIGNED ) / + 14 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5251
SELECT ALL CAST ( NULL AS INTEGER ) / + 14 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5252
SELECT + + CAST( - + col2 AS SIGNED ) col0 FROM tab2 cor0
----
-23
-40
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5252
SELECT + + CAST ( - + col2 AS INTEGER ) col0 FROM tab2 cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5253
SELECT DISTINCT - + MAX( + col2 ) AS col2 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-5253
SELECT DISTINCT - + MAX ( + col2 ) AS col2 FROM tab0 AS cor0
----
-99

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col2 * ( + 93 ) <> 52 - 74
----

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 0 IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

onlyif mysql # aggregate syntax: 
query II rowsort label-5256
SELECT ALL + COUNT( - col0 ) AS col2, COUNT( * ) + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
3
6

skipif mysql # not compatible
query II rowsort label-5256
SELECT ALL + COUNT ( - col0 ) AS col2, COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
3
6

query I rowsort
SELECT + - 78 AS col2 FROM tab2 AS cor0
----
-78
-78
-78

query I rowsort
SELECT DISTINCT col2 FROM tab1 cor0 WHERE col2 IS NOT NULL
----
59
68
96

query I rowsort
SELECT - ( - 66 ) AS col0 FROM tab1 AS cor0
----
66
66
66

query I rowsort
SELECT DISTINCT - 83 AS col1 FROM tab1 cor0
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5261
SELECT ALL ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5261
SELECT ALL ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + + col2 * - 57 * + + col1 AS col2 FROM tab2 AS cor0
----
-175560
-221502
-66861

onlyif mysql # aggregate syntax: 
query II rowsort label-5263
SELECT ALL 85, + 76 * - COUNT( * ) AS col2 FROM tab2
----
85
-228

skipif mysql # not compatible
query II rowsort label-5263
SELECT ALL 85, + 76 * - COUNT ( * ) AS col2 FROM tab2
----
85
-228

query II rowsort
SELECT ALL 96 AS col2, col2 AS col1 FROM tab1
----
96
59
96
68
96
96

query I rowsort
SELECT 72 * + + 23 FROM tab2
----
1656
1656
1656

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 BETWEEN + + col2 AND + col2 * - - 65 + - col1
----
51
14
96

query I rowsort
SELECT ALL + 95 AS col2 FROM tab2
----
95
95
95

query I rowsort
SELECT DISTINCT + col2 + - - 86 FROM tab2 AS cor0
----
109
126
144

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 52 col0 FROM tab2 AS cor0
----
-52
-52
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5270
SELECT DISTINCT + + col0 * - col2 * - + ( col1 ) + CAST( CAST( + ( - - col0 ) AS SIGNED ) AS SIGNED ) + 33 * - + 6 + ( - + col1 ) + col2 AS col1 FROM tab1 AS cor0
----
25016
290750
68479

skipif mysql # not compatible
query I rowsort label-5270
SELECT DISTINCT + + col0 * - col2 * - + ( col1 ) + CAST ( CAST ( + ( - - col0 ) AS INTEGER ) AS INTEGER ) + 33 * - + 6 + ( - + col1 ) + col2 AS col1 FROM tab1 AS cor0
----
25016
290750
68479

query I rowsort
SELECT ALL col0 + - - 1 AS col0 FROM tab1 AS cor0
----
52
86
92

query II rowsort
SELECT ALL + + 79 AS col1, 54 FROM tab0 AS cor0
----
79
54
79
54
79
54

onlyif mysql # DIV for integer division: 
query I rowsort label-5273
SELECT ALL + col2 DIV + col0 + + 53 AS col1 FROM tab2
----
53
53
53

skipif mysql # not compatible
query I rowsort label-5273
SELECT ALL + col2 / + col0 + + 53 AS col1 FROM tab2
----
53
53
53

query I rowsort
SELECT ALL - 98 * + 14 - col2 * col1 AS col1 FROM tab1
----
-1667
-2716
-4568

query III rowsort
SELECT * FROM tab0 WHERE NOT 90 BETWEEN col1 + 39 AND NULL
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5276
SELECT ( - COUNT( * ) ) * - 54 AS col2 FROM tab2
----
162

skipif mysql # not compatible
query I rowsort label-5276
SELECT ( - COUNT ( * ) ) * - 54 AS col2 FROM tab2
----
162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 28 * + col2 col2 FROM tab0
----
1316
2772
280

onlyif mysql # aggregate syntax: 
query I rowsort label-5278
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE ( NULL ) = ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5278
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE ( NULL ) = ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5279
SELECT DISTINCT + COUNT( * ) * + SUM( ALL - col2 ) - - SUM( DISTINCT + 16 ) AS col1 FROM tab2
----
-347

skipif mysql # not compatible
query I rowsort label-5279
SELECT DISTINCT + COUNT ( * ) * + SUM ( ALL - col2 ) - - SUM ( DISTINCT + 16 ) AS col1 FROM tab2
----
-347

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5280
SELECT DISTINCT CAST( NULL AS SIGNED ) * COUNT( * ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5280
SELECT DISTINCT CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT 68 * col1 + - col1 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col1 FROM tab1 WHERE + 66 IS NOT NULL
----
14
47
5

query III rowsort
SELECT * FROM tab2 WHERE NOT + 18 * - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 * 58 - col1 AS col0 FROM tab0
----
-1239
-4779
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5285
SELECT DISTINCT - 93 AS col2 FROM tab1 WHERE NOT + CAST( col2 AS SIGNED ) > ( col2 )
----
-93

skipif mysql # not compatible
query I rowsort label-5285
SELECT DISTINCT - 93 AS col2 FROM tab1 WHERE NOT + CAST ( col2 AS INTEGER ) > ( col2 )
----
-93

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 32 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5287
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - 50 * + col0 AS col0 FROM tab0 WHERE NOT 8 * col2 + col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5287
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 50 * + col0 AS col0 FROM tab0 WHERE NOT 8 * col2 + col0 IS NULL
----
NULL

query I rowsort
SELECT col1 + + 64 * col1 FROM tab0 WHERE ( + 96 ) - col0 <> ( col2 )
----
1365
5265
65

query I rowsort
SELECT ALL col2 * + 10 AS col2 FROM tab2
----
230
400
580

query I rowsort
SELECT DISTINCT - 89 * - ( 76 ) FROM tab2
----
6764

query I rowsort
SELECT 81 - - 59 FROM tab1
----
140
140
140

query III rowsort
SELECT * FROM tab2 WHERE NOT - 44 NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ( + col1 ) * - 29 - 82 FROM tab0
----
-111
-2431
-691

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5294
SELECT MIN( ALL col1 ) DIV - 17 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5294
SELECT MIN ( ALL col1 ) / - 17 AS col1 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5295
SELECT - 4 DIV 43 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5295
SELECT - 4 / 43 AS col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5296
SELECT + COUNT( * ) DIV MAX( + 85 * col1 ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5296
SELECT + COUNT ( * ) / MAX ( + 85 * col1 ) AS col2 FROM tab0
----
0

query I rowsort
SELECT 36 + - col1 AS col1 FROM tab0
----
-45
15
35

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 * + col2 + - 31 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col2 + - 18 FROM tab1
----
41
50
78

onlyif mysql # DIV for integer division: 
query I rowsort label-5300
SELECT 42 DIV ( 32 * - 86 ) AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5300
SELECT 42 / ( 32 * - 86 ) AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + 76 + 22 AS col0 FROM tab1
----
98

query I rowsort
SELECT DISTINCT + col1 FROM tab2 WHERE NULL NOT BETWEEN ( col2 * 53 ) AND ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5303
SELECT ALL CAST( NULL AS DECIMAL ) + - SUM( col2 ) * - COUNT( * ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5303
SELECT ALL CAST ( NULL AS REAL ) + - SUM ( col2 ) * - COUNT ( * ) AS col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5304
SELECT * FROM tab1 WHERE NOT - CAST( + ( + col0 ) AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5304
SELECT * FROM tab1 WHERE NOT - CAST ( + ( + col0 ) AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-5305
SELECT 85 DIV + col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5305
SELECT 85 / + col1 FROM tab2
----
1
1
1

query I rowsort
SELECT col2 / col2 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col1 ) BETWEEN col1 AND - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5308
SELECT MAX( DISTINCT - col2 ) * - 12 FROM tab2 cor0
----
276

skipif mysql # not compatible
query I rowsort label-5308
SELECT MAX ( DISTINCT - col2 ) * - 12 FROM tab2 cor0
----
276

query I rowsort
SELECT ALL ( - 49 ) AS col2 FROM tab1 AS cor0 WHERE NOT 70 - + col2 < + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5310
SELECT DISTINCT MIN( DISTINCT 33 ) col2 FROM tab2 cor0 WHERE NULL NOT BETWEEN - 99 AND NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5310
SELECT DISTINCT MIN ( DISTINCT 33 ) col2 FROM tab2 cor0 WHERE NULL NOT BETWEEN - 99 AND NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5311
SELECT ALL + 70 DIV 84 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5311
SELECT ALL + 70 / 84 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 4 col0 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
-4
-4
-4

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + 41 ) IS NULL
----

query I rowsort
SELECT col0 * - 33 AS col0 FROM tab1
----
-1683
-2805
-3003

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5315
SELECT - CAST( NULL AS SIGNED ) * col2 + col1 AS col0 FROM tab2 WHERE NOT NULL NOT IN ( col2 )
----

skipif mysql # not compatible
query I rowsort label-5315
SELECT - CAST ( NULL AS INTEGER ) * col2 + col1 AS col0 FROM tab2 WHERE NOT NULL NOT IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5316
SELECT ALL - COUNT( * ) * + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5316
SELECT ALL - COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-9

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 25 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 73 * + col2 = ( + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5319
SELECT MAX( ALL + 96 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-5319
SELECT MAX ( ALL + 96 ) FROM tab1 AS cor0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5320
SELECT + CAST( col1 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT NULL <> - col2 + + 68
----

skipif mysql # not compatible
query I rowsort label-5320
SELECT + CAST ( col1 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL <> - col2 + + 68
----

query I rowsort
SELECT col1 FROM tab0 cor0 WHERE NOT NULL BETWEEN col1 AND col0 * col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 <= ( + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5323
SELECT - CAST( col2 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT - col1 < + col0 + - 21
----

skipif mysql # not compatible
query I rowsort label-5323
SELECT - CAST ( col2 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT - col1 < + col0 + - 21
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5324
SELECT ( CAST( col2 AS SIGNED ) ) * - 74 col0 FROM tab1
----
-4366
-5032
-7104

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5324
SELECT ( CAST ( col2 AS INTEGER ) ) * - 74 col0 FROM tab1
----
-4366
-5032
-7104

query I rowsort
SELECT + col2 * 39 AS col1 FROM tab2 WHERE NOT - col0 + col2 * col2 IS NOT NULL
----

query I rowsort
SELECT 11 * - - col1 * + 76 FROM tab1
----
11704
39292
4180

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col2 ) IN ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE - col0 BETWEEN NULL AND NULL OR NULL <= - col0 + - col2
----

query I rowsort
SELECT 90 * - col2 AS col0 FROM tab2
----
-2070
-3600
-5220

query I rowsort
SELECT col2 + + ( col1 ) AS col2 FROM tab0
----
100
128
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - - col2 col2 FROM tab2
----
0
0
0

query I rowsort
SELECT - col0 * - 65 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL 89 + col1 FROM tab0 cor0
----
110
170
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 56 + + ( 71 ) col2 FROM tab1 AS cor0
----
127
127
127

query I rowsort
SELECT DISTINCT - - col1 + + - 37 * + col1 FROM tab2 AS cor0
----
-1836
-2412
-2772

query I rowsort
SELECT DISTINCT + 55 + - - col2 FROM tab0 AS cor0
----
102
154
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5337
SELECT DISTINCT COUNT( * ) + - + MAX( DISTINCT - CAST( - col2 AS SIGNED ) ) col2 FROM tab2 AS cor0
----
-55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5337
SELECT DISTINCT COUNT ( * ) + - + MAX ( DISTINCT - CAST ( - col2 AS INTEGER ) ) col2 FROM tab2 AS cor0
----
-55

query I rowsort
SELECT ALL 45 + + col0 + + ( 75 ) * 77 AS col0 FROM tab1 AS cor0
----
5871
5905
5911

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 NOT BETWEEN 55 AND ( NULL )
----
15
81
47

query I rowsort
SELECT DISTINCT + 82 * - col0 * - 13 - + col1 FROM tab0
----
103401
15909
92721

query I rowsort
SELECT + 7 * - - 42 FROM tab0, tab2 AS cor0
----
9 values hashing to 410d0e7544c6b578053333349ab42a03

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab2 WHERE ( - + col1 ) NOT IN ( + col1 / 17 )
----
23
40
58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5343
SELECT DISTINCT ( CAST( NULL AS DECIMAL ) ) - - - ( col2 ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5343
SELECT DISTINCT ( CAST ( NULL AS REAL ) ) - - - ( col2 ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT col0 - + ( - col1 ) + + col0 FROM tab2 AS cor0
----
143
205
217

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 NOT IN ( + col1 )
----

query II rowsort
SELECT DISTINCT + col0, - 23 FROM tab0 cor0
----
15
-23
87
-23
97
-23

query I rowsort
SELECT 83 + - ( - 59 ) AS col0 FROM tab0 AS cor0
----
142
142
142

query I rowsort
SELECT - + col0 + col2 + 23 AS col1 FROM tab0 AS cor0
----
-54
25
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5349
SELECT + CAST( NULL AS SIGNED ) + COUNT( * ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5349
SELECT + CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT col2 - col0 AS col2 FROM tab0 AS cor0 WHERE NULL BETWEEN col2 * col1 AND ( col0 + col2 )
----

query I rowsort
SELECT DISTINCT + col0 + + + col1 FROM tab1 AS cor0
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5352
SELECT DISTINCT - 87 + MIN( DISTINCT + 55 ) * - 9 AS col0 FROM tab2 cor0
----
-582

skipif mysql # not compatible
query I rowsort label-5352
SELECT DISTINCT - 87 + MIN ( DISTINCT + 55 ) * - 9 AS col0 FROM tab2 cor0
----
-582

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 NOT BETWEEN NULL AND 2 * + col1
----
87
21
10
97
1
99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL IN ( - 87 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5355
SELECT COUNT( * ) + - + ( - + 75 ) + - CAST( NULL AS SIGNED ) * - COUNT( * ) col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5355
SELECT COUNT ( * ) + - + ( - + 75 ) + - CAST ( NULL AS INTEGER ) * - COUNT ( * ) col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5356
SELECT ALL - - 79 - + col2 + - + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5356
SELECT ALL - - 79 - + col2 + - + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) > - 98
----

query II rowsort
SELECT DISTINCT col0 + + + col1 AS col1, + col0 AS col2 FROM tab1
----
138
91
65
51
90
85

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN ( - 47 * col1 * col2 + - col1 ) AND ( NULL )
----

query I rowsort
SELECT DISTINCT ( - + col1 ) AS col1 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT ALL - - col0 - col2 FROM tab0 WHERE NULL IS NULL
----
-2
-32
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5362
SELECT + COUNT( * ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5362
SELECT + COUNT ( * ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col2 ) NOT BETWEEN NULL AND col2
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + + ( - 61 ) * 41 + 47 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5365
SELECT DISTINCT - COUNT( * ) * + 52 * + COUNT( * ) + - 88 AS col2 FROM tab1 AS cor0
----
-556

skipif mysql # not compatible
query I rowsort label-5365
SELECT DISTINCT - COUNT ( * ) * + 52 * + COUNT ( * ) + - 88 AS col2 FROM tab1 AS cor0
----
-556

query I rowsort
SELECT DISTINCT 40 * col2 FROM tab2 cor0 WHERE NOT ( + col1 ) <> NULL
----

query I rowsort
SELECT + col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL <> ( 9 )
----

query I rowsort
SELECT ALL + + col0 * col1 + - + col1 FROM tab1 AS cor0
----
420
4230
700

query I rowsort
SELECT - col0 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN ( - col2 ) AND ( 47 + col2 )
----

query II rowsort
SELECT ALL - - 29 * + - col0, col0 AS col1 FROM tab2 cor0
----
-1334
46
-1856
64
-2175
75

query I rowsort
SELECT col2 FROM tab1 WHERE NOT 30 NOT IN ( + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5372
SELECT ALL + COUNT( ALL + col1 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5372
SELECT ALL + COUNT ( ALL + col1 ) FROM tab2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5373
SELECT + CAST( COUNT( ALL 29 ) AS SIGNED ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5373
SELECT + CAST ( COUNT ( ALL 29 ) AS INTEGER ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5374
SELECT DISTINCT - 91 * CAST( - col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
5369
6188
8736

skipif mysql # not compatible
query I rowsort label-5374
SELECT DISTINCT - 91 * CAST ( - col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
5369
6188
8736

query I rowsort
SELECT ALL col1 * - 43 FROM tab2 AS cor0
----
-2193
-2881
-3311

query I rowsort
SELECT ALL - 81 * col1 + col2 FROM tab1 AS cor0
----
-1038
-346
-3739

query I rowsort
SELECT + 22 * - 46 FROM tab0 AS cor0 WHERE NOT 38 / ( - col0 ) + + - col1 <= + col1 + - col2
----
-1012

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 * - ( + 38 ) IN ( + col2 + - 5 )
----

query I rowsort
SELECT ALL - ( + 50 ) + + col1 AS col0 FROM tab0 AS cor0
----
-29
-49
31

query I rowsort
SELECT col1 + - col1 - - col2 AS col1 FROM tab1 cor0
----
59
68
96

query I rowsort
SELECT DISTINCT ( + col1 ) * + col1 + - - col0 * - col1 FROM tab0 AS cor0
----
-1386
-96
5346

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5382
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ) * COUNT( * ) FROM tab2 AS cor0 WHERE NOT + 43 <> 91 * - + col1 * - - 59
----
0

skipif mysql # not compatible
query I rowsort label-5382
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) * COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + 43 <> 91 * - + col1 * - - 59
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 17 NOT BETWEEN ( NULL ) AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5384
SELECT ALL + + COUNT( * ) + 4 AS col0 FROM tab1 AS cor0 WHERE NOT - col1 IS NOT NULL
----
4

skipif mysql # not compatible
query I rowsort label-5384
SELECT ALL + + COUNT ( * ) + 4 AS col0 FROM tab1 AS cor0 WHERE NOT - col1 IS NOT NULL
----
4

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE + + 11 <= - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5386
SELECT DISTINCT - COUNT( * ) + + + 50 AS col2 FROM tab0
----
47

skipif mysql # not compatible
query I rowsort label-5386
SELECT DISTINCT - COUNT ( * ) + + + 50 AS col2 FROM tab0
----
47

query II rowsort
SELECT DISTINCT 42 AS col0, + 53 * + col2 FROM tab2
----
42
1219
42
2120
42
3074

query II rowsort
SELECT + col1, ( + + 89 ) AS col0 FROM tab0
----
1
89
21
89
81
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 11 col2 FROM tab1
----
-11
-11
-11

query I rowsort
SELECT col1 * - col1 AS col0 FROM tab0 AS cor0 WHERE ( + 35 * + 7 * + ( - col1 ) ) IS NULL OR NOT col0 >= 20
----
-6561

query I rowsort
SELECT DISTINCT - + ( + + 45 ) AS col2 FROM tab2 AS cor0 WHERE NOT + 48 IS NOT NULL
----

query II rowsort
SELECT - + 29 + - col0 AS col2, + 87 AS col2 FROM tab2 AS cor0
----
-104
87
-75
87
-93
87

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5393
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 + col0 + - + col2 * + + 26 IN ( + - col1 + CAST( NULL AS SIGNED ) * + col0 )
----

skipif mysql # not compatible
query III rowsort label-5393
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 + col0 + - + col2 * + + 26 IN ( + - col1 + CAST ( NULL AS INTEGER ) * + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5394
SELECT DISTINCT col2 FROM tab2 WHERE NOT ( 80 * + + col2 / - CAST( NULL AS SIGNED ) ) > NULL
----

skipif mysql # not compatible
query I rowsort label-5394
SELECT DISTINCT col2 FROM tab2 WHERE NOT ( 80 * + + col2 / - CAST ( NULL AS INTEGER ) ) > NULL
----

query I rowsort
SELECT ALL + 32 - - 28 FROM tab2
----
60
60
60

query I rowsort
SELECT DISTINCT + 56 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-5397
SELECT COUNT( + ( col2 ) ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5397
SELECT COUNT ( + ( col2 ) ) FROM tab0 cor0
----
3

query I rowsort
SELECT ALL 41 FROM tab1 cor0
----
41
41
41

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + col0 / ( - ( + 46 ) ) ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - 86 * - 59 * - col0 FROM tab2 cor0
----
233404
324736
380550

query I rowsort
SELECT ALL - 39 + + - 49 + + 53 AS col0 FROM tab2 AS cor0
----
-35
-35
-35

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT ( + col1 + col2 - - 94 + col0 * ( + 84 + col1 ) * 34 ) IN ( + col2 + col0 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - ( - + col1 ) * - 94 AS col0 FROM tab2 AS cor0
----
-4794
-6298
-7238

onlyif mysql # DIV for integer division: 
query I rowsort label-5404
SELECT ALL - - ( - ( col2 ) ) * + col0 DIV ( - + col0 ) FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-5404
SELECT ALL - - ( - ( col2 ) ) * + col0 / ( - + col0 ) FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT ALL - col2 FROM tab1 AS cor0 WHERE NOT - 74 = col1
----
-59
-68
-96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( ( NULL ) NOT IN ( col2 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5407
SELECT + col1 DIV - 57 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5407
SELECT + col1 / - 57 FROM tab2
----
-1
-1
0

query I rowsort
SELECT + 73 * col2 FROM tab1
----
4307
4964
7008

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5409
SELECT ALL + COUNT( * ) * - - 65 * - CAST( + 73 AS SIGNED ) AS col1 FROM tab0
----
-14235

skipif mysql # not compatible
query I rowsort label-5409
SELECT ALL + COUNT ( * ) * - - 65 * - CAST ( + 73 AS INTEGER ) AS col1 FROM tab0
----
-14235

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT IN ( - - 29, + 73 )
----

query I rowsort
SELECT - 40 * + + 35 AS col1 FROM tab1
----
-1400
-1400
-1400

onlyif mysql # aggregate syntax: 
query II rowsort label-5412
SELECT - COUNT( * ) AS col2, - COUNT( + + 57 ) FROM tab0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-5412
SELECT - COUNT ( * ) AS col2, - COUNT ( + + 57 ) FROM tab0
----
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5413
SELECT DISTINCT + COUNT( * ) * - 48 AS col1 FROM tab0
----
-144

skipif mysql # not compatible
query I rowsort label-5413
SELECT DISTINCT + COUNT ( * ) * - 48 AS col1 FROM tab0
----
-144

query I rowsort
SELECT + col0 FROM tab2 WHERE NOT - - col2 <> - + 2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5415
SELECT + ( - COUNT( * ) ) col1 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5415
SELECT + ( - COUNT ( * ) ) col1 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5416
SELECT ALL - + COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5416
SELECT ALL - + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5417
SELECT ALL + CAST( NULL AS SIGNED ) + + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5417
SELECT ALL + CAST ( NULL AS INTEGER ) + + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5418
SELECT ALL CAST( NULL AS SIGNED ) + col0 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5418
SELECT ALL CAST ( NULL AS INTEGER ) + col0 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5419
SELECT + 85 * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-255

skipif mysql # not compatible
query I rowsort label-5419
SELECT + 85 * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-255

query I rowsort
SELECT ALL + - col0 + + 70 AS col0 FROM tab0 AS cor0
----
-17
-27
55

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + 85 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( ( - col1 ) ) + - 93 col1 FROM tab1 AS cor0
----
-46
-79
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-5423
SELECT DISTINCT + MIN( ALL - 93 ) AS col0 FROM tab2 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-5423
SELECT DISTINCT + MIN ( ALL - 93 ) AS col0 FROM tab2 AS cor0
----
-93

query I rowsort
SELECT DISTINCT - + 71 FROM tab1 WHERE ( 72 - + col2 + + col1 ) > + col1
----
-71

query II rowsort
SELECT DISTINCT + col0 AS col2, - col2 AS col0 FROM tab0
----
15
-47
87
-10
97
-99

query I rowsort
SELECT + col2 FROM tab0 WHERE - ( + + col1 ) + + + 45 + col0 <> - col0
----
10
47
99

query II rowsort
SELECT DISTINCT + col2, - col1 * - col1 + + col0 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5428
SELECT * FROM tab1 AS cor0 WHERE 30 * - CAST( NULL AS SIGNED ) IN ( - col2 / - - 18, + col1 + + 53 )
----

skipif mysql # not compatible
query III rowsort label-5428
SELECT * FROM tab1 AS cor0 WHERE 30 * - CAST ( NULL AS INTEGER ) IN ( - col2 / - - 18, + col1 + + 53 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5429
SELECT - - CAST( + + 1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5429
SELECT - - CAST ( + + 1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5430
SELECT + - CAST( + COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5430
SELECT + - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT col2 * 15 AS col0 FROM tab1 cor0
----
1020
1440
885

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 / ( + col0 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5433
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1, - CAST( NULL AS SIGNED ) * - MAX( ALL + + 40 ) AS col1 FROM tab0 AS cor0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5433
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, - CAST ( NULL AS INTEGER ) * - MAX ( ALL + + 40 ) AS col1 FROM tab0 AS cor0
----
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 + + col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 65 + - 99 * - + 42 * - + col0 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + col0, + 10 AS col1 FROM tab2 AS cor0
----
46
10
64
10
75
10

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + 26 * + col2 ) = - col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5438
SELECT ALL - COUNT( * ), 92 * 98 AS col2 FROM tab1 AS cor0
----
-3
9016

skipif mysql # not compatible
query II rowsort label-5438
SELECT ALL - COUNT ( * ), 92 * 98 AS col2 FROM tab1 AS cor0
----
-3
9016

onlyif mysql # aggregate syntax: 
query I rowsort label-5439
SELECT - SUM( 27 ) FROM tab2 WHERE NOT + col2 / + - col2 = + 94
----
-81

skipif mysql # not compatible
query I rowsort label-5439
SELECT - SUM ( 27 ) FROM tab2 WHERE NOT + col2 / + - col2 = + 94
----
-81

query I rowsort
SELECT - col0 * - col1 * col1 FROM tab1
----
201019
2125
9996

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 30 col1 FROM tab1
----
-30
-30
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5442
SELECT CAST( - MIN( - ( col0 ) ) AS SIGNED ) AS col0 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-5442
SELECT CAST ( - MIN ( - ( col0 ) ) AS INTEGER ) AS col0 FROM tab0
----
97

query I rowsort
SELECT - + col2 * + col2 * - 79 FROM tab0 AS cor0
----
174511
774279
7900

onlyif mysql # aggregate syntax: 
query I rowsort label-5444
SELECT ALL SUM( DISTINCT + col1 ) AS col0 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-5444
SELECT ALL SUM ( DISTINCT + col1 ) AS col0 FROM tab1
----
66

query I rowsort
SELECT DISTINCT + col1 * 1 AS col1 FROM tab0
----
1
21
81

query I rowsort
SELECT 24 + + col0 * + + 64 FROM tab1
----
3288
5464
5848

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5447
SELECT DISTINCT - COUNT( * ) DIV - COUNT( * ) + + MAX( col1 ) FROM tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-5447
SELECT DISTINCT - COUNT ( * ) / - COUNT ( * ) + + MAX ( col1 ) FROM tab1 AS cor0
----
48

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 * - 13 < NULL
----

query I rowsort
SELECT ALL + col0 * + col0 + - 41 * - col1 - + col2 AS col2 FROM tab0 AS cor0
----
3499
8420
9351

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL IN ( col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5451
SELECT DISTINCT + 42 * 99 + - COUNT( - + ( - + col0 ) ) * + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5451
SELECT DISTINCT + 42 * 99 + - COUNT ( - + ( - + col0 ) ) * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - col2 + - + col2 FROM tab2 AS cor0
----
-116
-46
-80

query I rowsort
SELECT ALL - + col0 + - col2 + - ( - col0 ) * + + col0 * - col1 AS col2 FROM tab2 AS cor0
----
-107985
-315496
-377008

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5454
SELECT ALL 43 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5454
SELECT ALL 43 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5455
SELECT DISTINCT - SUM( + ( + col2 ) ) + + + ( - - 34 ) * 71 AS col0 FROM tab0
----
2258

skipif mysql # not compatible
query I rowsort label-5455
SELECT DISTINCT - SUM ( + ( + col2 ) ) + + + ( - - 34 ) * 71 AS col0 FROM tab0
----
2258

onlyif mysql # DIV for integer division: 
query I rowsort label-5456
SELECT DISTINCT - ( - 60 ) DIV + col0 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-5456
SELECT DISTINCT - ( - 60 ) / + col0 FROM tab2
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5457
SELECT + MIN( ALL + col2 ) AS col2 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-5457
SELECT + MIN ( ALL + col2 ) AS col2 FROM tab1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5458
SELECT + 63 * - COUNT( * ) FROM tab1
----
-189

skipif mysql # not compatible
query I rowsort label-5458
SELECT + 63 * - COUNT ( * ) FROM tab1
----
-189

onlyif mysql # aggregate syntax: 
query I rowsort label-5459
SELECT + COUNT( * ) * - ( - MAX( 56 ) ) FROM tab1
----
168

skipif mysql # not compatible
query I rowsort label-5459
SELECT + COUNT ( * ) * - ( - MAX ( 56 ) ) FROM tab1
----
168

query I rowsort
SELECT col2 + + 79 FROM tab2 AS cor0
----
102
119
137

query I rowsort
SELECT DISTINCT + - 90 AS col2 FROM tab1 AS cor0
----
-90

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN 67 AND NULL
----

query I rowsort
SELECT ( - - col2 ) + + 24 AS col1 FROM tab2
----
47
64
82

onlyif mysql # DIV for integer division: 
query I rowsort label-5464
SELECT 51 DIV + - ( 39 ) + + - col0 FROM tab1
----
-52
-86
-92

skipif mysql # not compatible
query I rowsort label-5464
SELECT 51 / + - ( 39 ) + + - col0 FROM tab1
----
-52
-86
-92

query I rowsort
SELECT ALL - - col1 AS col0 FROM tab0 WHERE - 81 * - 30 * 2 = + 84
----

query II rowsort
SELECT ALL col1 - + - 23 + + 9, ( + ( - col0 ) ) AS col0 FROM tab2
----
109
-64
83
-46
99
-75

query II rowsort
SELECT DISTINCT 0 AS col1, ( + 8 ) * - - col1 FROM tab1
----
0
112
0
376
0
40

query I rowsort
SELECT col2 * + 8 + ( + + 91 ) FROM tab2 AS cor0
----
275
411
555

onlyif mysql # aggregate syntax: 
query I rowsort label-5469
SELECT + MAX( col1 ) - - COUNT( * ) FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
84

skipif mysql # not compatible
query I rowsort label-5469
SELECT + MAX ( col1 ) - - COUNT ( * ) FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-5470
SELECT DISTINCT + col2 DIV + 96 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-5470
SELECT DISTINCT + col2 / + 96 FROM tab0 AS cor0
----
0
1

query I rowsort
SELECT ALL + 9 * - 59 + + - 35 FROM tab2 AS cor0
----
-566
-566
-566

onlyif mysql # aggregate syntax: 
query I rowsort label-5472
SELECT DISTINCT + COUNT( - 10 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5472
SELECT DISTINCT + COUNT ( - 10 ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT - + 24 AS col1 FROM tab0 cor0
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5474
SELECT CAST( - + col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-5474
SELECT CAST ( - + col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5475
SELECT - - MIN( - col1 ) DIV - 27, CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
2
NULL

skipif mysql # not compatible
query II rowsort label-5475
SELECT - - MIN ( - col1 ) / - 27, CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
2
NULL

query I rowsort
SELECT col2 * 48 AS col0 FROM tab0
----
2256
4752
480

onlyif mysql # aggregate syntax: 
query I rowsort label-5477
SELECT COUNT( 51 ) * 18 col2 FROM tab1
----
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5477
SELECT COUNT ( 51 ) * 18 col2 FROM tab1
----
54

query I rowsort
SELECT DISTINCT col1 * + - col2 AS col1 FROM tab1 cor0
----
-1344
-295
-3196

query I rowsort
SELECT + col1 * - - 84 FROM tab2 AS cor0
----
4284
5628
6468

query II rowsort
SELECT + col2, col0 * + 27 AS col0 FROM tab2 AS cor0
----
23
1242
40
1728
58
2025

query I rowsort
SELECT ALL + col1 + + + col0 FROM tab0
----
108
96
98

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NOT NULL = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5483
SELECT DISTINCT + ( + SUM( DISTINCT CAST( - + col0 AS SIGNED ) ) ) * + COUNT( * ) FROM tab1
----
-681

skipif mysql # not compatible
query I rowsort label-5483
SELECT DISTINCT + ( + SUM ( DISTINCT CAST ( - + col0 AS INTEGER ) ) ) * + COUNT ( * ) FROM tab1
----
-681

query I rowsort
SELECT DISTINCT + - 58 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-58

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 NOT IN ( + col1, + 88 )
----

query I rowsort
SELECT - - 74 AS col2 FROM tab0 AS cor0
----
74
74
74

query I rowsort
SELECT - - col1 * ( - - col0 ) + - col2 FROM tab1 AS cor0
----
366
4209
618

query II rowsort
SELECT ( + 0 ), col1 FROM tab0 cor0
----
0
1
0
21
0
81

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 + - - ( col0 ) * col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - col0 + - - 72 FROM tab0 AS cor0
----
-15
-25
57

query I rowsort
SELECT - col0 + - - col2 * + col1 * col2 FROM tab1 AS cor0
----
128973
17320
217237

query I rowsort
SELECT ALL - 87 + col1 * col2 * - col2 FROM tab2 AS cor0
----
-123287
-225475
-27066

query I rowsort
SELECT + 30 + col1 - - 24 FROM tab0 cor0
----
135
55
75

query I rowsort
SELECT DISTINCT 92 - col2 AS col1 FROM tab1
----
-4
24
33

query I rowsort
SELECT ALL - 34 + col2 + col0 - col0 AS col0 FROM tab1
----
25
34
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5496
SELECT DISTINCT COUNT( * ) DIV 2 + + SUM( + 89 ) AS col0 FROM tab0
----
268

skipif mysql # not compatible
query I rowsort label-5496
SELECT DISTINCT COUNT ( * ) / 2 + + SUM ( + 89 ) AS col0 FROM tab0
----
268

query I rowsort
SELECT DISTINCT - AVG ( + col0 ) AS col1 FROM tab0 WHERE ( ( ( NOT + 49 * 62 IS NOT NULL ) ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5498
SELECT col0 DIV col0 col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5498
SELECT col0 / col0 col0 FROM tab2 AS cor0
----
1
1
1

query II rowsort
SELECT - 71, col0 FROM tab2 AS cor0
----
-71
46
-71
64
-71
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5500
SELECT - - 2 * + COUNT( * ) * - 67 AS col2 FROM tab0 cor0
----
-402

skipif mysql # not compatible
query I rowsort label-5500
SELECT - - 2 * + COUNT ( * ) * - 67 AS col2 FROM tab0 cor0
----
-402

onlyif mysql # aggregate syntax: 
query I rowsort label-5501
SELECT - + 63 + - SUM( DISTINCT - + col2 ) FROM tab2 AS cor0 WHERE NOT ( NULL <= NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5501
SELECT - + 63 + - SUM ( DISTINCT - + col2 ) FROM tab2 AS cor0 WHERE NOT ( NULL <= NULL )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5502
SELECT + CAST( - col0 AS DECIMAL ) * ( + + col2 ) FROM tab2 AS cor0 WHERE NOT NULL < col2 + - - 68
----

skipif mysql # not compatible
query I rowsort label-5502
SELECT + CAST ( - col0 AS REAL ) * ( + + col2 ) FROM tab2 AS cor0 WHERE NOT NULL < col2 + - - 68
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 + + - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( 75 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5505
SELECT DISTINCT * FROM tab0 WHERE NOT - CAST( col1 AS SIGNED ) - col0 * - col0 NOT BETWEEN ( + - col0 ) AND col2
----

skipif mysql # not compatible
query III rowsort label-5505
SELECT DISTINCT * FROM tab0 WHERE NOT - CAST ( col1 AS INTEGER ) - col0 * - col0 NOT BETWEEN ( + - col0 ) AND col2
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 73 NOT BETWEEN + 43 AND - col0 + - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5507
SELECT * FROM tab0 WHERE NOT - - col1 * + col1 * + col1 - + CAST( + - 57 AS SIGNED ) + + 30 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5507
SELECT * FROM tab0 WHERE NOT - - col1 * + col1 * + col1 - + CAST ( + - 57 AS INTEGER ) + + 30 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5508
SELECT COUNT( * ) DIV + 49 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5508
SELECT COUNT ( * ) / + 49 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5509
SELECT COUNT( * ) * + 56 FROM tab1
----
168

skipif mysql # not compatible
query I rowsort label-5509
SELECT COUNT ( * ) * + 56 FROM tab1
----
168

query I rowsort
SELECT ALL + - 13 AS col0 FROM tab0 WHERE - + 31 > NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5511
SELECT MIN( DISTINCT + + col1 ) DIV + - COUNT( - - col2 ) AS col2 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-5511
SELECT MIN ( DISTINCT + + col1 ) / + - COUNT ( - - col2 ) AS col2 FROM tab1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5512
SELECT - + MIN( ALL - col2 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-5512
SELECT - + MIN ( ALL - col2 ) FROM tab2 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5513
SELECT - - MIN( DISTINCT + 85 ) AS col2 FROM tab1 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-5513
SELECT - - MIN ( DISTINCT + 85 ) AS col2 FROM tab1 AS cor0
----
85

query I rowsort
SELECT + - 38 AS col2 FROM tab2 AS cor0
----
-38
-38
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5515
SELECT DISTINCT + 48 + - CAST( NULL AS SIGNED ) + - COUNT( * ) * - COUNT( * ) + - 23 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5515
SELECT DISTINCT + 48 + - CAST ( NULL AS INTEGER ) + - COUNT ( * ) * - COUNT ( * ) + - 23 AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5516
SELECT COUNT( * ) AS col0 FROM ( tab0 cor0 CROSS JOIN tab2 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-5516
SELECT COUNT ( * ) AS col0 FROM ( tab0 cor0 CROSS JOIN tab2 AS cor1 )
----
9

query I rowsort
SELECT DISTINCT - col1 + + 18 + - - col0 AS col0 FROM tab1 cor0
----
55
62
98

query II rowsort
SELECT ALL + col0, 20 AS col2 FROM tab2 cor0
----
46
20
64
20
75
20

query II rowsort
SELECT ALL col0 + - col0, - col0 AS col2 FROM tab1 AS cor0
----
0
-51
0
-85
0
-91

query I rowsort
SELECT DISTINCT - col2 + - col1 * + 8 - col0 - 98 AS col1 FROM tab0 AS cor0
----
-302
-363
-808

query I rowsort
SELECT DISTINCT - 30 + 12 * 84 FROM tab0 AS cor0
----
978

query I rowsort
SELECT DISTINCT + 15 + + ( + + 57 ) FROM tab2 AS cor0
----
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col2 FROM tab2 WHERE - col2 IS NULL
----

query I rowsort
SELECT ALL 36 - + col0 - - col0 * - 85 * 64 * - - 34 FROM tab2
----
-11837468
-13872039
-8508170

onlyif mysql # aggregate syntax: 
query I rowsort label-5525
SELECT DISTINCT - SUM( - col1 ) - - 29 + 28 AS col2 FROM tab1
----
123

skipif mysql # not compatible
query I rowsort label-5525
SELECT DISTINCT - SUM ( - col1 ) - - 29 + 28 AS col2 FROM tab1
----
123

query I rowsort
SELECT ALL col0 + + 41 FROM tab1
----
126
132
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5527
SELECT ALL MIN( ALL - - CAST( NULL AS SIGNED ) ) col1 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5527
SELECT ALL MIN ( ALL - - CAST ( NULL AS INTEGER ) ) col1 FROM tab0
----
NULL

query I rowsort
SELECT 67 FROM tab1 WHERE 11 IS NULL
----

query II rowsort
SELECT 5 * - + col1 * - col0 * - col1 - + col1, col2 FROM tab2
----
-1683442
58
-1897357
40
-598281
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5530
SELECT ALL - 66 - - COUNT( * ) AS col0 FROM tab0
----
-63

skipif mysql # not compatible
query I rowsort label-5530
SELECT ALL - 66 - - COUNT ( * ) AS col0 FROM tab0
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5531
SELECT 10 - - CAST( - + col2 AS SIGNED ) AS col1, col1 FROM tab0
----
-37
81
-89
1
0
21

skipif mysql # not compatible
query II rowsort label-5531
SELECT 10 - - CAST ( - + col2 AS INTEGER ) AS col1, col1 FROM tab0
----
-37
81
-89
1
0
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 78 * + + col1 col0, + 45 + - - col1 * + col0 FROM tab1 AS cor0
----
1092
759
3666
4322
390
470

query I rowsort
SELECT DISTINCT - + 61 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5534
SELECT ALL - CAST( + COUNT( * ) AS SIGNED ) * - 55 * + - COUNT( * ) FROM tab1 WHERE ( - col2 ) * + ( - + 39 ) IS NOT NULL
----
-495

skipif mysql # not compatible
query I rowsort label-5534
SELECT ALL - CAST ( + COUNT ( * ) AS INTEGER ) * - 55 * + - COUNT ( * ) FROM tab1 WHERE ( - col2 ) * + ( - + 39 ) IS NOT NULL
----
-495

query I rowsort
SELECT ALL - col1 * 8 * - col2 AS col2 FROM tab2 cor0
----
24640
31088
9384

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 59 * - + col2 <> + 34
----

query I rowsort
SELECT + + col2 * + col0 AS col0 FROM tab1 cor0 WHERE NOT NULL NOT IN ( 27 + - - col2, 18 * - 67 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - 91 * col0 / - - col2 * + - 38 <> + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5539
SELECT ALL - COUNT( * ) / + + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5539
SELECT ALL - COUNT ( * ) / + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT - 54 * col2 AS col1 FROM tab0
----
-2538
-5346
-540

onlyif mysql # DIV for integer division: 
query I rowsort label-5541
SELECT 84 DIV 75 * 68 FROM tab2
----
68
68
68

skipif mysql # not compatible
query I rowsort label-5541
SELECT 84 / 75 * 68 FROM tab2
----
68
68
68

onlyif mysql # aggregate syntax: 
query II rowsort label-5542
SELECT ALL SUM( ALL - col1 ), COUNT( * ) AS col1 FROM tab0
----
-103
3

skipif mysql # not compatible
query II rowsort label-5542
SELECT ALL SUM ( ALL - col1 ), COUNT ( * ) AS col1 FROM tab0
----
-103
3

query I rowsort
SELECT ALL - + 91 * + + 63 FROM tab2 AS cor0
----
-5733
-5733
-5733

query I rowsort
SELECT ( + - 42 ) FROM tab0
----
-42
-42
-42

query II rowsort
SELECT DISTINCT col2 AS col0, - ( 1 ) FROM tab2
----
23
-1
40
-1
58
-1

query I rowsort
SELECT col1 + + - col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - - col2 * col2 + + - ( - - 12 ) AS col1 FROM tab0 AS cor0
----
2197
88
9789

onlyif mysql # aggregate syntax: 
query I rowsort label-5548
SELECT COUNT( * ) + - COUNT( DISTINCT col0 ) + - 25 FROM tab2 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-5548
SELECT COUNT ( * ) + - COUNT ( DISTINCT col0 ) + - 25 FROM tab2 AS cor0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-5549
SELECT - COUNT( * ) + - 71 AS col0 FROM tab1 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-5549
SELECT - COUNT ( * ) + - 71 AS col0 FROM tab1 AS cor0
----
-74

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT - - 62 - - + 44 * - col0 AS col0 FROM tab0 AS cor0
----
-3766
-4206
-598

query I rowsort
SELECT ( + 13 ) + col1 AS col0 FROM tab2 AS cor0
----
64
80
90

query I rowsort
SELECT col1 + - + col2 + col0 * + 86 + - col1 AS col1 FROM tab2
----
3933
5464
6392

onlyif mysql # aggregate syntax: 
query I rowsort label-5554
SELECT - SUM( DISTINCT - 15 ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-5554
SELECT - SUM ( DISTINCT - 15 ) FROM tab0
----
15

query III rowsort
SELECT * FROM tab2 WHERE - + col1 > NULL
----

query I rowsort
SELECT DISTINCT + 37 FROM tab1 WHERE - - col1 IS NOT NULL
----
37

query I rowsort
SELECT DISTINCT col0 * + + ( - col1 ) FROM tab0
----
-1215
-1827
-97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 - - - col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5559
SELECT - COUNT( * ), 54 AS col2 FROM tab2 AS cor0
----
-3
54

skipif mysql # not compatible
query II rowsort label-5559
SELECT - COUNT ( * ), 54 AS col2 FROM tab2 AS cor0
----
-3
54

onlyif mysql # DIV for integer division: 
query II rowsort label-5560
SELECT ALL - 36 AS col2, - 83 DIV + col0 FROM tab2 AS cor0
----
-36
-1
-36
-1
-36
-1

skipif mysql # not compatible
query II rowsort label-5560
SELECT ALL - 36 AS col2, - 83 / + col0 FROM tab2 AS cor0
----
-36
-1
-36
-1
-36
-1

query I rowsort
SELECT ALL - col1 * - col1 AS col1 FROM tab1 AS cor0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5562
SELECT - 0 AS col1, COUNT( * ) AS col2 FROM tab1 cor0
----
0
3

skipif mysql # not compatible
query II rowsort label-5562
SELECT - 0 AS col1, COUNT ( * ) AS col2 FROM tab1 cor0
----
0
3

query I rowsort
SELECT ALL - col2 * + 14 * - col1 AS col1 FROM tab0 AS cor0
----
1386
2940
53298

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5564
SELECT CAST( NULL AS SIGNED ) * + + col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5564
SELECT CAST ( NULL AS INTEGER ) * + + col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 69 * 10 AS col1 FROM tab2 AS cor0
----
690
690
690

query II rowsort
SELECT ALL col1 + - col2, + ( col1 ) AS col1 FROM tab2 AS cor0
----
28
51
37
77
9
67

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5567
SELECT DISTINCT CAST( 84 AS SIGNED ) + col0 DIV + + col0 AS col2 FROM tab1 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-5567
SELECT DISTINCT CAST ( 84 AS INTEGER ) + col0 / + + col0 AS col2 FROM tab1 AS cor0
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-5568
SELECT ALL - - ( COUNT( * ) ) AS col1, + MAX( - col0 ) * + - 45 FROM tab0 AS cor0
----
3
675

skipif mysql # not compatible
query II rowsort label-5568
SELECT ALL - - ( COUNT ( * ) ) AS col1, + MAX ( - col0 ) * + - 45 FROM tab0 AS cor0
----
3
675

query II rowsort
SELECT DISTINCT - 4, col1 FROM tab2
----
-4
51
-4
67
-4
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5570
SELECT DISTINCT COUNT( * ) * + MAX( ( - + 40 ) ) AS col2 FROM tab1
----
-120

skipif mysql # not compatible
query I rowsort label-5570
SELECT DISTINCT COUNT ( * ) * + MAX ( ( - + 40 ) ) AS col2 FROM tab1
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-5571
SELECT ALL 51 * - COUNT( * ) AS col0 FROM tab1
----
-153

skipif mysql # not compatible
query I rowsort label-5571
SELECT ALL 51 * - COUNT ( * ) AS col0 FROM tab1
----
-153

onlyif mysql # DIV for integer division: 
query I rowsort label-5572
SELECT 53 DIV - - 85 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5572
SELECT 53 / - - 85 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5573
SELECT ALL + 93 DIV + 9 - + col0 * col1 + 71 FROM tab0 WHERE NOT + 81 IS NULL
----
-1134
-16
-1746

skipif mysql # not compatible
query I rowsort label-5573
SELECT ALL + 93 / + 9 - + col0 * col1 + 71 FROM tab0 WHERE NOT + 81 IS NULL
----
-1134
-16
-1746

onlyif mysql # aggregate syntax: 
query I rowsort label-5574
SELECT DISTINCT + COUNT( ALL + col0 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5574
SELECT DISTINCT + COUNT ( ALL + col0 ) AS col1 FROM tab0
----
3

query I rowsort
SELECT + 71 * + 68 FROM tab2
----
4828
4828
4828

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5576
SELECT DISTINCT CAST( NULL AS SIGNED ) * SUM( ALL col2 ), + CAST( NULL AS SIGNED ) + + + 26 FROM tab2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5576
SELECT DISTINCT CAST ( NULL AS INTEGER ) * SUM ( ALL col2 ), + CAST ( NULL AS INTEGER ) + + + 26 FROM tab2
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5577
SELECT ( + MAX( + - ( + col0 ) ) ) AS col2 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-5577
SELECT ( + MAX ( + - ( + col0 ) ) ) AS col2 FROM tab0
----
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 AS col1, + 49 * - ( - - 9 ) col2 FROM tab2 cor0
----
-23
-441
-40
-441
-58
-441

onlyif mysql # aggregate syntax: 
query I rowsort label-5579
SELECT ALL + 94 + COUNT( * ) AS col1 FROM tab2 cor0
----
97

skipif mysql # not compatible
query I rowsort label-5579
SELECT ALL + 94 + COUNT ( * ) AS col1 FROM tab2 cor0
----
97

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND + ( + + col1 )
----

query I rowsort
SELECT DISTINCT + + col0 + 61 - - + col0 AS col0 FROM tab1 cor0
----
163
231
243

query I rowsort
SELECT col0 * + col2 + - col2 AS col0 FROM tab1
----
4800
4956
6120

onlyif mysql # DIV for integer division: 
query I rowsort label-5583
SELECT + col0 DIV + col1 + - 61 FROM tab1 AS cor0
----
-44
-58
-60

skipif mysql # not compatible
query I rowsort label-5583
SELECT + col0 / + col1 + - 61 FROM tab1 AS cor0
----
-44
-58
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 + - 74 col0 FROM tab1 AS cor0
----
-15
-6
22

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-14
-47
-5

query I rowsort
SELECT + + col2 FROM tab1 AS cor0 WHERE 72 IS NOT NULL
----
59
68
96

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-51
-85
-91

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL = col2 * col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 37 col2 FROM tab0 AS cor0
----
37
37
37

query II rowsort
SELECT col1 AS col2, col2 * col2 FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL AND NOT ( NULL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5591
SELECT - 88 DIV - col2 + 53 - - - col1 * + col0 AS col2 FROM tab0 AS cor0
----
-1161
-1766
-44

skipif mysql # not compatible
query I rowsort label-5591
SELECT - 88 / - col2 + 53 - - - col1 * + col0 AS col2 FROM tab0 AS cor0
----
-1161
-1766
-44

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col0 + + + col1 < + + col1
----

query II rowsort
SELECT + 64 AS col2, 52 + + col0 FROM tab0
----
64
139
64
149
64
67

query I rowsort
SELECT + col2 * + ( 77 ) FROM tab0
----
3619
7623
770

query I rowsort
SELECT ALL ( + - ( - col0 ) ) AS col1 FROM tab1
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5596
SELECT ALL MIN( DISTINCT - 90 ) FROM tab0
----
-90

skipif mysql # not compatible
query I rowsort label-5596
SELECT ALL MIN ( DISTINCT - 90 ) FROM tab0
----
-90

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5597
SELECT CAST( NULL AS DECIMAL ) AS col1, col1 * + + col1 FROM tab0
----
NULL
1
NULL
441
NULL
6561

skipif mysql # not compatible
query II rowsort label-5597
SELECT CAST ( NULL AS REAL ) AS col1, col1 * + + col1 FROM tab0
----
NULL
1
NULL
441
NULL
6561

query II rowsort
SELECT 73, ( - + col0 ) * - - col2 AS col1 FROM tab0
----
73
-705
73
-870
73
-9603

query II rowsort
SELECT 21, + col1 + + col2 AS col0 FROM tab0 AS cor0
----
21
100
21
128
21
31

query II rowsort
SELECT + 76 AS col0, col1 FROM tab0 AS cor0
----
76
1
76
21
76
81

query I rowsort
SELECT - - 39 FROM tab0 cor0
----
39
39
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 30 * + col2 col1 FROM tab0
----
1410
2970
300

query II rowsort
SELECT - - 45, + 91 * + col2 + - col1 AS col0 FROM tab1 AS cor0
----
45
5364
45
6141
45
8722

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 81 col1 FROM tab2 cor0
----
81
81
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5605
SELECT - + col0 AS col2, - ( + - col2 ) * - 9 / CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-51
NULL
-85
NULL
-91
NULL

skipif mysql # not compatible
query II rowsort label-5605
SELECT - + col0 AS col2, - ( + - col2 ) * - 9 / CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-51
NULL
-85
NULL
-91
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL = - col2 / - 63
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5607
SELECT ALL col1 AS col1, col1 DIV + + 18 FROM tab2 AS cor0
----
51
2
67
3
77
4

skipif mysql # not compatible
query II rowsort label-5607
SELECT ALL col1 AS col1, col1 / + + 18 FROM tab2 AS cor0
----
51
2
67
3
77
4

query I rowsort
SELECT DISTINCT + col0 + - 72 AS col2 FROM tab2 AS cor0
----
-26
-8
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col1, 88 AS col2 FROM tab2 AS cor0
----
51
88
67
88
77
88

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * - 81 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5611
SELECT DISTINCT + SUM( DISTINCT - col0 ) col0 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5611
SELECT DISTINCT + SUM ( DISTINCT - col0 ) col0 FROM tab1 AS cor0
----
-227

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5612
SELECT DISTINCT * FROM tab2 WHERE NOT NULL = + CAST( NULL AS SIGNED ) * - - col2 + + - col0
----

skipif mysql # not compatible
query III rowsort label-5612
SELECT DISTINCT * FROM tab2 WHERE NOT NULL = + CAST ( NULL AS INTEGER ) * - - col2 + + - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5613
SELECT ALL + ( - 82 ) * - + col1 + CAST( col1 AS SIGNED ) + + 6 AS col0 FROM tab1
----
1168
3907
421

skipif mysql # not compatible
query I rowsort label-5613
SELECT ALL + ( - 82 ) * - + col1 + CAST ( col1 AS INTEGER ) + + 6 AS col0 FROM tab1
----
1168
3907
421

query I rowsort
SELECT + col1 + - + col1 AS col0 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + 46 * - col1 col0 FROM tab0
----
-4462
-55890
-84042

query I rowsort
SELECT + col2 * + ( - - 77 ) AS col1 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
3619
7623
770

query I rowsort
SELECT DISTINCT 0 + + + col1 FROM tab0 AS cor0
----
1
21
81

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 / + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE + 54 BETWEEN + 98 AND - col2 + + + col2
----

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - - 2 + 96 FROM tab0 AS cor0
----
98
98
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5622
SELECT ALL COUNT( * ) - - 80 AS col2 FROM tab1 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-5622
SELECT ALL COUNT ( * ) - - 80 AS col2 FROM tab1 AS cor0
----
83

query I rowsort
SELECT - col1 + 1 AS col1 FROM tab1 AS cor0
----
-13
-4
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-5624
SELECT 62 DIV - 84 * - 47 + col1 * + + col0 FROM tab2 AS cor0
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-5624
SELECT 62 / - 84 * - 47 + col1 * + + col0 FROM tab2 AS cor0
----
2346
4928
5025

query II rowsort
SELECT ALL col0 AS col0, + col2 * - col1 FROM tab2 AS cor0
----
46
-1173
64
-3080
75
-3886

query I rowsort
SELECT DISTINCT + col0 * - col2 AS col2 FROM tab1 AS cor0 WHERE NOT 24 BETWEEN + col2 AND NULL
----
-4896
-5015
-6188

query I rowsort
SELECT - - 78 * + + col2 FROM tab1 AS cor0
----
4602
5304
7488

onlyif mysql # aggregate syntax: 
query II rowsort label-5628
SELECT ALL 47, + COUNT( * ) * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
47
-9

skipif mysql # not compatible
query II rowsort label-5628
SELECT ALL 47, + COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
47
-9

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 NOT IN ( - + col1, + col0 * - col1 + 3, - col2, + 0, col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5630
SELECT CAST( + + col2 AS SIGNED ) col1, - 3 AS col1 FROM tab2
----
23
-3
40
-3
58
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5630
SELECT CAST ( + + col2 AS INTEGER ) col1, - 3 AS col1 FROM tab2
----
23
-3
40
-3
58
-3

query I rowsort
SELECT DISTINCT 53 * - + 73 FROM tab1
----
-3869

query I rowsort
SELECT ALL + - 88 AS col2 FROM tab1 AS cor0
----
-88
-88
-88

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + 24
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT + + col2 IS NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5635
SELECT DISTINCT SUM( col1 ) AS col1, COUNT( * ) + + COUNT( * ) FROM tab0 AS cor0
----
103
6

skipif mysql # not compatible
query II rowsort label-5635
SELECT DISTINCT SUM ( col1 ) AS col1, COUNT ( * ) + + COUNT ( * ) FROM tab0 AS cor0
----
103
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5636
SELECT ALL COUNT( + 51 ) col2 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5636
SELECT ALL COUNT ( + 51 ) col2 FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 51 * - - col2 + + + ( - + 7 ) col0 FROM tab2
----
-1180
-2047
-2965

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - ( - + col2 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 63 / - col1 + + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5640
SELECT + SUM( - col1 ) + - - 76 FROM tab1 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-5640
SELECT + SUM ( - col1 ) + - - 76 FROM tab1 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5641
SELECT + MIN( DISTINCT - - 54 ) + - 7 FROM tab2 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-5641
SELECT + MIN ( DISTINCT - - 54 ) + - 7 FROM tab2 AS cor0
----
47

query I rowsort
SELECT + 37 + - + col1 + - + 57 * + + col2 FROM tab2 AS cor0
----
-1325
-2320
-3336

onlyif mysql # aggregate syntax: 
query I rowsort label-5643
SELECT ALL + 80 * + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
240

skipif mysql # not compatible
query I rowsort label-5643
SELECT ALL + 80 * + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
240

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5645
SELECT CAST( - - 86 AS SIGNED ) FROM tab2
----
86
86
86

skipif mysql # not compatible
query I rowsort label-5645
SELECT CAST ( - - 86 AS INTEGER ) FROM tab2
----
86
86
86

query II rowsort
SELECT DISTINCT 44 + - col0 AS col2, - col1 + + 83 + 31 AS col2 FROM tab0
----
-43
93
-53
113
29
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0, - col0 col1 FROM tab2
----
46
-46
64
-64
75
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5648
SELECT ( - COUNT( * ) ) * - SUM( ALL - - 82 ) FROM tab2
----
738

skipif mysql # not compatible
query I rowsort label-5648
SELECT ( - COUNT ( * ) ) * - SUM ( ALL - - 82 ) FROM tab2
----
738

query I rowsort
SELECT 45 * 21 * col2 FROM tab1
----
55755
64260
90720

onlyif mysql # aggregate syntax: 
query I rowsort label-5650
SELECT DISTINCT COUNT( DISTINCT - col0 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5650
SELECT DISTINCT COUNT ( DISTINCT - col0 ) AS col2 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5651
SELECT CAST( col2 AS SIGNED ) col0 FROM tab0
----
10
47
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5651
SELECT CAST ( col2 AS INTEGER ) col0 FROM tab0
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col0 ) * - + col0 + - 82 * + + col1 col2 FROM tab2
----
-10410
-11119
-6298

query I rowsort
SELECT ALL 25 + - - col2 FROM tab0
----
124
35
72

query I rowsort
SELECT 86 - + col1 FROM tab1
----
39
72
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5655
SELECT ALL COUNT( * ) + - - 11 * - 85 - - - SUM( ALL + col2 ) FROM tab0
----
-1088

skipif mysql # not compatible
query I rowsort label-5655
SELECT ALL COUNT ( * ) + - - 11 * - 85 - - - SUM ( ALL + col2 ) FROM tab0
----
-1088

query I rowsort
SELECT DISTINCT 14 * - ( + - col1 ) * - + 46 + 67 * - + col0 FROM tab2
----
-35926
-48173
-53876

query III rowsort
SELECT * FROM tab0 WHERE - col0 BETWEEN NULL AND col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5658
SELECT ALL - SUM( + col2 ), COUNT( * ) AS col0 FROM tab1 AS cor0
----
-223
3

skipif mysql # not compatible
query II rowsort label-5658
SELECT ALL - SUM ( + col2 ), COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-223
3

query I rowsort
SELECT DISTINCT - 75 * - 76 AS col2 FROM tab0 cor0
----
5700

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5660
SELECT DISTINCT 16 + CAST( + + col1 AS SIGNED ) AS col2, - col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT col2 IS NOT NULL )
----
67
-46
83
-75
93
-64

skipif mysql # not compatible
query II rowsort label-5660
SELECT DISTINCT 16 + CAST ( + + col1 AS INTEGER ) AS col2, - col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT col2 IS NOT NULL )
----
67
-46
83
-75
93
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5661
SELECT DISTINCT + SUM( DISTINCT - + 22 ) * MAX( + col0 ) + - + CAST( + + MAX( col1 ) AS SIGNED ) FROM tab1
----
-2049

skipif mysql # not compatible
query I rowsort label-5661
SELECT DISTINCT + SUM ( DISTINCT - + 22 ) * MAX ( + col0 ) + - + CAST ( + + MAX ( col1 ) AS INTEGER ) FROM tab1
----
-2049

query II rowsort
SELECT DISTINCT 76 AS col0, col0 AS col1 FROM tab2
----
76
46
76
64
76
75

onlyif mysql # DIV for integer division: 
query I rowsort label-5663
SELECT ALL 35 DIV + 19 AS col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5663
SELECT ALL 35 / + 19 AS col1 FROM tab0
----
1
1
1

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 NOT BETWEEN + 8 + col1 + + col0 * + col0 AND - col2
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 * + - 56 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5666
SELECT ALL * FROM tab2 WHERE + ( - 33 ) * + 57 + 45 + + - CAST( - 86 AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5666
SELECT ALL * FROM tab2 WHERE + ( - 33 ) * + 57 + 45 + + - CAST ( - 86 AS REAL ) IS NULL
----

query I rowsort
SELECT - ( col1 ) * 73 FROM tab0
----
-1533
-5913
-73

query II rowsort
SELECT - col0 AS col0, col2 AS col1 FROM tab1
----
-51
96
-85
59
-91
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5669
SELECT DISTINCT - COUNT( 44 ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5669
SELECT DISTINCT - COUNT ( 44 ) AS col2 FROM tab0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5670
SELECT ALL + CAST( COUNT( * ) AS SIGNED ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5670
SELECT ALL + CAST ( COUNT ( * ) AS INTEGER ) FROM tab1
----
3

query II rowsort
SELECT - 28 AS col2, + col0 AS col2 FROM tab0
----
-28
15
-28
87
-28
97

query II rowsort
SELECT DISTINCT col2 AS col2, 11 AS col2 FROM tab0
----
10
11
47
11
99
11

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5674
SELECT ALL - 51 DIV + - col0 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5674
SELECT ALL - 51 / + - col0 FROM tab1 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5675
SELECT DISTINCT + COUNT( * ) * + + 84 AS col0 FROM tab1 AS cor0
----
252

skipif mysql # not compatible
query I rowsort label-5675
SELECT DISTINCT + COUNT ( * ) * + + 84 AS col0 FROM tab1 AS cor0
----
252

query I rowsort
SELECT - - col1 * + - col0 FROM tab1 AS cor0
----
-425
-4277
-714

query II rowsort
SELECT + col0 AS col2, col0 AS col0 FROM tab1 cor0
----
51
51
85
85
91
91

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL NOT IN ( - 10 + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5679
SELECT - 36 * MIN( ALL - col0 ) FROM tab2
----
2700

skipif mysql # not compatible
query I rowsort label-5679
SELECT - 36 * MIN ( ALL - col0 ) FROM tab2
----
2700

onlyif mysql # aggregate syntax: 
query II rowsort label-5680
SELECT ALL + ( COUNT( * ) ), ( + COUNT( * ) ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9
9

skipif mysql # not compatible
query II rowsort label-5680
SELECT ALL + ( COUNT ( * ) ), ( + COUNT ( * ) ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5681
SELECT ALL - 96 * COUNT( * ) * + 65 FROM tab1
----
-18720

skipif mysql # not compatible
query I rowsort label-5681
SELECT ALL - 96 * COUNT ( * ) * + 65 FROM tab1
----
-18720

onlyif mysql # aggregate syntax: 
query II rowsort label-5682
SELECT DISTINCT - ( COUNT( * ) ) col1, 67 FROM tab1
----
-3
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5682
SELECT DISTINCT - ( COUNT ( * ) ) col1, 67 FROM tab1
----
-3
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 70 col0 FROM tab1 AS cor0
----
70
70
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5684
SELECT - MAX( DISTINCT + col0 ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-5684
SELECT - MAX ( DISTINCT + col0 ) FROM tab0 AS cor0
----
-97

onlyif mysql # DIV for integer division: 
query II rowsort label-5685
SELECT + + col2 + + 33 AS col1, col1 DIV 35 col2 FROM tab2 AS cor0
----
56
1
73
2
91
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5685
SELECT + + col2 + + 33 AS col1, col1 / 35 col2 FROM tab2 AS cor0
----
56
1
73
2
91
1

query I rowsort
SELECT ALL + col2 + 71 FROM tab1 AS cor0
----
130
139
167

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5687
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + + 28 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5687
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + + 28 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5688
SELECT CAST( + CAST( - 49 AS SIGNED ) AS SIGNED ) + ( col2 ) * + col1 AS col1 FROM tab1
----
1295
246
3147

skipif mysql # not compatible
query I rowsort label-5688
SELECT CAST ( + CAST ( - 49 AS INTEGER ) AS INTEGER ) + ( col2 ) * + col1 AS col1 FROM tab1
----
1295
246
3147

onlyif mysql # aggregate syntax: 
query I rowsort label-5689
SELECT COUNT( * ) * + COUNT( * ) + + COUNT( * ) AS col2 FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-5689
SELECT COUNT ( * ) * + COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab1
----
12

query I rowsort
SELECT col0 + - + 96 + ( - col2 ) FROM tab2
----
-72
-73
-79

query I rowsort
SELECT 14 + - col1 FROM tab2
----
-37
-53
-63

query III rowsort
SELECT DISTINCT + - col0, + col0 * + col1 * - col1 AS col0, + 90 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
9 values hashing to b7a3a60399061903688d14abdb62ca83

query I rowsort
SELECT ALL + 57 + + 94 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5694
SELECT DISTINCT + MIN( ALL + 3 ) + - COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5694
SELECT DISTINCT + MIN ( ALL + 3 ) + - COUNT ( * ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT ( + col0 ) * - col1 * + + 70 AS col0 FROM tab0 AS cor0
----
-127890
-6790
-85050

query I rowsort
SELECT - col1 * - col0 * - + 39 FROM tab0 AS cor0
----
-3783
-47385
-71253

onlyif mysql # aggregate syntax: 
query I rowsort label-5697
SELECT SUM( ALL + + col0 ) * 46 FROM tab1 AS cor0
----
10442

skipif mysql # not compatible
query I rowsort label-5697
SELECT SUM ( ALL + + col0 ) * 46 FROM tab1 AS cor0
----
10442

onlyif mysql # DIV for integer division: 
query I rowsort label-5698
SELECT DISTINCT - - col1 DIV - 51 * - col0 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5698
SELECT DISTINCT - - col1 / - 51 * - col0 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT col2 * + col0 * 12 FROM tab0 AS cor0
----
10440
115236
8460

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5700
SELECT + + 39 * - + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5700
SELECT + + 39 * - + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 86 * + 96 * + 73 col2 FROM tab1 AS cor0
----
602688
602688
602688

query II rowsort
SELECT ALL - 85 AS col2, - col1 AS col0 FROM tab2 cor0
----
-85
-51
-85
-67
-85
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5703
SELECT ALL - + COUNT( * ) AS col1 FROM tab0 WHERE NOT + - col0 * 84 * + CAST( - + 75 AS SIGNED ) * - 62 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5703
SELECT ALL - + COUNT ( * ) AS col1 FROM tab0 WHERE NOT + - col0 * 84 * + CAST ( - + 75 AS INTEGER ) * - 62 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5704
SELECT ALL COUNT( * ) * - 84 AS col1 FROM tab0
----
-252

skipif mysql # not compatible
query I rowsort label-5704
SELECT ALL COUNT ( * ) * - 84 AS col1 FROM tab0
----
-252

query I rowsort
SELECT ALL ( - + col0 ) * col2 AS col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + - 8 + - + col2 * + col1 IS NULL OR ( - + 37 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 * - - 6 NOT BETWEEN - 28 * + col0 AND + col1
----
87
21
10
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5708
SELECT + + col0 AS col0 FROM tab1 AS cor0 WHERE NOT - col0 * + col2 - - col1 - col1 + + col2 + - col2 + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-5708
SELECT + + col0 AS col0 FROM tab1 AS cor0 WHERE NOT - col0 * + col2 - - col1 - col1 + + col2 + - col2 + CAST ( NULL AS INTEGER ) IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( 64 * - - 68 ) IS NULL
----

query I rowsort
SELECT col0 + - 77 AS col0 FROM tab2
----
-13
-2
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-5711
SELECT - 99 * MAX( ALL - + col2 ) + + - COUNT( * ) FROM tab0 AS cor0
----
987

skipif mysql # not compatible
query I rowsort label-5711
SELECT - 99 * MAX ( ALL - + col2 ) + + - COUNT ( * ) FROM tab0 AS cor0
----
987

query I rowsort
SELECT - + 34 + + - col0 AS col1 FROM tab2 AS cor0
----
-109
-80
-98

query I rowsort
SELECT ALL - - ( + - col1 ) FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT ALL ( + + col0 ) + - 76 + - col2 AS col0 FROM tab0 AS cor0
----
-108
-78
1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 49 <> NULL
----

query I rowsort
SELECT ALL 65 + + - col2 FROM tab2 AS cor0
----
25
42
7

query I rowsort
SELECT ALL + 51 - 56 + + - col1 AS col1 FROM tab2
----
-56
-72
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5718
SELECT 71 DIV + - COUNT( * ) - + ( - 85 ) FROM tab1
----
62

skipif mysql # not compatible
query I rowsort label-5718
SELECT 71 / + - COUNT ( * ) - + ( - 85 ) FROM tab1
----
62

query I rowsort
SELECT + col2 + - col1 - + col2 FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT + - AVG ( ALL - + col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT + ( + 58 ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5721
SELECT ALL ( COUNT( * ) ) * + 43 AS col1 FROM tab0 cor0
----
129

skipif mysql # not compatible
query I rowsort label-5721
SELECT ALL ( COUNT ( * ) ) * + 43 AS col1 FROM tab0 cor0
----
129

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 73 AS col2, + 92 col2 FROM tab0 AS cor0
----
73
92

query I rowsort
SELECT ALL - 17 * - col1 FROM tab2 AS cor0
----
1139
1309
867

query I rowsort
SELECT - 55 * - + col2 * 50 * 54 FROM tab2 AS cor0
----
3415500
5940000
8613000

query I rowsort
SELECT DISTINCT col0 * - + col2 + + col2 * - col2 AS col1 FROM tab2 AS cor0
----
-1587
-4160
-7714

query II rowsort
SELECT + - col0 AS col2, + col2 * + col0 FROM tab0 AS cor0
----
-15
705
-87
870
-97
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-5727
SELECT 67 * 71 * - - COUNT( * ) AS col2 FROM tab2
----
14271

skipif mysql # not compatible
query I rowsort label-5727
SELECT 67 * 71 * - - COUNT ( * ) AS col2 FROM tab2
----
14271

onlyif mysql # DIV for integer division: 
query I rowsort label-5728
SELECT col0 * 81 * col1 DIV - col2 FROM tab2
----
-7017
-8262
-9979

skipif mysql # not compatible
query I rowsort label-5728
SELECT col0 * 81 * col1 / - col2 FROM tab2
----
-7017
-8262
-9979

query II rowsort
SELECT DISTINCT 27 AS col1, ( + 95 ) AS col1 FROM tab2
----
27
95

query I rowsort
SELECT ALL - + col0 - - - col1 FROM tab1 WHERE + 94 IS NOT NULL
----
-138
-65
-90

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5731
SELECT COUNT( DISTINCT - col2 ) AS col1, CAST( NULL AS DECIMAL ) FROM tab2
----
3
NULL

skipif mysql # not compatible
query II rowsort label-5731
SELECT COUNT ( DISTINCT - col2 ) AS col1, CAST ( NULL AS REAL ) FROM tab2
----
3
NULL

query II rowsort
SELECT DISTINCT ( - - 45 ) AS col0, + col1 FROM tab1
----
45
14
45
47
45
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5733
SELECT MIN( - 52 ) FROM tab1
----
-52

skipif mysql # not compatible
query I rowsort label-5733
SELECT MIN ( - 52 ) FROM tab1
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-5734
SELECT DISTINCT - 49 * MIN( DISTINCT - col2 ) AS col0 FROM tab0
----
4851

skipif mysql # not compatible
query I rowsort label-5734
SELECT DISTINCT - 49 * MIN ( DISTINCT - col2 ) AS col0 FROM tab0
----
4851

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col0 ) < col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-5736
SELECT - 56 + - col0 + + - col0 * col2 DIV col1 FROM tab2
----
-122
-153
-195

skipif mysql # not compatible
query I rowsort label-5736
SELECT - 56 + - col0 + + - col0 * col2 / col1 FROM tab2
----
-122
-153
-195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5737
SELECT + col2 + CAST( - + col1 AS SIGNED ) col0 FROM tab2 AS cor0
----
-28
-37
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5737
SELECT + col2 + CAST ( - + col1 AS INTEGER ) col0 FROM tab2 AS cor0
----
-28
-37
-9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5738
SELECT DISTINCT + + col0, - CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5738
SELECT DISTINCT + + col0, - CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

query I rowsort
SELECT ALL - 4 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

query I rowsort
SELECT DISTINCT col0 * - 60 * - + col0 FROM tab0
----
13500
454140
564540

query I rowsort
SELECT - + ( + + 23 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d

onlyif mysql # aggregate syntax: 
query I rowsort label-5742
SELECT DISTINCT - MAX( ALL col0 ) * 35 FROM tab2
----
-2625

skipif mysql # not compatible
query I rowsort label-5742
SELECT DISTINCT - MAX ( ALL col0 ) * 35 FROM tab2
----
-2625

onlyif mysql # aggregate syntax: 
query I rowsort label-5743
SELECT + MIN( DISTINCT 45 ) * - MAX( + - 92 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
4140

skipif mysql # not compatible
query I rowsort label-5743
SELECT + MIN ( DISTINCT 45 ) * - MAX ( + - 92 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
4140

query II rowsort
SELECT DISTINCT - + 75 * + col0 AS col2, 75 * 25 AS col2 FROM tab0 AS cor0
----
-1125
1875
-6525
1875
-7275
1875

query I rowsort
SELECT col2 + + - col0 + + col1 FROM tab2 AS cor0
----
28
50
53

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5746
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( + + col0 * + CAST( NULL AS SIGNED ), - col1 / + - 56 * col1 ) AND col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-5746
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( + + col0 * + CAST ( NULL AS INTEGER ), - col1 / + - 56 * col1 ) AND col0 IS NULL
----

query I rowsort
SELECT + col2 * col2 * col1 + - - 9 * ( - - col1 ) FROM tab2 AS cor0
----
123893
225991
27438

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5748
SELECT DISTINCT ( - CAST( - 18 AS SIGNED ) ) / - CAST( NULL AS SIGNED ) * col2 + 46 + col2, - 96 col0 FROM tab1 AS cor0
----
NULL
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5748
SELECT DISTINCT ( - CAST ( - 18 AS INTEGER ) ) / - CAST ( NULL AS INTEGER ) * col2 + 46 + col2, - 96 col0 FROM tab1 AS cor0
----
NULL
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5749
SELECT DISTINCT - + COUNT( + 67 ) + + + SUM( ALL + col1 ) AS col1 FROM tab1 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-5749
SELECT DISTINCT - + COUNT ( + 67 ) + + + SUM ( ALL + col1 ) AS col1 FROM tab1 AS cor0
----
63

query I rowsort
SELECT col1 + - + 15 * + col2 FROM tab0 AS cor0
----
-129
-1484
-624

query I rowsort
SELECT col1 + - + 71 + - col0 * - col2 AS col1 FROM tab1 AS cor0
----
4839
4949
6164

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5752
SELECT ( - 99 ) + + COUNT( * ) + CAST( + MAX( ALL + col2 ) AS SIGNED ) FROM tab2 cor0
----
-38

skipif mysql # not compatible
query I rowsort label-5752
SELECT ( - 99 ) + + COUNT ( * ) + CAST ( + MAX ( ALL + col2 ) AS INTEGER ) FROM tab2 cor0
----
-38

query I rowsort
SELECT + - col0 AS col1 FROM tab0 AS cor0 WHERE + col2 * - col1 - - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5754
SELECT 39 * 60 + - CAST( + + 50 AS SIGNED ) + col1 AS col2 FROM tab0 AS cor0
----
2291
2311
2371

skipif mysql # not compatible
query I rowsort label-5754
SELECT 39 * 60 + - CAST ( + + 50 AS INTEGER ) + col1 AS col2 FROM tab0 AS cor0
----
2291
2311
2371

onlyif mysql # aggregate syntax: 
query I rowsort label-5755
SELECT DISTINCT + COUNT( * ) + - 30 FROM tab2
----
-27

skipif mysql # not compatible
query I rowsort label-5755
SELECT DISTINCT + COUNT ( * ) + - 30 FROM tab2
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5756
SELECT ALL 14 - + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5756
SELECT ALL 14 - + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - 68 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 5febf382d36d6e0191889c41b928786f

query I rowsort
SELECT + - col0 FROM tab1 WHERE + 26 > + col2
----

query II rowsort
SELECT col2 AS col2, - 95 + + + 3 FROM tab1
----
59
-92
68
-92
96
-92

query I rowsort
SELECT - 22 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5761
SELECT ALL + MIN( DISTINCT + col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-5761
SELECT ALL + MIN ( DISTINCT + col2 ) FROM tab0 AS cor0
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-5762
SELECT 70 DIV - + col1 + + col1 - col1 AS col0 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5762
SELECT 70 / - + col1 + + col1 - col1 AS col0 FROM tab2 AS cor0
----
-1
-1
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 * - col2 IS NOT NULL
----

query I rowsort
SELECT - - ( - col2 ) * - col1 + - col1 FROM tab1 AS cor0
----
1330
290
3149

query I rowsort
SELECT + + 44 * + 10 FROM tab1 AS cor0
----
440
440
440

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <> - col1
----

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 + 78 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5768
SELECT ALL + COUNT( * ) * + CAST( + 86 AS SIGNED ) + COUNT( * ) FROM tab2
----
261

skipif mysql # not compatible
query I rowsort label-5768
SELECT ALL + COUNT ( * ) * + CAST ( + 86 AS INTEGER ) + COUNT ( * ) FROM tab2
----
261

query I rowsort
SELECT DISTINCT + 30 AS col2 FROM tab0 WHERE 84 * - col0 - + col2 IS NULL
----

query I rowsort
SELECT DISTINCT 45 + col1 FROM tab0
----
126
46
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5771
SELECT DISTINCT + SUM( col0 ) AS col2 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-5771
SELECT DISTINCT + SUM ( col0 ) AS col2 FROM tab2
----
185

query I rowsort
SELECT col0 - 88 AS col0 FROM tab2
----
-13
-24
-42

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN + col0 + - col0 AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN col1 AND ( NULL )
----

query I rowsort
SELECT ALL + col2 AS col2 FROM tab0 WHERE NOT 57 <> col1
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 54 >= 79
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5777
SELECT COUNT( ALL col2 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5777
SELECT COUNT ( ALL col2 ) FROM tab1
----
3

query III rowsort
SELECT * FROM tab0 WHERE 58 NOT BETWEEN ( + 8 ) AND - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 41 NOT BETWEEN NULL AND col2 + col0 * - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5780
SELECT ALL MIN( ALL 36 ) AS col0 FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-5780
SELECT ALL MIN ( ALL 36 ) AS col0 FROM tab1
----
36

query III rowsort
SELECT * FROM tab2 WHERE ( - 14 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 12 FROM tab2 WHERE NOT + col1 * col0 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5783
SELECT * FROM tab0 WHERE NOT col1 * CAST( NULL AS DECIMAL ) IN ( - 54 )
----

skipif mysql # not compatible
query III rowsort label-5783
SELECT * FROM tab0 WHERE NOT col1 * CAST ( NULL AS REAL ) IN ( - 54 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5784
SELECT + CAST( 24 AS SIGNED ) col2 FROM tab0
----
24
24
24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5784
SELECT + CAST ( 24 AS INTEGER ) col2 FROM tab0
----
24
24
24

query I rowsort
SELECT - ( - 28 ) AS col1 FROM tab2
----
28
28
28

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL < + ( col2 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) < - 85
----

query I rowsort
SELECT ALL - col0 + col1 * - ( - col1 ) AS col0 FROM tab1
----
-60
145
2118

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5789
SELECT ALL CAST( NULL AS DECIMAL ) / + AVG ( DISTINCT ( - col1 ) * 9 ) + - 11 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5789
SELECT ALL CAST ( NULL AS REAL ) / + AVG ( DISTINCT ( - col1 ) * 9 ) + - 11 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT - col2 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
-59
-68
-96

query I rowsort
SELECT ALL + 9 + - 95 FROM tab0 WHERE NOT - 89 < col2 + - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - 9 col0 FROM tab1 cor0
----
42
76
82

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5793
SELECT ALL CAST( NULL AS DECIMAL ) + - col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5793
SELECT ALL CAST ( NULL AS REAL ) + - col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 25 + - col1 AS col0 FROM tab2 AS cor0
----
-26
-42
-52

query III rowsort
SELECT * FROM tab1 WHERE ( - col2 + - col1 ) <= col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + 56 + - 63 col2 FROM tab0 WHERE NOT ( - 70 ) IN ( ( col0 ) )
----
-2695
-5607
-623

query I rowsort
SELECT ALL + col0 * 31 + - 94 FROM tab1
----
1487
2541
2727

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col0 ) NOT IN ( 2 )
----

query I rowsort
SELECT 37 * 11 AS col1 FROM tab1 AS cor0
----
407
407
407

query I rowsort
SELECT ALL col2 * ( + col0 ) AS col2 FROM tab2 AS cor0
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-5801
SELECT DISTINCT - + COUNT( * ) + ( COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5801
SELECT DISTINCT - + COUNT ( * ) + ( COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL col1 AS col0 FROM tab1 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5803
SELECT ALL + COUNT( * ) + - COUNT( * ) AS col0 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5803
SELECT ALL + COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab2 cor0
----
0

query I rowsort
SELECT ALL - col2 * col1 + - 24 * col2 AS col1 FROM tab1 AS cor0
----
-1711
-3648
-4828

query I rowsort
SELECT DISTINCT col1 + - 81 AS col0 FROM tab1 AS cor0
----
-34
-67
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-5806
SELECT ALL + - COUNT( * ) + - 81 * 63 AS col0 FROM tab1 AS cor0
----
-5106

skipif mysql # not compatible
query I rowsort label-5806
SELECT ALL + - COUNT ( * ) + - 81 * 63 AS col0 FROM tab1 AS cor0
----
-5106

query I rowsort
SELECT DISTINCT 8 * + col0 + + col0 FROM tab0
----
135
783
873

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( - 95 )
----

query III rowsort
SELECT * FROM tab0 WHERE 28 > col2
----
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5810
SELECT COUNT( - + col2 ) - + COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5810
SELECT COUNT ( - + col2 ) - + COUNT ( * ) FROM tab0
----
0

query I rowsort
SELECT ALL + col1 * + 50 AS col0 FROM tab1 WHERE 25 >= ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( - 10 )
----

query I rowsort
SELECT + 91 * - - col1 AS col2 FROM tab1
----
1274
4277
455

onlyif mysql # aggregate syntax: 
query I rowsort label-5814
SELECT DISTINCT SUM( DISTINCT + ( + col2 ) ) AS col2 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-5814
SELECT DISTINCT SUM ( DISTINCT + ( + col2 ) ) AS col2 FROM tab1
----
223

query I rowsort
SELECT col2 * + col2 AS col1 FROM tab1 WHERE NOT - col2 IS NULL
----
3481
4624
9216

query I rowsort
SELECT 63 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
63
63
63

query II rowsort
SELECT 47 AS col0, col2 * + - 58 * col2 FROM tab2
----
47
-195112
47
-30682
47
-92800

onlyif mysql # aggregate syntax: 
query I rowsort label-5818
SELECT DISTINCT + ( + COUNT( * ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-5818
SELECT DISTINCT + ( + COUNT ( * ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5819
SELECT DISTINCT - - col1 AS col1, + col1 * + CAST( - col1 AS SIGNED ) - - 98 FROM tab0 AS cor0
----
1
97
21
-343
81
-6463

skipif mysql # not compatible
query II rowsort label-5819
SELECT DISTINCT - - col1 AS col1, + col1 * + CAST ( - col1 AS INTEGER ) - - 98 FROM tab0 AS cor0
----
1
97
21
-343
81
-6463

query II rowsort
SELECT DISTINCT col0, - col2 FROM tab0 AS cor0
----
15
-47
87
-10
97
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5821
SELECT ALL + - MIN( DISTINCT + ( + col1 ) ) FROM tab2 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-5821
SELECT ALL + - MIN ( DISTINCT + ( + col1 ) ) FROM tab2 cor0
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5822
SELECT DISTINCT - + 6, COUNT( ALL col0 ) + - CAST( NULL AS SIGNED ) * 96 AS col2 FROM tab2 AS cor0
----
-6
NULL

skipif mysql # not compatible
query II rowsort label-5822
SELECT DISTINCT - + 6, COUNT ( ALL col0 ) + - CAST ( NULL AS INTEGER ) * 96 AS col2 FROM tab2 AS cor0
----
-6
NULL

query II rowsort
SELECT ALL - col1, + col0 FROM tab2 cor0
----
-51
46
-67
75
-77
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 81 col2 FROM tab0 AS cor0
----
81
81
81

query II rowsort
SELECT ALL + - 21, + col2 AS col0 FROM tab0 AS cor0
----
-21
10
-21
47
-21
99

query I rowsort
SELECT ALL - col0 * col0 + + - col2 FROM tab0
----
-272
-7579
-9508

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5827
SELECT ALL col2 AS col1 FROM tab1 WHERE NOT ( CAST( NULL AS SIGNED ) * + ( ( + col1 ) ) / + 77 ) IS NOT NULL
----
59
68
96

skipif mysql # not compatible
query I rowsort label-5827
SELECT ALL col2 AS col1 FROM tab1 WHERE NOT ( CAST ( NULL AS INTEGER ) * + ( ( + col1 ) ) / + 77 ) IS NOT NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5828
SELECT + MAX( + col1 ) * + - 41 * - 52 AS col2 FROM tab2
----
164164

skipif mysql # not compatible
query I rowsort label-5828
SELECT + MAX ( + col1 ) * + - 41 * - 52 AS col2 FROM tab2
----
164164

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5829
SELECT * FROM tab2 WHERE NOT - - col1 + + 5 + col2 NOT IN ( + col1 / - CAST( NULL AS SIGNED ) + col1 )
----

skipif mysql # not compatible
query III rowsort label-5829
SELECT * FROM tab2 WHERE NOT - - col1 + + 5 + col2 NOT IN ( + col1 / - CAST ( NULL AS INTEGER ) + col1 )
----

query II rowsort
SELECT ALL ( - 27 ), - 77 * - col2 AS col1 FROM tab1
----
-27
4543
-27
5236
-27
7392

onlyif mysql # aggregate syntax: 
query I rowsort label-5831
SELECT - COUNT( * ) FROM tab0 WHERE NOT - + col1 NOT BETWEEN - col2 + 30 AND + 64
----
-1

skipif mysql # not compatible
query I rowsort label-5831
SELECT - COUNT ( * ) FROM tab0 WHERE NOT - + col1 NOT BETWEEN - col2 + 30 AND + 64
----
-1

query I rowsort
SELECT ALL + ( - col2 ) AS col2 FROM tab1 WHERE NOT - col2 NOT BETWEEN ( - col1 ) AND 85 + col0 / 66
----

query I rowsort
SELECT + col2 + - 52 FROM tab0
----
-42
-5
47

query III rowsort
SELECT * FROM tab1 WHERE ( - col0 * col0 + - 24 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 35 <= - - col2
----

query I rowsort
SELECT col0 + 5 FROM tab1 WHERE NULL IN ( col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND + - col2 + - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 48 col2 FROM tab2
----
-48

query III rowsort
SELECT * FROM tab0 WHERE col0 + - 50 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5840
SELECT ALL ( 12 ) + + COUNT( * ) AS col2 FROM tab2 WHERE NOT + col1 >= + CAST( NULL AS SIGNED )
----
12

skipif mysql # not compatible
query I rowsort label-5840
SELECT ALL ( 12 ) + + COUNT ( * ) AS col2 FROM tab2 WHERE NOT + col1 >= + CAST ( NULL AS INTEGER )
----
12

query I rowsort
SELECT ALL 69 * ( 67 ) + + - 27 + - col1 * col1 FROM tab1 AS cor0
----
2387
4400
4571

query I rowsort
SELECT ALL - - 20 * + - 99 + + ( + 90 ) FROM tab0 AS cor0
----
-1890
-1890
-1890

query I rowsort
SELECT - col1 AS col1 FROM tab2 AS cor0 WHERE ( ( - col0 ) + 78 ) BETWEEN - 68 AND + col2
----
-67
-77

query I rowsort
SELECT + 9 AS col1 FROM tab1 WHERE ( NULL ) IS NULL
----
9
9
9

query II rowsort
SELECT ALL + - col1 AS col1, + 93 FROM tab2 cor0
----
-51
93
-67
93
-77
93

query I rowsort
SELECT - 3 + + col1 AS col1 FROM tab0 AS cor0
----
-2
18
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5847
SELECT - col0 + - - CAST( + col0 AS SIGNED ) - - col2 * - col1 * col1 FROM tab2 AS cor0
----
-237160
-260362
-59823

skipif mysql # not compatible
query I rowsort label-5847
SELECT - col0 + - - CAST ( + col0 AS INTEGER ) - - col2 * - col1 * col1 FROM tab2 AS cor0
----
-237160
-260362
-59823

onlyif mysql # aggregate syntax: 
query I rowsort label-5848
SELECT ALL MAX( - col0 ) * COUNT( * ) + - COUNT( * ) FROM tab1 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-5848
SELECT ALL MAX ( - col0 ) * COUNT ( * ) + - COUNT ( * ) FROM tab1 AS cor0
----
-156

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5849
SELECT * FROM tab1 AS cor0 WHERE - CAST( NULL AS DECIMAL ) NOT BETWEEN + 96 AND - col1
----

skipif mysql # not compatible
query III rowsort label-5849
SELECT * FROM tab1 AS cor0 WHERE - CAST ( NULL AS REAL ) NOT BETWEEN + 96 AND - col1
----

query I rowsort
SELECT - + col2 + - - 17 FROM tab2 cor0
----
-23
-41
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5851
SELECT + MAX( ALL - col2 ) + + COUNT( * ) - - + 37 * + MAX( ALL col0 ) * COUNT( * ) AS col1 FROM tab0 AS cor0
----
10760

skipif mysql # not compatible
query I rowsort label-5851
SELECT + MAX ( ALL - col2 ) + + COUNT ( * ) - - + 37 * + MAX ( ALL col0 ) * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
10760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * + + col2 col1 FROM tab0 AS cor0
----
210
3807
99

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 22 >= ( 85 * + ( + col2 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT ( ( NOT - 94 BETWEEN ( NULL ) AND ( NULL ) ) )
----

query I rowsort
SELECT AVG ( ALL col1 ) FROM tab1 WHERE NOT ( - + 32 * - col2 - + 10 ) IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - col2 = ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 IN ( col0, - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5858
SELECT DISTINCT + 95 * COUNT( * ) FROM tab1
----
285

skipif mysql # not compatible
query I rowsort label-5858
SELECT DISTINCT + 95 * COUNT ( * ) FROM tab1
----
285

onlyif mysql # aggregate syntax: 
query II rowsort label-5859
SELECT DISTINCT COUNT( * ) AS col1, 56 AS col2 FROM tab2 WHERE ( + - col1 ) IS NULL
----
0
56

skipif mysql # not compatible
query II rowsort label-5859
SELECT DISTINCT COUNT ( * ) AS col1, 56 AS col2 FROM tab2 WHERE ( + - col1 ) IS NULL
----
0
56

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN + col1 * + col1 + + col2 - - ( - 86 ) * - col0 AND + 4 * 67
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5861
SELECT DISTINCT COUNT( * ) + 36 FROM tab2, tab2 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-5861
SELECT DISTINCT COUNT ( * ) + 36 FROM tab2, tab2 AS cor0
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-5862
SELECT DISTINCT COUNT( * ) AS col0, COUNT( * ) col2 FROM tab0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5862
SELECT DISTINCT COUNT ( * ) AS col0, COUNT ( * ) col2 FROM tab0
----
3
3

query I rowsort
SELECT - 18 + + - col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col1 - + col0 AND - + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5864
SELECT DISTINCT ( - + ( 80 ) ) DIV + col2 FROM tab0 AS cor0
----
-1
-8
0

skipif mysql # not compatible
query I rowsort label-5864
SELECT DISTINCT ( - + ( 80 ) ) / + col2 FROM tab0 AS cor0
----
-1
-8
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5865
SELECT + - COUNT( * ) FROM tab0 AS cor0 WHERE NOT col0 + col2 / 7 + - - col0 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5865
SELECT + - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col0 + col2 / 7 + - - col0 IS NULL
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 * - - col0 * - ( col1 ) + - col2 BETWEEN ( - 44 - col1 ) AND + 8
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 80 FROM tab0 cor0
----
80
80
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5868
SELECT ALL + + 34 AS col1 FROM tab2 AS cor0 WHERE CAST( + 9 AS SIGNED ) IS NOT NULL
----
34
34
34

skipif mysql # not compatible
query I rowsort label-5868
SELECT ALL + + 34 AS col1 FROM tab2 AS cor0 WHERE CAST ( + 9 AS INTEGER ) IS NOT NULL
----
34
34
34

onlyif mysql # DIV for integer division: 
query I rowsort label-5869
SELECT ALL + col0 * col2 * + ( ( - + 3 ) ) + - col0 DIV + col0 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-2116
-2611
-28810

skipif mysql # not compatible
query I rowsort label-5869
SELECT ALL + col0 * col2 * + ( ( - + 3 ) ) + - col0 / + col0 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-2116
-2611
-28810

onlyif mysql # aggregate syntax: 
query I rowsort label-5870
SELECT ALL + MIN( DISTINCT + col0 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-5870
SELECT ALL + MIN ( DISTINCT + col0 ) FROM tab2 AS cor0
----
46

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5871
SELECT + CAST( NULL AS DECIMAL ) + - + 20 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5871
SELECT + CAST ( NULL AS REAL ) + - + 20 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - AVG ( + col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----
NULL

query I rowsort
SELECT + + col2 * + 7 - - + 25 * + col2 AS col2 FROM tab0 AS cor0
----
1504
3168
320

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 * - 63 + + col1 <> - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5875
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5875
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5876
SELECT ALL COUNT( * ) + - COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5876
SELECT ALL COUNT ( * ) + - COUNT ( * ) FROM tab1 AS cor0
----
0

query II rowsort
SELECT DISTINCT + col0, 43 FROM tab0
----
15
43
87
43
97
43

query II rowsort
SELECT ALL + 62 + - - col0 + + col2, 30 * + 83 * + col0 + col2 AS col0 FROM tab0
----
124
37397
159
216640
258
241629

query II rowsort
SELECT DISTINCT + col2 AS col0, - col0 * - col2 * - + 54 - - col0 FROM tab2
----
23
-57086
40
-138176
58
-234825

query I rowsort
SELECT - col0 FROM tab1 WHERE + + col2 - 0 + + + 74 IS NOT NULL
----
-51
-85
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-5881
SELECT 35 DIV col1 FROM tab0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-5881
SELECT 35 / col1 FROM tab0
----
0
1
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5882
SELECT ALL - MAX( DISTINCT - col1 ) + + COUNT( * ) AS col0 FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-5882
SELECT ALL - MAX ( DISTINCT - col1 ) + + COUNT ( * ) AS col0 FROM tab2
----
54

query I rowsort
SELECT + 45 * - 47 * - - col2 - - + col1 FROM tab0 AS cor0
----
-209384
-21129
-99324

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 = ( - + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5886
SELECT 31 DIV + + col1 + 49 AS col1 FROM tab0
----
49
50
80

skipif mysql # not compatible
query I rowsort label-5886
SELECT 31 / + + col1 + 49 AS col1 FROM tab0
----
49
50
80

onlyif mysql # aggregate syntax: 
query II rowsort label-5887
SELECT + MIN( DISTINCT - col2 ) AS col1, 68 * - SUM( DISTINCT - 48 ) AS col1 FROM tab1
----
-96
3264

skipif mysql # not compatible
query II rowsort label-5887
SELECT + MIN ( DISTINCT - col2 ) AS col1, 68 * - SUM ( DISTINCT - 48 ) AS col1 FROM tab1
----
-96
3264

query I rowsort
SELECT ALL + + col1 - + - col0 * col2 * - col2 AS col2 FROM tab1 AS cor0
----
-295880
-420737
-470002

onlyif mysql # aggregate syntax: 
query I rowsort label-5889
SELECT DISTINCT + MIN( 99 ) * - MIN( - col0 ) FROM tab2 AS cor0
----
7425

skipif mysql # not compatible
query I rowsort label-5889
SELECT DISTINCT + MIN ( 99 ) * - MIN ( - col0 ) FROM tab2 AS cor0
----
7425

onlyif mysql # aggregate syntax: 
query I rowsort label-5890
SELECT ALL - - 14 * + COUNT( * ) col1 FROM tab1 AS cor0
----
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5890
SELECT ALL - - 14 * + COUNT ( * ) col1 FROM tab1 AS cor0
----
42

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 + 92 * - - col2 NOT IN ( col1 + + col0, col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5892
SELECT - col0 DIV + - col1 AS col1 FROM tab0 AS cor0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-5892
SELECT - col0 / + - col1 AS col1 FROM tab0 AS cor0
----
0
4
97

query I rowsort
SELECT ALL col0 AS col0 FROM tab2 AS cor0 WHERE - col0 IS NULL
----

query II rowsort
SELECT + 39 / - + 22 * + col2, - ( + col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT + + ( 72 ), col2 FROM tab1 AS cor0
----
72
59
72
68
72
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5896
SELECT + + MIN( ALL col1 ) FROM tab0 WHERE NOT - col1 / + col1 + + 46 + 95 + + col1 * + - 69 * - + 41 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5896
SELECT + + MIN ( ALL col1 ) FROM tab0 WHERE NOT - col1 / + col1 + + 46 + 95 + + col1 * + - 69 * - + 41 IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 87 col2, - col2 + col0 + 7 - + col0 * - ( - 24 ) AS col2 FROM tab0
----
87
-2004
87
-2323
87
-385

onlyif mysql # aggregate syntax: 
query I rowsort label-5898
SELECT DISTINCT + COUNT( * ) FROM tab0 WHERE - col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5898
SELECT DISTINCT + COUNT ( * ) FROM tab0 WHERE - col2 IS NOT NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5899
SELECT + col1 DIV + 18 FROM tab1
----
0
0
2

skipif mysql # not compatible
query I rowsort label-5899
SELECT + col1 / + 18 FROM tab1
----
0
0
2

query II rowsort
SELECT + col2, - col1 AS col1 FROM tab2
----
23
-51
40
-77
58
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-5901
SELECT DISTINCT MAX( ALL + col1 ) col0 FROM tab2
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5901
SELECT DISTINCT MAX ( ALL + col1 ) col0 FROM tab2
----
77

query I rowsort
SELECT DISTINCT - + ( + + 45 ) * + col0 FROM tab0 cor0
----
-3915
-4365
-675

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 67 col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5904
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5904
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5905
SELECT - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NULL < col1 + 56 * - col0
----
0

skipif mysql # not compatible
query I rowsort label-5905
SELECT - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NULL < col1 + 56 * - col0
----
0

query I rowsort
SELECT ALL ( + 45 ) + - - col2 FROM tab1 AS cor0
----
104
113
141

onlyif mysql # aggregate syntax: 
query I rowsort label-5907
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE ( - 76 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5907
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE ( - 76 ) IS NULL
----
0

query I rowsort
SELECT DISTINCT - 28 * - 3 + - - 77 - + 9 + + 41 * - 33 FROM tab1 AS cor0
----
-1201

query I rowsort
SELECT ALL + col0 + + - 28 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL 47 * + 76 FROM tab1 AS cor0
----
3572
3572
3572

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5911
SELECT - col2 AS col2, CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-59
NULL
-68
NULL
-96
NULL

skipif mysql # not compatible
query II rowsort label-5911
SELECT - col2 AS col2, CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-59
NULL
-68
NULL
-96
NULL

query I rowsort
SELECT - col2 + - ( - + 24 ) FROM tab1 AS cor0
----
-35
-44
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-5913
SELECT - 51 * COUNT( * ) * - + 55 FROM tab2 WHERE NULL IS NULL
----
8415

skipif mysql # not compatible
query I rowsort label-5913
SELECT - 51 * COUNT ( * ) * - + 55 FROM tab2 WHERE NULL IS NULL
----
8415

query I rowsort
SELECT DISTINCT col1 + - + col0 AS col1 FROM tab1
----
-37
-44
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-5915
SELECT 27 - - COUNT( * ) + + + 58 AS col1 FROM tab1 WHERE ( 14 <= ( + - col2 ) )
----
85

skipif mysql # not compatible
query I rowsort label-5915
SELECT 27 - - COUNT ( * ) + + + 58 AS col1 FROM tab1 WHERE ( 14 <= ( + - col2 ) )
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-5916
SELECT - col1 DIV - 8 FROM tab2 AS cor0
----
6
8
9

skipif mysql # not compatible
query I rowsort label-5916
SELECT - col1 / - 8 FROM tab2 AS cor0
----
6
8
9

query I rowsort
SELECT DISTINCT 8 + col1 + + 65 AS col2 FROM tab0
----
154
74
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5918
SELECT ALL ( ( + - 16 ) ) + - COUNT( * ) AS col1 FROM tab1
----
-19

skipif mysql # not compatible
query I rowsort label-5918
SELECT ALL ( ( + - 16 ) ) + - COUNT ( * ) AS col1 FROM tab1
----
-19

query I rowsort
SELECT + col1 + - 93 + col2 AS col1 FROM tab1
----
-29
17
22

query II rowsort
SELECT DISTINCT 68 AS col0, + col1 FROM tab1 AS cor0
----
68
14
68
47
68
5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col0 + - col1 + + - col0 + + + col1 * - 53 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 = + 42 - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5923
SELECT + ( + COUNT( col0 ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5923
SELECT + ( + COUNT ( col0 ) ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT + 53 * + ( - 34 ) AS col2 FROM tab2
----
-1802

query III rowsort
SELECT ALL * FROM tab0 WHERE ( ( + + col0 ) ) NOT BETWEEN + col1 - col0 AND NULL
----
15
81
47

query I rowsort
SELECT ( col2 ) FROM tab2 WHERE NOT NULL = 73
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5927
SELECT - COUNT( - col2 ) * - - COUNT( * ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-5927
SELECT - COUNT ( - col2 ) * - - COUNT ( * ) FROM tab1
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - 60 col2 FROM tab0 AS cor0
----
-107
-159
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-5929
SELECT DISTINCT - COUNT( * ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5929
SELECT DISTINCT - COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5930
SELECT + CAST( - col2 AS SIGNED ) + - + 32 FROM tab2
----
-55
-72
-90

skipif mysql # not compatible
query I rowsort label-5930
SELECT + CAST ( - col2 AS INTEGER ) + - + 32 FROM tab2
----
-55
-72
-90

query I rowsort
SELECT 27 * - col0 * - 44 + + col2 FROM tab1
----
101039
108176
60684

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 + - + 89 * - - col2, - col1 col2 FROM tab2
----
-2098
-51
-3637
-77
-5229
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5933
SELECT col2 * - + col2 + - CAST( NULL AS SIGNED ) / - - col0 + + CAST( + 75 AS SIGNED ) + + + col2 + + col2 * - 68 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5933
SELECT col2 * - + col2 + - CAST ( NULL AS INTEGER ) / - - col0 + + CAST ( + 75 AS INTEGER ) + + + col2 + + col2 * - 68 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + 87 * - + 7 FROM tab1 AS cor0
----
609

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + - col2 col1 FROM tab1 AS cor0
----
-21
-54
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5936
SELECT ALL - 76 + - 73 DIV + COUNT( * ) FROM tab2 AS cor0
----
-100

skipif mysql # not compatible
query I rowsort label-5936
SELECT ALL - 76 + - 73 / + COUNT ( * ) FROM tab2 AS cor0
----
-100

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 22 col2 FROM tab0
----
1782
22
462

query I rowsort
SELECT - ( + col0 ) * col1 - - 37 AS col0 FROM tab0
----
-1178
-1790
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5940
SELECT ALL col1 * + + 81 * - col2 - + CAST( + 88 AS SIGNED ) FROM tab0
----
-17098
-308455
-8107

skipif mysql # not compatible
query I rowsort label-5940
SELECT ALL col1 * + + 81 * - col2 - + CAST ( + 88 AS INTEGER ) FROM tab0
----
-17098
-308455
-8107

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 87 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5942
SELECT DISTINCT - - SUM( DISTINCT col2 ) FROM tab1 cor0
----
223

skipif mysql # not compatible
query I rowsort label-5942
SELECT DISTINCT - - SUM ( DISTINCT col2 ) FROM tab1 cor0
----
223

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + + col2 + col2 * + + col1 ) NOT IN ( 23 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5944
SELECT + COUNT( * ) * - SUM( 84 ) * AVG ( 64 ) / 4 AS col2 FROM tab0 AS cor0 JOIN tab0 AS cor1 ON NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5944
SELECT + COUNT ( * ) * - SUM ( 84 ) * AVG ( 64 ) / 4 AS col2 FROM tab0 AS cor0 JOIN tab0 AS cor1 ON NULL IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 90 col0 FROM tab2 AS cor0
----
-90
-90
-90

query I rowsort
SELECT ALL + 95 AS col0 FROM tab1 cor0 WHERE NOT col1 IS NULL
----
95
95
95

query I rowsort
SELECT + - 8 FROM tab1 cor0
----
-8
-8
-8

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL < 55
----

query II rowsort
SELECT col1 AS col2, col0 FROM tab0
----
1
97
21
87
81
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5950
SELECT DISTINCT MAX( DISTINCT 79 ) FROM tab0
----
79

skipif mysql # not compatible
query I rowsort label-5950
SELECT DISTINCT MAX ( DISTINCT 79 ) FROM tab0
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5951
SELECT + col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5951
SELECT + col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5952
SELECT - COUNT( * ) AS col2 FROM tab0 WHERE NOT + col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5952
SELECT - COUNT ( * ) AS col2 FROM tab0 WHERE NOT + col2 IS NOT NULL
----
0

query I rowsort
SELECT + col2 * - 13 * + col1 AS col1 FROM tab0
----
-1287
-2730
-49491

onlyif mysql # aggregate syntax: 
query I rowsort label-5954
SELECT DISTINCT SUM( + - col0 ) col0 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5954
SELECT DISTINCT SUM ( + - col0 ) col0 FROM tab1 AS cor0
----
-227

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col0 ) IN ( - col1 * - - col0 + col0, - col2 - + col2, - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 82 * + col2 AS col2 FROM tab0 AS cor0
----
3854
8118
820

onlyif mysql # aggregate syntax: 
query I rowsort label-5957
SELECT DISTINCT + - 18 + + COUNT( * ) FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-5957
SELECT DISTINCT + - 18 + + COUNT ( * ) FROM tab1 AS cor0
----
-15

query I rowsort
SELECT DISTINCT - col2 * 17 * + - col1 AS col1 FROM tab2
----
19941
52360
66062

onlyif mysql # aggregate syntax: 
query I rowsort label-5959
SELECT + + COUNT( * ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5959
SELECT + + COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5960
SELECT DISTINCT 11 DIV - COUNT( * ) col1 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5960
SELECT DISTINCT 11 / - COUNT ( * ) col1 FROM tab1
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 + + col2 >= + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5962
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE NOT - + col0 * 19 + - - col2 NOT IN ( col0 )
----
0

skipif mysql # not compatible
query I rowsort label-5962
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE NOT - + col0 * 19 + - - col2 NOT IN ( col0 )
----
0

query I rowsort
SELECT DISTINCT + 87 * col0 * col0 FROM tab2 AS cor0
----
184092
356352
489375

onlyif mysql # aggregate syntax: 
query I rowsort label-5964
SELECT ALL + COUNT( * ) + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5964
SELECT ALL + COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
0

query II rowsort
SELECT + + col2 * - 56 - ( + col0 ) * + - col1 + - - col2 - + col0 AS col0, + col0 * col2 AS col2 FROM tab0 AS cor0
----
-1385
705
-5445
9603
1190
870

query II rowsort
SELECT DISTINCT col1 + col2 AS col0, col0 + + 97 AS col0 FROM tab0 AS cor0
----
100
194
128
112
31
184

onlyif mysql # DIV for integer division: 
query I rowsort label-5967
SELECT col0 DIV col0 + + - 10 + + 31 - - + col1 * - col2 + - 73 AS col1 FROM tab2 AS cor0
----
-1224
-3131
-3937

skipif mysql # not compatible
query I rowsort label-5967
SELECT col0 / col0 + + - 10 + + 31 - - + col1 * - col2 + - 73 AS col1 FROM tab2 AS cor0
----
-1224
-3131
-3937

query II rowsort
SELECT - - col0 * col1 + + 83 + col0 AS col0, + 26 AS col0 FROM tab0 AS cor0
----
1313
26
1997
26
277
26

query I rowsort
SELECT + + col2 + 1 FROM tab1 cor0
----
60
69
97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL > col1 * 28
----

query I rowsort
SELECT ALL 30 + col1 AS col1 FROM tab0
----
111
31
51

query II rowsort
SELECT DISTINCT + col2, + 11 AS col1 FROM tab1
----
59
11
68
11
96
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5973
SELECT ALL + ( - + 87 ) - + - COUNT( * ) DIV COUNT( * ) AS col2 FROM tab2
----
-86

skipif mysql # not compatible
query I rowsort label-5973
SELECT ALL + ( - + 87 ) - + - COUNT ( * ) / COUNT ( * ) AS col2 FROM tab2
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-5974
SELECT ALL + - ( + - 5 ) + SUM( ALL + col2 ) FROM tab1 AS cor0
----
228

skipif mysql # not compatible
query I rowsort label-5974
SELECT ALL + - ( + - 5 ) + SUM ( ALL + col2 ) FROM tab1 AS cor0
----
228

query I rowsort
SELECT DISTINCT + ( + - 87 ) AS col2 FROM tab2 AS cor0
----
-87

query I rowsort
SELECT DISTINCT + - 78 + + col2 * ( ( - col2 ) ) * + + 77 * - + 44 + + col2 + + 62 FROM tab1 AS cor0
----
11793671
15666164
31223888

query II rowsort
SELECT ALL + col2 AS col1, - 97 FROM tab1 AS cor0
----
59
-97
68
-97
96
-97

query I rowsort
SELECT DISTINCT + - 83 * + col0 FROM tab0 AS cor0
----
-1245
-7221
-8051

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5979
SELECT DISTINCT + col0 * - + CAST( + - 57 AS SIGNED ) * + 34 AS col0 FROM tab0 AS cor0
----
168606
187986
29070

skipif mysql # not compatible
query I rowsort label-5979
SELECT DISTINCT + col0 * - + CAST ( + - 57 AS INTEGER ) * + 34 AS col0 FROM tab0 AS cor0
----
168606
187986
29070

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5980
SELECT ALL - COUNT( * ) DIV + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5980
SELECT ALL - COUNT ( * ) / + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 * + col1 + col0 col1, - 34 FROM tab2 AS cor0
----
1219
-34
3144
-34
3961
-34

query I rowsort
SELECT 40 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5983
SELECT DISTINCT - COUNT( * ) DIV - 81 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5983
SELECT DISTINCT - COUNT ( * ) / - 81 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 col1 FROM tab1 WHERE - ( + 58 ) = + 73
----

query I rowsort
SELECT DISTINCT - 6 + - col0 AS col1 FROM tab1 AS cor0 WHERE - col0 IS NOT NULL
----
-57
-91
-97

query I rowsort
SELECT - ( + 36 ) AS col2 FROM tab1 cor0
----
-36
-36
-36

query I rowsort
SELECT + - 77 AS col1 FROM tab2 AS cor0
----
-77
-77
-77

query I rowsort
SELECT - 20 AS col2 FROM tab0 cor0 WHERE NOT 77 IS NULL
----
-20
-20
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-5989
SELECT - + SUM( 66 ) col2 FROM tab0 AS cor0
----
-198

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5989
SELECT - + SUM ( 66 ) col2 FROM tab0 AS cor0
----
-198

query I rowsort
SELECT - ( + col1 ) * + + col0 AS col1 FROM tab2 AS cor0
----
-2346
-4928
-5025

query I rowsort
SELECT ALL + ( col0 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5992
SELECT + SUM( CAST( + col0 AS SIGNED ) ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-5992
SELECT + SUM ( CAST ( + col0 AS INTEGER ) ) FROM tab1 AS cor0
----
227

query II rowsort
SELECT DISTINCT - col1 AS col2, + 6 - - + col1 FROM tab2 AS cor0
----
-51
57
-67
73
-77
83

onlyif mysql # DIV for integer division: 
query I rowsort label-5994
SELECT DISTINCT - col1 DIV + ( + col1 ) + + col0 FROM tab0 AS cor0
----
14
86
96

skipif mysql # not compatible
query I rowsort label-5994
SELECT DISTINCT - col1 / + ( + col1 ) + + col0 FROM tab0 AS cor0
----
14
86
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col2 FROM tab0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL - ( - 74 ), col2 FROM tab0
----
74
10
74
47
74
99

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5997
SELECT * FROM tab0 WHERE NOT 21 * - - 65 - - CAST( - - 5 AS DECIMAL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5997
SELECT * FROM tab0 WHERE NOT 21 * - - 65 - - CAST ( - - 5 AS REAL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - col1 * + col0 * + 34 AS col0, - 60 AS col1 FROM tab0 WHERE NOT + 8 + + col0 IS NULL
----
-3298
-60
-41310
-60
-62118
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-5999
SELECT ALL - COUNT( DISTINCT + ( - - ( + + 34 ) ) ) AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-5999
SELECT ALL - COUNT ( DISTINCT + ( - - ( + + 34 ) ) ) AS col0 FROM tab0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6000
SELECT ( + - col2 ) * + 68, 70 + - CAST( NULL AS SIGNED ) + - col1 AS col1 FROM tab1
----
-4012
NULL
-4624
NULL
-6528
NULL

skipif mysql # not compatible
query II rowsort label-6000
SELECT ( + - col2 ) * + 68, 70 + - CAST ( NULL AS INTEGER ) + - col1 AS col1 FROM tab1
----
-4012
NULL
-4624
NULL
-6528
NULL

query I rowsort
SELECT DISTINCT ( + - ( - - col2 ) ) * - + col1 FROM tab1
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-6002
SELECT + MAX( - 72 ) * - 61 AS col2 FROM tab0 WHERE NOT col2 + + 66 + col2 / - col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6002
SELECT + MAX ( - 72 ) * - 61 AS col2 FROM tab0 WHERE NOT col2 + + 66 + col2 / - col2 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6003
SELECT ALL 21 + + + COUNT( * ) AS col1 FROM tab1
----
24

skipif mysql # not compatible
query I rowsort label-6003
SELECT ALL 21 + + + COUNT ( * ) AS col1 FROM tab1
----
24

query I rowsort
SELECT ALL + ( - - col1 ) + - - 9 FROM tab1 AS cor0
----
14
23
56

query I rowsort
SELECT DISTINCT + 81 + - col2 FROM tab0 AS cor0
----
-18
34
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 77 + - col2 col0 FROM tab0
----
-22
30
67

query I rowsort
SELECT + ( + 67 ) + + col2 AS col2 FROM tab2
----
107
125
90

onlyif mysql # DIV for integer division: 
query I rowsort label-6008
SELECT DISTINCT ( + 20 ) DIV - 9 + col0 DIV - col0 AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-6008
SELECT DISTINCT ( + 20 ) / - 9 + col0 / - col0 AS col2 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6009
SELECT + ( + ( + 79 ) ) + COUNT( * ) AS col1 FROM tab0
----
82

skipif mysql # not compatible
query I rowsort label-6009
SELECT + ( + ( + 79 ) ) + COUNT ( * ) AS col1 FROM tab0
----
82

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6010
SELECT - col0 * - + col2 / + CAST( NULL AS DECIMAL ) / - col1 * + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6010
SELECT - col0 * - + col2 / + CAST ( NULL AS REAL ) / - col1 * + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6011
SELECT DISTINCT ( + col1 ) + col1 AS col0, + CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
162
NULL
2
NULL
42
NULL

skipif mysql # not compatible
query II rowsort label-6011
SELECT DISTINCT ( + col1 ) + col1 AS col0, + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
162
NULL
2
NULL
42
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE - col1 * col2 + - col0 + + col2 BETWEEN ( col1 ) - + + col2 / + 69 AND ( + col2 + + + col0 + - col2 * 13 )
----

query II rowsort
SELECT DISTINCT - col1 * + 37 - col0 AS col0, col2 AS col2 FROM tab1 AS cor0
----
-1830
68
-270
59
-569
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6014
SELECT DISTINCT * FROM tab2 WHERE - + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6014
SELECT DISTINCT * FROM tab2 WHERE - + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT col0 + - 66, + 2 AS col1 FROM tab1
----
-15
2
19
2
25
2

query I rowsort
SELECT + 7 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL col2 - - col0 * col2 AS col0 FROM tab0
----
752
880
9702

query I rowsort
SELECT DISTINCT 56 * - 63 AS col0 FROM tab1, tab0 AS cor0
----
-3528

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - + col0 col1 FROM tab1 AS cor0
----
-23
-26
45

query I rowsort
SELECT ALL 39 * - - 27 AS col0 FROM tab2 cor0
----
1053
1053
1053

onlyif mysql # DIV for integer division: 
query I rowsort label-6021
SELECT - col2 DIV 52 DIV - col0 * 43 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6021
SELECT - col2 / 52 / - col0 * 43 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL 39 / - col0 AS col1 FROM tab1 AS cor0 WHERE col1 <> col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6024
SELECT DISTINCT - - SUM( DISTINCT - - 16 ) AS col0 FROM tab2 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-6024
SELECT DISTINCT - - SUM ( DISTINCT - - 16 ) AS col0 FROM tab2 AS cor0
----
16

query I rowsort
SELECT DISTINCT - - 56 * - + 96 * + ( - col0 ) FROM tab0 AS cor0
----
467712
521472
80640

onlyif mysql # aggregate syntax: 
query I rowsort label-6026
SELECT DISTINCT - COUNT( * ) FROM tab2 AS cor0 WHERE NOT + col1 < - col2
----
-3

skipif mysql # not compatible
query I rowsort label-6026
SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + col1 < - col2
----
-3

query I rowsort
SELECT DISTINCT col0 * + 78 FROM tab0 cor0
----
1170
6786
7566

onlyif mysql # DIV for integer division: 
query I rowsort label-6028
SELECT DISTINCT col2 DIV + 70 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6028
SELECT DISTINCT col2 / + 70 FROM tab2 AS cor0
----
0

query II rowsort
SELECT ALL - - col1 + 10 + col2, - col2 AS col0 FROM tab2 AS cor0
----
127
-40
135
-58
84
-23

query II rowsort
SELECT ALL 36, + col2 AS col0 FROM tab1 AS cor0
----
36
59
36
68
36
96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 * + + col1 * col1 * col0 >= + - 73
----

query I rowsort
SELECT + col1 * + - 70 FROM tab0 AS cor0
----
-1470
-5670
-70

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6033
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 > + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6033
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 > + - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 77 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-6035
SELECT ALL 85 DIV + - col0 AS col1 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-6035
SELECT ALL 85 / + - col0 AS col1 FROM tab1
----
-1
-1
0

query I rowsort
SELECT 52 * + col1 FROM tab2
----
2652
3484
4004

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6037
SELECT ALL - COUNT( * ) AS col2, - MAX( ALL - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-6037
SELECT ALL - COUNT ( * ) AS col2, - MAX ( ALL - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
-3
NULL

query II rowsort
SELECT DISTINCT - 90 AS col1, 96 AS col1 FROM tab0
----
-90
96

query II rowsort
SELECT DISTINCT + - 4 AS col2, col1 AS col2 FROM tab2 WHERE - 91 IS NOT NULL
----
-4
51
-4
67
-4
77

onlyif mysql # DIV for integer division: 
query I rowsort label-6040
SELECT 61 DIV col0 + - - ( 16 ) FROM tab1
----
16
16
17

skipif mysql # not compatible
query I rowsort label-6040
SELECT 61 / col0 + - - ( 16 ) FROM tab1
----
16
16
17

query I rowsort
SELECT - 70 FROM tab0 WHERE NOT NULL <= ( - 54 * + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6042
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - CAST( + 25 AS SIGNED ) / - + col1 - - - 2 ) <= col2 + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6042
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - CAST ( + 25 AS INTEGER ) / - + col1 - - - 2 ) <= col2 + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) IN ( - + 86 )
----

query II rowsort
SELECT ALL + col0 AS col0, - col0 FROM tab2 AS cor0
----
46
-46
64
-64
75
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 11 ) col0 FROM tab2 AS cor0
----
11
11
11

onlyif mysql # aggregate syntax: 
query II rowsort label-6046
SELECT DISTINCT 62 col1, COUNT( * ) * - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
62
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6046
SELECT DISTINCT 62 col1, COUNT ( * ) * - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
62
-81

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 / col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6048
SELECT + 68 + MIN( 38 ) * - + 16 FROM tab1 AS cor0
----
-540

skipif mysql # not compatible
query I rowsort label-6048
SELECT + 68 + MIN ( 38 ) * - + 16 FROM tab1 AS cor0
----
-540

onlyif mysql # aggregate syntax: 
query I rowsort label-6049
SELECT + COUNT( * ) AS col1 FROM tab1 cor0 WHERE NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-6049
SELECT + COUNT ( * ) AS col1 FROM tab1 cor0 WHERE NULL = NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6050
SELECT + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE + 72 + + - col2 NOT IN ( - 60, col0 * col1 * - col1 * - - 45, - col0 )
----
3

skipif mysql # not compatible
query I rowsort label-6050
SELECT + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE + 72 + + - col2 NOT IN ( - 60, col0 * col1 * - col1 * - - 45, - col0 )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6051
SELECT - CAST( NULL AS SIGNED ) + + 60 * - + col0 FROM tab1 cor0 WHERE - col1 + + col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-6051
SELECT - CAST ( NULL AS INTEGER ) + + 60 * - + col0 FROM tab1 cor0 WHERE - col1 + + col0 IS NULL
----

query I rowsort
SELECT + 57 + col1 + - col0 FROM tab1 AS cor0
----
-23
13
20

query I rowsort
SELECT ALL + + ( - - 83 ) + col2 AS col2 FROM tab1 AS cor0
----
142
151
179

onlyif mysql # aggregate syntax: 
query I rowsort label-6054
SELECT - 62 + - ( - + COUNT( * ) ) col0 FROM tab0 cor0
----
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6054
SELECT - 62 + - ( - + COUNT ( * ) ) col0 FROM tab0 cor0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-6055
SELECT - 66 + + COUNT( * ) + + 84 * - 39 AS col0 FROM tab2 cor0
----
-3339

skipif mysql # not compatible
query I rowsort label-6055
SELECT - 66 + + COUNT ( * ) + + 84 * - 39 AS col0 FROM tab2 cor0
----
-3339

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6056
SELECT ALL CAST( NULL AS DECIMAL ) + 39 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6056
SELECT ALL CAST ( NULL AS REAL ) + 39 AS col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE - col1 + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 37 FROM tab2 WHERE NULL NOT BETWEEN - col0 AND - + col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6059
SELECT ALL COUNT( * ), - 35 col0 FROM tab2
----
3
-35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6059
SELECT ALL COUNT ( * ), - 35 col0 FROM tab2
----
3
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-6060
SELECT DISTINCT - MIN( ALL + col0 ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-6060
SELECT DISTINCT - MIN ( ALL + col0 ) FROM tab1
----
-51

query I rowsort
SELECT ALL - - 35 * + ( - col0 ) + - col0 * + col1 FROM tab2 WHERE NOT NULL < NULL
----

query I rowsort
SELECT ALL ( + - col0 ) AS col2 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT + ( + + col0 ) AS col2 FROM tab1
----
51
85
91

query I rowsort
SELECT ALL 18 * - col0 FROM tab1 AS cor0
----
-1530
-1638
-918

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col2, 67 AS col2 FROM tab1 AS cor0
----
-14
67
-47
67
-5
67

query I rowsort
SELECT DISTINCT 96 AS col1 FROM tab1 cor0 WHERE NOT col2 * - - col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6067
SELECT ALL - col1 DIV col0 * - col0 DIV - - ( + col1 ) * + col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6067
SELECT ALL - col1 / col0 * - col0 / - - ( + col1 ) * + col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 39 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * ( + + col1 ) col1 FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-6070
SELECT + SUM( + + 25 ) AS col1 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-6070
SELECT + SUM ( + + 25 ) AS col1 FROM tab2 AS cor0
----
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 66 + - col1 col2 FROM tab1 cor0
----
19
52
61

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <> - col1 + - col0
----

query I rowsort
SELECT ALL col0 + + col0 + - col2 FROM tab1
----
111
114
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6074
SELECT DISTINCT COUNT( * ) AS col2 FROM tab1, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-6074
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab1, tab1 AS cor0
----
9

query I rowsort
SELECT DISTINCT col0 * + 6 FROM tab2
----
276
384
450

query I rowsort
SELECT ( - col0 ) * + 46 - + 11 AS col1 FROM tab0
----
-4013
-4473
-701

onlyif mysql # aggregate syntax: 
query I rowsort label-6077
SELECT MAX( DISTINCT + col0 ) AS col0 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-6077
SELECT MAX ( DISTINCT + col0 ) AS col0 FROM tab1
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-6078
SELECT + col1 DIV + 35 AS col0 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-6078
SELECT + col1 / + 35 AS col0 FROM tab2
----
1
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6079
SELECT DISTINCT + COUNT( * ) + 89 FROM tab1 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-6079
SELECT DISTINCT + COUNT ( * ) + 89 FROM tab1 AS cor0
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6080
SELECT - + 5 * - col1 + - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6080
SELECT - + 5 * - col1 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6081
SELECT ALL + MAX( + col0 ) DIV 72 + 47 FROM tab0 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-6081
SELECT ALL + MAX ( + col0 ) / 72 + 47 FROM tab0 AS cor0
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6082
SELECT + COUNT( * ) DIV - 67 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6082
SELECT + COUNT ( * ) / - 67 AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6083
SELECT DISTINCT - MAX( DISTINCT - col0 ) * - COUNT( * ) FROM tab2 AS cor0
----
-138

skipif mysql # not compatible
query I rowsort label-6083
SELECT DISTINCT - MAX ( DISTINCT - col0 ) * - COUNT ( * ) FROM tab2 AS cor0
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-6084
SELECT ( + COUNT( * ) ) * + 5 col2 FROM tab1 AS cor0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6084
SELECT ( + COUNT ( * ) ) * + 5 col2 FROM tab1 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-6085
SELECT ALL - COUNT( ALL col1 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6085
SELECT ALL - COUNT ( ALL col1 ) AS col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE ( NULL ) <> + col0 * - col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 21 + - 85 / + 37 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( - col2, col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6089
SELECT DISTINCT + 73 + + - COUNT( * ) AS col0 FROM tab2 cor0
----
70

skipif mysql # not compatible
query I rowsort label-6089
SELECT DISTINCT + 73 + + - COUNT ( * ) AS col0 FROM tab2 cor0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-6090
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - col0 BETWEEN - col0 + - + col0 AND - 69
----
-2

skipif mysql # not compatible
query I rowsort label-6090
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - col0 BETWEEN - col0 + - + col0 AND - 69
----
-2

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 51 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6092
SELECT ALL - MIN( - - col2 ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-6092
SELECT ALL - MIN ( - - col2 ) FROM tab0
----
-10

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( 24 + + col2 * col0 * + - col0 * + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6094
SELECT - CAST( col1 AS SIGNED ) * 55, - col1 AS col1 FROM tab1
----
-2585
-47
-275
-5
-770
-14

skipif mysql # not compatible
query II rowsort label-6094
SELECT - CAST ( col1 AS INTEGER ) * 55, - col1 AS col1 FROM tab1
----
-2585
-47
-275
-5
-770
-14

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6095
SELECT * FROM tab1 WHERE NOT NULL > + CAST( NULL AS SIGNED ) - - ( + + col2 )
----

skipif mysql # not compatible
query III rowsort label-6095
SELECT * FROM tab1 WHERE NOT NULL > + CAST ( NULL AS INTEGER ) - - ( + + col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( - col2, col2 + + + col0, - + col0, + ( + col2 ) / + col0 + + col2, + col0 )
----

query II rowsort
SELECT DISTINCT - col2 AS col1, col0 FROM tab1
----
-59
85
-68
91
-96
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 20 * - col1 col1 FROM tab1
----
100
280
940

onlyif mysql # aggregate syntax: 
query I rowsort label-6099
SELECT ALL - COUNT( ALL - + 25 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-6099
SELECT ALL - COUNT ( ALL - + 25 ) AS col0 FROM tab2
----
-3

query I rowsort
SELECT ALL - + 57 * 75 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ebc376c74bc416d084001496f430c52c

query I rowsort
SELECT ALL + col1 * - + col2 FROM tab0
----
-210
-3807
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + 76 col1 FROM tab1 AS cor0 WHERE - 64 IS NULL
----

query I rowsort
SELECT + 58 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
58
58
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 0 col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + - 10 + - col1 + + ( + - col2 ) * - col2 + ( 2 ) FROM tab2 cor0
----
1515
3289
470

query I rowsort
SELECT ALL + - col2 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
-23
-40
-58

query II rowsort
SELECT - + 7 AS col1, + col0 AS col0 FROM tab0 AS cor0
----
-7
15
-7
87
-7
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6108
SELECT - COUNT( ALL col1 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6108
SELECT - COUNT ( ALL col1 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL - 60 * col0 * + + col1 FROM tab1 AS cor0
----
-25500
-256620
-42840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6110
SELECT - - CAST( - - col0 AS SIGNED ) * - col0 FROM tab0 cor0
----
-225
-7569
-9409

skipif mysql # not compatible
query I rowsort label-6110
SELECT - - CAST ( - - col0 AS INTEGER ) * - col0 FROM tab0 cor0
----
-225
-7569
-9409

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 18 AND - + col1
----

query I rowsort
SELECT DISTINCT + 10 + ( + - ( - ( col1 ) ) ) FROM tab1 AS cor0
----
15
24
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6113
SELECT ALL + ( + + CAST( - - col0 AS SIGNED ) ) FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-6113
SELECT ALL + ( + + CAST ( - - col0 AS INTEGER ) ) FROM tab0
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6114
SELECT - 70 * + CAST( ( - - 54 ) AS SIGNED ) + - + col2 AS col0 FROM tab2
----
-3803
-3820
-3838

skipif mysql # not compatible
query I rowsort label-6114
SELECT - 70 * + CAST ( ( - - 54 ) AS INTEGER ) + - + col2 AS col0 FROM tab2
----
-3803
-3820
-3838

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN NULL AND - - ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6116
SELECT ALL * FROM tab2 WHERE NULL NOT IN ( + + ( - - col1 ), - col2 / + - col2 - 70 * - col0, - 53 * + col0 * + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6116
SELECT ALL * FROM tab2 WHERE NULL NOT IN ( + + ( - - col1 ), - col2 / + - col2 - 70 * - col0, - 53 * + col0 * + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT ( - - col1 ) * - col1 FROM tab1
----
-196
-2209
-25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6118
SELECT ALL - CAST( NULL AS SIGNED ) * + col2 AS col0, - col1 FROM tab1
----
NULL
-14
NULL
-47
NULL
-5

skipif mysql # not compatible
query II rowsort label-6118
SELECT ALL - CAST ( NULL AS INTEGER ) * + col2 AS col0, - col1 FROM tab1
----
NULL
-14
NULL
-47
NULL
-5

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN + 91 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6120
SELECT ALL col0 DIV + - col2 col0 FROM tab0
----
-8
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6120
SELECT ALL col0 / + - col2 col0 FROM tab0
----
-8
0
0

query I rowsort
SELECT DISTINCT - col1 * - col0 + col0 - + 54 FROM tab0 AS cor0
----
1176
140
1860

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 - 57 * + + col0 col0 FROM tab1
----
-2921
-4850
-5234

onlyif mysql # aggregate syntax: 
query I rowsort label-6123
SELECT DISTINCT COUNT( ALL col0 ) + - - 22 AS col2 FROM tab0
----
25

skipif mysql # not compatible
query I rowsort label-6123
SELECT DISTINCT COUNT ( ALL col0 ) + - - 22 AS col2 FROM tab0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6124
SELECT ALL 96 - MAX( col2 ) col0 FROM tab2
----
38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6124
SELECT ALL 96 - MAX ( col2 ) col0 FROM tab2
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6125
SELECT COUNT( * ) * + 65 + - COUNT( * ) + + - 62 FROM tab2 AS cor0 WHERE CAST( + col0 AS SIGNED ) IS NULL
----
-62

skipif mysql # not compatible
query I rowsort label-6125
SELECT COUNT ( * ) * + 65 + - COUNT ( * ) + + - 62 FROM tab2 AS cor0 WHERE CAST ( + col0 AS INTEGER ) IS NULL
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-6126
SELECT DISTINCT + 14 DIV - - col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6126
SELECT DISTINCT + 14 / - - col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT + - 61 + - col0 * + - 33 AS col1 FROM tab2 AS cor0
----
1457
2051
2414

query I rowsort
SELECT - col1 * col0 + - col2 AS col0 FROM tab0 AS cor0
----
-1262
-1837
-196

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - ( + col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( 19 ) FROM tab1 cor0
----
19
19
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6131
SELECT DISTINCT + ( - + COUNT( * ) ) * + AVG ( DISTINCT col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT col0 * + - col2 * + 9 + + 77 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6131
SELECT DISTINCT + ( - + COUNT ( * ) ) * + AVG ( DISTINCT col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT col0 * + - col2 * + 9 + + 77 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6132
SELECT 33 AS col1, - COUNT( * ) FROM tab0 AS cor0
----
33
-3

skipif mysql # not compatible
query II rowsort label-6132
SELECT 33 AS col1, - COUNT ( * ) FROM tab0 AS cor0
----
33
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6133
SELECT - col1, col0 FROM tab1 WHERE NOT ( CAST( - col2 AS SIGNED ) >= NULL )
----

skipif mysql # not compatible
query II rowsort label-6133
SELECT - col1, col0 FROM tab1 WHERE NOT ( CAST ( - col2 AS INTEGER ) >= NULL )
----

query II rowsort
SELECT DISTINCT + col2, + 68 - - 49 * + col0 + + col0 AS col1 FROM tab2 WHERE ( NOT ( NOT NULL IS NOT NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6135
SELECT + col1 + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 WHERE NOT NULL >= + - 59
----

skipif mysql # not compatible
query I rowsort label-6135
SELECT + col1 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 WHERE NOT NULL >= + - 59
----

query II rowsort
SELECT + - col1 AS col1, col1 AS col0 FROM tab1 cor0
----
-14
14
-47
47
-5
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6137
SELECT DISTINCT CAST( + + ( col2 ) AS SIGNED ) FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-6137
SELECT DISTINCT CAST ( + + ( col2 ) AS INTEGER ) FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT - + 28 * ( + col0 ) + - col2 FROM tab1 AS cor0
----
-1524
-2439
-2616

query I rowsort
SELECT DISTINCT + 51 + 18 AS col1 FROM tab2 AS cor0
----
69

query I rowsort
SELECT + 5 + - 9 * col0 FROM tab2 AS cor0
----
-409
-571
-670

query I rowsort
SELECT DISTINCT + 12 + col0 FROM tab0 AS cor0
----
109
27
99

query I rowsort
SELECT ALL + 27 + col2 - + + 24 * - col0 AS col0 FROM tab2 AS cor0
----
1154
1603
1885

query I rowsort
SELECT + col0 * - 6 AS col0 FROM tab1 WHERE NULL IS NULL
----
-306
-510
-546

onlyif mysql # aggregate syntax: 
query II rowsort label-6144
SELECT ALL 20 + + SUM( - col2 ) AS col2, - 47 * + 93 AS col1 FROM tab0
----
-136
-4371

skipif mysql # not compatible
query II rowsort label-6144
SELECT ALL 20 + + SUM ( - col2 ) AS col2, - 47 * + 93 AS col1 FROM tab0
----
-136
-4371

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 93 col0 FROM tab2 WHERE NOT + col0 + col0 IS NOT NULL
----

query II rowsort
SELECT ALL + col1, + 38 FROM tab1
----
14
38
47
38
5
38

query I rowsort
SELECT 69 - col2 AS col2 FROM tab2
----
11
29
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6148
SELECT - + 6 + col1 * + CAST( - col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-103
-1221
-1833

skipif mysql # not compatible
query I rowsort label-6148
SELECT - + 6 + col1 * + CAST ( - col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-103
-1221
-1833

query I rowsort
SELECT + - 89 + - - col2 FROM tab2 AS cor0
----
-31
-49
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-6150
SELECT ALL MIN( + col0 ) - - - COUNT( - col2 ) AS col0 FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-6150
SELECT ALL MIN ( + col0 ) - - - COUNT ( - col2 ) AS col0 FROM tab1
----
48

query I rowsort
SELECT DISTINCT - - 22 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
22

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + 8 + + col2 * col1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6153
SELECT 46 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6153
SELECT 46 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + - col0 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 / - col2 <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6156
SELECT DISTINCT + CAST( + COUNT( * ) AS SIGNED ), COUNT( * ) * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
3
-9

skipif mysql # not compatible
query II rowsort label-6156
SELECT DISTINCT + CAST ( + COUNT ( * ) AS INTEGER ), COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
3
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6157
SELECT DISTINCT COUNT( col2 ) * + 62 AS col0 FROM tab2 AS cor0
----
186

skipif mysql # not compatible
query I rowsort label-6157
SELECT DISTINCT COUNT ( col2 ) * + 62 AS col0 FROM tab2 AS cor0
----
186

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT DISTINCT + 59 FROM tab1 AS cor0 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT 91 * + col0 AS col0 FROM tab1
----
4641
7735
8281

query II rowsort
SELECT DISTINCT 79 AS col0, col0 AS col1 FROM tab2 WHERE 26 * + 41 + + col0 * - col0 BETWEEN NULL AND 96
----

query I rowsort
SELECT ALL + ( 29 ) FROM tab1
----
29
29
29

query I rowsort
SELECT ( + 91 ) FROM tab2
----
91
91
91

query I rowsort
SELECT - ( 45 ) FROM tab1
----
-45
-45
-45

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6165
SELECT ALL + CAST( NULL AS SIGNED ), - col0 * - + col0 AS col1 FROM tab2 cor0
----
NULL
2116
NULL
4096
NULL
5625

skipif mysql # not compatible
query II rowsort label-6165
SELECT ALL + CAST ( NULL AS INTEGER ), - col0 * - + col0 AS col1 FROM tab2 cor0
----
NULL
2116
NULL
4096
NULL
5625

query II rowsort
SELECT ALL col2 AS col1, col2 FROM tab2 cor0
----
23
23
40
40
58
58

query I rowsort
SELECT ALL AVG ( + col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( ( NULL ) IN ( col1, - col0 ) )
----
NULL

query II rowsort
SELECT DISTINCT col0, + 35 FROM tab1 AS cor0
----
51
35
85
35
91
35

onlyif mysql # aggregate syntax: 
query I rowsort label-6169
SELECT COUNT( * ) * + + 90 FROM tab2
----
270

skipif mysql # not compatible
query I rowsort label-6169
SELECT COUNT ( * ) * + + 90 FROM tab2
----
270

query I rowsort
SELECT ALL + col0 + + - col0 + col2 FROM tab0
----
10
47
99

query II rowsort
SELECT + col1 AS col2, + 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 - col1 * col1 + - 57 col1 FROM tab2 AS cor0
----
-2658
-4546
-5986

query I rowsort
SELECT - col2 + - 66 FROM tab2 AS cor0
----
-106
-124
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-6174
SELECT DISTINCT + - COUNT( * ) + COUNT( * ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6174
SELECT DISTINCT + - COUNT ( * ) + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - - 91 + - col1 FROM tab0 AS cor0
----
10
70
90

query I rowsort
SELECT + col1 + - ( - ( - + 62 ) ) AS col0 FROM tab0 AS cor0
----
-41
-61
19

query I rowsort
SELECT + 27 * + 77 + - + col1 FROM tab1
----
2032
2065
2074

query I rowsort
SELECT DISTINCT - 25 + col2 AS col2 FROM tab0
----
-15
22
74

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL > - 89 + - col2
----

query I rowsort
SELECT ALL col0 * - - col2 FROM tab0 AS cor0
----
705
870
9603

query I rowsort
SELECT + + col2 - + + col1 AS col1 FROM tab2 AS cor0
----
-28
-37
-9

query I rowsort
SELECT + 8 - - col2 * + + col0 * + col2 AS col1 FROM tab0 AS cor0
----
33143
8708
950705

onlyif mysql # aggregate syntax: 
query I rowsort label-6183
SELECT COUNT( * ) - + + COUNT( * ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6183
SELECT COUNT ( * ) - + + COUNT ( * ) AS col0 FROM tab1
----
0

query I rowsort
SELECT DISTINCT - 10 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-6185
SELECT + 28 * - COUNT( * ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-252

skipif mysql # not compatible
query I rowsort label-6185
SELECT + 28 * - COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-252

query II rowsort
SELECT DISTINCT 46 AS col1, 59 - col1 FROM tab1
----
46
12
46
45
46
54

onlyif mysql # DIV for integer division: 
query I rowsort label-6187
SELECT - col2 DIV 11 col0 FROM tab0 AS cor0
----
-4
-9
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6187
SELECT - col2 / 11 col0 FROM tab0 AS cor0
----
-4
-9
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6188
SELECT DISTINCT + COUNT( * ) DIV - 22 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6188
SELECT DISTINCT + COUNT ( * ) / - 22 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - + 70 * + 35 AS col0 FROM tab1 AS cor0
----
-2450
-2450
-2450

query I rowsort
SELECT DISTINCT + 16 * - + 39 FROM tab0 AS cor0
----
-624

onlyif mysql # aggregate syntax: 
query I rowsort label-6191
SELECT + 44 * SUM( DISTINCT + - col2 ) + - COUNT( * ) FROM tab2 AS cor0
----
-5327

skipif mysql # not compatible
query I rowsort label-6191
SELECT + 44 * SUM ( DISTINCT + - col2 ) + - COUNT ( * ) FROM tab2 AS cor0
----
-5327

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col2 ) >= NULL
----

query I rowsort
SELECT - col2 * + - ( - col1 ) FROM tab0 cor0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6194
SELECT - 54 * + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-162

skipif mysql # not compatible
query I rowsort label-6194
SELECT - 54 * + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6195
SELECT - + col1 * - CAST( NULL AS SIGNED ) / - + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6195
SELECT - + col1 * - CAST ( NULL AS INTEGER ) / - + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6196
SELECT ALL + MAX( DISTINCT + 34 ) AS col2 FROM tab2 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-6196
SELECT ALL + MAX ( DISTINCT + 34 ) AS col2 FROM tab2 AS cor0
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6197
SELECT DISTINCT - 92 DIV - COUNT( 26 ) FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-6197
SELECT DISTINCT - 92 / - COUNT ( 26 ) FROM tab2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6198
SELECT DISTINCT COUNT( DISTINCT + col2 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6198
SELECT DISTINCT COUNT ( DISTINCT + col2 ) AS col1 FROM tab0
----
3

query I rowsort
SELECT DISTINCT col1 - - col2 AS col2 FROM tab2 WHERE - col2 - - + col1 NOT BETWEEN NULL AND - col2 * col1
----
117
125
74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6200
SELECT CAST( + + 66 AS SIGNED ), col1 FROM tab1
----
66
14
66
47
66
5

skipif mysql # not compatible
query II rowsort label-6200
SELECT CAST ( + + 66 AS INTEGER ), col1 FROM tab1
----
66
14
66
47
66
5

query I rowsort
SELECT DISTINCT + col1 * + + 12 FROM tab1 WHERE + col0 >= col2
----
564
60

query I rowsort
SELECT ALL + col0 + 29 FROM tab0 AS cor0
----
116
126
44

query I rowsort
SELECT 57 AS col0 FROM tab2 AS cor0 WHERE NOT 79 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6204
SELECT DISTINCT + COUNT( DISTINCT + col1 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6204
SELECT DISTINCT + COUNT ( DISTINCT + col1 ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6205
SELECT - col1 * - + col2 AS col2 FROM tab2 WHERE - + CAST( - col0 AS SIGNED ) + CAST( NULL AS SIGNED ) * + col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6205
SELECT - col1 * - + col2 AS col2 FROM tab2 WHERE - + CAST ( - col0 AS INTEGER ) + CAST ( NULL AS INTEGER ) * + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL = col2 + - + col2 * + col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6207
SELECT ALL + - COUNT( * ) * - + ( 70 ) AS col1, 13 AS col0 FROM tab1 AS cor0
----
210
13

skipif mysql # not compatible
query II rowsort label-6207
SELECT ALL + - COUNT ( * ) * - + ( 70 ) AS col1, 13 AS col0 FROM tab1 AS cor0
----
210
13

query I rowsort
SELECT ALL + col2 + + col2 AS col1 FROM tab0 cor0
----
198
20
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6209
SELECT - SUM( - + CAST( col2 AS SIGNED ) ) FROM tab2 cor0
----
121

skipif mysql # not compatible
query I rowsort label-6209
SELECT - SUM ( - + CAST ( col2 AS INTEGER ) ) FROM tab2 cor0
----
121

onlyif mysql # DIV for integer division: 
query I rowsort label-6210
SELECT DISTINCT - - 55 DIV col1 + - col0 + + ( - + col2 ) FROM tab2 AS cor0
----
-104
-133
-68

skipif mysql # not compatible
query I rowsort label-6210
SELECT DISTINCT - - 55 / col1 + - col0 + + ( - + col2 ) FROM tab2 AS cor0
----
-104
-133
-68

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6211
SELECT ALL + + 28 DIV - - 4 + - col0 AS col0, CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0
----
-39
NULL
-57
NULL
-68
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6211
SELECT ALL + + 28 / - - 4 + - col0 AS col0, CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
-39
NULL
-57
NULL
-68
NULL

query I rowsort
SELECT DISTINCT + 73 + + col2 AS col1 FROM tab1 AS cor0
----
132
141
169

onlyif mysql # DIV for integer division: 
query I rowsort label-6213
SELECT DISTINCT col1 * - + col1 DIV + + col1 + + col2 + - col1 AS col1 FROM tab2 cor0
----
-114
-76
-79

skipif mysql # not compatible
query I rowsort label-6213
SELECT DISTINCT col1 * - + col1 / + + col1 + + col2 + - col1 AS col1 FROM tab2 cor0
----
-114
-76
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-6214
SELECT DISTINCT - COUNT( * ) - - ( COUNT( * ) ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6214
SELECT DISTINCT - COUNT ( * ) - - ( COUNT ( * ) ) AS col0 FROM tab0
----
0

query II rowsort
SELECT ALL col0, 57 AS col0 FROM tab2
----
46
57
64
57
75
57

query I rowsort
SELECT - 95 - - 56 FROM tab1
----
-39
-39
-39

query I rowsort
SELECT + 79 * + 82 - - + col0 FROM tab2
----
6524
6542
6553

onlyif mysql # aggregate syntax: 
query II rowsort label-6218
SELECT DISTINCT - COUNT( * ) AS col2, COUNT( * ) AS col2 FROM tab1
----
-3
3

skipif mysql # not compatible
query II rowsort label-6218
SELECT DISTINCT - COUNT ( * ) AS col2, COUNT ( * ) AS col2 FROM tab1
----
-3
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6219
SELECT - col0 DIV + 92 - col2 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-6219
SELECT - col0 / + 92 - col2 FROM tab2
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6220
SELECT ALL col1 - 83 DIV + + CAST( + - col2 AS SIGNED ) AS col1, col0 FROM tab1
----
14
51
48
91
6
85

skipif mysql # not compatible
query II rowsort label-6220
SELECT ALL col1 - 83 / + + CAST ( + - col2 AS INTEGER ) AS col1, col0 FROM tab1
----
14
51
48
91
6
85

query II rowsort
SELECT ALL col0 AS col2, col2 AS col2 FROM tab0
----
15
47
87
10
97
99

query II rowsort
SELECT + col2 + + col0 * + col0 * + 29 * + col1 * - 45 AS col0, + col0 AS col2 FROM tab1
----
-47143066
85
-47520174
51
-507915067
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6223
SELECT DISTINCT + MIN( - - col0 ) AS col0 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-6223
SELECT DISTINCT + MIN ( - - col0 ) AS col0 FROM tab2 AS cor0
----
46

query I rowsort
SELECT - 86 + + col2 AS col2 FROM tab1 AS cor0
----
-18
-27
10

query I rowsort
SELECT - + 47 FROM tab0 AS cor0 WHERE col1 BETWEEN NULL AND - col1 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6226
SELECT DISTINCT - MAX( - col0 ) + 85 - - 72 AS col1 FROM tab0 AS cor0
----
172

skipif mysql # not compatible
query I rowsort label-6226
SELECT DISTINCT - MAX ( - col0 ) + 85 - - 72 AS col1 FROM tab0 AS cor0
----
172

onlyif mysql # aggregate syntax: 
query I rowsort label-6227
SELECT DISTINCT MAX( col1 ) AS col1 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-6227
SELECT DISTINCT MAX ( col1 ) AS col1 FROM tab0 AS cor0
----
81

onlyif mysql # DIV for integer division: 
query II rowsort label-6228
SELECT ALL - 98 * - 35 AS col2, + col1 DIV col0 AS col2 FROM tab0 AS cor0
----
3430
0
3430
0
3430
5

skipif mysql # not compatible
query II rowsort label-6228
SELECT ALL - 98 * - 35 AS col2, + col1 / col0 AS col2 FROM tab0 AS cor0
----
3430
0
3430
0
3430
5

query I rowsort
SELECT DISTINCT + col1 + + + 78 * + col0 + + 8 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT 41 * + 51 FROM tab2 AS cor0
----
2091

query I rowsort
SELECT - 18 * + - col0 + - + col2 * col1 * + 96 FROM tab0 AS cor0
----
-18594
-365202
-7758

query I rowsort
SELECT ALL - 25 AS col2 FROM tab0
----
-25
-25
-25

query I rowsort
SELECT + col2 * + - col0 AS col2 FROM tab0
----
-705
-870
-9603

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6234
SELECT CAST( NULL AS SIGNED ) AS col2, 90 AS col0 FROM tab2
----
NULL
90
NULL
90
NULL
90

skipif mysql # not compatible
query II rowsort label-6234
SELECT CAST ( NULL AS INTEGER ) AS col2, 90 AS col0 FROM tab2
----
NULL
90
NULL
90
NULL
90

query II rowsort
SELECT DISTINCT - 73, - col1 + + - 72 AS col1 FROM tab1
----
-73
-119
-73
-77
-73
-86

query I rowsort
SELECT ALL - 74 * 15 * col2 FROM tab0
----
-109890
-11100
-52170

query I rowsort
SELECT ALL ( col2 ) * col1 + col2 FROM tab0
----
198
220
3854

query I rowsort
SELECT DISTINCT col0 + - col2 - + col0 * - - 6 AS col1 FROM tab1 AS cor0
----
-351
-484
-523

query I rowsort
SELECT ALL - 49 + + + 2 * + 25 * - - 94 * - 63 FROM tab0 AS cor0
----
-296149
-296149
-296149

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6240
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 * - col0 >= + CAST( NULL AS SIGNED ) / - 7
----

skipif mysql # not compatible
query III rowsort label-6240
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 * - col0 >= + CAST ( NULL AS INTEGER ) / - 7
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6241
SELECT ALL COUNT( DISTINCT ( - 34 ) ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-6241
SELECT ALL COUNT ( DISTINCT ( - 34 ) ) FROM tab1
----
1

query I rowsort
SELECT ALL - col1 AS col1 FROM tab1 WHERE NOT ( 21 + + col1 / - col1 ) IS NOT NULL
----

query I rowsort
SELECT - col0 * - 49 + - col2 AS col2 FROM tab1
----
2403
4106
4391

onlyif mysql # DIV for integer division: 
query I rowsort label-6244
SELECT ( 23 ) DIV col0 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6244
SELECT ( 23 ) / col0 AS col0 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6245
SELECT - col2 / - ( CAST( NULL AS SIGNED ) * col2 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6245
SELECT - col2 / - ( CAST ( NULL AS INTEGER ) * col2 ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6246
SELECT ALL col0 * - col0 + - CAST( - col1 AS SIGNED ) AS col1 FROM tab0
----
-144
-7548
-9408

skipif mysql # not compatible
query I rowsort label-6246
SELECT ALL col0 * - col0 + - CAST ( - col1 AS INTEGER ) AS col1 FROM tab0
----
-144
-7548
-9408

onlyif mysql # aggregate syntax: 
query I rowsort label-6247
SELECT + ( COUNT( * ) ) * - MIN( col2 * ( col0 ) ) col2 FROM tab1
----
-14688

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6247
SELECT + ( COUNT ( * ) ) * - MIN ( col2 * ( col0 ) ) col2 FROM tab1
----
-14688

query I rowsort
SELECT 79 * 45 FROM tab1
----
3555
3555
3555

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 60 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6250
SELECT col1 * - CAST( NULL AS SIGNED ) - + col0 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6250
SELECT col1 * - CAST ( NULL AS INTEGER ) - + col0 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6251
SELECT DISTINCT + COUNT( col0 ) * + 62 col2 FROM tab1
----
186

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6251
SELECT DISTINCT + COUNT ( col0 ) * + 62 col2 FROM tab1
----
186

query I rowsort
SELECT ALL + col1 AS col0 FROM tab0 WHERE 31 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE 16 NOT BETWEEN NULL AND ( + 61 + - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 AS col1 FROM tab2 WHERE NULL < - col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN - col0 AND col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6256
SELECT ALL - col0 DIV 17 FROM tab2
----
-2
-3
-4

skipif mysql # not compatible
query I rowsort label-6256
SELECT ALL - col0 / 17 FROM tab2
----
-2
-3
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-6257
SELECT + MIN( col0 ) * - 99 FROM tab1
----
-5049

skipif mysql # not compatible
query I rowsort label-6257
SELECT + MIN ( col0 ) * - 99 FROM tab1
----
-5049

onlyif mysql # aggregate syntax: 
query I rowsort label-6258
SELECT - COUNT( * ) * + ( - COUNT( * ) ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-6258
SELECT - COUNT ( * ) * + ( - COUNT ( * ) ) FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6259
SELECT - 33 * + COUNT( * ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-6259
SELECT - 33 * + COUNT ( * ) FROM tab0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6260
SELECT ALL * FROM tab1 WHERE NOT col2 * col0 IN ( col1 - CAST( + col2 AS SIGNED ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6260
SELECT ALL * FROM tab1 WHERE NOT col2 * col0 IN ( col1 - CAST ( + col2 AS INTEGER ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-6261
SELECT DISTINCT 88 DIV - col1 AS col2 FROM tab0
----
-1
-4
-88

skipif mysql # not compatible
query I rowsort label-6261
SELECT DISTINCT 88 / - col1 AS col2 FROM tab0
----
-1
-4
-88

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IN ( + col1 + + col2 * col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 + col0 * + ( + col0 + col2 ) NOT BETWEEN - col2 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 / ( 44 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-6265
SELECT ALL 78 DIV col2 AS col0 FROM tab0
----
0
1
7

skipif mysql # not compatible
query I rowsort label-6265
SELECT ALL 78 / col2 AS col0 FROM tab0
----
0
1
7

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col0 ) BETWEEN + 51 AND ( NULL )
----
15
81
47

query I rowsort
SELECT DISTINCT + col1 * + col1 AS col0 FROM tab1 WHERE NOT ( col2 ) BETWEEN ( 94 - + col2 ) AND - col2
----
196
2209
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6268
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE ( col2 / - col1 ) = ( - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-6268
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE ( col2 / - col1 ) = ( - col0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6269
SELECT COUNT( * ) * - 98 FROM tab0 AS cor0
----
-294

skipif mysql # not compatible
query I rowsort label-6269
SELECT COUNT ( * ) * - 98 FROM tab0 AS cor0
----
-294

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6270
SELECT * FROM tab0 AS cor0 WHERE NOT col2 / - col0 NOT BETWEEN ( CAST( col1 AS DECIMAL ) * col2 ) AND 4
----

skipif mysql # not compatible
query III rowsort label-6270
SELECT * FROM tab0 AS cor0 WHERE NOT col2 / - col0 NOT BETWEEN ( CAST ( col1 AS REAL ) * col2 ) AND 4
----

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) > - col1 / 11
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6272
SELECT DISTINCT SUM( DISTINCT col0 ) AS col0 FROM tab2 cor0
----
185

skipif mysql # not compatible
query I rowsort label-6272
SELECT DISTINCT SUM ( DISTINCT col0 ) AS col0 FROM tab2 cor0
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-6273
SELECT - - MAX( - col0 ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-6273
SELECT - - MAX ( - col0 ) FROM tab2 AS cor0
----
-46

query I rowsort
SELECT + 33 * 65 AS col1 FROM tab1 AS cor0
----
2145
2145
2145

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6275
SELECT + CAST( NULL AS DECIMAL ) * - 84 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6275
SELECT + CAST ( NULL AS REAL ) * - 84 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( ( - col2 ) ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-23
-40
-58

query I rowsort
SELECT ALL 61 AS col2 FROM tab2 AS cor0 WHERE NOT ( col1 + - col0 ) IS NOT NULL
----

query I rowsort
SELECT ALL + - ( + ( col2 ) ) FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT DISTINCT + - 20 AS col2 FROM tab2 AS cor0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-6280
SELECT DISTINCT - MIN( - col0 ) AS col0 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-6280
SELECT DISTINCT - MIN ( - col0 ) AS col0 FROM tab2 AS cor0
----
75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - 79 * - col0 ) >= ( + col0 + + 11 )
----

query I rowsort
SELECT DISTINCT + 83 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6283
SELECT - MAX( DISTINCT 10 ) AS col1 FROM tab1 cor0 WHERE NOT ( - 37 ) <= ( 22 * 10 + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6283
SELECT - MAX ( DISTINCT 10 ) AS col1 FROM tab1 cor0 WHERE NOT ( - 37 ) <= ( 22 * 10 + col0 )
----
NULL

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE NOT - 84 > + col2
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6285
SELECT DISTINCT MIN( ALL - 75 ) col2 FROM tab0
----
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6285
SELECT DISTINCT MIN ( ALL - 75 ) col2 FROM tab0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6286
SELECT 45 * - - 31 * SUM( DISTINCT 89 ) FROM tab0
----
124155

skipif mysql # not compatible
query I rowsort label-6286
SELECT 45 * - - 31 * SUM ( DISTINCT 89 ) FROM tab0
----
124155

query I rowsort
SELECT ALL ( 20 ) * - 25 FROM tab2
----
-500
-500
-500

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 43 col0 FROM tab1
----
43
43
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6289
SELECT ALL - COUNT( * ) * - COUNT( * ) * - ( COUNT( * ) ) AS col0 FROM tab1
----
-27

skipif mysql # not compatible
query I rowsort label-6289
SELECT ALL - COUNT ( * ) * - COUNT ( * ) * - ( COUNT ( * ) ) AS col0 FROM tab1
----
-27

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NOT - col2 * 21 + col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6291
SELECT + 76 * - COUNT( * ) * MAX( - col2 ) FROM tab0
----
2280

skipif mysql # not compatible
query I rowsort label-6291
SELECT + 76 * - COUNT ( * ) * MAX ( - col2 ) FROM tab0
----
2280

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6292
SELECT - MIN( 28 ) DIV + COUNT( * ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-6292
SELECT - MIN ( 28 ) / + COUNT ( * ) FROM tab2 AS cor0
----
-9

query I rowsort
SELECT + col2 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6294
SELECT + 64 + col0 DIV + 30 AS col2 FROM tab0 cor0
----
64
66
67

skipif mysql # not compatible
query I rowsort label-6294
SELECT + 64 + col0 / + 30 AS col2 FROM tab0 cor0
----
64
66
67

query I rowsort
SELECT ALL + 58 * + col2 + 30 FROM tab2 AS cor0
----
1364
2350
3394

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL > + 9 * 86 - - col1 * col1
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6298
SELECT - 17 * + - SUM( + 53 ) FROM tab2
----
2703

skipif mysql # not compatible
query I rowsort label-6298
SELECT - 17 * + - SUM ( + 53 ) FROM tab2
----
2703

onlyif mysql # aggregate syntax: 
query I rowsort label-6299
SELECT + - COUNT( ALL + ( - - ( - 6 ) ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6299
SELECT + - COUNT ( ALL + ( - - ( - 6 ) ) ) FROM tab0 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 87 <> ( - col1 + + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL < col0
----

query I rowsort
SELECT + + col0 * - 34 AS col1 FROM tab1 AS cor0 WHERE - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6303
SELECT DISTINCT - CAST( - 41 AS SIGNED ) * 82 + + col0 + col1 FROM tab2 cor0
----
3459
3503
3504

skipif mysql # not compatible
query I rowsort label-6303
SELECT DISTINCT - CAST ( - 41 AS INTEGER ) * 82 + + col0 + col1 FROM tab2 cor0
----
3459
3503
3504

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 46 IS NULL
----

query I rowsort
SELECT ALL - - 85 + + + col0 FROM tab1 AS cor0
----
136
170
176

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab1 AS cor0 WHERE ( 42 ) IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT DISTINCT + col1 - col1 * - + 34 * - col2 FROM tab0 cor0
----
-129357
-3365
-7119

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 67 + + + 35 * col2 col1 FROM tab0 AS cor0
----
1712
3532
417

onlyif mysql # aggregate syntax: 
query I rowsort label-6309
SELECT ALL ( - MAX( - - col2 ) ) - 23 AS col0 FROM tab2 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-6309
SELECT ALL ( - MAX ( - - col2 ) ) - 23 AS col0 FROM tab2 AS cor0
----
-81

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - 3 ) <> - col1 * + col0 AND + col2 IN ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6311
SELECT ALL + COUNT( * ) - + - MAX( - col2 ) FROM tab2
----
-20

skipif mysql # not compatible
query I rowsort label-6311
SELECT ALL + COUNT ( * ) - + - MAX ( - col2 ) FROM tab2
----
-20

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + - col1 ) * col2 + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6313
SELECT DISTINCT 55 * COUNT( * ) * - 5 FROM tab0 AS cor0
----
-825

skipif mysql # not compatible
query I rowsort label-6313
SELECT DISTINCT 55 * COUNT ( * ) * - 5 FROM tab0 AS cor0
----
-825

query II rowsort
SELECT DISTINCT + - ( + col0 ) AS col2, - col1 * + col1 AS col0 FROM tab1 AS cor0
----
-51
-196
-85
-25
-91
-2209

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6315
SELECT - + 99 * + - CAST( - - col1 AS SIGNED ) FROM tab0 AS cor0
----
2079
8019
99

skipif mysql # not compatible
query I rowsort label-6315
SELECT - + 99 * + - CAST ( - - col1 AS INTEGER ) FROM tab0 AS cor0
----
2079
8019
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6316
SELECT COUNT( col0 ) DIV - - COUNT( * ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6316
SELECT COUNT ( col0 ) / - - COUNT ( * ) FROM tab0 AS cor0
----
1

query III rowsort
SELECT * FROM tab2 WHERE NOT 58 + - + ( + col1 ) * col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + - 12 * + col1 / + col0 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6319
SELECT + col0 * ( - + col2 ) * 77 + + - 20 + 4 DIV col0 FROM tab1 cor0
----
-377012
-386175
-476496

skipif mysql # not compatible
query I rowsort label-6319
SELECT + col0 * ( - + col2 ) * 77 + + - 20 + 4 / col0 FROM tab1 cor0
----
-377012
-386175
-476496

query I rowsort
SELECT 74 FROM tab0 cor0 WHERE NOT NULL = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6321
SELECT DISTINCT - CAST( - COUNT( * ) AS SIGNED ) + + COUNT( * ) * ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6321
SELECT DISTINCT - CAST ( - COUNT ( * ) AS INTEGER ) + + COUNT ( * ) * ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6322
SELECT ALL col1 FROM tab0 AS cor0 WHERE NOT ( - col1 ) BETWEEN ( 96 * - CAST( - col0 AS SIGNED ) ) AND NULL
----
1
21
81

skipif mysql # not compatible
query I rowsort label-6322
SELECT ALL col1 FROM tab0 AS cor0 WHERE NOT ( - col1 ) BETWEEN ( 96 * - CAST ( - col0 AS INTEGER ) ) AND NULL
----
1
21
81

query I rowsort
SELECT DISTINCT + 71 + + + ( col1 ) FROM tab0 AS cor0
----
152
72
92

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND col2 * + col2
----

query I rowsort
SELECT + - 62 AS col1 FROM tab1 AS cor0
----
-62
-62
-62

query II rowsort
SELECT + 55 AS col0, col1 FROM tab1 AS cor0
----
55
14
55
47
55
5

query III rowsort
SELECT ALL col1 AS col1, + col1, - col0 + col1 FROM tab1
----
9 values hashing to 5a7e224c2ff290b14d862f2a8dbfbd38

query I rowsort
SELECT DISTINCT - col2 * + - col2 AS col0 FROM tab0
----
100
2209
9801

query III rowsort
SELECT * FROM tab0 WHERE ( ( + ( + - col0 ) * - 13 ) IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 + - 23 + col0 + - col2 AS col0 FROM tab0
----
-136
-26
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 93 * - + col1 col1 FROM tab2
----
4743
6231
7161

query II rowsort
SELECT DISTINCT + col1, ( + 81 ) FROM tab1 cor0
----
14
81
47
81
5
81

query I rowsort
SELECT DISTINCT col1 + 4 - + + col1 FROM tab2 cor0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6334
SELECT ALL - - COUNT( ALL 27 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6334
SELECT ALL - - COUNT ( ALL 27 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT - + 19 AS col0 FROM tab1 AS cor0
----
-19
-19
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6336
SELECT DISTINCT 66 / col1 / - + col1 - - + col1 + + 93 - - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6336
SELECT DISTINCT 66 / col1 / - + col1 - - + col1 + + 93 - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

query II rowsort
SELECT ALL ( + col0 ) AS col1, - col0 FROM tab1
----
51
-51
85
-85
91
-91

query II rowsort
SELECT ( + col1 ) + 44, col1 FROM tab1 AS cor0
----
49
5
58
14
91
47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6339
SELECT * FROM tab0 AS cor0 WHERE ( NOT ( - - CAST( NULL AS SIGNED ) + - col2 ) IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6339
SELECT * FROM tab0 AS cor0 WHERE ( NOT ( - - CAST ( NULL AS INTEGER ) + - col2 ) IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - ( + 21 ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) > NULL
----

query I rowsort
SELECT col1 * col1 + + 31 FROM tab1 cor0
----
2240
227
56

query I rowsort
SELECT ALL - col2 + + + 4 - + 28 AS col1 FROM tab2 AS cor0
----
-47
-64
-82

query I rowsort
SELECT - col0 * + - col1 AS col1 FROM tab1 AS cor0 WHERE NULL <= - col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 <> ( - + 69 + col2 * - col2 * col1 + + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6345
SELECT ALL + CAST( NULL AS SIGNED ) + ( - col0 ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6345
SELECT ALL + CAST ( NULL AS INTEGER ) + ( - col0 ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6346
SELECT + + 47 * - + CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6346
SELECT + + 47 * - + CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( 15 ) AS col1 FROM tab0 AS cor0
----
15
15
15

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 + + col0 >= NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 <> - - 99
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6350
SELECT DISTINCT - MIN( + + col2 ) * + - COUNT( * ) * COUNT( * ) AS col0, 86 FROM tab1
----
531
86

skipif mysql # not compatible
query II rowsort label-6350
SELECT DISTINCT - MIN ( + + col2 ) * + - COUNT ( * ) * COUNT ( * ) AS col0, 86 FROM tab1
----
531
86

query I rowsort
SELECT col1 AS col2 FROM tab0 WHERE NOT ( - - col0 ) IS NOT NULL
----

query I rowsort
SELECT col1 AS col2 FROM tab2 WHERE NOT - col0 IS NULL
----
51
67
77

onlyif mysql # DIV for integer division: 
query II rowsort label-6353
SELECT DISTINCT - col2 AS col2, 1 * - - col0 DIV - ( - col0 ) FROM tab1 AS cor0
----
-59
1
-68
1
-96
1

skipif mysql # not compatible
query II rowsort label-6353
SELECT DISTINCT - col2 AS col2, 1 * - - col0 / - ( - col0 ) FROM tab1 AS cor0
----
-59
1
-68
1
-96
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6354
SELECT + COUNT( 72 ) AS col2 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-6354
SELECT + COUNT ( 72 ) AS col2 FROM tab2 cor0
----
3

query I rowsort
SELECT - 84 + + + 57 + + col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col1
----

query I rowsort
SELECT DISTINCT + 0 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0

query I rowsort
SELECT + col2 FROM tab1 WHERE NOT - + col1 * + col2 - - + 31 IS NULL
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6358
SELECT ALL - CAST( 58 AS SIGNED ) FROM tab2 AS cor0
----
-58
-58
-58

skipif mysql # not compatible
query I rowsort label-6358
SELECT ALL - CAST ( 58 AS INTEGER ) FROM tab2 AS cor0
----
-58
-58
-58

query I rowsort
SELECT - col1 + + - col2 AS col0 FROM tab0 AS cor0
----
-100
-128
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6360
SELECT DISTINCT ( + ( + col0 ) ) + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6360
SELECT DISTINCT ( + ( + col0 ) ) + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col1 FROM tab0 AS cor0 WHERE NULL < NULL
----

query I rowsort
SELECT + 74 * - - col2 + + ( + col1 ) * - col2 * - col2 FROM tab1 AS cor0
----
136128
21771
222360

query I rowsort
SELECT ALL - - col0 + col1 * col0 AS col2 FROM tab0 AS cor0
----
1230
1914
194

onlyif mysql # aggregate syntax: 
query I rowsort label-6364
SELECT DISTINCT - COUNT( * ) + ( - 77 ) AS col1 FROM tab2 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-6364
SELECT DISTINCT - COUNT ( * ) + ( - 77 ) AS col1 FROM tab2 AS cor0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-6365
SELECT DISTINCT MAX( DISTINCT col1 ) AS col0 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-6365
SELECT DISTINCT MAX ( DISTINCT col1 ) AS col0 FROM tab1 AS cor0
----
47

query I rowsort
SELECT - col0 AS col1 FROM tab1 WHERE - ( - - 61 ) IS NULL
----

query I rowsort
SELECT 4 * - + col2 FROM tab1
----
-236
-272
-384

onlyif mysql # aggregate syntax: 
query I rowsort label-6368
SELECT - COUNT( * ) + - 28 FROM tab1 WHERE NULL IS NOT NULL
----
-28

skipif mysql # not compatible
query I rowsort label-6368
SELECT - COUNT ( * ) + - 28 FROM tab1 WHERE NULL IS NOT NULL
----
-28

query I rowsort
SELECT DISTINCT col1 + + col2 + + col0 AS col1 FROM tab2
----
120
181
200

onlyif mysql # aggregate syntax: 
query I rowsort label-6370
SELECT ( 99 ) * COUNT( * ) FROM tab1 WHERE 9 IS NOT NULL
----
297

skipif mysql # not compatible
query I rowsort label-6370
SELECT ( 99 ) * COUNT ( * ) FROM tab1 WHERE 9 IS NOT NULL
----
297

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 52 * - + col2 col1 FROM tab2
----
-1196
-2080
-3016

onlyif mysql # aggregate syntax: 
query I rowsort label-6372
SELECT ALL + COUNT( * ) - 99 FROM tab2 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-6372
SELECT ALL + COUNT ( * ) - 99 FROM tab2 AS cor0
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6373
SELECT col1 + + col1 + CAST( NULL AS SIGNED ) * - col2 col2 FROM tab0 AS cor0 WHERE NULL NOT IN ( col0 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6373
SELECT col1 + + col1 + CAST ( NULL AS INTEGER ) * - col2 col2 FROM tab0 AS cor0 WHERE NULL NOT IN ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6374
SELECT DISTINCT 36 + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6374
SELECT DISTINCT 36 + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT + col0 - - col2 * + col0 FROM tab1 AS cor0
----
4947
5100
6279

query I rowsort
SELECT + 70 - 2 FROM tab2 AS cor0
----
68
68
68

query I rowsort
SELECT ALL + - 47 FROM tab2 cor0
----
-47
-47
-47

query I rowsort
SELECT DISTINCT + + col2 * - - col0 AS col0 FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-6379
SELECT ALL - COUNT( DISTINCT - + col0 ) * + 96 FROM tab1 AS cor0
----
-288

skipif mysql # not compatible
query I rowsort label-6379
SELECT ALL - COUNT ( DISTINCT - + col0 ) * + 96 FROM tab1 AS cor0
----
-288

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 <> col1 * + col1
----

query II rowsort
SELECT - col0 AS col1, col1 * + - col1 FROM tab1 cor0
----
-51
-196
-85
-25
-91
-2209

onlyif mysql # DIV for integer division: 
query I rowsort label-6382
SELECT + col1 DIV + 52 AS col2 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6382
SELECT + col1 / + 52 AS col2 FROM tab2
----
0
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6383
SELECT 44 DIV + col0 col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6383
SELECT 44 / + col0 col1 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 62 IS NULL
----

query I rowsort
SELECT 38 FROM tab1 WHERE NOT ( - col1 NOT BETWEEN col0 AND + - col0 * + 13 )
----

query I rowsort
SELECT + ( - 27 ) FROM tab0, tab1 AS cor0
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a

query I rowsort
SELECT - + ( + 70 ) FROM tab2 AS cor0
----
-70
-70
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6388
SELECT + - col2 AS col2 FROM tab0 cor0 WHERE NOT NULL IN ( col1, ( - col1 ), - ( + col0 ), - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-6388
SELECT + - col2 AS col2 FROM tab0 cor0 WHERE NOT NULL IN ( col1, ( - col1 ), - ( + col0 ), - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6389
SELECT - SUM( ALL col1 ) * MAX( col1 ) AS col0 FROM tab2 AS cor0
----
-15015

skipif mysql # not compatible
query I rowsort label-6389
SELECT - SUM ( ALL col1 ) * MAX ( col1 ) AS col0 FROM tab2 AS cor0
----
-15015

onlyif mysql # DIV for integer division: 
query I rowsort label-6390
SELECT DISTINCT + - 83 DIV 9 * - 32 - col1 AS col1 FROM tab2 cor0
----
211
221
237

skipif mysql # not compatible
query I rowsort label-6390
SELECT DISTINCT + - 83 / 9 * - 32 - col1 AS col1 FROM tab2 cor0
----
211
221
237

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - col2 AND col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 + - col0 * - 6 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + 91 * - - 75 + + col1 FROM tab1 AS cor0
----
-6778
-6811
-6820

onlyif mysql # aggregate syntax: 
query I rowsort label-6394
SELECT DISTINCT - MIN( 70 ) col1 FROM tab0 AS cor0
----
-70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6394
SELECT DISTINCT - MIN ( 70 ) col1 FROM tab0 AS cor0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-6395
SELECT DISTINCT + COUNT( * ) + - 2 AS col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6395
SELECT DISTINCT + COUNT ( * ) + - 2 AS col1 FROM tab1 AS cor0
----
1

query I rowsort
SELECT ALL + 25 + + + 35 - + col0 AS col0 FROM tab1 cor0
----
-25
-31
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 * + ( - col0 ) AS col0, + 3 col2 FROM tab1 AS cor0
----
-4896
3
-5015
3
-6188
3

query I rowsort
SELECT DISTINCT col2 + - + col1 AS col0 FROM tab0 AS cor0
----
-11
-34
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6399
SELECT ALL COUNT( * ) * + - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-6399
SELECT ALL COUNT ( * ) * + - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NULL <> NULL
----
0

query I rowsort
SELECT ALL 23 + - col2 FROM tab2 AS cor0
----
-17
-35
0

query I rowsort
SELECT - + ( - + col0 ) + col1 * col1 - - col1 AS col0 FROM tab2 AS cor0
----
2698
4631
6070

onlyif mysql # aggregate syntax: 
query I rowsort label-6402
SELECT ALL - MIN( - 74 ) + - 12 * + + 15 AS col0 FROM tab0 AS cor0
----
-106

skipif mysql # not compatible
query I rowsort label-6402
SELECT ALL - MIN ( - 74 ) + - 12 * + + 15 AS col0 FROM tab0 AS cor0
----
-106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6403
SELECT - MAX( - CAST( NULL AS SIGNED ) ) + + - COUNT( ALL col1 ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6403
SELECT - MAX ( - CAST ( NULL AS INTEGER ) ) + + - COUNT ( ALL col1 ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT 99 + - - 99 + + + ( - col2 ) AS col1 FROM tab2 AS cor0
----
140
158
175

onlyif mysql # aggregate syntax: 
query I rowsort label-6405
SELECT + MAX( col0 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6405
SELECT + MAX ( col0 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6406
SELECT - COUNT( * ) + COUNT( * ) * - 32 FROM tab1
----
-99

skipif mysql # not compatible
query I rowsort label-6406
SELECT - COUNT ( * ) + COUNT ( * ) * - 32 FROM tab1
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6407
SELECT 91 * - 95 + - COUNT( * ) FROM tab2
----
-8648

skipif mysql # not compatible
query I rowsort label-6407
SELECT 91 * - 95 + - COUNT ( * ) FROM tab2
----
-8648

query I rowsort
SELECT + ( 80 ) + - + 28 FROM tab1
----
52
52
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6409
SELECT DISTINCT COUNT( * ) + - 62 AS col1 FROM tab0
----
-59

skipif mysql # not compatible
query I rowsort label-6409
SELECT DISTINCT COUNT ( * ) + - 62 AS col1 FROM tab0
----
-59

query III rowsort
SELECT * FROM tab1 WHERE + - col0 = ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6411
SELECT ( + + SUM( + col1 ) ) AS col1 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-6411
SELECT ( + + SUM ( + col1 ) ) AS col1 FROM tab0 AS cor0
----
103

query I rowsort
SELECT DISTINCT - 56 FROM tab1 cor0 WHERE NOT col2 BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6413
SELECT DISTINCT + col2 DIV + + col1 - + 23 * - col2 AS col0 FROM tab2 AS cor0
----
1334
529
920

skipif mysql # not compatible
query I rowsort label-6413
SELECT DISTINCT + col2 / + + col1 - + 23 * - col2 AS col0 FROM tab2 AS cor0
----
1334
529
920

onlyif mysql # aggregate syntax: 
query I rowsort label-6414
SELECT DISTINCT + + COUNT( * ) + - 35 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-26

skipif mysql # not compatible
query I rowsort label-6414
SELECT DISTINCT + + COUNT ( * ) + - 35 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6415
SELECT DISTINCT - COUNT( ALL + CAST( - 1 AS SIGNED ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-6415
SELECT DISTINCT - COUNT ( ALL + CAST ( - 1 AS INTEGER ) ) FROM tab2
----
-3

query I rowsort
SELECT DISTINCT + 38 * col2 FROM tab2
----
1520
2204
874

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6417
SELECT - + CAST( - 25 AS SIGNED ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

skipif mysql # not compatible
query I rowsort label-6417
SELECT - + CAST ( - 25 AS INTEGER ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

query I rowsort
SELECT - - 82 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

onlyif mysql # aggregate syntax: 
query I rowsort label-6419
SELECT DISTINCT - SUM( - col1 ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-6419
SELECT DISTINCT - SUM ( - col1 ) FROM tab0 AS cor0
----
103

query I rowsort
SELECT + col1 * + 64 AS col2 FROM tab0 cor0
----
1344
5184
64

onlyif mysql # DIV for integer division: 
query I rowsort label-6421
SELECT - + col2 DIV + 40 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-6421
SELECT - + col2 / + 40 FROM tab0 AS cor0
----
-1
-2
0

query I rowsort
SELECT + 11 * - col0 AS col2 FROM tab1 AS cor0
----
-1001
-561
-935

query I rowsort
SELECT DISTINCT - + 35 AS col1 FROM tab0 AS cor0 WHERE col2 + + col1 + + - col1 >= + - col0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-6424
SELECT DISTINCT MIN( DISTINCT + col0 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-6424
SELECT DISTINCT MIN ( DISTINCT + col0 ) FROM tab2 AS cor0
----
46

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col0, 37 )
----

query I rowsort
SELECT ALL + 88 AS col0 FROM tab1 AS cor0 WHERE NOT ( + col1 ) + + col0 / + 6 <= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6427
SELECT - COUNT( * ) DIV + 7 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6427
SELECT - COUNT ( * ) / + 7 AS col0 FROM tab2
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6428
SELECT * FROM tab0 WHERE NOT NULL >= + 51 + - col2 + + ( + col0 ) - + col2 / - 72 * + CAST( 28 AS DECIMAL ) + - col0 * - col0
----

skipif mysql # not compatible
query III rowsort label-6428
SELECT * FROM tab0 WHERE NOT NULL >= + 51 + - col2 + + ( + col0 ) - + col2 / - 72 * + CAST ( 28 AS REAL ) + - col0 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6429
SELECT MAX( + 26 ) AS col0 FROM tab1
----
26

skipif mysql # not compatible
query I rowsort label-6429
SELECT MAX ( + 26 ) AS col0 FROM tab1
----
26

query I rowsort
SELECT DISTINCT 39 * + col1 FROM tab0
----
3159
39
819

query I rowsort
SELECT 46 AS col1 FROM tab0 AS cor0 WHERE NOT NULL <> 41 * + + col1 * - 77
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6432
SELECT + MIN( ALL - 13 ) FROM tab1 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-6432
SELECT + MIN ( ALL - 13 ) FROM tab1 AS cor0
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-6433
SELECT ALL col2 * - col1 + col1 DIV - - 61 + - col0 + 41 FROM tab2 AS cor0
----
-1178
-3102
-3919

skipif mysql # not compatible
query I rowsort label-6433
SELECT ALL col2 * - col1 + col1 / - - 61 + - col0 + 41 FROM tab2 AS cor0
----
-1178
-3102
-3919

onlyif mysql # aggregate syntax: 
query I rowsort label-6434
SELECT ALL COUNT( * ) * + - 53 FROM tab1
----
-159

skipif mysql # not compatible
query I rowsort label-6434
SELECT ALL COUNT ( * ) * + - 53 FROM tab1
----
-159

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6435
SELECT col2 + + CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6435
SELECT col2 + + CAST ( NULL AS REAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 29 * - col1 FROM tab0 AS cor0
----
-2349
-29
-609

onlyif mysql # aggregate syntax: 
query I rowsort label-6437
SELECT ALL - COUNT( * ) + - 63 + 1 FROM tab1 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-6437
SELECT ALL - COUNT ( * ) + - 63 + 1 FROM tab1 AS cor0
----
-65

query I rowsort
SELECT DISTINCT 92 + 77 - + col1 * - col1 * col1 * - 34 FROM tab0 AS cor0
----
-18068825
-314705
135

onlyif mysql # aggregate syntax: 
query I rowsort label-6439
SELECT DISTINCT + 5 + - COUNT( * ) FROM tab0 cor0
----
2

skipif mysql # not compatible
query I rowsort label-6439
SELECT DISTINCT + 5 + - COUNT ( * ) FROM tab0 cor0
----
2

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col1 + - ( - + col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 43 * 46 FROM tab1
----
1978

query I rowsort
SELECT + col2 - - 19 AS col1 FROM tab2
----
42
59
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6443
SELECT ALL + COUNT( * ) - + 89 AS col1 FROM tab0
----
-86

skipif mysql # not compatible
query I rowsort label-6443
SELECT ALL + COUNT ( * ) - + 89 AS col1 FROM tab0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-6444
SELECT + COUNT( * ) + 9 * + + MIN( ALL - + col2 ) * + 71 col1 FROM tab2
----
-37059

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6444
SELECT + COUNT ( * ) + 9 * + + MIN ( ALL - + col2 ) * + 71 col1 FROM tab2
----
-37059

query II rowsort
SELECT + col2 + - 56 + - + 54, + 30 AS col1 FROM tab2
----
-52
30
-70
30
-87
30

query I rowsort
SELECT 11 + - col0 AS col1 FROM tab1 AS cor0
----
-40
-74
-80

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 83 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT ( + 61 ) FROM tab2 AS cor0
----
61

query I rowsort
SELECT ( + 86 ) FROM tab2
----
86
86
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6450
SELECT COUNT( - 5 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6450
SELECT COUNT ( - 5 ) AS col1 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6451
SELECT ALL - CAST( 44 AS SIGNED ) col0, 80 * col1 FROM tab0 cor0
----
-44
1680
-44
6480
-44
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6451
SELECT ALL - CAST ( 44 AS INTEGER ) col0, 80 * col1 FROM tab0 cor0
----
-44
1680
-44
6480
-44
80

onlyif mysql # DIV for integer division: 
query I rowsort label-6452
SELECT + col2 DIV 47 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6452
SELECT + col2 / 47 FROM tab2
----
0
0
1

query I rowsort
SELECT DISTINCT + 0 AS col2 FROM tab0
----
0

query I rowsort
SELECT DISTINCT - 43 * - 29 AS col1 FROM tab2
----
1247

onlyif mysql # aggregate syntax: 
query I rowsort label-6455
SELECT ALL COUNT( * ) col0 FROM tab1 WHERE NULL < NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6455
SELECT ALL COUNT ( * ) col0 FROM tab1 WHERE NULL < NULL
----
0

query I rowsort
SELECT col2 + - 5 * col1 AS col1 FROM tab1
----
-167
26
34

query I rowsort
SELECT ALL - 49 * - col0 * 7 * - col0 AS col2 FROM tab1
----
-2478175
-2840383
-892143

query I rowsort
SELECT DISTINCT + col0 * + + 33 FROM tab1
----
1683
2805
3003

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6459
SELECT DISTINCT CAST( AVG ( + col1 ) AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE - col1 IS NOT NULL
----
34

skipif mysql # not compatible
query I rowsort label-6459
SELECT DISTINCT CAST ( AVG ( + col1 ) AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE - col1 IS NOT NULL
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-6460
SELECT - col0 DIV - - col1 AS col1 FROM tab0 WHERE - col1 BETWEEN - 13 * + 30 AND ( - col2 )
----
-4
0

skipif mysql # not compatible
query I rowsort label-6460
SELECT - col0 / - - col1 AS col1 FROM tab0 WHERE - col1 BETWEEN - 13 * + 30 AND ( - col2 )
----
-4
0

query I rowsort
SELECT - 51 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 08d3853e39924d3c636260a6dd856837

query III rowsort
SELECT ALL * FROM tab1 WHERE + - col2 * col0 <= NULL
----

query I rowsort
SELECT ALL + 0 + - 34 * + 70 * - - ( col0 ) + + col0 FROM tab1 cor0
----
-121329
-202215
-216489

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + col2 + - col2 col2 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT - 80 + col0 - - col2 AS col2 FROM tab1 AS cor0
----
64
67
79

query I rowsort
SELECT ALL + + 43 + - col0 * + col0 FROM tab0 cor0
----
-182
-7526
-9366

query I rowsort
SELECT ALL + + col1 + + - 96 + + col1 AS col2 FROM tab1 AS cor0
----
-2
-68
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-6468
SELECT - 88 + + + col2 DIV - - 52 + - - col1 FROM tab2 AS cor0
----
-11
-20
-37

skipif mysql # not compatible
query I rowsort label-6468
SELECT - 88 + + + col2 / - - 52 + - - col1 FROM tab2 AS cor0
----
-11
-20
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-6469
SELECT ALL - COUNT( * ) * AVG ( ALL + 37 ) * + MAX( - 50 ) + - + MAX( ALL + col0 ) FROM tab0 cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6469
SELECT ALL - COUNT ( * ) * AVG ( ALL + 37 ) * + MAX ( - 50 ) + - + MAX ( ALL + col0 ) FROM tab0 cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ALL col0 + - 55 FROM tab1
----
-4
30
36

query I rowsort
SELECT DISTINCT + col2 * - 70 - - col0 AS col2 FROM tab0
----
-3275
-613
-6833

query III rowsort
SELECT * FROM tab0 WHERE ( - 27 ) = NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - col2 ) NOT BETWEEN + col2 AND + ( + col2 )
----

query I rowsort
SELECT DISTINCT + 48 + col2 AS col0 FROM tab0
----
147
58
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6475
SELECT DISTINCT ( - COUNT( * ) ) DIV 15 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6475
SELECT DISTINCT ( - COUNT ( * ) ) / 15 AS col0 FROM tab2
----
0

query I rowsort
SELECT col0 AS col0 FROM tab0 WHERE 70 >= ( + + col2 * + col0 - - 76 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6477
SELECT DISTINCT ( 81 ) - + ( - - COUNT( - col1 ) ) + COUNT( * ) AS col0 FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-6477
SELECT DISTINCT ( 81 ) - + ( - - COUNT ( - col1 ) ) + COUNT ( * ) AS col0 FROM tab1
----
81

query I rowsort
SELECT DISTINCT - 22 - + col1 - + - ( - 81 ) FROM tab1
----
-108
-117
-150

onlyif mysql # DIV for integer division: 
query II rowsort label-6479
SELECT - + col2 DIV + col2 AS col2, col0 FROM tab0 AS cor0
----
-1
15
-1
87
-1
97

skipif mysql # not compatible
query II rowsort label-6479
SELECT - + col2 / + col2 AS col2, col0 FROM tab0 AS cor0
----
-1
15
-1
87
-1
97

onlyif mysql # DIV for integer division: 
query I rowsort label-6480
SELECT col0 DIV + - col2 col1 FROM tab2 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6480
SELECT col0 / + - col2 col1 FROM tab2 AS cor0
----
-1
-1
-2

query I rowsort
SELECT - col0 * - + ( col1 ) + ( + 20 ) AS col2 FROM tab2 AS cor0
----
2366
4948
5045

query III rowsort
SELECT * FROM tab1 WHERE NOT - 7 + 60 * + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE 29 < + - col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 * 28 - + - 7 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6485
SELECT + + SUM( + col2 ) AS col0 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-6485
SELECT + + SUM ( + col2 ) AS col0 FROM tab0 AS cor0
----
156

query II rowsort
SELECT 65 AS col2, - col2 + - - col1 FROM tab2 AS cor0
----
65
28
65
37
65
9

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 7 BETWEEN NULL AND 69 * col0 / + col0 + - 84 - + ( - 28 ) * + + col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6488
SELECT 27, COUNT( * ) AS col0 FROM tab0 AS cor0
----
27
3

skipif mysql # not compatible
query II rowsort label-6488
SELECT 27, COUNT ( * ) AS col0 FROM tab0 AS cor0
----
27
3

query II rowsort
SELECT DISTINCT + - 65 AS col2, + col0 AS col1 FROM tab0 AS cor0
----
-65
15
-65
87
-65
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6490
SELECT DISTINCT SUM( - - 92 ) AS col0 FROM tab2
----
276

skipif mysql # not compatible
query I rowsort label-6490
SELECT DISTINCT SUM ( - - 92 ) AS col0 FROM tab2
----
276

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6491
SELECT CAST( NULL AS SIGNED ) / + col1 * + 41 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6491
SELECT CAST ( NULL AS INTEGER ) / + col1 * + 41 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 * - 17 FROM tab1
----
-1445
-1547
-867

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 * + 61 col1 FROM tab2
----
129076
249856
343125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6494
SELECT CAST( ( + COUNT( * ) ) AS SIGNED ) * - - SUM( ALL col0 ) * COUNT( * ) + - + COUNT( * ) + ( + MIN( DISTINCT col1 ) ) - + COUNT( ALL + + 66 ) FROM tab1
----
2042

skipif mysql # not compatible
query I rowsort label-6494
SELECT CAST ( ( + COUNT ( * ) ) AS INTEGER ) * - - SUM ( ALL col0 ) * COUNT ( * ) + - + COUNT ( * ) + ( + MIN ( DISTINCT col1 ) ) - + COUNT ( ALL + + 66 ) FROM tab1
----
2042

query I rowsort
SELECT DISTINCT - col1 + - + col2 AS col2 FROM tab2 AS cor0
----
-117
-125
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-6496
SELECT DISTINCT SUM( 71 ) AS col0 FROM tab0 AS cor0 WHERE ( 52 + - + 51 ) >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6496
SELECT DISTINCT SUM ( 71 ) AS col0 FROM tab0 AS cor0 WHERE ( 52 + - + 51 ) >= NULL
----
NULL

query I rowsort
SELECT - + col0 - + ( - 31 ) + - 21 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col1 * - - col2 + + - col1 AS col0 FROM tab2
----
-1224
-3157
-3953

query I rowsort
SELECT 81 * - col1 FROM tab0
----
-1701
-6561
-81

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NULL ) > + - ( + + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6501
SELECT ALL + CAST( - + col2 AS SIGNED ) FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-6501
SELECT ALL + CAST ( - + col2 AS INTEGER ) FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT DISTINCT + 0 - col0 - - + col1 AS col2 FROM tab2 AS cor0
----
-8
13
5

query I rowsort
SELECT DISTINCT - col0 + + + 38 AS col1 FROM tab2 AS cor0
----
-26
-37
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-6504
SELECT - COUNT( * ) - 92 FROM tab2
----
-95

skipif mysql # not compatible
query I rowsort label-6504
SELECT - COUNT ( * ) - 92 FROM tab2
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-6505
SELECT ALL - ( + COUNT( * ) ) + - ( + COUNT( * ) ) FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-6505
SELECT ALL - ( + COUNT ( * ) ) + - ( + COUNT ( * ) ) FROM tab1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-6506
SELECT COUNT( DISTINCT - 28 ) + 88 FROM tab2
----
89

skipif mysql # not compatible
query I rowsort label-6506
SELECT COUNT ( DISTINCT - 28 ) + 88 FROM tab2
----
89

query II rowsort
SELECT ALL + col2 - + col0 + + - col0 - + col2, + ( + col1 ) FROM tab2
----
-128
77
-150
67
-92
51

onlyif mysql # DIV for integer division: 
query I rowsort label-6508
SELECT + col2 DIV + + col2 + col1 * + - 11 FROM tab0
----
-10
-230
-890

skipif mysql # not compatible
query I rowsort label-6508
SELECT + col2 / + + col2 + col1 * + - 11 FROM tab0
----
-10
-230
-890

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 BETWEEN ( col0 ) AND NULL
----
87
21
10
97
1
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 1 AS col0, - col1 col1 FROM tab1 AS cor0
----
1
-14
1
-47
1
-5

query I rowsort
SELECT ALL - + col2 * col1 * - col2 AS col2 FROM tab1 cor0
----
129024
17405
217328

onlyif mysql # aggregate syntax: 
query I rowsort label-6512
SELECT COUNT( * ) col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6512
SELECT COUNT ( * ) col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT DISTINCT 42 AS col1 FROM tab1, tab2 cor0
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6514
SELECT DISTINCT - MAX( DISTINCT + - col2 ) DIV - MAX( + col1 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6514
SELECT DISTINCT - MAX ( DISTINCT + - col2 ) / - MAX ( + col1 ) FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 40 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col0 * - col0 * - + 69 FROM tab0
----
-15525
-522261
-649221

query I rowsort
SELECT 19 * - ( + col1 ) + - - col0 + + 67 * - col2 FROM tab2
----
-2464
-4079
-5084

query I rowsort
SELECT DISTINCT - col2 + - col0 FROM tab2 WHERE NOT col0 BETWEEN 36 AND - + col0 - + 25
----
-104
-133
-69

query I rowsort
SELECT - col1 + - - col0 * + + col1 AS col2 FROM tab1
----
420
4230
700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 56 + + col1 * + col1 col0 FROM tab0
----
497
57
6617

query I rowsort
SELECT DISTINCT ( - + 10 ) * col1 * - col2 * col1 AS col1 FROM tab1
----
14750
1502120
188160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 AS col2, - col0 col2 FROM tab1
----
14
-51
47
-91
5
-85

query II rowsort
SELECT + 48 AS col1, + 42 + - 52 * - col0 AS col0 FROM tab1 AS cor0
----
48
2694
48
4462
48
4774

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 76 + col1 AS col0, + col0 col2 FROM tab1
----
-29
91
-62
51
-71
85

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 + + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 64 + + col0 FROM tab0 cor0
----
-49
23
33

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE + col2 <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6528
SELECT 35 + + MAX( ALL col0 ) - - COUNT( DISTINCT - col1 ) * AVG ( ALL 41 ) * - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6528
SELECT 35 + + MAX ( ALL col0 ) - - COUNT ( DISTINCT - col1 ) * AVG ( ALL 41 ) * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + - col2 + - + 90 + - col2 * col1 * + + col0 AS col1 FROM tab2 AS cor0
----
-197250
-291598
-54071

query I rowsort
SELECT col2 + + col1 * - 32 AS col0 FROM tab0 AS cor0
----
-2545
-662
67

query I rowsort
SELECT ALL - ( + - col1 ) - col2 FROM tab0 AS cor0 WHERE + col0 = col1 * - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6532
SELECT + + CAST( NULL AS SIGNED ) + - 14 + + col0 FROM tab0 AS cor0 WHERE - col0 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6532
SELECT + + CAST ( NULL AS INTEGER ) + - 14 + + col0 FROM tab0 AS cor0 WHERE - col0 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6533
SELECT ALL - COUNT( col1 ) + - COUNT( * ) + - - 44 * + 20 FROM tab2
----
874

skipif mysql # not compatible
query I rowsort label-6533
SELECT ALL - COUNT ( col1 ) + - COUNT ( * ) + - - 44 * + 20 FROM tab2
----
874

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6534
SELECT ALL * FROM tab1 WHERE + 83 + + + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6534
SELECT ALL * FROM tab1 WHERE + 83 + + + CAST ( NULL AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + col0 * - - ( - col2 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6536
SELECT + SUM( DISTINCT - - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6536
SELECT + SUM ( DISTINCT - - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6537
SELECT DISTINCT - - 65 + MAX( + col2 ) * + 10 FROM tab0 WHERE + - col0 - + - ( + col1 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6537
SELECT DISTINCT - - 65 + MAX ( + col2 ) * + 10 FROM tab0 WHERE + - col0 - + - ( + col1 ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6538
SELECT COUNT( * ) FROM tab0 WHERE NOT - - col2 < + 97 * - 21 * - + col2
----
0

skipif mysql # not compatible
query I rowsort label-6538
SELECT COUNT ( * ) FROM tab0 WHERE NOT - - col2 < + 97 * - 21 * - + col2
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT 16 * + 66 AS col1 FROM tab2
----
1056
1056
1056

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + col0 NOT IN ( - - col2 * + col2 )
----

query I rowsort
SELECT + ( - ( - col0 ) ) AS col0 FROM tab2 AS cor0
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 57 col1 FROM tab1 AS cor0
----
-57
-57
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-6544
SELECT ALL - COUNT( * ) * + 16 FROM tab1 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-6544
SELECT ALL - COUNT ( * ) * + 16 FROM tab1 AS cor0
----
-48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col0, 79 - + + 57 AS col1 FROM tab0 AS cor0
----
-1
22
-21
22
-81
22

query I rowsort
SELECT + 21 AS col0 FROM tab0 cor0
----
21
21
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6547
SELECT ALL + MIN( + col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6547
SELECT ALL + MIN ( + col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6548
SELECT DISTINCT - SUM( + + col2 ) AS col2 FROM tab1 cor0
----
-223

skipif mysql # not compatible
query I rowsort label-6548
SELECT DISTINCT - SUM ( + + col2 ) AS col2 FROM tab1 cor0
----
-223

query I rowsort
SELECT + 72 * + + col0 * + 3 * - - ( + - col1 ) AS col2 FROM tab0
----
-20952
-262440
-394632

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6550
SELECT - MIN( - col0 ) DIV + - COUNT( * ) AS col1 FROM tab0
----
-32

skipif mysql # not compatible
query I rowsort label-6550
SELECT - MIN ( - col0 ) / + - COUNT ( * ) AS col1 FROM tab0
----
-32

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 29 + - + col0 < + ( - - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6552
SELECT + MAX( ALL col0 ) * - - 56 FROM tab2
----
4200

skipif mysql # not compatible
query I rowsort label-6552
SELECT + MAX ( ALL col0 ) * - - 56 FROM tab2
----
4200

onlyif mysql # aggregate syntax: 
query I rowsort label-6553
SELECT - COUNT( * ) * + + ( - 45 ) AS col0 FROM tab2
----
135

skipif mysql # not compatible
query I rowsort label-6553
SELECT - COUNT ( * ) * + + ( - 45 ) AS col0 FROM tab2
----
135

query I rowsort
SELECT - - col1 + + + col1 FROM tab0 cor0
----
162
2
42

onlyif mysql # aggregate syntax: 
query I rowsort label-6555
SELECT - COUNT( ALL col0 ) + + COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6555
SELECT - COUNT ( ALL col0 ) + + COUNT ( * ) FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 54 + 93, col1 col2 FROM tab1 AS cor0
----
147
14
147
47
147
5

query I rowsort
SELECT DISTINCT - + col0 FROM tab0 AS cor0 WHERE col2 < + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6558
SELECT ALL - + 24, COUNT( * ) AS col0 FROM tab2 WHERE NULL <> NULL
----
-24
0

skipif mysql # not compatible
query II rowsort label-6558
SELECT ALL - + 24, COUNT ( * ) AS col0 FROM tab2 WHERE NULL <> NULL
----
-24
0

query I rowsort
SELECT ALL 24 - col2 + 74 + + col1 AS col0 FROM tab0
----
0
109
132

query I rowsort
SELECT + col0 * - col1 * - 24 * + col1 AS col0 FROM tab2
----
2871504
8080200
9106944

query I rowsort
SELECT + 35 * + + col2 FROM tab2 AS cor0
----
1400
2030
805

query I rowsort
SELECT ALL ( - col0 ) + 80 AS col2 FROM tab2 AS cor0 WHERE col2 * + - col1 * - 21 = NULL
----

query I rowsort
SELECT - - 90 - + col0 AS col1 FROM tab0 cor0
----
-7
3
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6564
SELECT ALL + SUM( col0 ) AS col0 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-6564
SELECT ALL + SUM ( col0 ) AS col0 FROM tab1 AS cor0
----
227

query I rowsort
SELECT - col2 AS col1 FROM tab0 WHERE NOT NULL <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-6566
SELECT ALL * FROM tab1 WHERE - + CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) BETWEEN 93 AND - 38
----

skipif mysql # not compatible
query III rowsort label-6566
SELECT ALL * FROM tab1 WHERE - + CAST ( CAST ( NULL AS INTEGER ) AS REAL ) BETWEEN 93 AND - 38
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6567
SELECT ALL + SUM( DISTINCT + 74 ) FROM tab1
----
74

skipif mysql # not compatible
query I rowsort label-6567
SELECT ALL + SUM ( DISTINCT + 74 ) FROM tab1
----
74

query I rowsort
SELECT ( 55 ) AS col0 FROM tab2
----
55
55
55

query I rowsort
SELECT DISTINCT col2 * - 12 + + ( - ( + col1 ) ) + - - col0 AS col2 FROM tab0 AS cor0
----
-1092
-54
-630

query I rowsort
SELECT ALL - ( + ( - - col1 ) ) AS col2 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6571
SELECT - col1 + - + 48 AS col2 FROM tab0 WHERE NOT - ( + 62 ) * + - col0 * + col0 + + - 36 * - col2 + + CAST( NULL AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query I rowsort label-6571
SELECT - col1 + - + 48 AS col2 FROM tab0 WHERE NOT - ( + 62 ) * + - col0 * + col0 + + - 36 * - col2 + + CAST ( NULL AS INTEGER ) >= NULL
----

query I rowsort
SELECT DISTINCT col1 * col1 * + - 5 AS col1 FROM tab0
----
-2205
-32805
-5

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> - + 6
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) < + + col2
----

query I rowsort
SELECT + - AVG ( col2 ) FROM tab0 AS cor0 WHERE + col0 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6576
SELECT DISTINCT 17 / col0 - - CAST( NULL AS SIGNED ) - - col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6576
SELECT DISTINCT 17 / col0 - - CAST ( NULL AS INTEGER ) - - col2 FROM tab2 cor0
----
NULL

query I rowsort
SELECT 57 FROM tab2 AS cor0 WHERE + col2 IS NOT NULL
----
57
57
57

query I rowsort
SELECT + 98 + - col1 FROM tab1 cor0
----
51
84
93

query I rowsort
SELECT - col1 + 55 FROM tab2 AS cor0
----
-12
-22
4

query I rowsort
SELECT - col0 + - 62 FROM tab1
----
-113
-147
-153

query I rowsort
SELECT DISTINCT ( - 89 ) + + col1 FROM tab0
----
-68
-8
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-6582
SELECT ALL - 71 * + COUNT( * ) col0 FROM tab1
----
-213

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6582
SELECT ALL - 71 * + COUNT ( * ) col0 FROM tab1
----
-213

query I rowsort
SELECT DISTINCT + 66 * col1 FROM tab1 WHERE NOT ( NULL IS NOT NULL )
----
3102
330
924

query I rowsort
SELECT 41 + - col0 + - col2 FROM tab1
----
-103
-106
-118

query I rowsort
SELECT ALL col1 + + 61 AS col1 FROM tab2
----
112
128
138

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6586
SELECT DISTINCT col1 AS col2, - CAST( NULL AS SIGNED ) + + col2 FROM tab2
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-6586
SELECT DISTINCT col1 AS col2, - CAST ( NULL AS INTEGER ) + + col2 FROM tab2
----
51
NULL
67
NULL
77
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 NOT BETWEEN col2 + - col2 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 91 * - col2 AS col1 FROM tab0 AS cor0
----
-4277
-9009
-910

query I rowsort
SELECT DISTINCT + col2 + + + col2 FROM tab2 AS cor0
----
116
46
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6590
SELECT + + MIN( - 3 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6590
SELECT + + MIN ( - 3 ) AS col1 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6591
SELECT ALL - CAST( + col2 AS SIGNED ) AS col1, 26 DIV + + 49 + col1 + + + col1 AS col0 FROM tab0
----
-10
42
-47
162
-99
2

skipif mysql # not compatible
query II rowsort label-6591
SELECT ALL - CAST ( + col2 AS INTEGER ) AS col1, 26 / + + 49 + col1 + + + col1 AS col0 FROM tab0
----
-10
42
-47
162
-99
2

query I rowsort
SELECT - - col0 * + 85 - - 52 FROM tab1 AS cor0
----
4387
7277
7787

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN col0 AND 16 / + col2 OR ( + col0 ) * - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6594
SELECT ALL + 17 * - + COUNT( * ) AS col2 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-6594
SELECT ALL + 17 * - + COUNT ( * ) AS col2 FROM tab2
----
-51

query II rowsort
SELECT + 48, - col1 AS col2 FROM tab2 AS cor0
----
48
-51
48
-67
48
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 33 col2 FROM tab2 AS cor0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-6597
SELECT DISTINCT + MAX( + col2 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
96

skipif mysql # not compatible
query I rowsort label-6597
SELECT DISTINCT + MAX ( + col2 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
96

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6599
SELECT ALL + - col0 AS col2 FROM tab1 WHERE NOT + 2 * 68 * + CAST( col2 AS SIGNED ) + col1 * - - col2 + + col1 <> NULL
----

skipif mysql # not compatible
query I rowsort label-6599
SELECT ALL + - col0 AS col2 FROM tab1 WHERE NOT + 2 * 68 * + CAST ( col2 AS INTEGER ) + col1 * - - col2 + + col1 <> NULL
----

query I rowsort
SELECT ALL - 76 - + 70 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 31437eb613887b94a8e2c1578d051782

onlyif mysql # aggregate syntax: 
query I rowsort label-6601
SELECT 15 + + COUNT( ALL 48 ) FROM tab1
----
18

skipif mysql # not compatible
query I rowsort label-6601
SELECT 15 + + COUNT ( ALL 48 ) FROM tab1
----
18

query I rowsort
SELECT DISTINCT + + col2 * - col2 + - 98 FROM tab2 AS cor0
----
-1698
-3462
-627

onlyif mysql # DIV for integer division: 
query I rowsort label-6603
SELECT - col0 DIV + - 29 FROM tab2 AS cor0
----
1
2
2

skipif mysql # not compatible
query I rowsort label-6603
SELECT - col0 / + - 29 FROM tab2 AS cor0
----
1
2
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6604
SELECT DISTINCT - - col1 * + 81 * - CAST( NULL AS SIGNED ) * - 59 + col1 + - + col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6604
SELECT DISTINCT - - col1 * + 81 * - CAST ( NULL AS INTEGER ) * - 59 + col1 + - + col1 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 + ( + col0 ) col2 FROM tab2 cor0
----
-13
-5
8

query I rowsort
SELECT DISTINCT col2 + - + col2 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT - ( - - 22 ) * - 63 AS col0 FROM tab1 AS cor0
----
1386

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6608
SELECT CAST( NULL AS SIGNED ) FROM tab2 WHERE col0 * - - ( 8 ) >= NULL
----

skipif mysql # not compatible
query I rowsort label-6608
SELECT CAST ( NULL AS INTEGER ) FROM tab2 WHERE col0 * - - ( 8 ) >= NULL
----

query I rowsort
SELECT ALL - col1 + + 53 FROM tab0
----
-28
32
52

query I rowsort
SELECT DISTINCT col2 + + col2 * - - 26 FROM tab2 WHERE NOT - col0 * - col0 < + col0
----
1080
1566
621

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6611
SELECT COUNT( * ) - + COUNT( + col0 ) - - COUNT( * ) DIV 72 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6611
SELECT COUNT ( * ) - + COUNT ( + col0 ) - - COUNT ( * ) / 72 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6612
SELECT + 29 * - 44 + + COUNT( ALL + + 23 ) FROM tab1
----
-1273

skipif mysql # not compatible
query I rowsort label-6612
SELECT + 29 * - 44 + + COUNT ( ALL + + 23 ) FROM tab1
----
-1273

query III rowsort
SELECT * FROM tab0 WHERE - col0 * + - 71 * - + 95 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + - 72 AS col0 FROM tab0 AS cor0 WHERE ( NOT col2 * 5 <= + col1 )
----
-72
-72
-72

query I rowsort
SELECT - col0 * + - col0 + + col0 FROM tab0 AS cor0
----
240
7656
9506

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <= + 6 / - - col1 * col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6617
SELECT DISTINCT - + col0 DIV + - col1 FROM tab1 AS cor0
----
1
17
3

skipif mysql # not compatible
query I rowsort label-6617
SELECT DISTINCT - + col0 / + - col1 FROM tab1 AS cor0
----
1
17
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 0 < - col2 + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 58 * 33 FROM tab1 AS cor0
----
1914
1914
1914

onlyif mysql # aggregate syntax: 
query I rowsort label-6620
SELECT - MIN( DISTINCT col0 ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-6620
SELECT - MIN ( DISTINCT col0 ) FROM tab2
----
-46

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 15 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 > - 31
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6623
SELECT + - 42 DIV - MIN( + + ( col0 ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6623
SELECT + - 42 / - MIN ( + + ( col0 ) ) FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6624
SELECT DISTINCT ( - 75 ) DIV + + col0 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-6624
SELECT DISTINCT ( - 75 ) / + + col0 FROM tab1 AS cor0
----
-1
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6625
SELECT DISTINCT + + 81 + - + AVG ( ALL 52 ) / COUNT( * ) + + SUM( - - col0 ) + - 66 - CAST( NULL AS SIGNED ) - + - 26 * - COUNT( * ) * + 85 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6625
SELECT DISTINCT + + 81 + - + AVG ( ALL 52 ) / COUNT ( * ) + + SUM ( - - col0 ) + - 66 - CAST ( NULL AS INTEGER ) - + - 26 * - COUNT ( * ) * + 85 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + 84 * col1 * col1 * - + col0 * + + 71 AS col2 FROM tab0
----
-228820788
-578508
-586947060

onlyif mysql # DIV for integer division: 
query I rowsort label-6627
SELECT ALL + + col0 DIV + 36 + + col0 + + - col1 * + 46 FROM tab0 cor0
----
-3711
-877
53

skipif mysql # not compatible
query I rowsort label-6627
SELECT ALL + + col0 / + 36 + + col0 + + - col1 * + 46 FROM tab0 cor0
----
-3711
-877
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( + - col0 ) col2 FROM tab0 AS cor0
----
15
87
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 + - 72 = + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6630
SELECT 43 + + 55 - - COUNT( * ) AS col0 FROM tab0 AS cor0
----
101

skipif mysql # not compatible
query I rowsort label-6630
SELECT 43 + + 55 - - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
101

query I rowsort
SELECT DISTINCT - - 57 * + 21 / col1 * - ( - 37 ) AS col1 FROM tab1 WHERE NOT NULL BETWEEN + 8 AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - col2 NOT IN ( - + col1, 12 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6633
SELECT 92 + - MIN( DISTINCT - - col0 ) FROM tab1
----
41

skipif mysql # not compatible
query I rowsort label-6633
SELECT 92 + - MIN ( DISTINCT - - col0 ) FROM tab1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6634
SELECT COUNT( * ) + 76 FROM tab2
----
79

skipif mysql # not compatible
query I rowsort label-6634
SELECT COUNT ( * ) + 76 FROM tab2
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-6635
SELECT ALL ( + col1 ) DIV - ( + col2 ) + 13 + + col1 AS col0 FROM tab1
----
18
27
60

skipif mysql # not compatible
query I rowsort label-6635
SELECT ALL ( + col1 ) / - ( + col2 ) + 13 + + col1 AS col0 FROM tab1
----
18
27
60

query II rowsort
SELECT DISTINCT col1 + + + col1 AS col0, 39 AS col0 FROM tab0 AS cor0
----
162
39
2
39
42
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + 95 col1 FROM tab1 AS cor0
----
100
109
142

onlyif mysql # aggregate syntax: 
query I rowsort label-6638
SELECT + + MAX( ( + 32 ) ) - - MAX( + col1 ) AS col2 FROM tab1 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-6638
SELECT + + MAX ( ( + 32 ) ) - - MAX ( + col1 ) AS col2 FROM tab1 AS cor0
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6639
SELECT CAST( - 90 AS SIGNED ) FROM tab1
----
-90
-90
-90

skipif mysql # not compatible
query I rowsort label-6639
SELECT CAST ( - 90 AS INTEGER ) FROM tab1
----
-90
-90
-90

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6640
SELECT * FROM tab0 WHERE NOT - + CAST( NULL AS SIGNED ) * + + 33 + + col2 * + 48 / + col1 - - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6640
SELECT * FROM tab0 WHERE NOT - + CAST ( NULL AS INTEGER ) * + + 33 + + col2 * + 48 / + col1 - - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 78 FROM tab1 AS cor0 WHERE NOT NULL <= + col2
----

query II rowsort
SELECT ALL - 7 AS col1, 10 + + col0 FROM tab2 AS cor0
----
-7
56
-7
74
-7
85

query I rowsort
SELECT ALL 32 * col2 FROM tab1 AS cor0
----
1888
2176
3072

query II rowsort
SELECT DISTINCT col1, + 51 * + col1 * + col0 AS col0 FROM tab1 AS cor0
----
14
36414
47
218127
5
21675

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6645
SELECT + 45 * - + col1 * CAST( + - col0 AS SIGNED ) FROM tab1 AS cor0
----
19125
192465
32130

skipif mysql # not compatible
query I rowsort label-6645
SELECT + 45 * - + col1 * CAST ( + - col0 AS INTEGER ) FROM tab1 AS cor0
----
19125
192465
32130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6646
SELECT ALL + + 40 * + CAST( + col1 AS SIGNED ) + col1 FROM tab0 AS cor0
----
3321
41
861

skipif mysql # not compatible
query I rowsort label-6646
SELECT ALL + + 40 * + CAST ( + col1 AS INTEGER ) + col1 FROM tab0 AS cor0
----
3321
41
861

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 + - + col1 IS NOT NULL
----

query I rowsort
SELECT - col2 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( - col1, + col2 + 42, + col0 )
----

query I rowsort
SELECT + 63 + + col2 FROM tab0 AS cor0 WHERE NOT + col2 IS NULL
----
110
162
73

onlyif mysql # DIV for integer division: 
query I rowsort label-6650
SELECT + 80 DIV - 97 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6650
SELECT + 80 / - 97 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6651
SELECT DISTINCT - MAX( + col0 ) * + + COUNT( * ) AS col0 FROM tab0
----
-291

skipif mysql # not compatible
query I rowsort label-6651
SELECT DISTINCT - MAX ( + col0 ) * + + COUNT ( * ) AS col0 FROM tab0
----
-291

query I rowsort
SELECT + + col0 * + + col2 AS col2 FROM tab2 AS cor0
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query II rowsort label-6653
SELECT COUNT( * ) AS col0, + ( COUNT( * ) ) col2 FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6653
SELECT COUNT ( * ) AS col0, + ( COUNT ( * ) ) col2 FROM tab0 AS cor0
----
3
3

query II rowsort
SELECT - col2 AS col1, - col0 * + 1 AS col2 FROM tab0 AS cor0
----
-10
-87
-47
-15
-99
-97

query I rowsort
SELECT - col2 * col2 + - + col2 AS col2 FROM tab2
----
-1640
-3422
-552

query I rowsort
SELECT ALL - + col2 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6657
SELECT - MIN( ALL - ( - col1 ) ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-6657
SELECT - MIN ( ALL - ( - col1 ) ) FROM tab0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6658
SELECT + + CAST( - - col0 AS SIGNED ) * - col0 + + - 55 FROM tab2 AS cor0
----
-2171
-4151
-5680

skipif mysql # not compatible
query I rowsort label-6658
SELECT + + CAST ( - - col0 AS INTEGER ) * - col0 + + - 55 FROM tab2 AS cor0
----
-2171
-4151
-5680

query I rowsort
SELECT ALL 40 + + - ( - col0 ) FROM tab2 AS cor0
----
104
115
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6660
SELECT DISTINCT - + COUNT( * ) + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6660
SELECT DISTINCT - + COUNT ( * ) + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT ( - + col0 ) + - col0 AS col0 FROM tab0 AS cor0
----
-174
-194
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-6662
SELECT + - COUNT( * ) col0 FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6662
SELECT + - COUNT ( * ) col0 FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6663
SELECT DISTINCT + 46 + - - COUNT( * ) FROM tab1 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-6663
SELECT DISTINCT + 46 + - - COUNT ( * ) FROM tab1 AS cor0
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6664
SELECT ALL CAST( NULL AS SIGNED ) + + - MAX( DISTINCT - col2 ) col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6664
SELECT ALL CAST ( NULL AS INTEGER ) + + - MAX ( DISTINCT - col2 ) col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6665
SELECT ALL - 48 + - - COUNT( * ) col2 FROM tab0
----
-45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6665
SELECT ALL - 48 + - - COUNT ( * ) col2 FROM tab0
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6666
SELECT CAST( NULL AS SIGNED ) * + ( ( - CAST( NULL AS SIGNED ) ) ) - - 33 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6666
SELECT CAST ( NULL AS INTEGER ) * + ( ( - CAST ( NULL AS INTEGER ) ) ) - - 33 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6667
SELECT 51 - + COUNT( + col1 ) AS col1 FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-6667
SELECT 51 - + COUNT ( + col1 ) AS col1 FROM tab2
----
48

query II rowsort
SELECT 10 + - ( col2 ) AS col1, - 52 FROM tab0
----
-37
-52
-89
-52
0
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6669
SELECT ALL CAST( NULL AS SIGNED ) * - col2 / col2 * 79 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6669
SELECT ALL CAST ( NULL AS INTEGER ) * - col2 / col2 * 79 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6670
SELECT ALL + + COUNT( * ) * - - COUNT( * ) col1 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6670
SELECT ALL + + COUNT ( * ) * - - COUNT ( * ) col1 FROM tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6671
SELECT ALL + ( + MIN( DISTINCT + 34 ) ) AS col0 FROM tab1 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-6671
SELECT ALL + ( + MIN ( DISTINCT + 34 ) ) AS col0 FROM tab1 AS cor0
----
34

query I rowsort
SELECT ALL col1 AS col2 FROM tab0 WHERE 16 * + col2 <= ( 60 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6673
SELECT + COUNT( * ) FROM tab0 WHERE NOT 28 * col2 NOT BETWEEN NULL AND ( + 21 * col2 )
----
0

skipif mysql # not compatible
query I rowsort label-6673
SELECT + COUNT ( * ) FROM tab0 WHERE NOT 28 * col2 NOT BETWEEN NULL AND ( + 21 * col2 )
----
0

query I rowsort
SELECT DISTINCT - 48 - 28 * - 74 AS col0 FROM tab0
----
2024

onlyif mysql # aggregate syntax: 
query I rowsort label-6675
SELECT DISTINCT 92 - SUM( DISTINCT col0 ) FROM tab2
----
-93

skipif mysql # not compatible
query I rowsort label-6675
SELECT DISTINCT 92 - SUM ( DISTINCT col0 ) FROM tab2
----
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col2 + - 24 col2 FROM tab1
----
4872
4991
6164

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6677
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) NOT IN ( col1 * - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6677
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) NOT IN ( col1 * - CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 75 IS NOT NULL
----

query I rowsort
SELECT ALL + 60 + col0 AS col0 FROM tab1
----
111
145
151

query I rowsort
SELECT ALL 21 AS col1 FROM tab0 WHERE ( col0 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 3 col2 FROM tab0
----
3
3
3

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 21 ) IS NOT NULL
----

query I rowsort
SELECT + 19 FROM tab2 WHERE ( - 72 ) IS NOT NULL
----
19
19
19

query III rowsort
SELECT * FROM tab0 WHERE + col2 / - 83 IS NULL
----

query I rowsort
SELECT col1 AS col0 FROM tab2 WHERE col1 = ( col1 )
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6686
SELECT - SUM( ALL + ( + col2 ) ) FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-6686
SELECT - SUM ( ALL + ( + col2 ) ) FROM tab0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-6687
SELECT ALL + 57 - + MIN( col2 + - col2 * - col1 ) FROM tab1
----
-297

skipif mysql # not compatible
query I rowsort label-6687
SELECT ALL + 57 - + MIN ( col2 + - col2 * - col1 ) FROM tab1
----
-297

query I rowsort
SELECT ALL col2 * - col0 + - col2 * col1 FROM tab0
----
-1080
-4512
-9702

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 + 69 NOT IN ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 * - 31 AS col0 FROM tab1
----
-1457
-155
-434

query I rowsort
SELECT ( - col0 ) * - 18 FROM tab2
----
1152
1350
828

onlyif mysql # aggregate syntax: 
query I rowsort label-6692
SELECT DISTINCT - COUNT( ALL col0 ) * - COUNT( * ) + + 77 AS col1 FROM tab1 WHERE NULL <= + col2 + + col2
----
77

skipif mysql # not compatible
query I rowsort label-6692
SELECT DISTINCT - COUNT ( ALL col0 ) * - COUNT ( * ) + + 77 AS col1 FROM tab1 WHERE NULL <= + col2 + + col2
----
77

query I rowsort
SELECT DISTINCT ( col2 ) + ( col2 + col2 ) * col0 FROM tab0 AS cor0
----
1457
1750
19305

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6694
SELECT ( CAST( - col1 AS SIGNED ) ) FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-6694
SELECT ( CAST ( - col1 AS INTEGER ) ) FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT ALL 11 + col1 * col1 AS col1 FROM tab2 AS cor0
----
2612
4500
5940

query I rowsort
SELECT 46 * + 53 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
2438
2438
2438

onlyif mysql # aggregate syntax: 
query I rowsort label-6697
SELECT DISTINCT 95 + MAX( ALL + 62 ) FROM tab1 AS cor0
----
157

skipif mysql # not compatible
query I rowsort label-6697
SELECT DISTINCT 95 + MAX ( ALL + 62 ) FROM tab1 AS cor0
----
157

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6698
SELECT - col0 FROM tab1 cor0 WHERE + CAST( + 59 AS SIGNED ) - + col2 IS NOT NULL
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-6698
SELECT - col0 FROM tab1 cor0 WHERE + CAST ( + 59 AS INTEGER ) - + col2 IS NOT NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-6699
SELECT COUNT( * ) FROM tab0 WHERE ( - col0 ) <> col1
----
3

skipif mysql # not compatible
query I rowsort label-6699
SELECT COUNT ( * ) FROM tab0 WHERE ( - col0 ) <> col1
----
3

query IIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab2 WHERE NOT NULL >= NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 10 / col0 <> ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6702
SELECT DISTINCT ( 61 ) * - CAST( + ( - col1 ) AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NOT ( col1 ) IS NULL
----
2867
305
854

skipif mysql # not compatible
query I rowsort label-6702
SELECT DISTINCT ( 61 ) * - CAST ( + ( - col1 ) AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NOT ( col1 ) IS NULL
----
2867
305
854

query I rowsort
SELECT 50 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
50
50
50

query I rowsort
SELECT DISTINCT + col1 * col1 + + col0 FROM tab1 cor0
----
110
2300
247

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6705
SELECT 21 + COUNT( * ) DIV 79 FROM tab1 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-6705
SELECT 21 + COUNT ( * ) / 79 FROM tab1 AS cor0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6706
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE + 83 IN ( - col0 - 63 )
----
0

skipif mysql # not compatible
query I rowsort label-6706
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE + 83 IN ( - col0 - 63 )
----
0

query I rowsort
SELECT DISTINCT ( 60 ) AS col0 FROM tab1 AS cor0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6708
SELECT DISTINCT 19 + COUNT( DISTINCT col2 ) AS col1 FROM tab2 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-6708
SELECT DISTINCT 19 + COUNT ( DISTINCT col2 ) AS col1 FROM tab2 AS cor0
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6709
SELECT - 23 + MIN( + 43 ) DIV + COUNT( * ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-6709
SELECT - 23 + MIN ( + 43 ) / + COUNT ( * ) FROM tab0 AS cor0
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6710
SELECT - 82 * - MAX( ALL col0 DIV - col2 - ( 2 ) ) + - COUNT( * ) DIV COUNT( * ) AS col2 FROM tab1 AS cor0
----
-165

skipif mysql # not compatible
query I rowsort label-6710
SELECT - 82 * - MAX ( ALL col0 / - col2 - ( 2 ) ) + - COUNT ( * ) / COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-165

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( 83 ) NOT IN ( + col2 * 51 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 85 * + col2 + - col2 col2 FROM tab0 AS cor0
----
3948
8316
840

query I rowsort
SELECT - col0 * - col2 AS col0 FROM tab1 AS cor0 WHERE 87 IS NOT NULL
----
4896
5015
6188

query I rowsort
SELECT + - 52 * 65 + ( 75 ) AS col1 FROM tab1 AS cor0
----
-3305
-3305
-3305

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6715
SELECT DISTINCT col1 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IN ( + ( - 96 ) * - ( ( col0 ) / - CAST( col0 AS SIGNED ) ) + + 28 )
----

skipif mysql # not compatible
query I rowsort label-6715
SELECT DISTINCT col1 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IN ( + ( - 96 ) * - ( ( col0 ) / - CAST ( col0 AS INTEGER ) ) + + 28 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6716
SELECT - SUM( col2 ) col0 FROM tab2
----
-121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6716
SELECT - SUM ( col2 ) col0 FROM tab2
----
-121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + 53 col0 FROM tab0
----
140
150
68

query I rowsort
SELECT ALL col0 - - + col1 AS col1 FROM tab2
----
141
142
97

query I rowsort
SELECT ALL ( + 56 ) AS col0 FROM tab2 WHERE NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6720
SELECT ALL + SUM( ALL + + col0 ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-6720
SELECT ALL + SUM ( ALL + + col0 ) FROM tab1
----
227

query I rowsort
SELECT + col1 * - - ( - col1 ) FROM tab1
----
-196
-2209
-25

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col1 + - col1 ) NOT IN ( + 89 )
----

query I rowsort
SELECT - col0 * + ( - 97 ) AS col1 FROM tab2 AS cor0
----
4462
6208
7275

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( col0 ) >= ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 BETWEEN ( col2 + col1 ) AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-6726
SELECT + col1 * 15 DIV col2 col1 FROM tab0 AS cor0
----
0
25
31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6726
SELECT + col1 * 15 / col2 col1 FROM tab0 AS cor0
----
0
25
31

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 56 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6728
SELECT + COUNT( DISTINCT - CAST( NULL AS DECIMAL ) ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6728
SELECT + COUNT ( DISTINCT - CAST ( NULL AS REAL ) ) AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6729
SELECT + MIN( ALL - - col2 ) DIV COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
19

skipif mysql # not compatible
query I rowsort label-6729
SELECT + MIN ( ALL - - col2 ) / COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6730
SELECT ALL - CAST( NULL AS SIGNED ) AS col0, 59 FROM tab0 AS cor0
----
NULL
59
NULL
59
NULL
59

skipif mysql # not compatible
query II rowsort label-6730
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0, 59 FROM tab0 AS cor0
----
NULL
59
NULL
59
NULL
59

onlyif mysql # aggregate syntax: 
query I rowsort label-6731
SELECT MAX( - col2 ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-6731
SELECT MAX ( - col2 ) FROM tab0 AS cor0
----
-10

query I rowsort
SELECT DISTINCT col0 * + + 95 AS col0 FROM tab1 AS cor0
----
4845
8075
8645

onlyif mysql # aggregate syntax: 
query I rowsort label-6733
SELECT + + COUNT( * ) * - 33 AS col1 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-6733
SELECT + + COUNT ( * ) * - 33 AS col1 FROM tab0 AS cor0
----
-99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 13 NOT IN ( - 62 * col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 + - - 35 + - col1 * col0 BETWEEN col0 AND - col2 * - 55
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 50 + 50 FROM tab2 AS cor0
----
100

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 * + 60 IN ( col2 - + 87 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6738
SELECT COUNT( * ) AS col0 FROM tab1 WHERE NOT - ( + 78 ) = + col0
----
3

skipif mysql # not compatible
query I rowsort label-6738
SELECT COUNT ( * ) AS col0 FROM tab1 WHERE NOT - ( + 78 ) = + col0
----
3

query I rowsort
SELECT ALL col0 * + 67 AS col1 FROM tab1
----
3417
5695
6097

query I rowsort
SELECT 86 * col2 + ( col2 ) FROM tab0 WHERE NOT ( NULL ) < ( + 81 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <> - + col1 + col1 + col2
----

query I rowsort
SELECT 43 FROM tab0 WHERE ( + col1 ) BETWEEN NULL AND col1
----

query III rowsort
SELECT * FROM tab1 WHERE - 36 * + 70 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 21 * col0 AS col2 FROM tab0
----
1827
2037
315

onlyif mysql # DIV for integer division: 
query I rowsort label-6745
SELECT - col0 DIV + + col1 AS col2 FROM tab0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-6745
SELECT - col0 / + + col1 AS col2 FROM tab0
----
-4
-97
0

query III rowsort
SELECT * FROM tab1 WHERE - - col1 NOT IN ( + + col2 * 74 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col2 * - - 99 AS col1 FROM tab2 AS cor0
----
2277
3960
5742

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( NOT NULL BETWEEN 30 AND ( NULL ) )
----

query I rowsort
SELECT + 60 + + - col0 FROM tab2 AS cor0
----
-15
-4
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col2 + col2 col1, 80 * 81 FROM tab0 AS cor0
----
198
6480
20
6480
94
6480

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab2 cor0 WHERE col0 * 15 = + col1
----

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
46
64
75

query I rowsort
SELECT - + 42 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9894093f29c0defae91347934f060329

onlyif mysql # aggregate syntax: 
query I rowsort label-6754
SELECT DISTINCT + MAX( - col0 ) + 21 AS col0 FROM tab1
----
-30

skipif mysql # not compatible
query I rowsort label-6754
SELECT DISTINCT + MAX ( - col0 ) + 21 AS col0 FROM tab1
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-6755
SELECT - 53 DIV - 83 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6755
SELECT - 53 / - 83 AS col1 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6756
SELECT ALL - 80 + - COUNT( * ) AS col2 FROM tab2 cor0
----
-83

skipif mysql # not compatible
query I rowsort label-6756
SELECT ALL - 80 + - COUNT ( * ) AS col2 FROM tab2 cor0
----
-83

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 40 * col1 * + 44 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 - + 10 - + 78 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6759
SELECT + ( + CAST( COUNT( - - col0 ) AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6759
SELECT + ( + CAST ( COUNT ( - - col0 ) AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT + col0 + - - 46 AS col1 FROM tab1 cor0
----
131
137
97

onlyif mysql # DIV for integer division: 
query I rowsort label-6761
SELECT DISTINCT + col0 DIV - + col2 + col1 + + col2 - col1 AS col0 FROM tab2 AS cor0
----
21
39
57

skipif mysql # not compatible
query I rowsort label-6761
SELECT DISTINCT + col0 / - + col2 + col1 + + col2 - col1 AS col0 FROM tab2 AS cor0
----
21
39
57

query II rowsort
SELECT DISTINCT + col0, - col0 + - col1 * + - 3 * - col2 AS col2 FROM tab2
----
46
-3565
64
-9304
75
-11733

onlyif mysql # aggregate syntax: 
query I rowsort label-6763
SELECT ALL SUM( ALL 72 ) FROM tab1
----
216

skipif mysql # not compatible
query I rowsort label-6763
SELECT ALL SUM ( ALL 72 ) FROM tab1
----
216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6764
SELECT - 63 * CAST( - col0 AS SIGNED ) AS col2 FROM tab2 WHERE NOT NULL <> + - col1 + col2 - 38 * - col2
----

skipif mysql # not compatible
query I rowsort label-6764
SELECT - 63 * CAST ( - col0 AS INTEGER ) AS col2 FROM tab2 WHERE NOT NULL <> + - col1 + col2 - 38 * - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6765
SELECT MAX( ALL + - 14 ) FROM tab1
----
-14

skipif mysql # not compatible
query I rowsort label-6765
SELECT MAX ( ALL + - 14 ) FROM tab1
----
-14

query II rowsort
SELECT + col2 AS col2, - ( - - 94 ) * - 12 FROM tab1
----
59
1128
68
1128
96
1128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6767
SELECT - + 29 FROM tab2 WHERE NOT - + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-6767
SELECT - + 29 FROM tab2 WHERE NOT - + CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT col0 * + ( - 51 ) FROM tab1
----
-2601
-4335
-4641

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col1 FROM tab2 WHERE - + col2 + + - col0 * + ( col1 ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6770
SELECT DISTINCT - COUNT( * ) * COUNT( * ) col0 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6770
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) col0 FROM tab2 AS cor0
----
-9

query I rowsort
SELECT DISTINCT - - ( + col0 ) + ( + col0 ) - - col0 FROM tab1 AS cor0
----
153
255
273

query I rowsort
SELECT + - 24 AS col2 FROM tab1 cor0
----
-24
-24
-24

query I rowsort
SELECT ALL - ( - - ( - col2 ) ) + col1 FROM tab0 AS cor0
----
100
128
31

onlyif mysql # aggregate syntax: 
query II rowsort label-6774
SELECT + - MIN( ALL - + col2 ) AS col2, COUNT( * ) AS col1 FROM tab2 AS cor0
----
58
3

skipif mysql # not compatible
query II rowsort label-6774
SELECT + - MIN ( ALL - + col2 ) AS col2, COUNT ( * ) AS col1 FROM tab2 AS cor0
----
58
3

query I rowsort
SELECT + col1 AS col2 FROM tab2 AS cor0 WHERE + col1 = ( NULL )
----

query I rowsort
SELECT ALL 44 * 90 FROM tab0
----
3960
3960
3960

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + 72 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 64 + + 55 col2 FROM tab1
----
119
119
119

onlyif mysql # aggregate syntax: 
query I rowsort label-6779
SELECT DISTINCT - COUNT( * ) * - 73 AS col0 FROM tab2
----
219

skipif mysql # not compatible
query I rowsort label-6779
SELECT DISTINCT - COUNT ( * ) * - 73 AS col0 FROM tab2
----
219

query II rowsort
SELECT - 25, + 23 AS col2 FROM tab2 AS cor0
----
-25
23
-25
23
-25
23

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE col1 * + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6782
SELECT + + MAX( ALL + + col1 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-6782
SELECT + + MAX ( ALL + + col1 ) FROM tab1 AS cor0
----
47

query I rowsort
SELECT - + 15 * + - col2 AS col2 FROM tab2 AS cor0
----
345
600
870

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6784
SELECT - - SUM( CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-6784
SELECT - - SUM ( CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT 73 * - + col2 FROM tab0 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT - 75 + - + 92 AS col0 FROM tab1 AS cor0
----
-167
-167
-167

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) > + 76
----

query I rowsort
SELECT col1 + - 49 AS col0 FROM tab0 AS cor0
----
-28
-48
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6789
SELECT - + CAST( NULL AS SIGNED ) + + 23 + - COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6789
SELECT - + CAST ( NULL AS INTEGER ) + + 23 + - COUNT ( * ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6790
SELECT - col1 AS col0 FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) BETWEEN + - ( - col1 ) AND - col1 * - ( - - 98 )
----

skipif mysql # not compatible
query I rowsort label-6790
SELECT - col1 AS col0 FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) BETWEEN + - ( - col1 ) AND - col1 * - ( - - 98 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 1 col2 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6792
SELECT DISTINCT + col2 DIV 28 * 88 AS col0 FROM tab0 AS cor0
----
0
264
88

skipif mysql # not compatible
query I rowsort label-6792
SELECT DISTINCT + col2 / 28 * 88 AS col0 FROM tab0 AS cor0
----
0
264
88

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 * - ( - 34 ) - + - 77 * - col0 / + 12 = - ( ( 76 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6794
SELECT ALL - col0 + - + col0 / + + 23 * - - CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6794
SELECT ALL - col0 + - + col0 / + + 23 * - - CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6795
SELECT ALL - COUNT( + 66 ) FROM tab1 WHERE 11 + - + col2 <= col2
----
-3

skipif mysql # not compatible
query I rowsort label-6795
SELECT ALL - COUNT ( + 66 ) FROM tab1 WHERE 11 + - + col2 <= col2
----
-3

query I rowsort
SELECT ( + col1 ) AS col2 FROM tab2 WHERE NOT + ( - + 18 ) / + col2 IS NULL
----
51
67
77

query I rowsort
SELECT 12 * + col0 FROM tab1
----
1020
1092
612

query II rowsort
SELECT - 95, col2 FROM tab2 AS cor0
----
-95
23
-95
40
-95
58

onlyif mysql # DIV for integer division: 
query I rowsort label-6799
SELECT col2 * - col2 * col0 DIV + col0 FROM tab0 cor0
----
-100
-2209
-9801

skipif mysql # not compatible
query I rowsort label-6799
SELECT col2 * - col2 * col0 / + col0 FROM tab0 cor0
----
-100
-2209
-9801

query I rowsort
SELECT DISTINCT col1 * + - 54 FROM tab2 AS cor0
----
-2754
-3618
-4158

query I rowsort
SELECT - col0 + 24 AS col0 FROM tab0
----
-63
-73
9

query II rowsort
SELECT ALL - 16 AS col0, + 19 FROM tab0
----
-16
19
-16
19
-16
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6803
SELECT - COUNT( ALL - + col2 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6803
SELECT - COUNT ( ALL - + col2 ) FROM tab0 AS cor0
----
-3

query II rowsort
SELECT DISTINCT + col0, + col0 * 60 + 88 * - - col1 AS col1 FROM tab2 AS cor0
----
46
7248
64
10616
75
10396

query I rowsort
SELECT ALL - 26 + col2 + - 34 * + - col2 * - col1 * 69 FROM tab2 AS cor0
----
-2751861
-7225666
-9116524

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 < + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6807
SELECT + CAST( - col1 AS SIGNED ) AS col2 FROM tab1 cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-6807
SELECT + CAST ( - col1 AS INTEGER ) AS col2 FROM tab1 cor0
----
-14
-47
-5

query I rowsort
SELECT + col1 + - + 93 FROM tab1 WHERE col1 IS NOT NULL
----
-46
-79
-88

query I rowsort
SELECT col1 + + 64 FROM tab1
----
111
69
78

query I rowsort
SELECT + 33 * - col0 + - + 12 * - col0 AS col2 FROM tab0 AS cor0
----
-1827
-2037
-315

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6811
SELECT - CAST( NULL AS SIGNED ) + col0 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6811
SELECT - CAST ( NULL AS INTEGER ) + col0 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 1 * - col1 FROM tab2 AS cor0 WHERE ( NULL ) <> col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6813
SELECT col2 * - col0 + + + 86 DIV - 18 + + col2 - + col0 FROM tab0 AS cor0 WHERE col0 NOT BETWEEN NULL AND + col1
----
-951
-9605

skipif mysql # not compatible
query I rowsort label-6813
SELECT col2 * - col0 + + + 86 / - 18 + + col2 - + col0 FROM tab0 AS cor0 WHERE col0 NOT BETWEEN NULL AND + col1
----
-951
-9605

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6814
SELECT + col0 col0 FROM tab1 WHERE - CAST( NULL AS DECIMAL ) IS NULL
----
51
85
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6814
SELECT + col0 col0 FROM tab1 WHERE - CAST ( NULL AS REAL ) IS NULL
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6815
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab2 WHERE - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6815
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab2 WHERE - col1 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6816
SELECT ALL * FROM tab2 WHERE + CAST( col1 AS SIGNED ) * - + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6816
SELECT ALL * FROM tab2 WHERE + CAST ( col1 AS INTEGER ) * - + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6817
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + COUNT( * ) - - - 23 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6817
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + COUNT ( * ) - - - 23 AS col0 FROM tab2
----
NULL

query I rowsort
SELECT - col0 * + + 55 AS col2 FROM tab1
----
-2805
-4675
-5005

onlyif mysql # DIV for integer division: 
query I rowsort label-6819
SELECT DISTINCT col1 DIV - - ( + - col2 ) + + col1 FROM tab1 WHERE - + 56 IS NOT NULL
----
14
47
5

skipif mysql # not compatible
query I rowsort label-6819
SELECT DISTINCT col1 / - - ( + - col2 ) + + col1 FROM tab1 WHERE - + 56 IS NOT NULL
----
14
47
5

query II rowsort
SELECT + - 60 - + col0 + 43 AS col0, + col2 * col0 FROM tab1 AS cor0
----
-102
5015
-108
6188
-68
4896

onlyif mysql # aggregate syntax: 
query I rowsort label-6821
SELECT COUNT( col0 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6821
SELECT COUNT ( col0 ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT - + col0 / - col0 + col1 + col0 / + 35 + + col2 + + col2 AS col0 FROM tab1 cor0 WHERE NOT ( NULL ) BETWEEN col0 AND + col0
----

query I rowsort
SELECT DISTINCT col0 * ( - col0 ) FROM tab1 cor0
----
-2601
-7225
-8281

query I rowsort
SELECT + col2 AS col1 FROM tab2 AS cor0 WHERE NOT col1 - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6825
SELECT ALL - 12 * - MAX( + + 33 ) AS col1 FROM tab0 AS cor0
----
396

skipif mysql # not compatible
query I rowsort label-6825
SELECT ALL - 12 * - MAX ( + + 33 ) AS col1 FROM tab0 AS cor0
----
396

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6826
SELECT ALL - 83 DIV + ( + ( - + SUM( DISTINCT + 68 ) ) ) + - 30 AS col0 FROM tab2 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-6826
SELECT ALL - 83 / + ( + ( - + SUM ( DISTINCT + 68 ) ) ) + - 30 AS col0 FROM tab2 AS cor0
----
-29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 8 col1 FROM tab2
----
-8
-8
-8

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 + 32 + col1 * col2 * - + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6829
SELECT DISTINCT 34 * - COUNT( * ) FROM tab2
----
-102

skipif mysql # not compatible
query I rowsort label-6829
SELECT DISTINCT 34 * - COUNT ( * ) FROM tab2
----
-102

onlyif mysql # DIV for integer division: 
query I rowsort label-6830
SELECT DISTINCT - col1 DIV - 29 FROM tab2 WHERE col1 - + 42 NOT BETWEEN - col0 * ( + col2 ) AND + - col0 + 13 + - + 81
----
1
2

skipif mysql # not compatible
query I rowsort label-6830
SELECT DISTINCT - col1 / - 29 FROM tab2 WHERE col1 - + 42 NOT BETWEEN - col0 * ( + col2 ) AND + - col0 + 13 + - + 81
----
1
2

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT NULL IS NULL ) OR NOT ( NULL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 * + 48 col2, + 97 AS col0 FROM tab1
----
2256
97
240
97
672
97

query I rowsort
SELECT ALL 18 * - ( - - 76 ) FROM tab1
----
-1368
-1368
-1368

onlyif mysql # aggregate syntax: 
query I rowsort label-6834
SELECT - SUM( ALL 51 ) AS col2 FROM tab2
----
-153

skipif mysql # not compatible
query I rowsort label-6834
SELECT - SUM ( ALL 51 ) AS col2 FROM tab2
----
-153

onlyif mysql # DIV for integer division: 
query I rowsort label-6835
SELECT DISTINCT - col0 DIV 96 + + col0 AS col2 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-6835
SELECT DISTINCT - col0 / 96 + + col0 AS col2 FROM tab1 AS cor0
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col2 col2 FROM tab1 cor0
----
-4896
-5015
-6188

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 * col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + ( + 16 ) ) <= NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 BETWEEN NULL AND - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6840
SELECT CAST( + MAX( ( - 60 ) ) AS SIGNED ) + - - AVG ( ALL ( CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6840
SELECT CAST ( + MAX ( ( - 60 ) ) AS INTEGER ) + - - AVG ( ALL ( CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6841
SELECT 28 + COUNT( * ) FROM tab0 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-6841
SELECT 28 + COUNT ( * ) FROM tab0 AS cor0
----
31

query I rowsort
SELECT + col1 + - col0 + - + col1 + - 61 FROM tab0 AS cor0
----
-148
-158
-76

query II rowsort
SELECT DISTINCT - - col2 AS col2, 95 * - col0 FROM tab1 AS cor0
----
59
-8075
68
-8645
96
-4845

query I rowsort
SELECT ALL 28 + + col2 AS col1 FROM tab2 AS cor0
----
51
68
86

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6845
SELECT CAST( NULL AS DECIMAL ) + + col2 + - col1 * + + 1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6845
SELECT CAST ( NULL AS REAL ) + + col2 + - col1 * + + 1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6846
SELECT 65 + - COUNT( - - col1 ) FROM tab2
----
62

skipif mysql # not compatible
query I rowsort label-6846
SELECT 65 + - COUNT ( - - col1 ) FROM tab2
----
62

query I rowsort
SELECT - 53 * + + 59 + 54 AS col1 FROM tab0
----
-3073
-3073
-3073

query I rowsort
SELECT ALL - + col0 - - ( + 92 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-5
5
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6849
SELECT ALL COUNT( * ) - 58 FROM tab2
----
-55

skipif mysql # not compatible
query I rowsort label-6849
SELECT ALL COUNT ( * ) - 58 FROM tab2
----
-55

query III rowsort
SELECT * FROM tab1 WHERE + + 80 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col2 AS col1 FROM tab1 WHERE NOT + + col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - ( - + col0 ) BETWEEN NULL AND - + col1 * 1 * - 13 * col1 + + - col2 + 86 + - col1 * col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6853
SELECT DISTINCT col0 - + CAST( NULL AS SIGNED ) * + 3 col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6853
SELECT DISTINCT col0 - + CAST ( NULL AS INTEGER ) * + 3 col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6854
SELECT ALL MIN( ALL - col0 ) AS col1 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-6854
SELECT ALL MIN ( ALL - col0 ) AS col1 FROM tab0
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6855
SELECT ALL CAST( - col1 AS SIGNED ) AS col2 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-6855
SELECT ALL CAST ( - col1 AS INTEGER ) AS col2 FROM tab0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6856
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - col2 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-6856
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - col2 < NULL
----
0

query I rowsort
SELECT 87 - + - ( col0 ) FROM tab1 AS cor0
----
138
172
178

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6858
SELECT DISTINCT CAST( - MAX( + col2 ) AS SIGNED ) AS col0 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-6858
SELECT DISTINCT CAST ( - MAX ( + col2 ) AS INTEGER ) AS col0 FROM tab1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6859
SELECT ALL - COUNT( * ) * + - 75 AS col1 FROM tab0 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-6859
SELECT ALL - COUNT ( * ) * + - 75 AS col1 FROM tab0 AS cor0
----
225

onlyif mysql # DIV for integer division: 
query II rowsort label-6860
SELECT - 12 * - 0 * - - col2 * + - col2 + + - col0 AS col0, + 64 DIV + - col1 - 91 AS col1 FROM tab2 AS cor0
----
-46
-92
-64
-91
-75
-91

skipif mysql # not compatible
query II rowsort label-6860
SELECT - 12 * - 0 * - - col2 * + - col2 + + - col0 AS col0, + 64 / + - col1 - 91 AS col1 FROM tab2 AS cor0
----
-46
-92
-64
-91
-75
-91

query I rowsort
SELECT - - col2 * + - col2 + + ( - col2 ) FROM tab0 cor0
----
-110
-2256
-9900

onlyif mysql # DIV for integer division: 
query I rowsort label-6862
SELECT ALL + - col2 DIV - col1 + - col0 FROM tab1 AS cor0
----
-45
-74
-90

skipif mysql # not compatible
query I rowsort label-6862
SELECT ALL + - col2 / - col1 + - col0 FROM tab1 AS cor0
----
-45
-74
-90

query I rowsort
SELECT + - 58 AS col1 FROM tab1 AS cor0
----
-58
-58
-58

query I rowsort
SELECT ALL - + ( - - col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT - col2 / + col2 IS NULL
----
-51
-85
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-6865
SELECT 59 DIV + + col1 FROM tab0 AS cor0
----
0
2
59

skipif mysql # not compatible
query I rowsort label-6865
SELECT 59 / + + col1 FROM tab0 AS cor0
----
0
2
59

query I rowsort
SELECT ALL 81 AS col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( 17 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6867
SELECT - MIN( DISTINCT - 76 ) AS col2 FROM tab0
----
76

skipif mysql # not compatible
query I rowsort label-6867
SELECT - MIN ( DISTINCT - 76 ) AS col2 FROM tab0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6868
SELECT ALL - + COUNT( ALL col2 ) FROM tab2 WHERE NOT + col0 * col2 * - col0 < + col2 / col2 * - 70
----
0

skipif mysql # not compatible
query I rowsort label-6868
SELECT ALL - + COUNT ( ALL col2 ) FROM tab2 WHERE NOT + col0 * col2 * - col0 < + col2 / col2 * - 70
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 + - - 49 + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL + col1, + col1 * col2 FROM tab1
----
14
1344
47
3196
5
295

query I rowsort
SELECT - 16 * + - col0 FROM tab0
----
1392
1552
240

onlyif mysql # aggregate syntax: 
query I rowsort label-6872
SELECT DISTINCT - COUNT( + - col0 ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-6872
SELECT DISTINCT - COUNT ( + - col0 ) AS col1 FROM tab1
----
-3

query I rowsort
SELECT ALL 82 * col0 FROM tab0
----
1230
7134
7954

query I rowsort
SELECT ALL + 40 * + + col0 FROM tab2
----
1840
2560
3000

query I rowsort
SELECT - 97 * + col2 AS col0 FROM tab2
----
-2231
-3880
-5626

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 NOT BETWEEN NULL AND + 93
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6877
SELECT - - 66 AS col2, MAX( + - 33 ) AS col0 FROM tab0 AS cor0
----
66
-33

skipif mysql # not compatible
query II rowsort label-6877
SELECT - - 66 AS col2, MAX ( + - 33 ) AS col0 FROM tab0 AS cor0
----
66
-33

query I rowsort
SELECT - col0 * - + 4 FROM tab2 AS cor0
----
184
256
300

query I rowsort
SELECT DISTINCT 2 + - 85 FROM tab1 AS cor0
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6880
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( - - col0, ( - CAST( NULL AS SIGNED ) ) * + - col1 * - + col1 )
----

skipif mysql # not compatible
query III rowsort label-6880
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( - - col0, ( - CAST ( NULL AS INTEGER ) ) * + - col1 * - + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6881
SELECT - + SUM( ALL ( - 47 ) ) AS col0 FROM tab0 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-6881
SELECT - + SUM ( ALL ( - 47 ) ) AS col0 FROM tab0 AS cor0
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-6882
SELECT DISTINCT MAX( DISTINCT + 73 ) + + 20 FROM tab2 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-6882
SELECT DISTINCT MAX ( DISTINCT + 73 ) + + 20 FROM tab2 AS cor0
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6883
SELECT ALL - - CAST( + 69 AS SIGNED ) + + + 65 AS col1 FROM tab0 AS cor0
----
134
134
134

skipif mysql # not compatible
query I rowsort label-6883
SELECT ALL - - CAST ( + 69 AS INTEGER ) + + + 65 AS col1 FROM tab0 AS cor0
----
134
134
134

query I rowsort
SELECT - - col0 + - + 24 AS col0 FROM tab0 cor0 WHERE col2 + - - col2 IS NOT NULL
----
-9
63
73

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 28 NOT BETWEEN + - col0 + + col0 AND NULL
----

query I rowsort
SELECT ALL 1 * + col2 + - col2 - + col0 + + col1 * - + col0 * + + col1 FROM tab1
----
-10047
-201110
-2210

query I rowsort
SELECT - 34 - - col0 + col2 FROM tab2
----
35
70
99

query I rowsort
SELECT - col0 * - ( col0 ) + - + 24 FROM tab1
----
2577
7201
8257

query I rowsort
SELECT ALL + col0 * - col1 * - 69 - col0 AS col0 FROM tab2
----
161828
339968
346650

onlyif mysql # DIV for integer division: 
query I rowsort label-6890
SELECT ALL - col0 DIV ( + - 6 ) * - col2 AS col2 FROM tab1
----
-1020
-768
-826

skipif mysql # not compatible
query I rowsort label-6890
SELECT ALL - col0 / ( + - 6 ) * - col2 AS col2 FROM tab1
----
-1020
-768
-826

onlyif mysql # aggregate syntax: 
query I rowsort label-6891
SELECT 75 + - + ( ( - MAX( col2 ) ) ) col2 FROM tab1
----
171

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6891
SELECT 75 + - + ( ( - MAX ( col2 ) ) ) col2 FROM tab1
----
171

query I rowsort
SELECT DISTINCT col0 * 22 AS col1 FROM tab1
----
1122
1870
2002

onlyif mysql # DIV for integer division: 
query I rowsort label-6893
SELECT - col1 + + - col1 DIV 79 FROM tab0 AS cor0
----
-1
-21
-82

skipif mysql # not compatible
query I rowsort label-6893
SELECT - col1 + + - col1 / 79 FROM tab0 AS cor0
----
-1
-21
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-6894
SELECT DISTINCT - 73 - COUNT( * ) + + + COUNT( * ) + - + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
-76

skipif mysql # not compatible
query I rowsort label-6894
SELECT DISTINCT - 73 - COUNT ( * ) + + + COUNT ( * ) + - + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
-76

query I rowsort
SELECT + - col1 * 4 FROM tab2 WHERE NOT col1 - - col2 <= - 32 * + ( - col2 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6896
SELECT col1, col0 DIV col1 - 42 AS col1 FROM tab0
----
1
55
21
-38
81
-42

skipif mysql # not compatible
query II rowsort label-6896
SELECT col1, col0 / col1 - 42 AS col1 FROM tab0
----
1
55
21
-38
81
-42

query I rowsort
SELECT + 90 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query I rowsort
SELECT ALL - 28 * + col1 AS col0 FROM tab2
----
-1428
-1876
-2156

onlyif mysql # aggregate syntax: 
query I rowsort label-6899
SELECT ALL 98 * + + COUNT( * ) FROM tab2 AS cor0
----
294

skipif mysql # not compatible
query I rowsort label-6899
SELECT ALL 98 * + + COUNT ( * ) FROM tab2 AS cor0
----
294

onlyif mysql # aggregate syntax: 
query I rowsort label-6900
SELECT COUNT( * ) * 99 + - SUM( + 63 ) - + MIN( - col2 ) FROM tab2 cor0
----
166

skipif mysql # not compatible
query I rowsort label-6900
SELECT COUNT ( * ) * 99 + - SUM ( + 63 ) - + MIN ( - col2 ) FROM tab2 cor0
----
166

query II rowsort
SELECT ALL - 26, - col0 AS col2 FROM tab0 AS cor0
----
-26
-15
-26
-87
-26
-97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + ( - - 51 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6903
SELECT + + COUNT( + col0 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6903
SELECT + + COUNT ( + col0 ) AS col1 FROM tab2 AS cor0
----
3

query II rowsort
SELECT ALL - 77 AS col1, - col1 + + col1 AS col2 FROM tab1 AS cor0
----
-77
0
-77
0
-77
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6905
SELECT + SUM( - - col2 ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-6905
SELECT + SUM ( - - col2 ) FROM tab2 AS cor0
----
121

query I rowsort
SELECT + ( col2 ) * + col1 FROM tab2
----
1173
3080
3886

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NOT + + 9 BETWEEN NULL AND - col0 / - ( - - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 * - + 43 FROM tab0
----
3483
43
903

query I rowsort
SELECT DISTINCT col0 * - + col1 AS col0 FROM tab1
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-6911
SELECT + COUNT( + col1 ) + 48 AS col1 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-6911
SELECT + COUNT ( + col1 ) + 48 AS col1 FROM tab1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6912
SELECT + 5 + + COUNT( * ) col2 FROM tab0
----
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6912
SELECT + 5 + + COUNT ( * ) col2 FROM tab0
----
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col0 ) col2 FROM tab1
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6914
SELECT + 88 * + 55 + + COUNT( col2 ) AS col0 FROM tab0
----
4843

skipif mysql # not compatible
query I rowsort label-6914
SELECT + 88 * + 55 + + COUNT ( col2 ) AS col0 FROM tab0
----
4843

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL = - ( - + 88 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6916
SELECT + col2 + - + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6916
SELECT + col2 + - + CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6917
SELECT DISTINCT COUNT( * ) * - 86 FROM tab0
----
-258

skipif mysql # not compatible
query I rowsort label-6917
SELECT DISTINCT COUNT ( * ) * - 86 FROM tab0
----
-258

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( NOT ( + col1 * + - col0 IS NOT NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - 82 IS NULL
----

query I rowsort
SELECT ALL 11 * - col0 FROM tab2
----
-506
-704
-825

query I rowsort
SELECT 91 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

onlyif mysql # aggregate syntax: 
query I rowsort label-6922
SELECT COUNT( * ) col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6922
SELECT COUNT ( * ) col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6923
SELECT - col1 + + ( - CAST( + col2 AS SIGNED ) ) + - col0 col2 FROM tab1 AS cor0
----
-149
-161
-206

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6923
SELECT - col1 + + ( - CAST ( + col2 AS INTEGER ) ) + - col0 col2 FROM tab1 AS cor0
----
-149
-161
-206

query I rowsort
SELECT DISTINCT ( + col0 ) + + + 89 AS col1 FROM tab2 cor0
----
135
153
164

query I rowsort
SELECT ALL + 80 + col0 AS col2 FROM tab0 AS cor0
----
167
177
95

query I rowsort
SELECT DISTINCT + col0 FROM tab0 cor0 WHERE col0 * - + col2 IS NOT NULL
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6927
SELECT DISTINCT col0 - + - 99 + + CAST( 36 AS SIGNED ) FROM tab0 AS cor0
----
150
222
232

skipif mysql # not compatible
query I rowsort label-6927
SELECT DISTINCT col0 - + - 99 + + CAST ( 36 AS INTEGER ) FROM tab0 AS cor0
----
150
222
232

query I rowsort
SELECT + 6 * + col1 FROM tab0 cor0 WHERE ( NULL ) = + col2
----

query I rowsort
SELECT ALL - ( - 56 ) * col0 + + - col1 + + col0 - - 75 FROM tab2
----
2646
3646
4283

query I rowsort
SELECT DISTINCT + + 49 AS col2 FROM tab1 cor0
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6931
SELECT col1 - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6931
SELECT col1 - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * col0 + 16 AS col1 FROM tab0 cor0
----
113
1231
1843

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 76 col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

onlyif mysql # aggregate syntax: 
query I rowsort label-6934
SELECT DISTINCT + MIN( - col1 ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-6934
SELECT DISTINCT + MIN ( - col1 ) FROM tab2
----
-77

query III rowsort
SELECT * FROM tab1 WHERE NOT 4 * - 30 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6936
SELECT DISTINCT - - COUNT( * ) * 36 FROM tab0 AS cor0
----
108

skipif mysql # not compatible
query I rowsort label-6936
SELECT DISTINCT - - COUNT ( * ) * 36 FROM tab0 AS cor0
----
108

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - 66, + col2 col0 FROM tab0 AS cor0
----
-66
10
-66
47
-66
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6938
SELECT - + MAX( 51 ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-6938
SELECT - + MAX ( 51 ) FROM tab2 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6939
SELECT + + MIN( + - 86 ) AS col0 FROM tab1 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-6939
SELECT + + MIN ( + - 86 ) AS col0 FROM tab1 AS cor0
----
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - - col1 col0 FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-6941
SELECT + - MIN( + + col2 ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-6941
SELECT + - MIN ( + + col2 ) FROM tab0 AS cor0
----
-10

query II rowsort
SELECT col2 AS col2, - 88 * - + col0 FROM tab1 cor0
----
59
7480
68
8008
96
4488

onlyif mysql # aggregate syntax: 
query I rowsort label-6943
SELECT + - COUNT( + col0 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6943
SELECT + - COUNT ( + col0 ) AS col0 FROM tab2 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 33 col1 FROM tab2 cor0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-6945
SELECT DISTINCT MIN( + + col1 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-6945
SELECT DISTINCT MIN ( + + col1 ) FROM tab2 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6946
SELECT COUNT( * ) - - - 50 FROM tab1 AS cor0 WHERE NOT col2 <> NULL
----
-50

skipif mysql # not compatible
query I rowsort label-6946
SELECT COUNT ( * ) - - - 50 FROM tab1 AS cor0 WHERE NOT col2 <> NULL
----
-50

query I rowsort
SELECT ALL col1 * col1 * + 62 FROM tab1
----
12152
136958
1550

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6948
SELECT DISTINCT col0, col0 * - - 41 + - CAST( + col0 AS SIGNED ) AS col1 FROM tab0
----
15
600
87
3480
97
3880

skipif mysql # not compatible
query II rowsort label-6948
SELECT DISTINCT col0, col0 * - - 41 + - CAST ( + col0 AS INTEGER ) AS col1 FROM tab0
----
15
600
87
3480
97
3880

query II rowsort
SELECT col0 * + col1 AS col2, - 39 FROM tab0
----
1215
-39
1827
-39
97
-39

query III rowsort
SELECT * FROM tab1 WHERE NOT - ( + + col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - + col1 FROM tab2 WHERE NOT col1 BETWEEN col1 AND NULL
----

query II rowsort
SELECT - col2 AS col0, - 55 FROM tab1
----
-59
-55
-68
-55
-96
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-6953
SELECT DISTINCT + + COUNT( * ) + + 78 AS col0 FROM tab1 cor0
----
81

skipif mysql # not compatible
query I rowsort label-6953
SELECT DISTINCT + + COUNT ( * ) + + 78 AS col0 FROM tab1 cor0
----
81

query I rowsort
SELECT - 40 AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9

query I rowsort
SELECT + 1 * - + col0 + + 40 FROM tab1
----
-11
-45
-51

query I rowsort
SELECT DISTINCT + 23 * col2 * + + 20 + + - ( 88 ) + - - col2 FROM tab1
----
27111
31260
44168

query I rowsort
SELECT - col1 * - ( - col0 ) * col1 AS col0 FROM tab1
----
-201019
-2125
-9996

onlyif mysql # DIV for integer division: 
query I rowsort label-6958
SELECT + 74 DIV + col2 FROM tab0
----
0
1
7

skipif mysql # not compatible
query I rowsort label-6958
SELECT + 74 / + col2 FROM tab0
----
0
1
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6959
SELECT ALL SUM( ALL 71 ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
639

skipif mysql # not compatible
query I rowsort label-6959
SELECT ALL SUM ( ALL 71 ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
639

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 * + col1 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6961
SELECT ALL col1 DIV + col2 + + 71 FROM tab0 AS cor0
----
71
72
73

skipif mysql # not compatible
query I rowsort label-6961
SELECT ALL col1 / + col2 + + 71 FROM tab0 AS cor0
----
71
72
73

query II rowsort
SELECT DISTINCT - 62 + + col1, - 80 * - + 59 AS col1 FROM tab0 AS cor0
----
-41
4720
-61
4720
19
4720

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE - col1 BETWEEN col1 * col2 AND col2
----

query I rowsort
SELECT ALL + - 48 + 19 AS col1 FROM tab2 AS cor0
----
-29
-29
-29

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND - 47
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6966
SELECT - MAX( + 22 ) AS col0 FROM tab0 WHERE + + col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6966
SELECT - MAX ( + 22 ) AS col0 FROM tab0 WHERE + + col0 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT - 39 - + + 26 FROM tab2
----
-65

query I rowsort
SELECT 26 + + - 84 AS col2 FROM tab1
----
-58
-58
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6969
SELECT ALL + COUNT( * ) + + 34 AS col1 FROM tab0
----
37

skipif mysql # not compatible
query I rowsort label-6969
SELECT ALL + COUNT ( * ) + + 34 AS col1 FROM tab0
----
37

query I rowsort
SELECT ALL - col0 AS col0 FROM tab1 WHERE + 66 = - 80
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 BETWEEN - col0 * - - 11 * - col1 + + 21 * col0 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col2 * + col0 + - 82 * + + col1 AS col0 FROM tab0 AS cor0
----
-2592
-7347
-9685

query I rowsort
SELECT ALL + + col0 * - 36 AS col2 FROM tab0 AS cor0
----
-3132
-3492
-540

onlyif mysql # aggregate syntax: 
query I rowsort label-6974
SELECT ALL MIN( + 41 ) FROM tab1 cor0
----
41

skipif mysql # not compatible
query I rowsort label-6974
SELECT ALL MIN ( + 41 ) FROM tab1 cor0
----
41

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 > 88 * - - 84 + + - col0 * + - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 / + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL ( 76 ), ( + - col1 ) AS col1 FROM tab0 AS cor0
----
76
-1
76
-21
76
-81

query I rowsort
SELECT col2 * col0 + 28 AS col0 FROM tab1 AS cor0
----
4924
5043
6216

query I rowsort
SELECT 99 + - col1 FROM tab0
----
18
78
98

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 53 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NOT + + 99 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col1 AS col0 FROM tab2 WHERE NOT + col0 - 59 + col0 + + 67 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 48 + col0 col1 FROM tab1
----
133
139
99

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + 92 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 WHERE - 78 <= + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6986
SELECT ALL - + CAST( - col0 AS SIGNED ) + - 49 + + - 72 * - 76 FROM tab1 cor0
----
5474
5508
5514

skipif mysql # not compatible
query I rowsort label-6986
SELECT ALL - + CAST ( - col0 AS INTEGER ) + - 49 + + - 72 * - 76 FROM tab1 cor0
----
5474
5508
5514

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 62 <= NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE - col0 + - 13 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6989
SELECT ALL - - CAST( 16 AS SIGNED ) + col0 AS col2 FROM tab1 AS cor0
----
101
107
67

skipif mysql # not compatible
query I rowsort label-6989
SELECT ALL - - CAST ( 16 AS INTEGER ) + col0 AS col2 FROM tab1 AS cor0
----
101
107
67

query II rowsort
SELECT ALL + col1, 17 + + col1 + - + 51 * + col1 * - col1 FROM tab0
----
1
69
21
22529
81
334709

query I rowsort
SELECT ALL + - 81 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

query I rowsort
SELECT - - col2 FROM tab0 AS cor0 WHERE - col1 < NULL
----

query I rowsort
SELECT DISTINCT ( - - col0 ) + - 85 FROM tab1 AS cor0
----
-34
0
6

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( 66 / - col0, - 56, + col1, col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6995
SELECT - + 26 * - - 19, COUNT( * ) AS col1 FROM tab2 cor0
----
-494
3

skipif mysql # not compatible
query II rowsort label-6995
SELECT - + 26 * - - 19, COUNT ( * ) AS col1 FROM tab2 cor0
----
-494
3

query II rowsort
SELECT - - 52 AS col1, + col2 FROM tab2 AS cor0
----
52
23
52
40
52
58

query I rowsort
SELECT ALL + 76 + + col2 AS col1 FROM tab0 AS cor0
----
123
175
86

query I rowsort
SELECT DISTINCT col2 + + - col0 + - + 83 AS col2 FROM tab2 AS cor0
----
-100
-106
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-6999
SELECT ALL 2 + COUNT( ALL - 40 ) AS col0 FROM tab0 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-6999
SELECT ALL 2 + COUNT ( ALL - 40 ) AS col0 FROM tab0 AS cor0
----
5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7000
SELECT DISTINCT - CAST( NULL AS DECIMAL ) - - - col2 * + col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7000
SELECT DISTINCT - CAST ( NULL AS REAL ) - - - col2 * + col0 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT 24 + + 65 FROM tab2
----
89

query I rowsort
SELECT + - ( col1 ) FROM tab0 WHERE NOT - 86 > - 26 + - 43
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7003
SELECT MAX( + col0 ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-7003
SELECT MAX ( + col0 ) FROM tab0 AS cor0
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7004
SELECT ALL + + COUNT( * ) * + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7004
SELECT ALL + + COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7005
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IN ( col2, col2, - - 91 * - 41, - + 0 / col1 + - ( + + col2 ) + - - 20 )
----
0

skipif mysql # not compatible
query I rowsort label-7005
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IN ( col2, col2, - - 91 * - 41, - + 0 / col1 + - ( + + col2 ) + - - 20 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7006
SELECT ALL + 81 * - CAST( NULL AS SIGNED ), + col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-7006
SELECT ALL + 81 * - CAST ( NULL AS INTEGER ), + col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

query I rowsort
SELECT + col2 * 90 FROM tab1
----
5310
6120
8640

query I rowsort
SELECT DISTINCT - ( - col1 ) AS col0 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-7009
SELECT ALL col2 DIV col2 * col0 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-7009
SELECT ALL col2 / col2 * col0 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7010
SELECT - CAST( NULL AS SIGNED ) * - - AVG ( DISTINCT - col1 ) - - - 98 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7010
SELECT - CAST ( NULL AS INTEGER ) * - - AVG ( DISTINCT - col1 ) - - - 98 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + col0 AS col2 FROM tab1 AS cor0 WHERE NULL <= col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7012
SELECT + CAST( + 3 AS SIGNED ) FROM tab2 AS cor0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-7012
SELECT + CAST ( + 3 AS INTEGER ) FROM tab2 AS cor0
----
3
3
3

query II rowsort
SELECT - col2, - col2 AS col0 FROM tab2 AS cor0
----
-23
-23
-40
-40
-58
-58

query II rowsort
SELECT DISTINCT + col2, 73 + - col2 FROM tab1 cor0
----
59
14
68
5
96
-23

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 + - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + col2, col1 * + + col1 FROM tab2 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - col0 FROM tab2 WHERE NOT ( col0 * - + col1 * + col0 ) > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7018
SELECT DISTINCT COUNT( + col0 ) FROM tab1 WHERE NULL BETWEEN + ( + col1 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7018
SELECT DISTINCT COUNT ( + col0 ) FROM tab1 WHERE NULL BETWEEN + ( + col1 ) AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7019
SELECT DISTINCT COUNT( + col2 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7019
SELECT DISTINCT COUNT ( + col2 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7020
SELECT + - COUNT( * ) FROM tab1 WHERE col2 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-7020
SELECT + - COUNT ( * ) FROM tab1 WHERE col2 > NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7021
SELECT SUM( ALL + 22 ) + - COUNT( * ) + COUNT( ALL + col0 ) AS col1 FROM tab2
----
66

skipif mysql # not compatible
query I rowsort label-7021
SELECT SUM ( ALL + 22 ) + - COUNT ( * ) + COUNT ( ALL + col0 ) AS col1 FROM tab2
----
66

query I rowsort
SELECT 16 + - 79 AS col2 FROM tab1 AS cor0
----
-63
-63
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7023
SELECT + + col2 * CAST( - ( 34 ) AS SIGNED ) + + ( - - col1 ) * 39 + col2 FROM tab1 AS cor0
----
-1752
-2622
-411

skipif mysql # not compatible
query I rowsort label-7023
SELECT + + col2 * CAST ( - ( 34 ) AS INTEGER ) + + ( - - col1 ) * 39 + col2 FROM tab1 AS cor0
----
-1752
-2622
-411

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE ( - 30 ) IS NOT NULL
----
15
87
97

query I rowsort
SELECT ALL col1 - - 84 AS col0 FROM tab1
----
131
89
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7026
SELECT DISTINCT CAST( + + col0 AS SIGNED ) + - col0 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7026
SELECT DISTINCT CAST ( + + col0 AS INTEGER ) + - col0 AS col0 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7027
SELECT DISTINCT - ( + col2 ) * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7027
SELECT DISTINCT - ( + col2 ) * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7028
SELECT col1 * 33 * 10 DIV - + col0 AS col0 FROM tab1
----
-170
-19
-90

skipif mysql # not compatible
query I rowsort label-7028
SELECT col1 * 33 * 10 / - + col0 AS col0 FROM tab1
----
-170
-19
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-7029
SELECT + MIN( 50 ) - 1 AS col1 FROM tab0 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-7029
SELECT + MIN ( 50 ) - 1 AS col1 FROM tab0 AS cor0
----
49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 2 * - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7031
SELECT ALL 79 + + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-7031
SELECT ALL 79 + + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
76

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - 18 IS NOT NULL
----

query I rowsort
SELECT ALL + ( - 3 ) AS col2 FROM tab0 AS cor0
----
-3
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7034
SELECT DISTINCT + MAX( DISTINCT - 65 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-65

skipif mysql # not compatible
query I rowsort label-7034
SELECT DISTINCT + MAX ( DISTINCT - 65 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-7035
SELECT - COUNT( * ) AS col0, - COUNT( * ) FROM tab0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-7035
SELECT - COUNT ( * ) AS col0, - COUNT ( * ) FROM tab0
----
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7036
SELECT ( MIN( - + 96 ) ) AS col1 FROM tab2
----
-96

skipif mysql # not compatible
query I rowsort label-7036
SELECT ( MIN ( - + 96 ) ) AS col1 FROM tab2
----
-96

query II rowsort
SELECT DISTINCT col0 AS col2, - col0 AS col1 FROM tab0
----
15
-15
87
-87
97
-97

query II rowsort
SELECT DISTINCT + col1 * - col1 AS col0, + col2 FROM tab1 cor0
----
-196
96
-2209
68
-25
59

query II rowsort
SELECT DISTINCT + + col2 AS col1, - 89 + - - 30 AS col1 FROM tab0 AS cor0
----
10
-59
47
-59
99
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-7040
SELECT ALL - - COUNT( * ) AS col2 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7040
SELECT ALL - - COUNT ( * ) AS col2 FROM tab2 cor0
----
3

query II rowsort
SELECT ALL col1 * col2 * 39, col2 AS col0 FROM tab2
----
120120
40
151554
58
45747
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7042
SELECT DISTINCT COUNT( 11 ) * MAX( - + 73 ) FROM tab1
----
-219

skipif mysql # not compatible
query I rowsort label-7042
SELECT DISTINCT COUNT ( 11 ) * MAX ( - + 73 ) FROM tab1
----
-219

query I rowsort
SELECT DISTINCT - col2 + + 31 + + col2 * + 69 AS col1 FROM tab1 AS cor0
----
4043
4655
6559

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 * + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col2 * + 60 + + - 33 - - - col2 AS col2 FROM tab1 AS cor0
----
3448
3979
5631

onlyif mysql # DIV for integer division: 
query I rowsort label-7046
SELECT - + col0 * + col0 - - 37 + + col1 + - col1 * col2 * 90 DIV col1 FROM tab0 cor0
----
-18281
-4337
-8411

skipif mysql # not compatible
query I rowsort label-7046
SELECT - + col0 * + col0 - - 37 + + col1 + - col1 * col2 * 90 / col1 FROM tab0 cor0
----
-18281
-4337
-8411

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 + - col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - 87 col1 FROM tab2
----
-4002
-5568
-6525

query III rowsort
SELECT * FROM tab0 WHERE + ( - col0 ) <= + - 40
----
87
21
10
97
1
99

query I rowsort
SELECT col1 + + col1 - + 10 + - - 95 FROM tab1
----
113
179
95

query III rowsort
SELECT * FROM tab2 WHERE NULL <= + 26
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL > col0
----

query I rowsort
SELECT - 19 * col1 AS col1 FROM tab2
----
-1273
-1463
-969

query I rowsort
SELECT col2 * 78 AS col1 FROM tab2
----
1794
3120
4524

onlyif mysql # aggregate syntax: 
query I rowsort label-7055
SELECT ALL 7 * COUNT( * ) AS col1 FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-7055
SELECT ALL 7 * COUNT ( * ) AS col1 FROM tab2
----
21

query I rowsort
SELECT DISTINCT 25 * - - col0 FROM tab2
----
1150
1600
1875

query I rowsort
SELECT DISTINCT 50 * + - 67 AS col2 FROM tab1 cor0
----
-3350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7058
SELECT ALL + CAST( NULL AS SIGNED ) * - col1 + - col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7058
SELECT ALL + CAST ( NULL AS INTEGER ) * - col1 + - col2 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7059
SELECT + - COUNT( ALL - 80 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7059
SELECT + - COUNT ( ALL - 80 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT col2 + - col1 + - - col1 + + col1 AS col2 FROM tab2 cor0
----
117
125
74

query I rowsort
SELECT DISTINCT 10 + 68 AS col0 FROM tab2 cor0
----
78

query I rowsort
SELECT DISTINCT - col1 * - col1 * col0 - - - col0 FROM tab2
----
119600
336600
379392

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 57 col0 FROM tab2 AS cor0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-7064
SELECT DISTINCT - MAX( 63 ) AS col2 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
-63

skipif mysql # not compatible
query I rowsort label-7064
SELECT DISTINCT - MAX ( 63 ) AS col2 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-7065
SELECT col2 DIV + + col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7065
SELECT col2 / + + col2 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7066
SELECT DISTINCT + ( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7066
SELECT DISTINCT + ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col1 * col1 * - 52 AS col0 FROM tab2 AS cor0
----
-135252
-233428
-308308

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7068
SELECT DISTINCT + + col0 AS col1 FROM tab1 cor0 WHERE ( NULL ) = CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7068
SELECT DISTINCT + + col0 AS col1 FROM tab1 cor0 WHERE ( NULL ) = CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + + col0 * - col0 - - - col2 AS col0 FROM tab2 WHERE NOT 13 BETWEEN + 83 AND NULL
----
-2139
-4136
-5683

onlyif mysql # aggregate syntax: 
query III rowsort label-7070
SELECT ALL COUNT( * ), COUNT( ALL + col0 ) AS col0, - COUNT( * ) AS col2 FROM tab1
----
3
3
-3

skipif mysql # not compatible
query III rowsort label-7070
SELECT ALL COUNT ( * ), COUNT ( ALL + col0 ) AS col0, - COUNT ( * ) AS col2 FROM tab1
----
3
3
-3

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-7071
SELECT ALL * FROM tab0 WHERE - 59 NOT IN ( + 28, + ( + - col1 ), + - col0 + 87 + + CAST( NULL AS DECIMAL ) * - + col1 / - - 61 + + - col1 + CAST( NULL AS SIGNED ) + + - col2 )
----

skipif mysql # not compatible
query III rowsort label-7071
SELECT ALL * FROM tab0 WHERE - 59 NOT IN ( + 28, + ( + - col1 ), + - col0 + 87 + + CAST ( NULL AS REAL ) * - + col1 / - - 61 + + - col1 + CAST ( NULL AS INTEGER ) + + - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7072
SELECT DISTINCT COUNT( ALL 35 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7072
SELECT DISTINCT COUNT ( ALL 35 ) FROM tab2
----
3

query I rowsort
SELECT + + 79 + - + 5 + - - 36 * + col0 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
1730
2378
2774

onlyif mysql # aggregate syntax: 
query I rowsort label-7074
SELECT - + COUNT( DISTINCT + - 97 ) AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7074
SELECT - + COUNT ( DISTINCT + - 97 ) AS col1 FROM tab0 AS cor0
----
-1

query II rowsort
SELECT + 0, col0 FROM tab0 AS cor0
----
0
15
0
87
0
97

query II rowsort
SELECT DISTINCT + - col2, 29 AS col1 FROM tab1 AS cor0 WHERE NOT col2 + - col2 * - - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7077
SELECT DISTINCT + + MAX( + - CAST( ( - + col1 ) AS SIGNED ) ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-7077
SELECT DISTINCT + + MAX ( + - CAST ( ( - + col1 ) AS INTEGER ) ) FROM tab2 AS cor0
----
77

query II rowsort
SELECT col2 + + 59, col0 FROM tab1
----
118
85
127
91
155
51

query I rowsort
SELECT DISTINCT 19 + - 91 FROM tab2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-7080
SELECT - SUM( - 52 ) col2 FROM tab2 AS cor0
----
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7080
SELECT - SUM ( - 52 ) col2 FROM tab2 AS cor0
----
156

query I rowsort
SELECT ALL - col1 + - - col0 FROM tab0 AS cor0
----
-66
66
96

onlyif mysql # aggregate syntax: 
query II rowsort label-7082
SELECT ALL - COUNT( * ) * COUNT( * ) AS col0, ( - 14 ) + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-9
-11

skipif mysql # not compatible
query II rowsort label-7082
SELECT ALL - COUNT ( * ) * COUNT ( * ) AS col0, ( - 14 ) + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-9
-11

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 * + 79 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 50 FROM tab0 cor0 WHERE NULL IS NULL
----
50
50
50

query I rowsort
SELECT ALL 35 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
35
35
35

query I rowsort
SELECT DISTINCT - - col2 * + + col2 + - 61 FROM tab1 AS cor0
----
3420
4563
9155

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7087
SELECT ALL - 5 DIV COUNT( * ) + + - 6 col1 FROM tab1 cor0
----
-7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7087
SELECT ALL - 5 / COUNT ( * ) + + - 6 col1 FROM tab1 cor0
----
-7

query I rowsort
SELECT ALL - 94 * - 2 FROM tab0 AS cor0
----
188
188
188

onlyif mysql # aggregate syntax: 
query I rowsort label-7089
SELECT DISTINCT 4 + + COUNT( * ) AS col0 FROM tab1
----
7

skipif mysql # not compatible
query I rowsort label-7089
SELECT DISTINCT 4 + + COUNT ( * ) AS col0 FROM tab1
----
7

query I rowsort
SELECT DISTINCT + col1 * - - 5 FROM tab0 WHERE NOT ( NOT NULL IS NULL )
----
105
405
5

query III rowsort
SELECT * FROM tab2 WHERE col1 + - col0 <= NULL
----

query I rowsort
SELECT ALL + - col2 FROM tab2 WHERE NOT ( - col0 * - col0 - col1 = NULL )
----

query I rowsort
SELECT - 36 - + + col0 AS col1 FROM tab2
----
-100
-111
-82

query I rowsort
SELECT DISTINCT + 73 * - + ( + col2 ) FROM tab0
----
-3431
-7227
-730

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7095
SELECT DISTINCT + - 23 - + + COUNT( * ) + + 31 * COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE col1 * 38 / + CAST( NULL AS SIGNED ) BETWEEN NULL AND - col2
----
-23

skipif mysql # not compatible
query I rowsort label-7095
SELECT DISTINCT + - 23 - + + COUNT ( * ) + + 31 * COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE col1 * 38 / + CAST ( NULL AS INTEGER ) BETWEEN NULL AND - col2
----
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col2, col1 FROM tab0
----
10
21
47
81
99
1

query II rowsort
SELECT DISTINCT col2, + col2 AS col2 FROM tab2
----
23
23
40
40
58
58

query I rowsort
SELECT ( col0 ) * - col1 * col1 FROM tab0 AS cor0
----
-38367
-97
-98415

query I rowsort
SELECT + 97 AS col0 FROM tab0 WHERE NOT NULL > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7100
SELECT - CAST( NULL AS SIGNED ) * ( + + col1 ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7100
SELECT - CAST ( NULL AS INTEGER ) * ( + + col1 ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7101
SELECT ALL MAX( + + col0 ) * + COUNT( 25 ) AS col0 FROM tab2
----
225

skipif mysql # not compatible
query I rowsort label-7101
SELECT ALL MAX ( + + col0 ) * + COUNT ( 25 ) AS col0 FROM tab2
----
225

query I rowsort
SELECT - + ( 49 ) FROM tab0 AS cor0
----
-49
-49
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7103
SELECT CAST( NULL AS SIGNED ) * 26 * - + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7103
SELECT CAST ( NULL AS INTEGER ) * 26 * - + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 + - 71 + - - 95 * + col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7105
SELECT MAX( DISTINCT + ( - col2 ) ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-7105
SELECT MAX ( DISTINCT + ( - col2 ) ) FROM tab0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-7106
SELECT ALL MAX( ALL + col2 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-7106
SELECT ALL MAX ( ALL + col2 ) FROM tab2 AS cor0
----
58

query I rowsort
SELECT - - col1 + + 54 * + 18 FROM tab1 AS cor0
----
1019
977
986

query I rowsort
SELECT ( - - col0 ) + - 77 FROM tab0 AS cor0
----
-62
10
20

query I rowsort
SELECT - - col2 * col0 FROM tab1 cor0 WHERE NULL <> col1 + - 57 - - 79 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7110
SELECT + + MIN( + + col0 ) + COUNT( * ) AS col2 FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-7110
SELECT + + MIN ( + + col0 ) + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
54

query I rowsort
SELECT ALL + 5 + - col2 FROM tab0 AS cor0
----
-42
-5
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-7112
SELECT ALL 24 + COUNT( DISTINCT 74 ) * - COUNT( * ) FROM tab0 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-7112
SELECT ALL 24 + COUNT ( DISTINCT 74 ) * - COUNT ( * ) FROM tab0 AS cor0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7113
SELECT + + ( MIN( ALL - col0 ) ) + + 75 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7113
SELECT + + ( MIN ( ALL - col0 ) ) + + 75 FROM tab2 cor0
----
0

query I rowsort
SELECT + col1 + - + 82 FROM tab0 AS cor0
----
-1
-61
-81

query III rowsort
SELECT * FROM tab0 WHERE - + 62 NOT BETWEEN - col1 AND NULL
----
87
21
10
97
1
99

query II rowsort
SELECT DISTINCT 26 * - 14, + col2 AS col1 FROM tab1
----
-364
59
-364
68
-364
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7117
SELECT SUM( DISTINCT - - 40 ) FROM tab0
----
40

skipif mysql # not compatible
query I rowsort label-7117
SELECT SUM ( DISTINCT - - 40 ) FROM tab0
----
40

query I rowsort
SELECT DISTINCT + col0 - col0 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + - 77 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col2 * - col2 ) <= NULL
----

query I rowsort
SELECT - 72 - - 74 AS col2 FROM tab0 AS cor0
----
2
2
2

query I rowsort
SELECT DISTINCT + col1 + col0 + + col2 AS col0 FROM tab1 AS cor0
----
149
161
206

onlyif mysql # aggregate syntax: 
query I rowsort label-7123
SELECT DISTINCT + + MIN( + ( - 53 ) ) AS col2 FROM tab2 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-7123
SELECT DISTINCT + + MIN ( + ( - 53 ) ) AS col2 FROM tab2 AS cor0
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7124
SELECT - + col2 * + CAST( col1 AS SIGNED ) col0 FROM tab2 cor0
----
-1173
-3080
-3886

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7124
SELECT - + col2 * + CAST ( col1 AS INTEGER ) col0 FROM tab2 cor0
----
-1173
-3080
-3886

query I rowsort
SELECT - ( 71 ) * - 58 FROM tab0 AS cor0
----
4118
4118
4118

query I rowsort
SELECT ALL col0 * + 35 AS col0 FROM tab2 AS cor0
----
1610
2240
2625

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7127
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + CAST( - + 46 AS SIGNED ) ) BETWEEN + 47 * - + 32 AND - + col0
----
87
21
10
97
1
99

skipif mysql # not compatible
query III rowsort label-7127
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + CAST ( - + 46 AS INTEGER ) ) BETWEEN + 47 * - + 32 AND - + col0
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7128
SELECT ALL MIN( + - 93 ) AS col2 FROM tab0
----
-93

skipif mysql # not compatible
query I rowsort label-7128
SELECT ALL MIN ( + - 93 ) AS col2 FROM tab0
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-7129
SELECT ALL + 6 DIV + 27 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7129
SELECT ALL + 6 / + 27 AS col1 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7130
SELECT COUNT( * ) AS col0, + COUNT( * ) DIV COUNT( * ) FROM tab1
----
3
1

skipif mysql # not compatible
query II rowsort label-7130
SELECT COUNT ( * ) AS col0, + COUNT ( * ) / COUNT ( * ) FROM tab1
----
3
1

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - 64 + + 72 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7132
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE NOT ( NULL IS NOT NULL )
----
3

skipif mysql # not compatible
query I rowsort label-7132
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE NOT ( NULL IS NOT NULL )
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-7133
SELECT + col0, + 27 DIV + - 31 * - 17 AS col2 FROM tab1
----
51
0
85
0
91
0

skipif mysql # not compatible
query II rowsort label-7133
SELECT + col0, + 27 / + - 31 * - 17 AS col2 FROM tab1
----
51
0
85
0
91
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7134
SELECT DISTINCT SUM( DISTINCT + 44 ) FROM tab2
----
44

skipif mysql # not compatible
query I rowsort label-7134
SELECT DISTINCT SUM ( DISTINCT + 44 ) FROM tab2
----
44

query I rowsort
SELECT ALL + col2 * 52 - - 98 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7136
SELECT + COUNT( * ), + MIN( ALL - col2 ) AS col2 FROM tab1
----
3
-96

skipif mysql # not compatible
query II rowsort label-7136
SELECT + COUNT ( * ), + MIN ( ALL - col2 ) AS col2 FROM tab1
----
3
-96

query I rowsort
SELECT + col1 + - + col2 + + + 75 + - col1 FROM tab0 cor0
----
-24
28
65

query I rowsort
SELECT DISTINCT col0 + - col1 * + 86 FROM tab0 AS cor0
----
-1719
-6951
11

query I rowsort
SELECT 5 * col0 AS col2 FROM tab1
----
255
425
455

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7140
SELECT 73 - + CAST( 54 AS SIGNED ) * col0 FROM tab1
----
-2681
-4517
-4841

skipif mysql # not compatible
query I rowsort label-7140
SELECT 73 - + CAST ( 54 AS INTEGER ) * col0 FROM tab1
----
-2681
-4517
-4841

onlyif mysql # aggregate syntax: 
query I rowsort label-7141
SELECT 11 - COUNT( * ) AS col0 FROM tab2
----
8

skipif mysql # not compatible
query I rowsort label-7141
SELECT 11 - COUNT ( * ) AS col0 FROM tab2
----
8

query I rowsort
SELECT - col1 FROM tab0 WHERE 86 + col0 IS NOT NULL
----
-1
-21
-81

query I rowsort
SELECT + ( - 26 ) / col2 AS col1 FROM tab1 WHERE NOT ( col1 * col2 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7144
SELECT DISTINCT - 83 DIV + col1 + - col1 AS col1 FROM tab1
----
-19
-21
-48

skipif mysql # not compatible
query I rowsort label-7144
SELECT DISTINCT - 83 / + col1 + - col1 AS col1 FROM tab1
----
-19
-21
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-7145
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE ( - 92 ) NOT IN ( - col2 )
----
3

skipif mysql # not compatible
query I rowsort label-7145
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE ( - 92 ) NOT IN ( - col2 )
----
3

query I rowsort
SELECT ALL - col0 + - 15 FROM tab2 WHERE ( NULL ) > - col0
----

query I rowsort
SELECT + col0 FROM tab0 WHERE NOT 46 IS NULL
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7148
SELECT - CAST( + col2 AS SIGNED ) AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-7148
SELECT - CAST ( + col2 AS INTEGER ) AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE col1 * col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7150
SELECT + MIN( + col0 ) AS col1 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-7150
SELECT + MIN ( + col0 ) AS col1 FROM tab2
----
46

query I rowsort
SELECT + ( 40 ) AS col0 FROM tab0
----
40
40
40

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + col2 - + col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= ( - 59 )
----

query I rowsort
SELECT - ( 9 ) AS col2 FROM tab0
----
-9
-9
-9

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 = ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - 89 + 17 >= ( + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col2 * + 31 AS col2 FROM tab1
----
1829
2108
2976

onlyif mysql # aggregate syntax: 
query I rowsort label-7158
SELECT DISTINCT + MAX( col2 ) - - 86 AS col2 FROM tab1
----
182

skipif mysql # not compatible
query I rowsort label-7158
SELECT DISTINCT + MAX ( col2 ) - - 86 AS col2 FROM tab1
----
182

query I rowsort
SELECT + 55 FROM tab1 WHERE NOT - col2 BETWEEN col1 + + col2 AND ( NULL )
----
55
55
55

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 + col2 > ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 36 - - 19 < - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-7162
SELECT - 17 DIV + col2 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7162
SELECT - 17 / + col2 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL col0 - - 8 AS col1 FROM tab2
----
54
72
83

onlyif mysql # DIV for integer division: 
query I rowsort label-7164
SELECT + col2 DIV - ( - col2 ) FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7164
SELECT + col2 / - ( - col2 ) FROM tab0
----
1
1
1

query I rowsort
SELECT - 23 * col0 AS col2 FROM tab2
----
-1058
-1472
-1725

onlyif mysql # aggregate syntax: 
query I rowsort label-7166
SELECT - MIN( DISTINCT 42 ) * 42 FROM tab0
----
-1764

skipif mysql # not compatible
query I rowsort label-7166
SELECT - MIN ( DISTINCT 42 ) * 42 FROM tab0
----
-1764

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7167
SELECT ALL CAST( NULL AS SIGNED ) / MIN( DISTINCT + col2 * - col2 ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7167
SELECT ALL CAST ( NULL AS INTEGER ) / MIN ( DISTINCT + col2 * - col2 ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT + ( + col1 ) * ( - 43 ) AS col1 FROM tab2
----
-2193
-2881
-3311

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + 64 - - col2 * col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7170
SELECT COUNT( ALL col0 ) / + MIN( col0 ) + 66 FROM tab2 WHERE + 91 BETWEEN col2 / col1 AND - 32 * col0 + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-7170
SELECT COUNT ( ALL col0 ) / + MIN ( col0 ) + 66 FROM tab2 WHERE + 91 BETWEEN col2 / col1 AND - 32 * col0 + 6
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7171
SELECT CAST( NULL AS SIGNED ) * COUNT( * ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7171
SELECT CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col0 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 86 * - 26 col0 FROM tab1
----
-2236
-2236
-2236

query I rowsort
SELECT 24 * + 1 FROM tab0
----
24
24
24

query I rowsort
SELECT DISTINCT 42 + - col0 AS col1 FROM tab0
----
-45
-55
27

query I rowsort
SELECT - col2 * 34 AS col1 FROM tab2
----
-1360
-1972
-782

query I rowsort
SELECT ( - col1 ) * ( + col1 ) FROM tab0
----
-1
-441
-6561

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 + col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col1 ) IN ( + col1 + + 93 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7179
SELECT + MIN( DISTINCT 71 ) FROM tab2 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-7179
SELECT + MIN ( DISTINCT 71 ) FROM tab2 AS cor0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7180
SELECT MAX( 53 ) FROM tab1 AS cor0 CROSS JOIN tab2
----
53

skipif mysql # not compatible
query I rowsort label-7180
SELECT MAX ( 53 ) FROM tab1 AS cor0 CROSS JOIN tab2
----
53

query I rowsort
SELECT + col0 / col1 + + 62 AS col2 FROM tab2 WHERE NOT ( col0 - - col1 ) = ( NULL )
----

query I rowsort
SELECT 56 * 47 FROM tab0 AS cor0 CROSS JOIN tab1
----
9 values hashing to bbcb6fcfedc54174869e2604300c947e

onlyif mysql # aggregate syntax: 
query I rowsort label-7183
SELECT DISTINCT + COUNT( * ) col1 FROM tab2 WHERE NOT ( col2 * - col0 + col1 ) >= 36
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7183
SELECT DISTINCT + COUNT ( * ) col1 FROM tab2 WHERE NOT ( col2 * - col0 + col1 ) >= 36
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7184
SELECT + ( MAX( ALL + col1 ) ) AS col1 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-7184
SELECT + ( MAX ( ALL + col1 ) ) AS col1 FROM tab0 AS cor0
----
81

query I rowsort
SELECT DISTINCT AVG ( - col1 ) + 6 FROM tab2 AS cor0 WHERE col0 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE NOT ( ( - col2 ) ) IS NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7187
SELECT ALL + + 31 * + COUNT( * ) FROM tab1 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-7187
SELECT ALL + + 31 * + COUNT ( * ) FROM tab1 AS cor0
----
93

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + ( col0 ) NOT IN ( + 30 + ( col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7189
SELECT ALL + COUNT( * ) * - 5 FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-7189
SELECT ALL + COUNT ( * ) * - 5 FROM tab1 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7190
SELECT 10 * + COUNT( * ) FROM tab0 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-7190
SELECT 10 * + COUNT ( * ) FROM tab0 AS cor0
----
30

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( col2 ) AND col0 + + col1
----

query I rowsort
SELECT - ( col0 ) * + 62 FROM tab1 AS cor0
----
-3162
-5270
-5642

onlyif mysql # aggregate syntax: 
query I rowsort label-7193
SELECT + COUNT( DISTINCT col2 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7193
SELECT + COUNT ( DISTINCT col2 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

query I rowsort
SELECT - col0 * + 21 FROM tab0
----
-1827
-2037
-315

query I rowsort
SELECT 10 * - col2 + col1 FROM tab1
----
-585
-633
-946

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * 24 col2 FROM tab0
----
1128
2376
240

query I rowsort
SELECT col2 + - + col0 + + col0 AS col1 FROM tab1
----
59
68
96

query I rowsort
SELECT col2 AS col1 FROM tab0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT DISTINCT col1 * 39 FROM tab1
----
1833
195
546

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 + + col1 * + col0 IS NULL
----

query I rowsort
SELECT - + col1 * - - col1 AS col1 FROM tab1 AS cor0
----
-196
-2209
-25

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT - 67 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7203
SELECT ALL COUNT( - ( + col2 ) ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7203
SELECT ALL COUNT ( - ( + col2 ) ) AS col1 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7204
SELECT * FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) + + 46 <> + ( col0 ) * - col2
----

skipif mysql # not compatible
query III rowsort label-7204
SELECT * FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) + + 46 <> + ( col0 ) * - col2
----

query I rowsort
SELECT ALL + ( + 97 ) FROM tab1 AS cor0
----
97
97
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7206
SELECT - - CAST( NULL AS SIGNED ) + 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-7206
SELECT - - CAST ( NULL AS INTEGER ) + col2 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( - 19 ) FROM tab0 AS cor0 WHERE NOT + 75 + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7208
SELECT col2 * - ( - 58 * 28 ) col0 FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) * col2 IS NULL
----
37352
64960
94192

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7208
SELECT col2 * - ( - 58 * 28 ) col0 FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) * col2 IS NULL
----
37352
64960
94192

query I rowsort
SELECT DISTINCT - col1 + 2 AS col2 FROM tab2 AS cor0
----
-49
-65
-75

query I rowsort
SELECT col0 * - 52 + - col2 + col0 FROM tab2 AS cor0
----
-2369
-3304
-3883

onlyif mysql # aggregate syntax: 
query I rowsort label-7211
SELECT DISTINCT COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE col1 <> col1
----
0

skipif mysql # not compatible
query I rowsort label-7211
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE col1 <> col1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - - 91 - + col1 + - col1 col0 FROM tab1 AS cor0
----
-4
-94
12

query I rowsort
SELECT DISTINCT + 63 + + - col0 FROM tab1
----
-22
-28
12

query I rowsort
SELECT ALL 5 - - col2 AS col2 FROM tab0
----
104
15
52

onlyif mysql # aggregate syntax: 
query II rowsort label-7215
SELECT - SUM( ALL - + col1 ), + ( - COUNT( * ) ) + + ( - COUNT( * ) ) AS col0 FROM tab1
----
66
-6

skipif mysql # not compatible
query II rowsort label-7215
SELECT - SUM ( ALL - + col1 ), + ( - COUNT ( * ) ) + + ( - COUNT ( * ) ) AS col0 FROM tab1
----
66
-6

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 99 + + col1 * col2 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 9 * - col2 - - 96 col1 FROM tab2
----
-111
-264
-426

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7218
SELECT ALL CAST( NULL AS SIGNED ) - + - ( + MIN( - col2 ) ) * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7218
SELECT ALL CAST ( NULL AS INTEGER ) - + - ( + MIN ( - col2 ) ) * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7219
SELECT + + col0 DIV - 18 FROM tab1 cor0
----
-2
-4
-5

skipif mysql # not compatible
query I rowsort label-7219
SELECT + + col0 / - 18 FROM tab1 cor0
----
-2
-4
-5

query I rowsort
SELECT ALL col0 AS col1 FROM tab0 WHERE NULL >= - + 2
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col0 ) <= NULL
----

query I rowsort
SELECT DISTINCT 68 * - - 21 * + col0 FROM tab0 AS cor0
----
124236
138516
21420

query I rowsort
SELECT - 52 FROM tab0 AS cor0 WHERE NOT col1 + + + 92 IS NOT NULL
----

query I rowsort
SELECT ALL - - 4 + - col0 AS col0 FROM tab2 AS cor0
----
-42
-60
-71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * + col0 col2 FROM tab0 AS cor0
----
225
7569
9409

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col2 * - col2 / + 20 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col1 + + 71 AS col2 FROM tab1 AS cor0 WHERE NOT col0 > NULL
----

query I rowsort
SELECT DISTINCT col0 + - col0 + - - col0 - col0 * - col1 + + - col0 AS col1 FROM tab0
----
1215
1827
97

query III rowsort
SELECT * FROM tab2 WHERE NOT ( ( NOT ( + 44 ) > + col2 ) )
----
46
51
23
64
77
40

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col2 ) > NULL
----

query II rowsort
SELECT ALL col0 * - col2 AS col2, + 30 AS col0 FROM tab1
----
-4896
30
-5015
30
-6188
30

query I rowsort
SELECT - 63 * - col0 AS col1 FROM tab2 WHERE NOT ( NOT 1 NOT IN ( + col2 - + col0 - - 70 ) )
----
2898
4032
4725

query I rowsort
SELECT - col1 AS col1 FROM tab2 WHERE + + 14 NOT BETWEEN - col0 AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( 72 * col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 97 * + col0 col1 FROM tab2
----
4462
6208
7275

onlyif mysql # aggregate syntax: 
query I rowsort label-7236
SELECT DISTINCT 48 * - - MIN( - col0 ) FROM tab2 AS cor0
----
-3600

skipif mysql # not compatible
query I rowsort label-7236
SELECT DISTINCT 48 * - - MIN ( - col0 ) FROM tab2 AS cor0
----
-3600

onlyif mysql # DIV for integer division: 
query II rowsort label-7237
SELECT + col0 * + col1 + ( + col2 ) AS col0, ( - col0 ) * col1 + - 56 DIV + col0 FROM tab1 AS cor0
----
4345
-4277
484
-425
810
-715

skipif mysql # not compatible
query II rowsort label-7237
SELECT + col0 * + col1 + ( + col2 ) AS col0, ( - col0 ) * col1 + - 56 / + col0 FROM tab1 AS cor0
----
4345
-4277
484
-425
810
-715

query I rowsort
SELECT ALL - 22 + + - col0 FROM tab1 AS cor0
----
-107
-113
-73

query I rowsort
SELECT ALL + col1 * - col2 * + col2 * - 99 + + 56 AS col1 FROM tab0 AS cor0
----
17714027
207956
970355

query I rowsort
SELECT - 28 + col2 AS col2 FROM tab2 cor0
----
-5
12
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7241
SELECT ALL CAST( NULL AS SIGNED ) * - - CAST( NULL AS SIGNED ) * + 19 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7241
SELECT ALL CAST ( NULL AS INTEGER ) * - - CAST ( NULL AS INTEGER ) * + 19 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7242
SELECT ALL COUNT( * ) DIV - + COUNT( * ) AS col1 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-7242
SELECT ALL COUNT ( * ) / - + COUNT ( * ) AS col1 FROM tab1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7243
SELECT DISTINCT - COUNT( * ) col0 FROM tab0 WHERE NOT NULL < + 95
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7243
SELECT DISTINCT - COUNT ( * ) col0 FROM tab0 WHERE NOT NULL < + 95
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7244
SELECT ALL + ( 20 ) DIV + - col1 * + col2 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7244
SELECT ALL + ( 20 ) / + - col1 * + col2 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + AVG ( + col0 ) FROM tab1 AS cor0 WHERE ( NOT ( - col1 ) NOT BETWEEN ( NULL ) AND - 94 - + col0 - 48 * + col1 )
----
NULL

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL BETWEEN + 48 AND NULL
----

query I rowsort
SELECT - col1 * ( col0 ) - - 70 AS col2 FROM tab2 cor0 WHERE col0 * + col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7248
SELECT DISTINCT + + CAST( + COUNT( * ) AS SIGNED ) + - + MAX( - col2 ) FROM tab0 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-7248
SELECT DISTINCT + + CAST ( + COUNT ( * ) AS INTEGER ) + - + MAX ( - col2 ) FROM tab0 AS cor0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7249
SELECT + 73 * + COUNT( + col0 ) FROM tab0 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
219

skipif mysql # not compatible
query I rowsort label-7249
SELECT + 73 * + COUNT ( + col0 ) FROM tab0 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
219

onlyif mysql # aggregate syntax: 
query I rowsort label-7250
SELECT ALL MIN( + col1 ) AS col1 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-7250
SELECT ALL MIN ( + col1 ) AS col1 FROM tab2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7251
SELECT MAX( DISTINCT - 2 ) FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-7251
SELECT MAX ( DISTINCT - 2 ) FROM tab1
----
-2

query III rowsort
SELECT * FROM tab2 WHERE NOT - 21 <= + col1 - - + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7253
SELECT DISTINCT 4 DIV - col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7253
SELECT DISTINCT 4 / - col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7254
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE + - col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7254
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE + - col2 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7255
SELECT DISTINCT - SUM( + - col1 ) AS col2 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-7255
SELECT DISTINCT - SUM ( + - col1 ) AS col2 FROM tab2
----
195

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7256
SELECT DISTINCT + CAST( - SUM( ALL - - 60 ) AS SIGNED ) FROM tab2 AS cor0
----
-180

skipif mysql # not compatible
query I rowsort label-7256
SELECT DISTINCT + CAST ( - SUM ( ALL - - 60 ) AS INTEGER ) FROM tab2 AS cor0
----
-180

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7257
SELECT ( - 26 ) DIV 92 DIV - COUNT( * ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7257
SELECT ( - 26 ) / 92 / - COUNT ( * ) AS col1 FROM tab0
----
0

query I rowsort
SELECT ALL - 90 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + ( + col1 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <= + 76
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7261
SELECT DISTINCT 46 + + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-7261
SELECT DISTINCT 46 + + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7262
SELECT ALL - MAX( col0 ) + + - MAX( + col2 ) * COUNT( * ) FROM tab0 AS cor0
----
-394

skipif mysql # not compatible
query I rowsort label-7262
SELECT ALL - MAX ( col0 ) + + - MAX ( + col2 ) * COUNT ( * ) FROM tab0 AS cor0
----
-394

onlyif mysql # aggregate syntax: 
query I rowsort label-7263
SELECT ALL - MAX( + + col0 ) + + 15 FROM tab2 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-7263
SELECT ALL - MAX ( + + col0 ) + + 15 FROM tab2 AS cor0
----
-60

query I rowsort
SELECT DISTINCT + 1 + - - 17 AS col2 FROM tab1
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7265
SELECT ALL col0 AS col1 FROM tab1 WHERE ( CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7265
SELECT ALL col0 AS col1 FROM tab1 WHERE ( CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7266
SELECT ALL COUNT( * ) + - ( + MIN( + 12 ) ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-7266
SELECT ALL COUNT ( * ) + - ( + MIN ( + 12 ) ) FROM tab0
----
-9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7267
SELECT ALL + CAST( NULL AS DECIMAL ) AS col1 FROM tab2 WHERE NOT - col1 NOT BETWEEN - + 35 AND - col0 + + col1
----

skipif mysql # not compatible
query I rowsort label-7267
SELECT ALL + CAST ( NULL AS REAL ) AS col1 FROM tab2 WHERE NOT - col1 NOT BETWEEN - + 35 AND - col0 + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7268
SELECT SUM( - 82 ) + - - MAX( ALL - + col0 ) * + COUNT( * ) AS col0 FROM tab1
----
-399

skipif mysql # not compatible
query I rowsort label-7268
SELECT SUM ( - 82 ) + - - MAX ( ALL - + col0 ) * + COUNT ( * ) AS col0 FROM tab1
----
-399

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 22 + - col2 * - 65 - + + col1 col2 FROM tab2
----
1422
2501
3681

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7270
SELECT ALL + CAST( + - col1 AS SIGNED ) FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-7270
SELECT ALL + CAST ( + - col1 AS INTEGER ) FROM tab1
----
-14
-47
-5

query I rowsort
SELECT DISTINCT + - 29 FROM tab1 WHERE NOT NULL <> - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7272
SELECT + + col1 AS col2 FROM tab1 WHERE - 53 + + col1 / - - ( - CAST( col1 AS SIGNED ) ) - + - ( 36 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-7272
SELECT + + col1 AS col2 FROM tab1 WHERE - 53 + + col1 / - - ( - CAST ( col1 AS INTEGER ) ) - + - ( 36 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7273
SELECT DISTINCT + - COUNT( DISTINCT - 52 ) col0 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7273
SELECT DISTINCT + - COUNT ( DISTINCT - 52 ) col0 FROM tab1 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7274
SELECT ALL - COUNT( * ) FROM tab1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7274
SELECT ALL - COUNT ( * ) FROM tab1 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT - col0 - col0 + col0 FROM tab2
----
-46
-64
-75

query I rowsort
SELECT ALL col0 - + col2 AS col0 FROM tab1
----
-45
23
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col1, 34 AS col0 FROM tab2
----
51
34
67
34
77
34

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( - + col1 ) IS NULL
----

query I rowsort
SELECT DISTINCT + col0 * - + 4 FROM tab1 cor0
----
-204
-340
-364

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7280
SELECT + - COUNT( * ) DIV + 77 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7280
SELECT + - COUNT ( * ) / + 77 AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7281
SELECT DISTINCT + 63 AS col2, COUNT( * ) * - 94 FROM tab1 AS cor0
----
63
-282

skipif mysql # not compatible
query II rowsort label-7281
SELECT DISTINCT + 63 AS col2, COUNT ( * ) * - 94 FROM tab1 AS cor0
----
63
-282

query I rowsort
SELECT + + col1 * - + ( + col2 ) AS col2 FROM tab0 AS cor0
----
-210
-3807
-99

query I rowsort
SELECT ALL + 68 * - col1 FROM tab0
----
-1428
-5508
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-7284
SELECT DISTINCT MAX( + col2 ) * COUNT( - + col0 ) AS col0 FROM tab2
----
174

skipif mysql # not compatible
query I rowsort label-7284
SELECT DISTINCT MAX ( + col2 ) * COUNT ( - + col0 ) AS col0 FROM tab2
----
174

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 - 89 NOT BETWEEN ( - - col0 ) AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN + col1 * 64 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 31 <> col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7288
SELECT + MAX( - 6 ) * 90 + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-543

skipif mysql # not compatible
query I rowsort label-7288
SELECT + MAX ( - 6 ) * 90 + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-543

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) > + col1
----

query I rowsort
SELECT - 1 * + col0 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT + + col0 * + 8 FROM tab2 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT - 0 * + col0 AS col2 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7293
SELECT + MIN( DISTINCT + col1 ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7293
SELECT + MIN ( DISTINCT + col1 ) AS col0 FROM tab0
----
1

query II rowsort
SELECT DISTINCT + 7 + + - col0 * 99 AS col2, + col0 AS col2 FROM tab2 AS cor0
----
-4547
46
-6329
64
-7418
75

query II rowsort
SELECT ALL col1 AS col1, + 13 + + col1 FROM tab0 AS cor0
----
1
14
21
34
81
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7296
SELECT ( + 15 ) DIV - + MIN( DISTINCT col0 ) col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7296
SELECT ( + 15 ) / - + MIN ( DISTINCT col0 ) col2 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7297
SELECT - SUM( DISTINCT col0 ) AS col2 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-7297
SELECT - SUM ( DISTINCT col0 ) AS col2 FROM tab1 AS cor0
----
-227

query I rowsort
SELECT + 28 AS col1 FROM tab2 cor0
----
28
28
28

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 * - col1 + + col0 BETWEEN - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7300
SELECT + COUNT( * ) * + COUNT( * ) col0 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7300
SELECT + COUNT ( * ) * + COUNT ( * ) col0 FROM tab0 AS cor0
----
9

query III rowsort
SELECT * FROM tab1 WHERE - 95 <= ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 69 * + - 65 - + col0 FROM tab2 WHERE col1 IS NOT NULL
----
-4531
-4549
-4560

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7303
SELECT ALL * FROM tab0 WHERE NOT - CAST( + col1 AS SIGNED ) NOT BETWEEN NULL AND + col1
----

skipif mysql # not compatible
query III rowsort label-7303
SELECT ALL * FROM tab0 WHERE NOT - CAST ( + col1 AS INTEGER ) NOT BETWEEN NULL AND + col1
----

query I rowsort
SELECT ALL 65 + 85 AS col1 FROM tab1
----
150
150
150

query I rowsort
SELECT + 43 * + col0 + col2 + ( - - 8 ) * - 94 AS col1 FROM tab2
----
1249
2040
2531

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7306
SELECT col0 * - - ( + - CAST( NULL AS SIGNED ) ) + + col0 + col1 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7306
SELECT col0 * - - ( + - CAST ( NULL AS INTEGER ) ) + + col0 + col1 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * - + col0 + - 77 FROM tab2
----
2039
4019
5548

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7308
SELECT + col1 * + - CAST( - - col2 AS SIGNED ) * + col1 + 56 + - col2 FROM tab0 cor0
----
-142
-308358
-4364

skipif mysql # not compatible
query I rowsort label-7308
SELECT + col1 * + - CAST ( - - col2 AS INTEGER ) * + col1 + 56 + - col2 FROM tab0 cor0
----
-142
-308358
-4364

query I rowsort
SELECT - 58 + + col1 + - - 2 AS col1 FROM tab0 AS cor0
----
-35
-55
25

onlyif mysql # DIV for integer division: 
query I rowsort label-7310
SELECT 57 + - 43 DIV - 44 FROM tab1 AS cor0
----
57
57
57

skipif mysql # not compatible
query I rowsort label-7310
SELECT 57 + - 43 / - 44 FROM tab1 AS cor0
----
57
57
57

query I rowsort
SELECT DISTINCT + col1 - 50 AS col1 FROM tab0 AS cor0
----
-29
-49
31

query I rowsort
SELECT DISTINCT 91 - - col2 * 95 FROM tab2
----
2276
3891
5601

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7313
SELECT * FROM tab1 WHERE + ( 81 ) / - - 7 + col0 IN ( - col2 / + col2, + ( + - CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-7313
SELECT * FROM tab1 WHERE + ( 81 ) / - - 7 + col0 IN ( - col2 / + col2, + ( + - CAST ( NULL AS INTEGER ) ) )
----

query I rowsort
SELECT DISTINCT + + col1 * - - col0 AS col0 FROM tab2 AS cor0 WHERE + 79 / 86 IS NOT NULL
----
2346
4928
5025

query I rowsort
SELECT - + ( - col2 ) AS col2 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7316
SELECT DISTINCT COUNT( ALL + col1 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7316
SELECT DISTINCT COUNT ( ALL + col1 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL + ( - col0 ) * - - col1 AS col1 FROM tab1 AS cor0
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-7318
SELECT - SUM( + col2 ) FROM tab2 cor0
----
-121

skipif mysql # not compatible
query I rowsort label-7318
SELECT - SUM ( + col2 ) FROM tab2 cor0
----
-121

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 IN ( col0 + + 78 + 20 + + 42, 76 + - + col1 + - - 7 + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - 18 AS col0 FROM tab2 cor0
----
18
18
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - + 0 col2 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7322
SELECT - CAST( NULL AS SIGNED ) / + - col1 * + col0 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7322
SELECT - CAST ( NULL AS INTEGER ) / + - col1 * + col0 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7323
SELECT ALL - SUM( DISTINCT + col1 ) AS col0 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-7323
SELECT ALL - SUM ( DISTINCT + col1 ) AS col0 FROM tab2
----
-195

onlyif mysql # DIV for integer division: 
query I rowsort label-7324
SELECT + 43 DIV + + 52 * - col2 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7324
SELECT + 43 / + + 52 * - col2 AS col1 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 31 col1, - col2 AS col2 FROM tab0
----
31
-10
31
-47
31
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7326
SELECT DISTINCT + SUM( col0 ) * - + 43 AS col0 FROM tab1 AS cor0
----
-9761

skipif mysql # not compatible
query I rowsort label-7326
SELECT DISTINCT + SUM ( col0 ) * - + 43 AS col0 FROM tab1 AS cor0
----
-9761

onlyif mysql # aggregate syntax: 
query I rowsort label-7327
SELECT - COUNT( * ) * SUM( - col1 ) FROM tab1
----
198

skipif mysql # not compatible
query I rowsort label-7327
SELECT - COUNT ( * ) * SUM ( - col1 ) FROM tab1
----
198

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7328
SELECT ALL COUNT( * ) + - CAST( NULL AS DECIMAL ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7328
SELECT ALL COUNT ( * ) + - CAST ( NULL AS REAL ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7329
SELECT DISTINCT + SUM( ALL - col1 ) FROM tab1 AS cor0 WHERE + - 95 < + col2 AND NOT - col2 / - 21 + + col1 + - + CAST( NULL AS SIGNED ) * col2 * - - 22 * + col2 IS NOT NULL
----
-66

skipif mysql # not compatible
query I rowsort label-7329
SELECT DISTINCT + SUM ( ALL - col1 ) FROM tab1 AS cor0 WHERE + - 95 < + col2 AND NOT - col2 / - 21 + + col1 + - + CAST ( NULL AS INTEGER ) * col2 * - - 22 * + col2 IS NOT NULL
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-7330
SELECT + + COUNT( * ) + - + 85 AS col1, MIN( - + 13 ) AS col1 FROM tab2 AS cor0
----
-82
-13

skipif mysql # not compatible
query II rowsort label-7330
SELECT + + COUNT ( * ) + - + 85 AS col1, MIN ( - + 13 ) AS col1 FROM tab2 AS cor0
----
-82
-13

query II rowsort
SELECT + col0 + - - col2 AS col1, col0 FROM tab2 AS cor0
----
104
64
133
75
69
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - - col2 col1 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7333
SELECT DISTINCT 95 + + - MAX( ALL + + col1 ) FROM tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-7333
SELECT DISTINCT 95 + + - MAX ( ALL + + col1 ) FROM tab1 AS cor0
----
48

query I rowsort
SELECT DISTINCT col0 + - col1 + + col0 + + - col0 + - ( col2 ) FROM tab2 AS cor0
----
-28
-50
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-7335
SELECT ALL + + 42 + COUNT( * ) FROM tab1 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-7335
SELECT ALL + + 42 + COUNT ( * ) FROM tab1 AS cor0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7336
SELECT + MAX( ALL + + col0 ) col1 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7336
SELECT + MAX ( ALL + + col0 ) col1 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
97

query I rowsort
SELECT col0 + col0 * - col1 AS col2 FROM tab2
----
-2300
-4864
-4950

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 * 21 + + - 33 col0, - col2 FROM tab1
----
1206
-59
1395
-68
1983
-96

query I rowsort
SELECT - 30 * - col0 AS col1 FROM tab1
----
1530
2550
2730

query I rowsort
SELECT ALL + col0 + + col1 + col2 AS col0 FROM tab1 AS cor0
----
149
161
206

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7341
SELECT * FROM tab2 AS cor0 WHERE + col1 NOT BETWEEN + col0 * - ( + + col2 ) / - col2 AND + + col2 + + CAST( NULL AS SIGNED )
----
75
67
58

skipif mysql # not compatible
query III rowsort label-7341
SELECT * FROM tab2 AS cor0 WHERE + col1 NOT BETWEEN + col0 * - ( + + col2 ) / - col2 AND + + col2 + + CAST ( NULL AS INTEGER )
----
75
67
58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7342
SELECT DISTINCT ( - col0 ) * - + CAST( NULL AS DECIMAL ) * - 97 - col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7342
SELECT DISTINCT ( - col0 ) * - + CAST ( NULL AS REAL ) * - 97 - col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7343
SELECT COUNT( - col0 ) + - 68 AS col0 FROM tab2
----
-65

skipif mysql # not compatible
query I rowsort label-7343
SELECT COUNT ( - col0 ) + - 68 AS col0 FROM tab2
----
-65

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7344
SELECT DISTINCT - - COUNT( * ) / + AVG ( ALL - - 62 ) + - COUNT( * ) + - CAST( NULL AS DECIMAL ) col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7344
SELECT DISTINCT - - COUNT ( * ) / + AVG ( ALL - - 62 ) + - COUNT ( * ) + - CAST ( NULL AS REAL ) col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7345
SELECT ALL - CAST( NULL AS SIGNED ) * + - col2 + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7345
SELECT ALL - CAST ( NULL AS INTEGER ) * + - col2 + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab0 AS cor0 WHERE 40 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7347
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT ( NOT col2 + CAST( - col1 AS SIGNED ) IS NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7347
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT ( NOT col2 + CAST ( - col1 AS INTEGER ) IS NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7348
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 11 + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7348
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 11 + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7349
SELECT DISTINCT + - SUM( + 57 ) AS col2 FROM tab0 AS cor0
----
-171

skipif mysql # not compatible
query I rowsort label-7349
SELECT DISTINCT + - SUM ( + 57 ) AS col2 FROM tab0 AS cor0
----
-171

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) < + - col2
----

query I rowsort
SELECT ALL + - 2 * + - 97 FROM tab0 AS cor0
----
194
194
194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 78 col1 FROM tab2
----
78
78
78

query I rowsort
SELECT DISTINCT - col2 * - 9 AS col0 FROM tab1
----
531
612
864

query I rowsort
SELECT - - col1 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - 98 * + col1 * + + 36 AS col2 FROM tab0
----
-285768
-3528
-74088

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7356
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN + 69 / col2 + + + CAST( NULL AS SIGNED ) + - + ( - col1 ) * + 28 + + col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-7356
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN + 69 / col2 + + + CAST ( NULL AS INTEGER ) + - + ( - col1 ) * + 28 + + col1 AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> + + col0
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 33 + - - col2 - col0 * 79 NOT BETWEEN - - col2 AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col2 AND 80
----

query I rowsort
SELECT DISTINCT - 43 * col0 AS col1 FROM tab0 AS cor0
----
-3741
-4171
-645

onlyif mysql # aggregate syntax: 
query I rowsort label-7361
SELECT + COUNT( * ) * - COUNT( * ) * + 24 * + - MAX( - - col1 ) FROM tab1 AS cor0
----
10152

skipif mysql # not compatible
query I rowsort label-7361
SELECT + COUNT ( * ) * - COUNT ( * ) * + 24 * + - MAX ( - - col1 ) FROM tab1 AS cor0
----
10152

onlyif mysql # aggregate syntax: 
query II rowsort label-7362
SELECT DISTINCT 25 * + - MIN( ALL 70 ) AS col2, 93 + + SUM( ALL col0 ) AS col1 FROM tab2 cor0 WHERE - 33 IS NULL
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7362
SELECT DISTINCT 25 * + - MIN ( ALL 70 ) AS col2, 93 + + SUM ( ALL col0 ) AS col1 FROM tab2 cor0 WHERE - 33 IS NULL
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7363
SELECT DISTINCT + + CAST( NULL AS DECIMAL ) + + COUNT( * ) col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7363
SELECT DISTINCT + + CAST ( NULL AS REAL ) + + COUNT ( * ) col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - 7 AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

onlyif mysql # aggregate syntax: 
query I rowsort label-7365
SELECT DISTINCT COUNT( * ) * - - MIN( ALL - - 65 ) AS col2 FROM tab1
----
195

skipif mysql # not compatible
query I rowsort label-7365
SELECT DISTINCT COUNT ( * ) * - - MIN ( ALL - - 65 ) AS col2 FROM tab1
----
195

query I rowsort
SELECT 64 + + col0 + col1 AS col0 FROM tab0
----
160
162
172

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7367
SELECT ( MAX( - ( + + CAST( - + 7 AS SIGNED ) ) ) ) FROM tab2
----
7

skipif mysql # not compatible
query I rowsort label-7367
SELECT ( MAX ( - ( + + CAST ( - + 7 AS INTEGER ) ) ) ) FROM tab2
----
7

query I rowsort
SELECT DISTINCT + 48 * + col0 * 33 * 12 * + col1 FROM tab2 AS cor0
----
44592768
93671424
95515200

query I rowsort
SELECT ALL + - col1 + + + col1 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + 45 AS col0 FROM tab1 AS cor0 WHERE + 15 + - col2 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + ( + - col0 ) + + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7372
SELECT DISTINCT + ( 29 ) - + COUNT( * ) FROM tab1 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-7372
SELECT DISTINCT + ( 29 ) - + COUNT ( * ) FROM tab1 AS cor0
----
26

query I rowsort
SELECT DISTINCT col0 * 25 FROM tab2
----
1150
1600
1875

query I rowsort
SELECT - ( ( - + col2 ) ) * + col2 AS col2 FROM tab0 WHERE NULL < NULL
----

query I rowsort
SELECT col2 / - col1 FROM tab1 WHERE - col1 * + - col1 >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7376
SELECT DISTINCT - AVG ( ALL 28 ) / CAST( NULL AS SIGNED ) * + + MIN( ALL col0 ) col0 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7376
SELECT DISTINCT - AVG ( ALL 28 ) / CAST ( NULL AS INTEGER ) * + + MIN ( ALL col0 ) col0 FROM tab1
----
NULL

query II rowsort
SELECT - ( + + ( 69 ) ) * - + col1 + col1, col1 FROM tab1
----
3290
47
350
5
980
14

query II rowsort
SELECT - col0 * - 70 AS col1, + col1 AS col2 FROM tab0 AS cor0
----
1050
81
6090
21
6790
1

query I rowsort
SELECT DISTINCT + - 86 AS col2 FROM tab0 AS cor0
----
-86

query II rowsort
SELECT col2 AS col0, 39 FROM tab1
----
59
39
68
39
96
39

query I rowsort
SELECT - col0 AS col1 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN + 68 AND + col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 14 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7384
SELECT col1 * - - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7384
SELECT col1 * - - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7385
SELECT COUNT( * ) FROM tab1 WHERE NOT + col2 > - ( - 57 )
----
0

skipif mysql # not compatible
query I rowsort label-7385
SELECT COUNT ( * ) FROM tab1 WHERE NOT + col2 > - ( - 57 )
----
0

query II rowsort
SELECT - ( - 84 ) AS col0, col2 FROM tab1
----
84
59
84
68
84
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7387
SELECT col0 + col2 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7387
SELECT col0 + col2 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 83 + + col1 * - ( - 80 ) + col1 FROM tab0
----
164
1784
6644

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7389
SELECT CAST( NULL AS SIGNED ) * - - SUM( ALL - + col1 ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7389
SELECT CAST ( NULL AS INTEGER ) * - - SUM ( ALL - + col1 ) AS col0 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col1 IS NOT NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7391
SELECT COUNT( ALL 12 ) * CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7391
SELECT COUNT ( ALL 12 ) * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7393
SELECT ALL + col1 + + - col1 + - 24 - col2 DIV - 89 + + + col1 DIV - 91 * + + col1 + + + 42 FROM tab1
----
18
18
19

skipif mysql # not compatible
query I rowsort label-7393
SELECT ALL + col1 + + - col1 + - 24 - col2 / - 89 + + + col1 / - 91 * + + col1 + + + 42 FROM tab1
----
18
18
19

query I rowsort
SELECT - 97 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b

query I rowsort
SELECT col0 * + - 25 FROM tab1
----
-1275
-2125
-2275

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7396
SELECT ALL CAST( + 41 AS SIGNED ) + - + col1 AS col0 FROM tab2 cor0
----
-10
-26
-36

skipif mysql # not compatible
query I rowsort label-7396
SELECT ALL CAST ( + 41 AS INTEGER ) + - + col1 AS col0 FROM tab2 cor0
----
-10
-26
-36

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 3 + - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + - col2 + - col1 * + 98 AS col0 FROM tab1 AS cor0
----
-1468
-4674
-549

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 / + col2 IS NULL
----

query I rowsort
SELECT ( - 84 ) + + col1 AS col1 FROM tab0 cor0
----
-3
-63
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-7401
SELECT 7 DIV col1 + - 22 + col0 FROM tab1 AS cor0
----
29
64
69

skipif mysql # not compatible
query I rowsort label-7401
SELECT 7 / col1 + - 22 + col0 FROM tab1 AS cor0
----
29
64
69

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( 42 ) IS NULL
----

query I rowsort
SELECT ALL - 92 * + + col0 + - col0 + - - col1 AS col2 FROM tab0 AS cor0
----
-1314
-8070
-9020

query I rowsort
SELECT + 68 AS col2 FROM tab2 cor0 WHERE ( 10 + col1 IS NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 74 col2, col2 * col2 AS col0 FROM tab2 AS cor0
----
74
1600
74
3364
74
529

query I rowsort
SELECT DISTINCT + 3 + - 94 * 6 AS col0 FROM tab0 AS cor0
----
-561

query I rowsort
SELECT DISTINCT col2 * + + col2 FROM tab1
----
3481
4624
9216

onlyif mysql # DIV for integer division: 
query I rowsort label-7408
SELECT ALL 36 DIV + col0 * - 51 - col1 AS col0 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-7408
SELECT ALL 36 / + col0 * - 51 - col1 AS col0 FROM tab1
----
-14
-47
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-7409
SELECT DISTINCT + col0 - 64 - + - col2 DIV + 7 + - col2 + + + ( - 60 ) FROM tab1
----
-156
-90
-92

skipif mysql # not compatible
query I rowsort label-7409
SELECT DISTINCT + col0 - 64 - + - col2 / + 7 + - col2 + + + ( - 60 ) FROM tab1
----
-156
-90
-92

query I rowsort
SELECT col2 AS col2 FROM tab0 WHERE NULL > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7411
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND ( ( + col0 ) * - 57 + CAST( - - col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7411
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND ( ( + col0 ) * - 57 + CAST ( - - col0 AS INTEGER ) )
----

query I rowsort
SELECT ALL 76 - + + col1 * - + 19 FROM tab0
----
1615
475
95

query III rowsort
SELECT DISTINCT 27 AS col1, 87 AS col1, col2 AS col1 FROM tab2
----
9 values hashing to 55313f78c29de19761448dce0a1ac60b

query I rowsort
SELECT ALL + 36 - + col1 + - - col1 FROM tab0
----
36
36
36

query I rowsort
SELECT DISTINCT - 64 AS col2 FROM tab1 WHERE NOT + ( col0 ) - + col2 IS NULL
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-7416
SELECT - - MAX( DISTINCT + ( - 69 ) ) FROM tab2 cor0
----
-69

skipif mysql # not compatible
query I rowsort label-7416
SELECT - - MAX ( DISTINCT + ( - 69 ) ) FROM tab2 cor0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-7417
SELECT ALL SUM( DISTINCT - col1 ) AS col0 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-7417
SELECT ALL SUM ( DISTINCT - col1 ) AS col0 FROM tab2 AS cor0
----
-195

query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE NOT + 52 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 21 IS NULL AND ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 45 > col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT 84 AS col1, col2 - - - col0 - ( - col1 ) FROM tab1 cor0
----
84
-21
84
24
84
59

query II rowsort
SELECT DISTINCT ( - 17 ) AS col1, col2 FROM tab0 WHERE NOT ( + 16 ) IS NULL
----
-17
10
-17
47
-17
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7423
SELECT DISTINCT + COUNT( * ) FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-7423
SELECT DISTINCT + COUNT ( * ) FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

query I rowsort
SELECT + 64 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

query I rowsort
SELECT + col2 * + col1 * + col1 AS col0 FROM tab0 AS cor0
----
308367
4410
99

query I rowsort
SELECT + + col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 IS NOT NULL OR NOT NULL IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7428
SELECT + - ( COUNT( ALL - + col1 ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7428
SELECT + - ( COUNT ( ALL - + col1 ) ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7429
SELECT ALL MIN( ALL - - col0 ) * + COUNT( * ) FROM tab2 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-7429
SELECT ALL MIN ( ALL - - col0 ) * + COUNT ( * ) FROM tab2 AS cor0
----
138

query II rowsort
SELECT ALL 11, col2 - 14 * - + 94 * col1 AS col0 FROM tab0
----
11
106643
11
1415
11
27646

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <= 17
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 <= ( - 38 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 1 col0, - col0 FROM tab1
----
-1
-51
-1
-85
-1
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7434
SELECT ALL + SUM( DISTINCT - ( - - 61 ) ) AS col0 FROM tab1
----
-61

skipif mysql # not compatible
query I rowsort label-7434
SELECT ALL + SUM ( DISTINCT - ( - - 61 ) ) AS col0 FROM tab1
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-7435
SELECT - COUNT( * ) * 52 FROM tab2
----
-156

skipif mysql # not compatible
query I rowsort label-7435
SELECT - COUNT ( * ) * 52 FROM tab2
----
-156

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 * + - col0 / col2 * + col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + 91 col0 FROM tab0 AS cor0
----
101
138
190

onlyif mysql # aggregate syntax: 
query I rowsort label-7438
SELECT - + ( COUNT( - 16 ) ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7438
SELECT - + ( COUNT ( - 16 ) ) FROM tab1 cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 70 * - col2 IS NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + col1 + + col1 * - col2 + 84 - 63 + + - col2 * col0 AS col2 FROM tab1 cor0
----
-5294
-6233
-9410

onlyif mysql # aggregate syntax: 
query I rowsort label-7442
SELECT DISTINCT - COUNT( * ) * + + 96 FROM tab1
----
-288

skipif mysql # not compatible
query I rowsort label-7442
SELECT DISTINCT - COUNT ( * ) * + + 96 FROM tab1
----
-288

query III rowsort
SELECT * FROM tab2 WHERE col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT 99 - + - 52 * - - 11 FROM tab1
----
671

query I rowsort
SELECT DISTINCT + 88 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-7446
SELECT COUNT( * ) FROM tab1 WHERE + col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7446
SELECT COUNT ( * ) FROM tab1 WHERE + col2 IS NOT NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 39 col1 FROM tab1 AS cor0
----
39

query I rowsort
SELECT col2 - - - col0 + - + 57 - - - col2 + col2 FROM tab1 AS cor0
----
-12
-80
-83

query I rowsort
SELECT ALL col1 * - 35 * - + col1 + col1 AS col0 FROM tab1
----
6874
77362
880

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7450
SELECT col1 col2 FROM tab0 WHERE + col1 NOT IN ( - CAST( NULL AS SIGNED ), col0 * - col0, + ( - col0 ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7450
SELECT col1 col2 FROM tab0 WHERE + col1 NOT IN ( - CAST ( NULL AS INTEGER ), col0 * - col0, + ( - col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7451
SELECT + 67 + + COUNT( * ) FROM tab0
----
70

skipif mysql # not compatible
query I rowsort label-7451
SELECT + 67 + + COUNT ( * ) FROM tab0
----
70

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col2 + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7453
SELECT CAST( + + col0 AS DECIMAL ) FROM tab0 WHERE NOT - col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7453
SELECT CAST ( + + col0 AS REAL ) FROM tab0 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7454
SELECT ALL + MIN( + col1 ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7454
SELECT ALL + MIN ( + col1 ) AS col1 FROM tab0
----
1

query I rowsort
SELECT + col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) <= 54
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7456
SELECT ALL - CAST( col0 AS SIGNED ) AS col2 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-7456
SELECT ALL - CAST ( col0 AS INTEGER ) AS col2 FROM tab2
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7457
SELECT ALL + + COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-7457
SELECT ALL + + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 40, - col0 * - + col0 + + 7 + + 4 * 46 + - - col1 col1 FROM tab0
----
40
497
40
7781
40
9601

onlyif mysql # aggregate syntax: 
query I rowsort label-7459
SELECT DISTINCT MAX( DISTINCT + + col1 ) AS col2 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-7459
SELECT DISTINCT MAX ( DISTINCT + + col1 ) AS col2 FROM tab1
----
47

query I rowsort
SELECT ALL + 27 * - 20 * - 59 AS col1 FROM tab1 AS cor0
----
31860
31860
31860

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7461
SELECT - CAST( col0 AS DECIMAL ) * - - col2 + col0 FROM tab2 AS cor0 WHERE NOT 75 <= NULL
----

skipif mysql # not compatible
query I rowsort label-7461
SELECT - CAST ( col0 AS REAL ) * - - col2 + col0 FROM tab2 AS cor0 WHERE NOT 75 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7462
SELECT ALL + 97 DIV col1 col0 FROM tab0 AS cor0
----
1
4
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7462
SELECT ALL + 97 / col1 col0 FROM tab0 AS cor0
----
1
4
97

query I rowsort
SELECT ALL col0 + + col1 + - col1 FROM tab1 AS cor0
----
51
85
91

query II rowsort
SELECT - col0 AS col0, 23 * col1 FROM tab1 AS cor0 WHERE NOT col0 + 92 + - col2 * - - col1 + col2 + - col0 BETWEEN + - col1 AND NULL
----
-51
322
-85
115
-91
1081

query I rowsort
SELECT + col2 + - 91 * + - col0 + - 18 FROM tab2
----
4191
5846
6865

query I rowsort
SELECT DISTINCT + 69 + + col2 * + col1 * + col0 + - col0 AS col2 FROM tab0
----
18252
57159
9575

query I rowsort
SELECT ( - 44 ) * col0 * + col2 + + ( col1 ) AS col0 FROM tab1
----
-215410
-220655
-272225

query I rowsort
SELECT + col1 + + 88 + + + col0 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
185
229
230

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7469
SELECT 24 + - CAST( - - col2 AS SIGNED ) AS col2 FROM tab1
----
-35
-44
-72

skipif mysql # not compatible
query I rowsort label-7469
SELECT 24 + - CAST ( - - col2 AS INTEGER ) AS col2 FROM tab1
----
-35
-44
-72

query I rowsort
SELECT 34 * - + col2 * + + col1 + + + ( + col1 ) FROM tab2
----
-104643
-132057
-39831

query II rowsort
SELECT - ( - - col1 ) AS col1, - col2 AS col2 FROM tab2
----
-51
-23
-67
-58
-77
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7472
SELECT + col2 * + CAST( + - col2 AS SIGNED ) AS col0 FROM tab2
----
-1600
-3364
-529

skipif mysql # not compatible
query I rowsort label-7472
SELECT + col2 * + CAST ( + - col2 AS INTEGER ) AS col0 FROM tab2
----
-1600
-3364
-529

query I rowsort
SELECT DISTINCT + + ( - col2 ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-59
-68
-96

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) < + col1 * + - 77
----

query II rowsort
SELECT - col1, - 43 FROM tab2 AS cor0 WHERE col0 BETWEEN - ( - col2 ) * - - 37 + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7476
SELECT ALL - 48 + + MIN( ALL + 62 ) FROM tab2 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-7476
SELECT ALL - 48 + + MIN ( ALL + 62 ) FROM tab2 AS cor0
----
14

query I rowsort
SELECT ( + col1 ) * - col1 - 23 + + - col0 + + col1 * col2 FROM tab2
----
-1497
-2936
-701

onlyif mysql # DIV for integer division: 
query I rowsort label-7478
SELECT + ( - 79 ) DIV - 30 + 76 + + col1 AS col0 FROM tab2
----
129
145
155

skipif mysql # not compatible
query I rowsort label-7478
SELECT + ( - 79 ) / - 30 + 76 + + col1 AS col0 FROM tab2
----
129
145
155

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7479
SELECT - CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) * - col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7479
SELECT - CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) * - col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 59 * - + col2 AS col2 FROM tab0 AS cor0
----
-2773
-5841
-590

onlyif mysql # aggregate syntax: 
query I rowsort label-7481
SELECT DISTINCT - SUM( - - 58 ) AS col0 FROM tab0 AS cor0
----
-174

skipif mysql # not compatible
query I rowsort label-7481
SELECT DISTINCT - SUM ( - - 58 ) AS col0 FROM tab0 AS cor0
----
-174

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7482
SELECT DISTINCT - CAST( 31 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-7482
SELECT DISTINCT - CAST ( 31 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-7483
SELECT - + COUNT( * ) - - 0 AS col2 FROM tab0 WHERE NOT - - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7483
SELECT - + COUNT ( * ) - - 0 AS col2 FROM tab0 WHERE NOT - - col0 IS NOT NULL
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE + - col1 IN ( - col0, - 10 )
----

query I rowsort
SELECT 31 * - col0 + col0 * + col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1827
240
6596

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7486
SELECT DISTINCT 28 DIV - COUNT( * ) col0 FROM tab1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7486
SELECT DISTINCT 28 / - COUNT ( * ) col0 FROM tab1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7487
SELECT ALL + CAST( NULL AS SIGNED ) * col1 * 50 + + col1 * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7487
SELECT ALL + CAST ( NULL AS INTEGER ) * col1 * 50 + + col1 * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7488
SELECT + COUNT( * ) DIV COUNT( * ) DIV COUNT( * ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7488
SELECT + COUNT ( * ) / COUNT ( * ) / COUNT ( * ) FROM tab0 cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( NOT - col0 + + col2 * - col0 / 43 + col1 IS NULL )
----

query I rowsort
SELECT col1 * + - col1 FROM tab2 AS cor0
----
-2601
-4489
-5929

query I rowsort
SELECT - 94 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 40 ) col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

query I rowsort
SELECT ALL + 81 * - col2 FROM tab0
----
-3807
-8019
-810

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 53 + - col0 - + - 98 col1, col1 * 87 AS col1 FROM tab1 AS cor0
----
-40
435
-46
4089
-6
1218

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 + - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-7496
SELECT DISTINCT + COUNT( ALL - 32 ) + - + 25 AS col2, MAX( ALL col1 ) FROM tab1 AS cor0
----
-22
47

skipif mysql # not compatible
query II rowsort label-7496
SELECT DISTINCT + COUNT ( ALL - 32 ) + - + 25 AS col2, MAX ( ALL col1 ) FROM tab1 AS cor0
----
-22
47

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE 61 IS NULL
----

query I rowsort
SELECT DISTINCT col0 + - 17 AS col2 FROM tab1 AS cor0
----
34
68
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7499
SELECT ALL - MIN( ALL - col0 ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-7499
SELECT ALL - MIN ( ALL - col0 ) FROM tab0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7500
SELECT + col1 * + + col0 * 57 * CAST( NULL AS SIGNED ) - - 79 FROM tab1 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7500
SELECT + col1 * + + col0 * 57 * CAST ( NULL AS INTEGER ) - - 79 FROM tab1 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ALL ( - + 97 ) AS col1, 84 AS col1 FROM tab2
----
-97
84
-97
84
-97
84

query I rowsort
SELECT 85 + + - 44 AS col2 FROM tab2
----
41
41
41

query I rowsort
SELECT - col2 * + - col0 * - col0 + - col2 AS col1 FROM tab2 WHERE ( NOT NULL BETWEEN col1 AND NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7504
SELECT ALL col0 DIV + + col2 + - 69 FROM tab0
----
-61
-69
-69

skipif mysql # not compatible
query I rowsort label-7504
SELECT ALL col0 / + + col2 + - 69 FROM tab0
----
-61
-69
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7505
SELECT ALL - 70 * + CAST( NULL AS SIGNED ) + col2 + - col0 + - col0 + - + col0 - + col2 * + + 34 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7505
SELECT ALL - 70 * + CAST ( NULL AS INTEGER ) + col2 + - col0 + - col0 + - + col0 - + col2 * + + 34 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 + 90 + + col2 FROM tab2 AS cor0
----
136
170
206

query I rowsort
SELECT + 72 - + col0 AS col2 FROM tab1
----
-13
-19
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7508
SELECT ALL + MAX( - + col0 ) col2 FROM tab0 cor0 WHERE NOT ( NULL ) BETWEEN ( - CAST( + - col0 AS SIGNED ) ) AND CAST( - ( col2 ) AS SIGNED )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7508
SELECT ALL + MAX ( - + col0 ) col2 FROM tab0 cor0 WHERE NOT ( NULL ) BETWEEN ( - CAST ( + - col0 AS INTEGER ) ) AND CAST ( - ( col2 ) AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7509
SELECT + MAX( ALL - - col1 ) * + + 70 AS col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + CAST( NULL AS DECIMAL ) / + - col1 AND + col2 / - 81 - col2 * - ( - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7509
SELECT + MAX ( ALL - - col1 ) * + + 70 AS col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + CAST ( NULL AS REAL ) / + - col1 AND + col2 / - 81 - col2 * - ( - col0 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7510
SELECT - 74 + - COUNT( * ) + + COUNT( * ) + - + AVG ( + col0 ) / + 84 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7510
SELECT - 74 + - COUNT ( * ) + + COUNT ( * ) + - + AVG ( + col0 ) / + 84 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 <= NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col0 + col0 NOT IN ( 81, - 38 * col0, col2 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 60 * - - 90 BETWEEN NULL AND + ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - col2 AS col1, + col2 AS col2 FROM tab0
----
-10
10
-47
47
-99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7515
SELECT ALL - COUNT( + - col1 ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-7515
SELECT ALL - COUNT ( + - col1 ) AS col1 FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7516
SELECT CAST( - - 13 AS SIGNED ) FROM tab2
----
13
13
13

skipif mysql # not compatible
query I rowsort label-7516
SELECT CAST ( - - 13 AS INTEGER ) FROM tab2
----
13
13
13

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 + - 56 <= + col1 / - - col1 + col2 + + + 78
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7518
SELECT DISTINCT + MIN( + CAST( col0 AS SIGNED ) ) AS col1 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-7518
SELECT DISTINCT + MIN ( + CAST ( col0 AS INTEGER ) ) AS col1 FROM tab2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7519
SELECT ALL - 92 * - SUM( ALL 99 ) FROM tab2
----
27324

skipif mysql # not compatible
query I rowsort label-7519
SELECT ALL - 92 * - SUM ( ALL 99 ) FROM tab2
----
27324

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7521
SELECT DISTINCT + - COUNT( - 65 ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7521
SELECT DISTINCT + - COUNT ( - 65 ) FROM tab1 cor0
----
-3

query I rowsort
SELECT DISTINCT col2 FROM tab0 cor0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT + - 15 * + col1 + + col2 FROM tab2 cor0
----
-1115
-742
-947

query I rowsort
SELECT ALL col2 + - ( + + 37 ) AS col0 FROM tab1 cor0
----
22
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 28 col0 FROM tab0 AS cor0
----
28
28
28

onlyif mysql # aggregate syntax: 
query I rowsort label-7526
SELECT DISTINCT + + 74 + COUNT( * ) AS col2 FROM tab0 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-7526
SELECT DISTINCT + + 74 + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
77

query I rowsort
SELECT col2 * - - 69 + - + 6 * - col0 * + 64 FROM tab2 AS cor0
----
19251
27336
32802

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 <> NULL
----

query I rowsort
SELECT ALL col2 * - - col2 * - 23 FROM tab0
----
-225423
-2300
-50807

onlyif mysql # aggregate syntax: 
query I rowsort label-7530
SELECT COUNT( * ) * - - ( - 75 ) AS col0 FROM tab1
----
-225

skipif mysql # not compatible
query I rowsort label-7530
SELECT COUNT ( * ) * - - ( - 75 ) AS col0 FROM tab1
----
-225

query I rowsort
SELECT DISTINCT 17 * col0 FROM tab2
----
1088
1275
782

query I rowsort
SELECT 95 * - + col0 AS col0 FROM tab0
----
-1425
-8265
-9215

query I rowsort
SELECT ALL - 97 * - 26 AS col0 FROM tab0
----
2522
2522
2522

onlyif mysql # DIV for integer division: 
query I rowsort label-7534
SELECT ALL col1 DIV + - col1 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7534
SELECT ALL col1 / + - col1 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT - - col1 FROM tab0 WHERE NULL NOT BETWEEN NULL AND + 26
----

query I rowsort
SELECT col1 + + + ( - + col1 ) AS col1 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7537
SELECT DISTINCT COUNT( * ) - + + ( + 23 ) FROM tab1
----
-20

skipif mysql # not compatible
query I rowsort label-7537
SELECT DISTINCT COUNT ( * ) - + + ( + 23 ) FROM tab1
----
-20

query I rowsort
SELECT - + 49 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + 20 col2 FROM tab0 AS cor0
----
-1980
-200
-940

query I rowsort
SELECT - + ( + 83 ) AS col2 FROM tab2 AS cor0
----
-83
-83
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-7541
SELECT + col2 DIV 45 + 83 AS col0 FROM tab2 AS cor0
----
83
83
84

skipif mysql # not compatible
query I rowsort label-7541
SELECT + col2 / 45 + 83 AS col0 FROM tab2 AS cor0
----
83
83
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7542
SELECT + MIN( - - col0 ) AS col0 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-7542
SELECT + MIN ( - - col0 ) AS col0 FROM tab0 AS cor0
----
15

query I rowsort
SELECT - - 94 * - - col0 * + 17 AS col0 FROM tab0 AS cor0
----
139026
155006
23970

onlyif mysql # aggregate syntax: 
query I rowsort label-7544
SELECT ALL SUM( - - col1 ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-7544
SELECT ALL SUM ( - - col1 ) FROM tab2 AS cor0
----
195

query I rowsort
SELECT + + col1 * - ( + + col1 ) FROM tab1 cor0
----
-196
-2209
-25

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 >= - + col1 + - 34
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - - 39 * col2 FROM tab1 AS cor0
----
2301
2652
3744

onlyif mysql # aggregate syntax: 
query I rowsort label-7548
SELECT ALL 41 * + SUM( + - col0 ) FROM tab0
----
-8159

skipif mysql # not compatible
query I rowsort label-7548
SELECT ALL 41 * + SUM ( + - col0 ) FROM tab0
----
-8159

query II rowsort
SELECT ALL + + col2 * col0 + col0, col1 * - col0 AS col1 FROM tab1 AS cor0
----
4947
-714
5100
-425
6279
-4277

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col0 - - 95 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 * + + ( col1 ) * - 61 * + 39 AS col2 FROM tab0 AS cor0
----
-235521
-499590
-9056853

query I rowsort
SELECT DISTINCT + + 85 + + col2 FROM tab2 AS cor0
----
108
125
143

onlyif mysql # aggregate syntax: 
query I rowsort label-7553
SELECT COUNT( DISTINCT - 91 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7553
SELECT COUNT ( DISTINCT - 91 ) FROM tab1 AS cor0
----
1

query I rowsort
SELECT + ( + 84 ) FROM tab1 AS cor0
----
84
84
84

onlyif mysql # aggregate syntax: 
query II rowsort label-7555
SELECT DISTINCT - COUNT( * ) * + 35 + COUNT( * ) AS col1, - COUNT( * ) FROM tab2 AS cor0
----
-102
-3

skipif mysql # not compatible
query II rowsort label-7555
SELECT DISTINCT - COUNT ( * ) * + 35 + COUNT ( * ) AS col1, - COUNT ( * ) FROM tab2 AS cor0
----
-102
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-7556
SELECT DISTINCT - 25 + + col0 DIV + col2 AS col1 FROM tab1 AS cor0
----
-24
-25

skipif mysql # not compatible
query I rowsort label-7556
SELECT DISTINCT - 25 + + col0 / + col2 AS col1 FROM tab1 AS cor0
----
-24
-25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 90 col2 FROM tab1 AS cor0
----
90
90
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7558
SELECT DISTINCT - 85 + - + COUNT( * ) FROM tab2 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-7558
SELECT DISTINCT - 85 + - + COUNT ( * ) FROM tab2 AS cor0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-7559
SELECT - MIN( ALL - col0 ) AS col2 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-7559
SELECT - MIN ( ALL - col0 ) AS col2 FROM tab0 AS cor0
----
97

query II rowsort
SELECT + col1 AS col1, + col1 FROM tab0 AS cor0
----
1
1
21
21
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7561
SELECT DISTINCT - 25 * + 30 * + COUNT( * ) FROM tab2
----
-2250

skipif mysql # not compatible
query I rowsort label-7561
SELECT DISTINCT - 25 * + 30 * + COUNT ( * ) FROM tab2
----
-2250

onlyif mysql # aggregate syntax: 
query I rowsort label-7562
SELECT - COUNT( * ) AS col2 FROM tab1 WHERE + 47 * + - col2 < ( + 31 - - col0 )
----
-3

skipif mysql # not compatible
query I rowsort label-7562
SELECT - COUNT ( * ) AS col2 FROM tab1 WHERE + 47 * + - col2 < ( + 31 - - col0 )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7563
SELECT ALL COUNT( * ) + - - ( + 91 ) AS col2 FROM tab2
----
94

skipif mysql # not compatible
query I rowsort label-7563
SELECT ALL COUNT ( * ) + - - ( + 91 ) AS col2 FROM tab2
----
94

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab2 WHERE + 93 BETWEEN + - 8 AND + col1
----

query I rowsort
SELECT DISTINCT - 75 * - + col0 * - col1 AS col2 FROM tab1
----
-31875
-320775
-53550

query I rowsort
SELECT - 14 + + 29 FROM tab0
----
15
15
15

query I rowsort
SELECT col1 + + - 54 FROM tab1
----
-40
-49
-7

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL = - col1 + + 62 + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7569
SELECT MAX( + col2 ) col2 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7569
SELECT MAX ( + col2 ) col2 FROM tab0 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7570
SELECT DISTINCT MAX( DISTINCT - col2 ) + - SUM( ALL - col2 ) AS col0 FROM tab1 cor0
----
164

skipif mysql # not compatible
query I rowsort label-7570
SELECT DISTINCT MAX ( DISTINCT - col2 ) + - SUM ( ALL - col2 ) AS col0 FROM tab1 cor0
----
164

query I rowsort
SELECT DISTINCT 35 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ( 31 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

onlyif mysql # aggregate syntax: 
query I rowsort label-7573
SELECT + - COUNT( + 47 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-7573
SELECT + - COUNT ( + 47 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT ALL + col2 * ( + ( + - 12 ) ) * + col2 + col0 - col1 AS col0 FROM tab2 AS cor0
----
-19213
-40360
-6353

query I rowsort
SELECT DISTINCT + 31 * col2 AS col1 FROM tab0
----
1457
3069
310

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7577
SELECT DISTINCT 90 AS col1, COUNT( * ) FROM tab1
----
90
3

skipif mysql # not compatible
query II rowsort label-7577
SELECT DISTINCT 90 AS col1, COUNT ( * ) FROM tab1
----
90
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7578
SELECT ALL + MAX( col1 ) AS col2 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-7578
SELECT ALL + MAX ( col1 ) AS col2 FROM tab0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7579
SELECT COUNT( * ) AS col2 FROM tab0 WHERE NOT col2 + + 69 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7579
SELECT COUNT ( * ) AS col2 FROM tab0 WHERE NOT col2 + + 69 IS NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7580
SELECT + 13 DIV + col2 AS col0 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7580
SELECT + 13 / + col2 AS col0 FROM tab0
----
0
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7581
SELECT ALL COUNT( * ), CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-7581
SELECT ALL COUNT ( * ), CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7582
SELECT ALL + - MAX( ALL col1 ) AS col0 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-7582
SELECT ALL + - MAX ( ALL col1 ) AS col0 FROM tab0 AS cor0
----
-81

query I rowsort
SELECT DISTINCT - + col0 + 26 AS col2 FROM tab0 AS cor0
----
-61
-71
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 15 AS col2, + 41 col2 FROM tab0 AS cor0
----
15
41
15
41
15
41

query I rowsort
SELECT ALL - + col0 + - col2 + 62 AS col0 FROM tab2 AS cor0
----
-42
-7
-71

query II rowsort
SELECT - 27 AS col0, - col0 AS col1 FROM tab1 AS cor0
----
-27
-51
-27
-85
-27
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7587
SELECT CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-7587
SELECT CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # DIV for integer division: 
query III rowsort label-7588
SELECT * FROM tab2 WHERE + 59 DIV ( + col1 ) NOT IN ( + - 29, col0 * + col0, + 1 )
----
64
77
40
75
67
58

skipif mysql # not compatible
query III rowsort label-7588
SELECT * FROM tab2 WHERE + 59 / ( + col1 ) NOT IN ( + - 29, col0 * + col0, + 1 )
----
64
77
40
75
67
58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 / col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + - col0 + + ( + 30 ) AS col0 FROM tab2 AS cor0
----
-16
-34
-45

query I rowsort
SELECT 51 + col2 FROM tab0 cor0
----
150
61
98

query II rowsort
SELECT + col0 + 98 + - - col1 AS col1, col2 FROM tab2 AS cor0
----
195
23
239
40
240
58

query I rowsort
SELECT DISTINCT + + col2 * - 42 + - 66 + - 57 + + 15 FROM tab2 AS cor0
----
-1074
-1788
-2544

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7594
SELECT ALL + MIN( - - col0 ) DIV 86 * 68 + - 40 AS col2 FROM tab2 cor0
----
-40

skipif mysql # not compatible
query I rowsort label-7594
SELECT ALL + MIN ( - - col0 ) / 86 * 68 + - 40 AS col2 FROM tab2 cor0
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7595
SELECT + COUNT( DISTINCT - col0 ) + COUNT( * ) + + 1 + ( - + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7595
SELECT + COUNT ( DISTINCT - col0 ) + COUNT ( * ) + + 1 + ( - + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT ALL + 14 + + col1 + - + 53 AS col0, + col2 FROM tab2 AS cor0
----
12
23
28
58
38
40

query I rowsort
SELECT DISTINCT col2 + + - col2 AS col0 FROM tab2 cor0 WHERE col2 <= - col2
----

query I rowsort
SELECT DISTINCT + col1 - + 15 * - col0 - - 8 + - + ( + + col1 ) FROM tab1 AS cor0
----
1283
1373
773

query I rowsort
SELECT 2 + + col2 * - col1 AS col1 FROM tab1 AS cor0
----
-1342
-293
-3194

onlyif mysql # aggregate syntax: 
query I rowsort label-7600
SELECT ALL 36 * - - COUNT( * ) FROM tab0
----
108

skipif mysql # not compatible
query I rowsort label-7600
SELECT ALL 36 * - - COUNT ( * ) FROM tab0
----
108

query I rowsort
SELECT col2 * + - 32 AS col2 FROM tab0 WHERE 56 / + ( + - col0 ) = - col2 + + col1 - - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7602
SELECT SUM( DISTINCT + CAST( col2 AS SIGNED ) ) FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-7602
SELECT SUM ( DISTINCT + CAST ( col2 AS INTEGER ) ) FROM tab1
----
223

query II rowsort
SELECT - 2 AS col2, - col2 * - + col1 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - col0 FROM tab2 WHERE ( NULL IS NOT NULL )
----

query II rowsort
SELECT + col2 AS col1, - 54 FROM tab1 WHERE NULL IS NULL
----
59
-54
68
-54
96
-54

query I rowsort
SELECT DISTINCT 26 AS col1 FROM tab0 cor0
----
26

query I rowsort
SELECT + col2 - - + col1 FROM tab1 AS cor0
----
110
115
64

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) < col0 + - col0 * + 98
----

query I rowsort
SELECT 88 - + col1 AS col0 FROM tab0 AS cor0
----
67
7
87

query II rowsort
SELECT - 32 AS col0, 57 * 11 FROM tab2 cor0
----
-32
627
-32
627
-32
627

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7611
SELECT + 42 DIV + COUNT( * ) AS col2 FROM tab1 cor0
----
14

skipif mysql # not compatible
query I rowsort label-7611
SELECT + 42 / + COUNT ( * ) AS col2 FROM tab1 cor0
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-7612
SELECT + COUNT( * ) AS col0, + 46 * + 85 FROM tab1 AS cor0
----
3
3910

skipif mysql # not compatible
query II rowsort label-7612
SELECT + COUNT ( * ) AS col0, + 46 * + 85 FROM tab1 AS cor0
----
3
3910

query I rowsort
SELECT ALL + - col2 * 28 AS col2 FROM tab2 AS cor0
----
-1120
-1624
-644

query I rowsort
SELECT DISTINCT + col0 + col0 FROM tab2 WHERE NOT ( 68 + + 16 / ( col1 * col0 + + 30 ) ) IS NULL
----
128
150
92

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 < col2 / - col1
----

query I rowsort
SELECT ALL - 35 * col0 AS col1 FROM tab1 WHERE NOT col0 * col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 + + col2 BETWEEN ( + col2 * + 95 ) AND 62
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( 30 ) AS col1 FROM tab0
----
30
30
30

query I rowsort
SELECT + ( - col0 ) - + col0 FROM tab0
----
-174
-194
-30

query I rowsort
SELECT - col0 - 27 AS col1 FROM tab2
----
-102
-73
-91

query I rowsort
SELECT + col1 + 94 AS col0 FROM tab1
----
108
141
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7622
SELECT - 83 + COUNT( * ) AS col0 FROM tab1 WHERE NOT ( + col2 + col2 ) IS NOT NULL
----
-83

skipif mysql # not compatible
query I rowsort label-7622
SELECT - 83 + COUNT ( * ) AS col0 FROM tab1 WHERE NOT ( + col2 + col2 ) IS NOT NULL
----
-83

query III rowsort
SELECT * FROM tab2 WHERE - 63 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) NOT IN ( - 41 )
----

query I rowsort
SELECT ALL + 91 * col1 + - col0 AS col1 FROM tab2
----
4595
6022
6943

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7626
SELECT ALL col0 + + col1 AS col2 FROM tab2 WHERE ( col2 ) NOT BETWEEN CAST( NULL AS SIGNED ) * - 27 AND + CAST( + 68 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7626
SELECT ALL col0 + + col1 AS col2 FROM tab2 WHERE ( col2 ) NOT BETWEEN CAST ( NULL AS INTEGER ) * - 27 AND + CAST ( + 68 AS INTEGER )
----

query I rowsort
SELECT DISTINCT col1 + + 93 AS col2 FROM tab2
----
144
160
170

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7628
SELECT DISTINCT * FROM tab0 WHERE CAST( NULL AS SIGNED ) * - col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7628
SELECT DISTINCT * FROM tab0 WHERE CAST ( NULL AS INTEGER ) * - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7629
SELECT ALL - SUM( ALL - 52 ) AS col2 FROM tab2
----
156

skipif mysql # not compatible
query I rowsort label-7629
SELECT ALL - SUM ( ALL - 52 ) AS col2 FROM tab2
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7630
SELECT 17 * - col2 - ( + CAST( ( col0 ) AS SIGNED ) ) AS col2 FROM tab0
----
-1780
-257
-814

skipif mysql # not compatible
query I rowsort label-7630
SELECT 17 * - col2 - ( + CAST ( ( col0 ) AS INTEGER ) ) AS col2 FROM tab0
----
-1780
-257
-814

onlyif mysql # aggregate syntax: 
query I rowsort label-7631
SELECT - COUNT( * ) FROM tab1 WHERE ( NULL ) > 96 * col2
----
0

skipif mysql # not compatible
query I rowsort label-7631
SELECT - COUNT ( * ) FROM tab1 WHERE ( NULL ) > 96 * col2
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN + col2 + + col0 AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7633
SELECT CAST( 51 AS SIGNED ) FROM tab2
----
51
51
51

skipif mysql # not compatible
query I rowsort label-7633
SELECT CAST ( 51 AS INTEGER ) FROM tab2
----
51
51
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7634
SELECT COUNT( * ) + - MAX( DISTINCT col0 ) FROM tab1 cor0
----
-88

skipif mysql # not compatible
query I rowsort label-7634
SELECT COUNT ( * ) + - MAX ( DISTINCT col0 ) FROM tab1 cor0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-7635
SELECT ALL - SUM( ALL + col2 ) col2 FROM tab0 cor0
----
-156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7635
SELECT ALL - SUM ( ALL + col2 ) col2 FROM tab0 cor0
----
-156

query I rowsort
SELECT DISTINCT - 81 * + 64 + - 43 FROM tab0 AS cor0
----
-5227

query I rowsort
SELECT DISTINCT - col2 * + col1 + 88 AS col2 FROM tab0
----
-11
-122
-3719

query I rowsort
SELECT - ( col2 ) * col1 AS col2 FROM tab1
----
-1344
-295
-3196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 56 col1 FROM tab1 AS cor0
----
56
56
56

query I rowsort
SELECT - - ( ( + col1 ) ) * col1 FROM tab2 AS cor0
----
2601
4489
5929

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col0 * + 44 ) BETWEEN col1 AND 97
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7642
SELECT DISTINCT 9 + - COUNT( * ) col2 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7642
SELECT DISTINCT 9 + - COUNT ( * ) col2 FROM tab2 AS cor0
----
6

query I rowsort
SELECT DISTINCT col2 * 50 + 0 * col2 FROM tab1 AS cor0
----
2950
3400
4800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7644
SELECT COUNT( * ) + COUNT( * ) / CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN + CAST( col1 AS SIGNED ) AND ( 50 / + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7644
SELECT COUNT ( * ) + COUNT ( * ) / CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN + CAST ( col1 AS INTEGER ) AND ( 50 / + col1 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7645
SELECT ALL + col2 + 13 DIV - col0 AS col1 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-7645
SELECT ALL + col2 + 13 / - col0 AS col1 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT DISTINCT - col1 + 20 FROM tab1 AS cor0
----
-27
15
6

query I rowsort
SELECT ALL + 68 * - col1 + + col0 AS col2 FROM tab0 AS cor0
----
-1341
-5493
29

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 76 * col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 + 57 AS col0 FROM tab2 cor0 WHERE - col2 BETWEEN col1 AND - 54
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7650
SELECT DISTINCT - 49 - + + MIN( DISTINCT col1 ) FROM tab1
----
-54

skipif mysql # not compatible
query I rowsort label-7650
SELECT DISTINCT - 49 - + + MIN ( DISTINCT col1 ) FROM tab1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-7651
SELECT ALL + COUNT( * ) + 68 * + 97 col1 FROM tab1 WHERE ( + col0 ) * + col2 + col0 * 57 IS NULL
----
6596

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7651
SELECT ALL + COUNT ( * ) + 68 * + 97 col1 FROM tab1 WHERE ( + col0 ) * + col2 + col0 * 57 IS NULL
----
6596

query I rowsort
SELECT + col2 * 86 * + col2 + col0 AS col0 FROM tab2
----
137664
289379
45540

query I rowsort
SELECT ALL - 33 AS col0 FROM tab2 WHERE ( + 35 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT - 2 + ( - 42 ) AS col1 FROM tab1
----
-44
-44
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-7656
SELECT col2 DIV col2 * + col2 AS col0 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-7656
SELECT col2 / col2 * + col2 AS col0 FROM tab0
----
10
47
99

query I rowsort
SELECT ALL ( + col1 ) * + col1 FROM tab0 AS cor0
----
1
441
6561

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 BETWEEN col1 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7659
SELECT ALL SUM( DISTINCT col0 ) * COUNT( * ) FROM tab2 AS cor0
----
555

skipif mysql # not compatible
query I rowsort label-7659
SELECT ALL SUM ( DISTINCT col0 ) * COUNT ( * ) FROM tab2 AS cor0
----
555

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 NOT BETWEEN ( - col2 ) AND ( col1 )
----
46
51
23
64
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7661
SELECT DISTINCT + + COUNT( * ) * ( + MIN( col1 ) ) FROM tab2 cor0
----
153

skipif mysql # not compatible
query I rowsort label-7661
SELECT DISTINCT + + COUNT ( * ) * ( + MIN ( col1 ) ) FROM tab2 cor0
----
153

query I rowsort
SELECT DISTINCT - col2 + col1 * - col0 AS col1 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7663
SELECT DISTINCT CAST( 5 AS SIGNED ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-7663
SELECT DISTINCT CAST ( 5 AS INTEGER ) FROM tab1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7664
SELECT DISTINCT - COUNT( * ) * - 72 AS col2 FROM tab2
----
216

skipif mysql # not compatible
query I rowsort label-7664
SELECT DISTINCT - COUNT ( * ) * - 72 AS col2 FROM tab2
----
216

onlyif mysql # aggregate syntax: 
query I rowsort label-7665
SELECT ALL + 66 * - COUNT( + col0 ) AS col1 FROM tab0 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-7665
SELECT ALL + 66 * - COUNT ( + col0 ) AS col1 FROM tab0 AS cor0
----
-198

onlyif mysql # DIV for integer division: 
query I rowsort label-7666
SELECT ALL - col2 DIV + + 76 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7666
SELECT ALL - col2 / + + 76 FROM tab1 AS cor0
----
-1
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 29 IS NULL
----

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab0 cor0 WHERE NOT NULL BETWEEN ( col1 ) AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7669
SELECT - - COUNT( * ) * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7669
SELECT - - COUNT ( * ) * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> ( + col0 / ( col1 ) + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7671
SELECT ALL - - col1 DIV ( - ( + col0 ) ) + col0 * - col2 FROM tab2 cor0
----
-1059
-2561
-4350

skipif mysql # not compatible
query I rowsort label-7671
SELECT ALL - - col1 / ( - ( + col0 ) ) + col0 * - col2 FROM tab2 cor0
----
-1059
-2561
-4350

query I rowsort
SELECT + - col1 + + 7 FROM tab2 AS cor0
----
-44
-60
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 98 ) * + + col1 + + 34 col1 FROM tab1
----
1406
4640
524

query I rowsort
SELECT + col0 * 71 * + col0 + + col0 + - 82 * + 38 FROM tab2
----
147166
287764
396334

query I rowsort
SELECT - 39 + - + col0 AS col0 FROM tab1
----
-124
-130
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-7676
SELECT 48 DIV 46 * + col0 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-7676
SELECT 48 / 46 * + col0 FROM tab0
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 NOT BETWEEN ( ( - col2 ) / + col0 ) AND 60
----
97
1
99

query I rowsort
SELECT ALL ( - 80 ) + - col2 + col1 + 33 * - col0 * - col1 * 20 FROM tab0
----
1205751
63842
801854

query I rowsort
SELECT ALL - col0 * col0 * - col0 FROM tab0 cor0
----
3375
658503
912673

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 54 < 11 * 3
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7681
SELECT DISTINCT + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE NOT col1 >= NULL
----

skipif mysql # not compatible
query I rowsort label-7681
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NOT col1 >= NULL
----

query I rowsort
SELECT DISTINCT + + col2 * + ( - ( ( + col0 ) ) ) * col2 + col2 + + col1 AS col2 FROM tab0 AS cor0
----
-33007
-8669
-950597

query I rowsort
SELECT col2 AS col0 FROM tab2 WHERE ( NULL < - - 7 / col0 ) OR - col1 <= + col2 + - col2
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7684
SELECT ALL + ( - COUNT( DISTINCT col2 ) ) FROM tab2 WHERE NOT - - col0 / col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7684
SELECT ALL + ( - COUNT ( DISTINCT col2 ) ) FROM tab2 WHERE NOT - - col0 / col1 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7685
SELECT COUNT( ALL 10 ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-7685
SELECT COUNT ( ALL 10 ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9

query II rowsort
SELECT DISTINCT + 83, col0 AS col1 FROM tab2
----
83
46
83
64
83
75

query I rowsort
SELECT + 96 FROM tab2 AS cor0 WHERE NULL IS NULL
----
96
96
96

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND - col2 * + - col0
----

query I rowsort
SELECT ALL + 29 * - col1 - + + 43 + - col1 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT ALL + col2 + - + col0 + + col1 AS col1 FROM tab2 AS cor0
----
28
50
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7691
SELECT ( COUNT( - col1 ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7691
SELECT ( COUNT ( - col1 ) ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7692
SELECT DISTINCT - MAX( ALL ( col2 ) ) + + + 30 + SUM( col1 ) + - 63 AS col2 FROM tab1 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-7692
SELECT DISTINCT - MAX ( ALL ( col2 ) ) + + + 30 + SUM ( col1 ) + - 63 AS col2 FROM tab1 AS cor0
----
-63

query I rowsort
SELECT DISTINCT 39 - col2 FROM tab0 AS cor0
----
-60
-8
29

query I rowsort
SELECT DISTINCT + ( - col2 ) + + col2 FROM tab1 WHERE NOT NULL NOT BETWEEN ( + col2 * col2 * col1 ) AND ( + col0 )
----

query I rowsort
SELECT ALL - ( - 91 ) + - 46 FROM tab0
----
45
45
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7696
SELECT ALL CAST( + - 36 AS SIGNED ) FROM tab2 WHERE + col2 IS NOT NULL
----
-36
-36
-36

skipif mysql # not compatible
query I rowsort label-7696
SELECT ALL CAST ( + - 36 AS INTEGER ) FROM tab2 WHERE + col2 IS NOT NULL
----
-36
-36
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7697
SELECT - CAST( NULL AS SIGNED ) AS col1, COUNT( - 63 ) * - SUM( - col1 ) AS col0 FROM tab2
----
NULL
585

skipif mysql # not compatible
query II rowsort label-7697
SELECT - CAST ( NULL AS INTEGER ) AS col1, COUNT ( - 63 ) * - SUM ( - col1 ) AS col0 FROM tab2
----
NULL
585

query IIIIII rowsort
SELECT ALL * FROM tab2, tab1 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7699
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND CAST( - + 71 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7699
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND CAST ( - + 71 AS INTEGER )
----

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7701
SELECT + MAX( - col1 ) * - + 86 FROM tab0 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-7701
SELECT + MAX ( - col1 ) * - + 86 FROM tab0 AS cor0
----
86

query I rowsort
SELECT - 43 FROM tab2 AS cor0 WHERE NOT + 0 IS NULL
----
-43
-43
-43

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 BETWEEN NULL AND - col0
----

query I rowsort
SELECT - col2 * - col2 + + 16 + col0 * - 97 AS col2 FROM tab1 AS cor0
----
-4187
-4748
4285

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 53, col0 + - + col1 col2 FROM tab1 AS cor0
----
-53
37
-53
44
-53
80

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7706
SELECT DISTINCT - CAST( - col0 AS SIGNED ) AS col2, col0 AS col1 FROM tab1
----
51
51
85
85
91
91

skipif mysql # not compatible
query II rowsort label-7706
SELECT DISTINCT - CAST ( - col0 AS INTEGER ) AS col2, col0 AS col1 FROM tab1
----
51
51
85
85
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7707
SELECT + - COUNT( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-7707
SELECT + - COUNT ( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT DISTINCT 89 AS col1 FROM tab0 cor0 WHERE ( ( + col2 + - col2 ) BETWEEN + 51 * - col1 * - ( - 40 ) AND col2 )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-7709
SELECT ALL + COUNT( * ) + 7 FROM tab1 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-7709
SELECT ALL + COUNT ( * ) + 7 FROM tab1 AS cor0
----
10

query I rowsort
SELECT - + 36 * - col1 FROM tab1 AS cor0
----
1692
180
504

query I rowsort
SELECT ALL - col2 * - - 61 FROM tab2 AS cor0
----
-1403
-2440
-3538

query I rowsort
SELECT DISTINCT + 83 AS col2 FROM tab2 WHERE NOT - col2 >= + 2
----
83

query III rowsort
SELECT * FROM tab1 WHERE ( col1 * + + 10 + - 89 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE 61 > ( + + col0 )
----
46
51
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7715
SELECT ALL CAST( NULL AS SIGNED ) * - 12 * - col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7715
SELECT ALL CAST ( NULL AS INTEGER ) * - 12 * - col0 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col2, + col1 FROM tab0
----
-1
1
-21
21
-81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7717
SELECT DISTINCT 89 * - + COUNT( * ) AS col0 FROM tab0
----
-267

skipif mysql # not compatible
query I rowsort label-7717
SELECT DISTINCT 89 * - + COUNT ( * ) AS col0 FROM tab0
----
-267

query III rowsort
SELECT * FROM tab2 WHERE ( + 4 * - ( + col1 ) ) NOT IN ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE + - col0 * + col2 >= + col2
----

query II rowsort
SELECT ( + col0 ) + + col0, - 82 * + 26 * 72 AS col1 FROM tab1
----
102
-153504
170
-153504
182
-153504

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - 80 + + ( - 23 ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7722
SELECT ALL + 95 + - COUNT( DISTINCT 87 ) AS col0 FROM tab0 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-7722
SELECT ALL + 95 + - COUNT ( DISTINCT 87 ) AS col0 FROM tab0 AS cor0
----
94

query I rowsort
SELECT col0 * 13 * + - 4 AS col2 FROM tab0
----
-4524
-5044
-780

onlyif mysql # aggregate syntax: 
query I rowsort label-7724
SELECT ( - COUNT( * ) ) + + COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-7724
SELECT ( - COUNT ( * ) ) + + COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
0

query I rowsort
SELECT ALL - - col1 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7726
SELECT ALL + col2 + - + col2 + - - CAST( col0 AS SIGNED ) * 18 - + 52 AS col1 FROM tab1 AS cor0
----
1478
1586
866

skipif mysql # not compatible
query I rowsort label-7726
SELECT ALL + col2 + - + col2 + - - CAST ( col0 AS INTEGER ) * 18 - + 52 AS col1 FROM tab1 AS cor0
----
1478
1586
866

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7727
SELECT - + ( 1 ) - + + col2 DIV + 11, col2 + col2 DIV - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1
NULL
-10
NULL
-5
NULL

skipif mysql # not compatible
query II rowsort label-7727
SELECT - + ( 1 ) - + + col2 / + 11, col2 + col2 / - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1
NULL
-10
NULL
-5
NULL

query I rowsort
SELECT - ( - 11 ) * - 6 + + 8 - 88 FROM tab0 AS cor0
----
-146
-146
-146

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 45 + + col0 col0 FROM tab1 AS cor0
----
130
136
96

query II rowsort
SELECT DISTINCT - 91 + - col0 - + 35 + col1 AS col1, col1 FROM tab0 cor0
----
-192
21
-222
1
-60
81

query I rowsort
SELECT - col0 AS col2 FROM tab0 cor0 WHERE col1 IS NOT NULL
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7732
SELECT ALL SUM( ALL col1 ) AS col0 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-7732
SELECT ALL SUM ( ALL col1 ) AS col0 FROM tab2 AS cor0
----
195

query II rowsort
SELECT col2, col2 * col0 FROM tab0
----
10
870
47
705
99
9603

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 + + 78 * col1 IS NULL
----

query II rowsort
SELECT 13 AS col1, col2 FROM tab1
----
13
59
13
68
13
96

query I rowsort
SELECT ( - - 7 ) FROM tab2
----
7
7
7

query I rowsort
SELECT - - 6 AS col2 FROM tab2 WHERE NOT NULL <= col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7738
SELECT SUM( DISTINCT - col2 ) FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-7738
SELECT SUM ( DISTINCT - col2 ) FROM tab2
----
-121

query I rowsort
SELECT DISTINCT - col0 * - - 93 FROM tab1
----
-4743
-7905
-8463

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col2 NOT BETWEEN ( NULL ) AND col2 )
----

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab2 AS cor0 WHERE NOT 17 / + col2 NOT BETWEEN ( - - col0 ) AND ( + + col1 )
----

query II rowsort
SELECT ALL - col1 * 93 AS col1, col1 FROM tab0
----
-1953
21
-7533
81
-93
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 66, col0 * col2 + + col0 col2 FROM tab0
----
66
720
66
957
66
9700

onlyif mysql # aggregate syntax: 
query I rowsort label-7744
SELECT - + COUNT( - 64 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-7744
SELECT - + COUNT ( - 64 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-7745
SELECT 99 AS col0, COUNT( * ) AS col1 FROM tab1 AS cor0
----
99
3

skipif mysql # not compatible
query II rowsort label-7745
SELECT 99 AS col0, COUNT ( * ) AS col1 FROM tab1 AS cor0
----
99
3

query I rowsort
SELECT ALL + - 96 * + - 67 + + + col0 + + 75 FROM tab1 AS cor0
----
6558
6592
6598

onlyif mysql # aggregate syntax: 
query I rowsort label-7747
SELECT DISTINCT - COUNT( * ) * + - COUNT( * ) * + COUNT( * ) + - COUNT( + col2 ) * - - 31 col0 FROM tab0 AS cor0
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7747
SELECT DISTINCT - COUNT ( * ) * + - COUNT ( * ) * + COUNT ( * ) + - COUNT ( + col2 ) * - - 31 col0 FROM tab0 AS cor0
----
-66

query II rowsort
SELECT DISTINCT - + col1, 97 AS col2 FROM tab0 cor0
----
-1
97
-21
97
-81
97

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 31 * + + 31 - + 55 - - + 99 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7750
SELECT DISTINCT - SUM( DISTINCT col0 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7750
SELECT DISTINCT - SUM ( DISTINCT col0 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT DISTINCT - - col1 + + 4 AS col0 FROM tab1 AS cor0
----
18
51
9

query II rowsort
SELECT 58 + - col0 AS col1, 16 - - - 28 FROM tab0
----
-29
-12
-39
-12
43
-12

query I rowsort
SELECT ALL 60 * 61 * - - 97 + + col1 AS col0 FROM tab1
----
355025
355034
355067

query I rowsort
SELECT DISTINCT + ( + + col0 ) * - + 24 AS col0 FROM tab2
----
-1104
-1536
-1800

query I rowsort
SELECT ALL - col0 * - - col1 AS col0 FROM tab1
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-7756
SELECT - COUNT( * ) * 25 FROM tab0
----
-75

skipif mysql # not compatible
query I rowsort label-7756
SELECT - COUNT ( * ) * 25 FROM tab0
----
-75

query I rowsort
SELECT ALL col2 * 71 * + + col1 + 83 AS col0 FROM tab2
----
218763
275989
83366

query I rowsort
SELECT DISTINCT - ( + + col2 ) * + 96 * + col2 AS col0 FROM tab1
----
-334176
-443904
-884736

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 88 col0 FROM tab2
----
88
88
88

onlyif mysql # aggregate syntax: 
query I rowsort label-7760
SELECT - COUNT( * ) + + 30 FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-7760
SELECT - COUNT ( * ) + + 30 FROM tab2
----
27

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 99 + 39 NOT BETWEEN + col2 + 94 + + - 91 * - col2 AND - - col0
----

query I rowsort
SELECT ALL - + 55 + - + 58 + - + 58 AS col1 FROM tab2 cor0
----
-171
-171
-171

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - 77 + - + col1 IS NULL )
----

query I rowsort
SELECT ALL 63 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT col2 * 6 FROM tab2 AS cor0
----
138
240
348

query II rowsort
SELECT DISTINCT + 92, col1 AS col1 FROM tab0 AS cor0
----
92
1
92
21
92
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7767
SELECT - col2 AS col1, - CAST( NULL AS SIGNED ) + 98 FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

skipif mysql # not compatible
query II rowsort label-7767
SELECT - col2 AS col1, - CAST ( NULL AS INTEGER ) + 98 FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

query I rowsort
SELECT ALL + + col0 * + + 18 AS col1 FROM tab0 AS cor0
----
1566
1746
270

query I rowsort
SELECT ALL col2 AS col1 FROM tab2 WHERE NULL IS NULL
----
23
40
58

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL IS NULL OR NOT NULL IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT - - col0 * - col2, 88 AS col2 FROM tab1 cor0
----
-4896
88
-5015
88
-6188
88

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col1 > ( NULL )
----

query I rowsort
SELECT DISTINCT col0 * - 27 FROM tab0
----
-2349
-2619
-405

query I rowsort
SELECT ALL ( + 95 ) FROM tab2, tab0 cor0
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL < ( col2 )
----

query I rowsort
SELECT ALL col0 + - + col2 * - col1 FROM tab1 AS cor0
----
1395
3287
380

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE - col1 * 64 NOT BETWEEN - col0 + + 83 AND + - col0 * 20 * + - 64
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7778
SELECT ALL MIN( DISTINCT + col2 ) col0 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7778
SELECT ALL MIN ( DISTINCT + col2 ) col0 FROM tab2 AS cor0
----
23

query I rowsort
SELECT DISTINCT + - col2 + + col2 + col2 FROM tab0 cor0
----
10
47
99

query I rowsort
SELECT ALL + col2 * - col1 + - 61 FROM tab0 AS cor0
----
-160
-271
-3868

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 + - col2 * col2 AS col1, col0 col0 FROM tab2 AS cor0
----
-1560
64
-3306
75
-506
46

query III rowsort
SELECT col2 + - - 46, col0 * - 90 AS col1, + - col1 AS col1 FROM tab0
----
9 values hashing to f5d6893f51c07f8aab4bf9182c89d89f

query III rowsort
SELECT * FROM tab2 WHERE - 13 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-7784
SELECT DISTINCT + col0 DIV 8 AS col1 FROM tab2
----
5
8
9

skipif mysql # not compatible
query I rowsort label-7784
SELECT DISTINCT + col0 / 8 AS col1 FROM tab2
----
5
8
9

onlyif mysql # aggregate syntax: 
query II rowsort label-7785
SELECT DISTINCT 19 AS col2, + MIN( - 69 ) * 74 FROM tab0 AS cor0
----
19
-5106

skipif mysql # not compatible
query II rowsort label-7785
SELECT DISTINCT 19 AS col2, + MIN ( - 69 ) * 74 FROM tab0 AS cor0
----
19
-5106

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 74 * - + 7 * - col0 < + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 34 FROM tab2 AS cor0 WHERE - 12 = + + col0
----

query I rowsort
SELECT + col2 * - 73 AS col1 FROM tab0 AS cor0
----
-3431
-7227
-730

onlyif mysql # aggregate syntax: 
query I rowsort label-7789
SELECT ALL - COUNT( * ) + - - ( + COUNT( * ) ) AS col0 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7789
SELECT ALL - COUNT ( * ) + - - ( + COUNT ( * ) ) AS col0 FROM tab1 cor0
----
0

query III rowsort
SELECT * FROM tab1 WHERE ( - 12 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7791
SELECT DISTINCT + MIN( DISTINCT + col0 ) - + + 55 AS col0 FROM tab1
----
-4

skipif mysql # not compatible
query I rowsort label-7791
SELECT DISTINCT + MIN ( DISTINCT + col0 ) - + + 55 AS col0 FROM tab1
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7792
SELECT ALL col1 * + CAST( NULL AS SIGNED ) * + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7792
SELECT ALL col1 * + CAST ( NULL AS INTEGER ) * + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 95 FROM tab1 AS cor0 WHERE NOT 83 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7794
SELECT - MIN( - - col0 ) AS col2 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-7794
SELECT - MIN ( - - col0 ) AS col2 FROM tab0 AS cor0
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-7795
SELECT ALL - col1 DIV - - col1 + - ( + col2 ) - + - 9 + - 77 * - - ( + 92 ) FROM tab0 AS cor0
----
-7086
-7123
-7175

skipif mysql # not compatible
query I rowsort label-7795
SELECT ALL - col1 / - - col1 + - ( + col2 ) - + - 9 + - 77 * - - ( + 92 ) FROM tab0 AS cor0
----
-7086
-7123
-7175

query II rowsort
SELECT DISTINCT - col0 * - ( - col2 ), ( col2 ) AS col2 FROM tab2 AS cor0
----
-1058
23
-2560
40
-4350
58

query I rowsort
SELECT ALL - col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT DISTINCT col1 * + + col1 FROM tab1 cor0
----
196
2209
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7799
SELECT DISTINCT COUNT( * ) * - 9 AS col0 FROM tab2
----
-27

skipif mysql # not compatible
query I rowsort label-7799
SELECT DISTINCT COUNT ( * ) * - 9 AS col0 FROM tab2
----
-27

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN NULL AND - col0 * + col2 - - + col2
----

query I rowsort
SELECT ALL + 47 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 * 30 * - col1 * col1 <> NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE + 21 = 50
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 41 / + - col0 + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7805
SELECT COUNT( * ) + ( MAX( col0 ) ) FROM tab1 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-7805
SELECT COUNT ( * ) + ( MAX ( col0 ) ) FROM tab1 AS cor0
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-7806
SELECT DISTINCT + + col2 DIV 89 + col2 AS col0 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-7806
SELECT DISTINCT + + col2 / 89 + col2 AS col0 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT DISTINCT + col1 * 21 + + ( + - 56 ) AS col1 FROM tab1 AS cor0
----
238
49
931

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col2 * - col0 col1, col0 + - col1 + - col1 + - col2 FROM tab0 AS cor0 WHERE - 95 IS NOT NULL
----
705
-194
870
35
9603
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col1 - + ( - col2 ) * - + 31 col0 FROM tab1 AS cor0
----
-1739
-1970
-2911

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7810
SELECT * FROM tab1 AS cor0 WHERE + col2 * + CAST( NULL AS SIGNED ) * - col1 - + + 31 + 72 / - 49 NOT BETWEEN NULL AND col2 + + 14
----

skipif mysql # not compatible
query III rowsort label-7810
SELECT * FROM tab1 AS cor0 WHERE + col2 * + CAST ( NULL AS INTEGER ) * - col1 - + + 31 + 72 / - 49 NOT BETWEEN NULL AND col2 + + 14
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 + + - col1 IS NULL
----

query I rowsort
SELECT ALL - col2 * - col0 * + 29 + + 64 FROM tab0 AS cor0
----
20509
25294
278551

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - + col1 + - col2 col1 FROM tab0
----
-113
-3
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 AS col1, 87 col1 FROM tab0
----
15
87
87
87
97
87

query II rowsort
SELECT col1 AS col0, - 28 FROM tab1
----
14
-28
47
-28
5
-28

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7816
SELECT CAST( NULL AS DECIMAL ) * - MIN( ALL + col2 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7816
SELECT CAST ( NULL AS REAL ) * - MIN ( ALL + col2 ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7817
SELECT - MIN( 42 ) AS col0 FROM tab1 WHERE + col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7817
SELECT - MIN ( 42 ) AS col0 FROM tab1 WHERE + col0 IS NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + ( col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7819
SELECT ALL CAST( NULL AS SIGNED ) - - - ( + + 2 ) * + 50 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7819
SELECT ALL CAST ( NULL AS INTEGER ) - - - ( + + 2 ) * + 50 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7820
SELECT + col0 * + 98 * - - 26 + + 39 DIV col1 col1, CAST( + 91 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
129950
91
216587
91
231868
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7820
SELECT + col0 * + 98 * - - 26 + + 39 / col1 col1, CAST ( + 91 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
129950
91
216587
91
231868
91

query I rowsort
SELECT - col2 * - + 37 * + col0 * - col0 + + 43 AS col0 FROM tab0 AS cor0
----
-2800487
-34465124
-391232

onlyif mysql # aggregate syntax: 
query I rowsort label-7822
SELECT ALL - COUNT( * ) + COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
0

skipif mysql # not compatible
query I rowsort label-7822
SELECT ALL - COUNT ( * ) + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7823
SELECT - MAX( ALL + - 90 ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
90

skipif mysql # not compatible
query I rowsort label-7823
SELECT - MAX ( ALL + - 90 ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
90

query II rowsort
SELECT + col0, col0 FROM tab2 cor0
----
46
46
64
64
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7825
SELECT + MAX( DISTINCT + col2 ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7825
SELECT + MAX ( DISTINCT + col2 ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7826
SELECT MIN( DISTINCT col1 ) AS col2 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-7826
SELECT MIN ( DISTINCT col1 ) AS col2 FROM tab1 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7827
SELECT ALL ( 73 ) * - 47 + + 98 * + ( - COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
-3725

skipif mysql # not compatible
query I rowsort label-7827
SELECT ALL ( 73 ) * - 47 + + 98 * + ( - COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
-3725

query II rowsort
SELECT + col0 AS col1, col2 AS col1 FROM tab0 AS cor0
----
15
47
87
10
97
99

query I rowsort
SELECT DISTINCT + 55 * + + col0 * col0 FROM tab1 AS cor0
----
143055
397375
455455

query II rowsort
SELECT DISTINCT - 31, ( - col0 ) AS col0 FROM tab0 AS cor0
----
-31
-15
-31
-87
-31
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7831
SELECT ALL - COUNT( * ) * + 81 * COUNT( * ) AS col1 FROM tab1 AS cor0
----
-729

skipif mysql # not compatible
query I rowsort label-7831
SELECT ALL - COUNT ( * ) * + 81 * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-729

query I rowsort
SELECT - + 86 * + col2 AS col2 FROM tab0 AS cor0
----
-4042
-8514
-860

onlyif mysql # aggregate syntax: 
query I rowsort label-7833
SELECT COUNT( * ) * + COUNT( * ) AS col2 FROM tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-7833
SELECT COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab0 cor0
----
9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 * - col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 46 col2 FROM tab2 AS cor0
----
-46
-46
-46

query II rowsort
SELECT DISTINCT - + col2 AS col2, - 79 AS col2 FROM tab2 AS cor0
----
-23
-79
-40
-79
-58
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-7837
SELECT 18 DIV ( - + 28 ) AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7837
SELECT 18 / ( - + 28 ) AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT + col2 * ( - 8 ) FROM tab1
----
-472
-544
-768

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 + + col1 >= + col1 - - + col1 * col2 * - ( + col2 ) * - 4
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 55 * + col0 * + - col0 FROM tab1
----
143055
397375
455455

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 8 > + 46
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + 55 * + - col2 AS col1, 59 AS col1 FROM tab0 AS cor0
----
-2585
59
-5445
59
-550
59

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + col2 NOT IN ( - col2 + + 90, + col1, ( + 91 ), + col0, + + col1 )
----

query I rowsort
SELECT + + 98 + - col0 AS col1 FROM tab2 WHERE NULL <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7845
SELECT ALL CAST( NULL AS SIGNED ) AS col0, 36 AS col2 FROM tab2 AS cor0 WHERE NOT + col2 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-7845
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, 36 AS col2 FROM tab2 AS cor0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7846
SELECT * FROM tab0 cor0 WHERE NULL BETWEEN ( col2 * - ( + - CAST( NULL AS SIGNED ) ) / col2 ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-7846
SELECT * FROM tab0 cor0 WHERE NULL BETWEEN ( col2 * - ( + - CAST ( NULL AS INTEGER ) ) / col2 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7847
SELECT + SUM( + 78 ) FROM tab1 AS cor0
----
234

skipif mysql # not compatible
query I rowsort label-7847
SELECT + SUM ( + 78 ) FROM tab1 AS cor0
----
234

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col0 ) col1 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7849
SELECT COUNT( * ) * - - 55 AS col1 FROM tab2 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-7849
SELECT COUNT ( * ) * - - 55 AS col1 FROM tab2 AS cor0
----
165

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7850
SELECT ALL - ( SUM( + col1 ) ) * CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT - col2 NOT BETWEEN + 20 AND + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7850
SELECT ALL - ( SUM ( + col1 ) ) * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT - col2 NOT BETWEEN + 20 AND + col0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 59 + 40 col1 FROM tab0 cor0
----
99
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7852
SELECT + MIN( ALL - - 64 ) AS col1 FROM tab1, tab2 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-7852
SELECT + MIN ( ALL - - 64 ) AS col1 FROM tab1, tab2 AS cor0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7853
SELECT ALL - COUNT( * ) - - - 2 FROM tab2
----
-5

skipif mysql # not compatible
query I rowsort label-7853
SELECT ALL - COUNT ( * ) - - - 2 FROM tab2
----
-5

query I rowsort
SELECT col2 + 60 AS col1 FROM tab0
----
107
159
70

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab1 WHERE NOT NULL = - + col1 / - col2
----

query III rowsort
SELECT * FROM tab2 WHERE ( - col2 * + 39 + 80 - - ( ( + 39 ) ) ) <> ( 23 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7857
SELECT DISTINCT COUNT( DISTINCT + 27 ) - + 79 AS col2 FROM tab1
----
-78

skipif mysql # not compatible
query I rowsort label-7857
SELECT DISTINCT COUNT ( DISTINCT + 27 ) - + 79 AS col2 FROM tab1
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7858
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + col1, col2 AS col1 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-7858
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + col1, col2 AS col1 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7859
SELECT + COUNT( * ) + 68 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
71

skipif mysql # not compatible
query I rowsort label-7859
SELECT + COUNT ( * ) + 68 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
71

query I rowsort
SELECT DISTINCT + 64 * + + col1 + - - col2 FROM tab2 AS cor0 WHERE + col1 + - col0 + - col1 > - + col1
----
3287
4968

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 + + + 77 <= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7862
SELECT 38 AS col2, COUNT( * ) AS col0 FROM tab0
----
38
3

skipif mysql # not compatible
query II rowsort label-7862
SELECT 38 AS col2, COUNT ( * ) AS col0 FROM tab0
----
38
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7863
SELECT - COUNT( ALL + + ( col1 ) ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-7863
SELECT - COUNT ( ALL + + ( col1 ) ) AS col2 FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7864
SELECT DISTINCT CAST( NULL AS SIGNED ) + - ( 23 ) AS col1 FROM tab1 WHERE - + 32 IS NULL
----

skipif mysql # not compatible
query I rowsort label-7864
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - ( 23 ) AS col1 FROM tab1 WHERE - + 32 IS NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 86 + col2 * + col2 * - 22 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + 16 + - col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7867
SELECT ALL COUNT( * ) * + 22 FROM tab2 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-7867
SELECT ALL COUNT ( * ) * + 22 FROM tab2 AS cor0
----
66

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 * col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + col0, 82 FROM tab1 AS cor0
----
51
82
85
82
91
82

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 25 IS NOT NULL
----

query I rowsort
SELECT col2 + + 79 AS col0 FROM tab2
----
102
119
137

query II rowsort
SELECT ALL + 15 AS col2, - col0 AS col0 FROM tab2
----
15
-46
15
-64
15
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 96 col2 FROM tab1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7874
SELECT + SUM( ALL 10 ) AS col2 FROM tab1
----
30

skipif mysql # not compatible
query I rowsort label-7874
SELECT + SUM ( ALL 10 ) AS col2 FROM tab1
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-7875
SELECT DISTINCT + col1 * 35 DIV - - col2 AS col0 FROM tab0
----
0
60
73

skipif mysql # not compatible
query I rowsort label-7875
SELECT DISTINCT + col1 * 35 / - - col2 AS col0 FROM tab0
----
0
60
73

query I rowsort
SELECT ALL 21 * + 42 FROM tab0
----
882
882
882

query I rowsort
SELECT ALL + col2 * - 75 FROM tab0
----
-3525
-7425
-750

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7878
SELECT ALL + SUM( CAST( - - col2 AS SIGNED ) ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-7878
SELECT ALL + SUM ( CAST ( - - col2 AS INTEGER ) ) FROM tab2 AS cor0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-7879
SELECT + MAX( DISTINCT 33 ) FROM tab2 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-7879
SELECT + MAX ( DISTINCT 33 ) FROM tab2 AS cor0
----
33

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( ( NULL ) < NULL )
----

query II rowsort
SELECT DISTINCT + 17 * + ( + 86 ) AS col1, col1 * col1 FROM tab0
----
1462
1
1462
441
1462
6561

query I rowsort
SELECT col1 + + + 30 FROM tab1
----
35
44
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 67 ) col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

query I rowsort
SELECT - 43 * + ( col0 ) AS col0 FROM tab2 WHERE NULL >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7885
SELECT DISTINCT 39 DIV + + ( + col1 ) + col1 AS col2 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-7885
SELECT DISTINCT 39 / + + ( + col1 ) + col1 AS col2 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT DISTINCT - col0 + - col0 - - col1 FROM tab0 AS cor0
----
-153
-193
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7887
SELECT DISTINCT - col0 * - + CAST( 93 AS SIGNED ) + - col0 * - + col0 AS col1 FROM tab0 AS cor0
----
15660
1620
18430

skipif mysql # not compatible
query I rowsort label-7887
SELECT DISTINCT - col0 * - + CAST ( 93 AS INTEGER ) + - col0 * - + col0 AS col1 FROM tab0 AS cor0
----
15660
1620
18430

onlyif mysql # aggregate syntax: 
query I rowsort label-7888
SELECT MIN( + + 71 ) FROM tab2
----
71

skipif mysql # not compatible
query I rowsort label-7888
SELECT MIN ( + + 71 ) FROM tab2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7889
SELECT ALL - 88 - - + ( - + ( + ( SUM( + col0 ) ) ) ) FROM tab1
----
-315

skipif mysql # not compatible
query I rowsort label-7889
SELECT ALL - 88 - - + ( - + ( + ( SUM ( + col0 ) ) ) ) FROM tab1
----
-315

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7890
SELECT ALL - 38 - - COUNT( * ) * + COUNT( * ) * + CAST( + COUNT( * ) AS SIGNED ) FROM tab0
----
-11

skipif mysql # not compatible
query I rowsort label-7890
SELECT ALL - 38 - - COUNT ( * ) * + COUNT ( * ) * + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-7891
SELECT DISTINCT - 94 - COUNT( * ) AS col0 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-7891
SELECT DISTINCT - 94 - COUNT ( * ) AS col0 FROM tab0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7892
SELECT + MAX( + 99 ) - + COUNT( * ) FROM tab0
----
96

skipif mysql # not compatible
query I rowsort label-7892
SELECT + MAX ( + 99 ) - + COUNT ( * ) FROM tab0
----
96

query II rowsort
SELECT col2 - + 89 + - col2, col1 + - col1 AS col0 FROM tab1
----
-89
0
-89
0
-89
0

query I rowsort
SELECT + - 62 AS col0 FROM tab2 WHERE - + 98 IS NOT NULL
----
-62
-62
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-7895
SELECT ALL COUNT( * ), 31 AS col2 FROM tab1 AS cor0
----
3
31

skipif mysql # not compatible
query II rowsort label-7895
SELECT ALL COUNT ( * ), 31 AS col2 FROM tab1 AS cor0
----
3
31

onlyif mysql # aggregate syntax: 
query I rowsort label-7896
SELECT + SUM( - + 39 ) AS col0 FROM tab0 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort label-7896
SELECT + SUM ( - + 39 ) AS col0 FROM tab0 AS cor0
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-7897
SELECT + COUNT( * ) * - COUNT( * ) * - COUNT( ALL - 57 ) FROM tab0 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-7897
SELECT + COUNT ( * ) * - COUNT ( * ) * - COUNT ( ALL - 57 ) FROM tab0 AS cor0
----
27

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL = + - ( col1 ) - - 98 * + ( 1 )
----

query II rowsort
SELECT DISTINCT ( + col1 ) AS col2, col2 + col0 AS col0 FROM tab0
----
1
196
21
97
81
62

query I rowsort
SELECT + - 61 * col0 FROM tab2 cor0
----
-2806
-3904
-4575

onlyif mysql # aggregate syntax: 
query I rowsort label-7901
SELECT DISTINCT - - MIN( + col0 ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-7901
SELECT DISTINCT - - MIN ( + col0 ) FROM tab0 AS cor0
----
15

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 20 < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col0 ) NOT BETWEEN + col2 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7904
SELECT ALL - COUNT( - CAST( NULL AS SIGNED ) ) col1 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7904
SELECT ALL - COUNT ( - CAST ( NULL AS INTEGER ) ) col1 FROM tab1
----
0

query I rowsort
SELECT ALL - 5 * + + 41 FROM tab2
----
-205
-205
-205

query I rowsort
SELECT ALL col2 + - col1 + + - ( + - col2 ) AS col1 FROM tab0
----
-1
13
197

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7907
SELECT + 85 + + + MAX( DISTINCT - col1 ) + - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7907
SELECT + 85 + + + MAX ( DISTINCT - col1 ) + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7908
SELECT - COUNT( + 91 ) * - 59 + - 21 FROM tab1 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-7908
SELECT - COUNT ( + 91 ) * - 59 + - 21 FROM tab1 AS cor0
----
156

query I rowsort
SELECT 46 + + 10 FROM tab2 AS cor0
----
56
56
56

query I rowsort
SELECT DISTINCT col2 + + 82 AS col1 FROM tab1 AS cor0
----
141
150
178

query I rowsort
SELECT DISTINCT col2 * + 87 + + 74 FROM tab2 cor0
----
2075
3554
5120

onlyif mysql # aggregate syntax: 
query I rowsort label-7912
SELECT DISTINCT 4 - MAX( + + col0 ) FROM tab1
----
-87

skipif mysql # not compatible
query I rowsort label-7912
SELECT DISTINCT 4 - MAX ( + + col0 ) FROM tab1
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-7913
SELECT - + COUNT( * ) * - 27 FROM tab1 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-7913
SELECT - + COUNT ( * ) * - 27 FROM tab1 AS cor0
----
81

query II rowsort
SELECT - - 68, - col2 AS col2 FROM tab2 AS cor0
----
68
-23
68
-40
68
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7915
SELECT ALL + COUNT( * ) * + AVG ( - - CAST( 66 AS SIGNED ) ) - - 48 AS col0 FROM tab0 AS cor0 WHERE NOT - col2 * col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7915
SELECT ALL + COUNT ( * ) * + AVG ( - - CAST ( 66 AS INTEGER ) ) - - 48 AS col0 FROM tab0 AS cor0 WHERE NOT - col2 * col1 IS NOT NULL
----
NULL

query I rowsort
SELECT + col2 * - col1 * - col1 * 38 - + col1 FROM tab0 AS cor0
----
11717865
167559
3761

onlyif mysql # DIV for integer division: 
query II rowsort label-7917
SELECT - + 9 DIV + - col0 - + col2 + col0 * - + 23 * - - 76 AS col1, + ( - 45 ) FROM tab2 AS cor0
----
-111912
-45
-131158
-45
-80431
-45

skipif mysql # not compatible
query II rowsort label-7917
SELECT - + 9 / + - col0 - + col2 + col0 * - + 23 * - - 76 AS col1, + ( - 45 ) FROM tab2 AS cor0
----
-111912
-45
-131158
-45
-80431
-45

query I rowsort
SELECT DISTINCT + col1 + + - col1 + ( + col0 ) + col2 FROM tab1 AS cor0 WHERE ( NOT col1 BETWEEN - col2 - - col2 AND - + col0 )
----
144
147
159

onlyif mysql # aggregate syntax: 
query I rowsort label-7919
SELECT DISTINCT + 22 + + COUNT( + - 3 ) col0 FROM tab1 AS cor0
----
25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7919
SELECT DISTINCT + 22 + + COUNT ( + - 3 ) col0 FROM tab1 AS cor0
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7920
SELECT + 90 - ( - col1 ) + + + 99 AS col1, CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
190
NULL
210
NULL
270
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7920
SELECT + 90 - ( - col1 ) + + + 99 AS col1, CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
190
NULL
210
NULL
270
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7921
SELECT ALL col1 + + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7921
SELECT ALL col1 + + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 + + 18 = 13
----

query I rowsort
SELECT DISTINCT col1 * col0 + - + col2 AS col2 FROM tab1 AS cor0
----
366
4209
618

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - + col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7925
SELECT DISTINCT * FROM tab2 WHERE - col0 / 31 * ( + CAST( + + 64 AS SIGNED ) ) * + + col1 + - col0 NOT BETWEEN + 50 AND + - 24
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7925
SELECT DISTINCT * FROM tab2 WHERE - col0 / 31 * ( + CAST ( + + 64 AS INTEGER ) ) * + + col1 + - col0 NOT BETWEEN + 50 AND + - 24
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 24 + + col0 col1 FROM tab0
----
198
218
54

query I rowsort
SELECT + 28 + 48 * + + col2 * 99 FROM tab2
----
109324
190108
275644

query I rowsort
SELECT ALL col0 FROM tab1 WHERE ( + col1 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 NOT BETWEEN ( col0 ) AND - col0 + + - 62 + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7930
SELECT ALL MIN( DISTINCT - col1 ) AS col2 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-7930
SELECT ALL MIN ( DISTINCT - col1 ) AS col2 FROM tab2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7931
SELECT DISTINCT + SUM( + ( + + 74 ) ) AS col1 FROM tab0
----
222

skipif mysql # not compatible
query I rowsort label-7931
SELECT DISTINCT + SUM ( + ( + + 74 ) ) AS col1 FROM tab0
----
222

onlyif mysql # aggregate syntax: 
query I rowsort label-7932
SELECT DISTINCT + SUM( + col2 ) * + COUNT( * ) + + 21 + + COUNT( * ) FROM tab2 AS cor0 WHERE NOT + ( - + col0 ) * + - 49 + - col1 * - - col0 - + col0 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7932
SELECT DISTINCT + SUM ( + col2 ) * + COUNT ( * ) + + 21 + + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + ( - + col0 ) * + - 49 + - col1 * - - col0 - + col0 >= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7933
SELECT DISTINCT - COUNT( * ) FROM tab1 AS cor0 WHERE + 71 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7933
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 WHERE + 71 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7934
SELECT ALL - COUNT( col0 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7934
SELECT ALL - COUNT ( col0 ) AS col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT col1 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7936
SELECT - CAST( NULL AS SIGNED ) AS col0, 11 FROM tab1
----
NULL
11
NULL
11
NULL
11

skipif mysql # not compatible
query II rowsort label-7936
SELECT - CAST ( NULL AS INTEGER ) AS col0, 11 FROM tab1
----
NULL
11
NULL
11
NULL
11

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL > col1 + - col2 - + - 5
----

query I rowsort
SELECT 14 + + - col1 AS col1 FROM tab0 AS cor0
----
-67
-7
13

query I rowsort
SELECT 49 + - col0 FROM tab1 AS cor0
----
-2
-36
-42

query I rowsort
SELECT - col0 * + - col1 + - col0 + + col0 AS col2 FROM tab2
----
2346
4928
5025

onlyif mysql # DIV for integer division: 
query II rowsort label-7941
SELECT + 68 + + col2 AS col2, - ( - - 90 ) DIV + - col0 + col1 FROM tab2
----
108
78
126
68
91
52

skipif mysql # not compatible
query II rowsort label-7941
SELECT + 68 + + col2 AS col2, - ( - - 90 ) / + - col0 + col1 FROM tab2
----
108
78
126
68
91
52

query I rowsort
SELECT + 95 * + col0 * + - 74 FROM tab0
----
-105450
-611610
-681910

query I rowsort
SELECT ALL - 44 + - col0 AS col2 FROM tab1
----
-129
-135
-95

query II rowsort
SELECT 50 - - 42 + 44 + + 4, - col0 AS col2 FROM tab0 AS cor0
----
140
-15
140
-87
140
-97

query III rowsort
SELECT * FROM tab1 cor0 WHERE col1 BETWEEN NULL AND col0
----

query II rowsort
SELECT ALL col1 + + - 29, - col0 FROM tab0 WHERE NOT NULL BETWEEN 2 AND NULL
----

query II rowsort
SELECT - 87 * - col2 + - col2 * - 57 + 42 AS col2, col2 AS col0 FROM tab1 AS cor0
----
13866
96
8538
59
9834
68

query I rowsort
SELECT - - col1 * - - col2 FROM tab1 AS cor0
----
1344
295
3196

query I rowsort
SELECT DISTINCT 82 + + + 33 * - ( - - 89 ) FROM tab0 AS cor0
----
-2855

onlyif mysql # aggregate syntax: 
query I rowsort label-7950
SELECT MAX( DISTINCT col1 ) AS col1 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-7950
SELECT MAX ( DISTINCT col1 ) AS col1 FROM tab1 AS cor0
----
47

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7951
SELECT - - CAST( NULL AS DECIMAL ) * ( - col0 ) - col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7951
SELECT - - CAST ( NULL AS REAL ) * ( - col0 ) - col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL IN ( - col0 + + col2, 5, 5, 18 )
----

query I rowsort
SELECT DISTINCT 19 * + + 36 FROM tab1
----
684

onlyif mysql # aggregate syntax: 
query I rowsort label-7954
SELECT DISTINCT COUNT( DISTINCT - + 90 ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7954
SELECT DISTINCT COUNT ( DISTINCT - + 90 ) AS col0 FROM tab0
----
1

query I rowsort
SELECT + + col1 * - 36 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7956
SELECT DISTINCT MIN( 30 ), COUNT( * ) col1 FROM tab1
----
30
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7956
SELECT DISTINCT MIN ( 30 ), COUNT ( * ) col1 FROM tab1
----
30
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 + - - 76 + + col0 * - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL - 62 AS col0, + ( + - 97 ) AS col2 FROM tab1
----
-62
-97
-62
-97
-62
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-7959
SELECT ALL - 56 DIV - - col1 AS col0 FROM tab1 AS cor0
----
-1
-11
-4

skipif mysql # not compatible
query I rowsort label-7959
SELECT ALL - 56 / - - col1 AS col0 FROM tab1 AS cor0
----
-1
-11
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7960
SELECT + + COUNT( * ) * - 36 * + 56 - + + 82 AS col0 FROM tab2 AS cor0
----
-6130

skipif mysql # not compatible
query I rowsort label-7960
SELECT + + COUNT ( * ) * - 36 * + 56 - + + 82 AS col0 FROM tab2 AS cor0
----
-6130

query I rowsort
SELECT ALL - col1 * 69 AS col2 FROM tab0 cor0
----
-1449
-5589
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-7962
SELECT + ( - + COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7962
SELECT + ( - + COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + col2 + + col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7964
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - - COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7964
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - - COUNT ( * ) FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT + ( + col1 ), col1 FROM tab1 AS cor0
----
14
14
47
47
5
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7966
SELECT ALL + - ( - CAST( col2 AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-7966
SELECT ALL + - ( - CAST ( col2 AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
10
47
99

query III rowsort
SELECT * FROM tab0 cor0 WHERE col2 * 10 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 52 * + - ( + col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-7969
SELECT + ( + 34 ) DIV - col2 + - + 1 FROM tab0
----
-1
-1
-4

skipif mysql # not compatible
query I rowsort label-7969
SELECT + ( + 34 ) / - col2 + - + 1 FROM tab0
----
-1
-1
-4

query I rowsort
SELECT 48 + col0 * + col2 * + ( - col0 ) FROM tab0
----
-10527
-75642
-931443

query I rowsort
SELECT DISTINCT - ( - - col0 ) FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT + 33 + - - col0 * - - col2 AS col2 FROM tab1 cor0
----
4929
5048
6221

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7973
SELECT - + col0 + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7973
SELECT - + col0 + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( + 46 ) FROM tab0 AS cor0
----
46
46
46

query I rowsort
SELECT DISTINCT 38 * - - col2 - + - col2 AS col2 FROM tab0
----
1833
3861
390

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 79 * + - 16 IS NOT NULL
----

query I rowsort
SELECT ALL col2 * + + col0 FROM tab1 AS cor0
----
4896
5015
6188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 61 col1 FROM tab0 AS cor0
----
-61
-61
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-7979
SELECT DISTINCT + + SUM( DISTINCT - + col2 ) * 81 AS col1 FROM tab0 AS cor0
----
-12636

skipif mysql # not compatible
query I rowsort label-7979
SELECT DISTINCT + + SUM ( DISTINCT - + col2 ) * 81 AS col1 FROM tab0 AS cor0
----
-12636

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 50 col0 FROM tab1
----
-50
-50
-50

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7981
SELECT + 83 DIV - ( + CAST( 3 AS SIGNED ) ) FROM tab1
----
-27
-27
-27

skipif mysql # not compatible
query I rowsort label-7981
SELECT + 83 / - ( + CAST ( 3 AS INTEGER ) ) FROM tab1
----
-27
-27
-27

query I rowsort
SELECT ALL + 50 * - 3 * 33 FROM tab2
----
-4950
-4950
-4950

query I rowsort
SELECT ALL 63 * 13 AS col2 FROM tab2
----
819
819
819

onlyif mysql # aggregate syntax: 
query I rowsort label-7984
SELECT DISTINCT + COUNT( * ) * + MIN( col0 ) AS col0 FROM tab1
----
153

skipif mysql # not compatible
query I rowsort label-7984
SELECT DISTINCT + COUNT ( * ) * + MIN ( col0 ) AS col0 FROM tab1
----
153

query I rowsort
SELECT ALL col0 * - - col1 FROM tab2
----
2346
4928
5025

query I rowsort
SELECT DISTINCT 20 * + - col2 AS col2 FROM tab1 AS cor0
----
-1180
-1360
-1920

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( + 93 + + 80 * + - col1 ) AND NULL
----

query I rowsort
SELECT ALL + col1 + - - col2 * + col1 AS col2 FROM tab1 AS cor0
----
1358
300
3243

query I rowsort
SELECT DISTINCT + - 19 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-19

query II rowsort
SELECT - - col1 / + col0, 5 FROM tab1 WHERE NOT 73 * col1 / - col0 - - - col1 + 13 IS NOT NULL
----

query II rowsort
SELECT col1 AS col1, col2 AS col0 FROM tab1
----
14
96
47
68
5
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 95 col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

onlyif mysql # DIV for integer division: 
query I rowsort label-7993
SELECT + col2 DIV + + col1 FROM tab1
----
1
11
6

skipif mysql # not compatible
query I rowsort label-7993
SELECT + col2 / + + col1 FROM tab1
----
1
11
6

onlyif mysql # aggregate syntax: 
query II rowsort label-7994
SELECT ALL - 77 col0, COUNT( * ) FROM tab2
----
-77
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7994
SELECT ALL - 77 col0, COUNT ( * ) FROM tab2
----
-77
3

query I rowsort
SELECT DISTINCT - + col0 + - + col1 + + 28 AS col0 FROM tab1 cor0
----
-110
-37
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7996
SELECT DISTINCT + - ( 7 ) + + CAST( 53 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-7996
SELECT DISTINCT + - ( 7 ) + + CAST ( 53 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
46

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 * col2 * - + col1 * + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7998
SELECT DISTINCT - MIN( + col2 ) + + 20 + COUNT( * ) FROM tab1
----
-36

skipif mysql # not compatible
query I rowsort label-7998
SELECT DISTINCT - MIN ( + col2 ) + + 20 + COUNT ( * ) FROM tab1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-7999
SELECT - + COUNT( * ) FROM tab0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7999
SELECT - + COUNT ( * ) FROM tab0 WHERE NULL IS NULL
----
-3

query I rowsort
SELECT ALL - 49 + ( - 93 ) AS col1 FROM tab1
----
-142
-142
-142

query I rowsort
SELECT - 21 * - 72 * + + col1 * + + col2 FROM tab1
----
2032128
446040
4832352

query I rowsort
SELECT DISTINCT ( + col1 ) * + col1 FROM tab0
----
1
441
6561

query III rowsort
SELECT * FROM tab2 WHERE ( NOT col2 = NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8004
SELECT + 87 * + + col2 DIV col2 * + + col0 FROM tab1
----
4437
7395
7917

skipif mysql # not compatible
query I rowsort label-8004
SELECT + 87 * + + col2 / col2 * + + col0 FROM tab1
----
4437
7395
7917

onlyif mysql # aggregate syntax: 
query I rowsort label-8005
SELECT DISTINCT - SUM( - col0 ) - - SUM( DISTINCT + + 56 ) FROM tab0
----
255

skipif mysql # not compatible
query I rowsort label-8005
SELECT DISTINCT - SUM ( - col0 ) - - SUM ( DISTINCT + + 56 ) FROM tab0
----
255

onlyif mysql # aggregate syntax: 
query I rowsort label-8006
SELECT DISTINCT 54 + - + COUNT( * ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-8006
SELECT DISTINCT 54 + - + COUNT ( * ) FROM tab1
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 37 col1 FROM tab2
----
37

query I rowsort
SELECT DISTINCT col2 + - + col0 FROM tab0 AS cor0
----
-77
2
32

query I rowsort
SELECT - 95 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 77 * - col1 * + col2 col1 FROM tab0
----
-16170
-293139
-7623

query I rowsort
SELECT + 39 * - col1 FROM tab1 cor0
----
-1833
-195
-546

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT - 30 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-8013
SELECT DISTINCT COUNT( * ) AS col0, + MIN( col0 ) FROM tab2 AS cor0
----
3
46

skipif mysql # not compatible
query II rowsort label-8013
SELECT DISTINCT COUNT ( * ) AS col0, + MIN ( col0 ) FROM tab2 AS cor0
----
3
46

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 4 > - 21
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8015
SELECT - MIN( + - ( + + col2 ) ) AS col0 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-8015
SELECT - MIN ( + - ( + + col2 ) ) AS col0 FROM tab2
----
58

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 tab0 WHERE + 92 * + - 73 + 39 + + ( col1 ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8018
SELECT ALL + COUNT( DISTINCT - col1 ) col2 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8018
SELECT ALL + COUNT ( DISTINCT - col1 ) col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8019
SELECT DISTINCT COUNT( + col1 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8019
SELECT DISTINCT COUNT ( + col1 ) AS col2 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8020
SELECT ALL CAST( - - col0 AS SIGNED ) AS col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-8020
SELECT ALL CAST ( - - col0 AS INTEGER ) AS col0 FROM tab2
----
46
64
75

query I rowsort
SELECT + ( + + 96 ) AS col0 FROM tab1 WHERE NOT + + col0 * + col2 > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 22 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ( + col2 ) AS col1, col1 FROM tab2
----
23
51
40
77
58
67

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( + col2 - + + col2, col0 * 9 * 67 + + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8025
SELECT - ( 70 ) AS col0, - MAX( ALL - - CAST( NULL AS SIGNED ) ) + - 5 AS col2 FROM tab0 AS cor0
----
-70
NULL

skipif mysql # not compatible
query II rowsort label-8025
SELECT - ( 70 ) AS col0, - MAX ( ALL - - CAST ( NULL AS INTEGER ) ) + - 5 AS col2 FROM tab0 AS cor0
----
-70
NULL

query I rowsort
SELECT ALL col1 + 58 * col1 FROM tab0 cor0 WHERE NULL IS NULL
----
1239
4779
59

query I rowsort
SELECT + col2 + + 12 - + 43 FROM tab0 AS cor0
----
-21
16
68

onlyif mysql # DIV for integer division: 
query II rowsort label-8028
SELECT DISTINCT col0 AS col1, col0 DIV ( - col0 ) FROM tab0
----
15
-1
87
-1
97
-1

skipif mysql # not compatible
query II rowsort label-8028
SELECT DISTINCT col0 AS col1, col0 / ( - col0 ) FROM tab0
----
15
-1
87
-1
97
-1

query I rowsort
SELECT col2 * + - 33 AS col1 FROM tab0
----
-1551
-3267
-330

query I rowsort
SELECT ALL + - 42 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9894093f29c0defae91347934f060329

query I rowsort
SELECT 2 AS col0 FROM tab2 cor0
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8032
SELECT + MIN( - + col0 ) AS col0 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-8032
SELECT + MIN ( - + col0 ) AS col0 FROM tab0 AS cor0
----
-97

query I rowsort
SELECT DISTINCT - 67 + - 18 FROM tab2 AS cor0
----
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-8034
SELECT ALL - col0 DIV - - col1 col0 FROM tab0 AS cor0
----
-4
-97
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8034
SELECT ALL - col0 / - - col1 col0 FROM tab0 AS cor0
----
-4
-97
0

query I rowsort
SELECT ALL col2 + - 96 AS col0 FROM tab1 AS cor0
----
-28
-37
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8036
SELECT DISTINCT + - 60 DIV + - COUNT( * ) FROM tab2 cor0
----
20

skipif mysql # not compatible
query I rowsort label-8036
SELECT DISTINCT + - 60 / + - COUNT ( * ) FROM tab2 cor0
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8037
SELECT DISTINCT col0 + - CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8037
SELECT DISTINCT col0 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + col1 ) = - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8039
SELECT ALL SUM( ALL - + col1 ) * + 5 * COUNT( * ) FROM tab2
----
-2925

skipif mysql # not compatible
query I rowsort label-8039
SELECT ALL SUM ( ALL - + col1 ) * + 5 * COUNT ( * ) FROM tab2
----
-2925

query II rowsort
SELECT DISTINCT col0 - - + col0, - col1 + + 95 AS col1 FROM tab2
----
128
18
150
28
92
44

query I rowsort
SELECT - col2 + - 34 FROM tab1
----
-102
-130
-93

query III rowsort
SELECT * FROM tab1 WHERE NULL >= - col2 * + 40
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8043
SELECT ALL + COUNT( * ) DIV 74 DIV + COUNT( * ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8043
SELECT ALL + COUNT ( * ) / 74 / + COUNT ( * ) AS col2 FROM tab0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8044
SELECT + 72 + + CAST( - COUNT( * ) AS SIGNED ) * COUNT( DISTINCT + 79 ) * ( COUNT( * ) ) AS col2 FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-8044
SELECT + 72 + + CAST ( - COUNT ( * ) AS INTEGER ) * COUNT ( DISTINCT + 79 ) * ( COUNT ( * ) ) AS col2 FROM tab1
----
63

query II rowsort
SELECT DISTINCT - col0 AS col1, 41 AS col1 FROM tab2
----
-46
41
-64
41
-75
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col0 ) + - col0 col0 FROM tab2
----
-128
-150
-92

query I rowsort
SELECT DISTINCT + 3 + + col0 FROM tab2 cor0
----
49
67
78

query II rowsort
SELECT - col1 AS col0, - 27 AS col0 FROM tab0 AS cor0
----
-1
-27
-21
-27
-81
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-8049
SELECT ALL - 78 DIV 47 * + ( + col0 ) col0 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8049
SELECT ALL - 78 / 47 * + ( + col0 ) col0 FROM tab1
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8050
SELECT ALL + + SUM( - col2 ) AS col0 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-8050
SELECT ALL + + SUM ( - col2 ) AS col0 FROM tab2 AS cor0
----
-121

query I rowsort
SELECT + - col0 * - + col1 FROM tab1 AS cor0
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-8052
SELECT ALL + COUNT( * ) * - + COUNT( * ) FROM tab0 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8052
SELECT ALL + COUNT ( * ) * - + COUNT ( * ) FROM tab0 cor0
----
-9

query I rowsort
SELECT - + 36 + 34 * col2 AS col2 FROM tab2 AS cor0 WHERE NOT 78 <> NULL
----

query II rowsort
SELECT - col2 * 38, + col0 / - col1 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) > 59
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8055
SELECT DISTINCT + MAX( + + 31 ) FROM tab2 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-8055
SELECT DISTINCT + MAX ( + + 31 ) FROM tab2 AS cor0
----
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 80 col1 FROM tab0 WHERE ( NOT NULL BETWEEN - col2 AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8057
SELECT DISTINCT - COUNT( * ) FROM tab1 WHERE NOT - - ( col2 ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8057
SELECT DISTINCT - COUNT ( * ) FROM tab1 WHERE NOT - - ( col2 ) IS NULL
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8058
SELECT 24 DIV MAX( 81 ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8058
SELECT 24 / MAX ( 81 ) AS col1 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8059
SELECT col0 DIV + 89 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8059
SELECT col0 / + 89 FROM tab1
----
0
0
1

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + 31 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8061
SELECT DISTINCT + + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1 WHERE NULL IN ( - col1, col1 - col0 * - + col1 )
----

skipif mysql # not compatible
query I rowsort label-8061
SELECT DISTINCT + + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1 WHERE NULL IN ( - col1, col1 - col0 * - + col1 )
----

query I rowsort
SELECT - ( - 53 ) AS col0 FROM tab1
----
53
53
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8063
SELECT ALL + COUNT( * ) + - 27 * + + COUNT( * ) FROM tab2 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-8063
SELECT ALL + COUNT ( * ) + - 27 * + + COUNT ( * ) FROM tab2 AS cor0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-8064
SELECT DISTINCT - 21 + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-8064
SELECT DISTINCT - 21 + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-18

query I rowsort
SELECT - - 71 * - + col2 AS col1 FROM tab1 AS cor0
----
-4189
-4828
-6816

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8066
SELECT COUNT( * ) * AVG ( ALL - CAST( NULL AS SIGNED ) / - col0 ) + - MAX( DISTINCT 42 ) col0 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8066
SELECT COUNT ( * ) * AVG ( ALL - CAST ( NULL AS INTEGER ) / - col0 ) + - MAX ( DISTINCT 42 ) col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8067
SELECT 77 * COUNT( * ) + - COUNT( * ) FROM tab2
----
228

skipif mysql # not compatible
query I rowsort label-8067
SELECT 77 * COUNT ( * ) + - COUNT ( * ) FROM tab2
----
228

query I rowsort
SELECT 8 * 34 + - 96 FROM tab1
----
176
176
176

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8069
SELECT ALL - 0 * + CAST( NULL AS SIGNED ) + - col0 * col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8069
SELECT ALL - 0 * + CAST ( NULL AS INTEGER ) + - col0 * col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 92 + 55 <> + col1 * col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8071
SELECT - COUNT( * ) * 43 FROM tab1
----
-129

skipif mysql # not compatible
query I rowsort label-8071
SELECT - COUNT ( * ) * 43 FROM tab1
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-8072
SELECT DISTINCT + SUM( 85 ) * - 38 AS col0 FROM tab2 WHERE NULL IS NULL
----
-9690

skipif mysql # not compatible
query I rowsort label-8072
SELECT DISTINCT + SUM ( 85 ) * - 38 AS col0 FROM tab2 WHERE NULL IS NULL
----
-9690

onlyif mysql # aggregate syntax: 
query I rowsort label-8073
SELECT + COUNT( * ) + 13 AS col1 FROM tab2
----
16

skipif mysql # not compatible
query I rowsort label-8073
SELECT + COUNT ( * ) + 13 AS col1 FROM tab2
----
16

query I rowsort
SELECT ALL + 31 + col1 AS col0 FROM tab0
----
112
32
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8075
SELECT DISTINCT 83 + COUNT( + col0 ) col0 FROM tab0
----
86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8075
SELECT DISTINCT 83 + COUNT ( + col0 ) col0 FROM tab0
----
86

query I rowsort
SELECT 93 FROM tab1 WHERE NOT ( - col0 ) < ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + 41 ) NOT IN ( + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8078
SELECT CAST( 76 AS SIGNED ) * col2 FROM tab2
----
1748
3040
4408

skipif mysql # not compatible
query I rowsort label-8078
SELECT CAST ( 76 AS INTEGER ) * col2 FROM tab2
----
1748
3040
4408

query I rowsort
SELECT ALL 18 * + col0 AS col1 FROM tab1
----
1530
1638
918

query III rowsort
SELECT * FROM tab0 WHERE col0 - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8081
SELECT DISTINCT 2 DIV 4 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8081
SELECT DISTINCT 2 / 4 AS col1 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8082
SELECT MAX( + 67 ) FROM tab0
----
67

skipif mysql # not compatible
query I rowsort label-8082
SELECT MAX ( + 67 ) FROM tab0
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8083
SELECT 40 DIV + COUNT( * ) AS col1 FROM tab2
----
13

skipif mysql # not compatible
query I rowsort label-8083
SELECT 40 / + COUNT ( * ) AS col1 FROM tab2
----
13

query III rowsort
SELECT * FROM tab0 WHERE NOT 70 - 56 * col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE col2 - 86 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 >= NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 43 / col2 + + col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 4 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + ( + ( 30 ) ) FROM tab0 cor0 WHERE NOT + col1 <> ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8090
SELECT + col0 DIV - 42 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8090
SELECT + col0 / - 42 FROM tab2 cor0
----
-1
-1
-1

query I rowsort
SELECT - col1 * 4 AS col2 FROM tab0 AS cor0
----
-324
-4
-84

query I rowsort
SELECT ALL 1 * col2 AS col0 FROM tab1
----
59
68
96

query I rowsort
SELECT col1 FROM tab0 WHERE NOT NULL NOT IN ( ( col0 ) * col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL > ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8095
SELECT ALL + MIN( + col0 ) col1 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8095
SELECT ALL + MIN ( + col0 ) col1 FROM tab0 AS cor0
----
15

query I rowsort
SELECT ( - ( 43 ) ) AS col1 FROM tab0 cor0
----
-43
-43
-43

query I rowsort
SELECT ALL + 52 * 95 FROM tab1 AS cor0
----
4940
4940
4940

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN ( - col0 ) AND NULL
----

query I rowsort
SELECT - col2 * 55 + col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL >= 87
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8100
SELECT - COUNT( * ) * 78 FROM tab0 cor0
----
-234

skipif mysql # not compatible
query I rowsort label-8100
SELECT - COUNT ( * ) * 78 FROM tab0 cor0
----
-234

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col2 ) NOT IN ( - col0 * - ( - col2 ) )
----

query I rowsort
SELECT 36 + + col2 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8103
SELECT DISTINCT + SUM( 21 ) FROM tab2
----
63

skipif mysql # not compatible
query I rowsort label-8103
SELECT DISTINCT + SUM ( 21 ) FROM tab2
----
63

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 <= col0
----
15
81
47

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - ( - col1 ) = ( NULL )
----

query I rowsort
SELECT - ( col2 ) + col2 * 81 AS col2 FROM tab2 AS cor0
----
1840
3200
4640

onlyif mysql # aggregate syntax: 
query I rowsort label-8107
SELECT ALL 38 + MAX( + 28 ) FROM tab2 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-8107
SELECT ALL 38 + MAX ( + 28 ) FROM tab2 AS cor0
----
66

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 IN ( + 95 / + col2 + col2 )
----

query I rowsort
SELECT ALL col2 + 3 AS col2 FROM tab1 AS cor0
----
62
71
99

query I rowsort
SELECT DISTINCT - col2 + ( - 75 ) FROM tab0 WHERE NOT - col2 * + 16 BETWEEN col0 AND - col1 * col2
----
-122
-174
-85

query I rowsort
SELECT DISTINCT ( 39 ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
39

query I rowsort
SELECT DISTINCT col0 + + + 78 FROM tab2
----
124
142
153

query I rowsort
SELECT - ( + - col1 ) AS col0 FROM tab1 AS cor0
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 34 col2, col1 FROM tab2 AS cor0
----
34
51
34
67
34
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8115
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8115
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 IN ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8116
SELECT 41 + - SUM( ALL + 77 ) FROM tab1 AS cor0
----
-190

skipif mysql # not compatible
query I rowsort label-8116
SELECT 41 + - SUM ( ALL + 77 ) FROM tab1 AS cor0
----
-190

query I rowsort
SELECT ALL + col2 - col1 * - col0 * col1 AS col1 FROM tab2 AS cor0
----
119669
336733
379496

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN ( + - 56 ) AND + col0
----

query I rowsort
SELECT ALL + ( + col0 ) - + col0 AS col0 FROM tab1
----
0
0
0

query II rowsort
SELECT col1 + - 41, + col1 FROM tab2
----
10
51
26
67
36
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8121
SELECT ALL col1 FROM tab0 WHERE NULL NOT BETWEEN - 1 * - - 83 + col0 * - col0 + - CAST( NULL AS SIGNED ) AND ( 29 )
----

skipif mysql # not compatible
query I rowsort label-8121
SELECT ALL col1 FROM tab0 WHERE NULL NOT BETWEEN - 1 * - - 83 + col0 * - col0 + - CAST ( NULL AS INTEGER ) AND ( 29 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8122
SELECT ALL - COUNT( * ) - - MAX( DISTINCT - - ( col1 ) ) FROM tab2
----
74

skipif mysql # not compatible
query I rowsort label-8122
SELECT ALL - COUNT ( * ) - - MAX ( DISTINCT - - ( col1 ) ) FROM tab2
----
74

query I rowsort
SELECT 25 + col1 FROM tab1
----
30
39
72

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 63 * - + 86 * - col0 ) >= col1 * - 46
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8125
SELECT - SUM( DISTINCT + + 95 ) FROM tab1
----
-95

skipif mysql # not compatible
query I rowsort label-8125
SELECT - SUM ( DISTINCT + + 95 ) FROM tab1
----
-95

query II rowsort
SELECT col0 * col0, col1 + + - col1 AS col2 FROM tab0 AS cor0
----
225
0
7569
0
9409
0

query I rowsort
SELECT - ( + col2 ) * 70 * - col0 AS col0 FROM tab1 AS cor0
----
342720
351050
433160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8128
SELECT CAST( NULL AS SIGNED ) - col0 AS col2 FROM tab2 AS cor0 WHERE NOT ( ( - col2 ) BETWEEN NULL AND 83 )
----

skipif mysql # not compatible
query I rowsort label-8128
SELECT CAST ( NULL AS INTEGER ) - col0 AS col2 FROM tab2 AS cor0 WHERE NOT ( ( - col2 ) BETWEEN NULL AND 83 )
----

query I rowsort
SELECT ALL col0 AS col2 FROM tab1 WHERE + col2 + + 30 IS NULL
----

query I rowsort
SELECT col1 * 13 + col0 AS col1 FROM tab2 WHERE NOT ( - + col0 * + col1 + - - col1 * + col1 ) IS NULL
----
1065
709
946

query I rowsort
SELECT ALL + - col1 FROM tab1 AS cor0 WHERE - 19 BETWEEN + + 96 AND col0
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL >= - col0 / + + col0
----

query I rowsort
SELECT DISTINCT - + col0 * + - col0 + + col0 FROM tab0 AS cor0
----
240
7656
9506

query I rowsort
SELECT 49 + + col0 AS col0 FROM tab0 cor0 WHERE NOT col2 * - - ( col1 ) <> ( 31 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 + + - 13 + + + col2 col1, + 30 FROM tab0 AS cor0
----
183
30
49
30
84
30

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 >= + col1
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query II rowsort label-8137
SELECT ALL - 65 AS col0, SUM( DISTINCT + 25 ) AS col1 FROM tab1
----
-65
25

skipif mysql # not compatible
query II rowsort label-8137
SELECT ALL - 65 AS col0, SUM ( DISTINCT + 25 ) AS col1 FROM tab1
----
-65
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8138
SELECT ALL - CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE NOT ( 44 + col0 - col2 * + - 43 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8138
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE NOT ( 44 + col0 - col2 * + - 43 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8139
SELECT ( - MIN( ALL + col0 ) ) + - CAST( NULL AS DECIMAL ) col2 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8139
SELECT ( - MIN ( ALL + col0 ) ) + - CAST ( NULL AS REAL ) col2 FROM tab2
----
NULL

query II rowsort
SELECT DISTINCT col0 AS col0, col2 AS col2 FROM tab1
----
51
96
85
59
91
68

query III rowsort
SELECT * FROM tab0 WHERE ( NOT NULL > + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 13 col2 FROM tab2
----
-13
-13
-13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col0, col0 FROM tab0
----
10
87
47
15
99
97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 81 + - - col1 ) NOT BETWEEN NULL AND col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 > ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8146
SELECT + 69 + - COUNT( * ) FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-8146
SELECT + 69 + - COUNT ( * ) FROM tab0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8147
SELECT 86 + - + 27 * - MAX( - col2 ) * - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NULL <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8147
SELECT 86 + - + 27 * - MAX ( - col2 ) * - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NULL <> NULL
----
NULL

query I rowsort
SELECT ALL 26 AS col2 FROM tab0 cor0
----
26
26
26

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT ( + 24 ) <> NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8150
SELECT + col1 DIV - + col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8150
SELECT + col1 / - + col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + + col0 AS col2 FROM tab1 AS cor0 WHERE NULL >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8152
SELECT + + col2 * - + col1 + + col2 * CAST( NULL AS SIGNED ) + - + col1 * - 37 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8152
SELECT + + col2 * - + col1 + + col2 * CAST ( NULL AS INTEGER ) + - + col1 * - 37 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8153
SELECT - COUNT( ALL + col2 ) col1 FROM tab2 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8153
SELECT - COUNT ( ALL + col2 ) col1 FROM tab2 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8154
SELECT DISTINCT COUNT( * ) - - + 65 col2 FROM tab2
----
68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8154
SELECT DISTINCT COUNT ( * ) - - + 65 col2 FROM tab2
----
68

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 + + col2 + - - 99 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL + col0 AS col2, + col1 + col0 FROM tab2
----
46
97
64
141
75
142

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8157
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - CAST( ( + + col0 ) AS DECIMAL ) * - col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8157
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - CAST ( ( + + col0 ) AS REAL ) * - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8158
SELECT * FROM tab1 AS cor0 WHERE NOT 77 + CAST( NULL AS SIGNED ) * + col2 + + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8158
SELECT * FROM tab1 AS cor0 WHERE NOT 77 + CAST ( NULL AS INTEGER ) * + col2 + + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - 79, - col0 col1 FROM tab1 AS cor0
----
-79
-51
-79
-85
-79
-91

query I rowsort
SELECT - 93 AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b

onlyif mysql # aggregate syntax: 
query I rowsort label-8161
SELECT ALL COUNT( * ) * + 49 AS col2 FROM tab2
----
147

skipif mysql # not compatible
query I rowsort label-8161
SELECT ALL COUNT ( * ) * + 49 AS col2 FROM tab2
----
147

query I rowsort
SELECT DISTINCT 35 * - - col2 AS col0 FROM tab0 AS cor0
----
1645
3465
350

query I rowsort
SELECT - col2 * - col0 * - + col1 AS col1 FROM tab2 AS cor0
----
-197120
-291450
-53958

query II rowsort
SELECT ALL - - 43 + + 97 AS col0, + col2 FROM tab1 AS cor0
----
140
59
140
68
140
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8165
SELECT DISTINCT + MIN( + 80 ) * + COUNT( DISTINCT 8 ) AS col1 FROM tab2 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-8165
SELECT DISTINCT + MIN ( + 80 ) * + COUNT ( DISTINCT 8 ) AS col1 FROM tab2 AS cor0
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8166
SELECT - col0 * + 41 col2, + CAST( NULL AS SIGNED ) * - - 75 FROM tab0 AS cor0 WHERE NOT - 16 IS NULL
----
-3567
NULL
-3977
NULL
-615
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8166
SELECT - col0 * + 41 col2, + CAST ( NULL AS INTEGER ) * - - 75 FROM tab0 AS cor0 WHERE NOT - 16 IS NULL
----
-3567
NULL
-3977
NULL
-615
NULL

query I rowsort
SELECT ALL + + 58 AS col2 FROM tab0 AS cor0
----
58
58
58

query I rowsort
SELECT + 25 * ( + 49 ) + + + col2 AS col1 FROM tab2 AS cor0
----
1248
1265
1283

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 34 * - 96 col1 FROM tab0 AS cor0
----
3264
3264
3264

onlyif mysql # aggregate syntax: 
query I rowsort label-8170
SELECT ALL 26 + - MIN( + col1 ) FROM tab2
----
-25

skipif mysql # not compatible
query I rowsort label-8170
SELECT ALL 26 + - MIN ( + col1 ) FROM tab2
----
-25

query II rowsort
SELECT DISTINCT + 19, + 96 AS col0 FROM tab2
----
19
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8172
SELECT DISTINCT COUNT( * ) * + MIN( + + CAST( 65 AS SIGNED ) ) FROM tab0
----
195

skipif mysql # not compatible
query I rowsort label-8172
SELECT DISTINCT COUNT ( * ) * + MIN ( + + CAST ( 65 AS INTEGER ) ) FROM tab0
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-8173
SELECT ALL COUNT( DISTINCT - col2 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8173
SELECT ALL COUNT ( DISTINCT - col2 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8174
SELECT DISTINCT 80 * - COUNT( * ) col2 FROM tab0
----
-240

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8174
SELECT DISTINCT 80 * - COUNT ( * ) col2 FROM tab0
----
-240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8175
SELECT DISTINCT - col0 * + CAST( + col1 AS SIGNED ) + - col1 + - col0 * - + col0 + + ( + 47 ) FROM tab1
----
1920
4004
6842

skipif mysql # not compatible
query I rowsort label-8175
SELECT DISTINCT - col0 * + CAST ( + col1 AS INTEGER ) + - col1 + - col0 * - + col0 + + ( + 47 ) FROM tab1
----
1920
4004
6842

query I rowsort
SELECT - col0 + + - col1 AS col1 FROM tab1
----
-138
-65
-90

query I rowsort
SELECT + col1 + - + 35 * + + 96 + col2 FROM tab2
----
-3235
-3243
-3286

query I rowsort
SELECT - + 53 + - col1 - + 4 FROM tab0 AS cor0
----
-138
-58
-78

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN NULL AND + - col2 / - + 97
----

query II rowsort
SELECT 61 * - + col1 AS col1, ( + + col2 ) AS col1 FROM tab2
----
-3111
23
-4087
58
-4697
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8181
SELECT DISTINCT CAST( NULL AS SIGNED ) / - col2 * - col1 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8181
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - col2 * - col1 AS col2 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8182
SELECT ALL 32 DIV - - col2 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8182
SELECT ALL 32 / - - col2 FROM tab2
----
0
0
1

query I rowsort
SELECT + col0 * + 97 - 41 AS col2 FROM tab2
----
4421
6167
7234

onlyif mysql # aggregate syntax: 
query II rowsort label-8184
SELECT ALL - COUNT( * ) AS col2, + COUNT( * ) * + - COUNT( * ) + + 30 FROM tab2
----
-3
21

skipif mysql # not compatible
query II rowsort label-8184
SELECT ALL - COUNT ( * ) AS col2, + COUNT ( * ) * + - COUNT ( * ) + + 30 FROM tab2
----
-3
21

query I rowsort
SELECT + + col1 - - - 82 FROM tab0 AS cor0
----
-1
-61
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8186
SELECT DISTINCT ( COUNT( * ) ) AS col0, + COUNT( * ) DIV - + 12 FROM tab1 AS cor0
----
3
0

skipif mysql # not compatible
query II rowsort label-8186
SELECT DISTINCT ( COUNT ( * ) ) AS col0, + COUNT ( * ) / - + 12 FROM tab1 AS cor0
----
3
0

query III rowsort
SELECT * FROM tab2 cor0 WHERE 56 IS NULL
----

query I rowsort
SELECT + col1 * - col0 - - col2 + + col2 * - + ( + 20 ) FROM tab0 AS cor0
----
-1978
-2017
-2108

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE col0 IS NULL
----

query II rowsort
SELECT ALL 79 AS col0, col0 FROM tab0 cor0
----
79
15
79
87
79
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8191
SELECT ALL - + COUNT( DISTINCT - col0 ) * COUNT( * ) DIV - MIN( 45 ) AS col1 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8191
SELECT ALL - + COUNT ( DISTINCT - col0 ) * COUNT ( * ) / - MIN ( 45 ) AS col1 FROM tab2 cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8192
SELECT ALL + SUM( DISTINCT + CAST( - 93 AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-8192
SELECT ALL + SUM ( DISTINCT + CAST ( - 93 AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8193
SELECT - col0 * 41 AS col1, col1 * - CAST( NULL AS SIGNED ) FROM tab1
----
-2091
NULL
-3485
NULL
-3731
NULL

skipif mysql # not compatible
query II rowsort label-8193
SELECT - col0 * 41 AS col1, col1 * - CAST ( NULL AS INTEGER ) FROM tab1
----
-2091
NULL
-3485
NULL
-3731
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 BETWEEN ( NULL ) AND 54
----
75
67
58

query I rowsort
SELECT ALL col0 * ( - col1 ) FROM tab1
----
-425
-4277
-714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8196
SELECT - ( + CAST( NULL AS SIGNED ) ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8196
SELECT - ( + CAST ( NULL AS INTEGER ) ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - ( + + col1 ), - col1 AS col1 FROM tab0
----
-1
-1
-21
-21
-81
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8198
SELECT - - COUNT( * ) FROM tab1 WHERE NOT col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8198
SELECT - - COUNT ( * ) FROM tab1 WHERE NOT col2 IS NULL
----
3

query I rowsort
SELECT ( + 61 ) FROM tab1 AS cor0
----
61
61
61

query I rowsort
SELECT DISTINCT + col0 + 33 * - col0 FROM tab2 AS cor0 WHERE NOT 60 + + col0 NOT IN ( ( + col1 ) + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8201
SELECT 19 * + CAST( - col1 AS SIGNED ) AS col1 FROM tab0
----
-1539
-19
-399

skipif mysql # not compatible
query I rowsort label-8201
SELECT 19 * + CAST ( - col1 AS INTEGER ) AS col1 FROM tab0
----
-1539
-19
-399

query III rowsort
SELECT * FROM tab2 WHERE NOT 50 IS NOT NULL
----

query I rowsort
SELECT ALL + - col2 + + 90 FROM tab0 AS cor0
----
-9
43
80

query I rowsort
SELECT DISTINCT - + 24 + - col2 AS col0 FROM tab2 AS cor0
----
-47
-64
-82

query I rowsort
SELECT - 23 * - 70 FROM tab1
----
1610
1610
1610

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8206
SELECT CAST( NULL AS SIGNED ) * - - CAST( - col1 AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8206
SELECT CAST ( NULL AS INTEGER ) * - - CAST ( - col1 AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8207
SELECT col1 DIV + + 45 AS col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8207
SELECT col1 / + + 45 AS col0 FROM tab1
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8208
SELECT DISTINCT + 41 DIV + 62 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8208
SELECT DISTINCT + 41 / + 62 FROM tab0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 98 * + + 47 + - + col0 > + 97
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col2 + + + col0 AS col1 FROM tab0 AS cor0
----
196
62
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8211
SELECT ALL - col0 - CAST( - 81 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-10
-4
30

skipif mysql # not compatible
query I rowsort label-8211
SELECT ALL - col0 - CAST ( - 81 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-10
-4
30

query I rowsort
SELECT + - 22 + 49 FROM tab1 AS cor0
----
27
27
27

query I rowsort
SELECT + col2 + - 25 AS col2 FROM tab0 AS cor0
----
-15
22
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8214
SELECT DISTINCT MIN( ALL 24 ) * - COUNT( * ) + 81 AS col2 FROM tab1, tab1 AS cor0
----
-135

skipif mysql # not compatible
query I rowsort label-8214
SELECT DISTINCT MIN ( ALL 24 ) * - COUNT ( * ) + 81 AS col2 FROM tab1, tab1 AS cor0
----
-135

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + 2 / col2 + + 88 / - col2 col1 FROM tab0 AS cor0 WHERE NOT - 7 * - col2 <> NULL
----

query II rowsort
SELECT DISTINCT + + 14, col0 AS col2 FROM tab2 AS cor0
----
14
46
14
64
14
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8217
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - + col2 AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8217
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - + col2 AS col2 FROM tab1 cor0
----
NULL

query I rowsort
SELECT + ( + 51 ) * - col2 + + col1 AS col0 FROM tab1 AS cor0
----
-3004
-3421
-4882

query I rowsort
SELECT + + 16 AS col1 FROM tab2 cor0
----
16
16
16

query I rowsort
SELECT DISTINCT + 2 * + + 55 AS col1 FROM tab0 AS cor0
----
110

onlyif mysql # DIV for integer division: 
query I rowsort label-8221
SELECT + - col0 DIV - - 39 FROM tab1 cor0
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-8221
SELECT + - col0 / - - 39 FROM tab1 cor0
----
-1
-2
-2

query I rowsort
SELECT - 94 * + 98 FROM tab2 cor0
----
-9212
-9212
-9212

query II rowsort
SELECT - 83 AS col2, - 11 - col1 FROM tab0 AS cor0
----
-83
-12
-83
-32
-83
-92

query I rowsort
SELECT ALL - - 71 AS col2 FROM tab0 cor0
----
71
71
71

query I rowsort
SELECT DISTINCT - - 73 AS col1 FROM tab0 AS cor0
----
73

query III rowsort
SELECT * FROM tab0 WHERE NOT 97 + + + 83 <= - - 54
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 84 * + 95 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8228
SELECT - SUM( ALL - + col2 ) * - 28 FROM tab0
----
-4368

skipif mysql # not compatible
query I rowsort label-8228
SELECT - SUM ( ALL - + col2 ) * - 28 FROM tab0
----
-4368

onlyif mysql # aggregate syntax: 
query I rowsort label-8229
SELECT DISTINCT - MIN( - - col1 ) FROM tab0 WHERE + col1 / 52 NOT BETWEEN - + col2 AND col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8229
SELECT DISTINCT - MIN ( - - col1 ) FROM tab0 WHERE + col1 / 52 NOT BETWEEN - + col2 AND col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8230
SELECT MAX( ALL + col1 ) AS col2 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-8230
SELECT MAX ( ALL + col1 ) AS col2 FROM tab1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8231
SELECT DISTINCT 82 * + + SUM( col0 ) AS col1 FROM tab0
----
16318

skipif mysql # not compatible
query I rowsort label-8231
SELECT DISTINCT 82 * + + SUM ( col0 ) AS col1 FROM tab0
----
16318

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8232
SELECT + col1 * - CAST( NULL AS SIGNED ) * 70 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8232
SELECT + col1 * - CAST ( NULL AS INTEGER ) * 70 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8233
SELECT - SUM( DISTINCT - 11 ) AS col0 FROM tab0
----
11

skipif mysql # not compatible
query I rowsort label-8233
SELECT - SUM ( DISTINCT - 11 ) AS col0 FROM tab0
----
11

query II rowsort
SELECT ALL - col2 AS col1, - col0 FROM tab2 AS cor0
----
-23
-46
-40
-64
-58
-75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8235
SELECT + CAST( NULL AS SIGNED ), col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-8235
SELECT + CAST ( NULL AS INTEGER ), col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8236
SELECT COUNT( * ) * - + 50 + + 11 AS col1 FROM tab0 AS cor0
----
-139

skipif mysql # not compatible
query I rowsort label-8236
SELECT COUNT ( * ) * - + 50 + + 11 AS col1 FROM tab0 AS cor0
----
-139

query III rowsort
SELECT * FROM tab1 WHERE + + 13 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8238
SELECT - ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8238
SELECT - ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8239
SELECT DISTINCT - SUM( ALL + col0 ), + 63 col1 FROM tab1 AS cor0
----
-227
63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8239
SELECT DISTINCT - SUM ( ALL + col0 ), + 63 col1 FROM tab1 AS cor0
----
-227
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - 90 ) + - col0 col0 FROM tab1 AS cor0
----
-1
39
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8241
SELECT MAX( - col0 ) AS col1 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-8241
SELECT MAX ( - col0 ) AS col1 FROM tab0 AS cor0
----
-15

query I rowsort
SELECT ALL + col1 * - - col2 + - col1 * - 63 * - 32 + 25 FROM tab0 AS cor0
----
-159464
-1892
-42101

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8243
SELECT DISTINCT + - CAST( + - col0 AS SIGNED ) + - col2 + + 55 AS col1 FROM tab2 AS cor0
----
72
78
79

skipif mysql # not compatible
query I rowsort label-8243
SELECT DISTINCT + - CAST ( + - col0 AS INTEGER ) + - col2 + + 55 AS col1 FROM tab2 AS cor0
----
72
78
79

query I rowsort
SELECT + col1 * - 25 FROM tab2 AS cor0
----
-1275
-1675
-1925

query I rowsort
SELECT DISTINCT + col1 * + + ( - 62 ) AS col2 FROM tab1 AS cor0
----
-2914
-310
-868

onlyif mysql # aggregate syntax: 
query I rowsort label-8246
SELECT DISTINCT + COUNT( * ) + + 5 FROM tab0
----
8

skipif mysql # not compatible
query I rowsort label-8246
SELECT DISTINCT + COUNT ( * ) + + 5 FROM tab0
----
8

query I rowsort
SELECT ALL - - 81 * - col2 AS col1 FROM tab1 WHERE NOT NULL < + - col2
----

query III rowsort
SELECT * FROM tab2 WHERE ( NOT col1 * 48 + - col0 IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8249
SELECT DISTINCT * FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) + 81 * - 99 BETWEEN 81 AND NULL
----

skipif mysql # not compatible
query III rowsort label-8249
SELECT DISTINCT * FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) + 81 * - 99 BETWEEN 81 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8250
SELECT ALL + COUNT( * ) FROM tab0, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8250
SELECT ALL + COUNT ( * ) FROM tab0, tab2 AS cor0
----
9

query I rowsort
SELECT + col2 * + col1 * - 95 + - 37 AS col2 FROM tab2
----
-111472
-292637
-369207

query I rowsort
SELECT + 25 + + col1 AS col0 FROM tab1 AS cor0
----
30
39
72

query I rowsort
SELECT 20 - + + col1 AS col2 FROM tab1
----
-27
15
6

query I rowsort
SELECT ALL - + 94 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + col2 + - col0 + - col1 + - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8256
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( ( NULL >= NULL ) )
----
0

skipif mysql # not compatible
query I rowsort label-8256
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( ( NULL >= NULL ) )
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT - - col0 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8258
SELECT ALL + CAST( + ( col1 ) AS SIGNED ) * - col2 * - + 32 * - ( col0 ) FROM tab2 AS cor0
----
-1726656
-6307840
-9326400

skipif mysql # not compatible
query I rowsort label-8258
SELECT ALL + CAST ( + ( col1 ) AS INTEGER ) * - col2 * - + 32 * - ( col0 ) FROM tab2 AS cor0
----
-1726656
-6307840
-9326400

onlyif mysql # aggregate syntax: 
query I rowsort label-8259
SELECT - MIN( DISTINCT - + 63 ) FROM tab2 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-8259
SELECT - MIN ( DISTINCT - + 63 ) FROM tab2 AS cor0
----
63

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col2 * + + col0 IS NOT NULL OR NOT + col0 NOT BETWEEN 41 * + col2 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col1 * - col2 * - + col2 * - 32 * col2 AS col1 FROM tab0
----
-269109216
-31049568
-672000

onlyif mysql # aggregate syntax: 
query I rowsort label-8262
SELECT + MIN( ALL - col1 ) AS col1 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-8262
SELECT + MIN ( ALL - col1 ) AS col1 FROM tab2
----
-77

query I rowsort
SELECT - 25 * + 43 FROM tab1
----
-1075
-1075
-1075

onlyif mysql # aggregate syntax: 
query I rowsort label-8264
SELECT + MIN( - + 73 ) FROM tab1
----
-73

skipif mysql # not compatible
query I rowsort label-8264
SELECT + MIN ( - + 73 ) FROM tab1
----
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 52 col2 FROM tab2
----
52
52
52

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8266
SELECT DISTINCT col1 / + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8266
SELECT DISTINCT col1 / + CAST ( NULL AS REAL ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8267
SELECT ALL ( + + 76 ) * - MIN( ALL + 75 ) AS col2 FROM tab2
----
-5700

skipif mysql # not compatible
query I rowsort label-8267
SELECT ALL ( + + 76 ) * - MIN ( ALL + 75 ) AS col2 FROM tab2
----
-5700

onlyif mysql # aggregate syntax: 
query I rowsort label-8268
SELECT ALL + SUM( 91 ) AS col2 FROM tab2 AS cor0
----
273

skipif mysql # not compatible
query I rowsort label-8268
SELECT ALL + SUM ( 91 ) AS col2 FROM tab2 AS cor0
----
273

query I rowsort
SELECT + - 27 FROM tab0 cor0
----
-27
-27
-27

query I rowsort
SELECT DISTINCT - - col1 AS col0 FROM tab2 WHERE col0 = NULL
----

query II rowsort
SELECT 83 * 60, col0 FROM tab2
----
4980
46
4980
64
4980
75

query I rowsort
SELECT DISTINCT - 98 AS col2 FROM tab0, tab0 AS cor0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-8273
SELECT COUNT( DISTINCT + col1 ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND + 24
----
0

skipif mysql # not compatible
query I rowsort label-8273
SELECT COUNT ( DISTINCT + col1 ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND + 24
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - col2 * col1 * + col2 + + - col2, - col0 )
----

query I rowsort
SELECT - + col1 + 36 * - - 37 + + 74 + col2 AS col0 FROM tab1 AS cor0
----
1427
1460
1488

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8276
SELECT DISTINCT - SUM( + 45 ) + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8276
SELECT DISTINCT - SUM ( + 45 ) + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL

query I rowsort
SELECT - + 82 + col1 * - + col0 * + 72 FROM tab2 AS cor0
----
-168994
-354898
-361882

query I rowsort
SELECT ALL 57 FROM tab0 cor0 WHERE ( + 99 ) = - col2
----

query I rowsort
SELECT ALL col0 + 83 * - col2 AS col2 FROM tab0 AS cor0
----
-3886
-743
-8120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 0 col0, - col0 + + col1 FROM tab2 AS cor0
----
0
-8
0
13
0
5

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8281
SELECT DISTINCT MIN( DISTINCT + CAST( NULL AS DECIMAL ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8281
SELECT DISTINCT MIN ( DISTINCT + CAST ( NULL AS REAL ) ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT col2 * - 42 + - ( + - col2 ) FROM tab2
----
-1640
-2378
-943

query I rowsort
SELECT - col1 * + col1 + + col2 AS col0 FROM tab1 WHERE + col1 + - 4 NOT BETWEEN NULL AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8284
SELECT DISTINCT COUNT( * ) - - - 61 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-8284
SELECT DISTINCT COUNT ( * ) - - - 61 FROM tab2
----
-58

query I rowsort
SELECT + col2 * + ( + + 74 ) FROM tab0
----
3478
7326
740

query I rowsort
SELECT DISTINCT ( - - col1 ) AS col0 FROM tab0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8287
SELECT ALL SUM( ALL + - col0 ) col1 FROM tab0
----
-199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8287
SELECT ALL SUM ( ALL + - col0 ) col1 FROM tab0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-8288
SELECT ALL MIN( col1 ) AS col2 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-8288
SELECT ALL MIN ( col1 ) AS col2 FROM tab2
----
51

query III rowsort
SELECT * FROM tab1 WHERE - col2 <= - 76 - + col0
----

query I rowsort
SELECT - 21 FROM tab1 WHERE 26 + col0 IS NOT NULL AND NOT ( NOT NULL IS NOT NULL )
----

query I rowsort
SELECT DISTINCT - - 23 FROM tab0 AS cor0 WHERE NOT 9 NOT BETWEEN + col0 AND - 82
----

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE ( + ( + + ( + ( + col2 ) ) ) IS NOT NULL )
----
-14
-47
-5

query I rowsort
SELECT + - col1 + + 62 + - + col0 * - 95 FROM tab2 AS cor0
----
4381
6065
7120

onlyif mysql # aggregate syntax: 
query I rowsort label-8294
SELECT ALL - ( + + MIN( - + col0 ) ) AS col0 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-8294
SELECT ALL - ( + + MIN ( - + col0 ) ) AS col0 FROM tab2 AS cor0
----
75

query II rowsort
SELECT + - col2 * col0, col1 * - + col0 * + - col0 AS col0 FROM tab0 AS cor0
----
-705
18225
-870
158949
-9603
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-8296
SELECT ALL + + COUNT( - 79 ) + - + COUNT( * ) + + - ( + COUNT( * ) ) FROM tab0 WHERE NULL >= + col2 / - col2 + + - col1
----
0

skipif mysql # not compatible
query I rowsort label-8296
SELECT ALL + + COUNT ( - 79 ) + - + COUNT ( * ) + + - ( + COUNT ( * ) ) FROM tab0 WHERE NULL >= + col2 / - col2 + + - col1
----
0

query I rowsort
SELECT DISTINCT - 5 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-5

query I rowsort
SELECT DISTINCT + - col2 + + + col1 FROM tab2 AS cor0 WHERE NOT - col1 IS NULL
----
28
37
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8299
SELECT DISTINCT + CAST( + col2 AS SIGNED ) AS col0 FROM tab2 cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-8299
SELECT DISTINCT + CAST ( + col2 AS INTEGER ) AS col0 FROM tab2 cor0
----
23
40
58

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 + ( col1 ) / 50 + 89 + - col1 / col0 < + + col2 + - - col2
----
91
47
68

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 20 * - + col2 BETWEEN + 24 * + 33 AND - ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-8302
SELECT - 49, + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-49
3

skipif mysql # not compatible
query II rowsort label-8302
SELECT - 49, + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-49
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8303
SELECT DISTINCT - col0 DIV col0 DIV - 94 - col0 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-8303
SELECT DISTINCT - col0 / col0 / - 94 - col0 FROM tab0 AS cor0
----
-15
-87
-97

query II rowsort
SELECT DISTINCT + 44, col0 AS col2 FROM tab2 AS cor0
----
44
46
44
64
44
75

onlyif mysql # DIV for integer division: 
query I rowsort label-8305
SELECT DISTINCT + + 41 DIV + + 7 FROM tab0 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-8305
SELECT DISTINCT + + 41 / + + 7 FROM tab0 AS cor0
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-8306
SELECT - col0 DIV - col1 + + + col0 * + + 2 + - 51 FROM tab1 AS cor0
----
132
136
54

skipif mysql # not compatible
query I rowsort label-8306
SELECT - col0 / - col1 + + + col0 * + + 2 + - 51 FROM tab1 AS cor0
----
132
136
54

onlyif mysql # DIV for integer division: 
query I rowsort label-8307
SELECT DISTINCT col2 DIV - 26 FROM tab2 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-8307
SELECT DISTINCT col2 / - 26 FROM tab2 AS cor0
----
-1
-2
0

query I rowsort
SELECT ALL - col1 * - - col1 AS col0 FROM tab1
----
-196
-2209
-25

query I rowsort
SELECT ALL - ( 53 ) AS col2 FROM tab2
----
-53
-53
-53

query I rowsort
SELECT DISTINCT + 13 * - col1 AS col0 FROM tab2
----
-1001
-663
-871

query I rowsort
SELECT ALL - col1 FROM tab0 AS cor0 WHERE + col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8312
SELECT - 25 + - SUM( DISTINCT + col2 ) AS col2 FROM tab2 AS cor0
----
-146

skipif mysql # not compatible
query I rowsort label-8312
SELECT - 25 + - SUM ( DISTINCT + col2 ) AS col2 FROM tab2 AS cor0
----
-146

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 34 IN ( - - col2, + 88 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN col0 AND - + col1
----

query I rowsort
SELECT - - ( + - 66 ) + + 24 FROM tab2 AS cor0
----
-42
-42
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-8316
SELECT DISTINCT + 63 * + ( + - MIN( 74 ) ) AS col0 FROM tab2 AS cor0
----
-4662

skipif mysql # not compatible
query I rowsort label-8316
SELECT DISTINCT + 63 * + ( + - MIN ( 74 ) ) AS col0 FROM tab2 AS cor0
----
-4662

query II rowsort
SELECT DISTINCT + col2, - col2 + col2 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
59
0
68
0
96
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN NULL AND + - 26 * + + col2 + + + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8319
SELECT - col1 * - col2 DIV - col2 AS col0 FROM tab0 cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-8319
SELECT - col1 * - col2 / - col2 AS col0 FROM tab0 cor0
----
-1
-21
-81

query I rowsort
SELECT + + col0 AS col0 FROM tab2 AS cor0 WHERE + col0 - + + 42 IS NOT NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8321
SELECT ALL MAX( - + col1 ) AS col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8321
SELECT ALL MAX ( - + col1 ) AS col2 FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8322
SELECT + - COUNT( - + col0 ) - - COUNT( * ) col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8322
SELECT + - COUNT ( - + col0 ) - - COUNT ( * ) col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT 57 * - - col2 - + col0 AS col0 FROM tab1 cor0
----
3278
3785
5421

query I rowsort
SELECT DISTINCT + col0 + 70 - + 38 AS col0 FROM tab0
----
119
129
47

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 * - + ( col1 ) <> col2 * - 11
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 81 * + ( + + col2 ) - + col0 * + col0 AS col1 FROM tab0
----
-1390
-6759
3582

onlyif mysql # aggregate syntax: 
query I rowsort label-8327
SELECT DISTINCT 95 - COUNT( * ) - - MIN( - col1 ) AS col2 FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-8327
SELECT DISTINCT 95 - COUNT ( * ) - - MIN ( - col1 ) AS col2 FROM tab2
----
15

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8328
SELECT CAST( + + 85 AS SIGNED ) DIV - col2 + + + col1 FROM tab1
----
14
4
46

skipif mysql # not compatible
query I rowsort label-8328
SELECT CAST ( + + 85 AS INTEGER ) / - col2 + + + col1 FROM tab1
----
14
4
46

onlyif mysql # aggregate syntax: 
query II rowsort label-8329
SELECT ALL 1, SUM( DISTINCT col1 ) AS col2 FROM tab0
----
1
103

skipif mysql # not compatible
query II rowsort label-8329
SELECT ALL 1, SUM ( DISTINCT col1 ) AS col2 FROM tab0
----
1
103

query I rowsort
SELECT ALL 79 - - - 90 FROM tab1
----
-11
-11
-11

query I rowsort
SELECT DISTINCT + 36 - - + 77 + + col2 FROM tab1
----
172
181
209

onlyif mysql # aggregate syntax: 
query I rowsort label-8332
SELECT DISTINCT + COUNT( * ) + - COUNT( * ) FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8332
SELECT DISTINCT + COUNT ( * ) + - COUNT ( * ) FROM tab0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8333
SELECT DISTINCT COUNT( * ) AS col2 FROM tab2 WHERE NOT + 66 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8333
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab2 WHERE NOT + 66 IS NULL
----
3

query II rowsort
SELECT col1, + 17 AS col1 FROM tab0
----
1
17
21
17
81
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8335
SELECT + - CAST( 97 AS SIGNED ) * - + col1 FROM tab0 AS cor0
----
2037
7857
97

skipif mysql # not compatible
query I rowsort label-8335
SELECT + - CAST ( 97 AS INTEGER ) * - + col1 FROM tab0 AS cor0
----
2037
7857
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8336
SELECT ALL + MIN( DISTINCT + - col1 ) + + MIN( - col2 ) AS col2 FROM tab1 AS cor0
----
-143

skipif mysql # not compatible
query I rowsort label-8336
SELECT ALL + MIN ( DISTINCT + - col1 ) + + MIN ( - col2 ) AS col2 FROM tab1 AS cor0
----
-143

query I rowsort
SELECT - + 94 * - 77 * - col0 FROM tab0 AS cor0
----
-108570
-629706
-702086

query II rowsort
SELECT DISTINCT + col2 AS col2, - 78 AS col1 FROM tab1 AS cor0
----
59
-78
68
-78
96
-78

query II rowsort
SELECT ALL - col1, + ( - + 88 ) + + col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8340
SELECT + + CAST( - 71 AS SIGNED ) * - COUNT( * ) FROM tab0 AS cor0
----
213

skipif mysql # not compatible
query I rowsort label-8340
SELECT + + CAST ( - 71 AS INTEGER ) * - COUNT ( * ) FROM tab0 AS cor0
----
213

onlyif mysql # aggregate syntax: 
query I rowsort label-8341
SELECT DISTINCT SUM( DISTINCT + 57 ) FROM tab1
----
57

skipif mysql # not compatible
query I rowsort label-8341
SELECT DISTINCT SUM ( DISTINCT + 57 ) FROM tab1
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8342
SELECT ALL + - CAST( - ( - col0 ) AS SIGNED ) - - 68 AS col1 FROM tab1 cor0 WHERE NULL <= col2
----

skipif mysql # not compatible
query I rowsort label-8342
SELECT ALL + - CAST ( - ( - col0 ) AS INTEGER ) - - 68 AS col1 FROM tab1 cor0 WHERE NULL <= col2
----

query I rowsort
SELECT ALL + + 48 * + + col2 + - col0 FROM tab0 AS cor0
----
2241
393
4655

query I rowsort
SELECT ALL + 60 * + 83 FROM tab2 cor0
----
4980
4980
4980

query II rowsort
SELECT DISTINCT - col0 * - + 58 AS col1, + 60 FROM tab0 AS cor0
----
5046
60
5626
60
870
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8346
SELECT ALL - - SUM( ALL - + 63 ) FROM tab1 AS cor0
----
-189

skipif mysql # not compatible
query I rowsort label-8346
SELECT ALL - - SUM ( ALL - + 63 ) FROM tab1 AS cor0
----
-189

query II rowsort
SELECT DISTINCT 95, col1 AS col0 FROM tab2
----
95
51
95
67
95
77

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 99 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8349
SELECT ALL 31 * - CAST( - COUNT( * ) AS SIGNED ) FROM tab2
----
93

skipif mysql # not compatible
query I rowsort label-8349
SELECT ALL 31 * - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab2
----
93

onlyif mysql # DIV for integer division: 
query II rowsort label-8350
SELECT ( + 64 ) DIV + col0 AS col2, + col1 + 56 FROM tab0
----
0
57
0
77
4
137

skipif mysql # not compatible
query II rowsort label-8350
SELECT ( + 64 ) / + col0 AS col2, + col1 + 56 FROM tab0
----
0
57
0
77
4
137

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8351
SELECT ALL - CAST( NULL AS SIGNED ) AS col1, + col0 * 40 AS col0 FROM tab2
----
NULL
1840
NULL
2560
NULL
3000

skipif mysql # not compatible
query II rowsort label-8351
SELECT ALL - CAST ( NULL AS INTEGER ) AS col1, + col0 * 40 AS col0 FROM tab2
----
NULL
1840
NULL
2560
NULL
3000

onlyif mysql # aggregate syntax: 
query I rowsort label-8352
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE - col0 + - 61 NOT BETWEEN NULL AND + 87 + - 9 * + col1 + - col0
----
1

skipif mysql # not compatible
query I rowsort label-8352
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE - col0 + - 61 NOT BETWEEN NULL AND + 87 + - 9 * + col1 + - col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8353
SELECT ALL MAX( ALL col1 ) AS col0 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-8353
SELECT ALL MAX ( ALL col1 ) AS col0 FROM tab0
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8354
SELECT ALL CAST( NULL AS SIGNED ) + - COUNT( ALL + ( - col1 ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8354
SELECT ALL CAST ( NULL AS INTEGER ) + - COUNT ( ALL + ( - col1 ) ) FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 10 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + col2 / - - col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + 8 AS col2 FROM tab1 cor0
----
-8
-8
-8

query I rowsort
SELECT ALL - + col2 + - 16 AS col2 FROM tab0 AS cor0
----
-115
-26
-63

query I rowsort
SELECT 39 FROM tab0 cor0 WHERE NULL IS NULL
----
39
39
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8360
SELECT DISTINCT + - MAX( + + col2 ) + + - 41 AS col1 FROM tab1 AS cor0
----
-137

skipif mysql # not compatible
query I rowsort label-8360
SELECT DISTINCT + - MAX ( + + col2 ) + + - 41 AS col1 FROM tab1 AS cor0
----
-137

onlyif mysql # DIV for integer division: 
query I rowsort label-8361
SELECT DISTINCT - 92 + - col1 * + col2 * - col1 DIV + col1 FROM tab2 AS cor0
----
1081
2988
3794

skipif mysql # not compatible
query I rowsort label-8361
SELECT DISTINCT - 92 + - col1 * + col2 * - col1 / + col1 FROM tab2 AS cor0
----
1081
2988
3794

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8362
SELECT ALL - CAST( NULL AS DECIMAL ) + col2 / - 52 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8362
SELECT ALL - CAST ( NULL AS REAL ) + col2 / - 52 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( + - col0 ) * + col2 AS col0 FROM tab2 AS cor0
----
-1058
-2560
-4350

query I rowsort
SELECT col0 AS col2 FROM tab0 AS cor0 WHERE + col0 - - col0 * + col1 + - col0 IS NOT NULL
----
15
87
97

query I rowsort
SELECT DISTINCT + col1 * + + col0 - col0 FROM tab0
----
0
1200
1740

query I rowsort
SELECT col2 AS col1 FROM tab2 WHERE NULL >= - - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8367
SELECT DISTINCT + col1 DIV + ( col2 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8367
SELECT DISTINCT + col1 / + ( col2 ) FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8368
SELECT CAST( + + col1 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-8368
SELECT CAST ( + + col1 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 34 FROM tab2 WHERE NOT - 44 >= 73
----
34
34
34

onlyif mysql # DIV for integer division: 
query II rowsort label-8370
SELECT ALL col2 AS col1, + 67 DIV + + 38 + + col1 DIV + 60 AS col2 FROM tab0
----
10
1
47
2
99
1

skipif mysql # not compatible
query II rowsort label-8370
SELECT ALL col2 AS col1, + 67 / + + 38 + + col1 / + 60 AS col2 FROM tab0
----
10
1
47
2
99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8371
SELECT DISTINCT + 14 * + 33 * COUNT( - col0 ) AS col2 FROM tab2
----
1386

skipif mysql # not compatible
query I rowsort label-8371
SELECT DISTINCT + 14 * + 33 * COUNT ( - col0 ) AS col2 FROM tab2
----
1386

onlyif mysql # aggregate syntax: 
query I rowsort label-8372
SELECT - ( ( + - COUNT( * ) ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8372
SELECT - ( ( + - COUNT ( * ) ) ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL - - col0 FROM tab1 AS cor0 WHERE col2 = + col0 + + + 14
----

query I rowsort
SELECT - 19 * - col0 AS col1 FROM tab0 AS cor0 WHERE NOT + 27 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8375
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT CAST( NULL AS SIGNED ) > - col1 )
----

skipif mysql # not compatible
query III rowsort label-8375
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT CAST ( NULL AS INTEGER ) > - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8376
SELECT ALL MIN( - col0 ) AS col2 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-8376
SELECT ALL MIN ( - col0 ) AS col2 FROM tab0 AS cor0
----
-97

query II rowsort
SELECT DISTINCT - col0 + - col0 * + 64, col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ( - - col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8379
SELECT ALL + + COUNT( + col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8379
SELECT ALL + + COUNT ( + col0 ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <> - col0 + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8381
SELECT DISTINCT + + COUNT( + col2 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8381
SELECT DISTINCT + + COUNT ( + col2 ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8382
SELECT - 63, CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + + 36 AS col1 FROM tab2 AS cor0
----
-63
NULL
-63
NULL
-63
NULL

skipif mysql # not compatible
query II rowsort label-8382
SELECT - 63, CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + + 36 AS col1 FROM tab2 AS cor0
----
-63
NULL
-63
NULL
-63
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8383
SELECT ALL COUNT( DISTINCT + + col1 ) - + COUNT( * ) FROM tab2 AS cor0 WHERE NULL > 48
----
0

skipif mysql # not compatible
query I rowsort label-8383
SELECT ALL COUNT ( DISTINCT + + col1 ) - + COUNT ( * ) FROM tab2 AS cor0 WHERE NULL > 48
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL NOT BETWEEN - + col1 AND NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8385
SELECT 86 DIV ( 21 ) AS col0 FROM tab1
----
4
4
4

skipif mysql # not compatible
query I rowsort label-8385
SELECT 86 / ( 21 ) AS col0 FROM tab1
----
4
4
4

query I rowsort
SELECT ALL - 42 * + 42 * col0 FROM tab2
----
-112896
-132300
-81144

query III rowsort
SELECT * FROM tab1 WHERE + col1 + - col1 * - col0 / - 3 IS NULL
----

query I rowsort
SELECT + col1 FROM tab2 WHERE - col2 IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8389
SELECT - 40 * + + 53 + + - 38 - COUNT( * ) DIV - 91 FROM tab0
----
-2158

skipif mysql # not compatible
query I rowsort label-8389
SELECT - 40 * + + 53 + + - 38 - COUNT ( * ) / - 91 FROM tab0
----
-2158

query I rowsort
SELECT + - col2 + ( + col0 ) - + - 40 AS col2 FROM tab2 cor0
----
57
63
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8391
SELECT ALL - + 45 + - CAST( + AVG ( DISTINCT 44 ) AS SIGNED ) FROM tab0 AS cor0
----
-89

skipif mysql # not compatible
query I rowsort label-8391
SELECT ALL - + 45 + - CAST ( + AVG ( DISTINCT 44 ) AS INTEGER ) FROM tab0 AS cor0
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-8392
SELECT DISTINCT 49 * - COUNT( * ) * + 42 FROM tab2 AS cor0
----
-6174

skipif mysql # not compatible
query I rowsort label-8392
SELECT DISTINCT 49 * - COUNT ( * ) * + 42 FROM tab2 AS cor0
----
-6174

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 21 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8394
SELECT ( + + COUNT( * ) ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-8394
SELECT ( + + COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 7 * col1 col0 FROM tab2
----
-357
-469
-539

onlyif mysql # aggregate syntax: 
query I rowsort label-8396
SELECT COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8396
SELECT COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT DISTINCT col0 * 30 FROM tab2
----
1380
1920
2250

query I rowsort
SELECT ALL ( + - 50 ) FROM tab1
----
-50
-50
-50

query I rowsort
SELECT DISTINCT + 69 + + 47 FROM tab0 AS cor0
----
116

query II rowsort
SELECT DISTINCT + col1, 77 AS col2 FROM tab2 AS cor0
----
51
77
67
77
77
77

query I rowsort
SELECT + 81 - + - col0 FROM tab0 AS cor0
----
168
178
96

onlyif mysql # DIV for integer division: 
query I rowsort label-8402
SELECT ALL - col1 + - col1 DIV col1 FROM tab1 AS cor0
----
-15
-48
-6

skipif mysql # not compatible
query I rowsort label-8402
SELECT ALL - col1 + - col1 / col1 FROM tab1 AS cor0
----
-15
-48
-6

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND 81
----

query I rowsort
SELECT DISTINCT + col0 * ( + + 1 ) FROM tab0 AS cor0 WHERE - 42 * - 77 - col2 <> - col0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8405
SELECT DISTINCT - SUM( 57 ) AS col0 FROM tab2
----
-171

skipif mysql # not compatible
query I rowsort label-8405
SELECT DISTINCT - SUM ( 57 ) AS col0 FROM tab2
----
-171

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8406
SELECT CAST( 21 AS SIGNED ) col0, 45 AS col0 FROM tab0
----
21
45
21
45
21
45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8406
SELECT CAST ( 21 AS INTEGER ) col0, 45 AS col0 FROM tab0
----
21
45
21
45
21
45

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 BETWEEN NULL AND + col1 * + col2
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + 79 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8409
SELECT DISTINCT 15 DIV 48 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8409
SELECT DISTINCT 15 / 48 AS col1 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 56 col2 FROM tab0
----
56
56
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8411
SELECT DISTINCT + ( + - 21 ), MAX( DISTINCT - CAST( NULL AS SIGNED ) ) col2 FROM tab1 AS cor0
----
-21
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8411
SELECT DISTINCT + ( + - 21 ), MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) col2 FROM tab1 AS cor0
----
-21
NULL

query II rowsort
SELECT - ( - col0 ), 18 + - col2 AS col0 FROM tab2 AS cor0
----
46
-5
64
-22
75
-40

query I rowsort
SELECT ALL - 42 * - 43 AS col1 FROM tab1 cor0
----
1806
1806
1806

query I rowsort
SELECT 25 * + col0 FROM tab0
----
2175
2425
375

query II rowsort
SELECT - col0 AS col1, 61 FROM tab0
----
-15
61
-87
61
-97
61

query II rowsort
SELECT ALL + 41 + - col2 * + ( - + ( - col0 ) ), col0 FROM tab1 AS cor0
----
-4855
51
-4974
85
-6147
91

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 40 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) <= + col2
----

query I rowsort
SELECT - col1 + + + 3 AS col1 FROM tab0 AS cor0
----
-18
-78
2

query I rowsort
SELECT ALL - ( - - col2 ) AS col1 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT ALL + 46 AS col2 FROM tab2 AS cor0 WHERE NOT 85 IS NOT NULL
----

query II rowsort
SELECT DISTINCT col2 AS col2, + 94 AS col0 FROM tab0
----
10
94
47
94
99
94

query III rowsort
SELECT * FROM tab1 WHERE ( NOT ( ( col0 IS NOT NULL ) ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8424
SELECT - col0 * + + CAST( + col2 AS SIGNED ) * - 20 * - col0 FROM tab1
----
-11262160
-4993920
-8525500

skipif mysql # not compatible
query I rowsort label-8424
SELECT - col0 * + + CAST ( + col2 AS INTEGER ) * - 20 * - col0 FROM tab1
----
-11262160
-4993920
-8525500

query II rowsort
SELECT - 99 AS col0, 81 AS col1 FROM tab1 AS cor0
----
-99
81
-99
81
-99
81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 <> NULL
----

query I rowsort
SELECT - ( + + 51 ) - col2 AS col2 FROM tab1 AS cor0
----
-110
-119
-147

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - 93 col1 FROM tab0 AS cor0
----
-12
-72
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8429
SELECT 42 + - CAST( col0 AS SIGNED ) AS col1 FROM tab2
----
-22
-33
-4

skipif mysql # not compatible
query I rowsort label-8429
SELECT 42 + - CAST ( col0 AS INTEGER ) AS col1 FROM tab2
----
-22
-33
-4

query I rowsort
SELECT DISTINCT + - 70 AS col2 FROM tab2 AS cor0
----
-70

query I rowsort
SELECT - 55 * 32 FROM tab1 AS cor0
----
-1760
-1760
-1760

onlyif mysql # DIV for integer division: 
query I rowsort label-8432
SELECT + 60 DIV + ( + - ( + col1 ) ) AS col1 FROM tab0 AS cor0
----
-2
-60
0

skipif mysql # not compatible
query I rowsort label-8432
SELECT + 60 / + ( + - ( + col1 ) ) AS col1 FROM tab0 AS cor0
----
-2
-60
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8433
SELECT DISTINCT + col1 * 83 + col2 + + col2 + - + col1 DIV col2 * - + col2 col0 FROM tab2 AS cor0
----
4325
5735
6511

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8433
SELECT DISTINCT + col1 * 83 + col2 + + col2 + - + col1 / col2 * - + col2 col0 FROM tab2 AS cor0
----
4325
5735
6511

query I rowsort
SELECT DISTINCT col2 / 76 AS col0 FROM tab2 WHERE - 76 - - col0 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 * + + 48 FROM tab0
----
2256
4752
480

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8436
SELECT - CAST( NULL AS SIGNED ) + 56 * - col2 + + col1 col0 FROM tab0 WHERE NOT - + 56 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8436
SELECT - CAST ( NULL AS INTEGER ) + 56 * - col2 + + col1 col0 FROM tab0 WHERE NOT - + 56 IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8437
SELECT DISTINCT - MIN( DISTINCT 41 ) FROM tab0
----
-41

skipif mysql # not compatible
query I rowsort label-8437
SELECT DISTINCT - MIN ( DISTINCT 41 ) FROM tab0
----
-41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col0 ) * - col0 col0 FROM tab1 AS cor0
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-8439
SELECT + MAX( DISTINCT + col0 ) * + COUNT( * ) FROM tab2 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-8439
SELECT + MAX ( DISTINCT + col0 ) * + COUNT ( * ) FROM tab2 AS cor0
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-8440
SELECT - MIN( ( + 35 ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-35

skipif mysql # not compatible
query I rowsort label-8440
SELECT - MIN ( ( + 35 ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-8441
SELECT DISTINCT COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-8441
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
9

query I rowsort
SELECT DISTINCT - 34 * + - 72 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
2448

query I rowsort
SELECT DISTINCT 82 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
82

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) > 70
----

query I rowsort
SELECT ALL - - col2 + + col2 - - + 48 * 43 FROM tab1 AS cor0 WHERE - col1 * - col2 IS NULL
----

query I rowsort
SELECT ALL - + col2 * + 4 - + 6 FROM tab1 cor0
----
-242
-278
-390

query I rowsort
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE - 27 - - col0 + + + ( - col1 ) * - col1 * + - col0 < NULL
----

query I rowsort
SELECT + ( - + col0 ) AS col0 FROM tab1 AS cor0
----
-51
-85
-91

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - ( col0 ) BETWEEN + ( + col0 ) AND - 31 / - col0 AND - col1 * - 62 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8450
SELECT + 30 DIV COUNT( * ) + 98 FROM tab1
----
108

skipif mysql # not compatible
query I rowsort label-8450
SELECT + 30 / COUNT ( * ) + 98 FROM tab1
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-8451
SELECT 61 * MIN( DISTINCT - 25 ) + 37 FROM tab1
----
-1488

skipif mysql # not compatible
query I rowsort label-8451
SELECT 61 * MIN ( DISTINCT - 25 ) + 37 FROM tab1
----
-1488

onlyif mysql # DIV for integer division: 
query I rowsort label-8452
SELECT - 88 DIV - + col0 + 77 * + col0 FROM tab1
----
3928
6546
7007

skipif mysql # not compatible
query I rowsort label-8452
SELECT - 88 / - + col0 + 77 * + col0 FROM tab1
----
3928
6546
7007

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - 45 col2 FROM tab0 AS cor0
----
-144
-55
-92

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 85 = + - ( col2 )
----

query I rowsort
SELECT DISTINCT 95 * 27 - 90 FROM tab2
----
2475

onlyif mysql # DIV for integer division: 
query I rowsort label-8456
SELECT col1 * + col1 DIV col1 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-8456
SELECT col1 * + col1 / col1 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8457
SELECT SUM( DISTINCT - 41 ) AS col2 FROM tab1 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-8457
SELECT SUM ( DISTINCT - 41 ) AS col2 FROM tab1 AS cor0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-8458
SELECT ALL - MIN( DISTINCT - 92 ) * - 34 * COUNT( 66 ) FROM tab0 cor0
----
-9384

skipif mysql # not compatible
query I rowsort label-8458
SELECT ALL - MIN ( DISTINCT - 92 ) * - 34 * COUNT ( 66 ) FROM tab0 cor0
----
-9384

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8460
SELECT - SUM( ALL - col2 ), COUNT( * ) AS col1 FROM tab1 AS cor0
----
223
3

skipif mysql # not compatible
query II rowsort label-8460
SELECT - SUM ( ALL - col2 ), COUNT ( * ) AS col1 FROM tab1 AS cor0
----
223
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 37 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8462
SELECT ALL CAST( - col0 AS SIGNED ) AS col0, + col2 AS col1 FROM tab0
----
-15
47
-87
10
-97
99

skipif mysql # not compatible
query II rowsort label-8462
SELECT ALL CAST ( - col0 AS INTEGER ) AS col0, + col2 AS col1 FROM tab0
----
-15
47
-87
10
-97
99

query II rowsort
SELECT + 60 * - col1 AS col2, + 61 FROM tab1
----
-2820
61
-300
61
-840
61

query III rowsort
SELECT ALL * FROM tab1 WHERE ( ( NULL ) IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col1 * 5 * + col0 * + col2 AS col0 FROM tab1
----
-125375
-1454180
-342720

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8466
SELECT DISTINCT + COUNT( * ) AS col0, - CAST( NULL AS SIGNED ) + - SUM( 4 ) + AVG ( DISTINCT + - col0 ) FROM tab2
----
3
NULL

skipif mysql # not compatible
query II rowsort label-8466
SELECT DISTINCT + COUNT ( * ) AS col0, - CAST ( NULL AS INTEGER ) + - SUM ( 4 ) + AVG ( DISTINCT + - col0 ) FROM tab2
----
3
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 AS col1, col1 col2 FROM tab2
----
51
51
67
67
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8468
SELECT + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE - 13 NOT BETWEEN + + col2 AND NULL
----
3

skipif mysql # not compatible
query I rowsort label-8468
SELECT + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE - 13 NOT BETWEEN + + col2 AND NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8469
SELECT * FROM tab0 AS cor0 WHERE 67 + - 81 + - + CAST( + - col1 AS SIGNED ) IN ( - + col1, + col0 * - - col0 - + + CAST( 89 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8469
SELECT * FROM tab0 AS cor0 WHERE 67 + - 81 + - + CAST ( + - col1 AS INTEGER ) IN ( - + col1, + col0 * - - col0 - + + CAST ( 89 AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8470
SELECT DISTINCT + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 WHERE NOT NULL = - col0 / - col2 * + - CAST( - col1 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8470
SELECT DISTINCT + CAST ( NULL AS REAL ) FROM tab1 AS cor0 WHERE NOT NULL = - col0 / - col2 * + - CAST ( - col1 AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8471
SELECT * FROM tab2 AS cor0 WHERE - col1 / CAST( col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8471
SELECT * FROM tab2 AS cor0 WHERE - col1 / CAST ( col1 AS INTEGER ) IS NULL
----

query I rowsort
SELECT col2 * + 10 + + 67 AS col1 FROM tab0 cor0
----
1057
167
537

query I rowsort
SELECT ALL + + col2 + - 36 * + + col2 FROM tab1 AS cor0
----
-2065
-2380
-3360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8474
SELECT col2 AS col2 FROM tab0 AS cor0 WHERE col2 * + - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8474
SELECT col2 AS col2 FROM tab0 AS cor0 WHERE col2 * + - CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8475
SELECT ALL MIN( col1 ) * ( 84 ) - COUNT( * ) + + - 17 AS col2 FROM tab0
----
64

skipif mysql # not compatible
query I rowsort label-8475
SELECT ALL MIN ( col1 ) * ( 84 ) - COUNT ( * ) + + - 17 AS col2 FROM tab0
----
64

query III rowsort
SELECT * FROM tab0 WHERE - col2 BETWEEN + 62 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8477
SELECT ALL - CAST( + CAST( + 0 AS SIGNED ) AS SIGNED ) * MAX( + - col0 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8477
SELECT ALL - CAST ( + CAST ( + 0 AS INTEGER ) AS INTEGER ) * MAX ( + - col0 ) FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8478
SELECT ALL - - col0 FROM tab2 WHERE NOT col2 + + + CAST( - 66 AS SIGNED ) + + 50 IS NULL
----
46
64
75

skipif mysql # not compatible
query I rowsort label-8478
SELECT ALL - - col0 FROM tab2 WHERE NOT col2 + + + CAST ( - 66 AS INTEGER ) + + 50 IS NULL
----
46
64
75

query I rowsort
SELECT ALL ( + + 46 ) + col1 FROM tab2
----
113
123
97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8480
SELECT DISTINCT - col1 / - + col2 + - CAST( NULL AS DECIMAL ) + col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8480
SELECT DISTINCT - col1 / - + col2 + - CAST ( NULL AS REAL ) + col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8481
SELECT - CAST( + col1 AS DECIMAL ) + - 14 * CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8481
SELECT - CAST ( + col1 AS REAL ) + - 14 * CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 + - 42 FROM tab2
----
25
35
9

onlyif mysql # CAST syntax: DECIMAL type: 
query IIIIII rowsort label-8483
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 97 * - CAST( NULL AS DECIMAL ) IS NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

skipif mysql # not compatible
query IIIIII rowsort label-8483
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 97 * - CAST ( NULL AS REAL ) IS NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

onlyif mysql # aggregate syntax: 
query I rowsort label-8484
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab1, tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8484
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab1, tab0 AS cor0
----
9

query I rowsort
SELECT + col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8486
SELECT DISTINCT col0, + 16 + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-8486
SELECT DISTINCT col0, + 16 + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8487
SELECT - col1 * + CAST( NULL AS SIGNED ) / - - col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8487
SELECT - col1 * + CAST ( NULL AS INTEGER ) / - - col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8488
SELECT DISTINCT - 33 * + - COUNT( * ) * - + SUM( + + ( 26 ) ) AS col2 FROM tab0 AS cor0
----
-7722

skipif mysql # not compatible
query I rowsort label-8488
SELECT DISTINCT - 33 * + - COUNT ( * ) * - + SUM ( + + ( 26 ) ) AS col2 FROM tab0 AS cor0
----
-7722

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE NOT + ( - col0 ) / + 33 IS NULL
----
-23
-40
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-8490
SELECT + - col1 DIV - col0 AS col2 FROM tab0 cor0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-8490
SELECT + - col1 / - col0 AS col2 FROM tab0 cor0
----
0
0
5

query II rowsort
SELECT - + 11 AS col2, col1 FROM tab1 AS cor0
----
-11
14
-11
47
-11
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8492
SELECT DISTINCT COUNT( - 60 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8492
SELECT DISTINCT COUNT ( - 60 ) FROM tab2
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN col0 * + 9 AND - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8494
SELECT ALL 51 * + COUNT( * ) FROM tab1
----
153

skipif mysql # not compatible
query I rowsort label-8494
SELECT ALL 51 * + COUNT ( * ) FROM tab1
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-8495
SELECT ALL COUNT( * ) * + 24 AS col1 FROM tab2
----
72

skipif mysql # not compatible
query I rowsort label-8495
SELECT ALL COUNT ( * ) * + 24 AS col1 FROM tab2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8496
SELECT + MAX( + - col1 ) * + - 42 col0 FROM tab1 WHERE NOT + + col2 BETWEEN - - 73 * col1 * - col2 AND - 80 - col0
----
210

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8496
SELECT + MAX ( + - col1 ) * + - 42 col0 FROM tab1 WHERE NOT + + col2 BETWEEN - - 73 * col1 * - col2 AND - 80 - col0
----
210

onlyif mysql # DIV for integer division: 
query II rowsort label-8497
SELECT col2, 58 * + col2 * - col2 + - col0 DIV + + col1 FROM tab0
----
10
-5804
47
-128122
99
-568555

skipif mysql # not compatible
query II rowsort label-8497
SELECT col2, 58 * + col2 * - col2 + - col0 / + + col1 FROM tab0
----
10
-5804
47
-128122
99
-568555

query II rowsort
SELECT ALL - col2 * col0, 97 AS col0 FROM tab2 AS cor0
----
-1058
97
-2560
97
-4350
97

query II rowsort
SELECT - col2 AS col0, + 88 FROM tab1 cor0
----
-59
88
-68
88
-96
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8500
SELECT + 74 + - CAST( + SUM( ALL - col0 ) AS SIGNED ) FROM tab0 AS cor0
----
273

skipif mysql # not compatible
query I rowsort label-8500
SELECT + 74 + - CAST ( + SUM ( ALL - col0 ) AS INTEGER ) FROM tab0 AS cor0
----
273

query I rowsort
SELECT - 42 + + col2 + + col2 FROM tab2 AS cor0
----
38
4
74

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 38 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 69 * + - col1 AS col2 FROM tab2
----
3519
4623
5313

onlyif mysql # DIV for integer division: 
query II rowsort label-8504
SELECT ALL + + col0 DIV - - col0 + + 29 AS col0, - 23 + + - col1 AS col1 FROM tab0 AS cor0
----
30
-104
30
-24
30
-44

skipif mysql # not compatible
query II rowsort label-8504
SELECT ALL + + col0 / - - col0 + + 29 AS col0, - 23 + + - col1 AS col1 FROM tab0 AS cor0
----
30
-104
30
-24
30
-44

query IIIIII rowsort
SELECT ALL * FROM tab2, tab2 cor0 WHERE NULL NOT IN ( - - 57, 67 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8506
SELECT COUNT( * ) + + 97 AS col1 FROM tab0
----
100

skipif mysql # not compatible
query I rowsort label-8506
SELECT COUNT ( * ) + + 97 AS col1 FROM tab0
----
100

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col2 ) - col1 col0 FROM tab0
----
-100
-128
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8508
SELECT 50 + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8508
SELECT 50 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8509
SELECT * FROM tab2 WHERE ( NULL < + CAST( NULL AS SIGNED ) * + col2 )
----

skipif mysql # not compatible
query III rowsort label-8509
SELECT * FROM tab2 WHERE ( NULL < + CAST ( NULL AS INTEGER ) * + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT col0 <> NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8511
SELECT ALL + SUM( - 0 ) DIV + COUNT( * ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8511
SELECT ALL + SUM ( - 0 ) / + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 61 col2 FROM tab0 AS cor0
----
61

query II rowsort
SELECT DISTINCT + 13, col0 AS col2 FROM tab0 AS cor0
----
13
15
13
87
13
97

query II rowsort
SELECT + + 58, + col2 AS col2 FROM tab1 AS cor0
----
58
59
58
68
58
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8515
SELECT ALL COUNT( * ) + ( + COUNT( * ) ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-8515
SELECT ALL COUNT ( * ) + ( + COUNT ( * ) ) FROM tab1
----
6

query III rowsort
SELECT ALL * FROM tab2 WHERE - 61 > ( ( - col1 ) * - 34 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8517
SELECT DISTINCT - 67 + + COUNT( * ) AS col1 FROM tab2
----
-64

skipif mysql # not compatible
query I rowsort label-8517
SELECT DISTINCT - 67 + + COUNT ( * ) AS col1 FROM tab2
----
-64

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) >= col2
----

query I rowsort
SELECT ALL col1 FROM tab1 WHERE col2 <= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col0 + - 70 * - 72 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8521
SELECT ALL MAX( - 77 ) FROM tab1
----
-77

skipif mysql # not compatible
query I rowsort label-8521
SELECT ALL MAX ( - 77 ) FROM tab1
----
-77

query I rowsort
SELECT 34 * + 65 - col1 AS col2 FROM tab2
----
2133
2143
2159

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + ( - col0 ) / col2 + + ( col1 + + ( + col0 ) ) IN ( - col2 + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8524
SELECT - ( SUM( col1 ) ) AS col1 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-8524
SELECT - ( SUM ( col1 ) ) AS col1 FROM tab1
----
-66

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 >= + col1
----

query I rowsort
SELECT col0 FROM tab0 WHERE NOT col1 * col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 21 col0 FROM tab0
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8528
SELECT - CAST( - col0 AS SIGNED ) AS col0 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-8528
SELECT - CAST ( - col0 AS INTEGER ) AS col0 FROM tab1
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8529
SELECT DISTINCT - MAX( col0 ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-8529
SELECT DISTINCT - MAX ( col0 ) FROM tab2
----
-75

query I rowsort
SELECT - 87 * + col2 - col0 AS col2 FROM tab1
----
-5218
-6007
-8403

query I rowsort
SELECT ALL + 45 * + 38 + + col2 FROM tab1
----
1769
1778
1806

query I rowsort
SELECT ALL col0 - + 55 AS col1 FROM tab0
----
-40
32
42

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 27 NOT BETWEEN col2 AND - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8534
SELECT ALL COUNT( * ) * 71 FROM tab1 WHERE ( + col0 ) NOT BETWEEN ( CAST( NULL AS SIGNED ) ) AND - 97 * 56
----
213

skipif mysql # not compatible
query I rowsort label-8534
SELECT ALL COUNT ( * ) * 71 FROM tab1 WHERE ( + col0 ) NOT BETWEEN ( CAST ( NULL AS INTEGER ) ) AND - 97 * 56
----
213

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8535
SELECT DISTINCT - col2 * - col2 + col2 DIV - CAST( 73 AS SIGNED ) AS col1 FROM tab1
----
3481
4624
9215

skipif mysql # not compatible
query I rowsort label-8535
SELECT DISTINCT - col2 * - col2 + col2 / - CAST ( 73 AS INTEGER ) AS col1 FROM tab1
----
3481
4624
9215

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8536
SELECT ALL CAST( NULL AS SIGNED ) * + CAST( - col1 AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8536
SELECT ALL CAST ( NULL AS INTEGER ) * + CAST ( - col1 AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8537
SELECT * FROM tab2 WHERE NOT + col2 * - 2 BETWEEN ( NULL ) AND + CAST( col0 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-8537
SELECT * FROM tab2 WHERE NOT + col2 * - 2 BETWEEN ( NULL ) AND + CAST ( col0 AS REAL )
----

query I rowsort
SELECT DISTINCT 86 + 2 FROM tab1 AS cor0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8539
SELECT SUM( - 18 ) AS col1 FROM tab2 AS cor0 WHERE col1 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8539
SELECT SUM ( - 18 ) AS col1 FROM tab2 AS cor0 WHERE col1 <> NULL
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col0 ) >= NULL
----

query I rowsort
SELECT ALL - 35 + + col1 AS col0 FROM tab0 AS cor0
----
-14
-34
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8542
SELECT ALL MAX( - 2 ) DIV 94 col0 FROM tab0 AS cor0 WHERE NOT col2 * + col1 NOT BETWEEN ( 36 ) AND col2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8542
SELECT ALL MAX ( - 2 ) / 94 col0 FROM tab0 AS cor0 WHERE NOT col2 * + col1 NOT BETWEEN ( 36 ) AND col2
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 NOT IN ( 8 )
----

query I rowsort
SELECT 25 + col0 FROM tab2
----
100
71
89

query I rowsort
SELECT DISTINCT + - col2 + - 94 FROM tab0 cor0
----
-104
-141
-193

query I rowsort
SELECT ALL + col1 FROM tab0 AS cor0 WHERE col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8547
SELECT 93 + MIN( + col1 - ( + col1 ) * col0 ) AS col1 FROM tab2 AS cor0
----
-4865

skipif mysql # not compatible
query I rowsort label-8547
SELECT 93 + MIN ( + col1 - ( + col1 ) * col0 ) AS col1 FROM tab2 AS cor0
----
-4865

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 + col1 col2 FROM tab2 cor0
----
-8
13
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8549
SELECT DISTINCT COUNT( + ( col0 ) ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8549
SELECT DISTINCT COUNT ( + ( col0 ) ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8550
SELECT DISTINCT AVG ( + 3 ) + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8550
SELECT DISTINCT AVG ( + 3 ) + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8551
SELECT CAST( - ( - AVG ( + col1 ) ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-8551
SELECT CAST ( - ( - AVG ( + col1 ) ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8552
SELECT ALL + - COUNT( * ) + + 8 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-8552
SELECT ALL + - COUNT ( * ) + + 8 FROM tab1 AS cor0
----
5

query I rowsort
SELECT ALL - col2 * + 50 + col1 FROM tab1 cor0
----
-2945
-3353
-4786

onlyif mysql # DIV for integer division: 
query I rowsort label-8554
SELECT DISTINCT 74 DIV col1 AS col1 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-8554
SELECT DISTINCT 74 / col1 AS col1 FROM tab2 AS cor0
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8555
SELECT ALL - ( - COUNT( * ) ) + - 28 FROM tab0
----
-25

skipif mysql # not compatible
query I rowsort label-8555
SELECT ALL - ( - COUNT ( * ) ) + - 28 FROM tab0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-8556
SELECT DISTINCT - COUNT( * ) - COUNT( * ) AS col2 FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-8556
SELECT DISTINCT - COUNT ( * ) - COUNT ( * ) AS col2 FROM tab2
----
-6

query I rowsort
SELECT DISTINCT - col0 * col1 * col2 - 52 AS col1 FROM tab2
----
-197172
-291502
-54010

query I rowsort
SELECT ALL 20 * + - 94 FROM tab1
----
-1880
-1880
-1880

query III rowsort
SELECT ALL * FROM tab1 WHERE + 27 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8560
SELECT ALL - MIN( + col1 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-8560
SELECT ALL - MIN ( + col1 ) FROM tab0
----
-1

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) IS NOT NULL OR + col2 / col0 - - col2 <> ( col1 * ( col0 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 - 67 > ( NULL ) OR NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8563
SELECT + 95 + COUNT( - 24 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( col2 ) * + col1 NOT BETWEEN ( col0 ) AND NULL
----
95

skipif mysql # not compatible
query I rowsort label-8563
SELECT + 95 + COUNT ( - 24 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( col2 ) * + col1 NOT BETWEEN ( col0 ) AND NULL
----
95

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col0 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8565
SELECT DISTINCT - 35 * - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-8565
SELECT DISTINCT - 35 * - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
105

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + 3 ) NOT IN ( - col1 )
----

query I rowsort
SELECT ALL + 57 + - col0 FROM tab1 WHERE ( NOT NULL NOT IN ( col2 ) )
----

query I rowsort
SELECT ALL - col0 AS col0 FROM tab2 WHERE ( + 96 ) IS NOT NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8569
SELECT DISTINCT + - 22 + - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-31

skipif mysql # not compatible
query I rowsort label-8569
SELECT DISTINCT + - 22 + - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-8570
SELECT ALL MAX( ALL + 81 ) * + 47 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
3807

skipif mysql # not compatible
query I rowsort label-8570
SELECT ALL MAX ( ALL + 81 ) * + 47 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
3807

query I rowsort
SELECT ALL - ( - + col0 ) * - - col2 + col1 FROM tab2 cor0
----
1109
2637
4417

onlyif mysql # aggregate syntax: 
query I rowsort label-8572
SELECT + COUNT( * ) * + 6 FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-8572
SELECT + COUNT ( * ) * + 6 FROM tab0 AS cor0
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8573
SELECT ALL + col2 AS col0 FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) / - col1 <= col0 * + col0
----

skipif mysql # not compatible
query I rowsort label-8573
SELECT ALL + col2 AS col0 FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) / - col1 <= col0 * + col0
----

query II rowsort
SELECT - + 54 AS col1, - col1 + + - col1 + 6 AS col1 FROM tab0 AS cor0
----
-54
-156
-54
-36
-54
4

query I rowsort
SELECT - - 60 * 83 FROM tab1 AS cor0
----
4980
4980
4980

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col1 col1, col0 FROM tab0 AS cor0
----
1
97
21
87
81
15

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8577
SELECT col1 + - col2 FROM tab1 AS cor0 WHERE NOT ( CAST( 68 AS DECIMAL ) + - col2 ) BETWEEN NULL AND ( 8 )
----
-54

skipif mysql # not compatible
query I rowsort label-8577
SELECT col1 + - col2 FROM tab1 AS cor0 WHERE NOT ( CAST ( 68 AS REAL ) + - col2 ) BETWEEN NULL AND ( 8 )
----
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-8578
SELECT + 95 AS col2, - MAX( - col0 ) FROM tab2 AS cor0
----
95
46

skipif mysql # not compatible
query II rowsort label-8578
SELECT + 95 AS col2, - MAX ( - col0 ) FROM tab2 AS cor0
----
95
46

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 54 <> - ( 83 ) / + ( - col2 * 35 + + col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8580
SELECT ALL + COUNT( * ) DIV + + COUNT( * ) AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-8580
SELECT ALL + COUNT ( * ) / + + COUNT ( * ) AS col0 FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8581
SELECT + 58 * COUNT( * ) * + + MIN( DISTINCT + col0 ) * 41 AS col1 FROM tab2
----
328164

skipif mysql # not compatible
query I rowsort label-8581
SELECT + 58 * COUNT ( * ) * + + MIN ( DISTINCT + col0 ) * 41 AS col1 FROM tab2
----
328164

onlyif mysql # aggregate syntax: 
query I rowsort label-8582
SELECT - MIN( ALL + ( - - col0 ) ) AS col0 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-8582
SELECT - MIN ( ALL + ( - - col0 ) ) AS col0 FROM tab0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8583
SELECT DISTINCT COUNT( ALL + ( + 67 ) ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8583
SELECT DISTINCT COUNT ( ALL + ( + 67 ) ) AS col2 FROM tab1
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 BETWEEN NULL AND col0
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <= 91
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 IN ( + 79 * col2 )
----

query I rowsort
SELECT - - col1 * + 28 + col0 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
125
2283
675

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8588
SELECT + col2 / + ( + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8588
SELECT + col2 / + ( + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8589
SELECT ( - - 29 ) DIV - col2 + - 9 AS col2 FROM tab0
----
-11
-9
-9

skipif mysql # not compatible
query I rowsort label-8589
SELECT ( - - 29 ) / - col2 + - 9 AS col2 FROM tab0
----
-11
-9
-9

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE 62 + - + col1 > col1
----
59
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8591
SELECT DISTINCT + - AVG ( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8591
SELECT DISTINCT + - AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT 45 * + - col1 FROM tab1
----
-2115
-225
-630

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8593
SELECT DISTINCT * FROM tab2 WHERE NOT ( + CAST( NULL AS SIGNED ) + - ( col0 ) ) <> - 71
----

skipif mysql # not compatible
query III rowsort label-8593
SELECT DISTINCT * FROM tab2 WHERE NOT ( + CAST ( NULL AS INTEGER ) + - ( col0 ) ) <> - 71
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8594
SELECT - col0 DIV - + 67 AS col0 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8594
SELECT - col0 / - + 67 AS col0 FROM tab1
----
0
1
1

query I rowsort
SELECT ALL + - 71 AS col2 FROM tab2 AS cor0
----
-71
-71
-71

query I rowsort
SELECT - + col0 - - 66 AS col2 FROM tab2 AS cor0
----
-9
2
20

query I rowsort
SELECT - col1 - + - 15 AS col0 FROM tab0 AS cor0
----
-6
-66
14

query I rowsort
SELECT - + 2 + - + col1 FROM tab2 AS cor0
----
-53
-69
-79

query I rowsort
SELECT DISTINCT + col0 + + + 14 FROM tab2 cor0
----
60
78
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8600
SELECT + + CAST( + COUNT( * ) AS SIGNED ) + + + COUNT( * ) col0 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8600
SELECT + + CAST ( + COUNT ( * ) AS INTEGER ) + + + COUNT ( * ) col0 FROM tab0 AS cor0
----
6

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 NOT BETWEEN col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8602
SELECT DISTINCT - MIN( DISTINCT - + 29 ) - COUNT( * ) * + + 93 * - + 75 FROM tab1 cor0
----
20954

skipif mysql # not compatible
query I rowsort label-8602
SELECT DISTINCT - MIN ( DISTINCT - + 29 ) - COUNT ( * ) * + + 93 * - + 75 FROM tab1 cor0
----
20954

query III rowsort
SELECT * FROM tab0 WHERE + - col0 + + + 52 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 1 * col1 AS col2 FROM tab1
----
-14
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 41 col0 FROM tab0 AS cor0
----
41

query I rowsort
SELECT ALL + + 96 * + 74 FROM tab1 cor0
----
7104
7104
7104

onlyif mysql # aggregate syntax: 
query I rowsort label-8607
SELECT COUNT( DISTINCT + - col0 ) + - COUNT( * ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8607
SELECT COUNT ( DISTINCT + - col0 ) + - COUNT ( * ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
0

query II rowsort
SELECT DISTINCT + 14, 10 * + - 58 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + 86 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8609
SELECT - ( SUM( DISTINCT - - 98 ) ) FROM tab1
----
-98

skipif mysql # not compatible
query I rowsort label-8609
SELECT - ( SUM ( DISTINCT - - 98 ) ) FROM tab1
----
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col0 * + col0 col0, col1 AS col0 FROM tab2 AS cor0
----
2116
51
4096
77
5625
67

onlyif mysql # DIV for integer division: 
query I rowsort label-8611
SELECT ALL 44 DIV + - col0 FROM tab0 cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-8611
SELECT ALL 44 / + - col0 FROM tab0 cor0
----
-2
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8612
SELECT DISTINCT + + 89 + + COUNT( ALL - - col1 ) FROM tab0 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-8612
SELECT DISTINCT + + 89 + + COUNT ( ALL - - col1 ) FROM tab0 AS cor0
----
92

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 92 IN ( - col1, + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + - col1 * + - 62 AS col1 FROM tab1 cor0
----
2914
310
868

query III rowsort
SELECT * FROM tab1 WHERE + - 78 * col2 + + 63 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL 35 AS col0, 32 * col1 + - col2 AS col2 FROM tab1
----
35
101
35
1436
35
352

query I rowsort
SELECT col0 * - 3 FROM tab0
----
-261
-291
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 AS col2, - col2 col0 FROM tab2
----
23
-23
40
-40
58
-58

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8619
SELECT DISTINCT - col0, + CAST( NULL AS DECIMAL ) * col0 AS col1 FROM tab0
----
-15
NULL
-87
NULL
-97
NULL

skipif mysql # not compatible
query II rowsort label-8619
SELECT DISTINCT - col0, + CAST ( NULL AS REAL ) * col0 AS col1 FROM tab0
----
-15
NULL
-87
NULL
-97
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 + col0 < NULL
----

query II rowsort
SELECT col0, + 13 + + + 64 AS col0 FROM tab0 AS cor0
----
15
77
87
77
97
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8622
SELECT DISTINCT - 13 + + + COUNT( + col1 ) FROM tab1 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-8622
SELECT DISTINCT - 13 + + + COUNT ( + col1 ) FROM tab1 AS cor0
----
-10

query II rowsort
SELECT 49 AS col0, col1 * - col0 + + col2 + - col0 AS col1 FROM tab0 cor0
----
49
-1183
49
-1904
49
-95

query I rowsort
SELECT ALL + + 61 + - - col1 - + col1 FROM tab2 AS cor0
----
61
61
61

query I rowsort
SELECT col1 + + + col2 AS col2 FROM tab1
----
110
115
64

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN ( col1 ) AND col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8627
SELECT ALL + CAST( NULL AS SIGNED ) / COUNT( * ) AS col1 FROM tab2 WHERE NOT + col0 + + 79 > + + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8627
SELECT ALL + CAST ( NULL AS INTEGER ) / COUNT ( * ) AS col1 FROM tab2 WHERE NOT + col0 + + 79 > + + col2
----
NULL

query I rowsort
SELECT DISTINCT 82 FROM tab1, tab0 AS cor0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8629
SELECT COUNT( * ) + COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
18

skipif mysql # not compatible
query I rowsort label-8629
SELECT COUNT ( * ) + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8630
SELECT - col0 AS col2 FROM tab1 AS cor0 WHERE 85 * + 18 / col2 * + col0 NOT BETWEEN + 98 AND ( + CAST( - col2 AS SIGNED ) * - - col1 )
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-8630
SELECT - col0 AS col2 FROM tab1 AS cor0 WHERE 85 * + 18 / col2 * + col0 NOT BETWEEN + 98 AND ( + CAST ( - col2 AS INTEGER ) * - - col1 )
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 68 col0 FROM tab2 AS cor0
----
68
68
68

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( NULL ) BETWEEN ( + 62 ) AND col0 * col2 + - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8633
SELECT ALL CAST( - MAX( ALL - ( + col0 ) ) AS SIGNED ) AS col1 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-8633
SELECT ALL CAST ( - MAX ( ALL - ( + col0 ) ) AS INTEGER ) AS col1 FROM tab0
----
15

query I rowsort
SELECT + ( + - col2 ) AS col2 FROM tab1
----
-59
-68
-96

query II rowsort
SELECT ALL 19 AS col1, - ( 84 ) * 40 AS col2 FROM tab1
----
19
-3360
19
-3360
19
-3360

query I rowsort
SELECT ALL + 70 FROM tab1 WHERE NULL NOT IN ( col0 + + col2 * col2, - col0 + ( - 81 ) )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-8637
SELECT ALL * FROM tab1 WHERE ( - - col2 * 4 * - + col1 / - CAST( NULL AS DECIMAL ) * - CAST( NULL AS SIGNED ) ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-8637
SELECT ALL * FROM tab1 WHERE ( - - col2 * 4 * - + col1 / - CAST ( NULL AS REAL ) * - CAST ( NULL AS INTEGER ) ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8638
SELECT * FROM tab1 WHERE NOT ( - col2 * CAST( - 14 AS SIGNED ) + - - col0 + col0 / - - ( col0 ) ) NOT BETWEEN NULL AND ( - 84 )
----

skipif mysql # not compatible
query III rowsort label-8638
SELECT * FROM tab1 WHERE NOT ( - col2 * CAST ( - 14 AS INTEGER ) + - - col0 + col0 / - - ( col0 ) ) NOT BETWEEN NULL AND ( - 84 )
----

query II rowsort
SELECT ALL - col1 * ( - - 88 ) AS col0, col0 + + 10 + + + 43 - - col1 + col0 FROM tab0 cor0
----
-1848
248
-7128
164
-88
248

onlyif mysql # aggregate syntax: 
query I rowsort label-8640
SELECT + COUNT( * ) * - + COUNT( * ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8640
SELECT + COUNT ( * ) * - + COUNT ( * ) FROM tab1 AS cor0
----
-9

query I rowsort
SELECT DISTINCT 3 AS col1 FROM tab0 cor0 WHERE NOT - 86 IN ( - 38 )
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8642
SELECT ALL - col2 DIV 96 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8642
SELECT ALL - col2 / 96 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT - 76 * + col0 * - col2 AS col0 FROM tab0 WHERE NOT NULL > NULL
----

query II rowsort
SELECT DISTINCT 92, - 33 AS col0 FROM tab2
----
92
-33

query II rowsort
SELECT ALL col2 AS col0, 24 * - - col0 AS col2 FROM tab1
----
59
2040
68
2184
96
1224

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8646
SELECT + - 29 * - MIN( + - col1 ) + - CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-2346

skipif mysql # not compatible
query I rowsort label-8646
SELECT + - 29 * - MIN ( + - col1 ) + - CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-2346

query II rowsort
SELECT col2 AS col2, col2 + - + 0 FROM tab1 AS cor0
----
59
59
68
68
96
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8648
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8648
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
0

query II rowsort
SELECT - 26 AS col2, 42 FROM tab1 AS cor0
----
-26
42
-26
42
-26
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8650
SELECT ALL - SUM( - 54 ) AS col0 FROM tab2 cor0
----
162

skipif mysql # not compatible
query I rowsort label-8650
SELECT ALL - SUM ( - 54 ) AS col0 FROM tab2 cor0
----
162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8651
SELECT DISTINCT + SUM( DISTINCT - - CAST( - + 87 AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-8651
SELECT DISTINCT + SUM ( DISTINCT - - CAST ( - + 87 AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-8652
SELECT ALL + SUM( DISTINCT - col1 ) AS col1, + 48 FROM tab1 AS cor0
----
-66
48

skipif mysql # not compatible
query II rowsort label-8652
SELECT ALL + SUM ( DISTINCT - col1 ) AS col1, + 48 FROM tab1 AS cor0
----
-66
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8653
SELECT + - 17 * + + CAST( - 90 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
1530
1530
1530

skipif mysql # not compatible
query I rowsort label-8653
SELECT + - 17 * + + CAST ( - 90 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
1530
1530
1530

query I rowsort
SELECT col0 + + 25 - + col0 AS col2 FROM tab0
----
25
25
25

query I rowsort
SELECT - + 86 + - 64 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to e5af916819b090fbb4fa18997d625c07

query I rowsort
SELECT - 36 - col1 FROM tab0 AS cor0
----
-117
-37
-57

query I rowsort
SELECT 37 - 74 FROM tab1 cor0
----
-37
-37
-37

query I rowsort
SELECT + col0 + col0 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 39 NOT BETWEEN NULL AND col1 * - col1
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 77 + - - col0 - + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8661
SELECT DISTINCT - + MIN( col1 ) AS col0 FROM tab2 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-8661
SELECT DISTINCT - + MIN ( col1 ) AS col0 FROM tab2 cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8662
SELECT 32 * - COUNT( * ) FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-8662
SELECT 32 * - COUNT ( * ) FROM tab0
----
-96

query I rowsort
SELECT - 34 FROM tab1 WHERE NOT NULL NOT BETWEEN + - 36 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8664
SELECT - COUNT( * ) * COUNT( * ) + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-8664
SELECT - COUNT ( * ) * COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8665
SELECT CAST( + col0 AS SIGNED ) col2 FROM tab0
----
15
87
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8665
SELECT CAST ( + col0 AS INTEGER ) col2 FROM tab0
----
15
87
97

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 24 IS NULL
----

query I rowsort
SELECT DISTINCT + ( 53 ) * 25 + col2 FROM tab2
----
1348
1365
1383

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8668
SELECT DISTINCT * FROM tab1 WHERE NULL >= CAST( + 85 AS SIGNED ) * + col0
----

skipif mysql # not compatible
query III rowsort label-8668
SELECT DISTINCT * FROM tab1 WHERE NULL >= CAST ( + 85 AS INTEGER ) * + col0
----

query I rowsort
SELECT - ( + - ( + col2 ) ) + + - 59 * col2 FROM tab1 AS cor0
----
-3422
-3944
-5568

query I rowsort
SELECT ALL + col0 + - - 47 + ( + col0 ) FROM tab2 AS cor0
----
139
175
197

onlyif mysql # aggregate syntax: 
query I rowsort label-8671
SELECT 51 * COUNT( * ) AS col0 FROM tab2 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-8671
SELECT 51 * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8672
SELECT ALL - CAST( - 15 AS SIGNED ) + + + 49 AS col2 FROM tab0
----
64
64
64

skipif mysql # not compatible
query I rowsort label-8672
SELECT ALL - CAST ( - 15 AS INTEGER ) + + + 49 AS col2 FROM tab0
----
64
64
64

query II rowsort
SELECT ALL - 93 * 7, col1 FROM tab1
----
-651
14
-651
47
-651
5

query III rowsort
SELECT * FROM tab2 WHERE NULL <= + 19 * 2
----

query II rowsort
SELECT + col0 AS col2, + 25 FROM tab2
----
46
25
64
25
75
25

query I rowsort
SELECT ALL 46 AS col1 FROM tab1 WHERE NOT - ( - col2 ) >= - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8677
SELECT 20 / - - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8677
SELECT 20 / - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE - ( col0 ) - + 95 * - 91 NOT IN ( + + 3 + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 AS col2, - col2 col0 FROM tab0 WHERE NOT NULL NOT IN ( + col0 - col0 + + 22 * - - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col1 ) * - col0 col1 FROM tab2
----
2346
4928
5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, 12 col0 FROM tab1
----
59
12
68
12
96
12

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8682
SELECT - col0 AS col2, col2 / - ( + ( - - col0 ) ) AS col2 FROM tab2 WHERE - 93 BETWEEN - CAST( NULL AS SIGNED ) * col1 AND NULL
----

skipif mysql # not compatible
query II rowsort label-8682
SELECT - col0 AS col2, col2 / - ( + ( - - col0 ) ) AS col2 FROM tab2 WHERE - 93 BETWEEN - CAST ( NULL AS INTEGER ) * col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8683
SELECT * FROM tab2 cor0 WHERE - CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8683
SELECT * FROM tab2 cor0 WHERE - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-8684
SELECT ALL col2 AS col2, - col2 DIV - col0 FROM tab1 AS cor0
----
59
0
68
0
96
1

skipif mysql # not compatible
query II rowsort label-8684
SELECT ALL col2 AS col2, - col2 / - col0 FROM tab1 AS cor0
----
59
0
68
0
96
1

query I rowsort
SELECT DISTINCT - col2 - 23 * - col2 AS col0 FROM tab0 AS cor0
----
1034
2178
220

query I rowsort
SELECT ALL - 70 - 68 * - col0 * + 86 FROM tab2
----
268938
374202
438530

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN col2 AND + ( + + col2 )
----

query I rowsort
SELECT ALL col0 - - 28 AS col2 FROM tab2
----
103
74
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8689
SELECT CAST( - MAX( 0 ) AS SIGNED ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8689
SELECT CAST ( - MAX ( 0 ) AS INTEGER ) AS col2 FROM tab1
----
0

query I rowsort
SELECT - + 14 AS col2 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 * + - 18 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + 76 AS col2 FROM tab2 AS cor0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-8693
SELECT + 66 * + + COUNT( * ) - - - COUNT( * ) FROM tab0 AS cor0 WHERE NOT - col2 NOT IN ( - - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-8693
SELECT + 66 * + + COUNT ( * ) - - - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - col2 NOT IN ( - - col2 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8694
SELECT 80 DIV + col0 AS col2 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8694
SELECT 80 / + col0 AS col2 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT ALL + - 89 FROM tab0 cor0
----
-89
-89
-89

query I rowsort
SELECT + + 61 AS col2 FROM tab2 cor0
----
61
61
61

query I rowsort
SELECT - + 96 AS col1 FROM tab2 AS cor0
----
-96
-96
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-8698
SELECT ALL col1 DIV ( + col2 ) * - col1 + + col0 * - col0 FROM tab0
----
-306
-7611
-9409

skipif mysql # not compatible
query I rowsort label-8698
SELECT ALL col1 / ( + col2 ) * - col1 + + col0 * - col0 FROM tab0
----
-306
-7611
-9409

onlyif mysql # DIV for integer division: 
query I rowsort label-8699
SELECT DISTINCT + col2 DIV col0 * col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8699
SELECT DISTINCT + col2 / col0 * col2 FROM tab2
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT + 98 IN ( - col0, col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - col2 - 56 FROM tab2 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT - col0 * - col2 * 99 AS col0 FROM tab0 WHERE NOT + col2 IS NULL
----
69795
86130
950697

onlyif mysql # aggregate syntax: 
query I rowsort label-8703
SELECT DISTINCT COUNT( DISTINCT + col0 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8703
SELECT DISTINCT COUNT ( DISTINCT + col0 ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8704
SELECT - SUM( ALL 3 ) * 74 * + - COUNT( * ) * COUNT( * ) FROM tab1 AS cor0 WHERE NOT 57 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8704
SELECT - SUM ( ALL 3 ) * 74 * + - COUNT ( * ) * COUNT ( * ) FROM tab1 AS cor0 WHERE NOT 57 IS NOT NULL
----
NULL

query II rowsort
SELECT - col1 * - col1 * + col0, - 60 * - col0 AS col2 FROM tab2 AS cor0
----
119646
2760
336675
4500
379456
3840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8706
SELECT DISTINCT + CAST( + 57 AS SIGNED ) FROM tab1 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-8706
SELECT DISTINCT + CAST ( + 57 AS INTEGER ) FROM tab1 AS cor0
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8707
SELECT + 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-8707
SELECT + col1 + + CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( + - col0 ) AS col2 FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8709
SELECT - 59 * + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-531

skipif mysql # not compatible
query I rowsort label-8709
SELECT - 59 * + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-531

onlyif mysql # aggregate syntax: 
query I rowsort label-8710
SELECT ALL - COUNT( * ) col0 FROM tab2 AS cor0 WHERE - col0 * 63 <= + col0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8710
SELECT ALL - COUNT ( * ) col0 FROM tab2 AS cor0 WHERE - col0 * 63 <= + col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8711
SELECT DISTINCT + COUNT( * ) + + SUM( DISTINCT + 53 ) FROM tab2 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-8711
SELECT DISTINCT + COUNT ( * ) + + SUM ( DISTINCT + 53 ) FROM tab2 AS cor0
----
56

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab2 AS cor0 WHERE - 42 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 26 * - 95 >= + col1
----

query I rowsort
SELECT 92 + + 23 + - + col2 FROM tab2 AS cor0
----
57
75
92

query III rowsort
SELECT * FROM tab0 WHERE NULL = ( 65 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8716
SELECT + COUNT( * ) AS col0 FROM tab2 WHERE + col0 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-8716
SELECT + COUNT ( * ) AS col0 FROM tab2 WHERE + col0 < NULL
----
0

query I rowsort
SELECT + col1 + + - col1 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8718
SELECT ALL - CAST( NULL AS SIGNED ) * - COUNT( * ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8718
SELECT ALL - CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8719
SELECT ALL - 32 + + COUNT( + col0 ) FROM tab0
----
-29

skipif mysql # not compatible
query I rowsort label-8719
SELECT ALL - 32 + + COUNT ( + col0 ) FROM tab0
----
-29

query I rowsort
SELECT - col0 + 79 FROM tab1
----
-12
-6
28

query I rowsort
SELECT ALL - 11 + + 16 + + - 80 FROM tab2 AS cor0
----
-75
-75
-75

query I rowsort
SELECT - - col0 * + - col0 FROM tab2 AS cor0
----
-2116
-4096
-5625

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 * 71 + ( + col0 ) BETWEEN NULL AND + 62
----

query I rowsort
SELECT DISTINCT 22 + - + col1 AS col1 FROM tab0 AS cor0
----
-59
1
21

query I rowsort
SELECT DISTINCT + 13 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
13

query II rowsort
SELECT col2 AS col0, - ( + col1 ) FROM tab0
----
10
-21
47
-81
99
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8727
SELECT - MIN( col0 ) col2 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8727
SELECT - MIN ( col0 ) col2 FROM tab2 AS cor0
----
-46

query II rowsort
SELECT - - col2 AS col1, col2 - + + col2 FROM tab0 cor0
----
10
0
47
0
99
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8729
SELECT + COUNT( DISTINCT 19 ), COUNT( * ) AS col1 FROM tab1 AS cor0
----
1
3

skipif mysql # not compatible
query II rowsort label-8729
SELECT + COUNT ( DISTINCT 19 ), COUNT ( * ) AS col1 FROM tab1 AS cor0
----
1
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col1, - 58 FROM tab1 cor0
----
51
-58
85
-58
91
-58

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 / col1 IS NULL
----

query I rowsort
SELECT ALL 45 AS col2 FROM tab0 cor0
----
45
45
45

query I rowsort
SELECT + col0 * + col0 FROM tab1 WHERE NOT NULL <= ( - - 93 ) * + + col2 - - 55 + - col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8734
SELECT ( + - MAX( DISTINCT - col2 ) ) DIV COUNT( * ) AS col0 FROM tab1
----
19

skipif mysql # not compatible
query I rowsort label-8734
SELECT ( + - MAX ( DISTINCT - col2 ) ) / COUNT ( * ) AS col0 FROM tab1
----
19

query I rowsort
SELECT + 48 * - + col0 * col1 AS col2 FROM tab0
----
-4656
-58320
-87696

query I rowsort
SELECT DISTINCT + 61 FROM tab0 WHERE + 75 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8737
SELECT DISTINCT - SUM( ALL + col2 ) FROM tab0 WHERE NULL NOT BETWEEN col1 * 38 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8737
SELECT DISTINCT - SUM ( ALL + col2 ) FROM tab0 WHERE NULL NOT BETWEEN col1 * 38 AND NULL
----
NULL

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 WHERE col1 + + 93 IS NOT NULL
----
15
87
97

query I rowsort
SELECT DISTINCT col0 + - + col2 AS col0 FROM tab0 AS cor0
----
-2
-32
77

query I rowsort
SELECT DISTINCT - ( 61 ) + - ( + - col2 ) FROM tab0 cor0
----
-14
-51
38

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - 74 <= NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 LEFT JOIN tab1 cor1 ON NOT NULL IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

onlyif mysql # aggregate syntax: 
query I rowsort label-8743
SELECT ALL + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE ( - col2 ) = NULL
----
0

skipif mysql # not compatible
query I rowsort label-8743
SELECT ALL + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE ( - col2 ) = NULL
----
0

query I rowsort
SELECT DISTINCT - - col1 + - 54 AS col0 FROM tab0 AS cor0
----
-33
-53
27

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) < - 36
----

query I rowsort
SELECT - 66 AS col1 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8747
SELECT + CAST( NULL AS SIGNED ) AS col0, 15 - + col0 * - 99 FROM tab2 AS cor0
----
NULL
4569
NULL
6351
NULL
7440

skipif mysql # not compatible
query II rowsort label-8747
SELECT + CAST ( NULL AS INTEGER ) AS col0, 15 - + col0 * - 99 FROM tab2 AS cor0
----
NULL
4569
NULL
6351
NULL
7440

query I rowsort
SELECT ( - 29 ) FROM tab0
----
-29
-29
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-8749
SELECT COUNT( * ) * + + MIN( ALL + - col0 ) AS col1 FROM tab1
----
-273

skipif mysql # not compatible
query I rowsort label-8749
SELECT COUNT ( * ) * + + MIN ( ALL + - col0 ) AS col1 FROM tab1
----
-273

query I rowsort
SELECT ALL + col0 * - - 8 + - 95 AS col2 FROM tab2
----
273
417
505

query I rowsort
SELECT col2 * col0 FROM tab0 WHERE - + col2 * - - col0 * - + col2 NOT IN ( - + 53 + - col0 )
----
705
870
9603

query II rowsort
SELECT ALL col1 AS col2, col2 AS col1 FROM tab2 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8753
SELECT ALL 7 - + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8753
SELECT ALL 7 - + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + col0 * - + col2 FROM tab0 AS cor0
----
705
870
9603

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 * + + 60 * col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8756
SELECT COUNT( * ) AS col1, - COUNT( * ) AS col2 FROM tab1 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-8756
SELECT COUNT ( * ) AS col1, - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
3
-3

query I rowsort
SELECT - col1 * + + col2 FROM tab1 AS cor0
----
-1344
-295
-3196

query I rowsort
SELECT ( 66 ) AS col0 FROM tab2 AS cor0
----
66
66
66

query I rowsort
SELECT + col0 * + + 60 AS col2 FROM tab0
----
5220
5820
900

query II rowsort
SELECT ALL + col2 AS col0, 51 + 3 * ( 4 ) AS col0 FROM tab2
----
23
63
40
63
58
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8761
SELECT DISTINCT - COUNT( - + CAST( NULL AS SIGNED ) ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8761
SELECT DISTINCT - COUNT ( - + CAST ( NULL AS INTEGER ) ) FROM tab2
----
0

query II rowsort
SELECT ALL 60 AS col0, col1 * 13 FROM tab2
----
60
1001
60
663
60
871

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8763
SELECT CAST( - MIN( - col0 ) AS SIGNED ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-8763
SELECT CAST ( - MIN ( - col0 ) AS INTEGER ) FROM tab1
----
91

query I rowsort
SELECT ALL + 53 AS col2 FROM tab0 AS cor0 WHERE NOT + col0 IS NULL
----
53
53
53

onlyif mysql # DIV for integer division: 
query I rowsort label-8765
SELECT ALL + 76 DIV + 35 AS col0 FROM tab1 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-8765
SELECT ALL + 76 / + 35 AS col0 FROM tab1 AS cor0
----
2
2
2

onlyif mysql # DIV for integer division: 
query II rowsort label-8766
SELECT DISTINCT - - col0 AS col1, 2 * - 19 DIV - - 98 FROM tab0 AS cor0
----
15
0
87
0
97
0

skipif mysql # not compatible
query II rowsort label-8766
SELECT DISTINCT - - col0 AS col1, 2 * - 19 / - - 98 FROM tab0 AS cor0
----
15
0
87
0
97
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8767
SELECT DISTINCT + MAX( 50 ) DIV - 74 FROM tab1, tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8767
SELECT DISTINCT + MAX ( 50 ) / - 74 FROM tab1, tab1 AS cor0
----
0

query I rowsort
SELECT ALL + 26 + col0 * - col1 AS col0 FROM tab0 AS cor0
----
-1189
-1801
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-8769
SELECT - + COUNT( * ) - 62 FROM tab0 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-8769
SELECT - + COUNT ( * ) - 62 FROM tab0 AS cor0
----
-65

query II rowsort
SELECT 78 - + col0, col1 FROM tab1 AS cor0
----
-13
47
-7
5
27
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8771
SELECT + - 62 - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-8771
SELECT + - 62 - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-65

query I rowsort
SELECT + col1 * - + col2 FROM tab1 AS cor0 WHERE col2 IS NULL
----

query II rowsort
SELECT ALL col0 + + col0, ( col2 ) AS col1 FROM tab2 AS cor0
----
128
40
150
58
92
23

query II rowsort
SELECT ALL - col2 + - col2, 47 AS col0 FROM tab1 AS cor0
----
-118
47
-136
47
-192
47

query II rowsort
SELECT DISTINCT - + col1 AS col1, - col2 AS col0 FROM tab2 cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT - 23 + col0 + + col2 AS col1 FROM tab1 AS cor0
----
121
124
136

query I rowsort
SELECT ALL + + col0 + + - col2 + - 90 FROM tab1 AS cor0
----
-135
-64
-67

query I rowsort
SELECT - + col0 + - 95 AS col1 FROM tab1 AS cor0
----
-146
-180
-186

query I rowsort
SELECT - col0 + ( col0 ) FROM tab1
----
0
0
0

query II rowsort
SELECT - 99, ( + col2 ) + + + 63 + - col1 / - col0 / + 57 AS col2 FROM tab2 WHERE NULL > - col0
----

query II rowsort
SELECT - col0, + col0 + + col0 - - 72 AS col0 FROM tab2
----
-46
164
-64
200
-75
222

query II rowsort
SELECT col2 AS col2, + col1 * col2 FROM tab2
----
23
1173
40
3080
58
3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col0 FROM tab0 AS cor0 WHERE NOT 52 - 76 + - - ( - + ( - + 3 ) ) IS NOT NULL
----

query I rowsort
SELECT ALL ( + + col2 ) FROM tab2 AS cor0 WHERE NOT + 37 = + 42
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8785
SELECT ( col2 ) + + - CAST( NULL AS SIGNED ) - - 54 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-8785
SELECT ( col2 ) + + - CAST ( NULL AS INTEGER ) - - 54 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ( - - 35 ) FROM tab2
----
35
35
35

query I rowsort
SELECT DISTINCT 89 * col2 FROM tab0
----
4183
8811
890

query I rowsort
SELECT + col2 * - - col0 AS col2 FROM tab1 AS cor0
----
4896
5015
6188

query I rowsort
SELECT ALL - 93 AS col1 FROM tab2 cor0
----
-93
-93
-93

query I rowsort
SELECT DISTINCT 90 * + - 5 FROM tab1 AS cor0
----
-450

query I rowsort
SELECT DISTINCT + - ( - + ( - col2 ) ) FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT ALL 78 * + col2 + col1 FROM tab1 WHERE NOT - col0 >= NULL
----

query I rowsort
SELECT ALL + 28 * 45 FROM tab0
----
1260
1260
1260

onlyif mysql # DIV for integer division: 
query I rowsort label-8794
SELECT + ( - col2 ) DIV 37 + col2 + - col2 - col1 AS col2 FROM tab1
----
-16
-48
-6

skipif mysql # not compatible
query I rowsort label-8794
SELECT + ( - col2 ) / 37 + col2 + - col2 - col1 AS col2 FROM tab1
----
-16
-48
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8795
SELECT ALL - col1 * - col2 * - - CAST( + col2 AS SIGNED ) FROM tab2
----
123200
225388
26979

skipif mysql # not compatible
query I rowsort label-8795
SELECT ALL - col1 * - col2 * - - CAST ( + col2 AS INTEGER ) FROM tab2
----
123200
225388
26979

onlyif mysql # aggregate syntax: 
query I rowsort label-8796
SELECT ALL ( SUM( col2 ) ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-8796
SELECT ALL ( SUM ( col2 ) ) FROM tab0
----
156

query I rowsort
SELECT ALL ( - 50 ) + + + col1 AS col0 FROM tab1
----
-3
-36
-45

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND NULL OR NOT + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 * + col2 * - + 37 * + + col2 NOT BETWEEN + 17 AND ( + 18 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8800
SELECT DISTINCT + CAST( + - col2 AS SIGNED ) * - ( + 75 ) + - col2 FROM tab0 cor0
----
3478
7326
740

skipif mysql # not compatible
query I rowsort label-8800
SELECT DISTINCT + CAST ( + - col2 AS INTEGER ) * - ( + 75 ) + - col2 FROM tab0 cor0
----
3478
7326
740

query I rowsort
SELECT ALL + col1 * - col2 * col2 - - - col1 - col1 AS col0 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8802
SELECT CAST( NULL AS SIGNED ), - CAST( NULL AS SIGNED ) + + + col2 * col0 + col1 * + 95 + - - ( + ( + col0 ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8802
SELECT CAST ( NULL AS INTEGER ), - CAST ( NULL AS INTEGER ) + + + col2 * col0 + col1 * + 95 + - - ( + ( + col0 ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8803
SELECT ALL COUNT( + 3 ) * COUNT( * ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-8803
SELECT ALL COUNT ( + 3 ) * COUNT ( * ) FROM tab2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8804
SELECT 49 + - COUNT( * ) FROM tab0
----
46

skipif mysql # not compatible
query I rowsort label-8804
SELECT 49 + - COUNT ( * ) FROM tab0
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8805
SELECT + CAST( + + 49 AS SIGNED ) + CAST( - - col0 AS SIGNED ) * + 13 FROM tab2
----
1024
647
881

skipif mysql # not compatible
query I rowsort label-8805
SELECT + CAST ( + + 49 AS INTEGER ) + CAST ( - - col0 AS INTEGER ) * + 13 FROM tab2
----
1024
647
881

onlyif mysql # aggregate syntax: 
query I rowsort label-8806
SELECT ALL + 32 * + COUNT( * ) AS col0 FROM tab2
----
96

skipif mysql # not compatible
query I rowsort label-8806
SELECT ALL + 32 * + COUNT ( * ) AS col0 FROM tab2
----
96

query I rowsort
SELECT ALL col0 - - col2 * + col2 FROM tab1
----
3566
4715
9267

onlyif mysql # DIV for integer division: 
query II rowsort label-8808
SELECT ALL + col2 DIV - col2, col2 FROM tab1 cor0
----
-1
59
-1
68
-1
96

skipif mysql # not compatible
query II rowsort label-8808
SELECT ALL + col2 / - col2, col2 FROM tab1 cor0
----
-1
59
-1
68
-1
96

query I rowsort
SELECT + col1 * 17 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1377
17
357

query I rowsort
SELECT ALL + col2 FROM tab0 cor0 WHERE NOT NULL <= + col1 + + ( - + 10 )
----

query III rowsort
SELECT * FROM tab0 WHERE - col0 * col1 + col0 IS NULL
----

query I rowsort
SELECT ALL col1 - 19 FROM tab0
----
-18
2
62

query III rowsort
SELECT * FROM tab2 WHERE + + 73 + 28 * col2 BETWEEN - col2 * + col0 AND - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8814
SELECT DISTINCT + 87 DIV - 97 - + - 29 DIV + ( ( - col1 ) ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8814
SELECT DISTINCT + 87 / - 97 - + - 29 / + ( ( - col1 ) ) FROM tab2
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL < - + col2
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8816
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - - COUNT( * ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8816
SELECT DISTINCT CAST ( NULL AS REAL ) * - - COUNT ( * ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT + - col0 * - + col0 * - col1 AS col2 FROM tab1 cor0
----
-36125
-36414
-389207

onlyif mysql # aggregate syntax: 
query I rowsort label-8818
SELECT MAX( DISTINCT + 98 ) * - + 7 FROM tab0 AS cor0
----
-686

skipif mysql # not compatible
query I rowsort label-8818
SELECT MAX ( DISTINCT + 98 ) * - + 7 FROM tab0 AS cor0
----
-686

onlyif mysql # aggregate syntax: 
query I rowsort label-8819
SELECT DISTINCT + COUNT( * ) * 57 * + + COUNT( * ) * + COUNT( * ) * - 59 + - 22 FROM tab2 cor0 CROSS JOIN tab0 cor1 WHERE NOT ( NULL ) IS NOT NULL
----
-2451649

skipif mysql # not compatible
query I rowsort label-8819
SELECT DISTINCT + COUNT ( * ) * 57 * + + COUNT ( * ) * + COUNT ( * ) * - 59 + - 22 FROM tab2 cor0 CROSS JOIN tab0 cor1 WHERE NOT ( NULL ) IS NOT NULL
----
-2451649

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - 28 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8821
SELECT + CAST( 96 AS SIGNED ) DIV + 76 - + col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-50
-84
-90

skipif mysql # not compatible
query I rowsort label-8821
SELECT + CAST ( 96 AS INTEGER ) / + 76 - + col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-50
-84
-90

query II rowsort
SELECT - 30 AS col2, - ( col1 ) * - col1 AS col1 FROM tab2 AS cor0
----
-30
2601
-30
4489
-30
5929

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8823
SELECT - 87 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8823
SELECT - 87 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8824
SELECT ALL col1 AS col0, CAST( NULL AS SIGNED ) + + CAST( - col2 AS SIGNED ) + - 21 AS col1 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-8824
SELECT ALL col1 AS col0, CAST ( NULL AS INTEGER ) + + CAST ( - col2 AS INTEGER ) + - 21 AS col1 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8825
SELECT ALL MAX( DISTINCT + + col1 ) * - SUM( col1 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3102

skipif mysql # not compatible
query I rowsort label-8825
SELECT ALL MAX ( DISTINCT + + col1 ) * - SUM ( col1 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3102

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8826
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 >= - col0 + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8826
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 >= - col0 + - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8827
SELECT ALL COUNT( * ) col2, COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT + 9 IS NOT NULL
----
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8827
SELECT ALL COUNT ( * ) col2, COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT + 9 IS NOT NULL
----
0
0

query I rowsort
SELECT ALL + col2 * 6 FROM tab0 AS cor0
----
282
594
60

query I rowsort
SELECT DISTINCT col1 * - 16 * - col0 AS col0 FROM tab2
----
37536
78848
80400

query I rowsort
SELECT col1 FROM tab2 WHERE + + col1 = - ( + + col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN - col1 AND + + 9 / - - col0
----

query II rowsort
SELECT - col1 + - 96 AS col2, + col0 FROM tab2 AS cor0
----
-147
46
-163
75
-173
64

query II rowsort
SELECT 89 + - col1 AS col0, ( + col2 ) FROM tab1 cor0
----
42
68
75
96
84
59

query I rowsort
SELECT - 27 + - col1 FROM tab0 cor0
----
-108
-28
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-8835
SELECT DISTINCT - + MIN( + 65 ) + - 71 AS col0 FROM tab2 AS cor0
----
-136

skipif mysql # not compatible
query I rowsort label-8835
SELECT DISTINCT - + MIN ( + 65 ) + - 71 AS col0 FROM tab2 AS cor0
----
-136

query III rowsort
SELECT * FROM tab0 WHERE - - col1 BETWEEN NULL AND 18
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8837
SELECT ALL 7 * COUNT( - 26 ) AS col0 FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-8837
SELECT ALL 7 * COUNT ( - 26 ) AS col0 FROM tab1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8838
SELECT - - COUNT( * ) + + COUNT( DISTINCT - col2 ) + 94 FROM tab1 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-8838
SELECT - - COUNT ( * ) + + COUNT ( DISTINCT - col2 ) + 94 FROM tab1 AS cor0
----
100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8839
SELECT 28 + - col1 * 27 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8839
SELECT 28 + - col1 * 27 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 + - + 10 + col2 * - + col2 * - - col2 AS col0 FROM tab0 AS cor0
----
-1000
-103786
-970210

query I rowsort
SELECT + + col1 * + + 80 + - + 30 AS col2 FROM tab1 AS cor0
----
1090
370
3730

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8842
SELECT ALL MAX( DISTINCT CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8842
SELECT ALL MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8843
SELECT DISTINCT + 25 * - - ( CAST( + + col1 AS SIGNED ) ) AS col1 FROM tab2
----
1275
1675
1925

skipif mysql # not compatible
query I rowsort label-8843
SELECT DISTINCT + 25 * - - ( CAST ( + + col1 AS INTEGER ) ) AS col1 FROM tab2
----
1275
1675
1925

query II rowsort
SELECT col0 AS col0, 10 AS col2 FROM tab0
----
15
10
87
10
97
10

query II rowsort
SELECT col2 AS col2, col1 FROM tab0
----
10
21
47
81
99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8846
SELECT ALL - COUNT( DISTINCT + - 84 ) AS col1 FROM tab2, tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8846
SELECT ALL - COUNT ( DISTINCT + - 84 ) AS col1 FROM tab2, tab2 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8847
SELECT DISTINCT - MIN( DISTINCT - col0 ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-8847
SELECT DISTINCT - MIN ( DISTINCT - col0 ) FROM tab2
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-8848
SELECT ALL - col1 DIV 18 FROM tab0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-8848
SELECT ALL - col1 / 18 FROM tab0
----
-1
-4
0

query III rowsort
SELECT * FROM tab2 WHERE NOT 27 NOT BETWEEN + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8850
SELECT DISTINCT + ( COUNT( DISTINCT col2 ) ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8850
SELECT DISTINCT + ( COUNT ( DISTINCT col2 ) ) AS col2 FROM tab0 AS cor0
----
3

query II rowsort
SELECT DISTINCT 81, col0 FROM tab0 AS cor0
----
81
15
81
87
81
97

query I rowsort
SELECT col1 + - col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL <> ( NULL )
----

query I rowsort
SELECT ALL + col2 FROM tab2 WHERE NOT 5 * 65 * + col2 + 15 + + col1 IS NULL
----
23
40
58

query I rowsort
SELECT ALL + + col0 FROM tab1 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8855
SELECT col1 / - + col2 * col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8855
SELECT col1 / - + col2 * col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8856
SELECT + - COUNT( * ) * + 9 + 42 + ( MAX( DISTINCT + 50 ) ) AS col0 FROM tab2 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-8856
SELECT + - COUNT ( * ) * + 9 + 42 + ( MAX ( DISTINCT + 50 ) ) AS col0 FROM tab2 AS cor0
----
65

query I rowsort
SELECT DISTINCT - 10 FROM tab1 AS cor0 WHERE NOT col0 + col0 < + 54
----
-10

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - ( + col1 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 30 + - 54 col0 FROM tab1 AS cor0
----
-84
-84
-84

query I rowsort
SELECT DISTINCT + - col1 * 94 FROM tab2 AS cor0
----
-4794
-6298
-7238

query I rowsort
SELECT DISTINCT - col2 * - 2 - col1 + - ( - - ( 44 ) ) FROM tab1 AS cor0
----
134
45
69

query I rowsort
SELECT DISTINCT ( + 29 ) FROM tab1
----
29

onlyif mysql # DIV for integer division: 
query II rowsort label-8863
SELECT ALL col1 AS col0, col0 DIV - 14 FROM tab0
----
1
-6
21
-6
81
-1

skipif mysql # not compatible
query II rowsort label-8863
SELECT ALL col1 AS col0, col0 / - 14 FROM tab0
----
1
-6
21
-6
81
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8864
SELECT ( - + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8864
SELECT ( - + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - 63 ) col2 FROM tab1
----
-63
-63
-63

query I rowsort
SELECT + ( + col1 ) + + 32 FROM tab2
----
109
83
99

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - 67 / + col1 IS NULL )
----

query I rowsort
SELECT DISTINCT - 2 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8869
SELECT DISTINCT - 24 * COUNT( * ) AS col0 FROM tab2, tab2 AS cor0
----
-216

skipif mysql # not compatible
query I rowsort label-8869
SELECT DISTINCT - 24 * COUNT ( * ) AS col0 FROM tab2, tab2 AS cor0
----
-216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + 48 + - - col0 col0 FROM tab0 cor0
----
222
242
78

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL >= col1 * - + 59
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8872
SELECT + col0 DIV 36 AS col2 FROM tab1
----
1
2
2

skipif mysql # not compatible
query I rowsort label-8872
SELECT + col0 / 36 AS col2 FROM tab1
----
1
2
2

onlyif mysql # DIV for integer division: 
query I rowsort label-8873
SELECT ALL 21 DIV + - col1 FROM tab1
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-8873
SELECT ALL 21 / + - col1 FROM tab1
----
-1
-4
0

query I rowsort
SELECT DISTINCT + col1 * + + ( - col0 ) AS col0 FROM tab0
----
-1215
-1827
-97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <> 10 * - col2 * - + 90
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8876
SELECT - SUM( DISTINCT - + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8876
SELECT - SUM ( DISTINCT - + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8877
SELECT ALL - 6 * col1 * + ( CAST( NULL AS SIGNED ) ) - + col0 - + col1 * - - col0 * - col2 * - col0 * - + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8877
SELECT ALL - 6 * col1 * + ( CAST ( NULL AS INTEGER ) ) - + col0 - + col1 * - - col0 * - col2 * - col0 * - + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 41 * col0 col0 FROM tab1 AS cor0
----
2091
3485
3731

query I rowsort
SELECT ALL + - 44 * + col2 * - col1 FROM tab1 AS cor0
----
12980
140624
59136

onlyif mysql # DIV for integer division: 
query I rowsort label-8880
SELECT DISTINCT - col1 DIV - col0 + + col0 DIV - ( col0 ) FROM tab0 AS cor0
----
-1
4

skipif mysql # not compatible
query I rowsort label-8880
SELECT DISTINCT - col1 / - col0 + + col0 / - ( col0 ) FROM tab0 AS cor0
----
-1
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col2 ) * col1 col2 FROM tab0 AS cor0
----
-210
-3807
-99

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( + col0 - + col2, + 94, - col1 - 39 * - col2 / + + 88 * - + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN - col0 AND + col2
----

query I rowsort
SELECT ALL + col2 + + - 71 AS col2 FROM tab0 AS cor0
----
-24
-61
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8885
SELECT - + SUM( + - 26 ) FROM tab1 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-8885
SELECT - + SUM ( + - 26 ) FROM tab1 AS cor0
----
78

query I rowsort
SELECT ALL + + col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN + col2 AND 38 * - col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8887
SELECT COUNT( DISTINCT 22 ), 58 AS col1 FROM tab2 AS cor0
----
1
58

skipif mysql # not compatible
query II rowsort label-8887
SELECT COUNT ( DISTINCT 22 ), 58 AS col1 FROM tab2 AS cor0
----
1
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8888
SELECT ALL - 67 DIV + + COUNT( * ) + - COUNT( * ) FROM tab1 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-8888
SELECT ALL - 67 / + + COUNT ( * ) + - COUNT ( * ) FROM tab1 AS cor0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-8889
SELECT + SUM( + col0 ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-8889
SELECT + SUM ( + col0 ) FROM tab0 AS cor0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-8890
SELECT - + MAX( - 95 ) FROM tab2 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-8890
SELECT - + MAX ( - 95 ) FROM tab2 AS cor0
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8891
SELECT - MIN( DISTINCT + + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8891
SELECT - MIN ( DISTINCT + + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 cor0
----
NULL

query I rowsort
SELECT ( - col2 ) AS col1 FROM tab1 AS cor0 WHERE NULL > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8893
SELECT - + COUNT( * ) * 81 col0 FROM tab0 cor0
----
-243

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8893
SELECT - + COUNT ( * ) * 81 col0 FROM tab0 cor0
----
-243

query I rowsort
SELECT ALL - 73 + + + col2 FROM tab1 AS cor0
----
-14
-5
23

query II rowsort
SELECT ALL + col0 + 92 + 4 - - + col0, - 65 - + col2 AS col1 FROM tab0 AS cor0
----
126
-112
270
-75
290
-164

onlyif mysql # aggregate syntax: 
query II rowsort label-8896
SELECT ALL + COUNT( * ) AS col1, 84 FROM tab2 cor0
----
3
84

skipif mysql # not compatible
query II rowsort label-8896
SELECT ALL + COUNT ( * ) AS col1, 84 FROM tab2 cor0
----
3
84

query I rowsort
SELECT DISTINCT - + col0 + - - col1 * col2 AS col0 FROM tab0 AS cor0
----
123
2
3792

onlyif mysql # aggregate syntax: 
query I rowsort label-8898
SELECT ALL - COUNT( * ) * - - COUNT( * ) + - 80 * + + 66 FROM tab2
----
-5289

skipif mysql # not compatible
query I rowsort label-8898
SELECT ALL - COUNT ( * ) * - - COUNT ( * ) + - 80 * + + 66 FROM tab2
----
-5289

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 22 BETWEEN + col0 AND NULL
----
87
21
10
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8900
SELECT + 92 + - col1, - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
15
NULL
25
NULL
41
NULL

skipif mysql # not compatible
query II rowsort label-8900
SELECT + 92 + - col1, - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
15
NULL
25
NULL
41
NULL

query I rowsort
SELECT col0 + - col1 * + 43 * + col1 AS col1 FROM tab0
----
-18876
-282108
54

query I rowsort
SELECT + 45 + - col0 FROM tab1
----
-40
-46
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8903
SELECT DISTINCT + COUNT( + CAST( NULL AS SIGNED ) ) + - COUNT( * ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8903
SELECT DISTINCT + COUNT ( + CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT + col0 * - 1 AS col1 FROM tab2 AS cor0
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 81 + col2 col0 FROM tab2 AS cor0
----
104
121
139

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL < - 82
----

query I rowsort
SELECT DISTINCT + ( - - 90 ) + - col0 FROM tab1 AS cor0
----
-1
39
5

query I rowsort
SELECT - col2 * 44 AS col1 FROM tab2 AS cor0
----
-1012
-1760
-2552

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col0 ) * + col0 * - col0 col2 FROM tab1 AS cor0
----
132651
614125
753571

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8910
SELECT ALL ( CAST( NULL AS DECIMAL ) ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8910
SELECT ALL ( CAST ( NULL AS REAL ) ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 BETWEEN + 72 AND - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + - col1 * - 84 AS col0 FROM tab2 AS cor0
----
4284
5628
6468

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8913
SELECT ALL col1, ( + + col0 ) * - 36 + - - 69 + - - CAST( NULL AS SIGNED ) * + 82 AS col0 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-8913
SELECT ALL col1, ( + + col0 ) * - 36 + - - 69 + - - CAST ( NULL AS INTEGER ) * + 82 AS col0 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

query II rowsort
SELECT DISTINCT + 5 AS col0, + 51 AS col1 FROM tab1 AS cor0
----
5
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8915
SELECT DISTINCT 31 * - + COUNT( * ) FROM tab2
----
-93

skipif mysql # not compatible
query I rowsort label-8915
SELECT DISTINCT 31 * - + COUNT ( * ) FROM tab2
----
-93

query I rowsort
SELECT + ( col1 ) AS col1 FROM tab1 WHERE NOT col2 <> - + col0 OR - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8917
SELECT ( - COUNT( ALL + col2 ) ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8917
SELECT ( - COUNT ( ALL + col2 ) ) AS col0 FROM tab1
----
-3

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - col0 BETWEEN 60 / - - 53 + + 25 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8919
SELECT - + MIN( ( col0 ) ) FROM tab2 cor0
----
-46

skipif mysql # not compatible
query I rowsort label-8919
SELECT - + MIN ( ( col0 ) ) FROM tab2 cor0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-8920
SELECT DISTINCT - COUNT( * ) * + MAX( col2 ) + - + 3 FROM tab1 AS cor0
----
-291

skipif mysql # not compatible
query I rowsort label-8920
SELECT DISTINCT - COUNT ( * ) * + MAX ( col2 ) + - + 3 FROM tab1 AS cor0
----
-291

query I rowsort
SELECT + 42 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8922
SELECT + COUNT( * ) * + + COUNT( * ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8922
SELECT + COUNT ( * ) * + + COUNT ( * ) FROM tab0 AS cor0
----
9

query I rowsort
SELECT DISTINCT 53 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
53

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - 66 IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

onlyif mysql # aggregate syntax: 
query I rowsort label-8925
SELECT COUNT( 42 ) * - + 43 AS col1 FROM tab1
----
-129

skipif mysql # not compatible
query I rowsort label-8925
SELECT COUNT ( 42 ) * - + 43 AS col1 FROM tab1
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-8926
SELECT ALL MAX( DISTINCT - 78 ) col1 FROM tab1
----
-78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8926
SELECT ALL MAX ( DISTINCT - 78 ) col1 FROM tab1
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8927
SELECT - col2 - CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE ( NOT ( ( NULL IS NOT NULL ) ) )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8927
SELECT - col2 - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE ( NOT ( ( NULL IS NOT NULL ) ) )
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 66 * - col0 * col0 AS col0 FROM tab0
----
14850
499554
620994

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8929
SELECT - - 44 + - + CAST( - 73 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
117
117
117

skipif mysql # not compatible
query I rowsort label-8929
SELECT - - 44 + - + CAST ( - 73 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
117
117
117

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + col2 col2 FROM tab0 cor0
----
196
62
97

query I rowsort
SELECT DISTINCT + ( - + 82 ) + col1 + - - col2 FROM tab2 AS cor0
----
-8
35
43

query I rowsort
SELECT + + col0 * + + col1 + - - 13 FROM tab2 AS cor0
----
2359
4941
5038

onlyif mysql # aggregate syntax: 
query I rowsort label-8933
SELECT - - ( COUNT( * ) ) * - SUM( ALL - col1 ) AS col2 FROM tab0 cor0
----
309

skipif mysql # not compatible
query I rowsort label-8933
SELECT - - ( COUNT ( * ) ) * - SUM ( ALL - col1 ) AS col2 FROM tab0 cor0
----
309

query I rowsort
SELECT DISTINCT - 86 - - 58 FROM tab1 cor0
----
-28

query I rowsort
SELECT ALL - col2 + + + col2 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL - ( - + ( col1 ) ) - + + 84 * + 94 AS col2 FROM tab0
----
-7815
-7875
-7895

query II rowsort
SELECT + 62 AS col0, 95 - + col1 + 22 AS col1 FROM tab2
----
62
40
62
50
62
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8938
SELECT - 79 AS col2, + 37 DIV + - MIN( ALL - 91 ) FROM tab0
----
-79
0

skipif mysql # not compatible
query II rowsort label-8938
SELECT - 79 AS col2, + 37 / + - MIN ( ALL - 91 ) FROM tab0
----
-79
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8939
SELECT DISTINCT - - COUNT( * ) col1 FROM tab1 WHERE NOT NULL > NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8939
SELECT DISTINCT - - COUNT ( * ) col1 FROM tab1 WHERE NOT NULL > NULL
----
0

query I rowsort
SELECT DISTINCT 35 * col2 AS col2 FROM tab0
----
1645
3465
350

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8941
SELECT DISTINCT - col1 * col2, CAST( NULL AS SIGNED ) - + + ( - 57 ) AS col0 FROM tab1
----
-1344
NULL
-295
NULL
-3196
NULL

skipif mysql # not compatible
query II rowsort label-8941
SELECT DISTINCT - col1 * col2, CAST ( NULL AS INTEGER ) - + + ( - 57 ) AS col0 FROM tab1
----
-1344
NULL
-295
NULL
-3196
NULL

query I rowsort
SELECT - col1 - - ( + - 46 ) * + - col1 AS col1 FROM tab2
----
2295
3015
3465

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8943
SELECT DISTINCT col1 - + - col0 - + col2 * - col0 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE ( + col0 * col1 * - CAST( 28 AS DECIMAL ) IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8943
SELECT DISTINCT col1 - + - col0 - + col2 * - col0 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE ( + col0 * col1 * - CAST ( 28 AS REAL ) IS NOT NULL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8944
SELECT DISTINCT AVG ( ALL - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8944
SELECT DISTINCT AVG ( ALL - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8945
SELECT - 89 * COUNT( * ) FROM tab2 cor0 WHERE + ( + col2 ) + + + col2 * col1 * 86 IS NOT NULL
----
-267

skipif mysql # not compatible
query I rowsort label-8945
SELECT - 89 * COUNT ( * ) FROM tab2 cor0 WHERE + ( + col2 ) + + + col2 * col1 * 86 IS NOT NULL
----
-267

query I rowsort
SELECT + 38 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8947
SELECT + SUM( ALL 92 ) AS col1 FROM tab1
----
276

skipif mysql # not compatible
query I rowsort label-8947
SELECT + SUM ( ALL 92 ) AS col1 FROM tab1
----
276

onlyif mysql # aggregate syntax: 
query I rowsort label-8948
SELECT + + 7 * ( + + COUNT( - 75 ) ) * - + 5 AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-315

skipif mysql # not compatible
query I rowsort label-8948
SELECT + + 7 * ( + + COUNT ( - 75 ) ) * - + 5 AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-315

query I rowsort
SELECT ALL - col1 AS col0 FROM tab0 AS cor0 WHERE + ( + ( - col2 ) ) + + 19 IS NOT NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8950
SELECT ALL + SUM( + + ( + - ( 97 ) ) ) FROM tab0 cor0
----
-291

skipif mysql # not compatible
query I rowsort label-8950
SELECT ALL + SUM ( + + ( + - ( 97 ) ) ) FROM tab0 cor0
----
-291

query I rowsort
SELECT 38 * + col2 FROM tab1 AS cor0
----
2242
2584
3648

onlyif mysql # aggregate syntax: 
query I rowsort label-8952
SELECT - MAX( - 65 ) * - - COUNT( * ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-8952
SELECT - MAX ( - 65 ) * - - COUNT ( * ) FROM tab2 AS cor0
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-8953
SELECT ALL - ( - - COUNT( * ) ) AS col0 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8953
SELECT ALL - ( - - COUNT ( * ) ) AS col0 FROM tab0 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8954
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST( + + col2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8954
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST ( + + col2 AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 <= col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - - 56 AS col0 FROM tab2 AS cor0
----
56
56
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8957
SELECT 90 * + COUNT( * ) * + 46 AS col2 FROM tab2 AS cor0
----
12420

skipif mysql # not compatible
query I rowsort label-8957
SELECT 90 * + COUNT ( * ) * + 46 AS col2 FROM tab2 AS cor0
----
12420

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8958
SELECT DISTINCT - col2 AS col0 FROM tab2 WHERE NOT - + col1 * - + col2 + col1 * - + CAST( NULL AS DECIMAL ) IS NOT NULL
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-8958
SELECT DISTINCT - col2 AS col0 FROM tab2 WHERE NOT - + col1 * - + col2 + col1 * - + CAST ( NULL AS REAL ) IS NOT NULL
----
-23
-40
-58

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT + col1 / + col2 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8960
SELECT DISTINCT - MIN( + 62 ) FROM tab1
----
-62

skipif mysql # not compatible
query I rowsort label-8960
SELECT DISTINCT - MIN ( + 62 ) FROM tab1
----
-62

query III rowsort
SELECT * FROM tab0 WHERE NOT 1 <= + + ( + col0 )
----

query II rowsort
SELECT 62 + + col1 * + 94, 10 AS col2 FROM tab2 AS cor0
----
4856
10
6360
10
7300
10

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8964
SELECT ALL - MIN( + 14 ) AS col1 FROM tab0
----
-14

skipif mysql # not compatible
query I rowsort label-8964
SELECT ALL - MIN ( + 14 ) AS col1 FROM tab0
----
-14

query I rowsort
SELECT 61 + - col2 FROM tab0
----
-38
14
51

query III rowsort
SELECT * FROM tab1 WHERE NOT - 95 * + col0 >= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) <= + 81
----

query I rowsort
SELECT col0 - + 82 AS col0 FROM tab2
----
-18
-36
-7

query I rowsort
SELECT DISTINCT 78 + col0 AS col0 FROM tab0 WHERE NOT ( col2 / + col1 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8970
SELECT SUM( DISTINCT + 47 ) AS col0 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-8970
SELECT SUM ( DISTINCT + 47 ) AS col0 FROM tab1
----
47

query I rowsort
SELECT ALL + 16 * 32 FROM tab1
----
512
512
512

query I rowsort
SELECT + col1 + + 98 * 55 FROM tab1
----
5395
5404
5437

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 * col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col1 AS col2 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN 88 * ( - 74 ) + col2 * col0 AND ( + col1 )
----

query I rowsort
SELECT + ( ( - 56 ) ) * + 46 FROM tab2 WHERE ( NULL ) BETWEEN ( + 9 ) AND col1
----

query I rowsort
SELECT - 47 * 32 AS col0 FROM tab2
----
-1504
-1504
-1504

onlyif mysql # aggregate syntax: 
query I rowsort label-8977
SELECT COUNT( * ) * COUNT( * ) FROM tab0 WHERE ( + col2 ) > - col2
----
9

skipif mysql # not compatible
query I rowsort label-8977
SELECT COUNT ( * ) * COUNT ( * ) FROM tab0 WHERE ( + col2 ) > - col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8978
SELECT ALL - 84 * COUNT( * ) + + COUNT( * ) FROM tab2 WHERE ( 43 * 93 ) = ( + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-8978
SELECT ALL - 84 * COUNT ( * ) + + COUNT ( * ) FROM tab2 WHERE ( 43 * 93 ) = ( + col0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8979
SELECT ALL SUM( DISTINCT + 53 ) AS col2 FROM tab1 WHERE col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8979
SELECT ALL SUM ( DISTINCT + 53 ) AS col2 FROM tab1 WHERE col0 IS NULL
----
NULL

query I rowsort
SELECT + 20 - 50 AS col2 FROM tab1
----
-30
-30
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-8981
SELECT ALL ( - 22 ) DIV + col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8981
SELECT ALL ( - 22 ) / + col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8982
SELECT COUNT( ALL col0 ) AS col2 FROM tab0 WHERE NOT col0 + 48 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8982
SELECT COUNT ( ALL col0 ) AS col2 FROM tab0 WHERE NOT col0 + 48 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8983
SELECT 69 * + COUNT( * ) FROM tab1
----
207

skipif mysql # not compatible
query I rowsort label-8983
SELECT 69 * + COUNT ( * ) FROM tab1
----
207

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NOT ( - col2 ) BETWEEN - col0 / + col2 AND ( col0 )
----
23
40
58

query I rowsort
SELECT 7 * 18 AS col2 FROM tab2
----
126
126
126

onlyif mysql # aggregate syntax: 
query I rowsort label-8986
SELECT SUM( col1 ) * 54 AS col2 FROM tab0
----
5562

skipif mysql # not compatible
query I rowsort label-8986
SELECT SUM ( col1 ) * 54 AS col2 FROM tab0
----
5562

query I rowsort
SELECT ( - 96 ) * col2 AS col0 FROM tab2
----
-2208
-3840
-5568

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col2 ) < col2 + col1 * col2
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 69 * - 10 + - col1 * col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8990
SELECT DISTINCT - ( - SUM( DISTINCT - col1 ) ) AS col2 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-8990
SELECT DISTINCT - ( - SUM ( DISTINCT - col1 ) ) AS col2 FROM tab0 AS cor0
----
-103

query I rowsort
SELECT + col2 * 21 AS col2 FROM tab0 AS cor0
----
2079
210
987

onlyif mysql # aggregate syntax: 
query I rowsort label-8992
SELECT DISTINCT + SUM( + 30 ) AS col0 FROM tab2 cor0
----
90

skipif mysql # not compatible
query I rowsort label-8992
SELECT DISTINCT + SUM ( + 30 ) AS col0 FROM tab2 cor0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8993
SELECT + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT + 13 + - col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8993
SELECT + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT + 13 + - col2 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT 59 + - 39 * + 12 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
-409

query I rowsort
SELECT - col2 FROM tab1 WHERE NOT + col1 + + 96 BETWEEN NULL AND ( - col1 )
----
-59
-68
-96

query I rowsort
SELECT + 13 FROM ( tab1 AS cor0 CROSS JOIN tab0 )
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8997
SELECT - 51 * - CAST( NULL AS DECIMAL ) col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8997
SELECT - 51 * - CAST ( NULL AS REAL ) col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 74 AS col2 FROM tab2 cor0 WHERE NULL = col1
----

query I rowsort
SELECT DISTINCT + 35 FROM tab1 AS cor0 WHERE col2 < ( + col2 )
----

query I rowsort
SELECT + col0 AS col2 FROM tab2 AS cor0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9001
SELECT DISTINCT + - MIN( 60 ) AS col0 FROM tab0 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-9001
SELECT DISTINCT + - MIN ( 60 ) AS col0 FROM tab0 AS cor0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-9002
SELECT - COUNT( * ) * + 99 FROM tab1 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-9002
SELECT - COUNT ( * ) * + 99 FROM tab1 AS cor0
----
-297

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col1 * - 60 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 22 col0 FROM tab0 AS cor0
----
22

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + col0 * - 29 - - col2 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 46 * + col0 + col2 * - 57 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + + ( 89 ) FROM tab2 AS cor0
----
89
89
89

query I rowsort
SELECT ALL - + 69 AS col2 FROM tab1 cor0
----
-69
-69
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-9009
SELECT - COUNT( * ) * 3 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9009
SELECT - COUNT ( * ) * 3 FROM tab1 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9010
SELECT DISTINCT - MAX( ALL col1 ) AS col0 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-9010
SELECT DISTINCT - MAX ( ALL col1 ) AS col0 FROM tab2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9011
SELECT ALL + ( - - SUM( DISTINCT - 55 ) ) AS col1 FROM tab0
----
-55

skipif mysql # not compatible
query I rowsort label-9011
SELECT ALL + ( - - SUM ( DISTINCT - 55 ) ) AS col1 FROM tab0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-9012
SELECT 41 * COUNT( * ) AS col2 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
123

skipif mysql # not compatible
query I rowsort label-9012
SELECT 41 * COUNT ( * ) AS col2 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
123

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT ( 24 + 68 ) IS NULL
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9014
SELECT ALL + 75 AS col0 FROM tab1 AS cor0 WHERE NULL < CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9014
SELECT ALL + 75 AS col0 FROM tab1 AS cor0 WHERE NULL < CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 8 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) < 4
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 1 <= NULL
----

query I rowsort
SELECT ALL + col0 + 69 + + col2 * + col2 FROM tab2 AS cor0
----
1733
3508
644

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9019
SELECT COUNT( DISTINCT CAST( + 26 AS SIGNED ) ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
1

skipif mysql # not compatible
query I rowsort label-9019
SELECT COUNT ( DISTINCT CAST ( + 26 AS INTEGER ) ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
1

query I rowsort
SELECT ( - - 78 ) + col0 AS col2 FROM tab0
----
165
175
93

query I rowsort
SELECT + ( 72 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT 33 NOT IN ( 6 )
----

query I rowsort
SELECT + 16 FROM tab2 WHERE + col0 IS NULL
----

query I rowsort
SELECT - col1 + 6 FROM tab1 AS cor0
----
-41
-8
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9025
SELECT - - COUNT( * ), + COUNT( * ) FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-9025
SELECT - - COUNT ( * ), + COUNT ( * ) FROM tab0 AS cor0
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9026
SELECT DISTINCT - col2 + - 4 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-9026
SELECT DISTINCT - col2 + - 4 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT DISTINCT - + col2 + + col1 + col0 AS col1 FROM tab2 cor0
----
101
74
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + 55 AS col0, + ( 78 ) + col0 col2 FROM tab2 cor0
----
55
124
55
142
55
153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9029
SELECT DISTINCT - col2 + CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) * 25 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9029
SELECT DISTINCT - col2 + CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) * 25 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9030
SELECT DISTINCT 60 + + - 55 - - col1 DIV - col0 FROM tab2 AS cor0
----
4
5

skipif mysql # not compatible
query I rowsort label-9030
SELECT DISTINCT 60 + + - 55 - - col1 / - col0 FROM tab2 AS cor0
----
4
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9031
SELECT ALL COUNT( * ) - ( 32 ) * 89 col0 FROM tab1 AS cor0
----
-2845

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9031
SELECT ALL COUNT ( * ) - ( 32 ) * 89 col0 FROM tab1 AS cor0
----
-2845

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 17 <= ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 92 + - - col0 AS col1 FROM tab0 AS cor0
----
-5
-77
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 col2 FROM tab0 AS cor0 WHERE + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9035
SELECT ALL CAST( NULL AS SIGNED ) - - 0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9035
SELECT ALL CAST ( NULL AS INTEGER ) - - 0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 - + - col0 + + - col0 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT 77 - - col0 AS col2 FROM tab2
----
123
141
152

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) IS NOT NULL AND NOT NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + 64 * + - ( col0 ) * - col1 + col2 / + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 53 AS col2 FROM tab1 cor0
----
53
53
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 74 col2 FROM tab1
----
74
74
74

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + col0 ) <> col0 + - ( + col0 ) * ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9043
SELECT ALL CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9043
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9044
SELECT - col1 DIV col1 FROM tab1 WHERE NOT col0 IN ( 53 )
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9044
SELECT - col1 / col1 FROM tab1 WHERE NOT col0 IN ( 53 )
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9045
SELECT + 62 DIV col0 * - 96 + + - col1 FROM tab1 AS cor0
----
-110
-47
-5

skipif mysql # not compatible
query I rowsort label-9045
SELECT + 62 / col0 * - 96 + + - col1 FROM tab1 AS cor0
----
-110
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9046
SELECT + SUM( DISTINCT - col1 ) AS col0 FROM tab1 cor0
----
-66

skipif mysql # not compatible
query I rowsort label-9046
SELECT + SUM ( DISTINCT - col1 ) AS col0 FROM tab1 cor0
----
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col0, - 52 FROM tab2 AS cor0
----
23
-52
40
-52
58
-52

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9048
SELECT - MAX( ALL + col0 ) + + MAX( DISTINCT 4 ) FROM tab1 AS cor0 WHERE NOT col0 * - ( + + 8 ) BETWEEN - CAST( NULL AS DECIMAL ) AND - 32
----
NULL

skipif mysql # not compatible
query I rowsort label-9048
SELECT - MAX ( ALL + col0 ) + + MAX ( DISTINCT 4 ) FROM tab1 AS cor0 WHERE NOT col0 * - ( + + 8 ) BETWEEN - CAST ( NULL AS REAL ) AND - 32
----
NULL

query I rowsort
SELECT - 14 FROM tab0 WHERE NOT NULL IN ( 72, - col2, col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9050
SELECT 40 * + COUNT( * ) FROM tab1
----
120

skipif mysql # not compatible
query I rowsort label-9050
SELECT 40 * + COUNT ( * ) FROM tab1
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-9051
SELECT + ( MIN( ALL 79 ) ) + + - 1 col2 FROM tab0 AS cor0
----
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9051
SELECT + ( MIN ( ALL 79 ) ) + + - 1 col2 FROM tab0 AS cor0
----
78

query I rowsort
SELECT - 86 * 90 + + col2 AS col1 FROM tab0 AS cor0
----
-7641
-7693
-7730

onlyif mysql # aggregate syntax: 
query I rowsort label-9053
SELECT ALL 6 + - + COUNT( - col1 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9053
SELECT ALL 6 + - + COUNT ( - col1 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9054
SELECT DISTINCT MIN( DISTINCT + 42 ) AS col0 FROM tab1
----
42

skipif mysql # not compatible
query I rowsort label-9054
SELECT DISTINCT MIN ( DISTINCT + 42 ) AS col0 FROM tab1
----
42

query I rowsort
SELECT col2 + - col1 + + col1 + + + 80 AS col2 FROM tab0 AS cor0 WHERE NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9056
SELECT ALL MIN( DISTINCT col0 ) + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-9056
SELECT ALL MIN ( DISTINCT col0 ) + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
18

query I rowsort
SELECT 64 * - 32 + 38 + - - 5 FROM tab1 AS cor0
----
-2005
-2005
-2005

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT ( - col0 ) IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT ( + - col2 ) IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col2 * - col0 AS col2 FROM tab2 AS cor0 WHERE NOT - col2 + + + 83 * + 69 * + ( - col2 ) IN ( - - col2 )
----
-1058
-2560
-4350

query I rowsort
SELECT col2 AS col0 FROM tab0 AS cor0 WHERE NULL BETWEEN col0 AND - + col2
----

query II rowsort
SELECT col0 + - col1, - col1 * + - 15 AS col1 FROM tab1 AS cor0
----
37
210
44
705
80
75

query I rowsort
SELECT ALL - 20 + - col2 FROM tab1 AS cor0
----
-116
-79
-88

query III rowsort
SELECT * FROM tab2 WHERE - - col1 BETWEEN ( col1 ) AND col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9065
SELECT DISTINCT - COUNT( * ) - + 52 + MAX( - - CAST( 41 AS SIGNED ) ) + + 30 AS col1 FROM tab2
----
16

skipif mysql # not compatible
query I rowsort label-9065
SELECT DISTINCT - COUNT ( * ) - + 52 + MAX ( - - CAST ( 41 AS INTEGER ) ) + + 30 AS col1 FROM tab2
----
16

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9066
SELECT ALL * FROM tab2 WHERE - col2 * + ( + CAST( NULL AS DECIMAL ) ) / 66 + + - 43 - - - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9066
SELECT ALL * FROM tab2 WHERE - col2 * + ( + CAST ( NULL AS REAL ) ) / 66 + + - 43 - - - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col0 + + - col2 AS col0 FROM tab0
----
-2
-32
77

onlyif mysql # DIV for integer division: 
query I rowsort label-9068
SELECT DISTINCT 27 DIV + - col2 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-9068
SELECT DISTINCT 27 / + - col2 FROM tab2
----
-1
0

query I rowsort
SELECT 46 * - col0 FROM tab2
----
-2116
-2944
-3450

query I rowsort
SELECT col0 * 72 AS col2 FROM tab2
----
3312
4608
5400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9071
SELECT ALL + CAST( - CAST( - - col2 AS SIGNED ) AS SIGNED ) * - col2 AS col2 FROM tab0
----
100
2209
9801

skipif mysql # not compatible
query I rowsort label-9071
SELECT ALL + CAST ( - CAST ( - - col2 AS INTEGER ) AS INTEGER ) * - col2 AS col2 FROM tab0
----
100
2209
9801

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9072
SELECT ALL CAST( NULL AS SIGNED ) + - col2 AS col1 FROM tab2 WHERE NOT + 69 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9072
SELECT ALL CAST ( NULL AS INTEGER ) + - col2 AS col1 FROM tab2 WHERE NOT + 69 IS NOT NULL
----

query II rowsort
SELECT col0, - 43 AS col2 FROM tab0 AS cor0
----
15
-43
87
-43
97
-43

query I rowsort
SELECT ALL + col2 * - col0 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> NULL
----

query II rowsort
SELECT DISTINCT 85 / col2, - col0 * - + col2 AS col2 FROM tab2 WHERE NOT NULL >= - col2 * - + col0 / + + col1
----

query I rowsort
SELECT + 25 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9077
SELECT - CAST( - - col2 AS SIGNED ) AS col0, col2 AS col1 FROM tab0
----
-10
10
-47
47
-99
99

skipif mysql # not compatible
query II rowsort label-9077
SELECT - CAST ( - - col2 AS INTEGER ) AS col0, col2 AS col1 FROM tab0
----
-10
10
-47
47
-99
99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 91 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9079
SELECT ALL + + COUNT( * ) + - - COUNT( * ) FROM tab2 cor0
----
6

skipif mysql # not compatible
query I rowsort label-9079
SELECT ALL + + COUNT ( * ) + - - COUNT ( * ) FROM tab2 cor0
----
6

query I rowsort
SELECT - col0 AS col2 FROM tab2 AS cor0 WHERE NOT 20 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9081
SELECT ALL 1 DIV - col0 + - + 31 AS col0 FROM tab1 cor0
----
-31
-31
-31

skipif mysql # not compatible
query I rowsort label-9081
SELECT ALL 1 / - col0 + - + 31 AS col0 FROM tab1 cor0
----
-31
-31
-31

query II rowsort
SELECT - col2 + - col0, col1 AS col2 FROM tab0 cor0
----
-196
1
-62
81
-97
21

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN + 35 * 20 * - - 0 + + + col0 * - + 97 + - + col0 AND ( col2 - + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9084
SELECT DISTINCT - COUNT( ( + - 90 ) ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9084
SELECT DISTINCT - COUNT ( ( + - 90 ) ) AS col2 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9085
SELECT DISTINCT - 34 * - AVG ( - + col1 ) + - 96 + - - 80 + COUNT( * ) AS col2 FROM tab1 WHERE NOT + 74 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9085
SELECT DISTINCT - 34 * - AVG ( - + col1 ) + - 96 + - - 80 + COUNT ( * ) AS col2 FROM tab1 WHERE NOT + 74 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9086
SELECT - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9086
SELECT - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * + 77 FROM tab2
----
3542
4928
5775

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 27 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9089
SELECT ALL + + COUNT( * ) AS col2 FROM tab2 WHERE - + 29 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9089
SELECT ALL + + COUNT ( * ) AS col2 FROM tab2 WHERE - + 29 IS NULL
----
0

query I rowsort
SELECT DISTINCT - col0 * - - 71 AS col1 FROM tab2
----
-3266
-4544
-5325

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 / + col0 / + 63 / - - col2 / col1 + - col1 <= NULL
----

query I rowsort
SELECT ALL + 56 + - - col2 + + + col0 FROM tab2 cor0
----
125
160
189

query I rowsort
SELECT + + 16 + - 82 AS col1 FROM tab2 AS cor0
----
-66
-66
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9094
SELECT DISTINCT CAST( - 54 AS SIGNED ) + col2 AS col0 FROM tab1 AS cor0
----
14
42
5

skipif mysql # not compatible
query I rowsort label-9094
SELECT DISTINCT CAST ( - 54 AS INTEGER ) + col2 AS col0 FROM tab1 AS cor0
----
14
42
5

query I rowsort
SELECT col1 + + + col2 AS col2 FROM tab2
----
117
125
74

query I rowsort
SELECT + ( 15 ) + + - col1 AS col2 FROM tab1
----
-32
1
10

query I rowsort
SELECT 41 * col0 + + col1 AS col1 FROM tab2
----
1937
2701
3142

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9098
SELECT COUNT( * ) DIV + + SUM( col2 ) + 85 FROM tab1
----
85

skipif mysql # not compatible
query I rowsort label-9098
SELECT COUNT ( * ) / + + SUM ( col2 ) + 85 FROM tab1
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9099
SELECT DISTINCT - col1 AS col0 FROM tab2 WHERE NOT NULL <> CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9099
SELECT DISTINCT - col1 AS col0 FROM tab2 WHERE NOT NULL <> CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9100
SELECT ALL + - CAST( NULL AS SIGNED ) col2, col0 AS col2 FROM tab0 cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9100
SELECT ALL + - CAST ( NULL AS INTEGER ) col2, col0 AS col2 FROM tab0 cor0
----
NULL
15
NULL
87
NULL
97

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9101
SELECT + col1 col2, CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9101
SELECT + col1 col2, CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

query II rowsort
SELECT DISTINCT + + col1, + col1 AS col0 FROM tab2 AS cor0
----
51
51
67
67
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9103
SELECT ALL + - MAX( DISTINCT - - col1 ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-9103
SELECT ALL + - MAX ( DISTINCT - - col1 ) FROM tab1 AS cor0
----
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 77 ) col1 FROM tab1 AS cor0
----
77
77
77

onlyif mysql # DIV for integer division: 
query I rowsort label-9105
SELECT ALL - - col2 * col0 DIV + col0 - - + col1 AS col0 FROM tab0 AS cor0
----
100
128
31

skipif mysql # not compatible
query I rowsort label-9105
SELECT ALL - - col2 * col0 / + col0 - - + col1 AS col0 FROM tab0 AS cor0
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9106
SELECT DISTINCT SUM( + col0 ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-9106
SELECT DISTINCT SUM ( + col0 ) FROM tab1
----
227

query I rowsort
SELECT ALL + + col1 + + - col1 AS col0 FROM tab1 WHERE NOT ( ( NULL ) IS NOT NULL )
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9108
SELECT DISTINCT 36 * - MIN( + col2 ) AS col1 FROM tab2
----
-828

skipif mysql # not compatible
query I rowsort label-9108
SELECT DISTINCT 36 * - MIN ( + col2 ) AS col1 FROM tab2
----
-828

query III rowsort
SELECT * FROM tab0 WHERE NOT + 23 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9110
SELECT ALL COUNT( * ) AS col0 FROM tab2, tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9110
SELECT ALL COUNT ( * ) AS col0 FROM tab2, tab0 AS cor0
----
9

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + 39 / + + 47 NOT BETWEEN - 46 AND + 94 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9112
SELECT + 39 * 7 * - 98 - COUNT( ALL col0 ) FROM tab2 WHERE NOT ( col1 / - + col2 ) <= NULL
----
-26754

skipif mysql # not compatible
query I rowsort label-9112
SELECT + 39 * 7 * - 98 - COUNT ( ALL col0 ) FROM tab2 WHERE NOT ( col1 / - + col2 ) <= NULL
----
-26754

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9113
SELECT + 62 * + CAST( + + col0 AS SIGNED ) FROM tab1 AS cor0
----
3162
5270
5642

skipif mysql # not compatible
query I rowsort label-9113
SELECT + 62 * + CAST ( + + col0 AS INTEGER ) FROM tab1 AS cor0
----
3162
5270
5642

query I rowsort
SELECT ALL - 45 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 71160abf09589695379a70558726f0ba

onlyif mysql # aggregate syntax: 
query I rowsort label-9115
SELECT ALL - ( COUNT( * ) ) * 1 AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9115
SELECT ALL - ( COUNT ( * ) ) * 1 AS col1 FROM tab0
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - 39 AND ( col1 )
----

query I rowsort
SELECT DISTINCT col0 * - - 26 + - + col0 * col1 AS col1 FROM tab2 AS cor0
----
-1150
-3075
-3264

query II rowsort
SELECT + - 25 AS col0, + 69 AS col0 FROM tab0 AS cor0
----
-25
69
-25
69
-25
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9119
SELECT - CAST( - + COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9119
SELECT - CAST ( - + COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT NULL < ( 24 ) )
----

query II rowsort
SELECT ALL - 36, 18 / + 5 FROM tab2 AS cor0 WHERE ( ( NULL ) IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9122
SELECT - 2 * - COUNT( DISTINCT col1 ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9122
SELECT - 2 * - COUNT ( DISTINCT col1 ) FROM tab1 AS cor0
----
6

query III rowsort
SELECT * FROM tab2 WHERE + col0 <= + + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 95 + - 11 * - col0 FROM tab2
----
411
609
730

onlyif mysql # DIV for integer division: 
query I rowsort label-9125
SELECT ALL - col0 * col2 DIV - col0 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-9125
SELECT ALL - col0 * col2 / - col0 FROM tab1
----
59
68
96

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN + col1 AND NULL
----

query I rowsort
SELECT ALL ( + col2 ) + + - col1 * - 55 - + 32 + + 71 AS col0 FROM tab2 AS cor0
----
2867
3782
4314

query I rowsort
SELECT + 58 + + col0 AS col2 FROM tab2 AS cor0
----
104
122
133

onlyif mysql # aggregate syntax: 
query I rowsort label-9129
SELECT + - COUNT( * ) FROM tab2 AS cor0 WHERE + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9129
SELECT + - COUNT ( * ) FROM tab2 AS cor0 WHERE + col0 IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - ( - 70 ) + - col2 - + 45 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9131
SELECT DISTINCT 52 + + 23 AS col0, CAST( 89 AS SIGNED ) FROM tab0 AS cor0
----
75
89

skipif mysql # not compatible
query II rowsort label-9131
SELECT DISTINCT 52 + + 23 AS col0, CAST ( 89 AS INTEGER ) FROM tab0 AS cor0
----
75
89

query I rowsort
SELECT ALL + col2 * 24 - - + col2 FROM tab2 AS cor0
----
1000
1450
575

onlyif mysql # aggregate syntax: 
query I rowsort label-9133
SELECT ALL COUNT( * ) - - 37 FROM tab0
----
40

skipif mysql # not compatible
query I rowsort label-9133
SELECT ALL COUNT ( * ) - - 37 FROM tab0
----
40

query I rowsort
SELECT DISTINCT - 68 - + col2 FROM tab2
----
-108
-126
-91

query I rowsort
SELECT - 82 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c

query I rowsort
SELECT - 3 + - col1 AS col2 FROM tab2 AS cor0
----
-54
-70
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9137
SELECT - - CAST( NULL AS SIGNED ) * + col2 * + + col0 + - 97 + 77 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9137
SELECT - - CAST ( NULL AS INTEGER ) * + col2 * + + col0 + - 97 + 77 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 - + 43 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
-22
-42
38

query II rowsort
SELECT col1, 63 FROM tab1 AS cor0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9140
SELECT DISTINCT SUM( + col1 ) AS col2 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-9140
SELECT DISTINCT SUM ( + col1 ) AS col2 FROM tab1 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9141
SELECT ALL - MAX( + + 37 ) AS col2 FROM tab2 AS cor0 WHERE col0 >= + - ( - - col1 )
----
-37

skipif mysql # not compatible
query I rowsort label-9141
SELECT ALL - MAX ( + + 37 ) AS col2 FROM tab2 AS cor0 WHERE col0 >= + - ( - - col1 )
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-9142
SELECT ALL 72 AS col1, COUNT( * ) FROM tab1
----
72
3

skipif mysql # not compatible
query II rowsort label-9142
SELECT ALL 72 AS col1, COUNT ( * ) FROM tab1
----
72
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 65 col1 FROM tab1
----
65
65
65

query I rowsort
SELECT DISTINCT + ( col1 ) * - - col2 AS col1 FROM tab2
----
1173
3080
3886

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 59 BETWEEN col0 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9146
SELECT + SUM( - 99 ) DIV - + COUNT( * ) FROM tab2 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-9146
SELECT + SUM ( - 99 ) / - + COUNT ( * ) FROM tab2 AS cor0
----
99

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9148
SELECT ALL MIN( - col1 ) FROM tab0 WHERE NOT - - 2 * - col1 * + - col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9148
SELECT ALL MIN ( - col1 ) FROM tab0 WHERE NOT - - 2 * - col1 * + - col0 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9149
SELECT ALL - ( + - COUNT( * ) ) AS col2 FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9149
SELECT ALL - ( + - COUNT ( * ) ) AS col2 FROM tab0 WHERE NULL IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 30 + + 15 - + - col0 + + col1 * + + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - - 53 * + col0 * - col2 * - + 62 AS col0 FROM tab0 cor0
----
2316630
2858820
31555458

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - 18 * col2 + - col1 - + + 32 col2 FROM tab1 AS cor0
----
-1184
-1394
-1825

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) < + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9154
SELECT DISTINCT + + MIN( - 48 ) + 46 * + 90 + + + 42 FROM tab0 cor0
----
4134

skipif mysql # not compatible
query I rowsort label-9154
SELECT DISTINCT + + MIN ( - 48 ) + 46 * + 90 + + + 42 FROM tab0 cor0
----
4134

onlyif mysql # aggregate syntax: 
query I rowsort label-9155
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab2 cor0 WHERE ( 17 * - col1 ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9155
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab2 cor0 WHERE ( 17 * - col1 ) IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9156
SELECT + MAX( col2 ) * + + COUNT( * ) FROM tab1
----
288

skipif mysql # not compatible
query I rowsort label-9156
SELECT + MAX ( col2 ) * + + COUNT ( * ) FROM tab1
----
288

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9157
SELECT DISTINCT * FROM tab1 WHERE NOT + ( ( + 57 ) ) < CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9157
SELECT DISTINCT * FROM tab1 WHERE NOT + ( ( + 57 ) ) < CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL 53 * + col1 FROM tab0
----
1113
4293
53

onlyif mysql # aggregate syntax: 
query II rowsort label-9159
SELECT - COUNT( * ) * - SUM( + + 25 ), - MIN( DISTINCT + 9 ) AS col1 FROM tab1
----
225
-9

skipif mysql # not compatible
query II rowsort label-9159
SELECT - COUNT ( * ) * - SUM ( + + 25 ), - MIN ( DISTINCT + 9 ) AS col1 FROM tab1
----
225
-9

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) > + col2
----

query I rowsort
SELECT DISTINCT - ( - 72 ) * - col0 * - + 63 FROM tab0
----
394632
439992
68040

query I rowsort
SELECT col0 * + - 40 FROM tab1
----
-2040
-3400
-3640

query III rowsort
SELECT * FROM tab1 WHERE + + 32 <= + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col2 + + - col1 AS col0 FROM tab2 cor0
----
-28
-37
-9

query I rowsort
SELECT ALL + col2 + + col0 + - col1 FROM tab2 AS cor0
----
18
27
66

onlyif mysql # aggregate syntax: 
query II rowsort label-9166
SELECT COUNT( * ) AS col1, + COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
9
9

skipif mysql # not compatible
query II rowsort label-9166
SELECT COUNT ( * ) AS col1, + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
9
9

query I rowsort
SELECT + col2 * + col1 FROM tab1 WHERE 75 <> + col2 + + 65 + + col1
----
1344
295
3196

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 >= - col2 * - - col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9169
SELECT DISTINCT + 96 DIV COUNT( * ) DIV - COUNT( * ) FROM tab2 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-9169
SELECT DISTINCT + 96 / COUNT ( * ) / - COUNT ( * ) FROM tab2 AS cor0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9170
SELECT ALL - - 37 + - - col1, 10, + 99 * - CAST( 3 AS SIGNED ) + + - col1 + col0 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9170
SELECT ALL - - 37 + - - col1, 10, + 99 * - CAST ( 3 AS INTEGER ) + + - col1 + col0 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9171
SELECT DISTINCT + col2 + col2 + - + col1 DIV - col0 FROM tab0 WHERE NULL IS NULL
----
198
20
99

skipif mysql # not compatible
query I rowsort label-9171
SELECT DISTINCT + col2 + col2 + - + col1 / - col0 FROM tab0 WHERE NULL IS NULL
----
198
20
99

query III rowsort
SELECT ALL * FROM tab0 WHERE - 77 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9173
SELECT + MIN( + col0 ) * - COUNT( * ) FROM tab0
----
-45

skipif mysql # not compatible
query I rowsort label-9173
SELECT + MIN ( + col0 ) * - COUNT ( * ) FROM tab0
----
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 54 col0 FROM tab1
----
54
54
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9175
SELECT 0 * COUNT( * ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9175
SELECT 0 * COUNT ( * ) AS col2 FROM tab1
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) BETWEEN NULL AND col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9177
SELECT COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9177
SELECT COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 60 * + 72 + + col0 col2 FROM tab2 cor0
----
4366
4384
4395

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NOT NULL IS NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE ( ( + 50 ) BETWEEN col2 AND - + ( - - col2 ) + + + col1 )
----

query I rowsort
SELECT + 23 + + col0 AS col2 FROM tab2 AS cor0 WHERE + 21 IS NOT NULL
----
69
87
98

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9182
SELECT DISTINCT + + col1 / + CAST( NULL AS DECIMAL ) * col0 - + - col1 FROM tab1 AS cor0 WHERE NOT NULL >= 44 - col2
----

skipif mysql # not compatible
query I rowsort label-9182
SELECT DISTINCT + + col1 / + CAST ( NULL AS REAL ) * col0 - + - col1 FROM tab1 AS cor0 WHERE NOT NULL >= 44 - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9183
SELECT - COUNT( * ) AS col2 FROM tab1 cor0 WHERE NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-9183
SELECT - COUNT ( * ) AS col2 FROM tab1 cor0 WHERE NULL < NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + 87 col1 FROM tab2 AS cor0
----
138
154
164

onlyif mysql # aggregate syntax: 
query I rowsort label-9185
SELECT ALL COUNT( * ) + + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9185
SELECT ALL COUNT ( * ) + + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL + ( + + col0 ) * + - 38 FROM tab2
----
-1748
-2432
-2850

onlyif mysql # aggregate syntax: 
query I rowsort label-9187
SELECT DISTINCT + COUNT( DISTINCT col2 ) AS col0 FROM tab0 WHERE NOT 45 / + 25 IN ( + 13, + ( + 89 ) / col0 / - col2 * - - col2 * + col2, + - ( ( + 75 ) ) )
----
3

skipif mysql # not compatible
query I rowsort label-9187
SELECT DISTINCT + COUNT ( DISTINCT col2 ) AS col0 FROM tab0 WHERE NOT 45 / + 25 IN ( + 13, + ( + 89 ) / col0 / - col2 * - - col2 * + col2, + - ( ( + 75 ) ) )
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9188
SELECT DISTINCT 8 DIV - - col1 + + col0 * 58 FROM tab2
----
2668
3712
4350

skipif mysql # not compatible
query I rowsort label-9188
SELECT DISTINCT 8 / - - col1 + + col0 * 58 FROM tab2
----
2668
3712
4350

onlyif mysql # DIV for integer division: 
query I rowsort label-9189
SELECT col2 DIV + ( + - 98 ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9189
SELECT col2 / + ( + - 98 ) FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col0 FROM tab2 cor0 WHERE ( + 32 IS NOT NULL )
----
46
64
75

query III rowsort
SELECT ALL * FROM tab1 WHERE + - 63 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( - 39 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

onlyif mysql # aggregate syntax: 
query I rowsort label-9193
SELECT + 13 * 70 * - + 0 + - COUNT( * ) + + - 81 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-90

skipif mysql # not compatible
query I rowsort label-9193
SELECT + 13 * 70 * - + 0 + - COUNT ( * ) + + - 81 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9194
SELECT ALL + ( + SUM( - col1 ) ), + COUNT( * ) / + COUNT( * ) * CAST( NULL AS SIGNED ) * ( + ( + AVG ( ALL + - col0 ) ) ) col0 FROM tab2 AS cor0
----
-195
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9194
SELECT ALL + ( + SUM ( - col1 ) ), + COUNT ( * ) / + COUNT ( * ) * CAST ( NULL AS INTEGER ) * ( + ( + AVG ( ALL + - col0 ) ) ) col0 FROM tab2 AS cor0
----
-195
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL = col2 / + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9196
SELECT 30 * + CAST( NULL AS SIGNED ) / - col0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL < ( - col0 ) + - - col0
----

skipif mysql # not compatible
query I rowsort label-9196
SELECT 30 * + CAST ( NULL AS INTEGER ) / - col0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL < ( - col0 ) + - - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9197
SELECT + 26 DIV + - col1 * + + col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9197
SELECT + 26 / + - col1 * + + col1 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 67 col0 FROM tab2
----
67
67
67

query III rowsort
SELECT ALL * FROM tab0 WHERE + + col0 + 9 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9200
SELECT DISTINCT + MIN( ALL - - col0 ) AS col2 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-9200
SELECT DISTINCT + MIN ( ALL - - col0 ) AS col2 FROM tab2
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-9201
SELECT ALL + SUM( ALL - 78 ) AS col0, 90 AS col0 FROM tab1
----
-234
90

skipif mysql # not compatible
query II rowsort label-9201
SELECT ALL + SUM ( ALL - 78 ) AS col0, 90 AS col0 FROM tab1
----
-234
90

query I rowsort
SELECT DISTINCT - ( + + col0 ) + + col2 FROM tab1 AS cor0
----
-23
-26
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9203
SELECT ALL COUNT( * ) + 19 AS col0 FROM tab0 cor0
----
22

skipif mysql # not compatible
query I rowsort label-9203
SELECT ALL COUNT ( * ) + 19 AS col0 FROM tab0 cor0
----
22

query I rowsort
SELECT col1 + + - col2 - - col1 + - 87 FROM tab1
----
-136
-155
-61

query I rowsort
SELECT DISTINCT - + ( - 89 ) + - + col2 + + col0 * - 34 AS col0 FROM tab2 AS cor0
----
-1498
-2127
-2519

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 61 * - 51 + col1 BETWEEN + col0 AND + col0 + - + ( + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 BETWEEN + 92 + 86 AND + ( + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9208
SELECT DISTINCT - - 63 + + COUNT( - ( - + 3 ) ) AS col0 FROM tab0 cor0
----
66

skipif mysql # not compatible
query I rowsort label-9208
SELECT DISTINCT - - 63 + + COUNT ( - ( - + 3 ) ) AS col0 FROM tab0 cor0
----
66

query I rowsort
SELECT DISTINCT col1 - + 69 FROM tab2 AS cor0
----
-18
-2
8

query I rowsort
SELECT ALL - + ( + - col1 ) + + col0 AS col0 FROM tab2 AS cor0
----
141
142
97

query I rowsort
SELECT DISTINCT - 62 - + col0 AS col2 FROM tab0
----
-149
-159
-77

query II rowsort
SELECT DISTINCT + col2 AS col1, ( - col2 ) + col1 FROM tab2
----
23
28
40
37
58
9

query I rowsort
SELECT col0 * + col0 - + col2 * - - col0 + col0 * + - 12 FROM tab1
----
-2907
1001
1190

query I rowsort
SELECT ALL 17 - + col1 AS col2 FROM tab2
----
-34
-50
-60

query I rowsort
SELECT DISTINCT ( 62 ) AS col0 FROM tab1
----
62

query II rowsort
SELECT - col1 * - col2 - + col1 * - col0 AS col1, + col2 FROM tab0
----
196
99
2037
10
5022
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9217
SELECT ALL + SUM( + + ( - col0 ) ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-9217
SELECT ALL + SUM ( + + ( - col0 ) ) FROM tab0
----
-199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * ( - col2 ) * ( col2 ) * - col0 col0 FROM tab1 cor0
----
-17457215
-28613312
-45121536

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + - col0 - + col0 * + col2 col1 FROM tab1 AS cor0
----
-10030
-12376
-9792

onlyif mysql # aggregate syntax: 
query I rowsort label-9220
SELECT ALL + SUM( - col2 ) * - COUNT( * ) FROM tab1 AS cor0
----
669

skipif mysql # not compatible
query I rowsort label-9220
SELECT ALL + SUM ( - col2 ) * - COUNT ( * ) FROM tab1 AS cor0
----
669

query I rowsort
SELECT ALL - 41 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9222
SELECT * FROM tab1 WHERE NOT CAST( + col2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9222
SELECT * FROM tab1 WHERE NOT CAST ( + col2 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9223
SELECT ALL - 48 * 74 * + COUNT( * ) FROM tab0 AS cor0
----
-10656

skipif mysql # not compatible
query I rowsort label-9223
SELECT ALL - 48 * 74 * + COUNT ( * ) FROM tab0 AS cor0
----
-10656

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9224
SELECT DISTINCT 94 * ( 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-9224
SELECT DISTINCT 94 * ( CAST ( NULL AS INTEGER ) ) col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9225
SELECT + col1 * 27 * ( + + CAST( NULL AS SIGNED ) ) * - col2 + + + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9225
SELECT + col1 * 27 * ( + + CAST ( NULL AS INTEGER ) ) * - col2 + + + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - 98 AS col0 FROM tab1 AS cor0
----
-98
-98
-98

query I rowsort
SELECT ALL + ( ( col0 ) ) / col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL > + 65
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9228
SELECT DISTINCT - 39 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9228
SELECT DISTINCT - 39 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9229
SELECT col0 / + 78 * CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9229
SELECT col0 / + 78 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - - col2 * - col1 AS col1, - 18 + - col1 AS col0 FROM tab0 AS cor0
----
-210
-39
-3807
-99
-99
-19

query II rowsort
SELECT + col0 AS col0, col1 + + + col2 AS col0 FROM tab0
----
15
128
87
31
97
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9232
SELECT MAX( ALL + + col2 ) FROM tab1 WHERE NOT - CAST( NULL AS SIGNED ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9232
SELECT MAX ( ALL + + col2 ) FROM tab1 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9233
SELECT COUNT( * ) * CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9233
SELECT COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9234
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN - 13 + CAST( NULL AS SIGNED ) AND - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9234
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN - 13 + CAST ( NULL AS INTEGER ) AND - + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT 92 FROM tab1 WHERE - col2 > + col2 * - col0 + - + col1
----
92

query III rowsort
SELECT ALL * FROM tab2 WHERE + 80 * - col1 NOT BETWEEN NULL AND + 23 - - 91 * - - col0 - + col1 + + 63
----

query II rowsort
SELECT ALL - col0, col0 + col0 AS col1 FROM tab0
----
-15
30
-87
174
-97
194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 50 * - 67 col0 FROM tab0 WHERE NULL = NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9239
SELECT ALL - 23 DIV + 17 + - ( - COUNT( * ) ) FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-9239
SELECT ALL - 23 / + 17 + - ( - COUNT ( * ) ) FROM tab0 AS cor0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9240
SELECT - col1, + col0 * CAST( NULL AS SIGNED ) * col2 AS col2 FROM tab0 AS cor0
----
-1
NULL
-21
NULL
-81
NULL

skipif mysql # not compatible
query II rowsort label-9240
SELECT - col1, + col0 * CAST ( NULL AS INTEGER ) * col2 AS col2 FROM tab0 AS cor0
----
-1
NULL
-21
NULL
-81
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col0, - col0 AS col1 FROM tab1 AS cor0
----
59
-85
68
-91
96
-51

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 / - col1 * - col2 + - + col0 IS NOT NULL
----

query I rowsort
SELECT col2 + + + 17 FROM tab2 AS cor0
----
40
57
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9244
SELECT + 18 + MIN( - col1 ) AS col1 FROM tab0 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-9244
SELECT + 18 + MIN ( - col1 ) AS col1 FROM tab0 AS cor0
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9245
SELECT col1 + + + ( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9245
SELECT col1 + + + ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 90 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 + + - col1 AS col2 FROM tab2 AS cor0
----
-13
-5
8

query I rowsort
SELECT - col0 * - + 81 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9249
SELECT ALL + COUNT( * ) + - COUNT( * ) col0 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9249
SELECT ALL + COUNT ( * ) + - COUNT ( * ) col0 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9250
SELECT DISTINCT SUM( + 28 ) AS col2 FROM tab1 WHERE NULL >= col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9250
SELECT DISTINCT SUM ( + 28 ) AS col2 FROM tab1 WHERE NULL >= col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9251
SELECT MAX( ALL + col2 ) AS col2 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-9251
SELECT MAX ( ALL + col2 ) AS col2 FROM tab0
----
99

query I rowsort
SELECT DISTINCT + ( - 69 ) AS col1 FROM tab2 AS cor0
----
-69

query I rowsort
SELECT - 48 * 13 FROM tab1 AS cor0
----
-624
-624
-624

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = + - col2 - - 58
----

query I rowsort
SELECT - 80 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN - - col0 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9257
SELECT CAST( NULL AS SIGNED ) AS col2, + 34 * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
NULL
-102

skipif mysql # not compatible
query II rowsort label-9257
SELECT CAST ( NULL AS INTEGER ) AS col2, + 34 * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
NULL
-102

query I rowsort
SELECT DISTINCT + - col1 AS col1 FROM tab1 AS cor0 WHERE NOT 10 IS NOT NULL
----

query I rowsort
SELECT ALL - 41 AS col0 FROM tab0 AS cor0 WHERE NOT NULL > col0
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 < + 53
----

query I rowsort
SELECT + col2 AS col2 FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT - + col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT NULL > NULL )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9263
SELECT 3 DIV - 65, col0 FROM tab1
----
0
51
0
85
0
91

skipif mysql # not compatible
query II rowsort label-9263
SELECT 3 / - 65, col0 FROM tab1
----
0
51
0
85
0
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9264
SELECT 21 + COUNT( * ) - COUNT( - + col0 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
21

skipif mysql # not compatible
query I rowsort label-9264
SELECT 21 + COUNT ( * ) - COUNT ( - + col0 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9265
SELECT ALL + CAST( + 32 AS SIGNED ) AS col2, MIN( ALL + col2 ) AS col2 FROM tab1
----
32
59

skipif mysql # not compatible
query II rowsort label-9265
SELECT ALL + CAST ( + 32 AS INTEGER ) AS col2, MIN ( ALL + col2 ) AS col2 FROM tab1
----
32
59

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 = NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9267
SELECT + col1 * + CAST( NULL AS DECIMAL ) * - 83 * - 3 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9267
SELECT + col1 * + CAST ( NULL AS REAL ) * - 83 * - 3 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9268
SELECT - MAX( DISTINCT 39 ) FROM tab0 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-9268
SELECT - MAX ( DISTINCT 39 ) FROM tab0 AS cor0
----
-39

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 32 IS NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE - col2 IS NULL
----

query I rowsort
SELECT ALL + + ( - 61 ) + + - col1 * - 85 AS col0 FROM tab1 AS cor0
----
1129
364
3934

onlyif mysql # aggregate syntax: 
query II rowsort label-9272
SELECT - 7 AS col2, - MAX( DISTINCT - 34 ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-7
34

skipif mysql # not compatible
query II rowsort label-9272
SELECT - 7 AS col2, - MAX ( DISTINCT - 34 ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-7
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9273
SELECT ALL CAST( NULL AS SIGNED ) * - col2 / col2 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9273
SELECT ALL CAST ( NULL AS INTEGER ) * - col2 / col2 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9274
SELECT DISTINCT 71 + - - COUNT( ALL - col2 ) AS col1 FROM tab1 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-9274
SELECT DISTINCT 71 + - - COUNT ( ALL - col2 ) AS col1 FROM tab1 AS cor0
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-9275
SELECT DISTINCT + col2 DIV ( - col0 ) * col2 AS col1 FROM tab1 AS cor0
----
-96
0

skipif mysql # not compatible
query I rowsort label-9275
SELECT DISTINCT + col2 / ( - col0 ) * col2 AS col1 FROM tab1 AS cor0
----
-96
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9276
SELECT ( - col0 ) - + CAST( NULL AS SIGNED ) col2 FROM tab1 cor0 WHERE + col0 BETWEEN ( + + 61 ) AND ( + CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9276
SELECT ( - col0 ) - + CAST ( NULL AS INTEGER ) col2 FROM tab1 cor0 WHERE + col0 BETWEEN ( + + 61 ) AND ( + CAST ( NULL AS REAL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9277
SELECT DISTINCT - + COUNT( - ( 49 ) ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9277
SELECT DISTINCT - + COUNT ( - ( 49 ) ) AS col1 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) < col0 * col2
----

query I rowsort
SELECT DISTINCT - + 14 - + col2 FROM tab1 AS cor0
----
-110
-73
-82

query I rowsort
SELECT - 73 * - + 64 - + col0 + col2 - + + col2 + + - col0 FROM tab1 AS cor0
----
4490
4502
4570

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9281
SELECT DISTINCT col0 + - CAST( + col0 AS SIGNED ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9281
SELECT DISTINCT col0 + - CAST ( + col0 AS INTEGER ) AS col0 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9282
SELECT DISTINCT - ( - + COUNT( DISTINCT + + 71 ) ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-9282
SELECT DISTINCT - ( - + COUNT ( DISTINCT + + 71 ) ) FROM tab1
----
1

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN + - col2 / - col2 + - col0 AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 70 < + 63 * col1
----
97
1
99

query I rowsort
SELECT ALL - ( + + col0 ) AS col2 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT DISTINCT - 57 * - col1 + - 98 FROM tab2 cor0
----
2809
3721
4291

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9287
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) * + + 51 + + 26 * col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-9287
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS REAL ) * + + 51 + + 26 * col0 IS NULL
----

query I rowsort
SELECT + col0 + + col0 FROM tab1 cor0 WHERE NOT - 54 + - + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9289
SELECT + col0 * - CAST( + + col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

skipif mysql # not compatible
query I rowsort label-9289
SELECT + col0 * - CAST ( + + col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) IS NULL OR NOT col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-9291
SELECT + + 43 AS col2, COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
43
9

skipif mysql # not compatible
query II rowsort label-9291
SELECT + + 43 AS col2, COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
43
9

query I rowsort
SELECT ALL - 28 * - 47 AS col1 FROM tab0
----
1316
1316
1316

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 91 + - col0 <> NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 * + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 44 AS col1 FROM tab1 cor0
----
44
44
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 57 col2 FROM tab1 AS cor0
----
57
57
57

onlyif mysql # aggregate syntax: 
query II rowsort label-9297
SELECT + - COUNT( * ) AS col1, + 22 col1 FROM tab1 AS cor0
----
-3
22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9297
SELECT + - COUNT ( * ) AS col1, + 22 col1 FROM tab1 AS cor0
----
-3
22

query I rowsort
SELECT - 59 * + - 22 * - - col0 AS col1 FROM tab1 AS cor0
----
110330
118118
66198

onlyif mysql # aggregate syntax: 
query I rowsort label-9299
SELECT ALL + ( ( - ( COUNT( * ) ) ) ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9299
SELECT ALL + ( ( - ( COUNT ( * ) ) ) ) AS col2 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT - col2 * + 36 FROM tab1 AS cor0
----
-2124
-2448
-3456

query I rowsort
SELECT ALL - - col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IN ( col2, col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9302
SELECT ALL + - 83 + + COUNT( DISTINCT + 55 ) + - 14 + - - 17 col0 FROM tab1 AS cor0
----
-79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9302
SELECT ALL + - 83 + + COUNT ( DISTINCT + 55 ) + - 14 + - - 17 col0 FROM tab1 AS cor0
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-9303
SELECT + COUNT( * ) * + + 78 FROM tab2 AS cor0
----
234

skipif mysql # not compatible
query I rowsort label-9303
SELECT + COUNT ( * ) * + + 78 FROM tab2 AS cor0
----
234

query I rowsort
SELECT ALL + 12 FROM tab1 WHERE NOT NULL < NULL
----

query I rowsort
SELECT ALL 9 * + col2 AS col2 FROM tab0
----
423
891
90

onlyif mysql # DIV for integer division: 
query I rowsort label-9306
SELECT ALL 92 DIV - 89 + + + col2 * + ( + - 32 ) FROM tab2
----
-1281
-1857
-737

skipif mysql # not compatible
query I rowsort label-9306
SELECT ALL 92 / - 89 + + + col2 * + ( + - 32 ) FROM tab2
----
-1281
-1857
-737

query I rowsort
SELECT + - 81 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9308
SELECT - 29 + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9308
SELECT - 29 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 21 * - 79 AS col0 FROM tab1 AS cor0
----
-1659
-1659
-1659

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - 34 * col1 + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col1 AS col1, col2 FROM tab1 AS cor0
----
14
96
47
68
5
59

query I rowsort
SELECT - + ( 6 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 65 col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT - col2 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col2 * + + col1 * + ( 22 ) >= NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9316
SELECT + 48 + - CAST( col1 AS SIGNED ) FROM tab1 AS cor0
----
1
34
43

skipif mysql # not compatible
query I rowsort label-9316
SELECT + 48 + - CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
1
34
43

query I rowsort
SELECT col0 + - 99 FROM tab0 cor0
----
-12
-2
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9318
SELECT - - COUNT( * ) + + - ( - - 72 ) + 30 * - MAX( DISTINCT - 88 ) FROM tab1 AS cor0
----
2571

skipif mysql # not compatible
query I rowsort label-9318
SELECT - - COUNT ( * ) + + - ( - - 72 ) + 30 * - MAX ( DISTINCT - 88 ) FROM tab1 AS cor0
----
2571

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9319
SELECT DISTINCT - + col1 AS col0 FROM tab1 WHERE - - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9319
SELECT DISTINCT - + col1 AS col0 FROM tab1 WHERE - - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT ( 80 ) AS col0 FROM tab1
----
80
80
80

query II rowsort
SELECT ALL 99 AS col0, + 76 FROM tab1
----
99
76
99
76
99
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9322
SELECT SUM( DISTINCT - - col0 ) FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-9322
SELECT SUM ( DISTINCT - - col0 ) FROM tab2
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-9323
SELECT + COUNT( * ) col0 FROM tab0 WHERE NOT - col2 IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9323
SELECT + COUNT ( * ) col0 FROM tab0 WHERE NOT - col2 IS NULL
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9324
SELECT COUNT( DISTINCT CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9324
SELECT COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9325
SELECT DISTINCT + ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9325
SELECT DISTINCT + ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT - col2 * + col1 * + + ( + 60 ) AS col0 FROM tab2 cor0
----
-184800
-233160
-70380

query II rowsort
SELECT DISTINCT 33 AS col2, 84 AS col1 FROM tab2 AS cor0
----
33
84

query I rowsort
SELECT AVG ( col2 ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9329
SELECT 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-9329
SELECT col2 + CAST ( NULL AS INTEGER ) col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9330
SELECT ALL * FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) >= - 51
----

skipif mysql # not compatible
query III rowsort label-9330
SELECT ALL * FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) >= - 51
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9331
SELECT DISTINCT + ( - CAST( NULL AS DECIMAL ) ) + + - col0 + 85, + col2 * - 30 AS col0 FROM tab0 AS cor0
----
NULL
-1410
NULL
-2970
NULL
-300

skipif mysql # not compatible
query II rowsort label-9331
SELECT DISTINCT + ( - CAST ( NULL AS REAL ) ) + + - col0 + 85, + col2 * - 30 AS col0 FROM tab0 AS cor0
----
NULL
-1410
NULL
-2970
NULL
-300

onlyif mysql # aggregate syntax: 
query I rowsort label-9332
SELECT ALL 7 * + + SUM( - col1 ) FROM tab2
----
-1365

skipif mysql # not compatible
query I rowsort label-9332
SELECT ALL 7 * + + SUM ( - col1 ) FROM tab2
----
-1365

query I rowsort
SELECT ( - col1 ) * col1 - - - 22 + col1 - + 53 * + - col2 FROM tab1
----
1420
3085
4884

query II rowsort
SELECT 95 * + col2 * 82 AS col1, col2 FROM tab1
----
459610
59
529720
68
747840
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * + ( - + 13 ) col0, + col1 * + col0 col2 FROM tab2
----
-598
2346
-832
4928
-975
5025

query I rowsort
SELECT - col0 * - + 23 * + + 28 AS col1 FROM tab0
----
56028
62468
9660

onlyif mysql # DIV for integer division: 
query I rowsort label-9337
SELECT ( - col0 ) * 3 + col2 DIV - + col0 col0 FROM tab1
----
-154
-255
-273

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9337
SELECT ( - col0 ) * 3 + col2 / - + col0 col0 FROM tab1
----
-154
-255
-273

query I rowsort
SELECT ALL + col0 * + 35 FROM tab2
----
1610
2240
2625

query I rowsort
SELECT + 88 * + col1 AS col2 FROM tab1
----
1232
4136
440

query III rowsort
SELECT * FROM tab0 WHERE ( + + 43 * + 99 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9341
SELECT ALL COUNT( DISTINCT 17 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-9341
SELECT ALL COUNT ( DISTINCT 17 ) FROM tab0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 97 AS col1, col1 col2 FROM tab2 cor0
----
97
51
97
67
97
77

query I rowsort
SELECT ALL + 72 + col1 AS col2 FROM tab2 AS cor0
----
123
139
149

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + - 65 col0 FROM tab0 cor0
----
-50
22
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9345
SELECT COUNT( * ) + 93 AS col2 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-9345
SELECT COUNT ( * ) + 93 AS col2 FROM tab1
----
96

query I rowsort
SELECT ALL + 94 - - 66 AS col1 FROM tab1
----
160
160
160

onlyif mysql # aggregate syntax: 
query I rowsort label-9347
SELECT ALL + COUNT( * ) - - + 71 FROM tab0
----
74

skipif mysql # not compatible
query I rowsort label-9347
SELECT ALL + COUNT ( * ) - - + 71 FROM tab0
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9348
SELECT DISTINCT + 14 AS col0, CAST( - - col1 AS SIGNED ) * + - col1 - 51 col0 FROM tab2
----
14
-2652
14
-4540
14
-5980

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9348
SELECT DISTINCT + 14 AS col0, CAST ( - - col1 AS INTEGER ) * + - col1 - 51 col0 FROM tab2
----
14
-2652
14
-4540
14
-5980

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 <> ( NULL )
----

query II rowsort
SELECT DISTINCT - col0, - col1 AS col2 FROM tab1 AS cor0
----
-51
-14
-85
-5
-91
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9351
SELECT DISTINCT - - CAST( - col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-9351
SELECT DISTINCT - - CAST ( - col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT - + col1 * col2 + + 15 FROM tab1 AS cor0
----
-1329
-280
-3181

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + col1 * - 11 - + - 46 <> NULL
----

query I rowsort
SELECT DISTINCT - + ( - col2 ) * col1 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9355
SELECT - 32 * - CAST( - + COUNT( * ) AS SIGNED ) FROM tab0 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-9355
SELECT - 32 * - CAST ( - + COUNT ( * ) AS INTEGER ) FROM tab0 cor0
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9356
SELECT - col1 AS col2, CAST( NULL AS SIGNED ) FROM tab2 cor0
----
-51
NULL
-67
NULL
-77
NULL

skipif mysql # not compatible
query II rowsort label-9356
SELECT - col1 AS col2, CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
-51
NULL
-67
NULL
-77
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9357
SELECT DISTINCT COUNT( * ) * COUNT( - col0 ) col1 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9357
SELECT DISTINCT COUNT ( * ) * COUNT ( - col0 ) col1 FROM tab0 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-9358
SELECT DISTINCT col2 DIV - + col2 - + col2 * ( + col1 ) col2 FROM tab2 AS cor0
----
-1174
-3081
-3887

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9358
SELECT DISTINCT col2 / - + col2 - + col2 * ( + col1 ) col2 FROM tab2 AS cor0
----
-1174
-3081
-3887

onlyif mysql # aggregate syntax: 
query II rowsort label-9359
SELECT + ( - 23 ) AS col1, - 95 * MAX( + col0 ) FROM tab0
----
-23
-9215

skipif mysql # not compatible
query II rowsort label-9359
SELECT + ( - 23 ) AS col1, - 95 * MAX ( + col0 ) FROM tab0
----
-23
-9215

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9360
SELECT DISTINCT + MAX( ALL + - CAST( NULL AS SIGNED ) ) / + ( MAX( DISTINCT - col2 ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9360
SELECT DISTINCT + MAX ( ALL + - CAST ( NULL AS INTEGER ) ) / + ( MAX ( DISTINCT - col2 ) ) AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9361
SELECT DISTINCT MAX( DISTINCT - - col1 ) AS col0, + COUNT( * ) AS col1 FROM tab0
----
81
3

skipif mysql # not compatible
query II rowsort label-9361
SELECT DISTINCT MAX ( DISTINCT - - col1 ) AS col0, + COUNT ( * ) AS col1 FROM tab0
----
81
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9362
SELECT DISTINCT + - CAST( NULL AS DECIMAL ) FROM tab2 WHERE - col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-9362
SELECT DISTINCT + - CAST ( NULL AS REAL ) FROM tab2 WHERE - col0 IS NULL
----

query I rowsort
SELECT + col0 * + col1 + + - col1 FROM tab2 AS cor0
----
2295
4851
4958

onlyif mysql # aggregate syntax: 
query I rowsort label-9364
SELECT ALL + MIN( 90 ) AS col2 FROM tab1 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-9364
SELECT ALL + MIN ( 90 ) AS col2 FROM tab1 AS cor0
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9365
SELECT + 61 AS col1, - CAST( col2 AS SIGNED ) FROM tab2 WHERE NOT - - 70 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-9365
SELECT + 61 AS col1, - CAST ( col2 AS INTEGER ) FROM tab2 WHERE NOT - - 70 IS NOT NULL
----

query I rowsort
SELECT ALL - + 19 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4

query I rowsort
SELECT ALL col2 + - - 66 FROM tab2 AS cor0
----
106
124
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9368
SELECT 48 * - - COUNT( * ) col2 FROM tab2 AS cor0 WHERE NULL = - 99 + 1 + - ( - col0 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9368
SELECT 48 * - - COUNT ( * ) col2 FROM tab2 AS cor0 WHERE NULL = - 99 + 1 + - ( - col0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9369
SELECT + + COUNT( col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9369
SELECT + + COUNT ( col0 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT - - ( - + ( - + 72 ) ) FROM tab0 AS cor0
----
72
72
72

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 74 + + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT ( + - col1 ) * + ( ( + col1 ) ) + col2 AS col0 FROM tab0 AS cor0
----
-431
-6514
98

onlyif mysql # aggregate syntax: 
query II rowsort label-9373
SELECT COUNT( * ) + + 54 * + 48, MIN( - col1 ) AS col2 FROM tab1 AS cor0
----
2595
-47

skipif mysql # not compatible
query II rowsort label-9373
SELECT COUNT ( * ) + + 54 * + 48, MIN ( - col1 ) AS col2 FROM tab1 AS cor0
----
2595
-47

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 99 - - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 11 * + - 22 + col1 FROM tab2
----
293
309
319

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9376
SELECT - - MIN( DISTINCT - CAST( + + 72 AS SIGNED ) ) + COUNT( * ) FROM tab2 WHERE col1 IS NOT NULL
----
-69

skipif mysql # not compatible
query I rowsort label-9376
SELECT - - MIN ( DISTINCT - CAST ( + + 72 AS INTEGER ) ) + COUNT ( * ) FROM tab2 WHERE col1 IS NOT NULL
----
-69

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - 14 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9378
SELECT 64 + COUNT( ALL - col1 ) AS col1 FROM tab1
----
67

skipif mysql # not compatible
query I rowsort label-9378
SELECT 64 + COUNT ( ALL - col1 ) AS col1 FROM tab1
----
67

query I rowsort
SELECT - 56 * - col0 + + col1 FROM tab2
----
2627
3661
4267

query I rowsort
SELECT 5 + col1 AS col1 FROM tab1
----
10
19
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9381
SELECT + 64 * MAX( DISTINCT - + col0 ) FROM tab0 AS cor0
----
-960

skipif mysql # not compatible
query I rowsort label-9381
SELECT + 64 * MAX ( DISTINCT - + col0 ) FROM tab0 AS cor0
----
-960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9382
SELECT ALL + col1 + col1 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9382
SELECT ALL + col1 + col1 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT col2, + col1 / col2 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN + - col1 + - col1 * - col2 AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9384
SELECT ALL COUNT( * ) * - COUNT( * ) * 98 FROM tab2 AS cor0 WHERE NOT 16 BETWEEN NULL AND + + 7
----
-882

skipif mysql # not compatible
query I rowsort label-9384
SELECT ALL COUNT ( * ) * - COUNT ( * ) * 98 FROM tab2 AS cor0 WHERE NOT 16 BETWEEN NULL AND + + 7
----
-882

query I rowsort
SELECT DISTINCT - col0 - + col1 + col1 FROM tab1 AS cor0 WHERE ( - col2 ) = - - 26 + + - 17 + - 77
----
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( 17 ) col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL > ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9388
SELECT DISTINCT - - 97 * + COUNT( * ) AS col2, 25 FROM tab2 WHERE NOT col1 BETWEEN NULL AND - - CAST( + col0 AS DECIMAL ) + col1
----
0
25

skipif mysql # not compatible
query II rowsort label-9388
SELECT DISTINCT - - 97 * + COUNT ( * ) AS col2, 25 FROM tab2 WHERE NOT col1 BETWEEN NULL AND - - CAST ( + col0 AS REAL ) + col1
----
0
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9389
SELECT + CAST( + + col0 AS SIGNED ) * + - col2 FROM tab2
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-9389
SELECT + CAST ( + + col0 AS INTEGER ) * + - col2 FROM tab2
----
-1058
-2560
-4350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9390
SELECT ( - CAST( NULL AS SIGNED ) ) * + + COUNT( * ) * - COUNT( * ) * + - COUNT( + col0 ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9390
SELECT ( - CAST ( NULL AS INTEGER ) ) * + + COUNT ( * ) * - COUNT ( * ) * + - COUNT ( + col0 ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + ( + + col2 ) * - ( - col0 ) * + col2 + 36 * - - 71 FROM tab0 AS cor0
----
11256
35691
953253

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9392
SELECT + col1 * 75 * + CAST( - col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-137025
-7275
-91125

skipif mysql # not compatible
query I rowsort label-9392
SELECT + col1 * 75 * + CAST ( - col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-137025
-7275
-91125

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 >= - - col1
----
15
81
47

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
-46
-64
-75

query I rowsort
SELECT DISTINCT - col2 * 79 FROM tab2 AS cor0
----
-1817
-3160
-4582

query I rowsort
SELECT col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IN ( col0, + 13, col2 - col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9397
SELECT ALL + - COUNT( * ) DIV - - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9397
SELECT ALL + - COUNT ( * ) / - - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-1

query II rowsort
SELECT col2, 7 * + col2 FROM tab1
----
59
413
68
476
96
672

onlyif mysql # aggregate syntax: 
query I rowsort label-9399
SELECT + MAX( + col1 ) col2 FROM tab0 WHERE NOT - col0 IS NOT NULL AND ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9399
SELECT + MAX ( + col1 ) col2 FROM tab0 WHERE NOT - col0 IS NOT NULL AND ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9400
SELECT ALL - COUNT( ALL + + col2 ) FROM tab2 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9400
SELECT ALL - COUNT ( ALL + + col2 ) FROM tab2 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9401
SELECT ALL MIN( + col1 ) / COUNT( * ) AS col0 FROM tab1 WHERE + col2 + - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9401
SELECT ALL MIN ( + col1 ) / COUNT ( * ) AS col0 FROM tab1 WHERE + col2 + - col0 IS NULL
----
NULL

query II rowsort
SELECT + 56, col2 FROM tab0
----
56
10
56
47
56
99

query I rowsort
SELECT ALL col1 * col0 * + + ( + col2 ) FROM tab0
----
18270
57105
9603

query I rowsort
SELECT ALL - col1 FROM tab0 AS cor0 WHERE col2 / - col1 * + 56 IS NULL
----

query I rowsort
SELECT + 85 / col1 - - col2 FROM tab1 AS cor0 WHERE NOT ( NOT + col2 < - col1 )
----

query I rowsort
SELECT ALL col0 + 73 FROM tab1 cor0
----
124
158
164

query I rowsort
SELECT - - col1 + + col0 + + 75 * - 97 AS col1 FROM tab0 AS cor0
----
-7167
-7177
-7179

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9408
SELECT ALL - ( + - 82 ) + MIN( DISTINCT - - CAST( NULL AS SIGNED ) ) col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9408
SELECT ALL - ( + - 82 ) + MIN ( DISTINCT - - CAST ( NULL AS INTEGER ) ) col1 FROM tab0 cor0
----
NULL

query I rowsort
SELECT DISTINCT - - 95 + + 2 + - col1 FROM tab2 AS cor0
----
20
30
46

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 0 NOT IN ( + + col1 * + - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 <> NULL
----

query I rowsort
SELECT ALL + col1 + ( - - 27 ) AS col2 FROM tab1 AS cor0
----
32
41
74

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( 54 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col2 * col1 * + col0 + + col2 AS col0 FROM tab1 AS cor0
----
-25016
-290768
-68448

query I rowsort
SELECT + - 74 AS col2 FROM tab1 AS cor0
----
-74
-74
-74

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 * + - col2 = - + col0 + + - col1
----

query I rowsort
SELECT ALL + ( - col2 ) - - + col1 AS col2 FROM tab2
----
28
37
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9418
SELECT + 60 * + - CAST( - - COUNT( * ) AS SIGNED ) FROM tab0
----
-180

skipif mysql # not compatible
query I rowsort label-9418
SELECT + 60 * + - CAST ( - - COUNT ( * ) AS INTEGER ) FROM tab0
----
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-9419
SELECT - ( + MIN( ALL + ( + + 31 ) ) ) FROM tab2
----
-31

skipif mysql # not compatible
query I rowsort label-9419
SELECT - ( + MIN ( ALL + ( + + 31 ) ) ) FROM tab2
----
-31

query I rowsort
SELECT DISTINCT ( + + 11 ) AS col0 FROM tab1
----
11

query II rowsort
SELECT col2 - - col1 + ( + col1 ) + - - col0 - - + 22 AS col0, + col1 AS col1 FROM tab1
----
176
5
197
14
275
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9422
SELECT DISTINCT SUM( DISTINCT - col0 ) FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-9422
SELECT DISTINCT SUM ( DISTINCT - col0 ) FROM tab2
----
-185

query I rowsort
SELECT ALL - col0 - + col1 * + col1 + col1 FROM tab1 AS cor0 WHERE + 32 * - 25 * + col0 * - col0 / + + 36 IS NULL
----

query I rowsort
SELECT 77 * - col1 AS col1 FROM tab0 AS cor0 WHERE - 81 BETWEEN NULL AND - col0
----

query I rowsort
SELECT + - 14 + ( + + col0 ) FROM tab2 AS cor0
----
32
50
61

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 40 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9427
SELECT + - 60 + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9427
SELECT + - 60 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9428
SELECT ALL - 77 * - 18 AS col1 FROM tab1 WHERE NOT - 10 * + col0 IN ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-9428
SELECT ALL - 77 * - 18 AS col1 FROM tab1 WHERE NOT - 10 * + col0 IN ( + CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) BETWEEN NULL AND 22 + 25
----

query I rowsort
SELECT 78 * + 81 - col2 FROM tab2
----
6260
6278
6295

query I rowsort
SELECT col1 AS col0 FROM tab0 WHERE - col1 + + col0 <> NULL
----

query I rowsort
SELECT + 24 - col2 FROM tab1
----
-35
-44
-72

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) BETWEEN ( + col1 ) AND col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9434
SELECT DISTINCT * FROM tab0 WHERE + col0 + 26 BETWEEN CAST( NULL AS SIGNED ) + CAST( - col0 + - col2 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-9434
SELECT DISTINCT * FROM tab0 WHERE + col0 + 26 BETWEEN CAST ( NULL AS INTEGER ) + CAST ( - col0 + - col2 AS INTEGER ) AND NULL
----

query I rowsort
SELECT DISTINCT col2 + 53 * 24 AS col1 FROM tab0
----
1282
1319
1371

query III rowsort
SELECT * FROM tab2 WHERE col1 - - ( 21 - col2 * col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 60 FROM tab0 WHERE NULL BETWEEN + col2 AND NULL
----

query I rowsort
SELECT 4 + + col2 AS col2 FROM tab1 WHERE col0 NOT IN ( + 22 )
----
100
63
72

onlyif mysql # DIV for integer division: 
query I rowsort label-9439
SELECT + col1 DIV + 79 + + col0 AS col1 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-9439
SELECT + col1 / + 79 + + col0 AS col1 FROM tab2
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-9440
SELECT DISTINCT + 65 DIV col1 + - col0 AS col1 FROM tab2
----
-45
-64
-75

skipif mysql # not compatible
query I rowsort label-9440
SELECT DISTINCT + 65 / col1 + - col0 AS col1 FROM tab2
----
-45
-64
-75

query I rowsort
SELECT ALL + 58 AS col0 FROM tab0 WHERE + col2 * col2 + 93 * - 73 IS NOT NULL
----
58
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9442
SELECT ALL - COUNT( * ) - MIN( + 1 ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9442
SELECT ALL - COUNT ( * ) - MIN ( + 1 ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9443
SELECT - col1 + CAST( + ( - col1 ) + 64 AS SIGNED ) col2 FROM tab2 WHERE NOT + 48 + col1 IS NULL
----
-38
-70
-90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9443
SELECT - col1 + CAST ( + ( - col1 ) + 64 AS INTEGER ) col2 FROM tab2 WHERE NOT + 48 + col1 IS NULL
----
-38
-70
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 62 + + col2 * - 20 col0 FROM tab2
----
-1098
-398
-738

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE NOT col1 BETWEEN - 72 AND - 78 * + 4
----
-14
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + 48 col2 FROM tab2
----
-16
-27
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9447
SELECT + MAX( ALL col0 ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-9447
SELECT + MAX ( ALL col0 ) FROM tab1
----
91

query I rowsort
SELECT - 40 FROM tab1 WHERE NOT NULL < NULL
----

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab2 WHERE NOT - 68 + + 45 / + col1 IS NOT NULL
----

query I rowsort
SELECT col0 FROM tab1 WHERE NOT ( 39 - col1 ) <= ( - 50 )
----
51
85
91

query I rowsort
SELECT DISTINCT 44 + col1 AS col0 FROM tab0 WHERE NOT NULL = - 51 / col1
----

query III rowsort
SELECT * FROM tab2 WHERE + col2 IN ( + col1 * - 37 )
----

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE NOT ( col0 + - col2 * col0 ) BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT - 25 * col1 FROM tab1 AS cor0
----
-1175
-125
-350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9455
SELECT ALL ( + CAST( + ( - col2 ) AS SIGNED ) ) FROM tab2 AS cor0 WHERE + ( - col0 ) * 86 NOT BETWEEN - col0 AND ( col2 + col1 * 50 )
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-9455
SELECT ALL ( + CAST ( + ( - col2 ) AS INTEGER ) ) FROM tab2 AS cor0 WHERE + ( - col0 ) * 86 NOT BETWEEN - col0 AND ( col2 + col1 * 50 )
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9456
SELECT 24 + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-9456
SELECT 24 + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
27

query I rowsort
SELECT - 38 + col1 AS col0 FROM tab0 AS cor0
----
-17
-37
43

query I rowsort
SELECT + 8 + col0 FROM tab0 AS cor0 WHERE NOT ( - col2 ) NOT IN ( 75 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9459
SELECT DISTINCT + 67 + - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1
----
58

skipif mysql # not compatible
query I rowsort label-9459
SELECT DISTINCT + 67 + - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9460
SELECT ALL MIN( + 94 ) - 44 FROM tab2 AS cor0 CROSS JOIN tab1
----
50

skipif mysql # not compatible
query I rowsort label-9460
SELECT ALL MIN ( + 94 ) - 44 FROM tab2 AS cor0 CROSS JOIN tab1
----
50

query I rowsort
SELECT DISTINCT + 99 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9462
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE + col1 BETWEEN NULL AND + col2 / col1
----
0

skipif mysql # not compatible
query I rowsort label-9462
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE + col1 BETWEEN NULL AND + col2 / col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9463
SELECT 28 DIV - col0 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9463
SELECT 28 / - col0 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + 79 - + ( + col0 - 36 ) AS col2 FROM tab1 AS cor0
----
24
30
64

onlyif mysql # DIV for integer division: 
query I rowsort label-9465
SELECT DISTINCT + + col0 DIV + 22 FROM tab1 AS cor0
----
2
3
4

skipif mysql # not compatible
query I rowsort label-9465
SELECT DISTINCT + + col0 / + 22 FROM tab1 AS cor0
----
2
3
4

query I rowsort
SELECT + 24 AS col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col2 * 55 col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
1242
2160
3132

query I rowsort
SELECT - col1 + 17 AS col0 FROM tab1 AS cor0
----
-30
12
3

query I rowsort
SELECT DISTINCT - col2 + + 71 AS col1 FROM tab2 AS cor0
----
13
31
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - 26 + - 59 col1 FROM tab1 AS cor0
----
-1593
-1827
-2555

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9471
SELECT + col1 FROM tab0 AS cor0 WHERE + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9471
SELECT + col1 FROM tab0 AS cor0 WHERE + CAST ( NULL AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col0 / col0 <= NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + 25 <= ( + col0 * - 92 )
----

query I rowsort
SELECT ( col1 ) + - 37 AS col1 FROM tab0
----
-16
-36
44

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IN ( + 81 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9476
SELECT * FROM tab1 WHERE col0 NOT BETWEEN CAST( - col2 AS SIGNED ) * - col2 AND + 0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9476
SELECT * FROM tab1 WHERE col0 NOT BETWEEN CAST ( - col2 AS INTEGER ) * - col2 AND + 0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9477
SELECT ALL 24 - - + 30 * + COUNT( * ) AS col0 FROM tab2
----
114

skipif mysql # not compatible
query I rowsort label-9477
SELECT ALL 24 - - + 30 * + COUNT ( * ) AS col0 FROM tab2
----
114

query III rowsort
SELECT * FROM tab0 WHERE - col2 - + col2 NOT IN ( - 12 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9479
SELECT ALL COUNT( DISTINCT col1 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9479
SELECT ALL COUNT ( DISTINCT col1 ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9480
SELECT - CAST( + 16 AS SIGNED ) * - col2 FROM tab1 AS cor0
----
1088
1536
944

skipif mysql # not compatible
query I rowsort label-9480
SELECT - CAST ( + 16 AS INTEGER ) * - col2 FROM tab1 AS cor0
----
1088
1536
944

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 75 + 17 * col0 NOT IN ( 0 + + 90 * - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( - 40 )
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL NOT IN ( col2 )
----

query I rowsort
SELECT 0 AS col0 FROM tab1 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9485
SELECT ALL + ( - MAX( col1 ) ) AS col1 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-9485
SELECT ALL + ( - MAX ( col1 ) ) AS col1 FROM tab2 AS cor0
----
-77

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 33 * - col0 + 23 * col0 NOT BETWEEN col2 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9487
SELECT DISTINCT CAST( NULL AS DECIMAL ), 22 AS col1 FROM tab1
----
NULL
22

skipif mysql # not compatible
query II rowsort label-9487
SELECT DISTINCT CAST ( NULL AS REAL ), 22 AS col1 FROM tab1
----
NULL
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9488
SELECT COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-9488
SELECT COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9489
SELECT - - MIN( ALL 90 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
90

skipif mysql # not compatible
query I rowsort label-9489
SELECT - - MIN ( ALL 90 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
90

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9490
SELECT - + CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9490
SELECT - + CAST ( CAST ( NULL AS INTEGER ) AS REAL ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-9491
SELECT COUNT( ALL - 13 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9491
SELECT COUNT ( ALL - 13 ) FROM tab2
----
3

query II rowsort
SELECT DISTINCT col1 AS col2, - col2 FROM tab1 AS cor0
----
14
-96
47
-68
5
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 10 col2 FROM tab0 AS cor0
----
10
10
10

query I rowsort
SELECT col2 + 48 + col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
142
246
68

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE + ( - + col1 ) NOT BETWEEN - 12 AND NULL
----
15
81
47
87
21
10

query I rowsort
SELECT ALL col0 + + 75 * + 70 AS col1 FROM tab1 AS cor0 WHERE NOT ( - col1 - 54 * + col1 ) IS NULL
----
5301
5335
5341

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE NOT - col1 NOT BETWEEN 92 - + col0 * - col2 AND - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9498
SELECT DISTINCT CAST( 48 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
48

skipif mysql # not compatible
query I rowsort label-9498
SELECT DISTINCT CAST ( 48 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
48

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + 29 * + 51 + + col0 * + col1 + - ( ( + col0 ) ) <> + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9500
SELECT DISTINCT - ( + MIN( - - col0 ) ) col2 FROM tab0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9500
SELECT DISTINCT - ( + MIN ( - - col0 ) ) col2 FROM tab0
----
-15

query I rowsort
SELECT ALL 62 FROM tab2 WHERE NOT + ( + + col0 ) IS NULL
----
62
62
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9502
SELECT - SUM( ALL - - CAST( col1 AS SIGNED ) ) AS col1 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-9502
SELECT - SUM ( ALL - - CAST ( col1 AS INTEGER ) ) AS col1 FROM tab1
----
-66

query II rowsort
SELECT ( - col1 ), 2 AS col2 FROM tab0
----
-1
2
-21
2
-81
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9504
SELECT 26 * ( COUNT( * ) ) FROM tab1
----
78

skipif mysql # not compatible
query I rowsort label-9504
SELECT 26 * ( COUNT ( * ) ) FROM tab1
----
78

query I rowsort
SELECT DISTINCT + col0 + - - ( col2 ) AS col1 FROM tab2
----
104
133
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9506
SELECT DISTINCT ( + + 56 ) * + COUNT( * ) FROM tab0
----
168

skipif mysql # not compatible
query I rowsort label-9506
SELECT DISTINCT ( + + 56 ) * + COUNT ( * ) FROM tab0
----
168

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - ( col2 ) ) IS NULL
----

query I rowsort
SELECT ALL col2 + col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
196
62
97

query I rowsort
SELECT + 87 + + col0 AS col2 FROM tab2 AS cor0
----
133
151
162

query I rowsort
SELECT DISTINCT + + 55 / - - col2 * - col1 FROM tab0 WHERE NULL > NULL
----

query I rowsort
SELECT col2 + col0 * 0 + - col1 AS col0 FROM tab1
----
21
54
82

query I rowsort
SELECT - + ( 75 ) AS col1 FROM tab0 AS cor0
----
-75
-75
-75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 84 * - - col1 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 + - - col1 AS col2 FROM tab0 AS cor0 WHERE NOT 31 IN ( - 33 )
----
108
96
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9515
SELECT - COUNT( ALL col0 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9515
SELECT - COUNT ( ALL col0 ) AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9516
SELECT ALL 4 * - + COUNT( * ) - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-9516
SELECT ALL 4 * - + COUNT ( * ) - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-15

query I rowsort
SELECT DISTINCT + ( + + ( 81 ) ) + + 61 AS col0 FROM tab0 AS cor0
----
142

query I rowsort
SELECT DISTINCT - 50 - + 17 FROM tab2 AS cor0
----
-67

query I rowsort
SELECT ALL 22 * - 76 AS col2 FROM tab1
----
-1672
-1672
-1672

onlyif mysql # aggregate syntax: 
query I rowsort label-9520
SELECT + COUNT( col2 ) FROM tab0 WHERE NULL BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9520
SELECT + COUNT ( col2 ) FROM tab0 WHERE NULL BETWEEN NULL AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9521
SELECT DISTINCT + MIN( DISTINCT - col1 ) * 25 - + 7 FROM tab2
----
-1932

skipif mysql # not compatible
query I rowsort label-9521
SELECT DISTINCT + MIN ( DISTINCT - col1 ) * 25 - + 7 FROM tab2
----
-1932

onlyif mysql # DIV for integer division: 
query I rowsort label-9522
SELECT DISTINCT col0 - - - col1 DIV 31 + col2 FROM tab0
----
196
60
97

skipif mysql # not compatible
query I rowsort label-9522
SELECT DISTINCT col0 - - - col1 / 31 + col2 FROM tab0
----
196
60
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 54 + - - 66 col0 FROM tab0 WHERE NOT ( NOT + col1 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9524
SELECT + SUM( DISTINCT 12 ) - - 86 AS col1 FROM tab0
----
98

skipif mysql # not compatible
query I rowsort label-9524
SELECT + SUM ( DISTINCT 12 ) - - 86 AS col1 FROM tab0
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9525
SELECT ALL + 52 DIV CAST( COUNT( * ) AS SIGNED ) col2 FROM tab0
----
17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9525
SELECT ALL + 52 / CAST ( COUNT ( * ) AS INTEGER ) col2 FROM tab0
----
17

query I rowsort
SELECT - col0 - ( - ( - 40 ) ) FROM tab0
----
-127
-137
-55

query II rowsort
SELECT ALL col2 AS col1, ( + ( - - col1 ) ) FROM tab2
----
23
51
40
77
58
67

query III rowsort
SELECT * FROM tab2 WHERE 38 * + 68 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT col1, + col1 * + + col1 FROM tab2 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9530
SELECT + col0 * + col0 AS col2 FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN ( - 34 ) * CAST( - + col0 AS SIGNED ) * + 54 AND + 83 * 76
----

skipif mysql # not compatible
query I rowsort label-9530
SELECT + col0 * + col0 AS col2 FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN ( - 34 ) * CAST ( - + col0 AS INTEGER ) * + 54 AND + 83 * 76
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9531
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + CAST( + - col0 AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-9531
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + CAST ( + - col0 AS INTEGER ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9532
SELECT DISTINCT + + MAX( col2 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-9532
SELECT DISTINCT + + MAX ( col2 ) FROM tab2 AS cor0
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9533
SELECT DISTINCT - MAX( - - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9533
SELECT DISTINCT - MAX ( - - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9534
SELECT - 19 * 38 AS col2, COUNT( col1 ) AS col2 FROM tab2
----
-722
3

skipif mysql # not compatible
query II rowsort label-9534
SELECT - 19 * 38 AS col2, COUNT ( col1 ) AS col2 FROM tab2
----
-722
3

query I rowsort
SELECT 23 + col1 FROM tab2 WHERE NOT + col0 + - - 90 * - col2 > - col0
----
100
74
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 27 col1 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9537
SELECT + COUNT( * ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE - 22 IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-9537
SELECT + COUNT ( * ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE - 22 IS NOT NULL
----
9

query I rowsort
SELECT ALL + 7 AS col2 FROM tab2 cor0
----
7
7
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 72 col0 FROM tab0 AS cor0
----
72

query I rowsort
SELECT ALL - col1 - col2 FROM tab0 AS cor0 WHERE col2 NOT IN ( - 67, col0 )
----
-100
-128
-31

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + col2 * - + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 8 * - - 35 + - - col1 AS col0 FROM tab2 AS cor0
----
-203
-213
-229

onlyif mysql # aggregate syntax: 
query I rowsort label-9543
SELECT SUM( DISTINCT col1 ) AS col2 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-9543
SELECT SUM ( DISTINCT col1 ) AS col2 FROM tab2
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-9544
SELECT ALL - SUM( + + 84 ) FROM tab1
----
-252

skipif mysql # not compatible
query I rowsort label-9544
SELECT ALL - SUM ( + + 84 ) FROM tab1
----
-252

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col1, col0 FROM tab0
----
1
97
21
87
81
15

query I rowsort
SELECT DISTINCT ( col0 ) AS col1 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND - 52 * + 25 + - 79 + - - col0 * 16
----

query II rowsort
SELECT DISTINCT + 25 * - + 12 * 29, + 65 * + ( 53 ) - 86 AS col2 FROM tab0
----
-8700
3359

query I rowsort
SELECT ALL + 75 * - - col0 AS col1 FROM tab2
----
3450
4800
5625

query II rowsort
SELECT DISTINCT col1, + 97 * + ( + col1 ) AS col1 FROM tab1
----
14
1358
47
4559
5
485

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9550
SELECT + COUNT( * ) AS col2 FROM tab1 WHERE col2 * CAST( NULL AS SIGNED ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9550
SELECT + COUNT ( * ) AS col2 FROM tab1 WHERE col2 * CAST ( NULL AS INTEGER ) IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9551
SELECT DISTINCT - SUM( + col2 ) FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-9551
SELECT DISTINCT - SUM ( + col2 ) FROM tab1
----
-223

query I rowsort
SELECT + - col1 * - col0 + + col0 + - ( col0 ) AS col0 FROM tab0 AS cor0
----
1215
1827
97

query I rowsort
SELECT + 98 + - col1 + + col0 FROM tab1 AS cor0
----
135
142
178

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 49 <> NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9555
SELECT - - COUNT( * ) col2, + 81 DIV - ( + 78 ) FROM tab2 AS cor0
----
3
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9555
SELECT - - COUNT ( * ) col2, + 81 / - ( + 78 ) FROM tab2 AS cor0
----
3
-1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 28 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - col2 + - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT ( + 57 ) FROM tab2 WHERE NOT NULL = - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9559
SELECT CAST( 51 AS SIGNED ) + 65 FROM tab2 cor0
----
116
116
116

skipif mysql # not compatible
query I rowsort label-9559
SELECT CAST ( 51 AS INTEGER ) + 65 FROM tab2 cor0
----
116
116
116

query I rowsort
SELECT ALL - 56 + + col0 FROM tab0 AS cor0
----
-41
31
41

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9561
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL = col2 * ( - - CAST( + ( - + 72 ) AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9561
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL = col2 * ( - - CAST ( + ( - + 72 ) AS INTEGER ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 * - col1 >= + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 + - 91 FROM tab0 AS cor0
----
-10
-70
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9564
SELECT ALL - 2 - - - COUNT( * ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-9564
SELECT ALL - 2 - - - COUNT ( * ) FROM tab1 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9565
SELECT - ( - COUNT( * ) ) * ( - SUM( + col2 ) ) FROM tab0 AS cor0 WHERE col2 NOT BETWEEN col0 AND col2 / - + col2 - + col0 * - 51 + - col1
----
-10

skipif mysql # not compatible
query I rowsort label-9565
SELECT - ( - COUNT ( * ) ) * ( - SUM ( + col2 ) ) FROM tab0 AS cor0 WHERE col2 NOT BETWEEN col0 AND col2 / - + col2 - + col0 * - 51 + - col1
----
-10

query I rowsort
SELECT ALL 40 FROM tab2 AS cor0 WHERE NULL BETWEEN - 47 * - 37 + + 33 AND + col1 + + 24 * - + col2 * + col1 + - 64
----

query I rowsort
SELECT ALL col0 + 54 AS col2 FROM tab1 AS cor0
----
105
139
145

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 <> + ( - col2 ) + - col0 + + 1 * + 54 + + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col2 * col1 FROM tab1 AS cor0 WHERE NOT 16 IN ( + + 72, 98, - + 12 + + col1 )
----
1344
295
3196

query I rowsort
SELECT ALL + + 33 + + col1 FROM tab1 AS cor0
----
38
47
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9571
SELECT ALL CAST( NULL AS SIGNED ) / + 39 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9571
SELECT ALL CAST ( NULL AS INTEGER ) / + 39 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9572
SELECT ALL * FROM tab1 WHERE + + col1 * + + CAST( NULL AS DECIMAL ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9572
SELECT ALL * FROM tab1 WHERE + + col1 * + + CAST ( NULL AS REAL ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT col0 AS col1, - ( + col0 ), - col0 * col1 AS col0 FROM tab1
----
9 values hashing to 3ad7e16e1896c952bb2a9516383bbd5f

onlyif mysql # aggregate syntax: 
query I rowsort label-9574
SELECT DISTINCT + MIN( DISTINCT + - col1 ) col2 FROM tab0
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9574
SELECT DISTINCT + MIN ( DISTINCT + - col1 ) col2 FROM tab0
----
-81

query II rowsort
SELECT + col0 AS col1, ( + - col1 ) * + - col1 FROM tab0
----
15
6561
87
441
97
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9576
SELECT - col0 * - CAST( + col0 AS SIGNED ) AS col1, - col1 AS col2 FROM tab1
----
2601
-14
7225
-5
8281
-47

skipif mysql # not compatible
query II rowsort label-9576
SELECT - col0 * - CAST ( + col0 AS INTEGER ) AS col1, - col1 AS col2 FROM tab1
----
2601
-14
7225
-5
8281
-47

query II rowsort
SELECT - - col1, 16 * 25 / + 87 AS col0 FROM tab1 AS cor0 WHERE NOT + col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9578
SELECT + - ( - COUNT( * ) ) * MAX( + col0 ) FROM tab2 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-9578
SELECT + - ( - COUNT ( * ) ) * MAX ( + col0 ) FROM tab2 AS cor0
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-9579
SELECT ALL + - COUNT( + - col1 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9579
SELECT ALL + - COUNT ( + - col1 ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9580
SELECT COUNT( * ) - + + 44 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-35

skipif mysql # not compatible
query I rowsort label-9580
SELECT COUNT ( * ) - + + 44 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-35

query IIIIII rowsort
SELECT ALL * FROM tab1 cor0 JOIN tab2 AS cor1 ON NOT NULL IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query II rowsort
SELECT col2, - 78 FROM tab0
----
10
-78
47
-78
99
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 col2 FROM tab1 AS cor0 WHERE NOT NULL >= - col0
----

query I rowsort
SELECT ALL 96 + - col0 * - ( + + col2 ) FROM tab1 AS cor0
----
4992
5111
6284

query II rowsort
SELECT ALL 3, 16 * - col1 AS col2 FROM tab2 cor0
----
3
-1072
3
-1232
3
-816

query I rowsort
SELECT ALL + 84 * - + col2 + - + ( + 96 ) AS col1 FROM tab0 AS cor0
----
-4044
-8412
-936

query II rowsort
SELECT + 3, - col1 + + col0 AS col0 FROM tab1 AS cor0
----
3
37
3
44
3
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9588
SELECT + 75 * MIN( + + col1 ) FROM tab2
----
3825

skipif mysql # not compatible
query I rowsort label-9588
SELECT + 75 * MIN ( + + col1 ) FROM tab2
----
3825

query I rowsort
SELECT - ( col0 ) * + col0 AS col2 FROM tab1
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-9590
SELECT + COUNT( * ) AS col1 FROM tab1 WHERE ( - col1 + + col0 ) > - col0
----
3

skipif mysql # not compatible
query I rowsort label-9590
SELECT + COUNT ( * ) AS col1 FROM tab1 WHERE ( - col1 + + col0 ) > - col0
----
3

query I rowsort
SELECT col2 + col0 * + col1 + col1 AS col1 FROM tab1 AS cor0
----
4392
489
824

query I rowsort
SELECT ALL + + col2 + + + col1 AS col1 FROM tab0 AS cor0
----
100
128
31

query I rowsort
SELECT DISTINCT ( + - 79 ) + - 55 FROM tab2 cor0
----
-134

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) <> ( - col1 )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE col1 / - - 29 <> NULL
----

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE ( + col2 - + col1 + 61 * - - col1 * - 4 IS NULL )
----

query I rowsort
SELECT + ( + 41 ) AS col1 FROM tab1 AS cor0
----
41
41
41

query II rowsort
SELECT - 37, + 3 + + + col2 AS col2 FROM tab2 AS cor0
----
-37
26
-37
43
-37
61

query II rowsort
SELECT + col0 AS col0, col0 AS col2 FROM tab1 cor0
----
51
51
85
85
91
91

query II rowsort
SELECT col0 * + 16, col2 AS col0 FROM tab2
----
1024
40
1200
58
736
23

query I rowsort
SELECT ALL - 84 AS col0 FROM tab2
----
-84
-84
-84

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 * - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 26 ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9604
SELECT ALL - - col1 * - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9604
SELECT ALL - - col1 * - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9605
SELECT ALL - col1 DIV CAST( + 33 AS SIGNED ) + - col0 FROM tab2 AS cor0
----
-47
-66
-77

skipif mysql # not compatible
query I rowsort label-9605
SELECT ALL - col1 / CAST ( + 33 AS INTEGER ) + - col0 FROM tab2 AS cor0
----
-47
-66
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-9606
SELECT DISTINCT 42 * - 1, - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-42
-3

skipif mysql # not compatible
query II rowsort label-9606
SELECT DISTINCT 42 * - 1, - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-42
-3

query I rowsort
SELECT 82 * - col1 FROM tab0 AS cor0
----
-1722
-6642
-82

query I rowsort
SELECT DISTINCT + 51 * - ( - - col1 ) * - - col2 FROM tab0 AS cor0
----
-10710
-194157
-5049

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9609
SELECT DISTINCT col2 * - - col1 - ( + CAST( - - col1 AS SIGNED ) ) + col0 * - - col0 * col0 col0 FROM tab0 AS cor0
----
658692
7101
912771

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9609
SELECT DISTINCT col2 * - - col1 - ( + CAST ( - - col1 AS INTEGER ) ) + col0 * - - col0 * col0 col0 FROM tab0 AS cor0
----
658692
7101
912771

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - col0 ) = NULL
----

query I rowsort
SELECT ALL - col2 + + 53 FROM tab0 AS cor0
----
-46
43
6

query I rowsort
SELECT ALL + col1 / + col2 AS col0 FROM tab2 cor0 WHERE NOT NULL <= - 44
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9613
SELECT + MIN( - col1 ) * - - 79, 17 col2 FROM tab0 AS cor0
----
-6399
17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9613
SELECT + MIN ( - col1 ) * - - 79, 17 col2 FROM tab0 AS cor0
----
-6399
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9614
SELECT ALL 8 * - 67 * 82 + CAST( NULL AS SIGNED ) + - col2 + + col1 - - CAST( col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9614
SELECT ALL 8 * - 67 * 82 + CAST ( NULL AS INTEGER ) + - col2 + + col1 - - CAST ( col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + col2, + 85 + + 66 * + col2 * - - col0 FROM tab1 AS cor0
----
59
331075
68
408493
96
323221

query I rowsort
SELECT ALL + 78 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
78
78
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9617
SELECT DISTINCT + 41 + + + MAX( - 53 ) + - ( + 9 ) FROM tab2 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-9617
SELECT DISTINCT + 41 + + + MAX ( - 53 ) + - ( + 9 ) FROM tab2 AS cor0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-9618
SELECT ALL COUNT( ALL + - 29 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9618
SELECT ALL COUNT ( ALL + - 29 ) AS col0 FROM tab0
----
3

query III rowsort
SELECT * FROM tab2 WHERE NULL = - ( - col0 ) + col1 + - ( - + col2 )
----

query I rowsort
SELECT 16 + - - 52 AS col0 FROM tab2
----
68
68
68

onlyif mysql # DIV for integer division: 
query I rowsort label-9621
SELECT 57 DIV + col2 + 6 FROM tab1 AS cor0
----
6
6
6

skipif mysql # not compatible
query I rowsort label-9621
SELECT 57 / + col2 + 6 FROM tab1 AS cor0
----
6
6
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9622
SELECT DISTINCT - 11 + COUNT( * ) FROM tab1 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-9622
SELECT DISTINCT - 11 + COUNT ( * ) FROM tab1 AS cor0
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9623
SELECT ALL COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) + + ( + + 38 ) * col1 < + col2
----
0

skipif mysql # not compatible
query I rowsort label-9623
SELECT ALL COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) + + ( + + 38 ) * col1 < + col2
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 * - 56 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9625
SELECT + col0 + - - col2, CAST( col0 AS SIGNED ) AS col1 FROM tab1
----
144
85
147
51
159
91

skipif mysql # not compatible
query II rowsort label-9625
SELECT + col0 + - - col2, CAST ( col0 AS INTEGER ) AS col1 FROM tab1
----
144
85
147
51
159
91

query III rowsort
SELECT * FROM tab0 WHERE ( col2 ) < + 56
----
15
81
47
87
21
10

query II rowsort
SELECT - col0 * - 66 AS col0, col0 * - - col0 * + col0 AS col2 FROM tab1 AS cor0
----
3366
132651
5610
614125
6006
753571

query I rowsort
SELECT + 55 * - - 82 * col1 AS col1 FROM tab2 AS cor0
----
230010
302170
347270

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9629
SELECT - + MAX( ALL CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9629
SELECT - + MAX ( ALL CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9630
SELECT DISTINCT + MAX( ( - + 78 ) ) col0 FROM tab1 AS cor0
----
-78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9630
SELECT DISTINCT + MAX ( ( - + 78 ) ) col0 FROM tab1 AS cor0
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9631
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 + - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9631
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 + - CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9632
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) NOT IN ( CAST( NULL AS SIGNED ), - col2 )
----

skipif mysql # not compatible
query III rowsort label-9632
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) NOT IN ( CAST ( NULL AS INTEGER ), - col2 )
----

query I rowsort
SELECT ALL - ( - 81 ) FROM tab0 AS cor0
----
81
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9634
SELECT + MIN( - col2 ) AS col2 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-9634
SELECT + MIN ( - col2 ) AS col2 FROM tab0
----
-99

query I rowsort
SELECT col0 * - 98 FROM tab0
----
-1470
-8526
-9506

query I rowsort
SELECT DISTINCT - col0 * - 94 FROM tab0
----
1410
8178
9118

onlyif mysql # aggregate syntax: 
query I rowsort label-9637
SELECT MIN( - + 14 ) AS col1 FROM tab0
----
-14

skipif mysql # not compatible
query I rowsort label-9637
SELECT MIN ( - + 14 ) AS col1 FROM tab0
----
-14

query I rowsort
SELECT DISTINCT 10 * 59 FROM tab1
----
590

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 57 * - - col1 * + col2 col2 FROM tab2 AS cor0
----
-175560
-221502
-66861

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 53 col0 FROM tab1 cor0
----
-53
-53
-53

onlyif mysql # DIV for integer division: 
query II rowsort label-9641
SELECT + col2 AS col0, + 44 - + col1 DIV + col0 + + 73 AS col0 FROM tab0 AS cor0
----
10
117
47
112
99
117

skipif mysql # not compatible
query II rowsort label-9641
SELECT + col2 AS col0, + 44 - + col1 / + col0 + + 73 AS col0 FROM tab0 AS cor0
----
10
117
47
112
99
117

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 > NULL
----

query I rowsort
SELECT - - col1 + + col2 + - col2 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9644
SELECT DISTINCT - COUNT( * ) + - MAX( ALL col0 ) FROM tab2 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-9644
SELECT DISTINCT - COUNT ( * ) + - MAX ( ALL col0 ) FROM tab2 AS cor0
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9645
SELECT - CAST( NULL AS SIGNED ) * + 53 FROM tab0 AS cor0 WHERE - col0 NOT BETWEEN ( NULL ) AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-9645
SELECT - CAST ( NULL AS INTEGER ) * + 53 FROM tab0 AS cor0 WHERE - col0 NOT BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT - ( - col0 ) + 51 FROM tab2 AS cor0
----
115
126
97

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 BETWEEN + col0 AND col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + + col1 * + col0 + - col0 + + ( col1 ) FROM tab0 cor0
----
1
1281
1761

query I rowsort
SELECT + + 59 AS col2 FROM tab1 cor0
----
59
59
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - ( - + col2 ) * - col1 + - + col1 col2, + col0 AS col0 FROM tab2 cor0
----
-1224
46
-3157
64
-3953
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9651
SELECT + COUNT( * ) * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9651
SELECT + COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9652
SELECT + + SUM( DISTINCT + + 12 ) AS col0 FROM tab0 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-9652
SELECT + + SUM ( DISTINCT + + 12 ) AS col0 FROM tab0 AS cor0
----
12

query I rowsort
SELECT DISTINCT - + col2 FROM tab1 AS cor0 WHERE NOT ( - col0 * + col1 * col2 * - col1 ) < + ( - + col0 ) + - + col0
----
-59
-68
-96

query I rowsort
SELECT ALL col1 * 7 AS col1 FROM tab1
----
329
35
98

query I rowsort
SELECT DISTINCT + col0 * - + col1 AS col0 FROM tab0
----
-1215
-1827
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9656
SELECT CAST( - 59 AS SIGNED ) * - col1 FROM tab2
----
3009
3953
4543

skipif mysql # not compatible
query I rowsort label-9656
SELECT CAST ( - 59 AS INTEGER ) * - col1 FROM tab2
----
3009
3953
4543

query I rowsort
SELECT ALL col0 * - + 75 * + + 21 FROM tab1
----
-133875
-143325
-80325

query I rowsort
SELECT DISTINCT col0 * - col2 * + col0 AS col1 FROM tab0
----
-10575
-75690
-931491

query I rowsort
SELECT col1 * - - col0 FROM tab2
----
2346
4928
5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 14 * 14 col2 FROM tab2
----
196
196
196

onlyif mysql # DIV for integer division: 
query I rowsort label-9661
SELECT DISTINCT - col2 DIV - - col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9661
SELECT DISTINCT - col2 / - - col0 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9662
SELECT - CAST( NULL AS SIGNED ) - + col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9662
SELECT - CAST ( NULL AS INTEGER ) - + col2 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9663
SELECT SUM( + col0 ) - - - COUNT( ALL col2 ) AS col1 FROM tab2
----
182

skipif mysql # not compatible
query I rowsort label-9663
SELECT SUM ( + col0 ) - - - COUNT ( ALL col2 ) AS col1 FROM tab2
----
182

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9664
SELECT DISTINCT 60 + 77 AS col0 FROM tab0 WHERE NOT NULL > ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-9664
SELECT DISTINCT 60 + 77 AS col0 FROM tab0 WHERE NOT NULL > ( - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT - 78 + - col1 * + - col2 * + col1 + + col0 + col2 * - col1 FROM tab0 AS cor0
----
19
304497
4209

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + + 12 ) - - col1 * - col2 + + col2 + + col2 * col0 col0 FROM tab2 AS cor0
----
-104
-492
510

query I rowsort
SELECT ALL + col2 + 55 FROM tab0 AS cor0
----
102
154
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9668
SELECT DISTINCT COUNT( * ) - + - 51 AS col0 FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-9668
SELECT DISTINCT COUNT ( * ) - + - 51 AS col0 FROM tab1
----
54

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9669
SELECT DISTINCT - 85 - MAX( DISTINCT - CAST( NULL AS DECIMAL ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9669
SELECT DISTINCT - 85 - MAX ( DISTINCT - CAST ( NULL AS REAL ) ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9670
SELECT * FROM tab2 WHERE NOT CAST( NULL AS DECIMAL ) <= col1
----

skipif mysql # not compatible
query III rowsort label-9670
SELECT * FROM tab2 WHERE NOT CAST ( NULL AS REAL ) <= col1
----

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE - - 53 + + 39 >= NULL
----

query II rowsort
SELECT DISTINCT - 99, col1 + - col1 AS col1 FROM tab1 cor0
----
-99
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 73 / col0 + + 9 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - 68, 8 AS col2 FROM tab0 cor0
----
-68
8

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col0 * + 6 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 49 col0, col1 FROM tab2 AS cor0
----
49
51
49
67
49
77

onlyif mysql # DIV for integer division: 
query II rowsort label-9677
SELECT - col1 AS col2, 45 DIV + + col1 AS col1 FROM tab0 AS cor0
----
-1
45
-21
2
-81
0

skipif mysql # not compatible
query II rowsort label-9677
SELECT - col1 AS col2, 45 / + + col1 AS col1 FROM tab0 AS cor0
----
-1
45
-21
2
-81
0

query I rowsort
SELECT - col1 * - 33 * 62 * + col2 AS col1 FROM tab1
----
2749824
603570
6539016

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9679
SELECT DISTINCT * FROM tab0 WHERE - col0 * + + 90 * - - col1 = + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9679
SELECT DISTINCT * FROM tab0 WHERE - col0 * + + 90 * - - col1 = + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9680
SELECT ALL - COUNT( ALL - col1 ) col2, 69 col2 FROM tab0
----
-3
69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9680
SELECT ALL - COUNT ( ALL - col1 ) col2, 69 col2 FROM tab0
----
-3
69

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9681
SELECT - col0 FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS DECIMAL ) * - - col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-9681
SELECT - col0 FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS REAL ) * - - col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9682
SELECT ALL - + col1 DIV 31 * + 28 + col2 FROM tab2 AS cor0
----
-16
-5
2

skipif mysql # not compatible
query I rowsort label-9682
SELECT ALL - + col1 / 31 * + 28 + col2 FROM tab2 AS cor0
----
-16
-5
2

query I rowsort
SELECT ALL - 2 + + col0 AS col2 FROM tab1 AS cor0
----
49
83
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9684
SELECT + MAX( + col0 ) + 44 FROM tab1 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-9684
SELECT + MAX ( + col0 ) + 44 FROM tab1 AS cor0
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-9685
SELECT - + COUNT( * ) + - 84 FROM tab2 cor0
----
-87

skipif mysql # not compatible
query I rowsort label-9685
SELECT - + COUNT ( * ) + - 84 FROM tab2 cor0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-9686
SELECT ALL - COUNT( * ) + - 12 AS col2 FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-9686
SELECT ALL - COUNT ( * ) + - 12 AS col2 FROM tab1 AS cor0
----
-15

query I rowsort
SELECT ALL ( + col1 ) + + col2 + + col0 FROM tab2
----
120
181
200

query I rowsort
SELECT ALL + 85 - col1 AS col0 FROM tab0
----
4
64
84

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 45 * col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9690
SELECT - 70 DIV col0 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9690
SELECT - 70 / col0 FROM tab1 AS cor0
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9691
SELECT DISTINCT + CAST( 28 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-9691
SELECT DISTINCT + CAST ( 28 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
28

query I rowsort
SELECT DISTINCT - ( - col2 ) * col0 - - + 58 + + + col0 AS col1 FROM tab0
----
1015
778
9758

query I rowsort
SELECT DISTINCT + 57 * - 52 AS col1 FROM tab1
----
-2964

query I rowsort
SELECT - 27 AS col1 FROM tab2 WHERE NOT - + 66 IS NULL
----
-27
-27
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9695
SELECT DISTINCT + - CAST( - - ( - + 76 ) AS SIGNED ) AS col2 FROM tab0 WHERE NOT NULL IN ( - 40, + col2 )
----

skipif mysql # not compatible
query I rowsort label-9695
SELECT DISTINCT + - CAST ( - - ( - + 76 ) AS INTEGER ) AS col2 FROM tab0 WHERE NOT NULL IN ( - 40, + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9696
SELECT - ( MIN( - col1 ) ) AS col2 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-9696
SELECT - ( MIN ( - col1 ) ) AS col2 FROM tab0 AS cor0
----
81

query I rowsort
SELECT ( - col2 ) * + 24 + 62 FROM tab1 AS cor0
----
-1354
-1570
-2242

onlyif mysql # aggregate syntax: 
query I rowsort label-9698
SELECT ALL COUNT( * ) col0 FROM tab1 AS cor0 WHERE NOT + col2 <> ( - 98 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9698
SELECT ALL COUNT ( * ) col0 FROM tab1 AS cor0 WHERE NOT + col2 <> ( - 98 )
----
0

query I rowsort
SELECT DISTINCT col2 * + 70 FROM tab1 AS cor0
----
4130
4760
6720

onlyif mysql # aggregate syntax: 
query I rowsort label-9700
SELECT + + COUNT( - col2 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9700
SELECT + + COUNT ( - col2 ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9701
SELECT + ( col2 ) DIV + - col0 + - col2 FROM tab1 AS cor0
----
-59
-68
-97

skipif mysql # not compatible
query I rowsort label-9701
SELECT + ( col2 ) / + - col0 + - col2 FROM tab1 AS cor0
----
-59
-68
-97

query I rowsort
SELECT ALL - 88 * - col0 + 47 FROM tab0 AS cor0
----
1367
7703
8583

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 + - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 45 * + ( col2 ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9705
SELECT DISTINCT + - COUNT( DISTINCT + - col0 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9705
SELECT DISTINCT + - COUNT ( DISTINCT + - col0 ) FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9706
SELECT ALL + CAST( + 26 AS SIGNED ) AS col1 FROM tab1
----
26
26
26

skipif mysql # not compatible
query I rowsort label-9706
SELECT ALL + CAST ( + 26 AS INTEGER ) AS col1 FROM tab1
----
26
26
26

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 89 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9708
SELECT DISTINCT COUNT( * ) AS col1, CAST( NULL AS SIGNED ) / + COUNT( * ) FROM tab1
----
3
NULL

skipif mysql # not compatible
query II rowsort label-9708
SELECT DISTINCT COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) / + COUNT ( * ) FROM tab1
----
3
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 99 col2, 17 AS col1 FROM tab2
----
99
17
99
17
99
17

onlyif mysql # aggregate syntax: 
query II rowsort label-9710
SELECT DISTINCT - COUNT( * ) AS col1, 25 FROM tab0
----
-3
25

skipif mysql # not compatible
query II rowsort label-9710
SELECT DISTINCT - COUNT ( * ) AS col1, 25 FROM tab0
----
-3
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9711
SELECT CAST( - ( + COUNT( * ) ) AS SIGNED ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9711
SELECT CAST ( - ( + COUNT ( * ) ) AS INTEGER ) FROM tab0
----
-3

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 / col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9713
SELECT ALL + 52 DIV - ( + + COUNT( * ) ) FROM tab2
----
-17

skipif mysql # not compatible
query I rowsort label-9713
SELECT ALL + 52 / - ( + + COUNT ( * ) ) FROM tab2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-9714
SELECT - 32 * - SUM( - - col0 ) AS col0 FROM tab0
----
6368

skipif mysql # not compatible
query I rowsort label-9714
SELECT - 32 * - SUM ( - - col0 ) AS col0 FROM tab0
----
6368

query I rowsort
SELECT + 4 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
4
4
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9716
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9716
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9717
SELECT ALL SUM( + col0 ) + + - CAST( + + COUNT( * ) AS SIGNED ) FROM tab0 cor0
----
196

skipif mysql # not compatible
query I rowsort label-9717
SELECT ALL SUM ( + col0 ) + + - CAST ( + + COUNT ( * ) AS INTEGER ) FROM tab0 cor0
----
196

onlyif mysql # aggregate syntax: 
query I rowsort label-9718
SELECT ALL - - SUM( DISTINCT + col0 ) * COUNT( * ) - - 52 FROM tab1 AS cor0
----
733

skipif mysql # not compatible
query I rowsort label-9718
SELECT ALL - - SUM ( DISTINCT + col0 ) * COUNT ( * ) - - 52 FROM tab1 AS cor0
----
733

query II rowsort
SELECT DISTINCT - 75 + + - col1, + 85 * col0 AS col2 FROM tab2 AS cor0
----
-126
3910
-142
6375
-152
5440

onlyif mysql # aggregate syntax: 
query I rowsort label-9720
SELECT ALL ( + COUNT( ( - col2 ) ) ) + - COUNT( DISTINCT + col1 ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9720
SELECT ALL ( + COUNT ( ( - col2 ) ) ) + - COUNT ( DISTINCT + col1 ) AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - + col1 AS col0 FROM tab0 WHERE col0 IS NOT NULL
----
-1
-21
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2, - col0 col0 FROM tab0
----
10
-87
47
-15
99
-97

query I rowsort
SELECT DISTINCT - 43 - + 42 FROM tab0
----
-85

query I rowsort
SELECT DISTINCT col0 - + + col2 AS col2 FROM tab1
----
-45
23
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9725
SELECT col1 + + col0 - 22 * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9725
SELECT col1 + + col0 - 22 * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <= 55
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9727
SELECT DISTINCT + ( - 3 ) * COUNT( * ) AS col0 FROM tab1 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9727
SELECT DISTINCT + ( - 3 ) * COUNT ( * ) AS col0 FROM tab1 cor0
----
-9

query I rowsort
SELECT ALL + 0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # aggregate syntax: 
query I rowsort label-9729
SELECT ALL - MIN( DISTINCT - + col0 ) AS col1 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-9729
SELECT ALL - MIN ( DISTINCT - + col0 ) AS col1 FROM tab0 AS cor0
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9730
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT col2 BETWEEN NULL AND - CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-9730
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col2 BETWEEN NULL AND - CAST ( NULL AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9731
SELECT ALL SUM( DISTINCT + + col0 ) AS col1, + COUNT( * ) + - - 94 AS col0 FROM tab0 AS cor0
----
199
97

skipif mysql # not compatible
query II rowsort label-9731
SELECT ALL SUM ( DISTINCT + + col0 ) AS col1, + COUNT ( * ) + - - 94 AS col0 FROM tab0 AS cor0
----
199
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * + 17 col2 FROM tab0 AS cor0
----
-1479
-1649
-255

onlyif mysql # aggregate syntax: 
query I rowsort label-9733
SELECT - SUM( DISTINCT - 84 ) * - - 65 FROM tab1 AS cor0
----
5460

skipif mysql # not compatible
query I rowsort label-9733
SELECT - SUM ( DISTINCT - 84 ) * - - 65 FROM tab1 AS cor0
----
5460

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9734
SELECT - ( + ( - CAST( - - 36 AS SIGNED ) ) ) DIV + COUNT( * ) AS col0 FROM tab2 cor0
----
12

skipif mysql # not compatible
query I rowsort label-9734
SELECT - ( + ( - CAST ( - - 36 AS INTEGER ) ) ) / + COUNT ( * ) AS col0 FROM tab2 cor0
----
12

query I rowsort
SELECT + 74 * col2 FROM tab1
----
4366
5032
7104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9736
SELECT 40 + + + CAST( NULL AS SIGNED ) * + 12 + + 30 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9736
SELECT 40 + + + CAST ( NULL AS INTEGER ) * + 12 + + 30 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9737
SELECT col0 + col1 * - - col1 + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9737
SELECT col0 + col1 * - - col1 + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9738
SELECT ALL + 11 + + MIN( + + col2 ) AS col1, 4 - - + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
21
NULL

skipif mysql # not compatible
query II rowsort label-9738
SELECT ALL + 11 + + MIN ( + + col2 ) AS col1, 4 - - + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
21
NULL

query I rowsort
SELECT DISTINCT + col1 + - 0 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9740
SELECT + COUNT( * ) + 3 AS col2 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9740
SELECT + COUNT ( * ) + 3 AS col2 FROM tab2 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9741
SELECT DISTINCT - ( + + SUM( DISTINCT + + col0 ) ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-9741
SELECT DISTINCT - ( + + SUM ( DISTINCT + + col0 ) ) FROM tab1 AS cor0
----
-227

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 77 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9743
SELECT - MAX( - 99 ) + - 58 FROM tab0 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-9743
SELECT - MAX ( - 99 ) + - 58 FROM tab0 AS cor0
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9744
SELECT ALL + - col1 + - 30 + + - ( - 31 ) AS col1, + CAST( + - col0 AS SIGNED ) * + - col0 + - 45 FROM tab2 AS cor0
----
-50
2071
-66
5580
-76
4051

skipif mysql # not compatible
query II rowsort label-9744
SELECT ALL + - col1 + - 30 + + - ( - 31 ) AS col1, + CAST ( + - col0 AS INTEGER ) * + - col0 + - 45 FROM tab2 AS cor0
----
-50
2071
-66
5580
-76
4051

query II rowsort
SELECT ALL col2 AS col1, ( + col1 ) AS col1 FROM tab2 AS cor0
----
23
51
40
77
58
67

query I rowsort
SELECT + 85 + - 92 * + col2 AS col1 FROM tab2 AS cor0
----
-2031
-3595
-5251

query I rowsort
SELECT ALL + col0 + 79 AS col2 FROM tab1 AS cor0
----
130
164
170

onlyif mysql # aggregate syntax: 
query I rowsort label-9748
SELECT + - MIN( - + col0 ) + + COUNT( * ) FROM tab1 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-9748
SELECT + - MIN ( - + col0 ) + + COUNT ( * ) FROM tab1 AS cor0
----
94

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9749
SELECT + - col2 + - CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9749
SELECT + - col2 + - CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 86 - col2 col1 FROM tab1
----
-10
18
27

onlyif mysql # aggregate syntax: 
query II rowsort label-9751
SELECT DISTINCT + 91 + + - COUNT( * ), 18 * + - ( + 0 ) + SUM( + col0 ) AS col1 FROM tab2
----
88
185

skipif mysql # not compatible
query II rowsort label-9751
SELECT DISTINCT + 91 + + - COUNT ( * ), 18 * + - ( + 0 ) + SUM ( + col0 ) AS col1 FROM tab2
----
88
185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9752
SELECT ALL + CAST( NULL AS SIGNED ) * col1 FROM tab0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9752
SELECT ALL + CAST ( NULL AS INTEGER ) * col1 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 > col2 + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9754
SELECT col0 DIV + + 60 AS col0 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9754
SELECT col0 / + + 60 AS col0 FROM tab0
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9755
SELECT ALL SUM( ALL col1 ) col1 FROM tab2
----
195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9755
SELECT ALL SUM ( ALL col1 ) col1 FROM tab2
----
195

query I rowsort
SELECT DISTINCT col1 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
1
21
81

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL > + 84
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9758
SELECT ALL + + COUNT( + ( - 75 ) ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9758
SELECT ALL + + COUNT ( + ( - 75 ) ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT - ( col0 ) AS col1 FROM tab1 WHERE NOT - col1 - col2 > - - ( 93 ) * 94 + + col1
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-9760
SELECT DISTINCT + COUNT( * ), + 25 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
9
25

skipif mysql # not compatible
query II rowsort label-9760
SELECT DISTINCT + COUNT ( * ), + 25 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
9
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9761
SELECT DISTINCT MAX( - - col1 ) * 8 AS col1 FROM tab1
----
376

skipif mysql # not compatible
query I rowsort label-9761
SELECT DISTINCT MAX ( - - col1 ) * 8 AS col1 FROM tab1
----
376

query I rowsort
SELECT DISTINCT + col0 * 35 FROM tab1 cor0
----
1785
2975
3185

onlyif mysql # DIV for integer division: 
query I rowsort label-9763
SELECT DISTINCT + 73 DIV + col0 FROM tab0 AS cor0
----
0
4

skipif mysql # not compatible
query I rowsort label-9763
SELECT DISTINCT + 73 / + col0 FROM tab0 AS cor0
----
0
4

query I rowsort
SELECT DISTINCT - + 15 * - 5 AS col2 FROM tab1 AS cor0
----
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, col0 col1 FROM tab1 AS cor0
----
51
51
85
85
91
91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 * col2 + 60 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9767
SELECT + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9767
SELECT + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

query I rowsort
SELECT ALL col0 * + + 89 AS col2 FROM tab1
----
4539
7565
8099

onlyif mysql # aggregate syntax: 
query I rowsort label-9769
SELECT 12 * - COUNT( * ) FROM tab1
----
-36

skipif mysql # not compatible
query I rowsort label-9769
SELECT 12 * - COUNT ( * ) FROM tab1
----
-36

query I rowsort
SELECT col0 * - col1 * + + col2 FROM tab2
----
-197120
-291450
-53958

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9771
SELECT ( - 12 ) * col0 + + + CAST( - col2 AS SIGNED ) FROM tab2
----
-575
-808
-958

skipif mysql # not compatible
query I rowsort label-9771
SELECT ( - 12 ) * col0 + + + CAST ( - col2 AS INTEGER ) FROM tab2
----
-575
-808
-958

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - col2 col1 FROM tab1
----
1344
295
3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9773
SELECT + 58 / CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9773
SELECT + 58 / CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 25 + - + col2 AS col1 FROM tab0
----
-22
-74
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9775
SELECT - MIN( DISTINCT + + 35 ) * - - MIN( ALL - 37 ) FROM tab2 WHERE + 44 NOT BETWEEN - + 5 * CAST( col2 AS SIGNED ) + - 91 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9775
SELECT - MIN ( DISTINCT + + 35 ) * - - MIN ( ALL - 37 ) FROM tab2 WHERE + 44 NOT BETWEEN - + 5 * CAST ( col2 AS INTEGER ) + - 91 AND NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9776
SELECT - ( 87 ) * - 99 - + col0 - + - col2 - - col2 + + col2 + + 68 DIV + col2 - + + 34 FROM tab2
----
8604
8636
8679

skipif mysql # not compatible
query I rowsort label-9776
SELECT - ( 87 ) * - 99 - + col0 - + - col2 - - col2 + + col2 + + 68 / + col2 - + + 34 FROM tab2
----
8604
8636
8679

query I rowsort
SELECT 6 + + ( - + col1 ) FROM tab0
----
-15
-75
5

onlyif mysql # aggregate syntax: 
query II rowsort label-9778
SELECT DISTINCT + 19 * + COUNT( * ) * 40, + 92 + - 31 AS col0 FROM tab2
----
2280
61

skipif mysql # not compatible
query II rowsort label-9778
SELECT DISTINCT + 19 * + COUNT ( * ) * 40, + 92 + - 31 AS col0 FROM tab2
----
2280
61

query I rowsort
SELECT DISTINCT + - 71 AS col2 FROM tab1 AS cor0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-9780
SELECT + SUM( - 1 ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9780
SELECT + SUM ( - 1 ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-3

query I rowsort
SELECT - col1 * 47 - - 93 AS col2 FROM tab2 AS cor0
----
-2304
-3056
-3526

query I rowsort
SELECT DISTINCT + col1 + + 75 FROM tab0
----
156
76
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9783
SELECT COUNT( * ) + + - COUNT( * ) FROM tab0 WHERE NOT + - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9783
SELECT COUNT ( * ) + + - COUNT ( * ) FROM tab0 WHERE NOT + - col2 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9784
SELECT SUM( DISTINCT + - 10 ) AS col1 FROM tab1
----
-10

skipif mysql # not compatible
query I rowsort label-9784
SELECT SUM ( DISTINCT + - 10 ) AS col1 FROM tab1
----
-10

query II rowsort
SELECT DISTINCT - col0, + 66 - + col0 AS col0 FROM tab2
----
-46
20
-64
2
-75
-9

query II rowsort
SELECT ALL 40, + col0 FROM tab2
----
40
46
40
64
40
75

query II rowsort
SELECT ALL col1 AS col2, col2 FROM tab1
----
14
96
47
68
5
59

query II rowsort
SELECT ALL - col1, - 27 AS col2 FROM tab1
----
-14
-27
-47
-27
-5
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 85 col0 FROM tab0
----
85
85
85

query II rowsort
SELECT col2, - col0 + - col2 FROM tab1
----
59
-144
68
-159
96
-147

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9791
SELECT DISTINCT + + MIN( DISTINCT col1 ) DIV + 70 FROM tab2 WHERE NOT NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9791
SELECT DISTINCT + + MIN ( DISTINCT col1 ) / + 70 FROM tab2 WHERE NOT NULL IS NOT NULL
----
0

query II rowsort
SELECT ALL col0, - 0 FROM tab0 AS cor0
----
15
0
87
0
97
0

query I rowsort
SELECT ( + 92 ) FROM tab0 AS cor0
----
92
92
92

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9794
SELECT DISTINCT 33 + - ( + CAST( NULL AS DECIMAL ) ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9794
SELECT DISTINCT 33 + - ( + CAST ( NULL AS REAL ) ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9795
SELECT - col2 DIV + col0 * + col1 col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9795
SELECT - col2 / + col0 * + col1 col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9796
SELECT ( - col0 ) DIV col1 + - col0 FROM tab0
----
-15
-194
-91

skipif mysql # not compatible
query I rowsort label-9796
SELECT ( - col0 ) / col1 + - col0 FROM tab0
----
-15
-194
-91

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 53 / 42 <> + col2 * + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9798
SELECT DISTINCT COUNT( * ) * - 30 FROM tab0
----
-90

skipif mysql # not compatible
query I rowsort label-9798
SELECT DISTINCT COUNT ( * ) * - 30 FROM tab0
----
-90

query I rowsort
SELECT ALL col0 * + - 91 AS col2 FROM tab2
----
-4186
-5824
-6825

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN - 52 AND + 10
----

query I rowsort
SELECT + 90 + + col0 AS col2 FROM tab2 AS cor0
----
136
154
165

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 61 + ( - ( - col2 ) ) * - 67 * col2 + - 33 + - col2 + + + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9803
SELECT - - 63 AS col1, COUNT( * ) AS col0 FROM tab0 AS cor0
----
63
3

skipif mysql # not compatible
query II rowsort label-9803
SELECT - - 63 AS col1, COUNT ( * ) AS col0 FROM tab0 AS cor0
----
63
3

query I rowsort
SELECT ALL 33 * - + col2 FROM tab2
----
-1320
-1914
-759

onlyif mysql # DIV for integer division: 
query I rowsort label-9805
SELECT ALL - col2 - + + 55 DIV col0 AS col0 FROM tab0
----
-10
-50
-99

skipif mysql # not compatible
query I rowsort label-9805
SELECT ALL - col2 - + + 55 / col0 AS col0 FROM tab0
----
-10
-50
-99

query I rowsort
SELECT DISTINCT + col0 * - 89 FROM tab1
----
-4539
-7565
-8099

onlyif mysql # aggregate syntax: 
query I rowsort label-9807
SELECT DISTINCT COUNT( * ) FROM ( tab0 cor0 CROSS JOIN tab0 cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-9807
SELECT DISTINCT COUNT ( * ) FROM ( tab0 cor0 CROSS JOIN tab0 cor1 )
----
9

query I rowsort
SELECT + + 85 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 18 <= NULL
----

query II rowsort
SELECT - + col0 + + 96 AS col2, col2 FROM tab1 cor0
----
11
59
45
96
5
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 96 col2 FROM tab0 AS cor0
----
-96
-96
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9812
SELECT + ( + MIN( col1 ) ) * - COUNT( * ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9812
SELECT + ( + MIN ( col1 ) ) * - COUNT ( * ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9813
SELECT ALL + ( COUNT( * ) ) col1 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9813
SELECT ALL + ( COUNT ( * ) ) col1 FROM tab1
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 2 NOT BETWEEN col2 AND NULL
----

query II rowsort
SELECT 33, col0 AS col0 FROM tab0
----
33
15
33
87
33
97

query I rowsort
SELECT - col1 * + col2 * + col1 AS col1 FROM tab1
----
-1475
-150212
-18816

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9817
SELECT ALL ( - CAST( - col2 AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-9817
SELECT ALL ( - CAST ( - col2 AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT ALL col2 + - - col1 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
110
115
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9819
SELECT DISTINCT MIN( DISTINCT col0 ) FROM tab1 cor0
----
51

skipif mysql # not compatible
query I rowsort label-9819
SELECT DISTINCT MIN ( DISTINCT col0 ) FROM tab1 cor0
----
51

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 - 1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 66 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-9822
SELECT ALL COUNT( * ) + + + 12 AS col2, + 61 FROM tab1
----
15
61

skipif mysql # not compatible
query II rowsort label-9822
SELECT ALL COUNT ( * ) + + + 12 AS col2, + 61 FROM tab1
----
15
61

query I rowsort
SELECT DISTINCT + - col1 * - col1 * - + 7 AS col1 FROM tab1 AS cor0
----
-1372
-15463
-175

query II rowsort
SELECT ALL + 39, - col2 AS col2 FROM tab1 cor0
----
39
-59
39
-68
39
-96

query I rowsort
SELECT col2 + - + ( + - col0 ) FROM tab0 cor0
----
196
62
97

query I rowsort
SELECT DISTINCT + - col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9827
SELECT DISTINCT - SUM( - + col0 ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-9827
SELECT DISTINCT - SUM ( - + col0 ) FROM tab0 AS cor0
----
199

query I rowsort
SELECT DISTINCT 7 + + 4 FROM tab1 cor0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9829
SELECT DISTINCT 83 * - ( + SUM( ALL - 8 ) ) AS col1 FROM tab2
----
1992

skipif mysql # not compatible
query I rowsort label-9829
SELECT DISTINCT 83 * - ( + SUM ( ALL - 8 ) ) AS col1 FROM tab2
----
1992

query I rowsort
SELECT ALL 32 * - col0 AS col1 FROM tab2
----
-1472
-2048
-2400

query II rowsort
SELECT col1 * + - col0, col2 + - col0 AS col2 FROM tab2
----
-2346
-23
-4928
-24
-5025
-17

query I rowsort
SELECT DISTINCT - col1 * - - col2 AS col2 FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT - 12 * - col2 AS col1 FROM tab0
----
1188
120
564

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9834
SELECT ALL - col1 * col1 DIV + CAST( - 84 AS SIGNED ) FROM tab1
----
0
2
26

skipif mysql # not compatible
query I rowsort label-9834
SELECT ALL - col1 * col1 / + CAST ( - 84 AS INTEGER ) FROM tab1
----
0
2
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + 74 - - + col0 col1 FROM tab2
----
166
202
224

query I rowsort
SELECT DISTINCT + 24 + + + col2 AS col0 FROM tab1 AS cor0
----
120
83
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9837
SELECT ALL + COUNT( * ) + ( + COUNT( * ) ) col0 FROM tab0 cor0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9837
SELECT ALL + COUNT ( * ) + ( + COUNT ( * ) ) col0 FROM tab0 cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9838
SELECT ALL + col0 * - col2 AS col2 FROM tab2 AS cor0 WHERE CAST( - col1 AS SIGNED ) IS NOT NULL
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-9838
SELECT ALL + col0 * - col2 AS col2 FROM tab2 AS cor0 WHERE CAST ( - col1 AS INTEGER ) IS NOT NULL
----
-1058
-2560
-4350

query I rowsort
SELECT DISTINCT + - 19 AS col1 FROM tab0 WHERE col0 IS NOT NULL
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-9840
SELECT DISTINCT MAX( ALL 26 ) AS col1 FROM tab1
----
26

skipif mysql # not compatible
query I rowsort label-9840
SELECT DISTINCT MAX ( ALL 26 ) AS col1 FROM tab1
----
26

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 * + col2 + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + col2 * + 63 * - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9843
SELECT ALL COUNT( * ) * + ( COUNT( * ) ) FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-9843
SELECT ALL COUNT ( * ) * + ( COUNT ( * ) ) FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9844
SELECT + CAST( NULL AS SIGNED ) * + - MIN( ALL - - col0 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9844
SELECT + CAST ( NULL AS INTEGER ) * + - MIN ( ALL - - col0 ) FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 35 col2 FROM tab2 cor0
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9846
SELECT DISTINCT + col0 * - CAST( NULL AS SIGNED ) + - col0 + + col1 + + + 93 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9846
SELECT DISTINCT + col0 * - CAST ( NULL AS INTEGER ) + - col0 + + col1 + + + 93 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT ALL + 69 AS col1, col1 AS col0 FROM tab1 AS cor0
----
69
14
69
47
69
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 70 col1 FROM tab2 cor0 WHERE NOT NULL <> 90
----

query I rowsort
SELECT DISTINCT - col0 * - 22 FROM tab1 AS cor0
----
1122
1870
2002

query I rowsort
SELECT col0 * col2 * + - col0 FROM tab0
----
-10575
-75690
-931491

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9851
SELECT ALL + 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-9851
SELECT ALL + MAX ( ALL - CAST ( NULL AS INTEGER ) ) col0 FROM tab1
----
NULL

query I rowsort
SELECT - ( ( - 41 ) ) AS col2 FROM tab0
----
41
41
41

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN NULL AND col0 * + col2 * + 9
----

query II rowsort
SELECT ( + - col0 ), col2 AS col0 FROM tab0
----
-15
47
-87
10
-97
99

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 44 > NULL
----

query I rowsort
SELECT ALL - + 39 FROM tab0 cor0
----
-39
-39
-39

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 70 NOT BETWEEN NULL AND - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 96 col2 FROM tab1 AS cor0
----
-96
-96
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9859
SELECT DISTINCT MIN( ALL - col1 ) AS col0 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-9859
SELECT DISTINCT MIN ( ALL - col1 ) AS col0 FROM tab2
----
-77

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 + - + col2 IS NULL
----

query II rowsort
SELECT ALL 89, 59 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
18 values hashing to f51468413542fcc8e3281d95bbc64df6

onlyif mysql # aggregate syntax: 
query I rowsort label-9862
SELECT ALL + - 93 * + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-837

skipif mysql # not compatible
query I rowsort label-9862
SELECT ALL + - 93 * + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-837

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9863
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9863
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NULL >= - - col0
----

query I rowsort
SELECT ALL + 16 + - - 66 AS col0 FROM tab2 cor0
----
82
82
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9866
SELECT DISTINCT + MAX( - col2 ) + - - 83 AS col0 FROM tab1 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-9866
SELECT DISTINCT + MAX ( - col2 ) + - - 83 AS col0 FROM tab1 AS cor0
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9867
SELECT - - CAST( + + col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-9867
SELECT - - CAST ( + + col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT + 56 AS col2 FROM tab0 cor0
----
56
56
56

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9869
SELECT * FROM tab1 AS cor0 WHERE + CAST( + 80 AS SIGNED ) < + + 85
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9869
SELECT * FROM tab1 AS cor0 WHERE + CAST ( + 80 AS INTEGER ) < + + 85
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col2 + + 26 AS col1 FROM tab0 AS cor0
----
-21
-73
16

query I rowsort
SELECT + 99 + - 84 + - 43 FROM tab2 AS cor0
----
-28
-28
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-9872
SELECT - MAX( - col0 ) + - 76 AS col1 FROM tab0 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-9872
SELECT - MAX ( - col0 ) + - 76 AS col1 FROM tab0 AS cor0
----
-61

query I rowsort
SELECT DISTINCT col1 * + + 0 AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9874
SELECT ALL + 39 * - COUNT( * ) DIV + COUNT( * ) FROM tab1 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-9874
SELECT ALL + 39 * - COUNT ( * ) / + COUNT ( * ) FROM tab1 AS cor0
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9875
SELECT + 88 + + CAST( + - 96 AS SIGNED ) * - 3 + - 19 * + col2 AS col2 FROM tab0
----
-1505
-517
186

skipif mysql # not compatible
query I rowsort label-9875
SELECT + 88 + + CAST ( + - 96 AS INTEGER ) * - 3 + - 19 * + col2 AS col2 FROM tab0
----
-1505
-517
186

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9876
SELECT DISTINCT - 19 + - - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9876
SELECT DISTINCT - 19 + - - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query II rowsort
SELECT + 54 AS col2, col2 AS col0 FROM tab2 WHERE + + col1 IS NOT NULL
----
54
23
54
40
54
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9878
SELECT ALL + COUNT( * ) + COUNT( * ) FROM tab2 WHERE NOT col0 IS NULL
----
6

skipif mysql # not compatible
query I rowsort label-9878
SELECT ALL + COUNT ( * ) + COUNT ( * ) FROM tab2 WHERE NOT col0 IS NULL
----
6

query I rowsort
SELECT ALL + col0 AS col0 FROM tab1 WHERE NOT col1 <> - - col1
----
51
85
91

query I rowsort
SELECT col0 FROM tab0 WHERE - col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 26 col1, 44 AS col1 FROM tab0
----
26
44
26
44
26
44

query I rowsort
SELECT + 66 * col1 + - col1 * + + col1 AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN col0 AND NULL
----

query I rowsort
SELECT - ( 67 ) AS col1 FROM tab0 AS cor0
----
-67
-67
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9884
SELECT - ( + MAX( DISTINCT CAST( NULL AS SIGNED ) ) ) / + + COUNT( * ) * + 33 * + 5 - - - 62 + - ( COUNT( * ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9884
SELECT - ( + MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) ) / + + COUNT ( * ) * + 33 * + 5 - - - 62 + - ( COUNT ( * ) ) FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 AS col1, col2 + - col1 col2 FROM tab0 AS cor0
----
-15
-34
-87
-11
-97
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9886
SELECT + MIN( ALL + col0 ) - + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-9886
SELECT + MIN ( ALL + col0 ) - + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9887
SELECT ALL + + col0 * - col1 + - 72 * - CAST( + col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-135
4437
6887

skipif mysql # not compatible
query I rowsort label-9887
SELECT ALL + + col0 * - col1 + - 72 * - CAST ( + col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-135
4437
6887

onlyif mysql # aggregate syntax: 
query II rowsort label-9888
SELECT + COUNT( * ) AS col1, 96 - 14 * 34 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9
-380

skipif mysql # not compatible
query II rowsort label-9888
SELECT + COUNT ( * ) AS col1, 96 - 14 * 34 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9
-380

onlyif mysql # aggregate syntax: 
query II rowsort label-9889
SELECT COUNT( * ) * - - 34 AS col1, - COUNT( ALL - 84 ) FROM tab0
----
102
-3

skipif mysql # not compatible
query II rowsort label-9889
SELECT COUNT ( * ) * - - 34 AS col1, - COUNT ( ALL - 84 ) FROM tab0
----
102
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9890
SELECT ALL - + COUNT( * ) FROM tab1 cor0 WHERE NOT - 89 + 56 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9890
SELECT ALL - + COUNT ( * ) FROM tab1 cor0 WHERE NOT - 89 + 56 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9891
SELECT ALL COUNT( * ) + + 28 col2, 99 - + 20 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
31
79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9891
SELECT ALL COUNT ( * ) + + 28 col2, 99 - + 20 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
31
79

query I rowsort
SELECT - col0 * - ( + + 76 ) AS col2 FROM tab0 AS cor0
----
1140
6612
7372

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL = + col2 + - col2
----

query I rowsort
SELECT ALL - col0 * 45 * - - col2 FROM tab0 AS cor0
----
-31725
-39150
-432135

onlyif mysql # aggregate syntax: 
query I rowsort label-9895
SELECT DISTINCT + + 7 * + 66 * COUNT( * ) FROM tab2 cor0
----
1386

skipif mysql # not compatible
query I rowsort label-9895
SELECT DISTINCT + + 7 * + 66 * COUNT ( * ) FROM tab2 cor0
----
1386

query I rowsort
SELECT DISTINCT 80 FROM tab1 AS cor0 WHERE NOT NULL = 92 * col2
----

query I rowsort
SELECT - col1 AS col0 FROM tab1 AS cor0 WHERE NOT - col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9898
SELECT + COUNT( DISTINCT - col2 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9898
SELECT + COUNT ( DISTINCT - col2 ) FROM tab0
----
3

query I rowsort
SELECT - ( + 52 ) FROM tab1
----
-52
-52
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-9900
SELECT ALL COUNT( * ) * - - 74 AS col1 FROM tab0
----
222

skipif mysql # not compatible
query I rowsort label-9900
SELECT ALL COUNT ( * ) * - - 74 AS col1 FROM tab0
----
222

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9901
SELECT DISTINCT col1 * + ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9901
SELECT DISTINCT col1 * + ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT ALL + col0 * 58 * + col0 + + 11 * - col0 FROM tab2
----
122222
236864
325425

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 54 * col2 col1 FROM tab0 WHERE - + 47 IS NOT NULL
----
2538
5346
540

query I rowsort
SELECT DISTINCT + 39 * + + 95 FROM tab1 AS cor0
----
3705

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 > - - 36
----

query I rowsort
SELECT DISTINCT + col0 + - col0 AS col2 FROM tab0 WHERE 77 IS NULL
----

query I rowsort
SELECT DISTINCT - 57 * col2 - + 55 FROM tab1
----
-3418
-3931
-5527

onlyif mysql # aggregate syntax: 
query I rowsort label-9908
SELECT DISTINCT 69 + SUM( col1 ) FROM tab0 WHERE NULL < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9908
SELECT DISTINCT 69 + SUM ( col1 ) FROM tab0 WHERE NULL < NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9909
SELECT ALL 83 + + col1 DIV - col1 FROM tab0
----
82
82
82

skipif mysql # not compatible
query I rowsort label-9909
SELECT ALL 83 + + col1 / - col1 FROM tab0
----
82
82
82

query III rowsort
SELECT * FROM tab1 WHERE NOT 34 + + col0 IS NOT NULL
----

query I rowsort
SELECT + col2 * 85 FROM tab2 WHERE NOT ( col1 ) IS NULL
----
1955
3400
4930

query I rowsort
SELECT + 72 - + col0 AS col0 FROM tab2
----
-3
26
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9913
SELECT DISTINCT 1 * - COUNT( * ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9913
SELECT DISTINCT 1 * - COUNT ( * ) AS col2 FROM tab1
----
-3

query I rowsort
SELECT ALL - col0 * + 48 + col1 FROM tab1
----
-2434
-4075
-4321

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL IN ( col0 * + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9916
SELECT - MAX( ALL + col2 ) * - COUNT( * ) FROM tab1
----
288

skipif mysql # not compatible
query I rowsort label-9916
SELECT - MAX ( ALL + col2 ) * - COUNT ( * ) FROM tab1
----
288

query I rowsort
SELECT ALL 91 * col0 FROM tab0
----
1365
7917
8827

onlyif mysql # aggregate syntax: 
query I rowsort label-9918
SELECT 1 * COUNT( * ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9918
SELECT 1 * COUNT ( * ) AS col2 FROM tab2
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 * 24 + 9 IS NULL
----

query I rowsort
SELECT ALL col0 - 49 AS col1 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL 31 * 5 FROM tab1
----
155
155
155

onlyif mysql # aggregate syntax: 
query I rowsort label-9922
SELECT - SUM( - col0 ) FROM tab0 WHERE NULL NOT IN ( + ( 73 ) + - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9922
SELECT - SUM ( - col0 ) FROM tab0 WHERE NULL NOT IN ( + ( 73 ) + - col1 )
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - ( + col2 ) ) NOT BETWEEN ( NULL ) AND + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9924
SELECT DISTINCT + 19 DIV - ( + col0 ) FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-9924
SELECT DISTINCT + 19 / - ( + col0 ) FROM tab0
----
-1
0

query III rowsort
SELECT * FROM tab1 WHERE + 38 + col2 NOT BETWEEN - 25 AND 77
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col2 * 2 FROM tab0
----
-198
-20
-94

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab2 WHERE NOT NULL <= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 55 ) col2 FROM tab0
----
55
55
55

onlyif mysql # DIV for integer division: 
query I rowsort label-9929
SELECT ALL 39 DIV + col0 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9929
SELECT ALL 39 / + col0 AS col1 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 + + col1 = col2 * + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9931
SELECT - COUNT( * ) DIV - 58 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9931
SELECT - COUNT ( * ) / - 58 AS col2 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9932
SELECT - ( + col1 ) DIV col0 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9932
SELECT - ( + col1 ) / col0 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT + 3 AS col2 FROM tab0 WHERE ( - 93 ) IS NOT NULL
----
3
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9934
SELECT ALL MAX( DISTINCT - col2 ) AS col2 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-9934
SELECT ALL MAX ( DISTINCT - col2 ) AS col2 FROM tab2
----
-23

query I rowsort
SELECT + col1 AS col1 FROM tab0 WHERE NOT 39 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 * col1 + col0 AS col2 FROM tab2 WHERE ( NULL ) BETWEEN + col1 AND - 85 + + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9937
SELECT + 18 DIV - col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9937
SELECT + 18 / - col2 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9938
SELECT DISTINCT CAST( NULL AS DECIMAL ) + col2 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9938
SELECT DISTINCT CAST ( NULL AS REAL ) + col2 AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9939
SELECT DISTINCT + COUNT( * ) * 12 + + 93 AS col2 FROM tab2
----
129

skipif mysql # not compatible
query I rowsort label-9939
SELECT DISTINCT + COUNT ( * ) * 12 + + 93 AS col2 FROM tab2
----
129

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 85 ) * col2 col0 FROM tab2
----
-1955
-3400
-4930

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - 70 col1 FROM tab1 AS cor0
----
-11
-2
26

query I rowsort
SELECT ALL 24 + 30 AS col2 FROM tab1 cor0
----
54
54
54

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + 16 ) NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9944
SELECT DISTINCT MIN( DISTINCT CAST( - col1 AS SIGNED ) ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-9944
SELECT DISTINCT MIN ( DISTINCT CAST ( - col1 AS INTEGER ) ) FROM tab2 AS cor0
----
-77

query I rowsort
SELECT col2 + + 55 AS col2 FROM tab1 AS cor0 WHERE NOT ( col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9946
SELECT + COUNT( * ) * - 97 FROM tab1
----
-291

skipif mysql # not compatible
query I rowsort label-9946
SELECT + COUNT ( * ) * - 97 FROM tab1
----
-291

query I rowsort
SELECT - col0 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT + 68 * - 8 FROM tab1 AS cor0 CROSS JOIN tab2
----
9 values hashing to 38f41397f1d56cb52b40f431063cab67

query I rowsort
SELECT ALL + 46 * 46 AS col2 FROM tab2 AS cor0
----
2116
2116
2116

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 93 NOT IN ( 13 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col0 col0 FROM tab2 cor0
----
2346
4928
5025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9952
SELECT DISTINCT - 10 + - CAST( NULL AS SIGNED ) * AVG ( DISTINCT - col0 ) FROM tab1 AS cor0 WHERE NOT - 4 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9952
SELECT DISTINCT - 10 + - CAST ( NULL AS INTEGER ) * AVG ( DISTINCT - col0 ) FROM tab1 AS cor0 WHERE NOT - 4 IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + ( - col1 ) IS NOT NULL
----

query I rowsort
SELECT + + 77 * col1 FROM tab1 cor0
----
1078
3619
385

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 + - 69 * - col1 NOT BETWEEN NULL AND col0 * - 64 + + col2 * col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 * 7 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9957
SELECT ALL 58 DIV - col0 FROM tab0 cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-9957
SELECT ALL 58 / - col0 FROM tab0 cor0
----
-3
0
0

query I rowsort
SELECT DISTINCT - 47 * 12 AS col1 FROM tab1 AS cor0
----
-564

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9959
SELECT - - COUNT( * ) * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9959
SELECT - - COUNT ( * ) * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9960
SELECT - 38 DIV - col0 AS col1 FROM tab0 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-9960
SELECT - 38 / - col0 AS col1 FROM tab0 AS cor0
----
0
0
2

query I rowsort
SELECT + 39 * + col1 AS col0 FROM tab0 AS cor0
----
3159
39
819

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9962
SELECT COUNT( * ) DIV 89 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9962
SELECT COUNT ( * ) / 89 AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9963
SELECT + - COUNT( ALL ( 91 ) ) * 67 FROM tab0 AS cor0
----
-201

skipif mysql # not compatible
query I rowsort label-9963
SELECT + - COUNT ( ALL ( 91 ) ) * 67 FROM tab0 AS cor0
----
-201

onlyif mysql # DIV for integer division: 
query I rowsort label-9964
SELECT ( + col2 ) DIV 68 AS col1 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9964
SELECT ( + col2 ) / 68 AS col1 FROM tab0
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9965
SELECT - col0 * CAST( - 54 AS SIGNED ) AS col2 FROM tab1
----
2754
4590
4914

skipif mysql # not compatible
query I rowsort label-9965
SELECT - col0 * CAST ( - 54 AS INTEGER ) AS col2 FROM tab1
----
2754
4590
4914

query I rowsort
SELECT DISTINCT col2 * - col1 FROM tab1 WHERE NOT ( col2 ) NOT IN ( 44 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9967
SELECT DISTINCT COUNT( - - col1 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9967
SELECT DISTINCT COUNT ( - - col1 ) FROM tab0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9968
SELECT * FROM tab1 WHERE NOT col1 - + CAST( NULL AS DECIMAL ) <= ( col2 )
----

skipif mysql # not compatible
query III rowsort label-9968
SELECT * FROM tab1 WHERE NOT col1 - + CAST ( NULL AS REAL ) <= ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9969
SELECT ALL + COUNT( * ) FROM tab2 WHERE 11 + + col2 >= 40 + col1
----
0

skipif mysql # not compatible
query I rowsort label-9969
SELECT ALL + COUNT ( * ) FROM tab2 WHERE 11 + + col2 >= 40 + col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9970
SELECT DISTINCT + COUNT( * ) * - - ( 89 ) FROM tab1
----
267

skipif mysql # not compatible
query I rowsort label-9970
SELECT DISTINCT + COUNT ( * ) * - - ( 89 ) FROM tab1
----
267

onlyif mysql # aggregate syntax: 
query I rowsort label-9971
SELECT ALL COUNT( * ) * - 57 FROM tab2
----
-171

skipif mysql # not compatible
query I rowsort label-9971
SELECT ALL COUNT ( * ) * - 57 FROM tab2
----
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-9972
SELECT ALL 97 + + COUNT( * ) AS col1 FROM tab1
----
100

skipif mysql # not compatible
query I rowsort label-9972
SELECT ALL 97 + + COUNT ( * ) AS col1 FROM tab1
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-9973
SELECT DISTINCT - 83 * + COUNT( * ) col0 FROM tab1
----
-249

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9973
SELECT DISTINCT - 83 * + COUNT ( * ) col0 FROM tab1
----
-249

query I rowsort
SELECT DISTINCT 15 + + 77 * - col2 FROM tab0
----
-3604
-755
-7608

query I rowsort
SELECT 41 + 70 * 71 AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN 62 AND NULL
----

query I rowsort
SELECT ALL + ( + 5 ) AS col0 FROM tab1 AS cor0
----
5
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9977
SELECT - MIN( ALL + 75 ) + + MIN( col0 - + 52 ) AS col1 FROM tab1 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-9977
SELECT - MIN ( ALL + 75 ) + + MIN ( col0 - + 52 ) AS col1 FROM tab1 AS cor0
----
-76

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col2 AND NULL
----

query I rowsort
SELECT ( 49 ) AS col1 FROM tab1 AS cor0 WHERE NOT 33 + + col1 BETWEEN + col2 AND NULL
----
49
49

query I rowsort
SELECT DISTINCT ( - + 75 ) FROM tab1 AS cor0
----
-75

query I rowsort
SELECT ALL 54 AS col2 FROM tab0 AS cor0
----
54
54
54

query I rowsort
SELECT 57 + + col0 * col0 AS col0 FROM tab1 cor0 WHERE - ( - col0 ) IS NOT NULL
----
2658
7282
8338

onlyif mysql # aggregate syntax: 
query I rowsort label-9983
SELECT DISTINCT + COUNT( col2 ) + + MIN( ALL - col2 ) FROM tab1 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-9983
SELECT DISTINCT + COUNT ( col2 ) + + MIN ( ALL - col2 ) FROM tab1 AS cor0
----
-93

query I rowsort
SELECT ALL col0 AS col1 FROM tab2 WHERE NOT - + col2 <= ( NULL )
----

query I rowsort
SELECT DISTINCT - col0 * + col0 + ( 82 ) AS col2 FROM tab2 WHERE NOT - 47 + - 83 NOT IN ( col0 * + col2 )
----

query IIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 WHERE ( - ( ( 9 ) ) ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) < NULL
----

query I rowsort
SELECT - + 72 + - col1 + col1 * col0 FROM tab1 AS cor0
----
348
4158
628

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 81 <= - col0 * - ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9990
SELECT + - 31 * ( - ( COUNT( * ) ) ) * MAX( col2 * - col0 ) + SUM( ALL - ( + 95 ) ) FROM tab0 AS cor0
----
-65850

skipif mysql # not compatible
query I rowsort label-9990
SELECT + - 31 * ( - ( COUNT ( * ) ) ) * MAX ( col2 * - col0 ) + SUM ( ALL - ( + 95 ) ) FROM tab0 AS cor0
----
-65850

onlyif mysql # aggregate syntax: 
query I rowsort label-9991
SELECT COUNT( DISTINCT col2 ) + + 56 AS col2 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-9991
SELECT COUNT ( DISTINCT col2 ) + + 56 AS col2 FROM tab1 AS cor0
----
59

query I rowsort
SELECT ALL col2 * - col1 + - 3 * 58 AS col0 FROM tab0 AS cor0
----
-273
-384
-3981

query I rowsort
SELECT ALL 30 - + 99 FROM tab1 AS cor0
----
-69
-69
-69

query I rowsort
SELECT - col2 + - 82 FROM tab0 AS cor0
----
-129
-181
-92

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 52 + - + 13 ) NOT IN ( - 65 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - 99 + + col2 FROM tab1 AS cor0
----
-3
-31
-40

query I rowsort
SELECT + 39 + + col2 FROM tab2 AS cor0
----
62
79
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9998
SELECT DISTINCT - COUNT( * ) - - + 26 AS col1 FROM tab0 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-9998
SELECT DISTINCT - COUNT ( * ) - - + 26 AS col1 FROM tab0 AS cor0
----
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 34 * - ( ( + col0 ) ) + - 41 col0 FROM tab1
----
-1775
-2931
-3135

