sqllogictest
Artifact Content
Not logged in

Artifact 0c4ac449679a4e0fcd934367452ef93dd49b8d2d:


hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-0
SELECT + + 6 DIV - + 77
----
0

skipif mysql # not compatible
query I rowsort label-0
SELECT + + 6 / - + 77
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1
SELECT + + SUM( ALL 80 ) + 77 AS col1
----
157

skipif mysql # not compatible
query I rowsort label-1
SELECT + + SUM ( ALL 80 ) + 77 AS col1
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-2
SELECT + - SUM( + 8 ) - - 97 AS col0
----
89

skipif mysql # not compatible
query I rowsort label-2
SELECT + - SUM ( + 8 ) - - 97 AS col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3
SELECT DISTINCT 15 * + - 93 * + + ( - COUNT( * ) ) - + - SUM( DISTINCT + NULLIF ( + 35, + + 65 ) )
----
1430

skipif mysql # not compatible
query I rowsort label-3
SELECT DISTINCT 15 * + - 93 * + + ( - COUNT ( * ) ) - + - SUM ( DISTINCT + NULLIF ( + 35, + + 65 ) )
----
1430

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4
SELECT ALL - 26 + - CAST( + + COUNT( * ) AS SIGNED ) * 99 * + COUNT( * ) * - 6 AS col1
----
568

skipif mysql # not compatible
query I rowsort label-4
SELECT ALL - 26 + - CAST ( + + COUNT ( * ) AS INTEGER ) * 99 * + COUNT ( * ) * - 6 AS col1
----
568

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5
SELECT + - CAST( NULL AS DECIMAL ) + - + 6 + - + 69 + - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-5
SELECT + - CAST ( NULL AS REAL ) + - + 6 + - + 69 + - 68
----
NULL

query I rowsort
SELECT ALL + 15 + 1 - - 34 * + 34 * + 99 AS col1
----
114460

query I rowsort
SELECT ALL + ( NULLIF ( - + 79, 32 + ( - - 19 ) ) )
----
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-8
SELECT + 84 DIV 16
----
5

skipif mysql # not compatible
query I rowsort label-8
SELECT + 84 / 16
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9
SELECT ALL COUNT( + 97 ) + - 6 AS col0, + COUNT( * ) DIV + + COUNT( * ) AS col1
----
-5
1

skipif mysql # not compatible
query II rowsort label-9
SELECT ALL COUNT ( + 97 ) + - 6 AS col0, + COUNT ( * ) / + + COUNT ( * ) AS col1
----
-5
1

query I rowsort
SELECT + 1 * 84
----
84

query I rowsort
SELECT DISTINCT 59 AS col1
----
59

query I rowsort
SELECT ALL - ( + 31 ) + + + 15
----
-16

query I rowsort
SELECT + 78 + - - 82 AS col1
----
160

onlyif mysql # aggregate syntax: 
query II rowsort label-14
SELECT DISTINCT 1 + - NULLIF ( 15, ( - + 43 ) ) col0, SUM( DISTINCT - 49 ) * + - COUNT( * ) * NULLIF ( - 96, - 18 )
----
-14
-4704

skipif mysql # not compatible
query II rowsort label-14
SELECT DISTINCT 1 + - NULLIF ( 15, ( - + 43 ) ) col0, SUM ( DISTINCT - 49 ) * + - COUNT ( * ) * NULLIF ( - 96, - 18 )
----
-14
-4704

query I rowsort
SELECT - ( + + 70 ) col0
----
-70

query I rowsort
SELECT - 30 + - - 31
----
1

query I rowsort
SELECT ALL 36 + 92 * + 21 AS col0
----
1968

query I rowsort
SELECT DISTINCT - 75 + 24 AS col0
----
-51

query I rowsort
SELECT ALL - 66 * + 1
----
-66

query I rowsort
SELECT DISTINCT - 49 * + 81
----
-3969

onlyif mysql # aggregate syntax: 
query II rowsort label-21
SELECT + 90 col0, COALESCE ( + + 23, + 63 * COUNT( * ) * - - 54 - 36 )
----
90
23

skipif mysql # not compatible
query II rowsort label-21
SELECT + 90 col0, COALESCE ( + + 23, + 63 * COUNT ( * ) * - - 54 - 36 )
----
90
23

onlyif mysql # aggregate syntax: 
query I rowsort label-22
SELECT ALL - COUNT( - 19 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-22
SELECT ALL - COUNT ( - 19 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-23
SELECT ALL - COUNT( * ) AS col0, COUNT( * )
----
-1
1

skipif mysql # not compatible
query II rowsort label-23
SELECT ALL - COUNT ( * ) AS col0, COUNT ( * )
----
-1
1

query I rowsort
SELECT 68 * + - 85 AS col2
----
-5780

query I rowsort
SELECT ALL 70 * - 52
----
-3640

onlyif mysql # aggregate syntax: 
query II rowsort label-26
SELECT ALL - COUNT( * ) AS col1, 72
----
-1
72

skipif mysql # not compatible
query II rowsort label-26
SELECT ALL - COUNT ( * ) AS col1, 72
----
-1
72

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-27
SELECT 84 + - + CAST( NULL AS SIGNED ) - + - CAST( ( 38 ) AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-27
SELECT 84 + - + CAST ( NULL AS INTEGER ) - + - CAST ( ( 38 ) AS REAL ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 19 col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-29
SELECT + 91 * - CASE + 18 WHEN + + SUM( ALL 57 ) THEN - + 24 * + + 50 + 45 - 62 + - CASE + + 58 WHEN + COUNT( * ) * - 36 * + 95 * + 71 + 36 THEN NULL ELSE - + 48 END * - COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-29
SELECT + 91 * - CASE + 18 WHEN + + SUM ( ALL 57 ) THEN - + 24 * + + 50 + 45 - 62 + - CASE + + 58 WHEN + COUNT ( * ) * - 36 * + 95 * + 71 + 36 THEN NULL ELSE - + 48 END * - COUNT ( * ) END AS col0
----
NULL

query I rowsort
SELECT 36 - + 70 AS col2
----
-34

query II rowsort
SELECT + COALESCE ( - 89, 81 ) - + 90 + - 52 AS col0, 89 AS col1
----
-231
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-32
SELECT DISTINCT + COUNT( * ) DIV - - 66 col2
----
0

skipif mysql # not compatible
query I rowsort label-32
SELECT DISTINCT + COUNT ( * ) / - - 66 col2
----
0

query I rowsort
SELECT ALL - - 41 AS col2
----
41

query I rowsort
SELECT DISTINCT - 48 * 31 AS col2
----
-1488

query I rowsort
SELECT ALL - + 24 AS col2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-36
SELECT 36 * + COUNT( * ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-36
SELECT 36 * + COUNT ( * ) AS col1
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-37
SELECT DISTINCT + CASE + CAST( NULL AS SIGNED ) WHEN 22 + 80 - COUNT( * ) - 23 + - 33 / ( - 12 ) * 42 - + ( - 90 ) THEN + 59 WHEN - + AVG ( + + 79 ) THEN NULL END + - COUNT( DISTINCT - 21 ) + - 40 + + + 68 + CASE CAST( NULL AS DECIMAL ) WHEN - COUNT( * ) THEN NULL WHEN COUNT( * ) THEN + - 31 + - CAST( 91 AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-37
SELECT DISTINCT + CASE + CAST ( NULL AS INTEGER ) WHEN 22 + 80 - COUNT ( * ) - 23 + - 33 / ( - 12 ) * 42 - + ( - 90 ) THEN + 59 WHEN - + AVG ( + + 79 ) THEN NULL END + - COUNT ( DISTINCT - 21 ) + - 40 + + + 68 + CASE CAST ( NULL AS REAL ) WHEN - COUNT ( * ) THEN NULL WHEN COUNT ( * ) THEN + - 31 + - CAST ( 91 AS INTEGER ) ELSE NULL END
----
NULL

query I rowsort
SELECT + 38 * + 44 * 7 AS col0
----
11704

query I rowsort
SELECT + ( - - 98 ) * 77
----
7546

query I rowsort
SELECT ALL - - 33 + 90 * + 48 + + 78
----
4431

onlyif mysql # aggregate syntax: 
query I rowsort label-41
SELECT DISTINCT - CASE - + 87 WHEN COALESCE ( - - COUNT( * ), - - 5, - 41 ) THEN + + 88 ELSE - + 37 * - 4 END * 75 - + 39 AS col2
----
-11139

skipif mysql # not compatible
query I rowsort label-41
SELECT DISTINCT - CASE - + 87 WHEN COALESCE ( - - COUNT ( * ), - - 5, - 41 ) THEN + + 88 ELSE - + 37 * - 4 END * 75 - + 39 AS col2
----
-11139

query I rowsort
SELECT + 65 + + - 34 * 97
----
-3233

query I rowsort
SELECT - - ( + 74 )
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-44
SELECT ALL - 44 + 27 + + COUNT( * ) AS col0, ( - 31 ) AS col0
----
-16
-31

skipif mysql # not compatible
query II rowsort label-44
SELECT ALL - 44 + 27 + + COUNT ( * ) AS col0, ( - 31 ) AS col0
----
-16
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-45
SELECT DISTINCT + 22 + - - ( ( + COUNT( * ) ) )
----
23

skipif mysql # not compatible
query I rowsort label-45
SELECT DISTINCT + 22 + - - ( ( + COUNT ( * ) ) )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-46
SELECT DISTINCT COUNT( DISTINCT - 78 )
----
1

skipif mysql # not compatible
query I rowsort label-46
SELECT DISTINCT COUNT ( DISTINCT - 78 )
----
1

query I rowsort
SELECT ALL 54 col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-48
SELECT COUNT( * ) * - - 3
----
3

skipif mysql # not compatible
query I rowsort label-48
SELECT COUNT ( * ) * - - 3
----
3

query II rowsort
SELECT - 7, 15 AS col0
----
-7
15

onlyif mysql # aggregate syntax: 
query II rowsort label-50
SELECT ALL 8 AS col1, + 97 + 49 + + 71 + - + 60 * - - COUNT( * ) AS col0
----
8
157

skipif mysql # not compatible
query II rowsort label-50
SELECT ALL 8 AS col1, + 97 + 49 + + 71 + - + 60 * - - COUNT ( * ) AS col0
----
8
157

query II rowsort
SELECT - 10, 5 AS col1
----
-10
5

query I rowsort
SELECT ALL 60 + + + 82
----
142

query III rowsort
SELECT 76 AS col2, 95 AS col1, - 11 AS col1
----
76
95
-11

query I rowsort
SELECT ALL ( - 92 ) + NULLIF ( - - 5, + 27 )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-55
SELECT COUNT( * ) - + 17 + - COUNT( * )
----
-17

skipif mysql # not compatible
query I rowsort label-55
SELECT COUNT ( * ) - + 17 + - COUNT ( * )
----
-17

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-56
SELECT ALL 75, + 12 DIV - CAST( - ( + 42 ) AS SIGNED ) * + + 84 AS col1
----
75
0

skipif mysql # not compatible
query II rowsort label-56
SELECT ALL 75, + 12 / - CAST ( - ( + 42 ) AS INTEGER ) * + + 84 AS col1
----
75
0

query I rowsort
SELECT ALL + 62 - - 65 + + - 41 + + 78
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-58
SELECT NULLIF ( + 2, COUNT( * ) + - 35 ) * SUM( ALL - 10 ) + - + 16
----
-36

skipif mysql # not compatible
query I rowsort label-58
SELECT NULLIF ( + 2, COUNT ( * ) + - 35 ) * SUM ( ALL - 10 ) + - + 16
----
-36

query I rowsort
SELECT 52 + + COALESCE ( + 91, 66 ) AS col2
----
143

onlyif mysql # aggregate syntax: 
query II rowsort label-60
SELECT 75, - COUNT( + 59 ) AS col2
----
75
-1

skipif mysql # not compatible
query II rowsort label-60
SELECT 75, - COUNT ( + 59 ) AS col2
----
75
-1

query II rowsort
SELECT ALL 86 AS col1, 81
----
86
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-62
SELECT CAST( + COUNT( * ) AS SIGNED ) - + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-62
SELECT CAST ( + COUNT ( * ) AS INTEGER ) - + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-63
SELECT ALL + COUNT( - 9 ) DIV - 53
----
0

skipif mysql # not compatible
query I rowsort label-63
SELECT ALL + COUNT ( - 9 ) / - 53
----
0

query I rowsort
SELECT 49 * - ( - 58 ) col1
----
2842

onlyif mysql # aggregate syntax: 
query II rowsort label-65
SELECT + COUNT( * ) col0, + COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-65
SELECT + COUNT ( * ) col0, + COUNT ( * )
----
1
1

query I rowsort
SELECT 87 + + + 49 + - - 38 + - ( - - 54 ) * 7
----
-204

onlyif mysql # DIV for integer division: 
query I rowsort label-67
SELECT ALL 22 DIV + - 83
----
0

skipif mysql # not compatible
query I rowsort label-67
SELECT ALL 22 / + - 83
----
0

query I rowsort
SELECT + 2 * - 95 + + 51
----
-139

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-69
SELECT ALL CAST( + - 43 AS SIGNED ) * - - MIN( - 39 )
----
1677

skipif mysql # not compatible
query I rowsort label-69
SELECT ALL CAST ( + - 43 AS INTEGER ) * - - MIN ( - 39 )
----
1677

onlyif mysql # aggregate syntax: 
query I rowsort label-70
SELECT - COUNT( * ) * + - 48 col0
----
48

skipif mysql # not compatible
query I rowsort label-70
SELECT - COUNT ( * ) * + - 48 col0
----
48

query I rowsort
SELECT 51 + 33
----
84

query II rowsort
SELECT + - 82, + 6 AS col2
----
-82
6

onlyif mysql # aggregate syntax: 
query I rowsort label-73
SELECT - ( 41 ) + ( - - COUNT( * ) )
----
-40

skipif mysql # not compatible
query I rowsort label-73
SELECT - ( 41 ) + ( - - COUNT ( * ) )
----
-40

query I rowsort
SELECT ALL + + 11 * 80 AS col1
----
880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-75
SELECT DISTINCT - 99 AS col0, 4 * - NULLIF ( + ( + MIN( ALL CAST( + 20 AS SIGNED ) ) ), - - 80 * + COUNT( * ) ) AS col2, 37
----
-99
-80
37

skipif mysql # not compatible
query III rowsort label-75
SELECT DISTINCT - 99 AS col0, 4 * - NULLIF ( + ( + MIN ( ALL CAST ( + 20 AS INTEGER ) ) ), - - 80 * + COUNT ( * ) ) AS col2, 37
----
-99
-80
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-76
SELECT + 15 * - NULLIF ( + + 84, - ( - - 12 ) ) + ( - 58 ) * + ( - NULLIF ( + 5, CAST( + 71 AS SIGNED ) ) )
----
-970

skipif mysql # not compatible
query I rowsort label-76
SELECT + 15 * - NULLIF ( + + 84, - ( - - 12 ) ) + ( - 58 ) * + ( - NULLIF ( + 5, CAST ( + 71 AS INTEGER ) ) )
----
-970

query I rowsort
SELECT - ( + 79 )
----
-79

query I rowsort
SELECT 51 * - 44 AS col2
----
-2244

onlyif mysql # aggregate syntax: 
query I rowsort label-79
SELECT + COUNT( - 90 ) + - NULLIF ( + 45, ( - + COALESCE ( + + ( + - 74 ), - + 57 * CASE + 74 WHEN 2 THEN NULL WHEN + - 98 + + 51 THEN 5 * SUM( - ( + 70 ) ) + + 81 ELSE NULL END + + NULLIF ( - 15, + 77 ) ) ) )
----
-44

skipif mysql # not compatible
query I rowsort label-79
SELECT + COUNT ( - 90 ) + - NULLIF ( + 45, ( - + COALESCE ( + + ( + - 74 ), - + 57 * CASE + 74 WHEN 2 THEN NULL WHEN + - 98 + + 51 THEN 5 * SUM ( - ( + 70 ) ) + + 81 ELSE NULL END + + NULLIF ( - 15, + 77 ) ) ) )
----
-44

query II rowsort
SELECT - 73 AS col0, 63 * + - ( + 58 ) AS col0
----
-73
-3654

onlyif mysql # aggregate syntax: 
query I rowsort label-81
SELECT ALL - - NULLIF ( + 34, + 55 / MIN( DISTINCT 27 ) + + 43 ) + + + 93 AS col1
----
127

skipif mysql # not compatible
query I rowsort label-81
SELECT ALL - - NULLIF ( + 34, + 55 / MIN ( DISTINCT 27 ) + + 43 ) + + + 93 AS col1
----
127

query I rowsort
SELECT - 45 + + - 82 * 94
----
-7753

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-83
SELECT 30 + + + 45 * - 96 + - CAST( - - 27 AS SIGNED ) + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-83
SELECT 30 + + + 45 * - 96 + - CAST ( - - 27 AS INTEGER ) + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT COALESCE ( + 58, + 18 * + 0 )
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-85
SELECT ALL CAST( NULL AS SIGNED ) + - 88 / + 40 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-85
SELECT ALL CAST ( NULL AS INTEGER ) + - 88 / + 40 col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-86
SELECT DISTINCT - + 37 AS col0, 0 * + COUNT( ALL 33 ) AS col1
----
-37
0

skipif mysql # not compatible
query II rowsort label-86
SELECT DISTINCT - + 37 AS col0, 0 * + COUNT ( ALL 33 ) AS col1
----
-37
0

query I rowsort
SELECT ALL - 92 + 52
----
-40

query I rowsort
SELECT DISTINCT 63 AS col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-89
SELECT DISTINCT - + SUM( ALL + 10 ) + 60 AS col1
----
50

skipif mysql # not compatible
query I rowsort label-89
SELECT DISTINCT - + SUM ( ALL + 10 ) + 60 AS col1
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-90
SELECT - 8 col1, 26 * MAX( DISTINCT + 23 ) col1
----
-8
598

skipif mysql # not compatible
query II rowsort label-90
SELECT - 8 col1, 26 * MAX ( DISTINCT + 23 ) col1
----
-8
598

onlyif mysql # aggregate syntax: 
query I rowsort label-91
SELECT ALL COALESCE ( + 23, - COUNT( * ), 12 * - 12 + + 14 * + - 40 + 1 ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-91
SELECT ALL COALESCE ( + 23, - COUNT ( * ), 12 * - 12 + + 14 * + - 40 + 1 ) AS col0
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-92
SELECT 43 + - - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-92
SELECT 43 + - - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-93
SELECT ALL + CASE - MAX( 43 ) WHEN 85 * + NULLIF ( 60, - 25 ) * - 30 THEN NULL ELSE - COUNT( * ) END - + 59 + + 89 * + CAST( - 61 AS SIGNED ) AS col1
----
-5489

skipif mysql # not compatible
query I rowsort label-93
SELECT ALL + CASE - MAX ( 43 ) WHEN 85 * + NULLIF ( 60, - 25 ) * - 30 THEN NULL ELSE - COUNT ( * ) END - + 59 + + 89 * + CAST ( - 61 AS INTEGER ) AS col1
----
-5489

query I rowsort
SELECT ALL - 39 * + - 77 * + 26 AS col2
----
78078

query I rowsort
SELECT 17 * + 43
----
731

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-96
SELECT 53 + CAST( NULL AS SIGNED ) + CASE ( + 23 ) WHEN + + 82 + + - COUNT( * ) THEN 64 END * + + COUNT( * ) * + + AVG ( ALL + 30 ) * - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-96
SELECT 53 + CAST ( NULL AS INTEGER ) + CASE ( + 23 ) WHEN + + 82 + + - COUNT ( * ) THEN 64 END * + + COUNT ( * ) * + + AVG ( ALL + 30 ) * - 28
----
NULL

query I rowsort
SELECT 24 + 27 * + 3
----
105

query I rowsort
SELECT ALL CASE - + 95 WHEN + 1 THEN + + 46 / 6 + - 70 * + 44 WHEN - - 81 THEN NULL END
----
NULL

query I rowsort
SELECT ALL NULLIF ( + 70, - ( + 54 ) ) AS col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-100
SELECT DISTINCT CASE + SUM( ALL - ( - 3 ) ) WHEN - - 94 THEN - 84 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-100
SELECT DISTINCT CASE + SUM ( ALL - ( - 3 ) ) WHEN - - 94 THEN - 84 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-101
SELECT DISTINCT COUNT( DISTINCT - 1 )
----
1

skipif mysql # not compatible
query I rowsort label-101
SELECT DISTINCT COUNT ( DISTINCT - 1 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-102
SELECT DISTINCT 0 * COALESCE ( COUNT( * ), ( + 1 ) DIV 20 ) * + 35 * 25 * + 75 * - + 47 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-102
SELECT DISTINCT 0 * COALESCE ( COUNT ( * ), ( + 1 ) / 20 ) * + 35 * 25 * + 75 * - + 47 AS col0
----
0

query I rowsort
SELECT DISTINCT 33
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-104
SELECT ALL + 31 DIV ( + - 18 )
----
-1

skipif mysql # not compatible
query I rowsort label-104
SELECT ALL + 31 / ( + - 18 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-105
SELECT - CASE + 93 WHEN 72 * 89 THEN - 32 - 75 + - COUNT( * ) ELSE 28 END * - - COUNT( * ) + 43 AS col0
----
15

skipif mysql # not compatible
query I rowsort label-105
SELECT - CASE + 93 WHEN 72 * 89 THEN - 32 - 75 + - COUNT ( * ) ELSE 28 END * - - COUNT ( * ) + 43 AS col0
----
15

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-106
SELECT DISTINCT 82 * NULLIF ( - 87, + 10 / + CASE - 46 WHEN + 93 + COUNT( DISTINCT + 16 ) THEN NULL WHEN + 64 * - 26 * - - 69 * + CAST( + + SUM( ALL ( - 83 ) ) AS DECIMAL ) * - - 99 THEN COALESCE ( - + 74, - + MIN( - - 1 ) * COALESCE ( - 97, - COUNT( * ), - 70 * - 90 ) * + 8 + 99 + 12, + 50 ) / + 67 + + 29 - - 14 ELSE NULL END * - + 4 - - 19 ) AS col1, 50 + + COUNT( * )
----
-7134
51

skipif mysql # not compatible
query II rowsort label-106
SELECT DISTINCT 82 * NULLIF ( - 87, + 10 / + CASE - 46 WHEN + 93 + COUNT ( DISTINCT + 16 ) THEN NULL WHEN + 64 * - 26 * - - 69 * + CAST ( + + SUM ( ALL ( - 83 ) ) AS REAL ) * - - 99 THEN COALESCE ( - + 74, - + MIN ( - - 1 ) * COALESCE ( - 97, - COUNT ( * ), - 70 * - 90 ) * + 8 + 99 + 12, + 50 ) / + 67 + + 29 - - 14 ELSE NULL END * - + 4 - - 19 ) AS col1, 50 + + COUNT ( * )
----
-7134
51

query I rowsort
SELECT + 11 + + 98 AS col2
----
109

query I rowsort
SELECT ALL + 42 AS col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-109
SELECT + SUM( ALL - + 41 ) AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-109
SELECT + SUM ( ALL - + 41 ) AS col1
----
-41

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-110
SELECT ALL + ( 11 ) AS col2, + CAST( NULL AS DECIMAL )
----
11
NULL

skipif mysql # not compatible
query II rowsort label-110
SELECT ALL + ( 11 ) AS col2, + CAST ( NULL AS REAL )
----
11
NULL

query I rowsort
SELECT + ( - 96 )
----
-96

query I rowsort
SELECT DISTINCT + + 96
----
96

query I rowsort
SELECT ALL + + 10
----
10

query I rowsort
SELECT DISTINCT - 5 * + - 16 + + 84 + - + 3 + 7
----
168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-115
SELECT + + ( - SUM( + 47 ) ) * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-115
SELECT + + ( - SUM ( + 47 ) ) * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-116
SELECT DISTINCT + ( + CASE + - 92 WHEN 23 THEN NULL WHEN + 57 + - - NULLIF ( - 8, - 36 + 14 + + COALESCE ( + 35, - ( + MAX( DISTINCT - + 85 ) ) / - ( - 66 ) - 52, + - 2 - - - 56 ) ) THEN + - COUNT( * ) + 67 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-116
SELECT DISTINCT + ( + CASE + - 92 WHEN 23 THEN NULL WHEN + 57 + - - NULLIF ( - 8, - 36 + 14 + + COALESCE ( + 35, - ( + MAX ( DISTINCT - + 85 ) ) / - ( - 66 ) - 52, + - 2 - - - 56 ) ) THEN + - COUNT ( * ) + 67 END ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-117
SELECT + - 10 * + NULLIF ( + - 83, - CAST( NULL AS SIGNED ) )
----
830

skipif mysql # not compatible
query I rowsort label-117
SELECT + - 10 * + NULLIF ( + - 83, - CAST ( NULL AS INTEGER ) )
----
830

onlyif mysql # DIV for integer division: 
query I rowsort label-118
SELECT DISTINCT - NULLIF ( - 89, + - 58 ) DIV - - 14 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-118
SELECT DISTINCT - NULLIF ( - 89, + - 58 ) / - - 14 AS col0
----
6

query I rowsort
SELECT ALL + - 59 col2
----
-59

query II rowsort
SELECT ALL + + ( 20 ) AS col1, - 86
----
20
-86

query I rowsort
SELECT + + 91 col0
----
91

query I rowsort
SELECT ALL + 35
----
35

query I rowsort
SELECT ALL + - 9
----
-9

query I rowsort
SELECT + + 22 AS col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-125
SELECT DISTINCT + 75 * + 97 - - - 22 * COUNT( * )
----
7253

skipif mysql # not compatible
query I rowsort label-125
SELECT DISTINCT + 75 * + 97 - - - 22 * COUNT ( * )
----
7253

query I rowsort
SELECT + + 68 col0
----
68

query I rowsort
SELECT DISTINCT + + 71
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-128
SELECT MIN( 45 )
----
45

skipif mysql # not compatible
query I rowsort label-128
SELECT MIN ( 45 )
----
45

query I rowsort
SELECT + 1 * 67
----
67

query I rowsort
SELECT - 7 * - 72 col1
----
504

query I rowsort
SELECT - ( - 83 )
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-132
SELECT - 25 DIV + - 47 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-132
SELECT - 25 / + - 47 AS col1
----
0

query I rowsort
SELECT - 61 AS col1
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-134
SELECT COUNT( * ) AS col1, 93 AS col1
----
1
93

skipif mysql # not compatible
query II rowsort label-134
SELECT COUNT ( * ) AS col1, 93 AS col1
----
1
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-135
SELECT ALL + 62 - 54 + - 99 DIV + ( NULLIF ( 24, + AVG ( 12 ) ) ) + + - 74 col0, - NULLIF ( - - COUNT( DISTINCT + 83 ), + 33 ) AS col1
----
-70
-1

skipif mysql # not compatible
query II rowsort label-135
SELECT ALL + 62 - 54 + - 99 / + ( NULLIF ( 24, + AVG ( 12 ) ) ) + + - 74 col0, - NULLIF ( - - COUNT ( DISTINCT + 83 ), + 33 ) AS col1
----
-70
-1

query I rowsort
SELECT ALL - 7 * - 57 AS col2
----
399

onlyif mysql # aggregate syntax: 
query II rowsort label-137
SELECT - 72 AS col2, - MIN( - + 55 ) AS col2
----
-72
55

skipif mysql # not compatible
query II rowsort label-137
SELECT - 72 AS col2, - MIN ( - + 55 ) AS col2
----
-72
55

onlyif mysql # aggregate syntax: 
query I rowsort label-138
SELECT ALL COUNT( DISTINCT 92 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-138
SELECT ALL COUNT ( DISTINCT 92 ) AS col0
----
1

query I rowsort
SELECT ALL + 35 * 53
----
1855

query I rowsort
SELECT - 75 col0
----
-75

query I rowsort
SELECT + 35 + - 94
----
-59

query I rowsort
SELECT - 41 * - 24
----
984

query I rowsort
SELECT ALL + 45 * 93 AS col0
----
4185

onlyif mysql # DIV for integer division: 
query I rowsort label-144
SELECT - COALESCE ( 30, - 71 ) + 30 + 83 + 6 * 78 DIV - - 36 AS col0
----
96

skipif mysql # not compatible
query I rowsort label-144
SELECT - COALESCE ( 30, - 71 ) + 30 + 83 + 6 * 78 / - - 36 AS col0
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-145
SELECT - 88 DIV 19 col2
----
-4

skipif mysql # not compatible
query I rowsort label-145
SELECT - 88 / 19 col2
----
-4

query I rowsort
SELECT - 5 + - + 71 AS col2
----
-76

query I rowsort
SELECT + 70 * + 35
----
2450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-148
SELECT - CAST( - - COUNT( * ) AS SIGNED ) + - 85 * + - 11 - + - 26 + + 11 + - MAX( - ( - 20 ) ) + - 71 + - 49 - - 31 + + + 22 DIV - + 4 - + 10 AS col1
----
847

skipif mysql # not compatible
query I rowsort label-148
SELECT - CAST ( - - COUNT ( * ) AS INTEGER ) + - 85 * + - 11 - + - 26 + + 11 + - MAX ( - ( - 20 ) ) + - 71 + - 49 - - 31 + + + 22 / - + 4 - + 10 AS col1
----
847

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-149
SELECT ALL CAST( - 67 AS SIGNED ) AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-149
SELECT ALL CAST ( - 67 AS INTEGER ) AS col0
----
-67

query I rowsort
SELECT - 98 col0
----
-98

query I rowsort
SELECT DISTINCT + 27 * 40 col0
----
1080

query I rowsort
SELECT 38 col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-153
SELECT DISTINCT 64 + - COUNT( 56 ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-153
SELECT DISTINCT 64 + - COUNT ( 56 ) AS col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-154
SELECT ALL COUNT( ( 82 ) ) + - + 22 * - + 87
----
1915

skipif mysql # not compatible
query I rowsort label-154
SELECT ALL COUNT ( ( 82 ) ) + - + 22 * - + 87
----
1915

query I rowsort
SELECT - 38 + + 97 col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-156
SELECT + + SUM( ALL + 87 )
----
87

skipif mysql # not compatible
query I rowsort label-156
SELECT + + SUM ( ALL + 87 )
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-157
SELECT ALL 39 / 82 + - 63 + + + 64 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-157
SELECT ALL 39 / 82 + - 63 + + + 64 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-158
SELECT DISTINCT + 36 DIV + 21 + 0 col1
----
1

skipif mysql # not compatible
query I rowsort label-158
SELECT DISTINCT + 36 / + 21 + 0 col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-159
SELECT ALL - COUNT( * ) * + 49
----
-49

skipif mysql # not compatible
query I rowsort label-159
SELECT ALL - COUNT ( * ) * + 49
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-160
SELECT DISTINCT - + CAST( + 23 AS SIGNED ) * 65 + CAST( NULL AS SIGNED ) * - + 32 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-160
SELECT DISTINCT - + CAST ( + 23 AS INTEGER ) * 65 + CAST ( NULL AS INTEGER ) * - + 32 AS col0
----
NULL

query I rowsort
SELECT ALL + 70 AS col0
----
70

query I rowsort
SELECT DISTINCT + COALESCE ( + + 48, + 1 ) AS col2
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-163
SELECT - COUNT( * ) * + 88 DIV 49 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-163
SELECT - COUNT ( * ) * + 88 / 49 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-164
SELECT - + COUNT( * ) * + 17 + + CASE + NULLIF ( ( MAX( - 76 ) ), + - COALESCE ( - 91, - - 88 * + 42 - + COUNT( * ) + + - ( - + 97 ) + - COUNT( * ) + + COUNT( * ) ) * 89 - - 88 ) WHEN + 43 THEN - - 19 END * 63 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-164
SELECT - + COUNT ( * ) * + 17 + + CASE + NULLIF ( ( MAX ( - 76 ) ), + - COALESCE ( - 91, - - 88 * + 42 - + COUNT ( * ) + + - ( - + 97 ) + - COUNT ( * ) + + COUNT ( * ) ) * 89 - - 88 ) WHEN + 43 THEN - - 19 END * 63 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-165
SELECT ALL + - CAST( ( 16 ) AS SIGNED ) AS col0, 54
----
-16
54

skipif mysql # not compatible
query II rowsort label-165
SELECT ALL + - CAST ( ( 16 ) AS INTEGER ) AS col0, 54
----
-16
54

onlyif mysql # DIV for integer division: 
query I rowsort label-166
SELECT DISTINCT + 74 DIV + 4
----
18

skipif mysql # not compatible
query I rowsort label-166
SELECT DISTINCT + 74 / + 4
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-167
SELECT + COUNT( * ) DIV + - 20 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-167
SELECT + COUNT ( * ) / + - 20 AS col0
----
0

query I rowsort
SELECT + + 46 * + 94 + 31 - - 75 AS col1
----
4430

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-169
SELECT + 19 + - CAST( + + 28 AS SIGNED ) * + COALESCE ( + - NULLIF ( + 38, + + ( - 75 ) ), + - ( + COUNT( * ) ) - - 75 )
----
1083

skipif mysql # not compatible
query I rowsort label-169
SELECT + 19 + - CAST ( + + 28 AS INTEGER ) * + COALESCE ( + - NULLIF ( + 38, + + ( - 75 ) ), + - ( + COUNT ( * ) ) - - 75 )
----
1083

query I rowsort
SELECT + ( - + 74 )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-171
SELECT 72 * + + MAX( 47 )
----
3384

skipif mysql # not compatible
query I rowsort label-171
SELECT 72 * + + MAX ( 47 )
----
3384

query I rowsort
SELECT DISTINCT - 75
----
-75

query I rowsort
SELECT DISTINCT 7 * 53 * - 20 * - + 88 * + - 94 AS col1
----
-61378240

query I rowsort
SELECT ALL - 17 col1
----
-17

query I rowsort
SELECT DISTINCT 24 * 4
----
96

query I rowsort
SELECT DISTINCT 14 AS col2
----
14

query I rowsort
SELECT 62 * - 61 AS col0
----
-3782

query I rowsort
SELECT 68 + + 59 + + + 24 + - 89 * - 92 + + 85 AS col2
----
8424

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-179
SELECT CAST( SUM( + 87 ) AS SIGNED ) + 13 col2
----
100

skipif mysql # not compatible
query I rowsort label-179
SELECT CAST ( SUM ( + 87 ) AS INTEGER ) + 13 col2
----
100

onlyif mysql # aggregate syntax: 
query II rowsort label-180
SELECT 87 + + 24 AS col0, 46 - + COUNT( * )
----
111
45

skipif mysql # not compatible
query II rowsort label-180
SELECT 87 + + 24 AS col0, 46 - + COUNT ( * )
----
111
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-181
SELECT ALL 23 + - + NULLIF ( + + 17, + 38 * + 10 + 19 + - 80 ) + - - 18 * - + COUNT( * ) AS col0, - 81 - CAST( NULL AS SIGNED ) + + ( - 40 )
----
-12
NULL

skipif mysql # not compatible
query II rowsort label-181
SELECT ALL 23 + - + NULLIF ( + + 17, + 38 * + 10 + 19 + - 80 ) + - - 18 * - + COUNT ( * ) AS col0, - 81 - CAST ( NULL AS INTEGER ) + + ( - 40 )
----
-12
NULL

query I rowsort
SELECT 80 col0
----
80

query I rowsort
SELECT ALL + 40 + - 25 + - 71
----
-56

query I rowsort
SELECT DISTINCT 29 + + - 79
----
-50

query I rowsort
SELECT DISTINCT - 59 + - - 13
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-186
SELECT DISTINCT 22 + - + 54 DIV - COALESCE ( + 73, + + COUNT( + 51 ) ) * + + 38 + - 91 AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-186
SELECT DISTINCT 22 + - + 54 / - COALESCE ( + 73, + + COUNT ( + 51 ) ) * + + 38 + - 91 AS col2
----
-69

query I rowsort
SELECT DISTINCT 98 col1
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-188
SELECT 3 * - 80 AS col1, CAST( NULL AS SIGNED ) AS col1
----
-240
NULL

skipif mysql # not compatible
query II rowsort label-188
SELECT 3 * - 80 AS col1, CAST ( NULL AS INTEGER ) AS col1
----
-240
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-189
SELECT ALL + 69 DIV - + 63
----
-1

skipif mysql # not compatible
query I rowsort label-189
SELECT ALL + 69 / - + 63
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-190
SELECT - CASE - - 64 WHEN - ( + MAX( DISTINCT 97 ) ) - - 56 * + 53 + + - 25 + + 45 * + + 7 * CAST( - 11 AS SIGNED ) * + NULLIF ( - COUNT( * ), + MAX( ( - 15 ) ) * + 82 + 98 + 73 + - 41 / + 99 ) + + + 85 THEN - + COUNT( * ) * + + 42 + + 50 + 2 + - - 47 * - - 59 / + 96 * - + 95 * + + 58 * + 76 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-190
SELECT - CASE - - 64 WHEN - ( + MAX ( DISTINCT 97 ) ) - - 56 * + 53 + + - 25 + + 45 * + + 7 * CAST ( - 11 AS INTEGER ) * + NULLIF ( - COUNT ( * ), + MAX ( ( - 15 ) ) * + 82 + 98 + 73 + - 41 / + 99 ) + + + 85 THEN - + COUNT ( * ) * + + 42 + + 50 + 2 + - - 47 * - - 59 / + 96 * - + 95 * + + 58 * + 76 END AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 21 * + - 55 AS col2
----
1155

onlyif mysql # aggregate syntax: 
query I rowsort label-192
SELECT ALL + 63 + - CASE 16 WHEN + 22 * 13 - COUNT( * ) - ( - 70 ) THEN NULL ELSE + COUNT( * ) - - 77 END AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-192
SELECT ALL + 63 + - CASE 16 WHEN + 22 * 13 - COUNT ( * ) - ( - 70 ) THEN NULL ELSE + COUNT ( * ) - - 77 END AS col2
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-193
SELECT COUNT( ALL 20 ) * 46
----
46

skipif mysql # not compatible
query I rowsort label-193
SELECT COUNT ( ALL 20 ) * 46
----
46

query I rowsort
SELECT + 58 * + + 5 * 29 AS col1
----
8410

onlyif mysql # aggregate syntax: 
query I rowsort label-195
SELECT ALL - + COUNT( * ) * 34 col2
----
-34

skipif mysql # not compatible
query I rowsort label-195
SELECT ALL - + COUNT ( * ) * 34 col2
----
-34

query I rowsort
SELECT - - 49 AS col0
----
49

query I rowsort
SELECT DISTINCT + 64 AS col2
----
64

query I rowsort
SELECT DISTINCT - ( - + 27 ) * + 83 AS col1
----
2241

query I rowsort
SELECT DISTINCT - + CASE - - ( + - 76 ) WHEN - - 64 + - 61 THEN NULL ELSE + - 50 END
----
50

query I rowsort
SELECT + 92 AS col1
----
92

query I rowsort
SELECT ALL - - 99
----
99

query I rowsort
SELECT ALL - 15 AS col2
----
-15

query I rowsort
SELECT ALL - - 82
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-204
SELECT COUNT( DISTINCT - 28 )
----
1

skipif mysql # not compatible
query I rowsort label-204
SELECT COUNT ( DISTINCT - 28 )
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-205
SELECT - 3 DIV + 10 * - 17 + - + 38 + - 20, + 98 AS col2
----
-58
98

skipif mysql # not compatible
query II rowsort label-205
SELECT - 3 / + 10 * - 17 + - + 38 + - 20, + 98 AS col2
----
-58
98

onlyif mysql # aggregate syntax: 
query I rowsort label-206
SELECT COUNT( * ) * - MIN( 74 )
----
-74

skipif mysql # not compatible
query I rowsort label-206
SELECT COUNT ( * ) * - MIN ( 74 )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-207
SELECT + MIN( + + 98 ) * - ( - 19 ) + - - 8
----
1870

skipif mysql # not compatible
query I rowsort label-207
SELECT + MIN ( + + 98 ) * - ( - 19 ) + - - 8
----
1870

query I rowsort
SELECT ALL - + 48 AS col0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-209
SELECT + MIN( ( 34 ) )
----
34

skipif mysql # not compatible
query I rowsort label-209
SELECT + MIN ( ( 34 ) )
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-210
SELECT ALL - COUNT( * ) * - + ( + MAX( ALL + 6 ) ) AS col2, - 23
----
6
-23

skipif mysql # not compatible
query II rowsort label-210
SELECT ALL - COUNT ( * ) * - + ( + MAX ( ALL + 6 ) ) AS col2, - 23
----
6
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-211
SELECT + 32 + - + COALESCE ( + 27, - CASE - COUNT( ALL + - 38 ) WHEN - 55 * + COUNT( * ) * 80 - + 9 THEN ( 86 ) * + - CASE 59 WHEN - 64 THEN NULL WHEN - 75 * + 57 / + 40 + 57 THEN NULL ELSE + 26 * + COUNT( * ) * - 36 END + 77 WHEN 30 - 43 THEN NULL END + - + 51 ) + + + COUNT( * ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-211
SELECT + 32 + - + COALESCE ( + 27, - CASE - COUNT ( ALL + - 38 ) WHEN - 55 * + COUNT ( * ) * 80 - + 9 THEN ( 86 ) * + - CASE 59 WHEN - 64 THEN NULL WHEN - 75 * + 57 / + 40 + 57 THEN NULL ELSE + 26 * + COUNT ( * ) * - 36 END + 77 WHEN 30 - 43 THEN NULL END + - + 51 ) + + + COUNT ( * ) AS col0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-212
SELECT ALL ( + AVG ( 44 ) ) * - COUNT( * ) * - + CAST( + - CAST( NULL AS DECIMAL ) AS SIGNED ) * - + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-212
SELECT ALL ( + AVG ( 44 ) ) * - COUNT ( * ) * - + CAST ( + - CAST ( NULL AS REAL ) AS INTEGER ) * - + 53
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-213
SELECT - 41 * - + 49 + 69 + 73 * 67 - - - ( + ( - 32 ) ) DIV - 72 * + 40 AS col1
----
6969

skipif mysql # not compatible
query I rowsort label-213
SELECT - 41 * - + 49 + 69 + 73 * 67 - - - ( + ( - 32 ) ) / - 72 * + 40 AS col1
----
6969

query II rowsort
SELECT DISTINCT - 20, 90 + - 37 col0
----
-20
53

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-215
SELECT ALL - 23 AS col1, + 69 + - - CAST( + 55 AS SIGNED ) + - 69 * 26
----
-23
-1670

skipif mysql # not compatible
query II rowsort label-215
SELECT ALL - 23 AS col1, + 69 + - - CAST ( + 55 AS INTEGER ) + - 69 * 26
----
-23
-1670

query I rowsort
SELECT 72 - + ( + 3 )
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-217
SELECT DISTINCT 89 + - COUNT( DISTINCT + 53 ), 69 col1
----
88
69

skipif mysql # not compatible
query II rowsort label-217
SELECT DISTINCT 89 + - COUNT ( DISTINCT + 53 ), 69 col1
----
88
69

query II rowsort
SELECT DISTINCT - 20 AS col0, 46
----
-20
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-219
SELECT ALL 24 + + COUNT( * ) DIV - + 60 col0
----
24

skipif mysql # not compatible
query I rowsort label-219
SELECT ALL 24 + + COUNT ( * ) / - + 60 col0
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-220
SELECT MAX( - 46 ) * + 98 AS col2, 94 + + - 32 + + COUNT( * ) * 70
----
-4508
132

skipif mysql # not compatible
query II rowsort label-220
SELECT MAX ( - 46 ) * + 98 AS col2, 94 + + - 32 + + COUNT ( * ) * 70
----
-4508
132

query II rowsort
SELECT - 26 AS col2, - 94 + - - 30 AS col0
----
-26
-64

query I rowsort
SELECT DISTINCT - 27 + - + 87
----
-114

query I rowsort
SELECT ALL + 72 + - + 73 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-224
SELECT ALL 52 * - - COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-224
SELECT ALL 52 * - - COUNT ( * )
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-225
SELECT SUM( 94 ) - - 43 * - + ( + 10 ), - COUNT( * ) col1
----
-336
-1

skipif mysql # not compatible
query II rowsort label-225
SELECT SUM ( 94 ) - - 43 * - + ( + 10 ), - COUNT ( * ) col1
----
-336
-1

query I rowsort
SELECT DISTINCT 81 * 91
----
7371

onlyif mysql # aggregate syntax: 
query I rowsort label-227
SELECT ALL + COUNT( * ) + + - 26 * + 65 AS col0
----
-1689

skipif mysql # not compatible
query I rowsort label-227
SELECT ALL + COUNT ( * ) + + - 26 * + 65 AS col0
----
-1689

query I rowsort
SELECT 77 + - 61
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-229
SELECT NULLIF ( + 59, ( + 68 ) ) * - ( + + COUNT( * ) ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-229
SELECT NULLIF ( + 59, ( + 68 ) ) * - ( + + COUNT ( * ) ) AS col2
----
-59

query I rowsort
SELECT - 2 col2
----
-2

query I rowsort
SELECT ALL 10 + + 72 AS col0
----
82

query I rowsort
SELECT 93 + 73 AS col2
----
166

query I rowsort
SELECT ALL 13 col0
----
13

query I rowsort
SELECT 12 + 0
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-235
SELECT DISTINCT + COUNT( * ) DIV 44 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-235
SELECT DISTINCT + COUNT ( * ) / 44 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-236
SELECT ( - 13 ) + + 50 DIV 75
----
-13

skipif mysql # not compatible
query I rowsort label-236
SELECT ( - 13 ) + + 50 / 75
----
-13

query I rowsort
SELECT ALL + NULLIF ( + 30, 0 ) - 91 AS col2
----
-61

query I rowsort
SELECT ALL CASE - 31 WHEN 32 THEN - 82 END / + 17 AS col1
----
NULL

query I rowsort
SELECT 37 + - 70 AS col2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-240
SELECT DISTINCT ( 41 ) * + COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-240
SELECT DISTINCT ( 41 ) * + COUNT ( * )
----
41

query I rowsort
SELECT ( 9 ) * + 35 AS col1
----
315

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-242
SELECT CAST( NULL AS SIGNED ) / - ( 32 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-242
SELECT CAST ( NULL AS INTEGER ) / - ( 32 ) AS col2
----
NULL

query I rowsort
SELECT 53 * 15
----
795

onlyif mysql # aggregate syntax: 
query I rowsort label-244
SELECT DISTINCT + COUNT( * ) * 28 col0
----
28

skipif mysql # not compatible
query I rowsort label-244
SELECT DISTINCT + COUNT ( * ) * 28 col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-245
SELECT + NULLIF ( 5, 7 * - 12 + NULLIF ( - ( COUNT( 66 ) ) + 13 * + COUNT( * ), 59 ) ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-245
SELECT + NULLIF ( 5, 7 * - 12 + NULLIF ( - ( COUNT ( 66 ) ) + 13 * + COUNT ( * ), 59 ) ) AS col1
----
5

query I rowsort
SELECT 63 * 65 AS col2
----
4095

query I rowsort
SELECT NULLIF ( - ( 89 ), 16 )
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-248
SELECT - COUNT( * ) DIV 35 + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-248
SELECT - COUNT ( * ) / 35 + COUNT ( * )
----
1

query I rowsort
SELECT ALL + ( + 83 )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-250
SELECT ALL MIN( 98 ) * - 92 col0
----
-9016

skipif mysql # not compatible
query I rowsort label-250
SELECT ALL MIN ( 98 ) * - 92 col0
----
-9016

onlyif mysql # aggregate syntax: 
query I rowsort label-251
SELECT - 72 * + COUNT( * )
----
-72

skipif mysql # not compatible
query I rowsort label-251
SELECT - 72 * + COUNT ( * )
----
-72

query I rowsort
SELECT ALL + COALESCE ( 83, 79, - 8 * 16 ) AS col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-253
SELECT DISTINCT + COUNT( + 79 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-253
SELECT DISTINCT + COUNT ( + 79 ) AS col1
----
1

query I rowsort
SELECT ALL + 98 col1
----
98

query I rowsort
SELECT ALL 52 * + 29 + + 80
----
1588

query I rowsort
SELECT + 65 * - ( 48 ) + 71
----
-3049

query I rowsort
SELECT - 36 * + 5 AS col2
----
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-258
SELECT - NULLIF ( - NULLIF ( + 97, 75 * + 91 ), + 87 ) * COUNT( DISTINCT - 41 + 83 )
----
97

skipif mysql # not compatible
query I rowsort label-258
SELECT - NULLIF ( - NULLIF ( + 97, 75 * + 91 ), + 87 ) * COUNT ( DISTINCT - 41 + 83 )
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-259
SELECT ALL 14 * 72 + 3 DIV 30
----
1008

skipif mysql # not compatible
query I rowsort label-259
SELECT ALL 14 * 72 + 3 / 30
----
1008

query I rowsort
SELECT + 15 AS col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-261
SELECT ALL 20 * + COALESCE ( - 36, - 44 * - COUNT( * ) + 53, - 36 ) + 1 AS col1
----
-719

skipif mysql # not compatible
query I rowsort label-261
SELECT ALL 20 * + COALESCE ( - 36, - 44 * - COUNT ( * ) + 53, - 36 ) + 1 AS col1
----
-719

query I rowsort
SELECT - 30 + - 92
----
-122

query I rowsort
SELECT DISTINCT + 29
----
29

query I rowsort
SELECT - NULLIF ( 2, 90 ) + 54
----
52

query I rowsort
SELECT + 12 - + 96
----
-84

query I rowsort
SELECT DISTINCT 64 * - 87 + 84 AS col2
----
-5484

query I rowsort
SELECT ( 56 ) * 37 + + 72
----
2144

onlyif mysql # aggregate syntax: 
query I rowsort label-268
SELECT ALL + 86 + - COUNT( * ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-268
SELECT ALL + 86 + - COUNT ( * ) AS col0
----
85

query I rowsort
SELECT DISTINCT + 55
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-270
SELECT ALL CASE - COUNT( * ) WHEN COUNT( * ) THEN + 66 + + CASE WHEN NOT + 33 - + 62 IS NOT NULL THEN NULL ELSE 69 END WHEN 60 THEN NULL END + + 96 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-270
SELECT ALL CASE - COUNT ( * ) WHEN COUNT ( * ) THEN + 66 + + CASE WHEN NOT + 33 - + 62 IS NOT NULL THEN NULL ELSE 69 END WHEN 60 THEN NULL END + + 96 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-271
SELECT + 88 * + COUNT( * ) + 94
----
182

skipif mysql # not compatible
query I rowsort label-271
SELECT + 88 * + COUNT ( * ) + 94
----
182

query I rowsort
SELECT DISTINCT + 68 * 47
----
3196

query I rowsort
SELECT ALL NULLIF ( + 47, + 59 ) AS col0
----
47

query I rowsort
SELECT + 11 * + 95
----
1045

onlyif mysql # aggregate syntax: 
query I rowsort label-275
SELECT DISTINCT ( + COUNT( DISTINCT - 43 ) )
----
1

skipif mysql # not compatible
query I rowsort label-275
SELECT DISTINCT ( + COUNT ( DISTINCT - 43 ) )
----
1

query I rowsort
SELECT ALL + 41 - ( 8 ) AS col2
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-277
SELECT - CAST( NULL AS SIGNED ) * 90
----
NULL

skipif mysql # not compatible
query I rowsort label-277
SELECT - CAST ( NULL AS INTEGER ) * 90
----
NULL

query I rowsort
SELECT + 5 + 26
----
31

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-279
SELECT - NULLIF ( 58, - 87 ) * - CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-279
SELECT - NULLIF ( 58, - 87 ) * - CAST ( NULL AS REAL ) col0
----
NULL

query I rowsort
SELECT - NULLIF ( 24, - 74 ) AS col2
----
-24

query I rowsort
SELECT - - 89 AS col2
----
89

query I rowsort
SELECT DISTINCT 81
----
81

query I rowsort
SELECT DISTINCT 32 * 54
----
1728

onlyif mysql # aggregate syntax: 
query I rowsort label-284
SELECT COUNT( + 81 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-284
SELECT COUNT ( + 81 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-285
SELECT - 59 * - COUNT( * )
----
59

skipif mysql # not compatible
query I rowsort label-285
SELECT - 59 * - COUNT ( * )
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-286
SELECT + 47 * + CASE 68 WHEN 22 + - NULLIF ( - 95, 2 ) * 69 THEN - CAST( 53 AS SIGNED ) ELSE + 38 END AS col2
----
1786

skipif mysql # not compatible
query I rowsort label-286
SELECT + 47 * + CASE 68 WHEN 22 + - NULLIF ( - 95, 2 ) * 69 THEN - CAST ( 53 AS INTEGER ) ELSE + 38 END AS col2
----
1786

query I rowsort
SELECT + 87 - + 92 AS col2
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-288
SELECT - 56 DIV COALESCE ( - 68 + 70, + COUNT( * ) - 67 DIV - MAX( ALL 94 ) )
----
-28

skipif mysql # not compatible
query I rowsort label-288
SELECT - 56 / COALESCE ( - 68 + 70, + COUNT ( * ) - 67 / - MAX ( ALL 94 ) )
----
-28

query I rowsort
SELECT ALL 33 AS col1
----
33

query I rowsort
SELECT DISTINCT + - 44 col2
----
-44

query I rowsort
SELECT + 14 * + 26 AS col2
----
364

query I rowsort
SELECT ALL + 27 col2
----
27

query I rowsort
SELECT DISTINCT + - 88
----
-88

query I rowsort
SELECT ALL + ( 51 )
----
51

query I rowsort
SELECT + ( - 52 ) AS col0
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-296
SELECT DISTINCT 98 DIV + 3 + COUNT( * ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-296
SELECT DISTINCT 98 / + 3 + COUNT ( * ) AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-297
SELECT - 25 * COUNT( * )
----
-25

skipif mysql # not compatible
query I rowsort label-297
SELECT - 25 * COUNT ( * )
----
-25

query I rowsort
SELECT ( - 80 )
----
-80

query I rowsort
SELECT - 42 + - - 55
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-300
SELECT DISTINCT COUNT( * ) DIV + - 16 + NULLIF ( + 69 + NULLIF ( + 58, ( - 91 ) ), 18 ) AS col1
----
127

skipif mysql # not compatible
query I rowsort label-300
SELECT DISTINCT COUNT ( * ) / + - 16 + NULLIF ( + 69 + NULLIF ( + 58, ( - 91 ) ), 18 ) AS col1
----
127

onlyif mysql # DIV for integer division: 
query I rowsort label-301
SELECT ALL 10 DIV 7 * 12 + 19
----
31

skipif mysql # not compatible
query I rowsort label-301
SELECT ALL 10 / 7 * 12 + 19
----
31

query I rowsort
SELECT + ( 65 ) AS col2
----
65

query I rowsort
SELECT ALL COALESCE ( ( - ( 68 ) ), 12, + 3, 67 ) * + 14 + 43
----
-909

onlyif mysql # aggregate syntax: 
query I rowsort label-304
SELECT + 89 + + COUNT( * )
----
90

skipif mysql # not compatible
query I rowsort label-304
SELECT + 89 + + COUNT ( * )
----
90

query I rowsort
SELECT + 13 col1
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-306
SELECT + 6 DIV COUNT( 45 )
----
6

skipif mysql # not compatible
query I rowsort label-306
SELECT + 6 / COUNT ( 45 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-307
SELECT DISTINCT 79 * + COUNT( * ) + - 24
----
55

skipif mysql # not compatible
query I rowsort label-307
SELECT DISTINCT 79 * + COUNT ( * ) + - 24
----
55

query I rowsort
SELECT ALL + COALESCE ( + - 60, - 31 * - 14 ) AS col2
----
-60

query I rowsort
SELECT ( + ( - 9 ) ) col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-310
SELECT DISTINCT ( - 47 ) * + 14 + MIN( 52 ) AS col2
----
-606

skipif mysql # not compatible
query I rowsort label-310
SELECT DISTINCT ( - 47 ) * + 14 + MIN ( 52 ) AS col2
----
-606

query I rowsort
SELECT DISTINCT 6 * 35 AS col1
----
210

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-312
SELECT ALL + 24 * + 97 + COALESCE ( CASE + NULLIF ( 61, 37 ) WHEN CASE - COUNT( * ) WHEN + 61 + 46 THEN NULL WHEN - COUNT( * ) THEN NULL WHEN - 30 THEN 33 END THEN 65 END, + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-312
SELECT ALL + 24 * + 97 + COALESCE ( CASE + NULLIF ( 61, 37 ) WHEN CASE - COUNT ( * ) WHEN + 61 + 46 THEN NULL WHEN - COUNT ( * ) THEN NULL WHEN - 30 THEN 33 END THEN 65 END, + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 35 AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-314
SELECT - 11 - - - 65 * COUNT( ALL 59 - + 16 )
----
-76

skipif mysql # not compatible
query I rowsort label-314
SELECT - 11 - - - 65 * COUNT ( ALL 59 - + 16 )
----
-76

query I rowsort
SELECT NULLIF ( ( 75 ), 84 * 28 )
----
75

query I rowsort
SELECT ALL 40 * - 24 - 88 AS col1
----
-1048

query I rowsort
SELECT ALL + ( + + COALESCE ( 86, + 16 ) )
----
86

query I rowsort
SELECT NULLIF ( - 95, - ( - NULLIF ( 89, 23 / + 72 ) ) + + 10 ) AS col0
----
-95

query I rowsort
SELECT - NULLIF ( 56, 44 - 56 )
----
-56

query I rowsort
SELECT ALL - 84 * + 78 * - 32
----
209664

onlyif mysql # aggregate syntax: 
query I rowsort label-321
SELECT - SUM( ALL - 60 ) * + 54
----
3240

skipif mysql # not compatible
query I rowsort label-321
SELECT - SUM ( ALL - 60 ) * + 54
----
3240

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-322
SELECT DISTINCT - - COUNT( ALL CAST( NULL AS DECIMAL ) ) * 36
----
0

skipif mysql # not compatible
query I rowsort label-322
SELECT DISTINCT - - COUNT ( ALL CAST ( NULL AS REAL ) ) * 36
----
0

query I rowsort
SELECT - - NULLIF ( - 6, - 87 + - 43 ) * - 21
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-324
SELECT ALL - ( + - COUNT( * ) ) * + 1
----
1

skipif mysql # not compatible
query I rowsort label-324
SELECT ALL - ( + - COUNT ( * ) ) * + 1
----
1

query I rowsort
SELECT DISTINCT + 8 col0
----
8

query I rowsort
SELECT ALL 5 AS col0
----
5

query I rowsort
SELECT DISTINCT + 85 AS col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-328
SELECT + COUNT( * ) * - - NULLIF ( + COUNT( * ), 51 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-328
SELECT + COUNT ( * ) * - - NULLIF ( + COUNT ( * ), 51 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-329
SELECT SUM( ALL - + ( - ( ( 32 ) ) ) ) + - 46 * 86
----
-3924

skipif mysql # not compatible
query I rowsort label-329
SELECT SUM ( ALL - + ( - ( ( 32 ) ) ) ) + - 46 * 86
----
-3924

query I rowsort
SELECT ALL - 99 + - - 34
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-331
SELECT + 84 + + - CASE 62 WHEN - COUNT( * ) THEN - 2 WHEN 41 THEN + 7 / - MAX( + 91 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-331
SELECT + 84 + + - CASE 62 WHEN - COUNT ( * ) THEN - 2 WHEN 41 THEN + 7 / - MAX ( + 91 ) END
----
NULL

query I rowsort
SELECT ALL - 49 AS col0
----
-49

query I rowsort
SELECT - 93 * - - 52
----
-4836

query I rowsort
SELECT + 11 + + + 93
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-335
SELECT ALL MAX( 73 ) + COUNT( * ) * - 51
----
22

skipif mysql # not compatible
query I rowsort label-335
SELECT ALL MAX ( 73 ) + COUNT ( * ) * - 51
----
22

query I rowsort
SELECT 29 + + 14 AS col0
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-337
SELECT ALL 60 + - + NULLIF ( ( - 96 ), 16 ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-337
SELECT ALL 60 + - + NULLIF ( ( - 96 ), 16 ) + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - NULLIF ( + 52, 57 + 72 )
----
-52

query I rowsort
SELECT ALL 7 + + 60 AS col0
----
67

query I rowsort
SELECT DISTINCT - 20 AS col2
----
-20

query I rowsort
SELECT + 55 col1
----
55

query I rowsort
SELECT 93 col1
----
93

query II rowsort
SELECT 63 AS col2, - 62 AS col2
----
63
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-344
SELECT ALL 71 + - + COUNT( * ) * - 88 + COUNT( * ) AS col2
----
160

skipif mysql # not compatible
query I rowsort label-344
SELECT ALL 71 + - + COUNT ( * ) * - 88 + COUNT ( * ) AS col2
----
160

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-345
SELECT DISTINCT - 45, CAST( NULL AS DECIMAL ) AS col1
----
-45
NULL

skipif mysql # not compatible
query II rowsort label-345
SELECT DISTINCT - 45, CAST ( NULL AS REAL ) AS col1
----
-45
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-346
SELECT DISTINCT 94 + + CAST( - + 26 AS SIGNED )
----
68

skipif mysql # not compatible
query I rowsort label-346
SELECT DISTINCT 94 + + CAST ( - + 26 AS INTEGER )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-347
SELECT ALL - MIN( DISTINCT + 50 )
----
-50

skipif mysql # not compatible
query I rowsort label-347
SELECT ALL - MIN ( DISTINCT + 50 )
----
-50

query I rowsort
SELECT 79 col1
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-349
SELECT 3 + + + CAST( NULL AS SIGNED ) * + - 53 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-349
SELECT 3 + + + CAST ( NULL AS INTEGER ) * + - 53 col2
----
NULL

query I rowsort
SELECT DISTINCT 59 - + - 57
----
116

query II rowsort
SELECT + 78 AS col1, 51
----
78
51

onlyif mysql # aggregate syntax: 
query I rowsort label-352
SELECT 87 * + + COUNT( * )
----
87

skipif mysql # not compatible
query I rowsort label-352
SELECT 87 * + + COUNT ( * )
----
87

query I rowsort
SELECT 22 * + CASE 68 WHEN 80 THEN NULL WHEN + 6 THEN + 43 END AS col0
----
NULL

query II rowsort
SELECT 17 AS col2, 16 * - - 11 * 60 AS col0
----
17
10560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-355
SELECT ALL + ( - 34 ) * - - MIN( 83 ) * 67 + CAST( - 60 + - 57 * - COUNT( * ) AS SIGNED )
----
-189077

skipif mysql # not compatible
query I rowsort label-355
SELECT ALL + ( - 34 ) * - - MIN ( 83 ) * 67 + CAST ( - 60 + - 57 * - COUNT ( * ) AS INTEGER )
----
-189077

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-356
SELECT CAST( NULL AS SIGNED ) + - 53 + - - MIN( DISTINCT + 61 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-356
SELECT CAST ( NULL AS INTEGER ) + - 53 + - - MIN ( DISTINCT + 61 ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-357
SELECT ALL 58 * ( + COUNT( 90 ) )
----
58

skipif mysql # not compatible
query I rowsort label-357
SELECT ALL 58 * ( + COUNT ( 90 ) )
----
58

query I rowsort
SELECT 51 * + + 85 + + 8
----
4343

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

query I rowsort
SELECT ALL 36 * 62 * - - 0 - 59
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-361
SELECT 33 * + - COALESCE ( 60, 89 + + 2 ) + - CAST( 7 AS SIGNED )
----
-1987

skipif mysql # not compatible
query I rowsort label-361
SELECT 33 * + - COALESCE ( 60, 89 + + 2 ) + - CAST ( 7 AS INTEGER )
----
-1987

onlyif mysql # DIV for integer division: 
query II rowsort label-362
SELECT 11 AS col2, 13 + + 5 DIV 38 AS col1
----
11
13

skipif mysql # not compatible
query II rowsort label-362
SELECT 11 AS col2, 13 + + 5 / 38 AS col1
----
11
13

onlyif mysql # aggregate syntax: 
query I rowsort label-363
SELECT ALL COALESCE ( + COUNT( + + 33 ), - 77 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-363
SELECT ALL COALESCE ( + COUNT ( + + 33 ), - 77 ) AS col2
----
1

query I rowsort
SELECT - 32 * + 91 * + 25 AS col0
----
-72800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-365
SELECT - ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-365
SELECT - ( - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT 94 AS col1
----
94

query I rowsort
SELECT ALL - - 98 + 58 AS col1
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-368
SELECT DISTINCT NULLIF ( + 39, + COUNT( * ) * 72 )
----
39

skipif mysql # not compatible
query I rowsort label-368
SELECT DISTINCT NULLIF ( + 39, + COUNT ( * ) * 72 )
----
39

query I rowsort
SELECT - + 20 AS col0
----
-20

query I rowsort
SELECT ALL + 37 + - + 72
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-371
SELECT - + 51 AS col1, CAST( NULL AS SIGNED ) AS col1
----
-51
NULL

skipif mysql # not compatible
query II rowsort label-371
SELECT - + 51 AS col1, CAST ( NULL AS INTEGER ) AS col1
----
-51
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-372
SELECT ALL - - COALESCE ( - - CASE + + 10 WHEN 2 * + COUNT( * ) - - 59 * - 52 THEN CAST( 16 AS SIGNED ) * - 83 WHEN + 14 THEN NULL WHEN 6 * 55 + 10 THEN NULL ELSE 58 + + CAST( NULL AS SIGNED ) END, 0 DIV + 59 ) + - 42
----
-42

skipif mysql # not compatible
query I rowsort label-372
SELECT ALL - - COALESCE ( - - CASE + + 10 WHEN 2 * + COUNT ( * ) - - 59 * - 52 THEN CAST ( 16 AS INTEGER ) * - 83 WHEN + 14 THEN NULL WHEN 6 * 55 + 10 THEN NULL ELSE 58 + + CAST ( NULL AS INTEGER ) END, 0 / + 59 ) + - 42
----
-42

query I rowsort
SELECT 97 * - 5 + + 6
----
-479

query II rowsort
SELECT DISTINCT - 84, + 13 AS col0
----
-84
13

query I rowsort
SELECT - ( 43 ) AS col0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-376
SELECT 77 * + ( + + MAX( ALL 51 ) )
----
3927

skipif mysql # not compatible
query I rowsort label-376
SELECT 77 * + ( + + MAX ( ALL 51 ) )
----
3927

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-377
SELECT - CAST( NULL AS SIGNED ) col1, + 46 AS col1
----
NULL
46

skipif mysql # not compatible
query II rowsort label-377
SELECT - CAST ( NULL AS INTEGER ) col1, + 46 AS col1
----
NULL
46

query I rowsort
SELECT 62 - - 70 * 38 AS col0
----
2722

query I rowsort
SELECT ALL + 54 + 69
----
123

query I rowsort
SELECT DISTINCT 6
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-381
SELECT DISTINCT 52 * + CASE + 86 WHEN 80 THEN CAST( - COALESCE ( 43, COUNT( * ), 65 ) AS SIGNED ) WHEN 32 THEN + 35 * - 69 END - - 87 * + 88 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-381
SELECT DISTINCT 52 * + CASE + 86 WHEN 80 THEN CAST ( - COALESCE ( 43, COUNT ( * ), 65 ) AS INTEGER ) WHEN 32 THEN + 35 * - 69 END - - 87 * + 88 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-382
SELECT ALL + 3 * NULLIF ( CASE + 33 WHEN - 47 + + 60 THEN 10 WHEN + 50 * + COUNT( * ) THEN NULL WHEN + 76 * 11 THEN + 49 + - 54 END, + 96 ) - + 80 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-382
SELECT ALL + 3 * NULLIF ( CASE + 33 WHEN - 47 + + 60 THEN 10 WHEN + 50 * + COUNT ( * ) THEN NULL WHEN + 76 * 11 THEN + 49 + - 54 END, + 96 ) - + 80 AS col0
----
NULL

query I rowsort
SELECT ALL - 23 AS col0
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-384
SELECT ALL - NULLIF ( - + 75, CASE COUNT( * ) WHEN CAST( 59 AS SIGNED ) THEN NULL ELSE ( - 11 ) END ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-384
SELECT ALL - NULLIF ( - + 75, CASE COUNT ( * ) WHEN CAST ( 59 AS INTEGER ) THEN NULL ELSE ( - 11 ) END ) AS col2
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-385
SELECT - 77 DIV - + NULLIF ( - - 91, + 57 * - 52 ) * 30 + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-385
SELECT - 77 / - + NULLIF ( - - 91, + 57 * - 52 ) * 30 + COUNT ( * )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-386
SELECT DISTINCT - ( - CAST( NULL AS SIGNED ) ), 41 AS col1
----
NULL
41

skipif mysql # not compatible
query II rowsort label-386
SELECT DISTINCT - ( - CAST ( NULL AS INTEGER ) ), 41 AS col1
----
NULL
41

query I rowsort
SELECT ALL 18 * + 20 AS col2
----
360

onlyif mysql # aggregate syntax: 
query II rowsort label-388
SELECT MAX( + - 82 ), 7 AS col1
----
-82
7

skipif mysql # not compatible
query II rowsort label-388
SELECT MAX ( + - 82 ), 7 AS col1
----
-82
7

query I rowsort
SELECT DISTINCT 53 * + 25 AS col0
----
1325

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-390
SELECT 32 * + ( + + COUNT( * ) ) * + - 52 - CASE COALESCE ( - 5, 25 + - 2 ) - + 66 WHEN + MAX( DISTINCT + CAST( NULL AS SIGNED ) ) THEN NULL WHEN 93 / + 38 THEN CAST( + 51 AS SIGNED ) + ( 72 ) * - 2 WHEN 61 THEN ( - 61 ) ELSE + 60 END AS col2
----
-1724

skipif mysql # not compatible
query I rowsort label-390
SELECT 32 * + ( + + COUNT ( * ) ) * + - 52 - CASE COALESCE ( - 5, 25 + - 2 ) - + 66 WHEN + MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) THEN NULL WHEN 93 / + 38 THEN CAST ( + 51 AS INTEGER ) + ( 72 ) * - 2 WHEN 61 THEN ( - 61 ) ELSE + 60 END AS col2
----
-1724

onlyif mysql # aggregate syntax: 
query I rowsort label-391
SELECT MAX( + 1 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-391
SELECT MAX ( + 1 ) AS col0
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-392
SELECT ALL - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-392
SELECT ALL - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-393
SELECT ALL - COUNT( - 58 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-393
SELECT ALL - COUNT ( - 58 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-394
SELECT + MAX( 81 ), ( 44 ) + 23 AS col0
----
81
67

skipif mysql # not compatible
query II rowsort label-394
SELECT + MAX ( 81 ), ( 44 ) + 23 AS col0
----
81
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-395
SELECT + ( NULLIF ( + COALESCE ( - - MAX( CAST( NULL AS SIGNED ) ), 18 ), + 89 ) )
----
18

skipif mysql # not compatible
query I rowsort label-395
SELECT + ( NULLIF ( + COALESCE ( - - MAX ( CAST ( NULL AS INTEGER ) ), 18 ), + 89 ) )
----
18

query I rowsort
SELECT ALL - ( - 73 )
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-397
SELECT ALL + COUNT( * ) DIV - 5 * + 50 + + - 19 - COUNT( 39 )
----
-20

skipif mysql # not compatible
query I rowsort label-397
SELECT ALL + COUNT ( * ) / - 5 * + 50 + + - 19 - COUNT ( 39 )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-398
SELECT 63 * - COUNT( * ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-398
SELECT 63 * - COUNT ( * ) AS col0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-399
SELECT + + MAX( + + 7 )
----
7

skipif mysql # not compatible
query I rowsort label-399
SELECT + + MAX ( + + 7 )
----
7

query I rowsort
SELECT + CASE - - COALESCE ( + + 52, - 44 ) WHEN - 89 - 73 THEN - 83 / + 64 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-401
SELECT ALL MAX( - 74 ) + COUNT( * )
----
-73

skipif mysql # not compatible
query I rowsort label-401
SELECT ALL MAX ( - 74 ) + COUNT ( * )
----
-73

query I rowsort
SELECT + 38 * - ( - 51 ) - - NULLIF ( + 94, 89 + - 71 ) AS col1
----
2032

onlyif mysql # aggregate syntax: 
query I rowsort label-403
SELECT + 53 * + + ( COUNT( * ) ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-403
SELECT + 53 * + + ( COUNT ( * ) ) AS col0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-404
SELECT ALL + - COUNT( * ) + - - 0 + - - 42 * + - 15
----
-631

skipif mysql # not compatible
query I rowsort label-404
SELECT ALL + - COUNT ( * ) + - - 0 + - - 42 * + - 15
----
-631

query I rowsort
SELECT DISTINCT + 29 + - + 57 + + - 23
----
-51

query I rowsort
SELECT ALL - 66 + + ( - 67 ) - + 35 + - 3 AS col0
----
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-407
SELECT ALL COUNT( ALL - 7 ) + - COUNT( * ) * + + COUNT( * ) * 6 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-407
SELECT ALL COUNT ( ALL - 7 ) + - COUNT ( * ) * + + COUNT ( * ) * 6 AS col0
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-408
SELECT DISTINCT - CAST( 47 AS SIGNED ) AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-408
SELECT DISTINCT - CAST ( 47 AS INTEGER ) AS col0
----
-47

query I rowsort
SELECT + - 16 + 65 col0
----
49

query I rowsort
SELECT - - 11 - - - NULLIF ( - 46, + 79 ) * - 11
----
-495

onlyif mysql # aggregate syntax: 
query I rowsort label-411
SELECT ALL - COUNT( * ) + - - MIN( - 63 ) col2
----
-64

skipif mysql # not compatible
query I rowsort label-411
SELECT ALL - COUNT ( * ) + - - MIN ( - 63 ) col2
----
-64

query I rowsort
SELECT DISTINCT - 71 AS col2
----
-71

query I rowsort
SELECT + + 41 + - 89 AS col0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-414
SELECT + MAX( DISTINCT - CASE WHEN NOT - 65 <> + 0 / 52 + - 12 THEN 66 + 22 END ) + 98 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-414
SELECT + MAX ( DISTINCT - CASE WHEN NOT - 65 <> + 0 / 52 + - 12 THEN 66 + 22 END ) + 98 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-415
SELECT + MIN( DISTINCT + 96 ) + + - 47 + + 26 AS col2
----
75

skipif mysql # not compatible
query I rowsort label-415
SELECT + MIN ( DISTINCT + 96 ) + + - 47 + + 26 AS col2
----
75

query I rowsort
SELECT - 39 * - 70 * 88 AS col0
----
240240

onlyif mysql # aggregate syntax: 
query I rowsort label-417
SELECT - SUM( DISTINCT + 22 ) + - COUNT( * )
----
-23

skipif mysql # not compatible
query I rowsort label-417
SELECT - SUM ( DISTINCT + 22 ) + - COUNT ( * )
----
-23

query I rowsort
SELECT ALL CASE + - 34 WHEN + - 86 * - 57 THEN 47 * COALESCE ( - 93, - 78, 72 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-419
SELECT - COUNT( * ) + 83 - + 30 + - 74 * 70 * COUNT( * ) AS col0
----
-5128

skipif mysql # not compatible
query I rowsort label-419
SELECT - COUNT ( * ) + 83 - + 30 + - 74 * 70 * COUNT ( * ) AS col0
----
-5128

query I rowsort
SELECT ALL + 22 - - 75 - + ( - 37 ) - - 15 + 24
----
173

query I rowsort
SELECT DISTINCT + 41 - + - 95 AS col2
----
136

query I rowsort
SELECT - ( - 79 ) AS col2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-423
SELECT - 12 + 15 * ( + 15 ) * - COUNT( * )
----
-237

skipif mysql # not compatible
query I rowsort label-423
SELECT - 12 + 15 * ( + 15 ) * - COUNT ( * )
----
-237

query I rowsort
SELECT - 30 * - + 43
----
1290

query I rowsort
SELECT ( - 98 ) AS col2
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-426
SELECT + 74 AS col0, - CAST( - + 96 AS SIGNED ) AS col2
----
74
96

skipif mysql # not compatible
query II rowsort label-426
SELECT + 74 AS col0, - CAST ( - + 96 AS INTEGER ) AS col2
----
74
96

onlyif mysql # DIV for integer division: 
query I rowsort label-427
SELECT + 82 DIV + 41
----
2

skipif mysql # not compatible
query I rowsort label-427
SELECT + 82 / + 41
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-428
SELECT - NULLIF ( + 60, SUM( DISTINCT - 25 ) * - COUNT( * ) - - 99 ) * - 63 + + 84 * 74
----
9996

skipif mysql # not compatible
query I rowsort label-428
SELECT - NULLIF ( + 60, SUM ( DISTINCT - 25 ) * - COUNT ( * ) - - 99 ) * - 63 + + 84 * 74
----
9996

query II rowsort
SELECT + 29, 68 AS col1
----
29
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-430
SELECT + 32, + COUNT( * ) DIV + 22 AS col1
----
32
0

skipif mysql # not compatible
query II rowsort label-430
SELECT + 32, + COUNT ( * ) / + 22 AS col1
----
32
0

query I rowsort
SELECT ALL + 47 AS col2
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-432
SELECT ALL CAST( NULL AS SIGNED ) * 14
----
NULL

skipif mysql # not compatible
query I rowsort label-432
SELECT ALL CAST ( NULL AS INTEGER ) * 14
----
NULL

query I rowsort
SELECT - 34 * + - 89 AS col2
----
3026

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-434
SELECT + 40 + - CAST( NULL AS SIGNED ) + 86 + - 66 + - 86 + + 47 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-434
SELECT + 40 + - CAST ( NULL AS INTEGER ) + 86 + - 66 + - 86 + + 47 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-435
SELECT NULLIF ( - + 10, + + 17 - + - 40 - + - COUNT( * ) )
----
-10

skipif mysql # not compatible
query I rowsort label-435
SELECT NULLIF ( - + 10, + + 17 - + - 40 - + - COUNT ( * ) )
----
-10

query I rowsort
SELECT + 84 * - 29 + - - 39 - 50 col2
----
-2447

query II rowsort
SELECT ALL + + 60 * - 26 + - 23 AS col1, - 8 AS col0
----
-1583
-8

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-438
SELECT + 35 * + - 13 - + ( + + CASE 75 WHEN - AVG ( 77 ) THEN + CAST( NULL AS DECIMAL ) END ) * - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-438
SELECT + 35 * + - 13 - + ( + + CASE 75 WHEN - AVG ( 77 ) THEN + CAST ( NULL AS REAL ) END ) * - 66
----
NULL

query I rowsort
SELECT ALL + - 98 AS col2
----
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-440
SELECT - COUNT( * ) * 39 + - COUNT( * ) DIV 40
----
-39

skipif mysql # not compatible
query I rowsort label-440
SELECT - COUNT ( * ) * 39 + - COUNT ( * ) / 40
----
-39

query I rowsort
SELECT DISTINCT + ( - 91 ) * 57 + + + 26 AS col1
----
-5161

query I rowsort
SELECT ALL + - 81
----
-81

query I rowsort
SELECT + - 58 AS col0
----
-58

query I rowsort
SELECT ALL + 63 * 50 + + - 70
----
3080

query I rowsort
SELECT ALL - 98 * - 47 + - 39 + NULLIF ( - + 81, + 85 ) col1
----
4486

query I rowsort
SELECT - ( 81 )
----
-81

query I rowsort
SELECT + ( - COALESCE ( + 59, - ( 18 ) * 73 + + ( COALESCE ( + NULLIF ( 21, 37 ), - 98, 10 ) ), - 82 ) ) * + 33
----
-1947

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-448
SELECT DISTINCT - COUNT( * ) DIV - + ( 13 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-448
SELECT DISTINCT - COUNT ( * ) / - + ( 13 ) AS col0
----
0

query I rowsort
SELECT - 52 AS col0
----
-52

query I rowsort
SELECT - + 73
----
-73

query I rowsort
SELECT ALL 83 * - 86 AS col2
----
-7138

query I rowsort
SELECT - - 74 + + 58
----
132

query I rowsort
SELECT - - 6 AS col2
----
6

onlyif mysql # DIV for integer division: 
query II rowsort label-454
SELECT + 75, + 31 * - 47 - 3 + - 54 DIV + COALESCE ( ( + 5 ) + + 54 * + 59, 64 + 14 ) AS col1
----
75
-1460

skipif mysql # not compatible
query II rowsort label-454
SELECT + 75, + 31 * - 47 - 3 + - 54 / + COALESCE ( ( + 5 ) + + 54 * + 59, 64 + 14 ) AS col1
----
75
-1460

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-455
SELECT DISTINCT + CAST( - - 45 AS SIGNED ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-455
SELECT DISTINCT + CAST ( - - 45 AS INTEGER ) AS col0
----
45

query I rowsort
SELECT ALL - NULLIF ( + 56, + 16 ) * 17
----
-952

onlyif mysql # aggregate syntax: 
query II rowsort label-457
SELECT ALL 42 * - COUNT( DISTINCT + + ( + - 74 ) ) AS col1, 6 * - 21
----
-42
-126

skipif mysql # not compatible
query II rowsort label-457
SELECT ALL 42 * - COUNT ( DISTINCT + + ( + - 74 ) ) AS col1, 6 * - 21
----
-42
-126

query I rowsort
SELECT - ( + 33 )
----
-33

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

query II rowsort
SELECT 76 col0, 3 * 84 - + 34 + + 36 - + 63
----
76
191

query I rowsort
SELECT - 6 * - 16
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-462
SELECT ALL COALESCE ( - COUNT( * ), - COUNT( * ) + 51, - 94 * 45 )
----
-1

skipif mysql # not compatible
query I rowsort label-462
SELECT ALL COALESCE ( - COUNT ( * ), - COUNT ( * ) + 51, - 94 * 45 )
----
-1

query I rowsort
SELECT + 76 - + 44 + - 59 AS col0
----
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-464
SELECT - 19, 11 + + COUNT( * ) AS col0
----
-19
12

skipif mysql # not compatible
query II rowsort label-464
SELECT - 19, 11 + + COUNT ( * ) AS col0
----
-19
12

query II rowsort
SELECT - 70 * + + 49 AS col0, 95
----
-3430
95

onlyif mysql # aggregate syntax: 
query I rowsort label-466
SELECT ALL MIN( ALL + 12 ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-466
SELECT ALL MIN ( ALL + 12 ) AS col2
----
12

query II rowsort
SELECT + 30, - 46 AS col1
----
30
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-468
SELECT ALL + 5 DIV + + 86 + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-468
SELECT ALL + 5 / + + 86 + - COUNT ( * )
----
-1

query I rowsort
SELECT ALL + 92 * - 49
----
-4508

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-470
SELECT - 30 DIV + + 39 + + - COUNT( * ) - MAX( ALL + - 79 ) + + 74 * - 31
----
-2216

skipif mysql # not compatible
query I rowsort label-470
SELECT - 30 / + + 39 + + - COUNT ( * ) - MAX ( ALL + - 79 ) + + 74 * - 31
----
-2216

query I rowsort
SELECT ALL - 20 + - 74 AS col2
----
-94

query II rowsort
SELECT + 96 col1, + 64 - - + 12 + + 57 + 19 * + ( - 40 ) * 5
----
96
-3667

query I rowsort
SELECT - 12 + 44 AS col2
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-474
SELECT DISTINCT - - 87 AS col0, + ( + 65 ) * ( + MAX( + + 59 ) )
----
87
3835

skipif mysql # not compatible
query II rowsort label-474
SELECT DISTINCT - - 87 AS col0, + ( + 65 ) * ( + MAX ( + + 59 ) )
----
87
3835

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-475
SELECT ALL - + 91 / 44 * CAST( NULL AS DECIMAL ) + + 28 + + 66 - 47 * - 26 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-475
SELECT ALL - + 91 / 44 * CAST ( NULL AS REAL ) + + 28 + + 66 - 47 * - 26 AS col1
----
NULL

query I rowsort
SELECT CASE 24 WHEN + 62 THEN + - 46 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-477
SELECT ALL - 29 + + MIN( 65 ) col2
----
36

skipif mysql # not compatible
query I rowsort label-477
SELECT ALL - 29 + + MIN ( 65 ) col2
----
36

query I rowsort
SELECT DISTINCT + 71 + + - 5
----
66

query II rowsort
SELECT + 41 AS col2, + 99 AS col1
----
41
99

onlyif mysql # aggregate syntax: 
query I rowsort label-480
SELECT ALL MIN( ALL - - 50 ) + 73
----
123

skipif mysql # not compatible
query I rowsort label-480
SELECT ALL MIN ( ALL - - 50 ) + 73
----
123

query I rowsort
SELECT 3 * - + 46 * - 18 + 81 + 60
----
2625

query II rowsort
SELECT ALL - 62, 50 AS col1
----
-62
50

query I rowsort
SELECT DISTINCT - COALESCE ( - - 35, - 33, + + 17 )
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-484
SELECT ( + CAST( NULL AS SIGNED ) ) - - + 65 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-484
SELECT ( + CAST ( NULL AS INTEGER ) ) - - + 65 col2
----
NULL

query I rowsort
SELECT + + 98
----
98

query I rowsort
SELECT + - 41 AS col1
----
-41

query I rowsort
SELECT 8 * + - 55 - - 1 AS col0
----
-439

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-488
SELECT DISTINCT CAST( + 49 AS SIGNED )
----
49

skipif mysql # not compatible
query I rowsort label-488
SELECT DISTINCT CAST ( + 49 AS INTEGER )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-489
SELECT DISTINCT + + COUNT( * ) - 57 - 84 * - 81 AS col1
----
6748

skipif mysql # not compatible
query I rowsort label-489
SELECT DISTINCT + + COUNT ( * ) - 57 - 84 * - 81 AS col1
----
6748

onlyif mysql # DIV for integer division: 
query I rowsort label-490
SELECT ALL 17 DIV - - 78 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-490
SELECT ALL 17 / - - 78 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-491
SELECT - SUM( + 89 ) - COUNT( * ) AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-491
SELECT - SUM ( + 89 ) - COUNT ( * ) AS col2
----
-90

query II rowsort
SELECT 71 + 21, - ( - 98 ) * - 82 * 12 * - + 94 * ( + 98 ) AS col2
----
92
888331584

onlyif mysql # aggregate syntax: 
query I rowsort label-493
SELECT COUNT( * ) - + 43 + - + 88
----
-130

skipif mysql # not compatible
query I rowsort label-493
SELECT COUNT ( * ) - + 43 + - + 88
----
-130

query I rowsort
SELECT 43 AS col0
----
43

query I rowsort
SELECT 16 * - 97 AS col0
----
-1552

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-496
SELECT ALL 95 DIV - CAST( - 65 AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-496
SELECT ALL 95 / - CAST ( - 65 AS INTEGER )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-497
SELECT 87 + + CAST( NULL AS SIGNED ) + - + COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-497
SELECT 87 + + CAST ( NULL AS INTEGER ) + - + COUNT ( * ) col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-498
SELECT 22 DIV 71 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-498
SELECT 22 / 71 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-499
SELECT SUM( DISTINCT 7 ) + + COUNT( * ) + + 76 * - 38 * - + 31 * + + COALESCE ( NULLIF ( - 5, - 4 + 48 * 16 ), - 95 ) * + 67
----
-29991872

skipif mysql # not compatible
query I rowsort label-499
SELECT SUM ( DISTINCT 7 ) + + COUNT ( * ) + + 76 * - 38 * - + 31 * + + COALESCE ( NULLIF ( - 5, - 4 + 48 * 16 ), - 95 ) * + 67
----
-29991872

onlyif mysql # aggregate syntax: 
query I rowsort label-500
SELECT DISTINCT + 51 + - COUNT( ALL 52 )
----
50

skipif mysql # not compatible
query I rowsort label-500
SELECT DISTINCT + 51 + - COUNT ( ALL 52 )
----
50

query I rowsort
SELECT NULLIF ( - 86, - 66 ) + - 66
----
-152

query I rowsort
SELECT ALL - 33 + - 5 + + + 30 AS col0
----
-8

query I rowsort
SELECT 31 + 2 - - 31 AS col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-504
SELECT DISTINCT CASE + MIN( - 22 ) WHEN 16 THEN NULLIF ( AVG ( - - 30 ), - 7 ) * COUNT( * ) ELSE NULL END + COALESCE ( - AVG ( 21 ) + + 45 * + 15, NULLIF ( 0, 64 + 41 * 87 ) ) * - 6 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-504
SELECT DISTINCT CASE + MIN ( - 22 ) WHEN 16 THEN NULLIF ( AVG ( - - 30 ), - 7 ) * COUNT ( * ) ELSE NULL END + COALESCE ( - AVG ( 21 ) + + 45 * + 15, NULLIF ( 0, 64 + 41 * 87 ) ) * - 6 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-505
SELECT COALESCE ( + COUNT( DISTINCT + 94 ), 99 + 15 + - 17 * NULLIF ( - 43, - 83 ) * + 38 DIV COUNT( 41 ) ) * MIN( 83 + 50 ) AS col0
----
133

skipif mysql # not compatible
query I rowsort label-505
SELECT COALESCE ( + COUNT ( DISTINCT + 94 ), 99 + 15 + - 17 * NULLIF ( - 43, - 83 ) * + 38 / COUNT ( 41 ) ) * MIN ( 83 + 50 ) AS col0
----
133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-506
SELECT CAST( NULL AS SIGNED ) + CASE COUNT( * ) WHEN + 48 / - COUNT( * ) THEN NULL WHEN + AVG ( ALL + - ( + 65 ) ) THEN + 94 + 92 * - 51 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-506
SELECT CAST ( NULL AS INTEGER ) + CASE COUNT ( * ) WHEN + 48 / - COUNT ( * ) THEN NULL WHEN + AVG ( ALL + - ( + 65 ) ) THEN + 94 + 92 * - 51 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-507
SELECT COUNT( * ) + - CAST( NULL AS SIGNED ) AS col2, - ( 25 )
----
NULL
-25

skipif mysql # not compatible
query II rowsort label-507
SELECT COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col2, - ( 25 )
----
NULL
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-508
SELECT CAST( NULL AS SIGNED ) * + - 61 AS col1, NULLIF ( + + COUNT( * ), + 9 / - COUNT( * ) * + + CAST( NULL AS SIGNED ) + 54 ) * 66
----
NULL
66

skipif mysql # not compatible
query II rowsort label-508
SELECT CAST ( NULL AS INTEGER ) * + - 61 AS col1, NULLIF ( + + COUNT ( * ), + 9 / - COUNT ( * ) * + + CAST ( NULL AS INTEGER ) + 54 ) * 66
----
NULL
66

onlyif mysql # aggregate syntax: 
query II rowsort label-509
SELECT ALL + 61 * + - 62 AS col2, - MAX( DISTINCT - 72 ) AS col2
----
-3782
72

skipif mysql # not compatible
query II rowsort label-509
SELECT ALL + 61 * + - 62 AS col2, - MAX ( DISTINCT - 72 ) AS col2
----
-3782
72

query I rowsort
SELECT - 0 * - + 48 + + + 11 * 64
----
704

query I rowsort
SELECT ALL 75 + + + 9 AS col2
----
84

query I rowsort
SELECT + + 95
----
95

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-513
SELECT ALL + + COUNT( * ) + CASE 36 WHEN + 19 / + 88 - 0 THEN - - 9 + - 84 WHEN + MIN( ALL CAST( NULL AS DECIMAL ) ) * - COUNT( * ) THEN NULL END / 43
----
NULL

skipif mysql # not compatible
query I rowsort label-513
SELECT ALL + + COUNT ( * ) + CASE 36 WHEN + 19 / + 88 - 0 THEN - - 9 + - 84 WHEN + MIN ( ALL CAST ( NULL AS REAL ) ) * - COUNT ( * ) THEN NULL END / 43
----
NULL

query I rowsort
SELECT + 42 + - ( 74 )
----
-32

query I rowsort
SELECT ALL - - 16
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-516
SELECT - MIN( DISTINCT + + 42 ) * - - 3 + - - 78 + - COUNT( * )
----
-49

skipif mysql # not compatible
query I rowsort label-516
SELECT - MIN ( DISTINCT + + 42 ) * - - 3 + - - 78 + - COUNT ( * )
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-517
SELECT + 39 / - CAST( NULL AS SIGNED ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-517
SELECT + 39 / - CAST ( NULL AS INTEGER ) + COUNT ( * )
----
NULL

query I rowsort
SELECT + ( 12 )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-519
SELECT 79 * + + 12 + - 20 - + COUNT( + 40 ) * + COUNT( * ) * - COUNT( * ) * + 56
----
984

skipif mysql # not compatible
query I rowsort label-519
SELECT 79 * + + 12 + - 20 - + COUNT ( + 40 ) * + COUNT ( * ) * - COUNT ( * ) * + 56
----
984

onlyif mysql # DIV for integer division: 
query I rowsort label-520
SELECT ALL - 68 DIV - 19 + + + 55 col2
----
58

skipif mysql # not compatible
query I rowsort label-520
SELECT ALL - 68 / - 19 + + + 55 col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-521
SELECT - 63 * - + 49 + + - 5 * - ( - 71 ) + + - COUNT( * ) + + - 10 AS col2
----
2721

skipif mysql # not compatible
query I rowsort label-521
SELECT - 63 * - + 49 + + - 5 * - ( - 71 ) + + - COUNT ( * ) + + - 10 AS col2
----
2721

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-522
SELECT DISTINCT - NULLIF ( + 96, - NULLIF ( 81, - MAX( + 64 ) ) + COALESCE ( - 27, 84 ) + 24 * + 31 * 61 ) / + ( 49 * ( COUNT( * ) ) + 38 / + NULLIF ( + COUNT( * ) / - CAST( NULL AS SIGNED ), - 64 + ( 78 + 76 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-522
SELECT DISTINCT - NULLIF ( + 96, - NULLIF ( 81, - MAX ( + 64 ) ) + COALESCE ( - 27, 84 ) + 24 * + 31 * 61 ) / + ( 49 * ( COUNT ( * ) ) + 38 / + NULLIF ( + COUNT ( * ) / - CAST ( NULL AS INTEGER ), - 64 + ( 78 + 76 ) ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-523
SELECT DISTINCT - 24 DIV SUM( DISTINCT - 70 ) + 10
----
10

skipif mysql # not compatible
query I rowsort label-523
SELECT DISTINCT - 24 / SUM ( DISTINCT - 70 ) + 10
----
10

query II rowsort
SELECT - 76 * 17 AS col2, + 15
----
-1292
15

query I rowsort
SELECT - 27 AS col2
----
-27

query I rowsort
SELECT + 85 + - + ( + 90 )
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-527
SELECT - CAST( - - COUNT( * ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-527
SELECT - CAST ( - - COUNT ( * ) AS INTEGER )
----
-1

query II rowsort
SELECT 15, - 79 AS col0
----
15
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-529
SELECT 16 + + - CAST( - 3 AS SIGNED ) + - COUNT( * ) * - CASE - + 53 WHEN + 95 * CAST( NULL AS SIGNED ) THEN 28 + 83 WHEN 30 + COUNT( * ) * 93 THEN COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-529
SELECT 16 + + - CAST ( - 3 AS INTEGER ) + - COUNT ( * ) * - CASE - + 53 WHEN + 95 * CAST ( NULL AS INTEGER ) THEN 28 + 83 WHEN 30 + COUNT ( * ) * 93 THEN COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-530
SELECT DISTINCT - COUNT( * ) * 43 * + 8 * + + 68 * + ( - 29 )
----
678368

skipif mysql # not compatible
query I rowsort label-530
SELECT DISTINCT - COUNT ( * ) * 43 * + 8 * + + 68 * + ( - 29 )
----
678368

query I rowsort
SELECT 25 * - - 74 AS col0
----
1850

onlyif mysql # aggregate syntax: 
query I rowsort label-532
SELECT ALL COUNT( * ) + 91 - + 41 col1
----
51

skipif mysql # not compatible
query I rowsort label-532
SELECT ALL COUNT ( * ) + 91 - + 41 col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-533
SELECT ALL + 64 + - - 7 - - COUNT( * ) * - 93 * - COUNT( * ) - + COUNT( * ) AS col1
----
163

skipif mysql # not compatible
query I rowsort label-533
SELECT ALL + 64 + - - 7 - - COUNT ( * ) * - 93 * - COUNT ( * ) - + COUNT ( * ) AS col1
----
163

query I rowsort
SELECT 15 * 17 * + 54
----
13770

query II rowsort
SELECT 28 AS col2, + 61 col2
----
28
61

query I rowsort
SELECT - 93 * - 59 col1
----
5487

query I rowsort
SELECT + 99 * 71
----
7029

onlyif mysql # aggregate syntax: 
query I rowsort label-538
SELECT - MIN( ALL 19 ) col2
----
-19

skipif mysql # not compatible
query I rowsort label-538
SELECT - MIN ( ALL 19 ) col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-539
SELECT - 87 - + 81 * - + COUNT( * )
----
-6

skipif mysql # not compatible
query I rowsort label-539
SELECT - 87 - + 81 * - + COUNT ( * )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-540
SELECT - MIN( ALL + 75 )
----
-75

skipif mysql # not compatible
query I rowsort label-540
SELECT - MIN ( ALL + 75 )
----
-75

query I rowsort
SELECT DISTINCT + 20 + 13 AS col1
----
33

query I rowsort
SELECT ALL 75 * + 4 AS col2
----
300

onlyif mysql # aggregate syntax: 
query I rowsort label-543
SELECT DISTINCT 34 * + COALESCE ( 79, - - COUNT( * ) )
----
2686

skipif mysql # not compatible
query I rowsort label-543
SELECT DISTINCT 34 * + COALESCE ( 79, - - COUNT ( * ) )
----
2686

onlyif mysql # aggregate syntax: 
query I rowsort label-544
SELECT ALL + COUNT( * ) + + 64
----
65

skipif mysql # not compatible
query I rowsort label-544
SELECT ALL + COUNT ( * ) + + 64
----
65

query I rowsort
SELECT DISTINCT + + 43 AS col2
----
43

query I rowsort
SELECT + 17 * + 58 col2
----
986

onlyif mysql # aggregate syntax: 
query I rowsort label-547
SELECT - COUNT( * ) * + 50 + 40
----
-10

skipif mysql # not compatible
query I rowsort label-547
SELECT - COUNT ( * ) * + 50 + 40
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-548
SELECT + 30 - MAX( 92 )
----
-62

skipif mysql # not compatible
query I rowsort label-548
SELECT + 30 - MAX ( 92 )
----
-62

query I rowsort
SELECT DISTINCT + + 9
----
9

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-550
SELECT + + ( CASE + 99 WHEN - 92 + CAST( NULL AS SIGNED ) THEN 86 ELSE 87 DIV - 54 END ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-550
SELECT + + ( CASE + 99 WHEN - 92 + CAST ( NULL AS INTEGER ) THEN 86 ELSE 87 / - 54 END ) col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-551
SELECT + - MAX( - 76 ) * + 3
----
228

skipif mysql # not compatible
query I rowsort label-551
SELECT + - MAX ( - 76 ) * + 3
----
228

query I rowsort
SELECT DISTINCT + - 76 AS col1
----
-76

query I rowsort
SELECT ALL + - ( - 55 ) AS col1
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-554
SELECT ALL + 42 * - 2 - + 5, + NULLIF ( CAST( NULL AS SIGNED ), + 77 * - COUNT( + - 19 ) * 81 ) / 23 AS col2
----
-89
NULL

skipif mysql # not compatible
query II rowsort label-554
SELECT ALL + 42 * - 2 - + 5, + NULLIF ( CAST ( NULL AS INTEGER ), + 77 * - COUNT ( + - 19 ) * 81 ) / 23 AS col2
----
-89
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-555
SELECT + COUNT( * ) * - 62
----
-62

skipif mysql # not compatible
query I rowsort label-555
SELECT + COUNT ( * ) * - 62
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-556
SELECT ALL - - 19 * + 67 + 22 + 97 + + 28 * + CASE - + AVG ( + - 30 ) WHEN + 83 / + 97 + MIN( DISTINCT 18 + 49 ) THEN + 29 * ( ( 65 ) ) WHEN + 34 THEN + 19 * - 3 ELSE NULL END * COUNT( * ) + + COUNT( * ) / ( + 37 + 60 ) * 59
----
NULL

skipif mysql # not compatible
query I rowsort label-556
SELECT ALL - - 19 * + 67 + 22 + 97 + + 28 * + CASE - + AVG ( + - 30 ) WHEN + 83 / + 97 + MIN ( DISTINCT 18 + 49 ) THEN + 29 * ( ( 65 ) ) WHEN + 34 THEN + 19 * - 3 ELSE NULL END * COUNT ( * ) + + COUNT ( * ) / ( + 37 + 60 ) * 59
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-557
SELECT + + MIN( DISTINCT - 74 ) + + MAX( - 86 )
----
-160

skipif mysql # not compatible
query I rowsort label-557
SELECT + + MIN ( DISTINCT - 74 ) + + MAX ( - 86 )
----
-160

query I rowsort
SELECT ALL - 45 * 0 col1
----
0

query I rowsort
SELECT + 22 - + 64
----
-42

query I rowsort
SELECT 25 col1
----
25

query I rowsort
SELECT DISTINCT + ( - 88 )
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-562
SELECT CAST( NULL AS SIGNED ) * - - 17 + - 76 + 50 / - 87 + - - 85
----
NULL

skipif mysql # not compatible
query I rowsort label-562
SELECT CAST ( NULL AS INTEGER ) * - - 17 + - 76 + 50 / - 87 + - - 85
----
NULL

query I rowsort
SELECT ALL 83 * - 55 AS col1
----
-4565

query I rowsort
SELECT ALL - 56 * + 54 + - 84 + 34
----
-3074

onlyif mysql # aggregate syntax: 
query I rowsort label-565
SELECT ALL 38 * + COUNT( * ) + + - 52
----
-14

skipif mysql # not compatible
query I rowsort label-565
SELECT ALL 38 * + COUNT ( * ) + + - 52
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-566
SELECT DISTINCT MIN( + + 92 )
----
92

skipif mysql # not compatible
query I rowsort label-566
SELECT DISTINCT MIN ( + + 92 )
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-567
SELECT - 30 DIV - 53 * - 17
----
0

skipif mysql # not compatible
query I rowsort label-567
SELECT - 30 / - 53 * - 17
----
0

query II rowsort
SELECT - 23 - 91, 44 AS col1
----
-114
44

query I rowsort
SELECT - 94 + - 60 AS col2
----
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-570
SELECT - COUNT( * ) + + + 68 * - + 6 * 35 AS col2
----
-14281

skipif mysql # not compatible
query I rowsort label-570
SELECT - COUNT ( * ) + + + 68 * - + 6 * 35 AS col2
----
-14281

onlyif mysql # aggregate syntax: 
query I rowsort label-571
SELECT ALL + 33 + + + 80 + - COUNT( * ) * 66 - + 22 AS col0
----
25

skipif mysql # not compatible
query I rowsort label-571
SELECT ALL + 33 + + + 80 + - COUNT ( * ) * 66 - + 22 AS col0
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-572
SELECT - MIN( - - 85 ) AS col2, - CAST( NULL AS SIGNED ) AS col2
----
-85
NULL

skipif mysql # not compatible
query II rowsort label-572
SELECT - MIN ( - - 85 ) AS col2, - CAST ( NULL AS INTEGER ) AS col2
----
-85
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-573
SELECT - 76 + 61, - NULLIF ( - + 73, + 7 + - + MIN( ALL + - 52 ) ) * 39 AS col1
----
-15
2847

skipif mysql # not compatible
query II rowsort label-573
SELECT - 76 + 61, - NULLIF ( - + 73, + 7 + - + MIN ( ALL + - 52 ) ) * 39 AS col1
----
-15
2847

onlyif mysql # aggregate syntax: 
query II rowsort label-574
SELECT - 40 + + COALESCE ( + - 18, - COUNT( * ) ) AS col1, 96
----
-58
96

skipif mysql # not compatible
query II rowsort label-574
SELECT - 40 + + COALESCE ( + - 18, - COUNT ( * ) ) AS col1, 96
----
-58
96

onlyif mysql # aggregate syntax: 
query I rowsort label-575
SELECT ALL - MAX( - - 97 ) - 66 * - 72 AS col2
----
4655

skipif mysql # not compatible
query I rowsort label-575
SELECT ALL - MAX ( - - 97 ) - 66 * - 72 AS col2
----
4655

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-576
SELECT DISTINCT CASE - - ( - + 52 ) WHEN + CASE + + NULLIF ( - 99, + + CAST( + + 19 AS SIGNED ) ) WHEN ( 49 ) + 31 THEN + 31 * 77 ELSE 14 / - 87 END THEN MIN( ALL 74 ) WHEN 80 - - 7 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-576
SELECT DISTINCT CASE - - ( - + 52 ) WHEN + CASE + + NULLIF ( - 99, + + CAST ( + + 19 AS INTEGER ) ) WHEN ( 49 ) + 31 THEN + 31 * 77 ELSE 14 / - 87 END THEN MIN ( ALL 74 ) WHEN 80 - - 7 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-577
SELECT - NULLIF ( - 79, + + ( 4 ) + 34 * - 11 - COUNT( * ) ) + - + ( 42 ) + + CAST( - 54 AS SIGNED ) * + 30 AS col1
----
-1583

skipif mysql # not compatible
query I rowsort label-577
SELECT - NULLIF ( - 79, + + ( 4 ) + 34 * - 11 - COUNT ( * ) ) + - + ( 42 ) + + CAST ( - 54 AS INTEGER ) * + 30 AS col1
----
-1583

query II rowsort
SELECT ALL ( 97 ) AS col0, 95 + + 60 AS col2
----
97
155

query I rowsort
SELECT ALL ( 92 )
----
92

query I rowsort
SELECT - + 62 * + 4
----
-248

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-581
SELECT COUNT( - + ( CAST( + + 35 AS SIGNED ) ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-581
SELECT COUNT ( - + ( CAST ( + + 35 AS INTEGER ) ) ) AS col1
----
1

query I rowsort
SELECT + - 98 + 53
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-583
SELECT ALL - 92 - COUNT( * )
----
-93

skipif mysql # not compatible
query I rowsort label-583
SELECT ALL - 92 - COUNT ( * )
----
-93

query I rowsort
SELECT + + 23 + - 53 AS col2
----
-30

query I rowsort
SELECT ALL 21 * + 76 + + 54 / - CASE + 59 WHEN 77 * 10 * - + 50 + + + 83 THEN + 75 WHEN 65 * 11 THEN NULL END / 95 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 78 col0
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-587
SELECT ALL + - MAX( 12 ) AS col1, + 61
----
-12
61

skipif mysql # not compatible
query II rowsort label-587
SELECT ALL + - MAX ( 12 ) AS col1, + 61
----
-12
61

query I rowsort
SELECT + 84 * + - 44 + + 66 AS col2
----
-3630

onlyif mysql # aggregate syntax: 
query I rowsort label-589
SELECT DISTINCT + COUNT( * ) * + 91
----
91

skipif mysql # not compatible
query I rowsort label-589
SELECT DISTINCT + COUNT ( * ) * + 91
----
91

query I rowsort
SELECT DISTINCT + - 82 AS col1
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-591
SELECT DISTINCT COUNT( * ) * - 21
----
-21

skipif mysql # not compatible
query I rowsort label-591
SELECT DISTINCT COUNT ( * ) * - 21
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-592
SELECT - - 85 DIV + 77 + + 5 + 4 * + + ( + COUNT( + + 36 ) ) * + - 84 * - - 3 col1
----
-1002

skipif mysql # not compatible
query I rowsort label-592
SELECT - - 85 / + 77 + + 5 + 4 * + + ( + COUNT ( + + 36 ) ) * + - 84 * - - 3 col1
----
-1002

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-593
SELECT ALL - ( - + 16 ) DIV + + CASE ( - 60 ) WHEN 16 + + + 85 + - - 62 * - + 9 * 95 THEN NULL WHEN 90 THEN NULL ELSE 63 END + + CASE - ( COUNT( * ) ) + 57 WHEN 48 THEN + 69 ELSE - 86 END
----
-86

skipif mysql # not compatible
query I rowsort label-593
SELECT ALL - ( - + 16 ) / + + CASE ( - 60 ) WHEN 16 + + + 85 + - - 62 * - + 9 * 95 THEN NULL WHEN 90 THEN NULL ELSE 63 END + + CASE - ( COUNT ( * ) ) + 57 WHEN 48 THEN + 69 ELSE - 86 END
----
-86

query II rowsort
SELECT ALL + ( + + 46 ) AS col1, ( 70 )
----
46
70

query I rowsort
SELECT + CASE + COALESCE ( 46, - - 7, 97 ) WHEN + 85 THEN NULL ELSE + - 55 * 93 END * 56
----
-286440

onlyif mysql # aggregate syntax: 
query I rowsort label-596
SELECT ( + 52 ) * + COUNT( * ) + 35 + - 89
----
-2

skipif mysql # not compatible
query I rowsort label-596
SELECT ( + 52 ) * + COUNT ( * ) + 35 + - 89
----
-2

query I rowsort
SELECT + 39 AS col0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-598
SELECT COALESCE ( - - 49, - + COUNT( * ), + 65 )
----
49

skipif mysql # not compatible
query I rowsort label-598
SELECT COALESCE ( - - 49, - + COUNT ( * ), + 65 )
----
49

query I rowsort
SELECT + 20 + - - ( - + 44 ) AS col2
----
-24

query I rowsort
SELECT + 54 * 45 AS col2
----
2430

query I rowsort
SELECT DISTINCT + 48 AS col2
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-602
SELECT 65 * - - CAST( 65 AS SIGNED ) + - - 7 AS col0
----
4232

skipif mysql # not compatible
query I rowsort label-602
SELECT 65 * - - CAST ( 65 AS INTEGER ) + - - 7 AS col0
----
4232

onlyif mysql # aggregate syntax: 
query I rowsort label-603
SELECT CASE + - 61 WHEN + COALESCE ( + + 37, + 77, 90 + + 21 ) * 68 THEN - COUNT( + 49 ) - + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-603
SELECT CASE + - 61 WHEN + COALESCE ( + + 37, + 77, 90 + + 21 ) * 68 THEN - COUNT ( + 49 ) - + COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-604
SELECT ALL COUNT( * ) * + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-604
SELECT ALL COUNT ( * ) * + COUNT ( * )
----
1

query I rowsort
SELECT + NULLIF ( 98, + + ( - 96 ) ) * - - 84 * 23 + - 24
----
189312

query I rowsort
SELECT + 24 + + - 16 + + 87 + 26 + 1 * - 36 + 66 * 89 AS col2
----
5959

query II rowsort
SELECT - 12, 36 AS col2
----
-12
36

query I rowsort
SELECT 41 + 84 col2
----
125

onlyif mysql # aggregate syntax: 
query II rowsort label-609
SELECT - 68 col0, - SUM( DISTINCT 84 ) col1
----
-68
-84

skipif mysql # not compatible
query II rowsort label-609
SELECT - 68 col0, - SUM ( DISTINCT 84 ) col1
----
-68
-84

query I rowsort
SELECT 57 * + 84 AS col1
----
4788

query I rowsort
SELECT DISTINCT 72 AS col1
----
72

query I rowsort
SELECT ALL 70 - + 70
----
0

query I rowsort
SELECT ALL + 2 - - - 65
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-614
SELECT 47 * + - COUNT( * ) AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-614
SELECT 47 * + - COUNT ( * ) AS col2
----
-47

query I rowsort
SELECT DISTINCT 83 AS col0
----
83

query I rowsort
SELECT - 36 AS col2
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-617
SELECT CAST( NULL AS SIGNED ) + + 2 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-617
SELECT CAST ( NULL AS INTEGER ) + + 2 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-618
SELECT 66 DIV - 67
----
0

skipif mysql # not compatible
query I rowsort label-618
SELECT 66 / - 67
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-619
SELECT CAST( NULL AS SIGNED ) * 30 * + 24 / - 15
----
NULL

skipif mysql # not compatible
query I rowsort label-619
SELECT CAST ( NULL AS INTEGER ) * 30 * + 24 / - 15
----
NULL

query I rowsort
SELECT 72 + 42
----
114

onlyif mysql # aggregate syntax: 
query II rowsort label-621
SELECT 29, - COUNT( * ) AS col2
----
29
-1

skipif mysql # not compatible
query II rowsort label-621
SELECT 29, - COUNT ( * ) AS col2
----
29
-1

query II rowsort
SELECT ALL - + 53 - + 59 * - - 13 col1, + 56 * + 11 AS col1
----
-820
616

query I rowsort
SELECT 26 * - - 58 * - - 68
----
102544

onlyif mysql # aggregate syntax: 
query I rowsort label-624
SELECT - SUM( 26 )
----
-26

skipif mysql # not compatible
query I rowsort label-624
SELECT - SUM ( 26 )
----
-26

query I rowsort
SELECT - - 85
----
85

query I rowsort
SELECT 72 - - 1 + - 12
----
61

query I rowsort
SELECT - - 16
----
16

query I rowsort
SELECT - 79 - + 91 * + + ( + ( 3 ) ) * + 41 + - - 71
----
-11201

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-629
SELECT ALL + + MIN( + 23 ) * - 38 * + 2 * - NULLIF ( + + 74, + + ( + COUNT( * ) ) ) * - 89 * 81 DIV 9 AS col0
----
-103610952

skipif mysql # not compatible
query I rowsort label-629
SELECT ALL + + MIN ( + 23 ) * - 38 * + 2 * - NULLIF ( + + 74, + + ( + COUNT ( * ) ) ) * - 89 * 81 / 9 AS col0
----
-103610952

query I rowsort
SELECT DISTINCT 16 AS col2
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-631
SELECT 65 + + - 78 DIV - 67
----
66

skipif mysql # not compatible
query I rowsort label-631
SELECT 65 + + - 78 / - 67
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-632
SELECT ALL MIN( + 29 ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-632
SELECT ALL MIN ( + 29 ) AS col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-633
SELECT ALL + COUNT( * ) * - - ( 57 ) * + - 16
----
-912

skipif mysql # not compatible
query I rowsort label-633
SELECT ALL + COUNT ( * ) * - - ( 57 ) * + - 16
----
-912

query I rowsort
SELECT DISTINCT - 13 AS col1
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-635
SELECT 72 * - 72 + + ( - 74 ) * + - MIN( - 26 ) + 17 * + COALESCE ( - - 61, CAST( NULL AS SIGNED ) * 64 - 51, COUNT( * ) ) * 7 + + 4 AS col1
----
155

skipif mysql # not compatible
query I rowsort label-635
SELECT 72 * - 72 + + ( - 74 ) * + - MIN ( - 26 ) + 17 * + COALESCE ( - - 61, CAST ( NULL AS INTEGER ) * 64 - 51, COUNT ( * ) ) * 7 + + 4 AS col1
----
155

query I rowsort
SELECT DISTINCT - - 94 AS col2
----
94

query II rowsort
SELECT - 95 AS col1, 93
----
-95
93

query I rowsort
SELECT ALL - - 12
----
12

query I rowsort
SELECT + - 21 AS col2
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-640
SELECT 64 DIV - - 26
----
2

skipif mysql # not compatible
query I rowsort label-640
SELECT 64 / - - 26
----
2

query I rowsort
SELECT + - 11 AS col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-642
SELECT ALL - 54 + + COUNT( * ) * + + 16 AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-642
SELECT ALL - 54 + + COUNT ( * ) * + + 16 AS col0
----
-38

query I rowsort
SELECT DISTINCT 39 + + 59 AS col2
----
98

query I rowsort
SELECT 13 + 72 AS col1
----
85

query I rowsort
SELECT DISTINCT - 72 AS col2
----
-72

query I rowsort
SELECT ALL 57 + + 95 * - - 79 AS col2
----
7562

query I rowsort
SELECT ALL - + 61
----
-61

query I rowsort
SELECT ALL - 5 + + + 62 * + - 8 + - 71
----
-572

query I rowsort
SELECT DISTINCT - 93 AS col2
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-650
SELECT 31 DIV - 38 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-650
SELECT 31 / - 38 AS col2
----
0

query I rowsort
SELECT ALL 30 + - 14
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-652
SELECT 44 AS col1, - CASE + 45 WHEN - - 27 * - 25 * - 91 THEN COALESCE ( + 19, + 5, + - 46 + - 63 ) WHEN + COUNT( DISTINCT + 34 ) * AVG ( ALL 96 ) THEN + COUNT( * ) WHEN 67 / + SUM( ALL - 65 ) THEN + 2 + COUNT( * ) * 56 END AS col1
----
44
NULL

skipif mysql # not compatible
query II rowsort label-652
SELECT 44 AS col1, - CASE + 45 WHEN - - 27 * - 25 * - 91 THEN COALESCE ( + 19, + 5, + - 46 + - 63 ) WHEN + COUNT ( DISTINCT + 34 ) * AVG ( ALL 96 ) THEN + COUNT ( * ) WHEN 67 / + SUM ( ALL - 65 ) THEN + 2 + COUNT ( * ) * 56 END AS col1
----
44
NULL

query I rowsort
SELECT 15 * + - 98
----
-1470

onlyif mysql # aggregate syntax: 
query I rowsort label-654
SELECT 70 * - 46 * - 5 + - - 62 * + NULLIF ( 70, MIN( ALL + 5 ) ) + - + SUM( 35 ) AS col0
----
20405

skipif mysql # not compatible
query I rowsort label-654
SELECT 70 * - 46 * - 5 + - - 62 * + NULLIF ( 70, MIN ( ALL + 5 ) ) + - + SUM ( 35 ) AS col0
----
20405

query II rowsort
SELECT 87, 20 + - 18 AS col1
----
87
2

query II rowsort
SELECT ALL - 95 AS col2, + 71 AS col2
----
-95
71

query I rowsort
SELECT DISTINCT - 69
----
-69

query I rowsort
SELECT DISTINCT 72 col0
----
72

query I rowsort
SELECT ALL 52 - - 23 - - 70
----
145

query I rowsort
SELECT DISTINCT 26 col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-661
SELECT DISTINCT 81 - + 45 * - NULLIF ( - 0, + COUNT( - + 55 ) ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-661
SELECT DISTINCT 81 - + 45 * - NULLIF ( - 0, + COUNT ( - + 55 ) ) AS col0
----
81

query I rowsort
SELECT 30 + 51
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-663
SELECT COALESCE ( - - 80, + 4 DIV - + MAX( DISTINCT - 52 ) ) * + 93 AS col2
----
7440

skipif mysql # not compatible
query I rowsort label-663
SELECT COALESCE ( - - 80, + 4 / - + MAX ( DISTINCT - 52 ) ) * + 93 AS col2
----
7440

onlyif mysql # aggregate syntax: 
query I rowsort label-664
SELECT 82 * COUNT( * ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-664
SELECT 82 * COUNT ( * ) AS col2
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-665
SELECT DISTINCT 10 * + - COALESCE ( SUM( ALL - 94 ), + - CAST( NULL AS SIGNED ) + - - 36 + - + 57 * + 24, - + 80 ), + 4 * 36 AS col2
----
940
144

skipif mysql # not compatible
query II rowsort label-665
SELECT DISTINCT 10 * + - COALESCE ( SUM ( ALL - 94 ), + - CAST ( NULL AS INTEGER ) + - - 36 + - + 57 * + 24, - + 80 ), + 4 * 36 AS col2
----
940
144

onlyif mysql # aggregate syntax: 
query I rowsort label-666
SELECT ( + COUNT( * ) ) + 1
----
2

skipif mysql # not compatible
query I rowsort label-666
SELECT ( + COUNT ( * ) ) + 1
----
2

query I rowsort
SELECT + COALESCE ( + ( - 3 ), + - ( + - 8 ) ) AS col2
----
-3

query I rowsort
SELECT ALL NULLIF ( - + 26, - 7 )
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-669
SELECT SUM( ALL + 92 ) + - + COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-669
SELECT SUM ( ALL + 92 ) + - + COUNT ( * )
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-670
SELECT ALL + 90 * 44 + 95 + + COUNT( + 4 ) * + ( - - 13 ), + 99 AS col0
----
4068
99

skipif mysql # not compatible
query II rowsort label-670
SELECT ALL + 90 * 44 + 95 + + COUNT ( + 4 ) * + ( - - 13 ), + 99 AS col0
----
4068
99

onlyif mysql # aggregate syntax: 
query I rowsort label-671
SELECT 18 * + CASE + 32 WHEN + ( 54 ) THEN NULL ELSE MAX( + - 93 ) END AS col1
----
-1674

skipif mysql # not compatible
query I rowsort label-671
SELECT 18 * + CASE + 32 WHEN + ( 54 ) THEN NULL ELSE MAX ( + - 93 ) END AS col1
----
-1674

onlyif mysql # aggregate syntax: 
query I rowsort label-672
SELECT DISTINCT COALESCE ( - + 26, + 6, - 70, 87 ) + 55 * - - ( MAX( 0 ) ) col1
----
-26

skipif mysql # not compatible
query I rowsort label-672
SELECT DISTINCT COALESCE ( - + 26, + 6, - 70, 87 ) + 55 * - - ( MAX ( 0 ) ) col1
----
-26

query I rowsort
SELECT - 86 * 28 col0
----
-2408

query I rowsort
SELECT ALL - 8 AS col0
----
-8

query I rowsort
SELECT ALL + 40 + + 37 * - + 57 AS col0
----
-2069

query I rowsort
SELECT 97 + - 34
----
63

query II rowsort
SELECT + 17, 28 col2
----
17
28

onlyif mysql # aggregate syntax: 
query II rowsort label-678
SELECT 56 + COUNT( * ) AS col0, - ( + 57 ) col0
----
57
-57

skipif mysql # not compatible
query II rowsort label-678
SELECT 56 + COUNT ( * ) AS col0, - ( + 57 ) col0
----
57
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-679
SELECT - MIN( ALL - 3 )
----
3

skipif mysql # not compatible
query I rowsort label-679
SELECT - MIN ( ALL - 3 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-680
SELECT MAX( + 15 ) * + 6 + + 83 - 97 * + - 18 + + CASE - COUNT( * ) WHEN - - ( + 94 ) + - 83 + - 74 * 51 THEN 13 END
----
NULL

skipif mysql # not compatible
query I rowsort label-680
SELECT MAX ( + 15 ) * + 6 + + 83 - 97 * + - 18 + + CASE - COUNT ( * ) WHEN - - ( + 94 ) + - 83 + - 74 * 51 THEN 13 END
----
NULL

query I rowsort
SELECT - 26 + + 90 * + 34 AS col2
----
3034

query I rowsort
SELECT + 1 AS col1
----
1

query I rowsort
SELECT - + 33
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-684
SELECT ALL - 58 + SUM( + 37 ) AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-684
SELECT ALL - 58 + SUM ( + 37 ) AS col2
----
-21

query II rowsort
SELECT 76 AS col2, 16
----
76
16

query I rowsort
SELECT + ( 57 ) col1
----
57

query I rowsort
SELECT ALL - 25 AS col1
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-688
SELECT DISTINCT - 55 * - + 3 / + ( 38 ) * + COUNT( * ) / - - CASE - + 1 WHEN + + 20 * 68 + - CAST( + 10 AS SIGNED ) THEN + 60 - 74 ELSE NULL END + + NULLIF ( 28 + + 20, + 94 - - 52 ) / 21
----
NULL

skipif mysql # not compatible
query I rowsort label-688
SELECT DISTINCT - 55 * - + 3 / + ( 38 ) * + COUNT ( * ) / - - CASE - + 1 WHEN + + 20 * 68 + - CAST ( + 10 AS INTEGER ) THEN + 60 - 74 ELSE NULL END + + NULLIF ( 28 + + 20, + 94 - - 52 ) / 21
----
NULL

query I rowsort
SELECT 13 AS col0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-690
SELECT ALL + - 41 * + COUNT( * ) AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-690
SELECT ALL + - 41 * + COUNT ( * ) AS col2
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-691
SELECT DISTINCT + + COUNT( * ) * - 63 + + - 83 + + 13 DIV 87
----
-146

skipif mysql # not compatible
query I rowsort label-691
SELECT DISTINCT + + COUNT ( * ) * - 63 + + - 83 + + 13 / 87
----
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-692
SELECT DISTINCT + COUNT( * ) * - 40 AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-692
SELECT DISTINCT + COUNT ( * ) * - 40 AS col2
----
-40

query I rowsort
SELECT + 45 AS col1
----
45

query I rowsort
SELECT DISTINCT - 80 * - 96 * - 57 - - 70 AS col0
----
-437690

query I rowsort
SELECT 74 * - 47 + ( - 2 ) + + + 91
----
-3389

onlyif mysql # aggregate syntax: 
query I rowsort label-696
SELECT - 12 * COUNT( * ) * - 42 AS col0
----
504

skipif mysql # not compatible
query I rowsort label-696
SELECT - 12 * COUNT ( * ) * - 42 AS col0
----
504

onlyif mysql # aggregate syntax: 
query II rowsort label-697
SELECT + 69 * - - 88 + - + 93 col1, COUNT( * )
----
5979
1

skipif mysql # not compatible
query II rowsort label-697
SELECT + 69 * - - 88 + - + 93 col1, COUNT ( * )
----
5979
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-698
SELECT ALL + CASE WHEN NULL IS NOT NULL THEN CAST( + 78 AS SIGNED ) ELSE + 0 DIV 80 - - - MIN( ALL 0 ) END
----
0

skipif mysql # not compatible
query I rowsort label-698
SELECT ALL + CASE WHEN NULL IS NOT NULL THEN CAST ( + 78 AS INTEGER ) ELSE + 0 / 80 - - - MIN ( ALL 0 ) END
----
0

query I rowsort
SELECT + 6 * - 23 + - 25
----
-163

query I rowsort
SELECT ALL 76 * - 18
----
-1368

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-701
SELECT DISTINCT - ( - - 7 ) DIV SUM( DISTINCT + 39 )
----
0

skipif mysql # not compatible
query I rowsort label-701
SELECT DISTINCT - ( - - 7 ) / SUM ( DISTINCT + 39 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-702
SELECT ALL + CASE + COUNT( * ) WHEN CAST( - NULLIF ( 82, - - ( - - 4 ) * - 5 + 38 ) AS DECIMAL ) THEN - 4 + + 89 + + 70 / - 30 ELSE COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-702
SELECT ALL + CASE + COUNT ( * ) WHEN CAST ( - NULLIF ( 82, - - ( - - 4 ) * - 5 + 38 ) AS REAL ) THEN - 4 + + 89 + + 70 / - 30 ELSE COUNT ( * ) END
----
1

query II rowsort
SELECT - 17 * + 91, - 95 * + ( 24 ) * 9 AS col2
----
-1547
-20520

query I rowsort
SELECT ALL - 11 * - 78 AS col1
----
858

onlyif mysql # aggregate syntax: 
query II rowsort label-705
SELECT ALL - COUNT( * ) * + - SUM( ALL 3 ) AS col2, 28 col2
----
3
28

skipif mysql # not compatible
query II rowsort label-705
SELECT ALL - COUNT ( * ) * + - SUM ( ALL 3 ) AS col2, 28 col2
----
3
28

query I rowsort
SELECT - 81 * + 33 AS col1
----
-2673

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-707
SELECT + COUNT( * ) DIV + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-707
SELECT + COUNT ( * ) / + COUNT ( * ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-708
SELECT ALL COALESCE ( CAST( NULL AS SIGNED ), + 77 )
----
77

skipif mysql # not compatible
query I rowsort label-708
SELECT ALL COALESCE ( CAST ( NULL AS INTEGER ), + 77 )
----
77

query I rowsort
SELECT ALL - 43 AS col2
----
-43

query I rowsort
SELECT ALL + - 94 + 40
----
-54

query I rowsort
SELECT - ( + 22 ) + - + 78
----
-100

query I rowsort
SELECT DISTINCT - 84 AS col0
----
-84

query I rowsort
SELECT + 41 + 16 - 88 AS col2
----
-31

query I rowsort
SELECT - + 71
----
-71

query I rowsort
SELECT - + CASE + 45 WHEN + 58 THEN + + 51 - + 39 * - AVG ( + 17 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-716
SELECT SUM( + 41 ) col1
----
41

skipif mysql # not compatible
query I rowsort label-716
SELECT SUM ( + 41 ) col1
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-717
SELECT ALL + ( + 40 ) + - 61 DIV - 77 + MAX( DISTINCT + 42 ) * COALESCE ( + 32, - 96, + NULLIF ( + 50, + - 16 ) * 22 ) col1
----
1384

skipif mysql # not compatible
query I rowsort label-717
SELECT ALL + ( + 40 ) + - 61 / - 77 + MAX ( DISTINCT + 42 ) * COALESCE ( + 32, - 96, + NULLIF ( + 50, + - 16 ) * 22 ) col1
----
1384

query I rowsort
SELECT + - 23 - + 93
----
-116

query I rowsort
SELECT DISTINCT 35 AS col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-720
SELECT + + COUNT( * ) - 15
----
-14

skipif mysql # not compatible
query I rowsort label-720
SELECT + + COUNT ( * ) - 15
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-721
SELECT DISTINCT + 85 * + + 78 + - + 63 DIV MIN( + 1 ) col0, ( - 90 ) * - 35
----
6567
3150

skipif mysql # not compatible
query II rowsort label-721
SELECT DISTINCT + 85 * + + 78 + - + 63 / MIN ( + 1 ) col0, ( - 90 ) * - 35
----
6567
3150

query I rowsort
SELECT ALL 60 + - 83 AS col0
----
-23

query I rowsort
SELECT ALL + + 83 AS col0
----
83

query I rowsort
SELECT - - 7 - - 90 AS col1
----
97

query I rowsort
SELECT ( + + 72 ) col1
----
72

query I rowsort
SELECT ( - + 24 ) AS col1
----
-24

query I rowsort
SELECT ALL + 86 AS col1
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-728
SELECT DISTINCT - ( - 68 ) DIV + NULLIF ( - 93, ( + - 92 ) ) - 21 - - COUNT( * ) AS col1, - COALESCE ( 77, 94 * + 82 + + - 55 + 82 ) AS col2
----
-20
-77

skipif mysql # not compatible
query II rowsort label-728
SELECT DISTINCT - ( - 68 ) / + NULLIF ( - 93, ( + - 92 ) ) - 21 - - COUNT ( * ) AS col1, - COALESCE ( 77, 94 * + 82 + + - 55 + 82 ) AS col2
----
-20
-77

query I rowsort
SELECT ( + ( + - 21 ) )
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-730
SELECT DISTINCT CASE - 24 WHEN - 34 * - - 54 * 51 / + + 72 * 19 * + + 78 THEN - - 37 + NULLIF ( 79, + ( + SUM( + 41 ) ) ) WHEN - 45 THEN NULL WHEN NULLIF ( 27, 31 ) / + 59 + 65 THEN NULL ELSE NULL END * CAST( NULL AS SIGNED ) - - MIN( ALL COALESCE ( 43, + 13 * 92, - ( CAST( NULL AS SIGNED ) ) * - 29 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-730
SELECT DISTINCT CASE - 24 WHEN - 34 * - - 54 * 51 / + + 72 * 19 * + + 78 THEN - - 37 + NULLIF ( 79, + ( + SUM ( + 41 ) ) ) WHEN - 45 THEN NULL WHEN NULLIF ( 27, 31 ) / + 59 + 65 THEN NULL ELSE NULL END * CAST ( NULL AS INTEGER ) - - MIN ( ALL COALESCE ( 43, + 13 * 92, - ( CAST ( NULL AS INTEGER ) ) * - 29 ) ) AS col2
----
NULL

query I rowsort
SELECT ALL - 16 * 98
----
-1568

onlyif mysql # aggregate syntax: 
query I rowsort label-732
SELECT ( MIN( + + ( 29 ) ) ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-732
SELECT ( MIN ( + + ( 29 ) ) ) AS col2
----
29

query I rowsort
SELECT ALL 47 * - 33 AS col0
----
-1551

query II rowsort
SELECT DISTINCT + 18 col0, 67
----
18
67

query I rowsort
SELECT ( - - 85 ) AS col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-736
SELECT DISTINCT + MIN( DISTINCT 60 )
----
60

skipif mysql # not compatible
query I rowsort label-736
SELECT DISTINCT + MIN ( DISTINCT 60 )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-737
SELECT + 5 + + - CASE 63 WHEN - - MIN( ALL ( 61 ) ) - - 48 THEN + 96 * + 58 WHEN + + AVG ( - - 15 ) THEN + + 21 - - ( + 52 ) * - 19 END * 2
----
NULL

skipif mysql # not compatible
query I rowsort label-737
SELECT + 5 + + - CASE 63 WHEN - - MIN ( ALL ( 61 ) ) - - 48 THEN + 96 * + 58 WHEN + + AVG ( - - 15 ) THEN + + 21 - - ( + 52 ) * - 19 END * 2
----
NULL

query II rowsort
SELECT + 21 AS col2, 82 AS col2
----
21
82

query I rowsort
SELECT - 58 * + - 54
----
3132

query I rowsort
SELECT ALL + 91 AS col0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-741
SELECT DISTINCT + ( - MAX( - 60 ) ) * COUNT( * ) + 40 AS col0
----
100

skipif mysql # not compatible
query I rowsort label-741
SELECT DISTINCT + ( - MAX ( - 60 ) ) * COUNT ( * ) + 40 AS col0
----
100

onlyif mysql # aggregate syntax: 
query II rowsort label-742
SELECT ALL 19 * - - 43 * - - 55 * + + COUNT( * ) + - 47 * - 1 + - COUNT( ALL - + 70 ) AS col0, COUNT( 40 )
----
44981
1

skipif mysql # not compatible
query II rowsort label-742
SELECT ALL 19 * - - 43 * - - 55 * + + COUNT ( * ) + - 47 * - 1 + - COUNT ( ALL - + 70 ) AS col0, COUNT ( 40 )
----
44981
1

onlyif mysql # aggregate syntax: 
query I rowsort label-743
SELECT - COUNT( * ) + 15
----
14

skipif mysql # not compatible
query I rowsort label-743
SELECT - COUNT ( * ) + 15
----
14

query I rowsort
SELECT ALL 44 * - 95 * - 91 + - - 47 - - 40
----
380467

query II rowsort
SELECT - 39, - 67 AS col1
----
-39
-67

query I rowsort
SELECT - 59 + 72 AS col0
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-747
SELECT - + MIN( DISTINCT + + 82 ) + CAST( - 33 AS SIGNED ) AS col1
----
-115

skipif mysql # not compatible
query I rowsort label-747
SELECT - + MIN ( DISTINCT + + 82 ) + CAST ( - 33 AS INTEGER ) AS col1
----
-115

onlyif mysql # DIV for integer division: 
query II rowsort label-748
SELECT - - 18 DIV - - 48 - - - 81 col1, - 6 + 86
----
-81
80

skipif mysql # not compatible
query II rowsort label-748
SELECT - - 18 / - - 48 - - - 81 col1, - 6 + 86
----
-81
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-749
SELECT + - CAST( NULL AS SIGNED ) + + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-749
SELECT + - CAST ( NULL AS INTEGER ) + + 57
----
NULL

query I rowsort
SELECT DISTINCT - + 91 * + 45 AS col2
----
-4095

query I rowsort
SELECT - + 44 * + 50 - - + 18 + 67 + - ( + 51 ) * + 81 + - + 29 AS col1
----
-6275

onlyif mysql # aggregate syntax: 
query I rowsort label-752
SELECT + + COUNT( * ) + - - 43
----
44

skipif mysql # not compatible
query I rowsort label-752
SELECT + + COUNT ( * ) + - - 43
----
44

query I rowsort
SELECT + - 63 + - 13
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-754
SELECT ALL 78 + + COUNT( + 73 ) + + + ( + - 84 ) + + 37 * - NULLIF ( 42, + COUNT( ALL - ( 72 ) ) + 74 ) * - 27 + 91 * 49
----
46412

skipif mysql # not compatible
query I rowsort label-754
SELECT ALL 78 + + COUNT ( + 73 ) + + + ( + - 84 ) + + 37 * - NULLIF ( 42, + COUNT ( ALL - ( 72 ) ) + 74 ) * - 27 + 91 * 49
----
46412

onlyif mysql # aggregate syntax: 
query I rowsort label-755
SELECT DISTINCT + 30 + COUNT( * ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-755
SELECT DISTINCT + 30 + COUNT ( * ) AS col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-756
SELECT - - SUM( DISTINCT 81 ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-756
SELECT - - SUM ( DISTINCT 81 ) AS col1
----
81

query I rowsort
SELECT ALL + - CASE - 54 WHEN + 99 THEN 49 * + 98 + + - 48 - - 1 WHEN + 52 THEN + - 82 WHEN 6 * + 49 THEN - 87 * - ( + 97 ) END - + 26 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 24
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-759
SELECT + 97 * + CAST( 45 AS SIGNED ) * + + NULLIF ( + 26, - - NULLIF ( 18, - 51 ) ) col2, + 48
----
113490
48

skipif mysql # not compatible
query II rowsort label-759
SELECT + 97 * + CAST ( 45 AS INTEGER ) * + + NULLIF ( + 26, - - NULLIF ( 18, - 51 ) ) col2, + 48
----
113490
48

onlyif mysql # aggregate syntax: 
query I rowsort label-760
SELECT ALL COUNT( ALL + 7 )
----
1

skipif mysql # not compatible
query I rowsort label-760
SELECT ALL COUNT ( ALL + 7 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-761
SELECT + MIN( NULLIF ( 72, + - CAST( 27 AS DECIMAL ) ) ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-761
SELECT + MIN ( NULLIF ( 72, + - CAST ( 27 AS REAL ) ) ) AS col1
----
72

query II rowsort
SELECT ALL 42 AS col1, + 66
----
42
66

query III rowsort
SELECT 65 * 5 + + 39, - 92 col2, + 8 AS col0
----
364
-92
8

onlyif mysql # aggregate syntax: 
query I rowsort label-764
SELECT DISTINCT COUNT( * ) * COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-764
SELECT DISTINCT COUNT ( * ) * COUNT ( * )
----
1

query I rowsort
SELECT ALL - 66 col1
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-766
SELECT - 60 DIV 86 DIV COUNT( ALL - 42 ) + - NULLIF ( - 88, - 67 + + 93 - - COUNT( * ) ) AS col0, 71 + 89 AS col2
----
88
160

skipif mysql # not compatible
query II rowsort label-766
SELECT - 60 / 86 / COUNT ( ALL - 42 ) + - NULLIF ( - 88, - 67 + + 93 - - COUNT ( * ) ) AS col0, 71 + 89 AS col2
----
88
160

onlyif mysql # aggregate syntax: 
query I rowsort label-767
SELECT ALL COUNT( * ) * 74 * 41 AS col1
----
3034

skipif mysql # not compatible
query I rowsort label-767
SELECT ALL COUNT ( * ) * 74 * 41 AS col1
----
3034

query I rowsort
SELECT DISTINCT - 82 AS col1
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-769
SELECT 56 + - COUNT( * ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-769
SELECT 56 + - COUNT ( * ) AS col1
----
55

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-770
SELECT ( + 35 ) DIV + 58 * - CAST( + 48 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-770
SELECT ( + 35 ) / + 58 * - CAST ( + 48 AS INTEGER ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-771
SELECT COUNT( * ) * - CAST( - CAST( 24 AS SIGNED ) AS SIGNED ) col2
----
24

skipif mysql # not compatible
query I rowsort label-771
SELECT COUNT ( * ) * - CAST ( - CAST ( 24 AS INTEGER ) AS INTEGER ) col2
----
24

query I rowsort
SELECT ( - - 40 ) + - 3 AS col1
----
37

query I rowsort
SELECT ALL 93 + - 93 AS col0
----
0

query I rowsort
SELECT ALL 52 * + 26
----
1352

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-775
SELECT DISTINCT CAST( - 1 AS SIGNED ) + + 69 AS col1
----
68

skipif mysql # not compatible
query I rowsort label-775
SELECT DISTINCT CAST ( - 1 AS INTEGER ) + + 69 AS col1
----
68

query I rowsort
SELECT ALL 57 + 50 AS col0
----
107

query I rowsort
SELECT ALL - NULLIF ( + 74, 61 * + 51 + 63 )
----
-74

query I rowsort
SELECT DISTINCT 92 + - 39 * - 80
----
3212

query I rowsort
SELECT ALL - 49 + + 34
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-780
SELECT ALL COUNT( * ) * + COUNT( - - 43 ) / CAST( 78 AS SIGNED ) * + + CASE + 67 WHEN + 21 THEN - - 35 WHEN - AVG ( 75 ) + + + 12 THEN NULL END * + CAST( 70 AS SIGNED ) - - COALESCE ( 26, - 87 + + MIN( DISTINCT + 23 ), + 86 / + ( 3 ) + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-780
SELECT ALL COUNT ( * ) * + COUNT ( - - 43 ) / CAST ( 78 AS INTEGER ) * + + CASE + 67 WHEN + 21 THEN - - 35 WHEN - AVG ( 75 ) + + + 12 THEN NULL END * + CAST ( 70 AS INTEGER ) - - COALESCE ( 26, - 87 + + MIN ( DISTINCT + 23 ), + 86 / + ( 3 ) + COUNT ( * ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-781
SELECT ALL - ( + CAST( NULL AS SIGNED ) ), 7 * 84 * + CAST( - 60 AS SIGNED ) * - ( - CAST( - - 39 AS SIGNED ) ) AS col1
----
NULL
-1375920

skipif mysql # not compatible
query II rowsort label-781
SELECT ALL - ( + CAST ( NULL AS INTEGER ) ), 7 * 84 * + CAST ( - 60 AS INTEGER ) * - ( - CAST ( - - 39 AS INTEGER ) ) AS col1
----
NULL
-1375920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-782
SELECT + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-782
SELECT + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT COALESCE ( 67, - 20 )
----
67

query I rowsort
SELECT + 35 AS col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-785
SELECT ALL + + COUNT( * ) + + MIN( - + 6 )
----
-5

skipif mysql # not compatible
query I rowsort label-785
SELECT ALL + + COUNT ( * ) + + MIN ( - + 6 )
----
-5

query I rowsort
SELECT - - 54 AS col2
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-787
SELECT ALL + - 35 - + 71 + + 74 - - 56 DIV - + 24
----
-34

skipif mysql # not compatible
query I rowsort label-787
SELECT ALL + - 35 - + 71 + + 74 - - 56 / - + 24
----
-34

query I rowsort
SELECT DISTINCT + 79 * 87 AS col0
----
6873

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-789
SELECT DISTINCT + COUNT( ALL 39 ) DIV 28
----
0

skipif mysql # not compatible
query I rowsort label-789
SELECT DISTINCT + COUNT ( ALL 39 ) / 28
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-790
SELECT - 82 DIV 79 * 0 * - 43
----
0

skipif mysql # not compatible
query I rowsort label-790
SELECT - 82 / 79 * 0 * - 43
----
0

query I rowsort
SELECT ALL + 35 * 34
----
1190

query II rowsort
SELECT - 21 * 92 AS col1, 75 AS col2
----
-1932
75

onlyif mysql # aggregate syntax: 
query I rowsort label-793
SELECT COUNT( * ) + - + 3
----
-2

skipif mysql # not compatible
query I rowsort label-793
SELECT COUNT ( * ) + - + 3
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-794
SELECT DISTINCT - - COUNT( * ) * + 78 * - MIN( ALL + 57 )
----
-4446

skipif mysql # not compatible
query I rowsort label-794
SELECT DISTINCT - - COUNT ( * ) * + 78 * - MIN ( ALL + 57 )
----
-4446

query I rowsort
SELECT ALL + 46 col2
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-796
SELECT - 48 DIV + 17 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-796
SELECT - 48 / + 17 AS col1
----
-2

query I rowsort
SELECT 34 * - 36
----
-1224

query I rowsort
SELECT - 62 - + 23 AS col2
----
-85

query I rowsort
SELECT ALL - ( 94 ) AS col2
----
-94

query II rowsort
SELECT 45 AS col0, 50
----
45
50

query I rowsort
SELECT 50 * - 12
----
-600

query I rowsort
SELECT + 6 col0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-803
SELECT SUM( - + CAST( NULL AS SIGNED ) ) - + + 1 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-803
SELECT SUM ( - + CAST ( NULL AS INTEGER ) ) - + + 1 AS col0
----
NULL

query I rowsort
SELECT 40 * + + 69 col1
----
2760

onlyif mysql # DIV for integer division: 
query III rowsort label-805
SELECT + 17 col1, + 62 DIV + 14 AS col0, + 8 + - + 28 + - 68 + + COALESCE ( + 11, - ( + 17 ) * - 12 + + - 58 )
----
17
4
-77

skipif mysql # not compatible
query III rowsort label-805
SELECT + 17 col1, + 62 / + 14 AS col0, + 8 + - + 28 + - 68 + + COALESCE ( + 11, - ( + 17 ) * - 12 + + - 58 )
----
17
4
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-806
SELECT SUM( ALL 53 ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-806
SELECT SUM ( ALL 53 ) AS col0
----
53

query I rowsort
SELECT ALL 46 + 66 * 73 AS col2
----
4864

onlyif mysql # DIV for integer division: 
query I rowsort label-808
SELECT ALL + 81 + + 84 + - + 65 DIV + 81 * 14
----
165

skipif mysql # not compatible
query I rowsort label-808
SELECT ALL + 81 + + 84 + - + 65 / + 81 * 14
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-809
SELECT MAX( ALL + 23 ) col0
----
23

skipif mysql # not compatible
query I rowsort label-809
SELECT MAX ( ALL + 23 ) col0
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-810
SELECT DISTINCT - 17 AS col1, - CAST( - + AVG ( CAST( - - 92 AS SIGNED ) ) AS SIGNED ) col1
----
-17
92

skipif mysql # not compatible
query II rowsort label-810
SELECT DISTINCT - 17 AS col1, - CAST ( - + AVG ( CAST ( - - 92 AS INTEGER ) ) AS INTEGER ) col1
----
-17
92

query III rowsort
SELECT - 74, - ( 65 ) AS col0, + 44 * 51 * 33 + + 24 AS col1
----
-74
-65
74076

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-812
SELECT + 3 + + COALESCE ( 33, + + AVG ( - 81 ) + + + CAST( - 37 AS SIGNED ) ) DIV - 52, + 98 AS col0
----
3
98

skipif mysql # not compatible
query II rowsort label-812
SELECT + 3 + + COALESCE ( 33, + + AVG ( - 81 ) + + + CAST ( - 37 AS INTEGER ) ) / - 52, + 98 AS col0
----
3
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-813
SELECT COUNT( * ) * + - CAST( NULL AS SIGNED ) + + + 74 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-813
SELECT COUNT ( * ) * + - CAST ( NULL AS INTEGER ) + + + 74 col0
----
NULL

query I rowsort
SELECT DISTINCT - 74 * + - 29 + - 98 - NULLIF ( - + 84, + 71 ) AS col2
----
2132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-815
SELECT DISTINCT 81 - + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-815
SELECT DISTINCT 81 - + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL - 41 * 8 AS col2
----
-328

query I rowsort
SELECT + 30 + - 20
----
10

query I rowsort
SELECT DISTINCT - + 4 AS col1
----
-4

query I rowsort
SELECT + 43 + - - 9 AS col0
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-820
SELECT - 81 AS col2, 91 * + CAST( - NULLIF ( + 77, + 2 + - ( - 52 ) ) AS SIGNED ) AS col2
----
-81
-7007

skipif mysql # not compatible
query II rowsort label-820
SELECT - 81 AS col2, 91 * + CAST ( - NULLIF ( + 77, + 2 + - ( - 52 ) ) AS INTEGER ) AS col2
----
-81
-7007

query II rowsort
SELECT + 98 AS col0, 64 AS col0
----
98
64

onlyif mysql # aggregate syntax: 
query I rowsort label-822
SELECT - 79 + 93 + COUNT( * ) * + + 25
----
39

skipif mysql # not compatible
query I rowsort label-822
SELECT - 79 + 93 + COUNT ( * ) * + + 25
----
39

query I rowsort
SELECT + - 84 * + - 88 + - - 89
----
7481

query I rowsort
SELECT + ( ( - 21 ) )
----
-21

query I rowsort
SELECT ALL - 46 col2
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-826
SELECT DISTINCT + 33, 8 + + + 40 + - COUNT( * ) + + 73 * - - 81 * - 7 AS col0
----
33
-41344

skipif mysql # not compatible
query II rowsort label-826
SELECT DISTINCT + 33, 8 + + + 40 + - COUNT ( * ) + + 73 * - - 81 * - 7 AS col0
----
33
-41344

onlyif mysql # aggregate syntax: 
query I rowsort label-827
SELECT - 55 * COUNT( * ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-827
SELECT - 55 * COUNT ( * ) AS col2
----
-55

query I rowsort
SELECT DISTINCT - 79
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-829
SELECT - - CAST( - 73 AS SIGNED ) * - 48 * - 40
----
-140160

skipif mysql # not compatible
query I rowsort label-829
SELECT - - CAST ( - 73 AS INTEGER ) * - 48 * - 40
----
-140160

query I rowsort
SELECT ALL + 57 * 37 AS col2
----
2109

onlyif mysql # DIV for integer division: 
query I rowsort label-831
SELECT ALL + 84 DIV 72
----
1

skipif mysql # not compatible
query I rowsort label-831
SELECT ALL + 84 / 72
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-832
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + COUNT( + 59 ) * - 4
----
NULL

skipif mysql # not compatible
query I rowsort label-832
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + COUNT ( + 59 ) * - 4
----
NULL

query I rowsort
SELECT - ( 65 )
----
-65

query I rowsort
SELECT - 49 col0
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-835
SELECT DISTINCT - ( 93 ) + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-835
SELECT DISTINCT - ( 93 ) + - - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL - 57 * 80, 68 col2
----
-4560
68

onlyif mysql # DIV for integer division: 
query I rowsort label-837
SELECT - 88 DIV + 15 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-837
SELECT - 88 / + 15 AS col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-838
SELECT ALL + 94 + + 16 + - + ( + - MAX( ALL - - 54 ) ) + - 84 AS col2
----
80

skipif mysql # not compatible
query I rowsort label-838
SELECT ALL + 94 + + 16 + - + ( + - MAX ( ALL - - 54 ) ) + - 84 AS col2
----
80

query II rowsort
SELECT 17 AS col1, - 51
----
17
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-840
SELECT 52 col0, SUM( ALL 12 )
----
52
12

skipif mysql # not compatible
query II rowsort label-840
SELECT 52 col0, SUM ( ALL 12 )
----
52
12

query I rowsort
SELECT ALL + 85 + + 71 * + + 69
----
4984

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-842
SELECT DISTINCT + CAST( NULL AS SIGNED ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-842
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-843
SELECT ALL COUNT( * ) * 31 + + 59 AS col1
----
90

skipif mysql # not compatible
query I rowsort label-843
SELECT ALL COUNT ( * ) * 31 + + 59 AS col1
----
90

query I rowsort
SELECT ALL + NULLIF ( + - 7, - 72 )
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-845
SELECT ( + CASE NULLIF ( 86, + - 85 * 43 + + 56 * - 89 ) WHEN - - NULLIF ( + CAST( - 79 AS SIGNED ), 34 ) THEN NULL WHEN 66 + + + 15 THEN 78 * - 91 WHEN + CAST( NULLIF ( 50, - 56 * CAST( CAST( NULL AS DECIMAL ) * ( 76 ) AS SIGNED ) + + 6 * CASE 52 WHEN 99 * - 49 THEN COUNT( * ) END ) AS SIGNED ) + - ( 97 ) / + CAST( NULL AS SIGNED ) THEN 74 / 47 WHEN 60 * - COUNT( * ) + + 30 * + 23 THEN NULL ELSE + 88 END )
----
88

skipif mysql # not compatible
query I rowsort label-845
SELECT ( + CASE NULLIF ( 86, + - 85 * 43 + + 56 * - 89 ) WHEN - - NULLIF ( + CAST ( - 79 AS INTEGER ), 34 ) THEN NULL WHEN 66 + + + 15 THEN 78 * - 91 WHEN + CAST ( NULLIF ( 50, - 56 * CAST ( CAST ( NULL AS REAL ) * ( 76 ) AS INTEGER ) + + 6 * CASE 52 WHEN 99 * - 49 THEN COUNT ( * ) END ) AS INTEGER ) + - ( 97 ) / + CAST ( NULL AS INTEGER ) THEN 74 / 47 WHEN 60 * - COUNT ( * ) + + 30 * + 23 THEN NULL ELSE + 88 END )
----
88

query I rowsort
SELECT DISTINCT COALESCE ( NULLIF ( + 19, - + 14 ), ( - 15 ) ) * - ( - 61 ) + - - 80 + + 27
----
1266

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-847
SELECT + COUNT( DISTINCT + 26 ) AS col2, + AVG ( DISTINCT + 28 ) * - CAST( NULL AS SIGNED )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-847
SELECT + COUNT ( DISTINCT + 26 ) AS col2, + AVG ( DISTINCT + 28 ) * - CAST ( NULL AS INTEGER )
----
1
NULL

query II rowsort
SELECT + 83 AS col1, 13 AS col1
----
83
13

onlyif mysql # aggregate syntax: 
query I rowsort label-849
SELECT + 98 + - ( 56 ) * + + COUNT( * )
----
42

skipif mysql # not compatible
query I rowsort label-849
SELECT + 98 + - ( 56 ) * + + COUNT ( * )
----
42

query I rowsort
SELECT NULLIF ( - 11, 22 )
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-851
SELECT 22 * + + 16 + 1 DIV 76 AS col1
----
352

skipif mysql # not compatible
query I rowsort label-851
SELECT 22 * + + 16 + 1 / 76 AS col1
----
352

query II rowsort
SELECT + 40 AS col2, - CASE + 20 WHEN 79 * 12 THEN + - 26 * - 63 ELSE NULL END AS col0
----
40
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-853
SELECT ALL - 45 * - - ( + 12 ) * COUNT( * ) - ( + 74 ) + 15
----
-599

skipif mysql # not compatible
query I rowsort label-853
SELECT ALL - 45 * - - ( + 12 ) * COUNT ( * ) - ( + 74 ) + 15
----
-599

onlyif mysql # DIV for integer division: 
query I rowsort label-854
SELECT - 1 DIV + 75
----
0

skipif mysql # not compatible
query I rowsort label-854
SELECT - 1 / + 75
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-855
SELECT ALL 43 * - ( + 37 ) - SUM( DISTINCT + 57 )
----
-1648

skipif mysql # not compatible
query I rowsort label-855
SELECT ALL 43 * - ( + 37 ) - SUM ( DISTINCT + 57 )
----
-1648

onlyif mysql # aggregate syntax: 
query I rowsort label-856
SELECT ALL + + ( ( - CASE - - ( + AVG ( - 64 ) ) WHEN - COUNT( ALL - + 66 ) THEN + 15 * + 77 - 97 WHEN - + 76 + - - 70 THEN NULL ELSE NULL END ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-856
SELECT ALL + + ( ( - CASE - - ( + AVG ( - 64 ) ) WHEN - COUNT ( ALL - + 66 ) THEN + 15 * + 77 - 97 WHEN - + 76 + - - 70 THEN NULL ELSE NULL END ) ) col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-857
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + - 32 + 77
----
NULL

skipif mysql # not compatible
query I rowsort label-857
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + - 32 + 77
----
NULL

query I rowsort
SELECT DISTINCT + + 93
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-859
SELECT ALL + - SUM( ALL + + 29 )
----
-29

skipif mysql # not compatible
query I rowsort label-859
SELECT ALL + - SUM ( ALL + + 29 )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-860
SELECT DISTINCT + NULLIF ( + + 7, NULLIF ( - COUNT( * ), 84 ) ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-860
SELECT DISTINCT + NULLIF ( + + 7, NULLIF ( - COUNT ( * ), 84 ) ) AS col1
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-861
SELECT - + COALESCE ( + - 58, - + 40, 83 ) * - COALESCE ( - COUNT( * ), - 64 ) / + 70 + COUNT( * ) - + 1 + + - CASE 25 WHEN - 58 * - 63 THEN CAST( + - 38 AS SIGNED ) * 23 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-861
SELECT - + COALESCE ( + - 58, - + 40, 83 ) * - COALESCE ( - COUNT ( * ), - 64 ) / + 70 + COUNT ( * ) - + 1 + + - CASE 25 WHEN - 58 * - 63 THEN CAST ( + - 38 AS INTEGER ) * 23 ELSE NULL END
----
NULL

query II rowsort
SELECT 62 col0, - 98
----
62
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-863
SELECT ALL + + COUNT( * ), + COUNT( * ) AS col0
----
1
1

skipif mysql # not compatible
query II rowsort label-863
SELECT ALL + + COUNT ( * ), + COUNT ( * ) AS col0
----
1
1

query I rowsort
SELECT - + 40 AS col1
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-865
SELECT - 71 * + 2 + - 8 * - 39 - - 96 DIV + 99 + - + 49 AS col2
----
121

skipif mysql # not compatible
query I rowsort label-865
SELECT - 71 * + 2 + - 8 * - 39 - - 96 / + 99 + - + 49 AS col2
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-866
SELECT + MAX( DISTINCT + 96 ) * - 35 AS col1
----
-3360

skipif mysql # not compatible
query I rowsort label-866
SELECT + MAX ( DISTINCT + 96 ) * - 35 AS col1
----
-3360

query I rowsort
SELECT DISTINCT - 14 AS col0
----
-14

query I rowsort
SELECT ALL + 69 * + + 9 AS col1
----
621

onlyif mysql # DIV for integer division: 
query I rowsort label-869
SELECT + 39 DIV 48 * + 74 DIV - - 10 * 11
----
0

skipif mysql # not compatible
query I rowsort label-869
SELECT + 39 / 48 * + 74 / - - 10 * 11
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-870
SELECT ALL 50 AS col2, ( + 0 ) * + + CASE 58 WHEN - 39 THEN + CAST( NULL AS SIGNED ) * + COUNT( ALL - 53 ) ELSE NULL END AS col0
----
50
NULL

skipif mysql # not compatible
query II rowsort label-870
SELECT ALL 50 AS col2, ( + 0 ) * + + CASE 58 WHEN - 39 THEN + CAST ( NULL AS INTEGER ) * + COUNT ( ALL - 53 ) ELSE NULL END AS col0
----
50
NULL

query II rowsort
SELECT ALL 11 AS col2, + 35 - - + 53 + - - 87 * - - CASE + 45 WHEN 59 THEN NULL ELSE 92 END col1
----
11
8092

query I rowsort
SELECT - COALESCE ( - 87, + - 77, 66 ) AS col0
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-873
SELECT ALL COUNT( * ), 38 col0
----
1
38

skipif mysql # not compatible
query II rowsort label-873
SELECT ALL COUNT ( * ), 38 col0
----
1
38

onlyif mysql # aggregate syntax: 
query II rowsort label-874
SELECT ALL 40 + 30 + - MIN( + 69 ) AS col2, + ( NULLIF ( - + ( 98 ), - 65 + 4 * 24 * + + 26 * + 87 ) ) + + 22
----
1
-76

skipif mysql # not compatible
query II rowsort label-874
SELECT ALL 40 + 30 + - MIN ( + 69 ) AS col2, + ( NULLIF ( - + ( 98 ), - 65 + 4 * 24 * + + 26 * + 87 ) ) + + 22
----
1
-76

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-875
SELECT - CASE 89 WHEN + + 42 + 11 THEN NULL ELSE 17 END - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-875
SELECT - CASE 89 WHEN + + 42 + 11 THEN NULL ELSE 17 END - - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT - ( - - 19 ) + + 51 * 54 AS col2
----
2735

query II rowsort
SELECT DISTINCT 18 + - 49 AS col0, 4 AS col2
----
-31
4

query I rowsort
SELECT - ( 31 )
----
-31

query I rowsort
SELECT 14 col1
----
14

query I rowsort
SELECT - 47 * + 94 AS col1
----
-4418

query I rowsort
SELECT ALL NULLIF ( + + 2, - 93 * - 39 ) AS col0
----
2

query I rowsort
SELECT + 76 * 7
----
532

onlyif mysql # DIV for integer division: 
query I rowsort label-883
SELECT DISTINCT 82 + - 6 * 47 DIV - 43 AS col1
----
88

skipif mysql # not compatible
query I rowsort label-883
SELECT DISTINCT 82 + - 6 * 47 / - 43 AS col1
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-884
SELECT DISTINCT - 35 + + 12 DIV + COUNT( * ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-884
SELECT DISTINCT - 35 + + 12 / + COUNT ( * ) AS col2
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-885
SELECT ALL CAST( 12 AS SIGNED )
----
12

skipif mysql # not compatible
query I rowsort label-885
SELECT ALL CAST ( 12 AS INTEGER )
----
12

query I rowsort
SELECT - 70 AS col1
----
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-887
SELECT DISTINCT - 36 + + CASE - CASE - COUNT( * ) WHEN + + AVG ( ALL + 9 ) - + 86 THEN - + 9 END WHEN + - 50 * - NULLIF ( NULLIF ( - COUNT( * ), - ( - 92 ) * + 73 + - 78 ), + NULLIF ( - 18, - ( 5 ) ) ) DIV 8 THEN NULL WHEN 28 + 25 THEN + 33 ELSE 40 DIV 52 END
----
-36

skipif mysql # not compatible
query I rowsort label-887
SELECT DISTINCT - 36 + + CASE - CASE - COUNT ( * ) WHEN + + AVG ( ALL + 9 ) - + 86 THEN - + 9 END WHEN + - 50 * - NULLIF ( NULLIF ( - COUNT ( * ), - ( - 92 ) * + 73 + - 78 ), + NULLIF ( - 18, - ( 5 ) ) ) / 8 THEN NULL WHEN 28 + 25 THEN + 33 ELSE 40 / 52 END
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-888
SELECT + 75 + - 97 * COUNT( * ), - COUNT( * ) + 6 AS col2
----
-22
5

skipif mysql # not compatible
query II rowsort label-888
SELECT + 75 + - 97 * COUNT ( * ), - COUNT ( * ) + 6 AS col2
----
-22
5

onlyif mysql # aggregate syntax: 
query II rowsort label-889
SELECT - 81 * + 47, COUNT( * ) col2
----
-3807
1

skipif mysql # not compatible
query II rowsort label-889
SELECT - 81 * + 47, COUNT ( * ) col2
----
-3807
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-890
SELECT ALL 3 DIV - + 23 * + 63 * 55 - + + COALESCE ( + 74, + 15, + - ( - - ( + + 61 ) ) + + 4 + - 83 * - 41 DIV + 46 DIV + COALESCE ( 20, - + CAST( NULL AS SIGNED ) ) ) AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-890
SELECT ALL 3 / - + 23 * + 63 * 55 - + + COALESCE ( + 74, + 15, + - ( - - ( + + 61 ) ) + + 4 + - 83 * - 41 / + 46 / + COALESCE ( 20, - + CAST ( NULL AS INTEGER ) ) ) AS col0
----
-74

query I rowsort
SELECT ALL + 63 * + 63
----
3969

query I rowsort
SELECT DISTINCT - 9 * + 58 AS col2
----
-522

onlyif mysql # aggregate syntax: 
query I rowsort label-893
SELECT + 22 * + 3 * - 81 * + + COUNT( * ) - + + 61 * MAX( ALL + + 48 ) * - 71 + 99
----
202641

skipif mysql # not compatible
query I rowsort label-893
SELECT + 22 * + 3 * - 81 * + + COUNT ( * ) - + + 61 * MAX ( ALL + + 48 ) * - 71 + 99
----
202641

query I rowsort
SELECT - 51 * - 57
----
2907

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-895
SELECT ALL + MIN( ALL + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-895
SELECT ALL + MIN ( ALL + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-896
SELECT ( - - 24 ) / COUNT( ALL 26 ) + 17 - + + COUNT( 2 ) / 2 * + CAST( NULL AS SIGNED ) - 16 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-896
SELECT ( - - 24 ) / COUNT ( ALL 26 ) + 17 - + + COUNT ( 2 ) / 2 * + CAST ( NULL AS INTEGER ) - 16 AS col1
----
NULL

query I rowsort
SELECT ALL + 64 * 60 AS col2
----
3840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-898
SELECT DISTINCT - 41 DIV - CAST( + + COUNT( DISTINCT - 55 ) AS SIGNED ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-898
SELECT DISTINCT - 41 / - CAST ( + + COUNT ( DISTINCT - 55 ) AS INTEGER ) AS col2
----
41

query II rowsort
SELECT DISTINCT - ( 31 ) AS col1, + 60 AS col0
----
-31
60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-900
SELECT ALL - + CAST( + - 55 AS SIGNED ) AS col1, 59
----
55
59

skipif mysql # not compatible
query II rowsort label-900
SELECT ALL - + CAST ( + - 55 AS INTEGER ) AS col1, 59
----
55
59

onlyif mysql # aggregate syntax: 
query I rowsort label-901
SELECT - COUNT( * ) * - COUNT( 66 ) + 79 + 68 * - 98 * - - 82 + + - 92 AS col2
----
-546460

skipif mysql # not compatible
query I rowsort label-901
SELECT - COUNT ( * ) * - COUNT ( 66 ) + 79 + 68 * - 98 * - - 82 + + - 92 AS col2
----
-546460

query I rowsort
SELECT - 24 * 53 - 64
----
-1336

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-903
SELECT ALL - CAST( - + 71 AS SIGNED )
----
71

skipif mysql # not compatible
query I rowsort label-903
SELECT ALL - CAST ( - + 71 AS INTEGER )
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-904
SELECT 19 + + 4 * 97 + + COUNT( * ) * + 98 DIV 75
----
408

skipif mysql # not compatible
query I rowsort label-904
SELECT 19 + + 4 * 97 + + COUNT ( * ) * + 98 / 75
----
408

onlyif mysql # aggregate syntax: 
query I rowsort label-905
SELECT DISTINCT - 89 * - NULLIF ( + 96, 5 ) * - 89 * 45 + - 32 + + COUNT( * ) * - + 10 * + 64 * 29
----
-34237312

skipif mysql # not compatible
query I rowsort label-905
SELECT DISTINCT - 89 * - NULLIF ( + 96, 5 ) * - 89 * 45 + - 32 + + COUNT ( * ) * - + 10 * + 64 * 29
----
-34237312

onlyif mysql # aggregate syntax: 
query I rowsort label-906
SELECT + COUNT( ALL 81 ) * SUM( - - 7 ) + + 86 col0
----
93

skipif mysql # not compatible
query I rowsort label-906
SELECT + COUNT ( ALL 81 ) * SUM ( - - 7 ) + + 86 col0
----
93

query I rowsort
SELECT ( 76 ) * - - 48 * - 30
----
-109440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-908
SELECT DISTINCT 40 * - 16 + + COALESCE ( - - 41, - CAST( - COALESCE ( - 98, + COUNT( * ) ) AS SIGNED ) DIV 30 ) * + MIN( ALL ( - - 59 ) ) + - CAST( + - 34 AS SIGNED )
----
1813

skipif mysql # not compatible
query I rowsort label-908
SELECT DISTINCT 40 * - 16 + + COALESCE ( - - 41, - CAST ( - COALESCE ( - 98, + COUNT ( * ) ) AS INTEGER ) / 30 ) * + MIN ( ALL ( - - 59 ) ) + - CAST ( + - 34 AS INTEGER )
----
1813

onlyif mysql # aggregate syntax: 
query I rowsort label-909
SELECT ALL COUNT( * ) + - 7 * - - COUNT( * ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-909
SELECT ALL COUNT ( * ) + - 7 * - - COUNT ( * ) AS col1
----
-6

query I rowsort
SELECT ALL - - CASE 44 WHEN - ( - 32 ) THEN NULL WHEN - 32 THEN 89 + + + 1 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-911
SELECT DISTINCT - - 73 * - - COUNT( 42 )
----
73

skipif mysql # not compatible
query I rowsort label-911
SELECT DISTINCT - - 73 * - - COUNT ( 42 )
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-912
SELECT MAX( 17 ) + + NULLIF ( - COUNT( * ), NULLIF ( 71, 25 ) ) DIV + COUNT( * ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-912
SELECT MAX ( 17 ) + + NULLIF ( - COUNT ( * ), NULLIF ( 71, 25 ) ) / + COUNT ( * ) AS col2
----
16

query I rowsort
SELECT ALL - + 67
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-914
SELECT + 64 + + - 20 + - - SUM( 82 )
----
126

skipif mysql # not compatible
query I rowsort label-914
SELECT + 64 + + - 20 + - - SUM ( 82 )
----
126

query I rowsort
SELECT ALL COALESCE ( 35, + 47 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-916
SELECT + 88 * + - SUM( ( + + 3 ) ) * + 83 + + 66 + - ( 75 ) AS col2
----
-21921

skipif mysql # not compatible
query I rowsort label-916
SELECT + 88 * + - SUM ( ( + + 3 ) ) * + 83 + + 66 + - ( 75 ) AS col2
----
-21921

onlyif mysql # aggregate syntax: 
query I rowsort label-917
SELECT ALL 77 + - - 95 + 97 - + + COUNT( * )
----
268

skipif mysql # not compatible
query I rowsort label-917
SELECT ALL 77 + - - 95 + 97 - + + COUNT ( * )
----
268

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-918
SELECT DISTINCT 36 / CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-918
SELECT DISTINCT 36 / CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 94 + 81
----
175

query I rowsort
SELECT 50 * + + 8
----
400

onlyif mysql # aggregate syntax: 
query II rowsort label-921
SELECT 91, + COUNT( * ) AS col0
----
91
1

skipif mysql # not compatible
query II rowsort label-921
SELECT 91, + COUNT ( * ) AS col0
----
91
1

query I rowsort
SELECT ALL 71 * 66 * + 2 AS col2
----
9372

query I rowsort
SELECT ALL 29 + + - 74
----
-45

query I rowsort
SELECT DISTINCT 88 + - 59 col1
----
29

query I rowsort
SELECT ALL 23 * + - 37 AS col2
----
-851

onlyif mysql # aggregate syntax: 
query II rowsort label-926
SELECT DISTINCT 82 * - ( 53 ) AS col0, - 83 + - - COUNT( * ) AS col0
----
-4346
-82

skipif mysql # not compatible
query II rowsort label-926
SELECT DISTINCT 82 * - ( 53 ) AS col0, - 83 + - - COUNT ( * ) AS col0
----
-4346
-82

query I rowsort
SELECT DISTINCT 64 AS col0
----
64

query I rowsort
SELECT 55 + - 12
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-929
SELECT - 67 col2, CASE WHEN + 29 IS NOT NULL THEN 69 ELSE + MIN( + 72 ) END AS col0
----
-67
69

skipif mysql # not compatible
query II rowsort label-929
SELECT - 67 col2, CASE WHEN + 29 IS NOT NULL THEN 69 ELSE + MIN ( + 72 ) END AS col0
----
-67
69

query II rowsort
SELECT ALL 69, + 4 * - 69 * + 73 col1
----
69
-20148

query I rowsort
SELECT 4 * + 35
----
140

query I rowsort
SELECT 75 * + + 64 AS col2
----
4800

query II rowsort
SELECT DISTINCT - 32 AS col2, - 31 AS col0
----
-32
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-934
SELECT ALL - COUNT( - + 82 ) * + 8 * ( + ( + COALESCE ( 3, MIN( ALL - 46 ) ) ) ) + - - 7
----
-17

skipif mysql # not compatible
query I rowsort label-934
SELECT ALL - COUNT ( - + 82 ) * + 8 * ( + ( + COALESCE ( 3, MIN ( ALL - 46 ) ) ) ) + - - 7
----
-17

query I rowsort
SELECT + ( 76 )
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-936
SELECT ( + + 39 ) * + 39 + + 58 + - 93 + - SUM( DISTINCT 47 ) * - + 10 DIV - + 1 AS col0
----
1016

skipif mysql # not compatible
query I rowsort label-936
SELECT ( + + 39 ) * + 39 + + 58 + - 93 + - SUM ( DISTINCT 47 ) * - + 10 / - + 1 AS col0
----
1016

query I rowsort
SELECT + 49 * + 21
----
1029

onlyif mysql # aggregate syntax: 
query I rowsort label-938
SELECT ALL - 51 * + + COUNT( * )
----
-51

skipif mysql # not compatible
query I rowsort label-938
SELECT ALL - 51 * + + COUNT ( * )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-939
SELECT ALL - COALESCE ( + MIN( - 81 ), COUNT( * ) ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-939
SELECT ALL - COALESCE ( + MIN ( - 81 ), COUNT ( * ) ) AS col0
----
81

query I rowsort
SELECT + + 88 AS col2
----
88

query I rowsort
SELECT + + 18 col0
----
18

query I rowsort
SELECT ALL + 2 + 97 AS col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-943
SELECT + + COUNT( * ) col1
----
1

skipif mysql # not compatible
query I rowsort label-943
SELECT + + COUNT ( * ) col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-944
SELECT ALL - + 13 + + - 15 - - + CAST( + COUNT( * ) AS SIGNED )
----
-27

skipif mysql # not compatible
query I rowsort label-944
SELECT ALL - + 13 + + - 15 - - + CAST ( + COUNT ( * ) AS INTEGER )
----
-27

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

skipif mysql # not compatible
query I rowsort label-945
SELECT ALL - COUNT ( * ) * + MIN ( ALL + + ( + + CAST ( NULL AS INTEGER ) ) ) * + + ( 78 )
----
NULL

query II rowsort
SELECT ALL - + 38, 74 - + 28 col2
----
-38
46

query I rowsort
SELECT ALL + - 0 + + - 37 AS col1
----
-37

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-948
SELECT DISTINCT + - 83 + - 14 + - + CAST( - 90 AS SIGNED ) DIV 28 + + 67 DIV + + 74
----
-94

skipif mysql # not compatible
query I rowsort label-948
SELECT DISTINCT + - 83 + - 14 + - + CAST ( - 90 AS INTEGER ) / 28 + + 67 / + + 74
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-949
SELECT DISTINCT + COALESCE ( 36, 80 ) + + COUNT( * ) + - 8
----
29

skipif mysql # not compatible
query I rowsort label-949
SELECT DISTINCT + COALESCE ( 36, 80 ) + + COUNT ( * ) + - 8
----
29

query I rowsort
SELECT DISTINCT + 8 + - 28 col1
----
-20

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-951
SELECT + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-951
SELECT + + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT 82 * - 91 AS col1
----
-7462

query I rowsort
SELECT - 62 * - 8 AS col0
----
496

onlyif mysql # aggregate syntax: 
query I rowsort label-954
SELECT ALL + - 33 + + - COUNT( * ) * NULLIF ( + - 99, - + 40 )
----
66

skipif mysql # not compatible
query I rowsort label-954
SELECT ALL + - 33 + + - COUNT ( * ) * NULLIF ( + - 99, - + 40 )
----
66

query I rowsort
SELECT 50 - - + 24 * + NULLIF ( + 79, 99 * - 79 )
----
1946

query II rowsort
SELECT ALL - 35 + + 38 AS col0, - 86 + + 55 AS col0
----
3
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-957
SELECT 59 - + 99 * - + COALESCE ( - 38, MAX( ALL - 57 ) DIV + 77 + + - 47 ) + - - 8 DIV 17 DIV - 50 AS col2
----
-3703

skipif mysql # not compatible
query I rowsort label-957
SELECT 59 - + 99 * - + COALESCE ( - 38, MAX ( ALL - 57 ) / + 77 + + - 47 ) + - - 8 / 17 / - 50 AS col2
----
-3703

onlyif mysql # aggregate syntax: 
query I rowsort label-958
SELECT ALL - SUM( ALL - 13 ) * - 42
----
-546

skipif mysql # not compatible
query I rowsort label-958
SELECT ALL - SUM ( ALL - 13 ) * - 42
----
-546

query I rowsort
SELECT ALL 47 * + 13 * - 37
----
-22607

query I rowsort
SELECT DISTINCT + 53 * 60
----
3180

query I rowsort
SELECT - 54 col1
----
-54

query II rowsort
SELECT ALL + 35 * + + 28 * + - 40 * + 23, 12 AS col2
----
-901600
12

query I rowsort
SELECT 59 + - 98 AS col2
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-964
SELECT 94 - + 5 DIV + 32 AS col1
----
94

skipif mysql # not compatible
query I rowsort label-964
SELECT 94 - + 5 / + 32 AS col1
----
94

query I rowsort
SELECT ALL NULLIF ( + CASE + 55 WHEN + 5 + + ( 75 ) THEN NULL ELSE + + 23 END, - + 56 ) AS col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-966
SELECT SUM( ALL - 41 ) * + 86 col1
----
-3526

skipif mysql # not compatible
query I rowsort label-966
SELECT SUM ( ALL - 41 ) * + 86 col1
----
-3526

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-967
SELECT COALESCE ( 70, - + ( + 28 ) ) * ( - COUNT( * ) ) + - 8 + + + NULLIF ( - CAST( + 72 AS SIGNED ), 63 + - - 54 - - CAST( NULL AS SIGNED ) + - 17 + - 57 * - CASE - - 24 WHEN + 70 THEN NULL WHEN + 37 * 20 THEN ( - 8 ) ELSE 27 * 70 END + - 10 * 32 ) AS col1
----
-150

skipif mysql # not compatible
query I rowsort label-967
SELECT COALESCE ( 70, - + ( + 28 ) ) * ( - COUNT ( * ) ) + - 8 + + + NULLIF ( - CAST ( + 72 AS INTEGER ), 63 + - - 54 - - CAST ( NULL AS INTEGER ) + - 17 + - 57 * - CASE - - 24 WHEN + 70 THEN NULL WHEN + 37 * 20 THEN ( - 8 ) ELSE 27 * 70 END + - 10 * 32 ) AS col1
----
-150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-968
SELECT ALL COUNT( ALL + 70 ) DIV 2 * + + SUM( + 30 )
----
0

skipif mysql # not compatible
query I rowsort label-968
SELECT ALL COUNT ( ALL + 70 ) / 2 * + + SUM ( + 30 )
----
0

query I rowsort
SELECT 84 * + 59 * + + 67
----
332052

query I rowsort
SELECT - 26 col2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-971
SELECT CASE + + 6 WHEN 1 THEN NULL ELSE - 68 END + - + MAX( - 4 ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-971
SELECT CASE + + 6 WHEN 1 THEN NULL ELSE - 68 END + - + MAX ( - 4 ) AS col0
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-972
SELECT ALL + 0 DIV - 12 * - - 80
----
0

skipif mysql # not compatible
query I rowsort label-972
SELECT ALL + 0 / - 12 * - - 80
----
0

query I rowsort
SELECT NULLIF ( - 50, + 44 * - 83 * + 52 - - + 89 + + + 59 ) * + 2
----
-100

onlyif mysql # DIV for integer division: 
query I rowsort label-974
SELECT ALL + 91 DIV 20 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-974
SELECT ALL + 91 / 20 AS col1
----
4

query I rowsort
SELECT ALL 10 * + 89 AS col2
----
890

query I rowsort
SELECT + 16 * + 83 * 14 AS col2
----
18592

query I rowsort
SELECT DISTINCT 39 AS col1
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-978
SELECT - MIN( - - COALESCE ( + 26, 35 DIV - + 91 - + - 79 + + 9 ) )
----
-26

skipif mysql # not compatible
query I rowsort label-978
SELECT - MIN ( - - COALESCE ( + 26, 35 / - + 91 - + - 79 + + 9 ) )
----
-26

query I rowsort
SELECT DISTINCT 94 col1
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-980
SELECT + 47 * + SUM( ALL 80 ) DIV - - COUNT( * ) + + + MIN( 72 ) AS col2
----
3832

skipif mysql # not compatible
query I rowsort label-980
SELECT + 47 * + SUM ( ALL 80 ) / - - COUNT ( * ) + + + MIN ( 72 ) AS col2
----
3832

query I rowsort
SELECT + - 2 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-982
SELECT COUNT( + - 79 )
----
1

skipif mysql # not compatible
query I rowsort label-982
SELECT COUNT ( + - 79 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-983
SELECT ALL + 23 * - ( - - NULLIF ( 38, - 6 + + 33 ) ) + + - 50 * MIN( ALL 81 ) + + 98 + - 51 + - 91 - - + 19 / + 62 + 34 - + 91 * + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-983
SELECT ALL + 23 * - ( - - NULLIF ( 38, - 6 + + 33 ) ) + + - 50 * MIN ( ALL 81 ) + + 98 + - 51 + - 91 - - + 19 / + 62 + 34 - + 91 * + CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT 25 * + 54 - + - 98 AS col2
----
1448

query I rowsort
SELECT DISTINCT + - NULLIF ( - + 56, + - 89 / - 98 * + 25 ) col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-986
SELECT ALL + 7 * - - 3 * - - 74 + + - CASE - + MAX( ALL 17 ) WHEN - 99 + - 76 THEN 15 * + 81 + - 7 WHEN + 18 THEN + 86 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-986
SELECT ALL + 7 * - - 3 * - - 74 + + - CASE - + MAX ( ALL 17 ) WHEN - 99 + - 76 THEN 15 * + 81 + - 7 WHEN + 18 THEN + 86 END AS col2
----
NULL

query I rowsort
SELECT + 57 AS col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-988
SELECT ALL - ( - - 25 ) * + 38 + - 72 + - COUNT( * ) AS col0
----
-1023

skipif mysql # not compatible
query I rowsort label-988
SELECT ALL - ( - - 25 ) * + 38 + - 72 + - COUNT ( * ) AS col0
----
-1023

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-989
SELECT - 19 - + 66 * + CAST( 53 AS SIGNED ) + - 74 AS col2
----
-3591

skipif mysql # not compatible
query I rowsort label-989
SELECT - 19 - + 66 * + CAST ( 53 AS INTEGER ) + - 74 AS col2
----
-3591

query I rowsort
SELECT DISTINCT + - 89 AS col0
----
-89

query II rowsort
SELECT + 63 + + 17 AS col2, 98 * 69 * 38
----
80
256956

query I rowsort
SELECT 10 * + 63 - + + 13
----
617

onlyif mysql # aggregate syntax: 
query I rowsort label-993
SELECT ALL 7 * - 15 * COUNT( + 54 )
----
-105

skipif mysql # not compatible
query I rowsort label-993
SELECT ALL 7 * - 15 * COUNT ( + 54 )
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-994
SELECT + - ( MIN( ALL - 16 ) ) * - - 13 * MAX( ALL - 32 )
----
-6656

skipif mysql # not compatible
query I rowsort label-994
SELECT + - ( MIN ( ALL - 16 ) ) * - - 13 * MAX ( ALL - 32 )
----
-6656

query I rowsort
SELECT + 30 col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-996
SELECT ALL + ( COUNT( * ) ) * + + COUNT( * ) + + 87 - - 12 + + 4 * 91 AS col2
----
464

skipif mysql # not compatible
query I rowsort label-996
SELECT ALL + ( COUNT ( * ) ) * + + COUNT ( * ) + + 87 - - 12 + + 4 * 91 AS col2
----
464

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-997
SELECT + - CAST( NULL AS SIGNED ) * - 67 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-997
SELECT + - CAST ( NULL AS INTEGER ) * - 67 + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + ( + 85 ) AS col2
----
85

query I rowsort
SELECT DISTINCT 59 * 93 * - 55 AS col2
----
-301785

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1000
SELECT ALL 98 * + - ( + NULLIF ( - - 59, + CAST( - 10 AS DECIMAL ) / + NULLIF ( MIN( ALL 49 ), - + 70 - - - ( - - 58 ) - 86 * CAST( NULL AS SIGNED ) ) ) ) - - 90 * COUNT( * ) * + - 11 * + + 94
----
-98842

skipif mysql # not compatible
query I rowsort label-1000
SELECT ALL 98 * + - ( + NULLIF ( - - 59, + CAST ( - 10 AS REAL ) / + NULLIF ( MIN ( ALL 49 ), - + 70 - - - ( - - 58 ) - 86 * CAST ( NULL AS INTEGER ) ) ) ) - - 90 * COUNT ( * ) * + - 11 * + + 94
----
-98842

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1001
SELECT DISTINCT + SUM( CAST( NULL AS SIGNED ) ) / - 16 AS col2, SUM( - 64 ) * - 74 - - ( + 52 ) * + 5 * - 70 - + 32 + - ( 16 ) * - 45 - + - 41 * - 5 + + + ( + 31 ) AS col1
----
NULL
-12950

skipif mysql # not compatible
query II rowsort label-1001
SELECT DISTINCT + SUM ( CAST ( NULL AS INTEGER ) ) / - 16 AS col2, SUM ( - 64 ) * - 74 - - ( + 52 ) * + 5 * - 70 - + 32 + - ( 16 ) * - 45 - + - 41 * - 5 + + + ( + 31 ) AS col1
----
NULL
-12950

query I rowsort
SELECT ALL 17 * 3 - 75 + + 12
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1003
SELECT - 6 DIV ( + 49 ) * 1 * 18 DIV - COALESCE ( - - 69, 33 * + + COUNT( * ) + + 49 * + - COUNT( * ), 88 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1003
SELECT - 6 / ( + 49 ) * 1 * 18 / - COALESCE ( - - 69, 33 * + + COUNT ( * ) + + 49 * + - COUNT ( * ), 88 ) AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1004
SELECT + 17 + + - 97 - - 6 + - 19 + 55 + + COUNT( * ) * + COUNT( * ) - - - COUNT( * ) DIV 8
----
-37

skipif mysql # not compatible
query I rowsort label-1004
SELECT + 17 + + - 97 - - 6 + - 19 + 55 + + COUNT ( * ) * + COUNT ( * ) - - - COUNT ( * ) / 8
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-1005
SELECT MIN( DISTINCT + 24 ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-1005
SELECT MIN ( DISTINCT + 24 ) AS col0
----
24

query I rowsort
SELECT ALL CASE 19 WHEN - 45 THEN NULL WHEN - 39 * - 52 THEN NULL WHEN - + 84 * 44 THEN + 74 ELSE NULL END
----
NULL

query I rowsort
SELECT - 58 col1
----
-58

query I rowsort
SELECT ALL ( + 28 ) col2
----
28

query I rowsort
SELECT ALL + 4 * - + 79 AS col2
----
-316

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1010
SELECT - ( COUNT( * ) ) + - 16 * 18 DIV - ( + 1 )
----
287

skipif mysql # not compatible
query I rowsort label-1010
SELECT - ( COUNT ( * ) ) + - 16 * 18 / - ( + 1 )
----
287

query I rowsort
SELECT - 21 AS col2
----
-21

query I rowsort
SELECT ALL + 5 * - 50 AS col0
----
-250

query I rowsort
SELECT - 16 * 29
----
-464

query I rowsort
SELECT ALL ( - - 25 ) AS col2
----
25

query I rowsort
SELECT ALL ( - 39 )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-1016
SELECT - COUNT( * ) + + 65 * + - 77
----
-5006

skipif mysql # not compatible
query I rowsort label-1016
SELECT - COUNT ( * ) + + 65 * + - 77
----
-5006

query II rowsort
SELECT + 10 + - - 1 * + 72 AS col0, + ( 11 )
----
82
11

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

skipif mysql # not compatible
query I rowsort label-1018
SELECT ALL CAST ( + 82 AS INTEGER )
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-1019
SELECT - 80 DIV 10 AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-1019
SELECT - 80 / 10 AS col1
----
-8

query II rowsort
SELECT + + 40 + - + 51 + 91 AS col2, + 65 * + + 79
----
80
5135

onlyif mysql # aggregate syntax: 
query I rowsort label-1021
SELECT ALL + 35 + - COUNT( * )
----
34

skipif mysql # not compatible
query I rowsort label-1021
SELECT ALL + 35 + - COUNT ( * )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1022
SELECT MAX( ALL + 23 ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-1022
SELECT MAX ( ALL + 23 ) AS col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1023
SELECT ALL + CASE - 5 WHEN - COUNT( * ) THEN + ( + 87 ) * + 98 / + 67 * - COUNT( * ) / - + 17 END + + MAX( + + 11 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1023
SELECT ALL + CASE - 5 WHEN - COUNT ( * ) THEN + ( + 87 ) * + 98 / + 67 * - COUNT ( * ) / - + 17 END + + MAX ( + + 11 )
----
NULL

query I rowsort
SELECT - 54 + 85 + - 6 AS col0
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-1025
SELECT ALL ( + SUM( DISTINCT 76 ) ), - 19 * 50 col2
----
76
-950

skipif mysql # not compatible
query II rowsort label-1025
SELECT ALL ( + SUM ( DISTINCT 76 ) ), - 19 * 50 col2
----
76
-950

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1026
SELECT DISTINCT + 33 + + 66 * - 91 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1026
SELECT DISTINCT + 33 + + 66 * - 91 + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1027
SELECT DISTINCT - - 91 DIV - 75
----
-1

skipif mysql # not compatible
query I rowsort label-1027
SELECT DISTINCT - - 91 / - 75
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1028
SELECT ALL + - 3 DIV - 52 + + + 15 + - 42 AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-1028
SELECT ALL + - 3 / - 52 + + + 15 + - 42 AS col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-1029
SELECT DISTINCT - 77 * - - COUNT( * ) AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-1029
SELECT DISTINCT - 77 * - - COUNT ( * ) AS col0
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1030
SELECT ALL 33 DIV + + COUNT( * ) + - MIN( + - 50 ) + + 32 * 78 * + + ( + 59 ) AS col0
----
147347

skipif mysql # not compatible
query I rowsort label-1030
SELECT ALL 33 / + + COUNT ( * ) + - MIN ( + - 50 ) + + 32 * 78 * + + ( + 59 ) AS col0
----
147347

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1031
SELECT DISTINCT + 8 * 40 * ( 72 ) * 18 DIV 78 + 70 + + COUNT( DISTINCT - CASE 60 WHEN 56 THEN + 28 END ) * 53
----
5386

skipif mysql # not compatible
query I rowsort label-1031
SELECT DISTINCT + 8 * 40 * ( 72 ) * 18 / 78 + 70 + + COUNT ( DISTINCT - CASE 60 WHEN 56 THEN + 28 END ) * 53
----
5386

onlyif mysql # aggregate syntax: 
query I rowsort label-1032
SELECT - + COUNT( * ) * 52 + 63 + - 39 col2
----
-28

skipif mysql # not compatible
query I rowsort label-1032
SELECT - + COUNT ( * ) * 52 + 63 + - 39 col2
----
-28

query II rowsort
SELECT ALL + 76 col0, + 27 col2
----
76
27

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1034
SELECT + + ( - CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1034
SELECT + + ( - CAST ( NULL AS REAL ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1035
SELECT + COUNT( ALL 17 ) DIV + CAST( + - 61 AS SIGNED ) + + 52
----
52

skipif mysql # not compatible
query I rowsort label-1035
SELECT + COUNT ( ALL 17 ) / + CAST ( + - 61 AS INTEGER ) + + 52
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-1036
SELECT ALL + MIN( - 65 ) col1
----
-65

skipif mysql # not compatible
query I rowsort label-1036
SELECT ALL + MIN ( - 65 ) col1
----
-65

query I rowsort
SELECT ALL + - 36 AS col0
----
-36

query I rowsort
SELECT DISTINCT + + 76 AS col2
----
76

query I rowsort
SELECT DISTINCT + + 45 AS col2
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-1040
SELECT DISTINCT + 7 col1, + COUNT( * ) + - - COALESCE ( - ( 38 ), - + COUNT( * ) ) AS col0
----
7
-37

skipif mysql # not compatible
query II rowsort label-1040
SELECT DISTINCT + 7 col1, + COUNT ( * ) + - - COALESCE ( - ( 38 ), - + COUNT ( * ) ) AS col0
----
7
-37

query I rowsort
SELECT ( + 33 )
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1042
SELECT DISTINCT 0 * + - NULLIF ( - MIN( + 69 ), - 44 * - + COUNT( * ) ) - COUNT( * ) * + + CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) DIV - 46 * 81 AS col2, + ( - 84 ) DIV - + 83 - 38 col1
----
NULL
-37

skipif mysql # not compatible
query II rowsort label-1042
SELECT DISTINCT 0 * + - NULLIF ( - MIN ( + 69 ), - 44 * - + COUNT ( * ) ) - COUNT ( * ) * + + CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) / - 46 * 81 AS col2, + ( - 84 ) / - + 83 - 38 col1
----
NULL
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-1043
SELECT ALL 71 DIV + 26
----
2

skipif mysql # not compatible
query I rowsort label-1043
SELECT ALL 71 / + 26
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1044
SELECT + CASE + + 78 WHEN - - 59 THEN - + 9 * 60 WHEN 71 THEN NULL WHEN + 75 * + CASE + 12 WHEN 32 THEN NULL WHEN - + 81 + - + ( + 32 ) / - 84 THEN 69 ELSE NULL END + + 84 + 7 * - 25 THEN NULL ELSE NULL END * + 34 * - - 13 - - COUNT( * ) * - 85 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1044
SELECT + CASE + + 78 WHEN - - 59 THEN - + 9 * 60 WHEN 71 THEN NULL WHEN + 75 * + CASE + 12 WHEN 32 THEN NULL WHEN - + 81 + - + ( + 32 ) / - 84 THEN 69 ELSE NULL END + + 84 + 7 * - 25 THEN NULL ELSE NULL END * + 34 * - - 13 - - COUNT ( * ) * - 85 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1045
SELECT + CAST( ( + 27 ) AS SIGNED ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-1045
SELECT + CAST ( ( + 27 ) AS INTEGER ) AS col2
----
27

query I rowsort
SELECT ALL + 39 AS col0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-1047
SELECT - 35 * ( - - CASE - 93 WHEN + - COUNT( * ) / + 58 THEN - + 96 + + 19 + + 71 / 35 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1047
SELECT - 35 * ( - - CASE - 93 WHEN + - COUNT ( * ) / + 58 THEN - + 96 + + 19 + + 71 / 35 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1048
SELECT ALL - 72 * + COUNT( * ) AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-1048
SELECT ALL - 72 * + COUNT ( * ) AS col1
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-1049
SELECT + 46 - + - COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-1049
SELECT + 46 - + - COUNT ( * )
----
47

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

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

query I rowsort
SELECT ALL 67 AS col0
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-1052
SELECT 1 AS col1, COUNT( * ) * - - 77 AS col1
----
1
77

skipif mysql # not compatible
query II rowsort label-1052
SELECT 1 AS col1, COUNT ( * ) * - - 77 AS col1
----
1
77

query I rowsort
SELECT 3 * - 10 * + 73 * - 29 * + 22 AS col1
----
1397220

onlyif mysql # aggregate syntax: 
query I rowsort label-1054
SELECT DISTINCT - 28 + MIN( ALL 38 )
----
10

skipif mysql # not compatible
query I rowsort label-1054
SELECT DISTINCT - 28 + MIN ( ALL 38 )
----
10

query I rowsort
SELECT ( - 49 ) + 45
----
-4

query I rowsort
SELECT ( 43 ) * ( + + 43 ) * - - 95
----
175655

query I rowsort
SELECT 93 + 53
----
146

query I rowsort
SELECT DISTINCT + 83 + + + 45
----
128

query I rowsort
SELECT DISTINCT - ( + - 27 ) + - 58 + + 93 - 60 + - - 30 + 83 * - ( + 30 ) * 73 * - 10 * - + 99
----
-179952268

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1060
SELECT ALL + COUNT( DISTINCT + COALESCE ( - 43, - + 68, + 48 ) ) + - 70, - 46 * + CASE + - 88 WHEN 91 THEN - 2 + + 62 WHEN + CAST( NULL AS SIGNED ) THEN NULL END AS col1
----
-69
NULL

skipif mysql # not compatible
query II rowsort label-1060
SELECT ALL + COUNT ( DISTINCT + COALESCE ( - 43, - + 68, + 48 ) ) + - 70, - 46 * + CASE + - 88 WHEN 91 THEN - 2 + + 62 WHEN + CAST ( NULL AS INTEGER ) THEN NULL END AS col1
----
-69
NULL

query I rowsort
SELECT ALL + 40 * + 69 col2
----
2760

query I rowsort
SELECT DISTINCT - 23 + - 46
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-1063
SELECT DISTINCT - - 64 * - NULLIF ( + COUNT( * ), - + 21 ) * - 18 + - ( - - 99 ) + 82 * + MAX( - 6 ) + - COUNT( * )
----
560

skipif mysql # not compatible
query I rowsort label-1063
SELECT DISTINCT - - 64 * - NULLIF ( + COUNT ( * ), - + 21 ) * - 18 + - ( - - 99 ) + 82 * + MAX ( - 6 ) + - COUNT ( * )
----
560

query I rowsort
SELECT ALL + 48 + - 52
----
-4

query II rowsort
SELECT - 2, - 25 * - - 9 + - 0 + + - 84 AS col0
----
-2
-309

query I rowsort
SELECT ALL - ( + 81 ) * + - 99 AS col1
----
8019

onlyif mysql # aggregate syntax: 
query I rowsort label-1067
SELECT COUNT( * ) + + 17 col2
----
18

skipif mysql # not compatible
query I rowsort label-1067
SELECT COUNT ( * ) + + 17 col2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-1068
SELECT DISTINCT - COUNT( + 31 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1068
SELECT DISTINCT - COUNT ( + 31 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1069
SELECT ALL + ( - 20 ) - COUNT( * ) AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-1069
SELECT ALL + ( - 20 ) - COUNT ( * ) AS col2
----
-21

query I rowsort
SELECT + 59 * + 65 AS col2
----
3835

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1071
SELECT - 53 AS col0, CAST( + CASE - - 31 WHEN - ( - 17 ) + - 52 THEN + AVG ( DISTINCT - - 70 ) * + CASE + ( 33 ) WHEN - 85 * - ( 58 ) THEN - 74 + + ( - + 76 ) + - 55 + + 75 * - 3 * 55 END + 79 END AS SIGNED ) + - 67 * 94 AS col2
----
-53
NULL

skipif mysql # not compatible
query II rowsort label-1071
SELECT - 53 AS col0, CAST ( + CASE - - 31 WHEN - ( - 17 ) + - 52 THEN + AVG ( DISTINCT - - 70 ) * + CASE + ( 33 ) WHEN - 85 * - ( 58 ) THEN - 74 + + ( - + 76 ) + - 55 + + 75 * - 3 * 55 END + 79 END AS INTEGER ) + - 67 * 94 AS col2
----
-53
NULL

query I rowsort
SELECT + 5 * 42 * + + 16 - + + 62 + 5 + 9 + 94 - + - 7 + + 25 * + NULLIF ( - - 77, + 68 )
----
5338

query II rowsort
SELECT - 92 AS col1, + 93 * ( 93 )
----
-92
8649

onlyif mysql # aggregate syntax: 
query I rowsort label-1074
SELECT ALL + 27 - + 31 - COUNT( * )
----
-5

skipif mysql # not compatible
query I rowsort label-1074
SELECT ALL + 27 - + 31 - COUNT ( * )
----
-5

query I rowsort
SELECT - 76 col0
----
-76

query I rowsort
SELECT ALL + 47 - - ( 57 ) + 5 * + 37 AS col2
----
289

onlyif mysql # DIV for integer division: 
query I rowsort label-1077
SELECT 88 DIV 48 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1077
SELECT 88 / 48 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1078
SELECT + 17 * 94 - - + COUNT( * )
----
1599

skipif mysql # not compatible
query I rowsort label-1078
SELECT + 17 * 94 - - + COUNT ( * )
----
1599

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1079
SELECT CAST( NULL AS SIGNED ) * - CAST( - - 32 AS SIGNED ) - + 59 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1079
SELECT CAST ( NULL AS INTEGER ) * - CAST ( - - 32 AS INTEGER ) - + 59 AS col0
----
NULL

query I rowsort
SELECT 49 col2
----
49

query I rowsort
SELECT ALL 17 + + 37 AS col1
----
54

query II rowsort
SELECT ALL 29 * NULLIF ( 37, - 48 ) * + + 7 AS col1, 60 AS col2
----
7511
60

query I rowsort
SELECT 0 * 19 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1084
SELECT ALL COUNT( * ) + - + 61 AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-1084
SELECT ALL COUNT ( * ) + - + 61 AS col1
----
-60

query I rowsort
SELECT 60 col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1086
SELECT 3 * COUNT( * ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-1086
SELECT 3 * COUNT ( * ) AS col1
----
3

query I rowsort
SELECT 38 + - 23 * + + 4 - + 70 AS col0
----
-124

query I rowsort
SELECT ALL 51 + CASE + 76 WHEN - 23 THEN - 0 / - + 89 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1089
SELECT DISTINCT MAX( DISTINCT 92 ) * + 35 * 92 AS col0
----
296240

skipif mysql # not compatible
query I rowsort label-1089
SELECT DISTINCT MAX ( DISTINCT 92 ) * + 35 * 92 AS col0
----
296240

query I rowsort
SELECT ALL 87 AS col1
----
87

query I rowsort
SELECT 85 + 47
----
132

onlyif mysql # aggregate syntax: 
query II rowsort label-1092
SELECT DISTINCT - 33 + + COUNT( * ) AS col1, COUNT( * )
----
-32
1

skipif mysql # not compatible
query II rowsort label-1092
SELECT DISTINCT - 33 + + COUNT ( * ) AS col1, COUNT ( * )
----
-32
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1093
SELECT ALL 10 * + + COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-1093
SELECT ALL 10 * + + COUNT ( * )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1094
SELECT + 49 + + COUNT( * ) + - + 80 + - 6 * - NULLIF ( + 56, - COUNT( * ) + + + 71 ) AS col1
----
306

skipif mysql # not compatible
query I rowsort label-1094
SELECT + 49 + + COUNT ( * ) + - + 80 + - 6 * - NULLIF ( + 56, - COUNT ( * ) + + + 71 ) AS col1
----
306

onlyif mysql # aggregate syntax: 
query I rowsort label-1095
SELECT DISTINCT - - COALESCE ( + 22, + 58 * ( - + COUNT( * ) ) ) + - + SUM( + 14 ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-1095
SELECT DISTINCT - - COALESCE ( + 22, + 58 * ( - + COUNT ( * ) ) ) + - + SUM ( + 14 ) AS col0
----
8

query I rowsort
SELECT ALL - 34 col1
----
-34

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1097
SELECT ALL ( 99 ) AS col1, CAST( 31 AS SIGNED ) DIV - + 9 AS col1
----
99
-3

skipif mysql # not compatible
query II rowsort label-1097
SELECT ALL ( 99 ) AS col1, CAST ( 31 AS INTEGER ) / - + 9 AS col1
----
99
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1098
SELECT ALL - CAST( COUNT( * ) AS SIGNED ), + 90 / COUNT( * ) * - COUNT( * ) * + 85 + + 55 + + ( + COUNT( * ) ) * - + 24 * - 8 * 19 + - ( - 51 ) - + CASE - + 82 WHEN + - 63 THEN NULL WHEN + 24 + - 97 THEN - - 7 END - - 85 AS col2
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-1098
SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ), + 90 / COUNT ( * ) * - COUNT ( * ) * + 85 + + 55 + + ( + COUNT ( * ) ) * - + 24 * - 8 * 19 + - ( - 51 ) - + CASE - + 82 WHEN + - 63 THEN NULL WHEN + 24 + - 97 THEN - - 7 END - - 85 AS col2
----
-1
NULL

query I rowsort
SELECT - + 11
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-1100
SELECT 54 + + 50 DIV COALESCE ( - - 40, - 54 * + 82 + 53 + - 23 ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-1100
SELECT 54 + + 50 / COALESCE ( - - 40, - 54 * + 82 + 53 + - 23 ) AS col1
----
55

query I rowsort
SELECT - 99 + + 90 AS col0
----
-9

query I rowsort
SELECT ALL 86 AS col2
----
86

query I rowsort
SELECT DISTINCT COALESCE ( + - ( - 7 ), + 71 ) AS col1
----
7

query I rowsort
SELECT ALL - - ( 84 ) * + ( + 4 ) AS col0
----
336

query I rowsort
SELECT + ( 83 ) + - 94
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1106
SELECT ALL - NULLIF ( + - 43, CAST( NULL AS SIGNED ) )
----
43

skipif mysql # not compatible
query I rowsort label-1106
SELECT ALL - NULLIF ( + - 43, CAST ( NULL AS INTEGER ) )
----
43

query I rowsort
SELECT ALL - + 23
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-1108
SELECT ALL - - 94 * + COUNT( DISTINCT 78 ) + + SUM( DISTINCT 84 ) + - 27
----
151

skipif mysql # not compatible
query I rowsort label-1108
SELECT ALL - - 94 * + COUNT ( DISTINCT 78 ) + + SUM ( DISTINCT 84 ) + - 27
----
151

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1109
SELECT 96 DIV + - COALESCE ( - 76, + COUNT( * ) + - - COUNT( CAST( NULL AS SIGNED ) ) ) + + + COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-1109
SELECT 96 / + - COALESCE ( - 76, + COUNT ( * ) + - - COUNT ( CAST ( NULL AS INTEGER ) ) ) + + + COUNT ( * ) AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1110
SELECT + ( + ( - + COUNT( * ) ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1110
SELECT + ( + ( - + COUNT ( * ) ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1111
SELECT ALL - SUM( - + 45 )
----
45

skipif mysql # not compatible
query I rowsort label-1111
SELECT ALL - SUM ( - + 45 )
----
45

query I rowsort
SELECT + - 5
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-1113
SELECT - COUNT( * ) + - - 73 AS col0, + COUNT( * )
----
72
1

skipif mysql # not compatible
query II rowsort label-1113
SELECT - COUNT ( * ) + - - 73 AS col0, + COUNT ( * )
----
72
1

query I rowsort
SELECT 68 * - - 54
----
3672

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1115
SELECT - 29 DIV - - COALESCE ( + CAST( NULL AS SIGNED ), 24 * ( + - 18 ) * - 2, - 57, - 97 ) + 20
----
20

skipif mysql # not compatible
query I rowsort label-1115
SELECT - 29 / - - COALESCE ( + CAST ( NULL AS INTEGER ), 24 * ( + - 18 ) * - 2, - 57, - 97 ) + 20
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1116
SELECT ALL - 28 * CAST( NULL AS SIGNED ) + - 97 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1116
SELECT ALL - 28 * CAST ( NULL AS INTEGER ) + - 97 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 32 AS col2
----
32

query II rowsort
SELECT + 6, 91 AS col0
----
6
91

onlyif mysql # DIV for integer division: 
query I rowsort label-1119
SELECT + 76 DIV + 71 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1119
SELECT + 76 / + 71 AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1120
SELECT COUNT( * ) AS col0, 60
----
1
60

skipif mysql # not compatible
query II rowsort label-1120
SELECT COUNT ( * ) AS col0, 60
----
1
60

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1121
SELECT ALL - CASE - 53 WHEN + 21 THEN - CAST( 41 AS DECIMAL ) + + - COUNT( * ) - + + 2 * - 57 END * - 51 AS col1, + NULLIF ( + 87, + - 0 ) - + 86
----
NULL
1

skipif mysql # not compatible
query II rowsort label-1121
SELECT ALL - CASE - 53 WHEN + 21 THEN - CAST ( 41 AS REAL ) + + - COUNT ( * ) - + + 2 * - 57 END * - 51 AS col1, + NULLIF ( + 87, + - 0 ) - + 86
----
NULL
1

query I rowsort
SELECT + 87 + + + 95
----
182

onlyif mysql # aggregate syntax: 
query I rowsort label-1123
SELECT + MAX( - + 74 )
----
-74

skipif mysql # not compatible
query I rowsort label-1123
SELECT + MAX ( - + 74 )
----
-74

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1124
SELECT ALL CASE + 17 WHEN MAX( - 10 ) THEN + 12 WHEN 53 THEN - 45 END + 12 + - - CASE + CAST( NULL AS DECIMAL ) WHEN 9 THEN + 29 END + - - 73 AS col1, - 13 * + ( - + 14 )
----
NULL
182

skipif mysql # not compatible
query II rowsort label-1124
SELECT ALL CASE + 17 WHEN MAX ( - 10 ) THEN + 12 WHEN 53 THEN - 45 END + 12 + - - CASE + CAST ( NULL AS REAL ) WHEN 9 THEN + 29 END + - - 73 AS col1, - 13 * + ( - + 14 )
----
NULL
182

query I rowsort
SELECT ALL + 80 AS col0
----
80

query I rowsort
SELECT ALL 31 AS col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1127
SELECT + 9 - + - SUM( + 76 )
----
85

skipif mysql # not compatible
query I rowsort label-1127
SELECT + 9 - + - SUM ( + 76 )
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-1128
SELECT ALL + 10 + + ( - - 90 ) col2, COUNT( * ) * + ( + 74 ) * - - 41 - - COUNT( * )
----
100
3035

skipif mysql # not compatible
query II rowsort label-1128
SELECT ALL + 10 + + ( - - 90 ) col2, COUNT ( * ) * + ( + 74 ) * - - 41 - - COUNT ( * )
----
100
3035

query I rowsort
SELECT ALL - ( + 50 )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-1130
SELECT DISTINCT + COALESCE ( COUNT( * ), - 12 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1130
SELECT DISTINCT + COALESCE ( COUNT ( * ), - 12 ) AS col2
----
1

query I rowsort
SELECT - - 92 AS col0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1132
SELECT + SUM( ALL 57 ) - - 85
----
142

skipif mysql # not compatible
query I rowsort label-1132
SELECT + SUM ( ALL 57 ) - - 85
----
142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1133
SELECT ALL CAST( NULL AS SIGNED ) / - - MAX( - 21 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1133
SELECT ALL CAST ( NULL AS INTEGER ) / - - MAX ( - 21 )
----
NULL

query I rowsort
SELECT + 88 - - 28 - - 88 * 88
----
7860

onlyif mysql # aggregate syntax: 
query I rowsort label-1135
SELECT ALL 57 - 83 * COUNT( * ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-1135
SELECT ALL 57 - 83 * COUNT ( * ) AS col1
----
-26

query I rowsort
SELECT DISTINCT 62 * 2
----
124

query I rowsort
SELECT DISTINCT + 60 - - + 3 + + 45
----
108

query I rowsort
SELECT ALL - 96 * 45 AS col0
----
-4320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1139
SELECT + + COUNT( * ) + CASE 6 WHEN - 77 * 70 THEN NULL WHEN + + ( + 76 ) * 70 THEN - 97 * 77 + - CAST( COALESCE ( + 79, - CAST( NULL AS SIGNED ) ) AS SIGNED ) WHEN COUNT( * ) + + + 69 * + + CAST( NULL AS SIGNED ) THEN + + 72 * - 41 * + - NULLIF ( - 54, - 56 * + - 94 ) + CAST( 63 AS SIGNED ) * COUNT( * ) + - 46 ELSE 86 END * - MIN( ALL + 42 - ( 43 ) ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-1139
SELECT + + COUNT ( * ) + CASE 6 WHEN - 77 * 70 THEN NULL WHEN + + ( + 76 ) * 70 THEN - 97 * 77 + - CAST ( COALESCE ( + 79, - CAST ( NULL AS INTEGER ) ) AS INTEGER ) WHEN COUNT ( * ) + + + 69 * + + CAST ( NULL AS INTEGER ) THEN + + 72 * - 41 * + - NULLIF ( - 54, - 56 * + - 94 ) + CAST ( 63 AS INTEGER ) * COUNT ( * ) + - 46 ELSE 86 END * - MIN ( ALL + 42 - ( 43 ) ) AS col2
----
87

onlyif mysql # DIV for integer division: 
query II rowsort label-1140
SELECT ALL 10 AS col1, 29 DIV + 7
----
10
4

skipif mysql # not compatible
query II rowsort label-1140
SELECT ALL 10 AS col1, 29 / + 7
----
10
4

onlyif mysql # DIV for integer division: 
query I rowsort label-1141
SELECT + 77 DIV + 26 + - 52 + - + 29 + 99 + - - 30 + - 52 + - 31 DIV 65 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-1141
SELECT + 77 / + 26 + - 52 + - + 29 + 99 + - - 30 + - 52 + - 31 / 65 AS col2
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1142
SELECT + 16 + + MIN( CAST( + + 92 AS SIGNED ) )
----
108

skipif mysql # not compatible
query I rowsort label-1142
SELECT + 16 + + MIN ( CAST ( + + 92 AS INTEGER ) )
----
108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1143
SELECT - CAST( + COUNT( * ) AS SIGNED ) * - 31 AS col0
----
31

skipif mysql # not compatible
query I rowsort label-1143
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) * - 31 AS col0
----
31

query I rowsort
SELECT + 30 + + 79 AS col1
----
109

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1145
SELECT - - 17 AS col0, NULLIF ( - 89, + - CAST( + 48 AS SIGNED ) ) * - - 19 AS col0
----
17
-1691

skipif mysql # not compatible
query II rowsort label-1145
SELECT - - 17 AS col0, NULLIF ( - 89, + - CAST ( + 48 AS INTEGER ) ) * - - 19 AS col0
----
17
-1691

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1146
SELECT ALL COUNT( ALL + 7 ) DIV COUNT( * ) * 13 * + COALESCE ( 57, - - CAST( 84 AS SIGNED ) )
----
741

skipif mysql # not compatible
query I rowsort label-1146
SELECT ALL COUNT ( ALL + 7 ) / COUNT ( * ) * 13 * + COALESCE ( 57, - - CAST ( 84 AS INTEGER ) )
----
741

onlyif mysql # aggregate syntax: 
query I rowsort label-1147
SELECT + COUNT( * ) * + 89 * MIN( DISTINCT + 76 ) * 70 + - 69 * 70 AS col0
----
468650

skipif mysql # not compatible
query I rowsort label-1147
SELECT + COUNT ( * ) * + 89 * MIN ( DISTINCT + 76 ) * 70 + - 69 * 70 AS col0
----
468650

onlyif mysql # aggregate syntax: 
query I rowsort label-1148
SELECT COUNT( * ) * - 95 * + + 11 - 50 col1
----
-1095

skipif mysql # not compatible
query I rowsort label-1148
SELECT COUNT ( * ) * - 95 * + + 11 - 50 col1
----
-1095

query I rowsort
SELECT ALL + 20 AS col1
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1150
SELECT ALL + CAST( + COUNT( * ) AS SIGNED ) AS col1, - 77 AS col2
----
1
-77

skipif mysql # not compatible
query II rowsort label-1150
SELECT ALL + CAST ( + COUNT ( * ) AS INTEGER ) AS col1, - 77 AS col2
----
1
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-1151
SELECT DISTINCT 38 * 14 * - SUM( - 68 ) + 14 + - 89
----
36101

skipif mysql # not compatible
query I rowsort label-1151
SELECT DISTINCT 38 * 14 * - SUM ( - 68 ) + 14 + - 89
----
36101

onlyif mysql # aggregate syntax: 
query I rowsort label-1152
SELECT ALL - 67 * - - ( 19 ) + + + SUM( 24 ) AS col0
----
-1249

skipif mysql # not compatible
query I rowsort label-1152
SELECT ALL - 67 * - - ( 19 ) + + + SUM ( 24 ) AS col0
----
-1249

query I rowsort
SELECT ( - 71 ) AS col2
----
-71

query I rowsort
SELECT ALL 12 * CASE - - 42 WHEN + 37 / + 87 THEN + 50 * 37 + - 60 * - 58 WHEN + 11 * + 58 * 49 * + 96 THEN 8 + - 78 END * - 89 + COALESCE ( - 93, - 79 * ( - 42 ) ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1155
SELECT CAST( + 76 AS SIGNED ) / + 34 * - 20 + + COUNT( * ) + + 48 - - 13 * - ( 98 ) * + + CASE + 0 WHEN - - CAST( NULL AS SIGNED ) THEN NULL WHEN + + 31 / - - 80 * - - 73 THEN + 16 ELSE NULL END + 95 + 47 + + 26 * - 70 / + - MAX( - 64 ) / - NULLIF ( - AVG ( DISTINCT CAST( NULL AS SIGNED ) ), 1 / - 67 + COUNT( * ) ) + 83 * 7 * 70 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1155
SELECT CAST ( + 76 AS INTEGER ) / + 34 * - 20 + + COUNT ( * ) + + 48 - - 13 * - ( 98 ) * + + CASE + 0 WHEN - - CAST ( NULL AS INTEGER ) THEN NULL WHEN + + 31 / - - 80 * - - 73 THEN + 16 ELSE NULL END + 95 + 47 + + 26 * - 70 / + - MAX ( - 64 ) / - NULLIF ( - AVG ( DISTINCT CAST ( NULL AS INTEGER ) ), 1 / - 67 + COUNT ( * ) ) + 83 * 7 * 70 AS col1
----
NULL

query I rowsort
SELECT 41 * + 56 - + 6
----
2290

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1157
SELECT ALL + CASE - 14 WHEN - - 38 * CAST( NULL AS DECIMAL ) + - + 29 THEN + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1157
SELECT ALL + CASE - 14 WHEN - - 38 * CAST ( NULL AS REAL ) + - + 29 THEN + COUNT ( * ) END
----
NULL

query I rowsort
SELECT ( - - 4 ) col1
----
4

query I rowsort
SELECT - 46 + - 55 AS col1
----
-101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1160
SELECT NULLIF ( CAST( + 31 AS SIGNED ), + COALESCE ( - COUNT( * ), + 50 ) ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-1160
SELECT NULLIF ( CAST ( + 31 AS INTEGER ), + COALESCE ( - COUNT ( * ), + 50 ) ) AS col2
----
31

query I rowsort
SELECT NULLIF ( + - 40, + COALESCE ( - 0, + 77 ) )
----
-40

query I rowsort
SELECT DISTINCT + 80 col2
----
80

query I rowsort
SELECT ALL - 91 * 9 + 0 * + 41 - + 98
----
-917

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1164
SELECT - 80 * - CAST( NULL AS SIGNED ) + + 52 + + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1164
SELECT - 80 * - CAST ( NULL AS INTEGER ) + + 52 + + - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1165
SELECT ALL + MAX( - 33 )
----
-33

skipif mysql # not compatible
query I rowsort label-1165
SELECT ALL + MAX ( - 33 )
----
-33

query I rowsort
SELECT - 10 + - 62
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1167
SELECT ALL CAST( NULL AS SIGNED ) * + 23 * + COUNT( * ) - + COUNT( * ) + - 60 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1167
SELECT ALL CAST ( NULL AS INTEGER ) * + 23 * + COUNT ( * ) - + COUNT ( * ) + - 60 AS col2
----
NULL

query I rowsort
SELECT - 75 * - 38 * + 98 * ( - 40 ) AS col2
----
-11172000

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1169
SELECT - COALESCE ( + ( - ( - - 41 ) ), - - COALESCE ( 76, + MIN( ALL + - 93 ), + + 7 + + COUNT( * ) + - 77 ) ) * - + CAST( NULL AS DECIMAL ) * - + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-1169
SELECT - COALESCE ( + ( - ( - - 41 ) ), - - COALESCE ( 76, + MIN ( ALL + - 93 ), + + 7 + + COUNT ( * ) + - 77 ) ) * - + CAST ( NULL AS REAL ) * - + 56
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1170
SELECT COUNT( DISTINCT + 93 ) * 29 + + 56 - - 62 * + - CASE WHEN NULL IS NOT NULL THEN COUNT( * ) END / - - CAST( NULL AS SIGNED ) * + 97 + 79 + AVG ( ALL - 28 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1170
SELECT COUNT ( DISTINCT + 93 ) * 29 + + 56 - - 62 * + - CASE WHEN NULL IS NOT NULL THEN COUNT ( * ) END / - - CAST ( NULL AS INTEGER ) * + 97 + 79 + AVG ( ALL - 28 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1171
SELECT + ( 61 ) * - 62 DIV COUNT( * ) + - 38 DIV ( + COUNT( * ) ) + + ( + 63 ) + + - 95 * + 48 AS col2
----
-8317

skipif mysql # not compatible
query I rowsort label-1171
SELECT + ( 61 ) * - 62 / COUNT ( * ) + - 38 / ( + COUNT ( * ) ) + + ( + 63 ) + + - 95 * + 48 AS col2
----
-8317

query I rowsort
SELECT ALL + 92 * 57
----
5244

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1173
SELECT + CASE - 24 WHEN 30 + - 94 + - + CASE COUNT( * ) WHEN 82 THEN NULL WHEN - COALESCE ( 94, - ( - 46 ) + + + 72 + CAST( NULL AS SIGNED ) + + NULLIF ( - 39, + 70 + + 19 ) + - - 4 * - - CAST( - 56 AS SIGNED ) / + 58 ) THEN NULL WHEN + - 35 THEN + + 87 ELSE NULL END THEN - + 4 END + - 48 * 29 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1173
SELECT + CASE - 24 WHEN 30 + - 94 + - + CASE COUNT ( * ) WHEN 82 THEN NULL WHEN - COALESCE ( 94, - ( - 46 ) + + + 72 + CAST ( NULL AS INTEGER ) + + NULLIF ( - 39, + 70 + + 19 ) + - - 4 * - - CAST ( - 56 AS INTEGER ) / + 58 ) THEN NULL WHEN + - 35 THEN + + 87 ELSE NULL END THEN - + 4 END + - 48 * 29 AS col0
----
NULL

query I rowsort
SELECT + - ( + 0 ) * + - ( - 86 ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1175
SELECT DISTINCT + - CAST( + + 19 AS SIGNED ) * - + CASE - CAST( NULL AS SIGNED ) WHEN 64 THEN - 85 WHEN - 78 THEN AVG ( 96 ) + - 91 / COUNT( * ) + - 81 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1175
SELECT DISTINCT + - CAST ( + + 19 AS INTEGER ) * - + CASE - CAST ( NULL AS INTEGER ) WHEN 64 THEN - 85 WHEN - 78 THEN AVG ( 96 ) + - 91 / COUNT ( * ) + - 81 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1176
SELECT ALL CAST( + 38 AS SIGNED )
----
38

skipif mysql # not compatible
query I rowsort label-1176
SELECT ALL CAST ( + 38 AS INTEGER )
----
38

query I rowsort
SELECT - 34 + - 96 AS col1
----
-130

query I rowsort
SELECT + NULLIF ( - 25, 41 * 97 )
----
-25

query I rowsort
SELECT + 47 + - + 58 AS col2
----
-11

query I rowsort
SELECT ALL - 66 AS col0
----
-66

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1181
SELECT - + 84 * - NULLIF ( + 49, - + 0 * + - 24 * 74 + + - 11 + - 2 * - 89 * - CAST( NULL AS DECIMAL ) - 74 * + ( COUNT( - - 85 ) ) )
----
4116

skipif mysql # not compatible
query I rowsort label-1181
SELECT - + 84 * - NULLIF ( + 49, - + 0 * + - 24 * 74 + + - 11 + - 2 * - 89 * - CAST ( NULL AS REAL ) - 74 * + ( COUNT ( - - 85 ) ) )
----
4116

onlyif mysql # aggregate syntax: 
query I rowsort label-1182
SELECT + - COUNT( * ) + + - COUNT( * ) col0
----
-2

skipif mysql # not compatible
query I rowsort label-1182
SELECT + - COUNT ( * ) + + - COUNT ( * ) col0
----
-2

query I rowsort
SELECT + 36 + + 52 AS col0
----
88

query I rowsort
SELECT DISTINCT + 6 col0
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-1185
SELECT ALL + 24 + + 34 - + + CASE + 30 WHEN MIN( - 81 ) THEN - COUNT( * ) * + 92 END + - - 55 + 8 + 11 + - 24 * - 26 + + 71, - 87 AS col2
----
NULL
-87

skipif mysql # not compatible
query II rowsort label-1185
SELECT ALL + 24 + + 34 - + + CASE + 30 WHEN MIN ( - 81 ) THEN - COUNT ( * ) * + 92 END + - - 55 + 8 + 11 + - 24 * - 26 + + 71, - 87 AS col2
----
NULL
-87

query I rowsort
SELECT ALL 20 + + - 25
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1187
SELECT MAX( 81 ) + - + 42
----
39

skipif mysql # not compatible
query I rowsort label-1187
SELECT MAX ( 81 ) + - + 42
----
39

query II rowsort
SELECT ALL 41 AS col1, 61
----
41
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1189
SELECT CAST( NULL AS SIGNED ) / - CAST( NULL AS SIGNED ) * + 33 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1189
SELECT CAST ( NULL AS INTEGER ) / - CAST ( NULL AS INTEGER ) * + 33 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1190
SELECT ALL COUNT( * ) + + 0 col1
----
1

skipif mysql # not compatible
query I rowsort label-1190
SELECT ALL COUNT ( * ) + + 0 col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1191
SELECT CAST( NULL AS SIGNED ) * - 62
----
NULL

skipif mysql # not compatible
query I rowsort label-1191
SELECT CAST ( NULL AS INTEGER ) * - 62
----
NULL

query I rowsort
SELECT + 4 col1
----
4

query I rowsort
SELECT 29 + - 32
----
-3

query I rowsort
SELECT 0 * + 92 * + 67
----
0

query I rowsort
SELECT COALESCE ( + 2, - + 51 ) * + + 10
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-1196
SELECT DISTINCT - SUM( + 73 )
----
-73

skipif mysql # not compatible
query I rowsort label-1196
SELECT DISTINCT - SUM ( + 73 )
----
-73

query I rowsort
SELECT ALL - 57 col2
----
-57

query I rowsort
SELECT DISTINCT - ( 56 ) - + CASE 27 WHEN 65 / 53 THEN + 96 END col2
----
NULL

query I rowsort
SELECT ALL + 10 * 16
----
160

query I rowsort
SELECT ALL - 2 AS col1
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1201
SELECT ALL - 73 AS col2, + 61 * + - CAST( NULL AS SIGNED )
----
-73
NULL

skipif mysql # not compatible
query II rowsort label-1201
SELECT ALL - 73 AS col2, + 61 * + - CAST ( NULL AS INTEGER )
----
-73
NULL

query I rowsort
SELECT DISTINCT + 93 * - 88 col0
----
-8184

query I rowsort
SELECT 54 * - 96 AS col0
----
-5184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1204
SELECT ALL + CAST( NULL AS SIGNED ) * + + 53 * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1204
SELECT ALL + CAST ( NULL AS INTEGER ) * + + 53 * COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT + ( - 41 ) col1
----
-41

query I rowsort
SELECT + - 63 AS col2
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1207
SELECT ALL - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1207
SELECT ALL - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1208
SELECT - 9 - - 64 * - 57 * 50 + + SUM( ALL - ( - 33 ) ) * + CASE WHEN NOT ( NULL ) IS NULL THEN NULL ELSE 8 END AS col0
----
-182145

skipif mysql # not compatible
query I rowsort label-1208
SELECT - 9 - - 64 * - 57 * 50 + + SUM ( ALL - ( - 33 ) ) * + CASE WHEN NOT ( NULL ) IS NULL THEN NULL ELSE 8 END AS col0
----
-182145

onlyif mysql # aggregate syntax: 
query I rowsort label-1209
SELECT 1 - + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1209
SELECT 1 - + COUNT ( * ) AS col2
----
0

query I rowsort
SELECT ALL - 69 + - 49 AS col2
----
-118

query I rowsort
SELECT - ( - - 13 ) col0
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1212
SELECT ALL - 19 * - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1212
SELECT ALL - 19 * - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1213
SELECT 11 DIV - - 49 + - + ( 40 ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-1213
SELECT 11 / - - 49 + - + ( 40 ) AS col0
----
-40

query I rowsort
SELECT + 68 * + 28
----
1904

onlyif mysql # aggregate syntax: 
query I rowsort label-1215
SELECT - - ( + COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1215
SELECT - - ( + COUNT ( * ) ) AS col2
----
1

query I rowsort
SELECT 1 * - 1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1217
SELECT ALL + - 75 + 6 + 18 + 10 + - + COUNT( * ) * 27
----
-68

skipif mysql # not compatible
query I rowsort label-1217
SELECT ALL + - 75 + 6 + 18 + 10 + - + COUNT ( * ) * 27
----
-68

query I rowsort
SELECT DISTINCT + 95 + - 81
----
14

query I rowsort
SELECT DISTINCT - COALESCE ( + 45, - 46 )
----
-45

query I rowsort
SELECT DISTINCT - 25 + + 31 AS col1
----
6

query I rowsort
SELECT DISTINCT - ( - 9 ) + 26 + - ( NULLIF ( - 91, ( - 73 ) + 69 ) ) AS col1
----
126

query I rowsort
SELECT DISTINCT + 59 + - + 41
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-1223
SELECT 84 + - COUNT( * ) AS col0, CASE + COUNT( * ) WHEN + ( - - MAX( + 26 ) ) THEN + 53 END * - 14 * + 84 + + MAX( ALL + - 86 ) + - 17 AS col2
----
83
NULL

skipif mysql # not compatible
query II rowsort label-1223
SELECT 84 + - COUNT ( * ) AS col0, CASE + COUNT ( * ) WHEN + ( - - MAX ( + 26 ) ) THEN + 53 END * - 14 * + 84 + + MAX ( ALL + - 86 ) + - 17 AS col2
----
83
NULL

query I rowsort
SELECT ( - 29 ) * - + 40 + + - 88 + 0
----
1072

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1225
SELECT DISTINCT MIN( + CAST( + 74 AS SIGNED ) )
----
74

skipif mysql # not compatible
query I rowsort label-1225
SELECT DISTINCT MIN ( + CAST ( + 74 AS INTEGER ) )
----
74

query I rowsort
SELECT 78 * + 68 + 1 AS col2
----
5305

query I rowsort
SELECT DISTINCT - 45 AS col2
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1228
SELECT - 35 DIV - COUNT( * ) + - COUNT( * ) DIV - 49 + COUNT( * ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-1228
SELECT - 35 / - COUNT ( * ) + - COUNT ( * ) / - 49 + COUNT ( * ) AS col1
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-1229
SELECT ALL - 73 AS col0, SUM( - 40 )
----
-73
-40

skipif mysql # not compatible
query II rowsort label-1229
SELECT ALL - 73 AS col0, SUM ( - 40 )
----
-73
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-1230
SELECT DISTINCT 51 - MAX( 77 ) + 22 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-1230
SELECT DISTINCT 51 - MAX ( 77 ) + 22 AS col2
----
-4

query I rowsort
SELECT 47 * - 51 AS col2
----
-2397

onlyif mysql # DIV for integer division: 
query I rowsort label-1232
SELECT 52 DIV + 69 + + 60 - - 56 * - 32 * + + 72 + + + 28
----
-128936

skipif mysql # not compatible
query I rowsort label-1232
SELECT 52 / + 69 + + 60 - - 56 * - 32 * + + 72 + + + 28
----
-128936

query II rowsort
SELECT ALL - 89 AS col0, - 44 AS col1
----
-89
-44

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1234
SELECT COALESCE ( - CAST( 54 AS SIGNED ), NULLIF ( - CASE - - 24 WHEN - + 26 + 21 THEN NULL ELSE - - 68 END, + 76 ) DIV 10 ) + - + 65
----
-119

skipif mysql # not compatible
query I rowsort label-1234
SELECT COALESCE ( - CAST ( 54 AS INTEGER ), NULLIF ( - CASE - - 24 WHEN - + 26 + 21 THEN NULL ELSE - - 68 END, + 76 ) / 10 ) + - + 65
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-1235
SELECT + MIN( + + 33 ) * 69 + + 85 AS col0
----
2362

skipif mysql # not compatible
query I rowsort label-1235
SELECT + MIN ( + + 33 ) * 69 + + 85 AS col0
----
2362

onlyif mysql # aggregate syntax: 
query I rowsort label-1236
SELECT COALESCE ( 53, + + 83 ) * COUNT( * ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-1236
SELECT COALESCE ( 53, + + 83 ) * COUNT ( * ) AS col2
----
53

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1237
SELECT ALL 10 DIV - + 6, - CAST( 98 AS SIGNED ) DIV 98 + + 93 AS col2
----
-1
92

skipif mysql # not compatible
query II rowsort label-1237
SELECT ALL 10 / - + 6, - CAST ( 98 AS INTEGER ) / 98 + + 93 AS col2
----
-1
92

query II rowsort
SELECT ALL - - 49 AS col2, 23 AS col2
----
49
23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1239
SELECT ALL - - NULLIF ( CAST( - 10 AS SIGNED ), + + 25 ) AS col1, 52 + + 12 AS col2
----
-10
64

skipif mysql # not compatible
query II rowsort label-1239
SELECT ALL - - NULLIF ( CAST ( - 10 AS INTEGER ), + + 25 ) AS col1, 52 + + 12 AS col2
----
-10
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1240
SELECT DISTINCT - ( COUNT( * ) ) + - + 5 + + 62
----
56

skipif mysql # not compatible
query I rowsort label-1240
SELECT DISTINCT - ( COUNT ( * ) ) + - + 5 + + 62
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-1241
SELECT COUNT( * ) + - + CASE + 94 WHEN - MIN( DISTINCT + 84 ) + 68 + + 19 * - COUNT( * ) * 21 THEN - 14 WHEN - 92 / - 12 + + SUM( DISTINCT + 14 ) + - + NULLIF ( + 37, - + 7 ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1241
SELECT COUNT ( * ) + - + CASE + 94 WHEN - MIN ( DISTINCT + 84 ) + 68 + + 19 * - COUNT ( * ) * 21 THEN - 14 WHEN - 92 / - 12 + + SUM ( DISTINCT + 14 ) + - + NULLIF ( + 37, - + 7 ) THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 75 col0
----
-75

query I rowsort
SELECT 34 + 58
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-1244
SELECT + + COUNT( * ) AS col2, COALESCE ( - 90, COUNT( * ) ) col2
----
1
-90

skipif mysql # not compatible
query II rowsort label-1244
SELECT + + COUNT ( * ) AS col2, COALESCE ( - 90, COUNT ( * ) ) col2
----
1
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-1245
SELECT - + CASE - 74 WHEN - COUNT( DISTINCT - - 21 ) + + CASE 64 WHEN ( - - COUNT( * ) ) + - - 16 THEN NULL WHEN + 88 * - 56 / 47 / - 57 * - + 50 THEN + + 85 ELSE NULL END + - - 87 THEN 91 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1245
SELECT - + CASE - 74 WHEN - COUNT ( DISTINCT - - 21 ) + + CASE 64 WHEN ( - - COUNT ( * ) ) + - - 16 THEN NULL WHEN + 88 * - 56 / 47 / - 57 * - + 50 THEN + + 85 ELSE NULL END + - - 87 THEN 91 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1246
SELECT CAST( - - CASE - 48 WHEN + 0 THEN 44 END AS SIGNED ) * - CAST( NULL AS SIGNED ) + + - MAX( + 56 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1246
SELECT CAST ( - - CASE - 48 WHEN + 0 THEN 44 END AS INTEGER ) * - CAST ( NULL AS INTEGER ) + + - MAX ( + 56 ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1247
SELECT 79 * - CAST( NULL AS SIGNED ) + 82 * - + 59 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1247
SELECT 79 * - CAST ( NULL AS INTEGER ) + 82 * - + 59 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1248
SELECT + 29, CASE 22 WHEN + COUNT( * ) THEN 97 ELSE NULL END + 45 AS col1
----
29
NULL

skipif mysql # not compatible
query II rowsort label-1248
SELECT + 29, CASE 22 WHEN + COUNT ( * ) THEN 97 ELSE NULL END + 45 AS col1
----
29
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1249
SELECT - 66 DIV - NULLIF ( + + 70, - 21 * - COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-1249
SELECT - 66 / - NULLIF ( + + 70, - 21 * - COUNT ( * ) )
----
0

query I rowsort
SELECT ALL - - 35 + - 96
----
-61

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1251
SELECT ALL + - MIN( ALL + 42 ) + + + 69 / - - 18 * - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1251
SELECT ALL + - MIN ( ALL + 42 ) + + + 69 / - - 18 * - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1252
SELECT - 79 AS col1, + NULLIF ( + 61, - 74 * - CAST( - 52 AS SIGNED ) + MAX( ALL + 20 ) )
----
-79
61

skipif mysql # not compatible
query II rowsort label-1252
SELECT - 79 AS col1, + NULLIF ( + 61, - 74 * - CAST ( - 52 AS INTEGER ) + MAX ( ALL + 20 ) )
----
-79
61

onlyif mysql # aggregate syntax: 
query II rowsort label-1253
SELECT - 23 * - 54 * + - 47 - + 31 AS col1, ( - - 60 ) * + 10 * - SUM( - 40 )
----
-58405
24000

skipif mysql # not compatible
query II rowsort label-1253
SELECT - 23 * - 54 * + - 47 - + 31 AS col1, ( - - 60 ) * + 10 * - SUM ( - 40 )
----
-58405
24000

query II rowsort
SELECT DISTINCT - 77 AS col2, 65
----
-77
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1255
SELECT ALL + 96 + + 53 + + MAX( CAST( + - 40 AS SIGNED ) )
----
109

skipif mysql # not compatible
query I rowsort label-1255
SELECT ALL + 96 + + 53 + + MAX ( CAST ( + - 40 AS INTEGER ) )
----
109

query I rowsort
SELECT - - COALESCE ( + 47, 51, + - 22 ) + + - 86
----
-39

query I rowsort
SELECT - + 52 * - 91 AS col2
----
4732

onlyif mysql # aggregate syntax: 
query II rowsort label-1258
SELECT - COALESCE ( - + COUNT( * ), - 91 + - 17, + + 57 ) AS col0, 91 AS col0
----
1
91

skipif mysql # not compatible
query II rowsort label-1258
SELECT - COALESCE ( - + COUNT ( * ), - 91 + - 17, + + 57 ) AS col0, 91 AS col0
----
1
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1259
SELECT ALL MIN( DISTINCT - 1 )
----
-1

skipif mysql # not compatible
query I rowsort label-1259
SELECT ALL MIN ( DISTINCT - 1 )
----
-1

query II rowsort
SELECT DISTINCT - 0 * - 48 AS col1, - 16
----
0
-16

onlyif mysql # DIV for integer division: 
query II rowsort label-1261
SELECT - 29 DIV 24 AS col1, + 26
----
-1
26

skipif mysql # not compatible
query II rowsort label-1261
SELECT - 29 / 24 AS col1, + 26
----
-1
26

query I rowsort
SELECT - 41 * - + 68 AS col0
----
2788

onlyif mysql # aggregate syntax: 
query I rowsort label-1263
SELECT DISTINCT + COUNT( * ) * - + 13 * - - COUNT( * ) * - 51 * 90 AS col0
----
59670

skipif mysql # not compatible
query I rowsort label-1263
SELECT DISTINCT + COUNT ( * ) * - + 13 * - - COUNT ( * ) * - 51 * 90 AS col0
----
59670

query II rowsort
SELECT DISTINCT ( + 68 ) AS col1, + 80
----
68
80

query II rowsort
SELECT DISTINCT ( + 19 ) col1, - 53 col0
----
19
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-1266
SELECT DISTINCT - COUNT( * ) * 4 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-1266
SELECT DISTINCT - COUNT ( * ) * 4 AS col1
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1267
SELECT ALL CASE + 47 WHEN 62 + CAST( NULL AS SIGNED ) THEN + + 86 ELSE - 62 + - 37 END
----
-99

skipif mysql # not compatible
query I rowsort label-1267
SELECT ALL CASE + 47 WHEN 62 + CAST ( NULL AS INTEGER ) THEN + + 86 ELSE - 62 + - 37 END
----
-99

query I rowsort
SELECT DISTINCT + 6
----
6

query I rowsort
SELECT ALL + 9 col2
----
9

query I rowsort
SELECT - 4 * 40
----
-160

onlyif mysql # aggregate syntax: 
query I rowsort label-1271
SELECT ( - + CASE - 76 WHEN 28 THEN - - 10 / + 58 + + - 33 * - 90 * - + 60 WHEN - 11 * - 16 THEN NULL WHEN - 98 THEN + 18 - + 28 * - - COUNT( * ) / - 30 * COUNT( * ) END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1271
SELECT ( - + CASE - 76 WHEN 28 THEN - - 10 / + 58 + + - 33 * - 90 * - + 60 WHEN - 11 * - 16 THEN NULL WHEN - 98 THEN + 18 - + 28 * - - COUNT ( * ) / - 30 * COUNT ( * ) END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1272
SELECT + COUNT( 7 ) + 92
----
93

skipif mysql # not compatible
query I rowsort label-1272
SELECT + COUNT ( 7 ) + 92
----
93

query II rowsort
SELECT - 51 * - + 58 * 38, 42 AS col0
----
112404
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1274
SELECT COUNT( * ) * + 75 + - - 51 col2
----
126

skipif mysql # not compatible
query I rowsort label-1274
SELECT COUNT ( * ) * + 75 + - - 51 col2
----
126

onlyif mysql # DIV for integer division: 
query I rowsort label-1275
SELECT - 68 DIV + 87
----
0

skipif mysql # not compatible
query I rowsort label-1275
SELECT - 68 / + 87
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1276
SELECT + CASE + 13 WHEN 86 / - COUNT( * ) * + 47 * + + CASE - 74 WHEN + - AVG ( ALL - 68 ) / + 56 + + + 89 * + 96 + + 29 * - 6 THEN NULL WHEN 44 / - 26 THEN 5 ELSE - - 92 END THEN - 48 WHEN + - CAST( + + 76 AS SIGNED ) * + + 97 * - 58 THEN - 55 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1276
SELECT + CASE + 13 WHEN 86 / - COUNT ( * ) * + 47 * + + CASE - 74 WHEN + - AVG ( ALL - 68 ) / + 56 + + + 89 * + 96 + + 29 * - 6 THEN NULL WHEN 44 / - 26 THEN 5 ELSE - - 92 END THEN - 48 WHEN + - CAST ( + + 76 AS INTEGER ) * + + 97 * - 58 THEN - 55 END AS col2
----
NULL

query I rowsort
SELECT ALL + ( - + ( - 54 ) )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-1278
SELECT ALL + 13 * + CASE + - 48 WHEN COUNT( * ) THEN - 46 ELSE + 71 END AS col0
----
923

skipif mysql # not compatible
query I rowsort label-1278
SELECT ALL + 13 * + CASE + - 48 WHEN COUNT ( * ) THEN - 46 ELSE + 71 END AS col0
----
923

query I rowsort
SELECT ALL - 17 * + 33 + - - 37 + 93 * + + 31 AS col1
----
2359

onlyif mysql # aggregate syntax: 
query I rowsort label-1280
SELECT ALL - - 13 * - 12 + - 0 + - + 75 + + - MIN( - + 99 )
----
-132

skipif mysql # not compatible
query I rowsort label-1280
SELECT ALL - - 13 * - 12 + - 0 + - + 75 + + - MIN ( - + 99 )
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-1281
SELECT DISTINCT 38 * - COUNT( * ) + - 24 AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-1281
SELECT DISTINCT 38 * - COUNT ( * ) + - 24 AS col0
----
-62

query I rowsort
SELECT + - 74 * 97 AS col2
----
-7178

query I rowsort
SELECT + + 15
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1284
SELECT ALL CASE WHEN NOT 10 IS NULL THEN + - 68 ELSE + COUNT( + - 99 ) * 57 * - 53 * + 92 END * + 67 + - 1
----
-4557

skipif mysql # not compatible
query I rowsort label-1284
SELECT ALL CASE WHEN NOT 10 IS NULL THEN + - 68 ELSE + COUNT ( + - 99 ) * 57 * - 53 * + 92 END * + 67 + - 1
----
-4557

query I rowsort
SELECT - 58 + 6 AS col1
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1286
SELECT DISTINCT 46 * - + 26 DIV - - COUNT( * ) + + COUNT( * ) + + 15 + - 63 AS col2
----
-1243

skipif mysql # not compatible
query I rowsort label-1286
SELECT DISTINCT 46 * - + 26 / - - COUNT ( * ) + + COUNT ( * ) + + 15 + - 63 AS col2
----
-1243

onlyif mysql # aggregate syntax: 
query I rowsort label-1287
SELECT + 41 * COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-1287
SELECT + 41 * COUNT ( * )
----
41

query I rowsort
SELECT ALL - 2 * + 43 + - - 52 + 35 * + 52 + - + 62
----
1724

query I rowsort
SELECT DISTINCT + 99 AS col1
----
99

query I rowsort
SELECT + + 47 - + - 54 + + 44 col2
----
145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1291
SELECT - NULLIF ( + 5, 82 + - COALESCE ( AVG ( ALL - 54 ), + 21 + + + 31 + + + MAX( 53 ) * - - 60, + + COUNT( DISTINCT - 31 ) ) + - + 7 * + 59 + + - 72 - 78 + + COALESCE ( AVG ( + - 2 ), - 48 * + CAST( NULL AS SIGNED ) - + 35 + 52 ) * + COUNT( * ) ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-1291
SELECT - NULLIF ( + 5, 82 + - COALESCE ( AVG ( ALL - 54 ), + 21 + + + 31 + + + MAX ( 53 ) * - - 60, + + COUNT ( DISTINCT - 31 ) ) + - + 7 * + 59 + + - 72 - 78 + + COALESCE ( AVG ( + - 2 ), - 48 * + CAST ( NULL AS INTEGER ) - + 35 + 52 ) * + COUNT ( * ) ) AS col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1292
SELECT DISTINCT + 9 * - 89 * COUNT( * ) + - 71 col2
----
-872

skipif mysql # not compatible
query I rowsort label-1292
SELECT DISTINCT + 9 * - 89 * COUNT ( * ) + - 71 col2
----
-872

query I rowsort
SELECT 3 AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1294
SELECT DISTINCT - + COUNT( * ) - - + 45 AS col1
----
44

skipif mysql # not compatible
query I rowsort label-1294
SELECT DISTINCT - + COUNT ( * ) - - + 45 AS col1
----
44

query I rowsort
SELECT + ( 54 )
----
54

query I rowsort
SELECT - - 10
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-1297
SELECT - 36, - 38 + + - 17 + + - 6 * - 30 * 38 + + + COUNT( * ) AS col0
----
-36
6786

skipif mysql # not compatible
query II rowsort label-1297
SELECT - 36, - 38 + + - 17 + + - 6 * - 30 * 38 + + + COUNT ( * ) AS col0
----
-36
6786

query I rowsort
SELECT DISTINCT 77 - 33
----
44

query I rowsort
SELECT - ( 59 ) AS col1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-1300
SELECT + 59 - - - COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-1300
SELECT + 59 - - - COUNT ( * )
----
58

query I rowsort
SELECT + 17 * + - 44
----
-748

query I rowsort
SELECT DISTINCT 97 col1
----
97

query I rowsort
SELECT ALL ( + CASE - 95 WHEN 74 THEN + 23 ELSE - 3 END )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1304
SELECT ALL SUM( DISTINCT - 72 ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-1304
SELECT ALL SUM ( DISTINCT - 72 ) AS col0
----
-72

query I rowsort
SELECT - 87 * 4 * 2 AS col2
----
-696

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1306
SELECT - 5 - + - 97 + + CAST( 20 AS SIGNED ) - - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1306
SELECT - 5 - + - 97 + + CAST ( 20 AS INTEGER ) - - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1307
SELECT DISTINCT + 79 DIV + NULLIF ( - 14, - 92 ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-1307
SELECT DISTINCT + 79 / + NULLIF ( - 14, - 92 ) AS col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1308
SELECT + 75 + + + COUNT( * )
----
76

skipif mysql # not compatible
query I rowsort label-1308
SELECT + 75 + + + COUNT ( * )
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1309
SELECT - COUNT( * ) DIV - - 75
----
0

skipif mysql # not compatible
query I rowsort label-1309
SELECT - COUNT ( * ) / - - 75
----
0

query II rowsort
SELECT 5 AS col0, - 68 AS col0
----
5
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1311
SELECT 52 * - COUNT( * ) + + 42 / + CAST( NULL AS SIGNED ) + + ( - - 33 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1311
SELECT 52 * - COUNT ( * ) + + 42 / + CAST ( NULL AS INTEGER ) + + ( - - 33 )
----
NULL

query I rowsort
SELECT DISTINCT - 80 * 4 AS col2
----
-320

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1313
SELECT DISTINCT + 78 / - 23 + CAST( NULL AS SIGNED ) AS col1, ( + 54 )
----
NULL
54

skipif mysql # not compatible
query II rowsort label-1313
SELECT DISTINCT + 78 / - 23 + CAST ( NULL AS INTEGER ) AS col1, ( + 54 )
----
NULL
54

onlyif mysql # DIV for integer division: 
query I rowsort label-1314
SELECT ALL ( + - 79 ) DIV - 75 - 44 + + + 95 + + 40 + + 32 + + 66 * - - 18
----
1312

skipif mysql # not compatible
query I rowsort label-1314
SELECT ALL ( + - 79 ) / - 75 - 44 + + + 95 + + 40 + + 32 + + 66 * - - 18
----
1312

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1315
SELECT ALL - 45 DIV - 89 + - + COUNT( * ) * + 75 * - 38 * - - 9 + + - 77
----
25573

skipif mysql # not compatible
query I rowsort label-1315
SELECT ALL - 45 / - 89 + - + COUNT ( * ) * + 75 * - 38 * - - 9 + + - 77
----
25573

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1316
SELECT + + 99 * - 44 + - - 93 + - 7 * - 33 + + 96 * + COUNT( * ) + - 23 DIV - 95 * 16 + - + 25 AS col1
----
-3961

skipif mysql # not compatible
query I rowsort label-1316
SELECT + + 99 * - 44 + - - 93 + - 7 * - 33 + + 96 * + COUNT ( * ) + - 23 / - 95 * 16 + - + 25 AS col1
----
-3961

query I rowsort
SELECT - 73 * - + 45 + - - 83
----
3368

query I rowsort
SELECT + 18 col1
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1319
SELECT ALL 94 DIV 94 DIV - COUNT( * ) + + - 2 + - 47 * + 42 col1
----
-1977

skipif mysql # not compatible
query I rowsort label-1319
SELECT ALL 94 / 94 / - COUNT ( * ) + + - 2 + - 47 * + 42 col1
----
-1977

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1320
SELECT - NULLIF ( + - COUNT( * ), + - MIN( - CAST( NULL AS DECIMAL ) ) * - + 23 * - - 92 ) + + + 36 AS col0
----
37

skipif mysql # not compatible
query I rowsort label-1320
SELECT - NULLIF ( + - COUNT ( * ), + - MIN ( - CAST ( NULL AS REAL ) ) * - + 23 * - - 92 ) + + + 36 AS col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-1321
SELECT - 77 * - 29 * - + COUNT( + + 51 ) + 90 + - + 89 + 36 * - - 50 + COUNT( * ) + - 63 AS col1
----
-494

skipif mysql # not compatible
query I rowsort label-1321
SELECT - 77 * - 29 * - + COUNT ( + + 51 ) + 90 + - + 89 + 36 * - - 50 + COUNT ( * ) + - 63 AS col1
----
-494

onlyif mysql # aggregate syntax: 
query I rowsort label-1322
SELECT + - ( - NULLIF ( - COUNT( * ), + 94 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1322
SELECT + - ( - NULLIF ( - COUNT ( * ), + 94 ) )
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1323
SELECT DISTINCT CAST( NULL AS DECIMAL ) / + 62 + - + 14 * 48
----
NULL

skipif mysql # not compatible
query I rowsort label-1323
SELECT DISTINCT CAST ( NULL AS REAL ) / + 62 + - + 14 * 48
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1324
SELECT + COUNT( * ) AS col2, 27 * - 97
----
1
-2619

skipif mysql # not compatible
query II rowsort label-1324
SELECT + COUNT ( * ) AS col2, 27 * - 97
----
1
-2619

onlyif mysql # aggregate syntax: 
query I rowsort label-1325
SELECT + - NULLIF ( - COUNT( * ), + 59 / 85 * - + 51 / - 63 * + 23 * - ( AVG ( - 14 ) ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1325
SELECT + - NULLIF ( - COUNT ( * ), + 59 / 85 * - + 51 / - 63 * + 23 * - ( AVG ( - 14 ) ) ) AS col2
----
1

query I rowsort
SELECT + 39 + 87 AS col0
----
126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1327
SELECT + 78 * + COUNT( * ) - + CAST( NULL AS SIGNED ) AS col2, + 6 + + 14 + 18
----
NULL
38

skipif mysql # not compatible
query II rowsort label-1327
SELECT + 78 * + COUNT ( * ) - + CAST ( NULL AS INTEGER ) AS col2, + 6 + + 14 + 18
----
NULL
38

query I rowsort
SELECT ALL 17 * + 90 + - 66
----
1464

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1329
SELECT DISTINCT + COALESCE ( - + 78, 91 + - - 23 * + 23 + - + 39 + - 87, 75 * COALESCE ( - 7, + 84 * + 48 DIV - COALESCE ( 93, + + 98 ) + - 85 - - + CAST( NULL AS SIGNED ) + - + 35 + 71 + - + NULLIF ( + 22, - NULLIF ( + 2, - 73 ) ), - COUNT( ALL + ( - + 41 ) ) ) + + CAST( 45 AS SIGNED ) ) + - SUM( ALL - 98 + 0 * + 10 ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-1329
SELECT DISTINCT + COALESCE ( - + 78, 91 + - - 23 * + 23 + - + 39 + - 87, 75 * COALESCE ( - 7, + 84 * + 48 / - COALESCE ( 93, + + 98 ) + - 85 - - + CAST ( NULL AS INTEGER ) + - + 35 + 71 + - + NULLIF ( + 22, - NULLIF ( + 2, - 73 ) ), - COUNT ( ALL + ( - + 41 ) ) ) + + CAST ( 45 AS INTEGER ) ) + - SUM ( ALL - 98 + 0 * + 10 ) AS col0
----
20

query I rowsort
SELECT ALL + 7 * 13 AS col2
----
91

query I rowsort
SELECT + 5 + + 85
----
90

query I rowsort
SELECT - 14 * + 87 AS col0
----
-1218

onlyif mysql # aggregate syntax: 
query I rowsort label-1333
SELECT ( 93 ) + - MAX( - + 26 ) AS col1
----
119

skipif mysql # not compatible
query I rowsort label-1333
SELECT ( 93 ) + - MAX ( - + 26 ) AS col1
----
119

query II rowsort
SELECT - 14 AS col0, 84
----
-14
84

onlyif mysql # DIV for integer division: 
query II rowsort label-1335
SELECT 24 DIV 52 * - + 94 AS col2, 49 col1
----
0
49

skipif mysql # not compatible
query II rowsort label-1335
SELECT 24 / 52 * - + 94 AS col2, 49 col1
----
0
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1336
SELECT - - CASE - 84 WHEN + ( CAST( NULL AS SIGNED ) ) THEN NULL ELSE - + COUNT( * ) * + NULLIF ( - + 8, AVG ( DISTINCT - 3 ) ) END AS col1
----
8

skipif mysql # not compatible
query I rowsort label-1336
SELECT - - CASE - 84 WHEN + ( CAST ( NULL AS INTEGER ) ) THEN NULL ELSE - + COUNT ( * ) * + NULLIF ( - + 8, AVG ( DISTINCT - 3 ) ) END AS col1
----
8

query I rowsort
SELECT DISTINCT + ( 46 ) AS col2
----
46

query I rowsort
SELECT - NULLIF ( + 4, + 4 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1339
SELECT NULLIF ( - CAST( + - 50 AS SIGNED ), - 45 - - 33 ) DIV + + 26
----
1

skipif mysql # not compatible
query I rowsort label-1339
SELECT NULLIF ( - CAST ( + - 50 AS INTEGER ), - 45 - - 33 ) / + + 26
----
1

query I rowsort
SELECT ( 23 ) + - 41 * - 55
----
2278

onlyif mysql # aggregate syntax: 
query I rowsort label-1341
SELECT COUNT( * ) + 95
----
96

skipif mysql # not compatible
query I rowsort label-1341
SELECT COUNT ( * ) + 95
----
96

query I rowsort
SELECT DISTINCT COALESCE ( + + 49, - 95, - 28 * + 93 ) * - + 28
----
-1372

onlyif mysql # aggregate syntax: 
query I rowsort label-1343
SELECT COUNT( * ) * + + 82 * + 44 AS col1
----
3608

skipif mysql # not compatible
query I rowsort label-1343
SELECT COUNT ( * ) * + + 82 * + 44 AS col1
----
3608

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1344
SELECT 63 + - 47 + - 76 + - - COUNT( * ) * + + 35 DIV + + 20
----
-59

skipif mysql # not compatible
query I rowsort label-1344
SELECT 63 + - 47 + - 76 + - - COUNT ( * ) * + + 35 / + + 20
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-1345
SELECT NULLIF ( - + 21, + COUNT( * ) + + 40 + - 65 * - - 4 + + + MIN( DISTINCT - 12 ) ) * - ( 93 ) * + 68 * 84 * + 46 AS col2
----
513154656

skipif mysql # not compatible
query I rowsort label-1345
SELECT NULLIF ( - + 21, + COUNT ( * ) + + 40 + - 65 * - - 4 + + + MIN ( DISTINCT - 12 ) ) * - ( 93 ) * + 68 * 84 * + 46 AS col2
----
513154656

onlyif mysql # aggregate syntax: 
query I rowsort label-1346
SELECT 73 + + COUNT( * ) - + + 77
----
-3

skipif mysql # not compatible
query I rowsort label-1346
SELECT 73 + + COUNT ( * ) - + + 77
----
-3

query II rowsort
SELECT ALL - 93 + + + 21 AS col2, 6 AS col2
----
-72
6

query I rowsort
SELECT ALL 27 + + - 79 AS col0
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1349
SELECT CAST( - + 77 AS SIGNED ) * + 59 * + + COUNT( * )
----
-4543

skipif mysql # not compatible
query I rowsort label-1349
SELECT CAST ( - + 77 AS INTEGER ) * + 59 * + + COUNT ( * )
----
-4543

query I rowsort
SELECT ALL + 21 + + - 55
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1351
SELECT ALL + 52 DIV + MIN( + 85 )
----
0

skipif mysql # not compatible
query I rowsort label-1351
SELECT ALL + 52 / + MIN ( + 85 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1352
SELECT + 26 DIV + ( + 53 ) * - ( + COUNT( ALL - 88 ) )
----
0

skipif mysql # not compatible
query I rowsort label-1352
SELECT + 26 / + ( + 53 ) * - ( + COUNT ( ALL - 88 ) )
----
0

query I rowsort
SELECT + 96 * 99 AS col1
----
9504

onlyif mysql # aggregate syntax: 
query I rowsort label-1354
SELECT ALL - + NULLIF ( + - MAX( - 21 ), - + 24 ) + 82
----
61

skipif mysql # not compatible
query I rowsort label-1354
SELECT ALL - + NULLIF ( + - MAX ( - 21 ), - + 24 ) + 82
----
61

query I rowsort
SELECT + - 32
----
-32

query I rowsort
SELECT - NULLIF ( 98, - 47 ) AS col2
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-1357
SELECT - COUNT( + 18 ) - - COUNT( * ) - + + 98
----
-98

skipif mysql # not compatible
query I rowsort label-1357
SELECT - COUNT ( + 18 ) - - COUNT ( * ) - + + 98
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-1358
SELECT - 76 * COUNT( * ) AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-1358
SELECT - 76 * COUNT ( * ) AS col2
----
-76

query I rowsort
SELECT ALL - - 45
----
45

query I rowsort
SELECT - COALESCE ( 46, - 84 * 53 )
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1361
SELECT + 42 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1361
SELECT + 42 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1362
SELECT + CAST( + 73 AS SIGNED )
----
73

skipif mysql # not compatible
query I rowsort label-1362
SELECT + CAST ( + 73 AS INTEGER )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-1363
SELECT - COUNT( - ( - 2 ) ) * 50 + + + 30 AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-1363
SELECT - COUNT ( - ( - 2 ) ) * 50 + + + 30 AS col0
----
-20

query I rowsort
SELECT + 4 AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1365
SELECT - 34 + + - COUNT( * )
----
-35

skipif mysql # not compatible
query I rowsort label-1365
SELECT - 34 + + - COUNT ( * )
----
-35

query I rowsort
SELECT ALL + 84 - - 16 * ( + 34 ) col1
----
628

query I rowsort
SELECT - 78 * + + 84 AS col0
----
-6552

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1368
SELECT 70 * - 13 + 83 * + 2 AS col1, + 51 + + - 84 DIV - + COALESCE ( - CASE COUNT( * ) WHEN + 90 + 14 * 18 THEN + + 51 ELSE + + 18 END, 96, + 81 )
----
-744
47

skipif mysql # not compatible
query II rowsort label-1368
SELECT 70 * - 13 + 83 * + 2 AS col1, + 51 + + - 84 / - + COALESCE ( - CASE COUNT ( * ) WHEN + 90 + 14 * 18 THEN + + 51 ELSE + + 18 END, 96, + 81 )
----
-744
47

query I rowsort
SELECT ALL - + ( 78 ) AS col0
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-1370
SELECT ALL + 96 DIV - 40 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-1370
SELECT ALL + 96 / - 40 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1371
SELECT COUNT( * ) * - COUNT( * ) * - - 16
----
-16

skipif mysql # not compatible
query I rowsort label-1371
SELECT COUNT ( * ) * - COUNT ( * ) * - - 16
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-1372
SELECT 32 + - + MIN( + 0 ) * - COUNT( * ) * - + 24 + + + 11 + + COALESCE ( + 37, 68, + 52 ) AS col1, - 39
----
80
-39

skipif mysql # not compatible
query II rowsort label-1372
SELECT 32 + - + MIN ( + 0 ) * - COUNT ( * ) * - + 24 + + + 11 + + COALESCE ( + 37, 68, + 52 ) AS col1, - 39
----
80
-39

query II rowsort
SELECT ALL 42, 17 * + 9 AS col2
----
42
153

onlyif mysql # aggregate syntax: 
query II rowsort label-1374
SELECT - 43, MAX( ALL - 65 ) col2
----
-43
-65

skipif mysql # not compatible
query II rowsort label-1374
SELECT - 43, MAX ( ALL - 65 ) col2
----
-43
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-1375
SELECT 12 + + SUM( DISTINCT - + 96 ) - 64
----
-148

skipif mysql # not compatible
query I rowsort label-1375
SELECT 12 + + SUM ( DISTINCT - + 96 ) - 64
----
-148

query I rowsort
SELECT 18 * - + 16
----
-288

query I rowsort
SELECT 54 * + 61 * - - 18
----
59292

query I rowsort
SELECT DISTINCT 2 AS col0
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-1379
SELECT 38 AS col1, 5 - 46 - - + COALESCE ( - 56, - COUNT( * ) ) + + + ( - - 8 )
----
38
-89

skipif mysql # not compatible
query II rowsort label-1379
SELECT 38 AS col1, 5 - 46 - - + COALESCE ( - 56, - COUNT ( * ) ) + + + ( - - 8 )
----
38
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-1380
SELECT DISTINCT + ( MAX( - - 25 ) ) + 94 AS col1
----
119

skipif mysql # not compatible
query I rowsort label-1380
SELECT DISTINCT + ( MAX ( - - 25 ) ) + 94 AS col1
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-1381
SELECT ALL 16 + + COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-1381
SELECT ALL 16 + + COUNT ( * )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1382
SELECT MAX( - - 52 ) * + + 58
----
3016

skipif mysql # not compatible
query I rowsort label-1382
SELECT MAX ( - - 52 ) * + + 58
----
3016

query I rowsort
SELECT ALL + 89 + + 42
----
131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1384
SELECT ALL - CAST( NULL AS SIGNED ) / - - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1384
SELECT ALL - CAST ( NULL AS INTEGER ) / - - COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT ALL 68 * 17 * 24
----
27744

onlyif mysql # aggregate syntax: 
query I rowsort label-1386
SELECT - SUM( DISTINCT 90 )
----
-90

skipif mysql # not compatible
query I rowsort label-1386
SELECT - SUM ( DISTINCT 90 )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-1387
SELECT ALL 80 + MIN( 61 ) * - 5 + - 72
----
-297

skipif mysql # not compatible
query I rowsort label-1387
SELECT ALL 80 + MIN ( 61 ) * - 5 + - 72
----
-297

onlyif mysql # aggregate syntax: 
query I rowsort label-1388
SELECT COUNT( * ) + - - 72 - - + 57 AS col1
----
130

skipif mysql # not compatible
query I rowsort label-1388
SELECT COUNT ( * ) + - - 72 - - + 57 AS col1
----
130

query I rowsort
SELECT ( - 13 ) - + + ( + - 48 ) + + - ( - 17 ) - + 70 * - 88 * + 40 * - - 64 col2
----
15769652

query I rowsort
SELECT 53 + + 27 * + 13
----
404

onlyif mysql # aggregate syntax: 
query I rowsort label-1391
SELECT SUM( - + 55 ) - - COUNT( ALL 84 ) - + COUNT( * ) * 18 * + 5 * - 86 AS col1
----
7686

skipif mysql # not compatible
query I rowsort label-1391
SELECT SUM ( - + 55 ) - - COUNT ( ALL 84 ) - + COUNT ( * ) * 18 * + 5 * - 86 AS col1
----
7686

query I rowsort
SELECT + 94 * - + 89
----
-8366

query I rowsort
SELECT ALL + - 90
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1394
SELECT + + 75 DIV 59 + + + 40 + + - 65 + - - COUNT( * ) DIV ( - ( - 82 ) ) + COUNT( * ) DIV + COALESCE ( 7, - - 70 + 43 )
----
-24

skipif mysql # not compatible
query I rowsort label-1394
SELECT + + 75 / 59 + + + 40 + + - 65 + - - COUNT ( * ) / ( - ( - 82 ) ) + COUNT ( * ) / + COALESCE ( 7, - - 70 + 43 )
----
-24

query I rowsort
SELECT ALL 10 * 67 * - - NULLIF ( + 92, - - 11 * - + 65 ) - - + 22 - 27 AS col0
----
61635

onlyif mysql # aggregate syntax: 
query I rowsort label-1396
SELECT DISTINCT + - COUNT( * ) AS col2
----
-1

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

query II rowsort
SELECT 85, 49 AS col2
----
85
49

query I rowsort
SELECT DISTINCT + + 52
----
52

query I rowsort
SELECT + + ( - 37 ) AS col0
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-1400
SELECT - + 69 DIV + 57 col1
----
-1

skipif mysql # not compatible
query I rowsort label-1400
SELECT - + 69 / + 57 col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1401
SELECT DISTINCT MIN( DISTINCT - 21 ) DIV 55
----
0

skipif mysql # not compatible
query I rowsort label-1401
SELECT DISTINCT MIN ( DISTINCT - 21 ) / 55
----
0

query I rowsort
SELECT - 23 + - + 6
----
-29

onlyif mysql # DIV for integer division: 
query II rowsort label-1403
SELECT + 62 DIV 76 * 85 AS col1, - 10
----
0
-10

skipif mysql # not compatible
query II rowsort label-1403
SELECT + 62 / 76 * 85 AS col1, - 10
----
0
-10

onlyif mysql # DIV for integer division: 
query II rowsort label-1404
SELECT - 32 * + ( - 52 ) AS col1, 71 DIV + 14 AS col2
----
1664
5

skipif mysql # not compatible
query II rowsort label-1404
SELECT - 32 * + ( - 52 ) AS col1, 71 / + 14 AS col2
----
1664
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1405
SELECT DISTINCT + COUNT( - 29 ) DIV + 25 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1405
SELECT DISTINCT + COUNT ( - 29 ) / + 25 AS col0
----
0

query I rowsort
SELECT + - 87 AS col1
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1407
SELECT ALL - 53 * + 63 * CAST( + + ( 50 ) AS SIGNED ) - + MIN( + 93 ) * - 20 + + + 50 DIV - 78
----
-165090

skipif mysql # not compatible
query I rowsort label-1407
SELECT ALL - 53 * + 63 * CAST ( + + ( 50 ) AS INTEGER ) - + MIN ( + 93 ) * - 20 + + + 50 / - 78
----
-165090

onlyif mysql # aggregate syntax: 
query I rowsort label-1408
SELECT DISTINCT 64 * + COUNT( * ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-1408
SELECT DISTINCT 64 * + COUNT ( * ) AS col2
----
64

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1409
SELECT ALL + CAST( NULL AS DECIMAL ) AS col1, - 19 + + 42 AS col1
----
NULL
23

skipif mysql # not compatible
query II rowsort label-1409
SELECT ALL + CAST ( NULL AS REAL ) AS col1, - 19 + + 42 AS col1
----
NULL
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1410
SELECT - MAX( DISTINCT + 10 ) * 34 * - CAST( 56 AS SIGNED ) * + - COUNT( DISTINCT 15 )
----
-19040

skipif mysql # not compatible
query I rowsort label-1410
SELECT - MAX ( DISTINCT + 10 ) * 34 * - CAST ( 56 AS INTEGER ) * + - COUNT ( DISTINCT 15 )
----
-19040

query I rowsort
SELECT + ( ( - + 66 ) ) AS col1
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-1412
SELECT COUNT( * ), + COUNT( + ( + - 51 ) ) AS col2
----
1
1

skipif mysql # not compatible
query II rowsort label-1412
SELECT COUNT ( * ), + COUNT ( + ( + - 51 ) ) AS col2
----
1
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1413
SELECT COUNT( * ) AS col1, - 95 AS col2
----
1
-95

skipif mysql # not compatible
query II rowsort label-1413
SELECT COUNT ( * ) AS col1, - 95 AS col2
----
1
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-1414
SELECT + 96 AS col2, - ( + 5 ) * MIN( + 90 )
----
96
-450

skipif mysql # not compatible
query II rowsort label-1414
SELECT + 96 AS col2, - ( + 5 ) * MIN ( + 90 )
----
96
-450

onlyif mysql # aggregate syntax: 
query I rowsort label-1415
SELECT ALL CASE - 18 WHEN + - 64 THEN - - COUNT( ALL + - 14 ) ELSE 77 END AS col0
----
77

skipif mysql # not compatible
query I rowsort label-1415
SELECT ALL CASE - 18 WHEN + - 64 THEN - - COUNT ( ALL + - 14 ) ELSE 77 END AS col0
----
77

query I rowsort
SELECT - 52 * NULLIF ( - 10, + + 51 ) * 56
----
29120

query I rowsort
SELECT DISTINCT NULLIF ( 18, + 5 ) AS col0
----
18

query I rowsort
SELECT ALL + 93 + + 55 * - NULLIF ( - - 43, + + ( - ( + 72 ) ) + + 12 )
----
-2272

onlyif mysql # aggregate syntax: 
query I rowsort label-1419
SELECT DISTINCT + COUNT( * ) + + - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1419
SELECT DISTINCT + COUNT ( * ) + + - COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1420
SELECT - 22 + COUNT( * ) * + 85 + + 70 + 71 + 31
----
235

skipif mysql # not compatible
query I rowsort label-1420
SELECT - 22 + COUNT ( * ) * + 85 + + 70 + 71 + 31
----
235

query II rowsort
SELECT - 61 AS col1, + 83 AS col2
----
-61
83

query I rowsort
SELECT ALL 69 * + 48
----
3312

query II rowsort
SELECT 45, 52 * + + 72 AS col0
----
45
3744

onlyif mysql # aggregate syntax: 
query I rowsort label-1424
SELECT ALL - 30 * + + COUNT( * ) * 0
----
0

skipif mysql # not compatible
query I rowsort label-1424
SELECT ALL - 30 * + + COUNT ( * ) * 0
----
0

query I rowsort
SELECT + ( + 14 ) + - + 49 AS col1
----
-35

query II rowsort
SELECT - 30 AS col0, + 88 * + 80 * + 39
----
-30
274560

query II rowsort
SELECT DISTINCT + 56 AS col0, 91 + + 88
----
56
179

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1428
SELECT ALL 47 AS col2, - CAST( NULL AS SIGNED ) AS col0
----
47
NULL

skipif mysql # not compatible
query II rowsort label-1428
SELECT ALL 47 AS col2, - CAST ( NULL AS INTEGER ) AS col0
----
47
NULL

query I rowsort
SELECT ALL CASE - 94 WHEN 75 THEN + 81 WHEN + 78 + + 94 THEN - 31 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1430
SELECT DISTINCT - - 45 DIV - 48 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1430
SELECT DISTINCT - - 45 / - 48 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1431
SELECT + SUM( ALL + 25 ) * + + 57 + - COUNT( * ) * - MAX( - 90 ) col2
----
1335

skipif mysql # not compatible
query I rowsort label-1431
SELECT + SUM ( ALL + 25 ) * + + 57 + - COUNT ( * ) * - MAX ( - 90 ) col2
----
1335

query I rowsort
SELECT - 11 - - 43 col1
----
32

query II rowsort
SELECT + + 84 col1, 69
----
84
69

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

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

query II rowsort
SELECT 25 AS col0, 34 AS col1
----
25
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1436
SELECT + - 12 * - COUNT( - 77 )
----
12

skipif mysql # not compatible
query I rowsort label-1436
SELECT + - 12 * - COUNT ( - 77 )
----
12

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

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

query I rowsort
SELECT ALL 91 * - 61 * - 44 AS col0
----
244244

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1439
SELECT + - 62 - MIN( + 42 ) DIV - MAX( + 4 ) AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-1439
SELECT + - 62 - MIN ( + 42 ) / - MAX ( + 4 ) AS col1
----
-52

query I rowsort
SELECT ALL - 57 * - ( + - 37 ) AS col0
----
-2109

query I rowsort
SELECT ( - 28 )
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-1442
SELECT ALL + + COUNT( * ) col2, 51 * COUNT( * ) + + 46
----
1
97

skipif mysql # not compatible
query II rowsort label-1442
SELECT ALL + + COUNT ( * ) col2, 51 * COUNT ( * ) + + 46
----
1
97

query II rowsort
SELECT + + 33 col0, - ( - - 30 ) * + + 3 + + 77
----
33
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1444
SELECT ALL + 78 * + CAST( - 59 AS SIGNED ) + + ( - + 93 ) * - - 18 * + + COUNT( * ) AS col1, - 43 AS col1
----
-6276
-43

skipif mysql # not compatible
query II rowsort label-1444
SELECT ALL + 78 * + CAST ( - 59 AS INTEGER ) + + ( - + 93 ) * - - 18 * + + COUNT ( * ) AS col1, - 43 AS col1
----
-6276
-43

query III rowsort
SELECT + 59 + - + 19 AS col1, 6 AS col2, + 76 + + 94 + + 55
----
40
6
225

query I rowsort
SELECT ( + COALESCE ( + + 62, + - 9 + + - 4 ) )
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1447
SELECT 6 * 74 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1447
SELECT 6 * 74 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 41 - - - 55 AS col0
----
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1449
SELECT ALL COUNT( * ) DIV 67 * 9 * + - 89 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1449
SELECT ALL COUNT ( * ) / 67 * 9 * + - 89 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1450
SELECT + ( - + MAX( ALL - 30 ) )
----
30

skipif mysql # not compatible
query I rowsort label-1450
SELECT + ( - + MAX ( ALL - 30 ) )
----
30

query I rowsort
SELECT - 58 + 38 * + + NULLIF ( NULLIF ( + 59, - 67 ), 98 ) + + 88 AS col2
----
2272

onlyif mysql # aggregate syntax: 
query I rowsort label-1452
SELECT ALL 79 * - 97 + + MAX( ALL 84 ) + + - ( 42 )
----
-7621

skipif mysql # not compatible
query I rowsort label-1452
SELECT ALL 79 * - 97 + + MAX ( ALL 84 ) + + - ( 42 )
----
-7621

onlyif mysql # aggregate syntax: 
query I rowsort label-1453
SELECT ALL 48 * + - 65 + MAX( - + 46 )
----
-3166

skipif mysql # not compatible
query I rowsort label-1453
SELECT ALL 48 * + - 65 + MAX ( - + 46 )
----
-3166

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1454
SELECT + 5 * + + COUNT( * ) DIV COUNT( * ) * + 49
----
245

skipif mysql # not compatible
query I rowsort label-1454
SELECT + 5 * + + COUNT ( * ) / COUNT ( * ) * + 49
----
245

query I rowsort
SELECT - 81 + + NULLIF ( + 30, + - 35 ) AS col2
----
-51

query I rowsort
SELECT ALL ( 13 )
----
13

query I rowsort
SELECT NULLIF ( - - 79, - 67 )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1458
SELECT ALL - 69 * COUNT( * ) + + + 78
----
9

skipif mysql # not compatible
query I rowsort label-1458
SELECT ALL - 69 * COUNT ( * ) + + + 78
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1459
SELECT - NULLIF ( + CASE - 32 WHEN CAST( NULL AS SIGNED ) THEN ( - 12 ) ELSE NULL END, + - 50 ) * + + COUNT( * ) / - 50 - - CAST( + COUNT( * ) AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1459
SELECT - NULLIF ( + CASE - 32 WHEN CAST ( NULL AS INTEGER ) THEN ( - 12 ) ELSE NULL END, + - 50 ) * + + COUNT ( * ) / - 50 - - CAST ( + COUNT ( * ) AS INTEGER ) col0
----
NULL

query I rowsort
SELECT + 45 * + 30 AS col2
----
1350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1461
SELECT 72 * - 44 * 63 AS col1, 12 + - NULLIF ( + + CAST( NULL AS SIGNED ), - 44 * + CAST( NULL AS SIGNED ) + + - 5 * - 58 + + - 94 ) - - 70 * + COUNT( * ) AS col1
----
-199584
NULL

skipif mysql # not compatible
query II rowsort label-1461
SELECT 72 * - 44 * 63 AS col1, 12 + - NULLIF ( + + CAST ( NULL AS INTEGER ), - 44 * + CAST ( NULL AS INTEGER ) + + - 5 * - 58 + + - 94 ) - - 70 * + COUNT ( * ) AS col1
----
-199584
NULL

query II rowsort
SELECT 78 - - + 15 AS col0, + 12 AS col0
----
93
12

query I rowsort
SELECT 17 col0
----
17

query I rowsort
SELECT DISTINCT - 58 AS col1
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1465
SELECT ALL - 13 DIV CAST( - COUNT( * ) AS SIGNED ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-1465
SELECT ALL - 13 / CAST ( - COUNT ( * ) AS INTEGER ) AS col1
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1466
SELECT - CASE + 69 WHEN - CAST( + - 21 AS SIGNED ) + - - 30 THEN - + NULLIF ( + 99, + - 79 + + - 75 ) * + + 17 * - 42 END - + 0 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1466
SELECT - CASE + 69 WHEN - CAST ( + - 21 AS INTEGER ) + - - 30 THEN - + NULLIF ( + 99, + - 79 + + - 75 ) * + + 17 * - 42 END - + 0 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1467
SELECT - 22 + - COUNT( * ) + - ( 92 ) * - 84 AS col2
----
7705

skipif mysql # not compatible
query I rowsort label-1467
SELECT - 22 + - COUNT ( * ) + - ( 92 ) * - 84 AS col2
----
7705

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1468
SELECT DISTINCT - 61 * - 87 AS col0, 76 * + 21 * + CAST( NULL AS SIGNED )
----
5307
NULL

skipif mysql # not compatible
query II rowsort label-1468
SELECT DISTINCT - 61 * - 87 AS col0, 76 * + 21 * + CAST ( NULL AS INTEGER )
----
5307
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1469
SELECT ALL + 97 + - - COUNT( - 38 ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-1469
SELECT ALL + 97 + - - COUNT ( - 38 ) AS col2
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1470
SELECT - - NULLIF ( - 68, 1 + + - 66 ) DIV - 3 + 15 + COUNT( * ) * - - 52 + 27 AS col0
----
116

skipif mysql # not compatible
query I rowsort label-1470
SELECT - - NULLIF ( - 68, 1 + + - 66 ) / - 3 + 15 + COUNT ( * ) * - - 52 + 27 AS col0
----
116

query I rowsort
SELECT ALL - - 14 AS col0
----
14

query I rowsort
SELECT ALL - - 97
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1473
SELECT 55 * - + NULLIF ( - COUNT( * ), + + CAST( + + 39 AS SIGNED ) - - + 0 )
----
55

skipif mysql # not compatible
query I rowsort label-1473
SELECT 55 * - + NULLIF ( - COUNT ( * ), + + CAST ( + + 39 AS INTEGER ) - - + 0 )
----
55

query I rowsort
SELECT ALL + - 75 + + 70 col0
----
-5

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

skipif mysql # not compatible
query I rowsort label-1475
SELECT ( + - CAST ( NULL AS REAL ) ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1476
SELECT 67 * - 14 * COUNT( * ) + + 60 + + 92 AS col0, - 74
----
-786
-74

skipif mysql # not compatible
query II rowsort label-1476
SELECT 67 * - 14 * COUNT ( * ) + + 60 + + 92 AS col0, - 74
----
-786
-74

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1477
SELECT DISTINCT + NULLIF ( 28, + COALESCE ( 0, + CAST( - + MIN( + - 20 ) AS DECIMAL ), 95 ) + ( - 27 ) + - - 43 * - 43 ) + + ( + 79 )
----
107

skipif mysql # not compatible
query I rowsort label-1477
SELECT DISTINCT + NULLIF ( 28, + COALESCE ( 0, + CAST ( - + MIN ( + - 20 ) AS REAL ), 95 ) + ( - 27 ) + - - 43 * - 43 ) + + ( + 79 )
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-1478
SELECT ALL - + ( + + COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1478
SELECT ALL - + ( + + COUNT ( * ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1479
SELECT 31 * 56 * + - COUNT( * )
----
-1736

skipif mysql # not compatible
query I rowsort label-1479
SELECT 31 * 56 * + - COUNT ( * )
----
-1736

query I rowsort
SELECT ALL - 66 * + 76 * + 61 * 85 AS col2
----
-26007960

query I rowsort
SELECT DISTINCT - 31 AS col0
----
-31

query I rowsort
SELECT 44 + + NULLIF ( + 83, + 67 * + 43 ) + - 29 AS col1
----
98

query II rowsort
SELECT DISTINCT - 14 col0, + COALESCE ( - 64, - 99 ) AS col2
----
-14
-64

query I rowsort
SELECT ( - + 30 ) + + 49 + - 81
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-1485
SELECT DISTINCT 92 DIV - 49
----
-1

skipif mysql # not compatible
query I rowsort label-1485
SELECT DISTINCT 92 / - 49
----
-1

query II rowsort
SELECT DISTINCT 21, + 63 * + + 6 AS col2
----
21
378

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1487
SELECT ALL 21 / 64 * CAST( NULL AS SIGNED ) * + + ( + 69 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1487
SELECT ALL 21 / 64 * CAST ( NULL AS INTEGER ) * + + ( + 69 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1488
SELECT ( + 50 ) + ( - + COALESCE ( + 69, + SUM( DISTINCT - 62 ) * 48 + + - 62, COUNT( * ) ) ) AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-1488
SELECT ( + 50 ) + ( - + COALESCE ( + 69, + SUM ( DISTINCT - 62 ) * 48 + + - 62, COUNT ( * ) ) ) AS col0
----
-19

query I rowsort
SELECT 82 * + 44
----
3608

onlyif mysql # aggregate syntax: 
query II rowsort label-1490
SELECT ALL 27, COUNT( * ) AS col2
----
27
1

skipif mysql # not compatible
query II rowsort label-1490
SELECT ALL 27, COUNT ( * ) AS col2
----
27
1

query I rowsort
SELECT 44 + 86 AS col0
----
130

query I rowsort
SELECT ALL 0 * - + 86 AS col2
----
0

query I rowsort
SELECT - 70 * - - 15 AS col2
----
-1050

query II rowsort
SELECT 91 * ( 52 ) AS col2, + 70
----
4732
70

onlyif mysql # aggregate syntax: 
query II rowsort label-1495
SELECT + COUNT( * ) AS col0, 6 - - 80
----
1
86

skipif mysql # not compatible
query II rowsort label-1495
SELECT + COUNT ( * ) AS col0, 6 - - 80
----
1
86

onlyif mysql # aggregate syntax: 
query I rowsort label-1496
SELECT COUNT( * ) + - + 99 AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-1496
SELECT COUNT ( * ) + - + 99 AS col0
----
-98

query I rowsort
SELECT + 62 + 11 AS col0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-1498
SELECT ALL + + 15 + + - 95 * 68 + + MIN( + - 89 ) AS col2
----
-6534

skipif mysql # not compatible
query I rowsort label-1498
SELECT ALL + + 15 + + - 95 * 68 + + MIN ( + - 89 ) AS col2
----
-6534

onlyif mysql # aggregate syntax: 
query II rowsort label-1499
SELECT DISTINCT 89, - COUNT( * ) AS col2
----
89
-1

skipif mysql # not compatible
query II rowsort label-1499
SELECT DISTINCT 89, - COUNT ( * ) AS col2
----
89
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1500
SELECT DISTINCT MAX( ALL - 38 )
----
-38

skipif mysql # not compatible
query I rowsort label-1500
SELECT DISTINCT MAX ( ALL - 38 )
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1501
SELECT DISTINCT + 99 + COUNT( * ) * + 70 - + - 97 + 19 * 28 * - 41 + 76 + - - 28 + - CASE - COUNT( DISTINCT + - 54 ) WHEN + CAST( NULL AS SIGNED ) THEN + MAX( DISTINCT - 52 ) WHEN - 84 * - 49 + + 91 + - 10 THEN NULL WHEN - 40 THEN - 23 END * - 84 + + - 77 + + 48 - + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1501
SELECT DISTINCT + 99 + COUNT ( * ) * + 70 - + - 97 + 19 * 28 * - 41 + 76 + - - 28 + - CASE - COUNT ( DISTINCT + - 54 ) WHEN + CAST ( NULL AS INTEGER ) THEN + MAX ( DISTINCT - 52 ) WHEN - 84 * - 49 + + 91 + - 10 THEN NULL WHEN - 40 THEN - 23 END * - 84 + + - 77 + + 48 - + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT ALL + - 23 + - - ( 72 ) + - 12
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-1503
SELECT ALL - 66 + + + COUNT( * ) + - - COUNT( * ) * 82 * + 29
----
2313

skipif mysql # not compatible
query I rowsort label-1503
SELECT ALL - 66 + + + COUNT ( * ) + - - COUNT ( * ) * 82 * + 29
----
2313

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1504
SELECT DISTINCT + + 73 * + MAX( ALL + - CAST( 56 AS SIGNED ) ) + 16
----
-4072

skipif mysql # not compatible
query I rowsort label-1504
SELECT DISTINCT + + 73 * + MAX ( ALL + - CAST ( 56 AS INTEGER ) ) + 16
----
-4072

query I rowsort
SELECT + 78 * - - 59
----
4602

query I rowsort
SELECT - 63 AS col1
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1507
SELECT ALL 97 * 33 + + - COUNT( * ) + 56, - 58 + + - CASE + COUNT( * ) WHEN - - CAST( + 61 AS SIGNED ) THEN + 73 ELSE NULL END AS col2
----
3256
NULL

skipif mysql # not compatible
query II rowsort label-1507
SELECT ALL 97 * 33 + + - COUNT ( * ) + 56, - 58 + + - CASE + COUNT ( * ) WHEN - - CAST ( + 61 AS INTEGER ) THEN + 73 ELSE NULL END AS col2
----
3256
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1508
SELECT 38 * 37 * - - CAST( - COALESCE ( COUNT( * ), - 82, + 39 * 98 * AVG ( + 69 ) ) AS SIGNED ) AS col2, 88 * 14 * + - 71 AS col2
----
-1406
-87472

skipif mysql # not compatible
query II rowsort label-1508
SELECT 38 * 37 * - - CAST ( - COALESCE ( COUNT ( * ), - 82, + 39 * 98 * AVG ( + 69 ) ) AS INTEGER ) AS col2, 88 * 14 * + - 71 AS col2
----
-1406
-87472

query I rowsort
SELECT ALL + 34 * 5 AS col0
----
170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1510
SELECT ALL - CAST( + 0 AS SIGNED ) * + COUNT( * ) * 29 DIV 21 + 19 AS col0
----
19

skipif mysql # not compatible
query I rowsort label-1510
SELECT ALL - CAST ( + 0 AS INTEGER ) * + COUNT ( * ) * 29 / 21 + 19 AS col0
----
19

query I rowsort
SELECT 47 - 54 + + 38 AS col1
----
31

query I rowsort
SELECT DISTINCT - ( 6 )
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1513
SELECT CASE 31 WHEN - 88 * + + 29 - 78 * 3 + + NULLIF ( + 74, + SUM( 61 ) ) THEN - 30 DIV + 75 ELSE + ( COUNT( * ) ) DIV - - 12 END * + ( 0 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1513
SELECT CASE 31 WHEN - 88 * + + 29 - 78 * 3 + + NULLIF ( + 74, + SUM ( 61 ) ) THEN - 30 / + 75 ELSE + ( COUNT ( * ) ) / - - 12 END * + ( 0 ) AS col0
----
0

query I rowsort
SELECT + 47 AS col0
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1515
SELECT ALL 40 * + COUNT( * ) * - 4 * SUM( DISTINCT - + 68 ) - + 68 DIV - COALESCE ( 95, + 0 * 77, 14 ) col0
----
10880

skipif mysql # not compatible
query I rowsort label-1515
SELECT ALL 40 * + COUNT ( * ) * - 4 * SUM ( DISTINCT - + 68 ) - + 68 / - COALESCE ( 95, + 0 * 77, 14 ) col0
----
10880

onlyif mysql # aggregate syntax: 
query I rowsort label-1516
SELECT 37 * - + SUM( ALL + 82 )
----
-3034

skipif mysql # not compatible
query I rowsort label-1516
SELECT 37 * - + SUM ( ALL + 82 )
----
-3034

query I rowsort
SELECT + 50 col1
----
50

query I rowsort
SELECT ALL + 18 col2
----
18

query I rowsort
SELECT DISTINCT + NULLIF ( 25, - 27 )
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1520
SELECT + NULLIF ( + ( + 47 ), + CAST( NULL AS SIGNED ) * - - 82 + - + 4 ) - + NULLIF ( - 53, + 96 * - 50 ) + + 19 - - + 95 * - 44
----
-4061

skipif mysql # not compatible
query I rowsort label-1520
SELECT + NULLIF ( + ( + 47 ), + CAST ( NULL AS INTEGER ) * - - 82 + - + 4 ) - + NULLIF ( - 53, + 96 * - 50 ) + + 19 - - + 95 * - 44
----
-4061

onlyif mysql # aggregate syntax: 
query I rowsort label-1521
SELECT - COUNT( * ) * - - ( 5 )
----
-5

skipif mysql # not compatible
query I rowsort label-1521
SELECT - COUNT ( * ) * - - ( 5 )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1522
SELECT SUM( ALL + 33 ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-1522
SELECT SUM ( ALL + 33 ) AS col2
----
33

query II rowsort
SELECT DISTINCT 51 * - 29 col2, 46 + 23 + - + 74
----
-1479
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1524
SELECT SUM( ALL + + 74 )
----
74

skipif mysql # not compatible
query I rowsort label-1524
SELECT SUM ( ALL + + 74 )
----
74

query I rowsort
SELECT DISTINCT + 99 * + 30 AS col1
----
2970

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1526
SELECT - COALESCE ( + 18, SUM( DISTINCT + ( 55 ) ) + - - COUNT( * ) * + 50 DIV + + ( 22 ) - + 21 * 13 - + ( - 88 ) * - COUNT( * ) )
----
-18

skipif mysql # not compatible
query I rowsort label-1526
SELECT - COALESCE ( + 18, SUM ( DISTINCT + ( 55 ) ) + - - COUNT ( * ) * + 50 / + + ( 22 ) - + 21 * 13 - + ( - 88 ) * - COUNT ( * ) )
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-1527
SELECT + ( 73 ), + SUM( 91 ) AS col1
----
73
91

skipif mysql # not compatible
query II rowsort label-1527
SELECT + ( 73 ), + SUM ( 91 ) AS col1
----
73
91

onlyif mysql # DIV for integer division: 
query I rowsort label-1528
SELECT + 91 DIV 4
----
22

skipif mysql # not compatible
query I rowsort label-1528
SELECT + 91 / 4
----
22

query I rowsort
SELECT + 60 * - 99 + + 83
----
-5857

query I rowsort
SELECT - 50 AS col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-1531
SELECT ALL 74 + CASE - 87 WHEN + COUNT( * ) THEN + 80 / 2 + - COUNT( * ) + + 56 + - - 89 WHEN - 54 THEN 26 END * - - 66 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1531
SELECT ALL 74 + CASE - 87 WHEN + COUNT ( * ) THEN + 80 / 2 + - COUNT ( * ) + + 56 + - - 89 WHEN - 54 THEN 26 END * - - 66 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1532
SELECT DISTINCT + COUNT( * ) + - 85 col0, 2 * + - 53
----
-84
-106

skipif mysql # not compatible
query II rowsort label-1532
SELECT DISTINCT + COUNT ( * ) + - 85 col0, 2 * + - 53
----
-84
-106

query I rowsort
SELECT ( + 15 ) AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1534
SELECT ALL - 81 + + COUNT( * )
----
-80

skipif mysql # not compatible
query I rowsort label-1534
SELECT ALL - 81 + + COUNT ( * )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-1535
SELECT + - 75 + + 16 + COUNT( ALL 26 )
----
-58

skipif mysql # not compatible
query I rowsort label-1535
SELECT + - 75 + + 16 + COUNT ( ALL 26 )
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1536
SELECT ALL - 69 + + 8 * - + MIN( + - CAST( NULL AS SIGNED ) ) + 78
----
NULL

skipif mysql # not compatible
query I rowsort label-1536
SELECT ALL - 69 + + 8 * - + MIN ( + - CAST ( NULL AS INTEGER ) ) + 78
----
NULL

query I rowsort
SELECT + + 0 * 3 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1538
SELECT MAX( - 94 ) col1, 73 AS col0
----
-94
73

skipif mysql # not compatible
query II rowsort label-1538
SELECT MAX ( - 94 ) col1, 73 AS col0
----
-94
73

onlyif mysql # aggregate syntax: 
query I rowsort label-1539
SELECT + + COUNT( * ) + - + 94 - 12
----
-105

skipif mysql # not compatible
query I rowsort label-1539
SELECT + + COUNT ( * ) + - + 94 - 12
----
-105

query II rowsort
SELECT - + COALESCE ( + 23, 71 ) - - - 7 AS col1, + 44
----
-30
44

query I rowsort
SELECT + - 40 + - - 50 + - - 50 AS col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1542
SELECT - 76 - 60 + + NULLIF ( - 0, 10 * - COUNT( * ) ) + - 54 - - - 73 AS col0
----
-263

skipif mysql # not compatible
query I rowsort label-1542
SELECT - 76 - 60 + + NULLIF ( - 0, 10 * - COUNT ( * ) ) + - 54 - - - 73 AS col0
----
-263

query I rowsort
SELECT + + 65 + - + 92 AS col2
----
-27

query I rowsort
SELECT - 69 col0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-1545
SELECT ALL - - COUNT( * ) - 38 * - 40 AS col1
----
1521

skipif mysql # not compatible
query I rowsort label-1545
SELECT ALL - - COUNT ( * ) - 38 * - 40 AS col1
----
1521

query I rowsort
SELECT - + 79
----
-79

query I rowsort
SELECT ALL + 21 AS col2
----
21

query I rowsort
SELECT - 82 + + 79 + + - 29 + - ( COALESCE ( + - ( + + 5 ), + + 18 * 29 ) )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-1549
SELECT + 55 * - 62 + - COUNT( * )
----
-3411

skipif mysql # not compatible
query I rowsort label-1549
SELECT + 55 * - 62 + - COUNT ( * )
----
-3411

onlyif mysql # aggregate syntax: 
query I rowsort label-1550
SELECT + SUM( DISTINCT - 14 ) * - SUM( + 28 ) col0
----
392

skipif mysql # not compatible
query I rowsort label-1550
SELECT + SUM ( DISTINCT - 14 ) * - SUM ( + 28 ) col0
----
392

query I rowsort
SELECT - ( - + 44 ) * + 59 * 24 AS col0
----
62304

onlyif mysql # aggregate syntax: 
query II rowsort label-1552
SELECT ALL + 3 * ( - - COUNT( * ) ) AS col0, 8
----
3
8

skipif mysql # not compatible
query II rowsort label-1552
SELECT ALL + 3 * ( - - COUNT ( * ) ) AS col0, 8
----
3
8

query I rowsort
SELECT + 48 AS col2
----
48

query I rowsort
SELECT ( + - 68 )
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-1555
SELECT 12 DIV 37 + + 7 + - 60 * + 45
----
-2693

skipif mysql # not compatible
query I rowsort label-1555
SELECT 12 / 37 + + 7 + - 60 * + 45
----
-2693

query I rowsort
SELECT - 40 * 88 AS col0
----
-3520

query I rowsort
SELECT - 4 + - 21 col1
----
-25

query I rowsort
SELECT ALL + NULLIF ( - 10, 34 * + 46 * - 42 * - + 91 )
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1559
SELECT ( CAST( - COUNT( * ) AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1559
SELECT ( CAST ( - COUNT ( * ) AS INTEGER ) )
----
-1

query I rowsort
SELECT DISTINCT - 85 * + 40 AS col2
----
-3400

onlyif mysql # aggregate syntax: 
query I rowsort label-1561
SELECT DISTINCT + 31 * + 38 * COUNT( * ) AS col2
----
1178

skipif mysql # not compatible
query I rowsort label-1561
SELECT DISTINCT + 31 * + 38 * COUNT ( * ) AS col2
----
1178

onlyif mysql # DIV for integer division: 
query I rowsort label-1562
SELECT ALL - 40 DIV - + 76 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1562
SELECT ALL - 40 / - + 76 AS col1
----
0

query I rowsort
SELECT DISTINCT + 30
----
30

query I rowsort
SELECT DISTINCT + ( + + 31 )
----
31

query I rowsort
SELECT - 74 + - 83
----
-157

onlyif mysql # aggregate syntax: 
query I rowsort label-1566
SELECT + 84 * - - 14 - - - COUNT( * )
----
1175

skipif mysql # not compatible
query I rowsort label-1566
SELECT + 84 * - - 14 - - - COUNT ( * )
----
1175

onlyif mysql # aggregate syntax: 
query I rowsort label-1567
SELECT + CASE + COUNT( * ) WHEN - + 45 THEN - 16 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1567
SELECT + CASE + COUNT ( * ) WHEN - + 45 THEN - 16 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1568
SELECT - 61 * COUNT( * ) AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-1568
SELECT - 61 * COUNT ( * ) AS col0
----
-61

query I rowsort
SELECT + 31 + - ( 1 ) AS col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1570
SELECT DISTINCT 94 * + 13 / + AVG ( + - 56 ) * COUNT( * ) * + + CASE - COUNT( * ) WHEN + 97 THEN NULL WHEN - + 25 THEN + ( 15 ) / + ( - + 62 ) * - + 15 * - 84 END + + 76 / + - 50 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1570
SELECT DISTINCT 94 * + 13 / + AVG ( + - 56 ) * COUNT ( * ) * + + CASE - COUNT ( * ) WHEN + 97 THEN NULL WHEN - + 25 THEN + ( 15 ) / + ( - + 62 ) * - + 15 * - 84 END + + 76 / + - 50 AS col1
----
NULL

query I rowsort
SELECT ALL + CASE - 29 WHEN - 47 THEN 5 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1572
SELECT + + 4 + + - COUNT( * ) * - 58 AS col0
----
62

skipif mysql # not compatible
query I rowsort label-1572
SELECT + + 4 + + - COUNT ( * ) * - 58 AS col0
----
62

query I rowsort
SELECT ALL - + 98 * + 54 - - + 70 + + 2
----
-5220

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1574
SELECT ALL - CAST( NULL AS DECIMAL ) * + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-1574
SELECT ALL - CAST ( NULL AS REAL ) * + 97
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1575
SELECT + 47 + + COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-1575
SELECT + 47 + + COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col1
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1576
SELECT + - COUNT( ALL - 80 ) * + + 12 * + + NULLIF ( + ( - SUM( ALL - - 28 ) ), ( + + CASE - MAX( ALL + + 51 ) WHEN CAST( NULL AS SIGNED ) THEN 43 ELSE NULL END ) * + - 22 + + 80 * 9 * 72 ) AS col2
----
336

skipif mysql # not compatible
query I rowsort label-1576
SELECT + - COUNT ( ALL - 80 ) * + + 12 * + + NULLIF ( + ( - SUM ( ALL - - 28 ) ), ( + + CASE - MAX ( ALL + + 51 ) WHEN CAST ( NULL AS INTEGER ) THEN 43 ELSE NULL END ) * + - 22 + + 80 * 9 * 72 ) AS col2
----
336

query I rowsort
SELECT DISTINCT + NULLIF ( - 23, 37 ) AS col1
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-1578
SELECT + 74 + + 27 DIV - 34 + + NULLIF ( - 25, ( - ( + - 76 ) ) * ( + - 26 ) )
----
49

skipif mysql # not compatible
query I rowsort label-1578
SELECT + 74 + + 27 / - 34 + + NULLIF ( - 25, ( - ( + - 76 ) ) * ( + - 26 ) )
----
49

query I rowsort
SELECT DISTINCT 48 * 79 AS col2
----
3792

onlyif mysql # aggregate syntax: 
query I rowsort label-1580
SELECT ALL - COUNT( + 61 )
----
-1

skipif mysql # not compatible
query I rowsort label-1580
SELECT ALL - COUNT ( + 61 )
----
-1

query I rowsort
SELECT DISTINCT + 7 AS col0
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1582
SELECT ALL - 97 / + + CAST( NULL AS SIGNED ) * + + 16 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1582
SELECT ALL - 97 / + + CAST ( NULL AS INTEGER ) * + + 16 AS col0
----
NULL

query I rowsort
SELECT ALL - ( - 1 ) * + 59 * - 36
----
-2124

query II rowsort
SELECT DISTINCT 83 AS col0, 34
----
83
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1585
SELECT + 76 DIV NULLIF ( - 47, + - COUNT( * ) * + 83 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1585
SELECT + 76 / NULLIF ( - 47, + - COUNT ( * ) * + 83 ) AS col2
----
-1

query I rowsort
SELECT ALL 82 * - - 19 col2
----
1558

onlyif mysql # aggregate syntax: 
query I rowsort label-1587
SELECT - COUNT( * ) * - 19 - 76
----
-57

skipif mysql # not compatible
query I rowsort label-1587
SELECT - COUNT ( * ) * - 19 - 76
----
-57

query II rowsort
SELECT 98 + + + 73, 87 AS col1
----
171
87

query I rowsort
SELECT ALL 5 * 33
----
165

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1590
SELECT ALL - SUM( DISTINCT - 72 ) + - CASE + 37 WHEN 74 * - + 43 THEN - - 44 * - + 61 / + - CAST( - - AVG ( DISTINCT - 62 ) AS SIGNED ) * + 54 * - CAST( 63 AS DECIMAL ) / + 82 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1590
SELECT ALL - SUM ( DISTINCT - 72 ) + - CASE + 37 WHEN 74 * - + 43 THEN - - 44 * - + 61 / + - CAST ( - - AVG ( DISTINCT - 62 ) AS INTEGER ) * + 54 * - CAST ( 63 AS REAL ) / + 82 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1591
SELECT ALL - 27 col0, COUNT( * ) AS col2
----
-27
1

skipif mysql # not compatible
query II rowsort label-1591
SELECT ALL - 27 col0, COUNT ( * ) AS col2
----
-27
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1592
SELECT ALL + COUNT( * ) + + 80 + - + 50 + - 86
----
-55

skipif mysql # not compatible
query I rowsort label-1592
SELECT ALL + COUNT ( * ) + + 80 + - + 50 + - 86
----
-55

query I rowsort
SELECT 86 col2
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1594
SELECT 81 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1594
SELECT 81 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1595
SELECT 88 DIV - - 7 AS col1
----
12

skipif mysql # not compatible
query I rowsort label-1595
SELECT 88 / - - 7 AS col1
----
12

query II rowsort
SELECT 73 * + - 84 * + 88 + - 85 AS col0, 26 col2
----
-539701
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1597
SELECT DISTINCT - COUNT( * ) + + 17 * 93 * + 18 * - + 61 * + 64 + + + SUM( ALL + - 9 ) + COALESCE ( 0, + - CAST( NULL AS SIGNED ) ) + - ( 84 )
----
-111100126

skipif mysql # not compatible
query I rowsort label-1597
SELECT DISTINCT - COUNT ( * ) + + 17 * 93 * + 18 * - + 61 * + 64 + + + SUM ( ALL + - 9 ) + COALESCE ( 0, + - CAST ( NULL AS INTEGER ) ) + - ( 84 )
----
-111100126

onlyif mysql # aggregate syntax: 
query I rowsort label-1598
SELECT ALL 33 + ( + 46 ) - - COUNT( * ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-1598
SELECT ALL 33 + ( + 46 ) - - COUNT ( * ) AS col1
----
80

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1599
SELECT + CASE - + COUNT( * ) WHEN CASE + - COUNT( * ) WHEN + + MAX( - 13 ) THEN NULL WHEN + 25 + + 27 THEN + 13 END THEN + - 79 * - - 95 * + - 98 + - CAST( NULL AS DECIMAL ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1599
SELECT + CASE - + COUNT ( * ) WHEN CASE + - COUNT ( * ) WHEN + + MAX ( - 13 ) THEN NULL WHEN + 25 + + 27 THEN + 13 END THEN + - 79 * - - 95 * + - 98 + - CAST ( NULL AS REAL ) END
----
NULL

query I rowsort
SELECT ALL - - 8 + ( + + 66 ) * - + 54 * + - 6
----
21392

query I rowsort
SELECT ALL - + 56
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-1602
SELECT + 0 + 74 * - 67 + 39 * - + COALESCE ( - COUNT( * ), + - 59 ) * - - 47 * + 60 + - COUNT( * ) AS col1
----
105021

skipif mysql # not compatible
query I rowsort label-1602
SELECT + 0 + 74 * - 67 + 39 * - + COALESCE ( - COUNT ( * ), + - 59 ) * - - 47 * + 60 + - COUNT ( * ) AS col1
----
105021

onlyif mysql # aggregate syntax: 
query I rowsort label-1603
SELECT DISTINCT SUM( ALL 56 ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-1603
SELECT DISTINCT SUM ( ALL 56 ) AS col1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-1604
SELECT ALL - ( + - SUM( ALL - + 66 ) ) + - - 89 - - 54
----
77

skipif mysql # not compatible
query I rowsort label-1604
SELECT ALL - ( + - SUM ( ALL - + 66 ) ) + - - 89 - - 54
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1605
SELECT 47 * 58 * + 34 * + MAX( + 97 ) * + COALESCE ( 23, + 24 + + - COUNT( * ) + - 23 + - + MAX( DISTINCT + 51 ) ) - 9 + - + ( 73 ) DIV + 71 col0
----
206777994

skipif mysql # not compatible
query I rowsort label-1605
SELECT 47 * 58 * + 34 * + MAX ( + 97 ) * + COALESCE ( 23, + 24 + + - COUNT ( * ) + - 23 + - + MAX ( DISTINCT + 51 ) ) - 9 + - + ( 73 ) / + 71 col0
----
206777994

query I rowsort
SELECT - 47 AS col1
----
-47

query I rowsort
SELECT ALL - 35 AS col1
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-1608
SELECT SUM( ALL + ( - + 58 ) ) + - 47, 76 AS col0
----
-105
76

skipif mysql # not compatible
query II rowsort label-1608
SELECT SUM ( ALL + ( - + 58 ) ) + - 47, 76 AS col0
----
-105
76

query I rowsort
SELECT + 31 * - 2
----
-62

query I rowsort
SELECT DISTINCT - ( + 80 ) col2
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-1611
SELECT ALL + 87 - - SUM( + 82 )
----
169

skipif mysql # not compatible
query I rowsort label-1611
SELECT ALL + 87 - - SUM ( + 82 )
----
169

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1612
SELECT - - 17, CAST( NULL AS SIGNED ) * + 86 AS col1
----
17
NULL

skipif mysql # not compatible
query II rowsort label-1612
SELECT - - 17, CAST ( NULL AS INTEGER ) * + 86 AS col1
----
17
NULL

query I rowsort
SELECT DISTINCT - 76 col2
----
-76

query I rowsort
SELECT ALL + + 24 - 13 AS col2
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1615
SELECT ALL - - ( - 3 ) * - CAST( NULL AS SIGNED ) * - 75 + + + COUNT( * ) + 53 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1615
SELECT ALL - - ( - 3 ) * - CAST ( NULL AS INTEGER ) * - 75 + + + COUNT ( * ) + 53 col2
----
NULL

query I rowsort
SELECT 93 + + 62 - 67
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1617
SELECT DISTINCT COALESCE ( 55, + 7 * + 83 - NULLIF ( CAST( NULL AS SIGNED ), + 27 ) * + + 42 * + 88 * - + 53 - 38, - 52 )
----
55

skipif mysql # not compatible
query I rowsort label-1617
SELECT DISTINCT COALESCE ( 55, + 7 * + 83 - NULLIF ( CAST ( NULL AS INTEGER ), + 27 ) * + + 42 * + 88 * - + 53 - 38, - 52 )
----
55

query I rowsort
SELECT DISTINCT - 35 * ( + 27 )
----
-945

onlyif mysql # aggregate syntax: 
query II rowsort label-1619
SELECT ALL - 83, 39 * + COUNT( * ) AS col1
----
-83
39

skipif mysql # not compatible
query II rowsort label-1619
SELECT ALL - 83, 39 * + COUNT ( * ) AS col1
----
-83
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1620
SELECT 27 + - + COUNT( * ) + + - ( - 53 ) * + - 16 / + CAST( NULL AS SIGNED ) - + 77
----
NULL

skipif mysql # not compatible
query I rowsort label-1620
SELECT 27 + - + COUNT ( * ) + + - ( - 53 ) * + - 16 / + CAST ( NULL AS INTEGER ) - + 77
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1621
SELECT 47 + + 35, + 32 * + 81 + + + 76 + + 22 * + + COUNT( ALL 62 ) * - COUNT( * ) AS col2
----
82
2646

skipif mysql # not compatible
query II rowsort label-1621
SELECT 47 + + 35, + 32 * + 81 + + + 76 + + 22 * + + COUNT ( ALL 62 ) * - COUNT ( * ) AS col2
----
82
2646

query II rowsort
SELECT ( + + 47 ) - + 40, - 84 col1
----
7
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-1623
SELECT 66 * - MAX( 6 )
----
-396

skipif mysql # not compatible
query I rowsort label-1623
SELECT 66 * - MAX ( 6 )
----
-396

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1624
SELECT CAST( NULL AS SIGNED ) / + 72 * + + 77 + ( + 33 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1624
SELECT CAST ( NULL AS INTEGER ) / + 72 * + + 77 + ( + 33 ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1625
SELECT DISTINCT 57 DIV + + 6
----
9

skipif mysql # not compatible
query I rowsort label-1625
SELECT DISTINCT 57 / + + 6
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1626
SELECT SUM( ALL - + 85 ) + COALESCE ( 11, ( + 3 ), + 4, 64 + + 64 * 44 + + 38, - MAX( + 28 ) ) AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-1626
SELECT SUM ( ALL - + 85 ) + COALESCE ( 11, ( + 3 ), + 4, 64 + + 64 * 44 + + 38, - MAX ( + 28 ) ) AS col1
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-1627
SELECT MIN( DISTINCT + 10 )
----
10

skipif mysql # not compatible
query I rowsort label-1627
SELECT MIN ( DISTINCT + 10 )
----
10

query I rowsort
SELECT DISTINCT 92 + 86
----
178

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1629
SELECT ALL COUNT( * ) + - 39 AS col0, - 42 DIV CAST( + - 12 AS SIGNED ) * + 78 * + 51 + 64 AS col2
----
-38
11998

skipif mysql # not compatible
query II rowsort label-1629
SELECT ALL COUNT ( * ) + - 39 AS col0, - 42 / CAST ( + - 12 AS INTEGER ) * + 78 * + 51 + 64 AS col2
----
-38
11998

onlyif mysql # aggregate syntax: 
query I rowsort label-1630
SELECT MAX( ALL 60 ) * - + 13 - + + 70 + 75 * COUNT( * ) AS col0
----
-775

skipif mysql # not compatible
query I rowsort label-1630
SELECT MAX ( ALL 60 ) * - + 13 - + + 70 + 75 * COUNT ( * ) AS col0
----
-775

query I rowsort
SELECT - 51 * - 69 * + + 84 + - 44 AS col2
----
295552

onlyif mysql # DIV for integer division: 
query II rowsort label-1632
SELECT 91 * NULLIF ( 37, AVG ( + + 18 ) ), - 32 DIV - 9 AS col0
----
3367
3

skipif mysql # not compatible
query II rowsort label-1632
SELECT 91 * NULLIF ( 37, AVG ( + + 18 ) ), - 32 / - 9 AS col0
----
3367
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1633
SELECT 86 / - - CAST( NULL AS SIGNED ) * + + COUNT( * ) + + 69 + - COUNT( * ) / + 68 + - - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-1633
SELECT 86 / - - CAST ( NULL AS INTEGER ) * + + COUNT ( * ) + + 69 + - COUNT ( * ) / + 68 + - - 65
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1634
SELECT ALL 91 + - COALESCE ( - 52, + 84 * + + NULLIF ( - 51, 94 + + 6 ), 97 * + 33 + - 82 + + + COUNT( * ) DIV - 51, + 7 * - 86, + - 46 + + 89 + - 31 * - 68 ) AS col1
----
143

skipif mysql # not compatible
query I rowsort label-1634
SELECT ALL 91 + - COALESCE ( - 52, + 84 * + + NULLIF ( - 51, 94 + + 6 ), 97 * + 33 + - 82 + + + COUNT ( * ) / - 51, + 7 * - 86, + - 46 + + 89 + - 31 * - 68 ) AS col1
----
143

query II rowsort
SELECT DISTINCT 50 + 92 AS col2, 24 AS col2
----
142
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1636
SELECT ALL - + 6 + + SUM( - - 20 ) DIV - 81 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-1636
SELECT ALL - + 6 + + SUM ( - - 20 ) / - 81 AS col0
----
-6

query I rowsort
SELECT + 70 * + + 48 * - 22 + + - 80
----
-74000

onlyif mysql # aggregate syntax: 
query I rowsort label-1638
SELECT ALL - - ( + MIN( ALL + 97 ) )
----
97

skipif mysql # not compatible
query I rowsort label-1638
SELECT ALL - - ( + MIN ( ALL + 97 ) )
----
97

query I rowsort
SELECT DISTINCT - 51 + 10 AS col1
----
-41

query I rowsort
SELECT + - 14 col1
----
-14

onlyif mysql # aggregate syntax: 
query III rowsort label-1641
SELECT ALL - + COUNT( ALL - + 52 ) col2, 64, - 93 + - - 13 AS col2
----
-1
64
-80

skipif mysql # not compatible
query III rowsort label-1641
SELECT ALL - + COUNT ( ALL - + 52 ) col2, 64, - 93 + - - 13 AS col2
----
-1
64
-80

query I rowsort
SELECT - 37 * - 60
----
2220

query I rowsort
SELECT + 46 + 95 AS col1
----
141

onlyif mysql # aggregate syntax: 
query II rowsort label-1644
SELECT ALL - + MAX( 95 ), + SUM( 62 ) + - ( - 62 ) col0
----
-95
124

skipif mysql # not compatible
query II rowsort label-1644
SELECT ALL - + MAX ( 95 ), + SUM ( 62 ) + - ( - 62 ) col0
----
-95
124

onlyif mysql # aggregate syntax: 
query I rowsort label-1645
SELECT + COUNT( * ) + - 43 col0
----
-42

skipif mysql # not compatible
query I rowsort label-1645
SELECT + COUNT ( * ) + - 43 col0
----
-42

onlyif mysql # DIV for integer division: 
query II rowsort label-1646
SELECT 52 DIV 29, 41 + - + 64 AS col2
----
1
-23

skipif mysql # not compatible
query II rowsort label-1646
SELECT 52 / 29, 41 + - + 64 AS col2
----
1
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1647
SELECT ALL + 58 * 56 + + + 86 - COUNT( ALL 76 ) DIV + - 69 * COALESCE ( - - 42, + 45 * - - 33 + 3 + + + COUNT( DISTINCT + 74 ) ) AS col2
----
3334

skipif mysql # not compatible
query I rowsort label-1647
SELECT ALL + 58 * 56 + + + 86 - COUNT ( ALL 76 ) / + - 69 * COALESCE ( - - 42, + 45 * - - 33 + 3 + + + COUNT ( DISTINCT + 74 ) ) AS col2
----
3334

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1648
SELECT ALL - COUNT( * ) * + CAST( + ( + 19 ) AS SIGNED )
----
-19

skipif mysql # not compatible
query I rowsort label-1648
SELECT ALL - COUNT ( * ) * + CAST ( + ( + 19 ) AS INTEGER )
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-1649
SELECT DISTINCT + MIN( ALL 95 ) col2
----
95

skipif mysql # not compatible
query I rowsort label-1649
SELECT DISTINCT + MIN ( ALL 95 ) col2
----
95

query I rowsort
SELECT DISTINCT 54 AS col1
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1651
SELECT ALL + - MAX( DISTINCT - 19 ) DIV 52
----
0

skipif mysql # not compatible
query I rowsort label-1651
SELECT ALL + - MAX ( DISTINCT - 19 ) / 52
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1652
SELECT DISTINCT ( COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-1652
SELECT DISTINCT ( COUNT ( * ) )
----
1

query I rowsort
SELECT ALL - 52 AS col2
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-1654
SELECT + 66 DIV 48
----
1

skipif mysql # not compatible
query I rowsort label-1654
SELECT + 66 / 48
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1655
SELECT - COUNT( * ) DIV - 64 AS col1, + COUNT( * )
----
0
1

skipif mysql # not compatible
query II rowsort label-1655
SELECT - COUNT ( * ) / - 64 AS col1, + COUNT ( * )
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1656
SELECT - + COUNT( * ) * 1
----
-1

skipif mysql # not compatible
query I rowsort label-1656
SELECT - + COUNT ( * ) * 1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1657
SELECT ALL + 44 DIV - + COUNT( * ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-1657
SELECT ALL + 44 / - + COUNT ( * ) AS col2
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-1658
SELECT - COUNT( * ) + COALESCE ( + 93, + 97, CASE - 9 WHEN 67 THEN - 72 WHEN + 17 THEN NULL ELSE NULL END )
----
92

skipif mysql # not compatible
query I rowsort label-1658
SELECT - COUNT ( * ) + COALESCE ( + 93, + 97, CASE - 9 WHEN 67 THEN - 72 WHEN + 17 THEN NULL ELSE NULL END )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1659
SELECT ALL CASE - 48 WHEN + COUNT( * ) THEN 9 + - 98 WHEN - + 7 THEN - - 4 * - - 49 - - 94 - + - SUM( - 7 ) + - - 50 * + + 15 + COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1659
SELECT ALL CASE - 48 WHEN + COUNT ( * ) THEN 9 + - 98 WHEN - + 7 THEN - - 4 * - - 49 - - 94 - + - SUM ( - 7 ) + - - 50 * + + 15 + COUNT ( * ) END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1660
SELECT 19 col2, 66 DIV + 27 AS col1
----
19
2

skipif mysql # not compatible
query II rowsort label-1660
SELECT 19 col2, 66 / + 27 AS col1
----
19
2

query II rowsort
SELECT 33, 15 col2
----
33
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1662
SELECT ALL - 81 * 84 DIV COUNT( * ) DIV + - COUNT( * )
----
6804

skipif mysql # not compatible
query I rowsort label-1662
SELECT ALL - 81 * 84 / COUNT ( * ) / + - COUNT ( * )
----
6804

query I rowsort
SELECT ALL 0 col1
----
0

query II rowsort
SELECT - 1 AS col2, 7
----
-1
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1665
SELECT DISTINCT - COUNT( * ) + - 59 * + 62 * 63 * - 13 AS col2
----
2995901

skipif mysql # not compatible
query I rowsort label-1665
SELECT DISTINCT - COUNT ( * ) + - 59 * + 62 * 63 * - 13 AS col2
----
2995901

onlyif mysql # aggregate syntax: 
query I rowsort label-1666
SELECT - 33 - + 2 * + + NULLIF ( + - 85, + COUNT( * ) * + - NULLIF ( 88, 67 ) )
----
137

skipif mysql # not compatible
query I rowsort label-1666
SELECT - 33 - + 2 * + + NULLIF ( + - 85, + COUNT ( * ) * + - NULLIF ( 88, 67 ) )
----
137

query I rowsort
SELECT ( 64 ) AS col2
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-1668
SELECT + 15 * + 95 * - 84 * - + NULLIF ( - + COUNT( * ), - 42 ), + 41 AS col1
----
-119700
41

skipif mysql # not compatible
query II rowsort label-1668
SELECT + 15 * + 95 * - 84 * - + NULLIF ( - + COUNT ( * ), - 42 ), + 41 AS col1
----
-119700
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1669
SELECT DISTINCT NULLIF ( + CASE - 91 WHEN - ( + + 42 ) * - 26 + - - 7 THEN NULL ELSE 61 END, - 78 * + + COUNT( - 67 ) ) DIV COUNT( * ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-1669
SELECT DISTINCT NULLIF ( + CASE - 91 WHEN - ( + + 42 ) * - 26 + - - 7 THEN NULL ELSE 61 END, - 78 * + + COUNT ( - 67 ) ) / COUNT ( * ) AS col1
----
61

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1670
SELECT DISTINCT 60 * + - CAST( NULL AS SIGNED ) + - 4 * 62 * + CAST( - 70 AS DECIMAL ), - 80 * - 52 col2
----
NULL
4160

skipif mysql # not compatible
query II rowsort label-1670
SELECT DISTINCT 60 * + - CAST ( NULL AS INTEGER ) + - 4 * 62 * + CAST ( - 70 AS REAL ), - 80 * - 52 col2
----
NULL
4160

query II rowsort
SELECT ALL + 13 * + 51 + - + 48 AS col1, ( - 55 ) AS col0
----
615
-55

query I rowsort
SELECT + 79 - - 1
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1673
SELECT CASE + 28 WHEN - 53 * - CAST( 73 AS SIGNED ) THEN + COUNT( * ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1673
SELECT CASE + 28 WHEN - 53 * - CAST ( 73 AS INTEGER ) THEN + COUNT ( * ) END col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1674
SELECT DISTINCT + + COUNT( * ) DIV + + ( 45 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1674
SELECT DISTINCT + + COUNT ( * ) / + + ( 45 ) AS col1
----
0

query II rowsort
SELECT + + 82 AS col0, 61 + - 40 + + 11 + ( - - 5 ) AS col2
----
82
37

query I rowsort
SELECT + + 42 * + 20 - - 73 AS col0
----
913

onlyif mysql # aggregate syntax: 
query I rowsort label-1677
SELECT COUNT( 34 )
----
1

skipif mysql # not compatible
query I rowsort label-1677
SELECT COUNT ( 34 )
----
1

query I rowsort
SELECT - 78 * + ( 33 ) + 6 col2
----
-2568

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1679
SELECT ALL - 62 * - 84 + + COALESCE ( 56, 6 * + 97 + - ( 79 ) DIV 12 DIV SUM( DISTINCT - 59 ) DIV - 13 )
----
5264

skipif mysql # not compatible
query I rowsort label-1679
SELECT ALL - 62 * - 84 + + COALESCE ( 56, 6 * + 97 + - ( 79 ) / 12 / SUM ( DISTINCT - 59 ) / - 13 )
----
5264

query II rowsort
SELECT DISTINCT + + 78, 19 AS col0
----
78
19

query II rowsort
SELECT + 81, 47 AS col2
----
81
47

query I rowsort
SELECT ALL + 95 AS col1
----
95

query II rowsort
SELECT DISTINCT + + 36 AS col0, - 90 col1
----
36
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-1684
SELECT ALL COUNT( * ) * - 43 * CASE - 97 WHEN + 5 THEN - - ( - AVG ( - - 38 ) ) / + 62 WHEN - ( + ( COUNT( * ) ) ) + + 21 + + 35 + 39 + + 8 * - - 31 * + 36 THEN NULL WHEN - 18 THEN + ( + COUNT( * ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1684
SELECT ALL COUNT ( * ) * - 43 * CASE - 97 WHEN + 5 THEN - - ( - AVG ( - - 38 ) ) / + 62 WHEN - ( + ( COUNT ( * ) ) ) + + 21 + + 35 + 39 + + 8 * - - 31 * + 36 THEN NULL WHEN - 18 THEN + ( + COUNT ( * ) ) END
----
NULL

query I rowsort
SELECT + 65 col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-1686
SELECT + 84 + + 72 + COUNT( * )
----
157

skipif mysql # not compatible
query I rowsort label-1686
SELECT + 84 + + 72 + COUNT ( * )
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-1687
SELECT ALL + - MAX( DISTINCT + ( 66 ) )
----
-66

skipif mysql # not compatible
query I rowsort label-1687
SELECT ALL + - MAX ( DISTINCT + ( 66 ) )
----
-66

query I rowsort
SELECT DISTINCT + 59 AS col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1689
SELECT - - 61 * 49 + MIN( + + 52 ) AS col0
----
3041

skipif mysql # not compatible
query I rowsort label-1689
SELECT - - 61 * 49 + MIN ( + + 52 ) AS col0
----
3041

query I rowsort
SELECT + - 55 + 87 * - 70 col2
----
-6145

query I rowsort
SELECT - - 54
----
54

query I rowsort
SELECT DISTINCT - 97 AS col1
----
-97

query I rowsort
SELECT ALL + 85 * - + 65 * + - ( + 60 )
----
331500

query I rowsort
SELECT - 43 * + + 24 AS col2
----
-1032

query II rowsort
SELECT - ( 86 ), - 47 - + ( - 73 ) col0
----
-86
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1696
SELECT ALL - 85 + - COUNT( * ) - + 85 AS col2
----
-171

skipif mysql # not compatible
query I rowsort label-1696
SELECT ALL - 85 + - COUNT ( * ) - + 85 AS col2
----
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-1697
SELECT + 17 - - - SUM( ALL - 93 ) - 34 * + 70
----
-2270

skipif mysql # not compatible
query I rowsort label-1697
SELECT + 17 - - - SUM ( ALL - 93 ) - 34 * + 70
----
-2270

query I rowsort
SELECT 97 col2
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-1699
SELECT ALL 82 + - 83 + + 21 DIV + 46 + - 81
----
-82

skipif mysql # not compatible
query I rowsort label-1699
SELECT ALL 82 + - 83 + + 21 / + 46 + - 81
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1700
SELECT - CAST( + 34 AS SIGNED ) + + + ( 65 ) * + COALESCE ( + COUNT( * ), - - 42, - MIN( ALL - + 48 ) ) DIV 67 * ( - + 87 ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-1700
SELECT - CAST ( + 34 AS INTEGER ) + + + ( 65 ) * + COALESCE ( + COUNT ( * ), - - 42, - MIN ( ALL - + 48 ) ) / 67 * ( - + 87 ) AS col2
----
-34

query I rowsort
SELECT DISTINCT ( 22 ) AS col2
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1702
SELECT ALL 75 + - - 2 - + CAST( NULL AS SIGNED ) * - 72 * - 57 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1702
SELECT ALL 75 + - - 2 - + CAST ( NULL AS INTEGER ) * - 72 * - 57 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1703
SELECT - ( COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1703
SELECT - ( COUNT ( * ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1704
SELECT - 46 + MIN( ALL + 52 ) * 27 AS col2
----
1358

skipif mysql # not compatible
query I rowsort label-1704
SELECT - 46 + MIN ( ALL + 52 ) * 27 AS col2
----
1358

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1705
SELECT ALL + 22 + + ( COALESCE ( 52, + COALESCE ( - + CAST( - + 75 AS SIGNED ), - 10 ) + + 95 ) ) col1
----
74

skipif mysql # not compatible
query I rowsort label-1705
SELECT ALL + 22 + + ( COALESCE ( 52, + COALESCE ( - + CAST ( - + 75 AS INTEGER ), - 10 ) + + 95 ) ) col1
----
74

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1706
SELECT + NULLIF ( COUNT( * ), + + ( - COUNT( * ) ) + + 64 * - 32 + + - 16 ) + + 61 * 70 - 69 * - - MIN( ALL - CAST( NULL AS DECIMAL ) ) + + + 82 / - 64 * + 56, + 87 * - - 47 AS col1
----
NULL
4089

skipif mysql # not compatible
query II rowsort label-1706
SELECT + NULLIF ( COUNT ( * ), + + ( - COUNT ( * ) ) + + 64 * - 32 + + - 16 ) + + 61 * 70 - 69 * - - MIN ( ALL - CAST ( NULL AS REAL ) ) + + + 82 / - 64 * + 56, + 87 * - - 47 AS col1
----
NULL
4089

query I rowsort
SELECT - 39 - + 46
----
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-1708
SELECT ALL - 95 DIV - + 97 col2
----
0

skipif mysql # not compatible
query I rowsort label-1708
SELECT ALL - 95 / - + 97 col2
----
0

query I rowsort
SELECT - 10 + 63 AS col0
----
53

query I rowsort
SELECT - 16 + + + 19 - 81 col0
----
-78

query I rowsort
SELECT DISTINCT ( 13 )
----
13

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1713
SELECT - 3 + - 53 * COUNT( * ) * - + 99 - + - 92 * + 25
----
7544

skipif mysql # not compatible
query I rowsort label-1713
SELECT - 3 + - 53 * COUNT ( * ) * - + 99 - + - 92 * + 25
----
7544

onlyif mysql # aggregate syntax: 
query I rowsort label-1714
SELECT ALL NULLIF ( 54, COUNT( * ) * - COUNT( * ) ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-1714
SELECT ALL NULLIF ( 54, COUNT ( * ) * - COUNT ( * ) ) AS col1
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1715
SELECT - 80 + + 4 AS col2, - 63 * - CAST( + COUNT( * ) AS SIGNED )
----
-76
63

skipif mysql # not compatible
query II rowsort label-1715
SELECT - 80 + + 4 AS col2, - 63 * - CAST ( + COUNT ( * ) AS INTEGER )
----
-76
63

query I rowsort
SELECT ALL + 87 AS col0
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-1717
SELECT ALL + 42 DIV - 11 - - - 86 AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-1717
SELECT ALL + 42 / - 11 - - - 86 AS col0
----
-89

query I rowsort
SELECT 96 * + + 33 * - + 4 + + 6 AS col2
----
-12666

query I rowsort
SELECT ALL + + 36 AS col0
----
36

query II rowsort
SELECT DISTINCT + 24 * - - 33 AS col2, + 82 * 63 col0
----
792
5166

query I rowsort
SELECT ALL + - 45 AS col2
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-1722
SELECT 60 * + MIN( + 76 ) * - 14 + COUNT( - NULLIF ( - 0, + 82 ) ) - - 6 col2
----
-63833

skipif mysql # not compatible
query I rowsort label-1722
SELECT 60 * + MIN ( + 76 ) * - 14 + COUNT ( - NULLIF ( - 0, + 82 ) ) - - 6 col2
----
-63833

onlyif mysql # DIV for integer division: 
query I rowsort label-1723
SELECT - 14 DIV 58 + 76 + - 93 * - + 3
----
355

skipif mysql # not compatible
query I rowsort label-1723
SELECT - 14 / 58 + 76 + - 93 * - + 3
----
355

query I rowsort
SELECT + 98 col0
----
98

query I rowsort
SELECT DISTINCT + + 67 AS col1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1726
SELECT ALL + COUNT( ALL - 14 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1726
SELECT ALL + COUNT ( ALL - 14 ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1727
SELECT ALL ( 31 ) DIV + 82 * COUNT( ALL + + 3 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-1727
SELECT ALL ( 31 ) / + 82 * COUNT ( ALL + + 3 ) col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1728
SELECT - 55 DIV COUNT( * )
----
-55

skipif mysql # not compatible
query I rowsort label-1728
SELECT - 55 / COUNT ( * )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-1729
SELECT ALL + + ( - COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1729
SELECT ALL + + ( - COUNT ( * ) ) AS col1
----
-1

query I rowsort
SELECT + + 69 AS col0
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1731
SELECT ALL - + MAX( DISTINCT 63 ) DIV + 57
----
-1

skipif mysql # not compatible
query I rowsort label-1731
SELECT ALL - + MAX ( DISTINCT 63 ) / + 57
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1732
SELECT - - 75 DIV 29 + + 77
----
79

skipif mysql # not compatible
query I rowsort label-1732
SELECT - - 75 / 29 + + 77
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1733
SELECT + 91 + - COUNT( * ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-1733
SELECT + 91 + - COUNT ( * ) AS col1
----
90

query I rowsort
SELECT 33 * - 76 AS col2
----
-2508

onlyif mysql # aggregate syntax: 
query I rowsort label-1735
SELECT ALL - - COUNT( 11 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1735
SELECT ALL - - COUNT ( 11 ) AS col0
----
1

query I rowsort
SELECT 22 + 81
----
103

onlyif mysql # aggregate syntax: 
query II rowsort label-1737
SELECT - 57 / CASE - SUM( DISTINCT - 80 ) WHEN - + COUNT( * ) * + - 62 * + + 30 + 17 THEN - 32 - + 77 + - + COUNT( + + 75 ) + - - 5 - + 17 + - 77 * - + 4 END / + 13 + ( - - 11 ) AS col0, + 36 AS col1
----
NULL
36

skipif mysql # not compatible
query II rowsort label-1737
SELECT - 57 / CASE - SUM ( DISTINCT - 80 ) WHEN - + COUNT ( * ) * + - 62 * + + 30 + 17 THEN - 32 - + 77 + - + COUNT ( + + 75 ) + - - 5 - + 17 + - 77 * - + 4 END / + 13 + ( - - 11 ) AS col0, + 36 AS col1
----
NULL
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1738
SELECT ALL + 98 + 17 + + NULLIF ( + - 82, - 70 * - 8 + 20 + - - COUNT( * ) * 45 * + 1 - - COUNT( * ) * COUNT( * ) * + CAST( 63 AS SIGNED ) - + CAST( + 16 AS SIGNED ) )
----
33

skipif mysql # not compatible
query I rowsort label-1738
SELECT ALL + 98 + 17 + + NULLIF ( + - 82, - 70 * - 8 + 20 + - - COUNT ( * ) * 45 * + 1 - - COUNT ( * ) * COUNT ( * ) * + CAST ( 63 AS INTEGER ) - + CAST ( + 16 AS INTEGER ) )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-1739
SELECT DISTINCT - + COUNT( * ) * + - 26
----
26

skipif mysql # not compatible
query I rowsort label-1739
SELECT DISTINCT - + COUNT ( * ) * + - 26
----
26

query I rowsort
SELECT ALL - 23 + 2
----
-21

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1741
SELECT 2 + 83 col0, 18 + - 54 DIV CAST( - 92 AS SIGNED ) * + 45
----
85
18

skipif mysql # not compatible
query II rowsort label-1741
SELECT 2 + 83 col0, 18 + - 54 / CAST ( - 92 AS INTEGER ) * + 45
----
85
18

query II rowsort
SELECT DISTINCT + 12 * - ( - 1 ) + + - 22 AS col0, NULLIF ( + - 7, - 64 + - - 64 )
----
-10
-7

query I rowsort
SELECT DISTINCT 41 + + - 56 + - 67
----
-82

query I rowsort
SELECT DISTINCT 33 AS col0
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1745
SELECT ALL 76 + + - 66 * - 81 DIV + + COUNT( * ) col2
----
5422

skipif mysql # not compatible
query I rowsort label-1745
SELECT ALL 76 + + - 66 * - 81 / + + COUNT ( * ) col2
----
5422

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1746
SELECT DISTINCT COUNT( * ) + 89 - CASE - COUNT( * ) WHEN 36 - + COALESCE ( 24, 33, - ( + CAST( - 54 AS SIGNED ) ) * + + 90 ) + 11 / ( - - 32 ) * + COUNT( * ) * 81 * + + 61 - + 39 THEN NULL ELSE - ( + CAST( + 45 AS SIGNED ) ) * - CASE - CASE - + 88 WHEN + 3 - - ( 39 ) * - + 48 / + 87 THEN - - 7 WHEN AVG ( ALL + 85 ) * + 30 / - 64 + CAST( - 67 AS SIGNED ) * + AVG ( DISTINCT - 20 ) * + - 51 * ( - 51 ) THEN NULL END WHEN - MIN( ALL 75 ) THEN + 22 END END + 94 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1746
SELECT DISTINCT COUNT ( * ) + 89 - CASE - COUNT ( * ) WHEN 36 - + COALESCE ( 24, 33, - ( + CAST ( - 54 AS INTEGER ) ) * + + 90 ) + 11 / ( - - 32 ) * + COUNT ( * ) * 81 * + + 61 - + 39 THEN NULL ELSE - ( + CAST ( + 45 AS INTEGER ) ) * - CASE - CASE - + 88 WHEN + 3 - - ( 39 ) * - + 48 / + 87 THEN - - 7 WHEN AVG ( ALL + 85 ) * + 30 / - 64 + CAST ( - 67 AS INTEGER ) * + AVG ( DISTINCT - 20 ) * + - 51 * ( - 51 ) THEN NULL END WHEN - MIN ( ALL 75 ) THEN + 22 END END + 94 AS col0
----
NULL

query II rowsort
SELECT DISTINCT 44, + 97 AS col0
----
44
97

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1748
SELECT ALL NULLIF ( - + 3, + 99 - 66 + + CAST( 23 AS SIGNED ) * + - ( + 76 ) ) DIV - 4 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1748
SELECT ALL NULLIF ( - + 3, + 99 - 66 + + CAST ( 23 AS INTEGER ) * + - ( + 76 ) ) / - 4 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1749
SELECT ( + COUNT( * ) ) * + 34 AS col2
----
34

skipif mysql # not compatible
query I rowsort label-1749
SELECT ( + COUNT ( * ) ) * + 34 AS col2
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-1750
SELECT 17 + - ( + COUNT( * ) ) AS col1, - ( 35 ) + - + 9
----
16
-44

skipif mysql # not compatible
query II rowsort label-1750
SELECT 17 + - ( + COUNT ( * ) ) AS col1, - ( 35 ) + - + 9
----
16
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-1751
SELECT ALL 50 AS col0, 86 * + COUNT( * )
----
50
86

skipif mysql # not compatible
query II rowsort label-1751
SELECT ALL 50 AS col0, 86 * + COUNT ( * )
----
50
86

query I rowsort
SELECT DISTINCT 63 * - 56
----
-3528

onlyif mysql # aggregate syntax: 
query I rowsort label-1753
SELECT ALL COUNT( * ) - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-1753
SELECT ALL COUNT ( * ) - COUNT ( * )
----
0

query I rowsort
SELECT ALL - ( + 50 ) - 15 col0
----
-65

query I rowsort
SELECT ALL 10 * 44 AS col0
----
440

query I rowsort
SELECT DISTINCT 67 AS col0
----
67

query I rowsort
SELECT 32 * - + 38 col0
----
-1216

onlyif mysql # aggregate syntax: 
query I rowsort label-1758
SELECT ( COUNT( * ) ) - + - 15
----
16

skipif mysql # not compatible
query I rowsort label-1758
SELECT ( COUNT ( * ) ) - + - 15
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-1759
SELECT 42 * + - COUNT( * ) * + + 31 AS col0, COUNT( * ) * - 57 AS col2
----
-1302
-57

skipif mysql # not compatible
query II rowsort label-1759
SELECT 42 * + - COUNT ( * ) * + + 31 AS col0, COUNT ( * ) * - 57 AS col2
----
-1302
-57

query I rowsort
SELECT 68 + - + 8
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1761
SELECT 99 * - CASE - - ( - COUNT( * ) ) WHEN - + 71 THEN NULL WHEN 62 - + CASE + 83 WHEN COUNT( * ) THEN 33 ELSE NULL END + + 75 * + + 44 - + - COALESCE ( + COALESCE ( 0, - 23 * + 62 * + - MIN( + + 60 ) * 74 * - 85 + + 28 + - 99, + COUNT( * ) ), - 31 ) * 9 THEN + - ( - 2 ) * - 1 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1761
SELECT 99 * - CASE - - ( - COUNT ( * ) ) WHEN - + 71 THEN NULL WHEN 62 - + CASE + 83 WHEN COUNT ( * ) THEN 33 ELSE NULL END + + 75 * + + 44 - + - COALESCE ( + COALESCE ( 0, - 23 * + 62 * + - MIN ( + + 60 ) * 74 * - 85 + + 28 + - 99, + COUNT ( * ) ), - 31 ) * 9 THEN + - ( - 2 ) * - 1 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1762
SELECT - 11 DIV + 91 + + 11 + - COUNT( * ) * 58
----
-47

skipif mysql # not compatible
query I rowsort label-1762
SELECT - 11 / + 91 + + 11 + - COUNT ( * ) * 58
----
-47

query I rowsort
SELECT + 71 AS col0
----
71

query I rowsort
SELECT ALL - 47 AS col0
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1765
SELECT CAST( - + 22 AS SIGNED ) AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-1765
SELECT CAST ( - + 22 AS INTEGER ) AS col0
----
-22

query I rowsort
SELECT ALL - + 9 col2
----
-9

query I rowsort
SELECT ALL + 79 * - 49 AS col2
----
-3871

query I rowsort
SELECT DISTINCT + 68 + + 56 col0
----
124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1769
SELECT ALL - NULLIF ( + + 3, + 38 * + COUNT( * ) + - + 94 ) AS col0, + CAST( NULL AS SIGNED )
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-1769
SELECT ALL - NULLIF ( + + 3, + 38 * + COUNT ( * ) + - + 94 ) AS col0, + CAST ( NULL AS INTEGER )
----
-3
NULL

query I rowsort
SELECT DISTINCT - - 53 * 94
----
4982

query I rowsort
SELECT 17 + 39
----
56

query I rowsort
SELECT ALL - 18 * + 69 * 93 * 20 AS col0
----
-2310120

onlyif mysql # aggregate syntax: 
query I rowsort label-1773
SELECT 47 * COUNT( * ) col0
----
47

skipif mysql # not compatible
query I rowsort label-1773
SELECT 47 * COUNT ( * ) col0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1774
SELECT + - 9 * - 73 - + 47 + + MIN( - - 33 )
----
643

skipif mysql # not compatible
query I rowsort label-1774
SELECT + - 9 * - 73 - + 47 + + MIN ( - - 33 )
----
643

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1775
SELECT DISTINCT - CASE - NULLIF ( - 10, 4 ) WHEN 5 + - 20 + 57 * + CAST( NULL AS SIGNED ) THEN NULL WHEN - - 6 THEN NULL ELSE - 50 * - + 62 + - - CAST( NULL AS SIGNED ) + 89 + - 96 / + + 88 + + 52 END + - + COUNT( + 32 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1775
SELECT DISTINCT - CASE - NULLIF ( - 10, 4 ) WHEN 5 + - 20 + 57 * + CAST ( NULL AS INTEGER ) THEN NULL WHEN - - 6 THEN NULL ELSE - 50 * - + 62 + - - CAST ( NULL AS INTEGER ) + 89 + - 96 / + + 88 + + 52 END + - + COUNT ( + 32 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1776
SELECT ALL + ( 43 ) + + COUNT( * ) + 97 AS col0
----
141

skipif mysql # not compatible
query I rowsort label-1776
SELECT ALL + ( 43 ) + + COUNT ( * ) + 97 AS col0
----
141

query II rowsort
SELECT ALL - 96 AS col2, + 10
----
-96
10

query I rowsort
SELECT ALL - + 11 + + 35 * + 90 - - + 64 AS col2
----
3203

query I rowsort
SELECT + 1 col0
----
1

query I rowsort
SELECT ALL - + 38 AS col1
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1781
SELECT ALL - 77 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1781
SELECT ALL - 77 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + - 16 AS col1
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1783
SELECT ALL + COUNT( ALL 70 ) + + 24, + 48 - + - CAST( NULL AS SIGNED ) AS col0
----
25
NULL

skipif mysql # not compatible
query II rowsort label-1783
SELECT ALL + COUNT ( ALL 70 ) + + 24, + 48 - + - CAST ( NULL AS INTEGER ) AS col0
----
25
NULL

query I rowsort
SELECT ALL 64 * + 87 AS col2
----
5568

query I rowsort
SELECT ALL - 22 + - 97 + - - 49
----
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1786
SELECT DISTINCT - COUNT( * ) DIV - 70 * 46 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1786
SELECT DISTINCT - COUNT ( * ) / - 70 * 46 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1787
SELECT 62 AS col2, + 74 * CAST( + 69 AS SIGNED ) * 64 AS col2
----
62
326784

skipif mysql # not compatible
query II rowsort label-1787
SELECT 62 AS col2, + 74 * CAST ( + 69 AS INTEGER ) * 64 AS col2
----
62
326784

onlyif mysql # aggregate syntax: 
query I rowsort label-1788
SELECT DISTINCT MIN( ALL - 3 )
----
-3

skipif mysql # not compatible
query I rowsort label-1788
SELECT DISTINCT MIN ( ALL - 3 )
----
-3

query I rowsort
SELECT 81 + 97 col2
----
178

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1790
SELECT COUNT( * ) DIV 58 col1
----
0

skipif mysql # not compatible
query I rowsort label-1790
SELECT COUNT ( * ) / 58 col1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-1791
SELECT 78 AS col1, 81 * 13 DIV - - 31
----
78
33

skipif mysql # not compatible
query II rowsort label-1791
SELECT 78 AS col1, 81 * 13 / - - 31
----
78
33

query I rowsort
SELECT DISTINCT + 50 * CASE - - 55 WHEN - + 97 THEN + - 55 WHEN + + 36 + + 31 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1793
SELECT ALL + SUM( + - 85 ) * MAX( + 36 ) AS col0
----
-3060

skipif mysql # not compatible
query I rowsort label-1793
SELECT ALL + SUM ( + - 85 ) * MAX ( + 36 ) AS col0
----
-3060

onlyif mysql # aggregate syntax: 
query I rowsort label-1794
SELECT COUNT( * ) + - 29 + - 15 AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-1794
SELECT COUNT ( * ) + - 29 + - 15 AS col2
----
-43

query II rowsort
SELECT DISTINCT 54 AS col0, + 36
----
54
36

query I rowsort
SELECT ALL 60 AS col2
----
60

query I rowsort
SELECT 97 + 49 AS col1
----
146

query II rowsort
SELECT DISTINCT 65 AS col1, 86
----
65
86

query I rowsort
SELECT 42 * - 48
----
-2016

query II rowsort
SELECT ALL 19 AS col1, - NULLIF ( - + 78, - + ( 13 ) ) AS col0
----
19
78

query II rowsort
SELECT ALL 71 AS col1, - 59 * 49
----
71
-2891

onlyif mysql # aggregate syntax: 
query I rowsort label-1802
SELECT NULLIF ( + - MIN( DISTINCT - 62 ), 69 ) + 82
----
144

skipif mysql # not compatible
query I rowsort label-1802
SELECT NULLIF ( + - MIN ( DISTINCT - 62 ), 69 ) + 82
----
144

query II rowsort
SELECT 64 AS col2, - 30
----
64
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-1804
SELECT 25 * - + CASE + 48 WHEN + - 87 * + 28 THEN + COUNT( * ) * - - 88 + - + 29 * + 75 ELSE 64 END
----
-1600

skipif mysql # not compatible
query I rowsort label-1804
SELECT 25 * - + CASE + 48 WHEN + - 87 * + 28 THEN + COUNT ( * ) * - - 88 + - + 29 * + 75 ELSE 64 END
----
-1600

onlyif mysql # aggregate syntax: 
query II rowsort label-1805
SELECT + 71 + + 61 * + 18 + - MAX( DISTINCT - 62 ) * - 11 AS col1, 90 AS col2
----
487
90

skipif mysql # not compatible
query II rowsort label-1805
SELECT + 71 + + 61 * + 18 + - MAX ( DISTINCT - 62 ) * - 11 AS col1, 90 AS col2
----
487
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1806
SELECT ALL - MIN( ALL + - 81 ) * 58
----
4698

skipif mysql # not compatible
query I rowsort label-1806
SELECT ALL - MIN ( ALL + - 81 ) * 58
----
4698

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1807
SELECT ALL SUM( - + 7 ) DIV COALESCE ( - 7, - 85 * 71 + 51 * 65 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-1807
SELECT ALL SUM ( - + 7 ) / COALESCE ( - 7, - 85 * 71 + 51 * 65 ) col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1808
SELECT ALL - CASE + COUNT( * ) WHEN + - ( + COUNT( 16 ) ) + - 87 THEN ( 17 ) DIV + 81 ELSE - + 28 * - + 23 END, ( - COUNT( * ) ) col2
----
-644
-1

skipif mysql # not compatible
query II rowsort label-1808
SELECT ALL - CASE + COUNT ( * ) WHEN + - ( + COUNT ( 16 ) ) + - 87 THEN ( 17 ) / + 81 ELSE - + 28 * - + 23 END, ( - COUNT ( * ) ) col2
----
-644
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1809
SELECT + ( + SUM( ALL + 21 ) ) + - + 12 AS col1
----
9

skipif mysql # not compatible
query I rowsort label-1809
SELECT + ( + SUM ( ALL + 21 ) ) + - + 12 AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1810
SELECT ALL - COUNT( * ) + + 42 * + 80 AS col2
----
3359

skipif mysql # not compatible
query I rowsort label-1810
SELECT ALL - COUNT ( * ) + + 42 * + 80 AS col2
----
3359

onlyif mysql # aggregate syntax: 
query I rowsort label-1811
SELECT - 37 + - - COUNT( * ) + + 64 AS col0
----
28

skipif mysql # not compatible
query I rowsort label-1811
SELECT - 37 + - - COUNT ( * ) + + 64 AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-1812
SELECT ALL COUNT( * ) * - 87
----
-87

skipif mysql # not compatible
query I rowsort label-1812
SELECT ALL COUNT ( * ) * - 87
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1813
SELECT - COUNT( * ) DIV 69 DIV 15 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1813
SELECT - COUNT ( * ) / 69 / 15 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1814
SELECT + 51 + + - 98 * + - MAX( DISTINCT - - 4 )
----
443

skipif mysql # not compatible
query I rowsort label-1814
SELECT + 51 + + - 98 * + - MAX ( DISTINCT - - 4 )
----
443

query I rowsort
SELECT + + 39 AS col2
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1816
SELECT + ( - CAST( NULL AS SIGNED ) ) * - 74 + 42 + + - 11
----
NULL

skipif mysql # not compatible
query I rowsort label-1816
SELECT + ( - CAST ( NULL AS INTEGER ) ) * - 74 + 42 + + - 11
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1817
SELECT - MAX( DISTINCT - 70 ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-1817
SELECT - MAX ( DISTINCT - 70 ) AS col2
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-1818
SELECT ALL + ( - COUNT( * ) ) AS col1, 26
----
-1
26

skipif mysql # not compatible
query II rowsort label-1818
SELECT ALL + ( - COUNT ( * ) ) AS col1, 26
----
-1
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1819
SELECT DISTINCT 38 * + COUNT( * ) + 79 + + - 77 + CAST( NULL AS SIGNED ) - - 15 * + 26 + + 39
----
NULL

skipif mysql # not compatible
query I rowsort label-1819
SELECT DISTINCT 38 * + COUNT ( * ) + 79 + + - 77 + CAST ( NULL AS INTEGER ) - - 15 * + 26 + + 39
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1820
SELECT - 56 AS col2, + NULLIF ( + 70, 37 + + 55 ) - 72 * + COUNT( - 68 ) - + 14 + 82
----
-56
66

skipif mysql # not compatible
query II rowsort label-1820
SELECT - 56 AS col2, + NULLIF ( + 70, 37 + + 55 ) - 72 * + COUNT ( - 68 ) - + 14 + 82
----
-56
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1821
SELECT ALL + + ( 56 ) DIV - 66 * - 65 + MAX( ALL + ( - 6 ) )
----
-6

skipif mysql # not compatible
query I rowsort label-1821
SELECT ALL + + ( 56 ) / - 66 * - 65 + MAX ( ALL + ( - 6 ) )
----
-6

query I rowsort
SELECT - NULLIF ( + 40, 89 )
----
-40

query I rowsort
SELECT DISTINCT - 83 * - 28 - 71 + 83 AS col1
----
2336

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1824
SELECT + + CASE - - 77 WHEN 27 THEN - + 41 WHEN 74 * 16 THEN NULL ELSE NULL END, - MIN( + - CAST( NULL AS SIGNED ) )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1824
SELECT + + CASE - - 77 WHEN 27 THEN - + 41 WHEN 74 * 16 THEN NULL ELSE NULL END, - MIN ( + - CAST ( NULL AS INTEGER ) )
----
NULL
NULL

query I rowsort
SELECT + 66 * - 40 + - 75
----
-2715

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1826
SELECT DISTINCT MIN( - 9 ) * - + 68 * - + 7 * 92 + - 41 + + - COALESCE ( - 41, + MAX( CAST( NULL AS SIGNED ) ) ) AS col0
----
-394128

skipif mysql # not compatible
query I rowsort label-1826
SELECT DISTINCT MIN ( - 9 ) * - + 68 * - + 7 * 92 + - 41 + + - COALESCE ( - 41, + MAX ( CAST ( NULL AS INTEGER ) ) ) AS col0
----
-394128

query I rowsort
SELECT ALL + - 36
----
-36

query I rowsort
SELECT + 79 * + - 51 * - + 3 * - - 98 + 52 AS col1
----
1184578

query I rowsort
SELECT ALL + 97 * - 31 + - - 18 + + 91
----
-2898

onlyif mysql # aggregate syntax: 
query I rowsort label-1830
SELECT + MAX( - 23 )
----
-23

skipif mysql # not compatible
query I rowsort label-1830
SELECT + MAX ( - 23 )
----
-23

query I rowsort
SELECT ALL - 26 * - 25 * 62 AS col1
----
40300

query II rowsort
SELECT + 58 * + + 64, + 61 + + - 36 AS col1
----
3712
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1833
SELECT + 38 * CASE 89 WHEN COUNT( DISTINCT + 52 ) THEN NULL WHEN + - 24 THEN - 93 END - + 91 + - + 87 + - - 25 * + 41 * - - 15 + + + CAST( + 98 AS SIGNED ) * + ( + - 43 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1833
SELECT + 38 * CASE 89 WHEN COUNT ( DISTINCT + 52 ) THEN NULL WHEN + - 24 THEN - 93 END - + 91 + - + 87 + - - 25 * + 41 * - - 15 + + + CAST ( + 98 AS INTEGER ) * + ( + - 43 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1834
SELECT - 40 + - 46 + + 64 DIV - - 57 AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-1834
SELECT - 40 + - 46 + + 64 / - - 57 AS col1
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-1835
SELECT DISTINCT - 86 * + 83 - - 84 * COUNT( * ) AS col2
----
-7054

skipif mysql # not compatible
query I rowsort label-1835
SELECT DISTINCT - 86 * + 83 - - 84 * COUNT ( * ) AS col2
----
-7054

onlyif mysql # aggregate syntax: 
query I rowsort label-1836
SELECT ALL + MAX( ALL - 11 )
----
-11

skipif mysql # not compatible
query I rowsort label-1836
SELECT ALL + MAX ( ALL - 11 )
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1837
SELECT ALL + CAST( - + 57 AS SIGNED ), + 80 AS col0
----
-57
80

skipif mysql # not compatible
query II rowsort label-1837
SELECT ALL + CAST ( - + 57 AS INTEGER ), + 80 AS col0
----
-57
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1838
SELECT ALL - ( - 95 ) DIV - COUNT( * )
----
-95

skipif mysql # not compatible
query I rowsort label-1838
SELECT ALL - ( - 95 ) / - COUNT ( * )
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1839
SELECT DISTINCT NULLIF ( + - 86, - 34 + - COUNT( * ) ) * - CASE - - COUNT( * ) WHEN - COUNT( * ) THEN + 19 - - 13 + - + COUNT( * ) WHEN 10 THEN - + 11 * - SUM( DISTINCT + + 2 ) + - 44 ELSE NULL END + - ( + CAST( COUNT( * ) AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1839
SELECT DISTINCT NULLIF ( + - 86, - 34 + - COUNT ( * ) ) * - CASE - - COUNT ( * ) WHEN - COUNT ( * ) THEN + 19 - - 13 + - + COUNT ( * ) WHEN 10 THEN - + 11 * - SUM ( DISTINCT + + 2 ) + - 44 ELSE NULL END + - ( + CAST ( COUNT ( * ) AS INTEGER ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1840
SELECT DISTINCT + 73 DIV 17 DIV + + 79 * - 15 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1840
SELECT DISTINCT + 73 / 17 / + + 79 * - 15 AS col1
----
0

query I rowsort
SELECT - 27 * - 29
----
783

query I rowsort
SELECT + 33 * - 97 AS col0
----
-3201

onlyif mysql # aggregate syntax: 
query I rowsort label-1843
SELECT ALL + 64 * + + ( MIN( NULLIF ( - 8, + - 80 * - + 94 * 12 ) ) )
----
-512

skipif mysql # not compatible
query I rowsort label-1843
SELECT ALL + 64 * + + ( MIN ( NULLIF ( - 8, + - 80 * - + 94 * 12 ) ) )
----
-512

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1844
SELECT DISTINCT + ( - COUNT( * ) ) * SUM( DISTINCT + - 38 ) * + - CASE + MAX( DISTINCT 34 ) WHEN - 26 THEN NULL ELSE CAST( NULL AS SIGNED ) + ( + COUNT( * ) ) END * 83 + 90 + - 6 + - 14 * - + CAST( NULL AS SIGNED ) * + 49
----
NULL

skipif mysql # not compatible
query I rowsort label-1844
SELECT DISTINCT + ( - COUNT ( * ) ) * SUM ( DISTINCT + - 38 ) * + - CASE + MAX ( DISTINCT 34 ) WHEN - 26 THEN NULL ELSE CAST ( NULL AS INTEGER ) + ( + COUNT ( * ) ) END * 83 + 90 + - 6 + - 14 * - + CAST ( NULL AS INTEGER ) * + 49
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1845
SELECT ALL - COUNT( + 21 ) * ( + 40 ) * - 74
----
2960

skipif mysql # not compatible
query I rowsort label-1845
SELECT ALL - COUNT ( + 21 ) * ( + 40 ) * - 74
----
2960

query I rowsort
SELECT ALL + 56 * 26 * 5
----
7280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1847
SELECT ALL MIN( - + CAST( NULL AS SIGNED ) ) + - 22 - ( 6 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1847
SELECT ALL MIN ( - + CAST ( NULL AS INTEGER ) ) + - 22 - ( 6 ) AS col2
----
NULL

query II rowsort
SELECT + 35 * - + 54 AS col1, + 79 AS col2
----
-1890
79

onlyif mysql # aggregate syntax: 
query II rowsort label-1849
SELECT - + ( 19 ) AS col2, + ( + - 43 ) * - + ( COUNT( * ) )
----
-19
43

skipif mysql # not compatible
query II rowsort label-1849
SELECT - + ( 19 ) AS col2, + ( + - 43 ) * - + ( COUNT ( * ) )
----
-19
43

onlyif mysql # aggregate syntax: 
query I rowsort label-1850
SELECT ALL - 51 + COUNT( * )
----
-50

skipif mysql # not compatible
query I rowsort label-1850
SELECT ALL - 51 + COUNT ( * )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-1851
SELECT ALL - 93 + COALESCE ( - MAX( 62 ), - 26 )
----
-155

skipif mysql # not compatible
query I rowsort label-1851
SELECT ALL - 93 + COALESCE ( - MAX ( 62 ), - 26 )
----
-155

query I rowsort
SELECT 4 col2
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1853
SELECT + + 13 + - 45 - - CAST( - 59 AS SIGNED ) AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-1853
SELECT + + 13 + - 45 - - CAST ( - 59 AS INTEGER ) AS col2
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-1854
SELECT + + COUNT( * ) * - 2 col1
----
-2

skipif mysql # not compatible
query I rowsort label-1854
SELECT + + COUNT ( * ) * - 2 col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1855
SELECT ALL - COUNT( * ) * + 31 AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-1855
SELECT ALL - COUNT ( * ) * + 31 AS col0
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1856
SELECT ALL 48 DIV - 52 + + + COUNT( - ( - + 79 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1856
SELECT ALL 48 / - 52 + + + COUNT ( - ( - + 79 ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1857
SELECT DISTINCT + COUNT( - - 75 ) * 76 AS col1
----
76

skipif mysql # not compatible
query I rowsort label-1857
SELECT DISTINCT + COUNT ( - - 75 ) * 76 AS col1
----
76

query I rowsort
SELECT ALL + - 77
----
-77

query I rowsort
SELECT ALL + - 21 AS col2
----
-21

query I rowsort
SELECT DISTINCT 25 * 60
----
1500

query I rowsort
SELECT + + ( + - 68 )
----
-68

query I rowsort
SELECT + + 11 + 31 * - 74 * + 79
----
-181215

query I rowsort
SELECT ( 54 )
----
54

query I rowsort
SELECT - 99 - 64
----
-163

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1865
SELECT ALL COALESCE ( + 60, CAST( + 76 AS SIGNED ) ) DIV + 10
----
6

skipif mysql # not compatible
query I rowsort label-1865
SELECT ALL COALESCE ( + 60, CAST ( + 76 AS INTEGER ) ) / + 10
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1866
SELECT + CAST( NULL AS SIGNED ) * - + 99 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1866
SELECT + CAST ( NULL AS INTEGER ) * - + 99 AS col2
----
NULL

query I rowsort
SELECT ( - 55 )
----
-55

query I rowsort
SELECT DISTINCT + 50 * - 75
----
-3750

onlyif mysql # DIV for integer division: 
query II rowsort label-1869
SELECT ALL + 71 AS col1, - 45 DIV 42
----
71
-1

skipif mysql # not compatible
query II rowsort label-1869
SELECT ALL + 71 AS col1, - 45 / 42
----
71
-1

query I rowsort
SELECT DISTINCT 65 * - 64 - + 22 + - 87 + + 87 * 66 AS col2
----
1473

query I rowsort
SELECT ALL + ( 15 ) AS col0
----
15

query I rowsort
SELECT COALESCE ( ( - 83 ), - 44 * 42, 78 ) AS col1
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-1873
SELECT ALL + COUNT( DISTINCT - + CASE + - 34 WHEN - 80 THEN NULL WHEN 70 + 65 * - 2 + + 67 THEN - 85 + + 45 ELSE NULL END )
----
0

skipif mysql # not compatible
query I rowsort label-1873
SELECT ALL + COUNT ( DISTINCT - + CASE + - 34 WHEN - 80 THEN NULL WHEN 70 + 65 * - 2 + + 67 THEN - 85 + + 45 ELSE NULL END )
----
0

query I rowsort
SELECT DISTINCT + ( 17 ) col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1875
SELECT DISTINCT + CASE COUNT( * ) WHEN SUM( - ( + ( + 24 ) ) ) THEN COUNT( * ) * - 50 - - + 44 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1875
SELECT DISTINCT + CASE COUNT ( * ) WHEN SUM ( - ( + ( + 24 ) ) ) THEN COUNT ( * ) * - 50 - - + 44 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1876
SELECT ALL COALESCE ( + - COUNT( * ), + + 60, - 64 * + 27 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1876
SELECT ALL COALESCE ( + - COUNT ( * ), + + 60, - 64 * + 27 ) AS col1
----
-1

query I rowsort
SELECT 96 * - 2 * 9 + - ( + 2 ) col1
----
-1730

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1878
SELECT - 51 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1878
SELECT - 51 - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 21 + + 75 AS col1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1880
SELECT - MIN( 97 )
----
-97

skipif mysql # not compatible
query I rowsort label-1880
SELECT - MIN ( 97 )
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1881
SELECT ALL ( + - CASE + 27 WHEN + COUNT( * ) - + 92 THEN - 5 * 12 * - + 38 DIV - 76 WHEN + 50 THEN NULL ELSE + - 31 + + 69 END )
----
-38

skipif mysql # not compatible
query I rowsort label-1881
SELECT ALL ( + - CASE + 27 WHEN + COUNT ( * ) - + 92 THEN - 5 * 12 * - + 38 / - 76 WHEN + 50 THEN NULL ELSE + - 31 + + 69 END )
----
-38

query I rowsort
SELECT ALL ( 56 )
----
56

query I rowsort
SELECT - 97 + - 27 AS col0
----
-124

query I rowsort
SELECT ALL - 39 * - - 57 + - 54
----
-2277

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1885
SELECT DISTINCT CAST( 79 AS SIGNED ) col2
----
79

skipif mysql # not compatible
query I rowsort label-1885
SELECT DISTINCT CAST ( 79 AS INTEGER ) col2
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1886
SELECT - 74 DIV - 80 * + 73 DIV COUNT( ALL + 41 ) * 28 + - COALESCE ( - 80, - 19 + + 49 + - ( 69 ) )
----
80

skipif mysql # not compatible
query I rowsort label-1886
SELECT - 74 / - 80 * + 73 / COUNT ( ALL + 41 ) * 28 + - COALESCE ( - 80, - 19 + + 49 + - ( 69 ) )
----
80

query I rowsort
SELECT ALL + 89 * + 86 + 29
----
7683

onlyif mysql # aggregate syntax: 
query I rowsort label-1888
SELECT ALL COUNT( * ) * - COUNT( * ) * - 84 + - 60
----
24

skipif mysql # not compatible
query I rowsort label-1888
SELECT ALL COUNT ( * ) * - COUNT ( * ) * - 84 + - 60
----
24

query I rowsort
SELECT ALL - 70 + - - 1
----
-69

query I rowsort
SELECT - 67 + - - 82
----
15

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1891
SELECT ALL - + CASE - 42 WHEN 33 THEN NULL WHEN CAST( NULL AS DECIMAL ) THEN + - 67 + + 17 END + + 94
----
NULL

skipif mysql # not compatible
query I rowsort label-1891
SELECT ALL - + CASE - 42 WHEN 33 THEN NULL WHEN CAST ( NULL AS REAL ) THEN + - 67 + + 17 END + + 94
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1892
SELECT ALL + ( + - COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1892
SELECT ALL + ( + - COUNT ( * ) ) AS col2
----
-1

query I rowsort
SELECT DISTINCT - 55 + + 74 + - + 21 * + + 15 + + 70 AS col0
----
-226

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1894
SELECT + 58 * + COUNT( * ) DIV + + 86 + + 45
----
45

skipif mysql # not compatible
query I rowsort label-1894
SELECT + 58 * + COUNT ( * ) / + + 86 + + 45
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1895
SELECT ALL - + 8 + COUNT( * ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-1895
SELECT ALL - + 8 + COUNT ( * ) AS col2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1896
SELECT - MAX( ALL + 29 ) AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-1896
SELECT - MAX ( ALL + 29 ) AS col0
----
-29

query II rowsort
SELECT - 96 AS col2, 2
----
-96
2

query I rowsort
SELECT 12 + - 22 + + - 88 - 63 * + 1
----
-161

query I rowsort
SELECT ALL + + 96 * - 5 col0
----
-480

query I rowsort
SELECT DISTINCT - + 33 * + + 14 AS col1
----
-462

query II rowsort
SELECT - - 15 AS col1, - 72 * + + 27 col1
----
15
-1944

query I rowsort
SELECT ALL 52 - - 70 col0
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-1903
SELECT MAX( ALL - + 82 ) + - 91
----
-173

skipif mysql # not compatible
query I rowsort label-1903
SELECT MAX ( ALL - + 82 ) + - 91
----
-173

query I rowsort
SELECT ALL - - ( 76 ) * 84
----
6384

query I rowsort
SELECT + 35 + - 38 AS col2
----
-3

query I rowsort
SELECT ALL + 95 * + 22
----
2090

query I rowsort
SELECT ALL - + 74 AS col0
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1908
SELECT DISTINCT - 12, ( + 78 ) * NULLIF ( - 64, - - COUNT( * ) + 95 + - CAST( 1 AS SIGNED ) ) AS col0
----
-12
-4992

skipif mysql # not compatible
query II rowsort label-1908
SELECT DISTINCT - 12, ( + 78 ) * NULLIF ( - 64, - - COUNT ( * ) + 95 + - CAST ( 1 AS INTEGER ) ) AS col0
----
-12
-4992

query I rowsort
SELECT ALL - - 27
----
27

query I rowsort
SELECT + 2 * 75
----
150

query II rowsort
SELECT ALL - 50 AS col0, 6
----
-50
6

onlyif mysql # aggregate syntax: 
query II rowsort label-1912
SELECT - 26 AS col0, - MAX( ALL 77 )
----
-26
-77

skipif mysql # not compatible
query II rowsort label-1912
SELECT - 26 AS col0, - MAX ( ALL 77 )
----
-26
-77

query I rowsort
SELECT ALL - ( + 15 )
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1914
SELECT ALL ( + + 74 ) * 81 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1914
SELECT ALL ( + + 74 ) * 81 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1915
SELECT DISTINCT COUNT( * ) * + - 20 col0
----
-20

skipif mysql # not compatible
query I rowsort label-1915
SELECT DISTINCT COUNT ( * ) * + - 20 col0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-1916
SELECT 64 * + - COUNT( * ) + - + 57 AS col2
----
-121

skipif mysql # not compatible
query I rowsort label-1916
SELECT 64 * + - COUNT ( * ) + - + 57 AS col2
----
-121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1917
SELECT ALL - MIN( - 79 ), + 44 + + ( - - COUNT( * ) ) * COUNT( * ) + + CAST( NULL AS SIGNED ) AS col1
----
79
NULL

skipif mysql # not compatible
query II rowsort label-1917
SELECT ALL - MIN ( - 79 ), + 44 + + ( - - COUNT ( * ) ) * COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col1
----
79
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1918
SELECT - 92 * - SUM( DISTINCT 12 ) + 20 AS col1
----
1124

skipif mysql # not compatible
query I rowsort label-1918
SELECT - 92 * - SUM ( DISTINCT 12 ) + 20 AS col1
----
1124

query I rowsort
SELECT ALL ( ( 18 ) ) * - 71 col0
----
-1278

query I rowsort
SELECT 51 col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1921
SELECT ALL COUNT( * ) + + 24
----
25

skipif mysql # not compatible
query I rowsort label-1921
SELECT ALL COUNT ( * ) + + 24
----
25

query I rowsort
SELECT DISTINCT - 74 AS col2
----
-74

query I rowsort
SELECT 51 + 78 + + + 74 AS col2
----
203

query I rowsort
SELECT ALL - 90 AS col2
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-1925
SELECT ALL COUNT( * ) + - 31 AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-1925
SELECT ALL COUNT ( * ) + - 31 AS col1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-1926
SELECT DISTINCT 62 + COUNT( * ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-1926
SELECT DISTINCT 62 + COUNT ( * ) AS col2
----
63

query I rowsort
SELECT DISTINCT + 56 + 12 * + 33 * + 61 col2
----
24212

query I rowsort
SELECT 41 * + 52 * + - 45 * ( + + 64 ) * - 59
----
362269440

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1929
SELECT ALL 97 DIV - ( - COUNT( * ) )
----
97

skipif mysql # not compatible
query I rowsort label-1929
SELECT ALL 97 / - ( - COUNT ( * ) )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1930
SELECT ( - 46 ) * + COUNT( DISTINCT + 66 )
----
-46

skipif mysql # not compatible
query I rowsort label-1930
SELECT ( - 46 ) * + COUNT ( DISTINCT + 66 )
----
-46

query I rowsort
SELECT ALL + 29 * 41 AS col0
----
1189

onlyif mysql # aggregate syntax: 
query I rowsort label-1932
SELECT - COUNT( * ) - + 33 + + 80 * - - 26 AS col1
----
2046

skipif mysql # not compatible
query I rowsort label-1932
SELECT - COUNT ( * ) - + 33 + + 80 * - - 26 AS col1
----
2046

query I rowsort
SELECT ALL 87 + - 12 * - - 64 AS col2
----
-681

onlyif mysql # aggregate syntax: 
query I rowsort label-1934
SELECT 91 * - COUNT( ALL + 5 ) * 29
----
-2639

skipif mysql # not compatible
query I rowsort label-1934
SELECT 91 * - COUNT ( ALL + 5 ) * 29
----
-2639

query II rowsort
SELECT - 26 * - ( ( - - 83 ) ), - 61 AS col1
----
2158
-61

query I rowsort
SELECT - 2 AS col1
----
-2

query I rowsort
SELECT + 41 col2
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-1938
SELECT ALL 53 + 73 + + 82 + + + 34 DIV 25 + + 69
----
278

skipif mysql # not compatible
query I rowsort label-1938
SELECT ALL 53 + 73 + + 82 + + + 34 / 25 + + 69
----
278

query I rowsort
SELECT ALL - 10 - - - 95 + - - 2 * 93 AS col1
----
81

query I rowsort
SELECT - - ( + ( + 4 ) ) AS col1
----
4

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

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

query I rowsort
SELECT 37 * + NULLIF ( - 34, 6 + + - 10 )
----
-1258

query I rowsort
SELECT - ( + 56 ) AS col1
----
-56

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1944
SELECT 29 DIV + + 67, - COALESCE ( - 46, + 46 - - CAST( NULL AS SIGNED ) ) AS col1
----
0
46

skipif mysql # not compatible
query II rowsort label-1944
SELECT 29 / + + 67, - COALESCE ( - 46, + 46 - - CAST ( NULL AS INTEGER ) ) AS col1
----
0
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1945
SELECT ALL - 58 * + + 0 * - MIN( + - 54 ) * + 66 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1945
SELECT ALL - 58 * + + 0 * - MIN ( + - 54 ) * + 66 AS col2
----
0

query I rowsort
SELECT 16 * + - 63 - + NULLIF ( 61, - 89 ) + + 80 AS col1
----
-989

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1947
SELECT - 99 + - - CAST( NULL AS SIGNED ) AS col0, - 60 AS col0
----
NULL
-60

skipif mysql # not compatible
query II rowsort label-1947
SELECT - 99 + - - CAST ( NULL AS INTEGER ) AS col0, - 60 AS col0
----
NULL
-60

query I rowsort
SELECT 39 col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-1949
SELECT ALL + - MIN( - + 45 ) * + 9 + + 76 + - + 61 AS col1
----
420

skipif mysql # not compatible
query I rowsort label-1949
SELECT ALL + - MIN ( - + 45 ) * + 9 + + 76 + - + 61 AS col1
----
420

query I rowsort
SELECT DISTINCT + 67 * + 7 + - 34
----
435

onlyif mysql # DIV for integer division: 
query I rowsort label-1951
SELECT 9 DIV ( - 80 )
----
0

skipif mysql # not compatible
query I rowsort label-1951
SELECT 9 / ( - 80 )
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-1952
SELECT ALL - 72 AS col1, - 14 + - 33 DIV - 28 + + 28
----
-72
15

skipif mysql # not compatible
query II rowsort label-1952
SELECT ALL - 72 AS col1, - 14 + - 33 / - 28 + + 28
----
-72
15

query I rowsort
SELECT ALL - 75 AS col2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-1954
SELECT COUNT( * ) - + - 20 AS col0
----
21

skipif mysql # not compatible
query I rowsort label-1954
SELECT COUNT ( * ) - + - 20 AS col0
----
21

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1956
SELECT 77 * - - 72 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1956
SELECT 77 * - - 72 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1957
SELECT ALL - 91 AS col1, + 9 * + COUNT( * ) + + 57 AS col0
----
-91
66

skipif mysql # not compatible
query II rowsort label-1957
SELECT ALL - 91 AS col1, + 9 * + COUNT ( * ) + + 57 AS col0
----
-91
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1958
SELECT MAX( - + 88 )
----
-88

skipif mysql # not compatible
query I rowsort label-1958
SELECT MAX ( - + 88 )
----
-88

query I rowsort
SELECT ALL + 77 * - + ( + + 96 ) + - + 88 AS col2
----
-7480

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1960
SELECT ALL - CAST( + 30 AS SIGNED ) AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-1960
SELECT ALL - CAST ( + 30 AS INTEGER ) AS col2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-1961
SELECT 7 * CASE + 23 WHEN + COUNT( ALL - + 5 ) / 83 THEN NULL WHEN + + 96 THEN - 59 - + + 8 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1961
SELECT 7 * CASE + 23 WHEN + COUNT ( ALL - + 5 ) / 83 THEN NULL WHEN + + 96 THEN - 59 - + + 8 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1962
SELECT 10 + + CAST( NULL AS SIGNED ) + - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-1962
SELECT 10 + + CAST ( NULL AS INTEGER ) + - 58
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1963
SELECT MIN( + ( - 4 ) )
----
-4

skipif mysql # not compatible
query I rowsort label-1963
SELECT MIN ( + ( - 4 ) )
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1964
SELECT CAST( - 99 AS SIGNED ) - + 13 - - 84
----
-28

skipif mysql # not compatible
query I rowsort label-1964
SELECT CAST ( - 99 AS INTEGER ) - + 13 - - 84
----
-28

query I rowsort
SELECT ALL 92 * 63
----
5796

query I rowsort
SELECT 26 * - 52 AS col2
----
-1352

query I rowsort
SELECT ALL 10 + - 97 - 68 AS col2
----
-155

query II rowsort
SELECT ALL 86 + - ( - 92 ) * 13 + - 88, 75 AS col2
----
1194
75

query I rowsort
SELECT ALL - COALESCE ( - + 86, 32, + 62 ) * + ( 82 ) * - 50
----
-352600

onlyif mysql # aggregate syntax: 
query I rowsort label-1970
SELECT DISTINCT 91 * MIN( - 37 )
----
-3367

skipif mysql # not compatible
query I rowsort label-1970
SELECT DISTINCT 91 * MIN ( - 37 )
----
-3367

query I rowsort
SELECT + COALESCE ( + 61, - + 92 )
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1972
SELECT 70 * 27 + - 6 + + 2 + - 34 * + 72 + - CAST( - CASE - 32 WHEN - - 46 THEN NULL ELSE - + 25 END AS SIGNED ) * - COUNT( ALL + CAST( + 70 AS SIGNED ) )
----
-537

skipif mysql # not compatible
query I rowsort label-1972
SELECT 70 * 27 + - 6 + + 2 + - 34 * + 72 + - CAST ( - CASE - 32 WHEN - - 46 THEN NULL ELSE - + 25 END AS INTEGER ) * - COUNT ( ALL + CAST ( + 70 AS INTEGER ) )
----
-537

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1973
SELECT + 38 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1973
SELECT + 38 - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + - 0 + + 33
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1975
SELECT ALL 98 DIV 83 * 87 + COALESCE ( + 30, + 74 - - 32 + - 23 * - 4 * 28, + 40 ) AS col2, + COUNT( * ) + + - 36 + 33 * + NULLIF ( 32, - MIN( - 87 ) * 47 )
----
117
1021

skipif mysql # not compatible
query II rowsort label-1975
SELECT ALL 98 / 83 * 87 + COALESCE ( + 30, + 74 - - 32 + - 23 * - 4 * 28, + 40 ) AS col2, + COUNT ( * ) + + - 36 + 33 * + NULLIF ( 32, - MIN ( - 87 ) * 47 )
----
117
1021

onlyif mysql # aggregate syntax: 
query I rowsort label-1976
SELECT + + COUNT( * ) + 88
----
89

skipif mysql # not compatible
query I rowsort label-1976
SELECT + + COUNT ( * ) + 88
----
89

query I rowsort
SELECT ALL - 14 - + + 38 + - 61
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-1978
SELECT - + COUNT( DISTINCT 70 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1978
SELECT - + COUNT ( DISTINCT 70 ) AS col2
----
-1

query I rowsort
SELECT ALL - ( + + 24 ) col1
----
-24

query I rowsort
SELECT + 90 + + + 17
----
107

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1981
SELECT ALL - ( 3 ) DIV - CAST( 85 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-1981
SELECT ALL - ( 3 ) / - CAST ( 85 AS INTEGER )
----
0

query I rowsort
SELECT + 4 + - ( 43 )
----
-39

query II rowsort
SELECT - 70 AS col1, 98 AS col2
----
-70
98

query II rowsort
SELECT ALL 92 col1, + 75
----
92
75

query I rowsort
SELECT + 57 * - 97
----
-5529

query I rowsort
SELECT - - 68 * - 1 * 87 * 13 * + 9 AS col1
----
-692172

onlyif mysql # aggregate syntax: 
query I rowsort label-1987
SELECT - 31 + 36 + COUNT( * ) * 24 AS col2
----
29

skipif mysql # not compatible
query I rowsort label-1987
SELECT - 31 + 36 + COUNT ( * ) * 24 AS col2
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1988
SELECT - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1988
SELECT - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - - 18 + + 14
----
32

query I rowsort
SELECT ALL - ( + 77 )
----
-77

query II rowsort
SELECT DISTINCT COALESCE ( + 49, + + 72, ( + + 79 ) ) AS col1, + 41
----
49
41

query I rowsort
SELECT - 82 * 92
----
-7544

query II rowsort
SELECT ( - 12 ) AS col0, 35 + - 22 - 19 * + 49 * + 77 AS col1
----
-12
-71674

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1994
SELECT ALL + 33 DIV + 37 * 47 + - - 90 + 95 + - + ( - - ( 21 ) ) * CAST( + - 49 AS SIGNED ) + NULLIF ( + 93, - 7 DIV - COUNT( * ) * - ( 98 ) ) AS col0, - 92
----
1307
-92

skipif mysql # not compatible
query II rowsort label-1994
SELECT ALL + 33 / + 37 * 47 + - - 90 + 95 + - + ( - - ( 21 ) ) * CAST ( + - 49 AS INTEGER ) + NULLIF ( + 93, - 7 / - COUNT ( * ) * - ( 98 ) ) AS col0, - 92
----
1307
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-1995
SELECT ALL - 50 DIV - + 88 + - 6
----
-6

skipif mysql # not compatible
query I rowsort label-1995
SELECT ALL - 50 / - + 88 + - 6
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1996
SELECT 1 * + 93 * - + MIN( + 69 ) + + 87 * 5 col2
----
-5982

skipif mysql # not compatible
query I rowsort label-1996
SELECT 1 * + 93 * - + MIN ( + 69 ) + + 87 * 5 col2
----
-5982

query I rowsort
SELECT DISTINCT + 17 * + 15 + - 35
----
220

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1998
SELECT - 84 DIV COUNT( ALL 36 ) + - CAST( + 53 AS SIGNED )
----
-137

skipif mysql # not compatible
query I rowsort label-1998
SELECT - 84 / COUNT ( ALL 36 ) + - CAST ( + 53 AS INTEGER )
----
-137

query I rowsort
SELECT + 96 * - - 28 + - 17 AS col0
----
2671

query I rowsort
SELECT - 87 * 96
----
-8352

onlyif mysql # aggregate syntax: 
query I rowsort label-2001
SELECT ALL - 18 * 54 * - 56 + - + 23 * - ( 34 ) * - COUNT( * )
----
53650

skipif mysql # not compatible
query I rowsort label-2001
SELECT ALL - 18 * 54 * - 56 + - + 23 * - ( 34 ) * - COUNT ( * )
----
53650

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2002
SELECT ( - COALESCE ( + + 19, + 93 * + COUNT( + CAST( NULL AS SIGNED ) ) * - COUNT( * ) ) ), 40 + + 7 AS col2
----
-19
47

skipif mysql # not compatible
query II rowsort label-2002
SELECT ( - COALESCE ( + + 19, + 93 * + COUNT ( + CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) ) ), 40 + + 7 AS col2
----
-19
47

query I rowsort
SELECT ALL + 71 AS col1
----
71

query I rowsort
SELECT - 92 + - 90 AS col1
----
-182

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2005
SELECT - 51 * + CAST( + + 80 AS SIGNED ) AS col0
----
-4080

skipif mysql # not compatible
query I rowsort label-2005
SELECT - 51 * + CAST ( + + 80 AS INTEGER ) AS col0
----
-4080

query I rowsort
SELECT ALL + 16 AS col0
----
16

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2007
SELECT NULLIF ( - + CAST( NULL AS DECIMAL ), - 51 + 39 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2007
SELECT NULLIF ( - + CAST ( NULL AS REAL ), - 51 + 39 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2008
SELECT 75 DIV 95 * NULLIF ( - 24, - + 89 ) + COUNT( - - NULLIF ( + 24, - - ( + 56 ) + - + 11 ) ) * 48
----
48

skipif mysql # not compatible
query I rowsort label-2008
SELECT 75 / 95 * NULLIF ( - 24, - + 89 ) + COUNT ( - - NULLIF ( + 24, - - ( + 56 ) + - + 11 ) ) * 48
----
48

query I rowsort
SELECT - 56 * + 2 col0
----
-112

onlyif mysql # aggregate syntax: 
query II rowsort label-2010
SELECT DISTINCT + 2 AS col0, + NULLIF ( + - 82, + COUNT( * ) ) AS col0
----
2
-82

skipif mysql # not compatible
query II rowsort label-2010
SELECT DISTINCT + 2 AS col0, + NULLIF ( + - 82, + COUNT ( * ) ) AS col0
----
2
-82

query I rowsort
SELECT DISTINCT + ( 50 ) AS col0
----
50

query II rowsort
SELECT + 53, + 23 AS col2
----
53
23

query I rowsort
SELECT - 86 AS col2
----
-86

query I rowsort
SELECT DISTINCT - + 60 * + 1 col1
----
-60

query I rowsort
SELECT - 32 * 16 AS col0
----
-512

query II rowsort
SELECT - 37 AS col0, - 84 * - 67
----
-37
5628

onlyif mysql # aggregate syntax: 
query I rowsort label-2017
SELECT - + COUNT( * ) - + 78
----
-79

skipif mysql # not compatible
query I rowsort label-2017
SELECT - + COUNT ( * ) - + 78
----
-79

query I rowsort
SELECT - ( + 79 ) AS col2
----
-79

query I rowsort
SELECT + + CASE 2 WHEN - + NULLIF ( + - 15, 62 ) / + 47 * + 13 * 60 * 97 * - 86 THEN + - 63 END * + 67
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2020
SELECT DISTINCT - NULLIF ( + CAST( NULL AS SIGNED ), + 7 * + 84 - + COUNT( ALL - - 68 ) + + - 80 + 40 * ( - CAST( NULL AS SIGNED ) ) * - 23 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2020
SELECT DISTINCT - NULLIF ( + CAST ( NULL AS INTEGER ), + 7 * + 84 - + COUNT ( ALL - - 68 ) + + - 80 + 40 * ( - CAST ( NULL AS INTEGER ) ) * - 23 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2021
SELECT ALL 65 + + 5 * + - CAST( - 13 AS SIGNED ) * + CAST( - - COUNT( * ) AS SIGNED ) * - 7 + - COALESCE ( - + 13, + SUM( + - 54 ) * 61 ) + - 17
----
-394

skipif mysql # not compatible
query I rowsort label-2021
SELECT ALL 65 + + 5 * + - CAST ( - 13 AS INTEGER ) * + CAST ( - - COUNT ( * ) AS INTEGER ) * - 7 + - COALESCE ( - + 13, + SUM ( + - 54 ) * 61 ) + - 17
----
-394

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2022
SELECT ALL COUNT( * ) + SUM( - CAST( + 61 AS SIGNED ) ) AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-2022
SELECT ALL COUNT ( * ) + SUM ( - CAST ( + 61 AS INTEGER ) ) AS col1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-2023
SELECT ALL COUNT( ALL - 64 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2023
SELECT ALL COUNT ( ALL - 64 ) AS col0
----
1

query I rowsort
SELECT + + 95 * + 82
----
7790

query I rowsort
SELECT ALL NULLIF ( 96, - 17 ) + - 71 AS col1
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2026
SELECT + 29 + - - NULLIF ( 20, CASE - NULLIF ( + 19, - 34 ) WHEN + 77 THEN 76 END * 66 + - 44 + + CAST( NULL AS SIGNED ) - 5 / + + 38 * - + 40 * + 26 ) * + 80, + 26 * - COALESCE ( - - CAST( NULL AS SIGNED ), - COUNT( * ) ) AS col1
----
1629
26

skipif mysql # not compatible
query II rowsort label-2026
SELECT + 29 + - - NULLIF ( 20, CASE - NULLIF ( + 19, - 34 ) WHEN + 77 THEN 76 END * 66 + - 44 + + CAST ( NULL AS INTEGER ) - 5 / + + 38 * - + 40 * + 26 ) * + 80, + 26 * - COALESCE ( - - CAST ( NULL AS INTEGER ), - COUNT ( * ) ) AS col1
----
1629
26

query I rowsort
SELECT + 5 + - + 96 + 41
----
-50

query II rowsort
SELECT ALL 17 * 7 AS col2, + 48 AS col2
----
119
48

query I rowsort
SELECT DISTINCT ( - 66 ) + + 53 * 30
----
1524

onlyif mysql # aggregate syntax: 
query I rowsort label-2030
SELECT + 81 + + - 79 * + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-2030
SELECT + 81 + + - 79 * + + COUNT ( * )
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-2031
SELECT ALL 11 DIV + 91 + - 45
----
-45

skipif mysql # not compatible
query I rowsort label-2031
SELECT ALL 11 / + 91 + - 45
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-2032
SELECT ALL - ( + + COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-2032
SELECT ALL - ( + + COUNT ( * ) )
----
-1

query I rowsort
SELECT DISTINCT + 88 + + + ( - - 39 )
----
127

query I rowsort
SELECT + 35 * 4 + - 19 AS col0
----
121

query I rowsort
SELECT 41 + 84
----
125

onlyif mysql # DIV for integer division: 
query I rowsort label-2036
SELECT ( + 0 ) DIV + 97 + ( + + 62 )
----
62

skipif mysql # not compatible
query I rowsort label-2036
SELECT ( + 0 ) / + 97 + ( + + 62 )
----
62

query I rowsort
SELECT ALL + 80 * - 22 * - 87 * + 9 AS col1
----
1378080

query I rowsort
SELECT DISTINCT - 18 AS col1
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-2039
SELECT DISTINCT ( - 83 ) DIV + 88 col1
----
0

skipif mysql # not compatible
query I rowsort label-2039
SELECT DISTINCT ( - 83 ) / + 88 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2040
SELECT ALL - COUNT( * ) * 58 * + + 92
----
-5336

skipif mysql # not compatible
query I rowsort label-2040
SELECT ALL - COUNT ( * ) * 58 * + + 92
----
-5336

query I rowsort
SELECT 71 * - - 58 - + 80
----
4038

onlyif mysql # DIV for integer division: 
query II rowsort label-2042
SELECT 35 * - 91 * + 88 AS col0, - 57 DIV 54 * + 78 AS col2
----
-280280
-78

skipif mysql # not compatible
query II rowsort label-2042
SELECT 35 * - 91 * + 88 AS col0, - 57 / 54 * + 78 AS col2
----
-280280
-78

query I rowsort
SELECT DISTINCT - 94
----
-94

query I rowsort
SELECT - 63 * CASE COALESCE ( - - 73, + 38 ) WHEN - 78 THEN 99 * 27 * 77 ELSE NULL END * - 19 * - 59
----
NULL

query I rowsort
SELECT ALL - + 2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2046
SELECT + ( ( + CASE - ( - - 96 ) WHEN 36 THEN - + 61 + + - 6 / + CASE + 70 WHEN 54 THEN NULL WHEN + MIN( 91 ) THEN NULL WHEN + - 45 THEN + 86 + + - 17 END - + AVG ( - ( 53 ) ) - + + COUNT( * ) END ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2046
SELECT + ( ( + CASE - ( - - 96 ) WHEN 36 THEN - + 61 + + - 6 / + CASE + 70 WHEN 54 THEN NULL WHEN + MIN ( 91 ) THEN NULL WHEN + - 45 THEN + 86 + + - 17 END - + AVG ( - ( 53 ) ) - + + COUNT ( * ) END ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2047
SELECT + 61 * 39 * COUNT( * ) + + 80 + - 34 * + - 87
----
5417

skipif mysql # not compatible
query I rowsort label-2047
SELECT + 61 * 39 * COUNT ( * ) + + 80 + - 34 * + - 87
----
5417

onlyif mysql # aggregate syntax: 
query I rowsort label-2048
SELECT COUNT( * ) * + 58
----
58

skipif mysql # not compatible
query I rowsort label-2048
SELECT COUNT ( * ) * + 58
----
58

query I rowsort
SELECT ALL - + 69 col0
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-2050
SELECT 92 + - 19 + - 42 + + - 99 * - - COUNT( * ), - 89 AS col2
----
-68
-89

skipif mysql # not compatible
query II rowsort label-2050
SELECT 92 + - 19 + - 42 + + - 99 * - - COUNT ( * ), - 89 AS col2
----
-68
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2051
SELECT - 65 * + 99 - 13 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2051
SELECT - 65 * + 99 - 13 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 94 col1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-2053
SELECT - - ( + + COUNT( * ) ) * - - COUNT( * ) - - COUNT( * ) + - COUNT( * ) + + 61 AS col0
----
62

skipif mysql # not compatible
query I rowsort label-2053
SELECT - - ( + + COUNT ( * ) ) * - - COUNT ( * ) - - COUNT ( * ) + - COUNT ( * ) + + 61 AS col0
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-2054
SELECT DISTINCT + MAX( + 61 ), 31 AS col2
----
61
31

skipif mysql # not compatible
query II rowsort label-2054
SELECT DISTINCT + MAX ( + 61 ), 31 AS col2
----
61
31

onlyif mysql # aggregate syntax: 
query II rowsort label-2055
SELECT 84 + + 39 AS col0, - CASE + COUNT( * ) WHEN - 22 THEN - AVG ( 8 ) + - COUNT( * ) ELSE NULL END
----
123
NULL

skipif mysql # not compatible
query II rowsort label-2055
SELECT 84 + + 39 AS col0, - CASE + COUNT ( * ) WHEN - 22 THEN - AVG ( 8 ) + - COUNT ( * ) ELSE NULL END
----
123
NULL

query I rowsort
SELECT ALL ( - - 14 ) + + - 48 AS col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-2057
SELECT 15 + + 6 + 74 + + - 52 - - - CASE 61 WHEN + COALESCE ( - 83, 27 + - + 13 ) THEN + 91 WHEN - - 54 THEN NULL END / - + ( + 98 ) / COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2057
SELECT 15 + + 6 + 74 + + - 52 - - - CASE 61 WHEN + COALESCE ( - 83, 27 + - + 13 ) THEN + 91 WHEN - - 54 THEN NULL END / - + ( + 98 ) / COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 80 * - + 78 + + 57 + 7 * + + 32 AS col0
----
6521

query I rowsort
SELECT ALL + 47 + + 58
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-2060
SELECT ALL + COUNT( * ) + + + 49 * + COUNT( * )
----
50

skipif mysql # not compatible
query I rowsort label-2060
SELECT ALL + COUNT ( * ) + + + 49 * + COUNT ( * )
----
50

query I rowsort
SELECT + 23 AS col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2062
SELECT NULLIF ( + SUM( + ( 6 ) ), - 91 + + 45 ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-2062
SELECT NULLIF ( + SUM ( + ( 6 ) ), - 91 + + 45 ) AS col2
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2063
SELECT AVG ( ALL 93 ) + + 43 - 13 * CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2063
SELECT AVG ( ALL 93 ) + + 43 - 13 * CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2064
SELECT - CASE - - COUNT( * ) WHEN - CAST( NULL AS SIGNED ) THEN 41 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2064
SELECT - CASE - - COUNT ( * ) WHEN - CAST ( NULL AS INTEGER ) THEN 41 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2065
SELECT COUNT( * ) * + 52
----
52

skipif mysql # not compatible
query I rowsort label-2065
SELECT COUNT ( * ) * + 52
----
52

query I rowsort
SELECT NULLIF ( + + 35, 29 + + 96 ) + 89 AS col1
----
124

query II rowsort
SELECT DISTINCT 28 AS col2, 23 AS col2
----
28
23

query I rowsort
SELECT DISTINCT ( 17 ) + + 55
----
72

query I rowsort
SELECT ALL 69 + 93 AS col0
----
162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2070
SELECT DISTINCT ( + CAST( 81 AS SIGNED ) ) - + COUNT( * ) DIV - - 57 * 12 * + - 68 AS col2
----
81

skipif mysql # not compatible
query I rowsort label-2070
SELECT DISTINCT ( + CAST ( 81 AS INTEGER ) ) - + COUNT ( * ) / - - 57 * 12 * + - 68 AS col2
----
81

query II rowsort
SELECT - 44 col2, - 84
----
-44
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-2072
SELECT NULLIF ( - 49, COUNT( * ) + + 61 + - SUM( DISTINCT - + 38 ) - + 8 / + 95 ) * + 20 * 35 col0
----
-34300

skipif mysql # not compatible
query I rowsort label-2072
SELECT NULLIF ( - 49, COUNT ( * ) + + 61 + - SUM ( DISTINCT - + 38 ) - + 8 / + 95 ) * + 20 * 35 col0
----
-34300

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

skipif mysql # not compatible
query I rowsort label-2073
SELECT COUNT ( * ) * + 3 AS col2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2074
SELECT - 31 * + + 72 + 60 DIV + NULLIF ( + + 96, - + NULLIF ( + 45, 83 ) * - 97 - 93 )
----
-2232

skipif mysql # not compatible
query I rowsort label-2074
SELECT - 31 * + + 72 + 60 / + NULLIF ( + + 96, - + NULLIF ( + 45, 83 ) * - 97 - 93 )
----
-2232

query I rowsort
SELECT DISTINCT 62 * + + 80 AS col2
----
4960

query I rowsort
SELECT ALL 79 * - 3 AS col2
----
-237

onlyif mysql # aggregate syntax: 
query I rowsort label-2077
SELECT ALL 56 - 35 + + COUNT( * ) - 85
----
-63

skipif mysql # not compatible
query I rowsort label-2077
SELECT ALL 56 - 35 + + COUNT ( * ) - 85
----
-63

query II rowsort
SELECT ALL - 41 AS col1, 70
----
-41
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2079
SELECT 76 + ( COUNT( * ) ) * - - COUNT( * ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-2079
SELECT 76 + ( COUNT ( * ) ) * - - COUNT ( * ) AS col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2080
SELECT + SUM( + + 63 ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-2080
SELECT + SUM ( + + 63 ) AS col1
----
63

query I rowsort
SELECT ALL - ( - - 90 )
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2082
SELECT + + 83 * 21 / - - 17 + + + ( - - 53 ) + - - ( + 24 ) * - - COUNT( * ) / + 58 + + 90 + + 32 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2082
SELECT + + 83 * 21 / - - 17 + + + ( - - 53 ) + - - ( + 24 ) * - - COUNT ( * ) / + 58 + + 90 + + 32 + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2083
SELECT - CAST( MIN( + 85 ) AS SIGNED ) * - 60 * - ( + 42 ) AS col2
----
-214200

skipif mysql # not compatible
query I rowsort label-2083
SELECT - CAST ( MIN ( + 85 ) AS INTEGER ) * - 60 * - ( + 42 ) AS col2
----
-214200

query II rowsort
SELECT 60 * ( + + 14 ) AS col1, 57 AS col0
----
840
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2085
SELECT - 93 + - + COUNT( * ) AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-2085
SELECT - 93 + - + COUNT ( * ) AS col2
----
-94

query II rowsort
SELECT + - 19 AS col1, - 90 + + 35
----
-19
-55

query I rowsort
SELECT + - 6
----
-6

query I rowsort
SELECT ALL + 42 * + 1
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2089
SELECT - 50 DIV + ( + + SUM( ALL + - 52 ) )
----
0

skipif mysql # not compatible
query I rowsort label-2089
SELECT - 50 / + ( + + SUM ( ALL + - 52 ) )
----
0

query I rowsort
SELECT + 72 AS col2
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-2091
SELECT ALL + + 55 + - + ( + - 56 ) col2, - COUNT( * ) AS col1
----
111
-1

skipif mysql # not compatible
query II rowsort label-2091
SELECT ALL + + 55 + - + ( + - 56 ) col2, - COUNT ( * ) AS col1
----
111
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2092
SELECT ALL - COUNT( * ) + - - 83 col0
----
82

skipif mysql # not compatible
query I rowsort label-2092
SELECT ALL - COUNT ( * ) + - - 83 col0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2093
SELECT ALL - 76 + CASE - 49 WHEN + COUNT( * ) + + 20 THEN - 9 / + + 9 + + 23 + 59 + + 47 + 2 END - ( + COALESCE ( - - COUNT( * ), - 99 + + + 0 + + - 19, + + 61 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2093
SELECT ALL - 76 + CASE - 49 WHEN + COUNT ( * ) + + 20 THEN - 9 / + + 9 + + 23 + 59 + + 47 + 2 END - ( + COALESCE ( - - COUNT ( * ), - 99 + + + 0 + + - 19, + + 61 ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2094
SELECT + CASE + 62 WHEN + 38 THEN 16 * + 24 WHEN + + ( + 30 ) * - 80 THEN - NULLIF ( + 52, + 47 ) ELSE NULL END / + + NULLIF ( 15, - 71 ) + - + COALESCE ( + 17, - + COUNT( * ) * - ( + CAST( - CASE - ( - - 49 ) WHEN 55 * - - 80 + + CAST( NULL AS SIGNED ) * - COUNT( * ) THEN + - CASE - ( + - COUNT( * ) ) WHEN - 27 - + AVG ( - - 48 ) THEN - 82 + + 67 ELSE + 86 * 30 + 31 END WHEN 9 * COUNT( * ) + - 2 + - 66 + 55 THEN NULL END AS SIGNED ) ) + - - 95, 1, + 67 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2094
SELECT + CASE + 62 WHEN + 38 THEN 16 * + 24 WHEN + + ( + 30 ) * - 80 THEN - NULLIF ( + 52, + 47 ) ELSE NULL END / + + NULLIF ( 15, - 71 ) + - + COALESCE ( + 17, - + COUNT ( * ) * - ( + CAST ( - CASE - ( - - 49 ) WHEN 55 * - - 80 + + CAST ( NULL AS INTEGER ) * - COUNT ( * ) THEN + - CASE - ( + - COUNT ( * ) ) WHEN - 27 - + AVG ( - - 48 ) THEN - 82 + + 67 ELSE + 86 * 30 + 31 END WHEN 9 * COUNT ( * ) + - 2 + - 66 + 55 THEN NULL END AS INTEGER ) ) + - - 95, 1, + 67 )
----
NULL

query I rowsort
SELECT DISTINCT - 50 AS col0
----
-50

query I rowsort
SELECT 9 - + - ( + 55 ) * + + ( + 75 ) * + 35 + - ( + 96 )
----
144288

query II rowsort
SELECT - 40 AS col1, 73
----
-40
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2098
SELECT ALL - - 75 + - COUNT( * ) DIV + 97 * + - 59
----
75

skipif mysql # not compatible
query I rowsort label-2098
SELECT ALL - - 75 + - COUNT ( * ) / + 97 * + - 59
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-2099
SELECT 41 AS col0, - CASE - - 20 WHEN 88 THEN + COUNT( * ) ELSE NULL END - + MAX( DISTINCT - ( + 67 ) ) / - 60 AS col0
----
41
NULL

skipif mysql # not compatible
query II rowsort label-2099
SELECT 41 AS col0, - CASE - - 20 WHEN 88 THEN + COUNT ( * ) ELSE NULL END - + MAX ( DISTINCT - ( + 67 ) ) / - 60 AS col0
----
41
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2100
SELECT - 66 * - COUNT( - - 53 ) * + + 79, - CAST( + 65 AS SIGNED ) * + 7 col2
----
5214
-455

skipif mysql # not compatible
query II rowsort label-2100
SELECT - 66 * - COUNT ( - - 53 ) * + + 79, - CAST ( + 65 AS INTEGER ) * + 7 col2
----
5214
-455

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

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

query I rowsort
SELECT DISTINCT + 97 * COALESCE ( 39, 23 )
----
3783

query I rowsort
SELECT ALL 46 * + + 69
----
3174

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2104
SELECT ALL COUNT( ALL + 55 ) AS col1, - CAST( NULL AS SIGNED )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-2104
SELECT ALL COUNT ( ALL + 55 ) AS col1, - CAST ( NULL AS INTEGER )
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2105
SELECT - COUNT( * ) + - 56 AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-2105
SELECT - COUNT ( * ) + - 56 AS col1
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2106
SELECT ALL NULLIF ( + 3, CAST( NULL AS SIGNED ) )
----
3

skipif mysql # not compatible
query I rowsort label-2106
SELECT ALL NULLIF ( + 3, CAST ( NULL AS INTEGER ) )
----
3

query I rowsort
SELECT - 92 + 27 + + 40 AS col1
----
-25

query I rowsort
SELECT 67 col1
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-2109
SELECT + NULLIF ( + - 31, 65 + + - 31 * - COALESCE ( - - COALESCE ( - COUNT( * ), - MIN( DISTINCT - 77 ) + - + COUNT( * ) ), - 38 / 12 / - 10 ) ) + + + 8 AS col1, - 43 * - COALESCE ( + - 88, 43 )
----
-23
-3784

skipif mysql # not compatible
query II rowsort label-2109
SELECT + NULLIF ( + - 31, 65 + + - 31 * - COALESCE ( - - COALESCE ( - COUNT ( * ), - MIN ( DISTINCT - 77 ) + - + COUNT ( * ) ), - 38 / 12 / - 10 ) ) + + + 8 AS col1, - 43 * - COALESCE ( + - 88, 43 )
----
-23
-3784

query I rowsort
SELECT ALL + 96 col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2111
SELECT + CASE - COALESCE ( + ( + 69 ), - 57 / ( 83 ) + + - 47 + + 27 / COUNT( * ) * - - 84 + - COUNT( * ) / COALESCE ( - 82, - 63, - 88 ), - 77 ) WHEN + + COUNT( * ) + + 86 THEN + 28 + 97 END * - + 76 / - 68 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2111
SELECT + CASE - COALESCE ( + ( + 69 ), - 57 / ( 83 ) + + - 47 + + 27 / COUNT ( * ) * - - 84 + - COUNT ( * ) / COALESCE ( - 82, - 63, - 88 ), - 77 ) WHEN + + COUNT ( * ) + + 86 THEN + 28 + 97 END * - + 76 / - 68 AS col1
----
NULL

query I rowsort
SELECT ALL + 41 AS col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2113
SELECT + SUM( ALL - 60 ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-2113
SELECT + SUM ( ALL - 60 ) AS col0
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2114
SELECT + 55 * - - SUM( - CAST( + 28 AS SIGNED ) ) AS col1, - 49
----
-1540
-49

skipif mysql # not compatible
query II rowsort label-2114
SELECT + 55 * - - SUM ( - CAST ( + 28 AS INTEGER ) ) AS col1, - 49
----
-1540
-49

query I rowsort
SELECT + 89 * + + 8 + + 13 - 60 * - 84 AS col1
----
5765

onlyif mysql # DIV for integer division: 
query I rowsort label-2116
SELECT - COALESCE ( 66, + 70 * - + 81 DIV + ( 5 ) + ( 6 ) ) * 52
----
-3432

skipif mysql # not compatible
query I rowsort label-2116
SELECT - COALESCE ( 66, + 70 * - + 81 / + ( 5 ) + ( 6 ) ) * 52
----
-3432

onlyif mysql # aggregate syntax: 
query I rowsort label-2117
SELECT + 54 * - 31 * - + 76 * + - CASE + - 68 WHEN + ( + 74 ) * MIN( DISTINCT 13 ) THEN NULL WHEN + + 1 THEN NULL ELSE + 5 * - + 92 END
----
58523040

skipif mysql # not compatible
query I rowsort label-2117
SELECT + 54 * - 31 * - + 76 * + - CASE + - 68 WHEN + ( + 74 ) * MIN ( DISTINCT 13 ) THEN NULL WHEN + + 1 THEN NULL ELSE + 5 * - + 92 END
----
58523040

onlyif mysql # aggregate syntax: 
query I rowsort label-2118
SELECT ALL 90 * + 17 + ( COUNT( * ) )
----
1531

skipif mysql # not compatible
query I rowsort label-2118
SELECT ALL 90 * + 17 + ( COUNT ( * ) )
----
1531

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2119
SELECT + + CAST( NULL AS SIGNED ) / - 12 - - 92
----
NULL

skipif mysql # not compatible
query I rowsort label-2119
SELECT + + CAST ( NULL AS INTEGER ) / - 12 - - 92
----
NULL

query I rowsort
SELECT + + 15 + 84 AS col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2121
SELECT + SUM( ALL - 57 ) AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-2121
SELECT + SUM ( ALL - 57 ) AS col2
----
-57

query I rowsort
SELECT + - 40 * + 94 + 82 + + 11 AS col0
----
-3667

onlyif mysql # aggregate syntax: 
query I rowsort label-2123
SELECT ALL - 28 * + ( + + COUNT( * ) ) * - - COUNT( ALL - + 46 ) + 17 + - 57 + + - 7
----
-75

skipif mysql # not compatible
query I rowsort label-2123
SELECT ALL - 28 * + ( + + COUNT ( * ) ) * - - COUNT ( ALL - + 46 ) + 17 + - 57 + + - 7
----
-75

query I rowsort
SELECT ALL 98 * + 72 + 44 + 37 AS col0
----
7137

query I rowsort
SELECT ALL + + NULLIF ( - + 86, - 82 + - 95 )
----
-86

query I rowsort
SELECT + 70 + - ( - + 50 ) col0
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-2127
SELECT + 10 + + COUNT( * ) + 10
----
21

skipif mysql # not compatible
query I rowsort label-2127
SELECT + 10 + + COUNT ( * ) + 10
----
21

query I rowsort
SELECT DISTINCT + + 49 col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2129
SELECT ALL - - 7 * - - SUM( + ( + 94 ) ) + + - 6
----
652

skipif mysql # not compatible
query I rowsort label-2129
SELECT ALL - - 7 * - - SUM ( + ( + 94 ) ) + + - 6
----
652

query I rowsort
SELECT - + 8 * 25
----
-200

query I rowsort
SELECT + + 36 AS col2
----
36

query I rowsort
SELECT + - 39 + + 17 + - 5 + - 95 * ( COALESCE ( + 75, 56 ) ) + - 52 AS col0
----
-7204

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2133
SELECT - - 13 * - + 59 - - COUNT( * ) * + + 0 DIV + 11 - 83 * - + 49
----
3300

skipif mysql # not compatible
query I rowsort label-2133
SELECT - - 13 * - + 59 - - COUNT ( * ) * + + 0 / + 11 - 83 * - + 49
----
3300

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2134
SELECT + - 47 * - CAST( 44 AS SIGNED ) * - - ( 38 ) + + - 98 DIV - 94 + - 81 + - 27 + 49 AS col1
----
78526

skipif mysql # not compatible
query I rowsort label-2134
SELECT + - 47 * - CAST ( 44 AS INTEGER ) * - - ( 38 ) + + - 98 / - 94 + - 81 + - 27 + 49 AS col1
----
78526

query I rowsort
SELECT - + 16 AS col1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-2136
SELECT ALL + MAX( ALL + 7 )
----
7

skipif mysql # not compatible
query I rowsort label-2136
SELECT ALL + MAX ( ALL + 7 )
----
7

query I rowsort
SELECT DISTINCT 23 - + 49
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-2138
SELECT ALL NULLIF ( MAX( DISTINCT + 51 ), 60 * - 51 )
----
51

skipif mysql # not compatible
query I rowsort label-2138
SELECT ALL NULLIF ( MAX ( DISTINCT + 51 ), 60 * - 51 )
----
51

query II rowsort
SELECT - 52 + + 56 - - 46, 98 AS col2
----
50
98

query I rowsort
SELECT ALL 58 * - - 7 * - 36 * + 10
----
-146160

onlyif mysql # aggregate syntax: 
query II rowsort label-2141
SELECT DISTINCT ( - 67 ) * + NULLIF ( 32, + 58 ) col0, MAX( - - 73 )
----
-2144
73

skipif mysql # not compatible
query II rowsort label-2141
SELECT DISTINCT ( - 67 ) * + NULLIF ( 32, + 58 ) col0, MAX ( - - 73 )
----
-2144
73

query I rowsort
SELECT + 40 * - 13
----
-520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2143
SELECT + 16 / 20 * - CASE 86 WHEN 47 * 67 * 48 / CAST( - 60 AS SIGNED ) / CASE - 17 WHEN + COUNT( DISTINCT - 17 ) * + 11 + + 3 + - + MIN( 70 ) THEN NULL WHEN + SUM( ALL + 7 ) + + - 70 + 50 * + 24 * + + CAST( NULL AS SIGNED ) THEN + 65 ELSE NULL END * + - COUNT( * ) - - 77 * - 55 THEN + + 18 * 2 * - + NULLIF ( + - 4, - + 48 + + 43 - - - 39 * - - 34 ) + + - ( 13 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2143
SELECT + 16 / 20 * - CASE 86 WHEN 47 * 67 * 48 / CAST ( - 60 AS INTEGER ) / CASE - 17 WHEN + COUNT ( DISTINCT - 17 ) * + 11 + + 3 + - + MIN ( 70 ) THEN NULL WHEN + SUM ( ALL + 7 ) + + - 70 + 50 * + 24 * + + CAST ( NULL AS INTEGER ) THEN + 65 ELSE NULL END * + - COUNT ( * ) - - 77 * - 55 THEN + + 18 * 2 * - + NULLIF ( + - 4, - + 48 + + 43 - - - 39 * - - 34 ) + + - ( 13 ) END AS col2
----
NULL

query I rowsort
SELECT ALL ( 66 )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2145
SELECT - NULLIF ( NULLIF ( - + SUM( 53 ), + 93 ), - 84 + - 97 ) * + 9 * + 72 AS col1
----
34344

skipif mysql # not compatible
query I rowsort label-2145
SELECT - NULLIF ( NULLIF ( - + SUM ( 53 ), + 93 ), - 84 + - 97 ) * + 9 * + 72 AS col1
----
34344

onlyif mysql # aggregate syntax: 
query I rowsort label-2146
SELECT ALL ( + COUNT( DISTINCT 75 ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-2146
SELECT ALL ( + COUNT ( DISTINCT 75 ) ) col0
----
1

query II rowsort
SELECT 15 col2, - 84 + + 25 col1
----
15
-59

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2148
SELECT DISTINCT CASE ( + 29 ) WHEN + 31 THEN NULL WHEN - NULLIF ( + COUNT( * ), - 57 ) * + + COUNT( * ) + + SUM( DISTINCT + - CAST( NULL AS DECIMAL ) ) * - - 64 + 89 + + 80 * - 71 * - - 6 THEN COUNT( * ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2148
SELECT DISTINCT CASE ( + 29 ) WHEN + 31 THEN NULL WHEN - NULLIF ( + COUNT ( * ), - 57 ) * + + COUNT ( * ) + + SUM ( DISTINCT + - CAST ( NULL AS REAL ) ) * - - 64 + 89 + + 80 * - 71 * - - 6 THEN COUNT ( * ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2149
SELECT ALL - COUNT( * ) * + 45 * - 41 col2
----
1845

skipif mysql # not compatible
query I rowsort label-2149
SELECT ALL - COUNT ( * ) * + 45 * - 41 col2
----
1845

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2150
SELECT ALL CAST( 70 AS SIGNED ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-2150
SELECT ALL CAST ( 70 AS INTEGER ) AS col2
----
70

query II rowsort
SELECT - 60 AS col0, - 27 * + 25 + + 51 AS col0
----
-60
-624

query I rowsort
SELECT ALL ( - 71 ) col2
----
-71

query I rowsort
SELECT DISTINCT - 67 * - - 22 AS col2
----
-1474

onlyif mysql # aggregate syntax: 
query I rowsort label-2154
SELECT - 32 * + + COUNT( * )
----
-32

skipif mysql # not compatible
query I rowsort label-2154
SELECT - 32 * + + COUNT ( * )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-2155
SELECT COUNT( * ) * + + ( COUNT( * ) ) + ( - + 54 ) * - 92 + - COUNT( * ) + - 12 * 63
----
4212

skipif mysql # not compatible
query I rowsort label-2155
SELECT COUNT ( * ) * + + ( COUNT ( * ) ) + ( - + 54 ) * - 92 + - COUNT ( * ) + - 12 * 63
----
4212

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2156
SELECT CAST( + 77 AS SIGNED ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-2156
SELECT CAST ( + 77 AS INTEGER ) AS col0
----
77

query I rowsort
SELECT + 26 + 39
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-2158
SELECT DISTINCT 9 DIV + 38 + 73
----
73

skipif mysql # not compatible
query I rowsort label-2158
SELECT DISTINCT 9 / + 38 + 73
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2159
SELECT - 96 DIV + COUNT( * ) AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-2159
SELECT - 96 / + COUNT ( * ) AS col2
----
-96

query I rowsort
SELECT ALL + 59 AS col0
----
59

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2161
SELECT CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2161
SELECT CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2162
SELECT ALL + 56 DIV + NULLIF ( COUNT( * ), 88 ) + + 36
----
92

skipif mysql # not compatible
query I rowsort label-2162
SELECT ALL + 56 / + NULLIF ( COUNT ( * ), 88 ) + + 36
----
92

query I rowsort
SELECT - 90 + - 54 AS col1
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-2164
SELECT DISTINCT + ( + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-2164
SELECT DISTINCT + ( + COUNT ( * ) )
----
1

query I rowsort
SELECT 50 * 41 + - 37 AS col2
----
2013

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2166
SELECT - 9 DIV COUNT( * ) - + 49
----
-58

skipif mysql # not compatible
query I rowsort label-2166
SELECT - 9 / COUNT ( * ) - + 49
----
-58

query I rowsort
SELECT ( + 17 ) AS col0
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2168
SELECT ALL COUNT( * ) DIV + 38
----
0

skipif mysql # not compatible
query I rowsort label-2168
SELECT ALL COUNT ( * ) / + 38
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2169
SELECT - 30 DIV + 7
----
-4

skipif mysql # not compatible
query I rowsort label-2169
SELECT - 30 / + 7
----
-4

query I rowsort
SELECT ( + 79 )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2171
SELECT + NULLIF ( ( 80 ), + COUNT( * ) ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-2171
SELECT + NULLIF ( ( 80 ), + COUNT ( * ) ) AS col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2172
SELECT + 12 + + NULLIF ( 44 + 5, + COUNT( * ) ) * - 92
----
-4496

skipif mysql # not compatible
query I rowsort label-2172
SELECT + 12 + + NULLIF ( 44 + 5, + COUNT ( * ) ) * - 92
----
-4496

query I rowsort
SELECT ALL 18 * 79 AS col0
----
1422

query I rowsort
SELECT ALL + 84 AS col0
----
84

query I rowsort
SELECT + CASE - 43 WHEN + 39 THEN NULL ELSE 42 END AS col2
----
42

query I rowsort
SELECT ALL + CASE WHEN 68 IN ( + 31 ) THEN - 91 ELSE - 17 END AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2177
SELECT + ( + MAX( ALL 16 ) ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-2177
SELECT + ( + MAX ( ALL 16 ) ) AS col0
----
16

query I rowsort
SELECT DISTINCT - 97
----
-97

query I rowsort
SELECT ALL 82 * 59
----
4838

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2180
SELECT DISTINCT 5 - COUNT( * ) DIV COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-2180
SELECT DISTINCT 5 - COUNT ( * ) / COUNT ( * )
----
4

query I rowsort
SELECT ALL 17 * - 45 AS col0
----
-765

query I rowsort
SELECT DISTINCT 75 AS col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2183
SELECT 25 * COUNT( * ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-2183
SELECT 25 * COUNT ( * ) AS col2
----
25

query I rowsort
SELECT 61 * 59
----
3599

query I rowsort
SELECT NULLIF ( - ( 62 ), 78 * + 18 ) - + 4 * 80
----
-382

query I rowsort
SELECT 73 * + 0
----
0

query I rowsort
SELECT DISTINCT 41 AS col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2188
SELECT ALL - 25 * NULLIF ( 8, CASE ( - 16 ) WHEN COUNT( * ) + + COUNT( 72 + + 56 ) * - 13 THEN NULL WHEN + 98 + 44 THEN ( 56 ) ELSE 95 END * COUNT( 64 ) - - COUNT( 24 + + 12 ) * 74 )
----
-200

skipif mysql # not compatible
query I rowsort label-2188
SELECT ALL - 25 * NULLIF ( 8, CASE ( - 16 ) WHEN COUNT ( * ) + + COUNT ( 72 + + 56 ) * - 13 THEN NULL WHEN + 98 + 44 THEN ( 56 ) ELSE 95 END * COUNT ( 64 ) - - COUNT ( 24 + + 12 ) * 74 )
----
-200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2189
SELECT ALL 68 * - CASE 85 WHEN - 80 - - 32 * - CAST( NULL AS SIGNED ) THEN + COUNT( * ) WHEN + 54 * - 69 + - 85 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2189
SELECT ALL 68 * - CASE 85 WHEN - 80 - - 32 * - CAST ( NULL AS INTEGER ) THEN + COUNT ( * ) WHEN + 54 * - 69 + - 85 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT ALL - 62 + 40
----
-22

query I rowsort
SELECT 79 - 0 AS col1
----
79

query I rowsort
SELECT DISTINCT 3 * 15 col2
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2193
SELECT DISTINCT 62 + - ( - CAST( NULL AS SIGNED ) + + 2 * + COALESCE ( 59 / + 78, 51 ) ) / + 10 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2193
SELECT DISTINCT 62 + - ( - CAST ( NULL AS INTEGER ) + + 2 * + COALESCE ( 59 / + 78, 51 ) ) / + 10 AS col1
----
NULL

query I rowsort
SELECT 69 + + 90
----
159

query I rowsort
SELECT 76 * 89 col0
----
6764

query I rowsort
SELECT ( + 56 ) + - 92
----
-36

query I rowsort
SELECT 14 - - 10
----
24

query I rowsort
SELECT ALL 70 col0
----
70

query I rowsort
SELECT - + 12 AS col2
----
-12

query I rowsort
SELECT ALL + COALESCE ( 46, + 83 ) + 43 AS col2
----
89

query I rowsort
SELECT - + 58
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2202
SELECT ALL - 13 + - CAST( - 74 + + 84 AS SIGNED ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-2202
SELECT ALL - 13 + - CAST ( - 74 + + 84 AS INTEGER ) AS col2
----
-23

query I rowsort
SELECT ALL - - 86
----
86

query I rowsort
SELECT + 64 * + 91 + + ( 9 )
----
5833

onlyif mysql # aggregate syntax: 
query I rowsort label-2205
SELECT ALL - 63 * COUNT( * ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-2205
SELECT ALL - 63 * COUNT ( * ) AS col0
----
-63

query I rowsort
SELECT ALL - 52 + - 57 col0
----
-109

query I rowsort
SELECT - 63 col1
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2208
SELECT + CAST( + AVG ( 14 ) AS SIGNED ) AS col0
----
14

skipif mysql # not compatible
query I rowsort label-2208
SELECT + CAST ( + AVG ( 14 ) AS INTEGER ) AS col0
----
14

query I rowsort
SELECT + 96 * 75
----
7200

onlyif mysql # DIV for integer division: 
query I rowsort label-2210
SELECT 4 DIV + 32 col0
----
0

skipif mysql # not compatible
query I rowsort label-2210
SELECT 4 / + 32 col0
----
0

query I rowsort
SELECT CASE + 30 WHEN 21 * + 28 THEN NULL WHEN + 70 + 9 * 58 THEN - 13 END
----
NULL

query I rowsort
SELECT + + 7
----
7

query I rowsort
SELECT ALL - - 88
----
88

query I rowsort
SELECT DISTINCT + ( 90 ) - - 34 * - 14 col2
----
-386

onlyif mysql # aggregate syntax: 
query I rowsort label-2215
SELECT 53 * COUNT( * )
----
53

skipif mysql # not compatible
query I rowsort label-2215
SELECT 53 * COUNT ( * )
----
53

query I rowsort
SELECT ALL - - 72
----
72

query I rowsort
SELECT - - 75 * 6 - - ( 65 + - 46 ) col1
----
469

query I rowsort
SELECT DISTINCT - + 11
----
-11

query I rowsort
SELECT DISTINCT - + 94
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-2220
SELECT COUNT( * ) * + 25 AS col2
----
25

skipif mysql # not compatible
query I rowsort label-2220
SELECT COUNT ( * ) * + 25 AS col2
----
25

query I rowsort
SELECT + ( 48 ) + + 19 AS col0
----
67

query I rowsort
SELECT - 97 * - 81 * - 20 + + 50
----
-157090

onlyif mysql # aggregate syntax: 
query I rowsort label-2223
SELECT 56 * - ( 7 ) + - 72 * CASE - NULLIF ( + 0, - 76 + ( - ( - 50 ) + 8 ) ) / ( 50 ) WHEN - MAX( - 71 ) THEN + 0 * 36 + 1 WHEN 79 * 39 THEN CASE 83 WHEN 73 * ( + 21 ) THEN 29 / + 44 END END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2223
SELECT 56 * - ( 7 ) + - 72 * CASE - NULLIF ( + 0, - 76 + ( - ( - 50 ) + 8 ) ) / ( 50 ) WHEN - MAX ( - 71 ) THEN + 0 * 36 + 1 WHEN 79 * 39 THEN CASE 83 WHEN 73 * ( + 21 ) THEN 29 / + 44 END END col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2224
SELECT + NULLIF ( - - NULLIF ( + CAST( 41 AS SIGNED ), + CAST( + COUNT( * ) AS DECIMAL ) ), - 47 ) * ( ( 79 ) ) - 64
----
3175

skipif mysql # not compatible
query I rowsort label-2224
SELECT + NULLIF ( - - NULLIF ( + CAST ( 41 AS INTEGER ), + CAST ( + COUNT ( * ) AS REAL ) ), - 47 ) * ( ( 79 ) ) - 64
----
3175

query I rowsort
SELECT ALL 63 * - 69 * 51 AS col0
----
-221697

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2226
SELECT 54 + - CAST( - CAST( + 6 AS SIGNED ) AS SIGNED ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-2226
SELECT 54 + - CAST ( - CAST ( + 6 AS INTEGER ) AS INTEGER ) AS col1
----
60

query I rowsort
SELECT ALL 36 col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2228
SELECT ALL COUNT( + 32 ) + 40
----
41

skipif mysql # not compatible
query I rowsort label-2228
SELECT ALL COUNT ( + 32 ) + 40
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2229
SELECT ( + - 93 ) + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2229
SELECT ( + - 93 ) + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL - 66 + + 3 + + 37
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2231
SELECT MAX( DISTINCT 28 ) + 44 DIV CAST( COUNT( * ) AS SIGNED )
----
72

skipif mysql # not compatible
query I rowsort label-2231
SELECT MAX ( DISTINCT 28 ) + 44 / CAST ( COUNT ( * ) AS INTEGER )
----
72

query I rowsort
SELECT DISTINCT 62 + + CASE 2 WHEN 17 / 78 THEN 32 WHEN + 13 THEN NULL WHEN 76 THEN 65 END + ( - 98 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2233
SELECT 14 + - 31 DIV 2 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2233
SELECT 14 + - 31 / 2 AS col1
----
-1

query I rowsort
SELECT ALL 61 + 63 AS col0
----
124

query I rowsort
SELECT 78 col1
----
78

query I rowsort
SELECT ALL - - 21 + + 47 AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2237
SELECT - CASE - 74 WHEN - 17 + - COUNT( ALL + 39 - 40 ) * 21 THEN + 10 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2237
SELECT - CASE - 74 WHEN - 17 + - COUNT ( ALL + 39 - 40 ) * 21 THEN + 10 END AS col2
----
NULL

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

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

query I rowsort
SELECT 50 + + 43 col0
----
93

query I rowsort
SELECT ALL - 23 - 88 AS col2
----
-111

query I rowsort
SELECT + 95 * + 70 + + 75 + 31 AS col0
----
6756

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2242
SELECT - + 79 DIV + COUNT( * ) - + 4
----
-83

skipif mysql # not compatible
query I rowsort label-2242
SELECT - + 79 / + COUNT ( * ) - + 4
----
-83

query I rowsort
SELECT 88 * + + 23 * 35 AS col2
----
70840

query I rowsort
SELECT COALESCE ( - - 44, 51 ) col0
----
44

query I rowsort
SELECT - - 60 + - 97 AS col1
----
-37

query I rowsort
SELECT - + 2 * - 33 + + 21
----
87

query I rowsort
SELECT ALL + + 0 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2248
SELECT - - 14 * CAST( NULL AS SIGNED ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2248
SELECT - - 14 * CAST ( NULL AS INTEGER ) + COUNT ( * )
----
NULL

query I rowsort
SELECT + ( ( + 83 ) )
----
83

query I rowsort
SELECT DISTINCT + - 61 * 3 + - 70 AS col1
----
-253

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2251
SELECT + + COALESCE ( - 91, CAST( NULL AS SIGNED ), 12 ) * + 7
----
-637

skipif mysql # not compatible
query I rowsort label-2251
SELECT + + COALESCE ( - 91, CAST ( NULL AS INTEGER ), 12 ) * + 7
----
-637

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2252
SELECT - CAST( + 19 AS SIGNED ) * + COALESCE ( + 49, ( + 61 ), - 2 )
----
-931

skipif mysql # not compatible
query I rowsort label-2252
SELECT - CAST ( + 19 AS INTEGER ) * + COALESCE ( + 49, ( + 61 ), - 2 )
----
-931

query I rowsort
SELECT - COALESCE ( + 39, - 17 + + 81 * - 47 ) + 59 * 23 AS col1
----
1318

onlyif mysql # aggregate syntax: 
query I rowsort label-2254
SELECT DISTINCT + 52 * - + CASE + - 22 WHEN 31 THEN NULLIF ( 95, + 5 ) * - COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2254
SELECT DISTINCT + 52 * - + CASE + - 22 WHEN 31 THEN NULLIF ( 95, + 5 ) * - COUNT ( * ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2255
SELECT ALL + 9 AS col1, COUNT( * ) * - - 17
----
9
17

skipif mysql # not compatible
query II rowsort label-2255
SELECT ALL + 9 AS col1, COUNT ( * ) * - - 17
----
9
17

query I rowsort
SELECT - 99 + + 83 + 22 col1
----
6

query I rowsort
SELECT + 81 col2
----
81

query I rowsort
SELECT DISTINCT + 41 AS col0
----
41

query I rowsort
SELECT DISTINCT - 80 + 29 AS col1
----
-51

query II rowsort
SELECT - 92 AS col0, + 7 AS col0
----
-92
7

query I rowsort
SELECT - 10 * 0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2262
SELECT - COUNT( * ) AS col2, + 17 + + + COUNT( * ) + + 0 AS col2
----
-1
18

skipif mysql # not compatible
query II rowsort label-2262
SELECT - COUNT ( * ) AS col2, + 17 + + + COUNT ( * ) + + 0 AS col2
----
-1
18

query I rowsort
SELECT ALL - 62 + + 24 AS col0
----
-38

query I rowsort
SELECT - 27 - + 32 AS col1
----
-59

query I rowsort
SELECT ALL - 90 * + 13 AS col0
----
-1170

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2266
SELECT - CASE 19 WHEN + CAST( NULL AS DECIMAL ) * - 38 THEN 99 * 17 END + - 33 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2266
SELECT - CASE 19 WHEN + CAST ( NULL AS REAL ) * - 38 THEN 99 * 17 END + - 33 AS col2
----
NULL

query I rowsort
SELECT - 59 col2
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2268
SELECT - 56 + + 99 + + + 68 + 57 * ( - 76 * - CAST( ( 86 ) AS SIGNED ) ) AS col1
----
372663

skipif mysql # not compatible
query I rowsort label-2268
SELECT - 56 + + 99 + + + 68 + 57 * ( - 76 * - CAST ( ( 86 ) AS INTEGER ) ) AS col1
----
372663

query I rowsort
SELECT DISTINCT ( - + 19 )
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-2270
SELECT + + 58 + - COUNT( * ) * - 49 + 88 * 6 AS col1
----
635

skipif mysql # not compatible
query I rowsort label-2270
SELECT + + 58 + - COUNT ( * ) * - 49 + 88 * 6 AS col1
----
635

query I rowsort
SELECT - 51 * 1 AS col2
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2272
SELECT + NULLIF ( + 8, 25 ) * CAST( + CAST( COUNT( * ) AS SIGNED ) * - NULLIF ( - 14, 63 * + CASE 27 WHEN 39 THEN 96 END ) AS SIGNED ) AS col1
----
112

skipif mysql # not compatible
query I rowsort label-2272
SELECT + NULLIF ( + 8, 25 ) * CAST ( + CAST ( COUNT ( * ) AS INTEGER ) * - NULLIF ( - 14, 63 * + CASE 27 WHEN 39 THEN 96 END ) AS INTEGER ) AS col1
----
112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2273
SELECT - 65 + - + CASE + 19 WHEN + 69 + NULLIF ( 65, ( NULLIF ( 11, CAST( 79 AS SIGNED ) ) ) - + AVG ( DISTINCT 44 ) ) THEN NULL WHEN - 24 THEN NULL ELSE + 66 END / CASE + 23 WHEN ( - 72 ) THEN 94 * 19 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2273
SELECT - 65 + - + CASE + 19 WHEN + 69 + NULLIF ( 65, ( NULLIF ( 11, CAST ( 79 AS INTEGER ) ) ) - + AVG ( DISTINCT 44 ) ) THEN NULL WHEN - 24 THEN NULL ELSE + 66 END / CASE + 23 WHEN ( - 72 ) THEN 94 * 19 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2274
SELECT ( + + CAST( + - CAST( - MIN( - 41 ) AS SIGNED ) AS SIGNED ) )
----
-41

skipif mysql # not compatible
query I rowsort label-2274
SELECT ( + + CAST ( + - CAST ( - MIN ( - 41 ) AS INTEGER ) AS INTEGER ) )
----
-41

query II rowsort
SELECT 65 col1, 48 col1
----
65
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2276
SELECT - CASE - 53 WHEN - 17 THEN 10 + + 99 / + COUNT( ALL 2 * CAST( NULL AS SIGNED ) ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2276
SELECT - CASE - 53 WHEN - 17 THEN 10 + + 99 / + COUNT ( ALL 2 * CAST ( NULL AS INTEGER ) ) END AS col2
----
NULL

query I rowsort
SELECT + COALESCE ( - 20, - 77 + + 5 ) - - 8 * + ( 92 )
----
716

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2278
SELECT + - COUNT( + 46 ) * 3 + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2278
SELECT + - COUNT ( + 46 ) * 3 + + CAST ( NULL AS REAL )
----
NULL

query II rowsort
SELECT DISTINCT 54, ( - 80 ) AS col1
----
54
-80

query I rowsort
SELECT ALL - ( + - 66 ) AS col0
----
66

query II rowsort
SELECT + + 21, 82 + + 47 AS col1
----
21
129

onlyif mysql # DIV for integer division: 
query I rowsort label-2282
SELECT + - 31 DIV ( + + ( - 3 ) ) * 18 col2
----
180

skipif mysql # not compatible
query I rowsort label-2282
SELECT + - 31 / ( + + ( - 3 ) ) * 18 col2
----
180

query I rowsort
SELECT ALL 54 * 63 AS col2
----
3402

onlyif mysql # aggregate syntax: 
query I rowsort label-2284
SELECT + COUNT( * ) * 82 + - 94
----
-12

skipif mysql # not compatible
query I rowsort label-2284
SELECT + COUNT ( * ) * 82 + - 94
----
-12

query I rowsort
SELECT ALL 93 * + 33
----
3069

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2286
SELECT - 76 * + 1 + + - 52 + - CAST( NULL AS SIGNED ) * 42 * - 5 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2286
SELECT - 76 * + 1 + + - 52 + - CAST ( NULL AS INTEGER ) * 42 * - 5 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2287
SELECT + 81 DIV - + NULLIF ( 71, 39 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2287
SELECT + 81 / - + NULLIF ( 71, 39 ) AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2288
SELECT - 50 DIV - + 43
----
1

skipif mysql # not compatible
query I rowsort label-2288
SELECT - 50 / - + 43
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2289
SELECT + COUNT( ALL - 47 )
----
1

skipif mysql # not compatible
query I rowsort label-2289
SELECT + COUNT ( ALL - 47 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2290
SELECT + 94, COUNT( * ) AS col0
----
94
1

skipif mysql # not compatible
query II rowsort label-2290
SELECT + 94, COUNT ( * ) AS col0
----
94
1

query I rowsort
SELECT + + 36 col2
----
36

query I rowsort
SELECT ALL + 83 AS col1
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2293
SELECT ALL CAST( 20 AS SIGNED ) * + + COUNT( * ) + - 97 + + 50 AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-2293
SELECT ALL CAST ( 20 AS INTEGER ) * + + COUNT ( * ) + - 97 + + 50 AS col0
----
-27

query I rowsort
SELECT ( - 42 ) AS col1
----
-42

query I rowsort
SELECT DISTINCT + 96 AS col0
----
96

query I rowsort
SELECT ALL + ( - + 41 ) * 53 * 91 + 23 * + 68
----
-196179

query I rowsort
SELECT ( + 23 ) col1
----
23

query I rowsort
SELECT ALL 7 * - ( - 15 ) + + 38
----
143

query I rowsort
SELECT - 39 + 13 AS col0
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2300
SELECT ALL NULLIF ( - 18, 22 ) * - CAST( NULL AS SIGNED ) * 7 + 47 * - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-2300
SELECT ALL NULLIF ( - 18, 22 ) * - CAST ( NULL AS INTEGER ) * 7 + 47 * - 66
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2301
SELECT CASE - + 38 WHEN - AVG ( 30 ) THEN COUNT( * ) + + COALESCE ( - 82, - 35 + 26 ) * 14 ELSE - 54 END AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-2301
SELECT CASE - + 38 WHEN - AVG ( 30 ) THEN COUNT ( * ) + + COALESCE ( - 82, - 35 + 26 ) * 14 ELSE - 54 END AS col2
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2302
SELECT + CAST( + + 4 AS SIGNED ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-2302
SELECT + CAST ( + + 4 AS INTEGER ) AS col1
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2303
SELECT - CAST( NULL AS SIGNED ) + + - 83 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2303
SELECT - CAST ( NULL AS INTEGER ) + + - 83 AS col0
----
NULL

query I rowsort
SELECT + 50 * + + 49 + - 32 AS col1
----
2418

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2305
SELECT 30 * - CAST( NULL AS SIGNED ) + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-2305
SELECT 30 * - CAST ( NULL AS INTEGER ) + 63
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2306
SELECT - 9 - + + COALESCE ( - 14, + MIN( DISTINCT + 65 ) + - MIN( 74 ) ) * - ( 77 ) AS col1
----
-1087

skipif mysql # not compatible
query I rowsort label-2306
SELECT - 9 - + + COALESCE ( - 14, + MIN ( DISTINCT + 65 ) + - MIN ( 74 ) ) * - ( 77 ) AS col1
----
-1087

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2307
SELECT COALESCE ( COUNT( * ), 81 DIV - 16, - 0 * + CAST( + 35 AS SIGNED ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2307
SELECT COALESCE ( COUNT ( * ), 81 / - 16, - 0 * + CAST ( + 35 AS INTEGER ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2308
SELECT ALL + COUNT( * ) * + - 40, + 27 * + 24 * 25 AS col2
----
-40
16200

skipif mysql # not compatible
query II rowsort label-2308
SELECT ALL + COUNT ( * ) * + - 40, + 27 * + 24 * 25 AS col2
----
-40
16200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2309
SELECT - CAST( COUNT( - CAST( + 32 AS SIGNED ) ) AS SIGNED ) + + 24 col2
----
23

skipif mysql # not compatible
query I rowsort label-2309
SELECT - CAST ( COUNT ( - CAST ( + 32 AS INTEGER ) ) AS INTEGER ) + + 24 col2
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2310
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2310
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL - 4 * + ( 62 )
----
-248

query I rowsort
SELECT - 50 + 89
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2313
SELECT ALL 30 * - + 65 - + CAST( + 60 AS SIGNED )
----
-2010

skipif mysql # not compatible
query I rowsort label-2313
SELECT ALL 30 * - + 65 - + CAST ( + 60 AS INTEGER )
----
-2010

onlyif mysql # aggregate syntax: 
query I rowsort label-2314
SELECT - MAX( - 42 )
----
42

skipif mysql # not compatible
query I rowsort label-2314
SELECT - MAX ( - 42 )
----
42

query I rowsort
SELECT - 96 + - ( + 72 ) * - - 43
----
-3192

query I rowsort
SELECT - - 70 * + 6
----
420

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2317
SELECT ALL - + COALESCE ( 68, - + 16 ) DIV + COUNT( * ) AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-2317
SELECT ALL - + COALESCE ( 68, - + 16 ) / + COUNT ( * ) AS col0
----
-68

query I rowsort
SELECT + + 95 * 7 AS col2
----
665

onlyif mysql # aggregate syntax: 
query I rowsort label-2319
SELECT - - MAX( ALL + 92 ) + + 30
----
122

skipif mysql # not compatible
query I rowsort label-2319
SELECT - - MAX ( ALL + 92 ) + + 30
----
122

query I rowsort
SELECT DISTINCT 37 col0
----
37

query I rowsort
SELECT DISTINCT 59
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2322
SELECT ALL - 40 * - CAST( + 65 AS SIGNED )
----
2600

skipif mysql # not compatible
query I rowsort label-2322
SELECT ALL - 40 * - CAST ( + 65 AS INTEGER )
----
2600

query I rowsort
SELECT 59 * - 6 + + 49 * - - 23
----
773

onlyif mysql # aggregate syntax: 
query I rowsort label-2324
SELECT ALL COUNT( 88 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2324
SELECT ALL COUNT ( 88 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2325
SELECT ALL + CAST( + COUNT( * ) AS SIGNED ) * + 48 * 79 / - SUM( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2325
SELECT ALL + CAST ( + COUNT ( * ) AS INTEGER ) * + 48 * 79 / - SUM ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT 38 * + + 82 + 39 col1
----
3155

onlyif mysql # aggregate syntax: 
query I rowsort label-2327
SELECT + COUNT( * ) + - + ( + 94 ) * - - 18
----
-1691

skipif mysql # not compatible
query I rowsort label-2327
SELECT + COUNT ( * ) + - + ( + 94 ) * - - 18
----
-1691

query I rowsort
SELECT ALL - 88 + - 42 AS col1
----
-130

query I rowsort
SELECT + NULLIF ( 99, + 41 ) AS col2
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-2330
SELECT 25 DIV - 86 - + ( - ( 9 ) ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-2330
SELECT 25 / - 86 - + ( - ( 9 ) ) AS col0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-2331
SELECT DISTINCT COALESCE ( - 1, + COALESCE ( + - ( 84 ), - 99 ) + - 0, + 80 ) + - 19 DIV - 2 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-2331
SELECT DISTINCT COALESCE ( - 1, + COALESCE ( + - ( 84 ), - 99 ) + - 0, + 80 ) + - 19 / - 2 AS col0
----
8

query I rowsort
SELECT DISTINCT - - 66 AS col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2333
SELECT ALL + COUNT( * ) + + + ( - 72 ) + + 60 AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-2333
SELECT ALL + COUNT ( * ) + + + ( - 72 ) + + 60 AS col1
----
-11

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2334
SELECT ALL - NULLIF ( + 52, 73 ) + + 30 - CAST( 8 AS SIGNED ) DIV 20
----
-22

skipif mysql # not compatible
query I rowsort label-2334
SELECT ALL - NULLIF ( + 52, 73 ) + + 30 - CAST ( 8 AS INTEGER ) / 20
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-2335
SELECT DISTINCT 11 + + + 40 DIV + + 69 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-2335
SELECT DISTINCT 11 + + + 40 / + + 69 AS col2
----
11

query I rowsort
SELECT ALL 4 * 56 AS col2
----
224

onlyif mysql # aggregate syntax: 
query I rowsort label-2337
SELECT 60 * + COUNT( * ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-2337
SELECT 60 * + COUNT ( * ) AS col0
----
60

query I rowsort
SELECT DISTINCT 39 * - - 9
----
351

query I rowsort
SELECT ( 91 ) * + 96
----
8736

query I rowsort
SELECT 8 * - - 42 * 53
----
17808

onlyif mysql # aggregate syntax: 
query I rowsort label-2341
SELECT DISTINCT NULLIF ( + 66, AVG ( ALL + 12 ) * - ( ( 98 ) ) ) - - CASE - ( - 14 ) WHEN - MAX( DISTINCT 49 ) + - 96 THEN NULL WHEN + COUNT( * ) THEN NULL ELSE 30 END AS col0
----
96

skipif mysql # not compatible
query I rowsort label-2341
SELECT DISTINCT NULLIF ( + 66, AVG ( ALL + 12 ) * - ( ( 98 ) ) ) - - CASE - ( - 14 ) WHEN - MAX ( DISTINCT 49 ) + - 96 THEN NULL WHEN + COUNT ( * ) THEN NULL ELSE 30 END AS col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2342
SELECT COUNT( + 88 ) * - + 98 + - 46
----
-144

skipif mysql # not compatible
query I rowsort label-2342
SELECT COUNT ( + 88 ) * - + 98 + - 46
----
-144

onlyif mysql # aggregate syntax: 
query II rowsort label-2343
SELECT 80 col2, - COUNT( * ) AS col1
----
80
-1

skipif mysql # not compatible
query II rowsort label-2343
SELECT 80 col2, - COUNT ( * ) AS col1
----
80
-1

query I rowsort
SELECT ALL 62 * + 45
----
2790

query I rowsort
SELECT DISTINCT 97 - - 0 AS col2
----
97

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2346
SELECT ALL 32 - + NULLIF ( - CAST( NULL AS SIGNED ), + - CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2346
SELECT ALL 32 - + NULLIF ( - CAST ( NULL AS INTEGER ), + - CAST ( NULL AS REAL ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2347
SELECT 85 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2347
SELECT 85 * CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT 20 * + ( + 95 ) AS col0, 71 AS col1
----
1900
71

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2349
SELECT CASE + 69 WHEN CAST( + ( - COUNT( * ) ) AS DECIMAL ) / 54 + 83 THEN NULL WHEN 92 THEN - 97 END - - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-2349
SELECT CASE + 69 WHEN CAST ( + ( - COUNT ( * ) ) AS REAL ) / 54 + 83 THEN NULL WHEN 92 THEN - 97 END - - 94
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2350
SELECT ALL - COUNT( * ) * - 89 + - 70 - + 37 - 17 * 63
----
-1089

skipif mysql # not compatible
query I rowsort label-2350
SELECT ALL - COUNT ( * ) * - 89 + - 70 - + 37 - 17 * 63
----
-1089

onlyif mysql # aggregate syntax: 
query I rowsort label-2351
SELECT COUNT( * ) - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-2351
SELECT COUNT ( * ) - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2352
SELECT NULLIF ( - 49, COUNT( * ) * - ( - 74 ) * 84 ) * - COUNT( * ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-2352
SELECT NULLIF ( - 49, COUNT ( * ) * - ( - 74 ) * 84 ) * - COUNT ( * ) AS col2
----
49

query I rowsort
SELECT 35 * 22 AS col0
----
770

onlyif mysql # aggregate syntax: 
query I rowsort label-2354
SELECT + COALESCE ( - + 44, 99 * - COUNT( * ) * 12 + + 26, 68, 4 * 64 ) + - 7 * 12 AS col2
----
-128

skipif mysql # not compatible
query I rowsort label-2354
SELECT + COALESCE ( - + 44, 99 * - COUNT ( * ) * 12 + + 26, 68, 4 * 64 ) + - 7 * 12 AS col2
----
-128

query I rowsort
SELECT DISTINCT - 91 * - - 56
----
-5096

onlyif mysql # aggregate syntax: 
query I rowsort label-2356
SELECT SUM( ALL + + 70 ) + - 61 AS col0
----
9

skipif mysql # not compatible
query I rowsort label-2356
SELECT SUM ( ALL + + 70 ) + - 61 AS col0
----
9

query I rowsort
SELECT ALL 30 * - 3
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-2358
SELECT 27 DIV + - COALESCE ( + + NULLIF ( + 96, 25 ), + 24 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2358
SELECT 27 / + - COALESCE ( + + NULLIF ( + 96, 25 ), + 24 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2359
SELECT ALL - NULLIF ( + 44, - COUNT( * ) ) AS col2, 29 + + 74
----
-44
103

skipif mysql # not compatible
query II rowsort label-2359
SELECT ALL - NULLIF ( + 44, - COUNT ( * ) ) AS col2, 29 + + 74
----
-44
103

query I rowsort
SELECT DISTINCT - 42 * - 13
----
546

onlyif mysql # aggregate syntax: 
query I rowsort label-2361
SELECT ALL - + 47 + + 77 + - - COUNT( * ) * - 32 * - + 84 AS col2
----
2718

skipif mysql # not compatible
query I rowsort label-2361
SELECT ALL - + 47 + + 77 + - - COUNT ( * ) * - 32 * - + 84 AS col2
----
2718

query I rowsort
SELECT - 96 - 58
----
-154

onlyif mysql # DIV for integer division: 
query I rowsort label-2363
SELECT + 5 DIV - 59
----
0

skipif mysql # not compatible
query I rowsort label-2363
SELECT + 5 / - 59
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2364
SELECT 66 + - - COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-2364
SELECT 66 + - - COUNT ( * )
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-2365
SELECT ALL + - 17 + - - 31 DIV 86
----
-17

skipif mysql # not compatible
query I rowsort label-2365
SELECT ALL + - 17 + - - 31 / 86
----
-17

query I rowsort
SELECT 12 AS col0
----
12

query I rowsort
SELECT DISTINCT + - 4 + - 16 col1
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2368
SELECT DISTINCT + - 88 DIV - + 42 + COUNT( * ) + - 70 * COUNT( * )
----
-67

skipif mysql # not compatible
query I rowsort label-2368
SELECT DISTINCT + - 88 / - + 42 + COUNT ( * ) + - 70 * COUNT ( * )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-2369
SELECT ALL - - COUNT( * ) + - COUNT( * ) * + 6 * 77 + 58
----
-403

skipif mysql # not compatible
query I rowsort label-2369
SELECT ALL - - COUNT ( * ) + - COUNT ( * ) * + 6 * 77 + 58
----
-403

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2370
SELECT + - CASE - CAST( NULL AS SIGNED ) WHEN - - 73 THEN - ( - 44 ) + + 22 WHEN CASE - 73 WHEN + 99 + 45 * + 73 THEN NULL ELSE + 75 END + 16 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2370
SELECT + - CASE - CAST ( NULL AS INTEGER ) WHEN - - 73 THEN - ( - 44 ) + + 22 WHEN CASE - 73 WHEN + 99 + 45 * + 73 THEN NULL ELSE + 75 END + 16 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2371
SELECT DISTINCT + 72 * COUNT( * ) + - 16 + + 31 * SUM( 87 )
----
2753

skipif mysql # not compatible
query I rowsort label-2371
SELECT DISTINCT + 72 * COUNT ( * ) + - 16 + + 31 * SUM ( 87 )
----
2753

onlyif mysql # aggregate syntax: 
query II rowsort label-2372
SELECT 80 * COUNT( * ) AS col2, + 43 * - 39 AS col2
----
80
-1677

skipif mysql # not compatible
query II rowsort label-2372
SELECT 80 * COUNT ( * ) AS col2, + 43 * - 39 AS col2
----
80
-1677

query I rowsort
SELECT ALL - ( + - 95 )
----
95

query I rowsort
SELECT DISTINCT - 21 * 76
----
-1596

onlyif mysql # aggregate syntax: 
query I rowsort label-2375
SELECT 69 + COUNT( * )
----
70

skipif mysql # not compatible
query I rowsort label-2375
SELECT 69 + COUNT ( * )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2376
SELECT COUNT( + 64 )
----
1

skipif mysql # not compatible
query I rowsort label-2376
SELECT COUNT ( + 64 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2377
SELECT COUNT( + 93 ) + + 22 * + + 33 col2
----
727

skipif mysql # not compatible
query I rowsort label-2377
SELECT COUNT ( + 93 ) + + 22 * + + 33 col2
----
727

onlyif mysql # aggregate syntax: 
query I rowsort label-2378
SELECT ALL + 8 * ( 20 ) - 42 - + - 80 - + COUNT( * ) * 9 * + COUNT( * ) AS col0
----
189

skipif mysql # not compatible
query I rowsort label-2378
SELECT ALL + 8 * ( 20 ) - 42 - + - 80 - + COUNT ( * ) * 9 * + COUNT ( * ) AS col0
----
189

query I rowsort
SELECT DISTINCT + 49 - - 52 col1
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-2380
SELECT DISTINCT MIN( DISTINCT + 54 ) * - 99 + - 27
----
-5373

skipif mysql # not compatible
query I rowsort label-2380
SELECT DISTINCT MIN ( DISTINCT + 54 ) * - 99 + - 27
----
-5373

query I rowsort
SELECT DISTINCT - COALESCE ( 44, - 62 )
----
-44

query I rowsort
SELECT ALL - 40 AS col0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-2383
SELECT COUNT( * ) + + + 66 + + COUNT( * ) + - 49 AS col0
----
19

skipif mysql # not compatible
query I rowsort label-2383
SELECT COUNT ( * ) + + + 66 + + COUNT ( * ) + - 49 AS col0
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-2384
SELECT 85 DIV ( + - 36 ) DIV + - 58 + 41 * 96 - + 12
----
3924

skipif mysql # not compatible
query I rowsort label-2384
SELECT 85 / ( + - 36 ) / + - 58 + 41 * 96 - + 12
----
3924

query I rowsort
SELECT + 6 col2
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2386
SELECT 68 * + 1 + + COALESCE ( + - ( 68 ), NULLIF ( - COALESCE ( - CASE - 58 WHEN + 12 THEN NULL WHEN - 29 THEN + 38 ELSE NULLIF ( + CASE - 7 WHEN 35 - 32 * + 59 THEN + 95 * ( 62 * 47 ) WHEN 15 * CAST( ( - ( + 58 ) ) * + 10 AS SIGNED ) THEN 30 END, - MAX( ALL + 42 ) - + 38 / + COUNT( * ) ) + - 89 END, + 21 ), - 90 ), 80 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2386
SELECT 68 * + 1 + + COALESCE ( + - ( 68 ), NULLIF ( - COALESCE ( - CASE - 58 WHEN + 12 THEN NULL WHEN - 29 THEN + 38 ELSE NULLIF ( + CASE - 7 WHEN 35 - 32 * + 59 THEN + 95 * ( 62 * 47 ) WHEN 15 * CAST ( ( - ( + 58 ) ) * + 10 AS INTEGER ) THEN 30 END, - MAX ( ALL + 42 ) - + 38 / + COUNT ( * ) ) + - 89 END, + 21 ), - 90 ), 80 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2387
SELECT ALL CASE 11 WHEN + 15 THEN + + ( - - 13 ) / - 29 * + COUNT( * ) WHEN 32 THEN - 98 * + 3 END * MAX( 27 * + 59 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2387
SELECT ALL CASE 11 WHEN + 15 THEN + + ( - - 13 ) / - 29 * + COUNT ( * ) WHEN 32 THEN - 98 * + 3 END * MAX ( 27 * + 59 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2388
SELECT - ( - + CASE + + COUNT( * ) WHEN + 78 THEN NULL WHEN - ( CAST( NULL AS SIGNED ) ) / 31 THEN 81 * + 14 WHEN 44 THEN NULL ELSE NULL END ) * - COUNT( * ) - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-2388
SELECT - ( - + CASE + + COUNT ( * ) WHEN + 78 THEN NULL WHEN - ( CAST ( NULL AS INTEGER ) ) / 31 THEN 81 * + 14 WHEN 44 THEN NULL ELSE NULL END ) * - COUNT ( * ) - 34
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2389
SELECT + 67 + + 64 AS col0, 12 DIV - 63
----
131
0

skipif mysql # not compatible
query II rowsort label-2389
SELECT + 67 + + 64 AS col0, 12 / - 63
----
131
0

query I rowsort
SELECT ALL + - 70 AS col2
----
-70

query I rowsort
SELECT + + 68 * + - 50 * - 82 * + + COALESCE ( + + 44, - ( - 55 ), + 5 )
----
12267200

query I rowsort
SELECT DISTINCT + 62 * - 14 + + 16 - - 25
----
-827

query II rowsort
SELECT DISTINCT 19 * + 61, - 54 * + - 89 col2
----
1159
4806

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2394
SELECT DISTINCT - CAST( + CASE + 61 WHEN + 98 THEN NULL WHEN + - 32 THEN NULL ELSE - 57 END AS SIGNED ) + + 90
----
147

skipif mysql # not compatible
query I rowsort label-2394
SELECT DISTINCT - CAST ( + CASE + 61 WHEN + 98 THEN NULL WHEN + - 32 THEN NULL ELSE - 57 END AS INTEGER ) + + 90
----
147

query I rowsort
SELECT ALL - + 94 + - 3 + + ( 38 ) * - 40 AS col1
----
-1617

onlyif mysql # aggregate syntax: 
query I rowsort label-2396
SELECT - 86 * + + ( COUNT( * ) ) + - + COUNT( * ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-2396
SELECT - 86 * + + ( COUNT ( * ) ) + - + COUNT ( * ) AS col1
----
-87

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2397
SELECT + - CAST( NULL AS DECIMAL ) + + 24 AS col2, - 2 col1
----
NULL
-2

skipif mysql # not compatible
query II rowsort label-2397
SELECT + - CAST ( NULL AS REAL ) + + 24 AS col2, - 2 col1
----
NULL
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-2398
SELECT 96 AS col0, - NULLIF ( + COUNT( * ), 66 ) AS col1
----
96
-1

skipif mysql # not compatible
query II rowsort label-2398
SELECT 96 AS col0, - NULLIF ( + COUNT ( * ), 66 ) AS col1
----
96
-1

query I rowsort
SELECT ALL - 88 + - 46 AS col1
----
-134

onlyif mysql # aggregate syntax: 
query I rowsort label-2400
SELECT DISTINCT + COUNT( * ) + - 82 AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-2400
SELECT DISTINCT + COUNT ( * ) + - 82 AS col2
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2401
SELECT + CAST( + 11 AS SIGNED ) + 58
----
69

skipif mysql # not compatible
query I rowsort label-2401
SELECT + CAST ( + 11 AS INTEGER ) + 58
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2402
SELECT DISTINCT + 61 + - NULLIF ( + CAST( - 71 AS SIGNED ), + - CASE + ( 74 ) WHEN - SUM( DISTINCT - 0 ) THEN - ( + 16 ) ELSE NULL END ) col2
----
132

skipif mysql # not compatible
query I rowsort label-2402
SELECT DISTINCT + 61 + - NULLIF ( + CAST ( - 71 AS INTEGER ), + - CASE + ( 74 ) WHEN - SUM ( DISTINCT - 0 ) THEN - ( + 16 ) ELSE NULL END ) col2
----
132

onlyif mysql # aggregate syntax: 
query II rowsort label-2403
SELECT ALL + 97 * + 7 AS col2, COUNT( * ) - - 55 AS col0
----
679
56

skipif mysql # not compatible
query II rowsort label-2403
SELECT ALL + 97 * + 7 AS col2, COUNT ( * ) - - 55 AS col0
----
679
56

onlyif mysql # aggregate syntax: 
query II rowsort label-2404
SELECT + COUNT( * ), COUNT( * ) AS col2
----
1
1

skipif mysql # not compatible
query II rowsort label-2404
SELECT + COUNT ( * ), COUNT ( * ) AS col2
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2405
SELECT ALL 44 + - - COUNT( ALL - 80 )
----
45

skipif mysql # not compatible
query I rowsort label-2405
SELECT ALL 44 + - - COUNT ( ALL - 80 )
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-2406
SELECT DISTINCT 48 * + + 52 AS col1, 16 + + ( COUNT( 76 ) ) + NULLIF ( - 78 + - 15 * COUNT( * ), 83 ) * 85
----
2496
-7888

skipif mysql # not compatible
query II rowsort label-2406
SELECT DISTINCT 48 * + + 52 AS col1, 16 + + ( COUNT ( 76 ) ) + NULLIF ( - 78 + - 15 * COUNT ( * ), 83 ) * 85
----
2496
-7888

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2407
SELECT - - 0 + - 84 + + - CAST( - COUNT( * ) AS SIGNED ) * + CASE - COUNT( * ) WHEN CAST( 77 AS SIGNED ) THEN - 12 END + - 61 / + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2407
SELECT - - 0 + - 84 + + - CAST ( - COUNT ( * ) AS INTEGER ) * + CASE - COUNT ( * ) WHEN CAST ( 77 AS INTEGER ) THEN - 12 END + - 61 / + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2408
SELECT ALL - NULLIF ( + 92, - 47 ) * - COUNT( * ) + - 0 * - 51 + - 48
----
44

skipif mysql # not compatible
query I rowsort label-2408
SELECT ALL - NULLIF ( + 92, - 47 ) * - COUNT ( * ) + - 0 * - 51 + - 48
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2409
SELECT + CASE - 65 WHEN NULLIF ( + + CASE 60 WHEN 36 * - 74 + 23 THEN NULL ELSE - 76 END, ( MAX( ALL - 76 ) ) + 22 ) * - 51 THEN 22 * + 41 + - 88 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2409
SELECT + CASE - 65 WHEN NULLIF ( + + CASE 60 WHEN 36 * - 74 + 23 THEN NULL ELSE - 76 END, ( MAX ( ALL - 76 ) ) + 22 ) * - 51 THEN 22 * + 41 + - 88 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2410
SELECT DISTINCT MAX( DISTINCT - - 15 ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-2410
SELECT DISTINCT MAX ( DISTINCT - - 15 ) AS col0
----
15

query I rowsort
SELECT + CASE 16 WHEN 32 THEN NULL ELSE 5 * - - 28 + - 82 END * + ( - 19 ) AS col0
----
-1102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2412
SELECT - CAST( - + COUNT( * ) AS SIGNED ) * - 71 * - 77 AS col1
----
5467

skipif mysql # not compatible
query I rowsort label-2412
SELECT - CAST ( - + COUNT ( * ) AS INTEGER ) * - 71 * - 77 AS col1
----
5467

query I rowsort
SELECT DISTINCT + 37 AS col2
----
37

query I rowsort
SELECT ALL + 14 AS col1
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2415
SELECT - CAST( - 60 AS SIGNED ) * + 9 AS col0
----
540

skipif mysql # not compatible
query I rowsort label-2415
SELECT - CAST ( - 60 AS INTEGER ) * + 9 AS col0
----
540

query I rowsort
SELECT DISTINCT + 27
----
27

onlyif mysql # DIV for integer division: 
query II rowsort label-2417
SELECT DISTINCT + 63 DIV 4 DIV 56 AS col0, 82 AS col2
----
0
82

skipif mysql # not compatible
query II rowsort label-2417
SELECT DISTINCT + 63 / 4 / 56 AS col0, 82 AS col2
----
0
82

query I rowsort
SELECT ( + 61 ) AS col2
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-2419
SELECT ALL + ( + 74 ) AS col0, MAX( + ( + 91 ) ) AS col0
----
74
91

skipif mysql # not compatible
query II rowsort label-2419
SELECT ALL + ( + 74 ) AS col0, MAX ( + ( + 91 ) ) AS col0
----
74
91

query I rowsort
SELECT - CASE - - ( - + 19 ) WHEN - 29 THEN + - 1 ELSE NULL END * 7 + - 84 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2421
SELECT COALESCE ( 61, 99 - - CAST( + 53 AS SIGNED ), + - 6 ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-2421
SELECT COALESCE ( 61, 99 - - CAST ( + 53 AS INTEGER ), + - 6 ) AS col0
----
61

query I rowsort
SELECT ALL + 73 * 15 AS col0
----
1095

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2423
SELECT COALESCE ( + + ( + ( - + 57 ) ), - 47 + MIN( - - 9 ) DIV - COUNT( * ), - ( + 1 ) ) col2
----
-57

skipif mysql # not compatible
query I rowsort label-2423
SELECT COALESCE ( + + ( + ( - + 57 ) ), - 47 + MIN ( - - 9 ) / - COUNT ( * ), - ( + 1 ) ) col2
----
-57

query I rowsort
SELECT + 55 * - - 2 AS col0
----
110

query II rowsort
SELECT - 67 * 13 AS col1, + 71 * - 48
----
-871
-3408

query I rowsort
SELECT ALL - 61 * + + 36 + + + ( + 28 )
----
-2168

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2427
SELECT DISTINCT + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2427
SELECT DISTINCT + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2428
SELECT ALL + COUNT( - 34 ) * - 42 + - COALESCE ( 15, - 82 ) * + 19 - + 15
----
-342

skipif mysql # not compatible
query I rowsort label-2428
SELECT ALL + COUNT ( - 34 ) * - 42 + - COALESCE ( 15, - 82 ) * + 19 - + 15
----
-342

onlyif mysql # aggregate syntax: 
query I rowsort label-2429
SELECT DISTINCT + - COUNT( ALL 70 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2429
SELECT DISTINCT + - COUNT ( ALL 70 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2430
SELECT - + 78 + - COUNT( * ) - CAST( - 85 AS SIGNED ) * ( + 27 ) - - - 89
----
2127

skipif mysql # not compatible
query I rowsort label-2430
SELECT - + 78 + - COUNT ( * ) - CAST ( - 85 AS INTEGER ) * ( + 27 ) - - - 89
----
2127

query I rowsort
SELECT ALL + ( + 63 ) * 11 + - 25
----
668

query I rowsort
SELECT - COALESCE ( - 39, 67 ) - 65
----
-26

query I rowsort
SELECT ALL - 23 AS col1
----
-23

query I rowsort
SELECT ALL + - 71 + 27 + 98 * 75
----
7306

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2435
SELECT - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2435
SELECT - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2436
SELECT DISTINCT 93 + - + 94 + - 6, 32 + COUNT( * ) col2
----
-7
33

skipif mysql # not compatible
query II rowsort label-2436
SELECT DISTINCT 93 + - + 94 + - 6, 32 + COUNT ( * ) col2
----
-7
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2437
SELECT + + 71 - + - 3 DIV 6 * - + COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-2437
SELECT + + 71 - + - 3 / 6 * - + COUNT ( * )
----
71

query I rowsort
SELECT DISTINCT - 64 AS col2
----
-64

query I rowsort
SELECT - + 28
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2440
SELECT - 69 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2440
SELECT - 69 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT 80 col1, + 75 * 73 AS col1
----
80
5475

query I rowsort
SELECT ALL 45 - - 3
----
48

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2443
SELECT - CAST( NULL AS DECIMAL ) AS col0, CAST( + 16 AS SIGNED ) AS col1
----
NULL
16

skipif mysql # not compatible
query II rowsort label-2443
SELECT - CAST ( NULL AS REAL ) AS col0, CAST ( + 16 AS INTEGER ) AS col1
----
NULL
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2444
SELECT + CAST( NULL AS SIGNED ) * + + 73 * 34
----
NULL

skipif mysql # not compatible
query I rowsort label-2444
SELECT + CAST ( NULL AS INTEGER ) * + + 73 * 34
----
NULL

query II rowsort
SELECT DISTINCT + 72, + 15 AS col2
----
72
15

query I rowsort
SELECT 77 * + 98 * + 95 * - + 30 + COALESCE ( + 15, + - 18 ) AS col0
----
-21506085

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2447
SELECT + CAST( + 75 AS SIGNED ) DIV + MAX( ALL + - 65 ), 65 + 69 AS col0
----
-1
134

skipif mysql # not compatible
query II rowsort label-2447
SELECT + CAST ( + 75 AS INTEGER ) / + MAX ( ALL + - 65 ), 65 + 69 AS col0
----
-1
134

query I rowsort
SELECT - 3 * - + 22 AS col2
----
66

query I rowsort
SELECT ALL + CASE - + 99 WHEN 80 * - + 97 + - 73 + 23 THEN + 8 ELSE - - 53 * + 3 END
----
159

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2450
SELECT + 58 DIV + + NULLIF ( - - 79, + 75 * - - 54 * + - ( - 70 ) DIV - ( - SUM( ALL 86 ) ) - 49 + ( ( 81 ) + 53 ) ) * - 25 + 73 DIV 62 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2450
SELECT + 58 / + + NULLIF ( - - 79, + 75 * - - 54 * + - ( - 70 ) / - ( - SUM ( ALL 86 ) ) - 49 + ( ( 81 ) + 53 ) ) * - 25 + 73 / 62 AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2451
SELECT ALL - COALESCE ( ( + 45 ), 20, - + CAST( NULL AS SIGNED ) ) DIV - ( - + 88 )
----
0

skipif mysql # not compatible
query I rowsort label-2451
SELECT ALL - COALESCE ( ( + 45 ), 20, - + CAST ( NULL AS INTEGER ) ) / - ( - + 88 )
----
0

query I rowsort
SELECT 78 * + 52 + - 68
----
3988

onlyif mysql # aggregate syntax: 
query I rowsort label-2453
SELECT ALL 73 + - - 34 - COUNT( * ) * + - ( COUNT( * ) ) AS col2
----
108

skipif mysql # not compatible
query I rowsort label-2453
SELECT ALL 73 + - - 34 - COUNT ( * ) * + - ( COUNT ( * ) ) AS col2
----
108

onlyif mysql # aggregate syntax: 
query II rowsort label-2454
SELECT DISTINCT - 52, - 40 + SUM( 78 ) AS col2
----
-52
38

skipif mysql # not compatible
query II rowsort label-2454
SELECT DISTINCT - 52, - 40 + SUM ( 78 ) AS col2
----
-52
38

query I rowsort
SELECT ALL + NULLIF ( 42, + 78 + - 82 * + + 8 ) + - 34 + + - 79 + 32 AS col2
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-2456
SELECT - 14 * - 43 * - COUNT( * ) + ( - + 90 ) * 24 col1
----
-2762

skipif mysql # not compatible
query I rowsort label-2456
SELECT - 14 * - 43 * - COUNT ( * ) + ( - + 90 ) * 24 col1
----
-2762

onlyif mysql # aggregate syntax: 
query I rowsort label-2457
SELECT ALL - 14 + - - COUNT( + + 57 ) * - + 79 col0
----
-93

skipif mysql # not compatible
query I rowsort label-2457
SELECT ALL - 14 + - - COUNT ( + + 57 ) * - + 79 col0
----
-93

query I rowsort
SELECT ALL + 13 * 60 AS col1
----
780

query I rowsort
SELECT 82 * - - 78
----
6396

query I rowsort
SELECT - CASE - 72 WHEN 44 THEN + - 10 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2461
SELECT SUM( + + 70 ) + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2461
SELECT SUM ( + + 70 ) + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL - 21 + + - 59 AS col2
----
-80

query I rowsort
SELECT DISTINCT + 63 * + 35
----
2205

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2464
SELECT + COUNT( * ) * + ( ( + MIN( 94 ) ) ) + - - 88 + - 30 - + 84 DIV 1 * - NULLIF ( - 76 + 2, - 15 ) AS col1
----
-6064

skipif mysql # not compatible
query I rowsort label-2464
SELECT + COUNT ( * ) * + ( ( + MIN ( 94 ) ) ) + - - 88 + - 30 - + 84 / 1 * - NULLIF ( - 76 + 2, - 15 ) AS col1
----
-6064

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

skipif mysql # not compatible
query I rowsort label-2465
SELECT + 16 * COUNT ( * ) AS col2
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2466
SELECT ALL - CAST( + CASE + - 32 WHEN COUNT( * ) THEN + + 49 ELSE NULL END AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2466
SELECT ALL - CAST ( + CASE + - 32 WHEN COUNT ( * ) THEN + + 49 ELSE NULL END AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2467
SELECT ALL - + 59 AS col2, - 9 + + 95 * + COUNT( - 77 ) AS col0
----
-59
86

skipif mysql # not compatible
query II rowsort label-2467
SELECT ALL - + 59 AS col2, - 9 + + 95 * + COUNT ( - 77 ) AS col0
----
-59
86

query I rowsort
SELECT DISTINCT - 10
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-2469
SELECT - COUNT( - + 94 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2469
SELECT - COUNT ( - + 94 ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2470
SELECT ALL CAST( - NULLIF ( - CAST( NULL AS SIGNED ), 59 * - 50 ) AS SIGNED ) - 53 * - 5 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2470
SELECT ALL CAST ( - NULLIF ( - CAST ( NULL AS INTEGER ), 59 * - 50 ) AS INTEGER ) - 53 * - 5 AS col0
----
NULL

query I rowsort
SELECT 28 * + - 18 AS col1
----
-504

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2472
SELECT ALL COALESCE ( - 23, + - CAST( - 14 AS SIGNED ) * - COUNT( * ) )
----
-23

skipif mysql # not compatible
query I rowsort label-2472
SELECT ALL COALESCE ( - 23, + - CAST ( - 14 AS INTEGER ) * - COUNT ( * ) )
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-2473
SELECT DISTINCT - - 68 DIV NULLIF ( + - 26, - - 70 ) col1
----
-2

skipif mysql # not compatible
query I rowsort label-2473
SELECT DISTINCT - - 68 / NULLIF ( + - 26, - - 70 ) col1
----
-2

query I rowsort
SELECT - + 76
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-2475
SELECT ALL - COUNT( * ) - - NULLIF ( - - 88, - CASE - - COUNT( * ) WHEN + 80 * - 75 + + 85 + 31 THEN - 37 WHEN 33 THEN NULL WHEN 79 + - COALESCE ( 22, - MIN( 76 ) * 71 ) THEN - 76 ELSE NULL END ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-2475
SELECT ALL - COUNT ( * ) - - NULLIF ( - - 88, - CASE - - COUNT ( * ) WHEN + 80 * - 75 + + 85 + 31 THEN - 37 WHEN 33 THEN NULL WHEN 79 + - COALESCE ( 22, - MIN ( 76 ) * 71 ) THEN - 76 ELSE NULL END ) AS col2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2476
SELECT 7 * - MAX( + 11 ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-2476
SELECT 7 * - MAX ( + 11 ) AS col2
----
-77

query I rowsort
SELECT 51 * - - 38
----
1938

query I rowsort
SELECT - + 66 AS col0
----
-66

query I rowsort
SELECT ALL - 10 AS col1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-2480
SELECT - + MAX( 85 )
----
-85

skipif mysql # not compatible
query I rowsort label-2480
SELECT - + MAX ( 85 )
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-2481
SELECT + COUNT( 38 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2481
SELECT + COUNT ( 38 ) AS col0
----
1

query I rowsort
SELECT + 41 + 86 AS col1
----
127

query II rowsort
SELECT + 20 AS col1, - 48 AS col2
----
20
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-2484
SELECT + 15 DIV + + 9 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2484
SELECT + 15 / + + 9 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2485
SELECT ALL - COUNT( ALL + 52 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2485
SELECT ALL - COUNT ( ALL + 52 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-2486
SELECT 79 + + 81 AS col1, COALESCE ( - 87, - ( - COUNT( * ) ) )
----
160
-87

skipif mysql # not compatible
query II rowsort label-2486
SELECT 79 + + 81 AS col1, COALESCE ( - 87, - ( - COUNT ( * ) ) )
----
160
-87

query I rowsort
SELECT ALL - 71 * ( + 0 ) AS col2
----
0

query I rowsort
SELECT DISTINCT - 63 * ( + 65 ) col0
----
-4095

query I rowsort
SELECT ALL 74 col0
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2490
SELECT ALL 28 DIV NULLIF ( - COUNT( ALL + - 97 ), + + 31 )
----
-28

skipif mysql # not compatible
query I rowsort label-2490
SELECT ALL 28 / NULLIF ( - COUNT ( ALL + - 97 ), + + 31 )
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-2491
SELECT 98 DIV + 8 AS col1
----
12

skipif mysql # not compatible
query I rowsort label-2491
SELECT 98 / + 8 AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-2492
SELECT 5 + + - MIN( 9 ) * - 9
----
86

skipif mysql # not compatible
query I rowsort label-2492
SELECT 5 + + - MIN ( 9 ) * - 9
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-2493
SELECT ( - 23 ) + + COUNT( * ) AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-2493
SELECT ( - 23 ) + + COUNT ( * ) AS col0
----
-22

query I rowsort
SELECT ( + 94 ) * 32 AS col2
----
3008

onlyif mysql # DIV for integer division: 
query II rowsort label-2495
SELECT 39 + 21 DIV - - 51 * - - 76 AS col0, + 74 AS col2
----
39
74

skipif mysql # not compatible
query II rowsort label-2495
SELECT 39 + 21 / - - 51 * - - 76 AS col0, + 74 AS col2
----
39
74

query I rowsort
SELECT ALL - 78 col0
----
-78

query I rowsort
SELECT DISTINCT 20 + 8
----
28

query I rowsort
SELECT DISTINCT 32 + - - 71 * - 53 - - 35 AS col2
----
-3696

query I rowsort
SELECT DISTINCT - 55 AS col1
----
-55

query I rowsort
SELECT ALL - NULLIF ( - - 10, 93 * 8 ) + 44 + 12 * - 30 * + 18
----
-6446

query I rowsort
SELECT ALL 19 + 19
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2502
SELECT + NULLIF ( + ( - CAST( NULL AS SIGNED ) ), 73 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2502
SELECT + NULLIF ( + ( - CAST ( NULL AS INTEGER ) ), 73 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2503
SELECT ( COUNT( * ) ) - - MAX( + CASE WHEN NULL IS NOT NULL THEN 22 ELSE - 44 - - 20 * 23 END ) AS col2
----
417

skipif mysql # not compatible
query I rowsort label-2503
SELECT ( COUNT ( * ) ) - - MAX ( + CASE WHEN NULL IS NOT NULL THEN 22 ELSE - 44 - - 20 * 23 END ) AS col2
----
417

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2504
SELECT + CAST( + + 2 AS SIGNED )
----
2

skipif mysql # not compatible
query I rowsort label-2504
SELECT + CAST ( + + 2 AS INTEGER )
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2505
SELECT 73 DIV COUNT( * ) + - 73 + - + 86 DIV + + 14 + - + 35 * 81 * 15 AS col0
----
-42531

skipif mysql # not compatible
query I rowsort label-2505
SELECT 73 / COUNT ( * ) + - 73 + - + 86 / + + 14 + - + 35 * 81 * 15 AS col0
----
-42531

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2506
SELECT ALL - CASE + + 96 WHEN + + 4 + + 28 / + ( + CAST( + 36 AS SIGNED ) ) THEN - - CAST( NULL AS SIGNED ) * + + 36 WHEN - 73 * 66 THEN - 31 WHEN 44 THEN NULL ELSE 56 END
----
-56

skipif mysql # not compatible
query I rowsort label-2506
SELECT ALL - CASE + + 96 WHEN + + 4 + + 28 / + ( + CAST ( + 36 AS INTEGER ) ) THEN - - CAST ( NULL AS INTEGER ) * + + 36 WHEN - 73 * 66 THEN - 31 WHEN 44 THEN NULL ELSE 56 END
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2507
SELECT DISTINCT - + CAST( 38 AS SIGNED ) AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-2507
SELECT DISTINCT - + CAST ( 38 AS INTEGER ) AS col1
----
-38

query I rowsort
SELECT DISTINCT - 94 AS col1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-2509
SELECT ALL - COUNT( * ) - - - COUNT( * ) * 24 AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-2509
SELECT ALL - COUNT ( * ) - - - COUNT ( * ) * 24 AS col0
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-2510
SELECT ALL + 99 DIV - - 87 + - 22
----
-21

skipif mysql # not compatible
query I rowsort label-2510
SELECT ALL + 99 / - - 87 + - 22
----
-21

query I rowsort
SELECT DISTINCT - + 54 * - - 18
----
-972

onlyif mysql # aggregate syntax: 
query I rowsort label-2512
SELECT + NULLIF ( - 82, - - 42 + 36 - + 97 + - 65 * + 19 * CASE - COUNT( * ) WHEN 58 THEN + 37 WHEN NULLIF ( 2, + ( + CASE COALESCE ( + COALESCE ( + 18, SUM( ALL 29 ), - SUM( + ( - 50 ) ) ), 38, MAX( + 64 ) ) WHEN MIN( + 31 ) THEN - 99 * - 7 WHEN - ( - ( - 22 ) ) THEN NULL END ) ) THEN NULL ELSE NULL END / + 94 )
----
-82

skipif mysql # not compatible
query I rowsort label-2512
SELECT + NULLIF ( - 82, - - 42 + 36 - + 97 + - 65 * + 19 * CASE - COUNT ( * ) WHEN 58 THEN + 37 WHEN NULLIF ( 2, + ( + CASE COALESCE ( + COALESCE ( + 18, SUM ( ALL 29 ), - SUM ( + ( - 50 ) ) ), 38, MAX ( + 64 ) ) WHEN MIN ( + 31 ) THEN - 99 * - 7 WHEN - ( - ( - 22 ) ) THEN NULL END ) ) THEN NULL ELSE NULL END / + 94 )
----
-82

query I rowsort
SELECT 45 + + - 45 * - - 50
----
-2205

onlyif mysql # aggregate syntax: 
query I rowsort label-2514
SELECT DISTINCT - - COUNT( * ) * - - 53 - - 23 * + - 75 col1
----
-1672

skipif mysql # not compatible
query I rowsort label-2514
SELECT DISTINCT - - COUNT ( * ) * - - 53 - - 23 * + - 75 col1
----
-1672

query I rowsort
SELECT 22 + 33 AS col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2516
SELECT COUNT( DISTINCT - - 74 ) * + - 36 * - + 9 * + 56
----
18144

skipif mysql # not compatible
query I rowsort label-2516
SELECT COUNT ( DISTINCT - - 74 ) * + - 36 * - + 9 * + 56
----
18144

query I rowsort
SELECT ALL + 9 col1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-2518
SELECT 12 - - 87 DIV + - ( - - 50 ) + + + 61 * - 61 AS col0
----
-3710

skipif mysql # not compatible
query I rowsort label-2518
SELECT 12 - - 87 / + - ( - - 50 ) + + + 61 * - 61 AS col0
----
-3710

query I rowsort
SELECT ALL - 13 * - 93 + - ( 5 ) AS col1
----
1204

query I rowsort
SELECT 45 * - - 53
----
2385

query I rowsort
SELECT ALL 69 AS col0
----
69

query II rowsort
SELECT DISTINCT 87 * + ( - 75 ) AS col2, + 82 * - + 0 AS col2
----
-6525
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2523
SELECT DISTINCT COUNT( * ), + COUNT( * ) col1
----
1
1

skipif mysql # not compatible
query II rowsort label-2523
SELECT DISTINCT COUNT ( * ), + COUNT ( * ) col1
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2524
SELECT DISTINCT MIN( ALL - + 4 )
----
-4

skipif mysql # not compatible
query I rowsort label-2524
SELECT DISTINCT MIN ( ALL - + 4 )
----
-4

query I rowsort
SELECT 79 * 33
----
2607

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2526
SELECT 14 * CAST( - 33 AS SIGNED ) * 40 * + - 36 - 46
----
665234

skipif mysql # not compatible
query I rowsort label-2526
SELECT 14 * CAST ( - 33 AS INTEGER ) * 40 * + - 36 - 46
----
665234

query I rowsort
SELECT ALL - 40 + - 48
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-2528
SELECT ALL MIN( DISTINCT - 9 )
----
-9

skipif mysql # not compatible
query I rowsort label-2528
SELECT ALL MIN ( DISTINCT - 9 )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2529
SELECT DISTINCT - COUNT( * ) * - 37
----
37

skipif mysql # not compatible
query I rowsort label-2529
SELECT DISTINCT - COUNT ( * ) * - 37
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2530
SELECT 95 - COUNT( * ) col0
----
94

skipif mysql # not compatible
query I rowsort label-2530
SELECT 95 - COUNT ( * ) col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2531
SELECT ALL - ( - SUM( DISTINCT 86 ) ) + NULLIF ( + 93, 76 ) - + COUNT( * )
----
178

skipif mysql # not compatible
query I rowsort label-2531
SELECT ALL - ( - SUM ( DISTINCT 86 ) ) + NULLIF ( + 93, 76 ) - + COUNT ( * )
----
178

query II rowsort
SELECT - 92 * - - 58 * + 24 AS col0, 10 * ( - + 46 )
----
-128064
-460

query I rowsort
SELECT + 97 * - ( - - 72 ) AS col2
----
-6984

onlyif mysql # aggregate syntax: 
query I rowsort label-2534
SELECT ALL MIN( DISTINCT - 28 )
----
-28

skipif mysql # not compatible
query I rowsort label-2534
SELECT ALL MIN ( DISTINCT - 28 )
----
-28

query I rowsort
SELECT - 68 * 33 * - 8 AS col1
----
17952

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2536
SELECT ALL CAST( - + ( 9 ) AS SIGNED ) + + + 1 AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-2536
SELECT ALL CAST ( - + ( 9 ) AS INTEGER ) + + + 1 AS col0
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2537
SELECT DISTINCT + CASE 60 WHEN + 67 THEN + - 82 / - + 31 + ( + 23 ) + + CASE WHEN ( - 16 ) >= - CAST( + 82 AS SIGNED ) / - 58 THEN - ( 30 ) * - 92 + MAX( 32 + + 86 ) END / - 86 END * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2537
SELECT DISTINCT + CASE 60 WHEN + 67 THEN + - 82 / - + 31 + ( + 23 ) + + CASE WHEN ( - 16 ) >= - CAST ( + 82 AS INTEGER ) / - 58 THEN - ( 30 ) * - 92 + MAX ( 32 + + 86 ) END / - 86 END * + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2538
SELECT ALL - COUNT( * ) + + - 10 col2
----
-11

skipif mysql # not compatible
query I rowsort label-2538
SELECT ALL - COUNT ( * ) + + - 10 col2
----
-11

query I rowsort
SELECT + 62 - + 30 col1
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-2540
SELECT DISTINCT 73 DIV + - 69
----
-1

skipif mysql # not compatible
query I rowsort label-2540
SELECT DISTINCT 73 / + - 69
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2541
SELECT DISTINCT + ( + 67 ) + - 2 / + SUM( + + CAST( NULL AS SIGNED ) ) + + COUNT( * ) * + + COALESCE ( + 1, - 4 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2541
SELECT DISTINCT + ( + 67 ) + - 2 / + SUM ( + + CAST ( NULL AS INTEGER ) ) + + COUNT ( * ) * + + COALESCE ( + 1, - 4 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2542
SELECT - 68 * NULLIF ( - + 86, - 46 + - MIN( DISTINCT - - 63 ) * + 9 ) + - - 53 * 77 AS col0
----
9929

skipif mysql # not compatible
query I rowsort label-2542
SELECT - 68 * NULLIF ( - + 86, - 46 + - MIN ( DISTINCT - - 63 ) * + 9 ) + - - 53 * 77 AS col0
----
9929

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2543
SELECT + COUNT( * ) DIV - 39 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2543
SELECT + COUNT ( * ) / - 39 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2544
SELECT ALL - CAST( COUNT( * ) AS SIGNED ) * - CAST( NULL AS SIGNED ) * 72 + 47 + 26 * + CASE 42 WHEN - + 41 + - - 12 + NULLIF ( 54 + ( 45 ), - 66 * - NULLIF ( - 11, COUNT( * ) + 62 * + 49 ) + - 35 ) THEN NULL WHEN - 27 + - 67 THEN + CASE + COUNT( * ) WHEN - 71 + - MIN( ALL + 85 ) * 87 THEN MAX( - 67 ) * 92 WHEN 75 * + 99 THEN NULL ELSE + 14 END * - 71 + 21 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2544
SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ) * - CAST ( NULL AS INTEGER ) * 72 + 47 + 26 * + CASE 42 WHEN - + 41 + - - 12 + NULLIF ( 54 + ( 45 ), - 66 * - NULLIF ( - 11, COUNT ( * ) + 62 * + 49 ) + - 35 ) THEN NULL WHEN - 27 + - 67 THEN + CASE + COUNT ( * ) WHEN - 71 + - MIN ( ALL + 85 ) * 87 THEN MAX ( - 67 ) * 92 WHEN 75 * + 99 THEN NULL ELSE + 14 END * - 71 + 21 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2545
SELECT - 6 * + COUNT( * ) + + COUNT( * ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-2545
SELECT - 6 * + COUNT ( * ) + + COUNT ( * ) AS col0
----
-5

query II rowsort
SELECT + 13, + 66 * - 94 + - 10 AS col0
----
13
-6214

query I rowsort
SELECT + 40 * - + 82 AS col0
----
-3280

query I rowsort
SELECT ALL + - ( 84 ) AS col0
----
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-2549
SELECT + COUNT( 53 ) + 73 AS col0, 19
----
74
19

skipif mysql # not compatible
query II rowsort label-2549
SELECT + COUNT ( 53 ) + 73 AS col0, 19
----
74
19

onlyif mysql # aggregate syntax: 
query I rowsort label-2550
SELECT ALL - 95 * + 61 - SUM( ALL + - 49 ) AS col0
----
-5746

skipif mysql # not compatible
query I rowsort label-2550
SELECT ALL - 95 * + 61 - SUM ( ALL + - 49 ) AS col0
----
-5746

query I rowsort
SELECT ALL + - ( - 89 ) AS col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2552
SELECT + 25 * + 6 + + 81 - + 21 * - + 2 + + - 57 + COUNT( * ) * - + 51 - - 82 + - + 39 * COUNT( - 35 ) * + 90 col2
----
-3263

skipif mysql # not compatible
query I rowsort label-2552
SELECT + 25 * + 6 + + 81 - + 21 * - + 2 + + - 57 + COUNT ( * ) * - + 51 - - 82 + - + 39 * COUNT ( - 35 ) * + 90 col2
----
-3263

onlyif mysql # aggregate syntax: 
query I rowsort label-2553
SELECT ALL 94 * + - 17 * + ( + CASE COUNT( * ) WHEN - - 22 * 29 * - 51 / 99 THEN NULL WHEN - COUNT( * ) THEN + 31 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2553
SELECT ALL 94 * + - 17 * + ( + CASE COUNT ( * ) WHEN - - 22 * 29 * - 51 / 99 THEN NULL WHEN - COUNT ( * ) THEN + 31 ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2554
SELECT ALL + 53 * + + COUNT( * ) + - 92 AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-2554
SELECT ALL + 53 * + + COUNT ( * ) + - 92 AS col1
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2555
SELECT + + CAST( NULL AS SIGNED ) * - - 9
----
NULL

skipif mysql # not compatible
query I rowsort label-2555
SELECT + + CAST ( NULL AS INTEGER ) * - - 9
----
NULL

query I rowsort
SELECT + + ( 58 ) AS col0
----
58

query I rowsort
SELECT + - 84 + 79 + CASE - + 14 WHEN + 52 + - 19 THEN + + 63 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2558
SELECT - 85 * - 26 + + MAX( + - 71 )
----
2139

skipif mysql # not compatible
query I rowsort label-2558
SELECT - 85 * - 26 + + MAX ( + - 71 )
----
2139

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2559
SELECT - COUNT( ALL + 15 ) DIV - 68 * + 24 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2559
SELECT - COUNT ( ALL + 15 ) / - 68 * + 24 AS col2
----
0

query I rowsort
SELECT ALL + - 44
----
-44

query I rowsort
SELECT + ( 70 ) * + 71
----
4970

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2562
SELECT ALL + COALESCE ( - + 94, 58 * 53 DIV - - 62 * - - 85 - - CASE + - 80 WHEN + COUNT( * ) * COALESCE ( + 55, + 1 * CAST( NULL AS SIGNED ) ) + 66 + 16 THEN NULL WHEN 15 THEN 42 END, COUNT( * ) * + CASE - 27 WHEN SUM( - 55 ) THEN NULL ELSE + 58 END, + 88 ) * 32 AS col1
----
-3008

skipif mysql # not compatible
query I rowsort label-2562
SELECT ALL + COALESCE ( - + 94, 58 * 53 / - - 62 * - - 85 - - CASE + - 80 WHEN + COUNT ( * ) * COALESCE ( + 55, + 1 * CAST ( NULL AS INTEGER ) ) + 66 + 16 THEN NULL WHEN 15 THEN 42 END, COUNT ( * ) * + CASE - 27 WHEN SUM ( - 55 ) THEN NULL ELSE + 58 END, + 88 ) * 32 AS col1
----
-3008

onlyif mysql # DIV for integer division: 
query I rowsort label-2563
SELECT ALL - 26 DIV + + 1 AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-2563
SELECT ALL - 26 / + + 1 AS col1
----
-26

query I rowsort
SELECT DISTINCT + - 26 * + 22 - + 93 + 2 AS col0
----
-663

onlyif mysql # aggregate syntax: 
query I rowsort label-2565
SELECT ALL - - COUNT( 4 ) * + 82
----
82

skipif mysql # not compatible
query I rowsort label-2565
SELECT ALL - - COUNT ( 4 ) * + 82
----
82

query I rowsort
SELECT DISTINCT 58 + - 68
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-2567
SELECT ALL COUNT( * ) * + 23
----
23

skipif mysql # not compatible
query I rowsort label-2567
SELECT ALL COUNT ( * ) * + 23
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2568
SELECT + COALESCE ( + - SUM( DISTINCT + + CASE 33 WHEN 15 THEN + - CAST( + 59 AS SIGNED ) * ( + ( - 5 ) ) ELSE - 9 * CASE 82 WHEN + 23 THEN NULL WHEN CAST( + 80 AS SIGNED ) - + ( + 88 ) * 35 THEN NULL WHEN 37 * 33 THEN 73 * 12 END END ), 91 * - 61 - 46 * - 38 ) DIV 61
----
-62

skipif mysql # not compatible
query I rowsort label-2568
SELECT + COALESCE ( + - SUM ( DISTINCT + + CASE 33 WHEN 15 THEN + - CAST ( + 59 AS INTEGER ) * ( + ( - 5 ) ) ELSE - 9 * CASE 82 WHEN + 23 THEN NULL WHEN CAST ( + 80 AS INTEGER ) - + ( + 88 ) * 35 THEN NULL WHEN 37 * 33 THEN 73 * 12 END END ), 91 * - 61 - 46 * - 38 ) / 61
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-2569
SELECT - 28 DIV + 58
----
0

skipif mysql # not compatible
query I rowsort label-2569
SELECT - 28 / + 58
----
0

query I rowsort
SELECT - ( - ( + 53 ) ) col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-2571
SELECT ALL - 45 + ( - COALESCE ( - - COUNT( * ), - 16 + - 57 * 66 * + 84, NULLIF ( - 11, - - 97 ), - 17 - 37 * + NULLIF ( 42 * 83 + 58, 10 + MAX( ALL - 50 ) ) ) ) + 33
----
-13

skipif mysql # not compatible
query I rowsort label-2571
SELECT ALL - 45 + ( - COALESCE ( - - COUNT ( * ), - 16 + - 57 * 66 * + 84, NULLIF ( - 11, - - 97 ), - 17 - 37 * + NULLIF ( 42 * 83 + 58, 10 + MAX ( ALL - 50 ) ) ) ) + 33
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2572
SELECT + CAST( 50 AS SIGNED ) - 39
----
11

skipif mysql # not compatible
query I rowsort label-2572
SELECT + CAST ( 50 AS INTEGER ) - 39
----
11

query I rowsort
SELECT - 92 + - 26
----
-118

query I rowsort
SELECT ALL 57 * - 69 col1
----
-3933

onlyif mysql # aggregate syntax: 
query I rowsort label-2575
SELECT DISTINCT MIN( - 78 )
----
-78

skipif mysql # not compatible
query I rowsort label-2575
SELECT DISTINCT MIN ( - 78 )
----
-78

query I rowsort
SELECT DISTINCT - ( + 24 ) + + 19
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2577
SELECT ALL CASE + 88 WHEN + 92 + ( + 87 ) * + COUNT( * ) THEN + 96 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2577
SELECT ALL CASE + 88 WHEN + 92 + ( + 87 ) * + COUNT ( * ) THEN + 96 END AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 28 + - - 54
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2579
SELECT DISTINCT CAST( - 76 AS SIGNED )
----
-76

skipif mysql # not compatible
query I rowsort label-2579
SELECT DISTINCT CAST ( - 76 AS INTEGER )
----
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-2580
SELECT ALL - 82 * - CASE 13 WHEN - + COUNT( * ) / 75 THEN COUNT( * ) - - 3 ELSE NULL END / - 81 * + 92 AS col1, + ( - 82 ) AS col2
----
NULL
-82

skipif mysql # not compatible
query II rowsort label-2580
SELECT ALL - 82 * - CASE 13 WHEN - + COUNT ( * ) / 75 THEN COUNT ( * ) - - 3 ELSE NULL END / - 81 * + 92 AS col1, + ( - 82 ) AS col2
----
NULL
-82

query I rowsort
SELECT - 38 + + + 7 + 33
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2582
SELECT DISTINCT - COUNT( * ) + CAST( NULL AS SIGNED ) + + COUNT( * ) * COUNT( - + 48 ) * 37 * - 68 + + + 48 + - ( + 62 ) + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-2582
SELECT DISTINCT - COUNT ( * ) + CAST ( NULL AS INTEGER ) + + COUNT ( * ) * COUNT ( - + 48 ) * 37 * - 68 + + + 48 + - ( + 62 ) + 27
----
NULL

query I rowsort
SELECT ALL ( - + 81 ) AS col2
----
-81

query I rowsort
SELECT - 14 + + 38
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-2585
SELECT ALL + ( + 35 ) DIV 68 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2585
SELECT ALL + ( + 35 ) / 68 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2586
SELECT - 2 DIV + 91 * - NULLIF ( + + ( - 49 ), COALESCE ( 47, 67 * + 68 * 9 * 22 * - ( - 89 ) ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2586
SELECT - 2 / + 91 * - NULLIF ( + + ( - 49 ), COALESCE ( 47, 67 * + 68 * 9 * 22 * - ( - 89 ) ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query III rowsort label-2587
SELECT - 14, + 44 AS col0, - 12 + + COUNT( * ) * + ( 94 ) AS col2
----
-14
44
82

skipif mysql # not compatible
query III rowsort label-2587
SELECT - 14, + 44 AS col0, - 12 + + COUNT ( * ) * + ( 94 ) AS col2
----
-14
44
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2588
SELECT ( 29 ) * + COUNT( * ) + + 13 + 50 AS col0
----
92

skipif mysql # not compatible
query I rowsort label-2588
SELECT ( 29 ) * + COUNT ( * ) + + 13 + 50 AS col0
----
92

query I rowsort
SELECT ALL + + 37 * + 6 AS col2
----
222

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2590
SELECT ALL 4 DIV MAX( ALL 97 ) + + SUM( - 34 ) - 40
----
-74

skipif mysql # not compatible
query I rowsort label-2590
SELECT ALL 4 / MAX ( ALL 97 ) + + SUM ( - 34 ) - 40
----
-74

query I rowsort
SELECT ALL + - 26 AS col2
----
-26

query I rowsort
SELECT DISTINCT + + 62 * + ( + 53 ) + + + NULLIF ( + 34, ( ( + 97 ) ) + 59 ) AS col2
----
3320

query I rowsort
SELECT + + 4 * - 94 * - - 64
----
-24064

onlyif mysql # DIV for integer division: 
query I rowsort label-2594
SELECT ALL - 93 DIV 75
----
-1

skipif mysql # not compatible
query I rowsort label-2594
SELECT ALL - 93 / 75
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2595
SELECT CASE - 98 WHEN + ( - - ( 43 ) ) THEN - COUNT( + CAST( NULL AS SIGNED ) ) WHEN + 91 - CASE + + 76 WHEN + + COALESCE ( 40, ( - 78 ) ) THEN NULL ELSE - 45 END THEN 41 ELSE 70 END
----
70

skipif mysql # not compatible
query I rowsort label-2595
SELECT CASE - 98 WHEN + ( - - ( 43 ) ) THEN - COUNT ( + CAST ( NULL AS INTEGER ) ) WHEN + 91 - CASE + + 76 WHEN + + COALESCE ( 40, ( - 78 ) ) THEN NULL ELSE - 45 END THEN 41 ELSE 70 END
----
70

query I rowsort
SELECT - 71 - + 49 AS col0
----
-120

query II rowsort
SELECT DISTINCT + + 10 AS col2, - 74 AS col0
----
10
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-2598
SELECT - 84 - - ( - + COUNT( * ) ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-2598
SELECT - 84 - - ( - + COUNT ( * ) ) AS col0
----
-85

query II rowsort
SELECT DISTINCT + 77, 56 AS col1
----
77
56

query II rowsort
SELECT DISTINCT + 64 col1, - NULLIF ( + 35, - ( 44 ) + - 52 ) - - - 13
----
64
-48

query I rowsort
SELECT DISTINCT + + 77
----
77

query I rowsort
SELECT ALL + + 51 AS col2
----
51

query I rowsort
SELECT + - ( - 76 )
----
76

query II rowsort
SELECT ALL + 26 AS col2, 88
----
26
88

query II rowsort
SELECT DISTINCT + 57 AS col0, - 85
----
57
-85

query II rowsort
SELECT ALL + 15 AS col0, 44
----
15
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2607
SELECT + + COUNT( * ) - - + 82
----
83

skipif mysql # not compatible
query I rowsort label-2607
SELECT + + COUNT ( * ) - - + 82
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-2608
SELECT ALL + - 17, COUNT( * ) * - 6 * 37 AS col0
----
-17
-222

skipif mysql # not compatible
query II rowsort label-2608
SELECT ALL + - 17, COUNT ( * ) * - 6 * 37 AS col0
----
-17
-222

query I rowsort
SELECT DISTINCT - 47 * - + 29 AS col2
----
1363

onlyif mysql # aggregate syntax: 
query I rowsort label-2610
SELECT + 87 * - - SUM( + - 7 ) AS col2
----
-609

skipif mysql # not compatible
query I rowsort label-2610
SELECT + 87 * - - SUM ( + - 7 ) AS col2
----
-609

onlyif mysql # aggregate syntax: 
query I rowsort label-2611
SELECT ALL COUNT( * ) + + 76 AS col2
----
77

skipif mysql # not compatible
query I rowsort label-2611
SELECT ALL COUNT ( * ) + + 76 AS col2
----
77

query II rowsort
SELECT ALL 69 + - - 41 AS col2, 15 - + - 60 AS col0
----
110
75

query I rowsort
SELECT 98 + + 2 + + 36 AS col1
----
136

query I rowsort
SELECT ( + 77 ) + 39 + 52 * 35
----
1936

onlyif mysql # aggregate syntax: 
query I rowsort label-2615
SELECT ALL MAX( DISTINCT + 78 ) + - - COUNT( * ) * + 2
----
80

skipif mysql # not compatible
query I rowsort label-2615
SELECT ALL MAX ( DISTINCT + 78 ) + - - COUNT ( * ) * + 2
----
80

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2616
SELECT ALL AVG ( DISTINCT - CAST( NULL AS DECIMAL ) ) + + + 14 + + - 3 * - - 6 * 80 + + + 28 / 92 * + 40 - - - 85 * SUM( 91 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2616
SELECT ALL AVG ( DISTINCT - CAST ( NULL AS REAL ) ) + + + 14 + + - 3 * - - 6 * 80 + + + 28 / 92 * + 40 - - - 85 * SUM ( 91 )
----
NULL

query I rowsort
SELECT DISTINCT 68 + + + 78 AS col0
----
146

query I rowsort
SELECT ALL + 51 * - 44 AS col0
----
-2244

query II rowsort
SELECT ALL - 96 - 38, 35 AS col1
----
-134
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2620
SELECT 42 + + + COUNT( * ) * - 71
----
-29

skipif mysql # not compatible
query I rowsort label-2620
SELECT 42 + + + COUNT ( * ) * - 71
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2621
SELECT DISTINCT CAST( - - 33 AS SIGNED ) * ( + - 96 ) + - 85
----
-3253

skipif mysql # not compatible
query I rowsort label-2621
SELECT DISTINCT CAST ( - - 33 AS INTEGER ) * ( + - 96 ) + - 85
----
-3253

query I rowsort
SELECT 23 * - ( 51 ) AS col0
----
-1173

query I rowsort
SELECT - 1 col1
----
-1

query I rowsort
SELECT ALL 2 col1
----
2

query I rowsort
SELECT 29 - - 5 AS col1
----
34

query I rowsort
SELECT 27 AS col0
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-2627
SELECT DISTINCT + 79 - + + COUNT( * ) col0, 51 col0
----
78
51

skipif mysql # not compatible
query II rowsort label-2627
SELECT DISTINCT + 79 - + + COUNT ( * ) col0, 51 col0
----
78
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2628
SELECT CAST( + 34 AS SIGNED ) * - 19 col0
----
-646

skipif mysql # not compatible
query I rowsort label-2628
SELECT CAST ( + 34 AS INTEGER ) * - 19 col0
----
-646

query I rowsort
SELECT DISTINCT - 30 AS col0
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-2630
SELECT - COUNT( * ) - 45, MAX( 66 ) + COUNT( * ) AS col2
----
-46
67

skipif mysql # not compatible
query II rowsort label-2630
SELECT - COUNT ( * ) - 45, MAX ( 66 ) + COUNT ( * ) AS col2
----
-46
67

query I rowsort
SELECT ALL - - 76 AS col2
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2632
SELECT 51 * + CASE - 51 WHEN + 35 + - 5 THEN 18 * 31 - - + 41 - - + 79 WHEN + - 93 THEN NULL END * CASE 95 WHEN 49 * - 42 THEN - 46 WHEN 35 THEN COUNT( * ) - CAST( - CASE + 15 WHEN 57 * 68 THEN 94 WHEN ( 72 ) THEN NULL ELSE - ( - 37 ) END + + 48 * + 46 AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2632
SELECT 51 * + CASE - 51 WHEN + 35 + - 5 THEN 18 * 31 - - + 41 - - + 79 WHEN + - 93 THEN NULL END * CASE 95 WHEN 49 * - 42 THEN - 46 WHEN 35 THEN COUNT ( * ) - CAST ( - CASE + 15 WHEN 57 * 68 THEN 94 WHEN ( 72 ) THEN NULL ELSE - ( - 37 ) END + + 48 * + 46 AS INTEGER ) END AS col0
----
NULL

query I rowsort
SELECT - 16 * 75
----
-1200

query I rowsort
SELECT + + 93 * + 66 - 70 + 49 AS col0
----
6117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2635
SELECT + COUNT( - 50 ) + - - 92 - + CAST( + 65 AS SIGNED ) * - 5 AS col1
----
418

skipif mysql # not compatible
query I rowsort label-2635
SELECT + COUNT ( - 50 ) + - - 92 - + CAST ( + 65 AS INTEGER ) * - 5 AS col1
----
418

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2636
SELECT ALL - + ( + COUNT( * ) ) AS col2, 27 + COUNT( * ) - - - 74 DIV + - 67
----
-1
29

skipif mysql # not compatible
query II rowsort label-2636
SELECT ALL - + ( + COUNT ( * ) ) AS col2, 27 + COUNT ( * ) - - - 74 / + - 67
----
-1
29

query I rowsort
SELECT - 13 * - 32 + + + 99
----
515

onlyif mysql # aggregate syntax: 
query I rowsort label-2638
SELECT ALL - COUNT( * ) + - 48 + 29
----
-20

skipif mysql # not compatible
query I rowsort label-2638
SELECT ALL - COUNT ( * ) + - 48 + 29
----
-20

query I rowsort
SELECT DISTINCT - + 40
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2640
SELECT + COUNT( * ) DIV 64 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2640
SELECT + COUNT ( * ) / 64 AS col1
----
0

query I rowsort
SELECT DISTINCT + - ( 0 ) + + 67
----
67

query I rowsort
SELECT ALL 62 + ( ( - 44 ) )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2643
SELECT - 32 + - - COUNT( * )
----
-31

skipif mysql # not compatible
query I rowsort label-2643
SELECT - 32 + - - COUNT ( * )
----
-31

query I rowsort
SELECT ALL + 35 + + 80
----
115

query I rowsort
SELECT DISTINCT - - 6 AS col0
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2646
SELECT - SUM( + 20 ) DIV - - 80 * 54 - - + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-2646
SELECT - SUM ( + 20 ) / - - 80 * 54 - - + COUNT ( * )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2647
SELECT 89 + + CASE + - 41 WHEN 26 * + 27 THEN NULL WHEN - 37 * - ( + COALESCE ( - + CASE + 87 WHEN - 84 + CAST( COALESCE ( MAX( 95 ), - 67 * COUNT( * ) ) AS DECIMAL ) / + 99 THEN 82 + + 62 ELSE NULL END, 47 * 37 ) ) + - CAST( - 45 + - 39 * - 86 AS SIGNED ) THEN 60 + 95 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2647
SELECT 89 + + CASE + - 41 WHEN 26 * + 27 THEN NULL WHEN - 37 * - ( + COALESCE ( - + CASE + 87 WHEN - 84 + CAST ( COALESCE ( MAX ( 95 ), - 67 * COUNT ( * ) ) AS REAL ) / + 99 THEN 82 + + 62 ELSE NULL END, 47 * 37 ) ) + - CAST ( - 45 + - 39 * - 86 AS INTEGER ) THEN 60 + 95 END
----
NULL

query I rowsort
SELECT DISTINCT - + 24
----
-24

query I rowsort
SELECT + 66 col1
----
66

query I rowsort
SELECT DISTINCT NULLIF ( + + 12, + 67 ) + - ( - 91 )
----
103

query I rowsort
SELECT DISTINCT - ( 34 ) AS col2
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-2652
SELECT COUNT( * ) * 41 col1
----
41

skipif mysql # not compatible
query I rowsort label-2652
SELECT COUNT ( * ) * 41 col1
----
41

query I rowsort
SELECT DISTINCT - 91 AS col2
----
-91

query I rowsort
SELECT DISTINCT + COALESCE ( 57, - 54, + - 27 ) - - 96 col1
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-2655
SELECT COUNT( * ) * 40
----
40

skipif mysql # not compatible
query I rowsort label-2655
SELECT COUNT ( * ) * 40
----
40

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2656
SELECT ALL CAST( NULL AS DECIMAL ) * 80
----
NULL

skipif mysql # not compatible
query I rowsort label-2656
SELECT ALL CAST ( NULL AS REAL ) * 80
----
NULL

query II rowsort
SELECT - 44, 5 AS col0
----
-44
5

query II rowsort
SELECT ALL 46 AS col2, + 52 col2
----
46
52

query I rowsort
SELECT 29 + + + 97
----
126

query I rowsort
SELECT ( 48 ) - - - CASE - 21 WHEN - 50 - + + ( COALESCE ( + 92, 78 - + 33 + + 72 / - 19 ) ) THEN NULL ELSE 62 END
----
-14

query I rowsort
SELECT 39 + 17 AS col0
----
56

query II rowsort
SELECT 69 AS col1, 92
----
69
92

onlyif mysql # aggregate syntax: 
query II rowsort label-2663
SELECT ALL 54, - 55 + + - 52 + + MAX( - 52 ) AS col1
----
54
-159

skipif mysql # not compatible
query II rowsort label-2663
SELECT ALL 54, - 55 + + - 52 + + MAX ( - 52 ) AS col1
----
54
-159

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2664
SELECT DISTINCT 8 DIV - 52 * ( - 89 ) * - 86 * - + SUM( ALL - - 36 ) + - + 35 AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-2664
SELECT DISTINCT 8 / - 52 * ( - 89 ) * - 86 * - + SUM ( ALL - - 36 ) + - + 35 AS col0
----
-35

query I rowsort
SELECT ALL 8 AS col2
----
8

query I rowsort
SELECT 58 * - 2
----
-116

query I rowsort
SELECT ALL - 20 * 60
----
-1200

onlyif mysql # DIV for integer division: 
query I rowsort label-2668
SELECT DISTINCT 55 DIV 59 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2668
SELECT DISTINCT 55 / 59 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2669
SELECT 17 + - - 72 * - - 26 * ( - COUNT( * ) )
----
-1855

skipif mysql # not compatible
query I rowsort label-2669
SELECT 17 + - - 72 * - - 26 * ( - COUNT ( * ) )
----
-1855

query I rowsort
SELECT - 91 - - ( 12 ) / CASE + 69 WHEN - 47 THEN 22 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2671
SELECT - 30 DIV + 64 * + + 55
----
0

skipif mysql # not compatible
query I rowsort label-2671
SELECT - 30 / + 64 * + + 55
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2672
SELECT + COALESCE ( + 74, - + ( - 41 ) ) + + - ( - COUNT( * ) ) AS col1
----
75

skipif mysql # not compatible
query I rowsort label-2672
SELECT + COALESCE ( + 74, - + ( - 41 ) ) + + - ( - COUNT ( * ) ) AS col1
----
75

query I rowsort
SELECT ALL + 65 * + 97 + - - 28 + - + ( 21 ) * + + 98
----
4275

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2674
SELECT - CAST( + + 75 AS SIGNED ) AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-2674
SELECT - CAST ( + + 75 AS INTEGER ) AS col1
----
-75

query I rowsort
SELECT 66 * + 68
----
4488

onlyif mysql # aggregate syntax: 
query I rowsort label-2676
SELECT + 14 * + - COUNT( * ) + + + 69 * - 94 AS col2
----
-6500

skipif mysql # not compatible
query I rowsort label-2676
SELECT + 14 * + - COUNT ( * ) + + + 69 * - 94 AS col2
----
-6500

query II rowsort
SELECT DISTINCT 55 AS col2, 16 AS col0
----
55
16

query I rowsort
SELECT - - ( - 53 )
----
-53

query II rowsort
SELECT - + 43 AS col0, + 12
----
-43
12

query I rowsort
SELECT ALL 65 * - - 30 + - 24 + 26 * - - 82 * - 54
----
-113202

query II rowsort
SELECT - 0, CASE - 40 WHEN - + 9 THEN NULL ELSE 97 END + - 6 AS col2
----
0
91

query I rowsort
SELECT - 34 AS col1
----
-34

query I rowsort
SELECT ALL - 25 col1
----
-25

query I rowsort
SELECT + ( - 57 ) AS col1
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-2685
SELECT DISTINCT - - 79 * - - ( + ( 92 ) ) + + - COUNT( + 28 ) + - + 37 * - + 85 * 25 + + 88 * + 57 * - 31 * - + 2 + 33
----
396917

skipif mysql # not compatible
query I rowsort label-2685
SELECT DISTINCT - - 79 * - - ( + ( 92 ) ) + + - COUNT ( + 28 ) + - + 37 * - + 85 * 25 + + 88 * + 57 * - 31 * - + 2 + 33
----
396917

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2686
SELECT ALL + + COALESCE ( + + 49, - COUNT( * ) * 76 ) * + 96 - 70 + + COUNT( * ) + - + 59, 70 + + 28 * + 18 DIV 9 + + 43 AS col2
----
4576
169

skipif mysql # not compatible
query II rowsort label-2686
SELECT ALL + + COALESCE ( + + 49, - COUNT ( * ) * 76 ) * + 96 - 70 + + COUNT ( * ) + - + 59, 70 + + 28 * + 18 / 9 + + 43 AS col2
----
4576
169

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2687
SELECT + CAST( + - 46 AS SIGNED )
----
-46

skipif mysql # not compatible
query I rowsort label-2687
SELECT + CAST ( + - 46 AS INTEGER )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2688
SELECT - 52 * COUNT( * ) AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-2688
SELECT - 52 * COUNT ( * ) AS col1
----
-52

query I rowsort
SELECT DISTINCT - 68 * + 60
----
-4080

query I rowsort
SELECT DISTINCT + ( - + 5 )
----
-5

query I rowsort
SELECT DISTINCT + 94 AS col1
----
94

query I rowsort
SELECT - 21 - + - ( - 15 )
----
-36

query I rowsort
SELECT DISTINCT + 71 AS col0
----
71

query I rowsort
SELECT - 15 * + 46 * - 41 AS col2
----
28290

onlyif mysql # aggregate syntax: 
query I rowsort label-2695
SELECT DISTINCT + MAX( ALL - 48 )
----
-48

skipif mysql # not compatible
query I rowsort label-2695
SELECT DISTINCT + MAX ( ALL - 48 )
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2696
SELECT - 62 + + COUNT( * ) DIV 99 AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-2696
SELECT - 62 + + COUNT ( * ) / 99 AS col0
----
-62

query I rowsort
SELECT DISTINCT COALESCE ( - 2, + 56 )
----
-2

query I rowsort
SELECT ALL COALESCE ( + 62, + 70 * + 52, 52 )
----
62

query I rowsort
SELECT ALL 2 * - 40 AS col1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2700
SELECT DISTINCT ( - MIN( DISTINCT + - 24 ) )
----
24

skipif mysql # not compatible
query I rowsort label-2700
SELECT DISTINCT ( - MIN ( DISTINCT + - 24 ) )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2701
SELECT DISTINCT 49 * + 42 + + + 58 + + ( - CASE WHEN NOT - 76 IS NULL THEN + 34 + 26 - + COUNT( * ) END ) + - 84 AS col0
----
1973

skipif mysql # not compatible
query I rowsort label-2701
SELECT DISTINCT 49 * + 42 + + + 58 + + ( - CASE WHEN NOT - 76 IS NULL THEN + 34 + 26 - + COUNT ( * ) END ) + - 84 AS col0
----
1973

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2702
SELECT + CAST( 82 AS SIGNED )
----
82

skipif mysql # not compatible
query I rowsort label-2702
SELECT + CAST ( 82 AS INTEGER )
----
82

query II rowsort
SELECT + 37 + + + 95 AS col1, 65 AS col1
----
132
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2704
SELECT NULLIF ( - MIN( DISTINCT 72 ), 2 ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-2704
SELECT NULLIF ( - MIN ( DISTINCT 72 ), 2 ) AS col2
----
-72

query I rowsort
SELECT + 51 + + + 1 col0
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-2706
SELECT + 64 DIV - 2 + 87
----
55

skipif mysql # not compatible
query I rowsort label-2706
SELECT + 64 / - 2 + 87
----
55

query I rowsort
SELECT ALL 34 + - 87 AS col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-2708
SELECT ALL + 79 + + - COALESCE ( + 74, - SUM( - - 99 ), + 6 ) + - 21 + + 92 AS col2
----
76

skipif mysql # not compatible
query I rowsort label-2708
SELECT ALL + 79 + + - COALESCE ( + 74, - SUM ( - - 99 ), + 6 ) + - 21 + + 92 AS col2
----
76

query I rowsort
SELECT DISTINCT COALESCE ( 42, - + 84 )
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2710
SELECT ALL - ( + COUNT( * ) ) DIV - SUM( + 33 )
----
0

skipif mysql # not compatible
query I rowsort label-2710
SELECT ALL - ( + COUNT ( * ) ) / - SUM ( + 33 )
----
0

query I rowsort
SELECT + - 4 + - - 53
----
49

query I rowsort
SELECT + + ( - 41 )
----
-41

query I rowsort
SELECT + - 54 * - 88
----
4752

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2714
SELECT + MAX( + - 46 ) + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2714
SELECT + MAX ( + - 46 ) + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2715
SELECT - 33 * - 43 - - 10 + + 3 * - + COUNT( * ) DIV 22 * + - 48 * + CASE + 87 WHEN - SUM( DISTINCT + 11 ) THEN NULL ELSE 36 * - 4 + - 5 + 64 END * 19 AS col1
----
1429

skipif mysql # not compatible
query I rowsort label-2715
SELECT - 33 * - 43 - - 10 + + 3 * - + COUNT ( * ) / 22 * + - 48 * + CASE + 87 WHEN - SUM ( DISTINCT + 11 ) THEN NULL ELSE 36 * - 4 + - 5 + 64 END * 19 AS col1
----
1429

query I rowsort
SELECT ALL 11 * + 55 + - 64 col0
----
541

onlyif mysql # aggregate syntax: 
query I rowsort label-2717
SELECT - + ( 55 ) * + 63 + NULLIF ( + 42, COALESCE ( + COUNT( * ), - 79 * 70 * - COUNT( * ) * ( + 55 ) + + 66, - 79 + - 59 * 47 ) * + 64 + 52 ) AS col1
----
-3423

skipif mysql # not compatible
query I rowsort label-2717
SELECT - + ( 55 ) * + 63 + NULLIF ( + 42, COALESCE ( + COUNT ( * ), - 79 * 70 * - COUNT ( * ) * ( + 55 ) + + 66, - 79 + - 59 * 47 ) * + 64 + 52 ) AS col1
----
-3423

query I rowsort
SELECT ALL - 86 * 42 - + - 99 + 91 AS col1
----
-3422

query I rowsort
SELECT ( + + 43 )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-2720
SELECT ALL + COUNT( + - 73 )
----
1

skipif mysql # not compatible
query I rowsort label-2720
SELECT ALL + COUNT ( + - 73 )
----
1

query I rowsort
SELECT ( + 11 )
----
11

query I rowsort
SELECT ( 64 )
----
64

query I rowsort
SELECT ALL + 87 col1
----
87

query I rowsort
SELECT + 86 * 77 AS col2
----
6622

query I rowsort
SELECT - 92 * - + 16
----
1472

query I rowsort
SELECT + 92 * + 53 + 84 AS col1
----
4960

query I rowsort
SELECT DISTINCT - 47 * - 36
----
1692

query I rowsort
SELECT ALL + ( - 67 )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-2729
SELECT DISTINCT + COUNT( + 19 )
----
1

skipif mysql # not compatible
query I rowsort label-2729
SELECT DISTINCT + COUNT ( + 19 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2730
SELECT ALL COUNT( * ) DIV - - 81 * 59 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2730
SELECT ALL COUNT ( * ) / - - 81 * 59 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2731
SELECT - 56 * + - COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-2731
SELECT - 56 * + - COUNT ( * )
----
56

query I rowsort
SELECT DISTINCT - 20 * - 7
----
140

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2734
SELECT ALL + CASE + CAST( - - 61 AS SIGNED ) WHEN + + CAST( NULL AS SIGNED ) / + NULLIF ( - 55, + - AVG ( DISTINCT + 30 ) * - + 1 + - 61 ) + - - 48 + + 45 + - + 79 + + + ( + CAST( NULL AS SIGNED ) ) * - COUNT( * ) THEN - 21 WHEN + 57 THEN - 40 + 68 / 66 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2734
SELECT ALL + CASE + CAST ( - - 61 AS INTEGER ) WHEN + + CAST ( NULL AS INTEGER ) / + NULLIF ( - 55, + - AVG ( DISTINCT + 30 ) * - + 1 + - 61 ) + - - 48 + + 45 + - + 79 + + + ( + CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) THEN - 21 WHEN + 57 THEN - 40 + 68 / 66 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2735
SELECT ALL CAST( + 91 AS SIGNED )
----
91

skipif mysql # not compatible
query I rowsort label-2735
SELECT ALL CAST ( + 91 AS INTEGER )
----
91

query I rowsort
SELECT - 52 AS col2
----
-52

query I rowsort
SELECT ALL + 29 * - - 14
----
406

onlyif mysql # DIV for integer division: 
query I rowsort label-2738
SELECT - 20 DIV + - 77
----
0

skipif mysql # not compatible
query I rowsort label-2738
SELECT - 20 / + - 77
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2739
SELECT - COUNT( * ) + - 15
----
-16

skipif mysql # not compatible
query I rowsort label-2739
SELECT - COUNT ( * ) + - 15
----
-16

query I rowsort
SELECT DISTINCT 22 * - 13 * 13 + 5
----
-3713

onlyif mysql # aggregate syntax: 
query I rowsort label-2741
SELECT 93 * - 93 + COUNT( * )
----
-8648

skipif mysql # not compatible
query I rowsort label-2741
SELECT 93 * - 93 + COUNT ( * )
----
-8648

query I rowsort
SELECT ALL 29 * - 68 + - 75 * + - 18 AS col0
----
-622

query I rowsort
SELECT - 21 + 38 AS col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2744
SELECT - COUNT( * ) - - 99 AS col1
----
98

skipif mysql # not compatible
query I rowsort label-2744
SELECT - COUNT ( * ) - - 99 AS col1
----
98

query I rowsort
SELECT - + 93 col0
----
-93

query I rowsort
SELECT ALL - 36 col2
----
-36

query I rowsort
SELECT - - 69 * - 35 + - - ( 0 ) AS col2
----
-2415

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2748
SELECT ALL - 63 + + 93 * - + 65 + + + COUNT( * ) + + 44 + 75 + - COUNT( 90 ) * 23 / + 61 - - - ( - AVG ( ALL + 6 ) ) * 79 * + - COUNT( * ) * CAST( NULL AS DECIMAL ) * 30
----
NULL

skipif mysql # not compatible
query I rowsort label-2748
SELECT ALL - 63 + + 93 * - + 65 + + + COUNT ( * ) + + 44 + 75 + - COUNT ( 90 ) * 23 / + 61 - - - ( - AVG ( ALL + 6 ) ) * 79 * + - COUNT ( * ) * CAST ( NULL AS REAL ) * 30
----
NULL

query I rowsort
SELECT ALL + 5 + 67
----
72

query II rowsort
SELECT DISTINCT ( + + 61 ) + - 5 col1, + 67
----
56
67

onlyif mysql # DIV for integer division: 
query I rowsort label-2751
SELECT ALL + 83 + - 49 DIV + - 16 col1
----
86

skipif mysql # not compatible
query I rowsort label-2751
SELECT ALL + 83 + - 49 / + - 16 col1
----
86

query I rowsort
SELECT ALL - 24 * 35 * + 88 * 11 AS col1
----
-813120

onlyif mysql # aggregate syntax: 
query I rowsort label-2753
SELECT - COALESCE ( + 76, COUNT( * ) )
----
-76

skipif mysql # not compatible
query I rowsort label-2753
SELECT - COALESCE ( + 76, COUNT ( * ) )
----
-76

query I rowsort
SELECT + 71 + 67 AS col0
----
138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2755
SELECT - - COALESCE ( - MIN( DISTINCT - 57 ), + ( + 9 ) * - 33 + + ( CAST( 84 AS SIGNED ) ) + 66 * + - ( - 28 ) DIV + 74 ) col0
----
57

skipif mysql # not compatible
query I rowsort label-2755
SELECT - - COALESCE ( - MIN ( DISTINCT - 57 ), + ( + 9 ) * - 33 + + ( CAST ( 84 AS INTEGER ) ) + 66 * + - ( - 28 ) / + 74 ) col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2756
SELECT ALL CASE + 84 WHEN - 66 THEN - MAX( ALL - 82 ) * 61 + + ( - 9 ) - + + 36 ELSE + 22 END
----
22

skipif mysql # not compatible
query I rowsort label-2756
SELECT ALL CASE + 84 WHEN - 66 THEN - MAX ( ALL - 82 ) * 61 + + ( - 9 ) - + + 36 ELSE + 22 END
----
22

query I rowsort
SELECT ALL + COALESCE ( + 84, 13 * 37, + ( 20 ) * + + ( 97 ) - - 59, - + 57 * + - ( + 22 ) ) + 74
----
158

query II rowsort
SELECT + 35 AS col0, + NULLIF ( + 93, 88 ) AS col1
----
35
93

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2759
SELECT 95 + + 31 + + - CAST( NULL AS DECIMAL ) * - CAST( NULL AS DECIMAL ) * 73 * + - 88 + - 45
----
NULL

skipif mysql # not compatible
query I rowsort label-2759
SELECT 95 + + 31 + + - CAST ( NULL AS REAL ) * - CAST ( NULL AS REAL ) * 73 * + - 88 + - 45
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2760
SELECT ALL 68 + CAST( NULL AS SIGNED ) - + 72 - + MIN( 1 ) + + 72 * + - 55 * + - 0 * + 80 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2760
SELECT ALL 68 + CAST ( NULL AS INTEGER ) - + 72 - + MIN ( 1 ) + + 72 * + - 55 * + - 0 * + 80 AS col2
----
NULL

query I rowsort
SELECT - + 28 AS col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-2762
SELECT + 21 + - + 71 * + COUNT( * )
----
-50

skipif mysql # not compatible
query I rowsort label-2762
SELECT + 21 + - + 71 * + COUNT ( * )
----
-50

query I rowsort
SELECT 87 * - 50 AS col1
----
-4350

onlyif mysql # aggregate syntax: 
query II rowsort label-2764
SELECT ALL 58, - 56 * + COUNT( * ) AS col1
----
58
-56

skipif mysql # not compatible
query II rowsort label-2764
SELECT ALL 58, - 56 * + COUNT ( * ) AS col1
----
58
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-2765
SELECT ALL + - COUNT( * ) - - 97 - + 3
----
93

skipif mysql # not compatible
query I rowsort label-2765
SELECT ALL + - COUNT ( * ) - - 97 - + 3
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-2766
SELECT DISTINCT 13 DIV + - 92
----
0

skipif mysql # not compatible
query I rowsort label-2766
SELECT DISTINCT 13 / + - 92
----
0

query I rowsort
SELECT ALL - 6 - 28 col1
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2768
SELECT DISTINCT + 48 DIV - MIN( - 86 )
----
0

skipif mysql # not compatible
query I rowsort label-2768
SELECT DISTINCT + 48 / - MIN ( - 86 )
----
0

query II rowsort
SELECT ALL - 72 AS col0, 8 * 14
----
-72
112

query I rowsort
SELECT 13 * - 99
----
-1287

onlyif mysql # aggregate syntax: 
query I rowsort label-2771
SELECT COUNT( * ) * - - 44 AS col2
----
44

skipif mysql # not compatible
query I rowsort label-2771
SELECT COUNT ( * ) * - - 44 AS col2
----
44

query I rowsort
SELECT ALL ( + 36 ) * + - 89 AS col2
----
-3204

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2773
SELECT CAST( 96 AS SIGNED ) DIV + 78 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2773
SELECT CAST ( 96 AS INTEGER ) / + 78 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2774
SELECT ALL 74 * + MAX( ALL - + 41 )
----
-3034

skipif mysql # not compatible
query I rowsort label-2774
SELECT ALL 74 * + MAX ( ALL - + 41 )
----
-3034

onlyif mysql # aggregate syntax: 
query I rowsort label-2775
SELECT DISTINCT COUNT( * ) * - 61 * + 76 AS col2
----
-4636

skipif mysql # not compatible
query I rowsort label-2775
SELECT DISTINCT COUNT ( * ) * - 61 * + 76 AS col2
----
-4636

query II rowsort
SELECT ALL - 22, + ( - 92 ) AS col1
----
-22
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2777
SELECT DISTINCT - COALESCE ( + NULLIF ( CASE COUNT( * ) WHEN - CAST( NULL AS SIGNED ) - 60 THEN COUNT( * ) + + 40 WHEN - 18 + 21 THEN - 65 * 67 * 51 + - 71 END, + - COUNT( * ) ), - 41 + - 75, COALESCE ( - 57, - 25 ) * COUNT( + 95 * - 44 ), + COUNT( * ) DIV 65 ) AS col0
----
116

skipif mysql # not compatible
query I rowsort label-2777
SELECT DISTINCT - COALESCE ( + NULLIF ( CASE COUNT ( * ) WHEN - CAST ( NULL AS INTEGER ) - 60 THEN COUNT ( * ) + + 40 WHEN - 18 + 21 THEN - 65 * 67 * 51 + - 71 END, + - COUNT ( * ) ), - 41 + - 75, COALESCE ( - 57, - 25 ) * COUNT ( + 95 * - 44 ), + COUNT ( * ) / 65 ) AS col0
----
116

query I rowsort
SELECT + ( + - 99 ) * - 39 * - 33 + 29 + + - 78 * - 76 * - + 32 * + + 89 - - ( 63 )
----
-17010265

query II rowsort
SELECT + 52, 53 AS col0
----
52
53

onlyif mysql # aggregate syntax: 
query I rowsort label-2780
SELECT 83 * + COUNT( * ) col2
----
83

skipif mysql # not compatible
query I rowsort label-2780
SELECT 83 * + COUNT ( * ) col2
----
83

query I rowsort
SELECT ALL - 71 + - 26
----
-97

query I rowsort
SELECT + 7 col1
----
7

query I rowsort
SELECT ALL - 62 + - 9 AS col0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-2784
SELECT ( - 61 ) + + ( + 91 ) + + + COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-2784
SELECT ( - 61 ) + + ( + 91 ) + + + COUNT ( * )
----
31

query II rowsort
SELECT 28 AS col1, + 26 AS col1
----
28
26

query I rowsort
SELECT ALL + - 50 * 13 * + 28
----
-18200

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2787
SELECT + COUNT( * ) DIV - - 10 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2787
SELECT + COUNT ( * ) / - - 10 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2788
SELECT ALL - ( - MIN( ALL + - 81 ) ) + + 90 AS col2, - CAST( - + 28 AS SIGNED ) DIV - 73 AS col1
----
9
0

skipif mysql # not compatible
query II rowsort label-2788
SELECT ALL - ( - MIN ( ALL + - 81 ) ) + + 90 AS col2, - CAST ( - + 28 AS INTEGER ) / - 73 AS col1
----
9
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2789
SELECT - MIN( + + 82 ) AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-2789
SELECT - MIN ( + + 82 ) AS col1
----
-82

query I rowsort
SELECT ALL + + 58 * - 10 * + 87
----
-50460

query I rowsort
SELECT DISTINCT - - 96 + - + NULLIF ( + 70, + 65 * + 62 ) AS col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2792
SELECT ( - + COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2792
SELECT ( - + COUNT ( * ) ) AS col1
----
-1

query II rowsort
SELECT ALL - + 46 - + + 96 AS col2, - 96
----
-142
-96

query I rowsort
SELECT 20 * + ( 37 ) + + 71 + 27 AS col1
----
838

query II rowsort
SELECT - + 64 col1, + 32 AS col2
----
-64
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2796
SELECT 51 + - + COUNT( * ) + + ( 42 )
----
92

skipif mysql # not compatible
query I rowsort label-2796
SELECT 51 + - + COUNT ( * ) + + ( 42 )
----
92

query I rowsort
SELECT DISTINCT NULLIF ( - 33, + 64 ) AS col0
----
-33

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2798
SELECT + CAST( NULL AS DECIMAL ) + + - 15
----
NULL

skipif mysql # not compatible
query I rowsort label-2798
SELECT + CAST ( NULL AS REAL ) + + - 15
----
NULL

query I rowsort
SELECT ALL + 10 - - - 95 + 66 AS col0
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2800
SELECT ALL CAST( NULL AS SIGNED ) * + AVG ( ALL + 71 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2800
SELECT ALL CAST ( NULL AS INTEGER ) * + AVG ( ALL + 71 ) AS col0
----
NULL

query I rowsort
SELECT 20 - + + 48 AS col1
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-2802
SELECT ALL 37 AS col2, COUNT( ALL + 44 )
----
37
1

skipif mysql # not compatible
query II rowsort label-2802
SELECT ALL 37 AS col2, COUNT ( ALL + 44 )
----
37
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2803
SELECT DISTINCT + MIN( + - 46 ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-2803
SELECT DISTINCT + MIN ( + - 46 ) AS col2
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2804
SELECT CAST( - + 69 AS SIGNED ) * + 24
----
-1656

skipif mysql # not compatible
query I rowsort label-2804
SELECT CAST ( - + 69 AS INTEGER ) * + 24
----
-1656

query II rowsort
SELECT - - 69, - 26 AS col2
----
69
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2806
SELECT 12 + 14 DIV + + 94 + + + 84 + + + 64 * COUNT( * )
----
160

skipif mysql # not compatible
query I rowsort label-2806
SELECT 12 + 14 / + + 94 + + + 84 + + + 64 * COUNT ( * )
----
160

query I rowsort
SELECT 13 * NULLIF ( - 15, + - 55 )
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-2808
SELECT COUNT( * ) * - COUNT( * ) + - 15 + - 12
----
-28

skipif mysql # not compatible
query I rowsort label-2808
SELECT COUNT ( * ) * - COUNT ( * ) + - 15 + - 12
----
-28

query I rowsort
SELECT DISTINCT - 94 col0
----
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-2810
SELECT 32 + - SUM( 80 ) + NULLIF ( + - 21, COUNT( * ) * - 54 ) AS col0, + ( + 39 )
----
-69
39

skipif mysql # not compatible
query II rowsort label-2810
SELECT 32 + - SUM ( 80 ) + NULLIF ( + - 21, COUNT ( * ) * - 54 ) AS col0, + ( + 39 )
----
-69
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2811
SELECT + CASE + 75 WHEN - - COUNT( * ) + - - COUNT( * ) THEN 98 + 27 / - 93 WHEN - 95 THEN + NULLIF ( + + COALESCE ( - 83, + - 34 ), + 67 + - 68 ) END * + 1 * - - NULLIF ( + 78, - 57 ) - - 40 * ( + 27 / - 12 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2811
SELECT + CASE + 75 WHEN - - COUNT ( * ) + - - COUNT ( * ) THEN 98 + 27 / - 93 WHEN - 95 THEN + NULLIF ( + + COALESCE ( - 83, + - 34 ), + 67 + - 68 ) END * + 1 * - - NULLIF ( + 78, - 57 ) - - 40 * ( + 27 / - 12 ) AS col1
----
NULL

query I rowsort
SELECT ALL - 13 AS col0
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2813
SELECT MAX( - 11 ) AS col2, CAST( + NULLIF ( + ( - + 23 ), 20 ) AS SIGNED ) * - COUNT( - + 24 ) AS col2
----
-11
23

skipif mysql # not compatible
query II rowsort label-2813
SELECT MAX ( - 11 ) AS col2, CAST ( + NULLIF ( + ( - + 23 ), 20 ) AS INTEGER ) * - COUNT ( - + 24 ) AS col2
----
-11
23

query I rowsort
SELECT + 84 * - 65 + - 6
----
-5466

onlyif mysql # DIV for integer division: 
query I rowsort label-2815
SELECT ALL 27 DIV - 71 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2815
SELECT ALL 27 / - 71 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2816
SELECT DISTINCT 44 + - 92 + - CAST( ( CASE + 0 WHEN + + COUNT( * ) * - 96 / 92 / + - 47 * + CAST( NULL AS SIGNED ) + + 60 THEN - + 36 * + - CASE 20 WHEN + - ( + - ( ( - 16 ) ) ) + - 42 THEN 73 * SUM( 88 / 91 ) WHEN 77 THEN + 85 ELSE COUNT( * ) * - 67 + 28 END ELSE 92 + + 31 * COUNT( * ) END ) AS SIGNED ) + 97 * 49
----
4582

skipif mysql # not compatible
query I rowsort label-2816
SELECT DISTINCT 44 + - 92 + - CAST ( ( CASE + 0 WHEN + + COUNT ( * ) * - 96 / 92 / + - 47 * + CAST ( NULL AS INTEGER ) + + 60 THEN - + 36 * + - CASE 20 WHEN + - ( + - ( ( - 16 ) ) ) + - 42 THEN 73 * SUM ( 88 / 91 ) WHEN 77 THEN + 85 ELSE COUNT ( * ) * - 67 + 28 END ELSE 92 + + 31 * COUNT ( * ) END ) AS INTEGER ) + 97 * 49
----
4582

query I rowsort
SELECT DISTINCT 56 + 49 - - ( - - 39 ) AS col0
----
144

query I rowsort
SELECT ALL 91 + + 15 - 71 col0
----
35

query I rowsort
SELECT + 50 AS col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2820
SELECT MIN( DISTINCT - 43 ) col1
----
-43

skipif mysql # not compatible
query I rowsort label-2820
SELECT MIN ( DISTINCT - 43 ) col1
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2821
SELECT ALL - 3 DIV - COUNT( * ) col0
----
3

skipif mysql # not compatible
query I rowsort label-2821
SELECT ALL - 3 / - COUNT ( * ) col0
----
3

query I rowsort
SELECT ALL 87 * 17 AS col2
----
1479

query I rowsort
SELECT ALL 61 + + 5 AS col1
----
66

query I rowsort
SELECT DISTINCT - + 65
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2825
SELECT DISTINCT COUNT( * ) * CASE - ( + 21 ) WHEN - NULLIF ( - + NULLIF ( + 3, + - 33 ), + COUNT( ALL - 7 ) * - 92 + ( + COUNT( * ) ) ) THEN 81 ELSE 45 END * 89 * - 47 DIV - SUM( + ( CAST( - 1 AS SIGNED ) ) ) AS col1
----
-188235

skipif mysql # not compatible
query I rowsort label-2825
SELECT DISTINCT COUNT ( * ) * CASE - ( + 21 ) WHEN - NULLIF ( - + NULLIF ( + 3, + - 33 ), + COUNT ( ALL - 7 ) * - 92 + ( + COUNT ( * ) ) ) THEN 81 ELSE 45 END * 89 * - 47 / - SUM ( + ( CAST ( - 1 AS INTEGER ) ) ) AS col1
----
-188235

query I rowsort
SELECT - + 14 * + 94 + + 21 AS col0
----
-1295

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

skipif mysql # not compatible
query I rowsort label-2827
SELECT DISTINCT - 80 - - 32 + 96 * - COUNT ( * )
----
-144

query I rowsort
SELECT - + 11 + 10
----
-1

query I rowsort
SELECT + + 42 * - 50 * + 43 * 94 AS col2
----
-8488200

query II rowsort
SELECT - - ( + 67 ) * - 83 * + ( - 91 ) AS col0, + 0 + 7 col2
----
506051
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2831
SELECT ALL - 31 DIV 78 * - + MIN( + 67 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-2831
SELECT ALL - 31 / 78 * - + MIN ( + 67 ) col0
----
0

query I rowsort
SELECT DISTINCT + + ( - 62 ) * 66 col0
----
-4092

onlyif mysql # DIV for integer division: 
query II rowsort label-2833
SELECT ALL + 81 * - - 43 col0, + 97 DIV + + 27
----
3483
3

skipif mysql # not compatible
query II rowsort label-2833
SELECT ALL + 81 * - - 43 col0, + 97 / + + 27
----
3483
3

onlyif mysql # aggregate syntax: 
query III rowsort label-2834
SELECT - 47 * - - 34 - 4 AS col2, + 15 + + 66 AS col1, - + 12 + + + COUNT( * ) AS col2
----
-1602
81
-11

skipif mysql # not compatible
query III rowsort label-2834
SELECT - 47 * - - 34 - 4 AS col2, + 15 + + 66 AS col1, - + 12 + + + COUNT ( * ) AS col2
----
-1602
81
-11

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2835
SELECT ALL 16 DIV - + NULLIF ( 50, 69 DIV COALESCE ( 69, + 10 ) + - CAST( NULL AS SIGNED ) - - - 48 * + - 41 * 20 * 90 DIV NULLIF ( + 75, + 41 ) * - 85 )
----
0

skipif mysql # not compatible
query I rowsort label-2835
SELECT ALL 16 / - + NULLIF ( 50, 69 / COALESCE ( 69, + 10 ) + - CAST ( NULL AS INTEGER ) - - - 48 * + - 41 * 20 * 90 / NULLIF ( + 75, + 41 ) * - 85 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2836
SELECT DISTINCT - ( - COUNT( * ) ), CAST( NULL AS SIGNED ) AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-2836
SELECT DISTINCT - ( - COUNT ( * ) ), CAST ( NULL AS INTEGER ) AS col1
----
1
NULL

query I rowsort
SELECT DISTINCT 34 * - 62 * - COALESCE ( + 50, - 83 ) + - + 35
----
105365

query II rowsort
SELECT 0 AS col0, 62 col0
----
0
62

onlyif mysql # aggregate syntax: 
query II rowsort label-2839
SELECT - 13, SUM( DISTINCT 34 ) * + 74 * 98 AS col2
----
-13
246568

skipif mysql # not compatible
query II rowsort label-2839
SELECT - 13, SUM ( DISTINCT 34 ) * + 74 * 98 AS col2
----
-13
246568

query I rowsort
SELECT - 63 * + + 43 AS col1
----
-2709

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2841
SELECT DISTINCT - 88 + + ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2841
SELECT DISTINCT - 88 + + ( CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT + 74, - 17 col1
----
74
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2843
SELECT DISTINCT + SUM( DISTINCT + 7 ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-2843
SELECT DISTINCT + SUM ( DISTINCT + 7 ) AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2844
SELECT ALL - 0 * - - MAX( ALL - 99 ) + - 33 AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-2844
SELECT ALL - 0 * - - MAX ( ALL - 99 ) + - 33 AS col1
----
-33

query I rowsort
SELECT ( + 3 ) AS col2
----
3

query II rowsort
SELECT + 80 col0, - 0
----
80
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2847
SELECT ALL + 50 * 40 * + ( CAST( - CASE + 4 WHEN + + 89 + + MIN( ALL - - 94 ) THEN ( - - COUNT( * ) ) + + - CAST( + + ( + NULLIF ( - COUNT( * ), - 75 ) ) AS SIGNED ) + 49 * 2 * - 62 WHEN COALESCE ( + MIN( + 34 ), + ( + 95 ) ) + 83 THEN NULL END AS DECIMAL ) ) + COUNT( * ) * + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2847
SELECT ALL + 50 * 40 * + ( CAST ( - CASE + 4 WHEN + + 89 + + MIN ( ALL - - 94 ) THEN ( - - COUNT ( * ) ) + + - CAST ( + + ( + NULLIF ( - COUNT ( * ), - 75 ) ) AS INTEGER ) + 49 * 2 * - 62 WHEN COALESCE ( + MIN ( + 34 ), + ( + 95 ) ) + 83 THEN NULL END AS REAL ) ) + COUNT ( * ) * + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT ( + - 22 )
----
-22

query I rowsort
SELECT ALL + ( + - 13 ) AS col2
----
-13

query I rowsort
SELECT - 79 + 44 AS col0
----
-35

query II rowsort
SELECT + 39, ( + 88 ) AS col2
----
39
88

query I rowsort
SELECT ( + 29 )
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2853
SELECT + CAST( + 19 AS SIGNED ) * - 82 + - 68 + + COUNT( * ) * + ( - + ( 37 ) ) AS col2, 22 AS col0
----
-1663
22

skipif mysql # not compatible
query II rowsort label-2853
SELECT + CAST ( + 19 AS INTEGER ) * - 82 + - 68 + + COUNT ( * ) * + ( - + ( 37 ) ) AS col2, 22 AS col0
----
-1663
22

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2854
SELECT ALL + 98 * - CAST( + - 18 AS SIGNED ) AS col0, - 63 AS col1
----
1764
-63

skipif mysql # not compatible
query II rowsort label-2854
SELECT ALL + 98 * - CAST ( + - 18 AS INTEGER ) AS col0, - 63 AS col1
----
1764
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-2855
SELECT ALL 85 * ( 94 ) DIV 93 + 62
----
147

skipif mysql # not compatible
query I rowsort label-2855
SELECT ALL 85 * ( 94 ) / 93 + 62
----
147

query I rowsort
SELECT DISTINCT - 16 * + 29
----
-464

query I rowsort
SELECT DISTINCT + 50 AS col1
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-2858
SELECT ALL 22 * + - 98 - + - COUNT( * ) col1, COUNT( * ) - + 4 AS col0
----
-2155
-3

skipif mysql # not compatible
query II rowsort label-2858
SELECT ALL 22 * + - 98 - + - COUNT ( * ) col1, COUNT ( * ) - + 4 AS col0
----
-2155
-3

query I rowsort
SELECT ALL + + 54 AS col1
----
54

query I rowsort
SELECT + - 32 - + 58
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2861
SELECT ALL + + 98, - NULLIF ( - - 87, - COUNT( * ) + COALESCE ( - ( 4 ), - 85 + + - 89, - MAX( ALL - - ( 81 ) ) ) * + + COALESCE ( + CAST( NULL AS SIGNED ), - - 61 * + + CAST( NULL AS SIGNED ), - - 37 * + 42 + 71 ) + CASE + SUM( - 4 ) + ( 14 + + 67 * 60 ) * 17 WHEN 24 THEN NULL WHEN ( 87 ) THEN - MIN( ALL 60 ) END ) * - 57 col1
----
98
4959

skipif mysql # not compatible
query II rowsort label-2861
SELECT ALL + + 98, - NULLIF ( - - 87, - COUNT ( * ) + COALESCE ( - ( 4 ), - 85 + + - 89, - MAX ( ALL - - ( 81 ) ) ) * + + COALESCE ( + CAST ( NULL AS INTEGER ), - - 61 * + + CAST ( NULL AS INTEGER ), - - 37 * + 42 + 71 ) + CASE + SUM ( - 4 ) + ( 14 + + 67 * 60 ) * 17 WHEN 24 THEN NULL WHEN ( 87 ) THEN - MIN ( ALL 60 ) END ) * - 57 col1
----
98
4959

query I rowsort
SELECT - + 21 * - 92 AS col2
----
1932

onlyif mysql # aggregate syntax: 
query II rowsort label-2863
SELECT 91 AS col0, - COALESCE ( - MAX( ALL - - 18 ), - COALESCE ( 24, 41 * + - 24 * 53 + 85 ) + - - 10 ) * 52 * 39 + - COUNT( * )
----
91
36503

skipif mysql # not compatible
query II rowsort label-2863
SELECT 91 AS col0, - COALESCE ( - MAX ( ALL - - 18 ), - COALESCE ( 24, 41 * + - 24 * 53 + 85 ) + - - 10 ) * 52 * 39 + - COUNT ( * )
----
91
36503

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2864
SELECT - - 24 * + + 66 + + + SUM( DISTINCT + 2 ) * + 30 - - + 58 * + + 7 + ( + - CAST( + 41 AS SIGNED ) )
----
2009

skipif mysql # not compatible
query I rowsort label-2864
SELECT - - 24 * + + 66 + + + SUM ( DISTINCT + 2 ) * + 30 - - + 58 * + + 7 + ( + - CAST ( + 41 AS INTEGER ) )
----
2009

query I rowsort
SELECT + + 57 AS col0
----
57

query II rowsort
SELECT + - 1 AS col1, 40
----
-1
40

onlyif mysql # DIV for integer division: 
query I rowsort label-2867
SELECT - + 71 DIV 42 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2867
SELECT - + 71 / 42 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2868
SELECT + SUM( ALL + 54 ) * + - 69
----
-3726

skipif mysql # not compatible
query I rowsort label-2868
SELECT + SUM ( ALL + 54 ) * + - 69
----
-3726

query I rowsort
SELECT ALL ( - 49 ) * + 23 AS col1
----
-1127

query I rowsort
SELECT ALL + 2 * + 5
----
10

query II rowsort
SELECT + - 96 + - 75 + - 87 AS col1, - 70
----
-258
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-2872
SELECT + 33 * + - 97 + + ( - COUNT( * ) ) - - - 8
----
-3210

skipif mysql # not compatible
query I rowsort label-2872
SELECT + 33 * + - 97 + + ( - COUNT ( * ) ) - - - 8
----
-3210

query I rowsort
SELECT ALL 5 * - 8
----
-40

query I rowsort
SELECT + 44 * 91
----
4004

query II rowsort
SELECT ALL 60 AS col0, 34 col1
----
60
34

query I rowsort
SELECT DISTINCT + 8 * + 98 AS col1
----
784

query I rowsort
SELECT ALL - ( - 38 )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2878
SELECT + + 69 * - 1 * - 89 * - CASE 13 WHEN - COUNT( * ) THEN NULL WHEN 1 THEN - COUNT( * ) * - + AVG ( - + 95 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2878
SELECT + + 69 * - 1 * - 89 * - CASE 13 WHEN - COUNT ( * ) THEN NULL WHEN 1 THEN - COUNT ( * ) * - + AVG ( - + 95 ) ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2879
SELECT ALL MIN( - 5 ) + + 95, 10 + + - MAX( ALL + + 81 ) AS col2
----
90
-71

skipif mysql # not compatible
query II rowsort label-2879
SELECT ALL MIN ( - 5 ) + + 95, 10 + + - MAX ( ALL + + 81 ) AS col2
----
90
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2880
SELECT + CAST( NULL AS SIGNED ) + - - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-2880
SELECT + CAST ( NULL AS INTEGER ) + - - 65
----
NULL

query II rowsort
SELECT - - 42 AS col0, 97 + + 77
----
42
174

query I rowsort
SELECT + 33 + + 20 + - - 31
----
84

query I rowsort
SELECT ALL - 1 + + 97
----
96

query I rowsort
SELECT DISTINCT - 92 + + ( - 11 ) * - 2 AS col2
----
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-2885
SELECT DISTINCT 80 + + + 2, COUNT( * ) AS col1
----
82
1

skipif mysql # not compatible
query II rowsort label-2885
SELECT DISTINCT 80 + + + 2, COUNT ( * ) AS col1
----
82
1

query I rowsort
SELECT DISTINCT ( 54 ) AS col1
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-2887
SELECT ALL - 74 + - 46, 60 * - MIN( 64 ) AS col2
----
-120
-3840

skipif mysql # not compatible
query II rowsort label-2887
SELECT ALL - 74 + - 46, 60 * - MIN ( 64 ) AS col2
----
-120
-3840

query I rowsort
SELECT - 9 + 7 - - + 57 - 93 * + 55
----
-5060

query I rowsort
SELECT ALL 15 * 29 AS col2
----
435

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2890
SELECT - CAST( - 20 AS SIGNED )
----
20

skipif mysql # not compatible
query I rowsort label-2890
SELECT - CAST ( - 20 AS INTEGER )
----
20

query I rowsort
SELECT - ( + + 68 ) + + - 78
----
-146

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2892
SELECT + CAST( 78 AS SIGNED )
----
78

skipif mysql # not compatible
query I rowsort label-2892
SELECT + CAST ( 78 AS INTEGER )
----
78

query I rowsort
SELECT DISTINCT + NULLIF ( + 41, 94 )
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2894
SELECT ALL NULLIF ( + ( + 46 ), + COUNT( * ) ) DIV - 62 + COUNT( * ) + - + 50 AS col0, MAX( DISTINCT - + ( + 12 ) ) + - 58 AS col1
----
-49
-70

skipif mysql # not compatible
query II rowsort label-2894
SELECT ALL NULLIF ( + ( + 46 ), + COUNT ( * ) ) / - 62 + COUNT ( * ) + - + 50 AS col0, MAX ( DISTINCT - + ( + 12 ) ) + - 58 AS col1
----
-49
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-2895
SELECT + COUNT( 26 )
----
1

skipif mysql # not compatible
query I rowsort label-2895
SELECT + COUNT ( 26 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2896
SELECT ALL + ( + + CAST( + - COUNT( * ) AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-2896
SELECT ALL + ( + + CAST ( + - COUNT ( * ) AS INTEGER ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2897
SELECT - ( - + COUNT( + + 59 ) ) + - COUNT( * ) col0
----
0

skipif mysql # not compatible
query I rowsort label-2897
SELECT - ( - + COUNT ( + + 59 ) ) + - COUNT ( * ) col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2898
SELECT ALL 56 DIV + COUNT( * ) - - - 76 * + 24 AS col0
----
-1768

skipif mysql # not compatible
query I rowsort label-2898
SELECT ALL 56 / + COUNT ( * ) - - - 76 * + 24 AS col0
----
-1768

onlyif mysql # aggregate syntax: 
query I rowsort label-2899
SELECT - COUNT( * ) * MIN( ALL + 95 ) AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-2899
SELECT - COUNT ( * ) * MIN ( ALL + 95 ) AS col1
----
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2900
SELECT DISTINCT COUNT( * ) DIV - 40 - + 21
----
-21

skipif mysql # not compatible
query I rowsort label-2900
SELECT DISTINCT COUNT ( * ) / - 40 - + 21
----
-21

query I rowsort
SELECT 95 col0
----
95

query I rowsort
SELECT DISTINCT - 40 col0
----
-40

query I rowsort
SELECT + - 95 col0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-2904
SELECT COUNT( * ) + + - 55 + + 80 AS col1
----
26

skipif mysql # not compatible
query I rowsort label-2904
SELECT COUNT ( * ) + + - 55 + + 80 AS col1
----
26

query I rowsort
SELECT 69 * - 93 + - 19 * + 77 * + 38 * - + 25
----
1383433

query I rowsort
SELECT ALL - 31 * + 96 AS col0
----
-2976

query II rowsort
SELECT DISTINCT - + ( + 0 ), - 92 * 89 * - 68 AS col0
----
0
556784

query I rowsort
SELECT DISTINCT - 77 AS col1
----
-77

query I rowsort
SELECT ALL - + 46
----
-46

query I rowsort
SELECT DISTINCT - 67 AS col2
----
-67

query I rowsort
SELECT DISTINCT - - ( + 90 )
----
90

query I rowsort
SELECT - 38 + - 36 col2
----
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-2913
SELECT - - MIN( DISTINCT 97 ) AS col0, 49
----
97
49

skipif mysql # not compatible
query II rowsort label-2913
SELECT - - MIN ( DISTINCT 97 ) AS col0, 49
----
97
49

query I rowsort
SELECT DISTINCT - - 22 + - 28 * - + 76 AS col0
----
2150

query I rowsort
SELECT - + 21 col0
----
-21

query I rowsort
SELECT 64 + 2 * - + 68
----
-72

query I rowsort
SELECT ALL 34 + - + 9 * 24 - + 18 + + 3 + - 33 AS col1
----
-230

query I rowsort
SELECT - 22 - - 82
----
60

query I rowsort
SELECT ALL 62 * + 52 - 27 AS col1
----
3197

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2920
SELECT COUNT( * ) DIV 96 * 78
----
0

skipif mysql # not compatible
query I rowsort label-2920
SELECT COUNT ( * ) / 96 * 78
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2921
SELECT ALL + + 80 + COUNT( * ) DIV - 43
----
80

skipif mysql # not compatible
query I rowsort label-2921
SELECT ALL + + 80 + COUNT ( * ) / - 43
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2922
SELECT ALL 28 + COUNT( * ) + + + MIN( DISTINCT + 95 )
----
124

skipif mysql # not compatible
query I rowsort label-2922
SELECT ALL 28 + COUNT ( * ) + + + MIN ( DISTINCT + 95 )
----
124

query I rowsort
SELECT DISTINCT 39 * 50
----
1950

query I rowsort
SELECT ALL 4 + + 79 * + - 71 * + 34 + 43
----
-190659

onlyif mysql # aggregate syntax: 
query I rowsort label-2925
SELECT CASE + - 57 WHEN - 44 THEN COALESCE ( - COUNT( * ), + - COUNT( * ) + - COUNT( * ) - 88 * - + CASE - + 82 WHEN + - 48 + + + 82 THEN NULL ELSE - COUNT( * ) * + 5 END ) WHEN 17 * + + SUM( ALL + 55 ) * + SUM( ALL + 79 ) + 82 THEN NULL END + 44
----
NULL

skipif mysql # not compatible
query I rowsort label-2925
SELECT CASE + - 57 WHEN - 44 THEN COALESCE ( - COUNT ( * ), + - COUNT ( * ) + - COUNT ( * ) - 88 * - + CASE - + 82 WHEN + - 48 + + + 82 THEN NULL ELSE - COUNT ( * ) * + 5 END ) WHEN 17 * + + SUM ( ALL + 55 ) * + SUM ( ALL + 79 ) + 82 THEN NULL END + 44
----
NULL

query I rowsort
SELECT DISTINCT 74
----
74

query I rowsort
SELECT 57 AS col0
----
57

query I rowsort
SELECT 92 col2
----
92

query I rowsort
SELECT ALL 68 + - + 81
----
-13

query I rowsort
SELECT 61 * 88 AS col2
----
5368

query I rowsort
SELECT ALL 62 * + - 45 AS col1
----
-2790

query II rowsort
SELECT DISTINCT 39, - 88 AS col0
----
39
-88

query I rowsort
SELECT ALL 32 - - 39 AS col2
----
71

query I rowsort
SELECT ALL - 44 * + - 92 AS col0
----
4048

query I rowsort
SELECT ALL 26 * - 2 AS col1
----
-52

query I rowsort
SELECT DISTINCT 61 * + 7 col2
----
427

query II rowsort
SELECT + 56, 16 AS col2
----
56
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2938
SELECT 18 * + - COUNT( * )
----
-18

skipif mysql # not compatible
query I rowsort label-2938
SELECT 18 * + - COUNT ( * )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-2939
SELECT DISTINCT - COUNT( + 13 )
----
-1

skipif mysql # not compatible
query I rowsort label-2939
SELECT DISTINCT - COUNT ( + 13 )
----
-1

query I rowsort
SELECT ALL - - CASE + 41 WHEN + + COALESCE ( - + ( - 77 ), - - 64 ) THEN 60 END AS col1
----
NULL

query I rowsort
SELECT ALL - + ( + 67 )
----
-67

query I rowsort
SELECT DISTINCT - 52 + + 51
----
-1

query I rowsort
SELECT ALL - + 43 AS col2
----
-43

query I rowsort
SELECT 43 * - + 25
----
-1075

onlyif mysql # aggregate syntax: 
query I rowsort label-2945
SELECT - COUNT( * ) * - + 32 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-2945
SELECT - COUNT ( * ) * - + 32 AS col2
----
32

query I rowsort
SELECT DISTINCT - 91 + + 77 AS col0
----
-14

query I rowsort
SELECT ALL + + 32 + + 77
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-2948
SELECT ALL - 58 + + 33 + - 38 - - - SUM( 52 ) + 60 * - - 66 - + 38 * + COUNT( * ) AS col1
----
3807

skipif mysql # not compatible
query I rowsort label-2948
SELECT ALL - 58 + + 33 + - 38 - - - SUM ( 52 ) + 60 * - - 66 - + 38 * + COUNT ( * ) AS col1
----
3807

query I rowsort
SELECT DISTINCT - - 28
----
28

query II rowsort
SELECT DISTINCT + COALESCE ( 21, + 70 ) + + 49 * 82 AS col1, 70
----
4039
70

query I rowsort
SELECT ALL + ( + 44 ) + - - 53 AS col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2952
SELECT ALL SUM( + - ( - 16 ) ) + + 14 AS col0
----
30

skipif mysql # not compatible
query I rowsort label-2952
SELECT ALL SUM ( + - ( - 16 ) ) + + 14 AS col0
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2953
SELECT ALL + COALESCE ( + 90, - - 56 + - 24 + - 93 + COUNT( ALL + 27 ) ) + - 48 + + 89 + - 98 DIV ( - - 33 ) * + - 27 * - 52 AS col2
----
-2677

skipif mysql # not compatible
query I rowsort label-2953
SELECT ALL + COALESCE ( + 90, - - 56 + - 24 + - 93 + COUNT ( ALL + 27 ) ) + - 48 + + 89 + - 98 / ( - - 33 ) * + - 27 * - 52 AS col2
----
-2677

query I rowsort
SELECT 42 + + 48 * - 45
----
-2118

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2955
SELECT 53 col0, - 60 DIV - + COUNT( * )
----
53
60

skipif mysql # not compatible
query II rowsort label-2955
SELECT 53 col0, - 60 / - + COUNT ( * )
----
53
60

onlyif mysql # aggregate syntax: 
query II rowsort label-2956
SELECT ALL + 75 - - ( MIN( + 64 ) ) AS col2, ( - 72 )
----
139
-72

skipif mysql # not compatible
query II rowsort label-2956
SELECT ALL + 75 - - ( MIN ( + 64 ) ) AS col2, ( - 72 )
----
139
-72

query I rowsort
SELECT ALL NULLIF ( 44, - 54 )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2958
SELECT 57 + + COUNT( * ) * + 44 * 98 + + COUNT( * ) AS col1
----
4370

skipif mysql # not compatible
query I rowsort label-2958
SELECT 57 + + COUNT ( * ) * + 44 * 98 + + COUNT ( * ) AS col1
----
4370

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2959
SELECT 61 * CAST( NULL AS SIGNED ) col0, - 73
----
NULL
-73

skipif mysql # not compatible
query II rowsort label-2959
SELECT 61 * CAST ( NULL AS INTEGER ) col0, - 73
----
NULL
-73

query II rowsort
SELECT 77 + + + 41 AS col1, + 55
----
118
55

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2961
SELECT + CAST( NULL AS SIGNED ) + + NULLIF ( - 53, + 62 ) * - ( - + 13 ), 51 col0
----
NULL
51

skipif mysql # not compatible
query II rowsort label-2961
SELECT + CAST ( NULL AS INTEGER ) + + NULLIF ( - 53, + 62 ) * - ( - + 13 ), 51 col0
----
NULL
51

query I rowsort
SELECT + 96 + - 48 AS col0
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-2963
SELECT - COUNT( * ) * COUNT( * ) AS col0, 79 DIV + 31, + 49 + - 57 * - - 18 AS col0
----
-1
2
-977

skipif mysql # not compatible
query III rowsort label-2963
SELECT - COUNT ( * ) * COUNT ( * ) AS col0, 79 / + 31, + 49 + - 57 * - - 18 AS col0
----
-1
2
-977

query I rowsort
SELECT + 72 + 61 - + + 67
----
66

query II rowsort
SELECT - 2 col2, + 66 + - + 51 AS col1
----
-2
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2966
SELECT - COUNT( * ) * - 53 + + - 12 + + 9
----
50

skipif mysql # not compatible
query I rowsort label-2966
SELECT - COUNT ( * ) * - 53 + + - 12 + + 9
----
50

query II rowsort
SELECT ALL + 56 AS col0, + 98 AS col0
----
56
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2968
SELECT + CASE + - 56 WHEN + 24 / - 85 - 40 * 51 + - 4 + - 91 THEN NULL WHEN - - COUNT( * ) THEN - CAST( 32 AS SIGNED ) + 99 + COALESCE ( + COUNT( + - ( - 59 ) ), + + 49 ) + - CASE 37 WHEN + + 19 / + - COUNT( * ) * - 98 THEN NULL WHEN + NULLIF ( - 1, - 35 * 76 ) THEN NULL WHEN + ( 22 ) - - 70 THEN + 75 END - + 66 / 5 * SUM( ALL - 56 + + CAST( - 67 AS SIGNED ) / - 3 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2968
SELECT + CASE + - 56 WHEN + 24 / - 85 - 40 * 51 + - 4 + - 91 THEN NULL WHEN - - COUNT ( * ) THEN - CAST ( 32 AS INTEGER ) + 99 + COALESCE ( + COUNT ( + - ( - 59 ) ), + + 49 ) + - CASE 37 WHEN + + 19 / + - COUNT ( * ) * - 98 THEN NULL WHEN + NULLIF ( - 1, - 35 * 76 ) THEN NULL WHEN + ( 22 ) - - 70 THEN + 75 END - + 66 / 5 * SUM ( ALL - 56 + + CAST ( - 67 AS INTEGER ) / - 3 ) END
----
NULL

query II rowsort
SELECT ALL + 63 AS col1, + CASE 54 WHEN + 8 + - 38 THEN + + 25 * + + 46 + + 30 + + 12 ELSE NULL END AS col1
----
63
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2970
SELECT ALL + - COUNT( * ) AS col2, 86 AS col1
----
-1
86

skipif mysql # not compatible
query II rowsort label-2970
SELECT ALL + - COUNT ( * ) AS col2, 86 AS col1
----
-1
86

query I rowsort
SELECT + - 9 * - 88
----
792

query I rowsort
SELECT ALL + + 44
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-2973
SELECT 22 AS col2, + NULLIF ( + COUNT( * ), - ( + + 25 ) + COUNT( * ) - - COUNT( * ) )
----
22
1

skipif mysql # not compatible
query II rowsort label-2973
SELECT 22 AS col2, + NULLIF ( + COUNT ( * ), - ( + + 25 ) + COUNT ( * ) - - COUNT ( * ) )
----
22
1

query I rowsort
SELECT + - ( + ( + 11 ) ) AS col0
----
-11

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2975
SELECT ALL - 4 * - 21 + + - 10 + - + 41 DIV - 87 DIV 1 * - + 31 - + CAST( + 80 AS SIGNED ) col2
----
-6

skipif mysql # not compatible
query I rowsort label-2975
SELECT ALL - 4 * - 21 + + - 10 + - + 41 / - 87 / 1 * - + 31 - + CAST ( + 80 AS INTEGER ) col2
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2976
SELECT + 5 AS col0, + CAST( + COUNT( * ) AS SIGNED )
----
5
1

skipif mysql # not compatible
query II rowsort label-2976
SELECT + 5 AS col0, + CAST ( + COUNT ( * ) AS INTEGER )
----
5
1

query II rowsort
SELECT ALL + - 67, + 5 AS col1
----
-67
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2978
SELECT ALL + + 11 * + CASE 93 WHEN 46 + - + 45 THEN NULL WHEN - 37 + + COUNT( * ) THEN NULL ELSE + CASE - - CAST( NULL AS SIGNED ) WHEN - 32 THEN - + AVG ( ALL + 66 ) ELSE NULL END + 79 END + + SUM( DISTINCT 85 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2978
SELECT ALL + + 11 * + CASE 93 WHEN 46 + - + 45 THEN NULL WHEN - 37 + + COUNT ( * ) THEN NULL ELSE + CASE - - CAST ( NULL AS INTEGER ) WHEN - 32 THEN - + AVG ( ALL + 66 ) ELSE NULL END + 79 END + + SUM ( DISTINCT 85 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2979
SELECT + COUNT( * ) * + 1
----
1

skipif mysql # not compatible
query I rowsort label-2979
SELECT + COUNT ( * ) * + 1
----
1

query I rowsort
SELECT + 11 + 84 - + 78 + - + 6 * + + 23
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-2981
SELECT DISTINCT - - 46 * + 17 + + 33 + + + COUNT( * ) AS col0
----
816

skipif mysql # not compatible
query I rowsort label-2981
SELECT DISTINCT - - 46 * + 17 + + 33 + + + COUNT ( * ) AS col0
----
816

onlyif mysql # aggregate syntax: 
query I rowsort label-2982
SELECT ALL + + 80 * 47 + + COUNT( * ) AS col1
----
3761

skipif mysql # not compatible
query I rowsort label-2982
SELECT ALL + + 80 * 47 + + COUNT ( * ) AS col1
----
3761

query I rowsort
SELECT + ( + + 61 ) col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2984
SELECT + COUNT( * ) * CASE - COUNT( DISTINCT - + 2 ) WHEN - - 12 THEN MAX( ALL 0 ) ELSE NULL END * - 64 + 14 * 21 - + - 22 / + - 22 + - 92
----
NULL

skipif mysql # not compatible
query I rowsort label-2984
SELECT + COUNT ( * ) * CASE - COUNT ( DISTINCT - + 2 ) WHEN - - 12 THEN MAX ( ALL 0 ) ELSE NULL END * - 64 + 14 * 21 - + - 22 / + - 22 + - 92
----
NULL

query I rowsort
SELECT + + 82 * - 55 AS col1
----
-4510

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2986
SELECT + - CAST( NULL AS SIGNED ), - NULLIF ( - + CAST( - 96 AS SIGNED ), + 18 / 50 * 8 ) * + - CAST( + + 89 AS SIGNED ) * + 21 * - + ( + 2 ) + - 41 AS col1
----
NULL
-358889

skipif mysql # not compatible
query II rowsort label-2986
SELECT + - CAST ( NULL AS INTEGER ), - NULLIF ( - + CAST ( - 96 AS INTEGER ), + 18 / 50 * 8 ) * + - CAST ( + + 89 AS INTEGER ) * + 21 * - + ( + 2 ) + - 41 AS col1
----
NULL
-358889

query I rowsort
SELECT - ( + + 38 ) * 94 + - 86 + + 41 AS col2
----
-3617

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2988
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * + 56 - - COUNT( * ) / ( + - COUNT( * ) ) * - ( + 50 ) / 48 * + 12 * + CAST( NULL AS SIGNED ) + + + MAX( - 60 ) + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2988
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * + 56 - - COUNT ( * ) / ( + - COUNT ( * ) ) * - ( + 50 ) / 48 * + 12 * + CAST ( NULL AS INTEGER ) + + + MAX ( - 60 ) + - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2989
SELECT + COALESCE ( CAST( NULL AS SIGNED ), + 7 ) + 79 AS col0, 4 AS col2
----
86
4

skipif mysql # not compatible
query II rowsort label-2989
SELECT + COALESCE ( CAST ( NULL AS INTEGER ), + 7 ) + 79 AS col0, 4 AS col2
----
86
4

onlyif mysql # DIV for integer division: 
query I rowsort label-2990
SELECT + + 32 DIV 48 * - - 84 * - - 27 * - 99 - 72 + + + 2 - - 20 AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-2990
SELECT + + 32 / 48 * - - 84 * - - 27 * - 99 - 72 + + + 2 - - 20 AS col0
----
-50

query I rowsort
SELECT ALL - - 61 * - 56 + 32
----
-3384

query II rowsort
SELECT DISTINCT + 55 col0, 68 AS col0
----
55
68

query I rowsort
SELECT ALL 42 * + 88 + 69 AS col1
----
3765

query I rowsort
SELECT DISTINCT + ( + 79 )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2995
SELECT + SUM( ALL 12 )
----
12

skipif mysql # not compatible
query I rowsort label-2995
SELECT + SUM ( ALL 12 )
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-2996
SELECT + COUNT( * ), COUNT( * ) * 52 col0
----
1
52

skipif mysql # not compatible
query II rowsort label-2996
SELECT + COUNT ( * ), COUNT ( * ) * 52 col0
----
1
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2997
SELECT ALL + 88 - + 6 * - COUNT( ALL 8 )
----
94

skipif mysql # not compatible
query I rowsort label-2997
SELECT ALL + 88 - + 6 * - COUNT ( ALL 8 )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2998
SELECT - ( + 39 ) + + COUNT( DISTINCT + 33 ) AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-2998
SELECT - ( + 39 ) + + COUNT ( DISTINCT + 33 ) AS col1
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-2999
SELECT DISTINCT - 25 - - COUNT( * ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-2999
SELECT DISTINCT - 25 - - COUNT ( * ) AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3000
SELECT ALL NULLIF ( MAX( + ( 82 ) ), - 83 )
----
82

skipif mysql # not compatible
query I rowsort label-3000
SELECT ALL NULLIF ( MAX ( + ( 82 ) ), - 83 )
----
82

query I rowsort
SELECT ALL ( - 44 ) AS col0
----
-44

query I rowsort
SELECT DISTINCT ( 16 ) AS col1
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-3003
SELECT DISTINCT + 71 * + - COUNT( * ) AS col2, + ( COUNT( * ) ) * - + 11 * COALESCE ( - 56, 32 ) col0
----
-71
616

skipif mysql # not compatible
query II rowsort label-3003
SELECT DISTINCT + 71 * + - COUNT ( * ) AS col2, + ( COUNT ( * ) ) * - + 11 * COALESCE ( - 56, 32 ) col0
----
-71
616

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3004
SELECT - CAST( + 9 AS SIGNED ) * + SUM( DISTINCT + - CASE - + CAST( NULL AS SIGNED ) WHEN 4 THEN - 99 / + 47 WHEN + ( + + 20 ) THEN - - 37 / - 51 * 76 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3004
SELECT - CAST ( + 9 AS INTEGER ) * + SUM ( DISTINCT + - CASE - + CAST ( NULL AS INTEGER ) WHEN 4 THEN - 99 / + 47 WHEN + ( + + 20 ) THEN - - 37 / - 51 * 76 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3005
SELECT ALL CASE + - 41 WHEN + AVG ( + - CASE + 94 WHEN - 28 + + 51 THEN NULL ELSE 80 END ) THEN NULL WHEN COUNT( * ) * ( - 93 ) THEN + + 45 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3005
SELECT ALL CASE + - 41 WHEN + AVG ( + - CASE + 94 WHEN - 28 + + 51 THEN NULL ELSE 80 END ) THEN NULL WHEN COUNT ( * ) * ( - 93 ) THEN + + 45 ELSE NULL END
----
NULL

query I rowsort
SELECT - ( + + ( - - 97 ) ) * + + ( ( 53 ) ) + 81
----
-5060

query I rowsort
SELECT ALL ( + 4 ) col0
----
4

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3008
SELECT - CAST( NULL AS DECIMAL ) / + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-3008
SELECT - CAST ( NULL AS REAL ) / + 56
----
NULL

query I rowsort
SELECT DISTINCT - NULLIF ( - 54, + 57 ) * + + 73 AS col0
----
3942

query II rowsort
SELECT - 13 * - + 13 col0, 8
----
169
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3011
SELECT ALL - MAX( DISTINCT 11 ) DIV 39 + 33 + - + 46, + 38 * + COUNT( * ) AS col0
----
-13
38

skipif mysql # not compatible
query II rowsort label-3011
SELECT ALL - MAX ( DISTINCT 11 ) / 39 + 33 + - + 46, + 38 * + COUNT ( * ) AS col0
----
-13
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3012
SELECT + + COUNT( * ) - - - 98 * + + 86 AS col1
----
-8427

skipif mysql # not compatible
query I rowsort label-3012
SELECT + + COUNT ( * ) - - - 98 * + + 86 AS col1
----
-8427

onlyif mysql # DIV for integer division: 
query I rowsort label-3013
SELECT ALL + + 34 DIV ( + 29 ) + + ( - 91 ) AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-3013
SELECT ALL + + 34 / ( + 29 ) + + ( - 91 ) AS col0
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3014
SELECT 77 DIV - 99 + + 86 + + COUNT( * ) * 87 * + + 65 col1
----
5741

skipif mysql # not compatible
query I rowsort label-3014
SELECT 77 / - 99 + + 86 + + COUNT ( * ) * 87 * + + 65 col1
----
5741

query I rowsort
SELECT + - 93 col2
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3016
SELECT + - MAX( DISTINCT 79 ), + NULLIF ( - + 59, 78 ) * - 41 * + - CAST( NULL AS SIGNED ) / + + 29 + - 68 + - COUNT( * ) * - + 94 - - 68 + ( 92 ) * - + 13 / + + 7 * 95 AS col1
----
-79
NULL

skipif mysql # not compatible
query II rowsort label-3016
SELECT + - MAX ( DISTINCT 79 ), + NULLIF ( - + 59, 78 ) * - 41 * + - CAST ( NULL AS INTEGER ) / + + 29 + - 68 + - COUNT ( * ) * - + 94 - - 68 + ( 92 ) * - + 13 / + + 7 * 95 AS col1
----
-79
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3017
SELECT ALL + + 2 DIV - COUNT( * ) + 56
----
54

skipif mysql # not compatible
query I rowsort label-3017
SELECT ALL + + 2 / - COUNT ( * ) + 56
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-3018
SELECT ( + + NULLIF ( COUNT( * ), - + 48 + 59 + + COUNT( * ) / - 50 ) ), ( + 9 ) AS col2
----
1
9

skipif mysql # not compatible
query II rowsort label-3018
SELECT ( + + NULLIF ( COUNT ( * ), - + 48 + 59 + + COUNT ( * ) / - 50 ) ), ( + 9 ) AS col2
----
1
9

query I rowsort
SELECT - ( - 35 )
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-3020
SELECT ALL - 6 DIV - 94 + + + 82 * - 25 AS col1
----
-2050

skipif mysql # not compatible
query I rowsort label-3020
SELECT ALL - 6 / - 94 + + + 82 * - 25 AS col1
----
-2050

query I rowsort
SELECT + 89 + 8 AS col0
----
97

query I rowsort
SELECT DISTINCT + ( + 50 )
----
50

query I rowsort
SELECT ALL - 20 * - 78 - 15 * + + 15 AS col0
----
1335

query I rowsort
SELECT DISTINCT + 1 AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3025
SELECT - 14 * NULLIF ( COALESCE ( + CAST( NULL AS SIGNED ), - - ( COUNT( * ) ) + + 80, + COUNT( * ), - 4 + CASE - MAX( + 58 ) WHEN + ( - 7 ) THEN - COUNT( 81 ) * - 34 ELSE - + CASE + 54 WHEN - - 76 * + 50 * - + COUNT( * ) + 91 THEN 16 * 92 + + COUNT( * ) DIV + 91 WHEN 95 THEN + NULLIF ( - 71, - 89 ) WHEN - ( 60 ) * 38 THEN NULL END * - 38 END ), CAST( NULL AS SIGNED ) + + 12 ) * 70 + 4 + 13 * - 92
----
-80572

skipif mysql # not compatible
query I rowsort label-3025
SELECT - 14 * NULLIF ( COALESCE ( + CAST ( NULL AS INTEGER ), - - ( COUNT ( * ) ) + + 80, + COUNT ( * ), - 4 + CASE - MAX ( + 58 ) WHEN + ( - 7 ) THEN - COUNT ( 81 ) * - 34 ELSE - + CASE + 54 WHEN - - 76 * + 50 * - + COUNT ( * ) + 91 THEN 16 * 92 + + COUNT ( * ) / + 91 WHEN 95 THEN + NULLIF ( - 71, - 89 ) WHEN - ( 60 ) * 38 THEN NULL END * - 38 END ), CAST ( NULL AS INTEGER ) + + 12 ) * 70 + 4 + 13 * - 92
----
-80572

onlyif mysql # aggregate syntax: 
query I rowsort label-3026
SELECT + NULLIF ( - 98, + - MIN( DISTINCT 92 ) - + 46 ) AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-3026
SELECT + NULLIF ( - 98, + - MIN ( DISTINCT 92 ) - + 46 ) AS col0
----
-98

query I rowsort
SELECT - 63 * - + 11
----
693

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3028
SELECT + COUNT( * ) + - + 38 * - 31 * MIN( - CAST( 42 AS SIGNED ) ) + + SUM( - 49 ) AS col1
----
-49524

skipif mysql # not compatible
query I rowsort label-3028
SELECT + COUNT ( * ) + - + 38 * - 31 * MIN ( - CAST ( 42 AS INTEGER ) ) + + SUM ( - 49 ) AS col1
----
-49524

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3029
SELECT ALL 57 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3029
SELECT ALL 57 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + 27 * - 64
----
-1728

query I rowsort
SELECT ALL ( - 99 ) AS col2
----
-99

query I rowsort
SELECT 92 - + + 1
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-3033
SELECT 96 DIV + - 71
----
-1

skipif mysql # not compatible
query I rowsort label-3033
SELECT 96 / + - 71
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3034
SELECT 67 + + 77 - - 41 - + + CAST( NULL AS DECIMAL ) + - - 13 * + + COALESCE ( 47, - 14 ) * + 23 / 79
----
NULL

skipif mysql # not compatible
query I rowsort label-3034
SELECT 67 + + 77 - - 41 - + + CAST ( NULL AS REAL ) + - - 13 * + + COALESCE ( 47, - 14 ) * + 23 / 79
----
NULL

query II rowsort
SELECT 5 + + + 45 * + 5 AS col2, + ( - 83 ) AS col1
----
230
-83

query II rowsort
SELECT 16 AS col2, 77 * + - 25 * + + 9
----
16
-17325

onlyif mysql # aggregate syntax: 
query I rowsort label-3037
SELECT SUM( + 10 ) + + 49 - - 51 AS col0
----
110

skipif mysql # not compatible
query I rowsort label-3037
SELECT SUM ( + 10 ) + + 49 - - 51 AS col0
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-3038
SELECT 27 - + COUNT( * ) + + COALESCE ( + 7, - 34 ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-3038
SELECT 27 - + COUNT ( * ) + + COALESCE ( + 7, - 34 ) AS col2
----
33

query I rowsort
SELECT ALL + 22 + + 98 AS col0
----
120

onlyif mysql # DIV for integer division: 
query I rowsort label-3040
SELECT 1 + - 59 - + + 61 DIV - 81 * 58
----
-58

skipif mysql # not compatible
query I rowsort label-3040
SELECT 1 + - 59 - + + 61 / - 81 * 58
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3041
SELECT ALL COUNT( * ) + - 12 + - - COUNT( * )
----
-10

skipif mysql # not compatible
query I rowsort label-3041
SELECT ALL COUNT ( * ) + - 12 + - - COUNT ( * )
----
-10

query I rowsort
SELECT 11 + 24
----
35

query II rowsort
SELECT 16 AS col0, ( + 53 )
----
16
53

query I rowsort
SELECT DISTINCT 56 AS col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3045
SELECT + 66 + + COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-3045
SELECT + 66 + + COUNT ( * )
----
67

query I rowsort
SELECT ( - + 50 ) AS col0
----
-50

query II rowsort
SELECT 76 AS col0, + 28
----
76
28

query I rowsort
SELECT - + 64
----
-64

query I rowsort
SELECT 8 + 64 col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3050
SELECT - COUNT( * ) * 49
----
-49

skipif mysql # not compatible
query I rowsort label-3050
SELECT - COUNT ( * ) * 49
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-3051
SELECT DISTINCT - + 13 DIV + - 87 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3051
SELECT DISTINCT - + 13 / + - 87 AS col1
----
0

query I rowsort
SELECT + + 85
----
85

query I rowsort
SELECT ALL - - 46 + - 22 AS col2
----
24

query II rowsort
SELECT + 91, 92 * - 34 col2
----
91
-3128

onlyif mysql # aggregate syntax: 
query II rowsort label-3055
SELECT ALL - COUNT( * ) AS col1, 28
----
-1
28

skipif mysql # not compatible
query II rowsort label-3055
SELECT ALL - COUNT ( * ) AS col1, 28
----
-1
28

query I rowsort
SELECT ALL - - 71 * 9 col0
----
639

query I rowsort
SELECT 56 + - - 0 - 99
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-3058
SELECT + 22 + - + 99 + 17 + + ( + 56 ) * - 40 - - - 98 * + - COUNT( * )
----
-2202

skipif mysql # not compatible
query I rowsort label-3058
SELECT + 22 + - + 99 + 17 + + ( + 56 ) * - 40 - - - 98 * + - COUNT ( * )
----
-2202

query I rowsort
SELECT DISTINCT - + 97 AS col0
----
-97

query I rowsort
SELECT DISTINCT - 38 AS col0
----
-38

query I rowsort
SELECT DISTINCT - 9 AS col0
----
-9

query I rowsort
SELECT DISTINCT - 48
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-3063
SELECT ALL 98 * COUNT( * ) AS col1, - 23
----
98
-23

skipif mysql # not compatible
query II rowsort label-3063
SELECT ALL 98 * COUNT ( * ) AS col1, - 23
----
98
-23

query I rowsort
SELECT 86 * + 17 * + ( 91 ) AS col0
----
133042

query I rowsort
SELECT DISTINCT - 25 col0
----
-25

query I rowsort
SELECT ALL 62 * 28
----
1736

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3067
SELECT 76 DIV + COALESCE ( + 71, + 18 + + COUNT( * ), + + 95 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3067
SELECT 76 / + COALESCE ( + 71, + 18 + + COUNT ( * ), + + 95 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3068
SELECT COUNT( * ) * ( + 64 ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-3068
SELECT COUNT ( * ) * ( + 64 ) AS col0
----
64

query I rowsort
SELECT ALL + 18 + + - 20 - - + 73 AS col1
----
71

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3070
SELECT ALL - CAST( 56 AS SIGNED ) DIV - 50
----
1

skipif mysql # not compatible
query I rowsort label-3070
SELECT ALL - CAST ( 56 AS INTEGER ) / - 50
----
1

query I rowsort
SELECT DISTINCT 1 AS col0
----
1

query I rowsort
SELECT DISTINCT 54 + - 72
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-3073
SELECT 1 * + COUNT( * ) DIV + - 37 * 75 AS col0, - 90 AS col0, + 76 * + + 71 + - 86
----
0
-90
5310

skipif mysql # not compatible
query III rowsort label-3073
SELECT 1 * + COUNT ( * ) / + - 37 * 75 AS col0, - 90 AS col0, + 76 * + + 71 + - 86
----
0
-90
5310

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3074
SELECT 36 * + CAST( - 92 AS SIGNED )
----
-3312

skipif mysql # not compatible
query I rowsort label-3074
SELECT 36 * + CAST ( - 92 AS INTEGER )
----
-3312

query I rowsort
SELECT ALL ( + 52 ) AS col1
----
52

query I rowsort
SELECT - + 76 AS col2
----
-76

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3077
SELECT CASE - 7 WHEN COALESCE ( - ( 18 ), + 53, - 83 * AVG ( - 27 ) + - NULLIF ( + - 25, - 75 / + COALESCE ( COUNT( * ), + + MAX( DISTINCT + - 35 ), - 44 ) * + - 20 ), + 90 + + CAST( + - 69 AS DECIMAL ) - - MAX( - 53 ) * COUNT( * ) / - 50 ) / COUNT( * ) - 30 THEN NULL WHEN 36 THEN NULL WHEN - 54 + 74 THEN 77 ELSE NULL END - + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-3077
SELECT CASE - 7 WHEN COALESCE ( - ( 18 ), + 53, - 83 * AVG ( - 27 ) + - NULLIF ( + - 25, - 75 / + COALESCE ( COUNT ( * ), + + MAX ( DISTINCT + - 35 ), - 44 ) * + - 20 ), + 90 + + CAST ( + - 69 AS REAL ) - - MAX ( - 53 ) * COUNT ( * ) / - 50 ) / COUNT ( * ) - 30 THEN NULL WHEN 36 THEN NULL WHEN - 54 + 74 THEN 77 ELSE NULL END - + 95
----
NULL

query I rowsort
SELECT - + 7 AS col2
----
-7

query I rowsort
SELECT DISTINCT 18 * + 42
----
756

onlyif mysql # aggregate syntax: 
query I rowsort label-3080
SELECT ALL - + 10 - - COUNT( * ) + - - COUNT( * ) + 11 * ( + 34 ) * + 38 * + COUNT( * ) * + 82 * - 72 AS col1
----
-83907656

skipif mysql # not compatible
query I rowsort label-3080
SELECT ALL - + 10 - - COUNT ( * ) + - - COUNT ( * ) + 11 * ( + 34 ) * + 38 * + COUNT ( * ) * + 82 * - 72 AS col1
----
-83907656

onlyif mysql # aggregate syntax: 
query I rowsort label-3081
SELECT 33 * - MAX( DISTINCT ( - 92 ) )
----
3036

skipif mysql # not compatible
query I rowsort label-3081
SELECT 33 * - MAX ( DISTINCT ( - 92 ) )
----
3036

onlyif mysql # aggregate syntax: 
query I rowsort label-3082
SELECT DISTINCT - COALESCE ( ( COUNT( + - 45 ) ), + - 5 * + + ( - - 9 ) ) * COUNT( * ) * - + 2 - + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3082
SELECT DISTINCT - COALESCE ( ( COUNT ( + - 45 ) ), + - 5 * + + ( - - 9 ) ) * COUNT ( * ) * - + 2 - + COUNT ( * ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3083
SELECT 81 + - COALESCE ( 75, - COUNT( * ) DIV - + 51 DIV - 90 + + 74 ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-3083
SELECT 81 + - COALESCE ( 75, - COUNT ( * ) / - + 51 / - 90 + + 74 ) AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3084
SELECT ALL + 90 * - 92 + - 78 * COALESCE ( + - 24, - COUNT( * ) * - ( + 54 ) + - - 58 ) - + COUNT( * ) col2
----
-6409

skipif mysql # not compatible
query I rowsort label-3084
SELECT ALL + 90 * - 92 + - 78 * COALESCE ( + - 24, - COUNT ( * ) * - ( + 54 ) + - - 58 ) - + COUNT ( * ) col2
----
-6409

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3085
SELECT 12 * CAST( NULL AS SIGNED ) AS col1, 92 + CAST( 94 AS SIGNED ) AS col2
----
NULL
186

skipif mysql # not compatible
query II rowsort label-3085
SELECT 12 * CAST ( NULL AS INTEGER ) AS col1, 92 + CAST ( 94 AS INTEGER ) AS col2
----
NULL
186

query I rowsort
SELECT + 2 * + 16 * + 73 AS col1
----
2336

onlyif mysql # aggregate syntax: 
query II rowsort label-3087
SELECT ALL - + MIN( - 24 ) AS col2, COUNT( * ) AS col2
----
24
1

skipif mysql # not compatible
query II rowsort label-3087
SELECT ALL - + MIN ( - 24 ) AS col2, COUNT ( * ) AS col2
----
24
1

query I rowsort
SELECT ALL - + 29 AS col2
----
-29

query I rowsort
SELECT + 69 * - 55
----
-3795

query I rowsort
SELECT + 47 * 38 + 86 * 52 + - - 22 AS col0
----
6280

onlyif mysql # DIV for integer division: 
query II rowsort label-3091
SELECT DISTINCT + - 76 DIV - 91, + 11 * ( + 80 ) AS col1
----
0
880

skipif mysql # not compatible
query II rowsort label-3091
SELECT DISTINCT + - 76 / - 91, + 11 * ( + 80 ) AS col1
----
0
880

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3092
SELECT - COALESCE ( COUNT( * ), - 95 ) DIV 78 - - - 15 AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-3092
SELECT - COALESCE ( COUNT ( * ), - 95 ) / 78 - - - 15 AS col0
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-3093
SELECT ALL + 25 col1, - COUNT( * )
----
25
-1

skipif mysql # not compatible
query II rowsort label-3093
SELECT ALL + 25 col1, - COUNT ( * )
----
25
-1

query I rowsort
SELECT DISTINCT + 12 * + 28
----
336

query I rowsort
SELECT - 92 * 39 AS col2
----
-3588

onlyif mysql # aggregate syntax: 
query I rowsort label-3096
SELECT - 13 * 33 * + 48 + - COUNT( * ) col2
----
-20593

skipif mysql # not compatible
query I rowsort label-3096
SELECT - 13 * 33 * + 48 + - COUNT ( * ) col2
----
-20593

query I rowsort
SELECT ALL + ( + - 85 )
----
-85

query I rowsort
SELECT DISTINCT - 40 * + 3 col0
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-3099
SELECT ALL - COUNT( * ) + 65 AS col1
----
64

skipif mysql # not compatible
query I rowsort label-3099
SELECT ALL - COUNT ( * ) + 65 AS col1
----
64

query I rowsort
SELECT ALL + ( 17 ) AS col0
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-3101
SELECT COUNT( * ) AS col0, + 3
----
1
3

skipif mysql # not compatible
query II rowsort label-3101
SELECT COUNT ( * ) AS col0, + 3
----
1
3

query I rowsort
SELECT DISTINCT ( 9 ) + - 24 * - + 53
----
1281

query I rowsort
SELECT ALL - 22 + 71
----
49

query II rowsort
SELECT ALL 93 AS col2, + 52 + 69 * + - 89 + - - ( - + 92 ) AS col2
----
93
-6181

onlyif mysql # aggregate syntax: 
query I rowsort label-3105
SELECT - MAX( DISTINCT - 34 )
----
34

skipif mysql # not compatible
query I rowsort label-3105
SELECT - MAX ( DISTINCT - 34 )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3106
SELECT DISTINCT ( + COALESCE ( 32, - - 76 * - 65 + COUNT( * ) + + - 29 * + - 69 * - 1 * + 19 + 66, COUNT( * ) * + - 21 ) )
----
32

skipif mysql # not compatible
query I rowsort label-3106
SELECT DISTINCT ( + COALESCE ( 32, - - 76 * - 65 + COUNT ( * ) + + - 29 * + - 69 * - 1 * + 19 + 66, COUNT ( * ) * + - 21 ) )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3107
SELECT - 78 + + 31 + + - COUNT( ALL + 75 ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-3107
SELECT - 78 + + 31 + + - COUNT ( ALL + 75 ) AS col2
----
-48

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3108
SELECT + 84 * CAST( NULL AS DECIMAL ) * - - 99, + ( - - COUNT( * ) ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-3108
SELECT + 84 * CAST ( NULL AS REAL ) * - - 99, + ( - - COUNT ( * ) ) AS col1
----
NULL
1

query I rowsort
SELECT - + 73 + - - 93
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-3110
SELECT ALL + 4 * + 91 + MAX( ALL + 58 ) + 66 AS col1, - 81 * + MIN( - + 77 ) * - 52 * + 10 * + 40 + + 50
----
488
-129729550

skipif mysql # not compatible
query II rowsort label-3110
SELECT ALL + 4 * + 91 + MAX ( ALL + 58 ) + 66 AS col1, - 81 * + MIN ( - + 77 ) * - 52 * + 10 * + 40 + + 50
----
488
-129729550

onlyif mysql # aggregate syntax: 
query II rowsort label-3111
SELECT + - 98 + + COUNT( * ) * 57 AS col0, + 19 + + MIN( DISTINCT - + 4 )
----
-41
15

skipif mysql # not compatible
query II rowsort label-3111
SELECT + - 98 + + COUNT ( * ) * 57 AS col0, + 19 + + MIN ( DISTINCT - + 4 )
----
-41
15

query I rowsort
SELECT ALL + 93 - - + 88 AS col1
----
181

query I rowsort
SELECT DISTINCT 97 AS col1
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-3114
SELECT - - COALESCE ( + 96, 5 ), + COUNT( * ) * - COUNT( * ) + + + 20 AS col2
----
96
19

skipif mysql # not compatible
query II rowsort label-3114
SELECT - - COALESCE ( + 96, 5 ), + COUNT ( * ) * - COUNT ( * ) + + + 20 AS col2
----
96
19

query I rowsort
SELECT ALL + 4 col1
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3116
SELECT + MIN( ALL - + 14 ) + COALESCE ( + 36, - - 67, - CAST( NULL AS SIGNED ) * 11 - + 14 * - 27 ) + - - MIN( - 68 ) AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-3116
SELECT + MIN ( ALL - + 14 ) + COALESCE ( + 36, - - 67, - CAST ( NULL AS INTEGER ) * 11 - + 14 * - 27 ) + - - MIN ( - 68 ) AS col1
----
-46

query I rowsort
SELECT ALL CASE - + CASE + + 3 WHEN + 99 THEN + 64 + - + 32 WHEN - 79 * - 95 - - 95 THEN NULL END WHEN + 15 THEN 81 + - - 4 + - 88 WHEN - 36 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3118
SELECT + 8 * + 11 * - CAST( 26 AS SIGNED )
----
-2288

skipif mysql # not compatible
query I rowsort label-3118
SELECT + 8 * + 11 * - CAST ( 26 AS INTEGER )
----
-2288

onlyif mysql # aggregate syntax: 
query I rowsort label-3119
SELECT + COUNT( DISTINCT - 95 ) + + 71 * 18 AS col2
----
1279

skipif mysql # not compatible
query I rowsort label-3119
SELECT + COUNT ( DISTINCT - 95 ) + + 71 * 18 AS col2
----
1279

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3120
SELECT DISTINCT - CAST( 72 AS SIGNED ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-3120
SELECT DISTINCT - CAST ( 72 AS INTEGER ) AS col2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-3121
SELECT - - 91 * - + 64 * - - 12 * - SUM( DISTINCT - 59 ) AS col1
----
-4123392

skipif mysql # not compatible
query I rowsort label-3121
SELECT - - 91 * - + 64 * - - 12 * - SUM ( DISTINCT - 59 ) AS col1
----
-4123392

query I rowsort
SELECT ALL + + 74
----
74

query II rowsort
SELECT + 66 * - 69 - - + 36, + 42 AS col2
----
-4518
42

query I rowsort
SELECT ALL + - 41 AS col0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-3125
SELECT DISTINCT - COUNT( * ) * - MIN( - 12 ) * 62 * 98 + + 9
----
-72903

skipif mysql # not compatible
query I rowsort label-3125
SELECT DISTINCT - COUNT ( * ) * - MIN ( - 12 ) * 62 * 98 + + 9
----
-72903

query I rowsort
SELECT ( 39 ) AS col1
----
39

query I rowsort
SELECT + 60 col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3128
SELECT + COUNT( DISTINCT - - 45 ) * + 66 AS col2
----
66

skipif mysql # not compatible
query I rowsort label-3128
SELECT + COUNT ( DISTINCT - - 45 ) * + 66 AS col2
----
66

query II rowsort
SELECT - 98 * + + 73 AS col2, 81 - - 33
----
-7154
114

query I rowsort
SELECT ( COALESCE ( + 90, + - 19, + 12 ) ) AS col2
----
90

query I rowsort
SELECT ( - + 15 ) col1
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3132
SELECT + CAST( - 93 AS SIGNED ) col0
----
-93

skipif mysql # not compatible
query I rowsort label-3132
SELECT + CAST ( - 93 AS INTEGER ) col0
----
-93

query I rowsort
SELECT ( + + 68 ) AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3134
SELECT + COUNT( * ) * - 69 + + COUNT( * ) col1
----
-68

skipif mysql # not compatible
query I rowsort label-3134
SELECT + COUNT ( * ) * - 69 + + COUNT ( * ) col1
----
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3135
SELECT - 21 - - - ( + 18 ) DIV + + COUNT( * ) + - 98 AS col1
----
-137

skipif mysql # not compatible
query I rowsort label-3135
SELECT - 21 - - - ( + 18 ) / + + COUNT ( * ) + - 98 AS col1
----
-137

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3136
SELECT - 97 * - 57 AS col1, 12 + - CASE - + ( 25 ) WHEN ( - 15 ) * + 6 THEN NULL WHEN 58 * - + 13 * + + AVG ( ALL + 49 ) * + + COUNT( * ) + CAST( - 28 AS SIGNED ) THEN NULL ELSE - - 73 END + COUNT( * )
----
5529
-60

skipif mysql # not compatible
query II rowsort label-3136
SELECT - 97 * - 57 AS col1, 12 + - CASE - + ( 25 ) WHEN ( - 15 ) * + 6 THEN NULL WHEN 58 * - + 13 * + + AVG ( ALL + 49 ) * + + COUNT ( * ) + CAST ( - 28 AS INTEGER ) THEN NULL ELSE - - 73 END + COUNT ( * )
----
5529
-60

query I rowsort
SELECT ALL + 63 * 92
----
5796

query I rowsort
SELECT ALL 34 * - 74 + - 5 * - + ( - 46 )
----
-2746

query I rowsort
SELECT ALL + 29 * - 77 + - - 30 + + 71 * - + 32 AS col1
----
-4475

query I rowsort
SELECT - 8 + + 53 * - 58 AS col0
----
-3082

query I rowsort
SELECT DISTINCT - 96 * + 43 + - 87 AS col1
----
-4215

onlyif mysql # aggregate syntax: 
query I rowsort label-3142
SELECT COALESCE ( 80, - COALESCE ( - ( - 59 ), + - 64 ), - CASE - 78 WHEN - 14 * - 45 + + ( + ( + + ( + 70 ) ) ) + - 37 * - + 18 * COUNT( * ) THEN NULL ELSE + - 79 END ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-3142
SELECT COALESCE ( 80, - COALESCE ( - ( - 59 ), + - 64 ), - CASE - 78 WHEN - 14 * - 45 + + ( + ( + + ( + 70 ) ) ) + - 37 * - + 18 * COUNT ( * ) THEN NULL ELSE + - 79 END ) AS col1
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3143
SELECT - CAST( - ( + COUNT( * ) ) AS SIGNED ) * + - 77 + COALESCE ( 31, + 33 ) * 49 * + 50 * - 97 * + COUNT( * ) AS col0
----
-7367227

skipif mysql # not compatible
query I rowsort label-3143
SELECT - CAST ( - ( + COUNT ( * ) ) AS INTEGER ) * + - 77 + COALESCE ( 31, + 33 ) * 49 * + 50 * - 97 * + COUNT ( * ) AS col0
----
-7367227

query I rowsort
SELECT - 43 * 37 AS col1
----
-1591

query I rowsort
SELECT DISTINCT ( - - NULLIF ( - + 72, 12 + 37 + - 90 * - + 48 ) )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-3146
SELECT - 72 * - COUNT( * ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-3146
SELECT - 72 * - COUNT ( * ) AS col0
----
72

query I rowsort
SELECT - + 69 * - 5 AS col0
----
345

onlyif mysql # aggregate syntax: 
query I rowsort label-3148
SELECT ALL + - CASE COUNT( * ) WHEN 92 THEN + MAX( - 55 ) END * 63 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3148
SELECT ALL + - CASE COUNT ( * ) WHEN 92 THEN + MAX ( - 55 ) END * 63 AS col2
----
NULL

query II rowsort
SELECT ALL - 96 AS col2, 77
----
-96
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3150
SELECT DISTINCT + + 77 - + - COALESCE ( ( - + 37 ), + - CASE 4 WHEN + + 55 + - 19 THEN NULL WHEN + 60 * + CASE ( - CAST( NULL AS SIGNED ) ) WHEN + 87 THEN + - 71 END THEN - - NULLIF ( + 72, COALESCE ( - 29, - + 78 DIV - NULLIF ( 90, - CASE + + ( - - COUNT( * ) ) WHEN - 86 + + 63 THEN 67 + 54 WHEN 10 - + 89 THEN - ( - ( COUNT( * ) ) ) ELSE + 52 END + 75 ) + 71, - CAST( NULL AS SIGNED ) ) ) * - COALESCE ( - 1 - 62, 60 + NULLIF ( 28, ( - NULLIF ( 27, 63 DIV - 93 ) ) * - COUNT( * ) + 77 * + 41 ) * + 95 ) ELSE NULL END * + 31 + + 34, + 88 DIV - 9, - 73 )
----
40

skipif mysql # not compatible
query I rowsort label-3150
SELECT DISTINCT + + 77 - + - COALESCE ( ( - + 37 ), + - CASE 4 WHEN + + 55 + - 19 THEN NULL WHEN + 60 * + CASE ( - CAST ( NULL AS INTEGER ) ) WHEN + 87 THEN + - 71 END THEN - - NULLIF ( + 72, COALESCE ( - 29, - + 78 / - NULLIF ( 90, - CASE + + ( - - COUNT ( * ) ) WHEN - 86 + + 63 THEN 67 + 54 WHEN 10 - + 89 THEN - ( - ( COUNT ( * ) ) ) ELSE + 52 END + 75 ) + 71, - CAST ( NULL AS INTEGER ) ) ) * - COALESCE ( - 1 - 62, 60 + NULLIF ( 28, ( - NULLIF ( 27, 63 / - 93 ) ) * - COUNT ( * ) + 77 * + 41 ) * + 95 ) ELSE NULL END * + 31 + + 34, + 88 / - 9, - 73 )
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-3151
SELECT + 39 * 62, - COUNT( * ) AS col1
----
2418
-1

skipif mysql # not compatible
query II rowsort label-3151
SELECT + 39 * 62, - COUNT ( * ) AS col1
----
2418
-1

query II rowsort
SELECT - - 72 AS col0, - 29
----
72
-29

query II rowsort
SELECT + ( 41 ), - 89 AS col1
----
41
-89

query I rowsort
SELECT ALL CASE - 0 WHEN 47 THEN 59 ELSE 23 END AS col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3155
SELECT ALL - MAX( + + ( - 31 ) ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-3155
SELECT ALL - MAX ( + + ( - 31 ) ) AS col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3156
SELECT COUNT( + - 80 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3156
SELECT COUNT ( + - 80 ) AS col0
----
1

query I rowsort
SELECT - - ( - - 79 ) col1
----
79

query I rowsort
SELECT - + 49
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-3159
SELECT - - 43 * + 28 + COUNT( * )
----
1205

skipif mysql # not compatible
query I rowsort label-3159
SELECT - - 43 * + 28 + COUNT ( * )
----
1205

query I rowsort
SELECT + - 37 * - 85 * - - 59
----
185555

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3161
SELECT ALL + 32 * + COALESCE ( + - 83, - - 53 * - CAST( COUNT( * ) AS SIGNED ) + - 71, - 59 ) AS col0
----
-2656

skipif mysql # not compatible
query I rowsort label-3161
SELECT ALL + 32 * + COALESCE ( + - 83, - - 53 * - CAST ( COUNT ( * ) AS INTEGER ) + - 71, - 59 ) AS col0
----
-2656

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3162
SELECT - ( - + CAST( NULL AS SIGNED ) ) - - + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-3162
SELECT - ( - + CAST ( NULL AS INTEGER ) ) - - + 97
----
NULL

query I rowsort
SELECT - 93 col2
----
-93

query I rowsort
SELECT DISTINCT - 49 + - + 56 + - + 90 + + 33 AS col0
----
-162

query I rowsort
SELECT DISTINCT + 74 + - 3 AS col2
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-3166
SELECT ALL - + 47, + MIN( DISTINCT - 73 ) AS col2
----
-47
-73

skipif mysql # not compatible
query II rowsort label-3166
SELECT ALL - + 47, + MIN ( DISTINCT - 73 ) AS col2
----
-47
-73

query II rowsort
SELECT + + 98, - 10 AS col1
----
98
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3168
SELECT MIN( + + 67 ) + - 26 - 69 + + COUNT( * )
----
-27

skipif mysql # not compatible
query I rowsort label-3168
SELECT MIN ( + + 67 ) + - 26 - 69 + + COUNT ( * )
----
-27

query I rowsort
SELECT + 60 col2
----
60

query I rowsort
SELECT ALL 39 + + + 20 + + 55 * - 4
----
-161

query I rowsort
SELECT DISTINCT 44 + - 25 AS col2
----
19

query I rowsort
SELECT ALL - 66 AS col2
----
-66

query I rowsort
SELECT - 67 * + 34 + 84 + + 90
----
-2104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3174
SELECT CAST( NULL AS SIGNED ) * - + 6 * - 5 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3174
SELECT CAST ( NULL AS INTEGER ) * - + 6 * - 5 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 59 col0
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-3176
SELECT 30 DIV + 40 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3176
SELECT 30 / + 40 AS col2
----
0

query I rowsort
SELECT ALL - 32 * 26
----
-832

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3178
SELECT DISTINCT - MIN( DISTINCT - 42 ) * - - 54 + 89 DIV + + 99 AS col2
----
2268

skipif mysql # not compatible
query I rowsort label-3178
SELECT DISTINCT - MIN ( DISTINCT - 42 ) * - - 54 + 89 / + + 99 AS col2
----
2268

onlyif mysql # aggregate syntax: 
query I rowsort label-3179
SELECT + MAX( - 28 ) + - 54 + - 84 + - 20 AS col2
----
-186

skipif mysql # not compatible
query I rowsort label-3179
SELECT + MAX ( - 28 ) + - 54 + - 84 + - 20 AS col2
----
-186

onlyif mysql # aggregate syntax: 
query II rowsort label-3180
SELECT 0 * 89 AS col0, COUNT( * ) + + 24
----
0
25

skipif mysql # not compatible
query II rowsort label-3180
SELECT 0 * 89 AS col0, COUNT ( * ) + + 24
----
0
25

query I rowsort
SELECT ALL + 52 * 54 col2
----
2808

onlyif mysql # aggregate syntax: 
query I rowsort label-3182
SELECT SUM( + 72 ) + + 87 AS col1
----
159

skipif mysql # not compatible
query I rowsort label-3182
SELECT SUM ( + 72 ) + + 87 AS col1
----
159

query I rowsort
SELECT + 46 + + + 13
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3184
SELECT + SUM( + + 75 ) DIV - + 57 + + + ( + 47 ) + + NULLIF ( - 28, - ( + 15 ) )
----
18

skipif mysql # not compatible
query I rowsort label-3184
SELECT + SUM ( + + 75 ) / - + 57 + + + ( + 47 ) + + NULLIF ( - 28, - ( + 15 ) )
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-3185
SELECT 77 * + + 73 AS col2, 81 * + COUNT( - + 96 )
----
5621
81

skipif mysql # not compatible
query II rowsort label-3185
SELECT 77 * + + 73 AS col2, 81 * + COUNT ( - + 96 )
----
5621
81

query I rowsort
SELECT - 73 * - + 26 + - - NULLIF ( + + 8, - - 45 )
----
1906

onlyif mysql # aggregate syntax: 
query I rowsort label-3187
SELECT DISTINCT - - 70 + + COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-3187
SELECT DISTINCT - - 70 + + COUNT ( * )
----
71

query I rowsort
SELECT ALL - 11 + + + ( 92 ) + - 30 AS col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3189
SELECT - 39 + + MIN( + 80 ) + - 62 * 62
----
-3803

skipif mysql # not compatible
query I rowsort label-3189
SELECT - 39 + + MIN ( + 80 ) + - 62 * 62
----
-3803

query I rowsort
SELECT - NULLIF ( + - 22, - 36 )
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-3191
SELECT ALL - - 57 DIV + - 22 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-3191
SELECT ALL - - 57 / + - 22 AS col2
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3192
SELECT + CAST( NULL AS SIGNED ) * - 2 AS col2, - 65
----
NULL
-65

skipif mysql # not compatible
query II rowsort label-3192
SELECT + CAST ( NULL AS INTEGER ) * - 2 AS col2, - 65
----
NULL
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-3193
SELECT ALL COUNT( * ) + - + 78 + 91 AS col0
----
14

skipif mysql # not compatible
query I rowsort label-3193
SELECT ALL COUNT ( * ) + - + 78 + 91 AS col0
----
14

query II rowsort
SELECT - 58 AS col0, + 96 AS col2
----
-58
96

query I rowsort
SELECT ALL - 8 * - 20
----
160

query I rowsort
SELECT DISTINCT + 53 + + 64
----
117

query II rowsort
SELECT ALL - 66, 18 * + 66 - + - ( + - 52 ) + - + 84 AS col1
----
-66
1052

query I rowsort
SELECT DISTINCT - 90 * + + 28
----
-2520

onlyif mysql # aggregate syntax: 
query I rowsort label-3199
SELECT SUM( - + 16 )
----
-16

skipif mysql # not compatible
query I rowsort label-3199
SELECT SUM ( - + 16 )
----
-16

query I rowsort
SELECT ALL 85 - + + 66 col1
----
19

query I rowsort
SELECT 21 * - 80
----
-1680

query II rowsort
SELECT ALL - 56 col2, 28 + + 52
----
-56
80

onlyif mysql # DIV for integer division: 
query I rowsort label-3203
SELECT DISTINCT 32 DIV + 92 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3203
SELECT DISTINCT 32 / + 92 AS col2
----
0

query II rowsort
SELECT DISTINCT - 72 AS col1, + 81 * + + 97 * + 47 AS col0
----
-72
369279

query I rowsort
SELECT 11 * - + 62 AS col1
----
-682

onlyif mysql # aggregate syntax: 
query I rowsort label-3206
SELECT COUNT( * ) * + - 30
----
-30

skipif mysql # not compatible
query I rowsort label-3206
SELECT COUNT ( * ) * + - 30
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3207
SELECT ALL CAST( NULL AS SIGNED ) - - 78 + CAST( + 89 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3207
SELECT ALL CAST ( NULL AS INTEGER ) - - 78 + CAST ( + 89 AS INTEGER )
----
NULL

query I rowsort
SELECT NULLIF ( + 82, - 6 * + 49 + - 65 + + 8 * - 19 * 78 ) * - 4 AS col2
----
-328

onlyif mysql # aggregate syntax: 
query I rowsort label-3209
SELECT COUNT( ALL + - 36 )
----
1

skipif mysql # not compatible
query I rowsort label-3209
SELECT COUNT ( ALL + - 36 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3210
SELECT DISTINCT - COUNT( - 30 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3210
SELECT DISTINCT - COUNT ( - 30 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3211
SELECT COUNT( * ) - + NULLIF ( - SUM( + 42 ), + CAST( NULL AS SIGNED ) ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-3211
SELECT COUNT ( * ) - + NULLIF ( - SUM ( + 42 ), + CAST ( NULL AS INTEGER ) ) AS col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-3212
SELECT DISTINCT 78 * - COUNT( * ) col0
----
-78

skipif mysql # not compatible
query I rowsort label-3212
SELECT DISTINCT 78 * - COUNT ( * ) col0
----
-78

query I rowsort
SELECT 46 * - 17 * - 83 * 6
----
389436

onlyif mysql # aggregate syntax: 
query I rowsort label-3214
SELECT ALL - SUM( DISTINCT 88 )
----
-88

skipif mysql # not compatible
query I rowsort label-3214
SELECT ALL - SUM ( DISTINCT 88 )
----
-88

query I rowsort
SELECT + + 10
----
10

query I rowsort
SELECT 53 + - + 19
----
34

query I rowsort
SELECT + + ( 46 ) AS col0
----
46

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3218
SELECT 56 * + + 16 - + + COUNT( * ) - ( + + CASE - + 25 WHEN + - 71 + + - 24 THEN NULL WHEN - + COALESCE ( + 91, - - ( 85 ) / - CAST( 96 AS DECIMAL ) * + - 37 + + MIN( ALL + 36 ), 85 * + 15 + - 10 - - 66 ) THEN ( - 70 ) * 89 - + 26 / + + 82 ELSE NULL END ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3218
SELECT 56 * + + 16 - + + COUNT ( * ) - ( + + CASE - + 25 WHEN + - 71 + + - 24 THEN NULL WHEN - + COALESCE ( + 91, - - ( 85 ) / - CAST ( 96 AS REAL ) * + - 37 + + MIN ( ALL + 36 ), 85 * + 15 + - 10 - - 66 ) THEN ( - 70 ) * 89 - + 26 / + + 82 ELSE NULL END ) col1
----
NULL

query II rowsort
SELECT + 77, 42 AS col2
----
77
42

query I rowsort
SELECT DISTINCT 62 + - + ( + ( - COALESCE ( 78, + ( 47 ) * - 37, + - 71 ) ) ) + + 10 + ( 13 ) AS col1
----
163

query I rowsort
SELECT ALL - 4 + + 31
----
27

query I rowsort
SELECT ALL + + 97 + - 52 * - - 10 + 79
----
-344

onlyif mysql # aggregate syntax: 
query I rowsort label-3223
SELECT DISTINCT - + COUNT( * ) + + + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3223
SELECT DISTINCT - + COUNT ( * ) + + + COUNT ( * ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3224
SELECT ALL - + SUM( DISTINCT 94 ) + - 43 AS col2
----
-137

skipif mysql # not compatible
query I rowsort label-3224
SELECT ALL - + SUM ( DISTINCT 94 ) + - 43 AS col2
----
-137

query I rowsort
SELECT - 33 * - 43 AS col0
----
1419

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3226
SELECT DISTINCT COUNT( * ) DIV ( + 54 ) + - 34 * + 4 + - 58 col2
----
-194

skipif mysql # not compatible
query I rowsort label-3226
SELECT DISTINCT COUNT ( * ) / ( + 54 ) + - 34 * + 4 + - 58 col2
----
-194

query I rowsort
SELECT ALL - - 92 + 28
----
120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3228
SELECT + ( - + 69 ) * - + 28 + 47 + - COUNT( * ) DIV + - 17 AS col1
----
1979

skipif mysql # not compatible
query I rowsort label-3228
SELECT + ( - + 69 ) * - + 28 + 47 + - COUNT ( * ) / + - 17 AS col1
----
1979

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3229
SELECT - - 8 - + + COUNT( ALL + 59 ) DIV 30 * - + 11 AS col2
----
8

skipif mysql # not compatible
query I rowsort label-3229
SELECT - - 8 - + + COUNT ( ALL + 59 ) / 30 * - + 11 AS col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3230
SELECT - - COUNT( - 65 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3230
SELECT - - COUNT ( - 65 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3231
SELECT DISTINCT + COALESCE ( 14, CASE - 81 WHEN 61 + COUNT( * ) THEN - 90 END, - 30 * - 97 ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-3231
SELECT DISTINCT + COALESCE ( 14, CASE - 81 WHEN 61 + COUNT ( * ) THEN - 90 END, - 30 * - 97 ) AS col2
----
14

query I rowsort
SELECT DISTINCT 69 + - 98 - 36 col2
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-3233
SELECT ALL COALESCE ( + ( + MAX( DISTINCT ( - - ( 32 ) ) ) ), 92 + COUNT( * ) * - ( + ( + 46 ) ) )
----
32

skipif mysql # not compatible
query I rowsort label-3233
SELECT ALL COALESCE ( + ( + MAX ( DISTINCT ( - - ( 32 ) ) ) ), 92 + COUNT ( * ) * - ( + ( + 46 ) ) )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3234
SELECT DISTINCT + COUNT( * ) - + 64 AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-3234
SELECT DISTINCT + COUNT ( * ) - + 64 AS col2
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-3235
SELECT DISTINCT MIN( ALL + - 53 ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-3235
SELECT DISTINCT MIN ( ALL + - 53 ) AS col2
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3236
SELECT ALL + CAST( NULL AS SIGNED ) - 70 * - + MAX( + 50 ) * - 66 * - + COUNT( * ) * + CAST( NULL AS SIGNED ) * - - 52 * + - 83 * COUNT( ALL + 73 ) - - 64 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3236
SELECT ALL + CAST ( NULL AS INTEGER ) - 70 * - + MAX ( + 50 ) * - 66 * - + COUNT ( * ) * + CAST ( NULL AS INTEGER ) * - - 52 * + - 83 * COUNT ( ALL + 73 ) - - 64 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 44 * + - 96 AS col1
----
-4224

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3238
SELECT ( - - CAST( + - 38 AS SIGNED ) ) DIV + + 47 + + 22
----
22

skipif mysql # not compatible
query I rowsort label-3238
SELECT ( - - CAST ( + - 38 AS INTEGER ) ) / + + 47 + + 22
----
22

query I rowsort
SELECT - 79 * - COALESCE ( 40, + 44 ) AS col2
----
3160

onlyif mysql # aggregate syntax: 
query II rowsort label-3240
SELECT - 38 + 71, - COUNT( * ) AS col0
----
33
-1

skipif mysql # not compatible
query II rowsort label-3240
SELECT - 38 + 71, - COUNT ( * ) AS col0
----
33
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3241
SELECT - 21 DIV - 40 - + 96 + - COUNT( * ) + 97 * + 44 - - + 69
----
4240

skipif mysql # not compatible
query I rowsort label-3241
SELECT - 21 / - 40 - + 96 + - COUNT ( * ) + 97 * + 44 - - + 69
----
4240

query I rowsort
SELECT ( 10 ) AS col1
----
10

query I rowsort
SELECT + 37 * + ( + 21 ) AS col2
----
777

onlyif mysql # aggregate syntax: 
query I rowsort label-3244
SELECT ALL + ( - SUM( 21 ) )
----
-21

skipif mysql # not compatible
query I rowsort label-3244
SELECT ALL + ( - SUM ( 21 ) )
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3245
SELECT ALL - ( - - 89 ) * 91 + + - 41 - + 56 * - 33 * - - 85 DIV - + COUNT( * ) AS col2
----
-165220

skipif mysql # not compatible
query I rowsort label-3245
SELECT ALL - ( - - 89 ) * 91 + + - 41 - + 56 * - 33 * - - 85 / - + COUNT ( * ) AS col2
----
-165220

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3246
SELECT DISTINCT + CAST( 37 AS SIGNED ) AS col0, - 81 AS col2
----
37
-81

skipif mysql # not compatible
query II rowsort label-3246
SELECT DISTINCT + CAST ( 37 AS INTEGER ) AS col0, - 81 AS col2
----
37
-81

query I rowsort
SELECT ALL + 91 AS col2
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-3248
SELECT - 45 DIV 66 * - - 34 * - 8 * 62 * + 20
----
0

skipif mysql # not compatible
query I rowsort label-3248
SELECT - 45 / 66 * - - 34 * - 8 * 62 * + 20
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3249
SELECT + + 99 * + MIN( DISTINCT - - ( + 63 ) ) * - 83 * + - 57
----
29507247

skipif mysql # not compatible
query I rowsort label-3249
SELECT + + 99 * + MIN ( DISTINCT - - ( + 63 ) ) * - 83 * + - 57
----
29507247

onlyif mysql # aggregate syntax: 
query II rowsort label-3250
SELECT + + COUNT( * ) + 72, 46 * - 38 + COALESCE ( + + COUNT( * ), + + 78 * + 19, + 87 + 28 ) + 51 AS col2
----
73
-1696

skipif mysql # not compatible
query II rowsort label-3250
SELECT + + COUNT ( * ) + 72, 46 * - 38 + COALESCE ( + + COUNT ( * ), + + 78 * + 19, + 87 + 28 ) + 51 AS col2
----
73
-1696

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3251
SELECT ALL - - 93 * - + 71 * + 82 + - - CAST( 99 AS SIGNED ) * - 54 * - - COUNT( * )
----
-546792

skipif mysql # not compatible
query I rowsort label-3251
SELECT ALL - - 93 * - + 71 * + 82 + - - CAST ( 99 AS INTEGER ) * - 54 * - - COUNT ( * )
----
-546792

query I rowsort
SELECT ALL - 26 * - + 52 + + 54 AS col0
----
1406

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3253
SELECT + 31 - - CAST( NULL AS SIGNED ) * - 33 / 91 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3253
SELECT + 31 - - CAST ( NULL AS INTEGER ) * - 33 / 91 AS col1
----
NULL

query I rowsort
SELECT - - 19 AS col0
----
19

query I rowsort
SELECT + - 23 + - 5
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-3256
SELECT - + COUNT( 5 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3256
SELECT - + COUNT ( 5 ) AS col1
----
-1

query I rowsort
SELECT - - 31 * - ( + 66 )
----
-2046

onlyif mysql # aggregate syntax: 
query I rowsort label-3258
SELECT + - 62 + + COUNT( * )
----
-61

skipif mysql # not compatible
query I rowsort label-3258
SELECT + - 62 + + COUNT ( * )
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3259
SELECT ALL + COALESCE ( + 12, - + CASE - CAST( 57 AS SIGNED ) WHEN - 10 THEN NULL WHEN - COUNT( * ) * - 40 THEN NULL WHEN 36 THEN - + CASE 64 WHEN + + 65 THEN NULL WHEN + CASE + 66 WHEN - - COUNT( * ) THEN - 93 ELSE - NULLIF ( - ( 89 ), - - 46 ) + + 88 * 84 END THEN COALESCE ( - 38, - 28 ) + CASE - 59 WHEN 88 THEN + 13 ELSE NULL END END ELSE NULL END * 56 + + 44 )
----
12

skipif mysql # not compatible
query I rowsort label-3259
SELECT ALL + COALESCE ( + 12, - + CASE - CAST ( 57 AS INTEGER ) WHEN - 10 THEN NULL WHEN - COUNT ( * ) * - 40 THEN NULL WHEN 36 THEN - + CASE 64 WHEN + + 65 THEN NULL WHEN + CASE + 66 WHEN - - COUNT ( * ) THEN - 93 ELSE - NULLIF ( - ( 89 ), - - 46 ) + + 88 * 84 END THEN COALESCE ( - 38, - 28 ) + CASE - 59 WHEN 88 THEN + 13 ELSE NULL END END ELSE NULL END * 56 + + 44 )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3260
SELECT ALL + 36 - + - 81 + + MAX( + 87 ) + NULLIF ( + - 32, COUNT( ALL 54 ) * - + COUNT( * ) + - COUNT( * ) ) AS col0
----
172

skipif mysql # not compatible
query I rowsort label-3260
SELECT ALL + 36 - + - 81 + + MAX ( + 87 ) + NULLIF ( + - 32, COUNT ( ALL 54 ) * - + COUNT ( * ) + - COUNT ( * ) ) AS col0
----
172

query I rowsort
SELECT + 15 * - - 36 AS col2
----
540

onlyif mysql # DIV for integer division: 
query I rowsort label-3262
SELECT DISTINCT 21 DIV - 41 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3262
SELECT DISTINCT 21 / - 41 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3263
SELECT DISTINCT + COUNT( * ) * + + 88 col1
----
88

skipif mysql # not compatible
query I rowsort label-3263
SELECT DISTINCT + COUNT ( * ) * + + 88 col1
----
88

query I rowsort
SELECT 76 col0
----
76

query I rowsort
SELECT - 68 + 7 AS col1
----
-61

query I rowsort
SELECT + 56 * 6
----
336

onlyif mysql # aggregate syntax: 
query I rowsort label-3267
SELECT - COUNT( * ) + 77 col0
----
76

skipif mysql # not compatible
query I rowsort label-3267
SELECT - COUNT ( * ) + 77 col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3268
SELECT DISTINCT + MIN( + 6 ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-3268
SELECT DISTINCT + MIN ( + 6 ) AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3269
SELECT DISTINCT + SUM( 72 ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-3269
SELECT DISTINCT + SUM ( 72 ) AS col1
----
72

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3270
SELECT ALL + CAST( NULL AS DECIMAL ), - 66 + - + 58 + CAST( NULL AS DECIMAL ) * + - 89 AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3270
SELECT ALL + CAST ( NULL AS REAL ), - 66 + - + 58 + CAST ( NULL AS REAL ) * + - 89 AS col2
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3271
SELECT ALL + CASE + + COALESCE ( + - ( - 98 ), - - 20 * + + COUNT( * ) / AVG ( + 16 ) ) WHEN + CASE - SUM( + + 19 ) WHEN + 83 - + + 73 + - 49 - - - COUNT( * ) / 10 THEN - - 45 END THEN - 37 WHEN - - 68 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3271
SELECT ALL + CASE + + COALESCE ( + - ( - 98 ), - - 20 * + + COUNT ( * ) / AVG ( + 16 ) ) WHEN + CASE - SUM ( + + 19 ) WHEN + 83 - + + 73 + - 49 - - - COUNT ( * ) / 10 THEN - - 45 END THEN - 37 WHEN - - 68 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3272
SELECT + 90 * CAST( + - NULLIF ( + - 54, 32 * + 42 + - 19 + + CASE ( - 16 ) WHEN - + 74 * - 20 THEN NULL WHEN + 73 THEN NULL ELSE - 16 * 90 END ) AS SIGNED ) AS col1, 66 AS col1
----
4860
66

skipif mysql # not compatible
query II rowsort label-3272
SELECT + 90 * CAST ( + - NULLIF ( + - 54, 32 * + 42 + - 19 + + CASE ( - 16 ) WHEN - + 74 * - 20 THEN NULL WHEN + 73 THEN NULL ELSE - 16 * 90 END ) AS INTEGER ) AS col1, 66 AS col1
----
4860
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3273
SELECT - COUNT( * ) - + + 20
----
-21

skipif mysql # not compatible
query I rowsort label-3273
SELECT - COUNT ( * ) - + + 20
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3274
SELECT COALESCE ( - CAST( - 99 AS SIGNED ), - NULLIF ( - CAST( - 75 AS SIGNED ), - 12 ) ) DIV - 58 - - COALESCE ( 95, + 9 ) - MAX( - + 67 ) + + - 39 * - + 93 * COALESCE ( + ( + 53 ), + + 73 ) - - 10 - - - 87 * COUNT( * ) * - NULLIF ( - 49, - 32 - - 56 - 71 * - 87 ) + - + ( + ( 69 ) ) AS col2
----
188070

skipif mysql # not compatible
query I rowsort label-3274
SELECT COALESCE ( - CAST ( - 99 AS INTEGER ), - NULLIF ( - CAST ( - 75 AS INTEGER ), - 12 ) ) / - 58 - - COALESCE ( 95, + 9 ) - MAX ( - + 67 ) + + - 39 * - + 93 * COALESCE ( + ( + 53 ), + + 73 ) - - 10 - - - 87 * COUNT ( * ) * - NULLIF ( - 49, - 32 - - 56 - 71 * - 87 ) + - + ( + ( 69 ) ) AS col2
----
188070

query I rowsort
SELECT ALL + 11 * - 84 AS col0
----
-924

query I rowsort
SELECT - + 54 * - ( - 84 )
----
-4536

onlyif mysql # DIV for integer division: 
query I rowsort label-3277
SELECT ALL + 50 DIV + 86 + + + 49 + + 44
----
93

skipif mysql # not compatible
query I rowsort label-3277
SELECT ALL + 50 / + 86 + + + 49 + + 44
----
93

query I rowsort
SELECT DISTINCT - + 88 + - 83
----
-171

query I rowsort
SELECT ALL + + 26 * - 20
----
-520

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

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

query I rowsort
SELECT ALL - 52 AS col0
----
-52

query I rowsort
SELECT + - 42
----
-42

query I rowsort
SELECT - 21 * + 93 + - 99
----
-2052

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3284
SELECT ALL - 88 / + 32 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3284
SELECT ALL - 88 / + 32 * - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT 34 * + + 34 col0
----
1156

onlyif mysql # DIV for integer division: 
query I rowsort label-3286
SELECT 65 DIV + + 89 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3286
SELECT 65 / + + 89 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3287
SELECT - COUNT( ALL + 43 )
----
-1

skipif mysql # not compatible
query I rowsort label-3287
SELECT - COUNT ( ALL + 43 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3288
SELECT - 97, 69 * + - 13 * - 99 + + CAST( NULL AS SIGNED ) + 62 + + 11 * COUNT( * ) AS col0
----
-97
NULL

skipif mysql # not compatible
query II rowsort label-3288
SELECT - 97, 69 * + - 13 * - 99 + + CAST ( NULL AS INTEGER ) + 62 + + 11 * COUNT ( * ) AS col0
----
-97
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3289
SELECT ALL - MAX( ( - 77 ) ) - + 46
----
31

skipif mysql # not compatible
query I rowsort label-3289
SELECT ALL - MAX ( ( - 77 ) ) - + 46
----
31

query I rowsort
SELECT ALL - 70 AS col2
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-3291
SELECT DISTINCT ( SUM( DISTINCT + + 66 ) )
----
66

skipif mysql # not compatible
query I rowsort label-3291
SELECT DISTINCT ( SUM ( DISTINCT + + 66 ) )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3292
SELECT ALL COUNT( * ) - + ( 29 ) + - 31 AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-3292
SELECT ALL COUNT ( * ) - + ( 29 ) + - 31 AS col2
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-3293
SELECT COUNT( * ) * - 48 AS col0, - 99 AS col2
----
-48
-99

skipif mysql # not compatible
query II rowsort label-3293
SELECT COUNT ( * ) * - 48 AS col0, - 99 AS col2
----
-48
-99

query I rowsort
SELECT ALL 11 AS col2
----
11

query II rowsort
SELECT - 12, + 78 + - ( - 79 ) AS col2
----
-12
157

onlyif mysql # aggregate syntax: 
query I rowsort label-3296
SELECT COUNT( * ) * - - 98
----
98

skipif mysql # not compatible
query I rowsort label-3296
SELECT COUNT ( * ) * - - 98
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3297
SELECT ( + + 62 ) * + MIN( - 32 ) col1
----
-1984

skipif mysql # not compatible
query I rowsort label-3297
SELECT ( + + 62 ) * + MIN ( - 32 ) col1
----
-1984

onlyif mysql # aggregate syntax: 
query II rowsort label-3298
SELECT 20 - 2, NULLIF ( 46, + 15 ) + - COUNT( * ) AS col2
----
18
45

skipif mysql # not compatible
query II rowsort label-3298
SELECT 20 - 2, NULLIF ( 46, + 15 ) + - COUNT ( * ) AS col2
----
18
45

query II rowsort
SELECT ALL 74 AS col0, 32 * - 31 * - - ( - + 54 ) + - 79
----
74
53489

query I rowsort
SELECT ( 52 ) - + - 63 + + CASE + - 85 WHEN + 91 THEN + - 78 * + 27 / + 51 / - - 89 END * + 62 * + 50 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3301
SELECT CAST( NULL AS SIGNED ) * 57 * + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3301
SELECT CAST ( NULL AS INTEGER ) * 57 * + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL - 0 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3303
SELECT 71 * + - NULLIF ( - 82, + 20 - + NULLIF ( - 10, + COUNT( * ) ) * + AVG ( ALL + ( - 40 ) ) * + + 14 + + 15 + - - 40 * + 31 / + + ( - + 36 ) ) AS col1, 15 AS col0
----
5822
15

skipif mysql # not compatible
query II rowsort label-3303
SELECT 71 * + - NULLIF ( - 82, + 20 - + NULLIF ( - 10, + COUNT ( * ) ) * + AVG ( ALL + ( - 40 ) ) * + + 14 + + 15 + - - 40 * + 31 / + + ( - + 36 ) ) AS col1, 15 AS col0
----
5822
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3304
SELECT + 6 * + + 15 + - CAST( NULL AS SIGNED ) - - + 51 * 73
----
NULL

skipif mysql # not compatible
query I rowsort label-3304
SELECT + 6 * + + 15 + - CAST ( NULL AS INTEGER ) - - + 51 * 73
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3305
SELECT - CAST( NULL AS DECIMAL ) * + 42 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3305
SELECT - CAST ( NULL AS REAL ) * + 42 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3306
SELECT 39 * - - COUNT( DISTINCT 10 ) * 91 + + ( + - 49 ) + + + COUNT( + CAST( NULL AS SIGNED ) ) + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3306
SELECT 39 * - - COUNT ( DISTINCT 10 ) * 91 + + ( + - 49 ) + + + COUNT ( + CAST ( NULL AS INTEGER ) ) + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3307
SELECT ALL 24 * + 55 + - 62 * - 96 DIV + COUNT( * )
----
7272

skipif mysql # not compatible
query I rowsort label-3307
SELECT ALL 24 * + 55 + - 62 * - 96 / + COUNT ( * )
----
7272

query I rowsort
SELECT DISTINCT - 75 * 89
----
-6675

onlyif mysql # aggregate syntax: 
query I rowsort label-3309
SELECT ALL + 17 + + COUNT( * ) * - 36
----
-19

skipif mysql # not compatible
query I rowsort label-3309
SELECT ALL + 17 + + COUNT ( * ) * - 36
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-3310
SELECT ALL - - COUNT( * ) col1
----
1

skipif mysql # not compatible
query I rowsort label-3310
SELECT ALL - - COUNT ( * ) col1
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3311
SELECT ALL - 20, + CAST( NULL AS DECIMAL ) AS col1
----
-20
NULL

skipif mysql # not compatible
query II rowsort label-3311
SELECT ALL - 20, + CAST ( NULL AS REAL ) AS col1
----
-20
NULL

query I rowsort
SELECT + - 79
----
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-3313
SELECT + ( 25 ), SUM( - 37 ) col0
----
25
-37

skipif mysql # not compatible
query II rowsort label-3313
SELECT + ( 25 ), SUM ( - 37 ) col0
----
25
-37

query I rowsort
SELECT ALL - + 73 col1
----
-73

query II rowsort
SELECT + - 56, ( 27 ) AS col1
----
-56
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3316
SELECT - CAST( COUNT( * ) AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3316
SELECT - CAST ( COUNT ( * ) AS INTEGER ) AS col1
----
-1

query I rowsort
SELECT DISTINCT 35 - + + NULLIF ( + - 25, + 69 ) * + 2 - + ( + + 56 ) + + 62
----
91

query I rowsort
SELECT 79 + - - 63
----
142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3319
SELECT DISTINCT + + 73 * + - 14 col0, + COUNT( * ) - - + ( - NULLIF ( NULLIF ( + 73, - + 42 * + + 65 + - + 42 - + 42 * - ( 20 ) * - MAX( ALL + - COALESCE ( 78, - ( + 79 ) ) ) + - 77 * + 52 - - 21 / + CASE 81 WHEN - 58 THEN + 33 + - 78 ELSE NULL END + MIN( - + CAST( NULL AS SIGNED ) ) ), + + COUNT( * ) ) ) AS col0
----
-1022
-72

skipif mysql # not compatible
query II rowsort label-3319
SELECT DISTINCT + + 73 * + - 14 col0, + COUNT ( * ) - - + ( - NULLIF ( NULLIF ( + 73, - + 42 * + + 65 + - + 42 - + 42 * - ( 20 ) * - MAX ( ALL + - COALESCE ( 78, - ( + 79 ) ) ) + - 77 * + 52 - - 21 / + CASE 81 WHEN - 58 THEN + 33 + - 78 ELSE NULL END + MIN ( - + CAST ( NULL AS INTEGER ) ) ), + + COUNT ( * ) ) ) AS col0
----
-1022
-72

query I rowsort
SELECT DISTINCT + + ( 72 ) * ( + 80 ) + - - 83 AS col0
----
5843

onlyif mysql # aggregate syntax: 
query II rowsort label-3321
SELECT ALL - 69 AS col1, MAX( + 45 )
----
-69
45

skipif mysql # not compatible
query II rowsort label-3321
SELECT ALL - 69 AS col1, MAX ( + 45 )
----
-69
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3322
SELECT + COUNT( * ) * - CASE + + MAX( - 70 ) WHEN + - 8 THEN 16 * COUNT( * ) / 55 WHEN - CAST( + 22 AS DECIMAL ) + - CAST( NULL AS SIGNED ) + + COUNT( * ) + ( + 31 ) * 37 - - 99 THEN NULL WHEN - 8 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3322
SELECT + COUNT ( * ) * - CASE + + MAX ( - 70 ) WHEN + - 8 THEN 16 * COUNT ( * ) / 55 WHEN - CAST ( + 22 AS REAL ) + - CAST ( NULL AS INTEGER ) + + COUNT ( * ) + ( + 31 ) * 37 - - 99 THEN NULL WHEN - 8 THEN NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3323
SELECT ALL + - NULLIF ( + CAST( NULL AS SIGNED ), - 50 / + 10 ) * 9
----
NULL

skipif mysql # not compatible
query I rowsort label-3323
SELECT ALL + - NULLIF ( + CAST ( NULL AS INTEGER ), - 50 / + 10 ) * 9
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3324
SELECT DISTINCT MAX( ALL + 11 )
----
11

skipif mysql # not compatible
query I rowsort label-3324
SELECT DISTINCT MAX ( ALL + 11 )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3325
SELECT 5 + + - MAX( ALL + 99 ) + - 55 * + - 71
----
3811

skipif mysql # not compatible
query I rowsort label-3325
SELECT 5 + + - MAX ( ALL + 99 ) + - 55 * + - 71
----
3811

onlyif mysql # aggregate syntax: 
query I rowsort label-3326
SELECT ALL SUM( DISTINCT + 83 ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-3326
SELECT ALL SUM ( DISTINCT + 83 ) AS col1
----
83

query II rowsort
SELECT 14 * - 85 AS col1, - 58
----
-1190
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3328
SELECT ALL MIN( 80 )
----
80

skipif mysql # not compatible
query I rowsort label-3328
SELECT ALL MIN ( 80 )
----
80

query I rowsort
SELECT ALL 20 * + 19 AS col1
----
380

onlyif mysql # aggregate syntax: 
query I rowsort label-3330
SELECT ALL + ( - SUM( DISTINCT 5 ) ) + - NULLIF ( 66, 46 * - 29 + ( + NULLIF ( + + 50, + - MAX( + 33 ) + - 92 ) ) ) * - - MIN( + + 52 ) AS col0
----
-3437

skipif mysql # not compatible
query I rowsort label-3330
SELECT ALL + ( - SUM ( DISTINCT 5 ) ) + - NULLIF ( 66, 46 * - 29 + ( + NULLIF ( + + 50, + - MAX ( + 33 ) + - 92 ) ) ) * - - MIN ( + + 52 ) AS col0
----
-3437

query I rowsort
SELECT DISTINCT 14 + - 10 col2
----
4

onlyif mysql # aggregate syntax: 
query III rowsort label-3332
SELECT DISTINCT + 28 + + 3, + 67 * - COUNT( * ) + - 21 AS col0, + COUNT( - 51 ) * MIN( 55 ) AS col0
----
31
-88
55

skipif mysql # not compatible
query III rowsort label-3332
SELECT DISTINCT + 28 + + 3, + 67 * - COUNT ( * ) + - 21 AS col0, + COUNT ( - 51 ) * MIN ( 55 ) AS col0
----
31
-88
55

query I rowsort
SELECT ALL 32 col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3334
SELECT COUNT( * ) * - 35
----
-35

skipif mysql # not compatible
query I rowsort label-3334
SELECT COUNT ( * ) * - 35
----
-35

query I rowsort
SELECT ( NULLIF ( 63, + 53 ) ) + NULLIF ( - CASE 54 WHEN - - 39 THEN - 52 ELSE 39 + 59 END, + 93 )
----
-35

query I rowsort
SELECT ALL 61 * - 65 AS col2
----
-3965

onlyif mysql # aggregate syntax: 
query I rowsort label-3337
SELECT ALL 13 + + 12 + - SUM( ALL 20 ) * 89
----
-1755

skipif mysql # not compatible
query I rowsort label-3337
SELECT ALL 13 + + 12 + - SUM ( ALL 20 ) * 89
----
-1755

onlyif mysql # aggregate syntax: 
query II rowsort label-3338
SELECT DISTINCT COALESCE ( + 48, COUNT( * ) ) AS col0, 48 AS col0
----
48
48

skipif mysql # not compatible
query II rowsort label-3338
SELECT DISTINCT COALESCE ( + 48, COUNT ( * ) ) AS col0, 48 AS col0
----
48
48

query I rowsort
SELECT DISTINCT + - 12
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-3340
SELECT + 52 DIV + 57 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3340
SELECT + 52 / + 57 AS col2
----
0

query I rowsort
SELECT DISTINCT + - 96
----
-96

query I rowsort
SELECT ALL - - 25 * + - 38
----
-950

query I rowsort
SELECT + + 7 - + ( - 22 ) - 40 * ( - + 68 )
----
2749

query I rowsort
SELECT + - 92 AS col1
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3345
SELECT + CAST( NULL AS SIGNED ) * - 58 + 73 - + + COUNT( * ) + COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3345
SELECT + CAST ( NULL AS INTEGER ) * - 58 + 73 - + + COUNT ( * ) + COUNT ( * ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3346
SELECT ALL CASE + COUNT( * ) WHEN COUNT( * ) + + 28 + + - 53 + + CASE 76 WHEN - - 68 * - 75 * - + COUNT( * ) THEN 43 WHEN 31 * + 66 + - 48 THEN - + 97 * - COUNT( * ) ELSE 58 * - SUM( ALL ( + 16 ) ) END + - COALESCE ( + 26, 41 ) * 61 - - + 40 * + + 10 * + 77 THEN + SUM( ALL + + 65 ) * - 44 WHEN 62 THEN - 59 WHEN CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END * 30 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3346
SELECT ALL CASE + COUNT ( * ) WHEN COUNT ( * ) + + 28 + + - 53 + + CASE 76 WHEN - - 68 * - 75 * - + COUNT ( * ) THEN 43 WHEN 31 * + 66 + - 48 THEN - + 97 * - COUNT ( * ) ELSE 58 * - SUM ( ALL ( + 16 ) ) END + - COALESCE ( + 26, 41 ) * 61 - - + 40 * + + 10 * + 77 THEN + SUM ( ALL + + 65 ) * - 44 WHEN 62 THEN - 59 WHEN CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END * 30 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3347
SELECT + 27 * + 78 * + COUNT( * )
----
2106

skipif mysql # not compatible
query I rowsort label-3347
SELECT + 27 * + 78 * + COUNT ( * )
----
2106

onlyif mysql # DIV for integer division: 
query I rowsort label-3348
SELECT + 37 * - 3 + - 95 DIV - 75 + - - 77
----
-33

skipif mysql # not compatible
query I rowsort label-3348
SELECT + 37 * - 3 + - 95 / - 75 + - - 77
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3349
SELECT ALL COALESCE ( 57, - + COUNT( * ) DIV + 86 * - COUNT( * ) ) * - 24 * + 29 * - - MIN( + 58 ) + 81
----
-2300895

skipif mysql # not compatible
query I rowsort label-3349
SELECT ALL COALESCE ( 57, - + COUNT ( * ) / + 86 * - COUNT ( * ) ) * - 24 * + 29 * - - MIN ( + 58 ) + 81
----
-2300895

query I rowsort
SELECT DISTINCT 28 * - 56 * - 44 * - 12 * + + 13
----
-10762752

onlyif mysql # aggregate syntax: 
query I rowsort label-3351
SELECT ALL + CASE - COUNT( * ) WHEN + 90 * 26 + 26 THEN - 10 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3351
SELECT ALL + CASE - COUNT ( * ) WHEN + 90 * 26 + 26 THEN - 10 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3352
SELECT DISTINCT + + MAX( 97 ) AS col1, 48 * - 6 + - + 41 AS col0
----
97
-329

skipif mysql # not compatible
query II rowsort label-3352
SELECT DISTINCT + + MAX ( 97 ) AS col1, 48 * - 6 + - + 41 AS col0
----
97
-329

onlyif mysql # DIV for integer division: 
query I rowsort label-3353
SELECT + - 31 + + 77 + + 23 + + 12 + + + 10 * - 97 + + 34 DIV 73 AS col2
----
-889

skipif mysql # not compatible
query I rowsort label-3353
SELECT + - 31 + + 77 + + 23 + + 12 + + + 10 * - 97 + + 34 / 73 AS col2
----
-889

onlyif mysql # aggregate syntax: 
query I rowsort label-3354
SELECT - + 25 * - + 51 / + CASE + 69 WHEN + SUM( + 3 ) THEN NULLIF ( + 95, - COUNT( * ) / - - 13 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3354
SELECT - + 25 * - + 51 / + CASE + 69 WHEN + SUM ( + 3 ) THEN NULLIF ( + 95, - COUNT ( * ) / - - 13 ) END
----
NULL

query I rowsort
SELECT + - 73
----
-73

query I rowsort
SELECT ALL + - 87
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-3357
SELECT DISTINCT + COUNT( ALL - 45 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3357
SELECT DISTINCT + COUNT ( ALL - 45 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3358
SELECT MIN( - 53 ) AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-3358
SELECT MIN ( - 53 ) AS col1
----
-53

query I rowsort
SELECT - 21 * - - 48
----
-1008

query I rowsort
SELECT ALL - 14 + - 18 + + 34
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3361
SELECT ALL MIN( DISTINCT - 86 )
----
-86

skipif mysql # not compatible
query I rowsort label-3361
SELECT ALL MIN ( DISTINCT - 86 )
----
-86

query I rowsort
SELECT DISTINCT 56 + + 7
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3363
SELECT ALL - 87 * - + COALESCE ( 5, 44 * + + COUNT( * ) + + + ( - 37 ), + 7 DIV AVG ( ALL + ( + 2 ) ) * - 42 )
----
435

skipif mysql # not compatible
query I rowsort label-3363
SELECT ALL - 87 * - + COALESCE ( 5, 44 * + + COUNT ( * ) + + + ( - 37 ), + 7 / AVG ( ALL + ( + 2 ) ) * - 42 )
----
435

onlyif mysql # aggregate syntax: 
query I rowsort label-3364
SELECT - 85 * + - CASE - 97 WHEN - 67 * 52 + + + COUNT( * ) THEN NULL WHEN - - 17 THEN - + COUNT( * ) * + 46 * + - 28 ELSE - - 81 + + 59 - - 27 END
----
14195

skipif mysql # not compatible
query I rowsort label-3364
SELECT - 85 * + - CASE - 97 WHEN - 67 * 52 + + + COUNT ( * ) THEN NULL WHEN - - 17 THEN - + COUNT ( * ) * + 46 * + - 28 ELSE - - 81 + + 59 - - 27 END
----
14195

onlyif mysql # aggregate syntax: 
query I rowsort label-3365
SELECT DISTINCT SUM( DISTINCT + 48 )
----
48

skipif mysql # not compatible
query I rowsort label-3365
SELECT DISTINCT SUM ( DISTINCT + 48 )
----
48

query II rowsort
SELECT 30 AS col2, + 93 AS col2
----
30
93

query I rowsort
SELECT - 73 + - - 36
----
-37

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3368
SELECT DISTINCT - 69 + - 95 DIV + + 13 + - 95 + CAST( 60 AS SIGNED ) AS col1
----
-111

skipif mysql # not compatible
query I rowsort label-3368
SELECT DISTINCT - 69 + - 95 / + + 13 + - 95 + CAST ( 60 AS INTEGER ) AS col1
----
-111

query I rowsort
SELECT 22 AS col2
----
22

query I rowsort
SELECT ALL - 52 + 22 AS col1
----
-30

query I rowsort
SELECT - 19 - + 23
----
-42

query I rowsort
SELECT ALL COALESCE ( + 19, + 61 )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3373
SELECT - SUM( + - 60 ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-3373
SELECT - SUM ( + - 60 ) AS col2
----
60

query I rowsort
SELECT DISTINCT ( - + ( - 20 ) ) AS col2
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-3375
SELECT ALL + 52 - - 6 DIV - 68 AS col2
----
52

skipif mysql # not compatible
query I rowsort label-3375
SELECT ALL + 52 - - 6 / - 68 AS col2
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3376
SELECT DISTINCT 30, COUNT( * ) * + - ( - 51 ) * NULLIF ( + + CAST( + + 72 AS SIGNED ), - AVG ( 11 ) + + NULLIF ( + 46, - - 92 - - 57 ) ) + + ( - - 3 ) AS col2
----
30
3675

skipif mysql # not compatible
query II rowsort label-3376
SELECT DISTINCT 30, COUNT ( * ) * + - ( - 51 ) * NULLIF ( + + CAST ( + + 72 AS INTEGER ), - AVG ( 11 ) + + NULLIF ( + 46, - - 92 - - 57 ) ) + + ( - - 3 ) AS col2
----
30
3675

onlyif mysql # DIV for integer division: 
query I rowsort label-3377
SELECT - 89 + - + 35 + - 40 DIV + 77 AS col1
----
-124

skipif mysql # not compatible
query I rowsort label-3377
SELECT - 89 + - + 35 + - 40 / + 77 AS col1
----
-124

onlyif mysql # aggregate syntax: 
query I rowsort label-3378
SELECT + MAX( - 80 ) * - 78 * 55 AS col2
----
343200

skipif mysql # not compatible
query I rowsort label-3378
SELECT + MAX ( - 80 ) * - 78 * 55 AS col2
----
343200

query I rowsort
SELECT ALL - - 6 * + - 22
----
-132

onlyif mysql # aggregate syntax: 
query II rowsort label-3380
SELECT - - COUNT( * ) AS col2, 47 - - 62 + + 27 * + - MIN( + - 35 ) AS col2
----
1
1054

skipif mysql # not compatible
query II rowsort label-3380
SELECT - - COUNT ( * ) AS col2, 47 - - 62 + + 27 * + - MIN ( + - 35 ) AS col2
----
1
1054

onlyif mysql # aggregate syntax: 
query I rowsort label-3381
SELECT + COUNT( * ) * 71 + + - COUNT( * ) - - 47 AS col1
----
117

skipif mysql # not compatible
query I rowsort label-3381
SELECT + COUNT ( * ) * 71 + + - COUNT ( * ) - - 47 AS col1
----
117

query I rowsort
SELECT + + 94
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3383
SELECT DISTINCT + MIN( + 13 ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-3383
SELECT DISTINCT + MIN ( + 13 ) AS col2
----
13

query I rowsort
SELECT - + 70 * 96 + - 35 + - + 23 col2
----
-6778

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3385
SELECT + + CAST( + 56 AS SIGNED ) * + 22 + 92 + + 22
----
1346

skipif mysql # not compatible
query I rowsort label-3385
SELECT + + CAST ( + 56 AS INTEGER ) * + 22 + 92 + + 22
----
1346

query I rowsort
SELECT ALL + - 69
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-3387
SELECT + - COUNT( ALL + 48 ) * + 74 + - + 95
----
-169

skipif mysql # not compatible
query I rowsort label-3387
SELECT + - COUNT ( ALL + 48 ) * + 74 + - + 95
----
-169

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3388
SELECT DISTINCT - - 64 * - CAST( 24 AS SIGNED ) * 33
----
-50688

skipif mysql # not compatible
query I rowsort label-3388
SELECT DISTINCT - - 64 * - CAST ( 24 AS INTEGER ) * 33
----
-50688

query I rowsort
SELECT - 47 * + 79 * + 44 + - ( + ( - - 15 ) ) * - - ( + 26 ) * 41 AS col0
----
-179362

query I rowsort
SELECT DISTINCT + + 53
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-3391
SELECT ALL 58 DIV 53
----
1

skipif mysql # not compatible
query I rowsort label-3391
SELECT ALL 58 / 53
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3392
SELECT - 59 * + + 27 / - CASE - - 97 WHEN - 52 THEN NULL WHEN 52 * - - 83 * COUNT( * ) + 2 THEN + 60 END + - 51 + + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-3392
SELECT - 59 * + + 27 / - CASE - - 97 WHEN - 52 THEN NULL WHEN 52 * - - 83 * COUNT ( * ) + 2 THEN + 60 END + - 51 + + 89
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3393
SELECT COUNT( + 89 )
----
1

skipif mysql # not compatible
query I rowsort label-3393
SELECT COUNT ( + 89 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3394
SELECT - + 88 DIV 31 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-3394
SELECT - + 88 / 31 AS col2
----
-2

query I rowsort
SELECT DISTINCT + 17 * 68 * 6 + CASE ( + 38 ) WHEN + 1 THEN - ( - - 89 ) ELSE NULL END col0
----
NULL

query II rowsort
SELECT ALL - 33 * - 90 + 69 * - ( + ( + 57 ) ) * + + 57 + 16 - - - 55 AS col0, 0
----
-221250
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3397
SELECT ALL + 84 * - 65 + MIN( 13 ) AS col1, - 47
----
-5447
-47

skipif mysql # not compatible
query II rowsort label-3397
SELECT ALL + 84 * - 65 + MIN ( 13 ) AS col1, - 47
----
-5447
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3398
SELECT DISTINCT + 0 * + 78 * 33 + - COALESCE ( 50, - ( - 72 ), + 92 + + - COUNT( DISTINCT 89 ) * - COUNT( * ) ) + CAST( 0 AS SIGNED ) * 28 * - CAST( + 29 AS SIGNED ) * + 56 + - 42 col1
----
-92

skipif mysql # not compatible
query I rowsort label-3398
SELECT DISTINCT + 0 * + 78 * 33 + - COALESCE ( 50, - ( - 72 ), + 92 + + - COUNT ( DISTINCT 89 ) * - COUNT ( * ) ) + CAST ( 0 AS INTEGER ) * 28 * - CAST ( + 29 AS INTEGER ) * + 56 + - 42 col1
----
-92

query I rowsort
SELECT + 73 + - 99 + - 2
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3400
SELECT - CAST( + 75 AS SIGNED )
----
-75

skipif mysql # not compatible
query I rowsort label-3400
SELECT - CAST ( + 75 AS INTEGER )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3401
SELECT SUM( + - 89 )
----
-89

skipif mysql # not compatible
query I rowsort label-3401
SELECT SUM ( + - 89 )
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-3402
SELECT ALL SUM( ALL - 40 ) * COUNT( * ) * - COUNT( * ) * + ( + 40 ) * + - COUNT( * ) + + 94 AS col1
----
-1506

skipif mysql # not compatible
query I rowsort label-3402
SELECT ALL SUM ( ALL - 40 ) * COUNT ( * ) * - COUNT ( * ) * + ( + 40 ) * + - COUNT ( * ) + + 94 AS col1
----
-1506

onlyif mysql # aggregate syntax: 
query I rowsort label-3403
SELECT 84 + - - 3 + + 72 + + MIN( ALL + 20 ) AS col0
----
179

skipif mysql # not compatible
query I rowsort label-3403
SELECT 84 + - - 3 + + 72 + + MIN ( ALL + 20 ) AS col0
----
179

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3404
SELECT CAST( - - 54 AS DECIMAL ) + + 33 - + 23 - - + CASE + 50 WHEN + - CAST( NULL AS SIGNED ) + - 95 THEN - - 26 WHEN 45 + - 99 THEN NULL END * + - 4 / - - 97 / - 37 + - + NULLIF ( ( + - 52 ), - MAX( + 69 ) ), + 18 AS col1
----
NULL
18

skipif mysql # not compatible
query II rowsort label-3404
SELECT CAST ( - - 54 AS REAL ) + + 33 - + 23 - - + CASE + 50 WHEN + - CAST ( NULL AS INTEGER ) + - 95 THEN - - 26 WHEN 45 + - 99 THEN NULL END * + - 4 / - - 97 / - 37 + - + NULLIF ( ( + - 52 ), - MAX ( + 69 ) ), + 18 AS col1
----
NULL
18

query I rowsort
SELECT ALL 36 col2
----
36

query I rowsort
SELECT DISTINCT 88 AS col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3407
SELECT 74 + - COUNT( * ) + NULLIF ( + 26, - 67 ) * + - 23 AS col2
----
-525

skipif mysql # not compatible
query I rowsort label-3407
SELECT 74 + - COUNT ( * ) + NULLIF ( + 26, - 67 ) * + - 23 AS col2
----
-525

query I rowsort
SELECT ALL + 48 * - - ( 78 ) * - 54
----
-202176

onlyif mysql # aggregate syntax: 
query II rowsort label-3409
SELECT DISTINCT - NULLIF ( 74, COUNT( + 11 ) * MIN( 92 ) + - 16 * + COALESCE ( MAX( + - 69 ), - 79, COUNT( * ) ) ) AS col0, 94
----
-74
94

skipif mysql # not compatible
query II rowsort label-3409
SELECT DISTINCT - NULLIF ( 74, COUNT ( + 11 ) * MIN ( 92 ) + - 16 * + COALESCE ( MAX ( + - 69 ), - 79, COUNT ( * ) ) ) AS col0, 94
----
-74
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3410
SELECT + SUM( DISTINCT 10 ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-3410
SELECT + SUM ( DISTINCT 10 ) AS col0
----
10

query I rowsort
SELECT + 70 + - 61
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-3412
SELECT + 9 DIV + + NULLIF ( + - 65, + 14 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3412
SELECT + 9 / + + NULLIF ( + - 65, + 14 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3413
SELECT ALL + COUNT( 53 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3413
SELECT ALL + COUNT ( 53 ) AS col0
----
1

query I rowsort
SELECT - 87 AS col2
----
-87

query I rowsort
SELECT DISTINCT - 13 AS col0
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-3416
SELECT 31 DIV + 67 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3416
SELECT 31 / + 67 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3417
SELECT - 59 * + COUNT( * ) * 55 col1
----
-3245

skipif mysql # not compatible
query I rowsort label-3417
SELECT - 59 * + COUNT ( * ) * 55 col1
----
-3245

query I rowsort
SELECT + - 65 AS col0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-3419
SELECT ALL - + COALESCE ( 96, + 97 - + + MIN( + 11 ) - + 39 )
----
-96

skipif mysql # not compatible
query I rowsort label-3419
SELECT ALL - + COALESCE ( 96, + 97 - + + MIN ( + 11 ) - + 39 )
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3420
SELECT - + CASE 0 WHEN - 79 THEN MIN( ALL 61 ) + + CASE 90 WHEN + 51 * + 89 * - 52 * - COUNT( * ) / - - 1 + 98 + + - 45 + 40 * - 31 + - 85 THEN NULL WHEN + COUNT( * ) * - + ( - - CAST( + - 36 AS SIGNED ) ) THEN + - COALESCE ( + 96, - ( - 29 ) / - 54, + - 99 ) END ELSE NULL END * ( + NULLIF ( - 49, + 1 - 63 * - CASE - 28 WHEN - CAST( NULL AS SIGNED ) THEN + COUNT( ALL 94 ) / 73 + 7 END / - CAST( NULL AS SIGNED ) - + CASE + COUNT( * ) WHEN + 31 / 97 THEN 42 + + 54 * 46 END ) ) * 24 + 84 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3420
SELECT - + CASE 0 WHEN - 79 THEN MIN ( ALL 61 ) + + CASE 90 WHEN + 51 * + 89 * - 52 * - COUNT ( * ) / - - 1 + 98 + + - 45 + 40 * - 31 + - 85 THEN NULL WHEN + COUNT ( * ) * - + ( - - CAST ( + - 36 AS INTEGER ) ) THEN + - COALESCE ( + 96, - ( - 29 ) / - 54, + - 99 ) END ELSE NULL END * ( + NULLIF ( - 49, + 1 - 63 * - CASE - 28 WHEN - CAST ( NULL AS INTEGER ) THEN + COUNT ( ALL 94 ) / 73 + 7 END / - CAST ( NULL AS INTEGER ) - + CASE + COUNT ( * ) WHEN + 31 / 97 THEN 42 + + 54 * 46 END ) ) * 24 + 84 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3421
SELECT + 25 * - + ( + - COUNT( * ) )
----
25

skipif mysql # not compatible
query I rowsort label-3421
SELECT + 25 * - + ( + - COUNT ( * ) )
----
25

query I rowsort
SELECT DISTINCT - 75 AS col0
----
-75

query I rowsort
SELECT DISTINCT - 59 + + + 65 AS col0
----
6

query I rowsort
SELECT ALL - - 92
----
92

query I rowsort
SELECT - ( - 6 ) * - 31 + + - 3
----
-189

query I rowsort
SELECT ALL - 69 AS col0
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3427
SELECT DISTINCT 39 + - ( COUNT( * ) ) * + 99 DIV + 57, 15 - 12 + COALESCE ( + + 68, + + 94 + + + 71 DIV + 26 ) * + COUNT( * ) + + - 18 AS col1
----
38
53

skipif mysql # not compatible
query II rowsort label-3427
SELECT DISTINCT 39 + - ( COUNT ( * ) ) * + 99 / + 57, 15 - 12 + COALESCE ( + + 68, + + 94 + + + 71 / + 26 ) * + COUNT ( * ) + + - 18 AS col1
----
38
53

query I rowsort
SELECT ALL 98 + - 17 AS col1
----
81

query I rowsort
SELECT ALL - 85 AS col2
----
-85

query I rowsort
SELECT 20 * + - 62
----
-1240

onlyif mysql # aggregate syntax: 
query I rowsort label-3431
SELECT ALL 38 - - 25 * + + 31 + - NULLIF ( + - 62, MIN( ALL 5 ) ) + - - 37 - + 46 + 39 * + 18 col1
----
1568

skipif mysql # not compatible
query I rowsort label-3431
SELECT ALL 38 - - 25 * + + 31 + - NULLIF ( + - 62, MIN ( ALL 5 ) ) + - - 37 - + 46 + 39 * + 18 col1
----
1568

query I rowsort
SELECT DISTINCT 55 * + NULLIF ( + 16, - + 83 * - - 45 * + - 24 ) AS col2
----
880

query I rowsort
SELECT DISTINCT ( ( - 25 ) ) - - + 70
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3434
SELECT DISTINCT 31 * - COUNT( * )
----
-31

skipif mysql # not compatible
query I rowsort label-3434
SELECT DISTINCT 31 * - COUNT ( * )
----
-31

query I rowsort
SELECT - 82 col0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-3436
SELECT ALL 2 - COUNT( + 21 )
----
1

skipif mysql # not compatible
query I rowsort label-3436
SELECT ALL 2 - COUNT ( + 21 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3437
SELECT COUNT( 4 ) * NULLIF ( - 62, + 36 * ( + 25 ) )
----
-62

skipif mysql # not compatible
query I rowsort label-3437
SELECT COUNT ( 4 ) * NULLIF ( - 62, + 36 * ( + 25 ) )
----
-62

query II rowsort
SELECT DISTINCT 96 * + 36 * - - 93 AS col2, 56 AS col2
----
321408
56

query II rowsort
SELECT 98 col1, + ( + + 81 )
----
98
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3440
SELECT MAX( + + 28 ) + + + 96 + - 60 - - 73 * 69 * + COUNT( - 45 ) * + 54
----
272062

skipif mysql # not compatible
query I rowsort label-3440
SELECT MAX ( + + 28 ) + + + 96 + - 60 - - 73 * 69 * + COUNT ( - 45 ) * + 54
----
272062

onlyif mysql # aggregate syntax: 
query I rowsort label-3441
SELECT ALL 48 - - 47 * - COUNT( * ) - + 36 * + 25
----
-899

skipif mysql # not compatible
query I rowsort label-3441
SELECT ALL 48 - - 47 * - COUNT ( * ) - + 36 * + 25
----
-899

query I rowsort
SELECT + 84 + + 11 AS col2
----
95

query I rowsort
SELECT DISTINCT - ( + + 12 )
----
-12

query I rowsort
SELECT DISTINCT 15 AS col0
----
15

query I rowsort
SELECT - 7 - - + 67
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3446
SELECT ALL + - 39 * - - CASE + 63 WHEN 90 - - 78 THEN NULL WHEN - + 60 + - 15 + + SUM( - 29 ) + - 72 THEN NULL ELSE - COUNT( + 67 ) + 52 END + + 65 col1
----
-1924

skipif mysql # not compatible
query I rowsort label-3446
SELECT ALL + - 39 * - - CASE + 63 WHEN 90 - - 78 THEN NULL WHEN - + 60 + - 15 + + SUM ( - 29 ) + - 72 THEN NULL ELSE - COUNT ( + 67 ) + 52 END + + 65 col1
----
-1924

onlyif mysql # aggregate syntax: 
query I rowsort label-3447
SELECT + COUNT( * ) * 90 * 85 col0
----
7650

skipif mysql # not compatible
query I rowsort label-3447
SELECT + COUNT ( * ) * 90 * 85 col0
----
7650

query I rowsort
SELECT ALL + 13 AS col0
----
13

query I rowsort
SELECT - 34 + - - 1 + - - 94 AS col1
----
61

query I rowsort
SELECT ALL + 82 * - 80 AS col2
----
-6560

onlyif mysql # aggregate syntax: 
query I rowsort label-3451
SELECT + SUM( - + 15 ) * + 24 AS col1
----
-360

skipif mysql # not compatible
query I rowsort label-3451
SELECT + SUM ( - + 15 ) * + 24 AS col1
----
-360

query I rowsort
SELECT 49 + - - 67
----
116

query I rowsort
SELECT ( 28 )
----
28

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3455
SELECT 69 DIV - + 90 + + - 75 + CAST( - 40 AS SIGNED ) * - ( + + CASE - MIN( DISTINCT 31 ) WHEN - + 68 THEN NULL ELSE - ( + 1 ) END ) * 25 + + 74 - - 31 AS col2
----
-970

skipif mysql # not compatible
query I rowsort label-3455
SELECT 69 / - + 90 + + - 75 + CAST ( - 40 AS INTEGER ) * - ( + + CASE - MIN ( DISTINCT 31 ) WHEN - + 68 THEN NULL ELSE - ( + 1 ) END ) * 25 + + 74 - - 31 AS col2
----
-970

query I rowsort
SELECT DISTINCT - + 58 AS col0
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3457
SELECT ALL - - 54 * 98 + CAST( 43 AS SIGNED ) AS col0
----
5335

skipif mysql # not compatible
query I rowsort label-3457
SELECT ALL - - 54 * 98 + CAST ( 43 AS INTEGER ) AS col0
----
5335

onlyif mysql # aggregate syntax: 
query I rowsort label-3458
SELECT DISTINCT - 13 * COUNT( * ) + 62 + - 59 AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-3458
SELECT DISTINCT - 13 * COUNT ( * ) + 62 + - 59 AS col1
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3459
SELECT ALL + 66 / - - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3459
SELECT ALL + 66 / - - CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3460
SELECT 48 DIV 25 * - - 93 + + 69 AS col1
----
162

skipif mysql # not compatible
query I rowsort label-3460
SELECT 48 / 25 * - - 93 + + 69 AS col1
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-3461
SELECT ALL - COUNT( * ) * 41 + - - 61 + 38 + - 67
----
-9

skipif mysql # not compatible
query I rowsort label-3461
SELECT ALL - COUNT ( * ) * 41 + - - 61 + 38 + - 67
----
-9

query I rowsort
SELECT ALL 57 * 58
----
3306

onlyif mysql # aggregate syntax: 
query I rowsort label-3463
SELECT ALL - ( + ( - COALESCE ( - - 29, CASE 21 WHEN + COUNT( * ) THEN + - 48 + - 58 END ) ) ) * - + ( - 86 ) AS col2
----
2494

skipif mysql # not compatible
query I rowsort label-3463
SELECT ALL - ( + ( - COALESCE ( - - 29, CASE 21 WHEN + COUNT ( * ) THEN + - 48 + - 58 END ) ) ) * - + ( - 86 ) AS col2
----
2494

query I rowsort
SELECT 20 + + 95 AS col0
----
115

query II rowsort
SELECT + 5 col2, - 45 + + 70 AS col2
----
5
25

onlyif mysql # aggregate syntax: 
query II rowsort label-3466
SELECT COUNT( * ) AS col0, 80
----
1
80

skipif mysql # not compatible
query II rowsort label-3466
SELECT COUNT ( * ) AS col0, 80
----
1
80

query I rowsort
SELECT - 93 * 81 + + - 15
----
-7548

onlyif mysql # aggregate syntax: 
query I rowsort label-3468
SELECT MIN( + + 28 ) * - 88 * 8 col2
----
-19712

skipif mysql # not compatible
query I rowsort label-3468
SELECT MIN ( + + 28 ) * - 88 * 8 col2
----
-19712

query II rowsort
SELECT ALL NULLIF ( 13, - 4 ) * + + ( - 96 ) - - 91 AS col1, 58 * 46
----
-1157
2668

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3470
SELECT + COUNT( * ) AS col0, - 5 DIV 88 + - - 96
----
1
96

skipif mysql # not compatible
query II rowsort label-3470
SELECT + COUNT ( * ) AS col0, - 5 / 88 + - - 96
----
1
96

query I rowsort
SELECT ALL + 92 * 19 AS col0
----
1748

query I rowsort
SELECT DISTINCT + 87 AS col1
----
87

query I rowsort
SELECT ALL + 83 - - 95 AS col1
----
178

query I rowsort
SELECT ALL + 29 AS col2
----
29

query I rowsort
SELECT - 96 + - 27 + - - 70 * 29 AS col0
----
1907

query I rowsort
SELECT ALL + ( 36 ) AS col2
----
36

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3477
SELECT ALL MAX( DISTINCT + CAST( NULL AS DECIMAL ) ) / + 5 + - 97 AS col2, 61
----
NULL
61

skipif mysql # not compatible
query II rowsort label-3477
SELECT ALL MAX ( DISTINCT + CAST ( NULL AS REAL ) ) / + 5 + - 97 AS col2, 61
----
NULL
61

query I rowsort
SELECT + ( + 61 ) * - 37
----
-2257

onlyif mysql # aggregate syntax: 
query I rowsort label-3479
SELECT DISTINCT CASE + 54 WHEN - COUNT( * ) THEN + NULLIF ( + + 8, + 92 * + 10 ) WHEN + 86 - - 44 * 90 * + 65 + - 8 * 68 - + 83 * 40 * 54 THEN NULL WHEN - 92 THEN NULL ELSE COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-3479
SELECT DISTINCT CASE + 54 WHEN - COUNT ( * ) THEN + NULLIF ( + + 8, + 92 * + 10 ) WHEN + 86 - - 44 * 90 * + 65 + - 8 * 68 - + 83 * 40 * 54 THEN NULL WHEN - 92 THEN NULL ELSE COUNT ( * ) END
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3480
SELECT ALL NULLIF ( - 72, + - COUNT( * ) + - 61 * + 79 ) AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-3480
SELECT ALL NULLIF ( - 72, + - COUNT ( * ) + - 61 * + 79 ) AS col1
----
-72

query II rowsort
SELECT 32, 0 col2
----
32
0

query I rowsort
SELECT ( + 18 ) * + - 36 + - 94 + + 54 AS col0
----
-688

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3483
SELECT + CAST( NULL AS SIGNED ) * 82
----
NULL

skipif mysql # not compatible
query I rowsort label-3483
SELECT + CAST ( NULL AS INTEGER ) * 82
----
NULL

query I rowsort
SELECT - ( - 56 ) * - 78 AS col0
----
-4368

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3485
SELECT ALL COUNT( * ) DIV + 44 * - + 86 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3485
SELECT ALL COUNT ( * ) / + 44 * - + 86 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3486
SELECT ALL - 30 DIV + 64 * - 9
----
0

skipif mysql # not compatible
query I rowsort label-3486
SELECT ALL - 30 / + 64 * - 9
----
0

query I rowsort
SELECT ALL - 77 * - 23 AS col0
----
1771

onlyif mysql # aggregate syntax: 
query II rowsort label-3488
SELECT ALL COUNT( * ) + + + MIN( ALL + CASE - 46 WHEN - 40 * + - ( 3 ) - - + 92 THEN + + 90 * 93 * + 13 END ), - COUNT( * ) AS col0
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-3488
SELECT ALL COUNT ( * ) + + + MIN ( ALL + CASE - 46 WHEN - 40 * + - ( 3 ) - - + 92 THEN + + 90 * 93 * + 13 END ), - COUNT ( * ) AS col0
----
NULL
-1

query I rowsort
SELECT + 5 + - ( 3 ) AS col2
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3490
SELECT DISTINCT + 86 + - COUNT( * ) DIV + + 36 AS col1
----
86

skipif mysql # not compatible
query I rowsort label-3490
SELECT DISTINCT + 86 + - COUNT ( * ) / + + 36 AS col1
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3491
SELECT ALL - COUNT( * ) DIV + 14
----
0

skipif mysql # not compatible
query I rowsort label-3491
SELECT ALL - COUNT ( * ) / + 14
----
0

query I rowsort
SELECT ALL + 58 AS col2
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3493
SELECT - CAST( + 34 AS SIGNED ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-3493
SELECT - CAST ( + 34 AS INTEGER ) AS col2
----
-34

query I rowsort
SELECT + + 42 + 87 AS col1
----
129

query I rowsort
SELECT DISTINCT 20 + + 90 - - + 78 AS col0
----
188

query I rowsort
SELECT DISTINCT - CASE + 52 WHEN + 82 / + ( 68 ) THEN + 39 END
----
NULL

query I rowsort
SELECT ALL NULLIF ( 32, + - 31 )
----
32

query I rowsort
SELECT + 34 * ( 31 ) + - - 9 * - + 65 + - - 63 col0
----
532

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3499
SELECT ALL + 51 DIV - ( - 67 ) * SUM( DISTINCT - 35 ) - - 98 - + 68 + - - 22 + + - 0
----
52

skipif mysql # not compatible
query I rowsort label-3499
SELECT ALL + 51 / - ( - 67 ) * SUM ( DISTINCT - 35 ) - - 98 - + 68 + - - 22 + + - 0
----
52

query I rowsort
SELECT + + 96 AS col2
----
96

query I rowsort
SELECT + - 71 - - - 12
----
-83

query I rowsort
SELECT - 39 * + + 44 * + ( - 5 ) AS col2
----
8580

onlyif mysql # aggregate syntax: 
query I rowsort label-3503
SELECT ( COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3503
SELECT ( COUNT ( * ) ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3504
SELECT DISTINCT COUNT( * ) * - 29 - 56 DIV - 51 AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-3504
SELECT DISTINCT COUNT ( * ) * - 29 - 56 / - 51 AS col1
----
-28

query II rowsort
SELECT ( + 56 ) AS col0, - 91 col1
----
56
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-3506
SELECT - NULLIF ( - 19, + 49 * - 53 ) + - 89, - NULLIF ( + + 18, - 25 + + 71 + + + COALESCE ( + - 29, + 62, 39 * + - 61 ) - 14 * 2 * COALESCE ( - - 87, + 91, + 46 ) * COUNT( * ) + + 77 / + 16 ) + + 42 + 3 * + 4 * + - 5 AS col0
----
-70
-36

skipif mysql # not compatible
query II rowsort label-3506
SELECT - NULLIF ( - 19, + 49 * - 53 ) + - 89, - NULLIF ( + + 18, - 25 + + 71 + + + COALESCE ( + - 29, + 62, 39 * + - 61 ) - 14 * 2 * COALESCE ( - - 87, + 91, + 46 ) * COUNT ( * ) + + 77 / + 16 ) + + 42 + 3 * + 4 * + - 5 AS col0
----
-70
-36

query I rowsort
SELECT - 3 * - + 42
----
126

query I rowsort
SELECT DISTINCT + COALESCE ( + 55, + 8 )
----
55

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

skipif mysql # not compatible
query I rowsort label-3509
SELECT ALL + COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) col2
----
0

query I rowsort
SELECT ALL 1 * + + ( - ( + - 26 ) ) - 10 AS col2
----
16

query I rowsort
SELECT - 73 * + + 2
----
-146

onlyif mysql # DIV for integer division: 
query I rowsort label-3512
SELECT ALL - 25 DIV - 32
----
0

skipif mysql # not compatible
query I rowsort label-3512
SELECT ALL - 25 / - 32
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3513
SELECT - 90 DIV - 43 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-3513
SELECT - 90 / - 43 AS col0
----
2

query I rowsort
SELECT - ( + + 94 ) * - + 2 col1
----
188

query I rowsort
SELECT ALL + COALESCE ( + + 28, - + 74 ) AS col2
----
28

query I rowsort
SELECT DISTINCT - 7 * + - 44 AS col0
----
308

query I rowsort
SELECT ALL + ( + 65 )
----
65

query I rowsort
SELECT NULLIF ( 46, ( - - 28 ) * + 36 ) AS col0
----
46

query I rowsort
SELECT NULLIF ( - - 87, + 67 )
----
87

query I rowsort
SELECT DISTINCT + 16 * - 97 * + - 8 AS col0
----
12416

query I rowsort
SELECT ALL + 35 * + + 4
----
140

query I rowsort
SELECT - - 37 * - 42 - - 20 col0
----
-1534

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3523
SELECT ( + - 40 ), + CAST( NULL AS SIGNED ) * - 69 AS col1
----
-40
NULL

skipif mysql # not compatible
query II rowsort label-3523
SELECT ( + - 40 ), + CAST ( NULL AS INTEGER ) * - 69 AS col1
----
-40
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3524
SELECT - 55 + SUM( + 40 ) / - 51 + - CAST( NULL AS SIGNED ) / - - 70
----
NULL

skipif mysql # not compatible
query I rowsort label-3524
SELECT - 55 + SUM ( + 40 ) / - 51 + - CAST ( NULL AS INTEGER ) / - - 70
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3525
SELECT + 25 * + COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-3525
SELECT + 25 * + COUNT ( * )
----
25

query I rowsort
SELECT ALL + 73 col0
----
73

query I rowsort
SELECT - 69 + + ( - 32 ) AS col0
----
-101

query II rowsort
SELECT - 83 + NULLIF ( + 10, - 11 * 0 ) col0, 48
----
-73
48

onlyif mysql # DIV for integer division: 
query II rowsort label-3529
SELECT + 52 DIV 79, - NULLIF ( - 88, + + 52 ) AS col2
----
0
88

skipif mysql # not compatible
query II rowsort label-3529
SELECT + 52 / 79, - NULLIF ( - 88, + + 52 ) AS col2
----
0
88

onlyif mysql # aggregate syntax: 
query II rowsort label-3530
SELECT - + 10 * - 33 AS col0, + CASE + 27 WHEN - COUNT( * ) + - 77 + + 97 * + 33 THEN 35 END
----
330
NULL

skipif mysql # not compatible
query II rowsort label-3530
SELECT - + 10 * - 33 AS col0, + CASE + 27 WHEN - COUNT ( * ) + - 77 + + 97 * + 33 THEN 35 END
----
330
NULL

query I rowsort
SELECT + - 35 + - 59 AS col0
----
-94

query I rowsort
SELECT ALL - 98 AS col2
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3533
SELECT DISTINCT - 72 * CASE - - CAST( - 70 AS SIGNED ) WHEN - 17 * + - MIN( ALL - + 44 ) THEN + 41 ELSE + 79 END
----
-5688

skipif mysql # not compatible
query I rowsort label-3533
SELECT DISTINCT - 72 * CASE - - CAST ( - 70 AS INTEGER ) WHEN - 17 * + - MIN ( ALL - + 44 ) THEN + 41 ELSE + 79 END
----
-5688

query I rowsort
SELECT + + 61 + 23 AS col0
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3535
SELECT ALL - CAST( - + NULLIF ( ( - + CAST( 34 AS SIGNED ) ), + COALESCE ( 65, + 9 ) ) AS SIGNED ) col1
----
-34

skipif mysql # not compatible
query I rowsort label-3535
SELECT ALL - CAST ( - + NULLIF ( ( - + CAST ( 34 AS INTEGER ) ), + COALESCE ( 65, + 9 ) ) AS INTEGER ) col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-3536
SELECT ALL 97 * COUNT( * ) - - + 98 * - COALESCE ( 26, 59 * COUNT( * ) ) * 68 col0
----
-173167

skipif mysql # not compatible
query I rowsort label-3536
SELECT ALL 97 * COUNT ( * ) - - + 98 * - COALESCE ( 26, 59 * COUNT ( * ) ) * 68 col0
----
-173167

query I rowsort
SELECT ALL - 80 - 90
----
-170

onlyif mysql # aggregate syntax: 
query I rowsort label-3538
SELECT ALL MAX( + 70 )
----
70

skipif mysql # not compatible
query I rowsort label-3538
SELECT ALL MAX ( + 70 )
----
70

query I rowsort
SELECT + 55 - 49 + + ( - 92 ) col1
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-3540
SELECT + 99 + - + MAX( - + 55 ) AS col2
----
154

skipif mysql # not compatible
query I rowsort label-3540
SELECT + 99 + - + MAX ( - + 55 ) AS col2
----
154

query I rowsort
SELECT ALL - - 38
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3542
SELECT DISTINCT 50 - - CASE + 88 WHEN - + CAST( NULL AS SIGNED ) / 85 + 85 + AVG ( + 37 ) THEN NULL WHEN 44 THEN + 50 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3542
SELECT DISTINCT 50 - - CASE + 88 WHEN - + CAST ( NULL AS INTEGER ) / 85 + 85 + AVG ( + 37 ) THEN NULL WHEN 44 THEN + 50 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3543
SELECT ALL - 20, - COUNT( * ) AS col1
----
-20
-1

skipif mysql # not compatible
query II rowsort label-3543
SELECT ALL - 20, - COUNT ( * ) AS col1
----
-20
-1

query II rowsort
SELECT 76 AS col1, 62 AS col1
----
76
62

query I rowsort
SELECT ALL - 94 col2
----
-94

query I rowsort
SELECT DISTINCT - 20 * - 68 col2
----
1360

onlyif mysql # aggregate syntax: 
query II rowsort label-3547
SELECT ALL - COUNT( * ) col1, - 2 + 11
----
-1
9

skipif mysql # not compatible
query II rowsort label-3547
SELECT ALL - COUNT ( * ) col1, - 2 + 11
----
-1
9

query I rowsort
SELECT DISTINCT 38 * 66 AS col1
----
2508

query I rowsort
SELECT 84 * + 44
----
3696

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3550
SELECT ( - + MAX( - + 68 ) ) DIV + 51 - 62
----
-61

skipif mysql # not compatible
query I rowsort label-3550
SELECT ( - + MAX ( - + 68 ) ) / + 51 - 62
----
-61

query I rowsort
SELECT DISTINCT 73 * - 92 AS col1
----
-6716

onlyif mysql # aggregate syntax: 
query I rowsort label-3552
SELECT + 46 * - 49 + 26 * COUNT( * ) + - 32 + COUNT( * ) + + 84 * + ( MAX( - 65 ) ) * + - 88 + - - COUNT( * ) AS col1
----
478222

skipif mysql # not compatible
query I rowsort label-3552
SELECT + 46 * - 49 + 26 * COUNT ( * ) + - 32 + COUNT ( * ) + + 84 * + ( MAX ( - 65 ) ) * + - 88 + - - COUNT ( * ) AS col1
----
478222

query II rowsort
SELECT 14 AS col2, 42 AS col0
----
14
42

query I rowsort
SELECT ALL - 38
----
-38

query I rowsort
SELECT 57 * + ( + - 16 ) + - 71 + 43 AS col1
----
-940

query I rowsort
SELECT DISTINCT 37 * 81
----
2997

onlyif mysql # DIV for integer division: 
query II rowsort label-3557
SELECT 90 + - ( + 65 ) AS col2, 7 DIV - 19
----
25
0

skipif mysql # not compatible
query II rowsort label-3557
SELECT 90 + - ( + 65 ) AS col2, 7 / - 19
----
25
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3558
SELECT ALL 13 + COUNT( * ) col2
----
14

skipif mysql # not compatible
query I rowsort label-3558
SELECT ALL 13 + COUNT ( * ) col2
----
14

query I rowsort
SELECT DISTINCT - ( - 35 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3560
SELECT DISTINCT COUNT( * ) + - - 57 AS col2
----
58

skipif mysql # not compatible
query I rowsort label-3560
SELECT DISTINCT COUNT ( * ) + - - 57 AS col2
----
58

query II rowsort
SELECT ALL - ( - 82 ) + - 27 AS col2, - 69
----
55
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3562
SELECT ALL - CAST( 1 AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-3562
SELECT ALL - CAST ( 1 AS INTEGER )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3563
SELECT ALL - COUNT( * ) + + - 67 + 93
----
25

skipif mysql # not compatible
query I rowsort label-3563
SELECT ALL - COUNT ( * ) + + - 67 + 93
----
25

query II rowsort
SELECT 14 AS col0, 89 col1
----
14
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3565
SELECT - - 8 * + - COUNT( * ) + 72 AS col2
----
64

skipif mysql # not compatible
query I rowsort label-3565
SELECT - - 8 * + - COUNT ( * ) + 72 AS col2
----
64

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3566
SELECT 44 + - COUNT( - CAST( 45 AS DECIMAL ) ) + 70 AS col0
----
113

skipif mysql # not compatible
query I rowsort label-3566
SELECT 44 + - COUNT ( - CAST ( 45 AS REAL ) ) + 70 AS col0
----
113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3567
SELECT - CASE + 96 WHEN ( + COUNT( * ) ) THEN - COALESCE ( 98, - - 60, - CAST( NULL AS SIGNED ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3567
SELECT - CASE + 96 WHEN ( + COUNT ( * ) ) THEN - COALESCE ( 98, - - 60, - CAST ( NULL AS INTEGER ) ) END AS col1
----
NULL

query I rowsort
SELECT ALL + 45 + + 30 AS col1
----
75

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-3569
SELECT - CAST( NULL AS DECIMAL ), + 74 DIV 3 AS col2
----
NULL
24

skipif mysql # not compatible
query II rowsort label-3569
SELECT - CAST ( NULL AS REAL ), + 74 / 3 AS col2
----
NULL
24

query II rowsort
SELECT ( 75 ) * + 9, - 29 * - 89 AS col2
----
675
2581

query I rowsort
SELECT DISTINCT - ( + 91 ) * - - 8 AS col0
----
-728

onlyif mysql # aggregate syntax: 
query I rowsort label-3572
SELECT COUNT( * ) * - - 77 * 38 + 44 + + - 53
----
2917

skipif mysql # not compatible
query I rowsort label-3572
SELECT COUNT ( * ) * - - 77 * 38 + 44 + + - 53
----
2917

query I rowsort
SELECT - 25 * + + 53 col0
----
-1325

onlyif mysql # aggregate syntax: 
query I rowsort label-3574
SELECT 34 + + + 6 + - COUNT( * ) * COUNT( * ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-3574
SELECT 34 + + + 6 + - COUNT ( * ) * COUNT ( * ) AS col1
----
39

query I rowsort
SELECT ALL ( 63 ) AS col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3576
SELECT + 92 * - NULLIF ( + 72, - AVG ( DISTINCT + 69 ) ) + COUNT( * ) + + COUNT( * ) AS col0
----
-6622

skipif mysql # not compatible
query I rowsort label-3576
SELECT + 92 * - NULLIF ( + 72, - AVG ( DISTINCT + 69 ) ) + COUNT ( * ) + + COUNT ( * ) AS col0
----
-6622

onlyif mysql # aggregate syntax: 
query I rowsort label-3577
SELECT + 62 * COUNT( * ) * 82 AS col0
----
5084

skipif mysql # not compatible
query I rowsort label-3577
SELECT + 62 * COUNT ( * ) * 82 AS col0
----
5084

query I rowsort
SELECT ALL 31 * + NULLIF ( - 83, + + 18 ) AS col0
----
-2573

onlyif mysql # aggregate syntax: 
query I rowsort label-3579
SELECT ALL + NULLIF ( - COUNT( * ), CASE + ( - 30 ) WHEN + ( + 89 ) THEN 84 / + 99 END * - 62 )
----
-1

skipif mysql # not compatible
query I rowsort label-3579
SELECT ALL + NULLIF ( - COUNT ( * ), CASE + ( - 30 ) WHEN + ( + 89 ) THEN 84 / + 99 END * - 62 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3580
SELECT - SUM( - 1 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3580
SELECT - SUM ( - 1 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3581
SELECT 55 + + ( CASE - COUNT( * ) WHEN - - COUNT( * ) + + 74 THEN + 95 * - 63 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3581
SELECT 55 + + ( CASE - COUNT ( * ) WHEN - - COUNT ( * ) + + 74 THEN + 95 * - 63 END )
----
NULL

query II rowsort
SELECT DISTINCT 33 * - 25 AS col2, - 24 AS col0
----
-825
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3583
SELECT COUNT( ALL + 51 ) + + CASE 29 WHEN + 81 THEN - COUNT( * ) + + - ( 86 ) + - 75 WHEN + 7 THEN NULL ELSE 40 * + 75 END * - 56
----
-167999

skipif mysql # not compatible
query I rowsort label-3583
SELECT COUNT ( ALL + 51 ) + + CASE 29 WHEN + 81 THEN - COUNT ( * ) + + - ( 86 ) + - 75 WHEN + 7 THEN NULL ELSE 40 * + 75 END * - 56
----
-167999

query I rowsort
SELECT ALL + 24 * + 61 * - 48 AS col2
----
-70272

onlyif mysql # aggregate syntax: 
query I rowsort label-3585
SELECT ALL - 61 * - COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-3585
SELECT ALL - 61 * - COUNT ( * )
----
61

query I rowsort
SELECT ALL 38 * 89 AS col0
----
3382

onlyif mysql # aggregate syntax: 
query I rowsort label-3587
SELECT 55 * + COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-3587
SELECT 55 * + COUNT ( * )
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3588
SELECT + 80 * + - COUNT( * ) * + 65 + + - 87 * - 86 / - CAST( NULL AS SIGNED ) + + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-3588
SELECT + 80 * + - COUNT ( * ) * + 65 + + - 87 * - 86 / - CAST ( NULL AS INTEGER ) + + 34
----
NULL

query I rowsort
SELECT DISTINCT - 26 col0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-3590
SELECT 64 * COUNT( * )
----
64

skipif mysql # not compatible
query I rowsort label-3590
SELECT 64 * COUNT ( * )
----
64

query I rowsort
SELECT DISTINCT - 41 AS col2
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-3592
SELECT ALL COUNT( * ) + 59
----
60

skipif mysql # not compatible
query I rowsort label-3592
SELECT ALL COUNT ( * ) + 59
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3593
SELECT SUM( ALL - 12 ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-3593
SELECT SUM ( ALL - 12 ) AS col1
----
-12

query I rowsort
SELECT + 30 col2
----
30

query I rowsort
SELECT ( + 69 ) - - 79
----
148

query I rowsort
SELECT ALL - 28 AS col2
----
-28

query I rowsort
SELECT 78 col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3598
SELECT ( COUNT( ALL + 45 ) ) * - ( - 49 ) - + NULLIF ( - 62, - 53 * + 86 ) AS col2
----
111

skipif mysql # not compatible
query I rowsort label-3598
SELECT ( COUNT ( ALL + 45 ) ) * - ( - 49 ) - + NULLIF ( - 62, - 53 * + 86 ) AS col2
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-3599
SELECT COUNT( * ) * - ( 22 )
----
-22

skipif mysql # not compatible
query I rowsort label-3599
SELECT COUNT ( * ) * - ( 22 )
----
-22

query II rowsort
SELECT DISTINCT 83 * + - CASE - 30 WHEN 85 THEN - - 7 END * - - 71 / + COALESCE ( - 11, 90 ) col2, 21 AS col0
----
NULL
21

query I rowsort
SELECT ALL - ( - 51 )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3602
SELECT ALL + 65 * - COUNT( * )
----
-65

skipif mysql # not compatible
query I rowsort label-3602
SELECT ALL + 65 * - COUNT ( * )
----
-65

query I rowsort
SELECT + ( - - 50 )
----
50

query I rowsort
SELECT ALL - - ( 4 ) + + 31
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-3605
SELECT - SUM( - ( - 88 ) ) - - 92 AS col1, 42 * + 68 * - - 57 AS col0
----
4
162792

skipif mysql # not compatible
query II rowsort label-3605
SELECT - SUM ( - ( - 88 ) ) - - 92 AS col1, 42 * + 68 * - - 57 AS col0
----
4
162792

onlyif mysql # aggregate syntax: 
query I rowsort label-3606
SELECT ALL - 5 * - 13 * + COUNT( * ) col0
----
65

skipif mysql # not compatible
query I rowsort label-3606
SELECT ALL - 5 * - 13 * + COUNT ( * ) col0
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-3607
SELECT 92 DIV + 4 AS col0
----
23

skipif mysql # not compatible
query I rowsort label-3607
SELECT 92 / + 4 AS col0
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3608
SELECT DISTINCT SUM( DISTINCT + - 26 ) AS col2, + 78 * - - 18 - - 6 * - ( ( + 39 ) ) * + 63 - + 86 + + + NULLIF ( - 94, - AVG ( + 68 ) ) + - NULLIF ( 30, - 67 * + + 8 + - 75 + + COUNT( * ) - + ( - CAST( COUNT( * ) AS SIGNED ) ) ) * COUNT( * ) * + - 29 col0
----
-26
-12648

skipif mysql # not compatible
query II rowsort label-3608
SELECT DISTINCT SUM ( DISTINCT + - 26 ) AS col2, + 78 * - - 18 - - 6 * - ( ( + 39 ) ) * + 63 - + 86 + + + NULLIF ( - 94, - AVG ( + 68 ) ) + - NULLIF ( 30, - 67 * + + 8 + - 75 + + COUNT ( * ) - + ( - CAST ( COUNT ( * ) AS INTEGER ) ) ) * COUNT ( * ) * + - 29 col0
----
-26
-12648

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3609
SELECT ALL ( + CAST( NULL AS SIGNED ) ) - - 88 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3609
SELECT ALL ( + CAST ( NULL AS INTEGER ) ) - - 88 AS col0
----
NULL

query I rowsort
SELECT - - 69 AS col1
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3611
SELECT ALL 70 DIV SUM( DISTINCT + 7 ) * COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-3611
SELECT ALL 70 / SUM ( DISTINCT + 7 ) * COUNT ( * )
----
10

query I rowsort
SELECT 72 + + 54 + - 15
----
111

onlyif mysql # DIV for integer division: 
query I rowsort label-3613
SELECT + 10 DIV + ( + - 17 )
----
0

skipif mysql # not compatible
query I rowsort label-3613
SELECT + 10 / + ( + - 17 )
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-3614
SELECT ALL + + 21 DIV - 16 AS col2, - 0 + + 71 col1
----
-1
71

skipif mysql # not compatible
query II rowsort label-3614
SELECT ALL + + 21 / - 16 AS col2, - 0 + + 71 col1
----
-1
71

onlyif mysql # aggregate syntax: 
query II rowsort label-3615
SELECT ( + + 91 ) + - - 64 + + COUNT( * ) col0, + 64 AS col2
----
156
64

skipif mysql # not compatible
query II rowsort label-3615
SELECT ( + + 91 ) + - - 64 + + COUNT ( * ) col0, + 64 AS col2
----
156
64

query I rowsort
SELECT 61 - 83
----
-22

query I rowsort
SELECT - - 48 AS col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3618
SELECT + ( + MAX( DISTINCT + 3 ) ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-3618
SELECT + ( + MAX ( DISTINCT + 3 ) ) AS col2
----
3

query I rowsort
SELECT ALL 43 col1
----
43

query I rowsort
SELECT DISTINCT - ( 61 )
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3621
SELECT - CAST( NULL AS SIGNED ) + + + 65 - - 96 * + 29 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3621
SELECT - CAST ( NULL AS INTEGER ) + + + 65 - - 96 * + 29 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3622
SELECT DISTINCT - NULLIF ( - - 43, 82 + - ( COUNT( * ) ) + CASE 24 WHEN - COUNT( * ) THEN NULL ELSE - - AVG ( 98 ) * - ( 93 ) END * - + NULLIF ( + + 24, - - 69 + - CAST( MAX( ALL 3 ) AS SIGNED ) + - 71 + + 76 * 62 * 45 + COUNT( * ) ) * 66 * 38 * + CASE + COUNT( * ) WHEN + 58 * + + 95 * 25 + - 75 * 17 + NULLIF ( COUNT( * ), 47 * 99 ) + 4 * + + 83 THEN + - 95 WHEN - 27 THEN - CAST( NULL AS DECIMAL ) + 20 END ) * + 23 col2
----
-989

skipif mysql # not compatible
query I rowsort label-3622
SELECT DISTINCT - NULLIF ( - - 43, 82 + - ( COUNT ( * ) ) + CASE 24 WHEN - COUNT ( * ) THEN NULL ELSE - - AVG ( 98 ) * - ( 93 ) END * - + NULLIF ( + + 24, - - 69 + - CAST ( MAX ( ALL 3 ) AS INTEGER ) + - 71 + + 76 * 62 * 45 + COUNT ( * ) ) * 66 * 38 * + CASE + COUNT ( * ) WHEN + 58 * + + 95 * 25 + - 75 * 17 + NULLIF ( COUNT ( * ), 47 * 99 ) + 4 * + + 83 THEN + - 95 WHEN - 27 THEN - CAST ( NULL AS REAL ) + 20 END ) * + 23 col2
----
-989

onlyif mysql # aggregate syntax: 
query I rowsort label-3623
SELECT - SUM( - 14 ) + + 78 * - 3 AS col2
----
-220

skipif mysql # not compatible
query I rowsort label-3623
SELECT - SUM ( - 14 ) + + 78 * - 3 AS col2
----
-220

query I rowsort
SELECT ALL + 38 * - 13
----
-494

onlyif mysql # aggregate syntax: 
query I rowsort label-3625
SELECT - SUM( DISTINCT + ( + - 79 ) ) * - 38 AS col1
----
-3002

skipif mysql # not compatible
query I rowsort label-3625
SELECT - SUM ( DISTINCT + ( + - 79 ) ) * - 38 AS col1
----
-3002

query I rowsort
SELECT ALL NULLIF ( 74, + 11 * - 71 )
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3627
SELECT - ( + COALESCE ( - ( - 57 ), 72 DIV + + 63 ) ) + + 49 * + MIN( - 2 ) DIV + + 99
----
-57

skipif mysql # not compatible
query I rowsort label-3627
SELECT - ( + COALESCE ( - ( - 57 ), 72 / + + 63 ) ) + + 49 * + MIN ( - 2 ) / + + 99
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3628
SELECT + 44 * COALESCE ( SUM( ALL ( - 72 ) ), + - 17 DIV + - COUNT( + 32 ) + 23 ) * 86 * - - 75 + + 32
----
-20433568

skipif mysql # not compatible
query I rowsort label-3628
SELECT + 44 * COALESCE ( SUM ( ALL ( - 72 ) ), + - 17 / + - COUNT ( + 32 ) + 23 ) * 86 * - - 75 + + 32
----
-20433568

onlyif mysql # aggregate syntax: 
query I rowsort label-3629
SELECT DISTINCT + 93 + MAX( + ( + 37 ) )
----
130

skipif mysql # not compatible
query I rowsort label-3629
SELECT DISTINCT + 93 + MAX ( + ( + 37 ) )
----
130

query I rowsort
SELECT ( + 89 )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3631
SELECT ALL 32 * + COUNT( * ) + - MAX( 59 ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-3631
SELECT ALL 32 * + COUNT ( * ) + - MAX ( 59 ) AS col2
----
-27

query I rowsort
SELECT ( + 75 ) AS col2
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-3633
SELECT ALL + 3 DIV - COALESCE ( + 42, + 3, + 34 - - 90 + - + 31 * + 44 )
----
0

skipif mysql # not compatible
query I rowsort label-3633
SELECT ALL + 3 / - COALESCE ( + 42, + 3, + 34 - - 90 + - + 31 * + 44 )
----
0

query II rowsort
SELECT ALL + 64 AS col1, 89
----
64
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3635
SELECT ALL 69 * + CAST( NULL AS SIGNED ) + - + ( - 10 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3635
SELECT ALL 69 * + CAST ( NULL AS INTEGER ) + - + ( - 10 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-3636
SELECT - ( - + 27 ) + - + NULLIF ( + - 82, - CAST( NULL AS SIGNED ) ) * + 70, COUNT( * ) * + 5 AS col2, COUNT( * ) AS col0
----
5767
5
1

skipif mysql # not compatible
query III rowsort label-3636
SELECT - ( - + 27 ) + - + NULLIF ( + - 82, - CAST ( NULL AS INTEGER ) ) * + 70, COUNT ( * ) * + 5 AS col2, COUNT ( * ) AS col0
----
5767
5
1

query I rowsort
SELECT ALL - 4 * + 25 * + 35 AS col1
----
-3500

onlyif mysql # aggregate syntax: 
query I rowsort label-3638
SELECT - COUNT( * ) + 9 + + 73 * COUNT( * )
----
81

skipif mysql # not compatible
query I rowsort label-3638
SELECT - COUNT ( * ) + 9 + + 73 * COUNT ( * )
----
81

query I rowsort
SELECT + 54 - 11
----
43

query I rowsort
SELECT + 12 * + 43
----
516

query I rowsort
SELECT ALL + - 75
----
-75

query I rowsort
SELECT DISTINCT + + ( + 86 ) AS col0
----
86

query I rowsort
SELECT ALL + + 97
----
97

query I rowsort
SELECT ALL 2 * - 75
----
-150

query I rowsort
SELECT + - 48 + + + 27 AS col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-3646
SELECT + + COUNT( * ) * + - 96 * 72 + - + 69 * + 84 * - + 63 + 57 * - COALESCE ( - 63, + 4 * + COUNT( * ) + 52 ) AS col1
----
361827

skipif mysql # not compatible
query I rowsort label-3646
SELECT + + COUNT ( * ) * + - 96 * 72 + - + 69 * + 84 * - + 63 + 57 * - COALESCE ( - 63, + 4 * + COUNT ( * ) + 52 ) AS col1
----
361827

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3647
SELECT ALL - AVG ( DISTINCT + + 73 ) * ( CAST( NULL AS SIGNED ) ) * - + 14 + - - COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3647
SELECT ALL - AVG ( DISTINCT + + 73 ) * ( CAST ( NULL AS INTEGER ) ) * - + 14 + - - COUNT ( * ) col2
----
NULL

query I rowsort
SELECT + 8 + + 49 AS col0
----
57

query I rowsort
SELECT + 47 * + 50 AS col1
----
2350

onlyif mysql # DIV for integer division: 
query II rowsort label-3650
SELECT ALL - NULLIF ( - 20, 31 ) AS col0, 9 DIV - + 75 AS col1
----
20
0

skipif mysql # not compatible
query II rowsort label-3650
SELECT ALL - NULLIF ( - 20, 31 ) AS col0, 9 / - + 75 AS col1
----
20
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3651
SELECT + CAST( 22 AS SIGNED )
----
22

skipif mysql # not compatible
query I rowsort label-3651
SELECT + CAST ( 22 AS INTEGER )
----
22

query I rowsort
SELECT DISTINCT + 24 + 7
----
31

query I rowsort
SELECT DISTINCT 94 AS col2
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-3654
SELECT - - 55 DIV - 62 * 32 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3654
SELECT - - 55 / - 62 * 32 AS col0
----
0

query I rowsort
SELECT - 49 AS col1
----
-49

query II rowsort
SELECT - 52 AS col2, 36
----
-52
36

query I rowsort
SELECT - 26 * 14 AS col1
----
-364

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3658
SELECT DISTINCT + COUNT( * ) + - 45 * + CAST( + 65 AS SIGNED ) + 86
----
-2838

skipif mysql # not compatible
query I rowsort label-3658
SELECT DISTINCT + COUNT ( * ) + - 45 * + CAST ( + 65 AS INTEGER ) + 86
----
-2838

query I rowsort
SELECT ALL + 7 + 9 AS col1
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3660
SELECT - CAST( + 47 AS SIGNED ) AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-3660
SELECT - CAST ( + 47 AS INTEGER ) AS col2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3661
SELECT ALL - COUNT( * ) + - 61
----
-62

skipif mysql # not compatible
query I rowsort label-3661
SELECT ALL - COUNT ( * ) + - 61
----
-62

query I rowsort
SELECT ALL ( + - 44 )
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3663
SELECT ALL CAST( - 18 AS SIGNED )
----
-18

skipif mysql # not compatible
query I rowsort label-3663
SELECT ALL CAST ( - 18 AS INTEGER )
----
-18

query I rowsort
SELECT 16 col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3665
SELECT ALL + COUNT( + + 99 ) + - 31
----
-30

skipif mysql # not compatible
query I rowsort label-3665
SELECT ALL + COUNT ( + + 99 ) + - 31
----
-30

query I rowsort
SELECT DISTINCT + 90 * - 61
----
-5490

onlyif mysql # aggregate syntax: 
query I rowsort label-3667
SELECT + ( - - ( - - 13 ) ) + + + COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-3667
SELECT + ( - - ( - - 13 ) ) + + + COUNT ( * )
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-3668
SELECT + 86 AS col0, - COUNT( * ) AS col2
----
86
-1

skipif mysql # not compatible
query II rowsort label-3668
SELECT + 86 AS col0, - COUNT ( * ) AS col2
----
86
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3669
SELECT DISTINCT + CAST( - 88 AS SIGNED )
----
-88

skipif mysql # not compatible
query I rowsort label-3669
SELECT DISTINCT + CAST ( - 88 AS INTEGER )
----
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-3670
SELECT - 1 * COALESCE ( - 6, + 50 + - 39, - - ( - 60 ) - + SUM( - 36 ) ) AS col2, - 4 AS col1
----
6
-4

skipif mysql # not compatible
query II rowsort label-3670
SELECT - 1 * COALESCE ( - 6, + 50 + - 39, - - ( - 60 ) - + SUM ( - 36 ) ) AS col2, - 4 AS col1
----
6
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-3671
SELECT - 18 DIV 13 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3671
SELECT - 18 / 13 AS col2
----
-1

query II rowsort
SELECT + - 99, - 56 * - 80 * + ( + 14 ) * + + 15 AS col0
----
-99
940800

query II rowsort
SELECT ALL + + 72 AS col0, ( - 12 ) * - 71 AS col1
----
72
852

query II rowsort
SELECT + - 29, + ( + 65 ) * - 4 AS col1
----
-29
-260

onlyif mysql # DIV for integer division: 
query I rowsort label-3675
SELECT ALL - 53 DIV 66 - + 70 + + + 24 * 12 AS col2
----
218

skipif mysql # not compatible
query I rowsort label-3675
SELECT ALL - 53 / 66 - + 70 + + + 24 * 12 AS col2
----
218

query I rowsort
SELECT ALL + 83 * + + 78
----
6474

onlyif mysql # aggregate syntax: 
query I rowsort label-3677
SELECT ALL - - 54 * - COUNT( * ) col1
----
-54

skipif mysql # not compatible
query I rowsort label-3677
SELECT ALL - - 54 * - COUNT ( * ) col1
----
-54

query I rowsort
SELECT ALL + 63 AS col2
----
63

query I rowsort
SELECT - 58 * + - 23 - - 81 - + 63
----
1352

onlyif mysql # aggregate syntax: 
query I rowsort label-3680
SELECT DISTINCT + + COUNT( * ) * + + 26 * + 55
----
1430

skipif mysql # not compatible
query I rowsort label-3680
SELECT DISTINCT + + COUNT ( * ) * + + 26 * + 55
----
1430

query I rowsort
SELECT - 22 * 79 + + ( - 89 )
----
-1827

onlyif mysql # aggregate syntax: 
query II rowsort label-3682
SELECT 26 AS col1, NULLIF ( + + 71, COUNT( * ) )
----
26
71

skipif mysql # not compatible
query II rowsort label-3682
SELECT 26 AS col1, NULLIF ( + + 71, COUNT ( * ) )
----
26
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3683
SELECT ALL - SUM( + 64 )
----
-64

skipif mysql # not compatible
query I rowsort label-3683
SELECT ALL - SUM ( + 64 )
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3684
SELECT 63 AS col0, 45 * + 67 * 67 * COUNT( * ) * + CAST( NULL AS SIGNED ) col0
----
63
NULL

skipif mysql # not compatible
query II rowsort label-3684
SELECT 63 AS col0, 45 * + 67 * 67 * COUNT ( * ) * + CAST ( NULL AS INTEGER ) col0
----
63
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3685
SELECT MIN( DISTINCT 33 ) - - 14 AS col1
----
47

skipif mysql # not compatible
query I rowsort label-3685
SELECT MIN ( DISTINCT 33 ) - - 14 AS col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3686
SELECT ALL + 81 + - ( + - ( 99 ) ) + - - 90 + - + 85 * - - COUNT( * ) * + 22
----
-1600

skipif mysql # not compatible
query I rowsort label-3686
SELECT ALL + 81 + - ( + - ( 99 ) ) + - - 90 + - + 85 * - - COUNT ( * ) * + 22
----
-1600

query II rowsort
SELECT ALL - 68, 87 AS col0
----
-68
87

query I rowsort
SELECT ALL - 6 + + + ( + - 55 ) AS col0
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3689
SELECT + 44 AS col2, 85 / + 49 + CAST( NULL AS SIGNED ) / - - 70 * - 15
----
44
NULL

skipif mysql # not compatible
query II rowsort label-3689
SELECT + 44 AS col2, 85 / + 49 + CAST ( NULL AS INTEGER ) / - - 70 * - 15
----
44
NULL

query I rowsort
SELECT ALL + 95 + + + 58 + + 85 + + 58
----
296

query I rowsort
SELECT - - 1 col0
----
1

query I rowsort
SELECT - 38 + - - 46
----
8

query I rowsort
SELECT 67 + + + 89 * + 0
----
67

query I rowsort
SELECT 3 * 79
----
237

query II rowsort
SELECT ALL 61 + 11, - 49 AS col0
----
72
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-3696
SELECT 93 + + - COUNT( * ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-3696
SELECT 93 + + - COUNT ( * ) AS col1
----
92

query I rowsort
SELECT DISTINCT 69 AS col2
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-3698
SELECT 83 DIV 29 DIV - + 29
----
0

skipif mysql # not compatible
query I rowsort label-3698
SELECT 83 / 29 / - + 29
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3699
SELECT ALL 43 DIV 77 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3699
SELECT ALL 43 / 77 AS col1
----
0

query I rowsort
SELECT DISTINCT 80 AS col0
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3701
SELECT 28 + COALESCE ( - COALESCE ( - 6, + 99, + + MIN( DISTINCT - 75 ) ), NULLIF ( COUNT( * ), 20 + + CAST( + + COALESCE ( + + CAST( NULL AS SIGNED ), + 71, - 24 + - - 36 ) AS SIGNED ) - - 97 * COALESCE ( 94, 47, 56 - + - 28 ) * + - 30 * + + 46 ) * + + COALESCE ( + COUNT( * ), + - 59 ) - 32 + 93 + - COUNT( * ) + - - MIN( 13 ), - 86 ) col1
----
34

skipif mysql # not compatible
query I rowsort label-3701
SELECT 28 + COALESCE ( - COALESCE ( - 6, + 99, + + MIN ( DISTINCT - 75 ) ), NULLIF ( COUNT ( * ), 20 + + CAST ( + + COALESCE ( + + CAST ( NULL AS INTEGER ), + 71, - 24 + - - 36 ) AS INTEGER ) - - 97 * COALESCE ( 94, 47, 56 - + - 28 ) * + - 30 * + + 46 ) * + + COALESCE ( + COUNT ( * ), + - 59 ) - 32 + 93 + - COUNT ( * ) + - - MIN ( 13 ), - 86 ) col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3702
SELECT 37 + - MIN( - 12 ) + - 32 * - 19 * + + COUNT( * ) col1
----
657

skipif mysql # not compatible
query I rowsort label-3702
SELECT 37 + - MIN ( - 12 ) + - 32 * - 19 * + + COUNT ( * ) col1
----
657

onlyif mysql # aggregate syntax: 
query II rowsort label-3703
SELECT COUNT( * ) * 35 AS col0, - 19 + + + 77
----
35
58

skipif mysql # not compatible
query II rowsort label-3703
SELECT COUNT ( * ) * 35 AS col0, - 19 + + + 77
----
35
58

onlyif mysql # DIV for integer division: 
query I rowsort label-3704
SELECT ALL 7 DIV + 31 * 92
----
0

skipif mysql # not compatible
query I rowsort label-3704
SELECT ALL 7 / + 31 * 92
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3705
SELECT COUNT( * ) - - - 32
----
-31

skipif mysql # not compatible
query I rowsort label-3705
SELECT COUNT ( * ) - - - 32
----
-31

query I rowsort
SELECT 24 + 85 - + + 90 AS col0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3707
SELECT ALL ( + ( + CASE - 54 WHEN COUNT( * ) + - COUNT( * ) THEN NULL ELSE - 46 + - 59 END ) ) * COUNT( * )
----
-105

skipif mysql # not compatible
query I rowsort label-3707
SELECT ALL ( + ( + CASE - 54 WHEN COUNT ( * ) + - COUNT ( * ) THEN NULL ELSE - 46 + - 59 END ) ) * COUNT ( * )
----
-105

query I rowsort
SELECT + - 44
----
-44

query I rowsort
SELECT ALL - - 79 AS col0
----
79

query I rowsort
SELECT DISTINCT - + 19 AS col2
----
-19

query I rowsort
SELECT ALL - 26 * - 61 AS col2
----
1586

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3712
SELECT 15 * + 14 * + CAST( NULL AS SIGNED ) - - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-3712
SELECT 15 * + 14 * + CAST ( NULL AS INTEGER ) - - 14
----
NULL

query I rowsort
SELECT ALL - - COALESCE ( 50, + 97 )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3714
SELECT - 31 * - COUNT( * ) + - - 41 * - 68
----
-2757

skipif mysql # not compatible
query I rowsort label-3714
SELECT - 31 * - COUNT ( * ) + - - 41 * - 68
----
-2757

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3715
SELECT CASE 34 WHEN 83 * + 67 THEN + + 79 / + + COUNT( * ) WHEN - - NULLIF ( - - COUNT( * ), 15 ) + - + 99 - + 79 * + - 71 THEN NULL WHEN + 10 + - 73 + - - 48 - - 22 / - 17 + + COUNT( * ) + + + 75 THEN + CAST( - 74 AS SIGNED ) + - - 77 * 40 + - COUNT( * ) + + 14 END - - - 38 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3715
SELECT CASE 34 WHEN 83 * + 67 THEN + + 79 / + + COUNT ( * ) WHEN - - NULLIF ( - - COUNT ( * ), 15 ) + - + 99 - + 79 * + - 71 THEN NULL WHEN + 10 + - 73 + - - 48 - - 22 / - 17 + + COUNT ( * ) + + + 75 THEN + CAST ( - 74 AS INTEGER ) + - - 77 * 40 + - COUNT ( * ) + + 14 END - - - 38 AS col0
----
NULL

query I rowsort
SELECT + + 82 AS col0
----
82

query II rowsort
SELECT + 20 * - - 51, 52 * + - 85 * + 35 AS col1
----
1020
-154700

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-3718
SELECT ALL - MIN( ALL - + 21 ) AS col2, - 94 AS col1, 38 DIV + - 93 * - + 74 * 93 * - - COUNT( - 11 ) + - 21 AS col1
----
21
-94
-21

skipif mysql # not compatible
query III rowsort label-3718
SELECT ALL - MIN ( ALL - + 21 ) AS col2, - 94 AS col1, 38 / + - 93 * - + 74 * 93 * - - COUNT ( - 11 ) + - 21 AS col1
----
21
-94
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3719
SELECT DISTINCT - + COUNT( * ) DIV COUNT( DISTINCT - 26 ) * 86 + - MAX( DISTINCT + 17 ) AS col1
----
-103

skipif mysql # not compatible
query I rowsort label-3719
SELECT DISTINCT - + COUNT ( * ) / COUNT ( DISTINCT - 26 ) * 86 + - MAX ( DISTINCT + 17 ) AS col1
----
-103

query I rowsort
SELECT DISTINCT - + 84 + - - 49
----
-35

query I rowsort
SELECT DISTINCT - 34 AS col0
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3722
SELECT ALL - COALESCE ( - 54, 61 DIV - - 4 * + 92 ) + + + 55 - NULLIF ( - ( - 64 ), - 16 * SUM( + - 31 ) ) * + NULLIF ( + ( 54 ), 20 ) * - 32 + + 58 AS col2
----
110759

skipif mysql # not compatible
query I rowsort label-3722
SELECT ALL - COALESCE ( - 54, 61 / - - 4 * + 92 ) + + + 55 - NULLIF ( - ( - 64 ), - 16 * SUM ( + - 31 ) ) * + NULLIF ( + ( 54 ), 20 ) * - 32 + + 58 AS col2
----
110759

onlyif mysql # aggregate syntax: 
query I rowsort label-3723
SELECT 93 + COUNT( - 85 )
----
94

skipif mysql # not compatible
query I rowsort label-3723
SELECT 93 + COUNT ( - 85 )
----
94

query I rowsort
SELECT ALL - - 34 + 1 * - - 85
----
119

query I rowsort
SELECT + 55 * 79 + - 92
----
4253

onlyif mysql # aggregate syntax: 
query I rowsort label-3726
SELECT ALL 9 + + SUM( DISTINCT + 29 ) col0
----
38

skipif mysql # not compatible
query I rowsort label-3726
SELECT ALL 9 + + SUM ( DISTINCT + 29 ) col0
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-3727
SELECT 85 DIV + 78
----
1

skipif mysql # not compatible
query I rowsort label-3727
SELECT 85 / + 78
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3728
SELECT - COUNT( * ) * COUNT( * ) + - - ( + 31 ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-3728
SELECT - COUNT ( * ) * COUNT ( * ) + - - ( + 31 ) AS col1
----
30

query I rowsort
SELECT - ( ( - 29 ) ) AS col1
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-3730
SELECT 68 DIV - + ( 59 )
----
-1

skipif mysql # not compatible
query I rowsort label-3730
SELECT 68 / - + ( 59 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3731
SELECT COUNT( * ) + + 0
----
1

skipif mysql # not compatible
query I rowsort label-3731
SELECT COUNT ( * ) + + 0
----
1

query I rowsort
SELECT 74 * + 39 AS col2
----
2886

query I rowsort
SELECT DISTINCT + 62 + - 19
----
43

query II rowsort
SELECT ALL 58 AS col2, - 73 + + + 14
----
58
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3735
SELECT DISTINCT 20 - + COUNT( * ) * + ( 22 ) * 54 * + SUM( - + 5 ) * - - 52 * - MIN( DISTINCT + - 0 ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-3735
SELECT DISTINCT 20 - + COUNT ( * ) * + ( 22 ) * 54 * + SUM ( - + 5 ) * - - 52 * - MIN ( DISTINCT + - 0 ) AS col0
----
20

query I rowsort
SELECT 55 col2
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3737
SELECT ALL 55 * NULLIF ( - + 40, - - 87 * - + CAST( - 36 AS SIGNED ) )
----
-2200

skipif mysql # not compatible
query I rowsort label-3737
SELECT ALL 55 * NULLIF ( - + 40, - - 87 * - + CAST ( - 36 AS INTEGER ) )
----
-2200

query I rowsort
SELECT 83 - + 62
----
21

onlyif mysql # DIV for integer division: 
query II rowsort label-3739
SELECT 41 AS col2, ( - 0 ) DIV + + 8 AS col1
----
41
0

skipif mysql # not compatible
query II rowsort label-3739
SELECT 41 AS col2, ( - 0 ) / + + 8 AS col1
----
41
0

query I rowsort
SELECT ALL 19 * + 46
----
874

query II rowsort
SELECT 99 * + ( 55 ), + 9 AS col1
----
5445
9

query I rowsort
SELECT 34 + - + 66 + 67 AS col0
----
35

query II rowsort
SELECT ALL ( + 77 ) - 55, ( - 88 ) AS col2
----
22
-88

query I rowsort
SELECT DISTINCT 54 * 35 col1
----
1890

onlyif mysql # aggregate syntax: 
query I rowsort label-3745
SELECT ( - MAX( + - 11 ) ) - - 72 * - 51
----
-3661

skipif mysql # not compatible
query I rowsort label-3745
SELECT ( - MAX ( + - 11 ) ) - - 72 * - 51
----
-3661

query II rowsort
SELECT DISTINCT 44 AS col2, 32 col2
----
44
32

onlyif mysql # DIV for integer division: 
query I rowsort label-3747
SELECT ALL - 66 DIV + 94
----
0

skipif mysql # not compatible
query I rowsort label-3747
SELECT ALL - 66 / + 94
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3748
SELECT 59 DIV - COUNT( * ) + - + 33 AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-3748
SELECT 59 / - COUNT ( * ) + - + 33 AS col0
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3749
SELECT + MIN( DISTINCT 75 ) * + + CAST( 58 AS SIGNED ) AS col0
----
4350

skipif mysql # not compatible
query I rowsort label-3749
SELECT + MIN ( DISTINCT 75 ) * + + CAST ( 58 AS INTEGER ) AS col0
----
4350

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3750
SELECT + 51 * - 99 + - 96 + - SUM( DISTINCT - ( + 77 ) ) DIV - COUNT( * )
----
-5222

skipif mysql # not compatible
query I rowsort label-3750
SELECT + 51 * - 99 + - 96 + - SUM ( DISTINCT - ( + 77 ) ) / - COUNT ( * )
----
-5222

query II rowsort
SELECT 74, 88 col2
----
74
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3752
SELECT ALL + COUNT( * ) DIV - COALESCE ( + - 90, - 44 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3752
SELECT ALL + COUNT ( * ) / - COALESCE ( + - 90, - 44 ) AS col2
----
0

query I rowsort
SELECT + + 84
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3754
SELECT ALL + 36 * CAST( NULL AS SIGNED ) + + 52 + + 43 * + 6 / + - 95 AS col1, - 97
----
NULL
-97

skipif mysql # not compatible
query II rowsort label-3754
SELECT ALL + 36 * CAST ( NULL AS INTEGER ) + + 52 + + 43 * + 6 / + - 95 AS col1, - 97
----
NULL
-97

query II rowsort
SELECT ALL + 59 AS col0, - 17
----
59
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-3756
SELECT ALL 11 * + CASE - 72 WHEN + + 28 THEN + 30 END + - ( + - 37 ) + - 13 * COUNT( * ) + 90 * + 58 + + 90 * - 16 AS col1, - 86
----
NULL
-86

skipif mysql # not compatible
query II rowsort label-3756
SELECT ALL 11 * + CASE - 72 WHEN + + 28 THEN + 30 END + - ( + - 37 ) + - 13 * COUNT ( * ) + 90 * + 58 + + 90 * - 16 AS col1, - 86
----
NULL
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-3757
SELECT ALL 14 * - 85 * + COUNT( * )
----
-1190

skipif mysql # not compatible
query I rowsort label-3757
SELECT ALL 14 * - 85 * + COUNT ( * )
----
-1190

query I rowsort
SELECT DISTINCT 70 * - 15 + + 28 + + + 17
----
-1005

query II rowsort
SELECT + 95, 22 AS col2
----
95
22

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

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

query I rowsort
SELECT + ( + 92 ) AS col0
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-3762
SELECT + + 98 * + COUNT( + 87 ), 33 + - - 58 + + - 9 + + 82 - 42 * + ( 61 ) col0
----
98
-2398

skipif mysql # not compatible
query II rowsort label-3762
SELECT + + 98 * + COUNT ( + 87 ), 33 + - - 58 + + - 9 + + 82 - 42 * + ( 61 ) col0
----
98
-2398

onlyif mysql # aggregate syntax: 
query I rowsort label-3763
SELECT - + 93 * + 78 + - + MAX( ( 4 ) )
----
-7258

skipif mysql # not compatible
query I rowsort label-3763
SELECT - + 93 * + 78 + - + MAX ( ( 4 ) )
----
-7258

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3764
SELECT ALL + 21 * + COUNT( * ) + + + COUNT( - 42 ), CAST( NULL AS SIGNED ) * - CAST( NULLIF ( - - 5, 54 ) AS SIGNED ) AS col2
----
22
NULL

skipif mysql # not compatible
query II rowsort label-3764
SELECT ALL + 21 * + COUNT ( * ) + + + COUNT ( - 42 ), CAST ( NULL AS INTEGER ) * - CAST ( NULLIF ( - - 5, 54 ) AS INTEGER ) AS col2
----
22
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3765
SELECT + ( - MAX( 54 ) ) AS col0, + 15 AS col2
----
-54
15

skipif mysql # not compatible
query II rowsort label-3765
SELECT + ( - MAX ( 54 ) ) AS col0, + 15 AS col2
----
-54
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3766
SELECT + COALESCE ( + CASE - - 43 WHEN - MAX( DISTINCT 28 ) * 0 - + 32 THEN NULL ELSE + 32 DIV 82 DIV - ( - COALESCE ( + - 65, - 26 ) ) + - - COUNT( * ) END, + 17 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3766
SELECT + COALESCE ( + CASE - - 43 WHEN - MAX ( DISTINCT 28 ) * 0 - + 32 THEN NULL ELSE + 32 / 82 / - ( - COALESCE ( + - 65, - 26 ) ) + - - COUNT ( * ) END, + 17 ) AS col1
----
1

query II rowsort
SELECT - 62 AS col0, - ( 33 ) col2
----
-62
-33

query I rowsort
SELECT + - ( - 34 )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3769
SELECT ALL + COUNT( * ) - - + ( 83 ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-3769
SELECT ALL + COUNT ( * ) - - + ( 83 ) AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3770
SELECT ALL NULLIF ( - COUNT( * ), COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3770
SELECT ALL NULLIF ( - COUNT ( * ), COUNT ( * ) )
----
-1

query I rowsort
SELECT - ( - 26 ) + + 37 AS col0
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3772
SELECT - 14 - + CAST( + 56 AS SIGNED ) * + 78 + - COUNT( * ) * + 44 AS col2
----
-4426

skipif mysql # not compatible
query I rowsort label-3772
SELECT - 14 - + CAST ( + 56 AS INTEGER ) * + 78 + - COUNT ( * ) * + 44 AS col2
----
-4426

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3773
SELECT ALL ( + 83 ) col2, - 77 * - CAST( NULL AS DECIMAL ) + + 80 col2
----
83
NULL

skipif mysql # not compatible
query II rowsort label-3773
SELECT ALL ( + 83 ) col2, - 77 * - CAST ( NULL AS REAL ) + + 80 col2
----
83
NULL

query I rowsort
SELECT + 31 * 1 AS col2
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-3775
SELECT + 90 - + 10 DIV - 32 AS col1
----
90

skipif mysql # not compatible
query I rowsort label-3775
SELECT + 90 - + 10 / - 32 AS col1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3776
SELECT ALL ( MAX( + - 34 ) )
----
-34

skipif mysql # not compatible
query I rowsort label-3776
SELECT ALL ( MAX ( + - 34 ) )
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3777
SELECT ALL ( ( - SUM( - - 50 ) ) ) DIV + - 93 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3777
SELECT ALL ( ( - SUM ( - - 50 ) ) ) / + - 93 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3778
SELECT - 54 + COUNT( * ) + 42 * + 48 AS col1
----
1963

skipif mysql # not compatible
query I rowsort label-3778
SELECT - 54 + COUNT ( * ) + 42 * + 48 AS col1
----
1963

query I rowsort
SELECT DISTINCT ( 8 ) col0
----
8

query I rowsort
SELECT ALL ( - + 83 ) AS col1
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3781
SELECT DISTINCT CAST( ( - + 83 ) AS SIGNED )
----
-83

skipif mysql # not compatible
query I rowsort label-3781
SELECT DISTINCT CAST ( ( - + 83 ) AS INTEGER )
----
-83

query I rowsort
SELECT + 45 * - + 82 AS col0
----
-3690

onlyif mysql # aggregate syntax: 
query I rowsort label-3783
SELECT DISTINCT - 76 + - 74 + + COUNT( * )
----
-149

skipif mysql # not compatible
query I rowsort label-3783
SELECT DISTINCT - 76 + - 74 + + COUNT ( * )
----
-149

query I rowsort
SELECT + - 38 + 21 + ( 66 ) + + + 98
----
147

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3785
SELECT DISTINCT - - COUNT( * ) DIV 9 + - 91 + 14
----
-77

skipif mysql # not compatible
query I rowsort label-3785
SELECT DISTINCT - - COUNT ( * ) / 9 + - 91 + 14
----
-77

query I rowsort
SELECT ALL + - 85 AS col1
----
-85

query I rowsort
SELECT - 63 * + 7 + - - 62
----
-379

query I rowsort
SELECT ALL + + 68 col1
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3789
SELECT + - SUM( - 8 ) DIV - 23
----
0

skipif mysql # not compatible
query I rowsort label-3789
SELECT + - SUM ( - 8 ) / - 23
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3790
SELECT - MAX( ALL - 59 ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-3790
SELECT - MAX ( ALL - 59 ) AS col0
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3791
SELECT + ( 84 ) DIV - - 61 - + + COUNT( * ) * - + 79 AS col1
----
80

skipif mysql # not compatible
query I rowsort label-3791
SELECT + ( 84 ) / - - 61 - + + COUNT ( * ) * - + 79 AS col1
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3792
SELECT ALL 67 * + ( + + ( 12 ) ) * - MIN( + CAST( + 23 AS SIGNED ) ) + - COUNT( * ) AS col0
----
-18493

skipif mysql # not compatible
query I rowsort label-3792
SELECT ALL 67 * + ( + + ( 12 ) ) * - MIN ( + CAST ( + 23 AS INTEGER ) ) + - COUNT ( * ) AS col0
----
-18493

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3793
SELECT ALL + + COALESCE ( 27, - 62 + + 37 + - - 54 + - + 66 * + - 96 - + 23 DIV - - 78 DIV + 86 + - 50 + + - COUNT( * ) DIV - 0 )
----
27

skipif mysql # not compatible
query I rowsort label-3793
SELECT ALL + + COALESCE ( 27, - 62 + + 37 + - - 54 + - + 66 * + - 96 - + 23 / - - 78 / + 86 + - 50 + + - COUNT ( * ) / - 0 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3794
SELECT DISTINCT + COUNT( * ) * 27 * - 5 + - 54
----
-189

skipif mysql # not compatible
query I rowsort label-3794
SELECT DISTINCT + COUNT ( * ) * 27 * - 5 + - 54
----
-189

onlyif mysql # aggregate syntax: 
query I rowsort label-3795
SELECT 36 * - 49 + + + CASE 21 WHEN - 64 THEN - COUNT( * ) + - 43 * + 33 + - + 69 WHEN + + 20 THEN NULL WHEN 94 THEN + ( + 60 ) + - 28 + - 35 ELSE 61 * + + COUNT( * ) * 74 END
----
2750

skipif mysql # not compatible
query I rowsort label-3795
SELECT 36 * - 49 + + + CASE 21 WHEN - 64 THEN - COUNT ( * ) + - 43 * + 33 + - + 69 WHEN + + 20 THEN NULL WHEN 94 THEN + ( + 60 ) + - 28 + - 35 ELSE 61 * + + COUNT ( * ) * 74 END
----
2750

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3796
SELECT + 32 * - + 42 AS col2, + CAST( NULL AS SIGNED ) AS col0
----
-1344
NULL

skipif mysql # not compatible
query II rowsort label-3796
SELECT + 32 * - + 42 AS col2, + CAST ( NULL AS INTEGER ) AS col0
----
-1344
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3797
SELECT ALL 71 * + - 82 + CAST( NULL AS SIGNED ) * + - 15
----
NULL

skipif mysql # not compatible
query I rowsort label-3797
SELECT ALL 71 * + - 82 + CAST ( NULL AS INTEGER ) * + - 15
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3798
SELECT + + COUNT( DISTINCT + 33 ) + + 25
----
26

skipif mysql # not compatible
query I rowsort label-3798
SELECT + + COUNT ( DISTINCT + 33 ) + + 25
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3799
SELECT ALL + - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3799
SELECT ALL + - COUNT ( * ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3800
SELECT ALL - COALESCE ( + MIN( ALL - 7 ), + + 88 ) * - 33 + - COUNT( * )
----
-232

skipif mysql # not compatible
query I rowsort label-3800
SELECT ALL - COALESCE ( + MIN ( ALL - 7 ), + + 88 ) * - 33 + - COUNT ( * )
----
-232

onlyif mysql # aggregate syntax: 
query I rowsort label-3801
SELECT DISTINCT 91 * - + COUNT( * )
----
-91

skipif mysql # not compatible
query I rowsort label-3801
SELECT DISTINCT 91 * - + COUNT ( * )
----
-91

query I rowsort
SELECT + ( + + COALESCE ( - + 21, + 5, - 22 ) ) AS col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-3803
SELECT - COUNT( * ) * - - 83 + - - 41 AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-3803
SELECT - COUNT ( * ) * - - 83 + - - 41 AS col2
----
-42

query I rowsort
SELECT - 14 + + 86 AS col1
----
72

query I rowsort
SELECT ALL COALESCE ( - + 28, - 46 + + 60 )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-3806
SELECT NULLIF ( 87, + 70 + - ( 49 ) * + + COUNT( * ) )
----
87

skipif mysql # not compatible
query I rowsort label-3806
SELECT NULLIF ( 87, + 70 + - ( 49 ) * + + COUNT ( * ) )
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3807
SELECT DISTINCT COALESCE ( - + 83, + CAST( + - 38 AS SIGNED ) + 64, + - ( 73 ) ) AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-3807
SELECT DISTINCT COALESCE ( - + 83, + CAST ( + - 38 AS INTEGER ) + 64, + - ( 73 ) ) AS col1
----
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3808
SELECT + 2 DIV - 39 * - 48 * + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-3808
SELECT + 2 / - 39 * - 48 * + COUNT ( * )
----
0

query I rowsort
SELECT ALL ( 58 ) AS col2
----
58

query I rowsort
SELECT DISTINCT + 0 * + 53
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3811
SELECT ALL + ( - 30 ) * - - 22 + - 20 + SUM( - 50 ) AS col0
----
-730

skipif mysql # not compatible
query I rowsort label-3811
SELECT ALL + ( - 30 ) * - - 22 + - 20 + SUM ( - 50 ) AS col0
----
-730

onlyif mysql # aggregate syntax: 
query I rowsort label-3812
SELECT - 72 * - COALESCE ( - 98, 46, + + COALESCE ( + ( - 39 ), + SUM( + - 92 ) ) + + ( 10 ) * + 25 + 91 ) * + COUNT( * ) - - + CASE - 50 WHEN + - NULLIF ( + 58, + 10 ) * + 76 + + 51 + MIN( - 20 ) * SUM( DISTINCT - 82 ) / - - 31 * - - 94 THEN - 46 WHEN ( + + CASE + ( + - 20 ) WHEN + 40 THEN + 57 WHEN 43 THEN - 79 END ) THEN NULL END * + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3812
SELECT - 72 * - COALESCE ( - 98, 46, + + COALESCE ( + ( - 39 ), + SUM ( + - 92 ) ) + + ( 10 ) * + 25 + 91 ) * + COUNT ( * ) - - + CASE - 50 WHEN + - NULLIF ( + 58, + 10 ) * + 76 + + 51 + MIN ( - 20 ) * SUM ( DISTINCT - 82 ) / - - 31 * - - 94 THEN - 46 WHEN ( + + CASE + ( + - 20 ) WHEN + 40 THEN + 57 WHEN 43 THEN - 79 END ) THEN NULL END * + - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3813
SELECT ALL + NULLIF ( 54, + COUNT( * ) DIV - - 7 + + MAX( ALL - - CAST( - - 64 AS SIGNED ) ) * - 41 * + COUNT( * ) ) + - - CAST( NULL AS SIGNED ) col2, - 84 * + 15 + + 45 DIV + 34
----
NULL
-1259

skipif mysql # not compatible
query II rowsort label-3813
SELECT ALL + NULLIF ( 54, + COUNT ( * ) / - - 7 + + MAX ( ALL - - CAST ( - - 64 AS INTEGER ) ) * - 41 * + COUNT ( * ) ) + - - CAST ( NULL AS INTEGER ) col2, - 84 * + 15 + + 45 / + 34
----
NULL
-1259

query I rowsort
SELECT ALL COALESCE ( - + 94, - 65 ) AS col2
----
-94

query I rowsort
SELECT + 42 - 19 AS col0
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-3816
SELECT 24 DIV - 86
----
0

skipif mysql # not compatible
query I rowsort label-3816
SELECT 24 / - 86
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3817
SELECT MIN( - 73 ) + - + 33 AS col0
----
-106

skipif mysql # not compatible
query I rowsort label-3817
SELECT MIN ( - 73 ) + - + 33 AS col0
----
-106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3818
SELECT ALL - 47 + + + CAST( + 68 AS SIGNED )
----
21

skipif mysql # not compatible
query I rowsort label-3818
SELECT ALL - 47 + + + CAST ( + 68 AS INTEGER )
----
21

query I rowsort
SELECT DISTINCT + 36 * - - 62
----
2232

query I rowsort
SELECT ALL - ( - 43 )
----
43

query I rowsort
SELECT 98 * 52 * - 93 AS col0
----
-473928

query I rowsort
SELECT + 13 - + ( - CASE + 0 WHEN - ( + NULLIF ( + + 23, - 75 ) ) + - 7 / - 10 THEN - 74 ELSE NULL END ) + + 92 + - + 8 + + 99 AS col1
----
NULL

query I rowsort
SELECT ALL - COALESCE ( + 89, - 79 ) AS col0
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3824
SELECT + CAST( - 63 AS SIGNED ) AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-3824
SELECT + CAST ( - 63 AS INTEGER ) AS col2
----
-63

query I rowsort
SELECT ALL - + 28 + + 1 * + 34
----
6

query I rowsort
SELECT 78 * - - 53 col0
----
4134

onlyif mysql # aggregate syntax: 
query II rowsort label-3827
SELECT + 23 * - 63 + 99 AS col2, + COUNT( * ) AS col0
----
-1350
1

skipif mysql # not compatible
query II rowsort label-3827
SELECT + 23 * - 63 + 99 AS col2, + COUNT ( * ) AS col0
----
-1350
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3828
SELECT MAX( ALL - CAST( NULL AS SIGNED ) ) / 28 + - - 86 + + - MIN( DISTINCT - 10 ) + + 37 * + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3828
SELECT MAX ( ALL - CAST ( NULL AS INTEGER ) ) / 28 + - - 86 + + - MIN ( DISTINCT - 10 ) + + 37 * + - COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3829
SELECT - 63 - + + ( 51 ) DIV + 55
----
-63

skipif mysql # not compatible
query I rowsort label-3829
SELECT - 63 - + + ( 51 ) / + 55
----
-63

query I rowsort
SELECT - 72 + + - 47 * + 39
----
-1905

query I rowsort
SELECT ALL + 71 - + 10
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3832
SELECT NULLIF ( ( + 82 ), COUNT( * ) ) * 71 + + 56
----
5878

skipif mysql # not compatible
query I rowsort label-3832
SELECT NULLIF ( ( + 82 ), COUNT ( * ) ) * 71 + + 56
----
5878

query I rowsort
SELECT ALL - + 55 col0
----
-55

query I rowsort
SELECT + - 47
----
-47

query I rowsort
SELECT ALL + - 73 * + 93 col0
----
-6789

query I rowsort
SELECT + + ( 63 ) col1
----
63

query I rowsort
SELECT ALL - 80 AS col0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3838
SELECT COUNT( * ) * - COUNT( * ) - 26
----
-27

skipif mysql # not compatible
query I rowsort label-3838
SELECT COUNT ( * ) * - COUNT ( * ) - 26
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3839
SELECT CAST( NULL AS SIGNED ) * + 64 * + 69 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3839
SELECT CAST ( NULL AS INTEGER ) * + 64 * + 69 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3840
SELECT 85 * - COUNT( * ) + - + 94 AS col1
----
-179

skipif mysql # not compatible
query I rowsort label-3840
SELECT 85 * - COUNT ( * ) + - + 94 AS col1
----
-179

onlyif mysql # aggregate syntax: 
query I rowsort label-3841
SELECT MAX( - 88 ) * 37 AS col0
----
-3256

skipif mysql # not compatible
query I rowsort label-3841
SELECT MAX ( - 88 ) * 37 AS col0
----
-3256

query I rowsort
SELECT 38 * - 81
----
-3078

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3843
SELECT ALL 8 DIV + COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-3843
SELECT ALL 8 / + COUNT ( * )
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3844
SELECT ALL CASE + 17 WHEN 21 + - CAST( + 19 AS SIGNED ) + 50 THEN + 96 ELSE NULL END * - + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-3844
SELECT ALL CASE + 17 WHEN 21 + - CAST ( + 19 AS INTEGER ) + 50 THEN + 96 ELSE NULL END * - + 47
----
NULL

query I rowsort
SELECT ALL ( - 83 ) * - 13 AS col1
----
1079

query I rowsort
SELECT DISTINCT NULLIF ( - 65, 9 ) + + - 52 AS col1
----
-117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3847
SELECT ALL 24 AS col0, - CASE + 37 WHEN + 40 * - COALESCE ( - - 65, + 12 / + SUM( ALL + - 14 ), - CAST( - 81 AS SIGNED ) ) THEN - 92 WHEN + 69 THEN NULL ELSE NULL END + + + 31 AS col2
----
24
NULL

skipif mysql # not compatible
query II rowsort label-3847
SELECT ALL 24 AS col0, - CASE + 37 WHEN + 40 * - COALESCE ( - - 65, + 12 / + SUM ( ALL + - 14 ), - CAST ( - 81 AS INTEGER ) ) THEN - 92 WHEN + 69 THEN NULL ELSE NULL END + + + 31 AS col2
----
24
NULL

query I rowsort
SELECT ( + 41 ) * - + 99
----
-4059

onlyif mysql # aggregate syntax: 
query I rowsort label-3849
SELECT 17 + 53 + COALESCE ( + 65, COUNT( * ), + + COUNT( * ) ) AS col2
----
135

skipif mysql # not compatible
query I rowsort label-3849
SELECT 17 + 53 + COALESCE ( + 65, COUNT ( * ), + + COUNT ( * ) ) AS col2
----
135

query I rowsort
SELECT 53 - - 25 col1
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-3851
SELECT ALL 35 AS col1, - 90 + + COUNT( - 94 ) AS col0
----
35
-89

skipif mysql # not compatible
query II rowsort label-3851
SELECT ALL 35 AS col1, - 90 + + COUNT ( - 94 ) AS col0
----
35
-89

query I rowsort
SELECT ( 6 ) + - 5 AS col0
----
1

query I rowsort
SELECT 62 - 74
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3854
SELECT 69 * - CAST( NULL AS SIGNED ) * - ( 9 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3854
SELECT 69 * - CAST ( NULL AS INTEGER ) * - ( 9 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3855
SELECT DISTINCT + 78 + + 27 - 69 + + CAST( NULL AS DECIMAL ) + - 75 * CAST( NULL AS SIGNED ) * 21
----
NULL

skipif mysql # not compatible
query I rowsort label-3855
SELECT DISTINCT + 78 + + 27 - 69 + + CAST ( NULL AS REAL ) + - 75 * CAST ( NULL AS INTEGER ) * 21
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3856
SELECT DISTINCT CAST( NULL AS SIGNED ) + COUNT( * ) + COALESCE ( + - 90, 32, + 44 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3856
SELECT DISTINCT CAST ( NULL AS INTEGER ) + COUNT ( * ) + COALESCE ( + - 90, 32, + 44 ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3857
SELECT ALL + 43 + - 63, - CASE COALESCE ( + 96, 98, + + COUNT( * ) + CAST( NULL AS SIGNED ) ) WHEN - 39 * COUNT( * ) THEN - 53 / + SUM( 60 ) / - - 58 + + 93 + + + 83 + + + COUNT( * ) / 72 ELSE - 87 * - CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) + 3 END AS col2
----
-20
NULL

skipif mysql # not compatible
query II rowsort label-3857
SELECT ALL + 43 + - 63, - CASE COALESCE ( + 96, 98, + + COUNT ( * ) + CAST ( NULL AS INTEGER ) ) WHEN - 39 * COUNT ( * ) THEN - 53 / + SUM ( 60 ) / - - 58 + + 93 + + + 83 + + + COUNT ( * ) / 72 ELSE - 87 * - CAST ( CAST ( NULL AS INTEGER ) AS REAL ) + 3 END AS col2
----
-20
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3858
SELECT COUNT( * ) + 28 AS col1, MAX( 39 )
----
29
39

skipif mysql # not compatible
query II rowsort label-3858
SELECT COUNT ( * ) + 28 AS col1, MAX ( 39 )
----
29
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3859
SELECT ALL - - 92 * + + COUNT( * ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-3859
SELECT ALL - - 92 * + + COUNT ( * ) AS col0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3860
SELECT DISTINCT 63 + + + COUNT( * ) + + 55
----
119

skipif mysql # not compatible
query I rowsort label-3860
SELECT DISTINCT 63 + + + COUNT ( * ) + + 55
----
119

query I rowsort
SELECT ALL + ( + 97 ) + - + 24 + + 50 AS col0
----
123

onlyif mysql # aggregate syntax: 
query II rowsort label-3862
SELECT - 13 AS col0, - COUNT( * ) + - 85
----
-13
-86

skipif mysql # not compatible
query II rowsort label-3862
SELECT - 13 AS col0, - COUNT ( * ) + - 85
----
-13
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-3863
SELECT - COUNT( * ) + + 8
----
7

skipif mysql # not compatible
query I rowsort label-3863
SELECT - COUNT ( * ) + + 8
----
7

query I rowsort
SELECT DISTINCT 65 * + ( - ( + 11 ) ) AS col1
----
-715

onlyif mysql # aggregate syntax: 
query I rowsort label-3865
SELECT ALL + 31 * + MIN( ALL + + 47 )
----
1457

skipif mysql # not compatible
query I rowsort label-3865
SELECT ALL + 31 * + MIN ( ALL + + 47 )
----
1457

query I rowsort
SELECT 16 + - 12
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-3867
SELECT ALL - 50 DIV 51 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3867
SELECT ALL - 50 / 51 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3868
SELECT - 29 DIV - + 58 + + 91 * + 62 + - - 83 AS col0
----
5725

skipif mysql # not compatible
query I rowsort label-3868
SELECT - 29 / - + 58 + + 91 * + 62 + - - 83 AS col0
----
5725

query I rowsort
SELECT 95 + + 34 * - 91
----
-2999

query I rowsort
SELECT + 45 * - 36 * - 65 AS col0
----
105300

query I rowsort
SELECT 83 + 21
----
104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3872
SELECT 17 DIV + - NULLIF ( + COUNT( * ), + 87 ) - - 96 + + 43 AS col1
----
122

skipif mysql # not compatible
query I rowsort label-3872
SELECT 17 / + - NULLIF ( + COUNT ( * ), + 87 ) - - 96 + + 43 AS col1
----
122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3873
SELECT COALESCE ( 50, COUNT( * ) DIV - CASE CAST( NULL AS SIGNED ) WHEN - - 28 THEN COUNT( * ) ELSE NULL END, 31 ) * - 39 AS col1
----
-1950

skipif mysql # not compatible
query I rowsort label-3873
SELECT COALESCE ( 50, COUNT ( * ) / - CASE CAST ( NULL AS INTEGER ) WHEN - - 28 THEN COUNT ( * ) ELSE NULL END, 31 ) * - 39 AS col1
----
-1950

query I rowsort
SELECT 93 * 43
----
3999

onlyif mysql # aggregate syntax: 
query I rowsort label-3875
SELECT 28 + - - COUNT( - 64 ) col0
----
29

skipif mysql # not compatible
query I rowsort label-3875
SELECT 28 + - - COUNT ( - 64 ) col0
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3876
SELECT - CAST( - + 11 AS SIGNED ) * - CAST( NULL AS SIGNED ) + - - 20 * - + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-3876
SELECT - CAST ( - + 11 AS INTEGER ) * - CAST ( NULL AS INTEGER ) + - - 20 * - + 92
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3877
SELECT - 97 * + - MAX( DISTINCT - 9 ) + + 79 AS col1
----
-794

skipif mysql # not compatible
query I rowsort label-3877
SELECT - 97 * + - MAX ( DISTINCT - 9 ) + + 79 AS col1
----
-794

query I rowsort
SELECT 12 * + + 33 col0
----
396

onlyif mysql # aggregate syntax: 
query I rowsort label-3879
SELECT ALL - COUNT( * ) * - - 96
----
-96

skipif mysql # not compatible
query I rowsort label-3879
SELECT ALL - COUNT ( * ) * - - 96
----
-96

query I rowsort
SELECT 18 + - ( 76 ) * 65 AS col2
----
-4922

onlyif mysql # aggregate syntax: 
query I rowsort label-3881
SELECT ALL ( + COUNT( * ) ) + - - 31 * + 74
----
2295

skipif mysql # not compatible
query I rowsort label-3881
SELECT ALL ( + COUNT ( * ) ) + - - 31 * + 74
----
2295

onlyif mysql # aggregate syntax: 
query II rowsort label-3882
SELECT ALL + MAX( - - 95 ) + 81 AS col0, 4 AS col0
----
176
4

skipif mysql # not compatible
query II rowsort label-3882
SELECT ALL + MAX ( - - 95 ) + 81 AS col0, 4 AS col0
----
176
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3883
SELECT SUM( + 26 )
----
26

skipif mysql # not compatible
query I rowsort label-3883
SELECT SUM ( + 26 )
----
26

query I rowsort
SELECT 27 * - 5 * + 79 + - 50 AS col0
----
-10715

query I rowsort
SELECT - 43 * - 77
----
3311

query I rowsort
SELECT ALL + 79 col2
----
79

query I rowsort
SELECT 37 AS col2
----
37

query I rowsort
SELECT + 59 * + 57 + + - 30 AS col0
----
3333

query I rowsort
SELECT ALL + 92 AS col1
----
92

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-3890
SELECT - 95 DIV 65 AS col2, 29 * - NULLIF ( 49, - 41 DIV + - COALESCE ( - + CAST( + 35 AS DECIMAL ), 37 * + - 24 + + + 48 - 85, - - 93 ) ) + 35 AS col1
----
-1
-1386

skipif mysql # not compatible
query II rowsort label-3890
SELECT - 95 / 65 AS col2, 29 * - NULLIF ( 49, - 41 / + - COALESCE ( - + CAST ( + 35 AS REAL ), 37 * + - 24 + + + 48 - 85, - - 93 ) ) + 35 AS col1
----
-1
-1386

query I rowsort
SELECT + 1 + - 5 * - 67
----
336

onlyif mysql # aggregate syntax: 
query I rowsort label-3892
SELECT - MAX( DISTINCT - - 20 ) AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-3892
SELECT - MAX ( DISTINCT - - 20 ) AS col2
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-3893
SELECT - MIN( DISTINCT - 88 ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-3893
SELECT - MIN ( DISTINCT - 88 ) AS col1
----
88

query I rowsort
SELECT ALL CASE WHEN NOT ( NULL ) IS NOT NULL THEN NULL WHEN - 24 IS NOT NULL THEN NULL ELSE - 43 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3895
SELECT + 65 * - COUNT( * ) * COUNT( * ) * + 51 AS col2
----
-3315

skipif mysql # not compatible
query I rowsort label-3895
SELECT + 65 * - COUNT ( * ) * COUNT ( * ) * + 51 AS col2
----
-3315

query I rowsort
SELECT ALL 8 * + 95
----
760

onlyif mysql # aggregate syntax: 
query I rowsort label-3897
SELECT DISTINCT - COUNT( * ) + - + 34 + - + 65 * - 38 AS col2
----
2435

skipif mysql # not compatible
query I rowsort label-3897
SELECT DISTINCT - COUNT ( * ) + - + 34 + - + 65 * - 38 AS col2
----
2435

query I rowsort
SELECT + 79 col1
----
79

query I rowsort
SELECT - ( - 48 ) AS col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3900
SELECT + 48 - - COUNT( + 3 ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-3900
SELECT + 48 - - COUNT ( + 3 ) AS col2
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3901
SELECT - - 9 + + 56 * + 45 + + CAST( - NULLIF ( - COUNT( * ), + 92 ) AS SIGNED ), + 53 AS col0
----
2530
53

skipif mysql # not compatible
query II rowsort label-3901
SELECT - - 9 + + 56 * + 45 + + CAST ( - NULLIF ( - COUNT ( * ), + 92 ) AS INTEGER ), + 53 AS col0
----
2530
53

onlyif mysql # aggregate syntax: 
query II rowsort label-3902
SELECT - COUNT( * ) + + + ( + + 79 ) AS col2, + 51 + + + 82 * - - 20
----
78
1691

skipif mysql # not compatible
query II rowsort label-3902
SELECT - COUNT ( * ) + + + ( + + 79 ) AS col2, + 51 + + + 82 * - - 20
----
78
1691

query I rowsort
SELECT ALL + 71 - + 99 * + - 36
----
3635

query I rowsort
SELECT ALL + 97 AS col1
----
97

query I rowsort
SELECT - + 84 AS col0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-3906
SELECT DISTINCT - - 22 * - 11 / + ( + 80 ) * - ( 11 ) + - 98 * CASE - 3 WHEN + + 45 * 19 THEN NULL WHEN + - 66 + - - 54 * COUNT( * ) THEN + - COUNT( * ) END * + 11 - - 46 - - 61 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3906
SELECT DISTINCT - - 22 * - 11 / + ( + 80 ) * - ( 11 ) + - 98 * CASE - 3 WHEN + + 45 * 19 THEN NULL WHEN + - 66 + - - 54 * COUNT ( * ) THEN + - COUNT ( * ) END * + 11 - - 46 - - 61 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3907
SELECT - + SUM( DISTINCT + ( CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3907
SELECT - + SUM ( DISTINCT + ( CAST ( NULL AS INTEGER ) ) )
----
NULL

query I rowsort
SELECT ALL + + ( + 33 ) AS col2
----
33

query I rowsort
SELECT - - 39 * 54 + 39 + - + 21 AS col1
----
2124

query I rowsort
SELECT + + COALESCE ( + 60, + + 9 ) * + ( - 88 ) * - 80
----
422400

onlyif mysql # DIV for integer division: 
query I rowsort label-3911
SELECT + 89 DIV 12 + 24
----
31

skipif mysql # not compatible
query I rowsort label-3911
SELECT + 89 / 12 + 24
----
31

query I rowsort
SELECT ALL - 85 * + 59 AS col0
----
-5015

query I rowsort
SELECT ( - - 46 ) AS col1
----
46

query I rowsort
SELECT ( - 74 )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-3915
SELECT ALL ( + 73 ) * - 36 + - 83 + - COUNT( * ) AS col1
----
-2712

skipif mysql # not compatible
query I rowsort label-3915
SELECT ALL ( + 73 ) * - 36 + - 83 + - COUNT ( * ) AS col1
----
-2712

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3916
SELECT DISTINCT + CAST( NULL AS SIGNED ) / + COUNT( * ) / - 69 / + 9 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3916
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + COUNT ( * ) / - 69 / + 9 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3917
SELECT ALL - 33 * + - 86 + COUNT( * ) - + 73 - + 35 * + + COUNT( DISTINCT - - 26 ) * + 62 + - 54 * SUM( - COALESCE ( + + 35, + - 85 ) ) - - CAST( + 81 AS SIGNED ) * - - 38
----
5564

skipif mysql # not compatible
query I rowsort label-3917
SELECT ALL - 33 * + - 86 + COUNT ( * ) - + 73 - + 35 * + + COUNT ( DISTINCT - - 26 ) * + 62 + - 54 * SUM ( - COALESCE ( + + 35, + - 85 ) ) - - CAST ( + 81 AS INTEGER ) * - - 38
----
5564

onlyif mysql # aggregate syntax: 
query I rowsort label-3918
SELECT DISTINCT + MAX( ALL 34 ) col1
----
34

skipif mysql # not compatible
query I rowsort label-3918
SELECT DISTINCT + MAX ( ALL 34 ) col1
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-3919
SELECT COALESCE ( + 69, - 58 ) AS col1, 9 + - COUNT( * ) col0
----
69
8

skipif mysql # not compatible
query II rowsort label-3919
SELECT COALESCE ( + 69, - 58 ) AS col1, 9 + - COUNT ( * ) col0
----
69
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3920
SELECT - 68 * + COALESCE ( ( 79 ), - 73, 89 ) - SUM( - + 5 )
----
-5367

skipif mysql # not compatible
query I rowsort label-3920
SELECT - 68 * + COALESCE ( ( 79 ), - 73, 89 ) - SUM ( - + 5 )
----
-5367

onlyif mysql # aggregate syntax: 
query I rowsort label-3921
SELECT COALESCE ( - 52, + ( - + COUNT( + 96 ) ) + + 60 + - 63 - + 45 * - + 92 * - COALESCE ( + + 82, + 27 ) * + 53 - - 80 ) col1
----
-52

skipif mysql # not compatible
query I rowsort label-3921
SELECT COALESCE ( - 52, + ( - + COUNT ( + 96 ) ) + + 60 + - 63 - + 45 * - + 92 * - COALESCE ( + + 82, + 27 ) * + 53 - - 80 ) col1
----
-52

query II rowsort
SELECT NULLIF ( - 26, - 30 * - 19 ) AS col1, 60
----
-26
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3923
SELECT + SUM( - 88 )
----
-88

skipif mysql # not compatible
query I rowsort label-3923
SELECT + SUM ( - 88 )
----
-88

query I rowsort
SELECT ALL - 40 * + 62 + - + 16
----
-2496

onlyif mysql # aggregate syntax: 
query I rowsort label-3925
SELECT NULLIF ( - - 98, - 17 + + - COUNT( * ) )
----
98

skipif mysql # not compatible
query I rowsort label-3925
SELECT NULLIF ( - - 98, - 17 + + - COUNT ( * ) )
----
98

query I rowsort
SELECT - 89 - + 66 AS col2
----
-155

query I rowsort
SELECT ALL - 51 * 67 * - 25 AS col2
----
85425

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3928
SELECT ALL + 23 AS col2, CAST( NULL AS SIGNED )
----
23
NULL

skipif mysql # not compatible
query II rowsort label-3928
SELECT ALL + 23 AS col2, CAST ( NULL AS INTEGER )
----
23
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3929
SELECT + MIN( DISTINCT 44 )
----
44

skipif mysql # not compatible
query I rowsort label-3929
SELECT + MIN ( DISTINCT 44 )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3930
SELECT ALL - COUNT( * ) * - 7 - + - 15 + - 74
----
-52

skipif mysql # not compatible
query I rowsort label-3930
SELECT ALL - COUNT ( * ) * - 7 - + - 15 + - 74
----
-52

query I rowsort
SELECT DISTINCT ( + 22 ) AS col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3932
SELECT + MIN( DISTINCT + + 75 ) + 84 AS col2
----
159

skipif mysql # not compatible
query I rowsort label-3932
SELECT + MIN ( DISTINCT + + 75 ) + 84 AS col2
----
159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3933
SELECT - + 35 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3933
SELECT - + 35 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3934
SELECT ALL CAST( 98 AS SIGNED )
----
98

skipif mysql # not compatible
query I rowsort label-3934
SELECT ALL CAST ( 98 AS INTEGER )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3935
SELECT + - COUNT( * ) * + 22 + - NULLIF ( + 55, + 27 + - - 88 * 33 ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-3935
SELECT + - COUNT ( * ) * + 22 + - NULLIF ( + 55, + 27 + - - 88 * 33 ) AS col2
----
-77

query I rowsort
SELECT - 42 * 33
----
-1386

query I rowsort
SELECT - + 86 + 93
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3938
SELECT + 69 DIV + - NULLIF ( - 5, COUNT( * ) * 90 )
----
13

skipif mysql # not compatible
query I rowsort label-3938
SELECT + 69 / + - NULLIF ( - 5, COUNT ( * ) * 90 )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3939
SELECT + MIN( DISTINCT - + 81 )
----
-81

skipif mysql # not compatible
query I rowsort label-3939
SELECT + MIN ( DISTINCT - + 81 )
----
-81

query I rowsort
SELECT ALL - 9 * 12
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-3941
SELECT DISTINCT COUNT( * ) * + - 39
----
-39

skipif mysql # not compatible
query I rowsort label-3941
SELECT DISTINCT COUNT ( * ) * + - 39
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-3942
SELECT ALL MAX( DISTINCT + 11 ) * + 7 AS col0
----
77

skipif mysql # not compatible
query I rowsort label-3942
SELECT ALL MAX ( DISTINCT + 11 ) * + 7 AS col0
----
77

query I rowsort
SELECT DISTINCT - 73 AS col1
----
-73

query I rowsort
SELECT - - 17 + + - 80
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3945
SELECT + - 53 * + - COUNT( - 20 ) + 68 + + ( + 23 ) DIV + NULLIF ( 30, - - 69 - 47 - + + 64 )
----
121

skipif mysql # not compatible
query I rowsort label-3945
SELECT + - 53 * + - COUNT ( - 20 ) + 68 + + ( + 23 ) / + NULLIF ( 30, - - 69 - 47 - + + 64 )
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-3946
SELECT ALL + COUNT( * ) * + 65
----
65

skipif mysql # not compatible
query I rowsort label-3946
SELECT ALL + COUNT ( * ) * + 65
----
65

query I rowsort
SELECT - - ( + + 30 ) AS col2
----
30

query I rowsort
SELECT ALL 10 + + 57
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-3949
SELECT + 3 + - ( + ( - + SUM( 76 ) ) ) AS col1, 96 * 72
----
79
6912

skipif mysql # not compatible
query II rowsort label-3949
SELECT + 3 + - ( + ( - + SUM ( 76 ) ) ) AS col1, 96 * 72
----
79
6912

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3950
SELECT ALL + 39 DIV 3 + - ( - COUNT( * ) ) AS col0, + COUNT( * ) + ( - - 94 ) col1
----
14
95

skipif mysql # not compatible
query II rowsort label-3950
SELECT ALL + 39 / 3 + - ( - COUNT ( * ) ) AS col0, + COUNT ( * ) + ( - - 94 ) col1
----
14
95

query I rowsort
SELECT + 79 + + 8 * 10
----
159

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3952
SELECT ALL + COUNT( DISTINCT + 48 ) DIV 53 + MAX( ALL - 56 ) * COUNT( ALL + 19 )
----
-56

skipif mysql # not compatible
query I rowsort label-3952
SELECT ALL + COUNT ( DISTINCT + 48 ) / 53 + MAX ( ALL - 56 ) * COUNT ( ALL + 19 )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-3953
SELECT - 64 * COUNT( * ) + - 35 AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-3953
SELECT - 64 * COUNT ( * ) + - 35 AS col0
----
-99

query I rowsort
SELECT DISTINCT - 69 AS col1
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3955
SELECT 54 * + 11 - + MIN( - 25 ) + 58 DIV - + 20 + 49
----
666

skipif mysql # not compatible
query I rowsort label-3955
SELECT 54 * + 11 - + MIN ( - 25 ) + 58 / - + 20 + 49
----
666

onlyif mysql # aggregate syntax: 
query I rowsort label-3956
SELECT ALL COALESCE ( + - 40, - MAX( ALL - + 54 ), - ( - 2 ) ) * 69
----
-2760

skipif mysql # not compatible
query I rowsort label-3956
SELECT ALL COALESCE ( + - 40, - MAX ( ALL - + 54 ), - ( - 2 ) ) * 69
----
-2760

onlyif mysql # aggregate syntax: 
query I rowsort label-3957
SELECT NULLIF ( + - 22, 44 ) + COUNT( * ) * - - 57
----
35

skipif mysql # not compatible
query I rowsort label-3957
SELECT NULLIF ( + - 22, 44 ) + COUNT ( * ) * - - 57
----
35

query I rowsort
SELECT 53 + + 96 col1
----
149

query I rowsort
SELECT 63 + 15 + + 80 AS col1
----
158

query I rowsort
SELECT ALL - 91 + + 25
----
-66

query I rowsort
SELECT DISTINCT + 37 * 78
----
2886

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3962
SELECT DISTINCT ( COUNT( * ) ) * CAST( - - 28 AS SIGNED ) * + 61 AS col1
----
1708

skipif mysql # not compatible
query I rowsort label-3962
SELECT DISTINCT ( COUNT ( * ) ) * CAST ( - - 28 AS INTEGER ) * + 61 AS col1
----
1708

onlyif mysql # aggregate syntax: 
query I rowsort label-3963
SELECT ALL 71 - 96 * COUNT( * )
----
-25

skipif mysql # not compatible
query I rowsort label-3963
SELECT ALL 71 - 96 * COUNT ( * )
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3964
SELECT + 63 * + + CAST( NULL AS SIGNED ) + 81
----
NULL

skipif mysql # not compatible
query I rowsort label-3964
SELECT + 63 * + + CAST ( NULL AS INTEGER ) + 81
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3965
SELECT ALL + 92 DIV + + 98 * 86
----
0

skipif mysql # not compatible
query I rowsort label-3965
SELECT ALL + 92 / + + 98 * 86
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3966
SELECT 68 * + COUNT( * ) col2
----
68

skipif mysql # not compatible
query I rowsort label-3966
SELECT 68 * + COUNT ( * ) col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3967
SELECT DISTINCT - COALESCE ( COUNT( * ), - 93 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-3967
SELECT DISTINCT - COALESCE ( COUNT ( * ), - 93 ) col1
----
-1

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

skipif mysql # not compatible
query I rowsort label-3968
SELECT COUNT ( * ) * ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3969
SELECT 78 * + SUM( ALL 57 ) AS col2
----
4446

skipif mysql # not compatible
query I rowsort label-3969
SELECT 78 * + SUM ( ALL 57 ) AS col2
----
4446

query I rowsort
SELECT ALL - ( - - ( - 30 ) )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3971
SELECT DISTINCT - COALESCE ( - - 38, + - CASE + COUNT( * ) WHEN 20 + + 47 * - 12 * 64 THEN NULL WHEN 17 THEN + 63 ELSE NULL END, 22 ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-3971
SELECT DISTINCT - COALESCE ( - - 38, + - CASE + COUNT ( * ) WHEN 20 + + 47 * - 12 * 64 THEN NULL WHEN 17 THEN + 63 ELSE NULL END, 22 ) AS col0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-3972
SELECT - COUNT( * ) * + 42
----
-42

skipif mysql # not compatible
query I rowsort label-3972
SELECT - COUNT ( * ) * + 42
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3973
SELECT ALL COUNT( ( 9 ) )
----
1

skipif mysql # not compatible
query I rowsort label-3973
SELECT ALL COUNT ( ( 9 ) )
----
1

query I rowsort
SELECT - - 91 AS col2
----
91

query I rowsort
SELECT ALL + + NULLIF ( - 70, - 22 ) * + - 41 AS col0
----
2870

query I rowsort
SELECT ALL + + 14 * 8
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-3977
SELECT + ( + 3 ) + - MAX( + 68 )
----
-65

skipif mysql # not compatible
query I rowsort label-3977
SELECT + ( + 3 ) + - MAX ( + 68 )
----
-65

query I rowsort
SELECT ALL 38 AS col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3979
SELECT CASE COUNT( * ) WHEN + COUNT( * ) * COUNT( * ) THEN - 8 * 31 - COUNT( * ) ELSE NULL END col2
----
-249

skipif mysql # not compatible
query I rowsort label-3979
SELECT CASE COUNT ( * ) WHEN + COUNT ( * ) * COUNT ( * ) THEN - 8 * 31 - COUNT ( * ) ELSE NULL END col2
----
-249

onlyif mysql # aggregate syntax: 
query I rowsort label-3980
SELECT ALL - + COUNT( * ) + - + 7 * - 52
----
363

skipif mysql # not compatible
query I rowsort label-3980
SELECT ALL - + COUNT ( * ) + - + 7 * - 52
----
363

query I rowsort
SELECT + 33 - - 84 AS col2
----
117

query II rowsort
SELECT ( + 8 ) AS col2, 9
----
8
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3983
SELECT - COUNT( DISTINCT - + NULLIF ( - - 57, + + 2 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3983
SELECT - COUNT ( DISTINCT - + NULLIF ( - - 57, + + 2 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3984
SELECT - COUNT( * ) + + ( + 62 ) col2
----
61

skipif mysql # not compatible
query I rowsort label-3984
SELECT - COUNT ( * ) + + ( + 62 ) col2
----
61

query I rowsort
SELECT 52 * 68 col1
----
3536

onlyif mysql # DIV for integer division: 
query I rowsort label-3986
SELECT ALL 99 DIV 17 DIV 21 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3986
SELECT ALL 99 / 17 / 21 AS col1
----
0

query I rowsort
SELECT - - 39 AS col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3988
SELECT ALL + COUNT( * ) + - - 40 + - 66
----
-25

skipif mysql # not compatible
query I rowsort label-3988
SELECT ALL + COUNT ( * ) + - - 40 + - 66
----
-25

query I rowsort
SELECT DISTINCT - + 59 + + 38
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-3990
SELECT - + COUNT( + 84 ) AS col2, 0 AS col1
----
-1
0

skipif mysql # not compatible
query II rowsort label-3990
SELECT - + COUNT ( + 84 ) AS col2, 0 AS col1
----
-1
0

query I rowsort
SELECT - + 16 AS col2
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-3992
SELECT ALL - COUNT( * ) + + 91 AS col0, COUNT( - - 20 ) * + 91 col0
----
90
91

skipif mysql # not compatible
query II rowsort label-3992
SELECT ALL - COUNT ( * ) + + 91 AS col0, COUNT ( - - 20 ) * + 91 col0
----
90
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3993
SELECT ALL + 68 DIV - MIN( + - 24 )
----
2

skipif mysql # not compatible
query I rowsort label-3993
SELECT ALL + 68 / - MIN ( + - 24 )
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3994
SELECT ( - - 25 ) DIV 77 AS col2, - 88 + - COUNT( * ) * + COUNT( * ) * ( + 5 ) * ( - 66 )
----
0
242

skipif mysql # not compatible
query II rowsort label-3994
SELECT ( - - 25 ) / 77 AS col2, - 88 + - COUNT ( * ) * + COUNT ( * ) * ( + 5 ) * ( - 66 )
----
0
242

onlyif mysql # aggregate syntax: 
query I rowsort label-3995
SELECT ALL COUNT( * ) + 57 + 80
----
138

skipif mysql # not compatible
query I rowsort label-3995
SELECT ALL COUNT ( * ) + 57 + 80
----
138

query I rowsort
SELECT 8 * + 31
----
248

query I rowsort
SELECT ALL 31 + 16 AS col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3998
SELECT COUNT( * ) * - 1
----
-1

skipif mysql # not compatible
query I rowsort label-3998
SELECT COUNT ( * ) * - 1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3999
SELECT + 16, 42 + - - COALESCE ( + + 40, - 96 * - 62, - COUNT( * ) ) AS col0
----
16
82

skipif mysql # not compatible
query II rowsort label-3999
SELECT + 16, 42 + - - COALESCE ( + + 40, - 96 * - 62, - COUNT ( * ) ) AS col0
----
16
82

query II rowsort
SELECT ALL - 72 AS col2, 10 * - 90 col0
----
-72
-900

onlyif mysql # aggregate syntax: 
query I rowsort label-4001
SELECT DISTINCT + 78 - + 60 - + - COUNT( * ) * - 40 + - ( - 47 ) col1
----
25

skipif mysql # not compatible
query I rowsort label-4001
SELECT DISTINCT + 78 - + 60 - + - COUNT ( * ) * - 40 + - ( - 47 ) col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4002
SELECT NULLIF ( + 96, + - SUM( - 23 ) ) * + 72 AS col2
----
6912

skipif mysql # not compatible
query I rowsort label-4002
SELECT NULLIF ( + 96, + - SUM ( - 23 ) ) * + 72 AS col2
----
6912

query I rowsort
SELECT + 74 col2
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4004
SELECT ALL - 60 - CAST( - - COUNT( * ) AS SIGNED ) + + - MIN( + 14 ), 81 - - ( 88 ) AS col2
----
-75
169

skipif mysql # not compatible
query II rowsort label-4004
SELECT ALL - 60 - CAST ( - - COUNT ( * ) AS INTEGER ) + + - MIN ( + 14 ), 81 - - ( 88 ) AS col2
----
-75
169

onlyif mysql # aggregate syntax: 
query I rowsort label-4005
SELECT NULLIF ( 42, - COUNT( * ) ) * + - 66 * + NULLIF ( 55, - + 9 ) + + + 92 * 33 + - - COUNT( * )
----
-149423

skipif mysql # not compatible
query I rowsort label-4005
SELECT NULLIF ( 42, - COUNT ( * ) ) * + - 66 * + NULLIF ( 55, - + 9 ) + + + 92 * 33 + - - COUNT ( * )
----
-149423

query II rowsort
SELECT 91 AS col2, 48 AS col0
----
91
48

query I rowsort
SELECT + 40 AS col1
----
40

query I rowsort
SELECT + 42 AS col1
----
42

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4009
SELECT CAST( 49 AS SIGNED ) DIV - 73
----
0

skipif mysql # not compatible
query I rowsort label-4009
SELECT CAST ( 49 AS INTEGER ) / - 73
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4010
SELECT COUNT( * ) * 28 + + CAST( 30 AS SIGNED ) DIV 35 AS col0
----
28

skipif mysql # not compatible
query I rowsort label-4010
SELECT COUNT ( * ) * 28 + + CAST ( 30 AS INTEGER ) / 35 AS col0
----
28

query I rowsort
SELECT DISTINCT 23 * 88
----
2024

onlyif mysql # aggregate syntax: 
query I rowsort label-4012
SELECT COALESCE ( CASE 88 WHEN + 19 / 66 THEN + 65 END, - COUNT( * ) ) * - COUNT( * ) + 67
----
68

skipif mysql # not compatible
query I rowsort label-4012
SELECT COALESCE ( CASE 88 WHEN + 19 / 66 THEN + 65 END, - COUNT ( * ) ) * - COUNT ( * ) + 67
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4013
SELECT 96 + + COUNT( * ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-4013
SELECT 96 + + COUNT ( * ) AS col2
----
97

query I rowsort
SELECT 3 * 5 col2
----
15

query I rowsort
SELECT ALL 52 + 81 AS col1
----
133

query I rowsort
SELECT ALL - 71 + 99 AS col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4017
SELECT 77 + COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-4017
SELECT 77 + COUNT ( * )
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4018
SELECT + ( COUNT( * ) ) * - COALESCE ( + 92, - COUNT( - 2 ) * + CAST( - 68 * 85 AS SIGNED ) + 38 ) + - CASE + ( 55 ) - 82 WHEN 75 + - 87 * - ( 82 ) THEN 14 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4018
SELECT + ( COUNT ( * ) ) * - COALESCE ( + 92, - COUNT ( - 2 ) * + CAST ( - 68 * 85 AS INTEGER ) + 38 ) + - CASE + ( 55 ) - 82 WHEN 75 + - 87 * - ( 82 ) THEN 14 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4019
SELECT 22 - - COUNT( * ) * 1 AS col2
----
23

skipif mysql # not compatible
query I rowsort label-4019
SELECT 22 - - COUNT ( * ) * 1 AS col2
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4020
SELECT ALL MIN( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4020
SELECT ALL MIN ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT - CASE 4 WHEN 33 * + 68 THEN + 17 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT 28 * 39
----
1092

query I rowsort
SELECT 31 - 7 * 95 AS col0
----
-634

query I rowsort
SELECT DISTINCT + 81 * ( - 52 ) AS col2
----
-4212

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4025
SELECT ALL - CAST( NULL AS SIGNED ) + ( 38 + 91 ) / + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-4025
SELECT ALL - CAST ( NULL AS INTEGER ) + ( 38 + 91 ) / + 99
----
NULL

query I rowsort
SELECT DISTINCT 9 + 29 col0
----
38

query I rowsort
SELECT 18 * - 85 AS col1
----
-1530

query I rowsort
SELECT 21 + + 1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4029
SELECT DISTINCT + 81 * - COUNT( * )
----
-81

skipif mysql # not compatible
query I rowsort label-4029
SELECT DISTINCT + 81 * - COUNT ( * )
----
-81

query I rowsort
SELECT ALL + 63 * 72
----
4536

onlyif mysql # aggregate syntax: 
query I rowsort label-4031
SELECT - 20 + - 55 * - COUNT( 22 )
----
35

skipif mysql # not compatible
query I rowsort label-4031
SELECT - 20 + - 55 * - COUNT ( 22 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4032
SELECT DISTINCT + COUNT( DISTINCT 78 ) - + 75
----
-74

skipif mysql # not compatible
query I rowsort label-4032
SELECT DISTINCT + COUNT ( DISTINCT 78 ) - + 75
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4033
SELECT - 96 + + COUNT( * ) col0
----
-95

skipif mysql # not compatible
query I rowsort label-4033
SELECT - 96 + + COUNT ( * ) col0
----
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4034
SELECT DISTINCT - 19 DIV COUNT( * )
----
-19

skipif mysql # not compatible
query I rowsort label-4034
SELECT DISTINCT - 19 / COUNT ( * )
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4035
SELECT DISTINCT SUM( DISTINCT + 37 ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-4035
SELECT DISTINCT SUM ( DISTINCT + 37 ) AS col0
----
37

query I rowsort
SELECT - 66 + 83
----
17

query I rowsort
SELECT DISTINCT 78 * - 45 col0
----
-3510

onlyif mysql # DIV for integer division: 
query I rowsort label-4038
SELECT - 13 DIV - 63
----
0

skipif mysql # not compatible
query I rowsort label-4038
SELECT - 13 / - 63
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4039
SELECT 38 DIV 32 + - 32
----
-31

skipif mysql # not compatible
query I rowsort label-4039
SELECT 38 / 32 + - 32
----
-31

query I rowsort
SELECT ALL - 1 * 2
----
-2

query I rowsort
SELECT NULLIF ( + 81, + 18 ) AS col0
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4042
SELECT COUNT( * ) DIV + 17 + - 95 AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-4042
SELECT COUNT ( * ) / + 17 + - 95 AS col0
----
-95

query I rowsort
SELECT + ( 88 ) * 84 AS col2
----
7392

onlyif mysql # aggregate syntax: 
query I rowsort label-4044
SELECT COALESCE ( COUNT( * ), - 46 )
----
1

skipif mysql # not compatible
query I rowsort label-4044
SELECT COALESCE ( COUNT ( * ), - 46 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4045
SELECT + CAST( NULL AS SIGNED ) + - 96
----
NULL

skipif mysql # not compatible
query I rowsort label-4045
SELECT + CAST ( NULL AS INTEGER ) + - 96
----
NULL

query I rowsort
SELECT ALL 18 * 92
----
1656

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4047
SELECT + AVG ( DISTINCT - 44 ) + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4047
SELECT + AVG ( DISTINCT - 44 ) + CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 47 * 73
----
3431

query I rowsort
SELECT DISTINCT + - 87
----
-87

query I rowsort
SELECT ALL + ( + 4 ) * 53
----
212

onlyif mysql # aggregate syntax: 
query I rowsort label-4051
SELECT ALL + SUM( ALL 20 ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-4051
SELECT ALL + SUM ( ALL 20 ) AS col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4052
SELECT DISTINCT SUM( - 76 ) * 2 + 89
----
-63

skipif mysql # not compatible
query I rowsort label-4052
SELECT DISTINCT SUM ( - 76 ) * 2 + 89
----
-63

query I rowsort
SELECT + - 30 + 53 AS col2
----
23

query I rowsort
SELECT + + 72 * - 70
----
-5040

onlyif mysql # aggregate syntax: 
query I rowsort label-4055
SELECT + + MIN( ALL + 17 ) + - ( - 9 )
----
26

skipif mysql # not compatible
query I rowsort label-4055
SELECT + + MIN ( ALL + 17 ) + - ( - 9 )
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4056
SELECT ALL + CASE + 62 WHEN - CAST( 64 AS SIGNED ) THEN + 71 END * + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-4056
SELECT ALL + CASE + 62 WHEN - CAST ( 64 AS INTEGER ) THEN + 71 END * + 64
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4057
SELECT DISTINCT 3 DIV 83 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4057
SELECT DISTINCT 3 / 83 AS col2
----
0

query I rowsort
SELECT ALL + + 6 * - 97 + 97
----
-485

onlyif mysql # aggregate syntax: 
query I rowsort label-4059
SELECT ALL + ( 83 ) + + COUNT( * ) * COUNT( * ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-4059
SELECT ALL + ( 83 ) + + COUNT ( * ) * COUNT ( * ) AS col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4060
SELECT + 51 * COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-4060
SELECT + 51 * COUNT ( * )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4061
SELECT ALL ( + 32 ) * - COUNT( * ) AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-4061
SELECT ALL ( + 32 ) * - COUNT ( * ) AS col2
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4062
SELECT MAX( DISTINCT 3 ) * NULLIF ( 50 DIV ( SUM( + 31 ) ), 94 * - 79 ) + + COUNT( * ) * - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-4062
SELECT MAX ( DISTINCT 3 ) * NULLIF ( 50 / ( SUM ( + 31 ) ), 94 * - 79 ) + + COUNT ( * ) * - COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4063
SELECT DISTINCT - MAX( DISTINCT + 48 ) + + 15
----
-33

skipif mysql # not compatible
query I rowsort label-4063
SELECT DISTINCT - MAX ( DISTINCT + 48 ) + + 15
----
-33

query I rowsort
SELECT DISTINCT CASE 79 WHEN - 22 THEN 33 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4065
SELECT ALL + NULLIF ( 65, CASE 7 WHEN - COALESCE ( + ( + 8 ), + 82 ) * + 81 + + CAST( - 9 AS SIGNED ) * 9 THEN NULL WHEN 66 THEN 97 + + 52 / - 65 ELSE NULL END )
----
65

skipif mysql # not compatible
query I rowsort label-4065
SELECT ALL + NULLIF ( 65, CASE 7 WHEN - COALESCE ( + ( + 8 ), + 82 ) * + 81 + + CAST ( - 9 AS INTEGER ) * 9 THEN NULL WHEN 66 THEN 97 + + 52 / - 65 ELSE NULL END )
----
65

query I rowsort
SELECT + 17 * 9 AS col1
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-4067
SELECT - COALESCE ( + - 16, - 33 * - 99, + COUNT( * ) ) + 27 * + 43
----
1177

skipif mysql # not compatible
query I rowsort label-4067
SELECT - COALESCE ( + - 16, - 33 * - 99, + COUNT ( * ) ) + 27 * + 43
----
1177

onlyif mysql # aggregate syntax: 
query I rowsort label-4068
SELECT ALL COALESCE ( + - 75, 57 * - 18 - 61 * COUNT( * ) )
----
-75

skipif mysql # not compatible
query I rowsort label-4068
SELECT ALL COALESCE ( + - 75, 57 * - 18 - 61 * COUNT ( * ) )
----
-75

query I rowsort
SELECT - 61 * + 46
----
-2806

query I rowsort
SELECT DISTINCT 53 AS col1
----
53

query I rowsort
SELECT ALL - 32 * - 68 col0
----
2176

query I rowsort
SELECT ALL + 78 - - 83 AS col2
----
161

onlyif mysql # aggregate syntax: 
query I rowsort label-4073
SELECT ALL COUNT( ALL + 67 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4073
SELECT ALL COUNT ( ALL + 67 ) AS col0
----
1

query I rowsort
SELECT - 25 - + + 41 + + 23 AS col2
----
-43

query I rowsort
SELECT ALL - 5 * - 38 AS col2
----
190

onlyif mysql # aggregate syntax: 
query I rowsort label-4076
SELECT ALL - COALESCE ( - 1, - COALESCE ( 14, + COUNT( * ), + 69 * 8 ) + + 20 ) * - 64 col1
----
-64

skipif mysql # not compatible
query I rowsort label-4076
SELECT ALL - COALESCE ( - 1, - COALESCE ( 14, + COUNT ( * ), + 69 * 8 ) + + 20 ) * - 64 col1
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4077
SELECT - CAST( - 14 AS SIGNED ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-4077
SELECT - CAST ( - 14 AS INTEGER ) AS col1
----
14

query I rowsort
SELECT DISTINCT ( 74 )
----
74

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4079
SELECT CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4079
SELECT CAST ( NULL AS REAL ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4080
SELECT ALL + ( - + COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4080
SELECT ALL + ( - + COUNT ( * ) ) AS col0
----
-1

query I rowsort
SELECT + + 43
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4082
SELECT ALL - + 13 / - - 62 * CASE + 88 * - 38 WHEN + 13 / - COUNT( * ) THEN 59 END + - 43 * + ( 89 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4082
SELECT ALL - + 13 / - - 62 * CASE + 88 * - 38 WHEN + 13 / - COUNT ( * ) THEN 59 END + - 43 * + ( 89 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4083
SELECT - CAST( NULL AS SIGNED ) / - 37 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4083
SELECT - CAST ( NULL AS INTEGER ) / - 37 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4084
SELECT ALL 7 DIV + 22 + + 72 col1
----
72

skipif mysql # not compatible
query I rowsort label-4084
SELECT ALL 7 / + 22 + + 72 col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4085
SELECT + 46 * - - COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-4085
SELECT + 46 * - - COUNT ( * )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4086
SELECT ALL - - 95 * + CASE 21 WHEN + NULLIF ( NULLIF ( - COUNT( * ), COUNT( * ) * - 39 + NULLIF ( COUNT( * ), 89 - + ( 48 ) ) ), 67 * 2 ) * + CASE + 16 WHEN + 46 + - 35 THEN NULL ELSE + 50 END + 18 * COUNT( * ) THEN NULL WHEN 67 THEN NULL ELSE + 48 * + 40 END * 87 AS col0
----
15868800

skipif mysql # not compatible
query I rowsort label-4086
SELECT ALL - - 95 * + CASE 21 WHEN + NULLIF ( NULLIF ( - COUNT ( * ), COUNT ( * ) * - 39 + NULLIF ( COUNT ( * ), 89 - + ( 48 ) ) ), 67 * 2 ) * + CASE + 16 WHEN + 46 + - 35 THEN NULL ELSE + 50 END + 18 * COUNT ( * ) THEN NULL WHEN 67 THEN NULL ELSE + 48 * + 40 END * 87 AS col0
----
15868800

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4087
SELECT + + 90 DIV + + ( 87 ) + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-4087
SELECT + + 90 / + + ( 87 ) + + COUNT ( * )
----
2

query I rowsort
SELECT + + 12 AS col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4089
SELECT DISTINCT - COUNT( * ) * 70 + - COUNT( * )
----
-71

skipif mysql # not compatible
query I rowsort label-4089
SELECT DISTINCT - COUNT ( * ) * 70 + - COUNT ( * )
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4090
SELECT ALL - CAST( NULL AS SIGNED ) * 55 + + 68 * + 40 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4090
SELECT ALL - CAST ( NULL AS INTEGER ) * 55 + + 68 * + 40 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4091
SELECT + COUNT( * ) + + 93 AS col1
----
94

skipif mysql # not compatible
query I rowsort label-4091
SELECT + COUNT ( * ) + + 93 AS col1
----
94

query I rowsort
SELECT DISTINCT - + 52 * 58 + + 46
----
-2970

onlyif mysql # aggregate syntax: 
query I rowsort label-4093
SELECT - COUNT( * ) * + ( 36 ) + - COUNT( * ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-4093
SELECT - COUNT ( * ) * + ( 36 ) + - COUNT ( * ) AS col1
----
-37

query I rowsort
SELECT + + 68 AS col0
----
68

query I rowsort
SELECT DISTINCT - + 27
----
-27

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

skipif mysql # not compatible
query I rowsort label-4096
SELECT ALL + 79 - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4097
SELECT 17 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4097
SELECT 17 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 85 * - + 29 AS col2
----
-2465

onlyif mysql # DIV for integer division: 
query I rowsort label-4099
SELECT ALL - 88 DIV 81 DIV 61
----
0

skipif mysql # not compatible
query I rowsort label-4099
SELECT ALL - 88 / 81 / 61
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4100
SELECT - - 60 * + CAST( NULL AS DECIMAL ) + - CASE - 86 WHEN + CAST( - 47 AS SIGNED ) THEN COUNT( * ) * 26 WHEN + 68 THEN NULL END * 76
----
NULL

skipif mysql # not compatible
query I rowsort label-4100
SELECT - - 60 * + CAST ( NULL AS REAL ) + - CASE - 86 WHEN + CAST ( - 47 AS INTEGER ) THEN COUNT ( * ) * 26 WHEN + 68 THEN NULL END * 76
----
NULL

query I rowsort
SELECT ( + 62 ) - 41 AS col0
----
21

query II rowsort
SELECT - 93, - 27 + - 42 AS col2
----
-93
-69

query I rowsort
SELECT DISTINCT 95 AS col1
----
95

query I rowsort
SELECT DISTINCT 97 AS col2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4105
SELECT ALL MAX( - 16 ) * 99 * - ( 99 ) AS col2
----
156816

skipif mysql # not compatible
query I rowsort label-4105
SELECT ALL MAX ( - 16 ) * 99 * - ( 99 ) AS col2
----
156816

query I rowsort
SELECT ALL 3 AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4107
SELECT DISTINCT NULLIF ( + + 26, - - 20 * 73 ) * COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-4107
SELECT DISTINCT NULLIF ( + + 26, - - 20 * 73 ) * COUNT ( * )
----
26

query I rowsort
SELECT DISTINCT 73 * + 33
----
2409

onlyif mysql # aggregate syntax: 
query I rowsort label-4109
SELECT COUNT( * ) + - 87 * - COUNT( * ) + + 21
----
109

skipif mysql # not compatible
query I rowsort label-4109
SELECT COUNT ( * ) + - 87 * - COUNT ( * ) + + 21
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-4110
SELECT 72 * CASE WHEN NOT ( COUNT( * ) ) IS NULL THEN NULL ELSE 28 + COUNT( - 81 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4110
SELECT 72 * CASE WHEN NOT ( COUNT ( * ) ) IS NULL THEN NULL ELSE 28 + COUNT ( - 81 ) END
----
NULL

query I rowsort
SELECT 78 - 76
----
2

query I rowsort
SELECT 88 * 9
----
792

onlyif mysql # aggregate syntax: 
query I rowsort label-4113
SELECT 62 + + COUNT( * ) * + 27
----
89

skipif mysql # not compatible
query I rowsort label-4113
SELECT 62 + + COUNT ( * ) * + 27
----
89

query I rowsort
SELECT 97 * - 43 AS col2
----
-4171

onlyif mysql # aggregate syntax: 
query I rowsort label-4115
SELECT ALL - COUNT( * ) + - - 58
----
57

skipif mysql # not compatible
query I rowsort label-4115
SELECT ALL - COUNT ( * ) + - - 58
----
57

query I rowsort
SELECT 68 + + - 46 col2
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4117
SELECT CAST( - + COUNT( * ) AS SIGNED ) + - + COUNT( * ) DIV + 46
----
-1

skipif mysql # not compatible
query I rowsort label-4117
SELECT CAST ( - + COUNT ( * ) AS INTEGER ) + - + COUNT ( * ) / + 46
----
-1

query I rowsort
SELECT DISTINCT 0 + - + 12
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4119
SELECT ALL 59 + + 26 + + 5 + - COALESCE ( - COUNT( 29 ), 3 ) * 3 AS col1
----
93

skipif mysql # not compatible
query I rowsort label-4119
SELECT ALL 59 + + 26 + + 5 + - COALESCE ( - COUNT ( 29 ), 3 ) * 3 AS col1
----
93

query II rowsort
SELECT + 73 AS col1, 96
----
73
96

query I rowsort
SELECT 91 * - + 32 AS col2
----
-2912

onlyif mysql # aggregate syntax: 
query I rowsort label-4122
SELECT 99 / + CASE - SUM( ALL 56 ) WHEN 13 * 1 THEN NULL WHEN 71 + 11 THEN + 56 * 83 END / 63 + 75 + COALESCE ( 70, + 77 * - 19, 91 ) * - 10 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4122
SELECT 99 / + CASE - SUM ( ALL 56 ) WHEN 13 * 1 THEN NULL WHEN 71 + 11 THEN + 56 * 83 END / 63 + 75 + COALESCE ( 70, + 77 * - 19, 91 ) * - 10 AS col0
----
NULL

query I rowsort
SELECT ALL - 94 * - 21 AS col2
----
1974

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4124
SELECT 80 + + ( - ( + ( 70 ) ) ) + 46 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4124
SELECT 80 + + ( - ( + ( 70 ) ) ) + 46 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4125
SELECT - SUM( ALL + 14 )
----
-14

skipif mysql # not compatible
query I rowsort label-4125
SELECT - SUM ( ALL + 14 )
----
-14

query I rowsort
SELECT + - 83 col0
----
-83

query I rowsort
SELECT ALL + 44 + - - ( + 80 ) + 67
----
191

onlyif mysql # aggregate syntax: 
query I rowsort label-4128
SELECT ALL - + MAX( ALL + + 98 ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-4128
SELECT ALL - + MAX ( ALL + + 98 ) AS col1
----
-98

query II rowsort
SELECT 57 AS col1, 0 AS col1
----
57
0

query I rowsort
SELECT ALL - + 59 AS col1
----
-59

query I rowsort
SELECT DISTINCT - - 98
----
98

query I rowsort
SELECT ALL + + 88 - + + 17 * + ( 3 )
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4133
SELECT - COUNT( * ) * + + SUM( ALL + 98 ) DIV + 81
----
-1

skipif mysql # not compatible
query I rowsort label-4133
SELECT - COUNT ( * ) * + + SUM ( ALL + 98 ) / + 81
----
-1

query I rowsort
SELECT ALL - 9 - + ( - 23 ) AS col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4135
SELECT COUNT( * ) * - + 63 - + - 61 col2
----
-2

skipif mysql # not compatible
query I rowsort label-4135
SELECT COUNT ( * ) * - + 63 - + - 61 col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4136
SELECT + + SUM( - 96 ) AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-4136
SELECT + + SUM ( - 96 ) AS col0
----
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4137
SELECT ALL + + 87 * - - 8 + COUNT( * ) + 61 DIV - 73 AS col1
----
697

skipif mysql # not compatible
query I rowsort label-4137
SELECT ALL + + 87 * - - 8 + COUNT ( * ) + 61 / - 73 AS col1
----
697

query I rowsort
SELECT - 8 * 79 + - - 95
----
-537

query I rowsort
SELECT - 83 * 36
----
-2988

onlyif mysql # aggregate syntax: 
query I rowsort label-4140
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4140
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4141
SELECT ALL + SUM( ALL - 70 ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-4141
SELECT ALL + SUM ( ALL - 70 ) AS col2
----
-70

query I rowsort
SELECT ALL 92 AS col1
----
92

query I rowsort
SELECT 46 - - 71 * 30
----
2176

onlyif mysql # aggregate syntax: 
query I rowsort label-4144
SELECT DISTINCT COUNT( + 66 )
----
1

skipif mysql # not compatible
query I rowsort label-4144
SELECT DISTINCT COUNT ( + 66 )
----
1

query I rowsort
SELECT 43 * 19 col1
----
817

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4146
SELECT 46 + - - CAST( - 1 AS SIGNED )
----
45

skipif mysql # not compatible
query I rowsort label-4146
SELECT 46 + - - CAST ( - 1 AS INTEGER )
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-4147
SELECT DISTINCT 60 + + 69 DIV + - 22
----
57

skipif mysql # not compatible
query I rowsort label-4147
SELECT DISTINCT 60 + + 69 / + - 22
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4148
SELECT ALL 95 + + COALESCE ( COUNT( * ), - 97 ) * 18 AS col1
----
113

skipif mysql # not compatible
query I rowsort label-4148
SELECT ALL 95 + + COALESCE ( COUNT ( * ), - 97 ) * 18 AS col1
----
113

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4149
SELECT DISTINCT + 97 DIV + + 64 * + ( + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-4149
SELECT DISTINCT + 97 / + + 64 * + ( + COUNT ( * ) )
----
1

query I rowsort
SELECT ALL - 43 + - 42 * + ( + 15 ) * 32 AS col1
----
-20203

onlyif mysql # aggregate syntax: 
query I rowsort label-4151
SELECT DISTINCT 24 + + CASE - 98 WHEN + COUNT( DISTINCT + 51 ) THEN NULL WHEN - MAX( DISTINCT 12 ) THEN 81 * - ( 68 * 41 ) ELSE - NULLIF ( - 7, 6 * 36 ) END AS col2
----
31

skipif mysql # not compatible
query I rowsort label-4151
SELECT DISTINCT 24 + + CASE - 98 WHEN + COUNT ( DISTINCT + 51 ) THEN NULL WHEN - MAX ( DISTINCT 12 ) THEN 81 * - ( 68 * 41 ) ELSE - NULLIF ( - 7, 6 * 36 ) END AS col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4152
SELECT ALL COUNT( * ) + NULLIF ( 27, - + 20 ) * ( 90 * - COUNT( * ) ) AS col0
----
-2429

skipif mysql # not compatible
query I rowsort label-4152
SELECT ALL COUNT ( * ) + NULLIF ( 27, - + 20 ) * ( 90 * - COUNT ( * ) ) AS col0
----
-2429

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

skipif mysql # not compatible
query I rowsort label-4153
SELECT ( + 6 ) * + COUNT ( * ) AS col2
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4154
SELECT ALL 59 + - + CASE + 39 WHEN - + 48 + + CAST( 90 + 92 AS SIGNED ) / 48 THEN 87 WHEN - SUM( DISTINCT 21 ) * 36 - 58 * - CASE - COUNT( * ) * 27 + ( + 56 - - 50 ) WHEN ( - 13 ) THEN NULL ELSE + CASE - 13 WHEN 36 THEN - 16 * + COUNT( 86 ) ELSE NULL END END THEN NULL END + ( + 56 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4154
SELECT ALL 59 + - + CASE + 39 WHEN - + 48 + + CAST ( 90 + 92 AS INTEGER ) / 48 THEN 87 WHEN - SUM ( DISTINCT 21 ) * 36 - 58 * - CASE - COUNT ( * ) * 27 + ( + 56 - - 50 ) WHEN ( - 13 ) THEN NULL ELSE + CASE - 13 WHEN 36 THEN - 16 * + COUNT ( 86 ) ELSE NULL END END THEN NULL END + ( + 56 ) col0
----
NULL

query I rowsort
SELECT ALL 18 * 69 AS col1
----
1242

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4156
SELECT MAX( 43 ) * 21 DIV - 10
----
-90

skipif mysql # not compatible
query I rowsort label-4156
SELECT MAX ( 43 ) * 21 / - 10
----
-90

query II rowsort
SELECT 68 - 43 AS col2, 97 * + 6 * 74 col0
----
25
43068

onlyif mysql # DIV for integer division: 
query I rowsort label-4158
SELECT 59 DIV - + 62 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4158
SELECT 59 / - + 62 AS col0
----
0

query I rowsort
SELECT - 24 * + 81 AS col0
----
-1944

onlyif mysql # aggregate syntax: 
query I rowsort label-4160
SELECT + MIN( DISTINCT - + 22 ) AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-4160
SELECT + MIN ( DISTINCT - + 22 ) AS col0
----
-22

query II rowsort
SELECT ( - 3 ) AS col0, ( + 61 ) AS col1
----
-3
61

query I rowsort
SELECT ALL - + 64
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4163
SELECT DISTINCT + CASE 70 WHEN + COALESCE ( + 30, 69 + + 61 * 84 ) + + 40 * 66 THEN NULL WHEN CASE - 61 WHEN 96 - 99 THEN - 12 + 64 ELSE NULL END * 48 THEN + NULLIF ( + 61, - MAX( 74 ) ) END * - CAST( NULL AS SIGNED ) - - COUNT( * ) * 97 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4163
SELECT DISTINCT + CASE 70 WHEN + COALESCE ( + 30, 69 + + 61 * 84 ) + + 40 * 66 THEN NULL WHEN CASE - 61 WHEN 96 - 99 THEN - 12 + 64 ELSE NULL END * 48 THEN + NULLIF ( + 61, - MAX ( 74 ) ) END * - CAST ( NULL AS INTEGER ) - - COUNT ( * ) * 97 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4164
SELECT DISTINCT + - COUNT( * ) * + 3 + COUNT( DISTINCT + 21 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-4164
SELECT DISTINCT + - COUNT ( * ) * + 3 + COUNT ( DISTINCT + 21 ) AS col1
----
-2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4165
SELECT ALL - - 87 * + MIN( ALL 4 ) - + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4165
SELECT ALL - - 87 * + MIN ( ALL 4 ) - + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4166
SELECT DISTINCT - COUNT( ALL + 83 ) * - + 82 AS col2
----
82

skipif mysql # not compatible
query I rowsort label-4166
SELECT DISTINCT - COUNT ( ALL + 83 ) * - + 82 AS col2
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4167
SELECT - NULLIF ( - CAST( 29 AS SIGNED ), - 4 ) * + 84
----
2436

skipif mysql # not compatible
query I rowsort label-4167
SELECT - NULLIF ( - CAST ( 29 AS INTEGER ), - 4 ) * + 84
----
2436

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4168
SELECT CASE + 6 WHEN - + 63 + + - 47 + CAST( - 6 AS SIGNED ) * COALESCE ( - 97 - 95, COUNT( * ) + - COALESCE ( ( - 19 ), 6 ), - CAST( NULL AS DECIMAL ) + COUNT( * ) * 15 ) THEN NULL WHEN 93 + COALESCE ( 55, - 83 ) THEN - 59 * 73 WHEN CAST( 61 AS SIGNED ) - COUNT( ALL 21 ) THEN AVG ( DISTINCT 76 ) + + 40 END * - 19 + + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-4168
SELECT CASE + 6 WHEN - + 63 + + - 47 + CAST ( - 6 AS INTEGER ) * COALESCE ( - 97 - 95, COUNT ( * ) + - COALESCE ( ( - 19 ), 6 ), - CAST ( NULL AS REAL ) + COUNT ( * ) * 15 ) THEN NULL WHEN 93 + COALESCE ( 55, - 83 ) THEN - 59 * 73 WHEN CAST ( 61 AS INTEGER ) - COUNT ( ALL 21 ) THEN AVG ( DISTINCT 76 ) + + 40 END * - 19 + + 28
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4169
SELECT - MIN( ALL + 34 ) - 64
----
-98

skipif mysql # not compatible
query I rowsort label-4169
SELECT - MIN ( ALL + 34 ) - 64
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4170
SELECT + 97 + MIN( + + 48 ) * - - 78
----
3841

skipif mysql # not compatible
query I rowsort label-4170
SELECT + 97 + MIN ( + + 48 ) * - - 78
----
3841

query I rowsort
SELECT - - ( - 91 ) * - 15 AS col2
----
1365

query I rowsort
SELECT ALL + COALESCE ( - 43, - 73 * - 5 + + 28, - 57 ) AS col2
----
-43

query I rowsort
SELECT DISTINCT + - 99 AS col0
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-4174
SELECT ALL + 73 DIV + 24
----
3

skipif mysql # not compatible
query I rowsort label-4174
SELECT ALL + 73 / + 24
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4175
SELECT DISTINCT + CASE NULLIF ( + AVG ( DISTINCT 74 ), + + 78 ) WHEN - ( - 29 ) * - 39 + CAST( COALESCE ( COUNT( * ), 86 / COUNT( * ) + - 91 ) - + 65 AS SIGNED ) * ( CASE ( - MAX( ALL - 92 ) ) WHEN COUNT( * ) THEN NULL ELSE + 97 + - 34 END * 30 ) THEN NULL ELSE NULLIF ( CAST( + CAST( NULL AS SIGNED ) AS SIGNED ), - CASE - 54 WHEN + COALESCE ( 44, + 67 * + 38 - + 52, 63 ) + + 63 THEN NULL WHEN 88 THEN 99 / AVG ( ALL 13 * 98 ) ELSE NULL END * ( CAST( NULL AS SIGNED ) ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4175
SELECT DISTINCT + CASE NULLIF ( + AVG ( DISTINCT 74 ), + + 78 ) WHEN - ( - 29 ) * - 39 + CAST ( COALESCE ( COUNT ( * ), 86 / COUNT ( * ) + - 91 ) - + 65 AS INTEGER ) * ( CASE ( - MAX ( ALL - 92 ) ) WHEN COUNT ( * ) THEN NULL ELSE + 97 + - 34 END * 30 ) THEN NULL ELSE NULLIF ( CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ), - CASE - 54 WHEN + COALESCE ( 44, + 67 * + 38 - + 52, 63 ) + + 63 THEN NULL WHEN 88 THEN 99 / AVG ( ALL 13 * 98 ) ELSE NULL END * ( CAST ( NULL AS INTEGER ) ) ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4176
SELECT DISTINCT CASE + COUNT( DISTINCT + 20 ) WHEN 41 THEN NULL WHEN + 11 + + 84 / 96 THEN - 91 - - 69 WHEN 97 THEN ( + 57 ) / 29 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4176
SELECT DISTINCT CASE + COUNT ( DISTINCT + 20 ) WHEN 41 THEN NULL WHEN + 11 + + 84 / 96 THEN - 91 - - 69 WHEN 97 THEN ( + 57 ) / 29 END
----
NULL

query I rowsort
SELECT ALL - 74 + - + 80 col2
----
-154

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4178
SELECT - 54, + CAST( - 0 AS SIGNED ) DIV - 84 * 5 AS col1
----
-54
0

skipif mysql # not compatible
query II rowsort label-4178
SELECT - 54, + CAST ( - 0 AS INTEGER ) / - 84 * 5 AS col1
----
-54
0

query I rowsort
SELECT 46 col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4180
SELECT - COUNT( * ) * + + ( + + COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4180
SELECT - COUNT ( * ) * + + ( + + COUNT ( * ) )
----
-1

query I rowsort
SELECT - 66 * 32 AS col1
----
-2112

query I rowsort
SELECT ALL + 84 + 2 AS col0
----
86

query I rowsort
SELECT DISTINCT ( - 52 )
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-4184
SELECT DISTINCT - 56 + SUM( ALL - - 62 )
----
6

skipif mysql # not compatible
query I rowsort label-4184
SELECT DISTINCT - 56 + SUM ( ALL - - 62 )
----
6

query I rowsort
SELECT DISTINCT + 2 + - 56 AS col1
----
-54

query I rowsort
SELECT ALL ( + 8 )
----
8

query I rowsort
SELECT DISTINCT ( 36 ) AS col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4188
SELECT - NULLIF ( - - 13, COUNT( * ) + - 3 ) + 14 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4188
SELECT - NULLIF ( - - 13, COUNT ( * ) + - 3 ) + 14 AS col1
----
1

query I rowsort
SELECT DISTINCT ( + 11 ) AS col0
----
11

query I rowsort
SELECT ALL ( + 62 ) AS col0
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4191
SELECT + 24 - - CAST( + 85 AS SIGNED ) AS col0, + 69 + 92 + - 47
----
109
114

skipif mysql # not compatible
query II rowsort label-4191
SELECT + 24 - - CAST ( + 85 AS INTEGER ) AS col0, + 69 + 92 + - 47
----
109
114

onlyif mysql # aggregate syntax: 
query I rowsort label-4192
SELECT + 82 * - SUM( + 13 )
----
-1066

skipif mysql # not compatible
query I rowsort label-4192
SELECT + 82 * - SUM ( + 13 )
----
-1066

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4193
SELECT - CAST( - 76 AS SIGNED ) + - COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-4193
SELECT - CAST ( - 76 AS INTEGER ) + - COUNT ( * )
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-4194
SELECT + + 83 - - 21 + - 93 DIV - 98 + + 2 * 87
----
278

skipif mysql # not compatible
query I rowsort label-4194
SELECT + + 83 - - 21 + - 93 / - 98 + + 2 * 87
----
278

onlyif mysql # aggregate syntax: 
query I rowsort label-4195
SELECT ALL - MAX( + 17 ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-4195
SELECT ALL - MAX ( + 17 ) AS col1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4196
SELECT + + NULLIF ( + - NULLIF ( + + 36, - 87 ), - 62 * - 28 ) * MAX( 90 )
----
-3240

skipif mysql # not compatible
query I rowsort label-4196
SELECT + + NULLIF ( + - NULLIF ( + + 36, - 87 ), - 62 * - 28 ) * MAX ( 90 )
----
-3240

onlyif mysql # DIV for integer division: 
query I rowsort label-4197
SELECT ALL + - 21 DIV - + 55 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4197
SELECT ALL + - 21 / - + 55 AS col2
----
0

query I rowsort
SELECT ALL - 16 * + 4 AS col0
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4199
SELECT - 17 * + ( - 24 ) * CAST( NULL AS SIGNED ) + - 46 + ( - 10 - CAST( NULL AS SIGNED ) ) * + 82 * + ( - 6 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4199
SELECT - 17 * + ( - 24 ) * CAST ( NULL AS INTEGER ) + - 46 + ( - 10 - CAST ( NULL AS INTEGER ) ) * + 82 * + ( - 6 )
----
NULL

query I rowsort
SELECT ALL + - ( + 8 ) col2
----
-8

query I rowsort
SELECT DISTINCT + 83 * 24 col2
----
1992

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4202
SELECT - COALESCE ( - CASE 36 WHEN - 17 THEN - COUNT( * ) END, + COUNT( * ) DIV - 12 ) * 71
----
0

skipif mysql # not compatible
query I rowsort label-4202
SELECT - COALESCE ( - CASE 36 WHEN - 17 THEN - COUNT ( * ) END, + COUNT ( * ) / - 12 ) * 71
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4203
SELECT 72 / CASE - 73 WHEN 79 THEN NULL WHEN COUNT( * ) * CAST( + 96 AS SIGNED ) THEN - 79 ELSE NULL END + 73 * + 82 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4203
SELECT 72 / CASE - 73 WHEN 79 THEN NULL WHEN COUNT ( * ) * CAST ( + 96 AS INTEGER ) THEN - 79 ELSE NULL END + 73 * + 82 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4204
SELECT + - 56 DIV 19 + - 86 AS col2, NULLIF ( + + 37, - 88 ) AS col1
----
-88
37

skipif mysql # not compatible
query II rowsort label-4204
SELECT + - 56 / 19 + - 86 AS col2, NULLIF ( + + 37, - 88 ) AS col1
----
-88
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4205
SELECT DISTINCT + COUNT( DISTINCT 61 )
----
1

skipif mysql # not compatible
query I rowsort label-4205
SELECT DISTINCT + COUNT ( DISTINCT 61 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4206
SELECT - - 48 DIV + ( - 82 ) * + 80 + - 39 AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-4206
SELECT - - 48 / + ( - 82 ) * + 80 + - 39 AS col0
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4207
SELECT + - NULLIF ( - + 73, 29 * 8 / - COALESCE ( 36, 13 * - 15 ) * + 22 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4207
SELECT + - NULLIF ( - + 73, 29 * 8 / - COALESCE ( 36, 13 * - 15 ) * + 22 ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4208
SELECT + - 6 + + + CASE + 22 WHEN 49 * - COUNT( CAST( NULL AS SIGNED ) ) THEN + SUM( + 20 ) WHEN - COALESCE ( 5, 93 ) THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4208
SELECT + - 6 + + + CASE + 22 WHEN 49 * - COUNT ( CAST ( NULL AS INTEGER ) ) THEN + SUM ( + 20 ) WHEN - COALESCE ( 5, 93 ) THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4209
SELECT ALL + 1 DIV + 22 - 37 * + 3 col0
----
-111

skipif mysql # not compatible
query I rowsort label-4209
SELECT ALL + 1 / + 22 - 37 * + 3 col0
----
-111

query I rowsort
SELECT DISTINCT + 43 AS col2
----
43

query I rowsort
SELECT DISTINCT + + 39 AS col0
----
39

query II rowsort
SELECT ALL + + 78 AS col2, + ( - 26 ) AS col2
----
78
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-4213
SELECT DISTINCT + COUNT( * ) col2
----
1

skipif mysql # not compatible
query I rowsort label-4213
SELECT DISTINCT + COUNT ( * ) col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4214
SELECT ALL + CASE - 44 WHEN 72 / + 24 / + + CASE + 52 WHEN + 16 / 27 THEN NULL WHEN - 1 THEN ( + 26 ) END THEN + COUNT( * ) / 57 END * + 74 + CAST( + 25 AS SIGNED ) * + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-4214
SELECT ALL + CASE - 44 WHEN 72 / + 24 / + + CASE + 52 WHEN + 16 / 27 THEN NULL WHEN - 1 THEN ( + 26 ) END THEN + COUNT ( * ) / 57 END * + 74 + CAST ( + 25 AS INTEGER ) * + 25
----
NULL

query I rowsort
SELECT DISTINCT + 10 AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4216
SELECT DISTINCT + + NULLIF ( COUNT( * ), - + 29 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4216
SELECT DISTINCT + + NULLIF ( COUNT ( * ), - + 29 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4217
SELECT DISTINCT + 60 * CASE - - COUNT( * ) WHEN - 1 * + 50 * + + 44 * 13 + - NULLIF ( 54, 27 * SUM( DISTINCT 27 ) ) - + 99 THEN NULL WHEN - COUNT( * ) / + CAST( NULL AS SIGNED ) THEN NULL WHEN - 44 - + 64 THEN MAX( DISTINCT + 84 ) END + 93 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4217
SELECT DISTINCT + 60 * CASE - - COUNT ( * ) WHEN - 1 * + 50 * + + 44 * 13 + - NULLIF ( 54, 27 * SUM ( DISTINCT 27 ) ) - + 99 THEN NULL WHEN - COUNT ( * ) / + CAST ( NULL AS INTEGER ) THEN NULL WHEN - 44 - + 64 THEN MAX ( DISTINCT + 84 ) END + 93 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4218
SELECT ALL CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) + - - 75 * 2 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4218
SELECT ALL CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) + - - 75 * 2 col2
----
NULL

query II rowsort
SELECT + 99 AS col2, 73 AS col2
----
99
73

onlyif mysql # DIV for integer division: 
query I rowsort label-4220
SELECT + 8 DIV - 48 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4220
SELECT + 8 / - 48 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4221
SELECT + CAST( - COUNT( * ) AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4221
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4222
SELECT ALL + COUNT( * ) AS col0, - COALESCE ( - 46, 46 * - ( - - ( 1 ) ) + 29 DIV - 53 ) AS col0
----
1
46

skipif mysql # not compatible
query II rowsort label-4222
SELECT ALL + COUNT ( * ) AS col0, - COALESCE ( - 46, 46 * - ( - - ( 1 ) ) + 29 / - 53 ) AS col0
----
1
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4223
SELECT CASE - 82 WHEN 3 / + - 58 + - 89 THEN - 66 + 46 WHEN MAX( ALL + CAST( - 63 AS SIGNED ) ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4223
SELECT CASE - 82 WHEN 3 / + - 58 + - 89 THEN - 66 + 46 WHEN MAX ( ALL + CAST ( - 63 AS INTEGER ) ) THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4224
SELECT ALL + 34 * 53 + ( - 73 ) + - COUNT( DISTINCT - - 97 ) + 18 * 57 AS col1
----
2754

skipif mysql # not compatible
query I rowsort label-4224
SELECT ALL + 34 * 53 + ( - 73 ) + - COUNT ( DISTINCT - - 97 ) + 18 * 57 AS col1
----
2754

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4225
SELECT ALL COUNT( * ) * - CAST( NULL AS DECIMAL ) + - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-4225
SELECT ALL COUNT ( * ) * - CAST ( NULL AS REAL ) + - 20
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4226
SELECT DISTINCT ( 59 ) * + 2 + - - COUNT( * ) - ( + MAX( 65 ) ) + 92 * 21 AS col1
----
1986

skipif mysql # not compatible
query I rowsort label-4226
SELECT DISTINCT ( 59 ) * + 2 + - - COUNT ( * ) - ( + MAX ( 65 ) ) + 92 * 21 AS col1
----
1986

query I rowsort
SELECT - 13 * - 10 * 58 AS col2
----
7540

onlyif mysql # aggregate syntax: 
query I rowsort label-4228
SELECT ALL NULLIF ( 86, MIN( ALL - 90 ) )
----
86

skipif mysql # not compatible
query I rowsort label-4228
SELECT ALL NULLIF ( 86, MIN ( ALL - 90 ) )
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-4229
SELECT ALL - 43 DIV - 69 * - 40 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4229
SELECT ALL - 43 / - 69 * - 40 AS col1
----
0

query I rowsort
SELECT ALL ( + - 43 )
----
-43

query I rowsort
SELECT - 83 * + + ( - + 84 )
----
6972

query I rowsort
SELECT - 0 + CASE 58 WHEN + + 53 THEN 60 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 7 - - 1 AS col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4234
SELECT ALL + COUNT( ALL + 19 ) * + 97
----
97

skipif mysql # not compatible
query I rowsort label-4234
SELECT ALL + COUNT ( ALL + 19 ) * + 97
----
97

query II rowsort
SELECT 17 col0, + ( - 11 ) * - - 73
----
17
-803

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4236
SELECT ALL CASE 88 WHEN + - 90 THEN CAST( 37 AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4236
SELECT ALL CASE 88 WHEN + - 90 THEN CAST ( 37 AS INTEGER ) END
----
NULL

query I rowsort
SELECT DISTINCT - 79 - + 18 AS col0
----
-97

query II rowsort
SELECT - 30, 79 AS col2
----
-30
79

query I rowsort
SELECT - - 66 AS col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4240
SELECT ALL - - 56 - - - COUNT( * ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-4240
SELECT ALL - - 56 - - - COUNT ( * ) AS col1
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-4241
SELECT ALL + - COUNT( DISTINCT - 32 ) * - ( + - COUNT( * ) ), 94 AS col2
----
-1
94

skipif mysql # not compatible
query II rowsort label-4241
SELECT ALL + - COUNT ( DISTINCT - 32 ) * - ( + - COUNT ( * ) ), 94 AS col2
----
-1
94

query I rowsort
SELECT ALL - 65 - 43 * - 49 + - 6 + - 36 AS col0
----
2000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4243
SELECT ALL CASE - + 9 WHEN MAX( DISTINCT + 75 ) + + NULLIF ( + 76, + 8 * CAST( NULL AS SIGNED ) + - 16 ) + 81 THEN + 26 + + 31 / + 30 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4243
SELECT ALL CASE - + 9 WHEN MAX ( DISTINCT + 75 ) + + NULLIF ( + 76, + 8 * CAST ( NULL AS INTEGER ) + - 16 ) + 81 THEN + 26 + + 31 / + 30 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4244
SELECT ( - ( - 90 ) ) - - 5 + - SUM( ALL - 45 )
----
140

skipif mysql # not compatible
query I rowsort label-4244
SELECT ( - ( - 90 ) ) - - 5 + - SUM ( ALL - 45 )
----
140

query I rowsort
SELECT + 13 * 76 AS col0
----
988

query II rowsort
SELECT ALL - 48 AS col0, 42 * - ( + 67 ) AS col2
----
-48
-2814

onlyif mysql # aggregate syntax: 
query I rowsort label-4247
SELECT - + MAX( ALL 10 )
----
-10

skipif mysql # not compatible
query I rowsort label-4247
SELECT - + MAX ( ALL 10 )
----
-10

query II rowsort
SELECT 88 AS col1, - 4 AS col0
----
88
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-4249
SELECT + + 81, - 88 * MIN( + 27 ) AS col1
----
81
-2376

skipif mysql # not compatible
query II rowsort label-4249
SELECT + + 81, - 88 * MIN ( + 27 ) AS col1
----
81
-2376

query I rowsort
SELECT DISTINCT - - 44
----
44

query II rowsort
SELECT + 88, - 99 AS col1
----
88
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4252
SELECT ALL 32 + CASE ( - COUNT( * ) ) WHEN + ( - 13 ) * 64 + COUNT( * ) THEN NULL ELSE 78 + - COUNT( * ) END
----
109

skipif mysql # not compatible
query I rowsort label-4252
SELECT ALL 32 + CASE ( - COUNT ( * ) ) WHEN + ( - 13 ) * 64 + COUNT ( * ) THEN NULL ELSE 78 + - COUNT ( * ) END
----
109

query II rowsort
SELECT ALL - 4 col0, 91 col0
----
-4
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4254
SELECT ALL - 11 * - COALESCE ( - 34, + COUNT( * ) + + 19 ) AS col1
----
-374

skipif mysql # not compatible
query I rowsort label-4254
SELECT ALL - 11 * - COALESCE ( - 34, + COUNT ( * ) + + 19 ) AS col1
----
-374

query I rowsort
SELECT ALL - ( - 47 )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4256
SELECT - 59 * - MAX( - + 28 )
----
-1652

skipif mysql # not compatible
query I rowsort label-4256
SELECT - 59 * - MAX ( - + 28 )
----
-1652

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4257
SELECT - 22 AS col0, 98 DIV - + ( - + COUNT( * ) ) AS col0
----
-22
98

skipif mysql # not compatible
query II rowsort label-4257
SELECT - 22 AS col0, 98 / - + ( - + COUNT ( * ) ) AS col0
----
-22
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4258
SELECT - COUNT( 1 )
----
-1

skipif mysql # not compatible
query I rowsort label-4258
SELECT - COUNT ( 1 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4259
SELECT SUM( DISTINCT + 2 ) DIV 7 + 43 AS col1
----
43

skipif mysql # not compatible
query I rowsort label-4259
SELECT SUM ( DISTINCT + 2 ) / 7 + 43 AS col1
----
43

query I rowsort
SELECT ALL 85 + - 82 * + + 46 * - 82 AS col2
----
309389

onlyif mysql # aggregate syntax: 
query I rowsort label-4261
SELECT COUNT( * ) * + 61 + + 5 - - 89 + + + 87
----
242

skipif mysql # not compatible
query I rowsort label-4261
SELECT COUNT ( * ) * + 61 + + 5 - - 89 + + + 87
----
242

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4262
SELECT + 0 * + + COUNT( * ) - 8 / + + 43 / - COALESCE ( 49, + NULLIF ( 89, - ( - CASE 41 WHEN 72 + COUNT( DISTINCT + 96 ) / - 15 THEN + 21 END ) ) ) / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4262
SELECT + 0 * + + COUNT ( * ) - 8 / + + 43 / - COALESCE ( 49, + NULLIF ( 89, - ( - CASE 41 WHEN 72 + COUNT ( DISTINCT + 96 ) / - 15 THEN + 21 END ) ) ) / + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 26 AS col2
----
-26

query I rowsort
SELECT 62 col1
----
62

query I rowsort
SELECT ALL - 97 AS col2
----
-97

query II rowsort
SELECT DISTINCT 8 + 56 AS col0, - 32 AS col1
----
64
-32

query I rowsort
SELECT + 43 * 92 + - 69 AS col1
----
3887

onlyif mysql # aggregate syntax: 
query I rowsort label-4268
SELECT 71 * - COUNT( * ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-4268
SELECT 71 * - COUNT ( * ) AS col2
----
-71

query II rowsort
SELECT 77 + 82, 50 * - 17 AS col2
----
159
-850

onlyif mysql # aggregate syntax: 
query I rowsort label-4270
SELECT DISTINCT 30 - + - ( + MAX( ALL + + 29 ) ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-4270
SELECT DISTINCT 30 - + - ( + MAX ( ALL + + 29 ) ) AS col2
----
59

query I rowsort
SELECT 14 AS col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4272
SELECT 25 + + + ( - - 53 ) + + 19 * - - CASE + - 37 WHEN - - 65 THEN COUNT( * ) + 27 * 26 ELSE - 28 END * 94
----
-49930

skipif mysql # not compatible
query I rowsort label-4272
SELECT 25 + + + ( - - 53 ) + + 19 * - - CASE + - 37 WHEN - - 65 THEN COUNT ( * ) + 27 * 26 ELSE - 28 END * 94
----
-49930

query I rowsort
SELECT ALL 30 AS col0
----
30

query I rowsort
SELECT 96 * + - 90 AS col0
----
-8640

onlyif mysql # aggregate syntax: 
query I rowsort label-4275
SELECT ALL 77 * - CASE 26 WHEN - COUNT( * ) / - - 91 + + 97 THEN - 4 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4275
SELECT ALL 77 * - CASE 26 WHEN - COUNT ( * ) / - - 91 + + 97 THEN - 4 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT 94 * 53 AS col1
----
4982

query I rowsort
SELECT 12 + - ( + 67 ) AS col1
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-4278
SELECT CASE - COUNT( * ) WHEN + 31 THEN NULL WHEN 97 THEN + 17 END + - 72
----
NULL

skipif mysql # not compatible
query I rowsort label-4278
SELECT CASE - COUNT ( * ) WHEN + 31 THEN NULL WHEN 97 THEN + 17 END + - 72
----
NULL

query I rowsort
SELECT - ( 18 )
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4280
SELECT ALL COALESCE ( + 48, CAST( 70 AS SIGNED ) * 99 * + 1 + + + 54 - - 85 + 35, - 99 + 49 ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-4280
SELECT ALL COALESCE ( + 48, CAST ( 70 AS INTEGER ) * 99 * + 1 + + + 54 - - 85 + 35, - 99 + 49 ) AS col1
----
48

query I rowsort
SELECT 14 + 59 AS col1
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4282
SELECT + 27 DIV + ( - + COUNT( DISTINCT - - 70 ) ) + 38 + + 97 * + 94 AS col0
----
9129

skipif mysql # not compatible
query I rowsort label-4282
SELECT + 27 / + ( - + COUNT ( DISTINCT - - 70 ) ) + 38 + + 97 * + 94 AS col0
----
9129

onlyif mysql # aggregate syntax: 
query I rowsort label-4283
SELECT - NULLIF ( - - NULLIF ( - COUNT( * ), - - ( - ( - - 41 ) ) + 35 ), - 61 ) + 0 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4283
SELECT - NULLIF ( - - NULLIF ( - COUNT ( * ), - - ( - ( - - 41 ) ) + 35 ), - 61 ) + 0 AS col1
----
1

query I rowsort
SELECT 3 - + 86 AS col1
----
-83

query I rowsort
SELECT - 50 + 77 * - 56 * - 2 AS col1
----
8574

query I rowsort
SELECT - 20 - + 54
----
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-4287
SELECT 52 DIV + 83 * 62 * 81 + + 38
----
38

skipif mysql # not compatible
query I rowsort label-4287
SELECT 52 / + 83 * 62 * 81 + + 38
----
38

query I rowsort
SELECT ALL 33 + 87 - 23 * - 18 * - 8 * + 91 + + + 48
----
-301224

query I rowsort
SELECT 83 + + 54 * 74
----
4079

query I rowsort
SELECT DISTINCT + 73 * - 34 AS col1
----
-2482

query I rowsort
SELECT ALL - + 66 + - - 43 AS col0
----
-23

query II rowsort
SELECT + 86 + 85 AS col1, + 21 * - 30 AS col2
----
171
-630

query I rowsort
SELECT DISTINCT - 82 + - 89 AS col0
----
-171

onlyif mysql # aggregate syntax: 
query II rowsort label-4294
SELECT ( - COUNT( * ) ) AS col2, 52 col2
----
-1
52

skipif mysql # not compatible
query II rowsort label-4294
SELECT ( - COUNT ( * ) ) AS col2, 52 col2
----
-1
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4295
SELECT ALL + COUNT( * ) * - COUNT( * ) + - 19 AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-4295
SELECT ALL + COUNT ( * ) * - COUNT ( * ) + - 19 AS col0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-4296
SELECT + COALESCE ( + MAX( - 29 ), - 31, + - 58 ) AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-4296
SELECT + COALESCE ( + MAX ( - 29 ), - 31, + - 58 ) AS col0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-4297
SELECT - COUNT( DISTINCT + 3 )
----
-1

skipif mysql # not compatible
query I rowsort label-4297
SELECT - COUNT ( DISTINCT + 3 )
----
-1

query I rowsort
SELECT 56 * - + 6
----
-336

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4299
SELECT 91 + + 28 + - - COUNT( + 35 ) + + COUNT( * ) + - MAX( + 54 ) + 93 * + CAST( NULL AS SIGNED ) / - COALESCE ( + 85, CAST( NULL AS SIGNED ) ) * 75
----
NULL

skipif mysql # not compatible
query I rowsort label-4299
SELECT 91 + + 28 + - - COUNT ( + 35 ) + + COUNT ( * ) + - MAX ( + 54 ) + 93 * + CAST ( NULL AS INTEGER ) / - COALESCE ( + 85, CAST ( NULL AS INTEGER ) ) * 75
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4300
SELECT DISTINCT 96 * - COUNT( * ) AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-4300
SELECT DISTINCT 96 * - COUNT ( * ) AS col1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4301
SELECT DISTINCT 2 * - SUM( ALL + 67 ) + + 60 + + - 91
----
-165

skipif mysql # not compatible
query I rowsort label-4301
SELECT DISTINCT 2 * - SUM ( ALL + 67 ) + + 60 + + - 91
----
-165

query I rowsort
SELECT 81 * 73 AS col1
----
5913

onlyif mysql # aggregate syntax: 
query I rowsort label-4303
SELECT ALL + 52 * - COALESCE ( COUNT( * ), - ( 39 ) - - 37 ) AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-4303
SELECT ALL + 52 * - COALESCE ( COUNT ( * ), - ( 39 ) - - 37 ) AS col1
----
-52

query I rowsort
SELECT DISTINCT + 43 * - 17 AS col0
----
-731

query I rowsort
SELECT ALL - 80 * - 3
----
240

onlyif mysql # aggregate syntax: 
query I rowsort label-4306
SELECT ALL + COUNT( * ) - - + 4 * + + 46 * - + 68 - 60 * - 22 + - NULLIF ( - + ( NULLIF ( + MIN( ALL + ( 35 ) ), - 2 * + COUNT( * ) ) ), 97 ) + 11 AS col1
----
-11145

skipif mysql # not compatible
query I rowsort label-4306
SELECT ALL + COUNT ( * ) - - + 4 * + + 46 * - + 68 - 60 * - 22 + - NULLIF ( - + ( NULLIF ( + MIN ( ALL + ( 35 ) ), - 2 * + COUNT ( * ) ) ), 97 ) + 11 AS col1
----
-11145

onlyif mysql # aggregate syntax: 
query I rowsort label-4307
SELECT 71 - - COUNT( * ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-4307
SELECT 71 - - COUNT ( * ) AS col0
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4308
SELECT NULLIF ( + - 62, - 95 + + COUNT( ALL - CAST( NULL AS SIGNED ) ) ) * + 2 * - 17 + - + 65 AS col1
----
2043

skipif mysql # not compatible
query I rowsort label-4308
SELECT NULLIF ( + - 62, - 95 + + COUNT ( ALL - CAST ( NULL AS INTEGER ) ) ) * + 2 * - 17 + - + 65 AS col1
----
2043

query I rowsort
SELECT 80 - 62
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4310
SELECT 16 * + - 23 * + - COUNT( * ) AS col2
----
368

skipif mysql # not compatible
query I rowsort label-4310
SELECT 16 * + - 23 * + - COUNT ( * ) AS col2
----
368

query I rowsort
SELECT ALL - 51 AS col0
----
-51

query I rowsort
SELECT 80 * + 67 * 94 + - 47 AS col0
----
503793

query I rowsort
SELECT + 47 * + 72 AS col1
----
3384

onlyif mysql # aggregate syntax: 
query II rowsort label-4314
SELECT 81 * + + NULLIF ( - + 13, - 54 ) + COUNT( * ) * - 57 AS col0, 19 + - COUNT( ALL 55 )
----
-1110
18

skipif mysql # not compatible
query II rowsort label-4314
SELECT 81 * + + NULLIF ( - + 13, - 54 ) + COUNT ( * ) * - 57 AS col0, 19 + - COUNT ( ALL 55 )
----
-1110
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4315
SELECT + 24 - - CASE - 85 WHEN + 42 THEN + - COUNT( ALL 77 ) * + ( - 33 ) WHEN CAST( + 78 AS SIGNED ) THEN 92 ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4315
SELECT + 24 - - CASE - 85 WHEN + 42 THEN + - COUNT ( ALL 77 ) * + ( - 33 ) WHEN CAST ( + 78 AS INTEGER ) THEN 92 ELSE NULL END col1
----
NULL

query I rowsort
SELECT ALL 84 AS col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4317
SELECT ALL COUNT( * ) * - 71
----
-71

skipif mysql # not compatible
query I rowsort label-4317
SELECT ALL COUNT ( * ) * - 71
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4318
SELECT - 99 AS col2, + COUNT( * ) DIV COUNT( * ) AS col1
----
-99
1

skipif mysql # not compatible
query II rowsort label-4318
SELECT - 99 AS col2, + COUNT ( * ) / COUNT ( * ) AS col1
----
-99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4319
SELECT DISTINCT - COUNT( * ) * - 26
----
26

skipif mysql # not compatible
query I rowsort label-4319
SELECT DISTINCT - COUNT ( * ) * - 26
----
26

query I rowsort
SELECT ALL 65 * + 19 * - + 52 AS col1
----
-64220

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4321
SELECT + CAST( NULL AS SIGNED ) * - 4
----
NULL

skipif mysql # not compatible
query I rowsort label-4321
SELECT + CAST ( NULL AS INTEGER ) * - 4
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4322
SELECT - - 94 + + + COUNT( * ) + + + CASE 92 WHEN - - 12 THEN - + 93 - - CAST( + + COALESCE ( 56, 88 ) AS SIGNED ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4322
SELECT - - 94 + + + COUNT ( * ) + + + CASE 92 WHEN - - 12 THEN - + 93 - - CAST ( + + COALESCE ( 56, 88 ) AS INTEGER ) ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4323
SELECT ALL - - 14 + - 88 + + CAST( - COUNT( * ) AS SIGNED )
----
-75

skipif mysql # not compatible
query I rowsort label-4323
SELECT ALL - - 14 + - 88 + + CAST ( - COUNT ( * ) AS INTEGER )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4324
SELECT ( - MIN( DISTINCT 0 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4324
SELECT ( - MIN ( DISTINCT 0 ) ) AS col0
----
0

query I rowsort
SELECT ALL - 44 + - 81
----
-125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4326
SELECT + - ( - CASE + SUM( DISTINCT - + 68 ) WHEN - 92 THEN 85 END ) * + 27 / CAST( + NULLIF ( - 23, COUNT( * ) ) AS SIGNED ) * + 87 + NULLIF ( - ( - 30 ), + 53 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4326
SELECT + - ( - CASE + SUM ( DISTINCT - + 68 ) WHEN - 92 THEN 85 END ) * + 27 / CAST ( + NULLIF ( - 23, COUNT ( * ) ) AS INTEGER ) * + 87 + NULLIF ( - ( - 30 ), + 53 ) AS col2
----
NULL

query II rowsort
SELECT ALL 61 AS col1, - 51 AS col0
----
61
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4328
SELECT DISTINCT NULLIF ( - COUNT( * ), 94 ) + + 84 AS col1
----
83

skipif mysql # not compatible
query I rowsort label-4328
SELECT DISTINCT NULLIF ( - COUNT ( * ), 94 ) + + 84 AS col1
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4329
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) + + - 76 DIV - 40 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-4329
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) + + - 76 / - 40 AS col0
----
2

query I rowsort
SELECT + 23 - - 77
----
100

query II rowsort
SELECT - - 46, 21 + + 28 col0
----
46
49

query I rowsort
SELECT - 34 col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4333
SELECT ALL 67 + - SUM( - + 50 ) AS col0
----
117

skipif mysql # not compatible
query I rowsort label-4333
SELECT ALL 67 + - SUM ( - + 50 ) AS col0
----
117

onlyif mysql # DIV for integer division: 
query I rowsort label-4334
SELECT DISTINCT + + NULLIF ( + 94, - - 37 ) DIV + - 71
----
-1

skipif mysql # not compatible
query I rowsort label-4334
SELECT DISTINCT + + NULLIF ( + 94, - - 37 ) / + - 71
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4335
SELECT + 50 + - - 46 * + - NULLIF ( - 30, + - NULLIF ( - COUNT( * ), 60 * - + 39 ) + ( 52 + AVG ( 26 ) ) ) * + 49
----
67670

skipif mysql # not compatible
query I rowsort label-4335
SELECT + 50 + - - 46 * + - NULLIF ( - 30, + - NULLIF ( - COUNT ( * ), 60 * - + 39 ) + ( 52 + AVG ( 26 ) ) ) * + 49
----
67670

query I rowsort
SELECT - - 67
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4337
SELECT ALL NULLIF ( - 49, + + CASE + 4 WHEN 47 * - 31 + - - 35 * 43 THEN NULL WHEN 27 * COUNT( * ) THEN + CAST( - 67 AS SIGNED ) * COALESCE ( 55, 94 ) END + 40 * 32 )
----
-49

skipif mysql # not compatible
query I rowsort label-4337
SELECT ALL NULLIF ( - 49, + + CASE + 4 WHEN 47 * - 31 + - - 35 * 43 THEN NULL WHEN 27 * COUNT ( * ) THEN + CAST ( - 67 AS INTEGER ) * COALESCE ( 55, 94 ) END + 40 * 32 )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-4338
SELECT + SUM( ALL - 8 ) col0
----
-8

skipif mysql # not compatible
query I rowsort label-4338
SELECT + SUM ( ALL - 8 ) col0
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-4339
SELECT - + 17 DIV + 86
----
0

skipif mysql # not compatible
query I rowsort label-4339
SELECT - + 17 / + 86
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4340
SELECT DISTINCT + 28, + COUNT( * ) AS col1
----
28
1

skipif mysql # not compatible
query II rowsort label-4340
SELECT DISTINCT + 28, + COUNT ( * ) AS col1
----
28
1

query I rowsort
SELECT ALL + 7 col1
----
7

query I rowsort
SELECT ALL 26 * + 59
----
1534

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4343
SELECT + 91 * + + ( MIN( DISTINCT - COALESCE ( NULLIF ( 15, - 85 ), + - 40 * - ( + 11 ) ) ) ) - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4343
SELECT + 91 * + + ( MIN ( DISTINCT - COALESCE ( NULLIF ( 15, - 85 ), + - 40 * - ( + 11 ) ) ) ) - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + ( + - ( + 75 ) )
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4345
SELECT ALL 10 * + + 77 - - - 88 * + ( 16 ) + - SUM( 17 ) + - + CASE - + MIN( ALL 76 ) WHEN 48 THEN NULL WHEN - CASE - CAST( - 15 AS SIGNED ) WHEN - ( - 71 ) THEN NULL WHEN + ( + 99 ) * COUNT( * ) + - 55 THEN NULLIF ( - 68, - 53 ) + + COUNT( * ) END + + 35 THEN + 30 END * - 72 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4345
SELECT ALL 10 * + + 77 - - - 88 * + ( 16 ) + - SUM ( 17 ) + - + CASE - + MIN ( ALL 76 ) WHEN 48 THEN NULL WHEN - CASE - CAST ( - 15 AS INTEGER ) WHEN - ( - 71 ) THEN NULL WHEN + ( + 99 ) * COUNT ( * ) + - 55 THEN NULLIF ( - 68, - 53 ) + + COUNT ( * ) END + + 35 THEN + 30 END * - 72 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4346
SELECT + COUNT( * ) * - ( - 8 )
----
8

skipif mysql # not compatible
query I rowsort label-4346
SELECT + COUNT ( * ) * - ( - 8 )
----
8

query I rowsort
SELECT ( - 58 ) col0
----
-58

query I rowsort
SELECT ALL + 35 AS col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4349
SELECT NULLIF ( - SUM( DISTINCT + + 13 ), 62 * 4 * + 3 ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-4349
SELECT NULLIF ( - SUM ( DISTINCT + + 13 ), 62 * 4 * + 3 ) AS col0
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4350
SELECT + CAST( NULL AS SIGNED ) / - 3 + + + 57 - 39
----
NULL

skipif mysql # not compatible
query I rowsort label-4350
SELECT + CAST ( NULL AS INTEGER ) / - 3 + + + 57 - 39
----
NULL

query I rowsort
SELECT ALL + 25 col0
----
25

query I rowsort
SELECT NULLIF ( - ( - 88 ), 35 ) AS col2
----
88

query I rowsort
SELECT DISTINCT + 67 AS col2
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4354
SELECT ALL + SUM( DISTINCT - CAST( 49 AS SIGNED ) ) * - 79
----
3871

skipif mysql # not compatible
query I rowsort label-4354
SELECT ALL + SUM ( DISTINCT - CAST ( 49 AS INTEGER ) ) * - 79
----
3871

onlyif mysql # DIV for integer division: 
query I rowsort label-4355
SELECT - 48 DIV + + 64
----
0

skipif mysql # not compatible
query I rowsort label-4355
SELECT - 48 / + + 64
----
0

query I rowsort
SELECT ALL + COALESCE ( - 83, 67 )
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-4357
SELECT DISTINCT + COALESCE ( + + COALESCE ( - - 29, - + 35, 5 * - + 40 * + SUM( + - 60 ) ), - 21 ) * 83
----
2407

skipif mysql # not compatible
query I rowsort label-4357
SELECT DISTINCT + COALESCE ( + + COALESCE ( - - 29, - + 35, 5 * - + 40 * + SUM ( + - 60 ) ), - 21 ) * 83
----
2407

query I rowsort
SELECT DISTINCT + 57
----
57

query I rowsort
SELECT ALL + 95 * - 65
----
-6175

onlyif mysql # DIV for integer division: 
query I rowsort label-4360
SELECT + 18 DIV 25 * 93 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4360
SELECT + 18 / 25 * 93 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4361
SELECT ALL + COUNT( - 23 )
----
1

skipif mysql # not compatible
query I rowsort label-4361
SELECT ALL + COUNT ( - 23 )
----
1

query I rowsort
SELECT + + 66 AS col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4363
SELECT COALESCE ( CASE 58 WHEN 27 * - COUNT( * ) + - 51 * SUM( DISTINCT + - 24 ) THEN NULL ELSE 12 * - 17 END, + 36 ) AS col2
----
-204

skipif mysql # not compatible
query I rowsort label-4363
SELECT COALESCE ( CASE 58 WHEN 27 * - COUNT ( * ) + - 51 * SUM ( DISTINCT + - 24 ) THEN NULL ELSE 12 * - 17 END, + 36 ) AS col2
----
-204

query I rowsort
SELECT - + 56 AS col2
----
-56

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4365
SELECT - + 28 DIV + NULLIF ( CAST( + 86 AS SIGNED ), + 67 )
----
0

skipif mysql # not compatible
query I rowsort label-4365
SELECT - + 28 / + NULLIF ( CAST ( + 86 AS INTEGER ), + 67 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4366
SELECT + + CAST( NULL AS SIGNED ) * + 96 + + + COALESCE ( - AVG ( 18 ), - + 15 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4366
SELECT + + CAST ( NULL AS INTEGER ) * + 96 + + + COALESCE ( - AVG ( 18 ), - + 15 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4367
SELECT ALL 71 + + - CASE - + 3 WHEN 77 + + - 15 THEN NULL WHEN - COUNT( * ) THEN 82 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4367
SELECT ALL 71 + + - CASE - + 3 WHEN 77 + + - 15 THEN NULL WHEN - COUNT ( * ) THEN 82 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4368
SELECT - 66 * + 77 - + COUNT( * ) AS col0
----
-5083

skipif mysql # not compatible
query I rowsort label-4368
SELECT - 66 * + 77 - + COUNT ( * ) AS col0
----
-5083

onlyif mysql # aggregate syntax: 
query I rowsort label-4369
SELECT MIN( + 57 )
----
57

skipif mysql # not compatible
query I rowsort label-4369
SELECT MIN ( + 57 )
----
57

query I rowsort
SELECT ALL CASE + - 17 WHEN - 72 * 89 THEN NULL WHEN - 77 THEN 29 * - 56 - - - 56 END
----
NULL

query I rowsort
SELECT DISTINCT + + 32 + + 27
----
59

query I rowsort
SELECT DISTINCT - 53 AS col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-4373
SELECT ALL 99 * + + 79 + + + 34 * + 16 * - COUNT( * )
----
7277

skipif mysql # not compatible
query I rowsort label-4373
SELECT ALL 99 * + + 79 + + + 34 * + 16 * - COUNT ( * )
----
7277

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4374
SELECT ALL COUNT( * ) + - - CAST( - COUNT( 90 ) AS SIGNED ) DIV 12 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4374
SELECT ALL COUNT ( * ) + - - CAST ( - COUNT ( 90 ) AS INTEGER ) / 12 AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4375
SELECT - - 1 + + COUNT( * ) * + COUNT( * ) DIV - + 61
----
1

skipif mysql # not compatible
query I rowsort label-4375
SELECT - - 1 + + COUNT ( * ) * + COUNT ( * ) / - + 61
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4376
SELECT ALL + COUNT( * ) * 71
----
71

skipif mysql # not compatible
query I rowsort label-4376
SELECT ALL + COUNT ( * ) * 71
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4377
SELECT + + 21 - 63, COALESCE ( 39, + 77 * + CAST( 74 AS SIGNED ) - - 21 + 29 ) AS col2
----
-42
39

skipif mysql # not compatible
query II rowsort label-4377
SELECT + + 21 - 63, COALESCE ( 39, + 77 * + CAST ( 74 AS INTEGER ) - - 21 + 29 ) AS col2
----
-42
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4378
SELECT + - 52 + SUM( - 44 ) AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-4378
SELECT + - 52 + SUM ( - 44 ) AS col0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4379
SELECT - - 46 + + COUNT( * ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-4379
SELECT - - 46 + + COUNT ( * ) AS col0
----
47

query I rowsort
SELECT ALL - 41 - + - 87 - - 86 + + 5 + + - 95 * + COALESCE ( + 77, + 61 ) + + 26 * - 76
----
-9154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4381
SELECT - CAST( 43 AS SIGNED )
----
-43

skipif mysql # not compatible
query I rowsort label-4381
SELECT - CAST ( 43 AS INTEGER )
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4382
SELECT ALL ( + 49 ) - - - 39 / + 9 / + - CAST( NULL AS SIGNED ) * 27 + + CASE + + 46 WHEN - 64 THEN 71 WHEN CASE 98 WHEN + CAST( 93 AS DECIMAL ) THEN - 12 * - COUNT( * ) WHEN 65 THEN - 25 + 27 END * SUM( ALL 0 ) THEN 87 + - 25 ELSE NULL END * + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-4382
SELECT ALL ( + 49 ) - - - 39 / + 9 / + - CAST ( NULL AS INTEGER ) * 27 + + CASE + + 46 WHEN - 64 THEN 71 WHEN CASE 98 WHEN + CAST ( 93 AS REAL ) THEN - 12 * - COUNT ( * ) WHEN 65 THEN - 25 + 27 END * SUM ( ALL 0 ) THEN 87 + - 25 ELSE NULL END * + 98
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4383
SELECT + COUNT( * ) + + 33 + + 50 DIV + 30
----
35

skipif mysql # not compatible
query I rowsort label-4383
SELECT + COUNT ( * ) + + 33 + + 50 / + 30
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-4384
SELECT ALL + 97 DIV 9
----
10

skipif mysql # not compatible
query I rowsort label-4384
SELECT ALL + 97 / 9
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4385
SELECT + CAST( NULL AS SIGNED ) + - - CAST( 61 AS SIGNED ) AS col2, 69 + - 61
----
NULL
8

skipif mysql # not compatible
query II rowsort label-4385
SELECT + CAST ( NULL AS INTEGER ) + - - CAST ( 61 AS INTEGER ) AS col2, 69 + - 61
----
NULL
8

onlyif mysql # DIV for integer division: 
query I rowsort label-4386
SELECT + ( 2 ) DIV 91
----
0

skipif mysql # not compatible
query I rowsort label-4386
SELECT + ( 2 ) / 91
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4387
SELECT 98 DIV 80 + + - 41 * - 75
----
3076

skipif mysql # not compatible
query I rowsort label-4387
SELECT 98 / 80 + + - 41 * - 75
----
3076

query I rowsort
SELECT - 66 * - 84
----
5544

query I rowsort
SELECT - 84 + + 28
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-4390
SELECT + 96 * + COUNT( * ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-4390
SELECT + 96 * + COUNT ( * ) AS col1
----
96

query I rowsort
SELECT DISTINCT - 80 * - 44
----
3520

onlyif mysql # aggregate syntax: 
query I rowsort label-4392
SELECT ALL + COUNT( * ) * + COALESCE ( + 57, + 34 * - CASE - ( - COUNT( * ) ) WHEN + - 55 * - 10 * - 22 + + 55 THEN NULL ELSE NULLIF ( 3, COUNT( ALL + 34 ) + 69 ) * - ( - 75 ) END + 96 ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-4392
SELECT ALL + COUNT ( * ) * + COALESCE ( + 57, + 34 * - CASE - ( - COUNT ( * ) ) WHEN + - 55 * - 10 * - 22 + + 55 THEN NULL ELSE NULLIF ( 3, COUNT ( ALL + 34 ) + 69 ) * - ( - 75 ) END + 96 ) AS col2
----
57

query I rowsort
SELECT 0 * - 99
----
0

query I rowsort
SELECT DISTINCT + 8 * + - 85
----
-680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4395
SELECT DISTINCT 71 * + CAST( NULL AS SIGNED ) * + 0 * 36 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4395
SELECT DISTINCT 71 * + CAST ( NULL AS INTEGER ) * + 0 * 36 AS col2
----
NULL

query I rowsort
SELECT ALL - ( 88 ) AS col2
----
-88

query I rowsort
SELECT 22 + - - 89
----
111

query I rowsort
SELECT DISTINCT + 17 + - - 41 * 22 * + 66 * + - ( + 41 )
----
-2440795

query II rowsort
SELECT + 27 AS col1, - ( - + 32 ) * - 74
----
27
-2368

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4400
SELECT CAST( NULL AS DECIMAL ) - + 79 + - ( + + 44 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4400
SELECT CAST ( NULL AS REAL ) - + 79 + - ( + + 44 )
----
NULL

query I rowsort
SELECT 12 * 78 * + + 21 AS col1
----
19656

query I rowsort
SELECT 15 - + + 43 - ( + 61 ) AS col2
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4403
SELECT CAST( - 75 AS SIGNED )
----
-75

skipif mysql # not compatible
query I rowsort label-4403
SELECT CAST ( - 75 AS INTEGER )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4404
SELECT MAX( ALL COALESCE ( 82, 23, - 42 * + 39 ) ) * - 29 * 93 + + - ( + 29 ) * - 12 AS col0
----
-220806

skipif mysql # not compatible
query I rowsort label-4404
SELECT MAX ( ALL COALESCE ( 82, 23, - 42 * + 39 ) ) * - 29 * 93 + + - ( + 29 ) * - 12 AS col0
----
-220806

onlyif mysql # aggregate syntax: 
query I rowsort label-4405
SELECT DISTINCT - COUNT( * ) + - + COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-4405
SELECT DISTINCT - COUNT ( * ) + - + COUNT ( * )
----
-2

query I rowsort
SELECT ALL - - 86 AS col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4407
SELECT ALL - COUNT( * ) + + - ( - - CASE - + 32 WHEN 53 THEN - 47 WHEN - 23 + - COUNT( * ) + - 18 THEN NULL END ) * + 24 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4407
SELECT ALL - COUNT ( * ) + + - ( - - CASE - + 32 WHEN 53 THEN - 47 WHEN - 23 + - COUNT ( * ) + - 18 THEN NULL END ) * + 24 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4408
SELECT ALL COUNT( * ) col1, 0 AS col2
----
1
0

skipif mysql # not compatible
query II rowsort label-4408
SELECT ALL COUNT ( * ) col1, 0 AS col2
----
1
0

query I rowsort
SELECT DISTINCT + + 30 + + 41 * - - 18 * 5 * 51 + 76 AS col1
----
188296

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4410
SELECT ALL - 11 + + NULLIF ( 11, - CAST( NULL AS SIGNED ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4410
SELECT ALL - 11 + + NULLIF ( 11, - CAST ( NULL AS INTEGER ) ) AS col0
----
0

query I rowsort
SELECT - + 83 AS col2
----
-83

query I rowsort
SELECT NULLIF ( + 42, + 93 ) * + 26
----
1092

query I rowsort
SELECT - + 60
----
-60

query I rowsort
SELECT - 89 + 88 col0
----
-1

query I rowsort
SELECT DISTINCT 74 AS col0
----
74

query I rowsort
SELECT ALL - 96
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-4417
SELECT DISTINCT - + 25 DIV + 73
----
0

skipif mysql # not compatible
query I rowsort label-4417
SELECT DISTINCT - + 25 / + 73
----
0

query I rowsort
SELECT 61 - + - 26 AS col0
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4419
SELECT CAST( NULL AS SIGNED ) * - - 83 * 47 * + - COALESCE ( NULLIF ( + 63, - NULLIF ( + 28, + COUNT( * ) ) ), - + 48, - 40 + 41 * + 1 ) * + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4419
SELECT CAST ( NULL AS INTEGER ) * - - 83 * 47 * + - COALESCE ( NULLIF ( + 63, - NULLIF ( + 28, + COUNT ( * ) ) ), - + 48, - 40 + 41 * + 1 ) * + COUNT ( * ) AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-4420
SELECT DISTINCT COUNT ( * ) * + 79 / - + 71 AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4421
SELECT 81 + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4421
SELECT 81 + + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4422
SELECT ALL 66 * - + COUNT( * ) AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-4422
SELECT ALL 66 * - + COUNT ( * ) AS col0
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4423
SELECT ALL - 21 * + CAST( NULL AS SIGNED ) * + ( - COUNT( ALL - + 79 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4423
SELECT ALL - 21 * + CAST ( NULL AS INTEGER ) * + ( - COUNT ( ALL - + 79 ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4424
SELECT - NULLIF ( - 4, 90 * 48 * - 76 + - 36 + - - COUNT( * ) + + 80 + - CAST( - COUNT( * ) AS SIGNED ) * ( + ( 32 ) ) + - COUNT( * ) ) * 9 - + 96 * - 87
----
8388

skipif mysql # not compatible
query I rowsort label-4424
SELECT - NULLIF ( - 4, 90 * 48 * - 76 + - 36 + - - COUNT ( * ) + + 80 + - CAST ( - COUNT ( * ) AS INTEGER ) * ( + ( 32 ) ) + - COUNT ( * ) ) * 9 - + 96 * - 87
----
8388

query I rowsort
SELECT ALL 13 * 12 col2
----
156

query I rowsort
SELECT ALL 19 + 0 AS col2
----
19

query I rowsort
SELECT 22 * - 20 * - + 62 AS col0
----
27280

query I rowsort
SELECT ( - 95 ) + - - 83
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4429
SELECT ALL COUNT( * ) + ( COUNT( * ) )
----
2

skipif mysql # not compatible
query I rowsort label-4429
SELECT ALL COUNT ( * ) + ( COUNT ( * ) )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4430
SELECT 58 AS col2, - NULLIF ( - 19, - 98 + + + 83 ) * + + CAST( 50 AS SIGNED ) + - 62 + - - 55
----
58
943

skipif mysql # not compatible
query II rowsort label-4430
SELECT 58 AS col2, - NULLIF ( - 19, - 98 + + + 83 ) * + + CAST ( 50 AS INTEGER ) + - 62 + - - 55
----
58
943

onlyif mysql # aggregate syntax: 
query I rowsort label-4431
SELECT ALL NULLIF ( - 12, - ( - + 57 ) ) + + ( - - COUNT( * ) ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-4431
SELECT ALL NULLIF ( - 12, - ( - + 57 ) ) + + ( - - COUNT ( * ) ) AS col2
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4432
SELECT ALL 0 DIV - - COALESCE ( - CASE + 30 WHEN - + 37 * - 14 + - 77 + - - 76 THEN - COUNT( * ) END, + 74 DIV + NULLIF ( ( 60 ), - 15 ) + 70 )
----
0

skipif mysql # not compatible
query I rowsort label-4432
SELECT ALL 0 / - - COALESCE ( - CASE + 30 WHEN - + 37 * - 14 + - 77 + - - 76 THEN - COUNT ( * ) END, + 74 / + NULLIF ( ( 60 ), - 15 ) + 70 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4433
SELECT 12 DIV + ( 81 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-4433
SELECT 12 / + ( 81 ) col1
----
0

query I rowsort
SELECT + 0 * + 49 - - ( - 33 )
----
-33

query II rowsort
SELECT + 82, - 74 - - 30 AS col0
----
82
-44

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4436
SELECT 24 + + - 60 - + CAST( 40 AS SIGNED ) - - - ( - - 11 ) DIV - - 27 AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-4436
SELECT 24 + + - 60 - + CAST ( 40 AS INTEGER ) - - - ( - - 11 ) / - - 27 AS col0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4437
SELECT NULLIF ( 92, COUNT( * ) ) col1
----
92

skipif mysql # not compatible
query I rowsort label-4437
SELECT NULLIF ( 92, COUNT ( * ) ) col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4438
SELECT ALL MIN( - - 15 ) + - 14 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4438
SELECT ALL MIN ( - - 15 ) + - 14 AS col2
----
1

query II rowsort
SELECT DISTINCT - ( - 6 ) AS col1, ( + - 91 ) + - 42 AS col2
----
6
-133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4440
SELECT ALL - + CASE 1 WHEN + 14 * + COUNT( * ) + - 53 + + CAST( - - 34 AS SIGNED ) + + 7 * ( - 30 ) - + ( COUNT( * ) ) * + 85 * - 55 THEN NULL WHEN - 37 THEN NULL WHEN 82 + 62 THEN 74 * 49 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4440
SELECT ALL - + CASE 1 WHEN + 14 * + COUNT ( * ) + - 53 + + CAST ( - - 34 AS INTEGER ) + + 7 * ( - 30 ) - + ( COUNT ( * ) ) * + 85 * - 55 THEN NULL WHEN - 37 THEN NULL WHEN 82 + 62 THEN 74 * 49 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4441
SELECT 3 * + CASE + - COUNT( * ) WHEN COUNT( * ) * - ( - - 51 ) * - + ( + 16 ) THEN + 25 WHEN - - 32 - - COUNT( * ) THEN - 31 WHEN 46 * 67 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4441
SELECT 3 * + CASE + - COUNT ( * ) WHEN COUNT ( * ) * - ( - - 51 ) * - + ( + 16 ) THEN + 25 WHEN - - 32 - - COUNT ( * ) THEN - 31 WHEN 46 * 67 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - ( - 59 ) * + 50 * + + 73 * - 39 col1
----
-8398650

onlyif mysql # aggregate syntax: 
query II rowsort label-4443
SELECT MIN( ALL 89 ) + + NULLIF ( 96, - 35 ) + - 66 AS col1, + 15 - - 95 AS col0
----
119
110

skipif mysql # not compatible
query II rowsort label-4443
SELECT MIN ( ALL 89 ) + + NULLIF ( 96, - 35 ) + - 66 AS col1, + 15 - - 95 AS col0
----
119
110

onlyif mysql # aggregate syntax: 
query I rowsort label-4444
SELECT COUNT( DISTINCT - 15 )
----
1

skipif mysql # not compatible
query I rowsort label-4444
SELECT COUNT ( DISTINCT - 15 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4445
SELECT + CAST( NULL AS SIGNED ) AS col0, 27
----
NULL
27

skipif mysql # not compatible
query II rowsort label-4445
SELECT + CAST ( NULL AS INTEGER ) AS col0, 27
----
NULL
27

query I rowsort
SELECT 83 + - + 25 * + ( - 64 ) + + 52 AS col2
----
1735

onlyif mysql # aggregate syntax: 
query I rowsort label-4447
SELECT + + COUNT( + ( - 28 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4447
SELECT + + COUNT ( + ( - 28 ) ) AS col0
----
1

query I rowsort
SELECT - 3 + + + 31
----
28

query II rowsort
SELECT + 85 col0, - 46
----
85
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4450
SELECT DISTINCT + - COUNT( * ) - + 28
----
-29

skipif mysql # not compatible
query I rowsort label-4450
SELECT DISTINCT + - COUNT ( * ) - + 28
----
-29

query II rowsort
SELECT ALL - 62 AS col0, 95 * - 65
----
-62
-6175

query I rowsort
SELECT DISTINCT 3 AS col2
----
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4453
SELECT - 44 * + + CAST( + - AVG ( + NULLIF ( + 50, - - 35 ) ) AS SIGNED ), + 10 * - COALESCE ( - + 31, + 18 DIV - 93 ) * 48 AS col2
----
2200
14880

skipif mysql # not compatible
query II rowsort label-4453
SELECT - 44 * + + CAST ( + - AVG ( + NULLIF ( + 50, - - 35 ) ) AS INTEGER ), + 10 * - COALESCE ( - + 31, + 18 / - 93 ) * 48 AS col2
----
2200
14880

query I rowsort
SELECT + ( + 97 ) + + 79 + - 8 col0
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-4455
SELECT ALL MIN( - - 47 )
----
47

skipif mysql # not compatible
query I rowsort label-4455
SELECT ALL MIN ( - - 47 )
----
47

query I rowsort
SELECT + 66 + 59
----
125

query I rowsort
SELECT 31 + 72
----
103

onlyif mysql # DIV for integer division: 
query I rowsort label-4458
SELECT + 10 * 77 DIV + - 1 + + 88 * - 71
----
-7018

skipif mysql # not compatible
query I rowsort label-4458
SELECT + 10 * 77 / + - 1 + + 88 * - 71
----
-7018

query II rowsort
SELECT ALL - - COALESCE ( - 28, + 93, 10, + 62 ) * - 41 * 80 AS col1, + 57 * 25
----
91840
1425

onlyif mysql # aggregate syntax: 
query I rowsort label-4460
SELECT 71 + ( - + 25 ) + - 60 + + COUNT( * ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-4460
SELECT 71 + ( - + 25 ) + - 60 + + COUNT ( * ) AS col1
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-4461
SELECT ALL MIN( ALL + 50 ) col0, + 46 + - 56 AS col0
----
50
-10

skipif mysql # not compatible
query II rowsort label-4461
SELECT ALL MIN ( ALL + 50 ) col0, + 46 + - 56 AS col0
----
50
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4462
SELECT 81 + ( + - COUNT( * ) ) DIV + + 60 AS col2
----
81

skipif mysql # not compatible
query I rowsort label-4462
SELECT 81 + ( + - COUNT ( * ) ) / + + 60 AS col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4463
SELECT ALL COALESCE ( - ( - 79 ), ( + 2 ) + - + COUNT( DISTINCT - + COALESCE ( - 74, + - 44 ) ), + 51 ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-4463
SELECT ALL COALESCE ( - ( - 79 ), ( + 2 ) + - + COUNT ( DISTINCT - + COALESCE ( - 74, + - 44 ) ), + 51 ) AS col2
----
79

query I rowsort
SELECT DISTINCT 99 AS col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4465
SELECT - 31 * - COUNT( * ) * - 76
----
-2356

skipif mysql # not compatible
query I rowsort label-4465
SELECT - 31 * - COUNT ( * ) * - 76
----
-2356

query I rowsort
SELECT ALL - 35 + - 20 + + 99
----
44

query I rowsort
SELECT DISTINCT 5 col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4468
SELECT ALL NULLIF ( + 78, + 91 + 47 ) + - 70 + - SUM( DISTINCT + - 92 ) + + COUNT( - 94 ) * 64
----
164

skipif mysql # not compatible
query I rowsort label-4468
SELECT ALL NULLIF ( + 78, + 91 + 47 ) + - 70 + - SUM ( DISTINCT + - 92 ) + + COUNT ( - 94 ) * 64
----
164

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4469
SELECT - 25 + + CAST( NULL AS SIGNED ) / - + 62 + + MAX( ALL - CASE - 89 WHEN + + 20 THEN - 59 ELSE 74 / - - 27 END ) * + NULLIF ( 64, 17 ) + - 84 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4469
SELECT - 25 + + CAST ( NULL AS INTEGER ) / - + 62 + + MAX ( ALL - CASE - 89 WHEN + + 20 THEN - 59 ELSE 74 / - - 27 END ) * + NULLIF ( 64, 17 ) + - 84 AS col0
----
NULL

query I rowsort
SELECT + 1 + - 90 - + + 7 AS col2
----
-96

query I rowsort
SELECT DISTINCT + ( + - 1 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4472
SELECT + MAX( DISTINCT - 68 )
----
-68

skipif mysql # not compatible
query I rowsort label-4472
SELECT + MAX ( DISTINCT - 68 )
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4473
SELECT + MIN( DISTINCT - 55 ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-4473
SELECT + MIN ( DISTINCT - 55 ) AS col1
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-4474
SELECT ALL + 78 * + - COUNT( * ) + 94 AS col0
----
16

skipif mysql # not compatible
query I rowsort label-4474
SELECT ALL + 78 * + - COUNT ( * ) + 94 AS col0
----
16

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4475
SELECT + 71 + 66 col1, CAST( NULL AS DECIMAL )
----
137
NULL

skipif mysql # not compatible
query II rowsort label-4475
SELECT + 71 + 66 col1, CAST ( NULL AS REAL )
----
137
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4476
SELECT NULLIF ( - 13, + COUNT( * ) - + + 25 )
----
-13

skipif mysql # not compatible
query I rowsort label-4476
SELECT NULLIF ( - 13, + COUNT ( * ) - + + 25 )
----
-13

query I rowsort
SELECT DISTINCT + 57 col1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4478
SELECT ALL + 62 * - 42 * - COUNT( * ) * + ( + ( + 78 ) ) + + 68 AS col0
----
203180

skipif mysql # not compatible
query I rowsort label-4478
SELECT ALL + 62 * - 42 * - COUNT ( * ) * + ( + ( + 78 ) ) + + 68 AS col0
----
203180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4479
SELECT ALL + CAST( - 16 AS SIGNED )
----
-16

skipif mysql # not compatible
query I rowsort label-4479
SELECT ALL + CAST ( - 16 AS INTEGER )
----
-16

query I rowsort
SELECT DISTINCT + 2 col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4481
SELECT DISTINCT + 18 * + 32 + + 33 - + 4 * - + 76 - + + 70 + - ( + + MAX( ALL - - 50 ) ) * + 88 * 13
----
-56357

skipif mysql # not compatible
query I rowsort label-4481
SELECT DISTINCT + 18 * + 32 + + 33 - + 4 * - + 76 - + + 70 + - ( + + MAX ( ALL - - 50 ) ) * + 88 * 13
----
-56357

query I rowsort
SELECT + 65 * 74 - + ( - - 92 ) * + 86
----
-3102

query I rowsort
SELECT + - 10
----
-10

onlyif mysql # DIV for integer division: 
query II rowsort label-4484
SELECT DISTINCT 22 DIV - - 6, - 25 + - 79 * + 38 AS col2
----
3
-3027

skipif mysql # not compatible
query II rowsort label-4484
SELECT DISTINCT 22 / - - 6, - 25 + - 79 * + 38 AS col2
----
3
-3027

query I rowsort
SELECT + 92 - - 0 - + 48 AS col1
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4486
SELECT - MIN( - 52 ) DIV - 40
----
-1

skipif mysql # not compatible
query I rowsort label-4486
SELECT - MIN ( - 52 ) / - 40
----
-1

query I rowsort
SELECT ALL 31 * + 46 AS col0
----
1426

onlyif mysql # aggregate syntax: 
query I rowsort label-4488
SELECT + + 39 * + - COALESCE ( CASE WHEN NOT ( NULL ) <= NULL THEN + ( SUM( 88 ) ) END, + 53 ) * - 97 * - ( - - 13 ) * 11 AS col0
----
-28671357

skipif mysql # not compatible
query I rowsort label-4488
SELECT + + 39 * + - COALESCE ( CASE WHEN NOT ( NULL ) <= NULL THEN + ( SUM ( 88 ) ) END, + 53 ) * - 97 * - ( - - 13 ) * 11 AS col0
----
-28671357

onlyif mysql # aggregate syntax: 
query I rowsort label-4489
SELECT DISTINCT 49 * COALESCE ( COUNT( * ), 75, + 2 ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-4489
SELECT DISTINCT 49 * COALESCE ( COUNT ( * ), 75, + 2 ) AS col1
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4490
SELECT ALL - + SUM( ALL - - ( 40 ) ) * - - 29 AS col2
----
-1160

skipif mysql # not compatible
query I rowsort label-4490
SELECT ALL - + SUM ( ALL - - ( 40 ) ) * - - 29 AS col2
----
-1160

query II rowsort
SELECT + + ( - 49 ), 35 AS col0
----
-49
35

query I rowsort
SELECT + 37 * + + 70 AS col1
----
2590

query I rowsort
SELECT ALL 7 * + + 49 * 65 + - + 26
----
22269

query I rowsort
SELECT ALL - 9 * 99 * - 52 AS col1
----
46332

query I rowsort
SELECT - - 15 AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4496
SELECT - - ( 22 ) + COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-4496
SELECT - - ( 22 ) + COUNT ( * )
----
23

query I rowsort
SELECT - 78 * 86
----
-6708

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4498
SELECT + CAST( NULL AS SIGNED ) * + - 31 + - ( + 45 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4498
SELECT + CAST ( NULL AS INTEGER ) * + - 31 + - ( + 45 ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4499
SELECT - 85 + - - COUNT( * ) col2
----
-84

skipif mysql # not compatible
query I rowsort label-4499
SELECT - 85 + - - COUNT ( * ) col2
----
-84

query I rowsort
SELECT 97 col0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4501
SELECT ALL 61 + CAST( + 83 AS SIGNED ) * - 72 AS col0
----
-5915

skipif mysql # not compatible
query I rowsort label-4501
SELECT ALL 61 + CAST ( + 83 AS INTEGER ) * - 72 AS col0
----
-5915

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4502
SELECT 2 col2, - 37 + 96 + - CAST( NULL AS SIGNED ) AS col2
----
2
NULL

skipif mysql # not compatible
query II rowsort label-4502
SELECT 2 col2, - 37 + 96 + - CAST ( NULL AS INTEGER ) AS col2
----
2
NULL

query I rowsort
SELECT - 31 * + 41 * + + 75
----
-95325

query I rowsort
SELECT ALL 37 + - - 52 AS col1
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4505
SELECT ALL - COUNT( ( 94 ) ) + + + 76 + + 19 - - 95 * 29 * - ( - SUM( - + 19 ) ) + 91 + + + 18 DIV SUM( DISTINCT + NULLIF ( - ( + 92 ), 79 ) ) * - 57 AS col2
----
-52160

skipif mysql # not compatible
query I rowsort label-4505
SELECT ALL - COUNT ( ( 94 ) ) + + + 76 + + 19 - - 95 * 29 * - ( - SUM ( - + 19 ) ) + 91 + + + 18 / SUM ( DISTINCT + NULLIF ( - ( + 92 ), 79 ) ) * - 57 AS col2
----
-52160

query I rowsort
SELECT ALL ( - 97 ) AS col1
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4507
SELECT - CAST( - MAX( ( + 51 ) ) AS SIGNED ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-4507
SELECT - CAST ( - MAX ( ( + 51 ) ) AS INTEGER ) AS col1
----
51

query I rowsort
SELECT - 1 * 37 AS col0
----
-37

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4509
SELECT - CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4509
SELECT - CAST ( NULL AS REAL ) col0
----
NULL

query I rowsort
SELECT - 89 + - 2
----
-91

query II rowsort
SELECT 40, 78 AS col2
----
40
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4512
SELECT - MIN( DISTINCT + + 55 ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-4512
SELECT - MIN ( DISTINCT + + 55 ) AS col2
----
-55

query I rowsort
SELECT - 65 + 94 + - - 53
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4514
SELECT - SUM( DISTINCT 10 ) * + 22 AS col2
----
-220

skipif mysql # not compatible
query I rowsort label-4514
SELECT - SUM ( DISTINCT 10 ) * + 22 AS col2
----
-220

query I rowsort
SELECT ALL ( + + COALESCE ( - - 59, + + 38 ) )
----
59

query II rowsort
SELECT - 70, + 56 AS col2
----
-70
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4517
SELECT ALL - COUNT( * ) + - 55 + + + 14
----
-42

skipif mysql # not compatible
query I rowsort label-4517
SELECT ALL - COUNT ( * ) + - 55 + + + 14
----
-42

query I rowsort
SELECT DISTINCT + 2 AS col1
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-4519
SELECT 5 DIV - 73 + + 79
----
79

skipif mysql # not compatible
query I rowsort label-4519
SELECT 5 / - 73 + + 79
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-4520
SELECT ALL - 41 DIV 93 * + 58 - - 57 col2
----
57

skipif mysql # not compatible
query I rowsort label-4520
SELECT ALL - 41 / 93 * + 58 - - 57 col2
----
57

query I rowsort
SELECT + + ( 26 ) AS col1
----
26

query I rowsort
SELECT + 10 + - 11
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4523
SELECT 71 * - 88 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4523
SELECT 71 * - 88 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 92 AS col2
----
92

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4525
SELECT - AVG ( DISTINCT CAST( NULL AS DECIMAL ) ) * + 55 + + + 45 + SUM( DISTINCT 76 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4525
SELECT - AVG ( DISTINCT CAST ( NULL AS REAL ) ) * + 55 + + + 45 + SUM ( DISTINCT 76 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4526
SELECT + COALESCE ( COUNT( * ), + + COUNT( * ) * - - 26 + + - CAST( - + AVG ( - 24 ) AS SIGNED ) ) * + 20 + + - COUNT( * ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-4526
SELECT + COALESCE ( COUNT ( * ), + + COUNT ( * ) * - - 26 + + - CAST ( - + AVG ( - 24 ) AS INTEGER ) ) * + 20 + + - COUNT ( * ) AS col0
----
19

query I rowsort
SELECT + + ( 18 )
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4528
SELECT - 76 + + 99 + - COUNT( * ) * + 2 DIV 85
----
23

skipif mysql # not compatible
query I rowsort label-4528
SELECT - 76 + + 99 + - COUNT ( * ) * + 2 / 85
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4529
SELECT + MIN( ALL - 44 ) * - 99 - + 15 AS col0
----
4341

skipif mysql # not compatible
query I rowsort label-4529
SELECT + MIN ( ALL - 44 ) * - 99 - + 15 AS col0
----
4341

query I rowsort
SELECT ALL + + 16 col1
----
16

query I rowsort
SELECT ALL + + 81 * + 14 AS col2
----
1134

query I rowsort
SELECT + + ( - - 93 ) * - + 15 AS col0
----
-1395

query I rowsort
SELECT ALL + - 38 AS col0
----
-38

query I rowsort
SELECT DISTINCT + 72 * 24 - - 17
----
1745

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4535
SELECT + - COUNT( * ) * - 25 + - CAST( NULL AS SIGNED ), COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4535
SELECT + - COUNT ( * ) * - 25 + - CAST ( NULL AS INTEGER ), COUNT ( * ) AS col2
----
NULL
1

query I rowsort
SELECT - 65 * + 19 - - + 46 AS col1
----
-1189

query I rowsort
SELECT + 35 * 24 AS col2
----
840

onlyif mysql # aggregate syntax: 
query I rowsort label-4538
SELECT ALL - COUNT( ALL + 44 ) * - - 1 + - 63 col0
----
-64

skipif mysql # not compatible
query I rowsort label-4538
SELECT ALL - COUNT ( ALL + 44 ) * - - 1 + - 63 col0
----
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-4539
SELECT + + 42 + - - 25 + - 17 AS col0, - COUNT( * ) * - 60
----
50
60

skipif mysql # not compatible
query II rowsort label-4539
SELECT + + 42 + - - 25 + - 17 AS col0, - COUNT ( * ) * - 60
----
50
60

query I rowsort
SELECT + - 30 col2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4541
SELECT + 71 * + 24 + + 0 - COUNT( * ) AS col2
----
1703

skipif mysql # not compatible
query I rowsort label-4541
SELECT + 71 * + 24 + + 0 - COUNT ( * ) AS col2
----
1703

onlyif mysql # DIV for integer division: 
query II rowsort label-4542
SELECT DISTINCT + 56 DIV + 37 + 32 AS col1, - 7
----
33
-7

skipif mysql # not compatible
query II rowsort label-4542
SELECT DISTINCT + 56 / + 37 + 32 AS col1, - 7
----
33
-7

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4543
SELECT ALL - CASE - - 99 WHEN ( - - 89 ) + NULLIF ( 89, 88 + 70 + 91 ) THEN NULL WHEN + 41 + + CAST( CAST( - 27 AS DECIMAL ) AS SIGNED ) THEN - 11 ELSE - 51 * 33 END AS col2
----
1683

skipif mysql # not compatible
query I rowsort label-4543
SELECT ALL - CASE - - 99 WHEN ( - - 89 ) + NULLIF ( 89, 88 + 70 + 91 ) THEN NULL WHEN + 41 + + CAST ( CAST ( - 27 AS REAL ) AS INTEGER ) THEN - 11 ELSE - 51 * 33 END AS col2
----
1683

query I rowsort
SELECT - 85 * 31 * - 87 * - 63 * 37 + + + 81 + NULLIF ( + 90, - 4 ) AS col2
----
-534369924

query I rowsort
SELECT DISTINCT 20 + - - 27 * - + 36
----
-952

query I rowsort
SELECT DISTINCT 38 col1
----
38

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

skipif mysql # not compatible
query I rowsort label-4547
SELECT CAST ( NULL AS INTEGER ) + - 38 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4548
SELECT DISTINCT SUM( - 45 ) * - - 31 AS col2
----
-1395

skipif mysql # not compatible
query I rowsort label-4548
SELECT DISTINCT SUM ( - 45 ) * - - 31 AS col2
----
-1395

onlyif mysql # aggregate syntax: 
query II rowsort label-4549
SELECT COUNT( * ) + - 1 AS col0, 98 AS col2
----
0
98

skipif mysql # not compatible
query II rowsort label-4549
SELECT COUNT ( * ) + - 1 AS col0, 98 AS col2
----
0
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4550
SELECT DISTINCT COUNT( * ) * + + 21
----
21

skipif mysql # not compatible
query I rowsort label-4550
SELECT DISTINCT COUNT ( * ) * + + 21
----
21

query I rowsort
SELECT ALL 7 + - 52
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-4552
SELECT DISTINCT 42 + + - COALESCE ( - 23, 52 * + COUNT( * ) + - + 37 ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-4552
SELECT DISTINCT 42 + + - COALESCE ( - 23, 52 * + COUNT ( * ) + - + 37 ) AS col2
----
65

query I rowsort
SELECT DISTINCT 58 AS col2
----
58

query I rowsort
SELECT 51 + - 47 AS col0
----
4

query I rowsort
SELECT ALL - ( + + 47 ) + 29
----
-18

query I rowsort
SELECT DISTINCT 15 col0
----
15

query I rowsort
SELECT DISTINCT 6 - + + 85
----
-79

query I rowsort
SELECT 40 + 3 col2
----
43

query I rowsort
SELECT 50 + 7 AS col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4560
SELECT ( - 86 ) * - 39 * - COUNT( * )
----
-3354

skipif mysql # not compatible
query I rowsort label-4560
SELECT ( - 86 ) * - 39 * - COUNT ( * )
----
-3354

query I rowsort
SELECT 56 * - 78
----
-4368

onlyif mysql # aggregate syntax: 
query I rowsort label-4562
SELECT DISTINCT + COUNT( * ) * - + ( - 38 ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-4562
SELECT DISTINCT + COUNT ( * ) * - + ( - 38 ) AS col2
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4563
SELECT CASE - ( COALESCE ( + 80, 49, + 67 * + 56 * 52, + 16 ) ) WHEN - 63 THEN - 22 * + CAST( - 24 AS SIGNED ) + + 68 + 10 + 7 / 40 WHEN + 70 - + 2 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4563
SELECT CASE - ( COALESCE ( + 80, 49, + 67 * + 56 * 52, + 16 ) ) WHEN - 63 THEN - 22 * + CAST ( - 24 AS INTEGER ) + + 68 + 10 + 7 / 40 WHEN + 70 - + 2 THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4564
SELECT 48 DIV 96
----
0

skipif mysql # not compatible
query I rowsort label-4564
SELECT 48 / 96
----
0

query I rowsort
SELECT - 56 + + 91 + + 61 + 7 * + + 52
----
460

onlyif mysql # aggregate syntax: 
query I rowsort label-4566
SELECT + ( - 61 ) + + 87 * - - COUNT( * ) + - 81 AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-4566
SELECT + ( - 61 ) + + 87 * - - COUNT ( * ) + - 81 AS col1
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-4567
SELECT DISTINCT - + NULLIF ( - 28, - COUNT( - 4 ) * ( + 21 ) ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-4567
SELECT DISTINCT - + NULLIF ( - 28, - COUNT ( - 4 ) * ( + 21 ) ) AS col2
----
28

query I rowsort
SELECT ALL - 34 * 49 - 24 AS col0
----
-1690

query I rowsort
SELECT ALL - - 22
----
22

query I rowsort
SELECT DISTINCT - + 71 AS col2
----
-71

query I rowsort
SELECT DISTINCT - + NULLIF ( - 98, + 85 / 19 ) AS col0
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4572
SELECT COUNT( * ) DIV COUNT( * ) AS col1, ( - ( + 61 ) ) - - 79 AS col1
----
1
18

skipif mysql # not compatible
query II rowsort label-4572
SELECT COUNT ( * ) / COUNT ( * ) AS col1, ( - ( + 61 ) ) - - 79 AS col1
----
1
18

query I rowsort
SELECT ALL - + NULLIF ( + 26, + + 43 * - - 74 ) + - 5 + 13 AS col1
----
-18

query I rowsort
SELECT ALL - 9 col2
----
-9

query I rowsort
SELECT + + 53 AS col1
----
53

query I rowsort
SELECT 96 * - ( + 29 )
----
-2784

onlyif mysql # aggregate syntax: 
query I rowsort label-4577
SELECT SUM( 28 ) - - 62
----
90

skipif mysql # not compatible
query I rowsort label-4577
SELECT SUM ( 28 ) - - 62
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4578
SELECT ALL - CAST( 0 AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4578
SELECT ALL - CAST ( 0 AS INTEGER ) AS col2
----
0

query I rowsort
SELECT ALL - 27 * - + 72
----
1944

query II rowsort
SELECT ALL 52 + 84 + NULLIF ( + 68, 40 ) AS col0, 55 AS col1
----
204
55

onlyif mysql # aggregate syntax: 
query II rowsort label-4581
SELECT ALL ( + + 59 ) + - COUNT( * ) AS col2, 65 col2
----
58
65

skipif mysql # not compatible
query II rowsort label-4581
SELECT ALL ( + + 59 ) + - COUNT ( * ) AS col2, 65 col2
----
58
65

query I rowsort
SELECT 52 AS col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4583
SELECT ALL + 76 * COUNT( * ) * + NULLIF ( 46, + 45 ) col0
----
3496

skipif mysql # not compatible
query I rowsort label-4583
SELECT ALL + 76 * COUNT ( * ) * + NULLIF ( 46, + 45 ) col0
----
3496

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4584
SELECT DISTINCT - COUNT( * ) + 17 + + 39 DIV 32 AS col2
----
17

skipif mysql # not compatible
query I rowsort label-4584
SELECT DISTINCT - COUNT ( * ) + 17 + + 39 / 32 AS col2
----
17

query I rowsort
SELECT - 42 col1
----
-42

query II rowsort
SELECT ALL 8 + ( - 5 ) col0, - 48 * - + 46 + + 65
----
3
2273

onlyif mysql # aggregate syntax: 
query II rowsort label-4587
SELECT - 97, 97 * - 87 + - COUNT( * ) AS col1
----
-97
-8440

skipif mysql # not compatible
query II rowsort label-4587
SELECT - 97, 97 * - 87 + - COUNT ( * ) AS col1
----
-97
-8440

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4588
SELECT COALESCE ( + COUNT( * ), + 5 ) DIV + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4588
SELECT COALESCE ( + COUNT ( * ), + 5 ) / + COUNT ( * ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4589
SELECT 41 * + - COUNT( * ) AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-4589
SELECT 41 * + - COUNT ( * ) AS col2
----
-41

query II rowsort
SELECT 51 AS col1, - 31
----
51
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4591
SELECT - MIN( ALL + + 80 )
----
-80

skipif mysql # not compatible
query I rowsort label-4591
SELECT - MIN ( ALL + + 80 )
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4592
SELECT ALL 36 DIV + ( - ( - NULLIF ( 5, - CAST( + COUNT( * ) AS SIGNED ) - + 81 ) ) )
----
7

skipif mysql # not compatible
query I rowsort label-4592
SELECT ALL 36 / + ( - ( - NULLIF ( 5, - CAST ( + COUNT ( * ) AS INTEGER ) - + 81 ) ) )
----
7

query I rowsort
SELECT DISTINCT 59 col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4594
SELECT ALL 54 - 18 + - COALESCE ( COUNT( * ), + MIN( DISTINCT 57 ) ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-4594
SELECT ALL 54 - 18 + - COALESCE ( COUNT ( * ), + MIN ( DISTINCT 57 ) ) AS col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4595
SELECT 31 - ( - 61 ) * + 13 * + COALESCE ( + 75, - - COUNT( * ) * + 29 * + - 59 ) AS col2
----
59506

skipif mysql # not compatible
query I rowsort label-4595
SELECT 31 - ( - 61 ) * + 13 * + COALESCE ( + 75, - - COUNT ( * ) * + 29 * + - 59 ) AS col2
----
59506

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4596
SELECT DISTINCT 65 DIV COUNT( * )
----
65

skipif mysql # not compatible
query I rowsort label-4596
SELECT DISTINCT 65 / COUNT ( * )
----
65

query I rowsort
SELECT ALL 30 * + NULLIF ( - 23, - 76 ) AS col1
----
-690

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4598
SELECT NULLIF ( + + 29, - - 49 ) * + MIN( + 25 ) * + - MAX( ALL + 1 ) + + COUNT( ALL + 79 ) DIV + 89 * 88 * 91 * - COUNT( * ), COUNT( * ) AS col0
----
-725
1

skipif mysql # not compatible
query II rowsort label-4598
SELECT NULLIF ( + + 29, - - 49 ) * + MIN ( + 25 ) * + - MAX ( ALL + 1 ) + + COUNT ( ALL + 79 ) / + 89 * 88 * 91 * - COUNT ( * ), COUNT ( * ) AS col0
----
-725
1

query I rowsort
SELECT DISTINCT 47 * 10
----
470

onlyif mysql # aggregate syntax: 
query I rowsort label-4600
SELECT COUNT( * ) + 71 - + 9 AS col2
----
63

skipif mysql # not compatible
query I rowsort label-4600
SELECT COUNT ( * ) + 71 - + 9 AS col2
----
63

query II rowsort
SELECT 89 col2, - 44
----
89
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4602
SELECT ALL CAST( + + 19 AS SIGNED ) * + ( 34 ) AS col2
----
646

skipif mysql # not compatible
query I rowsort label-4602
SELECT ALL CAST ( + + 19 AS INTEGER ) * + ( 34 ) AS col2
----
646

onlyif mysql # aggregate syntax: 
query I rowsort label-4603
SELECT NULLIF ( + - COUNT( * ), - + SUM( DISTINCT + 70 ) * COUNT( * ) + + + 95 + - 66 + - 28 * 73 * - 26 ) + - 91 + + 99
----
7

skipif mysql # not compatible
query I rowsort label-4603
SELECT NULLIF ( + - COUNT ( * ), - + SUM ( DISTINCT + 70 ) * COUNT ( * ) + + + 95 + - 66 + - 28 * 73 * - 26 ) + - 91 + + 99
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4604
SELECT CAST( + ( 33 ) AS SIGNED ) * + - COUNT( * ) col2
----
-33

skipif mysql # not compatible
query I rowsort label-4604
SELECT CAST ( + ( 33 ) AS INTEGER ) * + - COUNT ( * ) col2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-4605
SELECT SUM( 83 ) * + 61 + - 57 / CASE - 77 WHEN + 63 THEN 31 * + 31 ELSE NULL END * - 96 * + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-4605
SELECT SUM ( 83 ) * + 61 + - 57 / CASE - 77 WHEN + 63 THEN 31 * + 31 ELSE NULL END * - 96 * + 6
----
NULL

query I rowsort
SELECT 40 + + 84
----
124

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4607
SELECT + 45 + 86 + + CAST( NULL AS SIGNED ) - - - 78 * 89 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4607
SELECT + 45 + 86 + + CAST ( NULL AS INTEGER ) - - - 78 * 89 AS col2
----
NULL

query I rowsort
SELECT - - 62
----
62

query II rowsort
SELECT ALL - 52 col2, - 52 AS col1
----
-52
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-4610
SELECT ALL + 83 * 70 * - 98 + + ( - - COUNT( * ) ) + - - 95 + + + 29 + 64
----
-569191

skipif mysql # not compatible
query I rowsort label-4610
SELECT ALL + 83 * 70 * - 98 + + ( - - COUNT ( * ) ) + - - 95 + + + 29 + 64
----
-569191

query I rowsort
SELECT ALL + - 81 * + 94 - 93 * + - 39
----
-3987

onlyif mysql # aggregate syntax: 
query I rowsort label-4612
SELECT DISTINCT COUNT( + + 11 ) * 43 + + COUNT( * )
----
44

skipif mysql # not compatible
query I rowsort label-4612
SELECT DISTINCT COUNT ( + + 11 ) * 43 + + COUNT ( * )
----
44

query II rowsort
SELECT - 21 AS col2, + 37
----
-21
37

query I rowsort
SELECT + ( - 74 ) AS col0
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4615
SELECT ALL + 40 * - SUM( - + NULLIF ( - 91, + 92 ) ) + - 28 / + CASE - + 16 WHEN - 42 THEN NULL WHEN + + 26 THEN - 62 ELSE 16 * + NULLIF ( + + CAST( 89 AS SIGNED ), CASE 72 WHEN + 83 THEN 68 END * 85 ) - - COUNT( + 57 ) END * - CASE - 7 WHEN 41 THEN NULL WHEN 46 * 81 + 25 THEN NULL WHEN + 82 - + 56 * - COUNT( * ) THEN + 85 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4615
SELECT ALL + 40 * - SUM ( - + NULLIF ( - 91, + 92 ) ) + - 28 / + CASE - + 16 WHEN - 42 THEN NULL WHEN + + 26 THEN - 62 ELSE 16 * + NULLIF ( + + CAST ( 89 AS INTEGER ), CASE 72 WHEN + 83 THEN 68 END * 85 ) - - COUNT ( + 57 ) END * - CASE - 7 WHEN 41 THEN NULL WHEN 46 * 81 + 25 THEN NULL WHEN + 82 - + 56 * - COUNT ( * ) THEN + 85 END AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4617
SELECT + + 76 * + COUNT( * ) + + - 55 * 84 + + - 16 + - - COUNT( * ) * - - 42 DIV ( + + 19 )
----
-4558

skipif mysql # not compatible
query I rowsort label-4617
SELECT + + 76 * + COUNT ( * ) + + - 55 * 84 + + - 16 + - - COUNT ( * ) * - - 42 / ( + + 19 )
----
-4558

query I rowsort
SELECT + + 98 AS col0
----
98

query I rowsort
SELECT + + 67 + + - 42
----
25

query I rowsort
SELECT + - 44 AS col2
----
-44

query I rowsort
SELECT ALL - 46 * 90 + + 5 + + 95 * + + 19 AS col0
----
-2330

query I rowsort
SELECT 38 col2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4623
SELECT ALL - 39 * + MAX( + 62 ) + - 35
----
-2453

skipif mysql # not compatible
query I rowsort label-4623
SELECT ALL - 39 * + MAX ( + 62 ) + - 35
----
-2453

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4624
SELECT ALL - 90 DIV COUNT( * )
----
-90

skipif mysql # not compatible
query I rowsort label-4624
SELECT ALL - 90 / COUNT ( * )
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-4625
SELECT - - 84 DIV 63 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4625
SELECT - - 84 / 63 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4626
SELECT ALL + ( - + COALESCE ( ( - + 63 ), + + 82 * + MIN( DISTINCT + 59 ) ) )
----
63

skipif mysql # not compatible
query I rowsort label-4626
SELECT ALL + ( - + COALESCE ( ( - + 63 ), + + 82 * + MIN ( DISTINCT + 59 ) ) )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4627
SELECT - COUNT( ALL - 38 ) * 25 AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-4627
SELECT - COUNT ( ALL - 38 ) * 25 AS col0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4628
SELECT - 78 * COUNT( * )
----
-78

skipif mysql # not compatible
query I rowsort label-4628
SELECT - 78 * COUNT ( * )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4629
SELECT COUNT( * ) * 14 - + - 43
----
57

skipif mysql # not compatible
query I rowsort label-4629
SELECT COUNT ( * ) * 14 - + - 43
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4630
SELECT ALL + CAST( + 65 AS SIGNED )
----
65

skipif mysql # not compatible
query I rowsort label-4630
SELECT ALL + CAST ( + 65 AS INTEGER )
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-4631
SELECT ALL + 18 - + 93 + + 8 * + MAX( DISTINCT 32 ) * - 63 AS col0, - 5
----
-16203
-5

skipif mysql # not compatible
query II rowsort label-4631
SELECT ALL + 18 - + 93 + + 8 * + MAX ( DISTINCT 32 ) * - 63 AS col0, - 5
----
-16203
-5

query I rowsort
SELECT ALL ( - + 82 ) AS col2
----
-82

query I rowsort
SELECT - 68 * + + 43 + - 9 + + 4
----
-2929

query I rowsort
SELECT DISTINCT CASE - 2 WHEN + 19 * 5 THEN 66 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4635
SELECT ALL - 45 * - ( - - CASE - - 90 WHEN - 97 THEN NULL WHEN + 10 * - ( SUM( DISTINCT + + 48 ) ) THEN - 37 END ) / - + 60 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4635
SELECT ALL - 45 * - ( - - CASE - - 90 WHEN - 97 THEN NULL WHEN + 10 * - ( SUM ( DISTINCT + + 48 ) ) THEN - 37 END ) / - + 60 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4636
SELECT - MIN( ALL + ( 74 ) ) AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-4636
SELECT - MIN ( ALL + ( 74 ) ) AS col2
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4637
SELECT DISTINCT - NULLIF ( - - COUNT( * ), CAST( + - COUNT( * ) AS SIGNED ) / COALESCE ( + + 61, + + 16 ) ) * - - 84
----
-84

skipif mysql # not compatible
query I rowsort label-4637
SELECT DISTINCT - NULLIF ( - - COUNT ( * ), CAST ( + - COUNT ( * ) AS INTEGER ) / COALESCE ( + + 61, + + 16 ) ) * - - 84
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-4638
SELECT ALL CASE - MAX( - 67 ) WHEN + - 96 * + 86 THEN - 58 WHEN + - ( + - 58 ) - CASE - - 71 WHEN 80 * - - ( - 75 ) THEN - COUNT( * ) * - 78 / - - COUNT( * ) WHEN COUNT( * ) / 38 THEN - ( 92 ) + + AVG ( ALL + ( 98 ) + + ( 28 ) * - 99 ) END THEN + 58 ELSE COUNT( * ) * - 73 END col2
----
-73

skipif mysql # not compatible
query I rowsort label-4638
SELECT ALL CASE - MAX ( - 67 ) WHEN + - 96 * + 86 THEN - 58 WHEN + - ( + - 58 ) - CASE - - 71 WHEN 80 * - - ( - 75 ) THEN - COUNT ( * ) * - 78 / - - COUNT ( * ) WHEN COUNT ( * ) / 38 THEN - ( 92 ) + + AVG ( ALL + ( 98 ) + + ( 28 ) * - 99 ) END THEN + 58 ELSE COUNT ( * ) * - 73 END col2
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4639
SELECT - 83 * + - CAST( NULL AS SIGNED ) * - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-4639
SELECT - 83 * + - CAST ( NULL AS INTEGER ) * - 74
----
NULL

query I rowsort
SELECT ALL ( + 75 )
----
75

query I rowsort
SELECT DISTINCT ( + - 18 )
----
-18

query I rowsort
SELECT - 53 * + 10 AS col2
----
-530

query I rowsort
SELECT DISTINCT ( - + 89 ) AS col1
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4644
SELECT - CASE + 62 WHEN - + SUM( + 96 ) - + - 41 * + 13 THEN + - 80 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4644
SELECT - CASE + 62 WHEN - + SUM ( + 96 ) - + - 41 * + 13 THEN + - 80 END AS col0
----
NULL

query I rowsort
SELECT ALL - NULLIF ( - + 62, + 64 )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4646
SELECT ALL - - 74 + + SUM( - - 88 ) + + - ( + 7 ) + - - 30
----
185

skipif mysql # not compatible
query I rowsort label-4646
SELECT ALL - - 74 + + SUM ( - - 88 ) + + - ( + 7 ) + - - 30
----
185

onlyif mysql # DIV for integer division: 
query I rowsort label-4647
SELECT ALL - 95 * 21 DIV 28 + + - 73 + - 58
----
-202

skipif mysql # not compatible
query I rowsort label-4647
SELECT ALL - 95 * 21 / 28 + + - 73 + - 58
----
-202

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4648
SELECT + MIN( ALL - CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4648
SELECT + MIN ( ALL - CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT ALL + 26 + - 81 * + 96
----
-7750

onlyif mysql # DIV for integer division: 
query II rowsort label-4650
SELECT - 89 AS col1, - 62 DIV + 11 AS col1
----
-89
-5

skipif mysql # not compatible
query II rowsort label-4650
SELECT - 89 AS col1, - 62 / + 11 AS col1
----
-89
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4651
SELECT ALL - SUM( DISTINCT 50 ) + CASE CASE + 66 WHEN + NULLIF ( + 15, + 90 * - AVG ( + 62 ) - - 45 ) THEN 75 ELSE NULL END WHEN + CASE - + 78 WHEN + - 95 THEN - - CASE 43 WHEN 35 THEN NULL WHEN 79 THEN - 6 * + 4 + 92 END / + CAST( - 13 * + 7 + 96 AS SIGNED ) WHEN COUNT( * ) THEN NULL WHEN 78 THEN NULL ELSE 10 END THEN + 3 * - CASE 54 * 95 WHEN - 26 THEN 14 WHEN 3 * - 23 THEN NULL END END
----
NULL

skipif mysql # not compatible
query I rowsort label-4651
SELECT ALL - SUM ( DISTINCT 50 ) + CASE CASE + 66 WHEN + NULLIF ( + 15, + 90 * - AVG ( + 62 ) - - 45 ) THEN 75 ELSE NULL END WHEN + CASE - + 78 WHEN + - 95 THEN - - CASE 43 WHEN 35 THEN NULL WHEN 79 THEN - 6 * + 4 + 92 END / + CAST ( - 13 * + 7 + 96 AS INTEGER ) WHEN COUNT ( * ) THEN NULL WHEN 78 THEN NULL ELSE 10 END THEN + 3 * - CASE 54 * 95 WHEN - 26 THEN 14 WHEN 3 * - 23 THEN NULL END END
----
NULL

query I rowsort
SELECT + 31 * 67 * + NULLIF ( - 55, - 21 * + 90 ) AS col2
----
-114235

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4653
SELECT + 78, CASE + COUNT( * ) WHEN + CAST( NULL AS SIGNED ) THEN 92 + COUNT( * ) ELSE + 95 END + + - 22 - CAST( - COUNT( * ) AS SIGNED ) * 31 AS col0
----
78
104

skipif mysql # not compatible
query II rowsort label-4653
SELECT + 78, CASE + COUNT ( * ) WHEN + CAST ( NULL AS INTEGER ) THEN 92 + COUNT ( * ) ELSE + 95 END + + - 22 - CAST ( - COUNT ( * ) AS INTEGER ) * 31 AS col0
----
78
104

query I rowsort
SELECT ALL + - 84 AS col2
----
-84

onlyif mysql # DIV for integer division: 
query II rowsort label-4655
SELECT + 11 AS col1, 39 + + 55 + - + 1 * - 9 DIV + 14 AS col2
----
11
94

skipif mysql # not compatible
query II rowsort label-4655
SELECT + 11 AS col1, 39 + + 55 + - + 1 * - 9 / + 14 AS col2
----
11
94

query I rowsort
SELECT DISTINCT 33 * 63 AS col1
----
2079

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4657
SELECT DISTINCT + COUNT( * ) / - CAST( NULL AS SIGNED ) + - - 79 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4657
SELECT DISTINCT + COUNT ( * ) / - CAST ( NULL AS INTEGER ) + - - 79 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + - 16 AS col0
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-4659
SELECT DISTINCT + 18 AS col1, + COUNT( * ) - COUNT( * ) + - 43 AS col2
----
18
-43

skipif mysql # not compatible
query II rowsort label-4659
SELECT DISTINCT + 18 AS col1, + COUNT ( * ) - COUNT ( * ) + - 43 AS col2
----
18
-43

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4660
SELECT 71 AS col0, CAST( NULL AS SIGNED )
----
71
NULL

skipif mysql # not compatible
query II rowsort label-4660
SELECT 71 AS col0, CAST ( NULL AS INTEGER )
----
71
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4661
SELECT + COUNT( * ) + - - 43 + COUNT( * ) + - 35, + 11 * 43 + + 7 AS col0
----
10
480

skipif mysql # not compatible
query II rowsort label-4661
SELECT + COUNT ( * ) + - - 43 + COUNT ( * ) + - 35, + 11 * 43 + + 7 AS col0
----
10
480

onlyif mysql # aggregate syntax: 
query I rowsort label-4662
SELECT DISTINCT - - COALESCE ( - 71, + + COUNT( * ) ) * 14 * 12 + + + MAX( ALL 3 ) + + 69 AS col2
----
-11856

skipif mysql # not compatible
query I rowsort label-4662
SELECT DISTINCT - - COALESCE ( - 71, + + COUNT ( * ) ) * 14 * 12 + + + MAX ( ALL 3 ) + + 69 AS col2
----
-11856

onlyif mysql # aggregate syntax: 
query I rowsort label-4663
SELECT ALL + - ( - NULLIF ( + 39, - 68 ) ) * - 7 * COUNT( * ) + + 66 * 64 AS col0
----
3951

skipif mysql # not compatible
query I rowsort label-4663
SELECT ALL + - ( - NULLIF ( + 39, - 68 ) ) * - 7 * COUNT ( * ) + + 66 * 64 AS col0
----
3951

query II rowsort
SELECT + - 38, + 66 AS col1
----
-38
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4665
SELECT ALL + + 50 * + - 86 - - MAX( ALL CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4665
SELECT ALL + + 50 * + - 86 - - MAX ( ALL CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT ( + 13 )
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4667
SELECT + ( 3 ), SUM( ALL - ( + 19 ) ) * + COUNT( * ) + - + 79 DIV - 8 AS col2
----
3
-10

skipif mysql # not compatible
query II rowsort label-4667
SELECT + ( 3 ), SUM ( ALL - ( + 19 ) ) * + COUNT ( * ) + - + 79 / - 8 AS col2
----
3
-10

query I rowsort
SELECT + 49 - - 64 AS col2
----
113

query I rowsort
SELECT - 55 * 28 * - 15 AS col0
----
23100

query I rowsort
SELECT CASE + + 78 WHEN - - 96 THEN - 21 * 37 - + 31 * - 96 * + 79 ELSE 39 END AS col0
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4671
SELECT DISTINCT 90 * + ( + + MAX( CAST( 35 AS SIGNED ) ) ) AS col2
----
3150

skipif mysql # not compatible
query I rowsort label-4671
SELECT DISTINCT 90 * + ( + + MAX ( CAST ( 35 AS INTEGER ) ) ) AS col2
----
3150

onlyif mysql # aggregate syntax: 
query II rowsort label-4672
SELECT ALL + ( - - 56 ) AS col2, COUNT( * ) + 31
----
56
32

skipif mysql # not compatible
query II rowsort label-4672
SELECT ALL + ( - - 56 ) AS col2, COUNT ( * ) + 31
----
56
32

query I rowsort
SELECT - 19 * + 36 col2
----
-684

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4674
SELECT ALL COUNT( * ) * 89 DIV + 66 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4674
SELECT ALL COUNT ( * ) * 89 / + 66 AS col1
----
1

query I rowsort
SELECT DISTINCT + 73 AS col2
----
73

query I rowsort
SELECT - 95 * + 40
----
-3800

onlyif mysql # aggregate syntax: 
query I rowsort label-4677
SELECT ALL COALESCE ( 16, + 70 + + 98, - + COUNT( * ) )
----
16

skipif mysql # not compatible
query I rowsort label-4677
SELECT ALL COALESCE ( 16, + 70 + + 98, - + COUNT ( * ) )
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4678
SELECT + 83 / - + ( - CAST( NULL AS SIGNED ) ) * + - NULLIF ( - 72, - 18 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4678
SELECT + 83 / - + ( - CAST ( NULL AS INTEGER ) ) * + - NULLIF ( - 72, - 18 ) AS col0
----
NULL

query I rowsort
SELECT - 65 * - + 4 * 82 AS col1
----
21320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4680
SELECT ALL CAST( - 40 AS SIGNED ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-4680
SELECT ALL CAST ( - 40 AS INTEGER ) AS col0
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4681
SELECT DISTINCT CASE WHEN ( CASE - 25 WHEN - 20 THEN NULL ELSE + COUNT( * ) * - CAST( NULL AS DECIMAL ) + - 3 - + + 42 * - CAST( + 47 AS SIGNED ) + - 23 + - COALESCE ( + - 16, 7, COUNT( * ) + - + 73, SUM( 52 ) * - COUNT( * ) + - ( + 3 - 54 ) * 7 ) - - ( + 98 ) * 44 END ) IS NULL THEN 68 * ( + CASE 27 WHEN + COUNT( * ) THEN NULL ELSE COUNT( * ) END ) END
----
68

skipif mysql # not compatible
query I rowsort label-4681
SELECT DISTINCT CASE WHEN ( CASE - 25 WHEN - 20 THEN NULL ELSE + COUNT ( * ) * - CAST ( NULL AS REAL ) + - 3 - + + 42 * - CAST ( + 47 AS INTEGER ) + - 23 + - COALESCE ( + - 16, 7, COUNT ( * ) + - + 73, SUM ( 52 ) * - COUNT ( * ) + - ( + 3 - 54 ) * 7 ) - - ( + 98 ) * 44 END ) IS NULL THEN 68 * ( + CASE 27 WHEN + COUNT ( * ) THEN NULL ELSE COUNT ( * ) END ) END
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4682
SELECT ALL - 78 + - MAX( - 71 ) DIV + - 53
----
-79

skipif mysql # not compatible
query I rowsort label-4682
SELECT ALL - 78 + - MAX ( - 71 ) / + - 53
----
-79

query I rowsort
SELECT - 47 - - 61 * - CASE + 90 WHEN 14 + - 76 THEN NULL ELSE - 47 END
----
2820

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4684
SELECT ALL - CAST( 33 AS SIGNED ) + - + 25 AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-4684
SELECT ALL - CAST ( 33 AS INTEGER ) + - + 25 AS col0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4685
SELECT ALL - 55 + MAX( 43 ) AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-4685
SELECT ALL - 55 + MAX ( 43 ) AS col2
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4686
SELECT - COALESCE ( - - 45, - + 65 ) + + CAST( NULL AS SIGNED ) * - COALESCE ( + 40, - COUNT( * ) + - 55, - MAX( - + 95 ) ) - 45 + + NULLIF ( 35, 54 * - 25 ) * + 49 * + 78 * + 58 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4686
SELECT - COALESCE ( - - 45, - + 65 ) + + CAST ( NULL AS INTEGER ) * - COALESCE ( + 40, - COUNT ( * ) + - 55, - MAX ( - + 95 ) ) - 45 + + NULLIF ( 35, 54 * - 25 ) * + 49 * + 78 * + 58 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4687
SELECT COUNT( 40 ), - 71 AS col2
----
1
-71

skipif mysql # not compatible
query II rowsort label-4687
SELECT COUNT ( 40 ), - 71 AS col2
----
1
-71

query I rowsort
SELECT - + 17 AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4689
SELECT ALL - COUNT( * ) + 0 - 14 * - ( + MIN( DISTINCT - 52 ) ) AS col1
----
-729

skipif mysql # not compatible
query I rowsort label-4689
SELECT ALL - COUNT ( * ) + 0 - 14 * - ( + MIN ( DISTINCT - 52 ) ) AS col1
----
-729

onlyif mysql # aggregate syntax: 
query I rowsort label-4690
SELECT 4 + MAX( 88 ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-4690
SELECT 4 + MAX ( 88 ) AS col1
----
92

query I rowsort
SELECT + 99 - ( - 45 )
----
144

query II rowsort
SELECT - - NULLIF ( NULLIF ( - ( - 56 ), + 72 - 37 + 17 + + 73 + - 32 / - 92 + + 73 ), + 36 ), - 53 col2
----
56
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4693
SELECT + 65 * MIN( ALL - 16 ) * - 20 DIV + 2, COUNT( ALL + 20 ) * + + 84 AS col0
----
10400
84

skipif mysql # not compatible
query II rowsort label-4693
SELECT + 65 * MIN ( ALL - 16 ) * - 20 / + 2, COUNT ( ALL + 20 ) * + + 84 AS col0
----
10400
84

query I rowsort
SELECT ALL 5 * 45 * - 15
----
-3375

query I rowsort
SELECT DISTINCT + 12 - 85
----
-73

query I rowsort
SELECT ALL 18 * 26 * + - 31
----
-14508

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4697
SELECT CAST( NULL AS SIGNED ) / - + 68 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4697
SELECT CAST ( NULL AS INTEGER ) / - + 68 AS col2
----
NULL

query I rowsort
SELECT 18 + - 74
----
-56

query I rowsort
SELECT DISTINCT - 57 AS col2
----
-57

query I rowsort
SELECT ALL 49 * 21 AS col1
----
1029

query I rowsort
SELECT DISTINCT - 2 AS col0
----
-2

query I rowsort
SELECT ALL - NULLIF ( ( + - 24 ), + 69 ) AS col0
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-4703
SELECT COUNT( DISTINCT + 57 ) * 44 * 83 - - 87 + - - 2 AS col2, + 58
----
3741
58

skipif mysql # not compatible
query II rowsort label-4703
SELECT COUNT ( DISTINCT + 57 ) * 44 * 83 - - 87 + - - 2 AS col2, + 58
----
3741
58

query I rowsort
SELECT + 51 AS col1
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4705
SELECT ALL - 89 AS col1, + 66 * - 95 * + + CAST( - 17 AS SIGNED )
----
-89
106590

skipif mysql # not compatible
query II rowsort label-4705
SELECT ALL - 89 AS col1, + 66 * - 95 * + + CAST ( - 17 AS INTEGER )
----
-89
106590

query I rowsort
SELECT + 6 col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4707
SELECT COALESCE ( - 12, - 45, + + 23 * - 11, + COUNT( * ) ) + 22 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-4707
SELECT COALESCE ( - 12, - 45, + + 23 * - 11, + COUNT ( * ) ) + 22 AS col0
----
10

query I rowsort
SELECT 76 - - + 35 AS col0
----
111

onlyif mysql # DIV for integer division: 
query III rowsort label-4709
SELECT ( - - 46 ) DIV + + 34 AS col1, 77, + 29 AS col0
----
1
77
29

skipif mysql # not compatible
query III rowsort label-4709
SELECT ( - - 46 ) / + + 34 AS col1, 77, + 29 AS col0
----
1
77
29

query I rowsort
SELECT + 21 * - 19 * 19 * + 85 + - + NULLIF ( 25, - NULLIF ( 87, - 93 * - 83 + + 46 * 45 ) )
----
-644410

query II rowsort
SELECT ALL - 83 + + 96 + 30 AS col1, 58 * - - 12 AS col1
----
43
696

onlyif mysql # aggregate syntax: 
query I rowsort label-4712
SELECT 75 + + COUNT( * ) col0
----
76

skipif mysql # not compatible
query I rowsort label-4712
SELECT 75 + + COUNT ( * ) col0
----
76

query I rowsort
SELECT ALL 29 + - 94 AS col1
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4714
SELECT ( + 10 ) DIV 44 + COUNT( * ) DIV 76 * - + ( 17 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4714
SELECT ( + 10 ) / 44 + COUNT ( * ) / 76 * - + ( 17 ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4715
SELECT - ( + 44 ) + + COUNT( * ) - 76 * 39 + + - 86 - + CAST( - 84 AS SIGNED ) + 55 AS col2
----
-2954

skipif mysql # not compatible
query I rowsort label-4715
SELECT - ( + 44 ) + + COUNT ( * ) - 76 * 39 + + - 86 - + CAST ( - 84 AS INTEGER ) + 55 AS col2
----
-2954

onlyif mysql # aggregate syntax: 
query I rowsort label-4716
SELECT - - SUM( DISTINCT + 20 ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-4716
SELECT - - SUM ( DISTINCT + 20 ) AS col2
----
20

onlyif mysql # DIV for integer division: 
query II rowsort label-4717
SELECT + ( - 35 ) DIV + 3 col0, + 31 DIV 92 AS col2
----
-11
0

skipif mysql # not compatible
query II rowsort label-4717
SELECT + ( - 35 ) / + 3 col0, + 31 / 92 AS col2
----
-11
0

query I rowsort
SELECT 17 + + 60
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-4719
SELECT DISTINCT + COALESCE ( 35, + - MAX( DISTINCT - + 53 ) * 53 + + 85 + 99 ) + + 18 AS col2, + ( 67 ) AS col2
----
53
67

skipif mysql # not compatible
query II rowsort label-4719
SELECT DISTINCT + COALESCE ( 35, + - MAX ( DISTINCT - + 53 ) * 53 + + 85 + 99 ) + + 18 AS col2, + ( 67 ) AS col2
----
53
67

query I rowsort
SELECT - - 50
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4721
SELECT DISTINCT + ( 87 ) * - - 89 * + MIN( ALL - - 37 ) * + - 56 + + 13 DIV - ( 27 )
----
-16043496

skipif mysql # not compatible
query I rowsort label-4721
SELECT DISTINCT + ( 87 ) * - - 89 * + MIN ( ALL - - 37 ) * + - 56 + + 13 / - ( 27 )
----
-16043496

onlyif mysql # aggregate syntax: 
query II rowsort label-4722
SELECT - COUNT( 79 ) * - - COUNT( * ), 7 + 51 AS col0
----
-1
58

skipif mysql # not compatible
query II rowsort label-4722
SELECT - COUNT ( 79 ) * - - COUNT ( * ), 7 + 51 AS col0
----
-1
58

query I rowsort
SELECT - + 45
----
-45

query I rowsort
SELECT DISTINCT + - 52 * - 58
----
3016

onlyif mysql # aggregate syntax: 
query I rowsort label-4725
SELECT DISTINCT ( + MIN( - 25 ) )
----
-25

skipif mysql # not compatible
query I rowsort label-4725
SELECT DISTINCT ( + MIN ( - 25 ) )
----
-25

onlyif mysql # DIV for integer division: 
query II rowsort label-4726
SELECT + 30 - + + 50 - - - ( + COALESCE ( + 61, - + 76 ) ) + + - 11 + - 92, + 7 DIV + + 75 * - - 39 AS col0
----
-184
0

skipif mysql # not compatible
query II rowsort label-4726
SELECT + 30 - + + 50 - - - ( + COALESCE ( + 61, - + 76 ) ) + + - 11 + - 92, + 7 / + + 75 * - - 39 AS col0
----
-184
0

query I rowsort
SELECT ALL - + 73 AS col2
----
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4728
SELECT CASE - + 6 WHEN + - 40 * - 88 THEN + ( + 53 ) + + + 16 ELSE SUM( + 99 ) + + 9 + + 40 + 70 + + 95 DIV + 71 END AS col0
----
219

skipif mysql # not compatible
query I rowsort label-4728
SELECT CASE - + 6 WHEN + - 40 * - 88 THEN + ( + 53 ) + + + 16 ELSE SUM ( + 99 ) + + 9 + + 40 + 70 + + 95 / + 71 END AS col0
----
219

query I rowsort
SELECT 7 col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4730
SELECT COUNT( * ) * + 54 AS col1
----
54

skipif mysql # not compatible
query I rowsort label-4730
SELECT COUNT ( * ) * + 54 AS col1
----
54

query I rowsort
SELECT ALL - ( - + 47 )
----
47

query I rowsort
SELECT DISTINCT 72 * + - 5
----
-360

query I rowsort
SELECT ALL 90 * - - 95
----
8550

onlyif mysql # aggregate syntax: 
query II rowsort label-4734
SELECT COUNT( - 42 ) col1, - 49 * + - COUNT( * ) AS col1
----
1
49

skipif mysql # not compatible
query II rowsort label-4734
SELECT COUNT ( - 42 ) col1, - 49 * + - COUNT ( * ) AS col1
----
1
49

onlyif mysql # DIV for integer division: 
query I rowsort label-4735
SELECT ALL + 86 DIV 64 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4735
SELECT ALL + 86 / 64 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4736
SELECT MIN( DISTINCT CASE + - 77 WHEN 84 THEN NULL ELSE - + 88 END ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-4736
SELECT MIN ( DISTINCT CASE + - 77 WHEN 84 THEN NULL ELSE - + 88 END ) AS col2
----
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-4737
SELECT ALL CASE - COUNT( * ) WHEN 6 + + ( + 62 ) THEN NULL ELSE 16 END + + 62 AS col2, - COUNT( * ) + + - COUNT( * ) + + 80 + - 88 * + COUNT( * ) - COUNT( * )
----
78
-11

skipif mysql # not compatible
query II rowsort label-4737
SELECT ALL CASE - COUNT ( * ) WHEN 6 + + ( + 62 ) THEN NULL ELSE 16 END + + 62 AS col2, - COUNT ( * ) + + - COUNT ( * ) + + 80 + - 88 * + COUNT ( * ) - COUNT ( * )
----
78
-11

query I rowsort
SELECT 40 * - 4
----
-160

query I rowsort
SELECT DISTINCT - 11 AS col0
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-4740
SELECT ALL 65 + + + CAST( CASE COUNT( * ) WHEN - ( - + CASE + NULLIF ( - 59, + - 16 - - + CAST( NULL AS SIGNED ) ) WHEN - COUNT( * ) THEN 51 END ) + + AVG ( + + 63 ) THEN 94 * CAST( NULL AS DECIMAL ) - - 71 ELSE NULL END AS SIGNED ) AS col0, 53 DIV + 32
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4740
SELECT ALL 65 + + + CAST ( CASE COUNT ( * ) WHEN - ( - + CASE + NULLIF ( - 59, + - 16 - - + CAST ( NULL AS INTEGER ) ) WHEN - COUNT ( * ) THEN 51 END ) + + AVG ( + + 63 ) THEN 94 * CAST ( NULL AS REAL ) - - 71 ELSE NULL END AS INTEGER ) AS col0, 53 / + 32
----
NULL
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4741
SELECT ALL COUNT( * ) + + + 27 + COALESCE ( + 95, - - 91 + + + COUNT( 24 ) * + 29 ) DIV + + ( - + ( 87 ) )
----
27

skipif mysql # not compatible
query I rowsort label-4741
SELECT ALL COUNT ( * ) + + + 27 + COALESCE ( + 95, - - 91 + + + COUNT ( 24 ) * + 29 ) / + + ( - + ( 87 ) )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4742
SELECT 56 - - - COUNT( * ) + + + 37 * - 34
----
-1203

skipif mysql # not compatible
query I rowsort label-4742
SELECT 56 - - - COUNT ( * ) + + + 37 * - 34
----
-1203

query I rowsort
SELECT 90 col2
----
90

query I rowsort
SELECT ALL + 38 + - 95 AS col1
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4745
SELECT + + CAST( NULL AS SIGNED ) - + 27 * 86 + + + 32 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4745
SELECT + + CAST ( NULL AS INTEGER ) - + 27 * 86 + + + 32 AS col1
----
NULL

query I rowsort
SELECT + 54 * - 65 AS col2
----
-3510

query I rowsort
SELECT - - 55 col2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4748
SELECT + - 17 - - - COUNT( ALL + 57 ) * - 79 * + 2 AS col2
----
141

skipif mysql # not compatible
query I rowsort label-4748
SELECT + - 17 - - - COUNT ( ALL + 57 ) * - 79 * + 2 AS col2
----
141

query I rowsort
SELECT ALL - 12 - + 67 - - + 21 * 59 AS col1
----
1160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4750
SELECT CAST( - - 55 AS SIGNED )
----
55

skipif mysql # not compatible
query I rowsort label-4750
SELECT CAST ( - - 55 AS INTEGER )
----
55

query I rowsort
SELECT - - 68 * + - 63 AS col2
----
-4284

query I rowsort
SELECT + + 57 + - 86 + - 50
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4753
SELECT - 84 DIV + NULLIF ( + 50, - CAST( NULL AS SIGNED ) DIV - 21 - + - 70 * + 6 ) - ( + + CAST( + 76 AS SIGNED ) ) * - + COUNT( * ) DIV 87 * 98 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4753
SELECT - 84 / + NULLIF ( + 50, - CAST ( NULL AS INTEGER ) / - 21 - + - 70 * + 6 ) - ( + + CAST ( + 76 AS INTEGER ) ) * - + COUNT ( * ) / 87 * 98 AS col2
----
-1

query I rowsort
SELECT ALL - 24 col0
----
-24

query I rowsort
SELECT DISTINCT - 11
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4756
SELECT DISTINCT + + COUNT( * ) * - + SUM( 85 ) * - 17 AS col1
----
1445

skipif mysql # not compatible
query I rowsort label-4756
SELECT DISTINCT + + COUNT ( * ) * - + SUM ( 85 ) * - 17 AS col1
----
1445

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4757
SELECT - 54 + COALESCE ( + + 27, - - COUNT( 70 ), + 61 * - + CAST( NULL AS SIGNED ) ), + MIN( - 40 ) AS col2
----
-27
-40

skipif mysql # not compatible
query II rowsort label-4757
SELECT - 54 + COALESCE ( + + 27, - - COUNT ( 70 ), + 61 * - + CAST ( NULL AS INTEGER ) ), + MIN ( - 40 ) AS col2
----
-27
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4758
SELECT DISTINCT + MAX( ALL + + 43 )
----
43

skipif mysql # not compatible
query I rowsort label-4758
SELECT DISTINCT + MAX ( ALL + + 43 )
----
43

query I rowsort
SELECT ALL + 81 * + 90 AS col2
----
7290

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4760
SELECT CASE + 72 WHEN + - CAST( NULL AS SIGNED ) + + COALESCE ( - 34, - 0 ) THEN NULL WHEN - 93 THEN - NULLIF ( + - 26, - 79 ) WHEN + 25 + - - 87 + + - ( 38 ) + + 66 * - 7 * + SUM( DISTINCT 25 ) THEN - CASE + ( COALESCE ( - 36, 34 * ( + 39 * + COUNT( * ) ) + 53 * + 14 ) ) WHEN + NULLIF ( + COUNT( * ), + 31 * - 88 ) THEN CASE COUNT( * ) WHEN - AVG ( ALL + 55 ) THEN - 80 ELSE NULL END END END / 37 + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-4760
SELECT CASE + 72 WHEN + - CAST ( NULL AS INTEGER ) + + COALESCE ( - 34, - 0 ) THEN NULL WHEN - 93 THEN - NULLIF ( + - 26, - 79 ) WHEN + 25 + - - 87 + + - ( 38 ) + + 66 * - 7 * + SUM ( DISTINCT 25 ) THEN - CASE + ( COALESCE ( - 36, 34 * ( + 39 * + COUNT ( * ) ) + 53 * + 14 ) ) WHEN + NULLIF ( + COUNT ( * ), + 31 * - 88 ) THEN CASE COUNT ( * ) WHEN - AVG ( ALL + 55 ) THEN - 80 ELSE NULL END END END / 37 + 42
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4761
SELECT DISTINCT + NULLIF ( 1, 94 + + + CAST( - ( + COALESCE ( 79, + - 80 ) ) AS DECIMAL ) ) * + 20 col2
----
20

skipif mysql # not compatible
query I rowsort label-4761
SELECT DISTINCT + NULLIF ( 1, 94 + + + CAST ( - ( + COALESCE ( 79, + - 80 ) ) AS REAL ) ) * + 20 col2
----
20

query I rowsort
SELECT ( + 61 ) AS col1
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4763
SELECT ALL + 83 * CAST( + 28 AS SIGNED ) DIV COUNT( * ) + ( COUNT( * ) ) AS col1
----
2325

skipif mysql # not compatible
query I rowsort label-4763
SELECT ALL + 83 * CAST ( + 28 AS INTEGER ) / COUNT ( * ) + ( COUNT ( * ) ) AS col1
----
2325

query I rowsort
SELECT ALL + 99 * + 74 + + 63 + - - 27
----
7416

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4765
SELECT + 46, 35 + + + COUNT( - CAST( NULL AS SIGNED ) ) AS col1
----
46
35

skipif mysql # not compatible
query II rowsort label-4765
SELECT + 46, 35 + + + COUNT ( - CAST ( NULL AS INTEGER ) ) AS col1
----
46
35

query I rowsort
SELECT ( 85 ) AS col2
----
85

query I rowsort
SELECT NULLIF ( 40, - - 39 ) AS col1
----
40

query I rowsort
SELECT - 36 * 61
----
-2196

onlyif mysql # aggregate syntax: 
query II rowsort label-4769
SELECT + COUNT( * ) AS col0, + 22 * + - 29
----
1
-638

skipif mysql # not compatible
query II rowsort label-4769
SELECT + COUNT ( * ) AS col0, + 22 * + - 29
----
1
-638

query I rowsort
SELECT ALL + NULLIF ( - 21, + - 50 * 69 ) AS col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4771
SELECT COALESCE ( 45, - COUNT( * ) + SUM( DISTINCT + 14 ) * 78 )
----
45

skipif mysql # not compatible
query I rowsort label-4771
SELECT COALESCE ( 45, - COUNT ( * ) + SUM ( DISTINCT + 14 ) * 78 )
----
45

query I rowsort
SELECT DISTINCT + COALESCE ( + 12, 17, + 98 ) AS col2
----
12

query I rowsort
SELECT ALL 18 * 9 col1
----
162

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4774
SELECT - 24 + CAST( NULL AS DECIMAL ) / 64, - COALESCE ( - 53, - + COUNT( * ) ) AS col1
----
NULL
53

skipif mysql # not compatible
query II rowsort label-4774
SELECT - 24 + CAST ( NULL AS REAL ) / 64, - COALESCE ( - 53, - + COUNT ( * ) ) AS col1
----
NULL
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4775
SELECT + SUM( ALL - 7 )
----
-7

skipif mysql # not compatible
query I rowsort label-4775
SELECT + SUM ( ALL - 7 )
----
-7

query I rowsort
SELECT ALL + COALESCE ( - + 36, 26 + - - 95 )
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4777
SELECT + 78 AS col2, + 75 + - CAST( NULL AS SIGNED ) + + 73
----
78
NULL

skipif mysql # not compatible
query II rowsort label-4777
SELECT + 78 AS col2, + 75 + - CAST ( NULL AS INTEGER ) + + 73
----
78
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4778
SELECT + 52 - COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-4778
SELECT + 52 - COUNT ( * )
----
51

query I rowsort
SELECT ALL + - 26
----
-26

query II rowsort
SELECT DISTINCT + 74, 38 AS col1
----
74
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4781
SELECT ALL MAX( DISTINCT 19 )
----
19

skipif mysql # not compatible
query I rowsort label-4781
SELECT ALL MAX ( DISTINCT 19 )
----
19

query I rowsort
SELECT + + 46 + + - 73
----
-27

query I rowsort
SELECT - + 82 AS col1
----
-82

query I rowsort
SELECT + - 71 + + 89 AS col1
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-4785
SELECT - 85 * - + ( 86 ) col2, - COUNT( ALL - + 96 ) + + NULLIF ( 76, - 63 * - ( 65 ) ) + - + 67
----
7310
8

skipif mysql # not compatible
query II rowsort label-4785
SELECT - 85 * - + ( 86 ) col2, - COUNT ( ALL - + 96 ) + + NULLIF ( 76, - 63 * - ( 65 ) ) + - + 67
----
7310
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4786
SELECT + + MIN( DISTINCT 81 ) + COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-4786
SELECT + + MIN ( DISTINCT 81 ) + COUNT ( * )
----
82

query II rowsort
SELECT 18, 64 AS col1
----
18
64

query I rowsort
SELECT + - 22 * + + 81
----
-1782

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4789
SELECT ALL CAST( 67 AS SIGNED ) * + 69 DIV - NULLIF ( - - ( + 3 ), - - 55 * + 71 ) AS col0, + 92 AS col1
----
-1541
92

skipif mysql # not compatible
query II rowsort label-4789
SELECT ALL CAST ( 67 AS INTEGER ) * + 69 / - NULLIF ( - - ( + 3 ), - - 55 * + 71 ) AS col0, + 92 AS col1
----
-1541
92

query I rowsort
SELECT + + 94 * - 29
----
-2726

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4791
SELECT DISTINCT - CAST( + CASE + - ( - 91 ) WHEN + COUNT( * ) + + COUNT( * ) + + 39 * 36 THEN + + COUNT( * ) * + + 98 + + 82 + 75 * 33 * + ( - COUNT( * ) ) WHEN - MIN( 62 ) + - 27 THEN NULL ELSE NULL END AS SIGNED ) / + 90 * + 96 * 48
----
NULL

skipif mysql # not compatible
query I rowsort label-4791
SELECT DISTINCT - CAST ( + CASE + - ( - 91 ) WHEN + COUNT ( * ) + + COUNT ( * ) + + 39 * 36 THEN + + COUNT ( * ) * + + 98 + + 82 + 75 * 33 * + ( - COUNT ( * ) ) WHEN - MIN ( 62 ) + - 27 THEN NULL ELSE NULL END AS INTEGER ) / + 90 * + 96 * 48
----
NULL

query I rowsort
SELECT ALL 21 AS col1
----
21

query I rowsort
SELECT - ( - 89 ) AS col1
----
89

onlyif mysql # DIV for integer division: 
query II rowsort label-4794
SELECT + ( 29 ) * + 85 AS col0, - 33 DIV - 24 AS col0
----
2465
1

skipif mysql # not compatible
query II rowsort label-4794
SELECT + ( 29 ) * + 85 AS col0, - 33 / - 24 AS col0
----
2465
1

query I rowsort
SELECT ALL - 39 * - 19 AS col2
----
741

onlyif mysql # aggregate syntax: 
query I rowsort label-4796
SELECT ALL + 75 + COUNT( * ) + + - 97 AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-4796
SELECT ALL + 75 + COUNT ( * ) + + - 97 AS col2
----
-21

query I rowsort
SELECT ( + 70 ) AS col1
----
70

query I rowsort
SELECT + 67 * 14 col1
----
938

onlyif mysql # aggregate syntax: 
query I rowsort label-4799
SELECT - ( + CASE + MIN( - 98 ) WHEN + 67 * + 34 THEN - COUNT( * ) WHEN - + 52 THEN NULL ELSE NULL END ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4799
SELECT - ( + CASE + MIN ( - 98 ) WHEN + 67 * + 34 THEN - COUNT ( * ) WHEN - + 52 THEN NULL ELSE NULL END ) col2
----
NULL

query II rowsort
SELECT - 88 AS col2, + 20 + + 85 - - 27 AS col1
----
-88
132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4801
SELECT + 91 AS col0, + 75 + - ( + CAST( + + MIN( ALL + 43 ) AS SIGNED ) )
----
91
32

skipif mysql # not compatible
query II rowsort label-4801
SELECT + 91 AS col0, + 75 + - ( + CAST ( + + MIN ( ALL + 43 ) AS INTEGER ) )
----
91
32

onlyif mysql # aggregate syntax: 
query II rowsort label-4802
SELECT + 37 * - - 21 col0, MAX( - 50 ) col2
----
777
-50

skipif mysql # not compatible
query II rowsort label-4802
SELECT + 37 * - - 21 col0, MAX ( - 50 ) col2
----
777
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-4803
SELECT ALL - 23 DIV - 82 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4803
SELECT ALL - 23 / - 82 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4804
SELECT ALL - COUNT( - 83 ) DIV + 41 + 72 + CAST( 31 AS SIGNED ) AS col1
----
103

skipif mysql # not compatible
query I rowsort label-4804
SELECT ALL - COUNT ( - 83 ) / + 41 + 72 + CAST ( 31 AS INTEGER ) AS col1
----
103

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4805
SELECT ALL 91 DIV - 49 + - ( + + 94 ) * + - 99 - 77 + 19 + + - ( + + COUNT( * ) ) * COUNT( * ) AS col2
----
9246

skipif mysql # not compatible
query I rowsort label-4805
SELECT ALL 91 / - 49 + - ( + + 94 ) * + - 99 - 77 + 19 + + - ( + + COUNT ( * ) ) * COUNT ( * ) AS col2
----
9246

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-4806
SELECT + 9 DIV + - NULLIF ( + - 98, MAX( + 54 ) ) * 71 + - 16 AS col0, - 74 * - - 37 AS col1, - 52
----
-16
-2738
-52

skipif mysql # not compatible
query III rowsort label-4806
SELECT + 9 / + - NULLIF ( + - 98, MAX ( + 54 ) ) * 71 + - 16 AS col0, - 74 * - - 37 AS col1, - 52
----
-16
-2738
-52

query I rowsort
SELECT - 0 + - 55 AS col2
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-4808
SELECT ALL 28 DIV + 37 * - 74 + + 72 + + + 8 AS col1
----
80

skipif mysql # not compatible
query I rowsort label-4808
SELECT ALL 28 / + 37 * - 74 + + 72 + + + 8 AS col1
----
80

query I rowsort
SELECT + 70 AS col1
----
70

query I rowsort
SELECT 68 * - 35 col1
----
-2380

query I rowsort
SELECT 4 * + ( + 53 )
----
212

query II rowsort
SELECT 7, + 91 * 25 + - 85 AS col2
----
7
2190

query I rowsort
SELECT 52 * + + 61 + - 80 AS col0
----
3092

query I rowsort
SELECT ALL - ( - - 16 ) AS col2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-4815
SELECT ALL - CASE - 5 WHEN 94 * NULLIF ( + COUNT( * ), + 94 ) * 19 + 10 THEN NULL ELSE - 18 END - 93 + + 54 AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-4815
SELECT ALL - CASE - 5 WHEN 94 * NULLIF ( + COUNT ( * ), + 94 ) * 19 + 10 THEN NULL ELSE - 18 END - 93 + + 54 AS col2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4816
SELECT + SUM( - - 61 ) * 99
----
6039

skipif mysql # not compatible
query I rowsort label-4816
SELECT + SUM ( - - 61 ) * 99
----
6039

onlyif mysql # aggregate syntax: 
query I rowsort label-4817
SELECT ALL + + COUNT( * ) - 89 col0
----
-88

skipif mysql # not compatible
query I rowsort label-4817
SELECT ALL + + COUNT ( * ) - 89 col0
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4818
SELECT ALL - + 77 AS col2, - 24 + 69 + - - 39 + + MAX( ALL - 85 ) * - 96 + - CASE - CAST( NULL AS SIGNED ) WHEN - 54 THEN + + 95 * 39 * + 58 + 46 + - + 99 / - 86 + + + COUNT( * ) ELSE NULL END * + 78
----
-77
NULL

skipif mysql # not compatible
query II rowsort label-4818
SELECT ALL - + 77 AS col2, - 24 + 69 + - - 39 + + MAX ( ALL - 85 ) * - 96 + - CASE - CAST ( NULL AS INTEGER ) WHEN - 54 THEN + + 95 * 39 * + 58 + 46 + - + 99 / - 86 + + + COUNT ( * ) ELSE NULL END * + 78
----
-77
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4819
SELECT 94 * - CAST( NULL AS SIGNED ) * - 72 / + 45 AS col1, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4819
SELECT 94 * - CAST ( NULL AS INTEGER ) * - 72 / + 45 AS col1, COUNT ( * )
----
NULL
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4820
SELECT ALL - COUNT( DISTINCT - 37 ) * - COUNT( - CAST( NULL AS SIGNED ) ), - 85 * - AVG ( DISTINCT + - CAST( NULL AS DECIMAL ) ) AS col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-4820
SELECT ALL - COUNT ( DISTINCT - 37 ) * - COUNT ( - CAST ( NULL AS INTEGER ) ), - 85 * - AVG ( DISTINCT + - CAST ( NULL AS REAL ) ) AS col2
----
0
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4821
SELECT - 69 - 95 + + + ( - COUNT( * ) ) DIV - 57 AS col0
----
-164

skipif mysql # not compatible
query I rowsort label-4821
SELECT - 69 - 95 + + + ( - COUNT ( * ) ) / - 57 AS col0
----
-164

query I rowsort
SELECT - 82 - 52
----
-134

query I rowsort
SELECT DISTINCT - - 83 * 10 AS col1
----
830

onlyif mysql # aggregate syntax: 
query I rowsort label-4824
SELECT 74 * - + CASE + 14 WHEN COUNT( 36 ) THEN - ( + + 7 ) + - COUNT( + 5 ) WHEN - COUNT( * ) * - 65 + - + 53 + 13 THEN NULL WHEN + 70 / - 13 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4824
SELECT 74 * - + CASE + 14 WHEN COUNT ( 36 ) THEN - ( + + 7 ) + - COUNT ( + 5 ) WHEN - COUNT ( * ) * - 65 + - + 53 + 13 THEN NULL WHEN + 70 / - 13 THEN NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4825
SELECT - + 17 AS col1, - 31 + CASE COUNT( * ) WHEN 25 / + - 90 + - 91 THEN 12 WHEN MIN( + + 47 ) + + - CAST( 3 AS SIGNED ) * - 36 THEN 81 * - 76 + 15 * + + COUNT( * ) * + CAST( NULL AS SIGNED ) END AS col1
----
-17
NULL

skipif mysql # not compatible
query II rowsort label-4825
SELECT - + 17 AS col1, - 31 + CASE COUNT ( * ) WHEN 25 / + - 90 + - 91 THEN 12 WHEN MIN ( + + 47 ) + + - CAST ( 3 AS INTEGER ) * - 36 THEN 81 * - 76 + 15 * + + COUNT ( * ) * + CAST ( NULL AS INTEGER ) END AS col1
----
-17
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4826
SELECT DISTINCT ( - - 82 ) + + 32 DIV 29 + - COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-4826
SELECT DISTINCT ( - - 82 ) + + 32 / 29 + - COUNT ( * )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4827
SELECT DISTINCT + + 54 * COUNT( * ) - 44 + ( + 83 ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-4827
SELECT DISTINCT + + 54 * COUNT ( * ) - 44 + ( + 83 ) AS col2
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4828
SELECT + 23 DIV - - MIN( DISTINCT + - ( - 12 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4828
SELECT + 23 / - - MIN ( DISTINCT + - ( - 12 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4829
SELECT ALL - MAX( ALL + + 65 ) + - 34 * 65 - + 63 AS col1
----
-2338

skipif mysql # not compatible
query I rowsort label-4829
SELECT ALL - MAX ( ALL + + 65 ) + - 34 * 65 - + 63 AS col1
----
-2338

query I rowsort
SELECT ALL - + 41 + - 46
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4831
SELECT 43 - CASE - 16 WHEN 98 * COUNT( * ) + CAST( + 76 AS SIGNED ) + ( + 26 ) * - + 44 * + 34 * 38 THEN 39 * + + CAST( - + 68 AS SIGNED ) WHEN + + COUNT( * ) / - 92 - + 62 THEN SUM( DISTINCT - - 88 ) ELSE CAST( + 7 AS SIGNED ) END * COUNT( * ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-4831
SELECT 43 - CASE - 16 WHEN 98 * COUNT ( * ) + CAST ( + 76 AS INTEGER ) + ( + 26 ) * - + 44 * + 34 * 38 THEN 39 * + + CAST ( - + 68 AS INTEGER ) WHEN + + COUNT ( * ) / - 92 - + 62 THEN SUM ( DISTINCT - - 88 ) ELSE CAST ( + 7 AS INTEGER ) END * COUNT ( * ) AS col2
----
36

query I rowsort
SELECT 45 + - 13 AS col1
----
32

query I rowsort
SELECT ALL 29 + - ( - - 72 )
----
-43

query II rowsort
SELECT 34 + 75, + 84 * + 45 AS col0
----
109
3780

query I rowsort
SELECT ALL 72 * + ( - 13 ) col0
----
-936

query I rowsort
SELECT NULLIF ( - - 61, 93 ) + + 87 * 9 col1
----
844

query I rowsort
SELECT DISTINCT 7 * 67 * 35 AS col1
----
16415

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4838
SELECT 53 + - - CAST( NULL AS SIGNED ), - 53 AS col0
----
NULL
-53

skipif mysql # not compatible
query II rowsort label-4838
SELECT 53 + - - CAST ( NULL AS INTEGER ), - 53 AS col0
----
NULL
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-4839
SELECT ALL COUNT( * ) + - 12 * + - 3 AS col1
----
37

skipif mysql # not compatible
query I rowsort label-4839
SELECT ALL COUNT ( * ) + - 12 * + - 3 AS col1
----
37

query I rowsort
SELECT DISTINCT 71 * 99 col0
----
7029

query I rowsort
SELECT + 57 AS col1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4842
SELECT CASE + NULLIF ( + 16, + 31 * 91 + - 95 + 91 * - ( COUNT( * ) ) ) WHEN ( 41 ) THEN + 32 END / + 17 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4842
SELECT CASE + NULLIF ( + 16, + 31 * 91 + - 95 + 91 * - ( COUNT ( * ) ) ) WHEN ( 41 ) THEN + 32 END / + 17 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4843
SELECT ALL 59 / + MAX( 52 ) * - CAST( NULL AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4843
SELECT ALL 59 / + MAX ( 52 ) * - CAST ( NULL AS REAL ) col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4844
SELECT ALL 5 / CAST( NULL AS SIGNED ) AS col1, 53 AS col1
----
NULL
53

skipif mysql # not compatible
query II rowsort label-4844
SELECT ALL 5 / CAST ( NULL AS INTEGER ) AS col1, 53 AS col1
----
NULL
53

query I rowsort
SELECT DISTINCT - 26 AS col0
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-4846
SELECT 71 - - 45 DIV 59 DIV + 47 col2
----
71

skipif mysql # not compatible
query I rowsort label-4846
SELECT 71 - - 45 / 59 / + 47 col2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4847
SELECT + CASE - 3 WHEN - 56 - + MAX( ALL 29 ) THEN + 59 END * + 69 / SUM( + 60 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4847
SELECT + CASE - 3 WHEN - 56 - + MAX ( ALL 29 ) THEN + 59 END * + 69 / SUM ( + 60 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4848
SELECT DISTINCT - + MIN( - + 97 )
----
97

skipif mysql # not compatible
query I rowsort label-4848
SELECT DISTINCT - + MIN ( - + 97 )
----
97

query I rowsort
SELECT ALL - + 83
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4850
SELECT NULLIF ( - + 35, COUNT( * ) ) * + + 52 + - CAST( NULL AS SIGNED ) + + 85 * - - NULLIF ( + 67, + - 84 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4850
SELECT NULLIF ( - + 35, COUNT ( * ) ) * + + 52 + - CAST ( NULL AS INTEGER ) + + 85 * - - NULLIF ( + 67, + - 84 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4851
SELECT 38 * - 35 + + + COUNT( * ) - - - 87 + 85 + + MIN( + ( - - 76 ) ) col0
----
-1255

skipif mysql # not compatible
query I rowsort label-4851
SELECT 38 * - 35 + + + COUNT ( * ) - - - 87 + 85 + + MIN ( + ( - - 76 ) ) col0
----
-1255

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-4852
SELECT + SUM( DISTINCT 48 ) + - 11 + - COALESCE ( + ( + + 32 ), 20 - - + COALESCE ( 15, - 16 DIV + CASE 55 WHEN + 19 DIV - 43 + + ( - ( + 90 ) ) + + 36 THEN ( - + 11 ) * 79 + - 86 - ( - COALESCE ( 0, CAST( 33 AS SIGNED ), - CASE ( - NULLIF ( - COUNT( * ), - 5 * + 94 ) ) WHEN 11 THEN + ( - 2 ) WHEN - ( MAX( ALL 92 ) ) + - 44 * + 5 THEN 95 * 56 + 88 WHEN + COUNT( * ) THEN 98 - - COUNT( * ) END + + AVG ( + 37 ) * + 27, AVG ( DISTINCT - 25 ), 30 DIV ( - 31 ) ) ) * 90 WHEN - CAST( + 27 AS DECIMAL ) THEN ( 92 ) + COUNT( DISTINCT 18 ) END DIV 50 ), 85 ) * 43
----
-1339

skipif mysql # not compatible
query I rowsort label-4852
SELECT + SUM ( DISTINCT 48 ) + - 11 + - COALESCE ( + ( + + 32 ), 20 - - + COALESCE ( 15, - 16 / + CASE 55 WHEN + 19 / - 43 + + ( - ( + 90 ) ) + + 36 THEN ( - + 11 ) * 79 + - 86 - ( - COALESCE ( 0, CAST ( 33 AS INTEGER ), - CASE ( - NULLIF ( - COUNT ( * ), - 5 * + 94 ) ) WHEN 11 THEN + ( - 2 ) WHEN - ( MAX ( ALL 92 ) ) + - 44 * + 5 THEN 95 * 56 + 88 WHEN + COUNT ( * ) THEN 98 - - COUNT ( * ) END + + AVG ( + 37 ) * + 27, AVG ( DISTINCT - 25 ), 30 / ( - 31 ) ) ) * 90 WHEN - CAST ( + 27 AS REAL ) THEN ( 92 ) + COUNT ( DISTINCT 18 ) END / 50 ), 85 ) * 43
----
-1339

query I rowsort
SELECT ALL - + ( + - 50 )
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4854
SELECT ALL + 83 + - NULLIF ( - CAST( - 15 AS SIGNED ), COUNT( * ) * + COALESCE ( - + 20, - - ( 17 ) / - 8 + 90 * + COUNT( * ) + SUM( 64 ) + + + 33 + + + 21 ) )
----
68

skipif mysql # not compatible
query I rowsort label-4854
SELECT ALL + 83 + - NULLIF ( - CAST ( - 15 AS INTEGER ), COUNT ( * ) * + COALESCE ( - + 20, - - ( 17 ) / - 8 + 90 * + COUNT ( * ) + SUM ( 64 ) + + + 33 + + + 21 ) )
----
68

query I rowsort
SELECT DISTINCT + 63 AS col0
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4856
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + - - 84 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4856
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + - - 84 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4857
SELECT COALESCE ( - - 67, + 11, + + CAST( NULL AS SIGNED ) ) col0
----
67

skipif mysql # not compatible
query I rowsort label-4857
SELECT COALESCE ( - - 67, + 11, + + CAST ( NULL AS INTEGER ) ) col0
----
67

query I rowsort
SELECT ALL - 48 + - ( - + 42 ) AS col1
----
-6

query I rowsort
SELECT - + 45 AS col1
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-4860
SELECT - - MIN( - - 52 )
----
52

skipif mysql # not compatible
query I rowsort label-4860
SELECT - - MIN ( - - 52 )
----
52

query I rowsort
SELECT - 57 + + + 87 AS col2
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4862
SELECT + CAST( + 36 AS SIGNED ) * 0 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4862
SELECT + CAST ( + 36 AS INTEGER ) * 0 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4863
SELECT + SUM( DISTINCT - 41 ) * + NULLIF ( + 3, + - 16 / + 98 ) + + 57 AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-4863
SELECT + SUM ( DISTINCT - 41 ) * + NULLIF ( + 3, + - 16 / + 98 ) + + 57 AS col2
----
-66

query I rowsort
SELECT ALL + 57 * - 15 * - + 53 AS col2
----
45315

query I rowsort
SELECT ALL - 69 * - - ( + 12 )
----
-828

query I rowsort
SELECT 44 * 37
----
1628

onlyif mysql # aggregate syntax: 
query III rowsort label-4867
SELECT - 86 AS col2, + CASE - + 71 WHEN + + 35 * - + 72 + 0 - - - 49 + + + 12 * - 44 * - COUNT( * ) THEN NULL WHEN + 56 / COUNT( * ) THEN - 5 + 16 END AS col0, 32 AS col2
----
-86
NULL
32

skipif mysql # not compatible
query III rowsort label-4867
SELECT - 86 AS col2, + CASE - + 71 WHEN + + 35 * - + 72 + 0 - - - 49 + + + 12 * - 44 * - COUNT ( * ) THEN NULL WHEN + 56 / COUNT ( * ) THEN - 5 + 16 END AS col0, 32 AS col2
----
-86
NULL
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4868
SELECT ALL 25 + - NULLIF ( + CAST( 91 AS SIGNED ), - - 38 ) + + 87 AS col0
----
21

skipif mysql # not compatible
query I rowsort label-4868
SELECT ALL 25 + - NULLIF ( + CAST ( 91 AS INTEGER ), - - 38 ) + + 87 AS col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4869
SELECT MAX( ALL + 80 ) * + - ( - - 47 ) AS col2
----
-3760

skipif mysql # not compatible
query I rowsort label-4869
SELECT MAX ( ALL + 80 ) * + - ( - - 47 ) AS col2
----
-3760

onlyif mysql # aggregate syntax: 
query I rowsort label-4870
SELECT ALL + COUNT( * ) * - 8 AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-4870
SELECT ALL + COUNT ( * ) * - 8 AS col1
----
-8

query I rowsort
SELECT DISTINCT - 51 - - 76 AS col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4872
SELECT + 1 + + COUNT( - 83 )
----
2

skipif mysql # not compatible
query I rowsort label-4872
SELECT + 1 + + COUNT ( - 83 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4873
SELECT - COUNT( DISTINCT 79 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4873
SELECT - COUNT ( DISTINCT 79 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4874
SELECT - COUNT( DISTINCT - 18 ) * - + 85 col0
----
85

skipif mysql # not compatible
query I rowsort label-4874
SELECT - COUNT ( DISTINCT - 18 ) * - + 85 col0
----
85

query I rowsort
SELECT - 47 - 79 AS col2
----
-126

query II rowsort
SELECT ALL + 39 col1, - 58 AS col1
----
39
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-4877
SELECT + 76 * - - 52 - 22 DIV - 38 AS col2
----
3952

skipif mysql # not compatible
query I rowsort label-4877
SELECT + 76 * - - 52 - 22 / - 38 AS col2
----
3952

onlyif mysql # aggregate syntax: 
query I rowsort label-4878
SELECT + COALESCE ( 35, 6 ) * - SUM( ALL - 88 ) AS col2
----
3080

skipif mysql # not compatible
query I rowsort label-4878
SELECT + COALESCE ( 35, 6 ) * - SUM ( ALL - 88 ) AS col2
----
3080

onlyif mysql # aggregate syntax: 
query I rowsort label-4879
SELECT DISTINCT COUNT( - 89 ) * + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4879
SELECT DISTINCT COUNT ( - 89 ) * + COUNT ( * )
----
1

query I rowsort
SELECT DISTINCT + 16 * + + 54 * - 7 AS col1
----
-6048

onlyif mysql # DIV for integer division: 
query II rowsort label-4881
SELECT + 93 DIV 25 * - 70 col1, 98 * + 53 AS col1
----
-210
5194

skipif mysql # not compatible
query II rowsort label-4881
SELECT + 93 / 25 * - 70 col1, 98 * + 53 AS col1
----
-210
5194

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4882
SELECT - 63 DIV + 26 + COUNT( * ) + + COUNT( * ) * + 62 col0
----
61

skipif mysql # not compatible
query I rowsort label-4882
SELECT - 63 / + 26 + COUNT ( * ) + + COUNT ( * ) * + 62 col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4883
SELECT DISTINCT COUNT( * ) * + 97
----
97

skipif mysql # not compatible
query I rowsort label-4883
SELECT DISTINCT COUNT ( * ) * + 97
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4884
SELECT + + CASE + MAX( ALL 5 ) WHEN - ( + 87 ) + + - 1 THEN - 47 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4884
SELECT + + CASE + MAX ( ALL 5 ) WHEN - ( + 87 ) + + - 1 THEN - 47 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4885
SELECT ALL + + COUNT( ALL ( + 2 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4885
SELECT ALL + + COUNT ( ALL ( + 2 ) )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4886
SELECT + + 84 DIV 20 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-4886
SELECT + + 84 / 20 AS col0
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4887
SELECT + + COALESCE ( 65, CASE + - 95 WHEN - 54 THEN - ( + + 32 ) WHEN 67 + COUNT( * ) THEN + 29 WHEN 46 THEN NULL END + - 74 ) + CASE + COUNT( * ) WHEN + + 17 THEN NULL ELSE - COUNT( * ) END, ( + 54 ) DIV + 39 + + 56 - - 50 * - - 95 + - - 3 AS col0
----
64
4810

skipif mysql # not compatible
query II rowsort label-4887
SELECT + + COALESCE ( 65, CASE + - 95 WHEN - 54 THEN - ( + + 32 ) WHEN 67 + COUNT ( * ) THEN + 29 WHEN 46 THEN NULL END + - 74 ) + CASE + COUNT ( * ) WHEN + + 17 THEN NULL ELSE - COUNT ( * ) END, ( + 54 ) / + 39 + + 56 - - 50 * - - 95 + - - 3 AS col0
----
64
4810

query I rowsort
SELECT ALL + + 95
----
95

query I rowsort
SELECT DISTINCT - - 44 * + 0 * + 53 + + 95 + 81
----
176

query I rowsort
SELECT ALL - 91 * - + 33 + - 10 * + - 39
----
3393

query I rowsort
SELECT ALL + - 22 AS col0
----
-22

query I rowsort
SELECT ALL 53 * + 75 + + - 32 AS col0
----
3943

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4893
SELECT ALL - + 59 * - - 66 * + 90 + + CAST( + - COUNT( * ) AS SIGNED ) + 44
----
-350417

skipif mysql # not compatible
query I rowsort label-4893
SELECT ALL - + 59 * - - 66 * + 90 + + CAST ( + - COUNT ( * ) AS INTEGER ) + 44
----
-350417

query I rowsort
SELECT + - 82 col2
----
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-4895
SELECT + + 71 - - 8 * + ( + - COUNT( * ) ) AS col1, 66
----
63
66

skipif mysql # not compatible
query II rowsort label-4895
SELECT + + 71 - - 8 * + ( + - COUNT ( * ) ) AS col1, 66
----
63
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4896
SELECT - NULLIF ( + 81, - + 8 * + + 88 * + + SUM( ( + 63 ) ) )
----
-81

skipif mysql # not compatible
query I rowsort label-4896
SELECT - NULLIF ( + 81, - + 8 * + + 88 * + + SUM ( ( + 63 ) ) )
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4897
SELECT CASE - - 16 WHEN + 35 * + + 6 THEN NULL WHEN CAST( NULL AS SIGNED ) THEN NULL ELSE SUM( ALL 1 ) DIV - 90 + ( 71 ) END * 97 DIV + ( ( 81 ) ) + - 74 - + 88 col1
----
-77

skipif mysql # not compatible
query I rowsort label-4897
SELECT CASE - - 16 WHEN + 35 * + + 6 THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN NULL ELSE SUM ( ALL 1 ) / - 90 + ( 71 ) END * 97 / + ( ( 81 ) ) + - 74 - + 88 col1
----
-77

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

skipif mysql # not compatible
query I rowsort label-4898
SELECT - ( + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query II rowsort
SELECT DISTINCT 12 AS col2, 35 * + 43 * 80 * - 15 AS col1
----
12
-1806000

query I rowsort
SELECT - 84 col0
----
-84

query I rowsort
SELECT - ( 96 ) - + 41
----
-137

query I rowsort
SELECT ALL + 92 * - - 10
----
920

query I rowsort
SELECT + 78 + - 88 + + 83
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4904
SELECT + CASE - 78 WHEN + - 29 + 43 THEN + + 86 - + 87 * + COUNT( * ) + - 15 / CAST( - COUNT( ALL - + 58 ) AS SIGNED ) END + - 89 + + - COUNT( * ) * + 12 * + - 75 * + - CAST( NULL AS SIGNED ) + - 29
----
NULL

skipif mysql # not compatible
query I rowsort label-4904
SELECT + CASE - 78 WHEN + - 29 + 43 THEN + + 86 - + 87 * + COUNT ( * ) + - 15 / CAST ( - COUNT ( ALL - + 58 ) AS INTEGER ) END + - 89 + + - COUNT ( * ) * + 12 * + - 75 * + - CAST ( NULL AS INTEGER ) + - 29
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4905
SELECT - ( + - 46 ) DIV 59 * - - 46 * COUNT( * ) * ( + 17 )
----
0

skipif mysql # not compatible
query I rowsort label-4905
SELECT - ( + - 46 ) / 59 * - - 46 * COUNT ( * ) * ( + 17 )
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4906
SELECT ALL - 92 * + 44, CAST( NULL AS DECIMAL ) col2
----
-4048
NULL

skipif mysql # not compatible
query II rowsort label-4906
SELECT ALL - 92 * + 44, CAST ( NULL AS REAL ) col2
----
-4048
NULL

query I rowsort
SELECT - 56 col1
----
-56

query I rowsort
SELECT - 24 + - NULLIF ( + 0, + 97 * 86 + 8 * + 75 ) AS col1
----
-24

query I rowsort
SELECT ALL - 2 * + 77 * - - 83
----
-12782

query I rowsort
SELECT - ( 73 ) * - 84
----
6132

query I rowsort
SELECT ALL + 30 * - + 98 * + 96 col1
----
-282240

query I rowsort
SELECT ALL NULLIF ( + 85, - 40 )
----
85

query I rowsort
SELECT DISTINCT + 45
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4914
SELECT - ( NULLIF ( 6, 77 ) ) * + + ( - ( + 6 ) ) * + 63 + 28 + - COUNT( * )
----
2295

skipif mysql # not compatible
query I rowsort label-4914
SELECT - ( NULLIF ( 6, 77 ) ) * + + ( - ( + 6 ) ) * + 63 + 28 + - COUNT ( * )
----
2295

onlyif mysql # aggregate syntax: 
query II rowsort label-4915
SELECT + 87 * + COUNT( * ) AS col2, 4 AS col0
----
87
4

skipif mysql # not compatible
query II rowsort label-4915
SELECT + 87 * + COUNT ( * ) AS col2, 4 AS col0
----
87
4

query I rowsort
SELECT DISTINCT + - 61 AS col2
----
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-4917
SELECT ALL + - 32 DIV - + 71 * - + 21 + - + 17
----
-17

skipif mysql # not compatible
query I rowsort label-4917
SELECT ALL + - 32 / - + 71 * - + 21 + - + 17
----
-17

query I rowsort
SELECT - 35 + - + 47 AS col1
----
-82

query I rowsort
SELECT DISTINCT + + 27
----
27

query I rowsort
SELECT 45 col2
----
45

query I rowsort
SELECT + - 18 AS col1
----
-18

query I rowsort
SELECT ALL + + 29 AS col0
----
29

query I rowsort
SELECT ALL + 23 * 8 * + 61 AS col0
----
11224

onlyif mysql # aggregate syntax: 
query I rowsort label-4924
SELECT 12 * COUNT( * ) * + 63 * 94 * - - COUNT( * ) + COUNT( * ) * - 13 + + COALESCE ( - 50, + - 27 ) + + 20
----
71021

skipif mysql # not compatible
query I rowsort label-4924
SELECT 12 * COUNT ( * ) * + 63 * 94 * - - COUNT ( * ) + COUNT ( * ) * - 13 + + COALESCE ( - 50, + - 27 ) + + 20
----
71021

query I rowsort
SELECT DISTINCT + 69 col0
----
69

query I rowsort
SELECT ALL + - ( - 24 )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4927
SELECT + 65 + + COUNT( * ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-4927
SELECT + 65 + + COUNT ( * ) AS col1
----
66

query I rowsort
SELECT + - 79 * + + 40 - ( + - 68 )
----
-3092

onlyif mysql # aggregate syntax: 
query I rowsort label-4929
SELECT ( - 72 ) * - COUNT( * ) + - + 59 + - 53
----
-40

skipif mysql # not compatible
query I rowsort label-4929
SELECT ( - 72 ) * - COUNT ( * ) + - + 59 + - 53
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-4930
SELECT ALL - 14 * - + 15 * + 96 - - - ( + COALESCE ( + 74, - CASE + 92 WHEN - 30 THEN NULL ELSE + + ( ( 23 ) ) * + 13 DIV - - 95 END ) )
----
20086

skipif mysql # not compatible
query I rowsort label-4930
SELECT ALL - 14 * - + 15 * + 96 - - - ( + COALESCE ( + 74, - CASE + 92 WHEN - 30 THEN NULL ELSE + + ( ( 23 ) ) * + 13 / - - 95 END ) )
----
20086

query I rowsort
SELECT DISTINCT + ( 53 )
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4932
SELECT DISTINCT 36 * 67 + - + ( + + CAST( NULL AS SIGNED ) ) + + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-4932
SELECT DISTINCT 36 * 67 + - + ( + + CAST ( NULL AS INTEGER ) ) + + 37
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4933
SELECT + 5 * - COUNT( * ) col2
----
-5

skipif mysql # not compatible
query I rowsort label-4933
SELECT + 5 * - COUNT ( * ) col2
----
-5

query I rowsort
SELECT + 8 + + 12 AS col2
----
20

query I rowsort
SELECT 88 + + 9 + 18 - - - 90
----
25

query I rowsort
SELECT - 43 col0
----
-43

query II rowsort
SELECT DISTINCT 44, - 19 AS col1
----
44
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4938
SELECT ALL COUNT( * ) * + 3
----
3

skipif mysql # not compatible
query I rowsort label-4938
SELECT ALL COUNT ( * ) * + 3
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4939
SELECT - 51 AS col0, + 34 + NULLIF ( - + 11, + 76 * - COALESCE ( + + 18, - - 15, - - CAST( - SUM( DISTINCT - - 37 ) AS SIGNED ) + - + COUNT( * ) + + - NULLIF ( + + 37, - 84 ), + - 17 ) + - ( + + 60 ) ) - + 67
----
-51
-44

skipif mysql # not compatible
query II rowsort label-4939
SELECT - 51 AS col0, + 34 + NULLIF ( - + 11, + 76 * - COALESCE ( + + 18, - - 15, - - CAST ( - SUM ( DISTINCT - - 37 ) AS INTEGER ) + - + COUNT ( * ) + + - NULLIF ( + + 37, - 84 ), + - 17 ) + - ( + + 60 ) ) - + 67
----
-51
-44

query I rowsort
SELECT DISTINCT 89 * 50
----
4450

query I rowsort
SELECT 88 * 91
----
8008

query I rowsort
SELECT DISTINCT 59 AS col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4943
SELECT ALL - 44 + + + 82 - - 98 + - + 45 + 80 * MIN( ALL 97 ) + - 73
----
7778

skipif mysql # not compatible
query I rowsort label-4943
SELECT ALL - 44 + + + 82 - - 98 + - + 45 + 80 * MIN ( ALL 97 ) + - 73
----
7778

query I rowsort
SELECT 3 - + 21 AS col1
----
-18

query I rowsort
SELECT - 16 col2
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-4946
SELECT + 33 DIV + - 98
----
0

skipif mysql # not compatible
query I rowsort label-4946
SELECT + 33 / + - 98
----
0

query I rowsort
SELECT ALL + + ( 38 ) * + NULLIF ( 12, + - 49 ) AS col1
----
456

query I rowsort
SELECT ALL + 76 + - 51 AS col2
----
25

query I rowsort
SELECT ALL - 18 + - 86
----
-104

query I rowsort
SELECT + ( + + 23 ) * 54 + + 3 + + 49
----
1294

onlyif mysql # aggregate syntax: 
query I rowsort label-4951
SELECT DISTINCT - - COUNT( * ) + 28 AS col0
----
29

skipif mysql # not compatible
query I rowsort label-4951
SELECT DISTINCT - - COUNT ( * ) + 28 AS col0
----
29

query I rowsort
SELECT 17 * - - 3
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4953
SELECT ALL - CASE 13 WHEN + 83 * + - AVG ( ALL + 78 ) * 40 + - COUNT( * ) + 64 - 40 / + 52 THEN - COUNT( ALL 38 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4953
SELECT ALL - CASE 13 WHEN + 83 * + - AVG ( ALL + 78 ) * 40 + - COUNT ( * ) + 64 - 40 / + 52 THEN - COUNT ( ALL 38 ) END
----
NULL

query I rowsort
SELECT + + 20
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-4955
SELECT + + 9, + COUNT( DISTINCT 46 ) * + 92 AS col0
----
9
92

skipif mysql # not compatible
query II rowsort label-4955
SELECT + + 9, + COUNT ( DISTINCT 46 ) * + 92 AS col0
----
9
92

query I rowsort
SELECT ALL - 53 col1
----
-53

query I rowsort
SELECT + - 97
----
-97

query I rowsort
SELECT + 74 AS col0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4959
SELECT DISTINCT - - ( - - COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4959
SELECT DISTINCT - - ( - - COUNT ( * ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4960
SELECT ALL - 69 - - 92 * 77 col0, COUNT( * ) * 65 AS col0
----
7015
65

skipif mysql # not compatible
query II rowsort label-4960
SELECT ALL - 69 - - 92 * 77 col0, COUNT ( * ) * 65 AS col0
----
7015
65

query I rowsort
SELECT ALL - 11 * - 78
----
858

query I rowsort
SELECT - COALESCE ( + 32, + 88 )
----
-32

query I rowsort
SELECT DISTINCT + - 27 - + 3 col1
----
-30

query I rowsort
SELECT + - ( - + 19 )
----
19

query I rowsort
SELECT ALL - - 68
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-4966
SELECT 43 + - ( - 88 ) * 70 AS col2, + COUNT( * ) * COUNT( ALL 68 ) * CASE - 46 WHEN + 44 THEN COUNT( ALL - 37 ) + - 19 ELSE + - COUNT( * ) END * + 68 AS col2
----
6203
-68

skipif mysql # not compatible
query II rowsort label-4966
SELECT 43 + - ( - 88 ) * 70 AS col2, + COUNT ( * ) * COUNT ( ALL 68 ) * CASE - 46 WHEN + 44 THEN COUNT ( ALL - 37 ) + - 19 ELSE + - COUNT ( * ) END * + 68 AS col2
----
6203
-68

query I rowsort
SELECT + 29 AS col0
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4968
SELECT 50 DIV + - MAX( ALL 75 ) * + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4968
SELECT 50 / + - MAX ( ALL 75 ) * + COUNT ( * ) AS col1
----
0

query II rowsort
SELECT DISTINCT 8 * + + 40 AS col1, 83 AS col0
----
320
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4970
SELECT SUM( + - 4 ) - 75 AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-4970
SELECT SUM ( + - 4 ) - 75 AS col2
----
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-4971
SELECT 76 col1, COUNT( * ) + - 49 AS col2
----
76
-48

skipif mysql # not compatible
query II rowsort label-4971
SELECT 76 col1, COUNT ( * ) + - 49 AS col2
----
76
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4972
SELECT MAX( - 16 ) * ( - - NULLIF ( - + MAX( 66 ), - COUNT( * ) * - COUNT( * ) * 71 ) ) AS col0
----
1056

skipif mysql # not compatible
query I rowsort label-4972
SELECT MAX ( - 16 ) * ( - - NULLIF ( - + MAX ( 66 ), - COUNT ( * ) * - COUNT ( * ) * 71 ) ) AS col0
----
1056

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4973
SELECT COUNT( * ) * - - 73 + - 57 DIV 76 * 9
----
73

skipif mysql # not compatible
query I rowsort label-4973
SELECT COUNT ( * ) * - - 73 + - 57 / 76 * 9
----
73

query I rowsort
SELECT ( - - 29 ) * 40
----
1160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4975
SELECT DISTINCT MAX( + COALESCE ( + ( - 54 ), - CAST( - NULLIF ( - + CAST( NULL AS SIGNED ), - + 6 ) AS SIGNED ) ) )
----
-54

skipif mysql # not compatible
query I rowsort label-4975
SELECT DISTINCT MAX ( + COALESCE ( + ( - 54 ), - CAST ( - NULLIF ( - + CAST ( NULL AS INTEGER ), - + 6 ) AS INTEGER ) ) )
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-4976
SELECT ALL 7 + - + SUM( + 1 ) * - 33 AS col0
----
40

skipif mysql # not compatible
query I rowsort label-4976
SELECT ALL 7 + - + SUM ( + 1 ) * - 33 AS col0
----
40

query I rowsort
SELECT 97 * - - 60
----
5820

query I rowsort
SELECT 74 * - 97 AS col2
----
-7178

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4979
SELECT COALESCE ( - + 83, - - COUNT( * ) ) - - 40 / + 39 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4979
SELECT COALESCE ( - + 83, - - COUNT ( * ) ) - - 40 / + 39 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 56 col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4981
SELECT DISTINCT MAX( DISTINCT - 52 ) + 86 col0
----
34

skipif mysql # not compatible
query I rowsort label-4981
SELECT DISTINCT MAX ( DISTINCT - 52 ) + 86 col0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4982
SELECT 93 + COUNT( * )
----
94

skipif mysql # not compatible
query I rowsort label-4982
SELECT 93 + COUNT ( * )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4983
SELECT ALL NULLIF ( + MAX( DISTINCT + 82 ), + + COUNT( * ) * 59 ) + - + 69 * 58 AS col2
----
-3920

skipif mysql # not compatible
query I rowsort label-4983
SELECT ALL NULLIF ( + MAX ( DISTINCT + 82 ), + + COUNT ( * ) * 59 ) + - + 69 * 58 AS col2
----
-3920

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4984
SELECT NULLIF ( 78, - CAST( NULL AS DECIMAL ) * + 49 * 82 * + 39 ) + - - 58 col0
----
136

skipif mysql # not compatible
query I rowsort label-4984
SELECT NULLIF ( 78, - CAST ( NULL AS REAL ) * + 49 * 82 * + 39 ) + - - 58 col0
----
136

query II rowsort
SELECT 8 AS col1, + 31 * - - 39
----
8
1209

query I rowsort
SELECT DISTINCT + 35 AS col1
----
35

query I rowsort
SELECT ALL + 47 + + + 66
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-4988
SELECT DISTINCT COUNT( * ) * + 87 AS col0
----
87

skipif mysql # not compatible
query I rowsort label-4988
SELECT DISTINCT COUNT ( * ) * + 87 AS col0
----
87

query I rowsort
SELECT ALL 18 AS col0
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4990
SELECT ALL - 67 + + 56 + + - 18 * 91 - ( + 52 ) AS col1, - CAST( + 53 AS SIGNED ) AS col2
----
-1701
-53

skipif mysql # not compatible
query II rowsort label-4990
SELECT ALL - 67 + + 56 + + - 18 * 91 - ( + 52 ) AS col1, - CAST ( + 53 AS INTEGER ) AS col2
----
-1701
-53

query I rowsort
SELECT - 58 + 31
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-4992
SELECT + + SUM( - ( + - 88 ) ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-4992
SELECT + + SUM ( - ( + - 88 ) ) AS col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4993
SELECT ALL - + SUM( + 50 )
----
-50

skipif mysql # not compatible
query I rowsort label-4993
SELECT ALL - + SUM ( + 50 )
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-4994
SELECT - - COUNT( * ) * 85 + + 59 + 82 + - SUM( 23 ) AS col2, 90 + - 39 + - + 69 * + 39 + + 17 + + 48 * 56
----
203
65

skipif mysql # not compatible
query II rowsort label-4994
SELECT - - COUNT ( * ) * 85 + + 59 + 82 + - SUM ( 23 ) AS col2, 90 + - 39 + - + 69 * + 39 + + 17 + + 48 * 56
----
203
65

query II rowsort
SELECT + 19 AS col2, - 34 * + ( + 73 ) AS col1
----
19
-2482

onlyif mysql # aggregate syntax: 
query I rowsort label-4996
SELECT - NULLIF ( + 55, COUNT( * ) * + 75 )
----
-55

skipif mysql # not compatible
query I rowsort label-4996
SELECT - NULLIF ( + 55, COUNT ( * ) * + 75 )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-4997
SELECT ALL + - SUM( + 77 ) * 44
----
-3388

skipif mysql # not compatible
query I rowsort label-4997
SELECT ALL + - SUM ( + 77 ) * 44
----
-3388

query I rowsort
SELECT 57 + - 98 AS col0
----
-41

query I rowsort
SELECT ALL 30 * + 19
----
570

query II rowsort
SELECT DISTINCT - + 35 AS col1, 49 col0
----
-35
49

query II rowsort
SELECT ALL - 91, 19 AS col2
----
-91
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5002
SELECT - MIN( - - 39 ) + - 63 AS col0
----
-102

skipif mysql # not compatible
query I rowsort label-5002
SELECT - MIN ( - - 39 ) + - 63 AS col0
----
-102

query II rowsort
SELECT ALL + - 57 AS col0, 43 AS col2
----
-57
43

query I rowsort
SELECT + 27 * + - 17
----
-459

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5005
SELECT - ( + CAST( NULL AS SIGNED ) ) * + 26 + 15 * - - 91 - 82 col1, + 68
----
NULL
68

skipif mysql # not compatible
query II rowsort label-5005
SELECT - ( + CAST ( NULL AS INTEGER ) ) * + 26 + 15 * - - 91 - 82 col1, + 68
----
NULL
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5006
SELECT - 71 * 41 - 15 + + 99 + - 18 + ( + + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5006
SELECT - 71 * 41 - 15 + + 99 + - 18 + ( + + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query II rowsort
SELECT - ( - 54 ) + + 23, 98 AS col1
----
77
98

query I rowsort
SELECT DISTINCT 54 + - NULLIF ( - - 72, - 0 )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-5009
SELECT ALL CASE 72 WHEN - + AVG ( - 20 ) THEN - + 86 - COUNT( * ) WHEN - NULLIF ( ( + 97 ), - 31 ) THEN MAX( - - 37 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5009
SELECT ALL CASE 72 WHEN - + AVG ( - 20 ) THEN - + 86 - COUNT ( * ) WHEN - NULLIF ( ( + 97 ), - 31 ) THEN MAX ( - - 37 ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5010
SELECT ALL MIN( + - 95 ) + CAST( + + 84 AS SIGNED )
----
-11

skipif mysql # not compatible
query I rowsort label-5010
SELECT ALL MIN ( + - 95 ) + CAST ( + + 84 AS INTEGER )
----
-11

query I rowsort
SELECT - 95 + 86
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5012
SELECT ALL + 71 * 36 * COUNT( * )
----
2556

skipif mysql # not compatible
query I rowsort label-5012
SELECT ALL + 71 * 36 * COUNT ( * )
----
2556

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5013
SELECT ALL NULLIF ( - CAST( NULL AS SIGNED ), - AVG ( ALL - 37 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5013
SELECT ALL NULLIF ( - CAST ( NULL AS INTEGER ), - AVG ( ALL - 37 ) ) AS col0
----
NULL

query I rowsort
SELECT - 3 col0
----
-3

query I rowsort
SELECT - 6 col1
----
-6

query I rowsort
SELECT 28 AS col0
----
28

onlyif mysql # DIV for integer division: 
query II rowsort label-5017
SELECT + 47 + 88 * 4 + 5 * + 90 * - 18 DIV - 9 col1, 8
----
1299
8

skipif mysql # not compatible
query II rowsort label-5017
SELECT + 47 + 88 * 4 + 5 * + 90 * - 18 / - 9 col1, 8
----
1299
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5018
SELECT ALL + COUNT( * ) + - 7 * + - CASE + - 81 WHEN + + 59 + + + 47 THEN + MAX( 17 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5018
SELECT ALL + COUNT ( * ) + - 7 * + - CASE + - 81 WHEN + + 59 + + + 47 THEN + MAX ( 17 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5019
SELECT - ( - 76 ) * + COUNT( * ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-5019
SELECT - ( - 76 ) * + COUNT ( * ) AS col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5020
SELECT - CASE COUNT( * ) WHEN + 68 * + + 56 THEN NULL WHEN - ( + 91 ) * - SUM( - 38 ) + + - ( + 59 ) THEN - + 47 / - 2 WHEN + 27 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5020
SELECT - CASE COUNT ( * ) WHEN + 68 * + + 56 THEN NULL WHEN - ( + 91 ) * - SUM ( - 38 ) + + - ( + 59 ) THEN - + 47 / - 2 WHEN + 27 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 99 + + 28
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-5022
SELECT ALL + 44 + - 8 DIV - 38 AS col2
----
44

skipif mysql # not compatible
query I rowsort label-5022
SELECT ALL + 44 + - 8 / - 38 AS col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5023
SELECT DISTINCT ( - COUNT( * ) ) + + 49 + - 89 + - + 1 * - 76 AS col0
----
35

skipif mysql # not compatible
query I rowsort label-5023
SELECT DISTINCT ( - COUNT ( * ) ) + + 49 + - 89 + - + 1 * - 76 AS col0
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5024
SELECT DISTINCT + COUNT( * ) + ( CAST( NULL AS SIGNED ) ), 77 AS col1
----
NULL
77

skipif mysql # not compatible
query II rowsort label-5024
SELECT DISTINCT + COUNT ( * ) + ( CAST ( NULL AS INTEGER ) ), 77 AS col1
----
NULL
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5025
SELECT ALL MAX( DISTINCT 58 ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-5025
SELECT ALL MAX ( DISTINCT 58 ) AS col2
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5026
SELECT ALL CAST( + 38 AS SIGNED ) - - - CASE - COALESCE ( - 39, + 60, - 74 ) WHEN + 31 THEN + 42 * - - 85 + - + 25 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5026
SELECT ALL CAST ( + 38 AS INTEGER ) - - - CASE - COALESCE ( - 39, + 60, - 74 ) WHEN + 31 THEN + 42 * - - 85 + - + 25 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5027
SELECT ALL 12 DIV - 30 * - COUNT( * ) col0
----
0

skipif mysql # not compatible
query I rowsort label-5027
SELECT ALL 12 / - 30 * - COUNT ( * ) col0
----
0

query I rowsort
SELECT - - 79 * + 80
----
6320

query II rowsort
SELECT + - 74 + - - 21, 77 AS col2
----
-53
77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5030
SELECT - - CASE + CAST( - 35 AS DECIMAL ) WHEN + 87 THEN - + 75 WHEN - 12 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5030
SELECT - - CASE + CAST ( - 35 AS REAL ) WHEN + 87 THEN - + 75 WHEN - 12 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT + + 55 - - - 73
----
-18

query I rowsort
SELECT ALL 1 * - 67
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5033
SELECT ALL CAST( NULL AS SIGNED ) * + + 78 AS col1, + 51
----
NULL
51

skipif mysql # not compatible
query II rowsort label-5033
SELECT ALL CAST ( NULL AS INTEGER ) * + + 78 AS col1, + 51
----
NULL
51

query I rowsort
SELECT DISTINCT + + 23
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-5035
SELECT ALL + MIN( - + 86 ) AS col1, 33 * + + 13 - - + 64 AS col1
----
-86
493

skipif mysql # not compatible
query II rowsort label-5035
SELECT ALL + MIN ( - + 86 ) AS col1, 33 * + + 13 - - + 64 AS col1
----
-86
493

query I rowsort
SELECT DISTINCT + - ( ( + 78 ) )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-5037
SELECT + - 28 * COUNT( * ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-5037
SELECT + - 28 * COUNT ( * ) AS col1
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5038
SELECT ALL + 17 DIV 52, - COALESCE ( - - 76, + + COUNT( * ), + - 57 + - 48 * - - 17 + + SUM( ALL - 55 ) ) AS col0
----
0
-76

skipif mysql # not compatible
query II rowsort label-5038
SELECT ALL + 17 / 52, - COALESCE ( - - 76, + + COUNT ( * ), + - 57 + - 48 * - - 17 + + SUM ( ALL - 55 ) ) AS col0
----
0
-76

query I rowsort
SELECT + - 82
----
-82

query I rowsort
SELECT + ( 31 ) AS col1
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5041
SELECT 38 * CAST( - - 93 AS SIGNED ) + 62 AS col1, + 39 * + COUNT( * ) * - COUNT( * ) * - COALESCE ( - 61, - 7 + + 95 * + 5 * - + 98 ) * COUNT( * ) * + ( - + 29 ) + 99 * - 6
----
3596
68397

skipif mysql # not compatible
query II rowsort label-5041
SELECT 38 * CAST ( - - 93 AS INTEGER ) + 62 AS col1, + 39 * + COUNT ( * ) * - COUNT ( * ) * - COALESCE ( - 61, - 7 + + 95 * + 5 * - + 98 ) * COUNT ( * ) * + ( - + 29 ) + 99 * - 6
----
3596
68397

query I rowsort
SELECT DISTINCT + 40 AS col1
----
40

query I rowsort
SELECT + ( + 72 ) * 39 AS col2
----
2808

query I rowsort
SELECT DISTINCT + 17 AS col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-5045
SELECT - COUNT( * ) * + 13
----
-13

skipif mysql # not compatible
query I rowsort label-5045
SELECT - COUNT ( * ) * + 13
----
-13

query II rowsort
SELECT + 90 col0, - 0 AS col1
----
90
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5047
SELECT ALL - 84 * + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5047
SELECT ALL - 84 * + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5048
SELECT + MIN( ALL + 36 ) + - ( + + SUM( ALL - CAST( NULL AS SIGNED ) ) ) * + + 69 - NULLIF ( - 48, - - 8 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5048
SELECT + MIN ( ALL + 36 ) + - ( + + SUM ( ALL - CAST ( NULL AS INTEGER ) ) ) * + + 69 - NULLIF ( - 48, - - 8 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5049
SELECT - 59 - - COUNT( * ) DIV - NULLIF ( 58, 91 )
----
-59

skipif mysql # not compatible
query I rowsort label-5049
SELECT - 59 - - COUNT ( * ) / - NULLIF ( 58, 91 )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-5050
SELECT - MAX( + - 27 )
----
27

skipif mysql # not compatible
query I rowsort label-5050
SELECT - MAX ( + - 27 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5051
SELECT - 5 * - ( - ( + + COUNT( * ) ) ) + - 67 AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-5051
SELECT - 5 * - ( - ( + + COUNT ( * ) ) ) + - 67 AS col0
----
-72

query I rowsort
SELECT - 41 * - + 23 AS col1
----
943

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5053
SELECT ALL CAST( 98 AS SIGNED ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-5053
SELECT ALL CAST ( 98 AS INTEGER ) AS col1
----
98

query I rowsort
SELECT - 5 * + - 53
----
265

query I rowsort
SELECT ALL ( 78 ) AS col0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5056
SELECT - 81 - + MIN( - 27 )
----
-54

skipif mysql # not compatible
query I rowsort label-5056
SELECT - 81 - + MIN ( - 27 )
----
-54

query I rowsort
SELECT - - ( - + 39 )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-5058
SELECT - + ( - + 44 ) + + 80 + - COUNT( * )
----
123

skipif mysql # not compatible
query I rowsort label-5058
SELECT - + ( - + 44 ) + + 80 + - COUNT ( * )
----
123

query I rowsort
SELECT - - 45 + 63
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-5060
SELECT - - 34 * + + COUNT( * )
----
34

skipif mysql # not compatible
query I rowsort label-5060
SELECT - - 34 * + + COUNT ( * )
----
34

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5062
SELECT - + ( + 77 ) + + - COUNT( * )
----
-78

skipif mysql # not compatible
query I rowsort label-5062
SELECT - + ( + 77 ) + + - COUNT ( * )
----
-78

query II rowsort
SELECT + 92, 69 * - 48 - 11 col1
----
92
-3323

onlyif mysql # DIV for integer division: 
query I rowsort label-5064
SELECT - 6 + 43 DIV 10 + + 35 + + - 12 + - 37 AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-5064
SELECT - 6 + 43 / 10 + + 35 + + - 12 + - 37 AS col1
----
-16

query I rowsort
SELECT DISTINCT + 23 AS col2
----
23

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5066
SELECT DISTINCT 37 col1, 14 + + NULLIF ( + 31, + + 25 / + + COALESCE ( + - CAST( NULL AS DECIMAL ), 24 ) ) - 64 - - NULLIF ( - 62, - - COUNT( * ) ) * - - NULLIF ( - 20, + 72 * - 51 / 89 )
----
37
1221

skipif mysql # not compatible
query II rowsort label-5066
SELECT DISTINCT 37 col1, 14 + + NULLIF ( + 31, + + 25 / + + COALESCE ( + - CAST ( NULL AS REAL ), 24 ) ) - 64 - - NULLIF ( - 62, - - COUNT ( * ) ) * - - NULLIF ( - 20, + 72 * - 51 / 89 )
----
37
1221

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5067
SELECT COUNT( * ) DIV 44 DIV - MIN( - - 80 )
----
0

skipif mysql # not compatible
query I rowsort label-5067
SELECT COUNT ( * ) / 44 / - MIN ( - - 80 )
----
0

query I rowsort
SELECT ALL + CASE 35 WHEN 84 THEN COALESCE ( AVG ( ALL - ( + 66 ) ), + AVG ( ALL - 87 ) ) ELSE + + 88 END
----
88

query I rowsort
SELECT + 56 + + 2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5070
SELECT + 95 * - COUNT( * ) * - 37 - - ( + 27 ) col1
----
3542

skipif mysql # not compatible
query I rowsort label-5070
SELECT + 95 * - COUNT ( * ) * - 37 - - ( + 27 ) col1
----
3542

query I rowsort
SELECT + - COALESCE ( + - 40, - 33, - 38 * + 95 )
----
40

query I rowsort
SELECT 51 + + - 9
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5073
SELECT + COALESCE ( - - NULLIF ( - 28, - 61 * 86 + - - COUNT( * ) ), ( - + 37 ) * 53, + 89 )
----
-28

skipif mysql # not compatible
query I rowsort label-5073
SELECT + COALESCE ( - - NULLIF ( - 28, - 61 * 86 + - - COUNT ( * ) ), ( - + 37 ) * 53, + 89 )
----
-28

query I rowsort
SELECT 10 * + + 47 AS col2
----
470

query I rowsort
SELECT 91 * + 28 + + 96
----
2644

query I rowsort
SELECT ALL 90 + - 86 AS col1
----
4

query I rowsort
SELECT DISTINCT 25 * + + 53 * - - 29
----
38425

onlyif mysql # aggregate syntax: 
query I rowsort label-5078
SELECT DISTINCT 19 + - 93 + CASE + COUNT( * ) WHEN - 85 THEN CASE + 29 WHEN + 39 THEN NULL WHEN + COUNT( * ) THEN - 87 END * - ( - 97 ) WHEN - 75 THEN + 42 WHEN - COUNT( * ) * - + 41 + - 38 * + 80 THEN + 18 ELSE NULL END * + 90 + - 30 * 80 / + 97 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5078
SELECT DISTINCT 19 + - 93 + CASE + COUNT ( * ) WHEN - 85 THEN CASE + 29 WHEN + 39 THEN NULL WHEN + COUNT ( * ) THEN - 87 END * - ( - 97 ) WHEN - 75 THEN + 42 WHEN - COUNT ( * ) * - + 41 + - 38 * + 80 THEN + 18 ELSE NULL END * + 90 + - 30 * 80 / + 97 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5079
SELECT 16 * CAST( NULL AS SIGNED ) + - + 42 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5079
SELECT 16 * CAST ( NULL AS INTEGER ) + - + 42 col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5080
SELECT 3 DIV + 69
----
0

skipif mysql # not compatible
query I rowsort label-5080
SELECT 3 / + 69
----
0

query II rowsort
SELECT ALL 41 + 13, - 4 AS col0
----
54
-4

query I rowsort
SELECT DISTINCT - 54
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-5083
SELECT ALL - 81 - 20 * + + 92 + + - 90 + - - 32 * 41 * + COUNT( * )
----
-699

skipif mysql # not compatible
query I rowsort label-5083
SELECT ALL - 81 - 20 * + + 92 + + - 90 + - - 32 * 41 * + COUNT ( * )
----
-699

onlyif mysql # aggregate syntax: 
query I rowsort label-5084
SELECT 44 * + - 7 + - COUNT( * )
----
-309

skipif mysql # not compatible
query I rowsort label-5084
SELECT 44 * + - 7 + - COUNT ( * )
----
-309

query II rowsort
SELECT ALL 11 * 74 * ( - 65 ) AS col0, 71 AS col2
----
-52910
71

query II rowsort
SELECT DISTINCT 29 * - - 64, 1 * - 6 * 11 + - 39 * - 68 AS col0
----
1856
2586

query I rowsort
SELECT DISTINCT + 36 * - 49 AS col1
----
-1764

query I rowsort
SELECT ALL - CASE + 7 WHEN - 64 + + 29 THEN - - 2 + - 92 + - 26 + + - 53 ELSE - - 53 END - 89
----
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-5089
SELECT 84 * + COUNT( ALL + ( - 1 ) ) col0
----
84

skipif mysql # not compatible
query I rowsort label-5089
SELECT 84 * + COUNT ( ALL + ( - 1 ) ) col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5090
SELECT ALL MAX( ALL 68 ) col2
----
68

skipif mysql # not compatible
query I rowsort label-5090
SELECT ALL MAX ( ALL 68 ) col2
----
68

query I rowsort
SELECT DISTINCT + 91 col0
----
91

query I rowsort
SELECT DISTINCT 65 AS col0
----
65

query I rowsort
SELECT 86 + - 38 + + 30
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5094
SELECT DISTINCT - 50 + - MIN( + + 88 ) AS col2
----
-138

skipif mysql # not compatible
query I rowsort label-5094
SELECT DISTINCT - 50 + - MIN ( + + 88 ) AS col2
----
-138

query I rowsort
SELECT - + 89 col0
----
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-5096
SELECT ALL - 1 + + 38 * + + ( 65 ) + + + 48 + - 23 * + + 55 AS col2, + MIN( 4 )
----
1252
4

skipif mysql # not compatible
query II rowsort label-5096
SELECT ALL - 1 + + 38 * + + ( 65 ) + + + 48 + - 23 * + + 55 AS col2, + MIN ( 4 )
----
1252
4

query I rowsort
SELECT 66 * - 39 + 67
----
-2507

query I rowsort
SELECT DISTINCT - 90 + - 22
----
-112

onlyif mysql # DIV for integer division: 
query I rowsort label-5099
SELECT DISTINCT 31 DIV 32 DIV + - 23 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5099
SELECT DISTINCT 31 / 32 / + - 23 AS col2
----
0

query I rowsort
SELECT + 34 col0
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-5101
SELECT 13 DIV - 43 * - + 8 col2
----
0

skipif mysql # not compatible
query I rowsort label-5101
SELECT 13 / - 43 * - + 8 col2
----
0

query I rowsort
SELECT DISTINCT 95 * - 50 AS col1
----
-4750

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5103
SELECT SUM( - 87 ) * + - MAX( DISTINCT - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5103
SELECT SUM ( - 87 ) * + - MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT ( + 98 ) * - 71 + + + ( + COALESCE ( - 13, - - 14 ) )
----
-6971

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5105
SELECT ALL - 12 - 96 + + COUNT( * ) DIV + - 93 AS col1
----
-108

skipif mysql # not compatible
query I rowsort label-5105
SELECT ALL - 12 - 96 + + COUNT ( * ) / + - 93 AS col1
----
-108

query I rowsort
SELECT ALL 24 - + + 72
----
-48

query I rowsort
SELECT ALL - 58 col2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5108
SELECT COUNT( * ) - - 34
----
35

skipif mysql # not compatible
query I rowsort label-5108
SELECT COUNT ( * ) - - 34
----
35

query I rowsort
SELECT ALL 70 * - 1 AS col0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-5110
SELECT 9 * + + SUM( ALL - 70 ) AS col0
----
-630

skipif mysql # not compatible
query I rowsort label-5110
SELECT 9 * + + SUM ( ALL - 70 ) AS col0
----
-630

onlyif mysql # aggregate syntax: 
query I rowsort label-5111
SELECT COUNT( * ) + CASE 97 WHEN - 57 THEN NULL WHEN - - 95 + + ( + 57 ) THEN - 24 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5111
SELECT COUNT ( * ) + CASE 97 WHEN - 57 THEN NULL WHEN - - 95 + + ( + 57 ) THEN - 24 END
----
NULL

query I rowsort
SELECT DISTINCT - 89 AS col1
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5113
SELECT 50 * + - MIN( + COALESCE ( - 96, + - 44 DIV - - 75, - 49, 61 + COALESCE ( - + 64, ( - 60 ), - 42 ) + + 31 + - + CAST( - ( + 56 ) AS SIGNED ) * - 58 ) ) + + ( - + 79 ), COUNT( * ) col2
----
4721
1

skipif mysql # not compatible
query II rowsort label-5113
SELECT 50 * + - MIN ( + COALESCE ( - 96, + - 44 / - - 75, - 49, 61 + COALESCE ( - + 64, ( - 60 ), - 42 ) + + 31 + - + CAST ( - ( + 56 ) AS INTEGER ) * - 58 ) ) + + ( - + 79 ), COUNT ( * ) col2
----
4721
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5114
SELECT 63 DIV - 32
----
-1

skipif mysql # not compatible
query I rowsort label-5114
SELECT 63 / - 32
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5115
SELECT ALL COUNT( - + 79 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5115
SELECT ALL COUNT ( - + 79 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5116
SELECT ( + COUNT( * ) ) + 65
----
66

skipif mysql # not compatible
query I rowsort label-5116
SELECT ( + COUNT ( * ) ) + 65
----
66

query I rowsort
SELECT ALL - 56 * - 34
----
1904

onlyif mysql # DIV for integer division: 
query I rowsort label-5118
SELECT 32 DIV + ( + 65 )
----
0

skipif mysql # not compatible
query I rowsort label-5118
SELECT 32 / + ( + 65 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5119
SELECT ALL MIN( ALL - 21 ) DIV 88 col0
----
0

skipif mysql # not compatible
query I rowsort label-5119
SELECT ALL MIN ( ALL - 21 ) / 88 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5120
SELECT ALL + ( - COUNT( * ) ) + + + 84 AS col0
----
83

skipif mysql # not compatible
query I rowsort label-5120
SELECT ALL + ( - COUNT ( * ) ) + + + 84 AS col0
----
83

query I rowsort
SELECT DISTINCT 82 AS col1
----
82

query II rowsort
SELECT ALL 99 AS col2, 67 AS col2
----
99
67

query II rowsort
SELECT + 55 + - ( - - 88 ) AS col0, 96 AS col2
----
-33
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5124
SELECT - 24 + - 38 - + 67 + - 49 * - COUNT( * ) DIV + + COUNT( * ) + COUNT( * ) - + 51 AS col0, COUNT( ALL + - 44 ) * CASE - 22 WHEN + 85 * + - 85 THEN COUNT( * ) WHEN + 63 * - 96 + - 3 THEN COUNT( * ) + + COUNT( * ) END DIV 7 * + 19 AS col2
----
-130
NULL

skipif mysql # not compatible
query II rowsort label-5124
SELECT - 24 + - 38 - + 67 + - 49 * - COUNT ( * ) / + + COUNT ( * ) + COUNT ( * ) - + 51 AS col0, COUNT ( ALL + - 44 ) * CASE - 22 WHEN + 85 * + - 85 THEN COUNT ( * ) WHEN + 63 * - 96 + - 3 THEN COUNT ( * ) + + COUNT ( * ) END / 7 * + 19 AS col2
----
-130
NULL

query I rowsort
SELECT ALL 94 * - + 53 AS col2
----
-4982

query I rowsort
SELECT - NULLIF ( - 30, + + AVG ( - 38 ) ) + - 54 col1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-5127
SELECT ALL 8 + - COUNT( * ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-5127
SELECT ALL 8 + - COUNT ( * ) AS col1
----
7

query II rowsort
SELECT + 99 AS col0, - 27 AS col0
----
99
-27

query I rowsort
SELECT - - 1
----
1

query I rowsort
SELECT ALL - 5 + + 36 AS col2
----
31

query I rowsort
SELECT + + 41 + - - 28 AS col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5132
SELECT - MIN( ALL + - 78 ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-5132
SELECT - MIN ( ALL + - 78 ) AS col2
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5133
SELECT DISTINCT CAST( - SUM( + 84 ) AS SIGNED ) + + 28 * - SUM( 48 ) / - + 1 / + 2 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5133
SELECT DISTINCT CAST ( - SUM ( + 84 ) AS INTEGER ) + + 28 * - SUM ( 48 ) / - + 1 / + 2 * CAST ( NULL AS INTEGER )
----
NULL

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

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

query I rowsort
SELECT - + 91 + - - 24 - + + 28 AS col1
----
-95

query I rowsort
SELECT ALL + ( + + 19 )
----
19

query I rowsort
SELECT ALL 95 col0
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5138
SELECT ALL - + CAST( NULL AS SIGNED ) * - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-5138
SELECT ALL - + CAST ( NULL AS INTEGER ) * - 30
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5139
SELECT - 50 * - COUNT( * ) col1
----
50

skipif mysql # not compatible
query I rowsort label-5139
SELECT - 50 * - COUNT ( * ) col1
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5140
SELECT ALL MIN( DISTINCT - CASE WHEN NOT + CAST( - + 92 AS SIGNED ) IS NULL THEN - 16 END )
----
16

skipif mysql # not compatible
query I rowsort label-5140
SELECT ALL MIN ( DISTINCT - CASE WHEN NOT + CAST ( - + 92 AS INTEGER ) IS NULL THEN - 16 END )
----
16

query I rowsort
SELECT 98 col1
----
98

onlyif mysql # aggregate syntax: 
query II rowsort label-5142
SELECT ALL - 46 * + 75 * + 99 * + 83 + + COUNT( * ) * 33 AS col2, 88 * - + 95 col0
----
-28348617
-8360

skipif mysql # not compatible
query II rowsort label-5142
SELECT ALL - 46 * + 75 * + 99 * + 83 + + COUNT ( * ) * 33 AS col2, 88 * - + 95 col0
----
-28348617
-8360

onlyif mysql # aggregate syntax: 
query I rowsort label-5143
SELECT ALL - COUNT( * ) * + 48 AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-5143
SELECT ALL - COUNT ( * ) * + 48 AS col0
----
-48

query I rowsort
SELECT ( - - 5 )
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5145
SELECT ALL + CAST( + 42 AS SIGNED ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-5145
SELECT ALL + CAST ( + 42 AS INTEGER ) AS col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5146
SELECT - 87 * - 6 + 53 + + COUNT( * ) * + 53 AS col0
----
628

skipif mysql # not compatible
query I rowsort label-5146
SELECT - 87 * - 6 + 53 + + COUNT ( * ) * + 53 AS col0
----
628

query I rowsort
SELECT ALL - 13 * + 36 - 68 * - 57 * - 38
----
-147756

query II rowsort
SELECT ALL + 87 AS col0, 78 col2
----
87
78

onlyif mysql # DIV for integer division: 
query II rowsort label-5149
SELECT COALESCE ( 11, 27, + + 49 + + COALESCE ( - ( - - 20 ), + 30 ) * + 86 * - 67 DIV 47 ) AS col0, 89 * - 79 * + - 96 * + 46 + - 46 + - - 35
----
11
31048885

skipif mysql # not compatible
query II rowsort label-5149
SELECT COALESCE ( 11, 27, + + 49 + + COALESCE ( - ( - - 20 ), + 30 ) * + 86 * - 67 / 47 ) AS col0, 89 * - 79 * + - 96 * + 46 + - 46 + - - 35
----
11
31048885

query I rowsort
SELECT ALL + 58 AS col1
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5151
SELECT - 65 * 20 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5151
SELECT - 65 * 20 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 82 + 46 - + + ( - - 36 )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-5153
SELECT 54 * + 95 + - - 66 + - + MAX( 22 ) AS col2
----
5174

skipif mysql # not compatible
query I rowsort label-5153
SELECT 54 * + 95 + - - 66 + - + MAX ( 22 ) AS col2
----
5174

onlyif mysql # DIV for integer division: 
query I rowsort label-5154
SELECT - 29 DIV + 55 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5154
SELECT - 29 / + 55 AS col0
----
0

query I rowsort
SELECT COALESCE ( - - 88, + 79 + - 45 )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5156
SELECT + 11 * + COUNT( * ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-5156
SELECT + 11 * + COUNT ( * ) AS col2
----
11

onlyif mysql # DIV for integer division: 
query II rowsort label-5157
SELECT DISTINCT + 5 AS col0, 47 DIV ( + 24 ) AS col1
----
5
1

skipif mysql # not compatible
query II rowsort label-5157
SELECT DISTINCT + 5 AS col0, 47 / ( + 24 ) AS col1
----
5
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5158
SELECT DISTINCT + ( - COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5158
SELECT DISTINCT + ( - COUNT ( * ) ) AS col0
----
-1

query I rowsort
SELECT DISTINCT + 98
----
98

onlyif mysql # aggregate syntax: 
query II rowsort label-5160
SELECT DISTINCT + 75 AS col0, + COUNT( * ) * + + 55 - - + 81
----
75
136

skipif mysql # not compatible
query II rowsort label-5160
SELECT DISTINCT + 75 AS col0, + COUNT ( * ) * + + 55 - - + 81
----
75
136

query II rowsort
SELECT DISTINCT 55, ( - 0 ) AS col1
----
55
0

query II rowsort
SELECT - + 49, - 79 AS col2
----
-49
-79

query I rowsort
SELECT DISTINCT 61 col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5164
SELECT ALL + 75 + 47 + + NULLIF ( + ( 91 ), + NULLIF ( - SUM( DISTINCT - 22 ), - - 23 + + COUNT( + - 16 ) ) )
----
213

skipif mysql # not compatible
query I rowsort label-5164
SELECT ALL + 75 + 47 + + NULLIF ( + ( 91 ), + NULLIF ( - SUM ( DISTINCT - 22 ), - - 23 + + COUNT ( + - 16 ) ) )
----
213

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5165
SELECT - COALESCE ( 62, - - 23 * - + 59 DIV + - 94 * + 84 + + 44 * + + 95 - + 31 * - 67 - - NULLIF ( CAST( NULL AS SIGNED ), ( CAST( 63 AS SIGNED ) ) * + - 87 * - 75 * + NULLIF ( - + COUNT( * ), + COUNT( * ) + 93 DIV - + 85 * + CAST( NULL AS SIGNED ) ) * + 40 * - 50 - + + MAX( - 27 ) ) ) AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-5165
SELECT - COALESCE ( 62, - - 23 * - + 59 / + - 94 * + 84 + + 44 * + + 95 - + 31 * - 67 - - NULLIF ( CAST ( NULL AS INTEGER ), ( CAST ( 63 AS INTEGER ) ) * + - 87 * - 75 * + NULLIF ( - + COUNT ( * ), + COUNT ( * ) + 93 / - + 85 * + CAST ( NULL AS INTEGER ) ) * + 40 * - 50 - + + MAX ( - 27 ) ) ) AS col0
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5166
SELECT ALL - 1 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5166
SELECT ALL - 1 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + + 95 * 3
----
285

onlyif mysql # aggregate syntax: 
query I rowsort label-5168
SELECT ALL + COUNT( - + 70 ) + + 24
----
25

skipif mysql # not compatible
query I rowsort label-5168
SELECT ALL + COUNT ( - + 70 ) + + 24
----
25

query I rowsort
SELECT ALL 42 + + 78 AS col1
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-5170
SELECT ALL MIN( + 97 ) + + - COUNT( * ) + 19 + + + 2 * - - ( + 96 ) * + COUNT( * ) * - + SUM( DISTINCT 17 )
----
-3149

skipif mysql # not compatible
query I rowsort label-5170
SELECT ALL MIN ( + 97 ) + + - COUNT ( * ) + 19 + + + 2 * - - ( + 96 ) * + COUNT ( * ) * - + SUM ( DISTINCT 17 )
----
-3149

onlyif mysql # aggregate syntax: 
query I rowsort label-5171
SELECT DISTINCT + ( + ( + COUNT( * ) ) ) + - ( - - 37 ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-5171
SELECT DISTINCT + ( + ( + COUNT ( * ) ) ) + - ( - - 37 ) AS col0
----
-36

query I rowsort
SELECT + NULLIF ( - 57, + - 28 ) AS col1
----
-57

query I rowsort
SELECT + 69 + - + 2
----
67

query I rowsort
SELECT ALL + 49 * 24 AS col1
----
1176

onlyif mysql # aggregate syntax: 
query I rowsort label-5175
SELECT - - SUM( + 86 )
----
86

skipif mysql # not compatible
query I rowsort label-5175
SELECT - - SUM ( + 86 )
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5176
SELECT - SUM( - 15 ) DIV COUNT( * ) * - 87
----
-1305

skipif mysql # not compatible
query I rowsort label-5176
SELECT - SUM ( - 15 ) / COUNT ( * ) * - 87
----
-1305

onlyif mysql # aggregate syntax: 
query I rowsort label-5177
SELECT + ( + + COUNT( * ) ) * + + 87
----
87

skipif mysql # not compatible
query I rowsort label-5177
SELECT + ( + + COUNT ( * ) ) * + + 87
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5178
SELECT ALL MIN( DISTINCT + - 51 ) AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-5178
SELECT ALL MIN ( DISTINCT + - 51 ) AS col2
----
-51

query I rowsort
SELECT DISTINCT 37
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5180
SELECT ALL + COUNT( ALL - 99 )
----
1

skipif mysql # not compatible
query I rowsort label-5180
SELECT ALL + COUNT ( ALL - 99 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5181
SELECT - 89 * - MAX( - - 6 )
----
534

skipif mysql # not compatible
query I rowsort label-5181
SELECT - 89 * - MAX ( - - 6 )
----
534

query I rowsort
SELECT DISTINCT + 64
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5183
SELECT CAST( - 67 AS SIGNED )
----
-67

skipif mysql # not compatible
query I rowsort label-5183
SELECT CAST ( - 67 AS INTEGER )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-5184
SELECT ALL + MIN( - 39 ) * + ( 70 ) - COALESCE ( - - 82, + 51 )
----
-2812

skipif mysql # not compatible
query I rowsort label-5184
SELECT ALL + MIN ( - 39 ) * + ( 70 ) - COALESCE ( - - 82, + 51 )
----
-2812

query I rowsort
SELECT + 53 * + 30 AS col0
----
1590

query II rowsort
SELECT - 59 * - 97 AS col1, + 45
----
5723
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5187
SELECT - COUNT( * ) * + + 56
----
-56

skipif mysql # not compatible
query I rowsort label-5187
SELECT - COUNT ( * ) * + + 56
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-5188
SELECT ALL + NULLIF ( - MAX( 60 ), + 19 )
----
-60

skipif mysql # not compatible
query I rowsort label-5188
SELECT ALL + NULLIF ( - MAX ( 60 ), + 19 )
----
-60

query I rowsort
SELECT ALL - ( NULLIF ( - + 6, + 13 + + 13 ) ) AS col2
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-5190
SELECT ALL + - 49 + + 63 DIV 6
----
-39

skipif mysql # not compatible
query I rowsort label-5190
SELECT ALL + - 49 + + 63 / 6
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5191
SELECT DISTINCT - - SUM( + - CAST( 45 AS SIGNED ) ) + + 25
----
-20

skipif mysql # not compatible
query I rowsort label-5191
SELECT DISTINCT - - SUM ( + - CAST ( 45 AS INTEGER ) ) + + 25
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-5192
SELECT ALL - - COUNT( * ) + 43 - - + 79
----
123

skipif mysql # not compatible
query I rowsort label-5192
SELECT ALL - - COUNT ( * ) + 43 - - + 79
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-5193
SELECT SUM( - - 35 ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-5193
SELECT SUM ( - - 35 ) AS col2
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5194
SELECT + 6 DIV + COUNT( * ) + - 0 * - ( - 29 ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-5194
SELECT + 6 / + COUNT ( * ) + - 0 * - ( - 29 ) AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5195
SELECT - 46 * - MIN( DISTINCT 23 ) AS col0
----
1058

skipif mysql # not compatible
query I rowsort label-5195
SELECT - 46 * - MIN ( DISTINCT 23 ) AS col0
----
1058

onlyif mysql # aggregate syntax: 
query I rowsort label-5196
SELECT - 73 + COUNT( * ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-5196
SELECT - 73 + COUNT ( * ) AS col0
----
-72

query I rowsort
SELECT DISTINCT 57 AS col0
----
57

query I rowsort
SELECT ALL + 23 col1
----
23

query I rowsort
SELECT - + ( - - 83 )
----
-83

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5200
SELECT - CASE - - 34 WHEN - - ( + 88 ) + - 40 + + ( - + 47 ) THEN NULL WHEN + - COUNT( * ) * - 54 / 74 + + 35 THEN - + COALESCE ( - CAST( NULL AS DECIMAL ), + 56 + + CAST( NULL AS DECIMAL ) * + 12 / MIN( - 57 ) * - - 72 + + - CASE + 12 WHEN 74 THEN + 95 WHEN + 18 THEN - 71 * + 1 END * - + 91 - + 89 ) / + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5200
SELECT - CASE - - 34 WHEN - - ( + 88 ) + - 40 + + ( - + 47 ) THEN NULL WHEN + - COUNT ( * ) * - 54 / 74 + + 35 THEN - + COALESCE ( - CAST ( NULL AS REAL ), + 56 + + CAST ( NULL AS REAL ) * + 12 / MIN ( - 57 ) * - - 72 + + - CASE + 12 WHEN 74 THEN + 95 WHEN + 18 THEN - 71 * + 1 END * - + 91 - + 89 ) / + COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5201
SELECT + COALESCE ( + NULLIF ( - 12, + 31 + - 70 ), + + COUNT( * ) + 60 ) + - 15 AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-5201
SELECT + COALESCE ( + NULLIF ( - 12, + 31 + - 70 ), + + COUNT ( * ) + 60 ) + - 15 AS col1
----
-27

query I rowsort
SELECT ALL - 0 col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5203
SELECT + 62 * + + COUNT( * ) * + + 94 AS col1, 3
----
5828
3

skipif mysql # not compatible
query II rowsort label-5203
SELECT + 62 * + + COUNT ( * ) * + + 94 AS col1, 3
----
5828
3

query I rowsort
SELECT + 36 + - 46
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-5205
SELECT ( + 45 ) * + 98 * - - 67 + - SUM( ALL 61 )
----
295409

skipif mysql # not compatible
query I rowsort label-5205
SELECT ( + 45 ) * + 98 * - - 67 + - SUM ( ALL 61 )
----
295409

onlyif mysql # DIV for integer division: 
query I rowsort label-5206
SELECT 6 + - + 35 + + NULLIF ( - 16, 4 ) DIV ( + - NULLIF ( + 43, - 82 ) )
----
-29

skipif mysql # not compatible
query I rowsort label-5206
SELECT 6 + - + 35 + + NULLIF ( - 16, 4 ) / ( + - NULLIF ( + 43, - 82 ) )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-5207
SELECT DISTINCT ( + 4 ) * + + COUNT( * ) + + + 15 * - + 77 * + COUNT( + 22 ) - - ( 82 ) + - - COUNT( + + 95 ) * 88 AS col0
----
-981

skipif mysql # not compatible
query I rowsort label-5207
SELECT DISTINCT ( + 4 ) * + + COUNT ( * ) + + + 15 * - + 77 * + COUNT ( + 22 ) - - ( 82 ) + - - COUNT ( + + 95 ) * 88 AS col0
----
-981

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5208
SELECT ALL CAST( NULL AS SIGNED ) * - 18
----
NULL

skipif mysql # not compatible
query I rowsort label-5208
SELECT ALL CAST ( NULL AS INTEGER ) * - 18
----
NULL

query I rowsort
SELECT DISTINCT ( 60 ) * - + ( - + 46 ) AS col2
----
2760

onlyif mysql # DIV for integer division: 
query I rowsort label-5210
SELECT 3 + + - 41 + - 79 DIV + - 79 col1
----
-37

skipif mysql # not compatible
query I rowsort label-5210
SELECT 3 + + - 41 + - 79 / + - 79 col1
----
-37

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5211
SELECT ALL CAST( NULL AS DECIMAL ) * + - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-5211
SELECT ALL CAST ( NULL AS REAL ) * + - 26
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5212
SELECT ( 23 ) DIV + 70 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5212
SELECT ( 23 ) / + 70 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5213
SELECT ALL - SUM( ALL - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5213
SELECT ALL - SUM ( ALL - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5214
SELECT 57 * - COUNT( * ) AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-5214
SELECT 57 * - COUNT ( * ) AS col0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-5215
SELECT COUNT( * ) + - 21 AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-5215
SELECT COUNT ( * ) + - 21 AS col2
----
-20

query I rowsort
SELECT DISTINCT - 99 AS col2
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5217
SELECT DISTINCT - 18 DIV - + COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-5217
SELECT DISTINCT - 18 / - + COUNT ( * )
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-5218
SELECT ALL - COUNT( * ) AS col1, - 64 * - 99 AS col0
----
-1
6336

skipif mysql # not compatible
query II rowsort label-5218
SELECT ALL - COUNT ( * ) AS col1, - 64 * - 99 AS col0
----
-1
6336

onlyif mysql # DIV for integer division: 
query I rowsort label-5219
SELECT - 47 DIV - 82 + + - 11
----
-11

skipif mysql # not compatible
query I rowsort label-5219
SELECT - 47 / - 82 + + - 11
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-5220
SELECT ALL COALESCE ( - - ( CASE 79 WHEN 47 * + 9 * 57 + 27 + + COUNT( * ) - - MIN( ALL 81 ) - 2 THEN NULL WHEN - + 9 THEN NULL WHEN + COUNT( * ) THEN - - 51 - - 20 + - COALESCE ( + 36, + 48 ) ELSE NULL END ), - 85 ) + + + 4
----
-81

skipif mysql # not compatible
query I rowsort label-5220
SELECT ALL COALESCE ( - - ( CASE 79 WHEN 47 * + 9 * 57 + 27 + + COUNT ( * ) - - MIN ( ALL 81 ) - 2 THEN NULL WHEN - + 9 THEN NULL WHEN + COUNT ( * ) THEN - - 51 - - 20 + - COALESCE ( + 36, + 48 ) ELSE NULL END ), - 85 ) + + + 4
----
-81

query I rowsort
SELECT DISTINCT 64 + + 33
----
97

query II rowsort
SELECT 98, 34 * + 23 col2
----
98
782

query II rowsort
SELECT + 72 AS col1, + 26
----
72
26

onlyif mysql # aggregate syntax: 
query II rowsort label-5224
SELECT + - COUNT( * ), - 27 * COALESCE ( - ( + ( - 97 ) ), + 17 + + + 11 ) AS col2
----
-1
-2619

skipif mysql # not compatible
query II rowsort label-5224
SELECT + - COUNT ( * ), - 27 * COALESCE ( - ( + ( - 97 ) ), + 17 + + + 11 ) AS col2
----
-1
-2619

query I rowsort
SELECT - 4 + 17 + - ( + - 47 )
----
60

query I rowsort
SELECT - 13 * NULLIF ( + + 23, - - 19 - - 56 )
----
-299

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5227
SELECT ALL + CAST( NULL AS DECIMAL ) * 83
----
NULL

skipif mysql # not compatible
query I rowsort label-5227
SELECT ALL + CAST ( NULL AS REAL ) * 83
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5228
SELECT ALL - + MIN( + 11 ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-5228
SELECT ALL - + MIN ( + 11 ) AS col1
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-5229
SELECT + + 2 AS col2, - 27 * - ( + + ( + SUM( + 60 ) ) )
----
2
1620

skipif mysql # not compatible
query II rowsort label-5229
SELECT + + 2 AS col2, - 27 * - ( + + ( + SUM ( + 60 ) ) )
----
2
1620

query I rowsort
SELECT ALL - 73 - - - 90
----
-163

query I rowsort
SELECT DISTINCT - 15 - + - 13 * + 11
----
128

query I rowsort
SELECT DISTINCT - - 19 col0
----
19

query I rowsort
SELECT 55 * - 71
----
-3905

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5234
SELECT DISTINCT - + CAST( NULL AS DECIMAL ) / - - CAST( 84 AS SIGNED ) * - COUNT( * ) * - 53 * + ( + - 39 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5234
SELECT DISTINCT - + CAST ( NULL AS REAL ) / - - CAST ( 84 AS INTEGER ) * - COUNT ( * ) * - 53 * + ( + - 39 )
----
NULL

query I rowsort
SELECT - 60 * + 86 AS col2
----
-5160

query I rowsort
SELECT ALL - + 54 * - 49 AS col1
----
2646

query I rowsort
SELECT 4 - + 54 * - ( + 69 ) AS col0
----
3730

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5238
SELECT - COUNT( * ) DIV - 87 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5238
SELECT - COUNT ( * ) / - 87 AS col2
----
0

query I rowsort
SELECT ALL - + 29 * 68 + - 20
----
-1992

query I rowsort
SELECT 35 * - 40
----
-1400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5241
SELECT DISTINCT - COUNT( * ) / ( CASE - 74 WHEN - - 85 + - - COUNT( DISTINCT - ( + NULLIF ( - - 88, + CAST( NULL AS SIGNED ) ) ) ) * - - 87 + - CAST( NULL AS SIGNED ) THEN NULL ELSE 51 * - 1 + - COALESCE ( CAST( NULL AS DECIMAL ), + + COUNT( ALL 42 ) ) * - - CAST( NULL AS SIGNED ) + + - 41 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5241
SELECT DISTINCT - COUNT ( * ) / ( CASE - 74 WHEN - - 85 + - - COUNT ( DISTINCT - ( + NULLIF ( - - 88, + CAST ( NULL AS INTEGER ) ) ) ) * - - 87 + - CAST ( NULL AS INTEGER ) THEN NULL ELSE 51 * - 1 + - COALESCE ( CAST ( NULL AS REAL ), + + COUNT ( ALL 42 ) ) * - - CAST ( NULL AS INTEGER ) + + - 41 END ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5242
SELECT ALL ( + COUNT( DISTINCT - CAST( - 19 AS SIGNED ) ) ) * 65 * + 96 col1
----
6240

skipif mysql # not compatible
query I rowsort label-5242
SELECT ALL ( + COUNT ( DISTINCT - CAST ( - 19 AS INTEGER ) ) ) * 65 * + 96 col1
----
6240

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5243
SELECT ALL MIN( - + 42 ) col2, - 95 DIV - 61 + + 78 AS col0
----
-42
79

skipif mysql # not compatible
query II rowsort label-5243
SELECT ALL MIN ( - + 42 ) col2, - 95 / - 61 + + 78 AS col0
----
-42
79

query II rowsort
SELECT DISTINCT + 12 * 11, 91 col2
----
132
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5245
SELECT ( + + ( - - 77 ) ) * - 0 + - CAST( + 88 AS SIGNED ) col2
----
-88

skipif mysql # not compatible
query I rowsort label-5245
SELECT ( + + ( - - 77 ) ) * - 0 + - CAST ( + 88 AS INTEGER ) col2
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-5246
SELECT COUNT( * ) * - 33 AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-5246
SELECT COUNT ( * ) * - 33 AS col0
----
-33

query I rowsort
SELECT 31 + - ( + 71 ) col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-5248
SELECT ALL SUM( + CASE + - 68 WHEN 68 / + - 61 * 57 THEN NULL ELSE - COALESCE ( - 85, + - 3 ) * 59 END )
----
5015

skipif mysql # not compatible
query I rowsort label-5248
SELECT ALL SUM ( + CASE + - 68 WHEN 68 / + - 61 * 57 THEN NULL ELSE - COALESCE ( - 85, + - 3 ) * 59 END )
----
5015

onlyif mysql # aggregate syntax: 
query I rowsort label-5249
SELECT ALL 18 + 92 + + - 10 + - - 80 * + 35 * - - 69 + - CASE + 49 WHEN + + ( - 31 ) THEN MAX( + 61 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5249
SELECT ALL 18 + 92 + + - 10 + - - 80 * + 35 * - - 69 + - CASE + 49 WHEN + + ( - 31 ) THEN MAX ( + 61 ) END AS col0
----
NULL

query I rowsort
SELECT ALL + 23 + - 28 * + 50
----
-1377

query I rowsort
SELECT ALL 94 * + 33 col1
----
3102

onlyif mysql # DIV for integer division: 
query II rowsort label-5252
SELECT + 0 DIV + + 82 AS col2, 14 AS col2
----
0
14

skipif mysql # not compatible
query II rowsort label-5252
SELECT + 0 / + + 82 AS col2, 14 AS col2
----
0
14

query I rowsort
SELECT ALL - 59 + 5 - - 71
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-5254
SELECT DISTINCT - 50 DIV 70
----
0

skipif mysql # not compatible
query I rowsort label-5254
SELECT DISTINCT - 50 / 70
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5255
SELECT + SUM( ALL + 9 )
----
9

skipif mysql # not compatible
query I rowsort label-5255
SELECT + SUM ( ALL + 9 )
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-5256
SELECT ALL 58 * ( MIN( DISTINCT - + 38 ) ), 60 - - 33 AS col1
----
-2204
93

skipif mysql # not compatible
query II rowsort label-5256
SELECT ALL 58 * ( MIN ( DISTINCT - + 38 ) ), 60 - - 33 AS col1
----
-2204
93

query I rowsort
SELECT NULLIF ( + 28, 7 + 28 )
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-5258
SELECT + 69 DIV - + 43 col0
----
-1

skipif mysql # not compatible
query I rowsort label-5258
SELECT + 69 / - + 43 col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5259
SELECT + MIN( - 76 )
----
-76

skipif mysql # not compatible
query I rowsort label-5259
SELECT + MIN ( - 76 )
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5260
SELECT ALL - 1 * + CAST( NULL AS SIGNED ) + + + 8 + - + 89 + - + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-5260
SELECT ALL - 1 * + CAST ( NULL AS INTEGER ) + + + 8 + - + 89 + - + 86
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5261
SELECT + 61 * + COUNT( ALL - + 84 ) DIV + 85 * - 31 + - - 14 - + + 36 - + COALESCE ( + - 45, + ( + ( - + 59 ) ) ) - + 12 * + - 49 + + 0 AS col1
----
611

skipif mysql # not compatible
query I rowsort label-5261
SELECT + 61 * + COUNT ( ALL - + 84 ) / + 85 * - 31 + - - 14 - + + 36 - + COALESCE ( + - 45, + ( + ( - + 59 ) ) ) - + 12 * + - 49 + + 0 AS col1
----
611

query I rowsort
SELECT + 19 * + + 94 * 93 AS col1
----
166098

query I rowsort
SELECT + 51 col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5264
SELECT + 74 * 65 + + - COUNT( DISTINCT + 27 ) - - CASE - 49 WHEN + 91 THEN + - COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5264
SELECT + 74 * 65 + + - COUNT ( DISTINCT + 27 ) - - CASE - 49 WHEN + 91 THEN + - COUNT ( * ) END AS col0
----
NULL

query I rowsort
SELECT - + 52 * + 38
----
-1976

onlyif mysql # aggregate syntax: 
query I rowsort label-5266
SELECT DISTINCT + + ( - - COUNT( * ) ) AS col2
----
1

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

query I rowsort
SELECT ALL + 81 col2
----
81

query I rowsort
SELECT - ( 89 )
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5269
SELECT ALL - ( - 18 ) * + 2 - 46 - - - 85 AS col1, - CAST( - COUNT( * ) AS SIGNED ) * + 88 AS col1
----
-95
88

skipif mysql # not compatible
query II rowsort label-5269
SELECT ALL - ( - 18 ) * + 2 - 46 - - - 85 AS col1, - CAST ( - COUNT ( * ) AS INTEGER ) * + 88 AS col1
----
-95
88

onlyif mysql # DIV for integer division: 
query I rowsort label-5270
SELECT ALL + 13 DIV 28 - + - 63
----
63

skipif mysql # not compatible
query I rowsort label-5270
SELECT ALL + 13 / 28 - + - 63
----
63

query I rowsort
SELECT ALL + + 25
----
25

query I rowsort
SELECT DISTINCT + - 34 col1
----
-34

query I rowsort
SELECT ALL + - 8
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-5274
SELECT + 86 * + 61 * + MAX( ALL + 76 ) + - 87 - 51
----
398558

skipif mysql # not compatible
query I rowsort label-5274
SELECT + 86 * + 61 * + MAX ( ALL + 76 ) + - 87 - 51
----
398558

query I rowsort
SELECT ALL + + 52 AS col2
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5276
SELECT + NULLIF ( 73, - 97 ) + - 19 + + - CAST( + 95 AS SIGNED ) - - - CASE + 23 WHEN - COUNT( 29 ) / + 7 + - 14 * 36 THEN MIN( ALL 89 ) ELSE NULL END * + - ( - + 20 ) + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5276
SELECT + NULLIF ( 73, - 97 ) + - 19 + + - CAST ( + 95 AS INTEGER ) - - - CASE + 23 WHEN - COUNT ( 29 ) / + 7 + - 14 * 36 THEN MIN ( ALL 89 ) ELSE NULL END * + - ( - + 20 ) + + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + + 93 AS col1
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5278
SELECT ALL ( - 2 ) * NULLIF ( - + 72, - 20 ) DIV + MAX( + - 87 ) + + - 59 * - + 68
----
4011

skipif mysql # not compatible
query I rowsort label-5278
SELECT ALL ( - 2 ) * NULLIF ( - + 72, - 20 ) / + MAX ( + - 87 ) + + - 59 * - + 68
----
4011

onlyif mysql # DIV for integer division: 
query II rowsort label-5279
SELECT + + 7 * 69 + - 67 DIV + 47, ( - 58 ) AS col0
----
482
-58

skipif mysql # not compatible
query II rowsort label-5279
SELECT + + 7 * 69 + - 67 / + 47, ( - 58 ) AS col0
----
482
-58

query I rowsort
SELECT ALL 53 col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-5281
SELECT ALL - + 27 * + COUNT( * ) * ( + - 52 ) + + 8 - + MIN( - + 91 ) * + + COUNT( * ) * + 32
----
4324

skipif mysql # not compatible
query I rowsort label-5281
SELECT ALL - + 27 * + COUNT ( * ) * ( + - 52 ) + + 8 - + MIN ( - + 91 ) * + + COUNT ( * ) * + 32
----
4324

onlyif mysql # DIV for integer division: 
query II rowsort label-5282
SELECT + + 6 + + 95 AS col0, + 54 DIV - + 22 AS col1
----
101
-2

skipif mysql # not compatible
query II rowsort label-5282
SELECT + + 6 + + 95 AS col0, + 54 / - + 22 AS col1
----
101
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-5283
SELECT ALL + 1 * 36 * + COUNT( * ) * + 5 AS col1, COUNT( * )
----
180
1

skipif mysql # not compatible
query II rowsort label-5283
SELECT ALL + 1 * 36 * + COUNT ( * ) * + 5 AS col1, COUNT ( * )
----
180
1

query I rowsort
SELECT - 80 * + + 4
----
-320

query I rowsort
SELECT 12 AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5286
SELECT ALL MIN( ALL + 14 ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-5286
SELECT ALL MIN ( ALL + 14 ) AS col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5287
SELECT ALL ( - MIN( DISTINCT - 25 ) )
----
25

skipif mysql # not compatible
query I rowsort label-5287
SELECT ALL ( - MIN ( DISTINCT - 25 ) )
----
25

query I rowsort
SELECT - 66 + 81 AS col0
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-5289
SELECT + 78 DIV 87 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5289
SELECT + 78 / 87 AS col1
----
0

query I rowsort
SELECT 93 AS col2
----
93

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

skipif mysql # not compatible
query I rowsort label-5291
SELECT - COUNT ( * ) + + 27 AS col1
----
26

query I rowsort
SELECT ALL - 36 + - ( - 56 )
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5293
SELECT - 47 + + ( - 49 ) DIV + - MAX( DISTINCT + 57 ) * + 3
----
-47

skipif mysql # not compatible
query I rowsort label-5293
SELECT - 47 + + ( - 49 ) / + - MAX ( DISTINCT + 57 ) * + 3
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-5294
SELECT DISTINCT - ( + + ( - - 48 ) ) * - + COUNT( + + ( 15 ) ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-5294
SELECT DISTINCT - ( + + ( - - 48 ) ) * - + COUNT ( + + ( 15 ) ) AS col2
----
48

query I rowsort
SELECT ALL ( + 35 ) AS col0
----
35

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5296
SELECT - COUNT( * ) * CASE + + 93 WHEN + + CAST( - 54 AS DECIMAL ) * 30 + - 18 * + + 44 + - 55 + + + MIN( + 53 ) THEN 24 + + 38 + 88 * - + 1 WHEN MAX( ALL + 83 ) + - + 10 + - 79 * - 42 + + 85 THEN NULL END / - + 65 * + - 91 / - CAST( - 38 AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5296
SELECT - COUNT ( * ) * CASE + + 93 WHEN + + CAST ( - 54 AS REAL ) * 30 + - 18 * + + 44 + - 55 + + + MIN ( + 53 ) THEN 24 + + 38 + 88 * - + 1 WHEN MAX ( ALL + 83 ) + - + 10 + - 79 * - 42 + + 85 THEN NULL END / - + 65 * + - 91 / - CAST ( - 38 AS REAL ) AS col2
----
NULL

query I rowsort
SELECT ALL + 91 + 3 + + + 8 * 87 AS col0
----
790

onlyif mysql # aggregate syntax: 
query I rowsort label-5298
SELECT DISTINCT - 45 * + 51 * + 52 * - + CASE + 23 WHEN - + COUNT( * ) THEN NULL WHEN + 75 THEN 41 / 2 ELSE NULL END * - + 17 + + 43 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5298
SELECT DISTINCT - 45 * + 51 * + 52 * - + CASE + 23 WHEN - + COUNT ( * ) THEN NULL WHEN + 75 THEN 41 / 2 ELSE NULL END * - + 17 + + 43 AS col0
----
NULL

query I rowsort
SELECT ALL + 91 + 89
----
180

query I rowsort
SELECT ALL 70 * 70
----
4900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5301
SELECT ALL - CAST( 24 AS SIGNED ) * + 43 * + COUNT( DISTINCT 78 )
----
-1032

skipif mysql # not compatible
query I rowsort label-5301
SELECT ALL - CAST ( 24 AS INTEGER ) * + 43 * + COUNT ( DISTINCT 78 )
----
-1032

onlyif mysql # aggregate syntax: 
query I rowsort label-5302
SELECT - 94 - - SUM( - NULLIF ( - + 14, + 77 ) ) * + 80 AS col1
----
1026

skipif mysql # not compatible
query I rowsort label-5302
SELECT - 94 - - SUM ( - NULLIF ( - + 14, + 77 ) ) * + 80 AS col1
----
1026

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5303
SELECT - SUM( ALL + + CAST( - 90 AS SIGNED ) )
----
90

skipif mysql # not compatible
query I rowsort label-5303
SELECT - SUM ( ALL + + CAST ( - 90 AS INTEGER ) )
----
90

query I rowsort
SELECT ALL ( + + ( + - ( + 24 ) ) )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-5305
SELECT DISTINCT - 46 * - + COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-5305
SELECT DISTINCT - 46 * - + COUNT ( * )
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5306
SELECT - COALESCE ( + 92, ( - 23 ) + + CAST( - SUM( ALL - 0 ) AS SIGNED ) )
----
-92

skipif mysql # not compatible
query I rowsort label-5306
SELECT - COALESCE ( + 92, ( - 23 ) + + CAST ( - SUM ( ALL - 0 ) AS INTEGER ) )
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-5307
SELECT - 58 + + - 62 DIV + 61
----
-59

skipif mysql # not compatible
query I rowsort label-5307
SELECT - 58 + + - 62 / + 61
----
-59

query I rowsort
SELECT DISTINCT + 24 AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5309
SELECT + 34 * - 83 + - MIN( DISTINCT 83 ) AS col1
----
-2905

skipif mysql # not compatible
query I rowsort label-5309
SELECT + 34 * - 83 + - MIN ( DISTINCT 83 ) AS col1
----
-2905

query I rowsort
SELECT - - 28 * - ( + + 12 ) AS col0
----
-336

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5311
SELECT + 46 * - + 34 * - 21 + + - CAST( - 93 AS SIGNED ) AS col0
----
32937

skipif mysql # not compatible
query I rowsort label-5311
SELECT + 46 * - + 34 * - 21 + + - CAST ( - 93 AS INTEGER ) AS col0
----
32937

query I rowsort
SELECT ALL + 36 AS col0
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-5313
SELECT + 59 DIV - 48 + + 91 AS col1
----
90

skipif mysql # not compatible
query I rowsort label-5313
SELECT + 59 / - 48 + + 91 AS col1
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5314
SELECT + - 96 / - CASE - CASE COALESCE ( - 75, 54 / + 96 ) WHEN - COUNT( * ) / - 67 - 52 THEN NULL WHEN - COUNT( * ) THEN NULL ELSE + COUNT( + + ( + - 71 ) ) END WHEN + 68 THEN NULL WHEN + CASE 46 WHEN 91 * + - NULLIF ( - 76, - COALESCE ( + AVG ( ALL - 44 ), + + 95, 28 ) ) * + 62 THEN NULL WHEN - + ( + 12 ) / - 57 + + + 50 THEN - 63 + COUNT( * ) WHEN - + 23 THEN + + 91 * - CAST( - 78 AS SIGNED ) * 33 - - 36 ELSE NULL END THEN + 26 + COUNT( * ) WHEN - 6 * + COUNT( 12 ) THEN - 22 + - 90 ELSE CAST( NULL AS SIGNED ) END * COUNT( * ) + 68 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5314
SELECT + - 96 / - CASE - CASE COALESCE ( - 75, 54 / + 96 ) WHEN - COUNT ( * ) / - 67 - 52 THEN NULL WHEN - COUNT ( * ) THEN NULL ELSE + COUNT ( + + ( + - 71 ) ) END WHEN + 68 THEN NULL WHEN + CASE 46 WHEN 91 * + - NULLIF ( - 76, - COALESCE ( + AVG ( ALL - 44 ), + + 95, 28 ) ) * + 62 THEN NULL WHEN - + ( + 12 ) / - 57 + + + 50 THEN - 63 + COUNT ( * ) WHEN - + 23 THEN + + 91 * - CAST ( - 78 AS INTEGER ) * 33 - - 36 ELSE NULL END THEN + 26 + COUNT ( * ) WHEN - 6 * + COUNT ( 12 ) THEN - 22 + - 90 ELSE CAST ( NULL AS INTEGER ) END * COUNT ( * ) + 68 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + + 18
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-5316
SELECT ALL - - 63 DIV 71
----
0

skipif mysql # not compatible
query I rowsort label-5316
SELECT ALL - - 63 / 71
----
0

query I rowsort
SELECT + 62 + + - 90
----
-28

query II rowsort
SELECT ALL + 75, + CASE + - 19 WHEN 63 THEN + - AVG ( + 48 ) END col2
----
75
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5319
SELECT - + COUNT( 51 ) * + COUNT( ALL + 56 ) * + COALESCE ( - COUNT( * ), - COUNT( * ), MAX( ALL + 10 ) ) * - COALESCE ( - SUM( + CAST( + 69 AS SIGNED ) ), + 0 / 38 ) * - 82 / - 50 + - - AVG ( - - NULLIF ( - 94, 40 ) ) - - SUM( ALL 15 ) + + + 46 + CASE - 64 WHEN CAST( - 70 AS SIGNED ) + - 8 THEN NULL WHEN + 73 THEN - 65 + - - 10 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5319
SELECT - + COUNT ( 51 ) * + COUNT ( ALL + 56 ) * + COALESCE ( - COUNT ( * ), - COUNT ( * ), MAX ( ALL + 10 ) ) * - COALESCE ( - SUM ( + CAST ( + 69 AS INTEGER ) ), + 0 / 38 ) * - 82 / - 50 + - - AVG ( - - NULLIF ( - 94, 40 ) ) - - SUM ( ALL 15 ) + + + 46 + CASE - 64 WHEN CAST ( - 70 AS INTEGER ) + - 8 THEN NULL WHEN + 73 THEN - 65 + - - 10 END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5320
SELECT ALL + NULLIF ( COUNT( * ), AVG ( DISTINCT + - 16 ) )
----
1

skipif mysql # not compatible
query I rowsort label-5320
SELECT ALL + NULLIF ( COUNT ( * ), AVG ( DISTINCT + - 16 ) )
----
1

query I rowsort
SELECT + + ( + + 49 ) AS col0
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5322
SELECT 96 * + - 60 * + CAST( NULL AS SIGNED ) + ( + 29 ) + + 31 + - - 45 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5322
SELECT 96 * + - 60 * + CAST ( NULL AS INTEGER ) + ( + 29 ) + + 31 + - - 45 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5323
SELECT ALL - SUM( - + ( 67 ) ) * 3 * - 54
----
-10854

skipif mysql # not compatible
query I rowsort label-5323
SELECT ALL - SUM ( - + ( 67 ) ) * 3 * - 54
----
-10854

query I rowsort
SELECT - 37 AS col1
----
-37

query I rowsort
SELECT - ( + - 23 )
----
23

query I rowsort
SELECT ALL + - 81 AS col1
----
-81

query I rowsort
SELECT ALL + 44 AS col0
----
44

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5328
SELECT + - COALESCE ( - CAST( + 11 AS SIGNED ), 30 ) * 12 + 6 + - 60 + - 49 DIV + 75 * + 76 + + 60 - 80 col2
----
58

skipif mysql # not compatible
query I rowsort label-5328
SELECT + - COALESCE ( - CAST ( + 11 AS INTEGER ), 30 ) * 12 + 6 + - 60 + - 49 / + 75 * + 76 + + 60 - 80 col2
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-5329
SELECT DISTINCT + 71 * + COUNT( * ) + MAX( - - 20 ) * 93, COUNT( * ) + 20 AS col2
----
1931
21

skipif mysql # not compatible
query II rowsort label-5329
SELECT DISTINCT + 71 * + COUNT ( * ) + MAX ( - - 20 ) * 93, COUNT ( * ) + 20 AS col2
----
1931
21

query I rowsort
SELECT + - 64 AS col2
----
-64

query I rowsort
SELECT ALL + - 48
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5332
SELECT ALL + + ( + - 56 ) * 83 + - 22 + + 2 * + CAST( - ( 8 ) AS SIGNED ) AS col1
----
-4686

skipif mysql # not compatible
query I rowsort label-5332
SELECT ALL + + ( + - 56 ) * 83 + - 22 + + 2 * + CAST ( - ( 8 ) AS INTEGER ) AS col1
----
-4686

query I rowsort
SELECT COALESCE ( 7, - + 49 )
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-5334
SELECT CASE 4 WHEN + - SUM( ALL + - 24 ) THEN + ( - - 18 ) * + 93 END AS col1, 96 + 14 AS col1
----
NULL
110

skipif mysql # not compatible
query II rowsort label-5334
SELECT CASE 4 WHEN + - SUM ( ALL + - 24 ) THEN + ( - - 18 ) * + 93 END AS col1, 96 + 14 AS col1
----
NULL
110

query I rowsort
SELECT + 37 * 43
----
1591

query I rowsort
SELECT - ( 17 )
----
-17

query I rowsort
SELECT - 60 * + + 47
----
-2820

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5338
SELECT ALL - 83 * + CAST( NULL AS SIGNED ) / + 44 + - - COUNT( * ) + - COUNT( * ) + COUNT( * ) * - 97 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5338
SELECT ALL - 83 * + CAST ( NULL AS INTEGER ) / + 44 + - - COUNT ( * ) + - COUNT ( * ) + COUNT ( * ) * - 97 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5339
SELECT ALL - 17 * + + ( - 53 ) + - + 58 + 85 + + + 69, - 97 + COUNT( * ) AS col2
----
997
-96

skipif mysql # not compatible
query II rowsort label-5339
SELECT ALL - 17 * + + ( - 53 ) + - + 58 + 85 + + + 69, - 97 + COUNT ( * ) AS col2
----
997
-96

query I rowsort
SELECT + 7 - 87
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5341
SELECT ALL - 31 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5341
SELECT ALL - 31 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5342
SELECT DISTINCT COUNT( * ) * + 40 * - MIN( + - 39 )
----
1560

skipif mysql # not compatible
query I rowsort label-5342
SELECT DISTINCT COUNT ( * ) * + 40 * - MIN ( + - 39 )
----
1560

query II rowsort
SELECT DISTINCT + 59 + + 6, - 10 * - 40 AS col0
----
65
400

query I rowsort
SELECT ALL - 5 + + 98
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-5345
SELECT - 48 col1, + 45 + + + COUNT( * ) - - 71 AS col0
----
-48
117

skipif mysql # not compatible
query II rowsort label-5345
SELECT - 48 col1, + 45 + + + COUNT ( * ) - - 71 AS col0
----
-48
117

query I rowsort
SELECT DISTINCT 41 + 73 AS col2
----
114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5347
SELECT 31 + CAST( - + 28 AS SIGNED )
----
3

skipif mysql # not compatible
query I rowsort label-5347
SELECT 31 + CAST ( - + 28 AS INTEGER )
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5348
SELECT DISTINCT - 60 - + + 1 DIV + 44
----
-60

skipif mysql # not compatible
query I rowsort label-5348
SELECT DISTINCT - 60 - + + 1 / + 44
----
-60

query I rowsort
SELECT ALL - 42 - - 43 AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5350
SELECT DISTINCT + 87 DIV - 29 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-5350
SELECT DISTINCT + 87 / - 29 AS col0
----
-3

query I rowsort
SELECT DISTINCT 40 - + ( 55 ) AS col1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-5352
SELECT ALL + 69 * COUNT( * )
----
69

skipif mysql # not compatible
query I rowsort label-5352
SELECT ALL + 69 * COUNT ( * )
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5353
SELECT DISTINCT + - 90 - - MIN( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5353
SELECT DISTINCT + - 90 - - MIN ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5354
SELECT DISTINCT + - 73 DIV + - 38 + 27 AS col0
----
28

skipif mysql # not compatible
query I rowsort label-5354
SELECT DISTINCT + - 73 / + - 38 + 27 AS col0
----
28

query I rowsort
SELECT ALL - ( - + 64 ) * - + 23
----
-1472

query I rowsort
SELECT DISTINCT - 38 * - 32 + 36
----
1252

onlyif mysql # aggregate syntax: 
query I rowsort label-5357
SELECT COUNT( * ) * - + 49 + + 96
----
47

skipif mysql # not compatible
query I rowsort label-5357
SELECT COUNT ( * ) * - + 49 + + 96
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-5358
SELECT + COALESCE ( + - COUNT( * ), - + 55, 44 ) AS col0, + 35 AS col2
----
-1
35

skipif mysql # not compatible
query II rowsort label-5358
SELECT + COALESCE ( + - COUNT ( * ), - + 55, 44 ) AS col0, + 35 AS col2
----
-1
35

query I rowsort
SELECT ALL - 94 * + 88 + - 38 AS col0
----
-8310

query I rowsort
SELECT 83 col0
----
83

query I rowsort
SELECT 79 * - 66
----
-5214

query I rowsort
SELECT 23 * + - 25 AS col1
----
-575

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5363
SELECT 39 DIV 39 - + COUNT( * ) - 49 AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-5363
SELECT 39 / 39 - + COUNT ( * ) - 49 AS col2
----
-49

query I rowsort
SELECT ( - 0 )
----
0

query I rowsort
SELECT ALL - - 79 AS col1
----
79

query I rowsort
SELECT 2 * + + 4 + - 41 AS col0
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5367
SELECT ALL + CAST( + 65 AS SIGNED ) + COUNT( * ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-5367
SELECT ALL + CAST ( + 65 AS INTEGER ) + COUNT ( * ) AS col1
----
66

query I rowsort
SELECT DISTINCT + 62 + - 55 AS col2
----
7

query I rowsort
SELECT + 6 + + - 90
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5370
SELECT + + CASE + + ( + 65 ) WHEN MIN( 6 ) * - + 44 + - 93 + + 73 * - - 70 / + 32 - NULLIF ( + COUNT( * ), + - COUNT( * ) ) THEN 2 / - 68 + - 32 / 0 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5370
SELECT + + CASE + + ( + 65 ) WHEN MIN ( 6 ) * - + 44 + - 93 + + 73 * - - 70 / + 32 - NULLIF ( + COUNT ( * ), + - COUNT ( * ) ) THEN 2 / - 68 + - 32 / 0 END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5371
SELECT + 89 - + 22 + 98 + 2 DIV - COUNT( * ) + - 5 * - + 22 AS col1
----
273

skipif mysql # not compatible
query I rowsort label-5371
SELECT + 89 - + 22 + 98 + 2 / - COUNT ( * ) + - 5 * - + 22 AS col1
----
273

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5372
SELECT NULLIF ( CAST( 58 AS SIGNED ), + 37 * - NULLIF ( - COUNT( ALL 99 ), AVG ( DISTINCT + 53 ) + 27 ) * + COUNT( * ) - - 34 )
----
58

skipif mysql # not compatible
query I rowsort label-5372
SELECT NULLIF ( CAST ( 58 AS INTEGER ), + 37 * - NULLIF ( - COUNT ( ALL 99 ), AVG ( DISTINCT + 53 ) + 27 ) * + COUNT ( * ) - - 34 )
----
58

query II rowsort
SELECT 22 + 26 AS col1, + 51 col1
----
48
51

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5375
SELECT - 13 * MAX( - 57 ) * 82 + - - CASE 29 WHEN - NULLIF ( - 55, ( + - 93 ) ) THEN + - 79 END + 16 + + MAX( ALL + + 82 ) / - 24
----
NULL

skipif mysql # not compatible
query I rowsort label-5375
SELECT - 13 * MAX ( - 57 ) * 82 + - - CASE 29 WHEN - NULLIF ( - 55, ( + - 93 ) ) THEN + - 79 END + 16 + + MAX ( ALL + + 82 ) / - 24
----
NULL

query I rowsort
SELECT ALL + 36 * - 8
----
-288

query I rowsort
SELECT 41 + + 63 col0
----
104

query I rowsort
SELECT DISTINCT 87 AS col0
----
87

query I rowsort
SELECT ( + 40 ) + 23 AS col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5380
SELECT ALL 71 + - 90 * MAX( ( + - 67 ) ) + - 30 AS col2
----
6071

skipif mysql # not compatible
query I rowsort label-5380
SELECT ALL 71 + - 90 * MAX ( ( + - 67 ) ) + - 30 AS col2
----
6071

query I rowsort
SELECT ALL 44 AS col1
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-5382
SELECT 31 * 32, - 81 * + - COUNT( * ) * - 35 AS col1
----
992
-2835

skipif mysql # not compatible
query II rowsort label-5382
SELECT 31 * 32, - 81 * + - COUNT ( * ) * - 35 AS col1
----
992
-2835

query II rowsort
SELECT 76 + - - 51 AS col1, 17 + + 93 * - - 11 - + 5
----
127
1035

query I rowsort
SELECT ALL 29 * + 21
----
609

query I rowsort
SELECT DISTINCT 61 AS col1
----
61

query I rowsort
SELECT 86 col1
----
86

query II rowsort
SELECT ( - - 36 ) * - - 84 * CASE + 22 WHEN - 77 THEN - 74 END, 57 + 21 AS col2
----
NULL
78

query I rowsort
SELECT ALL 93 * + 63
----
5859

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5389
SELECT ALL - + 0 - 42 + + 36 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5389
SELECT ALL - + 0 - 42 + + 36 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5390
SELECT 25 - - CAST( NULL AS SIGNED ) * 68 * - 39 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5390
SELECT 25 - - CAST ( NULL AS INTEGER ) * 68 * - 39 AS col0
----
NULL

query II rowsort
SELECT 99 + + 92, 40 * - + 52 * + - 66 col0
----
191
137280

query I rowsort
SELECT - 97 + - 92 AS col1
----
-189

query I rowsort
SELECT DISTINCT - + 36
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-5394
SELECT + - ( + 4 ) * + COUNT( * ) + 89
----
85

skipif mysql # not compatible
query I rowsort label-5394
SELECT + - ( + 4 ) * + COUNT ( * ) + 89
----
85

query I rowsort
SELECT ALL - + 80 col2
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5396
SELECT ALL - - CASE NULLIF ( + + 95, + 87 * + COUNT( * ) - + + 89 * + COUNT( * ) + - 92 + - 31 ) WHEN + 68 THEN - 9 + - - NULLIF ( - 32, CAST( - COUNT( * ) AS SIGNED ) ) ELSE + - 49 * COUNT( ALL - 25 ) + + 65 END * 40 AS col2
----
640

skipif mysql # not compatible
query I rowsort label-5396
SELECT ALL - - CASE NULLIF ( + + 95, + 87 * + COUNT ( * ) - + + 89 * + COUNT ( * ) + - 92 + - 31 ) WHEN + 68 THEN - 9 + - - NULLIF ( - 32, CAST ( - COUNT ( * ) AS INTEGER ) ) ELSE + - 49 * COUNT ( ALL - 25 ) + + 65 END * 40 AS col2
----
640

query I rowsort
SELECT ALL - - 20 * - 13 * + ( 66 ) * 14 + + 99 - + - 43 AS col1
----
-240098

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5398
SELECT + ( + - 11 ) DIV COUNT( * ) DIV + 73 + - CAST( - ( + 61 ) AS SIGNED ) * CASE - - 84 WHEN 97 * - ( + 48 ) THEN - + 26 * - + COUNT( * ) ELSE + - COALESCE ( + 85, + ( 42 ) DIV 63 * 33 + - + 32 ) END col2
----
-5185

skipif mysql # not compatible
query I rowsort label-5398
SELECT + ( + - 11 ) / COUNT ( * ) / + 73 + - CAST ( - ( + 61 ) AS INTEGER ) * CASE - - 84 WHEN 97 * - ( + 48 ) THEN - + 26 * - + COUNT ( * ) ELSE + - COALESCE ( + 85, + ( 42 ) / 63 * 33 + - + 32 ) END col2
----
-5185

onlyif mysql # aggregate syntax: 
query II rowsort label-5399
SELECT ALL + 72 * - - 58 + 12, COUNT( * ) AS col2
----
4188
1

skipif mysql # not compatible
query II rowsort label-5399
SELECT ALL + 72 * - - 58 + 12, COUNT ( * ) AS col2
----
4188
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5400
SELECT DISTINCT - + COUNT( + 98 ) * - + NULLIF ( + 8, + 11 ) + + COUNT( * ) col1
----
9

skipif mysql # not compatible
query I rowsort label-5400
SELECT DISTINCT - + COUNT ( + 98 ) * - + NULLIF ( + 8, + 11 ) + + COUNT ( * ) col1
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5401
SELECT CAST( NULL AS SIGNED ) + + + COUNT( * ) * + ( - 19 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5401
SELECT CAST ( NULL AS INTEGER ) + + + COUNT ( * ) * + ( - 19 ) col1
----
NULL

query I rowsort
SELECT ( NULLIF ( 16, + COALESCE ( + - 33, + 94 ) ) ) * - 87 + 93 * + + 42 + ( + 86 ) + 46 + 66 + + 20
----
2732

query I rowsort
SELECT ALL - 86 * - - 57 + 85 + 90 * 78 AS col2
----
2203

onlyif mysql # aggregate syntax: 
query I rowsort label-5404
SELECT DISTINCT + + COALESCE ( 67, + 92 + - 1, - - 90 + COUNT( * ) + + MAX( ALL - - 86 ) * + 21 + + + 16 * + ( + - 55 ), + - COUNT( * ) + - + 29 * + ( - 95 ) * - 22 ) * - 11
----
-737

skipif mysql # not compatible
query I rowsort label-5404
SELECT DISTINCT + + COALESCE ( 67, + 92 + - 1, - - 90 + COUNT ( * ) + + MAX ( ALL - - 86 ) * + 21 + + + 16 * + ( + - 55 ), + - COUNT ( * ) + - + 29 * + ( - 95 ) * - 22 ) * - 11
----
-737

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5405
SELECT 27 * CAST( + + 38 AS SIGNED ) AS col0
----
1026

skipif mysql # not compatible
query I rowsort label-5405
SELECT 27 * CAST ( + + 38 AS INTEGER ) AS col0
----
1026

query I rowsort
SELECT DISTINCT - ( 91 )
----
-91

query I rowsort
SELECT ALL - 45 * - 94 + - + 25 * 99 + + 63 AS col2
----
1818

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5408
SELECT DISTINCT + ( CAST( NULL AS SIGNED ) ) + 13 * - 59 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5408
SELECT DISTINCT + ( CAST ( NULL AS INTEGER ) ) + 13 * - 59 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5409
SELECT - SUM( 20 ) * - 43 * - 58 AS col1
----
-49880

skipif mysql # not compatible
query I rowsort label-5409
SELECT - SUM ( 20 ) * - 43 * - 58 AS col1
----
-49880

onlyif mysql # DIV for integer division: 
query I rowsort label-5410
SELECT ALL 95 DIV 37
----
2

skipif mysql # not compatible
query I rowsort label-5410
SELECT ALL 95 / 37
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5411
SELECT DISTINCT + ( - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5411
SELECT DISTINCT + ( - + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT + 28 AS col0
----
28

query I rowsort
SELECT + ( + 32 ) * + COALESCE ( ( - 86 ), - - 54 + + 32 * - - 51, - 66 ) AS col0
----
-2752

onlyif mysql # DIV for integer division: 
query I rowsort label-5414
SELECT ALL + 5 DIV 89
----
0

skipif mysql # not compatible
query I rowsort label-5414
SELECT ALL + 5 / 89
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5415
SELECT - SUM( + 68 ) * SUM( - CAST( NULLIF ( - 87, 21 - + 84 + + + 4 + + + NULLIF ( + 57, - 79 ) ) AS SIGNED ) ) col0
----
-5916

skipif mysql # not compatible
query I rowsort label-5415
SELECT - SUM ( + 68 ) * SUM ( - CAST ( NULLIF ( - 87, 21 - + 84 + + + 4 + + + NULLIF ( + 57, - 79 ) ) AS INTEGER ) ) col0
----
-5916

onlyif mysql # aggregate syntax: 
query I rowsort label-5416
SELECT - COUNT( - 46 )
----
-1

skipif mysql # not compatible
query I rowsort label-5416
SELECT - COUNT ( - 46 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5417
SELECT - 17 DIV - 64
----
0

skipif mysql # not compatible
query I rowsort label-5417
SELECT - 17 / - 64
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5418
SELECT + 23 * - COUNT( * ) AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-5418
SELECT + 23 * - COUNT ( * ) AS col0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-5419
SELECT - SUM( - + 38 ) - - 65 col1
----
103

skipif mysql # not compatible
query I rowsort label-5419
SELECT - SUM ( - + 38 ) - - 65 col1
----
103

query I rowsort
SELECT ALL CASE + ( - - 68 ) WHEN + 96 THEN 86 WHEN - + 94 THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 87 * + 55
----
-4785

onlyif mysql # DIV for integer division: 
query I rowsort label-5422
SELECT + 87 DIV ( 10 ) * - 81 * + - 8
----
5184

skipif mysql # not compatible
query I rowsort label-5422
SELECT + 87 / ( 10 ) * - 81 * + - 8
----
5184

query I rowsort
SELECT ALL ( 31 ) AS col1
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5424
SELECT + ( + 53 ) * - + COUNT( * ), 8 - - + ( 67 ) + - 75 + CAST( NULL AS SIGNED ) + 81 + + CAST( + - 64 AS SIGNED ) + + 20 AS col2
----
-53
NULL

skipif mysql # not compatible
query II rowsort label-5424
SELECT + ( + 53 ) * - + COUNT ( * ), 8 - - + ( 67 ) + - 75 + CAST ( NULL AS INTEGER ) + 81 + + CAST ( + - 64 AS INTEGER ) + + 20 AS col2
----
-53
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5425
SELECT DISTINCT 28 DIV + 18 DIV + + ( COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-5425
SELECT DISTINCT 28 / + 18 / + + ( COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5426
SELECT + + 75 - - 34 * - SUM( - NULLIF ( 39, 41 * - - 18 ) )
----
1401

skipif mysql # not compatible
query I rowsort label-5426
SELECT + + 75 - - 34 * - SUM ( - NULLIF ( 39, 41 * - - 18 ) )
----
1401

query I rowsort
SELECT ALL 9 col1
----
9

query II rowsort
SELECT + 21, 54 AS col0
----
21
54

query I rowsort
SELECT + 28 + ( + + 39 ) + + - 51 AS col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5430
SELECT + COUNT( * ) - + - 97 + NULLIF ( - 4, + COUNT( * ) ) + COUNT( * )
----
95

skipif mysql # not compatible
query I rowsort label-5430
SELECT + COUNT ( * ) - + - 97 + NULLIF ( - 4, + COUNT ( * ) ) + COUNT ( * )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5431
SELECT + 42 * + 57 * - MIN( ALL + 43 )
----
-102942

skipif mysql # not compatible
query I rowsort label-5431
SELECT + 42 * + 57 * - MIN ( ALL + 43 )
----
-102942

onlyif mysql # aggregate syntax: 
query II rowsort label-5432
SELECT ALL + COUNT( * ) AS col2, 0
----
1
0

skipif mysql # not compatible
query II rowsort label-5432
SELECT ALL + COUNT ( * ) AS col2, 0
----
1
0

query I rowsort
SELECT DISTINCT 73 + + + 54
----
127

query I rowsort
SELECT ALL 47 + - - 46
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5435
SELECT ALL + MIN( DISTINCT + + ( + 17 ) )
----
17

skipif mysql # not compatible
query I rowsort label-5435
SELECT ALL + MIN ( DISTINCT + + ( + 17 ) )
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5436
SELECT ALL + CAST( NULL AS SIGNED ) + - - 55 - + 43, - MIN( + - 80 ) AS col1
----
NULL
80

skipif mysql # not compatible
query II rowsort label-5436
SELECT ALL + CAST ( NULL AS INTEGER ) + - - 55 - + 43, - MIN ( + - 80 ) AS col1
----
NULL
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5437
SELECT + 44 * + 88 * - COUNT( * ) * - + 86 * + - 6 - + 67
----
-1998019

skipif mysql # not compatible
query I rowsort label-5437
SELECT + 44 * + 88 * - COUNT ( * ) * - + 86 * + - 6 - + 67
----
-1998019

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5438
SELECT ALL + 39 / - + CAST( NULL AS SIGNED ) + 51 + - 87 + - - 52 * + 66 * - + 1 + - + 66 / + 44 * NULLIF ( + 73, - 85 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5438
SELECT ALL + 39 / - + CAST ( NULL AS INTEGER ) + 51 + - 87 + - - 52 * + 66 * - + 1 + - + 66 / + 44 * NULLIF ( + 73, - 85 )
----
NULL

query II rowsort
SELECT 30 AS col2, 22 AS col1
----
30
22

query I rowsort
SELECT DISTINCT + + 36 AS col1
----
36

query I rowsort
SELECT ALL - 25 * - + 31 + - 71 + - + 28 * - 46 AS col1
----
1992

query I rowsort
SELECT DISTINCT - 64 * + 94
----
-6016

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5443
SELECT DISTINCT - COALESCE ( + 10, 33 - - CAST( - 97 AS SIGNED ) * + + 81 DIV + - 40 + - - COUNT( * ), 88 * CAST( MIN( ALL + 61 ) AS SIGNED ) + + CAST( NULL AS SIGNED ) ) * COUNT( * ) - - 17 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-5443
SELECT DISTINCT - COALESCE ( + 10, 33 - - CAST ( - 97 AS INTEGER ) * + + 81 / + - 40 + - - COUNT ( * ), 88 * CAST ( MIN ( ALL + 61 ) AS INTEGER ) + + CAST ( NULL AS INTEGER ) ) * COUNT ( * ) - - 17 AS col0
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5444
SELECT - 36 * CAST( NULL AS SIGNED ) * + COUNT( * ) * - 82 * 22
----
NULL

skipif mysql # not compatible
query I rowsort label-5444
SELECT - 36 * CAST ( NULL AS INTEGER ) * + COUNT ( * ) * - 82 * 22
----
NULL

query II rowsort
SELECT + 48 + + - 64 AS col1, 7 AS col0
----
-16
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5446
SELECT COUNT( * ) * - 25 * - 31 - 13 * + + 41
----
242

skipif mysql # not compatible
query I rowsort label-5446
SELECT COUNT ( * ) * - 25 * - 31 - 13 * + + 41
----
242

onlyif mysql # aggregate syntax: 
query I rowsort label-5447
SELECT + COUNT( * ) + 60 AS col2
----
61

skipif mysql # not compatible
query I rowsort label-5447
SELECT + COUNT ( * ) + 60 AS col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5448
SELECT - ( - + CASE + AVG ( - 54 ) WHEN + 46 THEN 3 ELSE - CASE + 40 WHEN + MAX( - - 49 ) * - 79 THEN NULL WHEN 12 * - 83 / + 84 / - 40 + 94 * - 20 / - 10 * - ( + 55 ) + 49 + - 26 THEN + 13 * - + 44 END END ) - - MAX( ALL - 13 ) - + NULLIF ( - 83, - 30 ) * - 84 * + CASE + - 37 WHEN - COUNT( * ) THEN + 67 ELSE NULL END * - - 41
----
NULL

skipif mysql # not compatible
query I rowsort label-5448
SELECT - ( - + CASE + AVG ( - 54 ) WHEN + 46 THEN 3 ELSE - CASE + 40 WHEN + MAX ( - - 49 ) * - 79 THEN NULL WHEN 12 * - 83 / + 84 / - 40 + 94 * - 20 / - 10 * - ( + 55 ) + 49 + - 26 THEN + 13 * - + 44 END END ) - - MAX ( ALL - 13 ) - + NULLIF ( - 83, - 30 ) * - 84 * + CASE + - 37 WHEN - COUNT ( * ) THEN + 67 ELSE NULL END * - - 41
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5449
SELECT - CAST( NULL AS SIGNED ) * + + 49 / COUNT( * ) * - + 88 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5449
SELECT - CAST ( NULL AS INTEGER ) * + + 49 / COUNT ( * ) * - + 88 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 1 * + - 47 * + - 85 * - + 70 col1
----
-279650

query II rowsort
SELECT 10 * - 35 + - - 67 + - + 33 AS col2, + 52 AS col2
----
-316
52

query I rowsort
SELECT NULLIF ( 11, - 51 )
----
11

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5453
SELECT ALL + CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5453
SELECT ALL + CAST ( NULL AS REAL ) col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5454
SELECT + CASE + COUNT( * ) WHEN - 46 THEN - 46 ELSE NULL END * + - CAST( NULL AS SIGNED ) + 66 * 30 * - 77
----
NULL

skipif mysql # not compatible
query I rowsort label-5454
SELECT + CASE + COUNT ( * ) WHEN - 46 THEN - 46 ELSE NULL END * + - CAST ( NULL AS INTEGER ) + 66 * 30 * - 77
----
NULL

query I rowsort
SELECT DISTINCT + 5 AS col2
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5456
SELECT DISTINCT NULLIF ( 14, - + 8 * 76 * + + NULLIF ( NULLIF ( 99, ( - CAST( NULL AS SIGNED ) ) ), 11 ) + - - MAX( + ( + + ( - - ( - 65 ) ) ) ) )
----
14

skipif mysql # not compatible
query I rowsort label-5456
SELECT DISTINCT NULLIF ( 14, - + 8 * 76 * + + NULLIF ( NULLIF ( 99, ( - CAST ( NULL AS INTEGER ) ) ), 11 ) + - - MAX ( + ( + + ( - - ( - 65 ) ) ) ) )
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5457
SELECT ALL CAST( - + 27 AS SIGNED )
----
-27

skipif mysql # not compatible
query I rowsort label-5457
SELECT ALL CAST ( - + 27 AS INTEGER )
----
-27

query I rowsort
SELECT DISTINCT 58 AS col1
----
58

query I rowsort
SELECT DISTINCT ( + - 71 )
----
-71

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

skipif mysql # not compatible
query I rowsort label-5460
SELECT - 75 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5461
SELECT DISTINCT - SUM( - - 60 ) DIV - - 28 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-5461
SELECT DISTINCT - SUM ( - - 60 ) / - - 28 AS col1
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5462
SELECT ALL CAST( - 37 AS SIGNED )
----
-37

skipif mysql # not compatible
query I rowsort label-5462
SELECT ALL CAST ( - 37 AS INTEGER )
----
-37

query I rowsort
SELECT DISTINCT - 56 * - 91 AS col1
----
5096

query I rowsort
SELECT + 16 + 52 AS col2
----
68

query I rowsort
SELECT DISTINCT + 11 AS col1
----
11

query I rowsort
SELECT ALL - 7 + - + 15 + + - 1 col0
----
-23

query I rowsort
SELECT - 77 AS col0
----
-77

query I rowsort
SELECT - - 68 * - 87 col1
----
-5916

onlyif mysql # aggregate syntax: 
query I rowsort label-5469
SELECT ALL - NULLIF ( 8, + COUNT( * ) ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-5469
SELECT ALL - NULLIF ( 8, + COUNT ( * ) ) AS col2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-5470
SELECT - MIN( - 62 ) + - ( - + 91 ) + - 25
----
128

skipif mysql # not compatible
query I rowsort label-5470
SELECT - MIN ( - 62 ) + - ( - + 91 ) + - 25
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-5471
SELECT ALL - - COUNT( * ) + - 53 + - 86 + - COUNT( * ) * + 97 * - 74 + ( 23 ) AS col2
----
7063

skipif mysql # not compatible
query I rowsort label-5471
SELECT ALL - - COUNT ( * ) + - 53 + - 86 + - COUNT ( * ) * + 97 * - 74 + ( 23 ) AS col2
----
7063

query I rowsort
SELECT ALL - 64
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5473
SELECT DISTINCT - COUNT( * ) DIV - 52 + - CAST( + 36 AS SIGNED ) * 6 DIV - 25 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-5473
SELECT DISTINCT - COUNT ( * ) / - 52 + - CAST ( + 36 AS INTEGER ) * 6 / - 25 AS col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5474
SELECT DISTINCT + COUNT( DISTINCT 47 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5474
SELECT DISTINCT + COUNT ( DISTINCT 47 ) AS col2
----
1

query I rowsort
SELECT + + 86 + + 50
----
136

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5476
SELECT DISTINCT - 80 + - 15 + 60 + 17 DIV + COUNT( * ) * COUNT( * )
----
-18

skipif mysql # not compatible
query I rowsort label-5476
SELECT DISTINCT - 80 + - 15 + 60 + 17 / + COUNT ( * ) * COUNT ( * )
----
-18

query I rowsort
SELECT + - 11 + 30 AS col1
----
19

query I rowsort
SELECT + + 80 AS col2
----
80

query I rowsort
SELECT ALL - + 52 AS col0
----
-52

query I rowsort
SELECT ALL - - 92 AS col2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5481
SELECT ALL + COUNT( * ) * - + 57 * - COUNT( * )
----
57

skipif mysql # not compatible
query I rowsort label-5481
SELECT ALL + COUNT ( * ) * - + 57 * - COUNT ( * )
----
57

onlyif mysql # aggregate syntax: 
query III rowsort label-5482
SELECT ALL - 22 AS col2, - 10 + 59, - COUNT( DISTINCT 15 ) * - 95 + + ( + + 28 ) + + 17 AS col1
----
-22
49
140

skipif mysql # not compatible
query III rowsort label-5482
SELECT ALL - 22 AS col2, - 10 + 59, - COUNT ( DISTINCT 15 ) * - 95 + + ( + + 28 ) + + 17 AS col1
----
-22
49
140

query I rowsort
SELECT 57 + 75
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-5484
SELECT ALL 83 * - COUNT( * )
----
-83

skipif mysql # not compatible
query I rowsort label-5484
SELECT ALL 83 * - COUNT ( * )
----
-83

query I rowsort
SELECT ( + + 47 ) + + 13 + - 1 AS col0
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-5486
SELECT 14 * - ( 4 ) + 96 + - - COUNT( * ) * + COUNT( * ) col0, + 40 + COUNT( * ) AS col0
----
41
41

skipif mysql # not compatible
query II rowsort label-5486
SELECT 14 * - ( 4 ) + 96 + - - COUNT ( * ) * + COUNT ( * ) col0, + 40 + COUNT ( * ) AS col0
----
41
41

onlyif mysql # DIV for integer division: 
query I rowsort label-5487
SELECT 47 DIV 91 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5487
SELECT 47 / 91 AS col1
----
0

query I rowsort
SELECT 82 * - 43 AS col1
----
-3526

onlyif mysql # aggregate syntax: 
query II rowsort label-5489
SELECT 77 AS col2, 44 * - + COUNT( * )
----
77
-44

skipif mysql # not compatible
query II rowsort label-5489
SELECT 77 AS col2, 44 * - + COUNT ( * )
----
77
-44

query I rowsort
SELECT ALL - 95 col0
----
-95

query I rowsort
SELECT DISTINCT - NULLIF ( - 36, + 52 ) AS col1
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-5492
SELECT DISTINCT 17 DIV - 95
----
0

skipif mysql # not compatible
query I rowsort label-5492
SELECT DISTINCT 17 / - 95
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5493
SELECT 85 * - ( + - COALESCE ( COUNT( + + 71 ), + 63 * + 15 + - CAST( AVG ( ALL + CAST( NULL AS SIGNED ) ) AS SIGNED ), - + 14 * + 12 + - + 36 ) ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-5493
SELECT 85 * - ( + - COALESCE ( COUNT ( + + 71 ), + 63 * + 15 + - CAST ( AVG ( ALL + CAST ( NULL AS INTEGER ) ) AS INTEGER ), - + 14 * + 12 + - + 36 ) ) AS col1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5494
SELECT ALL + COUNT( * ) * - 41 AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-5494
SELECT ALL + COUNT ( * ) * - 41 AS col0
----
-41

query I rowsort
SELECT 72 * - COALESCE ( 29, + - 40, - 23 ) col0
----
-2088

onlyif mysql # aggregate syntax: 
query I rowsort label-5496
SELECT 7 + - COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-5496
SELECT 7 + - COUNT ( * )
----
6

query I rowsort
SELECT DISTINCT - 70 + - 2 * - 93 * 11 AS col2
----
1976

query I rowsort
SELECT - 65 AS col2
----
-65

query II rowsort
SELECT 28 AS col1, 98 AS col0
----
28
98

onlyif mysql # aggregate syntax: 
query II rowsort label-5500
SELECT ALL - CASE - 67 WHEN 26 THEN + - 62 WHEN + + 65 / - 87 THEN - 53 - 69 * + CASE + + COALESCE ( + + 46, + CASE + 9 WHEN - NULLIF ( - - 6, 11 ) THEN NULL ELSE 38 END * - 86 * + 50 * + 87 ) WHEN + + 88 + - + 94 THEN + CASE + - 52 WHEN 71 THEN - + SUM( DISTINCT - 12 ) END / - - 24 END * 25 * + ( - + 76 ) * + 73 + + 57 + - - 57 / + - 23 END + 72, 25 col1
----
NULL
25

skipif mysql # not compatible
query II rowsort label-5500
SELECT ALL - CASE - 67 WHEN 26 THEN + - 62 WHEN + + 65 / - 87 THEN - 53 - 69 * + CASE + + COALESCE ( + + 46, + CASE + 9 WHEN - NULLIF ( - - 6, 11 ) THEN NULL ELSE 38 END * - 86 * + 50 * + 87 ) WHEN + + 88 + - + 94 THEN + CASE + - 52 WHEN 71 THEN - + SUM ( DISTINCT - 12 ) END / - - 24 END * 25 * + ( - + 76 ) * + 73 + + 57 + - - 57 / + - 23 END + 72, 25 col1
----
NULL
25

query I rowsort
SELECT ALL - 67 * + 81 + 52
----
-5375

query I rowsort
SELECT DISTINCT + 8 + 37
----
45

query I rowsort
SELECT + 68 - + 7
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5504
SELECT ALL + SUM( + 11 ) + - 19 * 86 + + 79 AS col0
----
-1544

skipif mysql # not compatible
query I rowsort label-5504
SELECT ALL + SUM ( + 11 ) + - 19 * 86 + + 79 AS col0
----
-1544

onlyif mysql # aggregate syntax: 
query I rowsort label-5505
SELECT ALL - NULLIF ( - 62, 92 * ( - + 90 ) + + MIN( + 26 ) ) + 95 * - 88
----
-8298

skipif mysql # not compatible
query I rowsort label-5505
SELECT ALL - NULLIF ( - 62, 92 * ( - + 90 ) + + MIN ( + 26 ) ) + 95 * - 88
----
-8298

query II rowsort
SELECT - + 77 AS col2, 29 + - 7 + - 52 + - 13 * ( - 85 ) * + 28 * + 1 AS col0
----
-77
30910

onlyif mysql # aggregate syntax: 
query I rowsort label-5507
SELECT ALL - + MIN( ALL ( - 73 ) ) + + 17 AS col1
----
90

skipif mysql # not compatible
query I rowsort label-5507
SELECT ALL - + MIN ( ALL ( - 73 ) ) + + 17 AS col1
----
90

query I rowsort
SELECT ALL + 66 AS col0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5509
SELECT - COALESCE ( 47, - - COALESCE ( - ( - - 98 ), - NULLIF ( - - 47, - 75 * + CAST( NULL AS SIGNED ) * + 41 + + - 17 ) ) * + 35 - - 85 * 39, - 8 + + + 52 * 17 ) - + 90 AS col1
----
-137

skipif mysql # not compatible
query I rowsort label-5509
SELECT - COALESCE ( 47, - - COALESCE ( - ( - - 98 ), - NULLIF ( - - 47, - 75 * + CAST ( NULL AS INTEGER ) * + 41 + + - 17 ) ) * + 35 - - 85 * 39, - 8 + + + 52 * 17 ) - + 90 AS col1
----
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-5510
SELECT - ( COUNT( + + 32 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5510
SELECT - ( COUNT ( + + 32 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5511
SELECT ALL - COUNT( * ) - 50
----
-51

skipif mysql # not compatible
query I rowsort label-5511
SELECT ALL - COUNT ( * ) - 50
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5512
SELECT - CAST( COUNT( * ) AS SIGNED ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5512
SELECT - CAST ( COUNT ( * ) AS INTEGER ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5513
SELECT DISTINCT + - 34 - + ( 34 ) * - + ( + COUNT( * ) ) col0
----
0

skipif mysql # not compatible
query I rowsort label-5513
SELECT DISTINCT + - 34 - + ( 34 ) * - + ( + COUNT ( * ) ) col0
----
0

query I rowsort
SELECT ( 54 ) AS col0
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5515
SELECT ALL - + CAST( NULL AS SIGNED ) * - COALESCE ( + 20, + 87 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5515
SELECT ALL - + CAST ( NULL AS INTEGER ) * - COALESCE ( + 20, + 87 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5516
SELECT DISTINCT + ( + - ( - + COUNT( DISTINCT 41 ) ) ) - - ( 70 ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-5516
SELECT DISTINCT + ( + - ( - + COUNT ( DISTINCT 41 ) ) ) - - ( 70 ) AS col2
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5517
SELECT 71 * - CASE - COALESCE ( - + 47, - - CAST( 94 AS SIGNED ), - 42 ) WHEN - + 51 THEN + 65 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5517
SELECT 71 * - CASE - COALESCE ( - + 47, - - CAST ( 94 AS INTEGER ), - 42 ) WHEN - + 51 THEN + 65 END col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5518
SELECT ALL - COUNT( * ) DIV 36 * + ( - COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-5518
SELECT ALL - COUNT ( * ) / 36 * + ( - COUNT ( * ) )
----
0

query I rowsort
SELECT DISTINCT - 8 AS col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-5520
SELECT MAX( ALL - 38 )
----
-38

skipif mysql # not compatible
query I rowsort label-5520
SELECT MAX ( ALL - 38 )
----
-38

query I rowsort
SELECT DISTINCT 30 * - 35 AS col0
----
-1050

onlyif mysql # aggregate syntax: 
query I rowsort label-5522
SELECT ALL 65 * - + MAX( - 35 )
----
2275

skipif mysql # not compatible
query I rowsort label-5522
SELECT ALL 65 * - + MAX ( - 35 )
----
2275

query I rowsort
SELECT 76 + 7 AS col2
----
83

query II rowsort
SELECT 68, 23 + - - 35 * - 30 col2
----
68
-1027

query II rowsort
SELECT + 95 AS col0, + 22
----
95
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5526
SELECT ALL CASE + SUM( DISTINCT 8 ) WHEN 95 THEN - COUNT( * ) * 15 ELSE + - 5 END + - 21
----
-26

skipif mysql # not compatible
query I rowsort label-5526
SELECT ALL CASE + SUM ( DISTINCT 8 ) WHEN 95 THEN - COUNT ( * ) * 15 ELSE + - 5 END + - 21
----
-26

query I rowsort
SELECT ALL 29 + ( - 87 ) AS col0
----
-58

query I rowsort
SELECT 66 + + + 27
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5529
SELECT - SUM( + 67 ) * + 41 - - 99 AS col1
----
-2648

skipif mysql # not compatible
query I rowsort label-5529
SELECT - SUM ( + 67 ) * + 41 - - 99 AS col1
----
-2648

query I rowsort
SELECT 56 * - - 22 * - 32 * + - 85 + - 67 AS col2
----
3350973

onlyif mysql # aggregate syntax: 
query I rowsort label-5531
SELECT 11 + - 78 - - - COUNT( * ) AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-5531
SELECT 11 + - 78 - - - COUNT ( * ) AS col2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-5532
SELECT 20 + - 53 * + 31 * COUNT( * )
----
-1623

skipif mysql # not compatible
query I rowsort label-5532
SELECT 20 + - 53 * + 31 * COUNT ( * )
----
-1623

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5533
SELECT ALL MAX( - 75 ) + - CAST( COUNT( * ) AS SIGNED ) AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-5533
SELECT ALL MAX ( - 75 ) + - CAST ( COUNT ( * ) AS INTEGER ) AS col0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-5534
SELECT + 13 * - - COUNT( DISTINCT 68 ) * 57 + 1 * 99 * - + 69 AS col0
----
-6090

skipif mysql # not compatible
query I rowsort label-5534
SELECT + 13 * - - COUNT ( DISTINCT 68 ) * 57 + 1 * 99 * - + 69 AS col0
----
-6090

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5535
SELECT ALL COUNT( * ) DIV - 95
----
0

skipif mysql # not compatible
query I rowsort label-5535
SELECT ALL COUNT ( * ) / - 95
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5536
SELECT DISTINCT 28 + + COUNT( * )
----
29

skipif mysql # not compatible
query I rowsort label-5536
SELECT DISTINCT 28 + + COUNT ( * )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5537
SELECT + - SUM( - ( + + 40 ) ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-5537
SELECT + - SUM ( - ( + + 40 ) ) AS col2
----
40

query I rowsort
SELECT DISTINCT - + 24 + 49 AS col0
----
25

query I rowsort
SELECT ALL - - 74 + + 13 - - 78
----
165

query I rowsort
SELECT ALL - ( - - 51 )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5541
SELECT 37 + + + COALESCE ( - 72, + COUNT( + 2 ) ) AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-5541
SELECT 37 + + + COALESCE ( - 72, + COUNT ( + 2 ) ) AS col2
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-5542
SELECT 25 * 82 + - - COUNT( * ) AS col2
----
2051

skipif mysql # not compatible
query I rowsort label-5542
SELECT 25 * 82 + - - COUNT ( * ) AS col2
----
2051

onlyif mysql # aggregate syntax: 
query II rowsort label-5543
SELECT ALL + 12 AS col2, + COUNT( * )
----
12
1

skipif mysql # not compatible
query II rowsort label-5543
SELECT ALL + 12 AS col2, + COUNT ( * )
----
12
1

query I rowsort
SELECT ALL - - 82 - 18
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-5545
SELECT 6 AS col0, + 63 + MAX( + - 79 ) + - + 95 col2
----
6
-111

skipif mysql # not compatible
query II rowsort label-5545
SELECT 6 AS col0, + 63 + MAX ( + - 79 ) + - + 95 col2
----
6
-111

query I rowsort
SELECT - - 17 AS col2
----
17

query II rowsort
SELECT ALL + 50, - 42 + + 70 AS col0
----
50
28

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5548
SELECT - - CAST( NULL AS DECIMAL ) + - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-5548
SELECT - - CAST ( NULL AS REAL ) + - 34
----
NULL

query I rowsort
SELECT DISTINCT 75 AS col1
----
75

query I rowsort
SELECT - - 42 + 56
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5551
SELECT - - 84 * + COALESCE ( - - 42, + 54 * + COUNT( * ) DIV - 15 * + 51 + - - 9 ) AS col1
----
3528

skipif mysql # not compatible
query I rowsort label-5551
SELECT - - 84 * + COALESCE ( - - 42, + 54 * + COUNT ( * ) / - 15 * + 51 + - - 9 ) AS col1
----
3528

onlyif mysql # aggregate syntax: 
query I rowsort label-5552
SELECT ALL ( - CASE - ( 0 ) WHEN - 67 THEN - 77 * + - 6 * COUNT( * ) * + COUNT( - + 13 ) / + 57 ELSE NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5552
SELECT ALL ( - CASE - ( 0 ) WHEN - 67 THEN - 77 * + - 6 * COUNT ( * ) * + COUNT ( - + 13 ) / + 57 ELSE NULL END ) AS col1
----
NULL

query I rowsort
SELECT - 27 + 42 * + 71
----
2955

onlyif mysql # aggregate syntax: 
query I rowsort label-5554
SELECT - CASE + + 83 WHEN + COUNT( * ) + COUNT( * ) / ( - 42 ) THEN - 37 WHEN - 71 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5554
SELECT - CASE + + 83 WHEN + COUNT ( * ) + COUNT ( * ) / ( - 42 ) THEN - 37 WHEN - 71 THEN NULL END
----
NULL

query I rowsort
SELECT - 31 + - 65 AS col0
----
-96

query I rowsort
SELECT DISTINCT + 42 * - 9 * - 18 col1
----
6804

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5557
SELECT ALL CAST( NULL AS SIGNED ) * COALESCE ( - CASE - 28 WHEN 36 THEN + CAST( 21 AS SIGNED ) * + 32 * - - 90 * + 55 ELSE COUNT( * ) END, - 68 ) + 23 + - COUNT( * ) * - - 90 - - 20 * + 22 * - 66 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5557
SELECT ALL CAST ( NULL AS INTEGER ) * COALESCE ( - CASE - 28 WHEN 36 THEN + CAST ( 21 AS INTEGER ) * + 32 * - - 90 * + 55 ELSE COUNT ( * ) END, - 68 ) + 23 + - COUNT ( * ) * - - 90 - - 20 * + 22 * - 66 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5558
SELECT DISTINCT - 97 * 75 / + CAST( NULL AS SIGNED ) * - 27 * + + 40 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5558
SELECT DISTINCT - 97 * 75 / + CAST ( NULL AS INTEGER ) * - 27 * + + 40 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 42 * + 80 * 23
----
77280

onlyif mysql # aggregate syntax: 
query I rowsort label-5560
SELECT + COUNT( 71 )
----
1

skipif mysql # not compatible
query I rowsort label-5560
SELECT + COUNT ( 71 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5561
SELECT ALL 79 * + NULLIF ( + 50, 37 ) + 55 + COUNT( * )
----
4006

skipif mysql # not compatible
query I rowsort label-5561
SELECT ALL 79 * + NULLIF ( + 50, 37 ) + 55 + COUNT ( * )
----
4006

onlyif mysql # aggregate syntax: 
query II rowsort label-5562
SELECT + 41 + + COUNT( * ) AS col1, 43 * + 69 + - - 18
----
42
2985

skipif mysql # not compatible
query II rowsort label-5562
SELECT + 41 + + COUNT ( * ) AS col1, 43 * + 69 + - - 18
----
42
2985

query I rowsort
SELECT DISTINCT + 49 col0
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-5564
SELECT NULLIF ( - 56, + 55 + + MAX( ALL + 37 ) ) AS col1, - MIN( 20 ) AS col0
----
-56
-20

skipif mysql # not compatible
query II rowsort label-5564
SELECT NULLIF ( - 56, + 55 + + MAX ( ALL + 37 ) ) AS col1, - MIN ( 20 ) AS col0
----
-56
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5565
SELECT CASE - 64 WHEN CASE 92 WHEN 73 THEN - + 7 * + - COUNT( * ) + + 16 + - + 96 WHEN - - 50 * - 83 * + 20 THEN - 59 * 68 + - - COUNT( * ) * - + COUNT( * ) + - 51 ELSE 40 + - COALESCE ( 82, - CASE CAST( + 21 AS SIGNED ) WHEN - + 0 + ( + + 73 ) + - 30 * 20 * 80 THEN NULL ELSE + ( + - ( + MAX( - 46 ) ) ) * + COALESCE ( - ( 50 ), - COALESCE ( - CAST( NULL AS SIGNED ), 59 + + 59, + 63 - + 43 ) * 88 + 26 ) - + COUNT( + 5 ) / - 25 END ) END + - 43 THEN MIN( 80 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5565
SELECT CASE - 64 WHEN CASE 92 WHEN 73 THEN - + 7 * + - COUNT ( * ) + + 16 + - + 96 WHEN - - 50 * - 83 * + 20 THEN - 59 * 68 + - - COUNT ( * ) * - + COUNT ( * ) + - 51 ELSE 40 + - COALESCE ( 82, - CASE CAST ( + 21 AS INTEGER ) WHEN - + 0 + ( + + 73 ) + - 30 * 20 * 80 THEN NULL ELSE + ( + - ( + MAX ( - 46 ) ) ) * + COALESCE ( - ( 50 ), - COALESCE ( - CAST ( NULL AS INTEGER ), 59 + + 59, + 63 - + 43 ) * 88 + 26 ) - + COUNT ( + 5 ) / - 25 END ) END + - 43 THEN MIN ( 80 ) ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5566
SELECT NULLIF ( - 39, - + 47 / + MAX( 33 ) - + CASE + 42 WHEN - - 6 THEN NULL WHEN + CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) + - 79 + SUM( DISTINCT - 20 ) * ( - 60 ) THEN 75 END )
----
-39

skipif mysql # not compatible
query I rowsort label-5566
SELECT NULLIF ( - 39, - + 47 / + MAX ( 33 ) - + CASE + 42 WHEN - - 6 THEN NULL WHEN + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) + - 79 + SUM ( DISTINCT - 20 ) * ( - 60 ) THEN 75 END )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-5567
SELECT ALL + 84 * + + 32 * - - 68 + COUNT( * ) - 96
----
182689

skipif mysql # not compatible
query I rowsort label-5567
SELECT ALL + 84 * + + 32 * - - 68 + COUNT ( * ) - 96
----
182689

onlyif mysql # DIV for integer division: 
query II rowsort label-5568
SELECT - 81 * - 42 AS col2, + 12 DIV 48 + - 18 + + + 41
----
3402
23

skipif mysql # not compatible
query II rowsort label-5568
SELECT - 81 * - 42 AS col2, + 12 / 48 + - 18 + + + 41
----
3402
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5569
SELECT CASE MIN( - 35 ) WHEN ( ( 35 ) ) THEN - + 63 WHEN + 17 + - + 85 THEN - CASE - MAX( DISTINCT + NULLIF ( + 48, - + 63 * - 74 + 62 ) ) WHEN - 9 * - COUNT( * ) - + + 51 THEN + 20 * - 91 WHEN 52 * CAST( - 70 AS SIGNED ) + + + ( - COUNT( * ) ) + + 90 + - NULLIF ( + COUNT( * ), 29 + - COUNT( * ) ) + + NULLIF ( + + 60, + 26 + + 15 - + 18 / + + 74 * + 40 + 3 + 78 ) + - 2 + + 11 / - 56 * - CASE - 84 WHEN + 6 * 26 + + 61 * 30 THEN NULL WHEN - COUNT( * ) THEN 7 WHEN + CASE + 56 WHEN 52 THEN MIN( DISTINCT 32 ) + - 86 END THEN NULL END THEN + 64 + - 43 ELSE + COUNT( * ) END * CAST( NULL AS SIGNED ) + - 71 WHEN ( 56 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5569
SELECT CASE MIN ( - 35 ) WHEN ( ( 35 ) ) THEN - + 63 WHEN + 17 + - + 85 THEN - CASE - MAX ( DISTINCT + NULLIF ( + 48, - + 63 * - 74 + 62 ) ) WHEN - 9 * - COUNT ( * ) - + + 51 THEN + 20 * - 91 WHEN 52 * CAST ( - 70 AS INTEGER ) + + + ( - COUNT ( * ) ) + + 90 + - NULLIF ( + COUNT ( * ), 29 + - COUNT ( * ) ) + + NULLIF ( + + 60, + 26 + + 15 - + 18 / + + 74 * + 40 + 3 + 78 ) + - 2 + + 11 / - 56 * - CASE - 84 WHEN + 6 * 26 + + 61 * 30 THEN NULL WHEN - COUNT ( * ) THEN 7 WHEN + CASE + 56 WHEN 52 THEN MIN ( DISTINCT 32 ) + - 86 END THEN NULL END THEN + 64 + - 43 ELSE + COUNT ( * ) END * CAST ( NULL AS INTEGER ) + - 71 WHEN ( 56 ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5570
SELECT DISTINCT - 51 * + - ( + COUNT( * ) ) * COUNT( * ) + + - CASE WHEN NOT - 39 > NULL THEN + ( + 1 ) DIV - - 84 WHEN NOT - 46 IS NOT NULL THEN NULL ELSE 35 - - + 80 END * + 98
----
-11219

skipif mysql # not compatible
query I rowsort label-5570
SELECT DISTINCT - 51 * + - ( + COUNT ( * ) ) * COUNT ( * ) + + - CASE WHEN NOT - 39 > NULL THEN + ( + 1 ) / - - 84 WHEN NOT - 46 IS NOT NULL THEN NULL ELSE 35 - - + 80 END * + 98
----
-11219

onlyif mysql # aggregate syntax: 
query I rowsort label-5571
SELECT ALL + SUM( DISTINCT 0 ) * - 0 * - 95 * + + 11 + - 28
----
-28

skipif mysql # not compatible
query I rowsort label-5571
SELECT ALL + SUM ( DISTINCT 0 ) * - 0 * - 95 * + + 11 + - 28
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-5572
SELECT ALL + - COALESCE ( SUM( ALL - + ( - 87 ) ), - COUNT( * ) * 84 ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-5572
SELECT ALL + - COALESCE ( SUM ( ALL - + ( - 87 ) ), - COUNT ( * ) * 84 ) AS col1
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5573
SELECT + - CASE + - 47 WHEN + 34 - - CASE - CASE - MAX( ALL 84 ) WHEN - - COALESCE ( - + 38, 45 - 9 + 9 + - - 49 / CASE - 88 WHEN + 58 / - 55 - + - ( 63 ) THEN NULL WHEN + 80 THEN NULL ELSE 3 - COALESCE ( NULLIF ( CAST( + 71 AS SIGNED ), ( 95 ) ), 65 / 52 * 49, - 77 ) END * - - 99 * + 55 ) * - 75 + 26 THEN - - 84 WHEN 36 THEN - + 42 ELSE NULL END WHEN 84 THEN 65 * 23 WHEN - - 46 THEN NULL END THEN 98 END * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5573
SELECT + - CASE + - 47 WHEN + 34 - - CASE - CASE - MAX ( ALL 84 ) WHEN - - COALESCE ( - + 38, 45 - 9 + 9 + - - 49 / CASE - 88 WHEN + 58 / - 55 - + - ( 63 ) THEN NULL WHEN + 80 THEN NULL ELSE 3 - COALESCE ( NULLIF ( CAST ( + 71 AS INTEGER ), ( 95 ) ), 65 / 52 * 49, - 77 ) END * - - 99 * + 55 ) * - 75 + 26 THEN - - 84 WHEN 36 THEN - + 42 ELSE NULL END WHEN 84 THEN 65 * 23 WHEN - - 46 THEN NULL END THEN 98 END * COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT + + 46
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-5575
SELECT + 46 * + COUNT( * ) * SUM( + + 41 ) + - 13, 36 AS col2
----
1873
36

skipif mysql # not compatible
query II rowsort label-5575
SELECT + 46 * + COUNT ( * ) * SUM ( + + 41 ) + - 13, 36 AS col2
----
1873
36

onlyif mysql # aggregate syntax: 
query II rowsort label-5576
SELECT ALL - - COUNT( * ) * + 51 - 87 - + - 32 * + 7 * + 22 * 26 AS col2, MAX( + 38 ) * - 88 + 5
----
128092
-3339

skipif mysql # not compatible
query II rowsort label-5576
SELECT ALL - - COUNT ( * ) * + 51 - 87 - + - 32 * + 7 * + 22 * 26 AS col2, MAX ( + 38 ) * - 88 + 5
----
128092
-3339

query II rowsort
SELECT + 39 * 34 AS col0, 91
----
1326
91

query I rowsort
SELECT + 52 - + 16
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5579
SELECT DISTINCT COUNT( DISTINCT 74 ) DIV 26 + - 72 * - 93 AS col1
----
6696

skipif mysql # not compatible
query I rowsort label-5579
SELECT DISTINCT COUNT ( DISTINCT 74 ) / 26 + - 72 * - 93 AS col1
----
6696

onlyif mysql # aggregate syntax: 
query I rowsort label-5580
SELECT + 66 - + 33 * + CASE - 32 WHEN + COALESCE ( - - ( - 63 ), - + COUNT( * ), 95 ) THEN + 10 END * + + 3 + 78 + 26 - + 76 * 34
----
NULL

skipif mysql # not compatible
query I rowsort label-5580
SELECT + 66 - + 33 * + CASE - 32 WHEN + COALESCE ( - - ( - 63 ), - + COUNT ( * ), 95 ) THEN + 10 END * + + 3 + 78 + 26 - + 76 * 34
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5581
SELECT DISTINCT 53 DIV 25 col0, COUNT( * )
----
2
1

skipif mysql # not compatible
query II rowsort label-5581
SELECT DISTINCT 53 / 25 col0, COUNT ( * )
----
2
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5582
SELECT + + 19 + 24 * 48 * + + 1 * + + COUNT( + 99 ) AS col2
----
1171

skipif mysql # not compatible
query I rowsort label-5582
SELECT + + 19 + 24 * 48 * + + 1 * + + COUNT ( + 99 ) AS col2
----
1171

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5583
SELECT + + 13 DIV - - COUNT( * ), + CASE WHEN NOT + ( 39 ) BETWEEN 86 + SUM( ALL 1 ) * + 57 + + 57 - - + 26 AND + + 95 THEN - CASE WHEN 3 < 28 THEN + + ( + 78 ) END ELSE NULL END DIV - - ( + SUM( DISTINCT 73 ) ) - - 66 - + + MIN( ALL 61 ) + - + ( - COUNT( * ) ) * 43 * - 78 AS col0
----
13
-3350

skipif mysql # not compatible
query II rowsort label-5583
SELECT + + 13 / - - COUNT ( * ), + CASE WHEN NOT + ( 39 ) BETWEEN 86 + SUM ( ALL 1 ) * + 57 + + 57 - - + 26 AND + + 95 THEN - CASE WHEN 3 < 28 THEN + + ( + 78 ) END ELSE NULL END / - - ( + SUM ( DISTINCT 73 ) ) - - 66 - + + MIN ( ALL 61 ) + - + ( - COUNT ( * ) ) * 43 * - 78 AS col0
----
13
-3350

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5584
SELECT + 41 * 96, CAST( - ( 29 ) AS SIGNED ) AS col2
----
3936
-29

skipif mysql # not compatible
query II rowsort label-5584
SELECT + 41 * 96, CAST ( - ( 29 ) AS INTEGER ) AS col2
----
3936
-29

query I rowsort
SELECT DISTINCT - 0 * + 11 * - 96 AS col0
----
0

query I rowsort
SELECT DISTINCT NULLIF ( + 38, - 94 ) col2
----
38

query I rowsort
SELECT ALL + 55 + + + 95 * 9 AS col2
----
910

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5588
SELECT + CASE 24 WHEN + 1 THEN NULL WHEN - 67 THEN NULL ELSE 16 END * - - ( + CAST( - 18 AS SIGNED ) )
----
-288

skipif mysql # not compatible
query I rowsort label-5588
SELECT + CASE 24 WHEN + 1 THEN NULL WHEN - 67 THEN NULL ELSE 16 END * - - ( + CAST ( - 18 AS INTEGER ) )
----
-288

onlyif mysql # DIV for integer division: 
query I rowsort label-5589
SELECT ALL 1 + + ( + 3 ) DIV + + 49
----
1

skipif mysql # not compatible
query I rowsort label-5589
SELECT ALL 1 + + ( + 3 ) / + + 49
----
1

query I rowsort
SELECT ALL ( + 79 )
----
79

query I rowsort
SELECT + 35 + - 33 AS col0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5592
SELECT CAST( 88 AS SIGNED ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-5592
SELECT CAST ( 88 AS INTEGER ) AS col1
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5593
SELECT - 17 * - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5593
SELECT - 17 * - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + 62 * - + 40 * - ( 11 ) - 9 + - 28 * - - 6 * + + 30
----
22231

query I rowsort
SELECT DISTINCT + 11 * + + 88 AS col1
----
968

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5596
SELECT DISTINCT 12 DIV + CAST( - ( + 9 ) AS SIGNED ) + SUM( 78 )
----
77

skipif mysql # not compatible
query I rowsort label-5596
SELECT DISTINCT 12 / + CAST ( - ( + 9 ) AS INTEGER ) + SUM ( 78 )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5597
SELECT - 81 + + 52 - + + 2 + + 5 + + COUNT( * ) * + 44 * ( - 19 ) * + 22
----
-18418

skipif mysql # not compatible
query I rowsort label-5597
SELECT - 81 + + 52 - + + 2 + + 5 + + COUNT ( * ) * + 44 * ( - 19 ) * + 22
----
-18418

onlyif mysql # DIV for integer division: 
query I rowsort label-5598
SELECT ALL 86 DIV - + ( - 94 ) + - 99 AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-5598
SELECT ALL 86 / - + ( - 94 ) + - 99 AS col2
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-5599
SELECT DISTINCT + COUNT( * ), + COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-5599
SELECT DISTINCT + COUNT ( * ), + COUNT ( * )
----
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5600
SELECT CAST( NULL AS SIGNED ) AS col1, 43
----
NULL
43

skipif mysql # not compatible
query II rowsort label-5600
SELECT CAST ( NULL AS INTEGER ) AS col1, 43
----
NULL
43

onlyif mysql # aggregate syntax: 
query I rowsort label-5601
SELECT ALL + COUNT( * ) * - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-5601
SELECT ALL + COUNT ( * ) * - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5602
SELECT - 96 * CASE + + 66 WHEN + + 11 * + 92 + + + 41 * + - 75 THEN COUNT( * ) - 71 ELSE NULL END + + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-5602
SELECT - 96 * CASE + + 66 WHEN + + 11 * + 92 + + + 41 * + - 75 THEN COUNT ( * ) - 71 ELSE NULL END + + 88
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5603
SELECT - + CASE - + 11 WHEN - + 71 + ( CAST( NULL AS DECIMAL ) ) + - COUNT( * ) THEN 25 ELSE COUNT( * ) * - CAST( NULL AS DECIMAL ) + 97 + + 35 END * 41 + + 6 AS col2, + 97 - + + 69 col2
----
NULL
28

skipif mysql # not compatible
query II rowsort label-5603
SELECT - + CASE - + 11 WHEN - + 71