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 NOT + 92 * + 50 - + 58 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5633
SELECT ALL + 9 * ( - SUM ( + col0 ) ) FROM tab0 WHERE NOT + 92 * + 50 - + 58 IS NOT NULL
----
NULL

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

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

query I rowsort
SELECT ALL + - 5 + + + 78 * - 33 FROM tab0 AS cor0
----
-2579
-2579
-2579

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

query I rowsort
SELECT + - 4 * 96 * + col1 * + col2 AS col2 FROM tab1 AS cor0
----
-113280
-1227264
-516096

query I rowsort
SELECT ALL + + 70 + - 25 FROM tab2 AS cor0
----
45
45
45

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

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

query I rowsort
SELECT + col0 + - col0 * + col0 * - col1 + col2 AS col2 FROM tab1 cor0
----
36269
36561
389366

query I rowsort
SELECT + - ( + - 51 ) + - + col1 FROM tab0 AS cor0
----
-30
30
50

query I rowsort
SELECT ALL ( 22 ) FROM tab1
----
22
22
22

query II rowsort
SELECT ALL col2, col0 * + col2 - + + col1 FROM tab2
----
23
1007
40
2483
58
4283

onlyif mysql # DIV for integer division: 
query I rowsort label-5644
SELECT col0 DIV 51 + - 8 FROM tab2
----
-7
-7
-8

skipif mysql # not compatible
query I rowsort label-5644
SELECT col0 / 51 + - 8 FROM tab2
----
-7
-7
-8

query I rowsort
SELECT DISTINCT 33 + - + 77 AS col2 FROM tab0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-5646
SELECT ALL ( + + MAX( ALL + col2 ) ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5646
SELECT ALL ( + + MAX ( ALL + col2 ) ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NULL <> col1 / col2 + ( 49 ) * + 26 - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 90 col0, 99 AS col2 FROM tab0
----
90
99
90
99
90
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5649
SELECT * FROM tab0 WHERE + - 70 / - col2 * - col1 NOT BETWEEN NULL AND + + CAST( 77 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5649
SELECT * FROM tab0 WHERE + - 70 / - col2 * - col1 NOT BETWEEN NULL AND + + CAST ( 77 AS INTEGER )
----

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 72 IN ( 10 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5652
SELECT DISTINCT - 90 - + col0 DIV - + col2 col2 FROM tab2 AS cor0
----
-88
-89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5652
SELECT DISTINCT - 90 - + col0 / - + col2 col2 FROM tab2 AS cor0
----
-88
-89

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

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

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

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

query I rowsort
SELECT + 12 * + + col2 FROM tab0 cor0
----
1188
120
564

onlyif mysql # DIV for integer division: 
query I rowsort label-5657
SELECT - - 99 DIV + col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5657
SELECT - - 99 / + col2 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5658
SELECT ALL - col0 DIV - CAST( - 98 AS SIGNED ) + col1 AS col2 FROM tab2 AS cor0
----
51
67
77

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

query I rowsort
SELECT DISTINCT - + ( - col2 ) * + - 30 FROM tab2 AS cor0
----
-1200
-1740
-690

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5660
SELECT + ( CAST( - COUNT( * ) AS SIGNED ) ) * - 99 AS col2 FROM tab0 cor0
----
297

skipif mysql # not compatible
query I rowsort label-5660
SELECT + ( CAST ( - COUNT ( * ) AS INTEGER ) ) * - 99 AS col2 FROM tab0 cor0
----
297

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5661
SELECT ALL + CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ), COUNT( * ) col1 FROM tab1 AS cor0
----
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5661
SELECT ALL + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ), COUNT ( * ) col1 FROM tab1 AS cor0
----
NULL
3

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5664
SELECT DISTINCT * FROM tab1 WHERE 16 + + + col1 <= NULL OR NOT CAST( NULL AS SIGNED ) NOT IN ( - col1 )
----

skipif mysql # not compatible
query III rowsort label-5664
SELECT DISTINCT * FROM tab1 WHERE 16 + + + col1 <= NULL OR NOT CAST ( NULL AS INTEGER ) NOT IN ( - col1 )
----

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

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col2 ) BETWEEN ( NULL ) AND - - 10
----

query I rowsort
SELECT - 37 AS col1 FROM tab0 WHERE NOT - - col2 - - col1 <= ( NULL )
----

query I rowsort
SELECT col2 + col0 FROM tab2 WHERE NOT - 37 - + col1 BETWEEN - 98 * col2 * + col0 * 32 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5669
SELECT ALL + MIN( col0 ) + ( + 68 ) AS col1 FROM tab1
----
119

skipif mysql # not compatible
query I rowsort label-5669
SELECT ALL + MIN ( col0 ) + ( + 68 ) AS col1 FROM tab1
----
119

query I rowsort
SELECT DISTINCT + ( - - col2 ) * + 37 * - col0 * - - col0 FROM tab2
----
-12071250
-1800716
-6062080

query I rowsort
SELECT + - 35 * 27 FROM tab2 AS cor0
----
-945
-945
-945

query I rowsort
SELECT - col1 + 34 + + col2 + - + col0 * ( - col0 ) FROM tab1
----
2717
7313
8336

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 LEFT OUTER JOIN tab1 AS cor1 ON ( NULL ) IS NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5675
SELECT + MAX( + col2 ) + - 23 AS col0 FROM tab1 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-5675
SELECT + MAX ( + col2 ) + - 23 AS col0 FROM tab1 AS cor0
----
73

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

query I rowsort
SELECT DISTINCT col0 + col0 * + - col2 AS col0 FROM tab1 AS cor0
----
-4845
-4930
-6097

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5679
SELECT col1 DIV + 32 FROM tab2
----
1
2
2

skipif mysql # not compatible
query I rowsort label-5679
SELECT col1 / + 32 FROM tab2
----
1
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5680
SELECT COUNT( * ) - - + COUNT( * ) + + 11 AS col0 FROM tab0
----
17

skipif mysql # not compatible
query I rowsort label-5680
SELECT COUNT ( * ) - - + COUNT ( * ) + + 11 AS col0 FROM tab0
----
17

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) NOT BETWEEN NULL AND + col2 * - col2 * - 78
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5682
SELECT DISTINCT CAST( - col1 AS SIGNED ) + - + 18 + + 65 + + col1 FROM tab0
----
47

skipif mysql # not compatible
query I rowsort label-5682
SELECT DISTINCT CAST ( - col1 AS INTEGER ) + - + 18 + + 65 + + col1 FROM tab0
----
47

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( - + 2 * 26 )
----

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

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

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( 95 ) NOT IN ( 56 )
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5687
SELECT col0 * 9 * - CAST( - col2 AS SIGNED ) AS col0 FROM tab0
----
6345
7830
86427

skipif mysql # not compatible
query I rowsort label-5687
SELECT col0 * 9 * - CAST ( - col2 AS INTEGER ) AS col0 FROM tab0
----
6345
7830
86427

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 51 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 * - col0 col1, col2 col2 FROM tab1 AS cor0
----
-2601
96
-7225
59
-8281
68

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5691
SELECT DISTINCT - 38 * - MIN( - col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5691
SELECT DISTINCT - 38 * - MIN ( - col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

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

query I rowsort
SELECT ALL + 8 * + col0 FROM tab1 cor0
----
408
680
728

onlyif mysql # DIV for integer division: 
query I rowsort label-5694
SELECT - ( + col0 ) DIV col2 + + - col1 AS col2 FROM tab0 cor0
----
-1
-29
-81

skipif mysql # not compatible
query I rowsort label-5694
SELECT - ( + col0 ) / col2 + + - col1 AS col2 FROM tab0 cor0
----
-1
-29
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5695
SELECT SUM( ALL - 98 ) AS col1 FROM tab2 AS cor0
----
-294

skipif mysql # not compatible
query I rowsort label-5695
SELECT SUM ( ALL - 98 ) AS col1 FROM tab2 AS cor0
----
-294

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5697
SELECT CAST( - COUNT( * ) AS SIGNED ) * - 17 AS col1 FROM tab0
----
51

skipif mysql # not compatible
query I rowsort label-5697
SELECT CAST ( - COUNT ( * ) AS INTEGER ) * - 17 AS col1 FROM tab0
----
51

query I rowsort
SELECT ALL col1 + - 23 AS col1 FROM tab0
----
-2
-22
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5699
SELECT 53 + - ( - - COUNT( * ) ) FROM tab1 AS cor0 WHERE col2 <> col1 * - col0 + + 51
----
50

skipif mysql # not compatible
query I rowsort label-5699
SELECT 53 + - ( - - COUNT ( * ) ) FROM tab1 AS cor0 WHERE col2 <> col1 * - col0 + + 51
----
50

query I rowsort
SELECT DISTINCT + col2 * - col1 + + - col0 + + col1 + + ( + 86 ) FROM tab2 AS cor0
----
-1082
-2981
-3808

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

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

skipif mysql # not compatible
query I rowsort label-5702
SELECT ALL - CAST ( NULL AS REAL ) * + COUNT ( * ) AS col0 FROM tab1
----
NULL

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

query I rowsort
SELECT DISTINCT + 64 + - col0 FROM tab2 AS cor0
----
-11
0
18

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5707
SELECT * FROM tab1 AS cor0 WHERE NULL < col2 * + CAST( - - 79 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5707
SELECT * FROM tab1 AS cor0 WHERE NULL < col2 * + CAST ( - - 79 AS INTEGER )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 45 + - - 94 + - + 62 - 53 ) <> col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query I rowsort
SELECT col1 + + col1 * + col1 AS col1 FROM tab1
----
210
2256
30

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5712
SELECT DISTINCT CAST( 56 AS SIGNED ) col1 FROM tab0
----
56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5712
SELECT DISTINCT CAST ( 56 AS INTEGER ) col1 FROM tab0
----
56

onlyif mysql # DIV for integer division: 
query II rowsort label-5713
SELECT col2 DIV + col1 AS col1, col1 FROM tab1
----
1
47
11
5
6
14

skipif mysql # not compatible
query II rowsort label-5713
SELECT col2 / + col1 AS col1, col1 FROM tab1
----
1
47
11
5
6
14

query I rowsort
SELECT - ( - 2 ) AS col2 FROM tab0
----
2
2
2

onlyif mysql # DIV for integer division: 
query I rowsort label-5715
SELECT + col1 DIV col1 * + col1 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-5715
SELECT + col1 / col1 * + col1 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT col1 * - 2 FROM tab0 AS cor0
----
-162
-2
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-5717
SELECT ALL 8 * COUNT( DISTINCT col0 ) + - + 41 + + 34 AS col0 FROM tab2 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-5717
SELECT ALL 8 * COUNT ( DISTINCT col0 ) + - + 41 + + 34 AS col0 FROM tab2 AS cor0
----
17

query I rowsort
SELECT - 79 * + ( + col1 ) FROM tab0 AS cor0
----
-1659
-6399
-79

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5720
SELECT COUNT( * ) * 68 AS col2 FROM tab1, tab1 AS cor0
----
612

skipif mysql # not compatible
query I rowsort label-5720
SELECT COUNT ( * ) * 68 AS col2 FROM tab1, tab1 AS cor0
----
612

query I rowsort
SELECT ALL + col0 * + 5 + - col1 FROM tab1 WHERE - col2 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5722
SELECT * FROM tab2 WHERE NOT ( NULL ) IN ( + 24, col1, + CAST( NULL AS SIGNED ), + + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5722
SELECT * FROM tab2 WHERE NOT ( NULL ) IN ( + 24, col1, + CAST ( NULL AS INTEGER ), + + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5723
SELECT - ( + - MIN( CAST( 42 AS SIGNED ) ) ) FROM tab2
----
42

skipif mysql # not compatible
query I rowsort label-5723
SELECT - ( + - MIN ( CAST ( 42 AS INTEGER ) ) ) FROM tab2
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-5724
SELECT col0 DIV - 77 AS col0 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5724
SELECT col0 / - 77 AS col0 FROM tab1 AS cor0
----
-1
-1
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 7 - - + 49 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT DISTINCT 34 AS col2, - col1 * + col2 FROM tab0 AS cor0
----
34
-210
34
-3807
34
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5727
SELECT DISTINCT MIN( 47 ) FROM tab0
----
47

skipif mysql # not compatible
query I rowsort label-5727
SELECT DISTINCT MIN ( 47 ) FROM tab0
----
47

query III rowsort
SELECT * FROM tab1 WHERE NOT 42 NOT BETWEEN + - 58 AND - col0 AND NOT col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5729
SELECT + MAX( - 98 ) FROM tab0 WHERE - - col2 IS NOT NULL
----
-98

skipif mysql # not compatible
query I rowsort label-5729
SELECT + MAX ( - 98 ) FROM tab0 WHERE - - col2 IS NOT NULL
----
-98

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

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

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

skipif mysql # not compatible
query I rowsort label-5732
SELECT ALL COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab2
----
0

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5736
SELECT DISTINCT - - 78 * + + COUNT( ALL col1 ) - 14 FROM tab2 AS cor0
----
220

skipif mysql # not compatible
query I rowsort label-5736
SELECT DISTINCT - - 78 * + + COUNT ( ALL col1 ) - 14 FROM tab2 AS cor0
----
220

onlyif mysql # aggregate syntax: 
query II rowsort label-5737
SELECT ( + COUNT( * ) ) - - 61, 82 AS col0 FROM tab2 AS cor0
----
64
82

skipif mysql # not compatible
query II rowsort label-5737
SELECT ( + COUNT ( * ) ) - - 61, 82 AS col0 FROM tab2 AS cor0
----
64
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col2 - col1 col2 FROM tab0 cor0
----
-100
-231
-3888

onlyif mysql # DIV for integer division: 
query II rowsort label-5739
SELECT col1 - + col1 * + col1 AS col1, + 3 DIV + col1 col2 FROM tab0
----
-420
0
-6480
0
0
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5739
SELECT col1 - + col1 * + col1 AS col1, + 3 / + col1 col2 FROM tab0
----
-420
0
-6480
0
0
3

query I rowsort
SELECT DISTINCT - col1 + + + col2 FROM tab2 WHERE + + col2 + - col0 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5741
SELECT ALL 50 DIV - col1 * col2 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5741
SELECT ALL 50 / - col1 * col2 AS col1 FROM tab2
----
0
0
0

query II rowsort
SELECT DISTINCT col2, + 62 AS col0 FROM tab2
----
23
62
40
62
58
62

query I rowsort
SELECT - col1 AS col2 FROM tab2 WHERE NOT col0 * 72 + - col1 NOT IN ( col0 )
----

query I rowsort
SELECT + col1 * - ( 80 ) AS col2 FROM tab1
----
-1120
-3760
-400

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

query II rowsort
SELECT + col2, - col2 * + - 43 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

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

query II rowsort
SELECT + 98 AS col2, - 66 AS col2 FROM tab0
----
98
-66
98
-66
98
-66

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL > 46
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5750
SELECT DISTINCT COUNT( * ) * - 79 AS col1 FROM tab1 AS cor0
----
-237

skipif mysql # not compatible
query I rowsort label-5750
SELECT DISTINCT COUNT ( * ) * - 79 AS col1 FROM tab1 AS cor0
----
-237

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5751
SELECT ALL + CAST( + 88 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
88
88
88

skipif mysql # not compatible
query I rowsort label-5751
SELECT ALL + CAST ( + 88 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
88
88
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5752
SELECT DISTINCT + COUNT( - 35 ) + 81 FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-5752
SELECT DISTINCT + COUNT ( - 35 ) + 81 FROM tab0 AS cor0
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5753
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN col1 AND CAST( NULL AS SIGNED ) * - 59 + + 62
----

skipif mysql # not compatible
query III rowsort label-5753
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN col1 AND CAST ( NULL AS INTEGER ) * - 59 + + 62
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - 46 NOT BETWEEN + + 61 AND - col0
----

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

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

query I rowsort
SELECT 30 + + col1 FROM tab2
----
107
81
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5758
SELECT ALL COUNT( ALL col2 ) + - + 99 - 32 AS col2 FROM tab0
----
-128

skipif mysql # not compatible
query I rowsort label-5758
SELECT ALL COUNT ( ALL col2 ) + - + 99 - 32 AS col2 FROM tab0
----
-128

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

query I rowsort
SELECT - 69 + - col0 AS col2 FROM tab1
----
-120
-154
-160

onlyif mysql # aggregate syntax: 
query I rowsort label-5761
SELECT DISTINCT COUNT( * ) + - + 14 FROM tab1 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-5761
SELECT DISTINCT COUNT ( * ) + - + 14 FROM tab1 AS cor0
----
-11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 68 + + col1 col0 FROM tab2 AS cor0
----
119
135
145

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5764
SELECT DISTINCT - COUNT( * ) - 5 FROM tab1 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-5764
SELECT DISTINCT - COUNT ( * ) - 5 FROM tab1 AS cor0
----
-8

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 30 NOT IN ( col0, - 73, + col0 + + 22 + - col1 + ( + + col2 ) * + + col2 * - ( + 58 ) * - col0 + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-5766
SELECT - 73 DIV - - 99, + col2 FROM tab1
----
0
59
0
68
0
96

skipif mysql # not compatible
query II rowsort label-5766
SELECT - 73 / - - 99, + col2 FROM tab1
----
0
59
0
68
0
96

query I rowsort
SELECT DISTINCT + 49 AS col0 FROM tab2, tab0 cor0
----
49

query I rowsort
SELECT + col0 + col1 - + 48 AS col1 FROM tab1 WHERE 38 / - col0 = - - col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5769
SELECT DISTINCT + 10 + + 90 AS col2, + COUNT( DISTINCT - - col2 ) AS col1 FROM tab1 AS cor0
----
100
3

skipif mysql # not compatible
query II rowsort label-5769
SELECT DISTINCT + 10 + + 90 AS col2, + COUNT ( DISTINCT - - col2 ) AS col1 FROM tab1 AS cor0
----
100
3

query I rowsort
SELECT + col1 + + col1 * col1 * + 39 AS col0 FROM tab0 AS cor0
----
17220
255960
40

query II rowsort
SELECT ALL + 26 AS col0, col0 FROM tab1 AS cor0
----
26
51
26
85
26
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5772
SELECT + CAST( ( + + SUM( + 69 ) ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
207

skipif mysql # not compatible
query I rowsort label-5772
SELECT + CAST ( ( + + SUM ( + 69 ) ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
207

query II rowsort
SELECT DISTINCT col1 * + col2 AS col1, - col0 * col1 * - 3 AS col2 FROM tab0
----
210
5481
3807
3645
99
291

query I rowsort
SELECT 52 AS col0 FROM tab0 WHERE NOT - col1 + + + 88 >= ( + + col0 )
----
52
52
52

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

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

query I rowsort
SELECT ALL col0 * - col1 * + col2 AS col1 FROM tab1
----
-25075
-290836
-68544

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 58 + + col2 * - col0 BETWEEN + - 1 AND col0 * + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col1 + + ( - - ( - 88 ) ) col2 FROM tab0 AS cor0
----
1127
1739
9

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5781
SELECT + 63 * col2 AS col0, ( - CAST( NULL AS SIGNED ) ) FROM tab2 cor0
----
1449
NULL
2520
NULL
3654
NULL

skipif mysql # not compatible
query II rowsort label-5781
SELECT + 63 * col2 AS col0, ( - CAST ( NULL AS INTEGER ) ) FROM tab2 cor0
----
1449
NULL
2520
NULL
3654
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5782
SELECT + col0 * - ( + ( col1 ) ) * - col2 + - CAST( + + col2 AS SIGNED ) + + col1 FROM tab0 cor0
----
18281
57139
9505

skipif mysql # not compatible
query I rowsort label-5782
SELECT + col0 * - ( + ( col1 ) ) * - col2 + - CAST ( + + col2 AS INTEGER ) + + col1 FROM tab0 cor0
----
18281
57139
9505

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

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

query I rowsort
SELECT col2 + + 17 AS col2 FROM tab2 WHERE NOT NULL <> col2 / + col0 * - 35
----

query I rowsort
SELECT ALL - col0 * + 78 FROM tab1
----
-3978
-6630
-7098

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

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

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

query I rowsort
SELECT 70 + col0 AS col0 FROM tab0 cor0
----
157
167
85

query I rowsort
SELECT - col1 + - 0 + + - col1 FROM tab1 AS cor0
----
-10
-28
-94

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

query I rowsort
SELECT 86 + - col1 FROM tab2 AS cor0
----
19
35
9

onlyif mysql # DIV for integer division: 
query I rowsort label-5792
SELECT DISTINCT ( + col1 ) DIV - - col1 - - 15 FROM tab2 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-5792
SELECT DISTINCT ( + col1 ) / - - col1 - - 15 FROM tab2 AS cor0
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5793
SELECT + 98 + CAST( + + COUNT( * ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
101

skipif mysql # not compatible
query I rowsort label-5793
SELECT + 98 + CAST ( + + COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
101

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 89 + + + 41 > ( - col2 )
----

query I rowsort
SELECT + 86 * + 94 AS col0 FROM tab1
----
8084
8084
8084

query II rowsort
SELECT DISTINCT + ( col1 ) AS col1, + 6 + 47 + + col2 FROM tab1
----
14
149
47
121
5
112

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

query II rowsort
SELECT ( + + 0 ) AS col1, - col0 FROM tab2
----
0
-46
0
-64
0
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-5800
SELECT ALL col1 + + col1 * - col2 + - col2 DIV + col0 FROM tab2 AS cor0
----
-1122
-3003
-3819

skipif mysql # not compatible
query I rowsort label-5800
SELECT ALL col1 + + col1 * - col2 + - col2 / + col0 FROM tab2 AS cor0
----
-1122
-3003
-3819

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

query I rowsort
SELECT ALL col1 - 76 FROM tab2 AS cor0
----
-25
-9
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + 2 col1 FROM tab1 AS cor0
----
61
70
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5804
SELECT SUM( ALL col0 ) AS col2 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5804
SELECT SUM ( ALL col0 ) AS col2 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ( - 52 ) + col1 * col2 AS col1 FROM tab2
----
1121
3028
3834

query I rowsort
SELECT ALL - 49 * 20 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 15e79062e101d3f60b18666021a480c1

query I rowsort
SELECT ( + col2 ) * - col1 * col2 AS col1 FROM tab1
----
-129024
-17405
-217328

query III rowsort
SELECT * FROM tab2 WHERE - col1 IN ( + + ( - col2 ), - col2 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5810
SELECT MIN( 44 ) col1 FROM tab2 AS cor0
----
44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5810
SELECT MIN ( 44 ) col1 FROM tab2 AS cor0
----
44

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT 89 * + col2 * - - 96 FROM tab1
----
504096
580992
820224

onlyif mysql # aggregate syntax: 
query I rowsort label-5817
SELECT COUNT( DISTINCT - + 32 ) AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-5817
SELECT COUNT ( DISTINCT - + 32 ) AS col1 FROM tab1
----
1

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

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

skipif mysql # not compatible
query I rowsort label-5819
SELECT MIN ( ALL - - 8 ) AS col0 FROM tab1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5820
SELECT ALL MAX( DISTINCT + col2 ) * + 72 FROM tab0
----
7128

skipif mysql # not compatible
query I rowsort label-5820
SELECT ALL MAX ( DISTINCT + col2 ) * + 72 FROM tab0
----
7128

query II rowsort
SELECT col0, + 24 - + - col1 AS col0 FROM tab2
----
46
75
64
101
75
91

query II rowsort
SELECT col1 AS col1, - col0 - + - col1 FROM tab0
----
1
-96
21
-66
81
66

query I rowsort
SELECT ( - - 56 ) AS col1 FROM tab2
----
56
56
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 57 col2 FROM tab2 AS cor0
----
1311
2280
3306

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 + - 49 IS NOT NULL
----

query II rowsort
SELECT + 64 AS col1, - col0 + + - 81 * + col0 - + - 64 AS col2 FROM tab0 cor0
----
64
-1166
64
-7070
64
-7890

onlyif mysql # aggregate syntax: 
query II rowsort label-5827
SELECT COUNT( * ), + 24 col1 FROM tab1 AS cor0
----
3
24

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5828
SELECT DISTINCT + COUNT( * ) + + 39 AS col0 FROM tab1 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-5828
SELECT DISTINCT + COUNT ( * ) + + 39 AS col0 FROM tab1 AS cor0
----
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - 95 * 66, col0 col2 FROM tab0 cor0
----
-6270
15
-6270
87
-6270
97

query I rowsort
SELECT ALL + + 5 + + col2 - + col1 AS col1 FROM tab0 AS cor0
----
-29
-6
103

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5832
SELECT - + COUNT( * ) + - - MAX( ALL - + col2 ) * CAST( - - MAX( - + 21 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
1236

skipif mysql # not compatible
query I rowsort label-5832
SELECT - + COUNT ( * ) + - - MAX ( ALL - + col2 ) * CAST ( - - MAX ( - + 21 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
1236

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

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

query I rowsort
SELECT DISTINCT 60 * col2 * ( 52 ) AS col2 FROM tab0
----
146640
308880
31200

query I rowsort
SELECT DISTINCT col0 * + + 1 AS col1 FROM tab0
----
15
87
97

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

skipif mysql # not compatible
query I rowsort label-5836
SELECT COUNT ( * ) + - + 16 AS col2 FROM tab2
----
-13

query I rowsort
SELECT + + col2 + 73 FROM tab0 WHERE NULL IS NULL
----
120
172
83

query I rowsort
SELECT ALL 81 + + col2 FROM tab0
----
128
180
91

query I rowsort
SELECT DISTINCT - 4 + + + col1 + + 90 * col0 FROM tab0 AS cor0
----
1427
7847
8727

query I rowsort
SELECT DISTINCT + - 1 + + - col0 FROM tab2 AS cor0
----
-47
-65
-76

query I rowsort
SELECT DISTINCT - AVG ( - col2 ) AS col0 FROM tab0 AS cor0 WHERE NOT 36 - - col1 <= NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5842
SELECT DISTINCT - 79 FROM tab1 AS cor0 WHERE - col1 * - 21 / - CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5842
SELECT DISTINCT - 79 FROM tab1 AS cor0 WHERE - col1 * - 21 / - CAST ( NULL AS REAL ) IS NOT NULL
----

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + - col2 AS col0 FROM tab2 AS cor0 WHERE col1 * ( + - col2 ) / col1 + - ( + col0 ) + - 89 IS NOT NULL
----
-23
-40
-58

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

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

query I rowsort
SELECT ALL 73 * + col1 AS col2 FROM tab1 AS cor0
----
1022
3431
365

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

query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 >= NULL
----

query I rowsort
SELECT ALL - 11 * + - col0 AS col1 FROM tab0
----
1067
165
957

query I rowsort
SELECT + 9 * + - ( - 49 ) FROM tab2 AS cor0
----
441
441
441

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

query I rowsort
SELECT DISTINCT + 83 * - col1 FROM tab0
----
-1743
-6723
-83

query I rowsort
SELECT + - 63 * - + 98 FROM tab2 WHERE NULL IS NULL
----
6174
6174
6174

query I rowsort
SELECT - 58 + 36 AS col1 FROM tab2
----
-22
-22
-22

query I rowsort
SELECT - col0 - + col1 + - - col1 + + 80 * 42 * - - col0 AS col0 FROM tab1 AS cor0 WHERE + col0 IS NOT NULL
----
171309
285515
305669

onlyif mysql # DIV for integer division: 
query I rowsort label-5859
SELECT ALL col0 DIV - 29 + col0 AS col2 FROM tab0 AS cor0
----
15
84
94

skipif mysql # not compatible
query I rowsort label-5859
SELECT ALL col0 / - 29 + col0 AS col2 FROM tab0 AS cor0
----
15
84
94

query I rowsort
SELECT 71 FROM tab0 AS cor0 WHERE + 0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5861
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( ( col2 + + ( 19 ) - - ( + ( + CAST( + + col1 AS DECIMAL ) ) ) ) NOT BETWEEN + ( + col2 ) * - - col2 AND + 51 )
----
0

skipif mysql # not compatible
query I rowsort label-5861
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( ( col2 + + ( 19 ) - - ( + ( + CAST ( + + col1 AS REAL ) ) ) ) NOT BETWEEN + ( + col2 ) * - - col2 AND + 51 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5862
SELECT DISTINCT - + 34 DIV 14 + COUNT( * ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5862
SELECT DISTINCT - + 34 / 14 + COUNT ( * ) FROM tab2 AS cor0
----
1

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

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

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5869
SELECT DISTINCT 91 DIV col1 FROM tab1
----
1
18
6

skipif mysql # not compatible
query I rowsort label-5869
SELECT DISTINCT 91 / col1 FROM tab1
----
1
18
6

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IS NOT NULL OR NOT - 1 + + 67 / 33 * + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-5871
SELECT + 79 - - 94 DIV - col0 AS col0 FROM tab2
----
77
78
78

skipif mysql # not compatible
query I rowsort label-5871
SELECT + 79 - - 94 / - col0 AS col0 FROM tab2
----
77
78
78

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 + - 70 < NULL OR NOT - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5873
SELECT DISTINCT * FROM tab1 WHERE - 14 NOT IN ( - col2, col2 * - CAST( NULL AS SIGNED ) ) OR NOT col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5873
SELECT DISTINCT * FROM tab1 WHERE - 14 NOT IN ( - col2, col2 * - CAST ( NULL AS INTEGER ) ) OR NOT col0 IS NOT NULL
----

query I rowsort
SELECT 91 - 41 AS col0 FROM tab2
----
50
50
50

query I rowsort
SELECT DISTINCT + - col2 - + - 54 FROM tab0 cor0
----
-45
44
7

query I rowsort
SELECT ALL + col2 * - + 70 + - 91 FROM tab2 AS cor0 WHERE - col2 NOT IN ( - col1 ) AND NOT + col2 BETWEEN NULL AND NULL
----

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

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

query I rowsort
SELECT ALL + 34 + + 5 - - 14 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fede6033dee346dbd272085c05724fda

query II rowsort
SELECT ALL + col0, 13 * - + 90 * + + col2 * - col0 FROM tab1 cor0
----
51
5728320
85
5867550
91
7239960

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5881
SELECT DISTINCT - COUNT ( DISTINCT + col1 ) col1 FROM tab0 AS cor0
----
-3

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5884
SELECT ( + 73 ) * + - COUNT( col2 ) FROM tab1
----
-219

skipif mysql # not compatible
query I rowsort label-5884
SELECT ( + 73 ) * + - COUNT ( col2 ) FROM tab1
----
-219

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

query I rowsort
SELECT ALL 19 AS col2 FROM tab2 WHERE NULL NOT BETWEEN NULL AND NULL
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5888
SELECT + + SUM( DISTINCT col0 ) DIV + - CAST( - COUNT( * ) AS SIGNED ) + - 82 + - + COUNT( * ) FROM tab1 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-5888
SELECT + + SUM ( DISTINCT col0 ) / + - CAST ( - COUNT ( * ) AS INTEGER ) + - 82 + - + COUNT ( * ) FROM tab1 AS cor0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-5889
SELECT DISTINCT + COUNT( * ) + + 56 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
65

skipif mysql # not compatible
query I rowsort label-5889
SELECT DISTINCT + COUNT ( * ) + + 56 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
65

query I rowsort
SELECT ALL - col2 + + + 13 FROM tab0
----
-34
-86
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5892
SELECT DISTINCT + 79 + + COUNT( * ) FROM tab1 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-5892
SELECT DISTINCT + 79 + + COUNT ( * ) FROM tab1 AS cor0
----
82

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

query I rowsort
SELECT col1 - ( - 32 ) FROM tab0 AS cor0
----
113
33
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5895
SELECT DISTINCT - CAST( + col1 AS SIGNED ) - + col1 - + - col0 AS col0 FROM tab2 AS cor0
----
-56
-59
-90

skipif mysql # not compatible
query I rowsort label-5895
SELECT DISTINCT - CAST ( + col1 AS INTEGER ) - + col1 - + - col0 AS col0 FROM tab2 AS cor0
----
-56
-59
-90

query I rowsort
SELECT - col1 + - col0 * + col1 FROM tab1 AS cor0
----
-430
-4324
-728

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 12 + + col0 col1 FROM tab1 AS cor0
----
103
63
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5899
SELECT 49 * COUNT( * ) + + - SUM( ALL + col0 ) AS col2 FROM tab1
----
-80

skipif mysql # not compatible
query I rowsort label-5899
SELECT 49 * COUNT ( * ) + + - SUM ( ALL + col0 ) AS col2 FROM tab1
----
-80

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

query II rowsort
SELECT col1, 21 + + + col1 FROM tab2 AS cor0
----
51
72
67
88
77
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5902
SELECT + + MAX( 42 ) FROM tab0 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-5902
SELECT + + MAX ( 42 ) FROM tab0 AS cor0
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-5903
SELECT 99 AS col1, - MAX( DISTINCT col2 ) AS col1 FROM tab2 AS cor0
----
99
-58

skipif mysql # not compatible
query II rowsort label-5903
SELECT 99 AS col1, - MAX ( DISTINCT col2 ) AS col1 FROM tab2 AS cor0
----
99
-58

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

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

query II rowsort
SELECT - 80, 0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to 5b589be056a3f30991652c16666aa287

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0, col2 * + + col1 + - col1 col0 FROM tab0 cor0 WHERE NOT ( NOT + 7 - - col1 * col1 IS NOT NULL )
----
-15
3726
-87
189
-97
98

query I rowsort
SELECT DISTINCT - 91 FROM tab1 cor0 WHERE NOT col1 < NULL
----

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

query I rowsort
SELECT DISTINCT col2 + - - 82 FROM tab2 WHERE NOT col2 * col1 IN ( - col1 )
----
105
122
140

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5913
SELECT 44 DIV 38 * + - 75 * - COUNT( * ) AS col0 FROM tab1
----
225

skipif mysql # not compatible
query I rowsort label-5913
SELECT 44 / 38 * + - 75 * - COUNT ( * ) AS col0 FROM tab1
----
225

query II rowsort
SELECT - 63 AS col0, col2 - + ( - + col0 ) FROM tab0
----
-63
196
-63
62
-63
97

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

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

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

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

skipif mysql # not compatible
query I rowsort label-5917
SELECT MIN ( - + col2 ) AS col2 FROM tab0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5918
SELECT * FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) > - - 0
----

skipif mysql # not compatible
query III rowsort label-5918
SELECT * FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) > - - 0
----

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

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

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

query I rowsort
SELECT col0 + + - 97 AS col1 FROM tab2
----
-22
-33
-51

onlyif mysql # CAST syntax: DECIMAL type: 
query IIIIII rowsort label-5922
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE CAST( 41 AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-5922
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE CAST ( 41 AS REAL ) IS NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5923
SELECT MAX ( + - col1 ) col0 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT - col0 * + - col1 * + ( col1 ) + - col2 + 51 * - col0 * - 0 + - col2 * + col1 * + + ( - 83 ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
414349
55787
8215

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

query I rowsort
SELECT DISTINCT - - col1 - + 39 - + col1 FROM tab2 AS cor0
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-5927
SELECT 83 DIV 8 - - col0 col1 FROM tab2
----
56
74
85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5927
SELECT 83 / 8 - - col0 col1 FROM tab2
----
56
74
85

query I rowsort
SELECT ALL - col2 - - ( ( 99 ) ) FROM tab1
----
3
31
40

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

query I rowsort
SELECT + col0 - 86 + - 12 AS col0 FROM tab0
----
-1
-11
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5931
SELECT - 82 DIV + - 28 - + 86 * - - COUNT( ALL - + col0 ) FROM tab2
----
-256

skipif mysql # not compatible
query I rowsort label-5931
SELECT - 82 / + - 28 - + 86 * - - COUNT ( ALL - + col0 ) FROM tab2
----
-256

query I rowsort
SELECT - ( + - 61 ) FROM tab1
----
61
61
61

query I rowsort
SELECT ALL - 26 * + - ( col1 ) FROM tab1
----
1222
130
364

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

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

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

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

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

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

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

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

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

query II rowsort
SELECT - - 2, - 53 AS col0 FROM tab2 AS cor0
----
2
-53
2
-53
2
-53

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5943
SELECT - col2 DIV + 81, col1 * col0 DIV col0 AS col2 FROM tab1
----
-1
14
0
47
0
5

skipif mysql # not compatible
query II rowsort label-5943
SELECT - col2 / + 81, col1 * col0 / col0 AS col2 FROM tab1
----
-1
14
0
47
0
5

query I rowsort
SELECT DISTINCT - col2 * - 84 FROM tab2
----
1932
3360
4872

query II rowsort
SELECT DISTINCT - col0 + - - col0 AS col2, 53 * - 6 * col2 - + ( + col0 ) AS col0 FROM tab1
----
0
-18847
0
-21715
0
-30579

query III rowsort
SELECT * FROM tab0 WHERE NULL < 37
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5947
SELECT ALL - 93 + + COUNT( * ) * + 43 AS col1 FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-5947
SELECT ALL - 93 + + COUNT ( * ) * + 43 AS col1 FROM tab0
----
36

query I rowsort
SELECT - 44 + 97 FROM tab1
----
53
53
53

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

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

query I rowsort
SELECT ALL + 15 + - 87 AS col2 FROM tab2 AS cor0
----
-72
-72
-72

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5951
SELECT ( - CAST( NULL AS DECIMAL ) ) AS col0, col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-5951
SELECT ( - CAST ( NULL AS REAL ) ) AS col0, col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

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

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

query I rowsort
SELECT DISTINCT ( - col1 ) + + col0 + - col1 AS col2 FROM tab0 AS cor0
----
-147
45
95

query I rowsort
SELECT ALL 92 - 72 FROM tab1 AS cor0
----
20
20
20

query I rowsort
SELECT - + 41 * + + 81 + + col0 + col2 * + col0 FROM tab1 AS cor0
----
1626
1779
2958

query I rowsort
SELECT + col0 * 43 + + - col0 + - ( + 26 ) * - 84 + + col0 + col1 FROM tab1 AS cor0
----
4391
5844
6144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5957
SELECT + ( - - CAST( + col1 AS SIGNED ) ) + + 35 FROM tab2 AS cor0
----
102
112
86

skipif mysql # not compatible
query I rowsort label-5957
SELECT + ( - - CAST ( + col1 AS INTEGER ) ) + + 35 FROM tab2 AS cor0
----
102
112
86

query I rowsort
SELECT ALL - col0 - + - 66 + - 93 + + - col1 AS col2 FROM tab0 AS cor0
----
-123
-125
-135

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5960
SELECT DISTINCT CAST( + 41 AS SIGNED ) AS col2, 61 + SUM( DISTINCT - + 97 ) FROM tab2
----
41
-36

skipif mysql # not compatible
query II rowsort label-5960
SELECT DISTINCT CAST ( + 41 AS INTEGER ) AS col2, 61 + SUM ( DISTINCT - + 97 ) FROM tab2
----
41
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-5961
SELECT MAX( + - 23 ) AS col2 FROM tab1
----
-23

skipif mysql # not compatible
query I rowsort label-5961
SELECT MAX ( + - 23 ) AS col2 FROM tab1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-5962
SELECT + MAX( ALL col0 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
91

skipif mysql # not compatible
query I rowsort label-5962
SELECT + MAX ( ALL col0 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
91

query I rowsort
SELECT col1 / - + col2 + - col0 AS col0 FROM tab2 AS cor0 WHERE NOT - ( + col0 ) * + col0 <= + + col0 * + 48
----

query I rowsort
SELECT ALL 34 * 63 AS col1 FROM tab2
----
2142
2142
2142

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

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

query I rowsort
SELECT - 81 + + 67 FROM tab2
----
-14
-14
-14

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

query I rowsort
SELECT DISTINCT col2 + - 71 + - col2 + + - ( col2 ) AS col1 FROM tab0 AS cor0
----
-118
-170
-81

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

query I rowsort
SELECT - 21 * - col0 AS col0 FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5971
SELECT + COUNT( CAST( + 65 AS SIGNED ) ) + + 98 FROM tab0 AS cor0
----
101

skipif mysql # not compatible
query I rowsort label-5971
SELECT + COUNT ( CAST ( + 65 AS INTEGER ) ) + + 98 FROM tab0 AS cor0
----
101

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

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

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

query I rowsort
SELECT DISTINCT + col2 * + 43 FROM tab1
----
2537
2924
4128

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

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

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

skipif mysql # not compatible
query I rowsort label-5976
SELECT ALL - 66 * + COUNT ( * ) FROM tab0
----
-198

query I rowsort
SELECT + - 10 FROM tab2 WHERE + col0 BETWEEN NULL AND - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5978
SELECT DISTINCT - col2 DIV 75 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5978
SELECT DISTINCT - col2 / 75 FROM tab2
----
0

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

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

query III rowsort
SELECT * FROM tab0 WHERE - 9 IS NULL
----

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

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

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

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

query I rowsort
SELECT DISTINCT + col0 - + 31 * 60 * - col1 AS col0 FROM tab1 cor0
----
26091
87511
9385

query I rowsort
SELECT DISTINCT col2 - 73 AS col1 FROM tab0
----
-26
-63
26

query I rowsort
SELECT + col2 * col1 + + + 93 FROM tab2
----
1266
3173
3979

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

skipif mysql # not compatible
query I rowsort label-5986
SELECT DISTINCT COUNT ( * ) / + COUNT ( * ) AS col2 FROM tab0
----
1

query II rowsort
SELECT ALL - 57 * - col2 + + col2 * col0 + + col2 AS col2, + col0 + - - col0 AS col0 FROM tab1 AS cor0
----
10132
182
10464
102
8437
170

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5990
SELECT ALL SUM( DISTINCT col1 ) FROM tab2 cor0
----
195

skipif mysql # not compatible
query I rowsort label-5990
SELECT ALL SUM ( DISTINCT col1 ) FROM tab2 cor0
----
195

query I rowsort
SELECT + 25 * col1 AS col1 FROM tab2
----
1275
1675
1925

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5994
SELECT ALL - - AVG ( - CAST( NULL AS DECIMAL ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5994
SELECT ALL - - AVG ( - CAST ( NULL AS REAL ) ) AS col2 FROM tab1 AS cor0
----
NULL

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

query I rowsort
SELECT DISTINCT + - col0 AS col0 FROM tab0 AS cor0 WHERE NOT + 79 > - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5997
SELECT + 63 * - + COUNT( * ) + - + COUNT( * ) FROM tab1 AS cor0
----
-192

skipif mysql # not compatible
query I rowsort label-5997
SELECT + 63 * - + COUNT ( * ) + - + COUNT ( * ) FROM tab1 AS cor0
----
-192

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6001
SELECT 36 + + col2 DIV col2 AS col1 FROM tab0
----
37
37
37

skipif mysql # not compatible
query I rowsort label-6001
SELECT 36 + + col2 / col2 AS col1 FROM tab0
----
37
37
37

query I rowsort
SELECT 23 AS col0 FROM tab2 WHERE NOT + col1 * col2 IN ( + col1 )
----
23
23
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6003
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab0 WHERE NULL NOT BETWEEN NULL AND col1 - + 43 * col1
----
0

skipif mysql # not compatible
query I rowsort label-6003
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab0 WHERE NULL NOT BETWEEN NULL AND col1 - + 43 * col1
----
0

query I rowsort
SELECT 48 AS col2 FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN - col1 AND + 96
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6005
SELECT DISTINCT col2 DIV + col2 + col1 * - col0 AS col2 FROM tab0
----
-1214
-1826
-96

skipif mysql # not compatible
query I rowsort label-6005
SELECT DISTINCT col2 / + col2 + col1 * - col0 AS col2 FROM tab0
----
-1214
-1826
-96

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab2 WHERE NULL NOT IN ( + col0 )
----

query I rowsort
SELECT ALL col0 * + 73 FROM tab2
----
3358
4672
5475

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 > ( + col2 )
----
97
1
99

query III rowsort
SELECT * FROM tab1 WHERE 70 * 57 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6010
SELECT ALL - col0 AS col0 FROM tab1 WHERE NOT col2 * + CAST( - col2 AS SIGNED ) <> - col0 * - 76
----

skipif mysql # not compatible
query I rowsort label-6010
SELECT ALL - col0 AS col0 FROM tab1 WHERE NOT col2 * + CAST ( - col2 AS INTEGER ) <> - col0 * - 76
----

query I rowsort
SELECT DISTINCT ( col2 ) * + 60 FROM tab1
----
3540
4080
5760

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 76 <= - col0
----
85
5
59
91
47
68

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

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 NOT IN ( ( - 87 ) )
----

query I rowsort
SELECT ( + col1 ) FROM tab2 WHERE NOT + 28 * col0 + 47 IS NOT NULL
----

query I rowsort
SELECT + ( - col1 ) FROM tab0 WHERE ( NULL ) NOT BETWEEN 47 AND ( 72 * + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6017
SELECT COUNT( * ) AS col2 FROM tab1 WHERE NOT col0 IN ( - col1 * col1 )
----
3

skipif mysql # not compatible
query I rowsort label-6017
SELECT COUNT ( * ) AS col2 FROM tab1 WHERE NOT col0 IN ( - col1 * col1 )
----
3

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

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 + - 46 NOT IN ( + 48 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6020
SELECT COUNT( * ) + ( ( COUNT( * ) ) + 77 ) FROM tab2
----
83

skipif mysql # not compatible
query I rowsort label-6020
SELECT COUNT ( * ) + ( ( COUNT ( * ) ) + 77 ) FROM tab2
----
83

query I rowsort
SELECT DISTINCT ( - ( + 87 ) ) AS col0 FROM tab1
----
-87

query I rowsort
SELECT ALL + col0 * col1 AS col0 FROM tab0 WHERE NOT 26 NOT IN ( 0 + - ( + 95 ) )
----

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

query I rowsort
SELECT DISTINCT ( + 34 ) FROM tab0 WHERE NULL IS NULL
----
34

query I rowsort
SELECT - 43 * col0 FROM tab1
----
-2193
-3655
-3913

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6027
SELECT - MIN( + col0 ) * - ( 91 * COUNT( * ) ) AS col2 FROM tab2
----
12558

skipif mysql # not compatible
query I rowsort label-6027
SELECT - MIN ( + col0 ) * - ( 91 * COUNT ( * ) ) AS col2 FROM tab2
----
12558

query I rowsort
SELECT ALL 4 + - col0 FROM tab2
----
-42
-60
-71

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 93 NOT BETWEEN NULL AND + col2 * 26
----

query I rowsort
SELECT ALL - ( 99 ) AS col0 FROM tab0 WHERE NULL NOT IN ( + col1 - 77 / 36 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) > 55
----

query I rowsort
SELECT col2 * ( col0 ) AS col0 FROM tab0
----
705
870
9603

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6034
SELECT DISTINCT COUNT( + col0 ) * - MIN( DISTINCT + 96 ) FROM tab2
----
-288

skipif mysql # not compatible
query I rowsort label-6034
SELECT DISTINCT COUNT ( + col0 ) * - MIN ( DISTINCT + 96 ) FROM tab2
----
-288

onlyif mysql # aggregate syntax: 
query I rowsort label-6035
SELECT ALL + COUNT( * ) FROM tab0 WHERE NOT 36 + col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6035
SELECT ALL + COUNT ( * ) FROM tab0 WHERE NOT 36 + col2 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT + col1 + - ( 38 ) FROM tab2
----
13
29
39

query I rowsort
SELECT 46 * + 1 AS col0 FROM tab1 AS cor0
----
46
46
46

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

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

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

query I rowsort
SELECT DISTINCT 79 AS col1 FROM tab1 AS cor0 WHERE NOT col2 * - 25 + + col0 * - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 53 AS col1 FROM tab2 WHERE NOT - 78 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 51 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2
----
-51

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6044
SELECT + 2 DIV + 35 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6044
SELECT + 2 / + 35 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT + col1 * - 17 FROM tab1 AS cor0
----
-238
-799
-85

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 >= ( NULL )
----

query I rowsort
SELECT DISTINCT 18 * 15 FROM tab0 AS cor0 WHERE NULL NOT IN ( 3 )
----

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

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

query I rowsort
SELECT DISTINCT - 43 * + col2 FROM tab0 AS cor0
----
-2021
-4257
-430

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 = ( 55 * - col1 - + 42 )
----
97
1
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6052
SELECT ALL MAX( ALL + col2 ) DIV + ( - COUNT( * ) ) FROM tab0 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-6052
SELECT ALL MAX ( ALL + col2 ) / + ( - COUNT ( * ) ) FROM tab0 AS cor0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-6053
SELECT + ( - SUM( DISTINCT - col1 ) ) col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6053
SELECT + ( - SUM ( DISTINCT - col1 ) ) col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
66

query I rowsort
SELECT col0 + - 17 FROM tab2 WHERE NOT NULL IN ( 5 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( + 51 )
----

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

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 NOT BETWEEN + col2 AND 34 - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 78 * 72 * - 41 AS col2 FROM tab0
----
-230256
-230256
-230256

query I rowsort
SELECT ALL - col0 - - 90 FROM tab0 WHERE + col2 + col2 IS NOT NULL
----
-7
3
75

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

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

query I rowsort
SELECT + 60 FROM tab2 WHERE col2 + ( - col1 ) NOT BETWEEN NULL AND ( NULL ) OR + col1 IS NOT NULL
----
60
60
60

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6063
SELECT DISTINCT MAX( 64 ) FROM tab1 WHERE NOT - 68 IN ( - 12 + 45 )
----
64

skipif mysql # not compatible
query I rowsort label-6063
SELECT DISTINCT MAX ( 64 ) FROM tab1 WHERE NOT - 68 IN ( - 12 + 45 )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6064
SELECT 27 * COUNT( * ) col2 FROM tab1
----
81

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

query I rowsort
SELECT - 66 * + 87 + col1 FROM tab2 cor0
----
-5665
-5675
-5691

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

query I rowsort
SELECT col1 + + 24 AS col2 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - col0 * - col0 col1 FROM tab2
----
2065
4019
5558

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

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

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

query I rowsort
SELECT DISTINCT - 38 + - col2 FROM tab1 AS cor0
----
-106
-134
-97

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

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

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

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

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

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NULL < ( NULL )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( 43 ) IN ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT ( + 94 ) * - - 48 * - col0 - + col0 * 76 FROM tab2 AS cor0
----
-211048
-293632
-344100

query I rowsort
SELECT ALL + - col1 * - col2 + + + col2 FROM tab2 cor0
----
1196
3120
3944

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - 42 BETWEEN col1 AND + col2 - + 1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6082
SELECT 77 DIV + col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6082
SELECT 77 / + col0 FROM tab1
----
0
0
1

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

query I rowsort
SELECT + 40 - - col2 AS col1 FROM tab1
----
108
136
99

query I rowsort
SELECT 26 - col1 AS col1 FROM tab2
----
-25
-41
-51

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

skipif mysql # not compatible
query I rowsort label-6086
SELECT - ( COUNT ( * ) ) AS col0 FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) + - col1 + col2 IS NULL AND NOT ( NULL ) IS NOT NULL
----
0

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

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

skipif mysql # not compatible
query I rowsort label-6088
SELECT MAX ( + CAST ( NULL AS INTEGER ) ) - + + 63 * - ( COUNT ( * ) ) AS col1 FROM tab2
----
NULL

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

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

query I rowsort
SELECT DISTINCT - col1 + + - col0 + + ( + col2 ) * + col0 FROM tab0 AS cor0
----
609
762
9505

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

query I rowsort
SELECT ALL 19 FROM tab2 AS cor0 WHERE NOT ( col1 ) < - 94 + - 31 + + 40
----
19
19
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6093
SELECT DISTINCT + COUNT( * ) - + 37 FROM tab0 cor0
----
-34

skipif mysql # not compatible
query I rowsort label-6093
SELECT DISTINCT + COUNT ( * ) - + 37 FROM tab0 cor0
----
-34

query I rowsort
SELECT DISTINCT - 76 - - + 20 FROM tab2 AS cor0
----
-56

query I rowsort
SELECT - col1 * - - 18 AS col1 FROM tab2
----
-1206
-1386
-918

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6096
SELECT ALL * FROM tab2 WHERE + col1 / - + CAST( col1 AS DECIMAL ) * col0 + + col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-6096
SELECT ALL * FROM tab2 WHERE + col1 / - + CAST ( col1 AS REAL ) * col0 + + col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6097
SELECT - COUNT( * ) * + CAST( + COUNT( ALL col0 ) AS SIGNED ) AS col2 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-6097
SELECT - COUNT ( * ) * + CAST ( + COUNT ( ALL col0 ) AS INTEGER ) AS col2 FROM tab2
----
-9

query I rowsort
SELECT ALL + ( + 60 ) * - col0 AS col2 FROM tab2
----
-2760
-3840
-4500

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6099
SELECT + CAST( NULL AS SIGNED ) col1, 83 AS col1 FROM tab1
----
NULL
83
NULL
83
NULL
83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6099
SELECT + CAST ( NULL AS INTEGER ) col1, 83 AS col1 FROM tab1
----
NULL
83
NULL
83
NULL
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6100
SELECT MAX( - - ( - + col2 ) ) AS col2 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-6100
SELECT MAX ( - - ( - + col2 ) ) AS col2 FROM tab0
----
-10

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6102
SELECT ALL - 25 * + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-6102
SELECT ALL - 25 * + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6103
SELECT ALL - - MIN( + + 99 ) DIV + - COUNT( * ) FROM tab2 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-6103
SELECT ALL - - MIN ( + + 99 ) / + - COUNT ( * ) FROM tab2 AS cor0
----
-33

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

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

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

query I rowsort
SELECT + 65 AS col2 FROM tab0 WHERE NOT - col2 - 36 - - - col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 17 * - + ( + col0 ) col1 FROM tab2
----
-1088
-1275
-782

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 * - col1 + - + 77 <= ( 42 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6109
SELECT + 85 * - AVG ( + CAST( col1 AS SIGNED ) ) FROM tab2 AS cor0 WHERE NOT ( NULL ) >= + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6109
SELECT + 85 * - AVG ( + CAST ( col1 AS INTEGER ) ) FROM tab2 AS cor0 WHERE NOT ( NULL ) >= + col1
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 >= - col0 * - - 73
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6111
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - CAST( + - 25 AS SIGNED ) IN ( col1 * - 30 + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6111
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - CAST ( + - 25 AS INTEGER ) IN ( col1 * - 30 + CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - 43 + - col2 NOT IN ( - 48 )
----

query I rowsort
SELECT + - 7 * + col0 AS col1 FROM tab0 AS cor0
----
-105
-609
-679

query II rowsort
SELECT + col2 * + - col0 AS col0, + col1 + 97 AS col0 FROM tab1
----
-4896
111
-5015
102
-6188
144

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 >= 61
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6117
SELECT + col1 + col2 AS col2, 44 * CAST( - 37 AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE + col2 IN ( - 52 )
----

skipif mysql # not compatible
query II rowsort label-6117
SELECT + col1 + col2 AS col2, 44 * CAST ( - 37 AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE + col2 IN ( - 52 )
----

query I rowsort
SELECT - - col2 * col0 - + col0 AS col1 FROM tab2 AS cor0 WHERE 81 NOT BETWEEN - col2 * + col1 + + 37 AND + 43
----
1012
2496
4275

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

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

query I rowsort
SELECT ALL 93 + + col1 AS col2 FROM tab2 AS cor0
----
144
160
170

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

query I rowsort
SELECT DISTINCT col2 + + 51 FROM tab1 AS cor0
----
110
119
147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6124
SELECT CAST( - 46 AS SIGNED ) FROM tab0 AS cor0 WHERE col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-6124
SELECT CAST ( - 46 AS INTEGER ) FROM tab0 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6125
SELECT - 78 + + CAST( - COUNT( * ) AS SIGNED ) AS col1, 23 col0 FROM tab1 AS cor0
----
-81
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6125
SELECT - 78 + + CAST ( - COUNT ( * ) AS INTEGER ) AS col1, 23 col0 FROM tab1 AS cor0
----
-81
23

onlyif mysql # DIV for integer division: 
query II rowsort label-6126
SELECT DISTINCT col1, - col2 DIV - col1 + + ( - col2 ) FROM tab2
----
51
-23
67
-58
77
-40

skipif mysql # not compatible
query II rowsort label-6126
SELECT DISTINCT col1, - col2 / - col1 + + ( - col2 ) FROM tab2
----
51
-23
67
-58
77
-40

query I rowsort
SELECT col1 AS col2 FROM tab2 WHERE - col0 <> col0
----
51
67
77

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6129
SELECT DISTINCT - - COUNT( * ) AS col0 FROM tab2 WHERE NULL NOT BETWEEN + 60 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-6129
SELECT DISTINCT - - COUNT ( * ) AS col0 FROM tab2 WHERE NULL NOT BETWEEN + 60 AND NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE NULL > col2 / col2 * - col2 * col1
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6132
SELECT COUNT( * ) DIV + + 47 * - 80 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6132
SELECT COUNT ( * ) / + + 47 * - 80 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6133
SELECT - MAX( + col2 ) col0 FROM tab0 cor0
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6133
SELECT - MAX ( + col2 ) col0 FROM tab0 cor0
----
-99

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

query I rowsort
SELECT col0 * 18 - 72 AS col0 FROM tab0 AS cor0
----
1494
1674
198

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

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

skipif mysql # not compatible
query I rowsort label-6137
SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # DIV for integer division: 
query I rowsort label-6138
SELECT col1 DIV - 12 AS col1 FROM tab2
----
-4
-5
-6

skipif mysql # not compatible
query I rowsort label-6138
SELECT col1 / - 12 AS col1 FROM tab2
----
-4
-5
-6

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

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

query I rowsort
SELECT ALL 97 * col2 * - 45 AS col1 FROM tab0 AS cor0 WHERE NOT ( - col0 ) IS NULL
----
-205155
-432135
-43650

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

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

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

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab1 WHERE 77 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6145
SELECT + + col1 AS col2 FROM tab0 WHERE NOT - col1 * 68 + col0 * + CAST( NULL AS SIGNED ) > - - col2
----

skipif mysql # not compatible
query I rowsort label-6145
SELECT + + col1 AS col2 FROM tab0 WHERE NOT - col1 * 68 + col0 * + CAST ( NULL AS INTEGER ) > - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6146
SELECT DISTINCT COUNT( DISTINCT col0 ) * + 85 AS col1 FROM tab2
----
255

skipif mysql # not compatible
query I rowsort label-6146
SELECT DISTINCT COUNT ( DISTINCT col0 ) * + 85 AS col1 FROM tab2
----
255

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6147
SELECT DISTINCT - - col1 col0 FROM tab2 WHERE + CAST ( NULL AS INTEGER ) NOT BETWEEN + col0 AND - + col1
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6150
SELECT DISTINCT - 97 * + COUNT( * ) + - + 78 col2 FROM tab1
----
-369

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6150
SELECT DISTINCT - 97 * + COUNT ( * ) + - + 78 col2 FROM tab1
----
-369

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

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

query I rowsort
SELECT ALL + col2 + + 48 AS col0 FROM tab0
----
147
58
95

query I rowsort
SELECT DISTINCT 76 + - 14 + - col2 * + 22 * + col1 * + 55 AS col1 FROM tab1
----
-1626178
-356888
-3867098

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

query I rowsort
SELECT ALL - 53 + + col0 + - 37 * - col2 FROM tab2 cor0
----
1491
2168
844

onlyif mysql # aggregate syntax: 
query I rowsort label-6156
SELECT 55 + + COUNT( * ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-6156
SELECT 55 + + COUNT ( * ) FROM tab2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6157
SELECT + + MAX( + 26 ) * - + 60 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-1560

skipif mysql # not compatible
query I rowsort label-6157
SELECT + + MAX ( + 26 ) * - + 60 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-1560

onlyif mysql # aggregate syntax: 
query I rowsort label-6158
SELECT COUNT( * ) + - 61 AS col2 FROM tab0
----
-58

skipif mysql # not compatible
query I rowsort label-6158
SELECT COUNT ( * ) + - 61 AS col2 FROM tab0
----
-58

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

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

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

skipif mysql # not compatible
query III rowsort label-6160
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 27 + + - CAST ( + - col1 AS INTEGER ) / ( 54 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6161
SELECT ALL - + 58 + + - COUNT( * ) FROM tab0 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-6161
SELECT ALL - + 58 + + - COUNT ( * ) FROM tab0 AS cor0
----
-61

query I rowsort
SELECT ALL + 44 + + - 30 + - - col0 FROM tab1 AS cor0
----
105
65
99

query I rowsort
SELECT DISTINCT - col1 - - col0 * 82 + + 60 + 65 FROM tab2 AS cor0
----
3846
5296
6208

query I rowsort
SELECT ALL col0 - 14 * - col1 FROM tab0
----
111
1149
381

onlyif mysql # DIV for integer division: 
query I rowsort label-6165
SELECT col1 - + col2 + - - col0 DIV + - col2 FROM tab2
----
26
36
8

skipif mysql # not compatible
query I rowsort label-6165
SELECT col1 - + col2 + - - col0 / + - col2 FROM tab2
----
26
36
8

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 IN ( - - 82 )
----

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col2 - - col1 col1 FROM tab2 WHERE NULL NOT IN ( 26, 88 )
----

query I rowsort
SELECT - ( - + col2 ) FROM tab0 WHERE 71 BETWEEN NULL AND - - col1
----

query I rowsort
SELECT DISTINCT - + 98 AS col0 FROM tab2 cor0
----
-98

query I rowsort
SELECT + - 91 * 0 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT 46 FROM tab1 WHERE NOT NULL BETWEEN NULL AND col1 + + 95
----

query I rowsort
SELECT DISTINCT col1 * 47 AS col0 FROM tab0
----
3807
47
987

query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - 95 IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( 10 ) > NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6178
SELECT ALL col0 * col2 DIV - 9 AS col0 FROM tab0 AS cor0
----
-1067
-78
-96

skipif mysql # not compatible
query I rowsort label-6178
SELECT ALL col0 * col2 / - 9 AS col0 FROM tab0 AS cor0
----
-1067
-78
-96

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6180
SELECT DISTINCT + CAST( NULL AS SIGNED ) + COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( - 85 * - + col2 ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6180
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( - 85 * - + col2 ) AND NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6181
SELECT ALL - + col1 * + CAST( NULL AS SIGNED ) AS col0, - 22 + - 88, + - 15 col1 FROM tab2 AS cor0 WHERE NOT 95 IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-6181
SELECT ALL - + col1 * + CAST ( NULL AS INTEGER ) AS col0, - 22 + - 88, + - 15 col1 FROM tab2 AS cor0 WHERE NOT 95 IS NOT NULL
----

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

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

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

query II rowsort
SELECT DISTINCT + + 46 AS col1, + ( - 43 ) AS col1 FROM tab2 AS cor0
----
46
-43

query I rowsort
SELECT + + col0 * - col0 + - + 65 AS col1 FROM tab0 AS cor0
----
-290
-7634
-9474

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IN ( - ( 45 ), col0, - + col0 )
----

query I rowsort
SELECT 43 FROM tab2 WHERE NOT NULL BETWEEN NULL AND - - ( - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * 80 col2 FROM tab1
----
-4080
-6800
-7280

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( col1, ( ( + col1 ) ), - 24 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6192
SELECT ALL + col2 * + CAST( NULL AS SIGNED ), - ( ( col1 ) ) AS col2 FROM tab0
----
NULL
-1
NULL
-21
NULL
-81

skipif mysql # not compatible
query II rowsort label-6192
SELECT ALL + col2 * + CAST ( NULL AS INTEGER ), - ( ( col1 ) ) AS col2 FROM tab0
----
NULL
-1
NULL
-21
NULL
-81

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 58 + + + col1 + + - col2 col2 FROM tab2
----
67
86
95

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6195
SELECT ALL col1 AS col1 FROM tab2 WHERE NULL NOT IN ( col0 * col1, + 70 * - - col0 + - - 86, CAST( NULL AS DECIMAL ) * col0 + col0 + + CAST( NULL AS SIGNED ) + col1 / - ( + + col0 ) )
----

skipif mysql # not compatible
query I rowsort label-6195
SELECT ALL col1 AS col1 FROM tab2 WHERE NULL NOT IN ( col0 * col1, + 70 * - - col0 + - - 86, CAST ( NULL AS REAL ) * col0 + col0 + + CAST ( NULL AS INTEGER ) + col1 / - ( + + col0 ) )
----

query I rowsort
SELECT ALL + + col2 * + - 61 AS col1 FROM tab2 AS cor0
----
-1403
-2440
-3538

query I rowsort
SELECT DISTINCT - col2 * - - 93 * - col0 FROM tab1 AS cor0
----
455328
466395
575484

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

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

query II rowsort
SELECT ( - col0 ) * - col0 AS col2, col1 FROM tab1
----
2601
14
7225
5
8281
47

query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 * - 25 = col1
----

query I rowsort
SELECT - + 77 + + ( - + col2 ) * col2 FROM tab2 AS cor0
----
-1677
-3441
-606

query I rowsort
SELECT col0 * - - col0 + - col1 FROM tab1 cor0
----
2587
7220
8234

query I rowsort
SELECT col1 * - 60 - 86 FROM tab2 AS cor0 WHERE NULL = - ( col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6205
SELECT ALL - ( - ( + - col2 ) ) DIV - - col1 + ( - 65 ) col2 FROM tab1 AS cor0
----
-66
-71
-76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6205
SELECT ALL - ( - ( + - col2 ) ) / - - col1 + ( - 65 ) col2 FROM tab1 AS cor0
----
-66
-71
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-6206
SELECT ALL - col0 - col2 + ( + 34 ) - - col0 - 4 DIV - - 41 * + 98 FROM tab0 AS cor0
----
-13
-65
24

skipif mysql # not compatible
query I rowsort label-6206
SELECT ALL - col0 - col2 + ( + 34 ) - - col0 - 4 / - - 41 * + 98 FROM tab0 AS cor0
----
-13
-65
24

query I rowsort
SELECT + col1 + + 37 FROM tab1 AS cor0
----
42
51
84

query I rowsort
SELECT ALL + 0 AS col1 FROM tab1 AS cor0 WHERE NULL < + 51 + - - 88
----

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

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

query I rowsort
SELECT ALL - col2 * - col1 - - 14 AS col2 FROM tab2 AS cor0
----
1187
3094
3900

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

skipif mysql # not compatible
query I rowsort label-6211
SELECT ALL - 90 * - CAST ( + col2 AS INTEGER ) FROM tab2 cor0 WHERE ( col1 ) IS NOT NULL
----
2070
3600
5220

query I rowsort
SELECT - - col1 + - 50 + - col2 AS col0 FROM tab2 AS cor0
----
-13
-22
-41

query I rowsort
SELECT + + ( 82 ) + + col0 FROM tab1 AS cor0
----
133
167
173

onlyif mysql # aggregate syntax: 
query II rowsort label-6214
SELECT - 76 + - COUNT( + ( + - col1 ) ) col2, COUNT( * ) FROM tab2
----
-79
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6214
SELECT - 76 + - COUNT ( + ( + - col1 ) ) col2, COUNT ( * ) FROM tab2
----
-79
3

query III rowsort
SELECT * FROM tab0 WHERE ( + - ( 24 ) ) NOT IN ( - + 4 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-6216
SELECT ALL - 80, + COUNT( + + 18 ) AS col1 FROM tab0
----
-80
3

skipif mysql # not compatible
query II rowsort label-6216
SELECT ALL - 80, + COUNT ( + + 18 ) AS col1 FROM tab0
----
-80
3

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6218
SELECT + ( col0 ) DIV + + col1 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6218
SELECT + ( col0 ) / + + col1 FROM tab2
----
0
0
1

onlyif mysql # DIV for integer division: 
query II rowsort label-6219
SELECT ALL col0, col1 DIV + - col2 + - 93 AS col0 FROM tab2
----
46
-95
64
-94
75
-94

skipif mysql # not compatible
query II rowsort label-6219
SELECT ALL col0, col1 / + - col2 + - 93 AS col0 FROM tab2
----
46
-95
64
-94
75
-94

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

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

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

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

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

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

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

query I rowsort
SELECT col0 + + - col1 * col0 AS col2 FROM tab2 AS cor0
----
-2300
-4864
-4950

query I rowsort
SELECT 98 * + 85 + + col0 FROM tab2 AS cor0
----
8376
8394
8405

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 81 col2 FROM tab0 cor0 WHERE NOT - 43 = ( - 57 )
----
81

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

query I rowsort
SELECT - + col1 + + 74 FROM tab1 AS cor0
----
27
60
69

query I rowsort
SELECT ALL 1 FROM tab1 AS cor0 WHERE NOT NULL <= - col1 + + col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 BETWEEN 0 AND - - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6233
SELECT DISTINCT - ( - COUNT( * ) ) FROM tab2 WHERE 0 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-6233
SELECT DISTINCT - ( - COUNT ( * ) ) FROM tab2 WHERE 0 <= NULL
----
0

query I rowsort
SELECT ALL - col1 * - 64 AS col0 FROM tab2
----
3264
4288
4928

query I rowsort
SELECT ALL 50 * + col2 + - col0 FROM tab1
----
2865
3309
4749

query II rowsort
SELECT - col2 AS col2, 26 * 30 FROM tab1
----
-59
780
-68
780
-96
780

query I rowsort
SELECT ALL + col0 + + col0 AS col2 FROM tab1
----
102
170
182

onlyif mysql # aggregate syntax: 
query I rowsort label-6238
SELECT + 58 + 18 * - COUNT( * ) AS col2 FROM tab2, tab0 AS cor0
----
-104

skipif mysql # not compatible
query I rowsort label-6238
SELECT + 58 + 18 * - COUNT ( * ) AS col2 FROM tab2, tab0 AS cor0
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-6239
SELECT ALL - SUM( ALL + col1 ) FROM tab0 WHERE NULL BETWEEN - 28 AND ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6239
SELECT ALL - SUM ( ALL + col1 ) FROM tab0 WHERE NULL BETWEEN - 28 AND ( NULL )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 AS col0, - 92 * col2 col0 FROM tab2
----
-23
-2116
-40
-3680
-58
-5336

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

query II rowsort
SELECT - 11 AS col2, - 16 AS col0 FROM tab2 AS cor0
----
-11
-16
-11
-16
-11
-16

query I rowsort
SELECT DISTINCT - col1 * + 94 + + col2 FROM tab1 AS cor0
----
-1220
-411
-4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6244
SELECT DISTINCT - - 18 - - 30 * - CAST( + 11 AS SIGNED ) col1 FROM tab2 cor0
----
-312

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6244
SELECT DISTINCT - - 18 - - 30 * - CAST ( + 11 AS INTEGER ) col1 FROM tab2 cor0
----
-312

query II rowsort
SELECT ALL col1 * + col0 AS col1, 16 AS col0 FROM tab1
----
425
16
4277
16
714
16

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6247
SELECT ALL col0 * 16 DIV + ( - 17 ) + + 37 * - 90 AS col0 FROM tab2
----
-3373
-3390
-3400

skipif mysql # not compatible
query I rowsort label-6247
SELECT ALL col0 * 16 / + ( - 17 ) + + 37 * - 90 AS col0 FROM tab2
----
-3373
-3390
-3400

query I rowsort
SELECT + 14 * + col0 + + col0 AS col0 FROM tab1
----
1275
1365
765

query I rowsort
SELECT ALL - 31 * + col1 + + 68 + + col2 + + 85 - - col1 FROM tab2 WHERE NOT - col1 IS NULL
----
-1354
-1799
-2117

query I rowsort
SELECT ALL - - col0 + col0 + + + 10 * - col1 + + col0 FROM tab0 AS cor0
----
-765
281
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6251
SELECT DISTINCT - 90 + MIN( DISTINCT 82 ) AS col0 FROM tab2 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-6251
SELECT DISTINCT - 90 + MIN ( DISTINCT 82 ) AS col0 FROM tab2 AS cor0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-6252
SELECT ALL + COUNT( * ) - - 87 FROM tab0 cor0
----
90

skipif mysql # not compatible
query I rowsort label-6252
SELECT ALL + COUNT ( * ) - - 87 FROM tab0 cor0
----
90

query I rowsort
SELECT DISTINCT - - col2 * + 82 * 17 FROM tab0 cor0
----
138006
13940
65518

query I rowsort
SELECT + 61 AS col1 FROM tab0 WHERE NOT col1 - + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab1 WHERE NOT 7 + + col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6256
SELECT col0 DIV 63 * ( + + 70 ) col2 FROM tab1
----
0
70
70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6256
SELECT col0 / 63 * ( + + 70 ) col2 FROM tab1
----
0
70
70

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6258
SELECT DISTINCT COUNT( 86 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6258
SELECT DISTINCT COUNT ( 86 ) AS col1 FROM tab0
----
3

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6261
SELECT + MAX( DISTINCT + ( - ( + - col2 ) ) ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-6261
SELECT + MAX ( DISTINCT + ( - ( + - col2 ) ) ) FROM tab0
----
99

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6263
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - col0 * - CAST( - 61 AS DECIMAL ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-6263
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - col0 * - CAST ( - 61 AS REAL ) AND NULL
----

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

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

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

query I rowsort
SELECT - 3 * + 33 + + col0 AS col1 FROM tab2 AS cor0
----
-24
-35
-53

query I rowsort
SELECT + col1 * 24 * + + col2 FROM tab2 AS cor0
----
28152
73920
93264

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 + 95 AS col1, - 46 col0 FROM tab1 AS cor0
----
146
-46
180
-46
186
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6270
SELECT + 83 * - - col2 + - CAST( - - col0 AS SIGNED ) + + + col1 + + - col2 AS col0 FROM tab1
----
4758
5532
7835

skipif mysql # not compatible
query I rowsort label-6270
SELECT + 83 * - - col2 + - CAST ( - - col0 AS INTEGER ) + + + col1 + + - col2 AS col0 FROM tab1
----
4758
5532
7835

query I rowsort
SELECT - col1 + + col1 + 91 FROM tab0
----
91
91
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6272
SELECT DISTINCT COUNT( * ) * - COUNT( * ) AS col0, - CAST( NULL AS SIGNED ) + + 33 AS col0 FROM tab0 WHERE NOT + col0 IS NULL
----
-9
NULL

skipif mysql # not compatible
query II rowsort label-6272
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) AS col0, - CAST ( NULL AS INTEGER ) + + 33 AS col0 FROM tab0 WHERE NOT + col0 IS NULL
----
-9
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - + 53 + - col2 col1 FROM tab2
----
-2461
-3432
-4033

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - + col2 ) col0 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT DISTINCT 75 / + col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6279
SELECT ( - COUNT( + + col0 ) ) AS col1 FROM tab0 AS cor0 WHERE 25 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-6279
SELECT ( - COUNT ( + + col0 ) ) AS col1 FROM tab0 AS cor0 WHERE 25 >= NULL
----
0

query I rowsort
SELECT ALL - + ( + + 15 ) * - - col2 * - col1 + 81 * - 85 FROM tab0 AS cor0
----
-3735
-5400
50220

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

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

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

query II rowsort
SELECT + col2, - col2 * col2 FROM tab2 AS cor0
----
23
-529
40
-1600
58
-3364

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6285
SELECT DISTINCT - + MAX ( + + 20 ) col1 FROM tab0 AS cor0
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-6286
SELECT DISTINCT - ( + 72 ) AS col0, MAX( - col2 ) FROM tab1
----
-72
-59

skipif mysql # not compatible
query II rowsort label-6286
SELECT DISTINCT - ( + 72 ) AS col0, MAX ( - col2 ) FROM tab1
----
-72
-59

query I rowsort
SELECT + col2 FROM tab2 WHERE NOT + 0 + + + 65 > + - col0 * + + col2 + - + 35 * - col2
----

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - col0 + + 7 AS col2 FROM tab0 AS cor0
----
-8
-80
-90

query I rowsort
SELECT 42 * + col0 FROM tab1
----
2142
3570
3822

onlyif mysql # aggregate syntax: 
query II rowsort label-6296
SELECT - COUNT( * ) AS col2, + 96 AS col0 FROM tab0
----
-3
96

skipif mysql # not compatible
query II rowsort label-6296
SELECT - COUNT ( * ) AS col2, + 96 AS col0 FROM tab0
----
-3
96

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6297
SELECT + + col0 FROM tab2 WHERE NULL = + ( + - CAST( NULL AS SIGNED ) ) + + 25 + + + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-6297
SELECT + + col0 FROM tab2 WHERE NULL = + ( + - CAST ( NULL AS INTEGER ) ) + + 25 + + + CAST ( NULL AS REAL )
----

query I rowsort
SELECT col0 * + + col0 * + - col1 FROM tab1
----
-36125
-36414
-389207

query I rowsort
SELECT DISTINCT - 56 + col0 FROM tab0
----
-41
31
41

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

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

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

query I rowsort
SELECT ALL AVG ( + - 23 ) FROM tab2 AS cor0 WHERE col2 >= NULL
----
NULL

query I rowsort
SELECT + col1 + + 81 * - col1 FROM tab0 AS cor0
----
-1680
-6480
-80

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6305
SELECT ALL + + 94 DIV - + CAST( - 26 AS SIGNED ) + COUNT( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
12

skipif mysql # not compatible
query I rowsort label-6305
SELECT ALL + + 94 / - + CAST ( - 26 AS INTEGER ) + COUNT ( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-6306
SELECT DISTINCT - col0 * col0 DIV + col1 FROM tab2
----
-41
-53
-83

skipif mysql # not compatible
query I rowsort label-6306
SELECT DISTINCT - col0 * col0 / + col1 FROM tab2
----
-41
-53
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-6307
SELECT ALL COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-6307
SELECT ALL COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
9

query I rowsort
SELECT ALL - col2 * + col0 * + - ( - col2 ) FROM tab0 AS cor0
----
-33135
-8700
-950697

query I rowsort
SELECT - ( - 86 ) * - - col1 * - + col0 * col1 AS col2 FROM tab0 AS cor0
----
-3299562
-8342
-8463690

query I rowsort
SELECT ALL + 50 * col2 * 89 * - col2 + + 39 AS col1 FROM tab2 cor0
----
-14969761
-2354011
-7119961

query I rowsort
SELECT ALL + + col0 * - - 20 * col2 FROM tab2 AS cor0
----
21160
51200
87000

query I rowsort
SELECT DISTINCT col2 * - 19 FROM tab1 AS cor0
----
-1121
-1292
-1824

onlyif mysql # aggregate syntax: 
query II rowsort label-6313
SELECT DISTINCT - COUNT( * ), 46 * + 10 AS col1 FROM tab2
----
-3
460

skipif mysql # not compatible
query II rowsort label-6313
SELECT DISTINCT - COUNT ( * ), 46 * + 10 AS col1 FROM tab2
----
-3
460

query I rowsort
SELECT ALL - 56 * + col1 * col1 FROM tab0
----
-24696
-367416
-56

query II rowsort
SELECT col0, - col0 * + col1 * 87 * col2 FROM tab2
----
46
-4694346
64
-17149440
75
-25356150

onlyif mysql # DIV for integer division: 
query I rowsort label-6316
SELECT DISTINCT 33 DIV + + col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6316
SELECT DISTINCT 33 / + + col2 FROM tab1
----
0

query II rowsort
SELECT 52, - 42 + + 29 AS col2 FROM tab1
----
52
-13
52
-13
52
-13

query II rowsort
SELECT + ( - + col1 ) * + col2 AS col1, 88 FROM tab2
----
-1173
88
-3080
88
-3886
88

onlyif mysql # DIV for integer division: 
query I rowsort label-6319
SELECT DISTINCT + col0 DIV col1 col0 FROM tab1
----
1
17
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6319
SELECT DISTINCT + col0 / col1 col0 FROM tab1
----
1
17
3

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 19 * + col2 col0 FROM tab0
----
1881
190
893

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6322
SELECT * FROM tab0 WHERE + + col2 BETWEEN - - 76 + col1 + + col0 / + col1 - - col2 * - + ( + + col2 ) AND + CAST( - + col2 AS SIGNED ) - + - ( - + 71 )
----

skipif mysql # not compatible
query III rowsort label-6322
SELECT * FROM tab0 WHERE + + col2 BETWEEN - - 76 + col1 + + col0 / + col1 - - col2 * - + ( + + col2 ) AND + CAST ( - + col2 AS INTEGER ) - + - ( - + 71 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6324
SELECT + COUNT( * ) + - 77 FROM tab1 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-6324
SELECT + COUNT ( * ) + - 77 FROM tab1 AS cor0
----
-74

query I rowsort
SELECT ALL col0 + + 11 FROM tab0 AS cor0
----
108
26
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6326
SELECT ALL - 22 * - COUNT( * ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-6326
SELECT ALL - 22 * - COUNT ( * ) FROM tab1
----
66

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

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

query III rowsort
SELECT * FROM tab0 WHERE + - col0 + 22 * + + col1 >= - 80
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( + 93 ) AS col2 FROM tab1
----
93
93
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6330
SELECT DISTINCT 85 + - COUNT( * ) FROM tab1 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-6330
SELECT DISTINCT 85 + - COUNT ( * ) FROM tab1 AS cor0
----
82

query I rowsort
SELECT ALL + - col1 - + + col2 - - - col1 * col2 AS col2 FROM tab0 AS cor0
----
-199
-241
-3935

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6333
SELECT DISTINCT SUM( ALL 56 ) AS col2 FROM tab2
----
168

skipif mysql # not compatible
query I rowsort label-6333
SELECT DISTINCT SUM ( ALL 56 ) AS col2 FROM tab2
----
168

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6335
SELECT 48 + + COUNT( * ) * - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT - 31 - - col0 + - ( - + 73 ) + + ( col0 ) * - + col0 * 37 * + 79 IS NULL
----
39

skipif mysql # not compatible
query I rowsort label-6335
SELECT 48 + + COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT - 31 - - col0 + - ( - + 73 ) + + ( col0 ) * - + col0 * 37 * + 79 IS NULL
----
39

query I rowsort
SELECT + 46 * - - col2 + - 7 FROM tab0 AS cor0
----
2155
453
4547

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6339
SELECT + COUNT( - col0 ) * - 8 col1 FROM tab0 AS cor0
----
-24

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + 95 * + - col1 FROM tab2 WHERE NULL IS NULL
----
-4845
-6365
-7315

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 * col2 col1, col0 AS col0 FROM tab2
----
-1600
64
-3364
75
-529
46

query I rowsort
SELECT ALL + 62 * - col2 AS col0 FROM tab1
----
-3658
-4216
-5952

query I rowsort
SELECT + col2 * + col0 FROM tab0 WHERE NOT + col0 IS NULL
----
705
870
9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6348
SELECT DISTINCT + col2 * - col2 * - CAST( - + 3 AS SIGNED ) FROM tab0
----
-29403
-300
-6627

skipif mysql # not compatible
query I rowsort label-6348
SELECT DISTINCT + col2 * - col2 * - CAST ( - + 3 AS INTEGER ) FROM tab0
----
-29403
-300
-6627

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6350
SELECT ALL 30 DIV col0 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-6350
SELECT ALL 30 / col0 FROM tab0
----
0
0
2

query I rowsort
SELECT + + 53 * + 68 AS col0 FROM tab2 AS cor0
----
3604
3604
3604

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT 27 IS NOT NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6354
SELECT + col0 FROM tab0 AS cor0 WHERE NOT NULL >= CAST( NULL AS SIGNED ) / + + 49
----

skipif mysql # not compatible
query I rowsort label-6354
SELECT + col0 FROM tab0 AS cor0 WHERE NOT NULL >= CAST ( NULL AS INTEGER ) / + + 49
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6356
SELECT MAX( - ( + col2 ) ) + - COUNT( * ) FROM tab2
----
-26

skipif mysql # not compatible
query I rowsort label-6356
SELECT MAX ( - ( + col2 ) ) + - COUNT ( * ) FROM tab2
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6357
SELECT ALL + 62 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-6357
SELECT ALL + 62 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT + 84 + col2 FROM tab2
----
107
124
142

query I rowsort
SELECT 7 + + + col1 - - ( - col2 ) FROM tab0
----
-91
18
41

query I rowsort
SELECT + ( - col2 ) AS col1 FROM tab0 WHERE ( NOT ( NOT NULL NOT IN ( + col0 * + ( + - col0 ), + col2 / + 63 ) ) )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL IN ( + col2, + col2, - + ( + 0 ), + col2 + - ( - 59 ), + + ( + 83 ) * - + 6 - + col1 * + col0 )
----

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

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

query I rowsort
SELECT DISTINCT - 91 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 BETWEEN + + 10 AND - - col1
----
97
1
99

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6366
SELECT 34 - + + CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab0
----
31

skipif mysql # not compatible
query I rowsort label-6366
SELECT 34 - + + CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6367
SELECT DISTINCT SUM( + + col0 ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-6367
SELECT DISTINCT SUM ( + + col0 ) FROM tab0
----
199

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

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

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

query I rowsort
SELECT col2 - - - 63 AS col2 FROM tab1
----
-4
33
5

query I rowsort
SELECT 83 + col2 FROM tab1
----
142
151
179

query I rowsort
SELECT DISTINCT 35 + - col0 AS col1 FROM tab1
----
-16
-50
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-6373
SELECT - + 45 + + MIN( ALL - + 17 ) AS col1 FROM tab1 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-6373
SELECT - + 45 + + MIN ( ALL - + 17 ) AS col1 FROM tab1 AS cor0
----
-62

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

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

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

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

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

query I rowsort
SELECT DISTINCT + 2 AS col1 FROM tab1 cor0
----
2

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

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

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

query I rowsort
SELECT DISTINCT col1 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

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

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

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

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

query II rowsort
SELECT DISTINCT + 22 AS col1, 71 FROM tab1 AS cor0
----
22
71

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

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

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

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

query II rowsort
SELECT col1 + + 56 AS col0, col0 * col0 + + col2 AS col1 FROM tab1
----
103
8349
61
7284
70
2697

query II rowsort
SELECT DISTINCT 66 AS col0, + col1 * - + col1 FROM tab2
----
66
-2601
66
-4489
66
-5929

query II rowsort
SELECT ALL - col0, 34 AS col2 FROM tab0
----
-15
34
-87
34
-97
34

query I rowsort
SELECT DISTINCT - 34 + - 64 AS col1 FROM tab0
----
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6392
SELECT + - MAX( ALL + + col1 ) DIV 27 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6392
SELECT + - MAX ( ALL + + col1 ) / 27 FROM tab1 AS cor0
----
-1

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

query I rowsort
SELECT + - 80 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 * + 46 NOT BETWEEN NULL AND + 8
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query I rowsort
SELECT - - 87 - 73 + - col2 FROM tab0 cor0
----
-33
-85
4

query I rowsort
SELECT ALL + - col0 + + - ( - col1 ) FROM tab0 AS cor0
----
-66
-96
66

query I rowsort
SELECT DISTINCT - 57 + 69 * + col2 * col2 FROM tab1 cor0
----
240132
318999
635847

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

skipif mysql # not compatible
query I rowsort label-6400
SELECT - 24 + + col0 - col0 / + - 49 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + + col0 + - col0 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT - 93 * + col1 FROM tab0
----
-1953
-7533
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-6403
SELECT DISTINCT + COUNT( * ) * + + SUM( ALL - 17 ) AS col1 FROM tab1 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-6403
SELECT DISTINCT + COUNT ( * ) * + + SUM ( ALL - 17 ) AS col1 FROM tab1 AS cor0
----
-153

query I rowsort
SELECT - 49 * 57 AS col2 FROM tab1 AS cor0
----
-2793
-2793
-2793

query II rowsort
SELECT col0 AS col1, - ( 96 ) + col2 * - col0 AS col1 FROM tab2 AS cor0
----
46
-1154
64
-2656
75
-4446

onlyif mysql # aggregate syntax: 
query I rowsort label-6406
SELECT ALL + - 41 * COUNT( * ) * 27 FROM tab2 AS cor0
----
-3321

skipif mysql # not compatible
query I rowsort label-6406
SELECT ALL + - 41 * COUNT ( * ) * 27 FROM tab2 AS cor0
----
-3321

query I rowsort
SELECT ALL - - 99 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

onlyif mysql # DIV for integer division: 
query II rowsort label-6408
SELECT ALL - - col0 DIV 14, + col0 * 39 AS col1 FROM tab2 AS cor0
----
3
1794
4
2496
5
2925

skipif mysql # not compatible
query II rowsort label-6408
SELECT ALL - - col0 / 14, + col0 * 39 AS col1 FROM tab2 AS cor0
----
3
1794
4
2496
5
2925

query I rowsort
SELECT + 82 * - + 27 FROM tab2 AS cor0
----
-2214
-2214
-2214

onlyif mysql # DIV for integer division: 
query I rowsort label-6410
SELECT + 85 DIV - ( - col0 ) FROM tab0 AS cor0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-6410
SELECT + 85 / - ( - col0 ) FROM tab0 AS cor0
----
0
0
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6411
SELECT DISTINCT + MAX( col1 ) * 48 * - COUNT( * ) + 96 FROM tab2 AS cor0
----
-10992

skipif mysql # not compatible
query I rowsort label-6411
SELECT DISTINCT + MAX ( col1 ) * 48 * - COUNT ( * ) + 96 FROM tab2 AS cor0
----
-10992

onlyif mysql # aggregate syntax: 
query I rowsort label-6412
SELECT ALL + ( + COUNT( * ) ) + 37 FROM tab2 cor0
----
40

skipif mysql # not compatible
query I rowsort label-6412
SELECT ALL + ( + COUNT ( * ) ) + 37 FROM tab2 cor0
----
40

query I rowsort
SELECT col2 + - col1 + + + col0 AS col1 FROM tab1 AS cor0
----
112
133
139

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6414
SELECT ALL CAST( NULL AS SIGNED ) * - ( + SUM( ALL + col0 ) ), - 23 AS col2 FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----
NULL
-23

skipif mysql # not compatible
query II rowsort label-6414
SELECT ALL CAST ( NULL AS INTEGER ) * - ( + SUM ( ALL + col0 ) ), - 23 AS col2 FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----
NULL
-23

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

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

query II rowsort
SELECT DISTINCT - col1, 35 AS col1 FROM tab0
----
-1
35
-21
35
-81
35

query III rowsort
SELECT * FROM tab2 WHERE - - col2 <> + + col2
----

query II rowsort
SELECT col1, - col1 * + ( + 92 ) + col2 AS col1 FROM tab2
----
51
-4669
67
-6106
77
-7044

onlyif mysql # DIV for integer division: 
query I rowsort label-6420
SELECT + 82 DIV - + col1 FROM tab1 AS cor0
----
-1
-16
-5

skipif mysql # not compatible
query I rowsort label-6420
SELECT + 82 / - + col1 FROM tab1 AS cor0
----
-1
-16
-5

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

query I rowsort
SELECT ALL + col0 + - + col1 * + - col0 + - + col1 AS col0 FROM tab1 cor0
----
4321
505
751

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 BETWEEN + col2 AND ( 61 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6425
SELECT DISTINCT - CAST( MAX( ALL + col1 ) AS SIGNED ) * - COUNT( * ) - + 97 + - COUNT( * ), - MAX( + - 34 ) AS col0 FROM tab2 AS cor0
----
131
34

skipif mysql # not compatible
query II rowsort label-6425
SELECT DISTINCT - CAST ( MAX ( ALL + col1 ) AS INTEGER ) * - COUNT ( * ) - + 97 + - COUNT ( * ), - MAX ( + - 34 ) AS col0 FROM tab2 AS cor0
----
131
34

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 21 - col0 col0 FROM tab0 AS cor0
----
-66
-76
6

query I rowsort
SELECT ALL - 67 - ( - ( - + col1 ) ) FROM tab0
----
-148
-68
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-6430
SELECT DISTINCT SUM( 3 ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-6430
SELECT DISTINCT SUM ( 3 ) FROM tab2
----
9

query I rowsort
SELECT ALL 57 * + - col2 FROM tab1
----
-3363
-3876
-5472

onlyif mysql # aggregate syntax: 
query I rowsort label-6432
SELECT + COUNT( * ) * + MAX( - 96 ) AS col1 FROM tab1
----
-288

skipif mysql # not compatible
query I rowsort label-6432
SELECT + COUNT ( * ) * + MAX ( - 96 ) AS col1 FROM tab1
----
-288

query I rowsort
SELECT DISTINCT 75 * ( - 74 ) AS col2 FROM tab0
----
-5550

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6434
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * - CAST( NULL AS DECIMAL ) + + col2 NOT BETWEEN NULL AND 4
----

skipif mysql # not compatible
query III rowsort label-6434
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * - CAST ( NULL AS REAL ) + + col2 NOT BETWEEN NULL AND 4
----

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

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

query I rowsort
SELECT DISTINCT col1 * 73 * + col0 AS col2 FROM tab1 AS cor0
----
31025
312221
52122

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

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 52 + + - 42 / + col2 IS NOT NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6442
SELECT * FROM tab1 AS cor0 WHERE NOT ( ( NOT 83 / + col2 <= - CAST( NULL AS SIGNED ) * + col2 ) )
----

skipif mysql # not compatible
query III rowsort label-6442
SELECT * FROM tab1 AS cor0 WHERE NOT ( ( NOT 83 / + col2 <= - CAST ( NULL AS INTEGER ) * + col2 ) )
----

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

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

query I rowsort
SELECT 82 * - col1 FROM tab0
----
-1722
-6642
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-6445
SELECT DISTINCT - 34 * + 81 * + SUM( DISTINCT col2 ) FROM tab2
----
-333234

skipif mysql # not compatible
query I rowsort label-6445
SELECT DISTINCT - 34 * + 81 * + SUM ( DISTINCT col2 ) FROM tab2
----
-333234

query III rowsort
SELECT * FROM tab2 WHERE NULL <> - 57
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6447
SELECT 5 + - COUNT( * ) - - 0 FROM tab2
----
2

skipif mysql # not compatible
query I rowsort label-6447
SELECT 5 + - COUNT ( * ) - - 0 FROM tab2
----
2

query I rowsort
SELECT col1 + col2 - - + col1 + col0 AS col2 FROM tab1
----
154
175
253

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * 1 + - + ( + - col1 ) - + col1 * 27 col0 FROM tab0 AS cor0
----
-123
-2121
-633

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + - 99 ) - + col0 col1 FROM tab2 AS cor0
----
24
35
53

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6453
SELECT 45 * - - ( - + col0 ) AS col0, - col2 * + + CAST( NULL AS DECIMAL ) col0 FROM tab2 AS cor0 WHERE col2 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6453
SELECT 45 * - - ( - + col0 ) AS col0, - col2 * + + CAST ( NULL AS REAL ) col0 FROM tab2 AS cor0 WHERE col2 IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-6454
SELECT CAST ( NULL AS INTEGER ) + + 3 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6455
SELECT DISTINCT 77, - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
77
NULL

skipif mysql # not compatible
query II rowsort label-6455
SELECT DISTINCT 77, - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
77
NULL

query I rowsort
SELECT ALL + ( col2 ) * - col2 FROM tab2 AS cor0 WHERE + 34 IS NOT NULL
----
-1600
-3364
-529

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 50 * - + 18 IS NULL
----

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6463
SELECT DISTINCT - 14 AS col2, MIN( - col0 ) AS col0 FROM tab2
----
-14
-75

skipif mysql # not compatible
query II rowsort label-6463
SELECT DISTINCT - 14 AS col2, MIN ( - col0 ) AS col0 FROM tab2
----
-14
-75

query I rowsort
SELECT 3 * - 19 FROM tab0
----
-57
-57
-57

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

query I rowsort
SELECT DISTINCT col2 * + 30 AS col2 FROM tab0
----
1410
2970
300

onlyif mysql # aggregate syntax: 
query I rowsort label-6467
SELECT DISTINCT + COUNT( * ) * + + 94 AS col2 FROM tab0
----
282

skipif mysql # not compatible
query I rowsort label-6467
SELECT DISTINCT + COUNT ( * ) * + + 94 AS col2 FROM tab0
----
282

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6468
SELECT ALL - COUNT( * ) + + + COUNT( * ) - 34 DIV - + ( COUNT( * ) ) FROM tab2 WHERE NOT col0 >= - - col2 - - col0
----
11

skipif mysql # not compatible
query I rowsort label-6468
SELECT ALL - COUNT ( * ) + + + COUNT ( * ) - 34 / - + ( COUNT ( * ) ) FROM tab2 WHERE NOT col0 >= - - col2 - - col0
----
11

query I rowsort
SELECT DISTINCT 72 * + 51 FROM tab2
----
3672

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

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

query II rowsort
SELECT DISTINCT + - 14 AS col2, ( 13 ) * col0 FROM tab0 AS cor0
----
-14
1131
-14
1261
-14
195

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 - + 75 IS NULL
----

query I rowsort
SELECT - - ( - col0 ) * 46 AS col2 FROM tab1 AS cor0
----
-2346
-3910
-4186

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

query I rowsort
SELECT - col0 + - - 9 * + col2 AS col2 FROM tab0 AS cor0
----
3
408
794

query I rowsort
SELECT 35 + col0 FROM tab2 AS cor0
----
110
81
99

query I rowsort
SELECT DISTINCT - - ( - col0 ) AS col2 FROM tab0 WHERE - col1 IS NOT NULL
----
-15
-87
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-6478
SELECT col1 DIV + 55 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6478
SELECT col1 / + 55 FROM tab2
----
0
1
1

query II rowsort
SELECT col2, col0 + 67 FROM tab2
----
23
113
40
131
58
142

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

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

query II rowsort
SELECT 88, 50 AS col0 FROM tab0
----
88
50
88
50
88
50

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6486
SELECT ALL col2, CAST( + col0 AS SIGNED ) DIV 46 + + - 45 FROM tab0 AS cor0
----
10
-44
47
-45
99
-43

skipif mysql # not compatible
query II rowsort label-6486
SELECT ALL col2, CAST ( + col0 AS INTEGER ) / 46 + + - 45 FROM tab0 AS cor0
----
10
-44
47
-45
99
-43

query I rowsort
SELECT - col1 * col2 + + 70 * + col2 AS col2 FROM tab2
----
-280
174
437

onlyif mysql # DIV for integer division: 
query I rowsort label-6488
SELECT - col2 * + ( 12 DIV col2 ) - col0 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-6488
SELECT - col2 * + ( 12 / col2 ) - col0 FROM tab2
----
-46
-64
-75

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6490
SELECT ALL COUNT( * ) DIV + 28 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6490
SELECT ALL COUNT ( * ) / + 28 AS col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6491
SELECT ALL SUM( DISTINCT col2 ) * - 99 col2 FROM tab0
----
-15444

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6491
SELECT ALL SUM ( DISTINCT col2 ) * - 99 col2 FROM tab0
----
-15444

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 94 <> ( - col0 + 81 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * ( col1 ) col0 FROM tab0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6494
SELECT DISTINCT + COUNT( * ) + 15 FROM tab2 WHERE NOT - 83 * 66 <> NULL
----
15

skipif mysql # not compatible
query I rowsort label-6494
SELECT DISTINCT + COUNT ( * ) + 15 FROM tab2 WHERE NOT - 83 * 66 <> NULL
----
15

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6496
SELECT ( CAST( - col1 AS SIGNED ) ) DIV + 57 FROM tab0 WHERE col1 IS NOT NULL
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6496
SELECT ( CAST ( - col1 AS INTEGER ) ) / + 57 FROM tab0 WHERE col1 IS NOT NULL
----
-1
0
0

query I rowsort
SELECT DISTINCT - ( - 97 ) * col0 AS col0 FROM tab2 WHERE NOT + col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6498
SELECT CAST( - ( + 91 ) AS SIGNED ) DIV col2 + 66 * - 59 AS col0 FROM tab0
----
-3894
-3895
-3903

skipif mysql # not compatible
query I rowsort label-6498
SELECT CAST ( - ( + 91 ) AS INTEGER ) / col2 + 66 * - 59 AS col0 FROM tab0
----
-3894
-3895
-3903

query I rowsort
SELECT DISTINCT 32 - 41 AS col1 FROM tab0
----
-9

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

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

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

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

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

query I rowsort
SELECT ALL 67 - 12 AS col1 FROM tab1
----
55
55
55

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 + + 53 BETWEEN col0 * ( ( + col0 ) ) AND - 47
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 45 NOT BETWEEN NULL AND col2 + + col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 12 NOT BETWEEN col0 + + 23 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6507
SELECT * FROM tab2 WHERE NOT + col0 / col1 BETWEEN col1 AND ( - CAST( NULL AS SIGNED ) * 20 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6507
SELECT * FROM tab2 WHERE NOT + col0 / col1 BETWEEN col1 AND ( - CAST ( NULL AS INTEGER ) * 20 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE - col2 * col1 + col0 BETWEEN col2 AND 89
----

query I rowsort
SELECT 36 - col1 AS col2 FROM tab0
----
-45
15
35

query I rowsort
SELECT col2 - 73 FROM tab1
----
-14
-5
23

query I rowsort
SELECT 73 - col0 FROM tab0
----
-14
-24
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6512
SELECT ALL MAX( ALL 92 ) AS col1 FROM tab2 AS cor0 WHERE NOT + col1 NOT BETWEEN ( NULL ) AND - 91 - - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6512
SELECT ALL MAX ( ALL 92 ) AS col1 FROM tab2 AS cor0 WHERE NOT + col1 NOT BETWEEN ( NULL ) AND - 91 - - col1
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6515
SELECT - 69 DIV COUNT( * ) AS col2 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-6515
SELECT - 69 / COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-6516
SELECT ALL MIN( ALL + col0 ) + + SUM( ALL col1 ) AS col2 FROM tab1
----
117

skipif mysql # not compatible
query I rowsort label-6516
SELECT ALL MIN ( ALL + col0 ) + + SUM ( ALL col1 ) AS col2 FROM tab1
----
117

query I rowsort
SELECT ALL + 39 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

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

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

query I rowsort
SELECT DISTINCT + + col2 + + col0 * - 29 FROM tab0 AS cor0
----
-2513
-2714
-388

query I rowsort
SELECT 52 * col1 AS col0 FROM tab1 cor0 WHERE NULL IS NULL
----
2444
260
728

query I rowsort
SELECT ALL - + 55 + col1 AS col0 FROM tab0 AS cor0
----
-34
-54
26

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

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

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

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

query I rowsort
SELECT + col0 + 87 AS col1 FROM tab0 AS cor0
----
102
174
184

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

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

query I rowsort
SELECT DISTINCT col2 * + 29 FROM tab2 WHERE NOT - 57 + - col2 IS NULL
----
1160
1682
667

query I rowsort
SELECT - col2 + + ( col0 ) FROM tab2
----
17
23
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6529
SELECT DISTINCT COUNT( * ) DIV 45 * + 55 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6529
SELECT DISTINCT COUNT ( * ) / 45 * + 55 AS col0 FROM tab1
----
0

query I rowsort
SELECT ALL col2 * - - col2 AS col1 FROM tab2
----
1600
3364
529

query I rowsort
SELECT - col2 + ( 96 ) FROM tab2
----
38
56
73

onlyif mysql # DIV for integer division: 
query I rowsort label-6532
SELECT DISTINCT - col0 DIV + 2 + col2 FROM tab0
----
-33
40
51

skipif mysql # not compatible
query I rowsort label-6532
SELECT DISTINCT - col0 / + 2 + col2 FROM tab0
----
-33
40
51

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6534
SELECT DISTINCT - + 33 DIV - 51 + 60 + 5 DIV ( col1 ) FROM tab1 AS cor0
----
60
61

skipif mysql # not compatible
query I rowsort label-6534
SELECT DISTINCT - + 33 / - 51 + 60 + 5 / ( col1 ) FROM tab1 AS cor0
----
60
61

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6536
SELECT + COUNT( * ) - MAX( DISTINCT - col1 ) AS col2 FROM tab0 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-6536
SELECT + COUNT ( * ) - MAX ( DISTINCT - col1 ) AS col2 FROM tab0 AS cor0
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-6537
SELECT ALL - 95 DIV 93 * 92 + col2 AS col1 FROM tab0 AS cor0
----
-45
-82
7

skipif mysql # not compatible
query I rowsort label-6537
SELECT ALL - 95 / 93 * 92 + col2 AS col1 FROM tab0 AS cor0
----
-45
-82
7

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

query I rowsort
SELECT ALL + 90 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query I rowsort
SELECT ALL col0 - 67 FROM tab0 WHERE NOT col1 * col0 NOT IN ( 63 )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6542
SELECT col1 DIV + ( - col1 ) AS col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6542
SELECT col1 / + ( - col1 ) AS col0 FROM tab2 AS cor0
----
-1
-1
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6544
SELECT + - SUM( DISTINCT col0 ) * 61 FROM tab1 AS cor0
----
-13847

skipif mysql # not compatible
query I rowsort label-6544
SELECT + - SUM ( DISTINCT col0 ) * 61 FROM tab1 AS cor0
----
-13847

query I rowsort
SELECT DISTINCT - col0 FROM tab2 AS cor0 WHERE NOT ( col0 ) NOT IN ( - col1 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 21 * col0 + 15 < ( NULL )
----

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

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

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

query I rowsort
SELECT + 0 * + + col0 FROM tab1 cor0
----
0
0
0

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

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

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

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col1 + - - ( + ( + 64 ) ) - 51 IS NOT NULL
----

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

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

query I rowsort
SELECT ALL - - 55 AS col2 FROM tab1 AS cor0
----
55
55
55

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 NOT IN ( + + 3 * - + col0 * 67 + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6559
SELECT 97 + + SUM( DISTINCT - col2 ) * + + MAX( DISTINCT + col1 ) AS col2 FROM tab2
----
-9220

skipif mysql # not compatible
query I rowsort label-6559
SELECT 97 + + SUM ( DISTINCT - col2 ) * + + MAX ( DISTINCT + col1 ) AS col2 FROM tab2
----
-9220

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - 46 * - - 77 * - col2 col2 FROM tab0 AS cor0
----
166393
350657
35399

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6563
SELECT + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NULL <> - 4 / + - col2
----

skipif mysql # not compatible
query I rowsort label-6563
SELECT + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NULL <> - 4 / + - col2
----

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

query II rowsort
SELECT 44 AS col2, + 42 + - col2 * col1 AS col0 FROM tab1
----
44
-1302
44
-253
44
-3154

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6567
SELECT - col1 DIV - col2 AS col2, col1 FROM tab0
----
0
1
1
81
2
21

skipif mysql # not compatible
query II rowsort label-6567
SELECT - col1 / - col2 AS col2, col1 FROM tab0
----
0
1
1
81
2
21

query I rowsort
SELECT ALL - col1 * + + 43 FROM tab2 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6569
SELECT - 25 + col2 FROM tab1 WHERE ( NOT - CAST( col2 AS SIGNED ) IS NULL )
----
34
43
71

skipif mysql # not compatible
query I rowsort label-6569
SELECT - 25 + col2 FROM tab1 WHERE ( NOT - CAST ( col2 AS INTEGER ) IS NULL )
----
34
43
71

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6570
SELECT ( + - CAST ( NULL AS INTEGER ) ) * - 83 * + COUNT ( + - col2 ) col1 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - col0 col0 FROM tab2
----
-17
-23
-24

query I rowsort
SELECT ALL 98 AS col1 FROM tab1 WHERE NOT + ( - + 72 ) * - + col0 BETWEEN ( + + 68 ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6573
SELECT - col1 DIV col0 - - col0 DIV + - col1 FROM tab0
----
-4
-5
-97

skipif mysql # not compatible
query I rowsort label-6573
SELECT - col1 / col0 - - col0 / + - col1 FROM tab0
----
-4
-5
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6574
SELECT DISTINCT - ( MIN( ALL - - col1 ) ) + COUNT( 69 ) FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-6574
SELECT DISTINCT - ( MIN ( ALL - - col1 ) ) + COUNT ( 69 ) FROM tab1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6575
SELECT ALL MAX( + col1 ) AS col0 FROM tab0 WHERE NULL NOT IN ( - - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6575
SELECT ALL MAX ( + col1 ) AS col0 FROM tab0 WHERE NULL NOT IN ( - - col0 )
----
NULL

query I rowsort
SELECT DISTINCT col2 + + col1 * - - 33 FROM tab0
----
132
2720
703

query I rowsort
SELECT 74 * - + 3 - - - col1 AS col1 FROM tab1
----
-227
-236
-269

query I rowsort
SELECT ALL + col1 + ( + + 2 ) AS col1 FROM tab2
----
53
69
79

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL >= - 90
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6581
SELECT + MIN( ALL - 73 ) AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-73

skipif mysql # not compatible
query I rowsort label-6581
SELECT + MIN ( ALL - 73 ) AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6582
SELECT - SUM( + - col1 ) DIV + 51 AS col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6582
SELECT - SUM ( + - col1 ) / + 51 AS col1 FROM tab1 AS cor0
----
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - 42 * + col1 + 23 AND 91
----

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col2, + col2 AS col2 FROM tab2
----
-51
23
-67
58
-77
40

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

query I rowsort
SELECT ALL + col0 + + col1 * - 54 FROM tab2
----
-2708
-3543
-4094

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 4 ) BETWEEN 43 AND ( + - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT - 30 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

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

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

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

query I rowsort
SELECT + + 24 + col1 AS col0 FROM tab2 AS cor0
----
101
75
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6596
SELECT - COUNT( * ) + + 63 FROM tab0 cor0
----
60

skipif mysql # not compatible
query I rowsort label-6596
SELECT - COUNT ( * ) + + 63 FROM tab0 cor0
----
60

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6601
SELECT ( - ( 36 ) ) DIV - ( + col1 ) AS col0, col2 AS col2 FROM tab2
----
0
23
0
40
0
58

skipif mysql # not compatible
query II rowsort label-6601
SELECT ( - ( 36 ) ) / - ( + col1 ) AS col0, col2 AS col2 FROM tab2
----
0
23
0
40
0
58

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6603
SELECT DISTINCT * FROM tab1 WHERE NOT + 93 IN ( - col2 + + + col1 * - + ( - CAST( - ( + col0 ) AS SIGNED ) ) + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6603
SELECT DISTINCT * FROM tab1 WHERE NOT + 93 IN ( - col2 + + + col1 * - + ( - CAST ( - ( + col0 ) AS INTEGER ) ) + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 35 * + 47 AS col1 FROM tab2
----
1645
1645
1645

query II rowsort
SELECT - col2, - col0 FROM tab0 WHERE NULL > col2 + + col1
----

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

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

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

query I rowsort
SELECT + + 73 FROM tab0 AS cor0 WHERE NOT + 61 + col1 IS NULL
----
73
73
73

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

skipif mysql # not compatible
query I rowsort label-6609
SELECT ALL - - COUNT ( DISTINCT ( col1 ) ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6610
SELECT - 52 DIV 56 + - col2 - col0 * col0 AS col1 FROM tab1 AS cor0
----
-2697
-7284
-8349

skipif mysql # not compatible
query I rowsort label-6610
SELECT - 52 / 56 + - col2 - col0 * col0 AS col1 FROM tab1 AS cor0
----
-2697
-7284
-8349

onlyif mysql # aggregate syntax: 
query I rowsort label-6611
SELECT 58 * COUNT( col2 ) FROM tab1 AS cor0
----
174

skipif mysql # not compatible
query I rowsort label-6611
SELECT 58 * COUNT ( col2 ) FROM tab1 AS cor0
----
174

onlyif mysql # aggregate syntax: 
query I rowsort label-6612
SELECT ALL - COUNT( * ) FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col1 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-6612
SELECT ALL - COUNT ( * ) FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col1 AND NULL
----
0

query II rowsort
SELECT - 82, + ( - - 47 ) AS col0 FROM tab0 WHERE NOT + col2 BETWEEN NULL AND + - 74 * + - col1 * - - col0
----

query II rowsort
SELECT - col0 * + col0 * col1 AS col1, - col2 * - col1 AS col1 FROM tab1
----
-36125
295
-36414
1344
-389207
3196

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( - col0 + - col0 * + + 76 )
----

query I rowsort
SELECT DISTINCT + 92 + + + col0 + + col1 * - 12 * + col1 AS col0 FROM tab0
----
-5113
-78625
177

query I rowsort
SELECT - 39 * col0 AS col1 FROM tab2
----
-1794
-2496
-2925

query I rowsort
SELECT DISTINCT + 94 AS col0 FROM tab2 cor0
----
94

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 4 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) NOT IN ( 54 )
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + 62 col0 FROM tab1 AS cor0
----
113
147
153

query II rowsort
SELECT DISTINCT + ( + 52 ) - + 19 AS col0, - col1 FROM tab2 AS cor0
----
33
-51
33
-67
33
-77

query I rowsort
SELECT - - 90 + + 69 AS col0 FROM tab1 AS cor0 WHERE + 10 IS NULL
----

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6627
SELECT DISTINCT col0 DIV - col0 + + + 88 + + - col1 DIV - - 65 - - 26 col0, 17 FROM tab2 AS cor0
----
112
17
113
17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6627
SELECT DISTINCT col0 / - col0 + + + 88 + + - col1 / - - 65 - - 26 col0, 17 FROM tab2 AS cor0
----
112
17
113
17

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( col1 * + ( + ( - col2 ) ) + + + 28 * - ( - col0 ) ) NOT IN ( 36 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6629
SELECT ALL 99 * ( + col2 ) AS col0 FROM tab2 AS cor0 WHERE CAST( NULL AS DECIMAL ) IS NULL
----
2277
3960
5742

skipif mysql # not compatible
query I rowsort label-6629
SELECT ALL 99 * ( + col2 ) AS col0 FROM tab2 AS cor0 WHERE CAST ( NULL AS REAL ) IS NULL
----
2277
3960
5742

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 75 * + col1 * 2 + 44 + col0 - + + col1 col1 FROM tab2 cor0
----
-11519
-7611
-9998

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6632
SELECT 43 DIV + ( - 58 ) + ( + CAST( - col2 AS SIGNED ) ) - + - CAST( - - col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-45
23
26

skipif mysql # not compatible
query I rowsort label-6632
SELECT 43 / + ( - 58 ) + ( + CAST ( - col2 AS INTEGER ) ) - + - CAST ( - - col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-45
23
26

query II rowsort
SELECT + col2 - - col0 AS col1, 33 AS col0 FROM tab1
----
144
33
147
33
159
33

query I rowsort
SELECT ALL - ( + ( ( 88 ) ) ) * 40 - - col1 AS col1 FROM tab2
----
-3443
-3453
-3469

query I rowsort
SELECT - 71 - col0 - - col2 FROM tab2
----
-88
-94
-95

query I rowsort
SELECT DISTINCT col1 * - ( - col0 ) AS col1 FROM tab0
----
1215
1827
97

query II rowsort
SELECT - col1 * 40, 52 AS col1 FROM tab2
----
-2040
52
-2680
52
-3080
52

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6639
SELECT ALL MAX( DISTINCT + - col1 ) * + - 92 FROM tab0 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-6639
SELECT ALL MAX ( DISTINCT + - col1 ) * + - 92 FROM tab0 AS cor0
----
92

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

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

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

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

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

query II rowsort
SELECT DISTINCT col0, - 59 * col0 - + col1 FROM tab2
----
46
-2765
64
-3853
75
-4492

onlyif mysql # aggregate syntax: 
query I rowsort label-6644
SELECT DISTINCT COUNT( * ) * - - 72 AS col1 FROM tab1
----
216

skipif mysql # not compatible
query I rowsort label-6644
SELECT DISTINCT COUNT ( * ) * - - 72 AS col1 FROM tab1
----
216

onlyif mysql # DIV for integer division: 
query I rowsort label-6645
SELECT - 17 DIV - - col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6645
SELECT - 17 / - - col0 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL + col1 * + col1 * - + 47 FROM tab1
----
-103823
-1175
-9212

query I rowsort
SELECT DISTINCT + col0 * - 91 AS col1 FROM tab1
----
-4641
-7735
-8281

query I rowsort
SELECT col2 + - col2 * - col2 + + col2 + 29 AS col1 FROM tab1
----
3628
4789
9437

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6651
SELECT DISTINCT - col2 * CAST( col2 AS SIGNED ) FROM tab2
----
-1600
-3364
-529

skipif mysql # not compatible
query I rowsort label-6651
SELECT DISTINCT - col2 * CAST ( col2 AS INTEGER ) FROM tab2
----
-1600
-3364
-529

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

query I rowsort
SELECT DISTINCT col0 * + + col0 + + col2 FROM tab0
----
272
7579
9508

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6655
SELECT DISTINCT - + col0 - - 44 DIV col0 AS col1 FROM tab0 cor0
----
-13
-87
-97

skipif mysql # not compatible
query I rowsort label-6655
SELECT DISTINCT - + col0 - - 44 / col0 AS col1 FROM tab0 cor0
----
-13
-87
-97

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6657
SELECT DISTINCT COUNT( * ) + - 25 FROM tab0 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-6657
SELECT DISTINCT COUNT ( * ) + - 25 FROM tab0 AS cor0
----
-22

query I rowsort
SELECT - col2 + - 9 FROM tab2 cor0
----
-32
-49
-67

query I rowsort
SELECT + 35 + + 92 AS col2 FROM tab0 AS cor0
----
127
127
127

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 BETWEEN - - 53 AND + 76
----
75
67
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6661
SELECT col1 AS col1, - ( CAST( NULL AS SIGNED ) ) + - - col1 FROM tab2 AS cor0 WHERE - col1 BETWEEN - col2 * - - col2 AND ( - col1 + col0 * - + CAST( NULL AS SIGNED ) * - + col1 / + col1 * ( + 80 ) )
----

skipif mysql # not compatible
query II rowsort label-6661
SELECT col1 AS col1, - ( CAST ( NULL AS INTEGER ) ) + - - col1 FROM tab2 AS cor0 WHERE - col1 BETWEEN - col2 * - - col2 AND ( - col1 + col0 * - + CAST ( NULL AS INTEGER ) * - + col1 / + col1 * ( + 80 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6662
SELECT DISTINCT 15 * - COUNT( * ) + - CAST( + ( + + COUNT( * ) ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-6662
SELECT DISTINCT 15 * - COUNT ( * ) + - CAST ( + ( + + COUNT ( * ) ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-48

query I rowsort
SELECT ALL - - col0 - + 90 AS col0 FROM tab1 AS cor0
----
-39
-5
1

query I rowsort
SELECT ALL 69 - - col2 FROM tab1
----
128
137
165

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

query I rowsort
SELECT ALL ( - col0 ) FROM tab2 WHERE NOT ( ( NULL ) NOT BETWEEN - col0 AND ( NULL ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6667
SELECT - + COUNT( * ) * - + 68 - + SUM( DISTINCT col0 ) col2, + MAX( DISTINCT col2 ) AS col2 FROM tab2 WHERE NOT NULL IS NULL
----
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6667
SELECT - + COUNT ( * ) * - + 68 - + SUM ( DISTINCT col0 ) col2, + MAX ( DISTINCT col2 ) AS col2 FROM tab2 WHERE NOT NULL IS NULL
----
NULL
NULL

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

query II rowsort
SELECT DISTINCT 65, 41 * - col0 AS col0 FROM tab0 AS cor0
----
65
-3567
65
-3977
65
-615

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

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

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

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

query I rowsort
SELECT col0 * - 96 + - 95 + - col1 FROM tab1 AS cor0
----
-5005
-8260
-8878

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6675
SELECT 80 DIV + + 8, COUNT( * ) AS col2 FROM tab2 AS cor0
----
10
3

skipif mysql # not compatible
query II rowsort label-6675
SELECT 80 / + + 8, COUNT ( * ) AS col2 FROM tab2 AS cor0
----
10
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6676
SELECT - col1 * 70 DIV + 63 FROM tab2 AS cor0
----
-56
-74
-85

skipif mysql # not compatible
query I rowsort label-6676
SELECT - col1 * 70 / + 63 FROM tab2 AS cor0
----
-56
-74
-85

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6678
SELECT DISTINCT + 92 * - 35 * + ( - + SUM( ALL + CAST( NULL AS SIGNED ) ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6678
SELECT DISTINCT + 92 * - 35 * + ( - + SUM ( ALL + CAST ( NULL AS INTEGER ) ) ) FROM tab0
----
NULL

query I rowsort
SELECT col1 * col1 * 93 AS col1 FROM tab1
----
18228
205437
2325

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6680
SELECT DISTINCT + 93 * 32 + + + col2 + - ( 78 ) * + ( - CAST( NULL AS SIGNED ) ) / - 41 * + + 29 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6680
SELECT DISTINCT + 93 * 32 + + + col2 + - ( 78 ) * + ( - CAST ( NULL AS INTEGER ) ) / - 41 * + + 29 AS col0 FROM tab1
----
NULL

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

query I rowsort
SELECT DISTINCT col0 + col1 + + 17 AS col1 FROM tab2
----
114
158
159

query I rowsort
SELECT - - col1 + - - col1 FROM tab1 AS cor0
----
10
28
94

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 24 <= NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6686
SELECT ALL - COUNT( * ) + + 45 - + COUNT( * ) + + 23 - - 8 FROM tab2 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-6686
SELECT ALL - COUNT ( * ) + + 45 - + COUNT ( * ) + + 23 - - 8 FROM tab2 AS cor0
----
70

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

query I rowsort
SELECT - 97 - - - col0 FROM tab0 AS cor0
----
-112
-184
-194

query I rowsort
SELECT DISTINCT - 98 + + - col0 + + 44 AS col2 FROM tab1 cor0
----
-105
-139
-145

query I rowsort
SELECT DISTINCT - col0 - - 71 FROM tab0 AS cor0
----
-16
-26
56

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

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

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

query II rowsort
SELECT DISTINCT + - ( 86 ), 37 AS col0 FROM tab0 AS cor0
----
-86
37

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6694
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) <> col1
----

skipif mysql # not compatible
query III rowsort label-6694
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) <> col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6695
SELECT ( + - CAST( NULL AS SIGNED ) ), - col0 * - col1 AS col0 FROM tab2
----
NULL
2346
NULL
4928
NULL
5025

skipif mysql # not compatible
query II rowsort label-6695
SELECT ( + - CAST ( NULL AS INTEGER ) ), - col0 * - col1 AS col0 FROM tab2
----
NULL
2346
NULL
4928
NULL
5025

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6698
SELECT - 66 * + SUM( DISTINCT col1 ) AS col0, + 69 AS col0 FROM tab2 cor0
----
-12870
69

skipif mysql # not compatible
query II rowsort label-6698
SELECT - 66 * + SUM ( DISTINCT col1 ) AS col0, + 69 AS col0 FROM tab2 cor0
----
-12870
69

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6700
SELECT + COUNT( + + 8 ) AS col0 FROM tab1 WHERE NOT 74 * - col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6700
SELECT + COUNT ( + + 8 ) AS col0 FROM tab1 WHERE NOT 74 * - col2 IS NULL
----
3

query I rowsort
SELECT DISTINCT - col0 + + + 92 FROM tab0 AS cor0
----
-5
5
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6702
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - ( ( 6 ) ) IN ( + + col2, col2, + - col0, + col2 )
----
3

skipif mysql # not compatible
query I rowsort label-6702
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - ( ( 6 ) ) IN ( + + col2, col2, + - col0, + col2 )
----
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6703
SELECT ALL + CAST( - + col0 AS SIGNED ) * - 75 + + col1 DIV + + col0 AS col0 FROM tab2 AS cor0
----
3451
4801
5625

skipif mysql # not compatible
query I rowsort label-6703
SELECT ALL + CAST ( - + col0 AS INTEGER ) * - 75 + + col1 / + + col0 AS col0 FROM tab2 AS cor0
----
3451
4801
5625

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6706
SELECT - 99 * - col0 + + 14 DIV + + 34 * + ( + 35 ) AS col0 FROM tab1 AS cor0
----
5049
8415
9009

skipif mysql # not compatible
query I rowsort label-6706
SELECT - 99 * - col0 + + 14 / + + 34 * + ( + 35 ) AS col0 FROM tab1 AS cor0
----
5049
8415
9009

query I rowsort
SELECT - 70 * + 87 * ( 93 ) * + col1 AS col0 FROM tab1 AS cor0
----
-26619390
-2831850
-7929180

onlyif mysql # aggregate syntax: 
query I rowsort label-6708
SELECT ALL + + COUNT( * ) * - SUM( ALL + 79 ) FROM tab2 AS cor0
----
-711

skipif mysql # not compatible
query I rowsort label-6708
SELECT ALL + + COUNT ( * ) * - SUM ( ALL + 79 ) FROM tab2 AS cor0
----
-711

onlyif mysql # aggregate syntax: 
query I rowsort label-6709
SELECT DISTINCT - - 8 * - - COUNT( * ) AS col0 FROM tab1 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-6709
SELECT DISTINCT - - 8 * - - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6710
SELECT - SUM( 9 ) + + 83 AS col2 FROM tab2
----
56

skipif mysql # not compatible
query I rowsort label-6710
SELECT - SUM ( 9 ) + + 83 AS col2 FROM tab2
----
56

query I rowsort
SELECT col0 + - + 11 + + col1 AS col0 FROM tab1
----
127
54
79

query I rowsort
SELECT + ( - ( + + col0 ) ) + - 91 FROM tab0
----
-106
-178
-188

query I rowsort
SELECT DISTINCT 18 * + 41 * - col1 * + 70 + 89 AS col1 FROM tab1
----
-2427931
-258211
-723151

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6714
SELECT DISTINCT 48 DIV - COUNT( * ) AS col1 FROM tab0, tab2 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-6714
SELECT DISTINCT 48 / - COUNT ( * ) AS col1 FROM tab0, tab2 AS cor0
----
-5

query I rowsort
SELECT ALL - + col2 + ( + + 26 ) + + - col0 - + col0 * + col2 FROM tab2 AS cor0
----
-1101
-2638
-4457

onlyif mysql # DIV for integer division: 
query I rowsort label-6716
SELECT ALL + col1 + + ( + col1 ) DIV - col0 * + 1 AS col2 FROM tab2 cor0
----
50
67
76

skipif mysql # not compatible
query I rowsort label-6716
SELECT ALL + col1 + + ( + col1 ) / - col0 * + 1 AS col2 FROM tab2 cor0
----
50
67
76

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6719
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + - + 51 + + + col0 + + col1 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6719
SELECT DISTINCT - CAST ( NULL AS REAL ) + - + 51 + + + col0 + + col1 AS col2 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6720
SELECT ALL col2 * col0 + - - col2 DIV 69 * col1, 7 DIV + + col2 AS col2 FROM tab1 AS cor0
----
4910
0
5015
0
6188
0

skipif mysql # not compatible
query II rowsort label-6720
SELECT ALL col2 * col0 + - - col2 / 69 * col1, 7 / + + col2 AS col2 FROM tab1 AS cor0
----
4910
0
5015
0
6188
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6722
SELECT ALL + COUNT( * ) FROM tab1 AS cor0 WHERE - col2 * - col2 = + - col2 - - - CAST( NULL AS SIGNED )
----
0

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

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

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

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

query II rowsort
SELECT ALL + 2, - 6 AS col2 FROM tab2
----
2
-6
2
-6
2
-6

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6730
SELECT - - COUNT( * ) * - 15 FROM tab2 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-6730
SELECT - - COUNT ( * ) * - 15 FROM tab2 AS cor0
----
-45

query I rowsort
SELECT DISTINCT + col1 * + 28 FROM tab1 AS cor0
----
1316
140
392

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6733
SELECT 8 * + COUNT( * ) FROM tab0, tab2 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-6733
SELECT 8 * + COUNT ( * ) FROM tab0, tab2 AS cor0
----
72

query I rowsort
SELECT DISTINCT + 46 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
46

query I rowsort
SELECT ALL col0 + col1 + + col0 * + 79 AS col2 FROM tab2
----
3731
5197
6067

onlyif mysql # aggregate syntax: 
query I rowsort label-6736
SELECT COUNT( * ) + + + 3 * + MIN( ALL col1 ) FROM tab2 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-6736
SELECT COUNT ( * ) + + + 3 * + MIN ( ALL col1 ) FROM tab2 AS cor0
----
156

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

query I rowsort
SELECT + col2 * col2 + col1 AS col1 FROM tab0 AS cor0
----
121
2290
9802

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

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

query I rowsort
SELECT + 87 * - + col2 * - 76 AS col1 FROM tab2
----
152076
264480
383496

onlyif mysql # aggregate syntax: 
query I rowsort label-6741
SELECT ALL ( SUM( - - 5 ) ) AS col1 FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-6741
SELECT ALL ( SUM ( - - 5 ) ) AS col1 FROM tab2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-6742
SELECT - MIN( 39 ) AS col0 FROM tab0
----
-39

skipif mysql # not compatible
query I rowsort label-6742
SELECT - MIN ( 39 ) AS col0 FROM tab0
----
-39

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6744
SELECT DISTINCT + 14 + - 88 DIV + col0 AS col2 FROM tab0
----
13
14
9

skipif mysql # not compatible
query I rowsort label-6744
SELECT DISTINCT + 14 + - 88 / + col0 AS col2 FROM tab0
----
13
14
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6745
SELECT ALL - 81 + + 39 + COUNT( ALL - + col0 ) + + COUNT( * ) FROM tab0
----
-36

skipif mysql # not compatible
query I rowsort label-6745
SELECT ALL - 81 + + 39 + COUNT ( ALL - + col0 ) + + COUNT ( * ) FROM tab0
----
-36

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6747
SELECT - col1 - + col2 + - 29 + + - 44 + + col2 DIV 75 + col1 + 7 * + col1 * - col1 + + col2 FROM tab2
----
-18280
-31496
-41576

skipif mysql # not compatible
query I rowsort label-6747
SELECT - col1 - + col2 + - 29 + + - 44 + + col2 / 75 + col1 + 7 * + col1 * - col1 + + col2 FROM tab2
----
-18280
-31496
-41576

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

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

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

query I rowsort
SELECT ALL + - 4 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

query III rowsort
SELECT ALL * FROM tab0 WHERE - 49 BETWEEN NULL AND 51
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6752
SELECT MAX( DISTINCT - col0 ) * 91 AS col0 FROM tab2
----
-4186

skipif mysql # not compatible
query I rowsort label-6752
SELECT MAX ( DISTINCT - col0 ) * 91 AS col0 FROM tab2
----
-4186

query II rowsort
SELECT col1 * - col1, col1 FROM tab0
----
-1
1
-441
21
-6561
81

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 83 BETWEEN + + col0 AND NULL
----
87
21
10
97
1
99

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

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

skipif mysql # not compatible
query I rowsort label-6758
SELECT DISTINCT - MAX ( ALL - - 45 ) AS col0 FROM tab0
----
-45

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6759
SELECT COUNT ( * ) * + + ( 57 ) col1 FROM tab1
----
171

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6760
SELECT ALL + MAX( DISTINCT - ( + col2 ) ) DIV - 78 AS col2 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-6760
SELECT ALL + MAX ( DISTINCT - ( + col2 ) ) / - 78 AS col2 FROM tab2 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 51 col1 FROM tab0 AS cor0 WHERE NOT + ( col1 ) IS NOT NULL OR - col2 * - 3 IS NULL
----

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 19 * + col0 IS NULL
----

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

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

query I rowsort
SELECT ALL col1 + - 87 AS col2 FROM tab1 AS cor0
----
-40
-73
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-6766
SELECT ALL - 15 - 15 DIV - col0 * col0 AS col0 FROM tab2 cor0
----
-15
-15
-15

skipif mysql # not compatible
query I rowsort label-6766
SELECT ALL - 15 - 15 / - col0 * col0 AS col0 FROM tab2 cor0
----
-15
-15
-15

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

query I rowsort
SELECT DISTINCT 19 - col1 AS col0 FROM tab1 AS cor0
----
-28
14
5

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col0 + + + 14 * - + ( col1 ) * + 75 col0 FROM tab0
----
-21953
-84988
-854

onlyif mysql # DIV for integer division: 
query I rowsort label-6772
SELECT DISTINCT + col1 DIV col0 * col1 AS col2 FROM tab0
----
0
405

skipif mysql # not compatible
query I rowsort label-6772
SELECT DISTINCT + col1 / col0 * col1 AS col2 FROM tab0
----
0
405

onlyif mysql # DIV for integer division: 
query I rowsort label-6773
SELECT ALL - - col2 - - + 9 DIV + col1 FROM tab1 AS cor0
----
60
68
96

skipif mysql # not compatible
query I rowsort label-6773
SELECT ALL - - col2 - - + 9 / + col1 FROM tab1 AS cor0
----
60
68
96

query I rowsort
SELECT DISTINCT - col1 - + + col2 + + col2 * + 23 + col2 AS col2 FROM tab0 AS cor0
----
1000
209
2276

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

query II rowsort
SELECT + 89 - col2 AS col2, 15 * - col1 AS col1 FROM tab1 AS cor0
----
-7
-210
21
-705
30
-75

query III rowsort
SELECT ALL * FROM tab1 WHERE + 6 NOT BETWEEN - col1 AND col1 * + 46 * + 39 * + ( + col1 )
----

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

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

query I rowsort
SELECT + + col0 * - 45 + - col1 FROM tab1 AS cor0
----
-2309
-3830
-4142

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

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

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

query II rowsort
SELECT DISTINCT + 43, + ( col0 ) AS col2 FROM tab1 AS cor0
----
43
51
43
85
43
91

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

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE 2 IS NULL
----

query I rowsort
SELECT ALL + + ( 45 ) AS col1 FROM tab2 WHERE NULL = col2 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6786
SELECT DISTINCT - ( 41 ) - MAX( DISTINCT + col2 ) AS col1 FROM tab2 WHERE + col2 IS NOT NULL
----
-99

skipif mysql # not compatible
query I rowsort label-6786
SELECT DISTINCT - ( 41 ) - MAX ( DISTINCT + col2 ) AS col1 FROM tab2 WHERE + col2 IS NOT NULL
----
-99

query I rowsort
SELECT ALL - 20 * col2 * - col1 FROM tab2
----
23460
61600
77720

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6788
SELECT ALL + MAX( ALL - - 94 ) * + 17 / + + COUNT( * ) + + SUM( CAST( NULL AS SIGNED ) ) col2 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6788
SELECT ALL + MAX ( ALL - - 94 ) * + 17 / + + COUNT ( * ) + + SUM ( CAST ( NULL AS INTEGER ) ) col2 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6789
SELECT ALL col1 DIV - + 68 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6789
SELECT ALL col1 / - + 68 FROM tab0
----
-1
0
0

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

query I rowsort
SELECT - - col2 * - 12 + - 89 AS col2 FROM tab0 AS cor0
----
-1277
-209
-653

query I rowsort
SELECT ALL col0 + 90 FROM tab1 AS cor0
----
141
175
181

query I rowsort
SELECT col0 * 34 * - col2 AS col0 FROM tab1 AS cor0
----
-166464
-170510
-210392

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL < - col2 * - - 72 * + - col1
----

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

query I rowsort
SELECT DISTINCT - col2 * ( + 64 ) FROM tab0
----
-3008
-6336
-640

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

query I rowsort
SELECT + ( - - 25 ) + - + col0 - - col1 FROM tab2
----
17
30
38

query I rowsort
SELECT ALL - col2 * - 98 AS col0 FROM tab2
----
2254
3920
5684

query III rowsort
SELECT ALL * FROM tab2 WHERE 87 - - + 34 IS NULL
----

query I rowsort
SELECT ALL + + col1 + 96 + + + col1 + + 22 * + 19 AS col1 FROM tab2 AS cor0
----
616
648
668

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

query I rowsort
SELECT ALL + - col0 * ( + 74 ) - + - 70 AS col0 FROM tab1 AS cor0
----
-3704
-6220
-6664

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 21 + + - 16 * 22 + - 63 + + 92 col1 FROM tab0 cor0
----
-344
-344
-344

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

skipif mysql # not compatible
query I rowsort label-6805
SELECT DISTINCT 24 * - CAST ( NULL AS INTEGER ) - - COUNT ( 70 ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL ( col2 ) * 19 AS col0 FROM tab2 cor0
----
1102
437
760

query III rowsort
SELECT * FROM tab1 WHERE - + col1 BETWEEN 35 AND col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 59 - + col0 * 50 col2 FROM tab1
----
-2491
-4191
-4491

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL >= - col1 - 92 )
----

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

query I rowsort
SELECT col2 - + + 52 FROM tab1
----
16
44
7

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

query I rowsort
SELECT col1 * - + 63 FROM tab1 WHERE ( NOT ( NULL IS NULL ) )
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6816
SELECT ALL + 25 DIV - + 65 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6816
SELECT ALL + 25 / - + 65 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT - + 7 + 54 AS col0 FROM tab0 AS cor0
----
47
47
47

query I rowsort
SELECT ALL + 67 + + 0 - ( - - col0 ) AS col1 FROM tab0 cor0
----
-20
-30
52

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

query II rowsort
SELECT - - ( 47 ) * 91 AS col1, 99 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to e5e7d20687873867ec287a8533d6dad1

onlyif mysql # aggregate syntax: 
query I rowsort label-6821
SELECT - + ( - SUM( - - 1 ) ) col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6821
SELECT - + ( - SUM ( - - 1 ) ) col1 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6822
SELECT * FROM tab0 AS cor0 WHERE NOT ( - + CAST( - + 61 AS DECIMAL ) IN ( - 69, - 70 * - 59 * + col1 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6822
SELECT * FROM tab0 AS cor0 WHERE NOT ( - + CAST ( - + 61 AS REAL ) IN ( - 69, - 70 * - 59 * + col1 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

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

query I rowsort
SELECT + col2 * - col1 AS col1 FROM tab0 WHERE NOT - col0 * - col2 <> + 29
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6826
SELECT * FROM tab2 WHERE NOT + - ( - - 43 ) IN ( + col0 + + - col0, col2 - 14 + + - 65 * ( - - CAST( - + col0 AS SIGNED ) ), + col2 + - + col1 * - 16 / col0 * - col0, + + 62 - + - 66, - col1 * - + col1 + CAST( - CAST( - col2 AS SIGNED ) AS SIGNED ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6826
SELECT * FROM tab2 WHERE NOT + - ( - - 43 ) IN ( + col0 + + - col0, col2 - 14 + + - 65 * ( - - CAST ( - + col0 AS INTEGER ) ), + col2 + - + col1 * - 16 / col0 * - col0, + + 62 - + - 66, - col1 * - + col1 + CAST ( - CAST ( - col2 AS INTEGER ) AS INTEGER ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col2 + + 39 AS col0 FROM tab1
----
107
135
98

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6829
SELECT CAST( NULL AS SIGNED ) + - ( - CAST( NULL AS SIGNED ) ), - col0 AS col2 FROM tab2
----
NULL
-46
NULL
-64
NULL
-75

skipif mysql # not compatible
query II rowsort label-6829
SELECT CAST ( NULL AS INTEGER ) + - ( - CAST ( NULL AS INTEGER ) ), - col0 AS col2 FROM tab2
----
NULL
-46
NULL
-64
NULL
-75

query I rowsort
SELECT + 45 + - - col2 AS col1 FROM tab0
----
144
55
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6831
SELECT DISTINCT CAST( col2 AS SIGNED ) * - col0 + + - 64 * 26 AS col0 FROM tab1
----
-6560
-6679
-7852

skipif mysql # not compatible
query I rowsort label-6831
SELECT DISTINCT CAST ( col2 AS INTEGER ) * - col0 + + - 64 * 26 AS col0 FROM tab1
----
-6560
-6679
-7852

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 * - col1 + + col2, col2 col1 FROM tab0
----
-200
10
-3760
47
0
99

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

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

query I rowsort
SELECT + 50 * col1 * + - col2 FROM tab1 AS cor0
----
-14750
-159800
-67200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6835
SELECT + ( 89 ) FROM tab0 AS cor0 WHERE NULL < CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6835
SELECT + ( 89 ) FROM tab0 AS cor0 WHERE NULL < CAST ( NULL AS INTEGER )
----

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

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

query I rowsort
SELECT 60 + 36 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 + 89 col0, 89 FROM tab1 AS cor0
----
140
89
174
89
180
89

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

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

query II rowsort
SELECT ALL - col1 + col1 AS col2, - col2 * col0 - col2 AS col2 FROM tab2 AS cor0
----
0
-1081
0
-2600
0
-4408

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6843
SELECT - COUNT( * ) + 80 * - 56 FROM tab1 cor0
----
-4483

skipif mysql # not compatible
query I rowsort label-6843
SELECT - COUNT ( * ) + 80 * - 56 FROM tab1 cor0
----
-4483

query I rowsort
SELECT ALL + col0 - 36 FROM tab1 AS cor0
----
15
49
55

query I rowsort
SELECT - - col1 * col0 + + + 63 AS col1 FROM tab2 AS cor0
----
2409
4991
5088

query I rowsort
SELECT 91 + + + 53 FROM tab0 AS cor0
----
144
144
144

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 38 IN ( 54 + + - col1, col1 )
----

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

query I rowsort
SELECT DISTINCT + col2 - + 86 AS col0 FROM tab2
----
-28
-46
-63

query I rowsort
SELECT ALL + 58 - + col0 FROM tab2
----
-17
-6
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 87 AS col2, 30 col0 FROM tab2
----
-87
30
-87
30
-87
30

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6852
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 NOT IN ( - 46, + CAST( - + col0 AS SIGNED ), 97 + - + col2, 50 + - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6852
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 NOT IN ( - 46, + CAST ( - + col0 AS INTEGER ), 97 + - + col2, 50 + - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6854
SELECT ALL - + 99 DIV col2 col1 FROM tab2 AS cor0
----
-1
-2
-4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6854
SELECT ALL - + 99 / col2 col1 FROM tab2 AS cor0
----
-1
-2
-4

query II rowsort
SELECT ALL + + col0 * + col2 * col1 AS col1, 19 AS col1 FROM tab0 AS cor0
----
18270
19
57105
19
9603
19

onlyif mysql # DIV for integer division: 
query I rowsort label-6856
SELECT DISTINCT - col1 DIV - col2 * + col0 * - col0 + 86 FROM tab1 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-6856
SELECT DISTINCT - col1 / - col2 * + col0 * - col0 + 86 FROM tab1 AS cor0
----
86

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6859
SELECT 65 * - - COUNT( * ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-6859
SELECT 65 * - - COUNT ( * ) FROM tab2 AS cor0
----
195

onlyif mysql # aggregate syntax: 
query II rowsort label-6860
SELECT + 78, COUNT( * ) + - - SUM( DISTINCT 39 ) AS col0 FROM tab1 AS cor0
----
78
42

skipif mysql # not compatible
query II rowsort label-6860
SELECT + 78, COUNT ( * ) + - - SUM ( DISTINCT 39 ) AS col0 FROM tab1 AS cor0
----
78
42

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

query I rowsort
SELECT ALL + + 68 AS col0 FROM tab1 cor0
----
68
68
68

query I rowsort
SELECT DISTINCT + 48 * - col2 AS col2 FROM tab0 AS cor0
----
-2256
-4752
-480

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

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

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

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

query IIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0 WHERE NOT 23 IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

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

query I rowsort
SELECT DISTINCT - col2 + 70 AS col0 FROM tab2
----
12
30
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 31 * 16 + col1 col2 FROM tab2 AS cor0
----
547
563
573

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6871
SELECT + col0 + + CAST( + 5 AS SIGNED ) FROM tab0 AS cor0
----
102
20
92

skipif mysql # not compatible
query I rowsort label-6871
SELECT + col0 + + CAST ( + 5 AS INTEGER ) FROM tab0 AS cor0
----
102
20
92

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

query I rowsort
SELECT ALL col1 + + ( col1 ) FROM tab0
----
162
2
42

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6875
SELECT ALL - + CAST( NULL AS SIGNED ) * AVG ( - + 85 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-6875
SELECT ALL - + CAST ( NULL AS INTEGER ) * AVG ( - + 85 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6876
SELECT ALL + - 99 * - 88 + - - 74 - - + col0 DIV - col0 FROM tab1 AS cor0
----
8785
8785
8785

skipif mysql # not compatible
query I rowsort label-6876
SELECT ALL + - 99 * - 88 + - - 74 - - + col0 / - col0 FROM tab1 AS cor0
----
8785
8785
8785

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

query I rowsort
SELECT ALL + 64 + col2 FROM tab2 AS cor0
----
104
122
87

query I rowsort
SELECT ALL + 50 + + col1 + - col0 AS col0 FROM tab2 cor0
----
42
55
63

query I rowsort
SELECT ALL ( - 30 ) AS col0 FROM tab1 AS cor0
----
-30
-30
-30

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

skipif mysql # not compatible
query II rowsort label-6881
SELECT DISTINCT COUNT ( * ) AS col0, + 44 FROM tab1 AS cor0
----
3
44

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6883
SELECT ALL 84 * + - 78 - + + 87 DIV - + ( + col1 ) FROM tab1
----
-6535
-6546
-6551

skipif mysql # not compatible
query I rowsort label-6883
SELECT ALL 84 * + - 78 - + + 87 / - + ( + col1 ) FROM tab1
----
-6535
-6546
-6551

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 33 * - col0 col1 FROM tab2
----
1518
2112
2475

onlyif mysql # aggregate syntax: 
query I rowsort label-6885
SELECT DISTINCT - MAX( col1 ) AS col2 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-6885
SELECT DISTINCT - MAX ( col1 ) AS col2 FROM tab2
----
-77

query I rowsort
SELECT + 0 * - col0 FROM tab0
----
0
0
0

query I rowsort
SELECT 59 * 24 * - + col1 FROM tab2
----
-109032
-72216
-94872

query I rowsort
SELECT - col2 * - ( - col0 ) FROM tab0
----
-705
-870
-9603

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6890
SELECT DISTINCT + COUNT( DISTINCT - ( + 55 ) ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-6890
SELECT DISTINCT + COUNT ( DISTINCT - ( + 55 ) ) FROM tab0
----
1

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6892
SELECT DISTINCT - CAST( col1 AS SIGNED ) col0 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6892
SELECT DISTINCT - CAST ( col1 AS INTEGER ) col0 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6893
SELECT DISTINCT - + SUM( ALL CAST( NULL AS SIGNED ) ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
NULL

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

query I rowsort
SELECT DISTINCT 40 * - col2 FROM tab1
----
-2360
-2720
-3840

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6896
SELECT ALL + + 26 + col2 + + col2 DIV col2 col2 FROM tab0 AS cor0
----
126
37
74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6896
SELECT ALL + + 26 + col2 + + col2 / col2 col2 FROM tab0 AS cor0
----
126
37
74

onlyif mysql # DIV for integer division: 
query II rowsort label-6897
SELECT ALL + col0 DIV + + 36 + col2, - 48 AS col2 FROM tab1 AS cor0
----
61
-48
70
-48
97
-48

skipif mysql # not compatible
query II rowsort label-6897
SELECT ALL + col0 / + + 36 + col2, - 48 AS col2 FROM tab1 AS cor0
----
61
-48
70
-48
97
-48

query III rowsort
SELECT DISTINCT col1 AS col1, col0, + 42 * - - col2 + - - col2 - + col2 + col1 * col0 FROM tab0
----
9 values hashing to 26304487bdf9543ce3afb77beaab0040

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6899
SELECT DISTINCT - 63 AS col2, + col2 + 21 - col2 AS col0, CAST( NULL AS SIGNED ) FROM tab2
----
-63
21
NULL

skipif mysql # not compatible
query III rowsort label-6899
SELECT DISTINCT - 63 AS col2, + col2 + 21 - col2 AS col0, CAST ( NULL AS INTEGER ) FROM tab2
----
-63
21
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 73 * + col0 NOT BETWEEN + col2 AND - + ( - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

query I rowsort
SELECT DISTINCT 60 * - - col2 - + col0 FROM tab1
----
3455
3989
5709

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

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

query I rowsort
SELECT - - 13 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 + + col1 col0, col1 * + - 61 + + 53 FROM tab2 AS cor0
----
117
-4644
125
-4034
74
-3058

onlyif mysql # aggregate syntax: 
query I rowsort label-6907
SELECT ALL COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-6907
SELECT ALL COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
3

query II rowsort
SELECT + 70 AS col2, col1 FROM tab0
----
70
1
70
21
70
81

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

query I rowsort
SELECT DISTINCT 63 * 30 AS col0 FROM tab2
----
1890

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6914
SELECT 27 * + CAST( - - 73 AS SIGNED ) + - + col0 FROM tab2 AS cor0
----
1896
1907
1925

skipif mysql # not compatible
query I rowsort label-6914
SELECT 27 * + CAST ( - - 73 AS INTEGER ) + - + col0 FROM tab2 AS cor0
----
1896
1907
1925

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NOT col2 * + col0 < NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6916
SELECT ALL SUM ( DISTINCT + 46 ) col1 FROM tab1
----
46

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

skipif mysql # not compatible
query I rowsort label-6917
SELECT col0 FROM tab2 WHERE + col0 - - col1 >= col0 * CAST ( NULL AS REAL )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6920
SELECT SUM( DISTINCT - ( - 98 ) ) * 87 AS col1 FROM tab0
----
8526

skipif mysql # not compatible
query I rowsort label-6920
SELECT SUM ( DISTINCT - ( - 98 ) ) * 87 AS col1 FROM tab0
----
8526

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 < ( - col1 + - 9 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 < + 51 * + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 81 * - col2 FROM tab0
----
-3807
-8019
-810

query III rowsort
SELECT * FROM tab2 WHERE 50 * + col1 IN ( - 78 - 83 )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6926
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1 FROM tab0 WHERE NOT ( - 23 ) = NULL
----

skipif mysql # not compatible
query I rowsort label-6926
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1 FROM tab0 WHERE NOT ( - 23 ) = NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6928
SELECT DISTINCT - COUNT( * ) * - 83 FROM tab2
----
249

skipif mysql # not compatible
query I rowsort label-6928
SELECT DISTINCT - COUNT ( * ) * - 83 FROM tab2
----
249

onlyif mysql # aggregate syntax: 
query I rowsort label-6929
SELECT DISTINCT + 76 * - MAX( 48 ) AS col0 FROM tab1
----
-3648

skipif mysql # not compatible
query I rowsort label-6929
SELECT DISTINCT + 76 * - MAX ( 48 ) AS col0 FROM tab1
----
-3648

query I rowsort
SELECT 54 - + ( 15 ) FROM tab0
----
39
39
39

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6931
SELECT * FROM tab0 WHERE NOT - 47 / + col0 BETWEEN ( NULL ) AND + CAST( - 6 AS SIGNED )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6931
SELECT * FROM tab0 WHERE NOT - 47 / + col0 BETWEEN ( NULL ) AND + CAST ( - 6 AS INTEGER )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6933
SELECT 60 DIV - 15 FROM tab1
----
-4
-4
-4

skipif mysql # not compatible
query I rowsort label-6933
SELECT 60 / - 15 FROM tab1
----
-4
-4
-4

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

query I rowsort
SELECT 22 FROM tab1 WHERE col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6936
SELECT DISTINCT + 24 + + COUNT( * ) AS col2 FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-6936
SELECT DISTINCT + 24 + + COUNT ( * ) AS col2 FROM tab2
----
27

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6938
SELECT DISTINCT - 96 DIV + col1 + col0 FROM tab2 AS cor0
----
45
63
74

skipif mysql # not compatible
query I rowsort label-6938
SELECT DISTINCT - 96 / + col1 + col0 FROM tab2 AS cor0
----
45
63
74

query I rowsort
SELECT DISTINCT + ( + col2 ) * 81 - + col0 * col1 FROM tab2
----
-1688
-327
-483

query I rowsort
SELECT + 62 AS col2 FROM tab1 cor0 WHERE NOT ( + col2 * col0 ) NOT IN ( + col0 * + 52 + + col2 )
----

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

query I rowsort
SELECT ALL - col1 * + ( col1 ) - + 44 AS col0 FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT ALL + ( - col0 ) * + col2 AS col1 FROM tab2 AS cor0 WHERE col1 <> NULL
----

query I rowsort
SELECT DISTINCT - 89 AS col0 FROM tab2 cor0
----
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) < 74
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 >= ( ( col1 ) )
----
75
67
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - - col0 * - 85 col1 FROM tab2
----
179860
348160
478125

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6948
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN col1 - - col2 * CAST( NULL AS DECIMAL ) AND - 47
----

skipif mysql # not compatible
query III rowsort label-6948
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN col1 - - col2 * CAST ( NULL AS REAL ) AND - 47
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6949
SELECT DISTINCT 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-6949
SELECT DISTINCT CAST ( col1 AS INTEGER ) col0 FROM tab0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6950
SELECT DISTINCT SUM( ALL - - col1 ) AS col0 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-6950
SELECT DISTINCT SUM ( ALL - - col1 ) AS col0 FROM tab2
----
195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6951
SELECT ALL 78 col0 FROM tab2 WHERE NOT - col2 IN ( col1 * CAST( col1 AS SIGNED ) )
----
78
78
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6951
SELECT ALL 78 col0 FROM tab2 WHERE NOT - col2 IN ( col1 * CAST ( col1 AS INTEGER ) )
----
78
78
78

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6953
SELECT CAST( + col2 AS SIGNED ) DIV col0 FROM tab2 AS cor0
----
0
0
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6955
SELECT - COUNT( * ) * - COUNT( * ) * - COUNT( * ) FROM tab1 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-6955
SELECT - COUNT ( * ) * - COUNT ( * ) * - COUNT ( * ) FROM tab1 AS cor0
----
-27

query I rowsort
SELECT DISTINCT col0 - col2 FROM tab1 WHERE NOT 64 * 78 IN ( + col1 * - col0 + - ( col1 ) )
----
-45
23
26

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

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

query I rowsort
SELECT DISTINCT 74 * + 90 FROM tab2
----
6660

query I rowsort
SELECT 13 + + col1 FROM tab2 WHERE ( - 94 ) IS NULL
----

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

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

query I rowsort
SELECT ALL - ( - 15 ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - col2 * + col1 AND + 71
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6963
SELECT col2 DIV col0 * - + 98 + - col0 AS col0 FROM tab0 AS cor0
----
-195
-309
-87

skipif mysql # not compatible
query I rowsort label-6963
SELECT col2 / col0 * - + 98 + - col0 AS col0 FROM tab0 AS cor0
----
-195
-309
-87

query III rowsort
SELECT * FROM tab0 cor0 WHERE 3 - - + col0 + - col2 <> ( NULL )
----

query I rowsort
SELECT DISTINCT + - 32 + col2 AS col0 FROM tab1 AS cor0
----
27
36
64

query I rowsort
SELECT DISTINCT + 51 * col1 + - col0 + - col2 AS col2 FROM tab0 AS cor0
----
-145
4069
974

query I rowsort
SELECT ALL + + col1 * + ( - - 46 ) AS col2 FROM tab2 AS cor0
----
2346
3082
3542

query I rowsort
SELECT - col0 + - 92 AS col0 FROM tab0 AS cor0
----
-107
-179
-189

query I rowsort
SELECT DISTINCT 81 * - col0 AS col0 FROM tab0 AS cor0
----
-1215
-7047
-7857

onlyif mysql # DIV for integer division: 
query I rowsort label-6970
SELECT DISTINCT col1 DIV col2 * - - 53 FROM tab2 AS cor0
----
106
53

skipif mysql # not compatible
query I rowsort label-6970
SELECT DISTINCT col1 / col2 * - - 53 FROM tab2 AS cor0
----
106
53

query I rowsort
SELECT + col0 + + + 55 AS col1 FROM tab0 AS cor0
----
142
152
70

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

query I rowsort
SELECT 73 + + col1 AS col2 FROM tab0
----
154
74
94

query I rowsort
SELECT ALL - 19 * - - 31 FROM tab1
----
-589
-589
-589

onlyif mysql # aggregate syntax: 
query I rowsort label-6975
SELECT - COUNT( * ) + COUNT( * ) AS col2 FROM tab0 WHERE NULL NOT BETWEEN NULL AND ( + + 87 ) + col0
----
0

skipif mysql # not compatible
query I rowsort label-6975
SELECT - COUNT ( * ) + COUNT ( * ) AS col2 FROM tab0 WHERE NULL NOT BETWEEN NULL AND ( + + 87 ) + col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6976
SELECT DISTINCT MAX( CAST( col1 AS SIGNED ) ) * COUNT( * ) + - COUNT( * ) AS col0 FROM tab0 WHERE NOT ( - 40 * col2 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6976
SELECT DISTINCT MAX ( CAST ( col1 AS INTEGER ) ) * COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab0 WHERE NOT ( - 40 * col2 ) IS NOT NULL
----
NULL

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

query I rowsort
SELECT DISTINCT ( + 99 ) + + col1 FROM tab1
----
104
113
146

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6980
SELECT ALL - - col2 + + 13 DIV + 46 + - 63 - 0 * - 8 FROM tab2 AS cor0
----
-23
-40
-5

skipif mysql # not compatible
query I rowsort label-6980
SELECT ALL - - col2 + + 13 / + 46 + - 63 - 0 * - 8 FROM tab2 AS cor0
----
-23
-40
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6981
SELECT DISTINCT - 81 - - COUNT( * ) AS col0 FROM tab1 cor0 WHERE NOT ( NOT ( NOT 60 - - col2 * + col2 IS NOT NULL ) )
----
-81

skipif mysql # not compatible
query I rowsort label-6981
SELECT DISTINCT - 81 - - COUNT ( * ) AS col0 FROM tab1 cor0 WHERE NOT ( NOT ( NOT 60 - - col2 * + col2 IS NOT NULL ) )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6982
SELECT - MAX( ALL + 29 ) - + 15 col1 FROM tab0 cor0
----
-44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6982
SELECT - MAX ( ALL + 29 ) - + 15 col1 FROM tab0 cor0
----
-44

query I rowsort
SELECT + ( - 75 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 258bc565c64924d905a55eaaa6e57547

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

query I rowsort
SELECT - 26 AS col0 FROM tab0 WHERE NOT - + col1 + - - 84 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6986
SELECT MAX( DISTINCT 75 ) * - ( 42 ) * 70 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-220500

skipif mysql # not compatible
query I rowsort label-6986
SELECT MAX ( DISTINCT 75 ) * - ( 42 ) * 70 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-220500

query I rowsort
SELECT + 15 * - + col2 FROM tab1 AS cor0
----
-1020
-1440
-885

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

query II rowsort
SELECT ALL + 28, + col1 * - col0 AS col1 FROM tab1 AS cor0
----
28
-425
28
-4277
28
-714

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 84 * 46 NOT IN ( + 79 * col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 62, - ( - col0 ) col2 FROM tab0 AS cor0
----
62
15
62
87
62
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 46 NOT BETWEEN + col0 - - col1 AND ( + - 18 )
----

query I rowsort
SELECT ALL + + 36 / - + 61 + + + col2 AS col2 FROM tab2 AS cor0 WHERE 59 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col1, - 80 * col0 col0 FROM tab1 AS cor0
----
-14
-4080
-47
-7280
-5
-6800

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6995
SELECT ALL col0 / 82 AS col1 FROM tab2 AS cor0 WHERE ( col2 + - 25 ) NOT IN ( - CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-6995
SELECT ALL col0 / 82 AS col1 FROM tab2 AS cor0 WHERE ( col2 + - 25 ) NOT IN ( - CAST ( CAST ( NULL AS INTEGER ) AS REAL ) )
----

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

query I rowsort
SELECT - col0 * + 55 AS col0 FROM tab1 AS cor0 WHERE NOT - col1 > + 84
----
-2805
-4675
-5005

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 / 13 BETWEEN NULL AND + + col0 * + col0 + + 11 + col2 * + 91
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7000
SELECT - COUNT( * ) AS col0 FROM tab0 WHERE NOT + + col1 + + 72 * - - col1 * + ( 81 ) + - col0 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7000
SELECT - COUNT ( * ) AS col0 FROM tab0 WHERE NOT + + col1 + + 72 * - - col1 * + ( 81 ) + - col0 IS NULL
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7001
SELECT - + ( + - 38 ) + 34 FROM tab1 WHERE NOT NULL BETWEEN + CAST( NULL AS DECIMAL ) * - col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-7001
SELECT - + ( + - 38 ) + 34 FROM tab1 WHERE NOT NULL BETWEEN + CAST ( NULL AS REAL ) * - col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7002
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-7002
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7003
SELECT ALL - CAST( NULL AS SIGNED ) AS col0, 82 FROM tab2
----
NULL
82
NULL
82
NULL
82

skipif mysql # not compatible
query II rowsort label-7003
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0, 82 FROM tab2
----
NULL
82
NULL
82
NULL
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 44 col1, ( col2 ) AS col1 FROM tab2
----
44
23
44
40
44
58

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

query II rowsort
SELECT ALL 80, - col2 AS col2 FROM tab0 WHERE + col2 IS NOT NULL
----
80
-10
80
-47
80
-99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 68 <> ( - col0 )
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL IN ( col1 - + 87 * 82, col1 )
----

query II rowsort
SELECT - + col1, + col0 * + col1 + + - col1 AS col0 FROM tab1 AS cor0
----
-14
700
-47
4230
-5
420

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

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

query I rowsort
SELECT - - col1 * + 59 FROM tab2 cor0
----
3009
3953
4543

onlyif mysql # aggregate syntax: 
query I rowsort label-7013
SELECT + MIN( + - 2 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-2

skipif mysql # not compatible
query I rowsort label-7013
SELECT + MIN ( + - 2 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-7014
SELECT + 91 + + 96 DIV - col2 AS col0 FROM tab0
----
82
89
91

skipif mysql # not compatible
query I rowsort label-7014
SELECT + 91 + + 96 / - col2 AS col0 FROM tab0
----
82
89
91

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 54 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7016
SELECT - 7 * + 72 + 90 DIV + SUM( - 84 ) col1 FROM tab0
----
-504

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7016
SELECT - 7 * + 72 + 90 / + SUM ( - 84 ) col1 FROM tab0
----
-504

query I rowsort
SELECT ALL + col0 / + col1 - - col1 AS col1 FROM tab2 WHERE - - col2 >= + col2 + + 89
----

query I rowsort
SELECT - ( + col0 ) * col2 + - 92 + + col0 FROM tab2
----
-1104
-2588
-4367

query II rowsort
SELECT DISTINCT + 83 * + col2 AS col1, 11 * + col2 FROM tab2 AS cor0
----
1909
253
3320
440
4814
638

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

query I rowsort
SELECT DISTINCT col1 * + col2 - col1 FROM tab2 cor0
----
1122
3003
3819

query I rowsort
SELECT + - col1 + col2 FROM tab1 AS cor0 WHERE col0 + + + col2 >= NULL
----

query I rowsort
SELECT ALL - ( - 31 ) FROM tab2
----
31
31
31

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

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

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

query I rowsort
SELECT ALL - col1 * + - 92 AS col2 FROM tab2
----
4692
6164
7084

onlyif mysql # aggregate syntax: 
query II rowsort label-7027
SELECT ALL + 20 AS col1, + MIN( - - 46 ) AS col2 FROM tab1 WHERE NOT NULL <> NULL
----
20
NULL

skipif mysql # not compatible
query II rowsort label-7027
SELECT ALL + 20 AS col1, + MIN ( - - 46 ) AS col2 FROM tab1 WHERE NOT NULL <> NULL
----
20
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7028
SELECT 50 - COUNT( * ) AS col1 FROM tab2
----
47

skipif mysql # not compatible
query I rowsort label-7028
SELECT 50 - COUNT ( * ) AS col1 FROM tab2
----
47

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7030
SELECT DISTINCT + 5 DIV - COUNT( * ) + + - 6 FROM tab0
----
-7

skipif mysql # not compatible
query I rowsort label-7030
SELECT DISTINCT + 5 / - COUNT ( * ) + + - 6 FROM tab0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-7031
SELECT DISTINCT SUM( - ( - col0 ) ) AS col2 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-7031
SELECT DISTINCT SUM ( - ( - col0 ) ) AS col2 FROM tab0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-7032
SELECT - ( + SUM( + 11 ) ) FROM tab1
----
-33

skipif mysql # not compatible
query I rowsort label-7032
SELECT - ( + SUM ( + 11 ) ) FROM tab1
----
-33

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 * + 59 + - ( - + col1 ) >= NULL
----

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

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

query I rowsort
SELECT col1 AS col0 FROM tab1 AS cor0 WHERE NOT - col0 * - 46 IN ( - + col1 )
----
14
47
5

query I rowsort
SELECT DISTINCT - 36 AS col2 FROM tab2 cor0
----
-36

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 * + col2 + - ( col2 ) * 54 * - - 1 / + col2 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7038
SELECT - CAST( - + 41 AS SIGNED ) DIV - col2 AS col2 FROM tab2 cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7038
SELECT - CAST ( - + 41 AS INTEGER ) / - col2 AS col2 FROM tab2 cor0
----
-1
-1
0

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

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

query I rowsort
SELECT col2 * - - 38 FROM tab1 AS cor0
----
2242
2584
3648

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE NOT NULL IN ( 42 - - - 66 )
----

query I rowsort
SELECT 33 * + - col0 FROM tab1
----
-1683
-2805
-3003

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7045
SELECT + MIN( CAST( + col0 AS SIGNED ) ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-7045
SELECT + MIN ( CAST ( + col0 AS INTEGER ) ) FROM tab0
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-7046
SELECT col0 DIV 22 + 16 FROM tab0
----
16
19
20

skipif mysql # not compatible
query I rowsort label-7046
SELECT col0 / 22 + 16 FROM tab0
----
16
19
20

onlyif mysql # DIV for integer division: 
query I rowsort label-7047
SELECT + 12 + 7 DIV - col0 AS col0 FROM tab1
----
12
12
12

skipif mysql # not compatible
query I rowsort label-7047
SELECT + 12 + 7 / - col0 AS col0 FROM tab1
----
12
12
12

query I rowsort
SELECT + 46 * - col1 + + - ( 9 ) AS col0 FROM tab0
----
-3735
-55
-975

query I rowsort
SELECT ALL + col0 * 54 + + col1 FROM tab1 WHERE NOT - col0 * - col2 IS NULL
----
2768
4595
4961

onlyif mysql # aggregate syntax: 
query I rowsort label-7050
SELECT - ( + - MAX( + col1 ) ) + + 67 AS col0 FROM tab1
----
114

skipif mysql # not compatible
query I rowsort label-7050
SELECT - ( + - MAX ( + col1 ) ) + + 67 AS col0 FROM tab1
----
114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7051
SELECT DISTINCT - ( - SUM( ALL + ( + + CAST( + + col1 AS SIGNED ) ) ) ), + 33 AS col0 FROM tab0 cor0
----
103
33

skipif mysql # not compatible
query II rowsort label-7051
SELECT DISTINCT - ( - SUM ( ALL + ( + + CAST ( + + col1 AS INTEGER ) ) ) ), + 33 AS col0 FROM tab0 cor0
----
103
33

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 <= - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-7053
SELECT DISTINCT - + col1, + col2 DIV + col1 col1 FROM tab2 cor0
----
-51
0
-67
0
-77
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7053
SELECT DISTINCT - + col1, + col2 / + col1 col1 FROM tab2 cor0
----
-51
0
-67
0
-77
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <= - 34
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 * 17 + - 65 + - col1 BETWEEN + + col0 * col1 + + ( 50 ) AND NULL
----

query I rowsort
SELECT ALL col2 AS col1 FROM tab1 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
59
68
96

query II rowsort
SELECT ALL + + col1, - ( - 95 ) FROM tab0 cor0 WHERE NOT 62 >= 78 * - 92 + col2 + + 92 + + - col0
----

query I rowsort
SELECT 55 * + col0 AS col1 FROM tab2 AS cor0
----
2530
3520
4125

onlyif mysql # aggregate syntax: 
query I rowsort label-7059
SELECT DISTINCT - COUNT( * ) + - 17 FROM tab2 WHERE ( NULL ) NOT IN ( 55 )
----
-17

skipif mysql # not compatible
query I rowsort label-7059
SELECT DISTINCT - COUNT ( * ) + - 17 FROM tab2 WHERE ( NULL ) NOT IN ( 55 )
----
-17

query I rowsort
SELECT DISTINCT col2 * + + ( - col0 ) FROM tab0
----
-705
-870
-9603

query I rowsort
SELECT + 61 AS col2 FROM tab1 AS cor0 WHERE + 43 = ( + + 62 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7062
SELECT * FROM tab1 AS cor0 WHERE + 84 IS NULL AND ( CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7062
SELECT * FROM tab1 AS cor0 WHERE + 84 IS NULL AND ( CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

query I rowsort
SELECT col1 + 85 + - + 59 * - - ( + 1 ) AS col1 FROM tab1 cor0
----
31
40
73

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

skipif mysql # not compatible
query I rowsort label-7064
SELECT ALL 61 + col2 / - col2 / ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 41 + + ( - 43 ) + col2 * - + 57 * - - 80 FROM tab1 AS cor0
----
-269042
-310082
-437762

query I rowsort
SELECT col0 + - - 44 AS col2 FROM tab2 AS cor0
----
108
119
90

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7069
SELECT - 40 * + - col2 - - 5 DIV - ( - col0 ) + - + ( - CAST( + - col2 AS SIGNED ) ) + - - col1 AS col2 FROM tab2 AS cor0
----
1637
2329
948

skipif mysql # not compatible
query I rowsort label-7069
SELECT - 40 * + - col2 - - 5 / - ( - col0 ) + - + ( - CAST ( + - col2 AS INTEGER ) ) + - - col1 AS col2 FROM tab2 AS cor0
----
1637
2329
948

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

query I rowsort
SELECT DISTINCT + 23 AS col1 FROM tab1, tab0 AS cor0
----
23

query III rowsort
SELECT * FROM tab0 WHERE ( ( + 65 ) = 31 )
----

query I rowsort
SELECT + + col2 FROM tab0 WHERE - 43 BETWEEN - col2 AND - + col1
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7074
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( 25 - - CAST( + + 33 AS SIGNED ) / 79, + 20, - col1 / + col2, + - col1 )
----

skipif mysql # not compatible
query III rowsort label-7074
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( 25 - - CAST ( + + 33 AS INTEGER ) / 79, + 20, - col1 / + col2, + - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7075
SELECT + - 28 * + + col0 * - 58 AS col0, CAST( NULL AS SIGNED ) * - col1 FROM tab2 AS cor0
----
103936
NULL
121800
NULL
74704
NULL

skipif mysql # not compatible
query II rowsort label-7075
SELECT + - 28 * + + col0 * - 58 AS col0, CAST ( NULL AS INTEGER ) * - col1 FROM tab2 AS cor0
----
103936
NULL
121800
NULL
74704
NULL

query II rowsort
SELECT - 11 AS col1, - 88 * + col0 AS col0 FROM tab2 AS cor0
----
-11
-4048
-11
-5632
-11
-6600

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

query I rowsort
SELECT - col1 * col1 + - 42 AS col1 FROM tab1 AS cor0
----
-2251
-238
-67

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7080
SELECT + + COUNT ( * ) col0, MAX ( ALL CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
3
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col0 FROM tab0 AS cor0 WHERE NOT ( NOT - + col1 < NULL )
----

query I rowsort
SELECT DISTINCT col0 * - col1 * - col2 * + col0 FROM tab0 cor0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT + col0 * - - ( + 52 ) FROM tab0
----
4524
5044
780

onlyif mysql # aggregate syntax: 
query I rowsort label-7085
SELECT MIN( - 33 ) FROM tab1
----
-33

skipif mysql # not compatible
query I rowsort label-7085
SELECT MIN ( - 33 ) FROM tab1
----
-33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - - 5 col1 FROM tab0
----
-435
-485
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7087
SELECT DISTINCT - col1 + - + CAST( col0 AS SIGNED ) FROM tab2 AS cor0
----
-141
-142
-97

skipif mysql # not compatible
query I rowsort label-7087
SELECT DISTINCT - col1 + - + CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
-141
-142
-97

query I rowsort
SELECT DISTINCT 34 AS col0 FROM tab2 cor0
----
34

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

query I rowsort
SELECT + + 49 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7091
SELECT DISTINCT + ( + 78 ) + + CAST( - 2 AS SIGNED ) FROM tab0 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-7091
SELECT DISTINCT + ( + 78 ) + + CAST ( - 2 AS INTEGER ) FROM tab0 AS cor0
----
76

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

query I rowsort
SELECT col1 FROM tab2 cor0 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col1 * + col0 + + ( - col1 ) + - col2 * - - col0 + + col2 FROM tab2 AS cor0
----
1260
2331
666

onlyif mysql # DIV for integer division: 
query I rowsort label-7095
SELECT ALL + col2 DIV + col1 + - col1 + - + ( 17 ) + - 76 + - 68 AS col2 FROM tab2 cor0
----
-212
-228
-238

skipif mysql # not compatible
query I rowsort label-7095
SELECT ALL + col2 / + col1 + - col1 + - + ( 17 ) + - 76 + - 68 AS col2 FROM tab2 cor0
----
-212
-228
-238

query I rowsort
SELECT DISTINCT - 29 AS col1 FROM tab0 AS cor0 WHERE NOT - col2 * - col1 < NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7097
SELECT ALL + 95 - MIN( - 21 ) AS col2, 54 AS col0 FROM tab1 cor0
----
116
54

skipif mysql # not compatible
query II rowsort label-7097
SELECT ALL + 95 - MIN ( - 21 ) AS col2, 54 AS col0 FROM tab1 cor0
----
116
54

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

query II rowsort
SELECT - col2 + + - 3 AS col1, col0 AS col1 FROM tab1
----
-62
85
-71
91
-99
51

query I rowsort
SELECT 32 + + + 68 AS col2 FROM tab2
----
100
100
100

query I rowsort
SELECT - col1 * - 66 AS col1 FROM tab1 AS cor0
----
3102
330
924

query II rowsort
SELECT DISTINCT col1, ( + 59 ) * - - ( - 52 ) AS col0 FROM tab2 AS cor0
----
51
-3068
67
-3068
77
-3068

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

query II rowsort
SELECT + - col2 AS col2, + 96 + col2 FROM tab1 AS cor0
----
-59
155
-68
164
-96
192

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7105
SELECT - 75 DIV + - 7 + + - ( COUNT( * ) ) + + + 77 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
78

skipif mysql # not compatible
query I rowsort label-7105
SELECT - 75 / + - 7 + + - ( COUNT ( * ) ) + + + 77 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
78

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 * + 86 * - + 12 NOT BETWEEN col1 AND - - 85 * + 85 - 4 - + 55 + 59
----

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

query I rowsort
SELECT - col1 AS col2 FROM tab2 AS cor0 WHERE NOT - col0 * + 68 * + col0 IS NULL
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7109
SELECT ALL CAST( NULL AS SIGNED ) * col1 AS col0, col0 * + col2 * - col2 AS col1 FROM tab1 AS cor0
----
NULL
-295885
NULL
-420784
NULL
-470016

skipif mysql # not compatible
query II rowsort label-7109
SELECT ALL CAST ( NULL AS INTEGER ) * col1 AS col0, col0 * + col2 * - col2 AS col1 FROM tab1 AS cor0
----
NULL
-295885
NULL
-420784
NULL
-470016

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

query I rowsort
SELECT - col1 + + col0 - 62 FROM tab2
----
-54
-67
-75

query I rowsort
SELECT + col0 + - 91 * col0 AS col2 FROM tab2
----
-4140
-5760
-6750

onlyif mysql # aggregate syntax: 
query I rowsort label-7113
SELECT - MIN( ALL + col2 ) + 61 AS col2 FROM tab0
----
51

skipif mysql # not compatible
query I rowsort label-7113
SELECT - MIN ( ALL + col2 ) + 61 AS col2 FROM tab0
----
51

query I rowsort
SELECT ALL col1 + + ( - col1 ) AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL - col2 * - ( - + 36 ) FROM tab1
----
-2124
-2448
-3456

query I rowsort
SELECT ALL - 82 + - col2 AS col0 FROM tab0
----
-129
-181
-92

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7118
SELECT ALL 26 DIV - - col0 + - col1 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-7118
SELECT ALL 26 / - - col0 + - col1 FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT - + col1 * + - col1 FROM tab0 AS cor0
----
1
441
6561

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7120
SELECT + CAST( 70 AS SIGNED ) DIV + 58 AS col2 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7120
SELECT + CAST ( 70 AS INTEGER ) / + 58 AS col2 FROM tab2 AS cor0
----
1
1
1

query II rowsort
SELECT + - col1, + 65 AS col0 FROM tab1 WHERE 54 NOT BETWEEN NULL AND - 62
----
-14
65
-47
65
-5
65

query I rowsort
SELECT DISTINCT - - col1 - + - col2 * - col1 FROM tab0 AS cor0
----
-189
-3726
-98

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7123
SELECT + col0 + CAST( - + col1 AS SIGNED ) DIV col2 FROM tab0 AS cor0
----
14
85
97

skipif mysql # not compatible
query I rowsort label-7123
SELECT + col0 + CAST ( - + col1 AS INTEGER ) / col2 FROM tab0 AS cor0
----
14
85
97

query I rowsort
SELECT DISTINCT - col1 + - col2 * + + col1 FROM tab0 AS cor0
----
-100
-231
-3888

query I rowsort
SELECT DISTINCT + - col2 + col0 - + col2 FROM tab0 AS cor0
----
-101
-79
67

query I rowsort
SELECT DISTINCT + ( col2 ) - + 14 FROM tab2 AS cor0
----
26
44
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7127
SELECT - MIN( DISTINCT col0 ) AS col1 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-7127
SELECT - MIN ( DISTINCT col0 ) AS col1 FROM tab1 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-7128
SELECT ALL 55 - - MIN( - col2 ) FROM tab1 WHERE NOT NULL <> - 34 + + - 64
----
NULL

skipif mysql # not compatible
query I rowsort label-7128
SELECT ALL 55 - - MIN ( - col2 ) FROM tab1 WHERE NOT NULL <> - 34 + + - 64
----
NULL

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - 8 col1 FROM tab2
----
-408
-536
-616

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - 15 * 28 >= NULL
----

query I rowsort
SELECT + col1 + - ( + col1 ) FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT ALL 84 AS col0 FROM tab0 AS cor0
----
84
84
84

onlyif mysql # aggregate syntax: 
query II rowsort label-7135
SELECT + 88 * - 88, COUNT( * ) * 51 AS col0 FROM tab1 AS cor0
----
-7744
153

skipif mysql # not compatible
query II rowsort label-7135
SELECT + 88 * - 88, COUNT ( * ) * 51 AS col0 FROM tab1 AS cor0
----
-7744
153

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 59 col1, - 56 * - - col2 FROM tab0 AS cor0
----
59
-2632
59
-5544
59
-560

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

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

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

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

query I rowsort
SELECT + + 15 * 66 AS col1 FROM tab2 cor0
----
990
990
990

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7142
SELECT DISTINCT 36 * + + MIN( + + col0 ) AS col0 FROM tab0
----
540

skipif mysql # not compatible
query I rowsort label-7142
SELECT DISTINCT 36 * + + MIN ( + + col0 ) AS col0 FROM tab0
----
540

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7143
SELECT ALL - col0 + CAST( 60 AS SIGNED ) FROM tab0
----
-27
-37
45

skipif mysql # not compatible
query I rowsort label-7143
SELECT ALL - col0 + CAST ( 60 AS INTEGER ) FROM tab0
----
-27
-37
45

query I rowsort
SELECT DISTINCT - 33 AS col2 FROM tab0 WHERE NULL IN ( + - col1, - 45 * - 61 )
----

query I rowsort
SELECT ALL 70 * - col2 * + col0 AS col1 FROM tab0
----
-49350
-60900
-672210

query I rowsort
SELECT 25 + - - 45 * col1 + - 79 FROM tab0
----
-9
3591
891

onlyif mysql # aggregate syntax: 
query II rowsort label-7147
SELECT ALL - 72 + + COUNT( * ) AS col0, 92 col0 FROM tab1
----
-69
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7147
SELECT ALL - 72 + + COUNT ( * ) AS col0, 92 col0 FROM tab1
----
-69
92

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

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

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

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab1 WHERE NOT + col1 * - - ( - + col2 ) >= 25
----
59
68
96

query I rowsort
SELECT - col1 * + 16 FROM tab0
----
-1296
-16
-336

onlyif mysql # aggregate syntax: 
query I rowsort label-7152
SELECT - COUNT( * ) * MIN( - ( ( col2 ) ) ) FROM tab0 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-7152
SELECT - COUNT ( * ) * MIN ( - ( ( col2 ) ) ) FROM tab0 AS cor0
----
297

onlyif mysql # DIV for integer division: 
query I rowsort label-7153
SELECT ALL + 73 * - 95 + 32 + - col2 DIV + col2 col1 FROM tab2 AS cor0
----
-6904
-6904
-6904

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7153
SELECT ALL + 73 * - 95 + 32 + - col2 / + col2 col1 FROM tab2 AS cor0
----
-6904
-6904
-6904

query I rowsort
SELECT DISTINCT col2 - col1 + - + col0 + - col1 + - col1 * col2 + - 62 AS col2 FROM tab1 cor0
----
-1389
-3375
-393

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7157
SELECT MAX( - + 93 ) FROM tab0 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-7157
SELECT MAX ( - + 93 ) FROM tab0 AS cor0
----
-93

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

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

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

skipif mysql # not compatible
query I rowsort label-7159
SELECT DISTINCT CAST ( + + 79 AS INTEGER ) FROM tab0
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7160
SELECT * FROM tab0 WHERE NOT + + 88 + 7 + + CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7160
SELECT * FROM tab0 WHERE NOT + + 88 + 7 + + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query I rowsort
SELECT ALL 83 * + ( + 65 ) + - 74 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e7357a98b49e2625be56debf7e5ebc41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - col2 - - - 50 col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-26
-27
-33

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7165
SELECT DISTINCT + + col2 DIV 5 - - col0 + 24 FROM tab1 AS cor0 WHERE + 11 IS NOT NULL
----
120
128
94

skipif mysql # not compatible
query I rowsort label-7165
SELECT DISTINCT + + col2 / 5 - - col0 + 24 FROM tab1 AS cor0 WHERE + 11 IS NOT NULL
----
120
128
94

query I rowsort
SELECT DISTINCT + 97 + - - 42 * + - col1 AS col0 FROM tab1 AS cor0
----
-113
-1877
-491

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7167
SELECT DISTINCT + + col1 AS col1 FROM tab2 AS cor0 WHERE NOT - col1 <= - + col1 + CAST( - - col1 AS DECIMAL ) + col2 * - 58 * + + 8 * col0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-7167
SELECT DISTINCT + + col1 AS col1 FROM tab2 AS cor0 WHERE NOT - col1 <= - + col1 + CAST ( - - col1 AS REAL ) + col2 * - 58 * + + 8 * col0
----
51
67
77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 - - col2 + + 44 = NULL
----

query I rowsort
SELECT DISTINCT - + col2 * + col1 * + 21 FROM tab2 cor0
----
-24633
-64680
-81606

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7171
SELECT - ( - + 87 ) * - COUNT( * ) + 72 FROM tab2 cor0
----
-189

skipif mysql # not compatible
query I rowsort label-7171
SELECT - ( - + 87 ) * - COUNT ( * ) + 72 FROM tab2 cor0
----
-189

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7172
SELECT ALL - CAST( NULL AS SIGNED ), ( COUNT( * ) ) col2 FROM tab1
----
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7172
SELECT ALL - CAST ( NULL AS INTEGER ), ( COUNT ( * ) ) col2 FROM tab1
----
NULL
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 + 35 col0 FROM tab1
----
81
81
81

onlyif mysql # DIV for integer division: 
query I rowsort label-7174
SELECT + col0 * - col2 + - col0 + - 26 DIV - - col1 AS col1 FROM tab0
----
-720
-958
-9726

skipif mysql # not compatible
query I rowsort label-7174
SELECT + col0 * - col2 + - col0 + - 26 / - - col1 AS col1 FROM tab0
----
-720
-958
-9726

query I rowsort
SELECT - col2 * - col0 + - col2 AS col1 FROM tab0
----
658
860
9504

onlyif mysql # aggregate syntax: 
query I rowsort label-7176
SELECT ALL COUNT( * ) + + - MAX( - col2 ) * + 9 FROM tab0
----
93

skipif mysql # not compatible
query I rowsort label-7176
SELECT ALL COUNT ( * ) + + - MAX ( - col2 ) * + 9 FROM tab0
----
93

query I rowsort
SELECT DISTINCT col2 + - + col2 FROM tab2 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) = + 40
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - - 69 col2 FROM tab1 AS cor0
----
-16
-22
18

query I rowsort
SELECT DISTINCT - ( 36 ) FROM tab1 AS cor0
----
-36

query I rowsort
SELECT - 66 - col2 AS col1 FROM tab2
----
-106
-124
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-7182
SELECT ALL 81 - - COUNT( * ) FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-7182
SELECT ALL 81 - - COUNT ( * ) FROM tab0
----
84

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7183
SELECT DISTINCT CAST( NULL AS DECIMAL ) FROM ( tab1 cor0 CROSS JOIN tab1 AS cor1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7183
SELECT DISTINCT CAST ( NULL AS REAL ) FROM ( tab1 cor0 CROSS JOIN tab1 AS cor1 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-7184
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT ( NULL = - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query IIIIII rowsort label-7184
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT ( NULL = - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL + - col0 * 75 AS col2 FROM tab0 AS cor0
----
-1125
-6525
-7275

query I rowsort
SELECT - - 34 AS col1 FROM tab0 cor0 WHERE NOT ( - col1 ) < 71
----

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

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

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

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

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

query I rowsort
SELECT ALL + col1 * 89 FROM tab0 AS cor0
----
1869
7209
89

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7192
SELECT ALL - col2 / + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE + 60 + - 63 <> - + col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7192
SELECT ALL - col2 / + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE + 60 + - 63 <> - + col2
----
NULL
NULL
NULL

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

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

skipif mysql # not compatible
query I rowsort label-7194
SELECT DISTINCT + + col2 / 54 * + + ( - col0 ) AS col0 FROM tab0 AS cor0
----
-97
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7196
SELECT - 98 * COUNT( * ) * COUNT( * ) * + 32 FROM tab0 AS cor0
----
-28224

skipif mysql # not compatible
query I rowsort label-7196
SELECT - 98 * COUNT ( * ) * COUNT ( * ) * + 32 FROM tab0 AS cor0
----
-28224

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7199
SELECT MIN( DISTINCT - + col1 ) col2 FROM tab0 AS cor0
----
-81

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

query I rowsort
SELECT - - 24 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

query I rowsort
SELECT col0 + + ( + 64 ) AS col2 FROM tab2
----
110
128
139

onlyif mysql # aggregate syntax: 
query I rowsort label-7202
SELECT MAX( DISTINCT - - 46 ) + - 85 AS col0 FROM tab0
----
-39

skipif mysql # not compatible
query I rowsort label-7202
SELECT MAX ( DISTINCT - - 46 ) + - 85 AS col0 FROM tab0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-7203
SELECT DISTINCT - COUNT( col1 ) + 13 FROM tab2 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-7203
SELECT DISTINCT - COUNT ( col1 ) + 13 FROM tab2 AS cor0
----
10

query I rowsort
SELECT - ( - 91 ) FROM tab1 AS cor0
----
91
91
91

onlyif mysql # aggregate syntax: 
query III rowsort label-7205
SELECT DISTINCT - COUNT( * ) AS col2, - MIN( + col1 ) AS col1, COUNT( * ) FROM tab1
----
-3
-5
3

skipif mysql # not compatible
query III rowsort label-7205
SELECT DISTINCT - COUNT ( * ) AS col2, - MIN ( + col1 ) AS col1, COUNT ( * ) FROM tab1
----
-3
-5
3

query I rowsort
SELECT - 44 - - - col0 FROM tab2
----
-108
-119
-90

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

query III rowsort
SELECT * FROM tab1 WHERE NULL > - 38
----

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

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

query II rowsort
SELECT ALL col1 * 19 + + 42, + col1 FROM tab2
----
1011
51
1315
67
1505
77

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7213
SELECT DISTINCT + CAST( NULL AS SIGNED ) - + MAX( DISTINCT - 54 ) * + 45 FROM tab0 WHERE ( NULL <= col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7213
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - + MAX ( DISTINCT - 54 ) * + 45 FROM tab0 WHERE ( NULL <= col2 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7214
SELECT ALL ( + col0 ) + + + col0 DIV + 94 - col0 AS col1 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7214
SELECT ALL ( + col0 ) + + + col0 / + 94 - col0 AS col1 FROM tab0
----
0
0
1

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL < - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7217
SELECT ALL CAST( 67 AS SIGNED ) AS col0 FROM tab1
----
67
67
67

skipif mysql # not compatible
query I rowsort label-7217
SELECT ALL CAST ( 67 AS INTEGER ) AS col0 FROM tab1
----
67
67
67

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - 75 IS NOT NULL
----

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

query I rowsort
SELECT ALL - col1 FROM tab2 cor0 WHERE NOT ( + col2 IS NULL )
----
-51
-67
-77

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

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

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

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

query II rowsort
SELECT ALL + 83 AS col2, 46 FROM tab1 AS cor0
----
83
46
83
46
83
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7224
SELECT DISTINCT CAST( + + MAX( DISTINCT + + 54 ) AS SIGNED ) FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-7224
SELECT DISTINCT CAST ( + + MAX ( DISTINCT + + 54 ) AS INTEGER ) FROM tab1 AS cor0
----
54

query I rowsort
SELECT - 95 * + + 51 * - col1 * + col0 AS col0 FROM tab1
----
2059125
20722065
3459330

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7226
SELECT DISTINCT CAST( - 58 AS SIGNED ) * - COUNT( * ) * - + 96 col0 FROM tab1
----
-16704

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7226
SELECT DISTINCT CAST ( - 58 AS INTEGER ) * - COUNT ( * ) * - + 96 col0 FROM tab1
----
-16704

query III rowsort
SELECT * FROM tab1 WHERE NOT 1 NOT BETWEEN + col1 * - col1 AND + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab1 AS cor0 WHERE NOT - 3 + + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7229
SELECT DISTINCT - CAST( - 3 AS SIGNED ), - MAX( ALL ( - + 22 ) ) AS col2 FROM tab0 AS cor0
----
3
22

skipif mysql # not compatible
query II rowsort label-7229
SELECT DISTINCT - CAST ( - 3 AS INTEGER ), - MAX ( ALL ( - + 22 ) ) AS col2 FROM tab0 AS cor0
----
3
22

onlyif mysql # aggregate syntax: 
query I rowsort label-7230
SELECT DISTINCT MAX( 33 ) FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-7230
SELECT DISTINCT MAX ( 33 ) FROM tab1
----
33

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

query I rowsort
SELECT ALL 81 + + 31 AS col0 FROM tab0
----
112
112
112

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7233
SELECT col1 AS col0, CAST( col1 AS SIGNED ) AS col0 FROM tab1
----
14
14
47
47
5
5

skipif mysql # not compatible
query II rowsort label-7233
SELECT col1 AS col0, CAST ( col1 AS INTEGER ) AS col0 FROM tab1
----
14
14
47
47
5
5

query I rowsort
SELECT - - 18 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query I rowsort
SELECT ALL + col2 + + 49 FROM tab1 AS cor0
----
108
117
145

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

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

query I rowsort
SELECT ALL + 57 + col2 AS col1 FROM tab0 AS cor0
----
104
156
67

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - col1 * - + ( - 37 ) col1 FROM tab0 AS cor0
----
-2982
-690
60

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

query I rowsort
SELECT + col2 * + col0 + - + 32 AS col0 FROM tab1 AS cor0
----
4864
4983
6156

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7244
SELECT col2 DIV - 81 + - col2 col0, + 86 + + 74 + + CAST( - - 14 AS SIGNED ) AS col0 FROM tab1 cor0
----
-59
174
-68
174
-97
174

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7244
SELECT col2 / - 81 + - col2 col0, + 86 + + 74 + + CAST ( - - 14 AS INTEGER ) AS col0 FROM tab1 cor0
----
-59
174
-68
174
-97
174

onlyif mysql # aggregate syntax: 
query I rowsort label-7245
SELECT ALL - - 74 - - MAX( ALL - col0 ) AS col0 FROM tab1 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-7245
SELECT ALL - - 74 - - MAX ( ALL - col0 ) AS col0 FROM tab1 AS cor0
----
23

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

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

query I rowsort
SELECT DISTINCT 86 - - 49 * - col0 AS col1 FROM tab0
----
-4177
-4667
-649

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

skipif mysql # not compatible
query I rowsort label-7248
SELECT COUNT ( ALL + + col0 ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7249
SELECT * FROM tab1 WHERE + CAST( NULL AS SIGNED ) + - - 47 <= NULL
----

skipif mysql # not compatible
query III rowsort label-7249
SELECT * FROM tab1 WHERE + CAST ( NULL AS INTEGER ) + - - 47 <= NULL
----

query I rowsort
SELECT col0 AS col1 FROM tab1 AS cor0 WHERE col1 + - col2 + - - col1 IS NOT NULL
----
51
85
91

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

query I rowsort
SELECT - col2 - 84 FROM tab0 AS cor0
----
-131
-183
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-7253
SELECT + ( - SUM( DISTINCT + col0 ) ) - + + ( COUNT( ALL - + 53 ) ) FROM tab2 AS cor0
----
-188

skipif mysql # not compatible
query I rowsort label-7253
SELECT + ( - SUM ( DISTINCT + col0 ) ) - + + ( COUNT ( ALL - + 53 ) ) FROM tab2 AS cor0
----
-188

query II rowsort
SELECT DISTINCT - 32 AS col2, ( col1 ) AS col1 FROM tab0
----
-32
1
-32
21
-32
81

query I rowsort
SELECT ALL + col1 * + col2 * + 34 FROM tab1
----
10030
108664
45696

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

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

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

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

query I rowsort
SELECT ALL col1 * 21 * - col0 AS col2 FROM tab1
----
-14994
-8925
-89817

onlyif mysql # aggregate syntax: 
query I rowsort label-7260
SELECT + 41 - - COUNT( * ) FROM tab2, tab1 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-7260
SELECT + 41 - - COUNT ( * ) FROM tab2, tab1 AS cor0
----
50

query I rowsort
SELECT ALL + + col0 FROM tab1 WHERE + + col0 = + ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7262
SELECT - 62 + + 15 col2, + col2 + + - ( + col2 ) * - - col2 col2 FROM tab1 WHERE NOT + CAST( + col1 AS SIGNED ) * - - ( - col1 ) + - col0 + + col0 * + 96 IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7262
SELECT - 62 + + 15 col2, + col2 + + - ( + col2 ) * - - col2 col2 FROM tab1 WHERE NOT + CAST ( + col1 AS INTEGER ) * - - ( - col1 ) + - col0 + + col0 * + 96 IS NOT NULL
----

query I rowsort
SELECT ALL + - 37 AS col2 FROM tab0 WHERE + 36 + - col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT col0, + col2, + col2 col2 FROM tab2
----
9 values hashing to 954b110161ea1df2afa9554fc52d19da

query I rowsort
SELECT 16 * + - 2 AS col2 FROM tab1
----
-32
-32
-32

query I rowsort
SELECT + ( - col1 ) * - - col2 FROM tab2 cor0
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-7267
SELECT - COUNT( * ) * - + MAX( + 28 ) FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-7267
SELECT - COUNT ( * ) * - + MAX ( + 28 ) FROM tab0 AS cor0
----
84

query I rowsort
SELECT ALL col1 + 48 + - 18 * - col2 FROM tab2 AS cor0 WHERE NOT - 76 NOT BETWEEN - 75 * + col1 - + col0 AND ( NULL )
----

query I rowsort
SELECT DISTINCT col1 + - 2 AS col0 FROM tab2
----
49
65
75

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

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

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

query I rowsort
SELECT ALL - + col2 * + - col0 * + col2 + col2 * - ( - - col1 ) * + + col2 FROM tab0 AS cor0
----
-145794
6600
940896

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL > 1
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( 61 ) NOT BETWEEN 98 * 16 AND + col1 - ( - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col0 * + col1 - + col1 * - - 29 AS col2 FROM tab2 AS cor0
----
2695
3082
867

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 41 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7277
SELECT DISTINCT - col2 DIV - 97 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-7277
SELECT DISTINCT - col2 / - 97 FROM tab0
----
0
1

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

query I rowsort
SELECT ALL col1 - + + 22 AS col2 FROM tab0
----
-1
-21
59

query I rowsort
SELECT DISTINCT - + col1 / + col0 FROM tab2 WHERE NOT + + col0 = NULL
----

query I rowsort
SELECT 7 + + 61 AS col1 FROM tab1
----
68
68
68

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

query I rowsort
SELECT ALL - col0 * col1 * + col1 + col2 FROM tab1
----
-200951
-2066
-9900

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

skipif mysql # not compatible
query I rowsort label-7284
SELECT - COUNT ( * ) / - 38 AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7285
SELECT ALL + col1 FROM tab2 cor0 WHERE NOT + CAST( NULL AS SIGNED ) > NULL
----

skipif mysql # not compatible
query I rowsort label-7285
SELECT ALL + col1 FROM tab2 cor0 WHERE NOT + CAST ( NULL AS INTEGER ) > NULL
----

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

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

query II rowsort
SELECT DISTINCT col0 AS col1, col1 + 82 FROM tab0 AS cor0
----
15
163
87
103
97
83

query I rowsort
SELECT 16 * + ( - + 14 ) FROM tab2, tab0 AS cor0
----
9 values hashing to 2759faea94124296954c6bec9388fcce

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7292
SELECT ALL - MIN( - 27 ) FROM tab0 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-7292
SELECT ALL - MIN ( - 27 ) FROM tab0 AS cor0
----
27

query II rowsort
SELECT ALL + col1 AS col1, + 86 FROM tab1 AS cor0 WHERE NOT - col2 BETWEEN - col0 AND NULL
----
14
86

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7295
SELECT ALL 74 * + ( COUNT( * ) ) * - + 70 col1 FROM tab1 AS cor0
----
-15540

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7295
SELECT ALL 74 * + ( COUNT ( * ) ) * - + 70 col1 FROM tab1 AS cor0
----
-15540

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7297
SELECT 98 + + COUNT( * ) + SUM( ALL + 61 ) FROM tab0
----
284

skipif mysql # not compatible
query I rowsort label-7297
SELECT 98 + + COUNT ( * ) + SUM ( ALL + 61 ) FROM tab0
----
284

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - + col2 * - col2 * col1 + 44 col2 FROM tab1
----
10214460
1806380
87069

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7299
SELECT - COUNT( ALL - 76 ) + + 9 + - 24 DIV ( 90 ) AS col1 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-7299
SELECT - COUNT ( ALL - 76 ) + + 9 + - 24 / ( 90 ) AS col1 FROM tab0
----
6

query I rowsort
SELECT ALL 42 * - col0 AS col0 FROM tab1
----
-2142
-3570
-3822

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT NULL > - 22 * + 10 )
----

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

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

query I rowsort
SELECT - 26 * - + 91 + - ( 94 ) + - - col1 FROM tab2 AS cor0
----
2323
2339
2349

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 12 * - + 78 col0 FROM tab2 AS cor0
----
-936
-936
-936

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7307
SELECT ALL SUM( DISTINCT - ( - + col0 ) ) DIV - MIN( ALL - col0 ) FROM tab2
----
2

skipif mysql # not compatible
query I rowsort label-7307
SELECT ALL SUM ( DISTINCT - ( - + col0 ) ) / - MIN ( ALL - col0 ) FROM tab2
----
2

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

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

skipif mysql # not compatible
query I rowsort label-7309
SELECT DISTINCT - col1 / - 55 FROM tab0 AS cor0
----
0
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7311
SELECT - COUNT( * ) + + - 4 AS col1 FROM tab0 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-7311
SELECT - COUNT ( * ) + + - 4 AS col1 FROM tab0 AS cor0
----
-7

query I rowsort
SELECT - col0 + - col0 + - + 88 FROM tab1 cor0
----
-190
-258
-270

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

query I rowsort
SELECT - + col1 + + - col1 AS col2 FROM tab1 AS cor0
----
-10
-28
-94

query I rowsort
SELECT ALL 46 * ( - col1 ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-3726
-46
-966

onlyif mysql # aggregate syntax: 
query I rowsort label-7316
SELECT ALL + ( + 69 ) * + - COUNT( * ) FROM tab2 AS cor0
----
-207

skipif mysql # not compatible
query I rowsort label-7316
SELECT ALL + ( + 69 ) * + - COUNT ( * ) FROM tab2 AS cor0
----
-207

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + 81 * 31 col1 FROM tab0
----
-203391
-2511
-52731

query I rowsort
SELECT - col1 * - - 13 AS col2 FROM tab2
----
-1001
-663
-871

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

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

query I rowsort
SELECT - 93 * + 52 AS col0 FROM tab1
----
-4836
-4836
-4836

query I rowsort
SELECT ALL - + col1 * + 62 AS col2 FROM tab2 AS cor0
----
-3162
-4154
-4774

query I rowsort
SELECT - - 24 * col1 FROM tab2 AS cor0
----
1224
1608
1848

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

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

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

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

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

query II rowsort
SELECT + + col0, - col1 FROM tab2 AS cor0
----
46
-51
64
-77
75
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-7327
SELECT + 57 DIV - col0 FROM tab0 cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-7327
SELECT + 57 / - col0 FROM tab0 cor0
----
-3
0
0

query I rowsort
SELECT + + 40 * + col1 FROM tab0 AS cor0
----
3240
40
840

query I rowsort
SELECT DISTINCT 33 * + + 84 AS col1 FROM tab0 AS cor0
----
2772

query I rowsort
SELECT ALL + + col0 * + + col1 + + - col2 * + - 75 + - - col0 + col0 * + ( - + ( - - col0 ) ) * - + col1 FROM tab2 cor0 WHERE NOT ( + 40 IS NULL )
----
112033
323384
386325

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7331
SELECT MAX ( col2 ) col1 FROM tab0 AS cor0
----
99

query I rowsort
SELECT col2 + - 31 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( + - ( - - col2 ) ) FROM tab2
----
-23
-40
-58

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

query II rowsort
SELECT ALL ( col1 ), - 90 AS col1 FROM tab1
----
14
-90
47
-90
5
-90

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 57 col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

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

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

query I rowsort
SELECT + 37 * + ( + col1 ) AS col2 FROM tab2
----
1887
2479
2849

query I rowsort
SELECT DISTINCT col2 + + + 7 FROM tab1
----
103
66
75

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

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

query I rowsort
SELECT 71 AS col1 FROM tab0 cor0
----
71
71
71

query I rowsort
SELECT DISTINCT - ( - col0 ) + 23 * + col0 + - col2 AS col0 FROM tab1 AS cor0
----
1128
1981
2116

onlyif mysql # DIV for integer division: 
query I rowsort label-7344
SELECT + 54 DIV - + col0 AS col0 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7344
SELECT + 54 / - + col0 AS col0 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT + col0 - + ( 83 ) FROM tab2 AS cor0
----
-19
-37
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-7346
SELECT ALL + - 32 + 68 + COUNT( * ) FROM tab1 cor0
----
39

skipif mysql # not compatible
query I rowsort label-7346
SELECT ALL + - 32 + 68 + COUNT ( * ) FROM tab1 cor0
----
39

query I rowsort
SELECT ALL 32 / + ( + col1 ) * + col1 FROM tab0 AS cor0 WHERE NULL <> + 29
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 73 * + col0 <> + ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7349
SELECT CAST( - 47 AS SIGNED ) * + - 7 - + col0 - + col1, + 70 AS col2 FROM tab0 AS cor0
----
221
70
231
70
233
70

skipif mysql # not compatible
query II rowsort label-7349
SELECT CAST ( - 47 AS INTEGER ) * + - 7 - + col0 - + col1, + 70 AS col2 FROM tab0 AS cor0
----
221
70
231
70
233
70

query I rowsort
SELECT 58 * + col1 AS col1 FROM tab1
----
2726
290
812

query III rowsort
SELECT DISTINCT + 33 AS col2, + 32 AS col1, - 71 * + 8 AS col0 FROM tab0
----
33
32
-568

onlyif mysql # aggregate syntax: 
query I rowsort label-7352
SELECT DISTINCT - MIN( DISTINCT 45 ) AS col1 FROM tab2
----
-45

skipif mysql # not compatible
query I rowsort label-7352
SELECT DISTINCT - MIN ( DISTINCT 45 ) AS col1 FROM tab2
----
-45

query I rowsort
SELECT ALL - 5 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7354
SELECT - MIN( - + col2 ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-7354
SELECT - MIN ( - + col2 ) FROM tab1
----
96

query I rowsort
SELECT col2 * - col2 * + - col1 FROM tab2
----
123200
225388
26979

onlyif mysql # aggregate syntax: 
query I rowsort label-7356
SELECT MIN( - + ( - - col0 ) ) AS col1 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-7356
SELECT MIN ( - + ( - - col0 ) ) AS col1 FROM tab0
----
-97

query I rowsort
SELECT DISTINCT - col0 * + 62 * - + 58 AS col1 FROM tab2
----
165416
230144
269700

query I rowsort
SELECT DISTINCT + - col2 * - col0 * 61 FROM tab1 cor0
----
298656
305915
377468

query I rowsort
SELECT - 44 * - - col1 AS col0 FROM tab0
----
-3564
-44
-924

onlyif mysql # aggregate syntax: 
query I rowsort label-7360
SELECT DISTINCT - + COUNT( * ) * 21 FROM tab2 cor0
----
-63

skipif mysql # not compatible
query I rowsort label-7360
SELECT DISTINCT - + COUNT ( * ) * 21 FROM tab2 cor0
----
-63

query I rowsort
SELECT + + col2 AS col1 FROM tab1 AS cor0 WHERE NOT - 18 * + col0 NOT IN ( col2, 69 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7362
SELECT ALL AVG ( + 93 ) / - + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7362
SELECT ALL AVG ( + 93 ) / - + CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7363
SELECT + 36 DIV + + col1 FROM tab0 AS cor0
----
0
1
36

skipif mysql # not compatible
query I rowsort label-7363
SELECT + 36 / + + col1 FROM tab0 AS cor0
----
0
1
36

query I rowsort
SELECT - col1 + + - 41 FROM tab0 cor0
----
-122
-42
-62

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7367
SELECT col0 DIV - col2 + - 72 AS col2 FROM tab0
----
-72
-72
-80

skipif mysql # not compatible
query I rowsort label-7367
SELECT col0 / - col2 + - 72 AS col2 FROM tab0
----
-72
-72
-80

query I rowsort
SELECT + 28 * + col1 + 65 FROM tab2
----
1493
1941
2221

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 62 + col1 col2 FROM tab2
----
113
129
139

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7372
SELECT - - col2 * col0 + + col1 - - col2 DIV + col2 FROM tab1 AS cor0
----
4911
5021
6236

skipif mysql # not compatible
query I rowsort label-7372
SELECT - - col2 * col0 + + col1 - - col2 / + col2 FROM tab1 AS cor0
----
4911
5021
6236

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7373
SELECT + col2 * + + CAST( - col0 AS SIGNED ) - - col1 * + - col2 AS col1 FROM tab0 cor0
----
-1080
-4512
-9702

skipif mysql # not compatible
query I rowsort label-7373
SELECT + col2 * + + CAST ( - col0 AS INTEGER ) - - col1 * + - col2 AS col1 FROM tab0 cor0
----
-1080
-4512
-9702

query I rowsort
SELECT 60 AS col1 FROM tab1 WHERE ( NULL ) IN ( col2 )
----

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

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

skipif mysql # not compatible
query I rowsort label-7376
SELECT COUNT ( * ) FROM tab1 WHERE NOT ( + col2 ) IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7377
SELECT + CAST( - 79 AS SIGNED ) DIV - col1 AS col0 FROM tab0
----
0
3
79

skipif mysql # not compatible
query I rowsort label-7377
SELECT + CAST ( - 79 AS INTEGER ) / - col1 AS col0 FROM tab0
----
0
3
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7378
SELECT 1 * + CAST( ( + col1 ) AS SIGNED ) AS col2 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-7378
SELECT 1 * + CAST ( ( + col1 ) AS INTEGER ) AS col2 FROM tab0
----
1
21
81

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + 21 * col1 ) IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7380
SELECT ALL - 64 + COUNT( * ) * + MIN( col1 ) FROM tab1
----
-49

skipif mysql # not compatible
query I rowsort label-7380
SELECT ALL - 64 + COUNT ( * ) * + MIN ( col1 ) FROM tab1
----
-49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 21 col2 FROM tab0
----
2079
210
987

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE + 38 IS NULL
----

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

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

skipif mysql # not compatible
query I rowsort label-7384
SELECT DISTINCT COUNT ( * ) * + 12 FROM tab0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7385
SELECT SUM( ALL + col2 ) * - 55 AS col0 FROM tab1
----
-12265

skipif mysql # not compatible
query I rowsort label-7385
SELECT SUM ( ALL + col2 ) * - 55 AS col0 FROM tab1
----
-12265

query I rowsort
SELECT DISTINCT + col0 * ( col1 * 21 ) AS col1 FROM tab1
----
14994
8925
89817

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

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

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 * col0 + col1 NOT BETWEEN 82 AND + 53
----

query I rowsort
SELECT + 6 * 21 + - 31 AS col0 FROM tab0 WHERE ( + col2 ) > NULL
----

query I rowsort
SELECT DISTINCT 72 * col2 + col0 FROM tab0 WHERE NOT ( 18 - + 99 ) IS NULL
----
3399
7225
807

onlyif mysql # aggregate syntax: 
query I rowsort label-7392
SELECT COUNT( 55 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7392
SELECT COUNT ( 55 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7393
SELECT COUNT( ALL 19 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7393
SELECT COUNT ( ALL 19 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7394
SELECT ALL - MAX( 84 ) FROM tab2
----
-84

skipif mysql # not compatible
query I rowsort label-7394
SELECT ALL - MAX ( 84 ) FROM tab2
----
-84

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

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

query I rowsort
SELECT DISTINCT - 79 - col1 AS col1 FROM tab1
----
-126
-84
-93

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

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

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

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

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

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

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

query I rowsort
SELECT ALL col2 * - col2 FROM tab1 AS cor0 WHERE NOT ( col1 ) + - 71 = col0
----
-3481
-4624
-9216

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

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

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

query I rowsort
SELECT 16 FROM tab1 AS cor0 CROSS JOIN tab2
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

onlyif mysql # aggregate syntax: 
query I rowsort label-7406
SELECT - COUNT( * ) * SUM( DISTINCT 36 ) AS col2 FROM tab1 WHERE NOT col1 + ( + col2 ) = col2
----
-108

skipif mysql # not compatible
query I rowsort label-7406
SELECT - COUNT ( * ) * SUM ( DISTINCT 36 ) AS col2 FROM tab1 WHERE NOT col1 + ( + col2 ) = col2
----
-108

query I rowsort
SELECT ( - 59 ) FROM tab1 cor0 CROSS JOIN tab2
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703

onlyif mysql # aggregate syntax: 
query I rowsort label-7408
SELECT MAX( DISTINCT + 23 ) AS col0 FROM tab1 AS cor0 WHERE 62 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7408
SELECT MAX ( DISTINCT + 23 ) AS col0 FROM tab1 AS cor0 WHERE 62 IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7409
SELECT DISTINCT 17 DIV + col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7409
SELECT DISTINCT 17 / + col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - col1 * 36 FROM tab2 cor0
----
-1836
-2412
-2772

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7411
SELECT ALL - col1 * - col0 - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1 AS cor0 WHERE ( - col2 + + col0 ) NOT IN ( - 29 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7411
SELECT ALL - col1 * - col0 - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0 WHERE ( - col2 + + col0 ) NOT IN ( - 29 )
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL - 71 + 56 FROM tab0 AS cor0
----
-15
-15
-15

query I rowsort
SELECT DISTINCT - col2 * + col1 AS col2 FROM tab2 AS cor0 WHERE NOT - col0 * 67 + + 2 NOT BETWEEN + col1 AND ( - col0 )
----

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - ( col1 ) < + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

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

skipif mysql # not compatible
query I rowsort label-7419
SELECT + COUNT ( * ) AS col1 FROM tab1 WHERE NULL < + col0
----
0

query I rowsort
SELECT 67 - - 2 FROM tab0
----
69
69
69

query I rowsort
SELECT - col1 - 82 FROM tab1
----
-129
-87
-96

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

query I rowsort
SELECT - col0 * col1 AS col2 FROM tab1 WHERE col1 / col1 IS NOT NULL
----
-425
-4277
-714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 80 + - col1 col1 FROM tab0 AS cor0
----
-1
59
79

query I rowsort
SELECT + - col0 + - + col1 * + col2 FROM tab1 AS cor0
----
-1395
-3287
-380

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - 90 col0 FROM tab2 AS cor0
----
-13
-23
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-7427
SELECT DISTINCT COUNT( * ) + - 46 * + 91 col0 FROM tab2 AS cor0
----
-4183

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7427
SELECT DISTINCT COUNT ( * ) + - 46 * + 91 col0 FROM tab2 AS cor0
----
-4183

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7428
SELECT DISTINCT + MAX( + col1 ) col0 FROM tab0 AS cor0 WHERE 4 / + col0 BETWEEN ( CAST( col1 AS SIGNED ) ) AND ( NULL )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7428
SELECT DISTINCT + MAX ( + col1 ) col0 FROM tab0 AS cor0 WHERE 4 / + col0 BETWEEN ( CAST ( col1 AS INTEGER ) ) AND ( NULL )
----
NULL

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7429
SELECT DISTINCT - - CAST ( - col0 AS INTEGER ) col0 FROM tab2 cor0
----
-46
-64
-75

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

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

query I rowsort
SELECT DISTINCT + + col1 - + col1 * col0 FROM tab2 AS cor0
----
-2295
-4851
-4958

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7433
SELECT + MIN( DISTINCT + ( - 57 ) ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-57

skipif mysql # not compatible
query I rowsort label-7433
SELECT + MIN ( DISTINCT + ( - 57 ) ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-57

query I rowsort
SELECT ALL - col0 * + col0 * ( col2 ) FROM tab2
----
-163840
-326250
-48668

query I rowsort
SELECT + 98 - col2 FROM tab2
----
40
58
75

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 25 * - + col1 col1 FROM tab2
----
-1275
-1675
-1925

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT 7 >= col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7439
SELECT - col1 / + ( + + col2 ) col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7440
SELECT 83 * COUNT( * ) + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT col0 / + + col1 IS NULL
----
252

skipif mysql # not compatible
query I rowsort label-7440
SELECT 83 * COUNT ( * ) + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT col0 / + + col1 IS NULL
----
252

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7442
SELECT ALL - MAX( - ( + + 77 ) ) FROM tab1 cor0
----
77

skipif mysql # not compatible
query I rowsort label-7442
SELECT ALL - MAX ( - ( + + 77 ) ) FROM tab1 cor0
----
77

query I rowsort
SELECT ALL + 80 - - col1 AS col0 FROM tab0 AS cor0 WHERE - col0 * col1 * - col2 BETWEEN col0 / col2 + - col1 AND - 98 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7444
SELECT DISTINCT - COUNT( * ) * 77 AS col2 FROM tab2 AS cor0
----
-231

skipif mysql # not compatible
query I rowsort label-7444
SELECT DISTINCT - COUNT ( * ) * 77 AS col2 FROM tab2 AS cor0
----
-231

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

skipif mysql # not compatible
query I rowsort label-7445
SELECT ALL - SUM ( - ( col2 ) ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL OR NOT + col0 + col0 * col0 NOT IN ( + col1 / + col0 )
----
10
47
99

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7450
SELECT ( + COUNT( * ) ) AS col0, + 1 * - CAST( NULL AS SIGNED ) / + COUNT( * ) FROM tab0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-7450
SELECT ( + COUNT ( * ) ) AS col0, + 1 * - CAST ( NULL AS INTEGER ) / + COUNT ( * ) FROM tab0
----
3
NULL

query I rowsort
SELECT col0 * - ( col2 ) AS col0 FROM tab0
----
-705
-870
-9603

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + col1 ) IN ( - 26 * col0 )
----

query I rowsort
SELECT - 65 * + 16 AS col1 FROM tab1
----
-1040
-1040
-1040

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7455
SELECT ALL SUM( DISTINCT - col1 ) AS col0, - 52 AS col1 FROM tab1
----
-66
-52

skipif mysql # not compatible
query II rowsort label-7455
SELECT ALL SUM ( DISTINCT - col1 ) AS col0, - 52 AS col1 FROM tab1
----
-66
-52

query II rowsort
SELECT ALL + col2 * - - col0 AS col2, col1 AS col0 FROM tab2
----
1058
51
2560
77
4350
67

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7458
SELECT + + ( col0 ) DIV 44 + - - 63 AS col2 FROM tab0 AS cor0
----
63
64
65

skipif mysql # not compatible
query I rowsort label-7458
SELECT + + ( col0 ) / 44 + - - 63 AS col2 FROM tab0 AS cor0
----
63
64
65

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7459
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 96 - CAST( NULL AS SIGNED ) / 59 BETWEEN ( NULL ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-7459
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 96 - CAST ( NULL AS INTEGER ) / 59 BETWEEN ( NULL ) AND NULL
----

query II rowsort
SELECT col2 * + col0, + col1 + col2 + - col1 * - 9 AS col2 FROM tab2 AS cor0
----
1058
533
2560
810
4350
728

query I rowsort
SELECT 54 * col1 * col0 FROM tab0 cor0 WHERE NOT ( - col2 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL ( col0 ) * - 30 + 91 + 21 * col0 FROM tab1 AS cor0
----
-368
-674
-728

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 52 col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND ( - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7464
SELECT * FROM tab0 WHERE NOT - CAST( NULL AS SIGNED ) <> ( NULL )
----

skipif mysql # not compatible
query III rowsort label-7464
SELECT * FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) <> ( NULL )
----

query I rowsort
SELECT col0 * + + 46 AS col2 FROM tab1
----
2346
3910
4186

query I rowsort
SELECT DISTINCT 51 + col2 - - col1 * col2 AS col0 FROM tab0
----
249
271
3905

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

query I rowsort
SELECT ALL - col1 * - - 49 - col1 * + col2 AS col2 FROM tab0 AS cor0
----
-1239
-148
-7776

query I rowsort
SELECT DISTINCT - 62 + 97 AS col0 FROM tab0 AS cor0 WHERE NOT ( 45 * col2 ) >= + ( + + 42 )
----

query I rowsort
SELECT + 76 + + col2 FROM tab1 AS cor0
----
135
144
172

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

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

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

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL >= 18
----

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

skipif mysql # not compatible
query I rowsort label-7475
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - - col1 + - + 0 + - + col0 * - 4 / col2 FROM tab0
----
NULL

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

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

query III rowsort
SELECT * FROM tab1 WHERE + 15 > - 15
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE - 72 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col0 + ( + col1 ) FROM tab2
----
-8
13
5

query I rowsort
SELECT ALL col0 + - ( + col2 ) * col0 AS col0 FROM tab1 WHERE + col2 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7481
SELECT 25 DIV + 72 AS col1 FROM tab0 WHERE ( NULL ) IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7481
SELECT 25 / + 72 AS col1 FROM tab0 WHERE ( NULL ) IS NULL
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7482
SELECT DISTINCT COUNT( * ) * - - COUNT( * ) + - - 24 FROM tab2 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-7482
SELECT DISTINCT COUNT ( * ) * - - COUNT ( * ) + - - 24 FROM tab2 AS cor0
----
33

query I rowsort
SELECT 49 - - 64 AS col1 FROM tab1 AS cor0
----
113
113
113

query I rowsort
SELECT DISTINCT + col1 - - + col0 AS col1 FROM tab0 AS cor0
----
108
96
98

query I rowsort
SELECT + 94 - - col1 * + + col2 FROM tab2 AS cor0
----
1267
3174
3980

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7486
SELECT + - col0 - CAST( NULL AS DECIMAL ) * - + 95 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7486
SELECT + - col0 - CAST ( NULL AS REAL ) * - + 95 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 - 65 FROM tab0 AS cor0
----
-50
22
32

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 + + 82 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 96 * + + 0 < + + 82
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7490
SELECT - ( - MAX( + col2 ) ) FROM tab1 cor0
----
96

skipif mysql # not compatible
query I rowsort label-7490
SELECT - ( - MAX ( + col2 ) ) FROM tab1 cor0
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-7491
SELECT col2 DIV + 63 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7491
SELECT col2 / + 63 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7492
SELECT MAX( + - 48 ) AS col2 FROM tab1 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-7492
SELECT MAX ( + - 48 ) AS col2 FROM tab1 AS cor0
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7493
SELECT - 68 DIV - + COUNT( * ) FROM tab2 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-7493
SELECT - 68 / - + COUNT ( * ) FROM tab2 AS cor0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-7494
SELECT - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( - + col2 IN ( col1 + - col0 + - col2 ) )
----
-3

skipif mysql # not compatible
query I rowsort label-7494
SELECT - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( - + col2 IN ( col1 + - col0 + - col2 ) )
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 71 BETWEEN ( + ( 97 ) * - - col0 + col0 ) AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7496
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - col1 AS col1 FROM tab0 WHERE col0 + 58 BETWEEN - 36 AND NULL
----

skipif mysql # not compatible
query I rowsort label-7496
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - col1 AS col1 FROM tab0 WHERE col0 + 58 BETWEEN - 36 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7497
SELECT DISTINCT - ( + SUM( 86 ) ) AS col1 FROM tab0
----
-258

skipif mysql # not compatible
query I rowsort label-7497
SELECT DISTINCT - ( + SUM ( 86 ) ) AS col1 FROM tab0
----
-258

query II rowsort
SELECT ALL + col0 AS col2, col0 * + col2 FROM tab2
----
46
1058
64
2560
75
4350

query I rowsort
SELECT 49 FROM tab1 WHERE NOT - col1 - - col0 + - col0 + + col0 * 26 * - col1 * - col1 * - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 48 * - col0 AS col2 FROM tab2
----
-2208
-3072
-3600

onlyif mysql # aggregate syntax: 
query I rowsort label-7501
SELECT DISTINCT - ( - MAX( ( + + col0 ) ) ) FROM tab1 WHERE NOT NULL IS NOT NULL OR NULL IS NOT NULL
----
91

skipif mysql # not compatible
query I rowsort label-7501
SELECT DISTINCT - ( - MAX ( ( + + col0 ) ) ) FROM tab1 WHERE NOT NULL IS NOT NULL OR NULL IS NOT NULL
----
91

query II rowsort
SELECT + col0 AS col0, + 73 + - - ( - col2 ) AS col1 FROM tab1
----
51
-23
85
14
91
5

query I rowsort
SELECT DISTINCT + 74 * - 68 FROM tab0
----
-5032

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7504
SELECT + CAST( + 19 AS SIGNED ) FROM tab0
----
19
19
19

skipif mysql # not compatible
query I rowsort label-7504
SELECT + CAST ( + 19 AS INTEGER ) FROM tab0
----
19
19
19

query I rowsort
SELECT DISTINCT ( + - 31 ) * col2 + - col1 * col1 * + col1 + + ( - col2 ) AS col0 FROM tab0 AS cor0
----
-3169
-532945
-9581

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7506
SELECT ALL + + SUM( CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7506
SELECT ALL + + SUM ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7507
SELECT 64 DIV + SUM( ALL + - col1 ) + - 60 FROM tab2 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-7507
SELECT 64 / + SUM ( ALL + - col1 ) + - 60 FROM tab2 AS cor0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-7508
SELECT ALL + 4 * + COUNT( * ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7508
SELECT ALL + 4 * + COUNT ( * ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

query I rowsort
SELECT 26 FROM tab2 AS cor0 WHERE ( + + col2 ) NOT BETWEEN ( - 48 ) AND ( 70 / + col1 * - 40 )
----
26
26
26

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE - + col2 / - + col2 = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7511
SELECT DISTINCT CAST( NULL AS SIGNED ) + - COUNT( * ) * - MAX( + + ( + col2 ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7511
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - COUNT ( * ) * - MAX ( + + ( + col2 ) ) AS col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7512
SELECT - SUM( col0 ) AS col1 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-7512
SELECT - SUM ( col0 ) AS col1 FROM tab2 AS cor0
----
-185

query I rowsort
SELECT DISTINCT - - 15 + + + col2 AS col1 FROM tab0 AS cor0
----
114
25
62

query I rowsort
SELECT - - 96 FROM tab1 cor0
----
96
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7515
SELECT ALL + COUNT( * ) + + 15 FROM tab2 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-7515
SELECT ALL + COUNT ( * ) + + 15 FROM tab2 AS cor0
----
18

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 76 <= NULL
----

query I rowsort
SELECT DISTINCT - col0 - + col1 * 86 AS col0 FROM tab1 AS cor0
----
-1255
-4133
-515

query I rowsort
SELECT ALL - col0 * - + col1 * + - col1 - + 30 - 6 FROM tab0 AS cor0
----
-133
-38403
-98451

query I rowsort
SELECT ALL 97 + col2 + - col2 AS col1 FROM tab1 WHERE NOT - col0 * 23 / - 79 < NULL AND NOT + 88 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7520
SELECT + ( - - 79 ) DIV + CAST( + + col1 AS SIGNED ) + col1, col0 col0 FROM tab1
----
19
51
20
85
48
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7520
SELECT + ( - - 79 ) / + CAST ( + + col1 AS INTEGER ) + col1, col0 col0 FROM tab1
----
19
51
20
85
48
91

query I rowsort
SELECT DISTINCT 66 + col2 AS col2 FROM tab0
----
113
165
76

query II rowsort
SELECT col2 * 78 * - 17 + - col0 + + ( - col2 ) AS col0, col2 FROM tab0
----
-131470
99
-13357
10
-62384
47

query I rowsort
SELECT - col1 + + 69 * - 64 AS col1 FROM tab2
----
-4467
-4483
-4493

onlyif mysql # aggregate syntax: 
query I rowsort label-7524
SELECT COUNT( - col0 ) FROM tab0 AS cor0 WHERE ( NOT NULL NOT IN ( - 67 ) )
----
0

skipif mysql # not compatible
query I rowsort label-7524
SELECT COUNT ( - col0 ) FROM tab0 AS cor0 WHERE ( NOT NULL NOT IN ( - 67 ) )
----
0

query II rowsort
SELECT ALL 33 + + 41 + col0 AS col2, - col0 AS col2 FROM tab1 AS cor0
----
125
-51
159
-85
165
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-7526
SELECT - col2 * - col0 + - col2 DIV - col0 FROM tab2 AS cor0
----
1058
2560
4350

skipif mysql # not compatible
query I rowsort label-7526
SELECT - col2 * - col0 + - col2 / - col0 FROM tab2 AS cor0
----
1058
2560
4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7527
SELECT + CAST( NULL AS SIGNED ) FROM tab0 cor0 WHERE ( NULL ) < col1 * - 85
----

skipif mysql # not compatible
query I rowsort label-7527
SELECT + CAST ( NULL AS INTEGER ) FROM tab0 cor0 WHERE ( NULL ) < col1 * - 85
----

query I rowsort
SELECT DISTINCT - 21 + - col2 + 16 FROM tab1 AS cor0
----
-101
-64
-73

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NULL ) >= - + 88
----

query I rowsort
SELECT ALL + col0 + ( + 23 ) AS col0 FROM tab2 AS cor0 WHERE ( NULL NOT BETWEEN NULL AND - col0 )
----

query II rowsort
SELECT DISTINCT + col2, + 92 FROM tab1 AS cor0
----
59
92
68
92
96
92

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - ( + - col1 ) IS NOT NULL
----

query II rowsort
SELECT ALL + col0, + 23 FROM tab2 AS cor0
----
46
23
64
23
75
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7534
SELECT DISTINCT COUNT( DISTINCT + col0 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7534
SELECT DISTINCT COUNT ( DISTINCT + col0 ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7535
SELECT ALL - - col1 AS col2, col2 FROM tab1 AS cor0 WHERE NOT 24 = + + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query II rowsort label-7535
SELECT ALL - - col1 AS col2, col2 FROM tab1 AS cor0 WHERE NOT 24 = + + CAST ( NULL AS REAL )
----

query I rowsort
SELECT ALL 65 * - col2 * + col1 AS col0 FROM tab1 cor0
----
-19175
-207740
-87360

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - col1 ) + 60 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7538
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( CAST( NULL AS DECIMAL ) ) * + + col1
----

skipif mysql # not compatible
query III rowsort label-7538
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( CAST ( NULL AS REAL ) ) * + + col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7539
SELECT ALL - - ( + COUNT( * ) ) DIV - COUNT( * ) + + 54 FROM tab0 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-7539
SELECT ALL - - ( + COUNT ( * ) ) / - COUNT ( * ) + + 54 FROM tab0 AS cor0
----
53

query I rowsort
SELECT col1 * + col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
2601
4489
5929

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 40 >= col2
----
15
81
47
97
1
99

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7542
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST( col1 AS DECIMAL ) BETWEEN - col0 AND ( + + col1 )
----
15
81
47

skipif mysql # not compatible
query III rowsort label-7542
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST ( col1 AS REAL ) BETWEEN - col0 AND ( + + col1 )
----
15
81
47

query II rowsort
SELECT ALL 0, col1 FROM tab1 AS cor0
----
0
14
0
47
0
5

query I rowsort
SELECT col0 AS col2 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT col0 + - - ( col0 ) AS col1 FROM tab1
----
102
170
182

query II rowsort
SELECT DISTINCT + col1 + + col0 AS col1, - col1 FROM tab1
----
138
-47
65
-14
90
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7547
SELECT - COUNT( * ) col1 FROM tab0 AS cor0 WHERE NOT ( + col1 ) <> NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7547
SELECT - COUNT ( * ) col1 FROM tab0 AS cor0 WHERE NOT ( + col1 ) <> NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7548
SELECT ALL - 69 * + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-207

skipif mysql # not compatible
query I rowsort label-7548
SELECT ALL - 69 * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-207

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7549
SELECT DISTINCT + + COUNT( * ) * + - 16 AS col2, + 9 * + CAST( NULL AS SIGNED ) - - 27 FROM tab1 AS cor0
----
-48
NULL

skipif mysql # not compatible
query II rowsort label-7549
SELECT DISTINCT + + COUNT ( * ) * + - 16 AS col2, + 9 * + CAST ( NULL AS INTEGER ) - - 27 FROM tab1 AS cor0
----
-48
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 47, + 27 col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to 87fcd3e0b69081ffe553fa7cfcb2fac3

query I rowsort
SELECT DISTINCT - 52 * - 40 + 1 FROM tab0
----
2081

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + col0 * - - col2 * - col1 - col2 + - col0 col0 FROM tab2
----
-197160
-291508
-53981

query I rowsort
SELECT - col1 + + col0 + - col1 + + + ( - col1 ) FROM tab1 AS cor0
----
-50
70
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7554
SELECT + + 2 * - COUNT( * ) + COUNT( * ) DIV - COUNT( * ) + - 23 FROM tab2 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-7554
SELECT + + 2 * - COUNT ( * ) + COUNT ( * ) / - COUNT ( * ) + - 23 FROM tab2 AS cor0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-7555
SELECT ALL - 5 + ( - COUNT( DISTINCT - col2 ) ) + - COUNT( + 93 ) - - - 0 AS col0 FROM tab0 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-7555
SELECT ALL - 5 + ( - COUNT ( DISTINCT - col2 ) ) + - COUNT ( + 93 ) - - - 0 AS col0 FROM tab0 AS cor0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-7556
SELECT + COUNT( * ) + - 15 FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-7556
SELECT + COUNT ( * ) + - 15 FROM tab0 AS cor0
----
-12

query III rowsort
SELECT ALL * FROM tab0 WHERE - 58 >= + col2
----

query I rowsort
SELECT ALL - col1 * + + col0 * col0 AS col1 FROM tab2 AS cor0
----
-107916
-315392
-376875

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL = ( - ( col1 ) )
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) >= NULL
----

query II rowsort
SELECT col2 AS col1, + col0 AS col0 FROM tab0 AS cor0
----
10
87
47
15
99
97

query I rowsort
SELECT DISTINCT - 50 * - 68 AS col1 FROM tab0 AS cor0
----
3400

onlyif mysql # DIV for integer division: 
query I rowsort label-7563
SELECT - 24 DIV + col2 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7563
SELECT - 24 / + col2 FROM tab2 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7564
SELECT DISTINCT - - 55 DIV + + COUNT( * ) FROM tab2 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-7564
SELECT DISTINCT - - 55 / + + COUNT ( * ) FROM tab2 AS cor0
----
18

query I rowsort
SELECT DISTINCT - - 57 * - col0 * - 30 AS col2 FROM tab0 AS cor0
----
148770
165870
25650

onlyif mysql # DIV for integer division: 
query I rowsort label-7566
SELECT DISTINCT - - 62 DIV + col1 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-7566
SELECT DISTINCT - - 62 / + col1 FROM tab2 AS cor0
----
0
1

query II rowsort
SELECT DISTINCT - col0, + col2 AS col2 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

onlyif mysql # DIV for integer division: 
query I rowsort label-7568
SELECT ALL - 31 DIV - col2 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7568
SELECT ALL - 31 / - col2 AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7569
SELECT DISTINCT - - ( + COUNT( + 42 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7569
SELECT DISTINCT - - ( + COUNT ( + 42 ) ) FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 15 col1 FROM tab0 AS cor0
----
-15
-15
-15

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7571
SELECT ALL CAST( NULL AS DECIMAL ) * - 73 * - col0 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7571
SELECT ALL CAST ( NULL AS REAL ) * - 73 * - col0 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 + + 96 AS col1 FROM tab2
----
119
136
154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7573
SELECT DISTINCT 67 + + COUNT( * ) + + - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7573
SELECT DISTINCT 67 + + COUNT ( * ) + + - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1 FROM tab0
----
NULL

query II rowsort
SELECT ALL col1 AS col0, 31 FROM tab2
----
51
31
67
31
77
31

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - col0 > - col1
----
46
51
23
64
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7576
SELECT ALL + + 53 + - 63 + - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-7576
SELECT ALL + + 53 + - 63 + - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-7577
SELECT + MIN( - 48 ) FROM tab0 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-7577
SELECT + MIN ( - 48 ) FROM tab0 AS cor0
----
-48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col2 col2, col0 AS col1 FROM tab0 AS cor0
----
-10
87
-47
15
-99
97

query I rowsort
SELECT + - col1 * + col2 * + 42 + + - col1 FROM tab2 AS cor0
----
-129437
-163279
-49317

onlyif mysql # aggregate syntax: 
query I rowsort label-7580
SELECT - 58 + - ( + - COUNT( * ) ) FROM tab2 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-7580
SELECT - 58 + - ( + - COUNT ( * ) ) FROM tab2 AS cor0
----
-55

query I rowsort
SELECT DISTINCT - col2 + + - 8 FROM tab1
----
-104
-67
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-7582
SELECT DISTINCT - COUNT( * ) + - - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-7582
SELECT DISTINCT - COUNT ( * ) + - - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
0

query I rowsort
SELECT DISTINCT ( + col2 ) + - 94 FROM tab1
----
-26
-35
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7584
SELECT DISTINCT CAST( NULL AS SIGNED ) + - - CAST( - - 88 AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7584
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - - CAST ( - - 88 AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7585
SELECT + COUNT( - ( + 7 ) ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7585
SELECT + COUNT ( - ( + 7 ) ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7586
SELECT DISTINCT MIN( - col2 ) + + COUNT( - + col2 ) FROM tab0 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-7586
SELECT DISTINCT MIN ( - col2 ) + + COUNT ( - + col2 ) FROM tab0 cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7587
SELECT ALL - 77 - COUNT( * ) FROM tab1 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-7587
SELECT ALL - 77 - COUNT ( * ) FROM tab1 AS cor0
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7588
SELECT ALL * FROM tab2 AS cor0 WHERE - 3 * - CAST( NULL AS SIGNED ) * - 88 + 95 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7588
SELECT ALL * FROM tab2 AS cor0 WHERE - 3 * - CAST ( NULL AS INTEGER ) * - 88 + 95 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7589
SELECT + 68 - 91 + + MAX( DISTINCT col2 ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7589
SELECT + 68 - 91 + + MAX ( DISTINCT col2 ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7590
SELECT + COUNT( DISTINCT - + col1 ) + COUNT( * ) AS col0 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-7590
SELECT + COUNT ( DISTINCT - + col1 ) + COUNT ( * ) AS col0 FROM tab0
----
6

query I rowsort
SELECT - col1 * 29 FROM tab0
----
-2349
-29
-609

onlyif mysql # aggregate syntax: 
query II rowsort label-7592
SELECT DISTINCT + COUNT( * ), COUNT( - ( - + col1 ) ) AS col1 FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-7592
SELECT DISTINCT + COUNT ( * ), COUNT ( - ( - + col1 ) ) AS col1 FROM tab0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7593
SELECT + COUNT( * ) * + - 48 * - SUM( + col1 ) FROM tab1
----
9504

skipif mysql # not compatible
query I rowsort label-7593
SELECT + COUNT ( * ) * + - 48 * - SUM ( + col1 ) FROM tab1
----
9504

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 * col1 NOT IN ( - col2, col2 )
----

query I rowsort
SELECT DISTINCT - 74 * - - col2 AS col1 FROM tab1
----
-4366
-5032
-7104

query I rowsort
SELECT - col1 * + col0 * + ( + 86 ) AS col0 FROM tab2
----
-201756
-423808
-432150

query I rowsort
SELECT DISTINCT 62 FROM tab1 AS cor0 WHERE NULL IS NULL
----
62

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 * + col1 * - col1 >= + ( + col1 )
----

query I rowsort
SELECT ALL + + 27 FROM tab1 cor0
----
27
27
27

query I rowsort
SELECT ALL - 63 * - + 25 * + col1 FROM tab2
----
105525
121275
80325

onlyif mysql # aggregate syntax: 
query I rowsort label-7601
SELECT ALL MAX( DISTINCT - - ( col0 ) ) AS col2 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-7601
SELECT ALL MAX ( DISTINCT - - ( col0 ) ) AS col2 FROM tab0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7602
SELECT DISTINCT - 69 * - COUNT( + + col1 ) FROM tab1
----
207

skipif mysql # not compatible
query I rowsort label-7602
SELECT DISTINCT - 69 * - COUNT ( + + col1 ) FROM tab1
----
207

onlyif mysql # aggregate syntax: 
query I rowsort label-7603
SELECT ALL ( + ( - COUNT( * ) ) ) * + 42 * - COUNT( * ) FROM tab1 AS cor0
----
378

skipif mysql # not compatible
query I rowsort label-7603
SELECT ALL ( + ( - COUNT ( * ) ) ) * + 42 * - COUNT ( * ) FROM tab1 AS cor0
----
378

onlyif mysql # DIV for integer division: 
query I rowsort label-7604
SELECT DISTINCT + col0 DIV - col2 + + + ( - col2 ) FROM tab1 cor0
----
-60
-69
-96

skipif mysql # not compatible
query I rowsort label-7604
SELECT DISTINCT + col0 / - col2 + + + ( - col2 ) FROM tab1 cor0
----
-60
-69
-96

query I rowsort
SELECT ALL + 28 FROM tab0 AS cor0 WHERE NOT ( col0 IS NULL )
----
28
28
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7606
SELECT - CAST( NULL AS SIGNED ) * 60 + ( - + col1 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7606
SELECT - CAST ( NULL AS INTEGER ) * 60 + ( - + col1 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 5 + col0 FROM tab0 AS cor0
----
10
82
92

query I rowsort
SELECT 71 + 29 FROM tab0
----
100
100
100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7609
SELECT col0 + - col2 * + CAST( NULL AS SIGNED ) + col1 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7609
SELECT col0 + - col2 * + CAST ( NULL AS INTEGER ) + col1 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + - ( + col2 ) * col1 + + ( - + col1 ) * + 81 FROM tab0
----
-10287
-179
-1890

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 / col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT ( - - 22 ) + col1 AS col1 FROM tab1 AS cor0
----
27
36
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7613
SELECT + COUNT( + CAST( - 21 AS SIGNED ) ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-7613
SELECT + COUNT ( + CAST ( - 21 AS INTEGER ) ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab1 cor0 CROSS JOIN tab1 AS cor1 ) WHERE ( NULL ) < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7615
SELECT DISTINCT 46 AS col2 FROM tab2 WHERE NOT col0 >= + - col2 + CAST( NULL AS SIGNED ) / col0
----

skipif mysql # not compatible
query I rowsort label-7615
SELECT DISTINCT 46 AS col2 FROM tab2 WHERE NOT col0 >= + - col2 + CAST ( NULL AS INTEGER ) / col0
----

query I rowsort
SELECT + + col0 AS col2 FROM tab1 AS cor0 WHERE + 69 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + 75 + 5 * + 6 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7618
SELECT ALL + ( + COUNT( * ) ) + + 55 AS col0 FROM tab0 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-7618
SELECT ALL + ( + COUNT ( * ) ) + + 55 AS col0 FROM tab0 AS cor0
----
58

query I rowsort
SELECT ALL - + col1 - + col0 + 79 FROM tab2 AS cor0
----
-18
-62
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7620
SELECT MAX( DISTINCT + - col0 ) DIV COUNT( * ) FROM tab0 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-7620
SELECT MAX ( DISTINCT + - col0 ) / COUNT ( * ) FROM tab0 AS cor0
----
-5

query II rowsort
SELECT + 22, + ( 27 ) AS col0 FROM tab0 AS cor0
----
22
27
22
27
22
27

onlyif mysql # aggregate syntax: 
query II rowsort label-7622
SELECT - COUNT( * ), - 60 AS col2 FROM tab2 AS cor0
----
-3
-60

skipif mysql # not compatible
query II rowsort label-7622
SELECT - COUNT ( * ), - 60 AS col2 FROM tab2 AS cor0
----
-3
-60

query I rowsort
SELECT + col0 * - 43 + + col2 FROM tab0 cor0
----
-3731
-4072
-598

onlyif mysql # aggregate syntax: 
query I rowsort label-7624
SELECT + + ( - ( + COUNT( * ) ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7624
SELECT + + ( - ( + COUNT ( * ) ) ) FROM tab1 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 * - 4 + - 48 IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( + - ( - 4 ) ) FROM tab2
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7627
SELECT - CAST( NULL AS SIGNED ) * + COUNT( * ) * 92 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7627
SELECT - CAST ( NULL AS INTEGER ) * + COUNT ( * ) * 92 AS col0 FROM tab1
----
NULL

query I rowsort
SELECT + col2 * - + 39 AS col0 FROM tab0 AS cor0
----
-1833
-3861
-390

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7629
SELECT 99 DIV - 90 + - COUNT( * ) * 14 AS col1 FROM tab1 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-7629
SELECT 99 / - 90 + - COUNT ( * ) * 14 AS col1 FROM tab1 AS cor0
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-7630
SELECT - 19 DIV + 76 + - 21 + - col1 DIV + col1 AS col1 FROM tab2 AS cor0
----
-22
-22
-22

skipif mysql # not compatible
query I rowsort label-7630
SELECT - 19 / + 76 + - 21 + - col1 / + col1 AS col1 FROM tab2 AS cor0
----
-22
-22
-22

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 23 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7632
SELECT DISTINCT - + col0 + - + CAST( NULL AS SIGNED ) - - + col1 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7632
SELECT DISTINCT - + col0 + - + CAST ( NULL AS INTEGER ) - - + col1 AS col1 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT col1, + col2 AS col2 FROM tab0 AS cor0
----
1
99
21
10
81
47

query I rowsort
SELECT - 59 * - + col0 * + col1 AS col2 FROM tab0 AS cor0
----
107793
5723
71685

query I rowsort
SELECT 58 * + 7 * col0 FROM tab2 AS cor0
----
18676
25984
30450

onlyif mysql # aggregate syntax: 
query I rowsort label-7636
SELECT DISTINCT + 77 * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-7636
SELECT DISTINCT + 77 * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
231

query II rowsort
SELECT + col0 * + 44 * 9 AS col0, + col2 * + col1 FROM tab0 cor0
----
34452
210
38412
99
5940
3807

onlyif mysql # aggregate syntax: 
query I rowsort label-7638
SELECT DISTINCT MAX( ALL col1 ) AS col1 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-7638
SELECT DISTINCT MAX ( ALL col1 ) AS col1 FROM tab1 AS cor0
----
47

query I rowsort
SELECT + - col2 * - + col0 FROM tab1 cor0
----
4896
5015
6188

query II rowsort
SELECT ALL col0 AS col2, - col0 AS col2 FROM tab0 AS cor0
----
15
-15
87
-87
97
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7641
SELECT ALL - 7 * - COUNT( * ) * - ( + 57 ) AS col1 FROM tab1
----
-1197

skipif mysql # not compatible
query I rowsort label-7641
SELECT ALL - 7 * - COUNT ( * ) * - ( + 57 ) AS col1 FROM tab1
----
-1197

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7642
SELECT DISTINCT + CAST( + + col0 AS SIGNED ) + + col1 AS col0 FROM tab1
----
138
65
90

skipif mysql # not compatible
query I rowsort label-7642
SELECT DISTINCT + CAST ( + + col0 AS INTEGER ) + + col1 AS col0 FROM tab1
----
138
65
90

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 34 IS NOT NULL
----

query I rowsort
SELECT col1 * - - col1 + + ( + col1 ) FROM tab1
----
210
2256
30

query I rowsort
SELECT + - 87 FROM tab0 WHERE - + col2 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 62 + - 44 IS NULL
----

query I rowsort
SELECT 46 + - col2 - - 34 * - - col0 AS col2 FROM tab2 AS cor0
----
1587
2182
2538

query I rowsort
SELECT DISTINCT + col0 FROM tab1 AS cor0 WHERE col0 * + - 30 + + col2 * + col1 IS NOT NULL
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - ( + + col2 ) BETWEEN NULL AND + - 15
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7650
SELECT + 23 AS col2, CAST( + MIN( + 31 ) AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
23
31

skipif mysql # not compatible
query II rowsort label-7650
SELECT + 23 AS col2, CAST ( + MIN ( + 31 ) AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
23
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 26 col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7653
SELECT - MAX( ALL col0 ) - - COUNT( * ) FROM tab0 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-7653
SELECT - MAX ( ALL col0 ) - - COUNT ( * ) FROM tab0 AS cor0
----
-94

query II rowsort
SELECT DISTINCT col1, - col0 FROM tab1 AS cor0
----
14
-51
47
-91
5
-85

query II rowsort
SELECT - - col2 AS col0, + 34 FROM tab0 AS cor0
----
10
34
47
34
99
34

query II rowsort
SELECT ALL + - col2 AS col0, - col0 FROM tab0 AS cor0
----
-10
-87
-47
-15
-99
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7657
SELECT DISTINCT + CAST( + + SUM( + - 32 ) AS SIGNED ) FROM tab2 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-7657
SELECT DISTINCT + CAST ( + + SUM ( + - 32 ) AS INTEGER ) FROM tab2 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7658
SELECT ALL MIN( col2 ) AS col1 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-7658
SELECT ALL MIN ( col2 ) AS col1 FROM tab0 AS cor0
----
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col2 ) col2 FROM tab1 AS cor0
----
-59
-68
-96

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - 84 ) NOT IN ( + ( col2 ), col1, + + col1 + + + col1 * + - col0 * + col0 + - col0, + - 52 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7661
SELECT ALL - col1 AS col0, + col0 DIV + col2 AS col2 FROM tab2
----
-51
2
-67
1
-77
1

skipif mysql # not compatible
query II rowsort label-7661
SELECT ALL - col1 AS col0, + col0 / + col2 AS col2 FROM tab2
----
-51
2
-67
1
-77
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7662
SELECT CAST( + + 39 AS SIGNED ) AS col0 FROM tab0
----
39
39
39

skipif mysql # not compatible
query I rowsort label-7662
SELECT CAST ( + + 39 AS INTEGER ) AS col0 FROM tab0
----
39
39
39

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 BETWEEN + col1 + + + col0 AND + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + col2 * - ( - col2 ) + + col1 FROM tab0 WHERE NOT - + col1 + + 46 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE 80 IS NULL
----

query II rowsort
SELECT ALL 19, + 53 AS col1 FROM tab1
----
19
53
19
53
19
53

query I rowsort
SELECT - ( col0 ) AS col2 FROM tab2 WHERE NOT - col2 / - 44 IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( 41 ) FROM tab0 AS cor0
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7669
SELECT ALL col0 * CAST( - 37 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-3219
-3589
-555

skipif mysql # not compatible
query I rowsort label-7669
SELECT ALL col0 * CAST ( - 37 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-3219
-3589
-555

onlyif mysql # DIV for integer division: 
query II rowsort label-7670
SELECT - 1 DIV 69, - col0 AS col1 FROM tab0 AS cor0
----
0
-15
0
-87
0
-97

skipif mysql # not compatible
query II rowsort label-7670
SELECT - 1 / 69, - col0 AS col1 FROM tab0 AS cor0
----
0
-15
0
-87
0
-97

query I rowsort
SELECT DISTINCT - 42 * + 33 FROM tab2
----
-1386

query I rowsort
SELECT DISTINCT - col1 * + - col1 + - - col2 - col0 AS col0 FROM tab1 WHERE col1 - col2 * + col2 / col2 BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7673
SELECT DISTINCT col1 + + - 59 + 71 DIV + col2 AS col1 FROM tab2 AS cor0
----
-5
19
9

skipif mysql # not compatible
query I rowsort label-7673
SELECT DISTINCT col1 + + - 59 + 71 / + col2 AS col1 FROM tab2 AS cor0
----
-5
19
9

query I rowsort
SELECT ALL + + 47 AS col2 FROM tab1 AS cor0
----
47
47
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 17 col2 FROM tab0 cor0
----
-17

query I rowsort
SELECT - 22 + + 98 * - col0 AS col1 FROM tab0 AS cor0
----
-1492
-8548
-9528

query I rowsort
SELECT col2 + - - col0 AS col1 FROM tab1
----
144
147
159

query I rowsort
SELECT DISTINCT 84 * col0 AS col0 FROM tab2
----
3864
5376
6300

query I rowsort
SELECT DISTINCT - + 99 FROM tab1 WHERE NOT - col0 - + - col0 + - col0 IS NOT NULL
----

query I rowsort
SELECT ALL 38 + ( col0 ) AS col0 FROM tab0
----
125
135
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7681
SELECT + CAST( NULL AS SIGNED ) AS col1, MIN( ALL + col1 ) FROM tab2
----
NULL
51

skipif mysql # not compatible
query II rowsort label-7681
SELECT + CAST ( NULL AS INTEGER ) AS col1, MIN ( ALL + col1 ) FROM tab2
----
NULL
51

query II rowsort
SELECT DISTINCT - col2 * - - col0 - + - col0 * - col0, col2 AS col1 FROM tab1 cor0
----
-12240
59
-14469
68
-7497
96

query II rowsort
SELECT - 92 AS col1, col1 * col0 FROM tab0 AS cor0
----
-92
1215
-92
1827
-92
97

query I rowsort
SELECT ALL col1 * - col0 + - col0 AS col2 FROM tab1 cor0 WHERE col2 + + col1 / + ( - col2 ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7685
SELECT ALL + 56 + - COUNT( * ) DIV + + 48 col0, - COUNT( * ) FROM tab0 AS cor0
----
56
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7685
SELECT ALL + 56 + - COUNT ( * ) / + + 48 col0, - COUNT ( * ) FROM tab0 AS cor0
----
56
-3

query I rowsort
SELECT + - col1 - - + col2 + 20 * col2 AS col2 FROM tab2 AS cor0
----
1151
432
763

onlyif mysql # aggregate syntax: 
query I rowsort label-7687
SELECT DISTINCT ( MAX( - - col1 ) ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-7687
SELECT DISTINCT ( MAX ( - - col1 ) ) FROM tab2
----
77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < ( - 94 / - + col2 )
----

query I rowsort
SELECT 55 * - col1 AS col1 FROM tab2 AS cor0
----
-2805
-3685
-4235

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7690
SELECT CAST( + - 67 AS SIGNED ) FROM tab2 AS cor0
----
-67
-67
-67

skipif mysql # not compatible
query I rowsort label-7690
SELECT CAST ( + - 67 AS INTEGER ) FROM tab2 AS cor0
----
-67
-67
-67

query I rowsort
SELECT 85 - - 20 FROM tab1 AS cor0 WHERE NOT NULL <= + 66
----

query I rowsort
SELECT ALL - col0 * + col1 + + col0 FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
-2300
-4864
-4950

onlyif mysql # DIV for integer division: 
query I rowsort label-7693
SELECT DISTINCT - 81 DIV col2 * - col1 FROM tab0 AS cor0
----
0
168
81

skipif mysql # not compatible
query I rowsort label-7693
SELECT DISTINCT - 81 / col2 * - col1 FROM tab0 AS cor0
----
0
168
81

onlyif mysql # DIV for integer division: 
query I rowsort label-7694
SELECT DISTINCT col0 * 73 DIV - 37 col0 FROM tab1 AS cor0
----
-100
-167
-179

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7694
SELECT DISTINCT col0 * 73 / - 37 col0 FROM tab1 AS cor0
----
-100
-167
-179

onlyif mysql # DIV for integer division: 
query I rowsort label-7695
SELECT DISTINCT + col0 DIV - 86 AS col2 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-7695
SELECT DISTINCT + col0 / - 86 AS col2 FROM tab0 AS cor0
----
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7696
SELECT - - col1 DIV + col2 AS col2 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-7696
SELECT - - col1 / + col2 AS col2 FROM tab2 AS cor0
----
1
1
2

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 * - - col2 IN ( + ( 15 ) - 51 * - col1, col2 )
----
97
1
99

query I rowsort
SELECT 33 * col0 * - col1 * + 89 AS col2 FROM tab1
----
-1248225
-12561549
-2097018

onlyif mysql # aggregate syntax: 
query I rowsort label-7699
SELECT - 48 * - ( + COUNT( * ) ) AS col0 FROM tab1
----
144

skipif mysql # not compatible
query I rowsort label-7699
SELECT - 48 * - ( + COUNT ( * ) ) AS col0 FROM tab1
----
144

query III rowsort
SELECT * FROM tab0 WHERE ( + col1 + - 36 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col0 + - 45 FROM tab1
----
40
46
6

query I rowsort
SELECT ALL + - col1 + 61 * - - 70 + + + col1 FROM tab2 AS cor0
----
4270
4270
4270

onlyif mysql # DIV for integer division: 
query II rowsort label-7703
SELECT + 58, + 29 DIV + col1 AS col0 FROM tab2 AS cor0
----
58
0
58
0
58
0

skipif mysql # not compatible
query II rowsort label-7703
SELECT + 58, + 29 / + col1 AS col0 FROM tab2 AS cor0
----
58
0
58
0
58
0

query I rowsort
SELECT ( + 17 ) * - col1 AS col1 FROM tab0 AS cor0
----
-1377
-17
-357

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * - col2 <> + col2 * col1 + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + col1 * + + 62 * col1 FROM tab2 AS cor0
----
-161262
-278318
-367598

query I rowsort
SELECT 81 FROM tab0 AS cor0 WHERE - col1 IS NOT NULL
----
81
81
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7708
SELECT + CAST( NULL AS SIGNED ) * - 64 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7708
SELECT + CAST ( NULL AS INTEGER ) * - 64 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 = 79 + - 32
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 40 IN ( col1 + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7711
SELECT ALL - col2 AS col1 FROM tab0 WHERE NOT + col2 + + CAST( NULL AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query I rowsort label-7711
SELECT ALL - col2 AS col1 FROM tab0 WHERE NOT + col2 + + CAST ( NULL AS INTEGER ) <> NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - col1 * - col2 <> - 68
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col0 + - + col0 FROM tab2
----
-128
-150
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-7714
SELECT 23 * - - ( - 36 ) + - - MIN( - col0 ) FROM tab1
----
-919

skipif mysql # not compatible
query I rowsort label-7714
SELECT 23 * - - ( - 36 ) + - - MIN ( - col0 ) FROM tab1
----
-919

query I rowsort
SELECT 32 + + - 90 FROM tab2
----
-58
-58
-58

query I rowsort
SELECT + ( - col1 ) + + col1 * col2 AS col0 FROM tab1
----
1330
290
3149

query I rowsort
SELECT 39 + - col2 AS col0 FROM tab1
----
-20
-29
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7718
SELECT ALL + 2 + col0 - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7718
SELECT ALL + 2 + col0 - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( 96 ) - 65 FROM tab2 AS cor0
----
31
31
31

onlyif mysql # DIV for integer division: 
query I rowsort label-7720
SELECT DISTINCT - + col2 DIV col1 * + col2 - - + 94 FROM tab0 AS cor0
----
-9707
94

skipif mysql # not compatible
query I rowsort label-7720
SELECT DISTINCT - + col2 / col1 * + col2 - - + 94 FROM tab0 AS cor0
----
-9707
94

query I rowsort
SELECT 57 FROM tab2 WHERE NOT + col0 * + + col0 IS NULL
----
57
57
57

query I rowsort
SELECT - ( - - ( - 99 ) ) * + col0 - - col2 FROM tab1
----
5145
8474
9077

query I rowsort
SELECT - 62 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7724
SELECT ALL - + CAST( NULL AS SIGNED ), col2 DIV col0 * + + col2 * + + col0 * + col1 col0 FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL
0
NULL
0
NULL
68544

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7724
SELECT ALL - + CAST ( NULL AS INTEGER ), col2 / col0 * + + col2 * + + col0 * + col1 col0 FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL
0
NULL
0
NULL
68544

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7725
SELECT ALL - CAST( NULL AS SIGNED ) * - 62 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7725
SELECT ALL - CAST ( NULL AS INTEGER ) * - 62 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 64 * - - 12 AS col2 FROM tab0 AS cor0
----
-768
-768
-768

onlyif mysql # aggregate syntax: 
query I rowsort label-7727
SELECT DISTINCT - MIN( + - 96 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-7727
SELECT DISTINCT - MIN ( + - 96 ) FROM tab1 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7728
SELECT DISTINCT - COUNT( * ) * + COUNT( + col1 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7728
SELECT DISTINCT - COUNT ( * ) * + COUNT ( + col1 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7729
SELECT DISTINCT - - MAX( ALL - col1 ) AS col0 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-7729
SELECT DISTINCT - - MAX ( ALL - col1 ) AS col0 FROM tab1 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7730
SELECT DISTINCT + COUNT( * ) + + - COUNT( * ) + + 56 col2 FROM tab0
----
56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7730
SELECT DISTINCT + COUNT ( * ) + + - COUNT ( * ) + + 56 col2 FROM tab0
----
56

query I rowsort
SELECT col0 * + + 49 FROM tab1
----
2499
4165
4459

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7732
SELECT ALL + col2 DIV + CAST( - col1 AS SIGNED ) AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7732
SELECT ALL + col2 / + CAST ( - col1 AS INTEGER ) AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT col2 * - + 59 AS col0 FROM tab1
----
-3481
-4012
-5664

onlyif mysql # DIV for integer division: 
query I rowsort label-7734
SELECT DISTINCT 76 DIV - col0 + + + col0 + + 52 col0 FROM tab0
----
139
149
62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7734
SELECT DISTINCT 76 / - col0 + + + col0 + + 52 col0 FROM tab0
----
139
149
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7735
SELECT DISTINCT 27 DIV COUNT( * ) AS col2 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-7735
SELECT DISTINCT 27 / COUNT ( * ) AS col2 FROM tab2
----
9

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 NOT BETWEEN - 72 - + col1 AND ( + col1 + col1 )
----
91
47
68

query II rowsort
SELECT ALL - ( - col2 ) + - - col1 AS col2, col2 AS col1 FROM tab1
----
110
96
115
68
64
59

query I rowsort
SELECT ALL - 59 + - 26 AS col1 FROM tab0 AS cor0
----
-85
-85
-85

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab0 AS cor0 WHERE NULL <= + col1 * col2 * col2 + - 97 AND NULL = NULL
----

query I rowsort
SELECT DISTINCT - col2 + - col1 + + - 62 FROM tab2 AS cor0
----
-136
-179
-187

query I rowsort
SELECT + col1 + - 5 AS col0 FROM tab2 AS cor0
----
46
62
72

query I rowsort
SELECT DISTINCT - col0 - - 37 AS col2 FROM tab1 AS cor0
----
-14
-48
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-7743
SELECT ALL 60 AS col1, - COUNT( * ) AS col1 FROM tab0 AS cor0
----
60
-3

skipif mysql # not compatible
query II rowsort label-7743
SELECT ALL 60 AS col1, - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
60
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7744
SELECT ALL - ( - COUNT( * ) ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7744
SELECT ALL - ( - COUNT ( * ) ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT ALL 87 - + + col2 + - + 70 AS col0 FROM tab0 AS cor0
----
-30
-82
7

query II rowsort
SELECT + col2 AS col2, + 96 + - col2 FROM tab0
----
10
86
47
49
99
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-7747
SELECT DISTINCT + col2 DIV - + col1 + - col1 col2 FROM tab0
----
-100
-21
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7747
SELECT DISTINCT + col2 / - + col1 + - col1 col2 FROM tab0
----
-100
-21
-81

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 <= + 43 / ( col0 ) + + col2 + col0 * + ( - col1 ) + - - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL + 10 * - ( - - ( 73 ) ), col0 FROM tab1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT + col0 * + - col0 * col0 * - col2, col1 + + col1 AS col0 FROM tab2 WHERE ( + col0 - + col0 > ( ( col1 ) ) )
----

query I rowsort
SELECT DISTINCT + col0 / + 40 + - col2 FROM tab2 WHERE NOT ( NOT col2 BETWEEN - + col1 AND - + 47 )
----

query I rowsort
SELECT DISTINCT + ( col1 ) + + + 83 AS col2 FROM tab1
----
130
88
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7753
SELECT DISTINCT - MAX( DISTINCT + 76 ) - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7753
SELECT DISTINCT - MAX ( DISTINCT + 76 ) - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - col1 + - 26 FROM tab0 AS cor0
----
-107
-27
-47

query I rowsort
SELECT ALL - col1 - - col0 + - + 65 AS col1 FROM tab2 AS cor0
----
-57
-70
-78

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7756
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) < - col1
----

skipif mysql # not compatible
query III rowsort label-7756
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) < - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7757
SELECT ALL - ( + ( + COUNT( * ) ) ) * + + 81 * + ( + 29 ) FROM tab0 AS cor0
----
-7047

skipif mysql # not compatible
query I rowsort label-7757
SELECT ALL - ( + ( + COUNT ( * ) ) ) * + + 81 * + ( + 29 ) FROM tab0 AS cor0
----
-7047

query I rowsort
SELECT - col0 * 11 AS col0 FROM tab2 AS cor0
----
-506
-704
-825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 6 * + - col1 * - + 62 col0 FROM tab2 AS cor0
----
18972
24924
28644

onlyif mysql # aggregate syntax: 
query I rowsort label-7760
SELECT - MAX( ALL + col0 ) * + + COUNT( * ) FROM tab2 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-7760
SELECT - MAX ( ALL + col0 ) * + + COUNT ( * ) FROM tab2 AS cor0
----
-225

onlyif mysql # DIV for integer division: 
query II rowsort label-7761
SELECT col2 DIV - 61 - + 49 * + 85 * + col0 AS col1, col1 AS col2 FROM tab0 AS cor0
----
-362355
21
-404006
1
-62475
81

skipif mysql # not compatible
query II rowsort label-7761
SELECT col2 / - 61 - + 49 * + 85 * + col0 AS col1, col1 AS col2 FROM tab0 AS cor0
----
-362355
21
-404006
1
-62475
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7762
SELECT DISTINCT + + 99 DIV + ( + COUNT( - - 44 ) ) col2 FROM tab1 AS cor0
----
33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7762
SELECT DISTINCT + + 99 / + ( + COUNT ( - - 44 ) ) col2 FROM tab1 AS cor0
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7763
SELECT ( - COUNT( * ) ) DIV - 10 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7763
SELECT ( - COUNT ( * ) ) / - 10 AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7764
SELECT DISTINCT + 35 * + MIN( ALL - col0 ) AS col2 FROM tab0
----
-3395

skipif mysql # not compatible
query I rowsort label-7764
SELECT DISTINCT + 35 * + MIN ( ALL - col0 ) AS col2 FROM tab0
----
-3395

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN - ( col0 ) / col1 + + col2 AND - 79
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( col0 ) * 66 > - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7767
SELECT - col1 * + col2 DIV - col2 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-7767
SELECT - col1 * + col2 / - col2 FROM tab2
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-7768
SELECT ALL - col0 + + + col1 + - col1 DIV + col2 * + col1 FROM tab1
----
-37
-44
-80

skipif mysql # not compatible
query I rowsort label-7768
SELECT ALL - col0 + + + col1 + - col1 / + col2 * + col1 FROM tab1
----
-37
-44
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 34 col2 FROM tab2 AS cor0
----
34

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL - - col2 AS col0, 56 FROM tab2 AS cor0
----
23
56
40
56
58
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7772
SELECT DISTINCT - COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7772
SELECT DISTINCT - COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) col1 FROM tab1 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 * - + 71 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7774
SELECT ALL * FROM tab2 WHERE NOT + CAST( col1 AS SIGNED ) / - 52 * - col0 * - col0 * - 30 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7774
SELECT ALL * FROM tab2 WHERE NOT + CAST ( col1 AS INTEGER ) / - 52 * - col0 * - col0 * - 30 IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + 48 IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 55 + + ( - col1 ) col0 FROM tab1
----
41
50
8

query I rowsort
SELECT + ( - col0 ) * + col0 AS col2 FROM tab1 AS cor0
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-7778
SELECT + MIN( + 97 ) col1 FROM tab2 cor0
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7778
SELECT + MIN ( + 97 ) col1 FROM tab2 cor0
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7779
SELECT DISTINCT - COUNT( * ) DIV + MAX( DISTINCT 31 ) + - - COUNT( DISTINCT + - col0 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7779
SELECT DISTINCT - COUNT ( * ) / + MAX ( DISTINCT 31 ) + - - COUNT ( DISTINCT + - col0 ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7780
SELECT ALL CAST( + + col1 AS SIGNED ) FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-7780
SELECT ALL CAST ( + + col1 AS INTEGER ) FROM tab1 AS cor0
----
14
47
5

query II rowsort
SELECT ALL - 20 * 11, col0 AS col1 FROM tab0 AS cor0
----
-220
15
-220
87
-220
97

query I rowsort
SELECT col1 + - - 4 + 96 * + ( col2 ) + 80 AS col2 FROM tab0
----
1065
4677
9589

query II rowsort
SELECT 4 AS col1, - col1 FROM tab1
----
4
-14
4
-47
4
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7784
SELECT DISTINCT + - SUM( col0 ) FROM tab1 cor0
----
-227

skipif mysql # not compatible
query I rowsort label-7784
SELECT DISTINCT + - SUM ( col0 ) FROM tab1 cor0
----
-227

query I rowsort
SELECT DISTINCT - + ( - - 56 ) FROM tab0 AS cor0
----
-56

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7786
SELECT + + CAST( NULL AS DECIMAL ), + col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-7786
SELECT + + CAST ( NULL AS REAL ), + col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7787
SELECT DISTINCT + SUM( ALL - ( 38 ) ) FROM tab2 AS cor0
----
-114

skipif mysql # not compatible
query I rowsort label-7787
SELECT DISTINCT + SUM ( ALL - ( 38 ) ) FROM tab2 AS cor0
----
-114

query II rowsort
SELECT ALL - - col2, 48 * - col0 + + col2 FROM tab1 AS cor0 WHERE NOT NULL <> + ( - col1 )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col0 <> - 44
----

query III rowsort
SELECT DISTINCT + - 76, - col2 * + ( - - 72 ) AS col1, + + col2 * + col0 + + - col2 AS col1 FROM tab1 AS cor0
----
9 values hashing to 46101a8d3974f3576a600ad99eec3bef

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7791
SELECT ALL - AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7791
SELECT ALL - AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7792
SELECT - COUNT( ALL 66 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) > + 63 * 50
----
0

skipif mysql # not compatible
query I rowsort label-7792
SELECT - COUNT ( ALL 66 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) > + 63 * 50
----
0

query I rowsort
SELECT DISTINCT - + ( - + col2 ) * - col2 AS col2 FROM tab2 AS cor0
----
-1600
-3364
-529

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7794
SELECT - 80 + + - CAST( NULL AS SIGNED ) + - col0 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7794
SELECT - 80 + + - CAST ( NULL AS INTEGER ) + - col0 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab1 WHERE NOT col2 / + ( - 96 ) > ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 46 + + - col0 AS col0, 18 col1 FROM tab1
----
-131
18
-137
18
-97
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7797
SELECT - col0 * col2 * - CAST( NULL AS SIGNED ) + + col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7797
SELECT - col0 * col2 * - CAST ( NULL AS INTEGER ) + + col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7798
SELECT ALL col1 * 13 DIV col2 * + + col1 AS col1 FROM tab1
----
14
376
5

skipif mysql # not compatible
query I rowsort label-7798
SELECT ALL col1 * 13 / col2 * + + col1 AS col1 FROM tab1
----
14
376
5

query I rowsort
SELECT + 54 AS col0 FROM tab0 WHERE - 48 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7800
SELECT DISTINCT - + col1 + - CAST( NULL AS SIGNED ) FROM tab0 WHERE - CAST( NULL AS SIGNED ) * - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7800
SELECT DISTINCT - + col1 + - CAST ( NULL AS INTEGER ) FROM tab0 WHERE - CAST ( NULL AS INTEGER ) * - col1 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7801
SELECT ALL - col1 + + col0 col0, + 36 * - + CAST( NULL AS SIGNED ) col1 FROM tab1
----
37
NULL
44
NULL
80
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7801
SELECT ALL - col1 + + col0 col0, + 36 * - + CAST ( NULL AS INTEGER ) col1 FROM tab1
----
37
NULL
44
NULL
80
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7802
SELECT col2 * + col0 * - CAST( + 72 AS SIGNED ) + + + 30 * + - ( + col0 ) AS col1 FROM tab2 WHERE + ( + 21 ) * + col1 + + col0 + col0 + - - ( + col1 ) + + - 53 IS NOT NULL
----
-186240
-315450
-77556

skipif mysql # not compatible
query I rowsort label-7802
SELECT col2 * + col0 * - CAST ( + 72 AS INTEGER ) + + + 30 * + - ( + col0 ) AS col1 FROM tab2 WHERE + ( + 21 ) * + col1 + + col0 + col0 + - - ( + col1 ) + + - 53 IS NOT NULL
----
-186240
-315450
-77556

onlyif mysql # aggregate syntax: 
query I rowsort label-7803
SELECT + SUM( - + 87 ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-783

skipif mysql # not compatible
query I rowsort label-7803
SELECT + SUM ( - + 87 ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-783

query I rowsort
SELECT ALL - - col2 + 8 FROM tab2 AS cor0
----
31
48
66

query I rowsort
SELECT DISTINCT + + col2 + + ( - - col1 ) AS col2 FROM tab2 AS cor0
----
117
125
74

query I rowsort
SELECT DISTINCT 39 - + col2 FROM tab0 AS cor0
----
-60
-8
29

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - 54 < - 3 * + 66
----

query II rowsort
SELECT ALL - + 38 + + 97 + 56, - col1 AS col2 FROM tab0 AS cor0
----
115
-1
115
-21
115
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-7809
SELECT DISTINCT 47 DIV 15 + - col0 AS col1 FROM tab2 AS cor0
----
-43
-61
-72

skipif mysql # not compatible
query I rowsort label-7809
SELECT DISTINCT 47 / 15 + - col0 AS col1 FROM tab2 AS cor0
----
-43
-61
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-7810
SELECT DISTINCT + 2 - - COUNT( * ) AS col2 FROM tab0 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-7810
SELECT DISTINCT + 2 - - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 BETWEEN NULL AND col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7812
SELECT + COUNT( * ) AS col1, - COUNT( * ) FROM tab2 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-7812
SELECT + COUNT ( * ) AS col1, - COUNT ( * ) FROM tab2 AS cor0
----
3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7813
SELECT ALL SUM( DISTINCT - + col1 ) col2 FROM tab1
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7813
SELECT ALL SUM ( DISTINCT - + col1 ) col2 FROM tab1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-7814
SELECT DISTINCT COUNT( * ) * + + COUNT( * ) AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-7814
SELECT DISTINCT COUNT ( * ) * + + COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
9

query I rowsort
SELECT - 51 * - + col2 * 69 FROM tab2
----
140760
204102
80937

query III rowsort
SELECT col2, - col2 AS col1, - + ( + col0 ) * + + col0 + ( - 55 ) AS col0 FROM tab0 WHERE NOT - 11 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7817
SELECT ( COUNT( DISTINCT - - col2 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7817
SELECT ( COUNT ( DISTINCT - - col2 ) ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7818
SELECT ALL - CAST( NULL AS SIGNED ) + - col0 - + 69 FROM tab0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-7818
SELECT ALL - CAST ( NULL AS INTEGER ) + - col0 - + 69 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7819
SELECT DISTINCT - + MAX( + 28 ) AS col0, COUNT( * ) FROM tab2 AS cor0
----
-28
3

skipif mysql # not compatible
query II rowsort label-7819
SELECT DISTINCT - + MAX ( + 28 ) AS col0, COUNT ( * ) FROM tab2 AS cor0
----
-28
3

query I rowsort
SELECT DISTINCT + col1 * - ( - col0 ) AS col0 FROM tab0 AS cor0
----
1215
1827
97

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE - ( - 43 ) * 82 * col0 IS NOT NULL
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7822
SELECT + COUNT( * ) * - - 73 FROM tab2 cor0
----
219

skipif mysql # not compatible
query I rowsort label-7822
SELECT + COUNT ( * ) * - - 73 FROM tab2 cor0
----
219

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7823
SELECT col2 AS col1, + col0 * CAST( + col1 AS SIGNED ) FROM tab1 cor0
----
59
425
68
4277
96
714

skipif mysql # not compatible
query II rowsort label-7823
SELECT col2 AS col1, + col0 * CAST ( + col1 AS INTEGER ) FROM tab1 cor0
----
59
425
68
4277
96
714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7824
SELECT ALL + CAST( - + 93 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-93
-93
-93

skipif mysql # not compatible
query I rowsort label-7824
SELECT ALL + CAST ( - + 93 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-93
-93
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-7825
SELECT ALL MAX( + - ( - 11 ) ) AS col0 FROM tab1 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-7825
SELECT ALL MAX ( + - ( - 11 ) ) AS col0 FROM tab1 AS cor0
----
11

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7827
SELECT ALL + CAST( NULL AS SIGNED ), col1 AS col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-7827
SELECT ALL + CAST ( NULL AS INTEGER ), col1 AS col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 + - - 26 FROM tab1
----
31
40
73

query I rowsort
SELECT DISTINCT 75 + + col0 AS col0 FROM tab0
----
162
172
90

query I rowsort
SELECT ALL + col2 + + 60 FROM tab1
----
119
128
156

query I rowsort
SELECT - col1 + col2 - - col1 AS col2 FROM tab0
----
10
47
99

query I rowsort
SELECT - col2 * + 33 + 78 * - 83 * col0 FROM tab1
----
-333342
-552237
-591378

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7834
SELECT ALL - + col0 * + CAST( col2 AS SIGNED ) FROM tab0 cor0
----
-705
-870
-9603

skipif mysql # not compatible
query I rowsort label-7834
SELECT ALL - + col0 * + CAST ( col2 AS INTEGER ) FROM tab0 cor0
----
-705
-870
-9603

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7835
SELECT * FROM tab2 cor0 WHERE CAST( NULL AS SIGNED ) > + - 15
----

skipif mysql # not compatible
query III rowsort label-7835
SELECT * FROM tab2 cor0 WHERE CAST ( NULL AS INTEGER ) > + - 15
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7836
SELECT * FROM tab0 AS cor0 WHERE + col2 BETWEEN NULL AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7836
SELECT * FROM tab0 AS cor0 WHERE + col2 BETWEEN NULL AND - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL 50 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7838
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + + + col1 + + + col0 + + + col1 + 27 + 25 * 16 + - col2 + col0 AS col0 FROM tab1 WHERE col1 * - - 7 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7838
SELECT DISTINCT + CAST ( NULL AS REAL ) + + + col1 + + + col0 + + + col1 + 27 + 25 * 16 + - col2 + col0 AS col0 FROM tab1 WHERE col1 * - - 7 IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 95 * - + col2 col0 FROM tab0
----
-4465
-9405
-950

query I rowsort
SELECT ALL 49 + + + 29 * - - 13 FROM tab0 AS cor0
----
426
426
426

query I rowsort
SELECT 22 - + + col1 FROM tab2 AS cor0
----
-29
-45
-55

query II rowsort
SELECT ALL - col2 + + + col2 AS col1, col1 + - col1 FROM tab0 AS cor0
----
0
0
0
0
0
0

query I rowsort
SELECT - ( 45 ) * - - 35 - - col0 * + col0 FROM tab1 AS cor0
----
1026
5650
6706

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL >= - 36 * - 36 + - col2 * - col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7845
SELECT DISTINCT ( - 84 ) DIV - 35 + COUNT( * ) FROM tab0 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-7845
SELECT DISTINCT ( - 84 ) / - 35 + COUNT ( * ) FROM tab0 AS cor0
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7846
SELECT + - ( + CAST( - - col2 AS SIGNED ) ) * + col1 FROM tab1 AS cor0
----
-1344
-295
-3196

skipif mysql # not compatible
query I rowsort label-7846
SELECT + - ( + CAST ( - - col2 AS INTEGER ) ) * + col1 FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7847
SELECT DISTINCT * FROM tab0 WHERE - col2 = - - col0 * CAST( col0 AS SIGNED ) * col0 * - + ( - col1 )
----

skipif mysql # not compatible
query III rowsort label-7847
SELECT DISTINCT * FROM tab0 WHERE - col2 = - - col0 * CAST ( col0 AS INTEGER ) * col0 * - + ( - col1 )
----

query I rowsort
SELECT ALL - + col1 + + + col1 FROM tab0 WHERE NOT - 67 * + 89 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT + 51 AS col2, col2 + ( - + col0 ) + - col0 FROM tab2
----
51
-69
51
-88
51
-92

query I rowsort
SELECT - + 67 FROM tab1 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - 12 col2 FROM tab1
----
-168
-564
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-7852
SELECT + 58 DIV col0 AS col0 FROM tab0 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-7852
SELECT + 58 / col0 AS col0 FROM tab0 AS cor0
----
0
0
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7853
SELECT + COUNT( * ) AS col0 FROM tab1 WHERE NOT ( + col1 ) NOT IN ( + ( - col1 ) * col1 )
----
0

skipif mysql # not compatible
query I rowsort label-7853
SELECT + COUNT ( * ) AS col0 FROM tab1 WHERE NOT ( + col1 ) NOT IN ( + ( - col1 ) * col1 )
----
0

query III rowsort
SELECT * FROM tab0 WHERE NULL <> 10 + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7855
SELECT DISTINCT COUNT( * ) AS col0 FROM tab2 WHERE NULL = + 80
----
0

skipif mysql # not compatible
query I rowsort label-7855
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab2 WHERE NULL = + 80
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7856
SELECT ALL ( SUM( 74 ) ) FROM tab2 WHERE NOT ( - 87 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7856
SELECT ALL ( SUM ( 74 ) ) FROM tab2 WHERE NOT ( - 87 ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7857
SELECT DISTINCT COUNT( * ) * 87 FROM tab1
----
261

skipif mysql # not compatible
query I rowsort label-7857
SELECT DISTINCT COUNT ( * ) * 87 FROM tab1
----
261

onlyif mysql # aggregate syntax: 
query I rowsort label-7858
SELECT DISTINCT + COUNT( * ) + - MAX( DISTINCT col0 ) col0 FROM tab2
----
-72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7858
SELECT DISTINCT + COUNT ( * ) + - MAX ( DISTINCT col0 ) col0 FROM tab2
----
-72

query III rowsort
SELECT * FROM tab2 WHERE NULL = 76
----

query I rowsort
SELECT ALL + 34 + col2 AS col1 FROM tab2
----
57
74
92

query III rowsort
SELECT * FROM tab1 WHERE 34 * + 14 + 15 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7862
SELECT ALL COUNT( * ) * - 52 AS col1 FROM tab1
----
-156

skipif mysql # not compatible
query I rowsort label-7862
SELECT ALL COUNT ( * ) * - 52 AS col1 FROM tab1
----
-156

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 3 BETWEEN NULL AND ( + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - col1 ) NOT BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 + col1 IN ( 85 + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) BETWEEN NULL AND ( + col1 / - col1 + col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7867
SELECT DISTINCT - ( COUNT( * ) ) * + COUNT( * ) - - ( 6 ) AS col1 FROM tab2 WHERE NOT - col2 / + 98 <> CAST( col2 AS SIGNED ) + 14 * 8
----
6

skipif mysql # not compatible
query I rowsort label-7867
SELECT DISTINCT - ( COUNT ( * ) ) * + COUNT ( * ) - - ( 6 ) AS col1 FROM tab2 WHERE NOT - col2 / + 98 <> CAST ( col2 AS INTEGER ) + 14 * 8
----
6

query I rowsort
SELECT DISTINCT ( 96 ) AS col1 FROM tab1
----
96

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL >= ( + col2 + col0 )
----

query I rowsort
SELECT DISTINCT 66 - - 4 FROM tab1
----
70

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 * col2 NOT BETWEEN col2 AND + col1 / + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 * + 35 FROM tab0
----
-1645
-3465
-350

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE NULL IN ( 74 )
----

query I rowsort
SELECT + 45 * 39 AS col2 FROM tab2
----
1755
1755
1755

onlyif mysql # aggregate syntax: 
query I rowsort label-7875
SELECT DISTINCT + ( - 57 ) + COUNT( 15 ) * SUM( DISTINCT - 66 * col2 + - col0 ) col1 FROM tab1
----
-44892

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7875
SELECT DISTINCT + ( - 57 ) + COUNT ( 15 ) * SUM ( DISTINCT - 66 * col2 + - col0 ) col1 FROM tab1
----
-44892

query I rowsort
SELECT ALL - col0 AS col0 FROM tab1 WHERE - ( 90 ) <= 93 - 37 * col2
----

query I rowsort
SELECT 66 AS col0 FROM tab0 WHERE ( NULL ) < NULL
----

query I rowsort
SELECT + col1 + + col0 * col0 AS col2 FROM tab0 WHERE NOT - col1 >= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 7 <> - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7880
SELECT ALL * FROM tab2 WHERE NOT - 3 BETWEEN + CAST( - 71 AS SIGNED ) AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-7880
SELECT ALL * FROM tab2 WHERE NOT - 3 BETWEEN + CAST ( - 71 AS INTEGER ) AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7881
SELECT CAST( - 54 AS SIGNED ) col2 FROM tab1
----
-54
-54
-54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7881
SELECT CAST ( - 54 AS INTEGER ) col2 FROM tab1
----
-54
-54
-54

query I rowsort
SELECT DISTINCT col2 / col1 - 60 FROM tab2 WHERE NOT NULL NOT BETWEEN ( NULL ) AND col2
----

query I rowsort
SELECT ALL + 51 * + 82 FROM tab1
----
4182
4182
4182

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7884
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + col1 / col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7884
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + col1 / col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7885
SELECT + 93 - - ( 80 ) * - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-147

skipif mysql # not compatible
query I rowsort label-7885
SELECT + 93 - - ( 80 ) * - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-7886
SELECT - COUNT( * ) * 47 - - 64 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-7886
SELECT - COUNT ( * ) * 47 - - 64 FROM tab2 AS cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7887
SELECT + 39 - COUNT( DISTINCT 74 ) AS col2 FROM tab2 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-7887
SELECT + 39 - COUNT ( DISTINCT 74 ) AS col2 FROM tab2 AS cor0
----
38

query I rowsort
SELECT DISTINCT - col0 - - col1 AS col2 FROM tab0 AS cor0
----
-66
-96
66

query I rowsort
SELECT ALL - col1 + ( 51 ) * + col2 FROM tab1
----
3004
3421
4882

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 / - 0 < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7891
SELECT DISTINCT COUNT( - 24 ) * COUNT( * ) col2 FROM tab0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7891
SELECT DISTINCT COUNT ( - 24 ) * COUNT ( * ) col2 FROM tab0
----
9

query I rowsort
SELECT DISTINCT - - 69 + col1 * 8 AS col0 FROM tab1 AS cor0
----
109
181
445

onlyif mysql # aggregate syntax: 
query I rowsort label-7893
SELECT + + COUNT( * ) * - 16 FROM tab2 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-7893
SELECT + + COUNT ( * ) * - 16 FROM tab2 AS cor0
----
-48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 7 * - 6 col0 FROM tab0 AS cor0
----
42
42
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7895
SELECT - AVG ( - CAST( NULL AS SIGNED ) ) col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7895
SELECT - AVG ( - CAST ( NULL AS INTEGER ) ) col1 FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7896
SELECT + ( ( MIN( ALL + 8 ) ) ) AS col2 FROM tab1 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-7896
SELECT + ( ( MIN ( ALL + 8 ) ) ) AS col2 FROM tab1 AS cor0
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7897
SELECT - 12 * MIN( - CAST( NULL AS SIGNED ) * col0 ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7897
SELECT - 12 * MIN ( - CAST ( NULL AS INTEGER ) * col0 ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7898
SELECT ALL SUM( ALL + 88 ) FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN ( - col1 ) AND col0 / + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7898
SELECT ALL SUM ( ALL + 88 ) FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN ( - col1 ) AND col0 / + col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7899
SELECT DISTINCT + + 92 DIV 74 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7899
SELECT DISTINCT + + 92 / 74 FROM tab2 AS cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - 90 ) IN ( ( col0 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 FROM tab0 WHERE NOT ( - col2 * - col1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7902
SELECT DISTINCT + CAST( + ( 18 ) AS SIGNED ) AS col0 FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-7902
SELECT DISTINCT + CAST ( + ( 18 ) AS INTEGER ) AS col0 FROM tab0
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7903
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 56 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7903
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 56 AS col2 FROM tab2
----
NULL

query I rowsort
SELECT + 52 * - col1 FROM tab0 WHERE NOT col0 >= ( + col1 )
----
-4212

query I rowsort
SELECT DISTINCT 33 AS col0 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7906
SELECT DISTINCT 45 * - - COUNT( ALL + 55 ) AS col1 FROM tab1
----
135

skipif mysql # not compatible
query I rowsort label-7906
SELECT DISTINCT 45 * - - COUNT ( ALL + 55 ) AS col1 FROM tab1
----
135

query I rowsort
SELECT 95 AS col1 FROM tab0 WHERE NOT ( - col2 ) NOT IN ( col1 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( 31 + 44 ) NOT BETWEEN 18 AND + col1 + + col2
----
15
81
47
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7909
SELECT DISTINCT + - COUNT( * ) * - COUNT( * ) col2 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7909
SELECT DISTINCT + - COUNT ( * ) * - COUNT ( * ) col2 FROM tab1 AS cor0
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7910
SELECT ( + - COUNT( * ) ) DIV MAX( ALL + col2 ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7910
SELECT ( + - COUNT ( * ) ) / MAX ( ALL + col2 ) AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + ( - - 48 ) * + col1 AS col1 FROM tab2 AS cor0
----
2448
3216
3696

onlyif mysql # aggregate syntax: 
query I rowsort label-7912
SELECT DISTINCT COUNT( * ) + 29 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
38

skipif mysql # not compatible
query I rowsort label-7912
SELECT DISTINCT COUNT ( * ) + 29 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
38

query I rowsort
SELECT ALL ( + col1 ) AS col2 FROM tab2 WHERE ( - col1 ) <= - 41 + col0
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + 60 col0 FROM tab2
----
111
127
137

onlyif mysql # DIV for integer division: 
query I rowsort label-7915
SELECT ALL - ( - col2 ) DIV col1 * - col2 FROM tab0
----
-9801
0
0

skipif mysql # not compatible
query I rowsort label-7915
SELECT ALL - ( - col2 ) / col1 * - col2 FROM tab0
----
-9801
0
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 NOT BETWEEN ( + ( col1 ) ) AND + col1
----

query I rowsort
SELECT DISTINCT + col0 + 93 AS col0 FROM tab1 AS cor0
----
144
178
184

onlyif mysql # aggregate syntax: 
query II rowsort label-7918
SELECT - 12 AS col1, + COUNT( * ) FROM tab2 AS cor0
----
-12
3

skipif mysql # not compatible
query II rowsort label-7918
SELECT - 12 AS col1, + COUNT ( * ) FROM tab2 AS cor0
----
-12
3

query I rowsort
SELECT 40 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
40
40
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7920
SELECT - MIN( ALL + - col1 ) AS col1 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-7920
SELECT - MIN ( ALL + - col1 ) AS col1 FROM tab1 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7921
SELECT SUM( + 74 ) AS col1 FROM tab0 AS cor0
----
222

skipif mysql # not compatible
query I rowsort label-7921
SELECT SUM ( + 74 ) AS col1 FROM tab0 AS cor0
----
222

query I rowsort
SELECT ALL 75 + - col0 * 98 AS col1 FROM tab2 AS cor0
----
-4433
-6197
-7275

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE NOT - col2 * - - col1 + - col0 IS NOT NULL
----

query I rowsort
SELECT col0 AS col0 FROM tab2 WHERE + col2 <= + + col2
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 71 + + - col0 * col2 * - ( + col1 ) col0 FROM tab1
----
25146
290907
68615

query III rowsort
SELECT * FROM tab0 WHERE ( - 27 ) >= ( - col2 )
----
15
81
47
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7927
SELECT 84 AS col0 FROM tab2 WHERE ( NULL ) NOT BETWEEN - col0 AND + - CAST( 93 AS SIGNED ) * - 35
----

skipif mysql # not compatible
query I rowsort label-7927
SELECT 84 AS col0 FROM tab2 WHERE ( NULL ) NOT BETWEEN - col0 AND + - CAST ( 93 AS INTEGER ) * - 35
----

query II rowsort
SELECT ALL col0 + col0, + col1 AS col0 FROM tab0
----
174
21
194
1
30
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 + 84 col2, + col2 * col0 FROM tab0
----
105
870
165
705
85
9603

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 82 IS NULL
----

query I rowsort
SELECT + - 81 FROM tab0 cor0 WHERE ( col0 ) <> + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7932
SELECT ALL SUM( - - col2 ) - 0 AS col1 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-7932
SELECT ALL SUM ( - - col2 ) - 0 AS col1 FROM tab1
----
223

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7933
SELECT * FROM tab1 WHERE + col1 <= CAST( - + col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7933
SELECT * FROM tab1 WHERE + col1 <= CAST ( - + col1 AS INTEGER )
----

query II rowsort
SELECT ( - col0 ) - + 18 AS col0, col0 + - col2 AS col0 FROM tab0
----
-105
77
-115
-2
-33
-32

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col0 ) + + col2 IS NOT NULL
----

query I rowsort
SELECT ALL + + 2 * + col0 FROM tab2 AS cor0
----
128
150
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7937
SELECT DISTINCT + COUNT( - - ( col0 ) ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7937
SELECT DISTINCT + COUNT ( - - ( col0 ) ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7938
SELECT DISTINCT MIN( ALL - col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT - 19 + - - col0 NOT BETWEEN + col0 / - CAST( NULL AS SIGNED ) AND - col2 + + col0 * 11
----
NULL

skipif mysql # not compatible
query I rowsort label-7938
SELECT DISTINCT MIN ( ALL - col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT - 19 + - - col0 NOT BETWEEN + col0 / - CAST ( NULL AS INTEGER ) AND - col2 + + col0 * 11
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7939
SELECT DISTINCT - MAX( 30 ) FROM tab1 cor0
----
-30

skipif mysql # not compatible
query I rowsort label-7939
SELECT DISTINCT - MAX ( 30 ) FROM tab1 cor0
----
-30

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7940
SELECT DISTINCT - col1 + col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN CAST( NULL AS DECIMAL ) AND + + 72 * - 47
----

skipif mysql # not compatible
query I rowsort label-7940
SELECT DISTINCT - col1 + col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN CAST ( NULL AS REAL ) AND + + 72 * - 47
----

query I rowsort
SELECT - col1 AS col1 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + col0 AS col0 FROM tab2 AS cor0 WHERE + col0 <= NULL
----

query I rowsort
SELECT DISTINCT + 82 AS col0 FROM tab2 cor0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7944
SELECT ALL - MAX( + + 2 ) AS col1 FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-7944
SELECT ALL - MAX ( + + 2 ) AS col1 FROM tab1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7945
SELECT - COUNT( * ) FROM tab1 WHERE NOT - + col0 + + col1 = col0
----
-3

skipif mysql # not compatible
query I rowsort label-7945
SELECT - COUNT ( * ) FROM tab1 WHERE NOT - + col0 + + col1 = col0
----
-3

query I rowsort
SELECT DISTINCT 42 * + + 77 AS col2 FROM tab1
----
3234

query I rowsort
SELECT col1 * - 20 AS col0 FROM tab0
----
-1620
-20
-420

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7948
SELECT ALL col0 * CAST( NULL AS DECIMAL ), col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-7948
SELECT ALL col0 * CAST ( NULL AS REAL ), col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

query I rowsort
SELECT ALL + col2 * - - 58 FROM tab2
----
1334
2320
3364

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7950
SELECT DISTINCT + 76 * - - 11 / - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7950
SELECT DISTINCT + 76 * - - 11 / - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7951
SELECT DISTINCT 54 DIV - - COUNT( * ) AS col1, - SUM( + col0 ) FROM tab2
----
18
-185

skipif mysql # not compatible
query II rowsort label-7951
SELECT DISTINCT 54 / - - COUNT ( * ) AS col1, - SUM ( + col0 ) FROM tab2
----
18
-185

query I rowsort
SELECT 37 * - col2 AS col1 FROM tab0
----
-1739
-3663
-370

query II rowsort
SELECT ALL col2 AS col2, 93 FROM tab1
----
59
93
68
93
96
93

query I rowsort
SELECT DISTINCT + col2 * + col1 * + col2 - - - col0 FROM tab1 AS cor0
----
128973
17320
217237

query I rowsort
SELECT DISTINCT + + ( 50 ) AS col2 FROM tab0 AS cor0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-7956
SELECT ALL SUM( ALL + ( 56 ) ) FROM tab2 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-7956
SELECT ALL SUM ( ALL + ( 56 ) ) FROM tab2 AS cor0
----
168

query I rowsort
SELECT ALL - + 74 * - + 38 - 53 + + col1 + + col1 * 31 FROM tab0 AS cor0
----
2791
3431
5351

onlyif mysql # DIV for integer division: 
query I rowsort label-7958
SELECT + 3 DIV + + col2 AS col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7958
SELECT + 3 / + + col2 AS col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT + col2 AS col1 FROM tab1 WHERE NOT - ( + + col2 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col1 * - ( - col2 ) AS col1 FROM tab2
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-7961
SELECT DISTINCT 73 * - COUNT( 43 ) FROM tab1
----
-219

skipif mysql # not compatible
query I rowsort label-7961
SELECT DISTINCT 73 * - COUNT ( 43 ) FROM tab1
----
-219

query I rowsort
SELECT ALL + col0 * ( + col1 ) + - 57 FROM tab0
----
1158
1770
40

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7963
SELECT * FROM tab1 WHERE - CAST( NULL AS DECIMAL ) + col1 - - 89 > col1
----

skipif mysql # not compatible
query III rowsort label-7963
SELECT * FROM tab1 WHERE - CAST ( NULL AS REAL ) + col1 - - 89 > col1
----

query I rowsort
SELECT ALL + - col2 * - col2 + - + col1 + + col1 AS col0 FROM tab2 AS cor0
----
1600
3364
529

onlyif mysql # aggregate syntax: 
query II rowsort label-7965
SELECT ALL - - SUM( DISTINCT + col2 ) col1, 8 AS col2 FROM tab1 cor0
----
223
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7965
SELECT ALL - - SUM ( DISTINCT + col2 ) col1, 8 AS col2 FROM tab1 cor0
----
223
8

query I rowsort
SELECT DISTINCT + + ( 50 ) AS col1 FROM tab0 AS cor0
----
50

query I rowsort
SELECT 25 + - + 49 AS col1 FROM tab1 AS cor0
----
-24
-24
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7968
SELECT DISTINCT + COUNT( * ) - - + 15 AS col1 FROM tab2 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-7968
SELECT DISTINCT + COUNT ( * ) - - + 15 AS col1 FROM tab2 AS cor0
----
18

query I rowsort
SELECT DISTINCT + + col0 * col1 * + col1 + 58 AS col0 FROM tab1 AS cor0
----
10054
201077
2183

query I rowsort
SELECT ALL col1 * - + 32 FROM tab2 AS cor0
----
-1632
-2144
-2464

query I rowsort
SELECT - - col2 * 10 + col0 FROM tab0 AS cor0
----
1087
187
485

onlyif mysql # DIV for integer division: 
query I rowsort label-7972
SELECT col2 + 95 DIV 2 * + col0 AS col0 FROM tab0
----
4099
4658
752

skipif mysql # not compatible
query I rowsort label-7972
SELECT col2 + 95 / 2 * + col0 AS col0 FROM tab0
----
4099
4658
752

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7973
SELECT ALL + CAST( NULL AS SIGNED ) * + + COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7973
SELECT ALL + CAST ( NULL AS INTEGER ) * + + COUNT ( * ) FROM tab0
----
NULL

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE - col1 > col1
----

query III rowsort
SELECT * FROM tab1 WHERE + + 65 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + col1 - - ( - col0 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7977
SELECT ALL + COUNT( col2 ) AS col2 FROM tab0 WHERE ( - col0 ) IN ( + - ( 73 ) + + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-7977
SELECT ALL + COUNT ( col2 ) AS col2 FROM tab0 WHERE ( - col0 ) IN ( + - ( 73 ) + + col1 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7978
SELECT - COUNT( * ) AS col1, MAX( col0 ) FROM tab1 AS cor0
----
-3
91

skipif mysql # not compatible
query II rowsort label-7978
SELECT - COUNT ( * ) AS col1, MAX ( col0 ) FROM tab1 AS cor0
----
-3
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7979
SELECT + col1 - - + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7979
SELECT + col1 - - + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 98 * - 99 - + col0 * + col0 col2 FROM tab0 AS cor0
----
-17271
-19111
-9927

onlyif mysql # aggregate syntax: 
query I rowsort label-7981
SELECT SUM( ALL + 13 ) FROM tab0
----
39

skipif mysql # not compatible
query I rowsort label-7981
SELECT SUM ( ALL + 13 ) FROM tab0
----
39

query I rowsort
SELECT DISTINCT - 97 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-97

query I rowsort
SELECT - 7 AS col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col1 AND - - col2 OR 18 >= - - col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-7984
SELECT COUNT( * ) * + MAX( DISTINCT col0 ) AS col0 FROM tab2 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-7984
SELECT COUNT ( * ) * + MAX ( DISTINCT col0 ) AS col0 FROM tab2 AS cor0
----
225

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + col0 > - col1 * + + col1 + + 11
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) > + 6
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 32 col2 FROM tab1 AS cor0
----
32
32
32

query I rowsort
SELECT ALL + ( - 11 ) FROM tab0 AS cor0
----
-11
-11
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7989
SELECT ALL + + col0 FROM tab1 AS cor0 WHERE NOT + CAST( + - col2 AS SIGNED ) = NULL
----

skipif mysql # not compatible
query I rowsort label-7989
SELECT ALL + + col0 FROM tab1 AS cor0 WHERE NOT + CAST ( + - col2 AS INTEGER ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7990
SELECT ALL SUM( + 67 ) FROM tab0
----
201

skipif mysql # not compatible
query I rowsort label-7990
SELECT ALL SUM ( + 67 ) FROM tab0
----
201

query II rowsort
SELECT ALL + col0, + 67 FROM tab0
----
15
67
87
67
97
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7992
SELECT DISTINCT - col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7992
SELECT DISTINCT - col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT 74 BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT 73 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col0 FROM tab0 WHERE NOT - 1 IS NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7996
SELECT - MIN( + - col2 ) AS col1 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-7996
SELECT - MIN ( + - col2 ) AS col1 FROM tab2
----
58

query I rowsort
SELECT DISTINCT + - 93 * - - ( + col1 ) + - - 33 FROM tab2 AS cor0
----
-4710
-6198
-7128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7998
SELECT ALL - CAST( NULL AS SIGNED ) + + COUNT( * ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7998
SELECT ALL - CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col0 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7999
SELECT DISTINCT CAST( col1 AS SIGNED ) FROM tab2 WHERE NOT - 19 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7999
SELECT DISTINCT CAST ( col1 AS INTEGER ) FROM tab2 WHERE NOT - 19 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8000
SELECT DISTINCT - SUM( 41 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-369

skipif mysql # not compatible
query I rowsort label-8000
SELECT DISTINCT - SUM ( 41 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-369

onlyif mysql # DIV for integer division: 
query I rowsort label-8001
SELECT DISTINCT col0 * col1 * + 77 + ( 92 ) + 56 * - col1 * + col0 * col0 DIV + + ( col0 ) + 13 * 21 FROM tab0
----
2402
25880
38732

skipif mysql # not compatible
query I rowsort label-8001
SELECT DISTINCT col0 * col1 * + 77 + ( 92 ) + 56 * - col1 * + col0 * col0 / + + ( col0 ) + 13 * 21 FROM tab0
----
2402
25880
38732

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col1 col0, - col2 FROM tab2 AS cor0
----
-51
-23
-67
-58
-77
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8003
SELECT - - 8 * + 71 * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-1704

skipif mysql # not compatible
query I rowsort label-8003
SELECT - - 8 * + 71 * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-1704

query I rowsort
SELECT ALL + col0 + + 92 - + 18 FROM tab2 AS cor0
----
120
138
149

onlyif mysql # aggregate syntax: 
query I rowsort label-8005
SELECT - - COUNT( DISTINCT ( - col2 ) ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8005
SELECT - - COUNT ( DISTINCT ( - col2 ) ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8006
SELECT DISTINCT col1 + - 28 DIV - + col1 FROM tab0 AS cor0
----
22
29
81

skipif mysql # not compatible
query I rowsort label-8006
SELECT DISTINCT col1 + - 28 / - + col1 FROM tab0 AS cor0
----
22
29
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8007
SELECT DISTINCT 41 AS col1, - COUNT( * ) * SUM( col1 ) DIV + 55 FROM tab1 AS cor0
----
41
-3

skipif mysql # not compatible
query II rowsort label-8007
SELECT DISTINCT 41 AS col1, - COUNT ( * ) * SUM ( col1 ) / + 55 FROM tab1 AS cor0
----
41
-3

query I rowsort
SELECT ALL + col2 * col0 + + col0 * - - 37 FROM tab1 AS cor0
----
6783
8160
9555

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 * + col0 <> NULL
----

query II rowsort
SELECT - + col0, + col2 - + 18 AS col2 FROM tab0 AS cor0
----
-15
29
-87
-8
-97
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8011
SELECT ALL + + ( - 65 ) * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-8011
SELECT ALL + + ( - 65 ) * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-195

query I rowsort
SELECT ALL - col0 * 74 AS col2 FROM tab2 WHERE NOT ( NOT col0 <= + col1 )
----
-3404
-4736

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - 53 ) IS NOT NULL
----

query I rowsort
SELECT ALL + 45 * - col0 + + - 54 FROM tab2
----
-2124
-2934
-3429

query I rowsort
SELECT 47 * col1 + + - col2 FROM tab2
----
2374
3091
3579

onlyif mysql # aggregate syntax: 
query I rowsort label-8016
SELECT ALL 56 + + 55 * + MIN( DISTINCT - - ( + + 28 ) ) FROM tab2
----
1596

skipif mysql # not compatible
query I rowsort label-8016
SELECT ALL 56 + + 55 * + MIN ( DISTINCT - - ( + + 28 ) ) FROM tab2
----
1596

query I rowsort
SELECT + ( + col1 ) + + + col2 FROM tab2
----
117
125
74

query I rowsort
SELECT DISTINCT - + col1 - + col1 AS col0 FROM tab0 AS cor0
----
-162
-2
-42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8019
SELECT ALL + col0, - col1 col1 FROM tab0 WHERE NOT col2 * col2 - - - CAST( col1 AS SIGNED ) + + 8 IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8019
SELECT ALL + col0, - col1 col1 FROM tab0 WHERE NOT col2 * col2 - - - CAST ( col1 AS INTEGER ) + + 8 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8020
SELECT DISTINCT + ( MAX( + 22 ) ) FROM tab0
----
22

skipif mysql # not compatible
query I rowsort label-8020
SELECT DISTINCT + ( MAX ( + 22 ) ) FROM tab0
----
22

query II rowsort
SELECT ALL - col2 AS col2, + col0 * col1 AS col0 FROM tab2
----
-23
2346
-40
4928
-58
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-8022
SELECT ALL 28 * + COUNT( * ) FROM tab1 cor0
----
84

skipif mysql # not compatible
query I rowsort label-8022
SELECT ALL 28 * + COUNT ( * ) FROM tab1 cor0
----
84

query I rowsort
SELECT DISTINCT - + 33 AS col1 FROM tab0 AS cor0
----
-33

query I rowsort
SELECT ALL + 95 * col0 AS col0 FROM tab2 AS cor0 WHERE ( + col1 - col1 + + - 48 * + - 4 * 32 / - col0 / - col0 + - col2 IN ( + col1 * col0 ) )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 * ( + col1 ) NOT BETWEEN + col2 AND - - 72
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8026
SELECT DISTINCT - + COUNT( + col1 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8026
SELECT DISTINCT - + COUNT ( + col1 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ( - 55 ) FROM tab2 AS cor0 WHERE NOT col0 <> - ( - 67 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL >= 17
----

query I rowsort
SELECT + ( + + col0 ) FROM tab2 cor0
----
46
64
75

query I rowsort
SELECT col2 - + + 96 FROM tab1 WHERE NOT col2 + - 87 + + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8031
SELECT SUM( + + col0 ) AS col2 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-8031
SELECT SUM ( + + col0 ) AS col2 FROM tab1
----
227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 88 + 90 + + - col1 col0 FROM tab0
----
157
177
97

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 * + col2 IS NOT NULL
----

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE + ( + - col0 ) IS NOT NULL
----
51
67
77

query I rowsort
SELECT 5 * + - 55 + + + 63 AS col1 FROM tab1
----
-212
-212
-212

onlyif mysql # DIV for integer division: 
query I rowsort label-8036
SELECT 95 + - col2 + + col2 DIV + col1 * + col2 + - col1 AS col0 FROM tab2
----
-22
-30
21

skipif mysql # not compatible
query I rowsort label-8036
SELECT 95 + - col2 + + col2 / + col1 * + col2 + - col1 AS col0 FROM tab2
----
-22
-30
21

query I rowsort
SELECT - col1 + - + col2 - + ( col0 ) FROM tab0
----
-118
-143
-197

onlyif mysql # aggregate syntax: 
query I rowsort label-8038
SELECT + COUNT( - col0 ) col2 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8038
SELECT + COUNT ( - col0 ) col2 FROM tab0
----
3

query I rowsort
SELECT ALL + col0 * + col2 AS col2 FROM tab1 WHERE + col2 IS NOT NULL
----
4896
5015
6188

query II rowsort
SELECT ALL - ( col1 ) * col2 + - 80 AS col0, - col2 * col0 FROM tab1
----
-1424
-4896
-3276
-6188
-375
-5015

query I rowsort
SELECT ALL - ( + 73 ) FROM tab0
----
-73
-73
-73

query I rowsort
SELECT + - col2 FROM tab2 AS cor0 WHERE NULL <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8043
SELECT ALL - - 9 + - COUNT( * ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8043
SELECT ALL - - 9 + - COUNT ( * ) FROM tab2 AS cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8044
SELECT + + col0 / - CAST( NULL AS SIGNED ), col2 * + + col2 AS col0 FROM tab2 AS cor0
----
NULL
1600
NULL
3364
NULL
529

skipif mysql # not compatible
query II rowsort label-8044
SELECT + + col0 / - CAST ( NULL AS INTEGER ), col2 * + + col2 AS col0 FROM tab2 AS cor0
----
NULL
1600
NULL
3364
NULL
529

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8045
SELECT DISTINCT col2 * col2 + CAST( NULL AS SIGNED ) * - + col1 * - 30 * - 69 + - col0 + + 4 + + + 28 * col2, col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-8045
SELECT DISTINCT col2 * col2 + CAST ( NULL AS INTEGER ) * - + col1 * - 30 * - 69 + - col0 + + 4 + + + 28 * col2, col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL <= ( NULL )
----

query I rowsort
SELECT + 83 AS col1 FROM tab0 AS cor0 WHERE ( col1 ) + col2 - + col0 * col2 IN ( - 41 / 67 + col0 )
----

query I rowsort
SELECT ALL - col1 FROM tab0 AS cor0 WHERE ( 34 * - + col2 ) = col2 * - 85 + col2
----

query I rowsort
SELECT DISTINCT - 57 - col0 + col1 - col0 FROM tab0 cor0
----
-210
-250
-6

query I rowsort
SELECT ALL + + col1 + + 46 - - - 54 + + col0 * ( - + 10 ) * - + ( - col1 ) FROM tab0 AS cor0
----
-12077
-18257
-977

query I rowsort
SELECT - col1 + + + col2 * + col0 * 4 FROM tab1 AS cor0
----
19570
20055
24705

query I rowsort
SELECT col0 * - 27 AS col0 FROM tab0 AS cor0
----
-2349
-2619
-405

query I rowsort
SELECT DISTINCT - + col1 * + 98 - + + col2 FROM tab1 AS cor0
----
-1468
-4674
-549

query I rowsort
SELECT + 50 AS col2 FROM tab2 WHERE - col2 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8055
SELECT + 0 * CAST( NULL AS DECIMAL ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8055
SELECT + 0 * CAST ( NULL AS REAL ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8056
SELECT + COUNT( * ) DIV + + CAST( - - COUNT( * ) AS SIGNED ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-8056
SELECT + COUNT ( * ) / + + CAST ( - - COUNT ( * ) AS INTEGER ) AS col0 FROM tab0
----
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 10 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 <> + - 88
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8059
SELECT DISTINCT + + 18 DIV - col0 * 38 + + - col2 AS col0 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-8059
SELECT DISTINCT + + 18 / - col0 * 38 + + - col2 AS col0 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT + col0 * - + col1 * + ( + col2 ) AS col2 FROM tab1 AS cor0
----
-25075
-290836
-68544

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8061
SELECT DISTINCT - + CAST( NULL AS DECIMAL ) * - ( col2 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8061
SELECT DISTINCT - + CAST ( NULL AS REAL ) * - ( col2 ) FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8062
SELECT ALL - 13 DIV col0 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8062
SELECT ALL - 13 / col0 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8063
SELECT - col0 DIV ( + + 93 ) * - col2 FROM tab0 AS cor0
----
0
0
99

skipif mysql # not compatible
query I rowsort label-8063
SELECT - col0 / ( + + 93 ) * - col2 FROM tab0 AS cor0
----
0
0
99

query I rowsort
SELECT - - 8 * - 16 AS col2 FROM tab2 AS cor0
----
-128
-128
-128

onlyif mysql # aggregate syntax: 
query I rowsort label-8065
SELECT + 33 + + + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
33

skipif mysql # not compatible
query I rowsort label-8065
SELECT + 33 + + + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-8066
SELECT col2 * - 29 + + - 53 + col2 DIV - col1 AS col0 FROM tab1 AS cor0
----
-1775
-2026
-2843

skipif mysql # not compatible
query I rowsort label-8066
SELECT col2 * - 29 + + - 53 + col2 / - col1 AS col0 FROM tab1 AS cor0
----
-1775
-2026
-2843

onlyif mysql # aggregate syntax: 
query I rowsort label-8067
SELECT - ( + - AVG ( + 59 ) ) - + 9 + + - COUNT( * ) FROM tab2 cor0 WHERE NOT col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8067
SELECT - ( + - AVG ( + 59 ) ) - + 9 + + - COUNT ( * ) FROM tab2 cor0 WHERE NOT col1 IS NOT NULL
----
NULL

query II rowsort
SELECT DISTINCT + 75 AS col0, + col1 * - col0 FROM tab2
----
75
-2346
75
-4928
75
-5025

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8069
SELECT ALL * FROM tab0 WHERE ( - CAST( - + col1 AS SIGNED ) ) + 62 <> - col0 + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8069
SELECT ALL * FROM tab0 WHERE ( - CAST ( - + col1 AS INTEGER ) ) + 62 <> - col0 + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col2 + 5 AS col1 FROM tab1
----
-54
-63
-91

query III rowsort
SELECT * FROM tab2 WHERE 57 * col0 * + ( + 77 ) - + 80 <> - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 + 69 + col2 + - col2 * - col1 AS col0 FROM tab1 AS cor0
----
1605
3401
482

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col0 col0 FROM tab2 cor0
----
128
150
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8074
SELECT - 41 + + 71 * + col2 + - col1 + + col0 * 67 * - CAST( NULL AS SIGNED ) + - ( + - col1 ) / - col1 + 8 * + col2 * col1 / + 43 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8074
SELECT - 41 + + 71 * + col2 + - col1 + + col0 * 67 * - CAST ( NULL AS INTEGER ) + - ( + - col1 ) / - col1 + 8 * + col2 * col1 / + 43 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8075
SELECT - COUNT( + + col1 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8075
SELECT - COUNT ( + + col1 ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8076
SELECT SUM( - + 53 ) FROM tab0 WHERE + col2 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8076
SELECT SUM ( - + 53 ) FROM tab0 WHERE + col2 >= NULL
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - ( - col0 ) <> - - ( - col1 ) * - + col2 + - + col2 * - + col0 * + 30 * + 14
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8078
SELECT + + col2 DIV 47 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-8078
SELECT + + col2 / 47 FROM tab0 AS cor0
----
0
1
2

query I rowsort
SELECT - col0 - + + col0 FROM tab0 AS cor0
----
-174
-194
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-8080
SELECT - + 35 - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-8080
SELECT - + 35 - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-38

query I rowsort
SELECT ALL col0 + + + col2 AS col2 FROM tab0 AS cor0
----
196
62
97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <> - 83 + 32 / + - col0
----

query II rowsort
SELECT DISTINCT - 89, + col1 FROM tab1
----
-89
14
-89
47
-89
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 75 * + - col2 * col0 + - 43 col0 FROM tab0
----
52832
65207
720182

query I rowsort
SELECT ALL ( - 58 ) * + 65 - + + col1 AS col0 FROM tab1
----
-3775
-3784
-3817

onlyif mysql # aggregate syntax: 
query I rowsort label-8086
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab1 WHERE + - col0 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-8086
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab1 WHERE + - col0 >= NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8087
SELECT DISTINCT CAST( - + 14 AS SIGNED ) FROM tab0
----
-14

skipif mysql # not compatible
query I rowsort label-8087
SELECT DISTINCT CAST ( - + 14 AS INTEGER ) FROM tab0
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-8088
SELECT - col2 DIV 47 AS col0 FROM tab1
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-8088
SELECT - col2 / 47 AS col0 FROM tab1
----
-1
-1
-2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-8089
SELECT ALL + COUNT( * ) + 34 DIV + + 43 AS col2 FROM tab0 WHERE NOT + col0 <> + ( - CAST( + - col2 AS DECIMAL ) )
----
0

skipif mysql # not compatible
query I rowsort label-8089
SELECT ALL + COUNT ( * ) + 34 / + + 43 AS col2 FROM tab0 WHERE NOT + col0 <> + ( - CAST ( + - col2 AS REAL ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8090
SELECT COUNT( * ) * - + 88 FROM tab2
----
-264

skipif mysql # not compatible
query I rowsort label-8090
SELECT COUNT ( * ) * - + 88 FROM tab2
----
-264

onlyif mysql # aggregate syntax: 
query I rowsort label-8091
SELECT 89 * + 62 * - COUNT( - - col2 ) * + COUNT( * ) - - + COUNT( * ) AS col2 FROM tab0
----
-49659

skipif mysql # not compatible
query I rowsort label-8091
SELECT 89 * + 62 * - COUNT ( - - col2 ) * + COUNT ( * ) - - + COUNT ( * ) AS col2 FROM tab0
----
-49659

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8092
SELECT ALL ( 80 ) * - - CAST( NULL AS SIGNED ) / + col0 * + 27 + - 82 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8092
SELECT ALL ( 80 ) * - - CAST ( NULL AS INTEGER ) / + col0 * + 27 + - 82 AS col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 / - 87 + col0 * + - col2 NOT IN ( + col2 * 71 + - col1 + - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8094
SELECT col2 * + CAST( - 70 AS SIGNED ) * - 85 + + col1 + - 94 FROM tab0
----
279637
588957
59427

skipif mysql # not compatible
query I rowsort label-8094
SELECT col2 * + CAST ( - 70 AS INTEGER ) * - 85 + + col1 + - 94 FROM tab0
----
279637
588957
59427

onlyif mysql # aggregate syntax: 
query I rowsort label-8095
SELECT + 21 + + + 52 - + COUNT( * ) + - 52 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
18

skipif mysql # not compatible
query I rowsort label-8095
SELECT + 21 + + + 52 - + COUNT ( * ) + - 52 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
18

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 NOT BETWEEN - - col0 AND NULL
----
75
67
58

query I rowsort
SELECT ALL - + 46 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8098
SELECT + COUNT( * ) FROM tab1 WHERE NOT + + col2 * + - 65 * + CAST( NULL AS SIGNED ) <= + CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-8098
SELECT + COUNT ( * ) FROM tab1 WHERE NOT + + col2 * + - 65 * + CAST ( NULL AS INTEGER ) <= + CAST ( NULL AS INTEGER )
----
0

query I rowsort
SELECT 21 AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT - - 79 * + col1 + + + col0 + + 17 * + col1 + - col2 AS col1, col1 AS col0 FROM tab2 AS cor0
----
4919
51
6449
67
7416
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8102
SELECT ALL SUM( 41 ) AS col2 FROM tab2 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-8102
SELECT ALL SUM ( 41 ) AS col2 FROM tab2 AS cor0
----
123

query I rowsort
SELECT ALL + col2 * ( + - ( + col2 ) ) AS col1 FROM tab0
----
-100
-2209
-9801

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 23 * - 86 col0, + ( col0 ) col1 FROM tab2
----
-1978
46
-1978
64
-1978
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8105
SELECT + COUNT( * ) + + 15 * + SUM( - + 28 ) * + COUNT( * ) FROM tab1
----
-3777

skipif mysql # not compatible
query I rowsort label-8105
SELECT + COUNT ( * ) + + 15 * + SUM ( - + 28 ) * + COUNT ( * ) FROM tab1
----
-3777

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8106
SELECT DISTINCT ( - CAST( NULL AS SIGNED ) ) AS col0, - ( + COUNT( * ) ) DIV + + MAX( - col2 ) - 59 FROM tab2
----
NULL
-59

skipif mysql # not compatible
query II rowsort label-8106
SELECT DISTINCT ( - CAST ( NULL AS INTEGER ) ) AS col0, - ( + COUNT ( * ) ) / + + MAX ( - col2 ) - 59 FROM tab2
----
NULL
-59

query I rowsort
SELECT ALL col2 + - 43 + ( 74 ) FROM tab1
----
127
90
99

query III rowsort
SELECT * FROM tab1 WHERE + 41 <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8109
SELECT ALL - 21 + + - COUNT( * ) FROM tab0
----
-24

skipif mysql # not compatible
query I rowsort label-8109
SELECT ALL - 21 + + - COUNT ( * ) FROM tab0
----
-24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 81 col1 FROM tab0 WHERE - 24 IS NOT NULL
----
-81
-81
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8111
SELECT ALL col1 + + CAST( + ( + col0 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
138
65
90

skipif mysql # not compatible
query I rowsort label-8111
SELECT ALL col1 + + CAST ( + ( + col0 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT + - col0 - - - col1 FROM tab0 AS cor0
----
-108
-96
-98

query I rowsort
SELECT ALL + col0 + - 78 AS col2 FROM tab1 AS cor0
----
-27
13
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 23 col0 FROM tab2 AS cor0 WHERE ( col1 * col2 / - 46 + + col2 ) IS NULL
----

query I rowsort
SELECT + 89 + + col1 AS col2 FROM tab2 cor0
----
140
156
166

query II rowsort
SELECT + + 41 AS col2, col1 AS col2 FROM tab2 AS cor0
----
41
51
41
67
41
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8117
SELECT - COUNT( DISTINCT - - 9 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8117
SELECT - COUNT ( DISTINCT - - 9 ) FROM tab0 AS cor0
----
-1

query I rowsort
SELECT ALL - col2 * - 49 - col1 FROM tab1 AS cor0
----
2886
3285
4690

onlyif mysql # aggregate syntax: 
query II rowsort label-8119
SELECT ALL + - COUNT( * ), + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-8119
SELECT ALL + - COUNT ( * ), + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8120
SELECT DISTINCT + + ( + + SUM( - col2 ) ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-8120
SELECT DISTINCT + + ( + + SUM ( - col2 ) ) FROM tab0 AS cor0
----
-156

query I rowsort
SELECT ALL + + col0 AS col0 FROM tab0 WHERE NOT - 2 * + 70 + + - 1 <= - + 10
----

query I rowsort
SELECT ALL - col0 AS col0 FROM tab0 WHERE NOT ( NULL IS NOT NULL )
----
-15
-87
-97

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col2 - + 42 NOT BETWEEN ( - 91 ) AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8124
SELECT ( - + col1 ) * + CAST( NULL AS DECIMAL ) col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8124
SELECT ( - + col1 ) * + CAST ( NULL AS REAL ) col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * - ( + 40 ) AS col2 FROM tab1 AS cor0
----
2360
2720
3840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8126
SELECT CAST( NULL AS SIGNED ) / - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8126
SELECT CAST ( NULL AS INTEGER ) / - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8127
SELECT - ( + ( + SUM( + 78 ) ) ) col1 FROM tab1 AS cor0
----
-234

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8127
SELECT - ( + ( + SUM ( + 78 ) ) ) col1 FROM tab1 AS cor0
----
-234

query II rowsort
SELECT DISTINCT 75 AS col0, - col0 FROM tab1
----
75
-51
75
-85
75
-91

query III rowsort
SELECT ALL * FROM tab1 WHERE - 3 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8130
SELECT DISTINCT col2 + + + CAST( + - 46 AS SIGNED ) * - 50 AS col0 FROM tab0
----
2310
2347
2399

skipif mysql # not compatible
query I rowsort label-8130
SELECT DISTINCT col2 + + + CAST ( + - 46 AS INTEGER ) * - 50 AS col0 FROM tab0
----
2310
2347
2399

query I rowsort
SELECT - col0 * + col0 + + 64 * col2 AS col1 FROM tab0 AS cor0
----
-3073
-6929
2783

onlyif mysql # aggregate syntax: 
query I rowsort label-8132
SELECT ALL - MAX( + - col1 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
1

skipif mysql # not compatible
query I rowsort label-8132
SELECT ALL - MAX ( + - col1 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 37 col0 FROM tab0 cor0
----
37
37
37

onlyif mysql # aggregate syntax: 
query I rowsort label-8134
SELECT 38 * + COUNT( * ) col2 FROM tab2 cor0
----
114

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8134
SELECT 38 * + COUNT ( * ) col2 FROM tab2 cor0
----
114

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 63 + + col1 <= 26
----

query I rowsort
SELECT + col0 * - 86 FROM tab2 AS cor0
----
-3956
-5504
-6450

query I rowsort
SELECT ALL + 50 + + - col1 - ( + col2 ) * + + col1 AS col0 FROM tab1 WHERE - + col0 + + - col1 * - + 16 IS NOT NULL
----
-1308
-250
-3193

query I rowsort
SELECT 57 + col2 FROM tab1
----
116
125
153

query I rowsort
SELECT ALL + col1 + col0 * + - 40 FROM tab1
----
-2026
-3395
-3593

query II rowsort
SELECT - col0 + + col1 AS col2, - col1 AS col0 FROM tab1 WHERE NULL IN ( - col2 - 15 )
----

query I rowsort
SELECT ALL 97 + + - col2 FROM tab1
----
1
29
38

query I rowsort
SELECT ALL - col0 * + 83 + + col2 - + col0 + + - col1 FROM tab2 AS cor0
----
-3892
-5413
-6309

onlyif mysql # aggregate syntax: 
query I rowsort label-8143
SELECT ALL MAX( + col0 ) + + + 13 FROM tab1 AS cor0
----
104

skipif mysql # not compatible
query I rowsort label-8143
SELECT ALL MAX ( + col0 ) + + + 13 FROM tab1 AS cor0
----
104

query I rowsort
SELECT DISTINCT - + col1 - + 67 AS col1 FROM tab1 cor0
----
-114
-72
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - 35 * + + col2 * - col0 col1 FROM tab1
----
-10179260
-2399040
-877625

onlyif mysql # aggregate syntax: 
query II rowsort label-8146
SELECT DISTINCT + COUNT( * ) AS col2, + 15 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9
15

skipif mysql # not compatible
query II rowsort label-8146
SELECT DISTINCT + COUNT ( * ) AS col2, + 15 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9
15

query I rowsort
SELECT col0 - + + col0 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT 30 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
30

query I rowsort
SELECT ALL + ( 88 ) AS col0 FROM tab1 AS cor0
----
88
88
88

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8150
SELECT ALL col2, col2 * - col2 FROM tab0 AS cor0 WHERE - CAST( + 58 AS SIGNED ) NOT IN ( + ( ( + 20 ) ) * - 49 )
----
10
-100
47
-2209
99
-9801

skipif mysql # not compatible
query II rowsort label-8150
SELECT ALL col2, col2 * - col2 FROM tab0 AS cor0 WHERE - CAST ( + 58 AS INTEGER ) NOT IN ( + ( ( + 20 ) ) * - 49 )
----
10
-100
47
-2209
99
-9801

query I rowsort
SELECT DISTINCT + col2 * + 95 AS col2 FROM tab0 cor0
----
4465
9405
950

query I rowsort
SELECT ALL - col0 * - - col1 * + + 88 * - col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8153
SELECT + col2 * + col0 DIV col0 AS col1, col2 FROM tab1
----
59
59
68
68
96
96

skipif mysql # not compatible
query II rowsort label-8153
SELECT + col2 * + col0 / col0 AS col1, col2 FROM tab1
----
59
59
68
68
96
96

query I rowsort
SELECT ALL - col1 * 31 AS col2 FROM tab2
----
-1581
-2077
-2387

onlyif mysql # aggregate syntax: 
query II rowsort label-8155
SELECT + 74, + COUNT( * ) + - 97 AS col0 FROM tab1
----
74
-94

skipif mysql # not compatible
query II rowsort label-8155
SELECT + 74, + COUNT ( * ) + - 97 AS col0 FROM tab1
----
74
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8156
SELECT - 71 * - COUNT( * ) / + - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8156
SELECT - 71 * - COUNT ( * ) / + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + ( + 36 ) AS col2 FROM tab0 AS cor0
----
36

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT NULL = - 68 )
----

query I rowsort
SELECT col0 FROM tab0 cor0 WHERE NOT ( NULL ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8160
SELECT DISTINCT ( CAST( + + col0 AS SIGNED ) ) FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-8160
SELECT DISTINCT ( CAST ( + + col0 AS INTEGER ) ) FROM tab1
----
51
85
91

query I rowsort
SELECT - ( - - col0 ) AS col1 FROM tab2 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 11 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
11

query I rowsort
SELECT ALL + col2 + + col2 + col1 * ( + - col2 ) AS col0 FROM tab1 AS cor0
----
-1152
-177
-3060

onlyif mysql # aggregate syntax: 
query I rowsort label-8164
SELECT DISTINCT + 17 * - - COUNT( * ) AS col1 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-8164
SELECT DISTINCT + 17 * - - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8165
SELECT DISTINCT col0 + 30 * - col2 + col0 + - CAST( + 61 AS SIGNED ) FROM tab2 AS cor0
----
-1133
-1651
-659

skipif mysql # not compatible
query I rowsort label-8165
SELECT DISTINCT col0 + 30 * - col2 + col0 + - CAST ( + 61 AS INTEGER ) FROM tab2 AS cor0
----
-1133
-1651
-659

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8166
SELECT ALL + + CAST( 83 AS SIGNED ) * col1 + - col0 AS col0 FROM tab0 AS cor0
----
-14
1656
6708

skipif mysql # not compatible
query I rowsort label-8166
SELECT ALL + + CAST ( 83 AS INTEGER ) * col1 + - col0 AS col0 FROM tab0 AS cor0
----
-14
1656
6708

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL >= 88 / - 11
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8168
SELECT - CAST( NULL AS SIGNED ) + - col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8168
SELECT - CAST ( NULL AS INTEGER ) + - col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - col1 * ( + 19 ) * + + ( ( + - 92 ) ) + - ( col2 ) FROM tab0 AS cor0
----
141541
1649
36698

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 1 * + 38 / ( col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 + - 35 AS col0 FROM tab2
----
-12
23
5

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT ( NOT ( NOT NULL IS NOT NULL ) ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8173
SELECT + 42 DIV + ( + + col1 ) AS col1 FROM tab0
----
0
2
42

skipif mysql # not compatible
query I rowsort label-8173
SELECT + 42 / + ( + + col1 ) AS col1 FROM tab0
----
0
2
42

onlyif mysql # DIV for integer division: 
query I rowsort label-8174
SELECT ALL - col0 DIV - 25 FROM tab2
----
1
2
3

skipif mysql # not compatible
query I rowsort label-8174
SELECT ALL - col0 / - 25 FROM tab2
----
1
2
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8175
SELECT DISTINCT - 20 + - + col2 - + - 26 DIV - - col0 FROM tab0
----
-119
-30
-66

skipif mysql # not compatible
query I rowsort label-8175
SELECT DISTINCT - 20 + - + col2 - + - 26 / - - col0 FROM tab0
----
-119
-30
-66

query I rowsort
SELECT ALL - 26 + 66 AS col0 FROM tab2
----
40
40
40

query I rowsort
SELECT ALL - 21 + col1 FROM tab1
----
-16
-7
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8178
SELECT - 40 + + + COUNT( * ) FROM tab1 AS cor0 WHERE ( NULL ) <= NULL
----
-40

skipif mysql # not compatible
query I rowsort label-8178
SELECT - 40 + + + COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) <= NULL
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-8179
SELECT ALL - col2 DIV + + col1 * + + col1 + + 79 AS col2 FROM tab2 AS cor0
----
79
79
79

skipif mysql # not compatible
query I rowsort label-8179
SELECT ALL - col2 / + + col1 * + + col1 + + 79 AS col2 FROM tab2 AS cor0
----
79
79
79

query III rowsort
SELECT * FROM tab1 WHERE - - 5 + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + col0 AS col0, - 87 AS col1 FROM tab0 AS cor0
----
15
-87
87
-87
97
-87

query II rowsort
SELECT - col1 AS col2, - col0 AS col1 FROM tab1 AS cor0
----
-14
-51
-47
-91
-5
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - - 27 ) col1 FROM tab2 AS cor0
----
27
27
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8184
SELECT ALL CAST( + 81 AS SIGNED ) FROM tab0 AS cor0
----
81
81
81

skipif mysql # not compatible
query I rowsort label-8184
SELECT ALL CAST ( + 81 AS INTEGER ) FROM tab0 AS cor0
----
81
81
81

query I rowsort
SELECT ALL ( - + 8 ) FROM tab2 AS cor0
----
-8
-8
-8

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8186
SELECT DISTINCT COUNT( + CAST( NULL AS DECIMAL ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8186
SELECT DISTINCT COUNT ( + CAST ( NULL AS REAL ) ) FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8187
SELECT DISTINCT CAST( col0 AS SIGNED ) DIV 22 FROM tab1
----
2
3
4

skipif mysql # not compatible
query I rowsort label-8187
SELECT DISTINCT CAST ( col0 AS INTEGER ) / 22 FROM tab1
----
2
3
4

query I rowsort
SELECT ALL - 16 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 + + + col2 + - 16 * + col0 = col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + col2 * + col1 AS col2, - col0 + + ( col0 ) FROM tab0
----
210
0
3807
0
99
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8191
SELECT + 20 * - - COUNT( * ) AS col1 FROM tab1
----
60

skipif mysql # not compatible
query I rowsort label-8191
SELECT + 20 * - - COUNT ( * ) AS col1 FROM tab1
----
60

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 > - col0
----

query I rowsort
SELECT - col0 * col0 * - 9 AS col0 FROM tab0 AS cor0
----
2025
68121
84681

query I rowsort
SELECT + col0 * + 16 AS col1 FROM tab2 AS cor0
----
1024
1200
736

query I rowsort
SELECT DISTINCT - + 65 AS col2 FROM tab0 AS cor0
----
-65

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 BETWEEN + + col0 * + col0 * + col0 * col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8197
SELECT DISTINCT + CAST( + - col1 AS SIGNED ) FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-8197
SELECT DISTINCT + CAST ( + - col1 AS INTEGER ) FROM tab1
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8198
SELECT col1 - + + col2 FROM tab0 WHERE - + col0 * + CAST( - - col1 AS SIGNED ) IS NOT NULL
----
-98
11
34

skipif mysql # not compatible
query I rowsort label-8198
SELECT col1 - + + col2 FROM tab0 WHERE - + col0 * + CAST ( - - col1 AS INTEGER ) IS NOT NULL
----
-98
11
34

query II rowsort
SELECT + - col0 AS col0, + ( - + col0 ) FROM tab0 AS cor0
----
-15
-15
-87
-87
-97
-97

query II rowsort
SELECT - 95, col2 FROM tab2 cor0
----
-95
23
-95
40
-95
58

query I rowsort
SELECT DISTINCT - - ( - 32 ) AS col0 FROM tab1 AS cor0
----
-32

query I rowsort
SELECT ALL - col1 FROM tab2 AS cor0 WHERE NULL <> col1
----

query II rowsort
SELECT ALL - col2 * - col2 + + col1 - - + col1 * - col0 * - 81, col2 FROM tab2 AS cor0
----
190606
23
400845
40
410456
58

query III rowsort
SELECT * FROM tab0 WHERE ( - col2 * col0 + col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 * + col0 + col1 + col1 AS col1 FROM tab2
----
2448
5082
5159

query I rowsort
SELECT + col0 + - - col1 AS col1 FROM tab1
----
138
65
90

query III rowsort
SELECT * FROM tab2 WHERE NULL = + col1 - + 66 - + + col0
----

query I rowsort
SELECT DISTINCT - col1 + + ( - col0 ) AS col0 FROM tab1
----
-138
-65
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8209
SELECT + COUNT( * ) + 91 * - COUNT( * ) FROM tab2 AS cor0
----
-270

skipif mysql # not compatible
query I rowsort label-8209
SELECT + COUNT ( * ) + 91 * - COUNT ( * ) FROM tab2 AS cor0
----
-270

query I rowsort
SELECT ALL - + col2 + 19 AS col1 FROM tab0 AS cor0
----
-28
-80
9

query I rowsort
SELECT ALL - 36 * - + col1 - + 62 AS col0 FROM tab1 AS cor0
----
118
1630
442

query I rowsort
SELECT DISTINCT - - col1 - + + col1 + + ( - 56 ) * - 13 AS col1 FROM tab0 AS cor0
----
728

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8213
SELECT DISTINCT - MIN( DISTINCT + CAST( NULL AS SIGNED ) ) - - - COUNT( * ) + - - COUNT( * ) + - CAST( 92 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8213
SELECT DISTINCT - MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) - - - COUNT ( * ) + - - COUNT ( * ) + - CAST ( 92 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + 97 * 75 * - ( col1 ) AS col1 FROM tab1
----
-101850
-341925
-36375

query I rowsort
SELECT DISTINCT col0 * 20 * + col2 FROM tab0 AS cor0
----
14100
17400
192060

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8216
SELECT ALL + 87 DIV COUNT( * ) AS col2 FROM tab2 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-8216
SELECT ALL + 87 / COUNT ( * ) AS col2 FROM tab2 AS cor0
----
29

query I rowsort
SELECT DISTINCT + + 2 FROM tab1 cor0
----
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col2 FROM tab1 AS cor0 WHERE col0 = - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8219
SELECT ALL + - MAX( DISTINCT - col2 ) AS col2 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-8219
SELECT ALL + - MAX ( DISTINCT - col2 ) AS col2 FROM tab0 AS cor0
----
10

query I rowsort
SELECT DISTINCT + 74 FROM tab0 AS cor0 WHERE NULL > NULL
----

query I rowsort
SELECT DISTINCT - ( - 13 ) * col2 * + col1 FROM tab1 cor0
----
17472
3835
41548

onlyif mysql # aggregate syntax: 
query I rowsort label-8222
SELECT DISTINCT - MIN( + col1 ) AS col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8222
SELECT DISTINCT - MIN ( + col1 ) AS col2 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT 55 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
55
55
55

query III rowsort
SELECT + col0 AS col0, col2 AS col1, col1 + - col1 AS col0 FROM tab2
----
9 values hashing to 0bdba0855119b1ba0968a21d7eb8c617

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <> - + col1
----

query II rowsort
SELECT + col0, 59 FROM tab0
----
15
59
87
59
97
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + - col1 ) col1 FROM tab1
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8228
SELECT ALL * FROM tab2 WHERE + CAST( NULL AS SIGNED ) <= - col2
----

skipif mysql # not compatible
query III rowsort label-8228
SELECT ALL * FROM tab2 WHERE + CAST ( NULL AS INTEGER ) <= - col2
----

query II rowsort
SELECT DISTINCT col0 AS col0, 42 FROM tab2
----
46
42
64
42
75
42

onlyif mysql # DIV for integer division: 
query I rowsort label-8230
SELECT ALL - 41 DIV + 62 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8230
SELECT ALL - 41 / + 62 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8231
SELECT - + COUNT( * ) * COUNT( DISTINCT - col2 ) AS col2 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8231
SELECT - + COUNT ( * ) * COUNT ( DISTINCT - col2 ) AS col2 FROM tab2 AS cor0
----
-9

query I rowsort
SELECT + + ( col0 ) * - 88 FROM tab0 AS cor0
----
-1320
-7656
-8536

query III rowsort
SELECT * FROM tab0 WHERE + - col1 <= + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8234
SELECT DISTINCT col2 + - col1 DIV + - col0 FROM tab0 cor0
----
10
52
99

skipif mysql # not compatible
query I rowsort label-8234
SELECT DISTINCT col2 + - col1 / + - col0 FROM tab0 cor0
----
10
52
99

query I rowsort
SELECT DISTINCT + - col1 * + - 27 + col0 - col2 AS col1 FROM tab1 cor0
----
1292
161
333

onlyif mysql # aggregate syntax: 
query II rowsort label-8236
SELECT + SUM( + - col0 ) + 44, - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-183
-3

skipif mysql # not compatible
query II rowsort label-8236
SELECT + SUM ( + - col0 ) + 44, - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-183
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8237
SELECT DISTINCT COUNT( * ) + 99 FROM tab1 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-8237
SELECT DISTINCT COUNT ( * ) + 99 FROM tab1 AS cor0
----
102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8238
SELECT + 59 * - CAST( - col0 AS SIGNED ) + 16 FROM tab2 AS cor0
----
2730
3792
4441

skipif mysql # not compatible
query I rowsort label-8238
SELECT + 59 * - CAST ( - col0 AS INTEGER ) + 16 FROM tab2 AS cor0
----
2730
3792
4441

query II rowsort
SELECT - col1, + col0 AS col2 FROM tab1
----
-14
51
-47
91
-5
85

query I rowsort
SELECT col1 * + - 0 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8241
SELECT ALL col2 + - ( - + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8241
SELECT ALL col2 + - ( - + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8242
SELECT - col1 - + col1 * 35 * - CAST( NULL AS SIGNED ) - col0 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8242
SELECT - col1 - + col1 * 35 * - CAST ( NULL AS INTEGER ) - col0 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( + ( - - 73 ) ) * + 14 * + 18 AS col0 FROM tab2
----
18396
18396
18396

onlyif mysql # aggregate syntax: 
query I rowsort label-8244
SELECT ALL + COUNT( * ) * - - 54 FROM tab0 WHERE + + ( col0 ) + - 18 IS NOT NULL
----
162

skipif mysql # not compatible
query I rowsort label-8244
SELECT ALL + COUNT ( * ) * - - 54 FROM tab0 WHERE + + ( col0 ) + - 18 IS NOT NULL
----
162

query I rowsort
SELECT ALL col2 + - col0 AS col0 FROM tab1 cor0
----
-23
-26
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8246
SELECT DISTINCT + ( + 72 ) + - COUNT( * ) FROM tab0 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-8246
SELECT DISTINCT + ( + 72 ) + - COUNT ( * ) FROM tab0 AS cor0
----
69

query II rowsort
SELECT ALL col0 * + col1 + + col1, 52 AS col1 FROM tab2 AS cor0
----
2397
52
5005
52
5092
52

query II rowsort
SELECT col2, + col1 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT - + col2 AS col2 FROM tab1 WHERE NOT - 88 <= 64
----

query I rowsort
SELECT - col0 * + 8 * 22 FROM tab1 AS cor0
----
-14960
-16016
-8976

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8251
SELECT CAST( NULL AS SIGNED ) / + - col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8251
SELECT CAST ( NULL AS INTEGER ) / + - col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + 66 AS col1 FROM tab0 AS cor0
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-8253
SELECT DISTINCT ( - - col2 ) DIV - - col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8253
SELECT DISTINCT ( - - col2 ) / - - col2 FROM tab0 AS cor0
----
1

query II rowsort
SELECT DISTINCT + - ( - col2 ) AS col1, 3 AS col2 FROM tab0 AS cor0
----
10
3
47
3
99
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8255
SELECT - ( + ( - - COUNT( * ) ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8255
SELECT - ( + ( - - COUNT ( * ) ) ) FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 / - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8257
SELECT CAST( + SUM( DISTINCT - 22 ) AS SIGNED ) * + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-8257
SELECT CAST ( + SUM ( DISTINCT - 22 ) AS INTEGER ) * + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8258
SELECT COUNT( * ) DIV + 27 FROM tab2 WHERE NOT NULL > + col0 + 6 * - 1
----
0

skipif mysql # not compatible
query I rowsort label-8258
SELECT COUNT ( * ) / + 27 FROM tab2 WHERE NOT NULL > + col0 + 6 * - 1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8259
SELECT ALL - col1 + ( CAST( + 19 AS SIGNED ) ) FROM tab1
----
-28
14
5

skipif mysql # not compatible
query I rowsort label-8259
SELECT ALL - col1 + ( CAST ( + 19 AS INTEGER ) ) FROM tab1
----
-28
14
5

query I rowsort
SELECT DISTINCT 93 * - + col2 FROM tab1
----
-5487
-6324
-8928

onlyif mysql # DIV for integer division: 
query I rowsort label-8261
SELECT ( - + 94 ) DIV - col0 + + + ( - col0 ) + - col1 AS col1 FROM tab0
----
-107
-90
-98

skipif mysql # not compatible
query I rowsort label-8261
SELECT ( - + 94 ) / - col0 + + + ( - col0 ) + - col1 AS col1 FROM tab0
----
-107
-90
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-8262
SELECT - COUNT( ALL + col0 ) col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8262
SELECT - COUNT ( ALL + col0 ) col2 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + col2 + col0 + 42 AS col2 FROM tab0 AS cor0
----
104
139
238

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8264
SELECT ALL + - 19 + - + CAST( NULL AS SIGNED ), COUNT( * ) AS col1 FROM tab1 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-8264
SELECT ALL + - 19 + - + CAST ( NULL AS INTEGER ), COUNT ( * ) AS col1 FROM tab1 AS cor0
----
NULL
3

query I rowsort
SELECT ALL + 55 - + + col1 FROM tab0 AS cor0
----
-26
34
54

query I rowsort
SELECT ALL + 45 - - 88 FROM tab2 AS cor0
----
133
133
133

query I rowsort
SELECT DISTINCT - - col0 + - col1 + - 95 FROM tab0 AS cor0
----
-161
-29
1

query I rowsort
SELECT + + col0 - + 62 + col1 AS col1 FROM tab0 AS cor0
----
34
36
46

query I rowsort
SELECT ALL + + col2 + + col2 + col0 FROM tab2 AS cor0
----
144
191
92

query I rowsort
SELECT DISTINCT - 82 - + col2 + - 71 FROM tab1 cor0
----
-212
-221
-249

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8271
SELECT CAST( + 76 AS SIGNED ) FROM tab0, tab2 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

skipif mysql # not compatible
query I rowsort label-8271
SELECT CAST ( + 76 AS INTEGER ) FROM tab0, tab2 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

query I rowsort
SELECT - ( + col2 ) + + col0 FROM tab2
----
17
23
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8273
SELECT DISTINCT + SUM( ALL + - col0 ) FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-8273
SELECT DISTINCT + SUM ( ALL + - col0 ) FROM tab1
----
-227

query I rowsort
SELECT ALL col1 * - ( + 92 ) + + col2 AS col0 FROM tab0 WHERE NOT NULL >= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 64 ) IS NOT NULL
----

query I rowsort
SELECT ( 57 ) FROM tab1 WHERE NOT ( NULL IS NOT NULL )
----
57
57
57

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col1 = col1
----

query I rowsort
SELECT DISTINCT col2 + - col2 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8279
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + CAST( - + col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8279
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + CAST ( - + col1 AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8280
SELECT ( - 42 ) AS col0, + CAST( - SUM( ALL col0 ) AS SIGNED ) FROM tab0 AS cor0
----
-42
-199

skipif mysql # not compatible
query II rowsort label-8280
SELECT ( - 42 ) AS col0, + CAST ( - SUM ( ALL col0 ) AS INTEGER ) FROM tab0 AS cor0
----
-42
-199

onlyif mysql # aggregate syntax: 
query II rowsort label-8281
SELECT 91, + COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
91
9

skipif mysql # not compatible
query II rowsort label-8281
SELECT 91, + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
91
9

query I rowsort
SELECT DISTINCT ( + + 61 ) FROM tab2 AS cor0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8283
SELECT ALL SUM( DISTINCT - col2 ) FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-8283
SELECT ALL SUM ( DISTINCT - col2 ) FROM tab1 AS cor0
----
-223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8284
SELECT 95 FROM tab1 WHERE NOT + col2 > - col0 / + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8284
SELECT 95 FROM tab1 WHERE NOT + col2 > - col0 / + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8285
SELECT ALL MIN( DISTINCT + col0 ) * - + 72 col2 FROM tab1
----
-3672

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8285
SELECT ALL MIN ( DISTINCT + col0 ) * - + 72 col2 FROM tab1
----
-3672

query I rowsort
SELECT - - col0 FROM tab1 WHERE NOT col0 < col0
----
51
85
91

query I rowsort
SELECT col1 + - + ( - + col0 ) FROM tab0
----
108
96
98

query III rowsort
SELECT ALL * FROM tab2 WHERE 59 * - - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8289
SELECT DISTINCT COUNT( * ) * 26 AS col2 FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-8289
SELECT DISTINCT COUNT ( * ) * 26 AS col2 FROM tab2
----
78

query III rowsort
SELECT ALL * FROM tab1 WHERE - 11 * - 48 = NULL
----

query I rowsort
SELECT ALL - col2 + + - col1 AS col0 FROM tab1
----
-110
-115
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-8292
SELECT DISTINCT - col2 * - col1 DIV + col1 FROM tab2 cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-8292
SELECT DISTINCT - col2 * - col1 / + col1 FROM tab2 cor0
----
23
40
58

query I rowsort
SELECT DISTINCT + - 51 * - - 45 AS col1 FROM tab2 AS cor0
----
-2295

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8294
SELECT + col2 * - - CAST( NULL AS SIGNED ), 52 col2 FROM tab2 AS cor0
----
NULL
52
NULL
52
NULL
52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8294
SELECT + col2 * - - CAST ( NULL AS INTEGER ), 52 col2 FROM tab2 AS cor0
----
NULL
52
NULL
52
NULL
52

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8295
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 + - 50 + + + CAST( + + CAST( + col0 AS SIGNED ) AS SIGNED ) * - col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8295
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 + - 50 + + + CAST ( + + CAST ( + col0 AS INTEGER ) AS INTEGER ) * - col1 IS NOT NULL
----

query I rowsort
SELECT 90 - 97 AS col1 FROM tab0 cor0
----
-7
-7
-7

query III rowsort
SELECT * FROM tab1 WHERE ( NOT ( NULL IS NULL ) )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8298
SELECT DISTINCT 25 + - col1 + + ( + 48 ) DIV - col2 AS col1, 73 * + col2 FROM tab2 AS cor0
----
-28
1679
-42
4234
-53
2920

skipif mysql # not compatible
query II rowsort label-8298
SELECT DISTINCT 25 + - col1 + + ( + 48 ) / - col2 AS col1, 73 * + col2 FROM tab2 AS cor0
----
-28
1679
-42
4234
-53
2920

query I rowsort
SELECT ALL + + col2 - 0 + + col0 FROM tab1 AS cor0
----
144
147
159

query I rowsort
SELECT ALL col2 * - 34 AS col0 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
-1360
-1972
-782

query II rowsort
SELECT ALL - col0 - + ( + - col2 ), - col0 + col2 + - + 92 AS col1 FROM tab2 AS cor0
----
-17
-109
-23
-115
-24
-116

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col2 * - - col1 NOT BETWEEN NULL AND 5
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8303
SELECT 44 * COUNT( * ) FROM tab0
----
132

skipif mysql # not compatible
query I rowsort label-8303
SELECT 44 * COUNT ( * ) FROM tab0
----
132

onlyif mysql # aggregate syntax: 
query II rowsort label-8304
SELECT 11, - COUNT( * ) + + + SUM( + - col1 ) AS col1 FROM tab1
----
11
-69

skipif mysql # not compatible
query II rowsort label-8304
SELECT 11, - COUNT ( * ) + + + SUM ( + - col1 ) AS col1 FROM tab1
----
11
-69

query I rowsort
SELECT - col1 * ( - + 81 ) AS col1 FROM tab0
----
1701
6561
81

query I rowsort
SELECT ( col2 ) * - 64 FROM tab1
----
-3776
-4352
-6144

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 NOT BETWEEN col1 AND + col0
----
75
67
58

query II rowsort
SELECT DISTINCT 31, col1 FROM tab2
----
31
51
31
67
31
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8309
SELECT ALL + 37 * - ( + COUNT( * ) ) FROM tab0
----
-111

skipif mysql # not compatible
query I rowsort label-8309
SELECT ALL + 37 * - ( + COUNT ( * ) ) FROM tab0
----
-111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8310
SELECT DISTINCT 15 DIV - CAST( 36 AS SIGNED ) * COUNT( * ) + - CAST( + 45 AS SIGNED ) AS col0, - MIN( DISTINCT - col2 ) FROM tab2
----
-45
58

skipif mysql # not compatible
query II rowsort label-8310
SELECT DISTINCT 15 / - CAST ( 36 AS INTEGER ) * COUNT ( * ) + - CAST ( + 45 AS INTEGER ) AS col0, - MIN ( DISTINCT - col2 ) FROM tab2
----
-45
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8311
SELECT - - ( + + 80 ) * SUM( ALL col2 ) DIV - 98 + + 0 AS col1, SUM( + + col0 ) FROM tab2 AS cor0
----
-98
185

skipif mysql # not compatible
query II rowsort label-8311
SELECT - - ( + + 80 ) * SUM ( ALL col2 ) / - 98 + + 0 AS col1, SUM ( + + col0 ) FROM tab2 AS cor0
----
-98
185

onlyif mysql # aggregate syntax: 
query II rowsort label-8312
SELECT SUM( ALL + col1 ), - 44 AS col0 FROM tab2
----
195
-44

skipif mysql # not compatible
query II rowsort label-8312
SELECT SUM ( ALL + col1 ), - 44 AS col0 FROM tab2
----
195
-44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - ( - 20 ) col2, col0 - + col1 FROM tab1
----
20
37
20
44
20
80

query I rowsort
SELECT DISTINCT ( 45 ) FROM tab0 AS cor0
----
45

query I rowsort
SELECT - - 25 * col0 * + 24 FROM tab1 AS cor0
----
30600
51000
54600

query I rowsort
SELECT + + col1 * - 8 AS col0 FROM tab1 AS cor0
----
-112
-376
-40

query I rowsort
SELECT ALL - - col2 * - col0 * - 84 FROM tab0 AS cor0
----
59220
73080
806652

onlyif mysql # aggregate syntax: 
query I rowsort label-8318
SELECT MAX( DISTINCT + - col2 ) FROM tab0 WHERE + - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8318
SELECT MAX ( DISTINCT + - col2 ) FROM tab0 WHERE + - col1 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT ( 61 ) * + - col0 FROM tab2
----
-2806
-3904
-4575

onlyif mysql # aggregate syntax: 
query I rowsort label-8320
SELECT + COUNT( * ) FROM tab1 WHERE col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8320
SELECT + COUNT ( * ) FROM tab1 WHERE col2 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8321
SELECT DISTINCT * FROM tab2 WHERE ( + - 93 + + + 86 - - + CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8321
SELECT DISTINCT * FROM tab2 WHERE ( + - 93 + + + 86 - - + CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

query I rowsort
SELECT ALL - - col1 + + + col0 FROM tab0 AS cor0
----
108
96
98

query I rowsort
SELECT ALL - + 17 AS col0 FROM tab2 AS cor0 WHERE + col0 IS NULL
----

query I rowsort
SELECT DISTINCT col1 * + ( col0 ) FROM tab1 WHERE NOT NULL > NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 >= + col1 * + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8326
SELECT ALL 66 * COUNT( * ) AS col1 FROM tab2
----
198

skipif mysql # not compatible
query I rowsort label-8326
SELECT ALL 66 * COUNT ( * ) AS col1 FROM tab2
----
198

query III rowsort
SELECT * FROM tab1 WHERE NOT - 54 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8328
SELECT - COUNT( * ) - ( + 16 ) FROM tab0
----
-19

skipif mysql # not compatible
query I rowsort label-8328
SELECT - COUNT ( * ) - ( + 16 ) FROM tab0
----
-19

query I rowsort
SELECT 58 AS col1 FROM tab2 WHERE NOT + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 49 + col1 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8331
SELECT + 67 - + 0 DIV + 55 FROM tab1
----
67
67
67

skipif mysql # not compatible
query I rowsort label-8331
SELECT + 67 - + 0 / + 55 FROM tab1
----
67
67
67

query I rowsort
SELECT DISTINCT 56 * 73 FROM tab1
----
4088

onlyif mysql # DIV for integer division: 
query I rowsort label-8333
SELECT - 1 DIV col1 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8333
SELECT - 1 / col1 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL - col2 FROM tab0 WHERE 87 + col1 >= col1
----
-10
-47
-99

query I rowsort
SELECT ALL - 92 FROM tab2 WHERE ( col1 - 35 * col0 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8336
SELECT 71 DIV col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8336
SELECT 71 / col2 FROM tab1
----
0
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8337
SELECT COUNT( * ) DIV 21 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8337
SELECT COUNT ( * ) / 21 AS col2 FROM tab2
----
0

query I rowsort
SELECT ALL col2 AS col0 FROM tab2 WHERE NULL NOT BETWEEN ( col2 ) AND + col1 * + col0 - - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8339
SELECT CAST( NULL AS SIGNED ) / CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8339
SELECT CAST ( NULL AS INTEGER ) / CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8340
SELECT DISTINCT - 48 + + COUNT( * ) AS col2 FROM tab2 WHERE col2 NOT BETWEEN 99 / - col1 AND ( 70 * - 44 )
----
-45

skipif mysql # not compatible
query I rowsort label-8340
SELECT DISTINCT - 48 + + COUNT ( * ) AS col2 FROM tab2 WHERE col2 NOT BETWEEN 99 / - col1 AND ( 70 * - 44 )
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-8341
SELECT DISTINCT + 82 DIV - 49 AS col2 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-8341
SELECT DISTINCT + 82 / - 49 AS col2 FROM tab1
----
-1

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL > col2 + + col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 40 > ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 93 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col0 ) col1 FROM tab1
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 0 ) col2 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL + col2 + col0 FROM tab1 WHERE NOT ( + 14 ) < - 69 * col1
----
144
147
159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8348
SELECT - CAST( 60 AS SIGNED ) FROM tab2
----
-60
-60
-60

skipif mysql # not compatible
query I rowsort label-8348
SELECT - CAST ( 60 AS INTEGER ) FROM tab2
----
-60
-60
-60

query I rowsort
SELECT col0 * 22 - - col1 * 53 FROM tab1
----
1864
2135
4493

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 * col2 <> + 77
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8351
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( + col1 * + CAST( NULL AS SIGNED ) ) AND ( 1 )
----

skipif mysql # not compatible
query III rowsort label-8351
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( + col1 * + CAST ( NULL AS INTEGER ) ) AND ( 1 )
----

query I rowsort
SELECT col2 * col0 + + col1 AS col2 FROM tab2 WHERE NOT ( - col2 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) > - 93 * col1
----

query I rowsort
SELECT + 4 * + 26 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) <= ( col1 ) - + 46
----

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE ( + col0 ) BETWEEN + col0 + col0 AND ( 58 )
----

query I rowsort
SELECT col2 + - 42 AS col1 FROM tab2 cor0
----
-19
-2
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8358
SELECT + COUNT( * ) + + 95 col1 FROM tab0 AS cor0
----
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8358
SELECT + COUNT ( * ) + + 95 col1 FROM tab0 AS cor0
----
98

query I rowsort
SELECT DISTINCT 1 AS col1 FROM tab2 cor0
----
1

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab2 AS cor0 WHERE NOT col1 IN ( 83 - + col0 )
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8361
SELECT col0 * col0 + + CAST( - 42 AS SIGNED ) * - col1 AS col2 FROM tab2
----
4258
7330
8439

skipif mysql # not compatible
query I rowsort label-8361
SELECT col0 * col0 + + CAST ( - 42 AS INTEGER ) * - col1 AS col2 FROM tab2
----
4258
7330
8439

query I rowsort
SELECT - 44 * + col0 AS col1 FROM tab0
----
-3828
-4268
-660

onlyif mysql # aggregate syntax: 
query I rowsort label-8363
SELECT ALL - MIN( DISTINCT + 74 ) FROM tab0
----
-74

skipif mysql # not compatible
query I rowsort label-8363
SELECT ALL - MIN ( DISTINCT + 74 ) FROM tab0
----
-74

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 >= ( - ( - col1 ) )
----

query I rowsort
SELECT ALL - col2 + col2 + + 10 FROM tab1
----
10
10
10

query I rowsort
SELECT col2 + - col2 FROM tab2 WHERE NULL BETWEEN - 87 * + col1 AND 39
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8367
SELECT DISTINCT + ( COUNT( * ) ) / - 31 + AVG ( 21 ) * CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8367
SELECT DISTINCT + ( COUNT ( * ) ) / - 31 + AVG ( 21 ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT ALL - 28 + + - 53 + ( col1 ) * col1 AS col2 FROM tab2 AS cor0
----
2520
4408
5848

onlyif mysql # aggregate syntax: 
query I rowsort label-8369
SELECT + 29 - - - COUNT( * ) * COUNT( * ) AS col2 FROM tab1 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-8369
SELECT + 29 - - - COUNT ( * ) * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
20

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE ( - 92 + + 69 * - col0 ) IS NOT NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8371
SELECT + 58 * 8 + COUNT( * ) AS col1 FROM tab2 AS cor0
----
467

skipif mysql # not compatible
query I rowsort label-8371
SELECT + 58 * 8 + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
467

query I rowsort
SELECT + ( 98 ) * - col1 AS col2 FROM tab2 WHERE 23 IS NOT NULL
----
-4998
-6566
-7546

query I rowsort
SELECT DISTINCT + col0 - - 72 AS col1 FROM tab2
----
118
136
147

onlyif mysql # aggregate syntax: 
query I rowsort label-8374
SELECT + COUNT( * ) * 23 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
207

skipif mysql # not compatible
query I rowsort label-8374
SELECT + COUNT ( * ) * 23 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
207

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8375
SELECT ALL col0 * + 28 AS col0 FROM tab0 AS cor0 WHERE + CAST( NULL AS SIGNED ) >= + 75 + 71
----

skipif mysql # not compatible
query I rowsort label-8375
SELECT ALL col0 * + 28 AS col0 FROM tab0 AS cor0 WHERE + CAST ( NULL AS INTEGER ) >= + 75 + 71
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8376
SELECT ALL - + 49 DIV + col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8376
SELECT ALL - + 49 / + col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8377
SELECT - 0 DIV COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8377
SELECT - 0 / COUNT ( * ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT - 75 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT col0 * col2 + col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
1081
2600
4408

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8380
SELECT ALL CAST( col2 AS SIGNED ) FROM tab1 cor0 WHERE + ( col2 ) * - col2 + CAST( + 16 - col2 AS SIGNED ) * - 56 IN ( + 52 )
----

skipif mysql # not compatible
query I rowsort label-8380
SELECT ALL CAST ( col2 AS INTEGER ) FROM tab1 cor0 WHERE + ( col2 ) * - col2 + CAST ( + 16 - col2 AS INTEGER ) * - 56 IN ( + 52 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8381
SELECT - - col1 col2, CAST( + ( - col2 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
1
-99
21
-10
81
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8381
SELECT - - col1 col2, CAST ( + ( - col2 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
1
-99
21
-10
81
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8382
SELECT ALL SUM( - - 1 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8382
SELECT ALL SUM ( - - 1 ) AS col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8383
SELECT ALL - MAX( 36 ) AS col2 FROM tab2
----
-36

skipif mysql # not compatible
query I rowsort label-8383
SELECT ALL - MAX ( 36 ) AS col2 FROM tab2
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-8384
SELECT DISTINCT COUNT( + 84 ) * - ( 54 ) * COUNT( ALL + col2 ) FROM tab1
----
-486

skipif mysql # not compatible
query I rowsort label-8384
SELECT DISTINCT COUNT ( + 84 ) * - ( 54 ) * COUNT ( ALL + col2 ) FROM tab1
----
-486

onlyif mysql # aggregate syntax: 
query I rowsort label-8385
SELECT ALL COUNT( * ) AS col2 FROM tab0 WHERE NOT - - col0 BETWEEN col1 + col1 AND ( NULL )
----
1

skipif mysql # not compatible
query I rowsort label-8385
SELECT ALL COUNT ( * ) AS col2 FROM tab0 WHERE NOT - - col0 BETWEEN col1 + col1 AND ( NULL )
----
1

query I rowsort
SELECT DISTINCT + col1 * col1 * + 54 FROM tab1
----
10584
119286
1350

query I rowsort
SELECT ALL + col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( NOT ( 23 IS NOT NULL ) )
----
51
67
77

query II rowsort
SELECT + col1 * + + col1 AS col1, - col1 FROM tab0 AS cor0
----
1
-1
441
-21
6561
-81

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( ( col0 ) IS NOT NULL )
----

query I rowsort
SELECT DISTINCT - AVG ( DISTINCT col2 ) FROM tab0 AS cor0 WHERE NOT NULL IN ( 71, - col2 / + + col0 * col1 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8391
SELECT DISTINCT + 76 DIV col0 * - - col2 AS col1 FROM tab0 cor0
----
0
235

skipif mysql # not compatible
query I rowsort label-8391
SELECT DISTINCT + 76 / col0 * - - col2 AS col1 FROM tab0 cor0
----
0
235

query I rowsort
SELECT ALL + col2 * + 95 FROM tab0
----
4465
9405
950

onlyif mysql # aggregate syntax: 
query I rowsort label-8393
SELECT DISTINCT COUNT( * ) + + COUNT( ALL - col1 ) col1 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8393
SELECT DISTINCT COUNT ( * ) + + COUNT ( ALL - col1 ) col1 FROM tab0 AS cor0
----
6

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 38 * 48 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8395
SELECT DISTINCT + SUM( ALL - col2 ) FROM tab1 cor0 WHERE NOT col2 BETWEEN - 22 - - CAST( NULL AS SIGNED ) * + - 61 - 12 AND - ( col1 )
----
-223

skipif mysql # not compatible
query I rowsort label-8395
SELECT DISTINCT + SUM ( ALL - col2 ) FROM tab1 cor0 WHERE NOT col2 BETWEEN - 22 - - CAST ( NULL AS INTEGER ) * + - 61 - 12 AND - ( col1 )
----
-223

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( - - 55 ) col0 FROM tab1 AS cor0
----
55
55
55

query I rowsort
SELECT DISTINCT - + 15 * + 44 * col0 FROM tab1 AS cor0
----
-33660
-56100
-60060

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 NOT IN ( - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 AND + - col1 * + col0 + col2
----

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE - col0 / - - col0 IN ( + - col0 )
----

query I rowsort
SELECT ALL - col1 AS col1 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT ALL - 82 + + + ( - col1 ) + - col1 AS col1 FROM tab1 AS cor0
----
-110
-176
-92

query I rowsort
SELECT ALL - - ( + + col1 ) FROM tab0 AS cor0
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 57 col1 FROM tab2 cor0
----
-57
-57
-57

query I rowsort
SELECT ALL + - 60 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + col2 BETWEEN ( + ( - 29 ) ) AND NULL
----

query I rowsort
SELECT - 60 + + col2 + 40 * + + col2 AS col0 FROM tab1
----
2359
2728
3876

query I rowsort
SELECT ALL + ( 63 ) AS col2 FROM tab0 cor0
----
63
63
63

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT NULL NOT IN ( + 3 + col2 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8410
SELECT ALL - col2 + col2 AS col2 FROM tab0 AS cor0 WHERE ( - col0 * + - col1 ) BETWEEN col2 AND - ( CAST( NULL AS SIGNED ) ) * - + 55
----

skipif mysql # not compatible
query I rowsort label-8410
SELECT ALL - col2 + col2 AS col2 FROM tab0 AS cor0 WHERE ( - col0 * + - col1 ) BETWEEN col2 AND - ( CAST ( NULL AS INTEGER ) ) * - + 55
----

query I rowsort
SELECT + - 22 AS col2 FROM tab0 cor0
----
-22
-22
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8412
SELECT DISTINCT ( + MIN( + CAST( - + col1 AS SIGNED ) ) ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-8412
SELECT DISTINCT ( + MIN ( + CAST ( - + col1 AS INTEGER ) ) ) FROM tab0 AS cor0
----
-81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 16 ) > NULL
----

query I rowsort
SELECT ALL - col2 * - col2 * + 75 * + - 1 * + col1 AS col2 FROM tab1
----
-1305375
-16299600
-9676800

query II rowsort
SELECT + col1, + ( col2 ) FROM tab2
----
51
23
67
58
77
40

onlyif mysql # aggregate syntax: 
query II rowsort label-8416
SELECT DISTINCT + 79, - SUM( DISTINCT + col0 ) col2 FROM tab1
----
79
-227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8416
SELECT DISTINCT + 79, - SUM ( DISTINCT + col0 ) col2 FROM tab1
----
79
-227

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 < - - 44
----
87
21
10
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8418
SELECT ALL - CAST( NULL AS SIGNED ) * + - col2 * col2 * col2 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8418
SELECT ALL - CAST ( NULL AS INTEGER ) * + - col2 * col2 * col2 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - 84 AS col0 FROM tab1 AS cor0
----
-84

query II rowsort
SELECT DISTINCT + col1, 89 FROM tab0 AS cor0
----
1
89
21
89
81
89

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL IS NOT NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - - 41 + + col0 col1 FROM tab2
----
58
64
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8423
SELECT DISTINCT + 28 + - CAST( 44 AS SIGNED ) * + 67 + COUNT( * ) FROM tab2
----
-2917

skipif mysql # not compatible
query I rowsort label-8423
SELECT DISTINCT + 28 + - CAST ( 44 AS INTEGER ) * + 67 + COUNT ( * ) FROM tab2
----
-2917

query I rowsort
SELECT ALL + col0 + + - col1 FROM tab1 cor0
----
37
44
80

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - col0 ) IN ( col2, col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8426
SELECT ALL col2 DIV - col0 + col0 AS col2 FROM tab0 AS cor0
----
12
87
96

skipif mysql # not compatible
query I rowsort label-8426
SELECT ALL col2 / - col0 + col0 AS col2 FROM tab0 AS cor0
----
12
87
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8427
SELECT ALL SUM( + 77 ) FROM tab2 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-8427
SELECT ALL SUM ( + 77 ) FROM tab2 AS cor0
----
231

query I rowsort
SELECT DISTINCT 16 * + col0 * col1 FROM tab1 AS cor0
----
11424
6800
68432

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 59 col1 FROM tab0 AS cor0
----
-59
-59
-59

query I rowsort
SELECT DISTINCT col0 - + + 65 AS col0 FROM tab1
----
-14
20
26

query I rowsort
SELECT col2 * + 75 AS col1 FROM tab0
----
3525
7425
750

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8432
SELECT + COUNT( * ) DIV ( - MIN( ALL + + col1 ) ) col0 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8432
SELECT + COUNT ( * ) / ( - MIN ( ALL + + col1 ) ) col0 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + - col0 col0 FROM tab2
----
-2346
-4928
-5025

onlyif mysql # DIV for integer division: 
query I rowsort label-8434
SELECT DISTINCT - col2 DIV + - col2 AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-8434
SELECT DISTINCT - col2 / + - col2 AS col1 FROM tab1
----
1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 / + col2 + - col0 + col2 + - 51 BETWEEN NULL AND ( - col0 )
----

query I rowsort
SELECT ALL - - col2 * + col0 + 59 AS col2 FROM tab1 cor0
----
4955
5074
6247

query I rowsort
SELECT + col1 * - col1 + - 35 AS col0 FROM tab0 AS cor0
----
-36
-476
-6596

onlyif mysql # aggregate syntax: 
query I rowsort label-8438
SELECT MIN( col2 ) col1 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8438
SELECT MIN ( col2 ) col1 FROM tab0 AS cor0
----
10

query II rowsort
SELECT DISTINCT - col2 AS col1, + col1 AS col0 FROM tab1
----
-59
5
-68
47
-96
14

query II rowsort
SELECT ALL - col0, - 93 + - - 63 AS col2 FROM tab0
----
-15
-30
-87
-30
-97
-30

query I rowsort
SELECT - col2 * - 8 AS col2 FROM tab1 WHERE NOT - 11 IS NULL
----
472
544
768

query II rowsort
SELECT DISTINCT - col2 AS col2, 74 AS col1 FROM tab0 AS cor0
----
-10
74
-47
74
-99
74

query II rowsort
SELECT + + col2 * - + 47, col0 AS col0 FROM tab1 AS cor0
----
-2773
85
-3196
91
-4512
51

onlyif mysql # aggregate syntax: 
query II rowsort label-8444
SELECT ALL - - MAX( ALL - col2 ) AS col0, - COUNT( * ) * + 48 * 61 * 86 FROM tab0 AS cor0
----
-10
-755424

skipif mysql # not compatible
query II rowsort label-8444
SELECT ALL - - MAX ( ALL - col2 ) AS col0, - COUNT ( * ) * + 48 * 61 * 86 FROM tab0 AS cor0
----
-10
-755424

query II rowsort
SELECT 6, col2 FROM tab1 cor0
----
6
59
6
68
6
96

query II rowsort
SELECT ALL - + 17 AS col2, 67 AS col2 FROM tab1 AS cor0
----
-17
67
-17
67
-17
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8447
SELECT MIN( + - col2 ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-8447
SELECT MIN ( + - col2 ) FROM tab2 AS cor0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8448
SELECT DISTINCT + 84 * + + COUNT( * ) FROM tab2
----
252

skipif mysql # not compatible
query I rowsort label-8448
SELECT DISTINCT + 84 * + + COUNT ( * ) FROM tab2
----
252

onlyif mysql # aggregate syntax: 
query I rowsort label-8449
SELECT MIN( + ( 17 ) ) FROM tab0
----
17

skipif mysql # not compatible
query I rowsort label-8449
SELECT MIN ( + ( 17 ) ) FROM tab0
----
17

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 14 * - + col1 + + + col1 - + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8451
SELECT DISTINCT + - COUNT( * ) + + + COUNT( * ) col0 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-8451
SELECT DISTINCT + - COUNT ( * ) + + + COUNT ( * ) col0 FROM tab0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT col2 + - col0 * - 6 FROM tab0
----
137
532
681

query I rowsort
SELECT col2 + + ( col2 ) FROM tab1 WHERE NOT - - col2 IS NOT NULL
----

query I rowsort
SELECT ALL col2 AS col1 FROM tab0 WHERE + col2 IS NULL
----

query I rowsort
SELECT - col0 FROM tab0 WHERE NOT + 88 IS NULL
----
-15
-87
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-8456
SELECT + col2 + + - col0 - - col1 + + 26 - 76 DIV - col1 AS col0 FROM tab0 AS cor0
----
-27
105
139

skipif mysql # not compatible
query I rowsort label-8456
SELECT + col2 + + - col0 - - col1 + + 26 - 76 / - col1 AS col0 FROM tab0 AS cor0
----
-27
105
139

query I rowsort
SELECT DISTINCT 58 * - 64 AS col0 FROM tab2 AS cor0
----
-3712

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8458
SELECT ALL - ( CAST( + col2 AS SIGNED ) ) FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-8458
SELECT ALL - ( CAST ( + col2 AS INTEGER ) ) FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT ALL + col2 * + 85 FROM tab0
----
3995
8415
850

onlyif mysql # aggregate syntax: 
query I rowsort label-8460
SELECT - + MIN( - + ( + col2 ) ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-8460
SELECT - + MIN ( - + ( + col2 ) ) FROM tab1 AS cor0
----
96

query I rowsort
SELECT DISTINCT 22 + - 18 FROM tab2 AS cor0
----
4

query II rowsort
SELECT - col2, + col1 FROM tab2 AS cor0
----
-23
51
-40
77
-58
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8463
SELECT + - COUNT( ALL + col0 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8463
SELECT + - COUNT ( ALL + col0 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - 97 * + col0 AS col2 FROM tab0 AS cor0
----
-1455
-8439
-9409

query I rowsort
SELECT DISTINCT + 57 + + 59 AS col1 FROM tab1 cor0
----
116

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 37 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 AS col0 FROM tab0 WHERE + col1 NOT IN ( - col2 )
----
10
47
99

query I rowsort
SELECT ALL - col0 * - ( - + col1 ) AS col2 FROM tab1
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-8469
SELECT DISTINCT 81 + + COUNT( * ) AS col0 FROM tab2
----
84

skipif mysql # not compatible
query I rowsort label-8469
SELECT DISTINCT 81 + + COUNT ( * ) AS col0 FROM tab2
----
84

query I rowsort
SELECT 65 + + + col2 + - col1 FROM tab0
----
163
31
54

onlyif mysql # DIV for integer division: 
query I rowsort label-8471
SELECT + col2 DIV - ( - - col0 ) AS col1 FROM tab2 WHERE - - col2 * 96 * - col1 IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8471
SELECT + col2 / - ( - - col0 ) AS col1 FROM tab2 WHERE - - col2 * 96 * - col1 IS NOT NULL
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8472
SELECT DISTINCT - col2 DIV ( - 25 ) DIV - col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8472
SELECT DISTINCT - col2 / ( - 25 ) / - col1 FROM tab2
----
0

query II rowsort
SELECT DISTINCT - 83 + 70 AS col0, - 47 FROM tab1
----
-13
-47

query I rowsort
SELECT 14 * - col0 AS col1 FROM tab1
----
-1190
-1274
-714

query II rowsort
SELECT DISTINCT 57 * - col1 AS col1, + col2 AS col2 FROM tab2 AS cor0
----
-2907
23
-3819
58
-4389
40

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( col2, 12, 61 ) AND NOT 59 * - col0 NOT BETWEEN - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8477
SELECT + - COUNT( DISTINCT ( - 5 ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-1

skipif mysql # not compatible
query I rowsort label-8477
SELECT + - COUNT ( DISTINCT ( - 5 ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8478
SELECT DISTINCT - - 73 + SUM( 45 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
478

skipif mysql # not compatible
query I rowsort label-8478
SELECT DISTINCT - - 73 + SUM ( 45 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
478

query I rowsort
SELECT ALL 71 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

query I rowsort
SELECT - + ( - col0 ) * - - col1 FROM tab2 cor0
----
2346
4928
5025

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8481
SELECT - col1 AS col2, + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
-51
NULL
-67
NULL
-77
NULL

skipif mysql # not compatible
query II rowsort label-8481
SELECT - col1 AS col2, + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
-51
NULL
-67
NULL
-77
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8482
SELECT + ( COUNT( * ) ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND + col0
----
0

skipif mysql # not compatible
query I rowsort label-8482
SELECT + ( COUNT ( * ) ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND + col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8483
SELECT ALL + COUNT( * ) AS col2, - 51 FROM tab1
----
3
-51

skipif mysql # not compatible
query II rowsort label-8483
SELECT ALL + COUNT ( * ) AS col2, - 51 FROM tab1
----
3
-51

query II rowsort
SELECT ALL + 31 AS col0, col0 AS col2 FROM tab0
----
31
15
31
87
31
97

query I rowsort
SELECT col2 + + - col2 + - col1 AS col1 FROM tab1
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8486
SELECT ALL COUNT( - 64 ) col0 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8486
SELECT ALL COUNT ( - 64 ) col0 FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col2 FROM tab2 WHERE - 2 + + 68 BETWEEN - col0 * ( + col1 ) * + 65 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - ( - 93 ) NOT IN ( 55, - 72 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT col1, + 78 * + col1 AS col1 FROM tab2
----
51
3978
67
5226
77
6006

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8490
SELECT ALL col1 + - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8490
SELECT ALL col1 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8491
SELECT DISTINCT - SUM( - col0 ) * + 97 AS col0 FROM tab1 AS cor0
----
22019

skipif mysql # not compatible
query I rowsort label-8491
SELECT DISTINCT - SUM ( - col0 ) * + 97 AS col0 FROM tab1 AS cor0
----
22019

query I rowsort
SELECT DISTINCT - col0 + + 20 * + col0 + + 81 + col2 AS col2 FROM tab2 AS cor0
----
1337
1564
978

query I rowsort
SELECT DISTINCT + 28 * + + 18 FROM tab1
----
504

query I rowsort
SELECT - col1 + - 73 + - col1 * - col2 FROM tab0
----
116
25
3653

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 26 + + col1 col2, + col0 * col0 FROM tab2
----
25
2116
41
5625
51
4096

query I rowsort
SELECT col1 * + 30 + + - 30 + 90 FROM tab1
----
1470
210
480

onlyif mysql # aggregate syntax: 
query I rowsort label-8497
SELECT - 72 + + MIN( - col1 ) FROM tab1
----
-119

skipif mysql # not compatible
query I rowsort label-8497
SELECT - 72 + + MIN ( - col1 ) FROM tab1
----
-119

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL < + - ( + 54 )
----

query I rowsort
SELECT DISTINCT - col1 / - 81 AS col2 FROM tab1 AS cor0 WHERE NOT - 82 >= NULL
----

query I rowsort
SELECT DISTINCT + - 55 * 39 + + col0 FROM tab1 AS cor0
----
-2054
-2060
-2094

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8501
SELECT * FROM tab1 AS cor0 WHERE NULL >= - CAST( - + col0 AS SIGNED ) * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8501
SELECT * FROM tab1 AS cor0 WHERE NULL >= - CAST ( - + col0 AS INTEGER ) * CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - col0 + + 71 FROM tab1 AS cor0
----
-14
-20
20

onlyif mysql # DIV for integer division: 
query I rowsort label-8503
SELECT ALL - col1 DIV 98 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8503
SELECT ALL - col1 / 98 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + col2 * + ( + 79 ) + + 29 AS col2 FROM tab1 AS cor0
----
4690
5401
7613

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE + col1 IS NOT NULL
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-8506
SELECT DISTINCT - 45 col1, COUNT( * ) AS col0 FROM tab2
----
-45
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8506
SELECT DISTINCT - 45 col1, COUNT ( * ) AS col0 FROM tab2
----
-45
3

query II rowsort
SELECT ALL 57, - col1 AS col0 FROM tab2
----
57
-51
57
-67
57
-77

query I rowsort
SELECT DISTINCT 28 FROM tab1, tab2 cor0
----
28

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + col2 NOT BETWEEN + + col0 AND col2
----
15
81
47
97
1
99

query III rowsort
SELECT * FROM tab2 WHERE - - 56 * col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT NULL NOT BETWEEN NULL AND NULL )
----

query I rowsort
SELECT ALL 32 * - 83 FROM tab2
----
-2656
-2656
-2656

onlyif mysql # aggregate syntax: 
query I rowsort label-8513
SELECT MAX( ALL + 77 ) AS col2 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-8513
SELECT MAX ( ALL + 77 ) AS col2 FROM tab2 AS cor0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8514
SELECT ALL * FROM tab0 cor0 WHERE NOT CAST( col0 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8514
SELECT ALL * FROM tab0 cor0 WHERE NOT CAST ( col0 AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8515
SELECT DISTINCT ( + CAST( + + 67 AS SIGNED ) ) AS col0 FROM tab0
----
67

skipif mysql # not compatible
query I rowsort label-8515
SELECT DISTINCT ( + CAST ( + + 67 AS INTEGER ) ) AS col0 FROM tab0
----
67

onlyif mysql # DIV for integer division: 
query II rowsort label-8516
SELECT DISTINCT col1 DIV - - col2 AS col1, - col1 AS col0 FROM tab2
----
1
-67
1
-77
2
-51

skipif mysql # not compatible
query II rowsort label-8516
SELECT DISTINCT col1 / - - col2 AS col1, - col1 AS col0 FROM tab2
----
1
-67
1
-77
2
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8517
SELECT DISTINCT - MIN( DISTINCT - - 19 ) AS col0 FROM tab2 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-8517
SELECT DISTINCT - MIN ( DISTINCT - - 19 ) AS col0 FROM tab2 AS cor0
----
-19

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8518
SELECT - CAST( - - CAST( NULL AS DECIMAL ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8518
SELECT - CAST ( - - CAST ( NULL AS REAL ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( NOT ( 37 IS NOT NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 16 col0 FROM tab2 AS cor0
----
16
16
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8521
SELECT DISTINCT - MAX( DISTINCT - col2 ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-8521
SELECT DISTINCT - MAX ( DISTINCT - col2 ) FROM tab2 AS cor0
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8522
SELECT ALL - AVG ( - + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8522
SELECT ALL - AVG ( - + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8523
SELECT col0 DIV col2 * ( 48 ) AS col1 FROM tab2 WHERE NULL IS NULL
----
48
48
96

skipif mysql # not compatible
query I rowsort label-8523
SELECT col0 / col2 * ( 48 ) AS col1 FROM tab2 WHERE NULL IS NULL
----
48
48
96

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 BETWEEN ( + 45 ) AND + 14 * + + ( - col2 )
----

query I rowsort
SELECT DISTINCT + 7 * + col2 AS col2 FROM tab1
----
413
476
672

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 2 + - col2 col2 FROM tab1
----
-57
-66
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-8527
SELECT + - 11 + + COUNT( * ) * - - COUNT( * ) AS col2, 72 AS col1 FROM tab2 AS cor0
----
-2
72

skipif mysql # not compatible
query II rowsort label-8527
SELECT + - 11 + + COUNT ( * ) * - - COUNT ( * ) AS col2, 72 AS col1 FROM tab2 AS cor0
----
-2
72

query I rowsort
SELECT DISTINCT - - 45 + + 52 FROM tab0 AS cor0
----
97

query I rowsort
SELECT DISTINCT - col2 + ( - 84 ) AS col2 FROM tab0 AS cor0
----
-131
-183
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8530
SELECT - + col2 + + CAST( + 1 AS SIGNED ) FROM tab0 AS cor0
----
-46
-9
-98

skipif mysql # not compatible
query I rowsort label-8530
SELECT - + col2 + + CAST ( + 1 AS INTEGER ) FROM tab0 AS cor0
----
-46
-9
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-8531
SELECT DISTINCT - + MAX( DISTINCT col2 ) AS col2 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-8531
SELECT DISTINCT - + MAX ( DISTINCT col2 ) AS col2 FROM tab2 AS cor0
----
-58

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8532
SELECT - col1 + - + col0 + - CAST( col0 AS SIGNED ) + + + col2 + + col0 + + col2 DIV - + col1 * - col2 * col1 * + - ( - col0 ) AS col1 FROM tab2 AS cor0
----
-101
-74
-84

skipif mysql # not compatible
query I rowsort label-8532
SELECT - col1 + - + col0 + - CAST ( col0 AS INTEGER ) + + + col2 + + col0 + + col2 / - + col1 * - col2 * col1 * + - ( - col0 ) AS col1 FROM tab2 AS cor0
----
-101
-74
-84

query I rowsort
SELECT - 13 * - col1 + - + 57 + - col2 + + 7 FROM tab0 cor0
----
-136
213
956

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - 2 AS col2, 98 col0 FROM tab0 AS cor0
----
-2
98
-2
98
-2
98

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8535
SELECT DISTINCT * FROM tab0 WHERE - - col2 * col0 IN ( - + col1, + 83, - - col0 - + - col0 + + 84 * + CAST( - col1 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8535
SELECT DISTINCT * FROM tab0 WHERE - - col2 * col0 IN ( - + col1, + 83, - - col0 - + - col0 + + 84 * + CAST ( - col1 AS INTEGER ) )
----

query I rowsort
SELECT ALL + col0 + - col1 * - col2 FROM tab0
----
196
297
3822

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8537
SELECT col0, - CAST( NULL AS SIGNED ) FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-8537
SELECT col0, - CAST ( NULL AS INTEGER ) FROM tab0
----
15
NULL
87
NULL
97
NULL

query I rowsort
SELECT - 90 - 86 + - - col2 FROM tab2 AS cor0
----
-118
-136
-153

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8539
SELECT DISTINCT col0 - 42 * + 63 * + CAST( NULL AS DECIMAL ) - - col2 + + 99, + col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-8539
SELECT DISTINCT col0 - 42 * + 63 * + CAST ( NULL AS REAL ) - - col2 + + 99, + col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 72 - - - col1 col1 FROM tab0 cor0
----
-9
51
71

query I rowsort
SELECT DISTINCT 60 * 3 + col1 AS col1 FROM tab0 AS cor0
----
181
201
261

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8542
SELECT + COUNT( * ) - + + COUNT( * ) + - CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8542
SELECT + COUNT ( * ) - + + COUNT ( * ) + - CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + 88 FROM tab1 AS cor0 WHERE - 81 IS NOT NULL
----
88
88
88

query I rowsort
SELECT ALL - col0 - - + 11 FROM tab2 AS cor0
----
-35
-53
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-8545
SELECT - + COUNT( * ) FROM tab1 WHERE NOT ( - col1 ) >= 95
----
-3

skipif mysql # not compatible
query I rowsort label-8545
SELECT - + COUNT ( * ) FROM tab1 WHERE NOT ( - col1 ) >= 95
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-8546
SELECT + COUNT( * ) * + 25, - 10 AS col0 FROM tab1
----
75
-10

skipif mysql # not compatible
query II rowsort label-8546
SELECT + COUNT ( * ) * + 25, - 10 AS col0 FROM tab1
----
75
-10

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 21 BETWEEN NULL AND - col1 * - 75
----

query II rowsort
SELECT ALL 87 * 69, col2 - + 81 AS col2 FROM tab1
----
6003
-13
6003
-22
6003
15

query I rowsort
SELECT ALL + 79 * col0 * - col0 FROM tab1
----
-205479
-570775
-654199

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8550
SELECT ( + COUNT( * ) ) DIV + + COUNT( DISTINCT + + 19 ) + - + MAX( + + col0 ) + + 87 AS col1 FROM tab0
----
-7

skipif mysql # not compatible
query I rowsort label-8550
SELECT ( + COUNT ( * ) ) / + + COUNT ( DISTINCT + + 19 ) + - + MAX ( + + col0 ) + + 87 AS col1 FROM tab0
----
-7

query I rowsort
SELECT + 6 * - col1 FROM tab1
----
-282
-30
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-8552
SELECT DISTINCT - col2 DIV + 46 FROM tab1 AS cor0
----
-1
-2

skipif mysql # not compatible
query I rowsort label-8552
SELECT DISTINCT - col2 / + 46 FROM tab1 AS cor0
----
-1
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8553
SELECT DISTINCT ( + CAST( + + COUNT( * ) AS SIGNED ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8553
SELECT DISTINCT ( + CAST ( + + COUNT ( * ) AS INTEGER ) ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8554
SELECT ALL MIN( DISTINCT + - col2 ) * - 97 FROM tab0
----
9603

skipif mysql # not compatible
query I rowsort label-8554
SELECT ALL MIN ( DISTINCT + - col2 ) * - 97 FROM tab0
----
9603

query I rowsort
SELECT DISTINCT + col2 * 78 FROM tab2
----
1794
3120
4524

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + col1 + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT + - col0, + col2 AS col1 FROM tab0 AS cor0 WHERE NOT col1 + + + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8558
SELECT ALL - COUNT( * ) DIV + - ( + + 60 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8558
SELECT ALL - COUNT ( * ) / + - ( + + 60 ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8559
SELECT DISTINCT - SUM( DISTINCT + 94 ) FROM tab2 cor0
----
-94

skipif mysql # not compatible
query I rowsort label-8559
SELECT DISTINCT - SUM ( DISTINCT + 94 ) FROM tab2 cor0
----
-94

query I rowsort
SELECT col0 + 15 FROM tab1 cor0
----
100
106
66

query III rowsort
SELECT * FROM tab0 WHERE ( NULL BETWEEN NULL AND + 22 + - ( + + col2 ) + + 27 * + col0 * - col1 * + + col1 + - col2 )
----

query I rowsort
SELECT col0 + - 11 AS col2 FROM tab1
----
40
74
80

query I rowsort
SELECT + col2 FROM tab0 WHERE NULL = col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NOT col0 + + 92 < NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8565
SELECT DISTINCT MAX( DISTINCT - 65 ) + - 44 FROM tab2
----
-109

skipif mysql # not compatible
query I rowsort label-8565
SELECT DISTINCT MAX ( DISTINCT - 65 ) + - 44 FROM tab2
----
-109

query I rowsort
SELECT DISTINCT + col2 + 34 FROM tab0 cor0
----
133
44
81

query I rowsort
SELECT + 89 * - col0 - + col0 AS col2 FROM tab0 AS cor0
----
-1350
-7830
-8730

query I rowsort
SELECT - col0 - + + col2 * - ( - col2 ) FROM tab0 AS cor0
----
-187
-2224
-9898

onlyif mysql # aggregate syntax: 
query I rowsort label-8569
SELECT - COUNT( * ) FROM tab2 WHERE NULL BETWEEN + ( - + 52 ) AND + + col1
----
0

skipif mysql # not compatible
query I rowsort label-8569
SELECT - COUNT ( * ) FROM tab2 WHERE NULL BETWEEN + ( - + 52 ) AND + + col1
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - ( + - 19 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 32 + - - 37 col0 FROM tab2 AS cor0
----
5
5
5

onlyif mysql # aggregate syntax: 
query II rowsort label-8572
SELECT + + COUNT( * ) AS col2, + 96 + - 64 FROM tab1 cor0
----
3
32

skipif mysql # not compatible
query II rowsort label-8572
SELECT + + COUNT ( * ) AS col2, + 96 + - 64 FROM tab1 cor0
----
3
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8573
SELECT ALL - COUNT( ALL - 20 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8573
SELECT ALL - COUNT ( ALL - 20 ) FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8574
SELECT DISTINCT 18, CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
18
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8574
SELECT DISTINCT 18, CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
18
NULL

query I rowsort
SELECT DISTINCT ( 92 ) FROM tab1 AS cor0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8576
SELECT + SUM( + + col2 ) FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-8576
SELECT + SUM ( + + col2 ) FROM tab1
----
223

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-8577
SELECT DISTINCT + 60 AS col0, CAST( + MIN( ALL + col1 ) AS SIGNED ) AS col1, COUNT( * ) FROM tab1
----
60
5
3

skipif mysql # not compatible
query III rowsort label-8577
SELECT DISTINCT + 60 AS col0, CAST ( + MIN ( ALL + col1 ) AS INTEGER ) AS col1, COUNT ( * ) FROM tab1
----
60
5
3

query II rowsort
SELECT 80 AS col1, - 71 AS col2 FROM tab1
----
80
-71
80
-71
80
-71

query I rowsort
SELECT - - col1 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT ALL col1, 70 AS col0 FROM tab0
----
1
70
21
70
81
70

onlyif mysql # aggregate syntax: 
query II rowsort label-8581
SELECT DISTINCT + 8 AS col0, - COUNT( * ) AS col2 FROM tab2
----
8
-3

skipif mysql # not compatible
query II rowsort label-8581
SELECT DISTINCT + 8 AS col0, - COUNT ( * ) AS col2 FROM tab2
----
8
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-8582
SELECT ALL SUM( - - col0 ) AS col1, + 84 AS col2 FROM tab2
----
185
84

skipif mysql # not compatible
query II rowsort label-8582
SELECT ALL SUM ( - - col0 ) AS col1, + 84 AS col2 FROM tab2
----
185
84

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + ( + col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE NOT + 36 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 89 + + ( ( + - col2 ) ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8586
SELECT - - COUNT( * ) * - 43 + COUNT( * ) + - - COUNT( * ) * + ( + 86 ) FROM tab2 WHERE NOT NULL = - col0
----
0

skipif mysql # not compatible
query I rowsort label-8586
SELECT - - COUNT ( * ) * - 43 + COUNT ( * ) + - - COUNT ( * ) * + ( + 86 ) FROM tab2 WHERE NOT NULL = - col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8587
SELECT col1 DIV - 4 + + col1 AS col2 FROM tab0
----
1
16
61

skipif mysql # not compatible
query I rowsort label-8587
SELECT col1 / - 4 + + col1 AS col2 FROM tab0
----
1
16
61

query I rowsort
SELECT ALL 24 + ( - + 73 ) FROM tab0
----
-49
-49
-49

query I rowsort
SELECT ALL - 71 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062

query I rowsort
SELECT DISTINCT - 81 + + col0 FROM tab2 AS cor0
----
-17
-35
-6

query II rowsort
SELECT + - 16 * - col0 AS col1, 53 * - ( - col0 ) + + 3 * ( - - col1 ) AS col2 FROM tab1 AS cor0
----
1360
4520
1456
4964
816
2745

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8592
SELECT COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IN ( + col2 - + 43 * 82 * CAST( NULL AS SIGNED ), - ( + CAST( - 56 AS SIGNED ) ) / - + col2 + - - ( - CAST( NULL AS SIGNED ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-8592
SELECT COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IN ( + col2 - + 43 * 82 * CAST ( NULL AS INTEGER ), - ( + CAST ( - 56 AS INTEGER ) ) / - + col2 + - - ( - CAST ( NULL AS INTEGER ) ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8593
SELECT DISTINCT - - MAX( ALL + col1 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-8593
SELECT DISTINCT - - MAX ( ALL + col1 ) FROM tab0 AS cor0
----
81

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 < ( col0 )
----

query II rowsort
SELECT 17 * - - col1, col2 FROM tab0 AS cor0
----
1377
47
17
99
357
10

query II rowsort
SELECT DISTINCT 16 * - - col2, col0 FROM tab1 AS cor0
----
1088
91
1536
51
944
85

query I rowsort
SELECT DISTINCT col1 * - - 46 AS col2 FROM tab0
----
3726
46
966

query II rowsort
SELECT col0 * + + col0 + + + 25 AS col2, + 2 FROM tab2
----
2141
2
4121
2
5650
2

onlyif mysql # DIV for integer division: 
query I rowsort label-8599
SELECT DISTINCT col1 DIV + 36 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-8599
SELECT DISTINCT col1 / + 36 FROM tab1
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 12 + - 8 col0 FROM tab0
----
4
4
4

query I rowsort
SELECT 6 * - 65 * + col2 * + col1 + + col2 AS col0 FROM tab2
----
-1201160
-1515482
-457447

onlyif mysql # aggregate syntax: 
query I rowsort label-8602
SELECT - COUNT( * ) + - 8 FROM tab2 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-8602
SELECT - COUNT ( * ) + - 8 FROM tab2 AS cor0
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8603
SELECT + col2, - ( col0 ) * - 17 * - 93 * CAST( - - col0 AS SIGNED ) + + - 40 * + col0 AS col0 FROM tab2 AS cor0
----
23
-3347236
40
-6478336
58
-8896125

skipif mysql # not compatible
query II rowsort label-8603
SELECT + col2, - ( col0 ) * - 17 * - 93 * CAST ( - - col0 AS INTEGER ) + + - 40 * + col0 AS col0 FROM tab2 AS cor0
----
23
-3347236
40
-6478336
58
-8896125

query I rowsort
SELECT - + 20 FROM tab0 cor0
----
-20
-20
-20

query I rowsort
SELECT col0 * ( + 71 ) FROM tab2
----
3266
4544
5325

query I rowsort
SELECT + 18 * + - col0 * + col2 AS col1 FROM tab2 AS cor0
----
-19044
-46080
-78300

query I rowsort
SELECT DISTINCT - ( + - 31 ) AS col1 FROM tab0 AS cor0
----
31

query I rowsort
SELECT ALL col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 67 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( ( + col1 ) ) > - col0 * col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8611
SELECT CAST( - col0 AS SIGNED ) * + col1 AS col0 FROM tab1
----
-425
-4277
-714

skipif mysql # not compatible
query I rowsort label-8611
SELECT CAST ( - col0 AS INTEGER ) * + col1 AS col0 FROM tab1
----
-425
-4277
-714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + col2 col1 FROM tab0 WHERE NOT + 8 IS NULL
----
100
128
31

query I rowsort
SELECT 37 * - col2 AS col1 FROM tab2
----
-1480
-2146
-851

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8614
SELECT + COUNT( + col2 ) DIV + 66 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8614
SELECT + COUNT ( + col2 ) / + 66 FROM tab0
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 / + col2 + + ( 90 ) + 42 * + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + 43 * - + 75 AS col2 FROM tab1 AS cor0
----
-3225
-3225
-3225

query I rowsort
SELECT DISTINCT 84 AS col1 FROM tab1 cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT ALL - 57 * col1 AS col0 FROM tab0
----
-1197
-4617
-57

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8619
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 25 + + CAST( NULL AS DECIMAL ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-8619
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 25 + + CAST ( NULL AS REAL ) <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8620
SELECT DISTINCT + + col1 * + col1 + - + col1 + - CAST( NULL AS SIGNED ) * - - col2 + + 46 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8620
SELECT DISTINCT + + col1 * + col1 + - + col1 + - CAST ( NULL AS INTEGER ) * - - col2 + + 46 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8621
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 * - - col0 = + 15 * CAST( NULL AS SIGNED ) + + col2 * - 85 * - - col1
----

skipif mysql # not compatible
query III rowsort label-8621
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 * - - col0 = + 15 * CAST ( NULL AS INTEGER ) + + col2 * - 85 * - - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8622
SELECT + col1 + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8622
SELECT + col1 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 + - 6 AS col2 FROM tab0 AS cor0
----
-27
-7
-87

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT + - 35 * - + col2 BETWEEN - + 35 * - col1 / 50 - col2 AND + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL < 72 - - - col2 * + + col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 * - + col2 + - + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 86 * - ( + col1 ) * - 84 FROM tab0
----
151704
585144
7224

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8628
SELECT + col0 * - - CAST( - 70 AS SIGNED ) col0 FROM tab2
----
-3220
-4480
-5250

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8628
SELECT + col0 * - - CAST ( - 70 AS INTEGER ) col0 FROM tab2
----
-3220
-4480
-5250

query II rowsort
SELECT DISTINCT - col0 * 70 AS col2, 96 + + + col1 AS col0 FROM tab1
----
-3570
110
-5950
101
-6370
143

query II rowsort
SELECT DISTINCT - 47 * col2 + - col0 AS col0, - 47 FROM tab2
----
-1127
-47
-1944
-47
-2801
-47

query I rowsort
SELECT - - 52 FROM tab2 WHERE NULL IS NULL
----
52
52
52

query I rowsort
SELECT - 38 FROM tab1 WHERE - - col2 * col0 IS NOT NULL
----
-38
-38
-38

query I rowsort
SELECT DISTINCT ( - 27 ) AS col1 FROM tab2
----
-27

query I rowsort
SELECT DISTINCT - ( col2 ) + + col0 * col1 AS col1 FROM tab1
----
366
4209
618

query I rowsort
SELECT ALL + + col0 + + 99 + - + ( col2 ) FROM tab1 AS cor0
----
122
125
54

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8636
SELECT * FROM tab1 AS cor0 WHERE + col2 * + - CAST( + col1 AS DECIMAL ) + - col1 < NULL
----

skipif mysql # not compatible
query III rowsort label-8636
SELECT * FROM tab1 AS cor0 WHERE + col2 * + - CAST ( + col1 AS REAL ) + - col1 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8637
SELECT DISTINCT CAST( 71 AS SIGNED ) FROM tab2
----
71

skipif mysql # not compatible
query I rowsort label-8637
SELECT DISTINCT CAST ( 71 AS INTEGER ) FROM tab2
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8638
SELECT + CAST( NULL AS SIGNED ) * col2 * - 18 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8638
SELECT + CAST ( NULL AS INTEGER ) * col2 * - 18 AS col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 74 <> + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 71 col0 FROM tab1 cor0
----
-71
-71
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-8641
SELECT DISTINCT - - MIN( ALL - col0 ) col0 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8641
SELECT DISTINCT - - MIN ( ALL - col0 ) col0 FROM tab0 AS cor0
----
-97

query I rowsort
SELECT + col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col2 * - - 56
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 * - ( - col2 ) < NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 20 * - + ( + - 68 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + + col1 NOT BETWEEN col0 * - col0 / + 91 / col1 AND - - 25
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col1 + - 9 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 / col0 * + 14 IS NOT NULL
----

query I rowsort
SELECT + col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + ( 10 ) + - 33
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8649
SELECT ALL + SUM( DISTINCT - col1 ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-8649
SELECT ALL + SUM ( DISTINCT - col1 ) FROM tab2 AS cor0
----
-195

query I rowsort
SELECT - ( + 20 ) AS col2 FROM tab0
----
-20
-20
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8651
SELECT COUNT( * ) * CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-8651
SELECT COUNT ( * ) * CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab2
----
9

query I rowsort
SELECT DISTINCT col1 * ( - col2 ) + col0 FROM tab0 AS cor0
----
-123
-2
-3792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 53 - + ( 41 ) AS col0, - 90 col0 FROM tab0 AS cor0
----
-94
-90
-94
-90
-94
-90

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT IN ( ( - col1 ) )
----

query I rowsort
SELECT DISTINCT + col0 + + 93 AS col2 FROM tab1
----
144
178
184

query I rowsort
SELECT - col1 + + 83 AS col0 FROM tab1
----
36
69
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8657
SELECT 86 + + + COUNT( * ) * - MAX( ALL + 75 ) AS col0 FROM tab2
----
-139

skipif mysql # not compatible
query I rowsort label-8657
SELECT 86 + + + COUNT ( * ) * - MAX ( ALL + 75 ) AS col0 FROM tab2
----
-139

query II rowsort
SELECT DISTINCT + col2 + + + col1 AS col2, + 74 * - col0 + - + ( - col2 ) + col1 + + - col2 FROM tab0
----
100
-7177
128
-1029
31
-6417

query I rowsort
SELECT DISTINCT - + col2 + + col1 AS col1 FROM tab2 AS cor0
----
28
37
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8660
SELECT * FROM tab0 AS cor0 WHERE + CAST( NULL AS SIGNED ) * - col2 * ( + + 88 ) + ( - col1 ) / - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8660
SELECT * FROM tab0 AS cor0 WHERE + CAST ( NULL AS INTEGER ) * - col2 * ( + + 88 ) + ( - col1 ) / - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8661
SELECT ALL + CAST( NULL AS SIGNED ), + col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col0, 18 )
----

skipif mysql # not compatible
query II rowsort label-8661
SELECT ALL + CAST ( NULL AS INTEGER ), + col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col0, 18 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8662
SELECT ( - ( - COUNT( * ) ) ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8662
SELECT ( - ( - COUNT ( * ) ) ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8663
SELECT DISTINCT + COUNT( * ) DIV - COUNT( * ) AS col2, CAST( NULL AS SIGNED ) * + COUNT( * ) + 2 DIV - 9 FROM tab2 AS cor0
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-8663
SELECT DISTINCT + COUNT ( * ) / - COUNT ( * ) AS col2, CAST ( NULL AS INTEGER ) * + COUNT ( * ) + 2 / - 9 FROM tab2 AS cor0
----
-1
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 97 >= + col1 + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8665
SELECT DISTINCT - MAX( ALL - 4 ) col1 FROM tab1
----
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8665
SELECT DISTINCT - MAX ( ALL - 4 ) col1 FROM tab1
----
4

query III rowsort
SELECT ALL * FROM tab2 WHERE + - col1 / 63 / ( - col0 ) < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8667
SELECT ALL + col1 DIV - + col0 * + + 24 - 37 AS col0 FROM tab1 AS cor0
----
-37
-37
-37

skipif mysql # not compatible
query I rowsort label-8667
SELECT ALL + col1 / - + col0 * + + 24 - 37 AS col0 FROM tab1 AS cor0
----
-37
-37
-37

query I rowsort
SELECT DISTINCT - col0 + + col0 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NOT ( - col2 ) <= NULL
----

query I rowsort
SELECT DISTINCT + + 13 * + col2 FROM tab2 WHERE + + col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8671
SELECT 31 DIV - + col0 + - - col1 AS col1 FROM tab0
----
1
21
79

skipif mysql # not compatible
query I rowsort label-8671
SELECT 31 / - + col0 + - - col1 AS col1 FROM tab0
----
1
21
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8672
SELECT ALL MIN( ( + 30 ) ) AS col0 FROM tab0, tab0 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-8672
SELECT ALL MIN ( ( + 30 ) ) AS col0 FROM tab0, tab0 AS cor0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8673
SELECT ALL - COUNT( * ) - - MAX( + + 37 ) AS col1 FROM tab1 cor0
----
34

skipif mysql # not compatible
query I rowsort label-8673
SELECT ALL - COUNT ( * ) - - MAX ( + + 37 ) AS col1 FROM tab1 cor0
----
34

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8674
SELECT ALL col0 * + + 99 * col1 / - CAST( NULL AS DECIMAL ) + - - col0 + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8674
SELECT ALL col0 * + + 99 * col1 / - CAST ( NULL AS REAL ) + - - col0 + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 37 + col2 col2 FROM tab0 AS cor0
----
136
47
84

onlyif mysql # DIV for integer division: 
query I rowsort label-8676
SELECT ALL + + col0 - + col1 + - - col1 DIV + 77 AS col1 FROM tab0 AS cor0
----
-65
66
96

skipif mysql # not compatible
query I rowsort label-8676
SELECT ALL + + col0 - + col1 + - - col1 / + 77 AS col1 FROM tab0 AS cor0
----
-65
66
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8677
SELECT - MAX( - col0 ) col1 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8677
SELECT - MAX ( - col0 ) col1 FROM tab0 AS cor0
----
15

query I rowsort
SELECT + + 64 AS col2 FROM tab2 cor0
----
64
64
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8679
SELECT ALL MAX( + + col1 ) - + MAX( ALL col2 ) AS col2 FROM tab2
----
19

skipif mysql # not compatible
query I rowsort label-8679
SELECT ALL MAX ( + + col1 ) - + MAX ( ALL col2 ) AS col2 FROM tab2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8680
SELECT + COUNT( * ) - + 61 FROM tab1
----
-58

skipif mysql # not compatible
query I rowsort label-8680
SELECT + COUNT ( * ) - + 61 FROM tab1
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8681
SELECT DISTINCT + COUNT( DISTINCT - ( + - col2 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8681
SELECT DISTINCT + COUNT ( DISTINCT - ( + - col2 ) ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8682
SELECT ALL + MAX( DISTINCT + + col1 ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-8682
SELECT ALL + MAX ( DISTINCT + + col1 ) FROM tab1
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8683
SELECT + col2 + + CAST( col1 AS SIGNED ) AS col0, col1 / + 25 FROM tab1 WHERE NOT NULL < + - 36
----

skipif mysql # not compatible
query II rowsort label-8683
SELECT + col2 + + CAST ( col1 AS INTEGER ) AS col0, col1 / + 25 FROM tab1 WHERE NOT NULL < + - 36
----

query I rowsort
SELECT - - 8 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

onlyif mysql # aggregate syntax: 
query I rowsort label-8685
SELECT DISTINCT - + COUNT( * ) * - 20 col0 FROM tab2 AS cor0
----
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8685
SELECT DISTINCT - + COUNT ( * ) * - 20 col0 FROM tab2 AS cor0
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-8686
SELECT DISTINCT - - col0 DIV 41 FROM tab1 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-8686
SELECT DISTINCT - - col0 / 41 FROM tab1 AS cor0
----
1
2

query II rowsort
SELECT ALL 42 AS col2, - col2 * + col1 * 31 * + col1 FROM tab0 AS cor0
----
42
-136710
42
-3069
42
-9559377

query I rowsort
SELECT + ( + col1 ) * - col2 AS col0 FROM tab2 AS cor0
----
-1173
-3080
-3886

query I rowsort
SELECT DISTINCT + 27 * + col1 AS col0 FROM tab0 AS cor0
----
2187
27
567

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8690
SELECT CAST( NULL AS SIGNED ) * - - 81 AS col0, col0 AS col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-8690
SELECT CAST ( NULL AS INTEGER ) * - - 81 AS col0, col0 AS col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8691
SELECT - COUNT( * ) * - 81 FROM tab2 cor0
----
243

skipif mysql # not compatible
query I rowsort label-8691
SELECT - COUNT ( * ) * - 81 FROM tab2 cor0
----
243

query III rowsort
SELECT + col1 AS col1, + col1, - + 50 FROM tab1 AS cor0
----
9 values hashing to 15251c9d124d546807eb662a510cc609

query I rowsort
SELECT - 45 * col1 + - + col1 + + - col2 FROM tab0 AS cor0
----
-145
-3773
-976

onlyif mysql # DIV for integer division: 
query I rowsort label-8694
SELECT ALL - - col2 DIV col0 * - 77 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8694
SELECT ALL - - col2 / col0 * - 77 AS col1 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + ( + + col0 ) IS NULL
----

query I rowsort
SELECT DISTINCT + ( + col2 ) * 24 FROM tab0 cor0
----
1128
2376
240

onlyif mysql # aggregate syntax: 
query II rowsort label-8698
SELECT ALL - COUNT( * ) * - - 52 col0, - ( - - SUM( col2 ) ) FROM tab0 AS cor0
----
-156
-156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8698
SELECT ALL - COUNT ( * ) * - - 52 col0, - ( - - SUM ( col2 ) ) FROM tab0 AS cor0
----
-156
-156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 24 col2 FROM tab2 cor0
----
-24
-24
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8700
SELECT MIN( ALL - + 52 ) DIV + SUM( - 64 ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8700
SELECT MIN ( ALL - + 52 ) / + SUM ( - 64 ) AS col0 FROM tab0
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 = + - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8702
SELECT DISTINCT + 47 + - + ( 22 ) + - ( 48 ) DIV col0 AS col1 FROM tab0 AS cor0
----
22
25

skipif mysql # not compatible
query I rowsort label-8702
SELECT DISTINCT + 47 + - + ( 22 ) + - ( 48 ) / col0 AS col1 FROM tab0 AS cor0
----
22
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8703
SELECT + + 13 + - + COUNT( * ) col1, - COUNT( * ) DIV + 78 AS col2 FROM tab1 cor0
----
10
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8703
SELECT + + 13 + - + COUNT ( * ) col1, - COUNT ( * ) / + 78 AS col2 FROM tab1 cor0
----
10
0

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( NULL ) <= - - 58 + + - col1 * - 39 * + 78 * - col2 * - 82
----

query I rowsort
SELECT - + col2 + 15 - 61 AS col2 FROM tab0 WHERE + - col1 <> col0
----
-145
-56
-93

query II rowsort
SELECT + - col0 AS col2, - col1 AS col1 FROM tab2 WHERE NULL NOT BETWEEN col1 AND - - col0 * + + col0 / col1 + + col2
----

query I rowsort
SELECT ALL - col0 + col2 + + + 25 AS col0 FROM tab0 AS cor0
----
-52
27
57

onlyif mysql # aggregate syntax: 
query II rowsort label-8708
SELECT + MAX( - col0 ) - + - 62 col0, + 36 * COUNT( * ) FROM tab2 AS cor0
----
16
108

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8708
SELECT + MAX ( - col0 ) - + - 62 col0, + 36 * COUNT ( * ) FROM tab2 AS cor0
----
16
108

query I rowsort
SELECT DISTINCT - 14 + + col0 FROM tab2 cor0
----
32
50
61

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8710
SELECT DISTINCT col1 + + 70, CAST( NULL AS SIGNED ) / + ( + col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
117
NULL
75
NULL
84
NULL

skipif mysql # not compatible
query II rowsort label-8710
SELECT DISTINCT col1 + + 70, CAST ( NULL AS INTEGER ) / + ( + col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
117
NULL
75
NULL
84
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8711
SELECT ALL + + CAST( - 19 AS SIGNED ) + + - col0 AS col1 FROM tab1 AS cor0
----
-104
-110
-70

skipif mysql # not compatible
query I rowsort label-8711
SELECT ALL + + CAST ( - 19 AS INTEGER ) + + - col0 AS col1 FROM tab1 AS cor0
----
-104
-110
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-8712
SELECT ALL - + COUNT( * ) FROM tab2 WHERE NOT NULL BETWEEN + col1 AND - col2
----
0

skipif mysql # not compatible
query I rowsort label-8712
SELECT ALL - + COUNT ( * ) FROM tab2 WHERE NOT NULL BETWEEN + col1 AND - col2
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + ( - + col0 ) + - 31 < NULL
----

query I rowsort
SELECT ALL + col1 * - col0 * - + 47 FROM tab1
----
19975
201019
33558

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8715
SELECT + ( - + CAST( NULL AS SIGNED ) ) + - - col2 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8715
SELECT + ( - + CAST ( NULL AS INTEGER ) ) + - - col2 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 38 + - 63 FROM tab0
----
-25
-25
-25

query I rowsort
SELECT - col1 * + - 8 FROM tab1
----
112
376
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8718
SELECT ( COUNT( * ) ) * - + COUNT( * ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-8718
SELECT ( COUNT ( * ) ) * - + COUNT ( * ) FROM tab0
----
-9

query I rowsort
SELECT ALL + + col0 FROM tab2 WHERE NOT + 36 * ( col0 ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8720
SELECT ALL COUNT( - 23 ) col2 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8720
SELECT ALL COUNT ( - 23 ) col2 FROM tab2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8721
SELECT + 22 DIV + - 17 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8721
SELECT + 22 / + - 17 FROM tab0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8722
SELECT ALL - + COUNT( DISTINCT - 0 ) col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8722
SELECT ALL - + COUNT ( DISTINCT - 0 ) col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8723
SELECT - + 53 AS col2, - 76 * COUNT( * ) - + + SUM( ALL - 74 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-53
-18

skipif mysql # not compatible
query II rowsort label-8723
SELECT - + 53 AS col2, - 76 * COUNT ( * ) - + + SUM ( ALL - 74 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-53
-18

query I rowsort
SELECT ALL - ( + - 34 ) AS col2 FROM tab0
----
34
34
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8725
SELECT - COUNT( * ) DIV + 29 AS col2 FROM tab2, tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8725
SELECT - COUNT ( * ) / + 29 AS col2 FROM tab2, tab0 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 84 * + 30 + + 85 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8727
SELECT ALL 24 + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-8727
SELECT ALL 24 + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
27

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 - + col1 < + 74
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL = + 48
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8730
SELECT ALL CAST( 4 AS SIGNED ) FROM tab2 AS cor0
----
4
4
4

skipif mysql # not compatible
query I rowsort label-8730
SELECT ALL CAST ( 4 AS INTEGER ) FROM tab2 AS cor0
----
4
4
4

query I rowsort
SELECT DISTINCT - 81 * + 43 AS col0 FROM tab1 cor0
----
-3483

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8732
SELECT - + col0 + - - 69 - + + col2 + + + 25 * + CAST( - col2 AS SIGNED ) FROM tab0 AS cor0
----
-1168
-2602
-278

skipif mysql # not compatible
query I rowsort label-8732
SELECT - + col0 + - - 69 - + + col2 + + + 25 * + CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0
----
-1168
-2602
-278

query I rowsort
SELECT DISTINCT - - ( + 76 ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + col0 * ( 46 ) FROM tab2
----
2116
2944
3450

onlyif mysql # aggregate syntax: 
query I rowsort label-8735
SELECT MAX( 42 ) FROM tab1
----
42

skipif mysql # not compatible
query I rowsort label-8735
SELECT MAX ( 42 ) FROM tab1
----
42

query II rowsort
SELECT 41 AS col0, col0 AS col2 FROM tab2
----
41
46
41
64
41
75

query III rowsort
SELECT * FROM tab2 WHERE + 62 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - col0 + + - col2 col1 FROM tab2
----
-1081
-2600
-4408

onlyif mysql # aggregate syntax: 
query I rowsort label-8739
SELECT ALL + COUNT( * ) * - + COUNT( DISTINCT + col2 ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-8739
SELECT ALL + COUNT ( * ) * - + COUNT ( DISTINCT + col2 ) FROM tab0
----
-9

query II rowsort
SELECT + ( - - col0 ) AS col1, - 0 AS col0 FROM tab2
----
46
0
64
0
75
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN + + col2 AND + col1
----

query II rowsort
SELECT ALL - 48 AS col1, col2 FROM tab2 cor0
----
-48
23
-48
40
-48
58

query I rowsort
SELECT ALL + col0 * + + col1 * - - col0 AS col0 FROM tab1 cor0
----
36125
36414
389207

query I rowsort
SELECT col1 FROM tab1 cor0 WHERE col1 * + col0 > - + 28
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT - 97 IS NULL )
----

query I rowsort
SELECT ALL - + 67 + + col2 AS col0 FROM tab0 AS cor0
----
-20
-57
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8747
SELECT - COUNT( - + 0 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8747
SELECT - COUNT ( - + 0 ) FROM tab0 AS cor0
----
-3

query II rowsort
SELECT DISTINCT + col2, col1 + + col0 FROM tab0 AS cor0 WHERE + col0 + col1 NOT BETWEEN + + col0 AND 45 + + 18
----
10
108
47
96
99
98

query I rowsort
SELECT ALL col1 + - col2 * - 56 AS col1 FROM tab0 AS cor0
----
2713
5545
581

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + ( 67 ) BETWEEN NULL AND - 55 + - col0
----

query I rowsort
SELECT DISTINCT - + col2 - col1 * - + col2 AS col2 FROM tab1 AS cor0
----
1248
236
3128

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 3 col1 FROM tab1 AS cor0
----
3
3
3

query II rowsort
SELECT col1, col1 * col0 FROM tab0
----
1
97
21
1827
81
1215

query I rowsort
SELECT + col0 * - 2 FROM tab1
----
-102
-170
-182

query II rowsort
SELECT ALL 63, col2 * + - col2 + 93 + 51 AS col2 FROM tab2
----
63
-1456
63
-3220
63
-385

onlyif mysql # aggregate syntax: 
query I rowsort label-8756
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab2 WHERE NOT ( col0 NOT BETWEEN NULL AND col0 )
----
0

skipif mysql # not compatible
query I rowsort label-8756
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab2 WHERE NOT ( col0 NOT BETWEEN NULL AND col0 )
----
0

query I rowsort
SELECT DISTINCT + ( + 11 ) AS col0 FROM tab1
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8758
SELECT ALL + CAST( + 31 AS SIGNED ) FROM tab1 AS cor0
----
31
31
31

skipif mysql # not compatible
query I rowsort label-8758
SELECT ALL + CAST ( + 31 AS INTEGER ) FROM tab1 AS cor0
----
31
31
31

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8759
SELECT ALL * FROM tab0 AS cor0 WHERE CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8759
SELECT ALL * FROM tab0 AS cor0 WHERE CAST ( NULL AS REAL ) IS NOT NULL
----

query I rowsort
SELECT col2 AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN 8 / 95 + 53 AND ( NULL )
----

query I rowsort
SELECT - ( ( - col2 ) ) AS col2 FROM tab2
----
23
40
58

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL > ( 51 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8763
SELECT + COUNT( * ) FROM tab0 WHERE NOT col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8763
SELECT + COUNT ( * ) FROM tab0 WHERE NOT col2 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT col2 + 95 AS col1 FROM tab1
----
154
163
191

query III rowsort
SELECT * FROM tab2 WHERE ( col0 ) IN ( col0 + 17 )
----

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) IN ( 16 * - 35 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8767
SELECT - col0 DIV col0 - col1 * col1 AS col2 FROM tab0
----
-2
-442
-6562

skipif mysql # not compatible
query I rowsort label-8767
SELECT - col0 / col0 - col1 * col1 AS col2 FROM tab0
----
-2
-442
-6562

onlyif mysql # aggregate syntax: 
query I rowsort label-8768
SELECT ALL SUM( col0 ) + COUNT( + 92 + 59 ) AS col2 FROM tab0
----
202

skipif mysql # not compatible
query I rowsort label-8768
SELECT ALL SUM ( col0 ) + COUNT ( + 92 + 59 ) AS col2 FROM tab0
----
202

onlyif mysql # aggregate syntax: 
query I rowsort label-8769
SELECT ALL 90 + COUNT( * ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
93

skipif mysql # not compatible
query I rowsort label-8769
SELECT ALL 90 + COUNT ( * ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-8770
SELECT + 12 - col2 DIV - col2 FROM tab2
----
13
13
13

skipif mysql # not compatible
query I rowsort label-8770
SELECT + 12 - col2 / - col2 FROM tab2
----
13
13
13

query I rowsort
SELECT ALL + col0 / col1 FROM tab1 WHERE NOT ( - col0 / - col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8772
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 WHERE NOT - col2 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-8772
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 WHERE NOT - col2 <> NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8773
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab0 WHERE NOT + col2 NOT BETWEEN ( + col1 ) AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8773
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab0 WHERE NOT + col2 NOT BETWEEN ( + col1 ) AND ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8774
SELECT ALL - 8 * COUNT( * ) FROM tab1
----
-24

skipif mysql # not compatible
query I rowsort label-8774
SELECT ALL - 8 * COUNT ( * ) FROM tab1
----
-24

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) BETWEEN col2 * - col2 - + 16 / ( col1 ) AND ( col1 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 / 18 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 43 + - col2 FROM tab0
----
-4
-56
33

query I rowsort
SELECT ALL + 58 FROM tab0 WHERE NULL <> - ( col2 ) + ( - col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE + 36 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8780
SELECT DISTINCT - SUM( DISTINCT col2 ) + + COUNT( * ) FROM tab1
----
-220

skipif mysql # not compatible
query I rowsort label-8780
SELECT DISTINCT - SUM ( DISTINCT col2 ) + + COUNT ( * ) FROM tab1
----
-220

query III rowsort
SELECT * FROM tab0 WHERE + col0 > col1 * 39
----
97
1
99

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL BETWEEN - 40 AND col1
----

query I rowsort
SELECT - ( ( col0 ) ) * col1 FROM tab2
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-8784
SELECT ALL 6 + + COUNT( * ) * + 43 FROM tab2
----
135

skipif mysql # not compatible
query I rowsort label-8784
SELECT ALL 6 + + COUNT ( * ) * + 43 FROM tab2
----
135

query I rowsort
SELECT DISTINCT - col0 + + 69 AS col1 FROM tab2 AS cor0
----
-6
23
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8786
SELECT ALL + MIN( ALL col0 ) * 18 FROM tab0 AS cor0
----
270

skipif mysql # not compatible
query I rowsort label-8786
SELECT ALL + MIN ( ALL col0 ) * 18 FROM tab0 AS cor0
----
270

query I rowsort
SELECT ALL - 4 FROM tab1 cor0 WHERE + 78 > + 37 - + col0
----
-4
-4
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8788
SELECT DISTINCT + CAST( - 18 AS SIGNED ) * - 14 FROM tab2 AS cor0
----
252

skipif mysql # not compatible
query I rowsort label-8788
SELECT DISTINCT + CAST ( - 18 AS INTEGER ) * - 14 FROM tab2 AS cor0
----
252

onlyif mysql # aggregate syntax: 
query I rowsort label-8789
SELECT ALL - MIN( DISTINCT col1 ) * 38 AS col0 FROM tab1 cor0
----
-190

skipif mysql # not compatible
query I rowsort label-8789
SELECT ALL - MIN ( DISTINCT col1 ) * 38 AS col0 FROM tab1 cor0
----
-190

onlyif mysql # aggregate syntax: 
query I rowsort label-8790
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8790
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + col0 * - col0 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL < col1 / + 50 + + col2 * col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8793
SELECT + col0 - + CAST( NULL AS DECIMAL ) * 72 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8793
SELECT + col0 - + CAST ( NULL AS REAL ) * 72 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 16 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - ( + col2 ) * - col2 - col1 FROM tab2 AS cor0
----
1523
3297
478

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 - 38 col0 FROM tab1 AS cor0
----
-43
-52
-85

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE + col2 * 49 <= ( - col0 )
----

query I rowsort
SELECT DISTINCT - col2 * + col1 AS col2 FROM tab1 cor0
----
-1344
-295
-3196

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8799
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE NOT + col0 / + CAST( col0 * - 40 AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8799
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE NOT + col0 / + CAST ( col0 * - 40 AS REAL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 NOT BETWEEN ( 66 ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8801
SELECT - COUNT( * ) col0 FROM tab1 WHERE NOT + col0 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8801
SELECT - COUNT ( * ) col0 FROM tab1 WHERE NOT + col0 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8802
SELECT + CAST( NULL AS SIGNED ) AS col1 FROM tab1 WHERE NOT NULL NOT IN ( col2 + + 35 )
----

skipif mysql # not compatible
query I rowsort label-8802
SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 WHERE NOT NULL NOT IN ( col2 + + 35 )
----

query I rowsort
SELECT DISTINCT 74 * col0 FROM tab0 WHERE NOT ( - col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8804
SELECT + MAX( ALL - 93 ) AS col2 FROM tab0 WHERE NULL <> NULL OR NOT 42 IS NULL
----
-93

skipif mysql # not compatible
query I rowsort label-8804
SELECT + MAX ( ALL - 93 ) AS col2 FROM tab0 WHERE NULL <> NULL OR NOT 42 IS NULL
----
-93

query I rowsort
SELECT + 83 * - col0 FROM tab0
----
-1245
-7221
-8051

query I rowsort
SELECT ALL + col1 * + 95 + 62 FROM tab0 AS cor0
----
157
2057
7757

query I rowsort
SELECT DISTINCT col1 * - 44 + - col0 * + 71 FROM tab2 cor0
----
-5510
-7932
-8273

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8808
SELECT - CAST( + - ( + ( 33 ) ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
33
33
33

skipif mysql # not compatible
query I rowsort label-8808
SELECT - CAST ( + - ( + ( 33 ) ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
33
33
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 29 col1 FROM tab1 cor0
----
29
29
29

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE + 93 IS NULL
----

query I rowsort
SELECT 7 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 62 IS NOT NULL
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query I rowsort
SELECT col2 + + 96 AS col2 FROM tab2 WHERE NOT + col2 >= col1 - + col0
----

query I rowsort
SELECT 63 FROM tab1 AS cor0 WHERE ( NULL ) <> - col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( ( - col2 ) ) BETWEEN NULL AND - col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8815
SELECT - + 90 + + - 62 * - 1 DIV - COUNT( DISTINCT 51 ) FROM tab2 AS cor0
----
-152

skipif mysql # not compatible
query I rowsort label-8815
SELECT - + 90 + + - 62 * - 1 / - COUNT ( DISTINCT 51 ) FROM tab2 AS cor0
----
-152

onlyif mysql # aggregate syntax: 
query I rowsort label-8816
SELECT ALL + MIN( - col1 ) FROM tab0 AS cor0 WHERE NOT - col2 * + + col0 BETWEEN col2 AND ( 38 + + col0 )
----
-81

skipif mysql # not compatible
query I rowsort label-8816
SELECT ALL + MIN ( - col1 ) FROM tab0 AS cor0 WHERE NOT - col2 * + + col0 BETWEEN col2 AND ( 38 + + col0 )
----
-81

query I rowsort
SELECT DISTINCT + 96 * + 80 * + col0 + + ( - col2 ) AS col1 FROM tab2 AS cor0
----
353257
491480
575942

query I rowsort
SELECT col2 * + + col2 + - col1 + col2 AS col1 FROM tab1 AS cor0
----
3535
4645
9298

query I rowsort
SELECT + - col2 + - col1 AS col1 FROM tab2 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8820
SELECT - 56 + + col2 + - - CAST( + col1 AS SIGNED ) FROM tab2 AS cor0
----
18
61
69

skipif mysql # not compatible
query I rowsort label-8820
SELECT - 56 + + col2 + - - CAST ( + col1 AS INTEGER ) FROM tab2 AS cor0
----
18
61
69

query I rowsort
SELECT 52 * - 10 AS col0 FROM tab1
----
-520
-520
-520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8822
SELECT DISTINCT CAST( NULL AS SIGNED ) col1 FROM tab0 WHERE NOT ( + col2 ) IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8822
SELECT DISTINCT CAST ( NULL AS INTEGER ) col1 FROM tab0 WHERE NOT ( + col2 ) IS NOT NULL
----

query I rowsort
SELECT - col0 + col0 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8824
SELECT ALL - CAST( NULL AS SIGNED ) + ( 18 ) * + COUNT( * ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8824
SELECT ALL - CAST ( NULL AS INTEGER ) + ( 18 ) * + COUNT ( * ) AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8825
SELECT - COUNT( * ) AS col2 FROM tab1 WHERE + col2 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8825
SELECT - COUNT ( * ) AS col2 FROM tab1 WHERE + col2 IS NOT NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8826
SELECT DISTINCT + 89 AS col1 FROM tab0 WHERE NOT col1 NOT BETWEEN NULL AND ( - CAST( ( 97 ) AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-8826
SELECT DISTINCT + 89 AS col1 FROM tab0 WHERE NOT col1 NOT BETWEEN NULL AND ( - CAST ( ( 97 ) AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab2 WHERE ( 31 * - 48 + + col2 ) IS NULL
----

query I rowsort
SELECT 0 * - - col2 AS col1 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8829
SELECT DISTINCT + CAST( NULL AS SIGNED ) + 59 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8829
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 59 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8830
SELECT DISTINCT 0 + - 84 + 49 * COUNT( col2 ) * COUNT( + col0 / 75 ) AS col2 FROM tab1
----
357

skipif mysql # not compatible
query I rowsort label-8830
SELECT DISTINCT 0 + - 84 + 49 * COUNT ( col2 ) * COUNT ( + col0 / 75 ) AS col2 FROM tab1
----
357

query I rowsort
SELECT DISTINCT + 66 * - col0 - col0 AS col2 FROM tab0 WHERE - 71 IS NULL
----

query I rowsort
SELECT ALL + 70 + - col0 + + 23 * + col0 * - 65 FROM tab0
----
-130082
-145042
-22370

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + col0 - col2 <= col2 - - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col0 - - - 62 FROM tab1 AS cor0
----
-11
23
29

onlyif mysql # aggregate syntax: 
query I rowsort label-8835
SELECT ALL + + 15 + ( - COUNT( * ) ) FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-8835
SELECT ALL + + 15 + ( - COUNT ( * ) ) FROM tab1 AS cor0
----
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col2 FROM tab0 WHERE NOT col1 * + + 54 IN ( col0 * + col0 )
----
1
21
81

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT IN ( + col1 * + col2 * + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8838
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 35 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8838
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 35 AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8839
SELECT - MIN( + 69 ) DIV - ( - COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-8839
SELECT - MIN ( + 69 ) / - ( - COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8840
SELECT ALL + - CAST( NULL AS SIGNED ) / - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8840
SELECT ALL + - CAST ( NULL AS INTEGER ) / - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * + col0 FROM tab2 AS cor0 WHERE NOT - 62 * - 39 - + col1 NOT BETWEEN col0 AND ( - col1 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + ( - - col2 ) NOT BETWEEN NULL AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 47 ) col0 FROM tab1 AS cor0
----
47
47
47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8844
SELECT * FROM tab2 AS cor0 WHERE NOT - + col0 < NULL AND NOT ( - col0 + - CAST( ( col1 ) AS SIGNED ) + 8 * + 15 ) <= col1
----

skipif mysql # not compatible
query III rowsort label-8844
SELECT * FROM tab2 AS cor0 WHERE NOT - + col0 < NULL AND NOT ( - col0 + - CAST ( ( col1 ) AS INTEGER ) + 8 * + 15 ) <= col1
----

query II rowsort
SELECT DISTINCT + col0 * - 11 * 55, col2 FROM tab1 AS cor0
----
-30855
96
-51425
59
-55055
68

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL <= 14
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT 17 IS NULL )
----

query II rowsort
SELECT DISTINCT col0 AS col2, 99 FROM tab1
----
51
99
85
99
91
99

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL < + 97
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8850
SELECT ALL + CAST( NULL AS SIGNED ) * ( - - col1 ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8850
SELECT ALL + CAST ( NULL AS INTEGER ) * ( - - col1 ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 * - + 76 AS col1 FROM tab2 AS cor0
----
3876
5092
5852

query I rowsort
SELECT ALL 8 * - col2 + - 60 + + + col2 AS col2 FROM tab2 AS cor0
----
-221
-340
-466

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE NOT + col1 + col2 * 34 / + 15 NOT BETWEEN ( - 23 * 67 ) AND NULL
----

query II rowsort
SELECT DISTINCT col1 AS col2, - col0 AS col1 FROM tab0 cor0
----
1
-97
21
-87
81
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-8855
SELECT ALL + col2 DIV - - 78 + + 63 AS col1 FROM tab1 cor0
----
63
63
64

skipif mysql # not compatible
query I rowsort label-8855
SELECT ALL + col2 / - - 78 + + 63 AS col1 FROM tab1 cor0
----
63
63
64

query I rowsort
SELECT - - col0 * - - col1 * - col1 * + col2 * - col0 FROM tab2 AS cor0
----
126585468
1464536250
971407360

onlyif mysql # aggregate syntax: 
query I rowsort label-8857
SELECT ALL + + COUNT( ALL ( + col2 ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8857
SELECT ALL + + COUNT ( ALL ( + col2 ) ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8858
SELECT ALL + + SUM( - - col0 ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-8858
SELECT ALL + + SUM ( - - col0 ) FROM tab1 AS cor0
----
227

query I rowsort
SELECT - + 0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query III rowsort
SELECT ALL * FROM tab0 WHERE - 65 + - col1 + - ( - col0 ) / - + col1 > - col1 * col0 - col0 * + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 54 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NULL NOT IN ( + col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8863
SELECT ( + 18 ) AS col0, COUNT( * ) FROM tab2 cor0
----
18
3

skipif mysql # not compatible
query II rowsort label-8863
SELECT ( + 18 ) AS col0, COUNT ( * ) FROM tab2 cor0
----
18
3

query I rowsort
SELECT - + 41 AS col1 FROM tab2 AS cor0
----
-41
-41
-41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col0, + 41 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
46
41
64
41
75
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8866
SELECT + 22 + ( + - col0 ) + - CAST( - col2 AS SIGNED ) * + col0 * col1 AS col0 FROM tab2 AS cor0
----
197078
291397
53934

skipif mysql # not compatible
query I rowsort label-8866
SELECT + 22 + ( + - col0 ) + - CAST ( - col2 AS INTEGER ) * + col0 * col1 AS col0 FROM tab2 AS cor0
----
197078
291397
53934

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - ( - - col0 ) ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - - 7 + + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-8869
SELECT ALL 76, - MIN( col1 ) AS col0 FROM tab1
----
76
-5

skipif mysql # not compatible
query II rowsort label-8869
SELECT ALL 76, - MIN ( col1 ) AS col0 FROM tab1
----
76
-5

query I rowsort
SELECT - col1 AS col2 FROM tab0 WHERE - + 71 < - 85
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col1 FROM tab1 WHERE NULL > - - col1 + - col2 + 42 * 60
----

query I rowsort
SELECT 98 + - + col2 FROM tab0
----
-1
51
88

query II rowsort
SELECT + col0 + + - col1 * 9, 79 AS col1 FROM tab2
----
-413
79
-528
79
-629
79

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( - - ( - - col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8875
SELECT 45 * COUNT( * ) col2 FROM tab0 AS cor0 WHERE - col0 / + col0 BETWEEN + - col0 AND col0
----
135

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8875
SELECT 45 * COUNT ( * ) col2 FROM tab0 AS cor0 WHERE - col0 / + col0 BETWEEN + - col0 AND col0
----
135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8876
SELECT DISTINCT + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE col1 + - col1 NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-8876
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE col1 + - col1 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT DISTINCT col1, col2 - - - 59 AS col1 FROM tab1 AS cor0
----
14
37
47
9
5
0

query II rowsort
SELECT + + 98 AS col2, + col2 AS col1 FROM tab0 AS cor0
----
98
10
98
47
98
99

query I rowsort
SELECT DISTINCT + col2 * 34 - col2 - - col0 FROM tab0 cor0
----
1566
3364
417

query I rowsort
SELECT + 85 - + 60 * - 53 AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 32b98eec413ce3ed97e6dd87cd03d0ee

onlyif mysql # aggregate syntax: 
query I rowsort label-8881
SELECT ALL + 70 * + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
630

skipif mysql # not compatible
query I rowsort label-8881
SELECT ALL + 70 * + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
630

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8882
SELECT * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) + - col0 * - 15 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8882
SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) + - col0 * - 15 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8883
SELECT CAST( col1 AS SIGNED ) * - 23 AS col0 FROM tab2 cor0
----
-1173
-1541
-1771

skipif mysql # not compatible
query I rowsort label-8883
SELECT CAST ( col1 AS INTEGER ) * - 23 AS col0 FROM tab2 cor0
----
-1173
-1541
-1771

query I rowsort
SELECT DISTINCT - - 16 FROM tab2 cor0
----
16

query I rowsort
SELECT ALL 23 * - + col1 FROM tab1 AS cor0
----
-1081
-115
-322

onlyif mysql # aggregate syntax: 
query I rowsort label-8886
SELECT + MAX( DISTINCT + 48 ) FROM tab0
----
48

skipif mysql # not compatible
query I rowsort label-8886
SELECT + MAX ( DISTINCT + 48 ) FROM tab0
----
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col1, - 60 AS col2 FROM tab1
----
-14
-60
-47
-60
-5
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-8888
SELECT DISTINCT col2 * col2 DIV col0 * col0 * col2 * - col2 FROM tab0
----
-4870845
-8700
-96020397

skipif mysql # not compatible
query I rowsort label-8888
SELECT DISTINCT col2 * col2 / col0 * col0 * col2 * - col2 FROM tab0
----
-4870845
-8700
-96020397

query II rowsort
SELECT - col0 AS col2, col0 AS col0 FROM tab0
----
-15
15
-87
87
-97
97

query I rowsort
SELECT DISTINCT + + col2 + col2 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT 52 * - ( ( - AVG ( - + 35 ) ) ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT + col0 * - 11 FROM tab1
----
-1001
-561
-935

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8893
SELECT * FROM tab1 WHERE NOT + - 76 BETWEEN - col0 - + - col1 / col1 AND ( - col1 + - CAST( - + 3 AS SIGNED ) )
----
51
14
96

skipif mysql # not compatible
query III rowsort label-8893
SELECT * FROM tab1 WHERE NOT + - 76 BETWEEN - col0 - + - col1 / col1 AND ( - col1 + - CAST ( - + 3 AS INTEGER ) )
----
51
14
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + 31 col1 FROM tab1
----
116
122
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8895
SELECT ALL + COUNT( DISTINCT 82 ) + - - 71 AS col0 FROM tab0 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-8895
SELECT ALL + COUNT ( DISTINCT 82 ) + - - 71 AS col0 FROM tab0 AS cor0
----
72

query II rowsort
SELECT ALL - col2, + col0 AS col2 FROM tab1 AS cor0
----
-59
85
-68
91
-96
51

onlyif mysql # DIV for integer division: 
query I rowsort label-8897
SELECT + - col0 DIV - - col2 FROM tab0 AS cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-8897
SELECT + - col0 / - - col2 FROM tab0 AS cor0
----
-8
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 IN ( - col2 * + 91 - - col0, 66 * 47, - + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 27 + col0 + - 93 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-2
-20
9

query II rowsort
SELECT DISTINCT col1 AS col1, 52 FROM tab0 AS cor0
----
1
52
21
52
81
52

query I rowsort
SELECT - col0 * ( - - col2 ) AS col0 FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT + 40 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

query I rowsort
SELECT col1 + - + 46 FROM tab0
----
-25
-45
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8904
SELECT + COUNT( * ) + + 38 * - 69 AS col2 FROM tab2
----
-2619

skipif mysql # not compatible
query I rowsort label-8904
SELECT + COUNT ( * ) + + 38 * - 69 AS col2 FROM tab2
----
-2619

onlyif mysql # aggregate syntax: 
query I rowsort label-8905
SELECT 6 + - - COUNT( * ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-8905
SELECT 6 + - - COUNT ( * ) FROM tab1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 43, + 12 col0 FROM tab0 AS cor0
----
43
12

query I rowsort
SELECT ALL - + 53 + + 85 + - col0 AS col2 FROM tab0 cor0
----
-55
-65
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8908
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE - 50 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8908
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE - 50 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + 82 ) col0 FROM tab2 AS cor0
----
82
82
82

query I rowsort
SELECT ALL + - col1 - col2 AS col1 FROM tab1 AS cor0
----
-110
-115
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-8911
SELECT - + MIN( DISTINCT + - 14 ) AS col2 FROM tab2 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-8911
SELECT - + MIN ( DISTINCT + - 14 ) AS col2 FROM tab2 AS cor0
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-8912
SELECT MAX( - col2 ) AS col2, 3 FROM tab2 AS cor0
----
-23
3

skipif mysql # not compatible
query II rowsort label-8912
SELECT MAX ( - col2 ) AS col2, 3 FROM tab2 AS cor0
----
-23
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - 8 col2 FROM tab2
----
-368
-512
-600

onlyif mysql # aggregate syntax: 
query I rowsort label-8914
SELECT DISTINCT - ( 46 ) * + + MAX( ALL + 26 ) AS col0 FROM tab2
----
-1196

skipif mysql # not compatible
query I rowsort label-8914
SELECT DISTINCT - ( 46 ) * + + MAX ( ALL + 26 ) AS col0 FROM tab2
----
-1196

query III rowsort
SELECT * FROM tab2 WHERE ( ( NOT + col2 NOT IN ( + + col0 / - 16 + + col2 ) ) )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 * - col1 + - col0 NOT BETWEEN ( + col2 * + - 2 + - col2 ) AND ( - 41 ) - + col1
----

query II rowsort
SELECT DISTINCT - col0 + - 53, col2 AS col2 FROM tab1
----
-104
96
-138
59
-144
68

query I rowsort
SELECT DISTINCT 48 * + 94 * - 73 AS col0 FROM tab2
----
-329376

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NOT col2 * + 72 * + col0 * col2 IS NOT NULL )
----

query I rowsort
SELECT ALL + col2 + - ( - - col1 ) + col2 + + col1 + col0 AS col1 FROM tab0
----
107
109
295

onlyif mysql # DIV for integer division: 
query I rowsort label-8921
SELECT DISTINCT - ( + + col0 ) DIV - col1 + + col0 FROM tab1 cor0
----
102
54
92

skipif mysql # not compatible
query I rowsort label-8921
SELECT DISTINCT - ( + + col0 ) / - col1 + + col0 FROM tab1 cor0
----
102
54
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8922
SELECT DISTINCT + 4 - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-5

skipif mysql # not compatible
query I rowsort label-8922
SELECT DISTINCT + 4 - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-5

query II rowsort
SELECT ALL - 87, + 35 + + 81 AS col0 FROM tab2
----
-87
116
-87
116
-87
116

onlyif mysql # DIV for integer division: 
query I rowsort label-8924
SELECT + col1 DIV + + 89 + - - 73 * + + col2 + + + col2 FROM tab0 AS cor0
----
3478
7326
740

skipif mysql # not compatible
query I rowsort label-8924
SELECT + col1 / + + 89 + - - 73 * + + col2 + + + col2 FROM tab0 AS cor0
----
3478
7326
740

onlyif mysql # DIV for integer division: 
query I rowsort label-8925
SELECT + 3 DIV + - 96 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8925
SELECT + 3 / + - 96 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8926
SELECT - MAX( - col1 ) FROM tab1 cor0
----
5

skipif mysql # not compatible
query I rowsort label-8926
SELECT - MAX ( - col1 ) FROM tab1 cor0
----
5

query I rowsort
SELECT + col1 - + col1 FROM tab1 cor0 WHERE NOT ( NOT ( ( NULL ) IS NOT NULL ) )
----

query I rowsort
SELECT col1 * + - 79 AS col2 FROM tab2 AS cor0
----
-4029
-5293
-6083

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 <= NULL
----

query I rowsort
SELECT ALL + col2 FROM tab1 WHERE + col1 + + 97 IN ( - 55 + - 25 )
----

query II rowsort
SELECT ALL + col1 * + col2 AS col1, - col2 FROM tab0
----
210
-10
3807
-47
99
-99

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL > - - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8933
SELECT - CAST( NULL AS SIGNED ) + - + 87 - - + 77 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-8933
SELECT - CAST ( NULL AS INTEGER ) + - + 87 - - + 77 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + - col0 * + col1 + + - col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8935
SELECT + MAX( ALL + col1 ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-8935
SELECT + MAX ( ALL + col1 ) FROM tab1
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-8936
SELECT ALL col1 + col2 + + col0 + 66 DIV col0 + + - col1 FROM tab2
----
105
133
70

skipif mysql # not compatible
query I rowsort label-8936
SELECT ALL col1 + col2 + + col0 + 66 / col0 + + - col1 FROM tab2
----
105
133
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8937
SELECT MAX( DISTINCT - - col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-8937
SELECT MAX ( DISTINCT - - col1 ) FROM tab2 AS cor0
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-8938
SELECT DISTINCT + COUNT( * ) + + COUNT( * ) * + SUM( ALL col2 ), 76 AS col2 FROM tab1 cor0
----
672
76

skipif mysql # not compatible
query II rowsort label-8938
SELECT DISTINCT + COUNT ( * ) + + COUNT ( * ) * + SUM ( ALL col2 ), 76 AS col2 FROM tab1 cor0
----
672
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8939
SELECT + + MIN( DISTINCT 7 ) * COUNT( * ) + + MIN( ALL - - col0 ) FROM tab0 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-8939
SELECT + + MIN ( DISTINCT 7 ) * COUNT ( * ) + + MIN ( ALL - - col0 ) FROM tab0 AS cor0
----
36

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL >= 72 * + col2
----

query I rowsort
SELECT + 37 + - col0 * - + col1 AS col1 FROM tab0 AS cor0
----
1252
134
1864

query I rowsort
SELECT ALL + col1 * - - 96 FROM tab1 AS cor0
----
1344
4512
480

query I rowsort
SELECT DISTINCT - col0 * + - col2 * + + col0 FROM tab0
----
10575
75690
931491

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8944
SELECT DISTINCT 51 DIV + 2 + + SUM( DISTINCT col1 ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-8944
SELECT DISTINCT 51 / + 2 + + SUM ( DISTINCT col1 ) FROM tab1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8945
SELECT DISTINCT - ( + COUNT( * ) ) + - 30 AS col0 FROM tab0
----
-33

skipif mysql # not compatible
query I rowsort label-8945
SELECT DISTINCT - ( + COUNT ( * ) ) + - 30 AS col0 FROM tab0
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8946
SELECT + CAST( NULL AS SIGNED ) AS col1, COUNT( DISTINCT + col1 ) FROM tab0 WHERE + - col2 + + col1 IS NOT NULL
----
NULL
3

skipif mysql # not compatible
query II rowsort label-8946
SELECT + CAST ( NULL AS INTEGER ) AS col1, COUNT ( DISTINCT + col1 ) FROM tab0 WHERE + - col2 + + col1 IS NOT NULL
----
NULL
3

query I rowsort
SELECT col0 + + col1 - + col2 * - + col2 / col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8948
SELECT ALL MIN( ALL CAST( + col2 AS SIGNED ) ) + + 81 + + ( + 71 ) + + + COUNT( * ) FROM tab2 AS cor0
----
178

skipif mysql # not compatible
query I rowsort label-8948
SELECT ALL MIN ( ALL CAST ( + col2 AS INTEGER ) ) + + 81 + + ( + 71 ) + + + COUNT ( * ) FROM tab2 AS cor0
----
178

onlyif mysql # aggregate syntax: 
query I rowsort label-8949
SELECT - 23 * COUNT( * ) + COUNT( DISTINCT + col0 ) - - MAX( - ( col0 ) ) AS col0 FROM tab1 cor0
----
-117

skipif mysql # not compatible
query I rowsort label-8949
SELECT - 23 * COUNT ( * ) + COUNT ( DISTINCT + col0 ) - - MAX ( - ( col0 ) ) AS col0 FROM tab1 cor0
----
-117

query I rowsort
SELECT - + col0 * + - col1 - 30 AS col0 FROM tab1 cor0
----
395
4247
684

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8951
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT CAST( NULL AS SIGNED ) BETWEEN - col2 - ( + 92 ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-8951
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT CAST ( NULL AS INTEGER ) BETWEEN - col2 - ( + 92 ) AND NULL
----

query I rowsort
SELECT ( + + col0 ) - col1 AS col2 FROM tab0 AS cor0
----
-66
66
96

query I rowsort
SELECT DISTINCT 83 + + col2 * 75 AS col1 FROM tab0 AS cor0
----
3608
7508
833

query II rowsort
SELECT DISTINCT col2 AS col2, 42 FROM tab2 AS cor0
----
23
42
40
42
58
42

query III rowsort
SELECT * FROM tab2 WHERE - col0 - - ( - 90 ) = NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - + 95 + + 6 + + col2 IS NULL
----

query I rowsort
SELECT - ( + 35 ) + - col0 FROM tab0
----
-122
-132
-50

query II rowsort
SELECT ALL ( - col0 ) AS col2, - col0 AS col2 FROM tab2
----
-46
-46
-64
-64
-75
-75

query I rowsort
SELECT + 40 FROM tab2 WHERE NULL IN ( 0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8960
SELECT ALL CAST( - 42 AS SIGNED ) + col0 AS col0 FROM tab0
----
-27
45
55

skipif mysql # not compatible
query I rowsort label-8960
SELECT ALL CAST ( - 42 AS INTEGER ) + col0 AS col0 FROM tab0
----
-27
45
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 55 col0 FROM tab1 WHERE + 34 * - 17 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 * 13 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8963
SELECT DISTINCT - COUNT( * ) * 57 AS col1 FROM tab2 AS cor0
----
-171

skipif mysql # not compatible
query I rowsort label-8963
SELECT DISTINCT - COUNT ( * ) * 57 AS col1 FROM tab2 AS cor0
----
-171

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 26 col1 FROM tab2 AS cor0
----
-26
-26
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8965
SELECT DISTINCT + CAST( - - col2 AS SIGNED ) FROM tab0 cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-8965
SELECT DISTINCT + CAST ( - - col2 AS INTEGER ) FROM tab0 cor0
----
10
47
99

query II rowsort
SELECT ALL - 5 AS col2, col1 AS col1 FROM tab0 AS cor0
----
-5
1
-5
21
-5
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8967
SELECT ALL - 39 + COUNT( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8967
SELECT ALL - 39 + COUNT ( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-30

query I rowsort
SELECT - col2 * + - 36 AS col2 FROM tab0
----
1692
3564
360

onlyif mysql # aggregate syntax: 
query I rowsort label-8969
SELECT COUNT( * ) * + SUM( ALL - col0 ) AS col0 FROM tab1 AS cor0
----
-681

skipif mysql # not compatible
query I rowsort label-8969
SELECT COUNT ( * ) * + SUM ( ALL - col0 ) AS col0 FROM tab1 AS cor0
----
-681

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <= - col1 / - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8971
SELECT ALL - CAST( - + 48 AS SIGNED ) AS col0 FROM tab0 cor0
----
48
48
48

skipif mysql # not compatible
query I rowsort label-8971
SELECT ALL - CAST ( - + 48 AS INTEGER ) AS col0 FROM tab0 cor0
----
48
48
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 85 + - + 75 col2 FROM tab1 cor0
----
10
10
10

query I rowsort
SELECT + 29 + - + col2 + + + col0 AS col0 FROM tab0
----
-3
106
27

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8974
SELECT DISTINCT * FROM tab2 WHERE col0 - - 11 NOT BETWEEN NULL AND + col2 + - 87 * + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8974
SELECT DISTINCT * FROM tab2 WHERE col0 - - 11 NOT BETWEEN NULL AND + col2 + - 87 * + - CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8975
SELECT CAST( + 30 AS SIGNED ) AS col2 FROM tab0
----
30
30
30

skipif mysql # not compatible
query I rowsort label-8975
SELECT CAST ( + 30 AS INTEGER ) AS col2 FROM tab0
----
30
30
30

query I rowsort
SELECT ALL col2 * - 0 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL + col2 + - 45 AS col2 FROM tab1
----
14
23
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 54 ) col2 FROM tab1
----
-54
-54
-54

query II rowsort
SELECT DISTINCT col0, - col2 AS col0 FROM tab2
----
46
-23
64
-40
75
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-8980
SELECT - COUNT( * ) AS col2, COUNT( * ) FROM tab1
----
-3
3

skipif mysql # not compatible
query II rowsort label-8980
SELECT - COUNT ( * ) AS col2, COUNT ( * ) FROM tab1
----
-3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8981
SELECT DISTINCT - 87 + + COUNT( * ) FROM tab0
----
-84

skipif mysql # not compatible
query I rowsort label-8981
SELECT DISTINCT - 87 + + COUNT ( * ) FROM tab0
----
-84

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 > - col2
----

query I rowsort
SELECT DISTINCT - - col0 + - col2 AS col1 FROM tab1 cor0
----
-45
23
26

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 * - 54 <= ( + 77 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8986
SELECT 50 + col2 DIV + 90 FROM tab0
----
50
50
51

skipif mysql # not compatible
query I rowsort label-8986
SELECT 50 + col2 / + 90 FROM tab0
----
50
50
51

query I rowsort
SELECT DISTINCT + 3 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
3

query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE col1 <> - col2
----
-10
-47
-99

query I rowsort
SELECT ALL - col0 + + ( + 39 ) FROM tab0 AS cor0
----
-48
-58
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8990
SELECT - COUNT( + - col2 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8990
SELECT - COUNT ( + - col2 ) AS col2 FROM tab0 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( - 44 ), 11 - + - col0 col0 FROM tab1 AS cor0
----
-44
102
-44
62
-44
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8992
SELECT ALL + MAX( - 26 ) AS col0 FROM tab2 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-8992
SELECT ALL + MAX ( - 26 ) AS col0 FROM tab2 AS cor0
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-8993
SELECT ALL 23 DIV - 61 * - ( - col2 ) - + + col2 col1 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8993
SELECT ALL 23 / - 61 * - ( - col2 ) - + + col2 col1 FROM tab0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8994
SELECT ALL + MAX( ALL - 54 ) FROM tab2
----
-54

skipif mysql # not compatible
query I rowsort label-8994
SELECT ALL + MAX ( ALL - 54 ) FROM tab2
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8995
SELECT CAST( NULL AS SIGNED ) * col1 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8995
SELECT CAST ( NULL AS INTEGER ) * col1 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - 54 * - + 21 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - ( - ( 72 ) ) <= NULL
----

query I rowsort
SELECT + - 10 FROM tab1 cor0
----
-10
-10
-10

query II rowsort
SELECT ALL - 46 AS col2, 11 AS col2 FROM tab2
----
-46
11
-46
11
-46
11

onlyif mysql # DIV for integer division: 
query I rowsort label-9000
SELECT ALL col0 DIV - 59 AS col1 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-9000
SELECT ALL col0 / - 59 AS col1 FROM tab2
----
-1
-1
0

query II rowsort
SELECT + 47, + col0 AS col1 FROM tab0
----
47
15
47
87
47
97

query I rowsort
SELECT ALL + 91 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col1 ) <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 col1, - 15 + col2 - + 72 FROM tab2 AS cor0
----
-46
-64
-64
-47
-75
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-9005
SELECT ALL + SUM( DISTINCT col2 ) AS col2 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-9005
SELECT ALL + SUM ( DISTINCT col2 ) AS col2 FROM tab1 AS cor0
----
223

query I rowsort
SELECT - + 94 * + 95 + + + ( - + col0 ) + 92 * - ( - 78 ) FROM tab2 AS cor0
----
-1800
-1818
-1829

query II rowsort
SELECT + 82, + col1 * col0 AS col1 FROM tab0 AS cor0
----
82
1215
82
1827
82
97

query II rowsort
SELECT + col2 AS col1, col0 * + col2 * - col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + + col1 * + + 46 AS col1 FROM tab2 AS cor0
----
2346
3082
3542

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9010
SELECT - CAST( - 82 AS SIGNED ) FROM tab1 AS cor0
----
82
82
82

skipif mysql # not compatible
query I rowsort label-9010
SELECT - CAST ( - 82 AS INTEGER ) FROM tab1 AS cor0
----
82
82
82

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( + col2, + col2 + - - 94 / + col0 )
----

query I rowsort
SELECT DISTINCT col2 + + + col1 * - col2 FROM tab1
----
-1248
-236
-3128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9013
SELECT DISTINCT col1 + - - CAST( - col1 AS SIGNED ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9013
SELECT DISTINCT col1 + - - CAST ( - col1 AS INTEGER ) FROM tab1
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 78 / + col2 BETWEEN + 86 + + col1 AND + 23
----

query II rowsort
SELECT - 22 + - 62 AS col1, ( + col0 ) * - col0 FROM tab0 AS cor0
----
-84
-225
-84
-7569
-84
-9409

query I rowsort
SELECT 6 * col2 AS col0 FROM tab2 AS cor0
----
138
240
348

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + col2 * 94 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 + 43 FROM tab1 AS cor0
----
128
134
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9019
SELECT + CAST( + + col2 AS SIGNED ) - + + col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9019
SELECT + CAST ( + + col2 AS INTEGER ) - + + col2 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 + - col0 col2 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 69 >= + + 21
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + col2 + + 17 col2 FROM tab2 AS cor0
----
-11
-20
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9023
SELECT + COUNT( * ) + - + 6 AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9023
SELECT + COUNT ( * ) + - + 6 AS col1 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9024
SELECT DISTINCT CAST( + col2 AS SIGNED ) - + col2 AS col2 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9024
SELECT DISTINCT CAST ( + col2 AS INTEGER ) - + col2 AS col2 FROM tab2 cor0
----
0

query II rowsort
SELECT ALL 30 AS col2, + 96 + + 58 AS col0 FROM tab1 AS cor0
----
30
154
30
154
30
154

query I rowsort
SELECT DISTINCT - + col0 * - col2 / - - 64 - - + col0 + + col1 FROM tab1 AS cor0 WHERE + col1 * + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 13 * col1, + 86 * col0 col2 FROM tab2
----
1001
5504
663
3956
871
6450

onlyif mysql # aggregate syntax: 
query I rowsort label-9028
SELECT 20 * COUNT( * ) FROM tab1
----
60

skipif mysql # not compatible
query I rowsort label-9028
SELECT 20 * COUNT ( * ) FROM tab1
----
60

query I rowsort
SELECT DISTINCT col1 * - + col0 FROM tab0
----
-1215
-1827
-97

query I rowsort
SELECT DISTINCT + + col1 FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN + + col1 AND ( col2 ) + col2 * col0
----
14
47
5

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 = 0 + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 46 + col0 FROM tab0 AS cor0
----
-31
41
51

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN 80 AND NULL
----

query II rowsort
SELECT ALL col0, + col0 FROM tab2 AS cor0
----
46
46
64
64
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9035
SELECT ALL MIN( + col1 ) col0 FROM tab1 AS cor0 WHERE NOT 10 * col0 * col2 / + - col2 IS NULL
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9035
SELECT ALL MIN ( + col1 ) col0 FROM tab1 AS cor0 WHERE NOT 10 * col0 * col2 / + - col2 IS NULL
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-9036
SELECT DISTINCT - 7 DIV - col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9036
SELECT DISTINCT - 7 / - col2 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 63 NOT BETWEEN NULL AND NULL )
----

query I rowsort
SELECT + 25 AS col0 FROM tab2 AS cor0 WHERE - col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 col1, - 52 + + 17 * - col1 AS col0 FROM tab0 AS cor0
----
15
-1429
87
-409
97
-69

query I rowsort
SELECT 57 + - col0 AS col2 FROM tab2 AS cor0
----
-18
-7
11

query II rowsort
SELECT + 33, - col2 * + col0 AS col1 FROM tab0
----
33
-705
33
-870
33
-9603

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9042
SELECT - 83 DIV + SUM( - ( + 83 ) ) * - - 49 - + 44 FROM tab1
----
-44

skipif mysql # not compatible
query I rowsort label-9042
SELECT - 83 / + SUM ( - ( + 83 ) ) * - - 49 - + 44 FROM tab1
----
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-9043
SELECT 35 col2, - 37 * MAX( 58 ) FROM tab2
----
35
-2146

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9043
SELECT 35 col2, - 37 * MAX ( 58 ) FROM tab2
----
35
-2146

onlyif mysql # DIV for integer division: 
query I rowsort label-9044
SELECT ALL 67 DIV - + col2 + 54 AS col1 FROM tab1
----
53
54
54

skipif mysql # not compatible
query I rowsort label-9044
SELECT ALL 67 / - + col2 + 54 AS col1 FROM tab1
----
53
54
54

query I rowsort
SELECT + ( ( - ( 10 ) ) ) FROM tab1
----
-10
-10
-10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col2, 3 AS col0 FROM tab0
----
-15
3
-87
3
-97
3

query I rowsort
SELECT ALL col0 + - - 83 * col1 * col2 AS col0 FROM tab2
----
255704
322613
97405

onlyif mysql # aggregate syntax: 
query I rowsort label-9048
SELECT DISTINCT + 36 + MIN( + 37 ) FROM tab2
----
73

skipif mysql # not compatible
query I rowsort label-9048
SELECT DISTINCT + 36 + MIN ( + 37 ) FROM tab2
----
73

query III rowsort
SELECT * FROM tab0 WHERE NULL = + + ( - + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9050
SELECT + + col1 DIV + col1 - - 25 AS col2 FROM tab2 AS cor0
----
26
26
26

skipif mysql # not compatible
query I rowsort label-9050
SELECT + + col1 / + col1 - - 25 AS col2 FROM tab2 AS cor0
----
26
26
26

query II rowsort
SELECT + col0 + col0, col2 FROM tab0
----
174
10
194
99
30
47

query I rowsort
SELECT - 38 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9053
SELECT + col1 + + CAST( - col1 AS SIGNED ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9053
SELECT + col1 + + CAST ( - col1 AS INTEGER ) FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9054
SELECT + 32 DIV - col1 + - + 14 * - - 43 FROM tab0
----
-602
-603
-634

skipif mysql # not compatible
query I rowsort label-9054
SELECT + 32 / - col1 + - + 14 * - - 43 FROM tab0
----
-602
-603
-634

query I rowsort
SELECT - 4 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

query I rowsort
SELECT - col2 + - col0 * col1 + 24 AS col2 FROM tab0
----
-1238
-172
-1813

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN ( NULL ) AND col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9058
SELECT DISTINCT - + 96 - col2 + - - col1 DIV + - 41 AS col2 FROM tab1 AS cor0
----
-155
-165
-192

skipif mysql # not compatible
query I rowsort label-9058
SELECT DISTINCT - + 96 - col2 + - - col1 / + - 41 AS col2 FROM tab1 AS cor0
----
-155
-165
-192

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9059
SELECT ALL - CAST( NULL AS SIGNED ) * 92 AS col0, ( + col1 ) * + 77 + - 49 * + col0 * + + 65 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( col0 ) AND - 57 / - col1 + - - col2
----

skipif mysql # not compatible
query II rowsort label-9059
SELECT ALL - CAST ( NULL AS INTEGER ) * 92 AS col0, ( + col1 ) * + 77 + - 49 * + col0 * + + 65 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( col0 ) AND - 57 / - col1 + - - col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col2 BETWEEN NULL AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9061
SELECT - 67 + - - col0 - - + col0 * + 41 + + CAST( + col2 AS SIGNED ) AS col2, + col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
1888
23
2661
40
3141
58

skipif mysql # not compatible
query II rowsort label-9061
SELECT - 67 + - - col0 - - + col0 * + 41 + + CAST ( + col2 AS INTEGER ) AS col2, + col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
1888
23
2661
40
3141
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9062
SELECT DISTINCT + 94 * + MIN( DISTINCT + - col0 ) + MIN( DISTINCT 44 ) * + COUNT( * ) FROM tab1 AS cor0
----
-8422

skipif mysql # not compatible
query I rowsort label-9062
SELECT DISTINCT + 94 * + MIN ( DISTINCT + - col0 ) + MIN ( DISTINCT 44 ) * + COUNT ( * ) FROM tab1 AS cor0
----
-8422

query II rowsort
SELECT - 79, 46 AS col1 FROM tab0
----
-79
46
-79
46
-79
46

onlyif mysql # aggregate syntax: 
query II rowsort label-9064
SELECT ALL + 8, SUM( DISTINCT col2 ) AS col0 FROM tab1
----
8
223

skipif mysql # not compatible
query II rowsort label-9064
SELECT ALL + 8, SUM ( DISTINCT col2 ) AS col0 FROM tab1
----
8
223

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 + - col2 IS NOT NULL
----

query I rowsort
SELECT ALL + col1 * - 59 AS col0 FROM tab2
----
-3009
-3953
-4543

query III rowsort
SELECT * FROM tab1 WHERE NOT - 74 + col1 + - col0 BETWEEN col1 AND 11
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9068
SELECT + COUNT( * ) * + 25 AS col2 FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-9068
SELECT + COUNT ( * ) * + 25 AS col2 FROM tab1 AS cor0
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9069
SELECT DISTINCT + col2 * + + CAST( - - ( + 53 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
1219
2120
3074

skipif mysql # not compatible
query I rowsort label-9069
SELECT DISTINCT + col2 * + + CAST ( - - ( + 53 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
1219
2120
3074

onlyif mysql # aggregate syntax: 
query II rowsort label-9070
SELECT ALL - 3 col1, - COUNT( * ) FROM tab0 AS cor0
----
-3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9070
SELECT ALL - 3 col1, - COUNT ( * ) FROM tab0 AS cor0
----
-3
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9071
SELECT + - col1 / + - ( - col2 ) + CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9071
SELECT + - col1 / + - ( - col2 ) + CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <> - - col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + 98 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9074
SELECT + 32 * + 71 + + + COUNT( * ) * + + COUNT( DISTINCT + col1 ) AS col2 FROM tab2 cor0
----
2281

skipif mysql # not compatible
query I rowsort label-9074
SELECT + 32 * + 71 + + + COUNT ( * ) * + + COUNT ( DISTINCT + col1 ) AS col2 FROM tab2 cor0
----
2281

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9075
SELECT - CAST( NULL AS SIGNED ) * - 72 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9075
SELECT - CAST ( NULL AS INTEGER ) * - 72 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9076
SELECT - + col0 DIV + 10 AS col1 FROM tab0 AS cor0
----
-1
-8
-9

skipif mysql # not compatible
query I rowsort label-9076
SELECT - + col0 / + 10 AS col1 FROM tab0 AS cor0
----
-1
-8
-9

query I rowsort
SELECT ALL + col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - 37 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9078
SELECT - 88 * COUNT( * ) FROM tab0 AS cor0
----
-264

skipif mysql # not compatible
query I rowsort label-9078
SELECT - 88 * COUNT ( * ) FROM tab0 AS cor0
----
-264

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - ( 60 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9080
SELECT - CAST( - + col1 AS SIGNED ) + + + ( + 39 ) AS col0 FROM tab1
----
44
53
86

skipif mysql # not compatible
query I rowsort label-9080
SELECT - CAST ( - + col1 AS INTEGER ) + + + ( + 39 ) AS col0 FROM tab1
----
44
53
86

query I rowsort
SELECT DISTINCT 24 * col1 * - 72 + 57 FROM tab1
----
-24135
-81159
-8583

query II rowsort
SELECT DISTINCT col1 + + + 33 - 38 AS col2, + 11 AS col2 FROM tab0
----
-4
11
16
11
76
11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9083
SELECT - CAST( NULL AS SIGNED ), col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-9083
SELECT - CAST ( NULL AS INTEGER ), col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 23 + + 92 + - col0 col1 FROM tab1 AS cor0
----
24
30
64

query I rowsort
SELECT DISTINCT + 6 - + 84 AS col0 FROM tab0 AS cor0
----
-78

query I rowsort
SELECT 42 - + col2 AS col1 FROM tab2
----
-16
19
2

query II rowsort
SELECT - col0 * col2 - col1 - + col2 AS col2, + col1 AS col0 FROM tab2
----
-1132
51
-2677
77
-4475
67

query I rowsort
SELECT col0 - - col1 * + ( - - col2 ) AS col1 FROM tab0
----
196
297
3822

query I rowsort
SELECT 90 * + col0 * col0 FROM tab0
----
20250
681210
846810

onlyif mysql # aggregate syntax: 
query I rowsort label-9090
SELECT - MAX( + col0 ) AS col0 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-9090
SELECT - MAX ( + col0 ) AS col0 FROM tab2
----
-75

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + 71 + - col1 - + col2 * 52 / ( + col0 ) BETWEEN col2 AND NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT - + col0 AS col1, col1 AS col0 FROM tab2 AS cor0
----
-46
51
-64
77
-75
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9093
SELECT DISTINCT + + MAX( - - 69 ) AS col2 FROM tab0 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-9093
SELECT DISTINCT + + MAX ( - - 69 ) AS col2 FROM tab0 AS cor0
----
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 AS col2, 97 col1 FROM tab2 AS cor0
----
-46
97
-64
97
-75
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL = + 80 * col0 * - col0
----

query I rowsort
SELECT + + col0 / - + 75 FROM tab2 WHERE NOT NULL NOT IN ( col2, col1 )
----

query I rowsort
SELECT - 73 * - - col2 FROM tab2
----
-1679
-2920
-4234

onlyif mysql # aggregate syntax: 
query I rowsort label-9098
SELECT + COUNT( * ) * + 37 FROM tab0
----
111

skipif mysql # not compatible
query I rowsort label-9098
SELECT + COUNT ( * ) * + 37 FROM tab0
----
111

query I rowsort
SELECT + col2 FROM tab1 WHERE NOT col1 * col1 * + - 51 NOT BETWEEN + col2 AND ( 41 ) / - col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9100
SELECT DISTINCT CAST( NULL AS DECIMAL ) + - - 32 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9100
SELECT DISTINCT CAST ( NULL AS REAL ) + - - 32 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT - col0 * col2, col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT - 94 + 35 + col0 - - - ( - ( - ( - col1 ) ) ) AS col2 FROM tab0 AS cor0
----
37
39
49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) <= - + col0 * 13
----

query I rowsort
SELECT - 77 AS col0 FROM tab2 AS cor0 WHERE 87 >= + - 77 * + col0 + - col1 * 36
----
-77
-77
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9105
SELECT DISTINCT 8 AS col2 FROM tab0 AS cor0 WHERE NOT col2 * + 49 > + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9105
SELECT DISTINCT 8 AS col2 FROM tab0 AS cor0 WHERE NOT col2 * + 49 > + CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9106
SELECT DISTINCT + + col1 DIV + col2 + - col1 FROM tab1 cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-9106
SELECT DISTINCT + + col1 / + col2 + - col1 FROM tab1 cor0
----
-14
-47
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-9107
SELECT DISTINCT col1 DIV ( col1 ) + - 54 AS col0 FROM tab0 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-9107
SELECT DISTINCT col1 / ( col1 ) + - 54 AS col0 FROM tab0 AS cor0
----
-53

query I rowsort
SELECT + col0 * ( + - 4 ) FROM tab0 AS cor0
----
-348
-388
-60

query I rowsort
SELECT ALL + 36 * - - col1 AS col1 FROM tab1
----
1692
180
504

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9110
SELECT ALL - + COUNT( * ) FROM tab1 WHERE NOT ( + 37 * + col2 + - col2 ) NOT BETWEEN NULL AND - CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-9110
SELECT ALL - + COUNT ( * ) FROM tab1 WHERE NOT ( + 37 * + col2 + - col2 ) NOT BETWEEN NULL AND - CAST ( NULL AS INTEGER )
----
0

query I rowsort
SELECT ALL col2 * + - col0 AS col0 FROM tab1
----
-4896
-5015
-6188

onlyif mysql # DIV for integer division: 
query I rowsort label-9112
SELECT DISTINCT + col1 DIV - 80 AS col1 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-9112
SELECT DISTINCT + col1 / - 80 AS col1 FROM tab0
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9113
SELECT MAX( ( + - col0 ) ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-9113
SELECT MAX ( ( + - col0 ) ) FROM tab2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9114
SELECT ALL + + COUNT( * ) * MIN( ALL - + 35 ) AS col0 FROM tab0 WHERE NOT - + 49 IS NULL
----
-105

skipif mysql # not compatible
query I rowsort label-9114
SELECT ALL + + COUNT ( * ) * MIN ( ALL - + 35 ) AS col0 FROM tab0 WHERE NOT - + 49 IS NULL
----
-105

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9115
SELECT ALL * FROM tab2 WHERE + CAST( - col0 AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9115
SELECT ALL * FROM tab2 WHERE + CAST ( - col0 AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-9116
SELECT + col0 DIV - + col1 AS col0, + col1 AS col0 FROM tab0
----
-4
21
-97
1
0
81

skipif mysql # not compatible
query II rowsort label-9116
SELECT + col0 / - + col1 AS col0, + col1 AS col0 FROM tab0
----
-4
21
-97
1
0
81

query I rowsort
SELECT DISTINCT col1 + + 92 * col2 FROM tab1
----
5433
6303
8846

query II rowsort
SELECT ALL - col0 + 52 AS col1, col1 * + col2 AS col1 FROM tab2
----
-12
3080
-23
3886
6
1173

query I rowsort
SELECT + ( col0 ) * - col2 - col0 * + - 7 AS col2 FROM tab0 AS cor0
----
-261
-600
-8924

query I rowsort
SELECT - - col2 + - col1 - - ( + 18 ) * + + col0 + 64 FROM tab2 AS cor0
----
1179
1405
864

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 91 + ( + col0 ) + + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9122
SELECT - - COUNT( + col1 ) * - ( 94 ) FROM tab1 WHERE NOT - 26 * - col0 + - col0 = + + col0 * + 84
----
-282

skipif mysql # not compatible
query I rowsort label-9122
SELECT - - COUNT ( + col1 ) * - ( 94 ) FROM tab1 WHERE NOT - 26 * - col0 + - col0 = + + col0 * + 84
----
-282

query III rowsort
SELECT ALL * FROM tab1 WHERE - + col0 - - - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9124
SELECT + MAX( DISTINCT + - col1 ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-9124
SELECT + MAX ( DISTINCT + - col1 ) FROM tab2 AS cor0
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9125
SELECT ALL + col1 FROM tab1 AS cor0 WHERE NOT CAST( - - 48 AS SIGNED ) IS NULL
----
14
47
5

skipif mysql # not compatible
query I rowsort label-9125
SELECT ALL + col1 FROM tab1 AS cor0 WHERE NOT CAST ( - - 48 AS INTEGER ) IS NULL
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-9126
SELECT + col0 DIV - 48 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9126
SELECT + col0 / - 48 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9127
SELECT SUM( ALL - 63 ) FROM tab0 AS cor0
----
-189

skipif mysql # not compatible
query I rowsort label-9127
SELECT SUM ( ALL - 63 ) FROM tab0 AS cor0
----
-189

query I rowsort
SELECT DISTINCT - ( + col1 ) * col2 - - 92 FROM tab2 AS cor0
----
-1081
-2988
-3794

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9129
SELECT + CAST( + - COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9129
SELECT + CAST ( + - COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE + col0 * - 63 + - - 57 < NULL
----

query I rowsort
SELECT 65 * - 38 FROM tab1, tab1 AS cor0
----
9 values hashing to b052abc1b55a1d9eb2c62446344ad770

query I rowsort
SELECT - ( + 9 ) AS col0 FROM tab0
----
-9
-9
-9

query I rowsort
SELECT - col1 + - ( 81 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-102
-162
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-9134
SELECT DISTINCT + COUNT( * ) + 95 FROM tab1, tab1 AS cor0
----
104

skipif mysql # not compatible
query I rowsort label-9134
SELECT DISTINCT + COUNT ( * ) + 95 FROM tab1, tab1 AS cor0
----
104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9135
SELECT + CAST( NULL AS SIGNED ) + - col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9135
SELECT + CAST ( NULL AS INTEGER ) + - col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9136
SELECT DISTINCT COUNT( DISTINCT - 89 ) AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9136
SELECT DISTINCT COUNT ( DISTINCT - 89 ) AS col2 FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9137
SELECT ALL 31 * - - COUNT( * ) FROM tab2 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-9137
SELECT ALL 31 * - - COUNT ( * ) FROM tab2 AS cor0
----
93

query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 NOT BETWEEN + - col0 AND NULL
----
15
81
47

query I rowsort
SELECT DISTINCT + + col2 * + + col0 + + col2 AS col2 FROM tab1 AS cor0
----
4992
5074
6256

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 < - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9141
SELECT + + MIN( DISTINCT - + col0 ) AS col0 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-9141
SELECT + + MIN ( DISTINCT - + col0 ) AS col0 FROM tab1 AS cor0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9142
SELECT DISTINCT + COUNT( * ) + + - 18 AS col0 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-9142
SELECT DISTINCT + COUNT ( * ) + + - 18 AS col0 FROM tab0 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-9143
SELECT + - MAX( DISTINCT + 51 ) - + 53 col0 FROM tab1 AS cor0
----
-104

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9143
SELECT + - MAX ( DISTINCT + 51 ) - + 53 col0 FROM tab1 AS cor0
----
-104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9144
SELECT + + col0 + + col0 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9144
SELECT + + col0 + + col0 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 75 + - col1 - - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9146
SELECT DISTINCT + SUM( ALL col2 ) col1 FROM tab1
----
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9146
SELECT DISTINCT + SUM ( ALL col2 ) col1 FROM tab1
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-9147
SELECT ALL - MAX( DISTINCT + col2 ) col1 FROM tab1
----
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9147
SELECT ALL - MAX ( DISTINCT + col2 ) col1 FROM tab1
----
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 27 + col0 col0 FROM tab2
----
102
73
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9149
SELECT ALL ( - ( - COUNT( - + ( CAST( NULL AS SIGNED ) ) ) ) ) + - - ( - 92 ) AS col0 FROM tab2
----
-92

skipif mysql # not compatible
query I rowsort label-9149
SELECT ALL ( - ( - COUNT ( - + ( CAST ( NULL AS INTEGER ) ) ) ) ) + - - ( - 92 ) AS col0 FROM tab2
----
-92

query I rowsort
SELECT - col1 * 22 AS col2 FROM tab0 AS cor0
----
-1782
-22
-462

query I rowsort
SELECT ALL col0 * col1 + col0 * + 96 FROM tab0 AS cor0
----
10179
2655
9409

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9152
SELECT DISTINCT - - 81 DIV COUNT( * ) FROM tab2 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-9152
SELECT DISTINCT - - 81 / COUNT ( * ) FROM tab2 AS cor0
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9153
SELECT COUNT( * ) * + COUNT( * ) DIV + COUNT( * ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9153
SELECT COUNT ( * ) * + COUNT ( * ) / + COUNT ( * ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9154
SELECT ALL + col0 * CAST( - + ( - - col1 ) AS SIGNED ) * - - 49 FROM tab2 AS cor0
----
-114954
-241472
-246225

skipif mysql # not compatible
query I rowsort label-9154
SELECT ALL + col0 * CAST ( - + ( - - col1 ) AS INTEGER ) * - - 49 FROM tab2 AS cor0
----
-114954
-241472
-246225

onlyif mysql # DIV for integer division: 
query I rowsort label-9155
SELECT DISTINCT + ( col0 ) DIV - 36 AS col2 FROM tab1 AS cor0
----
-1
-2

skipif mysql # not compatible
query I rowsort label-9155
SELECT DISTINCT + ( col0 ) / - 36 AS col2 FROM tab1 AS cor0
----
-1
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9156
SELECT DISTINCT 10 * - COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( + ( + col1 ) ) IS NULL
----
-30

skipif mysql # not compatible
query I rowsort label-9156
SELECT DISTINCT 10 * - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( + ( + col1 ) ) IS NULL
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9157
SELECT - 61 + - + 77 - - + CAST( NULL AS SIGNED ) + - 68 / + 51 * col2 * - - col0 col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9157
SELECT - 61 + - + 77 - - + CAST ( NULL AS INTEGER ) + - 68 / + 51 * col2 * - - col0 col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9158
SELECT + col2 DIV + 5 FROM tab0
----
19
2
9

skipif mysql # not compatible
query I rowsort label-9158
SELECT + col2 / + 5 FROM tab0
----
19
2
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9159
SELECT - CAST( - 52 AS SIGNED ) AS col0 FROM tab0
----
52
52
52

skipif mysql # not compatible
query I rowsort label-9159
SELECT - CAST ( - 52 AS INTEGER ) AS col0 FROM tab0
----
52
52
52

query II rowsort
SELECT DISTINCT 11 AS col1, + 34 * - 86 * 85 AS col2 FROM tab0
----
11
-248540

query II rowsort
SELECT + 89 AS col2, col0 FROM tab1
----
89
51
89
85
89
91

query I rowsort
SELECT col2 * - - 99 AS col1 FROM tab2
----
2277
3960
5742

query I rowsort
SELECT ALL col1 * - col2 + - + col2 * col1 FROM tab2
----
-2346
-6160
-7772

query I rowsort
SELECT DISTINCT - - 60 * + ( + 66 ) * + ( - col2 ) + - col1 + col1 FROM tab1 AS cor0
----
-233640
-269280
-380160

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab0 AS cor0 WHERE + col2 NOT IN ( - - ( - col1 ) + - + ( col1 ), 73 * + 98, ( col1 ), - - col0 * col0 * col0 )
----
-15
-87
-97

query I rowsort
SELECT + ( 71 ) + 40 FROM tab1
----
111
111
111

query I rowsort
SELECT col0 + + - col1 AS col2 FROM tab2
----
-13
-5
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9168
SELECT - MIN( + + 25 ) + - 48 DIV MIN( ALL + + 47 ) FROM tab1
----
-26

skipif mysql # not compatible
query I rowsort label-9168
SELECT - MIN ( + + 25 ) + - 48 / MIN ( ALL + + 47 ) FROM tab1
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-9169
SELECT ALL col1 + + + col1 DIV - + col0 col1 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9169
SELECT ALL col1 + + + col1 / - + col0 col1 FROM tab1 AS cor0
----
14
47
5

query II rowsort
SELECT ALL col1 AS col2, col0 * - col2 + - + col2 FROM tab0 cor0
----
1
-9702
21
-880
81
-752

query I rowsort
SELECT DISTINCT + col1 + + col1 + - - 85 * col1 AS col1 FROM tab1 AS cor0
----
1218
4089
435

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 97 <> + col1
----

query I rowsort
SELECT ALL + 35 - + - col2 AS col2 FROM tab2 AS cor0
----
58
75
93

query I rowsort
SELECT - - 85 * - 87 FROM tab0 AS cor0
----
-7395
-7395
-7395

query I rowsort
SELECT + col0 - + 4 AS col0 FROM tab0
----
11
83
93

query I rowsort
SELECT DISTINCT 82 + - + col2 AS col0 FROM tab1
----
-14
14
23

query I rowsort
SELECT - col1 - 71 AS col0 FROM tab1
----
-118
-76
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-9178
SELECT - COUNT( * ) FROM tab2 WHERE ( - 90 IS NOT NULL )
----
-3

skipif mysql # not compatible
query I rowsort label-9178
SELECT - COUNT ( * ) FROM tab2 WHERE ( - 90 IS NOT NULL )
----
-3

query I rowsort
SELECT + - 23 FROM tab1, tab1 AS cor0 WHERE NULL NOT BETWEEN - - 92 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9180
SELECT + col0 / + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9180
SELECT + col0 / + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * 66 FROM tab1
----
3102
330
924

query I rowsort
SELECT + col0 * - col0 * - col1 * - col1 AS col2 FROM tab1
----
-180625
-18292729
-509796

onlyif mysql # DIV for integer division: 
query I rowsort label-9183
SELECT DISTINCT col1 DIV 45 AS col1 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-9183
SELECT DISTINCT col1 / 45 AS col1 FROM tab1
----
0
1

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - 25 / col0 BETWEEN NULL AND - - 88
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9185
SELECT ALL - CAST( - + col1 AS SIGNED ) FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-9185
SELECT ALL - CAST ( - + col1 AS INTEGER ) FROM tab2 AS cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9186
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9186
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT + + 59 * 68 * - 2 FROM tab1 AS cor0
----
-8024

query I rowsort
SELECT ALL - ( + 24 ) AS col0 FROM tab1 AS cor0
----
-24
-24
-24

query II rowsort
SELECT ALL - + col2 AS col1, col1 AS col2 FROM tab0 AS cor0
----
-10
21
-47
81
-99
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9190
SELECT DISTINCT + COUNT( * ) * + + CAST( - ( - 86 ) AS SIGNED ) AS col0 FROM tab2
----
258

skipif mysql # not compatible
query I rowsort label-9190
SELECT DISTINCT + COUNT ( * ) * + + CAST ( - ( - 86 ) AS INTEGER ) AS col0 FROM tab2
----
258

onlyif mysql # aggregate syntax: 
query I rowsort label-9191
SELECT ALL COUNT( * ) + + - COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9191
SELECT ALL COUNT ( * ) + + - COUNT ( * ) FROM tab1
----
0

query III rowsort
SELECT * FROM tab0 WHERE - - col1 < - - col1
----

query I rowsort
SELECT ALL + ( - 16 ) * 71 * + col1 * col1 AS col1 FROM tab1
----
-222656
-2509424
-28400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9194
SELECT - CAST( NULL AS SIGNED ) * col1 + col0 - + col0 + - 6 + 45 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9194
SELECT - CAST ( NULL AS INTEGER ) * col1 + col0 - + col0 + - 6 + 45 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + 22 FROM tab2 AS cor0 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT 56 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

onlyif mysql # aggregate syntax: 
query I rowsort label-9197
SELECT + COUNT( * ) FROM tab2 WHERE NULL BETWEEN NULL AND col1
----
0

skipif mysql # not compatible
query I rowsort label-9197
SELECT + COUNT ( * ) FROM tab2 WHERE NULL BETWEEN NULL AND col1
----
0

query I rowsort
SELECT - col1 - - 17 FROM tab1 cor0
----
-30
12
3

query I rowsort
SELECT ALL + col1 + 1 FROM tab0 AS cor0
----
2
22
82

query I rowsort
SELECT + 4 + col2 FROM tab1 AS cor0
----
100
63
72

query I rowsort
SELECT DISTINCT col1 - + + col1 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL + col2 - - - 49 FROM tab1 AS cor0
----
10
19
47

query I rowsort
SELECT + col0 + + 4 + - + col1 FROM tab0 AS cor0
----
-62
100
70

query I rowsort
SELECT ALL - ( - col2 ) FROM tab0 AS cor0 WHERE NOT + col2 * + 85 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 - - + 62 + 66 FROM tab2
----
179
195
205

query I rowsort
SELECT ALL - ( col0 ) + col2 + + 59 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 37 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 95 col0, col2 * col1 FROM tab0
----
95
210
95
3807
95
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9209
SELECT ALL + CAST( NULL AS SIGNED ) * + + 63 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9209
SELECT ALL + CAST ( NULL AS INTEGER ) * + + 63 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1, - 66 - - 62 col2 FROM tab0
----
-1
-4
-21
-4
-81
-4

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT ( - - col0 ) IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col1 ) * + + 11 * col0 + 81 col1 FROM tab2
----
25887
54289
55356

query II rowsort
SELECT - 43, + 61 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9214
SELECT + CAST( NULL AS SIGNED ) * col0 col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9214
SELECT + CAST ( NULL AS INTEGER ) * col0 col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 45 < - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9216
SELECT ALL + col1 + + CAST( - 85 AS SIGNED ) + + col0 FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND 16 * + 85
----

skipif mysql # not compatible
query I rowsort label-9216
SELECT ALL + col1 + + CAST ( - 85 AS INTEGER ) + + col0 FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND 16 * + 85
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9217
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) BETWEEN NULL AND 98 + - 32
----

skipif mysql # not compatible
query III rowsort label-9217
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) BETWEEN NULL AND 98 + - 32
----

query I rowsort
SELECT DISTINCT - + 88 * - col2 AS col1 FROM tab2 AS cor0
----
2024
3520
5104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9219
SELECT COUNT( * ) + 71 + 89 DIV + COUNT( * ) FROM tab2 cor0
----
103

skipif mysql # not compatible
query I rowsort label-9219
SELECT COUNT ( * ) + 71 + 89 / + COUNT ( * ) FROM tab2 cor0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-9220
SELECT - MAX( 10 ) FROM tab1
----
-10

skipif mysql # not compatible
query I rowsort label-9220
SELECT - MAX ( 10 ) FROM tab1
----
-10

query I rowsort
SELECT 77 * col1 AS col0 FROM tab0
----
1617
6237
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9222
SELECT - COUNT( * ) FROM tab1 WHERE NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-9222
SELECT - COUNT ( * ) FROM tab1 WHERE NULL = NULL
----
0

query I rowsort
SELECT ALL col2 + + + 53 + + col0 AS col2 FROM tab0
----
115
150
249

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 55 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE 91 NOT BETWEEN NULL AND + col2
----
85
5
59
91
47
68

query I rowsort
SELECT DISTINCT + col0 * - 8 AS col0 FROM tab0
----
-120
-696
-776

onlyif mysql # aggregate syntax: 
query I rowsort label-9227
SELECT ( + + COUNT( * ) ) col2 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9227
SELECT ( + + COUNT ( * ) ) col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9228
SELECT 18 DIV - COUNT( * ) AS col1 FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-9228
SELECT 18 / - COUNT ( * ) AS col1 FROM tab0
----
-6

query I rowsort
SELECT ( + col0 ) + - + col1 AS col2 FROM tab2 WHERE ( 5 / + + ( col2 ) / + - col2 + - 72 * col0 * + col1 ) IN ( + ( col2 ) + 15 )
----

query I rowsort
SELECT DISTINCT - col2 + + + 68 FROM tab1
----
-28
0
9

query I rowsort
SELECT - + ( - col0 ) + col2 AS col0 FROM tab1 AS cor0
----
144
147
159

query II rowsort
SELECT DISTINCT - col2, + col0 AS col1 FROM tab2 AS cor0
----
-23
46
-40
64
-58
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9233
SELECT DISTINCT + CAST( 25 AS SIGNED ) FROM tab2
----
25

skipif mysql # not compatible
query I rowsort label-9233
SELECT DISTINCT + CAST ( 25 AS INTEGER ) FROM tab2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9234
SELECT DISTINCT - COUNT( * ) FROM tab1 WHERE NULL = col2
----
0

skipif mysql # not compatible
query I rowsort label-9234
SELECT DISTINCT - COUNT ( * ) FROM tab1 WHERE NULL = col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9235
SELECT DISTINCT COUNT( * ) + + 97 AS col2 FROM tab0
----
100

skipif mysql # not compatible
query I rowsort label-9235
SELECT DISTINCT COUNT ( * ) + + 97 AS col2 FROM tab0
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-9236
SELECT ALL 13 * - MAX( col2 * col2 ) AS col0 FROM tab1
----
-119808

skipif mysql # not compatible
query I rowsort label-9236
SELECT ALL 13 * - MAX ( col2 * col2 ) AS col0 FROM tab1
----
-119808

query I rowsort
SELECT DISTINCT + col2 * 33 AS col0 FROM tab1
----
1947
2244
3168

query I rowsort
SELECT DISTINCT + col1 / - col1 + col0 AS col1 FROM tab2 WHERE NOT 63 IS NOT NULL
----

query I rowsort
SELECT col1 * 54 - + col0 FROM tab1
----
185
2447
705

query I rowsort
SELECT ALL - 18 * col2 FROM tab1 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + ( 95 ) col0 FROM tab1
----
1330
4465
475

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 63 col1 FROM tab0
----
-63
-63
-63

query I rowsort
SELECT DISTINCT 3 * + col2 FROM tab1
----
177
204
288

query I rowsort
SELECT ALL col0 * - ( + col1 ) AS col0 FROM tab0
----
-1215
-1827
-97

query I rowsort
SELECT - 2 * - col0 FROM tab0 WHERE NOT ( NULL ) BETWEEN + 53 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9246
SELECT ALL + ( - 79 ) DIV 63 col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9246
SELECT ALL + ( - 79 ) / 63 col0 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NOT + col1 NOT IN ( col2 * + 96 )
----

query I rowsort
SELECT ALL 44 + + col0 FROM tab1
----
129
135
95

query I rowsort
SELECT DISTINCT col2 * + col2 FROM tab0 WHERE ( col2 + - col1 ) <> ( 1 * col1 )
----
100
2209
9801

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9250
SELECT DISTINCT CAST( 82 AS SIGNED ) * 76 + + 31 FROM tab2
----
6263

skipif mysql # not compatible
query I rowsort label-9250
SELECT DISTINCT CAST ( 82 AS INTEGER ) * 76 + + 31 FROM tab2
----
6263

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col2 FROM tab2 WHERE ( + col1 * - 68 ) BETWEEN col1 AND + 44 * - col2 + 20 * - col0
----

query I rowsort
SELECT ALL + col0 AS col0 FROM tab2 WHERE NULL IN ( + 77 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9253
SELECT 7 DIV - CAST( + COUNT( - 70 ) * 5 AS SIGNED ) AS col0 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9253
SELECT 7 / - CAST ( + COUNT ( - 70 ) * 5 AS INTEGER ) AS col0 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9254
SELECT + COUNT( DISTINCT - 61 ) col0 FROM tab2
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9254
SELECT + COUNT ( DISTINCT - 61 ) col0 FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9255
SELECT + COUNT( ( - col1 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9255
SELECT + COUNT ( ( - col1 ) ) FROM tab1
----
3

query III rowsort
SELECT * FROM tab0 WHERE col1 + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9257
SELECT - 77 * SUM( ( col0 ) ) AS col2 FROM tab2 AS cor0
----
-14245

skipif mysql # not compatible
query I rowsort label-9257
SELECT - 77 * SUM ( ( col0 ) ) AS col2 FROM tab2 AS cor0
----
-14245

onlyif mysql # aggregate syntax: 
query I rowsort label-9258
SELECT COUNT( ALL - col2 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9258
SELECT COUNT ( ALL - col2 ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9259
SELECT ( + SUM( DISTINCT col1 ) ) AS col1 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-9259
SELECT ( + SUM ( DISTINCT col1 ) ) AS col1 FROM tab0
----
103

query I rowsort
SELECT ALL - col0 * - 67 FROM tab1
----
3417
5695
6097

query I rowsort
SELECT DISTINCT 50 + 23 AS col0 FROM tab2
----
73

query I rowsort
SELECT + + 95 * + 22 AS col1 FROM tab0 AS cor0
----
2090
2090
2090

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 80 + col1 * - 65 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9264
SELECT - col1 + + col0 DIV - col1 AS col2 FROM tab0 AS cor0 WHERE col1 BETWEEN ( col0 * - col0 ) AND col2 + col0
----
-25
-98

skipif mysql # not compatible
query I rowsort label-9264
SELECT - col1 + + col0 / - col1 AS col2 FROM tab0 AS cor0 WHERE col1 BETWEEN ( col0 * - col0 ) AND col2 + col0
----
-25
-98

query I rowsort
SELECT DISTINCT - + 77 AS col0 FROM tab0 AS cor0
----
-77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL > ( + col1 + - 98 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 99 + col1 > NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9268
SELECT - MIN( - ( col1 ) ) DIV + ( + 9 ) FROM tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-9268
SELECT - MIN ( - ( col1 ) ) / + ( + 9 ) FROM tab0 cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9269
SELECT ALL COUNT( * ) * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9269
SELECT ALL COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9270
SELECT DISTINCT + CAST( + + 95 AS SIGNED ) * - COUNT( * ) FROM tab2
----
-285

skipif mysql # not compatible
query I rowsort label-9270
SELECT DISTINCT + CAST ( + + 95 AS INTEGER ) * - COUNT ( * ) FROM tab2
----
-285

query I rowsort
SELECT DISTINCT col1 * 53 * col2 AS col1 FROM tab2
----
163240
205958
62169

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 83 * - col0 * + 14 col1 FROM tab1
----
-105742
-59262
-98770

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9273
SELECT ALL * FROM tab2 WHERE col0 / + CAST( - col0 AS SIGNED ) + + col1 * col1 NOT BETWEEN ( NULL ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-9273
SELECT ALL * FROM tab2 WHERE col0 / + CAST ( - col0 AS INTEGER ) + + col1 * col1 NOT BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + 28 IS NULL
----

query I rowsort
SELECT 97 * + 59 + 77 FROM tab2
----
5800
5800
5800

query I rowsort
SELECT ALL col2 + + + col0 AS col2 FROM tab1
----
144
147
159

onlyif mysql # DIV for integer division: 
query I rowsort label-9277
SELECT - col2 + - + col2 DIV - col1 AS col2 FROM tab0 cor0
----
-10
-47
0

skipif mysql # not compatible
query I rowsort label-9277
SELECT - col2 + - + col2 / - col1 AS col2 FROM tab0 cor0
----
-10
-47
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9278
SELECT DISTINCT col1 * col1 + CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9278
SELECT DISTINCT col1 * col1 + CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - col1 * - - 85 AS col1 FROM tab1 AS cor0
----
-1190
-3995
-425

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - col1 ) IN ( col2 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN col2 AND + col0
----

query I rowsort
SELECT DISTINCT - col0 * ( - 70 ) FROM tab2
----
3220
4480
5250

query I rowsort
SELECT 44 AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab2 cor1 )
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9284
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 * - ( + CAST( - ( - col1 ) AS DECIMAL ) ) * - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9284
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 * - ( + CAST ( - ( - col1 ) AS REAL ) ) * - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9285
SELECT * FROM tab0 AS cor0 WHERE 57 / + - CAST( ( col2 ) AS SIGNED ) * - col0 + col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-9285
SELECT * FROM tab0 AS cor0 WHERE 57 / + - CAST ( ( col2 ) AS INTEGER ) * - col0 + col1 IS NULL
----

query I rowsort
SELECT - ( col1 ) FROM tab0 AS cor0 WHERE NULL <= NULL OR NULL IN ( - col0 + - 79 )
----

query I rowsort
SELECT - 93 * + 63 * + col2 AS col2 FROM tab0 AS cor0
----
-275373
-580041
-58590

onlyif mysql # aggregate syntax: 
query I rowsort label-9288
SELECT ( - ( + COUNT( * ) ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9288
SELECT ( - ( + COUNT ( * ) ) ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9289
SELECT - COUNT( * ) AS col1 FROM tab1 cor0 WHERE NOT + col0 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9289
SELECT - COUNT ( * ) AS col1 FROM tab1 cor0 WHERE NOT + col0 BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT ALL 25 + 98 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - col2 AND NULL
----

query I rowsort
SELECT ALL col1 * 85 FROM tab0 AS cor0
----
1785
6885
85

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 40 >= - - col0 - 15
----
15
81
47

query I rowsort
SELECT DISTINCT + 17 * col2 AS col0 FROM tab0 AS cor0
----
1683
170
799

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9294
SELECT CAST( col2 AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE NOT ( 4 + + 35 + - col2 ) >= ( - col2 )
----

skipif mysql # not compatible
query I rowsort label-9294
SELECT CAST ( col2 AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NOT ( 4 + + 35 + - col2 ) >= ( - col2 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 77 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - ( + col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 * col2 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9298
SELECT ALL col1 * - 52 AS col2, CAST( col0 AS SIGNED ) AS col0 FROM tab1
----
-2444
91
-260
85
-728
51

skipif mysql # not compatible
query II rowsort label-9298
SELECT ALL col1 * - 52 AS col2, CAST ( col0 AS INTEGER ) AS col0 FROM tab1
----
-2444
91
-260
85
-728
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9299
SELECT + 20 DIV - COUNT( * ) col0 FROM tab2
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9299
SELECT + 20 / - COUNT ( * ) col0 FROM tab2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9300
SELECT DISTINCT COUNT( ALL - 46 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9300
SELECT DISTINCT COUNT ( ALL - 46 ) FROM tab1
----
3

query I rowsort
SELECT DISTINCT 60 * col1 * + 14 FROM tab0
----
17640
68040
840

onlyif mysql # DIV for integer division: 
query II rowsort label-9302
SELECT + col1 DIV col0, col0 AS col1 FROM tab1
----
0
51
0
85
0
91

skipif mysql # not compatible
query II rowsort label-9302
SELECT + col1 / col0, col0 AS col1 FROM tab1
----
0
51
0
85
0
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9303
SELECT + + ( COUNT( DISTINCT + col0 ) ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9303
SELECT + + ( COUNT ( DISTINCT + col0 ) ) FROM tab2 cor0
----
3

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( + 17 ) AND ( + col0 )
----

query I rowsort
SELECT 49 FROM tab1 AS cor0 WHERE NOT - 27 <> ( NULL )
----

query II rowsort
SELECT - col1 * col1, - ( - col1 ) + col2 AS col2 FROM tab0 AS cor0
----
-1
100
-441
31
-6561
128

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <= - col0 * + col0 * + 34
----

query I rowsort
SELECT DISTINCT - col1 + + 47 + - col2 AS col1 FROM tab1
----
-17
-63
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-9309
SELECT - MAX( - - 49 ) FROM tab2
----
-49

skipif mysql # not compatible
query I rowsort label-9309
SELECT - MAX ( - - 49 ) FROM tab2
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9310
SELECT + 55 + - col0 + + CAST( - 97 AS SIGNED ) + + + col1 FROM tab1 AS cor0
----
-122
-79
-86

skipif mysql # not compatible
query I rowsort label-9310
SELECT + 55 + - col0 + + CAST ( - 97 AS INTEGER ) + + + col1 FROM tab1 AS cor0
----
-122
-79
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9311
SELECT ALL 85 / + 42 AS col1 FROM tab0 AS cor0 WHERE NOT + col0 + - - 12 * + CAST( NULL AS SIGNED ) * ( 21 ) > ( - col1 )
----

skipif mysql # not compatible
query I rowsort label-9311
SELECT ALL 85 / + 42 AS col1 FROM tab0 AS cor0 WHERE NOT + col0 + - - 12 * + CAST ( NULL AS INTEGER ) * ( 21 ) > ( - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col1, col1 * col1 FROM tab2 cor0
----
51
2601
67
4489
77
5929

query I rowsort
SELECT col2 * + 2 AS col1 FROM tab0 AS cor0 WHERE NOT 58 IS NULL AND + col1 - 23 + col1 * - col1 NOT BETWEEN col0 AND ( + ( col0 ) + - 29 )
----
198
20
94

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9314
SELECT * FROM tab2 AS cor0 WHERE 66 + CAST( NULL AS SIGNED ) + - col0 BETWEEN + + col0 AND col2 + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9314
SELECT * FROM tab2 AS cor0 WHERE 66 + CAST ( NULL AS INTEGER ) + - col0 BETWEEN + + col0 AND col2 + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT 63 + + col2 AS col2 FROM tab0 AS cor0
----
110
162
73

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9316
SELECT * FROM tab0 AS cor0 WHERE - CAST( col0 AS SIGNED ) + + col0 > + col0 / 31 + + col0
----

skipif mysql # not compatible
query III rowsort label-9316
SELECT * FROM tab0 AS cor0 WHERE - CAST ( col0 AS INTEGER ) + + col0 > + col0 / 31 + + col0
----

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE ( - 97 ) * + + ( + 65 ) * ( - col0 ) + 93 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col2 FROM tab1 AS cor0 WHERE NOT 15 * - + col2 + + 43 >= - col1
----
59
68
96

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE col1 IN ( + 37 )
----

query I rowsort
SELECT DISTINCT - ( col1 ) + 51 AS col1 FROM tab2
----
-16
-26
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9321
SELECT - MIN( + 47 ) * + COUNT( - 13 ) * 90 AS col0 FROM tab0
----
-12690

skipif mysql # not compatible
query I rowsort label-9321
SELECT - MIN ( + 47 ) * + COUNT ( - 13 ) * 90 AS col0 FROM tab0
----
-12690

query I rowsort
SELECT ALL - col2 * 31 AS col2 FROM tab0
----
-1457
-3069
-310

onlyif mysql # DIV for integer division: 
query I rowsort label-9323
SELECT - ( + 9 ) DIV + col1 FROM tab0
----
-9
0
0

skipif mysql # not compatible
query I rowsort label-9323
SELECT - ( + 9 ) / + col1 FROM tab0
----
-9
0
0

query I rowsort
SELECT DISTINCT col0 * - col1 FROM tab1 WHERE + + 58 - col0 + - col2 BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9325
SELECT ALL - COUNT( * ) col0 FROM tab0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9325
SELECT ALL - COUNT ( * ) col0 FROM tab0 WHERE NULL IS NULL
----
-3

query II rowsort
SELECT ALL col1 + + col2, + col1 * 79 AS col1 FROM tab1
----
110
1106
115
3713
64
395

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( - - col2 ), 7 col0 FROM tab0
----
10
7
47
7
99
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9328
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - col0 * col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9328
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - col0 * col2 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE col0 NOT BETWEEN NULL AND 42
----
87
21
10
97
1
99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9330
SELECT DISTINCT + 18 + CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-9330
SELECT DISTINCT + 18 + CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9331
SELECT 60 * + - COUNT( * ) * + ( + 88 ) FROM tab0
----
-15840

skipif mysql # not compatible
query I rowsort label-9331
SELECT 60 * + - COUNT ( * ) * + ( + 88 ) FROM tab0
----
-15840

onlyif mysql # aggregate syntax: 
query I rowsort label-9332
SELECT ALL + 76 * 92 * COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT - ( - col2 ) IS NULL
----
20976

skipif mysql # not compatible
query I rowsort label-9332
SELECT ALL + 76 * 92 * COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT - ( - col2 ) IS NULL
----
20976

query I rowsort
SELECT ALL + col2 FROM tab2 AS cor0 WHERE ( - 80 ) BETWEEN col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9334
SELECT + CAST( 62 AS SIGNED ) * - + 33 - + 31 * - - ( + 35 ) * + col1 + + 54 AS col2 FROM tab0 AS cor0
----
-24777
-3077
-89877

skipif mysql # not compatible
query I rowsort label-9334
SELECT + CAST ( 62 AS INTEGER ) * - + 33 - + 31 * - - ( + 35 ) * + col1 + + 54 AS col2 FROM tab0 AS cor0
----
-24777
-3077
-89877

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9335
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + CAST( NULL AS SIGNED ) * + col1 AND col2
----

skipif mysql # not compatible
query III rowsort label-9335
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + CAST ( NULL AS INTEGER ) * + col1 AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9336
SELECT ALL SUM( - 27 ) AS col1 FROM tab1 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-9336
SELECT ALL SUM ( - 27 ) AS col1 FROM tab1 AS cor0
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9337
SELECT - - CAST( NULL AS SIGNED ) * + MIN( + - col2 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9337
SELECT - - CAST ( NULL AS INTEGER ) * + MIN ( + - col2 ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9338
SELECT DISTINCT - COUNT( * ) col1, - CAST( NULL AS SIGNED ) FROM tab2
----
-3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9338
SELECT DISTINCT - COUNT ( * ) col1, - CAST ( NULL AS INTEGER ) FROM tab2
----
-3
NULL

query I rowsort
SELECT ( - + 57 ) AS col1 FROM tab1
----
-57
-57
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9340
SELECT ALL CAST( NULL AS SIGNED ) * + 25 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9340
SELECT ALL CAST ( NULL AS INTEGER ) * + 25 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 46 * - 7 IS NOT NULL
----

query I rowsort
SELECT + 64 + - ( - - 85 ) FROM tab0 AS cor0
----
-21
-21
-21

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NOT col2 / + 19 NOT BETWEEN NULL AND - col0
----

query I rowsort
SELECT ALL + ( - 37 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab1 cor1 WHERE NOT NULL > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9346
SELECT DISTINCT - + 48 * + + CAST( NULL AS SIGNED ) + 41 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-9346
SELECT DISTINCT - + 48 * + + CAST ( NULL AS INTEGER ) + 41 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 <> - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9348
SELECT - - 23 + col0 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN - - 41 AND + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9348
SELECT - - 23 + col0 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN - - 41 AND + + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN ( + col2 ) AND ( - 67 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9350
SELECT SUM( ALL - - ( + col1 ) ) AS col1 FROM tab2 AS cor0 WHERE NULL IN ( + 42, col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9350
SELECT SUM ( ALL - - ( + col1 ) ) AS col1 FROM tab2 AS cor0 WHERE NULL IN ( + 42, col1 )
----
NULL

query I rowsort
SELECT + - 37 - + + 15 FROM tab2 AS cor0
----
-52
-52
-52

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col2 ) <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9353
SELECT - col1 + col0 DIV col1 FROM tab0
----
-17
-81
96

skipif mysql # not compatible
query I rowsort label-9353
SELECT - col1 + col0 / col1 FROM tab0
----
-17
-81
96

query II rowsort
SELECT DISTINCT col2, col1 * - - 54 FROM tab0
----
10
1134
47
4374
99
54

query III rowsort
SELECT * FROM tab0 WHERE - col1 = col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9356
SELECT ALL + COUNT( - 30 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9356
SELECT ALL + COUNT ( - 30 ) AS col1 FROM tab2
----
3

query I rowsort
SELECT col2 + col1 + - - 44 * col2 AS col0 FROM tab2
----
1086
1877
2677

query I rowsort
SELECT ALL - 99 + col2 FROM tab1
----
-3
-31
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9359
SELECT - CAST( NULL AS SIGNED ) * - COUNT( * ) + - 50 * + COUNT( * ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9359
SELECT - CAST ( NULL AS INTEGER ) * - COUNT ( * ) + - 50 * + COUNT ( * ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT 79 * - 91 FROM tab2
----
-7189
-7189
-7189

onlyif mysql # aggregate syntax: 
query I rowsort label-9361
SELECT - - MAX( + - 65 ) AS col1 FROM tab1 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-9361
SELECT - - MAX ( + - 65 ) AS col1 FROM tab1 AS cor0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-9362
SELECT ALL SUM( + col0 ) AS col1 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-9362
SELECT ALL SUM ( + col0 ) AS col1 FROM tab1
----
227

onlyif mysql # aggregate syntax: 
query II rowsort label-9363
SELECT - COUNT( * ) col1, + 93 * + + COUNT( * ) FROM tab0
----
-3
279

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9363
SELECT - COUNT ( * ) col1, + 93 * + + COUNT ( * ) FROM tab0
----
-3
279

query II rowsort
SELECT ALL + col1 AS col2, 15 FROM tab1
----
14
15
47
15
5
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + col0 col2 FROM tab0
----
1215
1827
97

onlyif mysql # DIV for integer division: 
query I rowsort label-9366
SELECT - col1 DIV + 55 col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9366
SELECT - col1 / + 55 col1 FROM tab1
----
0
0
0

query I rowsort
SELECT - ( 70 ) * col1 AS col1 FROM tab0
----
-1470
-5670
-70

query II rowsort
SELECT col2, 74 AS col1 FROM tab2
----
23
74
40
74
58
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9369
SELECT - - ( COUNT( * ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9369
SELECT - - ( COUNT ( * ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query II rowsort
SELECT ALL + + col1, - 64 * + col0 * col1 - - 22 + - 50 FROM tab2 AS cor0
----
51
-150172
67
-321628
77
-315420

onlyif mysql # aggregate syntax: 
query I rowsort label-9371
SELECT ALL - 32 * - MAX( + - col2 ) FROM tab1 AS cor0
----
-1888

skipif mysql # not compatible
query I rowsort label-9371
SELECT ALL - 32 * - MAX ( + - col2 ) FROM tab1 AS cor0
----
-1888

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col2 AND ( - - col1 )
----

query I rowsort
SELECT DISTINCT + 82 * + 43 * + ( - + col1 ) AS col0 FROM tab1 AS cor0
----
-165722
-17630
-49364

onlyif mysql # aggregate syntax: 
query I rowsort label-9374
SELECT + - COUNT( + ( + + col1 ) ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9374
SELECT + - COUNT ( + ( + + col1 ) ) AS col2 FROM tab2 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 63 * - col1 col0 FROM tab2 cor0
----
3213
4221
4851

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 AS col1, - col2 * + col0 col2 FROM tab2 AS cor0
----
-51
-1058
-67
-4350
-77
-2560

query I rowsort
SELECT ALL + + 16 AS col1 FROM tab2 AS cor0
----
16
16
16

query II rowsort
SELECT ( 4 ) AS col2, col2 FROM tab1
----
4
59
4
68
4
96

onlyif mysql # DIV for integer division: 
query I rowsort label-9379
SELECT DISTINCT - 33 DIV - 32 AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-9379
SELECT DISTINCT - 33 / - 32 AS col2 FROM tab0
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-9380
SELECT ALL col1 DIV - - col0, col1 col1 FROM tab2
----
0
67
1
51
1
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9380
SELECT ALL col1 / - - col0, col1 col1 FROM tab2
----
0
67
1
51
1
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9381
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab0 WHERE ( ( NULL <= + col1 ) )
----
0

skipif mysql # not compatible
query I rowsort label-9381
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab0 WHERE ( ( NULL <= + col1 ) )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9382
SELECT 29, COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
29
0

skipif mysql # not compatible
query II rowsort label-9382
SELECT 29, COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
29
0

query I rowsort
SELECT + 37 * + col1 FROM tab0 AS cor0
----
2997
37
777

onlyif mysql # aggregate syntax: 
query I rowsort label-9384
SELECT DISTINCT + + MIN( DISTINCT ( + col2 ) ) AS col0 FROM tab2 WHERE NOT col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9384
SELECT DISTINCT + + MIN ( DISTINCT ( + col2 ) ) AS col0 FROM tab2 WHERE NOT col1 IS NOT NULL
----
NULL

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 LEFT JOIN tab1 cor1 ON NOT 86 IS NOT NULL, tab0 AS cor2
----
81 values hashing to d4aff483c27fb3b3853465e3bbe14a25

query I rowsort
SELECT - 85 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-85
-85
-85

query I rowsort
SELECT ALL + col1 + + - 32 FROM tab0 AS cor0
----
-11
-31
49

query I rowsort
SELECT ALL - - ( + col0 ) AS col2 FROM tab0 cor0
----
15
87
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 24 - + col0 = - + col0 + - col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + ( + col1 ) - - + col1 IS NULL
----

query I rowsort
SELECT + col1 FROM tab0 WHERE ( + col1 ) BETWEEN NULL AND ( ( + 52 ) ) * col0 - + + col2 - - ( - col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9392
SELECT MIN( + - CAST( - col1 AS SIGNED ) ) - COUNT( * ) AS col1, SUM( col1 ) col0 FROM tab1
----
2
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9392
SELECT MIN ( + - CAST ( - col1 AS INTEGER ) ) - COUNT ( * ) AS col1, SUM ( col1 ) col0 FROM tab1
----
2
66

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN 13 AND - - 46 * + col2 / - 33
----

query III rowsort
SELECT * FROM tab1 WHERE - - col2 * - - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9395
SELECT - CAST( NULL AS SIGNED ) AS col2, - col0 AS col2 FROM tab2
----
NULL
-46
NULL
-64
NULL
-75

skipif mysql # not compatible
query II rowsort label-9395
SELECT - CAST ( NULL AS INTEGER ) AS col2, - col0 AS col2 FROM tab2
----
NULL
-46
NULL
-64
NULL
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9396
SELECT + + 65 DIV + COUNT( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
7

skipif mysql # not compatible
query I rowsort label-9396
SELECT + + 65 / + COUNT ( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
7

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9397
SELECT DISTINCT - col2 * - CAST( col1 AS SIGNED ) AS col0 FROM tab0 WHERE NOT - CAST( NULL AS SIGNED ) + + + CAST( + col0 AS DECIMAL ) > + 67 * 47 + col2
----

skipif mysql # not compatible
query I rowsort label-9397
SELECT DISTINCT - col2 * - CAST ( col1 AS INTEGER ) AS col0 FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) + + + CAST ( + col0 AS REAL ) > + 67 * 47 + col2
----

query I rowsort
SELECT DISTINCT + col1 * - - col2 AS col2 FROM tab0 AS cor0
----
210
3807
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 - + 55 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9400
SELECT + SUM( DISTINCT col0 ) * - + SUM( - col1 ) + - COUNT( * ) - - SUM( ALL + col0 ) AS col2 FROM tab0 AS cor0
----
20693

skipif mysql # not compatible
query I rowsort label-9400
SELECT + SUM ( DISTINCT col0 ) * - + SUM ( - col1 ) + - COUNT ( * ) - - SUM ( ALL + col0 ) AS col2 FROM tab0 AS cor0
----
20693

query II rowsort
SELECT ALL + col1, - col2 AS col2 FROM tab1 AS cor0
----
14
-96
47
-68
5
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9402
SELECT + 2 * + ( + COUNT( * ) ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9402
SELECT + 2 * + ( + COUNT ( * ) ) FROM tab1 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9403
SELECT - MAX( DISTINCT - col1 ) FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-9403
SELECT - MAX ( DISTINCT - col1 ) FROM tab0 cor0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9404
SELECT DISTINCT - 83, COUNT( * ) col1 FROM tab1 AS cor0
----
-83
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9404
SELECT DISTINCT - 83, COUNT ( * ) col1 FROM tab1 AS cor0
----
-83
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9405
SELECT + + col2 DIV - + col0 FROM tab0 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-9405
SELECT + + col2 / - + col0 FROM tab0 AS cor0
----
-1
-3
0

query I rowsort
SELECT ALL + col2 FROM tab2 AS cor0 WHERE + col0 IS NOT NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9407
SELECT DISTINCT - MAX( + + col1 ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-9407
SELECT DISTINCT - MAX ( + + col1 ) FROM tab2
----
-77

query I rowsort
SELECT ALL - col2 * - 36 AS col2 FROM tab1
----
2124
2448
3456

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9409
SELECT * FROM tab0 WHERE NOT NULL IN ( + col1 * col2 + - CAST( + col1 AS SIGNED ), col1 * + + col2 )
----

skipif mysql # not compatible
query III rowsort label-9409
SELECT * FROM tab0 WHERE NOT NULL IN ( + col1 * col2 + - CAST ( + col1 AS INTEGER ), col1 * + + col2 )
----

query I rowsort
SELECT DISTINCT 73 AS col0 FROM tab1 WHERE NOT - - col0 * col1 + col0 IS NULL
----
73

query I rowsort
SELECT ALL + col1 * + + col1 * + - 45 AS col0 FROM tab1
----
-1125
-8820
-99405

query II rowsort
SELECT ALL col2, - col1 + col0 FROM tab1 WHERE + + col0 = NULL
----

query I rowsort
SELECT ALL - + 92 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965

query I rowsort
SELECT - col0 FROM tab2 WHERE col1 * + 59 NOT BETWEEN ( - col0 ) AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9415
SELECT ALL + CAST( col2 AS SIGNED ) + + col2 AS col2 FROM tab2 AS cor0
----
116
46
80

skipif mysql # not compatible
query I rowsort label-9415
SELECT ALL + CAST ( col2 AS INTEGER ) + + col2 AS col2 FROM tab2 AS cor0
----
116
46
80

query I rowsort
SELECT + col2 * + col2 - + col2 AS col2 FROM tab1 cor0
----
3422
4556
9120

onlyif mysql # aggregate syntax: 
query I rowsort label-9417
SELECT - - 97 - + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-9417
SELECT - - 97 - + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
94

query I rowsort
SELECT DISTINCT - + col0 * + - col2 AS col0 FROM tab2 AS cor0
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-9419
SELECT DISTINCT COUNT( * ) + - - COUNT( * ) AS col1 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9419
SELECT DISTINCT COUNT ( * ) + - - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
6

query I rowsort
SELECT DISTINCT + col1 - + + col1 - + col2 AS col1 FROM tab2 cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9421
SELECT ( - COUNT( + col0 ) ) + - COUNT( * ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-9421
SELECT ( - COUNT ( + col0 ) ) + - COUNT ( * ) FROM tab2 AS cor0
----
-6

query II rowsort
SELECT ALL - col0 - - - 2 AS col0, 91 * ( - - 59 ) FROM tab1 AS cor0
----
-53
5369
-87
5369
-93
5369

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9423
SELECT + CAST( + col2 AS SIGNED ) / - col1 FROM tab0 AS cor0 WHERE 66 + col1 > NULL
----

skipif mysql # not compatible
query I rowsort label-9423
SELECT + CAST ( + col2 AS INTEGER ) / - col1 FROM tab0 AS cor0 WHERE 66 + col1 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 83 col1 FROM tab2
----
134
150
160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - + col0 ) * - - col2 col1 FROM tab2
----
-1058
-2560
-4350

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9426
SELECT ALL - CAST( - ( - ( - col2 ) ) AS SIGNED ) * 44 AS col0, - 65 col1 FROM tab1 WHERE NOT ( NOT col0 * - col2 - 36 IS NULL )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9426
SELECT ALL - CAST ( - ( - ( - col2 ) ) AS INTEGER ) * 44 AS col0, - 65 col1 FROM tab1 WHERE NOT ( NOT col0 * - col2 - 36 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9427
SELECT ALL - ( + COUNT( DISTINCT col0 ) ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9427
SELECT ALL - ( + COUNT ( DISTINCT col0 ) ) AS col1 FROM tab0
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 * + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9430
SELECT 94 DIV - 13 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

skipif mysql # not compatible
query I rowsort label-9430
SELECT 94 / - 13 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

query I rowsort
SELECT + ( + col1 ) * + + col1 AS col0 FROM tab2 cor0
----
2601
4489
5929

query I rowsort
SELECT col2 * 89 AS col2 FROM tab2 AS cor0
----
2047
3560
5162

query I rowsort
SELECT 71 + - 44 FROM tab2 cor0
----
27
27
27

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 - + - col2 IS NULL
----

query I rowsort
SELECT ALL 40 + - ( col1 ) * + col1 FROM tab1
----
-156
-2169
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9436
SELECT + 16 + - + CAST( NULL AS SIGNED ), MAX( - col2 ) AS col2 FROM tab1 WHERE NOT - 3 * + 87 - - + col1 + + col0 >= - 16 / 64 + - + col1 + 52 * - ( + col1 ) * col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9436
SELECT + 16 + - + CAST ( NULL AS INTEGER ), MAX ( - col2 ) AS col2 FROM tab1 WHERE NOT - 3 * + 87 - - + col1 + + col0 >= - 16 / 64 + - + col1 + 52 * - ( + col1 ) * col0
----
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 83 col1, - col0 FROM tab0
----
83
-15
83
-87
83
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9438
SELECT ALL col1 + - - CAST( NULL AS SIGNED ) / + ( + col1 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9438
SELECT ALL col1 + - - CAST ( NULL AS INTEGER ) / + ( + col1 ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9439
SELECT DISTINCT - col0 AS col1, col0 / + - 99 + - CAST( - col2 AS SIGNED ) + ( + col2 ) + - col1 + + col1 * - col0 FROM tab0 WHERE col0 NOT BETWEEN - + col1 * 88 AND NULL
----

skipif mysql # not compatible
query II rowsort label-9439
SELECT DISTINCT - col0 AS col1, col0 / + - 99 + - CAST ( - col2 AS INTEGER ) + ( + col2 ) + - col1 + + col1 * - col0 FROM tab0 WHERE col0 NOT BETWEEN - + col1 * 88 AND NULL
----

query II rowsort
SELECT col0 AS col0, - 84 FROM tab0
----
15
-84
87
-84
97
-84

query I rowsort
SELECT ALL - col1 + - + col2 AS col0 FROM tab2
----
-117
-125
-74

query I rowsort
SELECT ALL col0 / - col1 + + - col0 FROM tab2 WHERE NULL BETWEEN col0 AND NULL
----

query I rowsort
SELECT ALL + + 41 AS col1 FROM tab1 AS cor0
----
41
41
41

query I rowsort
SELECT ALL col1 * + + 4 * + + ( + + col1 ) AS col0 FROM tab0 AS cor0
----
1764
26244
4

onlyif mysql # DIV for integer division: 
query I rowsort label-9445
SELECT DISTINCT + - col2 DIV + - col0 AS col1 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-9445
SELECT DISTINCT + - col2 / + - col0 AS col1 FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT - 33 * - + 16 * 71 * 6 + + 54 AS col2 FROM tab1
----
224982
224982
224982

onlyif mysql # aggregate syntax: 
query I rowsort label-9447
SELECT ALL COUNT( * ) AS col2 FROM tab2, tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-9447
SELECT ALL COUNT ( * ) AS col2 FROM tab2, tab2 cor0
----
9

query I rowsort
SELECT DISTINCT - 33 + + 59 + - - col1 * - col1 FROM tab0
----
-415
-6535
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9449
SELECT ALL - COUNT( * ) * COUNT( + - CAST( NULL AS SIGNED ) ) + + COUNT( - 79 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9449
SELECT ALL - COUNT ( * ) * COUNT ( + - CAST ( NULL AS INTEGER ) ) + + COUNT ( - 79 ) FROM tab2 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9450
SELECT * FROM tab1 AS cor0 WHERE NULL <> ( + CAST( + col2 AS SIGNED ) - col0 )
----

skipif mysql # not compatible
query III rowsort label-9450
SELECT * FROM tab1 AS cor0 WHERE NULL <> ( + CAST ( + col2 AS INTEGER ) - col0 )
----

query I rowsort
SELECT ALL + - col0 + - 63 AS col0 FROM tab2 AS cor0
----
-109
-127
-138

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) >= ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 6 <= - 55 * + 73 + + col2
----

query I rowsort
SELECT DISTINCT col2 * ( + + col1 ) AS col0 FROM tab0 AS cor0
----
210
3807
99

query I rowsort
SELECT ALL - 91 - + 70 FROM tab0 AS cor0
----
-161
-161
-161

onlyif mysql # aggregate syntax: 
query I rowsort label-9456
SELECT ALL - COUNT( - + 74 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9456
SELECT ALL - COUNT ( - + 74 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT 23 - col2 AS col1 FROM tab2 AS cor0
----
-17
-35
0

query I rowsort
SELECT + col2 - col1 + + - col2 FROM tab2 cor0
----
-51
-67
-77

query I rowsort
SELECT ALL + - 95 * 66 AS col1 FROM tab2 AS cor0 WHERE col2 - + col0 <> + + col2 * + col0 * - col1
----
-6270
-6270
-6270

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9460
SELECT - - COUNT( * ) - - + CAST( NULL AS SIGNED ) col1, + COUNT( * ) AS col0 FROM tab2 AS cor0
----
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9460
SELECT - - COUNT ( * ) - - + CAST ( NULL AS INTEGER ) col1, + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
NULL
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9461
SELECT ALL CAST( - SUM( ALL - col0 ) AS SIGNED ) DIV + 77 AS col1 FROM tab2
----
2

skipif mysql # not compatible
query I rowsort label-9461
SELECT ALL CAST ( - SUM ( ALL - col0 ) AS INTEGER ) / + 77 AS col1 FROM tab2
----
2

query I rowsort
SELECT + 40 - + col1 AS col0 FROM tab0
----
-41
19
39

query III rowsort
SELECT * FROM tab1 WHERE NULL IS NULL AND - + 42 IN ( col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9464
SELECT + CAST( NULL AS SIGNED ) * - - COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9464
SELECT + CAST ( NULL AS INTEGER ) * - - COUNT ( * ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9465
SELECT - CAST( - col2 AS SIGNED ) * + col2 AS col1 FROM tab0
----
100
2209
9801

skipif mysql # not compatible
query I rowsort label-9465
SELECT - CAST ( - col2 AS INTEGER ) * + col2 AS col1 FROM tab0
----
100
2209
9801

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9466
SELECT DISTINCT - + col0 * - - CAST( + 62 AS SIGNED ) col1 FROM tab0 AS cor0
----
-5394
-6014
-930

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9466
SELECT DISTINCT - + col0 * - - CAST ( + 62 AS INTEGER ) col1 FROM tab0 AS cor0
----
-5394
-6014
-930

query I rowsort
SELECT DISTINCT - + ( + 0 ) AS col1 FROM tab2 cor0
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( + 83, col2 - + 20, + col2 * col1 + + 12 )
----

onlyif mysql # DIV for integer division: 
query III rowsort label-9469
SELECT ALL + col1 DIV + col2 col0, col2, + 83 AS col1 FROM tab0 AS cor0
----
9 values hashing to d4d0d9a9dc87c9e6c95af52022ac90ae

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-9469
SELECT ALL + col1 / + col2 col0, col2, + 83 AS col1 FROM tab0 AS cor0
----
9 values hashing to d4d0d9a9dc87c9e6c95af52022ac90ae

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <= + - 64
----

query I rowsort
SELECT + 54 * + 56 AS col1 FROM tab2 AS cor0
----
3024
3024
3024

query I rowsort
SELECT - 89 AS col0 FROM tab0 AS cor0 WHERE NOT 78 BETWEEN NULL AND + 81
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9473
SELECT - col2 * col1 + + col1 * - + CAST( - col1 AS SIGNED ) FROM tab0 AS cor0
----
-98
231
2754

skipif mysql # not compatible
query I rowsort label-9473
SELECT - col2 * col1 + + col1 * - + CAST ( - col1 AS INTEGER ) FROM tab0 AS cor0
----
-98
231
2754

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9474
SELECT ALL 71 AS col2, CAST( - + COUNT( * ) AS SIGNED ) * - 17 * - 96 FROM tab1 AS cor0
----
71
-4896

skipif mysql # not compatible
query II rowsort label-9474
SELECT ALL 71 AS col2, CAST ( - + COUNT ( * ) AS INTEGER ) * - 17 * - 96 FROM tab1 AS cor0
----
71
-4896

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9475
SELECT DISTINCT CAST( + SUM( - col0 ) AS SIGNED ) + + COUNT( * ) DIV - - COUNT( * ) - - ( + + COUNT( * ) ) col2 FROM tab1 cor0
----
-223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9475
SELECT DISTINCT CAST ( + SUM ( - col0 ) AS INTEGER ) + + COUNT ( * ) / - - COUNT ( * ) - - ( + + COUNT ( * ) ) col2 FROM tab1 cor0
----
-223

query I rowsort
SELECT 76 * 7 AS col0 FROM tab0 AS cor0
----
532
532
532

onlyif mysql # aggregate syntax: 
query I rowsort label-9477
SELECT DISTINCT - SUM( DISTINCT + col1 ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-9477
SELECT DISTINCT - SUM ( DISTINCT + col1 ) FROM tab0 AS cor0
----
-103

query III rowsort
SELECT * FROM tab1 WHERE - col0 * + - col0 * - 5 + - - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9479
SELECT DISTINCT - ( - MAX( 69 ) ) + - 18 AS col1 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-9479
SELECT DISTINCT - ( - MAX ( 69 ) ) + - 18 AS col1 FROM tab2
----
51

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - col0 / + col2 + + 94 IN ( col2 / + col0 + - col2, + col2 + + + 51 / - col0, + ( col2 ) * - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9481
SELECT DISTINCT 8 DIV 49 + col0 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-9481
SELECT DISTINCT 8 / 49 + col0 FROM tab1
----
51
85
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9482
SELECT ALL - COUNT( DISTINCT + - col0 ) + - CAST( NULL AS SIGNED ) * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9482
SELECT ALL - COUNT ( DISTINCT + - col0 ) + - CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 81 IN ( + col0, 95 * - col0, - col1, - + col1, - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 - col1 * 10 - - - col2, - 22 col0 FROM tab0 cor0
----
-110
-22
-241
-22
-938
-22

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 + col2 * - 96 * - col1 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9486
SELECT ALL col0 + 50 + - col2 * - - ( - CAST( NULL AS SIGNED ) ) AS col1, 25 AS col1 FROM tab0 AS cor0
----
NULL
25
NULL
25
NULL
25

skipif mysql # not compatible
query II rowsort label-9486
SELECT ALL col0 + 50 + - col2 * - - ( - CAST ( NULL AS INTEGER ) ) AS col1, 25 AS col1 FROM tab0 AS cor0
----
NULL
25
NULL
25
NULL
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9487
SELECT ALL + - COUNT( * ) AS col0 FROM tab0 cor0 WHERE 32 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9487
SELECT ALL + - COUNT ( * ) AS col0 FROM tab0 cor0 WHERE 32 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9488
SELECT + 20 * - + COUNT( DISTINCT - + col2 ) AS col2 FROM tab1 cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9488
SELECT + 20 * - + COUNT ( DISTINCT - + col2 ) AS col2 FROM tab1 cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9489
SELECT DISTINCT CAST( NULL AS SIGNED ) * col2 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9489
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col2 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9490
SELECT + COUNT( + 85 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9490
SELECT + COUNT ( + 85 ) FROM tab0
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 + - col2 IS NOT NULL
----

query I rowsort
SELECT - col1 * 57 FROM tab1
----
-2679
-285
-798

query I rowsort
SELECT ALL col2 * + 23 FROM tab2
----
1334
529
920

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9494
SELECT ALL col2 / CAST( NULL AS DECIMAL ) AS col2, - col1 AS col2 FROM tab2 AS cor0
----
NULL
-51
NULL
-67
NULL
-77

skipif mysql # not compatible
query II rowsort label-9494
SELECT ALL col2 / CAST ( NULL AS REAL ) AS col2, - col1 AS col2 FROM tab2 AS cor0
----
NULL
-51
NULL
-67
NULL
-77

query II rowsort
SELECT DISTINCT 26 AS col0, col1 * col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
26
1173
26
3080
26
3886

query I rowsort
SELECT + ( - 38 ) + + 87 FROM tab2 AS cor0
----
49
49
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9497
SELECT ALL + COUNT( * ) FROM tab1 AS cor0 WHERE NOT - 73 + + col0 NOT BETWEEN + - 66 - + - ( CAST( + 18 AS SIGNED ) ) AND + - 63
----
0

skipif mysql # not compatible
query I rowsort label-9497
SELECT ALL + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - 73 + + col0 NOT BETWEEN + - 66 - + - ( CAST ( + 18 AS INTEGER ) ) AND + - 63
----
0

query I rowsort
SELECT + ( + - col0 ) FROM tab0 AS cor0 WHERE + 79 + + + col1 * + + ( + - 0 ) + + col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 85 ) * - col0 * + 87 col1 FROM tab2
----
340170
473280
554625

query III rowsort
SELECT * FROM tab1 WHERE 51 <= NULL
----

query II rowsort
SELECT col1 AS col2, col1 AS col0 FROM tab2
----
51
51
67
67
77
77

query I rowsort
SELECT DISTINCT + 61 + - col1 FROM tab2
----
-16
-6
10

query III rowsort
SELECT * FROM tab0 WHERE - 2 <> + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 68 AS col2, - col1 * - ( col1 ) * + col0 + - - col0 * + col0 col0 FROM tab2
----
68
121762
68
342300
68
383552

query II rowsort
SELECT DISTINCT - ( - col1 ) - - col1 AS col2, col1 + col2 AS col0 FROM tab0
----
162
128
2
100
42
31

query I rowsort
SELECT + 58 + - + col2 * - - col1 FROM tab0 AS cor0
----
-152
-3749
-41

query I rowsort
SELECT ALL + 86 - + + 99 * - + col0 FROM tab2 AS cor0
----
4640
6422
7511

query I rowsort
SELECT ALL 35 + - col2 + + col0 FROM tab1
----
-10
58
61

onlyif mysql # DIV for integer division: 
query I rowsort label-9509
SELECT + col2 DIV + col0 + + - 74 FROM tab2
----
-74
-74
-74

skipif mysql # not compatible
query I rowsort label-9509
SELECT + col2 / + col0 + + - 74 FROM tab2
----
-74
-74
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9510
SELECT CAST( col2 AS SIGNED ) AS col2 FROM tab0 WHERE NULL < NULL
----

skipif mysql # not compatible
query I rowsort label-9510
SELECT CAST ( col2 AS INTEGER ) AS col2 FROM tab0 WHERE NULL < NULL
----

query I rowsort
SELECT ALL + 60 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

onlyif mysql # aggregate syntax: 
query I rowsort label-9512
SELECT 87 + - COUNT( * ) AS col1 FROM tab2
----
84

skipif mysql # not compatible
query I rowsort label-9512
SELECT 87 + - COUNT ( * ) AS col1 FROM tab2
----
84

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL = 75 * + 68 - + 60
----

query I rowsort
SELECT ALL - - 11 AS col2 FROM tab0 AS cor0
----
11
11
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9515
SELECT MIN( DISTINCT + col0 ) * + 14 FROM tab1 AS cor0
----
714

skipif mysql # not compatible
query I rowsort label-9515
SELECT MIN ( DISTINCT + col0 ) * + 14 FROM tab1 AS cor0
----
714

query I rowsort
SELECT ALL col1 - - col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
102
134
154

query I rowsort
SELECT DISTINCT - ( - - col1 ) AS col2 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT + ( 48 ) FROM tab0
----
48
48
48

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 + - col0 * col2 <> + - col0
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL IN ( col0, - 35 * + col0 * + col2, + col0, ( col2 ), + ( 24 ) ) )
----

query I rowsort
SELECT + 54 * - + col0 AS col2 FROM tab1 AS cor0
----
-2754
-4590
-4914

query I rowsort
SELECT - + col0 * - 32 * col0 FROM tab2 cor0
----
131072
180000
67712

onlyif mysql # DIV for integer division: 
query I rowsort label-9523
SELECT - - col2 DIV - + 94 + col0 * col1 AS col1 FROM tab1 cor0
----
425
4277
713

skipif mysql # not compatible
query I rowsort label-9523
SELECT - - col2 / - + 94 + col0 * col1 AS col1 FROM tab1 cor0
----
425
4277
713

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 13 NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9525
SELECT col0, col1 DIV - col0 AS col2 FROM tab2
----
46
-1
64
-1
75
0

skipif mysql # not compatible
query II rowsort label-9525
SELECT col0, col1 / - col0 AS col2 FROM tab2
----
46
-1
64
-1
75
0

query I rowsort
SELECT DISTINCT - 62 + + + col2 FROM tab0 AS cor0
----
-15
-52
37

query I rowsort
SELECT ALL col1 + - + col0 FROM tab0 cor0
----
-66
-96
66

query II rowsort
SELECT - 21 AS col1, + col0 + col0 FROM tab2 AS cor0
----
-21
128
-21
150
-21
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + ( col1 ), col2 - + + col1 + + col1 col0 FROM tab1 AS cor0
----
14
96
47
68
5
59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9530
SELECT - CAST( NULL AS SIGNED ), - 76 AS col1 FROM tab1 AS cor0
----
NULL
-76
NULL
-76
NULL
-76

skipif mysql # not compatible
query II rowsort label-9530
SELECT - CAST ( NULL AS INTEGER ), - 76 AS col1 FROM tab1 AS cor0
----
NULL
-76
NULL
-76
NULL
-76

query II rowsort
SELECT DISTINCT + col0 AS col1, - col0 FROM tab1 AS cor0
----
51
-51
85
-85
91
-91

onlyif mysql # DIV for integer division: 
query II rowsort label-9532
SELECT DISTINCT col2 * + col2 AS col2, - 80 DIV + + 79 col0 FROM tab1 AS cor0
----
3481
-1
4624
-1
9216
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9532
SELECT DISTINCT col2 * + col2 AS col2, - 80 / + + 79 col0 FROM tab1 AS cor0
----
3481
-1
4624
-1
9216
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 78 + col1 col2 FROM tab1
----
125
83
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9534
SELECT - MAX( col2 ) * AVG ( ALL + col2 ) FROM tab1 WHERE ( col2 ) <= - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9534
SELECT - MAX ( col2 ) * AVG ( ALL + col2 ) FROM tab1 WHERE ( col2 ) <= - col0
----
NULL

query I rowsort
SELECT DISTINCT col2 + - - 14 + - col0 AS col0 FROM tab0
----
-63
16
46

query I rowsort
SELECT - 44 + col2 + + 78 + col1 FROM tab2
----
108
151
159

query I rowsort
SELECT ALL - ( 30 ) + col1 + + col2 AS col1 FROM tab0
----
1
70
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 26 - - 12 col2 FROM tab2
----
-14

query I rowsort
SELECT + + col1 + col1 AS col2 FROM tab1 AS cor0 WHERE 83 IS NOT NULL
----
10
28
94

query III rowsort
SELECT * FROM tab0 cor0 WHERE col1 + + col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9541
SELECT ALL + - col0 - ( + + col0 ) - 31 * col1 + + - col0 DIV 74 AS col0 FROM tab2 AS cor0
----
-1673
-2228
-2515

skipif mysql # not compatible
query I rowsort label-9541
SELECT ALL + - col0 - ( + + col0 ) - 31 * col1 + + - col0 / 74 AS col0 FROM tab2 AS cor0
----
-1673
-2228
-2515

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 15 IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query I rowsort
SELECT 15 * + 13 AS col0 FROM tab1
----
195
195
195

onlyif mysql # DIV for integer division: 
query I rowsort label-9544
SELECT - 94 DIV 78 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9544
SELECT - 94 / 78 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

query II rowsort
SELECT DISTINCT - 63 AS col2, 23 AS col2 FROM tab1 AS cor0
----
-63
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9546
SELECT + - MAX( ALL col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) >= + - 11
----
NULL

skipif mysql # not compatible
query I rowsort label-9546
SELECT + - MAX ( ALL col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) >= + - 11
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 / - 53 + + + col1 <= + 69 + col2 / col0 AND NOT col1 IS NOT NULL
----

query II rowsort
SELECT ALL - 0 * + 58, col1 FROM tab1
----
0
14
0
47
0
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9549
SELECT DISTINCT COUNT( * ) * + + ( - + COUNT( * ) ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-9549
SELECT DISTINCT COUNT ( * ) * + + ( - + COUNT ( * ) ) FROM tab0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9550
SELECT 71 * - + SUM( + col2 ) FROM tab1
----
-15833

skipif mysql # not compatible
query I rowsort label-9550
SELECT 71 * - + SUM ( + col2 ) FROM tab1
----
-15833

query I rowsort
SELECT ALL col1 * 18 FROM tab0
----
1458
18
378

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 50 * + 62 col1 FROM tab1
----
3100
3100
3100

query I rowsort
SELECT + ( col0 ) * + 88 AS col0 FROM tab0
----
1320
7656
8536

onlyif mysql # aggregate syntax: 
query I rowsort label-9554
SELECT DISTINCT + + 68 * - MIN( ALL - - col2 ) FROM tab0 cor0
----
-680

skipif mysql # not compatible
query I rowsort label-9554
SELECT DISTINCT + + 68 * - MIN ( ALL - - col2 ) FROM tab0 cor0
----
-680

query II rowsort
SELECT 9 AS col0, col0 AS col2 FROM tab0
----
9
15
9
87
9
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 36 + col0 col2 FROM tab2
----
100
111
82

query I rowsort
SELECT ALL + col2 * - + 21 FROM tab1
----
-1239
-1428
-2016

query I rowsort
SELECT DISTINCT 21 + + col0 AS col2 FROM tab1
----
106
112
72

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + 0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 + + col2 col0 FROM tab2 AS cor0
----
-28
-37
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9561
SELECT ALL COUNT( * ) + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9561
SELECT ALL COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9562
SELECT - 77 * - col1 * + + col2, ( - col1 ) / CAST( NULL AS SIGNED ) + + - col2 AS col1 FROM tab1 AS cor0
----
103488
NULL
22715
NULL
246092
NULL

skipif mysql # not compatible
query II rowsort label-9562
SELECT - 77 * - col1 * + + col2, ( - col1 ) / CAST ( NULL AS INTEGER ) + + - col2 AS col1 FROM tab1 AS cor0
----
103488
NULL
22715
NULL
246092
NULL

onlyif mysql # DIV for integer division: 
query III rowsort label-9563
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 39 BETWEEN NULL AND - + col1 * + - 18 DIV - col2
----

skipif mysql # not compatible
query III rowsort label-9563
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 39 BETWEEN NULL AND - + col1 * + - 18 / - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9564
SELECT ALL - - CAST( NULL AS SIGNED ) - + COUNT( * ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9564
SELECT ALL - - CAST ( NULL AS INTEGER ) - + COUNT ( * ) FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9565
SELECT DISTINCT + 2 * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9565
SELECT DISTINCT + 2 * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
6

query I rowsort
SELECT ALL ( + - 97 ) * - col2 AS col1 FROM tab1 AS cor0
----
5723
6596
9312

query I rowsort
SELECT - 54 * col2 * - - ( - 14 ) FROM tab2
----
17388
30240
43848

onlyif mysql # DIV for integer division: 
query II rowsort label-9568
SELECT DISTINCT - col0 DIV - 34, + col1 * - col2 AS col1 FROM tab1
----
1
-1344
2
-295
2
-3196

skipif mysql # not compatible
query II rowsort label-9568
SELECT DISTINCT - col0 / - 34, + col1 * - col2 AS col1 FROM tab1
----
1
-1344
2
-295
2
-3196

query II rowsort
SELECT + col2 AS col1, - col1 FROM tab1
----
59
-5
68
-47
96
-14

query I rowsort
SELECT col1 AS col1 FROM tab2 WHERE - - col1 + + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9571
SELECT DISTINCT col2 * - CAST( col0 AS SIGNED ) AS col1 FROM tab0
----
-705
-870
-9603

skipif mysql # not compatible
query I rowsort label-9571
SELECT DISTINCT col2 * - CAST ( col0 AS INTEGER ) AS col1 FROM tab0
----
-705
-870
-9603

query I rowsort
SELECT DISTINCT + ( + - ( col2 ) ) AS col1 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT col0 - + col0 * + - col2 * ( 39 ) FROM tab2
----
169725
41308
99904

onlyif mysql # aggregate syntax: 
query I rowsort label-9574
SELECT ALL COUNT( * ) AS col2 FROM tab1, tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-9574
SELECT ALL COUNT ( * ) AS col2 FROM tab1, tab1 cor0
----
9

query I rowsort
SELECT ALL - col2 + - 91 AS col0 FROM tab2 cor0
----
-114
-131
-149

query I rowsort
SELECT + - 11 + - col2 AS col1 FROM tab0 AS cor0
----
-110
-21
-58

query I rowsort
SELECT - + 42 + - - col0 + - col0 FROM tab1 cor0
----
-42
-42
-42

query II rowsort
SELECT ALL + col0 AS col0, - col0 * col1 FROM tab0 AS cor0
----
15
-1215
87
-1827
97
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9579
SELECT - COUNT( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9579
SELECT - COUNT ( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-9

query I rowsort
SELECT + col1 * - - col0 * 77 AS col0 FROM tab0
----
140679
7469
93555

onlyif mysql # aggregate syntax: 
query I rowsort label-9581
SELECT DISTINCT - + MAX( - 22 ) AS col0 FROM tab0 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-9581
SELECT DISTINCT - + MAX ( - 22 ) AS col0 FROM tab0 AS cor0
----
22

query I rowsort
SELECT - + col2 * col2 * - 8 + + 32 FROM tab0 cor0
----
17704
78440
832

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9583
SELECT - col0 + - ( + ( - col1 ) ) AS col2 FROM tab1 cor0 WHERE NOT CAST( + 89 AS SIGNED ) + col2 = NULL
----

skipif mysql # not compatible
query I rowsort label-9583
SELECT - col0 + - ( + ( - col1 ) ) AS col2 FROM tab1 cor0 WHERE NOT CAST ( + 89 AS INTEGER ) + col2 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9584
SELECT ALL * FROM tab0 WHERE + col0 - - + col0 * CAST( NULL AS SIGNED ) * col1 BETWEEN NULL AND 62
----

skipif mysql # not compatible
query III rowsort label-9584
SELECT ALL * FROM tab0 WHERE + col0 - - + col0 * CAST ( NULL AS INTEGER ) * col1 BETWEEN NULL AND 62
----

query I rowsort
SELECT DISTINCT 60 * ( col2 ) FROM tab0
----
2820
5940
600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9586
SELECT DISTINCT - CAST( - COUNT( * ) AS SIGNED ) * 53 + SUM( + - col2 ) AS col2 FROM tab2
----
38

skipif mysql # not compatible
query I rowsort label-9586
SELECT DISTINCT - CAST ( - COUNT ( * ) AS INTEGER ) * 53 + SUM ( + - col2 ) AS col2 FROM tab2
----
38

query I rowsort
SELECT DISTINCT - col1 + - + col2 + col2 FROM tab1
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9588
SELECT + COUNT( * ) FROM tab2 WHERE NOT - col1 * - + 69 / 89 * - col2 + 61 - col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9588
SELECT + COUNT ( * ) FROM tab2 WHERE NOT - col1 * - + 69 / 89 * - col2 + 61 - col2 IS NULL
----
3

query II rowsort
SELECT DISTINCT col1 AS col0, + col1 * - - col1 FROM tab0
----
1
1
21
441
81
6561

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9590
SELECT ALL col2, CAST( col0 AS SIGNED ) AS col1 FROM tab2
----
23
46
40
64
58
75

skipif mysql # not compatible
query II rowsort label-9590
SELECT ALL col2, CAST ( col0 AS INTEGER ) AS col1 FROM tab2
----
23
46
40
64
58
75

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 / col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9592
SELECT 5 + - COUNT( * ) - - 53 FROM tab0 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-9592
SELECT 5 + - COUNT ( * ) - - 53 FROM tab0 AS cor0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9593
SELECT DISTINCT - MIN( ALL - + 26 ) AS col1 FROM tab1 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-9593
SELECT DISTINCT - MIN ( ALL - + 26 ) AS col1 FROM tab1 AS cor0
----
26

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - 44 - + col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 93 IS NULL
----

query I rowsort
SELECT 12 * + ( - - col2 ) FROM tab0 AS cor0
----
1188
120
564

query II rowsort
SELECT 47 * + 8, col0 AS col0 FROM tab2 AS cor0
----
376
46
376
64
376
75

query I rowsort
SELECT DISTINCT col2 * - - col2 * col2 FROM tab1 AS cor0
----
205379
314432
884736

query I rowsort
SELECT - - 88 + 36 * + col1 FROM tab2 AS cor0
----
1924
2500
2860

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9600
SELECT - col2 + + ( ( + 82 ) ) * 72 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9600
SELECT - col2 + + ( ( + 82 ) ) * 72 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9601
SELECT + - COUNT( * ) + - COUNT( * ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-9601
SELECT + - COUNT ( * ) + - COUNT ( * ) FROM tab2 AS cor0
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-9602
SELECT DISTINCT + - 53 DIV - col1 - - - 70 AS col0 FROM tab1 AS cor0
----
-60
-67
-69

skipif mysql # not compatible
query I rowsort label-9602
SELECT DISTINCT + - 53 / - col1 - - - 70 AS col0 FROM tab1 AS cor0
----
-60
-67
-69

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9603
SELECT * FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND - - 96
----

skipif mysql # not compatible
query III rowsort label-9603
SELECT * FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND - - 96
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9604
SELECT ALL - COUNT( * ) - - SUM( ALL - + ( - + col1 ) ) FROM tab0 cor0
----
100

skipif mysql # not compatible
query I rowsort label-9604
SELECT ALL - COUNT ( * ) - - SUM ( ALL - + ( - + col1 ) ) FROM tab0 cor0
----
100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9605
SELECT DISTINCT CAST( NULL AS SIGNED ) / - + 65 * + - 26 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9605
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - + 65 * + - 26 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9606
SELECT DISTINCT MIN( DISTINCT + col1 ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-9606
SELECT DISTINCT MIN ( DISTINCT + col1 ) FROM tab1
----
5

onlyif mysql # DIV for integer division: 
query II rowsort label-9607
SELECT ALL + ( col1 ) DIV + + col1, col1 * 16 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
1
1296
1
16
1
336

skipif mysql # not compatible
query II rowsort label-9607
SELECT ALL + ( col1 ) / + + col1, col1 * 16 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
1
1296
1
16
1
336

query III rowsort
SELECT * FROM tab2 WHERE - 83 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 38 * 54 AS col1 FROM tab1
----
-2052
-2052
-2052

query I rowsort
SELECT ALL - col0 + ( col2 ) FROM tab0
----
-77
2
32

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9611
SELECT DISTINCT CAST( NULL AS DECIMAL ) + - col0 * 96, col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-9611
SELECT DISTINCT CAST ( NULL AS REAL ) + - col0 * 96, col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9612
SELECT ( - - 35 ) - CAST( NULL AS SIGNED ) FROM tab2 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9612
SELECT ( - - 35 ) - CAST ( NULL AS INTEGER ) FROM tab2 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - - 61 col1 FROM tab1 AS cor0 WHERE NOT col1 > + + 59 + + col1 * - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9614
SELECT ALL * FROM tab0 cor0 WHERE - 69 = - col2 * - col1 * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9614
SELECT ALL * FROM tab0 cor0 WHERE - 69 = - col2 * - col1 * CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9615
SELECT ALL + - ( - col2 ) * - 2 / - CAST( NULL AS SIGNED ) / - ( + 21 ) * - 37 + - + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9615
SELECT ALL + - ( - col2 ) * - 2 / - CAST ( NULL AS INTEGER ) / - ( + 21 ) * - 37 + - + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( - 6 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col2 * + col1 * + col2 FROM tab2 AS cor0
----
123200
225388
26979

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 14 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9619
SELECT ALL - MAX( + - 72 ) + 12 AS col0 FROM tab2
----
84

skipif mysql # not compatible
query I rowsort label-9619
SELECT ALL - MAX ( + - 72 ) + 12 AS col0 FROM tab2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9620
SELECT ALL ( + COUNT( * ) ) + + COUNT( * ) AS col0 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-9620
SELECT ALL ( + COUNT ( * ) ) + + COUNT ( * ) AS col0 FROM tab2
----
6

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 90 / - - col2 + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - 67 AS col1 FROM tab0 cor0
----
67

query I rowsort
SELECT + - 36 * + + col0 + - - col2 FROM tab1 AS cor0
----
-1740
-3001
-3208

query I rowsort
SELECT - 28 + + col2 AS col0 FROM tab2
----
-5
12
30

query III rowsort
SELECT * FROM tab1 cor0 WHERE col0 * + 52 / + - col0 NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL + - 54 + col1 + + col0 FROM tab0 AS cor0
----
42
44
54

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9627
SELECT + 74 + - - CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0 WHERE ( + col0 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-9627
SELECT + 74 + - - CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0 WHERE ( + col0 ) IS NULL
----

query I rowsort
SELECT DISTINCT - 36 - col1 * - col0 AS col1 FROM tab0 cor0
----
1179
1791
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9629
SELECT ALL + ( - - SUM( 2 ) ) + + 16 AS col0 FROM tab0 cor0
----
22

skipif mysql # not compatible
query I rowsort label-9629
SELECT ALL + ( - - SUM ( 2 ) ) + + 16 AS col0 FROM tab0 cor0
----
22

query I rowsort
SELECT - col0 * + + col0 AS col2 FROM tab1 cor0
----
-2601
-7225
-8281

query II rowsort
SELECT 87 * - + 3 - - 59 AS col0, col0 * + col1 AS col0 FROM tab2 AS cor0
----
-202
2346
-202
4928
-202
5025

query I rowsort
SELECT DISTINCT ( col1 ) - - col0 + + - 50 AS col2 FROM tab1
----
15
40
88

query I rowsort
SELECT 51 * + - ( - col2 ) FROM tab0 WHERE NULL IS NULL
----
2397
5049
510

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 74 - 18 * - + col1 * + + col2 + + + col2 col2 FROM tab1
----
24214
5295
57522

query III rowsort
SELECT * FROM tab2 WHERE + 17 <> NULL
----

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NOT - 48 / + + 34 IS NULL
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + ( + 86 ) col0, col1 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9638
SELECT 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-9638
SELECT MIN ( ALL + col2 ) col2 FROM tab2 AS cor0
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9639
SELECT DISTINCT + - CAST( 44 AS SIGNED ) FROM tab1 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-9639
SELECT DISTINCT + - CAST ( 44 AS INTEGER ) FROM tab1 AS cor0
----
-44

query II rowsort
SELECT col1 AS col2, + 41 AS col0 FROM tab0
----
1
41
21
41
81
41

onlyif mysql # DIV for integer division: 
query I rowsort label-9641
SELECT DISTINCT col1 * col1 DIV + - col2 AS col1 FROM tab0
----
-139
-44
0

skipif mysql # not compatible
query I rowsort label-9641
SELECT DISTINCT col1 * col1 / + - col2 AS col1 FROM tab0
----
-139
-44
0

query I rowsort
SELECT ALL + - 13 * - col2 FROM tab1 AS cor0
----
1248
767
884

onlyif mysql # DIV for integer division: 
query I rowsort label-9643
SELECT ALL + 12 DIV col2 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9643
SELECT ALL + 12 / col2 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9644
SELECT DISTINCT - 62 * CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9644
SELECT DISTINCT - 62 * CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 65 IS NOT NULL
----

query I rowsort
SELECT 30 * col1 AS col1 FROM tab0 AS cor0
----
2430
30
630

onlyif mysql # aggregate syntax: 
query I rowsort label-9647
SELECT ALL MIN( ALL - 10 ) FROM tab2 cor0
----
-10

skipif mysql # not compatible
query I rowsort label-9647
SELECT ALL MIN ( ALL - 10 ) FROM tab2 cor0
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-9648
SELECT DISTINCT + col1 + - 30 DIV col0 + - col0 FROM tab2 AS cor0
----
-8
13
5

skipif mysql # not compatible
query I rowsort label-9648
SELECT DISTINCT + col1 + - 30 / col0 + - col0 FROM tab2 AS cor0
----
-8
13
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9649
SELECT SUM( ALL + ( - col2 ) ) FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-9649
SELECT SUM ( ALL + ( - col2 ) ) FROM tab1
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-9650
SELECT - COUNT( * ) AS col1 FROM tab1 WHERE NOT NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-9650
SELECT - COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL <= NULL
----
0

query I rowsort
SELECT - + 32 AS col2 FROM tab0 WHERE NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9652
SELECT - COUNT( * ) + - 75 FROM tab1
----
-78

skipif mysql # not compatible
query I rowsort label-9652
SELECT - COUNT ( * ) + - 75 FROM tab1
----
-78

query I rowsort
SELECT DISTINCT - 92 AS col1 FROM tab0 WHERE - + col0 <> + 24
----
-92

query II rowsort
SELECT DISTINCT + col1, - col2 * + 80 + + col1 AS col0 FROM tab0 AS cor0
----
1
-7919
21
-779
81
-3679

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 NOT IN ( - 71, 68 + - 40, - col2, - col1, - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - 99, 79 * 67 AS col0 FROM tab2 AS cor0
----
-99
5293
-99
5293
-99
5293

query I rowsort
SELECT DISTINCT 38 + + col1 - + col1 FROM tab1
----
38

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9658
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + MAX( DISTINCT - - col1 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9658
SELECT DISTINCT - CAST ( NULL AS REAL ) + MAX ( DISTINCT - - col1 ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 + - col0 BETWEEN NULL AND - + 72
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9660
SELECT + + 73 + + COUNT( * ) + COUNT( * ) + 42 AS col1 FROM tab0 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-9660
SELECT + + 73 + + COUNT ( * ) + COUNT ( * ) + 42 AS col1 FROM tab0 AS cor0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-9661
SELECT DISTINCT - 95 - MAX( DISTINCT col0 ) FROM tab0 AS cor0
----
-192

skipif mysql # not compatible
query I rowsort label-9661
SELECT DISTINCT - 95 - MAX ( DISTINCT col0 ) FROM tab0 AS cor0
----
-192

query I rowsort
SELECT ALL - 23 * - col2 FROM tab2 AS cor0 WHERE + 63 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9663
SELECT ALL + - MIN( DISTINCT col2 ) col0, 70 FROM tab1 AS cor0
----
-59
70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9663
SELECT ALL + - MIN ( DISTINCT col2 ) col0, 70 FROM tab1 AS cor0
----
-59
70

onlyif mysql # aggregate syntax: 
query II rowsort label-9664
SELECT ALL 92 AS col2, - SUM( - + col2 ) + - - 21 + + - 15 + 66 * MAX( ALL col2 ) AS col1 FROM tab2
----
92
3955

skipif mysql # not compatible
query II rowsort label-9664
SELECT ALL 92 AS col2, - SUM ( - + col2 ) + - - 21 + + - 15 + 66 * MAX ( ALL col2 ) AS col1 FROM tab2
----
92
3955

query I rowsort
SELECT DISTINCT - col1 * - col1 * + 27 * col1 AS col1 FROM tab2
----
12326391
3581577
8120601

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE NOT - 18 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9667
SELECT ALL 25 * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9667
SELECT ALL 25 * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9668
SELECT DISTINCT 69, + 14 * MAX( + - 2 ) * + MIN( ALL - 60 ) AS col1 FROM tab0 AS cor0
----
69
1680

skipif mysql # not compatible
query II rowsort label-9668
SELECT DISTINCT 69, + 14 * MAX ( + - 2 ) * + MIN ( ALL - 60 ) AS col1 FROM tab0 AS cor0
----
69
1680

query I rowsort
SELECT + col2 + - col0 * + 60 AS col0 FROM tab0
----
-5210
-5721
-853

onlyif mysql # aggregate syntax: 
query I rowsort label-9670
SELECT DISTINCT + MAX( DISTINCT + col2 ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-9670
SELECT DISTINCT + MAX ( DISTINCT + col2 ) FROM tab1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9671
SELECT 64 + + COUNT( * ) FROM tab2
----
67

skipif mysql # not compatible
query I rowsort label-9671
SELECT 64 + + COUNT ( * ) FROM tab2
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9672
SELECT CAST( - ( ( + 82 ) ) AS SIGNED ) col1 FROM tab0
----
-82
-82
-82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9672
SELECT CAST ( - ( ( + 82 ) ) AS INTEGER ) col1 FROM tab0
----
-82
-82
-82

query III rowsort
SELECT * FROM tab2 WHERE 67 * + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 53 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 37 AS col2 FROM tab1 WHERE NOT col1 IS NULL
----
37
37
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9676
SELECT DISTINCT - SUM( 24 ) FROM tab2
----
-72

skipif mysql # not compatible
query I rowsort label-9676
SELECT DISTINCT - SUM ( 24 ) FROM tab2
----
-72

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col1 * + col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 62 + - col2 AS col2 FROM tab1
----
-34
-6
3

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 NOT BETWEEN NULL AND col1 + col0
----

query I rowsort
SELECT 74 + + 90 * - col2 FROM tab2
----
-1996
-3526
-5146

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( - 1 - + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col0 FROM tab0 WHERE ( col1 ) * col2 IS NOT NULL
----
15
87
97

query I rowsort
SELECT - 69 * 94 AS col0 FROM tab0
----
-6486
-6486
-6486

query III rowsort
SELECT * FROM tab2 WHERE 52 >= NULL
----

query I rowsort
SELECT ALL + col1 * - col0 + - col2 AS col2 FROM tab1
----
-4345
-484
-810

query I rowsort
SELECT + 94 * col1 AS col2 FROM tab2 WHERE + col2 * + col0 >= + col2 + - 61
----
4794
6298
7238

query I rowsort
SELECT ALL 94 + col1 FROM tab0 WHERE ( - 67 ) BETWEEN - 51 AND + col0 * + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - 37 col1 FROM tab1
----
1887
3145
3367

onlyif mysql # DIV for integer division: 
query I rowsort label-9689
SELECT ( col1 ) - - col0 DIV - 63 AS col2 FROM tab0
----
0
20
81

skipif mysql # not compatible
query I rowsort label-9689
SELECT ( col1 ) - - col0 / - 63 AS col2 FROM tab0
----
0
20
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - + col1 col2 FROM tab2
----
-13
-5
8

query I rowsort
SELECT ALL + 99 * col2 AS col0 FROM tab1
----
5841
6732
9504

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + 85 ) IS NOT NULL
----

query I rowsort
SELECT + col1 FROM tab2 WHERE NULL > - col0
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 62 ) IN ( - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN ( col1 ) AND ( col0 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 BETWEEN ( + 65 ) AND NULL
----
85
5
59

query I rowsort
SELECT ALL col1 * - ( + col2 ) + 92 FROM tab2 AS cor0
----
-1081
-2988
-3794

onlyif mysql # aggregate syntax: 
query I rowsort label-9698
SELECT DISTINCT COUNT( DISTINCT - col1 ) FROM tab1 AS cor0 WHERE NOT - col1 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-9698
SELECT DISTINCT COUNT ( DISTINCT - col1 ) FROM tab1 AS cor0 WHERE NOT - col1 >= NULL
----
0

query I rowsort
SELECT 29 + - 2 FROM tab0 AS cor0
----
27
27
27

query I rowsort
SELECT + col0 + 6 * col0 FROM tab2
----
322
448
525

query I rowsort
SELECT DISTINCT 85 - 92 FROM ( tab1 AS cor0 CROSS JOIN tab0 )
----
-7

query I rowsort
SELECT DISTINCT + + col2 + col1 * 77 FROM tab0 AS cor0
----
1627
176
6284

query I rowsort
SELECT col2 AS col1 FROM tab0 cor0 WHERE ( col0 * + col0 + col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9704
SELECT ALL + SUM( ( col0 ) ) FROM tab0 AS cor0 WHERE + col2 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9704
SELECT ALL + SUM ( ( col0 ) ) FROM tab0 AS cor0 WHERE + col2 = NULL
----
NULL

query I rowsort
SELECT DISTINCT + 83 AS col1 FROM tab2 AS cor0 WHERE NULL <> NULL
----

query I rowsort
SELECT - col2 AS col2 FROM tab1 AS cor0 WHERE ( 7 ) IS NOT NULL
----
-59
-68
-96

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 / - col1 < + 92
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN 75 AND 59
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9709
SELECT + - MAX( DISTINCT + col1 ) * - 15 AS col1 FROM tab2 AS cor0
----
1155

skipif mysql # not compatible
query I rowsort label-9709
SELECT + - MAX ( DISTINCT + col1 ) * - 15 AS col1 FROM tab2 AS cor0
----
1155

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9710
SELECT - col1 * - CAST( NULL AS SIGNED ) * col1 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9710
SELECT - col1 * - CAST ( NULL AS INTEGER ) * col1 AS col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( col2 * - 72 )
----

query I rowsort
SELECT ALL 25 AS col2 FROM tab2 WHERE NULL BETWEEN NULL AND - col1 + + 46
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9713
SELECT ALL + col2 FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) * ( + col2 ) > NULL
----

skipif mysql # not compatible
query I rowsort label-9713
SELECT ALL + col2 FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) * ( + col2 ) > NULL
----

query I rowsort
SELECT + col0 * - 96 AS col0 FROM tab1
----
-4896
-8160
-8736

query I rowsort
SELECT ALL col0 FROM tab1 WHERE NOT ( + col0 * - 69 + - 94 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 <> col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9717
SELECT ALL COUNT( * ) - - 76 * + 45 FROM tab1 cor0 WHERE 98 IN ( col2 )
----
3420

skipif mysql # not compatible
query I rowsort label-9717
SELECT ALL COUNT ( * ) - - 76 * + 45 FROM tab1 cor0 WHERE 98 IN ( col2 )
----
3420

onlyif mysql # aggregate syntax: 
query I rowsort label-9718
SELECT + - SUM( + - col0 ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-9718
SELECT + - SUM ( + - col0 ) FROM tab2 AS cor0
----
185

query II rowsort
SELECT DISTINCT - col1 AS col2, + 14 AS col1 FROM tab1
----
-14
14
-47
14
-5
14

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
51
85
91

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) BETWEEN NULL AND - 36 / 89
----

query I rowsort
SELECT - 39 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9723
SELECT ( 96 ) / + CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE NOT + col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9723
SELECT ( 96 ) / + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - ( - 2 ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-2

query I rowsort
SELECT ALL col0 + + + 31 AS col1 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9726
SELECT DISTINCT CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 WHERE NOT ( 9 + - col1 + col2 * + 24 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9726
SELECT DISTINCT CAST ( NULL AS REAL ) FROM tab0 AS cor0 WHERE NOT ( 9 + - col1 + col2 * + 24 ) IS NULL
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col0 ) < NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9728
SELECT - col0 AS col0, + 37 DIV - col2 AS col1 FROM tab1 cor0
----
-51
0
-85
0
-91
0

skipif mysql # not compatible
query II rowsort label-9728
SELECT - col0 AS col0, + 37 / - col2 AS col1 FROM tab1 cor0
----
-51
0
-85
0
-91
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 BETWEEN NULL AND - - ( + col1 )
----

query I rowsort
SELECT ALL - col2 FROM tab1 AS cor0 WHERE NULL BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9731
SELECT DISTINCT 26 + + COUNT( * ) FROM tab1
----
29

skipif mysql # not compatible
query I rowsort label-9731
SELECT DISTINCT 26 + + COUNT ( * ) FROM tab1
----
29

query I rowsort
SELECT + 5 + - + col2 * 98 AS col2 FROM tab0
----
-4601
-9697
-975

query I rowsort
SELECT ALL 74 * - ( + 13 ) AS col0 FROM tab1
----
-962
-962
-962

onlyif mysql # aggregate syntax: 
query I rowsort label-9734
SELECT COUNT( * ) + 60 AS col1 FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-9734
SELECT COUNT ( * ) + 60 AS col1 FROM tab1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9735
SELECT DISTINCT ( - + 86 ) + - COUNT( * ) AS col0 FROM tab2
----
-89

skipif mysql # not compatible
query I rowsort label-9735
SELECT DISTINCT ( - + 86 ) + - COUNT ( * ) AS col0 FROM tab2
----
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * 80 + - ( - 49 ) - 77 col0 FROM tab2
----
3652
5092
5972

query II rowsort
SELECT DISTINCT - col0 + + col1, + col1 AS col0 FROM tab2
----
-8
67
13
77
5
51

onlyif mysql # DIV for integer division: 
query I rowsort label-9738
SELECT + 78 + + col1 * + + col0 * + - col0 DIV - col0 FROM tab0
----
1293
175
1905

skipif mysql # not compatible
query I rowsort label-9738
SELECT + 78 + + col1 * + + col0 * + - col0 / - col0 FROM tab0
----
1293
175
1905

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE 38 > - 62
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9740
SELECT ALL + CAST( + col0 AS SIGNED ) + 13 AS col2 FROM tab1 WHERE + col2 + 69 IS NOT NULL
----
104
64
98

skipif mysql # not compatible
query I rowsort label-9740
SELECT ALL + CAST ( + col0 AS INTEGER ) + 13 AS col2 FROM tab1 WHERE + col2 + 69 IS NOT NULL
----
104
64
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9741
SELECT ALL - col2 - - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9741
SELECT ALL - col2 - - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 66 - ( + - 44 ) / col2 BETWEEN NULL AND - 76
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9743
SELECT ALL 19 * + ( - ( + - COUNT( * ) ) ) FROM tab2 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-9743
SELECT ALL 19 * + ( - ( + - COUNT ( * ) ) ) FROM tab2 AS cor0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9744
SELECT DISTINCT - + MIN( - - 18 ) FROM tab1 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-9744
SELECT DISTINCT - + MIN ( - - 18 ) FROM tab1 AS cor0
----
-18

query III rowsort
SELECT * FROM tab0 cor0 WHERE + 52 + + col2 = col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + 90 * + col2, + col2 * + 89 - - col0 col2 FROM tab0 cor0
----
4230
4198
8910
8908
900
977

query I rowsort
SELECT - ( + col1 ) * 24 FROM tab1 WHERE - col1 / 44 * - - ( + col1 ) + - col0 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9748
SELECT col2 + - CAST( col2 AS SIGNED ) + col0 * col2 AS col1 FROM tab1 WHERE + col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-9748
SELECT col2 + - CAST ( col2 AS INTEGER ) + col0 * col2 AS col1 FROM tab1 WHERE + col1 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( - 96 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9750
SELECT ALL 52 DIV - - col0 + + - 46 + + 38 FROM tab0
----
-5
-8
-8

skipif mysql # not compatible
query I rowsort label-9750
SELECT ALL 52 / - - col0 + + - 46 + + 38 FROM tab0
----
-5
-8
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9751
SELECT COUNT( * ) + + 94 DIV - COUNT( * ) + - 18 AS col2 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-9751
SELECT COUNT ( * ) + + 94 / - COUNT ( * ) + - 18 AS col2 FROM tab2
----
-46

query I rowsort
SELECT + ( - - col1 ) * - 3 FROM tab1
----
-141
-15
-42

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) <= + 7 * + + col2
----

query I rowsort
SELECT + ( + - col0 ) AS col0 FROM tab1 cor0
----
-51
-85
-91

query I rowsort
SELECT col0 * 76 FROM tab2 cor0
----
3496
4864
5700

query I rowsort
SELECT col2 * col1 - col0 * col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IN ( - 37 / 26 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 85 col2, - col2 FROM tab2 AS cor0
----
85
-23
85
-40
85
-58

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 38 * - + 33 * + - 27 NOT BETWEEN ( + 37 ) AND col1 + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL - + col1, + 13 AS col0 FROM tab1 cor0
----
-14
13
-47
13
-5
13

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9760
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) <= col2
----

skipif mysql # not compatible
query III rowsort label-9760
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) <= col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 NOT IN ( - 37, + col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN ( + col0 ) AND - + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9764
SELECT CAST( + 28 AS SIGNED ) AS col1 FROM tab0
----
28
28
28

skipif mysql # not compatible
query I rowsort label-9764
SELECT CAST ( + 28 AS INTEGER ) AS col1 FROM tab0
----
28
28
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9765
SELECT DISTINCT COUNT( + + 98 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9765
SELECT DISTINCT COUNT ( + + 98 ) AS col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9766
SELECT + COUNT( * ) * - COUNT( * ) DIV COUNT( * ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9766
SELECT + COUNT ( * ) * - COUNT ( * ) / COUNT ( * ) FROM tab0
----
-3

query I rowsort
SELECT - col1 * - 8 FROM tab0
----
168
648
8

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9768
SELECT col1 / CAST( NULL AS SIGNED ) AS col2 FROM tab0 WHERE NOT - CAST( + 92 AS SIGNED ) / - CAST( - - col1 AS DECIMAL ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9768
SELECT col1 / CAST ( NULL AS INTEGER ) AS col2 FROM tab0 WHERE NOT - CAST ( + 92 AS INTEGER ) / - CAST ( - - col1 AS REAL ) IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT - 86 * - + col0 FROM tab1 AS cor0
----
4386
7310
7826

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 4 = + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9771
SELECT ALL * FROM tab1 WHERE - col0 / CAST( NULL AS SIGNED ) + + col1 + 43 >= ( + + col0 )
----

skipif mysql # not compatible
query III rowsort label-9771
SELECT ALL * FROM tab1 WHERE - col0 / CAST ( NULL AS INTEGER ) + + col1 + 43 >= ( + + col0 )
----

query I rowsort
SELECT ALL + ( - - 11 ) AS col2 FROM tab0 AS cor0
----
11
11
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - col2 col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - 36 - 47 + + col2 NOT IN ( + + col0 * + 36 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col2 + - 56 AS col2 FROM tab0 AS cor0 WHERE NOT - col1 NOT BETWEEN + col0 AND ( + - col0 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <= - 70
----

query I rowsort
SELECT ALL - 66 + - col1 * - col2 * + 4 + + + col1 FROM tab2 cor0
----
12331
15545
4677

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9778
SELECT DISTINCT + col2 * - + CAST( 99 AS SIGNED ) col2 FROM tab1 AS cor0
----
-5841
-6732
-9504

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9778
SELECT DISTINCT + col2 * - + CAST ( 99 AS INTEGER ) col2 FROM tab1 AS cor0
----
-5841
-6732
-9504

onlyif mysql # aggregate syntax: 
query I rowsort label-9779
SELECT DISTINCT COUNT( - col0 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9779
SELECT DISTINCT COUNT ( - col0 ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT - col2 FROM tab0 AS cor0 WHERE NOT col0 < - + 9
----
-10
-47
-99

query I rowsort
SELECT ALL col1 * + col0 + - + col2 FROM tab0 AS cor0
----
-2
1168
1817

query I rowsort
SELECT + ( + + 41 ) + + 38 + 78 + - 63 * col1 AS col1 FROM tab1 cor0 WHERE - col1 BETWEEN - col2 AND ( NULL )
----

query I rowsort
SELECT ALL + col1 * + + 83 AS col1 FROM tab0
----
1743
6723
83

query II rowsort
SELECT DISTINCT - 35, + col2 AS col0 FROM tab0
----
-35
10
-35
47
-35
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9785
SELECT + 88 AS col0, - COUNT( * ) * - 42 * + CAST( + 21 AS SIGNED ) FROM tab0
----
88
2646

skipif mysql # not compatible
query II rowsort label-9785
SELECT + 88 AS col0, - COUNT ( * ) * - 42 * + CAST ( + 21 AS INTEGER ) FROM tab0
----
88
2646

query II rowsort
SELECT + 23 AS col0, - col0 * - + col1 AS col2 FROM tab1
----
23
425
23
4277
23
714

query I rowsort
SELECT + + col2 AS col0 FROM tab1 WHERE col2 IS NOT NULL
----
59
68
96

query I rowsort
SELECT col1 - 72 FROM tab2
----
-21
-5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9789
SELECT ALL + SUM( DISTINCT ( col1 ) ) * + + ( - SUM( ALL + - ( col0 ) ) ) + + 72 + - 94 FROM tab0
----
20475

skipif mysql # not compatible
query I rowsort label-9789
SELECT ALL + SUM ( DISTINCT ( col1 ) ) * + + ( - SUM ( ALL + - ( col0 ) ) ) + + 72 + - 94 FROM tab0
----
20475

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9790
SELECT DISTINCT - COUNT( * ) + + 55 + + CAST( NULL AS SIGNED ), 72 / CAST( NULL AS DECIMAL ) - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9790
SELECT DISTINCT - COUNT ( * ) + + 55 + + CAST ( NULL AS INTEGER ), 72 / CAST ( NULL AS REAL ) - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL

query I rowsort
SELECT DISTINCT + + col0 - col0 + - ( col2 ) - + 28 AS col2 FROM tab0 AS cor0
----
-127
-38
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9792
SELECT DISTINCT - ( + - ( + CAST( - col1 AS SIGNED ) ) ) FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-9792
SELECT DISTINCT - ( + - ( + CAST ( - col1 AS INTEGER ) ) ) FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9793
SELECT ALL + COUNT( * ) * - 32 AS col1 FROM tab2 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-9793
SELECT ALL + COUNT ( * ) * - 32 AS col1 FROM tab2 cor0
----
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-9794
SELECT - COUNT( * ) * + COUNT( * ), + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-9
3

skipif mysql # not compatible
query II rowsort label-9794
SELECT - COUNT ( * ) * + COUNT ( * ), + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-9
3

query I rowsort
SELECT ALL col1 + + - col2 FROM tab1 AS cor0 WHERE NULL = ( 85 ) + - - col2 + - col0 + - 52 / - col0
----

query I rowsort
SELECT - AVG ( ALL + col2 ) FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN col0 + col0 AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9797
SELECT DISTINCT COUNT( * ) * 12 AS col1 FROM tab1 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-9797
SELECT DISTINCT COUNT ( * ) * 12 AS col1 FROM tab1 AS cor0
----
36

query I rowsort
SELECT DISTINCT + + col2 + 75 FROM tab0 AS cor0 WHERE NULL < ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9799
SELECT - 69 AS col2, + MIN( - + 50 ) AS col2 FROM tab1 AS cor0 WHERE NOT col2 + - 34 IS NULL
----
-69
-50

skipif mysql # not compatible
query II rowsort label-9799
SELECT - 69 AS col2, + MIN ( - + 50 ) AS col2 FROM tab1 AS cor0 WHERE NOT col2 + - 34 IS NULL
----
-69
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9800
SELECT CAST( - COUNT( * ) AS SIGNED ) AS col0, COUNT( * ) FROM tab1 cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-9800
SELECT CAST ( - COUNT ( * ) AS INTEGER ) AS col0, COUNT ( * ) FROM tab1 cor0
----
-3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9801
SELECT - + MIN( - ( - 46 ) ) FROM tab0 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-9801
SELECT - + MIN ( - ( - 46 ) ) FROM tab0 AS cor0
----
-46

query I rowsort
SELECT DISTINCT + 99 * + + col1 * 54 AS col1 FROM tab2 AS cor0
----
272646
358182
411642

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - + col1 ) * col2 <= col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 67 * - 29 AS col0 FROM tab1
----
-1943
-1943
-1943

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 97 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT col0, + col0 * - - col0 + - col0 AS col0 FROM tab2
----
46
2070
64
4032
75
5550

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN col0 - - 83 * + col0 * 3 AND ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9808
SELECT SUM( DISTINCT - - col2 ) AS col2 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-9808
SELECT SUM ( DISTINCT - - col2 ) AS col2 FROM tab0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-9809
SELECT DISTINCT + - COUNT( * ) + + - COUNT( * ) FROM tab1 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-9809
SELECT DISTINCT + - COUNT ( * ) + + - COUNT ( * ) FROM tab1 cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9810
SELECT - 60 + SUM( col0 ) FROM tab2 AS cor0
----
125

skipif mysql # not compatible
query I rowsort label-9810
SELECT - 60 + SUM ( col0 ) FROM tab2 AS cor0
----
125

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 45 col1 FROM tab0 AS cor0
----
-45
-45
-45

query I rowsort
SELECT DISTINCT col0 * + col1 + + - col0 + col2 + col2 * - - 86 FROM tab0
----
2610
5289
8613

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 47 col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa

onlyif mysql # aggregate syntax: 
query I rowsort label-9814
SELECT SUM( DISTINCT + col0 ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-9814
SELECT SUM ( DISTINCT + col0 ) FROM tab2 AS cor0
----
185

onlyif mysql # DIV for integer division: 
query I rowsort label-9815
SELECT ( + col1 ) * col0 DIV col1 DIV - - 84 AS col2 FROM tab1 AS cor0 WHERE - col1 > + - col2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9815
SELECT ( + col1 ) * col0 / col1 / - - 84 AS col2 FROM tab1 AS cor0 WHERE - col1 > + - col2
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + + 38 - + 39 col1 FROM tab0 cor0
----
-1
3039
759

onlyif mysql # aggregate syntax: 
query I rowsort label-9817
SELECT DISTINCT + + MIN( ALL + col0 ) - + + 8 AS col2 FROM tab1 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-9817
SELECT DISTINCT + + MIN ( ALL + col0 ) - + + 8 AS col2 FROM tab1 AS cor0
----
43

query I rowsort
SELECT 48 + - + 96 * col2 FROM tab1 cor0
----
-5616
-6480
-9168

onlyif mysql # aggregate syntax: 
query I rowsort label-9819
SELECT DISTINCT + - MIN( ALL - col0 ) AS col0 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-9819
SELECT DISTINCT + - MIN ( ALL - col0 ) AS col0 FROM tab0 AS cor0
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-9820
SELECT ALL - + 81, + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-81
3

skipif mysql # not compatible
query II rowsort label-9820
SELECT ALL - + 81, + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-81
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9821
SELECT MIN( + - col2 ) + - CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9821
SELECT MIN ( + - col2 ) + - CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9822
SELECT DISTINCT COUNT( DISTINCT + + 8 ) FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9822
SELECT DISTINCT COUNT ( DISTINCT + + 8 ) FROM tab0 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT * FROM tab2 WHERE - col1 <= - - 36 * col2 + - col2 - - - ( - col1 ) * - + col0 * 74
----

query I rowsort
SELECT col2 + col1 + 39 + col2 AS col1 FROM tab0
----
214
238
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9825
SELECT DISTINCT + COUNT( * ) - + 26 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-9825
SELECT DISTINCT + COUNT ( * ) - + 26 FROM tab2
----
-23

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 = + ( - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9827
SELECT * FROM tab1 AS cor0 WHERE col1 / - ( - - CAST( NULL AS SIGNED ) ) + + 0 + - - 25 * - 75 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9827
SELECT * FROM tab1 AS cor0 WHERE col1 / - ( - - CAST ( NULL AS INTEGER ) ) + + 0 + - - 25 * - 75 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL NOT BETWEEN col2 AND col0
----

query I rowsort
SELECT - col2 * - 48 - - col2 AS col1 FROM tab2 AS cor0
----
1127
1960
2842

query I rowsort
SELECT ALL ( - + ( col0 ) ) * + 2 + 18 + + 40 - - 98 * - - col0 FROM tab1 AS cor0
----
4954
8218
8794

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab0 WHERE NOT col2 < - col0
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9832
SELECT ALL - CAST( - 4 AS SIGNED ) FROM tab0
----
4
4
4

skipif mysql # not compatible
query I rowsort label-9832
SELECT ALL - CAST ( - 4 AS INTEGER ) FROM tab0
----
4
4
4

query II rowsort
SELECT + 32 AS col2, ( col2 ) FROM tab2 AS cor0
----
32
23
32
40
32
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9834
SELECT + - MIN( col2 ) AS col1 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-9834
SELECT + - MIN ( col2 ) AS col1 FROM tab0 AS cor0
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-9835
SELECT DISTINCT - 55 * + col1 - + 81 DIV + + 97 + 61 + + col0 AS col0 FROM tab0 AS cor0
----
-1007
-4379
103

skipif mysql # not compatible
query I rowsort label-9835
SELECT DISTINCT - 55 * + col1 - + 81 / + + 97 + 61 + + col0 AS col0 FROM tab0 AS cor0
----
-1007
-4379
103

query I rowsort
SELECT DISTINCT - + ( + + col2 ) * col0 AS col1 FROM tab0 AS cor0
----
-705
-870
-9603

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE - col1 > + 24
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( + col0 ) col2, col1 AS col2 FROM tab2
----
46
51
64
77
75
67

query I rowsort
SELECT ( col2 ) * + 59 FROM tab2
----
1357
2360
3422

query I rowsort
SELECT ALL + col2 + - + col2 AS col1 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9841
SELECT + col2 DIV - 32 - - col0 + col0 DIV - col0 FROM tab1 AS cor0
----
47
83
88

skipif mysql # not compatible
query I rowsort label-9841
SELECT + col2 / - 32 - - col0 + col0 / - col0 FROM tab1 AS cor0
----
47
83
88

onlyif mysql # aggregate syntax: 
query II rowsort label-9842
SELECT - 44 + ( + SUM( - ( - 87 ) ) ) AS col2, COUNT( ALL - col0 ) AS col2 FROM tab0
----
217
3

skipif mysql # not compatible
query II rowsort label-9842
SELECT - 44 + ( + SUM ( - ( - 87 ) ) ) AS col2, COUNT ( ALL - col0 ) AS col2 FROM tab0
----
217
3

query I rowsort
SELECT 22 + 82 FROM tab2
----
104
104
104

onlyif mysql # DIV for integer division: 
query I rowsort label-9844
SELECT - 71 + - col0 - col1 - col0 + + col1 + + col2 * + col0 DIV - col0 FROM tab1
----
-269
-300
-321

skipif mysql # not compatible
query I rowsort label-9844
SELECT - 71 + - col0 - col1 - col0 + + col1 + + col2 * + col0 / - col0 FROM tab1
----
-269
-300
-321

query I rowsort
SELECT ALL col1 * - - col1 AS col0 FROM tab0
----
1
441
6561

onlyif mysql # aggregate syntax: 
query I rowsort label-9846
SELECT DISTINCT + 81 + MAX( col1 ) FROM tab1 AS cor0
----
128

skipif mysql # not compatible
query I rowsort label-9846
SELECT DISTINCT + 81 + MAX ( col1 ) FROM tab1 AS cor0
----
128

query I rowsort
SELECT col0 + + 98 FROM tab2 AS cor0
----
144
162
173

query I rowsort
SELECT ALL col1 - - - col1 AS col0 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 * - - 39 > NULL
----

query I rowsort
SELECT DISTINCT - - 57 - + 19 FROM tab0 AS cor0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9851
SELECT COUNT( * ) * - 33 FROM tab2
----
-99

skipif mysql # not compatible
query I rowsort label-9851
SELECT COUNT ( * ) * - 33 FROM tab2
----
-99

query I rowsort
SELECT 19 - - col1 FROM tab2
----
70
86
96

query III rowsort
SELECT * FROM tab0 WHERE + col2 = + - col2 + + + 0
----

query I rowsort
SELECT + 9 - 62 + - col2 FROM tab2
----
-111
-76
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9855
SELECT DISTINCT + MAX( ALL col1 ) + + MAX( - col0 ) + ( CAST( NULL AS SIGNED ) ) * - + COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9855
SELECT DISTINCT + MAX ( ALL col1 ) + + MAX ( - col0 ) + ( CAST ( NULL AS INTEGER ) ) * - + COUNT ( * ) FROM tab2
----
NULL

query I rowsort
SELECT - 58 - col2 AS col2 FROM tab0
----
-105
-157
-68

query I rowsort
SELECT - col0 - + - 54 AS col2 FROM tab2 cor0 WHERE NOT ( NULL NOT IN ( - col2, - 25 + col2 ) )
----

query II rowsort
SELECT DISTINCT + 59, - col0 * - + col2 + - + 12 + - + col1 AS col0 FROM tab2 AS cor0
----
59
2471
59
4271
59
995

query II rowsort
SELECT ALL col0 AS col1, - 51 FROM tab1 AS cor0
----
51
-51
85
-51
91
-51

query II rowsort
SELECT DISTINCT + col1 AS col2, 26 FROM tab2 AS cor0
----
51
26
67
26
77
26

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9861
SELECT ALL + col2 col1, + 80 - + CAST( + - col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
59
139
68
148
96
176

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9861
SELECT ALL + col2 col1, + 80 - + CAST ( + - col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
59
139
68
148
96
176

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9862
SELECT - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NOT 28 - ( col0 ) <= NULL
----

skipif mysql # not compatible
query I rowsort label-9862
SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NOT 28 - ( col0 ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9863
SELECT - SUM( - + 93 ) AS col0 FROM tab1
----
279

skipif mysql # not compatible
query I rowsort label-9863
SELECT - SUM ( - + 93 ) AS col0 FROM tab1
----
279

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + col2 * - - col2 IN ( - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9865
SELECT - 70 DIV + col0 AS col2, CAST( NULL AS SIGNED ) + + 9 AS col1 FROM tab1 cor0
----
-1
NULL
0
NULL
0
NULL

skipif mysql # not compatible
query II rowsort label-9865
SELECT - 70 / + col0 AS col2, CAST ( NULL AS INTEGER ) + + 9 AS col1 FROM tab1 cor0
----
-1
NULL
0
NULL
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9866
SELECT - COUNT( * ) * + COUNT( DISTINCT + col0 ) AS col1 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9866
SELECT - COUNT ( * ) * + COUNT ( DISTINCT + col0 ) AS col1 FROM tab0 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9867
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 46 + + CAST( + col2 AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9867
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 46 + + CAST ( + col2 AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 * - - ( - col0 ) AS col2 FROM tab2 AS cor0
----
2116
4096
5625

query I rowsort
SELECT ( 94 ) AS col2 FROM tab2
----
94
94
94

query I rowsort
SELECT ALL + 63 * + - col0 FROM tab0
----
-5481
-6111
-945

onlyif mysql # aggregate syntax: 
query I rowsort label-9871
SELECT COUNT( * ) AS col2 FROM tab0 WHERE - - col1 / 17 + + 94 + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9871
SELECT COUNT ( * ) AS col2 FROM tab0 WHERE - - col1 / 17 + + 94 + col2 IS NULL
----
0

query I rowsort
SELECT DISTINCT col1 + 5 AS col2 FROM tab1
----
10
19
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9873
SELECT - 38 * + + CAST( NULL AS SIGNED ) AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9873
SELECT - 38 * + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9874
SELECT ALL - col0 * - 92 + col1 + CAST( NULL AS SIGNED ) + col2 + 50 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9874
SELECT ALL - col0 * - 92 + col1 + CAST ( NULL AS INTEGER ) + col2 + 50 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - 16 * - col2 FROM tab1 AS cor0
----
1088
1536
944

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9876
SELECT + + COUNT( * ) DIV 68 * + COUNT( * ) AS col0, 64 AS col2 FROM tab1 AS cor0
----
0
64

skipif mysql # not compatible
query II rowsort label-9876
SELECT + + COUNT ( * ) / 68 * + COUNT ( * ) AS col0, 64 AS col2 FROM tab1 AS cor0
----
0
64

query I rowsort
SELECT + 23 AS col0 FROM tab2 WHERE 9 NOT BETWEEN - 19 * - - col0 * 61 + + + col0 AND ( + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9878
SELECT ALL - col0 DIV - 35 AS col0 FROM tab0
----
0
2
2

skipif mysql # not compatible
query I rowsort label-9878
SELECT ALL - col0 / - 35 AS col0 FROM tab0
----
0
2
2

query I rowsort
SELECT ALL col2 + + 50 + col2 AS col1 FROM tab1 AS cor0
----
168
186
242

query I rowsort
SELECT DISTINCT - col2 + + - col0 * + 89 AS col2 FROM tab0 AS cor0
----
-1382
-7753
-8732

query I rowsort
SELECT ALL - + col2 * col0 - col0 AS col0 FROM tab2 AS cor0
----
-1104
-2624
-4425

query I rowsort
SELECT - - 87 * 83 + - + col2 FROM tab2 AS cor0
----
7163
7181
7198

onlyif mysql # aggregate syntax: 
query I rowsort label-9883
SELECT - ( MIN( - col0 ) ) * - 33 + - 85 + 22 AS col1 FROM tab0 AS cor0
----
-3264

skipif mysql # not compatible
query I rowsort label-9883
SELECT - ( MIN ( - col0 ) ) * - 33 + - 85 + 22 AS col1 FROM tab0 AS cor0
----
-3264

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9884
SELECT CAST( NULL AS SIGNED ) + + 27 + COUNT( * ) col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9884
SELECT CAST ( NULL AS INTEGER ) + + 27 + COUNT ( * ) col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9885
SELECT - 60 DIV - COUNT( * ) AS col2 FROM tab1
----
20

skipif mysql # not compatible
query I rowsort label-9885
SELECT - 60 / - COUNT ( * ) AS col2 FROM tab1
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9886
SELECT DISTINCT + - 3 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-9886
SELECT DISTINCT + - 3 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9887
SELECT DISTINCT COUNT( - - col0 ) + + 63, COUNT( * ) AS col2 FROM tab1
----
66
3

skipif mysql # not compatible
query II rowsort label-9887
SELECT DISTINCT COUNT ( - - col0 ) + + 63, COUNT ( * ) AS col2 FROM tab1
----
66
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN + 85 * + col2 * - col0 AND - ( - 49 ) + - 16 - - - col1 + + + 44 * - - col0 / 88
----

query II rowsort
SELECT - col0, col0 + + - col1 AS col2 FROM tab1
----
-51
37
-85
80
-91
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9890
SELECT + MAX( + col1 ) col2 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9890
SELECT + MAX ( + col1 ) col2 FROM tab2 AS cor0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9891
SELECT ALL CAST( NULL AS SIGNED ), col2 * col0 + - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9891
SELECT ALL CAST ( NULL AS INTEGER ), col2 * col0 + - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9892
SELECT - + CAST( NULL AS SIGNED ) AS col0, col2 DIV + 50 FROM tab1 cor0
----
NULL
1
NULL
1
NULL
1

skipif mysql # not compatible
query II rowsort label-9892
SELECT - + CAST ( NULL AS INTEGER ) AS col0, col2 / + 50 FROM tab1 cor0
----
NULL
1
NULL
1
NULL
1

query I rowsort
SELECT 7 + + col0 AS col1 FROM tab0 AS cor0 WHERE NOT + + 54 IS NOT NULL AND NOT ( NULL ) > NULL
----

query II rowsort
SELECT col2 AS col2, + 26 * + - col0 * + - 12 FROM tab2 AS cor0
----
23
14352
40
19968
58
23400

query II rowsort
SELECT ALL - col2 AS col2, col2 - + col1 AS col2 FROM tab1
----
-59
54
-68
21
-96
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9896
SELECT + SUM( - - col2 ) AS col0, + CAST( + 53 AS SIGNED ) + - + ( + + 29 ) AS col1 FROM tab0
----
156
24

skipif mysql # not compatible
query II rowsort label-9896
SELECT + SUM ( - - col2 ) AS col0, + CAST ( + 53 AS INTEGER ) + - + ( + + 29 ) AS col1 FROM tab0
----
156
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9897
SELECT ALL 92 * - + COUNT( * ) * + COUNT( * ) AS col1 FROM tab1
----
-828

skipif mysql # not compatible
query I rowsort label-9897
SELECT ALL 92 * - + COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab1
----
-828

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9898
SELECT - - COUNT( * ) * - + 69 DIV - SUM( 94 ) AS col1, - 23 FROM tab0 AS cor0
----
0
-23

skipif mysql # not compatible
query II rowsort label-9898
SELECT - - COUNT ( * ) * - + 69 / - SUM ( 94 ) AS col1, - 23 FROM tab0 AS cor0
----
0
-23

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - 35 = col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - ( + + col2 ) + col1 AS col1 FROM tab0 AS cor0
----
-98
11
34

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9901
SELECT - col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-9901
SELECT - col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> + CAST ( NULL AS REAL )
----

query I rowsort
SELECT + + col0 + - col0 + + 55 FROM tab0 AS cor0
----
55
55
55

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 23 IN ( + 30 * - - col2 - col0 * ( 63 ) - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 97 * + col2 FROM tab2
----
2231
3880
5626

query I rowsort
SELECT ALL 46 * + + col0 AS col1 FROM tab2
----
2116
2944
3450

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9906
SELECT + col0 AS col2 FROM tab2 WHERE NULL IN ( + 36, CAST( NULL AS SIGNED ), - + col1 )
----

skipif mysql # not compatible
query I rowsort label-9906
SELECT + col0 AS col2 FROM tab2 WHERE NULL IN ( + 36, CAST ( NULL AS INTEGER ), - + col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9907
SELECT ALL - SUM( DISTINCT col2 ), 90 AS col0 FROM tab2
----
-121
90

skipif mysql # not compatible
query II rowsort label-9907
SELECT ALL - SUM ( DISTINCT col2 ), 90 AS col0 FROM tab2
----
-121
90

query I rowsort
SELECT + col1 FROM tab0 WHERE - 79 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9909
SELECT - COUNT( - ( col2 ) ) col2 FROM tab0 WHERE + 47 IS NOT NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9909
SELECT - COUNT ( - ( col2 ) ) col2 FROM tab0 WHERE + 47 IS NOT NULL
----
-3

query II rowsort
SELECT + ( + col1 ) AS col0, col0 AS col0 FROM tab1
----
14
51
47
91
5
85

query II rowsort
SELECT ALL col2 * - col0 + + 7, ( - + col2 ) AS col1 FROM tab2
----
-1051
-23
-2553
-40
-4343
-58

query I rowsort
SELECT + 69 + col1 + - ( - col0 ) FROM tab0 AS cor0
----
165
167
177

onlyif mysql # DIV for integer division: 
query I rowsort label-9913
SELECT 4 + - - col1 + + 72 DIV ( - col0 ) AS col1 FROM tab0
----
25
5
81

skipif mysql # not compatible
query I rowsort label-9913
SELECT 4 + - - col1 + + 72 / ( - col0 ) AS col1 FROM tab0
----
25
5
81

query I rowsort
SELECT - col1 * + col0 AS col1 FROM tab0 WHERE NULL NOT BETWEEN + - col0 AND - col1
----

query I rowsort
SELECT DISTINCT - 10 * - 8 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
80

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col1 * col1 * - + col2 * - - 72 = col0
----

query I rowsort
SELECT DISTINCT - - 89 - - 99 FROM tab1 cor0
----
188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9918
SELECT DISTINCT CAST( + - ( + 45 ) AS SIGNED ) + + ( col0 ) FROM tab2 cor0
----
1
19
30

skipif mysql # not compatible
query I rowsort label-9918
SELECT DISTINCT CAST ( + - ( + 45 ) AS INTEGER ) + + ( col0 ) FROM tab2 cor0
----
1
19
30

onlyif mysql # DIV for integer division: 
query I rowsort label-9919
SELECT ALL 34 - - 72 - + + col2 + - 58 DIV - + col1 FROM tab1 AS cor0
----
14
39
58

skipif mysql # not compatible
query I rowsort label-9919
SELECT ALL 34 - - 72 - + + col2 + - 58 / - + col1 FROM tab1 AS cor0
----
14
39
58

query I rowsort
SELECT DISTINCT - - 95 + + + col1 AS col1 FROM tab1 AS cor0
----
100
109
142

query I rowsort
SELECT col0 AS col1 FROM tab1 AS cor0 WHERE NULL < col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9922
SELECT ALL - COUNT( * ) - COUNT( * ) DIV COUNT( * ) FROM tab0 cor0
----
-4

skipif mysql # not compatible
query I rowsort label-9922
SELECT ALL - COUNT ( * ) - COUNT ( * ) / COUNT ( * ) FROM tab0 cor0
----
-4

query I rowsort
SELECT DISTINCT - + col0 * - col2 - + + ( 97 ) FROM tab0 AS cor0
----
608
773
9506

query I rowsort
SELECT + - 14 - + + 72 FROM tab2 cor0
----
-86
-86
-86

query II rowsort
SELECT + 51, col2 * + ( + + col0 ) * + col1 AS col1 FROM tab0 AS cor0
----
51
18270
51
57105
51
9603

onlyif mysql # aggregate syntax: 
query II rowsort label-9926
SELECT 57 * + - 79 * - SUM( ALL 82 ), COUNT( * ) * MIN( ALL - col0 ) AS col2 FROM tab2
----
1107738
-225

skipif mysql # not compatible
query II rowsort label-9926
SELECT 57 * + - 79 * - SUM ( ALL 82 ), COUNT ( * ) * MIN ( ALL - col0 ) AS col2 FROM tab2
----
1107738
-225

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT 3 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9928
SELECT DISTINCT - CAST( + col0 AS SIGNED ) DIV + 49 + + + col1 FROM tab2 WHERE NOT - col1 + 66 IS NULL
----
51
66
76

skipif mysql # not compatible
query I rowsort label-9928
SELECT DISTINCT - CAST ( + col0 AS INTEGER ) / + 49 + + + col1 FROM tab2 WHERE NOT - col1 + 66 IS NULL
----
51
66
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9929
SELECT 98 * + ( + - COUNT( * ) ) AS col1 FROM tab1
----
-294

skipif mysql # not compatible
query I rowsort label-9929
SELECT 98 * + ( + - COUNT ( * ) ) AS col1 FROM tab1
----
-294

query I rowsort
SELECT ALL - + col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9931
SELECT ALL + - SUM( DISTINCT + col0 ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-227

skipif mysql # not compatible
query I rowsort label-9931
SELECT ALL + - SUM ( DISTINCT + col0 ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-227

query I rowsort
SELECT + - 64 * col0 + - + 46 AS col0 FROM tab2 AS cor0
----
-2990
-4142
-4846

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT 80 * col1 IS NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 35 col2 FROM tab0 AS cor0
----
35

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - + col1 BETWEEN + + 92 * col0 + col1 + - - 85 + - col0 AND NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + 93 AS col2 FROM tab0 AS cor0 WHERE NOT ( NOT - + 96 IS NULL )
----

query I rowsort
SELECT ALL col1 * col1 + + col0 * 53 + 92 AS col0 FROM tab1 AS cor0
----
2991
4622
7124

query I rowsort
SELECT DISTINCT + - col2 * + + col1 AS col1 FROM tab1 AS cor0
----
-1344
-295
-3196

query I rowsort
SELECT ALL + col1 * + + col2 * + ( + col1 ) * + 83 - + + col2 AS col1 FROM tab1 AS cor0
----
122366
12467528
1561632

onlyif mysql # aggregate syntax: 
query I rowsort label-9940
SELECT + 7 * COUNT( DISTINCT + + col1 ) + COUNT( * ) * - - COUNT( * ) FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-9940
SELECT + 7 * COUNT ( DISTINCT + + col1 ) + COUNT ( * ) * - - COUNT ( * ) FROM tab0
----
30

query II rowsort
SELECT DISTINCT + 15, + col0 AS col1 FROM tab0
----
15
15
15
87
15
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9942
SELECT 6 * - COUNT( * ) + COUNT( + col1 ) FROM tab1
----
-15

skipif mysql # not compatible
query I rowsort label-9942
SELECT 6 * - COUNT ( * ) + COUNT ( + col1 ) FROM tab1
----
-15

query I rowsort
SELECT + col0 FROM tab0 WHERE + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9944
SELECT ( - COUNT( * ) ) FROM tab1 WHERE + + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9944
SELECT ( - COUNT ( * ) ) FROM tab1 WHERE + + col0 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9945
SELECT ALL - MAX( 2 ) FROM tab2
----
-2

skipif mysql # not compatible
query I rowsort label-9945
SELECT ALL - MAX ( 2 ) FROM tab2
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9946
SELECT DISTINCT col0 / - col1 + + + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9946
SELECT DISTINCT col0 / - col1 + + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

query II rowsort
SELECT DISTINCT col0, 38 FROM tab1 WHERE ( - + 41 ) IS NOT NULL
----
51
38
85
38
91
38

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9948
SELECT ALL * FROM tab1 WHERE - ( - 74 ) * - CAST( col0 AS SIGNED ) * - - col1 + - 50 + - col2 * - 79 * - + col2 BETWEEN - col1 AND + col2 + + ( + + col2 ) * - + 32
----

skipif mysql # not compatible
query III rowsort label-9948
SELECT ALL * FROM tab1 WHERE - ( - 74 ) * - CAST ( col0 AS INTEGER ) * - - col1 + - 50 + - col2 * - 79 * - + col2 BETWEEN - col1 AND + col2 + + ( + + col2 ) * - + 32
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9949
SELECT DISTINCT + MIN( DISTINCT + - ( - col2 ) ) + - 16 AS col2 FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-9949
SELECT DISTINCT + MIN ( DISTINCT + - ( - col2 ) ) + - 16 AS col2 FROM tab0
----
-6

query I rowsort
SELECT DISTINCT + col2 + + + col1 AS col0 FROM tab2
----
117
125
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 55 * + 34 col1 FROM tab1 AS cor0
----
1870
1870
1870

query I rowsort
SELECT - col0 AS col0 FROM tab2 AS cor0 WHERE 6 = - 60 * 87
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) <> + col2 * col1 - - 79 + - + ( - col0 ) + - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, col2 col0 FROM tab2 AS cor0
----
23
23
40
40
58
58

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 < col0 - + col1
----

query I rowsort
SELECT DISTINCT col1 + + col1 + - 68 * - col2 AS col1 FROM tab0
----
3358
6734
722

onlyif mysql # aggregate syntax: 
query I rowsort label-9957
SELECT + MAX( ALL 46 ) * - + 32 - - - 60 FROM tab0
----
-1532

skipif mysql # not compatible
query I rowsort label-9957
SELECT + MAX ( ALL 46 ) * - + 32 - - - 60 FROM tab0
----
-1532

query I rowsort
SELECT + 22 + + col0 + + ( - col1 ) FROM tab1 cor0
----
102
59
66

query I rowsort
SELECT DISTINCT - col0 + - col0 FROM tab0 AS cor0 WHERE NOT + 17 IS NOT NULL
----

query I rowsort
SELECT ALL col2 + col0 + + + 61 AS col1 FROM tab0 AS cor0
----
123
158
257

onlyif mysql # aggregate syntax: 
query I rowsort label-9961
SELECT + - 5 + - + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-9961
SELECT + - 5 + - + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-8

query I rowsort
SELECT 0 + 3 * + col1 FROM tab0 AS cor0
----
243
3
63

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 * - col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 + - 26 < NULL
----

query I rowsort
SELECT DISTINCT - + col2 FROM tab0 WHERE - col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9966
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab2 WHERE NOT NULL < col0
----
0

skipif mysql # not compatible
query I rowsort label-9966
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab2 WHERE NOT NULL < col0
----
0

query I rowsort
SELECT 27 * + 23 * col2 FROM tab2
----
14283
24840
36018

query I rowsort
SELECT ALL + 52 * + + col2 FROM tab0
----
2444
5148
520

query I rowsort
SELECT 68 * + col1 AS col1 FROM tab2
----
3468
4556
5236

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9970
SELECT DISTINCT CAST( - 44 AS SIGNED ) * + MAX( - col1 ) FROM tab2
----
2244

skipif mysql # not compatible
query I rowsort label-9970
SELECT DISTINCT CAST ( - 44 AS INTEGER ) * + MAX ( - col1 ) FROM tab2
----
2244

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 75 * - 50 col2 FROM tab0
----
-3750
-3750
-3750

query I rowsort
SELECT - - col0 * + + col2 AS col0 FROM tab0 WHERE NOT + + col1 IS NULL
----
705
870
9603

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 * col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 * + - col2 AS col1 FROM tab1
----
-1344
-295
-3196

query I rowsort
SELECT + col2 * + 55 AS col0 FROM tab1 WHERE + col1 + + 1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9976
SELECT MAX( 83 ) AS col2 FROM tab0
----
83

skipif mysql # not compatible
query I rowsort label-9976
SELECT MAX ( 83 ) AS col2 FROM tab0
----
83

query I rowsort
SELECT ( 55 ) FROM tab1, tab0 AS cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9978
SELECT ALL col1 + + col2 * col2 AS col1, CAST( NULL AS DECIMAL ) FROM tab1
----
3486
NULL
4671
NULL
9230
NULL

skipif mysql # not compatible
query II rowsort label-9978
SELECT ALL col1 + + col2 * col2 AS col1, CAST ( NULL AS REAL ) FROM tab1
----
3486
NULL
4671
NULL
9230
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 > + 97 + + col2
----

query I rowsort
SELECT DISTINCT + col1 + - + col0 AS col2 FROM tab2
----
-8
13
5

onlyif mysql # DIV for integer division: 
query I rowsort label-9981
SELECT col1 - + - col1 + col1 DIV + - 12 + col2 FROM tab1
----
123
159
69

skipif mysql # not compatible
query I rowsort label-9981
SELECT col1 - + - col1 + col1 / + - 12 + col2 FROM tab1
----
123
159
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9982
SELECT DISTINCT SUM( ( + + col1 ) ) - MAX( 27 ) FROM tab2 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-9982
SELECT DISTINCT SUM ( ( + + col1 ) ) - MAX ( 27 ) FROM tab2 AS cor0
----
168

query I rowsort
SELECT DISTINCT - 9 - + + col2 FROM tab1 AS cor0
----
-105
-68
-77

query I rowsort
SELECT + 5 + - + col0 * - col0 AS col1 FROM tab1
----
2606
7230
8286

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) <= 73
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - col0 + - 21 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9987
SELECT DISTINCT - + CAST( NULL AS DECIMAL ) * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-9987
SELECT DISTINCT - + CAST ( NULL AS REAL ) * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query I rowsort
SELECT ALL - + col1 * + col1 * - - col0 AS col1 FROM tab2 AS cor0
----
-119646
-336675
-379456

query II rowsort
SELECT - - col1 AS col1, 16 AS col2 FROM tab0 AS cor0
----
1
16
21
16
81
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9990
SELECT - - ( - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9990
SELECT - - ( - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9991
SELECT DISTINCT - 88 AS col1, + COUNT( * ) FROM tab2 AS cor0
----
-88
3

skipif mysql # not compatible
query II rowsort label-9991
SELECT DISTINCT - 88 AS col1, + COUNT ( * ) FROM tab2 AS cor0
----
-88
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9992
SELECT + + MAX( ALL + col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
91

skipif mysql # not compatible
query I rowsort label-9992
SELECT + + MAX ( ALL + col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9993
SELECT DISTINCT SUM( - + col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-9993
SELECT DISTINCT SUM ( - + col2 ) FROM tab2 AS cor0
----
-121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT - 88 col1, 8 * - col2 + 78, - col1 + - 45 AS col1 FROM tab0 AS cor0
----
9 values hashing to 43bf04386a02ca7de8d96bdcbc8ff32a

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL NOT BETWEEN NULL AND col1 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9996
SELECT - MAX( + 13 ) FROM tab1
----
-13

skipif mysql # not compatible
query I rowsort label-9996
SELECT - MAX ( + 13 ) FROM tab1
----
-13

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= col1 * col1 / 76 + + 75
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9998
SELECT DISTINCT + - col0 * - 73 * - 5 + CAST( - col0 AS SIGNED ) + + ( col2 ) / - col2 + + 14 + + CAST( NULL AS SIGNED ) / + 48 + - col2 FROM tab0 WHERE NULL <= NULL
----

skipif mysql # not compatible
query I rowsort label-9998
SELECT DISTINCT + - col0 * - 73 * - 5 + CAST ( - col0 AS INTEGER ) + + ( col2 ) / - col2 + + 14 + + CAST ( NULL AS INTEGER ) / + 48 + - col2 FROM tab0 WHERE NULL <= NULL
----

query I rowsort
SELECT ALL + col0 * + - 96 AS col2 FROM tab2
----
-4416
-6144
-7200

