sqllogictest
Artifact Content
Not logged in

Artifact acc96702a7b694b019d356bf198e2a3c6b9de419:


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 ALL + ( 3 ) * + col0 - + col0 AS col2 FROM tab0
----
174
194
30

query I rowsort
SELECT 5 FROM tab1 WHERE NOT - 12 NOT BETWEEN + col1 AND - col2
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4
SELECT DISTINCT - + col2 + col1 DIV - + 86 AS col1 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-4
SELECT DISTINCT - + col2 + col1 / - + 86 AS col1 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT ALL + col0 + - 22 FROM tab0 cor0
----
-7
65
75

query II rowsort
SELECT DISTINCT - 14 * - ( - col0 ) - - col2 * + col2 + - col2 * + 2 * - - col2 + + col0 AS col2, + col2 AS col0 FROM tab0 AS cor0
----
-11062
99
-1231
10
-2404
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7
SELECT ALL - ( - COUNT( * ) ) * 29 FROM tab1 cor0
----
87

skipif mysql # not compatible
query I rowsort label-7
SELECT ALL - ( - COUNT ( * ) ) * 29 FROM tab1 cor0
----
87

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

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

query I rowsort
SELECT DISTINCT - - ( - col2 ) + - col0 AS col0 FROM tab2 AS cor0
----
-104
-133
-69

query I rowsort
SELECT DISTINCT col2 + - 36 * 83 FROM tab0 cor0
----
-2889
-2941
-2978

onlyif mysql # DIV for integer division: 
query I rowsort label-11
SELECT + + col0 DIV - col2 AS col2 FROM tab2 WHERE 50 >= + 11
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-11
SELECT + + col0 / - col2 AS col2 FROM tab2 WHERE 50 >= + 11
----
-1
-1
-2

query I rowsort
SELECT DISTINCT + 46 - 18 AS col0 FROM tab1
----
28

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 85 >= NULL
----

query I rowsort
SELECT ALL col2 * - 63 - - 10 AS col0 FROM tab1
----
-3707
-4274
-6038

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

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

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

query III rowsort
SELECT col1, - col0 + - - ( - + 25 ) AS col0, col1 FROM tab0
----
9 values hashing to 12c365984b3e016b0a85eec2f8f4f0ea

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

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

query I rowsort
SELECT ALL - col0 * - - 19 FROM tab2
----
-1216
-1425
-874

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

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

query II rowsort
SELECT - 90 AS col0, + 90 FROM tab2 AS cor0
----
-90
90
-90
90
-90
90

onlyif mysql # aggregate syntax: 
query I rowsort label-22
SELECT MAX( ALL + 26 ) FROM tab0
----
26

skipif mysql # not compatible
query I rowsort label-22
SELECT MAX ( ALL + 26 ) FROM tab0
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-23
SELECT DISTINCT CAST( + + 66 AS SIGNED ) * - - 67 * col0 * - col2 FROM tab0 cor0
----
-3117510
-3847140
-42464466

skipif mysql # not compatible
query I rowsort label-23
SELECT DISTINCT CAST ( + + 66 AS INTEGER ) * - - 67 * col0 * - col2 FROM tab0 cor0
----
-3117510
-3847140
-42464466

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NOT col2 BETWEEN 88 * - col1 AND - col2
----
15
87
97

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 4 + + col0 col0 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + + 49 AS col2 FROM tab0 AS cor0
----
49

query I rowsort
SELECT - - col2 * - 18 FROM tab2 AS cor0
----
-1044
-414
-720

query II rowsort
SELECT + 4 AS col2, 30 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
4
30
4
30
4
30

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-31
SELECT ALL CAST( 74 AS SIGNED ) * 71 * col0 AS col1 FROM tab0
----
457098
509638
78810

skipif mysql # not compatible
query I rowsort label-31
SELECT ALL CAST ( 74 AS INTEGER ) * 71 * col0 AS col1 FROM tab0
----
457098
509638
78810

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

query I rowsort
SELECT DISTINCT 72 * + - 28 FROM tab2
----
-2016

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

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

query I rowsort
SELECT ALL 60 + 32 FROM tab1
----
92
92
92

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

query I rowsort
SELECT ALL + col0 + + + 15 FROM tab2 AS cor0
----
61
79
90

query I rowsort
SELECT col1 * col2 * + col0 + + + col1 AS col1 FROM tab0 AS cor0
----
18291
57186
9604

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-39
SELECT + col1 + - CAST( + + col2 AS SIGNED ) AS col2, + col0 FROM tab2 AS cor0
----
28
46
37
64
9
75

skipif mysql # not compatible
query II rowsort label-39
SELECT + col1 + - CAST ( + + col2 AS INTEGER ) AS col2, + col0 FROM tab2 AS cor0
----
28
46
37
64
9
75

query I rowsort
SELECT ALL + 49 + + + 95 * ( - 30 ) * - 16 AS col1 FROM tab1 AS cor0
----
45649
45649
45649

query I rowsort
SELECT DISTINCT col1 * + + 51 + - col0 + col1 FROM tab1 AS cor0
----
175
2353
677

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-42
SELECT ALL - CAST( + col1 AS SIGNED ), col2 AS col1 FROM tab2 AS cor0 WHERE NOT 73 > + + ( - col0 )
----

skipif mysql # not compatible
query II rowsort label-42
SELECT ALL - CAST ( + col1 AS INTEGER ), col2 AS col1 FROM tab2 AS cor0 WHERE NOT 73 > + + ( - col0 )
----

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

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

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

query I rowsort
SELECT + - col1 FROM tab0 AS cor0 WHERE 55 IS NOT NULL
----
-1
-21
-81

query II rowsort
SELECT 23, + col1 * 56 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
23
2632
23
280
23
784

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-49
SELECT ALL + col2 DIV 28 AS col1 FROM tab0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-49
SELECT ALL + col2 / 28 AS col1 FROM tab0
----
0
1
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 33 * + 57 col1 FROM tab1, tab1 AS cor0
----
9 values hashing to cf709b40055183bb72234fb0a0273ab3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - col2 col1 FROM tab2
----
-116
-46
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-52
SELECT DISTINCT MIN( col1 ) * - 87 - COUNT( * ) AS col0 FROM tab0
----
-90

skipif mysql # not compatible
query I rowsort label-52
SELECT DISTINCT MIN ( col1 ) * - 87 - COUNT ( * ) AS col0 FROM tab0
----
-90

query III rowsort
SELECT * FROM tab0 WHERE col1 NOT BETWEEN NULL AND - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query I rowsort
SELECT 82 * - 72 * - + 21 FROM tab0
----
123984
123984
123984

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * - col0 + col1 + - 57 + + + col0 col0 FROM tab2 AS cor0
----
1098
2644
4435

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

query I rowsort
SELECT + - col2 * 80 AS col2 FROM tab1 AS cor0
----
-4720
-5440
-7680

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

query I rowsort
SELECT ALL + col2 * + + 8 + col0 + + col1 AS col0 FROM tab1 AS cor0
----
562
682
833

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

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

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

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

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

query I rowsort
SELECT 73 + + + 48 AS col1 FROM tab0
----
121
121
121

query II rowsort
SELECT DISTINCT ( col0 ), 71 + + ( 29 ) AS col2 FROM tab0
----
15
100
87
100
97
100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-67
SELECT ALL COUNT( * ) DIV - 41 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-67
SELECT ALL COUNT ( * ) / - 41 FROM tab0
----
0

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 * - 12 col0, - col1 FROM tab0 AS cor0
----
1044
-21
1164
-1
180
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-70
SELECT ALL MIN( - 34 ) + - 62 AS col1 FROM tab1 AS cor0 WHERE NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-70
SELECT ALL MIN ( - 34 ) + - 62 AS col1 FROM tab1 AS cor0 WHERE NULL >= NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 + - - 45, + col0 col0 FROM tab2 AS cor0
----
-13
75
22
46
5
64

query I rowsort
SELECT - 77 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107

query I rowsort
SELECT - 56 - + col2 AS col2 FROM tab1
----
-115
-124
-152

onlyif mysql # aggregate syntax: 
query I rowsort label-74
SELECT 67 - - COUNT( * ) FROM tab0
----
70

skipif mysql # not compatible
query I rowsort label-74
SELECT 67 - - COUNT ( * ) FROM tab0
----
70

query IIIIII rowsort
SELECT * FROM tab2 cor0 LEFT OUTER JOIN tab2 AS cor1 ON NOT - + 94 = NULL
----
18 values hashing to 18b19f89ce73392082a69acc4aed78f1

query I rowsort
SELECT - ( + 49 ) + - ( col0 ) AS col0 FROM tab2
----
-113
-124
-95

query I rowsort
SELECT DISTINCT + 99 AS col2 FROM tab2 WHERE + 76 * - + col2 <> NULL
----

query I rowsort
SELECT - col2 + - 11 AS col2 FROM tab1
----
-107
-70
-79

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

query I rowsort
SELECT ALL + - 82 + - + col1 AS col2 FROM tab2 cor0
----
-133
-149
-159

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

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

query I rowsort
SELECT DISTINCT + 54 - - + col0 + - - col1 * - - col0 + 59 FROM tab1
----
4481
623
878

query I rowsort
SELECT 38 * + 46 - - - 4 AS col0 FROM tab2 WHERE NULL IS NULL
----
1744
1744
1744

query II rowsort
SELECT col0 * + - col0, 20 - + 87 + - col2 AS col0 FROM tab1
----
-2601
-163
-7225
-126
-8281
-135

query II rowsort
SELECT ALL col1 * - col1, 22 * - - col0 * + col2 * - + col2 + 99 AS col1 FROM tab1
----
-196
-10340253
-2209
-9257149
-25
-6509371

onlyif mysql # aggregate syntax: 
query I rowsort label-86
SELECT + SUM( + 21 ) col1 FROM tab0 AS cor0
----
63

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

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

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

query I rowsort
SELECT ALL - - col0 AS col0 FROM tab2 AS cor0 WHERE NULL IN ( + col0, col2, - - col0 + - col2 * 26 + + 77 / + col1 * - col2, + col2 * + 56 )
----

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

query I rowsort
SELECT ALL + ( + + col0 ) + 75 * - + col0 * col2 + col2 * 87 AS col0 FROM tab0 AS cor0
----
-48771
-64293
-711515

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

onlyif mysql # aggregate syntax: 
query I rowsort label-93
SELECT DISTINCT + 55 + 67 + - + SUM( + col1 ) FROM tab2 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-93
SELECT DISTINCT + 55 + 67 + - + SUM ( + col1 ) FROM tab2 AS cor0
----
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 0 * - - col0 * + - col2 AS col1, ( - + col1 ) * - col2 + + col2 col0 FROM tab1 AS cor0
----
0
1440
0
3264
0
354

query I rowsort
SELECT DISTINCT - 0 AS col1 FROM tab0, tab0 AS cor0
----
0

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

skipif mysql # not compatible
query I rowsort label-96
SELECT DISTINCT + 32 * COUNT ( * ) FROM tab0
----
96

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

query I rowsort
SELECT ALL - col2 * - 29 + + + col0 FROM tab0 AS cor0
----
1378
2968
377

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 20 NOT BETWEEN + col2 + - ( - col0 ) AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT + 44 + + - col0 AS col2 FROM tab0 AS cor0
----
-43
-53
29

query I rowsort
SELECT + + col1 + - 44 FROM tab2 AS cor0
----
23
33
7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-103
SELECT DISTINCT + col2 * ( + CAST( - - 65 AS SIGNED ) ) * + 6, + 80 AS col0 FROM tab1
----
23010
80
26520
80
37440
80

skipif mysql # not compatible
query II rowsort label-103
SELECT DISTINCT + col2 * ( + CAST ( - - 65 AS INTEGER ) ) * + 6, + 80 AS col0 FROM tab1
----
23010
80
26520
80
37440
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-104
SELECT ALL - CAST( NULL AS SIGNED ) * + + 90 + - col1 / - + 16 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-104
SELECT ALL - CAST ( NULL AS INTEGER ) * + + 90 + - col1 / - + 16 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-106
SELECT CAST( NULL AS SIGNED ) * + - col0 AS col0 FROM tab2 AS cor0 WHERE NULL NOT IN ( + 3 )
----

skipif mysql # not compatible
query I rowsort label-106
SELECT CAST ( NULL AS INTEGER ) * + - col0 AS col0 FROM tab2 AS cor0 WHERE NULL NOT IN ( + 3 )
----

query I rowsort
SELECT - col1 - + col2 + + - 88 + - col0 * + col1 AS col2 FROM tab0 AS cor0
----
-1431
-1946
-285

query I rowsort
SELECT DISTINCT 1 + + ( + col1 ) FROM tab2 AS cor0
----
52
68
78

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

query I rowsort
SELECT DISTINCT + + col2 * - 87 AS col0 FROM tab2 AS cor0
----
-2001
-3480
-5046

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-113
SELECT DISTINCT col1, - 1 * col1 DIV 89 FROM tab1
----
14
0
47
0
5
0

skipif mysql # not compatible
query II rowsort label-113
SELECT DISTINCT col1, - 1 * col1 / 89 FROM tab1
----
14
0
47
0
5
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-114
SELECT ALL ( + col1 ) AS col2 FROM tab1 WHERE CAST( NULL AS SIGNED ) + - 3 = NULL
----

skipif mysql # not compatible
query I rowsort label-114
SELECT ALL ( + col1 ) AS col2 FROM tab1 WHERE CAST ( NULL AS INTEGER ) + - 3 = NULL
----

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

query I rowsort
SELECT 81 * - 17 * col2 * col2 * 44 FROM tab1
----
-210906828
-280158912
-558379008

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-118
SELECT DISTINCT CAST( NULL AS SIGNED ) / + ( + 58 ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-118
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + ( + 58 ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
NULL

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

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

query I rowsort
SELECT - + 8 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col0 * + col2 = - + col0
----

query II rowsort
SELECT ALL + col1 * - 55 AS col0, 17 + - col0 * + + col2 FROM tab0 AS cor0
----
-1155
-853
-4455
-688
-55
-9586

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

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

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

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

query I rowsort
SELECT col2 + 30 + col0 FROM tab0 AS cor0
----
127
226
92

onlyif mysql # aggregate syntax: 
query II rowsort label-126
SELECT - COUNT( - col2 ) AS col1, - COUNT( col0 ) FROM tab1 AS cor0 WHERE - col0 IS NOT NULL
----
-3
-3

skipif mysql # not compatible
query II rowsort label-126
SELECT - COUNT ( - col2 ) AS col1, - COUNT ( col0 ) FROM tab1 AS cor0 WHERE - col0 IS NOT NULL
----
-3
-3

query I rowsort
SELECT ALL - col2 + + col2 + - 72 AS col2 FROM tab1 cor0
----
-72
-72
-72

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

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE ( - 80 ) IS NULL
----

query I rowsort
SELECT - col1 + - ( col0 ) AS col0 FROM tab0
----
-108
-96
-98

query I rowsort
SELECT ( + - col0 ) + 70 * + ( - col0 ) AS col2 FROM tab2
----
-3266
-4544
-5325

onlyif mysql # DIV for integer division: 
query I rowsort label-133
SELECT - 91 DIV - 96 * 21 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-133
SELECT - 91 / - 96 * 21 FROM tab1
----
0
0
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-135
SELECT MIN( ALL - + col1 ) AS col2 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-135
SELECT MIN ( ALL - + col1 ) AS col2 FROM tab2
----
-77

query II rowsort
SELECT col0 AS col0, - col2 * + + ( + 46 ) AS col1 FROM tab2
----
46
-1058
64
-1840
75
-2668

onlyif mysql # DIV for integer division: 
query I rowsort label-137
SELECT - 75 DIV col1 AS col0 FROM tab1
----
-1
-15
-5

skipif mysql # not compatible
query I rowsort label-137
SELECT - 75 / col1 AS col0 FROM tab1
----
-1
-15
-5

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * 65 - col0 + - + col0 * col2 col2 FROM tab1
----
-1265
-1859
1293

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE - 70 IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query I rowsort
SELECT DISTINCT col2 * - 17 FROM tab0
----
-1683
-170
-799

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

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

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

skipif mysql # not compatible
query II rowsort label-144
SELECT ALL + COUNT ( ALL + ( col0 ) ) * - + 91, - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-273
-3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-146
SELECT + COUNT( - col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT col2 <> - col2
----
0

skipif mysql # not compatible
query I rowsort label-146
SELECT + COUNT ( - col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT col2 <> - col2
----
0

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

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

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

query I rowsort
SELECT DISTINCT ( + 92 ) * + col1 FROM tab1 cor0
----
1288
4324
460

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

query I rowsort
SELECT ALL + col2 * + 43 - - - ( + col0 ) AS col0 FROM tab0 AS cor0
----
2006
343
4160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 col0, + 79 FROM tab2 AS cor0
----
51
79
67
79
77
79

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

query I rowsort
SELECT col0 + - 79 AS col0 FROM tab2 AS cor0 WHERE NOT col1 + + + 92 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-155
SELECT col2 DIV col2 * - + 39 FROM tab1
----
-39
-39
-39

skipif mysql # not compatible
query I rowsort label-155
SELECT col2 / col2 * - + 39 FROM tab1
----
-39
-39
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-156
SELECT - MIN( + 13 ), + COUNT( * ) AS col1 FROM tab2
----
-13
3

skipif mysql # not compatible
query II rowsort label-156
SELECT - MIN ( + 13 ), + COUNT ( * ) AS col1 FROM tab2
----
-13
3

onlyif mysql # aggregate syntax: 
query I rowsort label-157
SELECT DISTINCT 81 * + COUNT( + col0 ) FROM tab2
----
243

skipif mysql # not compatible
query I rowsort label-157
SELECT DISTINCT 81 * + COUNT ( + col0 ) FROM tab2
----
243

query III rowsort
SELECT * FROM tab2 WHERE NOT - - 99 / - col0 + - + col1 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 * - ( 50 ) AS col0, col2 col0 FROM tab1
----
2950
59
3400
68
4800
96

onlyif mysql # DIV for integer division: 
query I rowsort label-160
SELECT DISTINCT - col1 * + - col1 DIV - ( - + col1 ) FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-160
SELECT DISTINCT - col1 * + - col1 / - ( - + col1 ) FROM tab1
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-161
SELECT DISTINCT - col1 DIV + ( ( + 40 ) ) FROM tab0
----
-2
0

skipif mysql # not compatible
query I rowsort label-161
SELECT DISTINCT - col1 / + ( ( + 40 ) ) FROM tab0
----
-2
0

onlyif mysql # aggregate syntax: 
query I rowsort label-162
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL < col0
----
0

skipif mysql # not compatible
query I rowsort label-162
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL < col0
----
0

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-165
SELECT ALL 95 DIV 72 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-165
SELECT ALL 95 / 72 FROM tab1 cor0
----
1
1
1

query I rowsort
SELECT - ( + col2 ) * - + 33 FROM tab1 AS cor0
----
1947
2244
3168

query I rowsort
SELECT + 80 * + col0 + + ( - col2 ) AS col0 FROM tab2 AS cor0
----
3657
5080
5942

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

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

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

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

query I rowsort
SELECT col2 + - + 39 + col0 - col1 FROM tab0
----
-58
156
37

query III rowsort
SELECT * FROM tab0 WHERE NOT 2 NOT BETWEEN col1 / + 25 AND col0
----
87
21
10
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-172
SELECT ALL + 39 + + CAST( + col2 AS SIGNED ) + - + col1 + col0 * col0, + ( + + col0 ) FROM tab1 AS cor0
----
2722
51
7318
85
8341
91

skipif mysql # not compatible
query II rowsort label-172
SELECT ALL + 39 + + CAST ( + col2 AS INTEGER ) + - + col1 + col0 * col0, + ( + + col0 ) FROM tab1 AS cor0
----
2722
51
7318
85
8341
91

query I rowsort
SELECT 17 * + - 84 FROM tab0 cor0
----
-1428
-1428
-1428

query I rowsort
SELECT ALL - + 66 AS col1 FROM tab1 AS cor0
----
-66
-66
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-175
SELECT DISTINCT + - 16 * CAST( NULL AS SIGNED ) + + COUNT( * ) + - MIN( - + 61 ) * - COUNT( * ) - - - 12 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-175
SELECT DISTINCT + - 16 * CAST ( NULL AS INTEGER ) + + COUNT ( * ) + - MIN ( - + 61 ) * - COUNT ( * ) - - - 12 FROM tab2 AS cor0
----
NULL

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

query II rowsort
SELECT 81 * - + col2, - ( - - col2 ) + col2 + + col1 * + 45 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - + 90 FROM tab2 AS cor0 WHERE + col1 * - - 26 + col1 IS NULL
----

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

query I rowsort
SELECT DISTINCT - 62 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN + + col2 AND 88 * + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - col1 + col1 col2 FROM tab1 AS cor0
----
51
85
91

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

onlyif mysql # DIV for integer division: 
query I rowsort label-183
SELECT DISTINCT 54 DIV 62 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-183
SELECT DISTINCT 54 / 62 AS col2 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col2 FROM tab2 WHERE NULL BETWEEN - col0 * + - ( 1 ) AND + 12 * col0
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-185
SELECT DISTINCT COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) col2 FROM tab2 WHERE NOT col0 IS NULL
----
0

query I rowsort
SELECT DISTINCT + col0 + col0 * + - 49 FROM tab2 AS cor0
----
-2208
-3072
-3600

onlyif mysql # DIV for integer division: 
query I rowsort label-187
SELECT 86 DIV + 29 AS col2 FROM tab2 AS cor0 WHERE + col0 IS NOT NULL
----
2
2
2

skipif mysql # not compatible
query I rowsort label-187
SELECT 86 / + 29 AS col2 FROM tab2 AS cor0 WHERE + col0 IS NOT NULL
----
2
2
2

query I rowsort
SELECT DISTINCT 6 + + col0 AS col1 FROM tab2 AS cor0
----
52
70
81

query I rowsort
SELECT DISTINCT + 18 / - 33 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL 86 - + col2 FROM tab1
----
-10
18
27

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

query I rowsort
SELECT DISTINCT + col1 * 96 AS col2 FROM tab0 AS cor0
----
2016
7776
96

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

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

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

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

query I rowsort
SELECT + col2 * - + col0 AS col0 FROM tab2 AS cor0
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-197
SELECT - - 77 * - MAX( DISTINCT - 46 ) FROM tab1 AS cor0
----
3542

skipif mysql # not compatible
query I rowsort label-197
SELECT - - 77 * - MAX ( DISTINCT - 46 ) FROM tab1 AS cor0
----
3542

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-198
SELECT DISTINCT - col1 col2, CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
-51
NULL
-67
NULL
-77
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-198
SELECT DISTINCT - col1 col2, CAST ( NULL AS REAL ) AS col1 FROM tab2
----
-51
NULL
-67
NULL
-77
NULL

query I rowsort
SELECT ALL col0 * - - 12 AS col1 FROM tab0
----
1044
1164
180

onlyif mysql # aggregate syntax: 
query I rowsort label-200
SELECT DISTINCT MIN( DISTINCT - col0 ) * + ( + + COUNT( * ) ) FROM tab0
----
-291

skipif mysql # not compatible
query I rowsort label-200
SELECT DISTINCT MIN ( DISTINCT - col0 ) * + ( + + COUNT ( * ) ) FROM tab0
----
-291

query II rowsort
SELECT + col2, + col2 - + col1 FROM tab2
----
23
-28
40
-37
58
-9

query I rowsort
SELECT - 26 FROM tab0 WHERE NOT - col2 BETWEEN - 96 AND - 36 * + col0
----
-26
-26
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-203
SELECT - SUM( - col0 ) * + 63 AS col0 FROM tab2
----
11655

skipif mysql # not compatible
query I rowsort label-203
SELECT - SUM ( - col0 ) * + 63 AS col0 FROM tab2
----
11655

query I rowsort
SELECT + ( + col1 ) * - - ( + ( + col1 ) ) * - col0 * + - 22 FROM tab2 cor0
----
2632212
7406850
8348032

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-207
SELECT - - COUNT( * ) + + MIN( DISTINCT - + col2 ) AS col0 FROM tab0 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-207
SELECT - - COUNT ( * ) + + MIN ( DISTINCT - + col2 ) AS col0 FROM tab0 AS cor0
----
-96

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 71 / - col2 <= NULL AND col2 IS NOT NULL
----

query I rowsort
SELECT - col1 + + 55 AS col0 FROM tab2 AS cor0
----
-12
-22
4

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-211
SELECT COUNT( * ) DIV + 31 + - + COUNT( * ), COUNT( * ) * - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-3
-9

skipif mysql # not compatible
query II rowsort label-211
SELECT COUNT ( * ) / + 31 + - + COUNT ( * ), COUNT ( * ) * - + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-3
-9

query I rowsort
SELECT + + 83 * + col1 AS col1 FROM tab1 AS cor0 WHERE NULL < ( NULL )
----

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

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

query I rowsort
SELECT DISTINCT + col2 * - + col2 + + col1 FROM tab2 AS cor0
----
-1523
-3297
-478

query I rowsort
SELECT + + ( - + 8 ) + - col0 * - 16 FROM tab2 AS cor0
----
1016
1192
728

query I rowsort
SELECT - - 39 + + ( - col2 ) AS col2 FROM tab0 AS cor0
----
-60
-8
29

onlyif mysql # aggregate syntax: 
query I rowsort label-217
SELECT ALL - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE col2 * - - col1 / - 14 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-217
SELECT ALL - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE col2 * - - col1 / - 14 IS NULL
----
0

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

skipif mysql # not compatible
query I rowsort label-218
SELECT ALL - col2 / - 88 AS col0 FROM tab0
----
0
0
1

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-221
SELECT ALL COUNT( * ) - - - COUNT( * ) + + + 7 * - SUM( ALL - ( + col1 ) ) + + COUNT( * ) AS col0 FROM tab2
----
1368

skipif mysql # not compatible
query I rowsort label-221
SELECT ALL COUNT ( * ) - - - COUNT ( * ) + + + 7 * - SUM ( ALL - ( + col1 ) ) + + COUNT ( * ) AS col0 FROM tab2
----
1368

query I rowsort
SELECT ALL + 5 + - 34 FROM tab0
----
-29
-29
-29

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL >= + 71 * + + 31
----

query I rowsort
SELECT ALL 80 + col1 FROM tab2 cor0
----
131
147
157

query I rowsort
SELECT DISTINCT + col2 + - + col0 * 56 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-2553
-3544
-4142

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-227
SELECT + COUNT( * ) DIV 61 - SUM( DISTINCT + col1 ) AS col1 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-227
SELECT + COUNT ( * ) / 61 - SUM ( DISTINCT + col1 ) AS col1 FROM tab2
----
-195

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-228
SELECT MIN( DISTINCT - 39 ) + CAST( NULL AS DECIMAL ) FROM tab1 WHERE NOT ( 4 + 79 ) NOT IN ( 27 - + col0 * + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-228
SELECT MIN ( DISTINCT - 39 ) + CAST ( NULL AS REAL ) FROM tab1 WHERE NOT ( 4 + 79 ) NOT IN ( 27 - + col0 * + col2 )
----
NULL

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

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

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

query I rowsort
SELECT DISTINCT + 92 + 33 FROM tab1
----
125

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col0 * 81 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NOT + col0 <> + 69 * + 93
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 59 * col0 col1 FROM tab2 WHERE col0 - + col0 NOT BETWEEN NULL AND NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-237
SELECT MIN ( col2 ) col1 FROM tab0
----
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - 16 - - col0 col1 FROM tab1
----
-1275
-1365
-765

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 IN ( - 98 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT ALL - col0 + 12 FROM tab2
----
-34
-52
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-242
SELECT DISTINCT COUNT( * ) * 46 + COUNT( * ) FROM tab1
----
141

skipif mysql # not compatible
query I rowsort label-242
SELECT DISTINCT COUNT ( * ) * 46 + COUNT ( * ) FROM tab1
----
141

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-244
SELECT MAX( col1 ) col2 FROM tab1
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-244
SELECT MAX ( col1 ) col2 FROM tab1
----
47

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

skipif mysql # not compatible
query I rowsort label-245
SELECT - col0 / + col1 + - col0 FROM tab2
----
-46
-64
-76

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-246
SELECT DISTINCT * FROM tab2 WHERE CAST( - 99 AS DECIMAL ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-246
SELECT DISTINCT * FROM tab2 WHERE CAST ( - 99 AS REAL ) >= NULL
----

query I rowsort
SELECT ALL - AVG ( - col2 ) FROM tab1 WHERE NULL <= ( + col2 + 18 )
----
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 33 col0 FROM tab2 WHERE + 49 + col0 NOT BETWEEN NULL AND col1
----
33
33
33

query I rowsort
SELECT col2 FROM tab0 WHERE NOT NULL BETWEEN - col0 + - col0 AND 79
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - ( + col1 ) ) <> 29
----

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

skipif mysql # not compatible
query I rowsort label-252
SELECT MIN ( + ( 2 ) ) AS col0 FROM tab1
----
2

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE - 27 * 27 <= col2 * col2
----
1
21
81

query I rowsort
SELECT ALL 42 * 4 FROM tab2 AS cor0
----
168
168
168

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 + - 28 < - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-257
SELECT + SUM( DISTINCT - 82 ) * 66 + + 53 FROM tab2 AS cor0
----
-5359

skipif mysql # not compatible
query I rowsort label-257
SELECT + SUM ( DISTINCT - 82 ) * 66 + + 53 FROM tab2 AS cor0
----
-5359

onlyif mysql # aggregate syntax: 
query I rowsort label-258
SELECT ALL + MAX( ALL + col1 ) + 78 AS col2 FROM tab0
----
159

skipif mysql # not compatible
query I rowsort label-258
SELECT ALL + MAX ( ALL + col1 ) + 78 AS col2 FROM tab0
----
159

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

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

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

skipif mysql # not compatible
query I rowsort label-260
SELECT - - 30 * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
90

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-261
SELECT - + MIN ( 76 ) col2 FROM tab2 AS cor0
----
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-262
SELECT DISTINCT + col1 DIV - 20 + 49 AS col1 FROM tab1 AS cor0
----
47
49

skipif mysql # not compatible
query I rowsort label-262
SELECT DISTINCT + col1 / - 20 + 49 AS col1 FROM tab1 AS cor0
----
47
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col2 FROM tab1 cor0 WHERE ( col0 ) < 59 * 30
----
51
85
91

query I rowsort
SELECT DISTINCT + - 59 + col1 AS col0 FROM tab0 AS cor0
----
-38
-58
22

query I rowsort
SELECT - col2 - col0 AS col0 FROM tab1 cor0
----
-144
-147
-159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-266
SELECT DISTINCT - col0 + + 81 FROM tab0 AS cor0 WHERE ( 51 - CAST( - col1 + 54 AS SIGNED ) ) NOT BETWEEN col0 AND ( - col1 )
----
-16
-6
66

skipif mysql # not compatible
query I rowsort label-266
SELECT DISTINCT - col0 + + 81 FROM tab0 AS cor0 WHERE ( 51 - CAST ( - col1 + 54 AS INTEGER ) ) NOT BETWEEN col0 AND ( - col1 )
----
-16
-6
66

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

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

query I rowsort
SELECT DISTINCT col0 * + 61 AS col2 FROM tab2 WHERE NULL BETWEEN - col2 AND NULL
----

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

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + 56 ) NOT BETWEEN ( col1 - 46 ) AND col0 * ( col2 * col1 )
----

query I rowsort
SELECT ( - - col1 ) + 19 AS col1 FROM tab0
----
100
20
40

query I rowsort
SELECT ALL - col0 - + - col1 + - 95 FROM tab1
----
-132
-139
-175

onlyif mysql # aggregate syntax: 
query I rowsort label-273
SELECT - COUNT( * ) * - - COUNT( * ) + + MAX( ALL col1 + col2 ) AS col0 FROM tab1
----
106

skipif mysql # not compatible
query I rowsort label-273
SELECT - COUNT ( * ) * - - COUNT ( * ) + + MAX ( ALL col1 + col2 ) AS col0 FROM tab1
----
106

query I rowsort
SELECT + col1 * - 48 + 10 FROM tab2 WHERE + col0 * + 85 - + col2 IN ( - col0 )
----

query I rowsort
SELECT DISTINCT 94 + + col0 AS col1 FROM tab1
----
145
179
185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 76 + - col2 * 20 col2 FROM tab1 cor0
----
-1104
-1284
-1844

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 / + 90 BETWEEN col2 AND + 52
----

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

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

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

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + col1 ) < col0
----
75
67
58

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <= + 85 + col1 / + col1
----

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

query I rowsort
SELECT ( + col0 ) + + col2 * + 57 FROM tab1 cor0 WHERE NOT 83 + col2 BETWEEN - col1 AND col2
----
3448
3967
5523

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-288
SELECT + MAX( ( + col1 ) ) / - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-288
SELECT + MAX ( ( + col1 ) ) / - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 1 * - - col0 col1 FROM tab0 AS cor0
----
15
87
97

query II rowsort
SELECT DISTINCT + col1 AS col1, col2 * 18 * - col0 FROM tab1 AS cor0
----
14
-88128
47
-111384
5
-90270

query I rowsort
SELECT ALL col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col1 FROM tab0 AS cor0 WHERE NOT + col2 > + 42
----
87

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

query I rowsort
SELECT - + 44 AS col0 FROM tab1 AS cor0 WHERE NOT - 92 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - 22 AS col1, col2 * col2 * + 59 AS col2 FROM tab2 AS cor0
----
-22
198476
-22
31211
-22
94400

query I rowsort
SELECT col0 * - - col1 + + + 35 FROM tab0 AS cor0
----
1250
132
1862

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

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

query I rowsort
SELECT + col2 * - + col0 * + col0 + 5 - col1 * - col2 FROM tab0
----
-6763
-75475
-931387

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 66 + - col1 col1 FROM tab0
----
-1407
-5427
-67

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

skipif mysql # not compatible
query I rowsort label-303
SELECT col0 * - col1 + + CAST ( NULL AS REAL ) + + 60 * col1 FROM tab2
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-305
SELECT + CAST( NULL AS SIGNED ) * 52 AS col0 FROM tab2 WHERE NOT - col2 - 54 * col0 < ( 41 * - col2 ) AND NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-305
SELECT + CAST ( NULL AS INTEGER ) * 52 AS col0 FROM tab2 WHERE NOT - col2 - 54 * col0 < ( 41 * - col2 ) AND NULL IS NULL
----

query I rowsort
SELECT ALL - 43 + - col2 FROM tab0
----
-142
-53
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-307
SELECT - ( + 66 ) AS col0 FROM tab2 AS cor0 WHERE + col2 * - CAST( 70 AS SIGNED ) <= 74 * col0
----
-66
-66
-66

skipif mysql # not compatible
query I rowsort label-307
SELECT - ( + 66 ) AS col0 FROM tab2 AS cor0 WHERE + col2 * - CAST ( 70 AS INTEGER ) <= 74 * col0
----
-66
-66
-66

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

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

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 53 NOT BETWEEN ( + col1 ) AND ( + col0 / - col1 + 24 )
----

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

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

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

query I rowsort
SELECT + + 33 + + ( + + 38 ) + + + col2 + + col2 AS col0 FROM tab2 AS cor0
----
117
151
187

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

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

query I rowsort
SELECT ALL - ( - + col2 ) + + - col0 - - col1 * + 30 AS col2 FROM tab2 AS cor0
----
1507
1993
2286

query I rowsort
SELECT DISTINCT col1 * col2 FROM tab1 AS cor0 WHERE ( - col2 * - col1 * col2 * - col0 / col1 + col1 * - 29 ) IS NOT NULL
----
1344
295
3196

query I rowsort
SELECT ALL + col1 FROM tab1 AS cor0 WHERE + col1 < col1
----

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE - col0 BETWEEN - ( 43 ) * - - 9 AND ( + 31 * 7 - col1 )
----
59
68
96

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - - ( 18 ) col0 FROM tab0
----
117
28
65

query I rowsort
SELECT DISTINCT col1 * - col1 * col0 + + + col1 AS col2 FROM tab0
----
-38346
-96
-98334

onlyif mysql # aggregate syntax: 
query I rowsort label-324
SELECT DISTINCT - ( + COUNT( * ) ) - + 26 FROM tab2
----
-29

skipif mysql # not compatible
query I rowsort label-324
SELECT DISTINCT - ( + COUNT ( * ) ) - + 26 FROM tab2
----
-29

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + 5 AND 6 + + 34 * - - 0
----

query I rowsort
SELECT ALL - - 37 * + col0 FROM tab0 cor0
----
3219
3589
555

onlyif mysql # DIV for integer division: 
query II rowsort label-327
SELECT DISTINCT + col0 DIV - col2, - col0 AS col0 FROM tab1
----
-1
-85
-1
-91
0
-51

skipif mysql # not compatible
query II rowsort label-327
SELECT DISTINCT + col0 / - col2, - col0 AS col0 FROM tab1
----
-1
-85
-1
-91
0
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-328
SELECT DISTINCT + + 21 AS col1, COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
21
9

skipif mysql # not compatible
query II rowsort label-328
SELECT DISTINCT + + 21 AS col1, COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
21
9

query III rowsort
SELECT ALL * FROM tab2 WHERE - - col2 * - - 18 / + col1 + + 71 NOT IN ( - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-331
SELECT DISTINCT + col2 * - CAST( ( 26 ) AS SIGNED ) FROM tab2 AS cor0 WHERE NOT NULL <> ( 66 - - 47 * + col2 + CAST( - col0 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-331
SELECT DISTINCT + col2 * - CAST ( ( 26 ) AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL <> ( 66 - - 47 * + col2 + CAST ( - col0 AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col2 ) NOT IN ( - ( - - 41 ) )
----

query I rowsort
SELECT + - 29 + - 62 * - col2 FROM tab2 cor0 WHERE NOT + col2 + col1 IS NOT NULL
----

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 / - + 51 * col2 * - 95 IN ( - - col0 * - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - - ( + - col1 ) AS col2 FROM tab0 AS cor0
----
-1
-21
-81

query II rowsort
SELECT DISTINCT - col0 AS col0, + col0 + + + 62 * col0 AS col1 FROM tab2
----
-46
2898
-64
4032
-75
4725

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

onlyif mysql # aggregate syntax: 
query II rowsort label-339
SELECT ALL COUNT( * ) AS col0, 84 FROM tab1 WHERE + + 76 + - col0 / col2 = NULL
----
0
84

skipif mysql # not compatible
query II rowsort label-339
SELECT ALL COUNT ( * ) AS col0, 84 FROM tab1 WHERE + + 76 + - col0 / col2 = NULL
----
0
84

onlyif mysql # aggregate syntax: 
query I rowsort label-340
SELECT 53 * + COUNT( * ) AS col1 FROM tab0
----
159

skipif mysql # not compatible
query I rowsort label-340
SELECT 53 * + COUNT ( * ) AS col1 FROM tab0
----
159

query I rowsort
SELECT DISTINCT - 9 * 71 FROM tab1
----
-639

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

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

query II rowsort
SELECT col2, + 54 AS col2 FROM tab2
----
23
54
40
54
58
54

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 94 > + col0
----
15
81
47
87
21
10

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

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

query I rowsort
SELECT DISTINCT col0 - + col2 * - col0 FROM tab1 WHERE ( + 79 ) IS NOT NULL
----
4947
5100
6279

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col0 FROM tab0 AS cor0 WHERE NOT + - col2 * + ( + col2 ) + 25 <> - col2 + + + ( + col0 ) AND NOT col0 * - col1 IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-352
SELECT - 2 + ( - - ( - + COUNT( * ) ) ) FROM tab0 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-352
SELECT - 2 + ( - - ( - + COUNT ( * ) ) ) FROM tab0 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-353
SELECT + 10 + + - ( - COUNT( * ) ) FROM tab1 cor0
----
13

skipif mysql # not compatible
query I rowsort label-353
SELECT + 10 + + - ( - COUNT ( * ) ) FROM tab1 cor0
----
13

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-355
SELECT 60 DIV col0 + - col0 FROM tab0
----
-11
-87
-97

skipif mysql # not compatible
query I rowsort label-355
SELECT 60 / col0 + - col0 FROM tab0
----
-11
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-356
SELECT - CAST( - col2 AS SIGNED ) + + - 58 FROM tab2
----
-18
-35
0

skipif mysql # not compatible
query I rowsort label-356
SELECT - CAST ( - col2 AS INTEGER ) + + - 58 FROM tab2
----
-18
-35
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-357
SELECT - 44 DIV - 78 * COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
0

skipif mysql # not compatible
query I rowsort label-357
SELECT - 44 / - 78 * COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
0

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

skipif mysql # not compatible
query I rowsort label-358
SELECT DISTINCT - + COUNT ( * ) - 26 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-29

query I rowsort
SELECT + - 51 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 08d3853e39924d3c636260a6dd856837

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-363
SELECT - 79 - - COUNT( DISTINCT col2 ) + + - 58 * 66 col2 FROM tab2 cor0
----
-3904

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-363
SELECT - 79 - - COUNT ( DISTINCT col2 ) + + - 58 * 66 col2 FROM tab2 cor0
----
-3904

onlyif mysql # DIV for integer division: 
query I rowsort label-364
SELECT - col0 DIV - col1 - + col1 FROM tab2 AS cor0
----
-51
-66
-77

skipif mysql # not compatible
query I rowsort label-364
SELECT - col0 / - col1 - + col1 FROM tab2 AS cor0
----
-51
-66
-77

query I rowsort
SELECT DISTINCT - col1 + 31 AS col1 FROM tab2 AS cor0
----
-20
-36
-46

query II rowsort
SELECT col2 + - ( col0 ) AS col1, col0 + col2 AS col1 FROM tab1
----
-23
159
-26
144
45
147

onlyif mysql # aggregate syntax: 
query I rowsort label-367
SELECT DISTINCT COUNT( * ) * ( 71 ) FROM tab2
----
213

skipif mysql # not compatible
query I rowsort label-367
SELECT DISTINCT COUNT ( * ) * ( 71 ) FROM tab2
----
213

onlyif mysql # DIV for integer division: 
query I rowsort label-368
SELECT DISTINCT - ( + col2 ) DIV + col0 FROM tab0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-368
SELECT DISTINCT - ( + col2 ) / + col0 FROM tab0
----
-1
-3
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 16 * - 67 col1 FROM tab1 AS cor0
----
-1072
-1072
-1072

query I rowsort
SELECT + col0 * - col1 * + 13 FROM tab0 AS cor0
----
-1261
-15795
-23751

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

onlyif mysql # aggregate syntax: 
query I rowsort label-372
SELECT + MAX( DISTINCT + 21 ) * + 21 * - + 93 - + 95 AS col2 FROM tab0 cor0
----
-41108

skipif mysql # not compatible
query I rowsort label-372
SELECT + MAX ( DISTINCT + 21 ) * + 21 * - + 93 - + 95 AS col2 FROM tab0 cor0
----
-41108

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-376
SELECT DISTINCT + col0 AS col1 FROM tab1 cor0 WHERE ( + col2 ) NOT BETWEEN - CAST( NULL AS DECIMAL ) AND col2
----

skipif mysql # not compatible
query I rowsort label-376
SELECT DISTINCT + col0 AS col1 FROM tab1 cor0 WHERE ( + col2 ) NOT BETWEEN - CAST ( NULL AS REAL ) AND col2
----

query I rowsort
SELECT DISTINCT col2 + - 23 + col0 FROM tab0 AS cor0
----
173
39
74

query I rowsort
SELECT + + col1 FROM tab2 cor0 WHERE NOT 61 IS NULL
----
51
67
77

query I rowsort
SELECT DISTINCT - - col2 + + 29 FROM tab0 AS cor0
----
128
39
76

onlyif mysql # DIV for integer division: 
query II rowsort label-380
SELECT ALL + col0 col2, - col2 DIV - col0 AS col1 FROM tab1 AS cor0
----
51
1
85
0
91
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-380
SELECT ALL + col0 col2, - col2 / - col0 AS col1 FROM tab1 AS cor0
----
51
1
85
0
91
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-381
SELECT - CAST( col1 AS SIGNED ) + + 86 FROM tab1 AS cor0
----
39
72
81

skipif mysql # not compatible
query I rowsort label-381
SELECT - CAST ( col1 AS INTEGER ) + + 86 FROM tab1 AS cor0
----
39
72
81

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

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

skipif mysql # not compatible
query I rowsort label-383
SELECT DISTINCT COUNT ( * ) / - 79 AS col1 FROM tab2
----
0

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

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

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-389
SELECT DISTINCT + 56 * col2 DIV 91 - + + 49 FROM tab2 AS cor0
----
-14
-25
-35

skipif mysql # not compatible
query I rowsort label-389
SELECT DISTINCT + 56 * col2 / 91 - + + 49 FROM tab2 AS cor0
----
-14
-25
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-390
SELECT DISTINCT - 96 + + MAX( 1 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-95

skipif mysql # not compatible
query I rowsort label-390
SELECT DISTINCT - 96 + + MAX ( 1 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-391
SELECT ALL col2 - col2 + - col2 AS col2, - CAST( col2 AS SIGNED ) FROM tab1
----
-59
-59
-68
-68
-96
-96

skipif mysql # not compatible
query II rowsort label-391
SELECT ALL col2 - col2 + - col2 AS col2, - CAST ( col2 AS INTEGER ) FROM tab1
----
-59
-59
-68
-68
-96
-96

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

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-394
SELECT DISTINCT MAX ( ALL col0 ) col1 FROM tab2
----
75

query I rowsort
SELECT + col2 + col2 * - + 54 AS col1 FROM tab1 cor0
----
-3127
-3604
-5088

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

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

query I rowsort
SELECT ALL 35 + + col1 FROM tab2 cor0
----
102
112
86

onlyif mysql # DIV for integer division: 
query I rowsort label-398
SELECT ALL - - col0 * - col1 + - col0 + + + col1 DIV - + 17 AS col1 FROM tab2 AS cor0
----
-2395
-4996
-5103

skipif mysql # not compatible
query I rowsort label-398
SELECT ALL - - col0 * - col1 + - col0 + + + col1 / - + 17 AS col1 FROM tab2 AS cor0
----
-2395
-4996
-5103

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 8 col2, 63 * - col0 AS col1 FROM tab2 AS cor0
----
-8
-2898
-8
-4032
-8
-4725

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 * + col0 + + + 14 col2 FROM tab1 AS cor0 WHERE NOT 34 BETWEEN ( + 45 + - - col1 ) AND 89 / + 16
----
-2587
-7211
-8267

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

query I rowsort
SELECT + col1 FROM tab1 WHERE NOT 86 NOT IN ( + ( + 56 ) / + col1, col0 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-405
SELECT COUNT( ALL 82 ) col2 FROM tab1
----
3

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

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

query II rowsort
SELECT ALL ( - col1 ) * + - col0 + + col1 AS col0, 52 + + + 93 FROM tab0
----
1296
145
1848
145
98
145

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

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

query I rowsort
SELECT + 94 * + + col1 + - + col0 FROM tab1 AS cor0
----
1265
385
4327

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-411
SELECT ALL - 55 FROM tab2 AS cor0 WHERE NOT + col2 BETWEEN - CAST( NULL AS SIGNED ) AND - col2 * + 61
----
-55
-55
-55

skipif mysql # not compatible
query I rowsort label-411
SELECT ALL - 55 FROM tab2 AS cor0 WHERE NOT + col2 BETWEEN - CAST ( NULL AS INTEGER ) AND - col2 * + 61
----
-55
-55
-55

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-413
SELECT + col1 DIV 6 DIV + + ( + col2 ) * + 1 + + - col2 + col1 + - + ( - CAST( - 68 AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
-166
-34
-57

skipif mysql # not compatible
query I rowsort label-413
SELECT + col1 / 6 / + + ( + col2 ) * + 1 + + - col2 + col1 + - + ( - CAST ( - 68 AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
-166
-34
-57

query I rowsort
SELECT 12 + 58 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

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

onlyif mysql # aggregate syntax: 
query I rowsort label-416
SELECT DISTINCT - - MAX( - col0 ) + + - SUM( ALL col1 ) AS col0 FROM tab1 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort label-416
SELECT DISTINCT - - MAX ( - col0 ) + + - SUM ( ALL col1 ) AS col0 FROM tab1 AS cor0
----
-117

onlyif mysql # DIV for integer division: 
query II rowsort label-417
SELECT ALL - 76 + 82 DIV col0 AS col2, + ( + col1 ) DIV - col2 AS col0 FROM tab1 AS cor0
----
-75
0
-76
0
-76
0

skipif mysql # not compatible
query II rowsort label-417
SELECT ALL - 76 + 82 / col0 AS col2, + ( + col1 ) / - col2 AS col0 FROM tab1 AS cor0
----
-75
0
-76
0
-76
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 26 ) * + + col0 col0 FROM tab0 AS cor0
----
2262
2522
390

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 22 * - 11 col1 FROM tab2 AS cor0
----
242
242
242

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 * + col0 - - 29 IS NULL
----

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

query I rowsort
SELECT + 17 * - - col2 * col1 AS col2 FROM tab2
----
19941
52360
66062

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * 33 col2 FROM tab1
----
1551
165
462

query I rowsort
SELECT DISTINCT + - ( - col2 ) AS col1 FROM tab0 WHERE NOT col2 IS NULL
----
10
47
99

query I rowsort
SELECT DISTINCT + 89 * - col2 FROM tab1
----
-5251
-6052
-8544

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-430
SELECT DISTINCT COUNT( * ) DIV + + MIN( DISTINCT + col0 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-430
SELECT DISTINCT COUNT ( * ) / + + MIN ( DISTINCT + col0 ) FROM tab0
----
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-431
SELECT + CAST ( NULL AS INTEGER ) * + col2 + + + col0 / col0 col0 FROM tab0
----
NULL
NULL
NULL

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

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

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

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

query I rowsort
SELECT - + 31 + - col1 * - col0 AS col1 FROM tab0 AS cor0
----
1184
1796
66

query I rowsort
SELECT - col1 + + - 59 AS col0 FROM tab1 AS cor0 WHERE NULL <= - ( + + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-436
SELECT ALL - + col1 + - - 23 + - - col0 + + col0 DIV 87 AS col0 FROM tab2 AS cor0
----
10
18
31

skipif mysql # not compatible
query I rowsort label-436
SELECT ALL - + col1 + - - 23 + - - col0 + + col0 / 87 AS col0 FROM tab2 AS cor0
----
10
18
31

query II rowsort
SELECT DISTINCT + col1 AS col1, col1 + - + ( col2 ) + + 84 AS col1 FROM tab0 AS cor0
----
1
-14
21
95
81
118

query I rowsort
SELECT ALL 65 + - + col2 * - 42 FROM tab2 AS cor0
----
1031
1745
2501

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

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

query I rowsort
SELECT - col2 * - 75 - ( - col2 ) * col2 FROM tab0
----
17226
5734
850

onlyif mysql # DIV for integer division: 
query I rowsort label-442
SELECT - 27 DIV + col0 - + ( + col2 ) FROM tab1 cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-442
SELECT - 27 / + col0 - + ( + col2 ) FROM tab1 cor0
----
-59
-68
-96

query II rowsort
SELECT ALL + - col2 * - 56 AS col0, col2 + + col2 FROM tab0 AS cor0
----
2632
94
5544
198
560
20

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

query I rowsort
SELECT - col0 * + col1 - - - col1 FROM tab0 AS cor0
----
-1296
-1848
-98

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN + col2 AND col0
----
75
67
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-447
SELECT 48 * MAX( - ( + CAST( - 30 AS SIGNED ) ) ) + + ( - ( - - 68 ) ) FROM tab0 AS cor0
----
1372

skipif mysql # not compatible
query I rowsort label-447
SELECT 48 * MAX ( - ( + CAST ( - 30 AS INTEGER ) ) ) + + ( - ( - - 68 ) ) FROM tab0 AS cor0
----
1372

onlyif mysql # aggregate syntax: 
query I rowsort label-448
SELECT DISTINCT SUM( ALL - 28 ) FROM tab0
----
-84

skipif mysql # not compatible
query I rowsort label-448
SELECT DISTINCT SUM ( ALL - 28 ) FROM tab0
----
-84

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

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

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE - 87 BETWEEN + col0 * 58 AND NULL
----

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-456
SELECT ALL + + ( + 15 ) + - CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
-25
-43
-8

skipif mysql # not compatible
query I rowsort label-456
SELECT ALL + + ( + 15 ) + - CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
-25
-43
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 8 + ( + col0 ) col2 FROM tab2 cor0
----
54
72
83

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-462
SELECT ALL + COUNT( * ) AS col2 FROM tab0 WHERE NOT col2 + - 32 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-462
SELECT ALL + COUNT ( * ) AS col2 FROM tab0 WHERE NOT col2 + - 32 IS NULL
----
3

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - col0 * - 44 * 37 < NULL
----

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

skipif mysql # not compatible
query I rowsort label-465
SELECT DISTINCT 66 + - - SUM ( - + col1 ) FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-466
SELECT DISTINCT + - COUNT( DISTINCT + + col0 ) + SUM( DISTINCT col1 ) AS col0 FROM tab0 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-466
SELECT DISTINCT + - COUNT ( DISTINCT + + col0 ) + SUM ( DISTINCT col1 ) AS col0 FROM tab0 AS cor0
----
100

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

query I rowsort
SELECT ALL + + col2 - + + 17 AS col1 FROM tab1 cor0
----
42
51
79

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-469
SELECT DISTINCT * FROM tab2 WHERE + + col2 BETWEEN + ( - - col2 ) * + - col2 + - col1 * - 74 / - 14 * - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-469
SELECT DISTINCT * FROM tab2 WHERE + + col2 BETWEEN + ( - - col2 ) * + - col2 + - col1 * - 74 / - 14 * - CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-470
SELECT ALL 57 * + - CAST( - col2 AS SIGNED ) * - 32 + - 64 - - - col0 AS col2 FROM tab1
----
-107765
-124187
-175219

skipif mysql # not compatible
query I rowsort label-470
SELECT ALL 57 * + - CAST ( - col2 AS INTEGER ) * - 32 + - 64 - - - col0 AS col2 FROM tab1
----
-107765
-124187
-175219

onlyif mysql # aggregate syntax: 
query I rowsort label-471
SELECT DISTINCT MAX( - col0 ) col2 FROM tab0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-471
SELECT DISTINCT MAX ( - col0 ) col2 FROM tab0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-472
SELECT ALL - + CAST( NULL AS SIGNED ) AS col0, col0 + - col0 AS col1 FROM tab0 AS cor0 WHERE NOT col1 + - + col1 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-472
SELECT ALL - + CAST ( NULL AS INTEGER ) AS col0, col0 + - col0 AS col1 FROM tab0 AS cor0 WHERE NOT col1 + - + col1 IS NOT NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-474
SELECT ALL + ( + - col2 ) DIV - - CAST( + 40 AS SIGNED ) FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-474
SELECT ALL + ( + - col2 ) / - - CAST ( + 40 AS INTEGER ) FROM tab0 AS cor0
----
-1
-2
0

onlyif mysql # aggregate syntax: 
query I rowsort label-475
SELECT - + SUM( + col1 ) * + 26 AS col1 FROM tab1 cor0
----
-1716

skipif mysql # not compatible
query I rowsort label-475
SELECT - + SUM ( + col1 ) * + 26 AS col1 FROM tab1 cor0
----
-1716

query I rowsort
SELECT - 90 * + col2 - + 76 AS col0 FROM tab1 AS cor0
----
-5386
-6196
-8716

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

onlyif mysql # aggregate syntax: 
query I rowsort label-478
SELECT - SUM( ALL col0 ) AS col1 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-478
SELECT - SUM ( ALL col0 ) AS col1 FROM tab1
----
-227

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

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

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

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

query II rowsort
SELECT DISTINCT col1 + + - col0 AS col2, + 37 * - col0 AS col1 FROM tab0 cor0
----
-66
-3219
-96
-3589
66
-555

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

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

query I rowsort
SELECT + 22 + - 17 FROM tab1
----
5
5
5

query I rowsort
SELECT DISTINCT - col2 + - - col0 * - + ( + + col1 ) FROM tab0
----
-1262
-1837
-196

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

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

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

query I rowsort
SELECT ALL + - col1 AS col1 FROM tab2 WHERE col1 IS NOT NULL
----
-51
-67
-77

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

onlyif mysql # aggregate syntax: 
query II rowsort label-489
SELECT + 22, - COUNT( + - 16 ) AS col0 FROM tab0 AS cor0
----
22
-3

skipif mysql # not compatible
query II rowsort label-489
SELECT + 22, - COUNT ( + - 16 ) AS col0 FROM tab0 AS cor0
----
22
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-490
SELECT + col2, + 20 DIV 16 * - + 30 AS col1 FROM tab0 AS cor0
----
10
-30
47
-30
99
-30

skipif mysql # not compatible
query II rowsort label-490
SELECT + col2, + 20 / 16 * - + 30 AS col1 FROM tab0 AS cor0
----
10
-30
47
-30
99
-30

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

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

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

query I rowsort
SELECT DISTINCT col1 - + 57 + + col2 FROM tab0
----
-26
43
71

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

query I rowsort
SELECT ( - col2 ) + + - 27 FROM tab1
----
-123
-86
-95

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-497
SELECT col1 DIV 88 DIV - CAST( - 42 AS SIGNED ) + col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-497
SELECT col1 / 88 / - CAST ( - 42 AS INTEGER ) + col1 FROM tab2
----
51
67
77

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-499
SELECT ALL - SUM( DISTINCT + + 34 ) FROM tab2 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-499
SELECT ALL - SUM ( DISTINCT + + 34 ) FROM tab2 AS cor0
----
-34

query I rowsort
SELECT ALL col2 * - + 7 AS col2 FROM tab2
----
-161
-280
-406

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

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

skipif mysql # not compatible
query I rowsort label-502
SELECT DISTINCT - - col1 / + col1 AS col2 FROM tab0 AS cor0
----
1

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 49 col0, col0 AS col1 FROM tab0
----
-49
15
-49
87
-49
97

query I rowsort
SELECT - 5 * + col1 + - 60 FROM tab1
----
-130
-295
-85

query I rowsort
SELECT ALL 23 / + col1 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT - 31, + col2 FROM tab0 AS cor0
----
-31
10
-31
47
-31
99

query I rowsort
SELECT + col1 * + - 43 FROM tab2 cor0
----
-2193
-2881
-3311

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

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

query I rowsort
SELECT DISTINCT col2 + col1 - ( + + col1 ) * 54 AS col1 FROM tab0
----
-1103
-4246
46

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

onlyif mysql # DIV for integer division: 
query I rowsort label-513
SELECT - 64 + - + col2 + 95 DIV col0 FROM tab1 AS cor0
----
-122
-131
-159

skipif mysql # not compatible
query I rowsort label-513
SELECT - 64 + - + col2 + 95 / col0 FROM tab1 AS cor0
----
-122
-131
-159

query I rowsort
SELECT ALL 35 AS col0 FROM tab1 AS cor0 WHERE NULL >= NULL
----

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

query II rowsort
SELECT col1 + col1, 91 + ( 56 ) AS col0 FROM tab0 cor0
----
162
147
2
147
42
147

query II rowsort
SELECT DISTINCT - 37 AS col2, + col1 * col1 + col0 AS col0 FROM tab0
----
-37
528
-37
6576
-37
98

query I rowsort
SELECT ALL - col0 - col2 AS col1 FROM tab1
----
-144
-147
-159

query II rowsort
SELECT - 40 AS col0, 84 FROM tab1
----
-40
84
-40
84
-40
84

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

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

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

skipif mysql # not compatible
query I rowsort label-521
SELECT + COUNT ( ALL - col1 ) / - SUM ( DISTINCT + ( - - col2 ) ) * + COUNT ( * ) * - - 64 AS col2 FROM tab1
----
0

query I rowsort
SELECT col2 - - - 59 AS col0 FROM tab0
----
-12
-49
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-523
SELECT ALL + 92 FROM tab0 AS cor0 WHERE NOT ( + col2 * + 95 - + - CAST( NULL AS SIGNED ) ) IS NOT NULL
----
92
92
92

skipif mysql # not compatible
query I rowsort label-523
SELECT ALL + 92 FROM tab0 AS cor0 WHERE NOT ( + col2 * + 95 - + - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
92
92
92

query II rowsort
SELECT + + 39, col1 FROM tab0 AS cor0
----
39
1
39
21
39
81

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

query I rowsort
SELECT ( - + 1 ) AS col1 FROM tab1
----
-1
-1
-1

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

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

query I rowsort
SELECT DISTINCT 58 * + + 7 FROM tab0
----
406

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

onlyif mysql # DIV for integer division: 
query II rowsort label-530
SELECT DISTINCT - + col2 DIV - col0 + + col1 - 59 AS col1, 24 col0 FROM tab1 AS cor0
----
-12
24
-44
24
-54
24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-530
SELECT DISTINCT - + col2 / - col0 + + col1 - 59 AS col1, 24 col0 FROM tab1 AS cor0
----
-12
24
-44
24
-54
24

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

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

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

query I rowsort
SELECT ALL - ( + col1 ) * 31 AS col2 FROM tab0
----
-2511
-31
-651

onlyif mysql # DIV for integer division: 
query I rowsort label-534
SELECT - col2 DIV 11 AS col2 FROM tab1
----
-5
-6
-8

skipif mysql # not compatible
query I rowsort label-534
SELECT - col2 / 11 AS col2 FROM tab1
----
-5
-6
-8

query I rowsort
SELECT ALL 64 * col1 AS col1 FROM tab0
----
1344
5184
64

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-537
SELECT DISTINCT + 48 * - SUM( ALL + - col2 ) FROM tab1 WHERE ( NOT ( NULL ) > NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-537
SELECT DISTINCT + 48 * - SUM ( ALL + - col2 ) FROM tab1 WHERE ( NOT ( NULL ) > NULL )
----
NULL

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

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

query I rowsort
SELECT DISTINCT 98 FROM tab1 cor0 WHERE NULL <> NULL
----

query I rowsort
SELECT - ( - 62 ) + + col1 FROM tab0 AS cor0
----
143
63
83

onlyif mysql # aggregate syntax: 
query I rowsort label-541
SELECT DISTINCT COUNT( * ) + - SUM( ALL + col0 ) FROM tab2
----
-182

skipif mysql # not compatible
query I rowsort label-541
SELECT DISTINCT COUNT ( * ) + - SUM ( ALL + col0 ) FROM tab2
----
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-542
SELECT ALL + SUM( - col0 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-227

skipif mysql # not compatible
query I rowsort label-542
SELECT ALL + SUM ( - col0 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-227

query I rowsort
SELECT + - 79 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-547
SELECT - 38 DIV col0 - col0 - + 30 * - - col1 col1 FROM tab0 AS cor0
----
-127
-2447
-717

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-547
SELECT - 38 / col0 - col0 - + 30 * - - col1 col1 FROM tab0 AS cor0
----
-127
-2447
-717

onlyif mysql # DIV for integer division: 
query I rowsort label-548
SELECT 28 * - + 80 - - col2 DIV 78 FROM tab0 AS cor0
----
-2239
-2240
-2240

skipif mysql # not compatible
query I rowsort label-548
SELECT 28 * - + 80 - - col2 / 78 FROM tab0 AS cor0
----
-2239
-2240
-2240

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-549
SELECT + - 58 - - col1 + CAST( NULL AS DECIMAL ) * - 21 / col0 + - col1 * 75 + + col2 * - col1, - 35 * 1 AS col2 FROM tab1 AS cor0
----
NULL
-35
NULL
-35
NULL
-35

skipif mysql # not compatible
query II rowsort label-549
SELECT + - 58 - - col1 + CAST ( NULL AS REAL ) * - 21 / col0 + - col1 * 75 + + col2 * - col1, - 35 * 1 AS col2 FROM tab1 AS cor0
----
NULL
-35
NULL
-35
NULL
-35

onlyif mysql # DIV for integer division: 
query III rowsort label-550
SELECT * FROM tab2 cor0 WHERE + col2 * col2 DIV + 50 <> col1
----
46
51
23
64
77
40

skipif mysql # not compatible
query III rowsort label-550
SELECT * FROM tab2 cor0 WHERE + col2 * col2 / + 50 <> col1
----
46
51
23
64
77
40

query I rowsort
SELECT - col1 + - 34 AS col0 FROM tab0 AS cor0
----
-115
-35
-55

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-554
SELECT DISTINCT - SUM( DISTINCT + col0 ) FROM tab1 WHERE NOT 44 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-554
SELECT DISTINCT - SUM ( DISTINCT + col0 ) FROM tab1 WHERE NOT 44 <> NULL
----
NULL

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-556
SELECT + COUNT( * ) * 67 AS col2 FROM tab1
----
201

skipif mysql # not compatible
query I rowsort label-556
SELECT + COUNT ( * ) * 67 AS col2 FROM tab1
----
201

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-560
SELECT + - 48 col0, MAX( + - col2 ) AS col0 FROM tab2 AS cor0
----
-48
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-560
SELECT + - 48 col0, MAX ( + - col2 ) AS col0 FROM tab2 AS cor0
----
-48
-23

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-562
SELECT ALL MAX( col1 ) + + + 6 AS col0 FROM tab2 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-562
SELECT ALL MAX ( col1 ) + + + 6 AS col0 FROM tab2 AS cor0
----
83

query I rowsort
SELECT ALL col2 * + 25 AS col1 FROM tab2 AS cor0
----
1000
1450
575

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-567
SELECT DISTINCT COUNT( * ) * + + 82 FROM tab1
----
246

skipif mysql # not compatible
query I rowsort label-567
SELECT DISTINCT COUNT ( * ) * + + 82 FROM tab1
----
246

query I rowsort
SELECT ALL - + 6 FROM tab2 WHERE NULL <= ( + 28 )
----

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

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

query I rowsort
SELECT col0 * - 71 - - ( col2 ) AS col1 FROM tab2 WHERE col2 IS NOT NULL
----
-3243
-4504
-5267

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-574
SELECT - - MAX( - 89 ) FROM tab2 AS cor0
----
-89

skipif mysql # not compatible
query I rowsort label-574
SELECT - - MAX ( - 89 ) FROM tab2 AS cor0
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-575
SELECT ALL + col1 * + - col2 + + 65 DIV - 46 AS col2 FROM tab2 AS cor0
----
-1174
-3081
-3887

skipif mysql # not compatible
query I rowsort label-575
SELECT ALL + col1 * + - col2 + + 65 / - 46 AS col2 FROM tab2 AS cor0
----
-1174
-3081
-3887

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-578
SELECT COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-578
SELECT COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) <= NULL
----
0

query I rowsort
SELECT DISTINCT + col0 * 71 * + 14 + col1 FROM tab0 cor0
----
14991
86499
96419

onlyif mysql # DIV for integer division: 
query I rowsort label-580
SELECT DISTINCT ( + col1 ) * + + 41 + - 31 - - 54 * + - col0 + 82 + - 0 DIV - col1 FROM tab2 AS cor0
----
-1252
-248
-342

skipif mysql # not compatible
query I rowsort label-580
SELECT DISTINCT ( + col1 ) * + + 41 + - 31 - - 54 * + - col0 + 82 + - 0 / - col1 FROM tab2 AS cor0
----
-1252
-248
-342

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

onlyif mysql # aggregate syntax: 
query I rowsort label-582
SELECT ALL COUNT( * ) AS col1 FROM tab1 WHERE ( NOT + col2 IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-582
SELECT ALL COUNT ( * ) AS col1 FROM tab1 WHERE ( NOT + col2 IS NOT NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-583
SELECT DISTINCT - ( - + MIN( + 85 ) ) FROM tab1
----
85

skipif mysql # not compatible
query I rowsort label-583
SELECT DISTINCT - ( - + MIN ( + 85 ) ) FROM tab1
----
85

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

query II rowsort
SELECT DISTINCT col2 AS col1, + col1 + - col2 + - 77 * col1 FROM tab2
----
23
-3899
40
-5892
58
-5150

onlyif mysql # aggregate syntax: 
query I rowsort label-586
SELECT ALL - SUM( - - 1 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-586
SELECT ALL - SUM ( - - 1 ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-587
SELECT ALL - ( + COUNT( * ) ) * - 29 * + - 59 AS col1 FROM tab1 WHERE NULL IS NULL
----
-5133

skipif mysql # not compatible
query I rowsort label-587
SELECT ALL - ( + COUNT ( * ) ) * - 29 * + - 59 AS col1 FROM tab1 WHERE NULL IS NULL
----
-5133

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + 52 ) >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-589
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 + 62 * - col0 * CAST( + 89 AS SIGNED ) NOT BETWEEN NULL AND - col0 + - col2 - 55
----

skipif mysql # not compatible
query III rowsort label-589
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 + 62 * - col0 * CAST ( + 89 AS INTEGER ) NOT BETWEEN NULL AND - col0 + - col2 - 55
----

query II rowsort
SELECT ALL 51, 29 + + 63 AS col0 FROM tab1 AS cor0
----
51
92
51
92
51
92

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

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

skipif mysql # not compatible
query II rowsort label-592
SELECT + col1 AS col2, col2 * + CAST ( - - col1 AS INTEGER ) FROM tab1 AS cor0
----
14
1344
47
3196
5
295

onlyif mysql # aggregate syntax: 
query I rowsort label-593
SELECT 80 * - SUM( col1 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-593
SELECT 80 * - SUM ( col1 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT DISTINCT + - 91 AS col1 FROM tab1 cor0
----
-91

query I rowsort
SELECT ALL - 30 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) > - col1 * col1 / - col1
----

query I rowsort
SELECT DISTINCT - 64 FROM tab0 AS cor0 WHERE 52 * - 87 * - - col0 * - col0 * + col0 > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + - col1 * + 45 / 20 = NULL )
----

query I rowsort
SELECT - 35 - - 77 AS col1 FROM tab1 AS cor0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT DISTINCT - + 80 * + 34 + 88 * col1 AS col2 FROM tab1 AS cor0
----
-1488
-2280
1416

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

onlyif mysql # aggregate syntax: 
query I rowsort label-601
SELECT DISTINCT SUM( ALL - - col1 ) * - SUM( + - col0 ) AS col2 FROM tab0
----
20497

skipif mysql # not compatible
query I rowsort label-601
SELECT DISTINCT SUM ( ALL - - col1 ) * - SUM ( + - col0 ) AS col2 FROM tab0
----
20497

query I rowsort
SELECT col2 * - - 19 * col1 FROM tab1
----
25536
5605
60724

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-603
SELECT CAST( NULL AS SIGNED ) AS col0, 2 AS col2 FROM tab0
----
NULL
2
NULL
2
NULL
2

skipif mysql # not compatible
query II rowsort label-603
SELECT CAST ( NULL AS INTEGER ) AS col0, 2 AS col2 FROM tab0
----
NULL
2
NULL
2
NULL
2

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 35 NOT BETWEEN + 14 / + col0 / - col0 AND + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - col2 NOT BETWEEN - 84 AND + - 76
----

query I rowsort
SELECT - col2 AS col1 FROM tab0 WHERE + col0 < + ( + + col0 ) + - 68 * - + 58
----
-10
-47
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-607
SELECT ALL + COUNT( * ) * 43 DIV 37 * - 48 + - 51 AS col2 FROM tab2 cor0
----
-195

skipif mysql # not compatible
query I rowsort label-607
SELECT ALL + COUNT ( * ) * 43 / 37 * - 48 + - 51 AS col2 FROM tab2 cor0
----
-195

query II rowsort
SELECT ALL - 71, 47 AS col1 FROM tab2 AS cor0
----
-71
47
-71
47
-71
47

query I rowsort
SELECT + col1 + 82 AS col2 FROM tab1 AS cor0
----
129
87
96

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 42 + + 16 * + + 84 * col1 + + - col0 col1 FROM tab2 AS cor0
----
103466
68540
90015

onlyif mysql # aggregate syntax: 
query I rowsort label-613
SELECT ALL + - SUM( - 42 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
378

skipif mysql # not compatible
query I rowsort label-613
SELECT ALL + - SUM ( - 42 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
378

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL < - 78
----

query I rowsort
SELECT ALL - - 30 * 27 + - col0 * - 7 + + + col2 FROM tab0 AS cor0
----
1429
1588
962

query I rowsort
SELECT + 52 - - + 53 * col1 + + col1 FROM tab2 AS cor0 WHERE col0 = - col1 * 87
----

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

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

query II rowsort
SELECT - + 13 - - 8, + col2 AS col2 FROM tab1 AS cor0
----
-5
59
-5
68
-5
96

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-622
SELECT - col1 - CAST( + col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-10
-28
-94

skipif mysql # not compatible
query I rowsort label-622
SELECT - col1 - CAST ( + col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-10
-28
-94

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

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

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

skipif mysql # not compatible
query I rowsort label-624
SELECT + 77 * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
231

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

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

skipif mysql # not compatible
query I rowsort label-626
SELECT - + col1 AS col2 FROM tab0 AS cor0 WHERE NOT col0 * + + CAST ( NULL AS INTEGER ) <= - col1
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-628
SELECT DISTINCT - MAX( ALL + - CAST( NULL AS DECIMAL ) ), + 27 AS col0 FROM tab2 AS cor0
----
NULL
27

skipif mysql # not compatible
query II rowsort label-628
SELECT DISTINCT - MAX ( ALL + - CAST ( NULL AS REAL ) ), + 27 AS col0 FROM tab2 AS cor0
----
NULL
27

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

query I rowsort
SELECT + 24 * - col0 FROM tab0
----
-2088
-2328
-360

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

query I rowsort
SELECT ALL col2 * 95 FROM tab2
----
2185
3800
5510

onlyif mysql # DIV for integer division: 
query I rowsort label-633
SELECT col2 col2 FROM tab1 WHERE NOT - 18 DIV - col1 <= + - ( + 0 ) * + 26
----
59
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-633
SELECT col2 col2 FROM tab1 WHERE NOT - 18 / - col1 <= + - ( + 0 ) * + 26
----
59
96

onlyif mysql # aggregate syntax: 
query I rowsort label-634
SELECT - + MIN( 65 ) FROM tab2 cor0
----
-65

skipif mysql # not compatible
query I rowsort label-634
SELECT - + MIN ( 65 ) FROM tab2 cor0
----
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-635
SELECT 67 DIV + 10 + col2 AS col0 FROM tab1 AS cor0
----
102
65
74

skipif mysql # not compatible
query I rowsort label-635
SELECT 67 / + 10 + col2 AS col0 FROM tab1 AS cor0
----
102
65
74

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

skipif mysql # not compatible
query I rowsort label-636
SELECT ALL SUM ( + 33 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
297

onlyif mysql # DIV for integer division: 
query I rowsort label-637
SELECT col1 DIV + col0 * 18 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-637
SELECT col1 / + col0 * 18 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-638
SELECT ALL 18 AS col1, SUM( DISTINCT col2 ) FROM tab1
----
18
223

skipif mysql # not compatible
query II rowsort label-638
SELECT ALL 18 AS col1, SUM ( DISTINCT col2 ) FROM tab1
----
18
223

query II rowsort
SELECT ALL col1 + - ( + + col0 ) + + col0, + col2 FROM tab2 WHERE NULL IS NULL
----
51
23
67
58
77
40

query II rowsort
SELECT 65, + 64 AS col2 FROM tab2 AS cor0
----
65
64
65
64
65
64

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

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

query I rowsort
SELECT DISTINCT - + col0 * - col1 + - + col0 AS col2 FROM tab1 AS cor0
----
340
4186
663

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + - col1 * ( - + col0 ) col1 FROM tab1 AS cor0
----
4368
510
765

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-644
SELECT DISTINCT 72, 47 * CAST( col1 AS SIGNED ) * + col1 AS col2 FROM tab0 AS cor0
----
72
20727
72
308367
72
47

skipif mysql # not compatible
query II rowsort label-644
SELECT DISTINCT 72, 47 * CAST ( col1 AS INTEGER ) * + col1 AS col2 FROM tab0 AS cor0
----
72
20727
72
308367
72
47

query I rowsort
SELECT + - col1 + + 82 + ( + 57 ) * + col2 FROM tab2 cor0
----
1342
2285
3321

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-648
SELECT COUNT( * ) DIV 43 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-648
SELECT COUNT ( * ) / 43 AS col0 FROM tab1
----
0

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

query II rowsort
SELECT ALL col2 * - - 56, + col0 FROM tab1
----
3304
85
3808
91
5376
51

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

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

query I rowsort
SELECT - 27 - ( + 63 ) AS col1 FROM tab1 AS cor0
----
-90
-90
-90

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

query III rowsort
SELECT * FROM tab0 WHERE - 68 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) IS NOT NULL AND NULL IS NOT NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 5 col2 FROM tab0 WHERE - + 3 / + + 15 - col2 - - col1 + - ( + + 49 ) * - + col0 IS NULL
----

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

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

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

skipif mysql # not compatible
query I rowsort label-659
SELECT MAX ( - - col0 ) AS col2 FROM tab1
----
91

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

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

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab1 AS cor0 WHERE NOT + col0 * + col0 > ( + 5 * col1 )
----

query I rowsort
SELECT + + 87 FROM tab2 cor0
----
87
87
87

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

query I rowsort
SELECT DISTINCT 73 * - 10 FROM tab2
----
-730

query I rowsort
SELECT ALL + 12 * col0 AS col1 FROM tab1
----
1020
1092
612

query I rowsort
SELECT col2 * + - 14 FROM tab2
----
-322
-560
-812

onlyif mysql # aggregate syntax: 
query I rowsort label-668
SELECT ALL + + COUNT( * ) * SUM( + 12 ) FROM tab2 cor0
----
108

skipif mysql # not compatible
query I rowsort label-668
SELECT ALL + + COUNT ( * ) * SUM ( + 12 ) FROM tab2 cor0
----
108

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

onlyif mysql # aggregate syntax: 
query I rowsort label-670
SELECT DISTINCT - SUM( + 20 ) FROM tab0 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-670
SELECT DISTINCT - SUM ( + 20 ) FROM tab0 AS cor0
----
-60

query I rowsort
SELECT - ( + + 96 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c89b545346f99713888a7934e4caa539

query I rowsort
SELECT ALL ( + + col2 ) AS col0 FROM tab1 WHERE NULL IS NULL
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-673
SELECT ALL + col2 * CAST( - - 52 AS SIGNED ) FROM tab0 AS cor0 WHERE - col1 BETWEEN - - 66 AND NULL
----

skipif mysql # not compatible
query I rowsort label-673
SELECT ALL + col2 * CAST ( - - 52 AS INTEGER ) FROM tab0 AS cor0 WHERE - col1 BETWEEN - - 66 AND NULL
----

query I rowsort
SELECT DISTINCT col0 * 86 * + col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
220160
374100
90988

query I rowsort
SELECT DISTINCT 14 * - 89 + + 21 + + 37 + - col2 * - - col1 * + 18 + + col1 + + col1 AS col1 FROM tab0 AS cor0
----
-2968
-4926
-69552

query I rowsort
SELECT ALL + 32 + + col0 FROM tab2 AS cor0
----
107
78
96

query I rowsort
SELECT + - col0 * - - 84 + - 82 + + col2 FROM tab0 cor0
----
-1295
-7380
-8131

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 + + ( col1 ) = col0
----

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-682
SELECT DISTINCT ( + SUM( DISTINCT + 12 ) ) + COUNT( * ) AS col0, 60 FROM tab2
----
15
60

skipif mysql # not compatible
query II rowsort label-682
SELECT DISTINCT ( + SUM ( DISTINCT + 12 ) ) + COUNT ( * ) AS col0, 60 FROM tab2
----
15
60

onlyif mysql # aggregate syntax: 
query I rowsort label-683
SELECT ALL MAX( + - ( + 73 ) ) FROM tab1
----
-73

skipif mysql # not compatible
query I rowsort label-683
SELECT ALL MAX ( + - ( + 73 ) ) FROM tab1
----
-73

query I rowsort
SELECT 10 + 24 + + 66 AS col2 FROM tab0
----
100
100
100

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-685
SELECT ALL + CAST( NULL AS SIGNED ) col1, + col2 FROM tab1
----
NULL
59
NULL
68
NULL
96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-686
SELECT DISTINCT SUM( - 30 ) AS col1 FROM tab0
----
-90

skipif mysql # not compatible
query I rowsort label-686
SELECT DISTINCT SUM ( - 30 ) AS col1 FROM tab0
----
-90

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

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

query I rowsort
SELECT 89 + 18 - - col2 AS col1 FROM tab2
----
130
147
165

query I rowsort
SELECT ALL + + 78 + + + 69 FROM tab2 AS cor0
----
147
147
147

query I rowsort
SELECT DISTINCT 64 + 20 AS col1 FROM tab0 AS cor0
----
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col2, - col0 * - - col1 col2 FROM tab2 AS cor0
----
-23
-2346
-40
-4928
-58
-5025

query II rowsort
SELECT DISTINCT 36 + + ( + col1 ) AS col2, - 70 * - + col1 AS col1 FROM tab1
----
41
350
50
980
83
3290

query I rowsort
SELECT ALL - col0 - col0 + - + 11 FROM tab0
----
-185
-205
-41

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

skipif mysql # not compatible
query I rowsort label-694
SELECT - - MAX ( ALL 6 ) FROM tab2 AS cor0
----
6

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-696
SELECT ALL - - 80 DIV - 91 * col1 + - col1 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-696
SELECT ALL - - 80 / - 91 * col1 + - col1 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT 38 * - col0 AS col2 FROM tab2 cor0
----
-1748
-2432
-2850

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 col0 FROM tab1 AS cor0 WHERE NOT NULL > col0
----

query I rowsort
SELECT ALL + 79 * + + col0 AS col2 FROM tab0
----
1185
6873
7663

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-701
SELECT DISTINCT + MAX( - + col2 ) * 16 FROM tab2
----
-368

skipif mysql # not compatible
query I rowsort label-701
SELECT DISTINCT + MAX ( - + col2 ) * 16 FROM tab2
----
-368

onlyif mysql # aggregate syntax: 
query I rowsort label-702
SELECT DISTINCT - 11 * COUNT( * ) AS col2 FROM tab2
----
-33

skipif mysql # not compatible
query I rowsort label-702
SELECT DISTINCT - 11 * COUNT ( * ) AS col2 FROM tab2
----
-33

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-706
SELECT SUM( DISTINCT 15 ) FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-706
SELECT SUM ( DISTINCT 15 ) FROM tab1
----
15

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + col1 + + 88 - - col0 + + + col2 col1 FROM tab2 AS cor0
----
254
333
363

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-711
SELECT COUNT( * ) AS col1 FROM tab1 WHERE NOT ( NULL ) < col1
----
0

skipif mysql # not compatible
query I rowsort label-711
SELECT COUNT ( * ) AS col1 FROM tab1 WHERE NOT ( NULL ) < col1
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-713
SELECT + CAST( + col1 AS SIGNED ) * col1 - col0 AS col1 FROM tab0
----
-96
354
6546

skipif mysql # not compatible
query I rowsort label-713
SELECT + CAST ( + col1 AS INTEGER ) * col1 - col0 AS col1 FROM tab0
----
-96
354
6546

query I rowsort
SELECT + 36 * col0 AS col2 FROM tab2
----
1656
2304
2700

query I rowsort
SELECT DISTINCT - col1 + + col0 FROM tab2 WHERE + col1 NOT BETWEEN - col0 + + 3 AND ( 60 )
----
-13
8

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

onlyif mysql # aggregate syntax: 
query I rowsort label-717
SELECT - 20 * COUNT( * ) FROM tab2
----
-60

skipif mysql # not compatible
query I rowsort label-717
SELECT - 20 * COUNT ( * ) FROM tab2
----
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 10 * - 44 col0 FROM tab2
----
-440
-440
-440

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-721
SELECT ALL 99 DIV ( ( col1 ) ) AS col0 FROM tab1
----
19
2
7

skipif mysql # not compatible
query I rowsort label-721
SELECT ALL 99 / ( ( col1 ) ) AS col0 FROM tab1
----
19
2
7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-722
SELECT - col0 * - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-722
SELECT - col0 * - CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * - ( + col0 ) FROM tab1
----
-2601
-7225
-8281

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-728
SELECT ALL ( + 90 ) + COUNT( * ) * MIN( DISTINCT - col1 ) FROM tab2
----
-141

skipif mysql # not compatible
query I rowsort label-728
SELECT ALL ( + 90 ) + COUNT ( * ) * MIN ( DISTINCT - col1 ) FROM tab2
----
-141

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-730
SELECT DISTINCT + col0 + + 90 DIV 98 AS col1 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-730
SELECT DISTINCT + col0 + + 90 / 98 AS col1 FROM tab1 AS cor0
----
51
85
91

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

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

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

query I rowsort
SELECT DISTINCT 26 FROM tab2 WHERE NOT - 65 NOT IN ( - col0 )
----

query I rowsort
SELECT - col2 * - 35 AS col1 FROM tab2
----
1400
2030
805

query I rowsort
SELECT DISTINCT - 46 * col1 FROM tab2
----
-2346
-3082
-3542

query I rowsort
SELECT DISTINCT ( col2 ) FROM tab1 cor0 WHERE + col2 NOT IN ( 30 )
----
59
68
96

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-739
SELECT DISTINCT - CAST ( + col2 AS INTEGER ) col2 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT - + 78 * + ( - 42 ) AS col2 FROM tab0 cor0
----
3276
3276
3276

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 88 * - ( - col0 ) col2 FROM tab0 AS cor0
----
1320
7656
8536

query I rowsort
SELECT + 7 AS col0 FROM tab2 WHERE NOT + 18 * 32 NOT BETWEEN ( + 53 ) AND ( col2 + col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( + 38 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-744
SELECT CAST( - col1 AS SIGNED ) * - col1 AS col0 FROM tab1
----
196
2209
25

skipif mysql # not compatible
query I rowsort label-744
SELECT CAST ( - col1 AS INTEGER ) * - col1 AS col0 FROM tab1
----
196
2209
25

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-746
SELECT COUNT( * ) DIV + 20 * 92 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-746
SELECT COUNT ( * ) / + 20 * 92 AS col1 FROM tab0
----
0

query I rowsort
SELECT + col0 * + + col0 * + 2 AS col2 FROM tab2
----
11250
4232
8192

onlyif mysql # DIV for integer division: 
query I rowsort label-748
SELECT ALL col2 + - 73 DIV + col2 col0 FROM tab2
----
20
39
57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-748
SELECT ALL col2 + - 73 / + col2 col0 FROM tab2
----
20
39
57

query I rowsort
SELECT DISTINCT + col1 + - 18 + - col2 * - 69 FROM tab1
----
4058
4721
6620

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

query I rowsort
SELECT + + 98 + + - col0 * + col2 FROM tab2 AS cor0
----
-2462
-4252
-960

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

query I rowsort
SELECT - 42 + + 33 AS col0 FROM tab0 AS cor0
----
-9
-9
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-754
SELECT - col2 + - + col1 + - ( 97 ) DIV 41 AS col2 FROM tab0 AS cor0
----
-102
-130
-33

skipif mysql # not compatible
query I rowsort label-754
SELECT - col2 + - + col1 + - ( 97 ) / 41 AS col2 FROM tab0 AS cor0
----
-102
-130
-33

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

query I rowsort
SELECT - col2 * 10 FROM tab1 cor0
----
-590
-680
-960

onlyif mysql # aggregate syntax: 
query I rowsort label-757
SELECT DISTINCT MAX( - - col2 ) + - ( - COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-757
SELECT DISTINCT MAX ( - - col2 ) + - ( - COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-758
SELECT * FROM tab2 cor0 WHERE col0 BETWEEN + - CAST( NULL AS SIGNED ) AND - col2 / col2 + + col0 * col2
----

skipif mysql # not compatible
query III rowsort label-758
SELECT * FROM tab2 cor0 WHERE col0 BETWEEN + - CAST ( NULL AS INTEGER ) AND - col2 / col2 + + col0 * col2
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 18 * + 45 * col0 - + 22 * + col1 NOT IN ( + 48 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-760
SELECT - 58 - + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-760
SELECT - 58 - + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-61

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

onlyif mysql # aggregate syntax: 
query I rowsort label-762
SELECT ALL + COUNT( * ) - - + COUNT( * ) + + MIN( DISTINCT + ( col0 ) ) FROM tab1 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-762
SELECT ALL + COUNT ( * ) - - + COUNT ( * ) + + MIN ( DISTINCT + ( col0 ) ) FROM tab1 AS cor0
----
57

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

skipif mysql # not compatible
query I rowsort label-763
SELECT ( + COUNT ( * ) ) - + CAST ( NULL AS INTEGER ) + 48 / + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - col2 + + 53 AS col0 FROM tab2 AS cor0
----
-5
13
30

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col2 + - - col0 ) NOT IN ( - 54 - + col0 ) AND ( NULL ) BETWEEN + col2 AND col1
----

query I rowsort
SELECT DISTINCT 71 + col0 AS col0 FROM tab1
----
122
156
162

onlyif mysql # aggregate syntax: 
query I rowsort label-767
SELECT DISTINCT - 60 * COUNT( * ) - 45 FROM tab2
----
-225

skipif mysql # not compatible
query I rowsort label-767
SELECT DISTINCT - 60 * COUNT ( * ) - 45 FROM tab2
----
-225

onlyif mysql # DIV for integer division: 
query I rowsort label-768
SELECT + col2 + 43 DIV col1 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-768
SELECT + col2 + 43 / col1 FROM tab2
----
23
40
58

query I rowsort
SELECT - col2 * + col1 * + + 3 FROM tab1 AS cor0
----
-4032
-885
-9588

onlyif mysql # aggregate syntax: 
query I rowsort label-770
SELECT COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( + col0 + col0 NOT IN ( col0 ) )
----
0

skipif mysql # not compatible
query I rowsort label-770
SELECT COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( + col0 + col0 NOT IN ( col0 ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-771
SELECT + CAST( + MAX( - 43 ) AS SIGNED ) FROM tab0 AS cor0 WHERE NOT NULL >= ( - col1 ) + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-771
SELECT + CAST ( + MAX ( - 43 ) AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL >= ( - col1 ) + col2
----
NULL

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

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

query I rowsort
SELECT ALL + col0 * 97 AS col2 FROM tab1 AS cor0 WHERE NOT col0 - - - 6 <= NULL
----

query I rowsort
SELECT - + 45 * col1 FROM tab1 AS cor0
----
-2115
-225
-630

query I rowsort
SELECT - 41 AS col1 FROM tab0 WHERE NOT + - col1 IS NULL
----
-41
-41
-41

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 8 col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

onlyif mysql # aggregate syntax: 
query I rowsort label-783
SELECT MAX( DISTINCT - col0 ) * + 90 + - + COUNT( * ) + - COUNT( * ) + - 28 AS col1 FROM tab0 AS cor0
----
-1384

skipif mysql # not compatible
query I rowsort label-783
SELECT MAX ( DISTINCT - col0 ) * + 90 + - + COUNT ( * ) + - COUNT ( * ) + - 28 AS col1 FROM tab0 AS cor0
----
-1384

query I rowsort
SELECT ALL col0 + + 21 FROM tab0 AS cor0
----
108
118
36

query I rowsort
SELECT ALL + 12 + ( + + 56 ) FROM tab0 AS cor0 WHERE NOT ( 84 * + 34 ) IS NULL
----
68
68
68

query I rowsort
SELECT DISTINCT - col2 * - ( + col2 ) + + col2 FROM tab2 AS cor0
----
1640
3422
552

query I rowsort
SELECT + + 41 + - + 76 FROM tab1 AS cor0
----
-35
-35
-35

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

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

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

query I rowsort
SELECT DISTINCT col1 - + 56 AS col0 FROM tab2
----
-5
11
21

onlyif mysql # aggregate syntax: 
query I rowsort label-791
SELECT - MIN( col2 ) AS col1 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-791
SELECT - MIN ( col2 ) AS col1 FROM tab0
----
-10

query I rowsort
SELECT ALL 80 - + 66 AS col2 FROM tab1
----
14
14
14

query I rowsort
SELECT 61 - - + 36 FROM tab1
----
97
97
97

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

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

query I rowsort
SELECT ALL + 68 * + - col2 AS col1 FROM tab0
----
-3196
-6732
-680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 34 * col2 col0 FROM tab2
----
1360
1972
782

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( - col1 ) * + 44, ( - - col1 ) col2 FROM tab2
----
-2244
51
-2948
67
-3388
77

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

onlyif mysql # aggregate syntax: 
query I rowsort label-799
SELECT DISTINCT MAX( 47 ) FROM tab2
----
47

skipif mysql # not compatible
query I rowsort label-799
SELECT DISTINCT MAX ( 47 ) FROM tab2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-800
SELECT DISTINCT - MAX( ALL ( - col0 ) ) AS col2 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-800
SELECT DISTINCT - MAX ( ALL ( - col0 ) ) AS col2 FROM tab1 AS cor0
----
51

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

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

query I rowsort
SELECT 17 + - 95 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c

query I rowsort
SELECT ALL - 45 * + 93 AS col1 FROM tab0
----
-4185
-4185
-4185

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-805
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + 11 ) NOT IN ( col1, - 12 * + col0 * + CAST( + 68 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-805
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + 11 ) NOT IN ( col1, - 12 * + col0 * + CAST ( + 68 AS INTEGER ) )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 53 + + 7 * - 22 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + col0 + + col0 col1 FROM tab0 AS cor0
----
720
957
9700

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-809
SELECT - - 69 DIV + + SUM( + col0 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-809
SELECT - - 69 / + + SUM ( + col0 ) FROM tab2 AS cor0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-811
SELECT ALL - ( - SUM( ALL col1 ) ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-811
SELECT ALL - ( - SUM ( ALL col1 ) ) FROM tab2
----
195

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

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

query I rowsort
SELECT + col1 * - 27 AS col0 FROM tab1
----
-1269
-135
-378

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + col2 + - col0 * + col1 FROM tab1 AS cor0
----
-366
-4209
-618

onlyif mysql # DIV for integer division: 
query II rowsort label-819
SELECT - 39 - ( + col1 ) DIV col1 col2, - 9 AS col2 FROM tab1 cor0
----
-40
-9
-40
-9
-40
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-819
SELECT - 39 - ( + col1 ) / col1 col2, - 9 AS col2 FROM tab1 cor0
----
-40
-9
-40
-9
-40
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-820
SELECT + 26 * - col2 + + col2 DIV - 36 FROM tab1 AS cor0
----
-1535
-1769
-2498

skipif mysql # not compatible
query I rowsort label-820
SELECT + 26 * - col2 + + col2 / - 36 FROM tab1 AS cor0
----
-1535
-1769
-2498

query I rowsort
SELECT ALL + col1 + col0 - - - 15 FROM tab2 AS cor0
----
126
127
82

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

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 89 NOT BETWEEN NULL AND 17 * 27 - + + 47
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL > - - 33
----

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-827
SELECT DISTINCT - col0, - CAST( NULL AS DECIMAL ) + - col2 - - 35 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query II rowsort label-827
SELECT DISTINCT - col0, - CAST ( NULL AS REAL ) + - col2 - - 35 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - 29 * + 97 * - + 22 AS col1 FROM tab2
----
61886
61886
61886

query I rowsort
SELECT ALL - col2 * 62 AS col2 FROM tab2
----
-1426
-2480
-3596

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-831
SELECT * FROM tab2 cor0 WHERE NOT CAST( NULL AS SIGNED ) NOT BETWEEN - 24 AND NULL
----

skipif mysql # not compatible
query III rowsort label-831
SELECT * FROM tab2 cor0 WHERE NOT CAST ( NULL AS INTEGER ) NOT BETWEEN - 24 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-832
SELECT + + COUNT( * ) AS col2, CAST( NULL AS DECIMAL ) AS col1 FROM tab0 cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-832
SELECT + + COUNT ( * ) AS col2, CAST ( NULL AS REAL ) AS col1 FROM tab0 cor0
----
3
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 5 col0, - col2 * ( + col1 ) FROM tab1 AS cor0
----
5
-1344
5
-295
5
-3196

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-835
SELECT DISTINCT + - CAST( - col1 AS SIGNED ) * - 84 * - col2 FROM tab0 cor0
----
17640
319788
8316

skipif mysql # not compatible
query I rowsort label-835
SELECT DISTINCT + - CAST ( - col1 AS INTEGER ) * - 84 * - col2 FROM tab0 cor0
----
17640
319788
8316

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-836
SELECT * FROM tab1 WHERE + 97 * + col2 * - ( col2 ) * + 16 * + CAST( 65 AS SIGNED ) = NULL
----

skipif mysql # not compatible
query III rowsort label-836
SELECT * FROM tab1 WHERE + 97 * + col2 * - ( col2 ) * + 16 * + CAST ( 65 AS INTEGER ) = NULL
----

query I rowsort
SELECT - col1 + 97 - - 13 * + - ( - col2 ) AS col0 FROM tab1
----
1331
859
934

onlyif mysql # aggregate syntax: 
query I rowsort label-838
SELECT - 70 * - 28 * + - COUNT( * ) FROM tab2
----
-5880

skipif mysql # not compatible
query I rowsort label-838
SELECT - 70 * - 28 * + - COUNT ( * ) FROM tab2
----
-5880

onlyif mysql # DIV for integer division: 
query I rowsort label-839
SELECT + 88 DIV 39 * col2 AS col1 FROM tab1
----
118
136
192

skipif mysql # not compatible
query I rowsort label-839
SELECT + 88 / 39 * col2 AS col1 FROM tab1
----
118
136
192

onlyif mysql # DIV for integer division: 
query I rowsort label-840
SELECT + 15 DIV + - col0 * + ( + col0 ) * - - col0 + + + 76 + - + 50 AS col2 FROM tab2
----
26
26
26

skipif mysql # not compatible
query I rowsort label-840
SELECT + 15 / + - col0 * + ( + col0 ) * - - col0 + + + 76 + - + 50 AS col2 FROM tab2
----
26
26
26

query I rowsort
SELECT - - 28 * - + 78 AS col0 FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
-2184
-2184
-2184

query I rowsort
SELECT ALL - 9 FROM tab2 AS cor0 WHERE NOT - - col2 <> - + ( - col2 ) AND NOT NULL >= NULL
----

query II rowsort
SELECT + 46 - + col2 AS col1, col1 FROM tab2 AS cor0
----
-12
67
23
51
6
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-844
SELECT - CAST( COUNT( * ) AS SIGNED ) FROM tab2 WHERE col0 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-844
SELECT - CAST ( COUNT ( * ) AS INTEGER ) FROM tab2 WHERE col0 > NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-845
SELECT ALL 69 - COUNT( * ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-845
SELECT ALL 69 - COUNT ( * ) FROM tab1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-846
SELECT + + COUNT( * ) * + 66 AS col0 FROM tab0 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-846
SELECT + + COUNT ( * ) * + 66 AS col0 FROM tab0 AS cor0
----
198

query I rowsort
SELECT ALL ( 53 ) FROM tab2 cor0
----
53
53
53

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

query I rowsort
SELECT - - col1 * - - 81 + - - 53 FROM tab0 AS cor0
----
134
1754
6614

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + - col1 ) col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-1
-21
-81

query II rowsort
SELECT DISTINCT - + col0 AS col0, 68 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND 71
----

query II rowsort
SELECT 87, col2 + col2 AS col1 FROM tab1
----
87
118
87
136
87
192

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-853
SELECT col2 col0, - CAST( - - CAST( - - col2 AS SIGNED ) AS SIGNED ) + - 75 AS col2 FROM tab2
----
23
-98
40
-115
58
-133

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-853
SELECT col2 col0, - CAST ( - - CAST ( - - col2 AS INTEGER ) AS INTEGER ) + - 75 AS col2 FROM tab2
----
23
-98
40
-115
58
-133

onlyif mysql # DIV for integer division: 
query II rowsort label-854
SELECT DISTINCT 59 * + col0, col1 * col1 DIV 14 + + - col2 AS col2 FROM tab1
----
3009
-82
5015
-58
5369
89

skipif mysql # not compatible
query II rowsort label-854
SELECT DISTINCT 59 * + col0, col1 * col1 / 14 + + - col2 AS col2 FROM tab1
----
3009
-82
5015
-58
5369
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + - col1 ) * + - 92 col0 FROM tab0
----
1932
7452
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-856
SELECT - - 33 - + 48 * + 36 FROM tab1 WHERE NOT col1 BETWEEN - - col0 AND CAST( NULL AS SIGNED ) * + 77 * + + col1 + + + col2
----
-1695
-1695
-1695

skipif mysql # not compatible
query I rowsort label-856
SELECT - - 33 - + 48 * + 36 FROM tab1 WHERE NOT col1 BETWEEN - - col0 AND CAST ( NULL AS INTEGER ) * + 77 * + + col1 + + + col2
----
-1695
-1695
-1695

query II rowsort
SELECT col0 AS col0, col1 + + 71 * + col0 AS col0 FROM tab2
----
46
3317
64
4621
75
5392

query III rowsort
SELECT ALL * FROM tab0 WHERE + 63 BETWEEN NULL AND + 35 * - 83
----

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

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

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

query I rowsort
SELECT + - 28 * - col1 + + col2 AS col2 FROM tab0 AS cor0
----
127
2315
598

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND - 98
----

onlyif mysql # aggregate syntax: 
query I rowsort label-863
SELECT DISTINCT ( + 9 ) + COUNT( ALL + + 96 ) FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-863
SELECT DISTINCT ( + 9 ) + COUNT ( ALL + + 96 ) FROM tab2
----
12

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-866
SELECT DISTINCT 13 DIV - - col1 * + col1 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
0
13

skipif mysql # not compatible
query I rowsort label-866
SELECT DISTINCT 13 / - - col1 * + col1 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
0
13

query I rowsort
SELECT ALL - - col0 + + 41 AS col0 FROM tab0 cor0
----
128
138
56

onlyif mysql # aggregate syntax: 
query I rowsort label-868
SELECT ( + - 78 ) * 62 + + - COUNT( * ) FROM tab2 AS cor0
----
-4839

skipif mysql # not compatible
query I rowsort label-868
SELECT ( + - 78 ) * 62 + + - COUNT ( * ) FROM tab2 AS cor0
----
-4839

onlyif mysql # DIV for integer division: 
query I rowsort label-869
SELECT DISTINCT col2 DIV + 70 AS col1 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-869
SELECT DISTINCT col2 / + 70 AS col1 FROM tab0
----
0
1

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

query I rowsort
SELECT ALL + col2 FROM tab2 WHERE NOT + col0 * + - col0 NOT IN ( + 28 / 42 * + + 37 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-872
SELECT ALL - MIN( DISTINCT 89 ) DIV - + MAX( ALL + col0 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-872
SELECT ALL - MIN ( DISTINCT 89 ) / - + MAX ( ALL + col0 ) FROM tab2
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-873
SELECT DISTINCT COUNT( * ) * + CAST( NULL AS DECIMAL ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-873
SELECT DISTINCT COUNT ( * ) * + CAST ( NULL AS REAL ) AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-874
SELECT DISTINCT - COUNT( * ), 48 * - - 8 AS col0 FROM tab1
----
-3
384

skipif mysql # not compatible
query II rowsort label-874
SELECT DISTINCT - COUNT ( * ), 48 * - - 8 AS col0 FROM tab1
----
-3
384

query I rowsort
SELECT ALL - col0 + + 98 AS col2 FROM tab1
----
13
47
7

query II rowsort
SELECT + + 93 + - col2 + col0, 27 + col2 AS col1 FROM tab2 AS cor0
----
110
85
116
50
117
67

query I rowsort
SELECT ALL - col0 * - col2 - + + 91 FROM tab2 AS cor0
----
2469
4259
967

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-879
SELECT + + MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) col0 FROM tab2 AS cor0
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-882
SELECT + + MAX( 65 ) * - COUNT( * ) FROM tab0 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-882
SELECT + + MAX ( 65 ) * - COUNT ( * ) FROM tab0 AS cor0
----
-195

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT - 51 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + + 74 * col1 FROM tab0 AS cor0
----
1554
5994
74

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

query I rowsort
SELECT ALL - col1 * - col1 * - col0 * - - col2 AS col1 FROM tab0
----
-383670
-4625505
-9603

onlyif mysql # aggregate syntax: 
query II rowsort label-892
SELECT + COUNT( * ) AS col2, - ( ( + - MAX( - ( col0 ) ) ) ) * + - 85 AS col0 FROM tab2
----
3
3910

skipif mysql # not compatible
query II rowsort label-892
SELECT + COUNT ( * ) AS col2, - ( ( + - MAX ( - ( col0 ) ) ) ) * + - 85 AS col0 FROM tab2
----
3
3910

onlyif mysql # aggregate syntax: 
query I rowsort label-893
SELECT DISTINCT SUM( - - 90 ) + - - COUNT( * ) AS col0 FROM tab0
----
273

skipif mysql # not compatible
query I rowsort label-893
SELECT DISTINCT SUM ( - - 90 ) + - - COUNT ( * ) AS col0 FROM tab0
----
273

query I rowsort
SELECT + col2 + + + col1 + col1 AS col1 FROM tab2 AS cor0
----
125
192
194

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

query I rowsort
SELECT + 4 + 32 AS col0 FROM tab1 AS cor0
----
36
36
36

query I rowsort
SELECT ( - 38 ) + - 27 + + + 28 AS col1 FROM tab0 AS cor0
----
-37
-37
-37

query I rowsort
SELECT ALL - col0 + + - col0 + + col1 + - col0 * col1 FROM tab1 AS cor0
----
-4412
-590
-802

onlyif mysql # aggregate syntax: 
query II rowsort label-899
SELECT ALL - COUNT( * ) - + 78 AS col2, + 50 FROM tab2
----
-81
50

skipif mysql # not compatible
query II rowsort label-899
SELECT ALL - COUNT ( * ) - + 78 AS col2, + 50 FROM tab2
----
-81
50

query I rowsort
SELECT 69 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col0 ) col1 FROM tab0 WHERE ( - + col1 * - col1 - + ( col0 ) ) IS NOT NULL
----
15
87
97

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-905
SELECT 93 * 1 DIV - COUNT( * ) FROM tab1
----
-31

skipif mysql # not compatible
query I rowsort label-905
SELECT 93 * 1 / - COUNT ( * ) FROM tab1
----
-31

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

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

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

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

query I rowsort
SELECT col2 * - col2 * + col1 * + col0 AS col2 FROM tab2
----
-1241034
-16904100
-7884800

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 94 * + col0 - - + 98 col2 FROM tab2 AS cor0
----
-4226
-5918
-6952

onlyif mysql # aggregate syntax: 
query I rowsort label-912
SELECT - MIN( ALL + col2 ) FROM tab0 WHERE NOT col1 * + - 47 - - - col0 - + + 26 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-912
SELECT - MIN ( ALL + col2 ) FROM tab0 WHERE NOT col1 * + - 47 - - - col0 - + + 26 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-913
SELECT col0 * ( + col2 ) * col2 + col1 + - 90 * + col0 + + + col0 - - + CAST( col1 AS SIGNED ) + + col2 * + + col1 DIV + - col1 col2 FROM tab0
----
31915
941967
989

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-913
SELECT col0 * ( + col2 ) * col2 + col1 + - 90 * + col0 + + + col0 - - + CAST ( col1 AS INTEGER ) + + col2 * + + col1 / + - col1 col2 FROM tab0
----
31915
941967
989

onlyif mysql # aggregate syntax: 
query I rowsort label-914
SELECT ( COUNT( * ) ) FROM tab0, tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-914
SELECT ( COUNT ( * ) ) FROM tab0, tab0 AS cor0
----
9

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

query II rowsort
SELECT ALL + col2 + + col0 AS col1, - col2 + - - 26 AS col2 FROM tab2 cor0
----
104
-14
133
-32
69
3

query II rowsort
SELECT ALL - col2 + - col2, + col2 AS col1 FROM tab1 AS cor0
----
-118
59
-136
68
-192
96

query I rowsort
SELECT + 87 + + - 37 FROM tab1
----
50
50
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 14 col2, 68 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to 7e063028437e4c0eadf10e54e66420d7

query I rowsort
SELECT DISTINCT + col1 * - + col0 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-921
SELECT DISTINCT + ( MIN( ALL col1 ) ) FROM tab1 AS cor0 WHERE - col0 > col1
----
NULL

skipif mysql # not compatible
query I rowsort label-921
SELECT DISTINCT + ( MIN ( ALL col1 ) ) FROM tab1 AS cor0 WHERE - col0 > col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-922
SELECT ALL + MAX( ALL + 82 ) AS col2 FROM tab1 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-922
SELECT ALL + MAX ( ALL + 82 ) AS col2 FROM tab1 AS cor0
----
82

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

query I rowsort
SELECT ALL + col1 + + 8 FROM tab2 AS cor0
----
59
75
85

query I rowsort
SELECT DISTINCT + ( - - 70 ) * + + 8 + + + 88 + + 3 FROM tab0 cor0
----
651

query I rowsort
SELECT DISTINCT ( + + col1 ) + - 93 + - 98 AS col0 FROM tab1 AS cor0
----
-144
-177
-186

query I rowsort
SELECT + + col2 - 26 FROM tab2 AS cor0
----
-3
14
32

onlyif mysql # aggregate syntax: 
query I rowsort label-928
SELECT ALL + + 21 - MAX( + - col0 ) AS col1 FROM tab0 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-928
SELECT ALL + + 21 - MAX ( + - col0 ) AS col1 FROM tab0 AS cor0
----
36

query I rowsort
SELECT - col1 - - col2 + col0 + + 26 AS col1 FROM tab1 AS cor0
----
138
159
165

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-931
SELECT ALL col2 DIV - ( col0 ) + + 19 AS col2 FROM tab0
----
16
18
19

skipif mysql # not compatible
query I rowsort label-931
SELECT ALL col2 / - ( col0 ) + + 19 AS col2 FROM tab0
----
16
18
19

query I rowsort
SELECT col2 * - 30 + + col1 FROM tab0
----
-1329
-279
-2969

query I rowsort
SELECT ALL - col0 FROM tab2 WHERE 67 - + col2 IS NOT NULL
----
-46
-64
-75

query III rowsort
SELECT * FROM tab1 WHERE + + 67 >= col2
----
85
5
59

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NOT + + col2 NOT BETWEEN NULL AND ( + - 27 / - ( - 29 ) - 8 )
----

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

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

query I rowsort
SELECT DISTINCT ( + col1 ) * + + 84 + col0 FROM tab0
----
181
1851
6819

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

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

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

query I rowsort
SELECT ALL col0 - ( - - col1 ) AS col2 FROM tab2 AS cor0
----
-13
-5
8

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

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

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

query I rowsort
SELECT 45 * + col2 AS col2 FROM tab0 cor0
----
2115
4455
450

query I rowsort
SELECT - + ( + 55 ) * + - col0 + ( - 69 ) * + col0 FROM tab1 AS cor0
----
-1190
-1274
-714

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-947
SELECT ALL - - 73 * - + 89 + + + COUNT( * ) FROM tab1 AS cor0
----
-6494

skipif mysql # not compatible
query I rowsort label-947
SELECT ALL - - 73 * - + 89 + + + COUNT ( * ) FROM tab1 AS cor0
----
-6494

onlyif mysql # DIV for integer division: 
query II rowsort label-948
SELECT DISTINCT + col0 DIV + - col1, + col2 * + col0 AS col1 FROM tab1 AS cor0
----
-1
6188
-17
5015
-3
4896

skipif mysql # not compatible
query II rowsort label-948
SELECT DISTINCT + col0 / + - col1, + col2 * + col0 AS col1 FROM tab1 AS cor0
----
-1
6188
-17
5015
-3
4896

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 59 * + col1 col2 FROM tab2
----
3009
3953
4543

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-951
SELECT DISTINCT - CAST( - 80 AS SIGNED ), - col0 col0 FROM tab0 WHERE col2 / 93 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-951
SELECT DISTINCT - CAST ( - 80 AS INTEGER ), - col0 col0 FROM tab0 WHERE col2 / 93 IS NULL
----

query II rowsort
SELECT col0, 93 * col1 AS col1 FROM tab0
----
15
7533
87
1953
97
93

onlyif mysql # DIV for integer division: 
query I rowsort label-953
SELECT + 11 DIV - + 67 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-953
SELECT + 11 / - + 67 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 * - + 87 AS col0 FROM tab2 AS cor0
----
-2001
-3480
-5046

query II rowsort
SELECT DISTINCT col2, ( + col2 ) + col2 FROM tab2 AS cor0
----
23
46
40
80
58
116

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL = + 82 - + - col1
----

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

query I rowsort
SELECT col2 - + - col0 * + col2 FROM tab2 AS cor0 WHERE 30 + - + col2 BETWEEN - col0 AND + col2
----
1081
2600
4408

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

skipif mysql # not compatible
query I rowsort label-959
SELECT ALL - COUNT ( * ) + - + 74 FROM tab0 AS cor0 WHERE NOT + ( col0 ) IS NOT NULL
----
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 69 + - col1 col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-961
SELECT DISTINCT + 62 + - + COUNT( * ) / CAST( CAST( NULL AS SIGNED ) AS SIGNED ) / + - 94 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-961
SELECT DISTINCT + 62 + - + COUNT ( * ) / CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) / + - 94 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col1 + col0 * 99 + + col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col2 + + 40 FROM tab1 AS cor0
----
108
136
99

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - col1 + - 88 col1 FROM tab1
----
-88
-88
-88

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

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

query I rowsort
SELECT DISTINCT col1 + 85 FROM tab1
----
132
90
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-968
SELECT DISTINCT COUNT( * ) / + + COUNT( DISTINCT - 37 ) * + + SUM( ALL - col2 ) + - CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT 54 * - col0 * + 32 BETWEEN + col2 AND 2 + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-968
SELECT DISTINCT COUNT ( * ) / + + COUNT ( DISTINCT - 37 ) * + + SUM ( ALL - col2 ) + - CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT 54 * - col0 * + 32 BETWEEN + col2 AND 2 + col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-969
SELECT 36 * - COUNT( * ) FROM tab2
----
-108

skipif mysql # not compatible
query I rowsort label-969
SELECT 36 * - COUNT ( * ) FROM tab2
----
-108

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

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

query I rowsort
SELECT DISTINCT col2 * - + 61 * - 28 AS col1 FROM tab0
----
169092
17080
80276

onlyif mysql # DIV for integer division: 
query I rowsort label-972
SELECT DISTINCT + 8 DIV - ( - col0 ) * + col2 * 85 + + 79 - + col1 FROM tab1 AS cor0
----
32
65
74

skipif mysql # not compatible
query I rowsort label-972
SELECT DISTINCT + 8 / - ( - col0 ) * + col2 * 85 + + 79 - + col1 FROM tab1 AS cor0
----
32
65
74

query I rowsort
SELECT DISTINCT + - 46 AS col1 FROM tab0 AS cor0
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-974
SELECT 22, + MAX( ALL - col1 ) AS col0 FROM tab0 AS cor0
----
22
-1

skipif mysql # not compatible
query II rowsort label-974
SELECT 22, + MAX ( ALL - col1 ) AS col0 FROM tab0 AS cor0
----
22
-1

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

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

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

query II rowsort
SELECT + 11, 78 * - + col0 AS col2 FROM tab1 AS cor0
----
11
-3978
11
-6630
11
-7098

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

query I rowsort
SELECT ALL + + col0 * + 87 AS col0 FROM tab0 AS cor0
----
1305
7569
8439

query I rowsort
SELECT ALL col1 * + col1 * - col1 FROM tab0
----
-1
-531441
-9261

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

query II rowsort
SELECT + - 11 AS col2, - col1 FROM tab2 WHERE NULL IS NOT NULL OR + col2 IS NOT NULL
----
-11
-51
-11
-67
-11
-77

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-985
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * - SUM( - 42 ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-985
SELECT DISTINCT + CAST ( NULL AS REAL ) * - SUM ( - 42 ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT 60 + ( col2 ) FROM tab2
----
100
118
83

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-988
SELECT ALL + col0 DIV 95 * - col0 FROM tab0
----
-97
0
0

skipif mysql # not compatible
query I rowsort label-988
SELECT ALL + col0 / 95 * - col0 FROM tab0
----
-97
0
0

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

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

query II rowsort
SELECT DISTINCT - ( - 46 ), - 85 AS col0 FROM tab2 AS cor0
----
46
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-992
SELECT ALL col2 + + - col2 DIV col0 FROM tab1 AS cor0
----
59
68
95

skipif mysql # not compatible
query I rowsort label-992
SELECT ALL col2 + + - col2 / col0 FROM tab1 AS cor0
----
59
68
95

query I rowsort
SELECT 27 + + 46 + - col2 * + 72 AS col2 FROM tab2 AS cor0
----
-1583
-2807
-4103

query I rowsort
SELECT DISTINCT + col1 + 77 FROM tab0 AS cor0
----
158
78
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-995
SELECT + 63 * 62 * - COUNT( * ) + COUNT( * ) + + + CAST( - 98 AS SIGNED ) + - 78 + COUNT( * ) FROM tab0 AS cor0
----
-11888

skipif mysql # not compatible
query I rowsort label-995
SELECT + 63 * 62 * - COUNT ( * ) + COUNT ( * ) + + + CAST ( - 98 AS INTEGER ) + - 78 + COUNT ( * ) FROM tab0 AS cor0
----
-11888

query I rowsort
SELECT + 80 FROM tab1, tab2 AS cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

query I rowsort
SELECT col2 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL OR NOT + 72 / - 85 IS NOT NULL
----
10
47
99

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

skipif mysql # not compatible
query I rowsort label-998
SELECT ( - - COUNT ( * ) ) * - COUNT ( * ) - - 13 AS col1 FROM tab2 cor0
----
4

query I rowsort
SELECT ALL - 90 - col2 FROM tab1 AS cor0
----
-149
-158
-186

query I rowsort
SELECT DISTINCT - 31 + - col2 FROM tab0 AS cor0
----
-130
-41
-78

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

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

query I rowsort
SELECT + col2 FROM tab0 WHERE NOT NULL BETWEEN - col2 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * ( + col2 ) col1 FROM tab0 AS cor0
----
-100
-2209
-9801

query I rowsort
SELECT - + ( - col1 ) * - - col2 AS col2 FROM tab1 AS cor0
----
1344
295
3196

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1006
SELECT COUNT( * ), - COUNT( - + col0 ) * - 48 AS col0 FROM tab1 AS cor0
----
3
144

skipif mysql # not compatible
query II rowsort label-1006
SELECT COUNT ( * ), - COUNT ( - + col0 ) * - 48 AS col0 FROM tab1 AS cor0
----
3
144

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) <= + - col2 / - - 65 * + col1
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1010
SELECT ALL + MAX( col2 ) * + 34 FROM tab2 cor0
----
1972

skipif mysql # not compatible
query I rowsort label-1010
SELECT ALL + MAX ( col2 ) * + 34 FROM tab2 cor0
----
1972

query I rowsort
SELECT DISTINCT - - 90 FROM tab0 cor0
----
90

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1013
SELECT DISTINCT - 92 DIV - + 7 AS col1 FROM tab1
----
13

skipif mysql # not compatible
query I rowsort label-1013
SELECT DISTINCT - 92 / - + 7 AS col1 FROM tab1
----
13

query I rowsort
SELECT ALL + 81 * - - 77 AS col1 FROM tab2
----
6237
6237
6237

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1015
SELECT 8 AS col0, CAST( - col2 AS SIGNED ) AS col0 FROM tab0 WHERE ( NOT NULL IS NOT NULL )
----
8
-10
8
-47
8
-99

skipif mysql # not compatible
query II rowsort label-1015
SELECT 8 AS col0, CAST ( - col2 AS INTEGER ) AS col0 FROM tab0 WHERE ( NOT NULL IS NOT NULL )
----
8
-10
8
-47
8
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1016
SELECT DISTINCT - MIN( + col2 ) FROM tab0 WHERE NOT ( NOT - col2 * - 26 = col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1016
SELECT DISTINCT - MIN ( + col2 ) FROM tab0 WHERE NOT ( NOT - col2 * - 26 = col2 )
----
NULL

query I rowsort
SELECT DISTINCT col0 * - 36 FROM tab2
----
-1656
-2304
-2700

query II rowsort
SELECT - col1 AS col0, 2 + col1 AS col0 FROM tab2
----
-51
53
-67
69
-77
79

query I rowsort
SELECT DISTINCT + col0 * - - col0 * col0 * 35 + - 94 - + col0 FROM tab1 AS cor0
----
21494196
26374800
4642640

query II rowsort
SELECT + col1, 27 * - + 24 FROM tab1 AS cor0
----
14
-648
47
-648
5
-648

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1021
SELECT DISTINCT * FROM tab0 cor0 WHERE ( 39 ) * - 81 * CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1021
SELECT DISTINCT * FROM tab0 cor0 WHERE ( 39 ) * - 81 * CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1022
SELECT DISTINCT + - 8 * + - 28 + - CAST( - MIN( ALL - col0 ) AS SIGNED ) col1 FROM tab2 AS cor0
----
149

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1022
SELECT DISTINCT + - 8 * + - 28 + - CAST ( - MIN ( ALL - col0 ) AS INTEGER ) col1 FROM tab2 AS cor0
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-1023
SELECT ALL - + MIN( ALL + + col2 ) - - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-1023
SELECT ALL - + MIN ( ALL + + col2 ) - - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1024
SELECT DISTINCT - + 7 * + - 64 + COUNT( * ) * + 96 + - COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
1303

skipif mysql # not compatible
query I rowsort label-1024
SELECT DISTINCT - + 7 * + - 64 + COUNT ( * ) * + 96 + - COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
1303

query I rowsort
SELECT ALL 84 + 53 AS col2 FROM tab0
----
137
137
137

onlyif mysql # aggregate syntax: 
query I rowsort label-1026
SELECT - 23 + ( COUNT( * ) ) AS col2 FROM tab0
----
-20

skipif mysql # not compatible
query I rowsort label-1026
SELECT - 23 + ( COUNT ( * ) ) AS col2 FROM tab0
----
-20

query I rowsort
SELECT + 3 + + col0 + - + 96 * col0 AS col2 FROM tab2
----
-4367
-6077
-7122

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1030
SELECT - col1 DIV col0 - - + col0 FROM tab2 AS cor0
----
45
63
75

skipif mysql # not compatible
query I rowsort label-1030
SELECT - col1 / col0 - - + col0 FROM tab2 AS cor0
----
45
63
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1031
SELECT MAX( - col1 ) * + COUNT( * ) * + 72 AS col0 FROM tab1
----
-1080

skipif mysql # not compatible
query I rowsort label-1031
SELECT MAX ( - col1 ) * + COUNT ( * ) * + 72 AS col0 FROM tab1
----
-1080

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

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

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

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

query I rowsort
SELECT DISTINCT + + 83 * + 2 FROM tab1 AS cor0
----
166

query I rowsort
SELECT - col1 * 12 * - 99 AS col1 FROM tab2
----
60588
79596
91476

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

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

query I rowsort
SELECT + 88 - - + 62 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 3be1163443bad1a5685b4d7d207b1d61

onlyif mysql # aggregate syntax: 
query I rowsort label-1039
SELECT ALL + COUNT( * ) + 72 + - 52 FROM tab0 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-1039
SELECT ALL + COUNT ( * ) + 72 + - 52 FROM tab0 AS cor0
----
23

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

skipif mysql # not compatible
query I rowsort label-1040
SELECT ALL - SUM ( - ( - + CAST ( - + col2 AS INTEGER ) ) ) AS col0 FROM tab2 AS cor0
----
121

query I rowsort
SELECT DISTINCT ( - 9 ) + - + col1 AS col2 FROM tab2 AS cor0
----
-60
-76
-86

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

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

skipif mysql # not compatible
query I rowsort label-1043
SELECT 62 * - AVG ( - CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) + COUNT ( * ) AS col1 FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1044
SELECT COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NULL < 16 + col1
----
0

skipif mysql # not compatible
query I rowsort label-1044
SELECT COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NULL < 16 + col1
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1045
SELECT ALL col0 * - col2 + + + col0 + 46 + - CAST( col1 AS SIGNED ) DIV - col2 * + + 9 * - col2 + - + CAST( 90 AS SIGNED ) AS col2 FROM tab1 cor0
----
-4889
-4974
-6141

skipif mysql # not compatible
query I rowsort label-1045
SELECT ALL col0 * - col2 + + + col0 + 46 + - CAST ( col1 AS INTEGER ) / - col2 * + + 9 * - col2 + - + CAST ( 90 AS INTEGER ) AS col2 FROM tab1 cor0
----
-4889
-4974
-6141

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1048
SELECT 20 * MAX( DISTINCT + col0 ) AS col0 FROM tab2
----
1500

skipif mysql # not compatible
query I rowsort label-1048
SELECT 20 * MAX ( DISTINCT + col0 ) AS col0 FROM tab2
----
1500

onlyif mysql # DIV for integer division: 
query I rowsort label-1049
SELECT DISTINCT - col2 DIV - col2 + + col0 FROM tab2
----
47
65
76

skipif mysql # not compatible
query I rowsort label-1049
SELECT DISTINCT - col2 / - col2 + + col0 FROM tab2
----
47
65
76

query I rowsort
SELECT ALL + 47 * - + col0 FROM tab2
----
-2162
-3008
-3525

onlyif mysql # aggregate syntax: 
query I rowsort label-1051
SELECT ( + 26 ) + - COUNT( + col2 ) FROM tab1
----
23

skipif mysql # not compatible
query I rowsort label-1051
SELECT ( + 26 ) + - COUNT ( + col2 ) FROM tab1
----
23

query I rowsort
SELECT - col2 * + 55 + col1 FROM tab2
----
-1214
-2123
-3123

query I rowsort
SELECT ALL - 66 AS col1 FROM tab0
----
-66
-66
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-1054
SELECT + - 80 + COUNT( * ) FROM tab1 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-1054
SELECT + - 80 + COUNT ( * ) FROM tab1 AS cor0
----
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 1 + col1 col1 FROM tab0 cor0
----
2
22
82

query I rowsort
SELECT ALL - 37 - col0 + col0 FROM tab0
----
-37
-37
-37

query I rowsort
SELECT - 81 * - 27 FROM tab2
----
2187
2187
2187

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

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

query I rowsort
SELECT - col1 - + + 86 AS col1 FROM tab0 WHERE NULL IS NULL
----
-107
-167
-87

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

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

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) > + - 30
----

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

skipif mysql # not compatible
query II rowsort label-1062
SELECT ALL + SUM ( ALL - col1 ), COUNT ( * ) * + COUNT ( * ) / - + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-103
NULL

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

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

query I rowsort
SELECT col2 * + 42 FROM tab1 cor0
----
2478
2856
4032

query II rowsort
SELECT - - 24 AS col2, col1 + 81 + + col0 AS col1 FROM tab2 AS cor0
----
24
178
24
222
24
223

query II rowsort
SELECT + - 58 AS col2, + 57 AS col1 FROM tab2 AS cor0
----
-58
57
-58
57
-58
57

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

query I rowsort
SELECT DISTINCT - col0 FROM tab0 WHERE + - 81 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1069
SELECT DISTINCT + + SUM( DISTINCT 76 ) FROM tab2 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-1069
SELECT DISTINCT + + SUM ( DISTINCT 76 ) FROM tab2 AS cor0
----
76

query I rowsort
SELECT ALL - - 4 AS col1 FROM tab1 AS cor0
----
4
4
4

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1071
SELECT * FROM tab0 AS cor0 WHERE NOT 91 + - 84 + + col0 * + - CAST( 25 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1071
SELECT * FROM tab0 AS cor0 WHERE NOT 91 + - 84 + + col0 * + - CAST ( 25 AS INTEGER ) IS NOT NULL
----

query II rowsort
SELECT ALL - 84 AS col0, - 22 FROM tab1
----
-84
-22
-84
-22
-84
-22

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

query I rowsort
SELECT 31 + - - 85 AS col0 FROM tab2 AS cor0
----
116
116
116

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

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

query I rowsort
SELECT + col1 + + - 24 FROM tab1 cor0
----
-10
-19
23

query I rowsort
SELECT - 49 + - col2 AS col1 FROM tab0 AS cor0
----
-148
-59
-96

query I rowsort
SELECT ALL - 89 + + col1 FROM tab2 AS cor0
----
-12
-22
-38

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

query I rowsort
SELECT DISTINCT + 30 + - col0 + - - col0 * col0 FROM tab1
----
2580
7170
8220

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

skipif mysql # not compatible
query I rowsort label-1081
SELECT COUNT ( * ) * - COUNT ( ALL col0 ) AS col1 FROM tab0 WHERE 23 IS NOT NULL
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-1082
SELECT + 92 DIV + col2 FROM tab2
----
1
2
4

skipif mysql # not compatible
query I rowsort label-1082
SELECT + 92 / + col2 FROM tab2
----
1
2
4

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1084
SELECT ( - SUM( DISTINCT - col1 ) ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-1084
SELECT ( - SUM ( DISTINCT - col1 ) ) FROM tab1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1085
SELECT - 57 * + - COUNT( DISTINCT col2 ) FROM tab2
----
171

skipif mysql # not compatible
query I rowsort label-1085
SELECT - 57 * + - COUNT ( DISTINCT col2 ) FROM tab2
----
171

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1087
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + ( + CAST( - + col2 AS SIGNED ) ), + 28 )
----

skipif mysql # not compatible
query III rowsort label-1087
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + ( + CAST ( - + col2 AS INTEGER ) ), + 28 )
----

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

query I rowsort
SELECT ALL col2 * + + 84 AS col2 FROM tab2 AS cor0
----
1932
3360
4872

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 41 IN ( + 56, + 70 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT ALL col1 * + 67 AS col2 FROM tab2
----
3417
4489
5159

query I rowsort
SELECT DISTINCT + ( 26 ) FROM tab2
----
26

query II rowsort
SELECT ALL + 85, + col2 AS col1 FROM tab2
----
85
23
85
40
85
58

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

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

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

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

query I rowsort
SELECT - col2 * col0 * - + col1 AS col2 FROM tab2
----
197120
291450
53958

query I rowsort
SELECT ALL col1 * + 71 FROM tab0
----
1491
5751
71

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

query I rowsort
SELECT - 35 AS col1 FROM tab0 AS cor0 WHERE NOT - 69 + - col1 * + + 99 IS NULL
----
-35
-35
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-1101
SELECT - 96 * - col1 + + 57 DIV - col1 + - col0 AS col0 FROM tab1 AS cor0
----
1289
384
4420

skipif mysql # not compatible
query I rowsort label-1101
SELECT - 96 * - col1 + + 57 / - col1 + - col0 AS col0 FROM tab1 AS cor0
----
1289
384
4420

query I rowsort
SELECT + 3 + 13 FROM tab0
----
16
16
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( + col2 ) AS col1, col1 col0 FROM tab1
----
59
5
68
47
96
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1104
SELECT MAX( - 11 ) FROM tab0 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-1104
SELECT MAX ( - 11 ) FROM tab0 AS cor0
----
-11

onlyif mysql # DIV for integer division: 
query II rowsort label-1105
SELECT ALL - + 39 + 88 DIV + + col0 + + col0 + + col1 + + - col2 * - - col1 * col0 - + ( + + col1 ), + 79 * col0 AS col1 FROM tab2 cor0
----
-197094
5056
-291413
5925
-53950
3634

skipif mysql # not compatible
query II rowsort label-1105
SELECT ALL - + 39 + 88 / + + col0 + + col0 + + col1 + + - col2 * - - col1 * col0 - + ( + + col1 ), + 79 * col0 AS col1 FROM tab2 cor0
----
-197094
5056
-291413
5925
-53950
3634

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1107
SELECT DISTINCT col1 + - CAST( NULL AS SIGNED ) col0, - ( col1 ) * - + 32 FROM tab1 AS cor0
----
NULL
1504
NULL
160
NULL
448

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1107
SELECT DISTINCT col1 + - CAST ( NULL AS INTEGER ) col0, - ( col1 ) * - + 32 FROM tab1 AS cor0
----
NULL
1504
NULL
160
NULL
448

query II rowsort
SELECT - col1 AS col2, + 10 + + 0 FROM tab0 cor0 WHERE NULL IS NULL
----
-1
10
-21
10
-81
10

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1110
SELECT DISTINCT + 50 * - - COUNT( * ) DIV - COUNT( * ) + + COUNT( * ) FROM tab0 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-1110
SELECT DISTINCT + 50 * - - COUNT ( * ) / - COUNT ( * ) + + COUNT ( * ) FROM tab0 AS cor0
----
-47

query I rowsort
SELECT DISTINCT - 25 FROM tab2 WHERE NULL IS NOT NULL
----

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1114
SELECT col1 * - 4 + 51 + - 67 DIV col0 col2 FROM tab1
----
-137
-6
31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1114
SELECT col1 * - 4 + 51 + - 67 / col0 col2 FROM tab1
----
-137
-6
31

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

query III rowsort
SELECT * FROM tab0 WHERE NULL < - col1 * - col0 * 54 + - - col2 * - 27
----

query II rowsort
SELECT + - col2 AS col2, - 8 * - + col1 AS col1 FROM tab2 AS cor0
----
-23
408
-40
616
-58
536

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - ( - 75 ) <> 91 * + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1119
SELECT DISTINCT - COUNT( * ) - 3 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-1119
SELECT DISTINCT - COUNT ( * ) - 3 FROM tab0 AS cor0
----
-6

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

query I rowsort
SELECT col1 * col0 + 41 FROM tab0
----
1256
138
1868

onlyif mysql # aggregate syntax: 
query I rowsort label-1122
SELECT DISTINCT 0 * - MIN( DISTINCT + 58 ) + - COUNT( * ) col2 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1122
SELECT DISTINCT 0 * - MIN ( DISTINCT + 58 ) + - COUNT ( * ) col2 FROM tab2
----
-3

query I rowsort
SELECT ALL col0 * col1 AS col1 FROM tab1 WHERE col0 IS NULL
----

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE ( NULL ) <= NULL
----

query I rowsort
SELECT + col0 / - 86 FROM tab2 WHERE - col0 IS NULL
----

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 83 >= 90 - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1128
SELECT - 95 + COUNT( * ) FROM tab1 WHERE NOT NULL NOT BETWEEN - col0 AND - col2
----
-95

skipif mysql # not compatible
query I rowsort label-1128
SELECT - 95 + COUNT ( * ) FROM tab1 WHERE NOT NULL NOT BETWEEN - col0 AND - col2
----
-95

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 94 col1 FROM tab1
----
94
94
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1131
SELECT DISTINCT 34 + COUNT( DISTINCT col2 ) col2 FROM tab0
----
37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1131
SELECT DISTINCT 34 + COUNT ( DISTINCT col2 ) col2 FROM tab0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-1132
SELECT DISTINCT + ( MIN( 46 ) ) AS col1 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-1132
SELECT DISTINCT + ( MIN ( 46 ) ) AS col1 FROM tab2
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1133
SELECT ALL MIN( col0 ) AS col0 FROM tab1 WHERE NOT NULL IN ( + col1 + - col2 * + CAST( - 62 + - col1 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1133
SELECT ALL MIN ( col0 ) AS col0 FROM tab1 WHERE NOT NULL IN ( + col1 + - col2 * + CAST ( - 62 + - col1 AS INTEGER ) )
----
NULL

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

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

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

query I rowsort
SELECT DISTINCT - col1 - - ( + col1 ) FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1138
SELECT ALL SUM( col1 ) col0 FROM tab2
----
195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1138
SELECT ALL SUM ( col1 ) col0 FROM tab2
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-1139
SELECT ALL + SUM( 44 ) col2 FROM tab1
----
132

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1139
SELECT ALL + SUM ( 44 ) col2 FROM tab1
----
132

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab1 WHERE col1 / ( - 11 * 67 ) >= NULL
----

query I rowsort
SELECT + col0 AS col0 FROM tab0 WHERE NOT ( 65 ) NOT IN ( col1 + + 16 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1142
SELECT ALL 1 + - COUNT( * ) col1 FROM tab0
----
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1142
SELECT ALL 1 + - COUNT ( * ) col1 FROM tab0
----
-2

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1145
SELECT ALL SUM( - col1 ) * 23 AS col2 FROM tab0
----
-2369

skipif mysql # not compatible
query I rowsort label-1145
SELECT ALL SUM ( - col1 ) * 23 AS col2 FROM tab0
----
-2369

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 2 * 20 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL >= - col2 * + 61
----

query I rowsort
SELECT ALL + 99 + col2 FROM tab2
----
122
139
157

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1151
SELECT ALL - col0 col1 FROM tab1 WHERE ( 98 ) BETWEEN ( + 0 * + 71 + + col0 ) AND - 81 * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1151
SELECT ALL - col0 col1 FROM tab1 WHERE ( 98 ) BETWEEN ( + 0 * + 71 + + col0 ) AND - 81 * - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1152
SELECT DISTINCT COUNT( DISTINCT + 46 ) DIV + SUM( ALL 56 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1152
SELECT DISTINCT COUNT ( DISTINCT + 46 ) / + SUM ( ALL 56 ) FROM tab1
----
0

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

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

query I rowsort
SELECT - col0 * + col1 + 93 FROM tab1 AS cor0 WHERE NULL NOT IN ( 47 + + col0 * 75 )
----

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

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

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

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

query I rowsort
SELECT DISTINCT + col0 * - 57 + 4 * 95 FROM tab0 AS cor0
----
-4579
-475
-5149

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

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

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

skipif mysql # not compatible
query I rowsort label-1160
SELECT + - COUNT ( * ) / + 42 + COUNT ( * ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL + - col2 - 56 FROM tab1 AS cor0
----
-115
-124
-152

onlyif mysql # DIV for integer division: 
query I rowsort label-1162
SELECT DISTINCT - col0 - col2 DIV + ( col1 * - ( col2 * col1 ) ) FROM tab0 AS cor0
----
-15
-87
-96

skipif mysql # not compatible
query I rowsort label-1162
SELECT DISTINCT - col0 - col2 / + ( col1 * - ( col2 * col1 ) ) FROM tab0 AS cor0
----
-15
-87
-96

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1164
SELECT CAST( 35 AS SIGNED ) AS col2 FROM tab0 WHERE ( + 44 ) + + col1 * col0 NOT BETWEEN CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-1164
SELECT CAST ( 35 AS INTEGER ) AS col2 FROM tab0 WHERE ( + 44 ) + + col1 * col0 NOT BETWEEN CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1165
SELECT DISTINCT + col2 DIV - + 43 FROM tab1
----
-1
-2

skipif mysql # not compatible
query I rowsort label-1165
SELECT DISTINCT + col2 / - + 43 FROM tab1
----
-1
-2

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

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

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

skipif mysql # not compatible
query I rowsort label-1167
SELECT + CAST ( NULL AS INTEGER ) FROM tab1 WHERE - col2 * 69 IS NULL
----

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

query I rowsort
SELECT - 25 * col1 FROM tab0 WHERE NULL NOT BETWEEN NULL AND + 76
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1170
SELECT DISTINCT 14 * + COUNT( * ) - + MAX( ALL col0 ) AS col0 FROM tab1
----
-49

skipif mysql # not compatible
query I rowsort label-1170
SELECT DISTINCT 14 * + COUNT ( * ) - + MAX ( ALL col0 ) AS col0 FROM tab1
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1171
SELECT CAST( - - col1 AS SIGNED ) - ( + col2 ) FROM tab1
----
-21
-54
-82

skipif mysql # not compatible
query I rowsort label-1171
SELECT CAST ( - - col1 AS INTEGER ) - ( + col2 ) FROM tab1
----
-21
-54
-82

query I rowsort
SELECT - + col1 * + 58 - - col0 FROM tab0 AS cor0
----
-1131
-4683
39

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1173
SELECT DISTINCT 26 FROM tab1 AS cor0 WHERE CAST( - col2 AS DECIMAL ) IS NOT NULL
----
26

skipif mysql # not compatible
query I rowsort label-1173
SELECT DISTINCT 26 FROM tab1 AS cor0 WHERE CAST ( - col2 AS REAL ) IS NOT NULL
----
26

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE + 94 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1175
SELECT MIN( ALL col0 ) AS col1 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-1175
SELECT MIN ( ALL col0 ) AS col1 FROM tab2
----
46

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1178
SELECT ALL + 85 AS col1, CAST( NULL AS SIGNED ) + + 78 + col1 col0 FROM tab0 AS cor0
----
85
NULL
85
NULL
85
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1178
SELECT ALL + 85 AS col1, CAST ( NULL AS INTEGER ) + + 78 + col1 col0 FROM tab0 AS cor0
----
85
NULL
85
NULL
85
NULL

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1181
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT + 87 < - - 14 + + 1 * col1
----
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1181
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT + 87 < - - 14 + + 1 * col1
----
NULL
NULL

query I rowsort
SELECT ALL + 71 * + 57 + col0 FROM tab2 AS cor0
----
4093
4111
4122

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1184
SELECT DISTINCT col0 DIV - col0 AS col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1184
SELECT DISTINCT col0 / - col0 AS col2 FROM tab1 AS cor0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1185
SELECT - COUNT( * ) DIV - 98 * - 79 col0 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1185
SELECT - COUNT ( * ) / - 98 * - 79 col0 FROM tab1
----
0

query I rowsort
SELECT DISTINCT + col0 * - col0 AS col0 FROM tab1 WHERE NOT NULL <> NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( + 65 * + 23 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1188
SELECT + col0 DIV - + col2 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-1188
SELECT + col0 / - + col2 FROM tab1
----
-1
-1
0

query I rowsort
SELECT col2 FROM tab0 WHERE NOT + 89 * 78 + col2 BETWEEN col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1190
SELECT * FROM tab2 WHERE NOT - + CAST( CAST( - 88 AS SIGNED ) AS SIGNED ) * + 48 IN ( + 54 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1190
SELECT * FROM tab2 WHERE NOT - + CAST ( CAST ( - 88 AS INTEGER ) AS INTEGER ) * + 48 IN ( + 54 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1192
SELECT DISTINCT 28 * + - 43 + - ( - COUNT( * ) ) * - 96 FROM tab1 AS cor0
----
-1492

skipif mysql # not compatible
query I rowsort label-1192
SELECT DISTINCT 28 * + - 43 + - ( - COUNT ( * ) ) * - 96 FROM tab1 AS cor0
----
-1492

onlyif mysql # aggregate syntax: 
query I rowsort label-1193
SELECT ALL - COUNT( col1 ) * - 84 FROM tab1 AS cor0
----
252

skipif mysql # not compatible
query I rowsort label-1193
SELECT ALL - COUNT ( col1 ) * - 84 FROM tab1 AS cor0
----
252

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1195
SELECT ALL - COUNT( * ) DIV + 6 * + - COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1195
SELECT ALL - COUNT ( * ) / + 6 * + - COUNT ( * ) FROM tab2
----
0

query I rowsort
SELECT DISTINCT - AVG ( ALL - col2 ) + 76 * + 18 FROM tab1 WHERE NOT - col2 - - 99 IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1197
SELECT ALL + col2 DIV - - 57 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1197
SELECT ALL + col2 / - - 57 FROM tab2
----
0
0
1

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

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

query I rowsort
SELECT + - ( - 29 ) - - + 41 FROM tab1 AS cor0
----
70
70
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 24 col2 FROM tab0 AS cor0 WHERE + 72 BETWEEN ( 79 * + + col2 + - col1 ) AND col0 + ( col0 )
----

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 92 BETWEEN - + 60 + + col0 AND - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col2 * + col0 * - 11 + - col1 + - col2 col0 FROM tab2 AS cor0
----
-2168437
-3206075
-593612

onlyif mysql # DIV for integer division: 
query II rowsort label-1205
SELECT - col1 + + col2 col2, ( - 41 ) - + col2 - - col1 DIV 84 AS col2 FROM tab1
----
21
-109
54
-100
82
-137

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1205
SELECT - col1 + + col2 col2, ( - 41 ) - + col2 - - col1 / 84 AS col2 FROM tab1
----
21
-109
54
-100
82
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-1206
SELECT DISTINCT - MIN( ALL + + col1 ) AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-1206
SELECT DISTINCT - MIN ( ALL + + col1 ) AS col2 FROM tab0
----
-1

query I rowsort
SELECT - col1 AS col2 FROM tab1 WHERE - col1 / col0 * - - 95 * + col0 IS NOT NULL
----
-14
-47
-5

query II rowsort
SELECT ALL - - col2 * - col2 AS col0, + 33 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT + 14 AS col0, 62 AS col1 FROM tab1
----
14
62

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1213
SELECT + ( - 16 ) * - COUNT( * ) + - + COUNT( DISTINCT + col2 ) + ( - 41 ) FROM tab1 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-1213
SELECT + ( - 16 ) * - COUNT ( * ) + - + COUNT ( DISTINCT + col2 ) + ( - 41 ) FROM tab1 AS cor0
----
4

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE 28 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1215
SELECT DISTINCT + - 82 * - 98 + - + COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
8027

skipif mysql # not compatible
query I rowsort label-1215
SELECT DISTINCT + - 82 * - 98 + - + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
8027

query I rowsort
SELECT ALL - - 86 FROM tab1 WHERE col0 IS NOT NULL
----
86
86
86

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

skipif mysql # not compatible
query I rowsort label-1217
SELECT MAX ( + 93 ) AS col1 FROM tab2
----
93

query I rowsort
SELECT + col2 * - - col0 + - col2 AS col0 FROM tab0 cor0
----
658
860
9504

query I rowsort
SELECT ALL + + col1 + - 39 + col1 + + 42 FROM tab2 cor0 WHERE NOT 9 NOT BETWEEN NULL AND - col1 - 10
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <= ( col2 + + 63 - - col2 * - col1 )
----

query I rowsort
SELECT DISTINCT + + col1 * + - col2 * + - col0 AS col0 FROM tab2 AS cor0
----
197120
291450
53958

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1223
SELECT DISTINCT - SUM( ALL - col1 ) * - + ( - 56 ) AS col1 FROM tab1 AS cor0
----
3696

skipif mysql # not compatible
query I rowsort label-1223
SELECT DISTINCT - SUM ( ALL - col1 ) * - + ( - 56 ) AS col1 FROM tab1 AS cor0
----
3696

query I rowsort
SELECT + col2 + + + col0 + - col2 AS col1 FROM tab0 AS cor0
----
15
87
97

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1226
SELECT DISTINCT - MAX( DISTINCT + + ( + col1 ) ) * - - 83 + + CAST( NULL AS SIGNED ) * + AVG ( - + 82 ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1226
SELECT DISTINCT - MAX ( DISTINCT + + ( + col1 ) ) * - - 83 + + CAST ( NULL AS INTEGER ) * + AVG ( - + 82 ) AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1227
SELECT COUNT( * ) * + 47 * - 1, + COUNT( * ) col2 FROM tab1
----
-141
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1227
SELECT COUNT ( * ) * + 47 * - 1, + COUNT ( * ) col2 FROM tab1
----
-141
3

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1230
SELECT 7 FROM tab1 WHERE + col0 <= - CAST( - CAST( - - 23 AS DECIMAL ) AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1230
SELECT 7 FROM tab1 WHERE + col0 <= - CAST ( - CAST ( - - 23 AS REAL ) AS INTEGER )
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1232
SELECT ALL + - 84 + - AVG ( 92 ) + + CAST( - + 43 AS SIGNED ) * SUM( - col0 ) + - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT col2 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1232
SELECT ALL + - 84 + - AVG ( 92 ) + + CAST ( - + 43 AS INTEGER ) * SUM ( - col0 ) + - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT col2 >= NULL
----
NULL

query I rowsort
SELECT ALL + 81 * + - col0 + + col0 * - col1 * + col1 AS col0 FROM tab0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT ALL - 57 AS col0 FROM tab1 WHERE NOT + + col0 IS NOT NULL
----

query I rowsort
SELECT col0 * - col0 + - 6 FROM tab2
----
-2122
-4102
-5631

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col1 = NULL
----

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1239
SELECT ALL col2, - col2 DIV col0 AS col0 FROM tab1
----
59
0
68
0
96
-1

skipif mysql # not compatible
query II rowsort label-1239
SELECT ALL col2, - col2 / col0 AS col0 FROM tab1
----
59
0
68
0
96
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1241
SELECT ALL MAX( 14 ) AS col1 FROM tab2
----
14

skipif mysql # not compatible
query I rowsort label-1241
SELECT ALL MAX ( 14 ) AS col1 FROM tab2
----
14

query I rowsort
SELECT DISTINCT - 25 * - col0 FROM tab1
----
1275
2125
2275

query I rowsort
SELECT col0 + col0 FROM tab1 AS cor0 WHERE NOT ( NOT - col0 IN ( - 27 ) )
----

query I rowsort
SELECT + - col0 * 43 AS col0 FROM tab1 cor0
----
-2193
-3655
-3913

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1246
SELECT ALL - col1 DIV - + 68 AS col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1246
SELECT ALL - col1 / - + 68 AS col2 FROM tab0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1247
SELECT DISTINCT SUM( 6 ) FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-1247
SELECT DISTINCT SUM ( 6 ) FROM tab0
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-1248
SELECT - MIN( + 85 ) AS col2, - 26 AS col1 FROM tab1
----
-85
-26

skipif mysql # not compatible
query II rowsort label-1248
SELECT - MIN ( + 85 ) AS col2, - 26 AS col1 FROM tab1
----
-85
-26

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

query II rowsort
SELECT ALL + - 61, 25 AS col1 FROM tab2 AS cor0
----
-61
25
-61
25
-61
25

query I rowsort
SELECT DISTINCT - + col0 * col2 + + col1 + - col1 - - col2 + - 75 * - - col0 - - 77 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col0 AND NULL
----

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

query I rowsort
SELECT ALL + 23 FROM tab1 AS cor0 WHERE col0 + col1 IS NULL
----

query I rowsort
SELECT DISTINCT + - col0 + - col2 * 20 AS col0 FROM tab1 AS cor0
----
-1265
-1451
-1971

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1257
SELECT DISTINCT MAX( - 50 ) FROM tab1
----
-50

skipif mysql # not compatible
query I rowsort label-1257
SELECT DISTINCT MAX ( - 50 ) FROM tab1
----
-50

onlyif mysql # DIV for integer division: 
query II rowsort label-1258
SELECT col1 DIV - col2 AS col2, col0 + + col0 FROM tab1
----
0
102
0
170
0
182

skipif mysql # not compatible
query II rowsort label-1258
SELECT col1 / - col2 AS col2, col0 + + col0 FROM tab1
----
0
102
0
170
0
182

query II rowsort
SELECT + col1, 77 * col1 FROM tab0 WHERE ( NOT NULL <= col2 )
----

query I rowsort
SELECT + col0 * + + col2 * - col0 + + - 65 AS col2 FROM tab0
----
-10640
-75755
-931556

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

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

query I rowsort
SELECT col2 + - - 26 + - 77 AS col1 FROM tab2 AS cor0 WHERE 20 + + col1 NOT BETWEEN + 51 / - 32 AND ( col2 )
----
-11
-28
7

query I rowsort
SELECT col2 * + col2 + 10 FROM tab2 AS cor0
----
1610
3374
539

query I rowsort
SELECT DISTINCT + col1 - - + 94 AS col2 FROM tab0 AS cor0
----
115
175
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1265
SELECT ALL CAST( 67 AS SIGNED ) FROM tab2 AS cor0
----
67
67
67

skipif mysql # not compatible
query I rowsort label-1265
SELECT ALL CAST ( 67 AS INTEGER ) FROM tab2 AS cor0
----
67
67
67

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

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

skipif mysql # not compatible
query I rowsort label-1267
SELECT + - CAST ( + SUM ( DISTINCT + + col1 ) AS INTEGER ) FROM tab0 AS cor0 WHERE ( NOT NULL = + col2 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1268
SELECT ALL + - 33 + + col2 DIV + 74 * + col1 + + + col0 FROM tab0 AS cor0
----
-18
54
65

skipif mysql # not compatible
query I rowsort label-1268
SELECT ALL + - 33 + + col2 / + 74 * + col1 + + + col0 FROM tab0 AS cor0
----
-18
54
65

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1270
SELECT - col2 * col2 DIV + + 25 + - - 88 + + - 36 - - col2 FROM tab0 cor0
----
-241
11
58

skipif mysql # not compatible
query I rowsort label-1270
SELECT - col2 * col2 / + + 25 + - - 88 + + - 36 - - col2 FROM tab0 cor0
----
-241
11
58

query III rowsort
SELECT * FROM tab2 cor0 WHERE col2 BETWEEN NULL AND col2 * 68 + + col0 * 33
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1272
SELECT ALL * FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) <> + + col1
----

skipif mysql # not compatible
query III rowsort label-1272
SELECT ALL * FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) <> + + col1
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1274
SELECT DISTINCT COUNT( * ) * 14 * - 81 * + 94 FROM tab2
----
-319788

skipif mysql # not compatible
query I rowsort label-1274
SELECT DISTINCT COUNT ( * ) * 14 * - 81 * + 94 FROM tab2
----
-319788

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) IS NOT NULL OR ( - - 33 ) > NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT ALL - col1 * + col2 FROM tab1 WHERE + 91 - + 49 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1278
SELECT ALL col1 * + - CAST( - 33 AS SIGNED ) FROM tab0
----
2673
33
693

skipif mysql # not compatible
query I rowsort label-1278
SELECT ALL col1 * + - CAST ( - 33 AS INTEGER ) FROM tab0
----
2673
33
693

onlyif mysql # aggregate syntax: 
query I rowsort label-1279
SELECT COUNT( DISTINCT - 38 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-1279
SELECT COUNT ( DISTINCT - 38 ) FROM tab0
----
1

query I rowsort
SELECT ALL + 97 * - - col0 AS col1 FROM tab2 AS cor0
----
4462
6208
7275

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1281
SELECT + + 27 DIV - 83 * COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1281
SELECT + + 27 / - 83 * COUNT ( * ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT + - 13 * + col0 - - 96 + - 54 AS col2 FROM tab0 AS cor0
----
-1089
-1219
-153

query II rowsort
SELECT - col1 * + col2 * + 39 + - - col0 AS col2, col0 AS col2 FROM tab1 AS cor0
----
-11420
85
-124553
91
-52365
51

query I rowsort
SELECT ALL 54 * - - col1 AS col0 FROM tab2
----
2754
3618
4158

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 / 22 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1286
SELECT ALL - SUM( + + 14 ) * - - COUNT( * ) + + 76 FROM tab0 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-1286
SELECT ALL - SUM ( + + 14 ) * - - COUNT ( * ) + + 76 FROM tab0 AS cor0
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1287
SELECT + COUNT( * ) + - SUM( - ( + col2 ) ) DIV + + 47 FROM tab2 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-1287
SELECT + COUNT ( * ) + - SUM ( - ( + col2 ) ) / + + 47 FROM tab2 AS cor0
----
5

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

query I rowsort
SELECT col2 * 12 + - - col2 FROM tab2 AS cor0
----
299
520
754

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1292
SELECT ALL - - 65 + + - MIN( ALL - col0 ) FROM tab0 AS cor0 WHERE NOT - 52 IS NULL
----
162

skipif mysql # not compatible
query I rowsort label-1292
SELECT ALL - - 65 + + - MIN ( ALL - col0 ) FROM tab0 AS cor0 WHERE NOT - 52 IS NULL
----
162

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1294
SELECT DISTINCT * FROM tab1 WHERE NOT - - col0 IN ( + 0 + + - col0, ( col1 ) + + col1, + + ( CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-1294
SELECT DISTINCT * FROM tab1 WHERE NOT - - col0 IN ( + 0 + + - col0, ( col1 ) + + col1, + + ( CAST ( NULL AS INTEGER ) ) )
----

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1297
SELECT * FROM tab2 WHERE + col1 * - CAST( NULL AS DECIMAL ) * - 61 NOT BETWEEN NULL AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-1297
SELECT * FROM tab2 WHERE + col1 * - CAST ( NULL AS REAL ) * - 61 NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1298
SELECT ALL 73 + - SUM( col0 ) AS col0 FROM tab1
----
-154

skipif mysql # not compatible
query I rowsort label-1298
SELECT ALL 73 + - SUM ( col0 ) AS col0 FROM tab1
----
-154

query I rowsort
SELECT + 47 + + col2 AS col2 FROM tab0 AS cor0
----
146
57
94

query I rowsort
SELECT ALL + 93 AS col1 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

onlyif mysql # aggregate syntax: 
query II rowsort label-1301
SELECT COUNT( * ) * 68 AS col2, 22 * + - 22 col0 FROM tab1
----
204
-484

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1301
SELECT COUNT ( * ) * 68 AS col2, 22 * + - 22 col0 FROM tab1
----
204
-484

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1304
SELECT - SUM( 62 ) FROM tab0
----
-186

skipif mysql # not compatible
query I rowsort label-1304
SELECT - SUM ( 62 ) FROM tab0
----
-186

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1307
SELECT DISTINCT col0 * + - CAST( 6 AS SIGNED ), + 94 AS col1 FROM tab2
----
-276
94
-384
94
-450
94

skipif mysql # not compatible
query II rowsort label-1307
SELECT DISTINCT col0 * + - CAST ( 6 AS INTEGER ), + 94 AS col1 FROM tab2
----
-276
94
-384
94
-450
94

query III rowsort
SELECT ALL * FROM tab1 WHERE - + ( + - 1 ) + + col0 >= + 21
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - ( + 80 ) + 52 * - + col1 + - 22 FROM tab2 AS cor0 WHERE NOT ( + col1 ) IS NOT NULL
----

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT 36 + - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1311
SELECT ALL COUNT( * ) AS col2, COUNT( * ) * 5 AS col0 FROM tab1 AS cor0
----
3
15

skipif mysql # not compatible
query II rowsort label-1311
SELECT ALL COUNT ( * ) AS col2, COUNT ( * ) * 5 AS col0 FROM tab1 AS cor0
----
3
15

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

query I rowsort
SELECT DISTINCT col2 * - + col0 * - col1 FROM tab1
----
25075
290836
68544

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

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

query I rowsort
SELECT ALL - col1 + + 76 FROM tab2
----
-1
25
9

query I rowsort
SELECT ALL col1 + + col2 * - + 24 * 12 * col0 FROM tab0 AS cor0
----
-202959
-250539
-2765663

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

query I rowsort
SELECT - - col1 * + - col1 - + - col2 * + col2 FROM tab2 cor0 WHERE 80 * + col2 IS NOT NULL
----
-1125
-2072
-4329

query I rowsort
SELECT ALL - col2 + - col2 * - - col2 FROM tab0 AS cor0
----
-110
-2256
-9900

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 / - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1321
SELECT ALL MAX( DISTINCT - + 83 ) + - 0 FROM tab0 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-1321
SELECT ALL MAX ( DISTINCT - + 83 ) + - 0 FROM tab0 AS cor0
----
-83

query I rowsort
SELECT DISTINCT ( + - col1 ) * + + col1 + - col1 FROM tab2 AS cor0
----
-2652
-4556
-6006

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1324
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 55 <= + + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-1324
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 55 <= + + CAST ( NULL AS REAL )
----

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

skipif mysql # not compatible
query I rowsort label-1325
SELECT + ( + COUNT ( - 88 ) ) AS col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL - + 67 AS col1 FROM tab1 AS cor0
----
-67
-67
-67

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

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

query I rowsort
SELECT - ( ( + 22 ) ) + - - 59 + + 52 + + - col2 - col1 * + - 62 * - col1 * + col0 AS col1 FROM tab1
----
-12463157
-131720
-619759

query I rowsort
SELECT DISTINCT col2 * + 89 + - col1 AS col2 FROM tab0
----
4102
869
8810

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1330
SELECT ALL + COUNT( * ) DIV - - ( + MAX( 56 ) ) col0 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1330
SELECT ALL + COUNT ( * ) / - - ( + MAX ( 56 ) ) col0 FROM tab2
----
0

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

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

query I rowsort
SELECT + 51 + col2 FROM tab0
----
150
61
98

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

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

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

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

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

query I rowsort
SELECT ALL - + 43 + + col2 AS col2 FROM tab0 AS cor0
----
-33
4
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 84 AS col1, - col2 + - 5 col0 FROM tab0
----
84
-104
84
-15
84
-52

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

query I rowsort
SELECT ALL - + 65 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 744531575c1b6461ed2916d4940e4d23

query I rowsort
SELECT - 99 * + col2 + + - col1 AS col1 FROM tab1 AS cor0
----
-5846
-6779
-9518

query I rowsort
SELECT - + 87 * - - col2 AS col2 FROM tab2 AS cor0
----
-2001
-3480
-5046

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1345
SELECT + + 33 * - ( COUNT( + col0 ) ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-1345
SELECT + + 33 * - ( COUNT ( + col0 ) ) FROM tab0 AS cor0
----
-99

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

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

skipif mysql # not compatible
query I rowsort label-1347
SELECT DISTINCT COUNT ( ALL + 52 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1348
SELECT COUNT( ( 17 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1348
SELECT COUNT ( ( 17 ) ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1349
SELECT ALL * FROM tab2 WHERE - - CAST( - col0 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-1349
SELECT ALL * FROM tab2 WHERE - - CAST ( - col0 AS INTEGER ) IS NULL
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1354
SELECT ALL + 69 + COUNT( * ) FROM tab2 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-1354
SELECT ALL + 69 + COUNT ( * ) FROM tab2 AS cor0
----
72

query I rowsort
SELECT DISTINCT 15 * - - col1 * - + col1 FROM tab0 cor0
----
-15
-6615
-98415

query I rowsort
SELECT ALL + + col0 * + + col1 - - col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
430
4324
728

onlyif mysql # aggregate syntax: 
query I rowsort label-1357
SELECT ALL - ( + MIN( - 53 ) ) * + 75 FROM tab2
----
3975

skipif mysql # not compatible
query I rowsort label-1357
SELECT ALL - ( + MIN ( - 53 ) ) * + 75 FROM tab2
----
3975

query I rowsort
SELECT 70 * + col2 + + 59 + - - col2 AS col1 FROM tab0
----
3396
7088
769

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

skipif mysql # not compatible
query I rowsort label-1359
SELECT COUNT ( + col2 ) AS col1 FROM tab1 WHERE + col1 IS NULL
----
0

query I rowsort
SELECT + - col2 + + 89 FROM tab2 AS cor0
----
31
49
66

onlyif mysql # DIV for integer division: 
query I rowsort label-1361
SELECT DISTINCT + 18 + + col1 DIV 32 FROM tab2 AS cor0
----
19
20

skipif mysql # not compatible
query I rowsort label-1361
SELECT DISTINCT + 18 + + col1 / 32 FROM tab2 AS cor0
----
19
20

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

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

query I rowsort
SELECT DISTINCT 14 * + 12 AS col1 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1366
SELECT + 50 + - MAX( - col2 ) FROM tab2 cor0
----
73

skipif mysql # not compatible
query I rowsort label-1366
SELECT + 50 + - MAX ( - col2 ) FROM tab2 cor0
----
73

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

skipif mysql # not compatible
query I rowsort label-1367
SELECT ALL COUNT ( * ) + - 54 AS col0 FROM tab0 cor0
----
-51

query I rowsort
SELECT DISTINCT + 15 + - + 37 - + 66 + col1 FROM tab2 AS cor0
----
-11
-21
-37

query I rowsort
SELECT ALL + col0 * - 54 * + 88 - + col2 AS col0 FROM tab1
----
-242448
-403979
-432500

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1371
SELECT - COUNT( ALL - col1 ) FROM tab0 WHERE NULL BETWEEN col1 AND + col1
----
0

skipif mysql # not compatible
query I rowsort label-1371
SELECT - COUNT ( ALL - col1 ) FROM tab0 WHERE NULL BETWEEN col1 AND + col1
----
0

query I rowsort
SELECT 54 * ( + - col2 ) AS col1 FROM tab0
----
-2538
-5346
-540

query I rowsort
SELECT 61 * 92 FROM tab1
----
5612
5612
5612

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1374
SELECT - COUNT( * ) DIV ( - + SUM( ALL - col0 ) ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1374
SELECT - COUNT ( * ) / ( - + SUM ( ALL - col0 ) ) AS col2 FROM tab2
----
0

query II rowsort
SELECT col0 * - 60, - col1 AS col2 FROM tab0
----
-5220
-21
-5820
-1
-900
-81

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

skipif mysql # not compatible
query III rowsort label-1376
SELECT * FROM tab1 WHERE ( + - 45 - - - col1 - + CAST ( col1 AS INTEGER ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1377
SELECT SUM( - 16 ) col2 FROM tab1 WHERE ( - col0 * + col2 + 20 * + col0 - - 28 * + col2 ) <> 79
----
-48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1377
SELECT SUM ( - 16 ) col2 FROM tab1 WHERE ( - col0 * + col2 + 20 * + col0 - - 28 * + col2 ) <> 79
----
-48

query I rowsort
SELECT col2 * + col2 - + 72 FROM tab1
----
3409
4552
9144

onlyif mysql # aggregate syntax: 
query I rowsort label-1379
SELECT DISTINCT + - SUM( - + col2 ) - + 4 FROM tab0 cor0
----
152

skipif mysql # not compatible
query I rowsort label-1379
SELECT DISTINCT + - SUM ( - + col2 ) - + 4 FROM tab0 cor0
----
152

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

query I rowsort
SELECT - 62 * 38 * - ( + - 95 ) + - col1 * - + ( - - col1 ) FROM tab1 AS cor0
----
-221611
-223624
-223795

onlyif mysql # aggregate syntax: 
query I rowsort label-1382
SELECT DISTINCT MAX( - 82 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NOT NULL <= + - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1382
SELECT DISTINCT MAX ( - 82 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NOT NULL <= + - col0 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1383
SELECT DISTINCT - col1 * 95 * + col1 + - - col1 + + + col0 * - - col2 + - 48 * - ( ( - CAST( NULL AS SIGNED ) ) ) * + 3 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1383
SELECT DISTINCT - col1 * 95 * + col1 + - - col1 + + + col0 * - - col2 + - 48 * - ( ( - CAST ( NULL AS INTEGER ) ) ) * + 3 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL

query II rowsort
SELECT col0 AS col0, 38 FROM tab0
----
15
38
87
38
97
38

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 >= NULL
----

query I rowsort
SELECT - col0 + + + 65 + ( - col0 ) AS col0 FROM tab1 AS cor0
----
-105
-117
-37

query I rowsort
SELECT ALL + + 35 + - col2 FROM tab0 AS cor0
----
-12
-64
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1388
SELECT DISTINCT COUNT( * ) DIV - + 30 * + - COUNT( * ) FROM tab0, tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1388
SELECT DISTINCT COUNT ( * ) / - + 30 * + - COUNT ( * ) FROM tab0, tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1389
SELECT DISTINCT - - MIN( 27 ) DIV - - COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
3

skipif mysql # not compatible
query I rowsort label-1389
SELECT DISTINCT - - MIN ( 27 ) / - - COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1391
SELECT ALL ( + SUM( ALL col1 ) ) / + COUNT( * ) FROM tab2 AS cor0 WHERE NULL < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1391
SELECT ALL ( + SUM ( ALL col1 ) ) / + COUNT ( * ) FROM tab2 AS cor0 WHERE NULL < NULL
----
NULL

query I rowsort
SELECT DISTINCT 38 * 29 * col1 FROM tab0 AS cor0
----
1102
23142
89262

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

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

query I rowsort
SELECT ALL + col2 + + col0 * - col2 * 30 * + 84 AS col1 FROM tab2 AS cor0
----
-10961942
-2666137
-6451160

onlyif mysql # DIV for integer division: 
query I rowsort label-1396
SELECT ALL - 38 + col1 DIV - 74 AS col1 FROM tab1 AS cor0
----
-38
-38
-38

skipif mysql # not compatible
query I rowsort label-1396
SELECT ALL - 38 + col1 / - 74 AS col1 FROM tab1 AS cor0
----
-38
-38
-38

query I rowsort
SELECT - col0 + ( - col2 ) + - + col2 + + 32 FROM tab1 cor0
----
-171
-195
-211

query I rowsort
SELECT - 29 + + col0 * + col1 AS col2 FROM tab2 AS cor0
----
2317
4899
4996

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1401
SELECT MIN( + col0 ) + - 63 * - + ( + COUNT( * ) ) + + - 2 FROM tab2
----
233

skipif mysql # not compatible
query I rowsort label-1401
SELECT MIN ( + col0 ) + - 63 * - + ( + COUNT ( * ) ) + + - 2 FROM tab2
----
233

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1402
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 18 / - ( + 36 ) * + col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1402
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 18 / - ( + 36 ) * + col2 FROM tab0
----
NULL

query I rowsort
SELECT 30 + + col2 FROM tab1
----
126
89
98

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1405
SELECT ALL CAST( NULL AS DECIMAL ) * - 58 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1405
SELECT ALL CAST ( NULL AS REAL ) * - 58 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - 78 * col0 AS col1 FROM tab1 AS cor0
----
3978
6630
7098

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1407
SELECT - CAST( NULL AS DECIMAL ) + + + 31 FROM tab1 cor0 WHERE NOT ( ( NOT ( NOT + col1 <> - col1 ) ) )
----

skipif mysql # not compatible
query I rowsort label-1407
SELECT - CAST ( NULL AS REAL ) + + + 31 FROM tab1 cor0 WHERE NOT ( ( NOT ( NOT + col1 <> - col1 ) ) )
----

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

query I rowsort
SELECT ALL + 43 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1410
SELECT 79 * - MAX( + col0 ) FROM tab2 AS cor0
----
-5925

skipif mysql # not compatible
query I rowsort label-1410
SELECT 79 * - MAX ( + col0 ) FROM tab2 AS cor0
----
-5925

onlyif mysql # DIV for integer division: 
query I rowsort label-1411
SELECT DISTINCT + col0 DIV col0 * - 84 AS col1 FROM tab0 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-1411
SELECT DISTINCT + col0 / col0 * - 84 AS col1 FROM tab0 AS cor0
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1412
SELECT ALL CAST( COUNT( * ) AS SIGNED ) * + 79 * + COUNT( * ) col2 FROM tab1 cor0
----
711

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1412
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) * + 79 * + COUNT ( * ) col2 FROM tab1 cor0
----
711

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1413
SELECT CAST( + MAX( col2 ) AS SIGNED ) AS col1 FROM tab1 cor0
----
96

skipif mysql # not compatible
query I rowsort label-1413
SELECT CAST ( + MAX ( col2 ) AS INTEGER ) AS col1 FROM tab1 cor0
----
96

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

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

query I rowsort
SELECT DISTINCT col2 + + ( + + col2 ) AS col0 FROM tab1 AS cor0
----
118
136
192

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab0 AS cor0 WHERE ( - 21 ) IS NOT NULL
----
15
87
97

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

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

query I rowsort
SELECT DISTINCT - col1 + col2 * - + 17 * - col0 FROM tab0
----
11904
14769
163250

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1420
SELECT ALL + ( col0 ) AS col0, - col0 * CAST( + - ( + col0 ) AS SIGNED ) + - col1 + + + col0 col2 FROM tab2
----
46
2111
64
4083
75
5633

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1420
SELECT ALL + ( col0 ) AS col0, - col0 * CAST ( + - ( + col0 ) AS INTEGER ) + - col1 + + + col0 col2 FROM tab2
----
46
2111
64
4083
75
5633

query I rowsort
SELECT col2 + col1 * 89 FROM tab2
----
4562
6021
6893

query I rowsort
SELECT + + col2 + - ( + + col1 ) * col0 AS col1 FROM tab1 AS cor0
----
-366
-4209
-618

onlyif mysql # aggregate syntax: 
query I rowsort label-1423
SELECT + COUNT( + 64 ) + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1423
SELECT + COUNT ( + 64 ) + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1424
SELECT 40 + COUNT( DISTINCT - col2 ) FROM tab1 cor0
----
43

skipif mysql # not compatible
query I rowsort label-1424
SELECT 40 + COUNT ( DISTINCT - col2 ) FROM tab1 cor0
----
43

query II rowsort
SELECT + 94 AS col1, + 2 AS col1 FROM tab0 AS cor0
----
94
2
94
2
94
2

query I rowsort
SELECT ALL 7 AS col0 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

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

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

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

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

query I rowsort
SELECT col2 * + ( - col2 ) AS col1 FROM tab2 AS cor0 WHERE + col2 IS NOT NULL
----
-1600
-3364
-529

query I rowsort
SELECT DISTINCT col2 + - 75 AS col1 FROM tab1 AS cor0
----
-16
-7
21

query II rowsort
SELECT DISTINCT 26 - - + 45, 72 AS col2 FROM tab0
----
71
72

query I rowsort
SELECT col2 - - col2 + col2 FROM tab2
----
120
174
69

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

skipif mysql # not compatible
query I rowsort label-1434
SELECT ALL + CAST ( NULL AS INTEGER ) - + col2 + - CAST ( + + 96 AS INTEGER ) - ( - + 43 ) - + ( col1 ) * 8 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT + col1 - - col0, + col1 FROM tab1
----
138
47
65
14
90
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 - col0 col0, + col0 * 27 FROM tab1
----
-144
2295
-147
1377
-159
2457

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1437
SELECT DISTINCT - CAST( + ( - 13 ) AS SIGNED ) * - + 27 AS col0 FROM tab0
----
-351

skipif mysql # not compatible
query I rowsort label-1437
SELECT DISTINCT - CAST ( + ( - 13 ) AS INTEGER ) * - + 27 AS col0 FROM tab0
----
-351

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1439
SELECT - SUM( - 91 ) * 50 AS col1 FROM tab1
----
13650

skipif mysql # not compatible
query I rowsort label-1439
SELECT - SUM ( - 91 ) * 50 AS col1 FROM tab1
----
13650

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * - + col0 AS col2, col1 * + col0 col1 FROM tab0
----
-225
1215
-7569
1827
-9409
97

onlyif mysql # DIV for integer division: 
query I rowsort label-1441
SELECT DISTINCT + + col0 DIV - 44 + + col2 FROM tab2 AS cor0
----
22
39
57

skipif mysql # not compatible
query I rowsort label-1441
SELECT DISTINCT + + col0 / - 44 + + col2 FROM tab2 AS cor0
----
22
39
57

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1443
SELECT MIN( DISTINCT - - col0 ) * 81 AS col0 FROM tab2
----
3726

skipif mysql # not compatible
query I rowsort label-1443
SELECT MIN ( DISTINCT - - col0 ) * 81 AS col0 FROM tab2
----
3726

onlyif mysql # DIV for integer division: 
query II rowsort label-1444
SELECT DISTINCT ( + - col0 ) DIV + 33 AS col1, col1 FROM tab1
----
-1
14
-2
47
-2
5

skipif mysql # not compatible
query II rowsort label-1444
SELECT DISTINCT ( + - col0 ) / + 33 AS col1, col1 FROM tab1
----
-1
14
-2
47
-2
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1445
SELECT DISTINCT + MAX( ALL - 96 ) * + 75 FROM tab1
----
-7200

skipif mysql # not compatible
query I rowsort label-1445
SELECT DISTINCT + MAX ( ALL - 96 ) * + 75 FROM tab1
----
-7200

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1446
SELECT ALL + - CAST( - col2 AS SIGNED ) DIV - + col1 FROM tab0 AS cor0
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-1446
SELECT ALL + - CAST ( - col2 AS INTEGER ) / - + col1 FROM tab0 AS cor0
----
-99
0
0

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

query I rowsort
SELECT ALL + + ( - ( - col0 ) ) FROM tab1 AS cor0
----
51
85
91

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1450
SELECT + MAX( + ( - + ( - 11 ) ) ) * + 96 FROM tab1 AS cor0
----
1056

skipif mysql # not compatible
query I rowsort label-1450
SELECT + MAX ( + ( - + ( - 11 ) ) ) * + 96 FROM tab1 AS cor0
----
1056

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 83 * 29 col0, col2 FROM tab2
----
2407
23
2407
40
2407
58

query II rowsort
SELECT col1 * 95, + col1 AS col2 FROM tab1
----
1330
14
4465
47
475
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col1 ) * + 35 col1 FROM tab2
----
1785
2345
2695

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1454
SELECT DISTINCT MAX( ALL + - 46 ) * MIN( - - 23 ) * + COUNT( * ) * + - COUNT( * ) * - MIN( - 73 ) + + MAX( ALL + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1454
SELECT DISTINCT MAX ( ALL + - 46 ) * MIN ( - - 23 ) * + COUNT ( * ) * + - COUNT ( * ) * - MIN ( - 73 ) + + MAX ( ALL + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col0 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1455
SELECT ALL CAST( NULL AS SIGNED ) / col1 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1455
SELECT ALL CAST ( NULL AS INTEGER ) / col1 AS col2 FROM tab0
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT 18 + + col0 AS col1 FROM tab0
----
105
115
33

query I rowsort
SELECT DISTINCT - 16 + - - col2 + 29 FROM tab2
----
36
53
71

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1459
SELECT * FROM tab1 WHERE + col0 * + 47 NOT BETWEEN col2 AND + + col2 * + CAST( NULL AS SIGNED ) + - + col1
----

skipif mysql # not compatible
query III rowsort label-1459
SELECT * FROM tab1 WHERE + col0 * + 47 NOT BETWEEN col2 AND + + col2 * + CAST ( NULL AS INTEGER ) + - + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1460
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN - col2 + - + 22 AND CAST( + + col0 AS SIGNED ) * 60 + + col0 * - - col1
----

skipif mysql # not compatible
query III rowsort label-1460
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN - col2 + - + 22 AND CAST ( + + col0 AS INTEGER ) * 60 + + col0 * - - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1461
SELECT + 67 DIV - col0 + - + 13 FROM tab1 cor0
----
-13
-13
-14

skipif mysql # not compatible
query I rowsort label-1461
SELECT + 67 / - col0 + - + 13 FROM tab1 cor0
----
-13
-13
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-1462
SELECT ALL 62 + MIN( - - col0 ) FROM tab0 cor0
----
77

skipif mysql # not compatible
query I rowsort label-1462
SELECT ALL 62 + MIN ( - - col0 ) FROM tab0 cor0
----
77

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND - 23 * 97
----

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

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

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

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

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

query I rowsort
SELECT DISTINCT + + 20 + - col1 - col0 + + col0 AS col0 FROM tab2 AS cor0
----
-31
-47
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-1469
SELECT + 5 - - SUM( + col0 ) FROM tab0 AS cor0
----
204

skipif mysql # not compatible
query I rowsort label-1469
SELECT + 5 - - SUM ( + col0 ) FROM tab0 AS cor0
----
204

query I rowsort
SELECT + + 33 + 6 AS col0 FROM tab0 AS cor0
----
39
39
39

query II rowsort
SELECT ( col0 ) + - - 55, 14 AS col1 FROM tab2 AS cor0
----
101
14
119
14
130
14

query III rowsort
SELECT * FROM tab2 WHERE + - 62 >= NULL
----

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

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

query I rowsort
SELECT ALL 57 * + col0 AS col2 FROM tab2
----
2622
3648
4275

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1476
SELECT DISTINCT ( - col0 ) * - + CAST( + col2 AS SIGNED ) AS col0 FROM tab2
----
1058
2560
4350

skipif mysql # not compatible
query I rowsort label-1476
SELECT DISTINCT ( - col0 ) * - + CAST ( + col2 AS INTEGER ) AS col0 FROM tab2
----
1058
2560
4350

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( 34 ) <= + - col2
----

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1483
SELECT ALL + MAX( DISTINCT 87 ) DIV + COUNT( * ) - + 52 DIV - ( SUM( ALL - col1 ) ) FROM tab1
----
29

skipif mysql # not compatible
query I rowsort label-1483
SELECT ALL + MAX ( DISTINCT 87 ) / + COUNT ( * ) - + 52 / - ( SUM ( ALL - col1 ) ) FROM tab1
----
29

query I rowsort
SELECT DISTINCT - 0 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
0

query I rowsort
SELECT col2 * col2 + + col0 * - ( + col0 ) AS col0 FROM tab2 AS cor0
----
-1587
-2261
-2496

onlyif mysql # DIV for integer division: 
query I rowsort label-1486
SELECT + + col0 DIV ( 77 ) + - + col0 AS col1 FROM tab2 cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-1486
SELECT + + col0 / ( 77 ) + - + col0 AS col1 FROM tab2 cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-1487
SELECT DISTINCT + + 86 + + SUM( ALL - 58 ) FROM tab1 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-1487
SELECT DISTINCT + + 86 + + SUM ( ALL - 58 ) FROM tab1 AS cor0
----
-88

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

query I rowsort
SELECT ( - col2 ) + + 33 AS col2 FROM tab2 AS cor0
----
-25
-7
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1490
SELECT ALL - COUNT( * ) + + ( + 72 ) AS col0 FROM tab0 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-1490
SELECT ALL - COUNT ( * ) + + ( + 72 ) AS col0 FROM tab0 AS cor0
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1491
SELECT DISTINCT 53 * - SUM( ALL + CAST( NULL AS SIGNED ) ) - + 66 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1491
SELECT DISTINCT 53 * - SUM ( ALL + CAST ( NULL AS INTEGER ) ) - + 66 FROM tab0 cor0
----
NULL

query I rowsort
SELECT + - col0 * - col0 + ( + + 76 ) AS col1 FROM tab1 AS cor0
----
2677
7301
8357

query I rowsort
SELECT DISTINCT col2 * - 77 * 83 FROM tab1 cor0
----
-377069
-434588
-613536

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1496
SELECT DISTINCT col2 + + CAST( + + col0 AS SIGNED ) * - ( + col2 ) AS col1 FROM tab1
----
-4800
-4956
-6120

skipif mysql # not compatible
query I rowsort label-1496
SELECT DISTINCT col2 + + CAST ( + + col0 AS INTEGER ) * - ( + col2 ) AS col1 FROM tab1
----
-4800
-4956
-6120

query I rowsort
SELECT ALL - col1 + - - 24 + + + 96 * + + 64 FROM tab0
----
6087
6147
6167

query I rowsort
SELECT 93 * 62 FROM tab1
----
5766
5766
5766

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1499
SELECT DISTINCT - + CAST( + col0 AS SIGNED ) + - - col1 AS col0 FROM tab0 AS cor0
----
-66
-96
66

skipif mysql # not compatible
query I rowsort label-1499
SELECT DISTINCT - + CAST ( + col0 AS INTEGER ) + - - col1 AS col0 FROM tab0 AS cor0
----
-66
-96
66

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * - 34 + - 11 col0 FROM tab1 AS cor0 WHERE 49 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1504
SELECT DISTINCT + 21 DIV + col1 AS col1 FROM tab0 AS cor0
----
0
1
21

skipif mysql # not compatible
query I rowsort label-1504
SELECT DISTINCT + 21 / + col1 AS col1 FROM tab0 AS cor0
----
0
1
21

query I rowsort
SELECT + 83 FROM tab2 AS cor0 WHERE NOT + 75 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - - 86 + col2 FROM tab1 AS cor0 WHERE + col2 * col0 + ( col2 ) IS NOT NULL
----
145
154
182

query I rowsort
SELECT ALL ( + 14 ) AS col1 FROM tab1 AS cor0 WHERE + col2 BETWEEN - col2 / - 91 AND + - 67
----

query I rowsort
SELECT DISTINCT - 55 AS col2 FROM tab2 WHERE NULL < + col0
----

query I rowsort
SELECT - 47 * + col1 AS col0 FROM tab0
----
-3807
-47
-987

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 / 91 col2 FROM tab0 WHERE NOT - - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 FROM tab0 WHERE NULL = NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1515
SELECT ALL MIN( ALL 12 ) FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-1515
SELECT ALL MIN ( ALL 12 ) FROM tab2
----
12

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

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

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

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

query I rowsort
SELECT DISTINCT + + 18 * - + ( + 96 ) FROM tab2 AS cor0
----
-1728

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1520
SELECT - SUM( 70 ) FROM tab2
----
-210

skipif mysql # not compatible
query I rowsort label-1520
SELECT - SUM ( 70 ) FROM tab2
----
-210

onlyif mysql # aggregate syntax: 
query II rowsort label-1521
SELECT 42, - 94 + - COUNT( ALL - col1 ) col2 FROM tab0 AS cor0
----
42
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1521
SELECT 42, - 94 + - COUNT ( ALL - col1 ) col2 FROM tab0 AS cor0
----
42
-97

query I rowsort
SELECT DISTINCT - col2 + - + col0 FROM tab2 cor0
----
-104
-133
-69

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1525
SELECT - SUM( - col2 ) * + 77 FROM tab0 cor0
----
12012

skipif mysql # not compatible
query I rowsort label-1525
SELECT - SUM ( - col2 ) * + 77 FROM tab0 cor0
----
12012

query I rowsort
SELECT DISTINCT col0 * + col1 - - col0 FROM tab0 cor0
----
1230
1914
194

query II rowsort
SELECT + col1 AS col2, + col2 * 55 * - col1 AS col0 FROM tab2 cor0
----
51
-64515
67
-213730
77
-169400

onlyif mysql # aggregate syntax: 
query II rowsort label-1528
SELECT ALL + - SUM( ALL + - ( + + col2 ) ) * + + 2, COUNT( * ) + 45 AS col0 FROM tab2 AS cor0
----
242
48

skipif mysql # not compatible
query II rowsort label-1528
SELECT ALL + - SUM ( ALL + - ( + + col2 ) ) * + + 2, COUNT ( * ) + 45 AS col0 FROM tab2 AS cor0
----
242
48

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1529
SELECT ALL + col1 + 66 * + - ( ( - col0 ) ) / + col2 * col1 * - + col0 / + CAST( NULL AS SIGNED ) * 79 / + - 57 + + CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1529
SELECT ALL + col1 + 66 * + - ( ( - col0 ) ) / + col2 * col1 * - + col0 / + CAST ( NULL AS INTEGER ) * 79 / + - 57 + + CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1530
SELECT + col2 * CAST( NULL AS SIGNED ) AS col1, + col0 * + col0 col0 FROM tab1
----
NULL
2601
NULL
7225
NULL
8281

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1530
SELECT + col2 * CAST ( NULL AS INTEGER ) AS col1, + col0 * + col0 col0 FROM tab1
----
NULL
2601
NULL
7225
NULL
8281

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1531
SELECT ALL CAST( + col0 AS SIGNED ) * col1 AS col1 FROM tab2
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-1531
SELECT ALL CAST ( + col0 AS INTEGER ) * col1 AS col1 FROM tab2
----
2346
4928
5025

query I rowsort
SELECT col1 FROM tab0 WHERE - - 49 NOT BETWEEN NULL AND col0
----
81

query II rowsort
SELECT DISTINCT 85 * - + 69, col0 FROM tab1
----
-5865
51
-5865
85
-5865
91

query II rowsort
SELECT - col2 + 79 AS col0, + 40 FROM tab0
----
-20
40
32
40
69
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1535
SELECT ALL SUM( ALL col0 ) DIV - + ( ( - 68 ) ) FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-1535
SELECT ALL SUM ( ALL col0 ) / - + ( ( - 68 ) ) FROM tab0
----
2

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

query I rowsort
SELECT col1 * col2 * col0 + + 92 + - col1 * - col1 AS col2 FROM tab1
----
25192
293137
68832

onlyif mysql # aggregate syntax: 
query II rowsort label-1538
SELECT + MAX( + 60 ) * COUNT( * ) AS col0, - 74 AS col1 FROM tab1 WHERE col1 + col0 IS NULL
----
NULL
-74

skipif mysql # not compatible
query II rowsort label-1538
SELECT + MAX ( + 60 ) * COUNT ( * ) AS col0, - 74 AS col1 FROM tab1 WHERE col1 + col0 IS NULL
----
NULL
-74

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1540
SELECT + - MAX( ALL + CAST( NULL AS DECIMAL ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-1540
SELECT + - MAX ( ALL + CAST ( NULL AS REAL ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query I rowsort
SELECT col2 - - col0 + - + 10 - - col0 * - col2 * col0 + 18 AS col2 FROM tab2
----
-163728
-326109
-48591

onlyif mysql # aggregate syntax: 
query I rowsort label-1542
SELECT ALL + 10 * - MIN( ALL - col2 ) FROM tab0
----
990

skipif mysql # not compatible
query I rowsort label-1542
SELECT ALL + 10 * - MIN ( ALL - col2 ) FROM tab0
----
990

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

query I rowsort
SELECT + 49 * col1 AS col1 FROM tab2 AS cor0
----
2499
3283
3773

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 47 col1 FROM tab0 AS cor0 WHERE NOT ( - - col1 * 69 >= - 88 * - col2 + - ( + ( + + col0 ) ) + col2 )
----
-47

query I rowsort
SELECT ALL + + col0 * - 35 FROM tab0 AS cor0
----
-3045
-3395
-525

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

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

query II rowsort
SELECT - col2 AS col0, col1 * - + 92 AS col0 FROM tab2 WHERE NOT - 0 IS NULL
----
-23
-4692
-40
-7084
-58
-6164

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1549
SELECT + col2 + - - CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT NULL <= 62 * - + col2
----

skipif mysql # not compatible
query I rowsort label-1549
SELECT + col2 + - - CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT NULL <= 62 * - + col2
----

query I rowsort
SELECT - - 72 AS col1 FROM tab0 cor0
----
72
72
72

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) = - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 85 col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE + 30 IS NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1555
SELECT 30 + - 42 - 89 DIV + col1 FROM tab2 AS cor0
----
-13
-13
-13

skipif mysql # not compatible
query I rowsort label-1555
SELECT 30 + - 42 - 89 / + col1 FROM tab2 AS cor0
----
-13
-13
-13

query I rowsort
SELECT + col2 + + 15 AS col1 FROM tab0 AS cor0
----
114
25
62

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( - col0 * - col0, col0 * col0 + - - 25 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1560
SELECT ALL + 30 + COUNT( * ) * - + MIN( - col1 ) + + - ( - COUNT( * ) ) col0 FROM tab0 AS cor0
----
276

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1560
SELECT ALL + 30 + COUNT ( * ) * - + MIN ( - col1 ) + + - ( - COUNT ( * ) ) col0 FROM tab0 AS cor0
----
276

query I rowsort
SELECT DISTINCT + - col0 FROM tab2 AS cor0 WHERE NOT 8 >= + 89
----
-46
-64
-75

query I rowsort
SELECT + - 66 + + - col1 FROM tab2 AS cor0
----
-117
-133
-143

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

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

query I rowsort
SELECT DISTINCT - ( 97 ) FROM tab0 cor0
----
-97

query I rowsort
SELECT DISTINCT - 61 - col1 AS col2 FROM tab0
----
-142
-62
-82

query III rowsort
SELECT * FROM tab1 WHERE 61 = 72
----

query II rowsort
SELECT DISTINCT col2 AS col0, - 94 + + col2 FROM tab1
----
59
-35
68
-26
96
2

query I rowsort
SELECT DISTINCT - col1 + + - col1 + - + col0 AS col1 FROM tab0
----
-129
-177
-99

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1569
SELECT CAST( col0 AS SIGNED ) DIV + 90 * + col1 + + col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-1569
SELECT CAST ( col0 AS INTEGER ) / + 90 * + col1 + + col0 FROM tab2
----
46
64
75

query I rowsort
SELECT - + 26 * 18 * + + ( - col1 ) - - col2 AS col2 FROM tab1 AS cor0
----
22064
2399
6648

onlyif mysql # aggregate syntax: 
query I rowsort label-1571
SELECT + COUNT( * ) - - 73 * + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-216

skipif mysql # not compatible
query I rowsort label-1571
SELECT + COUNT ( * ) - - 73 * + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-216

query I rowsort
SELECT DISTINCT + col2 + col1 + + - ( - - 89 ) AS col1 FROM tab1 cor0
----
-25
21
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 42 col2 FROM tab0 AS cor0 WHERE NULL <> NULL
----

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

skipif mysql # not compatible
query I rowsort label-1574
SELECT - + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE 8 IS NULL
----
0

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

query I rowsort
SELECT DISTINCT + col0 * 50 + col0 FROM tab0 AS cor0
----
4437
4947
765

query I rowsort
SELECT DISTINCT col1 * - col0 * + col1 * - col1 FROM tab2 AS cor0
----
22557225
29218112
6101946

onlyif mysql # DIV for integer division: 
query I rowsort label-1578
SELECT + col0 DIV ( col2 ) + col0 FROM tab2 cor0
----
48
65
76

skipif mysql # not compatible
query I rowsort label-1578
SELECT + col0 / ( col2 ) + col0 FROM tab2 cor0
----
48
65
76

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

skipif mysql # not compatible
query I rowsort label-1579
SELECT DISTINCT 98 / + col1 FROM tab0 cor0
----
1
4
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1580
SELECT DISTINCT - - COUNT( DISTINCT 24 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1580
SELECT DISTINCT - - COUNT ( DISTINCT 24 ) FROM tab2 AS cor0
----
1

query II rowsort
SELECT ALL 33, - col1 AS col2 FROM tab0
----
33
-1
33
-21
33
-81

query II rowsort
SELECT ALL col1 AS col1, col2 + - + col2 AS col0 FROM tab2
----
51
0
67
0
77
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1584
SELECT DISTINCT ( COUNT( * ) ) * - 62 * + - 86 FROM tab0
----
15996

skipif mysql # not compatible
query I rowsort label-1584
SELECT DISTINCT ( COUNT ( * ) ) * - 62 * + - 86 FROM tab0
----
15996

onlyif mysql # aggregate syntax: 
query II rowsort label-1585
SELECT ALL 41 AS col2, ( + MAX( DISTINCT - col1 ) ) AS col0 FROM tab1
----
41
-5

skipif mysql # not compatible
query II rowsort label-1585
SELECT ALL 41 AS col2, ( + MAX ( DISTINCT - col1 ) ) AS col0 FROM tab1
----
41
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1586
SELECT ALL + SUM( - - col2 ) * - CAST( 15 AS SIGNED ) + + COUNT( * ) FROM tab2
----
-1812

skipif mysql # not compatible
query I rowsort label-1586
SELECT ALL + SUM ( - - col2 ) * - CAST ( 15 AS INTEGER ) + + COUNT ( * ) FROM tab2
----
-1812

query I rowsort
SELECT DISTINCT - + 1 FROM tab0 WHERE - 51 IS NOT NULL
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1588
SELECT COUNT( * ) AS col0, COUNT( * ) * - SUM( col1 ) FROM tab0
----
3
-309

skipif mysql # not compatible
query II rowsort label-1588
SELECT COUNT ( * ) AS col0, COUNT ( * ) * - SUM ( col1 ) FROM tab0
----
3
-309

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col2 ) + 71 col2 FROM tab0 cor0
----
118
170
81

query I rowsort
SELECT + col1 * 36 + + col2 AS col0 FROM tab1 AS cor0
----
1760
239
600

onlyif mysql # aggregate syntax: 
query I rowsort label-1591
SELECT DISTINCT - MIN( DISTINCT 15 ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-1591
SELECT DISTINCT - MIN ( DISTINCT 15 ) FROM tab0
----
-15

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

query I rowsort
SELECT ALL col2 * - 94 AS col2 FROM tab0 WHERE 9 IS NOT NULL
----
-4418
-9306
-940

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

query I rowsort
SELECT ALL + col0 + - 59 * 32 FROM tab0
----
-1791
-1801
-1873

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1597
SELECT - col2 DIV + col0 + col0 AS col0 FROM tab1
----
50
85
91

skipif mysql # not compatible
query I rowsort label-1597
SELECT - col2 / + col0 + col0 AS col0 FROM tab1
----
50
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1598
SELECT col2 * - 10 AS col1 FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) * 97 + 74 BETWEEN NULL AND + 80 + + 21
----

skipif mysql # not compatible
query I rowsort label-1598
SELECT col2 * - 10 AS col1 FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) * 97 + 74 BETWEEN NULL AND + 80 + + 21
----

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT - 71 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1601
SELECT DISTINCT MAX( col2 ) FROM tab1 WHERE NOT NULL <= + 86 + - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1601
SELECT DISTINCT MAX ( col2 ) FROM tab1 WHERE NOT NULL <= + 86 + - col1
----
NULL

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1606
SELECT ALL - 27 * + CAST ( COUNT ( * ) AS INTEGER ) FROM tab1
----
-81

query III rowsort
SELECT * FROM tab0 WHERE NOT 83 BETWEEN NULL AND col2
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1608
SELECT DISTINCT + 91 * COUNT( * ) FROM tab1
----
273

skipif mysql # not compatible
query I rowsort label-1608
SELECT DISTINCT + 91 * COUNT ( * ) FROM tab1
----
273

query III rowsort
SELECT * FROM tab2 WHERE ( ( 21 ) * col2 + 82 ) NOT BETWEEN col0 AND - col2 * + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1611
SELECT - COUNT( * ) DIV 90 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1611
SELECT - COUNT ( * ) / 90 FROM tab1
----
0

query I rowsort
SELECT col0 AS col2 FROM tab2 WHERE NULL <> col0 + + col2
----

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

query I rowsort
SELECT + col0 * - 86 AS col2 FROM tab1
----
-4386
-7310
-7826

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 * - col0 <> ( NULL )
----

query I rowsort
SELECT ALL 53 + col2 FROM tab1
----
112
121
149

query I rowsort
SELECT ALL - col1 + col2 * - 77 AS col0 FROM tab0
----
-3700
-7624
-791

onlyif mysql # DIV for integer division: 
query I rowsort label-1618
SELECT ALL col0 + + 89 DIV - col0 AS col1 FROM tab0
----
10
86
97

skipif mysql # not compatible
query I rowsort label-1618
SELECT ALL col0 + + 89 / - col0 AS col1 FROM tab0
----
10
86
97

query III rowsort
SELECT * FROM tab2 WHERE ( 40 * 24 ) IN ( ( - col2 ) )
----

query I rowsort
SELECT col0 * 41 AS col1 FROM tab0
----
3567
3977
615

onlyif mysql # aggregate syntax: 
query I rowsort label-1621
SELECT 50 * COUNT( * ) AS col1 FROM tab1
----
150

skipif mysql # not compatible
query I rowsort label-1621
SELECT 50 * COUNT ( * ) AS col1 FROM tab1
----
150

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1624
SELECT + COUNT( * ) * 93 FROM tab0 cor0
----
279

skipif mysql # not compatible
query I rowsort label-1624
SELECT + COUNT ( * ) * 93 FROM tab0 cor0
----
279

query I rowsort
SELECT + 13 * ( 9 ) FROM tab0 AS cor0
----
117
117
117

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 78 col0 FROM tab0 WHERE NOT ( NULL ) < NULL
----

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

skipif mysql # not compatible
query I rowsort label-1627
SELECT - COUNT ( 0 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + 41 FROM tab2 cor0 WHERE NOT col0 NOT IN ( - col0 / - 97 - 58 )
----

query I rowsort
SELECT - 4 * + 53 FROM tab2 AS cor0
----
-212
-212
-212

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

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

query I rowsort
SELECT col1 * ( - ( - col2 ) ) AS col2 FROM tab2 AS cor0
----
1173
3080
3886

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1634
SELECT ALL 62 * AVG ( - col1 * col1 ) - 36 * - MAX( - col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( CAST( NULL AS SIGNED ) ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1634
SELECT ALL 62 * AVG ( - col1 * col1 ) - 36 * - MAX ( - col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) ) IS NULL
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * + col2 < ( + 82 / + 56 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1637
SELECT - MIN( col0 ) / + 41 + - ( COUNT( * ) ) AS col1 FROM tab2 WHERE NOT NULL <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1637
SELECT - MIN ( col0 ) / + 41 + - ( COUNT ( * ) ) AS col1 FROM tab2 WHERE NOT NULL <> NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1638
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab2 WHERE NULL NOT IN ( - col2 * - ( col0 * + col2 ) )
----
0

skipif mysql # not compatible
query I rowsort label-1638
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab2 WHERE NULL NOT IN ( - col2 * - ( col0 * + col2 ) )
----
0

query I rowsort
SELECT DISTINCT - 94 * + col1 AS col0 FROM tab2
----
-4794
-6298
-7238

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

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

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

skipif mysql # not compatible
query I rowsort label-1642
SELECT col0 FROM tab1 WHERE NOT ( + col1 + col1 ) < + CAST ( NULL AS INTEGER )
----

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

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col0 FROM tab2 WHERE NOT ( NOT 96 IS NOT NULL )
----
51
67
77

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

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

query I rowsort
SELECT 87 / 24 AS col1 FROM tab1 AS cor0 WHERE - 79 + 14 * col1 IN ( - col0 * - col1 )
----

query I rowsort
SELECT DISTINCT 55 * - col1 AS col1 FROM tab2 AS cor0 WHERE ( col1 ) IS NOT NULL
----
-2805
-3685
-4235

query I rowsort
SELECT - col0 * - 61 + - col0 - 6 FROM tab1 AS cor0
----
3054
5094
5454

query I rowsort
SELECT DISTINCT + col1 * + 59 * ( + col1 ) + + col2 FROM tab2 cor0
----
153482
264909
349851

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

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

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

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

query I rowsort
SELECT - ( 95 ) * ( + col2 ) AS col1 FROM tab2 AS cor0
----
-2185
-3800
-5510

query I rowsort
SELECT DISTINCT col2 - + 98 FROM tab0 AS cor0
----
-51
-88
1

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1661
SELECT + col0 FROM tab1 WHERE col2 + + + CAST( - ( CAST( NULL AS SIGNED ) ) AS SIGNED ) + 97 * + col1 BETWEEN + col1 + col2 * col2 AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-1661
SELECT + col0 FROM tab1 WHERE col2 + + + CAST ( - ( CAST ( NULL AS INTEGER ) ) AS INTEGER ) + 97 * + col1 BETWEEN + col1 + col2 * col2 AND ( NULL )
----

query I rowsort
SELECT col2 + 50 AS col2 FROM tab1 WHERE - - col2 IS NOT NULL
----
109
118
146

query I rowsort
SELECT - col1 - + 79 + - col2 FROM tab0
----
-110
-179
-207

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1665
SELECT DISTINCT + MIN( + col2 ) * COUNT( * ) AS col0 FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-1665
SELECT DISTINCT + MIN ( + col2 ) * COUNT ( * ) AS col0 FROM tab2
----
69

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

skipif mysql # not compatible
query I rowsort label-1666
SELECT ALL - 21 + + + CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-18

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

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

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

query I rowsort
SELECT + 95 * + 39 FROM tab2
----
3705
3705
3705

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col1 col0, - col1 FROM tab2 cor0
----
51
-51
67
-67
77
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1672
SELECT DISTINCT + col1 * + 58 * + + ( - col0 ) + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1672
SELECT DISTINCT + col1 * + 58 * + + ( - col0 ) + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1673
SELECT + COUNT( * ) * ( + 20 ) * - 19 FROM tab2 AS cor0
----
-1140

skipif mysql # not compatible
query I rowsort label-1673
SELECT + COUNT ( * ) * ( + 20 ) * - 19 FROM tab2 AS cor0
----
-1140

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( - - col0 ) col0 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1675
SELECT - col2 * 8 FROM tab0 AS cor0 WHERE NOT - col1 + - col1 + CAST( 81 AS SIGNED ) * col2 NOT BETWEEN + col0 * - col2 AND col0
----

skipif mysql # not compatible
query I rowsort label-1675
SELECT - col2 * 8 FROM tab0 AS cor0 WHERE NOT - col1 + - col1 + CAST ( 81 AS INTEGER ) * col2 NOT BETWEEN + col0 * - col2 AND col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1676
SELECT ( + col1 ) DIV ( + ( - - col1 ) ) + + col0 * + col0 FROM tab2 AS cor0
----
2117
4097
5626

skipif mysql # not compatible
query I rowsort label-1676
SELECT ( + col1 ) / ( + ( - - col1 ) ) + + col0 * + col0 FROM tab2 AS cor0
----
2117
4097
5626

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1678
SELECT COUNT( * ) FROM tab1 WHERE NOT + + ( col1 ) NOT BETWEEN ( + CAST( - + 54 AS SIGNED ) + col1 * ( + col1 ) ) AND col2
----
1

skipif mysql # not compatible
query I rowsort label-1678
SELECT COUNT ( * ) FROM tab1 WHERE NOT + + ( col1 ) NOT BETWEEN ( + CAST ( - + 54 AS INTEGER ) + col1 * ( + col1 ) ) AND col2
----
1

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

skipif mysql # not compatible
query I rowsort label-1679
SELECT DISTINCT - COUNT ( DISTINCT - col0 ) FROM tab1 WHERE NOT + col2 + - - col2 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1680
SELECT ALL - 83 * MAX( + - col0 ) * + COUNT( ALL + col2 ) AS col0 FROM tab0
----
3735

skipif mysql # not compatible
query I rowsort label-1680
SELECT ALL - 83 * MAX ( + - col0 ) * + COUNT ( ALL + col2 ) AS col0 FROM tab0
----
3735

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1681
SELECT MIN( ALL - - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1681
SELECT MIN ( ALL - - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

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

query IIIIII rowsort
SELECT ALL * FROM tab0, tab1 cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1684
SELECT ALL + 72 DIV col2 + col1 + col1 FROM tab1
----
11
28
95

skipif mysql # not compatible
query I rowsort label-1684
SELECT ALL + 72 / col2 + col1 + col1 FROM tab1
----
11
28
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col2 * + col1 * + col2 col1 FROM tab0 AS cor0
----
178848
2079
9800

query I rowsort
SELECT + - col0 + + col1 + - 22 * 44 FROM tab0 AS cor0
----
-1034
-1064
-902

onlyif mysql # aggregate syntax: 
query I rowsort label-1687
SELECT DISTINCT MAX( ALL - - col2 ) + + - COUNT( * ) FROM tab2 cor0
----
55

skipif mysql # not compatible
query I rowsort label-1687
SELECT DISTINCT MAX ( ALL - - col2 ) + + - COUNT ( * ) FROM tab2 cor0
----
55

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1689
SELECT + 60 * - - CAST( NULL AS SIGNED ) / + SUM( + + 67 ) + - + 34 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1689
SELECT + 60 * - - CAST ( NULL AS INTEGER ) / + SUM ( + + 67 ) + - + 34 AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1690
SELECT ALL * FROM tab2 WHERE NOT - + 45 * + 39 * + - col2 + col0 / + 92 = CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1690
SELECT ALL * FROM tab2 WHERE NOT - + 45 * + 39 * + - col2 + col0 / + 92 = CAST ( NULL AS INTEGER )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1692
SELECT ALL + col1 * - col2 DIV + - col2 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-1692
SELECT ALL + col1 * - col2 / + - col2 FROM tab1
----
14
47
5

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1694
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE col0 IN ( + + 52 )
----
0

skipif mysql # not compatible
query I rowsort label-1694
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE col0 IN ( + + 52 )
----
0

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1698
SELECT DISTINCT - - 25 / col1 FROM tab0 AS cor0
----
0
1
25

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1700
SELECT + COUNT( * ) + - 22 col0 FROM tab2
----
-19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1700
SELECT + COUNT ( * ) + - 22 col0 FROM tab2
----
-19

query I rowsort
SELECT DISTINCT - col2 - 89 FROM tab0
----
-136
-188
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1702
SELECT - - COUNT( + + col1 ) FROM tab0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-1702
SELECT - - COUNT ( + + col1 ) FROM tab0 WHERE NULL IS NULL
----
3

query I rowsort
SELECT DISTINCT + col1 - + - 53 FROM tab1
----
100
58
67

query I rowsort
SELECT DISTINCT 71 FROM tab0 WHERE NOT NULL <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1, + 91 col0 FROM tab0
----
1
91
21
91
81
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1706
SELECT + 73 DIV - MAX( + col2 ) AS col1 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-1706
SELECT + 73 / - MAX ( + col2 ) AS col1 FROM tab2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1707
SELECT ALL CAST( NULL AS SIGNED ) AS col1, + col0 + - - col2 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1707
SELECT ALL CAST ( NULL AS INTEGER ) AS col1, + col0 + - - col2 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1708
SELECT DISTINCT COUNT( DISTINCT + 12 ) AS col1 FROM tab1 cor0 WHERE NOT col1 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-1708
SELECT DISTINCT COUNT ( DISTINCT + 12 ) AS col1 FROM tab1 cor0 WHERE NOT col1 <> NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1709
SELECT + - col1 DIV + ( + 30 ) + col1 FROM tab1 cor0
----
14
46
5

skipif mysql # not compatible
query I rowsort label-1709
SELECT + - col1 / + ( + 30 ) + col1 FROM tab1 cor0
----
14
46
5

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <> - col1 * col2
----

query II rowsort
SELECT col2 * - + col0 * - col1, col0 FROM tab0 AS cor0
----
18270
87
57105
15
9603
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1712
SELECT 37 * CAST( col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
2183
2516
3552

skipif mysql # not compatible
query I rowsort label-1712
SELECT 37 * CAST ( col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
2183
2516
3552

query I rowsort
SELECT DISTINCT - - col2 + - ( col2 ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 + + 23 AS col1 FROM tab0 AS cor0 WHERE NOT NULL <= 1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1716
SELECT + 35 + - MIN( + - col1 ) FROM tab2 AS cor0
----
112

skipif mysql # not compatible
query I rowsort label-1716
SELECT + 35 + - MIN ( + - col1 ) FROM tab2 AS cor0
----
112

query I rowsort
SELECT DISTINCT 57 * - + 17 FROM tab2
----
-969

query II rowsort
SELECT - 45 * + col0 * 21, col1 FROM tab2
----
-43470
51
-60480
77
-70875
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1719
SELECT + col1 * + CAST( NULL AS SIGNED ) * - 69 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1719
SELECT + col1 * + CAST ( NULL AS INTEGER ) * - 69 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1720
SELECT DISTINCT - 16 + + 69 * - COUNT( ALL 39 ) FROM tab2
----
-223

skipif mysql # not compatible
query I rowsort label-1720
SELECT DISTINCT - 16 + + 69 * - COUNT ( ALL 39 ) FROM tab2
----
-223

query I rowsort
SELECT DISTINCT - col1 + + + col2 * + 33 + - col1 AS col0 FROM tab2 cor0
----
1166
1780
657

onlyif mysql # DIV for integer division: 
query I rowsort label-1722
SELECT + col2 DIV 94 + + col1 * + + col0 AS col2 FROM tab1
----
425
4277
715

skipif mysql # not compatible
query I rowsort label-1722
SELECT + col2 / 94 + + col1 * + + col0 AS col2 FROM tab1
----
425
4277
715

query I rowsort
SELECT ALL - col2 FROM tab2 AS cor0 WHERE NOT + col2 NOT BETWEEN - - 95 AND NULL
----

query I rowsort
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE col2 NOT BETWEEN + 6 AND - 79
----
10
47
99

query I rowsort
SELECT ALL 27 + - - 89 AS col2 FROM tab0 AS cor0
----
116
116
116

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - col0 = col2 )
----

query II rowsort
SELECT DISTINCT ( + col0 ) AS col2, col1 FROM tab1
----
51
14
85
5
91
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1728
SELECT DISTINCT - 83 * + MIN( ALL - col0 ) AS col0 FROM tab1
----
7553

skipif mysql # not compatible
query I rowsort label-1728
SELECT DISTINCT - 83 * + MIN ( ALL - col0 ) AS col0 FROM tab1
----
7553

onlyif mysql # aggregate syntax: 
query I rowsort label-1729
SELECT ALL COUNT( * ) * - MIN( ALL + col2 ) FROM tab1
----
-177

skipif mysql # not compatible
query I rowsort label-1729
SELECT ALL COUNT ( * ) * - MIN ( ALL + col2 ) FROM tab1
----
-177

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - col1 + - + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1731
SELECT ALL - + CAST( ( + - col2 ) AS SIGNED ) FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-1731
SELECT ALL - + CAST ( ( + - col2 ) AS INTEGER ) FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1732
SELECT - - MIN( ALL - + col2 ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-1732
SELECT - - MIN ( ALL - + col2 ) FROM tab0 AS cor0
----
-99

query I rowsort
SELECT 40 * + - col2 FROM tab0 cor0
----
-1880
-3960
-400

onlyif mysql # aggregate syntax: 
query I rowsort label-1734
SELECT SUM( + 5 ) AS col0 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-1734
SELECT SUM ( + 5 ) AS col0 FROM tab0
----
15

query I rowsort
SELECT DISTINCT - 4 * - col1 + - ( - col1 ) FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 > 67
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT 86, - ( - 87 ) AS col1 FROM tab0
----
86
87

query I rowsort
SELECT DISTINCT + + ( + + 55 ) AS col1 FROM tab2 AS cor0
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-1739
SELECT DISTINCT - 17 + + 50 * + COUNT( * ) AS col0, COUNT( * ) FROM tab1 AS cor0
----
133
3

skipif mysql # not compatible
query II rowsort label-1739
SELECT DISTINCT - 17 + + 50 * + COUNT ( * ) AS col0, COUNT ( * ) FROM tab1 AS cor0
----
133
3

query I rowsort
SELECT DISTINCT + + ( + 5 ) FROM tab2 cor0
----
5

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 70 - + 77 + + + col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1742
SELECT DISTINCT - + COUNT( col0 ) AS col2 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1742
SELECT DISTINCT - + COUNT ( col0 ) AS col2 FROM tab2 cor0
----
-3

query I rowsort
SELECT ALL col0 + + + col1 FROM tab0 cor0
----
108
96
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 4 * col2 col2 FROM tab1 AS cor0
----
-236
-272
-384

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 + - ( + 92 ) / - + col0 IN ( + - col1 + - col0, - 74 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1746
SELECT - MIN( DISTINCT + - col0 ), 83 AS col2 FROM tab1
----
91
83

skipif mysql # not compatible
query II rowsort label-1746
SELECT - MIN ( DISTINCT + - col0 ), 83 AS col2 FROM tab1
----
91
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1747
SELECT CAST( NULL AS SIGNED ) * COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1747
SELECT CAST ( NULL AS INTEGER ) * COUNT ( * ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE NOT - - col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 BETWEEN - - col0 AND - + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1750
SELECT DISTINCT SUM( + + col2 ) AS col1 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-1750
SELECT DISTINCT SUM ( + + col2 ) AS col1 FROM tab2
----
121

query II rowsort
SELECT col2 + + - col0 AS col1, + 32 FROM tab2
----
-17
32
-23
32
-24
32

onlyif mysql # aggregate syntax: 
query I rowsort label-1752
SELECT + COUNT( DISTINCT col2 ) FROM tab2 WHERE NULL >= ( - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-1752
SELECT + COUNT ( DISTINCT col2 ) FROM tab2 WHERE NULL >= ( - col0 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1753
SELECT COUNT( * ) DIV - 42 * - 7 + + COUNT( * ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1753
SELECT COUNT ( * ) / - 42 * - 7 + + COUNT ( * ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1754
SELECT DISTINCT - - COUNT( DISTINCT + col0 ) FROM tab2 WHERE col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1754
SELECT DISTINCT - - COUNT ( DISTINCT + col0 ) FROM tab2 WHERE col2 IS NULL
----
0

query I rowsort
SELECT col1 + - col0 * - col0 AS col2 FROM tab2 cor0
----
2167
4173
5692

query I rowsort
SELECT + + ( - ( col1 ) ) - + 3 AS col0 FROM tab1 AS cor0
----
-17
-50
-8

query I rowsort
SELECT 69 * + - col0 - + col1 AS col1 FROM tab0 cor0
----
-1116
-6024
-6694

query I rowsort
SELECT DISTINCT + 5 AS col0 FROM tab0 AS cor0 WHERE NOT NULL > 41 + + 89 - + - 14
----

query I rowsort
SELECT 96 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
96
96
96

query I rowsort
SELECT - col0 + col1 + + - col1 * + 12 FROM tab1 AS cor0
----
-140
-205
-608

query I rowsort
SELECT ALL - + 61 * + + 21 - - - 14 - 21 AS col0 FROM tab0 AS cor0
----
-1316
-1316
-1316

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1762
SELECT ALL - CAST( NULL AS SIGNED ) * col1 FROM tab1 AS cor0 WHERE - 52 > NULL
----

skipif mysql # not compatible
query I rowsort label-1762
SELECT ALL - CAST ( NULL AS INTEGER ) * col1 FROM tab1 AS cor0 WHERE - 52 > NULL
----

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT + col2 * + col2 IS NULL
----
23
40
58

query I rowsort
SELECT DISTINCT 86 * - ( - - 61 ) + - - 79 AS col1 FROM tab2 AS cor0
----
-5167

onlyif mysql # aggregate syntax: 
query I rowsort label-1765
SELECT + SUM( + + 78 ) AS col1 FROM tab0 AS cor0
----
234

skipif mysql # not compatible
query I rowsort label-1765
SELECT + SUM ( + + 78 ) AS col1 FROM tab0 AS cor0
----
234

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 96 col2 FROM tab1 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-1767
SELECT + + SUM( ALL col1 ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-1767
SELECT + + SUM ( ALL col1 ) FROM tab2 AS cor0
----
195

query II rowsort
SELECT ALL - col0 AS col1, - 36 AS col1 FROM tab0
----
-15
-36
-87
-36
-97
-36

query I rowsort
SELECT ALL col0 AS col2 FROM tab2 WHERE + 49 * - col1 + - + col0 * - + 82 IN ( - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 13, 75 col2 FROM tab1
----
13
75

query II rowsort
SELECT ALL 87 AS col0, 39 FROM tab1
----
87
39
87
39
87
39

query II rowsort
SELECT ALL + col1 AS col1, col0 AS col2 FROM tab1
----
14
51
47
91
5
85

query I rowsort
SELECT ALL - ( - col0 ) * + + col0 FROM tab2
----
2116
4096
5625

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 * + + 30 col1, col1 AS col1 FROM tab0
----
2610
21
2910
1
450
81

query I rowsort
SELECT ALL 65 * - - col2 AS col0 FROM tab0 AS cor0
----
3055
6435
650

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( ( ( NULL ) IS NOT NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 93 * + - 74 FROM tab0
----
6882
6882
6882

onlyif mysql # aggregate syntax: 
query I rowsort label-1778
SELECT ALL + COUNT( - 25 ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-1778
SELECT ALL + COUNT ( - 25 ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
9

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - 17 IN ( - 44 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1780
SELECT ALL + 50 * + - SUM( col2 ) FROM tab0
----
-7800

skipif mysql # not compatible
query I rowsort label-1780
SELECT ALL + 50 * + - SUM ( col2 ) FROM tab0
----
-7800

query I rowsort
SELECT + + col0 + - col0 * col0 FROM tab2 AS cor0
----
-2070
-4032
-5550

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1782
SELECT - 72 AS col1, - MAX( ALL CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----
-72
NULL

skipif mysql # not compatible
query II rowsort label-1782
SELECT - 72 AS col1, - MAX ( ALL CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----
-72
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1783
SELECT ALL - col1 + col1 AS col2, CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
0
NULL
0
NULL
0
NULL

skipif mysql # not compatible
query II rowsort label-1783
SELECT ALL - col1 + col1 AS col2, CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
0
NULL
0
NULL
0
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1784
SELECT + SUM( - CAST( NULL AS SIGNED ) ) + - COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1784
SELECT + SUM ( - CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT - 95 + + + col0 AS col1, col0 FROM tab2 AS cor0
----
-20
75
-31
64
-49
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1786
SELECT ALL COUNT( * ) FROM tab2 cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-1786
SELECT ALL COUNT ( * ) FROM tab2 cor0 WHERE NULL IS NULL
----
3

query I rowsort
SELECT + 86 + + col2 + - col1 + - col1 * col1 * + - col2 FROM tab0 AS cor0
----
283
308419
4485

query I rowsort
SELECT ALL 96 + + 5 FROM tab0 AS cor0
----
101
101
101

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 89 <> 52 + 64
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1790
SELECT col0 * + - 58 / col2 * + + ( - 15 ) * - - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1790
SELECT col0 * + - 58 / col2 * + + ( - 15 ) * - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1791
SELECT DISTINCT MAX( - 86 ) FROM tab2
----
-86

skipif mysql # not compatible
query I rowsort label-1791
SELECT DISTINCT MAX ( - 86 ) FROM tab2
----
-86

query II rowsort
SELECT DISTINCT 4 * + col0 + 78, col0 FROM tab1
----
282
51
418
85
442
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1793
SELECT - 71 * + 16 - + COUNT( * ) * - 59 AS col0 FROM tab2 cor0
----
-959

skipif mysql # not compatible
query I rowsort label-1793
SELECT - 71 * + 16 - + COUNT ( * ) * - 59 AS col0 FROM tab2 cor0
----
-959

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT IN ( - ( - + col1 ), ( col1 ) + - - 90 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1795
SELECT - 24 DIV - 3 + col0 FROM tab0
----
105
23
95

skipif mysql # not compatible
query I rowsort label-1795
SELECT - 24 / - 3 + col0 FROM tab0
----
105
23
95

query I rowsort
SELECT DISTINCT - + 81 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-81

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 65 * 72 BETWEEN + col2 AND 63 * - + 44 * - - col0
----

query I rowsort
SELECT + 77 * + + col2 FROM tab1 cor0
----
4543
5236
7392

onlyif mysql # aggregate syntax: 
query I rowsort label-1799
SELECT ALL COUNT( * ) * + 82 AS col1 FROM tab1 cor0
----
246

skipif mysql # not compatible
query I rowsort label-1799
SELECT ALL COUNT ( * ) * + 82 AS col1 FROM tab1 cor0
----
246

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) >= + col0 + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1801
SELECT CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT col0 - - ( col0 ) * + col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1801
SELECT CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT col0 - - ( col0 ) * + col1 IS NOT NULL
----

query I rowsort
SELECT - - ( 31 ) FROM tab2 AS cor0
----
31
31
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1803
SELECT DISTINCT - SUM( + 24 ) AS col0 FROM tab0
----
-72

skipif mysql # not compatible
query I rowsort label-1803
SELECT DISTINCT - SUM ( + 24 ) AS col0 FROM tab0
----
-72

query III rowsort
SELECT ALL - col2, col0 * + col1 AS col2, - 74 AS col1 FROM tab1
----
9 values hashing to 9b7d19eaebfba238ee289e66fb2b01f3

query I rowsort
SELECT ( + + 59 ) FROM tab1
----
59
59
59

query II rowsort
SELECT 92, + col1 FROM tab0
----
92
1
92
21
92
81

query II rowsort
SELECT + 79 AS col1, 87 + - 18 AS col1 FROM tab1
----
79
69
79
69
79
69

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col2 * col1 + - col0 + - - 64 / + col1 / - - col2 ) <= NULL
----

query I rowsort
SELECT DISTINCT col2 * - + col1 AS col0 FROM tab1
----
-1344
-295
-3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1810
SELECT ( CAST( + col2 AS SIGNED ) ) FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-1810
SELECT ( CAST ( + col2 AS INTEGER ) ) FROM tab2
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1811
SELECT DISTINCT 43 * + COUNT( * ) AS col1 FROM tab2
----
129

skipif mysql # not compatible
query I rowsort label-1811
SELECT DISTINCT 43 * + COUNT ( * ) AS col1 FROM tab2
----
129

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col1, - col0 FROM tab1
----
51
-51
85
-85
91
-91

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - ( + ( + ( + col0 ) ) ) ) NOT BETWEEN col2 AND col1 + + col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 * - + col1 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 95 * + - col1 col2 FROM tab1 AS cor0 WHERE NOT col0 * ( + - 11 ) + col1 NOT IN ( col1 )
----

query I rowsort
SELECT col2 * - ( col0 ) + + col2 FROM tab2 AS cor0
----
-1035
-2520
-4292

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1817
SELECT * FROM tab0 AS cor0 WHERE NOT col1 + - CAST( 55 AS DECIMAL ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-1817
SELECT * FROM tab0 AS cor0 WHERE NOT col1 + - CAST ( 55 AS REAL ) >= NULL
----

query I rowsort
SELECT ALL + col0 * - 77 AS col0 FROM tab0
----
-1155
-6699
-7469

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col1, col0 * - - 90 FROM tab0
----
15
1350
87
7830
97
8730

query I rowsort
SELECT DISTINCT col2 + - - col1 * col0 FROM tab0 AS cor0
----
1262
1837
196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1821
SELECT ALL - col1 + - CAST( NULL AS SIGNED ) - + ( + col1 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1821
SELECT ALL - col1 + - CAST ( NULL AS INTEGER ) - + ( + col1 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - col1 AS col1, - col1 * + col2 AS col2 FROM tab1 AS cor0
----
-14
-1344
-47
-3196
-5
-295

onlyif mysql # DIV for integer division: 
query I rowsort label-1823
SELECT DISTINCT - - col1 DIV ( - col2 ) - 68 FROM tab1 AS cor0 WHERE 35 + col2 IS NOT NULL
----
-68

skipif mysql # not compatible
query I rowsort label-1823
SELECT DISTINCT - - col1 / ( - col2 ) - 68 FROM tab1 AS cor0 WHERE 35 + col2 IS NOT NULL
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-1824
SELECT DISTINCT COUNT( * ) + - 97 FROM tab1 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-1824
SELECT DISTINCT COUNT ( * ) + - 97 FROM tab1 AS cor0
----
-94

query I rowsort
SELECT + - col1 + + + col2 FROM tab0 cor0
----
-11
-34
98

query I rowsort
SELECT DISTINCT - 95 + + + col1 FROM tab1 AS cor0
----
-48
-81
-90

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - col2 * - col0 ) <= col1 AND NULL IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1828
SELECT ALL 75 DIV - MAX( - ( col0 ) ) AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-1828
SELECT ALL 75 / - MAX ( - ( col0 ) ) AS col0 FROM tab2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1829
SELECT CAST( NULL AS SIGNED ) / col1 + - - col2 col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1829
SELECT CAST ( NULL AS INTEGER ) / col1 + - - col2 col0 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 66 col1 FROM tab1
----
66

query I rowsort
SELECT ALL + + col2 * 34 + col1 + - 19 FROM tab1 AS cor0
----
1992
2340
3259

onlyif mysql # aggregate syntax: 
query I rowsort label-1832
SELECT DISTINCT + MAX( DISTINCT + 35 ) FROM tab0 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-1832
SELECT DISTINCT + MAX ( DISTINCT + 35 ) FROM tab0 AS cor0
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1833
SELECT COUNT( - 62 ) FROM tab2 AS cor0 WHERE NOT CAST( - 10 AS SIGNED ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-1833
SELECT COUNT ( - 62 ) FROM tab2 AS cor0 WHERE NOT CAST ( - 10 AS INTEGER ) IS NULL
----
3

query I rowsort
SELECT + + col2 * - + 12 - col1 FROM tab0 AS cor0
----
-1189
-141
-645

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1835
SELECT - col0 * - CAST( NULL AS SIGNED ) * + col2 AS col1, - col0 AS col1 FROM tab1 AS cor0
----
NULL
-51
NULL
-85
NULL
-91

skipif mysql # not compatible
query II rowsort label-1835
SELECT - col0 * - CAST ( NULL AS INTEGER ) * + col2 AS col1, - col0 AS col1 FROM tab1 AS cor0
----
NULL
-51
NULL
-85
NULL
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-1836
SELECT ALL + COUNT( - col2 ) col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1836
SELECT ALL + COUNT ( - col2 ) col1 FROM tab0 AS cor0
----
3

query II rowsort
SELECT ALL + - col0 AS col2, - col1 FROM tab0 AS cor0
----
-15
-81
-87
-21
-97
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1838
SELECT ALL + MAX( DISTINCT + - 0 ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1838
SELECT ALL + MAX ( DISTINCT + - 0 ) AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - ( + - 18 ) AS col1 FROM tab1 AS cor0
----
18
18
18

onlyif mysql # aggregate syntax: 
query II rowsort label-1840
SELECT + SUM( + 63 ) AS col2, - 48 FROM tab0
----
189
-48

skipif mysql # not compatible
query II rowsort label-1840
SELECT + SUM ( + 63 ) AS col2, - 48 FROM tab0
----
189
-48

query I rowsort
SELECT col1 AS col2 FROM tab1 WHERE NOT + - col1 IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1842
SELECT DISTINCT MIN( - col2 ) DIV COUNT( * ) + + ( 22 ) FROM tab0 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-1842
SELECT DISTINCT MIN ( - col2 ) / COUNT ( * ) + + ( 22 ) FROM tab0 AS cor0
----
-11

query I rowsort
SELECT DISTINCT col2 * 78 + col1 FROM tab0 AS cor0
----
3747
7723
801

onlyif mysql # aggregate syntax: 
query I rowsort label-1844
SELECT + 81 * + SUM( ALL + ( col1 ) ) - + SUM( DISTINCT - 69 ) AS col1 FROM tab2 AS cor0
----
15864

skipif mysql # not compatible
query I rowsort label-1844
SELECT + 81 * + SUM ( ALL + ( col1 ) ) - + SUM ( DISTINCT - 69 ) AS col1 FROM tab2 AS cor0
----
15864

query I rowsort
SELECT DISTINCT 39 * - 34 AS col1 FROM tab2
----
-1326

query I rowsort
SELECT - 52 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9500afe5646d620d5e8943351a29d082

query I rowsort
SELECT + col1 * + 73 + - - col0 * + col0 AS col2 FROM tab0
----
6138
9102
9482

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1848
SELECT ALL - CAST( - CAST( 66 AS SIGNED ) AS SIGNED ) DIV - col2 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1848
SELECT ALL - CAST ( - CAST ( 66 AS INTEGER ) AS INTEGER ) / - col2 FROM tab1
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1849
SELECT 55 + + MAX( col1 ) AS col1 FROM tab0 AS cor0
----
136

skipif mysql # not compatible
query I rowsort label-1849
SELECT 55 + + MAX ( col1 ) AS col1 FROM tab0 AS cor0
----
136

query I rowsort
SELECT ALL + 41 + - 59 FROM tab1 AS cor0
----
-18
-18
-18

query I rowsort
SELECT col1 + + + col2 AS col2 FROM tab1 AS cor0
----
110
115
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1852
SELECT ALL CAST( NULL AS SIGNED ) + - col2 + 42 / - - col2 * - 98 * - 39 AS col0 FROM tab0 AS cor0 WHERE col1 = - col0 * ( + - 98 )
----

skipif mysql # not compatible
query I rowsort label-1852
SELECT ALL CAST ( NULL AS INTEGER ) + - col2 + 42 / - - col2 * - 98 * - 39 AS col0 FROM tab0 AS cor0 WHERE col1 = - col0 * ( + - 98 )
----

query I rowsort
SELECT col2 + 29 AS col1 FROM tab0 cor0
----
128
39
76

query I rowsort
SELECT ALL - - col2 * + - col2 * col1 + 48 * 42 FROM tab0 AS cor0
----
-176913
-7785
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-1855
SELECT DISTINCT - MAX( DISTINCT - col1 ) * - 87 AS col0 FROM tab2 AS cor0
----
-4437

skipif mysql # not compatible
query I rowsort label-1855
SELECT DISTINCT - MAX ( DISTINCT - col1 ) * - 87 AS col0 FROM tab2 AS cor0
----
-4437

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1856
SELECT DISTINCT * FROM tab1 WHERE col2 NOT BETWEEN NULL AND - CAST( ( + col2 ) AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1856
SELECT DISTINCT * FROM tab1 WHERE col2 NOT BETWEEN NULL AND - CAST ( ( + col2 ) AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1857
SELECT ALL 72 - + COUNT( * ) FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-1857
SELECT ALL 72 - + COUNT ( * ) FROM tab1
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1858
SELECT + col0 * + CAST( + col0 AS SIGNED ) AS col0 FROM tab2
----
2116
4096
5625

skipif mysql # not compatible
query I rowsort label-1858
SELECT + col0 * + CAST ( + col0 AS INTEGER ) AS col0 FROM tab2
----
2116
4096
5625

onlyif mysql # DIV for integer division: 
query II rowsort label-1859
SELECT col2 AS col1, 8 DIV - 70 FROM tab1
----
59
0
68
0
96
0

skipif mysql # not compatible
query II rowsort label-1859
SELECT col2 AS col1, 8 / - 70 FROM tab1
----
59
0
68
0
96
0

query I rowsort
SELECT + col2 * + col0 - - + 3 + - + ( + + col0 ) * - + 40 FROM tab1
----
6939
8418
9831

query II rowsort
SELECT DISTINCT + 60, col2 FROM tab1
----
60
59
60
68
60
96

query II rowsort
SELECT - 97 + col0, col2 FROM tab1 AS cor0
----
-12
59
-46
96
-6
68

onlyif mysql # DIV for integer division: 
query I rowsort label-1863
SELECT DISTINCT col1 DIV + - col2 AS col1 FROM tab2
----
-1
-2

skipif mysql # not compatible
query I rowsort label-1863
SELECT DISTINCT col1 / + - col2 AS col1 FROM tab2
----
-1
-2

query I rowsort
SELECT DISTINCT + 8 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1865
SELECT + COUNT( * ) * + 35 + - MIN( ALL + col2 ) FROM tab1 cor0
----
46

skipif mysql # not compatible
query I rowsort label-1865
SELECT + COUNT ( * ) * + 35 + - MIN ( ALL + col2 ) FROM tab1 cor0
----
46

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( - 72, + ( col2 ), + - col2 )
----

query I rowsort
SELECT - 74 / - col0 FROM tab1 AS cor0 WHERE NOT NULL >= col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - ( - col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 12 * 97 * - 79 + + + col1 * - 29 + + + 14 + + 98 * - + col0 + + + col0 + 56 col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1870
SELECT DISTINCT MIN( col1 ) col0 FROM tab2
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1870
SELECT DISTINCT MIN ( col1 ) col0 FROM tab2
----
51

query III rowsort
SELECT * FROM tab1 WHERE NOT 75 - + 98 IS NOT NULL
----

query I rowsort
SELECT ALL 63 * - 55 FROM tab0
----
-3465
-3465
-3465

onlyif mysql # aggregate syntax: 
query II rowsort label-1873
SELECT 8 * 73 * - + COUNT( * ), + COUNT( + col0 ) AS col2 FROM tab1
----
-1752
3

skipif mysql # not compatible
query II rowsort label-1873
SELECT 8 * 73 * - + COUNT ( * ), + COUNT ( + col0 ) AS col2 FROM tab1
----
-1752
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1874
SELECT col2 * - CAST( NULL AS SIGNED ) / col1 * - 39 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1874
SELECT col2 * - CAST ( NULL AS INTEGER ) / col1 * - 39 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1875
SELECT - MIN( - - 63 ) FROM tab0
----
-63

skipif mysql # not compatible
query I rowsort label-1875
SELECT - MIN ( - - 63 ) FROM tab0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-1876
SELECT ALL COUNT( ALL ( + 45 ) ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1876
SELECT ALL COUNT ( ALL ( + 45 ) ) AS col1 FROM tab1
----
3

query I rowsort
SELECT DISTINCT col1 * + 74 * - + col2 FROM tab2
----
-227920
-287564
-86802

onlyif mysql # aggregate syntax: 
query I rowsort label-1878
SELECT ALL + MIN( DISTINCT + - col2 ) AS col0 FROM tab0 WHERE NULL IS NULL
----
-99

skipif mysql # not compatible
query I rowsort label-1878
SELECT ALL + MIN ( DISTINCT + - col2 ) AS col0 FROM tab0 WHERE NULL IS NULL
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1879
SELECT + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1879
SELECT + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + 44 * - 50 FROM tab1
----
-2200
-2200
-2200

query II rowsort
SELECT ALL - - col0, 74 AS col1 FROM tab2 AS cor0
----
46
74
64
74
75
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1882
SELECT 21 + SUM( DISTINCT - 25 ) FROM tab2 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-1882
SELECT 21 + SUM ( DISTINCT - 25 ) FROM tab2 AS cor0
----
-4

query I rowsort
SELECT - 35 * - - 26 * - col2 FROM tab2
----
20930
36400
52780

onlyif mysql # aggregate syntax: 
query I rowsort label-1884
SELECT ALL - + MAX( ALL + col2 ) FROM tab1 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-1884
SELECT ALL - + MAX ( ALL + col2 ) FROM tab1 cor0
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1885
SELECT - CAST( NULL AS SIGNED ) - - SUM( DISTINCT col1 ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1885
SELECT - CAST ( NULL AS INTEGER ) - - SUM ( DISTINCT col1 ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1886
SELECT + COUNT( - col2 ) - - - 98 AS col0 FROM tab1 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-1886
SELECT + COUNT ( - col2 ) - - - 98 AS col0 FROM tab1 AS cor0
----
-95

onlyif mysql # DIV for integer division: 
query II rowsort label-1887
SELECT DISTINCT + 57 DIV - col0 - - + 22 * - col0, + ( col2 ) AS col1 FROM tab0 AS cor0
----
-1914
10
-2134
99
-333
47

skipif mysql # not compatible
query II rowsort label-1887
SELECT DISTINCT + 57 / - col0 - - + 22 * - col0, + ( col2 ) AS col1 FROM tab0 AS cor0
----
-1914
10
-2134
99
-333
47

query II rowsort
SELECT ALL - 10 - - + col0, col0 FROM tab0 AS cor0
----
5
15
77
87
87
97

query I rowsort
SELECT ALL 60 * - + col2 - - col2 + - col0 FROM tab0 AS cor0
----
-2788
-5938
-677

query I rowsort
SELECT + col1 + + col2 * - col2 FROM tab0 AS cor0
----
-2128
-79
-9800

query I rowsort
SELECT - col2 + - 52 AS col2 FROM tab0
----
-151
-62
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1892
SELECT DISTINCT 54 - + + COUNT( * ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-1892
SELECT DISTINCT 54 - + + COUNT ( * ) FROM tab2
----
51

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 * - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1894
SELECT + COUNT( * ) + 11 col0 FROM tab1
----
14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1894
SELECT + COUNT ( * ) + 11 col0 FROM tab1
----
14

query II rowsort
SELECT DISTINCT col2, - 41 * col2 + - col0 + + + col0 FROM tab1
----
59
-2419
68
-2788
96
-3936

onlyif mysql # DIV for integer division: 
query I rowsort label-1896
SELECT ALL col0 * col2 - - col2 - - col0 * col1 DIV + col0 - 11 FROM tab1
----
4995
5068
6292

skipif mysql # not compatible
query I rowsort label-1896
SELECT ALL col0 * col2 - - col2 - - col0 * col1 / + col0 - 11 FROM tab1
----
4995
5068
6292

query III rowsort
SELECT * FROM tab1 WHERE ( - + 31 ) < ( - - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1898
SELECT ALL COUNT( - 5 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1898
SELECT ALL COUNT ( - 5 ) FROM tab2
----
3

query II rowsort
SELECT + col2 AS col2, + 1 AS col2 FROM tab1 AS cor0
----
59
1
68
1
96
1

query II rowsort
SELECT ALL - 45 * - ( + + ( - col0 ) ), col2 FROM tab2 AS cor0
----
-2070
23
-2880
40
-3375
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1901
SELECT - + col2 * col2 AS col1, - CAST( 25 AS SIGNED ) FROM tab1 AS cor0
----
-3481
-25
-4624
-25
-9216
-25

skipif mysql # not compatible
query II rowsort label-1901
SELECT - + col2 * col2 AS col1, - CAST ( 25 AS INTEGER ) FROM tab1 AS cor0
----
-3481
-25
-4624
-25
-9216
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1902
SELECT COUNT( * ) DIV ( - 58 ) * + MAX( DISTINCT - 73 ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-1902
SELECT COUNT ( * ) / ( - 58 ) * + MAX ( DISTINCT - 73 ) FROM tab2 cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1903
SELECT DISTINCT - + 4 DIV - col0 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1903
SELECT DISTINCT - + 4 / - col0 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT col1 * - col0 * + 35 AS col1 FROM tab0 AS cor0
----
-3395
-42525
-63945

onlyif mysql # aggregate syntax: 
query I rowsort label-1905
SELECT + + COUNT( * ) * - + 66 col0 FROM tab1 AS cor0
----
-198

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1905
SELECT + + COUNT ( * ) * - + 66 col0 FROM tab1 AS cor0
----
-198

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - - col2 ) col1 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT col2 + + col1 - + col0 FROM tab1 AS cor0 WHERE NOT - 60 * + - 16 * col2 IS NULL
----
-21
24
59

query II rowsort
SELECT + 11, col2 FROM tab2 AS cor0
----
11
23
11
40
11
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1909
SELECT + + SUM( ALL + - col0 ) AS col0 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-1909
SELECT + + SUM ( ALL + - col0 ) AS col0 FROM tab2 AS cor0
----
-185

query II rowsort
SELECT ALL - + col0 AS col2, - col2 + + col2 AS col1 FROM tab2 cor0
----
-46
0
-64
0
-75
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1911
SELECT ALL - ( SUM( ALL col0 ) ) FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-1911
SELECT ALL - ( SUM ( ALL col0 ) ) FROM tab1
----
-227

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 = + 22 + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + ( col2 ) + - col1 AS col2 FROM tab1
----
21
54
82

onlyif mysql # DIV for integer division: 
query II rowsort label-1914
SELECT 10 DIV col0 AS col2, - 38 * + ( + col2 ) FROM tab2
----
0
-1520
0
-2204
0
-874

skipif mysql # not compatible
query II rowsort label-1914
SELECT 10 / col0 AS col2, - 38 * + ( + col2 ) FROM tab2
----
0
-1520
0
-2204
0
-874

query I rowsort
SELECT ( 78 ) AS col2 FROM tab0
----
78
78
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 1 col0 FROM tab0 AS cor0
----
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 19 * - ( + col1 ) IS NULL
----

query I rowsort
SELECT ALL + + col2 + + + col0 * col2 FROM tab1 AS cor0
----
4992
5074
6256

query I rowsort
SELECT 79 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1920
SELECT - - CAST( NULL AS DECIMAL ) AS col0, - ( + + 28 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to c0aca7b9b57ef5ce975814dfde26092e

skipif mysql # not compatible
query II rowsort label-1920
SELECT - - CAST ( NULL AS REAL ) AS col0, - ( + + 28 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to c0aca7b9b57ef5ce975814dfde26092e

query I rowsort
SELECT 73 AS col0 FROM tab1 cor0
----
73
73
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1922
SELECT + 84 * - - ( + CAST( NULL AS SIGNED ) ) * - - COUNT( * ) + - + CAST( NULL AS SIGNED ) * COUNT( DISTINCT 61 ) + - COUNT( * ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1922
SELECT + 84 * - - ( + CAST ( NULL AS INTEGER ) ) * - - COUNT ( * ) + - + CAST ( NULL AS INTEGER ) * COUNT ( DISTINCT 61 ) + - COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
NULL

query I rowsort
SELECT ALL + 23 + col1 FROM tab2 cor0
----
100
74
90

query I rowsort
SELECT ALL col0 + - + col0 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE + col2 + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - ( - - col1 ) - - col1 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT + col1 - - ( - 44 ) AS col2 FROM tab2
----
23
33
7

query I rowsort
SELECT ( - - 28 ) * + col0 * + ( - col0 ) - + col1 FROM tab2
----
-114765
-157567
-59299

query II rowsort
SELECT ALL 64 - - col2, 30 * 80 AS col0 FROM tab0
----
111
2400
163
2400
74
2400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1930
SELECT ALL + COUNT( * ) FROM tab1 WHERE ( NULL ) IN ( CAST( - col1 AS SIGNED ) * 40 - + col2 * - 73, col1, - - col2 + - + col1 * + - ( + col1 ) ) AND ( - 70 ) NOT IN ( col0, - CAST( NULL AS SIGNED ) - - 82 )
----
0

skipif mysql # not compatible
query I rowsort label-1930
SELECT ALL + COUNT ( * ) FROM tab1 WHERE ( NULL ) IN ( CAST ( - col1 AS INTEGER ) * 40 - + col2 * - 73, col1, - - col2 + - + col1 * + - ( + col1 ) ) AND ( - 70 ) NOT IN ( col0, - CAST ( NULL AS INTEGER ) - - 82 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1931
SELECT DISTINCT - col2 * + 32 - col1 DIV - col0 FROM tab1
----
-1888
-2176
-3072

skipif mysql # not compatible
query I rowsort label-1931
SELECT DISTINCT - col2 * + 32 - col1 / - col0 FROM tab1
----
-1888
-2176
-3072

onlyif mysql # aggregate syntax: 
query I rowsort label-1932
SELECT ALL 18 * MIN( ALL + col1 ) AS col1 FROM tab1
----
90

skipif mysql # not compatible
query I rowsort label-1932
SELECT ALL 18 * MIN ( ALL + col1 ) AS col1 FROM tab1
----
90

query I rowsort
SELECT - - col1 * + 32 - col0 FROM tab0 WHERE NOT NULL BETWEEN - col2 AND - 43 * + 29
----

query I rowsort
SELECT DISTINCT 36 * - - col1 FROM tab0
----
2916
36
756

query I rowsort
SELECT DISTINCT + col2 * - 23 AS col2 FROM tab0
----
-1081
-2277
-230

query I rowsort
SELECT ALL + col1 * - + col1 * - + col1 FROM tab1
----
103823
125
2744

onlyif mysql # DIV for integer division: 
query I rowsort label-1937
SELECT ALL 63 DIV + 33 AS col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1937
SELECT ALL 63 / + 33 AS col1 FROM tab2
----
1
1
1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT + + ( + 78 ) IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 + + - col1 * + col0 IS NOT NULL
----

query I rowsort
SELECT ALL + col0 * 68 * col1 FROM tab0 AS cor0
----
124236
6596
82620

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1941
SELECT DISTINCT - COUNT( * ) DIV + + SUM( 80 ) + + + 86 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
86

skipif mysql # not compatible
query I rowsort label-1941
SELECT DISTINCT - COUNT ( * ) / + + SUM ( 80 ) + + + 86 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1942
SELECT DISTINCT - 27 * + - col2 * - + col0 FROM tab2 WHERE ( - 9 + 13 - - + CAST( NULL AS SIGNED ) / + col2 ) IS NULL
----
-117450
-28566
-69120

skipif mysql # not compatible
query I rowsort label-1942
SELECT DISTINCT - 27 * + - col2 * - + col0 FROM tab2 WHERE ( - 9 + 13 - - + CAST ( NULL AS INTEGER ) / + col2 ) IS NULL
----
-117450
-28566
-69120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col1, - col2 FROM tab0
----
-1
-99
-21
-10
-81
-47

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 84 * + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 88 + - col2 AS col2 FROM tab0 AS cor0
----
-135
-187
-98

query I rowsort
SELECT - 31 * col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 68 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1948
SELECT ALL + MAX( col0 ) + COUNT( DISTINCT - + col0 ) AS col1 FROM tab2 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-1948
SELECT ALL + MAX ( col0 ) + COUNT ( DISTINCT - + col0 ) AS col1 FROM tab2 AS cor0
----
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col1, col2 AS col0 FROM tab2 AS cor0
----
-46
23
-64
40
-75
58

query I rowsort
SELECT ALL + col0 * + - 79 FROM tab2
----
-3634
-5056
-5925

query I rowsort
SELECT ALL - 57 * - col1 FROM tab1
----
2679
285
798

onlyif mysql # DIV for integer division: 
query I rowsort label-1952
SELECT 0 DIV - - col0 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1952
SELECT 0 / - - col0 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT 90 + - col2 FROM tab0
----
-9
43
80

query II rowsort
SELECT col2 + + col0 AS col2, + col1 FROM tab0
----
196
1
62
81
97
21

query I rowsort
SELECT ALL - ( + 47 ) AS col2 FROM tab0
----
-47
-47
-47

query I rowsort
SELECT ALL + ( + - 82 ) + + col1 AS col2 FROM tab2 WHERE ( NOT col0 / col2 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE 32 IS NULL
----

query I rowsort
SELECT ALL col0 + - col1 * + - 88 - col1 + 24 FROM tab0 AS cor0
----
1938
208
7086

onlyif mysql # aggregate syntax: 
query II rowsort label-1959
SELECT + + 82 * + COUNT( * ) AS col2, 27 FROM tab1 AS cor0 WHERE + 25 IS NULL
----
0
27

skipif mysql # not compatible
query II rowsort label-1959
SELECT + + 82 * + COUNT ( * ) AS col2, 27 FROM tab1 AS cor0 WHERE + 25 IS NULL
----
0
27

query I rowsort
SELECT ALL - 85 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-85
-85
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-1961
SELECT DISTINCT + COUNT( 52 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1961
SELECT DISTINCT + COUNT ( 52 ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT col2 * 81 - - - col2 AS col1 FROM tab0
----
3760
7920
800

query II rowsort
SELECT - ( + col0 ) - + - col0, col2 FROM tab2
----
0
23
0
40
0
58

query I rowsort
SELECT ALL - 36 * - + 26 + + col2 FROM tab1 AS cor0
----
1004
1032
995

query I rowsort
SELECT - col2 / - - 3 + - + col1 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1966
SELECT ALL + + 96 + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-1966
SELECT ALL + + 96 + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
99

query II rowsort
SELECT ALL - - col2 * + col0 + 89 AS col1, col0 AS col1 FROM tab0 AS cor0
----
794
15
959
87
9692
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1968
SELECT + 36 + - CAST( - + COUNT( * ) AS SIGNED ) + COUNT( ALL + - 2 ) col0 FROM tab2 AS cor0
----
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1968
SELECT + 36 + - CAST ( - + COUNT ( * ) AS INTEGER ) + COUNT ( ALL + - 2 ) col0 FROM tab2 AS cor0
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1969
SELECT + 24 AS col1, col2 * - ( + CAST( NULL AS SIGNED ) ) FROM tab0
----
24
NULL
24
NULL
24
NULL

skipif mysql # not compatible
query II rowsort label-1969
SELECT + 24 AS col1, col2 * - ( + CAST ( NULL AS INTEGER ) ) FROM tab0
----
24
NULL
24
NULL
24
NULL

query II rowsort
SELECT DISTINCT col1 AS col1, + col0 - col1 * - ( + col0 ) + col2 FROM tab0
----
1
293
21
1924
81
1277

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1971
SELECT DISTINCT * FROM tab0 WHERE + col2 * + + ( 3 ) <= - col0 * + CAST( col2 AS SIGNED ) + - 31
----

skipif mysql # not compatible
query III rowsort label-1971
SELECT DISTINCT * FROM tab0 WHERE + col2 * + + ( 3 ) <= - col0 * + CAST ( col2 AS INTEGER ) + - 31
----

query II rowsort
SELECT col1 * - 11 * - col2, + col2 FROM tab0
----
1089
99
2310
10
41877
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1973
SELECT + COUNT( * ) FROM tab0 WHERE NOT NULL = col2
----
0

skipif mysql # not compatible
query I rowsort label-1973
SELECT + COUNT ( * ) FROM tab0 WHERE NOT NULL = col2
----
0

query I rowsort
SELECT + ( - col2 ) * col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1975
SELECT DISTINCT * FROM tab1 WHERE NOT - CAST( - - col1 AS SIGNED ) BETWEEN + 66 AND - 34 + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1975
SELECT DISTINCT * FROM tab1 WHERE NOT - CAST ( - - col1 AS INTEGER ) BETWEEN + 66 AND - 34 + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col2 * + - ( - + 70 ) AS col2 FROM tab0 AS cor0 WHERE NOT - ( + - col2 ) * - col2 IS NULL
----
3290
6930
700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1977
SELECT 29 AS col1 FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) - 20 IS NULL
----

skipif mysql # not compatible
query I rowsort label-1977
SELECT 29 AS col1 FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) - 20 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1978
SELECT ALL - 58, - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-58
-3

skipif mysql # not compatible
query II rowsort label-1978
SELECT ALL - 58, - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-58
-3

query I rowsort
SELECT DISTINCT + + 25 AS col0 FROM tab2 cor0
----
25

query II rowsort
SELECT - - col2 AS col0, 25 * col0 FROM tab2 AS cor0
----
23
1150
40
1600
58
1875

query II rowsort
SELECT DISTINCT col2 AS col2, ( + col2 ) FROM tab2 AS cor0 WHERE NOT NULL <= ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1982
SELECT + 15 DIV + + col0 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1982
SELECT + 15 / + + col0 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + ( - 38 ) FROM tab2
----
-38
-38
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-1984
SELECT ( COUNT( * ) ) AS col0 FROM tab1, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-1984
SELECT ( COUNT ( * ) ) AS col0 FROM tab1, tab2 AS cor0
----
9

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 84 BETWEEN + 74 AND 1 * + 71 * - - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT ( + 21 ), - 22 AS col2 FROM tab0 AS cor0 WHERE NOT + col0 IS NULL
----
21
-22

query I rowsort
SELECT ALL - col0 + 93 + - col2 AS col1 FROM tab0 AS cor0
----
-103
-4
31

query II rowsort
SELECT DISTINCT - + col1 * + col0 * + col1 + + - 21, + col1 AS col1 FROM tab0 AS cor0
----
-118
1
-38388
21
-98436
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1989
SELECT ALL 48 + - CAST( NULL AS SIGNED ) * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1989
SELECT ALL 48 + - CAST ( NULL AS INTEGER ) * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 52 + + + col0 - + 15 AS col1 FROM tab0 AS cor0
----
124
134
52

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 * col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 27 * - ( - 2 ) FROM tab1 AS cor0
----
54

query I rowsort
SELECT DISTINCT - 88 * 77 FROM tab1 AS cor0
----
-6776

query I rowsort
SELECT DISTINCT - 18 FROM tab1 AS cor0 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 * - 35 FROM tab1
----
-2065
-2380
-3360

query I rowsort
SELECT DISTINCT + + col2 FROM tab2 WHERE + col1 + + col0 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1997
SELECT col2 DIV - col1 * + col1 AS col0 FROM tab0
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-1997
SELECT col2 / - col1 * + col1 AS col0 FROM tab0
----
-99
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 5 AS col0, + col1 col2 FROM tab0
----
-5
1
-5
21
-5
81

onlyif mysql # DIV for integer division: 
query I rowsort label-1999
SELECT DISTINCT col0 - - 74 + 43 DIV - col2 AS col1 FROM tab0 AS cor0
----
157
171
89

skipif mysql # not compatible
query I rowsort label-1999
SELECT DISTINCT col0 - - 74 + 43 / - col2 AS col1 FROM tab0 AS cor0
----
157
171
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2000
SELECT + + 68 + ( + COUNT( * ) ) FROM tab0 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-2000
SELECT + + 68 + ( + COUNT ( * ) ) FROM tab0 AS cor0
----
71

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 27 BETWEEN NULL AND NULL
----

query II rowsort
SELECT col1 + - col0 * + - col0 * + + col1, col0 * + 16 AS col0 FROM tab1
----
36130
1360
36428
816
389254
1456

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 33 AS col0, col0 * + col1 col1 FROM tab0 cor0
----
33
1215
33
1827
33
97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2004
SELECT - 38 / CAST( NULL AS DECIMAL ) * - - col2 + - 14 - + col2 + + col2 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2004
SELECT - 38 / CAST ( NULL AS REAL ) * - - col2 + - 14 - + col2 + + col2 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2005
SELECT + col2 * col2 FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) <> - - col1 AND NOT NULL NOT BETWEEN ( NULL ) AND - 91 - - + 27 * + col2
----

skipif mysql # not compatible
query I rowsort label-2005
SELECT + col2 * col2 FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) <> - - col1 AND NOT NULL NOT BETWEEN ( NULL ) AND - 91 - - + 27 * + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 25 col0 FROM tab1 AS cor0
----
25
25
25

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 - - - col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( 50 ) col2 FROM tab0 AS cor0
----
50
50
50

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 BETWEEN NULL AND + - 15
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 80 * + col0 FROM tab1
----
4080
6800
7280

query III rowsort
SELECT * FROM tab1 WHERE NOT 69 BETWEEN NULL AND NULL
----

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + 81 / + 72 AND + col1 * col1
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2013
SELECT + MIN( ALL + + col0 ) * COUNT( DISTINCT - + col2 ) FROM tab1 WHERE NOT - + CAST( NULL AS DECIMAL ) IS NOT NULL
----
153

skipif mysql # not compatible
query I rowsort label-2013
SELECT + MIN ( ALL + + col0 ) * COUNT ( DISTINCT - + col2 ) FROM tab1 WHERE NOT - + CAST ( NULL AS REAL ) IS NOT NULL
----
153

query II rowsort
SELECT - 63, col1 FROM tab2
----
-63
51
-63
67
-63
77

query I rowsort
SELECT DISTINCT 38 AS col0 FROM tab2 WHERE col2 > + col2
----

query I rowsort
SELECT DISTINCT - 79 + + 32 FROM tab2 cor0
----
-47

query I rowsort
SELECT col2 FROM tab2 cor0 WHERE ( NOT ( NOT NULL IS NOT NULL ) )
----

query I rowsort
SELECT DISTINCT + - 37 + - col1 AS col2 FROM tab1 AS cor0
----
-42
-51
-84

query I rowsort
SELECT ALL 26 + + col2 - - col1 FROM tab0 AS cor0
----
126
154
57

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 6 + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2021
SELECT + - 6 + CAST( - + col2 AS SIGNED ) + - - 44 + + - 78 * + col1 AS col1 FROM tab1 AS cor0
----
-1150
-3696
-411

skipif mysql # not compatible
query I rowsort label-2021
SELECT + - 6 + CAST ( - + col2 AS INTEGER ) + - - 44 + + - 78 * + col1 AS col1 FROM tab1 AS cor0
----
-1150
-3696
-411

onlyif mysql # aggregate syntax: 
query I rowsort label-2022
SELECT ALL 77 * SUM( + - col1 ) FROM tab2
----
-15015

skipif mysql # not compatible
query I rowsort label-2022
SELECT ALL 77 * SUM ( + - col1 ) FROM tab2
----
-15015

query I rowsort
SELECT + col1 * ( + - ( + col2 ) ) * - col1 + col0 - - col1 FROM tab1 WHERE + ( 69 ) IS NOT NULL
----
150350
1565
18881

onlyif mysql # aggregate syntax: 
query I rowsort label-2024
SELECT ALL 86 * - SUM( DISTINCT + + 80 ) + - 59 * 62 col1 FROM tab1
----
-10538

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2024
SELECT ALL 86 * - SUM ( DISTINCT + + 80 ) + - 59 * 62 col1 FROM tab1
----
-10538

query I rowsort
SELECT - col2 + - + ( + col2 ) FROM tab0
----
-198
-20
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-2026
SELECT DISTINCT col1 DIV 75 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2026
SELECT DISTINCT col1 / 75 AS col0 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2027
SELECT CAST( - 80 AS SIGNED ) FROM tab1 WHERE col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2027
SELECT CAST ( - 80 AS INTEGER ) FROM tab1 WHERE col0 IS NULL
----

query I rowsort
SELECT - col1 + - col0 * - col1 AS col0 FROM tab0
----
1134
1806
96

query I rowsort
SELECT - col2 + + + 15 AS col0 FROM tab0
----
-32
-84
5

query I rowsort
SELECT - col0 * - col1 + + + ( - col1 ) FROM tab0 AS cor0
----
1134
1806
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2031
SELECT DISTINCT MIN( 85 ) + - 41 AS col1 FROM tab0 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-2031
SELECT DISTINCT MIN ( 85 ) + - 41 AS col1 FROM tab0 AS cor0
----
44

query II rowsort
SELECT ALL 37 * + + col0 * + col0 + col2 AS col2, + ( + - ( + col0 ) ) AS col1 FROM tab2 AS cor0
----
151592
-64
208183
-75
78315
-46

query I rowsort
SELECT ALL 74 - 27 * - col1 AS col2 FROM tab0 AS cor0
----
101
2261
641

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 51 * - + 75 * + col0 * + ( - 64 ) - + - 81 * - col0 col1 FROM tab0 AS cor0
----
21290553
23737743
3670785

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col0 BETWEEN NULL AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2036
SELECT ALL + COUNT( ALL + 54 ) - - 20 AS col1 FROM tab1
----
23

skipif mysql # not compatible
query I rowsort label-2036
SELECT ALL + COUNT ( ALL + 54 ) - - 20 AS col1 FROM tab1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2037
SELECT SUM( DISTINCT - col0 ) FROM tab2 cor0
----
-185

skipif mysql # not compatible
query I rowsort label-2037
SELECT SUM ( DISTINCT - col0 ) FROM tab2 cor0
----
-185

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL < - col2
----

query I rowsort
SELECT DISTINCT col0 * col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL 44 * 9 FROM tab0 cor0
----
396
396
396

onlyif mysql # DIV for integer division: 
query I rowsort label-2041
SELECT 65 DIV - 66 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2041
SELECT 65 / - 66 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col1, col1 AS col2 FROM tab2 AS cor0
----
46
51
64
77
75
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2043
SELECT DISTINCT MIN( ALL + col2 ) col2 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2043
SELECT DISTINCT MIN ( ALL + col2 ) col2 FROM tab2 AS cor0
----
23

query I rowsort
SELECT col1 AS col0 FROM tab0 cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2045
SELECT 81 DIV - col2 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2045
SELECT 81 / - col2 FROM tab1 AS cor0
----
-1
-1
0

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - 9 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col0 * - + 64 * - + col0 + - 16 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2048
SELECT - + MAX( DISTINCT - - col2 ) AS col0 FROM tab2 WHERE NOT + col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2048
SELECT - + MAX ( DISTINCT - - col2 ) AS col0 FROM tab2 WHERE NOT + col0 IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col1, + col2 - 21 AS col2 FROM tab1
----
51
75
85
38
91
47

query II rowsort
SELECT DISTINCT - 77 * - 69, 19 * 88 * - + 80 AS col0 FROM tab1 AS cor0
----
5313
-133760

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 * - col1 + col0 * - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2052
SELECT ALL - - COUNT( ALL col0 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2052
SELECT ALL - - COUNT ( ALL col0 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
3

query II rowsort
SELECT DISTINCT + 51 AS col1, 47 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
51
47

onlyif mysql # DIV for integer division: 
query I rowsort label-2054
SELECT + + col2 + + - 56 DIV col1 + - 91 AS col2 FROM tab0 AS cor0
----
-44
-48
-83

skipif mysql # not compatible
query I rowsort label-2054
SELECT + + col2 + + - 56 / col1 + - 91 AS col2 FROM tab0 AS cor0
----
-44
-48
-83

query II rowsort
SELECT DISTINCT - + 50 + + col0, + 98 AS col0 FROM tab0 cor0
----
-35
98
37
98
47
98

query I rowsort
SELECT - + 28 + - - 32 AS col0 FROM tab1 AS cor0
----
4
4
4

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN - - col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 85 col0 FROM tab1
----
-85
-85
-85

query II rowsort
SELECT DISTINCT col0, ( + col1 ) AS col2 FROM tab1
----
51
14
85
5
91
47

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2060
SELECT + 56 AS col0, CAST( NULL AS DECIMAL ) / + ( col0 ) FROM tab2
----
56
NULL
56
NULL
56
NULL

skipif mysql # not compatible
query II rowsort label-2060
SELECT + 56 AS col0, CAST ( NULL AS REAL ) / + ( col0 ) FROM tab2
----
56
NULL
56
NULL
56
NULL

query I rowsort
SELECT - + 35 / - 43 FROM tab1 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + 97 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
97

query I rowsort
SELECT - col0 + + - 69 AS col1 FROM tab0 AS cor0
----
-156
-166
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-2064
SELECT DISTINCT + - 16 + - COUNT( * ) + - 97 + - ( + 28 ) + + 21 AS col1 FROM tab2 AS cor0
----
-123

skipif mysql # not compatible
query I rowsort label-2064
SELECT DISTINCT + - 16 + - COUNT ( * ) + - 97 + - ( + 28 ) + + 21 AS col1 FROM tab2 AS cor0
----
-123

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2065
SELECT DISTINCT - col0 * + col1 + col0 * - col1 * col2 + + + col2 - CAST( - col2 AS SIGNED ), 39 col1 FROM tab1 AS cor0
----
-25382
39
-294977
39
-69066
39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2065
SELECT DISTINCT - col0 * + col1 + col0 * - col1 * col2 + + + col2 - CAST ( - col2 AS INTEGER ), 39 col1 FROM tab1 AS cor0
----
-25382
39
-294977
39
-69066
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + 99 col1 FROM tab1
----
150
184
190

query III rowsort
SELECT * FROM tab1 WHERE NOT + ( + 4 ) * + 0 - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 40 * + col1 FROM tab1
----
1880
200
560

query I rowsort
SELECT + 39 - + col2 FROM tab0
----
-60
-8
29

query I rowsort
SELECT ( - 83 ) FROM tab1
----
-83
-83
-83

query III rowsort
SELECT * FROM tab1 WHERE NOT + ( 7 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2072
SELECT + COUNT( * ) * - SUM( - ( col0 ) ) + COUNT( * ) AS col0 FROM tab2 WHERE NOT ( - col0 ) IS NULL
----
558

skipif mysql # not compatible
query I rowsort label-2072
SELECT + COUNT ( * ) * - SUM ( - ( col0 ) ) + COUNT ( * ) AS col0 FROM tab2 WHERE NOT ( - col0 ) IS NULL
----
558

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( + col2 + col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 42 * col2 - + col2 ) >= NULL
----

query I rowsort
SELECT ALL - 69 FROM tab0 WHERE NULL NOT IN ( 25 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2076
SELECT DISTINCT + COUNT( * ) + SUM( 53 ) AS col2 FROM tab0
----
162

skipif mysql # not compatible
query I rowsort label-2076
SELECT DISTINCT + COUNT ( * ) + SUM ( 53 ) AS col2 FROM tab0
----
162

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2077
SELECT DISTINCT COUNT( * ) * 70 + + COUNT( * ) DIV SUM( DISTINCT - col1 ) FROM tab1
----
210

skipif mysql # not compatible
query I rowsort label-2077
SELECT DISTINCT COUNT ( * ) * 70 + + COUNT ( * ) / SUM ( DISTINCT - col1 ) FROM tab1
----
210

query I rowsort
SELECT ALL - 82 + + 85 FROM tab1 WHERE NOT 73 / 66 NOT IN ( - col0 * col0 )
----

query I rowsort
SELECT - col1 FROM tab1 WHERE ( 7 * 8 - col1 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2080
SELECT DISTINCT + COUNT( DISTINCT + 20 ) AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-2080
SELECT DISTINCT + COUNT ( DISTINCT + 20 ) AS col0 FROM tab1
----
1

query I rowsort
SELECT DISTINCT + col1 + 84 / 63 AS col1 FROM tab1 WHERE NOT ( NULL ) < NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( - col2 * + 33 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2083
SELECT - 79 * + COUNT( * ) FROM tab2 AS cor0
----
-237

skipif mysql # not compatible
query I rowsort label-2083
SELECT - 79 * + COUNT ( * ) FROM tab2 AS cor0
----
-237

onlyif mysql # aggregate syntax: 
query I rowsort label-2084
SELECT - 7 + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - col2 * - col1 = ( col2 + + col1 )
----
-4

skipif mysql # not compatible
query I rowsort label-2084
SELECT - 7 + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - col2 * - col1 = ( col2 + + col1 )
----
-4

query I rowsort
SELECT DISTINCT - col2 + col1 FROM tab2 AS cor0 WHERE NOT - 98 <> NULL
----

query I rowsort
SELECT DISTINCT col1 + + 75 FROM tab0 cor0
----
156
76
96

query I rowsort
SELECT 80 + + col2 FROM tab0 AS cor0
----
127
179
90

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2088
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( col2 * CAST( NULL AS SIGNED ) + - col2 * 19 )
----

skipif mysql # not compatible
query III rowsort label-2088
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( col2 * CAST ( NULL AS INTEGER ) + - col2 * 19 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2089
SELECT ALL + COUNT( * ) AS col0 FROM tab2 WHERE NOT - 11 * col0 + 34 IN ( + 62 )
----
3

skipif mysql # not compatible
query I rowsort label-2089
SELECT ALL + COUNT ( * ) AS col0 FROM tab2 WHERE NOT - 11 * col0 + 34 IN ( + 62 )
----
3

query I rowsort
SELECT DISTINCT - 73 FROM tab0 AS cor0 CROSS JOIN tab1
----
-73

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IN ( ( - col1 ) )
----

query III rowsort
SELECT * FROM tab0 WHERE + col0 NOT BETWEEN + 78 + - col0 AND ( - col2 + + 48 / - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE NULL <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2094
SELECT DISTINCT + col1 * col0 + + col2 DIV col2 AS col2 FROM tab0 AS cor0
----
1216
1828
98

skipif mysql # not compatible
query I rowsort label-2094
SELECT DISTINCT + col1 * col0 + + col2 / col2 AS col2 FROM tab0 AS cor0
----
1216
1828
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2095
SELECT - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE ( 26 * - 63 ) NOT IN ( col1 )
----
-3

skipif mysql # not compatible
query I rowsort label-2095
SELECT - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE ( 26 * - 63 ) NOT IN ( col1 )
----
-3

query I rowsort
SELECT ALL col0 + 78 * col0 AS col0 FROM tab0 AS cor0
----
1185
6873
7663

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2097
SELECT ALL + CAST( 30 AS SIGNED ) - col1 AS col0 FROM tab2 AS cor0
----
-21
-37
-47

skipif mysql # not compatible
query I rowsort label-2097
SELECT ALL + CAST ( 30 AS INTEGER ) - col1 AS col0 FROM tab2 AS cor0
----
-21
-37
-47

query III rowsort
SELECT * FROM tab2 cor0 WHERE + ( col1 ) BETWEEN + col1 AND ( + 23 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2099
SELECT COUNT( * ) * 48 + + COUNT( * ) DIV 83 col1 FROM tab1 AS cor0
----
144

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2099
SELECT COUNT ( * ) * 48 + + COUNT ( * ) / 83 col1 FROM tab1 AS cor0
----
144

query I rowsort
SELECT DISTINCT - 56 * + col0 + - col2 FROM tab2 AS cor0 WHERE ( col1 ) IN ( - col1 - + 17 )
----

query I rowsort
SELECT + 94 + col2 * - col1 AS col2 FROM tab1 AS cor0
----
-1250
-201
-3102

onlyif mysql # aggregate syntax: 
query I rowsort label-2102
SELECT DISTINCT - - COUNT( * ) + 53 AS col0 FROM tab2 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-2102
SELECT DISTINCT - - COUNT ( * ) + 53 AS col0 FROM tab2 AS cor0
----
56

query I rowsort
SELECT ALL col2 + 71 * ( 36 * col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT col2 + + col1 = NULL
----

query I rowsort
SELECT - ( ( col1 ) ) + col2 AS col0 FROM tab2 AS cor0
----
-28
-37
-9

query I rowsort
SELECT ALL 70 + 94 AS col0 FROM tab1 AS cor0
----
164
164
164

query I rowsort
SELECT col0 * + col2 * + col0 + + 21 * - col0 FROM tab1
----
248625
424490
561197

onlyif mysql # aggregate syntax: 
query I rowsort label-2107
SELECT DISTINCT + 94 * + ( 76 ) - SUM( ALL 41 ) FROM tab1
----
7021

skipif mysql # not compatible
query I rowsort label-2107
SELECT DISTINCT + 94 * + ( 76 ) - SUM ( ALL 41 ) FROM tab1
----
7021

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <= 56 / 16
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2109
SELECT + 46 DIV col0 * 22 + 14 AS col1 FROM tab1
----
14
14
14

skipif mysql # not compatible
query I rowsort label-2109
SELECT + 46 / col0 * 22 + 14 AS col1 FROM tab1
----
14
14
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2110
SELECT 5 + + 6 * COUNT( * ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-2110
SELECT 5 + + 6 * COUNT ( * ) FROM tab2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2111
SELECT - 36 + 63 * COUNT( * ) FROM tab0
----
153

skipif mysql # not compatible
query I rowsort label-2111
SELECT - 36 + 63 * COUNT ( * ) FROM tab0
----
153

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + ( - col1 ) NOT IN ( 38 )
----

query I rowsort
SELECT 74 + col0 AS col0 FROM tab2
----
120
138
149

onlyif mysql # aggregate syntax: 
query I rowsort label-2114
SELECT - COUNT( * ) AS col0 FROM tab0 WHERE 69 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2114
SELECT - COUNT ( * ) AS col0 FROM tab0 WHERE 69 NOT BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT DISTINCT ( col1 ) AS col2 FROM tab1 WHERE col0 <= ( col0 * + col1 ) OR NOT ( + 74 * col0 ) BETWEEN col2 AND ( NULL )
----
14
47
5

query I rowsort
SELECT ALL + col0 * - 1 * + col2 FROM tab1
----
-4896
-5015
-6188

query III rowsort
SELECT * FROM tab1 WHERE + col2 IN ( - ( col2 ) )
----

query I rowsort
SELECT DISTINCT - + col1 + + col1 + col0 * 64 FROM tab1 AS cor0
----
3264
5440
5824

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2119
SELECT ALL + 66 FROM tab0 cor0 WHERE CAST( col1 AS SIGNED ) NOT BETWEEN ( + 26 ) AND + col2
----
66
66
66

skipif mysql # not compatible
query I rowsort label-2119
SELECT ALL + 66 FROM tab0 cor0 WHERE CAST ( col1 AS INTEGER ) NOT BETWEEN ( + 26 ) AND + col2
----
66
66
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2120
SELECT - + SUM( col1 ) AS col1 FROM tab2 cor0
----
-195

skipif mysql # not compatible
query I rowsort label-2120
SELECT - + SUM ( col1 ) AS col1 FROM tab2 cor0
----
-195

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2121
SELECT DISTINCT - 42 * - CAST( - + COUNT( * ) AS SIGNED ) AS col2 FROM tab1
----
-126

skipif mysql # not compatible
query I rowsort label-2121
SELECT DISTINCT - 42 * - CAST ( - + COUNT ( * ) AS INTEGER ) AS col2 FROM tab1
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-2122
SELECT + MAX( 73 ) * 5 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( 42 ) BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2122
SELECT + MAX ( 73 ) * 5 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( 42 ) BETWEEN NULL AND NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2123
SELECT DISTINCT ( CAST( NULL AS SIGNED ) ) * + 5 - MIN( DISTINCT 12 + col2 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2123
SELECT DISTINCT ( CAST ( NULL AS INTEGER ) ) * + 5 - MIN ( DISTINCT 12 + col2 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2124
SELECT DISTINCT 77 DIV + 50 AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2124
SELECT DISTINCT 77 / + 50 AS col0 FROM tab0 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2125
SELECT CAST( + col1 AS SIGNED ) * - + 23 + + 76 FROM tab1 AS cor0
----
-1005
-246
-39

skipif mysql # not compatible
query I rowsort label-2125
SELECT CAST ( + col1 AS INTEGER ) * - + 23 + + 76 FROM tab1 AS cor0
----
-1005
-246
-39

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 17 * - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2127
SELECT + MIN( DISTINCT - ( - + 98 ) ) AS col1 FROM tab2 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-2127
SELECT + MIN ( DISTINCT - ( - + 98 ) ) AS col1 FROM tab2 AS cor0
----
98

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) < 67
----

query I rowsort
SELECT ALL + col0 * + - col2 FROM tab1
----
-4896
-5015
-6188

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <> - - col0 * col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2131
SELECT - COUNT( * ) * - ( - CAST( 84 AS SIGNED ) ) * 49 AS col2 FROM tab1
----
-12348

skipif mysql # not compatible
query I rowsort label-2131
SELECT - COUNT ( * ) * - ( - CAST ( 84 AS INTEGER ) ) * 49 AS col2 FROM tab1
----
-12348

query I rowsort
SELECT - 82 FROM tab1 WHERE NOT ( NULL ) NOT IN ( col2 / - 32 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - ( - + col1 ) IS NULL
----

query I rowsort
SELECT ( 12 ) + - col1 AS col1 FROM tab1 WHERE NOT - - 43 + col2 <> - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2135
SELECT DISTINCT - SUM( + col1 ) * + COUNT( * ) FROM tab2 WHERE - col1 + - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2135
SELECT DISTINCT - SUM ( + col1 ) * + COUNT ( * ) FROM tab2 WHERE - col1 + - col0 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2136
SELECT - SUM( ALL + - col2 ) * + - COUNT( * ) AS col0 FROM tab2 cor0
----
-363

skipif mysql # not compatible
query I rowsort label-2136
SELECT - SUM ( ALL + - col2 ) * + - COUNT ( * ) AS col0 FROM tab2 cor0
----
-363

query I rowsort
SELECT ALL - col0 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( + col0 )
----

query I rowsort
SELECT DISTINCT - col2 + - 23 FROM tab0 AS cor0 WHERE col2 - - 89 + - col1 + col2 * + col2 IS NOT NULL
----
-122
-33
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-2139
SELECT ALL + - MAX( + + col0 ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-2139
SELECT ALL + - MAX ( + + col0 ) FROM tab2 AS cor0
----
-75

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 BETWEEN NULL AND col1
----

query II rowsort
SELECT - 22 AS col2, 94 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to 2f0eaba181bcd9d07c225c80d407372e

query I rowsort
SELECT + 53 AS col0 FROM tab0 WHERE - + col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2143
SELECT + 63 + + - col0 DIV + col1 + - + col0 FROM tab2 AS cor0
----
-1
-13
17

skipif mysql # not compatible
query I rowsort label-2143
SELECT + 63 + + - col0 / + col1 + - + col0 FROM tab2 AS cor0
----
-1
-13
17

query I rowsort
SELECT col0 + - 36 AS col2 FROM tab0 AS cor0
----
-21
51
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2145
SELECT + COUNT( DISTINCT col1 ) * - ( + 57 ) + + 31 AS col0 FROM tab2 AS cor0
----
-140

skipif mysql # not compatible
query I rowsort label-2145
SELECT + COUNT ( DISTINCT col1 ) * - ( + 57 ) + + 31 AS col0 FROM tab2 AS cor0
----
-140

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 * - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - ( + col0 ) + + 73 AS col0 FROM tab2 AS cor0
----
-2
27
9

query I rowsort
SELECT DISTINCT - col1 * + + 37 + 16 AS col0 FROM tab1 AS cor0
----
-169
-1723
-502

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 + + 71 BETWEEN + 69 AND - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2150
SELECT DISTINCT - - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + - col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2150
SELECT DISTINCT - - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + - col2 FROM tab1 cor0
----
NULL

query I rowsort
SELECT DISTINCT - - col1 - 70 + + - col1 FROM tab0 AS cor0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-2152
SELECT ALL + SUM( + 79 ) + + 44 AS col1 FROM tab0 AS cor0
----
281

skipif mysql # not compatible
query I rowsort label-2152
SELECT ALL + SUM ( + 79 ) + + 44 AS col1 FROM tab0 AS cor0
----
281

query I rowsort
SELECT DISTINCT + col0 + - col1 + + + 1 AS col1 FROM tab2
----
-12
-4
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2154
SELECT ALL COUNT( * ) - - - SUM( + 99 ) AS col2 FROM tab2
----
-294

skipif mysql # not compatible
query I rowsort label-2154
SELECT ALL COUNT ( * ) - - - SUM ( + 99 ) AS col2 FROM tab2
----
-294

query I rowsort
SELECT ALL 18 FROM tab1 WHERE NOT - col2 >= col1
----
18
18
18

query IIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0 WHERE - 5 NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2157
SELECT + col0 - + col0 + + col1 + - 40 DIV + + col2 + + - 32 AS col1 FROM tab1
----
-18
-27
15

skipif mysql # not compatible
query I rowsort label-2157
SELECT + col0 - + col0 + + col1 + - 40 / + + col2 + + - 32 AS col1 FROM tab1
----
-18
-27
15

query I rowsort
SELECT + ( - col0 ) - + ( + col0 ) * + 48 AS col0 FROM tab1
----
-2499
-4165
-4459

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2159
SELECT DISTINCT - col1, + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
-1
NULL
-21
NULL
-81
NULL

skipif mysql # not compatible
query II rowsort label-2159
SELECT DISTINCT - col1, + CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
-1
NULL
-21
NULL
-81
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2160
SELECT + ( - ( - ( COUNT( + 12 ) ) ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2160
SELECT + ( - ( - ( COUNT ( + 12 ) ) ) ) FROM tab0
----
3

query I rowsort
SELECT DISTINCT + col2 * - ( 93 ) FROM tab1 AS cor0
----
-5487
-6324
-8928

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 / + 70 * col2 NOT BETWEEN ( NULL ) AND + 56
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2163
SELECT - 40 DIV - COUNT( * ) FROM tab1
----
13

skipif mysql # not compatible
query I rowsort label-2163
SELECT - 40 / - COUNT ( * ) FROM tab1
----
13

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN + + col0 AND - + 60
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - + 6 col2 FROM tab1
----
-282
-30
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2166
SELECT CAST( - + 81 AS SIGNED ) * 59 * + 96 FROM tab2
----
-458784
-458784
-458784

skipif mysql # not compatible
query I rowsort label-2166
SELECT CAST ( - + 81 AS INTEGER ) * 59 * + 96 FROM tab2
----
-458784
-458784
-458784

onlyif mysql # aggregate syntax: 
query I rowsort label-2167
SELECT ALL - COUNT( * ) * 6 AS col0 FROM tab0
----
-18

skipif mysql # not compatible
query I rowsort label-2167
SELECT ALL - COUNT ( * ) * 6 AS col0 FROM tab0
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-2168
SELECT + 6 DIV col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2168
SELECT + 6 / col1 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2169
SELECT DISTINCT col1 DIV + 16 AS col1 FROM tab2
----
3
4

skipif mysql # not compatible
query I rowsort label-2169
SELECT DISTINCT col1 / + 16 AS col1 FROM tab2
----
3
4

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 / + - col1 IS NOT NULL
----

query II rowsort
SELECT ALL - 32 AS col2, - 18 AS col1 FROM tab1
----
-32
-18
-32
-18
-32
-18

query I rowsort
SELECT DISTINCT 70 + col0 AS col2 FROM tab0
----
157
167
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2173
SELECT ALL + - col1 * + CAST( + 55 AS SIGNED ) - - ( + col0 ) + 31 * col1 FROM tab2 AS cor0
----
-1178
-1533
-1784

skipif mysql # not compatible
query I rowsort label-2173
SELECT ALL + - col1 * + CAST ( + 55 AS INTEGER ) - - ( + col0 ) + 31 * col1 FROM tab2 AS cor0
----
-1178
-1533
-1784

query I rowsort
SELECT DISTINCT col0 + - ( - col2 ) AS col1 FROM tab2 cor0
----
104
133
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2175
SELECT - + 73 FROM tab0 AS cor0 WHERE - CAST( + col2 AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query I rowsort label-2175
SELECT - + 73 FROM tab0 AS cor0 WHERE - CAST ( + col2 AS INTEGER ) <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + 48 + + + 1 + - col0 ) NOT BETWEEN NULL AND - col0 * + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + ( + 2 ) FROM tab2 AS cor0
----
2
2
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2178
SELECT DISTINCT 43 / CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2178
SELECT DISTINCT 43 / CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE ( 86 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2180
SELECT DISTINCT + col2 DIV + col0 + + + 41 FROM tab2
----
41

skipif mysql # not compatible
query I rowsort label-2180
SELECT DISTINCT + col2 / + col0 + + + 41 FROM tab2
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2181
SELECT ALL + + 59 * + CAST( NULL AS SIGNED ) + ( COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2181
SELECT ALL + + 59 * + CAST ( NULL AS INTEGER ) + ( COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT col0 + - col1 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-13
-5
8

query I rowsort
SELECT + 37 - - col2 AS col1 FROM tab0 AS cor0
----
136
47
84

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - ( - col2 ) <= 98
----
15
81
47
87
21
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2185
SELECT col1 + + CAST( NULL AS SIGNED ) + + - col2 * + 34 / ( + col0 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2185
SELECT col1 + + CAST ( NULL AS INTEGER ) + + - col2 * + 34 / ( + col0 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2186
SELECT ALL 86 DIV - + col0 + + ( + + col0 ) FROM tab2 AS cor0
----
45
63
74

skipif mysql # not compatible
query I rowsort label-2186
SELECT ALL 86 / - + col0 + + ( + + col0 ) FROM tab2 AS cor0
----
45
63
74

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 * col0 + + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE + col0 = - + col0
----

query I rowsort
SELECT + ( - 23 ) + col1 + + - col1 FROM tab1
----
-23
-23
-23

query I rowsort
SELECT ALL + col0 - + col0 + - col0 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT ALL 76 - col2 AS col0 FROM tab2
----
18
36
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2192
SELECT DISTINCT + CAST( NULL AS SIGNED ) - - + MAX( ALL + + col1 ) col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2192
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - - + MAX ( ALL + + col1 ) col1 FROM tab2
----
NULL

query I rowsort
SELECT 63 FROM tab1 WHERE NOT NULL IS NOT NULL
----
63
63
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2194
SELECT DISTINCT CAST( + 3 AS SIGNED ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2194
SELECT DISTINCT CAST ( + 3 AS INTEGER ) FROM tab0
----
3

query I rowsort
SELECT + - col0 * + 11 AS col0 FROM tab2 AS cor0
----
-506
-704
-825

query I rowsort
SELECT DISTINCT + - col0 AS col2 FROM tab0 WHERE 64 - - col1 IS NOT NULL
----
-15
-87
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2197
SELECT ALL COUNT( * ) * 4 + + COUNT( * ) DIV - + 1 + 0 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
27

skipif mysql # not compatible
query I rowsort label-2197
SELECT ALL COUNT ( * ) * 4 + + COUNT ( * ) / - + 1 + 0 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
27

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 * col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2199
SELECT + MAX( - + 33 ) FROM tab1 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-2199
SELECT + MAX ( - + 33 ) FROM tab1 AS cor0
----
-33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - 64 * col1 col2 FROM tab2 AS cor0
----
-3213
-4221
-4851

onlyif mysql # aggregate syntax: 
query II rowsort label-2201
SELECT ALL COUNT( * ) AS col1, COUNT( * ) AS col0 FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-2201
SELECT ALL COUNT ( * ) AS col1, COUNT ( * ) AS col0 FROM tab2 AS cor0
----
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - - ( + col0 ) col0 FROM tab1 AS cor0
----
37
44
80

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) > - col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2204
SELECT + + col1 * + + col1 * + CAST( NULL AS DECIMAL ) + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2204
SELECT + + col1 * + + col1 * + CAST ( NULL AS REAL ) + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 93 + col2 AS col2 FROM tab0 cor0
----
103
140
192

query I rowsort
SELECT ALL + 84 * - col1 + + + col1 AS col2 FROM tab0 AS cor0
----
-1743
-6723
-83

query I rowsort
SELECT ALL + - col1 * + - col2 FROM tab2 cor0
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-2208
SELECT ALL ( SUM( + + col1 ) ) col2 FROM tab1 WHERE NOT - ( - col1 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2208
SELECT ALL ( SUM ( + + col1 ) ) col2 FROM tab1 WHERE NOT - ( - col1 ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2209
SELECT ALL + 79 * ( + MIN( + - 31 ) ) FROM tab1
----
-2449

skipif mysql # not compatible
query I rowsort label-2209
SELECT ALL + 79 * ( + MIN ( + - 31 ) ) FROM tab1
----
-2449

query III rowsort
SELECT * FROM tab2 WHERE - col1 + + 56 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * - - col0, 39 col0 FROM tab1
----
2601
39
7225
39
8281
39

query I rowsort
SELECT ALL - col1 + 61 + 18 AS col0 FROM tab1
----
32
65
74

query I rowsort
SELECT - 6 FROM tab2 cor0 WHERE NULL = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2214
SELECT ALL MIN( + - 86 ) + - + COUNT( * ) col0 FROM tab0 AS cor0
----
-89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2214
SELECT ALL MIN ( + - 86 ) + - + COUNT ( * ) col0 FROM tab0 AS cor0
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2215
SELECT + + col2 * - CAST( col2 AS SIGNED ) + + - col1 + + 3 * - + col1 AS col1 FROM tab1 AS cor0
----
-3501
-4812
-9272

skipif mysql # not compatible
query I rowsort label-2215
SELECT + + col2 * - CAST ( col2 AS INTEGER ) + + - col1 + + 3 * - + col1 AS col1 FROM tab1 AS cor0
----
-3501
-4812
-9272

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col2 col2, - col1 FROM tab2 AS cor0
----
-23
-51
-40
-77
-58
-67

query II rowsort
SELECT - - 43, 78 AS col1 FROM tab0 AS cor0
----
43
78
43
78
43
78

query I rowsort
SELECT - ( + + 28 ) * + + col2 + + + col0 AS col0 FROM tab0 AS cor0
----
-1301
-193
-2675

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col1, + col1 FROM tab0 AS cor0 WHERE ( NOT + - col0 IN ( col2, col2 * + 89 ) )
----
1
1
21
21
81
81

query I rowsort
SELECT - col1 + - 39 AS col1 FROM tab1 WHERE NOT NULL NOT BETWEEN + - 60 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 + col0 AS col0, - col2 col0 FROM tab1 WHERE NULL IS NULL
----
144
-59
147
-96
159
-68

query I rowsort
SELECT + - col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2223
SELECT ALL SUM( + 10 ) FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-2223
SELECT ALL SUM ( + 10 ) FROM tab0
----
30

query I rowsort
SELECT - - col1 * + - 26 * col2 - - - col0 FROM tab2 AS cor0
----
-101111
-30544
-80144

query II rowsort
SELECT ALL col0 * + - 36 AS col0, ( - col2 ) + + col2 AS col2 FROM tab2 cor0
----
-1656
0
-2304
0
-2700
0

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab1 WHERE + 88 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2227
SELECT - CAST( SUM( + - col2 ) AS SIGNED ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-2227
SELECT - CAST ( SUM ( + - col2 ) AS INTEGER ) FROM tab0
----
156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 80, - col0 col0 FROM tab1
----
80
-51
80
-85
80
-91

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 68 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 IN ( - col1, + 8 * - col0 )
----

query II rowsort
SELECT ALL + col1, + col1 AS col2 FROM tab2 cor0
----
51
51
67
67
77
77

query I rowsort
SELECT ALL + - 74 * + ( + col2 ) FROM tab2 AS cor0
----
-1702
-2960
-4292

query I rowsort
SELECT col1 + 95 AS col0 FROM tab0
----
116
176
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2234
SELECT + 13 * col1 + - CAST( - 24 AS SIGNED ) AS col1 FROM tab1
----
206
635
89

skipif mysql # not compatible
query I rowsort label-2234
SELECT + 13 * col1 + - CAST ( - 24 AS INTEGER ) AS col1 FROM tab1
----
206
635
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + ( - + ( - ( - col1 ) ) ) AS col0, 11 + - col0 col2 FROM tab0
----
-1
-86
-21
-76
-81
-4

query II rowsort
SELECT ALL col0, 18 FROM tab1
----
51
18
85
18
91
18

query III rowsort
SELECT DISTINCT - col0 AS col0, - 44 + - ( - col2 ) AS col1, 65 AS col1 FROM tab1
----
9 values hashing to 8c55d9dee334dd2348f43860ce3181c4

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 20 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2239
SELECT SUM( - col1 ) FROM tab0 WHERE NULL <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2239
SELECT SUM ( - col1 ) FROM tab0 WHERE NULL <> NULL
----
NULL

query I rowsort
SELECT DISTINCT - col2 + + - col2 AS col1 FROM tab1 cor0
----
-118
-136
-192

query II rowsort
SELECT DISTINCT col2, col1 FROM tab1 AS cor0
----
59
5
68
47
96
14

query I rowsort
SELECT DISTINCT - 40 FROM ( tab1 cor0 CROSS JOIN tab1 AS cor1 )
----
-40

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 * - 84 NOT BETWEEN col1 + col0 + - ( - - col1 ) AND ( + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2244
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + + col0 IS NOT NULL AND CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2244
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + + col0 IS NOT NULL AND CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 12 * col1 + + col1 AS col2 FROM tab2 AS cor0
----
1001
663
871

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2246
SELECT ALL + - COUNT( * ) DIV + COUNT( * ) + - SUM( DISTINCT - - col0 ) * - COUNT( * ) AS col1 FROM tab1 AS cor0
----
680

skipif mysql # not compatible
query I rowsort label-2246
SELECT ALL + - COUNT ( * ) / + COUNT ( * ) + - SUM ( DISTINCT - - col0 ) * - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
680

onlyif mysql # DIV for integer division: 
query I rowsort label-2247
SELECT ALL col0 * + 51 + + - col2 DIV - 4 AS col2 FROM tab0 AS cor0
----
4439
4971
776

skipif mysql # not compatible
query I rowsort label-2247
SELECT ALL col0 * + 51 + + - col2 / - 4 AS col2 FROM tab0 AS cor0
----
4439
4971
776

onlyif mysql # aggregate syntax: 
query I rowsort label-2248
SELECT - MIN( + 77 ) AS col2 FROM tab0 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-2248
SELECT - MIN ( + 77 ) AS col2 FROM tab0 AS cor0
----
-77

query I rowsort
SELECT ALL - ( - - 7 ) AS col0 FROM tab2
----
-7
-7
-7

query III rowsort
SELECT * FROM tab2 WHERE NOT - - 34 * - col2 < NULL
----

query I rowsort
SELECT 47 FROM tab0 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2252
SELECT ALL + 3 AS col1, COUNT( * ) AS col1 FROM tab1 cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-2252
SELECT ALL + 3 AS col1, COUNT ( * ) AS col1 FROM tab1 cor0
----
3
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2253
SELECT + + ( 65 ) DIV + 77 AS col1, COUNT( ALL - col1 ) + - SUM( - col2 ) FROM tab2 AS cor0
----
0
124

skipif mysql # not compatible
query II rowsort label-2253
SELECT + + ( 65 ) / + 77 AS col1, COUNT ( ALL - col1 ) + - SUM ( - col2 ) FROM tab2 AS cor0
----
0
124

onlyif mysql # DIV for integer division: 
query I rowsort label-2254
SELECT DISTINCT col2 DIV + col2 + col1 DIV - + col2 + col0 FROM tab0 AS cor0
----
15
86
98

skipif mysql # not compatible
query I rowsort label-2254
SELECT DISTINCT col2 / + col2 + col1 / - + col2 + col0 FROM tab0 AS cor0
----
15
86
98

onlyif mysql # DIV for integer division: 
query I rowsort label-2255
SELECT - 8 DIV + - col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2255
SELECT - 8 / + - col2 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 <= + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 76 * + ( - col1 ) IS NOT NULL
----

query I rowsort
SELECT - 39 * - 26 + + - ( + col0 ) - - + col0 FROM tab0
----
1014
1014
1014

query I rowsort
SELECT - + 58 + - + 11 AS col2 FROM tab2 AS cor0
----
-69
-69
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2260
SELECT + 86 * + - MIN( ALL + + 96 ) + + 75 DIV + 77 col2, + 71 FROM tab1 AS cor0
----
-8256
71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2260
SELECT + 86 * + - MIN ( ALL + + 96 ) + + 75 / + 77 col2, + 71 FROM tab1 AS cor0
----
-8256
71

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2261
SELECT DISTINCT CAST( NULL AS DECIMAL ) + COUNT( * ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2261
SELECT DISTINCT CAST ( NULL AS REAL ) + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2262
SELECT + + 88 + + - col1 DIV - col1 FROM tab0 AS cor0
----
89
89
89

skipif mysql # not compatible
query I rowsort label-2262
SELECT + + 88 + + - col1 / - col1 FROM tab0 AS cor0
----
89
89
89

query II rowsort
SELECT col0 + - - col2 AS col1, 92 - - ( + col1 ) - - col1 AS col1 FROM tab1 cor0
----
144
102
147
120
159
186

query I rowsort
SELECT ALL + + 50 * 49 * col2 FROM tab2 AS cor0
----
142100
56350
98000

query I rowsort
SELECT ALL - 60 AS col2 FROM tab2 cor0
----
-60
-60
-60

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2266
SELECT - 63 DIV - - col0 col2 FROM tab2 AS cor0 WHERE + col2 * - CAST( col1 AS SIGNED ) IS NOT NULL
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2266
SELECT - 63 / - - col0 col2 FROM tab2 AS cor0 WHERE + col2 * - CAST ( col1 AS INTEGER ) IS NOT NULL
----
-1
0
0

query I rowsort
SELECT DISTINCT + ( + + ( - + ( col2 ) ) ) FROM tab1
----
-59
-68
-96

query I rowsort
SELECT - 61 * col1 AS col2 FROM tab0
----
-1281
-4941
-61

query II rowsort
SELECT col0 AS col0, col2 * col2 + 46 + + + col1 FROM tab0
----
15
2336
87
167
97
9848

onlyif mysql # DIV for integer division: 
query I rowsort label-2270
SELECT col1 DIV col1 * ( - col0 ) FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-2270
SELECT col1 / col1 * ( - col0 ) FROM tab0
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2271
SELECT + col0 * + - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2271
SELECT + col0 * + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2272
SELECT DISTINCT 89 * + ( MAX( DISTINCT + 85 ) ) FROM tab1
----
7565

skipif mysql # not compatible
query I rowsort label-2272
SELECT DISTINCT 89 * + ( MAX ( DISTINCT + 85 ) ) FROM tab1
----
7565

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2273
SELECT col1 - + col1 * + + 23 * - col2 + - + CAST( NULL AS SIGNED ) * + + 80 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2273
SELECT col1 - + col1 * + + 23 * - col2 + - + CAST ( NULL AS INTEGER ) * + + 80 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2274
SELECT ALL ( + + SUM( - - col0 ) ) - + 50 FROM tab0 AS cor0
----
149

skipif mysql # not compatible
query I rowsort label-2274
SELECT ALL ( + + SUM ( - - col0 ) ) - + 50 FROM tab0 AS cor0
----
149

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( - - col1 ) + - + col2 + + 81 - + + 29 col2 FROM tab1 AS cor0 WHERE - 11 IS NOT NULL
----
-12
-58
-63

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-2276
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab2 cor1 WHERE NOT ( - CAST( NULL AS SIGNED ) IS NULL )
----

skipif mysql # not compatible
query IIIIII rowsort label-2276
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab2 cor1 WHERE NOT ( - CAST ( NULL AS INTEGER ) IS NULL )
----

query I rowsort
SELECT - + 67 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 23 col1, - col1 - col0 FROM tab1
----
23
-138
23
-65
23
-90

onlyif mysql # DIV for integer division: 
query II rowsort label-2279
SELECT + col0, - col1 DIV + + ( + col1 ) AS col2 FROM tab0 AS cor0
----
15
-1
87
-1
97
-1

skipif mysql # not compatible
query II rowsort label-2279
SELECT + col0, - col1 / + + ( + col1 ) AS col2 FROM tab0 AS cor0
----
15
-1
87
-1
97
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2280
SELECT ALL + - MAX( ALL + col0 ) FROM tab0 AS cor0 WHERE NOT + col2 + - 20 - - + ( - col2 ) = + ( - col0 )
----
-97

skipif mysql # not compatible
query I rowsort label-2280
SELECT ALL + - MAX ( ALL + col0 ) FROM tab0 AS cor0 WHERE NOT + col2 + - 20 - - + ( - col2 ) = + ( - col0 )
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2281
SELECT DISTINCT + SUM( DISTINCT - col2 ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-2281
SELECT DISTINCT + SUM ( DISTINCT - col2 ) FROM tab0 AS cor0
----
-156

query I rowsort
SELECT ALL - col0 * - 85 FROM tab1 AS cor0 WHERE NULL NOT IN ( - col2 * + - ( + col2 ) + + col0 / + 63, 43, + - col2, - 37, + 1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2283
SELECT MIN( DISTINCT + 75 ) FROM tab0
----
75

skipif mysql # not compatible
query I rowsort label-2283
SELECT MIN ( DISTINCT + 75 ) FROM tab0
----
75

query I rowsort
SELECT - col0 * 22 AS col1 FROM tab0
----
-1914
-2134
-330

onlyif mysql # aggregate syntax: 
query I rowsort label-2285
SELECT ALL ( COUNT( * ) ) * MIN( - 59 ) FROM tab1
----
-177

skipif mysql # not compatible
query I rowsort label-2285
SELECT ALL ( COUNT ( * ) ) * MIN ( - 59 ) FROM tab1
----
-177

query I rowsort
SELECT + col0 AS col1 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 33 + + ( - col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE col0 / + + 9 > NULL OR col0 IS NULL
----

query I rowsort
SELECT col0 AS col2 FROM tab0 WHERE NULL IN ( col1 )
----

query I rowsort
SELECT DISTINCT + - 5 + + col2 AS col1 FROM tab0 AS cor0
----
42
5
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 10 * ( - - col0 ) + col1 - + col0 + col2 col0 FROM tab0 AS cor0
----
263
814
973

query I rowsort
SELECT DISTINCT - 77 + - - 70 + - + col0 * - col0 - + ( col2 ) * + col1 AS col0 FROM tab1 AS cor0
----
1250
5078
6923

query I rowsort
SELECT col0 * - - 91 * + col2 + col0 AS col1 FROM tab2 AS cor0
----
233024
395925
96324

onlyif mysql # aggregate syntax: 
query I rowsort label-2294
SELECT - 86 + - 70 * + COUNT( * ) col0 FROM tab1
----
-296

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2294
SELECT - 86 + - 70 * + COUNT ( * ) col0 FROM tab1
----
-296

query I rowsort
SELECT DISTINCT - col2 + 85 FROM tab2 AS cor0 WHERE NULL IS NULL
----
27
45
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2296
SELECT - 70 - - MAX( - col2 ) + + + COUNT( * ) FROM tab1
----
-126

skipif mysql # not compatible
query I rowsort label-2296
SELECT - 70 - - MAX ( - col2 ) + + + COUNT ( * ) FROM tab1
----
-126

query I rowsort
SELECT + ( col1 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2298
SELECT ALL + MIN( ALL 58 ) FROM tab1 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-2298
SELECT ALL + MIN ( ALL 58 ) FROM tab1 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2299
SELECT ALL + + COUNT( + 50 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2299
SELECT ALL + + COUNT ( + 50 ) FROM tab1 AS cor0
----
3

query II rowsort
SELECT DISTINCT - col1 AS col1, - col0 - + - col2 FROM tab2 AS cor0
----
-51
-23
-67
-17
-77
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-2301
SELECT ALL - COUNT( ALL - 20 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2301
SELECT ALL - COUNT ( ALL - 20 ) AS col1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT col1 * - 21 FROM tab1
----
-105
-294
-987

query I rowsort
SELECT ALL 90 * + + col2 FROM tab1
----
5310
6120
8640

onlyif mysql # aggregate syntax: 
query I rowsort label-2304
SELECT + - SUM( + + col0 ) AS col0 FROM tab2 WHERE NOT - col0 - - ( col2 ) >= - + col0 * + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2304
SELECT + - SUM ( + + col0 ) AS col0 FROM tab2 WHERE NOT - col0 - - ( col2 ) >= - + col0 * + col1
----
NULL

query I rowsort
SELECT - - col1 AS col0 FROM tab1 WHERE NOT - col2 NOT IN ( col2 * + col2, 57 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 + + - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 56 AS col2 FROM tab1 WHERE NULL < col2 / - col1
----

query II rowsort
SELECT + col0 AS col1, 50 AS col1 FROM tab1
----
51
50
85
50
91
50

query I rowsort
SELECT ALL - 13 * col1 FROM tab1 AS cor0
----
-182
-611
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-2310
SELECT + COUNT( * ) * - + 57 + - 77 AS col1 FROM tab1 AS cor0
----
-248

skipif mysql # not compatible
query I rowsort label-2310
SELECT + COUNT ( * ) * - + 57 + - 77 AS col1 FROM tab1 AS cor0
----
-248

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2311
SELECT 82 * - ( - + CAST( NULL AS SIGNED ) ) * + col2 + + col1 + col2 * col2 * - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2311
SELECT 82 * - ( - + CAST ( NULL AS INTEGER ) ) * + col2 + + col1 + col2 * col2 * - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + 1 < ( - + col0 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2313
SELECT ALL + SUM( ALL ( + 72 ) ) FROM tab1 WHERE NOT ( NOT col2 IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2313
SELECT ALL + SUM ( ALL ( + 72 ) ) FROM tab1 WHERE NOT ( NOT col2 IS NULL )
----
NULL

query I rowsort
SELECT col2 + 16 + - col2 * 12 FROM tab1 AS cor0
----
-1040
-633
-732

query I rowsort
SELECT - - 63 + 48 FROM tab2 AS cor0
----
111
111
111

query I rowsort
SELECT - + 68 AS col2 FROM tab0 cor0
----
-68
-68
-68

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 / 34 IS NULL
----

query I rowsort
SELECT DISTINCT col0 - - 80 AS col2 FROM tab1 AS cor0
----
131
165
171

query I rowsort
SELECT DISTINCT + AVG ( DISTINCT - 96 ) FROM tab0 WHERE NOT - col0 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2320
SELECT DISTINCT - COUNT( + col0 ) col1 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2320
SELECT DISTINCT - COUNT ( + col0 ) col1 FROM tab0
----
-3

query I rowsort
SELECT 8 - + col1 FROM tab2
----
-43
-59
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2322
SELECT ALL + CAST( + + COUNT( DISTINCT col0 ) AS SIGNED ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2322
SELECT ALL + CAST ( + + COUNT ( DISTINCT col0 ) AS INTEGER ) AS col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2323
SELECT - SUM( - - 45 ) - COUNT( DISTINCT - + 15 ) - 60 + + + COUNT( * ) AS col2 FROM tab2
----
-193

skipif mysql # not compatible
query I rowsort label-2323
SELECT - SUM ( - - 45 ) - COUNT ( DISTINCT - + 15 ) - 60 + + + COUNT ( * ) AS col2 FROM tab2
----
-193

query I rowsort
SELECT 16 - col1 FROM tab1
----
-31
11
2

query I rowsort
SELECT - col1 - + 19 AS col0 FROM tab0
----
-100
-20
-40

query I rowsort
SELECT - 92 + - col1 * + + col1 AS col1 FROM tab0 AS cor0
----
-533
-6653
-93

query I rowsort
SELECT - 59 + - 17 FROM tab2 AS cor0
----
-76
-76
-76

query I rowsort
SELECT DISTINCT 99 AS col0 FROM tab1 cor0
----
99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <> 31 / - + col2 * + col2
----

query I rowsort
SELECT DISTINCT - 62 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-62

query I rowsort
SELECT - col1 * - - 38 * + col1 FROM tab0 WHERE NOT 69 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2332
SELECT ALL + + SUM( + col0 ) AS col2 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-2332
SELECT ALL + + SUM ( + col0 ) AS col2 FROM tab0 AS cor0
----
199

query I rowsort
SELECT - - 90 * + 7 FROM tab1 AS cor0
----
630
630
630

query I rowsort
SELECT ALL - col1 + + + col0 * col2 FROM tab0 AS cor0 WHERE NOT NULL <> 13
----

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab2 AS cor0 WHERE NOT + 44 + + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2336
SELECT ALL + COUNT( * ) FROM tab2 AS cor0 WHERE NOT col2 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-2336
SELECT ALL + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col2 < NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 82 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2338
SELECT ALL - 77 * + COUNT( * ) * - CAST( NULL AS DECIMAL ) col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2338
SELECT ALL - 77 * + COUNT ( * ) * - CAST ( NULL AS REAL ) col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT 13 * col2 FROM tab2 cor0
----
299
520
754

query I rowsort
SELECT 42 * - 82 / - + 97 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2341
SELECT ALL - COUNT( * ) AS col0, - COUNT( DISTINCT - col2 ) AS col2 FROM tab2
----
-3
-3

skipif mysql # not compatible
query II rowsort label-2341
SELECT ALL - COUNT ( * ) AS col0, - COUNT ( DISTINCT - col2 ) AS col2 FROM tab2
----
-3
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, - 83 + + ( + + col0 ) col2 FROM tab2
----
23
-37
40
-19
58
-8

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 + - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 + + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 * + col1 + - col2 FROM tab2
----
1150
3040
3828

onlyif mysql # aggregate syntax: 
query I rowsort label-2346
SELECT + 50 + - COUNT( * ) FROM tab0 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-2346
SELECT + 50 + - COUNT ( * ) FROM tab0 AS cor0
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2347
SELECT ALL + CAST( 54 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
54
54
54

skipif mysql # not compatible
query I rowsort label-2347
SELECT ALL + CAST ( 54 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
54
54
54

query I rowsort
SELECT ALL + 82 + - col1 AS col2 FROM tab2 AS cor0
----
15
31
5

query III rowsort
SELECT * FROM tab0 WHERE + + col0 NOT BETWEEN col0 AND NULL
----

query II rowsort
SELECT DISTINCT 35 AS col2, col1 FROM tab2
----
35
51
35
67
35
77

query I rowsort
SELECT - 53 FROM tab0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 + + 90 + col0 * + col2 * - 47 col2 FROM tab2 AS cor0 WHERE NULL IN ( col1 + - col2, 24 * col1, - 68 - + 94, - + 79 / + col0 )
----

query I rowsort
SELECT DISTINCT 82 - 92 AS col2 FROM tab0 AS cor0
----
-10

query I rowsort
SELECT ALL + col2 + + + col2 AS col1 FROM tab1 AS cor0
----
118
136
192

query I rowsort
SELECT - col1 + col1 + + 96 FROM tab1 AS cor0
----
96
96
96

query I rowsort
SELECT DISTINCT col0 + + ( - 76 ) - - + 91 AS col2 FROM tab0 AS cor0
----
102
112
30

query III rowsort
SELECT * FROM tab2 WHERE 9 + + col1 + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2358
SELECT ALL + col2 - col1 DIV - 83 - + 89 + + - col0 * - + col1 AS col2 FROM tab2
----
2280
4879
4994

skipif mysql # not compatible
query I rowsort label-2358
SELECT ALL + col2 - col1 / - 83 - + 89 + + - col0 * - + col1 AS col2 FROM tab2
----
2280
4879
4994

onlyif mysql # aggregate syntax: 
query I rowsort label-2359
SELECT COUNT( * ) + - MAX( ALL + 46 ) AS col1 FROM tab2
----
-43

skipif mysql # not compatible
query I rowsort label-2359
SELECT COUNT ( * ) + - MAX ( ALL + 46 ) AS col1 FROM tab2
----
-43

query I rowsort
SELECT col0 + + - ( + 80 ) FROM tab2
----
-16
-34
-5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2361
SELECT DISTINCT CAST( col0 AS SIGNED ) AS col2, 25 FROM tab0
----
15
25
87
25
97
25

skipif mysql # not compatible
query II rowsort label-2361
SELECT DISTINCT CAST ( col0 AS INTEGER ) AS col2, 25 FROM tab0
----
15
25
87
25
97
25

onlyif mysql # aggregate syntax: 
query I rowsort label-2362
SELECT + - COUNT( * ) AS col1 FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2362
SELECT + - COUNT ( * ) AS col1 FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col1 ) col0 FROM tab1
----
-14
-47
-5

query I rowsort
SELECT DISTINCT + 81 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
81

query I rowsort
SELECT - - col2 + 0 * + col0 AS col2 FROM tab0 AS cor0 WHERE NOT + col2 <= + 23
----
47
99

query II rowsort
SELECT 76 AS col2, - col1 AS col0 FROM tab1 AS cor0
----
76
-14
76
-47
76
-5

query I rowsort
SELECT DISTINCT - + ( + - col0 ) FROM tab2 AS cor0
----
46
64
75

query II rowsort
SELECT DISTINCT + + 93 AS col2, col0 FROM tab1 cor0
----
93
51
93
85
93
91

query II rowsort
SELECT DISTINCT 63, - col0 * - - 53 + - col1 AS col0 FROM tab1 AS cor0
----
63
-2717
63
-4510
63
-4870

onlyif mysql # aggregate syntax: 
query I rowsort label-2370
SELECT ALL ( MAX( + - col2 ) ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-2370
SELECT ALL ( MAX ( + - col2 ) ) FROM tab0
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-2371
SELECT 94 DIV + col0 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-2371
SELECT 94 / + col0 FROM tab2
----
1
1
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2372
SELECT CAST( - ( + - 13 ) AS SIGNED ) FROM tab2 AS cor0
----
13
13
13

skipif mysql # not compatible
query I rowsort label-2372
SELECT CAST ( - ( + - 13 ) AS INTEGER ) FROM tab2 AS cor0
----
13
13
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2373
SELECT DISTINCT + - 30 + + 76 DIV - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-2373
SELECT DISTINCT + - 30 + + 76 / - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-2374
SELECT DISTINCT COUNT( * ) + + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2374
SELECT DISTINCT COUNT ( * ) + + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
6

query I rowsort
SELECT ALL ( 37 ) AS col1 FROM tab0 AS cor0
----
37
37
37

query I rowsort
SELECT ALL + 7 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2377
SELECT 32 DIV + COUNT( * ) FROM tab2
----
10

skipif mysql # not compatible
query I rowsort label-2377
SELECT 32 / + COUNT ( * ) FROM tab2
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-2378
SELECT + COUNT( * ), + 67 AS col2 FROM tab0 AS cor0
----
3
67

skipif mysql # not compatible
query II rowsort label-2378
SELECT + COUNT ( * ), + 67 AS col2 FROM tab0 AS cor0
----
3
67

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND + ( + + 87 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2380
SELECT ( MAX( col0 ) ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-2380
SELECT ( MAX ( col0 ) ) FROM tab0 AS cor0
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2381
SELECT + CAST( NULL AS SIGNED ) * COUNT( + col0 ) * - 52 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2381
SELECT + CAST ( NULL AS INTEGER ) * COUNT ( + col0 ) * - 52 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2382
SELECT DISTINCT - - COUNT( * ) * + 85 * + COUNT( * ) FROM tab0 AS cor0
----
765

skipif mysql # not compatible
query I rowsort label-2382
SELECT DISTINCT - - COUNT ( * ) * + 85 * + COUNT ( * ) FROM tab0 AS cor0
----
765

onlyif mysql # aggregate syntax: 
query I rowsort label-2383
SELECT DISTINCT + MAX( ALL + - col0 ) + - + COUNT( * ) FROM tab2 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-2383
SELECT DISTINCT + MAX ( ALL + - col0 ) + - + COUNT ( * ) FROM tab2 AS cor0
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-2384
SELECT ALL + + col0 DIV + - col0 + - col2 - - + 46 + + ( + + 63 ) * - + col0 FROM tab0 AS cor0
----
-5446
-6165
-947

skipif mysql # not compatible
query I rowsort label-2384
SELECT ALL + + col0 / + - col0 + - col2 - - + 46 + + ( + + 63 ) * - + col0 FROM tab0 AS cor0
----
-5446
-6165
-947

query I rowsort
SELECT + col0 * - - 89 * + - col0 + + col1 AS col0 FROM tab2 AS cor0 WHERE + col1 IS NULL
----

query I rowsort
SELECT DISTINCT - col2 * 70 AS col0 FROM tab0
----
-3290
-6930
-700

query I rowsort
SELECT 16 * col0 AS col0 FROM tab2
----
1024
1200
736

query II rowsort
SELECT + col0, - col0 + - - 55 AS col1 FROM tab0
----
15
40
87
-32
97
-42

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT ( + col2 ) IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2390
SELECT * FROM tab2 AS cor0 WHERE NOT 85 * - CAST( col1 AS SIGNED ) NOT BETWEEN - col2 AND NULL
----

skipif mysql # not compatible
query III rowsort label-2390
SELECT * FROM tab2 AS cor0 WHERE NOT 85 * - CAST ( col1 AS INTEGER ) NOT BETWEEN - col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2391
SELECT DISTINCT - col0 / CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2391
SELECT DISTINCT - col0 / CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2392
SELECT + + MIN( ALL - col1 ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-2392
SELECT + + MIN ( ALL - col1 ) FROM tab2 AS cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2393
SELECT ALL + COUNT( - 56 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2393
SELECT ALL + COUNT ( - 56 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( 60 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 + + - 11 AS col1 FROM tab2 cor0
----
-57
-75
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 * 31 + col0 + 21 col1 FROM tab2 AS cor0
----
-1155
-1702
-646

onlyif mysql # DIV for integer division: 
query I rowsort label-2397
SELECT - + col1 DIV + + 51 AS col1 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2397
SELECT - + col1 / + + 51 AS col1 FROM tab0 AS cor0
----
-1
0
0

query II rowsort
SELECT - 78 AS col1, + col2 FROM tab2
----
-78
23
-78
40
-78
58

query I rowsort
SELECT col1 * + 72 AS col1 FROM tab1
----
1008
3384
360

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - 31 <> + - 5
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2401
SELECT - 60 + + col1 DIV col1 AS col1 FROM tab2
----
-59
-59
-59

skipif mysql # not compatible
query I rowsort label-2401
SELECT - 60 + + col1 / col1 AS col1 FROM tab2
----
-59
-59
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col2 + - 91 col0 FROM tab1
----
-91
-91
-91

onlyif mysql # DIV for integer division: 
query III rowsort label-2403
SELECT ALL - col0 DIV + col1 + + + col2 AS col2, col1 col1, 37 * + col0 AS col1 FROM tab1
----
9 values hashing to 7df92ffee66e676ecd77d8cfa5148d13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-2403
SELECT ALL - col0 / + col1 + + + col2 AS col2, col1 col1, 37 * + col0 AS col1 FROM tab1
----
9 values hashing to 7df92ffee66e676ecd77d8cfa5148d13

query III rowsort
SELECT * FROM tab0 WHERE + 28 <= ( NULL )
----

query I rowsort
SELECT - ( - 33 ) * - 4 + + - col0 + - col2 AS col0 FROM tab2
----
-201
-236
-265

query I rowsort
SELECT DISTINCT + - col1 * col0 * - + col0 + - 70 FROM tab2 AS cor0
----
107846
315322
376805

query I rowsort
SELECT ALL - col2 + 38 + col0 - - - ( - col2 ) AS col1 FROM tab1 AS cor0
----
123
129
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2408
SELECT 80 + - SUM( ALL col2 ) FROM tab1 AS cor0
----
-143

skipif mysql # not compatible
query I rowsort label-2408
SELECT 80 + - SUM ( ALL col2 ) FROM tab1 AS cor0
----
-143

query I rowsort
SELECT + col2 + 22 * + - col0 AS col2 FROM tab2 AS cor0
----
-1368
-1592
-989

query I rowsort
SELECT ALL col0 - - col1 + col1 + + - col1 + + - col1 AS col2 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT DISTINCT - + col2 * - - col2 + - 77 FROM tab0 AS cor0
----
-177
-2286
-9878

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2412
SELECT ALL CAST( col1 AS SIGNED ) + + 42 FROM tab2 AS cor0
----
109
119
93

skipif mysql # not compatible
query I rowsort label-2412
SELECT ALL CAST ( col1 AS INTEGER ) + + 42 FROM tab2 AS cor0
----
109
119
93

query II rowsort
SELECT + col2, + 52 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2414
SELECT DISTINCT - - ( ( + + SUM( + + col2 ) ) ), 41 AS col2 FROM tab1 AS cor0
----
223
41

skipif mysql # not compatible
query II rowsort label-2414
SELECT DISTINCT - - ( ( + + SUM ( + + col2 ) ) ), 41 AS col2 FROM tab1 AS cor0
----
223
41

onlyif mysql # aggregate syntax: 
query II rowsort label-2415
SELECT ALL - COUNT( * ) col1, + 44 FROM tab2 cor0 WHERE NOT ( NULL ) IS NULL
----
0
44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2415
SELECT ALL - COUNT ( * ) col1, + 44 FROM tab2 cor0 WHERE NOT ( NULL ) IS NULL
----
0
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( col2 ) col2 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2417
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL < CAST( 37 AS SIGNED ) - + - col2
----

skipif mysql # not compatible
query III rowsort label-2417
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL < CAST ( 37 AS INTEGER ) - + - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2418
SELECT + 73 DIV col0 * col1 AS col0 FROM tab2 AS cor0
----
0
51
77

skipif mysql # not compatible
query I rowsort label-2418
SELECT + 73 / col0 * col1 AS col0 FROM tab2 AS cor0
----
0
51
77

query I rowsort
SELECT DISTINCT col1 * - 28 FROM tab2
----
-1428
-1876
-2156

query I rowsort
SELECT col2 + + + ( - col0 ) FROM tab0 AS cor0
----
-77
2
32

onlyif mysql # DIV for integer division: 
query I rowsort label-2421
SELECT + col0 DIV 57 + - col0 AS col0 FROM tab0 cor0
----
-15
-86
-96

skipif mysql # not compatible
query I rowsort label-2421
SELECT + col0 / 57 + - col0 AS col0 FROM tab0 cor0
----
-15
-86
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2422
SELECT ALL COUNT( * ) * - COUNT( * ) FROM tab0 AS cor0 WHERE - 35 + - CAST( - 72 AS SIGNED ) >= + col0
----
-1

skipif mysql # not compatible
query I rowsort label-2422
SELECT ALL COUNT ( * ) * - COUNT ( * ) FROM tab0 AS cor0 WHERE - 35 + - CAST ( - 72 AS INTEGER ) >= + col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2423
SELECT - + CAST( + col0 AS SIGNED ) + + + col2 AS col1 FROM tab1 AS cor0
----
-23
-26
45

skipif mysql # not compatible
query I rowsort label-2423
SELECT - + CAST ( + col0 AS INTEGER ) + + + col2 AS col1 FROM tab1 AS cor0
----
-23
-26
45

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2424
SELECT - + CAST( NULL AS SIGNED ) * - - col2 - col2 + - + col0 AS col1, col0 * 8 + + 67 FROM tab2 AS cor0
----
NULL
435
NULL
579
NULL
667

skipif mysql # not compatible
query II rowsort label-2424
SELECT - + CAST ( NULL AS INTEGER ) * - - col2 - col2 + - + col0 AS col1, col0 * 8 + + 67 FROM tab2 AS cor0
----
NULL
435
NULL
579
NULL
667

query I rowsort
SELECT 40 * - - col2 + - - col2 AS col1 FROM tab0 AS cor0
----
1927
4059
410

query I rowsort
SELECT DISTINCT + 90 * - + col1 * + - col1 * - - ( - + col0 ) FROM tab1 AS cor0
----
-18091710
-191250
-899640

query II rowsort
SELECT - col2 AS col1, 47 FROM tab1 cor0
----
-59
47
-68
47
-96
47

query I rowsort
SELECT DISTINCT + col0 + col0 FROM tab1 WHERE NOT ( NOT NULL NOT IN ( col1 + - col0, - col2 ) )
----

query III rowsort
SELECT * FROM tab0 WHERE ( NOT NULL NOT BETWEEN + 46 AND ( + ( + col0 ) ) )
----

query I rowsort
SELECT DISTINCT 12 * + 76 FROM tab1
----
912

onlyif mysql # DIV for integer division: 
query I rowsort label-2431
SELECT - ( - - col2 ) DIV col1 * + col2 - ( 73 ) FROM tab2
----
-73
-73
-73

skipif mysql # not compatible
query I rowsort label-2431
SELECT - ( - - col2 ) / col1 * + col2 - ( 73 ) FROM tab2
----
-73
-73
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-2432
SELECT - 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-2432
SELECT - col0 / + col2 col0 FROM tab0
----
-8
0
0

query I rowsort
SELECT + ( - ( - 13 ) ) FROM tab0
----
13
13
13

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2434
SELECT ALL + CAST( NULL AS DECIMAL ) * - col0 + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2434
SELECT ALL + CAST ( NULL AS REAL ) * - col0 + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 45 + + 62 FROM tab1 cor0
----
17
17
17

query I rowsort
SELECT ALL - col1 - + - col1 + - col0 FROM tab1
----
-51
-85
-91

query III rowsort
SELECT * FROM tab0 WHERE - col0 IN ( + col0, - 94, - 68 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2438
SELECT ALL - MIN( ALL + 10 ) FROM tab1
----
-10

skipif mysql # not compatible
query I rowsort label-2438
SELECT ALL - MIN ( ALL + 10 ) FROM tab1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-2439
SELECT DISTINCT - COUNT( * ) * + - COUNT( * ) + - COUNT( * ) FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
6

skipif mysql # not compatible
query I rowsort label-2439
SELECT DISTINCT - COUNT ( * ) * + - COUNT ( * ) + - COUNT ( * ) FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
6

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 22 <= 1 + 91 + col1
----

query I rowsort
SELECT ALL - col1 * - 74 FROM tab1
----
1036
3478
370

query II rowsort
SELECT + col0, + col2 FROM tab1 WHERE NOT - + 40 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2443
SELECT ALL + 76 * COUNT( * ) FROM tab2
----
228

skipif mysql # not compatible
query I rowsort label-2443
SELECT ALL + 76 * COUNT ( * ) FROM tab2
----
228

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2444
SELECT + - 16 FROM tab1 WHERE NOT CAST( + col2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2444
SELECT + - 16 FROM tab1 WHERE NOT CAST ( + col2 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2445
SELECT DISTINCT + MIN( ( + col0 ) ) AS col1 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-2445
SELECT DISTINCT + MIN ( ( + col0 ) ) AS col1 FROM tab2 AS cor0
----
46

onlyif mysql # DIV for integer division: 
query II rowsort label-2446
SELECT ALL - ( + - 97 ) AS col1, - col1 DIV + + col2 FROM tab0 AS cor0
----
97
-1
97
-2
97
0

skipif mysql # not compatible
query II rowsort label-2446
SELECT ALL - ( + - 97 ) AS col1, - col1 / + + col2 FROM tab0 AS cor0
----
97
-1
97
-2
97
0

query I rowsort
SELECT DISTINCT - 59 * 60 FROM tab2
----
-3540

query I rowsort
SELECT - + 17 AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4

onlyif mysql # DIV for integer division: 
query I rowsort label-2449
SELECT ALL col2 DIV 24 AS col2 FROM tab1
----
2
2
4

skipif mysql # not compatible
query I rowsort label-2449
SELECT ALL col2 / 24 AS col2 FROM tab1
----
2
2
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2450
SELECT 97 + COUNT( * ) + - 65 FROM tab0 WHERE NOT + 8 IS NULL
----
35

skipif mysql # not compatible
query I rowsort label-2450
SELECT 97 + COUNT ( * ) + - 65 FROM tab0 WHERE NOT + 8 IS NULL
----
35

query I rowsort
SELECT DISTINCT + + 96 + - - col1 FROM tab1 AS cor0
----
101
110
143

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2452
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN + 21 + + CAST( NULL AS SIGNED ) * - + 14 AND + + 36
----

skipif mysql # not compatible
query III rowsort label-2452
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN + 21 + + CAST ( NULL AS INTEGER ) * - + 14 AND + + 36
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL > 20 * - col1
----

query I rowsort
SELECT + + col2 + - 91 FROM tab1 AS cor0
----
-23
-32
5

onlyif mysql # DIV for integer division: 
query I rowsort label-2455
SELECT DISTINCT + - col0 DIV + ( + ( - col0 ) ) AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2455
SELECT DISTINCT + - col0 / + ( + ( - col0 ) ) AS col2 FROM tab1 AS cor0
----
1

query I rowsort
SELECT - - ( - ( - ( - col1 ) ) ) + + ( + + col0 ) FROM tab0 AS cor0
----
-66
66
96

query I rowsort
SELECT ALL - 11 + - ( - col0 ) AS col1 FROM tab2
----
35
53
64

onlyif mysql # aggregate syntax: 
query II rowsort label-2458
SELECT DISTINCT + 33 col1, - COUNT( * ) AS col0 FROM tab1
----
33
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2458
SELECT DISTINCT + 33 col1, - COUNT ( * ) AS col0 FROM tab1
----
33
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2459
SELECT + col0 + col2 + + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2459
SELECT + col0 + col2 + + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2460
SELECT MAX( + - col1 ) + + - 48 / - ( CAST( NULL AS SIGNED ) ) * - COUNT( * ) + - COUNT( * ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2460
SELECT MAX ( + - col1 ) + + - 48 / - ( CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT - col2 AS col1 FROM tab1 WHERE 83 - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2462
SELECT ALL CAST( - 5 AS SIGNED ) AS col2 FROM tab1
----
-5
-5
-5

skipif mysql # not compatible
query I rowsort label-2462
SELECT ALL CAST ( - 5 AS INTEGER ) AS col2 FROM tab1
----
-5
-5
-5

query I rowsort
SELECT - 83 + + - 82 * ( - col0 ) AS col2 FROM tab2 WHERE + 88 * - 61 - - 68 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2464
SELECT CAST( - col2 AS SIGNED ), + col2 FROM tab1 AS cor0
----
-59
59
-68
68
-96
96

skipif mysql # not compatible
query II rowsort label-2464
SELECT CAST ( - col2 AS INTEGER ), + col2 FROM tab1 AS cor0
----
-59
59
-68
68
-96
96

query II rowsort
SELECT - 13 AS col2, + col0 FROM tab2 AS cor0
----
-13
46
-13
64
-13
75

query I rowsort
SELECT ALL - + col2 + - ( + col1 ) * + col2 FROM tab1 AS cor0
----
-1440
-3264
-354

query I rowsort
SELECT DISTINCT col0 + + + ( col0 ) * 7 FROM tab0 AS cor0
----
120
696
776

query I rowsort
SELECT + col1 - - + 92 AS col2 FROM tab0
----
113
173
93

query I rowsort
SELECT ALL + ( 2 ) * + - col2 FROM tab1 AS cor0
----
-118
-136
-192

query I rowsort
SELECT - ( + 6 ) AS col0 FROM tab1 cor0
----
-6
-6
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2471
SELECT + SUM( DISTINCT - ( - ( + + col0 ) ) ) AS col0 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-2471
SELECT + SUM ( DISTINCT - ( - ( + + col0 ) ) ) AS col0 FROM tab1 AS cor0
----
227

query II rowsort
SELECT DISTINCT ( - col1 ), 5 - + col1 AS col2 FROM tab2 AS cor0
----
-51
-46
-67
-62
-77
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 89 col2 FROM tab1 AS cor0
----
89
89
89

query II rowsort
SELECT DISTINCT + 95 AS col1, col1 FROM tab1
----
95
14
95
47
95
5

query II rowsort
SELECT ALL 15, col0 FROM tab0
----
15
15
15
87
15
97

query II rowsort
SELECT DISTINCT - 36, 68 AS col1 FROM tab0
----
-36
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + 85 col1 FROM tab2 AS cor0
----
-4335
-5695
-6545

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2478
SELECT AVG ( CAST( NULL AS DECIMAL ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2478
SELECT AVG ( CAST ( NULL AS REAL ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2479
SELECT + MAX( DISTINCT + 15 ) AS col2 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-2479
SELECT + MAX ( DISTINCT + 15 ) AS col2 FROM tab0 AS cor0
----
15

query I rowsort
SELECT + col0 * + + ( + col1 ) + col0 FROM tab2 AS cor0
----
2392
4992
5100

onlyif mysql # aggregate syntax: 
query I rowsort label-2481
SELECT DISTINCT MIN( DISTINCT + 13 ) FROM tab1
----
13

skipif mysql # not compatible
query I rowsort label-2481
SELECT DISTINCT MIN ( DISTINCT + 13 ) FROM tab1
----
13

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 97 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 55 AS col2 FROM tab2 WHERE + col1 IS NOT NULL
----
55
55
55

query I rowsort
SELECT ALL + 81 + - col2 AS col2 FROM tab2 WHERE col0 >= + 20
----
23
41
58

query I rowsort
SELECT ALL ( 73 ) + - col0 * col0 FROM tab0
----
-152
-7496
-9336

onlyif mysql # aggregate syntax: 
query I rowsort label-2486
SELECT + 99 * - ( + COUNT( * ) ) FROM tab2
----
-297

skipif mysql # not compatible
query I rowsort label-2486
SELECT + 99 * - ( + COUNT ( * ) ) FROM tab2
----
-297

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2487
SELECT + CAST( NULL AS DECIMAL ) * + AVG ( - col2 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2487
SELECT + CAST ( NULL AS REAL ) * + AVG ( - col2 ) FROM tab0
----
NULL

query I rowsort
SELECT - col2 * 1 FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2489
SELECT ALL COUNT( * ) * 35 FROM tab1 WHERE 14 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2489
SELECT ALL COUNT ( * ) * 35 FROM tab1 WHERE 14 BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT DISTINCT + 48 * + 83 AS col1 FROM tab1
----
3984

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 NOT BETWEEN col2 AND ( NULL )
----

query I rowsort
SELECT col1 * - 38 FROM tab1
----
-1786
-190
-532

onlyif mysql # aggregate syntax: 
query I rowsort label-2493
SELECT COUNT( * ) * 24 AS col2 FROM tab2
----
72

skipif mysql # not compatible
query I rowsort label-2493
SELECT COUNT ( * ) * 24 AS col2 FROM tab2
----
72

query III rowsort
SELECT * FROM tab1 WHERE + 5 * col2 + col0 NOT IN ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2495
SELECT COUNT( * ) + COUNT( * ) AS col2 FROM tab1 WHERE ( + 56 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2495
SELECT COUNT ( * ) + COUNT ( * ) AS col2 FROM tab1 WHERE ( + 56 ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2496
SELECT ALL COUNT( * ) * + 64 AS col2 FROM tab0
----
192

skipif mysql # not compatible
query I rowsort label-2496
SELECT ALL COUNT ( * ) * + 64 AS col2 FROM tab0
----
192

onlyif mysql # DIV for integer division: 
query I rowsort label-2497
SELECT ALL 92 DIV col0 AS col2 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-2497
SELECT ALL 92 / col0 AS col2 FROM tab2
----
1
1
2

query I rowsort
SELECT DISTINCT col0 - col0 FROM tab1 WHERE NOT - 24 - 85 IS NULL
----
0

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab1 WHERE NOT col2 > 37 * + col0
----
-59
-68
-96

query I rowsort
SELECT DISTINCT - 3 FROM tab1 WHERE NOT col1 IS NULL
----
-3

query I rowsort
SELECT + 24 - 63 FROM tab2 WHERE - 68 IS NOT NULL
----
-39
-39
-39

query I rowsort
SELECT DISTINCT + 75 * + col1 FROM tab0 WHERE NULL NOT BETWEEN + col1 AND - 20 * - col1 + + col1 * + col2
----

query III rowsort
SELECT * FROM tab0 WHERE ( - 15 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2504
SELECT MAX( + col2 ) DIV COUNT( * ) AS col2 FROM tab2
----
19

skipif mysql # not compatible
query I rowsort label-2504
SELECT MAX ( + col2 ) / COUNT ( * ) AS col2 FROM tab2
----
19

query I rowsort
SELECT ALL 55 AS col1 FROM tab2 WHERE col0 + col0 * - col2 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN col2 + 62 AND + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 61 + - 40 col0 FROM tab1
----
21
21
21

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2508
SELECT - CAST( col2 AS SIGNED ) DIV + col1 FROM tab0
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-2508
SELECT - CAST ( col2 AS INTEGER ) / + col1 FROM tab0
----
-99
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2509
SELECT ALL SUM( + col2 ) AS col0 FROM tab2 WHERE NULL NOT IN ( - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2509
SELECT ALL SUM ( + col2 ) AS col0 FROM tab2 WHERE NULL NOT IN ( - col2 )
----
NULL

query I rowsort
SELECT ALL - col2 * 44 - + col0 AS col2 FROM tab1
----
-2681
-3083
-4275

onlyif mysql # DIV for integer division: 
query I rowsort label-2511
SELECT 90 DIV ( - col0 ) AS col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2511
SELECT 90 / ( - col0 ) AS col0 FROM tab2
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2512
SELECT - MIN( - 35 ) * 81 FROM tab0 AS cor0 WHERE + 49 NOT IN ( 49 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2512
SELECT - MIN ( - 35 ) * 81 FROM tab0 AS cor0 WHERE + 49 NOT IN ( 49 )
----
NULL

query I rowsort
SELECT ALL + 66 - 97 FROM tab0 AS cor0
----
-31
-31
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-2514
SELECT ALL COUNT( DISTINCT ( col2 ) ) FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( col2 / + 6 )
----
0

skipif mysql # not compatible
query I rowsort label-2514
SELECT ALL COUNT ( DISTINCT ( col2 ) ) FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( col2 / + 6 )
----
0

query I rowsort
SELECT 27 FROM tab2 AS cor0 CROSS JOIN tab0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 * col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2517
SELECT col2 DIV + 67 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2517
SELECT col2 / + 67 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2518
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - CAST( col0 AS DECIMAL ) = 67
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2518
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - CAST ( col0 AS REAL ) = 67
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2519
SELECT MIN( DISTINCT col2 ) AS col2 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-2519
SELECT MIN ( DISTINCT col2 ) AS col2 FROM tab0 AS cor0
----
10

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 * col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + 87 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - ( + 86 - col2 ) col1 FROM tab0 AS cor0
----
-1833
-760
1287

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2523
SELECT CAST( NULL AS SIGNED ) + - 13 FROM tab1 AS cor0 WHERE NOT - 32 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2523
SELECT CAST ( NULL AS INTEGER ) + - 13 FROM tab1 AS cor0 WHERE NOT - 32 IS NULL
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2524
SELECT ALL 70 DIV + 89 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2524
SELECT ALL 70 / + 89 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2525
SELECT + MAX( ( col0 ) ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-2525
SELECT + MAX ( ( col0 ) ) FROM tab0
----
97

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 * 12 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 * ( col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2528
SELECT + MIN( - - col2 ) AS col1 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-2528
SELECT + MIN ( - - col2 ) AS col1 FROM tab1
----
59

query I rowsort
SELECT - col2 * col1 AS col1 FROM tab1 WHERE NOT + col0 + 77 = + col2
----
-1344
-295
-3196

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN + col0 AND col0
----

query I rowsort
SELECT ALL + ( - - 73 ) FROM tab1
----
73
73
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2532
SELECT DISTINCT MAX( - col1 ) + - SUM( + col2 + - col1 ) FROM tab0
----
-54

skipif mysql # not compatible
query I rowsort label-2532
SELECT DISTINCT MAX ( - col1 ) + - SUM ( + col2 + - col1 ) FROM tab0
----
-54

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 54 + - col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + ( 54 ) - 11 * + col0 col1 FROM tab2 AS cor0
----
-503
-727
-838

query I rowsort
SELECT DISTINCT - - 11 FROM tab0 cor0
----
11

query I rowsort
SELECT + 92 AS col2 FROM tab1 WHERE ( NOT NULL <= + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 70 + + col2 NOT BETWEEN 98 AND ( + col2 * col1 )
----
15
81
47

query I rowsort
SELECT DISTINCT col2 + 5 FROM tab0 AS cor0 WHERE col1 * - 4 IS NOT NULL
----
104
15
52

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN + col1 + + + col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2540
SELECT DISTINCT col2 + CAST( NULL AS SIGNED ) + + col0 col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2540
SELECT DISTINCT col2 + CAST ( NULL AS INTEGER ) + + col0 col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - 48 + + col0 + + col1 FROM tab0 AS cor0
----
48
50
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2542
SELECT ALL - COUNT( * ) + + 42 FROM tab2 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-2542
SELECT ALL - COUNT ( * ) + + 42 FROM tab2 AS cor0
----
39

query I rowsort
SELECT + 53 + 70 - col1 AS col1 FROM tab2 AS cor0
----
46
56
72

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 + - col1 NOT BETWEEN NULL AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 64 + + + ( col2 ) + - 33 * + col1 col1 FROM tab2 cor0
----
-1596
-2089
-2437

query I rowsort
SELECT col2 * + col2 AS col0 FROM tab2 WHERE ( col1 * + col0 ) IS NOT NULL
----
1600
3364
529

query I rowsort
SELECT + col0 + - col0 + + col1 + - col0 * col1 FROM tab1
----
-420
-4230
-700

query I rowsort
SELECT DISTINCT + 46 * col1 - - col1 * col1 AS col0 FROM tab0
----
10287
1407
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2549
SELECT MAX( + + col2 ) + - COUNT( * ) col1 FROM tab0
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2549
SELECT MAX ( + + col2 ) + - COUNT ( * ) col1 FROM tab0
----
96

query I rowsort
SELECT ALL - col2 * 37 * - 36 AS col0 FROM tab1
----
127872
78588
90576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 93 * + 76 * + col2 col2 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2552
SELECT + col0 * 53 FROM tab0 cor0 WHERE - col0 / + col2 + - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2552
SELECT + col0 * 53 FROM tab0 cor0 WHERE - col0 / + col2 + - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( - col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 BETWEEN ( NULL ) AND + col0
----
51
14
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2555
SELECT - MAX( DISTINCT - col2 ) AS col0 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-2555
SELECT - MAX ( DISTINCT - col2 ) AS col0 FROM tab1 AS cor0
----
59

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL > - col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2557
SELECT ALL 25 AS col0, col1 DIV + col2 FROM tab2 cor0
----
25
1
25
1
25
2

skipif mysql # not compatible
query II rowsort label-2557
SELECT ALL 25 AS col0, col1 / + col2 FROM tab2 cor0
----
25
1
25
1
25
2

query I rowsort
SELECT + - col2 * + - col0 FROM tab2 AS cor0
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-2559
SELECT DISTINCT - COUNT( DISTINCT 67 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2559
SELECT DISTINCT - COUNT ( DISTINCT 67 ) FROM tab0 AS cor0
----
-1

query IIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2561
SELECT * FROM tab2 WHERE NOT NULL = - CAST( + - col2 AS SIGNED ) + + col1 - - col2 * - 75 * - 90
----

skipif mysql # not compatible
query III rowsort label-2561
SELECT * FROM tab2 WHERE NOT NULL = - CAST ( + - col2 AS INTEGER ) + + col1 - - col2 * - 75 * - 90
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col1, + col2 FROM tab2
----
46
23
64
40
75
58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2563
SELECT ALL - - 60 + - CAST( NULL AS DECIMAL ) * + - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2563
SELECT ALL - - 60 + - CAST ( NULL AS REAL ) * + - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2564
SELECT 88 * + + 84 * - - ( CAST( NULL AS SIGNED ) ) / + 32 + + col2 + - 79 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2564
SELECT 88 * + + 84 * - - ( CAST ( NULL AS INTEGER ) ) / + 32 + + col2 + - 79 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( - col0 ) * 57 + + - 57 AS col0 FROM tab2 AS cor0
----
-2679
-3705
-4332

onlyif mysql # aggregate syntax: 
query I rowsort label-2566
SELECT - COUNT( * ) + + + 8 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-2566
SELECT - COUNT ( * ) + + + 8 FROM tab1
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-2567
SELECT + 65 DIV col0 AS col1 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2567
SELECT + 65 / col0 AS col1 FROM tab2 AS cor0
----
0
1
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - - 51 ) IN ( 79 / col1 + col1 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 93 = NULL
----

query I rowsort
SELECT DISTINCT + 16 + - ( ( + col0 ) ) AS col0 FROM tab2 AS cor0
----
-30
-48
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2571
SELECT ALL + MAX( ALL - col1 ) + + - 84 col1 FROM tab1 AS cor0
----
-89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2571
SELECT ALL + MAX ( ALL - col1 ) + + - 84 col1 FROM tab1 AS cor0
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2572
SELECT * FROM tab0 WHERE + CAST( + col1 AS SIGNED ) <> - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2572
SELECT * FROM tab0 WHERE + CAST ( + col1 AS INTEGER ) <> - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 - 60 + 73 + + col0 * col2 * - col1, col1 + + col1 col2 FROM tab1
----
-25067
10
-290870
94
-68545
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2574
SELECT - COUNT( * ) - + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2574
SELECT - COUNT ( * ) - + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - ( + - col1 ) * + - 89 * + + 14 + - 31 FROM tab2
----
-63577
-83513
-95973

onlyif mysql # DIV for integer division: 
query I rowsort label-2576
SELECT + col2 + - col1 DIV + col0 FROM tab0
----
10
42
99

skipif mysql # not compatible
query I rowsort label-2576
SELECT + col2 + - col1 / + col0 FROM tab0
----
10
42
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2577
SELECT col2 * col2 AS col2 FROM tab1 WHERE NULL BETWEEN - col2 * + col2 AND - - CAST( ( - - col0 ) AS SIGNED ) - CAST( - col2 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2577
SELECT col2 * col2 AS col2 FROM tab1 WHERE NULL BETWEEN - col2 * + col2 AND - - CAST ( ( - - col0 ) AS INTEGER ) - CAST ( - col2 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2578
SELECT 91 * + COUNT( * ) AS col1 FROM tab0
----
273

skipif mysql # not compatible
query I rowsort label-2578
SELECT 91 * + COUNT ( * ) AS col1 FROM tab0
----
273

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2579
SELECT + 24 DIV + - MAX( DISTINCT col0 ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2579
SELECT + 24 / + - MAX ( DISTINCT col0 ) AS col2 FROM tab2
----
0

query I rowsort
SELECT ALL + - 10 FROM tab2 WHERE NULL <> 20
----

query I rowsort
SELECT - col0 FROM tab2 WHERE NOT - col1 NOT IN ( - 36 )
----

query I rowsort
SELECT DISTINCT col0 * 56 * + col0 * + ( + - col2 ) FROM tab1 AS cor0
----
-13982976
-23871400
-31534048

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - ( + 65 ) + col0 - - + ( - col2 ) IS NOT NULL
----

query I rowsort
SELECT 51 + - - 92 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 750c11171f0669c2fa0d412d84db5fa1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2585
SELECT ALL - + CAST( + 94 AS SIGNED ) AS col0, ( + col0 ) AS col0 FROM tab1 AS cor0
----
-94
51
-94
85
-94
91

skipif mysql # not compatible
query II rowsort label-2585
SELECT ALL - + CAST ( + 94 AS INTEGER ) AS col0, ( + col0 ) AS col0 FROM tab1 AS cor0
----
-94
51
-94
85
-94
91

query I rowsort
SELECT col2 AS col2 FROM tab1 AS cor0 WHERE NOT + ( col1 ) IS NULL
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col2 FROM tab2 AS cor0 WHERE NOT NULL > + 17 * col0 - + 80
----

query I rowsort
SELECT DISTINCT - - col0 * + ( col0 ) + 12 FROM tab1 AS cor0
----
2613
7237
8293

query I rowsort
SELECT + 35 * + col1 * col1 AS col0 FROM tab0 AS cor0
----
15435
229635
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2590
SELECT DISTINCT col2 * - col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL <> + ( + CAST( + 26 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-2590
SELECT DISTINCT col2 * - col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL <> + ( + CAST ( + 26 AS INTEGER ) )
----

query I rowsort
SELECT ALL - col2 * + - 31 AS col2 FROM tab0
----
1457
3069
310

query II rowsort
SELECT + ( + 29 ) * col0 AS col2, - 93 + - 63 AS col0 FROM tab2
----
1334
-156
1856
-156
2175
-156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2593
SELECT ALL - CAST( NULL AS SIGNED ) * - + COUNT( * ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2593
SELECT ALL - CAST ( NULL AS INTEGER ) * - + COUNT ( * ) AS col1 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, 82 col2 FROM tab0
----
10
82
47
82
99
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2595
SELECT DISTINCT + 98 * + 32 * + COUNT( * ) FROM tab2
----
9408

skipif mysql # not compatible
query I rowsort label-2595
SELECT DISTINCT + 98 * + 32 * + COUNT ( * ) FROM tab2
----
9408

onlyif mysql # aggregate syntax: 
query II rowsort label-2596
SELECT DISTINCT - COUNT( * ) - - 71 AS col2, ( + COUNT( * ) ) AS col1 FROM tab2 WHERE col0 >= ( col0 )
----
68
3

skipif mysql # not compatible
query II rowsort label-2596
SELECT DISTINCT - COUNT ( * ) - - 71 AS col2, ( + COUNT ( * ) ) AS col1 FROM tab2 WHERE col0 >= ( col0 )
----
68
3

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + 82 IS NOT NULL
----

query I rowsort
SELECT - 62 * + - 72 AS col1 FROM tab1
----
4464
4464
4464

query III rowsort
SELECT * FROM tab2 WHERE 10 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2600
SELECT DISTINCT + - col1 DIV - + 54 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2600
SELECT DISTINCT + - col1 / - + 54 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL + ( + + col1 ) + - 14 AS col2 FROM tab2 AS cor0
----
37
53
63

query I rowsort
SELECT + col1 * col1 * 99 + + + col2 FROM tab0 AS cor0
----
198
43669
649586

query I rowsort
SELECT DISTINCT + 9 + - 41 AS col0 FROM tab1 AS cor0
----
-32

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col2 BETWEEN + col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 97 + + 43 col2 FROM tab1 AS cor0
----
-54
-54
-54

query I rowsort
SELECT ALL col2 + - + col0 AS col1 FROM tab1 AS cor0
----
-23
-26
45

query I rowsort
SELECT ALL - + 64 - - + 44 AS col0 FROM tab2 AS cor0
----
-20
-20
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-2608
SELECT DISTINCT 68 - - - MAX( + + col0 ) FROM tab0
----
-29

skipif mysql # not compatible
query I rowsort label-2608
SELECT DISTINCT 68 - - - MAX ( + + col0 ) FROM tab0
----
-29

query I rowsort
SELECT DISTINCT ( + 47 ) * ( col0 ) FROM tab2
----
2162
3008
3525

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - 75 > - - col0
----
85
5
59
91
47
68

query I rowsort
SELECT + ( - 28 ) AS col0 FROM tab0
----
-28
-28
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-2612
SELECT COUNT( * ) FROM tab1 WHERE NOT + - 18 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2612
SELECT COUNT ( * ) FROM tab1 WHERE NOT + - 18 IS NOT NULL
----
0

query II rowsort
SELECT DISTINCT - 79, 40 AS col0 FROM tab0 WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2614
SELECT - COUNT( * ) * + COUNT( * ) + + COUNT( ALL + col0 ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-2614
SELECT - COUNT ( * ) * + COUNT ( * ) + + COUNT ( ALL + col0 ) FROM tab2 AS cor0
----
-6

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col1 + - 9 ) BETWEEN col0 + + 72 AND 57
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2616
SELECT ALL + CAST( + col1 AS SIGNED ) AS col2, 36 FROM tab1 AS cor0
----
14
36
47
36
5
36

skipif mysql # not compatible
query II rowsort label-2616
SELECT ALL + CAST ( + col1 AS INTEGER ) AS col2, 36 FROM tab1 AS cor0
----
14
36
47
36
5
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 59 * + col0 col0 FROM tab0
----
5133
5723
885

query I rowsort
SELECT - - col2 + - + col1 + - col0 FROM tab2 AS cor0
----
-101
-74
-84

query I rowsort
SELECT + ( - + col2 ) FROM tab2 AS cor0 WHERE NOT col0 + col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col2 >= + - col0
----
15
81
47
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2621
SELECT - + col1 + 79 * - CAST( NULL AS SIGNED ), col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-2621
SELECT - + col1 + 79 * - CAST ( NULL AS INTEGER ), col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

query II rowsort
SELECT + + col2 * - col1 * - - col1 + + 30, col1 * 59 * 87 AS col1 FROM tab1 AS cor0
----
-1445
25665
-150182
241251
-18786
71862

query I rowsort
SELECT + 18 + - - col1 FROM tab0 AS cor0
----
19
39
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, + col1 col0 FROM tab1 cor0
----
14
14
47
47
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2625
SELECT ALL + MAX( ALL - + 23 ) FROM tab0 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-2625
SELECT ALL + MAX ( ALL - + 23 ) FROM tab0 AS cor0
----
-23

query I rowsort
SELECT DISTINCT col0 * - col0 * + 27 + - 9 - + 77 FROM tab0 AS cor0
----
-204449
-254129
-6161

onlyif mysql # aggregate syntax: 
query I rowsort label-2627
SELECT ALL + 57 * COUNT( * ) * - 22 col2 FROM tab2 AS cor0
----
-3762

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2627
SELECT ALL + 57 * COUNT ( * ) * - 22 col2 FROM tab2 AS cor0
----
-3762

query I rowsort
SELECT + col1 * - 15 FROM tab0
----
-1215
-15
-315

query I rowsort
SELECT DISTINCT - 75 - + 72 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2630
SELECT * FROM tab2 WHERE NULL NOT IN ( + CAST( NULL AS SIGNED ), col2 )
----

skipif mysql # not compatible
query III rowsort label-2630
SELECT * FROM tab2 WHERE NULL NOT IN ( + CAST ( NULL AS INTEGER ), col2 )
----

query I rowsort
SELECT - col1 FROM tab0 WHERE col0 * - ( - + col0 ) IS NULL
----

query I rowsort
SELECT DISTINCT col0 + + ( - - col1 ) + - col2 AS col2 FROM tab2
----
101
74
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col2 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2634
SELECT ALL * FROM tab0 WHERE NOT + col1 + CAST( - - 74 AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2634
SELECT ALL * FROM tab0 WHERE NOT + col1 + CAST ( - - 74 AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2635
SELECT ALL + col0 + + 25 DIV - 6 AS col2 FROM tab2
----
42
60
71

skipif mysql # not compatible
query I rowsort label-2635
SELECT ALL + col0 + + 25 / - 6 AS col2 FROM tab2
----
42
60
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2636
SELECT DISTINCT - 44 * + 77 + - COUNT( * ) AS col0 FROM tab1
----
-3391

skipif mysql # not compatible
query I rowsort label-2636
SELECT DISTINCT - 44 * + 77 + - COUNT ( * ) AS col0 FROM tab1
----
-3391

onlyif mysql # aggregate syntax: 
query I rowsort label-2637
SELECT DISTINCT + COUNT( * ) + + COUNT( * ) - 89 FROM tab1 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-2637
SELECT DISTINCT + COUNT ( * ) + + COUNT ( * ) - 89 FROM tab1 AS cor0
----
-83

query II rowsort
SELECT DISTINCT col2 AS col0, + col0 FROM tab0 AS cor0 WHERE + 93 = + + col1 + - + col2
----

query II rowsort
SELECT col0 + col1 AS col1, col0 FROM tab1 AS cor0
----
138
91
65
51
90
85

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT IN ( - 93, + ( - col2 ) ) AND NOT ( - + ( - + 80 ) * + col2 < NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + + 58 - - ( ( - col0 ) ) col2 FROM tab0 AS cor0
----
2711
493
5645

query I rowsort
SELECT - 45 / - 97 + + ( + - col0 ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col0 * + col2 * + col2 AS col1 FROM tab0 WHERE 11 + + col0 IS NOT NULL
----
33135
8700
950697

onlyif mysql # aggregate syntax: 
query I rowsort label-2644
SELECT - MAX( ALL - col2 ) AS col1 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-2644
SELECT - MAX ( ALL - col2 ) AS col1 FROM tab1
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-2645
SELECT 4 DIV + col1 * - - 29 * + col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2645
SELECT 4 / + col1 * - - 29 * + col2 FROM tab1
----
0
0
0

query I rowsort
SELECT 6 * - col1 + + col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT - - 71 AS col2 FROM tab2 AS cor0
----
71
71
71

query III rowsort
SELECT * FROM tab1 cor0 WHERE + 34 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 10 * - ( + 69 ) + - col0 col1 FROM tab0 AS cor0
----
593
603
675

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2650
SELECT + CAST( NULL AS SIGNED ) - + col0 + col2 AS col0, col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-2650
SELECT + CAST ( NULL AS INTEGER ) - + col0 + col2 AS col0, col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

onlyif mysql # aggregate syntax: 
query II rowsort label-2651
SELECT DISTINCT + SUM( - 95 ) + + COUNT( * ) AS col2, - 90 AS col1 FROM tab0 AS cor0
----
-282
-90

skipif mysql # not compatible
query II rowsort label-2651
SELECT DISTINCT + SUM ( - 95 ) + + COUNT ( * ) AS col2, - 90 AS col1 FROM tab0 AS cor0
----
-282
-90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2652
SELECT CAST( NULL AS SIGNED ) col0, - 65 FROM tab2 AS cor0
----
NULL
-65
NULL
-65
NULL
-65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2652
SELECT CAST ( NULL AS INTEGER ) col0, - 65 FROM tab2 AS cor0
----
NULL
-65
NULL
-65
NULL
-65

query I rowsort
SELECT DISTINCT - - 95 FROM tab2 cor0
----
95

query I rowsort
SELECT ALL col0 AS col0 FROM tab1 AS cor0 WHERE - 6 >= col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2655
SELECT ALL - 4 DIV + - col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2655
SELECT ALL - 4 / + - col2 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 35 col0 FROM tab2
----
-35
-35
-35

query II rowsort
SELECT 50 AS col2, 18 AS col2 FROM tab1
----
50
18
50
18
50
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2658
SELECT - ( MIN( - 47 ) ) * + - 70 FROM tab0 AS cor0
----
-3290

skipif mysql # not compatible
query I rowsort label-2658
SELECT - ( MIN ( - 47 ) ) * + - 70 FROM tab0 AS cor0
----
-3290

onlyif mysql # aggregate syntax: 
query I rowsort label-2659
SELECT ALL COUNT( * ) * + 15 AS col2 FROM tab2 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-2659
SELECT ALL COUNT ( * ) * + 15 AS col2 FROM tab2 AS cor0
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2660
SELECT - CAST( NULL AS SIGNED ) * - COUNT( * ) + 30 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2660
SELECT - CAST ( NULL AS INTEGER ) * - COUNT ( * ) + 30 AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2661
SELECT ALL - ( - - 72 ) AS col1, COUNT( * ) FROM tab2
----
-72
3

skipif mysql # not compatible
query II rowsort label-2661
SELECT ALL - ( - - 72 ) AS col1, COUNT ( * ) FROM tab2
----
-72
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 / + + col2 >= NULL
----

query II rowsort
SELECT ALL + 48 + col0 AS col0, + col2 * - - col1 * 14 AS col1 FROM tab0 AS cor0
----
135
2940
145
1386
63
53298

query I rowsort
SELECT DISTINCT - + col1 + col0 + - col1 AS col2 FROM tab2 cor0
----
-56
-59
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT col2 + + - col1, col1 * + - ( + col1 ) AS col0, + col1 * 4 col2 FROM tab2 cor0
----
9 values hashing to e460b483ec04b14950deabddf6a54af0

query I rowsort
SELECT DISTINCT - ( + ( col2 ) ) + col0 FROM tab1 cor0
----
-45
23
26

query I rowsort
SELECT - 56 + - 49 FROM tab2
----
-105
-105
-105

query I rowsort
SELECT 41 + col0 AS col2 FROM tab2
----
105
116
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2669
SELECT ALL - CAST( NULL AS SIGNED ) * col1 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2669
SELECT ALL - CAST ( NULL AS INTEGER ) * col1 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + + ( - + col1 ) + + - 21 AS col1 FROM tab0 WHERE - col1 * - + 63 + - + 32 IS NOT NULL
----
-87
45
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - - col1 col2 FROM tab0
----
100
128
31

query I rowsort
SELECT 82 + - - 2 AS col1 FROM tab2
----
84
84
84

query I rowsort
SELECT ALL 82 FROM tab0, tab1 AS cor0 WHERE NOT NULL > NULL
----

query II rowsort
SELECT col2 + - ( 31 ) * 73, col2 FROM tab2
----
-2205
58
-2223
40
-2240
23

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 15 * + col1 + + col1 >= NULL
----

query I rowsort
SELECT col1 * - col1 * - col0 AS col2 FROM tab1 AS cor0 WHERE col1 * col0 < + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2677
SELECT ALL - col2 + - - CAST( - col1 AS SIGNED ), col0 * + 95 AS col1 FROM tab0 AS cor0
----
-100
9215
-128
1425
-31
8265

skipif mysql # not compatible
query II rowsort label-2677
SELECT ALL - col2 + - - CAST ( - col1 AS INTEGER ), col0 * + 95 AS col1 FROM tab0 AS cor0
----
-100
9215
-128
1425
-31
8265

query I rowsort
SELECT DISTINCT col2 + + col2 + + col1 + ( col0 ) * col2 * - ( - + col2 ) * + + 94 FROM tab0 AS cor0
----
3114865
817841
89365717

query I rowsort
SELECT ALL + ( + - 52 ) FROM tab1
----
-52
-52
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-2680
SELECT DISTINCT MAX( + + col1 ) AS col0, 16 FROM tab2 AS cor0
----
77
16

skipif mysql # not compatible
query II rowsort label-2680
SELECT DISTINCT MAX ( + + col1 ) AS col0, 16 FROM tab2 AS cor0
----
77
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2681
SELECT + + 80 * + + SUM( DISTINCT + col0 ) AS col1 FROM tab1 cor0
----
18160

skipif mysql # not compatible
query I rowsort label-2681
SELECT + + 80 * + + SUM ( DISTINCT + col0 ) AS col1 FROM tab1 cor0
----
18160

onlyif mysql # aggregate syntax: 
query I rowsort label-2682
SELECT ALL + MAX( - 53 ) FROM tab2 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-2682
SELECT ALL + MAX ( - 53 ) FROM tab2 AS cor0
----
-53

query I rowsort
SELECT + - col2 + 58 FROM tab0 cor0 WHERE NOT ( - 60 + col1 = + + col1 )
----
-41
11
48

onlyif mysql # DIV for integer division: 
query I rowsort label-2684
SELECT ALL 60 DIV + col0 AS col0 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2684
SELECT ALL 60 / + col0 AS col0 FROM tab2
----
0
0
1

query I rowsort
SELECT DISTINCT - col2 * + 9 AS col2 FROM tab1
----
-531
-612
-864

query I rowsort
SELECT ALL ( + + ( + col1 ) ) * + col1 AS col1 FROM tab0
----
1
441
6561

query II rowsort
SELECT ALL - + 38, col2 AS col1 FROM tab0 WHERE NULL IS NULL
----
-38
10
-38
47
-38
99

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 > - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - 89 col2 FROM tab2
----
4539
5963
6853

query I rowsort
SELECT + col2 * + col0 AS col2 FROM tab2 AS cor0 WHERE NOT 46 > NULL
----

query I rowsort
SELECT + 19 * - 5 AS col1 FROM tab0 AS cor0
----
-95
-95
-95

query I rowsort
SELECT col0 * + col0 + + col1 * - 93 AS col2 FROM tab1 cor0
----
1299
3910
6760

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 + + col2 + + 86 + - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2694
SELECT + + ( - + ( - col0 ) ) AS col0 FROM tab1 WHERE NOT - + col0 > + + CAST( - col0 AS SIGNED )
----
51
85
91

skipif mysql # not compatible
query I rowsort label-2694
SELECT + + ( - + ( - col0 ) ) AS col0 FROM tab1 WHERE NOT - + col0 > + + CAST ( - col0 AS INTEGER )
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 col1 FROM tab1 WHERE NOT NULL < - + 80 * - - col2 - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2696
SELECT + COUNT( * ) + 62 col0 FROM tab2 AS cor0
----
65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2696
SELECT + COUNT ( * ) + 62 col0 FROM tab2 AS cor0
----
65

query II rowsort
SELECT DISTINCT - col2 AS col1, - col1 AS col0 FROM tab0 AS cor0
----
-10
-21
-47
-81
-99
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2698
SELECT - - CAST( NULL AS SIGNED ), 62 AS col2 FROM tab1 AS cor0
----
NULL
62
NULL
62
NULL
62

skipif mysql # not compatible
query II rowsort label-2698
SELECT - - CAST ( NULL AS INTEGER ), 62 AS col2 FROM tab1 AS cor0
----
NULL
62
NULL
62
NULL
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2699
SELECT - COUNT( DISTINCT + col2 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2699
SELECT - COUNT ( DISTINCT + col2 ) AS col1 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2700
SELECT ALL - MAX( col2 ) AS col0 FROM tab1 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-2700
SELECT ALL - MAX ( col2 ) AS col0 FROM tab1 cor0
----
-96

query I rowsort
SELECT + 35 AS col0 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
35
35
35

query I rowsort
SELECT DISTINCT col2 + - 56 FROM tab2 cor0
----
-16
-33
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2703
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT 13 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2703
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT 13 IS NOT NULL
----
0

query I rowsort
SELECT col0 * + 6 FROM tab1
----
306
510
546

query I rowsort
SELECT 92 * 55 AS col2 FROM tab1
----
5060
5060
5060

query I rowsort
SELECT col0 * + 13 FROM tab2
----
598
832
975

query I rowsort
SELECT DISTINCT - col2 + + 8 AS col0 FROM tab0
----
-2
-39
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2708
SELECT - COUNT( DISTINCT - - 81 ) - - + 37 + + - 86 AS col0 FROM tab1
----
-50

skipif mysql # not compatible
query I rowsort label-2708
SELECT - COUNT ( DISTINCT - - 81 ) - - + 37 + + - 86 AS col0 FROM tab1
----
-50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 - col1, + col0 * + - col1 col2 FROM tab0 AS cor0
----
-66
-1215
66
-1827
96
-97

query I rowsort
SELECT DISTINCT - - col0 AS col0 FROM tab0 WHERE NOT + - col0 IN ( - + col0 * - col1 + - 59 + - + col0, ( - + 21 ) + + col1 )
----
15
87
97

query I rowsort
SELECT DISTINCT + col1 - - col1 FROM tab1
----
10
28
94

query I rowsort
SELECT + col2 * - col2 * col1 FROM tab2 AS cor0
----
-123200
-225388
-26979

onlyif mysql # aggregate syntax: 
query I rowsort label-2713
SELECT ALL - MAX( col1 ) col2 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2713
SELECT ALL - MAX ( col1 ) col2 FROM tab0 AS cor0
----
-81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2714
SELECT + + CAST( + ( 59 ) AS DECIMAL ) AS col1 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2714
SELECT + + CAST ( + ( 59 ) AS REAL ) AS col1 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2715
SELECT 79 * CAST( AVG ( 79 ) AS SIGNED ) DIV - - COUNT( * ) AS col2 FROM tab0 AS cor0
----
2080

skipif mysql # not compatible
query I rowsort label-2715
SELECT 79 * CAST ( AVG ( 79 ) AS INTEGER ) / - - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
2080

query I rowsort
SELECT + 49 * + 78 * col2 * + col2 AS col1 FROM tab1 AS cor0
----
13304382
17672928
35223552

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col1, 91 * + - col0 * + col2 FROM tab1 AS cor0
----
-51
-445536
-85
-456365
-91
-563108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2718
SELECT + col0 * - + CAST( - + col0 AS SIGNED ) AS col1 FROM tab2
----
2116
4096
5625

skipif mysql # not compatible
query I rowsort label-2718
SELECT + col0 * - + CAST ( - + col0 AS INTEGER ) AS col1 FROM tab2
----
2116
4096
5625

query I rowsort
SELECT - + col0 AS col0 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2720
SELECT ALL + + COUNT( ALL + col0 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2720
SELECT ALL + + COUNT ( ALL + col0 ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2721
SELECT 78 DIV - + col0 FROM tab0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-2721
SELECT 78 / - + col0 FROM tab0
----
-5
0
0

query I rowsort
SELECT DISTINCT + col1 + col0 * + ( + col0 ) FROM tab0
----
306
7590
9410

query I rowsort
SELECT DISTINCT + - col0 + - + col0 FROM tab2 AS cor0
----
-128
-150
-92

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( 8 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 39 + + 28 FROM tab2 cor0
----
-11

query I rowsort
SELECT ALL + + 38 + - ( - col0 ) FROM tab1 AS cor0
----
123
129
89

query I rowsort
SELECT col0 AS col1 FROM tab2 AS cor0 WHERE 93 IS NULL
----

query I rowsort
SELECT + 27 + - col1 + 13 AS col1 FROM tab1 AS cor0
----
-7
26
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2729
SELECT DISTINCT ( col2 ) * 80 - 41 + + col0 - CAST( + col1 AS SIGNED ) * + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2729
SELECT DISTINCT ( col2 ) * 80 - 41 + + col0 - CAST ( + col1 AS INTEGER ) * + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2730
SELECT DISTINCT col1 AS col0, ( - 63 ) DIV col1 AS col2 FROM tab1
----
14
-4
47
-1
5
-12

skipif mysql # not compatible
query II rowsort label-2730
SELECT DISTINCT col1 AS col0, ( - 63 ) / col1 AS col2 FROM tab1
----
14
-4
47
-1
5
-12

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2731
SELECT col0 + - + col0 - - - col2 + + + ( - ( + col2 ) ) + - - col2 * col1 DIV - + CAST( col0 AS SIGNED ) FROM tab2
----
-128
-167
-71

skipif mysql # not compatible
query I rowsort label-2731
SELECT col0 + - + col0 - - - col2 + + + ( - ( + col2 ) ) + - - col2 * col1 / - + CAST ( col0 AS INTEGER ) FROM tab2
----
-128
-167
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-2732
SELECT DISTINCT - COUNT( * ) * 61 FROM tab1
----
-183

skipif mysql # not compatible
query I rowsort label-2732
SELECT DISTINCT - COUNT ( * ) * 61 FROM tab1
----
-183

onlyif mysql # DIV for integer division: 
query I rowsort label-2733
SELECT col0 DIV 79 + col2 AS col0 FROM tab0
----
100
11
47

skipif mysql # not compatible
query I rowsort label-2733
SELECT col0 / 79 + col2 AS col0 FROM tab0
----
100
11
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2734
SELECT + COUNT( * ) + + + 79 FROM tab2
----
82

skipif mysql # not compatible
query I rowsort label-2734
SELECT + COUNT ( * ) + + + 79 FROM tab2
----
82

query I rowsort
SELECT ALL + col2 FROM tab2 WHERE NOT 29 * col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2736
SELECT DISTINCT ( + 15 ) + + CAST( 63 AS SIGNED ) FROM tab1 cor0
----
78

skipif mysql # not compatible
query I rowsort label-2736
SELECT DISTINCT ( + 15 ) + + CAST ( 63 AS INTEGER ) FROM tab1 cor0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2737
SELECT ALL + - 91 * ( + COUNT( * ) ) + 98 AS col0 FROM tab0 AS cor0
----
-175

skipif mysql # not compatible
query I rowsort label-2737
SELECT ALL + - 91 * ( + COUNT ( * ) ) + 98 AS col0 FROM tab0 AS cor0
----
-175

onlyif mysql # aggregate syntax: 
query I rowsort label-2738
SELECT DISTINCT + - ( + MAX( - - 67 ) ) + - 57 AS col0 FROM tab2 AS cor0
----
-124

skipif mysql # not compatible
query I rowsort label-2738
SELECT DISTINCT + - ( + MAX ( - - 67 ) ) + - 57 AS col0 FROM tab2 AS cor0
----
-124

onlyif mysql # aggregate syntax: 
query I rowsort label-2739
SELECT + ( 44 ) - - COUNT( * ) AS col0 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-2739
SELECT + ( 44 ) - - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2740
SELECT - COUNT( * ) DIV + - 78 - - - COUNT( * ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2740
SELECT - COUNT ( * ) / + - 78 - - - COUNT ( * ) FROM tab0 AS cor0
----
-3

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 + - col0 <= - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 + + 26 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( ( - col1 ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col0 * - 52 + - col2 FROM tab2 AS cor0
----
-2415
-3368
-3958

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 + + ( + col0 ) + + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2746
SELECT + - CAST( NULL AS SIGNED ) / ( + COUNT( * ) ) * 91 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2746
SELECT + - CAST ( NULL AS INTEGER ) / ( + COUNT ( * ) ) * 91 AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - col2 * 66 AS col0 FROM tab1 AS cor0
----
-3894
-4488
-6336

query I rowsort
SELECT ALL - ( - 39 ) AS col0 FROM tab0 AS cor0
----
39
39
39

query I rowsort
SELECT 68 * + 7 FROM tab2 AS cor0
----
476
476
476

query I rowsort
SELECT - col0 * - + col1 + - col2 + 44 * - 38 + col1 AS col0 FROM tab1 AS cor0
----
-1040
-1301
2584

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN 56 + col2 + - - 69 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2752
SELECT COUNT( * ) AS col2, - COUNT( * ) FROM tab1
----
3
-3

skipif mysql # not compatible
query II rowsort label-2752
SELECT COUNT ( * ) AS col2, - COUNT ( * ) FROM tab1
----
3
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2753
SELECT col2 * + + 91 AS col2 FROM tab2 WHERE NOT CAST( - col1 AS SIGNED ) * + 80 <> - - col0 + - - col1 + + 17 + + 52 * 50 AND NULL IN ( - col0 * col2 )
----

skipif mysql # not compatible
query I rowsort label-2753
SELECT col2 * + + 91 AS col2 FROM tab2 WHERE NOT CAST ( - col1 AS INTEGER ) * + 80 <> - - col0 + - - col1 + + 17 + + 52 * 50 AND NULL IN ( - col0 * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2754
SELECT ALL + SUM( ALL - 95 ) FROM tab1
----
-285

skipif mysql # not compatible
query I rowsort label-2754
SELECT ALL + SUM ( ALL - 95 ) FROM tab1
----
-285

query I rowsort
SELECT + col2 FROM tab2 WHERE NOT ( - + col2 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 75 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2757
SELECT DISTINCT MAX( + 50 ) + + - 20 FROM tab1
----
30

skipif mysql # not compatible
query I rowsort label-2757
SELECT DISTINCT MAX ( + 50 ) + + - 20 FROM tab1
----
30

query II rowsort
SELECT 37 AS col0, col0 AS col1 FROM tab1
----
37
51
37
85
37
91

onlyif mysql # DIV for integer division: 
query I rowsort label-2759
SELECT ALL + 86 + + + col1 DIV + col0 + 22 FROM tab0 AS cor0
----
108
108
113

skipif mysql # not compatible
query I rowsort label-2759
SELECT ALL + 86 + + + col1 / + col0 + 22 FROM tab0 AS cor0
----
108
108
113

query II rowsort
SELECT DISTINCT 46 AS col1, + ( + + col0 ) + col2 FROM tab0 AS cor0
----
46
196
46
62
46
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + 30 col1 FROM tab1 AS cor0
----
35
44
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 * - col2 col1, + 88 AS col0 FROM tab2 AS cor0 WHERE - col1 <> NULL
----

query I rowsort
SELECT ALL 68 + - col1 AS col2 FROM tab1
----
21
54
63

query I rowsort
SELECT 95 + - 12 - - col2 AS col1 FROM tab2
----
106
123
141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2765
SELECT + CAST( NULL AS SIGNED ) + AVG ( col2 ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2765
SELECT + CAST ( NULL AS INTEGER ) + AVG ( col2 ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT - 51 * - - col0 + - col2 FROM tab1 AS cor0
----
-2697
-4394
-4709

query I rowsort
SELECT ALL + col1 + 36 FROM tab1 AS cor0
----
41
50
83

query I rowsort
SELECT - 47 AS col2 FROM tab0 AS cor0 WHERE ( - 90 ) IS NOT NULL
----
-47
-47
-47

query I rowsort
SELECT ALL + col1 * ( 18 ) + - col0 AS col0 FROM tab2 AS cor0
----
1131
1322
872

query I rowsort
SELECT + - 48 AS col2 FROM tab0 AS cor0
----
-48
-48
-48

query I rowsort
SELECT ALL - 53 + - col2 AS col1 FROM tab2 AS cor0
----
-111
-76
-93

query I rowsort
SELECT + 92 - + col2 + - 45 * col0 FROM tab1
----
-2299
-3792
-4071

query I rowsort
SELECT col0 * - + col1 - col0 AS col2 FROM tab0
----
-1230
-1914
-194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 AS col0, col2 col0 FROM tab0 WHERE + 79 > col2
----
15
47
87
10

query I rowsort
SELECT ALL + col2 + - col0 FROM tab1 WHERE NOT ( NOT ( NULL IS NULL ) )
----
-23
-26
45

query III rowsort
SELECT * FROM tab0 WHERE + 56 NOT BETWEEN - col1 AND NULL
----

query I rowsort
SELECT ALL + - col2 FROM tab1 WHERE NOT + 90 <> NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + col0 - - col0 IN ( + col0, col2 / - col2 - + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2779
SELECT ALL ( - 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-2779
SELECT ALL ( - CAST ( + col0 AS INTEGER ) ) col2 FROM tab0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2780
SELECT ALL - SUM( - - 68 ) + - 51 FROM tab2
----
-255

skipif mysql # not compatible
query I rowsort label-2780
SELECT ALL - SUM ( - - 68 ) + - 51 FROM tab2
----
-255

onlyif mysql # aggregate syntax: 
query II rowsort label-2781
SELECT DISTINCT + + COUNT( * ) AS col2, - COUNT( * ) FROM tab1 AS cor0 WHERE NOT - 88 IS NULL
----
3
-3

skipif mysql # not compatible
query II rowsort label-2781
SELECT DISTINCT + + COUNT ( * ) AS col2, - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - 88 IS NULL
----
3
-3

query II rowsort
SELECT + + 68 * + col0 + - + col0, + col2 + - + 52 AS col0 FROM tab0 AS cor0
----
1005
-5
5829
-42
6499
47

query II rowsort
SELECT DISTINCT + 12 AS col2, + col1 * 67 AS col1 FROM tab1
----
12
3149
12
335
12
938

onlyif mysql # aggregate syntax: 
query I rowsort label-2784
SELECT COUNT( * ) * 83 AS col2 FROM tab1
----
249

skipif mysql # not compatible
query I rowsort label-2784
SELECT COUNT ( * ) * 83 AS col2 FROM tab1
----
249

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2785
SELECT ALL + CAST( NULL AS SIGNED ), CAST( NULL AS SIGNED ) / - - col0 AS col1 FROM tab1
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2785
SELECT ALL + CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) / - - col0 AS col1 FROM tab1
----
NULL
NULL
NULL
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2786
SELECT + COUNT( * ) col0, - CAST( - 90 AS SIGNED ) AS col0 FROM tab2
----
3
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2786
SELECT + COUNT ( * ) col0, - CAST ( - 90 AS INTEGER ) AS col0 FROM tab2
----
3
90

query II rowsort
SELECT 31, 14 AS col2 FROM tab2
----
31
14
31
14
31
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2788
SELECT DISTINCT + CAST( - ( - col1 ) AS SIGNED ) FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-2788
SELECT DISTINCT + CAST ( - ( - col1 ) AS INTEGER ) FROM tab0
----
1
21
81

query I rowsort
SELECT - + 74 FROM tab0 AS cor0 WHERE NOT ( ( + col2 * + 74 < + - 87 ) )
----
-74
-74
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-2790
SELECT DISTINCT ( + 27 ) * + + COUNT( * ) + 23 FROM tab1 AS cor0
----
104

skipif mysql # not compatible
query I rowsort label-2790
SELECT DISTINCT ( + 27 ) * + + COUNT ( * ) + 23 FROM tab1 AS cor0
----
104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2791
SELECT - - col2 * - - col0 FROM tab0 AS cor0 WHERE NOT ( - col0 IN ( + + col1 * + 79, + 77 * + col1, CAST( NULL AS SIGNED ), - + 70, + 77, - 18 * - CAST( NULL AS SIGNED ) + + - ( - + col2 ) ) )
----

skipif mysql # not compatible
query I rowsort label-2791
SELECT - - col2 * - - col0 FROM tab0 AS cor0 WHERE NOT ( - col0 IN ( + + col1 * + 79, + 77 * + col1, CAST ( NULL AS INTEGER ), - + 70, + 77, - 18 * - CAST ( NULL AS INTEGER ) + + - ( - + col2 ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2792
SELECT DISTINCT COUNT( * ) AS col0 FROM tab2 WHERE NOT + col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2792
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab2 WHERE NOT + col2 IS NOT NULL
----
0

query I rowsort
SELECT - ( + + 75 ) FROM tab2
----
-75
-75
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-2794
SELECT - 45 DIV - ( + col2 ) FROM tab0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-2794
SELECT - 45 / - ( + col2 ) FROM tab0
----
0
0
4

query I rowsort
SELECT col1 * + + col2 * + col2 * + + col2 FROM tab0
----
21000
8409663
970299

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + 67 col2 FROM tab0
----
114
166
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2797
SELECT COUNT( * ) + - 92 AS col2 FROM tab2
----
-89

skipif mysql # not compatible
query I rowsort label-2797
SELECT COUNT ( * ) + - 92 AS col2 FROM tab2
----
-89

query II rowsort
SELECT ALL + col0 + - - ( - col1 ) AS col2, col1 FROM tab2
----
-13
77
-5
51
8
67

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col0 + + ( + col2 ) <> NULL
----

query I rowsort
SELECT DISTINCT col2 + 10 + + col2 FROM tab1 AS cor0
----
128
146
202

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2801
SELECT - 81 FROM tab2 AS cor0 WHERE - 94 * - CAST( NULL AS SIGNED ) = NULL
----

skipif mysql # not compatible
query I rowsort label-2801
SELECT - 81 FROM tab2 AS cor0 WHERE - 94 * - CAST ( NULL AS INTEGER ) = NULL
----

query I rowsort
SELECT ALL - - col2 AS col1 FROM tab1 AS cor0 WHERE NOT + col0 * + 23 IS NOT NULL
----

query I rowsort
SELECT + - col2 + - col2 + + - col0 + col1 * + - 25 FROM tab2 AS cor0
----
-1367
-1866
-2069

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 NOT BETWEEN + col1 + col1 AND NULL
----
15
81
47
87
21
10

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 * - 43 BETWEEN col1 - + col0 AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2806
SELECT - 59 + - - MIN( + ( + col0 ) ) FROM tab0 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-2806
SELECT - 59 + - - MIN ( + ( + col0 ) ) FROM tab0 AS cor0
----
-44

query I rowsort
SELECT DISTINCT + - 44 + 88 AS col1 FROM tab0 AS cor0
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2808
SELECT + col0 + - col2 / - - CAST( NULL AS SIGNED ) + 46 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2808
SELECT + col0 + - col2 / - - CAST ( NULL AS INTEGER ) + 46 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 26 + col0 AS col1 FROM tab2 AS cor0
----
20
38
49

query I rowsort
SELECT + AVG ( DISTINCT 35 ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2811
SELECT ( - ( + - 47 ) ) + + col0 * - CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) + - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2811
SELECT ( - ( + - 47 ) ) + + col0 * - CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) + - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * - 80 * + - ( col1 ) AS col1 FROM tab2
----
246400
310880
93840

onlyif mysql # aggregate syntax: 
query I rowsort label-2813
SELECT - SUM( DISTINCT - col1 ) * - + COUNT( * ) FROM tab0
----
-309

skipif mysql # not compatible
query I rowsort label-2813
SELECT - SUM ( DISTINCT - col1 ) * - + COUNT ( * ) FROM tab0
----
-309

query I rowsort
SELECT + col0 * + - 59 AS col2 FROM tab1
----
-3009
-5015
-5369

query II rowsort
SELECT col1 * - + 18 AS col2, + 80 FROM tab0 WHERE NULL IS NULL
----
-1458
80
-18
80
-378
80

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2816
SELECT DISTINCT - col1 * + CAST( NULL AS SIGNED ) AS col1, - 34 AS col0 FROM tab0 AS cor0
----
NULL
-34

skipif mysql # not compatible
query II rowsort label-2816
SELECT DISTINCT - col1 * + CAST ( NULL AS INTEGER ) AS col1, - 34 AS col0 FROM tab0 AS cor0
----
NULL
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2817
SELECT COUNT( * ) DIV - 4 AS col0, + 73 col1 FROM tab0 AS cor0
----
0
73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2817
SELECT COUNT ( * ) / - 4 AS col0, + 73 col1 FROM tab0 AS cor0
----
0
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2818
SELECT - - CAST( + col2 AS SIGNED ) * + + col1 + + ( - - CAST( + col0 AS SIGNED ) ) FROM tab1 AS cor0
----
1395
3287
380

skipif mysql # not compatible
query I rowsort label-2818
SELECT - - CAST ( + col2 AS INTEGER ) * + + col1 + + ( - - CAST ( + col0 AS INTEGER ) ) FROM tab1 AS cor0
----
1395
3287
380

query I rowsort
SELECT ALL - 21 + 30 FROM tab0 AS cor0 WHERE 42 NOT BETWEEN NULL AND col0 - + - col2
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL BETWEEN NULL AND + 96
----

query I rowsort
SELECT + col0 * + 43 FROM tab0 cor0
----
3741
4171
645

onlyif mysql # DIV for integer division: 
query I rowsort label-2822
SELECT ALL col2 DIV - - 29 AS col1 FROM tab2 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-2822
SELECT ALL col2 / - - 29 AS col1 FROM tab2 AS cor0
----
0
1
2

query I rowsort
SELECT - 55 * - + 42 AS col1 FROM tab1 AS cor0
----
2310
2310
2310

onlyif mysql # aggregate syntax: 
query I rowsort label-2824
SELECT - SUM( + 26 ) col2 FROM tab0 AS cor0
----
-78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2824
SELECT - SUM ( + 26 ) col2 FROM tab0 AS cor0
----
-78

query II rowsort
SELECT ALL + col1 AS col1, col2 FROM tab1
----
14
96
47
68
5
59

query I rowsort
SELECT col1 * - + col1 AS col0 FROM tab0 WHERE NOT ( NOT NULL IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2827
SELECT 30 col2, COUNT( * ) AS col0 FROM tab1
----
30
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2827
SELECT 30 col2, COUNT ( * ) AS col0 FROM tab1
----
30
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2828
SELECT ALL 79 + - COUNT( * ) AS col2 FROM tab1, tab1 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-2828
SELECT ALL 79 + - COUNT ( * ) AS col2 FROM tab1, tab1 AS cor0
----
70

query III rowsort
SELECT * FROM tab1 WHERE NOT 83 < 4
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 * + 28 + + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-2831
SELECT + + COUNT( * ) * COUNT( * ), + 61 * + ( + 69 ) AS col1 FROM tab1 AS cor0
----
9
4209

skipif mysql # not compatible
query II rowsort label-2831
SELECT + + COUNT ( * ) * COUNT ( * ), + 61 * + ( + 69 ) AS col1 FROM tab1 AS cor0
----
9
4209

onlyif mysql # aggregate syntax: 
query I rowsort label-2832
SELECT + MIN( ALL + - 65 ) FROM tab0 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-2832
SELECT + MIN ( ALL + - 65 ) FROM tab0 AS cor0
----
-65

query I rowsort
SELECT ALL col0 * col0 * + col0 FROM tab1 AS cor0 WHERE NULL IN ( - col1, col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2834
SELECT SUM( DISTINCT - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2834
SELECT SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 cor0
----
NULL

query I rowsort
SELECT + 33 + + + col2 FROM tab0 AS cor0
----
132
43
80

query I rowsort
SELECT ( + col1 ) + + + col0 AS col0 FROM tab0 AS cor0
----
108
96
98

query I rowsort
SELECT col0 + + 35 FROM tab1 AS cor0
----
120
126
86

query I rowsort
SELECT 17 FROM tab2 WHERE col0 + col0 IS NOT NULL
----
17
17
17

query I rowsort
SELECT DISTINCT + 16 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2840
SELECT * FROM tab2 WHERE NULL >= - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2840
SELECT * FROM tab2 WHERE NULL >= - - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL + 17 + - - col1 + col2 - - 12 AS col0 FROM tab0 AS cor0
----
129
157
60

query II rowsort
SELECT DISTINCT - col2 + + - 10, col0 AS col1 FROM tab2 AS cor0
----
-33
46
-50
64
-68
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2843
SELECT + - 48 DIV ( - ( - COUNT( * ) ) ) DIV + 42 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2843
SELECT + - 48 / ( - ( - COUNT ( * ) ) ) / + 42 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - + col0 - + - 50 FROM tab0 cor0
----
-37
-47
35

query II rowsort
SELECT DISTINCT - col0 + + col1 AS col0, col2 AS col1 FROM tab0 cor0
----
-66
10
-96
99
66
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2846
SELECT MAX( DISTINCT + 46 ) FROM tab2 WHERE + col0 IS NOT NULL
----
46

skipif mysql # not compatible
query I rowsort label-2846
SELECT MAX ( DISTINCT + 46 ) FROM tab2 WHERE + col0 IS NOT NULL
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2847
SELECT ALL COUNT( * ) FROM tab1 WHERE - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2847
SELECT ALL COUNT ( * ) FROM tab1 WHERE - col0 IS NULL
----
0

query I rowsort
SELECT DISTINCT 63 + - + 51 * - col1 AS col2 FROM tab0 WHERE NULL IS NULL
----
1134
114
4194

query I rowsort
SELECT col1 * - - 44 AS col2 FROM tab2
----
2244
2948
3388

query I rowsort
SELECT ALL + col2 * - - col1 AS col2 FROM tab2
----
1173
3080
3886

query I rowsort
SELECT col1 * 55 AS col1 FROM tab0
----
1155
4455
55

query I rowsort
SELECT ALL col1 FROM tab2 WHERE - 6 IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2853
SELECT MIN( 54 ) FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-2853
SELECT MIN ( 54 ) FROM tab1
----
54

query I rowsort
SELECT ALL col1 AS col0 FROM tab0 AS cor0 WHERE NOT + col2 * + col1 * - 72 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2855
SELECT - MAX( DISTINCT + col0 ) * COUNT( * ) AS col0 FROM tab0
----
-291

skipif mysql # not compatible
query I rowsort label-2855
SELECT - MAX ( DISTINCT + col0 ) * COUNT ( * ) AS col0 FROM tab0
----
-291

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2856
SELECT ALL - 42 DIV - + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
4

skipif mysql # not compatible
query I rowsort label-2856
SELECT ALL - 42 / - + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
4

onlyif mysql # DIV for integer division: 
query II rowsort label-2857
SELECT ALL col0 DIV - + col2 AS col2, col1 + + col0 FROM tab1 AS cor0
----
-1
138
-1
90
0
65

skipif mysql # not compatible
query II rowsort label-2857
SELECT ALL col0 / - + col2 AS col2, col1 + + col0 FROM tab1 AS cor0
----
-1
138
-1
90
0
65

query II rowsort
SELECT ALL - - col0 + - col0, col1 FROM tab1 cor0
----
0
14
0
47
0
5

query I rowsort
SELECT DISTINCT - 0 + - + col0 FROM tab0 AS cor0
----
-15
-87
-97

query II rowsort
SELECT ALL + - ( + + col0 ) AS col2, + col0 * + col2 * + + 54 AS col0 FROM tab2 cor0
----
-46
57132
-64
138240
-75
234900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2861
SELECT - CAST( COUNT( * ) AS SIGNED ) col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2861
SELECT - CAST ( COUNT ( * ) AS INTEGER ) col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2862
SELECT - + COUNT( ALL - 83 ) * + 7 - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2862
SELECT - + COUNT ( ALL - 83 ) * + 7 - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 38 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2864
SELECT 6 + + ( - CAST( - col1 AS SIGNED ) ) + + 71 * - col0 FROM tab1
----
-3601
-6024
-6408

skipif mysql # not compatible
query I rowsort label-2864
SELECT 6 + + ( - CAST ( - col1 AS INTEGER ) ) + + 71 * - col0 FROM tab1
----
-3601
-6024
-6408

onlyif mysql # aggregate syntax: 
query I rowsort label-2865
SELECT DISTINCT - MAX( DISTINCT col0 ) AS col1 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-2865
SELECT DISTINCT - MAX ( DISTINCT col0 ) AS col1 FROM tab0
----
-97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN + col2 AND + col2 * col2
----

query I rowsort
SELECT ALL - col2 + - + 82 * - - 13 AS col2 FROM tab1
----
-1125
-1134
-1162

query II rowsort
SELECT ALL + col1 AS col2, - col2 + + col2 AS col2 FROM tab2
----
51
0
67
0
77
0

query I rowsort
SELECT DISTINCT + col1 + - 37 AS col1 FROM tab1
----
-23
-32
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2870
SELECT ( 75 ) FROM tab2 WHERE ( + + CAST( NULL AS SIGNED ) ) * - col2 <= + 92 * + col2 - 14 - + col1
----

skipif mysql # not compatible
query I rowsort label-2870
SELECT ( 75 ) FROM tab2 WHERE ( + + CAST ( NULL AS INTEGER ) ) * - col2 <= + 92 * + col2 - 14 - + col1
----

query I rowsort
SELECT ( 39 ) + - 96 * - col2 FROM tab1 AS cor0
----
5703
6567
9255

onlyif mysql # DIV for integer division: 
query I rowsort label-2872
SELECT ALL + - ( + col0 ) + - col0 DIV + + col2 AS col2 FROM tab0 cor0
----
-15
-95
-97

skipif mysql # not compatible
query I rowsort label-2872
SELECT ALL + - ( + col0 ) + - col0 / + + col2 AS col2 FROM tab0 cor0
----
-15
-95
-97

query II rowsort
SELECT + - 72 AS col0, 65 AS col2 FROM tab1 cor0
----
-72
65
-72
65
-72
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2874
SELECT DISTINCT col1 - + + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2874
SELECT DISTINCT col1 - + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - 90 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2876
SELECT + col0 - + CAST( + col1 AS SIGNED ) * + 40 + - + col2 FROM tab1
----
-174
-1857
-605

skipif mysql # not compatible
query I rowsort label-2876
SELECT + col0 - + CAST ( + col1 AS INTEGER ) * + 40 + - + col2 FROM tab1
----
-174
-1857
-605

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2877
SELECT - col0 * + CAST( NULL AS SIGNED ) + col1 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2877
SELECT - col0 * + CAST ( NULL AS INTEGER ) + col1 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2878
SELECT DISTINCT + AVG ( DISTINCT + ( CAST( NULL AS SIGNED ) ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2878
SELECT DISTINCT + AVG ( DISTINCT + ( CAST ( NULL AS INTEGER ) ) ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2879
SELECT DISTINCT + COUNT( * ) + 0 AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2879
SELECT DISTINCT + COUNT ( * ) + 0 AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-2880
SELECT + + 95 AS col2, COUNT( * ) + + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
95
6

skipif mysql # not compatible
query II rowsort label-2880
SELECT + + 95 AS col2, COUNT ( * ) + + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
95
6

query I rowsort
SELECT DISTINCT + col2 * + + col2 AS col2 FROM tab0 AS cor0
----
100
2209
9801

query I rowsort
SELECT ALL - + col0 / + col2 - col0 AS col0 FROM tab1 cor0 WHERE NULL = ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2883
SELECT col1 DIV + - 2 AS col0 FROM tab1
----
-2
-23
-7

skipif mysql # not compatible
query I rowsort label-2883
SELECT col1 / + - 2 AS col0 FROM tab1
----
-2
-23
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2884
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE NOT + col0 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2884
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE NOT + col0 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2885
SELECT ALL + COUNT( * ) * - + 7 FROM tab0 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-2885
SELECT ALL + COUNT ( * ) * - + 7 FROM tab0 AS cor0
----
-21

onlyif mysql # DIV for integer division: 
query II rowsort label-2886
SELECT - - col2 DIV - col0, - col2 AS col0 FROM tab0 AS cor0
----
-1
-99
-3
-47
0
-10

skipif mysql # not compatible
query II rowsort label-2886
SELECT - - col2 / - col0, - col2 AS col0 FROM tab0 AS cor0
----
-1
-99
-3
-47
0
-10

query I rowsort
SELECT 51 * 91 + 2 FROM tab0 AS cor0
----
4643
4643
4643

query II rowsort
SELECT + + 91, col1 FROM tab0 cor0 WHERE NOT - 75 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2889
SELECT + CAST( NULL AS SIGNED ) + + 74 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2889
SELECT + CAST ( NULL AS INTEGER ) + + 74 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * - ( + col2 ) * + col0 + - 56 AS col1 FROM tab1 AS cor0
----
25019
290780
68488

query I rowsort
SELECT + + 21 AS col2 FROM tab2 AS cor0
----
21
21
21

onlyif mysql # DIV for integer division: 
query II rowsort label-2892
SELECT DISTINCT - + col2 AS col0, 6 - + + col2 DIV + 84 AS col1 FROM tab0 AS cor0
----
-10
6
-47
6
-99
5

skipif mysql # not compatible
query II rowsort label-2892
SELECT DISTINCT - + col2 AS col0, 6 - + + col2 / + 84 AS col1 FROM tab0 AS cor0
----
-10
6
-47
6
-99
5

query II rowsort
SELECT - - col0 AS col1, - col1 - + 2 FROM tab0 AS cor0
----
15
-83
87
-23
97
-3

query II rowsort
SELECT DISTINCT 87 AS col1, + col2 FROM tab0 AS cor0
----
87
10
87
47
87
99

query I rowsort
SELECT 26 * col0 + - col2 AS col1 FROM tab0 WHERE NULL = + + 99
----

query I rowsort
SELECT + + col0 AS col0 FROM tab0 WHERE col0 NOT BETWEEN + 78 * col2 - 83 AND NULL
----
15
87
97

query II rowsort
SELECT ALL col0, - ( + col1 ) + col1 AS col0 FROM tab1 WHERE NOT + 38 = NULL
----

query I rowsort
SELECT ( + col1 ) AS col1 FROM tab2 WHERE + - 96 > NULL
----

query III rowsort
SELECT * FROM tab0 WHERE col1 + + col1 - - - col0 * + + 37 IS NULL
----

query I rowsort
SELECT ALL ( - 34 ) AS col0 FROM tab0
----
-34
-34
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-2901
SELECT DISTINCT + MAX( 1 ) AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-2901
SELECT DISTINCT + MAX ( 1 ) AS col0 FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2902
SELECT - - COUNT( * ) FROM tab0 AS cor0 WHERE + 39 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2902
SELECT - - COUNT ( * ) FROM tab0 AS cor0 WHERE + 39 IS NULL
----
0

query I rowsort
SELECT - col0 + + - 94 + 40 AS col2 FROM tab0 AS cor0
----
-141
-151
-69

query I rowsort
SELECT DISTINCT col0 * - col0 * + - col2 + - col0 AS col0 FROM tab0 AS cor0
----
10560
75603
931394

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IS NULL AND NOT col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 * + - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2907
SELECT DISTINCT * FROM tab1 WHERE CAST( NULL AS SIGNED ) / + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2907
SELECT DISTINCT * FROM tab1 WHERE CAST ( NULL AS INTEGER ) / + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 FROM tab1 WHERE ( + 19 >= NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2909
SELECT - 18 - + COUNT( * ) AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab2 cor1 )
----
-27

skipif mysql # not compatible
query I rowsort label-2909
SELECT - 18 - + COUNT ( * ) AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab2 cor1 )
----
-27

query I rowsort
SELECT DISTINCT + + 13 * + 20 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
260

onlyif mysql # aggregate syntax: 
query I rowsort label-2911
SELECT - COUNT( * ) * + 66 AS col1 FROM tab2
----
-198

skipif mysql # not compatible
query I rowsort label-2911
SELECT - COUNT ( * ) * + 66 AS col1 FROM tab2
----
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-2912
SELECT + COUNT( * ) * + ( + - COUNT( * ) ) * 28 FROM tab2
----
-252

skipif mysql # not compatible
query I rowsort label-2912
SELECT + COUNT ( * ) * + ( + - COUNT ( * ) ) * 28 FROM tab2
----
-252

onlyif mysql # aggregate syntax: 
query I rowsort label-2913
SELECT ALL + SUM( - + col1 ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-2913
SELECT ALL + SUM ( - + col1 ) FROM tab2 AS cor0
----
-195

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2914
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) / + col2 - + CAST( col0 AS SIGNED ) NOT BETWEEN col2 + 52 AND col1
----

skipif mysql # not compatible
query III rowsort label-2914
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) / + col2 - + CAST ( col0 AS INTEGER ) NOT BETWEEN col2 + 52 AND col1
----

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2916
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) = + 63 + + + CAST( NULL AS SIGNED ) * col1
----

skipif mysql # not compatible
query III rowsort label-2916
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) = + 63 + + + CAST ( NULL AS INTEGER ) * col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2917
SELECT 38 AS col1, COUNT( * ) FROM tab2
----
38
3

skipif mysql # not compatible
query II rowsort label-2917
SELECT 38 AS col1, COUNT ( * ) FROM tab2
----
38
3

query II rowsort
SELECT ( col2 ), - col2 + + 34 FROM tab2
----
23
11
40
-6
58
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2919
SELECT ALL + 89 AS col2, MAX( - CAST( NULL AS SIGNED ) ) FROM tab0
----
89
NULL

skipif mysql # not compatible
query II rowsort label-2919
SELECT ALL + 89 AS col2, MAX ( - CAST ( NULL AS INTEGER ) ) FROM tab0
----
89
NULL

query I rowsort
SELECT ALL 40 * - + 50 FROM tab2
----
-2000
-2000
-2000

query I rowsort
SELECT col1 * + - 91 * - 85 FROM tab2 WHERE NOT NULL IS NOT NULL
----
394485
518245
595595

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2922
SELECT ALL + col0 * - CAST( + col2 AS SIGNED ) col0 FROM tab2
----
-1058
-2560
-4350

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2922
SELECT ALL + col0 * - CAST ( + col2 AS INTEGER ) col0 FROM tab2
----
-1058
-2560
-4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 0 col1 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2924
SELECT - 45, - 8 DIV - col2 * 67 col2 FROM tab2
----
-45
0
-45
0
-45
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2924
SELECT - 45, - 8 / - col2 * 67 col2 FROM tab2
----
-45
0
-45
0
-45
0

query II rowsort
SELECT DISTINCT - 74, col1 AS col1 FROM tab1
----
-74
14
-74
47
-74
5

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab1 AS cor0 WHERE NOT + 72 NOT BETWEEN - 24 AND NULL
----

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
51
67
77

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= ( - 14 - - col0 + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2929
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE col1 + + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2929
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE col1 + + col0 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2930
SELECT * FROM tab1 AS cor0 WHERE 7 - + - CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND - CAST( NULL AS SIGNED ) + col1
----

skipif mysql # not compatible
query III rowsort label-2930
SELECT * FROM tab1 AS cor0 WHERE 7 - + - CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND - CAST ( NULL AS INTEGER ) + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col1 + col2 col1, - col2 FROM tab2 cor0
----
117
-40
125
-58
74
-23

query I rowsort
SELECT ALL col0 * - col0 + - - 95 * - col1 FROM tab1 AS cor0
----
-12746
-3931
-7700

query I rowsort
SELECT - 73 + - - 90 FROM tab0 AS cor0
----
17
17
17

query I rowsort
SELECT 0 * + - col0 + - + col1 AS col0 FROM tab0
----
-1
-21
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-2935
SELECT DISTINCT - 95 DIV 75 col1 FROM tab0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2935
SELECT DISTINCT - 95 / 75 col1 FROM tab0
----
-1

query II rowsort
SELECT ALL 95 AS col2, col0 + + - 41 - + - col1 AS col2 FROM tab2
----
95
100
95
101
95
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2937
SELECT ALL - COUNT( * ) / + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2937
SELECT ALL - COUNT ( * ) / + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2938
SELECT - 58 + + ( - COUNT( * ) ) * + + 99 AS col2 FROM tab0
----
-355

skipif mysql # not compatible
query I rowsort label-2938
SELECT - 58 + + ( - COUNT ( * ) ) * + + 99 AS col2 FROM tab0
----
-355

query I rowsort
SELECT + ( + 23 ) + - col2 FROM tab2
----
-17
-35
0

query I rowsort
SELECT ALL ( - col1 ) + col1 + - col1 * + + col1 FROM tab2 cor0
----
-2601
-4489
-5929

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 89 IN ( - - col0 + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2942
SELECT ALL COUNT( * ) + - - 76 AS col1 FROM tab1 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-2942
SELECT ALL COUNT ( * ) + - - 76 AS col1 FROM tab1 AS cor0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2943
SELECT ALL COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN col0 AND - col2
----
0

skipif mysql # not compatible
query I rowsort label-2943
SELECT ALL COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN col0 AND - col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2944
SELECT ALL - COUNT( * ) FROM tab2 AS cor0 WHERE + 56 / - col0 BETWEEN + CAST( NULL AS SIGNED ) / col1 * - - 24 AND + col0 / - col0 - col2 + 32 - - - col2
----
0

skipif mysql # not compatible
query I rowsort label-2944
SELECT ALL - COUNT ( * ) FROM tab2 AS cor0 WHERE + 56 / - col0 BETWEEN + CAST ( NULL AS INTEGER ) / col1 * - - 24 AND + col0 / - col0 - col2 + 32 - - - col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2945
SELECT DISTINCT col1 DIV ( - 62 ) FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-2945
SELECT DISTINCT col1 / ( - 62 ) FROM tab2
----
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2946
SELECT ( ( + col1 ) ) DIV col2 AS col0 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-2946
SELECT ( ( + col1 ) ) / col2 AS col0 FROM tab0
----
0
1
2

onlyif mysql # DIV for integer division: 
query I rowsort label-2947
SELECT DISTINCT + 26 DIV col1 FROM tab1
----
0
1
5

skipif mysql # not compatible
query I rowsort label-2947
SELECT DISTINCT + 26 / col1 FROM tab1
----
0
1
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2948
SELECT MAX( ALL - col1 ) AS col1 FROM tab1 WHERE - col1 * 70 NOT IN ( - col2 )
----
-5

skipif mysql # not compatible
query I rowsort label-2948
SELECT MAX ( ALL - col1 ) AS col1 FROM tab1 WHERE - col1 * 70 NOT IN ( - col2 )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2949
SELECT COUNT( + 12 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2949
SELECT COUNT ( + 12 ) FROM tab0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 66 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 92 + + col1 FROM tab1
----
106
139
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col2 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 9 * + col0 FROM tab2 WHERE + 97 * + col1 IS NOT NULL
----
414
576
675

onlyif mysql # DIV for integer division: 
query I rowsort label-2954
SELECT col0 DIV 47 - 89 * 96 AS col1 FROM tab2
----
-8543
-8543
-8544

skipif mysql # not compatible
query I rowsort label-2954
SELECT col0 / 47 - 89 * 96 AS col1 FROM tab2
----
-8543
-8543
-8544

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2955
SELECT * FROM tab1 WHERE NOT NULL < ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2955
SELECT * FROM tab1 WHERE NOT NULL < ( CAST ( NULL AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 89 - 69 col2 FROM tab0
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2957
SELECT * FROM tab2 WHERE 42 = ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2957
SELECT * FROM tab2 WHERE 42 = ( - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT - ( + AVG ( + col2 ) ) FROM tab0 WHERE ( NULL ) BETWEEN NULL AND + col1 + + 45
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2959
SELECT DISTINCT * FROM tab2 WHERE ( col0 ) BETWEEN - CAST( col2 AS DECIMAL ) AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-2959
SELECT DISTINCT * FROM tab2 WHERE ( col0 ) BETWEEN - CAST ( col2 AS REAL ) AND ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE ( + 44 ) NOT IN ( + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE ( + ( + col0 ) ) IN ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2962
SELECT + SUM( 73 ) FROM tab2 WHERE NOT + 30 IN ( - col0 )
----
219

skipif mysql # not compatible
query I rowsort label-2962
SELECT + SUM ( 73 ) FROM tab2 WHERE NOT + 30 IN ( - col0 )
----
219

query I rowsort
SELECT ALL - col0 * col1 + col0 FROM tab1
----
-340
-4186
-663

query I rowsort
SELECT ALL col2 AS col1 FROM tab0 WHERE 85 <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2965
SELECT DISTINCT - ( - MAX( DISTINCT - 55 ) ) FROM tab0
----
-55

skipif mysql # not compatible
query I rowsort label-2965
SELECT DISTINCT - ( - MAX ( DISTINCT - 55 ) ) FROM tab0
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2966
SELECT - COUNT( * ) col0 FROM tab1 cor0 WHERE NOT ( NULL ) <> + CAST( col0 AS SIGNED )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2966
SELECT - COUNT ( * ) col0 FROM tab1 cor0 WHERE NOT ( NULL ) <> + CAST ( col0 AS INTEGER )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2967
SELECT DISTINCT COUNT( CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2967
SELECT DISTINCT COUNT ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2968
SELECT ALL + 40 + - COUNT( * ) FROM tab0 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-2968
SELECT ALL + 40 + - COUNT ( * ) FROM tab0 AS cor0
----
37

query I rowsort
SELECT ALL col1 * 27 AS col0 FROM tab1 AS cor0
----
1269
135
378

query I rowsort
SELECT DISTINCT - 29 AS col2 FROM tab2 WHERE NOT NULL NOT BETWEEN 55 * col1 + col1 AND col1 * + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2971
SELECT DISTINCT - col2 AS col0 FROM tab0 WHERE NULL NOT BETWEEN - col2 AND CAST( NULL AS SIGNED ) * + col2 - - col0
----

skipif mysql # not compatible
query I rowsort label-2971
SELECT DISTINCT - col2 AS col0 FROM tab0 WHERE NULL NOT BETWEEN - col2 AND CAST ( NULL AS INTEGER ) * + col2 - - col0
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 <= ( - 27 * col1 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2973
SELECT + col1 * CAST( NULL AS DECIMAL ) FROM tab2 cor0 WHERE NULL > ( NULL )
----

skipif mysql # not compatible
query I rowsort label-2973
SELECT + col1 * CAST ( NULL AS REAL ) FROM tab2 cor0 WHERE NULL > ( NULL )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 62 + + ( 35 ) > NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 * ( 3 ) = 42 + - 61
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - 65 + col2 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN ( NULL ) AND + 3
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2978
SELECT * FROM tab0 WHERE - CAST( NULL AS SIGNED ) * 32 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2978
SELECT * FROM tab0 WHERE - CAST ( NULL AS INTEGER ) * 32 IS NOT NULL
----

query I rowsort
SELECT ALL col2 + + + col2 + + col0 * col1 AS col0 FROM tab2
----
2392
5008
5141

onlyif mysql # aggregate syntax: 
query I rowsort label-2980
SELECT ( + 95 ) - - COUNT( * ) AS col0 FROM tab2
----
98

skipif mysql # not compatible
query I rowsort label-2980
SELECT ( + 95 ) - - COUNT ( * ) AS col0 FROM tab2
----
98

query I rowsort
SELECT col1 + + + ( - col1 ) * - ( + col2 + 27 * + 5 ) FROM tab2
----
12998
13552
8109

query I rowsort
SELECT ALL - col0 * + 88 FROM tab1 WHERE NOT ( col0 ) IS NULL
----
-4488
-7480
-8008

query I rowsort
SELECT + 56 * - col2 * 69 + col2 * - ( - 65 ) FROM tab0
----
-178553
-376101
-37990

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2984
SELECT DISTINCT 39 * - CAST( MIN( DISTINCT col1 ) AS SIGNED ) + - COUNT( * ) AS col2 FROM tab1
----
-198

skipif mysql # not compatible
query I rowsort label-2984
SELECT DISTINCT 39 * - CAST ( MIN ( DISTINCT col1 ) AS INTEGER ) + - COUNT ( * ) AS col2 FROM tab1
----
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-2985
SELECT DISTINCT + MIN( + col0 ) + - 83 * 94 FROM tab2 AS cor0
----
-7756

skipif mysql # not compatible
query I rowsort label-2985
SELECT DISTINCT + MIN ( + col0 ) + - 83 * 94 FROM tab2 AS cor0
----
-7756

onlyif mysql # aggregate syntax: 
query I rowsort label-2986
SELECT DISTINCT 0 + - - COUNT( * ) * - 3 AS col0 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2986
SELECT DISTINCT 0 + - - COUNT ( * ) * - 3 AS col0 FROM tab2 AS cor0
----
-9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 54 IN ( + col0 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 83 * col0 - col2 * + col0 BETWEEN - col1 + 59 / + col1 AND NULL
----

query I rowsort
SELECT ALL - 95 + + + col0 AS col1 FROM tab1 AS cor0
----
-10
-4
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-2990
SELECT DISTINCT + - SUM( DISTINCT - 90 ) col2 FROM tab0 AS cor0
----
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2990
SELECT DISTINCT + - SUM ( DISTINCT - 90 ) col2 FROM tab0 AS cor0
----
90

query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 * - ( col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2992
SELECT ALL + 11 DIV col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2992
SELECT ALL + 11 / col0 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 56 col1 FROM tab0 WHERE NOT + col2 IS NULL
----
-4872
-5432
-840

onlyif mysql # aggregate syntax: 
query I rowsort label-2994
SELECT DISTINCT - + SUM( DISTINCT 73 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-73

skipif mysql # not compatible
query I rowsort label-2994
SELECT DISTINCT - + SUM ( DISTINCT 73 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-2995
SELECT col2 * 28 DIV 18 DIV + 9 AS col0 FROM tab1
----
10
11
16

skipif mysql # not compatible
query I rowsort label-2995
SELECT col2 * 28 / 18 / + 9 AS col0 FROM tab1
----
10
11
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2996
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-2996
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) BETWEEN ( - 97 ) AND + 37
----

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE NOT - col2 IN ( - 81 )
----
15
87
97

query I rowsort
SELECT ALL - + 21 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - 0 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3001
SELECT + MIN( 24 ) * - 22 AS col2 FROM tab1 AS cor0 WHERE NOT + col2 IS NULL
----
-528

skipif mysql # not compatible
query I rowsort label-3001
SELECT + MIN ( 24 ) * - 22 AS col2 FROM tab1 AS cor0 WHERE NOT + col2 IS NULL
----
-528

onlyif mysql # aggregate syntax: 
query I rowsort label-3002
SELECT + ( - COUNT( ALL col2 ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3002
SELECT + ( - COUNT ( ALL col2 ) ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL 75 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL OR NOT col2 IS NULL
----
75
75
75

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 12 <= ( NULL )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - 39 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3006
SELECT DISTINCT + CAST( + + 64 AS SIGNED ) FROM tab0
----
64

skipif mysql # not compatible
query I rowsort label-3006
SELECT DISTINCT + CAST ( + + 64 AS INTEGER ) FROM tab0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3007
SELECT DISTINCT MIN( 41 ) AS col2 FROM tab2
----
41

skipif mysql # not compatible
query I rowsort label-3007
SELECT DISTINCT MIN ( 41 ) AS col2 FROM tab2
----
41

query I rowsort
SELECT - col2 * + col1 FROM tab1 WHERE NOT ( + col2 - col0 ) IS NULL
----
-1344
-295
-3196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 89 * + + col1 col1 FROM tab1
----
1246
4183
445

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3010
SELECT DISTINCT 32 * - + CAST( NULL AS SIGNED ) / + ( - + ( - col2 ) ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3010
SELECT DISTINCT 32 * - + CAST ( NULL AS INTEGER ) / + ( - + ( - col2 ) ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT + 81 * ( + 64 ) AS col0 FROM tab1
----
5184
5184
5184

query I rowsort
SELECT DISTINCT 59 + 56 FROM tab0
----
115

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 + col0 BETWEEN NULL AND - col2 + - 29
----

query I rowsort
SELECT - 47 + + col2 - - col2 FROM tab1
----
145
71
89

query I rowsort
SELECT DISTINCT 97 FROM tab0 AS cor0 WHERE 82 * - col0 + + - col2 + col2 BETWEEN - col1 * + 19 AND ( NULL )
----

query I rowsort
SELECT ALL + ( - col1 ) + - - 81 AS col1 FROM tab2 AS cor0
----
14
30
4

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 2 * col2 * - col0 + 92 IN ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3018
SELECT ALL + - CAST( + ( + COUNT( * ) ) AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3018
SELECT ALL + - CAST ( + ( + COUNT ( * ) ) AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT - col2 > 0 ) OR NOT - col1 = NULL
----

query I rowsort
SELECT + col0 * - 88 FROM tab2
----
-4048
-5632
-6600

onlyif mysql # aggregate syntax: 
query I rowsort label-3021
SELECT + ( MAX( ALL + - col1 ) ) AS col0 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-3021
SELECT + ( MAX ( ALL + - col1 ) ) AS col0 FROM tab1
----
-5

query I rowsort
SELECT 77 + col1 AS col2 FROM tab2 AS cor0 WHERE col2 * - + col0 * - + col2 <= ( NULL ) AND NULL NOT BETWEEN NULL AND ( - col2 )
----

query I rowsort
SELECT ALL - col2 * col1 + col1 AS col1 FROM tab1 cor0
----
-1330
-290
-3149

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 17 col2 FROM tab1 cor0
----
-17

query I rowsort
SELECT DISTINCT - + col0 * - col0 * - 67 + + col1 FROM tab2 AS cor0
----
-141721
-274355
-376808

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3026
SELECT + 82 * CAST( NULL AS SIGNED ) * - + col2 + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3026
SELECT + 82 * CAST ( NULL AS INTEGER ) * - + col2 + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3027
SELECT COUNT( * ) * - 56 + - + 57 + + + COUNT( * ) * 64 DIV COUNT( * ) AS col2 FROM tab0 AS cor0
----
-161

skipif mysql # not compatible
query I rowsort label-3027
SELECT COUNT ( * ) * - 56 + - + 57 + + + COUNT ( * ) * 64 / COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-161

query I rowsort
SELECT ALL col1 - - 77 FROM tab0
----
158
78
98

query II rowsort
SELECT ALL - col0 AS col2, 51 AS col0 FROM tab2
----
-46
51
-64
51
-75
51

query I rowsort
SELECT 52 * + 32 + - 63 FROM tab0
----
1601
1601
1601

query II rowsort
SELECT + col1 AS col2, - col1 FROM tab2
----
51
-51
67
-67
77
-77

query I rowsort
SELECT - col0 AS col0 FROM tab2 WHERE ( NOT col2 * - col0 IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3033
SELECT ( - col0 ) DIV col0 AS col2 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3033
SELECT ( - col0 ) / col0 AS col2 FROM tab0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 0 col0 FROM tab2 WHERE NOT + 59 + + col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 / + col2 NOT BETWEEN NULL AND ( + - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( - - col0 ) col1 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3037
SELECT DISTINCT + - ( - 36 ) AS col2, ( - col1 ) * - 76 + + CAST( NULL AS SIGNED ) * - col1 AS col0 FROM tab2 AS cor0
----
36
NULL

skipif mysql # not compatible
query II rowsort label-3037
SELECT DISTINCT + - ( - 36 ) AS col2, ( - col1 ) * - 76 + + CAST ( NULL AS INTEGER ) * - col1 AS col0 FROM tab2 AS cor0
----
36
NULL

query I rowsort
SELECT DISTINCT - 21 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3039
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 93 * - 18 / 98 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3039
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 93 * - 18 / 98 FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( col0 + + + col2 >= + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3041
SELECT ALL * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) > + - col1 - + + col0
----

skipif mysql # not compatible
query III rowsort label-3041
SELECT ALL * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) > + - col1 - + + col0
----

query I rowsort
SELECT ALL - - ( + - 94 ) AS col2 FROM tab2 AS cor0 WHERE NOT 18 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3043
SELECT - - col2 * col2, CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
100
NULL
2209
NULL
9801
NULL

skipif mysql # not compatible
query II rowsort label-3043
SELECT - - col2 * col2, CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
100
NULL
2209
NULL
9801
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 53 NOT BETWEEN ( col1 + + col2 ) AND NULL
----

query I rowsort
SELECT + col0 * ( + 6 ) AS col0 FROM tab0 AS cor0
----
522
582
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3046
SELECT ALL - + COUNT( * ) / - + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3046
SELECT ALL - + COUNT ( * ) / - + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3047
SELECT - 29 DIV - - 47 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3047
SELECT - 29 / - - 47 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-3048
SELECT DISTINCT + 23 DIV + 59 AS col0, col2 AS col2 FROM tab0 cor0
----
0
10
0
47
0
99

skipif mysql # not compatible
query II rowsort label-3048
SELECT DISTINCT + 23 / + 59 AS col0, col2 AS col2 FROM tab0 cor0
----
0
10
0
47
0
99

query I rowsort
SELECT 58 * 9 FROM tab2
----
522
522
522

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3050
SELECT ALL + col2 + + 92 * + ( + + col1 ) * + 0 + + 58 * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3050
SELECT ALL + col2 + + 92 * + ( + + col1 ) * + 0 + + 58 * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE + 29 / - col0 BETWEEN - col1 * + + col1 AND NULL OR NOT ( - col2 - col1 * col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3052
SELECT ALL + SUM( ALL + ( 69 ) ) AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
621

skipif mysql # not compatible
query I rowsort label-3052
SELECT ALL + SUM ( ALL + ( 69 ) ) AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
621

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3053
SELECT col1 col0 FROM tab1 AS cor0 WHERE 57 / + CAST( + 33 AS SIGNED ) * + ( col0 ) + - CAST( col0 AS SIGNED ) < ( - - 70 )
----
14
47
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3053
SELECT col1 col0 FROM tab1 AS cor0 WHERE 57 / + CAST ( + 33 AS INTEGER ) * + ( col0 ) + - CAST ( col0 AS INTEGER ) < ( - - 70 )
----
14
47
5

query I rowsort
SELECT - - 23 * col0 * - col2 - + col2 FROM tab1 AS cor0
----
-112704
-115404
-142392

onlyif mysql # aggregate syntax: 
query I rowsort label-3055
SELECT + ( - ( COUNT( * ) ) ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3055
SELECT + ( - ( COUNT ( * ) ) ) AS col1 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3056
SELECT * FROM tab0 AS cor0 WHERE - col2 >= - + col1 * CAST( - col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3056
SELECT * FROM tab0 AS cor0 WHERE - col2 >= - + col1 * CAST ( - col2 AS INTEGER )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE col0 >= + col2
----
87
21
10

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3058
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 > ( + + col0 - col1 * - ( + ( col2 ) ) * + col1 + - ( + CAST( NULL AS SIGNED ) ) * 44 )
----

skipif mysql # not compatible
query III rowsort label-3058
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 > ( + + col0 - col1 * - ( + ( col2 ) ) * + col1 + - ( + CAST ( NULL AS INTEGER ) ) * 44 )
----

query I rowsort
SELECT DISTINCT col1 * - 18 FROM tab0
----
-1458
-18
-378

query III rowsort
SELECT * FROM tab0 WHERE - col0 <= + + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE + col0 >= - 6
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + ( ( - col1 ) ) * - col0 + - 62, + col0 FROM tab0
----
1153
15
1765
87
35
97

query I rowsort
SELECT 75 * - col0 FROM tab1
----
-3825
-6375
-6825

query II rowsort
SELECT col2, + col1 AS col2 FROM tab1
----
59
5
68
47
96
14

query II rowsort
SELECT DISTINCT 92 AS col1, 52 AS col0 FROM tab1 AS cor0
----
92
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3066
SELECT + COUNT( * ) * + + 55 * 13 AS col0 FROM tab2 AS cor0
----
2145

skipif mysql # not compatible
query I rowsort label-3066
SELECT + COUNT ( * ) * + + 55 * 13 AS col0 FROM tab2 AS cor0
----
2145

query II rowsort
SELECT DISTINCT + + 52, col2 FROM tab2 cor0
----
52
23
52
40
52
58

query I rowsort
SELECT ALL col0 * 40 AS col1 FROM tab1
----
2040
3400
3640

query I rowsort
SELECT col2 AS col1 FROM tab1 WHERE NOT + col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3070
SELECT - + 80 + + + ( + + COUNT( * ) ) * - + ( + COUNT( * ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-161

skipif mysql # not compatible
query I rowsort label-3070
SELECT - + 80 + + + ( + + COUNT ( * ) ) * - + ( + COUNT ( * ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-161

onlyif mysql # aggregate syntax: 
query II rowsort label-3071
SELECT - COUNT( * ) AS col2, + 64 AS col2 FROM tab0 AS cor0
----
-3
64

skipif mysql # not compatible
query II rowsort label-3071
SELECT - COUNT ( * ) AS col2, + 64 AS col2 FROM tab0 AS cor0
----
-3
64

query I rowsort
SELECT ALL + col2 * - - col0 AS col1 FROM tab1 cor0
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-3073
SELECT DISTINCT + SUM( DISTINCT ( - + col1 ) ) col2 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3073
SELECT DISTINCT + SUM ( DISTINCT ( - + col1 ) ) col2 FROM tab2 AS cor0
----
-195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 6 * - - 26 - col1 col1 FROM tab1 AS cor0
----
109
142
151

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3075
SELECT 35 DIV - 59 AS col1, - COUNT( * ) FROM tab1 AS cor0
----
0
-3

skipif mysql # not compatible
query II rowsort label-3075
SELECT 35 / - 59 AS col1, - COUNT ( * ) FROM tab1 AS cor0
----
0
-3

query I rowsort
SELECT ALL ( + col0 ) * + col1 FROM tab2 cor0
----
2346
4928
5025

query I rowsort
SELECT 71 * 6 AS col0 FROM tab2 AS cor0
----
426
426
426

query II rowsort
SELECT col2 * + - 0, col0 * col1 * col2 AS col0 FROM tab0
----
0
18270
0
57105
0
9603

query I rowsort
SELECT 40 * 15 AS col1 FROM tab1
----
600
600
600

query I rowsort
SELECT DISTINCT + 23 * - col1 AS col1 FROM tab2
----
-1173
-1541
-1771

onlyif mysql # aggregate syntax: 
query I rowsort label-3081
SELECT ALL COUNT( col0 ) * - COUNT( * ) * - - 12 AS col2 FROM tab2
----
-108

skipif mysql # not compatible
query I rowsort label-3081
SELECT ALL COUNT ( col0 ) * - COUNT ( * ) * - - 12 AS col2 FROM tab2
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-3082
SELECT - COUNT( * ) + + 79 FROM tab1
----
76

skipif mysql # not compatible
query I rowsort label-3082
SELECT - COUNT ( * ) + + 79 FROM tab1
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3083
SELECT DISTINCT COUNT( * ) DIV + 22 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3083
SELECT DISTINCT COUNT ( * ) / + 22 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3084
SELECT + COUNT( * ) + - + MIN( + 25 ) col2 FROM tab0
----
-22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3084
SELECT + COUNT ( * ) + - + MIN ( + 25 ) col2 FROM tab0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-3085
SELECT DISTINCT - MIN( DISTINCT col2 ) + 48 FROM tab2 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-3085
SELECT DISTINCT - MIN ( DISTINCT col2 ) + 48 FROM tab2 AS cor0
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-3086
SELECT DISTINCT + COUNT( * ) + + COUNT( * ), COUNT( * ) col0 FROM tab2 AS cor0
----
6
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3086
SELECT DISTINCT + COUNT ( * ) + + COUNT ( * ), COUNT ( * ) col0 FROM tab2 AS cor0
----
6
3

query I rowsort
SELECT ALL 59 - col0 AS col2 FROM tab1
----
-26
-32
8

query I rowsort
SELECT - 39 - + col0 AS col1 FROM tab2
----
-103
-114
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-3089
SELECT DISTINCT col0 DIV + + col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-3089
SELECT DISTINCT col0 / + + col0 FROM tab1
----
1

query I rowsort
SELECT ALL - 47 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa

query II rowsort
SELECT ALL - - col2 AS col0, 31 FROM tab0 AS cor0
----
10
31
47
31
99
31

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3092
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-3092
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN CAST ( NULL AS INTEGER ) AND NULL
----

query I rowsort
SELECT DISTINCT + col1 + + + 67 FROM tab2 cor0
----
118
134
144

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3094
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) - - 95 + + - 30 / - 83 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3094
SELECT DISTINCT - - CAST ( NULL AS REAL ) - - 95 + + - 30 / - 83 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
-51
-85
-91

query I rowsort
SELECT col0 + + + col0 * + col1 * - + col1 FROM tab2 AS cor0
----
-119600
-336600
-379392

query II rowsort
SELECT + 88 AS col0, ( col0 ) * col2 AS col0 FROM tab0 WHERE NOT - - 83 * 34 / + + 1 + - col0 IN ( + col0 + - + col2 / - - ( - 69 ) * 46 )
----
88
705
88
870
88
9603

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3098
SELECT * FROM tab1 WHERE NOT + 43 * + CAST( NULL AS SIGNED ) + + ( + col0 ) + + - col1 * - - 62 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3098
SELECT * FROM tab1 WHERE NOT + 43 * + CAST ( NULL AS INTEGER ) + + ( + col0 ) + + - col1 * - - 62 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 * - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3100
SELECT ALL + ( - - ( - + COUNT( + - col2 ) ) ) * - - COUNT( * ) + + MIN( DISTINCT + 48 ) FROM tab2
----
39

skipif mysql # not compatible
query I rowsort label-3100
SELECT ALL + ( - - ( - + COUNT ( + - col2 ) ) ) * - - COUNT ( * ) + + MIN ( DISTINCT + 48 ) FROM tab2
----
39

query I rowsort
SELECT DISTINCT + - 54 FROM tab1 cor0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-3102
SELECT ALL ( - + COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3102
SELECT ALL ( - + COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3103
SELECT - COUNT( ALL - col0 ) * + 26 col2 FROM tab1 cor0
----
-78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3103
SELECT - COUNT ( ALL - col0 ) * + 26 col2 FROM tab1 cor0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-3104
SELECT + COUNT( * ) + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-3104
SELECT + COUNT ( * ) + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
18

query I rowsort
SELECT DISTINCT 7 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3106
SELECT * FROM tab0 WHERE NOT ( - ( + col1 ) * CAST( + ( + col1 ) AS SIGNED ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3106
SELECT * FROM tab0 WHERE NOT ( - ( + col1 ) * CAST ( + ( + col1 ) AS INTEGER ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3107
SELECT DISTINCT + - MIN( DISTINCT CAST( NULL AS SIGNED ) ) col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3107
SELECT DISTINCT + - MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) col0 FROM tab2 cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3108
SELECT DISTINCT - - COUNT( * ) AS col1, CAST( SUM( + col2 ) AS SIGNED ) FROM tab1 AS cor0
----
3
223

skipif mysql # not compatible
query II rowsort label-3108
SELECT DISTINCT - - COUNT ( * ) AS col1, CAST ( SUM ( + col2 ) AS INTEGER ) FROM tab1 AS cor0
----
3
223

onlyif mysql # aggregate syntax: 
query I rowsort label-3109
SELECT DISTINCT - - 84 * - MIN( + 63 ) AS col1 FROM tab0 AS cor0
----
-5292

skipif mysql # not compatible
query I rowsort label-3109
SELECT DISTINCT - - 84 * - MIN ( + 63 ) AS col1 FROM tab0 AS cor0
----
-5292

query I rowsort
SELECT + ( - col2 ) * ( + 8 ) FROM tab0 cor0
----
-376
-792
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3111
SELECT ALL - CAST( - - col1 AS SIGNED ) * 55 FROM tab0 AS cor0
----
-1155
-4455
-55

skipif mysql # not compatible
query I rowsort label-3111
SELECT ALL - CAST ( - - col1 AS INTEGER ) * 55 FROM tab0 AS cor0
----
-1155
-4455
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-3112
SELECT - 34 + + COUNT( * ) * 2 - - COUNT( * ) AS col1, MAX( + 82 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----
-34
NULL

skipif mysql # not compatible
query II rowsort label-3112
SELECT - 34 + + COUNT ( * ) * 2 - - COUNT ( * ) AS col1, MAX ( + 82 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----
-34
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3113
SELECT col0 DIV col2 + col0 - + + 35 + + - col2 AS col2 FROM tab0 AS cor0
----
-37
-67
50

skipif mysql # not compatible
query I rowsort label-3113
SELECT col0 / col2 + col0 - + + 35 + + - col2 AS col2 FROM tab0 AS cor0
----
-37
-67
50

query II rowsort
SELECT DISTINCT - col1 AS col0, 28 * - - col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-51
1288
-67
2100
-77
1792

onlyif mysql # aggregate syntax: 
query I rowsort label-3115
SELECT ALL COUNT( * ) * + - ( + - COUNT( * ) ) AS col1 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-3115
SELECT ALL COUNT ( * ) * + - ( + - COUNT ( * ) ) AS col1 FROM tab1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * 99 * - 8 col1 FROM tab0
----
-37224
-78408
-7920

query III rowsort
SELECT * FROM tab1 WHERE + col0 + + col1 + - 36 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3118
SELECT ALL col1 DIV col2 DIV + col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3118
SELECT ALL col1 / col2 / + col1 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + col0 + col2 + + col2 FROM tab1
----
203
227
243

onlyif mysql # DIV for integer division: 
query I rowsort label-3120
SELECT DISTINCT + 2 DIV - col1 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3120
SELECT DISTINCT + 2 / - col1 AS col1 FROM tab2
----
0

query I rowsort
SELECT - col1 * - 13 AS col2 FROM tab2
----
1001
663
871

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3122
SELECT ALL + col1 - col1 FROM tab1 WHERE ( CAST( + + col1 AS SIGNED ) * - col2 - - col1 * CAST( - - col0 AS SIGNED ) ) NOT IN ( col2 )
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3122
SELECT ALL + col1 - col1 FROM tab1 WHERE ( CAST ( + + col1 AS INTEGER ) * - col2 - - col1 * CAST ( - - col0 AS INTEGER ) ) NOT IN ( col2 )
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 96 + - col1 * - 68 col1 FROM tab1
----
1048
3292
436

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3124
SELECT - ( - - MIN( + - col2 ) ) DIV - COUNT( * ) AS col2 FROM tab1
----
-32

skipif mysql # not compatible
query I rowsort label-3124
SELECT - ( - - MIN ( + - col2 ) ) / - COUNT ( * ) AS col2 FROM tab1
----
-32

query I rowsort
SELECT 76 * + col1 * - + col1 * col0 * - 24 AS col1 FROM tab1
----
18232704
366658656
3876000

query I rowsort
SELECT - + col0 / + - col2 * - 10 FROM tab0 AS cor0 WHERE - col0 BETWEEN NULL AND + col1 - - - col0 * ( col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE col1 - - col2 IS NULL
----

query I rowsort
SELECT ALL + ( 92 ) FROM tab2 AS cor0
----
92
92
92

query I rowsort
SELECT - 80 - + col0 AS col0 FROM tab0 AS cor0
----
-167
-177
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-3130
SELECT ALL + + COUNT( * ) + - 12 + + 24 * - 83 * + ( 41 ) FROM tab0 cor0
----
-81681

skipif mysql # not compatible
query I rowsort label-3130
SELECT ALL + + COUNT ( * ) + - 12 + + 24 * - 83 * + ( 41 ) FROM tab0 cor0
----
-81681

query I rowsort
SELECT col2 * col1 - col2 FROM tab1 cor0
----
1248
236
3128

onlyif mysql # DIV for integer division: 
query II rowsort label-3132
SELECT ALL 62 DIV + 41, col0 FROM tab1 cor0
----
1
51
1
85
1
91

skipif mysql # not compatible
query II rowsort label-3132
SELECT ALL 62 / + 41, col0 FROM tab1 cor0
----
1
51
1
85
1
91

query I rowsort
SELECT ALL - + ( - col1 ) * - col2 FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-3134
SELECT ALL - ( + + 12 ) * + COUNT( * ) + + COUNT( * ) FROM tab0 AS cor0 WHERE + 43 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3134
SELECT ALL - ( + + 12 ) * + COUNT ( * ) + + COUNT ( * ) FROM tab0 AS cor0 WHERE + 43 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-3135
SELECT * FROM tab2 WHERE NOT + col2 NOT BETWEEN - - 18 - col1 * + CAST( NULL AS DECIMAL ) * CAST( NULL AS SIGNED ) / col2 AND 11
----

skipif mysql # not compatible
query III rowsort label-3135
SELECT * FROM tab2 WHERE NOT + col2 NOT BETWEEN - - 18 - col1 * + CAST ( NULL AS REAL ) * CAST ( NULL AS INTEGER ) / col2 AND 11
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3136
SELECT DISTINCT - + MAX( + col2 ) AS col0 FROM tab2 WHERE 76 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3136
SELECT DISTINCT - + MAX ( + col2 ) AS col0 FROM tab2 WHERE 76 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3137
SELECT + 39 AS col0, - COUNT( * ) AS col1 FROM tab1
----
39
-3

skipif mysql # not compatible
query II rowsort label-3137
SELECT + 39 AS col0, - COUNT ( * ) AS col1 FROM tab1
----
39
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-3138
SELECT + col0 DIV - + col1 AS col2 FROM tab0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-3138
SELECT + col0 / - + col1 AS col2 FROM tab0
----
-4
-97
0

query I rowsort
SELECT - col2 * + 77 AS col0 FROM tab1
----
-4543
-5236
-7392

onlyif mysql # aggregate syntax: 
query I rowsort label-3140
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( - 43 * + + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-3140
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( - 43 * + + col2 )
----
0

query I rowsort
SELECT DISTINCT - ( + + ( ( col0 ) ) ) * - col0 AS col0 FROM tab2 AS cor0
----
2116
4096
5625

onlyif mysql # aggregate syntax: 
query I rowsort label-3142
SELECT + COUNT( * ) * 69 * - + COUNT( * ) col1 FROM tab2
----
-621

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3142
SELECT + COUNT ( * ) * 69 * - + COUNT ( * ) col1 FROM tab2
----
-621

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL = + 26
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3144
SELECT ALL MAX( col1 ) col2, - COUNT( * ) DIV - 47 FROM tab0
----
81
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3144
SELECT ALL MAX ( col1 ) col2, - COUNT ( * ) / - 47 FROM tab0
----
81
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + col0 + - - col1 + + 76 col2 FROM tab0 AS cor0
----
382
7666
9486

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3146
SELECT + - col2 * + CAST( NULL AS SIGNED ) / + - CAST( NULL AS SIGNED ) + - CAST( + + col2 AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3146
SELECT + - col2 * + CAST ( NULL AS INTEGER ) / + - CAST ( NULL AS INTEGER ) + - CAST ( + + col2 AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 27 + col0 AS col1 FROM tab2
----
102
73
91

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3148
SELECT * FROM tab1 WHERE + CAST( NULL AS DECIMAL ) * + ( + - col1 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3148
SELECT * FROM tab1 WHERE + CAST ( NULL AS REAL ) * + ( + - col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3149
SELECT - 59 + + SUM( ALL col2 ) AS col2 FROM tab1
----
164

skipif mysql # not compatible
query I rowsort label-3149
SELECT - 59 + + SUM ( ALL col2 ) AS col2 FROM tab1
----
164

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 NOT IN ( - - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + col1 * + col0 * col0 * - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3152
SELECT + COUNT( * ) * - MIN( col1 ) * + MAX( - col2 ), COUNT( * ) AS col1 FROM tab1
----
885
3

skipif mysql # not compatible
query II rowsort label-3152
SELECT + COUNT ( * ) * - MIN ( col1 ) * + MAX ( - col2 ), COUNT ( * ) AS col1 FROM tab1
----
885
3

query I rowsort
SELECT DISTINCT col1 + + 41 + 47 + + col2 + 55 AS col2 FROM tab2
----
217
260
268

query I rowsort
SELECT ALL + 56 + - - col0 FROM tab1 AS cor0
----
107
141
147

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3155
SELECT COUNT( DISTINCT + col2 ) DIV + + 69 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3155
SELECT COUNT ( DISTINCT + col2 ) / + + 69 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

query II rowsort
SELECT ALL 85 AS col0, col0 AS col0 FROM tab1
----
85
51
85
85
85
91

onlyif mysql # aggregate syntax: 
query II rowsort label-3157
SELECT DISTINCT + 9 * + COUNT( * ) AS col1, 23 + - COUNT( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
81
14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3157
SELECT DISTINCT + 9 * + COUNT ( * ) AS col1, 23 + - COUNT ( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
81
14

query I rowsort
SELECT - 49 * col0 + + col2 AS col1 FROM tab2
----
-2231
-3096
-3617

onlyif mysql # aggregate syntax: 
query I rowsort label-3159
SELECT ALL SUM( 93 ) * + COUNT( * ) AS col1 FROM tab2
----
837

skipif mysql # not compatible
query I rowsort label-3159
SELECT ALL SUM ( 93 ) * + COUNT ( * ) AS col1 FROM tab2
----
837

query II rowsort
SELECT DISTINCT col2 AS col0, col1 AS col2 FROM tab2 AS cor0
----
23
51
40
77
58
67

query I rowsort
SELECT ALL - col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + 93 * + col0 - + + 10 AS col1 FROM tab0 AS cor0
----
1385
8081
9011

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3163
SELECT + col1 AS col0 FROM tab2 AS cor0 WHERE NOT + col0 NOT BETWEEN ( 66 ) AND 37 + - - col1 - col1 * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3163
SELECT + col1 AS col0 FROM tab2 AS cor0 WHERE NOT + col0 NOT BETWEEN ( 66 ) AND 37 + - - col1 - col1 * - CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3164
SELECT - + ( - col0 ) DIV + col1 FROM tab0 AS cor0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-3164
SELECT - + ( - col0 ) / + col1 FROM tab0 AS cor0
----
0
4
97

onlyif mysql # DIV for integer division: 
query II rowsort label-3165
SELECT DISTINCT ( - - col2 ) DIV col0 * - - 65 AS col0, col1 FROM tab2 AS cor0
----
0
51
0
67
0
77

skipif mysql # not compatible
query II rowsort label-3165
SELECT DISTINCT ( - - col2 ) / col0 * - - 65 AS col0, col1 FROM tab2 AS cor0
----
0
51
0
67
0
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3166
SELECT + MAX( + 62 ) FROM tab2 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-3166
SELECT + MAX ( + 62 ) FROM tab2 AS cor0
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3167
SELECT DISTINCT + - col2 FROM tab1 WHERE col1 * + CAST( - col0 AS SIGNED ) + + col2 >= - 57 + + + 60
----

skipif mysql # not compatible
query I rowsort label-3167
SELECT DISTINCT + - col2 FROM tab1 WHERE col1 * + CAST ( - col0 AS INTEGER ) + + col2 >= - 57 + + + 60
----

query I rowsort
SELECT DISTINCT + ( + 30 ) FROM tab0
----
30

query I rowsort
SELECT DISTINCT 65 * - col1 AS col2 FROM tab1
----
-3055
-325
-910

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 / - - col1 <= + col0
----

query I rowsort
SELECT col1 + + + 1 AS col0 FROM tab2
----
52
68
78

query I rowsort
SELECT ALL + 38 + 95 FROM tab0 AS cor0
----
133
133
133

query II rowsort
SELECT - 43, col2 AS col2 FROM tab0 cor0
----
-43
10
-43
47
-43
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3174
SELECT - + CAST( 3 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-3174
SELECT - + CAST ( 3 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-3
-3
-3

query II rowsort
SELECT DISTINCT - 80 + col1 * col1, + 56 AS col1 FROM tab2 AS cor0
----
2521
56
4409
56
5849
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3176
SELECT - + COUNT( * ) * + 85 FROM tab1 AS cor0
----
-255

skipif mysql # not compatible
query I rowsort label-3176
SELECT - + COUNT ( * ) * + 85 FROM tab1 AS cor0
----
-255

query I rowsort
SELECT ALL col1 * - 27 FROM tab1 AS cor0 WHERE NOT 71 NOT IN ( + 37 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3178
SELECT COUNT( + + col0 ) FROM tab2 AS cor0 WHERE - ( - 14 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3178
SELECT COUNT ( + + col0 ) FROM tab2 AS cor0 WHERE - ( - 14 ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3179
SELECT + MIN( ALL + 98 ) FROM tab0
----
98

skipif mysql # not compatible
query I rowsort label-3179
SELECT + MIN ( ALL + 98 ) FROM tab0
----
98

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL = - ( + - 95 ) + - 89
----

query I rowsort
SELECT + col2 * col1 FROM tab1 WHERE ( + 96 IS NULL )
----

query II rowsort
SELECT col0 * + col1 AS col1, ( + 50 ) FROM tab1
----
425
50
4277
50
714
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3183
SELECT COUNT( * ) - - - COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3183
SELECT COUNT ( * ) - - - COUNT ( * ) FROM tab1
----
0

query II rowsort
SELECT - 44 - + + 65, col1 FROM tab1
----
-109
14
-109
47
-109
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3185
SELECT DISTINCT COUNT( * ) + 27 AS col0 FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-3185
SELECT DISTINCT COUNT ( * ) + 27 AS col0 FROM tab2
----
30

query I rowsort
SELECT + 10 + - + col2 + - + 11 AS col1 FROM tab1
----
-60
-69
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 86 + 44 + col0 + + + col0 * + ( col2 ) col2 FROM tab2 AS cor0
----
1234
2754
4555

query I rowsort
SELECT ALL - col0 * + - col2 - col0 FROM tab1
----
4845
4930
6097

onlyif mysql # aggregate syntax: 
query I rowsort label-3189
SELECT SUM( ALL + col1 ) FROM tab0 cor0
----
103

skipif mysql # not compatible
query I rowsort label-3189
SELECT SUM ( ALL + col1 ) FROM tab0 cor0
----
103

query I rowsort
SELECT DISTINCT - - 35 * - 21 AS col0 FROM tab0 AS cor0
----
-735

query I rowsort
SELECT DISTINCT + 74 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT col2, - 85 * + 6 FROM tab1
----
59
-510
68
-510
96
-510

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 = + + 11
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3194
SELECT ( MAX( - col2 ) ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-3194
SELECT ( MAX ( - col2 ) ) FROM tab1
----
-59

query I rowsort
SELECT ALL col2 * + 74 * - col0 AS col0 FROM tab1
----
-362304
-371110
-457912

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL = 24
----

query I rowsort
SELECT ALL + col2 * - - 9 AS col2 FROM tab0
----
423
891
90

onlyif mysql # DIV for integer division: 
query I rowsort label-3198
SELECT ALL + col2 DIV + - col2 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3198
SELECT ALL + col2 / + - col2 FROM tab2
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3199
SELECT DISTINCT 62 * - COUNT( * ) FROM tab0
----
-186

skipif mysql # not compatible
query I rowsort label-3199
SELECT DISTINCT 62 * - COUNT ( * ) FROM tab0
----
-186

onlyif mysql # aggregate syntax: 
query I rowsort label-3200
SELECT - 45 * + 55 + + ( COUNT( * ) ) FROM tab1
----
-2472

skipif mysql # not compatible
query I rowsort label-3200
SELECT - 45 * + 55 + + ( COUNT ( * ) ) FROM tab1
----
-2472

onlyif mysql # aggregate syntax: 
query I rowsort label-3201
SELECT DISTINCT + + ( + + COUNT( * ) ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND col1
----
0

skipif mysql # not compatible
query I rowsort label-3201
SELECT DISTINCT + + ( + + COUNT ( * ) ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3202
SELECT 51 / - - CAST( NULL AS DECIMAL ) / - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT col1 + col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3202
SELECT 51 / - - CAST ( NULL AS REAL ) / - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT col1 + col0 IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1, + 9 col1 FROM tab2 cor0
----
51
9
67
9
77
9

query I rowsort
SELECT col1 * ( - - 35 ) FROM tab2
----
1785
2345
2695

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 * - 74 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - col2 col0 FROM tab2 cor0
----
-104
-133
-69

query I rowsort
SELECT DISTINCT + col2 - - - 14 FROM tab2 AS cor0
----
26
44
9

query I rowsort
SELECT - 53 + + - col2 FROM tab0
----
-100
-152
-63

query I rowsort
SELECT + col2 + col0 * + col1 * col2 + col1 AS col1 FROM tab0
----
18301
57233
9703

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) > 49 + col2
----

query II rowsort
SELECT DISTINCT col2, 73 FROM tab1
----
59
73
68
73
96
73

query I rowsort
SELECT col1 FROM tab0 WHERE 73 + col0 + - col0 NOT BETWEEN + ( + col2 ) AND ( NULL )
----
1

query I rowsort
SELECT DISTINCT - - ( + + col0 ) + - col0 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3214
SELECT - COUNT( * ) DIV ( - 44 ) - + + 86 + 72 col0 FROM tab2 AS cor0
----
-14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3214
SELECT - COUNT ( * ) / ( - 44 ) - + + 86 + 72 col0 FROM tab2 AS cor0
----
-14

query II rowsort
SELECT + col1 * col0 - - col1, - 99 AS col0 FROM tab0 AS cor0
----
1296
-99
1848
-99
98
-99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 4 BETWEEN NULL AND + - col2 + col1
----

query I rowsort
SELECT + col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL < NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 BETWEEN NULL AND - 39
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - + col2, 23 FROM tab2 WHERE NOT - - 22 IS NOT NULL
----

query I rowsort
SELECT + col1 * + - col2 AS col0 FROM tab2 cor0
----
-1173
-3080
-3886

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3221
SELECT ALL - 28 * + + 18 + + MAX( - + CAST( + 75 AS SIGNED ) ) FROM tab1 cor0
----
-579

skipif mysql # not compatible
query I rowsort label-3221
SELECT ALL - 28 * + + 18 + + MAX ( - + CAST ( + 75 AS INTEGER ) ) FROM tab1 cor0
----
-579

query I rowsort
SELECT ALL - - 14 AS col2 FROM tab0 AS cor0
----
14
14
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 81 * + col2 - - 52 col1 FROM tab0 AS cor0
----
-3755
-758
-7967

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( - - col1 ) * - col1 + - - col0 col1 FROM tab2 AS cor0
----
2647
4564
5993

onlyif mysql # aggregate syntax: 
query I rowsort label-3225
SELECT + + COUNT( ALL col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3225
SELECT + + COUNT ( ALL col0 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL + col1 FROM tab2 cor0 WHERE NOT NULL <= + 94
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3227
SELECT DISTINCT - + SUM( DISTINCT - + 8 ) FROM tab2 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-3227
SELECT DISTINCT - + SUM ( DISTINCT - + 8 ) FROM tab2 AS cor0
----
8

query I rowsort
SELECT + + 61 FROM tab0 AS cor0 WHERE NOT - col1 >= - ( + + col0 )
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-3229
SELECT col1 DIV col1 * + - col2 + - col1 AS col2 FROM tab0 AS cor0
----
-100
-128
-31

skipif mysql # not compatible
query I rowsort label-3229
SELECT col1 / col1 * + - col2 + - col1 AS col2 FROM tab0 AS cor0
----
-100
-128
-31

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 68 > + col1 + 13
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + 53 <> col0 * + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3232
SELECT ALL 44 DIV + - 49 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3232
SELECT ALL 44 / + - 49 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3233
SELECT DISTINCT - SUM( DISTINCT - col2 ) AS col0 FROM tab1 WHERE - - col2 * + + col0 < ( + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3233
SELECT DISTINCT - SUM ( DISTINCT - col2 ) AS col0 FROM tab1 WHERE - - col2 * + + col0 < ( + col1 )
----
NULL

query I rowsort
SELECT DISTINCT + 64 * - 94 AS col0 FROM tab1
----
-6016

onlyif mysql # aggregate syntax: 
query I rowsort label-3235
SELECT DISTINCT MIN( + col0 ) + COUNT( * ) AS col2 FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-3235
SELECT DISTINCT MIN ( + col0 ) + COUNT ( * ) AS col2 FROM tab0
----
18

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 28 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3237
SELECT + - 24 * COUNT( * ) FROM tab0 cor0
----
-72

skipif mysql # not compatible
query I rowsort label-3237
SELECT + - 24 * COUNT ( * ) FROM tab0 cor0
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3238
SELECT * FROM tab1 WHERE - 67 + + CAST( + col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3238
SELECT * FROM tab1 WHERE - 67 + + CAST ( + col1 AS INTEGER ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 34 + + 47 col0 FROM tab0 AS cor0
----
13

query I rowsort
SELECT DISTINCT + - col0 + + 75 FROM tab2 AS cor0
----
0
11
29

onlyif mysql # aggregate syntax: 
query II rowsort label-3241
SELECT + 57, COUNT( * ) AS col1 FROM tab0 AS cor0
----
57
3

skipif mysql # not compatible
query II rowsort label-3241
SELECT + 57, COUNT ( * ) AS col1 FROM tab0 AS cor0
----
57
3

query II rowsort
SELECT col0, col2 + col0 * + 3 AS col2 FROM tab2 cor0
----
46
161
64
232
75
283

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3243
SELECT CAST( NULL AS SIGNED ) - - 49 * MIN( DISTINCT col0 ) * + - 11 * - 0 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3243
SELECT CAST ( NULL AS INTEGER ) - - 49 * MIN ( DISTINCT col0 ) * + - 11 * - 0 AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3244
SELECT ALL MAX( ALL - 13 ) AS col0 FROM tab1
----
-13

skipif mysql # not compatible
query I rowsort label-3244
SELECT ALL MAX ( ALL - 13 ) AS col0 FROM tab1
----
-13

query I rowsort
SELECT + - col1 FROM tab1 WHERE + ( - col1 ) * + col2 IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT col0 + - 10 * + + col1 AS col2 FROM tab1
----
-379
-89
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3247
SELECT ALL COUNT( * ) + - - COUNT( * ) AS col0 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-3247
SELECT ALL COUNT ( * ) + - - COUNT ( * ) AS col0 FROM tab2
----
6

query I rowsort
SELECT 14 * + 56 AS col0 FROM tab2 AS cor0
----
784
784
784

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 78 * 60 * - + 99 AS col1, col0 col2 FROM tab0
----
-463320
15
-463320
87
-463320
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3250
SELECT + ( + CAST( 46 AS SIGNED ) ) FROM tab2
----
46
46
46

skipif mysql # not compatible
query I rowsort label-3250
SELECT + ( + CAST ( 46 AS INTEGER ) ) FROM tab2
----
46
46
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3251
SELECT DISTINCT ( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3251
SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
NULL

query I rowsort
SELECT ( + + 92 ) * + - 20 + + - col2 + + 42 AS col0 FROM tab1
----
-1857
-1866
-1894

onlyif mysql # aggregate syntax: 
query II rowsort label-3253
SELECT DISTINCT + 81 AS col0, MAX( - col1 ) FROM tab2 AS cor0
----
81
-51

skipif mysql # not compatible
query II rowsort label-3253
SELECT DISTINCT + 81 AS col0, MAX ( - col1 ) FROM tab2 AS cor0
----
81
-51

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - ( - 43 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-3255
SELECT ALL + + col2, col1 DIV 42 FROM tab2 AS cor0
----
23
1
40
1
58
1

skipif mysql # not compatible
query II rowsort label-3255
SELECT ALL + + col2, col1 / 42 FROM tab2 AS cor0
----
23
1
40
1
58
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3256
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - + col0, - col2 * col0 AS col0 FROM tab0 WHERE NULL = + + col2
----

skipif mysql # not compatible
query II rowsort label-3256
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - + col0, - col2 * col0 AS col0 FROM tab0 WHERE NULL = + + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 + + 9, 47 col2 FROM tab2
----
32
47
49
47
67
47

query II rowsort
SELECT col1 + + 39, col2 FROM tab0
----
120
47
40
99
60
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3259
SELECT ALL 41 DIV + COUNT( * ) FROM tab2
----
13

skipif mysql # not compatible
query I rowsort label-3259
SELECT ALL 41 / + COUNT ( * ) FROM tab2
----
13

query I rowsort
SELECT + + col1 + + col2 - + - col1 FROM tab1 AS cor0
----
124
162
69

query I rowsort
SELECT ALL + 26 + - col1 AS col1 FROM tab1 AS cor0
----
-21
12
21

query I rowsort
SELECT ALL + col2 * + col0 + col2 + + 9 AS col2 FROM tab2 AS cor0
----
1090
2609
4417

query I rowsort
SELECT ALL - col2 + - - 24 FROM tab1 cor0
----
-35
-44
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3264
SELECT - + col2 * - + 87 - col0 FROM tab0 WHERE - CAST( + + col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-3264
SELECT - + col2 * - + 87 - col0 FROM tab0 WHERE - CAST ( + + col2 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3265
SELECT ALL + MIN( DISTINCT - 85 ) + - + 99 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) <> + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-3265
SELECT ALL + MIN ( DISTINCT - 85 ) + - + 99 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) <> + 12
----
NULL

query I rowsort
SELECT - col1 * col2 * + + col0 FROM tab2
----
-197120
-291450
-53958

query I rowsort
SELECT DISTINCT - 19 + 5 AS col2 FROM tab0
----
-14

query I rowsort
SELECT ALL 75 + + 50 FROM tab2
----
125
125
125

query I rowsort
SELECT DISTINCT - col0 * - col2 * col1 - + col2 + - col0 * + col1 * 70 AS col1 FROM tab0 AS cor0
----
-109630
-27992
2714

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 <> - - ( + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3271
SELECT ALL - - CAST( NULL AS SIGNED ) + + 7 * 46 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3271
SELECT ALL - - CAST ( NULL AS INTEGER ) + + 7 * 46 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + col0 - + + col2 * col0 FROM tab2 AS cor0
----
-2432
-4200
-966

query I rowsort
SELECT + 59 + - 68 - - col1 FROM tab2 cor0
----
42
58
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 / + - col1 + col2 col0, col2 + + ( - - ( - + col0 ) ) * + col0 + col2 FROM tab1 AS cor0 WHERE - 13 * 18 * 71 BETWEEN col0 - + - 74 AND + 73
----

query I rowsort
SELECT ALL + 84 + col1 + + col2 FROM tab1 AS cor0
----
148
194
199

query I rowsort
SELECT DISTINCT + col1 - - - col2 AS col2 FROM tab1
----
-21
-54
-82

query II rowsort
SELECT col2, + col2 + - 34 FROM tab0
----
10
-24
47
13
99
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 21 col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-21
-21
-21

query III rowsort
SELECT * FROM tab1 WHERE - + 47 IS NULL
----

query II rowsort
SELECT ALL col1 AS col1, + col1 + - col1 FROM tab1
----
14
0
47
0
5
0

query II rowsort
SELECT DISTINCT col1 AS col0, + ( + - 97 ) AS col2 FROM tab0 AS cor0
----
1
-97
21
-97
81
-97

query I rowsort
SELECT ALL + col1 * - col0 * - - col1 FROM tab2 AS cor0
----
-119646
-336675
-379456

query II rowsort
SELECT ALL + col1 AS col2, + col2 + col0 FROM tab1 cor0
----
14
147
47
159
5
144

onlyif mysql # aggregate syntax: 
query I rowsort label-3284
SELECT - MAX( - 83 ) FROM tab2 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-3284
SELECT - MAX ( - 83 ) FROM tab2 AS cor0
----
83

query II rowsort
SELECT 83 AS col0, 94 FROM tab2 AS cor0
----
83
94
83
94
83
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3286
SELECT + - MAX( + + 56 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-56

skipif mysql # not compatible
query I rowsort label-3286
SELECT + - MAX ( + + 56 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3287
SELECT DISTINCT - 44 * + CAST( + - COUNT( * ) AS SIGNED ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
396

skipif mysql # not compatible
query I rowsort label-3287
SELECT DISTINCT - 44 * + CAST ( + - COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
396

query I rowsort
SELECT ALL - 48 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

query II rowsort
SELECT 47 * 62 AS col0, + col0 AS col2 FROM tab1
----
2914
51
2914
85
2914
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3290
SELECT DISTINCT COUNT( ( + - CAST( NULL AS SIGNED ) ) ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3290
SELECT DISTINCT COUNT ( ( + - CAST ( NULL AS INTEGER ) ) ) AS col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3291
SELECT ALL COUNT( * ) * + - COUNT( * ) * 92 FROM tab0 AS cor0
----
-828

skipif mysql # not compatible
query I rowsort label-3291
SELECT ALL COUNT ( * ) * + - COUNT ( * ) * 92 FROM tab0 AS cor0
----
-828

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3292
SELECT CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) * - + col2 / + 38 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3292
SELECT CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) * - + col2 / + 38 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * - + col1 * - + 11 AS col1 FROM tab1 cor0
----
-14784
-3245
-35156

onlyif mysql # aggregate syntax: 
query I rowsort label-3294
SELECT ALL COUNT( DISTINCT - + 64 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3294
SELECT ALL COUNT ( DISTINCT - + 64 ) FROM tab0 AS cor0
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3295
SELECT ALL + AVG ( DISTINCT + CAST( NULL AS DECIMAL ) ) * + 88 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3295
SELECT ALL + AVG ( DISTINCT + CAST ( NULL AS REAL ) ) * + 88 AS col1 FROM tab0
----
NULL

query I rowsort
SELECT ALL + col2 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL OR NOT - 96 IS NOT NULL
----
59
68
96

query III rowsort
SELECT * FROM tab2 WHERE col1 * - col2 IS NULL
----

query II rowsort
SELECT DISTINCT 31 AS col1, - col0 FROM tab0
----
31
-15
31
-87
31
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3299
SELECT COUNT( 3 ) col2 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3299
SELECT COUNT ( 3 ) col2 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3300
SELECT DISTINCT SUM( 46 ) FROM tab0
----
138

skipif mysql # not compatible
query I rowsort label-3300
SELECT DISTINCT SUM ( 46 ) FROM tab0
----
138

query II rowsort
SELECT 25, + col1 AS col0 FROM tab1
----
25
14
25
47
25
5

query I rowsort
SELECT 92 + - col1 FROM tab0 AS cor0
----
11
71
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3303
SELECT DISTINCT - - MIN( - + 41 ) + - COUNT( * ) FROM tab0 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-3303
SELECT DISTINCT - - MIN ( - + 41 ) + - COUNT ( * ) FROM tab0 AS cor0
----
-44

query I rowsort
SELECT + + 66 + - + col1 AS col0 FROM tab2 AS cor0
----
-1
-11
15

query I rowsort
SELECT ALL - - 63 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query I rowsort
SELECT - 60 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f

onlyif mysql # DIV for integer division: 
query I rowsort label-3307
SELECT + + 80 DIV - - col0 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3307
SELECT + + 80 / - - col0 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT - - col0 + + 70 * + ( - - 38 ) AS col2 FROM tab1 AS cor0
----
2711
2745
2751

query I rowsort
SELECT col0 - - 11 AS col0 FROM tab1 cor0
----
102
62
96

onlyif mysql # DIV for integer division: 
query I rowsort label-3310
SELECT DISTINCT 34 DIV - col2 + 12 FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-3310
SELECT DISTINCT 34 / - col2 + 12 FROM tab1 AS cor0
----
12

query II rowsort
SELECT + 26 - 73, col1 FROM tab2 AS cor0
----
-47
51
-47
67
-47
77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3312
SELECT ALL col1 + CAST( NULL AS DECIMAL ) + + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3312
SELECT ALL col1 + CAST ( NULL AS REAL ) + + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 AS col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND - col2 + + + ( - ( + col2 ) )
----

query I rowsort
SELECT col2 + + + col2 + - ( + col0 ) + - ( col0 ) FROM tab2 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3315
SELECT DISTINCT col1 DIV + ( - - col2 ) AS col2, col2 + - 80 + - + col0 + - - col0 DIV col1 AS col0 FROM tab2
----
1
-104
1
-96
2
-103

skipif mysql # not compatible
query II rowsort label-3315
SELECT DISTINCT col1 / + ( - - col2 ) AS col2, col2 + - 80 + - + col0 + - - col0 / col1 AS col0 FROM tab2
----
1
-104
1
-96
2
-103

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3316
SELECT DISTINCT * FROM tab1 WHERE 84 * + col0 * - CAST( 28 AS SIGNED ) + + - col1 BETWEEN - ( + + col1 ) AND - + 71 + + - col0 / + - col1 - - - col2 + + - col1
----

skipif mysql # not compatible
query III rowsort label-3316
SELECT DISTINCT * FROM tab1 WHERE 84 * + col0 * - CAST ( 28 AS INTEGER ) + + - col1 BETWEEN - ( + + col1 ) AND - + 71 + + - col0 / + - col1 - - - col2 + + - col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3317
SELECT SUM( - 31 ) * - SUM( ALL - + col1 ) AS col1, 75 AS col0 FROM tab1 WHERE NOT + col2 * col0 * + col1 + + + col0 IS NOT NULL
----
NULL
75

skipif mysql # not compatible
query II rowsort label-3317
SELECT SUM ( - 31 ) * - SUM ( ALL - + col1 ) AS col1, 75 AS col0 FROM tab1 WHERE NOT + col2 * col0 * + col1 + + + col0 IS NOT NULL
----
NULL
75

query I rowsort
SELECT ALL + 46 * 63 FROM tab2
----
2898
2898
2898

query I rowsort
SELECT - 24 * col2 AS col1 FROM tab0
----
-1128
-2376
-240

query I rowsort
SELECT DISTINCT + 53 * col2 FROM tab1
----
3127
3604
5088

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NOT 66 <> - 6 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3322
SELECT DISTINCT ( - + ( - COUNT( * ) ) ) * + 9 * - + ( 73 ) FROM tab1 AS cor0
----
-1971

skipif mysql # not compatible
query I rowsort label-3322
SELECT DISTINCT ( - + ( - COUNT ( * ) ) ) * + 9 * - + ( 73 ) FROM tab1 AS cor0
----
-1971

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3323
SELECT ALL + COUNT( ALL + ( + - 16 ) ) DIV - 71 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3323
SELECT ALL + COUNT ( ALL + ( + - 16 ) ) / - 71 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3324
SELECT col1 DIV 3 FROM tab0 AS cor0
----
0
27
7

skipif mysql # not compatible
query I rowsort label-3324
SELECT col1 / 3 FROM tab0 AS cor0
----
0
27
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col2, + 44 FROM tab0
----
15
44
87
44
97
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col1 * col1 - - + col1 col1 FROM tab0 AS cor0 WHERE NOT col1 - + 42 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 + - 7 col0 FROM tab1 AS cor0
----
-103
-66
-75

query I rowsort
SELECT DISTINCT - col0 FROM tab1 cor0 WHERE col2 - + col2 * + - col2 * - 21 + 61 IS NULL
----

query II rowsort
SELECT ALL + col0, col1 FROM tab0 cor0
----
15
81
87
21
97
1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( ( - - 70 ), + 68, - - ( - - col0 ), - col2, 73 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3331
SELECT + CAST( NULL AS SIGNED ) * - - col1 + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3331
SELECT + CAST ( NULL AS INTEGER ) * - - col1 + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 85 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( - + 25 ) FROM tab1 AS cor0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-3334
SELECT ALL - COUNT( * ) AS col2 FROM tab0 cor0 WHERE NOT col0 / + 5 >= + - ( + 22 ) / + 50
----
0

skipif mysql # not compatible
query I rowsort label-3334
SELECT ALL - COUNT ( * ) AS col2 FROM tab0 cor0 WHERE NOT col0 / + 5 >= + - ( + 22 ) / + 50
----
0

query I rowsort
SELECT col2 + col1 * + col2 * - + col1 FROM tab2
----
-237120
-260304
-59800

query III rowsort
SELECT * FROM tab2 WHERE NULL = + 5
----

query I rowsort
SELECT - - col0 FROM tab0 WHERE 5 BETWEEN NULL AND + - col2
----

query I rowsort
SELECT + col0 * - + 29 + 57 FROM tab2
----
-1277
-1799
-2118

onlyif mysql # DIV for integer division: 
query II rowsort label-3339
SELECT - col2 DIV + 64, + col1 FROM tab2
----
0
51
0
67
0
77

skipif mysql # not compatible
query II rowsort label-3339
SELECT - col2 / + 64, + col1 FROM tab2
----
0
51
0
67
0
77

query I rowsort
SELECT DISTINCT + col2 + + + col1 + + - col1 + + col1 * - col1 AS col0 FROM tab1 AS cor0 WHERE col1 NOT BETWEEN NULL AND + ( - ( - col0 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 AS col0, col2 col1 FROM tab1
----
59
59
68
68
96
96

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-3342
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( - CAST( NULL AS SIGNED ) ) IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

skipif mysql # not compatible
query IIIIII rowsort label-3342
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query I rowsort
SELECT col0 - - 30 * - + 43 FROM tab2
----
-1215
-1226
-1244

onlyif mysql # aggregate syntax: 
query II rowsort label-3344
SELECT + - COUNT( * ), COUNT( * ) AS col1 FROM tab2 WHERE - col1 - + - col1 * - - col1 + col0 = - col1
----
0
0

skipif mysql # not compatible
query II rowsort label-3344
SELECT + - COUNT ( * ), COUNT ( * ) AS col1 FROM tab2 WHERE - col1 - + - col1 * - - col1 + col0 = - col1
----
0
0

query I rowsort
SELECT - - 64 * + - 49 + - col1 + 65 AS col1 FROM tab2 cor0 WHERE ( - - col1 + + col0 + + - col0 IS NOT NULL )
----
-3122
-3138
-3148

onlyif mysql # aggregate syntax: 
query I rowsort label-3346
SELECT + - COUNT( * ) + - MAX( DISTINCT + 32 ) AS col0 FROM tab1 cor0
----
-35

skipif mysql # not compatible
query I rowsort label-3346
SELECT + - COUNT ( * ) + - MAX ( DISTINCT + 32 ) AS col0 FROM tab1 cor0
----
-35

query I rowsort
SELECT ALL 22 * + col0 AS col1 FROM tab2 AS cor0
----
1012
1408
1650

query I rowsort
SELECT - ( ( - + col1 ) ) FROM tab2 AS cor0
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col1, + col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

query I rowsort
SELECT ( 22 ) AS col2 FROM tab2 AS cor0
----
22
22
22

onlyif mysql # DIV for integer division: 
query I rowsort label-3351
SELECT + + col2 DIV - - col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3351
SELECT + + col2 / - - col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3352
SELECT - + SUM( + col0 ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-3352
SELECT - + SUM ( + col0 ) FROM tab2 AS cor0
----
-185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3353
SELECT - COUNT( * ) AS col2, CAST( NULL AS SIGNED ) * - COUNT( * ) col2 FROM tab2 cor0
----
-3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3353
SELECT - COUNT ( * ) AS col2, CAST ( NULL AS INTEGER ) * - COUNT ( * ) col2 FROM tab2 cor0
----
-3
NULL

query I rowsort
SELECT - ( + 34 ) FROM tab1
----
-34
-34
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-3355
SELECT - MAX( 34 ) AS col2 FROM tab0
----
-34

skipif mysql # not compatible
query I rowsort label-3355
SELECT - MAX ( 34 ) AS col2 FROM tab0
----
-34

query I rowsort
SELECT ALL + col0 * ( + 60 ) FROM tab1
----
3060
5100
5460

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3357
SELECT col0 AS col0 FROM tab0 WHERE NOT - + 26 + + 74 BETWEEN + col1 AND - col2 - - + CAST( NULL AS SIGNED )
----
15

skipif mysql # not compatible
query I rowsort label-3357
SELECT col0 AS col0 FROM tab0 WHERE NOT - + 26 + + 74 BETWEEN + col1 AND - col2 - - + CAST ( NULL AS INTEGER )
----
15

query I rowsort
SELECT ALL - 92 * col1 AS col0 FROM tab0
----
-1932
-7452
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3359
SELECT ALL ( - + CAST( NULL AS SIGNED ) ) * - col2 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3359
SELECT ALL ( - + CAST ( NULL AS INTEGER ) ) * - col2 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3360
SELECT + + 25 * + 92 - + COUNT( DISTINCT 56 ) FROM tab0 AS cor0
----
2299

skipif mysql # not compatible
query I rowsort label-3360
SELECT + + 25 * + 92 - + COUNT ( DISTINCT 56 ) FROM tab0 AS cor0
----
2299

onlyif mysql # aggregate syntax: 
query I rowsort label-3361
SELECT - - MAX( DISTINCT 71 ) * + + 86 AS col0 FROM tab0 AS cor0
----
6106

skipif mysql # not compatible
query I rowsort label-3361
SELECT - - MAX ( DISTINCT 71 ) * + + 86 AS col0 FROM tab0 AS cor0
----
6106

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 7 BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3363
SELECT col2 DIV - 56 AS col2 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3363
SELECT col2 / - 56 AS col2 FROM tab2
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3364
SELECT DISTINCT col2 * - CAST( - 31 AS SIGNED ) AS col2 FROM tab0
----
1457
3069
310

skipif mysql # not compatible
query I rowsort label-3364
SELECT DISTINCT col2 * - CAST ( - 31 AS INTEGER ) AS col2 FROM tab0
----
1457
3069
310

query II rowsort
SELECT ALL 63 AS col1, 67 FROM tab0
----
63
67
63
67
63
67

query I rowsort
SELECT DISTINCT + col1 FROM tab0 WHERE col0 + - 19 - 13 IS NULL
----

query I rowsort
SELECT - 6 + + col1 FROM tab2 AS cor0
----
45
61
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3368
SELECT + COUNT( * ) * + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE + 38 * - col1 > col1
----
0

skipif mysql # not compatible
query I rowsort label-3368
SELECT + COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE + 38 * - col1 > col1
----
0

query I rowsort
SELECT ALL col1 + + 81 * + 58 FROM tab0 AS cor0
----
4699
4719
4779

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND col2 * col1 + + - 92 * 26
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 + - col0 col1 FROM tab0 AS cor0
----
-196
-62
-97

query II rowsort
SELECT ALL col1 * + col0 AS col2, + col1 FROM tab1
----
425
5
4277
47
714
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3373
SELECT - 46 FROM tab1 WHERE + - 66 * + 72 < + col1 + 50 + col2 + CAST( + 87 AS SIGNED )
----
-46
-46
-46

skipif mysql # not compatible
query I rowsort label-3373
SELECT - 46 FROM tab1 WHERE + - 66 * + 72 < + col1 + 50 + col2 + CAST ( + 87 AS INTEGER )
----
-46
-46
-46

query III rowsort
SELECT * FROM tab0 WHERE 35 * - col1 * + + col2 NOT BETWEEN - col1 + - + col1 AND + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 - - - col0 + + 64 FROM tab2
----
56
69
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 78 + - + col0 col1, + col2 FROM tab2
----
14
40
3
58
32
23

onlyif mysql # DIV for integer division: 
query I rowsort label-3377
SELECT ALL ( + 55 ) DIV - + 66 + + 40 FROM tab1
----
40
40
40

skipif mysql # not compatible
query I rowsort label-3377
SELECT ALL ( + 55 ) / - + 66 + + 40 FROM tab1
----
40
40
40

query I rowsort
SELECT DISTINCT ( + 12 ) AS col2 FROM tab2 AS cor0
----
12

query II rowsort
SELECT ALL 18 + + + col2, col2 FROM tab1 cor0
----
114
96
77
59
86
68

query I rowsort
SELECT DISTINCT + col2 * - ( + col2 ) FROM tab2
----
-1600
-3364
-529

query I rowsort
SELECT ALL + col1 * + 35 AS col1 FROM tab2 AS cor0
----
1785
2345
2695

query I rowsort
SELECT DISTINCT + - 35 FROM tab2 AS cor0 WHERE NOT - col2 + - 35 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3383
SELECT - 78 DIV - + ( - col0 ) FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3383
SELECT - 78 / - + ( - col0 ) FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - ( - col1 ) * - col1 FROM tab2 cor0
----
-2601
-4489
-5929

query I rowsort
SELECT ALL + + col1 FROM tab1 WHERE - col1 + - col0 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 + - col2 < - + 19
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3387
SELECT CAST( + + MIN( + - 25 ) AS SIGNED ), ( + - MAX( + + col0 ) ) col0 FROM tab1
----
-25
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3387
SELECT CAST ( + + MIN ( + - 25 ) AS INTEGER ), ( + - MAX ( + + col0 ) ) col0 FROM tab1
----
-25
-91

query I rowsort
SELECT DISTINCT 49 * - - 77 FROM tab2
----
3773

onlyif mysql # aggregate syntax: 
query I rowsort label-3389
SELECT MIN( ALL + 90 ) AS col1 FROM tab1
----
90

skipif mysql # not compatible
query I rowsort label-3389
SELECT MIN ( ALL + 90 ) AS col1 FROM tab1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3390
SELECT ALL + COUNT( ALL + col0 ) * + 62 AS col0 FROM tab2
----
186

skipif mysql # not compatible
query I rowsort label-3390
SELECT ALL + COUNT ( ALL + col0 ) * + 62 AS col0 FROM tab2
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-3391
SELECT ( - MIN( - + 99 ) ) FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-3391
SELECT ( - MIN ( - + 99 ) ) FROM tab1
----
99

query II rowsort
SELECT - col0 AS col1, + 41 AS col2 FROM tab1
----
-51
41
-85
41
-91
41

query I rowsort
SELECT DISTINCT - 26 * - col2 AS col1 FROM tab2
----
1040
1508
598

onlyif mysql # aggregate syntax: 
query I rowsort label-3394
SELECT + COUNT( DISTINCT + col0 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3394
SELECT + COUNT ( DISTINCT + col0 ) AS col2 FROM tab2
----
3

query II rowsort
SELECT DISTINCT - ( + col1 ) * - col1 AS col0, 97 * + + 10 FROM tab1
----
196
970
2209
970
25
970

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab1 WHERE ( NOT - col1 NOT BETWEEN ( - col1 ) AND - 90 )
----

query I rowsort
SELECT ALL - 17 + + col1 AS col1 FROM tab2 AS cor0
----
34
50
60

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NOT ( 32 ) - - 70 > ( + ( + col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3399
SELECT MAX( ALL 52 ) FROM tab1
----
52

skipif mysql # not compatible
query I rowsort label-3399
SELECT MAX ( ALL 52 ) FROM tab1
----
52

query I rowsort
SELECT col2 - - 55 AS col0 FROM tab1
----
114
123
151

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - 5 ) IN ( col0 * - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) <= ( col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE 88 * + col0 + 43 <= col1
----

query I rowsort
SELECT DISTINCT 27 FROM tab1 WHERE NOT ( + 13 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3405
SELECT ALL - COUNT( * ) FROM tab0 WHERE NOT ( col2 + CAST( NULL AS DECIMAL ) * - 32 ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3405
SELECT ALL - COUNT ( * ) FROM tab0 WHERE NOT ( col2 + CAST ( NULL AS REAL ) * - 32 ) IS NOT NULL
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3406
SELECT * FROM tab1 WHERE ( + 85 ) BETWEEN NULL AND CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-3406
SELECT * FROM tab1 WHERE ( + 85 ) BETWEEN NULL AND CAST ( NULL AS REAL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3407
SELECT ALL - CAST( + 28 AS SIGNED ) AS col1 FROM tab2
----
-28
-28
-28

skipif mysql # not compatible
query I rowsort label-3407
SELECT ALL - CAST ( + 28 AS INTEGER ) AS col1 FROM tab2
----
-28
-28
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-3408
SELECT + COUNT( * ) - + 83 * + 53 AS col0 FROM tab2
----
-4396

skipif mysql # not compatible
query I rowsort label-3408
SELECT + COUNT ( * ) - + 83 * + 53 AS col0 FROM tab2
----
-4396

query I rowsort
SELECT + col0 AS col1 FROM tab2 WHERE NOT ( col2 ) NOT IN ( col0 )
----

query I rowsort
SELECT ALL col2 + - col0 FROM tab1 WHERE col0 - col2 IS NULL
----

query I rowsort
SELECT DISTINCT col2 + - 65 FROM tab1
----
-6
3
31

query I rowsort
SELECT DISTINCT 68 * - 68 + + col2 AS col2 FROM tab1
----
-4528
-4556
-4565

onlyif mysql # aggregate syntax: 
query I rowsort label-3413
SELECT - 37 * COUNT( * ) AS col1 FROM tab1
----
-111

skipif mysql # not compatible
query I rowsort label-3413
SELECT - 37 * COUNT ( * ) AS col1 FROM tab1
----
-111

query I rowsort
SELECT - col1 FROM tab1 WHERE 58 * + 21 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3415
SELECT ALL 66 DIV - ( 44 * - 63 ) FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3415
SELECT ALL 66 / - ( 44 * - 63 ) FROM tab0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3416
SELECT - col0 DIV + col1 AS col0 FROM tab0 WHERE NOT 0 * - 80 + - 15 IS NULL
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-3416
SELECT - col0 / + col1 AS col0 FROM tab0 WHERE NOT 0 * - 80 + - 15 IS NULL
----
-4
-97
0

query I rowsort
SELECT DISTINCT - col1 * - 80 + - ( - ( col0 ) ) * col2 FROM tab2
----
5138
8720
9710

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3418
SELECT MAX( DISTINCT 73 ) * CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3418
SELECT MAX ( DISTINCT 73 ) * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 NOT IN ( 79 )
----

query I rowsort
SELECT + col0 * - 13 AS col0 FROM tab2
----
-598
-832
-975

query I rowsort
SELECT + 15 * + col1 - + 79 * col1 AS col1 FROM tab2
----
-3264
-4288
-4928

query I rowsort
SELECT DISTINCT col1 * col2 FROM tab2 WHERE NOT col0 * col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3423
SELECT DISTINCT 82 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3423
SELECT DISTINCT 82 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3424
SELECT ALL CAST( NULL AS SIGNED ) * 41 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3424
SELECT ALL CAST ( NULL AS INTEGER ) * 41 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 + + col2 AS col1 FROM tab2 AS cor0 WHERE NOT + col0 * - 43 > NULL
----

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab0 AS cor0 WHERE col1 BETWEEN + 51 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3427
SELECT col1 DIV 9 - 77 FROM tab1 AS cor0
----
-72
-76
-77

skipif mysql # not compatible
query I rowsort label-3427
SELECT col1 / 9 - 77 FROM tab1 AS cor0
----
-72
-76
-77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT + 87 - 89 AS col1 FROM tab1 AS cor0
----
-2
-2
-2

query I rowsort
SELECT 59 - col0 FROM tab0 AS cor0
----
-28
-38
44

onlyif mysql # DIV for integer division: 
query I rowsort label-3431
SELECT DISTINCT col2 DIV 27 FROM tab0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-3431
SELECT DISTINCT col2 / 27 FROM tab0
----
0
1
3

query I rowsort
SELECT 38 + + col1 AS col1 FROM tab0 WHERE NOT col2 * 9 + 38 BETWEEN 18 + - 3 * col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3433
SELECT DISTINCT CAST( NULL AS SIGNED ) + - 12 FROM tab0 AS cor0 CROSS JOIN tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3433
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 12 FROM tab0 AS cor0 CROSS JOIN tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL >= + ( 80 ) + - 0
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 IN ( + col0 * - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 25 <= + col2 + - col1
----
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3437
SELECT - - COUNT( DISTINCT 24 ) AS col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3437
SELECT - - COUNT ( DISTINCT 24 ) AS col0 FROM tab1 AS cor0
----
1

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3439
SELECT ( COUNT( * ) ) * 47 AS col0 FROM tab1 AS cor0 WHERE NOT + col0 = + col2
----
141

skipif mysql # not compatible
query I rowsort label-3439
SELECT ( COUNT ( * ) ) * 47 AS col0 FROM tab1 AS cor0 WHERE NOT + col0 = + col2
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-3440
SELECT - MIN( + ( ( + col2 ) ) ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-3440
SELECT - MIN ( + ( ( + col2 ) ) ) FROM tab2 AS cor0
----
-23

query I rowsort
SELECT 50 * 1 AS col0 FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN col0 - 52 * + col0 AND ( NULL )
----

query I rowsort
SELECT - col2 - + col1 AS col2 FROM tab0 WHERE NOT col0 IS NULL
----
-100
-128
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-3443
SELECT COUNT( * ) * 21 col2 FROM tab1
----
63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3443
SELECT COUNT ( * ) * 21 col2 FROM tab1
----
63

query I rowsort
SELECT ALL col0 * + - 67 AS col1 FROM tab1
----
-3417
-5695
-6097

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 86 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 + + col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
117
125
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3447
SELECT DISTINCT COUNT( * ) * + 43 FROM tab0
----
129

skipif mysql # not compatible
query I rowsort label-3447
SELECT DISTINCT COUNT ( * ) * + 43 FROM tab0
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-3448
SELECT ALL MIN( ALL 31 ) AS col1 FROM tab2
----
31

skipif mysql # not compatible
query I rowsort label-3448
SELECT ALL MIN ( ALL 31 ) AS col1 FROM tab2
----
31

query I rowsort
SELECT 60 * + ( col1 ) FROM tab0 AS cor0 WHERE NOT ( - 75 / col0 ) >= ( + col2 - + col0 * - 13 )
----
1260
4860
60

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3450
SELECT ALL - col1 * ( CAST( + 41 AS DECIMAL ) ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-3450
SELECT ALL - col1 * ( CAST ( + 41 AS REAL ) ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - ( - 70 ) IN ( col1 * - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3452
SELECT + MAX( + 42 ) AS col1 FROM tab2 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-3452
SELECT + MAX ( + 42 ) AS col1 FROM tab2 AS cor0
----
42

query I rowsort
SELECT col2 AS col2 FROM tab0 AS cor0 WHERE + 71 IS NOT NULL
----
10
47
99

query III rowsort
SELECT * FROM tab1 WHERE ( NOT - 85 * + col2 + - 70 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3455
SELECT COUNT( * ) * COUNT( ALL + col0 ) + + MIN( - 19 ) FROM tab2
----
-10

skipif mysql # not compatible
query I rowsort label-3455
SELECT COUNT ( * ) * COUNT ( ALL + col0 ) + + MIN ( - 19 ) FROM tab2
----
-10

query IIIIII rowsort
SELECT * FROM tab1 cor0 JOIN tab1 AS cor1 ON NOT 25 >= - 48
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3457
SELECT ALL 12 + + col2 * ( ( - col1 ) ) AS col1 FROM tab0 WHERE NOT + - CAST( + 69 AS SIGNED ) BETWEEN ( - col2 ) AND NULL
----
-198
-3795

skipif mysql # not compatible
query I rowsort label-3457
SELECT ALL 12 + + col2 * ( ( - col1 ) ) AS col1 FROM tab0 WHERE NOT + - CAST ( + 69 AS INTEGER ) BETWEEN ( - col2 ) AND NULL
----
-198
-3795

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3458
SELECT ALL COUNT( + - 94 ) DIV + 4 + COUNT( * ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3458
SELECT ALL COUNT ( + - 94 ) / + 4 + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL + 14 * + col1 FROM tab2 AS cor0 WHERE NOT ( NOT NULL <> NULL ) OR NOT - col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + col0 < ( + col2 * - col0 )
----

query I rowsort
SELECT ALL - col0 * - 80 FROM tab1 cor0 WHERE col0 * col0 IN ( col2 )
----

query II rowsort
SELECT + 26 AS col0, 42 FROM tab1 AS cor0
----
26
42
26
42
26
42

query I rowsort
SELECT DISTINCT col2 * - - col0 * - ( + col0 ) AS col0 FROM tab0 AS cor0
----
-10575
-75690
-931491

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3464
SELECT ALL + CAST( NULL AS SIGNED ) * - - col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3464
SELECT ALL + CAST ( NULL AS INTEGER ) * - - col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 86 BETWEEN - col2 AND - 38
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3466
SELECT DISTINCT + - COUNT( * ) + 37 AS col2 FROM tab2 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-3466
SELECT DISTINCT + - COUNT ( * ) + 37 AS col2 FROM tab2 AS cor0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3467
SELECT MIN( ALL + - 63 ) AS col1 FROM tab1 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-3467
SELECT MIN ( ALL + - 63 ) AS col1 FROM tab1 AS cor0
----
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col1 ) * + col2 col1 FROM tab2 AS cor0 WHERE ( col1 / - - 28 ) IS NOT NULL
----
1173
3080
3886

query I rowsort
SELECT ALL - 96 * - + col2 - - + col0 AS col1 FROM tab2 cor0
----
2254
3904
5643

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3470
SELECT DISTINCT col1 / - col1 * - 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-3470
SELECT DISTINCT col1 / - col1 * - CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 82 col2 FROM tab1
----
82
82
82

query I rowsort
SELECT 69 * - col1 + - col0 FROM tab0
----
-1536
-166
-5604

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - ( + - col0 ) BETWEEN - 98 * - 56 AND NULL
----

query I rowsort
SELECT ALL col2 - + + col1 AS col2 FROM tab0 cor0
----
-11
-34
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3475
SELECT DISTINCT - MIN( DISTINCT - 94 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
94

skipif mysql # not compatible
query I rowsort label-3475
SELECT DISTINCT - MIN ( DISTINCT - 94 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
94

query I rowsort
SELECT DISTINCT + col2 + - col1 AS col1 FROM tab1 WHERE NULL IS NULL
----
21
54
82

query I rowsort
SELECT AVG ( + col2 ) * - 4 AS col0 FROM tab1 WHERE NOT ( NULL ) NOT IN ( 38 / col2 )
----
NULL

query I rowsort
SELECT ALL + 81 * - + col2 + + 79 FROM tab1 AS cor0
----
-4700
-5429
-7697

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 72 * + col0 col2 FROM tab1 AS cor0
----
3672
6120
6552

onlyif mysql # aggregate syntax: 
query I rowsort label-3480
SELECT ALL - COUNT( * ) * - + 27 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-3480
SELECT ALL - COUNT ( * ) * - + 27 FROM tab0 AS cor0
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-3481
SELECT ALL + - 76 DIV - 10 AS col0 FROM tab2 AS cor0
----
7
7
7

skipif mysql # not compatible
query I rowsort label-3481
SELECT ALL + - 76 / - 10 AS col0 FROM tab2 AS cor0
----
7
7
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 71 col2, 20 FROM tab0 AS cor0
----
71
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 30 * + col1 col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col2 * - 78 FROM tab0 AS cor0
----
3666
7722
780

query I rowsort
SELECT DISTINCT 83 * + 66 FROM tab0
----
5478

query I rowsort
SELECT - 71 * - 94 FROM tab2
----
6674
6674
6674

query II rowsort
SELECT + col2 AS col2, col2 AS col0 FROM tab0
----
10
10
47
47
99
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3488
SELECT - col1 FROM tab0 WHERE NOT ( - - CAST( NULL AS SIGNED ) - + - 80 - - + col1 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-3488
SELECT - col1 FROM tab0 WHERE NOT ( - - CAST ( NULL AS INTEGER ) - + - 80 - - + col1 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col1, col1 + - - 36 AS col1 FROM tab2
----
-23
87
-40
113
-58
103

onlyif mysql # aggregate syntax: 
query I rowsort label-3490
SELECT + COUNT( * ) + - + 33 AS col1 FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-3490
SELECT + COUNT ( * ) + - + 33 AS col1 FROM tab0
----
-30

query II rowsort
SELECT ALL 66, col2 FROM tab2
----
66
23
66
40
66
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3492
SELECT - CAST( - CAST( - col0 AS SIGNED ) AS SIGNED ) + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3492
SELECT - CAST ( - CAST ( - col0 AS INTEGER ) AS INTEGER ) + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3493
SELECT + col2 DIV - + col0 + col1 DIV + + 72 col1 FROM tab1
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3493
SELECT + col2 / - + col0 + col1 / + + 72 col1 FROM tab1
----
-1
0
0

query I rowsort
SELECT ALL 69 + col0 * - col1 FROM tab1 cor0
----
-356
-4208
-645

query I rowsort
SELECT ALL + 31 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( - + 43 * - 1 * - 67 * + 17 * 94 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3496
SELECT ALL + ( + - COUNT( * ) ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3496
SELECT ALL + ( + - COUNT ( * ) ) AS col2 FROM tab2
----
-3

query I rowsort
SELECT DISTINCT - 68 + + + col0 AS col1 FROM tab0 AS cor0
----
-53
19
29

query I rowsort
SELECT ALL - col0 * + col1 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - 42 + - 81 AS col2 FROM tab1 AS cor0
----
-123

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3500
SELECT ALL + + COUNT( ALL + CAST( NULL AS DECIMAL ) ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3500
SELECT ALL + + COUNT ( ALL + CAST ( NULL AS REAL ) ) AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3501
SELECT + col1 * - col1 + - col0 - - CAST( NULL AS SIGNED ) + + col0 + + col1 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3501
SELECT + col1 * - col1 + - col0 - - CAST ( NULL AS INTEGER ) + + col0 + + col1 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 IN ( - col0, col1 ) OR ( + - 32 + - col0 ) >= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3503
SELECT DISTINCT col1 - + ( - + CAST( NULL AS DECIMAL ) ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3503
SELECT DISTINCT col1 - + ( - + CAST ( NULL AS REAL ) ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + ( col1 ) * col0 AS col2 FROM tab1 WHERE NOT col0 IS NULL
----
425
4277
714

onlyif mysql # aggregate syntax: 
query II rowsort label-3505
SELECT ALL + COUNT( * ), + MIN( + 8 ) AS col2 FROM tab1
----
3
8

skipif mysql # not compatible
query II rowsort label-3505
SELECT ALL + COUNT ( * ), + MIN ( + 8 ) AS col2 FROM tab1
----
3
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3506
SELECT + MIN( DISTINCT 31 ) AS col2 FROM tab2
----
31

skipif mysql # not compatible
query I rowsort label-3506
SELECT + MIN ( DISTINCT 31 ) AS col2 FROM tab2
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3507
SELECT ALL CAST( 76 AS SIGNED ) - + col0 * col0 + + 17 FROM tab1
----
-2508
-7132
-8188

skipif mysql # not compatible
query I rowsort label-3507
SELECT ALL CAST ( 76 AS INTEGER ) - + col0 * col0 + + 17 FROM tab1
----
-2508
-7132
-8188

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + col1 * col1 - - col2 ) > ( - ( 15 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT col2 AS col2, col1 AS col1 FROM tab0
----
10
21
47
81
99
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3510
SELECT - 57 AS col2, COUNT( * ) FROM tab1
----
-57
3

skipif mysql # not compatible
query II rowsort label-3510
SELECT - 57 AS col2, COUNT ( * ) FROM tab1
----
-57
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3511
SELECT DISTINCT - CAST( col2 AS SIGNED ) AS col2 FROM tab1 WHERE NOT - col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3511
SELECT DISTINCT - CAST ( col2 AS INTEGER ) AS col2 FROM tab1 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3512
SELECT CAST( 80 AS SIGNED ) * + 40 FROM tab0 cor0
----
3200
3200
3200

skipif mysql # not compatible
query I rowsort label-3512
SELECT CAST ( 80 AS INTEGER ) * + 40 FROM tab0 cor0
----
3200
3200
3200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 87 col0 FROM tab1 AS cor0
----
87
87
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3514
SELECT COUNT( ALL + - col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3514
SELECT COUNT ( ALL + - col0 ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL <> ( col0 * + col1 )
----

query I rowsort
SELECT DISTINCT + + ( + 2 ) AS col1 FROM tab1 AS cor0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3517
SELECT MIN( ALL 76 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 60 IS NULL
----
76

skipif mysql # not compatible
query I rowsort label-3517
SELECT MIN ( ALL 76 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 60 IS NULL
----
76

query I rowsort
SELECT ALL + col0 * + col2 AS col0 FROM tab1 AS cor0 WHERE NOT col1 NOT IN ( col2, - 98 / - ( col2 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3519
SELECT - - CAST( + + 83 AS SIGNED ) * - col2 FROM tab0 AS cor0
----
-3901
-8217
-830

skipif mysql # not compatible
query I rowsort label-3519
SELECT - - CAST ( + + 83 AS INTEGER ) * - col2 FROM tab0 AS cor0
----
-3901
-8217
-830

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - col2 NOT IN ( + 2, + col2 + - + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3521
SELECT + + 21 * - col1 col0, 92 / + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
-1701
NULL
-21
NULL
-441
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3521
SELECT + + 21 * - col1 col0, 92 / + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
-1701
NULL
-21
NULL
-441
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3522
SELECT DISTINCT - MAX( + + ( + col0 ) ) * 93 AS col0 FROM tab0
----
-9021

skipif mysql # not compatible
query I rowsort label-3522
SELECT DISTINCT - MAX ( + + ( + col0 ) ) * 93 AS col0 FROM tab0
----
-9021

onlyif mysql # aggregate syntax: 
query I rowsort label-3523
SELECT ALL + MIN( + - 11 ) FROM tab1
----
-11

skipif mysql # not compatible
query I rowsort label-3523
SELECT ALL + MIN ( + - 11 ) FROM tab1
----
-11

query I rowsort
SELECT ALL col2 AS col2 FROM tab0 WHERE NOT ( - 99 ) IN ( - col2, + col2 )
----
10
47

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 20 + + 52 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2, - col1 * 56 col0 FROM tab2
----
23
-2856
40
-4312
58
-3752

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3527
SELECT ALL - CAST( + - COUNT( * ) AS SIGNED ) + - + 82 FROM tab1
----
-79

skipif mysql # not compatible
query I rowsort label-3527
SELECT ALL - CAST ( + - COUNT ( * ) AS INTEGER ) + - + 82 FROM tab1
----
-79

query I rowsort
SELECT + col0 FROM tab1 WHERE NULL > ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3529
SELECT ALL - 80 + + 82 + + - MAX( DISTINCT - col0 ) * + + 28 * - 42 FROM tab2 AS cor0
----
-54094

skipif mysql # not compatible
query I rowsort label-3529
SELECT ALL - 80 + + 82 + + - MAX ( DISTINCT - col0 ) * + + 28 * - 42 FROM tab2 AS cor0
----
-54094

query I rowsort
SELECT ALL + col0 + + col2 + col1 * 41 AS col0 FROM tab2 AS cor0
----
2160
2880
3261

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3531
SELECT ALL + + col1 * + CAST( NULL AS SIGNED ) - - 7 + + - col0 - - 73 AS col1 FROM tab2 AS cor0 WHERE NOT NULL > + ( + - 64 )
----

skipif mysql # not compatible
query I rowsort label-3531
SELECT ALL + + col1 * + CAST ( NULL AS INTEGER ) - - 7 + + - col0 - - 73 AS col1 FROM tab2 AS cor0 WHERE NOT NULL > + ( + - 64 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3532
SELECT 34 DIV + COUNT( * ) FROM tab2 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-3532
SELECT 34 / + COUNT ( * ) FROM tab2 AS cor0
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3533
SELECT + col2 * - CAST( + 45 AS SIGNED ) * - - col0 * col0 AS col0 FROM tab1 AS cor0 WHERE + col1 NOT IN ( - col2, + col0, col1 )
----

skipif mysql # not compatible
query I rowsort label-3533
SELECT + col2 * - CAST ( + 45 AS INTEGER ) * - - col0 * col0 AS col0 FROM tab1 AS cor0 WHERE + col1 NOT IN ( - col2, + col0, col1 )
----

query I rowsort
SELECT DISTINCT col0 - 28 FROM tab1 AS cor0
----
23
57
63

query I rowsort
SELECT DISTINCT col0 * - col0 - + - col0 FROM tab1 AS cor0
----
-2550
-7140
-8190

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 * - 54 * + + 52 + + + 42 + - - 24 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3537
SELECT - col2 * - + 7 AS col0, + col1 + - 85 + + CAST( col1 AS SIGNED ) * + 56 FROM tab1 cor0
----
413
200
476
2594
672
713

skipif mysql # not compatible
query II rowsort label-3537
SELECT - col2 * - + 7 AS col0, + col1 + - 85 + + CAST ( col1 AS INTEGER ) * + 56 FROM tab1 cor0
----
413
200
476
2594
672
713

query II rowsort
SELECT col0, 26 AS col1 FROM tab2
----
46
26
64
26
75
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3539
SELECT + CAST( NULL AS SIGNED ) / - col1 * + - col0 * col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3539
SELECT + CAST ( NULL AS INTEGER ) / - col1 * + - col0 * col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3540
SELECT + + 99 AS col0, COUNT( * ) FROM tab2 AS cor0
----
99
3

skipif mysql # not compatible
query II rowsort label-3540
SELECT + + 99 AS col0, COUNT ( * ) FROM tab2 AS cor0
----
99
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 22 / - ( col0 ) - - col0 IN ( - - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3542
SELECT - ( - MIN( - 36 ) ) FROM tab2 AS cor0 WHERE NOT CAST( - col0 AS SIGNED ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3542
SELECT - ( - MIN ( - 36 ) ) FROM tab2 AS cor0 WHERE NOT CAST ( - col0 AS INTEGER ) IS NOT NULL
----
NULL

query I rowsort
SELECT ALL col0 - - + col0 AS col1 FROM tab2 WHERE NOT - - col2 + ( ( + 88 ) ) + + + col0 IN ( - col0, - col2 )
----
128
150
92

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL >= NULL OR NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3545
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col1 AS col0, 89 * + col2 * + col0 + col0 - 38 AS col0 FROM tab2
----
NULL
227866
NULL
387187
NULL
94170

skipif mysql # not compatible
query II rowsort label-3545
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col1 AS col0, 89 * + col2 * + col0 + col0 - 38 AS col0 FROM tab2
----
NULL
227866
NULL
387187
NULL
94170

query I rowsort
SELECT DISTINCT 64 + - + col1 FROM tab1
----
17
50
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3547
SELECT 96 + - SUM( DISTINCT col0 ) * - - 96 FROM tab0
----
-19008

skipif mysql # not compatible
query I rowsort label-3547
SELECT 96 + - SUM ( DISTINCT col0 ) * - - 96 FROM tab0
----
-19008

query I rowsort
SELECT col1 + 51 AS col0 FROM tab0
----
132
52
72

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL = + col0 / 51
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3550
SELECT + MAX( - + CAST( NULL AS DECIMAL ) ) * - - 65 + 28 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3550
SELECT + MAX ( - + CAST ( NULL AS REAL ) ) * - - 65 + 28 FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE - 96 * + - col1 - + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3552
SELECT ALL - COUNT( * ) * + 23 FROM tab2 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-3552
SELECT ALL - COUNT ( * ) * + 23 FROM tab2 AS cor0
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3553
SELECT - + col1 * col0 + - + col0 FROM tab0 AS cor0 WHERE + CAST( + col1 AS SIGNED ) < + + col2
----
-194

skipif mysql # not compatible
query I rowsort label-3553
SELECT - + col1 * col0 + - + col0 FROM tab0 AS cor0 WHERE + CAST ( + col1 AS INTEGER ) < + + col2
----
-194

onlyif mysql # aggregate syntax: 
query I rowsort label-3554
SELECT DISTINCT + COUNT( * ) + - ( 7 ) FROM tab1 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-3554
SELECT DISTINCT + COUNT ( * ) + - ( 7 ) FROM tab1 AS cor0
----
-4

query I rowsort
SELECT 41 - - col0 FROM tab0
----
128
138
56

query I rowsort
SELECT DISTINCT - 87 FROM tab0, tab0 AS cor0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-3557
SELECT + 79 + + COUNT( * ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
82

skipif mysql # not compatible
query I rowsort label-3557
SELECT + 79 + + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3558
SELECT ALL * FROM tab0 AS cor0 WHERE col1 + - col1 BETWEEN - - 96 + - - ( + - col1 ) * - 16 AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3558
SELECT ALL * FROM tab0 AS cor0 WHERE col1 + - col1 BETWEEN - - 96 + - - ( + - col1 ) * - 16 AND CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3559
SELECT - MIN( - + 78 ) FROM tab1 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-3559
SELECT - MIN ( - + 78 ) FROM tab1 AS cor0
----
78

query I rowsort
SELECT ALL + col2 - - col1 - - col0 AS col2 FROM tab2 AS cor0
----
120
181
200

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 / + - col2 + - col1 - - 32 * + + col0 <= ( + col2 + col0 / - + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 5 col0, 61 + + + col2 * + + col2 col0 FROM tab0
----
5
161
5
2270
5
9862

onlyif mysql # aggregate syntax: 
query I rowsort label-3563
SELECT + MAX( ALL 8 ) AS col1 FROM tab2
----
8

skipif mysql # not compatible
query I rowsort label-3563
SELECT + MAX ( ALL 8 ) AS col1 FROM tab2
----
8

query II rowsort
SELECT col1, - 92 AS col2 FROM tab1
----
14
-92
47
-92
5
-92

query II rowsort
SELECT DISTINCT + 72 AS col0, - col2 * + + col2 AS col1 FROM tab1
----
72
-3481
72
-4624
72
-9216

query II rowsort
SELECT DISTINCT col0, - 28 FROM tab2
----
46
-28
64
-28
75
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3567
SELECT DISTINCT - CAST( + 55 AS SIGNED ) * 92 FROM tab2
----
-5060

skipif mysql # not compatible
query I rowsort label-3567
SELECT DISTINCT - CAST ( + 55 AS INTEGER ) * 92 FROM tab2
----
-5060

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3568
SELECT + COUNT( DISTINCT - + col1 ) DIV - 47 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3568
SELECT + COUNT ( DISTINCT - + col1 ) / - 47 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT + - col0 + - col1 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3570
SELECT ALL - ( - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3570
SELECT ALL - ( - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 33, - col0 * - col1 * + col2 col1 FROM tab1 AS cor0
----
33
25075
33
290836
33
68544

onlyif mysql # aggregate syntax: 
query I rowsort label-3572
SELECT ALL - MIN( DISTINCT + col1 ) * SUM( col1 ) AS col2 FROM tab0 AS cor0 WHERE NOT + col0 + - + 14 + - col0 - - + col2 IS NULL
----
-103

skipif mysql # not compatible
query I rowsort label-3572
SELECT ALL - MIN ( DISTINCT + col1 ) * SUM ( col1 ) AS col2 FROM tab0 AS cor0 WHERE NOT + col0 + - + 14 + - col0 - - + col2 IS NULL
----
-103

query I rowsort
SELECT - 79 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f

query I rowsort
SELECT ALL + col1 + + 69 FROM tab2
----
120
136
146

onlyif mysql # aggregate syntax: 
query I rowsort label-3575
SELECT COUNT( * ) + MAX( - col2 ) FROM tab1 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-3575
SELECT COUNT ( * ) + MAX ( - col2 ) FROM tab1 AS cor0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-3576
SELECT ( MIN( ALL + - col1 ) ) * + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-3576
SELECT ( MIN ( ALL + - col1 ) ) * + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
243

onlyif mysql # aggregate syntax: 
query II rowsort label-3577
SELECT ALL + COUNT( * ) + - 8 AS col0, + 76 FROM tab0 AS cor0
----
-5
76

skipif mysql # not compatible
query II rowsort label-3577
SELECT ALL + COUNT ( * ) + - 8 AS col0, + 76 FROM tab0 AS cor0
----
-5
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3578
SELECT ALL 61 * + COUNT( * ) FROM tab2 AS cor0
----
183

skipif mysql # not compatible
query I rowsort label-3578
SELECT ALL 61 * + COUNT ( * ) FROM tab2 AS cor0
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-3579
SELECT DISTINCT SUM( DISTINCT + col1 ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-3579
SELECT DISTINCT SUM ( DISTINCT + col1 ) FROM tab2 AS cor0
----
195

query I rowsort
SELECT col0 * 39 AS col2 FROM tab2 AS cor0
----
1794
2496
2925

query I rowsort
SELECT ALL col0 * - ( 15 ) FROM tab1 AS cor0
----
-1275
-1365
-765

query I rowsort
SELECT - + 38 + + col0 FROM tab1 cor0 WHERE ( NULL ) NOT BETWEEN + - col1 AND NULL
----

query I rowsort
SELECT + + 98 FROM tab2 WHERE + col0 / + 16 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 * + + 75 AS col2 FROM tab0
----
-1125
-6525
-7275

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3585
SELECT ALL * FROM tab2 WHERE NOT NULL >= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3585
SELECT ALL * FROM tab2 WHERE NOT NULL >= + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3586
SELECT + 16 + + + COUNT( * ) col0 FROM tab1 WHERE - col1 IS NULL
----
16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3586
SELECT + 16 + + + COUNT ( * ) col0 FROM tab1 WHERE - col1 IS NULL
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3587
SELECT ALL MIN( DISTINCT - - CAST( + col0 AS SIGNED ) ) col0 FROM tab1
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3587
SELECT ALL MIN ( DISTINCT - - CAST ( + col0 AS INTEGER ) ) col0 FROM tab1
----
51

query I rowsort
SELECT DISTINCT + - col1 * - - col1 - ( - col2 ) + - col1 FROM tab1 AS cor0
----
-114
-2188
29

query I rowsort
SELECT ALL - 37 - col1 AS col0 FROM tab0 AS cor0
----
-118
-38
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3590
SELECT ALL + - COUNT( * ) + + + COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3590
SELECT ALL + - COUNT ( * ) + + + COUNT ( * ) FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3591
SELECT DISTINCT + CAST( + 15 AS SIGNED ) AS col0 FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-3591
SELECT DISTINCT + CAST ( + 15 AS INTEGER ) AS col0 FROM tab2
----
15

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 <= ( NULL )
----

query I rowsort
SELECT + col2 * + ( + 43 ) FROM tab2
----
1720
2494
989

query I rowsort
SELECT ( 13 ) - col2 AS col2 FROM tab2 AS cor0
----
-10
-27
-45

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 <= + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + 77 * - col2 + - 60 AS col2 FROM tab1 AS cor0
----
-4603
-5296
-7452

onlyif mysql # DIV for integer division: 
query I rowsort label-3597
SELECT DISTINCT - 22 DIV + + 50 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3597
SELECT DISTINCT - 22 / + + 50 AS col0 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN NULL AND 16
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3599
SELECT - SUM( DISTINCT + col0 ) * COUNT( - col2 ) + COUNT( * ) * - 75 FROM tab0 WHERE NOT col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3599
SELECT - SUM ( DISTINCT + col0 ) * COUNT ( - col2 ) + COUNT ( * ) * - 75 FROM tab0 WHERE NOT col2 IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 >= col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT col0 AS col0, - col1 FROM tab1
----
51
-14
85
-5
91
-47

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3602
SELECT ALL + 55 FROM tab0 WHERE - + 36 - - col0 * - CAST( NULL AS DECIMAL ) * - + ( 4 ) IS NULL
----
55
55
55

skipif mysql # not compatible
query I rowsort label-3602
SELECT ALL + 55 FROM tab0 WHERE - + 36 - - col0 * - CAST ( NULL AS REAL ) * - + ( 4 ) IS NULL
----
55
55
55

query I rowsort
SELECT - 94 * + col0 AS col2 FROM tab1
----
-4794
-7990
-8554

onlyif mysql # aggregate syntax: 
query I rowsort label-3604
SELECT DISTINCT + - MIN( ALL + col2 ) col0 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3604
SELECT DISTINCT + - MIN ( ALL + col2 ) col0 FROM tab1 AS cor0
----
-59

query II rowsort
SELECT DISTINCT - 32, col1 AS col2 FROM tab1 AS cor0
----
-32
14
-32
47
-32
5

query I rowsort
SELECT ALL - - 89 AS col0 FROM tab2 AS cor0
----
89
89
89

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT ( - col1 IS NOT NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 76 col1 FROM tab2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3609
SELECT DISTINCT ( + SUM( ALL - col0 ) ) FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-3609
SELECT DISTINCT ( + SUM ( ALL - col0 ) ) FROM tab2
----
-185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3610
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3610
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - 31 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <> 98 * - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3613
SELECT DISTINCT col0 + - CAST( - + col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
128
150
92

skipif mysql # not compatible
query I rowsort label-3613
SELECT DISTINCT col0 + - CAST ( - + col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
128
150
92

query I rowsort
SELECT ALL + 9 * 84 FROM tab0 AS cor0
----
756
756
756

query I rowsort
SELECT DISTINCT - 60 + - col2 FROM tab1 AS cor0
----
-119
-128
-156

query II rowsort
SELECT DISTINCT + col2 * 97 * col0 + col1, col2 FROM tab0 AS cor0
----
68466
47
84411
10
931492
99

query I rowsort
SELECT ALL + + 38 + + ( + + col2 ) FROM tab0 AS cor0
----
137
48
85

query I rowsort
SELECT + col0 * + col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3619
SELECT COUNT( * ) + 18 FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-3619
SELECT COUNT ( * ) + 18 FROM tab0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3620
SELECT COUNT( * ) + - 85 * + COUNT( * ) FROM tab1
----
-252

skipif mysql # not compatible
query I rowsort label-3620
SELECT COUNT ( * ) + - 85 * + COUNT ( * ) FROM tab1
----
-252

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 NOT IN ( + col2, - col1 + col2, col0, + 74 + - col0 * + 97 * col2 * + 21 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 17 + col1 FROM tab2
----
68
84
94

query I rowsort
SELECT ALL + col1 * + + col1 + - 64 AS col0 FROM tab0
----
-63
377
6497

query I rowsort
SELECT ALL - col0 - - ( + col1 ) + + col1 * col0 + + col1 + + - col2 AS col1 FROM tab0
----
-97
1315
1772

query I rowsort
SELECT 11 - + col2 AS col2 FROM tab1
----
-48
-57
-85

query II rowsort
SELECT ALL col0 AS col2, ( + 86 ) FROM tab2 AS cor0
----
46
86
64
86
75
86

onlyif mysql # DIV for integer division: 
query I rowsort label-3627
SELECT ALL + 74 * - - col0 - + col0 DIV - - 12 FROM tab1 cor0
----
3770
6283
6727

skipif mysql # not compatible
query I rowsort label-3627
SELECT ALL + 74 * - - col0 - + col0 / - - 12 FROM tab1 cor0
----
3770
6283
6727

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3628
SELECT * FROM tab1 AS cor0 WHERE NOT col2 BETWEEN + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-3628
SELECT * FROM tab1 AS cor0 WHERE NOT col2 BETWEEN + CAST ( NULL AS INTEGER ) AND NULL
----

query II rowsort
SELECT ALL col0, col0 + - 38 AS col0 FROM tab1 AS cor0
----
51
13
85
47
91
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3630
SELECT - + COUNT( * ) * 11 FROM tab2 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-3630
SELECT - + COUNT ( * ) * 11 FROM tab2 AS cor0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-3631
SELECT + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT + 50 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3631
SELECT + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT + 50 BETWEEN NULL AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3632
SELECT SUM( + - 87 ) FROM tab1 AS cor0
----
-261

skipif mysql # not compatible
query I rowsort label-3632
SELECT SUM ( + - 87 ) FROM tab1 AS cor0
----
-261

query I rowsort
SELECT ALL + - col0 FROM tab2 WHERE NULL IS NULL
----
-46
-64
-75

query II rowsort
SELECT + col0 AS col1, col1 + + + 90 FROM tab2 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3635
SELECT + 66 * COUNT( * ) * 73 AS col2 FROM tab0 WHERE NOT NULL = col1 * - col1 * - 77
----
0

skipif mysql # not compatible
query I rowsort label-3635
SELECT + 66 * COUNT ( * ) * 73 AS col2 FROM tab0 WHERE NOT NULL = col1 * - col1 * - 77
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3636
SELECT ALL - COUNT( * ) * 23 AS col1 FROM tab0 WHERE - col0 + 6 + - col0 / + 50 IS NOT NULL
----
-69

skipif mysql # not compatible
query I rowsort label-3636
SELECT ALL - COUNT ( * ) * 23 AS col1 FROM tab0 WHERE - col0 + 6 + - col0 / + 50 IS NOT NULL
----
-69

query I rowsort
SELECT ALL - col0 * ( + col0 ) * + 16 + - col2 AS col1 FROM tab1 cor0
----
-115659
-132564
-41712

onlyif mysql # DIV for integer division: 
query I rowsort label-3638
SELECT col0 DIV 88 + col0 FROM tab0 AS cor0
----
15
87
98

skipif mysql # not compatible
query I rowsort label-3638
SELECT col0 / 88 + col0 FROM tab0 AS cor0
----
15
87
98

onlyif mysql # DIV for integer division: 
query I rowsort label-3639
SELECT DISTINCT - + col1 DIV + + col1 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3639
SELECT DISTINCT - + col1 / + + col1 FROM tab1 AS cor0
----
-1

query II rowsort
SELECT + - col0 AS col1, ( col0 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-46
46
-64
64
-75
75

query I rowsort
SELECT DISTINCT + 48 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3642
SELECT DISTINCT + + SUM( ALL col0 ) FROM tab0 AS cor0 WHERE ( NOT - + col1 + + + col0 > NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3642
SELECT DISTINCT + + SUM ( ALL col0 ) FROM tab0 AS cor0 WHERE ( NOT - + col1 + + + col0 > NULL )
----
NULL

query II rowsort
SELECT ALL + 62 AS col0, col2 + ( + 52 ) - + 73 + - col0 FROM tab1 AS cor0
----
62
-44
62
-47
62
24

onlyif mysql # aggregate syntax: 
query II rowsort label-3644
SELECT - COUNT( * ), - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-3644
SELECT - COUNT ( * ), - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-3
-3

query I rowsort
SELECT DISTINCT - 73 + - ( + ( - - col1 ) ) FROM tab1 AS cor0
----
-120
-78
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-3646
SELECT DISTINCT MIN( - 61 ) AS col0 FROM tab2
----
-61

skipif mysql # not compatible
query I rowsort label-3646
SELECT DISTINCT MIN ( - 61 ) AS col0 FROM tab2
----
-61

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3647
SELECT DISTINCT CAST( NULL AS DECIMAL ) - + + col0 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3647
SELECT DISTINCT CAST ( NULL AS REAL ) - + + col0 AS col1 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col2 - 41 * col1 col2 FROM tab1
----
-179
-1904
-619

query I rowsort
SELECT ALL - col2 * + col0 * col1 FROM tab0
----
-18270
-57105
-9603

query I rowsort
SELECT DISTINCT + 51 + - col1 AS col2 FROM tab1 AS cor0
----
37
4
46

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3651
SELECT ALL * FROM tab0 AS cor0 WHERE + CAST( NULL AS SIGNED ) * + 97 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3651
SELECT ALL * FROM tab0 AS cor0 WHERE + CAST ( NULL AS INTEGER ) * + 97 IS NOT NULL
----

query I rowsort
SELECT + - ( col0 ) + + + 91 + 44 FROM tab2 AS cor0
----
60
71
89

query II rowsort
SELECT ALL + col2, + col2 AS col2 FROM tab2 AS cor0 WHERE col2 * 21 IS NOT NULL
----
23
23
40
40
58
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( - 3 ) AS col1, + 20 + 30 col2 FROM tab0
----
3
50
3
50
3
50

query IIIIII rowsort
SELECT * FROM ( tab0 cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT NULL = NULL
----

query I rowsort
SELECT ALL + col0 * 50 + - - 93 FROM tab2 AS cor0
----
2393
3293
3843

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 > - 22
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 = - + 51 * + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + - 37 * - ( + col1 ) FROM tab2 AS cor0
----
1887
2479
2849

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 AS col2, + 67 + + + col0 col2 FROM tab2
----
51
113
67
142
77
131

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3661
SELECT DISTINCT * FROM tab2 WHERE NOT + 42 * + - ( + 84 ) * 71 + col1 * + CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3661
SELECT DISTINCT * FROM tab2 WHERE NOT + 42 * + - ( + 84 ) * 71 + col1 * + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3662
SELECT ALL COUNT( 43 ) * - + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3662
SELECT ALL COUNT ( 43 ) * - + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT + col0 + - ( - + col2 ) * col1 * col1 AS col2 FROM tab2
----
237224
260437
59869

query I rowsort
SELECT 97 * - col0 + - 67 AS col0 FROM tab2
----
-4529
-6275
-7342

query I rowsort
SELECT ALL + col0 + + 93 FROM tab1
----
144
178
184

query II rowsort
SELECT DISTINCT col2, - col2 FROM tab1 cor0
----
59
-59
68
-68
96
-96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT + col2 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + col2 * - col1 * col1 + + col0 AS col0 FROM tab0 AS cor0
----
196
308382
4497

onlyif mysql # aggregate syntax: 
query I rowsort label-3669
SELECT + + 9 * + SUM( DISTINCT + col1 ) FROM tab0 AS cor0 WHERE col2 * - col0 - - col0 / + col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3669
SELECT + + 9 * + SUM ( DISTINCT + col1 ) FROM tab0 AS cor0 WHERE col2 * - col0 - - col0 / + col2 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3670
SELECT ALL MIN( DISTINCT - - col1 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3670
SELECT ALL MIN ( DISTINCT - - col1 ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT + - 10 * ( - 72 ) FROM tab0 AS cor0
----
720
720
720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 71 col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
71

query I rowsort
SELECT ALL 3 + - col2 FROM tab2 AS cor0
----
-20
-37
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-3674
SELECT DISTINCT + COUNT( * ) + - + 58 FROM tab1 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-3674
SELECT DISTINCT + COUNT ( * ) + - + 58 FROM tab1 AS cor0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-3675
SELECT COUNT( + 30 ) + + 31 AS col2 FROM tab1 cor0
----
34

skipif mysql # not compatible
query I rowsort label-3675
SELECT COUNT ( + 30 ) + + 31 AS col2 FROM tab1 cor0
----
34

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 18 <> NULL
----

query I rowsort
SELECT ALL 90 - - col2 * + 91 FROM tab1
----
5459
6278
8826

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3678
SELECT ALL COUNT( + - col1 ) * + COUNT( * ) DIV COUNT( * ) - + - COUNT( DISTINCT + 67 ) FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-3678
SELECT ALL COUNT ( + - col1 ) * + COUNT ( * ) / COUNT ( * ) - + - COUNT ( DISTINCT + 67 ) FROM tab0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3679
SELECT ALL COUNT( * ) * + + SUM( col2 ) * - - 38 FROM tab1
----
25422

skipif mysql # not compatible
query I rowsort label-3679
SELECT ALL COUNT ( * ) * + + SUM ( col2 ) * - - 38 FROM tab1
----
25422

query I rowsort
SELECT ( - ( - - 79 ) ) FROM tab0
----
-79
-79
-79

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN + col1 * - col1 / + col2 - + + 71 + - - 68 * - - 0 AND - 88 + + + col0
----

query I rowsort
SELECT - + 29 - - + 97 FROM tab2 cor0
----
68
68
68

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 24 + - + col1 / - + col1 NOT IN ( - 90 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3684
SELECT DISTINCT + AVG ( ALL + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3684
SELECT DISTINCT + AVG ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query I rowsort
SELECT ALL 18 * - col1 FROM tab0
----
-1458
-18
-378

query I rowsort
SELECT ( 86 ) * + - 19 + - col1 + - 28 FROM tab0
----
-1663
-1683
-1743

query II rowsort
SELECT ALL 19 AS col0, - col0 FROM tab1
----
19
-51
19
-85
19
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3688
SELECT DISTINCT MIN( DISTINCT + - col0 ) FROM tab2 AS cor0 WHERE col2 < - - 8 * - + ( 30 ) / - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3688
SELECT DISTINCT MIN ( DISTINCT + - col0 ) FROM tab2 AS cor0 WHERE col2 < - - 8 * - + ( 30 ) / - col0
----
NULL

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT - 11 * + 84 IS NULL
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-3690
SELECT ALL - col0 DIV - 78 FROM tab1 cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3690
SELECT ALL - col0 / - 78 FROM tab1 cor0
----
0
1
1

query I rowsort
SELECT col0 * - 91 FROM tab0 AS cor0
----
-1365
-7917
-8827

query II rowsort
SELECT ALL + col0, - col2 FROM tab2 AS cor0
----
46
-23
64
-40
75
-58

query I rowsort
SELECT 10 * - + col2 * - 31 AS col2 FROM tab1 cor0
----
18290
21080
29760

query I rowsort
SELECT 46 * + col2 + + col0 FROM tab2 AS cor0
----
1104
1904
2743

onlyif mysql # aggregate syntax: 
query I rowsort label-3695
SELECT - COUNT( - 84 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3695
SELECT - COUNT ( - 84 ) AS col2 FROM tab2 AS cor0
----
-3

query II rowsort
SELECT ALL - col2 AS col0, 79 AS col2 FROM tab0 AS cor0
----
-10
79
-47
79
-99
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3697
SELECT DISTINCT COUNT( * ) DIV + 94 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3697
SELECT DISTINCT COUNT ( * ) / + 94 AS col1 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3698
SELECT COUNT( * ) + - 65 FROM tab2 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-3698
SELECT COUNT ( * ) + - 65 FROM tab2 AS cor0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-3699
SELECT DISTINCT + MIN( DISTINCT - 83 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-83

skipif mysql # not compatible
query I rowsort label-3699
SELECT DISTINCT + MIN ( DISTINCT - 83 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-83

query I rowsort
SELECT DISTINCT 55 * + col0 AS col2 FROM tab1
----
2805
4675
5005

onlyif mysql # DIV for integer division: 
query I rowsort label-3701
SELECT ALL col0 DIV 7 AS col0 FROM tab2
----
10
6
9

skipif mysql # not compatible
query I rowsort label-3701
SELECT ALL col0 / 7 AS col0 FROM tab2
----
10
6
9

query I rowsort
SELECT col0 + + + 73 FROM tab0
----
160
170
88

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NOT ( NOT NULL IS NOT NULL ) )
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query I rowsort
SELECT ( + 56 ) AS col2 FROM tab1 AS cor0
----
56
56
56

query I rowsort
SELECT ALL + - 21 * - col0 * - + col2 + - - 62 + + 80 AS col0 FROM tab2 AS cor0
----
-22076
-53618
-91208

onlyif mysql # aggregate syntax: 
query I rowsort label-3706
SELECT + ( + SUM( - + col0 ) ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-3706
SELECT + ( + SUM ( - + col0 ) ) FROM tab2 AS cor0
----
-185

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3707
SELECT DISTINCT + COUNT( * ) DIV - + 9 * - - 19 FROM tab1 cor0 WHERE NULL NOT BETWEEN 88 * - - ( + 23 ) AND + - col0
----
0

skipif mysql # not compatible
query I rowsort label-3707
SELECT DISTINCT + COUNT ( * ) / - + 9 * - - 19 FROM tab1 cor0 WHERE NULL NOT BETWEEN 88 * - - ( + 23 ) AND + - col0
----
0

query I rowsort
SELECT DISTINCT 57 * - 8 + + 53 FROM tab1 AS cor0
----
-403

onlyif mysql # DIV for integer division: 
query I rowsort label-3709
SELECT + + ( col0 ) - - 93 DIV 49 * col0 AS col2 FROM tab1 AS cor0
----
102
170
182

skipif mysql # not compatible
query I rowsort label-3709
SELECT + + ( col0 ) - - 93 / 49 * col0 AS col2 FROM tab1 AS cor0
----
102
170
182

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 + + 38 * + col1 IS NULL
----

query I rowsort
SELECT - col0 FROM tab1 WHERE NULL = - 55
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 + + 8 < + col2 AND 94 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col1, ( - col0 ) FROM tab1 WHERE + col1 * + col1 IS NOT NULL
----
14
-51
47
-91
5
-85

query I rowsort
SELECT ALL + - 21 * - 18 + - + col0 + - col1 AS col1 FROM tab2 cor0 WHERE - col0 * - + 77 IS NOT NULL
----
236
237
281

query I rowsort
SELECT - - ( + col2 ) * - 94 FROM tab0 AS cor0
----
-4418
-9306
-940

query I rowsort
SELECT + + col1 * + + 55 FROM tab0 AS cor0
----
1155
4455
55

onlyif mysql # aggregate syntax: 
query I rowsort label-3717
SELECT - COUNT( * ) + + COUNT( * ) FROM tab2 AS cor0 WHERE NOT + col0 * 1 / col0 > + col0
----
0

skipif mysql # not compatible
query I rowsort label-3717
SELECT - COUNT ( * ) + + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + col0 * 1 / col0 > + col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3718
SELECT DISTINCT - col2 * - col1 - + - col0 / + + col2 * - ( ( - ( + col1 ) ) ) - + + col2 / + - 85 * - CAST( NULL AS SIGNED ) * - 26 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3718
SELECT DISTINCT - col2 * - col1 - + - col0 / + + col2 * - ( ( - ( + col1 ) ) ) - + + col2 / + - 85 * - CAST ( NULL AS INTEGER ) * - 26 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 42 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3720
SELECT DISTINCT - col1 * CAST( NULL AS SIGNED ) * - - col1 * 7 * col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3720
SELECT DISTINCT - col1 * CAST ( NULL AS INTEGER ) * - - col1 * 7 * col0 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT + 45 < col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT + col2 NOT BETWEEN - 2 AND - + 34 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL - 30, + 75 - 3 AS col2 FROM tab0
----
-30
72
-30
72
-30
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3724
SELECT ALL + 77 * + - CAST( NULL AS SIGNED ) + 32 col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3724
SELECT ALL + 77 * + - CAST ( NULL AS INTEGER ) + 32 col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 48 + + 18 FROM tab1
----
66
66
66

onlyif mysql # aggregate syntax: 
query II rowsort label-3726
SELECT ALL COUNT( * ) AS col0, 90 AS col1 FROM tab1, tab0 AS cor0
----
9
90

skipif mysql # not compatible
query II rowsort label-3726
SELECT ALL COUNT ( * ) AS col0, 90 AS col1 FROM tab1, tab0 AS cor0
----
9
90

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - 40 ) * + + 95 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col1, col2 AS col2 FROM tab2
----
23
23
40
40
58
58

query I rowsort
SELECT ALL - - col2 FROM tab2 AS cor0 WHERE 97 * + + col0 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - + - 1 col1 FROM tab0 cor0 WHERE 52 + - col0 * col2 NOT BETWEEN + + col1 AND NULL
----
-20
-80
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3731
SELECT DISTINCT - ( - COUNT( * ) ) FROM tab1 AS cor0 WHERE col2 <= + 96
----
3

skipif mysql # not compatible
query I rowsort label-3731
SELECT DISTINCT - ( - COUNT ( * ) ) FROM tab1 AS cor0 WHERE col2 <= + 96
----
3

query I rowsort
SELECT 45 * + col0 * - + 91 AS col0 FROM tab0
----
-356265
-397215
-61425

query II rowsort
SELECT ALL + col2 * + 62 * - 11, col2 AS col2 FROM tab1
----
-40238
59
-46376
68
-65472
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3734
SELECT DISTINCT COUNT( * ) - - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-3734
SELECT DISTINCT COUNT ( * ) - - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3735
SELECT DISTINCT COUNT( * ) + + + 87 AS col0 FROM tab1 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-3735
SELECT DISTINCT COUNT ( * ) + + + 87 AS col0 FROM tab1 AS cor0
----
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col1 - + 39 * - + col1 col2 FROM tab0 cor0
----
137
3255
927

onlyif mysql # aggregate syntax: 
query I rowsort label-3737
SELECT DISTINCT + - COUNT( ALL - col2 ) + + SUM( + col0 ) AS col0 FROM tab0 AS cor0
----
196

skipif mysql # not compatible
query I rowsort label-3737
SELECT DISTINCT + - COUNT ( ALL - col2 ) + + SUM ( + col0 ) AS col0 FROM tab0 AS cor0
----
196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 17 + col1, - 32 - 90 col0 FROM tab0 AS cor0
----
18
-122
38
-122
98
-122

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN + col0 AND - 54 / - col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND 29
----

query I rowsort
SELECT + col0 AS col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3742
SELECT ALL + 96 + COUNT( * ) AS col0 FROM tab2 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-3742
SELECT ALL + 96 + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3743
SELECT MIN( + - 16 ) AS col0 FROM tab1
----
-16

skipif mysql # not compatible
query I rowsort label-3743
SELECT MIN ( + - 16 ) AS col0 FROM tab1
----
-16

query I rowsort
SELECT ALL + 39 - - col0 FROM tab2
----
103
114
85

query I rowsort
SELECT ALL 92 * + + col0 + - 4 FROM tab0
----
1376
8000
8920

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 59 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3747
SELECT DISTINCT - col0 DIV - + col0 col2 FROM tab2
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3747
SELECT DISTINCT - col0 / - + col0 col2 FROM tab2
----
1

query I rowsort
SELECT DISTINCT + 76 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
76

query I rowsort
SELECT + col0 FROM tab1 WHERE NOT - col0 * 12 - 66 + - 13 IS NULL
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3750
SELECT DISTINCT - CAST( - + 1 AS SIGNED ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-3750
SELECT DISTINCT - CAST ( - + 1 AS INTEGER ) FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3751
SELECT ALL - + SUM( - 54 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
486

skipif mysql # not compatible
query I rowsort label-3751
SELECT ALL - + SUM ( - 54 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
486

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3752
SELECT ALL * FROM tab1 WHERE NULL BETWEEN ( NULL ) AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3752
SELECT ALL * FROM tab1 WHERE NULL BETWEEN ( NULL ) AND CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 81 - + col0 > col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 42 * 64 AS col1 FROM tab0 AS cor0
----
2688
2688
2688

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN - 45 AND + 25
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3756
SELECT MAX( 94 ) AS col1 FROM tab2 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-3756
SELECT MAX ( 94 ) AS col1 FROM tab2 AS cor0
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3757
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT CAST( NULL AS SIGNED ) + ( + col1 ) + - col0 + col1 * 39 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3757
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT CAST ( NULL AS INTEGER ) + ( + col1 ) + - col0 + col1 * 39 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col1 AS col2 FROM tab2 WHERE NOT - 88 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3759
SELECT ALL COUNT( ALL ( + col1 ) ), SUM( ALL ( ( - + col1 ) ) ) + - - 79 AS col2 FROM tab2
----
3
-116

skipif mysql # not compatible
query II rowsort label-3759
SELECT ALL COUNT ( ALL ( + col1 ) ), SUM ( ALL ( ( - + col1 ) ) ) + - - 79 AS col2 FROM tab2
----
3
-116

query II rowsort
SELECT col0, - col0 + col2 + col0 AS col1 FROM tab1
----
51
96
85
59
91
68

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NOT NULL BETWEEN + + col0 AND ( + col0 )
----

query I rowsort
SELECT ALL - col2 + + - col2 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 71 + - 40 col1 FROM tab2 AS cor0
----
31
31
31

onlyif mysql # aggregate syntax: 
query II rowsort label-3764
SELECT ALL + COUNT( * ) AS col2, 49 FROM tab1
----
3
49

skipif mysql # not compatible
query II rowsort label-3764
SELECT ALL + COUNT ( * ) AS col2, 49 FROM tab1
----
3
49

query I rowsort
SELECT ALL 47 + + + col1 FROM tab2
----
114
124
98

query I rowsort
SELECT ALL + - col2 * + + col0 * + col0 FROM tab2 AS cor0
----
-163840
-326250
-48668

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3767
SELECT ALL col2 - + CAST( NULL AS DECIMAL ) / - col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3767
SELECT ALL col2 - + CAST ( NULL AS REAL ) / - col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - 98 - + + col0 * - 19 FROM tab1 cor0
----
1517
1631
871

query I rowsort
SELECT - 84 - col0 FROM tab2 AS cor0 WHERE NULL NOT IN ( - 7 * col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3770
SELECT + col1 - + + col0 * + col0 - - 18 + CAST( col1 AS SIGNED ) * col1 - - + 55 FROM tab0 cor0
----
-7034
-9334
6490

skipif mysql # not compatible
query I rowsort label-3770
SELECT + col1 - + + col0 * + col0 - - 18 + CAST ( col1 AS INTEGER ) * col1 - - + 55 FROM tab0 cor0
----
-7034
-9334
6490

query I rowsort
SELECT DISTINCT + col2 - + - col2 AS col2 FROM tab0 AS cor0
----
198
20
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3772
SELECT ALL + ( + 86 ) + + COUNT( * ) FROM tab1 cor0
----
89

skipif mysql # not compatible
query I rowsort label-3772
SELECT ALL + ( + 86 ) + + COUNT ( * ) FROM tab1 cor0
----
89

query I rowsort
SELECT col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND - - col2 + - - 58 + - col0 * col1
----

query I rowsort
SELECT 65 FROM tab2 WHERE NOT NULL IS NOT NULL
----
65
65
65

query I rowsort
SELECT DISTINCT 46 * - + col1 AS col2 FROM tab2
----
-2346
-3082
-3542

query I rowsort
SELECT col2 * - 88 * + - 42 FROM tab1
----
218064
251328
354816

query III rowsort
SELECT * FROM tab2 WHERE NOT 99 + + + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3778
SELECT 31 * - ( - SUM( ALL + col0 ) ) AS col0 FROM tab1
----
7037

skipif mysql # not compatible
query I rowsort label-3778
SELECT 31 * - ( - SUM ( ALL + col0 ) ) AS col0 FROM tab1
----
7037

query I rowsort
SELECT DISTINCT - col0 * + 47 * - 91 FROM tab1
----
218127
363545
389207

query I rowsort
SELECT 49 * - + 38 FROM tab2
----
-1862
-1862
-1862

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3781
SELECT DISTINCT - + 67 + + CAST( col1 AS SIGNED ) + col2 AS col0 FROM tab1 WHERE + 30 <> col1
----
-3
43
48

skipif mysql # not compatible
query I rowsort label-3781
SELECT DISTINCT - + 67 + + CAST ( col1 AS INTEGER ) + col2 AS col0 FROM tab1 WHERE + 30 <> col1
----
-3
43
48

query I rowsort
SELECT DISTINCT col1 * + - col2 * + col2 * - col0 + + - 75 AS col0 FROM tab0 AS cor0 WHERE NOT - col1 IS NOT NULL
----

query II rowsort
SELECT ALL col0 * col1 + - col0 AS col2, + 67 FROM tab2 AS cor0
----
2300
67
4864
67
4950
67

query I rowsort
SELECT - col0 + - 73 * - col0 + - 98 AS col0 FROM tab1 AS cor0 WHERE NOT 8 BETWEEN - col2 AND NULL
----

query I rowsort
SELECT - ( + 26 ) AS col1 FROM tab2
----
-26
-26
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-3786
SELECT ( - MAX( DISTINCT - col0 ) ) AS col2 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-3786
SELECT ( - MAX ( DISTINCT - col0 ) ) AS col2 FROM tab0
----
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 89 col1 FROM tab2 WHERE NULL IS NULL
----
-89
-89
-89

query I rowsort
SELECT DISTINCT + ( + 85 ) FROM tab2
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3789
SELECT + + CAST( + 33 AS SIGNED ) FROM tab0 AS cor0
----
33
33
33

skipif mysql # not compatible
query I rowsort label-3789
SELECT + + CAST ( + 33 AS INTEGER ) FROM tab0 AS cor0
----
33
33
33

query I rowsort
SELECT ALL - + 53 + 70 FROM tab1 AS cor0
----
17
17
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3791
SELECT ALL - COUNT( DISTINCT 8 ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3791
SELECT ALL - COUNT ( DISTINCT 8 ) AS col0 FROM tab0 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - 85 col2, + col2 AS col0 FROM tab0 cor0
----
-85
10
-85
47
-85
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-23
-40
-58

query I rowsort
SELECT - 60 AS col1 FROM tab2 AS cor0 WHERE ( NOT + col2 IS NULL )
----
-60
-60
-60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3795
SELECT - + col0 * - col1 + - + col0, ( + col1 ) / col0 + CAST( NULL AS SIGNED ) - - - col2 AS col0 FROM tab1 AS cor0
----
340
NULL
4186
NULL
663
NULL

skipif mysql # not compatible
query II rowsort label-3795
SELECT - + col0 * - col1 + - + col0, ( + col1 ) / col0 + CAST ( NULL AS INTEGER ) - - - col2 AS col0 FROM tab1 AS cor0
----
340
NULL
4186
NULL
663
NULL

query I rowsort
SELECT - + col2 * - + col0 + - - col0 AS col0 FROM tab2 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3797
SELECT - 76 + - + ( COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-3797
SELECT - 76 + - + ( COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-3798
SELECT + - COUNT( * ) col1 FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3798
SELECT + - COUNT ( * ) col1 FROM tab0 WHERE NULL IS NOT NULL
----
0

query II rowsort
SELECT 99 + - + col1 AS col1, - col1 FROM tab2
----
22
-77
32
-67
48
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3800
SELECT 22 + - MAX( ( + col0 ) ) * - - 76 - + SUM( - col0 ) FROM tab1
----
-6667

skipif mysql # not compatible
query I rowsort label-3800
SELECT 22 + - MAX ( ( + col0 ) ) * - - 76 - + SUM ( - col0 ) FROM tab1
----
-6667

query I rowsort
SELECT - 25 + + col2 AS col2 FROM tab0 WHERE col1 IS NOT NULL
----
-15
22
74

query II rowsort
SELECT ( col1 ) + col2 + + 36, + 7 AS col0 FROM tab2
----
110
7
153
7
161
7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3803
SELECT DISTINCT * FROM tab2 WHERE NOT - + CAST( + + ( + 66 ) AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3803
SELECT DISTINCT * FROM tab2 WHERE NOT - + CAST ( + + ( + 66 ) AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3804
SELECT - SUM( ALL + 55 ) + 15 AS col2 FROM tab0
----
-150

skipif mysql # not compatible
query I rowsort label-3804
SELECT - SUM ( ALL + 55 ) + 15 AS col2 FROM tab0
----
-150

query II rowsort
SELECT 30 + + + col2, col0 FROM tab2
----
53
46
70
64
88
75

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3806
SELECT col1 DIV - CAST( 81 AS SIGNED ) FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3806
SELECT col1 / - CAST ( 81 AS INTEGER ) FROM tab0
----
-1
0
0

query I rowsort
SELECT - 21 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 2 + col2 AS col1 FROM tab0 AS cor0
----
101
12
49

query I rowsort
SELECT col1 + + + 0 FROM tab2
----
51
67
77

query I rowsort
SELECT ALL - col1 + + col0 FROM tab0 AS cor0 WHERE NOT col0 BETWEEN 50 AND - + col0
----
-66
66
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col0 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3812
SELECT 2 DIV - 76 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3812
SELECT 2 / - 76 FROM tab0 AS cor0
----
0
0
0

query II rowsort
SELECT ALL col2 / + col2 * + col2, + 54 * + + col0 * - 59 / - + col1 FROM tab1 AS cor0 WHERE ( NULL ) < NULL
----

query I rowsort
SELECT 76 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL col0 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3816
SELECT + COUNT( * ) * - MAX( 70 ) col1 FROM tab1 AS cor0 WHERE NOT + 60 IS NULL
----
-210

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3816
SELECT + COUNT ( * ) * - MAX ( 70 ) col1 FROM tab1 AS cor0 WHERE NOT + 60 IS NULL
----
-210

onlyif mysql # aggregate syntax: 
query I rowsort label-3817
SELECT DISTINCT + MAX( DISTINCT - col1 ) AS col0 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-3817
SELECT DISTINCT + MAX ( DISTINCT - col1 ) AS col0 FROM tab2
----
-51

query II rowsort
SELECT + 50, - 42 * col0 * col1 AS col2 FROM tab2
----
50
-206976
50
-211050
50
-98532

query I rowsort
SELECT DISTINCT + 50 * + col1 AS col0 FROM tab1
----
2350
250
700

onlyif mysql # aggregate syntax: 
query I rowsort label-3820
SELECT ALL - COUNT( * ) * - - 50 FROM tab0
----
-150

skipif mysql # not compatible
query I rowsort label-3820
SELECT ALL - COUNT ( * ) * - - 50 FROM tab0
----
-150

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 6 * - + col1 col1 FROM tab2 AS cor0
----
306
402
462

query I rowsort
SELECT + - 66 * - - col0 * - ( + ( + + col2 ) ) FROM tab0 AS cor0
----
46530
57420
633798

query I rowsort
SELECT ALL col1 * + 60 AS col0 FROM tab1 cor0
----
2820
300
840

onlyif mysql # aggregate syntax: 
query I rowsort label-3824
SELECT + - 84 - + 39 + + COUNT( * ) FROM tab0 AS cor0 WHERE NOT - col0 BETWEEN + col2 AND - 69
----
-120

skipif mysql # not compatible
query I rowsort label-3824
SELECT + - 84 - + 39 + + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - col0 BETWEEN + col2 AND - 69
----
-120

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 61 - - + 42 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3826
SELECT + 45 * CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3826
SELECT + 45 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col0 NOT BETWEEN NULL AND + 62
----
64
77
40
75
67
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3828
SELECT - - SUM( 68 ) FROM tab2 AS cor0
----
204

skipif mysql # not compatible
query I rowsort label-3828
SELECT - - SUM ( 68 ) FROM tab2 AS cor0
----
204

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3829
SELECT DISTINCT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT CAST( + 99 AS DECIMAL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3829
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT CAST ( + 99 AS REAL ) IS NOT NULL
----
0

query I rowsort
SELECT ALL 81 * col1 + - col0 + - col1 AS col0 FROM tab2 AS cor0
----
4034
5285
6096

onlyif mysql # aggregate syntax: 
query I rowsort label-3831
SELECT ALL - MIN( col0 ) * - 3 AS col0 FROM tab2 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-3831
SELECT ALL - MIN ( col0 ) * - 3 AS col0 FROM tab2 AS cor0
----
138

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 / - 48 IS NOT NULL
----

query II rowsort
SELECT ALL - 2, + col0 AS col1 FROM tab1
----
-2
51
-2
85
-2
91

query III rowsort
SELECT * FROM tab2 WHERE NULL > + col1 / 7 - col2
----

query I rowsort
SELECT + col2 + col1 * + - col0 + 7 + 68 FROM tab2
----
-2248
-4813
-4892

onlyif mysql # aggregate syntax: 
query I rowsort label-3836
SELECT ALL SUM( DISTINCT - col1 ) + COUNT( * ) + - COUNT( * ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-3836
SELECT ALL SUM ( DISTINCT - col1 ) + COUNT ( * ) + - COUNT ( * ) FROM tab1
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3837
SELECT ALL * FROM tab0 WHERE + + col2 - + CAST( NULL AS SIGNED ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-3837
SELECT ALL * FROM tab0 WHERE + + col2 - + CAST ( NULL AS INTEGER ) BETWEEN NULL AND NULL
----

query II rowsort
SELECT DISTINCT - 3 + - + col0 * col0 AS col1, - col1 FROM tab2 AS cor0
----
-2119
-51
-4099
-77
-5628
-67

query II rowsort
SELECT ALL + + col1 + - col1 + col0, col1 AS col2 FROM tab1 cor0
----
51
14
85
5
91
47

query I rowsort
SELECT + col0 * - + col1 AS col2 FROM tab1 AS cor0
----
-425
-4277
-714

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 30 = + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + ( - col0 ) <= 92
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3843
SELECT COUNT( DISTINCT 50 ) FROM tab0 WHERE NULL NOT IN ( - CAST( 18 AS SIGNED ) - + 2 * CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-3843
SELECT COUNT ( DISTINCT 50 ) FROM tab0 WHERE NULL NOT IN ( - CAST ( 18 AS INTEGER ) - + 2 * CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3844
SELECT ALL 97 DIV 33 FROM tab2
----
2
2
2

skipif mysql # not compatible
query I rowsort label-3844
SELECT ALL 97 / 33 FROM tab2
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3845
SELECT + SUM( DISTINCT col1 ) AS col1 FROM tab0 WHERE NULL IN ( + 13 - - col2 * col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3845
SELECT + SUM ( DISTINCT col1 ) AS col1 FROM tab0 WHERE NULL IN ( + 13 - - col2 * col1 )
----
NULL

query I rowsort
SELECT + 55 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
55
55
55

onlyif mysql # aggregate syntax: 
query I rowsort label-3847
SELECT DISTINCT COUNT( - 24 ) + 57 FROM tab0 WHERE ( + 57 + 5 ) NOT IN ( col2 * - 21 )
----
60

skipif mysql # not compatible
query I rowsort label-3847
SELECT DISTINCT COUNT ( - 24 ) + 57 FROM tab0 WHERE ( + 57 + 5 ) NOT IN ( col2 * - 21 )
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3848
SELECT ALL CAST( NULL AS SIGNED ) + + ( col2 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3848
SELECT ALL CAST ( NULL AS INTEGER ) + + ( col2 ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 88 FROM tab2 WHERE - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3850
SELECT COUNT( * ) - 69 FROM tab0
----
-66

skipif mysql # not compatible
query I rowsort label-3850
SELECT COUNT ( * ) - 69 FROM tab0
----
-66

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <= - 39
----

query I rowsort
SELECT - col0 * - 39 FROM tab0 WHERE ( NULL ) > NULL
----

query I rowsort
SELECT - 92 / col1 FROM tab1 WHERE NOT NULL <> col1 + 35
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 39 + col2 * + 67 col0 FROM tab0
----
3188
6672
709

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3855
SELECT ALL - col1 * + col0 + + 69 * col1 AS col2 FROM tab1 WHERE ( NULL ) NOT BETWEEN NULL AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3855
SELECT ALL - col1 * + col0 + + 69 * col1 AS col2 FROM tab1 WHERE ( NULL ) NOT BETWEEN NULL AND CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3856
SELECT ALL col2 + - CAST( 53 + col1 AS DECIMAL ) FROM tab0 WHERE NULL NOT BETWEEN NULL AND + 95
----

skipif mysql # not compatible
query I rowsort label-3856
SELECT ALL col2 + - CAST ( 53 + col1 AS REAL ) FROM tab0 WHERE NULL NOT BETWEEN NULL AND + 95
----

query I rowsort
SELECT ALL - 84 FROM tab2 WHERE col1 BETWEEN ( - col1 * col1 + + col1 ) AND - col2 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3858
SELECT MIN( - ( col1 ) ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-3858
SELECT MIN ( - ( col1 ) ) FROM tab0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3859
SELECT ALL - COUNT( DISTINCT + col2 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3859
SELECT ALL - COUNT ( DISTINCT + col2 ) FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3860
SELECT ALL + 41 FROM tab1 WHERE NOT + col1 - + 59 IN ( + CAST( col0 AS SIGNED ) * col2 )
----
41
41
41

skipif mysql # not compatible
query I rowsort label-3860
SELECT ALL + 41 FROM tab1 WHERE NOT + col1 - + 59 IN ( + CAST ( col0 AS INTEGER ) * col2 )
----
41
41
41

query I rowsort
SELECT + col0 - - 39 AS col1 FROM tab2
----
103
114
85

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 * 51 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN - 79 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3864
SELECT DISTINCT + COUNT( * ) + + 21 FROM tab1 WHERE NOT ( + col1 ) + col0 > NULL
----
21

skipif mysql # not compatible
query I rowsort label-3864
SELECT DISTINCT + COUNT ( * ) + + 21 FROM tab1 WHERE NOT ( + col1 ) + col0 > NULL
----
21

query I rowsort
SELECT + col2 AS col1 FROM tab1 WHERE 29 * 4 + - col2 NOT BETWEEN ( NULL ) AND ( + ( ( + col1 ) ) )
----
59
68
96

query III rowsort
SELECT * FROM tab2 WHERE NOT ( ( col2 ) ) = + 96 + + 53
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3867
SELECT col0 - col1 DIV 35 FROM tab2
----
45
62
74

skipif mysql # not compatible
query I rowsort label-3867
SELECT col0 - col1 / 35 FROM tab2
----
45
62
74

query I rowsort
SELECT col1 / col1 AS col0 FROM tab1 WHERE col0 IN ( ( ( ( col1 ) ) ) + 13 )
----

query I rowsort
SELECT + col1 + 74 * 66 FROM tab2
----
4935
4951
4961

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3870
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col1 * col2 ) BETWEEN CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-3870
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col1 * col2 ) BETWEEN CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3871
SELECT DISTINCT - MIN( - 20 ) * + MIN( + col0 * col1 ) col0 FROM tab0 AS cor0 WHERE NOT - 18 IS NULL
----
1940

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3871
SELECT DISTINCT - MIN ( - 20 ) * + MIN ( + col0 * col1 ) col0 FROM tab0 AS cor0 WHERE NOT - 18 IS NULL
----
1940

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3872
SELECT * FROM tab1 WHERE ( CAST( - col0 AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3872
SELECT * FROM tab1 WHERE ( CAST ( - col0 AS INTEGER ) ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 78 + ( + col2 ) col2 FROM tab1
----
-10
-19
18

query I rowsort
SELECT - 30 AS col0 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + col0 + + 43 * 13 FROM tab1 AS cor0
----
610
644
650

onlyif mysql # aggregate syntax: 
query I rowsort label-3876
SELECT ALL - MIN( col1 ) + 35 * 60 AS col1 FROM tab0 AS cor0
----
2099

skipif mysql # not compatible
query I rowsort label-3876
SELECT ALL - MIN ( col1 ) + 35 * 60 AS col1 FROM tab0 AS cor0
----
2099

onlyif mysql # aggregate syntax: 
query I rowsort label-3877
SELECT DISTINCT - SUM( DISTINCT ( + col2 ) ) + + COUNT( * ) AS col0 FROM tab1 cor0
----
-220

skipif mysql # not compatible
query I rowsort label-3877
SELECT DISTINCT - SUM ( DISTINCT ( + col2 ) ) + + COUNT ( * ) AS col0 FROM tab1 cor0
----
-220

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3878
SELECT ALL COUNT( * ) DIV - 56 AS col1 FROM tab1 AS cor0 WHERE NULL BETWEEN + CAST( NULL AS SIGNED ) + col2 * col2 AND ( - 14 * 91 )
----
0

skipif mysql # not compatible
query I rowsort label-3878
SELECT ALL COUNT ( * ) / - 56 AS col1 FROM tab1 AS cor0 WHERE NULL BETWEEN + CAST ( NULL AS INTEGER ) + col2 * col2 AND ( - 14 * 91 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3879
SELECT DISTINCT - + MAX( - col1 ) + 31 FROM tab1 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-3879
SELECT DISTINCT - + MAX ( - col1 ) + 31 FROM tab1 AS cor0
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3880
SELECT DISTINCT - COUNT( * ) DIV + COUNT( * ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3880
SELECT DISTINCT - COUNT ( * ) / + COUNT ( * ) FROM tab0 AS cor0
----
-1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 < col2 / + 63
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 92 col1 FROM tab2 AS cor0 WHERE 57 + - col0 BETWEEN 55 AND ( - 95 )
----

query I rowsort
SELECT + 93 + + col2 AS col2 FROM tab2
----
116
133
151

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3884
SELECT COUNT( ALL + + col1 ) + ( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3884
SELECT COUNT ( ALL + + col1 ) + ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT - col1 * + col1 - col0 FROM tab2
----
-2647
-4564
-5993

onlyif mysql # DIV for integer division: 
query I rowsort label-3886
SELECT + col0 DIV - 63 AS col2 FROM tab0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3886
SELECT + col0 / - 63 AS col2 FROM tab0
----
-1
-1
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3887
SELECT DISTINCT + COUNT( * ) DIV 81 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3887
SELECT DISTINCT + COUNT ( * ) / 81 AS col2 FROM tab0
----
0

query III rowsort
SELECT * FROM tab0 WHERE col1 NOT BETWEEN - col0 * + col0 AND col1 * col2
----

query III rowsort
SELECT * FROM tab2 WHERE ( 21 + 84 ) IN ( - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3890
SELECT - ( + col2 ) DIV + 69 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3890
SELECT - ( + col2 ) / + 69 FROM tab0
----
-1
0
0

query I rowsort
SELECT ALL - 80 * + col1 AS col0 FROM tab2 WHERE NOT 29 + + col0 NOT IN ( + col1 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + 90 BETWEEN - col2 * + col0 + - 14 AND NULL
----

query I rowsort
SELECT ALL 60 * - - col0 + - col0 + - col2 FROM tab0 AS cor0
----
5123
5624
838

query I rowsort
SELECT ALL + - col1 + + col1 * col0 FROM tab0 cor0
----
1134
1806
96

query I rowsort
SELECT 18 + col0 / - col0 AS col0 FROM tab2 AS cor0 WHERE NULL = NULL
----

query I rowsort
SELECT - 84 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 975e2ef2a3bf1ee2622362f4e435752f

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT + col0 / 54 NOT IN ( col0 / 93 - - ( - 91 ) ) )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + 83 / - ( - col1 ) = NULL )
----

query I rowsort
SELECT DISTINCT + 97 * + col2 AS col2 FROM tab0 WHERE NOT ( - 92 ) IN ( + col2 * + col1 )
----
4559
9603
970

query II rowsort
SELECT - 81 AS col0, 50 FROM tab2 AS cor0
----
-81
50
-81
50
-81
50

query I rowsort
SELECT - col0 * - 12 * - - 78 FROM tab0 AS cor0
----
14040
81432
90792

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 / + ( - col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3903
SELECT ALL + COUNT( ALL + 71 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3903
SELECT ALL + COUNT ( ALL + 71 ) AS col1 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 >= - col1 * + 59
----

query II rowsort
SELECT 67, 9 * - 1 * col0 AS col2 FROM tab1 AS cor0
----
67
-459
67
-765
67
-819

query II rowsort
SELECT + 64 AS col1, col2 * + col2 AS col2 FROM tab0 AS cor0
----
64
100
64
2209
64
9801

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 = - + col2 + + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3908
SELECT ALL SUM( ALL - - col2 ) * + COUNT( * ) * - 84 * + ( - MAX( ALL - 57 ) ) FROM tab1
----
-3203172

skipif mysql # not compatible
query I rowsort label-3908
SELECT ALL SUM ( ALL - - col2 ) * + COUNT ( * ) * - 84 * + ( - MAX ( ALL - 57 ) ) FROM tab1
----
-3203172

query III rowsort
SELECT * FROM tab2 WHERE NOT - - 77 BETWEEN - + col2 + + col1 * - 80 AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 64 NOT IN ( - - col0 )
----

query I rowsort
SELECT ALL - col1 - - col2 * col1 AS col1 FROM tab2 WHERE 70 NOT BETWEEN NULL AND + - ( 19 )
----
1122
3003
3819

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 <= + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 70 * col2 + - + 25 FROM tab2
----
1585
2775
4035

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 66 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN ( + - col1 + + + 73 ) AND NULL
----

query I rowsort
SELECT DISTINCT col0 + + col0 * 64 AS col0 FROM tab1 AS cor0 WHERE - col0 - + col0 * - 62 = 86 * + col0
----

query I rowsort
SELECT DISTINCT - col1 + + col1 - 22 AS col2 FROM tab0 AS cor0
----
-22

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT - 11 >= - 27 / - 78 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3919
SELECT col2 + - col1 * col2 + col1 DIV 18 FROM tab1 AS cor0
----
-1248
-236
-3126

skipif mysql # not compatible
query I rowsort label-3919
SELECT col2 + - col1 * col2 + col1 / 18 FROM tab1 AS cor0
----
-1248
-236
-3126

query I rowsort
SELECT - 87 + + - 59 FROM tab2 cor0
----
-146
-146
-146

onlyif mysql # aggregate syntax: 
query II rowsort label-3921
SELECT - 90 + COUNT( * ), COUNT( * ) AS col0 FROM tab1 cor0
----
-87
3

skipif mysql # not compatible
query II rowsort label-3921
SELECT - 90 + COUNT ( * ), COUNT ( * ) AS col0 FROM tab1 cor0
----
-87
3

query I rowsort
SELECT ALL + col2 * ( - 41 ) FROM tab1
----
-2419
-2788
-3936

query I rowsort
SELECT + ( - col2 ) AS col0 FROM tab1 WHERE - col2 * + 56 + + col2 IS NOT NULL
----
-59
-68
-96

query I rowsort
SELECT - + col1 AS col0 FROM tab2 AS cor0 WHERE NULL = col0 + + col0
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + col1 ) NOT BETWEEN ( NULL ) AND ( + 52 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3926
SELECT DISTINCT - COUNT( * ) + + - 60 AS col0 FROM tab1 cor0 WHERE col2 * - - 37 IS NULL
----
-60

skipif mysql # not compatible
query I rowsort label-3926
SELECT DISTINCT - COUNT ( * ) + + - 60 AS col0 FROM tab1 cor0 WHERE col2 * - - 37 IS NULL
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-3927
SELECT ALL - 48 + - + col2 DIV - col2 AS col0 FROM tab1 AS cor0
----
-47
-47
-47

skipif mysql # not compatible
query I rowsort label-3927
SELECT ALL - 48 + - + col2 / - col2 AS col0 FROM tab1 AS cor0
----
-47
-47
-47

query I rowsort
SELECT ALL + col2 - + col1 * + 18 - + col0 AS col1 FROM tab0 AS cor0
----
-1426
-16
-455

query I rowsort
SELECT - col1 AS col1 FROM tab0 cor0 WHERE - col0 < ( 5 )
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3930
SELECT + CAST( + col0 AS SIGNED ) col0 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3930
SELECT + CAST ( + col0 AS INTEGER ) col0 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT ALL - - col2 + - 0 FROM tab2 AS cor0
----
23
40
58

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - ( + + col1 ) ) NOT BETWEEN + col1 AND - col1
----

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN ( NULL ) AND - 78 * - 71 * col1
----

query III rowsort
SELECT * FROM tab2 WHERE ( - 31 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 19 + col1 * col0 FROM tab1 WHERE NOT ( + + col2 * - - ( + 97 ) ) IN ( col1 * col0 )
----
4296
444
733

onlyif mysql # aggregate syntax: 
query II rowsort label-3936
SELECT ALL + 66, COUNT( * ) * - - 37 col1 FROM tab1
----
66
111

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3936
SELECT ALL + 66, COUNT ( * ) * - - 37 col1 FROM tab1
----
66
111

onlyif mysql # aggregate syntax: 
query I rowsort label-3937
SELECT + MAX( ALL + + col2 ) + COUNT( * ) FROM tab0
----
102

skipif mysql # not compatible
query I rowsort label-3937
SELECT + MAX ( ALL + + col2 ) + COUNT ( * ) FROM tab0
----
102

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col1 col0, col1 * + - col1 AS col0 FROM tab0 AS cor0
----
1
-1
21
-441
81
-6561

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3939
SELECT CAST( NULL AS SIGNED ) / + + col2 + + col1 - col2 * - - ( + - col2 ) + 20 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3939
SELECT CAST ( NULL AS INTEGER ) / + + col2 + + col1 - col2 * - - ( + - col2 ) + 20 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3940
SELECT DISTINCT - MIN( + + col1 ) * 60 AS col1 FROM tab0 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-3940
SELECT DISTINCT - MIN ( + + col1 ) * 60 AS col1 FROM tab0 AS cor0
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3941
SELECT DISTINCT - + 57 DIV + 85 + + + COUNT( * ) * - + 81 FROM tab2 AS cor0
----
-243

skipif mysql # not compatible
query I rowsort label-3941
SELECT DISTINCT - + 57 / + 85 + + + COUNT ( * ) * - + 81 FROM tab2 AS cor0
----
-243

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 col0 FROM tab1 WHERE + - col2 IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT DISTINCT - + 22 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-3944
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT - CAST( NULL AS SIGNED ) IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

skipif mysql # not compatible
query IIIIII rowsort label-3944
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query I rowsort
SELECT DISTINCT 39 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-3946
SELECT - ( - col0 ) DIV + 15 FROM tab1
----
3
5
6

skipif mysql # not compatible
query I rowsort label-3946
SELECT - ( - col0 ) / + 15 FROM tab1
----
3
5
6

query I rowsort
SELECT DISTINCT ( - - col2 ) FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT DISTINCT col2 + + col2 FROM tab0 AS cor0 WHERE NOT 97 * + col0 + col1 NOT BETWEEN + col1 + - ( col1 ) AND ( - ( col1 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 70 * + ( 95 ) col0 FROM tab0 AS cor0
----
6650
6650
6650

onlyif mysql # DIV for integer division: 
query I rowsort label-3950
SELECT DISTINCT - col1 DIV col0 + + + col0 AS col0 FROM tab0 AS cor0
----
10
87
97

skipif mysql # not compatible
query I rowsort label-3950
SELECT DISTINCT - col1 / col0 + + + col0 AS col0 FROM tab0 AS cor0
----
10
87
97

query I rowsort
SELECT ALL - col2 AS col1 FROM tab0 WHERE - col0 IS NULL
----

query I rowsort
SELECT + + 40 + - - col2 FROM tab1 WHERE NOT NULL NOT IN ( - col0 * - 94, - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3953
SELECT - SUM( ALL + + 64 ) FROM tab2
----
-192

skipif mysql # not compatible
query I rowsort label-3953
SELECT - SUM ( ALL + + 64 ) FROM tab2
----
-192

query II rowsort
SELECT ALL + 57 AS col2, 84 FROM tab2
----
57
84
57
84
57
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3955
SELECT DISTINCT SUM( + col0 ) FROM tab2 WHERE NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3955
SELECT DISTINCT SUM ( + col0 ) FROM tab2 WHERE NULL >= NULL
----
NULL

query I rowsort
SELECT DISTINCT 61 + + col2 AS col2 FROM tab0
----
108
160
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - + col1 ) + + col1 * col2 col2 FROM tab0
----
100
231
3888

onlyif mysql # aggregate syntax: 
query I rowsort label-3958
SELECT - COUNT( DISTINCT - - 41 ) + + COUNT( * ) AS col2 FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-3958
SELECT - COUNT ( DISTINCT - - 41 ) + + COUNT ( * ) AS col2 FROM tab0
----
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col1, + 73 col2 FROM tab0
----
15
73
87
73
97
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3960
SELECT ALL - ( - MIN( col1 ) ) AS col0 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-3960
SELECT ALL - ( - MIN ( col1 ) ) AS col0 FROM tab2
----
51

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3961
SELECT ALL - CAST( NULL AS DECIMAL ) * + COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3961
SELECT ALL - CAST ( NULL AS REAL ) * + COUNT ( * ) FROM tab1
----
NULL

query I rowsort
SELECT ( 36 ) AS col0 FROM tab0 AS cor0
----
36
36
36

query I rowsort
SELECT - ( 39 ) AS col0 FROM tab1 AS cor0
----
-39
-39
-39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 91 + + - 3 col1 FROM tab0 AS cor0 WHERE - col2 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - + col1 ) <= + col2 + + + col0 + - + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE NULL NOT IN ( - col2 * + col2, col2 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 14 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3968
SELECT COUNT( * ) + - MAX( ALL - col2 ) AS col1 FROM tab0 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-3968
SELECT COUNT ( * ) + - MAX ( ALL - col2 ) AS col1 FROM tab0 AS cor0
----
13

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - 84 NOT BETWEEN - 46 AND 19
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 38 / - + col0 * - + col1 * + 24 <> ( - col1 + - col0 - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-3971
SELECT DISTINCT col1, col1 DIV + + col0 FROM tab1
----
14
0
47
0
5
0

skipif mysql # not compatible
query II rowsort label-3971
SELECT DISTINCT col1, col1 / + + col0 FROM tab1
----
14
0
47
0
5
0

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN - 14 AND + col0
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 + col2 * + col0 BETWEEN NULL AND + - 58
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3974
SELECT DISTINCT - + 64 * + MIN( ( - + 28 ) ) FROM tab0 cor0
----
1792

skipif mysql # not compatible
query I rowsort label-3974
SELECT DISTINCT - + 64 * + MIN ( ( - + 28 ) ) FROM tab0 cor0
----
1792

onlyif mysql # aggregate syntax: 
query I rowsort label-3975
SELECT ALL - 33 + + COUNT( * ) * COUNT( * ) col1 FROM tab1 AS cor0 WHERE ( NOT - col2 + 85 + + 93 * - - col2 IN ( + col2 + - col0 ) )
----
-24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3975
SELECT ALL - 33 + + COUNT ( * ) * COUNT ( * ) col1 FROM tab1 AS cor0 WHERE ( NOT - col2 + 85 + + 93 * - - col2 IN ( + col2 + - col0 ) )
----
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-3976
SELECT - + COUNT( * ) AS col0, 25 AS col1 FROM tab0 AS cor0
----
-3
25

skipif mysql # not compatible
query II rowsort label-3976
SELECT - + COUNT ( * ) AS col0, 25 AS col1 FROM tab0 AS cor0
----
-3
25

query I rowsort
SELECT ALL - ( + + col1 ) AS col1 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT + - 82 FROM tab1 cor0
----
-82
-82
-82

query I rowsort
SELECT DISTINCT + + 45 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
45

query II rowsort
SELECT ALL 56 AS col1, - 6 AS col0 FROM tab2
----
56
-6
56
-6
56
-6

query I rowsort
SELECT ALL 25 * 77 FROM tab0
----
1925
1925
1925

onlyif mysql # aggregate syntax: 
query I rowsort label-3982
SELECT ( MIN( ALL 71 ) ) FROM tab1 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-3982
SELECT ( MIN ( ALL 71 ) ) FROM tab1 AS cor0
----
71

query I rowsort
SELECT - - col1 FROM tab0 AS cor0 WHERE NOT + ( - ( - col0 ) ) IS NULL
----
1
21
81

query I rowsort
SELECT 46 * - + 7 + - - 6 * - - col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 36 * - 52 AS col2 FROM tab1 AS cor0
----
-1872
-1872
-1872

onlyif mysql # DIV for integer division: 
query II rowsort label-3986
SELECT col1, + col1 * col2 DIV + 89 - + 83 AS col0 FROM tab2 cor0
----
51
-70
67
-40
77
-49

skipif mysql # not compatible
query II rowsort label-3986
SELECT col1, + col1 * col2 / + 89 - + 83 AS col0 FROM tab2 cor0
----
51
-70
67
-40
77
-49

query I rowsort
SELECT + 96 * - col0 FROM tab1 AS cor0
----
-4896
-8160
-8736

onlyif mysql # DIV for integer division: 
query I rowsort label-3988
SELECT DISTINCT + + 30 DIV - col1 AS col2 FROM tab0 AS cor0
----
-1
-30
0

skipif mysql # not compatible
query I rowsort label-3988
SELECT DISTINCT + + 30 / - col1 AS col2 FROM tab0 AS cor0
----
-1
-30
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3989
SELECT - col0 DIV - 60 FROM tab0 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3989
SELECT - col0 / - 60 FROM tab0 AS cor0
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3990
SELECT ALL + MIN( DISTINCT 36 ) FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-3990
SELECT ALL + MIN ( DISTINCT 36 ) FROM tab0
----
36

query I rowsort
SELECT + col1 AS col1 FROM tab2 WHERE - + 71 * + 56 + - ( + 89 ) >= NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + 45 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3993
SELECT DISTINCT * FROM tab1 WHERE + - col0 * + 97 - - + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3993
SELECT DISTINCT * FROM tab1 WHERE + - col0 * + 97 - - + CAST ( NULL AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 BETWEEN col0 AND NULL
----

query II rowsort
SELECT + - 8 + col1 AS col0, col1 AS col2 FROM tab1 AS cor0
----
-3
5
39
47
6
14

query I rowsort
SELECT - + 54 + - + col1 AS col2 FROM tab2 AS cor0
----
-105
-121
-131

query I rowsort
SELECT 75 - ( 21 ) * + col2 AS col1 FROM tab2 AS cor0 WHERE NULL IN ( 43 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3998
SELECT 99 * - + 69 + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-6828

skipif mysql # not compatible
query I rowsort label-3998
SELECT 99 * - + 69 + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-6828

query I rowsort
SELECT DISTINCT + - col1 / 29 * col0 + col2 AS col1 FROM tab1 cor0 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4000
SELECT - MIN( + col0 ) + - MAX( ALL - 3 ) FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-4000
SELECT - MIN ( + col0 ) + - MAX ( ALL - 3 ) FROM tab0
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4001
SELECT ALL + CAST( - + col1 AS SIGNED ) col0 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4001
SELECT ALL + CAST ( - + col1 AS INTEGER ) col0 FROM tab0
----
-1
-21
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 28 AS col2, - col1 col0 FROM tab1 AS cor0
----
28
-14
28
-47
28
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4003
SELECT + MAX( - + 38 ) AS col0 FROM tab1 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-4003
SELECT + MAX ( - + 38 ) AS col0 FROM tab1 AS cor0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-4004
SELECT ALL 73 + 76 + + - SUM( col1 ) FROM tab1 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-4004
SELECT ALL 73 + 76 + + - SUM ( col1 ) FROM tab1 AS cor0
----
83

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 * - col0 * col0 * 58 / + 57 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4006
SELECT COUNT( * ) AS col0, + 52 FROM tab1 cor0
----
3
52

skipif mysql # not compatible
query II rowsort label-4006
SELECT COUNT ( * ) AS col0, + 52 FROM tab1 cor0
----
3
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 15 - - + col1 col1 FROM tab1 AS cor0
----
20
29
62

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + ( col2 ) IS NULL
----

query I rowsort
SELECT + col0 - 98 + - col2 * - + col1 FROM tab2 AS cor0
----
1121
3046
3863

query I rowsort
SELECT + col1 * - col1 - + col1 * col1 + + col0 AS col0 FROM tab2 cor0
----
-11794
-5156
-8903

query I rowsort
SELECT ALL - 79 * - + col2 AS col1 FROM tab0
----
3713
7821
790

query I rowsort
SELECT - 64 * 97 FROM tab1
----
-6208
-6208
-6208

query I rowsort
SELECT + - col1 * - 15 AS col1 FROM tab2 AS cor0
----
1005
1155
765

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 21 * - ( col2 ) col1 FROM tab1 AS cor0
----
1239
1428
2016

query III rowsort
SELECT * FROM tab1 WHERE NOT 82 * 76 / + 38 < NULL
----

query I rowsort
SELECT ALL - col0 * - 55 AS col2 FROM tab2
----
2530
3520
4125

onlyif mysql # aggregate syntax: 
query II rowsort label-4017
SELECT - COUNT( * ) AS col1, + 54 FROM tab0 AS cor0
----
-3
54

skipif mysql # not compatible
query II rowsort label-4017
SELECT - COUNT ( * ) AS col1, + 54 FROM tab0 AS cor0
----
-3
54

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4018
SELECT ALL + ( + ( - CAST( - col1 AS SIGNED ) ) ) + 64 - - col0 * col2 DIV + 45 AS col0 FROM tab0 AS cor0
----
104
160
278

skipif mysql # not compatible
query I rowsort label-4018
SELECT ALL + ( + ( - CAST ( - col1 AS INTEGER ) ) ) + 64 - - col0 * col2 / + 45 AS col0 FROM tab0 AS cor0
----
104
160
278

query I rowsort
SELECT ALL + 95 + + 17 AS col0 FROM tab2 AS cor0
----
112
112
112

query I rowsort
SELECT col0 * - col1 * + col2 * 54 + - col1 * + col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 83 col0 FROM tab1 AS cor0
----
-4233
-7055
-7553

query I rowsort
SELECT ALL - ( - 44 ) AS col0 FROM tab0 cor0
----
44
44
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4023
SELECT ALL - col2 * - - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4023
SELECT ALL - col2 * - - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NULL <> - col2 - + - 20
----

query II rowsort
SELECT col1 + + col1 * + + col1 + - col0, col1 + - - col2 AS col0 FROM tab2
----
2606
74
4481
125
5942
117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4026
SELECT col2 + - col0 + + col2 + col2 * + - CAST( + col2 AS SIGNED ) + + col2 * - - col2 * + col2 AS col2 FROM tab1
----
201931
309853
875661

skipif mysql # not compatible
query I rowsort label-4026
SELECT col2 + - col0 + + col2 + col2 * + - CAST ( + col2 AS INTEGER ) + + col2 * - - col2 * + col2 AS col2 FROM tab1
----
201931
309853
875661

onlyif mysql # DIV for integer division: 
query II rowsort label-4027
SELECT 13 + + + col1 AS col1, - 21 + col0 DIV col2 AS col2 FROM tab2
----
64
-19
80
-20
90
-20

skipif mysql # not compatible
query II rowsort label-4027
SELECT 13 + + + col1 AS col1, - 21 + col0 / col2 AS col2 FROM tab2
----
64
-19
80
-20
90
-20

query I rowsort
SELECT ALL - col2 * + - 87 FROM tab0
----
4089
8613
870

onlyif mysql # aggregate syntax: 
query II rowsort label-4029
SELECT 52, SUM( - + col0 ) AS col1 FROM tab2
----
52
-185

skipif mysql # not compatible
query II rowsort label-4029
SELECT 52, SUM ( - + col0 ) AS col1 FROM tab2
----
52
-185

query I rowsort
SELECT ALL 56 + + - col2 AS col0 FROM tab1
----
-12
-3
-40

query I rowsort
SELECT ALL + 86 + + col1 AS col0 FROM tab1 AS cor0
----
100
133
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4032
SELECT + - MIN( - 31 ) AS col1 FROM tab0 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-4032
SELECT + - MIN ( - 31 ) AS col1 FROM tab0 AS cor0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4033
SELECT + COUNT( 97 ) - + 95 FROM tab2 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-4033
SELECT + COUNT ( 97 ) - + 95 FROM tab2 AS cor0
----
-92

query I rowsort
SELECT ALL - 23 - + col1 FROM tab0 AS cor0
----
-104
-24
-44

query I rowsort
SELECT - 41 - + - col1 * + 97 + + ( + col0 ) FROM tab1
----
1368
4609
529

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col2 + + col1 * + col0 col1 FROM tab1
----
10465
5440
5610

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4037
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) <= ( - col0 * + - col2 )
----

skipif mysql # not compatible
query III rowsort label-4037
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) <= ( - col0 * + - col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4038
SELECT DISTINCT - COUNT( * ) AS col2, 0 AS col1 FROM tab0 cor0 WHERE + col2 IS NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-4038
SELECT DISTINCT - COUNT ( * ) AS col2, 0 AS col1 FROM tab0 cor0 WHERE + col2 IS NULL
----
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4039
SELECT ALL + + col1 * - - 34 * - CAST( NULL AS SIGNED ) - col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4039
SELECT ALL + + col1 * - - 34 * - CAST ( NULL AS INTEGER ) - col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4040
SELECT + - 48 / + - CAST( NULL AS SIGNED ) + + COUNT( ALL + CAST( - ( col2 ) AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4040
SELECT + - 48 / + - CAST ( NULL AS INTEGER ) + + COUNT ( ALL + CAST ( - ( col2 ) AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT ALL col2 AS col0, col1 AS col1 FROM tab1
----
59
5
68
47
96
14

onlyif mysql # DIV for integer division: 
query II rowsort label-4042
SELECT 20, 7 DIV - col1 col1 FROM tab1
----
20
-1
20
0
20
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4042
SELECT 20, 7 / - col1 col1 FROM tab1
----
20
-1
20
0
20
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL <> - col2 + - 8
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4044
SELECT ALL - 63 * + - COUNT( * ) FROM tab0
----
189

skipif mysql # not compatible
query I rowsort label-4044
SELECT ALL - 63 * + - COUNT ( * ) FROM tab0
----
189

query II rowsort
SELECT 32, col2 FROM tab1
----
32
59
32
68
32
96

query I rowsort
SELECT - 41 FROM tab0 WHERE NOT NULL IN ( - col2 + + col1, - ( col2 ), - col0 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4047
SELECT ALL 56 AS col0 FROM tab2 WHERE ( + col2 NOT IN ( - 21, CAST( + + col0 AS DECIMAL ) ) )
----
56
56
56

skipif mysql # not compatible
query I rowsort label-4047
SELECT ALL 56 AS col0 FROM tab2 WHERE ( + col2 NOT IN ( - 21, CAST ( + + col0 AS REAL ) ) )
----
56
56
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4048
SELECT DISTINCT SUM( ALL + 90 ) AS col1 FROM tab0
----
270

skipif mysql # not compatible
query I rowsort label-4048
SELECT DISTINCT SUM ( ALL + 90 ) AS col1 FROM tab0
----
270

query I rowsort
SELECT + + ( - - ( + col2 ) ) FROM tab2 cor0
----
23
40
58

query I rowsort
SELECT - - col1 FROM tab1 cor0 WHERE NOT - col2 * - col1 <> NULL
----

query II rowsort
SELECT DISTINCT - 59 * + col0 + - ( 92 ) AS col0, col0 * - 71 AS col2 FROM tab2 AS cor0
----
-2806
-3266
-3868
-4544
-4517
-5325

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4052
SELECT ALL - + col1 AS col0, CAST( NULL AS SIGNED ) + - + col0 AS col2 FROM tab2 AS cor0 WHERE NOT - col0 * + 42 / + col1 IS NULL
----
-51
NULL
-67
NULL
-77
NULL

skipif mysql # not compatible
query II rowsort label-4052
SELECT ALL - + col1 AS col0, CAST ( NULL AS INTEGER ) + - + col0 AS col2 FROM tab2 AS cor0 WHERE NOT - col0 * + 42 / + col1 IS NULL
----
-51
NULL
-67
NULL
-77
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4053
SELECT + col2 * + col1 + - ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4053
SELECT + col2 * + col1 + - ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 + col2 * - 79 col2 FROM tab2 AS cor0
----
-1794
-3120
-4524

query I rowsort
SELECT DISTINCT ( 97 ) FROM tab2 AS cor0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4056
SELECT ALL CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4056
SELECT ALL CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4057
SELECT + 37 * + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-111

skipif mysql # not compatible
query I rowsort label-4057
SELECT + 37 * + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-111

query I rowsort
SELECT ALL + col0 * + 10 AS col2 FROM tab1 AS cor0
----
510
850
910

onlyif mysql # DIV for integer division: 
query I rowsort label-4059
SELECT DISTINCT col2 DIV - - 41 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-4059
SELECT DISTINCT col2 / - - 41 FROM tab2
----
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4060
SELECT DISTINCT col1 * + - CAST( + + ( - + col1 ) AS SIGNED ) FROM tab0
----
1
441
6561

skipif mysql # not compatible
query I rowsort label-4060
SELECT DISTINCT col1 * + - CAST ( + + ( - + col1 ) AS INTEGER ) FROM tab0
----
1
441
6561

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 69 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 * - col1 AS col2 FROM tab1 WHERE + + 49 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4063
SELECT DISTINCT - ( col1 ) * + ( - + 35 ) + - - col0 + - 63 AS col0, CAST( NULL AS SIGNED ) FROM tab1
----
1673
NULL
197
NULL
478
NULL

skipif mysql # not compatible
query II rowsort label-4063
SELECT DISTINCT - ( col1 ) * + ( - + 35 ) + - - col0 + - 63 AS col0, CAST ( NULL AS INTEGER ) FROM tab1
----
1673
NULL
197
NULL
478
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 col1 FROM tab0 WHERE 24 IS NOT NULL
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4065
SELECT * FROM tab0 WHERE - col2 - - - 23 + CAST( NULL AS SIGNED ) * - + col0 * 67 + - 30 + + col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4065
SELECT * FROM tab0 WHERE - col2 - - - 23 + CAST ( NULL AS INTEGER ) * - + col0 * 67 + - 30 + + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4066
SELECT + COUNT( * ) + - + MAX( + 61 ) AS col2 FROM tab0
----
-58

skipif mysql # not compatible
query I rowsort label-4066
SELECT + COUNT ( * ) + - + MAX ( + 61 ) AS col2 FROM tab0
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4067
SELECT + CAST( NULL AS SIGNED ) + - 17 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4067
SELECT + CAST ( NULL AS INTEGER ) + - 17 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col0 * - col1 - + 12 * + col1 * - + col0 FROM tab0 AS cor0
----
1261
15795
23751

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT IN ( - col1 + + - col2, col0 - - col1 )
----

query I rowsort
SELECT - + 45 + + ( + - 63 ) AS col1 FROM tab0 AS cor0
----
-108
-108
-108

query II rowsort
SELECT DISTINCT + col2 AS col0, + 23 FROM tab1
----
59
23
68
23
96
23

query I rowsort
SELECT 33 * + 96 - - col2 FROM tab1
----
3227
3236
3264

query II rowsort
SELECT - col2, 99 AS col1 FROM tab0 AS cor0
----
-10
99
-47
99
-99
99

query II rowsort
SELECT ALL - 7, col1 AS col0 FROM tab2 AS cor0
----
-7
51
-7
67
-7
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4075
SELECT MAX( DISTINCT + - col1 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4075
SELECT MAX ( DISTINCT + - col1 ) FROM tab0 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4076
SELECT DISTINCT - 23 AS col0, + col1 * + + 7 * CAST( ( col1 ) AS SIGNED ) * - 30 + - - 39 + - col1 * - - ( - - col1 ) AS col1 FROM tab1 AS cor0
----
-23
-41317
-23
-466060
-23
-5236

skipif mysql # not compatible
query II rowsort label-4076
SELECT DISTINCT - 23 AS col0, + col1 * + + 7 * CAST ( ( col1 ) AS INTEGER ) * - 30 + - - 39 + - col1 * - - ( - - col1 ) AS col1 FROM tab1 AS cor0
----
-23
-41317
-23
-466060
-23
-5236

onlyif mysql # aggregate syntax: 
query I rowsort label-4077
SELECT DISTINCT + + MIN( + 86 ) col2 FROM tab0 AS cor0
----
86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4077
SELECT DISTINCT + + MIN ( + 86 ) col2 FROM tab0 AS cor0
----
86

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - 14 NOT IN ( + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 AS col2 FROM tab2 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT ALL - + col2 - - col2 + - col2 FROM tab0 WHERE + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4081
SELECT + ( + COUNT( DISTINCT - + col0 ) ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4081
SELECT + ( + COUNT ( DISTINCT - + col0 ) ) AS col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4082
SELECT DISTINCT + + MAX( - ( + 73 ) ) AS col2 FROM tab0 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-4082
SELECT DISTINCT + + MAX ( - ( + 73 ) ) AS col2 FROM tab0 AS cor0
----
-73

query I rowsort
SELECT + - col0 * + 32 * - 73 FROM tab2 AS cor0
----
107456
149504
175200

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col1 * + + col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 74 + + 62 AS col1 FROM tab1
----
136

query I rowsort
SELECT - - 11 AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

onlyif mysql # DIV for integer division: 
query II rowsort label-4087
SELECT col2 AS col1, col0 DIV - col0 AS col2 FROM tab1
----
59
-1
68
-1
96
-1

skipif mysql # not compatible
query II rowsort label-4087
SELECT col2 AS col1, col0 / - col0 AS col2 FROM tab1
----
59
-1
68
-1
96
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4088
SELECT ALL + CAST( - - col1 AS SIGNED ) FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-4088
SELECT ALL + CAST ( - - col1 AS INTEGER ) FROM tab1
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4089
SELECT - col1 AS col0, CAST( - + col0 AS SIGNED ) + + + 31 AS col1 FROM tab1 AS cor0 WHERE - col2 IS NULL
----

skipif mysql # not compatible
query II rowsort label-4089
SELECT - col1 AS col0, CAST ( - + col0 AS INTEGER ) + + + 31 AS col1 FROM tab1 AS cor0 WHERE - col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4090
SELECT + 43 + + 31 DIV - col0 AS col1 FROM tab1 AS cor0
----
43
43
43

skipif mysql # not compatible
query I rowsort label-4090
SELECT + 43 + + 31 / - col0 AS col1 FROM tab1 AS cor0
----
43
43
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4091
SELECT - COUNT( * ) * - COUNT( + 2 ) + + 99 + - 90 AS col2 FROM tab1 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-4091
SELECT - COUNT ( * ) * - COUNT ( + 2 ) + + 99 + - 90 AS col2 FROM tab1 AS cor0
----
18

query I rowsort
SELECT DISTINCT - col2 * - + 24 FROM tab1
----
1416
1632
2304

query I rowsort
SELECT - 63 * - - ( - 22 ) AS col1 FROM tab2
----
1386
1386
1386

query I rowsort
SELECT DISTINCT col2 + + ( ( + 22 ) ) AS col0 FROM tab1
----
118
81
90

query I rowsort
SELECT ALL ( + + 98 ) FROM tab1
----
98
98
98

query I rowsort
SELECT ALL + col2 + - + 49 AS col0 FROM tab0
----
-2
-39
50

query I rowsort
SELECT DISTINCT 10 * - 90 * + col1 + + + col2 * - 23 AS col1 FROM tab0
----
-19130
-3177
-73981

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 > + - col2 * 57 + + + ( + ( col1 ) ) * 92
----
51
14
96
85
5
59

query I rowsort
SELECT ( col0 ) - + col0 + - 18 FROM tab0 AS cor0
----
-18
-18
-18

query I rowsort
SELECT ALL 17 FROM tab0 cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT 75 - - col2 AS col2 FROM tab0 AS cor0
----
122
174
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4102
SELECT ALL COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4102
SELECT ALL COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 66 * - col0 col2 FROM tab2
----
-3036
-4224
-4950

query I rowsort
SELECT DISTINCT + col0 * 14 AS col1 FROM tab1 cor0
----
1190
1274
714

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= + col1 * + col0
----

query I rowsort
SELECT - 13 * col2 FROM tab0 cor0
----
-1287
-130
-611

onlyif mysql # aggregate syntax: 
query I rowsort label-4107
SELECT DISTINCT - COUNT( DISTINCT + col1 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4107
SELECT DISTINCT - COUNT ( DISTINCT + col1 ) AS col1 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( NOT col2 >= - - col0 )
----
85
5
59
91
47
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4109
SELECT DISTINCT ( - MIN( - + 19 ) ) DIV + COUNT( * ) AS col1 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4109
SELECT DISTINCT ( - MIN ( - + 19 ) ) / + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
6

query II rowsort
SELECT + col0 AS col1, 53 + + - col2 AS col2 FROM tab0 WHERE NOT + col2 IS NULL
----
15
6
87
43
97
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4111
SELECT - CAST( NULL AS SIGNED ) / col2 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4111
SELECT - CAST ( NULL AS INTEGER ) / col2 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4112
SELECT DISTINCT + + 70 + - + COUNT( * ) FROM tab2 WHERE NULL IS NULL
----
67

skipif mysql # not compatible
query I rowsort label-4112
SELECT DISTINCT + + 70 + - + COUNT ( * ) FROM tab2 WHERE NULL IS NULL
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4113
SELECT DISTINCT + CAST( NULL AS SIGNED ), col1 + + - 76 + - - ( - CAST( NULL AS SIGNED ) ) FROM tab0 WHERE col0 IS NULL
----

skipif mysql # not compatible
query II rowsort label-4113
SELECT DISTINCT + CAST ( NULL AS INTEGER ), col1 + + - 76 + - - ( - CAST ( NULL AS INTEGER ) ) FROM tab0 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4114
SELECT ALL + MIN( DISTINCT + col1 ) FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-4114
SELECT ALL + MIN ( DISTINCT + col1 ) FROM tab0 cor0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4115
SELECT ALL + 73 DIV + 34 - - COUNT( * ) col1 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4115
SELECT ALL + 73 / + 34 - - COUNT ( * ) col1 FROM tab1 AS cor0
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4116
SELECT DISTINCT - AVG ( ALL + + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4116
SELECT DISTINCT - AVG ( ALL + + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4117
SELECT + 56 + - MAX( ALL + 94 ) AS col0 FROM tab1 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-4117
SELECT + 56 + - MAX ( ALL + 94 ) AS col0 FROM tab1 AS cor0
----
-38

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 15 + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4119
SELECT - 13 * + COUNT( * ) FROM tab2, tab0 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort label-4119
SELECT - 13 * + COUNT ( * ) FROM tab2, tab0 AS cor0
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-4120
SELECT DISTINCT 2 + 75 + COUNT( * ) AS col2 FROM tab0 cor0
----
80

skipif mysql # not compatible
query I rowsort label-4120
SELECT DISTINCT 2 + 75 + COUNT ( * ) AS col2 FROM tab0 cor0
----
80

query I rowsort
SELECT DISTINCT - 23 + - - 43 + + - 93 * - 88 FROM tab1 AS cor0
----
8204

query II rowsort
SELECT ALL + col1 + - - col1, col2 FROM tab2 AS cor0
----
102
23
134
58
154
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4123
SELECT ALL - CAST( NULL AS SIGNED ) + + col1 + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4123
SELECT ALL - CAST ( NULL AS INTEGER ) + + col1 + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4124
SELECT ALL MAX( ALL - col2 ) AS col1 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-4124
SELECT ALL MAX ( ALL - col2 ) AS col1 FROM tab0
----
-10

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 IS NOT NULL AND + ( 2 ) IS NOT NULL
----

query I rowsort
SELECT + - col1 AS col1 FROM tab1 AS cor0 WHERE NULL NOT IN ( + col2 + col0, ( + + col2 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4127
SELECT + col2 + CAST( + - 21 AS SIGNED ) FROM tab1 cor0
----
38
47
75

skipif mysql # not compatible
query I rowsort label-4127
SELECT + col2 + CAST ( + - 21 AS INTEGER ) FROM tab1 cor0
----
38
47
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4128
SELECT - CAST( + SUM( ALL 24 ) AS SIGNED ) + - SUM( DISTINCT - col1 ) * - 58 * + - ( 33 ) FROM tab2 cor0
----
373158

skipif mysql # not compatible
query I rowsort label-4128
SELECT - CAST ( + SUM ( ALL 24 ) AS INTEGER ) + - SUM ( DISTINCT - col1 ) * - 58 * + - ( 33 ) FROM tab2 cor0
----
373158

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL <> + 8
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4130
SELECT ALL - + CAST( + 67 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-67
-67
-67

skipif mysql # not compatible
query I rowsort label-4130
SELECT ALL - + CAST ( + 67 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-67
-67
-67

query I rowsort
SELECT DISTINCT + 90 + + - 52 + - + col0 * + 37 + + - col2 AS col0 FROM tab0 AS cor0
----
-3191
-3650
-564

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col0 ) < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4133
SELECT ALL 3 * + CAST( NULL AS SIGNED ) / SUM( DISTINCT - col1 ) AS col2, + COUNT( * ) AS col2 FROM tab2 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-4133
SELECT ALL 3 * + CAST ( NULL AS INTEGER ) / SUM ( DISTINCT - col1 ) AS col2, + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
NULL
3

query II rowsort
SELECT - + 0 * - - col0, 2 AS col2 FROM tab1 AS cor0
----
0
2
0
2
0
2

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 42 * 26 * + ( + col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + col0 FROM tab1 AS cor0 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4137
SELECT ALL - col2 DIV col0 + + col2 FROM tab0 AS cor0
----
10
44
98

skipif mysql # not compatible
query I rowsort label-4137
SELECT ALL - col2 / col0 + + col2 FROM tab0 AS cor0
----
10
44
98

query I rowsort
SELECT + col0 / + col2 + ( - + col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + col1 + - + col1 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - 53 + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4141
SELECT + COUNT( 8 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4141
SELECT + COUNT ( 8 ) FROM tab1
----
3

query I rowsort
SELECT DISTINCT col2 + + + col2 + - + col2 + - + col2 AS col2 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4143
SELECT DISTINCT + - COUNT( ALL + col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4143
SELECT DISTINCT + - COUNT ( ALL + col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
-3

query I rowsort
SELECT - + 47 * + 26 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d76985f63c1637ce6a1e399c51ffdabb

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4146
SELECT - + COUNT( * ) + + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4146
SELECT - + COUNT ( * ) + + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4147
SELECT ALL * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) + - 76 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4147
SELECT ALL * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) + - 76 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 80 / - 45 - + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 * + 67 * + - col1 < + - 53
----

query I rowsort
SELECT + col0 * + + col0 FROM tab1 AS cor0
----
2601
7225
8281

query II rowsort
SELECT col2 * - col0, col0 FROM tab0
----
-705
15
-870
87
-9603
97

onlyif mysql # DIV for integer division: 
query I rowsort label-4152
SELECT + col2 DIV + + col2 AS col2 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4152
SELECT + col2 / + + col2 AS col2 FROM tab0
----
1
1
1

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4153
SELECT DISTINCT + - 76 + CAST( NULL AS DECIMAL ) AS col0, 40 AS col2 FROM tab2 WHERE NOT + col1 * + - col0 <> + - col0
----

skipif mysql # not compatible
query II rowsort label-4153
SELECT DISTINCT + - 76 + CAST ( NULL AS REAL ) AS col0, 40 AS col2 FROM tab2 WHERE NOT + col1 * + - col0 <> + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4154
SELECT DISTINCT + MIN( DISTINCT + ( + col0 ) ) * + 57 AS col2 FROM tab1
----
2907

skipif mysql # not compatible
query I rowsort label-4154
SELECT DISTINCT + MIN ( DISTINCT + ( + col0 ) ) * + 57 AS col2 FROM tab1
----
2907

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4155
SELECT col0 * + col2 * CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4155
SELECT col0 * + col2 * CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE col0 * col2 BETWEEN + col0 * 63 * col1 AND col2 / + + 12
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4157
SELECT ALL + 25 FROM tab2 WHERE CAST( NULL AS DECIMAL ) / + + col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4157
SELECT ALL + 25 FROM tab2 WHERE CAST ( NULL AS REAL ) / + + col1 IS NOT NULL
----

query I rowsort
SELECT + 98 AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

query I rowsort
SELECT - col0 * + 24 - col2 * + col1 FROM tab0 AS cor0
----
-2298
-2427
-4167

query I rowsort
SELECT - + col1 * - + col0 FROM tab2 AS cor0
----
2346
4928
5025

query I rowsort
SELECT - col1 * + + 88 FROM tab0 AS cor0
----
-1848
-7128
-88

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4162
SELECT ALL col2 AS col1, CAST( + 96 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
23
96
40
96
58
96

skipif mysql # not compatible
query II rowsort label-4162
SELECT ALL col2 AS col1, CAST ( + 96 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
23
96
40
96
58
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - ( 0 ) ) * - ( - + col0 ) - - + 61 col1 FROM tab0 AS cor0
----
61

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab1 cor0 WHERE NOT 71 + + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4165
SELECT + COUNT( ALL + col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4165
SELECT + COUNT ( ALL + col0 ) FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * + 1 col0 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4167
SELECT * FROM tab1 AS cor0 WHERE NOT col2 = - col0 * + CAST( + col1 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4167
SELECT * FROM tab1 AS cor0 WHERE NOT col2 = - col0 * + CAST ( + col1 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4168
SELECT - col0 DIV + - 14 FROM tab1 AS cor0
----
3
6
6

skipif mysql # not compatible
query I rowsort label-4168
SELECT - col0 / + - 14 FROM tab1 AS cor0
----
3
6
6

onlyif mysql # DIV for integer division: 
query I rowsort label-4169
SELECT 35 DIV + + col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4169
SELECT 35 / + + col2 FROM tab1
----
0
0
0

query II rowsort
SELECT DISTINCT + col1 * - + col1, + col2 FROM tab2
----
-2601
23
-4489
58
-5929
40

query I rowsort
SELECT + col2 AS col0 FROM tab0 AS cor0 WHERE ( col1 * - col0 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - 79 + + - col1 + + 27 AS col0 FROM tab1 AS cor0
----
-57
-66
-99

query I rowsort
SELECT DISTINCT - - col1 + + - 27 + + col2 FROM tab1 AS cor0
----
37
83
88

onlyif mysql # DIV for integer division: 
query I rowsort label-4174
SELECT - ( col0 ) DIV - col2 + + - 1 * - col2 AS col1 FROM tab1 AS cor0
----
60
69
96

skipif mysql # not compatible
query I rowsort label-4174
SELECT - ( col0 ) / - col2 + + - 1 * - col2 AS col1 FROM tab1 AS cor0
----
60
69
96

query I rowsort
SELECT + - 5 + - col1 FROM tab0 AS cor0
----
-26
-6
-86

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 NOT BETWEEN col1 AND col0
----

query I rowsort
SELECT DISTINCT - 35 + - col0 + col2 AS col1 FROM tab1
----
-58
-61
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4178
SELECT ALL - col1 + + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4178
SELECT ALL - col1 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 FROM tab2 cor0 WHERE col0 IS NOT NULL
----
46
64
75

query I rowsort
SELECT - - 85 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4181
SELECT ALL col2 DIV - 42 AS col1 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-4181
SELECT ALL col2 / - 42 AS col1 FROM tab0 AS cor0
----
-1
-2
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + 65 col1 FROM tab1 AS cor0
----
112
70
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4183
SELECT + 53 * + COUNT( * ) AS col2 FROM tab2 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-4183
SELECT + 53 * + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
159

query I rowsort
SELECT + col2 - + - col1 AS col0 FROM tab0 cor0
----
100
128
31

query I rowsort
SELECT ALL - + col0 - + col1 - + col0 * + 78 FROM tab2 AS cor0
----
-3685
-5133
-5992

query I rowsort
SELECT ALL - 79 * + + col2 + col0 FROM tab0 AS cor0
----
-3698
-703
-7724

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 + + - col0 BETWEEN NULL AND NULL AND 83 * + 36 / - 93 > + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4188
SELECT ALL - CAST( NULL AS SIGNED ) / CAST( - - col2 AS SIGNED ) * col2 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4188
SELECT ALL - CAST ( NULL AS INTEGER ) / CAST ( - - col2 AS INTEGER ) * col2 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4189
SELECT ALL 65 - col0 DIV col2 AS col2 FROM tab0
----
57
65
65

skipif mysql # not compatible
query I rowsort label-4189
SELECT ALL 65 - col0 / col2 AS col2 FROM tab0
----
57
65
65

query III rowsort
SELECT ALL col1, + 11 AS col0, + - col0 AS col1 FROM tab2
----
9 values hashing to 0ebce2bf848c032db82ec3527586a969

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4191
SELECT ALL + 4 + - - COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1, tab0 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-4191
SELECT ALL + 4 + - - COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1, tab0 AS cor0
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-4192
SELECT DISTINCT COUNT( * ), + 36 AS col2 FROM tab2
----
3
36

skipif mysql # not compatible
query II rowsort label-4192
SELECT DISTINCT COUNT ( * ), + 36 AS col2 FROM tab2
----
3
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4193
SELECT + MIN( 37 ) AS col2 FROM tab2
----
37

skipif mysql # not compatible
query I rowsort label-4193
SELECT + MIN ( 37 ) AS col2 FROM tab2
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4194
SELECT DISTINCT * FROM tab1 WHERE NOT 34 NOT BETWEEN ( CAST( + col0 AS SIGNED ) ) AND - col2
----

skipif mysql # not compatible
query III rowsort label-4194
SELECT DISTINCT * FROM tab1 WHERE NOT 34 NOT BETWEEN ( CAST ( + col0 AS INTEGER ) ) AND - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4195
SELECT + + col1 DIV - 20 FROM tab1 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-4195
SELECT + + col1 / - 20 FROM tab1 AS cor0
----
-2
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4196
SELECT - + MAX( DISTINCT - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4196
SELECT - + MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT ALL + col0 AS col1, + col2 * + col1 FROM tab1 AS cor0
----
51
1344
85
295
91
3196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 88 col0 FROM tab0 AS cor0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4199
SELECT ALL SUM( col1 ) * - 74 FROM tab2
----
-14430

skipif mysql # not compatible
query I rowsort label-4199
SELECT ALL SUM ( col1 ) * - 74 FROM tab2
----
-14430

query I rowsort
SELECT DISTINCT ( + + 75 ) * + - col2 + - col1 * - col2 * col1 FROM tab1
----
-2950
11616
145112

query I rowsort
SELECT - col0 * - + col2 AS col1 FROM tab2 AS cor0
----
1058
2560
4350

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 78 >= col0 * - col0 * - col2 + + 34
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 * + - 64 AS col2 FROM tab2 AS cor0
----
-2944
-4096
-4800

query I rowsort
SELECT ALL + + 55 FROM tab0 cor0
----
55
55
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 93 col0 FROM tab0 WHERE 4 IS NOT NULL
----
1395
8091
9021

onlyif mysql # aggregate syntax: 
query I rowsort label-4207
SELECT + COUNT( * ) + + + ( + - 13 ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-4207
SELECT + COUNT ( * ) + + + ( + - 13 ) FROM tab0
----
-10

query I rowsort
SELECT + 18 + + col1 FROM tab0
----
19
39
99

query II rowsort
SELECT + 67, - 77 AS col1 FROM tab1
----
67
-77
67
-77
67
-77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4210
SELECT - ( + + CAST( NULL AS DECIMAL ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4210
SELECT - ( + + CAST ( NULL AS REAL ) ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL <> col0
----

query I rowsort
SELECT - 57 * + - col2 AS col1 FROM tab2 AS cor0
----
1311
2280
3306

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4213
SELECT DISTINCT - 7 DIV - MIN( col1 ) col0 FROM tab1
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4213
SELECT DISTINCT - 7 / - MIN ( col1 ) col0 FROM tab1
----
1

query I rowsort
SELECT ALL + + 55 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

onlyif mysql # DIV for integer division: 
query I rowsort label-4215
SELECT DISTINCT - col0 DIV + + 72 + - + 88 AS col0 FROM tab1
----
-88
-89

skipif mysql # not compatible
query I rowsort label-4215
SELECT DISTINCT - col0 / + + 72 + - + 88 AS col0 FROM tab1
----
-88
-89

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL < - + col1 * col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 19 < - + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - + col1 col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4219
SELECT * FROM tab1 AS cor0 WHERE + CAST( + - col0 AS SIGNED ) >= + col2 * 63 + 91
----

skipif mysql # not compatible
query III rowsort label-4219
SELECT * FROM tab1 AS cor0 WHERE + CAST ( + - col0 AS INTEGER ) >= + col2 * 63 + 91
----

query I rowsort
SELECT ALL + 89 + col2 * col0 FROM tab2 AS cor0
----
1147
2649
4439

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 41 col1 FROM tab0 cor0
----
41
41
41

query I rowsort
SELECT - 41 * - 73 FROM tab2
----
2993
2993
2993

query I rowsort
SELECT 46 * - - col2 AS col2 FROM tab1
----
2714
3128
4416

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 <= + ( - - 77 )
----
85
5
59
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4225
SELECT DISTINCT MAX( DISTINCT + col2 ) AS col0 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-4225
SELECT DISTINCT MAX ( DISTINCT + col2 ) AS col0 FROM tab1
----
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 AS col2, - 8 col1 FROM tab2
----
51
-8
67
-8
77
-8

query II rowsort
SELECT DISTINCT col2, + col0 * col0 + - col1 FROM tab2
----
23
2065
40
4019
58
5558

query I rowsort
SELECT - ( - + 35 ) AS col0 FROM tab0
----
35
35
35

query III rowsort
SELECT * FROM tab1 WHERE NOT + 70 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 + - col1 + + col0 BETWEEN + 14 AND - 38
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - ( + ( - + 64 ) ) * - col2 AS col1 FROM tab0
----
-3008
-6336
-640

onlyif mysql # DIV for integer division: 
query I rowsort label-4232
SELECT + 68 DIV + + col1 AS col2 FROM tab1 cor0
----
1
13
4

skipif mysql # not compatible
query I rowsort label-4232
SELECT + 68 / + + col1 AS col2 FROM tab1 cor0
----
1
13
4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4233
SELECT DISTINCT col0 AS col0, + ( + - CAST( NULL AS SIGNED ) ) * 17 * - 70 AS col2 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-4233
SELECT DISTINCT col0 AS col0, + ( + - CAST ( NULL AS INTEGER ) ) * 17 * - 70 AS col2 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

query I rowsort
SELECT - 56 AS col0 FROM ( tab0 cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4235
SELECT ALL 9 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4235
SELECT ALL 9 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + 93 AS col0, - col2 AS col2 FROM tab1 AS cor0
----
93
-59
93
-68
93
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + 6 col1 FROM tab2 AS cor0
----
-17
-34
-52

query I rowsort
SELECT - col1 * col0 * - 91 FROM tab0 cor0
----
110565
166257
8827

query II rowsort
SELECT ALL - - 21 AS col2, col0 * - col2 AS col2 FROM tab1 cor0
----
21
-4896
21
-5015
21
-6188

query I rowsort
SELECT DISTINCT + col1 * 18 AS col2 FROM tab0 AS cor0
----
1458
18
378

query I rowsort
SELECT ALL + col0 AS col0 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + col0 * + 26 AS col2 FROM tab0 AS cor0
----
2262
2522
390

query I rowsort
SELECT - 98 * - col1 FROM tab0 cor0
----
2058
7938
98

onlyif mysql # aggregate syntax: 
query II rowsort label-4244
SELECT 20 AS col0, COUNT( * ) FROM tab2 cor0
----
20
3

skipif mysql # not compatible
query II rowsort label-4244
SELECT 20 AS col0, COUNT ( * ) FROM tab2 cor0
----
20
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4245
SELECT COUNT( ALL + + 41 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4245
SELECT COUNT ( ALL + + 41 ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-4246
SELECT col0 * - 77 * - col1 DIV - col1, col1 FROM tab0 AS cor0
----
-1155
81
-6699
21
-7469
1

skipif mysql # not compatible
query II rowsort label-4246
SELECT col0 * - 77 * - col1 / - col1, col1 FROM tab0 AS cor0
----
-1155
81
-6699
21
-7469
1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 30 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4248
SELECT DISTINCT COUNT( 41 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4248
SELECT DISTINCT COUNT ( 41 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4249
SELECT COUNT( * ) AS col2, + SUM( + 2 ) col2 FROM tab2, tab1 AS cor0
----
9
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4249
SELECT COUNT ( * ) AS col2, + SUM ( + 2 ) col2 FROM tab2, tab1 AS cor0
----
9
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4250
SELECT ALL + CAST( NULL AS SIGNED ) * - - COUNT( * ) FROM tab1 WHERE NOT ( - 15 IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4250
SELECT ALL + CAST ( NULL AS INTEGER ) * - - COUNT ( * ) FROM tab1 WHERE NOT ( - 15 IS NOT NULL )
----
NULL

query I rowsort
SELECT DISTINCT 53 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - ( ( 0 ) ) AS col0 FROM tab2
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE + + 36 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - + col1 * - col2 + col0 + + - col0 * - col0 + - 20 * col1 FROM tab1 cor0
----
10628
3716
7505

onlyif mysql # DIV for integer division: 
query I rowsort label-4255
SELECT - col1 DIV + 35 + + col2 + + 50 FROM tab2 AS cor0
----
107
72
88

skipif mysql # not compatible
query I rowsort label-4255
SELECT - col1 / + 35 + + col2 + + 50 FROM tab2 AS cor0
----
107
72
88

query II rowsort
SELECT col1 + 35, col1 FROM tab2 AS cor0
----
102
67
112
77
86
51

query I rowsort
SELECT DISTINCT + 90 + + - col0 FROM tab0 AS cor0
----
-7
3
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4258
SELECT ALL + 54 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) * + col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4258
SELECT ALL + 54 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) * + col2 IS NOT NULL
----

query II rowsort
SELECT ALL - col2 + col1 - + col1 AS col0, - 47 FROM tab2 AS cor0
----
-23
-47
-40
-47
-58
-47

query III rowsort
SELECT * FROM tab2 WHERE - col1 + + - col2 >= - - col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( NULL ) <= - - 32
----

query I rowsort
SELECT - + 88 AS col0 FROM tab0 AS cor0 WHERE NOT + 3 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4263
SELECT - - col1, 6 AS col2 FROM tab1 AS cor0 WHERE NOT col1 IN ( - 85 / - col2, 98 * + - CAST( NULL AS SIGNED ), 89 )
----

skipif mysql # not compatible
query II rowsort label-4263
SELECT - - col1, 6 AS col2 FROM tab1 AS cor0 WHERE NOT col1 IN ( - 85 / - col2, 98 * + - CAST ( NULL AS INTEGER ), 89 )
----

query I rowsort
SELECT DISTINCT col2 * 98 FROM tab2 cor0
----
2254
3920
5684

query I rowsort
SELECT + ( - 37 ) * col2 AS col1 FROM tab2
----
-1480
-2146
-851

onlyif mysql # aggregate syntax: 
query II rowsort label-4266
SELECT ALL - 53 + + - 12 AS col0, SUM( + 32 ) FROM tab2 WHERE NULL IS NOT NULL
----
-65
NULL

skipif mysql # not compatible
query II rowsort label-4266
SELECT ALL - 53 + + - 12 AS col0, SUM ( + 32 ) FROM tab2 WHERE NULL IS NOT NULL
----
-65
NULL

query I rowsort
SELECT ALL - ( + 90 ) FROM tab2
----
-90
-90
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-4268
SELECT - MAX( ALL - + 90 ) FROM tab2
----
90

skipif mysql # not compatible
query I rowsort label-4268
SELECT - MAX ( ALL - + 90 ) FROM tab2
----
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + 59 ) col0 FROM tab1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4270
SELECT SUM( DISTINCT - - 14 ) * 20 + - + 61 FROM tab1 AS cor0
----
219

skipif mysql # not compatible
query I rowsort label-4270
SELECT SUM ( DISTINCT - - 14 ) * 20 + - + 61 FROM tab1 AS cor0
----
219

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL BETWEEN - col2 AND NULL
----

query I rowsort
SELECT ALL - - 31 + col2 AS col1 FROM tab0 AS cor0
----
130
41
78

query I rowsort
SELECT DISTINCT ( 64 ) FROM tab2 cor0
----
64

query I rowsort
SELECT + 30 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
30
30
30

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 IN ( - col1 - + 60 * + + 92, col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col1 + + + col2 col1 FROM tab1
----
-366
-4209
-618

onlyif mysql # aggregate syntax: 
query I rowsort label-4277
SELECT DISTINCT + ( MAX( ALL - col2 ) ) col0 FROM tab1
----
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4277
SELECT DISTINCT + ( MAX ( ALL - col2 ) ) col0 FROM tab1
----
-59

query I rowsort
SELECT ( + - 17 ) FROM tab2
----
-17
-17
-17

query III rowsort
SELECT ALL * FROM tab2 WHERE 82 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4280
SELECT - 77 DIV + SUM( DISTINCT - ( + - ( - CAST( - col1 AS SIGNED ) ) ) ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4280
SELECT - 77 / + SUM ( DISTINCT - ( + - ( - CAST ( - col1 AS INTEGER ) ) ) ) AS col2 FROM tab2
----
0

query I rowsort
SELECT ALL - col2 + col1 * - + 41 FROM tab1 AS cor0
----
-1995
-264
-670

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 59 NOT BETWEEN NULL AND + - 21 * + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4283
SELECT DISTINCT - 83 + + col0 DIV + 1 FROM tab0 cor0
----
-68
14
4

skipif mysql # not compatible
query I rowsort label-4283
SELECT DISTINCT - 83 + + col0 / + 1 FROM tab0 cor0
----
-68
14
4

query II rowsort
SELECT DISTINCT - col2 AS col2, + col1 AS col0 FROM tab2 AS cor0
----
-23
51
-40
77
-58
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - + 51 col2 FROM tab2 AS cor0
----
-5
13
24

query II rowsort
SELECT - col1 + - col1 AS col2, col0 AS col2 FROM tab0
----
-162
15
-2
97
-42
87

query I rowsort
SELECT - col2 + + + 82 FROM tab1
----
-14
14
23

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 > + - 90 / 43 / + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4289
SELECT + ( col2 ) DIV + - col1 FROM tab1 AS cor0
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-4289
SELECT + ( col2 ) / + - col1 FROM tab1 AS cor0
----
-1
-11
-6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4290
SELECT DISTINCT 94 * - - col0 - - - 48 + - - CAST( NULL AS SIGNED ) * + col2 AS col0, col1 FROM tab1 cor0
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-4290
SELECT DISTINCT 94 * - - col0 - - - 48 + - - CAST ( NULL AS INTEGER ) * + col2 AS col0, col1 FROM tab1 cor0
----
NULL
14
NULL
47
NULL
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4291
SELECT + MIN( 2 ) FROM tab2 cor0
----
2

skipif mysql # not compatible
query I rowsort label-4291
SELECT + MIN ( 2 ) FROM tab2 cor0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4292
SELECT ( - SUM( + 98 ) ) FROM tab2 cor0
----
-294

skipif mysql # not compatible
query I rowsort label-4292
SELECT ( - SUM ( + 98 ) ) FROM tab2 cor0
----
-294

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4293
SELECT + MIN( + 90 ) AS col1, 98 + 48 + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
90
NULL

skipif mysql # not compatible
query II rowsort label-4293
SELECT + MIN ( + 90 ) AS col1, 98 + 48 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
90
NULL

query II rowsort
SELECT DISTINCT - col2 AS col0, col1 + 13 AS col0 FROM tab0
----
-10
34
-47
94
-99
14

onlyif mysql # DIV for integer division: 
query I rowsort label-4295
SELECT - col1 * + - col0 DIV - + col0 AS col1 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-4295
SELECT - col1 * + - col0 / - + col0 AS col1 FROM tab2
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4296
SELECT COUNT( * ) * - 71 AS col1 FROM tab0, tab1 AS cor0
----
-639

skipif mysql # not compatible
query I rowsort label-4296
SELECT COUNT ( * ) * - 71 AS col1 FROM tab0, tab1 AS cor0
----
-639

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4297
SELECT ALL CAST( NULL AS SIGNED ), col0 AS col1 FROM tab0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-4297
SELECT ALL CAST ( NULL AS INTEGER ), col0 AS col1 FROM tab0
----
NULL
15
NULL
87
NULL
97

query I rowsort
SELECT DISTINCT + col0 * + col2 * - 97 FROM tab1
----
-474912
-486455
-600236

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 41 col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4300
SELECT ALL + - 44 DIV - 96 * col1 * + 23 col2, 60 + 3 FROM tab0 AS cor0
----
0
63
0
63
0
63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4300
SELECT ALL + - 44 / - 96 * col1 * + 23 col2, 60 + 3 FROM tab0 AS cor0
----
0
63
0
63
0
63

query I rowsort
SELECT + - 10 AS col2 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
-10
-10
-10

query I rowsort
SELECT - col0 * + col2 * col2 AS col0 FROM tab2 AS cor0
----
-102400
-24334
-252300

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4303
SELECT ALL COUNT( DISTINCT + - col0 ) DIV - - 23 AS col2, 55 AS col2 FROM tab0 AS cor0
----
0
55

skipif mysql # not compatible
query II rowsort label-4303
SELECT ALL COUNT ( DISTINCT + - col0 ) / - - 23 AS col2, 55 AS col2 FROM tab0 AS cor0
----
0
55

query I rowsort
SELECT + 17 * - col2 AS col1 FROM tab0 cor0
----
-1683
-170
-799

onlyif mysql # aggregate syntax: 
query II rowsort label-4305
SELECT DISTINCT COUNT( * ) AS col0, - MIN( - col0 ) FROM tab0 AS cor0
----
3
97

skipif mysql # not compatible
query II rowsort label-4305
SELECT DISTINCT COUNT ( * ) AS col0, - MIN ( - col0 ) FROM tab0 AS cor0
----
3
97

query I rowsort
SELECT - 23 * - 3 FROM tab2
----
69
69
69

query I rowsort
SELECT ( 73 ) + - 7 * col1 AS col0 FROM tab1
----
-25
-256
38

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4308
SELECT DISTINCT col1 * CAST( NULL AS DECIMAL ) + - col1 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4308
SELECT DISTINCT col1 * CAST ( NULL AS REAL ) + - col1 AS col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4309
SELECT * FROM tab0 WHERE NOT - ( col1 ) >= - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4309
SELECT * FROM tab0 WHERE NOT - ( col1 ) >= - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT col1 * + 94 AS col0 FROM tab0 WHERE 67 = NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( col1 ) BETWEEN ( col2 ) AND ( + col0 )
----
46
51
23
64
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4312
SELECT DISTINCT COUNT( * ) * ( + 57 ) FROM tab1
----
171

skipif mysql # not compatible
query I rowsort label-4312
SELECT DISTINCT COUNT ( * ) * ( + 57 ) FROM tab1
----
171

query I rowsort
SELECT DISTINCT ( + col1 ) * col1 AS col2 FROM tab1
----
196
2209
25

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( col0 * 63 + col2 )
----

query I rowsort
SELECT 67 FROM tab0 WHERE NOT ( col2 * - col1 - col2 ) IN ( col0 )
----
67
67
67

query III rowsort
SELECT * FROM tab1 WHERE + 40 * - col0 IN ( + col1 / col0 )
----

query I rowsort
SELECT - 64 AS col2 FROM tab0 WHERE NOT col2 IS NULL
----
-64
-64
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-4318
SELECT - ( COUNT( ALL + col1 ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4318
SELECT - ( COUNT ( ALL + col1 ) ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4319
SELECT ALL 52 * COUNT( col2 * + col1 ) FROM tab0 WHERE NOT - col2 + col2 <= - ( 26 ) DIV 72
----
0

skipif mysql # not compatible
query I rowsort label-4319
SELECT ALL 52 * COUNT ( col2 * + col1 ) FROM tab0 WHERE NOT - col2 + col2 <= - ( 26 ) / 72
----
0

query I rowsort
SELECT DISTINCT col2 * col1 FROM tab2 WHERE NOT NULL = col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4321
SELECT ALL MIN( DISTINCT col0 ) * 57 FROM tab2
----
2622

skipif mysql # not compatible
query I rowsort label-4321
SELECT ALL MIN ( DISTINCT col0 ) * 57 FROM tab2
----
2622

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4322
SELECT DISTINCT COUNT( ( + ( CAST( NULL AS SIGNED ) ) ) ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4322
SELECT DISTINCT COUNT ( ( + ( CAST ( NULL AS INTEGER ) ) ) ) AS col0 FROM tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 68 IN ( 12 * col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4324
SELECT ALL - ( COUNT( - 64 ) ) * CAST( NULL AS SIGNED ) + - 67 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4324
SELECT ALL - ( COUNT ( - 64 ) ) * CAST ( NULL AS INTEGER ) + - 67 FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE + ( + col1 ) IS NULL
----

query I rowsort
SELECT col2 * - ( - 30 ) FROM tab2
----
1200
1740
690

query I rowsort
SELECT 4 * col0 FROM tab0 WHERE NOT NULL <= ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) >= + col0 * - 36 - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4329
SELECT + COUNT( * ) + 55 FROM tab2 cor0
----
58

skipif mysql # not compatible
query I rowsort label-4329
SELECT + COUNT ( * ) + 55 FROM tab2 cor0
----
58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( 68 )
----

query I rowsort
SELECT ALL 27 + 65 FROM tab0 AS cor0
----
92
92
92

query I rowsort
SELECT + 47 FROM tab0 AS cor0 WHERE col0 * col0 IS NOT NULL
----
47
47
47

query I rowsort
SELECT ( - col0 ) * + 37 FROM tab1 cor0 WHERE col0 * - 50 IS NOT NULL
----
-1887
-3145
-3367

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN - col2 / - col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 68 col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4336
SELECT DISTINCT ( + CAST( + 57 AS SIGNED ) ) + - 26 FROM tab0 cor0 WHERE NOT ( + col1 ) IS NULL
----
31

skipif mysql # not compatible
query I rowsort label-4336
SELECT DISTINCT ( + CAST ( + 57 AS INTEGER ) ) + - 26 FROM tab0 cor0 WHERE NOT ( + col1 ) IS NULL
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4337
SELECT COUNT( ALL col2 ) * - COUNT( * ) AS col0 FROM tab1 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4337
SELECT COUNT ( ALL col2 ) * - COUNT ( * ) AS col0 FROM tab1 cor0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-4338
SELECT - 50 DIV - col0 AS col2 FROM tab0 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-4338
SELECT - 50 / - col0 AS col2 FROM tab0 AS cor0
----
0
0
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4339
SELECT + - 37 DIV col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4339
SELECT + - 37 / col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4340
SELECT 14 * 20 + COUNT( * ) FROM tab1 AS cor0 WHERE NOT + 21 IS NULL
----
283

skipif mysql # not compatible
query I rowsort label-4340
SELECT 14 * 20 + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + 21 IS NULL
----
283

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 17 col1 FROM tab1 cor0
----
-17
-17
-17

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL < col0 * col2
----

query I rowsort
SELECT DISTINCT + ( + + col0 ) * - col2 AS col1 FROM tab0
----
-705
-870
-9603

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col0 + + col1 ) = + 60 * - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4345
SELECT DISTINCT COUNT( * ) * 51 FROM tab1
----
153

skipif mysql # not compatible
query I rowsort label-4345
SELECT DISTINCT COUNT ( * ) * 51 FROM tab1
----
153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4346
SELECT ALL + COUNT( * ) AS col0 FROM tab2 WHERE CAST( NULL AS SIGNED ) BETWEEN NULL AND ( - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-4346
SELECT ALL + COUNT ( * ) AS col0 FROM tab2 WHERE CAST ( NULL AS INTEGER ) BETWEEN NULL AND ( - col2 )
----
0

query I rowsort
SELECT DISTINCT + 74 * - col2 FROM tab1
----
-4366
-5032
-7104

query I rowsort
SELECT ALL + col1 * - + 34 FROM tab0
----
-2754
-34
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-4349
SELECT - COUNT( DISTINCT 25 ) AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-4349
SELECT - COUNT ( DISTINCT 25 ) AS col1 FROM tab0
----
-1

query I rowsort
SELECT DISTINCT col1 * 12 AS col2 FROM tab0
----
12
252
972

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4351
SELECT + ( - col2 ) * - CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE NOT ( - 99 ) IN ( col1 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4351
SELECT + ( - col2 ) * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE NOT ( - 99 ) IN ( col1 )
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4352
SELECT DISTINCT - COUNT( * ) * COUNT( * ) + - COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-12

skipif mysql # not compatible
query I rowsort label-4352
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) + - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-12

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 * - 75 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + + col2 + 63 AS col2 FROM tab1 AS cor0
----
122
131
159

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( - 66 + ( - col1 ) ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 * + 97 IS NOT NULL
----

query I rowsort
SELECT 25 * + col0 AS col1 FROM tab0
----
2175
2425
375

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( - 49 ) IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

onlyif mysql # aggregate syntax: 
query I rowsort label-4359
SELECT + COUNT( - - col0 ) * - - MIN( col1 ) + 38 FROM tab2
----
191

skipif mysql # not compatible
query I rowsort label-4359
SELECT + COUNT ( - - col0 ) * - - MIN ( col1 ) + 38 FROM tab2
----
191

query I rowsort
SELECT - - 32 + + 33 * + 34 AS col0 FROM tab1 AS cor0
----
1154
1154
1154

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 28 + col1 col2 FROM tab0 AS cor0
----
-27
-7
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4362
SELECT DISTINCT - MIN( DISTINCT + 60 ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4362
SELECT DISTINCT - MIN ( DISTINCT + 60 ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT col0 * + + col1 - col2 + - 7 FROM tab2 AS cor0
----
2316
4881
4960

query I rowsort
SELECT DISTINCT col0 + + - 56 AS col1 FROM tab1 AS cor0
----
-5
29
35

query I rowsort
SELECT ALL col0 - - col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
174
194
30

query I rowsort
SELECT ALL col0 + 24 FROM tab0
----
111
121
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4367
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT ( col1 ) NOT IN ( - col1 + 60 )
----

skipif mysql # not compatible
query I rowsort label-4367
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT ( col1 ) NOT IN ( - col1 + 60 )
----

query III rowsort
SELECT * FROM tab2 WHERE + 90 * col1 + - col1 < - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4369
SELECT col1 DIV ( - + col2 ) DIV + 67 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4369
SELECT col1 / ( - + col2 ) / + 67 AS col0 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4370
SELECT ALL 70 DIV + col0 AS col0, - col0 AS col2 FROM tab1
----
0
-85
0
-91
1
-51

skipif mysql # not compatible
query II rowsort label-4370
SELECT ALL 70 / + col0 AS col0, - col0 AS col2 FROM tab1
----
0
-85
0
-91
1
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4371
SELECT DISTINCT + COUNT( * ) DIV ( - COUNT( * ) ) AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-4371
SELECT DISTINCT + COUNT ( * ) / ( - COUNT ( * ) ) AS col0 FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4372
SELECT + ( MIN( DISTINCT 65 ) ) AS col1 FROM tab1 WHERE - + col2 IS NOT NULL
----
65

skipif mysql # not compatible
query I rowsort label-4372
SELECT + ( MIN ( DISTINCT 65 ) ) AS col1 FROM tab1 WHERE - + col2 IS NOT NULL
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4373
SELECT - COUNT( * ) FROM tab0 WHERE NULL IN ( col0 + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-4373
SELECT - COUNT ( * ) FROM tab0 WHERE NULL IN ( col0 + col1 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 IN ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4375
SELECT ALL ( + - 3 ) + + + COUNT( * ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4375
SELECT ALL ( + - 3 ) + + + COUNT ( * ) AS col1 FROM tab1
----
0

query I rowsort
SELECT ALL + col2 + + col1 + 36 AS col1 FROM tab0 AS cor0
----
136
164
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4377
SELECT DISTINCT col1 * col0 FROM tab2 AS cor0 WHERE 89 + CAST( NULL AS SIGNED ) - + + 91 + + 4 BETWEEN ( NULL ) AND 97
----

skipif mysql # not compatible
query I rowsort label-4377
SELECT DISTINCT col1 * col0 FROM tab2 AS cor0 WHERE 89 + CAST ( NULL AS INTEGER ) - + + 91 + + 4 BETWEEN ( NULL ) AND 97
----

query II rowsort
SELECT DISTINCT + col1 + - 23, + col0 * + col2 AS col1 FROM tab2 AS cor0
----
28
1058
44
4350
54
2560

onlyif mysql # aggregate syntax: 
query I rowsort label-4379
SELECT DISTINCT + SUM( ALL + col2 ) * 46 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4379
SELECT DISTINCT + SUM ( ALL + col2 ) * 46 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ALL + 73 AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

onlyif mysql # DIV for integer division: 
query I rowsort label-4381
SELECT + 19 DIV - col1 AS col2 FROM tab1 cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-4381
SELECT + 19 / - col1 AS col2 FROM tab1 cor0
----
-1
-3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4382
SELECT DISTINCT - COUNT( - + col1 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4382
SELECT DISTINCT - COUNT ( - + col1 ) FROM tab0 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( - 34 ) col1 FROM tab1 AS cor0
----
34
34
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4384
SELECT ALL + CAST( NULL AS SIGNED ) * + 74 * - CAST( NULL AS SIGNED ) * SUM( ALL - col1 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4384
SELECT ALL + CAST ( NULL AS INTEGER ) * + 74 * - CAST ( NULL AS INTEGER ) * SUM ( ALL - col1 ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 3 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE 42 + - col1 - col0 * 40 BETWEEN ( - ( col2 ) ) AND NULL
----

query II rowsort
SELECT ALL 50, col0 FROM tab1
----
50
51
50
85
50
91

onlyif mysql # aggregate syntax: 
query II rowsort label-4388
SELECT DISTINCT + 94 AS col1, MAX( DISTINCT col0 ) FROM tab0
----
94
97

skipif mysql # not compatible
query II rowsort label-4388
SELECT DISTINCT + 94 AS col1, MAX ( DISTINCT col0 ) FROM tab0
----
94
97

onlyif mysql # DIV for integer division: 
query II rowsort label-4389
SELECT - 79 AS col0, 7 DIV + ( + col1 ) col0 FROM tab2
----
-79
0
-79
0
-79
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4389
SELECT - 79 AS col0, 7 / + ( + col1 ) col0 FROM tab2
----
-79
0
-79
0
-79
0

query I rowsort
SELECT - col0 * - - 15 FROM tab1
----
-1275
-1365
-765

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col1 + 34 col2 FROM tab2 WHERE NOT ( + col0 + - col2 + - col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4392
SELECT ALL + MAX( - col1 ) FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4392
SELECT ALL + MAX ( - col1 ) FROM tab0 cor0
----
-1

query I rowsort
SELECT - - col2 + + ( - 81 ) AS col2 FROM tab1 cor0
----
-13
-22
15

query I rowsort
SELECT + + col0 + + 69 AS col1 FROM tab2 AS cor0
----
115
133
144

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4395
SELECT DISTINCT COUNT( * ) DIV - + 94 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4395
SELECT DISTINCT COUNT ( * ) / - + 94 AS col0 FROM tab1
----
0

query II rowsort
SELECT + col0 + + col0, - col2 AS col2 FROM tab0
----
174
-10
194
-99
30
-47

query I rowsort
SELECT DISTINCT col0 - + ( col0 ) AS col0 FROM tab2 WHERE NOT + ( + 87 ) + ( - col2 ) IS NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4398
SELECT ALL - COUNT( * ) DIV + SUM( - 60 ) + - 54 AS col2 FROM tab0 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-4398
SELECT ALL - COUNT ( * ) / + SUM ( - 60 ) + - 54 AS col2 FROM tab0 AS cor0
----
-54

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 27 + + col2 = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4400
SELECT ALL - MIN( DISTINCT - 20 ) - - COUNT( * ) * - 23 AS col2 FROM tab2 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-4400
SELECT ALL - MIN ( DISTINCT - 20 ) - - COUNT ( * ) * - 23 AS col2 FROM tab2 AS cor0
----
-49

query I rowsort
SELECT 16 - col1 AS col0 FROM tab0 AS cor0
----
-5
-65
15

query II rowsort
SELECT DISTINCT + col0 * - col0 - + + col0, col2 FROM tab0
----
-240
47
-7656
10
-9506
99

query I rowsort
SELECT ALL - - col2 * - col2 FROM tab1 WHERE NOT NULL <= - col1 * col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4404
SELECT DISTINCT * FROM tab2 WHERE NOT - - CAST( col0 AS SIGNED ) * col0 + - col0 * - col0 * col1 * - 26 + 94 NOT BETWEEN col0 * 58 AND col0 + 86
----

skipif mysql # not compatible
query III rowsort label-4404
SELECT DISTINCT * FROM tab2 WHERE NOT - - CAST ( col0 AS INTEGER ) * col0 + - col0 * - col0 * col1 * - 26 + 94 NOT BETWEEN col0 * 58 AND col0 + 86
----

query II rowsort
SELECT ALL 3, + col1 AS col0 FROM tab0
----
3
1
3
21
3
81

query I rowsort
SELECT - col1 + col0 * + - col0 AS col2 FROM tab2
----
-2167
-4173
-5692

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 NOT BETWEEN - col2 * + 99 * 64 AND - + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 18 * col2 + 22 col0 FROM tab0
----
1804
202
868

query I rowsort
SELECT - col0 * + col1 + - 13 AS col0 FROM tab1
----
-4290
-438
-727

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4410
SELECT - MIN( + + col0 ) + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4410
SELECT - MIN ( + + col0 ) + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT - + col0 * + col0 * ( col0 ) AS col2 FROM tab2 cor0
----
-262144
-421875
-97336

onlyif mysql # DIV for integer division: 
query I rowsort label-4412
SELECT ALL - - 14 DIV + col1 FROM tab0 AS cor0
----
0
0
14

skipif mysql # not compatible
query I rowsort label-4412
SELECT ALL - - 14 / + col1 FROM tab0 AS cor0
----
0
0
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4413
SELECT + COUNT( * ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-4413
SELECT + COUNT ( * ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4414
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) > col0
----

skipif mysql # not compatible
query III rowsort label-4414
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) > col0
----

query I rowsort
SELECT - 85 * + col2 AS col1 FROM tab1 AS cor0
----
-5015
-5780
-8160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 * + - 53 + - ( - col0 ) col2, col1 * col1 AS col1 FROM tab2 AS cor0 WHERE NOT - col2 >= - col0
----

query I rowsort
SELECT col0 * 53 AS col0 FROM tab1 AS cor0
----
2703
4505
4823

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 * - col0 <> - + 97 + + col2 + + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4419
SELECT + COUNT( * ) + - MAX( ALL col0 ) AS col2 FROM tab2
----
-72

skipif mysql # not compatible
query I rowsort label-4419
SELECT + COUNT ( * ) + - MAX ( ALL col0 ) AS col2 FROM tab2
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4420
SELECT + col1 * ( col2 ) + CAST( - + col2 AS SIGNED ), col1 FROM tab1
----
1248
14
236
5
3128
47

skipif mysql # not compatible
query II rowsort label-4420
SELECT + col1 * ( col2 ) + CAST ( - + col2 AS INTEGER ), col1 FROM tab1
----
1248
14
236
5
3128
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4421
SELECT 77 * - - col2 + - CAST( NULL AS SIGNED ) + + 95 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4421
SELECT 77 * - - col2 + - CAST ( NULL AS INTEGER ) + + 95 AS col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 NOT BETWEEN - col0 * - 93 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4423
SELECT ALL 84 * - - CAST( NULL AS SIGNED ) + + col1, + 36 AS col2 FROM tab2
----
NULL
36
NULL
36
NULL
36

skipif mysql # not compatible
query II rowsort label-4423
SELECT ALL 84 * - - CAST ( NULL AS INTEGER ) + + col1, + 36 AS col2 FROM tab2
----
NULL
36
NULL
36
NULL
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4424
SELECT + MAX( + col1 ) AS col1 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-4424
SELECT + MAX ( + col1 ) AS col1 FROM tab0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4425
SELECT + COUNT( - col0 ) AS col0 FROM tab2 AS cor0 WHERE col0 BETWEEN + 90 AND + col0 * + - 67
----
0

skipif mysql # not compatible
query I rowsort label-4425
SELECT + COUNT ( - col0 ) AS col0 FROM tab2 AS cor0 WHERE col0 BETWEEN + 90 AND + col0 * + - 67
----
0

query II rowsort
SELECT DISTINCT + - 80 * - col0 * - col0 AS col0, col0 AS col2 FROM tab2 cor0
----
-169280
46
-327680
64
-450000
75

query I rowsort
SELECT ALL + col1 + + - 25 * + - col0 * 22 AS col0 FROM tab0
----
47871
53351
8331

onlyif mysql # aggregate syntax: 
query I rowsort label-4428
SELECT ALL ( + MAX( ALL 21 ) ) FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-4428
SELECT ALL ( + MAX ( ALL 21 ) ) FROM tab0
----
21

query I rowsort
SELECT DISTINCT + + col2 + + col2 AS col2 FROM tab2 cor0
----
116
46
80

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NULL ) NOT BETWEEN + col1 + - + col0 * + 72 * + 66 AND 68
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4431
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 - 22 * col1 * - CAST( NULL AS DECIMAL ) <= col2
----

skipif mysql # not compatible
query III rowsort label-4431
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 - 22 * col1 * - CAST ( NULL AS REAL ) <= col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4432
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) NOT IN ( + 52 )
----

skipif mysql # not compatible
query III rowsort label-4432
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) NOT IN ( + 52 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 45 / 73 + + col1 col0 FROM tab1 AS cor0 WHERE - 86 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 95 + - col0 <= + col2
----
64
77
40
75
67
58

query I rowsort
SELECT ALL ( - ( + col0 ) ) FROM tab0
----
-15
-87
-97

query I rowsort
SELECT ( 72 ) FROM tab1 WHERE NOT col2 * - - col1 * 33 / + - 11 <= NULL
----

query II rowsort
SELECT ALL ( 33 ) AS col0, col2 FROM tab1
----
33
59
33
68
33
96

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 > col1 - col1
----

query I rowsort
SELECT + col1 AS col1 FROM tab2 cor0 WHERE NOT 5 * - + 13 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4440
SELECT - + COUNT( ALL 94 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4440
SELECT - + COUNT ( ALL 94 ) FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4441
SELECT ALL - CAST( MAX( - 3 ) AS SIGNED ) col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4441
SELECT ALL - CAST ( MAX ( - 3 ) AS INTEGER ) col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT + ( - ( + - 76 ) ) AS col2 FROM tab2
----
76

query I rowsort
SELECT - col0 * + col0 + col2 FROM tab1 cor0
----
-2505
-7166
-8213

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4444
SELECT ALL + SUM( DISTINCT - + col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT + CAST( + col1 AS SIGNED ) = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4444
SELECT ALL + SUM ( DISTINCT - + col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT + CAST ( + col1 AS INTEGER ) = NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 72, - col2 * - col1 col0 FROM tab0 AS cor0
----
72
210
72
3807
72
99

query I rowsort
SELECT + - col0 * + 31 FROM tab0 AS cor0
----
-2697
-3007
-465

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + - 90 ) col1 FROM tab1
----
-90
-90
-90

query I rowsort
SELECT ALL col0 - 22 + - 42 * + col0 FROM tab2 WHERE NULL IS NULL
----
-1908
-2646
-3097

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN col2 / + 17 AND + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 3 ) col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

onlyif mysql # aggregate syntax: 
query I rowsort label-4451
SELECT SUM( ALL - + 69 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-621

skipif mysql # not compatible
query I rowsort label-4451
SELECT SUM ( ALL - + 69 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-621

onlyif mysql # aggregate syntax: 
query I rowsort label-4452
SELECT DISTINCT - SUM( - + col1 ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-4452
SELECT DISTINCT - SUM ( - + col1 ) FROM tab0
----
103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4453
SELECT - CAST( NULL AS SIGNED ) * - COUNT( * ) * + CAST( NULL AS SIGNED ) col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4453
SELECT - CAST ( NULL AS INTEGER ) * - COUNT ( * ) * + CAST ( NULL AS INTEGER ) col2 FROM tab0 cor0
----
NULL

query I rowsort
SELECT + col2 * - - col0 - + col0 AS col1 FROM tab0 cor0
----
690
783
9506

query I rowsort
SELECT ALL + col0 + + + 74 FROM tab0 AS cor0
----
161
171
89

query I rowsort
SELECT + - col2 - - - col2 AS col2 FROM tab0 AS cor0
----
-198
-20
-94

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 * + ( - 77 ) IS NULL
----

query I rowsort
SELECT - + 47 - - + col0 FROM tab2 AS cor0
----
-1
17
28

query I rowsort
SELECT - + 98 - - col1 FROM tab0 AS cor0
----
-17
-77
-97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 + col0 * + 74 * + col1 IS NULL
----

query II rowsort
SELECT - col2 AS col1, 60 * - col1 * - 81 * + col0 FROM tab1
----
-59
2065500
-68
20786220
-96
3470040

query II rowsort
SELECT ALL col1 AS col0, col1 * + ( + + col1 ) FROM tab0
----
1
1
21
441
81
6561

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4463
SELECT - MAX( - + CAST( - - col0 AS SIGNED ) ) col0 FROM tab1
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4463
SELECT - MAX ( - + CAST ( - - col0 AS INTEGER ) ) col0 FROM tab1
----
51

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN ( - - col2 ) + 3 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4465
SELECT ( - + 70 ) * + COUNT( * ) FROM tab0
----
-210

skipif mysql # not compatible
query I rowsort label-4465
SELECT ( - + 70 ) * + COUNT ( * ) FROM tab0
----
-210

query I rowsort
SELECT ALL + col1 * 83 FROM tab2
----
4233
5561
6391

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4467
SELECT DISTINCT - 72 * - + CAST( NULL AS SIGNED ) - - + 93 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4467
SELECT DISTINCT - 72 * - + CAST ( NULL AS INTEGER ) - - + 93 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4468
SELECT CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4468
SELECT CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4469
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND - 1
----
0

skipif mysql # not compatible
query I rowsort label-4469
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND - 1
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 62 * - col1 BETWEEN - col1 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4471
SELECT ALL - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4471
SELECT ALL - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE col0 IS NULL
----
0

query I rowsort
SELECT + 26 FROM tab2 AS cor0 WHERE NOT col1 * - + col0 * - + col1 - - + col1 IS NULL
----
26
26
26

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 * - - 8 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - ( + col0 ) FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

query II rowsort
SELECT DISTINCT col2 AS col2, col0 AS col1 FROM tab2
----
23
46
40
64
58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4476
SELECT DISTINCT COUNT( * ) * + + COUNT( * ) AS col1 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-4476
SELECT DISTINCT COUNT ( * ) * + + COUNT ( * ) AS col1 FROM tab0
----
9

query III rowsort
SELECT ALL * FROM tab0 WHERE ( 29 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4478
SELECT COUNT( * ) * - COUNT( * ) col2 FROM tab2
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4478
SELECT COUNT ( * ) * - COUNT ( * ) col2 FROM tab2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4479
SELECT MIN( DISTINCT + + col1 ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-4479
SELECT MIN ( DISTINCT + + col1 ) FROM tab1
----
5

query II rowsort
SELECT 67 AS col0, col1 FROM tab0
----
67
1
67
21
67
81

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 > NULL
----

query I rowsort
SELECT DISTINCT col2 + 64 AS col2 FROM tab0
----
111
163
74

query I rowsort
SELECT ALL 22 + + col0 - + col0 AS col0 FROM tab1 AS cor0
----
22
22
22

query I rowsort
SELECT + + 85 - + 35 * col0 FROM tab2 AS cor0
----
-1525
-2155
-2540

query I rowsort
SELECT DISTINCT 32 * - col0 AS col0 FROM tab0
----
-2784
-3104
-480

query I rowsort
SELECT - + col2 + - 63 FROM tab0 AS cor0
----
-110
-162
-73

query I rowsort
SELECT + + 7 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
7
7
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4488
SELECT DISTINCT - + 78 - + CAST( - + 66 AS SIGNED ) FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-4488
SELECT DISTINCT - + 78 - + CAST ( - + 66 AS INTEGER ) FROM tab0 AS cor0
----
-12

query I rowsort
SELECT - - ( - 33 ) AS col0 FROM tab0 AS cor0
----
-33
-33
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-4490
SELECT + MAX( + 54 ) FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-4490
SELECT + MAX ( + 54 ) FROM tab1 AS cor0
----
54

query I rowsort
SELECT + - col2 * - col2 - 37 FROM tab2 AS cor0
----
1563
3327
492

query I rowsort
SELECT - - col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL < - 70
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 4 col1 FROM tab2 AS cor0
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4494
SELECT DISTINCT - COUNT( - 60 ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND CAST( + + col1 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-4494
SELECT DISTINCT - COUNT ( - 60 ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND CAST ( + + col1 AS INTEGER )
----
0

query I rowsort
SELECT ALL ( - col2 ) * + col2 * - col2 FROM tab1 AS cor0
----
205379
314432
884736

query I rowsort
SELECT DISTINCT + col0 * - col2 * - - col1 AS col1 FROM tab0
----
-18270
-57105
-9603

query II rowsort
SELECT col0, - col1 * + 51 AS col0 FROM tab0
----
15
-4131
87
-1071
97
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-4498
SELECT ALL - 1, - COUNT( * ) AS col1 FROM tab0
----
-1
-3

skipif mysql # not compatible
query II rowsort label-4498
SELECT ALL - 1, - COUNT ( * ) AS col1 FROM tab0
----
-1
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4499
SELECT + 1 AS col2, + CAST( NULL AS SIGNED ) col1 FROM tab1
----
1
NULL
1
NULL
1
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4499
SELECT + 1 AS col2, + CAST ( NULL AS INTEGER ) col1 FROM tab1
----
1
NULL
1
NULL
1
NULL

query I rowsort
SELECT ALL + col0 * - - 31 AS col1 FROM tab0
----
2697
3007
465

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab0 WHERE NOT - 98 IS NULL
----
15
87
97

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col2 * - + 72 + + col1 NOT IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4503
SELECT ALL + + 75 * - 9 - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-678

skipif mysql # not compatible
query I rowsort label-4503
SELECT ALL + + 75 * - 9 - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-678

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - 61 * - + 87 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-4505
SELECT DISTINCT + COUNT( * ) AS col2, + 21 FROM tab2 AS cor0
----
3
21

skipif mysql # not compatible
query II rowsort label-4505
SELECT DISTINCT + COUNT ( * ) AS col2, + 21 FROM tab2 AS cor0
----
3
21

query I rowsort
SELECT col0 * 61 * col1 + - + 67 FROM tab2 AS cor0
----
143039
300541
306458

onlyif mysql # aggregate syntax: 
query I rowsort label-4507
SELECT DISTINCT - COUNT( * ) * - 89 AS col2 FROM tab1 AS cor0
----
267

skipif mysql # not compatible
query I rowsort label-4507
SELECT DISTINCT - COUNT ( * ) * - 89 AS col2 FROM tab1 AS cor0
----
267

query I rowsort
SELECT + col2 + + col2 FROM tab2 AS cor0 WHERE NOT NULL < - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4509
SELECT ALL - col2 * + + CAST( ( - col0 ) AS SIGNED ) AS col0 FROM tab0
----
705
870
9603

skipif mysql # not compatible
query I rowsort label-4509
SELECT ALL - col2 * + + CAST ( ( - col0 ) AS INTEGER ) AS col0 FROM tab0
----
705
870
9603

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 63 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 61 NOT IN ( 12, - col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4512
SELECT AVG ( + + CAST( NULL AS SIGNED ) ) + + COUNT( * ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4512
SELECT AVG ( + + CAST ( NULL AS INTEGER ) ) + + COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT ALL - col1 * - col0 * - + col2 * - col0 AS col0 FROM tab1 AS cor0
----
2131375
26466076
3495744

query I rowsort
SELECT 78 AS col1 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
78
78
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4515
SELECT DISTINCT - CAST( ( - 26 ) AS SIGNED ) * + col0 + + 95 FROM tab2
----
1291
1759
2045

skipif mysql # not compatible
query I rowsort label-4515
SELECT DISTINCT - CAST ( ( - 26 ) AS INTEGER ) * + col0 + + 95 FROM tab2
----
1291
1759
2045

query III rowsort
SELECT DISTINCT col0 + - col2 AS col0, + 79 * + col1 * - 91, col0 FROM tab1
----
9 values hashing to 9b28bf4bc7f7f16f08f1d27f201b2e79

onlyif mysql # DIV for integer division: 
query II rowsort label-4517
SELECT - 75 + col1 DIV + col0 AS col1, - col2 * - + col0 col1 FROM tab1
----
-75
4896
-75
5015
-75
6188

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4517
SELECT - 75 + col1 / + col0 AS col1, - col2 * - + col0 col1 FROM tab1
----
-75
4896
-75
5015
-75
6188

query I rowsort
SELECT - - ( 62 ) FROM tab1 AS cor0
----
62
62
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4519
SELECT AVG ( CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4519
SELECT AVG ( CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query II rowsort
SELECT + + col2 AS col1, col0 + - col1 FROM tab1 AS cor0
----
59
80
68
44
96
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4521
SELECT DISTINCT MIN( ALL + ( + col2 ) ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-4521
SELECT DISTINCT MIN ( ALL + ( + col2 ) ) FROM tab0 AS cor0
----
10

query II rowsort
SELECT - 24, - col1 AS col2 FROM tab1 AS cor0
----
-24
-14
-24
-47
-24
-5

query II rowsort
SELECT - col2 AS col1, 11 FROM tab2 AS cor0
----
-23
11
-40
11
-58
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4524
SELECT ALL + 54 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4524
SELECT ALL + 54 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4525
SELECT DISTINCT - MAX( ( CAST( 53 AS SIGNED ) ) ) FROM tab2 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-4525
SELECT DISTINCT - MAX ( ( CAST ( 53 AS INTEGER ) ) ) FROM tab2 AS cor0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-4526
SELECT ALL + - COUNT( DISTINCT - - col2 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4526
SELECT ALL + - COUNT ( DISTINCT - - col2 ) AS col1 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN + + 21 * + 53 + - col2 * + ( - - 91 ) AND col0 * col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4528
SELECT DISTINCT - COUNT( - 68 ) FROM tab2 WHERE NOT + CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) = col2 * - col2
----
0

skipif mysql # not compatible
query I rowsort label-4528
SELECT DISTINCT - COUNT ( - 68 ) FROM tab2 WHERE NOT + CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) = col2 * - col2
----
0

query I rowsort
SELECT - col2 AS col0 FROM tab2 WHERE NOT + - col1 + + col0 IS NULL
----
-23
-40
-58

query I rowsort
SELECT - - col2 * 70 FROM tab1 AS cor0
----
4130
4760
6720

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 NOT BETWEEN NULL AND - 92 + 63
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 60 col1 FROM tab1 AS cor0
----
-60
-60
-60

query II rowsort
SELECT ALL + - ( - 73 ), - col2 FROM tab2 WHERE NULL > 34
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL >= - col2 * + 43 / - - col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 = - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - + 68 col2 FROM tab2 AS cor0
----
-119
-135
-145

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4537
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + + CAST( - col2 AS SIGNED ) * + col0 / + + 76 - + col1 > NULL )
----

skipif mysql # not compatible
query III rowsort label-4537
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + + CAST ( - col2 AS INTEGER ) * + col0 / + + 76 - + col1 > NULL )
----

query I rowsort
SELECT + 73 + - col2 FROM tab2 AS cor0
----
15
33
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4539
SELECT + - CAST( + COUNT( * ) AS SIGNED ) + + - 10 * 15 AS col1 FROM tab1 cor0
----
-153

skipif mysql # not compatible
query I rowsort label-4539
SELECT + - CAST ( + COUNT ( * ) AS INTEGER ) + + - 10 * 15 AS col1 FROM tab1 cor0
----
-153

query I rowsort
SELECT ALL + + col0 * ( + 22 ) AS col0 FROM tab1 AS cor0
----
1122
1870
2002

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4541
SELECT col2, - CAST( NULL AS SIGNED ) * col1 - col0 / + col1 * + col0 + + - col0 - + 86 FROM tab2
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-4541
SELECT col2, - CAST ( NULL AS INTEGER ) * col1 - col0 / + col1 * + col0 + + - col0 - + 86 FROM tab2
----
23
NULL
40
NULL
58
NULL

query I rowsort
SELECT col1 * - col2 * - + col1 * + col0 * - col1 FROM tab0
----
-374665905
-8057070
-9603

query II rowsort
SELECT ALL 15 AS col0, - col2 AS col2 FROM tab2
----
15
-23
15
-40
15
-58

query I rowsort
SELECT col1 * col0 * - + col0 FROM tab0
----
-158949
-18225
-9409

onlyif mysql # DIV for integer division: 
query I rowsort label-4545
SELECT ALL + col1 DIV + col0 AS col1 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4545
SELECT ALL + col1 / + col0 AS col1 FROM tab2
----
0
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4546
SELECT + col1 DIV + col2 col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4546
SELECT + col1 / + col2 col1 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4547
SELECT col2 + - col0 * 7 DIV - col1 FROM tab1
----
121
178
81

skipif mysql # not compatible
query I rowsort label-4547
SELECT col2 + - col0 * 7 / - col1 FROM tab1
----
121
178
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4548
SELECT - COUNT( * ) * + COUNT( * ) + COUNT( * ) FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-4548
SELECT - COUNT ( * ) * + COUNT ( * ) + COUNT ( * ) FROM tab2
----
-6

query I rowsort
SELECT ALL - 17 * - + col0 - 62 + - col1 + + col2 AS col1 FROM tab1
----
1437
1506
887

query I rowsort
SELECT col1 * + - col1 AS col2 FROM tab2
----
-2601
-4489
-5929

query I rowsort
SELECT + col0 * + + col0 + + col2 FROM tab1 cor0
----
2697
7284
8349

onlyif mysql # aggregate syntax: 
query I rowsort label-4552
SELECT ALL COUNT( * ) col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) > ( NULL )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4552
SELECT ALL COUNT ( * ) col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) > ( NULL )
----
0

query II rowsort
SELECT col0 * + 71, + col1 FROM tab1 AS cor0 WHERE NOT - col2 <= col2 * + col1 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4554
SELECT ALL + COUNT( * ) * + + MAX( ALL - - col0 ) FROM tab2 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-4554
SELECT ALL + COUNT ( * ) * + + MAX ( ALL - - col0 ) FROM tab2 AS cor0
----
225

query I rowsort
SELECT + 69 * - 31 FROM tab2 AS cor0
----
-2139
-2139
-2139

onlyif mysql # aggregate syntax: 
query II rowsort label-4556
SELECT + 77 * COUNT( * ) AS col0, - COUNT( * ) AS col0 FROM tab0 cor0
----
231
-3

skipif mysql # not compatible
query II rowsort label-4556
SELECT + 77 * COUNT ( * ) AS col0, - COUNT ( * ) AS col0 FROM tab0 cor0
----
231
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 42 col2 FROM tab1 AS cor0
----
42
42
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 79 col2 FROM tab1
----
-79
-79
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-4559
SELECT DISTINCT COUNT( * ) AS col2, 72 AS col0 FROM tab0
----
3
72

skipif mysql # not compatible
query II rowsort label-4559
SELECT DISTINCT COUNT ( * ) AS col2, 72 AS col0 FROM tab0
----
3
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4560
SELECT - COUNT( * ) * - MIN( ALL col0 ) AS col1 FROM tab1 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-4560
SELECT - COUNT ( * ) * - MIN ( ALL col0 ) AS col1 FROM tab1 AS cor0
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-4561
SELECT SUM( ALL 46 ) FROM tab0 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-4561
SELECT SUM ( ALL 46 ) FROM tab0 AS cor0
----
138

query I rowsort
SELECT + 48 + + + col0 FROM tab2 AS cor0
----
112
123
94

onlyif mysql # DIV for integer division: 
query I rowsort label-4563
SELECT ALL - 67 * + col1 DIV - col1 + + col1 + 27 FROM tab2 AS cor0
----
145
161
171

skipif mysql # not compatible
query I rowsort label-4563
SELECT ALL - 67 * + col1 / - col1 + + col1 + 27 FROM tab2 AS cor0
----
145
161
171

query II rowsort
SELECT col0 + - col2 AS col0, - col0 FROM tab2
----
17
-75
23
-46
24
-64

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( - col0 * - - col1, col2 )
----

query I rowsort
SELECT ALL - ( col2 ) * - + col2 + col2 + col2 AS col1 FROM tab2 AS cor0
----
1680
3480
575

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NULL <= - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4568
SELECT + 3 + + - COUNT( DISTINCT - + col0 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4568
SELECT + 3 + + - COUNT ( DISTINCT - + col0 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
3

query I rowsort
SELECT + col0 * + - 85 - + col0 AS col1 FROM tab1 AS cor0
----
-4386
-7310
-7826

query I rowsort
SELECT ALL - + col0 AS col2 FROM tab1 WHERE NOT NULL > - col0 * - col1
----

query I rowsort
SELECT col0 + + + col1 AS col2 FROM tab0
----
108
96
98

onlyif mysql # DIV for integer division: 
query I rowsort label-4572
SELECT 89 DIV - col1 FROM tab1 AS cor0
----
-1
-17
-6

skipif mysql # not compatible
query I rowsort label-4572
SELECT 89 / - col1 FROM tab1 AS cor0
----
-1
-17
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 40 col2 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
40
40
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4574
SELECT DISTINCT - - COUNT( * ) - - - ( 9 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-4574
SELECT DISTINCT - - COUNT ( * ) - - - ( 9 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4575
SELECT + COUNT( * ) * + MAX( DISTINCT - ( - - col1 ) ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4575
SELECT + COUNT ( * ) * + MAX ( DISTINCT - ( - - col1 ) ) AS col1 FROM tab0 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col1 * col2 * - ( - col0 ) + + col0 col2 FROM tab2 AS cor0
----
-12615616
-21858675
-2482022

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col2 * + 69 col2, + col0 FROM tab1 AS cor0
----
4071
85
4692
91
6624
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4578
SELECT MAX( 13 ) AS col1 FROM tab2 cor0
----
13

skipif mysql # not compatible
query I rowsort label-4578
SELECT MAX ( 13 ) AS col1 FROM tab2 cor0
----
13

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( NOT NULL IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4580
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL = - + CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-4580
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL = - + CAST ( NULL AS REAL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4581
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 WHERE col2 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-4581
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 WHERE col2 <> NULL
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 + 30 IS NOT NULL
----

query I rowsort
SELECT - + col1 FROM tab0 WHERE NOT + col0 <= NULL
----

query II rowsort
SELECT ALL 53 * + 79 AS col2, - col1 + col0 FROM tab2
----
4187
-13
4187
-5
4187
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4585
SELECT CAST( NULL AS SIGNED ) * + - 20 * 8 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4585
SELECT CAST ( NULL AS INTEGER ) * + - 20 * 8 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 + + 79 AS col0 FROM tab2 AS cor0
----
130
146
156

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4587
SELECT - 54 DIV - COUNT( * ) FROM tab1
----
18

skipif mysql # not compatible
query I rowsort label-4587
SELECT - 54 / - COUNT ( * ) FROM tab1
----
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 66 + + - col0 col1 FROM tab0
----
-21
-31
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4589
SELECT + ( SUM( ALL - 65 ) ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4589
SELECT + ( SUM ( ALL - 65 ) ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

query I rowsort
SELECT - 47 + + 86 FROM tab2 AS cor0
----
39
39
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4591
SELECT - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4591
SELECT - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE col0 IS NULL
----
0

query I rowsort
SELECT ALL 12 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
12
12
12

query I rowsort
SELECT + + 5 + - col2 * - col2 * + col2 FROM tab1 AS cor0
----
205384
314437
884741

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 50 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4595
SELECT DISTINCT - ( - - 11 ) * COUNT( * ) * + 55 - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-1818

skipif mysql # not compatible
query I rowsort label-4595
SELECT DISTINCT - ( - - 11 ) * COUNT ( * ) * + 55 - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-1818

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 col2 FROM tab2 AS cor0 WHERE col2 IS NULL
----

query II rowsort
SELECT ALL + + col1 AS col0, col0 FROM tab0 AS cor0
----
1
97
21
87
81
15

query I rowsort
SELECT + 25 * + 58 FROM tab1
----
1450
1450
1450

onlyif mysql # aggregate syntax: 
query II rowsort label-4599
SELECT ALL - COUNT( * ) - + 11 - MIN( - col1 ), 34 AS col1 FROM tab0
----
67
34

skipif mysql # not compatible
query II rowsort label-4599
SELECT ALL - COUNT ( * ) - + 11 - MIN ( - col1 ), 34 AS col1 FROM tab0
----
67
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4600
SELECT ALL - MAX( DISTINCT + - ( - col2 ) ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-58

skipif mysql # not compatible
query I rowsort label-4600
SELECT ALL - MAX ( DISTINCT + - ( - col2 ) ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-58

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - 72 * - 73 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-4602
SELECT ALL - COUNT( * ) col1, + COUNT( * ) FROM tab2 WHERE col2 IS NULL
----
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4602
SELECT ALL - COUNT ( * ) col1, + COUNT ( * ) FROM tab2 WHERE col2 IS NULL
----
0
0

query III rowsort
SELECT * FROM tab1 WHERE ( - 87 ) + 7 - 84 + - 27 NOT IN ( + ( + 33 ) * 50 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 20 * - col0 col2 FROM tab1 WHERE - col2 < NULL
----

query I rowsort
SELECT DISTINCT + col1 * - + col2 FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-4606
SELECT ALL + COUNT( 65 ) - + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-4606
SELECT ALL + COUNT ( 65 ) - + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
0

query I rowsort
SELECT ALL + 26 * - + col1 AS col2 FROM tab2
----
-1326
-1742
-2002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 15 col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4609
SELECT DISTINCT COUNT( * ) * - - COUNT( * ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4609
SELECT DISTINCT COUNT ( * ) * - - COUNT ( * ) FROM tab0 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4610
SELECT - CAST( 97 AS SIGNED ) * + 44 AS col2 FROM tab1 AS cor0
----
-4268
-4268
-4268

skipif mysql # not compatible
query I rowsort label-4610
SELECT - CAST ( 97 AS INTEGER ) * + 44 AS col2 FROM tab1 AS cor0
----
-4268
-4268
-4268

query II rowsort
SELECT ALL col0 AS col1, col2 + - col0 FROM tab1 AS cor0
----
51
45
85
-26
91
-23

onlyif mysql # DIV for integer division: 
query II rowsort label-4612
SELECT col1 * + + col0 - + - 49 AS col2, + col0 DIV - + col2 AS col2 FROM tab2 AS cor0
----
2395
-2
4977
-1
5074
-1

skipif mysql # not compatible
query II rowsort label-4612
SELECT col1 * + + col0 - + - 49 AS col2, + col0 / - + col2 AS col2 FROM tab2 AS cor0
----
2395
-2
4977
-1
5074
-1

query I rowsort
SELECT DISTINCT - + col1 * - + col0 AS col0 FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-4614
SELECT - - ( - + SUM( - 44 ) ) FROM tab1 AS cor0
----
132

skipif mysql # not compatible
query I rowsort label-4614
SELECT - - ( - + SUM ( - 44 ) ) FROM tab1 AS cor0
----
132

query II rowsort
SELECT DISTINCT + col2 AS col1, col2 AS col2 FROM tab1
----
59
59
68
68
96
96

query I rowsort
SELECT ALL + 36 * - - col1 FROM tab1
----
1692
180
504

query I rowsort
SELECT ALL col2 AS col0 FROM tab2 WHERE ( col0 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4618
SELECT * FROM tab0 WHERE CAST( + 80 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4618
SELECT * FROM tab0 WHERE CAST ( + 80 AS INTEGER ) IS NULL
----

query I rowsort
SELECT - col0 FROM tab0 WHERE ( - 24 ) * + col2 * - 23 * - - col2 * + + col1 NOT BETWEEN + col0 AND - col1
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-4620
SELECT ALL - COUNT( * ) AS col2, 93 * + + 40 FROM tab2
----
-3
3720

skipif mysql # not compatible
query II rowsort label-4620
SELECT ALL - COUNT ( * ) AS col2, 93 * + + 40 FROM tab2
----
-3
3720

onlyif mysql # aggregate syntax: 
query I rowsort label-4621
SELECT DISTINCT - MAX( - col1 ) + 89 FROM tab0 cor0
----
90

skipif mysql # not compatible
query I rowsort label-4621
SELECT DISTINCT - MAX ( - col1 ) + 89 FROM tab0 cor0
----
90

query I rowsort
SELECT + col1 * 2 + col2 FROM tab0 AS cor0
----
101
209
52

onlyif mysql # DIV for integer division: 
query I rowsort label-4623
SELECT DISTINCT col2 DIV - col1 * 67 + - col0 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-4623
SELECT DISTINCT col2 / - col1 * 67 + - col0 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT ALL ( 76 ) + + 93 FROM tab2 AS cor0
----
169
169
169

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4625
SELECT - + CAST( NULL AS SIGNED ) / - col1 + + + col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4625
SELECT - + CAST ( NULL AS INTEGER ) / - col1 + + + col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE + + ( col2 ) NOT BETWEEN - col0 AND 6 * + col2 + - col2
----

query I rowsort
SELECT DISTINCT + 66 * - 35 + + col2 FROM tab1 AS cor0
----
-2214
-2242
-2251

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4628
SELECT CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4628
SELECT CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4629
SELECT ALL * FROM tab1 AS cor0 WHERE ( + - 72 ) >= + 5 * CAST( + 28 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4629
SELECT ALL * FROM tab1 AS cor0 WHERE ( + - 72 ) >= + 5 * CAST ( + 28 AS INTEGER )
----

query I rowsort
SELECT - ( ( - col0 ) ) - + + col1 + - 56 AS col1 FROM tab1 cor0
----
-12
-19
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4631
SELECT - + col1 - CAST( col1 AS SIGNED ) col0 FROM tab0 AS cor0
----
-162
-2
-42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4631
SELECT - + col1 - CAST ( col1 AS INTEGER ) col0 FROM tab0 AS cor0
----
-162
-2
-42

query I rowsort
SELECT DISTINCT - - 4 FROM tab0 AS cor0 WHERE + 43 * col0 IS NULL
----

query I rowsort
SELECT DISTINCT 2 - - + col0 * 61 * - - col0 AS col2 FROM tab2 AS cor0
----
129078
249858
343127

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) > - 75 + col0 + - col0 + - col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL = - + 79
----

query I rowsort
SELECT col1 FROM tab1 WHERE NOT col2 + + 44 BETWEEN NULL AND + 49 * col2 - - - col2 * + col1 + + 38
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 + - 7 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4638
SELECT DISTINCT CAST( NULL AS SIGNED ), col1 col0 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-4638
SELECT DISTINCT CAST ( NULL AS INTEGER ), col1 col0 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

query I rowsort
SELECT - - 3 * + col2 AS col1 FROM tab0 AS cor0
----
141
297
30

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 47 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 * - - 47 AS col0 FROM tab1 AS cor0
----
2209
235
658

query II rowsort
SELECT - + col1 * - col1, col2 FROM tab1 cor0
----
196
96
2209
68
25
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4643
SELECT DISTINCT - + SUM( - col1 ) AS col2 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-4643
SELECT DISTINCT - + SUM ( - col1 ) AS col2 FROM tab0 AS cor0
----
103

query I rowsort
SELECT col1 + - 68 - 2 FROM tab0
----
-49
-69
11

query I rowsort
SELECT ALL - col1 * + - 84 FROM tab2
----
4284
5628
6468

onlyif mysql # aggregate syntax: 
query I rowsort label-4646
SELECT DISTINCT COUNT( * ) * - MAX( DISTINCT + col0 ) FROM tab2
----
-225

skipif mysql # not compatible
query I rowsort label-4646
SELECT DISTINCT COUNT ( * ) * - MAX ( DISTINCT + col0 ) FROM tab2
----
-225

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4647
SELECT DISTINCT - SUM( + 4 ) / CAST( NULL AS SIGNED ) * + SUM( ALL + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4647
SELECT DISTINCT - SUM ( + 4 ) / CAST ( NULL AS INTEGER ) * + SUM ( ALL + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE + col0 + - col1 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4649
SELECT ALL SUM( + col1 ) DIV + 23 AS col2 FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-4649
SELECT ALL SUM ( + col1 ) / + 23 AS col2 FROM tab1
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4650
SELECT COUNT( * ) * CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4650
SELECT COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4651
SELECT ALL + 41 DIV - 79 + - col0 AS col0 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-4651
SELECT ALL + 41 / - 79 + - col0 AS col0 FROM tab1 AS cor0
----
-51
-85
-91

query II rowsort
SELECT DISTINCT col0, ( + + col2 ) AS col2 FROM tab0
----
15
47
87
10
97
99

query I rowsort
SELECT DISTINCT - col2 * 2 * - col2 FROM tab0
----
19602
200
4418

query I rowsort
SELECT DISTINCT + + ( + + 36 ) + + + col0 FROM tab0 cor0
----
123
133
51

query II rowsort
SELECT + + 77 AS col0, + col2 AS col2 FROM tab0 AS cor0
----
77
10
77
47
77
99

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL >= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4657
SELECT COUNT( - + col1 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4657
SELECT COUNT ( - + col1 ) AS col1 FROM tab2
----
3

query I rowsort
SELECT col1 * - 57 FROM tab0
----
-1197
-4617
-57

query III rowsort
SELECT * FROM tab1 WHERE NOT 35 IS NOT NULL
----

query II rowsort
SELECT - col1 / + + col1, col1 FROM tab2 WHERE NOT 64 + - + 5 * + - 27 IS NOT NULL
----

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NOT NULL >= 83
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 36 NOT IN ( + col2 * 82, col2 )
----

query I rowsort
SELECT DISTINCT + + 84 * - + col0 - 93 FROM tab1 AS cor0
----
-4377
-7233
-7737

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 60 ) col1 FROM tab1
----
-60
-60
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-4665
SELECT DISTINCT 57 + 97 + + 92 * + - 45 * + COUNT( * ) FROM tab0
----
-12266

skipif mysql # not compatible
query I rowsort label-4665
SELECT DISTINCT 57 + 97 + + 92 * + - 45 * + COUNT ( * ) FROM tab0
----
-12266

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4666
SELECT DISTINCT + CAST( + col2 AS SIGNED ) + - 43 FROM tab2 cor0
----
-20
-3
15

skipif mysql # not compatible
query I rowsort label-4666
SELECT DISTINCT + CAST ( + col2 AS INTEGER ) + - 43 FROM tab2 cor0
----
-20
-3
15

query I rowsort
SELECT 77 * col2 FROM tab1 AS cor0
----
4543
5236
7392

query I rowsort
SELECT ALL + ( + + 58 ) AS col2 FROM tab1 AS cor0
----
58
58
58

query II rowsort
SELECT DISTINCT - col2, + col0 * - col1 * + col2 FROM tab2 AS cor0 WHERE + 78 - + 99 >= ( col0 * 76 * + 67 + col2 - + col0 + + col1 * + 59 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4670
SELECT ALL + MAX( ALL + col2 ) AS col2 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-4670
SELECT ALL + MAX ( ALL + col2 ) AS col2 FROM tab0 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4671
SELECT - + COUNT( * ) * - 61 FROM tab2 AS cor0
----
183

skipif mysql # not compatible
query I rowsort label-4671
SELECT - + COUNT ( * ) * - 61 FROM tab2 AS cor0
----
183

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 * + ( + - 87 ) col0 FROM tab1 AS cor0
----
-1218
-4089
-435

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - ( + col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 4 AS col0 FROM tab1 WHERE - col1 IS NULL
----

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE + col2 <= 57
----

query I rowsort
SELECT DISTINCT - - col0 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL col1 + ( - 70 ) AS col0 FROM tab2 AS cor0
----
-19
-3
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4678
SELECT ALL 24 DIV - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-4678
SELECT ALL 24 / - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4679
SELECT DISTINCT MIN( ALL - col1 ) DIV - 19 FROM tab2 WHERE NOT + ( + col0 ) * col2 IS NULL
----
4

skipif mysql # not compatible
query I rowsort label-4679
SELECT DISTINCT MIN ( ALL - col1 ) / - 19 FROM tab2 WHERE NOT + ( + col0 ) * col2 IS NULL
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4680
SELECT DISTINCT ( - CAST( AVG ( + + 61 ) AS SIGNED ) ) FROM tab0
----
-61

skipif mysql # not compatible
query I rowsort label-4680
SELECT DISTINCT ( - CAST ( AVG ( + + 61 ) AS INTEGER ) ) FROM tab0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-4681
SELECT 77 * 83 - + COUNT( * ) FROM tab1
----
6388

skipif mysql # not compatible
query I rowsort label-4681
SELECT 77 * 83 - + COUNT ( * ) FROM tab1
----
6388

onlyif mysql # aggregate syntax: 
query I rowsort label-4682
SELECT ALL + + COUNT( col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4682
SELECT ALL + + COUNT ( col0 ) FROM tab2 AS cor0
----
3

query II rowsort
SELECT ALL - 23 + + 97 - - col0, col2 AS col2 FROM tab1 AS cor0
----
125
96
159
59
165
68

query I rowsort
SELECT - - col1 - ( + col2 ) FROM tab1 cor0
----
-21
-54
-82

query I rowsort
SELECT 37 - - col0 FROM tab0 cor0
----
124
134
52

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4686
SELECT * FROM tab1 AS cor0 WHERE CAST( + ( - 72 ) AS SIGNED ) + ( + 43 ) / + col1 BETWEEN NULL AND col2 + + col2
----

skipif mysql # not compatible
query III rowsort label-4686
SELECT * FROM tab1 AS cor0 WHERE CAST ( + ( - 72 ) AS INTEGER ) + ( + 43 ) / + col1 BETWEEN NULL AND col2 + + col2
----

query I rowsort
SELECT ALL 86 * col2 AS col2 FROM tab0 AS cor0
----
4042
8514
860

query I rowsort
SELECT DISTINCT col2 * 34 * + 9 - - col0 + col1 AS col1 FROM tab2 AS cor0
----
12381
17890
7135

query I rowsort
SELECT DISTINCT + 59 * + - 28 AS col1 FROM tab2 AS cor0
----
-1652

query II rowsort
SELECT ALL ( col2 ) AS col1, - 25 FROM tab2
----
23
-25
40
-25
58
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4691
SELECT ALL + COUNT( DISTINCT col1 ) FROM tab2 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4691
SELECT ALL + COUNT ( DISTINCT col1 ) FROM tab2 WHERE NULL IS NULL
----
3

query I rowsort
SELECT - col2 * - + col2 FROM tab2 WHERE NOT col0 IS NOT NULL
----

query II rowsort
SELECT ALL 69, col1 + - 77 AS col1 FROM tab2
----
69
-10
69
-26
69
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4694
SELECT - col2 AS col0, - 37 DIV + - 44 + + col1 FROM tab0
----
-10
21
-47
81
-99
1

skipif mysql # not compatible
query II rowsort label-4694
SELECT - col2 AS col0, - 37 / + - 44 + + col1 FROM tab0
----
-10
21
-47
81
-99
1

query I rowsort
SELECT col0 * 44 AS col1 FROM tab1
----
2244
3740
4004

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( - col0 * col1 IS NOT NULL )
----

query II rowsort
SELECT col2, 53 FROM tab2 cor0
----
23
53
40
53
58
53

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT col1 <> 96 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE + + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4700
SELECT ALL col2 + col2 + + CAST( - - ( - col1 ) AS SIGNED ) FROM tab2
----
-5
3
49

skipif mysql # not compatible
query I rowsort label-4700
SELECT ALL col2 + col2 + + CAST ( - - ( - col1 ) AS INTEGER ) FROM tab2
----
-5
3
49

query I rowsort
SELECT DISTINCT - col2 * + 25 + - col2 AS col2 FROM tab0 AS cor0
----
-1222
-2574
-260

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - - 45 ) > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col1 - + 44 col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-2390
-4972
-5069

query II rowsort
SELECT - col0 AS col1, 96 FROM tab1
----
-51
96
-85
96
-91
96

query II rowsort
SELECT 56 AS col2, 76 - 70 FROM tab2
----
56
6
56
6
56
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4706
SELECT ALL COUNT( * ) AS col2, 63 DIV SUM( col0 ) DIV + 55 FROM tab0
----
3
0

skipif mysql # not compatible
query II rowsort label-4706
SELECT ALL COUNT ( * ) AS col2, 63 / SUM ( col0 ) / + 55 FROM tab0
----
3
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - 1 + + col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4708
SELECT CAST( + CAST( + - col1 AS SIGNED ) AS SIGNED ) col2 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4708
SELECT CAST ( + CAST ( + - col1 AS INTEGER ) AS INTEGER ) col2 FROM tab1
----
-14
-47
-5

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 - 15 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4710
SELECT ALL 70 DIV - col1 AS col0 FROM tab0
----
-3
-70
0

skipif mysql # not compatible
query I rowsort label-4710
SELECT ALL 70 / - col1 AS col0 FROM tab0
----
-3
-70
0

query I rowsort
SELECT + 10 * + 7 FROM tab0
----
70
70
70

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN - col0 AND ( - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4713
SELECT DISTINCT + col1 DIV ( - col1 * + col2 ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4713
SELECT DISTINCT + col1 / ( - col1 * + col2 ) AS col1 FROM tab2
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 0 + col0 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE col2 * 27 + col0 / col1 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE NOT ( + col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4717
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab1 WHERE NOT + col1 <= + 83 / - col2 - 6
----
-3

skipif mysql # not compatible
query I rowsort label-4717
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab1 WHERE NOT + col1 <= + 83 / - col2 - 6
----
-3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 * - 70 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 31 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4720
SELECT + 98 - MIN( + CAST( - ( - col0 ) AS SIGNED ) ) AS col1 FROM tab0
----
83

skipif mysql # not compatible
query I rowsort label-4720
SELECT + 98 - MIN ( + CAST ( - ( - col0 ) AS INTEGER ) ) AS col1 FROM tab0
----
83

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 44 < + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 27 + + col0 FROM tab1
----
24
58
64

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL >= + 38 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4724
SELECT DISTINCT 40 + + COUNT( * ) FROM tab0 WHERE ( 14 ) < col2
----
42

skipif mysql # not compatible
query I rowsort label-4724
SELECT DISTINCT 40 + + COUNT ( * ) FROM tab0 WHERE ( 14 ) < col2
----
42

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> col0 + - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + 5 ) col0 FROM tab2 WHERE ( NULL ) NOT BETWEEN ( 36 * + 38 ) AND 4
----

query I rowsort
SELECT DISTINCT + col0 + 37 AS col2 FROM tab2
----
101
112
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4728
SELECT CAST( MIN( CAST( col0 AS SIGNED ) ) AS SIGNED ) AS col0 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-4728
SELECT CAST ( MIN ( CAST ( col0 AS INTEGER ) ) AS INTEGER ) AS col0 FROM tab1
----
51

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 68 ) NOT IN ( col0 - 2 )
----

query I rowsort
SELECT ALL ( + 29 ) AS col1 FROM tab1 AS cor0 WHERE col2 NOT BETWEEN + col1 AND col1 + col1
----
29
29

query I rowsort
SELECT DISTINCT ( + 17 ) FROM tab0 AS cor0
----
17

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL >= + 59
----

query I rowsort
SELECT ( - col0 ) + 76 FROM tab0 AS cor0
----
-11
-21
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4734
SELECT + col2 + - CAST( NULL AS SIGNED ) / col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4734
SELECT + col2 + - CAST ( NULL AS INTEGER ) / col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 47 * col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4736
SELECT ALL COUNT( * ) + MAX( DISTINCT + 17 ) AS col0 FROM tab0 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-4736
SELECT ALL COUNT ( * ) + MAX ( DISTINCT + 17 ) AS col0 FROM tab0 AS cor0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4737
SELECT + COUNT( DISTINCT - 48 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4737
SELECT + COUNT ( DISTINCT - 48 ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL 63 + + ( col2 ) * + col1 FROM tab0 AS cor0
----
162
273
3870

onlyif mysql # aggregate syntax: 
query I rowsort label-4739
SELECT DISTINCT + COUNT( * ) FROM tab2 cor0 WHERE + col1 + 73 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4739
SELECT DISTINCT + COUNT ( * ) FROM tab2 cor0 WHERE + col1 + 73 IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4740
SELECT - - 49 - col0 DIV col0 FROM tab1 AS cor0
----
48
48
48

skipif mysql # not compatible
query I rowsort label-4740
SELECT - - 49 - col0 / col0 FROM tab1 AS cor0
----
48
48
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 79 - + + col1 col1 FROM tab0
----
-100
-160
-80

query I rowsort
SELECT ALL col1 - - 10 FROM tab1
----
15
24
57

query III rowsort
SELECT * FROM tab0 WHERE 60 NOT BETWEEN NULL AND + col2
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4744
SELECT ALL + MAX( DISTINCT - col0 ) AS col0 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-4744
SELECT ALL + MAX ( DISTINCT - col0 ) AS col0 FROM tab1
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 8 col0 FROM tab1 WHERE NOT col0 + col2 BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + col2 * + col0 ) BETWEEN - 52 + + 41 AND ( NULL )
----

query I rowsort
SELECT 56 + - 92 FROM tab0
----
-36
-36
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4748
SELECT DISTINCT + ( - 58 ) * SUM( DISTINCT - col1 * - col1 - col1 * - col2 ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4748
SELECT DISTINCT + ( - 58 ) * SUM ( DISTINCT - col1 * - col1 - col1 * - col2 ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + 50 col2 FROM tab2 AS cor0 WHERE - col1 BETWEEN col2 AND ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4750
SELECT ALL * FROM tab1 cor0 WHERE ( 16 ) + col1 * - col2 NOT BETWEEN + CAST( NULL AS SIGNED ) AND - col1
----

skipif mysql # not compatible
query III rowsort label-4750
SELECT ALL * FROM tab1 cor0 WHERE ( 16 ) + col1 * - col2 NOT BETWEEN + CAST ( NULL AS INTEGER ) AND - col1
----

query I rowsort
SELECT ALL - + 32 + 72 AS col0 FROM tab2 AS cor0
----
40
40
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4752
SELECT + + ( - COUNT( - 22 ) ) col1 FROM tab0 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4752
SELECT + + ( - COUNT ( - 22 ) ) col1 FROM tab0 cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 52 * - - col0 col1 FROM tab0
----
4524
5044
780

onlyif mysql # aggregate syntax: 
query I rowsort label-4754
SELECT + + 68 * + SUM( DISTINCT + col1 ) FROM tab2 AS cor0
----
13260

skipif mysql # not compatible
query I rowsort label-4754
SELECT + + 68 * + SUM ( DISTINCT + col1 ) FROM tab2 AS cor0
----
13260

query I rowsort
SELECT + 61 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
61
61
61

query I rowsort
SELECT - + col2 * + 45 + + - col0 FROM tab0 AS cor0
----
-2130
-4552
-537

onlyif mysql # DIV for integer division: 
query I rowsort label-4757
SELECT - col1 DIV - + 76 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4757
SELECT - col1 / - + 76 FROM tab2 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4758
SELECT ALL MIN( - 29 ) FROM tab2 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-4758
SELECT ALL MIN ( - 29 ) FROM tab2 AS cor0
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-4759
SELECT DISTINCT col0 DIV 62 + + 38 FROM tab0 AS cor0 WHERE col0 DIV - + col0 IS NOT NULL
----
38
39

skipif mysql # not compatible
query I rowsort label-4759
SELECT DISTINCT col0 / 62 + + 38 FROM tab0 AS cor0 WHERE col0 / - + col0 IS NOT NULL
----
38
39

query I rowsort
SELECT - col1 * - ( - + col1 ) AS col1 FROM tab0
----
-1
-441
-6561

query I rowsort
SELECT DISTINCT - col2 * col1 * + + col1 FROM tab1
----
-1475
-150212
-18816

onlyif mysql # aggregate syntax: 
query I rowsort label-4762
SELECT ALL 55 * + MIN( DISTINCT - ( - 53 ) ) FROM tab1
----
2915

skipif mysql # not compatible
query I rowsort label-4762
SELECT ALL 55 * + MIN ( DISTINCT - ( - 53 ) ) FROM tab1
----
2915

query II rowsort
SELECT + col0 * col0 AS col2, + 77 FROM tab2
----
2116
77
4096
77
5625
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4764
SELECT DISTINCT COUNT( * ) DIV - 59 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4764
SELECT DISTINCT COUNT ( * ) / - 59 AS col0 FROM tab0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4765
SELECT ( + CAST( + - COUNT( * ) AS SIGNED ) ) col2 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4765
SELECT ( + CAST ( + - COUNT ( * ) AS INTEGER ) ) col2 FROM tab2
----
-3

query I rowsort
SELECT - col0 FROM tab1 WHERE NOT ( + col2 ) IS NULL
----
-51
-85
-91

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( - + col2 )
----

query I rowsort
SELECT + + col1 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4769
SELECT 43 * - COUNT( * ) + - 77 AS col2 FROM tab2 AS cor0 WHERE NOT ( NOT ( NOT NULL IS NOT NULL ) )
----
-206

skipif mysql # not compatible
query I rowsort label-4769
SELECT 43 * - COUNT ( * ) + - 77 AS col2 FROM tab2 AS cor0 WHERE NOT ( NOT ( NOT NULL IS NOT NULL ) )
----
-206

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4770
SELECT ALL col1 AS col1 FROM tab1 AS cor0 WHERE NOT 36 BETWEEN - CAST( ( 38 ) AS SIGNED ) * + col1 AND ( - col0 )
----
14
47
5

skipif mysql # not compatible
query I rowsort label-4770
SELECT ALL col1 AS col1 FROM tab1 AS cor0 WHERE NOT 36 BETWEEN - CAST ( ( 38 ) AS INTEGER ) * + col1 AND ( - col0 )
----
14
47
5

query I rowsort
SELECT ALL + col0 * 1 - + col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4772
SELECT 1 * 23 * - MIN( DISTINCT + - col1 ) AS col1 FROM tab2
----
1771

skipif mysql # not compatible
query I rowsort label-4772
SELECT 1 * 23 * - MIN ( DISTINCT + - col1 ) AS col1 FROM tab2
----
1771

query I rowsort
SELECT + col2 * - col1 + col2 + ( 67 ) AS col1 FROM tab0 AS cor0
----
-133
-3693
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4774
SELECT DISTINCT + COUNT( + col2 ) * - + COUNT( * ) + + + MAX( ALL col1 ) + ( MIN( - col0 ) ) * COUNT( * ) AS col2 FROM tab0 AS cor0
----
-219

skipif mysql # not compatible
query I rowsort label-4774
SELECT DISTINCT + COUNT ( + col2 ) * - + COUNT ( * ) + + + MAX ( ALL col1 ) + ( MIN ( - col0 ) ) * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-219

query I rowsort
SELECT + - 54 / + col0 AS col2 FROM tab1 AS cor0 WHERE col1 / - - col0 * - - 88 IS NULL
----

query I rowsort
SELECT DISTINCT + + 95 + - col0 AS col2 FROM tab2 AS cor0
----
20
31
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4777
SELECT ALL - 1 + - MIN( ALL - + col1 ) FROM tab2 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-4777
SELECT ALL - 1 + - MIN ( ALL - + col1 ) FROM tab2 AS cor0
----
76

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + col2 ) < - col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 <= + - 37
----

query I rowsort
SELECT DISTINCT + 97 + - 73 FROM tab0 cor0
----
24

query I rowsort
SELECT DISTINCT + - col1 * + - col1 * + 61 FROM tab2 AS cor0
----
158661
273829
361669

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4782
SELECT ALL - col0 / + CAST( col0 AS SIGNED ) FROM tab0 cor0 WHERE ( col0 + - - 81 * col2 ) <= NULL
----

skipif mysql # not compatible
query I rowsort label-4782
SELECT ALL - col0 / + CAST ( col0 AS INTEGER ) FROM tab0 cor0 WHERE ( col0 + - - 81 * col2 ) <= NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 41 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col1 * 93 AS col1 FROM tab1
----
1302
4371
465

query I rowsort
SELECT ALL + - col2 * col1 FROM tab0 WHERE NOT + + col2 <> col0 + - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 54 AS col2, col1 col2 FROM tab0
----
54
1
54
21
54
81

onlyif mysql # DIV for integer division: 
query I rowsort label-4787
SELECT ( + 0 ) DIV + 67 col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4787
SELECT ( + 0 ) / + 67 col1 FROM tab0
----
0
0
0

query I rowsort
SELECT 26 * - col2 * + col1 AS col0 FROM tab1
----
-34944
-7670
-83096

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - ( + col2 ) - + ( - col2 ) col2 FROM tab0
----
-2162
-90
-9702

query I rowsort
SELECT ALL 63 + + 20 * + col0 FROM tab2 WHERE NOT ( ( + col2 ) BETWEEN ( + col2 ) AND NULL )
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4792
SELECT ( - + COUNT( * ) ) + - ( + MAX( col1 ) ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4792
SELECT ( - + COUNT ( * ) ) + - ( + MAX ( col1 ) ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + ( - col1 ) + - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4794
SELECT col0 * col0 + CAST( NULL AS DECIMAL ) * + + col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4794
SELECT col0 * col0 + CAST ( NULL AS REAL ) * + + col1 FROM tab1 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 37 / 63 > ( - 45 + 55 * 14 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - ( 76 ) FROM tab0 AS cor0
----
-76
-76
-76

query I rowsort
SELECT ALL + 52 FROM tab1 cor0 WHERE ( 1 / - col2 > NULL )
----

query II rowsort
SELECT + ( - col1 ) AS col1, 0 AS col0 FROM tab0 AS cor0
----
-1
0
-21
0
-81
0

query I rowsort
SELECT ALL ( + 60 ) FROM tab1
----
60
60
60

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + 43 ) > + col1 * + 50
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4801
SELECT MAX( ALL + col1 ) col2 FROM tab2
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4801
SELECT MAX ( ALL + col1 ) col2 FROM tab2
----
77

query II rowsort
SELECT DISTINCT - 35, + col2 FROM tab1
----
-35
59
-35
68
-35
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * 10 col0 FROM tab0
----
150
870
970

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + - col1 ) <= - col0 + 89
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col2 col2 FROM tab1 WHERE NOT col1 NOT IN ( + 97 / + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4806
SELECT DISTINCT + col2 DIV + 30 col2 FROM tab1
----
1
2
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4806
SELECT DISTINCT + col2 / + 30 col2 FROM tab1
----
1
2
3

query II rowsort
SELECT + col0, + col0 * - col0 AS col1 FROM tab0
----
15
-225
87
-7569
97
-9409

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN NULL AND + + 10
----

query I rowsort
SELECT + - 18 AS col0 FROM tab2 AS cor0 WHERE NOT + col2 <> + - col2
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 NOT IN ( + - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - - 27 * col2 FROM tab0 AS cor0
----
1269
2673
270

query II rowsort
SELECT - col1 + col1 + - - 58, - col0 AS col2 FROM tab2 AS cor0
----
58
-46
58
-64
58
-75

query I rowsort
SELECT ALL - 54 + + col2 FROM tab0 AS cor0
----
-44
-7
45

query II rowsort
SELECT DISTINCT - - col1, + 77 + + + 18 AS col1 FROM tab0 WHERE ( col1 + + col2 ) > + 43 / + - 8
----
1
95
21
95
81
95

query I rowsort
SELECT + col0 AS col0 FROM tab0 WHERE - col1 <= ( - col0 )
----
15

query IIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 WHERE - 67 > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4817
SELECT + - COUNT( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4817
SELECT + - COUNT ( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
-9

query I rowsort
SELECT ALL - col2 AS col0 FROM tab1 WHERE + col1 IN ( - col2 )
----

query I rowsort
SELECT ALL - col2 * - + ( - col0 ) + col1 * + + col0 - - ( + col0 ) FROM tab0 AS cor0
----
-9409
1044
525

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4820
SELECT + - CAST( - 37 AS SIGNED ) - - MIN( + col1 ) AS col1 FROM tab1 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-4820
SELECT + - CAST ( - 37 AS INTEGER ) - - MIN ( + col1 ) AS col1 FROM tab1 AS cor0
----
42

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) > + 52
----

query I rowsort
SELECT ALL col2 * - + col1 + + 34 FROM tab1 AS cor0
----
-1310
-261
-3162

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4823
SELECT ALL - col1 DIV - - 2 AS col2, 0 * + + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-10
NULL
-40
NULL
0
NULL

skipif mysql # not compatible
query II rowsort label-4823
SELECT ALL - col1 / - - 2 AS col2, 0 * + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-10
NULL
-40
NULL
0
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4824
SELECT DISTINCT 26 * col0 - + col1 * - col0 + col1 + - + 23 AS col0, - CAST( NULL AS SIGNED ) col0 FROM tab2
----
3570
NULL
6646
NULL
7019
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4824
SELECT DISTINCT 26 * col0 - + col1 * - col0 + col1 + - + 23 AS col0, - CAST ( NULL AS INTEGER ) col0 FROM tab2
----
3570
NULL
6646
NULL
7019
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4825
SELECT + ( + CAST( - col1 AS SIGNED ) ) FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-4825
SELECT + ( + CAST ( - col1 AS INTEGER ) ) FROM tab0
----
-1
-21
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-4826
SELECT ALL - ( - + col0 ) DIV - col2 AS col2 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4826
SELECT ALL - ( - + col0 ) / - col2 AS col2 FROM tab1
----
-1
-1
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4827
SELECT DISTINCT - col1 DIV + ( - + CAST( - col2 AS SIGNED ) ) AS col0 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-4827
SELECT DISTINCT - col1 / + ( - + CAST ( - col2 AS INTEGER ) ) AS col0 FROM tab0
----
-1
-2
0

query II rowsort
SELECT - col2 AS col2, + 91 FROM tab0 AS cor0
----
-10
91
-47
91
-99
91

query I rowsort
SELECT ALL + + 77 AS col2 FROM tab2 AS cor0
----
77
77
77

query I rowsort
SELECT ALL - col0 AS col1 FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN NULL AND + 49
----

query I rowsort
SELECT ALL - - 68 AS col2 FROM tab0 cor0
----
68
68
68

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL >= 65 * - + col1 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4833
SELECT - SUM( - + col0 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
227

skipif mysql # not compatible
query I rowsort label-4833
SELECT - SUM ( - + col0 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
227

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4834
SELECT * FROM tab0 WHERE NOT - CAST( + col0 AS SIGNED ) + - + 37 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4834
SELECT * FROM tab0 WHERE NOT - CAST ( + col0 AS INTEGER ) + - + 37 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - col1 + - col2, + 93 - - - col2 + 99 AS col2 FROM tab2
----
-117
152
-125
134
-74
169

query I rowsort
SELECT ALL 63 + + - col2 * col2 AS col2 FROM tab1
----
-3418
-4561
-9153

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL BETWEEN ( NULL ) AND + col0 - - 78
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col1 * 6 AS col1, col2 col2 FROM tab1 AS cor0
----
-282
68
-30
59
-84
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4839
SELECT DISTINCT + COUNT( * ) + 17 - + CAST( + SUM( DISTINCT + col0 ) AS SIGNED ) AS col0 FROM tab0
----
-179

skipif mysql # not compatible
query I rowsort label-4839
SELECT DISTINCT + COUNT ( * ) + 17 - + CAST ( + SUM ( DISTINCT + col0 ) AS INTEGER ) AS col0 FROM tab0
----
-179

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4840
SELECT - col2 * - col2 + + col2 + 34 + + + col2 * + - col2 + + 26 * CAST( + ( - 22 ) AS SIGNED ) FROM tab0
----
-439
-491
-528

skipif mysql # not compatible
query I rowsort label-4840
SELECT - col2 * - col2 + + col2 + 34 + + + col2 * + - col2 + + 26 * CAST ( + ( - 22 ) AS INTEGER ) FROM tab0
----
-439
-491
-528

query I rowsort
SELECT DISTINCT + + col2 + - col1 + + - col1 * - col2 FROM tab1 AS cor0
----
1426
3217
349

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4842
SELECT ALL + col2 + CAST( col0 AS SIGNED ) FROM tab1 cor0
----
144
147
159

skipif mysql # not compatible
query I rowsort label-4842
SELECT ALL + col2 + CAST ( col0 AS INTEGER ) FROM tab1 cor0
----
144
147
159

onlyif mysql # aggregate syntax: 
query I rowsort label-4843
SELECT + + 3 * - COUNT( * ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4843
SELECT + + 3 * - COUNT ( * ) FROM tab2 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4844
SELECT * FROM tab0 AS cor0 WHERE col1 * + + 58 - + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4844
SELECT * FROM tab0 AS cor0 WHERE col1 * + + 58 - + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - + col1 * - 20 + + - 42 AS col0 FROM tab2 AS cor0
----
1298
1498
978

query I rowsort
SELECT ALL + + col0 + - - 34 + + 33 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4847
SELECT col2 * + col0 - - + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4847
SELECT col2 * + col0 - - + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 68 - + col2 FROM tab0
----
-31
21
58

onlyif mysql # DIV for integer division: 
query I rowsort label-4849
SELECT col1 DIV 19 - + col0 FROM tab2
----
-44
-60
-72

skipif mysql # not compatible
query I rowsort label-4849
SELECT col1 / 19 - + col0 FROM tab2
----
-44
-60
-72

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 * + col0 * + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4851
SELECT DISTINCT - ( - CAST( - 95 AS SIGNED ) ) FROM tab2
----
-95

skipif mysql # not compatible
query I rowsort label-4851
SELECT DISTINCT - ( - CAST ( - 95 AS INTEGER ) ) FROM tab2
----
-95

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - 3 - - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4853
SELECT - - 91 * + 90 * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
24570

skipif mysql # not compatible
query I rowsort label-4853
SELECT - - 91 * + 90 * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
24570

onlyif mysql # DIV for integer division: 
query I rowsort label-4854
SELECT ALL ( - col0 ) DIV col0 col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4854
SELECT ALL ( - col0 ) / col0 col1 FROM tab2 AS cor0
----
-1
-1
-1

query II rowsort
SELECT 48 + + + 66, 97 FROM tab0 AS cor0 WHERE NOT - 35 + 53 > ( NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 + - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4857
SELECT MAX( 75 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
75

skipif mysql # not compatible
query I rowsort label-4857
SELECT MAX ( 75 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
75

query I rowsort
SELECT ALL + 63 FROM tab2 WHERE 6 IS NOT NULL
----
63
63
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4859
SELECT ALL + + col0 * CAST( NULL AS SIGNED ) + col0 * + - 98 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4859
SELECT ALL + + col0 * CAST ( NULL AS INTEGER ) + col0 * + - 98 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 74 * + col1 * col1 NOT BETWEEN - 63 AND - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4861
SELECT MAX( DISTINCT col1 ) col1 FROM tab0 cor0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4861
SELECT MAX ( DISTINCT col1 ) col1 FROM tab0 cor0
----
81

query II rowsort
SELECT DISTINCT - 23 AS col1, col1 AS col2 FROM tab2 AS cor0
----
-23
51
-23
67
-23
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4863
SELECT COUNT( * ) * - + COUNT( * ) * COUNT( * ) * + ( - COUNT( ALL 80 ) ), - ( + MAX( + - CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab2 AS cor0
----
81
NULL

skipif mysql # not compatible
query II rowsort label-4863
SELECT COUNT ( * ) * - + COUNT ( * ) * COUNT ( * ) * + ( - COUNT ( ALL 80 ) ), - ( + MAX ( + - CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab2 AS cor0
----
81
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4864
SELECT + - SUM( DISTINCT - 84 ) FROM tab2 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-4864
SELECT + - SUM ( DISTINCT - 84 ) FROM tab2 AS cor0
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-4865
SELECT - - 75 DIV col0 AS col0 FROM tab0 AS cor0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-4865
SELECT - - 75 / col0 AS col0 FROM tab0 AS cor0
----
0
0
5

onlyif mysql # aggregate syntax: 
query II rowsort label-4866
SELECT + 6, + COUNT( * ) AS col2 FROM tab0
----
6
3

skipif mysql # not compatible
query II rowsort label-4866
SELECT + 6, + COUNT ( * ) AS col2 FROM tab0
----
6
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 69 * 30 + - 83 col0 FROM tab0
----
1987

query I rowsort
SELECT ALL - - 58 + - col2 AS col0 FROM tab1 AS cor0
----
-1
-10
-38

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4869
SELECT - CAST( NULL AS SIGNED ) + 31 AS col2, - col1 * + col2 AS col2 FROM tab1 AS cor0
----
NULL
-1344
NULL
-295
NULL
-3196

skipif mysql # not compatible
query II rowsort label-4869
SELECT - CAST ( NULL AS INTEGER ) + 31 AS col2, - col1 * + col2 AS col2 FROM tab1 AS cor0
----
NULL
-1344
NULL
-295
NULL
-3196

query I rowsort
SELECT + col2 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
59
68
96

query I rowsort
SELECT - - col0 * - col2 + + + 26 FROM tab1 AS cor0
----
-4870
-4989
-6162

onlyif mysql # aggregate syntax: 
query I rowsort label-4872
SELECT MIN( DISTINCT + 50 ) AS col1 FROM tab1 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-4872
SELECT MIN ( DISTINCT + 50 ) AS col1 FROM tab1 AS cor0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4873
SELECT ALL - + COUNT( * ) * - MIN( + 9 ) col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4873
SELECT ALL - + COUNT ( * ) * - MIN ( + 9 ) col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4874
SELECT - CAST( NULL AS SIGNED ) * - + 44, + col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-4874
SELECT - CAST ( NULL AS INTEGER ) * - + 44, + col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

query I rowsort
SELECT ALL 40 + ( + 98 ) AS col1 FROM tab0 cor0
----
138
138
138

query I rowsort
SELECT + col0 - - + col2 FROM tab0 AS cor0
----
196
62
97

query I rowsort
SELECT ALL ( + ( + 52 ) ) + 23 * + 0 FROM tab1 AS cor0
----
52
52
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4878
SELECT ALL + 86 / + - col0 + + 70 - 30 - - CAST( NULL AS SIGNED ) + - 6 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4878
SELECT ALL + 86 / + - col0 + + 70 - 30 - - CAST ( NULL AS INTEGER ) + - 6 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col2 + + + 87 AS col0 FROM tab2 AS cor0
----
110
127
145

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col1 FROM tab0 AS cor0 WHERE - 13 IS NOT NULL
----
10
47
99

query II rowsort
SELECT col1 + + col1 AS col2, col0 FROM tab2 cor0
----
102
46
134
75
154
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4882
SELECT ALL - - SUM( - - col0 ) + SUM( ALL - + col0 ) FROM tab2 AS cor0 WHERE ( NULL ) <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4882
SELECT ALL - - SUM ( - - col0 ) + SUM ( ALL - + col0 ) FROM tab2 AS cor0 WHERE ( NULL ) <> NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE + + col1 >= NULL
----

query II rowsort
SELECT DISTINCT + col0, col0 AS col2 FROM tab0
----
15
15
87
87
97
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4885
SELECT ALL * FROM tab0 WHERE + col2 * - col0 * + CAST( NULL AS SIGNED ) / ( + col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4885
SELECT ALL * FROM tab0 WHERE + col2 * - col0 * + CAST ( NULL AS INTEGER ) / ( + col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 94 * - col2 FROM tab2
----
2162
3760
5452

query I rowsort
SELECT ALL - col2 * 21 FROM tab0
----
-2079
-210
-987

query I rowsort
SELECT ALL 51 * col0 FROM tab1
----
2601
4335
4641

onlyif mysql # aggregate syntax: 
query I rowsort label-4889
SELECT - - 69 * + - SUM( col0 ) AS col2 FROM tab0 AS cor0
----
-13731

skipif mysql # not compatible
query I rowsort label-4889
SELECT - - 69 * + - SUM ( col0 ) AS col2 FROM tab0 AS cor0
----
-13731

query II rowsort
SELECT ALL 64 AS col2, 26 AS col1 FROM tab2 AS cor0
----
64
26
64
26
64
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4891
SELECT ALL - MIN( - - col2 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-4891
SELECT ALL - MIN ( - - col2 ) FROM tab1 AS cor0
----
-59

query I rowsort
SELECT + + col1 * + + col2 * + col0 AS col0 FROM tab2 AS cor0
----
197120
291450
53958

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4893
SELECT DISTINCT ( - - col0 ) DIV CAST( - + 89 AS SIGNED ) FROM tab1 cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-4893
SELECT DISTINCT ( - - col0 ) / CAST ( - + 89 AS INTEGER ) FROM tab1 cor0
----
-1
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4894
SELECT ALL + COUNT( * ) * - CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4894
SELECT ALL + COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + col0 * 79 col0 FROM tab1
----
33575
337883
56406

query I rowsort
SELECT ALL + - col2 + + ( - - 87 ) + + + col0 AS col0 FROM tab2 AS cor0
----
104
110
111

query I rowsort
SELECT - col1 + - 82 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + col0 * + 53 AS col0 FROM tab1 cor0
----
2703
4505
4823

query II rowsort
SELECT + - 43 * - col0 * - - col2 + - - col2 AS col1, col2 AS col2 FROM tab1 AS cor0
----
210624
96
215704
59
266152
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4900
SELECT DISTINCT CAST( - - col1 AS SIGNED ) AS col1 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-4900
SELECT DISTINCT CAST ( - - col1 AS INTEGER ) AS col1 FROM tab1
----
14
47
5

query I rowsort
SELECT col1 + + ( + 17 ) + - 25 + + + col2 * + col1 * col1 * col2 AS col1 FROM tab2
----
1375972
15101055
9486469

query I rowsort
SELECT DISTINCT - col1 * - 8 FROM tab0
----
168
648
8

onlyif mysql # DIV for integer division: 
query II rowsort label-4903
SELECT DISTINCT col1, - col0 DIV + ( + col1 ) + + 5 * + 83 * + col1 FROM tab0
----
1
318
21
8711
81
33615

skipif mysql # not compatible
query II rowsort label-4903
SELECT DISTINCT col1, - col0 / + ( + col1 ) + + 5 * + 83 * + col1 FROM tab0
----
1
318
21
8711
81
33615

onlyif mysql # aggregate syntax: 
query I rowsort label-4904
SELECT MAX( ALL + + 67 ) FROM tab1
----
67

skipif mysql # not compatible
query I rowsort label-4904
SELECT MAX ( ALL + + 67 ) FROM tab1
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4905
SELECT ALL - 37, - 28 AS col0 FROM tab1 WHERE - 92 + + - CAST( NULL AS SIGNED ) / + 60 IS NULL
----
-37
-28
-37
-28
-37
-28

skipif mysql # not compatible
query II rowsort label-4905
SELECT ALL - 37, - 28 AS col0 FROM tab1 WHERE - 92 + + - CAST ( NULL AS INTEGER ) / + 60 IS NULL
----
-37
-28
-37
-28
-37
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-4906
SELECT ALL + 71 DIV - - col2 + 70 + + ( + - col1 ) FROM tab1
----
24
56
66

skipif mysql # not compatible
query I rowsort label-4906
SELECT ALL + 71 / - - col2 + 70 + + ( + - col1 ) FROM tab1
----
24
56
66

query II rowsort
SELECT DISTINCT - ( + ( 12 ) ) AS col1, - 83 AS col1 FROM tab2
----
-12
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4908
SELECT DISTINCT - 79 + + - COUNT( * ) * + + 30 DIV - + 70 FROM tab1 WHERE NOT - - 75 >= NULL
----
-79

skipif mysql # not compatible
query I rowsort label-4908
SELECT DISTINCT - 79 + + - COUNT ( * ) * + + 30 / - + 70 FROM tab1 WHERE NOT - - 75 >= NULL
----
-79

query III rowsort
SELECT * FROM tab0 WHERE - col0 + - col2 + 3 + - - 61 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4910
SELECT ALL - COUNT( * ) * - - COUNT( * ) FROM tab0 WHERE NULL < - col0
----
0

skipif mysql # not compatible
query I rowsort label-4910
SELECT ALL - COUNT ( * ) * - - COUNT ( * ) FROM tab0 WHERE NULL < - col0
----
0

query II rowsort
SELECT 89 AS col0, - col2 AS col0 FROM tab0
----
89
-10
89
-47
89
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 51 AS col0, - col0 / + col1 col2 FROM tab1 AS cor0 WHERE + 4 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4913
SELECT ALL COUNT( * ) + + 94 AS col1 FROM tab2 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-4913
SELECT ALL COUNT ( * ) + + 94 AS col1 FROM tab2 AS cor0
----
97

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4914
SELECT DISTINCT + 14 / + CAST( - col2 AS SIGNED ) * - + col2 - col0 + + col2 + CAST( - - CAST( NULL AS SIGNED ) AS DECIMAL ) - - col1 - + - 9 - - col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4914
SELECT DISTINCT + 14 / + CAST ( - col2 AS INTEGER ) * - + col2 - col0 + + col2 + CAST ( - - CAST ( NULL AS INTEGER ) AS REAL ) - - col1 - + - 9 - - col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - ( + 56 ) + + 47 FROM tab1 AS cor0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - + 40 + + col2 - - col1 col1 FROM tab1 AS cor0
----
-1930
-3336
-3525

query I rowsort
SELECT 6 + + 55 FROM tab1
----
61
61
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4918
SELECT CAST( NULL AS SIGNED ) + + 92 + - 87 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4918
SELECT CAST ( NULL AS INTEGER ) + + 92 + - 87 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT col1 + - + col1, + col2 AS col0 FROM tab0
----
0
10
0
47
0
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4920
SELECT - 42 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4920
SELECT - 42 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 + + + 75 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4922
SELECT ALL - col1 + + col1 + CAST( NULL AS SIGNED ) - - CAST( col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4922
SELECT ALL - col1 + + col1 + CAST ( NULL AS INTEGER ) - - CAST ( col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( - + col1 ) * - col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 46 ) col0 FROM tab1 AS cor0
----
46
46
46

onlyif mysql # aggregate syntax: 
query II rowsort label-4925
SELECT ALL - 26 AS col0, COUNT( * ) + - 52 FROM tab2 AS cor0
----
-26
-49

skipif mysql # not compatible
query II rowsort label-4925
SELECT ALL - 26 AS col0, COUNT ( * ) + - 52 FROM tab2 AS cor0
----
-26
-49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4926
SELECT + + 72, 77 * 0 / + + CAST( NULL AS SIGNED ) col1 FROM tab0 cor0
----
72
NULL
72
NULL
72
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4926
SELECT + + 72, 77 * 0 / + + CAST ( NULL AS INTEGER ) col1 FROM tab0 cor0
----
72
NULL
72
NULL
72
NULL

query I rowsort
SELECT DISTINCT 88 * - 64 FROM tab1
----
-5632

query I rowsort
SELECT - col2 FROM tab2 WHERE NOT - col2 + + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4929
SELECT DISTINCT + 50 DIV + + CAST( - + COUNT( + col1 ) AS SIGNED ) col1 FROM tab0
----
-16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4929
SELECT DISTINCT + 50 / + + CAST ( - + COUNT ( + col1 ) AS INTEGER ) col1 FROM tab0
----
-16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 98 col0 FROM tab2 cor0
----
-98
-98
-98

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL < + 78 + + 44 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4932
SELECT + 58 * 24 * + + COUNT( * ) AS col0, - 9 DIV - 11 AS col2 FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-4932
SELECT + 58 * 24 * + + COUNT ( * ) AS col0, - 9 / - 11 AS col2 FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL
----
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4933
SELECT + col1 DIV col2 + 41 FROM tab2
----
42
42
43

skipif mysql # not compatible
query I rowsort label-4933
SELECT + col1 / col2 + 41 FROM tab2
----
42
42
43

query II rowsort
SELECT ALL - col1, 26 FROM tab0 AS cor0 WHERE - col2 = NULL
----

query I rowsort
SELECT DISTINCT + col0 * + col1 - + + 2 + + ( - 55 ) + - col1 AS col1 FROM tab0 AS cor0
----
1077
1749
39

query I rowsort
SELECT ALL - col2 * - col0 + + 4 + + - col0 + + - col1 FROM tab2 AS cor0
----
2423
4212
965

query II rowsort
SELECT - + col1 AS col2, 62 AS col2 FROM tab1 AS cor0
----
-14
62
-47
62
-5
62

query I rowsort
SELECT + + col0 * - - col0 AS col2 FROM tab2 cor0
----
2116
4096
5625

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4939
SELECT ALL + - 75 + - + CAST( NULL AS SIGNED ) + COUNT( * ) + 94 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4939
SELECT ALL + - 75 + - + CAST ( NULL AS INTEGER ) + COUNT ( * ) + 94 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4940
SELECT DISTINCT + COUNT( * ) * - - 42 AS col0 FROM tab2 AS cor0
----
126

skipif mysql # not compatible
query I rowsort label-4940
SELECT DISTINCT + COUNT ( * ) * - - 42 AS col0 FROM tab2 AS cor0
----
126

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 30 + - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 59 * + 17 FROM tab0 AS cor0 WHERE NOT col1 <= ( + col1 )
----

query I rowsort
SELECT DISTINCT + - 6 * 10 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-60

query II rowsort
SELECT - - 61, 36 AS col1 FROM tab0 AS cor0
----
61
36
61
36
61
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4945
SELECT ALL - SUM( 49 ) FROM tab2 AS cor0
----
-147

skipif mysql # not compatible
query I rowsort label-4945
SELECT ALL - SUM ( 49 ) FROM tab2 AS cor0
----
-147

query I rowsort
SELECT col2 * - col2 * col1 + 43 AS col1 FROM tab2 AS cor0
----
-123157
-225345
-26936

onlyif mysql # aggregate syntax: 
query I rowsort label-4947
SELECT DISTINCT + COUNT( DISTINCT + - col1 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4947
SELECT DISTINCT + COUNT ( DISTINCT + - col1 ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT - - 20 * - col2 AS col2 FROM tab0 AS cor0
----
-1980
-200
-940

query I rowsort
SELECT + 8 FROM tab1 AS cor0 WHERE NOT - 41 < + - 76
----
8
8
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4950
SELECT ALL SUM( - col1 ) FROM tab2 cor0
----
-195

skipif mysql # not compatible
query I rowsort label-4950
SELECT ALL SUM ( - col1 ) FROM tab2 cor0
----
-195

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4951
SELECT ALL CAST( col0 AS SIGNED ), ( + col1 ) AS col1 FROM tab1
----
51
14
85
5
91
47

skipif mysql # not compatible
query II rowsort label-4951
SELECT ALL CAST ( col0 AS INTEGER ), ( + col1 ) AS col1 FROM tab1
----
51
14
85
5
91
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4952
SELECT + + 12 + - AVG ( DISTINCT - + col0 ) FROM tab1 WHERE NOT - 95 + + CAST( NULL AS SIGNED ) <> + - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4952
SELECT + + 12 + - AVG ( DISTINCT - + col0 ) FROM tab1 WHERE NOT - 95 + + CAST ( NULL AS INTEGER ) <> + - col1
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN - + 81 * + 23 AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4954
SELECT DISTINCT - 23 * + + MIN( + col1 ) FROM tab0
----
-23

skipif mysql # not compatible
query I rowsort label-4954
SELECT DISTINCT - 23 * + + MIN ( + col1 ) FROM tab0
----
-23

query II rowsort
SELECT DISTINCT - 30 AS col0, + col2 AS col0 FROM tab2
----
-30
23
-30
40
-30
58

query II rowsort
SELECT + col0 AS col1, 27 FROM tab1
----
51
27
85
27
91
27

query I rowsort
SELECT ALL + 90 * + 58 AS col2 FROM tab2
----
5220
5220
5220

query II rowsort
SELECT 64 AS col2, + 68 AS col1 FROM tab2
----
64
68
64
68
64
68

query II rowsort
SELECT + 71 AS col0, 54 FROM tab0
----
71
54
71
54
71
54

query II rowsort
SELECT ALL + 5, col1 AS col2 FROM tab1
----
5
14
5
47
5
5

query I rowsort
SELECT - ( + col0 ) * - - col2 FROM tab2 cor0
----
-1058
-2560
-4350

query I rowsort
SELECT 54 * - 27 AS col0 FROM tab0 AS cor0
----
-1458
-1458
-1458

query II rowsort
SELECT ALL + col1 AS col2, - ( col1 ) FROM tab2 AS cor0
----
51
-51
67
-67
77
-77

query I rowsort
SELECT - 45 * - - col1 * - 57 * + col0 - + col1 AS col1 FROM tab0 AS cor0
----
248804
3116394
4686234

query I rowsort
SELECT ALL + 47 * 64 FROM tab0 cor0
----
3008
3008
3008

onlyif mysql # DIV for integer division: 
query I rowsort label-4966
SELECT + 24 DIV - - col1 AS col2 FROM tab1
----
0
1
4

skipif mysql # not compatible
query I rowsort label-4966
SELECT + 24 / - - col1 AS col2 FROM tab1
----
0
1
4

query II rowsort
SELECT ALL + col2 + - 66, col0 AS col1 FROM tab0
----
-19
15
-56
87
33
97

query I rowsort
SELECT DISTINCT col0 + 10 FROM tab2
----
56
74
85

query I rowsort
SELECT DISTINCT + + 90 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
90

query I rowsort
SELECT ALL - col0 * ( - + 36 ) FROM tab0 AS cor0
----
3132
3492
540

query II rowsort
SELECT - 54, 61 AS col2 FROM tab1 AS cor0 WHERE - col1 IS NULL
----

query I rowsort
SELECT - col2 * col0 + - + col2 AS col2 FROM tab1 cor0
----
-4992
-5074
-6256

onlyif mysql # aggregate syntax: 
query I rowsort label-4973
SELECT - MIN( ALL - col0 ) AS col0 FROM tab0 AS cor0 WHERE NULL > 15 * - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4973
SELECT - MIN ( ALL - col0 ) AS col0 FROM tab0 AS cor0 WHERE NULL > 15 * - col1
----
NULL

query I rowsort
SELECT DISTINCT col2 + + col2 * 6 + col2 FROM tab0 cor0
----
376
792
80

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <= + col2 * - col1
----

query I rowsort
SELECT + ( + col2 ) * col0 * col0 FROM tab1
----
249696
426275
563108

onlyif mysql # DIV for integer division: 
query I rowsort label-4977
SELECT DISTINCT - col2 DIV + - 85 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4977
SELECT DISTINCT - col2 / + - 85 AS col1 FROM tab2
----
0

query I rowsort
SELECT + col2 * + 71 AS col2 FROM tab2
----
1633
2840
4118

onlyif mysql # aggregate syntax: 
query I rowsort label-4979
SELECT ALL SUM( - - 17 ) AS col2 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-4979
SELECT ALL SUM ( - - 17 ) AS col2 FROM tab1
----
51

query I rowsort
SELECT + 11 * - + col2 * col0 * + col0 FROM tab0
----
-10246401
-116325
-832590

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4981
SELECT ALL - CAST( - col2 AS SIGNED ) * + 70, + 72 AS col0 FROM tab2
----
1610
72
2800
72
4060
72

skipif mysql # not compatible
query II rowsort label-4981
SELECT ALL - CAST ( - col2 AS INTEGER ) * + 70, + 72 AS col0 FROM tab2
----
1610
72
2800
72
4060
72

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL > 22
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4983
SELECT + 19 + + CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4983
SELECT + 19 + + CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 58 > NULL
----

query I rowsort
SELECT - + ( + - col1 ) + + col0 * + + col1 FROM tab1 AS cor0
----
430
4324
728

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 76 col1 FROM tab0
----
76
76
76

query I rowsort
SELECT DISTINCT - + 68 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-68

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - col1 NOT BETWEEN - - col1 AND NULL
----

query I rowsort
SELECT DISTINCT - - 23 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-4990
SELECT col2 DIV - 70 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4990
SELECT col2 / - 70 FROM tab0
----
-1
0
0

query II rowsort
SELECT + col1 AS col0, 73 FROM tab2
----
51
73
67
73
77
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4992
SELECT + + SUM( - - col1 ) AS col1 FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4992
SELECT + + SUM ( - - col1 ) AS col1 FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) > NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4993
SELECT DISTINCT MIN( ALL - - 68 ) * + + 32 FROM tab0 cor0
----
2176

skipif mysql # not compatible
query I rowsort label-4993
SELECT DISTINCT MIN ( ALL - - 68 ) * + + 32 FROM tab0 cor0
----
2176

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col2 ) BETWEEN NULL AND - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4995
SELECT col1 DIV col2 + col1 + - col2 AS col0 FROM tab0 cor0
----
-98
13
35

skipif mysql # not compatible
query I rowsort label-4995
SELECT col1 / col2 + col1 + - col2 AS col0 FROM tab0 cor0
----
-98
13
35

query I rowsort
SELECT ALL - 70 * + col0 AS col2 FROM tab2 AS cor0
----
-3220
-4480
-5250

onlyif mysql # aggregate syntax: 
query I rowsort label-4997
SELECT + 16 + + COUNT( DISTINCT + ( - col0 ) ) + + 22 FROM tab2 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-4997
SELECT + 16 + + COUNT ( DISTINCT + ( - col0 ) ) + + 22 FROM tab2 AS cor0
----
41

query I rowsort
SELECT - col0 + + - 93 AS col1 FROM tab2 cor0
----
-139
-157
-168

query I rowsort
SELECT - ( col0 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
-46
-64
-75

query II rowsort
SELECT DISTINCT col2 AS col2, 93 FROM tab1
----
59
93
68
93
96
93

query I rowsort
SELECT + 51 AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

query I rowsort
SELECT ALL + col0 + - 68 AS col1 FROM tab2 AS cor0
----
-22
-4
7

query II rowsort
SELECT col0, - 28 FROM tab1 cor0
----
51
-28
85
-28
91
-28

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL = + col2
----

query III rowsort
SELECT ALL - col1 AS col2, - 8 * + + 22 - + col0 AS col2, col0 * + + 90 + - + col0 AS col2 FROM tab2 AS cor0 WHERE ( NOT NULL IS NULL )
----

query I rowsort
SELECT + 40 - - col2 FROM tab0 AS cor0
----
139
50
87

query I rowsort
SELECT col2 + 5 FROM tab2
----
28
45
63

query III rowsort
SELECT * FROM tab0 WHERE + + ( + - col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 88 + + + 85 - - 61 * - + ( + 60 ) col1, 18 AS col0 FROM tab2
----
-3487
18
-3487
18
-3487
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5010
SELECT ALL - 6 FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
-6
-6
-6

skipif mysql # not compatible
query I rowsort label-5010
SELECT ALL - 6 FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
-6
-6
-6

query I rowsort
SELECT ALL 74 * - col1 FROM tab1
----
-1036
-3478
-370

query I rowsort
SELECT ALL + ( - col2 ) * 25 FROM tab0 cor0
----
-1175
-2475
-250

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5013
SELECT DISTINCT + MAX( ALL + - CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5013
SELECT DISTINCT + MAX ( ALL + - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT - + 70 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 35707a5d99c98b2657c084a50ff1b073

query I rowsort
SELECT DISTINCT + 32 * + col2 FROM tab2
----
1280
1856
736

onlyif mysql # aggregate syntax: 
query I rowsort label-5016
SELECT + MIN( DISTINCT - + 57 ) FROM tab0 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-5016
SELECT + MIN ( DISTINCT - + 57 ) FROM tab0 AS cor0
----
-57

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 17 NOT BETWEEN - col1 * col0 AND NULL
----

query I rowsort
SELECT ALL + + ( + 61 ) FROM tab2 AS cor0
----
61
61
61

query I rowsort
SELECT ALL - + 42 FROM tab1 cor0
----
-42
-42
-42

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL > col1 - + + 44
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5021
SELECT DISTINCT 78 * - COUNT( * ) col0 FROM tab2
----
-234

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5021
SELECT DISTINCT 78 * - COUNT ( * ) col0 FROM tab2
----
-234

onlyif mysql # DIV for integer division: 
query II rowsort label-5022
SELECT col1 DIV ( + 99 ) * - - col1, + col1 FROM tab1
----
0
14
0
47
0
5

skipif mysql # not compatible
query II rowsort label-5022
SELECT col1 / ( + 99 ) * - - col1, + col1 FROM tab1
----
0
14
0
47
0
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5023
SELECT - COUNT( - col2 ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5023
SELECT - COUNT ( - col2 ) AS col2 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5024
SELECT DISTINCT - COUNT( * ) + + + 22 + - 38 FROM tab0
----
-19

skipif mysql # not compatible
query I rowsort label-5024
SELECT DISTINCT - COUNT ( * ) + + + 22 + - 38 FROM tab0
----
-19

query I rowsort
SELECT - col0 * - col1 + - - col0 + - col1 + col0 * - col2 AS col1 FROM tab2 AS cor0
----
1283
2355
683

query I rowsort
SELECT ALL 69 * col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL col2 + + - 42 AS col1 FROM tab0 AS cor0
----
-32
5
57

query I rowsort
SELECT DISTINCT - 98 - col0 FROM tab1 cor0
----
-149
-183
-189

onlyif mysql # aggregate syntax: 
query I rowsort label-5029
SELECT ALL 33 + + - MIN( - col2 ) FROM tab2 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-5029
SELECT ALL 33 + + - MIN ( - col2 ) FROM tab2 AS cor0
----
91

query III rowsort
SELECT * FROM tab2 cor0 WHERE + 99 * + col2 - + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5031
SELECT DISTINCT + COUNT( * ) + COUNT( * ) AS col0 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5031
SELECT DISTINCT + COUNT ( * ) + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
6

query I rowsort
SELECT ALL col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( + ( + + 75 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + 46 - + col2 * + col2 col0 FROM tab0 AS cor0
----
-14355
-4371
-560

query II rowsort
SELECT DISTINCT 25 AS col0, - col1 FROM tab2
----
25
-51
25
-67
25
-77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5035
SELECT ALL ( - col1 ) - + col1 + - col2 AS col1, + CAST( - 24 AS SIGNED ) FROM tab2
----
-125
-24
-192
-24
-194
-24

skipif mysql # not compatible
query II rowsort label-5035
SELECT ALL ( - col1 ) - + col1 + - col2 AS col1, + CAST ( - 24 AS INTEGER ) FROM tab2
----
-125
-24
-192
-24
-194
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-5036
SELECT ALL - COUNT( * ), 25 col0 FROM tab1
----
-3
25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5036
SELECT ALL - COUNT ( * ), 25 col0 FROM tab1
----
-3
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col2 ) col2 FROM tab1
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-5038
SELECT + ( col2 ) * - col0 - + + col0 DIV + col2 FROM tab1
----
-4896
-5016
-6189

skipif mysql # not compatible
query I rowsort label-5038
SELECT + ( col2 ) * - col0 - + + col0 / + col2 FROM tab1
----
-4896
-5016
-6189

onlyif mysql # aggregate syntax: 
query I rowsort label-5039
SELECT + COUNT( * ) col2 FROM tab0, tab1 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5039
SELECT + COUNT ( * ) col2 FROM tab0, tab1 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5040
SELECT DISTINCT + 12 * COUNT( * ) FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-5040
SELECT DISTINCT + 12 * COUNT ( * ) FROM tab2
----
36

query I rowsort
SELECT ALL + col2 * - - 15 AS col1 FROM tab0
----
1485
150
705

query I rowsort
SELECT ALL - col2 - + col0 * + ( - + 64 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( NULL ) BETWEEN NULL AND - 73
----

query II rowsort
SELECT - col2, col2 AS col2 FROM tab2 AS cor0
----
-23
23
-40
40
-58
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5045
SELECT ALL - COUNT( * ) FROM tab1 AS cor0 WHERE NULL >= + CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-5045
SELECT ALL - COUNT ( * ) FROM tab1 AS cor0 WHERE NULL >= + CAST ( NULL AS INTEGER )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 * + col1, 94 * + 40 col2 FROM tab2
----
2601
3760
4489
3760
5929
3760

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 INNER JOIN tab0 cor1 ON NOT ( ( NULL ) IS NOT NULL )
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5048
SELECT ALL - - CAST( - COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5048
SELECT ALL - - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT - col2 * + + ( + col0 ) * - ( - + col2 ) + - 96 AS col2 FROM tab1 AS cor0
----
-295981
-420880
-470112

onlyif mysql # aggregate syntax: 
query I rowsort label-5050
SELECT ALL - - COUNT( * ) AS col2 FROM tab0 WHERE - 88 >= col1 * col0 * - 78
----
3

skipif mysql # not compatible
query I rowsort label-5050
SELECT ALL - - COUNT ( * ) AS col2 FROM tab0 WHERE - 88 >= col1 * col0 * - 78
----
3

query I rowsort
SELECT DISTINCT - 5 * + 98 AS col2 FROM tab0
----
-490

onlyif mysql # aggregate syntax: 
query I rowsort label-5052
SELECT MAX( - 58 ) AS col2 FROM tab0
----
-58

skipif mysql # not compatible
query I rowsort label-5052
SELECT MAX ( - 58 ) AS col2 FROM tab0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5053
SELECT DISTINCT - MAX( DISTINCT + col0 ) * + MAX( + + col0 ) * + COUNT( * ) col1 FROM tab1
----
-24843

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5053
SELECT DISTINCT - MAX ( DISTINCT + col0 ) * + MAX ( + + col0 ) * + COUNT ( * ) col1 FROM tab1
----
-24843

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 = ( + + col0 * 79 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-5055
SELECT - 54 DIV + - ( - col2 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5055
SELECT - 54 / + - ( - col2 ) FROM tab1
----
0
0
0

query I rowsort
SELECT ALL - 61 * - - col2 FROM tab0
----
-2867
-6039
-610

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 * - col0 + - col1 <= - 86 / 51 - - - col0
----

query III rowsort
SELECT ALL * FROM tab2 WHERE 44 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5059
SELECT 7 * 49 * CAST( NULL AS DECIMAL ) / 20 * col2 + - 67 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5059
SELECT 7 * 49 * CAST ( NULL AS REAL ) / 20 * col2 + - 67 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 30 * + - col0 FROM tab1 AS cor0
----
-1530
-2550
-2730

query I rowsort
SELECT + 46 + 86 FROM tab0 AS cor0
----
132
132
132

onlyif mysql # aggregate syntax: 
query I rowsort label-5062
SELECT + COUNT( * ) + - + COUNT( * ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5062
SELECT + COUNT ( * ) + - + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - 31 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa

query I rowsort
SELECT + - 70 - + 5 AS col2 FROM tab2 AS cor0
----
-75
-75
-75

query I rowsort
SELECT DISTINCT - col0 + + - col2 + + 69 FROM tab1 AS cor0
----
-75
-78
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-5066
SELECT ALL + MIN( ALL + col0 ) + + COUNT( * ) FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-5066
SELECT ALL + MIN ( ALL + col0 ) + + COUNT ( * ) FROM tab0 AS cor0
----
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - + ( col2 ) col1 FROM tab1 AS cor0
----
-45
23
26

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - ( + col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - col0 + + 67 FROM tab0 AS cor0
----
154
164
82

query I rowsort
SELECT + col1 + - col2 + + col1 AS col1 FROM tab1 AS cor0
----
-49
-68
26

query I rowsort
SELECT - 1 + - col1 FROM tab2 AS cor0
----
-52
-68
-78

query I rowsort
SELECT DISTINCT + col1 * - col0 - col2 AS col0 FROM tab1 AS cor0
----
-4345
-484
-810

query I rowsort
SELECT 19 + + 54 AS col1 FROM tab0 AS cor0
----
73
73
73

query I rowsort
SELECT ALL + col0 * ( col2 ) - + + col0 + + - 30 * - 43 FROM tab0
----
10796
1980
2073

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 60 * + 80 col2 FROM tab2
----
4800

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5076
SELECT - 12 AS col0, + 6 DIV MIN( + 24 ) FROM tab2 AS cor0
----
-12
0

skipif mysql # not compatible
query II rowsort label-5076
SELECT - 12 AS col0, + 6 / MIN ( + 24 ) FROM tab2 AS cor0
----
-12
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5077
SELECT ALL - MAX( ALL + 25 ) col1 FROM tab2 AS cor0
----
-25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5077
SELECT ALL - MAX ( ALL + 25 ) col1 FROM tab2 AS cor0
----
-25

query I rowsort
SELECT + + ( - + col2 ) AS col1 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT ALL + col1 * - 26 FROM tab0
----
-2106
-26
-546

query I rowsort
SELECT + - 28 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115

query I rowsort
SELECT DISTINCT 51 * + col1 FROM tab2
----
2601
3417
3927

onlyif mysql # DIV for integer division: 
query I rowsort label-5082
SELECT ALL col0 DIV - + col1 AS col1 FROM tab1 AS cor0
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-5082
SELECT ALL col0 / - + col1 AS col1 FROM tab1 AS cor0
----
-1
-17
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 63 col2 FROM tab1 AS cor0
----
2961
315
882

query I rowsort
SELECT ALL - + col0 FROM tab1 AS cor0 WHERE NOT 86 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5085
SELECT DISTINCT + SUM( + ( + col1 ) ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-5085
SELECT DISTINCT + SUM ( + ( + col1 ) ) FROM tab1 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5086
SELECT ALL MAX( ALL - - 61 ) AS col1 FROM tab0 cor0
----
61

skipif mysql # not compatible
query I rowsort label-5086
SELECT ALL MAX ( ALL - - 61 ) AS col1 FROM tab0 cor0
----
61

query I rowsort
SELECT + col2 + - + 26 AS col2 FROM tab0
----
-16
21
73

query I rowsort
SELECT DISTINCT ( + - 16 ) + ( + col0 ) FROM tab1 AS cor0
----
35
69
75

query I rowsort
SELECT ALL 43 + + 64 + - col2 * - - col0 * + col0 FROM tab0 AS cor0
----
-10468
-75583
-931384

onlyif mysql # aggregate syntax: 
query I rowsort label-5090
SELECT ALL COUNT( col0 ) * - COUNT( * ) AS col1 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-5090
SELECT ALL COUNT ( col0 ) * - COUNT ( * ) AS col1 FROM tab0
----
-9

query I rowsort
SELECT ALL - 99 FROM tab1 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT + col1 AS col0 FROM tab2 AS cor0 WHERE NULL > - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5093
SELECT ALL - + CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5093
SELECT ALL - + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN 91 * + col2 AND + 36 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5095
SELECT SUM( - + 58 ) FROM tab0 AS cor0
----
-174

skipif mysql # not compatible
query I rowsort label-5095
SELECT SUM ( - + 58 ) FROM tab0 AS cor0
----
-174

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - col1 * + - col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 AS col0, 73 * + 4 col1 FROM tab0 AS cor0
----
-10
292
-47
292
-99
292

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col0 IN ( - + 26 * - - col1, col0, + - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5099
SELECT DISTINCT - col2 DIV + - 35 AS col2 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-5099
SELECT DISTINCT - col2 / + - 35 AS col2 FROM tab0
----
0
1
2

query II rowsort
SELECT - 57 * - - col1, col0 - col2 + - ( - 48 ) + 69 AS col2 FROM tab0
----
-1197
194
-4617
85
-57
115

onlyif mysql # aggregate syntax: 
query II rowsort label-5101
SELECT DISTINCT + MIN( 69 ) AS col2, ( + + MAX( + 76 ) ) FROM tab2
----
69
76

skipif mysql # not compatible
query II rowsort label-5101
SELECT DISTINCT + MIN ( 69 ) AS col2, ( + + MAX ( + 76 ) ) FROM tab2
----
69
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5102
SELECT ALL - 40 * - SUM( DISTINCT + CAST( + col0 AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
7960

skipif mysql # not compatible
query I rowsort label-5102
SELECT ALL - 40 * - SUM ( DISTINCT + CAST ( + col0 AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
7960

query I rowsort
SELECT 50 * + + col2 + col1 FROM tab0 cor0
----
2431
4951
521

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5104
SELECT DISTINCT + CAST( col0 AS SIGNED ) col2 FROM tab2
----
46
64
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5104
SELECT DISTINCT + CAST ( col0 AS INTEGER ) col2 FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5105
SELECT ALL - + COUNT( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5105
SELECT ALL - + COUNT ( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT ALL + ( + col0 ) + + col2 FROM tab2 cor0
----
104
133
69

query I rowsort
SELECT col1 * - - 14 FROM tab2 cor0
----
1078
714
938

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5108
SELECT MAX( - col2 ) DIV 73 col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5108
SELECT MAX ( - col2 ) / 73 col0 FROM tab2 AS cor0
----
0

query II rowsort
SELECT - col0 * ( + - col0 ), - col2 + + + col2 AS col0 FROM tab0 AS cor0
----
225
0
7569
0
9409
0

query I rowsort
SELECT ALL - col0 * + col0 + + - col1 FROM tab1 AS cor0
----
-2615
-7230
-8328

onlyif mysql # aggregate syntax: 
query II rowsort label-5111
SELECT 6 * - COUNT( * ) * - COUNT( * ), MAX( + + 86 ) AS col2 FROM tab0 AS cor0
----
54
86

skipif mysql # not compatible
query II rowsort label-5111
SELECT 6 * - COUNT ( * ) * - COUNT ( * ), MAX ( + + 86 ) AS col2 FROM tab0 AS cor0
----
54
86

query I rowsort
SELECT - + col0 FROM tab1 AS cor0 WHERE col0 * + 57 * + - col0 - + 50 * - - 40 * - + col2 BETWEEN - col2 AND NULL
----

query I rowsort
SELECT 87 * - 49 AS col1 FROM tab1 AS cor0
----
-4263
-4263
-4263

onlyif mysql # aggregate syntax: 
query I rowsort label-5114
SELECT - SUM( - - col2 ) AS col0 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-5114
SELECT - SUM ( - - col2 ) AS col0 FROM tab0
----
-156

query I rowsort
SELECT DISTINCT 49 + + + 32 AS col1 FROM tab0
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5116
SELECT DISTINCT + 62 * - COUNT( * ) + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5116
SELECT DISTINCT + 62 * - COUNT ( * ) + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + + col0 + col0 AS col0 FROM tab0 cor0
----
174
194
30

query I rowsort
SELECT ALL - 34 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

onlyif mysql # aggregate syntax: 
query I rowsort label-5119
SELECT ALL COUNT( * ) + + 11 AS col2 FROM ( tab0 cor0 CROSS JOIN tab0 AS cor1 )
----
20

skipif mysql # not compatible
query I rowsort label-5119
SELECT ALL COUNT ( * ) + + 11 AS col2 FROM ( tab0 cor0 CROSS JOIN tab0 AS cor1 )
----
20

query I rowsort
SELECT + 35 - + col1 AS col1 FROM tab1
----
-12
21
30

query I rowsort
SELECT - 12 FROM tab0 AS cor0 WHERE NULL >= ( NULL )
----

query II rowsort
SELECT - + 30 - - col1, col1 AS col2 FROM tab0 cor0
----
-29
1
-9
21
51
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - 66 col1 FROM tab1 AS cor0
----
-113
-71
-80

query I rowsort
SELECT DISTINCT - - 56 * + - 18 AS col0 FROM tab0 AS cor0
----
-1008

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5125
SELECT ALL * FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) * - - col2 / col0 + - + col1 * 35 = + CAST( NULL AS SIGNED ) / - col2
----

skipif mysql # not compatible
query III rowsort label-5125
SELECT ALL * FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) * - - col2 / col0 + - + col1 * 35 = + CAST ( NULL AS INTEGER ) / - col2
----

query I rowsort
SELECT + + 57 * col1 FROM tab2 AS cor0
----
2907
3819
4389

query I rowsort
SELECT DISTINCT + - 46 AS col2 FROM tab1 AS cor0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-5128
SELECT COUNT( * ) + - - 96 AS col1 FROM tab0 WHERE NOT + 20 * col1 + + col0 IS NULL
----
99

skipif mysql # not compatible
query I rowsort label-5128
SELECT COUNT ( * ) + - - 96 AS col1 FROM tab0 WHERE NOT + 20 * col1 + + col0 IS NULL
----
99

query II rowsort
SELECT - col0, + col1 FROM tab0
----
-15
81
-87
21
-97
1

query II rowsort
SELECT + - 4 AS col0, col2 AS col1 FROM tab1 AS cor0
----
-4
59
-4
68
-4
96

query I rowsort
SELECT ALL + ( - 82 ) FROM tab1 AS cor0
----
-82
-82
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-5132
SELECT + 6 DIV - col2 col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5132
SELECT + 6 / - col2 col0 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) > + - 22
----

query I rowsort
SELECT - 47 - + col2 FROM tab2
----
-105
-70
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5135
SELECT + col1 - col1 * + CAST( col0 + col2 AS SIGNED ) AS col2 FROM tab1
----
-2044
-715
-7426

skipif mysql # not compatible
query I rowsort label-5135
SELECT + col1 - col1 * + CAST ( col0 + col2 AS INTEGER ) AS col2 FROM tab1
----
-2044
-715
-7426

query I rowsort
SELECT + col2 AS col0 FROM tab2 WHERE NOT col0 / col1 NOT BETWEEN NULL AND col2 * 9
----

query I rowsort
SELECT DISTINCT - col0 * - ( col2 ) FROM tab0 WHERE NOT ( + col1 * - col1 ) < - ( - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5138
SELECT ALL - CAST( NULL AS SIGNED ) * - ( - 27 ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5138
SELECT ALL - CAST ( NULL AS INTEGER ) * - ( - 27 ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 * - 37 FROM tab1
----
2183
2516
3552

onlyif mysql # aggregate syntax: 
query I rowsort label-5140
SELECT + COUNT( * ) * 42 AS col2 FROM tab1
----
126

skipif mysql # not compatible
query I rowsort label-5140
SELECT + COUNT ( * ) * 42 AS col2 FROM tab1
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-5141
SELECT COUNT( * ) * ( - 35 ) AS col1 FROM tab1 WHERE - col1 - - 60 / col2 IN ( - 61 )
----
0

skipif mysql # not compatible
query I rowsort label-5141
SELECT COUNT ( * ) * ( - 35 ) AS col1 FROM tab1 WHERE - col1 - - 60 / col2 IN ( - 61 )
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 - + col1 NOT BETWEEN ( - 84 ) AND col2 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5143
SELECT ( COUNT( * ) ) * + 59 col0 FROM tab0
----
177

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5143
SELECT ( COUNT ( * ) ) * + 59 col0 FROM tab0
----
177

query I rowsort
SELECT DISTINCT 55 * + 65 AS col1 FROM tab0
----
3575

query I rowsort
SELECT ALL + 16 FROM tab2 WHERE - col0 - col0 NOT BETWEEN col1 AND ( NULL )
----
16
16
16

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 IN ( 14 * ( + col2 ) )
----

query I rowsort
SELECT col1 FROM tab1 WHERE + ( + 65 ) IS NOT NULL
----
14
47
5

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - col1 * + col1 ) IN ( + col1 * + ( col0 ) )
----

query I rowsort
SELECT ALL - 85 FROM tab0 WHERE + col1 + col1 IS NULL
----

query I rowsort
SELECT - col2 * - col1 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL ( + col2 ) + 19 * - col2 AS col1 FROM tab0
----
-1782
-180
-846

query I rowsort
SELECT ALL - 7 FROM tab1 WHERE NOT + 88 NOT BETWEEN NULL AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5153
SELECT + ( + COUNT( 71 ) ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5153
SELECT + ( + COUNT ( 71 ) ) AS col2 FROM tab1
----
3

query I rowsort
SELECT DISTINCT + 39 * + col0 FROM tab2 WHERE NOT NULL NOT IN ( col1 )
----

query I rowsort
SELECT ALL col2 AS col1 FROM tab2 WHERE NOT ( + ( - col0 ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5156
SELECT DISTINCT 38 * MAX( DISTINCT 59 ) AS col0 FROM tab1
----
2242

skipif mysql # not compatible
query I rowsort label-5156
SELECT DISTINCT 38 * MAX ( DISTINCT 59 ) AS col0 FROM tab1
----
2242

query I rowsort
SELECT ALL 64 + col1 FROM tab1 AS cor0
----
111
69
78

onlyif mysql # DIV for integer division: 
query I rowsort label-5158
SELECT DISTINCT + ( col1 ) + 5 DIV - col2 FROM tab0 cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-5158
SELECT DISTINCT + ( col1 ) + 5 / - col2 FROM tab0 cor0
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-5159
SELECT 1 * + 45 + + col2 DIV 39 AS col2 FROM tab2 AS cor0
----
45
46
46

skipif mysql # not compatible
query I rowsort label-5159
SELECT 1 * + 45 + + col2 / 39 AS col2 FROM tab2 AS cor0
----
45
46
46

onlyif mysql # DIV for integer division: 
query I rowsort label-5160
SELECT 40 DIV - col0 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5160
SELECT 40 / - col0 AS col1 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - 95 - col0 * + 76 ) = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5162
SELECT + col2 DIV ( + 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-5162
SELECT + col2 / ( + col1 ) col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + col1 / col1 FROM tab0 AS cor0 WHERE NOT ( + 89 * + col1 ) NOT BETWEEN NULL AND ( - 50 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 8 * col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5165
SELECT - MAX( + 90 ) FROM tab2 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-5165
SELECT - MAX ( + 90 ) FROM tab2 AS cor0
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5166
SELECT - CAST( 34 AS SIGNED ) AS col2 FROM tab1 cor0
----
-34
-34
-34

skipif mysql # not compatible
query I rowsort label-5166
SELECT - CAST ( 34 AS INTEGER ) AS col2 FROM tab1 cor0
----
-34
-34
-34

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( NULL ) IN ( col2 + col0 )
----

query I rowsort
SELECT ALL + ( 48 ) FROM tab0
----
48
48
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5169
SELECT ALL - COUNT( * ) * COUNT( * ) DIV + MIN( ALL - 78 * col0 ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5169
SELECT ALL - COUNT ( * ) * COUNT ( * ) / + MIN ( ALL - 78 * col0 ) AS col2 FROM tab2
----
0

query I rowsort
SELECT ALL col1 * - - col0 AS col2 FROM tab2
----
2346
4928
5025

query I rowsort
SELECT 9 AS col1 FROM tab2 WHERE NOT 48 * 83 <> - col0
----

query I rowsort
SELECT + 28 FROM tab2 WHERE NOT ( - col2 * - 82 ) < ( - 77 * + 24 )
----
28
28
28

onlyif mysql # DIV for integer division: 
query I rowsort label-5173
SELECT DISTINCT - + col1 DIV + - col2 FROM tab2 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-5173
SELECT DISTINCT - + col1 / + - col2 FROM tab2 AS cor0
----
1
2

query I rowsort
SELECT + + 40 + + col0 - - ( - col1 - + col0 ) * 85 FROM tab2 cor0
----
-11881
-11955
-8159

query I rowsort
SELECT + col0 FROM tab1 cor0 WHERE NOT ( NULL ) NOT IN ( - 13 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5176
SELECT - COUNT( * ) + + 58 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5176
SELECT - COUNT ( * ) + + 58 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - + col1 * col0 * col2 + 52 AS col2 FROM tab0 AS cor0
----
-18218
-57053
-9551

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5178
SELECT + CAST( NULL AS SIGNED ) + col1 * - - 55 / + 62 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5178
SELECT + CAST ( NULL AS INTEGER ) + col1 * - - 55 / + 62 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5179
SELECT + CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5179
SELECT + CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab0 AS cor0 WHERE ( - 16 ) IS NOT NULL
----
15
87
97

query I rowsort
SELECT ALL - + col1 + + - col2 - - + 70 AS col0 FROM tab1 AS cor0
----
-40
-45
6

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( NULL ) < + 99 * col0 - 71
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5183
SELECT DISTINCT - 81 + - - 89 + 5 + COUNT( * ) col2 FROM tab0 AS cor0
----
16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5183
SELECT DISTINCT - 81 + - - 89 + 5 + COUNT ( * ) col2 FROM tab0 AS cor0
----
16

query I rowsort
SELECT ALL 26 + - col0 FROM tab2 AS cor0
----
-20
-38
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-5185
SELECT + MAX( DISTINCT 35 ) * + COUNT( * ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
105

skipif mysql # not compatible
query I rowsort label-5185
SELECT + MAX ( DISTINCT 35 ) * + COUNT ( * ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
105

query II rowsort
SELECT - 83 AS col1, col0 * - - col0 FROM tab1 AS cor0
----
-83
2601
-83
7225
-83
8281

query I rowsort
SELECT DISTINCT - 41 + - + col2 FROM tab2 AS cor0
----
-64
-81
-99

query I rowsort
SELECT - ( col2 ) * 50 - - 45 AS col2 FROM tab0 AS cor0
----
-2305
-455
-4905

query I rowsort
SELECT 61 AS col0 FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT - col2 * + col2 + col2 * - 2 + col2 FROM tab0
----
-110
-2256
-9900

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN - col0 / - ( 92 ) + col1 AND ( ( 65 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) < ( NULL )
----

query I rowsort
SELECT - col0 + - ( - col0 ) AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5194
SELECT SUM( ALL + ( - col2 ) ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-5194
SELECT SUM ( ALL + ( - col2 ) ) FROM tab2 AS cor0
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-5195
SELECT ALL ( + 55 ) + COUNT( * ) FROM tab1 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-5195
SELECT ALL ( + 55 ) + COUNT ( * ) FROM tab1 AS cor0
----
58

query I rowsort
SELECT DISTINCT + col0 - 68 FROM tab0 AS cor0
----
-53
19
29

query I rowsort
SELECT DISTINCT col2 * - + 6 FROM tab0 cor0 WHERE + col0 IS NOT NULL
----
-282
-594
-60

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL IN ( col1 - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5199
SELECT 9 DIV - 1 AS col0 FROM tab2
----
-9
-9
-9

skipif mysql # not compatible
query I rowsort label-5199
SELECT 9 / - 1 AS col0 FROM tab2
----
-9
-9
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5200
SELECT ALL - 84 * - - 67 * + 43 / AVG ( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5200
SELECT ALL - 84 * - - 67 * + 43 / AVG ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5201
SELECT MAX( + - 41 ) FROM tab1
----
-41

skipif mysql # not compatible
query I rowsort label-5201
SELECT MAX ( + - 41 ) FROM tab1
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-5202
SELECT ALL - COUNT( DISTINCT + + col2 ) * 5 AS col1 FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-5202
SELECT ALL - COUNT ( DISTINCT + + col2 ) * 5 AS col1 FROM tab1 AS cor0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5203
SELECT - col1 AS col2 FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) / 14 * + 42 NOT IN ( - + 21 * col2 )
----

skipif mysql # not compatible
query I rowsort label-5203
SELECT - col1 AS col2 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) / 14 * + 42 NOT IN ( - + 21 * col2 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND ( - col0 )
----

query II rowsort
SELECT ALL + + 63 * col1 - + col1 AS col2, col1 FROM tab1 AS cor0
----
2914
47
310
5
868
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5206
SELECT DISTINCT - MIN( DISTINCT - col1 ) AS col1 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-5206
SELECT DISTINCT - MIN ( DISTINCT - col1 ) AS col1 FROM tab2 AS cor0
----
77

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN col0 / col1 - + - col2 AND + col0 * 12
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5208
SELECT - COUNT( * ) + 11 FROM tab2 WHERE NOT NULL <= + - 21 / + + col1 + ( col1 ) + col0 * col1 * + col2
----
11

skipif mysql # not compatible
query I rowsort label-5208
SELECT - COUNT ( * ) + 11 FROM tab2 WHERE NOT NULL <= + - 21 / + + col1 + ( col1 ) + col0 * col1 * + col2
----
11

query II rowsort
SELECT - col0 AS col0, col0 - + col0 * - col1 AS col2 FROM tab2
----
-46
2392
-64
4992
-75
5100

onlyif mysql # aggregate syntax: 
query II rowsort label-5210
SELECT ALL + COUNT( * ), - COUNT( * ) AS col0 FROM tab2 WHERE + 18 IS NOT NULL
----
3
-3

skipif mysql # not compatible
query II rowsort label-5210
SELECT ALL + COUNT ( * ), - COUNT ( * ) AS col0 FROM tab2 WHERE + 18 IS NOT NULL
----
3
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 71 col2, - 89 + + + 91 FROM tab0
----
71
2
71
2
71
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5212
SELECT DISTINCT - COUNT( - + 90 ) * + - COUNT( * ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-5212
SELECT DISTINCT - COUNT ( - + 90 ) * + - COUNT ( * ) FROM tab2
----
9

query I rowsort
SELECT - col0 * col1 AS col2 FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5214
SELECT DISTINCT + - col2 + + + CAST( - col0 AS SIGNED ) * col2 FROM tab2 AS cor0
----
-1081
-2600
-4408

skipif mysql # not compatible
query I rowsort label-5214
SELECT DISTINCT + - col2 + + + CAST ( - col0 AS INTEGER ) * col2 FROM tab2 AS cor0
----
-1081
-2600
-4408

onlyif mysql # aggregate syntax: 
query I rowsort label-5215
SELECT COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-5215
SELECT COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-5216
SELECT 0 + + col2 DIV + col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5216
SELECT 0 + + col2 / + col2 FROM tab2
----
1
1
1

query I rowsort
SELECT ALL col1 * + - col1 AS col2 FROM tab1
----
-196
-2209
-25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col1 + + + col0 - + + col2, col2 col1 FROM tab2 AS cor0
----
-28
23
-50
58
-53
40

query II rowsort
SELECT col1 + + col1, col2 FROM tab1 AS cor0
----
10
59
28
96
94
68

query II rowsort
SELECT ALL + ( - + col0 ) * col1, col1 AS col0 FROM tab0 AS cor0
----
-1215
81
-1827
21
-97
1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - col0 ) <= ( - col1 )
----
15
81
47

query I rowsort
SELECT col1 - + 17 AS col1 FROM tab0
----
-16
4
64

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 35 / + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 44 * + 5 + - + col0 AS col0 FROM tab0 WHERE col1 IS NOT NULL
----
123
133
205

onlyif mysql # aggregate syntax: 
query I rowsort label-5225
SELECT + COUNT( * ) - - 89 + - 11 * COUNT( * ) AS col0 FROM tab2
----
59

skipif mysql # not compatible
query I rowsort label-5225
SELECT + COUNT ( * ) - - 89 + - 11 * COUNT ( * ) AS col0 FROM tab2
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5226
SELECT DISTINCT + - CAST( - col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-5226
SELECT DISTINCT + - CAST ( - col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
1
21
81

query II rowsort
SELECT DISTINCT col0, col0 * + 51 * 67 * - - col0 AS col0 FROM tab0 AS cor0
----
15
768825
87
25863273
97
32150553

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL NOT BETWEEN NULL AND - ( + col1 ) )
----

query II rowsort
SELECT col1 * + col1 AS col1, - col2 AS col1 FROM tab0 AS cor0 WHERE NOT + 35 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 6 AS col2 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5231
SELECT * FROM tab2 AS cor0 WHERE NOT + ( + + ( + + CAST( NULL AS SIGNED ) ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5231
SELECT * FROM tab2 AS cor0 WHERE NOT + ( + + ( + + CAST ( NULL AS INTEGER ) ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5232
SELECT + COUNT( * ) DIV - 37 FROM tab2 AS cor0 WHERE NOT NULL > 27
----
0

skipif mysql # not compatible
query I rowsort label-5232
SELECT + COUNT ( * ) / - 37 FROM tab2 AS cor0 WHERE NOT NULL > 27
----
0

query I rowsort
SELECT + + 46 * + 96 + - 87 AS col0 FROM tab0 AS cor0
----
4329
4329
4329

query I rowsort
SELECT ALL - + 4 AS col2 FROM tab2 AS cor0
----
-4
-4
-4

query I rowsort
SELECT ALL - ( - - col2 ) * + 4 FROM tab0 AS cor0
----
-188
-396
-40

query I rowsort
SELECT 79 * - col1 AS col1 FROM tab0 cor0
----
-1659
-6399
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5237
SELECT 93 * + CAST( NULL AS SIGNED ) * AVG ( col1 ) * - 37 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5237
SELECT 93 * + CAST ( NULL AS INTEGER ) * AVG ( col1 ) * - 37 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5238
SELECT SUM( - 20 ) AS col2 FROM tab2
----
-60

skipif mysql # not compatible
query I rowsort label-5238
SELECT SUM ( - 20 ) AS col2 FROM tab2
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5239
SELECT ( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5239
SELECT ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5240
SELECT - col0 AS col1, + col0 FROM tab0 WHERE NOT + CAST( NULL AS DECIMAL ) BETWEEN + 23 * - col2 AND + col2 * + col0
----

skipif mysql # not compatible
query II rowsort label-5240
SELECT - col0 AS col1, + col0 FROM tab0 WHERE NOT + CAST ( NULL AS REAL ) BETWEEN + 23 * - col2 AND + col2 * + col0
----

query I rowsort
SELECT DISTINCT + col2 * ( - + 51 ) FROM tab2
----
-1173
-2040
-2958

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 2 col2 FROM tab1 WHERE 32 + - col1 * - 99 > NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col2 ) NOT IN ( col2 )
----

query I rowsort
SELECT 34 FROM tab2 AS cor0 WHERE ( ( NULL ) IS NOT NULL )
----

query I rowsort
SELECT DISTINCT - - col2 * - - col0 FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-5246
SELECT + COUNT( * ) col0 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN + col1 AND ( - col1 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5246
SELECT + COUNT ( * ) col0 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN + col1 AND ( - col1 )
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + 2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 + - col1 + col1 + - col1 + col1 * col1 FROM tab0 AS cor0
----
507
6495
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + - col1 - col1 col0 FROM tab0 AS cor0
----
-2
-462
-6642

query I rowsort
SELECT ALL + 41 + + col2 AS col1 FROM tab0 AS cor0
----
140
51
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5251
SELECT DISTINCT - col2 - CAST( 83 AS SIGNED ) + col2 FROM tab1 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-5251
SELECT DISTINCT - col2 - CAST ( 83 AS INTEGER ) + col2 FROM tab1 AS cor0
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5252
SELECT - 49 * + 62 - + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5252
SELECT - 49 * + 62 - + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5253
SELECT ALL - + 52 DIV + COUNT( * ) + - ( - 93 ) FROM tab0 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-5253
SELECT ALL - + 52 / + COUNT ( * ) + - ( - 93 ) FROM tab0 AS cor0
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-5254
SELECT ALL 53 DIV col0 + + + 23 + + + 83 * - - col2 * col1 + + col0 + 5 DIV 37 * - - 85 FROM tab1 AS cor0
----
111627
24593
265382

skipif mysql # not compatible
query I rowsort label-5254
SELECT ALL 53 / col0 + + + 23 + + + 83 * - - col2 * col1 + + col0 + 5 / 37 * - - 85 FROM tab1 AS cor0
----
111627
24593
265382

query I rowsort
SELECT + col0 + 14 + col1 AS col1 FROM tab1 AS cor0
----
104
152
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5256
SELECT - COUNT( * ) + - 57 FROM tab1 cor0
----
-60

skipif mysql # not compatible
query I rowsort label-5256
SELECT - COUNT ( * ) + - 57 FROM tab1 cor0
----
-60

query I rowsort
SELECT col1 / + 3 * - ( + + 37 ) + - ( - 76 ) / - col2 FROM tab2 WHERE NULL NOT BETWEEN + - col1 + + - 43 + 6 + + col0 * - col0 AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5258
SELECT ALL + col1 - - col2 - - col2 + - 30 DIV + col1 + + 22 FROM tab1
----
139
205
226

skipif mysql # not compatible
query I rowsort label-5258
SELECT ALL + col1 - - col2 - - col2 + - 30 / + col1 + + 22 FROM tab1
----
139
205
226

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE NOT ( col0 = + + col1 )
----
-51
-85
-91

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5261
SELECT + COUNT( * ) FROM tab1, tab2 AS cor0 WHERE NOT NULL = + + 48
----
0

skipif mysql # not compatible
query I rowsort label-5261
SELECT + COUNT ( * ) FROM tab1, tab2 AS cor0 WHERE NOT NULL = + + 48
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col0 col2 FROM tab1 cor0
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-5263
SELECT DISTINCT + MIN( DISTINCT + + 46 ) + + 80 FROM tab2 AS cor0 WHERE NULL BETWEEN col2 * - col0 * col1 * ( + col0 ) * col1 AND - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5263
SELECT DISTINCT + MIN ( DISTINCT + + 46 ) + + 80 FROM tab2 AS cor0 WHERE NULL BETWEEN col2 * - col0 * col1 * ( + col0 ) * col1 AND - col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5264
SELECT ALL + col2 col2 FROM tab2 AS cor0 WHERE NOT col2 NOT IN ( - - CAST( - col0 AS SIGNED ) + - + col1 + + col1 + + 40 / + + col2, - 24 * - col0 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5264
SELECT ALL + col2 col2 FROM tab2 AS cor0 WHERE NOT col2 NOT IN ( - - CAST ( - col0 AS INTEGER ) + - + col1 + + col1 + + 40 / + + col2, - 24 * - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5265
SELECT - + COUNT( ALL + 68 ) FROM tab2 AS cor0 WHERE NOT - col1 * + - 18 NOT BETWEEN ( NULL ) AND + col2
----
0

skipif mysql # not compatible
query I rowsort label-5265
SELECT - + COUNT ( ALL + 68 ) FROM tab2 AS cor0 WHERE NOT - col1 * + - 18 NOT BETWEEN ( NULL ) AND + col2
----
0

query I rowsort
SELECT - - col0 * + ( - - col0 ) AS col0 FROM tab2 AS cor0
----
2116
4096
5625

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - - 43 * + + col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL - 50, col2 AS col2 FROM tab2
----
-50
23
-50
40
-50
58

query I rowsort
SELECT + col2 * - + col1 - + 94 + + + col0 FROM tab0 WHERE NOT - 62 IS NULL
----
-217
-3886
-96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5270
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN - ( + col1 ) AND col2 * CAST( NULL AS SIGNED ) * - - col1
----

skipif mysql # not compatible
query III rowsort label-5270
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN - ( + col1 ) AND col2 * CAST ( NULL AS INTEGER ) * - - col1
----

query II rowsort
SELECT - + col0 AS col0, - col1 FROM tab2 AS cor0
----
-46
-51
-64
-77
-75
-67

query I rowsort
SELECT ALL - - ( - 75 ) FROM tab0 AS cor0 WHERE NOT ( ( NULL = + 59 ) )
----

query I rowsort
SELECT - col1 * + col1 * + + 85 AS col1 FROM tab1 AS cor0
----
-16660
-187765
-2125

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col2 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 * + 1 * col2 AS col1 FROM tab1
----
3481
4624
9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 74 col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
74
74
74

query I rowsort
SELECT ALL 67 * + - ( - - col1 ) AS col2 FROM tab0
----
-1407
-5427
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-5278
SELECT 95 DIV + - col2 AS col0 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5278
SELECT 95 / + - col2 AS col0 FROM tab1
----
-1
-1
0

query I rowsort
SELECT ALL + col2 + + - 19 FROM tab1
----
40
49
77

query I rowsort
SELECT DISTINCT + col2 * 73 + - col0 * - col0 + 9 + + col2 AS col2 FROM tab1 AS cor0
----
11600
13322
9714

query I rowsort
SELECT DISTINCT - 18 + - - col0 FROM tab0 AS cor0
----
-3
69
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5282
SELECT DISTINCT MAX( 28 ) * + COUNT( * ) * + COUNT( * ) - + - 82 FROM tab1 AS cor0
----
334

skipif mysql # not compatible
query I rowsort label-5282
SELECT DISTINCT MAX ( 28 ) * + COUNT ( * ) * + COUNT ( * ) - + - 82 FROM tab1 AS cor0
----
334

query I rowsort
SELECT + 87 + - + 92 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

query III rowsort
SELECT * FROM tab0 WHERE ( NOT 81 - col2 + + col2 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col0 + + 52 FROM tab1 cor0
----
103
137
143

query I rowsort
SELECT DISTINCT 49 - + col0 + + 65 FROM tab0 AS cor0
----
17
27
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5287
SELECT ALL - + ( SUM( ( + - 7 ) ) ) + 63 AS col2 FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-5287
SELECT ALL - + ( SUM ( ( + - 7 ) ) ) + 63 AS col2 FROM tab0 AS cor0
----
84

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <= - 18 OR 38 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 - + 57 FROM tab0
----
-42
30
40

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 35 / - col1 * + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5291
SELECT DISTINCT col0 * + CAST( NULL AS SIGNED ) / - 70 * 51 / + - col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5291
SELECT DISTINCT col0 * + CAST ( NULL AS INTEGER ) / - 70 * 51 / + - col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5292
SELECT DISTINCT + ( - - COUNT( * ) ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5292
SELECT DISTINCT + ( - - COUNT ( * ) ) AS col1 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5293
SELECT ALL + col1 * + CAST( 15 AS SIGNED ) FROM tab0
----
1215
15
315

skipif mysql # not compatible
query I rowsort label-5293
SELECT ALL + col1 * + CAST ( 15 AS INTEGER ) FROM tab0
----
1215
15
315

onlyif mysql # DIV for integer division: 
query I rowsort label-5294
SELECT DISTINCT + + col1 DIV + col1 AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5294
SELECT DISTINCT + + col1 / + col1 AS col1 FROM tab0 AS cor0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5295
SELECT - COUNT( DISTINCT 18 ) + + CAST( NULL AS SIGNED ) FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5295
SELECT - COUNT ( DISTINCT 18 ) + + CAST ( NULL AS INTEGER ) FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE ( NULL ) IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5296
SELECT * FROM tab0 WHERE NOT + + CAST( - col2 AS SIGNED ) * + col0 > NULL
----

skipif mysql # not compatible
query III rowsort label-5296
SELECT * FROM tab0 WHERE NOT + + CAST ( - col2 AS INTEGER ) * + col0 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5297
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 * + + col1 * - col2 > CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5297
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 * + + col1 * - col2 > CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT DISTINCT col2 + col1, col0 * 57 + col1 + col1 AS col2 FROM tab0 cor0
----
100
5531
128
1017
31
5001

query I rowsort
SELECT ALL + ( 22 ) + - + 60 - + col0 FROM tab2 AS cor0
----
-102
-113
-84

query I rowsort
SELECT - + 6 * + + col2 FROM tab1 cor0
----
-354
-408
-576

onlyif mysql # aggregate syntax: 
query I rowsort label-5301
SELECT - 35 * - ( - SUM( ALL col2 ) ) FROM tab0 cor0
----
-5460

skipif mysql # not compatible
query I rowsort label-5301
SELECT - 35 * - ( - SUM ( ALL col2 ) ) FROM tab0 cor0
----
-5460

query II rowsort
SELECT - col2 * - col2, + ( 67 ) - + 87 AS col2 FROM tab1 AS cor0
----
3481
-20
4624
-20
9216
-20

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 + ( 51 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN + + col2 AND - + 57
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5305
SELECT DISTINCT + 58 + COUNT( * ) AS col1 FROM tab2
----
61

skipif mysql # not compatible
query I rowsort label-5305
SELECT DISTINCT + 58 + COUNT ( * ) AS col1 FROM tab2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5306
SELECT - COUNT( - col2 ) + + + ( - 80 ) FROM tab2 cor0
----
-83

skipif mysql # not compatible
query I rowsort label-5306
SELECT - COUNT ( - col2 ) + + + ( - 80 ) FROM tab2 cor0
----
-83

query II rowsort
SELECT DISTINCT + 47 + 11 * - - col2 AS col0, - col0 FROM tab0 AS cor0
----
1136
-97
157
-87
564
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-5308
SELECT + MIN( - 93 ) FROM tab2 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-5308
SELECT + MIN ( - 93 ) FROM tab2 AS cor0
----
-93

query I rowsort
SELECT - + ( - col1 ) * + col0 + + col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5310
SELECT ALL + COUNT( ALL - + 6 ) - - 39 FROM tab2 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-5310
SELECT ALL + COUNT ( ALL - + 6 ) - - 39 FROM tab2 AS cor0
----
42

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - ( - col2 ) * col1 IS NULL
----

query I rowsort
SELECT 42 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

query II rowsort
SELECT + 89 - col0 AS col2, - col2 AS col1 FROM tab0
----
-8
-99
2
-10
74
-47

query I rowsort
SELECT - col2 - + col2 + - - col0 FROM tab0 AS cor0
----
-101
-79
67

query I rowsort
SELECT ALL - - 87 * + 45 FROM tab0 AS cor0
----
3915
3915
3915

onlyif mysql # DIV for integer division: 
query I rowsort label-5316
SELECT + - 68 + + 17 DIV - col0 FROM tab0 AS cor0
----
-68
-68
-69

skipif mysql # not compatible
query I rowsort label-5316
SELECT + - 68 + + 17 / - col0 FROM tab0 AS cor0
----
-68
-68
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5317
SELECT + CAST( - CAST( 94 AS SIGNED ) AS SIGNED ) FROM tab0 AS cor0
----
-94
-94
-94

skipif mysql # not compatible
query I rowsort label-5317
SELECT + CAST ( - CAST ( 94 AS INTEGER ) AS INTEGER ) FROM tab0 AS cor0
----
-94
-94
-94

query I rowsort
SELECT DISTINCT - col0 * + + ( + col1 ) AS col1 FROM tab0 AS cor0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5319
SELECT ALL + SUM( - + col0 ) AS col2 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-5319
SELECT ALL + SUM ( - + col0 ) AS col2 FROM tab2 AS cor0
----
-185

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 * - col0 * col2 / col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + - 12 AS col0 FROM tab2 cor0
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-5322
SELECT - 3 AS col2, - COUNT( * ) FROM tab2 WHERE NOT col2 < + col2
----
-3
-3

skipif mysql # not compatible
query II rowsort label-5322
SELECT - 3 AS col2, - COUNT ( * ) FROM tab2 WHERE NOT col2 < + col2
----
-3
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5323
SELECT COUNT( * ) DIV - + 78 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5323
SELECT COUNT ( * ) / - + 78 AS col2 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 AS col0, 19 * ( + 92 ) col0 FROM tab1
----
59
1748
68
1748
96
1748

query I rowsort
SELECT + col0 * - col2 * - + 58 AS col2 FROM tab2 cor0
----
148480
252300
61364

query I rowsort
SELECT col0 * + col0 * - + col0 * - 18 AS col0 FROM tab1 AS cor0
----
11054250
13564278
2387718

onlyif mysql # DIV for integer division: 
query I rowsort label-5327
SELECT ALL - - col1 DIV - - 81 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5327
SELECT ALL - - col1 / - - 81 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - 45 * - ( + ( ( col1 ) ) ) AS col1 FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3645
45
945

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5329
SELECT DISTINCT + 14 * + - 25 - - col1, - CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
-269
NULL
-329
NULL
-349
NULL

skipif mysql # not compatible
query II rowsort label-5329
SELECT DISTINCT + 14 * + - 25 - - col1, - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
-269
NULL
-329
NULL
-349
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5330
SELECT - - col0 * - col2 + + + ( - col2 ) + 2 FROM tab2 WHERE NOT NULL = col2 * + CAST( NULL AS SIGNED ) * + ( - ( CAST( - col0 AS SIGNED ) ) ) + 3
----

skipif mysql # not compatible
query I rowsort label-5330
SELECT - - col0 * - col2 + + + ( - col2 ) + 2 FROM tab2 WHERE NOT NULL = col2 * + CAST ( NULL AS INTEGER ) * + ( - ( CAST ( - col0 AS INTEGER ) ) ) + 3
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5331
SELECT - + COUNT( * ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
-9

skipif mysql # not compatible
query I rowsort label-5331
SELECT - + COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-5332
SELECT - 74 DIV - 98 col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5332
SELECT - 74 / - 98 col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT 55 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
55

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5334
SELECT - - MIN( + col1 ) + - CAST( NULL AS DECIMAL ) * + - 85 AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5334
SELECT - - MIN ( + col1 ) + - CAST ( NULL AS REAL ) * + - 85 AS col0 FROM tab0 cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5335
SELECT - 53 * CAST( NULL AS SIGNED ) + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5335
SELECT - 53 * CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + col1 + - 69 FROM tab0 AS cor0 WHERE NOT 4 IS NULL
----
-48
-68
12

query I rowsort
SELECT - col1 + + col2 - + 15 + - 27 AS col1 FROM tab1 AS cor0
----
-21
12
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5338
SELECT DISTINCT - MAX( + + col2 ) AS col1 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-5338
SELECT DISTINCT - MAX ( + + col2 ) AS col1 FROM tab2 AS cor0
----
-58

query II rowsort
SELECT DISTINCT col0 AS col0, + 10 + + col2 AS col0 FROM tab2 AS cor0
----
46
33
64
50
75
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5340
SELECT DISTINCT - - MIN( + - col2 ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-5340
SELECT DISTINCT - - MIN ( + - col2 ) FROM tab1 AS cor0
----
-96

query I rowsort
SELECT - 14 * + + col2 AS col2 FROM tab0 AS cor0
----
-1386
-140
-658

query I rowsort
SELECT 29 * - col0 AS col0 FROM tab1
----
-1479
-2465
-2639

query III rowsort
SELECT * FROM tab1 WHERE + - col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5344
SELECT + 81 * COUNT( * ) AS col2 FROM tab1
----
243

skipif mysql # not compatible
query I rowsort label-5344
SELECT + 81 * COUNT ( * ) AS col2 FROM tab1
----
243

query I rowsort
SELECT DISTINCT - ( col1 ) * + col1 FROM tab1
----
-196
-2209
-25

query I rowsort
SELECT ALL 74 + - col1 FROM tab2
----
-3
23
7

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN col2 AND NULL
----

query I rowsort
SELECT col1 * + + col2 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
1173
3080
3886

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 * - + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col1 - + - col0 + col2 AS col2 FROM tab2 AS cor0
----
120
181
200

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - col1 IN ( - 66 * - 39 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5352
SELECT ALL 59 - COUNT( ALL - col1 ) AS col1 FROM tab1
----
56

skipif mysql # not compatible
query I rowsort label-5352
SELECT ALL 59 - COUNT ( ALL - col1 ) AS col1 FROM tab1
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5353
SELECT + col0 + CAST( - - 68 AS SIGNED ) AS col0 FROM tab1
----
119
153
159

skipif mysql # not compatible
query I rowsort label-5353
SELECT + col0 + CAST ( - - 68 AS INTEGER ) AS col0 FROM tab1
----
119
153
159

onlyif mysql # aggregate syntax: 
query I rowsort label-5354
SELECT ALL + COUNT( + 45 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5354
SELECT ALL + COUNT ( + 45 ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL - ( - 16 ) AS col0 FROM tab1 AS cor0
----
16
16
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 24 col2 FROM tab0 AS cor0
----
-24
-24
-24

query I rowsort
SELECT ALL col0 AS col0 FROM tab1 cor0 WHERE 84 NOT BETWEEN ( col2 ) AND ( NULL )
----
51

query I rowsort
SELECT + + 70 AS col2 FROM tab0 cor0
----
70
70
70

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5359
SELECT ALL col0, 31 * + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-5359
SELECT ALL col0, 31 * + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5360
SELECT ALL MIN( ALL + - col1 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-5360
SELECT ALL MIN ( ALL + - col1 ) FROM tab0 AS cor0
----
-81

query II rowsort
SELECT ALL - col1 * - col2, col2 AS col1 FROM tab2
----
1173
23
3080
40
3886
58

query I rowsort
SELECT ALL + ( - 85 ) AS col1 FROM tab2 WHERE NULL NOT IN ( col0 )
----

query I rowsort
SELECT ALL - col2 AS col2 FROM tab1 WHERE + - col0 > NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5364
SELECT DISTINCT + 42 * + COUNT( * ) DIV + COUNT( * ) FROM tab1
----
42

skipif mysql # not compatible
query I rowsort label-5364
SELECT DISTINCT + 42 * + COUNT ( * ) / + COUNT ( * ) FROM tab1
----
42

query II rowsort
SELECT ALL + col0 * col0, col2 FROM tab0
----
225
47
7569
10
9409
99

query I rowsort
SELECT ALL col2 FROM tab2 WHERE NOT ( - 99 IS NULL )
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - - col2 col0 FROM tab2
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-5368
SELECT DISTINCT MIN( + + ( + col1 ) ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5368
SELECT DISTINCT MIN ( + + ( + col1 ) ) AS col1 FROM tab0 AS cor0
----
1

query I rowsort
SELECT + + col0 * + col2 + - col2 AS col0 FROM tab0 AS cor0
----
658
860
9504

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 + + + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col0 * + 51 FROM tab2
----
2346
3264
3825

query I rowsort
SELECT - 26 AS col1 FROM tab2 WHERE + 7 IS NULL
----

query I rowsort
SELECT ALL col1 AS col1 FROM tab0 WHERE col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5374
SELECT ALL + + COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( - 34 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5374
SELECT ALL + + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( - 34 ) IS NULL
----
3

query II rowsort
SELECT DISTINCT col1, 62 AS col1 FROM tab0 AS cor0
----
1
62
21
62
81
62

query I rowsort
SELECT DISTINCT - 75 - + + col0 FROM tab0 cor0 WHERE NOT ( + col2 ) IS NOT NULL
----

query I rowsort
SELECT + 67 * + col0 + col0 FROM tab2 cor0
----
3128
4352
5100

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5378
SELECT ALL - + col1 + + 82 + - CAST( NULL AS SIGNED ) + - + 87 / - col0 AS col1, + col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-5378
SELECT ALL - + col1 + + 82 + - CAST ( NULL AS INTEGER ) + - + 87 / - col0 AS col1, + col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

query I rowsort
SELECT - 72 * - + 87 FROM tab2 AS cor0
----
6264
6264
6264

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5380
SELECT DISTINCT - col0 DIV - col0 + - CAST( - col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
16
88
98

skipif mysql # not compatible
query I rowsort label-5380
SELECT DISTINCT - col0 / - col0 + - CAST ( - col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
16
88
98

query I rowsort
SELECT 66 + - ( + col2 ) - + + 40 * 58 AS col1 FROM tab1 AS cor0
----
-2313
-2322
-2350

query I rowsort
SELECT ALL + 93 * + col2 AS col1 FROM tab2 cor0
----
2139
3720
5394

query I rowsort
SELECT + 18 + ( + col1 ) FROM tab1
----
23
32
65

onlyif mysql # DIV for integer division: 
query I rowsort label-5384
SELECT DISTINCT col1 DIV 90 + col2 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-5384
SELECT DISTINCT col1 / 90 + col2 FROM tab2
----
23
40
58

query I rowsort
SELECT DISTINCT col1 * - 48 FROM tab0
----
-1008
-3888
-48

query II rowsort
SELECT 13 + col1, col1 FROM tab1
----
18
5
27
14
60
47

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL = ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5388
SELECT DISTINCT + col2 DIV + + col0 col1 FROM tab1
----
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5388
SELECT DISTINCT + col2 / + + col0 col1 FROM tab1
----
0
1

query I rowsort
SELECT DISTINCT + col1 + + 28 AS col0 FROM tab0 AS cor0
----
109
29
49

query I rowsort
SELECT DISTINCT col1 + col0 FROM tab0 AS cor0 WHERE - col2 + - + col0 IS NULL
----

query I rowsort
SELECT ALL - col1 - 2 + - col2 FROM tab2
----
-119
-127
-76

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT - col0 BETWEEN + 99 AND - + col2 + - + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5393
SELECT ALL COUNT( * ) * - 90 FROM tab0
----
-270

skipif mysql # not compatible
query I rowsort label-5393
SELECT ALL COUNT ( * ) * - 90 FROM tab0
----
-270

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5394
SELECT - ( + + CAST( + col1 AS SIGNED ) ) FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-5394
SELECT - ( + + CAST ( + col1 AS INTEGER ) ) FROM tab2 AS cor0
----
-51
-67
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 79 * - col0 + 84, + col0 * + + col1 col1 FROM tab2 cor0
----
-3550
2346
-4972
4928
-5841
5025

query I rowsort
SELECT + - 40 FROM tab2 cor0
----
-40
-40
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-5397
SELECT ALL + 93 * - + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5397
SELECT ALL + 93 * - + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE col1 IS NULL
----
0

query II rowsort
SELECT DISTINCT 14 AS col2, col1 AS col1 FROM tab2
----
14
51
14
67
14
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 61 * - col0 col1 FROM tab0
----
5307
5917
915

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 36 / col1 * col0 + + 66 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 63 col0 FROM tab2 AS cor0
----
63
63
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col1, + col0 + 51 col2 FROM tab0 AS cor0
----
-1
148
-21
138
-81
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5403
SELECT + 8 * - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-5403
SELECT + 8 * - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-24

query I rowsort
SELECT col1 * - col0 + - 79 + - 78 + - 55 FROM tab1 cor0 WHERE NOT NULL > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5405
SELECT COUNT( * ) + + + 38 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5405
SELECT COUNT ( * ) + + + 38 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
NULL

query I rowsort
SELECT - col0 + ( col1 ) FROM tab2
----
-8
13
5

query I rowsort
SELECT col0 FROM tab2 WHERE col2 IS NOT NULL
----
46
64
75

query I rowsort
SELECT ALL - - col1 + 80 + col2 AS col1 FROM tab0 AS cor0 WHERE col0 * - + col1 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 FROM tab2 AS cor0 WHERE - 20 IS NULL
----

query I rowsort
SELECT ALL 90 AS col2 FROM tab0 AS cor0 WHERE NOT + 60 IS NULL
----
90
90
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5411
SELECT ALL COUNT( * ) - COUNT( * ) AS col1 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5411
SELECT ALL COUNT ( * ) - COUNT ( * ) AS col1 FROM tab1 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5412
SELECT DISTINCT MAX( + 50 ) AS col0 FROM tab2
----
50

skipif mysql # not compatible
query I rowsort label-5412
SELECT DISTINCT MAX ( + 50 ) AS col0 FROM tab2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5413
SELECT ( + COUNT( * ) ) * 94 FROM tab1
----
282

skipif mysql # not compatible
query I rowsort label-5413
SELECT ( + COUNT ( * ) ) * 94 FROM tab1
----
282

query I rowsort
SELECT ALL 81 * col0 AS col1 FROM tab2
----
3726
5184
6075

onlyif mysql # DIV for integer division: 
query II rowsort label-5415
SELECT ALL col2 + col1 * 2 col2, col0 DIV - col2 col0 FROM tab0
----
101
0
209
0
52
-8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5415
SELECT ALL col2 + col1 * 2 col2, col0 / - col2 col0 FROM tab0
----
101
0
209
0
52
-8

query I rowsort
SELECT + - 64 - col0 - - col0 FROM tab1 AS cor0
----
-64
-64
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-5417
SELECT DISTINCT + col0 DIV - col2 - col0 FROM tab1 AS cor0
----
-51
-86
-92

skipif mysql # not compatible
query I rowsort label-5417
SELECT DISTINCT + col0 / - col2 - col0 FROM tab1 AS cor0
----
-51
-86
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5418
SELECT DISTINCT + 91 * - MIN( DISTINCT - - 58 ) + - - COUNT( * ) * AVG ( - CAST( NULL AS SIGNED ) ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5418
SELECT DISTINCT + 91 * - MIN ( DISTINCT - - 58 ) + - - COUNT ( * ) * AVG ( - CAST ( NULL AS INTEGER ) ) FROM tab0 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5419
SELECT ALL - 61 / + 8 + ( CAST( NULL AS SIGNED ) ) - col2 * - - 66 * - 92 * + 62 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5419
SELECT ALL - 61 / + 8 + ( CAST ( NULL AS INTEGER ) ) - col2 * - - 66 * - 92 * + 62 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5420
SELECT DISTINCT + + COUNT( * ) AS col0 FROM tab2 WHERE NOT NULL < + + 96
----
0

skipif mysql # not compatible
query I rowsort label-5420
SELECT DISTINCT + + COUNT ( * ) AS col0 FROM tab2 WHERE NOT NULL < + + 96
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 27 col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
27

query I rowsort
SELECT - + 10 * - col1 FROM tab1 cor0 WHERE NOT ( NULL ) < + col0
----

query II rowsort
SELECT DISTINCT - col1 AS col0, + col1 FROM tab1 AS cor0
----
-14
14
-47
47
-5
5

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 28 = col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5425
SELECT COUNT( ALL + col0 ) * - + 47 AS col1 FROM tab1 AS cor0 WHERE NOT NULL >= + col0
----
0

skipif mysql # not compatible
query I rowsort label-5425
SELECT COUNT ( ALL + col0 ) * - + 47 AS col1 FROM tab1 AS cor0 WHERE NOT NULL >= + col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5426
SELECT - COUNT( * ) * - - 30 + 4 AS col2 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
-86

skipif mysql # not compatible
query I rowsort label-5426
SELECT - COUNT ( * ) * - - 30 + 4 AS col2 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-5427
SELECT 50 * - 2 AS col1, - COUNT( - col0 ) FROM tab0
----
-100
-3

skipif mysql # not compatible
query II rowsort label-5427
SELECT 50 * - 2 AS col1, - COUNT ( - col0 ) FROM tab0
----
-100
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-5428
SELECT - COUNT( col1 ) AS col2, + COUNT( * ) - - 21 FROM tab2
----
-3
24

skipif mysql # not compatible
query II rowsort label-5428
SELECT - COUNT ( col1 ) AS col2, + COUNT ( * ) - - 21 FROM tab2
----
-3
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5429
SELECT - MIN( + col1 ) col2 FROM tab0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5429
SELECT - MIN ( + col1 ) col2 FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5430
SELECT DISTINCT 38 * SUM( + ( - - col2 ) ) - - 9 col1 FROM tab1 WHERE NULL IS NULL
----
8483

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5430
SELECT DISTINCT 38 * SUM ( + ( - - col2 ) ) - - 9 col1 FROM tab1 WHERE NULL IS NULL
----
8483

onlyif mysql # DIV for integer division: 
query I rowsort label-5431
SELECT DISTINCT - - col1 DIV + col0 + col0 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-5431
SELECT DISTINCT - - col1 / + col0 + col0 FROM tab1 AS cor0
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 + - - col2 <> - col1 * + col0 + + col0
----

query III rowsort
SELECT * FROM tab0 WHERE + + col0 * - col0 + col2 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 >= + 79
----
51
14
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5435
SELECT DISTINCT COUNT( * ) + - 85 FROM tab2 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-5435
SELECT DISTINCT COUNT ( * ) + - 85 FROM tab2 AS cor0
----
-82

query III rowsort
SELECT * FROM tab0 cor0 WHERE + 29 * + 41 <> - 16
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-5437
SELECT - + col1 - - col2 DIV + + col2, 4 AS col1 FROM tab2 AS cor0
----
-50
4
-66
4
-76
4

skipif mysql # not compatible
query II rowsort label-5437
SELECT - + col1 - - col2 / + + col2, 4 AS col1 FROM tab2 AS cor0
----
-50
4
-66
4
-76
4

query I rowsort
SELECT - col2 + + 6 AS col2 FROM tab2 AS cor0
----
-17
-34
-52

query I rowsort
SELECT col0 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - + ( + col1 ) IS NULL
----

query I rowsort
SELECT + 83 + - col0 FROM tab0
----
-14
-4
68

onlyif mysql # aggregate syntax: 
query III rowsort label-5442
SELECT + MIN( - 58 ) AS col0, - ( - 77 ) + - 23, - COUNT( * ) col2 FROM tab0
----
-58
54
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-5442
SELECT + MIN ( - 58 ) AS col0, - ( - 77 ) + - 23, - COUNT ( * ) col2 FROM tab0
----
-58
54
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - + col0 ) col0 FROM tab1
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5444
SELECT + - SUM( - 11 ) AS col0 FROM tab2 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-5444
SELECT + - SUM ( - 11 ) AS col0 FROM tab2 AS cor0
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5445
SELECT - CAST( ( + + col1 ) AS SIGNED ) FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-5445
SELECT - CAST ( ( + + col1 ) AS INTEGER ) FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT - - 21 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

onlyif mysql # DIV for integer division: 
query I rowsort label-5447
SELECT DISTINCT + 43 DIV 16 FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-5447
SELECT DISTINCT + 43 / 16 FROM tab0 AS cor0
----
2

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5448
SELECT + CAST( - + col1 AS SIGNED ) col2, + 77 + - 62 - - CAST( NULL AS DECIMAL ) - - col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL <> + col0 + 28
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5448
SELECT + CAST ( - + col1 AS INTEGER ) col2, + 77 + - 62 - - CAST ( NULL AS REAL ) - - col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL <> + col0 + 28
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5449
SELECT COUNT( * ) * + COUNT( * ) + - ( COUNT( * ) ) col1 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5449
SELECT COUNT ( * ) * + COUNT ( * ) + - ( COUNT ( * ) ) col1 FROM tab1 AS cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5450
SELECT - + CAST( NULL AS SIGNED ), col1 AS col2 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-5450
SELECT - + CAST ( NULL AS INTEGER ), col1 AS col2 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

onlyif mysql # DIV for integer division: 
query I rowsort label-5451
SELECT DISTINCT - + 5 DIV - col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5451
SELECT DISTINCT - + 5 / - col2 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT + col1 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5453
SELECT ALL SUM( + 71 ) AS col1 FROM tab2
----
213

skipif mysql # not compatible
query I rowsort label-5453
SELECT ALL SUM ( + 71 ) AS col1 FROM tab2
----
213

onlyif mysql # DIV for integer division: 
query I rowsort label-5454
SELECT + col0 DIV + + 66 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5454
SELECT + col0 / + + 66 FROM tab1
----
0
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5455
SELECT DISTINCT * FROM tab0 WHERE col1 BETWEEN + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-5455
SELECT DISTINCT * FROM tab0 WHERE col1 BETWEEN + CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5456
SELECT ALL CAST( - - col1 AS SIGNED ) + + 79 FROM tab2
----
130
146
156

skipif mysql # not compatible
query I rowsort label-5456
SELECT ALL CAST ( - - col1 AS INTEGER ) + + 79 FROM tab2
----
130
146
156

onlyif mysql # DIV for integer division: 
query I rowsort label-5457
SELECT ALL 80 * - col0 DIV col0 + + col1 + + col0 + - col0 * + 29 - 15 AS col2 FROM tab0
----
-2510
-2810
-434

skipif mysql # not compatible
query I rowsort label-5457
SELECT ALL 80 * - col0 / col0 + + col1 + + col0 + - col0 * + 29 - 15 AS col2 FROM tab0
----
-2510
-2810
-434

onlyif mysql # DIV for integer division: 
query I rowsort label-5458
SELECT ALL + col1 DIV + + col0 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5458
SELECT ALL + col1 / + + col0 FROM tab2
----
0
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5459
SELECT - CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5459
SELECT - CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-5460
SELECT col0 * col0 DIV col0 FROM tab1 cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-5460
SELECT col0 * col0 / col0 FROM tab1 cor0
----
51
85
91

query I rowsort
SELECT + col2 * + - col1 AS col0 FROM tab0 AS cor0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5462
SELECT DISTINCT SUM( + - col2 ) AS col1 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-5462
SELECT DISTINCT SUM ( + - col2 ) AS col1 FROM tab1 AS cor0
----
-223

query I rowsort
SELECT ALL col1 + + col0 * - - col0 * + - col0 AS col1 FROM tab0 AS cor0
----
-3294
-658482
-912672

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 60 + + 69 col2 FROM tab2 cor0
----
129

query II rowsort
SELECT DISTINCT - col2 - + col2, - col1 AS col1 FROM tab1 cor0
----
-118
-5
-136
-47
-192
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-5466
SELECT ALL + + COUNT( * ) - 81 col1 FROM tab0 AS cor0
----
-78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5466
SELECT ALL + + COUNT ( * ) - 81 col1 FROM tab0 AS cor0
----
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - - - col2 * - col2 col1 FROM tab0 cor0
----
13
2194
9704

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5468
SELECT ALL - ( - CAST( NULL AS SIGNED ) ) / col2 * - col0 * - 46 * - + col1 - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5468
SELECT ALL - ( - CAST ( NULL AS INTEGER ) ) / col2 * - col0 * - 46 * - + col1 - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col2 ) + col0 col2 FROM tab0 AS cor0
----
196
62
97

query II rowsort
SELECT ALL + col0, - col2 * col2 AS col2 FROM tab1
----
51
-9216
85
-3481
91
-4624

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE NOT + + col1 IS NULL
----
-15
-87
-97

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 < - col1
----

query I rowsort
SELECT + 27 - ( + + col2 ) FROM tab1
----
-32
-41
-69

query II rowsort
SELECT ALL col2 * col0 * + 47, col1 FROM tab2
----
120320
77
204450
67
49726
51

query I rowsort
SELECT DISTINCT - 7 * + 48 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-336

query I rowsort
SELECT 0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + ( - - 85 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5478
SELECT DISTINCT - COUNT( - col2 ) * + COUNT( * ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-5478
SELECT DISTINCT - COUNT ( - col2 ) * + COUNT ( * ) FROM tab1
----
-9

query I rowsort
SELECT col2 AS col0 FROM tab1 WHERE NOT ( NULL ) = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5480
SELECT - + COUNT( * ) * ( + - MAX( - 52 ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-468

skipif mysql # not compatible
query I rowsort label-5480
SELECT - + COUNT ( * ) * ( + - MAX ( - 52 ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-468

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5481
SELECT - CAST( - 18 AS SIGNED ), col2 FROM tab0 WHERE NOT + col0 NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query II rowsort label-5481
SELECT - CAST ( - 18 AS INTEGER ), col2 FROM tab0 WHERE NOT + col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5482
SELECT ALL - + 59 * + COUNT( * ) FROM tab2 cor0
----
-177

skipif mysql # not compatible
query I rowsort label-5482
SELECT ALL - + 59 * + COUNT ( * ) FROM tab2 cor0
----
-177

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 39 * col2 + - - 80 * + col0 * + + 81 IS NOT NULL
----

query I rowsort
SELECT - + 87 AS col1 FROM tab0 cor0
----
-87
-87
-87

query I rowsort
SELECT ALL + - col1 * - - 41 FROM tab1 AS cor0
----
-1927
-205
-574

onlyif mysql # aggregate syntax: 
query I rowsort label-5486
SELECT ( ( - - COUNT( DISTINCT + 67 ) ) ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5486
SELECT ( ( - - COUNT ( DISTINCT + 67 ) ) ) FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5487
SELECT ALL + COUNT( * ) * COUNT( DISTINCT + - col2 ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-5487
SELECT ALL + COUNT ( * ) * COUNT ( DISTINCT + - col2 ) FROM tab1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5488
SELECT DISTINCT 19 + - col1 / + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5488
SELECT DISTINCT 19 + - col1 / + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT - col0 + col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT + col1, - col1 AS col0 FROM tab1 AS cor0
----
14
-14
47
-47
5
-5

query I rowsort
SELECT + col0 * 51 AS col2 FROM tab0 AS cor0
----
4437
4947
765

query I rowsort
SELECT col2 * - + 82 + 19 - - col1 + - + col2 * + col1 * + col0 * - 11 AS col2 FROM tab1 AS cor0
----
271011
3193686
746145

query I rowsort
SELECT - - 62 - - col1 FROM tab0 AS cor0
----
143
63
83

query I rowsort
SELECT DISTINCT col0 * + - col2 + - + 93 AS col2 FROM tab1 AS cor0
----
-4989
-5108
-6281

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5495
SELECT + 25 * - CAST( - + col0 AS SIGNED ) - - 51 FROM tab2 AS cor0
----
1201
1651
1926

skipif mysql # not compatible
query I rowsort label-5495
SELECT + 25 * - CAST ( - + col0 AS INTEGER ) - - 51 FROM tab2 AS cor0
----
1201
1651
1926

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 BETWEEN col2 AND - col1 - col1 AND NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5497
SELECT + + 43 * - 50 + + CAST( + + 36 AS SIGNED ) AS col1, 35 AS col0 FROM tab1 AS cor0
----
-2114
35
-2114
35
-2114
35

skipif mysql # not compatible
query II rowsort label-5497
SELECT + + 43 * - 50 + + CAST ( + + 36 AS INTEGER ) AS col1, 35 AS col0 FROM tab1 AS cor0
----
-2114
35
-2114
35
-2114
35

query I rowsort
SELECT 3 FROM tab1 AS cor0 WHERE + 57 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5499
SELECT ALL - - ( + + 16 ) + + COUNT( - col1 ) - - CAST( + + 70 AS SIGNED ) FROM tab2 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-5499
SELECT ALL - - ( + + 16 ) + + COUNT ( - col1 ) - - CAST ( + + 70 AS INTEGER ) FROM tab2 AS cor0
----
89

query I rowsort
SELECT ALL + col0 - + 17 * - 71 * - col2 FROM tab0 AS cor0
----
-119396
-11983
-56714

query I rowsort
SELECT - col2 FROM tab1 WHERE NOT col0 >= ( - - col2 )
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5502
SELECT + 40 * - ( + - 10 ) * - COUNT( * ) + - + MAX( - 83 ) col1 FROM tab0 WHERE NOT ( NOT + col0 IS NULL )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5502
SELECT + 40 * - ( + - 10 ) * - COUNT ( * ) + - + MAX ( - 83 ) col1 FROM tab0 WHERE NOT ( NOT + col0 IS NULL )
----
NULL

query I rowsort
SELECT ALL ( - col1 ) / + col2 * col1 - - 5 AS col1 FROM tab1 cor0 WHERE NOT + ( col1 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT 37 * + col1 * - + 51 + - 43 AS col1 FROM tab2 AS cor0
----
-126472
-145342
-96280

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 28 col1 FROM tab1 cor0 WHERE NOT ( + 61 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5506
SELECT COUNT( ALL + - col2 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5506
SELECT COUNT ( ALL + - col2 ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT - col2 + 22 AS col0 FROM tab1 AS cor0
----
-37
-46
-74

query I rowsort
SELECT + col0 FROM tab0 cor0 WHERE NOT ( NULL IS NOT NULL )
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5509
SELECT ALL - ( CAST( - - col0 AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-5509
SELECT ALL - ( CAST ( - - col0 AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5510
SELECT * FROM tab0 cor0 WHERE ( NOT CAST( NULL AS SIGNED ) IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5510
SELECT * FROM tab0 cor0 WHERE ( NOT CAST ( NULL AS INTEGER ) IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 WHERE - - col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5512
SELECT COUNT( * ) FROM tab1 WHERE NULL > 48
----
0

skipif mysql # not compatible
query I rowsort label-5512
SELECT COUNT ( * ) FROM tab1 WHERE NULL > 48
----
0

query I rowsort
SELECT + 37 FROM tab2 WHERE + + col2 NOT BETWEEN NULL AND + - 70 * - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5514
SELECT ALL + - COUNT( * ) FROM tab1 WHERE NOT + col2 - - 78 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5514
SELECT ALL + - COUNT ( * ) FROM tab1 WHERE NOT + col2 - - 78 IS NOT NULL
----
0

query I rowsort
SELECT ALL + ( col2 ) * - - col0 * col0 + - - 11 + 27 + + + col0 + col1 AS col2 FROM tab0
----
10709
75836
931627

onlyif mysql # aggregate syntax: 
query II rowsort label-5516
SELECT 27 * + 66, 6 + - - COUNT( * ) AS col2 FROM tab1
----
1782
9

skipif mysql # not compatible
query II rowsort label-5516
SELECT 27 * + 66, 6 + - - COUNT ( * ) AS col2 FROM tab1
----
1782
9

query I rowsort
SELECT ALL + 8 * - - col0 FROM tab0
----
120
696
776

query I rowsort
SELECT DISTINCT - + col1 + - col0 * - 54 AS col0 FROM tab0 AS cor0
----
4677
5237
729

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5519
SELECT - + ( + CAST( NULL AS DECIMAL ) ) + - 72 + + 27, col0 AS col1 FROM tab0 cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-5519
SELECT - + ( + CAST ( NULL AS REAL ) ) + - 72 + + 27, col0 AS col1 FROM tab0 cor0
----
NULL
15
NULL
87
NULL
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5520
SELECT DISTINCT - SUM( ALL + + col1 ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-5520
SELECT DISTINCT - SUM ( ALL + + col1 ) FROM tab1
----
-66

query I rowsort
SELECT - 21 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757

onlyif mysql # DIV for integer division: 
query I rowsort label-5522
SELECT ALL 75 DIV + 17 FROM tab0 AS cor0
----
4
4
4

skipif mysql # not compatible
query I rowsort label-5522
SELECT ALL 75 / + 17 FROM tab0 AS cor0
----
4
4
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5523
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - 94 AS col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5523
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 94 AS col1 FROM tab2 cor0
----
NULL

query I rowsort
SELECT DISTINCT - ( - 28 ) FROM tab2 AS cor0
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-5525
SELECT DISTINCT MAX( - + col1 ), + 52 AS col2 FROM tab1
----
-5
52

skipif mysql # not compatible
query II rowsort label-5525
SELECT DISTINCT MAX ( - + col1 ), + 52 AS col2 FROM tab1
----
-5
52

query II rowsort
SELECT DISTINCT 68 * + + 4, + col2 FROM tab1
----
272
59
272
68
272
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5527
SELECT ALL ( + MAX( col2 ) ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-5527
SELECT ALL ( + MAX ( col2 ) ) FROM tab1
----
96

query II rowsort
SELECT DISTINCT col0 AS col0, ( + 47 ) + + 64 FROM tab0
----
15
111
87
111
97
111

query II rowsort
SELECT DISTINCT - col2 AS col2, + ( - col1 ) FROM tab2
----
-23
-51
-40
-77
-58
-67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5530
SELECT DISTINCT 60 AS col0, + CAST( NULL AS SIGNED ) + - + col1 FROM tab2
----
60
NULL

skipif mysql # not compatible
query II rowsort label-5530
SELECT DISTINCT 60 AS col0, + CAST ( NULL AS INTEGER ) + - + col1 FROM tab2
----
60
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5531
SELECT DISTINCT - CAST( 14 AS SIGNED ) FROM tab2
----
-14

skipif mysql # not compatible
query I rowsort label-5531
SELECT DISTINCT - CAST ( 14 AS INTEGER ) FROM tab2
----
-14

query I rowsort
SELECT + + col2 AS col1 FROM tab1 WHERE NOT 13 IS NULL
----
59
68
96

query I rowsort
SELECT ALL ( + - 76 ) AS col0 FROM tab2 cor0
----
-76
-76
-76

query II rowsort
SELECT DISTINCT + 58 AS col0, 72 AS col2 FROM tab0 AS cor0
----
58
72

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5536
SELECT - COUNT( ALL + 34 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5536
SELECT - COUNT ( ALL + 34 ) AS col2 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5537
SELECT ALL + CAST( + 75 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
75
75
75

skipif mysql # not compatible
query I rowsort label-5537
SELECT ALL + CAST ( + 75 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
75
75
75

onlyif mysql # DIV for integer division: 
query I rowsort label-5538
SELECT DISTINCT + 21 DIV + + col2 + - col2 AS col0 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-5538
SELECT DISTINCT + 21 / + + col2 + - col2 AS col0 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT DISTINCT - col2 + + 0 * - col0 AS col1 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5540
SELECT ALL 56 * - 8 * + MIN( DISTINCT + - col2 ) FROM tab2 cor0
----
25984

skipif mysql # not compatible
query I rowsort label-5540
SELECT ALL 56 * - 8 * + MIN ( DISTINCT + - col2 ) FROM tab2 cor0
----
25984

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 20 <> NULL
----

query II rowsort
SELECT 50 * + + ( col0 ) AS col0, - col2 FROM tab2 AS cor0
----
2300
-23
3200
-40
3750
-58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5543
SELECT + col1 / CAST( NULL AS SIGNED ) + - col2 AS col1, 43 FROM tab1 cor0
----
NULL
43
NULL
43
NULL
43

skipif mysql # not compatible
query II rowsort label-5543
SELECT + col1 / CAST ( NULL AS INTEGER ) + - col2 AS col1, 43 FROM tab1 cor0
----
NULL
43
NULL
43
NULL
43

query I rowsort
SELECT ALL + col1 * - - 82 * col1 FROM tab1 AS cor0
----
16072
181138
2050

onlyif mysql # DIV for integer division: 
query I rowsort label-5545
SELECT DISTINCT - - col2 DIV + - col1 FROM tab0 AS cor0
----
-99
0

skipif mysql # not compatible
query I rowsort label-5545
SELECT DISTINCT - - col2 / + - col1 FROM tab0 AS cor0
----
-99
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5546
SELECT + 37 + 95 + CAST( - + col2 AS SIGNED ) AS col0 FROM tab1 cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-5546
SELECT + 37 + 95 + CAST ( - + col2 AS INTEGER ) AS col0 FROM tab1 cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT col1 * + + col1 + - + 78 AS col2 FROM tab1
----
-53
118
2131

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN - 69 * - ( + 16 ) + - col1 AND - col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5549
SELECT - col1 + + - 12 * - 93 * 67 - + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5549
SELECT - col1 + + - 12 * - 93 * 67 - + CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 + 66 AS col2 FROM tab2 AS cor0
----
-9
2
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * - 46 col1 FROM tab2 AS cor0
----
2116
2944
3450

query I rowsort
SELECT ALL - + 35 + + + col2 FROM tab0 AS cor0
----
-25
12
64

onlyif mysql # DIV for integer division: 
query I rowsort label-5553
SELECT ALL 10 DIV + 50 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5553
SELECT ALL 10 / + 50 FROM tab2
----
0
0
0

query I rowsort
SELECT - col2 FROM tab2 WHERE NULL IN ( col1 + 78 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col2 - - 75 * + col2 col1 FROM tab1
----
-1088
-590
2304

onlyif mysql # aggregate syntax: 
query I rowsort label-5556
SELECT ALL - 44 + COUNT( * ) AS col2 FROM tab0
----
-41

skipif mysql # not compatible
query I rowsort label-5556
SELECT ALL - 44 + COUNT ( * ) AS col2 FROM tab0
----
-41

query I rowsort
SELECT DISTINCT + 35 FROM tab0 WHERE NULL = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5558
SELECT ALL col1 DIV 54 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5558
SELECT ALL col1 / 54 FROM tab0
----
0
0
1

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 * - col2 IS NOT NULL
----

query I rowsort
SELECT ALL - col0 - 57 FROM tab0 WHERE ( NULL ) <= ( col1 + - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5561
SELECT + 90 DIV + col0 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5561
SELECT + 90 / + col0 FROM tab1
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 68 * 89 + col2 col1 FROM tab0
----
-5953
-6005
-6042

onlyif mysql # aggregate syntax: 
query I rowsort label-5563
SELECT ALL 79 * COUNT( * ) AS col1 FROM tab1
----
237

skipif mysql # not compatible
query I rowsort label-5563
SELECT ALL 79 * COUNT ( * ) AS col1 FROM tab1
----
237

onlyif mysql # aggregate syntax: 
query I rowsort label-5564
SELECT - 24 + - COUNT( * ) col0 FROM tab2
----
-27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5564
SELECT - 24 + - COUNT ( * ) col0 FROM tab2
----
-27

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 * - 28 <> - col2 * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5566
SELECT ( COUNT( * ) ) AS col1 FROM tab1 WHERE NOT NULL <= - col1
----
0

skipif mysql # not compatible
query I rowsort label-5566
SELECT ( COUNT ( * ) ) AS col1 FROM tab1 WHERE NOT NULL <= - col1
----
0

query I rowsort
SELECT DISTINCT + col1 + 44 FROM tab1
----
49
58
91

query I rowsort
SELECT DISTINCT 58 + - 48 AS col1 FROM tab0
----
10

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 81 * col2 - 29 < ( NULL )
----

query I rowsort
SELECT DISTINCT ( 40 ) AS col2 FROM tab1
----
40

query III rowsort
SELECT * FROM tab0 WHERE NULL = ( col2 - col0 * col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5572
SELECT DISTINCT + COUNT( ALL CAST( col1 AS SIGNED ) ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5572
SELECT DISTINCT + COUNT ( ALL CAST ( col1 AS INTEGER ) ) AS col2 FROM tab0
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 * 11 + col0 <> + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5574
SELECT ALL CAST( - 96 AS SIGNED ) col2 FROM tab2
----
-96
-96
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5574
SELECT ALL CAST ( - 96 AS INTEGER ) col2 FROM tab2
----
-96
-96
-96

query III rowsort
SELECT * FROM tab1 WHERE ( 52 + - col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab0 WHERE - 58 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 IN ( + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 + + col0 FROM tab1 WHERE col0 IS NOT NULL
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5579
SELECT ( - SUM( - ( 96 ) ) ) FROM tab1 WHERE NOT col1 BETWEEN - col1 + CAST( col1 AS SIGNED ) * 14 AND + 29
----
288

skipif mysql # not compatible
query I rowsort label-5579
SELECT ( - SUM ( - ( 96 ) ) ) FROM tab1 WHERE NOT col1 BETWEEN - col1 + CAST ( col1 AS INTEGER ) * 14 AND + 29
----
288

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5580
SELECT - CAST( 10 AS SIGNED ) FROM tab2
----
-10
-10
-10

skipif mysql # not compatible
query I rowsort label-5580
SELECT - CAST ( 10 AS INTEGER ) FROM tab2
----
-10
-10
-10

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5581
SELECT * FROM tab2 WHERE NOT - 3 BETWEEN NULL AND col2 * + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5581
SELECT * FROM tab2 WHERE NOT - 3 BETWEEN NULL AND col2 * + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5582
SELECT ( - MIN( DISTINCT + col1 ) ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-5582
SELECT ( - MIN ( DISTINCT + col1 ) ) FROM tab1
----
-5

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 11 > NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 27 < 94
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col2 = ( NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN 97 + col0 AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5587
SELECT DISTINCT + CAST( + 61 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-5587
SELECT DISTINCT + CAST ( + 61 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
61

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 41 <= 62 - - col2 * col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( + 53 - + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5590
SELECT 97 * COUNT( * ) AS col0 FROM tab0
----
291

skipif mysql # not compatible
query I rowsort label-5590
SELECT 97 * COUNT ( * ) AS col0 FROM tab0
----
291

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5591
SELECT COUNT( * ) + + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5591
SELECT COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5592
SELECT ALL * FROM tab0 WHERE - CAST( NULL AS SIGNED ) * col2 NOT BETWEEN NULL AND + col1
----

skipif mysql # not compatible
query III rowsort label-5592
SELECT ALL * FROM tab0 WHERE - CAST ( NULL AS INTEGER ) * col2 NOT BETWEEN NULL AND + col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5593
SELECT CAST( NULL AS DECIMAL ) + - col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5593
SELECT CAST ( NULL AS REAL ) + - col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + 97 FROM tab0 AS cor0 WHERE ( ( col0 ) * + 67 ) < ( - 41 )
----

query I rowsort
SELECT DISTINCT - col0 + + 99 FROM tab2 AS cor0
----
24
35
53

query I rowsort
SELECT + 26 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5597
SELECT ALL col2 * col1 FROM tab0 AS cor0 WHERE NOT ( CAST( NULL AS SIGNED ) ) <= NULL
----

skipif mysql # not compatible
query I rowsort label-5597
SELECT ALL col2 * col1 FROM tab0 AS cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) ) <= NULL
----

query I rowsort
SELECT ALL col0 * + 91 AS col2 FROM tab0 cor0
----
1365
7917
8827

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - col2 ) NOT IN ( ( ( 80 ) ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 12 * - col0 + - 16 col0 FROM tab0 AS cor0
----
-1060
-1180
-196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5601
SELECT ALL + ( + AVG ( CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab0 AS cor0 WHERE NULL = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5601
SELECT ALL + ( + AVG ( CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab0 AS cor0 WHERE NULL = NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5602
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( 29 + CAST( ( col1 ) AS SIGNED ) ) <= 12
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5602
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( 29 + CAST ( ( col1 ) AS INTEGER ) ) <= 12
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 + + col2 NOT IN ( + col2 * 26 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-5604
SELECT + 15 DIV col0 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5604
SELECT + 15 / col0 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - 21 FROM tab1 WHERE NOT col0 * 76 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5606
SELECT ALL - COUNT( * ) - - + MAX( - 97 ) FROM tab2
----
-100

skipif mysql # not compatible
query I rowsort label-5606
SELECT ALL - COUNT ( * ) - - + MAX ( - 97 ) FROM tab2
----
-100

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - + 4 * + col2 col2 FROM tab1
----
-19584
-20060
-24752

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5608
SELECT ALL - ( - ( CAST( NULL AS SIGNED ) ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5608
SELECT ALL - ( - ( CAST ( NULL AS INTEGER ) ) ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * - - ( + col2 ) FROM tab1
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-5610
SELECT ALL ( - COUNT( * ) ) + COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5610
SELECT ALL ( - COUNT ( * ) ) + COUNT ( * ) FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5611
SELECT - 68 DIV + - col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5611
SELECT - 68 / + - col2 FROM tab1
----
0
1
1

query I rowsort
SELECT DISTINCT - col0 * 60 + col1 FROM tab1
----
-3046
-5095
-5413

onlyif mysql # aggregate syntax: 
query I rowsort label-5613
SELECT + COUNT( * ) - - 28 AS col2 FROM tab2
----
31

skipif mysql # not compatible
query I rowsort label-5613
SELECT + COUNT ( * ) - - 28 AS col2 FROM tab2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5614
SELECT + - 85 - - MIN( DISTINCT col0 ) AS col0 FROM tab1 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-5614
SELECT + - 85 - - MIN ( DISTINCT col0 ) AS col0 FROM tab1 AS cor0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-5615
SELECT MAX( + col2 ) AS col0 FROM tab1 AS cor0 WHERE + col0 * + col1 IN ( 11 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5615
SELECT MAX ( + col2 ) AS col0 FROM tab1 AS cor0 WHERE + col0 * + col1 IN ( 11 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5616
SELECT ALL + CAST( NULL AS SIGNED ) + + ( + 21 ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5616
SELECT ALL + CAST ( NULL AS INTEGER ) + + ( + 21 ) FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5617
SELECT DISTINCT - 47 * + 18 * + + 94 - SUM( DISTINCT - 55 + - 34 ) FROM tab0
----
-79435

skipif mysql # not compatible
query I rowsort label-5617
SELECT DISTINCT - 47 * + 18 * + + 94 - SUM ( DISTINCT - 55 + - 34 ) FROM tab0
----
-79435

query II rowsort
SELECT ALL col2, 55 FROM tab0
----
10
55
47
55
99
55

query II rowsort
SELECT ALL 99 AS col0, - col1 AS col1 FROM tab0
----
99
-1
99
-21
99
-81

query I rowsort
SELECT DISTINCT - + ( - - 60 ) * - 86 FROM tab1 AS cor0
----
5160

query I rowsort
SELECT ALL + - col1 * + 14 * - col0 AS col0 FROM tab1 cor0
----
5950
59878
9996

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5622
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 34 * + CAST( NULL AS SIGNED ) + - col2 / - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5622
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 34 * + CAST ( NULL AS INTEGER ) + - col2 / - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-5623
SELECT col1 DIV 50 FROM tab2 AS cor0 WHERE NOT ( 36 DIV - col1 ) IS NULL
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5623
SELECT col1 / 50 FROM tab2 AS cor0 WHERE NOT ( 36 / - col1 ) IS NULL
----
1
1
1

query I rowsort
SELECT + + col2 * + 89 * 46 FROM tab1 AS cor0
----
241546
278392
393024

onlyif mysql # DIV for integer division: 
query I rowsort label-5625
SELECT - 7 DIV - col0 * - col2 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5625
SELECT - 7 / - col0 * - col2 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + ( col0 ) * + col2 FROM tab0 cor0 WHERE NOT ( col2 ) IS NULL
----
705
870
9603

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( ( - - 23 ) + + 49 / col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5628
SELECT DISTINCT - COUNT( DISTINCT col2 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5628
SELECT DISTINCT - COUNT ( DISTINCT col2 ) AS col0 FROM tab2
----
-3

query I rowsort
SELECT DISTINCT - 2 + + ( + col2 ) * 42 FROM tab0 WHERE NOT NULL IS NOT NULL
----
1972
4156
418

onlyif mysql # aggregate syntax: 
query I rowsort label-5630
SELECT DISTINCT ( + + MAX( - col1 ) ) AS col0 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-5630
SELECT DISTINCT ( + + MAX ( - col1 ) ) AS col0 FROM tab1
----
-5

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE NULL NOT BETWEEN NULL AND col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5632
SELECT - CAST( MIN( - - col1 ) AS SIGNED ) AS col2 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-5632
SELECT - CAST ( MIN ( - - col1 ) AS INTEGER ) AS col2 FROM tab2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5633
SELECT ALL + 9 * ( - SUM( + col0 ) ) FROM tab0 WHERE N