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 + ( CAST ( NULL AS REAL ) ) + - COUNT ( * ) THEN 25 ELSE COUNT ( * ) * - CAST ( NULL AS REAL ) + 97 + + 35 END * 41 + + 6 AS col2, + 97 - + + 69 col2
----
NULL
28

query II rowsort
SELECT ALL + 18, 1 AS col1
----
18
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5605
SELECT 8 / CAST( NULL AS SIGNED ) + + 13 * + 93 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5605
SELECT 8 / CAST ( NULL AS INTEGER ) + + 13 * + 93 AS col0
----
NULL

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

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

query I rowsort
SELECT DISTINCT - - NULLIF ( 70, + - 52 ) AS col1
----
70

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

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

query II rowsort
SELECT + 92 AS col2, - 42
----
92
-42

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

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

query I rowsort
SELECT ALL - + 20
----
-20

query II rowsort
SELECT + + 31 col2, - 85 AS col1
----
31
-85

query I rowsort
SELECT ALL 3 * + 10
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5615
SELECT ALL + 12 * - CASE - 17 WHEN + + COUNT( * ) THEN + 13 * + - 36 * 91 * - 39 ELSE + 62 END + - + 23 col0
----
-767

skipif mysql # not compatible
query I rowsort label-5615
SELECT ALL + 12 * - CASE - 17 WHEN + + COUNT ( * ) THEN + 13 * + - 36 * 91 * - 39 ELSE + 62 END + - + 23 col0
----
-767

query I rowsort
SELECT - 32 AS col0
----
-32

query II rowsort
SELECT - 43, 40 - + 68 AS col2
----
-43
-28

query II rowsort
SELECT - 2 * + - 54 + - 74, + 76 AS col1
----
34
76

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

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

query II rowsort
SELECT 56 * + 67 * + 95 * - 3 AS col2, - 47 * + 51 + - 93 AS col0
----
-1069320
-2490

onlyif mysql # aggregate syntax: 
query II rowsort label-5621
SELECT + 9 * - CASE - COUNT( * ) WHEN - - 70 THEN - + 59 + - 11 + - + 5 ELSE NULL END + - + MIN( ALL 46 ) AS col2, COUNT( * ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5621
SELECT + 9 * - CASE - COUNT ( * ) WHEN - - 70 THEN - + 59 + - 11 + - + 5 ELSE NULL END + - + MIN ( ALL 46 ) AS col2, COUNT ( * ) AS col0
----
NULL
1

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5623
SELECT ALL + CAST( + 61 AS SIGNED ) + + - 30 AS col2, COUNT( * )
----
31
1

skipif mysql # not compatible
query II rowsort label-5623
SELECT ALL + CAST ( + 61 AS INTEGER ) + + - 30 AS col2, COUNT ( * )
----
31
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5624
SELECT + SUM( 74 ) + - 58
----
16

skipif mysql # not compatible
query I rowsort label-5624
SELECT + SUM ( 74 ) + - 58
----
16

query I rowsort
SELECT DISTINCT + 60 + + 95 AS col0
----
155

query II rowsort
SELECT ALL 42 * - 79, 93 col0
----
-3318
93

query I rowsort
SELECT ALL 54 + - 83 AS col0
----
-29

onlyif mysql # DIV for integer division: 
query II rowsort label-5628
SELECT 56 DIV + 27 AS col1, 65 + 5 col1
----
2
70

skipif mysql # not compatible
query II rowsort label-5628
SELECT 56 / + 27 AS col1, 65 + 5 col1
----
2
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5629
SELECT 92 + 84 * CASE 60 WHEN + - COUNT( * ) + + NULLIF ( - 41, - 91 + CAST( NULL AS SIGNED ) + - 33 + - ( - - 48 ) * 8 ) + + + 14 * - 58 * - - COUNT( DISTINCT - 93 ) THEN NULL ELSE + CASE + - MIN( + CAST( + + 12 AS SIGNED ) ) WHEN COUNT( * ) THEN + + 95 * + 54 + - - 56 * - 81 + + - ( - 95 ) END * + 68 - + - 36 * - 99 - + 53 + ( + 17 ) + - - COALESCE ( MIN( + 14 ), - - COUNT( * ) * 91 * - 25 + + - 83 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5629
SELECT 92 + 84 * CASE 60 WHEN + - COUNT ( * ) + + NULLIF ( - 41, - 91 + CAST ( NULL AS INTEGER ) + - 33 + - ( - - 48 ) * 8 ) + + + 14 * - 58 * - - COUNT ( DISTINCT - 93 ) THEN NULL ELSE + CASE + - MIN ( + CAST ( + + 12 AS INTEGER ) ) WHEN COUNT ( * ) THEN + + 95 * + 54 + - - 56 * - 81 + + - ( - 95 ) END * + 68 - + - 36 * - 99 - + 53 + ( + 17 ) + - - COALESCE ( MIN ( + 14 ), - - COUNT ( * ) * 91 * - 25 + + - 83 ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5630
SELECT CASE 34 WHEN - ( - 4 ) THEN + CAST( COUNT( 8 ) AS SIGNED ) * 53 + + + 64 + - NULLIF ( 20, + ( 84 ) ) + COALESCE ( + 93, - 8 * + 94 ) / + - 5 END * - - ( 50 ) * - 48 + + 0 + + - 45 / + + CAST( + MAX( - NULLIF ( 91, + - 27 ) ) AS SIGNED ) + 2 * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5630
SELECT CASE 34 WHEN - ( - 4 ) THEN + CAST ( COUNT ( 8 ) AS INTEGER ) * 53 + + + 64 + - NULLIF ( 20, + ( 84 ) ) + COALESCE ( + 93, - 8 * + 94 ) / + - 5 END * - - ( 50 ) * - 48 + + 0 + + - 45 / + + CAST ( + MAX ( - NULLIF ( 91, + - 27 ) ) AS INTEGER ) + 2 * COUNT ( * ) AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5631
SELECT CAST ( NULL AS INTEGER ) + 37 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5632
SELECT ALL COUNT( * ) + - 84 * + + 37 AS col1
----
-3107

skipif mysql # not compatible
query I rowsort label-5632
SELECT ALL COUNT ( * ) + - 84 * + + 37 AS col1
----
-3107

query I rowsort
SELECT 11 + + - ( - 2 ) + - + 62 AS col0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-5634
SELECT 20 + NULLIF ( 40, + COUNT( * ) - - - 32 + + 32 * - 4 * + 91 / 91 ) * + 16 col0
----
660

skipif mysql # not compatible
query I rowsort label-5634
SELECT 20 + NULLIF ( 40, + COUNT ( * ) - - - 32 + + 32 * - 4 * + 91 / 91 ) * + 16 col0
----
660

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5635
SELECT CAST( + COUNT( * ) AS SIGNED ) * + - CAST( NULL AS SIGNED ) / + 63 / 26 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5635
SELECT CAST ( + COUNT ( * ) AS INTEGER ) * + - CAST ( NULL AS INTEGER ) / + 63 / 26 AS col1
----
NULL

query I rowsort
SELECT ALL 11 + + - 72 + + - 35 + 17 * + 95 * - 28 * 50
----
-2261096

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

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

query I rowsort
SELECT 17 * + 67
----
1139

query I rowsort
SELECT DISTINCT - 87 col0
----
-87

query I rowsort
SELECT DISTINCT 99 - 30 AS col1
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5641
SELECT 26 * + NULLIF ( - + 58, - NULLIF ( - - 68, + 15 DIV 67 ) + + - COUNT( * ) ) * - 67 + + NULLIF ( - 42, - 75 ) DIV - 76 + + COUNT( * )
----
101037

skipif mysql # not compatible
query I rowsort label-5641
SELECT 26 * + NULLIF ( - + 58, - NULLIF ( - - 68, + 15 / 67 ) + + - COUNT ( * ) ) * - 67 + + NULLIF ( - 42, - 75 ) / - 76 + + COUNT ( * )
----
101037

query I rowsort
SELECT + 94 * - + ( - 64 )
----
6016

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5643
SELECT ALL 90 DIV COALESCE ( - 92, CASE - COUNT( * ) WHEN 26 THEN - 89 WHEN + 14 DIV + 47 * 77 THEN - ( - AVG ( DISTINCT - - 91 ) ) * + 57 DIV + 59 DIV + + ( + NULLIF ( - - 50, + MIN( ALL + 50 ) ) ) END, - 57 * - 58 + 51 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5643
SELECT ALL 90 / COALESCE ( - 92, CASE - COUNT ( * ) WHEN 26 THEN - 89 WHEN + 14 / + 47 * 77 THEN - ( - AVG ( DISTINCT - - 91 ) ) * + 57 / + 59 / + + ( + NULLIF ( - - 50, + MIN ( ALL + 50 ) ) ) END, - 57 * - 58 + 51 ) AS col0
----
0

query II rowsort
SELECT DISTINCT - - ( - - 81 ) * + - ( + 63 ), 10 AS col1
----
-5103
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5645
SELECT ALL - - CASE 58 WHEN + + 71 - - ( + 35 ) THEN NULL ELSE 5 DIV + COUNT( * ) END
----
5

skipif mysql # not compatible
query I rowsort label-5645
SELECT ALL - - CASE 58 WHEN + + 71 - - ( + 35 ) THEN NULL ELSE 5 / + COUNT ( * ) END
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-5646
SELECT - 57 DIV + 60
----
0

skipif mysql # not compatible
query I rowsort label-5646
SELECT - 57 / + 60
----
0

query I rowsort
SELECT ALL + - 96 + 60 col2
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5648
SELECT - COALESCE ( 77, + 98 ) + + 83 + - 84 + - SUM( + 21 ) + - 42 * - 94 + + 91 * - 60 * 55, - 77 / - NULLIF ( - CASE + + 30 WHEN + 0 * - - 74 THEN MIN( + + CAST( - + 33 AS SIGNED ) ) WHEN - 22 THEN + - 40 END, + 77 + - COUNT( * ) * 52 + - 68 + ( 56 ) ) + + 86 AS col0
----
-296451
NULL

skipif mysql # not compatible
query II rowsort label-5648
SELECT - COALESCE ( 77, + 98 ) + + 83 + - 84 + - SUM ( + 21 ) + - 42 * - 94 + + 91 * - 60 * 55, - 77 / - NULLIF ( - CASE + + 30 WHEN + 0 * - - 74 THEN MIN ( + + CAST ( - + 33 AS INTEGER ) ) WHEN - 22 THEN + - 40 END, + 77 + - COUNT ( * ) * 52 + - 68 + ( 56 ) ) + + 86 AS col0
----
-296451
NULL

query I rowsort
SELECT - 99 col2
----
-99

query I rowsort
SELECT + 10 * + ( 91 ) - + + 30
----
880

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5651
SELECT COUNT( * ) + + - 9 * - COUNT( * ) DIV + ( + COUNT( * ) ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-5651
SELECT COUNT ( * ) + + - 9 * - COUNT ( * ) / + ( + COUNT ( * ) ) AS col0
----
10

query I rowsort
SELECT + 84 * + + 0 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5653
SELECT ALL - MIN( DISTINCT - - 47 )
----
-47

skipif mysql # not compatible
query I rowsort label-5653
SELECT ALL - MIN ( DISTINCT - - 47 )
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5654
SELECT + CAST( + 95 AS SIGNED ) col2
----
95

skipif mysql # not compatible
query I rowsort label-5654
SELECT + CAST ( + 95 AS INTEGER ) col2
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5655
SELECT + ( - - COALESCE ( + 74, - - 86 * + 22 ) ) + + 57 - + MAX( 24 ) AS col1
----
107

skipif mysql # not compatible
query I rowsort label-5655
SELECT + ( - - COALESCE ( + 74, - - 86 * + 22 ) ) + + 57 - + MAX ( 24 ) AS col1
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-5656
SELECT 2 * 99 + - + 25 + - + MIN( DISTINCT - 7 )
----
180

skipif mysql # not compatible
query I rowsort label-5656
SELECT 2 * 99 + - + 25 + - + MIN ( DISTINCT - 7 )
----
180

query II rowsort
SELECT DISTINCT - - 53 + - + 48 AS col1, ( + 43 )
----
5
43

query I rowsort
SELECT ALL 3 * + 60 + + - 48 AS col1
----
132

query I rowsort
SELECT - + 94 AS col2
----
-94

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

query II rowsort
SELECT ALL 69 AS col0, 39 * - 58 AS col0
----
69
-2262

query I rowsort
SELECT DISTINCT 1 * 16 AS col0
----
16

query I rowsort
SELECT DISTINCT - 38 + + + 95 AS col2
----
57

query I rowsort
SELECT 1 * ( - + 72 ) AS col1
----
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-5665
SELECT NULLIF ( NULLIF ( + NULLIF ( - 31, - 93 * + 14 + MIN( + 55 ) ), - - 72 ), + 39 * CASE - - 54 WHEN 50 / - - 80 + - + ( - 94 ) + - + MIN( + 3 ) + - 19 + - + COUNT( * ) * - 20 * 15 / - 86 * 33 THEN ( + 81 ) * - ( 47 ) - - - 43 ELSE NULL END / + 97 * COUNT( * ) * - 54 * + 37 + - COUNT( * ) ) - - 6 AS col0, + 55
----
-25
55

skipif mysql # not compatible
query II rowsort label-5665
SELECT NULLIF ( NULLIF ( + NULLIF ( - 31, - 93 * + 14 + MIN ( + 55 ) ), - - 72 ), + 39 * CASE - - 54 WHEN 50 / - - 80 + - + ( - 94 ) + - + MIN ( + 3 ) + - 19 + - + COUNT ( * ) * - 20 * 15 / - 86 * 33 THEN ( + 81 ) * - ( 47 ) - - - 43 ELSE NULL END / + 97 * COUNT ( * ) * - 54 * + 37 + - COUNT ( * ) ) - - 6 AS col0, + 55
----
-25
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5666
SELECT ALL MIN( 29 )
----
29

skipif mysql # not compatible
query I rowsort label-5666
SELECT ALL MIN ( 29 )
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5667
SELECT DISTINCT 65 * + 42 DIV - COUNT( ALL + - 93 ) AS col2
----
-2730

skipif mysql # not compatible
query I rowsort label-5667
SELECT DISTINCT 65 * + 42 / - COUNT ( ALL + - 93 ) AS col2
----
-2730

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5668
SELECT MAX( + - 18 ) - - COUNT( * ) DIV - COUNT( * )
----
-19

skipif mysql # not compatible
query I rowsort label-5668
SELECT MAX ( + - 18 ) - - COUNT ( * ) / - COUNT ( * )
----
-19

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5670
SELECT ALL - 20 - COUNT( * ) AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-5670
SELECT ALL - 20 - COUNT ( * ) AS col2
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5671
SELECT ALL SUM( 86 ) DIV + ( - 67 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5671
SELECT ALL SUM ( 86 ) / + ( - 67 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5672
SELECT NULLIF ( + 14, + 67 ) * + COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-5672
SELECT NULLIF ( + 14, + 67 ) * + COUNT ( * )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5673
SELECT + MAX( + 69 ) col1
----
69

skipif mysql # not compatible
query I rowsort label-5673
SELECT + MAX ( + 69 ) col1
----
69

query I rowsort
SELECT 67 * + 26 + ( - 97 ) AS col2
----
1645

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5675
SELECT CASE - - CASE + 39 WHEN + + CAST( NULL AS DECIMAL ) THEN 36 WHEN + 75 THEN NULL END WHEN - 24 THEN NULL ELSE - 20 * - CAST( NULL AS SIGNED ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5675
SELECT CASE - - CASE + 39 WHEN + + CAST ( NULL AS REAL ) THEN 36 WHEN + 75 THEN NULL END WHEN - 24 THEN NULL ELSE - 20 * - CAST ( NULL AS INTEGER ) END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5676
SELECT 58 * NULLIF ( - COALESCE ( - - 26, - 3, - 82 ), - COUNT( * ) * + 9 - 25 + + 51 ) + - MAX( ALL + 40 ) AS col2
----
-1548

skipif mysql # not compatible
query I rowsort label-5676
SELECT 58 * NULLIF ( - COALESCE ( - - 26, - 3, - 82 ), - COUNT ( * ) * + 9 - 25 + + 51 ) + - MAX ( ALL + 40 ) AS col2
----
-1548

onlyif mysql # aggregate syntax: 
query I rowsort label-5677
SELECT ALL + - MAX( - 38 )
----
38

skipif mysql # not compatible
query I rowsort label-5677
SELECT ALL + - MAX ( - 38 )
----
38

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

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

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

query I rowsort
SELECT + + 50 * 8 col1
----
400

query I rowsort
SELECT DISTINCT + 45 * 26 AS col1
----
1170

onlyif mysql # aggregate syntax: 
query II rowsort label-5682
SELECT DISTINCT + 86 AS col2, + COUNT( * ) AS col2
----
86
1

skipif mysql # not compatible
query II rowsort label-5682
SELECT DISTINCT + 86 AS col2, + COUNT ( * ) AS col2
----
86
1

query I rowsort
SELECT + - 6 + + + 3
----
-3

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5684
SELECT + 39 * - 24 + + CASE - + 98 WHEN - 52 / - - CASE - + 50 WHEN + - 29 THEN + + CAST( NULL AS DECIMAL ) / + - 81 / - 8 END / + + NULLIF ( 88, + 53 ) - + + CAST( NULL AS SIGNED ) + 93 THEN NULL ELSE + - 0 END AS col0
----
-936

skipif mysql # not compatible
query I rowsort label-5684
SELECT + 39 * - 24 + + CASE - + 98 WHEN - 52 / - - CASE - + 50 WHEN + - 29 THEN + + CAST ( NULL AS REAL ) / + - 81 / - 8 END / + + NULLIF ( 88, + 53 ) - + + CAST ( NULL AS INTEGER ) + 93 THEN NULL ELSE + - 0 END AS col0
----
-936

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5686
SELECT + COUNT( 95 ) * + 3 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-5686
SELECT + COUNT ( 95 ) * + 3 AS col2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5687
SELECT + 51 DIV - - 69 * + 66 + 48 + + + 1 AS col0
----
49

skipif mysql # not compatible
query I rowsort label-5687
SELECT + 51 / - - 69 * + 66 + 48 + + + 1 AS col0
----
49

query II rowsort
SELECT DISTINCT + 66, - 8 AS col0
----
66
-8

query I rowsort
SELECT DISTINCT - 23 * - 43 + - 40 - - + 61
----
1010

onlyif mysql # aggregate syntax: 
query I rowsort label-5690
SELECT ALL CASE + 29 WHEN + + COUNT( + 1 ) THEN - 26 END * - + ( + 83 ) + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-5690
SELECT ALL CASE + 29 WHEN + + COUNT ( + 1 ) THEN - 26 END * - + ( + 83 ) + 41
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5691
SELECT ALL + - 4 AS col0, COUNT( ALL 98 ) DIV - - COUNT( * ) - - 93 + + 12 * 29 * - - COUNT( * ) col2
----
-4
442

skipif mysql # not compatible
query II rowsort label-5691
SELECT ALL + - 4 AS col0, COUNT ( ALL 98 ) / - - COUNT ( * ) - - 93 + + 12 * 29 * - - COUNT ( * ) col2
----
-4
442

onlyif mysql # DIV for integer division: 
query I rowsort label-5692
SELECT DISTINCT 9 DIV - NULLIF ( 54, - 93 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-5692
SELECT DISTINCT 9 / - NULLIF ( 54, - 93 ) col0
----
0

query I rowsort
SELECT ALL + 79 * - COALESCE ( - + 17, + - 72 ) AS col2
----
1343

query II rowsort
SELECT ALL - 68 * 65 - 83, 47 + - ( 26 ) AS col2
----
-4503
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5695
SELECT + + 88 + - 67 - COUNT( ALL 81 ) * - 5 + - ( - 60 ) + + 15 * - - 69 AS col0
----
1121

skipif mysql # not compatible
query I rowsort label-5695
SELECT + + 88 + - 67 - COUNT ( ALL 81 ) * - 5 + - ( - 60 ) + + 15 * - - 69 AS col0
----
1121

onlyif mysql # aggregate syntax: 
query II rowsort label-5696
SELECT + COUNT( * ) * + + 79, 89 + 36 AS col2
----
79
125

skipif mysql # not compatible
query II rowsort label-5696
SELECT + COUNT ( * ) * + + 79, 89 + 36 AS col2
----
79
125

onlyif mysql # aggregate syntax: 
query I rowsort label-5697
SELECT ALL MAX( 26 ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-5697
SELECT ALL MAX ( 26 ) AS col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5698
SELECT + 0 * MIN( DISTINCT + 71 ) + - 24 AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-5698
SELECT + 0 * MIN ( DISTINCT + 71 ) + - 24 AS col1
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5699
SELECT - CAST( NULL AS SIGNED ) + - - 36 * 54 * - 52
----
NULL

skipif mysql # not compatible
query I rowsort label-5699
SELECT - CAST ( NULL AS INTEGER ) + - - 36 * 54 * - 52
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5700
SELECT - SUM( + 63 ) * + + 88 * 27 * + CASE NULLIF ( + COUNT( * ), + 66 + 86 / + 7 ) WHEN - + CASE - CASE + - 96 WHEN NULLIF ( 74, - 88 ) THEN NULL WHEN - 76 + - 69 + + + COUNT( * ) * + 80 / + 33 THEN - ( + + 56 ) ELSE + + 23 END WHEN + ( CAST( - 2 AS SIGNED ) ) THEN NULL ELSE + + COUNT( * ) END * + + 72 THEN NULL WHEN 41 THEN + ( COUNT( * ) ) * - - 77 - - - 36 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5700
SELECT - SUM ( + 63 ) * + + 88 * 27 * + CASE NULLIF ( + COUNT ( * ), + 66 + 86 / + 7 ) WHEN - + CASE - CASE + - 96 WHEN NULLIF ( 74, - 88 ) THEN NULL WHEN - 76 + - 69 + + + COUNT ( * ) * + 80 / + 33 THEN - ( + + 56 ) ELSE + + 23 END WHEN + ( CAST ( - 2 AS INTEGER ) ) THEN NULL ELSE + + COUNT ( * ) END * + + 72 THEN NULL WHEN 41 THEN + ( COUNT ( * ) ) * - - 77 - - - 36 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5701
SELECT DISTINCT MAX( + 89 ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-5701
SELECT DISTINCT MAX ( + 89 ) AS col0
----
89

query I rowsort
SELECT DISTINCT NULLIF ( - 75, - 74 )
----
-75

query I rowsort
SELECT - 35 * 46 AS col0
----
-1610

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5704
SELECT - 47 AS col2, CAST( NULL AS SIGNED ) - 67 + 37 - + ( 66 ) + + + 89
----
-47
NULL

skipif mysql # not compatible
query II rowsort label-5704
SELECT - 47 AS col2, CAST ( NULL AS INTEGER ) - 67 + 37 - + ( 66 ) + + + 89
----
-47
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5705
SELECT - 52 + - NULLIF ( - COUNT( * ), - 68 )
----
-51

skipif mysql # not compatible
query I rowsort label-5705
SELECT - 52 + - NULLIF ( - COUNT ( * ), - 68 )
----
-51

query I rowsort
SELECT ALL ( + 59 ) AS col2
----
59

query I rowsort
SELECT + 28 + 61 AS col0
----
89

query II rowsort
SELECT - 4, 96 + - 88 + - + 76 AS col2
----
-4
-68

query I rowsort
SELECT - 99 * - 12 * + 19
----
22572

onlyif mysql # aggregate syntax: 
query I rowsort label-5710
SELECT + 5 + - COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-5710
SELECT + 5 + - COUNT ( * )
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5711
SELECT ALL CAST( - 10 AS SIGNED ) col1
----
-10

skipif mysql # not compatible
query I rowsort label-5711
SELECT ALL CAST ( - 10 AS INTEGER ) col1
----
-10

query II rowsort
SELECT 33 AS col0, COALESCE ( + 82, - - 92 ) + + 99
----
33
181

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

skipif mysql # not compatible
query I rowsort label-5713
SELECT + COUNT ( * ) / + - ( 35 ) col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5714
SELECT + + 37, - COUNT( * ) AS col2
----
37
-1

skipif mysql # not compatible
query II rowsort label-5714
SELECT + + 37, - COUNT ( * ) AS col2
----
37
-1

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5716
SELECT + + COUNT( * ) / 5 - - 4 - + - COALESCE ( CAST( + 92 AS DECIMAL ), NULLIF ( 67, + 15 ) * - - ( - 54 ) * ( 42 ) + - 40, 16 ) / ( 67 ) * + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5716
SELECT + + COUNT ( * ) / 5 - - 4 - + - COALESCE ( CAST ( + 92 AS REAL ), NULLIF ( 67, + 15 ) * - - ( - 54 ) * ( 42 ) + - 40, 16 ) / ( 67 ) * + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

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

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

query I rowsort
SELECT + 39 * 78
----
3042

onlyif mysql # DIV for integer division: 
query I rowsort label-5719
SELECT ALL 8 DIV 31 + + NULLIF ( + 1, 5 )
----
1

skipif mysql # not compatible
query I rowsort label-5719
SELECT ALL 8 / 31 + + NULLIF ( + 1, 5 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5720
SELECT + MAX( DISTINCT + - 16 ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-5720
SELECT + MAX ( DISTINCT + - 16 ) AS col0
----
-16

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5722
SELECT + 83 AS col2, - MIN( DISTINCT - 12 ) + + CASE + - COALESCE ( + ( + 48 ), - - 42 * 1, - 22 ) WHEN - + 38 / - + COUNT( * ) THEN - 36 END AS col0
----
83
NULL

skipif mysql # not compatible
query II rowsort label-5722
SELECT + 83 AS col2, - MIN ( DISTINCT - 12 ) + + CASE + - COALESCE ( + ( + 48 ), - - 42 * 1, - 22 ) WHEN - + 38 / - + COUNT ( * ) THEN - 36 END AS col0
----
83
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5723
SELECT - CASE + 81 WHEN 44 THEN + 42 ELSE NULL END AS col1, 36 * 57 * COUNT( * ) AS col0
----
NULL
2052

skipif mysql # not compatible
query II rowsort label-5723
SELECT - CASE + 81 WHEN 44 THEN + 42 ELSE NULL END AS col1, 36 * 57 * COUNT ( * ) AS col0
----
NULL
2052

query I rowsort
SELECT ALL - 33 * - + 20 + - 98 + 21 * + + 6 * + ( + 62 ) * - 63 + - - 58
----
-491536

onlyif mysql # aggregate syntax: 
query I rowsort label-5725
SELECT + 5 * - 95 + + + MIN( ALL + 48 ) + - - 24 AS col1
----
-403

skipif mysql # not compatible
query I rowsort label-5725
SELECT + 5 * - 95 + + + MIN ( ALL + 48 ) + - - 24 AS col1
----
-403

query II rowsort
SELECT + 84 AS col0, - 18 - 0 + + - 19 + 2 * + 8
----
84
-21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5727
SELECT DISTINCT + 14 AS col2, + CAST( - 31 AS SIGNED ) col0
----
14
-31

skipif mysql # not compatible
query II rowsort label-5727
SELECT DISTINCT + 14 AS col2, + CAST ( - 31 AS INTEGER ) col0
----
14
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-5728
SELECT DISTINCT ( - COUNT( * ) ) * - 6 + 25 AS col2
----
31

skipif mysql # not compatible
query I rowsort label-5728
SELECT DISTINCT ( - COUNT ( * ) ) * - 6 + 25 AS col2
----
31

query I rowsort
SELECT + - ( 15 ) AS col1
----
-15

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5731
SELECT + 40 AS col0, - 87 + + COUNT( * )
----
40
-86

skipif mysql # not compatible
query II rowsort label-5731
SELECT + 40 AS col0, - 87 + + COUNT ( * )
----
40
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5732
SELECT + ( - CAST( NULL AS SIGNED ) ) * 23 * + 16 + 59 * + 60 / - + 58
----
NULL

skipif mysql # not compatible
query I rowsort label-5732
SELECT + ( - CAST ( NULL AS INTEGER ) ) * 23 * + 16 + 59 * + 60 / - + 58
----
NULL

query I rowsort
SELECT ALL + - NULLIF ( - 69, - 8 * - + 30 + + + 84 + - + 78 * - 6 + - 5 * - + 88 ) AS col1
----
69

query I rowsort
SELECT + COALESCE ( - 69, + - 56 ) * 15 AS col1
----
-1035

onlyif mysql # aggregate syntax: 
query I rowsort label-5735
SELECT - 18 + - + ( - 73 ) + - - 57 * - COUNT( * ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-5735
SELECT - 18 + - + ( - 73 ) + - - 57 * - COUNT ( * ) AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5736
SELECT ALL MIN( - - 27 )
----
27

skipif mysql # not compatible
query I rowsort label-5736
SELECT ALL MIN ( - - 27 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5737
SELECT ALL COUNT( * ) * + 49 - - - 71 AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-5737
SELECT ALL COUNT ( * ) * + 49 - - - 71 AS col1
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5738
SELECT CASE 74 WHEN - - 91 / - - 21 * + CAST( NULL AS SIGNED ) + + 38 THEN NULL WHEN - 47 THEN + 72 / - 25 WHEN 16 * - 57 - + CAST( NULL AS SIGNED ) * - 73 THEN + + ( - + ( - CASE + ( 36 ) WHEN 74 THEN NULL WHEN - 94 THEN - 21 + - 73 END ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5738
SELECT CASE 74 WHEN - - 91 / - - 21 * + CAST ( NULL AS INTEGER ) + + 38 THEN NULL WHEN - 47 THEN + 72 / - 25 WHEN 16 * - 57 - + CAST ( NULL AS INTEGER ) * - 73 THEN + + ( - + ( - CASE + ( 36 ) WHEN 74 THEN NULL WHEN - 94 THEN - 21 + - 73 END ) ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5739
SELECT + CAST( 88 AS SIGNED ) - + - 7 DIV + MIN( DISTINCT + 55 ) - + 32 + + 27 - 55 * COALESCE ( + - NULLIF ( MIN( + 74 ), - 40 ), + 34 ) * + - 2 * - 7
----
57063

skipif mysql # not compatible
query I rowsort label-5739
SELECT + CAST ( 88 AS INTEGER ) - + - 7 / + MIN ( DISTINCT + 55 ) - + 32 + + 27 - 55 * COALESCE ( + - NULLIF ( MIN ( + 74 ), - 40 ), + 34 ) * + - 2 * - 7
----
57063

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

skipif mysql # not compatible
query I rowsort label-5740
SELECT COUNT ( - 61 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5741
SELECT ALL COUNT( DISTINCT - 27 ) DIV - MIN( - 38 )
----
0

skipif mysql # not compatible
query I rowsort label-5741
SELECT ALL COUNT ( DISTINCT - 27 ) / - MIN ( - 38 )
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5743
SELECT - 35 * + COUNT( * ) * + + 39
----
-1365

skipif mysql # not compatible
query I rowsort label-5743
SELECT - 35 * + COUNT ( * ) * + + 39
----
-1365

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5744
SELECT + CAST( NULL AS SIGNED ) * + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-5744
SELECT + CAST ( NULL AS INTEGER ) * + 10
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5745
SELECT - 11 * + COUNT( * ) AS col1, + 91 * MAX( - 78 ) AS col0
----
-11
-7098

skipif mysql # not compatible
query II rowsort label-5745
SELECT - 11 * + COUNT ( * ) AS col1, + 91 * MAX ( - 78 ) AS col0
----
-11
-7098

query I rowsort
SELECT ALL COALESCE ( + + 94, + NULLIF ( - - 34, - 72 ) * + 76, - ( 46 ) * - 53 + 68 + + 28 ) AS col1
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-5747
SELECT 10 DIV - + 85
----
0

skipif mysql # not compatible
query I rowsort label-5747
SELECT 10 / - + 85
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5748
SELECT 45 * CASE + ( - - 92 ) WHEN - 26 * - 45 * - + 63 THEN - 23 * + COUNT( * ) + + COALESCE ( + - 24, - 59 * - 23 + 13 + - - ( + + 56 ) + + 2 * - 99 ) WHEN + NULLIF ( - - 66, + - NULLIF ( + 50, - + 11 ) * + - 63 + - 13 ) + - 87 THEN + 21 * + 92 * + + COUNT( * ) + COUNT( * ) DIV + - CAST( NULL AS SIGNED ) ELSE + 78 END AS col1, 57 + ( + COUNT( * ) )
----
3510
58

skipif mysql # not compatible
query II rowsort label-5748
SELECT 45 * CASE + ( - - 92 ) WHEN - 26 * - 45 * - + 63 THEN - 23 * + COUNT ( * ) + + COALESCE ( + - 24, - 59 * - 23 + 13 + - - ( + + 56 ) + + 2 * - 99 ) WHEN + NULLIF ( - - 66, + - NULLIF ( + 50, - + 11 ) * + - 63 + - 13 ) + - 87 THEN + 21 * + 92 * + + COUNT ( * ) + COUNT ( * ) / + - CAST ( NULL AS INTEGER ) ELSE + 78 END AS col1, 57 + ( + COUNT ( * ) )
----
3510
58

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

query I rowsort
SELECT ALL - 4 + 21
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5751
SELECT ALL - COALESCE ( - - CASE + 37 WHEN COUNT( * ) THEN - + 9 DIV + CAST( + 42 AS SIGNED ) + + 84 + + 65 + + 53 * + + CAST( NULL AS SIGNED ) * 15 * 19 WHEN - 93 * - + 98 THEN NULL END, + COUNT( * ) ) + - - 99, 41 * 51 AS col1
----
98
2091

skipif mysql # not compatible
query II rowsort label-5751
SELECT ALL - COALESCE ( - - CASE + 37 WHEN COUNT ( * ) THEN - + 9 / + CAST ( + 42 AS INTEGER ) + + 84 + + 65 + + 53 * + + CAST ( NULL AS INTEGER ) * 15 * 19 WHEN - 93 * - + 98 THEN NULL END, + COUNT ( * ) ) + - - 99, 41 * 51 AS col1
----
98
2091

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5752
SELECT CAST( NULL AS SIGNED ) * - - 52 * 48
----
NULL

skipif mysql # not compatible
query I rowsort label-5752
SELECT CAST ( NULL AS INTEGER ) * - - 52 * 48
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5753
SELECT ALL + 39 + - 14 AS col1, - 8 * + ( CASE - - 54 WHEN + 83 THEN CASE + 69 WHEN + 97 THEN + - 22 * + SUM( + 78 ) + - - 47 WHEN - 11 THEN NULL END * - COUNT( * ) ELSE NULL END ) AS col1
----
25
NULL

skipif mysql # not compatible
query II rowsort label-5753
SELECT ALL + 39 + - 14 AS col1, - 8 * + ( CASE - - 54 WHEN + 83 THEN CASE + 69 WHEN + 97 THEN + - 22 * + SUM ( + 78 ) + - - 47 WHEN - 11 THEN NULL END * - COUNT ( * ) ELSE NULL END ) AS col1
----
25
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5755
SELECT - SUM( ALL + 89 ) + 33
----
-56

skipif mysql # not compatible
query I rowsort label-5755
SELECT - SUM ( ALL + 89 ) + 33
----
-56

query I rowsort
SELECT 98 - + 94 col2
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-5757
SELECT - 37 * + + COALESCE ( COALESCE ( - - 80, - 45 ), - + 62 ) DIV 83 DIV 77 + 13 AS col1
----
13

skipif mysql # not compatible
query I rowsort label-5757
SELECT - 37 * + + COALESCE ( COALESCE ( - - 80, - 45 ), - + 62 ) / 83 / 77 + 13 AS col1
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-5758
SELECT - 93 DIV - 75 + 61 + + 25 AS col1
----
87

skipif mysql # not compatible
query I rowsort label-5758
SELECT - 93 / - 75 + 61 + + 25 AS col1
----
87

query I rowsort
SELECT + 67 AS col2
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5760
SELECT ALL + 34 * - - COUNT( * ) DIV - 52
----
0

skipif mysql # not compatible
query I rowsort label-5760
SELECT ALL + 34 * - - COUNT ( * ) / - 52
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5761
SELECT DISTINCT - MAX( ALL - 70 ) + MIN( ALL + + 27 ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-5761
SELECT DISTINCT - MAX ( ALL - 70 ) + MIN ( ALL + + 27 ) AS col0
----
97

query I rowsort
SELECT ALL - - 42
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5763
SELECT ALL - NULLIF ( - 24, - CAST( NULL AS SIGNED ) ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-5763
SELECT ALL - NULLIF ( - 24, - CAST ( NULL AS INTEGER ) ) AS col2
----
24

query I rowsort
SELECT ALL - 43 + - 68 + + 63 * 53 AS col0
----
3228

query I rowsort
SELECT ALL 69 - + 32 * + + 63
----
-1947

query I rowsort
SELECT 46 * + 41 + + 66 + + + 53
----
2005

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

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

query I rowsort
SELECT + COALESCE ( + + 3, + 22 )
----
3

query I rowsort
SELECT ( 68 ) * + 87
----
5916

onlyif mysql # aggregate syntax: 
query I rowsort label-5770
SELECT DISTINCT - 79 * COUNT( * ) * + - 89 AS col0
----
7031

skipif mysql # not compatible
query I rowsort label-5770
SELECT DISTINCT - 79 * COUNT ( * ) * + - 89 AS col0
----
7031

query I rowsort
SELECT DISTINCT - ( + 82 ) col2
----
-82

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5775
SELECT ALL 33 AS col1, 99 DIV - CAST( 9 AS SIGNED )
----
33
-11

skipif mysql # not compatible
query II rowsort label-5775
SELECT ALL 33 AS col1, 99 / - CAST ( 9 AS INTEGER )
----
33
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5776
SELECT NULLIF ( - - 8, COUNT( * ) ) * MAX( ALL - - CAST( NULL AS SIGNED ) ) * 62 * + + 62 * - 55
----
NULL

skipif mysql # not compatible
query I rowsort label-5776
SELECT NULLIF ( - - 8, COUNT ( * ) ) * MAX ( ALL - - CAST ( NULL AS INTEGER ) ) * 62 * + + 62 * - 55
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5777
SELECT CAST ( NULL AS INTEGER ) * - 42 AS col1
----
NULL

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

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

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

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

query I rowsort
SELECT ALL 99 + 2 AS col2
----
101

onlyif mysql # DIV for integer division: 
query I rowsort label-5781
SELECT ALL + 72 + - ( - 73 ) DIV 64 DIV 71 * + ( - - ( + 97 ) ) DIV 85 AS col2
----
72

skipif mysql # not compatible
query I rowsort label-5781
SELECT ALL + 72 + - ( - 73 ) / 64 / 71 * + ( - - ( + 97 ) ) / 85 AS col2
----
72

query I rowsort
SELECT COALESCE ( - 46, + 78 ) + - 5
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5783
SELECT ALL COUNT( 66 ) + + 25 DIV - ( - 26 ) * COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-5783
SELECT ALL COUNT ( 66 ) + + 25 / - ( - 26 ) * COUNT ( * )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5784
SELECT ALL 34 * - ( + 27 ) AS col2, + 96 * + - COALESCE ( + 98, + 43 DIV + - COUNT( * ) ) AS col0
----
-918
-9408

skipif mysql # not compatible
query II rowsort label-5784
SELECT ALL 34 * - ( + 27 ) AS col2, + 96 * + - COALESCE ( + 98, + 43 / + - COUNT ( * ) ) AS col0
----
-918
-9408

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5785
SELECT 45 DIV MIN( ALL + - 6 ) * - - 5 AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-5785
SELECT 45 / MIN ( ALL + - 6 ) * - - 5 AS col1
----
-35

query I rowsort
SELECT ALL - 99 + - 44
----
-143

onlyif mysql # aggregate syntax: 
query II rowsort label-5787
SELECT - 11, MIN( DISTINCT - 51 ) AS col1
----
-11
-51

skipif mysql # not compatible
query II rowsort label-5787
SELECT - 11, MIN ( DISTINCT - 51 ) AS col1
----
-11
-51

query I rowsort
SELECT ALL - + 24 + - + ( + 46 ) AS col0
----
-70

query I rowsort
SELECT + 60 * + 85
----
5100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5790
SELECT + 34 + - 64 - - + COUNT( * ) + - + 35 * - COALESCE ( - 50, + COUNT( DISTINCT ( 57 ) ) ) DIV CASE + SUM( DISTINCT - 56 ) WHEN + CAST( + 30 AS SIGNED ) THEN - 66 WHEN + 79 + COUNT( * ) THEN - 18 END, NULLIF ( 19, MIN( DISTINCT - 36 ) ) DIV + 51 AS col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-5790
SELECT + 34 + - 64 - - + COUNT ( * ) + - + 35 * - COALESCE ( - 50, + COUNT ( DISTINCT ( 57 ) ) ) / CASE + SUM ( DISTINCT - 56 ) WHEN + CAST ( + 30 AS INTEGER ) THEN - 66 WHEN + 79 + COUNT ( * ) THEN - 18 END, NULLIF ( 19, MIN ( DISTINCT - 36 ) ) / + 51 AS col0
----
NULL
0

query I rowsort
SELECT ALL - ( - 31 ) AS col1
----
31

query I rowsort
SELECT ALL 57 + - 76 - - + 8 AS col0
----
-11

query II rowsort
SELECT + + 38, - 52 * + 13 AS col1
----
38
-676

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5794
SELECT ALL + COUNT( - - 55 ) * + 15 * - - ( - CASE + SUM( DISTINCT + 42 ) WHEN - + 2 THEN NULL WHEN + 17 THEN NULL ELSE - - 63 / COUNT( * ) + + CAST( NULL AS SIGNED ) END ) * - 41 * - COUNT( * ) / + - 96 - + COUNT( * ) - - 9 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5794
SELECT ALL + COUNT ( - - 55 ) * + 15 * - - ( - CASE + SUM ( DISTINCT + 42 ) WHEN - + 2 THEN NULL WHEN + 17 THEN NULL ELSE - - 63 / COUNT ( * ) + + CAST ( NULL AS INTEGER ) END ) * - 41 * - COUNT ( * ) / + - 96 - + COUNT ( * ) - - 9 AS col0
----
NULL

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

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

query II rowsort
SELECT - 96 AS col1, - 52 - + 64 AS col1
----
-96
-116

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

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

query I rowsort
SELECT + 76 * 24 AS col1
----
1824

query II rowsort
SELECT + - 63 AS col0, 27 AS col0
----
-63
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5801
SELECT + NULLIF ( COUNT( * ), - - 2 * - + 44 )
----
1

skipif mysql # not compatible
query I rowsort label-5801
SELECT + NULLIF ( COUNT ( * ), - - 2 * - + 44 )
----
1

query II rowsort
SELECT 1 AS col0, + 65 AS col1
----
1
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5803
SELECT + - CASE + 41 WHEN + + COUNT( * ) THEN + - ( COUNT( * ) ) * 61 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5803
SELECT + - CASE + 41 WHEN + + COUNT ( * ) THEN + - ( COUNT ( * ) ) * 61 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5804
SELECT 40 - - - COALESCE ( 12, 26 DIV 60, + 53 DIV 65 + CAST( NULL AS SIGNED ) * - + 53 ) + + + 89 DIV - + 37
----
26

skipif mysql # not compatible
query I rowsort label-5804
SELECT 40 - - - COALESCE ( 12, 26 / 60, + 53 / 65 + CAST ( NULL AS INTEGER ) * - + 53 ) + + + 89 / - + 37
----
26

query I rowsort
SELECT ALL - - 43
----
43

query I rowsort
SELECT DISTINCT - 29 * - 48
----
1392

query I rowsort
SELECT DISTINCT - 72 col0
----
-72

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5808
SELECT DISTINCT - NULLIF ( 75, + 11 * + 55 * + CAST( NULL AS DECIMAL ) + + 87 + 51 * 28 ) AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-5808
SELECT DISTINCT - NULLIF ( 75, + 11 * + 55 * + CAST ( NULL AS REAL ) + + 87 + 51 * 28 ) AS col1
----
-75

query I rowsort
SELECT ALL - ( - + 21 ) col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5810
SELECT DISTINCT - 48 + - + COUNT( * )
----
-49

skipif mysql # not compatible
query I rowsort label-5810
SELECT DISTINCT - 48 + - + COUNT ( * )
----
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-5811
SELECT 12 * 67 * 17 + 66 AS col0, + ( - 46 ) * + COUNT( ALL + 97 )
----
13734
-46

skipif mysql # not compatible
query II rowsort label-5811
SELECT 12 * 67 * 17 + 66 AS col0, + ( - 46 ) * + COUNT ( ALL + 97 )
----
13734
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-5812
SELECT - 23 DIV 94
----
0

skipif mysql # not compatible
query I rowsort label-5812
SELECT - 23 / 94
----
0

query I rowsort
SELECT + 29 + - - 27 + + 74 * - 59 + - 31
----
-4341

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5815
SELECT DISTINCT CAST( NULL AS SIGNED ) * - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5815
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5816
SELECT - 93 DIV - - SUM( 22 )
----
-4

skipif mysql # not compatible
query I rowsort label-5816
SELECT - 93 / - - SUM ( 22 )
----
-4

query I rowsort
SELECT DISTINCT - ( + + 77 ) + 41 AS col1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-5818
SELECT ALL CASE + 40 WHEN 76 THEN + COUNT( * ) + - 60 * + 18 WHEN - 32 * - 72 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5818
SELECT ALL CASE + 40 WHEN 76 THEN + COUNT ( * ) + - 60 * + 18 WHEN - 32 * - 72 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT 81 + + 7 - - 18
----
106

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

query I rowsort
SELECT - 34 * 45 AS col2
----
-1530

query I rowsort
SELECT + 39 * + - 9
----
-351

query I rowsort
SELECT 81 col0
----
81

query I rowsort
SELECT + 58 - + 7 * + 23 * - 83 * - 42
----
-561188

onlyif mysql # aggregate syntax: 
query I rowsort label-5825
SELECT + COUNT( + - 32 ) - - + 12
----
13

skipif mysql # not compatible
query I rowsort label-5825
SELECT + COUNT ( + - 32 ) - - + 12
----
13

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5827
SELECT ALL - 96 - - + COUNT( * ) - 37 DIV 74, + 38 * + - ( + - SUM( ALL + COALESCE ( 83, 25 + 55 - - 81 ) ) ) AS col2
----
-95
3154

skipif mysql # not compatible
query II rowsort label-5827
SELECT ALL - 96 - - + COUNT ( * ) - 37 / 74, + 38 * + - ( + - SUM ( ALL + COALESCE ( 83, 25 + 55 - - 81 ) ) ) AS col2
----
-95
3154

onlyif mysql # aggregate syntax: 
query I rowsort label-5828
SELECT + - COUNT( 17 ) * COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5828
SELECT + - COUNT ( 17 ) * COUNT ( * ) AS col0
----
-1

query I rowsort
SELECT DISTINCT - CASE WHEN NOT + 40 <= - - 26 THEN - 60 ELSE NULL END * + 55
----
3300

query I rowsort
SELECT + + 21 + + 35 + + 83 AS col2
----
139

onlyif mysql # aggregate syntax: 
query II rowsort label-5831
SELECT + + 15 - - 63 AS col2, 83 + + - 67 + CASE + 96 WHEN + 79 THEN + 64 * - AVG ( ALL - ( 27 ) ) * + - 72 - COUNT( * ) END AS col0
----
78
NULL

skipif mysql # not compatible
query II rowsort label-5831
SELECT + + 15 - - 63 AS col2, 83 + + - 67 + CASE + 96 WHEN + 79 THEN + 64 * - AVG ( ALL - ( 27 ) ) * + - 72 - COUNT ( * ) END AS col0
----
78
NULL

query II rowsort
SELECT + 12 * - - 18, ( 13 ) AS col0
----
216
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5833
SELECT ALL - MAX( - 38 ) * MAX( ALL + 83 ) * 55 - 9 + + 66 + - - CAST( 42 AS SIGNED )
----
173569

skipif mysql # not compatible
query I rowsort label-5833
SELECT ALL - MAX ( - 38 ) * MAX ( ALL + 83 ) * 55 - 9 + + 66 + - - CAST ( 42 AS INTEGER )
----
173569

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query III rowsort label-5834
SELECT + - NULLIF ( CAST( NULL AS DECIMAL ), - - ( + 87 ) + 95 ) + - - COUNT( * ) * - + 85 AS col1, - CAST( - SUM( DISTINCT + 79 ) AS SIGNED ) + - + CASE - - 4 WHEN + - NULLIF ( + 75, 13 ) + - 98 + - + 96 * - 52 + 87 * + ( - 92 ) * + 34 * 5 * - ( 29 ) * + 92 * + - 81 / NULLIF ( - CASE + 4 WHEN + + 88 THEN + 87 ELSE + CAST( + + 90 AS DECIMAL ) + 54 END, + - 35 - - + 70 ) + + 89 * + 92 + + + AVG ( DISTINCT - 11 ) THEN NULL ELSE 40 END, - 6 AS col1
----
NULL
39
-6

skipif mysql # not compatible
query III rowsort label-5834
SELECT + - NULLIF ( CAST ( NULL AS REAL ), - - ( + 87 ) + 95 ) + - - COUNT ( * ) * - + 85 AS col1, - CAST ( - SUM ( DISTINCT + 79 ) AS INTEGER ) + - + CASE - - 4 WHEN + - NULLIF ( + 75, 13 ) + - 98 + - + 96 * - 52 + 87 * + ( - 92 ) * + 34 * 5 * - ( 29 ) * + 92 * + - 81 / NULLIF ( - CASE + 4 WHEN + + 88 THEN + 87 ELSE + CAST ( + + 90 AS REAL ) + 54 END, + - 35 - - + 70 ) + + 89 * + 92 + + + AVG ( DISTINCT - 11 ) THEN NULL ELSE 40 END, - 6 AS col1
----
NULL
39
-6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5835
SELECT - - 41 - - + CAST( NULL AS DECIMAL ) + - + 35 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5835
SELECT - - 41 - - + CAST ( NULL AS REAL ) + - + 35 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5836
SELECT + 61 * 63 - + MAX( + - CAST( 3 AS SIGNED ) ) * 14 AS col0
----
3885

skipif mysql # not compatible
query I rowsort label-5836
SELECT + 61 * 63 - + MAX ( + - CAST ( 3 AS INTEGER ) ) * 14 AS col0
----
3885

query I rowsort
SELECT - 9 AS col0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5838
SELECT + - ( 45 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5838
SELECT + - ( 45 ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5839
SELECT - - 91 * - MIN( - 93 ) - - 81 AS col0
----
8544

skipif mysql # not compatible
query I rowsort label-5839
SELECT - - 91 * - MIN ( - 93 ) - - 81 AS col0
----
8544

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5840
SELECT DISTINCT + 33 * + SUM( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5840
SELECT DISTINCT + 33 * + SUM ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5841
SELECT ALL + + 4 DIV - + 86 + 18 * ( - + 8 ) AS col2
----
-144

skipif mysql # not compatible
query I rowsort label-5841
SELECT ALL + + 4 / - + 86 + 18 * ( - + 8 ) AS col2
----
-144

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

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

query I rowsort
SELECT - 15 + + + 29 + - 41
----
-27

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5846
SELECT ALL + COUNT( * ) AS col0, 27 * - 94
----
1
-2538

skipif mysql # not compatible
query II rowsort label-5846
SELECT ALL + COUNT ( * ) AS col0, 27 * - 94
----
1
-2538

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

query I rowsort
SELECT + 48 * - 19 * - + 18
----
16416

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5849
SELECT - 84 * - COUNT( * ) * - MAX( ALL - 62 ) + CASE COUNT( * ) WHEN + 10 THEN NULL ELSE + 57 * + + CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5849
SELECT - 84 * - COUNT ( * ) * - MAX ( ALL - 62 ) + CASE COUNT ( * ) WHEN + 10 THEN NULL ELSE + 57 * + + CAST ( NULL AS INTEGER ) END
----
NULL

query I rowsort
SELECT - 82 * + 18 AS col1
----
-1476

query I rowsort
SELECT NULLIF ( - 43, - 99 * 2 + - + 58 )
----
-43

query I rowsort
SELECT - 6 * - 24 * + 67 col1
----
9648

onlyif mysql # aggregate syntax: 
query I rowsort label-5853
SELECT DISTINCT - COUNT( * ) * + 87 + - CASE 14 WHEN - 71 THEN - 6 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5853
SELECT DISTINCT - COUNT ( * ) * + 87 + - CASE 14 WHEN - 71 THEN - 6 ELSE NULL END
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5856
SELECT COALESCE ( - 66, - ( + 48 ), - + COUNT( * ) * + 33 ) AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-5856
SELECT COALESCE ( - 66, - ( + 48 ), - + COUNT ( * ) * + 33 ) AS col0
----
-66

query I rowsort
SELECT ALL + ( - NULLIF ( 61, 96 * - 31 ) )
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5858
SELECT - 64 * - COALESCE ( 47, + 57 * CAST( NULL AS SIGNED ), + COALESCE ( + 90, - COUNT( * ) * 6 * - COUNT( * ) + + - 2 + 48 * - 55 ) - 67 DIV - 39 * ( - 86 ) ) - - 5 col0
----
3013

skipif mysql # not compatible
query I rowsort label-5858
SELECT - 64 * - COALESCE ( 47, + 57 * CAST ( NULL AS INTEGER ), + COALESCE ( + 90, - COUNT ( * ) * 6 * - COUNT ( * ) + + - 2 + 48 * - 55 ) - 67 / - 39 * ( - 86 ) ) - - 5 col0
----
3013

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

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

query I rowsort
SELECT ALL + 82 * + 9
----
738

query I rowsort
SELECT - 86 * 70 AS col2
----
-6020

onlyif mysql # DIV for integer division: 
query I rowsort label-5862
SELECT DISTINCT + 0 DIV + 80
----
0

skipif mysql # not compatible
query I rowsort label-5862
SELECT DISTINCT + 0 / + 80
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5863
SELECT ALL - CAST( NULL AS SIGNED ) - COALESCE ( - 52, - 98 + + 62 * 56 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5863
SELECT ALL - CAST ( NULL AS INTEGER ) - COALESCE ( - 52, - 98 + + 62 * 56 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5864
SELECT ALL MAX( DISTINCT 49 ) - 34
----
15

skipif mysql # not compatible
query I rowsort label-5864
SELECT ALL MAX ( DISTINCT 49 ) - 34
----
15

query I rowsort
SELECT DISTINCT + 64 * 48
----
3072

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5866
SELECT + 50 + COALESCE ( - 39, COUNT( * ) + 68, + 97 * 33 + 87 * COALESCE ( - COUNT( * ), 57 DIV + 50 ) )
----
11

skipif mysql # not compatible
query I rowsort label-5866
SELECT + 50 + COALESCE ( - 39, COUNT ( * ) + 68, + 97 * 33 + 87 * COALESCE ( - COUNT ( * ), 57 / + 50 ) )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5867
SELECT - SUM( + 33 )
----
-33

skipif mysql # not compatible
query I rowsort label-5867
SELECT - SUM ( + 33 )
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5868
SELECT + CAST( NULL AS SIGNED ) + + 61 / + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-5868
SELECT + CAST ( NULL AS INTEGER ) + + 61 / + 96
----
NULL

query I rowsort
SELECT + 2 + 95 AS col0
----
97

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

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

query I rowsort
SELECT + 78 + + 98
----
176

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5872
SELECT DISTINCT ( + 97 ) DIV 71 + - COUNT( 77 + 41 )
----
0

skipif mysql # not compatible
query I rowsort label-5872
SELECT DISTINCT ( + 97 ) / 71 + - COUNT ( 77 + 41 )
----
0

query I rowsort
SELECT DISTINCT NULLIF ( 86, 49 ) * 91
----
7826

query I rowsort
SELECT + 19 * + 12 AS col2
----
228

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-5875
SELECT ALL 80 DIV + ( 81 ) + 47 DIV NULLIF ( 16, + NULLIF ( + 86, + SUM( ALL + 50 ) ) * + 3 + - NULLIF ( 46, CAST( NULL AS DECIMAL ) ) ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-5875
SELECT ALL 80 / + ( 81 ) + 47 / NULLIF ( 16, + NULLIF ( + 86, + SUM ( ALL + 50 ) ) * + 3 + - NULLIF ( 46, CAST ( NULL AS REAL ) ) ) AS col2
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5876
SELECT + 92 * - COUNT( * ) - ( 75 ) DIV + 99
----
-92

skipif mysql # not compatible
query I rowsort label-5876
SELECT + 92 * - COUNT ( * ) - ( 75 ) / + 99
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-5877
SELECT DISTINCT MAX( ALL 23 ) + + 15 col0
----
38

skipif mysql # not compatible
query I rowsort label-5877
SELECT DISTINCT MAX ( ALL 23 ) + + 15 col0
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-5878
SELECT COALESCE ( 73, 24 * 94 ) DIV - 81
----
0

skipif mysql # not compatible
query I rowsort label-5878
SELECT COALESCE ( 73, 24 * 94 ) / - 81
----
0

query I rowsort
SELECT 39 * - 39
----
-1521

query I rowsort
SELECT DISTINCT - 78 col0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-5881
SELECT DISTINCT COUNT( * ) + - ( + 75 - 68 ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-5881
SELECT DISTINCT COUNT ( * ) + - ( + 75 - 68 ) AS col0
----
-6

query I rowsort
SELECT ALL 82 * + 71
----
5822

query I rowsort
SELECT 26 + - 16 AS col0
----
10

query I rowsort
SELECT - 54 * 58 - 32 AS col0
----
-3164

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

query I rowsort
SELECT DISTINCT - 68
----
-68

query I rowsort
SELECT ALL ( - ( + 88 ) ) + CASE 76 WHEN 11 + 64 THEN 46 WHEN + 82 / 2 THEN NULL WHEN 3 * 72 THEN - 77 + - NULLIF ( 76, 79 / 33 - + 93 / 3 ) ELSE 69 * 58 - - 49 * 18 END AS col0
----
4796

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5888
SELECT DISTINCT + 58 * - COALESCE ( MIN( - COALESCE ( 48, 42 DIV - 12 ) ), COUNT( * ) DIV ( - 80 ) ) AS col0
----
2784

skipif mysql # not compatible
query I rowsort label-5888
SELECT DISTINCT + 58 * - COALESCE ( MIN ( - COALESCE ( 48, 42 / - 12 ) ), COUNT ( * ) / ( - 80 ) ) AS col0
----
2784

onlyif mysql # aggregate syntax: 
query I rowsort label-5889
SELECT COUNT( * ) * - 82 col2
----
-82

skipif mysql # not compatible
query I rowsort label-5889
SELECT COUNT ( * ) * - 82 col2
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5890
SELECT CAST( NULL AS SIGNED ) + - 49 * - 85
----
NULL

skipif mysql # not compatible
query I rowsort label-5890
SELECT CAST ( NULL AS INTEGER ) + - 49 * - 85
----
NULL

query I rowsort
SELECT + 41 * + NULLIF ( + 15, - 9 * ( + 58 ) ) + - 78 col0
----
537

query I rowsort
SELECT DISTINCT + CASE + 32 WHEN + 87 THEN 89 ELSE - NULLIF ( 80, - 51 / - ( - 66 ) ) END - 47
----
-127

query I rowsort
SELECT ALL + 13 * 34
----
442

query I rowsort
SELECT 70 + 74
----
144

query I rowsort
SELECT DISTINCT CASE - 96 WHEN 75 THEN NULL WHEN - 4 / 83 THEN + 65 END * + 41 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 10 - - 49 * 3 AS col1
----
157

query I rowsort
SELECT ALL CASE 45 WHEN 6 THEN COALESCE ( - 51, - ( + 67 ) + 85 ) * - 50 WHEN 91 + 25 * + 32 THEN NULL ELSE NULL END * 85
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5898
SELECT + COUNT( 95 )
----
1

skipif mysql # not compatible
query I rowsort label-5898
SELECT + COUNT ( 95 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5899
SELECT + 45 + - 82 * + ( 31 - COUNT( * ) ) AS col0
----
-2415

skipif mysql # not compatible
query I rowsort label-5899
SELECT + 45 + - 82 * + ( 31 - COUNT ( * ) ) AS col0
----
-2415

query I rowsort
SELECT DISTINCT + 18 * + 26
----
468

query I rowsort
SELECT ( + 65 ) * 19 AS col2
----
1235

query I rowsort
SELECT + - 69 * 5 + + 16 * - 23
----
-713

query I rowsort
SELECT - 48 col1
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-5904
SELECT ALL + - 63 DIV 76
----
0

skipif mysql # not compatible
query I rowsort label-5904
SELECT ALL + - 63 / 76
----
0

query I rowsort
SELECT 0 - 17 AS col1
----
-17

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5907
SELECT DISTINCT + + 96 DIV + 14 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-5907
SELECT DISTINCT + + 96 / + 14 AS col1
----
6

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5909
SELECT ALL + - 71 DIV - 15
----
4

skipif mysql # not compatible
query I rowsort label-5909
SELECT ALL + - 71 / - 15
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5910
SELECT + 70 - 68 * - ( + 39 * + CAST( MIN( + 30 ) AS SIGNED ) )
----
79630

skipif mysql # not compatible
query I rowsort label-5910
SELECT + 70 - 68 * - ( + 39 * + CAST ( MIN ( + 30 ) AS INTEGER ) )
----
79630

onlyif mysql # aggregate syntax: 
query I rowsort label-5911
SELECT ALL COALESCE ( + 88, + 50 * COUNT( * ) + 23 )
----
88

skipif mysql # not compatible
query I rowsort label-5911
SELECT ALL COALESCE ( + 88, + 50 * COUNT ( * ) + 23 )
----
88

query I rowsort
SELECT DISTINCT + + 20 + + 75
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5913
SELECT ALL + + CASE COUNT( * ) WHEN - CASE + 49 WHEN CAST( + CAST( - 54 AS SIGNED ) AS SIGNED ) * - 20 + 31 THEN 16 * - 57 WHEN - 67 THEN ( 75 ) ELSE NULL END THEN 80 * - 5 END + - ( - 74 - 43 ) * MIN( DISTINCT + 29 * - 87 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5913
SELECT ALL + + CASE COUNT ( * ) WHEN - CASE + 49 WHEN CAST ( + CAST ( - 54 AS INTEGER ) AS INTEGER ) * - 20 + 31 THEN 16 * - 57 WHEN - 67 THEN ( 75 ) ELSE NULL END THEN 80 * - 5 END + - ( - 74 - 43 ) * MIN ( DISTINCT + 29 * - 87 )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5915
SELECT 15 - + COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-5915
SELECT 15 - + COUNT ( * )
----
14

query I rowsort
SELECT ALL 66 col1
----
66

query I rowsort
SELECT 18 + - ( + 13 ) AS col1
----
5

query I rowsort
SELECT - 19 - + 76 AS col0
----
-95

query I rowsort
SELECT 36 AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5920
SELECT 53 * + 88 * + COALESCE ( + 13 * 61, 19 * + 60 + + 62 ) + + COUNT( * )
----
3698553

skipif mysql # not compatible
query I rowsort label-5920
SELECT 53 * + 88 * + COALESCE ( + 13 * 61, 19 * + 60 + + 62 ) + + COUNT ( * )
----
3698553

query I rowsort
SELECT ALL ( 84 ) + 77
----
161

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

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

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

query I rowsort
SELECT DISTINCT - 58
----
-58

query I rowsort
SELECT 29 + + - 58 - + ( 19 ) AS col0
----
-48

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5926
SELECT NULLIF ( CAST( NULL AS DECIMAL ), - ( ( + 77 ) ) ) + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5926
SELECT NULLIF ( CAST ( NULL AS REAL ), - ( ( + 77 ) ) ) + + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5927
SELECT DISTINCT CAST( - - 99 AS SIGNED ) - 84
----
15

skipif mysql # not compatible
query I rowsort label-5927
SELECT DISTINCT CAST ( - - 99 AS INTEGER ) - 84
----
15

query I rowsort
SELECT 9 * - 50 + 86 col1
----
-364

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5929
SELECT + 37 * + + 17 * CAST( 80 * 67 AS SIGNED ) + NULLIF ( 80, 56 * + 71 + 22 )
----
3371520

skipif mysql # not compatible
query I rowsort label-5929
SELECT + 37 * + + 17 * CAST ( 80 * 67 AS INTEGER ) + NULLIF ( 80, 56 * + 71 + 22 )
----
3371520

onlyif mysql # aggregate syntax: 
query I rowsort label-5930
SELECT ( 95 ) * COUNT( * ) col0
----
95

skipif mysql # not compatible
query I rowsort label-5930
SELECT ( 95 ) * COUNT ( * ) col0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5931
SELECT + SUM( + 72 )
----
72

skipif mysql # not compatible
query I rowsort label-5931
SELECT + SUM ( + 72 )
----
72

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5933
SELECT 54 DIV - - 41
----
1

skipif mysql # not compatible
query I rowsort label-5933
SELECT 54 / - - 41
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5934
SELECT ALL 69 * + 0 DIV - COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5934
SELECT ALL 69 * + 0 / - COUNT ( * ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5935
SELECT NULLIF ( + COUNT( ALL + 20 ), + COALESCE ( - 65, 87 * ( 63 * - 3 ), - MAX( ALL - 85 ) / - NULLIF ( 84 * 97, + 98 ) ) + + COUNT( * ) * 57 ) * - 45 + 8 AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-5935
SELECT NULLIF ( + COUNT ( ALL + 20 ), + COALESCE ( - 65, 87 * ( 63 * - 3 ), - MAX ( ALL - 85 ) / - NULLIF ( 84 * 97, + 98 ) ) + + COUNT ( * ) * 57 ) * - 45 + 8 AS col1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-5936
SELECT DISTINCT - COUNT( * ) - + 10 + + 31
----
20

skipif mysql # not compatible
query I rowsort label-5936
SELECT DISTINCT - COUNT ( * ) - + 10 + + 31
----
20

query I rowsort
SELECT DISTINCT - 2
----
-2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5938
SELECT ALL - + ( CASE - 40 WHEN 52 + + CASE - 53 WHEN + 86 * COUNT( * ) THEN NULL WHEN 36 + NULLIF ( + 20, AVG ( - 97 ) ) * + 66 THEN NULL WHEN - ( 72 ) / + 17 THEN - ( + CAST( NULL AS DECIMAL ) ) ELSE ( 43 ) / + COUNT( * ) END * - ( 97 ) THEN + ( 35 ) * 37 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5938
SELECT ALL - + ( CASE - 40 WHEN 52 + + CASE - 53 WHEN + 86 * COUNT ( * ) THEN NULL WHEN 36 + NULLIF ( + 20, AVG ( - 97 ) ) * + 66 THEN NULL WHEN - ( 72 ) / + 17 THEN - ( + CAST ( NULL AS REAL ) ) ELSE ( 43 ) / + COUNT ( * ) END * - ( 97 ) THEN + ( 35 ) * 37 END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5939
SELECT + + 80 * + COUNT( * ) - 19 AS col1
----
61

skipif mysql # not compatible
query I rowsort label-5939
SELECT + + 80 * + COUNT ( * ) - 19 AS col1
----
61

query I rowsort
SELECT 5 * - 91 * 24
----
-10920

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

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

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

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

query I rowsort
SELECT + NULLIF ( + 37, 10 )
----
37

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

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

query I rowsort
SELECT ( + 28 ) * 10
----
280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5947
SELECT ALL + CASE + CAST( - COUNT( * ) AS SIGNED ) WHEN + 44 * COUNT( DISTINCT 22 ) + - 76 THEN NULL WHEN - AVG ( 50 ) THEN + 82 END + COUNT( * ) / - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-5947
SELECT ALL + CASE + CAST ( - COUNT ( * ) AS INTEGER ) WHEN + 44 * COUNT ( DISTINCT 22 ) + - 76 THEN NULL WHEN - AVG ( 50 ) THEN + 82 END + COUNT ( * ) / - 7
----
NULL

query I rowsort
SELECT 15 + + ( 46 ) AS col2
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5949
SELECT ALL - CASE 90 WHEN + 45 * 88 - - CAST( - 35 AS SIGNED ) THEN 78 WHEN + 65 * COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5949
SELECT ALL - CASE 90 WHEN + 45 * 88 - - CAST ( - 35 AS INTEGER ) THEN 78 WHEN + 65 * COUNT ( * ) THEN NULL END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5950
SELECT DISTINCT - 71 + - - COUNT ( * ) / + 73 AS col0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-5951
SELECT ALL 37 + - + 30 + 40 * COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-5951
SELECT ALL 37 + - + 30 + 40 * COUNT ( * )
----
47

query I rowsort
SELECT DISTINCT - + 56 + + - 17 AS col2
----
-73

query I rowsort
SELECT DISTINCT - 79 + + - ( 31 ) + + 7 * 23 col2
----
51

query I rowsort
SELECT ALL NULLIF ( - - 69, 3 )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5955
SELECT - + MAX( ALL 83 ) * ( + 57 )
----
-4731

skipif mysql # not compatible
query I rowsort label-5955
SELECT - + MAX ( ALL 83 ) * ( + 57 )
----
-4731

query I rowsort
SELECT - + 52 + + 95
----
43

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5958
SELECT DISTINCT - 30 + 23 - CASE WHEN NOT - 44 IS NULL THEN - 21 + 6 * ( COUNT( * ) ) END DIV - 70 AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-5958
SELECT DISTINCT - 30 + 23 - CASE WHEN NOT - 44 IS NULL THEN - 21 + 6 * ( COUNT ( * ) ) END / - 70 AS col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-5959
SELECT ALL - ( - - 97 ) + - - 51 + ( - 97 - COUNT( - 58 + + 21 ) ) * 8
----
-830

skipif mysql # not compatible
query I rowsort label-5959
SELECT ALL - ( - - 97 ) + - - 51 + ( - 97 - COUNT ( - 58 + + 21 ) ) * 8
----
-830

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5960
SELECT - 77 * - CAST( 9 AS SIGNED )
----
693

skipif mysql # not compatible
query I rowsort label-5960
SELECT - 77 * - CAST ( 9 AS INTEGER )
----
693

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5961
SELECT DISTINCT - 3 + - CASE + - 8 WHEN - 82 + 90 THEN NULL WHEN - CASE + 47 WHEN NULLIF ( - COUNT( * ), + 17 / 93 - + AVG ( 45 ) * 93 ) - - 63 THEN NULL WHEN 42 THEN CAST( NULL AS SIGNED ) ELSE 18 END THEN NULL WHEN 99 THEN ( COUNT( * ) ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5961
SELECT DISTINCT - 3 + - CASE + - 8 WHEN - 82 + 90 THEN NULL WHEN - CASE + 47 WHEN NULLIF ( - COUNT ( * ), + 17 / 93 - + AVG ( 45 ) * 93 ) - - 63 THEN NULL WHEN 42 THEN CAST ( NULL AS INTEGER ) ELSE 18 END THEN NULL WHEN 99 THEN ( COUNT ( * ) ) END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5962
SELECT DISTINCT + CASE 19 WHEN + 52 THEN - 13 * COUNT( * ) WHEN 75 * 18 THEN NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5962
SELECT DISTINCT + CASE 19 WHEN + 52 THEN - 13 * COUNT ( * ) WHEN 75 * 18 THEN NULL END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5963
SELECT ALL - 96 * - COUNT( * ) - + COUNT( * ) - - 70
----
165

skipif mysql # not compatible
query I rowsort label-5963
SELECT ALL - 96 * - COUNT ( * ) - + COUNT ( * ) - - 70
----
165

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5965
SELECT COALESCE ( + COUNT( * ), + - COUNT( DISTINCT - 86 ) * - 54 + - 88 * 7 )
----
1

skipif mysql # not compatible
query I rowsort label-5965
SELECT COALESCE ( + COUNT ( * ), + - COUNT ( DISTINCT - 86 ) * - 54 + - 88 * 7 )
----
1

query I rowsort
SELECT - 46 * - - 54 - + + 89 * - 33
----
453

query I rowsort
SELECT + NULLIF ( 65, 69 ) * 59 AS col1
----
3835

query I rowsort
SELECT ALL + 13 * + 10
----
130

query I rowsort
SELECT COALESCE ( + 37, 99, COALESCE ( - 36, + 73 ), 24 ) AS col1
----
37

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5971
SELECT - MIN( DISTINCT + ( - 38 ) ) * 32
----
1216

skipif mysql # not compatible
query I rowsort label-5971
SELECT - MIN ( DISTINCT + ( - 38 ) ) * 32
----
1216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5972
SELECT ALL + CAST( NULL AS SIGNED ) * MIN( - COALESCE ( 22, + 2 ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5972
SELECT ALL + CAST ( NULL AS INTEGER ) * MIN ( - COALESCE ( 22, + 2 ) ) col0
----
NULL

query I rowsort
SELECT - 63 - - 3 AS col1
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-5974
SELECT DISTINCT + 93, CASE NULLIF ( + 33, 77 + - 36 * - 40 ) WHEN CASE MAX( 5 ) WHEN 79 + - 13 THEN - 9 + SUM( - 47 ) ELSE + 91 * COUNT( * ) END THEN 87 + 61 WHEN 91 THEN NULL END * 37 + + 41 col0
----
93
NULL

skipif mysql # not compatible
query II rowsort label-5974
SELECT DISTINCT + 93, CASE NULLIF ( + 33, 77 + - 36 * - 40 ) WHEN CASE MAX ( 5 ) WHEN 79 + - 13 THEN - 9 + SUM ( - 47 ) ELSE + 91 * COUNT ( * ) END THEN 87 + 61 WHEN 91 THEN NULL END * 37 + + 41 col0
----
93
NULL

query I rowsort
SELECT ALL 51 * - - 41 AS col2
----
2091

onlyif mysql # aggregate syntax: 
query I rowsort label-5976
SELECT + 57 * NULLIF ( 85, 36 + COUNT( + 22 ) )
----
4845

skipif mysql # not compatible
query I rowsort label-5976
SELECT + 57 * NULLIF ( 85, 36 + COUNT ( + 22 ) )
----
4845

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

query I rowsort
SELECT ALL + NULLIF ( + ( 2 ), - 16 + - 84 )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5979
SELECT ALL - 68 * - - CASE + 96 WHEN CAST( NULL AS SIGNED ) * - 68 + 53 THEN 19 ELSE NULL END * 7
----
NULL

skipif mysql # not compatible
query I rowsort label-5979
SELECT ALL - 68 * - - CASE + 96 WHEN CAST ( NULL AS INTEGER ) * - 68 + 53 THEN 19 ELSE NULL END * 7
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5980
SELECT ALL - COALESCE ( - 49, + 11, 85 * 12 ) * 91 + + COUNT( * )
----
4460

skipif mysql # not compatible
query I rowsort label-5980
SELECT ALL - COALESCE ( - 49, + 11, 85 * 12 ) * 91 + + COUNT ( * )
----
4460

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5981
SELECT + + CASE - + COUNT( * ) WHEN - - CAST( NULL AS SIGNED ) THEN 53 + COUNT( + ( + 44 ) + 14 ) ELSE 42 + + 7 END AS col1
----
49

skipif mysql # not compatible
query I rowsort label-5981
SELECT + + CASE - + COUNT ( * ) WHEN - - CAST ( NULL AS INTEGER ) THEN 53 + COUNT ( + ( + 44 ) + 14 ) ELSE 42 + + 7 END AS col1
----
49

query I rowsort
SELECT + ( + + 47 ) * + + 64 + + 67 AS col0
----
3075

query I rowsort
SELECT DISTINCT 5 col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5984
SELECT ALL - 3 * - ( - + COUNT( DISTINCT NULLIF ( 4, 58 ) ) ) + + NULLIF ( - 17, + 77 * + COALESCE ( ( 91 ), CASE 70 WHEN + 39 + 68 THEN NULL ELSE + MIN( ALL - 30 ) * - MIN( DISTINCT - 78 * + 57 ) END ) + 66 ) + + COUNT( * ) * + 32 AS col2
----
12

skipif mysql # not compatible
query I rowsort label-5984
SELECT ALL - 3 * - ( - + COUNT ( DISTINCT NULLIF ( 4, 58 ) ) ) + + NULLIF ( - 17, + 77 * + COALESCE ( ( 91 ), CASE 70 WHEN + 39 + 68 THEN NULL ELSE + MIN ( ALL - 30 ) * - MIN ( DISTINCT - 78 * + 57 ) END ) + 66 ) + + COUNT ( * ) * + 32 AS col2
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-5985
SELECT ALL 82 DIV + - 21
----
-3

skipif mysql # not compatible
query I rowsort label-5985
SELECT ALL 82 / + - 21
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5986
SELECT DISTINCT 26 + + - COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-5986
SELECT DISTINCT 26 + + - COUNT ( * )
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5987
SELECT + + 61 + + CAST( 25 AS SIGNED )
----
86

skipif mysql # not compatible
query I rowsort label-5987
SELECT + + 61 + + CAST ( 25 AS INTEGER )
----
86

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5989
SELECT ALL + 92 DIV 32 * - 45 + 30 AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-5989
SELECT ALL + 92 / 32 * - 45 + 30 AS col0
----
-60

query I rowsort
SELECT - 17 col2
----
-17

query I rowsort
SELECT - + NULLIF ( - 48, + - 48 * - 18 + COALESCE ( - 44 + 69, - 67, + 40 + 12 * 0, 55 + 37 ) )
----
48

query I rowsort
SELECT - + 6 * + - ( + + 97 ) AS col2
----
582

query I rowsort
SELECT ALL ( - 43 ) + - - 54
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5994
SELECT + COUNT( * ) - 50 DIV - - 22 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5994
SELECT + COUNT ( * ) - 50 / - - 22 AS col1
----
-1

query II rowsort
SELECT DISTINCT 1 AS col2, + 16 AS col0
----
1
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5996
SELECT + MAX( ALL CAST( NULL AS SIGNED ) ) - 64 * + 53 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5996
SELECT + MAX ( ALL CAST ( NULL AS INTEGER ) ) - 64 * + 53 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 94 * - 14
----
-1316

query I rowsort
SELECT + 18 + - 43 * - - ( - 58 )
----
2512

onlyif mysql # aggregate syntax: 
query I rowsort label-5999
SELECT - 23 - MIN( DISTINCT - - 53 )
----
-76

skipif mysql # not compatible
query I rowsort label-5999
SELECT - 23 - MIN ( DISTINCT - - 53 )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-6000
SELECT ALL COALESCE ( + 91, - COUNT( * ) )
----
91

skipif mysql # not compatible
query I rowsort label-6000
SELECT ALL COALESCE ( + 91, - COUNT ( * ) )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6001
SELECT 27 * - + 51 + - 52 - + COUNT( * ) * 35 * + 53 AS col1
----
-3284

skipif mysql # not compatible
query I rowsort label-6001
SELECT 27 * - + 51 + - 52 - + COUNT ( * ) * 35 * + 53 AS col1
----
-3284

onlyif mysql # DIV for integer division: 
query II rowsort label-6002
SELECT - 87 DIV 61 AS col1, 17
----
-1
17

skipif mysql # not compatible
query II rowsort label-6002
SELECT - 87 / 61 AS col1, 17
----
-1
17

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6004
SELECT + COUNT( * ) DIV + + 24 + - + 21 DIV - 40 + - COUNT( * ) * + CAST( - COUNT( * ) DIV - 45 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-6004
SELECT + COUNT ( * ) / + + 24 + - + 21 / - 40 + - COUNT ( * ) * + CAST ( - COUNT ( * ) / - 45 AS INTEGER )
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6006
SELECT DISTINCT + CASE + + COUNT( * ) WHEN - ( - 16 ) * - 3 THEN 36 WHEN 5 * 44 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6006
SELECT DISTINCT + CASE + + COUNT ( * ) WHEN - ( - 16 ) * - 3 THEN 36 WHEN 5 * 44 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6007
SELECT - COUNT( DISTINCT 42 ) DIV - + 27 * + 72 + 31 AS col0
----
31

skipif mysql # not compatible
query I rowsort label-6007
SELECT - COUNT ( DISTINCT 42 ) / - + 27 * + 72 + 31 AS col0
----
31

query I rowsort
SELECT 28 * + 57 + + 5 AS col2
----
1601

query I rowsort
SELECT DISTINCT + 37 * - ( NULLIF ( 14, - 45 ) )
----
-518

query I rowsort
SELECT ALL - 82 * - - ( - 19 ) AS col2
----
1558

onlyif mysql # aggregate syntax: 
query II rowsort label-6011
SELECT + COUNT( 48 ) AS col2, 43 AS col2
----
1
43

skipif mysql # not compatible
query II rowsort label-6011
SELECT + COUNT ( 48 ) AS col2, 43 AS col2
----
1
43

query I rowsort
SELECT ALL + NULLIF ( - + 3, - - 99 )
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-6013
SELECT + 9 DIV 92 + + 61 + + 28 * + 15
----
481

skipif mysql # not compatible
query I rowsort label-6013
SELECT + 9 / 92 + + 61 + + 28 * + 15
----
481

query I rowsort
SELECT + CASE - - 61 WHEN + - 5 THEN + + 32 END AS col2
----
NULL

query I rowsort
SELECT + 56 * 82
----
4592

onlyif mysql # DIV for integer division: 
query I rowsort label-6016
SELECT ALL - 78 DIV + 4 + 46 + + 27 AS col0
----
54

skipif mysql # not compatible
query I rowsort label-6016
SELECT ALL - 78 / + 4 + 46 + + 27 AS col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6017
SELECT ALL - 42 * + COUNT( * ) + 68 AS col2
----
26

skipif mysql # not compatible
query I rowsort label-6017
SELECT ALL - 42 * + COUNT ( * ) + 68 AS col2
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6018
SELECT DISTINCT + ( - ( - 47 ) ) * + - ( CAST( NULL AS SIGNED ) ) + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-6018
SELECT DISTINCT + ( - ( - 47 ) ) * + - ( CAST ( NULL AS INTEGER ) ) + 2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6019
SELECT ALL + MIN( ALL - + 4 ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-6019
SELECT ALL + MIN ( ALL - + 4 ) AS col1
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6020
SELECT ALL COUNT( * ) * SUM( - 82 ) + + 0 DIV + COALESCE ( + COUNT( * ) * COUNT( 29 ), + 39, COALESCE ( 7, 69 + 93, 46 ) ) col2
----
-82

skipif mysql # not compatible
query I rowsort label-6020
SELECT ALL COUNT ( * ) * SUM ( - 82 ) + + 0 / + COALESCE ( + COUNT ( * ) * COUNT ( 29 ), + 39, COALESCE ( 7, 69 + 93, 46 ) ) col2
----
-82

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

query I rowsort
SELECT - 89 + 1 * + - 11 AS col1
----
-100

query I rowsort
SELECT ALL CASE 58 WHEN 3 * - ( - 0 ) THEN + 67 END AS col1
----
NULL

query I rowsort
SELECT ALL 42 + - 68
----
-26

query I rowsort
SELECT ALL 55 - 99 AS col2
----
-44

query I rowsort
SELECT 1 + 42
----
43

query II rowsort
SELECT DISTINCT + - 34 * 57, - 14 col1
----
-1938
-14

query I rowsort
SELECT DISTINCT + + 9 * + 11 + + 63 - 7
----
155

query I rowsort
SELECT 62 * 52 - 90
----
3134

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6031
SELECT DISTINCT 83 DIV 79 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6031
SELECT DISTINCT 83 / 79 AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6032
SELECT ALL 42 - - 27 + - 5 DIV - + CAST( - - 65 AS SIGNED )
----
69

skipif mysql # not compatible
query I rowsort label-6032
SELECT ALL 42 - - 27 + - 5 / - + CAST ( - - 65 AS INTEGER )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-6033
SELECT 45 * + NULLIF ( - COUNT( * ), - 90 )
----
-45

skipif mysql # not compatible
query I rowsort label-6033
SELECT 45 * + NULLIF ( - COUNT ( * ), - 90 )
----
-45

query I rowsort
SELECT DISTINCT 16 AS col0
----
16

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6035
SELECT ALL ( - 76 ) / + 34 + - CAST( NULL AS DECIMAL ) * 64
----
NULL

skipif mysql # not compatible
query I rowsort label-6035
SELECT ALL ( - 76 ) / + 34 + - CAST ( NULL AS REAL ) * 64
----
NULL

query I rowsort
SELECT ( 50 ) + + ( 73 )
----
123

query I rowsort
SELECT 58 * - - 31 AS col0
----
1798

query I rowsort
SELECT ALL 22 col2
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-6039
SELECT - 23, - 60 * + COALESCE ( - 49, + COUNT( * ), 69 * 69 ) AS col2
----
-23
2940

skipif mysql # not compatible
query II rowsort label-6039
SELECT - 23, - 60 * + COALESCE ( - 49, + COUNT ( * ), 69 * 69 ) AS col2
----
-23
2940

query I rowsort
SELECT 64 + + 46
----
110

query I rowsort
SELECT 35 * 68 AS col0
----
2380

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6042
SELECT 74 + 55 * - 27 - CAST( + 43 AS SIGNED ) - + COALESCE ( 98, + 69, 22 ) * - 53
----
3740

skipif mysql # not compatible
query I rowsort label-6042
SELECT 74 + 55 * - 27 - CAST ( + 43 AS INTEGER ) - + COALESCE ( 98, + 69, 22 ) * - 53
----
3740

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6043
SELECT DISTINCT 41 * - 6 DIV + COUNT( ALL - 8 ) AS col2
----
-246

skipif mysql # not compatible
query I rowsort label-6043
SELECT DISTINCT 41 * - 6 / + COUNT ( ALL - 8 ) AS col2
----
-246

query I rowsort
SELECT ALL 33 col0
----
33

query I rowsort
SELECT ALL - 50 * + 10 * 54 AS col1
----
-27000

query I rowsort
SELECT DISTINCT 5 * - 49 AS col0
----
-245

query I rowsort
SELECT 73 * - 87 AS col1
----
-6351

onlyif mysql # aggregate syntax: 
query I rowsort label-6048
SELECT COUNT( * ) - + 7
----
-6

skipif mysql # not compatible
query I rowsort label-6048
SELECT COUNT ( * ) - + 7
----
-6

query I rowsort
SELECT ALL 40 * - - 67
----
2680

query I rowsort
SELECT 60 * - 93 - + ( + + 76 ) AS col2
----
-5656

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6051
SELECT + CAST( NULL AS SIGNED ) DIV + - 77 + + - 20 AS col1, + 29 DIV 10 * + CASE - NULLIF ( - 14, - 15 + 22 ) WHEN 15 THEN NULL ELSE 28 + 31 END AS col0
----
NULL
118

skipif mysql # not compatible
query II rowsort label-6051
SELECT + CAST ( NULL AS INTEGER ) / + - 77 + + - 20 AS col1, + 29 / 10 * + CASE - NULLIF ( - 14, - 15 + 22 ) WHEN 15 THEN NULL ELSE 28 + 31 END AS col0
----
NULL
118

query I rowsort
SELECT + 58 col1
----
58

query I rowsort
SELECT 5 + - + 39 + + - 53
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6054
SELECT ALL - - 16 + - - 45 + + 34 + + - 72 DIV COUNT( * ) * COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-6054
SELECT ALL - - 16 + - - 45 + + 34 + + - 72 / COUNT ( * ) * COUNT ( * )
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-6055
SELECT DISTINCT + + 54 DIV + 20
----
2

skipif mysql # not compatible
query I rowsort label-6055
SELECT DISTINCT + + 54 / + 20
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6056
SELECT ALL - + 91 + - 54 + CAST( NULL AS SIGNED ) + 55 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6056
SELECT ALL - + 91 + - 54 + CAST ( NULL AS INTEGER ) + 55 AS col2
----
NULL

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

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

query I rowsort
SELECT DISTINCT 76 + + 23 * - + 66
----
-1442

query I rowsort
SELECT ALL - - 24 + 62 + 59
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-6060
SELECT DISTINCT + - CASE + COUNT( * ) WHEN - 14 + + + 54 + + + 27 + 44 THEN NULL ELSE 1 * - 40 END * 45
----
1800

skipif mysql # not compatible
query I rowsort label-6060
SELECT DISTINCT + - CASE + COUNT ( * ) WHEN - 14 + + + 54 + + + 27 + 44 THEN NULL ELSE 1 * - 40 END * 45
----
1800

query I rowsort
SELECT DISTINCT - 94 + + - 4 + - 1 AS col1
----
-99

query I rowsort
SELECT + 64 * - 98 col2
----
-6272

onlyif mysql # aggregate syntax: 
query II rowsort label-6063
SELECT 59 * MAX( - 89 ) AS col2, + COUNT( * )
----
-5251
1

skipif mysql # not compatible
query II rowsort label-6063
SELECT 59 * MAX ( - 89 ) AS col2, + COUNT ( * )
----
-5251
1

query I rowsort
SELECT ALL + - 11 * + - 78 AS col1
----
858

query I rowsort
SELECT DISTINCT - - 49 + - 60 AS col2
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6066
SELECT + COALESCE ( + + 2, 89, + - MAX( ALL - ( ( + 8 ) ) ) + + COUNT( * ) ) * + COALESCE ( + CAST( + 19 AS SIGNED ) * 72, 76, + 18 * 7 ) + COALESCE ( - ( 49 ), CAST( NULL AS SIGNED ) + SUM( ALL + CAST( NULL AS SIGNED ) ) * - COALESCE ( 26, - 72 ) ) AS col0
----
2687

skipif mysql # not compatible
query I rowsort label-6066
SELECT + COALESCE ( + + 2, 89, + - MAX ( ALL - ( ( + 8 ) ) ) + + COUNT ( * ) ) * + COALESCE ( + CAST ( + 19 AS INTEGER ) * 72, 76, + 18 * 7 ) + COALESCE ( - ( 49 ), CAST ( NULL AS INTEGER ) + SUM ( ALL + CAST ( NULL AS INTEGER ) ) * - COALESCE ( 26, - 72 ) ) AS col0
----
2687

query I rowsort
SELECT DISTINCT - 34 - - - 9
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6068
SELECT CAST( + 1 AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-6068
SELECT CAST ( + 1 AS INTEGER )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6069
SELECT ALL - 0 - - ( - 95 ) - - 87 + + COUNT( * ) * 84
----
76

skipif mysql # not compatible
query I rowsort label-6069
SELECT ALL - 0 - - ( - 95 ) - - 87 + + COUNT ( * ) * 84
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-6070
SELECT + + NULLIF ( 91, - COUNT( * ) ), + 6 col2
----
91
6

skipif mysql # not compatible
query II rowsort label-6070
SELECT + + NULLIF ( 91, - COUNT ( * ) ), + 6 col2
----
91
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6071
SELECT DISTINCT - + ( + + SUM( DISTINCT - 7 ) ) - + 52 AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-6071
SELECT DISTINCT - + ( + + SUM ( DISTINCT - 7 ) ) - + 52 AS col0
----
-45

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

skipif mysql # not compatible
query I rowsort label-6072
SELECT COUNT ( * ) * - - 75
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6073
SELECT DISTINCT + CASE + COALESCE ( - 94, - + COALESCE ( + 88, - COUNT( * ), - 2 ) ) WHEN + 50 THEN NULL WHEN 90 * - MAX( - 58 ) THEN 58 / + 78 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6073
SELECT DISTINCT + CASE + COALESCE ( - 94, - + COALESCE ( + 88, - COUNT ( * ), - 2 ) ) WHEN + 50 THEN NULL WHEN 90 * - MAX ( - 58 ) THEN 58 / + 78 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6074
SELECT 19 + COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-6074
SELECT 19 + COUNT ( * )
----
20

query II rowsort
SELECT - 13 AS col1, + 58
----
-13
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6076
SELECT COUNT( ALL + 84 ) * - 22
----
-22

skipif mysql # not compatible
query I rowsort label-6076
SELECT COUNT ( ALL + 84 ) * - 22
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-6077
SELECT 29 + 5 + - SUM( DISTINCT 4 ) + 89 AS col0
----
119

skipif mysql # not compatible
query I rowsort label-6077
SELECT 29 + 5 + - SUM ( DISTINCT 4 ) + 89 AS col0
----
119

query II rowsort
SELECT 67 AS col2, 81
----
67
81

query I rowsort
SELECT ALL 6 * + 80 AS col2
----
480

onlyif mysql # DIV for integer division: 
query I rowsort label-6080
SELECT 35 DIV 14
----
2

skipif mysql # not compatible
query I rowsort label-6080
SELECT 35 / 14
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6081
SELECT COUNT( * ) DIV + 77 * 28 * - 34, + 24 AS col0
----
0
24

skipif mysql # not compatible
query II rowsort label-6081
SELECT COUNT ( * ) / + 77 * 28 * - 34, + 24 AS col0
----
0
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6082
SELECT SUM( DISTINCT - 74 ) + + CASE + 50 WHEN SUM( ALL 39 ) THEN NULL WHEN - ( + 22 ) - 46 * COUNT( * ) THEN COUNT( * ) * - 27 END + MAX( + 65 + ( - COALESCE ( 56, 13 ) ) * - 18 ) * ( 72 / ( COUNT( * ) ) + - 87 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6082
SELECT SUM ( DISTINCT - 74 ) + + CASE + 50 WHEN SUM ( ALL 39 ) THEN NULL WHEN - ( + 22 ) - 46 * COUNT ( * ) THEN COUNT ( * ) * - 27 END + MAX ( + 65 + ( - COALESCE ( 56, 13 ) ) * - 18 ) * ( 72 / ( COUNT ( * ) ) + - 87 )
----
NULL

query I rowsort
SELECT ALL 35 + - - 72 + - + 42 * ( - + 88 ) AS col1
----
3803

query I rowsort
SELECT 64 + + + 71 + + - 72
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6085
SELECT DISTINCT 64 + + 66 col0, 91 DIV - + 56 - COALESCE ( - 42, ( + 54 ), + MIN( DISTINCT - 21 ) * + 50 ) AS col2
----
130
41

skipif mysql # not compatible
query II rowsort label-6085
SELECT DISTINCT 64 + + 66 col0, 91 / - + 56 - COALESCE ( - 42, ( + 54 ), + MIN ( DISTINCT - 21 ) * + 50 ) AS col2
----
130
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6086
SELECT COUNT( + + ( 70 ) ) * 25 * - 70 - - 94 + 0 * + 29
----
-1656

skipif mysql # not compatible
query I rowsort label-6086
SELECT COUNT ( + + ( 70 ) ) * 25 * - 70 - - 94 + 0 * + 29
----
-1656

query I rowsort
SELECT ALL 99 + + + 7 + ( + 43 )
----
149

query I rowsort
SELECT 54 + + 83 AS col0
----
137

query I rowsort
SELECT ALL 92 + + 48 * 51
----
2540

onlyif mysql # aggregate syntax: 
query I rowsort label-6090
SELECT - NULLIF ( + 97, COUNT( * ) )
----
-97

skipif mysql # not compatible
query I rowsort label-6090
SELECT - NULLIF ( + 97, COUNT ( * ) )
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6091
SELECT - COUNT( ALL + 95 ) * - - 7 + - 27 + - + 33 * - COALESCE ( + MIN( ALL 35 ), + 78 - 2 )
----
1121

skipif mysql # not compatible
query I rowsort label-6091
SELECT - COUNT ( ALL + 95 ) * - - 7 + - 27 + - + 33 * - COALESCE ( + MIN ( ALL 35 ), + 78 - 2 )
----
1121

onlyif mysql # aggregate syntax: 
query I rowsort label-6092
SELECT + SUM( DISTINCT + 76 )
----
76

skipif mysql # not compatible
query I rowsort label-6092
SELECT + SUM ( DISTINCT + 76 )
----
76

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

query I rowsort
SELECT ALL 74 * 50 AS col0
----
3700

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

query I rowsort
SELECT + 62 * - - 56
----
3472

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6098
SELECT DISTINCT - COUNT( * ) * + MAX( ALL + + 6 ) - + COUNT( * ) - + COUNT( * ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-6098
SELECT DISTINCT - COUNT ( * ) * + MAX ( ALL + + 6 ) - + COUNT ( * ) - + COUNT ( * ) AS col1
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6099
SELECT CAST( - - 82 AS SIGNED ) col0, 48
----
82
48

skipif mysql # not compatible
query II rowsort label-6099
SELECT CAST ( - - 82 AS INTEGER ) col0, 48
----
82
48

onlyif mysql # aggregate syntax: 
query I rowsort label-6100
SELECT - + COUNT( * ) + + SUM( + - 21 )
----
-22

skipif mysql # not compatible
query I rowsort label-6100
SELECT - + COUNT ( * ) + + SUM ( + - 21 )
----
-22

query I rowsort
SELECT DISTINCT + - 67 * 16 - + - 13
----
-1059

onlyif mysql # aggregate syntax: 
query I rowsort label-6102
SELECT - 88 * + + 60 + + 84 - - - COUNT( * ) + 83 * + MAX( DISTINCT - ( + 76 ) ) AS col0
----
-11505

skipif mysql # not compatible
query I rowsort label-6102
SELECT - 88 * + + 60 + + 84 - - - COUNT ( * ) + 83 * + MAX ( DISTINCT - ( + 76 ) ) AS col0
----
-11505

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6103
SELECT DISTINCT + - 60, 44 * CAST( NULL AS SIGNED ) / + + 46 * + - CAST( + + 16 AS DECIMAL ) AS col0
----
-60
NULL

skipif mysql # not compatible
query II rowsort label-6103
SELECT DISTINCT + - 60, 44 * CAST ( NULL AS INTEGER ) / + + 46 * + - CAST ( + + 16 AS REAL ) AS col0
----
-60
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6104
SELECT ALL 4 * + ( + MIN( + 77 ) ) * + 61
----
18788

skipif mysql # not compatible
query I rowsort label-6104
SELECT ALL 4 * + ( + MIN ( + 77 ) ) * + 61
----
18788

onlyif mysql # aggregate syntax: 
query I rowsort label-6105
SELECT + 73 + - 8 * + 92 * CASE - + COUNT( * ) WHEN 17 THEN + 77 WHEN + 5 + 54 * - 54 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6105
SELECT + 73 + - 8 * + 92 * CASE - + COUNT ( * ) WHEN 17 THEN + 77 WHEN + 5 + 54 * - 54 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6106
SELECT + COUNT( ( - + 33 ) ) * + - 21 * - SUM( + 6 ) * + 69
----
8694

skipif mysql # not compatible
query I rowsort label-6106
SELECT + COUNT ( ( - + 33 ) ) * + - 21 * - SUM ( + 6 ) * + 69
----
8694

query I rowsort
SELECT ALL + - COALESCE ( - ( - 42 ), + - 67 ) AS col2
----
-42

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6109
SELECT DISTINCT + 61 * - COUNT( * ) * - COUNT( * ) * + 67 * + - 17 col0
----
-69479

skipif mysql # not compatible
query I rowsort label-6109
SELECT DISTINCT + 61 * - COUNT ( * ) * - COUNT ( * ) * + 67 * + - 17 col0
----
-69479

query II rowsort
SELECT - 95 * + 23 AS col2, 35
----
-2185
35

query II rowsort
SELECT - 71 * 62, + 68 AS col0
----
-4402
68

query I rowsort
SELECT ALL - 95 + 44 * + 72 * + - 90
----
-285215

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6113
SELECT - COALESCE ( + 0, COUNT( ALL 91 ) ) + - + 48 AS col0, CASE + 64 WHEN 16 THEN + 92 + 1 * 97 WHEN - 45 * + ( + 58 ) THEN NULL WHEN 19 THEN + 72 + NULLIF ( 97, - COUNT( * ) + 61 ) ELSE COUNT( * ) DIV - 21 + 92 END
----
-48
92

skipif mysql # not compatible
query II rowsort label-6113
SELECT - COALESCE ( + 0, COUNT ( ALL 91 ) ) + - + 48 AS col0, CASE + 64 WHEN 16 THEN + 92 + 1 * 97 WHEN - 45 * + ( + 58 ) THEN NULL WHEN 19 THEN + 72 + NULLIF ( 97, - COUNT ( * ) + 61 ) ELSE COUNT ( * ) / - 21 + 92 END
----
-48
92

query I rowsort
SELECT DISTINCT NULLIF ( 43, - 91 )
----
43

query I rowsort
SELECT DISTINCT + 50 + + 28 * + 16 AS col0
----
498

query I rowsort
SELECT ALL - 96 + 20
----
-76

query I rowsort
SELECT 46 col2
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-6118
SELECT ALL + 32 + - COUNT( * ) AS col1, - 70 * 13 - COUNT( * ) col1
----
31
-911

skipif mysql # not compatible
query II rowsort label-6118
SELECT ALL + 32 + - COUNT ( * ) AS col1, - 70 * 13 - COUNT ( * ) col1
----
31
-911

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6120
SELECT ALL + 23 * + + 74 AS col2, COUNT( - 36 ) * + + 21 * 26 AS col2
----
1702
546

skipif mysql # not compatible
query II rowsort label-6120
SELECT ALL + 23 * + + 74 AS col2, COUNT ( - 36 ) * + + 21 * 26 AS col2
----
1702
546

query I rowsort
SELECT DISTINCT + 6 * - - 77
----
462

query I rowsort
SELECT DISTINCT 10 + 40 + + ( - - 18 ) AS col2
----
68

query I rowsort
SELECT DISTINCT - 78 + - 67 - 66 AS col2
----
-211

query I rowsort
SELECT DISTINCT 1 col0
----
1

query I rowsort
SELECT ALL 45 + + 32
----
77

query I rowsort
SELECT DISTINCT - 6 * + - 61 * + 99 AS col2
----
36234

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6129
SELECT + 61 * + - 39 - - + CAST( NULL AS SIGNED )
----
NULL

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6131
SELECT ALL - CAST( NULL AS SIGNED ) / 37 - 89 AS col2, 0 - + 30 + + 90
----
NULL
60

skipif mysql # not compatible
query II rowsort label-6131
SELECT ALL - CAST ( NULL AS INTEGER ) / 37 - 89 AS col2, 0 - + 30 + + 90
----
NULL
60

query I rowsort
SELECT + + 39 * - 57
----
-2223

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6134
SELECT + + CAST( - 32 AS SIGNED ) AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-6134
SELECT + + CAST ( - 32 AS INTEGER ) AS col2
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6135
SELECT - 40 * COUNT( * ) + - + 80 + + 23 DIV 82 DIV + ( + - 91 ) + ( 96 ) * - 2 col1
----
-312

skipif mysql # not compatible
query I rowsort label-6135
SELECT - 40 * COUNT ( * ) + - + 80 + + 23 / 82 / + ( + - 91 ) + ( 96 ) * - 2 col1
----
-312

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6137
SELECT DISTINCT - 71 DIV - - 65 - NULLIF ( 85, 1 * 86 * - MAX( ALL 61 ) + + MAX( DISTINCT + ( 52 ) - 10 ) ) + SUM( DISTINCT 38 ) * + 41 AS col2
----
1472

skipif mysql # not compatible
query I rowsort label-6137
SELECT DISTINCT - 71 / - - 65 - NULLIF ( 85, 1 * 86 * - MAX ( ALL 61 ) + + MAX ( DISTINCT + ( 52 ) - 10 ) ) + SUM ( DISTINCT 38 ) * + 41 AS col2
----
1472

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6138
SELECT DISTINCT + + CAST( 52 AS SIGNED ) col1, 15
----
52
15

skipif mysql # not compatible
query II rowsort label-6138
SELECT DISTINCT + + CAST ( 52 AS INTEGER ) col1, 15
----
52
15

onlyif mysql # aggregate syntax: 
query I rowsort label-6139
SELECT DISTINCT + NULLIF ( 60, + + 39 + SUM( DISTINCT - 56 ) )
----
60

skipif mysql # not compatible
query I rowsort label-6139
SELECT DISTINCT + NULLIF ( 60, + + 39 + SUM ( DISTINCT - 56 ) )
----
60

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6141
SELECT 4 * + + 34 - + - COUNT( * ) * - 86 + + 55 AS col1
----
105

skipif mysql # not compatible
query I rowsort label-6141
SELECT 4 * + + 34 - + - COUNT ( * ) * - 86 + + 55 AS col1
----
105

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6143
SELECT + MIN( - - 52 ), COUNT( * ) AS col1
----
52
1

skipif mysql # not compatible
query II rowsort label-6143
SELECT + MIN ( - - 52 ), COUNT ( * ) AS col1
----
52
1

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

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

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

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

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

query I rowsort
SELECT - 77 * - - COALESCE ( - 39, + 85 ) AS col2
----
3003

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6148
SELECT ALL 19 * + COUNT( * ) * 65 + + - COUNT( + ( CAST( - 93 AS SIGNED ) ) ) AS col2
----
1234

skipif mysql # not compatible
query I rowsort label-6148
SELECT ALL 19 * + COUNT ( * ) * 65 + + - COUNT ( + ( CAST ( - 93 AS INTEGER ) ) ) AS col2
----
1234

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-6149
SELECT DISTINCT + 80 AS col2, - 68 DIV CAST( - - 78 AS SIGNED ) AS col0, - 97
----
80
0
-97

skipif mysql # not compatible
query III rowsort label-6149
SELECT DISTINCT + 80 AS col2, - 68 / CAST ( - - 78 AS INTEGER ) AS col0, - 97
----
80
0
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6150
SELECT + CAST( - 79 AS SIGNED )
----
-79

skipif mysql # not compatible
query I rowsort label-6150
SELECT + CAST ( - 79 AS INTEGER )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-6151
SELECT ALL + COALESCE ( + 15, 96 * + 25 * + 61 * + 47, 14 ) * - - COUNT( DISTINCT ( + 46 ) ) + + 15 AS col2
----
30

skipif mysql # not compatible
query I rowsort label-6151
SELECT ALL + COALESCE ( + 15, 96 * + 25 * + 61 * + 47, 14 ) * - - COUNT ( DISTINCT ( + 46 ) ) + + 15 AS col2
----
30

query I rowsort
SELECT DISTINCT CASE 75 WHEN 26 * + 5 THEN NULL ELSE + 99 END
----
99

query I rowsort
SELECT ALL + 37 * 52 AS col0
----
1924

query II rowsort
SELECT - 29 AS col1, 6 AS col1
----
-29
6

onlyif mysql # aggregate syntax: 
query II rowsort label-6155
SELECT + 5 + + 55 * - + 56 * - 70 * MAX( 40 ) AS col0, - ( + - NULLIF ( ( 2 ), 16 * + 85 ) )
----
8624005
2

skipif mysql # not compatible
query II rowsort label-6155
SELECT + 5 + + 55 * - + 56 * - 70 * MAX ( 40 ) AS col0, - ( + - NULLIF ( ( 2 ), 16 * + 85 ) )
----
8624005
2

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

skipif mysql # not compatible
query I rowsort label-6156
SELECT - COUNT ( * ) * CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT ALL - 92 * - 24 AS col0
----
2208

onlyif mysql # aggregate syntax: 
query I rowsort label-6158
SELECT ALL + 37 * - NULLIF ( NULLIF ( + MAX( + + 74 ), + + 24 / + NULLIF ( 25, + 57 ) + 43 ), - COALESCE ( 47, SUM( 64 ) ) ) AS col2
----
-2738

skipif mysql # not compatible
query I rowsort label-6158
SELECT ALL + 37 * - NULLIF ( NULLIF ( + MAX ( + + 74 ), + + 24 / + NULLIF ( 25, + 57 ) + 43 ), - COALESCE ( 47, SUM ( 64 ) ) ) AS col2
----
-2738

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6160
SELECT - MAX( DISTINCT + 63 ) + - COUNT( * ) * 85 + + 37 DIV + 93
----
-148

skipif mysql # not compatible
query I rowsort label-6160
SELECT - MAX ( DISTINCT + 63 ) + - COUNT ( * ) * 85 + + 37 / + 93
----
-148

query I rowsort
SELECT ALL 63 * - 33 AS col2
----
-2079

onlyif mysql # aggregate syntax: 
query I rowsort label-6162
SELECT - MAX( - 83 ) + + 49 + + 46
----
178

skipif mysql # not compatible
query I rowsort label-6162
SELECT - MAX ( - 83 ) + + 49 + + 46
----
178

onlyif mysql # aggregate syntax: 
query I rowsort label-6163
SELECT ALL + 29 + + COUNT( * ) * + 87 - - 37 * + MIN( DISTINCT 16 ) * + 72
----
42740

skipif mysql # not compatible
query I rowsort label-6163
SELECT ALL + 29 + + COUNT ( * ) * + 87 - - 37 * + MIN ( DISTINCT 16 ) * + 72
----
42740

query I rowsort
SELECT 98 + 76 AS col2
----
174

query III rowsort
SELECT ALL 54 AS col2, 61 * + - ( - 38 ) + 25 - 41, + + 23 AS col2
----
54
2302
23

query I rowsort
SELECT 8 + 79 AS col0
----
87

query I rowsort
SELECT 79 + - 40
----
39

query I rowsort
SELECT 65 * - - 86 * 89 AS col1
----
497510

onlyif mysql # aggregate syntax: 
query II rowsort label-6169
SELECT + 0 - + + 82 + + - 58 col0, 33 * + - COUNT( * ) * + - 92 AS col2
----
-140
3036

skipif mysql # not compatible
query II rowsort label-6169
SELECT + 0 - + + 82 + + - 58 col0, 33 * + - COUNT ( * ) * + - 92 AS col2
----
-140
3036

query II rowsort
SELECT DISTINCT - + ( - 81 ) * 61 AS col0, + ( + - 13 ) AS col1
----
4941
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6171
SELECT 13 + CASE + + CAST( NULL AS SIGNED ) WHEN COUNT( * ) THEN - 51 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6171
SELECT 13 + CASE + + CAST ( NULL AS INTEGER ) WHEN COUNT ( * ) THEN - 51 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6172
SELECT 57 + MAX( - 92 ) + - - COUNT( * ) * - 52 DIV - 33 AS col2, CAST( - 3 AS SIGNED ) AS col2
----
-34
-3

skipif mysql # not compatible
query II rowsort label-6172
SELECT 57 + MAX ( - 92 ) + - - COUNT ( * ) * - 52 / - 33 AS col2, CAST ( - 3 AS INTEGER ) AS col2
----
-34
-3

query I rowsort
SELECT 44 * + 70
----
3080

query II rowsort
SELECT ALL - 47 AS col2, 45 * - 49 * + + 49 AS col0
----
-47
-108045

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6175
SELECT COUNT( * ) DIV + ( + 98 ) + + 76 AS col2, - 42 * - 53 * - 95 + + - 32 - 47 DIV - 64 * 39
----
76
-211502

skipif mysql # not compatible
query II rowsort label-6175
SELECT COUNT ( * ) / + ( + 98 ) + + 76 AS col2, - 42 * - 53 * - 95 + + - 32 - 47 / - 64 * 39
----
76
-211502

onlyif mysql # aggregate syntax: 
query I rowsort label-6176
SELECT + CASE + - CASE - 27 WHEN MAX( + 87 ) + 97 THEN + + ( - 77 ) + - 40 END WHEN 24 THEN COUNT( * ) WHEN NULLIF ( 47, COUNT( * ) ) THEN NULL END * 3
----
NULL

skipif mysql # not compatible
query I rowsort label-6176
SELECT + CASE + - CASE - 27 WHEN MAX ( + 87 ) + 97 THEN + + ( - 77 ) + - 40 END WHEN 24 THEN COUNT ( * ) WHEN NULLIF ( 47, COUNT ( * ) ) THEN NULL END * 3
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6177
SELECT DISTINCT - - NULLIF ( - COUNT( * ), - 57 ) * - 63 * 86 AS col0
----
5418

skipif mysql # not compatible
query I rowsort label-6177
SELECT DISTINCT - - NULLIF ( - COUNT ( * ), - 57 ) * - 63 * 86 AS col0
----
5418

onlyif mysql # aggregate syntax: 
query I rowsort label-6178
SELECT ALL - SUM( DISTINCT - COALESCE ( + 62, - 4 ) ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-6178
SELECT ALL - SUM ( DISTINCT - COALESCE ( + 62, - 4 ) ) AS col0
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6179
SELECT - 17 * CASE + COUNT( * ) WHEN - + 29 * + 92 THEN + CASE CAST( NULL AS SIGNED ) WHEN 44 * - 2 THEN NULL WHEN + 55 THEN 86 * - 73 - - 51 END END * - 65 + + 68 / 94
----
NULL

skipif mysql # not compatible
query I rowsort label-6179
SELECT - 17 * CASE + COUNT ( * ) WHEN - + 29 * + 92 THEN + CASE CAST ( NULL AS INTEGER ) WHEN 44 * - 2 THEN NULL WHEN + 55 THEN 86 * - 73 - - 51 END END * - 65 + + 68 / 94
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6181
SELECT 93 + + 7 + + 55 * - 25 * ( COUNT( * ) ) * 15 - - + 51 + + 30 * 66 * 35 AS col2
----
48826

skipif mysql # not compatible
query I rowsort label-6181
SELECT 93 + + 7 + + 55 * - 25 * ( COUNT ( * ) ) * 15 - - + 51 + + 30 * 66 * 35 AS col2
----
48826

query I rowsort
SELECT ( CASE - + 87 WHEN + - 99 THEN 13 ELSE NULL END ) + - 71 * + 99 * 51 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6183
SELECT COALESCE ( + 74, 74 * + + 38 * 32 * + COUNT( ALL 18 ) + 64 * + 79, - 19 * - 87 + - 40 * 10 ) col1
----
74

skipif mysql # not compatible
query I rowsort label-6183
SELECT COALESCE ( + 74, 74 * + + 38 * 32 * + COUNT ( ALL 18 ) + 64 * + 79, - 19 * - 87 + - 40 * 10 ) col1
----
74

query I rowsort
SELECT ALL 22 + 92
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-6185
SELECT ALL 26 + - + COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-6185
SELECT ALL 26 + - + COUNT ( * )
----
25

query I rowsort
SELECT ALL - - 66
----
66

query I rowsort
SELECT DISTINCT 88 + + 82 - 26 + + 66 AS col1
----
210

query I rowsort
SELECT ALL 23 + + + 53
----
76

query I rowsort
SELECT 44 * - 56
----
-2464

query I rowsort
SELECT DISTINCT 41 * 34 AS col1
----
1394

query I rowsort
SELECT ( + ( 13 ) ) + 34 * - + 58 AS col1
----
-1959

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6192
SELECT COUNT( - 11 ) + - 94 + 22 AS col1, 28 DIV - + COUNT( * ) + + 85 * + COUNT( * ) AS col1
----
-71
57

skipif mysql # not compatible
query II rowsort label-6192
SELECT COUNT ( - 11 ) + - 94 + 22 AS col1, 28 / - + COUNT ( * ) + + 85 * + COUNT ( * ) AS col1
----
-71
57

query I rowsort
SELECT 70 * + - 43
----
-3010

onlyif mysql # aggregate syntax: 
query I rowsort label-6194
SELECT ALL MAX( - - 11 ) + + - 21
----
-10

skipif mysql # not compatible
query I rowsort label-6194
SELECT ALL MAX ( - - 11 ) + + - 21
----
-10

query I rowsort
SELECT 77 col2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6196
SELECT MAX( + ( + - 66 ) ) * - - 7
----
-462

skipif mysql # not compatible
query I rowsort label-6196
SELECT MAX ( + ( + - 66 ) ) * - - 7
----
-462

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6197
SELECT MIN( - + 1 ) DIV + - 48
----
0

skipif mysql # not compatible
query I rowsort label-6197
SELECT MIN ( - + 1 ) / + - 48
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6198
SELECT ALL - COUNT( DISTINCT + + 35 ) * + - 55 AS col1
----
55

skipif mysql # not compatible
query I rowsort label-6198
SELECT ALL - COUNT ( DISTINCT + + 35 ) * + - 55 AS col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6199
SELECT ALL COUNT( * ) - - 91
----
92

skipif mysql # not compatible
query I rowsort label-6199
SELECT ALL COUNT ( * ) - - 91
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6200
SELECT ALL - CAST( NULL AS SIGNED ) * + - SUM( DISTINCT - - 10 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6200
SELECT ALL - CAST ( NULL AS INTEGER ) * + - SUM ( DISTINCT - - 10 )
----
NULL

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

query II rowsort
SELECT ALL 27 * - + 91, - 74 AS col1
----
-2457
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6203
SELECT 24 + + - 59 + - - 44 * + CAST( NULL AS SIGNED ) / 30 * CAST( 88 AS SIGNED ) * 65 + - + 67 * ( 2 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6203
SELECT 24 + + - 59 + - - 44 * + CAST ( NULL AS INTEGER ) / 30 * CAST ( 88 AS INTEGER ) * 65 + - + 67 * ( 2 ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6204
SELECT ALL - 67 * + CAST( NULL AS SIGNED ) / ( + 63 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6204
SELECT ALL - 67 * + CAST ( NULL AS INTEGER ) / ( + 63 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6205
SELECT ALL + 8 * 69 AS col1, - COALESCE ( 2, - 1 + + 74 + 27 - - COUNT( * ), + 32 * 34 )
----
552
-2

skipif mysql # not compatible
query II rowsort label-6205
SELECT ALL + 8 * 69 AS col1, - COALESCE ( 2, - 1 + + 74 + 27 - - COUNT ( * ), + 32 * 34 )
----
552
-2

query I rowsort
SELECT 82 * 15 AS col0
----
1230

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6207
SELECT - 98 + - + CAST( - 22 AS DECIMAL ) + - - CAST( NULL AS SIGNED ) / + + 1 + 67 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6207
SELECT - 98 + - + CAST ( - 22 AS REAL ) + - - CAST ( NULL AS INTEGER ) / + + 1 + 67 * + COUNT ( * )
----
NULL

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

query I rowsort
SELECT ALL + 6 * - 48 + - - 29 AS col1
----
-259

query I rowsort
SELECT ALL ( - 89 ) AS col2
----
-89

query I rowsort
SELECT - ( 75 ) * - 49 AS col0
----
3675

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6213
SELECT - - 48 * + - 68 + - 27 - + 8 - - 58 - - 78 - CAST( NULL AS SIGNED ) * - COUNT( * ) * 63 * - 86 + - 92 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6213
SELECT - - 48 * + - 68 + - 27 - + 8 - - 58 - - 78 - CAST ( NULL AS INTEGER ) * - COUNT ( * ) * 63 * - 86 + - 92 AS col2
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6215
SELECT - 14 * 67 / COUNT( * ) + + 35 + 84 - CAST( + 45 AS SIGNED ) * 3 + - 48 * + COUNT( * ) / - CASE 79 WHEN - 62 THEN ( + 10 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6215
SELECT - 14 * 67 / COUNT ( * ) + + 35 + 84 - CAST ( + 45 AS INTEGER ) * 3 + - 48 * + COUNT ( * ) / - CASE 79 WHEN - 62 THEN ( + 10 ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6216
SELECT ALL - - CAST( 49 AS SIGNED ) * 75
----
3675

skipif mysql # not compatible
query I rowsort label-6216
SELECT ALL - - CAST ( 49 AS INTEGER ) * 75
----
3675

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6217
SELECT + 23 + + CASE + 97 WHEN + CASE - CAST( NULL AS SIGNED ) WHEN + CASE - 13 WHEN 65 THEN NULL WHEN - 91 THEN 44 / 42 END * + 67 THEN COUNT( * ) WHEN CAST( NULL AS SIGNED ) + 30 THEN - COUNT( * ) ELSE + COUNT( * ) / - ( COUNT( DISTINCT 97 ) ) END * + 97 THEN 37 ELSE NULL END * - 98
----
NULL

skipif mysql # not compatible
query I rowsort label-6217
SELECT + 23 + + CASE + 97 WHEN + CASE - CAST ( NULL AS INTEGER ) WHEN + CASE - 13 WHEN 65 THEN NULL WHEN - 91 THEN 44 / 42 END * + 67 THEN COUNT ( * ) WHEN CAST ( NULL AS INTEGER ) + 30 THEN - COUNT ( * ) ELSE + COUNT ( * ) / - ( COUNT ( DISTINCT 97 ) ) END * + 97 THEN 37 ELSE NULL END * - 98
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6218
SELECT DISTINCT ( - 87 ) * COUNT( * ) + - MIN( ALL + CAST( NULL AS SIGNED ) ) + + 58 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6218
SELECT DISTINCT ( - 87 ) * COUNT ( * ) + - MIN ( ALL + CAST ( NULL AS INTEGER ) ) + + 58 col0
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6220
SELECT ALL - CAST( NULL AS SIGNED ) * - COUNT( * ) * - 69 + 73 + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-6220
SELECT ALL - CAST ( NULL AS INTEGER ) * - COUNT ( * ) * - 69 + 73 + 98
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6222
SELECT DISTINCT + 91 + - 5 * + 4 + + 63, - NULLIF ( + 69, - - 12 ) * + COUNT( * ) AS col1
----
134
-69

skipif mysql # not compatible
query II rowsort label-6222
SELECT DISTINCT + 91 + - 5 * + 4 + + 63, - NULLIF ( + 69, - - 12 ) * + COUNT ( * ) AS col1
----
134
-69

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

query I rowsort
SELECT 89 * 89 col2
----
7921

onlyif mysql # aggregate syntax: 
query I rowsort label-6225
SELECT CASE 95 WHEN - 47 THEN + + 64 WHEN - 56 THEN ( - 8 ) * - 68 END * + - COUNT( * ) * 8 * - 23 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6225
SELECT CASE 95 WHEN - 47 THEN + + 64 WHEN - 56 THEN ( - 8 ) * - 68 END * + - COUNT ( * ) * 8 * - 23 col1
----
NULL

query I rowsort
SELECT 79 * + 49
----
3871

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6227
SELECT ALL + 74 DIV + + COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-6227
SELECT ALL + 74 / + + COUNT ( * )
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-6228
SELECT 54 AS col0, MAX( ALL 43 )
----
54
43

skipif mysql # not compatible
query II rowsort label-6228
SELECT 54 AS col0, MAX ( ALL 43 )
----
54
43

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

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

query II rowsort
SELECT 35 col0, 98 + + 95
----
35
193

query I rowsort
SELECT + 28 * 21 + + + 87
----
675

query I rowsort
SELECT + 22 - - 48 AS col2
----
70

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

query I rowsort
SELECT ALL 86 * - + 76 AS col0
----
-6536

query I rowsort
SELECT + 68 + 92 AS col0
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-6237
SELECT DISTINCT - COALESCE ( ( - 54 ), - 8, - - NULLIF ( - - 36, 76 + - 90 * + + 86 * - 68 + + MAX( ALL ( 65 ) ) / + COUNT( * ) ) )
----
54

skipif mysql # not compatible
query I rowsort label-6237
SELECT DISTINCT - COALESCE ( ( - 54 ), - 8, - - NULLIF ( - - 36, 76 + - 90 * + + 86 * - 68 + + MAX ( ALL ( 65 ) ) / + COUNT ( * ) ) )
----
54

query I rowsort
SELECT ALL - ( 89 ) col1
----
-89

query I rowsort
SELECT + + 41 + + 65 + + + 95
----
201

onlyif mysql # DIV for integer division: 
query I rowsort label-6240
SELECT DISTINCT 74 DIV 94 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6240
SELECT DISTINCT 74 / 94 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6241
SELECT + - MIN( - 89 ) + - COALESCE ( + 12, + ( - - 85 ) + - 11 * - + COUNT( * ) ) + + - ( + 8 )
----
69

skipif mysql # not compatible
query I rowsort label-6241
SELECT + - MIN ( - 89 ) + - COALESCE ( + 12, + ( - - 85 ) + - 11 * - + COUNT ( * ) ) + + - ( + 8 )
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-6242
SELECT + + 91 + 72 + + + 63 DIV - - 48 AS col2
----
164

skipif mysql # not compatible
query I rowsort label-6242
SELECT + + 91 + 72 + + + 63 / - - 48 AS col2
----
164

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6243
SELECT ALL 32 DIV + - 96 + + COALESCE ( - MAX( NULLIF ( 59, + - 50 ) ), + + 82, 73 + - 16 ) + - 83 DIV + 38 AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-6243
SELECT ALL 32 / + - 96 + + COALESCE ( - MAX ( NULLIF ( 59, + - 50 ) ), + + 82, 73 + - 16 ) + - 83 / + 38 AS col2
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-6244
SELECT ALL MIN( DISTINCT - + 72 ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-6244
SELECT ALL MIN ( DISTINCT - + 72 ) AS col0
----
-72

query I rowsort
SELECT + 29 + + 75 AS col0
----
104

query I rowsort
SELECT - 98 + 78 AS col2
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-6247
SELECT DISTINCT 72 + - SUM( + 27 ) + - 84 * + 39 + - 95 AS col0
----
-3326

skipif mysql # not compatible
query I rowsort label-6247
SELECT DISTINCT 72 + - SUM ( + 27 ) + - 84 * + 39 + - 95 AS col0
----
-3326

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6248
SELECT + COUNT( * ) * + - 72 - - 98 + 15 * - 35 * ( + + 8 ) + + 18 + - 11 DIV - 54 + ( ( + COUNT( * ) ) ) * 46 AS col2
----
-4110

skipif mysql # not compatible
query I rowsort label-6248
SELECT + COUNT ( * ) * + - 72 - - 98 + 15 * - 35 * ( + + 8 ) + + 18 + - 11 / - 54 + ( ( + COUNT ( * ) ) ) * 46 AS col2
----
-4110

query I rowsort
SELECT - + 50 + - 59 + - + 57 + - 79 + + 28 + + 40 - - 29 * + 5
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-6250
SELECT ALL - - SUM( DISTINCT - 89 ) + + + ( + 18 ) * - - COUNT( * ) * - - 9
----
73

skipif mysql # not compatible
query I rowsort label-6250
SELECT ALL - - SUM ( DISTINCT - 89 ) + + + ( + 18 ) * - - COUNT ( * ) * - - 9
----
73

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6252
SELECT DISTINCT + 72 * 35 + MAX( ALL CAST( - - 17 AS SIGNED ) ) + - - 17 DIV - 52 + - + 84 DIV - + 81
----
2538

skipif mysql # not compatible
query I rowsort label-6252
SELECT DISTINCT + 72 * 35 + MAX ( ALL CAST ( - - 17 AS INTEGER ) ) + - - 17 / - 52 + - + 84 / - + 81
----
2538

query I rowsort
SELECT + 39 col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-6254
SELECT ALL - + COUNT( * ) * + 81 + + - 36
----
-117

skipif mysql # not compatible
query I rowsort label-6254
SELECT ALL - + COUNT ( * ) * + 81 + + - 36
----
-117

query II rowsort
SELECT DISTINCT - 7 * 89 + - + 93 + 4 + - 98, + 61 AS col0
----
-810
61

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6259
SELECT + 63 * + 28 * + + COUNT( * ) * + + ( + 38 ) + + 26 AS col2
----
67058

skipif mysql # not compatible
query I rowsort label-6259
SELECT + 63 * + 28 * + + COUNT ( * ) * + + ( + 38 ) + + 26 AS col2
----
67058

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6260
SELECT - NULLIF ( - + 53, - ( 34 ) + + 87 ) * - - CAST( NULL AS SIGNED ) - - 89 - + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-6260
SELECT - NULLIF ( - + 53, - ( 34 ) + + 87 ) * - - CAST ( NULL AS INTEGER ) - - 89 - + 7
----
NULL

query II rowsort
SELECT NULLIF ( 37, 95 + + 73 ) AS col0, 92 + - 86 * + 39
----
37
-3262

query I rowsort
SELECT ALL + 78 * + 75 AS col0
----
5850

onlyif mysql # aggregate syntax: 
query I rowsort label-6263
SELECT - CASE - 33 WHEN + 20 THEN - 91 / - COUNT( * ) + + ( + SUM( 38 ) ) + + 8 * + ( 98 ) * CASE 58 * 3 + 69 WHEN 57 / - 0 THEN + COALESCE ( ( + 4 ), - 55 + 76 ) / 8 ELSE NULL END * COUNT( * ) END * 17 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6263
SELECT - CASE - 33 WHEN + 20 THEN - 91 / - COUNT ( * ) + + ( + SUM ( 38 ) ) + + 8 * + ( 98 ) * CASE 58 * 3 + 69 WHEN 57 / - 0 THEN + COALESCE ( ( + 4 ), - 55 + 76 ) / 8 ELSE NULL END * COUNT ( * ) END * 17 col0
----
NULL

query I rowsort
SELECT DISTINCT + 88 * - - 93 AS col1
----
8184

query II rowsort
SELECT ALL + 24 AS col1, 1
----
24
1

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

skipif mysql # not compatible
query I rowsort label-6266
SELECT ALL + CAST ( COUNT ( * ) AS INTEGER ) col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6267
SELECT ALL 6 * + CAST( NULL AS SIGNED ) - - SUM( 24 ), COUNT( * ) * + 1 AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-6267
SELECT ALL 6 * + CAST ( NULL AS INTEGER ) - - SUM ( 24 ), COUNT ( * ) * + 1 AS col2
----
NULL
1

query I rowsort
SELECT NULLIF ( - 71, - 86 + - 28 + - 14 * 1 + 52 )
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-6269
SELECT NULLIF ( + 93, - COUNT( * ) ) col2
----
93

skipif mysql # not compatible
query I rowsort label-6269
SELECT NULLIF ( + 93, - COUNT ( * ) ) col2
----
93

query I rowsort
SELECT - 22 + + 50 AS col1
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6271
SELECT ALL + CAST( + 85 AS SIGNED )
----
85

skipif mysql # not compatible
query I rowsort label-6271
SELECT ALL + CAST ( + 85 AS INTEGER )
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6272
SELECT - CAST( - 66 AS SIGNED ) * - - ( + + 52 ) - + 11 + - - 67
----
3488

skipif mysql # not compatible
query I rowsort label-6272
SELECT - CAST ( - 66 AS INTEGER ) * - - ( + + 52 ) - + 11 + - - 67
----
3488

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6273
SELECT + 98 + - 34 * - CAST( + ( + 1 ) AS SIGNED ) AS col2
----
132

skipif mysql # not compatible
query I rowsort label-6273
SELECT + 98 + - 34 * - CAST ( + ( + 1 ) AS INTEGER ) AS col2
----
132

query I rowsort
SELECT 7 * + - 55 + - + 77
----
-462

query II rowsort
SELECT - 51, + 43 * 79 AS col2
----
-51
3397

query I rowsort
SELECT ALL ( - 8 ) AS col0
----
-8

query II rowsort
SELECT DISTINCT 56 AS col2, ( - - 99 ) + 94 * 61 * + 82
----
56
470287

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

skipif mysql # not compatible
query I rowsort label-6278
SELECT - AVG ( + CAST ( NULL AS INTEGER ) ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6279
SELECT ALL SUM( ALL 12 ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-6279
SELECT ALL SUM ( ALL 12 ) AS col0
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-6280
SELECT 67, + 50 - + - SUM( - 26 ) col1
----
67
24

skipif mysql # not compatible
query II rowsort label-6280
SELECT 67, + 50 - + - SUM ( - 26 ) col1
----
67
24

query I rowsort
SELECT ALL + 23 * + 18 AS col1
----
414

query I rowsort
SELECT ALL 43 + - - 43 AS col2
----
86

query I rowsort
SELECT + - 85 * + 21 AS col0
----
-1785

query I rowsort
SELECT ALL + 74 + + + 93 AS col1
----
167

query I rowsort
SELECT + 49 - + ( + 63 ) AS col0
----
-14

query II rowsort
SELECT ALL - 78 AS col0, 26 AS col2
----
-78
26

query I rowsort
SELECT + 62 * 44 AS col2
----
2728

query II rowsort
SELECT - 95 AS col0, + ( + 82 )
----
-95
82

query II rowsort
SELECT - 12 AS col1, + ( 94 ) col1
----
-12
94

onlyif mysql # DIV for integer division: 
query I rowsort label-6290
SELECT DISTINCT 50 DIV + + 72
----
0

skipif mysql # not compatible
query I rowsort label-6290
SELECT DISTINCT 50 / + + 72
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6291
SELECT - 55 * + 65 + - 40 + + ( - CAST( + 38 AS SIGNED ) ) AS col0
----
-3653

skipif mysql # not compatible
query I rowsort label-6291
SELECT - 55 * + 65 + - 40 + + ( - CAST ( + 38 AS INTEGER ) ) AS col0
----
-3653

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6292
SELECT - ( 15 ) + + + 50 + + + 81 * CAST( NULL AS SIGNED ) - - 15 * - 98
----
NULL

skipif mysql # not compatible
query I rowsort label-6292
SELECT - ( 15 ) + + + 50 + + + 81 * CAST ( NULL AS INTEGER ) - - 15 * - 98
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6293
SELECT DISTINCT 94 * 71 DIV - SUM( ALL 68 ) col1
----
-98

skipif mysql # not compatible
query I rowsort label-6293
SELECT DISTINCT 94 * 71 / - SUM ( ALL 68 ) col1
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-6294
SELECT ALL 90 DIV ( 36 ) * - 96 - - 16
----
-176

skipif mysql # not compatible
query I rowsort label-6294
SELECT ALL 90 / ( 36 ) * - 96 - - 16
----
-176

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6295
SELECT ALL 65 * - 47, + 43 + + - CAST( + 4 AS SIGNED ) + - 27 / - - CAST( NULL AS SIGNED ) AS col0
----
-3055
NULL

skipif mysql # not compatible
query II rowsort label-6295
SELECT ALL 65 * - 47, + 43 + + - CAST ( + 4 AS INTEGER ) + - 27 / - - CAST ( NULL AS INTEGER ) AS col0
----
-3055
NULL

query I rowsort
SELECT DISTINCT + 12
----
12

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6298
SELECT DISTINCT - 19 DIV + 36 AS col0, - 29 + + 34 DIV - MAX( ALL + 6 )
----
0
-34

skipif mysql # not compatible
query II rowsort label-6298
SELECT DISTINCT - 19 / + 36 AS col0, - 29 + + 34 / - MAX ( ALL + 6 )
----
0
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-6299
SELECT 83 * ( 98 ) * - CASE WHEN NOT ( 56 ) < NULL THEN ( - - 50 ) * - 44 END + - 81 / MIN( DISTINCT - 60 ) + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-6299
SELECT 83 * ( 98 ) * - CASE WHEN NOT ( 56 ) < NULL THEN ( - - 50 ) * - 44 END + - 81 / MIN ( DISTINCT - 60 ) + 37
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6300
SELECT DISTINCT - CASE NULLIF ( 92, 96 * 86 ) WHEN 63 * + + 37 * - 63 * - COUNT( * ) * - CAST( + 97 AS SIGNED ) * + 55 + ( + COUNT( * ) ) + + 68 * 7 THEN NULL ELSE 99 END
----
-99

skipif mysql # not compatible
query I rowsort label-6300
SELECT DISTINCT - CASE NULLIF ( 92, 96 * 86 ) WHEN 63 * + + 37 * - 63 * - COUNT ( * ) * - CAST ( + 97 AS INTEGER ) * + 55 + ( + COUNT ( * ) ) + + 68 * 7 THEN NULL ELSE 99 END
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6301
SELECT ( - 74 ) * CAST( + - 83 AS SIGNED ) AS col2
----
6142

skipif mysql # not compatible
query I rowsort label-6301
SELECT ( - 74 ) * CAST ( + - 83 AS INTEGER ) AS col2
----
6142

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6303
SELECT SUM( DISTINCT - - 40 ) + 91 AS col1, + CAST( NULL AS SIGNED ) * AVG ( DISTINCT ( - + 86 ) )
----
131
NULL

skipif mysql # not compatible
query II rowsort label-6303
SELECT SUM ( DISTINCT - - 40 ) + 91 AS col1, + CAST ( NULL AS INTEGER ) * AVG ( DISTINCT ( - + 86 ) )
----
131
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6304
SELECT DISTINCT - SUM( DISTINCT - 14 )
----
14

skipif mysql # not compatible
query I rowsort label-6304
SELECT DISTINCT - SUM ( DISTINCT - 14 )
----
14

query I rowsort
SELECT 23 * 15
----
345

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6306
SELECT DISTINCT - 97 + + + COALESCE ( - + 90, + COUNT( * ) + 3 + - - CAST( + 72 AS SIGNED ) * 19 * - 0 ) + 62 - - 24 + + - 48
----
-149

skipif mysql # not compatible
query I rowsort label-6306
SELECT DISTINCT - 97 + + + COALESCE ( - + 90, + COUNT ( * ) + 3 + - - CAST ( + 72 AS INTEGER ) * 19 * - 0 ) + 62 - - 24 + + - 48
----
-149

query I rowsort
SELECT 44 + + 71 AS col1
----
115

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6308
SELECT COUNT( * ) DIV + 93 - + COALESCE ( - SUM( DISTINCT 32 ), - + 52 ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-6308
SELECT COUNT ( * ) / + 93 - + COALESCE ( - SUM ( DISTINCT 32 ), - + 52 ) AS col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6309
SELECT + NULLIF ( + + 92, 16 + - MAX( ALL 57 ) * - + 32 ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-6309
SELECT + NULLIF ( + + 92, 16 + - MAX ( ALL 57 ) * - + 32 ) AS col0
----
92

query I rowsort
SELECT - + 80 col0
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6311
SELECT CAST( - 3 AS SIGNED ) + - 36
----
-39

skipif mysql # not compatible
query I rowsort label-6311
SELECT CAST ( - 3 AS INTEGER ) + - 36
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-6312
SELECT 26 DIV - + 84
----
0

skipif mysql # not compatible
query I rowsort label-6312
SELECT 26 / - + 84
----
0

query I rowsort
SELECT 13 * - 99 - 60 AS col2
----
-1347

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

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

query I rowsort
SELECT ALL - COALESCE ( - 62, - 60 - - 40 ) AS col0
----
62

query I rowsort
SELECT ALL 77 * - - COALESCE ( - 57, + 79 ) AS col0
----
-4389

query I rowsort
SELECT 6 + + 61
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6318
SELECT - SUM( + - 91 ) + - 2 * + - ( 89 )
----
269

skipif mysql # not compatible
query I rowsort label-6318
SELECT - SUM ( + - 91 ) + - 2 * + - ( 89 )
----
269

onlyif mysql # aggregate syntax: 
query I rowsort label-6319
SELECT + COUNT( * ) * - 1 + + 49 + + 10 * - + 98
----
-932

skipif mysql # not compatible
query I rowsort label-6319
SELECT + COUNT ( * ) * - 1 + + 49 + + 10 * - + 98
----
-932

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6320
SELECT - + COALESCE ( + - 39, - COALESCE ( + ( - 80 ), + CAST( NULL AS SIGNED ), - 61 ) * + COALESCE ( 43, - 29 - + 39 DIV 13 + 51 DIV + AVG ( DISTINCT 70 ), 33 ) )
----
39

skipif mysql # not compatible
query I rowsort label-6320
SELECT - + COALESCE ( + - 39, - COALESCE ( + ( - 80 ), + CAST ( NULL AS INTEGER ), - 61 ) * + COALESCE ( 43, - 29 - + 39 / 13 + 51 / + AVG ( DISTINCT 70 ), 33 ) )
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6321
SELECT ALL + NULLIF ( - - MAX( - 40 ), + 75 ) * 29 * 35 DIV + - 18 AS col1, - 56 * - NULLIF ( 71, - - 36 * + COALESCE ( - 55, + NULLIF ( 66, 2 - - CASE 71 WHEN 45 * + SUM( ALL - 9 ) THEN + 93 WHEN 27 THEN 59 + - 25 END ) * 0 ) )
----
2255
3976

skipif mysql # not compatible
query II rowsort label-6321
SELECT ALL + NULLIF ( - - MAX ( - 40 ), + 75 ) * 29 * 35 / + - 18 AS col1, - 56 * - NULLIF ( 71, - - 36 * + COALESCE ( - 55, + NULLIF ( 66, 2 - - CASE 71 WHEN 45 * + SUM ( ALL - 9 ) THEN + 93 WHEN 27 THEN 59 + - 25 END ) * 0 ) )
----
2255
3976

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6322
SELECT 75 + + COALESCE ( - 60, - 22 * + 85 ) + - - 52 + + 63 * + 27 * + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6322
SELECT 75 + + COALESCE ( - 60, - 22 * + 85 ) + - - 52 + + 63 * + 27 * + CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT ALL 66 * + 36 * + + 77
----
182952

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6324
SELECT 62 * 24 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6324
SELECT 62 * 24 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - - 5
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6326
SELECT - 10 + + NULLIF ( + 0, MAX( - 33 ) )
----
-10

skipif mysql # not compatible
query I rowsort label-6326
SELECT - 10 + + NULLIF ( + 0, MAX ( - 33 ) )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-6327
SELECT DISTINCT - COALESCE ( + - NULLIF ( - 58, - ( COALESCE ( + - CASE CASE - 31 WHEN + 11 THEN 54 ELSE - - CASE + 19 WHEN - COALESCE ( + 44, - 1, + 35, ( - ( 35 ) ) ) * 9 - - COUNT( * ) THEN ( + COUNT( * ) ) * - 19 WHEN + 99 THEN NULL ELSE + SUM( ALL ( 61 ) ) + - COUNT( * ) * - 44 END END WHEN 96 * - 36 + 35 * SUM( 24 ) THEN + 81 + + 35 END, + 53 + - 57, + 75 ) ) ), + 36 + + ( 22 ), 38 )
----
-58

skipif mysql # not compatible
query I rowsort label-6327
SELECT DISTINCT - COALESCE ( + - NULLIF ( - 58, - ( COALESCE ( + - CASE CASE - 31 WHEN + 11 THEN 54 ELSE - - CASE + 19 WHEN - COALESCE ( + 44, - 1, + 35, ( - ( 35 ) ) ) * 9 - - COUNT ( * ) THEN ( + COUNT ( * ) ) * - 19 WHEN + 99 THEN NULL ELSE + SUM ( ALL ( 61 ) ) + - COUNT ( * ) * - 44 END END WHEN 96 * - 36 + 35 * SUM ( 24 ) THEN + 81 + + 35 END, + 53 + - 57, + 75 ) ) ), + 36 + + ( 22 ), 38 )
----
-58

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6328
SELECT DISTINCT 64 DIV ( CAST( + ( + 72 ) AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-6328
SELECT DISTINCT 64 / ( CAST ( + ( + 72 ) AS INTEGER ) )
----
0

query I rowsort
SELECT 8 * 72 * - 23 AS col2
----
-13248

onlyif mysql # DIV for integer division: 
query I rowsort label-6330
SELECT ALL 11 DIV - 39 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6330
SELECT ALL 11 / - 39 AS col1
----
0

query I rowsort
SELECT 6 * ( 26 ) + + 68 AS col2
----
224

query II rowsort
SELECT + 78 AS col2, - 73
----
78
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-6333
SELECT - 29 * + 9 - + NULLIF ( - + MAX( 99 ), - ( 58 ) + - 0 + NULLIF ( + - SUM( DISTINCT + 97 ), + ( COUNT( * ) ) + 29 ) ) AS col0
----
-162

skipif mysql # not compatible
query I rowsort label-6333
SELECT - 29 * + 9 - + NULLIF ( - + MAX ( 99 ), - ( 58 ) + - 0 + NULLIF ( + - SUM ( DISTINCT + 97 ), + ( COUNT ( * ) ) + 29 ) ) AS col0
----
-162

query I rowsort
SELECT ALL 63 * 12
----
756

query I rowsort
SELECT 33 * - 90 col0
----
-2970

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6338
SELECT ALL - SUM( + CAST( + 11 AS SIGNED ) ) + + 65 + - 55 * - - MAX( ALL - 22 )
----
1264

skipif mysql # not compatible
query I rowsort label-6338
SELECT ALL - SUM ( + CAST ( + 11 AS INTEGER ) ) + + 65 + - 55 * - - MAX ( ALL - 22 )
----
1264

query I rowsort
SELECT 44 * - + 67 + COALESCE ( + 34, - - 38 * - 61 )
----
-2914

query II rowsort
SELECT DISTINCT - 65 AS col1, - 63 * - 0 AS col0
----
-65
0

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

query I rowsort
SELECT - 81 * 23 * + + 86 * - - 9
----
-1441962

query I rowsort
SELECT 49 + 32 AS col1
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-6344
SELECT ALL - 7 + + MIN( DISTINCT - 58 ) AS col0, 1
----
-65
1

skipif mysql # not compatible
query II rowsort label-6344
SELECT ALL - 7 + + MIN ( DISTINCT - 58 ) AS col0, 1
----
-65
1

query I rowsort
SELECT + + 60 * 37 * - - 45 + + - 58
----
99842

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6346
SELECT DISTINCT - CAST( - CASE + - CAST( NULL AS SIGNED ) WHEN 69 - CASE COUNT( * ) WHEN 89 THEN 86 END THEN - 55 + + 43 + - 75 END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6346
SELECT DISTINCT - CAST ( - CASE + - CAST ( NULL AS INTEGER ) WHEN 69 - CASE COUNT ( * ) WHEN 89 THEN 86 END THEN - 55 + + 43 + - 75 END AS INTEGER )
----
NULL

query I rowsort
SELECT 28 * - 0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6348
SELECT ALL - ( 49 ) DIV 61 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6348
SELECT ALL - ( 49 ) / 61 AS col0
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6350
SELECT ALL - CAST( NULL AS SIGNED ) AS col1, + ( + 19 ) + SUM( ALL - - 69 ) - + + 36 + + SUM( - 14 ) col0
----
NULL
38

skipif mysql # not compatible
query II rowsort label-6350
SELECT ALL - CAST ( NULL AS INTEGER ) AS col1, + ( + 19 ) + SUM ( ALL - - 69 ) - + + 36 + + SUM ( - 14 ) col0
----
NULL
38

onlyif mysql # aggregate syntax: 
query I rowsort label-6351
SELECT DISTINCT - 63 - COUNT( - 78 ) + - - 26 AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-6351
SELECT DISTINCT - 63 - COUNT ( - 78 ) + - - 26 AS col2
----
-38

query II rowsort
SELECT ALL - 87 AS col2, - 93 col0
----
-87
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-6353
SELECT COUNT( * ) * SUM( ALL - 53 ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-6353
SELECT COUNT ( * ) * SUM ( ALL - 53 ) AS col2
----
-53

query I rowsort
SELECT ALL 8 col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6355
SELECT 77 * + 19 + + 42 + + COUNT( * ) + - 74
----
1432

skipif mysql # not compatible
query I rowsort label-6355
SELECT 77 * + 19 + + 42 + + COUNT ( * ) + - 74
----
1432

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6356
SELECT ALL + + ( + ( - 63 ) ) / - 70 * - CAST( NULL AS SIGNED ) * + 17 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6356
SELECT ALL + + ( + ( - 63 ) ) / - 70 * - CAST ( NULL AS INTEGER ) * + 17 - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6357
SELECT - COALESCE ( - 0, 89, + 16 * - - CAST( NULL AS SIGNED ) ) - - + 57
----
57

skipif mysql # not compatible
query I rowsort label-6357
SELECT - COALESCE ( - 0, 89, + 16 * - - CAST ( NULL AS INTEGER ) ) - - + 57
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6358
SELECT ALL 23 * + CASE - 62 WHEN COALESCE ( + 67, - 9 * - COALESCE ( + MAX( - 65 ), 97 ) + - - 74 / - CASE 56 WHEN - - 25 THEN 96 * - 91 WHEN 83 * + 86 + 33 / + COALESCE ( ( 4 ), - 27 ) THEN 35 + 79 / + 50 END ) * 55 THEN NULL WHEN + 76 + 58 THEN 97 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6358
SELECT ALL 23 * + CASE - 62 WHEN COALESCE ( + 67, - 9 * - COALESCE ( + MAX ( - 65 ), 97 ) + - - 74 / - CASE 56 WHEN - - 25 THEN 96 * - 91 WHEN 83 * + 86 + 33 / + COALESCE ( ( 4 ), - 27 ) THEN 35 + 79 / + 50 END ) * 55 THEN NULL WHEN + 76 + 58 THEN 97 END AS col2
----
NULL

query I rowsort
SELECT - 29 * + 47
----
-1363

onlyif mysql # aggregate syntax: 
query I rowsort label-6360
SELECT ALL - COUNT( - + 73 ) + ( 35 ) + - - 3 AS col1
----
37

skipif mysql # not compatible
query I rowsort label-6360
SELECT ALL - COUNT ( - + 73 ) + ( 35 ) + - - 3 AS col1
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-6361
SELECT - 93 * 23 AS col1, + CASE + COUNT( * ) WHEN - + 65 THEN NULL WHEN - COALESCE ( + NULLIF ( 10, 45 * + MIN( DISTINCT + 9 ) ), COUNT( * ) + - 14 ) THEN + 24 * - 89 END
----
-2139
NULL

skipif mysql # not compatible
query II rowsort label-6361
SELECT - 93 * 23 AS col1, + CASE + COUNT ( * ) WHEN - + 65 THEN NULL WHEN - COALESCE ( + NULLIF ( 10, 45 * + MIN ( DISTINCT + 9 ) ), COUNT ( * ) + - 14 ) THEN + 24 * - 89 END
----
-2139
NULL

query I rowsort
SELECT + 99 + + 7 * - + 65 AS col2
----
-356

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6363
SELECT DISTINCT - 10 * + 81 + CASE CAST( NULL AS SIGNED ) WHEN - 41 + + COUNT( * ) THEN + SUM( ALL + - CASE 64 WHEN + 29 THEN NULL WHEN - 20 THEN 54 ELSE NULL END ) - 75 + - COUNT( * ) - + CASE - 42 WHEN 68 - 3 THEN NULL ELSE - NULLIF ( - 14, - 82 / + 61 ) END * - 45 ELSE + 31 END + 75 * ( + 48 )
----
2821

skipif mysql # not compatible
query I rowsort label-6363
SELECT DISTINCT - 10 * + 81 + CASE CAST ( NULL AS INTEGER ) WHEN - 41 + + COUNT ( * ) THEN + SUM ( ALL + - CASE 64 WHEN + 29 THEN NULL WHEN - 20 THEN 54 ELSE NULL END ) - 75 + - COUNT ( * ) - + CASE - 42 WHEN 68 - 3 THEN NULL ELSE - NULLIF ( - 14, - 82 / + 61 ) END * - 45 ELSE + 31 END + 75 * ( + 48 )
----
2821

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6364
SELECT ALL + CAST( + NULLIF ( + + NULLIF ( + COUNT( * ), + - 0 ), - 83 ) AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6364
SELECT ALL + CAST ( + NULLIF ( + + NULLIF ( + COUNT ( * ), + - 0 ), - 83 ) AS INTEGER ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6365
SELECT DISTINCT - 44 * + 64 + COUNT( * )
----
-2815

skipif mysql # not compatible
query I rowsort label-6365
SELECT DISTINCT - 44 * + 64 + COUNT ( * )
----
-2815

query II rowsort
SELECT ALL 31 * + COALESCE ( + 53, - 78 ) + - 65 col0, - 78 + 37 * + + 63
----
1578
2253

query I rowsort
SELECT NULLIF ( + - 3, - 6 / - 8 + + - 43 )
----
-3

query I rowsort
SELECT ALL + 11 * - 30 + + 14 col1
----
-316

query I rowsort
SELECT - 63 * + + 91 * + 28
----
-160524

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6370
SELECT ALL + CAST( + MAX( ALL + 76 ) AS SIGNED ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-6370
SELECT ALL + CAST ( + MAX ( ALL + 76 ) AS INTEGER ) AS col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6371
SELECT CASE + COALESCE ( + NULLIF ( - + 62, + 2 ), - ( - 58 ) * + COUNT( * ) + - - COUNT( * ) ) WHEN + 15 + + + 96 * - COUNT( * ) * - 73 * NULLIF ( 77, COUNT( * ) ) * - 72 + 40 / 12 THEN + 71 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6371
SELECT CASE + COALESCE ( + NULLIF ( - + 62, + 2 ), - ( - 58 ) * + COUNT ( * ) + - - COUNT ( * ) ) WHEN + 15 + + + 96 * - COUNT ( * ) * - 73 * NULLIF ( 77, COUNT ( * ) ) * - 72 + 40 / 12 THEN + 71 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6372
SELECT ALL - 33 * 20 * - 74 + COUNT( * ) AS col2
----
48841

skipif mysql # not compatible
query I rowsort label-6372
SELECT ALL - 33 * 20 * - 74 + COUNT ( * ) AS col2
----
48841

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6373
SELECT COALESCE ( - MAX( - + 83 ), 33 + - CAST( NULL AS SIGNED ) + MIN( DISTINCT 83 ) )
----
83

skipif mysql # not compatible
query I rowsort label-6373
SELECT COALESCE ( - MAX ( - + 83 ), 33 + - CAST ( NULL AS INTEGER ) + MIN ( DISTINCT 83 ) )
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6374
SELECT + NULLIF ( ( + - ( + + CAST( NULL AS SIGNED ) ) ), 93 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6374
SELECT + NULLIF ( ( + - ( + + CAST ( NULL AS INTEGER ) ) ), 93 )
----
NULL

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

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

query I rowsort
SELECT + NULLIF ( ( + 28 ), - 1 * - 47 ) AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6377
SELECT + MAX( + 45 ) * + 56
----
2520

skipif mysql # not compatible
query I rowsort label-6377
SELECT + MAX ( + 45 ) * + 56
----
2520

onlyif mysql # DIV for integer division: 
query I rowsort label-6378
SELECT + + 41 DIV ( 28 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6378
SELECT + + 41 / ( 28 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6379
SELECT DISTINCT - - MAX( 73 ) * - CASE - 11 WHEN - 11 + COUNT( * ) THEN NULL WHEN + + 50 * - 93 THEN NULL WHEN - MIN( DISTINCT - COALESCE ( + 99, 62, + - 93 ) ) * + 59 + - 94 * + 2 THEN CAST( NULL AS SIGNED ) * 42 END + - 81 - + 14 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6379
SELECT DISTINCT - - MAX ( 73 ) * - CASE - 11 WHEN - 11 + COUNT ( * ) THEN NULL WHEN + + 50 * - 93 THEN NULL WHEN - MIN ( DISTINCT - COALESCE ( + 99, 62, + - 93 ) ) * + 59 + - 94 * + 2 THEN CAST ( NULL AS INTEGER ) * 42 END + - 81 - + 14 AS col0
----
NULL

query I rowsort
SELECT ALL + + 34 * + 75 - 34 AS col1
----
2516

onlyif mysql # aggregate syntax: 
query I rowsort label-6381
SELECT ALL - NULLIF ( + 56, + 28 * + 48 * - COUNT( * ) ) * - 58
----
3248

skipif mysql # not compatible
query I rowsort label-6381
SELECT ALL - NULLIF ( + 56, + 28 * + 48 * - COUNT ( * ) ) * - 58
----
3248

query I rowsort
SELECT - NULLIF ( + 54, - 23 ) AS col2
----
-54

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6384
SELECT - + 55 * CASE - 19 WHEN + 54 THEN - ( 7 ) ELSE - SUM( DISTINCT + - 73 ) END + - - 38 * + 89 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6384
SELECT - + 55 * CASE - 19 WHEN + 54 THEN - ( 7 ) ELSE - SUM ( DISTINCT + - 73 ) END + - - 38 * + 89 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6385
SELECT + 82 + + MAX( + NULLIF ( 69, - NULLIF ( CAST( NULL AS SIGNED ), CASE - + ( - 65 ) WHEN + 14 THEN NULL WHEN + 79 THEN NULLIF ( - 28, - + 25 ) + 12 END + 82 ) ) ) col0
----
151

skipif mysql # not compatible
query I rowsort label-6385
SELECT + 82 + + MAX ( + NULLIF ( 69, - NULLIF ( CAST ( NULL AS INTEGER ), CASE - + ( - 65 ) WHEN + 14 THEN NULL WHEN + 79 THEN NULLIF ( - 28, - + 25 ) + 12 END + 82 ) ) ) col0
----
151

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6386
SELECT + 95 + 89 + + CAST( NULL AS SIGNED ) * - + SUM( ALL + - 12 ) - 62 + - AVG ( 31 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6386
SELECT + 95 + 89 + + CAST ( NULL AS INTEGER ) * - + SUM ( ALL + - 12 ) - 62 + - AVG ( 31 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6387
SELECT - - 65 - - SUM( + - 9 ) * - CASE - 44 WHEN - COALESCE ( 73, - - 82, + COUNT( * ) ) THEN - - 43 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6387
SELECT - - 65 - - SUM ( + - 9 ) * - CASE - 44 WHEN - COALESCE ( 73, - - 82, + COUNT ( * ) ) THEN - - 43 END AS col0
----
NULL

query I rowsort
SELECT ALL CASE - 44 WHEN - ( - + 93 ) THEN - 33 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 68 * 44 + - 28 AS col1
----
-3020

query II rowsort
SELECT ALL ( 62 ) AS col0, 36
----
62
36

onlyif mysql # aggregate syntax: 
query II rowsort label-6391
SELECT + - COUNT( * ) + - + 30 AS col0, + 91 AS col0
----
-31
91

skipif mysql # not compatible
query II rowsort label-6391
SELECT + - COUNT ( * ) + - + 30 AS col0, + 91 AS col0
----
-31
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6392
SELECT - COALESCE ( MIN( DISTINCT - - 45 ), - CAST( NULL AS SIGNED ) + - COUNT( * ) ) * - - 42 + - 72
----
-1962

skipif mysql # not compatible
query I rowsort label-6392
SELECT - COALESCE ( MIN ( DISTINCT - - 45 ), - CAST ( NULL AS INTEGER ) + - COUNT ( * ) ) * - - 42 + - 72
----
-1962

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6393
SELECT + CASE 91 WHEN + 2 - + 93 THEN + 22 + - CAST( ( COUNT( * ) ) AS SIGNED ) END * - - 9
----
NULL

skipif mysql # not compatible
query I rowsort label-6393
SELECT + CASE 91 WHEN + 2 - + 93 THEN + 22 + - CAST ( ( COUNT ( * ) ) AS INTEGER ) END * - - 9
----
NULL

query I rowsort
SELECT ALL CASE + 71 WHEN 17 THEN + - 0 ELSE NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6395
SELECT + ( + 41 ) DIV + 69 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6395
SELECT + ( + 41 ) / + 69 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6396
SELECT ALL COALESCE ( + 76, - - CAST( + - 20 AS SIGNED ) )
----
76

skipif mysql # not compatible
query I rowsort label-6396
SELECT ALL COALESCE ( + 76, - - CAST ( + - 20 AS INTEGER ) )
----
76

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

skipif mysql # not compatible
query II rowsort label-6397
SELECT DISTINCT COUNT ( * ), 64 AS col1
----
1
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6398
SELECT ALL - 25 + + 92 - - COUNT( DISTINCT + + 64 ) + + + COUNT( * ) * + 75 * 14 * + 25 + + + COALESCE ( NULLIF ( - COUNT( * ), + 75 * - ( 80 ) + + + 79 ), + 89 ) AS col0
----
26317

skipif mysql # not compatible
query I rowsort label-6398
SELECT ALL - 25 + + 92 - - COUNT ( DISTINCT + + 64 ) + + + COUNT ( * ) * + 75 * 14 * + 25 + + + COALESCE ( NULLIF ( - COUNT ( * ), + 75 * - ( 80 ) + + + 79 ), + 89 ) AS col0
----
26317

query I rowsort
SELECT DISTINCT + ( - ( 64 ) ) * + 71 + NULLIF ( ( 87 ), 75 + + - 6 * + 9 * + 58 ) * - 88 AS col0
----
-12200

query I rowsort
SELECT - 98 * + 83 AS col2
----
-8134

query I rowsort
SELECT ALL + 53 * - 59
----
-3127

onlyif mysql # aggregate syntax: 
query I rowsort label-6402
SELECT 80 * + 35 + + COALESCE ( - + 71, COUNT( * ) ) col0
----
2729

skipif mysql # not compatible
query I rowsort label-6402
SELECT 80 * + 35 + + COALESCE ( - + 71, COUNT ( * ) ) col0
----
2729

onlyif mysql # aggregate syntax: 
query I rowsort label-6403
SELECT - 62 - - 49 + + COUNT( * )
----
-12

skipif mysql # not compatible
query I rowsort label-6403
SELECT - 62 - - 49 + + COUNT ( * )
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6404
SELECT 17 DIV - 75 * + 28 + MAX( + 78 )
----
78

skipif mysql # not compatible
query I rowsort label-6404
SELECT 17 / - 75 * + 28 + MAX ( + 78 )
----
78

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

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

query I rowsort
SELECT - 86 + 54 AS col2
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6407
SELECT - + CAST( + + 64 AS SIGNED ) * - 28
----
1792

skipif mysql # not compatible
query I rowsort label-6407
SELECT - + CAST ( + + 64 AS INTEGER ) * - 28
----
1792

query I rowsort
SELECT DISTINCT + COALESCE ( - 54, + + 23 * 46 ) AS col1
----
-54

query I rowsort
SELECT ALL - 8 * 24 - - 38 * - 51 AS col0
----
-2130

query I rowsort
SELECT + 13 + - 36
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-6411
SELECT - CASE + AVG ( ALL - 85 ) WHEN + 72 + + AVG ( DISTINCT + 59 ) * - 63 * + 18 THEN - CASE + MIN( ALL - ( - 39 ) ) WHEN + 21 * - 37 * - 17 THEN 80 WHEN CASE 25 WHEN 36 THEN - COUNT( * ) WHEN 46 THEN NULL ELSE COALESCE ( COUNT( * ), ( COUNT( * ) ) ) - - 11 END * - COUNT( * ) + COUNT( * ) THEN NULL END END * CASE 10 WHEN + 51 / - AVG ( DISTINCT + 72 * 36 ) THEN NULL WHEN + 4 * - MAX( ALL 86 ) THEN + 51 / 47 ELSE ( 6 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6411
SELECT - CASE + AVG ( ALL - 85 ) WHEN + 72 + + AVG ( DISTINCT + 59 ) * - 63 * + 18 THEN - CASE + MIN ( ALL - ( - 39 ) ) WHEN + 21 * - 37 * - 17 THEN 80 WHEN CASE 25 WHEN 36 THEN - COUNT ( * ) WHEN 46 THEN NULL ELSE COALESCE ( COUNT ( * ), ( COUNT ( * ) ) ) - - 11 END * - COUNT ( * ) + COUNT ( * ) THEN NULL END END * CASE 10 WHEN + 51 / - AVG ( DISTINCT + 72 * 36 ) THEN NULL WHEN + 4 * - MAX ( ALL 86 ) THEN + 51 / 47 ELSE ( 6 ) END
----
NULL

query I rowsort
SELECT + - 91 col2
----
-91

query II rowsort
SELECT + - 69 + + ( - 10 ), 56 + - + 62 AS col0
----
-79
-6

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

skipif mysql # not compatible
query I rowsort label-6414
SELECT ALL - 63 / + 68 * - + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6415
SELECT ALL + + NULLIF ( - 27, + ( - - 73 ) * + 51 + 47 + + 41 * + 60 + - - COUNT( * ) )
----
-27

skipif mysql # not compatible
query I rowsort label-6415
SELECT ALL + + NULLIF ( - 27, + ( - - 73 ) * + 51 + 47 + + 41 * + 60 + - - COUNT ( * ) )
----
-27

query I rowsort
SELECT ALL + 30 * 26 AS col1
----
780

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6417
SELECT + - CAST( NULL AS SIGNED ) * + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-6417
SELECT + - CAST ( NULL AS INTEGER ) * + 67
----
NULL

query I rowsort
SELECT ALL 32 * 12 AS col2
----
384

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6420
SELECT ALL ( 64 ) DIV + 8 + + MIN( + 18 ) AS col1, 52 * 56 * - 54 * + 43
----
26
-6761664

skipif mysql # not compatible
query II rowsort label-6420
SELECT ALL ( 64 ) / + 8 + + MIN ( + 18 ) AS col1, 52 * 56 * - 54 * + 43
----
26
-6761664

query II rowsort
SELECT 39 - + 71 * + 10 col0, 38
----
-671
38

query I rowsort
SELECT 82 - + 4 * - 29 + + - 27
----
171

query II rowsort
SELECT ALL 11 col2, 40 * + 79
----
11
3160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6424
SELECT - 64, - 91 / - 70 * - ( 39 ) * SUM( ALL + NULLIF ( + - 8, - 17 ) ) + + - CASE - - 27 WHEN - 59 THEN - 90 * - CAST( NULL AS SIGNED ) / - 26 + 3 * CASE NULLIF ( COUNT( * ), + 10 * - 72 ) * 87 WHEN + 38 THEN 97 END ELSE NULL END col0
----
-64
NULL

skipif mysql # not compatible
query II rowsort label-6424
SELECT - 64, - 91 / - 70 * - ( 39 ) * SUM ( ALL + NULLIF ( + - 8, - 17 ) ) + + - CASE - - 27 WHEN - 59 THEN - 90 * - CAST ( NULL AS INTEGER ) / - 26 + 3 * CASE NULLIF ( COUNT ( * ), + 10 * - 72 ) * 87 WHEN + 38 THEN 97 END ELSE NULL END col0
----
-64
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6425
SELECT DISTINCT CASE - 17 WHEN + 73 THEN NULLIF ( + + COUNT( * ), NULLIF ( 80, 90 * - 77 * - 51 ) ) END + + 9 AS col1, + ( + MAX( + 31 ) ) + - 92 + - + 88 * 43
----
NULL
-3845

skipif mysql # not compatible
query II rowsort label-6425
SELECT DISTINCT CASE - 17 WHEN + 73 THEN NULLIF ( + + COUNT ( * ), NULLIF ( 80, 90 * - 77 * - 51 ) ) END + + 9 AS col1, + ( + MAX ( + 31 ) ) + - 92 + - + 88 * 43
----
NULL
-3845

query I rowsort
SELECT ALL 41 + - - ( - 33 ) * + - 25
----
866

query I rowsort
SELECT ( - - 78 ) - + 78
----
0

query II rowsort
SELECT 94 AS col1, + 97 * - 88 AS col1
----
94
-8536

onlyif mysql # aggregate syntax: 
query II rowsort label-6429
SELECT DISTINCT NULLIF ( + COUNT( * ), 54 + 46 * + + 10 ) + + + 13, - 88 col1
----
14
-88

skipif mysql # not compatible
query II rowsort label-6429
SELECT DISTINCT NULLIF ( + COUNT ( * ), 54 + 46 * + + 10 ) + + + 13, - 88 col1
----
14
-88

query I rowsort
SELECT ALL ( 20 ) + 70 AS col1
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-6431
SELECT ( - MIN( ALL 61 ) ) * + + NULLIF ( - 98, + 99 * 89 ) AS col2, 62 * + + MAX( 50 ) AS col2
----
5978
3100

skipif mysql # not compatible
query II rowsort label-6431
SELECT ( - MIN ( ALL 61 ) ) * + + NULLIF ( - 98, + 99 * 89 ) AS col2, 62 * + + MAX ( 50 ) AS col2
----
5978
3100

onlyif mysql # aggregate syntax: 
query I rowsort label-6432
SELECT 42 * - - CASE - 46 WHEN + - 58 + 5 * - 34 THEN + 81 / + 28 + + COUNT( * ) / + - 63 * 14 - - + 60 / - 42 + - + 48 WHEN + + 45 THEN 22 WHEN - MIN( 8 ) THEN NULL END * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6432
SELECT 42 * - - CASE - 46 WHEN + - 58 + 5 * - 34 THEN + 81 / + 28 + + COUNT ( * ) / + - 63 * 14 - - + 60 / - 42 + - + 48 WHEN + + 45 THEN 22 WHEN - MIN ( 8 ) THEN NULL END * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6433
SELECT 94 * - 20 + - ( - - SUM( ALL - 54 ) )
----
-1826

skipif mysql # not compatible
query I rowsort label-6433
SELECT 94 * - 20 + - ( - - SUM ( ALL - 54 ) )
----
-1826

query II rowsort
SELECT ALL - 3 AS col0, - 36
----
-3
-36

query I rowsort
SELECT + - COALESCE ( - 23, - 75 - 14 )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6436
SELECT - COALESCE ( 61, + MIN( DISTINCT - 76 ), - ( - 51 ) * + - 66 ) AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-6436
SELECT - COALESCE ( 61, + MIN ( DISTINCT - 76 ), - ( - 51 ) * + - 66 ) AS col0
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6437
SELECT + 92, CAST( NULL AS SIGNED ) AS col2
----
92
NULL

skipif mysql # not compatible
query II rowsort label-6437
SELECT + 92, CAST ( NULL AS INTEGER ) AS col2
----
92
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6438
SELECT - COUNT( * ) * 82 + - 97 - + - NULLIF ( - 22, + SUM( + 25 ) ) - 96 + - 26 * - COUNT( * )
----
-271

skipif mysql # not compatible
query I rowsort label-6438
SELECT - COUNT ( * ) * 82 + - 97 - + - NULLIF ( - 22, + SUM ( + 25 ) ) - 96 + - 26 * - COUNT ( * )
----
-271

onlyif mysql # DIV for integer division: 
query I rowsort label-6439
SELECT + 41 DIV + 56 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6439
SELECT + 41 / + 56 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6440
SELECT + 24 * - COUNT( * ) + COUNT( * ) * + 27 + + - 91 col1
----
-88

skipif mysql # not compatible
query I rowsort label-6440
SELECT + 24 * - COUNT ( * ) + COUNT ( * ) * + 27 + + - 91 col1
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6441
SELECT - 91 * + - CASE - 40 WHEN + + COUNT( * ) THEN CAST( + + 13 AS SIGNED ) END AS col0, - 38 * 59 DIV 49 * 54 * - 20 * 55 * - 88 + + COALESCE ( - 90, + 65 DIV 8, - ( 14 ) + 26 * 23 )
----
NULL
-235224090

skipif mysql # not compatible
query II rowsort label-6441
SELECT - 91 * + - CASE - 40 WHEN + + COUNT ( * ) THEN CAST ( + + 13 AS INTEGER ) END AS col0, - 38 * 59 / 49 * 54 * - 20 * 55 * - 88 + + COALESCE ( - 90, + 65 / 8, - ( 14 ) + 26 * 23 )
----
NULL
-235224090

query I rowsort
SELECT + 69 * 73 - + 53 AS col2
----
4984

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

skipif mysql # not compatible
query I rowsort label-6443
SELECT ALL - 82 + + COUNT ( * ) * 87
----
5

query I rowsort
SELECT + + 77 AS col2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6445
SELECT - COUNT( * ) - - 68 - + 78
----
-11

skipif mysql # not compatible
query I rowsort label-6445
SELECT - COUNT ( * ) - - 68 - + 78
----
-11

query I rowsort
SELECT 92 + + 34 AS col2
----
126

query I rowsort
SELECT 27 - ( + 7 ) + - - 67 AS col0
----
87

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

query I rowsort
SELECT DISTINCT 0 * + 66 AS col1
----
0

query I rowsort
SELECT 17 + 36 col1
----
53

query I rowsort
SELECT DISTINCT - 80 * + 18 * + 5
----
-7200

query I rowsort
SELECT ALL NULLIF ( 0, 67 ) - - 85
----
85

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6453
SELECT 36 + - COALESCE ( ( + 88 ), + 61 + + + CAST( NULL AS SIGNED ) ) DIV - + ( - - 17 ) + + + ( 0 ) AS col0
----
41

skipif mysql # not compatible
query I rowsort label-6453
SELECT 36 + - COALESCE ( ( + 88 ), + 61 + + + CAST ( NULL AS INTEGER ) ) / - + ( - - 17 ) + + + ( 0 ) AS col0
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-6454
SELECT 7 DIV - 75 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6454
SELECT 7 / - 75 AS col1
----
0

query II rowsort
SELECT 42 * + 64, 87 * + 9 col2
----
2688
783

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6457
SELECT COALESCE ( - 83, - 91 * + 89 * - COALESCE ( + 51, + COUNT( * ) ) - 35 ) * + 86 AS col1
----
-7138

skipif mysql # not compatible
query I rowsort label-6457
SELECT COALESCE ( - 83, - 91 * + 89 * - COALESCE ( + 51, + COUNT ( * ) ) - 35 ) * + 86 AS col1
----
-7138

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

skipif mysql # not compatible
query I rowsort label-6458
SELECT CAST ( - AVG ( + 50 ) AS INTEGER ) * COUNT ( * )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-6459
SELECT - MIN( ALL + + 6 ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-6459
SELECT - MIN ( ALL + + 6 ) AS col0
----
-6

query I rowsort
SELECT DISTINCT 89 col1
----
89

query I rowsort
SELECT ALL 27 - + 42 AS col0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6462
SELECT CAST( NULL AS SIGNED ) + + 57 * 96 + - ( + 9 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6462
SELECT CAST ( NULL AS INTEGER ) + + 57 * 96 + - ( + 9 ) AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6463
SELECT + MIN ( + 85 )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6464
SELECT ALL - 30 * COUNT( * ) * - + 33
----
990

skipif mysql # not compatible
query I rowsort label-6464
SELECT ALL - 30 * COUNT ( * ) * - + 33
----
990

query I rowsort
SELECT 51 * 22
----
1122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6466
SELECT + 4 * + 98 * - 97 + - + CAST( NULL AS SIGNED ) + + CASE + COUNT( * ) WHEN + ( 82 ) / - ( + 75 ) + COUNT( * ) + - - MAX( - + 74 ) / - - CASE 84 WHEN 12 + 45 + AVG ( ALL + 30 ) THEN - 13 * CAST( 93 * - 48 AS SIGNED ) WHEN 97 THEN NULL ELSE NULL END * 79 - - 77 + 89 * ( + COUNT( * ) ) THEN 37 * + 94 ELSE 98 END + 81 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6466
SELECT + 4 * + 98 * - 97 + - + CAST ( NULL AS INTEGER ) + + CASE + COUNT ( * ) WHEN + ( 82 ) / - ( + 75 ) + COUNT ( * ) + - - MAX ( - + 74 ) / - - CASE 84 WHEN 12 + 45 + AVG ( ALL + 30 ) THEN - 13 * CAST ( 93 * - 48 AS INTEGER ) WHEN 97 THEN NULL ELSE NULL END * 79 - - 77 + 89 * ( + COUNT ( * ) ) THEN 37 * + 94 ELSE 98 END + 81 AS col2
----
NULL

query II rowsort
SELECT + + ( + 52 ) AS col1, + NULLIF ( + - 9, - - 19 * - ( - 39 ) ) * - 33
----
52
297

query I rowsort
SELECT ALL - - 65
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-6469
SELECT - 17 * + - 22 + - ( + - COUNT( * ) ) + + COALESCE ( - 77, + 13, - 41 ), - 0 * 78 * - 67 col1
----
298
0

skipif mysql # not compatible
query II rowsort label-6469
SELECT - 17 * + - 22 + - ( + - COUNT ( * ) ) + + COALESCE ( - 77, + 13, - 41 ), - 0 * 78 * - 67 col1
----
298
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6470
SELECT 72 - SUM( - CAST( NULL AS SIGNED ) )
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6471
SELECT - COALESCE ( + 11, CAST( - COUNT( * ) AS SIGNED ) ) * - 9 - 84
----
15

skipif mysql # not compatible
query I rowsort label-6471
SELECT - COALESCE ( + 11, CAST ( - COUNT ( * ) AS INTEGER ) ) * - 9 - 84
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-6472
SELECT - 21 * 86 * - CASE + - CASE - - COUNT( * ) WHEN + + NULLIF ( + - MAX( - 16 ), + COUNT( * ) ) + - 98 / 72 + - 64 THEN 56 ELSE NULL END WHEN 17 + - 55 THEN + 3 / - 78 WHEN - CASE WHEN - 48 < ( 87 * 39 + + 15 ) THEN - 81 / - 92 END THEN + 32 / MAX( DISTINCT 17 ) + - 69 END + + 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6472
SELECT - 21 * 86 * - CASE + - CASE - - COUNT ( * ) WHEN + + NULLIF ( + - MAX ( - 16 ), + COUNT ( * ) ) + - 98 / 72 + - 64 THEN 56 ELSE NULL END WHEN 17 + - 55 THEN + 3 / - 78 WHEN - CASE WHEN - 48 < ( 87 * 39 + + 15 ) THEN - 81 / - 92 END THEN + 32 / MAX ( DISTINCT 17 ) + - 69 END + + 40 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6473
SELECT ALL - CASE + 36 WHEN - 39 THEN - 82 / 74 * 27 * + 40 * - COUNT( * ) + + 60 + - 8 + + 70 * + 15 + + 97 * - AVG ( ALL 48 ) + + - 75 / + - 87 * COUNT( * ) - + 91 / - ( NULLIF ( 11, CASE + 68 WHEN COUNT( * ) THEN NULL ELSE 88 END ) ) WHEN COUNT( * ) + - 10 THEN 49 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6473
SELECT ALL - CASE + 36 WHEN - 39 THEN - 82 / 74 * 27 * + 40 * - COUNT ( * ) + + 60 + - 8 + + 70 * + 15 + + 97 * - AVG ( ALL 48 ) + + - 75 / + - 87 * COUNT ( * ) - + 91 / - ( NULLIF ( 11, CASE + 68 WHEN COUNT ( * ) THEN NULL ELSE 88 END ) ) WHEN COUNT ( * ) + - 10 THEN 49 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6474
SELECT DISTINCT + ( MAX( - 21 ) )
----
-21

skipif mysql # not compatible
query I rowsort label-6474
SELECT DISTINCT + ( MAX ( - 21 ) )
----
-21

query I rowsort
SELECT DISTINCT 83 * - - 34 + + + 64 col1
----
2886

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6477
SELECT ALL + 27 * - 76 + + COUNT( * ) + - 33 AS col0
----
-2084

skipif mysql # not compatible
query I rowsort label-6477
SELECT ALL + 27 * - 76 + + COUNT ( * ) + - 33 AS col0
----
-2084

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6478
SELECT ALL + 53 DIV + ( + 94 ) AS col0, + COUNT( * )
----
0
1

skipif mysql # not compatible
query II rowsort label-6478
SELECT ALL + 53 / + ( + 94 ) AS col0, + COUNT ( * )
----
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6479
SELECT - - 42 DIV + 25 + - - 79 + + 82 + + - 91
----
71

skipif mysql # not compatible
query I rowsort label-6479
SELECT - - 42 / + 25 + - - 79 + + 82 + + - 91
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-6480
SELECT + 50 * + MAX( ALL - 15 ) * + 37 AS col0
----
-27750

skipif mysql # not compatible
query I rowsort label-6480
SELECT + 50 * + MAX ( ALL - 15 ) * + 37 AS col0
----
-27750

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6481
SELECT ALL + + ( + ( 63 ) ) + 23 DIV + ( - + 47 ) + SUM( + 98 ) col1
----
161

skipif mysql # not compatible
query I rowsort label-6481
SELECT ALL + + ( + ( 63 ) ) + 23 / + ( - + 47 ) + SUM ( + 98 ) col1
----
161

query II rowsort
SELECT + 64 * - 28 AS col2, 50 AS col0
----
-1792
50

query I rowsort
SELECT + - 69 col1
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6484
SELECT ALL + + 45 + ( COUNT( * ) ) + + 6 - + COUNT( * ) + + 34 + 73 * + 29 * 27 * 69 DIV - COALESCE ( + 3, + - 30 + + - 19 ) AS col2
----
-1314572

skipif mysql # not compatible
query I rowsort label-6484
SELECT ALL + + 45 + ( COUNT ( * ) ) + + 6 - + COUNT ( * ) + + 34 + 73 * + 29 * 27 * 69 / - COALESCE ( + 3, + - 30 + + - 19 ) AS col2
----
-1314572

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

query I rowsort
SELECT - 47 * + 11
----
-517

query I rowsort
SELECT DISTINCT COALESCE ( 85, - 8 ) AS col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6488
SELECT DISTINCT - COUNT( * ) - 31 + 91 AS col1
----
59

skipif mysql # not compatible
query I rowsort label-6488
SELECT DISTINCT - COUNT ( * ) - 31 + 91 AS col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-6489
SELECT ALL ( + - MIN( DISTINCT 71 ) ) AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-6489
SELECT ALL ( + - MIN ( DISTINCT 71 ) ) AS col1
----
-71

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6491
SELECT DISTINCT ( + COUNT( * ) ) - + 27 AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-6491
SELECT DISTINCT ( + COUNT ( * ) ) - + 27 AS col2
----
-26

query I rowsort
SELECT - 11 * - - NULLIF ( + + 57, - 35 )
----
-627

onlyif mysql # aggregate syntax: 
query I rowsort label-6493
SELECT - 17 * MAX( ALL 86 )
----
-1462

skipif mysql # not compatible
query I rowsort label-6493
SELECT - 17 * MAX ( ALL 86 )
----
-1462

onlyif mysql # aggregate syntax: 
query II rowsort label-6494
SELECT 43 AS col2, + 54 + COUNT( * ) + 28
----
43
83

skipif mysql # not compatible
query II rowsort label-6494
SELECT 43 AS col2, + 54 + COUNT ( * ) + 28
----
43
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6495
SELECT - MIN( DISTINCT + + 3 )
----
-3

skipif mysql # not compatible
query I rowsort label-6495
SELECT - MIN ( DISTINCT + + 3 )
----
-3

query II rowsort
SELECT ALL COALESCE ( + 98, - + 61 ) AS col2, - 83
----
98
-83

query I rowsort
SELECT - 63 - ( - + 13 ) AS col1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-6498
SELECT - 81 * + COUNT( + 46 ) AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-6498
SELECT - 81 * + COUNT ( + 46 ) AS col2
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6499
SELECT DISTINCT COALESCE ( - 93, ( + CAST( NULL AS SIGNED ) ), + 81 )
----
-93

skipif mysql # not compatible
query I rowsort label-6499
SELECT DISTINCT COALESCE ( - 93, ( + CAST ( NULL AS INTEGER ) ), + 81 )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-6500
SELECT ALL CASE + - CASE + 10 WHEN - 88 THEN - 32 WHEN COUNT( * ) * + ( + 85 ) + - 57 THEN - COUNT( * ) WHEN - 77 THEN + SUM( ALL 62 ) + + + ( - + 56 ) + + COUNT( * ) * - - 68 * 3 * + CASE 13 WHEN COUNT( * ) / - 60 + - COUNT( * ) THEN 61 WHEN - 98 / + 77 THEN 14 ELSE NULL END END WHEN + 8 * - 9 THEN + 33 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6500
SELECT ALL CASE + - CASE + 10 WHEN - 88 THEN - 32 WHEN COUNT ( * ) * + ( + 85 ) + - 57 THEN - COUNT ( * ) WHEN - 77 THEN + SUM ( ALL 62 ) + + + ( - + 56 ) + + COUNT ( * ) * - - 68 * 3 * + CASE 13 WHEN COUNT ( * ) / - 60 + - COUNT ( * ) THEN 61 WHEN - 98 / + 77 THEN 14 ELSE NULL END END WHEN + 8 * - 9 THEN + 33 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6501
SELECT - 33 DIV + - CASE 16 WHEN - COUNT( * ) THEN NULL ELSE - 20 END
----
-1

skipif mysql # not compatible
query I rowsort label-6501
SELECT - 33 / + - CASE 16 WHEN - COUNT ( * ) THEN NULL ELSE - 20 END
----
-1

query I rowsort
SELECT ALL 45 * 47
----
2115

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6503
SELECT DISTINCT - NULLIF ( - 61, 56 - - CAST( + 94 AS SIGNED ) ) * + 97 AS col1
----
5917

skipif mysql # not compatible
query I rowsort label-6503
SELECT DISTINCT - NULLIF ( - 61, 56 - - CAST ( + 94 AS INTEGER ) ) * + 97 AS col1
----
5917

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6505
SELECT - COUNT( * ) + - 39 AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-6505
SELECT - COUNT ( * ) + - 39 AS col0
----
-40

query I rowsort
SELECT + 79 * + 36 AS col1
----
2844

query I rowsort
SELECT - 23 + + 22 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6508
SELECT + - 82 + + - 10 * + - COUNT( ALL - NULLIF ( + - 23, + 56 + + 27 ) ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-6508
SELECT + - 82 + + - 10 * + - COUNT ( ALL - NULLIF ( + - 23, + 56 + + 27 ) ) AS col2
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-6509
SELECT ALL 98 DIV + 27 + - ( + 3 ) + + ( - 73 ) * - 76 + - 19 DIV - 73 * + 44
----
5548

skipif mysql # not compatible
query I rowsort label-6509
SELECT ALL 98 / + 27 + - ( + 3 ) + + ( - 73 ) * - 76 + - 19 / - 73 * + 44
----
5548

query II rowsort
SELECT - 61 AS col2, 48 * + + 84 * 47 AS col0
----
-61
189504

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6511
SELECT DISTINCT 81 / + + ( - CAST( ( - CASE + 55 WHEN 97 THEN - COUNT( * ) + - 12 - + MAX( - 65 ) * + - AVG ( 35 ) WHEN + - 49 THEN NULL END ) AS SIGNED ) ) + - 48 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6511
SELECT DISTINCT 81 / + + ( - CAST ( ( - CASE + 55 WHEN 97 THEN - COUNT ( * ) + - 12 - + MAX ( - 65 ) * + - AVG ( 35 ) WHEN + - 49 THEN NULL END ) AS INTEGER ) ) + - 48 AS col1
----
NULL

query I rowsort
SELECT + 82 * - 57
----
-4674

onlyif mysql # aggregate syntax: 
query I rowsort label-6513
SELECT ALL - COUNT( * ) * + + COUNT( * ) * 60 + + 58 * + - 94 * NULLIF ( + + ( - + 21 ), + 86 )
----
114432

skipif mysql # not compatible
query I rowsort label-6513
SELECT ALL - COUNT ( * ) * + + COUNT ( * ) * 60 + + 58 * + - 94 * NULLIF ( + + ( - + 21 ), + 86 )
----
114432

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6514
SELECT ALL 79 * - - 23 + NULLIF ( + 90, 20 ) - - 28 DIV - SUM( ALL + ( 66 ) ) + + 1
----
1908

skipif mysql # not compatible
query I rowsort label-6514
SELECT ALL 79 * - - 23 + NULLIF ( + 90, 20 ) - - 28 / - SUM ( ALL + ( 66 ) ) + + 1
----
1908

query I rowsort
SELECT - - 80 * 77 AS col0
----
6160

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6516
SELECT + 22 * + CAST( NULL AS DECIMAL ) * - NULLIF ( + COUNT( * ), - 67 * 71 ) + + + 73 + - - 17
----
NULL

skipif mysql # not compatible
query I rowsort label-6516
SELECT + 22 * + CAST ( NULL AS REAL ) * - NULLIF ( + COUNT ( * ), - 67 * 71 ) + + + 73 + - - 17
----
NULL

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

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

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

query I rowsort
SELECT ALL - 30 * 42
----
-1260

query I rowsort
SELECT - 9 * - 11 + - 54 - + 77 col0
----
-32

query I rowsort
SELECT CASE + + 6 WHEN + ( - 52 ) THEN + 73 * - 73 END
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6523
SELECT ALL - 29 * 84 - 5 * - COALESCE ( + - CAST( NULL AS SIGNED ), 75 ) * + SUM( + 75 )
----
25689

skipif mysql # not compatible
query I rowsort label-6523
SELECT ALL - 29 * 84 - 5 * - COALESCE ( + - CAST ( NULL AS INTEGER ), 75 ) * + SUM ( + 75 )
----
25689

query I rowsort
SELECT - 0 + - ( 87 )
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6525
SELECT + ( + COUNT( + 51 ) ) DIV - 4, COUNT( * ) col2
----
0
1

skipif mysql # not compatible
query II rowsort label-6525
SELECT + ( + COUNT ( + 51 ) ) / - 4, COUNT ( * ) col2
----
0
1

query II rowsort
SELECT - 17 * - 99 AS col2, + 36 * + 57
----
1683
2052

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6527
SELECT 62 * 89 * - + AVG ( DISTINCT - 61 ) * CAST( NULL AS SIGNED ) + - 43 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6527
SELECT 62 * 89 * - + AVG ( DISTINCT - 61 ) * CAST ( NULL AS INTEGER ) + - 43 AS col0
----
NULL

query I rowsort
SELECT - 93 * - 3
----
279

onlyif mysql # aggregate syntax: 
query I rowsort label-6529
SELECT - SUM( - 66 ) * + - 71 * - + ( + 37 ) AS col1
----
173382

skipif mysql # not compatible
query I rowsort label-6529
SELECT - SUM ( - 66 ) * + - 71 * - + ( + 37 ) AS col1
----
173382

query I rowsort
SELECT ALL + NULLIF ( + 51, + 89 + + + 65 + 14 ) * 40 AS col1
----
2040

onlyif mysql # aggregate syntax: 
query I rowsort label-6531
SELECT + 64 + - - COUNT( * ) * - - SUM( 50 ) AS col2
----
114

skipif mysql # not compatible
query I rowsort label-6531
SELECT + 64 + - - COUNT ( * ) * - - SUM ( 50 ) AS col2
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-6532
SELECT + CASE - 84 WHEN + + 37 THEN NULL ELSE - SUM( + 74 ) END * + 3 - - + 48 col1
----
-174

skipif mysql # not compatible
query I rowsort label-6532
SELECT + CASE - 84 WHEN + + 37 THEN NULL ELSE - SUM ( + 74 ) END * + 3 - - + 48 col1
----
-174

onlyif mysql # aggregate syntax: 
query I rowsort label-6533
SELECT SUM( + - 99 ) col0
----
-99

skipif mysql # not compatible
query I rowsort label-6533
SELECT SUM ( + - 99 ) col0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6534
SELECT + 40 + - MAX( 62 ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-6534
SELECT + 40 + - MAX ( 62 ) AS col2
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6535
SELECT - 46 - - CAST( COUNT( * ) AS SIGNED ) * 85 * + 53 AS col1
----
4459

skipif mysql # not compatible
query I rowsort label-6535
SELECT - 46 - - CAST ( COUNT ( * ) AS INTEGER ) * 85 * + 53 AS col1
----
4459

onlyif mysql # aggregate syntax: 
query I rowsort label-6536
SELECT - COUNT( * ) + 79 * + - COUNT( * ) * ( - + ( + - COALESCE ( - 88, - 42 ) ) ) AS col2
----
6951

skipif mysql # not compatible
query I rowsort label-6536
SELECT - COUNT ( * ) + 79 * + - COUNT ( * ) * ( - + ( + - COALESCE ( - 88, - 42 ) ) ) AS col2
----
6951

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6537
SELECT ALL CAST( + - 22 AS SIGNED )
----
-22

skipif mysql # not compatible
query I rowsort label-6537
SELECT ALL CAST ( + - 22 AS INTEGER )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-6538
SELECT ALL - 63 * - 14 * + COALESCE ( + 21, + 63 ) * - COUNT( * ) AS col2
----
-18522

skipif mysql # not compatible
query I rowsort label-6538
SELECT ALL - 63 * - 14 * + COALESCE ( + 21, + 63 ) * - COUNT ( * ) AS col2
----
-18522

query I rowsort
SELECT - 27 * - 55
----
1485

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6540
SELECT - CASE + - 0 WHEN - 38 THEN - - 38 * 98 + 45 END + - CASE + ( + CAST( 58 AS DECIMAL ) ) WHEN + 41 THEN COUNT( * ) ELSE NULL END + + 69 + 98 + COUNT( * ) * - 20 + - 70 + ( - + 7 ) * 81 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6540
SELECT - CASE + - 0 WHEN - 38 THEN - - 38 * 98 + 45 END + - CASE + ( + CAST ( 58 AS REAL ) ) WHEN + 41 THEN COUNT ( * ) ELSE NULL END + + 69 + 98 + COUNT ( * ) * - 20 + - 70 + ( - + 7 ) * 81 AS col2
----
NULL

query I rowsort
SELECT ALL ( + - 71 ) AS col1
----
-71

query I rowsort
SELECT ALL + 47 * - + 10
----
-470

query I rowsort
SELECT DISTINCT - - 91 + - - 57 * - + 62
----
-3443

query I rowsort
SELECT - 53 + - 32 AS col1
----
-85

query I rowsort
SELECT DISTINCT - 45 + - 38 AS col1
----
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-6546
SELECT ALL + 86 * + - COUNT( * ) AS col1, - 89 * - - 5 AS col1
----
-86
-445

skipif mysql # not compatible
query II rowsort label-6546
SELECT ALL + 86 * + - COUNT ( * ) AS col1, - 89 * - - 5 AS col1
----
-86
-445

onlyif mysql # aggregate syntax: 
query I rowsort label-6547
SELECT + + CASE + 71 WHEN + + 22 + - 21 THEN - COUNT( * ) WHEN COALESCE ( + 22, + CASE - MIN( DISTINCT - 80 ) WHEN - COALESCE ( + COUNT( * ), 12 + - + MAX( 6 ) + - + 60 ) * - + 32 - 93 * 47 * 81 THEN + 30 + + 10 * + ( + 29 ) ELSE NULL END ) THEN NULL END / - 33 + 41 * + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-6547
SELECT + + CASE + 71 WHEN + + 22 + - 21 THEN - COUNT ( * ) WHEN COALESCE ( + 22, + CASE - MIN ( DISTINCT - 80 ) WHEN - COALESCE ( + COUNT ( * ), 12 + - + MAX ( 6 ) + - + 60 ) * - + 32 - 93 * 47 * 81 THEN + 30 + + 10 * + ( + 29 ) ELSE NULL END ) THEN NULL END / - 33 + 41 * + 79
----
NULL

query I rowsort
SELECT + - 83
----
-83

query I rowsort
SELECT ( + - 98 ) AS col1
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-6550
SELECT ALL - SUM( + + 33 ) + + + 4 AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-6550
SELECT ALL - SUM ( + + 33 ) + + + 4 AS col1
----
-29

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6552
SELECT DISTINCT - COUNT( * ) + + 28 AS col1
----
27

skipif mysql # not compatible
query I rowsort label-6552
SELECT DISTINCT - COUNT ( * ) + + 28 AS col1
----
27

query I rowsort
SELECT DISTINCT - - 94
----
94

query II rowsort
SELECT DISTINCT - 1 - - 20 AS col0, 26 * 77 col2
----
19
2002

query I rowsort
SELECT - ( + 35 ) * - 25 + + 78 + - - 24 + + 71 col1
----
1048

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6556
SELECT 66 * + 39 / + + 93 + + - 27 + SUM( 63 ) * - 90 * + COUNT( ALL - 24 ) + + CASE 57 WHEN 27 + 12 THEN + + 90 WHEN + - 66 THEN - 84 * - 48 ELSE CASE - CAST( NULLIF ( + 41, COUNT( * ) ) AS SIGNED ) WHEN - 17 * 13 THEN MAX( + 87 ) - 72 * + COALESCE ( + 9 + - 64, 69 ) END END + 72 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6556
SELECT 66 * + 39 / + + 93 + + - 27 + SUM ( 63 ) * - 90 * + COUNT ( ALL - 24 ) + + CASE 57 WHEN 27 + 12 THEN + + 90 WHEN + - 66 THEN - 84 * - 48 ELSE CASE - CAST ( NULLIF ( + 41, COUNT ( * ) ) AS INTEGER ) WHEN - 17 * 13 THEN MAX ( + 87 ) - 72 * + COALESCE ( + 9 + - 64, 69 ) END END + 72 AS col2
----
NULL

query I rowsort
SELECT 1 * - 76
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-6558
SELECT DISTINCT NULLIF ( - 40, + COUNT( * ) ) * + - 37 AS col1
----
1480

skipif mysql # not compatible
query I rowsort label-6558
SELECT DISTINCT NULLIF ( - 40, + COUNT ( * ) ) * + - 37 AS col1
----
1480

query I rowsort
SELECT ALL - 88 col2
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6560
SELECT + AVG ( + - 44 ) * - - COUNT( * ) + 48 + 38 - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6560
SELECT + AVG ( + - 44 ) * - - COUNT ( * ) + 48 + 38 - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6561
SELECT ALL 25 AS col2, CASE - CAST( NULL AS SIGNED ) WHEN 10 THEN + 25 ELSE NULL END * COUNT( * ) * - 33 + 60 + - 33
----
25
NULL

skipif mysql # not compatible
query II rowsort label-6561
SELECT ALL 25 AS col2, CASE - CAST ( NULL AS INTEGER ) WHEN 10 THEN + 25 ELSE NULL END * COUNT ( * ) * - 33 + 60 + - 33
----
25
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6562
SELECT ALL + 4 DIV 64 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6562
SELECT ALL + 4 / 64 AS col1
----
0

query I rowsort
SELECT ALL 10 + 35 * 77 * - 89
----
-239845

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6565
SELECT ( + 88 ) - + + CAST( NULL AS DECIMAL ) + - 66 * MAX( - 12 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6565
SELECT ( + 88 ) - + + CAST ( NULL AS REAL ) + - 66 * MAX ( - 12 ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6566
SELECT CAST( NULL AS DECIMAL ) / + NULLIF ( CAST( - - COALESCE ( + COUNT( * ), + + COUNT( * ) + - 96 ) AS SIGNED ), 97 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6566
SELECT CAST ( NULL AS REAL ) / + NULLIF ( CAST ( - - COALESCE ( + COUNT ( * ), + + COUNT ( * ) + - 96 ) AS INTEGER ), 97 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6567
SELECT MIN( + 4 ) - + 85 * + - 8 * - 48 AS col1, 49
----
-32636
49

skipif mysql # not compatible
query II rowsort label-6567
SELECT MIN ( + 4 ) - + 85 * + - 8 * - 48 AS col1, 49
----
-32636
49

query I rowsort
SELECT ALL - 32 * - + 64 col1
----
2048

onlyif mysql # aggregate syntax: 
query I rowsort label-6569
SELECT ALL + MAX( + 98 ) + 3 * 8 AS col0
----
122

skipif mysql # not compatible
query I rowsort label-6569
SELECT ALL + MAX ( + 98 ) + 3 * 8 AS col0
----
122

query I rowsort
SELECT DISTINCT + + 68 * 17 * - 7 * - 67
----
542164

query I rowsort
SELECT ALL - 59 + 0 AS col1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-6572
SELECT 18 - + MIN( ALL + 85 ) + + 88 AS col0
----
21

skipif mysql # not compatible
query I rowsort label-6572
SELECT 18 - + MIN ( ALL + 85 ) + + 88 AS col0
----
21

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

query I rowsort
SELECT DISTINCT + 57 * - 43 + - ( + 15 )
----
-2466

query I rowsort
SELECT 65 - + 57 + + - 49 AS col2
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-6576
SELECT + MIN( ALL + + 34 ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-6576
SELECT + MIN ( ALL + + 34 ) AS col0
----
34

query I rowsort
SELECT ALL + ( 18 ) AS col1
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6578
SELECT + CAST( NULL AS SIGNED ) * 58
----
NULL

skipif mysql # not compatible
query I rowsort label-6578
SELECT + CAST ( NULL AS INTEGER ) * 58
----
NULL

query I rowsort
SELECT 98 + + 51
----
149

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

query I rowsort
SELECT + - 75
----
-75

query I rowsort
SELECT ( + 48 ) AS col1
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6583
SELECT ALL - 5 - COUNT( * ) DIV 79
----
-5

skipif mysql # not compatible
query I rowsort label-6583
SELECT ALL - 5 - COUNT ( * ) / 79
----
-5

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6585
SELECT + MIN( DISTINCT 86 ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-6585
SELECT + MIN ( DISTINCT 86 ) AS col0
----
86

query II rowsort
SELECT 53, - 67 AS col1
----
53
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-6587
SELECT + 38 * + - 59 + + 14 * - - COUNT( * )
----
-2228

skipif mysql # not compatible
query I rowsort label-6587
SELECT + 38 * + - 59 + + 14 * - - COUNT ( * )
----
-2228

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6588
SELECT 98 DIV + + CAST( - + COUNT( * ) AS SIGNED ) + - 39
----
-137

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

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

skipif mysql # not compatible
query II rowsort label-6589
SELECT + 5, COUNT ( * ) AS col1
----
5
1

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

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

query I rowsort
SELECT 17 + - + ( 75 )
----
-58

query I rowsort
SELECT + 60 col0
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-6593
SELECT 55 DIV 70 col2
----
0

skipif mysql # not compatible
query I rowsort label-6593
SELECT 55 / 70 col2
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-6594
SELECT ALL 35 DIV + 32, + 99 AS col1
----
1
99

skipif mysql # not compatible
query II rowsort label-6594
SELECT ALL 35 / + 32, + 99 AS col1
----
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6595
SELECT 71 * - 49 * + + 54 + COUNT( * ) + - 1 * - 68
----
-187797

skipif mysql # not compatible
query I rowsort label-6595
SELECT 71 * - 49 * + + 54 + COUNT ( * ) + - 1 * - 68
----
-187797

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6596
SELECT DISTINCT + 81 * + + ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6596
SELECT DISTINCT + 81 * + + ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT 52 + + 81 - - 91
----
224

query I rowsort
SELECT DISTINCT 34 + - 46 + + - 41
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6599
SELECT 73 AS col1, ( - NULLIF ( - 11, + 75 * - COALESCE ( - 13, + - 32, + - 83 + + 43 ) + + + CASE - 8 WHEN - - 20 THEN CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) + - ( 53 ) WHEN ( + - 47 ) * 93 * + + 57 THEN - 68 + 16 END - + ( + CAST( 12 AS SIGNED ) ) * 70 * + ( COUNT( * ) + + 96 ) ) ) AS col2
----
73
11

skipif mysql # not compatible
query II rowsort label-6599
SELECT 73 AS col1, ( - NULLIF ( - 11, + 75 * - COALESCE ( - 13, + - 32, + - 83 + + 43 ) + + + CASE - 8 WHEN - - 20 THEN CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) + - ( 53 ) WHEN ( + - 47 ) * 93 * + + 57 THEN - 68 + 16 END - + ( + CAST ( 12 AS INTEGER ) ) * 70 * + ( COUNT ( * ) + + 96 ) ) ) AS col2
----
73
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6600
SELECT COALESCE ( - + COUNT( 76 ), + 88 * 15 + - + 65, + CAST( + 19 AS SIGNED ) ) * - 65 + - + ( + 50 )
----
15

skipif mysql # not compatible
query I rowsort label-6600
SELECT COALESCE ( - + COUNT ( 76 ), + 88 * 15 + - + 65, + CAST ( + 19 AS INTEGER ) ) * - 65 + - + ( + 50 )
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6601
SELECT ALL 69 + + + CAST( - 44 AS SIGNED ) - 14 * - 58
----
837

skipif mysql # not compatible
query I rowsort label-6601
SELECT ALL 69 + + + CAST ( - 44 AS INTEGER ) - 14 * - 58
----
837

onlyif mysql # aggregate syntax: 
query I rowsort label-6602
SELECT COUNT( * ) * - - 17 * 59 + + - COALESCE ( - - 40, 16 * + 4 * + 72 * - 37 ) + 48 AS col2
----
1011

skipif mysql # not compatible
query I rowsort label-6602
SELECT COUNT ( * ) * - - 17 * 59 + + - COALESCE ( - - 40, 16 * + 4 * + 72 * - 37 ) + 48 AS col2
----
1011

query I rowsort
SELECT ALL 62 * + 91 AS col0
----
5642

query II rowsort
SELECT 59 AS col1, - 82 + + 11 * 77 * - - 64 AS col1
----
59
54126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6605
SELECT + 27 + - 37 + - CASE + - 60 WHEN COUNT( * ) / + - COUNT( * ) * + + 12 * - MIN( - 27 ) THEN NULL WHEN + 18 THEN NULL ELSE + + CAST( NULL AS SIGNED ) * + + 34 * + - CAST( NULL AS SIGNED ) END + - CAST( NULL AS SIGNED ) * - 35
----
NULL

skipif mysql # not compatible
query I rowsort label-6605
SELECT + 27 + - 37 + - CASE + - 60 WHEN COUNT ( * ) / + - COUNT ( * ) * + + 12 * - MIN ( - 27 ) THEN NULL WHEN + 18 THEN NULL ELSE + + CAST ( NULL AS INTEGER ) * + + 34 * + - CAST ( NULL AS INTEGER ) END + - CAST ( NULL AS INTEGER ) * - 35
----
NULL

query I rowsort
SELECT DISTINCT 56 + + - 66 + - + 31 AS col0
----
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-6607
SELECT ALL 6 AS col2, - COUNT( ALL - 95 )
----
6
-1

skipif mysql # not compatible
query II rowsort label-6607
SELECT ALL 6 AS col2, - COUNT ( ALL - 95 )
----
6
-1

query I rowsort
SELECT + - 50 + + - 77
----
-127

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

query I rowsort
SELECT - ( + 85 ) AS col1
----
-85

query II rowsort
SELECT + + 75 + + ( - ( 38 ) ) + + 97 + + 13 AS col0, + 95 + - 71
----
147
24

query I rowsort
SELECT + - 64 * - 62 AS col2
----
3968

onlyif mysql # aggregate syntax: 
query I rowsort label-6613
SELECT ALL + 95 - - - CASE - - 4 WHEN + 7 THEN 24 WHEN - MAX( ALL - 25 ) THEN + + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6613
SELECT ALL + 95 - - - CASE - - 4 WHEN + 7 THEN 24 WHEN - MAX ( ALL - 25 ) THEN + + COUNT ( * ) ELSE NULL END
----
NULL

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

query II rowsort
SELECT - - 10 AS col1, + 74 AS col2
----
10
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6616
SELECT - 75 + + 62 + - + 17 + - CAST( + 48 AS SIGNED ) + + 40
----
-38

skipif mysql # not compatible
query I rowsort label-6616
SELECT - 75 + + 62 + - + 17 + - CAST ( + 48 AS INTEGER ) + + 40
----
-38

query I rowsort
SELECT ALL 45 * + 15 AS col2
----
675

query I rowsort
SELECT ALL 89 - - 49 + + 81 * 65 * 58 col2
----
305508

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6619
SELECT DISTINCT + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6619
SELECT DISTINCT + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6620
SELECT - MAX( + - 69 ) AS col2, 81
----
69
81

skipif mysql # not compatible
query II rowsort label-6620
SELECT - MAX ( + - 69 ) AS col2, 81
----
69
81

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

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

query II rowsort
SELECT 49, 81 AS col1
----
49
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6623
SELECT - COUNT( * ) DIV + 6 + 98 * - 17 * + 83 * 42 AS col0, 60 AS col0
----
-5807676
60

skipif mysql # not compatible
query II rowsort label-6623
SELECT - COUNT ( * ) / + 6 + 98 * - 17 * + 83 * 42 AS col0, 60 AS col0
----
-5807676
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6624
SELECT ALL - 52 * MAX( ALL COALESCE ( - NULLIF ( - 13, 12 / + 33 - + + 89 ), 12 ) ) - 61
----
-737

skipif mysql # not compatible
query I rowsort label-6624
SELECT ALL - 52 * MAX ( ALL COALESCE ( - NULLIF ( - 13, 12 / + 33 - + + 89 ), 12 ) ) - 61
----
-737

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6626
SELECT COUNT( DISTINCT CAST( + 86 AS SIGNED ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6626
SELECT COUNT ( DISTINCT CAST ( + 86 AS INTEGER ) ) AS col0
----
1

query I rowsort
SELECT DISTINCT + 18 AS col1
----
18

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

query I rowsort
SELECT + 65 * - 75 AS col1
----
-4875

onlyif mysql # aggregate syntax: 
query I rowsort label-6630
SELECT ALL + MAX( ALL - - 56 )
----
56

skipif mysql # not compatible
query I rowsort label-6630
SELECT ALL + MAX ( ALL - - 56 )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6631
SELECT ALL - 21 * - 38 * - + 47 + - + 46 * - SUM( 37 )
----
-35804

skipif mysql # not compatible
query I rowsort label-6631
SELECT ALL - 21 * - 38 * - + 47 + - + 46 * - SUM ( 37 )
----
-35804

onlyif mysql # aggregate syntax: 
query I rowsort label-6632
SELECT - 34 + - COUNT( * ) * - + 68 + + 97 AS col2
----
131

skipif mysql # not compatible
query I rowsort label-6632
SELECT - 34 + - COUNT ( * ) * - + 68 + + 97 AS col2
----
131

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6633
SELECT ALL - COUNT( * ) DIV - - 58, 87 * + 0
----
0
0

skipif mysql # not compatible
query II rowsort label-6633
SELECT ALL - COUNT ( * ) / - - 58, 87 * + 0
----
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6634
SELECT ALL + COUNT( DISTINCT 29 ) AS col1, 61 AS col0
----
1
61

skipif mysql # not compatible
query II rowsort label-6634
SELECT ALL + COUNT ( DISTINCT 29 ) AS col1, 61 AS col0
----
1
61

query I rowsort
SELECT ALL + ( 11 ) AS col1
----
11

query I rowsort
SELECT - 87 * - 92 AS col1
----
8004

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6638
SELECT DISTINCT 73 * - + 46 + - - SUM( DISTINCT + 85 ) AS col1
----
-3273

skipif mysql # not compatible
query I rowsort label-6638
SELECT DISTINCT 73 * - + 46 + - - SUM ( DISTINCT + 85 ) AS col1
----
-3273

query I rowsort
SELECT ALL + ( ( - - 99 ) ) AS col0
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-6640
SELECT - 51 DIV - 68 * - 95
----
0

skipif mysql # not compatible
query I rowsort label-6640
SELECT - 51 / - 68 * - 95
----
0

query I rowsort
SELECT ALL + ( - 8 ) col2
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-6642
SELECT ALL ( + 76 ) AS col1, + 86 + + + COUNT( * ) - 30 - + CASE - - COUNT( * ) WHEN COUNT( * ) THEN + 64 * + 16 ELSE + 55 END AS col1
----
76
-967

skipif mysql # not compatible
query II rowsort label-6642
SELECT ALL ( + 76 ) AS col1, + 86 + + + COUNT ( * ) - 30 - + CASE - - COUNT ( * ) WHEN COUNT ( * ) THEN + 64 * + 16 ELSE + 55 END AS col1
----
76
-967

query I rowsort
SELECT ALL ( + 26 ) AS col1
----
26

query I rowsort
SELECT + 97 * + 48 AS col2
----
4656

onlyif mysql # aggregate syntax: 
query I rowsort label-6645
SELECT ALL 49 * + NULLIF ( - 8, - CASE - NULLIF ( 2, + 79 * - 79 + - 40 ) WHEN - 92 THEN - 2 + + 58 WHEN + + 46 / 19 THEN NULL WHEN - 54 * + NULLIF ( + 73, - 63 * - SUM( + 99 ) - - 44 - + + 93 ) * + NULLIF ( 73 + 22, + 40 ) THEN 32 END ) + 93 * - COUNT( * )
----
-485

skipif mysql # not compatible
query I rowsort label-6645
SELECT ALL 49 * + NULLIF ( - 8, - CASE - NULLIF ( 2, + 79 * - 79 + - 40 ) WHEN - 92 THEN - 2 + + 58 WHEN + + 46 / 19 THEN NULL WHEN - 54 * + NULLIF ( + 73, - 63 * - SUM ( + 99 ) - - 44 - + + 93 ) * + NULLIF ( 73 + 22, + 40 ) THEN 32 END ) + 93 * - COUNT ( * )
----
-485

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6647
SELECT - + NULLIF ( + 32, - - COUNT( * ) ) AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-6647
SELECT - + NULLIF ( + 32, - - COUNT ( * ) ) AS col1
----
-32

query I rowsort
SELECT + 74 col1
----
74

query II rowsort
SELECT ALL 16 * - 64 AS col0, 81
----
-1024
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6650
SELECT - ( + CASE - CASE 7 WHEN 47 * - 61 * + 57 * + ( - COUNT( * ) ) THEN - 17 ELSE + COUNT( + + 69 ) / - 73 END WHEN + - 78 * + 78 * + + 76 * - 99 THEN + 1 + - + COUNT( * ) ELSE NULL END ) + + COUNT( * ) + + + 99 * - ( - 37 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6650
SELECT - ( + CASE - CASE 7 WHEN 47 * - 61 * + 57 * + ( - COUNT ( * ) ) THEN - 17 ELSE + COUNT ( + + 69 ) / - 73 END WHEN + - 78 * + 78 * + + 76 * - 99 THEN + 1 + - + COUNT ( * ) ELSE NULL END ) + + COUNT ( * ) + + + 99 * - ( - 37 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6651
SELECT DISTINCT 34 * - SUM( ALL ( - 16 ) ) AS col2
----
544

skipif mysql # not compatible
query I rowsort label-6651
SELECT DISTINCT 34 * - SUM ( ALL ( - 16 ) ) AS col2
----
544

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6653
SELECT + CAST( NULL AS DECIMAL ) * - 41, 16 AS col2
----
NULL
16

skipif mysql # not compatible
query II rowsort label-6653
SELECT + CAST ( NULL AS REAL ) * - 41, 16 AS col2
----
NULL
16

onlyif mysql # aggregate syntax: 
query II rowsort label-6654
SELECT + 92 * + COUNT( * ) AS col2, - 66 * - + 44 AS col0
----
92
2904

skipif mysql # not compatible
query II rowsort label-6654
SELECT + 92 * + COUNT ( * ) AS col2, - 66 * - + 44 AS col0
----
92
2904

onlyif mysql # DIV for integer division: 
query I rowsort label-6655
SELECT ALL 45 DIV 86 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6655
SELECT ALL 45 / 86 AS col2
----
0

query I rowsort
SELECT + - 26 * + 49 AS col2
----
-1274

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6657
SELECT - - 20 * + + ( - + CAST( NULL AS SIGNED ) ) * - 53 + + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-6657
SELECT - - 20 * + + ( - + CAST ( NULL AS INTEGER ) ) * - 53 + + 40
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6659
SELECT ALL - 27 DIV - COUNT( * ) + 70 AS col2, 26 * - COUNT( * ) AS col1
----
97
-26

skipif mysql # not compatible
query II rowsort label-6659
SELECT ALL - 27 / - COUNT ( * ) + 70 AS col2, 26 * - COUNT ( * ) AS col1
----
97
-26

query I rowsort
SELECT ALL 99 * - 32
----
-3168

query I rowsort
SELECT + ( 54 ) AS col1
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6662
SELECT CAST( NULL AS SIGNED ) AS col1, + 27 * + 6 + 17 - + + 74 AS col2
----
NULL
105

skipif mysql # not compatible
query II rowsort label-6662
SELECT CAST ( NULL AS INTEGER ) AS col1, + 27 * + 6 + 17 - + + 74 AS col2
----
NULL
105

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6663
SELECT ALL + 61 DIV COUNT( * ) DIV + + 7 + 24 AS col0
----
32

skipif mysql # not compatible
query I rowsort label-6663
SELECT ALL + 61 / COUNT ( * ) / + + 7 + 24 AS col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6664
SELECT - COUNT( * ) * + 72 * - - 2 + + + 17 AS col0
----
-127

skipif mysql # not compatible
query I rowsort label-6664
SELECT - COUNT ( * ) * + 72 * - - 2 + + + 17 AS col0
----
-127

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6665
SELECT CAST( + - 96 AS SIGNED )
----
-96

skipif mysql # not compatible
query I rowsort label-6665
SELECT CAST ( + - 96 AS INTEGER )
----
-96

query I rowsort
SELECT + 75 + 30
----
105

query II rowsort
SELECT DISTINCT - 13 AS col1, - CASE + NULLIF ( + COALESCE ( + NULLIF ( 36, - ( + 73 ) ), - 64 ), 36 ) WHEN + 83 * - 74 * + - 41 + 88 * + - 33 THEN + 19 * + 88 END * + + 74
----
-13
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6668
SELECT ALL - 73 + - 73 * 24 + - MIN( ALL 88 ) * - - ( + 63 )
----
-7369

skipif mysql # not compatible
query I rowsort label-6668
SELECT ALL - 73 + - 73 * 24 + - MIN ( ALL 88 ) * - - ( + 63 )
----
-7369

query I rowsort
SELECT 67 * + 33
----
2211

query II rowsort
SELECT + 86 AS col1, + 19
----
86
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6671
SELECT ALL - 82 DIV - NULLIF ( + COUNT( * ), + 97 )
----
82

skipif mysql # not compatible
query I rowsort label-6671
SELECT ALL - 82 / - NULLIF ( + COUNT ( * ), + 97 )
----
82

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6673
SELECT SUM( - 87 ) + - 97 * - MAX( ALL 79 ) AS col1
----
7576

skipif mysql # not compatible
query I rowsort label-6673
SELECT SUM ( - 87 ) + - 97 * - MAX ( ALL 79 ) AS col1
----
7576

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6674
SELECT ALL + 10 - CAST( + 50 AS SIGNED )
----
-40

skipif mysql # not compatible
query I rowsort label-6674
SELECT ALL + 10 - CAST ( + 50 AS INTEGER )
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-6675
SELECT 22 * + COUNT( * ) + - - 54 * - COUNT( * ) * - 79 - - 88 + - - 61 AS col1
----
4437

skipif mysql # not compatible
query I rowsort label-6675
SELECT 22 * + COUNT ( * ) + - - 54 * - COUNT ( * ) * - 79 - - 88 + - - 61 AS col1
----
4437

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6676
SELECT - 53 * 67 + - 59 * - + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6676
SELECT - 53 * 67 + - 59 * - + CAST ( NULL AS INTEGER ) col1
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6678
SELECT + NULLIF ( 8, + 0 DIV - COUNT( * ) * - 99 + - + ( 2 ) ) DIV 93 * - - 29 + 78 AS col2
----
78

skipif mysql # not compatible
query I rowsort label-6678
SELECT + NULLIF ( 8, + 0 / - COUNT ( * ) * - 99 + - + ( 2 ) ) / 93 * - - 29 + 78 AS col2
----
78

query I rowsort
SELECT 34 * - 12 * + 4
----
-1632

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

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

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

skipif mysql # not compatible
query I rowsort label-6681
SELECT ALL + 87 / + COUNT ( * ) - - + COUNT ( * ) AS col2
----
88

query II rowsort
SELECT ALL 25 col0, 27
----
25
27

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6684
SELECT ( + + 6 ) + COUNT( + - 12 ) + - + 89 + - 10 * + - 6 * - + 87
----
-5302

skipif mysql # not compatible
query I rowsort label-6684
SELECT ( + + 6 ) + COUNT ( + - 12 ) + - + 89 + - 10 * + - 6 * - + 87
----
-5302

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6685
SELECT ALL 87 AS col0, - COALESCE ( 44, - 59 + - CAST( NULL AS SIGNED ) * - - NULLIF ( - 59, + 17 + - 66 ) ) + 72 AS col2
----
87
28

skipif mysql # not compatible
query II rowsort label-6685
SELECT ALL 87 AS col0, - COALESCE ( 44, - 59 + - CAST ( NULL AS INTEGER ) * - - NULLIF ( - 59, + 17 + - 66 ) ) + 72 AS col2
----
87
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6686
SELECT DISTINCT COUNT( * ), CASE 19 WHEN - 6 THEN - ( + 66 ) ELSE NULL END * + CAST( NULL AS SIGNED ) AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-6686
SELECT DISTINCT COUNT ( * ), CASE 19 WHEN - 6 THEN - ( + 66 ) ELSE NULL END * + CAST ( NULL AS INTEGER ) AS col2
----
1
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6687
SELECT ALL - 62 AS col1, 20 + - 85 + - 44 DIV + 50 AS col2
----
-62
-65

skipif mysql # not compatible
query II rowsort label-6687
SELECT ALL - 62 AS col1, 20 + - 85 + - 44 / + 50 AS col2
----
-62
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-6688
SELECT - COUNT( * ) + - 80 * - COUNT( * ) col2
----
79

skipif mysql # not compatible
query I rowsort label-6688
SELECT - COUNT ( * ) + - 80 * - COUNT ( * ) col2
----
79

query I rowsort
SELECT 83 + 17 AS col0
----
100

onlyif mysql # aggregate syntax: 
query II rowsort label-6690
SELECT 41, + 57 * + 67 * + COUNT( * ) + + - 13 * - COUNT( * ) AS col1
----
41
3832

skipif mysql # not compatible
query II rowsort label-6690
SELECT 41, + 57 * + 67 * + COUNT ( * ) + + - 13 * - COUNT ( * ) AS col1
----
41
3832

query II rowsort
SELECT - - 42 AS col0, - 58 * 41 * + - 63
----
42
149814

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6692
SELECT COALESCE ( 8, 16, + 90 + + 17 ) + - COUNT( - 35 ) + - 5 * 65 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6692
SELECT COALESCE ( 8, 16, + 90 + + 17 ) + - COUNT ( - 35 ) + - 5 * 65 - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ( - 67 ) + + 21
----
-46

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

query I rowsort
SELECT ALL 52 + - + 80 + + 10
----
-18

query I rowsort
SELECT ALL + + 60 + - 90 AS col2
----
-30

query I rowsort
SELECT DISTINCT + ( 99 ) + + NULLIF ( + 29, - 5 ) AS col0
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-6698
SELECT ALL 5 + + 97 + - - 84 * - - SUM( ALL + 20 ) AS col0
----
1782

skipif mysql # not compatible
query I rowsort label-6698
SELECT ALL 5 + + 97 + - - 84 * - - SUM ( ALL + 20 ) AS col0
----
1782

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6699
SELECT COUNT( * ) DIV - + ( 82 )
----
0

skipif mysql # not compatible
query I rowsort label-6699
SELECT COUNT ( * ) / - + ( 82 )
----
0

query I rowsort
SELECT ( + 4 ) + 96 AS col2
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-6701
SELECT DISTINCT 4 + 48 + 70 + + COUNT( * )
----
123

skipif mysql # not compatible
query I rowsort label-6701
SELECT DISTINCT 4 + 48 + 70 + + COUNT ( * )
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-6702
SELECT ALL 39 - 14 + - COALESCE ( - MIN( - 20 ), 94 )
----
5

skipif mysql # not compatible
query I rowsort label-6702
SELECT ALL 39 - 14 + - COALESCE ( - MIN ( - 20 ), 94 )
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6703
SELECT DISTINCT 51 DIV - - COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-6703
SELECT DISTINCT 51 / - - COUNT ( * )
----
51

query I rowsort
SELECT DISTINCT 69 - - 81 * + 23
----
1932

query I rowsort
SELECT DISTINCT - 69 * + - 82 AS col2
----
5658

onlyif mysql # aggregate syntax: 
query I rowsort label-6706
SELECT COUNT( + 36 ) * - + NULLIF ( - 54, + 4 ) + + 3 + 47 * - ( + 68 ) AS col1
----
-3139

skipif mysql # not compatible
query I rowsort label-6706
SELECT COUNT ( + 36 ) * - + NULLIF ( - 54, + 4 ) + + 3 + 47 * - ( + 68 ) AS col1
----
-3139

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6707
SELECT 2 * - CAST( NULL AS SIGNED ) AS col0, + COUNT( * ) + - ( - + 49 ) AS col1
----
NULL
50

skipif mysql # not compatible
query II rowsort label-6707
SELECT 2 * - CAST ( NULL AS INTEGER ) AS col0, + COUNT ( * ) + - ( - + 49 ) AS col1
----
NULL
50

query I rowsort
SELECT DISTINCT - 38 col0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-6709
SELECT DISTINCT - - COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6709
SELECT DISTINCT - - COUNT ( * ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6710
SELECT DISTINCT + + 42 * + 99 * + + SUM( - 34 ) DIV + COUNT( * )
----
-141372

skipif mysql # not compatible
query I rowsort label-6710
SELECT DISTINCT + + 42 * + 99 * + + SUM ( - 34 ) / + COUNT ( * )
----
-141372

query I rowsort
SELECT DISTINCT + 70 col1
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-6712
SELECT ALL + 25 * - 19 - - - ( + 78 ) AS col1, COUNT( * ) + - 15 * + 17 * + 7 AS col2
----
-553
-1784

skipif mysql # not compatible
query II rowsort label-6712
SELECT ALL + 25 * - 19 - - - ( + 78 ) AS col1, COUNT ( * ) + - 15 * + 17 * + 7 AS col2
----
-553
-1784

onlyif mysql # DIV for integer division: 
query I rowsort label-6713
SELECT DISTINCT + 14 DIV - 61
----
0

skipif mysql # not compatible
query I rowsort label-6713
SELECT DISTINCT + 14 / - 61
----
0

query I rowsort
SELECT - - CASE + 7 WHEN + 73 * - - ( + - 86 ) THEN + 50 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ( ( - 8 ) )
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-6716
SELECT - - MAX( ALL - 54 ) col0
----
-54

skipif mysql # not compatible
query I rowsort label-6716
SELECT - - MAX ( ALL - 54 ) col0
----
-54

query I rowsort
SELECT ALL + - 0 * - 79
----
0

query I rowsort
SELECT 98 * + 26
----
2548

query I rowsort
SELECT + 88 + 25 AS col1
----
113

query I rowsort
SELECT ALL + + 8 + 24 * 3
----
80

onlyif mysql # DIV for integer division: 
query II rowsort label-6721
SELECT DISTINCT + 81 DIV + 57 AS col2, + 9
----
1
9

skipif mysql # not compatible
query II rowsort label-6721
SELECT DISTINCT + 81 / + 57 AS col2, + 9
----
1
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6722
SELECT DISTINCT + - ( 76 ) + + + CASE - 7 WHEN - 32 * - 62 + + - CAST( NULL AS SIGNED ) THEN 73 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6722
SELECT DISTINCT + - ( 76 ) + + + CASE - 7 WHEN - 32 * - 62 + + - CAST ( NULL AS INTEGER ) THEN 73 END
----
NULL

query I rowsort
SELECT DISTINCT 65 + + 69 AS col0
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-6724
SELECT 55 - - - SUM( 71 ) + 15 + + - 96 + + MIN( 87 ) * - 40
----
-3577

skipif mysql # not compatible
query I rowsort label-6724
SELECT 55 - - - SUM ( 71 ) + 15 + + - 96 + + MIN ( 87 ) * - 40
----
-3577

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6726
SELECT - 53, - COUNT( * ) + 83 + 73 AS col1
----
-53
155

skipif mysql # not compatible
query II rowsort label-6726
SELECT - 53, - COUNT ( * ) + 83 + 73 AS col1
----
-53
155

query I rowsort
SELECT ALL NULLIF ( + 23, + 18 )
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6728
SELECT - 34 + - CAST( NULL AS SIGNED ) * 53 + + 17 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6728
SELECT - 34 + - CAST ( NULL AS INTEGER ) * 53 + + 17 col0
----
NULL

query II rowsort
SELECT 61 AS col0, 59 AS col2
----
61
59

query I rowsort
SELECT DISTINCT NULLIF ( 11, - - 8 )
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6731
SELECT DISTINCT + ( - - 76 ) * 79 AS col0, COUNT( - 31 ) - - 63 + + COALESCE ( + - SUM( + 32 ), - 24, - 9 DIV - - 33 + + 69, 48 ) + - - 38 DIV - 82 + - + COUNT( * ) AS col2
----
6004
31

skipif mysql # not compatible
query II rowsort label-6731
SELECT DISTINCT + ( - - 76 ) * 79 AS col0, COUNT ( - 31 ) - - 63 + + COALESCE ( + - SUM ( + 32 ), - 24, - 9 / - - 33 + + 69, 48 ) + - - 38 / - 82 + - + COUNT ( * ) AS col2
----
6004
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6732
SELECT MIN( DISTINCT + 9 ) * + - 0 + + COUNT( * ) DIV + + 84 - + 96
----
-96

skipif mysql # not compatible
query I rowsort label-6732
SELECT MIN ( DISTINCT + 9 ) * + - 0 + + COUNT ( * ) / + + 84 - + 96
----
-96

query I rowsort
SELECT ALL + 82 * - 96 AS col2
----
-7872

onlyif mysql # aggregate syntax: 
query I rowsort label-6734
SELECT + SUM( + 36 )
----
36

skipif mysql # not compatible
query I rowsort label-6734
SELECT + SUM ( + 36 )
----
36

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6738
SELECT + NULLIF ( - 80, - ( - + MIN( DISTINCT - + 22 ) ) )
----
-80

skipif mysql # not compatible
query I rowsort label-6738
SELECT + NULLIF ( - 80, - ( - + MIN ( DISTINCT - + 22 ) ) )
----
-80

query I rowsort
SELECT 10 * 94 - ( 69 ) col0
----
871

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

skipif mysql # not compatible
query I rowsort label-6740
SELECT + CAST ( NULL AS INTEGER ) + + 88 * + 92
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6741
SELECT + 52 DIV 62 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6741
SELECT + 52 / 62 AS col0
----
0

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

query I rowsort
SELECT ALL 39 * + 85 AS col1
----
3315

query I rowsort
SELECT ALL + 59 * - 65 col1
----
-3835

query I rowsort
SELECT ALL - 85 * - 46 AS col0
----
3910

onlyif mysql # aggregate syntax: 
query I rowsort label-6746
SELECT - 6 * - - MIN( ALL + - 59 ) * - 73 + - 47 + - - 89 AS col0
----
-25800

skipif mysql # not compatible
query I rowsort label-6746
SELECT - 6 * - - MIN ( ALL + - 59 ) * - 73 + - 47 + - - 89 AS col0
----
-25800

onlyif mysql # aggregate syntax: 
query I rowsort label-6747
SELECT ALL - - 24 * 37 * + CASE + COUNT( * ) WHEN - 11 * ( - 44 ) THEN 82 + - - 71 + + + COALESCE ( - 58, + 61, + 49 ) / - 93 END + + - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-6747
SELECT ALL - - 24 * 37 * + CASE + COUNT ( * ) WHEN - 11 * ( - 44 ) THEN 82 + - - 71 + + + COALESCE ( - 58, + 61, + 49 ) / - 93 END + + - 22
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6748
SELECT MIN( - 36 )
----
-36

skipif mysql # not compatible
query I rowsort label-6748
SELECT MIN ( - 36 )
----
-36

query III rowsort
SELECT 2, ( + - 54 ) AS col1, 67 AS col0
----
2
-54
67

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

query I rowsort
SELECT + 86 * - + 97 AS col1
----
-8342

query II rowsort
SELECT - 83 col2, - 32 AS col1
----
-83
-32

query I rowsort
SELECT ALL + 52 * + - 51 * 10
----
-26520

query I rowsort
SELECT DISTINCT - 41 + 88 AS col0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6755
SELECT - ( + MAX( - 26 ) ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-6755
SELECT - ( + MAX ( - 26 ) ) AS col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6756
SELECT ALL 1 * + COUNT( - 84 ) * + + 24 AS col0
----
24

skipif mysql # not compatible
query I rowsort label-6756
SELECT ALL 1 * + COUNT ( - 84 ) * + + 24 AS col0
----
24

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

query I rowsort
SELECT ALL CASE - 46 WHEN + 60 THEN + + 23 ELSE 6 END AS col1
----
6

query I rowsort
SELECT + 76 + - 27 AS col2
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6760
SELECT + 35 DIV - 46 AS col2, 77 - - 63 * + COUNT( * ) AS col0
----
0
140

skipif mysql # not compatible
query II rowsort label-6760
SELECT + 35 / - 46 AS col2, 77 - - 63 * + COUNT ( * ) AS col0
----
0
140

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

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

query I rowsort
SELECT - 52 + ( - 98 ) + - - NULLIF ( 35, 16 ) + - 91 AS col2
----
-206

query I rowsort
SELECT DISTINCT - 41 - - 73 + 57 * + 10 + - 33
----
569

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

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

query II rowsort
SELECT 8 AS col1, + 25
----
8
25

query I rowsort
SELECT ALL ( + 50 ) * 93 + - 75
----
4575

query I rowsort
SELECT - 5 * - 56 col2
----
280

onlyif mysql # DIV for integer division: 
query I rowsort label-6768
SELECT ALL - 14 DIV + 17 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6768
SELECT ALL - 14 / + 17 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6769
SELECT DISTINCT - 41 - + - ( - 27 ) DIV 82 AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-6769
SELECT DISTINCT - 41 - + - ( - 27 ) / 82 AS col0
----
-41

query I rowsort
SELECT ALL CASE - 12 WHEN - + 2 THEN - 65 * + 64 ELSE 9 * + 10 END AS col0
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6771
SELECT ALL NULLIF ( NULLIF ( + 5, - COUNT( * ) * - COUNT( * ) ), + 37 + - COALESCE ( + + COUNT( * ), + 70 ) * CAST( NULL AS SIGNED ) - - + NULLIF ( 81, COUNT( * ) ) + 47 / + COUNT( * ) )
----
5

skipif mysql # not compatible
query I rowsort label-6771
SELECT ALL NULLIF ( NULLIF ( + 5, - COUNT ( * ) * - COUNT ( * ) ), + 37 + - COALESCE ( + + COUNT ( * ), + 70 ) * CAST ( NULL AS INTEGER ) - - + NULLIF ( 81, COUNT ( * ) ) + 47 / + COUNT ( * ) )
----
5

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6772
SELECT CAST( NULL AS SIGNED ) col1, - 6 DIV + 25
----
NULL
0

skipif mysql # not compatible
query II rowsort label-6772
SELECT CAST ( NULL AS INTEGER ) col1, - 6 / + 25
----
NULL
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6774
SELECT - ( COUNT( * ) ) * - 75 col1
----
75

skipif mysql # not compatible
query I rowsort label-6774
SELECT - ( COUNT ( * ) ) * - 75 col1
----
75

query I rowsort
SELECT - 51 * - 44 * + 89
----
199716

query I rowsort
SELECT ALL + ( - 61 ) AS col1
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6777
SELECT + NULLIF ( + + CAST( + ( - + 32 ) AS SIGNED ), + 83 )
----
-32

skipif mysql # not compatible
query I rowsort label-6777
SELECT + NULLIF ( + + CAST ( + ( - + 32 ) AS INTEGER ), + 83 )
----
-32

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

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

query I rowsort
SELECT ALL + 24 * - 10 * + + 58
----
-13920

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6780
SELECT ALL 49 DIV - + COUNT( * ) + + - 54 + - + 20 AS col2, 0
----
-123
0

skipif mysql # not compatible
query II rowsort label-6780
SELECT ALL 49 / - + COUNT ( * ) + + - 54 + - + 20 AS col2, 0
----
-123
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6781
SELECT CAST( NULL AS SIGNED ), 80 + - 6 * + 28 col0
----
NULL
-88

skipif mysql # not compatible
query II rowsort label-6781
SELECT CAST ( NULL AS INTEGER ), 80 + - 6 * + 28 col0
----
NULL
-88

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6783
SELECT ALL - - 65 DIV + + 99 + 98 * + - 96 * 6 col0
----
-56448

skipif mysql # not compatible
query I rowsort label-6783
SELECT ALL - - 65 / + + 99 + 98 * + - 96 * 6 col0
----
-56448

onlyif mysql # aggregate syntax: 
query II rowsort label-6784
SELECT ALL + + 33 AS col1, - 82 + COUNT( * ) col0
----
33
-81

skipif mysql # not compatible
query II rowsort label-6784
SELECT ALL + + 33 AS col1, - 82 + COUNT ( * ) col0
----
33
-81

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6786
SELECT DISTINCT - + 12 * - 5 + + COUNT( - - NULLIF ( 27, + + 42 ) ) + 23
----
84

skipif mysql # not compatible
query I rowsort label-6786
SELECT DISTINCT - + 12 * - 5 + + COUNT ( - - NULLIF ( 27, + + 42 ) ) + 23
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6787
SELECT - COUNT( * ) - - 80
----
79

skipif mysql # not compatible
query I rowsort label-6787
SELECT - COUNT ( * ) - - 80
----
79

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6789
SELECT ALL - + COUNT( * ) * + + 73 + 54 * - 27 + + - MIN( - - 65 ) * 85
----
-7056

skipif mysql # not compatible
query I rowsort label-6789
SELECT ALL - + COUNT ( * ) * + + 73 + 54 * - 27 + + - MIN ( - - 65 ) * 85
----
-7056

query I rowsort
SELECT - 43 * + + 27 AS col1
----
-1161

onlyif mysql # aggregate syntax: 
query I rowsort label-6791
SELECT + 13 * - - CASE - COUNT( * ) WHEN 17 THEN - 47 - + 73 ELSE + 17 + 95 END AS col1
----
1456

skipif mysql # not compatible
query I rowsort label-6791
SELECT + 13 * - - CASE - COUNT ( * ) WHEN 17 THEN - 47 - + 73 ELSE + 17 + 95 END AS col1
----
1456

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6792
SELECT ALL - + COUNT( * ) * 13 * + CAST( NULL AS SIGNED ) * + 36 + + + CASE - - 94 WHEN 3 THEN - MAX( ALL - 84 ) WHEN 48 - + - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * 62 * + - 14 THEN NULL END - - CASE 39 WHEN - COUNT( * ) THEN NULL WHEN + COALESCE ( - 31, - 56 + 64 ) THEN + + 2 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6792
SELECT ALL - + COUNT ( * ) * 13 * + CAST ( NULL AS INTEGER ) * + 36 + + + CASE - - 94 WHEN 3 THEN - MAX ( ALL - 84 ) WHEN 48 - + - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * 62 * + - 14 THEN NULL END - - CASE 39 WHEN - COUNT ( * ) THEN NULL WHEN + COALESCE ( - 31, - 56 + 64 ) THEN + + 2 END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6793
SELECT 35, - 20 + COUNT( * ) + 68 DIV COUNT( * ) + - + 92 + - 40 * COALESCE ( 67, + + 43 ) + + + 20 AS col2
----
35
-2703

skipif mysql # not compatible
query II rowsort label-6793
SELECT 35, - 20 + COUNT ( * ) + 68 / COUNT ( * ) + - + 92 + - 40 * COALESCE ( 67, + + 43 ) + + + 20 AS col2
----
35
-2703

query I rowsort
SELECT ALL - 38 * 44 * - 14 + NULLIF ( + 6, + 99 - 90 * - + 87 ) AS col0
----
23414

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6795
SELECT ALL + 81 * - 33 AS col1, MAX( ALL 57 ) DIV + ( - - COUNT( * ) ) + - ( + 56 )
----
-2673
1

skipif mysql # not compatible
query II rowsort label-6795
SELECT ALL + 81 * - 33 AS col1, MAX ( ALL 57 ) / + ( - - COUNT ( * ) ) + - ( + 56 )
----
-2673
1

query I rowsort
SELECT ALL 70 * - - 40 + - 2 AS col2
----
2798

query II rowsort
SELECT 10 AS col0, + 51 AS col2
----
10
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6798
SELECT ALL 89 - + 30 * - 50 + + COUNT( DISTINCT 57 ) + + + 44 * - ( - - 97 ) AS col0
----
-2678

skipif mysql # not compatible
query I rowsort label-6798
SELECT ALL 89 - + 30 * - 50 + + COUNT ( DISTINCT 57 ) + + + 44 * - ( - - 97 ) AS col0
----
-2678

query I rowsort
SELECT - 59 + 24 * + 15
----
301

query II rowsort
SELECT - - 96, 86 AS col1
----
96
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6801
SELECT MIN( DISTINCT - + 74 ) AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-6801
SELECT MIN ( DISTINCT - + 74 ) AS col1
----
-74

query I rowsort
SELECT 87 + - - ( + 60 ) + 92
----
239

query I rowsort
SELECT 61 * - 62 * 46 AS col1
----
-173972

query I rowsort
SELECT 90 + + + 93
----
183

onlyif mysql # DIV for integer division: 
query I rowsort label-6805
SELECT 5 DIV + 93 * 76 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6805
SELECT 5 / + 93 * 76 AS col0
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6807
SELECT ALL 45 + + - 82 * - 10 + + - 6 DIV 77 DIV + 51
----
865

skipif mysql # not compatible
query I rowsort label-6807
SELECT ALL 45 + + - 82 * - 10 + + - 6 / 77 / + 51
----
865

onlyif mysql # DIV for integer division: 
query I rowsort label-6808
SELECT 95 DIV 71
----
1

skipif mysql # not compatible
query I rowsort label-6808
SELECT 95 / 71
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6809
SELECT ALL + 20 + CASE - 23 WHEN + + CAST( NULL AS SIGNED ) + - 11 THEN + - COALESCE ( - + 24, 34 + + - 81, - CAST( - 4 AS SIGNED ) DIV - 67 * 65 * CASE - - 53 WHEN - + 52 + + 10 * - CAST( NULL AS SIGNED ) THEN + 30 - - 61 + - 76 WHEN 15 THEN NULL END * + 26 - CASE + 59 WHEN + 17 DIV - 56 THEN CASE 26 WHEN 59 * 6 THEN 85 * - COUNT( * ) + 85 * 87 ELSE AVG ( ALL 53 ) * - 72 END DIV ( 18 * 84 ) END ) WHEN 38 THEN COUNT( * ) * CAST( NULL AS SIGNED ) ELSE - 5 + COUNT( * ) * 67 END + + SUM( DISTINCT - 57 ) DIV + COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-6809
SELECT ALL + 20 + CASE - 23 WHEN + + CAST ( NULL AS INTEGER ) + - 11 THEN + - COALESCE ( - + 24, 34 + + - 81, - CAST ( - 4 AS INTEGER ) / - 67 * 65 * CASE - - 53 WHEN - + 52 + + 10 * - CAST ( NULL AS INTEGER ) THEN + 30 - - 61 + - 76 WHEN 15 THEN NULL END * + 26 - CASE + 59 WHEN + 17 / - 56 THEN CASE 26 WHEN 59 * 6 THEN 85 * - COUNT ( * ) + 85 * 87 ELSE AVG ( ALL 53 ) * - 72 END / ( 18 * 84 ) END ) WHEN 38 THEN COUNT ( * ) * CAST ( NULL AS INTEGER ) ELSE - 5 + COUNT ( * ) * 67 END + + SUM ( DISTINCT - 57 ) / + COUNT ( * )
----
25

onlyif mysql # DIV for integer division: 
query II rowsort label-6810
SELECT 11 - + 92 + - 18 DIV 61 DIV - 99, - 50 AS col2
----
-81
-50

skipif mysql # not compatible
query II rowsort label-6810
SELECT 11 - + 92 + - 18 / 61 / - 99, - 50 AS col2
----
-81
-50

query II rowsort
SELECT ALL + 47 + - - 22, - 3 AS col1
----
69
-3

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

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

query I rowsort
SELECT DISTINCT - + NULLIF ( - 90, ( 11 ) * + + 79 )
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6815
SELECT 63 DIV + + COUNT( * ) + - 15 AS col1
----
48

skipif mysql # not compatible
query I rowsort label-6815
SELECT 63 / + + COUNT ( * ) + - 15 AS col1
----
48

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

query I rowsort
SELECT + 39 col0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-6818
SELECT ALL + - 26 + - 74 + + - 57 * - COUNT( * ) * + 26
----
1382

skipif mysql # not compatible
query I rowsort label-6818
SELECT ALL + - 26 + - 74 + + - 57 * - COUNT ( * ) * + 26
----
1382

query I rowsort
SELECT DISTINCT - - 64 + - 22 * - + 37 col2
----
878

query I rowsort
SELECT ALL - 39
----
-39

query I rowsort
SELECT ALL - 52 + + 74 col0
----
22

query II rowsort
SELECT ALL - + 14 * 76 col1, + 42 + + 43 + - + 1
----
-1064
84

query I rowsort
SELECT DISTINCT - ( - 24 )
----
24

query I rowsort
SELECT DISTINCT - - 89 * + 41 AS col1
----
3649

query I rowsort
SELECT DISTINCT - 62 AS col0
----
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6826
SELECT + COALESCE ( 71, + MIN( + NULLIF ( + 90, - 45 ) ) + - - 14 DIV - 47, 83, - COUNT( * ) ) * - + 50 AS col1
----
-3550

skipif mysql # not compatible
query I rowsort label-6826
SELECT + COALESCE ( 71, + MIN ( + NULLIF ( + 90, - 45 ) ) + - - 14 / - 47, 83, - COUNT ( * ) ) * - + 50 AS col1
----
-3550

query I rowsort
SELECT DISTINCT 92 - - 6 * - 70 AS col0
----
-328

onlyif mysql # aggregate syntax: 
query I rowsort label-6828
SELECT - CASE - 6 WHEN - ( - - 55 ) + - COUNT( * ) THEN + - 95 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6828
SELECT - CASE - 6 WHEN - ( - - 55 ) + - COUNT ( * ) THEN + - 95 END
----
NULL

query II rowsort
SELECT ALL 48 AS col2, - 54 AS col1
----
48
-54

query I rowsort
SELECT 61 * - 79
----
-4819

query I rowsort
SELECT DISTINCT 41 * 58
----
2378

onlyif mysql # aggregate syntax: 
query I rowsort label-6832
SELECT DISTINCT + 41 - - MAX( DISTINCT - - ( + 65 ) ) + + 90 AS col0
----
196

skipif mysql # not compatible
query I rowsort label-6832
SELECT DISTINCT + 41 - - MAX ( DISTINCT - - ( + 65 ) ) + + 90 AS col0
----
196

query I rowsort
SELECT DISTINCT 34 * 26 col0
----
884

query I rowsort
SELECT DISTINCT 5 * 38 AS col1
----
190

query I rowsort
SELECT 96 * + - 23 col2
----
-2208

query I rowsort
SELECT DISTINCT 98 * - 93
----
-9114

onlyif mysql # aggregate syntax: 
query I rowsort label-6837
SELECT SUM( DISTINCT - 12 ) + + COALESCE ( - 77, 79 ) AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-6837
SELECT SUM ( DISTINCT - 12 ) + + COALESCE ( - 77, 79 ) AS col0
----
-89

query II rowsort
SELECT DISTINCT 75, 4 AS col1
----
75
4

query II rowsort
SELECT ALL 26 AS col2, - 9 + - + 13
----
26
-22

query I rowsort
SELECT 86 + + - 62 * + + 79 + + 82 * + + 52 AS col2
----
-548

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

query I rowsort
SELECT ALL COALESCE ( - 1, + ( - 2 ) ) + - - 79 * 18 AS col2
----
1421

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6843
SELECT ( - - CASE 87 WHEN - 73 THEN NULL ELSE + 52 * - - 95 END ) + - ( + 67 ) + + 7 * + - 59 + + 9 + + + ( 26 ) + ( 28 ) + CAST( NULL AS SIGNED ) - + + 52 - 28 / 4 / + ( - + 36 ) * + SUM( DISTINCT + 81 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6843
SELECT ( - - CASE 87 WHEN - 73 THEN NULL ELSE + 52 * - - 95 END ) + - ( + 67 ) + + 7 * + - 59 + + 9 + + + ( 26 ) + ( 28 ) + CAST ( NULL AS INTEGER ) - + + 52 - 28 / 4 / + ( - + 36 ) * + SUM ( DISTINCT + 81 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6844
SELECT - COUNT( * ), + 82 * - 75 AS col2
----
-1
-6150

skipif mysql # not compatible
query II rowsort label-6844
SELECT - COUNT ( * ), + 82 * - 75 AS col2
----
-1
-6150

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6846
SELECT ALL 92 AS col0, COUNT( * ) + - CASE + 41 WHEN - ( + COUNT( * ) ) * 84 + - 9 - - + 7 + 83 THEN COUNT( ALL - + ( 13 ) ) END
----
92
NULL

skipif mysql # not compatible
query II rowsort label-6846
SELECT ALL 92 AS col0, COUNT ( * ) + - CASE + 41 WHEN - ( + COUNT ( * ) ) * 84 + - 9 - - + 7 + 83 THEN COUNT ( ALL - + ( 13 ) ) END
----
92
NULL

query I rowsort
SELECT DISTINCT 32 + + - 0 AS col1
----
32

query I rowsort
SELECT 63 col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6849
SELECT 8 + - ( + + COUNT( * ) )
----
7

skipif mysql # not compatible
query I rowsort label-6849
SELECT 8 + - ( + + COUNT ( * ) )
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6850
SELECT ALL + ( - CAST( + COUNT( * ) AS SIGNED ) ) * + - 12 * 62 + + 50 col2, 91 * - 92
----
794
-8372

skipif mysql # not compatible
query II rowsort label-6850
SELECT ALL + ( - CAST ( + COUNT ( * ) AS INTEGER ) ) * + - 12 * 62 + + 50 col2, 91 * - 92
----
794
-8372

query I rowsort
SELECT + ( 69 ) * ( 98 ) AS col1
----
6762

onlyif mysql # aggregate syntax: 
query I rowsort label-6852
SELECT DISTINCT + MIN( DISTINCT + 56 ) * + COALESCE ( - 66, - 30 ) + - - NULLIF ( - 46, - + COUNT( * ) * + 40 * - ( - + 69 ) ) + 62 + + SUM( DISTINCT - 45 ) * + 52 * - 6 * + - 7 AS col2
----
-101960

skipif mysql # not compatible
query I rowsort label-6852
SELECT DISTINCT + MIN ( DISTINCT + 56 ) * + COALESCE ( - 66, - 30 ) + - - NULLIF ( - 46, - + COUNT ( * ) * + 40 * - ( - + 69 ) ) + 62 + + SUM ( DISTINCT - 45 ) * + 52 * - 6 * + - 7 AS col2
----
-101960

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

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

query II rowsort
SELECT + 81 + 33 + + 46 AS col0, - 66
----
160
-66

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

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

query II rowsort
SELECT 84 AS col1, 1 * + 6
----
84
6

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6859
SELECT - 61 DIV + 1
----
-61

skipif mysql # not compatible
query I rowsort label-6859
SELECT - 61 / + 1
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-6860
SELECT DISTINCT - MIN( ALL - 22 )
----
22

skipif mysql # not compatible
query I rowsort label-6860
SELECT DISTINCT - MIN ( ALL - 22 )
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6861
SELECT ALL + CAST( NULL AS SIGNED ) * + 60 - - 41
----
NULL

skipif mysql # not compatible
query I rowsort label-6861
SELECT ALL + CAST ( NULL AS INTEGER ) * + 60 - - 41
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6862
SELECT + COUNT( * ) * + 88 DIV - - 31
----
2

skipif mysql # not compatible
query I rowsort label-6862
SELECT + COUNT ( * ) * + 88 / - - 31
----
2

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6864
SELECT + - 15 - - + 8 DIV CASE - 99 WHEN + CAST( NULL AS SIGNED ) THEN + COUNT( * ) * - 78 * - ( - 59 ) + AVG ( + 1 ) + + 35 + - 39 - - 92 DIV - 1 WHEN 40 THEN NULL ELSE + 39 END
----
-15

skipif mysql # not compatible
query I rowsort label-6864
SELECT + - 15 - - + 8 / CASE - 99 WHEN + CAST ( NULL AS INTEGER ) THEN + COUNT ( * ) * - 78 * - ( - 59 ) + AVG ( + 1 ) + + 35 + - 39 - - 92 / - 1 WHEN 40 THEN NULL ELSE + 39 END
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-6865
SELECT + NULLIF ( COALESCE ( + 20, - 57, 34 * + 33 * + ( CASE - + 14 WHEN + AVG ( + ( - + 13 ) ) + + - 10 THEN NULL WHEN + COUNT( * ) THEN 81 * 57 - + 69 + SUM( DISTINCT - + ( + 41 ) ) * 77 + 3 - + 30 + + 85 - - 59 * + 39 - 85 WHEN - + 45 THEN ( + 51 ) END ), SUM( ALL ( + ( + 78 ) ) ) ), - 87 )
----
20

skipif mysql # not compatible
query I rowsort label-6865
SELECT + NULLIF ( COALESCE ( + 20, - 57, 34 * + 33 * + ( CASE - + 14 WHEN + AVG ( + ( - + 13 ) ) + + - 10 THEN NULL WHEN + COUNT ( * ) THEN 81 * 57 - + 69 + SUM ( DISTINCT - + ( + 41 ) ) * 77 + 3 - + 30 + + 85 - - 59 * + 39 - 85 WHEN - + 45 THEN ( + 51 ) END ), SUM ( ALL ( + ( + 78 ) ) ) ), - 87 )
----
20

query I rowsort
SELECT - 50 * + 40
----
-2000

query I rowsort
SELECT DISTINCT + - 20
----
-20

query I rowsort
SELECT - + 91 * - 12 * - + 89 * 34 AS col0
----
-3304392

query II rowsort
SELECT ALL - 27 * 24 AS col1, 50 + 87
----
-648
137

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

query I rowsort
SELECT ALL 5 col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6872
SELECT - ( 17 ) * - - ( + + 45 ) * - + 77 * 25 * - COUNT( * )
----
-1472625

skipif mysql # not compatible
query I rowsort label-6872
SELECT - ( 17 ) * - - ( + + 45 ) * - + 77 * 25 * - COUNT ( * )
----
-1472625

onlyif mysql # aggregate syntax: 
query I rowsort label-6873
SELECT ALL NULLIF ( - SUM( ALL - 28 ), + 74 * 20 ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-6873
SELECT ALL NULLIF ( - SUM ( ALL - 28 ), + 74 * 20 ) AS col2
----
28

query I rowsort
SELECT - 46 + + - 30 col2
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-6875
SELECT ALL NULLIF ( - 36, + SUM( DISTINCT - 16 ) ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-6875
SELECT ALL NULLIF ( - 36, + SUM ( DISTINCT - 16 ) ) AS col2
----
-36

query I rowsort
SELECT - COALESCE ( 71, 6 * 3 ) + + 85 + - 83 - 38 * - 47
----
1717

onlyif mysql # DIV for integer division: 
query I rowsort label-6877
SELECT ALL + 92 DIV 76 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6877
SELECT ALL + 92 / 76 AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6878
SELECT - ( - 20 ) DIV 24 * + 90 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6878
SELECT - ( - 20 ) / 24 * + 90 AS col1
----
0

query I rowsort
SELECT ALL + 19 + 7
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-6880
SELECT DISTINCT CASE 18 WHEN - 89 * - - 33 THEN NULL WHEN + 62 / + 34 THEN NULL ELSE + 80 END AS col1, COUNT( * ) + - COALESCE ( + 87, 97 ) + - 48
----
80
-134

skipif mysql # not compatible
query II rowsort label-6880
SELECT DISTINCT CASE 18 WHEN - 89 * - - 33 THEN NULL WHEN + 62 / + 34 THEN NULL ELSE + 80 END AS col1, COUNT ( * ) + - COALESCE ( + 87, 97 ) + - 48
----
80
-134

query II rowsort
SELECT ALL 27 + 65 AS col1, + 86 * ( + - 29 ) + 22 AS col2
----
92
-2472

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6882
SELECT ALL CASE - ( - - CASE - - 90 WHEN - ( MAX( + - 4 ) ) THEN NULL WHEN + CAST( + + 6 AS SIGNED ) * 0 + + 60 + ( + - 1 ) * 45 + - 75 - - 99 THEN + + 24 + 93 + + 38 END ) WHEN + 64 * 8 THEN 85 + - 36 * - 51 END + - ( - 34 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6882
SELECT ALL CASE - ( - - CASE - - 90 WHEN - ( MAX ( + - 4 ) ) THEN NULL WHEN + CAST ( + + 6 AS INTEGER ) * 0 + + 60 + ( + - 1 ) * 45 + - 75 - - 99 THEN + + 24 + 93 + + 38 END ) WHEN + 64 * 8 THEN 85 + - 36 * - 51 END + - ( - 34 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 38 + - 89 AS col0
----
-127

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6884
SELECT ALL COUNT( ALL 48 ) * COUNT( + 29 ) DIV - + 10 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6884
SELECT ALL COUNT ( ALL 48 ) * COUNT ( + 29 ) / - + 10 AS col0
----
0

query I rowsort
SELECT + 86 * + 58 col2
----
4988

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6886
SELECT ALL CASE - + 76 WHEN - COALESCE ( - COALESCE ( - NULLIF ( + 42, - 60 + - 28 + - COALESCE ( 29, - + MIN( 21 ), + 52 + 68 * + 6 ) ), 91 * + - AVG ( ALL - 72 ) * + 55 + MAX( DISTINCT 28 ), - 33 + - 15, + + CAST( NULL AS SIGNED ) * COALESCE ( - - 79, + + ( - 53 ) * - CAST( - 26 AS DECIMAL ) ) ), - COALESCE ( + 67, - COUNT( * ) ), - COUNT( * ) ) + - 26 * - COUNT( ALL + 30 + ( + 32 ) ) THEN NULL WHEN - COALESCE ( + 55, + 54 + - 33, + 64 + + 97 ) THEN + 36 END * 30
----
NULL

skipif mysql # not compatible
query I rowsort label-6886
SELECT ALL CASE - + 76 WHEN - COALESCE ( - COALESCE ( - NULLIF ( + 42, - 60 + - 28 + - COALESCE ( 29, - + MIN ( 21 ), + 52 + 68 * + 6 ) ), 91 * + - AVG ( ALL - 72 ) * + 55 + MAX ( DISTINCT 28 ), - 33 + - 15, + + CAST ( NULL AS INTEGER ) * COALESCE ( - - 79, + + ( - 53 ) * - CAST ( - 26 AS REAL ) ) ), - COALESCE ( + 67, - COUNT ( * ) ), - COUNT ( * ) ) + - 26 * - COUNT ( ALL + 30 + ( + 32 ) ) THEN NULL WHEN - COALESCE ( + 55, + 54 + - 33, + 64 + + 97 ) THEN + 36 END * 30
----
NULL

query I rowsort
SELECT 35 col0
----
35

query I rowsort
SELECT - 73 - - 82 + - + 2
----
7

query I rowsort
SELECT ALL + 52 * - 72 AS col2
----
-3744

query I rowsort
SELECT - 96 * + 29
----
-2784

query I rowsort
SELECT DISTINCT + 28
----
28

query I rowsort
SELECT ALL 49 - + 21
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6893
SELECT DISTINCT MAX( ALL - 55 )
----
-55

skipif mysql # not compatible
query I rowsort label-6893
SELECT DISTINCT MAX ( ALL - 55 )
----
-55

query I rowsort
SELECT DISTINCT + + 1 AS col1
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6896
SELECT DISTINCT + + CASE - 46 WHEN + 90 / - 68 THEN NULL WHEN - 88 + 76 + + 5 THEN NULL WHEN - 12 * ( - COUNT( * ) ) - - 84 THEN NULL WHEN - + 47 + + - 1 * - 9 THEN - + COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6896
SELECT DISTINCT + + CASE - 46 WHEN + 90 / - 68 THEN NULL WHEN - 88 + 76 + + 5 THEN NULL WHEN - 12 * ( - COUNT ( * ) ) - - 84 THEN NULL WHEN - + 47 + + - 1 * - 9 THEN - + COUNT ( * ) END AS col0
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6899
SELECT + 51 DIV 49 + 34 + - 91 * + - 64 * + 10 AS col0
----
58275

skipif mysql # not compatible
query I rowsort label-6899
SELECT + 51 / 49 + 34 + - 91 * + - 64 * + 10 AS col0
----
58275

query I rowsort
SELECT + - 2 AS col2
----
-2

query I rowsort
SELECT DISTINCT + - 51
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6902
SELECT + 25 + + COUNT( * ) * + 17 + + ( + ( + COUNT( * ) ) ) + - + CAST( - COALESCE ( 94, + MAX( - CAST( - 10 AS SIGNED ) ), - COUNT( * ) * + 53 ) AS SIGNED ) * + + 33 AS col1
----
3145

skipif mysql # not compatible
query I rowsort label-6902
SELECT + 25 + + COUNT ( * ) * + 17 + + ( + ( + COUNT ( * ) ) ) + - + CAST ( - COALESCE ( 94, + MAX ( - CAST ( - 10 AS INTEGER ) ), - COUNT ( * ) * + 53 ) AS INTEGER ) * + + 33 AS col1
----
3145

onlyif mysql # DIV for integer division: 
query I rowsort label-6903
SELECT + ( + - 57 ) DIV - + 18 - 33 + - 19
----
-49

skipif mysql # not compatible
query I rowsort label-6903
SELECT + ( + - 57 ) / - + 18 - 33 + - 19
----
-49

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6908
SELECT ALL + - CASE + - CAST( 13 AS SIGNED ) WHEN 52 THEN + + 11 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6908
SELECT ALL + - CASE + - CAST ( 13 AS INTEGER ) WHEN 52 THEN + + 11 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6909
SELECT + 63 * 78 + COUNT( * )
----
4915

skipif mysql # not compatible
query I rowsort label-6909
SELECT + 63 * 78 + COUNT ( * )
----
4915

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6910
SELECT ALL + 98 * + - ( + + 11 ) * - CAST( NULL AS SIGNED ) AS col1, 18 DIV 3
----
NULL
6

skipif mysql # not compatible
query II rowsort label-6910
SELECT ALL + 98 * + - ( + + 11 ) * - CAST ( NULL AS INTEGER ) AS col1, 18 / 3
----
NULL
6

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6912
SELECT ALL + COUNT( - 16 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6912
SELECT ALL + COUNT ( - 16 ) AS col1
----
1

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6915
SELECT - 76 DIV CAST( - 88 AS SIGNED ) * 31 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6915
SELECT - 76 / CAST ( - 88 AS INTEGER ) * 31 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6916
SELECT + 72 * 74 + - ( + - CASE + 30 WHEN - 31 THEN NULL WHEN - 4 THEN NULL WHEN - 38 THEN NULL ELSE + - 77 DIV 30 * 45 + - + 6 END ) * + 26 * - + 89 AS col2
----
227472

skipif mysql # not compatible
query I rowsort label-6916
SELECT + 72 * 74 + - ( + - CASE + 30 WHEN - 31 THEN NULL WHEN - 4 THEN NULL WHEN - 38 THEN NULL ELSE + - 77 / 30 * 45 + - + 6 END ) * + 26 * - + 89 AS col2
----
227472

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6917
SELECT + CAST( - 94 AS SIGNED ) AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-6917
SELECT + CAST ( - 94 AS INTEGER ) AS col2
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6918
SELECT + COALESCE ( - + 5, + 34 * + - 30, - 58 + - 81 ) * + 76 + - - 34 + + MAX( - - 49 ), - 36 DIV CAST( ( + 95 ) AS SIGNED ) + NULLIF ( + 67, - CAST( 61 AS SIGNED ) ) * + 24 AS col0
----
-297
1608

skipif mysql # not compatible
query II rowsort label-6918
SELECT + COALESCE ( - + 5, + 34 * + - 30, - 58 + - 81 ) * + 76 + - - 34 + + MAX ( - - 49 ), - 36 / CAST ( ( + 95 ) AS INTEGER ) + NULLIF ( + 67, - CAST ( 61 AS INTEGER ) ) * + 24 AS col0
----
-297
1608

onlyif mysql # aggregate syntax: 
query I rowsort label-6919
SELECT - ( - 64 ) * - + SUM( + + NULLIF ( + - 58, - 43 ) ) + + + 7
----
3719

skipif mysql # not compatible
query I rowsort label-6919
SELECT - ( - 64 ) * - + SUM ( + + NULLIF ( + - 58, - 43 ) ) + + + 7
----
3719

query I rowsort
SELECT ALL 21 * + + 4 + + 33 AS col1
----
117

onlyif mysql # aggregate syntax: 
query II rowsort label-6921
SELECT ALL + 97 * + CASE - 19 WHEN 27 THEN 21 END, + COUNT( * ) + + 57 + - 36 AS col2
----
NULL
22

skipif mysql # not compatible
query II rowsort label-6921
SELECT ALL + 97 * + CASE - 19 WHEN 27 THEN 21 END, + COUNT ( * ) + + 57 + - 36 AS col2
----
NULL
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6922
SELECT ALL + 11 * - COUNT( * ) * - 6 * + 94 + - - 10 + - - 73 AS col2
----
6287

skipif mysql # not compatible
query I rowsort label-6922
SELECT ALL + 11 * - COUNT ( * ) * - 6 * + 94 + - - 10 + - - 73 AS col2
----
6287

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6923
SELECT ALL NULLIF ( - 22, 79 / CAST( NULL AS SIGNED ) + - + 64 ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-6923
SELECT ALL NULLIF ( - 22, 79 / CAST ( NULL AS INTEGER ) + - + 64 ) AS col2
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-6924
SELECT DISTINCT 33 * + 66 + - COUNT( * ) AS col0, 10 * + 60 * - 62
----
2177
-37200

skipif mysql # not compatible
query II rowsort label-6924
SELECT DISTINCT 33 * + 66 + - COUNT ( * ) AS col0, 10 * + 60 * - 62
----
2177
-37200

query I rowsort
SELECT DISTINCT - 52 + + 44 AS col2
----
-8

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

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

query I rowsort
SELECT ALL + CASE + 75 WHEN - 39 THEN 66 END + - 20 + - + ( + - 28 ) * 57
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6928
SELECT ALL - COUNT( * ) + + 10
----
9

skipif mysql # not compatible
query I rowsort label-6928
SELECT ALL - COUNT ( * ) + + 10
----
9

query I rowsort
SELECT - 34 col2
----
-34

query I rowsort
SELECT - 74 + - 40 + NULLIF ( + 17, - - 53 )
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6931
SELECT - 32 * + CAST( - 18 AS SIGNED ) * + 89
----
51264

skipif mysql # not compatible
query I rowsort label-6931
SELECT - 32 * + CAST ( - 18 AS INTEGER ) * + 89
----
51264

onlyif mysql # aggregate syntax: 
query I rowsort label-6932
SELECT - 50 + + 99 + - NULLIF ( 96, + 50 * + - COUNT( * ) * - 87 + - MIN( + + 28 ) ) * - 49 AS col1
----
4753

skipif mysql # not compatible
query I rowsort label-6932
SELECT - 50 + + 99 + - NULLIF ( 96, + 50 * + - COUNT ( * ) * - 87 + - MIN ( + + 28 ) ) * - 49 AS col1
----
4753

onlyif mysql # DIV for integer division: 
query I rowsort label-6933
SELECT DISTINCT + + 49 DIV 38
----
1

skipif mysql # not compatible
query I rowsort label-6933
SELECT DISTINCT + + 49 / 38
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6934
SELECT ALL - 89 - MIN( - - 29 ) * - - COUNT( * ) * + 97 + + 72 AS col2
----
-2830

skipif mysql # not compatible
query I rowsort label-6934
SELECT ALL - 89 - MIN ( - - 29 ) * - - COUNT ( * ) * + 97 + + 72 AS col2
----
-2830

onlyif mysql # DIV for integer division: 
query I rowsort label-6935
SELECT ALL - 31 DIV - 25 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6935
SELECT ALL - 31 / - 25 AS col1
----
1

query I rowsort
SELECT - 7 * + 25 AS col1
----
-175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6937
SELECT DISTINCT CAST( + AVG ( ALL - - 38 ) AS SIGNED ) * - 65
----
-2470

skipif mysql # not compatible
query I rowsort label-6937
SELECT DISTINCT CAST ( + AVG ( ALL - - 38 ) AS INTEGER ) * - 65
----
-2470

onlyif mysql # aggregate syntax: 
query I rowsort label-6938
SELECT + ( - COUNT( * ) ) + - 29 * + COALESCE ( - + 47, + 6 * 75 - + 97 )
----
1362

skipif mysql # not compatible
query I rowsort label-6938
SELECT + ( - COUNT ( * ) ) + - 29 * + COALESCE ( - + 47, + 6 * 75 - + 97 )
----
1362

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6939
SELECT - ( + MAX( CAST( NULL AS SIGNED ) ) ) / + 64 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6939
SELECT - ( + MAX ( CAST ( NULL AS INTEGER ) ) ) / + 64 AS col0
----
NULL

query I rowsort
SELECT 96 * + - 9 col0
----
-864

query II rowsort
SELECT + 86 AS col0, - 65 - 32 + + COALESCE ( 77, - 38 * + 56 )
----
86
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6942
SELECT - CAST( NULL AS SIGNED ) * 43 - 25 + + ( + 90 ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6942
SELECT - CAST ( NULL AS INTEGER ) * 43 - 25 + + ( + 90 ) * COUNT ( * )
----
NULL

query I rowsort
SELECT 19 * 29 * - 22
----
-12122

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

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

query I rowsort
SELECT DISTINCT + + 2 * - 47
----
-94

query I rowsort
SELECT ALL - NULLIF ( 13, - + 26 )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-6947
SELECT DISTINCT - - MAX( - 34 )
----
-34

skipif mysql # not compatible
query I rowsort label-6947
SELECT DISTINCT - - MAX ( - 34 )
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-6948
SELECT DISTINCT NULLIF ( + 37, + COUNT( - 39 ) ) + - 91 AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-6948
SELECT DISTINCT NULLIF ( + 37, + COUNT ( - 39 ) ) + - 91 AS col2
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6949
SELECT ALL - CAST( + 24 AS SIGNED )
----
-24

skipif mysql # not compatible
query I rowsort label-6949
SELECT ALL - CAST ( + 24 AS INTEGER )
----
-24

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

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

query I rowsort
SELECT ALL 42 + 59 AS col2
----
101

onlyif mysql # aggregate syntax: 
query II rowsort label-6953
SELECT 49, COUNT( * ) + + - 16 * 81 AS col1
----
49
-1295

skipif mysql # not compatible
query II rowsort label-6953
SELECT 49, COUNT ( * ) + + - 16 * 81 AS col1
----
49
-1295

query I rowsort
SELECT + 47 col0
----
47

query I rowsort
SELECT DISTINCT 82 + + 7
----
89

query I rowsort
SELECT ALL 58 * - 59 * + 28
----
-95816

query I rowsort
SELECT ALL 17 + - 10 AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6958
SELECT + 30 * COUNT( * ) - - - 33 col0
----
-3

skipif mysql # not compatible
query I rowsort label-6958
SELECT + 30 * COUNT ( * ) - - - 33 col0
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-6959
SELECT 89 DIV - 32, + 32 AS col2
----
-2
32

skipif mysql # not compatible
query II rowsort label-6959
SELECT 89 / - 32, + 32 AS col2
----
-2
32

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

onlyif mysql # aggregate syntax: 
query III rowsort label-6961
SELECT 87 AS col1, 64 col1, - ( - COUNT( * ) ) col2
----
87
64
1

skipif mysql # not compatible
query III rowsort label-6961
SELECT 87 AS col1, 64 col1, - ( - COUNT ( * ) ) col2
----
87
64
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6962
SELECT ALL - COALESCE ( - - COUNT( * ), + 27 ) + 21 * + - 63 AS col1
----
-1324

skipif mysql # not compatible
query I rowsort label-6962
SELECT ALL - COALESCE ( - - COUNT ( * ), + 27 ) + 21 * + - 63 AS col1
----
-1324

query I rowsort
SELECT 85 * - + 47
----
-3995

query I rowsort
SELECT 24 * - 41 * ( + + 28 ) col1
----
-27552

query I rowsort
SELECT 73 col1
----
73

query I rowsort
SELECT ALL 80 col1
----
80

query I rowsort
SELECT DISTINCT 86 AS col0
----
86

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

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

query II rowsort
SELECT ALL 43 AS col1, + 18 - - 68 + - + 21 + + - 55 col2
----
43
10

onlyif mysql # aggregate syntax: 
query II rowsort label-6970
SELECT DISTINCT + 98 AS col0, COUNT( * ) - + - 8 * + 63
----
98
505

skipif mysql # not compatible
query II rowsort label-6970
SELECT DISTINCT + 98 AS col0, COUNT ( * ) - + - 8 * + 63
----
98
505

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

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

query I rowsort
SELECT - + 19 col2
----
-19

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6974
SELECT - 67 - + NULLIF ( + 39, - 91 * - - 42 * - ( COUNT( * ) ) - COUNT( * ) - - COUNT( * ) + 40 + + 91 ) + ( 25 ) * + COALESCE ( - 99, - - 77, ( - 40 ) )
----
-2581

skipif mysql # not compatible
query I rowsort label-6974
SELECT - 67 - + NULLIF ( + 39, - 91 * - - 42 * - ( COUNT ( * ) ) - COUNT ( * ) - - COUNT ( * ) + 40 + + 91 ) + ( 25 ) * + COALESCE ( - 99, - - 77, ( - 40 ) )
----
-2581

query I rowsort
SELECT 65 * - - 21 - 82
----
1283

query I rowsort
SELECT - 41 * - 58 AS col1
----
2378

query II rowsort
SELECT - + 39 col1, + 78 AS col2
----
-39
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6978
SELECT 42 + - COUNT( * ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-6978
SELECT 42 + - COUNT ( * ) AS col2
----
41

query I rowsort
SELECT - ( + + 59 ) AS col1
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6980
SELECT ALL - COUNT( * ) DIV + + 60 + - 13 AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-6980
SELECT ALL - COUNT ( * ) / + + 60 + - 13 AS col2
----
-13

query I rowsort
SELECT DISTINCT - + 37 + - - 94 AS col0
----
57

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6983
SELECT 11 - - + 29 + + - 36 + + 32 + + 33 + + CAST( NULL AS SIGNED ) * + 13
----
NULL

skipif mysql # not compatible
query I rowsort label-6983
SELECT 11 - - + 29 + + - 36 + + 32 + + 33 + + CAST ( NULL AS INTEGER ) * + 13
----
NULL

query I rowsort
SELECT ALL - 81 + - 46 * 2 AS col1
----
-173

query I rowsort
SELECT + 49 col2
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6986
SELECT + 91 * + CAST( NULL AS SIGNED ) + + - 38
----
NULL

skipif mysql # not compatible
query I rowsort label-6986
SELECT + 91 * + CAST ( NULL AS INTEGER ) + + - 38
----
NULL

query II rowsort
SELECT - 16 AS col0, - 89
----
-16
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-6988
SELECT 3 DIV - + 44
----
0

skipif mysql # not compatible
query I rowsort label-6988
SELECT 3 / - + 44
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6989
SELECT 90 + + ( 88 ) + 72 AS col0, 51 * + - 51 - + COUNT( * )
----
250
-2602

skipif mysql # not compatible
query II rowsort label-6989
SELECT 90 + + ( 88 ) + 72 AS col0, 51 * + - 51 - + COUNT ( * )
----
250
-2602

onlyif mysql # aggregate syntax: 
query I rowsort label-6990
SELECT COUNT( + 71 )
----
1

skipif mysql # not compatible
query I rowsort label-6990
SELECT COUNT ( + 71 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6991
SELECT ALL NULLIF ( COUNT( * ), COUNT( ALL + + 53 ) + + - COUNT( DISTINCT + 39 ) * - 89 ) + - 9 AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-6991
SELECT ALL NULLIF ( COUNT ( * ), COUNT ( ALL + + 53 ) + + - COUNT ( DISTINCT + 39 ) * - 89 ) + - 9 AS col2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-6992
SELECT MAX( DISTINCT + 80 ) + SUM( DISTINCT 80 )
----
160

skipif mysql # not compatible
query I rowsort label-6992
SELECT MAX ( DISTINCT + 80 ) + SUM ( DISTINCT 80 )
----
160

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6993
SELECT 33 DIV - 30 - 95 + + + 74 * 69 AS col1, 8 * - COUNT( * ) + + 22 col0
----
5010
14

skipif mysql # not compatible
query II rowsort label-6993
SELECT 33 / - 30 - 95 + + + 74 * 69 AS col1, 8 * - COUNT ( * ) + + 22 col0
----
5010
14

query I rowsort
SELECT DISTINCT - 24 * + 20
----
-480

onlyif mysql # aggregate syntax: 
query I rowsort label-6995
SELECT ALL COUNT( * ) + + ( + 77 ) + - 45 AS col0
----
33

skipif mysql # not compatible
query I rowsort label-6995
SELECT ALL COUNT ( * ) + + ( + 77 ) + - 45 AS col0
----
33

query I rowsort
SELECT ALL - NULLIF ( + - 37, 51 )
----
37

query I rowsort
SELECT ALL - 6 * - 1
----
6

query I rowsort
SELECT 24 + 94
----
118

query I rowsort
SELECT 95 * - 4
----
-380

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7000
SELECT ALL 68 DIV + MIN( - 47 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7000
SELECT ALL 68 / + MIN ( - 47 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7001
SELECT + MIN( 66 ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-7001
SELECT + MIN ( 66 ) AS col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7002
SELECT - MIN( NULLIF ( - 66, + 13 ) ) * 69 + - 81 col1
----
4473

skipif mysql # not compatible
query I rowsort label-7002
SELECT - MIN ( NULLIF ( - 66, + 13 ) ) * 69 + - 81 col1
----
4473

query I rowsort
SELECT DISTINCT ( - ( 89 ) ) - 37
----
-126

onlyif mysql # aggregate syntax: 
query II rowsort label-7004
SELECT ALL 21 * - MAX( + 17 ) col2, ( + 28 ) AS col0
----
-357
28

skipif mysql # not compatible
query II rowsort label-7004
SELECT ALL 21 * - MAX ( + 17 ) col2, ( + 28 ) AS col0
----
-357
28

query I rowsort
SELECT ALL - 62 * 7 AS col2
----
-434

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7006
SELECT ALL CAST( - - 7 AS SIGNED ) - 98
----
-91

skipif mysql # not compatible
query I rowsort label-7006
SELECT ALL CAST ( - - 7 AS INTEGER ) - 98
----
-91

query I rowsort
SELECT DISTINCT 67 * + 37 * - + 21 col2
----
-52059

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

query I rowsort
SELECT - 98 + - - 3
----
-95

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

query I rowsort
SELECT DISTINCT 70 col2
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-7012
SELECT + 55 DIV + 57 * + - 62 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7012
SELECT + 55 / + 57 * + - 62 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7013
SELECT - - 43 DIV + 16 + 70 * - 85 - 72
----
-6020

skipif mysql # not compatible
query I rowsort label-7013
SELECT - - 43 / + 16 + 70 * - 85 - 72
----
-6020

onlyif mysql # DIV for integer division: 
query II rowsort label-7014
SELECT ALL - 37 DIV 7 AS col2, 88
----
-5
88

skipif mysql # not compatible
query II rowsort label-7014
SELECT ALL - 37 / 7 AS col2, 88
----
-5
88

onlyif mysql # aggregate syntax: 
query I rowsort label-7015
SELECT + - COUNT( * ) + 96 + + - 68 AS col1
----
27

skipif mysql # not compatible
query I rowsort label-7015
SELECT + - COUNT ( * ) + 96 + + - 68 AS col1
----
27

query I rowsort
SELECT - - 52 + + + 20 * - 4 AS col0
----
-28

query I rowsort
SELECT ALL ( 55 ) col2
----
55

query I rowsort
SELECT ALL 61 + - 79 * + ( 63 ) * - 16
----
79693

query I rowsort
SELECT ALL - + 77 * - + 92
----
7084

onlyif mysql # aggregate syntax: 
query I rowsort label-7020
SELECT - 14 + 20 * - COUNT( * )
----
-34

skipif mysql # not compatible
query I rowsort label-7020
SELECT - 14 + 20 * - COUNT ( * )
----
-34

query I rowsort
SELECT DISTINCT 44 col1
----
44

query I rowsort
SELECT ALL + - 64 + - 61 AS col0
----
-125

onlyif mysql # aggregate syntax: 
query I rowsort label-7023
SELECT - ( COUNT( * ) ) + + - NULLIF ( + + 49, + 48 / 91 ) * - + 58 * 65 + + 69 AS col0
----
184798

skipif mysql # not compatible
query I rowsort label-7023
SELECT - ( COUNT ( * ) ) + + - NULLIF ( + + 49, + 48 / 91 ) * - + 58 * 65 + + 69 AS col0
----
184798

onlyif mysql # aggregate syntax: 
query II rowsort label-7024
SELECT ALL 2 * + MIN( - 12 ) col2, 32 col1
----
-24
32

skipif mysql # not compatible
query II rowsort label-7024
SELECT ALL 2 * + MIN ( - 12 ) col2, 32 col1
----
-24
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7025
SELECT + + 30 * - COUNT( * ) + + + 98
----
68

skipif mysql # not compatible
query I rowsort label-7025
SELECT + + 30 * - COUNT ( * ) + + + 98
----
68

query I rowsort
SELECT DISTINCT - - 35 * - 89 + 55 + 29 AS col0
----
-3031

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7027
SELECT - + 81 DIV - 65 * COUNT( * ) + - 28 + + + MAX( 3 ) * - 46 - - 96 AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-7027
SELECT - + 81 / - 65 * COUNT ( * ) + - 28 + + + MAX ( 3 ) * - 46 - - 96 AS col2
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7028
SELECT ALL + CAST( - COALESCE ( - 55, 7 + - 96 ) AS SIGNED ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-7028
SELECT ALL + CAST ( - COALESCE ( - 55, 7 + - 96 ) AS INTEGER ) AS col0
----
55

query I rowsort
SELECT NULLIF ( - + 11, 66 + + 26 / - + 80 / + 70 )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-7030
SELECT - 93 * COUNT( * ) AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-7030
SELECT - 93 * COUNT ( * ) AS col2
----
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7031
SELECT ALL + MIN( - 0 ) DIV + + 34, ( - 91 ) AS col1
----
0
-91

skipif mysql # not compatible
query II rowsort label-7031
SELECT ALL + MIN ( - 0 ) / + + 34, ( - 91 ) AS col1
----
0
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7032
SELECT - 69 * COUNT( * ) * + - 97 AS col0
----
6693

skipif mysql # not compatible
query I rowsort label-7032
SELECT - 69 * COUNT ( * ) * + - 97 AS col0
----
6693

query II rowsort
SELECT + 11 col1, + ( 68 ) col0
----
11
68

query I rowsort
SELECT ALL + COALESCE ( - + 84, - + 86 ) * - 4
----
336

query I rowsort
SELECT ALL - 75 * + - 81 col1
----
6075

onlyif mysql # DIV for integer division: 
query I rowsort label-7036
SELECT + 39 * 97 DIV + 67 AS col2
----
56

skipif mysql # not compatible
query I rowsort label-7036
SELECT + 39 * 97 / + 67 AS col2
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-7037
SELECT NULLIF ( - COALESCE ( + COUNT( * ), - 29 + + 96 * - 76 * - 18 ), 14 + + 23 ) AS col0, - 97 - 51 AS col0
----
-1
-148

skipif mysql # not compatible
query II rowsort label-7037
SELECT NULLIF ( - COALESCE ( + COUNT ( * ), - 29 + + 96 * - 76 * - 18 ), 14 + + 23 ) AS col0, - 97 - 51 AS col0
----
-1
-148

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7038
SELECT - 83 * - 34 - + CAST( NULL AS SIGNED ) AS col2, 62 * - COUNT( * ) * - - COUNT( * ) col1
----
NULL
-62

skipif mysql # not compatible
query II rowsort label-7038
SELECT - 83 * - 34 - + CAST ( NULL AS INTEGER ) AS col2, 62 * - COUNT ( * ) * - - COUNT ( * ) col1
----
NULL
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7039
SELECT ALL + CAST( + 8 AS SIGNED )
----
8

skipif mysql # not compatible
query I rowsort label-7039
SELECT ALL + CAST ( + 8 AS INTEGER )
----
8

query I rowsort
SELECT ALL - CASE ( - 29 ) WHEN + + 78 THEN - - 76 END * + 75 col2
----
NULL

query I rowsort
SELECT - 3 * 28 * + - 17 AS col2
----
1428

onlyif mysql # aggregate syntax: 
query I rowsort label-7042
SELECT DISTINCT + MAX( DISTINCT + + 88 ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-7042
SELECT DISTINCT + MAX ( DISTINCT + + 88 ) AS col1
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7043
SELECT ALL + CAST( - 77 AS SIGNED )
----
-77

skipif mysql # not compatible
query I rowsort label-7043
SELECT ALL + CAST ( - 77 AS INTEGER )
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7044
SELECT COUNT( - 26 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7044
SELECT COUNT ( - 26 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7045
SELECT - 67 * - ( - 29 ) AS col2, + COUNT( * )
----
-1943
1

skipif mysql # not compatible
query II rowsort label-7045
SELECT - 67 * - ( - 29 ) AS col2, + COUNT ( * )
----
-1943
1

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

skipif mysql # not compatible
query II rowsort label-7046
SELECT ALL - COUNT ( * ) AS col2, - 68
----
-1
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-7047
SELECT ALL + 66 * - NULLIF ( + 34, - 29 + 98 / COUNT( * ) ) + + 5
----
-2239

skipif mysql # not compatible
query I rowsort label-7047
SELECT ALL + 66 * - NULLIF ( + 34, - 29 + 98 / COUNT ( * ) ) + + 5
----
-2239

query I rowsort
SELECT - - 3 + + - 85 AS col1
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7049
SELECT - CASE + NULLIF ( - ( - 37 ), - 29 + - 56 + + - COUNT( * ) * - + 46 * + - 42 ) WHEN - 41 THEN - 8 WHEN 6 + NULLIF ( COALESCE ( + COUNT( * ), - 86 + - + NULLIF ( - CAST( NULL AS SIGNED ), - + 99 * COALESCE ( MIN( ALL - 43 ), + + 31 / + 55 ) * - 66 + - COUNT( * ) + + + CASE 29 WHEN - 15 * - + 60 + + 11 THEN + - COUNT( * ) ELSE NULL END - + 12 - - 68 ) * CAST( + 33 AS SIGNED ) ), ( + COUNT( * ) ) * - 42 ) + - 6 THEN NULL WHEN 23 THEN NULL END * 48
----
NULL

skipif mysql # not compatible
query I rowsort label-7049
SELECT - CASE + NULLIF ( - ( - 37 ), - 29 + - 56 + + - COUNT ( * ) * - + 46 * + - 42 ) WHEN - 41 THEN - 8 WHEN 6 + NULLIF ( COALESCE ( + COUNT ( * ), - 86 + - + NULLIF ( - CAST ( NULL AS INTEGER ), - + 99 * COALESCE ( MIN ( ALL - 43 ), + + 31 / + 55 ) * - 66 + - COUNT ( * ) + + + CASE 29 WHEN - 15 * - + 60 + + 11 THEN + - COUNT ( * ) ELSE NULL END - + 12 - - 68 ) * CAST ( + 33 AS INTEGER ) ), ( + COUNT ( * ) ) * - 42 ) + - 6 THEN NULL WHEN 23 THEN NULL END * 48
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7050
SELECT + 32 + - 18 DIV - + COUNT( * ) AS col0, - 76 AS col0
----
50
-76

skipif mysql # not compatible
query II rowsort label-7050
SELECT + 32 + - 18 / - + COUNT ( * ) AS col0, - 76 AS col0
----
50
-76

query I rowsort
SELECT DISTINCT - 59 + - 55 AS col1
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-7052
SELECT ALL + COUNT( * ) + - + 67
----
-66

skipif mysql # not compatible
query I rowsort label-7052
SELECT ALL + COUNT ( * ) + - + 67
----
-66

query II rowsort
SELECT + 55 AS col0, + ( - 32 )
----
55
-32

query I rowsort
SELECT ALL + 26 + 65 AS col0
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-7055
SELECT DISTINCT - COUNT( * ) + - 54 * - + 9 AS col1, 23 + COUNT( * ) + + 64
----
485
88

skipif mysql # not compatible
query II rowsort label-7055
SELECT DISTINCT - COUNT ( * ) + - 54 * - + 9 AS col1, 23 + COUNT ( * ) + + 64
----
485
88

query I rowsort
SELECT ALL 73 * - + 65 AS col1
----
-4745

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7057
SELECT + NULLIF ( + 95, + + 24 / SUM( - - 70 ) * + CAST( NULL AS SIGNED ) + + 14 - - - 58 ) col1
----
95

skipif mysql # not compatible
query I rowsort label-7057
SELECT + NULLIF ( + 95, + + 24 / SUM ( - - 70 ) * + CAST ( NULL AS INTEGER ) + + 14 - - - 58 ) col1
----
95

query I rowsort
SELECT - - CASE 98 WHEN 68 THEN + 28 ELSE - + 84 END
----
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-7059
SELECT - COUNT( * ), 84 col1
----
-1
84

skipif mysql # not compatible
query II rowsort label-7059
SELECT - COUNT ( * ), 84 col1
----
-1
84

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

query I rowsort
SELECT + 92 + + 50 AS col2
----
142

query I rowsort
SELECT ALL 31 + + + 8 AS col2
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7063
SELECT DISTINCT + ( - COUNT( * ) ) - COALESCE ( - COUNT( * ), ( + 88 ) ) DIV + - 94
----
-1

skipif mysql # not compatible
query I rowsort label-7063
SELECT DISTINCT + ( - COUNT ( * ) ) - COALESCE ( - COUNT ( * ), ( + 88 ) ) / + - 94
----
-1

query I rowsort
SELECT DISTINCT - 60 * - - 74
----
-4440

query II rowsort
SELECT ALL + ( + - 4 ), + 77 AS col2
----
-4
77

onlyif mysql # DIV for integer division: 
query I rowsort label-7066
SELECT - ( 45 ) DIV + 77 + 82 * + 57 - 54 - + 50
----
4570

skipif mysql # not compatible
query I rowsort label-7066
SELECT - ( 45 ) / + 77 + 82 * + 57 - 54 - + 50
----
4570

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7067
SELECT ALL 58 * - + 67 AS col2, 8 * + 70 * - - 97 * + 9 + + 2 - - CAST( NULL AS SIGNED ) - - - COUNT( * ) + 1 * - - COUNT( * )
----
-3886
NULL

skipif mysql # not compatible
query II rowsort label-7067
SELECT ALL 58 * - + 67 AS col2, 8 * + 70 * - - 97 * + 9 + + 2 - - CAST ( NULL AS INTEGER ) - - - COUNT ( * ) + 1 * - - COUNT ( * )
----
-3886
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7068
SELECT - 70 + - - 30 AS col1, 11 * - 77 - + 59 * COUNT( * )
----
-40
-906

skipif mysql # not compatible
query II rowsort label-7068
SELECT - 70 + - - 30 AS col1, 11 * - 77 - + 59 * COUNT ( * )
----
-40
-906

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7069
SELECT + ( ( CAST( - MIN( CAST( 5 AS SIGNED ) ) AS SIGNED ) ) ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-7069
SELECT + ( ( CAST ( - MIN ( CAST ( 5 AS INTEGER ) ) AS INTEGER ) ) ) AS col0
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7070
SELECT 43 * - - 48 * - 51 * + COUNT( * ) + + 1 * - CAST( NULL AS SIGNED ) + 41 + - AVG ( ALL COALESCE ( - 84, + - 32, - 79 * + 18 * 23 ) ) * + + 46 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7070
SELECT 43 * - - 48 * - 51 * + COUNT ( * ) + + 1 * - CAST ( NULL AS INTEGER ) + 41 + - AVG ( ALL COALESCE ( - 84, + - 32, - 79 * + 18 * 23 ) ) * + + 46 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7071
SELECT ALL + MAX( - 42 )
----
-42

skipif mysql # not compatible
query I rowsort label-7071
SELECT ALL + MAX ( - 42 )
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7072
SELECT - 39 DIV - COUNT( DISTINCT + 7 ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-7072
SELECT - 39 / - COUNT ( DISTINCT + 7 ) AS col2
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-7073
SELECT ALL + MIN( - 29 ) AS col1, COUNT( * ) AS col0
----
-29
1

skipif mysql # not compatible
query II rowsort label-7073
SELECT ALL + MIN ( - 29 ) AS col1, COUNT ( * ) AS col0
----
-29
1

query I rowsort
SELECT + 10 + + + 75
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7075
SELECT - ( - + MAX( + 28 ) ) * + 82 * + 36 * ( + - ( 17 ) ) * 95 + + 45 + + 84
----
-133489311

skipif mysql # not compatible
query I rowsort label-7075
SELECT - ( - + MAX ( + 28 ) ) * + 82 * + 36 * ( + - ( 17 ) ) * 95 + + 45 + + 84
----
-133489311

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

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

query I rowsort
SELECT DISTINCT + 62 col1
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7078
SELECT DISTINCT + 98 DIV + COUNT( DISTINCT - - CAST( - - 8 AS SIGNED ) )
----
98

skipif mysql # not compatible
query I rowsort label-7078
SELECT DISTINCT + 98 / + COUNT ( DISTINCT - - CAST ( - - 8 AS INTEGER ) )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7079
SELECT DISTINCT + MAX( + 35 )
----
35

skipif mysql # not compatible
query I rowsort label-7079
SELECT DISTINCT + MAX ( + 35 )
----
35

query I rowsort
SELECT DISTINCT + 89 * COALESCE ( 22, + 99, - 54 ) AS col2
----
1958

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7082
SELECT 49 + + 89 col0, + 0 * COALESCE ( - 48, + 44, + 73 * + ( 6 ) * CAST( + 73 AS SIGNED ) ) * 84 + + + 20 * - 31
----
138
-620

skipif mysql # not compatible
query II rowsort label-7082
SELECT 49 + + 89 col0, + 0 * COALESCE ( - 48, + 44, + 73 * + ( 6 ) * CAST ( + 73 AS INTEGER ) ) * 84 + + + 20 * - 31
----
138
-620

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7083
SELECT CAST( NULL AS SIGNED ) / + NULLIF ( - 16, + + 56 ) * - MAX( ALL - 95 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7083
SELECT CAST ( NULL AS INTEGER ) / + NULLIF ( - 16, + + 56 ) * - MAX ( ALL - 95 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7084
SELECT SUM( + - COALESCE ( + 27, + 98 + + - 38 + + + 13, + 40 ) ) DIV + 81 * - COALESCE ( + 4, + 71 * - 5 )
----
0

skipif mysql # not compatible
query I rowsort label-7084
SELECT SUM ( + - COALESCE ( + 27, + 98 + + - 38 + + + 13, + 40 ) ) / + 81 * - COALESCE ( + 4, + 71 * - 5 )
----
0

query II rowsort
SELECT ALL + + 98 + + - 28, 11 AS col0
----
70
11

query I rowsort
SELECT 17 * - 39
----
-663

query I rowsort
SELECT ALL - - 77
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7088
SELECT - 64 * + 36 + - 15 / + COUNT( * ) + + 54 * + 2 - + CAST( NULL AS SIGNED ) / 91 + + - 88 - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7088
SELECT - 64 * + 36 + - 15 / + COUNT ( * ) + + 54 * + 2 - + CAST ( NULL AS INTEGER ) / 91 + + - 88 - + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7089
SELECT DISTINCT + 10 + COUNT( * ) * + COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-7089
SELECT DISTINCT + 10 + COUNT ( * ) * + COUNT ( * )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7090
SELECT - COUNT( ALL - 35 )
----
-1

skipif mysql # not compatible
query I rowsort label-7090
SELECT - COUNT ( ALL - 35 )
----
-1

query I rowsort
SELECT ALL - 55 + + - 27
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-7092
SELECT ALL 18 + + - ( - - COUNT( * ) ) + - 66 + + - 72 + - 63
----
-184

skipif mysql # not compatible
query I rowsort label-7092
SELECT ALL 18 + + - ( - - COUNT ( * ) ) + - 66 + + - 72 + - 63
----
-184

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

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

query II rowsort
SELECT ALL - COALESCE ( + + 61, - - 36, + 37 ) col0, - 7 * - 84 col0
----
-61
588

query II rowsort
SELECT DISTINCT - - 31 + + 68 col0, 19 * + + 72
----
99
1368

onlyif mysql # aggregate syntax: 
query II rowsort label-7096
SELECT - COUNT( * ) + 95 AS col0, COUNT( * ) AS col1
----
94
1

skipif mysql # not compatible
query II rowsort label-7096
SELECT - COUNT ( * ) + 95 AS col0, COUNT ( * ) AS col1
----
94
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7097
SELECT ALL - - CAST( - 66 AS SIGNED ) + + COUNT( * ) AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-7097
SELECT ALL - - CAST ( - 66 AS INTEGER ) + + COUNT ( * ) AS col0
----
-65

query I rowsort
SELECT 50 + + 15 * - 37
----
-505

query I rowsort
SELECT 96 + - 34
----
62

query I rowsort
SELECT DISTINCT - 3 * - ( ( + 74 ) ) + + 24
----
246

query I rowsort
SELECT ALL - + 89 - - ( - 80 ) AS col1
----
-169

query I rowsort
SELECT ALL 20 * - - 66 col0
----
1320

query I rowsort
SELECT - 18 col0
----
-18

query I rowsort
SELECT COALESCE ( - 76, - + 11, 25 ) + + 52 + 69 + + 40 * + 37
----
1525

onlyif mysql # aggregate syntax: 
query I rowsort label-7105
SELECT DISTINCT + + COUNT( DISTINCT - 26 ) * 29 * - 83 + COUNT( * ) AS col2
----
-2406

skipif mysql # not compatible
query I rowsort label-7105
SELECT DISTINCT + + COUNT ( DISTINCT - 26 ) * 29 * - 83 + COUNT ( * ) AS col2
----
-2406

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

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

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

query I rowsort
SELECT + 17 * 73
----
1241

query II rowsort
SELECT 45 AS col1, + 82
----
45
82

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

query I rowsort
SELECT 34 * - 95
----
-3230

query I rowsort
SELECT DISTINCT - 72 col2
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-7113
SELECT ALL 46 DIV 51
----
0

skipif mysql # not compatible
query I rowsort label-7113
SELECT ALL 46 / 51
----
0

query I rowsort
SELECT ALL - 95 col2
----
-95

query I rowsort
SELECT ALL + 12 * - + 46
----
-552

query I rowsort
SELECT 14 + + CASE + 14 WHEN + NULLIF ( 61, 98 * - NULLIF ( ( + 30 ), - ( - + 41 ) ) ) + + 59 THEN - 8 ELSE - ( + 65 ) + - 97 + - ( - 74 ) END + + 92 AS col0
----
18

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7117
SELECT ( 53 ) - - CAST( NULL AS DECIMAL ) + COALESCE ( + + 24, - CAST( NULL AS SIGNED ) * 62 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7117
SELECT ( 53 ) - - CAST ( NULL AS REAL ) + COALESCE ( + + 24, - CAST ( NULL AS INTEGER ) * 62 )
----
NULL

query II rowsort
SELECT + 85 AS col1, + 82
----
85
82

query I rowsort
SELECT 13 * + 10 - - - 96 + ( 18 ) AS col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7120
SELECT ALL + 86 + + - 42 + COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-7120
SELECT ALL + 86 + + - 42 + COUNT ( * )
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7121
SELECT ALL CAST( NULL AS SIGNED ) + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-7121
SELECT ALL CAST ( NULL AS INTEGER ) + 32
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7122
SELECT + COUNT( * ) AS col1, - MAX( ALL CAST( NULL AS SIGNED ) ) * - + 0 * + - 72 + + 84 + 71 + 0 * - 64
----
1
NULL

skipif mysql # not compatible
query II rowsort label-7122
SELECT + COUNT ( * ) AS col1, - MAX ( ALL CAST ( NULL AS INTEGER ) ) * - + 0 * + - 72 + + 84 + 71 + 0 * - 64
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7123
SELECT DISTINCT + MAX( DISTINCT - ( 94 ) ) + + 63 + + 45 * 56
----
2489

skipif mysql # not compatible
query I rowsort label-7123
SELECT DISTINCT + MAX ( DISTINCT - ( 94 ) ) + + 63 + + 45 * 56
----
2489

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

skipif mysql # not compatible
query I rowsort label-7124
SELECT ALL + + 58 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

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

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

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

query I rowsort
SELECT ALL - 26 + 63
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-7128
SELECT 55 - + 58 + - NULLIF ( + + NULLIF ( + 71, 85 ), - 98 * 77 - - 41 + + - 6 * - 19 ) + 82 * - - COUNT( * ), - 50 AS col2
----
8
-50

skipif mysql # not compatible
query II rowsort label-7128
SELECT 55 - + 58 + - NULLIF ( + + NULLIF ( + 71, 85 ), - 98 * 77 - - 41 + + - 6 * - 19 ) + 82 * - - COUNT ( * ), - 50 AS col2
----
8
-50

query I rowsort
SELECT ALL - 9 * + 72 + - 51
----
-699

query I rowsort
SELECT - - 32 AS col2
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7131
SELECT 34 * 83 DIV - - COUNT( * ) + + 45 * - + CAST( - + 57 AS SIGNED )
----
5387

skipif mysql # not compatible
query I rowsort label-7131
SELECT 34 * 83 / - - COUNT ( * ) + + 45 * - + CAST ( - + 57 AS INTEGER )
----
5387

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7132
SELECT - COUNT( * ) * + + 26 * - 79 + - + 62 - 10 + - - CAST( + COUNT( * ) AS SIGNED ) - - - 5 AS col1
----
1978

skipif mysql # not compatible
query I rowsort label-7132
SELECT - COUNT ( * ) * + + 26 * - 79 + - + 62 - 10 + - - CAST ( + COUNT ( * ) AS INTEGER ) - - - 5 AS col1
----
1978

query I rowsort
SELECT ALL + ( - 81 ) * - 45
----
3645

onlyif mysql # aggregate syntax: 
query I rowsort label-7134
SELECT ALL - + 86 - - + COALESCE ( + ( - + 94 ), 87 ) * + COUNT( * ) - - 0 + - 74 AS col1
----
-254

skipif mysql # not compatible
query I rowsort label-7134
SELECT ALL - + 86 - - + COALESCE ( + ( - + 94 ), 87 ) * + COUNT ( * ) - - 0 + - 74 AS col1
----
-254

query I rowsort
SELECT - ( - ( - 8 ) )
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-7136
SELECT 3 * - COUNT( ALL + 76 ) + + + 54
----
51

skipif mysql # not compatible
query I rowsort label-7136
SELECT 3 * - COUNT ( ALL + 76 ) + + + 54
----
51

query I rowsort
SELECT ALL + 13 * + + ( ( + 56 ) ) AS col0
----
728

query I rowsort
SELECT - - 34 AS col2
----
34

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

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

query I rowsort
SELECT 89 * - 63 * - 71 * + 2 col1
----
796194

onlyif mysql # aggregate syntax: 
query II rowsort label-7141
SELECT - 94, COUNT( * ) * + 85 * - - 83 AS col1
----
-94
7055

skipif mysql # not compatible
query II rowsort label-7141
SELECT - 94, COUNT ( * ) * + 85 * - - 83 AS col1
----
-94
7055

onlyif mysql # aggregate syntax: 
query I rowsort label-7142
SELECT DISTINCT SUM( ALL NULLIF ( - - 95, + + 84 ) )
----
95

skipif mysql # not compatible
query I rowsort label-7142
SELECT DISTINCT SUM ( ALL NULLIF ( - - 95, + + 84 ) )
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7143
SELECT 5 + - COUNT( * ) + - + 89 DIV 88 AS col0, - COUNT( * )
----
3
-1

skipif mysql # not compatible
query II rowsort label-7143
SELECT 5 + - COUNT ( * ) + - + 89 / 88 AS col0, - COUNT ( * )
----
3
-1

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

skipif mysql # not compatible
query I rowsort label-7144
SELECT - MIN ( + + 82 )
----
-82

query I rowsort
SELECT ALL 5 * + 83 AS col0
----
415

onlyif mysql # aggregate syntax: 
query II rowsort label-7146
SELECT ALL COUNT( * ) AS col2, + ( - 18 ) + - + ( 24 ) + 58
----
1
16

skipif mysql # not compatible
query II rowsort label-7146
SELECT ALL COUNT ( * ) AS col2, + ( - 18 ) + - + ( 24 ) + 58
----
1
16

onlyif mysql # aggregate syntax: 
query II rowsort label-7147
SELECT DISTINCT MIN( DISTINCT + 56 ) AS col2, NULLIF ( - 27, + - 70 )
----
56
-27

skipif mysql # not compatible
query II rowsort label-7147
SELECT DISTINCT MIN ( DISTINCT + 56 ) AS col2, NULLIF ( - 27, + - 70 )
----
56
-27

query I rowsort
SELECT 24 + - COALESCE ( + - 73, ( - + 89 ) + + 46 )
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-7149
SELECT DISTINCT SUM( + - 30 ) AS col1, + 36 - + COUNT( * ) AS col0
----
-30
35

skipif mysql # not compatible
query II rowsort label-7149
SELECT DISTINCT SUM ( + - 30 ) AS col1, + 36 - + COUNT ( * ) AS col0
----
-30
35

query I rowsort
SELECT ALL - COALESCE ( + + 55, + 91 - + + 18, - 52 + + 20 ) + + - 47
----
-102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7151
SELECT COUNT( * ) DIV - MIN( - + 7 ) + - 44 AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-7151
SELECT COUNT ( * ) / - MIN ( - + 7 ) + - 44 AS col1
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-7152
SELECT 17 * + MIN( ALL 98 ) * + + COALESCE ( 4, + - 22 * + 20 ) + - 11 AS col0
----
6653

skipif mysql # not compatible
query I rowsort label-7152
SELECT 17 * + MIN ( ALL 98 ) * + + COALESCE ( 4, + - 22 * + 20 ) + - 11 AS col0
----
6653

query II rowsort
SELECT ALL + 1 col1, - 59 AS col0
----
1
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-7154
SELECT + COUNT( * ) + 80 * + + MIN( - 58 ) + + - 24
----
-4663

skipif mysql # not compatible
query I rowsort label-7154
SELECT + COUNT ( * ) + 80 * + + MIN ( - 58 ) + + - 24
----
-4663

onlyif mysql # DIV for integer division: 
query I rowsort label-7155
SELECT + 70 * - 9 - - 66 + + 36 DIV - - 34
----
-563

skipif mysql # not compatible
query I rowsort label-7155
SELECT + 70 * - 9 - - 66 + + 36 / - - 34
----
-563

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7156
SELECT ALL - ( MIN( DISTINCT - + CAST( NULL AS SIGNED ) ) ) * - - 21 * - 27 + + MIN( 5 ) + + + 2 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7156
SELECT ALL - ( MIN ( DISTINCT - + CAST ( NULL AS INTEGER ) ) ) * - - 21 * - 27 + + MIN ( 5 ) + + + 2 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7157
SELECT + MIN( DISTINCT 42 )
----
42

skipif mysql # not compatible
query I rowsort label-7157
SELECT + MIN ( DISTINCT 42 )
----
42

query II rowsort
SELECT DISTINCT + 49 AS col1, 91 AS col1
----
49
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7159
SELECT ALL + + 16 AS col1, - CAST( COUNT( * ) AS SIGNED ) AS col0
----
16
-1

skipif mysql # not compatible
query II rowsort label-7159
SELECT ALL + + 16 AS col1, - CAST ( COUNT ( * ) AS INTEGER ) AS col0
----
16
-1

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

query I rowsort
SELECT + - 57
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-7162
SELECT ALL + 90 AS col2, - MAX( DISTINCT 91 ) AS col1
----
90
-91

skipif mysql # not compatible
query II rowsort label-7162
SELECT ALL + 90 AS col2, - MAX ( DISTINCT 91 ) AS col1
----
90
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7163
SELECT + 5 * 90 + - COUNT( * ) + COUNT( * ) AS col2
----
450

skipif mysql # not compatible
query I rowsort label-7163
SELECT + 5 * 90 + - COUNT ( * ) + COUNT ( * ) AS col2
----
450

query I rowsort
SELECT + - 14 * 1 * - 57 AS col1
----
798

onlyif mysql # DIV for integer division: 
query I rowsort label-7165
SELECT ALL + COALESCE ( + 17, - 79 DIV + - 39 ) col0
----
17

skipif mysql # not compatible
query I rowsort label-7165
SELECT ALL + COALESCE ( + 17, - 79 / + - 39 ) col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-7166
SELECT + COUNT( + 97 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7166
SELECT + COUNT ( + 97 ) AS col1
----
1

query I rowsort
SELECT ALL - 33 - - + 83 + 11
----
61

query I rowsort
SELECT DISTINCT 23 * + 91
----
2093

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7169
SELECT + ( - - 36 ) * - + CASE 21 WHEN + 82 THEN COUNT( * ) - CAST( NULL AS SIGNED ) - - 88 + + 68 + + - 25 * - CASE 73 WHEN + 64 THEN NULL WHEN AVG ( ALL 24 ) THEN - - 92 END * CAST( 89 AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7169
SELECT + ( - - 36 ) * - + CASE 21 WHEN + 82 THEN COUNT ( * ) - CAST ( NULL AS INTEGER ) - - 88 + + 68 + + - 25 * - CASE 73 WHEN + 64 THEN NULL WHEN AVG ( ALL 24 ) THEN - - 92 END * CAST ( 89 AS INTEGER ) ELSE NULL END
----
NULL

query I rowsort
SELECT - 81 + 45 AS col0
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7171
SELECT ALL + CASE + MIN( + 94 ) WHEN + 20 * - - 49 * + + 40 THEN NULL WHEN + 31 * + 52 / COUNT( * ) THEN + 82 * + COALESCE ( CAST( NULL AS SIGNED ), - 35, + + COUNT( * ) ) * COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7171
SELECT ALL + CASE + MIN ( + 94 ) WHEN + 20 * - - 49 * + + 40 THEN NULL WHEN + 31 * + 52 / COUNT ( * ) THEN + 82 * + COALESCE ( CAST ( NULL AS INTEGER ), - 35, + + COUNT ( * ) ) * COUNT ( * ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7172
SELECT + 38 DIV + + NULLIF ( 26, - 88 ) + - - COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-7172
SELECT + 38 / + + NULLIF ( 26, - 88 ) + - - COUNT ( * ) AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7173
SELECT - - 81 + COUNT( * ) - 25 AS col1
----
57

skipif mysql # not compatible
query I rowsort label-7173
SELECT - - 81 + COUNT ( * ) - 25 AS col1
----
57

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

query I rowsort
SELECT - ( - 93 ) AS col1
----
93

query I rowsort
SELECT ALL - 84 * - 84
----
7056

query I rowsort
SELECT - 11 * - 46 * + 55
----
27830

onlyif mysql # aggregate syntax: 
query I rowsort label-7178
SELECT ALL CASE - COUNT( * ) WHEN - 13 THEN + 51 WHEN - - 25 THEN + 9 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7178
SELECT ALL CASE - COUNT ( * ) WHEN - 13 THEN + 51 WHEN - - 25 THEN + 9 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7179
SELECT DISTINCT COUNT( * ) * - MAX( + 95 )
----
-95

skipif mysql # not compatible
query I rowsort label-7179
SELECT DISTINCT COUNT ( * ) * - MAX ( + 95 )
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7180
SELECT DISTINCT ( 54 ) AS col1, 16 + + CAST( - 73 AS SIGNED ) AS col0
----
54
-57

skipif mysql # not compatible
query II rowsort label-7180
SELECT DISTINCT ( 54 ) AS col1, 16 + + CAST ( - 73 AS INTEGER ) AS col0
----
54
-57

query I rowsort
SELECT DISTINCT - 30 + 21 * + 70 AS col2
----
1440

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7182
SELECT DISTINCT CAST( + - 32 AS SIGNED ) AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-7182
SELECT DISTINCT CAST ( + - 32 AS INTEGER ) AS col1
----
-32

query I rowsort
SELECT - 51 * - 4 * + 50 col2
----
10200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7184
SELECT - 57 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

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

query I rowsort
SELECT DISTINCT ( 65 ) AS col1
----
65

query I rowsort
SELECT + 27 + + + 5
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7187
SELECT DISTINCT COUNT( * ) DIV - 14 + - + 86
----
-86

skipif mysql # not compatible
query I rowsort label-7187
SELECT DISTINCT COUNT ( * ) / - 14 + - + 86
----
-86

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

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

query I rowsort
SELECT DISTINCT + ( ( + 8 ) )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7190
SELECT DISTINCT 2 * COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-7190
SELECT DISTINCT 2 * COUNT ( * )
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-7191
SELECT DISTINCT 85 DIV ( + 30 ) - 45 + - 99 * + - 72 * 15
----
106877

skipif mysql # not compatible
query I rowsort label-7191
SELECT DISTINCT 85 / ( + 30 ) - 45 + - 99 * + - 72 * 15
----
106877

onlyif mysql # aggregate syntax: 
query I rowsort label-7192
SELECT ALL + - NULLIF ( - + ( - 38 ), + + COUNT( * ) - 68 + + 77 ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-7192
SELECT ALL + - NULLIF ( - + ( - 38 ), + + COUNT ( * ) - 68 + + 77 ) AS col0
----
-38

query I rowsort
SELECT + 3 * + 36 - - 39 AS col1
----
147

query I rowsort
SELECT + + 68 + + 67
----
135

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-7197
SELECT DISTINCT + ( + ( + - 68 ) ) AS col2, + 5 DIV 72, - COUNT( * ) col0
----
-68
0
-1

skipif mysql # not compatible
query III rowsort label-7197
SELECT DISTINCT + ( + ( + - 68 ) ) AS col2, + 5 / 72, - COUNT ( * ) col0
----
-68
0
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7198
SELECT - - 91 * - 64 - SUM( DISTINCT - 0 ) AS col2
----
-5824

skipif mysql # not compatible
query I rowsort label-7198
SELECT - - 91 * - 64 - SUM ( DISTINCT - 0 ) AS col2
----
-5824

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7199
SELECT CASE + 64 WHEN + - 5 + - + 33 - 12 THEN + 82 WHEN CAST( NULL AS SIGNED ) THEN - COUNT( * ) + - 5 ELSE - 6 END AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-7199
SELECT CASE + 64 WHEN + - 5 + - + 33 - 12 THEN + 82 WHEN CAST ( NULL AS INTEGER ) THEN - COUNT ( * ) + - 5 ELSE - 6 END AS col1
----
-6

query I rowsort
SELECT - 27 * - 26 + + 29 - - 43
----
774

onlyif mysql # aggregate syntax: 
query I rowsort label-7201
SELECT - ( - CASE COUNT( * ) WHEN 49 * + 81 * + + 56 THEN 49 WHEN - COUNT( * ) THEN NULL WHEN - 30 * + 25 THEN COUNT( * ) * + - 13 / 14 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7201
SELECT - ( - CASE COUNT ( * ) WHEN 49 * + 81 * + + 56 THEN 49 WHEN - COUNT ( * ) THEN NULL WHEN - 30 * + 25 THEN COUNT ( * ) * + - 13 / 14 END ) AS col1
----
NULL

query I rowsort
SELECT + - 36 * 59 * 82 AS col0
----
-174168

query I rowsort
SELECT ALL 75 * + ( 71 )
----
5325

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

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

query I rowsort
SELECT ALL COALESCE ( 44, - + 42 ) col2
----
44

query I rowsort
SELECT ALL + 55 * 2 + 42
----
152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7207
SELECT NULLIF ( + CAST( COUNT( * ) AS SIGNED ), + 3 * AVG ( DISTINCT + 66 ) ) - + MAX( ( + ( + CAST( NULL AS SIGNED ) ) ) ) + - 67 + - 56 + - MIN( DISTINCT - CAST( NULL AS SIGNED ) ) * - + 42 * ( + 46 ) - - 73 * 21 AS col2, + 21 * + 39 AS col2
----
NULL
819

skipif mysql # not compatible
query II rowsort label-7207
SELECT NULLIF ( + CAST ( COUNT ( * ) AS INTEGER ), + 3 * AVG ( DISTINCT + 66 ) ) - + MAX ( ( + ( + CAST ( NULL AS INTEGER ) ) ) ) + - 67 + - 56 + - MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) * - + 42 * ( + 46 ) - - 73 * 21 AS col2, + 21 * + 39 AS col2
----
NULL
819

query I rowsort
SELECT ALL - 16 + 55
----
39

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7210
SELECT 49 DIV - 13
----
-3

skipif mysql # not compatible
query I rowsort label-7210
SELECT 49 / - 13
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7211
SELECT DISTINCT ( + - CAST( NULL AS SIGNED ) ) / + + 81 * 49 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7211
SELECT DISTINCT ( + - CAST ( NULL AS INTEGER ) ) / + + 81 * 49 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7212
SELECT 30 + + ( - 42 ) * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7212
SELECT 30 + + ( - 42 ) * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT - 16 AS col0, ( + 12 )
----
-16
12

query I rowsort
SELECT ALL + 53 * 97 AS col1
----
5141

onlyif mysql # aggregate syntax: 
query II rowsort label-7215
SELECT ( + + 70 ) + + + COUNT( * ) AS col2, 25
----
71
25

skipif mysql # not compatible
query II rowsort label-7215
SELECT ( + + 70 ) + + + COUNT ( * ) AS col2, 25
----
71
25

query I rowsort
SELECT 75 * 45 AS col0
----
3375

query I rowsort
SELECT 49 + + 21 + - 12 * ( + 66 ) AS col0
----
-722

query I rowsort
SELECT ALL - 81 + - 4 AS col0
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7219
SELECT ALL CAST( - 22 AS SIGNED ) * - 78 - + 63 + - 41 + - 84 * + 95 AS col2
----
-6368

skipif mysql # not compatible
query I rowsort label-7219
SELECT ALL CAST ( - 22 AS INTEGER ) * - 78 - + 63 + - 41 + - 84 * + 95 AS col2
----
-6368

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7220
SELECT 65 + + 40 DIV + - COUNT( * ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-7220
SELECT 65 + + 40 / + - COUNT ( * ) AS col2
----
25

query II rowsort
SELECT ALL 35, + 73 AS col1
----
35
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7222
SELECT 74 + + COALESCE ( - + 32, - - MIN( ALL + - 69 ) * + - 58 * + - 31 - - COALESCE ( + 30, - 85 ), 16 * + - 14 + - 12 - + 72 * - 30 + - CAST( NULL AS SIGNED ) * + 67 * - COUNT( * ) DIV 7 DIV + 16 + MAX( CAST( NULL AS SIGNED ) ) - COUNT( * ) * - ( + CAST( 82 AS SIGNED ) ) * + ( + NULLIF ( + 17, - COUNT( * ) * - NULLIF ( - CASE 93 WHEN - - CAST( + 47 AS SIGNED ) THEN NULL WHEN - - 28 THEN - 61 - + 2 + + 29 * + 57 ELSE COUNT( * ) END, 17 ) - 59 + - 93 ) ) * 35 )
----
42

skipif mysql # not compatible
query I rowsort label-7222
SELECT 74 + + COALESCE ( - + 32, - - MIN ( ALL + - 69 ) * + - 58 * + - 31 - - COALESCE ( + 30, - 85 ), 16 * + - 14 + - 12 - + 72 * - 30 + - CAST ( NULL AS INTEGER ) * + 67 * - COUNT ( * ) / 7 / + 16 + MAX ( CAST ( NULL AS INTEGER ) ) - COUNT ( * ) * - ( + CAST ( 82 AS INTEGER ) ) * + ( + NULLIF ( + 17, - COUNT ( * ) * - NULLIF ( - CASE 93 WHEN - - CAST ( + 47 AS INTEGER ) THEN NULL WHEN - - 28 THEN - 61 - + 2 + + 29 * + 57 ELSE COUNT ( * ) END, 17 ) - 59 + - 93 ) ) * 35 )
----
42

query I rowsort
SELECT ALL - 82 * + + 74 AS col0
----
-6068

query II rowsort
SELECT 90, 74 * - 88 AS col0
----
90
-6512

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7226
SELECT COUNT( * ) DIV + 88 * - - MAX( ALL - 32 ) + 12
----
12

skipif mysql # not compatible
query I rowsort label-7226
SELECT COUNT ( * ) / + 88 * - - MAX ( ALL - 32 ) + 12
----
12

query I rowsort
SELECT - 60 * + 61
----
-3660

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

query I rowsort
SELECT - COALESCE ( + 86, + ( 94 ), + - 6 ) + - ( - + 31 ) col1
----
-55

query I rowsort
SELECT + 76 * - 54 + - - 61 - 28 * - 53 + + + 31
----
-2528

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-7231
SELECT ALL + 86 * + 15 DIV + COUNT( * ) AS col2, 67 * + COUNT( * ) + 60 + + COUNT( * ) - + COALESCE ( - 56, + - 62 * + 97 + CASE 71 WHEN COALESCE ( - 9, - 56 * - CAST( + COUNT( * ) AS SIGNED ) ) * + 66 + - 80 THEN 14 END, - + NULLIF ( - COUNT( + - 70 ), 0 * - - 83 - - COUNT( * ) ) + - + 38 * - COALESCE ( + NULLIF ( - 19, - COALESCE ( - - 6, CAST( + - MIN( ALL - 64 ) AS DECIMAL ), - 33 * + SUM( DISTINCT - 8 ) - - COUNT( DISTINCT + 50 ) * + COUNT( * ) ) + 42 ), 98 * COUNT( * ) ) DIV 20 + AVG ( ( - 34 ) ) * 17 ) DIV + 87
----
1290
128

skipif mysql # not compatible
query II rowsort label-7231
SELECT ALL + 86 * + 15 / + COUNT ( * ) AS col2, 67 * + COUNT ( * ) + 60 + + COUNT ( * ) - + COALESCE ( - 56, + - 62 * + 97 + CASE 71 WHEN COALESCE ( - 9, - 56 * - CAST ( + COUNT ( * ) AS INTEGER ) ) * + 66 + - 80 THEN 14 END, - + NULLIF ( - COUNT ( + - 70 ), 0 * - - 83 - - COUNT ( * ) ) + - + 38 * - COALESCE ( + NULLIF ( - 19, - COALESCE ( - - 6, CAST ( + - MIN ( ALL - 64 ) AS REAL ), - 33 * + SUM ( DISTINCT - 8 ) - - COUNT ( DISTINCT + 50 ) * + COUNT ( * ) ) + 42 ), 98 * COUNT ( * ) ) / 20 + AVG ( ( - 34 ) ) * 17 ) / + 87
----
1290
128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7232
SELECT + 27 * + - CASE + 20 WHEN CAST( NULL AS SIGNED ) * + - 45 - - 91 DIV + - 83 + + 66 * - + 16 * - + 39 THEN - 26 DIV - 39 ELSE + 10 + + 49 + - MAX( + 94 ) * - COUNT( * ) END
----
-4131

skipif mysql # not compatible
query I rowsort label-7232
SELECT + 27 * + - CASE + 20 WHEN CAST ( NULL AS INTEGER ) * + - 45 - - 91 / + - 83 + + 66 * - + 16 * - + 39 THEN - 26 / - 39 ELSE + 10 + + 49 + - MAX ( + 94 ) * - COUNT ( * ) END
----
-4131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7233
SELECT + - NULLIF ( CAST( CASE - + ( + 82 ) WHEN - COALESCE ( - 42, + 9 * + - NULLIF ( + 94, + 21 ) ) * 88 + - - 6 + 33 THEN NULL ELSE + 23 * + - 46 END AS SIGNED ), - + 5 )
----
1058

skipif mysql # not compatible
query I rowsort label-7233
SELECT + - NULLIF ( CAST ( CASE - + ( + 82 ) WHEN - COALESCE ( - 42, + 9 * + - NULLIF ( + 94, + 21 ) ) * 88 + - - 6 + 33 THEN NULL ELSE + 23 * + - 46 END AS INTEGER ), - + 5 )
----
1058

onlyif mysql # DIV for integer division: 
query II rowsort label-7234
SELECT ALL - 96 AS col2, + COALESCE ( 38, + 3 * + 77, - - 62 + + - 69 ) DIV + 83 AS col1
----
-96
0

skipif mysql # not compatible
query II rowsort label-7234
SELECT ALL - 96 AS col2, + COALESCE ( 38, + 3 * + 77, - - 62 + + - 69 ) / + 83 AS col1
----
-96
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7235
SELECT + 54 + - ( COUNT( * ) ) + - - ( + + 11 ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-7235
SELECT + 54 + - ( COUNT ( * ) ) + - - ( + + 11 ) AS col0
----
64

query I rowsort
SELECT ALL + + 67 * 50 AS col1
----
3350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7237
SELECT 86 * - ( 51 ) * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7237
SELECT 86 * - ( 51 ) * + + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT + 15 AS col2, - 20 AS col2
----
15
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-7239
SELECT ALL - COUNT( * ) + - - 99 + - + 21
----
77

skipif mysql # not compatible
query I rowsort label-7239
SELECT ALL - COUNT ( * ) + - - 99 + - + 21
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-7240
SELECT + 76 col2, - CASE 71 WHEN - + 68 * + 72 + 13 * COALESCE ( + COUNT( * ), + COUNT( * ) * 54 + - ( + 95 ), - 61 ) * + 36 THEN SUM( DISTINCT - + 9 ) - MIN( 9 ) + 22 / + 35 WHEN - - COUNT( * ) THEN NULL END * + - 6 / - - 28 - - 57 AS col2
----
76
NULL

skipif mysql # not compatible
query II rowsort label-7240
SELECT + 76 col2, - CASE 71 WHEN - + 68 * + 72 + 13 * COALESCE ( + COUNT ( * ), + COUNT ( * ) * 54 + - ( + 95 ), - 61 ) * + 36 THEN SUM ( DISTINCT - + 9 ) - MIN ( 9 ) + 22 / + 35 WHEN - - COUNT ( * ) THEN NULL END * + - 6 / - - 28 - - 57 AS col2
----
76
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7241
SELECT - - SUM( ALL + 55 ) * 19 + + 48 * + 83 AS col0
----
5029

skipif mysql # not compatible
query I rowsort label-7241
SELECT - - SUM ( ALL + 55 ) * 19 + + 48 * + 83 AS col0
----
5029

query I rowsort
SELECT DISTINCT - + 69
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-7243
SELECT ALL 87 DIV - 30 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-7243
SELECT ALL 87 / - 30 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7244
SELECT ALL + CASE + - 63 WHEN - 60 / COUNT( * ) - - MIN( DISTINCT 54 ) * + 1 + COUNT( * ) * + 11 THEN NULL WHEN 15 THEN - 14 WHEN - 54 THEN - + 0 WHEN - COUNT( * ) + - 44 * + 72 * + NULLIF ( - 41, 37 - + ( + - COUNT( * ) ) ) THEN NULL ELSE - 94 END + - COUNT( * ) - 42 * - 30 col0
----
1165

skipif mysql # not compatible
query I rowsort label-7244
SELECT ALL + CASE + - 63 WHEN - 60 / COUNT ( * ) - - MIN ( DISTINCT 54 ) * + 1 + COUNT ( * ) * + 11 THEN NULL WHEN 15 THEN - 14 WHEN - 54 THEN - + 0 WHEN - COUNT ( * ) + - 44 * + 72 * + NULLIF ( - 41, 37 - + ( + - COUNT ( * ) ) ) THEN NULL ELSE - 94 END + - COUNT ( * ) - 42 * - 30 col0
----
1165

onlyif mysql # aggregate syntax: 
query I rowsort label-7245
SELECT DISTINCT - COUNT( * ) + + 21 AS col1
----
20

skipif mysql # not compatible
query I rowsort label-7245
SELECT DISTINCT - COUNT ( * ) + + 21 AS col1
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7246
SELECT ALL 75 + 65 DIV + COUNT( * ) AS col0
----
140

skipif mysql # not compatible
query I rowsort label-7246
SELECT ALL 75 + 65 / + COUNT ( * ) AS col0
----
140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7247
SELECT AVG ( + 79 ) * + 88 * - - 6 + + CAST( NULL AS SIGNED ) * + COUNT( * ) + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-7247
SELECT AVG ( + 79 ) * + 88 * - - 6 + + CAST ( NULL AS INTEGER ) * + COUNT ( * ) + 26
----
NULL

query I rowsort
SELECT ALL + ( + 15 ) * + 42
----
630

onlyif mysql # aggregate syntax: 
query I rowsort label-7249
SELECT - SUM( DISTINCT + ( - 15 ) ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-7249
SELECT - SUM ( DISTINCT + ( - 15 ) ) AS col1
----
15

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

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

query I rowsort
SELECT 93 * 40 col2
----
3720

onlyif mysql # DIV for integer division: 
query I rowsort label-7252
SELECT ALL 26 DIV - ( + 25 )
----
-1

skipif mysql # not compatible
query I rowsort label-7252
SELECT ALL 26 / - ( + 25 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7253
SELECT - COUNT( * ) DIV - + 79 + 75
----
75

skipif mysql # not compatible
query I rowsort label-7253
SELECT - COUNT ( * ) / - + 79 + 75
----
75

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7258
SELECT + NULLIF ( COUNT( * ), + 2 + 19 + COUNT( + 72 ) * - + 22 )
----
1

skipif mysql # not compatible
query I rowsort label-7258
SELECT + NULLIF ( COUNT ( * ), + 2 + 19 + COUNT ( + 72 ) * - + 22 )
----
1

query I rowsort
SELECT ALL - + 85
----
-85

query I rowsort
SELECT DISTINCT 90 * + - 67 AS col1
----
-6030

query I rowsort
SELECT ALL - + ( 62 ) AS col0
----
-62

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

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

query I rowsort
SELECT - 71 col0
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7265
SELECT - 61 * - CAST( - - SUM( - ( - - 11 ) ) AS SIGNED ) AS col2
----
-671

skipif mysql # not compatible
query I rowsort label-7265
SELECT - 61 * - CAST ( - - SUM ( - ( - - 11 ) ) AS INTEGER ) AS col2
----
-671

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7266
SELECT ALL + 89 * + 40 + + - 30 - - COUNT( * ) DIV 63 + - + 51 AS col0
----
3479

skipif mysql # not compatible
query I rowsort label-7266
SELECT ALL + 89 * + 40 + + - 30 - - COUNT ( * ) / 63 + - + 51 AS col0
----
3479

query I rowsort
SELECT 0 * 59 - - 41 AS col0
----
41

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7269
SELECT + + NULLIF ( - - 67, 34 * - 52 * + - SUM( DISTINCT + + 50 ) )
----
67

skipif mysql # not compatible
query I rowsort label-7269
SELECT + + NULLIF ( - - 67, 34 * - 52 * + - SUM ( DISTINCT + + 50 ) )
----
67

query I rowsort
SELECT ALL - - 27 + - ( 35 ) + + 43 + - 65 * + 46 * 9 AS col1
----
-26875

query I rowsort
SELECT DISTINCT - 11 + - 90 + + 94 col0
----
-7

query II rowsort
SELECT ALL 76 * - - 29 * + 78 AS col2, - 98
----
171912
-98

query I rowsort
SELECT DISTINCT + 71 * + 66 AS col2
----
4686

query I rowsort
SELECT + 99 * + 64 + 74
----
6410

onlyif mysql # aggregate syntax: 
query I rowsort label-7275
SELECT - 28 * + COALESCE ( + 53, - + MIN( DISTINCT - 27 ), - 16 )
----
-1484

skipif mysql # not compatible
query I rowsort label-7275
SELECT - 28 * + COALESCE ( + 53, - + MIN ( DISTINCT - 27 ), - 16 )
----
-1484

onlyif mysql # DIV for integer division: 
query I rowsort label-7276
SELECT - 46 DIV - 17 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-7276
SELECT - 46 / - 17 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7277
SELECT DISTINCT + COUNT( * ) * ( + MIN( - 97 ) ) AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-7277
SELECT DISTINCT + COUNT ( * ) * ( + MIN ( - 97 ) ) AS col2
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-7278
SELECT DISTINCT 27 DIV 86 col0
----
0

skipif mysql # not compatible
query I rowsort label-7278
SELECT DISTINCT 27 / 86 col0
----
0

query II rowsort
SELECT DISTINCT COALESCE ( + 16, + 56 ) AS col0, + 91 + + 98
----
16
189

query I rowsort
SELECT ALL 62 * - + 78 AS col2
----
-4836

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7281
SELECT - COALESCE ( ( + SUM( DISTINCT 44 ) ), + 62 * + - 51 * + ( - CAST( NULL AS SIGNED ) ) + + + 5 )
----
-44

skipif mysql # not compatible
query I rowsort label-7281
SELECT - COALESCE ( ( + SUM ( DISTINCT 44 ) ), + 62 * + - 51 * + ( - CAST ( NULL AS INTEGER ) ) + + + 5 )
----
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-7282
SELECT - 32 + - 95 + - 64 * - 44 * + COUNT( * ) * + 23, + 48 + - 51 * - 81 AS col0
----
64641
4179

skipif mysql # not compatible
query II rowsort label-7282
SELECT - 32 + - 95 + - 64 * - 44 * + COUNT ( * ) * + 23, + 48 + - 51 * - 81 AS col0
----
64641
4179

query I rowsort
SELECT - NULLIF ( ( 74 ), - AVG ( - 1 ) * ( + 86 ) + - 82 )
----
-74

query I rowsort
SELECT + 96 * - 46 AS col0
----
-4416

onlyif mysql # aggregate syntax: 
query I rowsort label-7285
SELECT + ( - COUNT( ALL - 10 ) ) + + - 93
----
-94

skipif mysql # not compatible
query I rowsort label-7285
SELECT + ( - COUNT ( ALL - 10 ) ) + + - 93
----
-94

query I rowsort
SELECT ALL + 19 * + 33
----
627

onlyif mysql # aggregate syntax: 
query I rowsort label-7287
SELECT DISTINCT + COALESCE ( + 31, + + 59 * - + COUNT( * ) * - SUM( + 73 ) + + 84 ) * 76 * COUNT( DISTINCT 39 ) AS col2
----
2356

skipif mysql # not compatible
query I rowsort label-7287
SELECT DISTINCT + COALESCE ( + 31, + + 59 * - + COUNT ( * ) * - SUM ( + 73 ) + + 84 ) * 76 * COUNT ( DISTINCT 39 ) AS col2
----
2356

onlyif mysql # aggregate syntax: 
query I rowsort label-7288
SELECT + 9 + + COUNT( * ) * - - 96 - - 56 col1
----
161

skipif mysql # not compatible
query I rowsort label-7288
SELECT + 9 + + COUNT ( * ) * - - 96 - - 56 col1
----
161

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

query II rowsort
SELECT DISTINCT + 51 AS col2, - 96 col0
----
51
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7291
SELECT ALL - 99 * + + 1 + + + 63 * + - 70 * - 70 * + + CASE + COUNT( * ) WHEN + 55 + - - 83 THEN 9 ELSE ( 42 ) END
----
12965301

skipif mysql # not compatible
query I rowsort label-7291
SELECT ALL - 99 * + + 1 + + + 63 * + - 70 * - 70 * + + CASE + COUNT ( * ) WHEN + 55 + - - 83 THEN 9 ELSE ( 42 ) END
----
12965301

query I rowsort
SELECT + - 54 * 62 * + + 99
----
-331452

query I rowsort
SELECT ALL + 43 * - 0 * 52 AS col0
----
0

query II rowsort
SELECT 2 AS col1, 95 + 48
----
2
143

query I rowsort
SELECT NULLIF ( - 64, 54 * - + 94 + + + 45 )
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-7296
SELECT DISTINCT - + COUNT( + - 94 ) * - SUM( DISTINCT + + 5 ) * CASE - 95 WHEN 91 * 98 * + 85 THEN + + CASE + 34 WHEN 17 * + + CASE + 42 WHEN + - COALESCE ( - + CAST( + + 31 AS SIGNED ), 77 * - + 99 + + 63 + - 18 * 28, + COUNT( * ) - + - ( + COUNT( + + 23 ) ) ) THEN + NULLIF ( 46, 74 + + 33 * + ( - 69 ) ) WHEN CAST( NULL AS DECIMAL ) * - 7 * 19 THEN NULL ELSE - SUM( + - 5 ) END * ( 61 ) * + 67 - 92 THEN NULL WHEN - AVG ( ALL 32 ) * - 58 + + 55 THEN 83 DIV 35 + + 39 ELSE 92 END WHEN MIN( + 48 ) + + ( + 10 ) * 38 THEN - 16 * 46 ELSE - 25 END + 71 + + 65
----
11

skipif mysql # not compatible
query I rowsort label-7296
SELECT DISTINCT - + COUNT ( + - 94 ) * - SUM ( DISTINCT + + 5 ) * CASE - 95 WHEN 91 * 98 * + 85 THEN + + CASE + 34 WHEN 17 * + + CASE + 42 WHEN + - COALESCE ( - + CAST ( + + 31 AS INTEGER ), 77 * - + 99 + + 63 + - 18 * 28, + COUNT ( * ) - + - ( + COUNT ( + + 23 ) ) ) THEN + NULLIF ( 46, 74 + + 33 * + ( - 69 ) ) WHEN CAST ( NULL AS REAL ) * - 7 * 19 THEN NULL ELSE - SUM ( + - 5 ) END * ( 61 ) * + 67 - 92 THEN NULL WHEN - AVG ( ALL 32 ) * - 58 + + 55 THEN 83 / 35 + + 39 ELSE 92 END WHEN MIN ( + 48 ) + + ( + 10 ) * 38 THEN - 16 * 46 ELSE - 25 END + 71 + + 65
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7297
SELECT ALL + + 24 * - 86 + - CASE + CAST( - 9 AS SIGNED ) WHEN - 56 * + 55 * 70 THEN NULL ELSE + - ( + - 88 ) * + 99 END
----
-10776

skipif mysql # not compatible
query I rowsort label-7297
SELECT ALL + + 24 * - 86 + - CASE + CAST ( - 9 AS INTEGER ) WHEN - 56 * + 55 * 70 THEN NULL ELSE + - ( + - 88 ) * + 99 END
----
-10776

onlyif mysql # aggregate syntax: 
query I rowsort label-7298
SELECT + 38 * - + COUNT( DISTINCT + 74 ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-7298
SELECT + 38 * - + COUNT ( DISTINCT + 74 ) AS col2
----
-38

query I rowsort
SELECT + 82 * + 80 + + - 26 + - 84 + - - 38
----
6488

query I rowsort
SELECT - 52 + 32 col2
----
-20

query I rowsort
SELECT DISTINCT + ( + 6 ) * 62 + - - 99
----
471

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7302
SELECT NULLIF ( + - 34, + CAST( NULL AS SIGNED ) * 92 + + 23 + + + ( + 64 ) ) AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-7302
SELECT NULLIF ( + - 34, + CAST ( NULL AS INTEGER ) * 92 + + 23 + + + ( + 64 ) ) AS col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-7303
SELECT ALL + COUNT( * ) * 20 - - + COUNT( * ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-7303
SELECT ALL + COUNT ( * ) * 20 - - + COUNT ( * ) AS col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7304
SELECT + COUNT( * ) * - 97 AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-7304
SELECT + COUNT ( * ) * - 97 AS col2
----
-97

query I rowsort
SELECT 22 * + 52 + + 80 col2
----
1224

query I rowsort
SELECT - 98 + 37 AS col0
----
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7307
SELECT ALL - 22 * COUNT( * ) DIV - + 88 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7307
SELECT ALL - 22 * COUNT ( * ) / - + 88 AS col2
----
0

query II rowsort
SELECT - 92 + + 36 * + 35 + - 7 + 82 + - 55 * + + 26 AS col2, 40 AS col2
----
-187
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7309
SELECT DISTINCT - 49 DIV - - COUNT( * ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-7309
SELECT DISTINCT - 49 / - - COUNT ( * ) AS col0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-7310
SELECT MIN( - 71 ) * - + 51 + + NULLIF ( + 85, + + 57 + 34 ) AS col1
----
3706

skipif mysql # not compatible
query I rowsort label-7310
SELECT MIN ( - 71 ) * - + 51 + + NULLIF ( + 85, + + 57 + 34 ) AS col1
----
3706

query I rowsort
SELECT ALL - 23 * - - 35
----
-805

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7312
SELECT - CAST( NULL AS DECIMAL ) + ( + + 53 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7312
SELECT - CAST ( NULL AS REAL ) + ( + + 53 ) col1
----
NULL

query II rowsort
SELECT - 78 AS col2, ( + - 98 ) AS col2
----
-78
-98

query I rowsort
SELECT - 38 + + 88
----
50

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

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

query I rowsort
SELECT ALL + 60 + - + 76 + + 65
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7317
SELECT ALL COUNT( * ) + 24 * - ( - + 83 ) * + 8
----
15937

skipif mysql # not compatible
query I rowsort label-7317
SELECT ALL COUNT ( * ) + 24 * - ( - + 83 ) * + 8
----
15937

query I rowsort
SELECT ALL + + 73 + - 28 AS col2
----
45

query I rowsort
SELECT - 37 * + 95 + - 99
----
-3614

query I rowsort
SELECT - + 61
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-7321
SELECT - 49 AS col2, + 43 * COUNT( ALL 10 ) + - + 55 AS col1
----
-49
-12

skipif mysql # not compatible
query II rowsort label-7321
SELECT - 49 AS col2, + 43 * COUNT ( ALL 10 ) + - + 55 AS col1
----
-49
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-7322
SELECT - CASE + COUNT( * ) WHEN - COUNT( * ) / - 64 * + - 98 / - + CASE - COUNT( * ) WHEN - CASE - - 46 WHEN - COUNT( * ) THEN + 7 ELSE NULL END THEN NULL WHEN - COUNT( DISTINCT + 26 ) THEN - - 76 END THEN NULL WHEN - 84 THEN - 68 ELSE + + 23 END
----
-23

skipif mysql # not compatible
query I rowsort label-7322
SELECT - CASE + COUNT ( * ) WHEN - COUNT ( * ) / - 64 * + - 98 / - + CASE - COUNT ( * ) WHEN - CASE - - 46 WHEN - COUNT ( * ) THEN + 7 ELSE NULL END THEN NULL WHEN - COUNT ( DISTINCT + 26 ) THEN - - 76 END THEN NULL WHEN - 84 THEN - 68 ELSE + + 23 END
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-7323
SELECT ALL + + MIN( ALL 53 ) + - ( 89 ) col1
----
-36

skipif mysql # not compatible
query I rowsort label-7323
SELECT ALL + + MIN ( ALL 53 ) + - ( 89 ) col1
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7324
SELECT - CAST( + + 56 AS SIGNED ) AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-7324
SELECT - CAST ( + + 56 AS INTEGER ) AS col0
----
-56

query II rowsort
SELECT 98, ( - 94 ) AS col1
----
98
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-7326
SELECT ALL 12 * + MAX( DISTINCT + ( + 11 ) ) + - MIN( + 19 ) * + - 17 - - 64
----
519

skipif mysql # not compatible
query I rowsort label-7326
SELECT ALL 12 * + MAX ( DISTINCT + ( + 11 ) ) + - MIN ( + 19 ) * + - 17 - - 64
----
519

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7327
SELECT DISTINCT - - 31 + - 68 AS col1, - 6 * + COUNT( * ) DIV + 91 * 32 col0
----
-37
0

skipif mysql # not compatible
query II rowsort label-7327
SELECT DISTINCT - - 31 + - 68 AS col1, - 6 * + COUNT ( * ) / + 91 * 32 col0
----
-37
0

query I rowsort
SELECT ALL - COALESCE ( - 20, - 88 ) + COALESCE ( - - 11, 27 * + 25 ) + 54 AS col2
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7329
SELECT DISTINCT - + COALESCE ( 78, 81 DIV + COUNT( * ) * - - ( ( + 70 ) ) * + 11 + 56, + 46 )
----
-78

skipif mysql # not compatible
query I rowsort label-7329
SELECT DISTINCT - + COALESCE ( 78, 81 / + COUNT ( * ) * - - ( ( + 70 ) ) * + 11 + 56, + 46 )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-7330
SELECT ALL - - MIN( - - 74 )
----
74

skipif mysql # not compatible
query I rowsort label-7330
SELECT ALL - - MIN ( - - 74 )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7331
SELECT - COUNT( * ) * 23 - 14
----
-37

skipif mysql # not compatible
query I rowsort label-7331
SELECT - COUNT ( * ) * 23 - 14
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7332
SELECT ( MAX( - 88 ) ) * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7332
SELECT ( MAX ( - 88 ) ) * CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT DISTINCT - + 15, - 41 AS col1
----
-15
-41

query II rowsort
SELECT ALL - 62 - 68 AS col0, + 70 AS col1
----
-130
70

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

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

query I rowsort
SELECT DISTINCT 51 * 93 * + 61 * + + 26 * - 26 AS col0
----
-195582348

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7337
SELECT DISTINCT 10 * + - ( COUNT( * ) ) * 18 + + 83 + + - 22 - + - 77 * + + 24 + + 62 * + 57 * ( - + NULLIF ( + - 63, - 89 ) ) * + - 50 + - 99 + - COUNT( * ) * - CAST( NULL AS SIGNED ) * + NULLIF ( CAST( - - 5 AS SIGNED ), + 68 * + ( + 5 ) ) + + - 32
----
NULL

skipif mysql # not compatible
query I rowsort label-7337
SELECT DISTINCT 10 * + - ( COUNT ( * ) ) * 18 + + 83 + + - 22 - + - 77 * + + 24 + + 62 * + 57 * ( - + NULLIF ( + - 63, - 89 ) ) * + - 50 + - 99 + - COUNT ( * ) * - CAST ( NULL AS INTEGER ) * + NULLIF ( CAST ( - - 5 AS INTEGER ), + 68 * + ( + 5 ) ) + + - 32
----
NULL

query I rowsort
SELECT 68 * + 88 col2
----
5984

query I rowsort
SELECT DISTINCT 16 * - 58
----
-928

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

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

query I rowsort
SELECT ALL - 19 col2
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7342
SELECT 58 * 32 DIV + COUNT( * )
----
1856

skipif mysql # not compatible
query I rowsort label-7342
SELECT 58 * 32 / + COUNT ( * )
----
1856

query I rowsort
SELECT 93 * + 57 col0
----
5301

query I rowsort
SELECT 64 - + 19 AS col1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7345
SELECT DISTINCT 56 + + - MAX( ( + 5 ) )
----
51

skipif mysql # not compatible
query I rowsort label-7345
SELECT DISTINCT 56 + + - MAX ( ( + 5 ) )
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-7346
SELECT 83 * + 38, + COUNT( * ) * + 15 AS col1
----
3154
15

skipif mysql # not compatible
query II rowsort label-7346
SELECT 83 * + 38, + COUNT ( * ) * + 15 AS col1
----
3154
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7347
SELECT ALL - CASE + ( - 88 ) WHEN + + MIN( ALL 60 ) + - AVG ( + + 84 ) * 36 * - + 84 THEN NULL ELSE - 0 END + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7347
SELECT ALL - CASE + ( - 88 ) WHEN + + MIN ( ALL 60 ) + - AVG ( + + 84 ) * 36 * - + 84 THEN NULL ELSE - 0 END + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7348
SELECT 99 - + COUNT( * ) DIV + + COUNT( * ) AS col1, - 58 AS col2
----
98
-58

skipif mysql # not compatible
query II rowsort label-7348
SELECT 99 - + COUNT ( * ) / + + COUNT ( * ) AS col1, - 58 AS col2
----
98
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7349
SELECT + COALESCE ( COUNT( * ), + - 67 * - 32 ) + - - MAX( ALL + 41 ) + + - 46 + 45
----
41

skipif mysql # not compatible
query I rowsort label-7349
SELECT + COALESCE ( COUNT ( * ), + - 67 * - 32 ) + - - MAX ( ALL + 41 ) + + - 46 + 45
----
41

query I rowsort
SELECT - COALESCE ( - + 80, 10 )
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7351
SELECT ALL + 67 + - + NULLIF ( - - 94, + COUNT( * ) ) + - 82, 42 + + 16 + - + 53 * - 20 * + MAX( + 9 ) * - 93 + - 5 DIV ( 37 ) - + + 73 + - COUNT( * ) + - ( 73 ) AS col2
----
-109
-887309

skipif mysql # not compatible
query II rowsort label-7351
SELECT ALL + 67 + - + NULLIF ( - - 94, + COUNT ( * ) ) + - 82, 42 + + 16 + - + 53 * - 20 * + MAX ( + 9 ) * - 93 + - 5 / ( 37 ) - + + 73 + - COUNT ( * ) + - ( 73 ) AS col2
----
-109
-887309

onlyif mysql # aggregate syntax: 
query I rowsort label-7352
SELECT - SUM( - + 36 )
----
36

skipif mysql # not compatible
query I rowsort label-7352
SELECT - SUM ( - + 36 )
----
36

onlyif mysql # DIV for integer division: 
query II rowsort label-7353
SELECT 9 + + - 62 * 90 + - 82 DIV 51 * - ( - - 97 ), + 21 + - - 34 * + 37 col0
----
-5474
1279

skipif mysql # not compatible
query II rowsort label-7353
SELECT 9 + + - 62 * 90 + - 82 / 51 * - ( - - 97 ), + 21 + - - 34 * + 37 col0
----
-5474
1279

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7354
SELECT DISTINCT - COUNT( + 96 ) + ( + 51 ) DIV + + MAX( DISTINCT 82 ) * 66 * 85 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7354
SELECT DISTINCT - COUNT ( + 96 ) + ( + 51 ) / + + MAX ( DISTINCT 82 ) * 66 * 85 AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7355
SELECT 1 + 17 AS col1, ( 9 ) / - - 60 - - + COALESCE ( NULLIF ( - COUNT( * ), - - AVG ( + 28 ) ), + 50, - ( + 85 ) - + - CASE + CAST( - ( - 4 ) AS DECIMAL ) WHEN COALESCE ( - 67, SUM( - 69 ) ) THEN - 45 END / MIN( DISTINCT + 51 ) ) + + 13 * - 36 + - + COUNT( * ) + - + CAST( NULL AS DECIMAL ) + 46 AS col2
----
18
NULL

skipif mysql # not compatible
query II rowsort label-7355
SELECT 1 + 17 AS col1, ( 9 ) / - - 60 - - + COALESCE ( NULLIF ( - COUNT ( * ), - - AVG ( + 28 ) ), + 50, - ( + 85 ) - + - CASE + CAST ( - ( - 4 ) AS REAL ) WHEN COALESCE ( - 67, SUM ( - 69 ) ) THEN - 45 END / MIN ( DISTINCT + 51 ) ) + + 13 * - 36 + - + COUNT ( * ) + - + CAST ( NULL AS REAL ) + 46 AS col2
----
18
NULL

query I rowsort
SELECT ALL + 26 + - - ( + 30 ) AS col2
----
56

query I rowsort
SELECT + 93 * 97 AS col0
----
9021

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7359
SELECT ALL + SUM( - - 10 ) DIV - 36 + - COUNT( * ) * - COUNT( * ) DIV + 79 * - 49 + - + 61 DIV - - 47 + + 34 * + 31 + + 63 + 11
----
1127

skipif mysql # not compatible
query I rowsort label-7359
SELECT ALL + SUM ( - - 10 ) / - 36 + - COUNT ( * ) * - COUNT ( * ) / + 79 * - 49 + - + 61 / - - 47 + + 34 * + 31 + + 63 + 11
----
1127

query I rowsort
SELECT + 20 + 45 * 2
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-7361
SELECT - 60 * - + 59 * - COUNT( ALL - ( + + 8 ) ) AS col2
----
-3540

skipif mysql # not compatible
query I rowsort label-7361
SELECT - 60 * - + 59 * - COUNT ( ALL - ( + + 8 ) ) AS col2
----
-3540

query II rowsort
SELECT ALL - - 53 - - 6 * - 68, 92 AS col2
----
-355
92

query I rowsort
SELECT 58 * + + 56 col1
----
3248

onlyif mysql # DIV for integer division: 
query I rowsort label-7364
SELECT + 74 DIV 76 + ( - + 97 ) + - 64
----
-161

skipif mysql # not compatible
query I rowsort label-7364
SELECT + 74 / 76 + ( - + 97 ) + - 64
----
-161

onlyif mysql # aggregate syntax: 
query II rowsort label-7365
SELECT + MAX( DISTINCT 45 ), + SUM( ALL + + 3 ) * + 13 AS col2
----
45
39

skipif mysql # not compatible
query II rowsort label-7365
SELECT + MAX ( DISTINCT 45 ), + SUM ( ALL + + 3 ) * + 13 AS col2
----
45
39

query I rowsort
SELECT DISTINCT - ( + 88 ) AS col0
----
-88

query I rowsort
SELECT 49 * + 8 AS col0
----
392

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7368
SELECT ALL - 23 AS col2, - 99 / - CAST( NULL AS SIGNED ) * + + 73 * ( + 42 ) col0
----
-23
NULL

skipif mysql # not compatible
query II rowsort label-7368
SELECT ALL - 23 AS col2, - 99 / - CAST ( NULL AS INTEGER ) * + + 73 * ( + 42 ) col0
----
-23
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7369
SELECT + COUNT( * ) * - + ( 33 ) + + + 77
----
44

skipif mysql # not compatible
query I rowsort label-7369
SELECT + COUNT ( * ) * - + ( 33 ) + + + 77
----
44

query I rowsort
SELECT 68 - + 4
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7371
SELECT 96 * - 95 + SUM( 50 ) * - 96 col1
----
-13920

skipif mysql # not compatible
query I rowsort label-7371
SELECT 96 * - 95 + SUM ( 50 ) * - 96 col1
----
-13920

query I rowsort
SELECT ALL - 59 + + - 64 AS col0
----
-123

onlyif mysql # DIV for integer division: 
query I rowsort label-7373
SELECT ALL + 5 DIV - ( + - ( + 69 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7373
SELECT ALL + 5 / - ( + - ( + 69 ) ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7374
SELECT 99 + + - SUM( ALL 11 ) + - COUNT( * ) * + + 42 * 99 AS col2
----
-4070

skipif mysql # not compatible
query I rowsort label-7374
SELECT 99 + + - SUM ( ALL 11 ) + - COUNT ( * ) * + + 42 * 99 AS col2
----
-4070

onlyif mysql # aggregate syntax: 
query II rowsort label-7375
SELECT ALL SUM( - 35 ) + - 67 AS col0, 32 * - + 0 * 83
----
-102
0

skipif mysql # not compatible
query II rowsort label-7375
SELECT ALL SUM ( - 35 ) + - 67 AS col0, 32 * - + 0 * 83
----
-102
0

query I rowsort
SELECT - ( - 48 )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7377
SELECT 44 + - + COUNT( * ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-7377
SELECT 44 + - + COUNT ( * ) AS col2
----
43

query I rowsort
SELECT + 11 + 26 AS col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7379
SELECT ALL + COUNT( + 3 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7379
SELECT ALL + COUNT ( + 3 ) AS col0
----
1

query I rowsort
SELECT COALESCE ( + + 16, + 73 ) * 40
----
640

query I rowsort
SELECT CASE - + ( - 95 ) WHEN - 71 THEN 0 * - + 44 * 58 * + 13 + 30 * + 12 + - 63 - + 22 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL - + 93 - 75 * + 38 AS col2
----
-2943

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7383
SELECT CASE - 87 WHEN + 96 THEN - - 28 * 66 * - 45 + - + 63 + - - 31 ELSE COALESCE ( 77, + 18 + - COUNT( - ( - + 0 ) ) ) + CAST( NULL AS DECIMAL ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7383
SELECT CASE - 87 WHEN + 96 THEN - - 28 * 66 * - 45 + - + 63 + - - 31 ELSE COALESCE ( 77, + 18 + - COUNT ( - ( - + 0 ) ) ) + CAST ( NULL AS REAL ) END
----
NULL

query I rowsort
SELECT DISTINCT 70 * + - 41
----
-2870

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7385
SELECT ALL - - ( - ( - - ( - CASE - CAST( NULL AS SIGNED ) WHEN ( + 94 ) + - COUNT( * ) THEN - + 71 * + 32 * + 39 END ) ) ) - - COUNT( * ) - - 80 - + 52 + 87 * + - COUNT( * ) - + + 83 * - 8 / NULLIF ( + - 2, - MIN( - CAST( NULL AS SIGNED ) ) ) + - 59 + + 85 - 55 + - - 60 + + - 61 + + - 33 * - 88 * - 17 * + 67 + 94 * COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7385
SELECT ALL - - ( - ( - - ( - CASE - CAST ( NULL AS INTEGER ) WHEN ( + 94 ) + - COUNT ( * ) THEN - + 71 * + 32 * + 39 END ) ) ) - - COUNT ( * ) - - 80 - + 52 + 87 * + - COUNT ( * ) - + + 83 * - 8 / NULLIF ( + - 2, - MIN ( - CAST ( NULL AS INTEGER ) ) ) + - 59 + + 85 - 55 + - - 60 + + - 61 + + - 33 * - 88 * - 17 * + 67 + 94 * COUNT ( * ) col2
----
NULL

query II rowsort
SELECT - + 80, 41 col1
----
-80
41

query II rowsort
SELECT 96, + 57 AS col1
----
96
57

query I rowsort
SELECT + 58 - + + 0 AS col1
----
58

query I rowsort
SELECT DISTINCT + - 88 * - 94
----
8272

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

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

query I rowsort
SELECT - NULLIF ( + ( + ( 94 ) ), 45 )
----
-94

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

query I rowsort
SELECT DISTINCT ( - 8 ) * 57
----
-456

query II rowsort
SELECT - 75 * + 43 AS col1, + 25
----
-3225
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7395
SELECT ALL + CASE + 96 WHEN + - COUNT( * ) + - CAST( NULL AS DECIMAL ) THEN + 18 + + - COUNT( ALL - CAST( NULL AS SIGNED ) ) * + ( - 16 ) + - 10 WHEN + 49 * + COUNT( * ) * - 54 + - - 53 + - + COUNT( * ) THEN + 42 * 15 - + - COUNT( - 2 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7395
SELECT ALL + CASE + 96 WHEN + - COUNT ( * ) + - CAST ( NULL AS REAL ) THEN + 18 + + - COUNT ( ALL - CAST ( NULL AS INTEGER ) ) * + ( - 16 ) + - 10 WHEN + 49 * + COUNT ( * ) * - 54 + - - 53 + - + COUNT ( * ) THEN + 42 * 15 - + - COUNT ( - 2 ) ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7396
SELECT - 22 + COUNT( * )
----
-21

skipif mysql # not compatible
query I rowsort label-7396
SELECT - 22 + COUNT ( * )
----
-21

query I rowsort
SELECT 72 * 50 - + 92
----
3508

query I rowsort
SELECT - 4 * 35 AS col1
----
-140

query I rowsort
SELECT ALL 57 * 70 + 2
----
3992

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7400
SELECT - COALESCE ( COUNT( * ), + CAST( NULL AS SIGNED ) ) * COUNT( - 21 ) AS col2, 61
----
-1
61

skipif mysql # not compatible
query II rowsort label-7400
SELECT - COALESCE ( COUNT ( * ), + CAST ( NULL AS INTEGER ) ) * COUNT ( - 21 ) AS col2, 61
----
-1
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7401
SELECT ALL CASE - + 2 WHEN - - 67 - COUNT( * ) THEN + 62 END * + 81 + 13
----
NULL

skipif mysql # not compatible
query I rowsort label-7401
SELECT ALL CASE - + 2 WHEN - - 67 - COUNT ( * ) THEN + 62 END * + 81 + 13
----
NULL

query I rowsort
SELECT DISTINCT + 19 * - 5 col2
----
-95

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

query I rowsort
SELECT DISTINCT 69 * 81 + - 19 AS col2
----
5570

query I rowsort
SELECT CASE - 77 WHEN + ( + 78 ) THEN + CASE - 40 WHEN + 97 * 92 THEN + 28 + + 84 * + + ( 52 ) ELSE NULL END END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7406
SELECT ALL 43 * - NULLIF ( 91, + 85 + + MAX( DISTINCT 3 ) ) + - 1 AS col0
----
-3914

skipif mysql # not compatible
query I rowsort label-7406
SELECT ALL 43 * - NULLIF ( 91, + 85 + + MAX ( DISTINCT 3 ) ) + - 1 AS col0
----
-3914

query I rowsort
SELECT - - 45 - 20
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7408
SELECT - 30 * + COUNT( * ) + - + 81 * + COALESCE ( - 81, - 97 ) * + - 54 + - 12
----
-354336

skipif mysql # not compatible
query I rowsort label-7408
SELECT - 30 * + COUNT ( * ) + - + 81 * + COALESCE ( - 81, - 97 ) * + - 54 + - 12
----
-354336

query I rowsort
SELECT ALL + ( 18 ) - 93 AS col2
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7410
SELECT + + COALESCE ( ( ( + 82 ) ), 58 + - + ( - 18 ) + - CAST( + 80 AS SIGNED ) * + + 94 - + COUNT( * ) ) * + COUNT( * ) AS col1, NULLIF ( + CASE + - 21 WHEN + - CAST( NULL AS SIGNED ) THEN 67 * - 18 + - COUNT( * ) + - 18 ELSE NULL END, - - 77 ) AS col1
----
82
NULL

skipif mysql # not compatible
query II rowsort label-7410
SELECT + + COALESCE ( ( ( + 82 ) ), 58 + - + ( - 18 ) + - CAST ( + 80 AS INTEGER ) * + + 94 - + COUNT ( * ) ) * + COUNT ( * ) AS col1, NULLIF ( + CASE + - 21 WHEN + - CAST ( NULL AS INTEGER ) THEN 67 * - 18 + - COUNT ( * ) + - 18 ELSE NULL END, - - 77 ) AS col1
----
82
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7411
SELECT ALL + 15 * - + CASE + ( CAST( NULL AS SIGNED ) ) WHEN + - 32 THEN + - 73 * - 84 WHEN 61 * + + 22 + - 21 * - CAST( NULL AS SIGNED ) / + + COUNT( * ) THEN NULL ELSE + MIN( DISTINCT + 40 ) * + - 71 + - COALESCE ( + 75, - 54 * + - COUNT( * ) * + ( + - 30 ) ) END * 45 AS col2, - 95 AS col2
----
1967625
-95

skipif mysql # not compatible
query II rowsort label-7411
SELECT ALL + 15 * - + CASE + ( CAST ( NULL AS INTEGER ) ) WHEN + - 32 THEN + - 73 * - 84 WHEN 61 * + + 22 + - 21 * - CAST ( NULL AS INTEGER ) / + + COUNT ( * ) THEN NULL ELSE + MIN ( DISTINCT + 40 ) * + - 71 + - COALESCE ( + 75, - 54 * + - COUNT ( * ) * + ( + - 30 ) ) END * 45 AS col2, - 95 AS col2
----
1967625
-95

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

query II rowsort
SELECT ALL 59 - + - 71 AS col2, NULLIF ( - 69, - 79 ) * 85 + - 86 AS col0
----
130
-5951

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7415
SELECT + COALESCE ( - + 4, + 19 + + 14 ) * 94 + - + COUNT( * ) AS col0
----
-377

skipif mysql # not compatible
query I rowsort label-7415
SELECT + COALESCE ( - + 4, + 19 + + 14 ) * 94 + - + COUNT ( * ) AS col0
----
-377

query I rowsort
SELECT + 3 * + + ( + 54 ) * ( - 55 ) - 86 * - + 8
----
-8222

onlyif mysql # aggregate syntax: 
query I rowsort label-7417
SELECT + - COUNT( * ) + - 34 col1
----
-35

skipif mysql # not compatible
query I rowsort label-7417
SELECT + - COUNT ( * ) + - 34 col1
----
-35

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7419
SELECT + + 69 + 77 DIV COALESCE ( + 46, + 23 ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-7419
SELECT + + 69 + 77 / COALESCE ( + 46, + 23 ) AS col0
----
70

query II rowsort
SELECT - + 63 - + 97 AS col0, + 9 AS col1
----
-160
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7421
SELECT + - ( - COUNT( * ) ) + + + 97
----
98

skipif mysql # not compatible
query I rowsort label-7421
SELECT + - ( - COUNT ( * ) ) + + + 97
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7422
SELECT + + 19 + - 68 + + - ( 87 ) + + + CAST( NULL AS SIGNED ) * - 67 / 54 * COUNT( * ) * + 99 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7422
SELECT + + 19 + - 68 + + - ( 87 ) + + + CAST ( NULL AS INTEGER ) * - 67 / 54 * COUNT ( * ) * + 99 * + CAST ( NULL AS INTEGER )
----
NULL

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

query I rowsort
SELECT - 52 + 69 AS col0
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7425
SELECT - CAST( NULL AS SIGNED ) + 27 + - ( + 71 ) + + + 19 * - 71 + - + 22 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7425
SELECT - CAST ( NULL AS INTEGER ) + 27 + - ( + 71 ) + + + 19 * - 71 + - + 22 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7426
SELECT ALL 34 * COUNT( * ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-7426
SELECT ALL 34 * COUNT ( * ) AS col0
----
34

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7429
SELECT 77 * NULLIF ( + SUM( + + 69 ), - - 15 ) + CAST( - + 41 AS SIGNED ) AS col2
----
5272

skipif mysql # not compatible
query I rowsort label-7429
SELECT 77 * NULLIF ( + SUM ( + + 69 ), - - 15 ) + CAST ( - + 41 AS INTEGER ) AS col2
----
5272

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7430
SELECT ALL ( + COUNT( * ) ) DIV - 55 + + 51 + + 37 * - + 50 * NULLIF ( + + 72, + 68 DIV - COUNT( * ) + - ( - - 14 ) ) * 12 AS col1
----
-1598349

skipif mysql # not compatible
query I rowsort label-7430
SELECT ALL ( + COUNT ( * ) ) / - 55 + + 51 + + 37 * - + 50 * NULLIF ( + + 72, + 68 / - COUNT ( * ) + - ( - - 14 ) ) * 12 AS col1
----
-1598349

query I rowsort
SELECT + 92 * - 71 AS col2
----
-6532

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7432
SELECT ALL 98 * 15 * + + CAST( 86 AS SIGNED ) * 20 + + 25 AS col2
----
2528425

skipif mysql # not compatible
query I rowsort label-7432
SELECT ALL 98 * 15 * + + CAST ( 86 AS INTEGER ) * 20 + + 25 AS col2
----
2528425

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7433
SELECT CAST( NULL AS SIGNED ) col2, 45 * - ( COUNT( * ) ) * 93
----
NULL
-4185

skipif mysql # not compatible
query II rowsort label-7433
SELECT CAST ( NULL AS INTEGER ) col2, 45 * - ( COUNT ( * ) ) * 93
----
NULL
-4185

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7434
SELECT ALL + COALESCE ( 91, - - 85 + - COUNT( * ) + + 50 + 57 DIV + - 32 * + 92 )
----
91

skipif mysql # not compatible
query I rowsort label-7434
SELECT ALL + COALESCE ( 91, - - 85 + - COUNT ( * ) + + 50 + 57 / + - 32 * + 92 )
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7435
SELECT CAST( + 11 AS SIGNED )
----
11

skipif mysql # not compatible
query I rowsort label-7435
SELECT CAST ( + 11 AS INTEGER )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7436
SELECT - 58 * - 8 * COUNT( * ) + + - 13
----
451

skipif mysql # not compatible
query I rowsort label-7436
SELECT - 58 * - 8 * COUNT ( * ) + + - 13
----
451

onlyif mysql # DIV for integer division: 
query I rowsort label-7437
SELECT - 14 DIV - 62 * - 55
----
0

skipif mysql # not compatible
query I rowsort label-7437
SELECT - 14 / - 62 * - 55
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7438
SELECT ALL - 42 DIV 56
----
0

skipif mysql # not compatible
query I rowsort label-7438
SELECT ALL - 42 / 56
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7439
SELECT - 26 * + 63 * - COUNT( * ) AS col1
----
1638

skipif mysql # not compatible
query I rowsort label-7439
SELECT - 26 * + 63 * - COUNT ( * ) AS col1
----
1638

query I rowsort
SELECT ( + + 64 ) AS col1
----
64

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7442
SELECT + 95 * - - 83 + - + 52 * - COUNT( * ) * ( + - ( + ( - COUNT( * ) ) ) ) + + + 84 AS col1
----
8021

skipif mysql # not compatible
query I rowsort label-7442
SELECT + 95 * - - 83 + - + 52 * - COUNT ( * ) * ( + - ( + ( - COUNT ( * ) ) ) ) + + + 84 AS col1
----
8021

query II rowsort
SELECT ALL - 37 AS col2, + 44 + + 0
----
-37
44

query I rowsort
SELECT DISTINCT - - 89 AS col0
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7445
SELECT DISTINCT - AVG ( + - CAST( NULL AS SIGNED ) ) - + - COUNT( * ) * + 59 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7445
SELECT DISTINCT - AVG ( + - CAST ( NULL AS INTEGER ) ) - + - COUNT ( * ) * + 59 AS col2
----
NULL

query I rowsort
SELECT ALL + + 22 * - 6
----
-132

query I rowsort
SELECT DISTINCT - 25 col2
----
-25

query I rowsort
SELECT DISTINCT - 86 * + + 16 AS col0
----
-1376

onlyif mysql # aggregate syntax: 
query I rowsort label-7449
SELECT DISTINCT + - 9 - - COALESCE ( + 49, - 2 + - 51 * - 0 * - - COALESCE ( + 53, - + 95 + - COALESCE ( - ( - 12 ), + COUNT( * ) ) ) * - + 86 + + 16 + + + 32 * - - 76 * + + 35 * - + 96 + + + 79 ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-7449
SELECT DISTINCT + - 9 - - COALESCE ( + 49, - 2 + - 51 * - 0 * - - COALESCE ( + 53, - + 95 + - COALESCE ( - ( - 12 ), + COUNT ( * ) ) ) * - + 86 + + 16 + + + 32 * - - 76 * + + 35 * - + 96 + + + 79 ) AS col2
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7450
SELECT - COALESCE ( - + 40, - 42 + 56 ) * - 54 + COALESCE ( - + 11, - ( - ( + 49 ) ) ) + COUNT( * ) * CASE + + 58 WHEN + CASE - 98 WHEN - MAX( 3 ) * - CASE - 83 WHEN 35 / + 23 + 1 * - 6 * + 21 * - ( - CAST( - + CAST( - 33 AS SIGNED ) AS SIGNED ) ) / + ( + 40 ) / + COUNT( * ) + - 36 THEN 69 + - + CAST( - 81 AS SIGNED ) - + + COALESCE ( + 22, + COALESCE ( 24, - 39, 72 * 35 * - + 97 ) + COUNT( * ) + CAST( NULL AS SIGNED ) ) / COUNT( * ) ELSE + 61 * - 70 END - - SUM( 68 ) THEN 92 END * COUNT( DISTINCT 85 + 37 ) + - 54 THEN 0 * + CAST( NULL AS SIGNED ) + 78 WHEN 28 THEN NULL ELSE NULL END - - 73 * - 65 * 25 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7450
SELECT - COALESCE ( - + 40, - 42 + 56 ) * - 54 + COALESCE ( - + 11, - ( - ( + 49 ) ) ) + COUNT ( * ) * CASE + + 58 WHEN + CASE - 98 WHEN - MAX ( 3 ) * - CASE - 83 WHEN 35 / + 23 + 1 * - 6 * + 21 * - ( - CAST ( - + CAST ( - 33 AS INTEGER ) AS INTEGER ) ) / + ( + 40 ) / + COUNT ( * ) + - 36 THEN 69 + - + CAST ( - 81 AS INTEGER ) - + + COALESCE ( + 22, + COALESCE ( 24, - 39, 72 * 35 * - + 97 ) + COUNT ( * ) + CAST ( NULL AS INTEGER ) ) / COUNT ( * ) ELSE + 61 * - 70 END - - SUM ( 68 ) THEN 92 END * COUNT ( DISTINCT 85 + 37 ) + - 54 THEN 0 * + CAST ( NULL AS INTEGER ) + 78 WHEN 28 THEN NULL ELSE NULL END - - 73 * - 65 * 25 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7451
SELECT + ( - 79 ) * COALESCE ( + - COUNT( * ), - 17 + + + 72, - 40 ) - - - 74 + COUNT( * ) * + 27 + 16 + SUM( DISTINCT - 59 ) * + 14 * 29 AS col0
----
-23906

skipif mysql # not compatible
query I rowsort label-7451
SELECT + ( - 79 ) * COALESCE ( + - COUNT ( * ), - 17 + + + 72, - 40 ) - - - 74 + COUNT ( * ) * + 27 + 16 + SUM ( DISTINCT - 59 ) * + 14 * 29 AS col0
----
-23906

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7452
SELECT ( COALESCE ( 14, - - ( + CAST( NULL AS SIGNED ) ), + + 87 ) ) * - 42
----
-588

skipif mysql # not compatible
query I rowsort label-7452
SELECT ( COALESCE ( 14, - - ( + CAST ( NULL AS INTEGER ) ), + + 87 ) ) * - 42
----
-588

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

query I rowsort
SELECT - - 56 AS col1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7455
SELECT ALL - 43 + - MIN( DISTINCT + 87 ) * + NULLIF ( + MIN( DISTINCT + + 57 ), - + 18 )
----
-5002

skipif mysql # not compatible
query I rowsort label-7455
SELECT ALL - 43 + - MIN ( DISTINCT + 87 ) * + NULLIF ( + MIN ( DISTINCT + + 57 ), - + 18 )
----
-5002

onlyif mysql # aggregate syntax: 
query I rowsort label-7456
SELECT - SUM( ALL + 79 ) * + 57 AS col1
----
-4503

skipif mysql # not compatible
query I rowsort label-7456
SELECT - SUM ( ALL + 79 ) * + 57 AS col1
----
-4503

onlyif mysql # aggregate syntax: 
query I rowsort label-7457
SELECT ALL COUNT( * ) + 8 * + 61
----
489

skipif mysql # not compatible
query I rowsort label-7457
SELECT ALL COUNT ( * ) + 8 * + 61
----
489

onlyif mysql # aggregate syntax: 
query I rowsort label-7458
SELECT + SUM( DISTINCT - + 99 ) AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-7458
SELECT + SUM ( DISTINCT - + 99 ) AS col0
----
-99

query I rowsort
SELECT - + 66
----
-66

query I rowsort
SELECT 25 * 15 + + 71 AS col0
----
446

query I rowsort
SELECT DISTINCT 93 * 70 * + - 83 AS col1
----
-540330

query I rowsort
SELECT - 94 AS col2
----
-94

query II rowsort
SELECT 93, - 16 col2
----
93
-16

query I rowsort
SELECT ALL 87 + - 15 * - 54 AS col1
----
897

onlyif mysql # aggregate syntax: 
query I rowsort label-7465
SELECT COUNT( - - 97 ) - + 7 * + - 46 AS col2
----
323

skipif mysql # not compatible
query I rowsort label-7465
SELECT COUNT ( - - 97 ) - + 7 * + - 46 AS col2
----
323

query I rowsort
SELECT DISTINCT 57 * - 18
----
-1026

query I rowsort
SELECT DISTINCT 16 + NULLIF ( + 76, 11 * - COALESCE ( - + 88, - 12 * + 76 * - + 28, - 18 ) - + 89 * - 20 ) + 20 - 55
----
57

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7469
SELECT ALL 51 + - + CAST( NULL AS SIGNED ) + + 54 + - 37 + + COUNT( * ) * 67 * 57
----
NULL

skipif mysql # not compatible
query I rowsort label-7469
SELECT ALL 51 + - + CAST ( NULL AS INTEGER ) + + 54 + - 37 + + COUNT ( * ) * 67 * 57
----
NULL

query II rowsort
SELECT DISTINCT - 25, - 88 AS col2
----
-25
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-7471
SELECT ALL - SUM( - ( - 63 ) ) AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-7471
SELECT ALL - SUM ( - ( - 63 ) ) AS col1
----
-63

query I rowsort
SELECT ALL - 46 + - 1 + - ( 89 ) + 84 AS col0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-7473
SELECT 10 * - 22 - - - COUNT( * ) AS col2
----
-221

skipif mysql # not compatible
query I rowsort label-7473
SELECT 10 * - 22 - - - COUNT ( * ) AS col2
----
-221

onlyif mysql # aggregate syntax: 
query II rowsort label-7474
SELECT ALL - 38, - 37 - + 20 + + 46 / - + CASE NULLIF ( - 18, + 96 ) WHEN + 71 THEN + COUNT( DISTINCT + 61 ) ELSE NULL END AS col2
----
-38
NULL

skipif mysql # not compatible
query II rowsort label-7474
SELECT ALL - 38, - 37 - + 20 + + 46 / - + CASE NULLIF ( - 18, + 96 ) WHEN + 71 THEN + COUNT ( DISTINCT + 61 ) ELSE NULL END AS col2
----
-38
NULL

query II rowsort
SELECT + 16 AS col2, - 56
----
16
-56

query I rowsort
SELECT DISTINCT 79 * - 36
----
-2844

query I rowsort
SELECT 93 * + 52 * 96 col0
----
464256

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7478
SELECT 28 * - 82 DIV COUNT( DISTINCT + - 59 ), 26 AS col0
----
-2296
26

skipif mysql # not compatible
query II rowsort label-7478
SELECT 28 * - 82 / COUNT ( DISTINCT + - 59 ), 26 AS col0
----
-2296
26

onlyif mysql # aggregate syntax: 
query II rowsort label-7479
SELECT ALL - 38 AS col1, 3 * - COUNT( * )
----
-38
-3

skipif mysql # not compatible
query II rowsort label-7479
SELECT ALL - 38 AS col1, 3 * - COUNT ( * )
----
-38
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-7480
SELECT 84 DIV + - 24 + - - 75 col0
----
72

skipif mysql # not compatible
query I rowsort label-7480
SELECT 84 / + - 24 + - - 75 col0
----
72

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

query I rowsort
SELECT 18 * + + 16
----
288

onlyif mysql # aggregate syntax: 
query I rowsort label-7483
SELECT ALL 91 * + COUNT( * ) + - COUNT( - - 55 )
----
90

skipif mysql # not compatible
query I rowsort label-7483
SELECT ALL 91 * + COUNT ( * ) + - COUNT ( - - 55 )
----
90

query II rowsort
SELECT ALL - - 96 AS col0, + 23 + - + 69
----
96
-46

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

query I rowsort
SELECT DISTINCT - + 14 AS col1
----
-14

query I rowsort
SELECT + 88 * + 91 + 51
----
8059

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7488
SELECT MIN( DISTINCT - 93 ) * 90 + + + CASE 22 WHEN CAST( 36 AS SIGNED ) THEN - 33 WHEN - + 64 * 24 / + COALESCE ( + 98, - 5 ) + + AVG ( - 51 ) THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7488
SELECT MIN ( DISTINCT - 93 ) * 90 + + + CASE 22 WHEN CAST ( 36 AS INTEGER ) THEN - 33 WHEN - + 64 * 24 / + COALESCE ( + 98, - 5 ) + + AVG ( - 51 ) THEN NULL ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ( + 32 ) * 20 AS col2
----
640

query I rowsort
SELECT + ( 60 ) AS col1
----
60

query I rowsort
SELECT CASE 30 WHEN 58 THEN - 15 * - 88 END / 5 AS col1
----
NULL

query I rowsort
SELECT 78 + + - ( + 25 )
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7493
SELECT DISTINCT SUM( ALL - COALESCE ( CAST( NULL AS SIGNED ), + 64 + 46 ) ) AS col2
----
-110

skipif mysql # not compatible
query I rowsort label-7493
SELECT DISTINCT SUM ( ALL - COALESCE ( CAST ( NULL AS INTEGER ), + 64 + 46 ) ) AS col2
----
-110

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7494
SELECT DISTINCT ( + 52 ), + ( + + 37 ) + 64 * + CAST( NULL AS DECIMAL ) * + SUM( 13 ) AS col1
----
52
NULL

skipif mysql # not compatible
query II rowsort label-7494
SELECT DISTINCT ( + 52 ), + ( + + 37 ) + 64 * + CAST ( NULL AS REAL ) * + SUM ( 13 ) AS col1
----
52
NULL

query II rowsort
SELECT - - 70 AS col2, - 31 AS col2
----
70
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-7496
SELECT ALL + - 15 + CASE 95 WHEN - - 59 - + - 99 * + + 81 + - 86 / + 28 + 92 + - + COUNT( * ) * + COUNT( * ) THEN NULL ELSE - 20 * - COUNT( * ) END
----
5

skipif mysql # not compatible
query I rowsort label-7496
SELECT ALL + - 15 + CASE 95 WHEN - - 59 - + - 99 * + + 81 + - 86 / + 28 + 92 + - + COUNT ( * ) * + COUNT ( * ) THEN NULL ELSE - 20 * - COUNT ( * ) END
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7497
SELECT DISTINCT + 45, - 8 + - + 92 DIV - COUNT( * ) AS col2
----
45
84

skipif mysql # not compatible
query II rowsort label-7497
SELECT DISTINCT + 45, - 8 + - + 92 / - COUNT ( * ) AS col2
----
45
84

query I rowsort
SELECT ALL - 92 + NULLIF ( - 34, + + 97 * - 58 * 2 + + ( + + 28 ) + - + 33 * + - 59 )
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-7499
SELECT ALL - + COUNT( * ) * 72 * + 50 + - ( + 26 ) + + 5 + + + 44 * + 97
----
647

skipif mysql # not compatible
query I rowsort label-7499
SELECT ALL - + COUNT ( * ) * 72 * + 50 + - ( + 26 ) + + 5 + + + 44 * + 97
----
647

query I rowsort
SELECT ( 12 ) + - - 75 * 43 + - + 23 AS col1
----
3214

query I rowsort
SELECT + 87 + - 97
----
-10

query II rowsort
SELECT - 27 AS col0, 7 * - 36
----
-27
-252

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7503
SELECT 58 + COALESCE ( - 26, CAST( - 8 AS SIGNED ) ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-7503
SELECT 58 + COALESCE ( - 26, CAST ( - 8 AS INTEGER ) ) AS col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7504
SELECT ALL - 78 + - - 96 - - - 95 * - + 90 + 92 - + ( COUNT( * ) )
----
8659

skipif mysql # not compatible
query I rowsort label-7504
SELECT ALL - 78 + - - 96 - - - 95 * - + 90 + 92 - + ( COUNT ( * ) )
----
8659

onlyif mysql # aggregate syntax: 
query II rowsort label-7505
SELECT 87 + - COUNT( * ) AS col0, 37 AS col1
----
86
37

skipif mysql # not compatible
query II rowsort label-7505
SELECT 87 + - COUNT ( * ) AS col0, 37 AS col1
----
86
37

query I rowsort
SELECT ALL - 14 + + 31 + 53 + - 94 AS col2
----
-24

query I rowsort
SELECT DISTINCT + 60 + 12 AS col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7508
SELECT ALL COUNT( * ) - + 26 + + + 60 AS col2
----
35

skipif mysql # not compatible
query I rowsort label-7508
SELECT ALL COUNT ( * ) - + 26 + + + 60 AS col2
----
35

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

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

query I rowsort
SELECT ALL + 42 * - 42
----
-1764

query I rowsort
SELECT 74 * - - 77 AS col2
----
5698

query I rowsort
SELECT 12 + + + CASE + + 1 WHEN 62 THEN + 35 + 99 ELSE - 64 * + + 35 - + 38 END
----
-2266

onlyif mysql # aggregate syntax: 
query II rowsort label-7513
SELECT CASE ( 71 ) WHEN + 80 THEN NULL WHEN - 31 + + - 94 * + 99 + - 41 + + + 94 * - - 58 / 86 + + 67 THEN + NULLIF ( - 73, 77 ) ELSE - 45 + + COUNT( * ) END, + 23 + + 46 AS col1
----
-44
69

skipif mysql # not compatible
query II rowsort label-7513
SELECT CASE ( 71 ) WHEN + 80 THEN NULL WHEN - 31 + + - 94 * + 99 + - 41 + + + 94 * - - 58 / 86 + + 67 THEN + NULLIF ( - 73, 77 ) ELSE - 45 + + COUNT ( * ) END, + 23 + + 46 AS col1
----
-44
69

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7515
SELECT + 79 * COUNT( * ) * - + 56
----
-4424

skipif mysql # not compatible
query I rowsort label-7515
SELECT + 79 * COUNT ( * ) * - + 56
----
-4424

query I rowsort
SELECT DISTINCT - 70 * - + 76
----
5320

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7517
SELECT CASE - 12 WHEN - - 20 THEN NULL WHEN 64 THEN NULL ELSE - - 60 END AS col1, + 88 * - 12 + NULLIF ( 86, + CAST( NULL AS SIGNED ) )
----
60
-970

skipif mysql # not compatible
query II rowsort label-7517
SELECT CASE - 12 WHEN - - 20 THEN NULL WHEN 64 THEN NULL ELSE - - 60 END AS col1, + 88 * - 12 + NULLIF ( 86, + CAST ( NULL AS INTEGER ) )
----
60
-970

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

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

query I rowsort
SELECT + 49 * + - 89 AS col1
----
-4361

query I rowsort
SELECT ALL + + ( - 50 ) AS col0
----
-50

query I rowsort
SELECT DISTINCT + CASE + 59 WHEN + 69 THEN - 13 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7522
SELECT + MIN( ALL 77 ) * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7522
SELECT + MIN ( ALL 77 ) * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7523
SELECT - 55 * + 53 * + 26 + + 1 + 19 * + COUNT( * ) AS col0
----
-75770

skipif mysql # not compatible
query I rowsort label-7523
SELECT - 55 * + 53 * + 26 + + 1 + 19 * + COUNT ( * ) AS col0
----
-75770

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7524
SELECT ALL COUNT( * ) * + ( + 9 ) DIV - NULLIF ( ( + 67 ), - 24 * + 90 ) - - + 11 DIV + 48 + - 51 + + 22 + - 47 - 68 * - COUNT( * ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-7524
SELECT ALL COUNT ( * ) * + ( + 9 ) / - NULLIF ( ( + 67 ), - 24 * + 90 ) - - + 11 / + 48 + - 51 + + 22 + - 47 - 68 * - COUNT ( * ) AS col1
----
-8

onlyif mysql # DIV for integer division: 
query II rowsort label-7525
SELECT + 95 + - 64, - 35 DIV - 9 AS col0
----
31
3

skipif mysql # not compatible
query II rowsort label-7525
SELECT + 95 + - 64, - 35 / - 9 AS col0
----
31
3

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

query I rowsort
SELECT + + 60 col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7528
SELECT 56 * - + 56 * - NULLIF ( COUNT( + - 74 ), - 12 ) * + 96 + 63 * - 23
----
299607

skipif mysql # not compatible
query I rowsort label-7528
SELECT 56 * - + 56 * - NULLIF ( COUNT ( + - 74 ), - 12 ) * + 96 + 63 * - 23
----
299607

query I rowsort
SELECT ALL + - 96
----
-96

query I rowsort
SELECT + NULLIF ( + - 77, - - ( 91 ) )
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7531
SELECT - + MIN( - + 20 ) + + 92 AS col2
----
112

skipif mysql # not compatible
query I rowsort label-7531
SELECT - + MIN ( - + 20 ) + + 92 AS col2
----
112

query I rowsort
SELECT - 58 + - 50
----
-108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7533
SELECT + + 46 * + 88 * + COALESCE ( + - CAST( NULL AS SIGNED ), - 72 ) + + 53
----
-291403

skipif mysql # not compatible
query I rowsort label-7533
SELECT + + 46 * + 88 * + COALESCE ( + - CAST ( NULL AS INTEGER ), - 72 ) + + 53
----
-291403

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7534
SELECT + MAX( + + 59 ) * - 1 + 41 DIV + 60 AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-7534
SELECT + MAX ( + + 59 ) * - 1 + 41 / + 60 AS col2
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-7535
SELECT - 85 DIV + 60 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7535
SELECT - 85 / + 60 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7536
SELECT ALL + COUNT( ALL - 19 ) + + 36 AS col2
----
37

skipif mysql # not compatible
query I rowsort label-7536
SELECT ALL + COUNT ( ALL - 19 ) + + 36 AS col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7537
SELECT + COUNT( * ) * + MAX( DISTINCT - - 24 )
----
24

skipif mysql # not compatible
query I rowsort label-7537
SELECT + COUNT ( * ) * + MAX ( DISTINCT - - 24 )
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7538
SELECT DISTINCT + 33 + - + COUNT( - - 22 ) - 75 - 9 + + 95 + 33 * + + 54 * - + COUNT( * ) + + NULLIF ( + + 24, 77 * + CASE + - AVG ( - 57 ) WHEN - + 85 * - + 81 - - + 39 - - + 55 * - SUM( - CAST( NULL AS SIGNED ) ) / - - ( 92 ) * 14 / + + 1 + + + MAX( DISTINCT - + 13 ) * 75 THEN COUNT( * ) + + - 55 + - - 61 WHEN - 51 THEN NULL END ) + + 22 + + CASE + 37 WHEN 34 THEN + - 77 WHEN - 78 * - 42 - COUNT( * ) + 99 THEN - - NULLIF ( 2, + 74 * - 35 ) WHEN + NULLIF ( - CAST( COUNT( * ) AS SIGNED ), - 80 * + 99 ) THEN 63 * 45 + + CASE - COALESCE ( 85, 86, 16 + + 57 * 32 ) + 34 WHEN 2 / - NULLIF ( - SUM( DISTINCT 52 ), + 18 ) THEN - ( 9 ) WHEN + CAST( NULL AS SIGNED ) THEN 87 ELSE COUNT( * ) END END * MAX( ALL 88 * ( + 78 ) ) * - 40 * 48
----
NULL

skipif mysql # not compatible
query I rowsort label-7538
SELECT DISTINCT + 33 + - + COUNT ( - - 22 ) - 75 - 9 + + 95 + 33 * + + 54 * - + COUNT ( * ) + + NULLIF ( + + 24, 77 * + CASE + - AVG ( - 57 ) WHEN - + 85 * - + 81 - - + 39 - - + 55 * - SUM ( - CAST ( NULL AS INTEGER ) ) / - - ( 92 ) * 14 / + + 1 + + + MAX ( DISTINCT - + 13 ) * 75 THEN COUNT ( * ) + + - 55 + - - 61 WHEN - 51 THEN NULL END ) + + 22 + + CASE + 37 WHEN 34 THEN + - 77 WHEN - 78 * - 42 - COUNT ( * ) + 99 THEN - - NULLIF ( 2, + 74 * - 35 ) WHEN + NULLIF ( - CAST ( COUNT ( * ) AS INTEGER ), - 80 * + 99 ) THEN 63 * 45 + + CASE - COALESCE ( 85, 86, 16 + + 57 * 32 ) + 34 WHEN 2 / - NULLIF ( - SUM ( DISTINCT 52 ), + 18 ) THEN - ( 9 ) WHEN + CAST ( NULL AS INTEGER ) THEN 87 ELSE COUNT ( * ) END END * MAX ( ALL 88 * ( + 78 ) ) * - 40 * 48
----
NULL

query I rowsort
SELECT - 92 col2
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-7540
SELECT ALL - COUNT( * ) - - ( - CASE + 7 WHEN 27 THEN - COALESCE ( + - 51, - 50 ) ELSE NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7540
SELECT ALL - COUNT ( * ) - - ( - CASE + 7 WHEN 27 THEN - COALESCE ( + - 51, - 50 ) ELSE NULL END ) AS col0
----
NULL

query I rowsort
SELECT ALL - 73 * + COALESCE ( 1, - 22, + 44 + - + ( + 41 ) )
----
-73

query II rowsort
SELECT - 3 AS col0, 5 - 5 col0
----
-3
0

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

query I rowsort
SELECT - 33 * - - 78 AS col0
----
-2574

query I rowsort
SELECT ALL ( - + 30 ) AS col0
----
-30

query I rowsort
SELECT - 3 - + 77 + + + 78 + - 52 * 23 AS col2
----
-1198

query I rowsort
SELECT ALL NULLIF ( - 21, - 57 * 95 ) col0
----
-21

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7549
SELECT - 49 DIV 27 col2
----
-1

skipif mysql # not compatible
query I rowsort label-7549
SELECT - 49 / 27 col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7550
SELECT ALL + COUNT( * ) DIV 44
----
0

skipif mysql # not compatible
query I rowsort label-7550
SELECT ALL + COUNT ( * ) / 44
----
0

query II rowsort
SELECT DISTINCT + 66, 41 + + 5 + - 61 AS col0
----
66
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-7552
SELECT DISTINCT + ( + - 98 ) * 20 * - 42 DIV + 42
----
1960

skipif mysql # not compatible
query I rowsort label-7552
SELECT DISTINCT + ( + - 98 ) * 20 * - 42 / + 42
----
1960

onlyif mysql # aggregate syntax: 
query I rowsort label-7553
SELECT DISTINCT + COUNT( 66 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7553
SELECT DISTINCT + COUNT ( 66 ) AS col0
----
1

query I rowsort
SELECT ALL 14 * - 50 AS col1
----
-700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7555
SELECT DISTINCT + + COUNT( * ), 85 * - - ( + 26 ) + + - 56 + + COALESCE ( + - CAST( + SUM( - 71 ) AS SIGNED ), + - 18 ) * + 66 AS col1
----
1
6840

skipif mysql # not compatible
query II rowsort label-7555
SELECT DISTINCT + + COUNT ( * ), 85 * - - ( + 26 ) + + - 56 + + COALESCE ( + - CAST ( + SUM ( - 71 ) AS INTEGER ), + - 18 ) * + 66 AS col1
----
1
6840

query I rowsort
SELECT + - 62
----
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-7557
SELECT ALL + - 66 * - SUM( DISTINCT - + 71 ) * + - 3 - + + MIN( + + ( - 37 ) ) + + + 39 + - CASE + 72 WHEN 11 * - 66 + - 80 / - 70 * - + 56 THEN - + ( COALESCE ( - 42, + COUNT( * ) / + 12 / + NULLIF ( - COUNT( * ), + COALESCE ( 30, - 49 - 53, COUNT( * ) - - 86 ) * - 87 ) * 62 * - + COUNT( * ) ) ) ELSE NULL END + + 39 * + COUNT( * ) + - 53 - + 32 * + + 72, 36 AS col1
----
NULL
36

skipif mysql # not compatible
query II rowsort label-7557
SELECT ALL + - 66 * - SUM ( DISTINCT - + 71 ) * + - 3 - + + MIN ( + + ( - 37 ) ) + + + 39 + - CASE + 72 WHEN 11 * - 66 + - 80 / - 70 * - + 56 THEN - + ( COALESCE ( - 42, + COUNT ( * ) / + 12 / + NULLIF ( - COUNT ( * ), + COALESCE ( 30, - 49 - 53, COUNT ( * ) - - 86 ) * - 87 ) * 62 * - + COUNT ( * ) ) ) ELSE NULL END + + 39 * + COUNT ( * ) + - 53 - + 32 * + + 72, 36 AS col1
----
NULL
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7558
SELECT ALL - - COALESCE ( + - 40, - CAST( NULL AS SIGNED ), 5 * 15 ) * + 87 + - 18 * + + 3 + + 27
----
-3507

skipif mysql # not compatible
query I rowsort label-7558
SELECT ALL - - COALESCE ( + - 40, - CAST ( NULL AS INTEGER ), 5 * 15 ) * + 87 + - 18 * + + 3 + + 27
----
-3507

query II rowsort
SELECT DISTINCT + - 85 AS col1, 63 - + 69
----
-85
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-7560
SELECT ALL + 50 * + 5 + - 67 DIV 93 AS col1
----
250

skipif mysql # not compatible
query I rowsort label-7560
SELECT ALL + 50 * + 5 + - 67 / 93 AS col1
----
250

query II rowsort
SELECT + 66 AS col0, ( - + 26 )
----
66
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7562
SELECT + 39 * - 59 + + 98 + 93 + - - 74 * COUNT( * ) * + + 32 + 12 DIV + 56 AS col2
----
258

skipif mysql # not compatible
query I rowsort label-7562
SELECT + 39 * - 59 + + 98 + 93 + - - 74 * COUNT ( * ) * + + 32 + 12 / + 56 AS col2
----
258

query I rowsort
SELECT + 13 * - 48 * 14 AS col2
----
-8736

query I rowsort
SELECT + NULLIF ( + - 43, 84 + 86 )
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-7565
SELECT DISTINCT + 38 AS col0, - MAX( - + 1 )
----
38
1

skipif mysql # not compatible
query II rowsort label-7565
SELECT DISTINCT + 38 AS col0, - MAX ( - + 1 )
----
38
1

query I rowsort
SELECT ALL + COALESCE ( - 99, 25, + 47 * + 29 )
----
-99

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7568
SELECT ALL 55 * - COALESCE ( - + 3, + 97 ) + - COUNT( * ) - 97 + + 95 * - 14
----
-1263

skipif mysql # not compatible
query I rowsort label-7568
SELECT ALL 55 * - COALESCE ( - + 3, + 97 ) + - COUNT ( * ) - 97 + + 95 * - 14
----
-1263

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

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

query I rowsort
SELECT DISTINCT 69 * 87 AS col2
----
6003

onlyif mysql # aggregate syntax: 
query I rowsort label-7571
SELECT + COUNT( * ) + 63
----
64

skipif mysql # not compatible
query I rowsort label-7571
SELECT + COUNT ( * ) + 63
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7572
SELECT - 39 - + 66 + COUNT( * )
----
-104

skipif mysql # not compatible
query I rowsort label-7572
SELECT - 39 - + 66 + COUNT ( * )
----
-104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7573
SELECT - CAST( - AVG ( DISTINCT 33 ) AS SIGNED ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-7573
SELECT - CAST ( - AVG ( DISTINCT 33 ) AS INTEGER ) AS col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7574
SELECT - 16 + - + 94 - - - COUNT( * )
----
-111

skipif mysql # not compatible
query I rowsort label-7574
SELECT - 16 + - + 94 - - - COUNT ( * )
----
-111

query I rowsort
SELECT ALL NULLIF ( + 50, - 42 * - - 3 + 49 / - + 24 )
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7576
SELECT - 33 * + 75 * - COUNT( ALL 50 ) AS col1, 86 DIV + + 80 AS col2
----
2475
1

skipif mysql # not compatible
query II rowsort label-7576
SELECT - 33 * + 75 * - COUNT ( ALL 50 ) AS col1, 86 / + + 80 AS col2
----
2475
1

query I rowsort
SELECT 28 * 69 AS col0
----
1932

query I rowsort
SELECT 2 + - 30 * + + 92 AS col2
----
-2758

query I rowsort
SELECT 12 + + 78 + 96 * + 70 AS col2
----
6810

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7582
SELECT DISTINCT + 97 * - + COUNT( * ) AS col1, - 72 + - - MIN( + 6 ) + + 9 * + - ( + COUNT( * ) ) AS col1
----
-97
-75

skipif mysql # not compatible
query II rowsort label-7582
SELECT DISTINCT + 97 * - + COUNT ( * ) AS col1, - 72 + - - MIN ( + 6 ) + + 9 * + - ( + COUNT ( * ) ) AS col1
----
-97
-75

query I rowsort
SELECT 99 + - 29 AS col1
----
70

query I rowsort
SELECT DISTINCT 26 col2
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7585
SELECT CAST( NULL AS SIGNED ) * - - 96 * 31
----
NULL

skipif mysql # not compatible
query I rowsort label-7585
SELECT CAST ( NULL AS INTEGER ) * - - 96 * 31
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7586
SELECT DISTINCT + COUNT( * ) + - COUNT( ALL + 90 ) + + + 54 DIV 35
----
1

skipif mysql # not compatible
query I rowsort label-7586
SELECT DISTINCT + COUNT ( * ) + - COUNT ( ALL + 90 ) + + + 54 / 35
----
1

query I rowsort
SELECT + + 53 AS col2
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-7588
SELECT ALL + 20 + 1 DIV 24 AS col2
----
20

skipif mysql # not compatible
query I rowsort label-7588
SELECT ALL + 20 + 1 / 24 AS col2
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7589
SELECT - + 25 DIV - 85 * + 42 + - - COUNT( * ) * - - 0 - + 29 - - CAST( + - 95 AS SIGNED ) + - + 76 AS col0
----
-200

skipif mysql # not compatible
query I rowsort label-7589
SELECT - + 25 / - 85 * + 42 + - - COUNT ( * ) * - - 0 - + 29 - - CAST ( + - 95 AS INTEGER ) + - + 76 AS col0
----
-200

query I rowsort
SELECT DISTINCT + 9 + 17 * 6 + - 21 - - 21 AS col2
----
111

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7592
SELECT - 90 + 85 + - + 67 + - MAX( - 1 ) * - 68 col1
----
-140

skipif mysql # not compatible
query I rowsort label-7592
SELECT - 90 + 85 + - + 67 + - MAX ( - 1 ) * - 68 col1
----
-140

query I rowsort
SELECT 45 * + + 64
----
2880

query II rowsort
SELECT ALL + ( + 65 ) + - 36 * 45, 9 AS col2
----
-1555
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7595
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + ( + 19 ) + 58 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7595
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + ( + 19 ) + 58 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7596
SELECT + COUNT( * ) DIV - COUNT( * ) + - - 63 AS col1
----
62

skipif mysql # not compatible
query I rowsort label-7596
SELECT + COUNT ( * ) / - COUNT ( * ) + - - 63 AS col1
----
62

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7597
SELECT ALL - - 95 + - + 22 * + + 81 + + 84 AS col0, 12 AS col1, CAST( NULL AS DECIMAL ) * 57 col1
----
-1603
12
NULL

skipif mysql # not compatible
query III rowsort label-7597
SELECT ALL - - 95 + - + 22 * + + 81 + + 84 AS col0, 12 AS col1, CAST ( NULL AS REAL ) * 57 col1
----
-1603
12
NULL

query I rowsort
SELECT ALL - - 14
----
14

query I rowsort
SELECT DISTINCT - 77 * + 98
----
-7546

onlyif mysql # aggregate syntax: 
query I rowsort label-7600
SELECT + 99 * - 56 + - MAX( ALL + 25 )
----
-5569

skipif mysql # not compatible
query I rowsort label-7600
SELECT + 99 * - 56 + - MAX ( ALL + 25 )
----
-5569

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

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

query II rowsort
SELECT ALL - 33 - + 92 AS col1, - 84
----
-125
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-7603
SELECT DISTINCT - MIN( - 39 ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-7603
SELECT DISTINCT - MIN ( - 39 ) AS col0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7604
SELECT ALL 59 - - + SUM( + 85 ) AS col0
----
144

skipif mysql # not compatible
query I rowsort label-7604
SELECT ALL 59 - - + SUM ( + 85 ) AS col0
----
144

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7606
SELECT ALL COUNT( * ) - + 24
----
-23

skipif mysql # not compatible
query I rowsort label-7606
SELECT ALL COUNT ( * ) - + 24
----
-23

query I rowsort
SELECT 28 * - 91 AS col2
----
-2548

query I rowsort
SELECT DISTINCT 15 * 80 AS col1
----
1200

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7609
SELECT ALL 55, CAST( NULL AS SIGNED ) AS col1
----
55
NULL

skipif mysql # not compatible
query II rowsort label-7609
SELECT ALL 55, CAST ( NULL AS INTEGER ) AS col1
----
55
NULL

query I rowsort
SELECT DISTINCT 45 * + 92
----
4140

query I rowsort
SELECT 12 * + + 27 AS col0
----
324

query I rowsort
SELECT ALL 10 col0
----
10

query I rowsort
SELECT DISTINCT 80 * - 97
----
-7760

onlyif mysql # aggregate syntax: 
query I rowsort label-7614
SELECT ALL COUNT( * ) + - + 3 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-7614
SELECT ALL COUNT ( * ) + - + 3 AS col0
----
-2

query II rowsort
SELECT DISTINCT 16 AS col0, 7 AS col0
----
16
7

query I rowsort
SELECT ALL 14 + + 41 col0
----
55

query I rowsort
SELECT 2 + - ( - NULLIF ( + - 9, + - CASE 80 WHEN 99 THEN - + 0 WHEN + + 50 + - 26 / + 70 * - 10 THEN NULL END ) )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-7618
SELECT 37 * - MAX( - 3 )
----
111

skipif mysql # not compatible
query I rowsort label-7618
SELECT 37 * - MAX ( - 3 )
----
111

query I rowsort
SELECT DISTINCT ( - + 84 ) + + 49 * + CASE + 10 WHEN + + 53 * - 25 THEN - - NULLIF ( - 88, 35 ) WHEN - 98 * + + 50 THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7620
SELECT 27 - + CASE 57 WHEN + 44 / - - 78 THEN - COALESCE ( - COUNT( * ), + + SUM( ALL + 49 ) ) ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7620
SELECT 27 - + CASE 57 WHEN + 44 / - - 78 THEN - COALESCE ( - COUNT ( * ), + + SUM ( ALL + 49 ) ) ELSE NULL END col0
----
NULL

query II rowsort
SELECT 16, 98 * - 69 + - 97 col1
----
16
-6859

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7622
SELECT ALL - 48 / 49 * - CAST( NULL AS SIGNED ) * - 14 * + 21, ( CAST( NULL AS SIGNED ) ) AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7622
SELECT ALL - 48 / 49 * - CAST ( NULL AS INTEGER ) * - 14 * + 21, ( CAST ( NULL AS INTEGER ) ) AS col2
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7623
SELECT ALL + 94 + + ( - 90 ) DIV + 7
----
82

skipif mysql # not compatible
query I rowsort label-7623
SELECT ALL + 94 + + ( - 90 ) / + 7
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7624
SELECT CAST( NULL AS SIGNED ) - + ( CASE SUM( 86 ) WHEN 24 THEN 26 * + MIN( ALL - 58 / 19 ) + + 9 END + + 76 * + 53 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7624
SELECT CAST ( NULL AS INTEGER ) - + ( CASE SUM ( 86 ) WHEN 24 THEN 26 * + MIN ( ALL - 58 / 19 ) + + 9 END + + 76 * + 53 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7625
SELECT ALL ( CASE + 38 WHEN + 88 THEN + NULLIF ( + 27, 62 ) * ( + 54 ) + + 88 WHEN - SUM( DISTINCT 66 ) THEN NULL END ) + 75 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7625
SELECT ALL ( CASE + 38 WHEN + 88 THEN + NULLIF ( + 27, 62 ) * ( + 54 ) + + 88 WHEN - SUM ( DISTINCT 66 ) THEN NULL END ) + 75 AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7626
SELECT DISTINCT COUNT ( * ) / + 40
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7627
SELECT COUNT( * ) + 89 * COALESCE ( + 70 DIV 38 - - MAX( 93 ) DIV 10, 24 * + 76 )
----
891

skipif mysql # not compatible
query I rowsort label-7627
SELECT COUNT ( * ) + 89 * COALESCE ( + 70 / 38 - - MAX ( 93 ) / 10, 24 * + 76 )
----
891

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

query I rowsort
SELECT ALL - 22 * 93 + + 78 AS col1
----
-1968

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

skipif mysql # not compatible
query I rowsort label-7630
SELECT + MAX ( 3 )
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7631
SELECT - 42 DIV + 97 + + ( + 44 ) * 36 AS col0
----
1584

skipif mysql # not compatible
query I rowsort label-7631
SELECT - 42 / + 97 + + ( + 44 ) * 36 AS col0
----
1584

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

skipif mysql # not compatible
query I rowsort label-7632
SELECT + MIN ( 4 )
----
4

query I rowsort
SELECT 58 * 1
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7634
SELECT ALL - COALESCE ( + CAST( + 7 AS SIGNED ), 89 )
----
-7

skipif mysql # not compatible
query I rowsort label-7634
SELECT ALL - COALESCE ( + CAST ( + 7 AS INTEGER ), 89 )
----
-7

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

query I rowsort
SELECT + 20 col1
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7637
SELECT ALL - COUNT( * ) DIV - SUM( 26 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7637
SELECT ALL - COUNT ( * ) / - SUM ( 26 ) AS col1
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7639
SELECT ALL - COALESCE ( ( + 39 ), - 46 - + 52 * 4, MIN( + 88 ) ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-7639
SELECT ALL - COALESCE ( ( + 39 ), - 46 - + 52 * 4, MIN ( + 88 ) ) AS col1
----
-39

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7641
SELECT ALL - 14 DIV - 21 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7641
SELECT ALL - 14 / - 21 AS col0
----
0

query I rowsort
SELECT ALL - ( - 54 ) AS col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-7643
SELECT + 79 * - COALESCE ( 74, - SUM( 59 ) ) + 61
----
-5785

skipif mysql # not compatible
query I rowsort label-7643
SELECT + 79 * - COALESCE ( 74, - SUM ( 59 ) ) + 61
----
-5785

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7644
SELECT + 16 * COALESCE ( CAST( - 34 AS SIGNED ), + CASE - 15 WHEN + 7 THEN - 74 END, - 71 * - 35 ) + 61 AS col1
----
-483

skipif mysql # not compatible
query I rowsort label-7644
SELECT + 16 * COALESCE ( CAST ( - 34 AS INTEGER ), + CASE - 15 WHEN + 7 THEN - 74 END, - 71 * - 35 ) + 61 AS col1
----
-483

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

skipif mysql # not compatible
query I rowsort label-7645
SELECT - SUM ( ALL + 0 ) / - COUNT ( * ) AS col2
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7647
SELECT - COUNT( * ) + + 92
----
91

skipif mysql # not compatible
query I rowsort label-7647
SELECT - COUNT ( * ) + + 92
----
91

query I rowsort
SELECT - 80 + 91
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7649
SELECT ALL + MIN( 86 ) * 50 AS col0
----
4300

skipif mysql # not compatible
query I rowsort label-7649
SELECT ALL + MIN ( 86 ) * 50 AS col0
----
4300

query I rowsort
SELECT ALL + 97 * 94
----
9118

query I rowsort
SELECT DISTINCT - 42 * + 69 col2
----
-2898

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7652
SELECT DISTINCT CASE + ( 27 ) WHEN - ( + 81 ) * + CAST( NULL AS SIGNED ) THEN NULL ELSE + 49 END AS col0
----
49

skipif mysql # not compatible
query I rowsort label-7652
SELECT DISTINCT CASE + ( 27 ) WHEN - ( + 81 ) * + CAST ( NULL AS INTEGER ) THEN NULL ELSE + 49 END AS col0
----
49

query I rowsort
SELECT ALL - 25 + - 39
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7654
SELECT DISTINCT + ( + 78 ) + - CAST( NULL AS SIGNED ) * - 53
----
NULL

skipif mysql # not compatible
query I rowsort label-7654
SELECT DISTINCT + ( + 78 ) + - CAST ( NULL AS INTEGER ) * - 53
----
NULL

query I rowsort
SELECT - 21 + + 25 AS col0
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-7656
SELECT + 26 + + 97 DIV 64 AS col2
----
27

skipif mysql # not compatible
query I rowsort label-7656
SELECT + 26 + + 97 / 64 AS col2
----
27

query I rowsort
SELECT - 97 * + 14 AS col0
----
-1358

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

query I rowsort
SELECT ALL ( + 88 ) + + 39
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-7660
SELECT + 90 + MAX( DISTINCT 18 + - 44 )
----
64

skipif mysql # not compatible
query I rowsort label-7660
SELECT + 90 + MAX ( DISTINCT 18 + - 44 )
----
64

query I rowsort
SELECT ALL 61 + + 46
----
107

query I rowsort
SELECT + 67 + - 37 AS col1
----
30

query I rowsort
SELECT ALL - CASE - 70 WHEN + 39 THEN - 34 END + 83 * + 66
----
NULL

query I rowsort
SELECT DISTINCT ( + 66 ) AS col2
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7665
SELECT DISTINCT - CAST( 32 AS SIGNED ) * + 55
----
-1760

skipif mysql # not compatible
query I rowsort label-7665
SELECT DISTINCT - CAST ( 32 AS INTEGER ) * + 55
----
-1760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7666
SELECT ALL - 29 + - NULLIF ( 11 + + 6, 66 / CAST( NULL AS SIGNED ) ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-7666
SELECT ALL - 29 + - NULLIF ( 11 + + 6, 66 / CAST ( NULL AS INTEGER ) ) AS col2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-7667
SELECT ALL + MIN( 65 ) + 70
----
135

skipif mysql # not compatible
query I rowsort label-7667
SELECT ALL + MIN ( 65 ) + 70
----
135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7668
SELECT DISTINCT CAST( 22 AS SIGNED ) + + 12
----
34

skipif mysql # not compatible
query I rowsort label-7668
SELECT DISTINCT CAST ( 22 AS INTEGER ) + + 12
----
34

query I rowsort
SELECT + 25 + - 11 AS col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7670
SELECT - COALESCE ( MAX( + 65 ), 78 ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-7670
SELECT - COALESCE ( MAX ( + 65 ), 78 ) AS col2
----
-65

query I rowsort
SELECT + + 73 + + 46 * - 48 AS col2
----
-2135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7672
SELECT DISTINCT - CASE AVG ( 35 ) WHEN MIN( ALL 3 ) THEN NULL WHEN + 83 THEN SUM( 16 ) * - COALESCE ( - NULLIF ( 88, 28 ) + 7, - CAST( NULL AS SIGNED ) * - 10 ) + + 99 WHEN 35 * + 38 THEN NULL ELSE 15 END AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-7672
SELECT DISTINCT - CASE AVG ( 35 ) WHEN MIN ( ALL 3 ) THEN NULL WHEN + 83 THEN SUM ( 16 ) * - COALESCE ( - NULLIF ( 88, 28 ) + 7, - CAST ( NULL AS INTEGER ) * - 10 ) + + 99 WHEN 35 * + 38 THEN NULL ELSE 15 END AS col0
----
-15

query I rowsort
SELECT + - 99 + - 28 * - 12
----
237

query I rowsort
SELECT + 52 * - 14
----
-728

onlyif mysql # aggregate syntax: 
query I rowsort label-7675
SELECT - COUNT( * ) * - 82 AS col2
----
82

skipif mysql # not compatible
query I rowsort label-7675
SELECT - COUNT ( * ) * - 82 AS col2
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-7676
SELECT ALL 92 DIV - 49
----
-1

skipif mysql # not compatible
query I rowsort label-7676
SELECT ALL 92 / - 49
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7677
SELECT 96 / CAST( NULL AS SIGNED ) + 35 * 49 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7677
SELECT 96 / CAST ( NULL AS INTEGER ) + 35 * 49 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7678
SELECT DISTINCT 16 * + CASE 99 WHEN + CAST( MAX( 23 ) AS DECIMAL ) THEN 11 + - CASE - 63 - 53 / 87 WHEN COALESCE ( + 0, 23 * 20 ) THEN + 60 * + 84 ELSE - 9 + + 32 * - COUNT( * ) END WHEN + 80 + 8 * 49 THEN - 82 ELSE COUNT( * ) END - + ( + 80 ) AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-7678
SELECT DISTINCT 16 * + CASE 99 WHEN + CAST ( MAX ( 23 ) AS REAL ) THEN 11 + - CASE - 63 - 53 / 87 WHEN COALESCE ( + 0, 23 * 20 ) THEN + 60 * + 84 ELSE - 9 + + 32 * - COUNT ( * ) END WHEN + 80 + 8 * 49 THEN - 82 ELSE COUNT ( * ) END - + ( + 80 ) AS col2
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-7679
SELECT ALL + 16 DIV 92
----
0

skipif mysql # not compatible
query I rowsort label-7679
SELECT ALL + 16 / 92
----
0

query I rowsort
SELECT ALL - + 65 * 58 AS col1
----
-3770

query I rowsort
SELECT + - 47 * + 89 AS col2
----
-4183

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

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

query I rowsort
SELECT - - 93 * - 76 + 11
----
-7057

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7686
SELECT ALL - CASE + 87 WHEN 85 DIV - 13 THEN NULL ELSE + 8 DIV - 33 + - 67 END * 47
----
3149

skipif mysql # not compatible
query I rowsort label-7686
SELECT ALL - CASE + 87 WHEN 85 / - 13 THEN NULL ELSE + 8 / - 33 + - 67 END * 47
----
3149

query I rowsort
SELECT - 93 + + - 24 col2
----
-117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7688
SELECT + CAST( + + 8 AS SIGNED )
----
8

skipif mysql # not compatible
query I rowsort label-7688
SELECT + CAST ( + + 8 AS INTEGER )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7689
SELECT CASE - + COUNT( * ) WHEN - 55 THEN 88 * NULLIF ( - 72, + 40 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7689
SELECT CASE - + COUNT ( * ) WHEN - 55 THEN 88 * NULLIF ( - 72, + 40 ) END
----
NULL

query I rowsort
SELECT ALL 69 * ( 59 )
----
4071

onlyif mysql # aggregate syntax: 
query I rowsort label-7691
SELECT - 81 * + + COUNT( + 37 )
----
-81

skipif mysql # not compatible
query I rowsort label-7691
SELECT - 81 * + + COUNT ( + 37 )
----
-81

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7693
SELECT - 33 DIV + 88 col2
----
0

skipif mysql # not compatible
query I rowsort label-7693
SELECT - 33 / + 88 col2
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7694
SELECT ALL - CAST( 80 AS DECIMAL ) * + 63 + - CAST( NULL AS SIGNED ) * - 20 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7694
SELECT ALL - CAST ( 80 AS REAL ) * + 63 + - CAST ( NULL AS INTEGER ) * - 20 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7695
SELECT DISTINCT + 93 * - 99 * - 84 + - 34 DIV 28
----
773387

skipif mysql # not compatible
query I rowsort label-7695
SELECT DISTINCT + 93 * - 99 * - 84 + - 34 / 28
----
773387

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7697
SELECT ALL - 60 * COUNT( * ) + ( 19 + - NULLIF ( 98, 44 ) ) * 22
----
-1798

skipif mysql # not compatible
query I rowsort label-7697
SELECT ALL - 60 * COUNT ( * ) + ( 19 + - NULLIF ( 98, 44 ) ) * 22
----
-1798

query I rowsort
SELECT ALL + ( + 36 ) * - 23 col1
----
-828

onlyif mysql # aggregate syntax: 
query I rowsort label-7699
SELECT DISTINCT + 94 * - - COUNT( * ) + 23 * 49
----
1221

skipif mysql # not compatible
query I rowsort label-7699
SELECT DISTINCT + 94 * - - COUNT ( * ) + 23 * 49
----
1221

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

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

query I rowsort
SELECT DISTINCT + 48 * - - 78 * 52 AS col2
----
194688

query I rowsort
SELECT DISTINCT - 78 * 4 + 23
----
-289

onlyif mysql # DIV for integer division: 
query I rowsort label-7703
SELECT - 67 DIV + - 42
----
1

skipif mysql # not compatible
query I rowsort label-7703
SELECT - 67 / + - 42
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7704
SELECT ALL CAST( + - 98 AS SIGNED )
----
-98

skipif mysql # not compatible
query I rowsort label-7704
SELECT ALL CAST ( + - 98 AS INTEGER )
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-7705
SELECT - MIN( DISTINCT + - 5 )
----
5

skipif mysql # not compatible
query I rowsort label-7705
SELECT - MIN ( DISTINCT + - 5 )
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7706
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 48 * + ( + 61 * - ( + 83 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7706
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 48 * + ( + 61 * - ( + 83 ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7707
SELECT ALL - SUM( DISTINCT + 46 ) + ( + 90 )
----
44

skipif mysql # not compatible
query I rowsort label-7707
SELECT ALL - SUM ( DISTINCT + 46 ) + ( + 90 )
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-7708
SELECT DISTINCT 14 DIV - ( 53 ) * + 25 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7708
SELECT DISTINCT 14 / - ( 53 ) * + 25 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7709
SELECT - MIN( - 39 )
----
39

skipif mysql # not compatible
query I rowsort label-7709
SELECT - MIN ( - 39 )
----
39

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

query I rowsort
SELECT DISTINCT - + 51 - - 95
----
44

query I rowsort
SELECT - + 8 + + + 46 + 75 * 71 AS col2
----
5363

query I rowsort
SELECT + 84 * - CASE - 90 WHEN + 21 THEN - 68 END * AVG ( + 28 - + 12 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7714
SELECT ALL 80 * + MIN( - 19 ) AS col1
----
-1520

skipif mysql # not compatible
query I rowsort label-7714
SELECT ALL 80 * + MIN ( - 19 ) AS col1
----
-1520

onlyif mysql # aggregate syntax: 
query I rowsort label-7715
SELECT - 50 - + ( - COUNT( * ) ) + - 51
----
-100

skipif mysql # not compatible
query I rowsort label-7715
SELECT - 50 - + ( - COUNT ( * ) ) + - 51
----
-100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7716
SELECT + CAST( 44 AS SIGNED ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-7716
SELECT + CAST ( 44 AS INTEGER ) AS col2
----
44

query I rowsort
SELECT + + 67 + - + COALESCE ( 72, 28 * 65 ) col2
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7718
SELECT DISTINCT + 3 * - CAST( + 72 AS SIGNED ) + + 39 AS col0
----
-177

skipif mysql # not compatible
query I rowsort label-7718
SELECT DISTINCT + 3 * - CAST ( + 72 AS INTEGER ) + + 39 AS col0
----
-177

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7719
SELECT + - MIN( DISTINCT 52 ) + ( 90 ) DIV + 58
----
-51

skipif mysql # not compatible
query I rowsort label-7719
SELECT + - MIN ( DISTINCT 52 ) + ( 90 ) / + 58
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-7720
SELECT ALL + MAX( 15 ) * - 27
----
-405

skipif mysql # not compatible
query I rowsort label-7720
SELECT ALL + MAX ( 15 ) * - 27
----
-405

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7721
SELECT + + ( + 99 ) * SUM( + 57 DIV 46 ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-7721
SELECT + + ( + 99 ) * SUM ( + 57 / 46 ) AS col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7722
SELECT DISTINCT 65 * + + 79 - COUNT( * ) * CASE 90 * - 82 WHEN + 13 THEN - 15 ELSE + 22 END
----
5113

skipif mysql # not compatible
query I rowsort label-7722
SELECT DISTINCT 65 * + + 79 - COUNT ( * ) * CASE 90 * - 82 WHEN + 13 THEN - 15 ELSE + 22 END
----
5113

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

query I rowsort
SELECT - + 32 + - ( + 16 ) col1
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7725
SELECT - - 3 * + CAST( 35 AS SIGNED ) - 80 * COUNT( * ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-7725
SELECT - - 3 * + CAST ( 35 AS INTEGER ) - 80 * COUNT ( * ) AS col0
----
25

query I rowsort
SELECT NULLIF ( - 2, 14 * ( 43 ) + + 51 * - 12 ) * + 8 col1
----
-16

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

query I rowsort
SELECT - ( 23 ) AS col1
----
-23

query I rowsort
SELECT DISTINCT - + ( + 36 )
----
-36

query I rowsort
SELECT DISTINCT 28 + - 41 AS col1
----
-13

query I rowsort
SELECT ALL - 76 col1
----
-76

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

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

query I rowsort
SELECT ALL 63 + + - 20 + 66
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-7734
SELECT ALL COALESCE ( - COALESCE ( - + 85, - 69 - NULLIF ( - 34 + - COUNT( DISTINCT + 18 ), 76 ) ), 96, - 20 ) + - 98 AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-7734
SELECT ALL COALESCE ( - COALESCE ( - + 85, - 69 - NULLIF ( - 34 + - COUNT ( DISTINCT + 18 ), 76 ) ), 96, - 20 ) + - 98 AS col0
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7735
SELECT DISTINCT - CAST( - - 72 AS SIGNED ) + - 77 AS col0
----
-149

skipif mysql # not compatible
query I rowsort label-7735
SELECT DISTINCT - CAST ( - - 72 AS INTEGER ) + - 77 AS col0
----
-149

onlyif mysql # aggregate syntax: 
query I rowsort label-7736
SELECT ALL + COUNT( * ) + + 56 AS col0
----
57

skipif mysql # not compatible
query I rowsort label-7736
SELECT ALL + COUNT ( * ) + + 56 AS col0
----
57

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

skipif mysql # not compatible
query II rowsort label-7737
SELECT + 96, COUNT ( * ) AS col1
----
96
1

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

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

query I rowsort
SELECT 37 * 9
----
333

query I rowsort
SELECT 98 * + 71 + + 48 - + 97 * - 68 AS col2
----
13602

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7742
SELECT 89 * + - 4 + 33 DIV - 2
----
-372

skipif mysql # not compatible
query I rowsort label-7742
SELECT 89 * + - 4 + 33 / - 2
----
-372

onlyif mysql # aggregate syntax: 
query I rowsort label-7743
SELECT COALESCE ( COUNT( * ), + 86 * - ( 92 ) - + 7, - 73 ) + - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7743
SELECT COALESCE ( COUNT ( * ), + 86 * - ( 92 ) - + 7, - 73 ) + - COUNT ( * ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7744
SELECT ALL COUNT( ALL - ( + + 98 ) ) + 82 * + 67
----
5495

skipif mysql # not compatible
query I rowsort label-7744
SELECT ALL COUNT ( ALL - ( + + 98 ) ) + 82 * + 67
----
5495

query I rowsort
SELECT - CASE - ( + ( 6 ) ) WHEN 44 THEN 17 * 25 END * - 42 + 85 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7746
SELECT DISTINCT 8 - + COUNT( * ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-7746
SELECT DISTINCT 8 - + COUNT ( * ) AS col1
----
7

query I rowsort
SELECT 56 + + - 14 AS col2
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7748
SELECT DISTINCT + CAST( NULL AS SIGNED ) - - - 15 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7748
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - - - 15 AS col1
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7750
SELECT ALL + 35 DIV + 18 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7750
SELECT ALL + 35 / + 18 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7751
SELECT 72 + + SUM( - 84 ) AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-7751
SELECT 72 + + SUM ( - 84 ) AS col2
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-7752
SELECT + 7 * - 59 + - 10 DIV + 16
----
-413

skipif mysql # not compatible
query I rowsort label-7752
SELECT + 7 * - 59 + - 10 / + 16
----
-413

query II rowsort
SELECT - 35 AS col1, - ( + + 94 ) AS col1
----
-35
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7754
SELECT COUNT( * ) + - + 57 + + + COUNT( * ) + + 56 DIV 8
----
-48

skipif mysql # not compatible
query I rowsort label-7754
SELECT COUNT ( * ) + - + 57 + + + COUNT ( * ) + + 56 / 8
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-7755
SELECT ALL + + CASE + + 53 WHEN - 22 THEN NULL WHEN 3 * - 55 THEN COUNT( * ) WHEN - 35 THEN 88 ELSE NULL END * 53 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7755
SELECT ALL + + CASE + + 53 WHEN - 22 THEN NULL WHEN 3 * - 55 THEN COUNT ( * ) WHEN - 35 THEN 88 ELSE NULL END * 53 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7756
SELECT + 34 + - - 32 * + COUNT( * ) + - 19 AS col1
----
47

skipif mysql # not compatible
query I rowsort label-7756
SELECT + 34 + - - 32 * + COUNT ( * ) + - 19 AS col1
----
47

query I rowsort
SELECT ALL + 66 * + + 9 AS col2
----
594

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

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

query I rowsort
SELECT DISTINCT + 49 * + 95 AS col2
----
4655

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7760
SELECT CAST( NULL AS SIGNED ) * AVG ( - 78 ) * - 80 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7760
SELECT CAST ( NULL AS INTEGER ) * AVG ( - 78 ) * - 80 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 58 * 20 AS col2
----
1160

onlyif mysql # DIV for integer division: 
query I rowsort label-7762
SELECT DISTINCT 10 DIV + + CASE + - 67 WHEN 46 + ( 78 ) THEN 84 + ( 65 ) WHEN 57 THEN NULL ELSE + 33 + 29 END AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7762
SELECT DISTINCT 10 / + + CASE + - 67 WHEN 46 + ( 78 ) THEN 84 + ( 65 ) WHEN 57 THEN NULL ELSE + 33 + 29 END AS col0
----
0

query I rowsort
SELECT DISTINCT + NULLIF ( + - 83, - 31 - 6 ) col0
----
-83

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

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

query I rowsort
SELECT - - 94
----
94

query I rowsort
SELECT 38 + - 62 + 47 * 83 AS col1
----
3877

query I rowsort
SELECT DISTINCT - - 69 + + 96 + - 65 AS col1
----
100

query I rowsort
SELECT ALL - COALESCE ( - + 14, + - 15 ) AS col1
----
14

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7770
SELECT 14 * COUNT( * ) + - - ( 13 ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-7770
SELECT 14 * COUNT ( * ) + - - ( 13 ) AS col2
----
27

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

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

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

query I rowsort
SELECT DISTINCT 10 + - 97 AS col1
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7774
SELECT ALL ( - 92 ) + - 72 + 87 + + 89 * ( 26 + - CAST( NULL AS SIGNED ) * - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7774
SELECT ALL ( - 92 ) + - 72 + 87 + + 89 * ( 26 + - CAST ( NULL AS INTEGER ) * - COUNT ( * ) )
----
NULL

query I rowsort
SELECT DISTINCT + CASE - 30 WHEN 31 THEN NULL ELSE - 73 END * + 51 col0
----
-3723

onlyif mysql # aggregate syntax: 
query I rowsort label-7776
SELECT ALL COUNT( * ) + + 52 * - - 15
----
781

skipif mysql # not compatible
query I rowsort label-7776
SELECT ALL COUNT ( * ) + + 52 * - - 15
----
781

query I rowsort
SELECT 56 * - + 1 + + 4 * 26
----
48

query I rowsort
SELECT ALL ( - 87 ) * 25
----
-2175

query I rowsort
SELECT DISTINCT - 79 AS col0
----
-79

query II rowsort
SELECT ALL 68 + + 57 AS col0, + 52 AS col2
----
125
52

query I rowsort
SELECT 21 * - + CASE - + 74 WHEN ( 65 ) THEN - 10 END * 12
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7782
SELECT DISTINCT 3 DIV + 29 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7782
SELECT DISTINCT 3 / + 29 AS col1
----
0

query I rowsort
SELECT ALL - 1 col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7784
SELECT ALL CASE - + 76 WHEN - 23 THEN - CAST( NULL AS SIGNED ) WHEN 88 THEN - COUNT( * ) * 28 ELSE NULL END - 43
----
NULL

skipif mysql # not compatible
query I rowsort label-7784
SELECT ALL CASE - + 76 WHEN - 23 THEN - CAST ( NULL AS INTEGER ) WHEN 88 THEN - COUNT ( * ) * 28 ELSE NULL END - 43
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7785
SELECT ALL 38 * 58, + COUNT( * ) AS col1
----
2204
1

skipif mysql # not compatible
query II rowsort label-7785
SELECT ALL 38 * 58, + COUNT ( * ) AS col1
----
2204
1

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7787
SELECT ALL 55 - - + CAST( 78 AS SIGNED ) * + 30 * - NULLIF ( + 30, - 21 ) + - COALESCE ( - 45, - 93 * 95 )
----
-70100

skipif mysql # not compatible
query I rowsort label-7787
SELECT ALL 55 - - + CAST ( 78 AS INTEGER ) * + 30 * - NULLIF ( + 30, - 21 ) + - COALESCE ( - 45, - 93 * 95 )
----
-70100

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

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

query I rowsort
SELECT DISTINCT 61 * 72 AS col2
----
4392

query I rowsort
SELECT ALL 96 * - 82 AS col0
----
-7872

onlyif mysql # aggregate syntax: 
query I rowsort label-7791
SELECT + COUNT( * ) - + 93 + + CASE - 13 WHEN 30 + - ( + 9 + - 53 ) THEN - MAX( DISTINCT - ( 96 ) ) / - 66 END + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-7791
SELECT + COUNT ( * ) - + 93 + + CASE - 13 WHEN 30 + - ( + 9 + - 53 ) THEN - MAX ( DISTINCT - ( 96 ) ) / - 66 END + 48
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7792
SELECT - 75 * - + 87 + 98 + - + COUNT( * ) AS col1
----
6622

skipif mysql # not compatible
query I rowsort label-7792
SELECT - 75 * - + 87 + 98 + - + COUNT ( * ) AS col1
----
6622

query I rowsort
SELECT - - 91
----
91

query I rowsort
SELECT ALL + COALESCE ( 99, + 0 + + 38 + + 87 * - 11 * 64 ) * 77 AS col0
----
7623

query I rowsort
SELECT ALL 2 * 70
----
140

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7797
SELECT ALL + CASE + + 48 WHEN + + 21 + + COUNT( * ) / 41 THEN - ( - COUNT( * ) ) * - COUNT( 65 ) WHEN - COUNT( * ) + - 24 THEN NULL WHEN + 2 THEN NULL ELSE 52 * - 61 END AS col1
----
-3172

skipif mysql # not compatible
query I rowsort label-7797
SELECT ALL + CASE + + 48 WHEN + + 21 + + COUNT ( * ) / 41 THEN - ( - COUNT ( * ) ) * - COUNT ( 65 ) WHEN - COUNT ( * ) + - 24 THEN NULL WHEN + 2 THEN NULL ELSE 52 * - 61 END AS col1
----
-3172

onlyif mysql # aggregate syntax: 
query II rowsort label-7798
SELECT ALL ( COUNT( * ) ), 74 * - 35 col0
----
1
-2590

skipif mysql # not compatible
query II rowsort label-7798
SELECT ALL ( COUNT ( * ) ), 74 * - 35 col0
----
1
-2590

onlyif mysql # DIV for integer division: 
query I rowsort label-7799
SELECT + 8 DIV 88 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7799
SELECT + 8 / 88 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7800
SELECT - CAST( 15 AS SIGNED ) AS col0, 36 AS col2
----
-15
36

skipif mysql # not compatible
query II rowsort label-7800
SELECT - CAST ( 15 AS INTEGER ) AS col0, 36 AS col2
----
-15
36

query I rowsort
SELECT - + 83
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7802
SELECT ALL + ( + CASE - 11 WHEN - ( CAST( - 35 AS SIGNED ) ) + 77 THEN 90 - 69 * AVG ( DISTINCT CAST( 83 AS SIGNED ) - + 2 ) END ) * + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-7802
SELECT ALL + ( + CASE - 11 WHEN - ( CAST ( - 35 AS INTEGER ) ) + 77 THEN 90 - 69 * AVG ( DISTINCT CAST ( 83 AS INTEGER ) - + 2 ) END ) * + 52
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7803
SELECT - 57 * + 67 * - COALESCE ( + CAST( - 65 AS SIGNED ), + 41 ) + 37
----
-248198

skipif mysql # not compatible
query I rowsort label-7803
SELECT - 57 * + 67 * - COALESCE ( + CAST ( - 65 AS INTEGER ), + 41 ) + 37
----
-248198

query I rowsort
SELECT DISTINCT - 2 + 75 - + - ( - 26 ) - 45
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7805
SELECT ALL NULLIF ( 65, - 46 * - 37 + 88 * COUNT( * ) ) + + 46 * + COUNT( * ) AS col1
----
111

skipif mysql # not compatible
query I rowsort label-7805
SELECT ALL NULLIF ( 65, - 46 * - 37 + 88 * COUNT ( * ) ) + + 46 * + COUNT ( * ) AS col1
----
111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7806
SELECT - + SUM( + 63 ) col2, - CAST( - 77 AS SIGNED )
----
-63
77

skipif mysql # not compatible
query II rowsort label-7806
SELECT - + SUM ( + 63 ) col2, - CAST ( - 77 AS INTEGER )
----
-63
77

query I rowsort
SELECT DISTINCT - 22 + + + 88 + + 71 AS col1
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-7808
SELECT ALL + SUM( + 40 ) * - - 20 + 59 * + COUNT( * ) AS col1
----
859

skipif mysql # not compatible
query I rowsort label-7808
SELECT ALL + SUM ( + 40 ) * - - 20 + 59 * + COUNT ( * ) AS col1
----
859

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

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

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

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

query I rowsort
SELECT DISTINCT - 28 * + 80 + 96
----
-2144

query I rowsort
SELECT COALESCE ( + + 29, - - 61, - 55 )
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7813
SELECT + MIN( + CASE - 18 WHEN + + 27 THEN NULL ELSE + 80 DIV 89 + 21 END ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-7813
SELECT + MIN ( + CASE - 18 WHEN + + 27 THEN NULL ELSE + 80 / 89 + 21 END ) AS col2
----
21

query I rowsort
SELECT ALL + 95 * + 46 - 26 AS col1
----
4344

query I rowsort
SELECT NULLIF ( 61, - + 19 )
----
61

query I rowsort
SELECT DISTINCT + ( - 59 )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-7817
SELECT 7 * + 23 + COUNT( * ) AS col0
----
162

skipif mysql # not compatible
query I rowsort label-7817
SELECT 7 * + 23 + COUNT ( * ) AS col0
----
162

query I rowsort
SELECT ALL 62 * 80
----
4960

query II rowsort
SELECT + 3, + 15 AS col0
----
3
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7820
SELECT ALL + MAX( - 37 ) AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-7820
SELECT ALL + MAX ( - 37 ) AS col0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-7821
SELECT DISTINCT 97 * COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-7821
SELECT DISTINCT 97 * COUNT ( * )
----
97

query I rowsort
SELECT ALL 14 * - 16 AS col0
----
-224

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7823
SELECT ALL - 35 * - - 67 DIV - COUNT( * ) col1, - COUNT( * )
----
2345
-1

skipif mysql # not compatible
query II rowsort label-7823
SELECT ALL - 35 * - - 67 / - COUNT ( * ) col1, - COUNT ( * )
----
2345
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7824
SELECT CASE + ( - - 52 ) WHEN + - 30 + + - 47 * + 84 THEN + MIN( ALL + ( 31 ) ) / 49 WHEN 18 + + 81 THEN 24 / + 55 ELSE - 9 * - 51 + 91 END AS col0
----
550

skipif mysql # not compatible
query I rowsort label-7824
SELECT CASE + ( - - 52 ) WHEN + - 30 + + - 47 * + 84 THEN + MIN ( ALL + ( 31 ) ) / 49 WHEN 18 + + 81 THEN 24 / + 55 ELSE - 9 * - 51 + 91 END AS col0
----
550

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

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

query I rowsort
SELECT - 79 * - - 9 + - 75 + 90 * - 37 AS col1
----
-4116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7827
SELECT CASE WHEN ( ( NULL < ( NULL ) ) ) THEN - 39 WHEN ( 61 * CAST( NULL AS SIGNED ) ) BETWEEN ( + ( 37 ) * COUNT( * ) ) AND NULL THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7827
SELECT CASE WHEN ( ( NULL < ( NULL ) ) ) THEN - 39 WHEN ( 61 * CAST ( NULL AS INTEGER ) ) BETWEEN ( + ( 37 ) * COUNT ( * ) ) AND NULL THEN NULL END AS col2
----
NULL

query I rowsort
SELECT - 84 * + 26
----
-2184

query I rowsort
SELECT + 90 * 41 AS col1
----
3690

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7830
SELECT 63 * - 4 + + CAST( + COUNT( * ) AS SIGNED )
----
-251

skipif mysql # not compatible
query I rowsort label-7830
SELECT 63 * - 4 + + CAST ( + COUNT ( * ) AS INTEGER )
----
-251

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7831
SELECT ALL 47 DIV - NULLIF ( - COUNT( * ), + + 84 )
----
47

skipif mysql # not compatible
query I rowsort label-7831
SELECT ALL 47 / - NULLIF ( - COUNT ( * ), + + 84 )
----
47

query I rowsort
SELECT + 16 + 42 col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7833
SELECT + NULLIF ( ( + ( - CASE - + 75 WHEN + COUNT( * ) THEN + 91 / + 94 END ) ), MAX( DISTINCT 34 ) ) / 38
----
NULL

skipif mysql # not compatible
query I rowsort label-7833
SELECT + NULLIF ( ( + ( - CASE - + 75 WHEN + COUNT ( * ) THEN + 91 / + 94 END ) ), MAX ( DISTINCT 34 ) ) / 38
----
NULL

query I rowsort
SELECT ALL + 99 + 27
----
126

query I rowsort
SELECT - + ( - 79 ) * + 85
----
6715

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7836
SELECT + - COUNT( * ) * 95 DIV - COUNT( ALL - 26 )
----
95

skipif mysql # not compatible
query I rowsort label-7836
SELECT + - COUNT ( * ) * 95 / - COUNT ( ALL - 26 )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-7837
SELECT + - NULLIF ( + 7, - 79 * + 81 + COUNT( * ) ) + 76
----
69

skipif mysql # not compatible
query I rowsort label-7837
SELECT + - NULLIF ( + 7, - 79 * + 81 + COUNT ( * ) ) + 76
----
69

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

query II rowsort
SELECT 28 AS col2, 38
----
28
38

onlyif mysql # aggregate syntax: 
query II rowsort label-7840
SELECT + + 39 + + SUM( DISTINCT - + 10 ) AS col2, 92 AS col0
----
29
92

skipif mysql # not compatible
query II rowsort label-7840
SELECT + + 39 + + SUM ( DISTINCT - + 10 ) AS col2, 92 AS col0
----
29
92

onlyif mysql # DIV for integer division: 
query I rowsort label-7841
SELECT ALL ( + 74 ) + + 3 DIV + 6 AS col0
----
74

skipif mysql # not compatible
query I rowsort label-7841
SELECT ALL ( + 74 ) + + 3 / + 6 AS col0
----
74

query I rowsort
SELECT ALL 93 + 80 + - ( + 28 ) + - - 10
----
155

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7843
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + - 84 + 1 + + 74
----
NULL

skipif mysql # not compatible
query I rowsort label-7843
SELECT DISTINCT + CAST ( NULL AS REAL ) + - 84 + 1 + + 74
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7844
SELECT ALL CASE 99 WHEN - - 60 * + - 81 * + ( 94 ) - 73 THEN NULL WHEN - 50 / NULLIF ( + COUNT( ALL 64 ), + 11 ) THEN - COUNT( * ) * + CAST( - COUNT( * ) AS SIGNED ) END + - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-7844
SELECT ALL CASE 99 WHEN - - 60 * + - 81 * + ( 94 ) - 73 THEN NULL WHEN - 50 / NULLIF ( + COUNT ( ALL 64 ), + 11 ) THEN - COUNT ( * ) * + CAST ( - COUNT ( * ) AS INTEGER ) END + - 37
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7845
SELECT DISTINCT - ( COUNT( * ) ) + 95
----
94

skipif mysql # not compatible
query I rowsort label-7845
SELECT DISTINCT - ( COUNT ( * ) ) + 95
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7846
SELECT DISTINCT 20 * CAST( 1 AS SIGNED ) * - - 90 * 81 AS col2
----
145800

skipif mysql # not compatible
query I rowsort label-7846
SELECT DISTINCT 20 * CAST ( 1 AS INTEGER ) * - - 90 * 81 AS col2
----
145800

query I rowsort
SELECT - 89 col0
----
-89

query I rowsort
SELECT ALL ( - ( + 55 ) ) AS col2
----
-55

query I rowsort
SELECT + 8 + 96
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-7850
SELECT - COALESCE ( COUNT( * ), - 51, - 71 * + 40 * - 73 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7850
SELECT - COALESCE ( COUNT ( * ), - 51, - 71 * + 40 * - 73 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7851
SELECT DISTINCT COUNT( * ) AS col1, + 31 * - 66 AS col1
----
1
-2046

skipif mysql # not compatible
query II rowsort label-7851
SELECT DISTINCT COUNT ( * ) AS col1, + 31 * - 66 AS col1
----
1
-2046

query I rowsort
SELECT - ( - - 13 )
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-7853
SELECT ALL 92 DIV 33 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-7853
SELECT ALL 92 / 33 AS col1
----
2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7855
SELECT - CASE 80 WHEN - 15 THEN + - COUNT( * ) + - + 84 ELSE - 95 END + 44 * - 91 col1
----
-3909

skipif mysql # not compatible
query I rowsort label-7855
SELECT - CASE 80 WHEN - 15 THEN + - COUNT ( * ) + - + 84 ELSE - 95 END + 44 * - 91 col1
----
-3909

query I rowsort
SELECT ALL + ( + - 9 ) - - 6 * + 11 AS col2
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7857
SELECT - CAST( 64 AS SIGNED ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-7857
SELECT - CAST ( 64 AS INTEGER ) AS col0
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7858
SELECT DISTINCT + ( + 93 ) DIV - 66 - + 44 - - COUNT( - ( - 76 ) ) DIV 62 AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-7858
SELECT DISTINCT + ( + 93 ) / - 66 - + 44 - - COUNT ( - ( - 76 ) ) / 62 AS col2
----
-45

query I rowsort
SELECT ALL - 3 * - - ( + 0 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7860
SELECT ALL MAX( DISTINCT - 45 ) * + 44 col0
----
-1980

skipif mysql # not compatible
query I rowsort label-7860
SELECT ALL MAX ( DISTINCT - 45 ) * + 44 col0
----
-1980

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7861
SELECT DISTINCT CAST( + 61 AS SIGNED ) / 20 - + + 42 / 92 - CAST( CASE - COUNT( * ) WHEN 2 - + COUNT( * ) THEN + 57 WHEN 22 THEN 30 + 65 WHEN 8 THEN COUNT( * ) - + 92 * + 12 ELSE - 1 END AS SIGNED ) + - CASE + 56 WHEN - 78 * 54 THEN - 6 / ( - COUNT( DISTINCT - 28 ) ) + 23 WHEN + COALESCE ( COUNT( * ), 98 + 35 * 6, + 35, 65 ) * 10 THEN NULLIF ( 18, COUNT( * ) * 96 ) END * + SUM( CAST( NULL AS SIGNED ) + 52 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7861
SELECT DISTINCT CAST ( + 61 AS INTEGER ) / 20 - + + 42 / 92 - CAST ( CASE - COUNT ( * ) WHEN 2 - + COUNT ( * ) THEN + 57 WHEN 22 THEN 30 + 65 WHEN 8 THEN COUNT ( * ) - + 92 * + 12 ELSE - 1 END AS INTEGER ) + - CASE + 56 WHEN - 78 * 54 THEN - 6 / ( - COUNT ( DISTINCT - 28 ) ) + 23 WHEN + COALESCE ( COUNT ( * ), 98 + 35 * 6, + 35, 65 ) * 10 THEN NULLIF ( 18, COUNT ( * ) * 96 ) END * + SUM ( CAST ( NULL AS INTEGER ) + 52 ) AS col2
----
NULL

query I rowsort
SELECT ALL + NULLIF ( 75, + 88 )
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7863
SELECT - COUNT( * ) DIV + COALESCE ( - 52, + - 11, + 18 + + 55 ) DIV 1
----
0

skipif mysql # not compatible
query I rowsort label-7863
SELECT - COUNT ( * ) / + COALESCE ( - 52, + - 11, + 18 + + 55 ) / 1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7864
SELECT ALL + MAX( - 95 )
----
-95

skipif mysql # not compatible
query I rowsort label-7864
SELECT ALL + MAX ( - 95 )
----
-95

query I rowsort
SELECT + 32 * - + 99 * 67
----
-212256

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7866
SELECT CAST( + 76 AS SIGNED ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-7866
SELECT CAST ( + 76 AS INTEGER ) AS col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7867
SELECT ALL + COALESCE ( + COUNT( * ), 88 )
----
1

skipif mysql # not compatible
query I rowsort label-7867
SELECT ALL + COALESCE ( + COUNT ( * ), 88 )
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7868
SELECT - CASE CAST( NULL AS DECIMAL ) WHEN + + CAST( NULL AS DECIMAL ) THEN 83 * - - 81 END + + + 61 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7868
SELECT - CASE CAST ( NULL AS REAL ) WHEN + + CAST ( NULL AS REAL ) THEN 83 * - - 81 END + + + 61 col2
----
NULL

query I rowsort
SELECT ( - - 31 )
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7870
SELECT - 61 * - - CAST( NULL AS SIGNED ) * + + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-7870
SELECT - 61 * - - CAST ( NULL AS INTEGER ) * + + 36
----
NULL

query II rowsort
SELECT ALL + 97 AS col1, + 82
----
97
82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7872
SELECT ALL + CAST( NULL AS SIGNED ) AS col0, 27 AS col2
----
NULL
27

skipif mysql # not compatible
query II rowsort label-7872
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, 27 AS col2
----
NULL
27

query I rowsort
SELECT ( - - 36 ) col1
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7874
SELECT ALL + COALESCE ( + COUNT( * ), + COUNT( * ), CAST( NULL AS SIGNED ) ), + 64 * + CASE + COUNT( * ) WHEN 14 * + 97 THEN 45 * - 56 END / 36 AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-7874
SELECT ALL + COALESCE ( + COUNT ( * ), + COUNT ( * ), CAST ( NULL AS INTEGER ) ), + 64 * + CASE + COUNT ( * ) WHEN 14 * + 97 THEN 45 * - 56 END / 36 AS col0
----
1
NULL

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

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

query II rowsort
SELECT DISTINCT + - 79 AS col0, - 85 + - + 52 AS col2
----
-79
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-7877
SELECT ALL - + COUNT( * ) * - + COALESCE ( + CASE - 3 WHEN - - 86 * 27 * 97 + - NULLIF ( 41, + 26 ) * 53 THEN - 6 WHEN - 86 THEN + 90 - + 10 * + 66 WHEN 3 + + COUNT( * ) THEN - 44 * ( 57 ) END, - COUNT( * ), 99 ) * 19 - - 97 * + COUNT( * ) + 12 * - 87
----
-966

skipif mysql # not compatible
query I rowsort label-7877
SELECT ALL - + COUNT ( * ) * - + COALESCE ( + CASE - 3 WHEN - - 86 * 27 * 97 + - NULLIF ( 41, + 26 ) * 53 THEN - 6 WHEN - 86 THEN + 90 - + 10 * + 66 WHEN 3 + + COUNT ( * ) THEN - 44 * ( 57 ) END, - COUNT ( * ), 99 ) * 19 - - 97 * + COUNT ( * ) + 12 * - 87
----
-966

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7879
SELECT ALL 88 * - 62 + COUNT( ALL + + 33 ) col1, - 94
----
-5455
-94

skipif mysql # not compatible
query II rowsort label-7879
SELECT ALL 88 * - 62 + COUNT ( ALL + + 33 ) col1, - 94
----
-5455
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7880
SELECT 0 * - - 97 DIV + COALESCE ( + - COALESCE ( - 75, + + COUNT( * ), + 76 + 47 DIV 45 ), + ( ( - CASE - COUNT( * ) WHEN + 81 - 47 * - ( 29 ) THEN - SUM( ALL COALESCE ( + 24, - 0 ) ) + 40 WHEN - COUNT( * ) THEN NULL ELSE COUNT( * ) END ) ) ) + 24 AS col2
----
24

skipif mysql # not compatible
query I rowsort label-7880
SELECT 0 * - - 97 / + COALESCE ( + - COALESCE ( - 75, + + COUNT ( * ), + 76 + 47 / 45 ), + ( ( - CASE - COUNT ( * ) WHEN + 81 - 47 * - ( 29 ) THEN - SUM ( ALL COALESCE ( + 24, - 0 ) ) + 40 WHEN - COUNT ( * ) THEN NULL ELSE COUNT ( * ) END ) ) ) + 24 AS col2
----
24

query I rowsort
SELECT 43 * - - NULLIF ( - - 85, 12 ) - - - 68 - + - ( - 26 ) AS col1
----
3561

query I rowsort
SELECT ALL - + 75 + - - 81 + - COALESCE ( - 58, - 38 ) AS col2
----
64

query II rowsort
SELECT - 10, 15 + 77 AS col2
----
-10
92

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7885
SELECT - COALESCE ( - 84, + + 94 * + NULLIF ( 88, 27 ) + 36 * ( 88 * + ( 59 * + COUNT( * ) ) ), 72 + 77 ) - + 73 col2
----
11

skipif mysql # not compatible
query I rowsort label-7885
SELECT - COALESCE ( - 84, + + 94 * + NULLIF ( 88, 27 ) + 36 * ( 88 * + ( 59 * + COUNT ( * ) ) ), 72 + 77 ) - + 73 col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7886
SELECT SUM( 79 )
----
79

skipif mysql # not compatible
query I rowsort label-7886
SELECT SUM ( 79 )
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7887
SELECT DISTINCT CAST( - 36 AS SIGNED )
----
-36

skipif mysql # not compatible
query I rowsort label-7887
SELECT DISTINCT CAST ( - 36 AS INTEGER )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-7888
SELECT 23 * CASE + 52 WHEN + 10 THEN - COUNT( * ) ELSE + 22 * - 72 END - 59 * + CASE + 76 * 16 WHEN 7 THEN NULL WHEN - 81 * - 9 THEN NULL ELSE - 1 + + 61 END AS col1
----
-39972

skipif mysql # not compatible
query I rowsort label-7888
SELECT 23 * CASE + 52 WHEN + 10 THEN - COUNT ( * ) ELSE + 22 * - 72 END - 59 * + CASE + 76 * 16 WHEN 7 THEN NULL WHEN - 81 * - 9 THEN NULL ELSE - 1 + + 61 END AS col1
----
-39972

query I rowsort
SELECT ALL + ( - 73 ) + - 9
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-7890
SELECT ALL - - 95 + + 12 + 58 DIV + 17 + 82 * - ( 96 )
----
-7762

skipif mysql # not compatible
query I rowsort label-7890
SELECT ALL - - 95 + + 12 + 58 / + 17 + 82 * - ( 96 )
----
-7762

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7891
SELECT ALL + CAST( 48 AS SIGNED )
----
48

skipif mysql # not compatible
query I rowsort label-7891
SELECT ALL + CAST ( 48 AS INTEGER )
----
48

query II rowsort
SELECT DISTINCT + 43, + 13 * 89 AS col2
----
43
1157

query I rowsort
SELECT - 53 * + 71 + + - 33
----
-3796

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7894
SELECT ALL NULLIF ( + 4, - CAST( 66 AS SIGNED ) DIV - 59 * - 40 ) DIV - COUNT( - 76 )
----
-4

skipif mysql # not compatible
query I rowsort label-7894
SELECT ALL NULLIF ( + 4, - CAST ( 66 AS INTEGER ) / - 59 * - 40 ) / - COUNT ( - 76 )
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7895
SELECT ALL + ( - + 64 ) AS col1, + 20 * 77 DIV - + 78 - + 41 * - COUNT( * )
----
-64
22

skipif mysql # not compatible
query II rowsort label-7895
SELECT ALL + ( - + 64 ) AS col1, + 20 * 77 / - + 78 - + 41 * - COUNT ( * )
----
-64
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7896
SELECT CAST( NULL AS SIGNED ) + - + COUNT( * ) + - 85 + + 78
----
NULL

skipif mysql # not compatible
query I rowsort label-7896
SELECT CAST ( NULL AS INTEGER ) + - + COUNT ( * ) + - 85 + + 78
----
NULL

query I rowsort
SELECT - 18 AS col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-7898
SELECT - COUNT( * ) + + SUM( ALL + 78 )
----
77

skipif mysql # not compatible
query I rowsort label-7898
SELECT - COUNT ( * ) + + SUM ( ALL + 78 )
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7899
SELECT - - 38 AS col1, - 46 + + 88 - SUM( - - 35 ) DIV - 53 * COUNT( * )
----
38
42

skipif mysql # not compatible
query II rowsort label-7899
SELECT - - 38 AS col1, - 46 + + 88 - SUM ( - - 35 ) / - 53 * COUNT ( * )
----
38
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7900
SELECT ALL CASE - - 74 WHEN - 76 THEN - COUNT( * ) * 33 END - 15
----
NULL

skipif mysql # not compatible
query I rowsort label-7900
SELECT ALL CASE - - 74 WHEN - 76 THEN - COUNT ( * ) * 33 END - 15
----
NULL

query I rowsort
SELECT 21 * - - 27
----
567

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7902
SELECT COUNT( DISTINCT - 73 ) * COUNT( 97 ) + - 13 - - + ( - 68 ) * - COALESCE ( 47, 20 DIV + 98 + 81 ) AS col0
----
3184

skipif mysql # not compatible
query I rowsort label-7902
SELECT COUNT ( DISTINCT - 73 ) * COUNT ( 97 ) + - 13 - - + ( - 68 ) * - COALESCE ( 47, 20 / + 98 + 81 ) AS col0
----
3184

query I rowsort
SELECT DISTINCT 98 * + - 38 AS col1
----
-3724

onlyif mysql # aggregate syntax: 
query I rowsort label-7904
SELECT COUNT( * ) + - ( - + 61 ) + - 83 col2
----
-21

skipif mysql # not compatible
query I rowsort label-7904
SELECT COUNT ( * ) + - ( - + 61 ) + - 83 col2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-7905
SELECT COUNT( * ) * 37 * + 62
----
2294

skipif mysql # not compatible
query I rowsort label-7905
SELECT COUNT ( * ) * 37 * + 62
----
2294

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

query I rowsort
SELECT DISTINCT - 95 AS col0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-7908
SELECT COUNT( * ) * 79 * - SUM( + 58 ) col1
----
-4582

skipif mysql # not compatible
query I rowsort label-7908
SELECT COUNT ( * ) * 79 * - SUM ( + 58 ) col1
----
-4582

query II rowsort
SELECT 72 * 63 AS col2, - ( - + 85 ) * + 22
----
4536
1870

onlyif mysql # DIV for integer division: 
query II rowsort label-7910
SELECT DISTINCT 38 DIV + - 60 AS col0, ( - 36 )
----
0
-36

skipif mysql # not compatible
query II rowsort label-7910
SELECT DISTINCT 38 / + - 60 AS col0, ( - 36 )
----
0
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7911
SELECT ( + + ( + 36 ) ) - + CASE 4 WHEN 59 * + - 12 * + 99 + 7 * 61 THEN + ( + CAST( 85 AS SIGNED ) ) + - 6 WHEN 60 + 35 * 0 THEN NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7911
SELECT ( + + ( + 36 ) ) - + CASE 4 WHEN 59 * + - 12 * + 99 + 7 * 61 THEN + ( + CAST ( 85 AS INTEGER ) ) + - 6 WHEN 60 + 35 * 0 THEN NULL END col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7912
SELECT ALL ( - 84 ) DIV + 16 + 76 AS col1
----
71

skipif mysql # not compatible
query I rowsort label-7912
SELECT ALL ( - 84 ) / + 16 + 76 AS col1
----
71

query I rowsort
SELECT DISTINCT + 54 + 89 AS col2
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-7914
SELECT ALL - COUNT( * ) + 40 AS col2
----
39

skipif mysql # not compatible
query I rowsort label-7914
SELECT ALL - COUNT ( * ) + 40 AS col2
----
39

onlyif mysql # DIV for integer division: 
query II rowsort label-7915
SELECT 81 DIV - 68 AS col0, + 42
----
-1
42

skipif mysql # not compatible
query II rowsort label-7915
SELECT 81 / - 68 AS col0, + 42
----
-1
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7916
SELECT + 33 * COUNT( * ) - + MIN( + 45 ) - + 81 AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-7916
SELECT + 33 * COUNT ( * ) - + MIN ( + 45 ) - + 81 AS col0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-7917
SELECT - 51 + - - MAX( ALL - - 80 ) col1
----
29

skipif mysql # not compatible
query I rowsort label-7917
SELECT - 51 + - - MAX ( ALL - - 80 ) col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7918
SELECT MAX( - 32 ) - - 91 AS col0
----
59

skipif mysql # not compatible
query I rowsort label-7918
SELECT MAX ( - 32 ) - - 91 AS col0
----
59

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7920
SELECT - 35 DIV - + 54 AS col0, 27 AS col1
----
0
27

skipif mysql # not compatible
query II rowsort label-7920
SELECT - 35 / - + 54 AS col0, 27 AS col1
----
0
27

query I rowsort
SELECT ALL - - NULLIF ( - 20, + COALESCE ( + 39, + - 37 ) ) AS col1
----
-20

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

query I rowsort
SELECT ALL + - 60 + - 13
----
-73

query I rowsort
SELECT + ( ( + 56 ) ) + COALESCE ( 95, - ( + - 23 ) * 66 - - 87 )
----
151

query I rowsort
SELECT ALL + 6 + - 19
----
-13

query I rowsort
SELECT 38 + + - 68 AS col2
----
-30

query I rowsort
SELECT ALL + 25 + + 65 * - 27 + - 16
----
-1746

query I rowsort
SELECT ALL ( 5 ) AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7929
SELECT + 76 * - + 75 + + 70 * + + 67 * - COUNT( * ) * 90
----
-427800

skipif mysql # not compatible
query I rowsort label-7929
SELECT + 76 * - + 75 + + 70 * + + 67 * - COUNT ( * ) * 90
----
-427800

onlyif mysql # aggregate syntax: 
query I rowsort label-7930
SELECT DISTINCT - ( + 16 ) * + 70 + + 40 - + NULLIF ( + SUM( ALL - 93 ), 57 - 15 * - COUNT( * ) ) AS col1
----
-987

skipif mysql # not compatible
query I rowsort label-7930
SELECT DISTINCT - ( + 16 ) * + 70 + + 40 - + NULLIF ( + SUM ( ALL - 93 ), 57 - 15 * - COUNT ( * ) ) AS col1
----
-987

query I rowsort
SELECT DISTINCT - 23 - 46 AS col0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-7932
SELECT ALL + - 55 * + 15 * - + 56 * - - COUNT( * ) AS col2
----
46200

skipif mysql # not compatible
query I rowsort label-7932
SELECT ALL + - 55 * + 15 * - + 56 * - - COUNT ( * ) AS col2
----
46200

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7933
SELECT 7 + + ( - + CASE + MIN( 84 ) WHEN - COALESCE ( + + CAST( NULL AS DECIMAL ), + 88, + 38 - 78 ) THEN NULL WHEN + ( 32 ) THEN + COUNT( * ) + 68 END ) * 17
----
NULL

skipif mysql # not compatible
query I rowsort label-7933
SELECT 7 + + ( - + CASE + MIN ( 84 ) WHEN - COALESCE ( + + CAST ( NULL AS REAL ), + 88, + 38 - 78 ) THEN NULL WHEN + ( 32 ) THEN + COUNT ( * ) + 68 END ) * 17
----
NULL

query I rowsort
SELECT ALL - 90 - - 16
----
-74

query I rowsort
SELECT DISTINCT ( - + 87 )
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7936
SELECT + COUNT( * ) DIV + 24 + 44 DIV - + 73 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7936
SELECT + COUNT ( * ) / + 24 + 44 / - + 73 AS col1
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7938
SELECT DISTINCT SUM( - - 23 )
----
23

skipif mysql # not compatible
query I rowsort label-7938
SELECT DISTINCT SUM ( - - 23 )
----
23

onlyif mysql # DIV for integer division: 
query II rowsort label-7939
SELECT ALL 39 DIV - 76 * - - 76, 51 * 80 AS col0
----
0
4080

skipif mysql # not compatible
query II rowsort label-7939
SELECT ALL 39 / - 76 * - - 76, 51 * 80 AS col0
----
0
4080

query I rowsort
SELECT NULLIF ( + 42, - 14 / 94 * - 94 ) * 95
----
3990

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7941
SELECT 56 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7941
SELECT 56 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 27 + + - 30
----
-3

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7944
SELECT ALL 3 * - ( - - 19 ) * CAST( NULL AS SIGNED ) / - - 87
----
NULL

skipif mysql # not compatible
query I rowsort label-7944
SELECT ALL 3 * - ( - - 19 ) * CAST ( NULL AS INTEGER ) / - - 87
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7945
SELECT 36 DIV ( + 24 )
----
1

skipif mysql # not compatible
query I rowsort label-7945
SELECT 36 / ( + 24 )
----
1

query I rowsort
SELECT 72 * - 30 * + 72
----
-155520

query I rowsort
SELECT 76 col1
----
76

query I rowsort
SELECT ALL 79 * 31 AS col0
----
2449

query II rowsort
SELECT 46 * + COALESCE ( + 94, + - 78 ) AS col0, NULLIF ( + 61, ( 98 ) ) AS col0
----
4324
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7950
SELECT CASE - 97 WHEN 33 * - 31 THEN + COUNT( * ) WHEN - 13 THEN NULL ELSE NULL END * - 91 + + + CAST( + 68 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7950
SELECT CASE - 97 WHEN 33 * - 31 THEN + COUNT ( * ) WHEN - 13 THEN NULL ELSE NULL END * - 91 + + + CAST ( + 68 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7951
SELECT ALL 97 + - COUNT( * ) + + 10 AS col2
----
106

skipif mysql # not compatible
query I rowsort label-7951
SELECT ALL 97 + - COUNT ( * ) + + 10 AS col2
----
106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7952
SELECT ALL 73 + - ( - + 54 ) * + CASE - 48 WHEN - CAST( NULL AS SIGNED ) THEN - + 78 - 97 * ( - ( + COUNT( * ) ) ) WHEN 20 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7952
SELECT ALL 73 + - ( - + 54 ) * + CASE - 48 WHEN - CAST ( NULL AS INTEGER ) THEN - + 78 - 97 * ( - ( + COUNT ( * ) ) ) WHEN 20 THEN NULL END
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7954
SELECT DISTINCT 61 * CAST( - COUNT( * ) AS SIGNED ) * + 2 + - 81
----
-203

skipif mysql # not compatible
query I rowsort label-7954
SELECT DISTINCT 61 * CAST ( - COUNT ( * ) AS INTEGER ) * + 2 + - 81
----
-203

onlyif mysql # aggregate syntax: 
query I rowsort label-7955
SELECT ALL 35 * - - ( 12 ) + - - 82 * + COUNT( * ) + + 88 + - ( 31 )
----
559

skipif mysql # not compatible
query I rowsort label-7955
SELECT ALL 35 * - - ( 12 ) + - - 82 * + COUNT ( * ) + + 88 + - ( 31 )
----
559

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7956
SELECT DISTINCT CAST( NULL AS SIGNED ) * - - 74 + - + CASE 0 WHEN + COUNT( * ) THEN - COALESCE ( - COUNT( * ), 19 + 76, 37 ) + COUNT( * ) WHEN + 56 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7956
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - - 74 + - + CASE 0 WHEN + COUNT ( * ) THEN - COALESCE ( - COUNT ( * ), 19 + 76, 37 ) + COUNT ( * ) WHEN + 56 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7957
SELECT + NULLIF ( COUNT( * ), + - 89 * + - 1 * - 15 ) * + 79
----
79

skipif mysql # not compatible
query I rowsort label-7957
SELECT + NULLIF ( COUNT ( * ), + - 89 * + - 1 * - 15 ) * + 79
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7958
SELECT DISTINCT 79 * + 49 + + SUM( DISTINCT 17 )
----
3888

skipif mysql # not compatible
query I rowsort label-7958
SELECT DISTINCT 79 * + 49 + + SUM ( DISTINCT 17 )
----
3888

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

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

query I rowsort
SELECT + CASE - 51 WHEN + 96 THEN NULL ELSE - - 73 END
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7961
SELECT 1 DIV 85 + - MAX( ALL + + 18 ) + NULLIF ( MIN( + 11 ), 49 ) * + 19 + 55 AS col1
----
246

skipif mysql # not compatible
query I rowsort label-7961
SELECT 1 / 85 + - MAX ( ALL + + 18 ) + NULLIF ( MIN ( + 11 ), 49 ) * + 19 + 55 AS col1
----
246

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7962
SELECT ALL - COUNT( * ) DIV + 22 * 72 - + 85
----
-85

skipif mysql # not compatible
query I rowsort label-7962
SELECT ALL - COUNT ( * ) / + 22 * 72 - + 85
----
-85

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7964
SELECT ALL + 14 * + COUNT( * ) + + ( - 56 ) * + 77 - - 92, 73 * + 51 AS col1
----
-4206
3723

skipif mysql # not compatible
query II rowsort label-7964
SELECT ALL + 14 * + COUNT ( * ) + + ( - 56 ) * + 77 - - 92, 73 * + 51 AS col1
----
-4206
3723

query I rowsort
SELECT + 72 * 39 AS col2
----
2808

query I rowsort
SELECT DISTINCT + - NULLIF ( + ( 54 ), + ( - 98 ) ) AS col2
----
-54

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7969
SELECT ALL + 28 * 51 + - 8 - COUNT( * ) AS col1
----
1419

skipif mysql # not compatible
query I rowsort label-7969
SELECT ALL + 28 * 51 + - 8 - COUNT ( * ) AS col1
----
1419

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7970
SELECT DISTINCT + + 47, ( 70 ) + - COALESCE ( - - 82, + 49 ) + - - 48 + + + 75 * 91 * 13 * MIN( DISTINCT - CAST( - 81 AS SIGNED ) ) AS col0
----
47
7186761

skipif mysql # not compatible
query II rowsort label-7970
SELECT DISTINCT + + 47, ( 70 ) + - COALESCE ( - - 82, + 49 ) + - - 48 + + + 75 * 91 * 13 * MIN ( DISTINCT - CAST ( - 81 AS INTEGER ) ) AS col0
----
47
7186761

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7971
SELECT - CAST( NULL AS SIGNED ) * - 9 * 72
----
NULL

skipif mysql # not compatible
query I rowsort label-7971
SELECT - CAST ( NULL AS INTEGER ) * - 9 * 72
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7972
SELECT + COUNT( ALL - 6 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7972
SELECT + COUNT ( ALL - 6 ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7973
SELECT - - 99 DIV + 93
----
1

skipif mysql # not compatible
query I rowsort label-7973
SELECT - - 99 / + 93
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7974
SELECT + + MIN( 84 ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-7974
SELECT + + MIN ( 84 ) AS col1
----
84

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

query I rowsort
SELECT + 1 - - 24 - - 84
----
109

query II rowsort
SELECT ALL - 52 AS col2, 23 AS col1
----
-52
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7978
SELECT - 24 * CASE WHEN NOT ( 43 ) <= + CASE COUNT( * ) WHEN + COUNT( * ) * - 94 THEN + 30 END * - 30 + 77 THEN NULL WHEN NOT 40 * - 72 IN ( ( 37 ) * CAST( NULL AS SIGNED ) ) THEN + MAX( + 21 ) + 40 ELSE - 19 + - 14 END * + ( 29 ) AS col1
----
22968

skipif mysql # not compatible
query I rowsort label-7978
SELECT - 24 * CASE WHEN NOT ( 43 ) <= + CASE COUNT ( * ) WHEN + COUNT ( * ) * - 94 THEN + 30 END * - 30 + 77 THEN NULL WHEN NOT 40 * - 72 IN ( ( 37 ) * CAST ( NULL AS INTEGER ) ) THEN + MAX ( + 21 ) + 40 ELSE - 19 + - 14 END * + ( 29 ) AS col1
----
22968

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

query I rowsort
SELECT DISTINCT + 89 * + 25
----
2225

onlyif mysql # aggregate syntax: 
query I rowsort label-7981
SELECT ALL COUNT( - 19 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-7981
SELECT ALL COUNT ( - 19 ) col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7982
SELECT + 33 * + 33 / - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7982
SELECT + 33 * + 33 / - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - 92 + + - 81
----
-173

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7984
SELECT - 98 - - COUNT( * ) * - CASE 67 WHEN - CAST( MAX( + ( + 61 ) ) AS SIGNED ) * - - 25 THEN 59 - 82 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7984
SELECT - 98 - - COUNT ( * ) * - CASE 67 WHEN - CAST ( MAX ( + ( + 61 ) ) AS INTEGER ) * - - 25 THEN 59 - 82 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL NULLIF ( + 57, - 43 )
----
57

query I rowsort
SELECT DISTINCT + 90 * - ( + 36 ) AS col0
----
-3240

onlyif mysql # aggregate syntax: 
query I rowsort label-7987
SELECT - SUM( ALL - 1 )
----
1

skipif mysql # not compatible
query I rowsort label-7987
SELECT - SUM ( ALL - 1 )
----
1

query I rowsort
SELECT ALL - 72 + 39 col0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-7989
SELECT ALL + 17 + + + 11 / + - ( + 50 ) + - CASE - + MIN( + 13 ) WHEN 91 THEN - 24 + 77 END * 4 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7989
SELECT ALL + 17 + + + 11 / + - ( + 50 ) + - CASE - + MIN ( + 13 ) WHEN 91 THEN - 24 + 77 END * 4 AS col0
----
NULL

query I rowsort
SELECT - 38 + - 43 AS col0
----
-81

query I rowsort
SELECT ALL - 72 + - 95 * + 50
----
-4822

onlyif mysql # aggregate syntax: 
query I rowsort label-7992
SELECT ALL COUNT( * ) + + COUNT( * ) + 61 * ( + MAX( ALL - + 29 ) ) col0
----
-1767

skipif mysql # not compatible
query I rowsort label-7992
SELECT ALL COUNT ( * ) + + COUNT ( * ) + 61 * ( + MAX ( ALL - + 29 ) ) col0
----
-1767

onlyif mysql # aggregate syntax: 
query I rowsort label-7993
SELECT - 2 * COALESCE ( + 15, + 25 + + MIN( - - 62 ) + COUNT( * ) )
----
-30

skipif mysql # not compatible
query I rowsort label-7993
SELECT - 2 * COALESCE ( + 15, + 25 + + MIN ( - - 62 ) + COUNT ( * ) )
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7994
SELECT DISTINCT 6 DIV 64 * - 77 + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-7994
SELECT DISTINCT 6 / 64 * - 77 + + COUNT ( * )
----
1

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7996
SELECT - + 61 * + - COUNT( * ) AS col0, - 21 AS col1
----
61
-21

skipif mysql # not compatible
query II rowsort label-7996
SELECT - + 61 * + - COUNT ( * ) AS col0, - 21 AS col1
----
61
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7997
SELECT - 56 - + CAST( + 5 AS SIGNED )
----
-61

skipif mysql # not compatible
query I rowsort label-7997
SELECT - 56 - + CAST ( + 5 AS INTEGER )
----
-61

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7999
SELECT + 69 + + 74 * + 82 - - 1 * - COALESCE ( - 57, + + SUM( DISTINCT - 17 ), + 43 DIV - COUNT( * ), 39 )
----
6194

skipif mysql # not compatible
query I rowsort label-7999
SELECT + 69 + + 74 * + 82 - - 1 * - COALESCE ( - 57, + + SUM ( DISTINCT - 17 ), + 43 / - COUNT ( * ), 39 )
----
6194

query I rowsort
SELECT ALL + 18 col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8001
SELECT + MAX( ALL 17 )
----
17

skipif mysql # not compatible
query I rowsort label-8001
SELECT + MAX ( ALL 17 )
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8002
SELECT DISTINCT + + 88 * - 42 / - - COUNT( * ) - + - 96 - CAST( NULL AS SIGNED ) * 96 * - 16
----
NULL

skipif mysql # not compatible
query I rowsort label-8002
SELECT DISTINCT + + 88 * - 42 / - - COUNT ( * ) - + - 96 - CAST ( NULL AS INTEGER ) * 96 * - 16
----
NULL

query I rowsort
SELECT DISTINCT + 95 col1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8004
SELECT + - MIN( ALL + 54 ) * - + 74 + - 15 + + ( + 52 ) - - COUNT( * ) AS col2
----
4034

skipif mysql # not compatible
query I rowsort label-8004
SELECT + - MIN ( ALL + 54 ) * - + 74 + - 15 + + ( + 52 ) - - COUNT ( * ) AS col2
----
4034

onlyif mysql # aggregate syntax: 
query I rowsort label-8005
SELECT + + 29 - ( - - COUNT( * ) ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-8005
SELECT + + 29 - ( - - COUNT ( * ) ) AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8006
SELECT ALL - - COUNT( * ) * + MIN( + 97 ) - + 20 AS col0
----
77

skipif mysql # not compatible
query I rowsort label-8006
SELECT ALL - - COUNT ( * ) * + MIN ( + 97 ) - + 20 AS col0
----
77

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8008
SELECT 59 * COUNT( * ) + - 37
----
22

skipif mysql # not compatible
query I rowsort label-8008
SELECT 59 * COUNT ( * ) + - 37
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-8009
SELECT + - 54 + - 20 DIV - 63 + + - 45 AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-8009
SELECT + - 54 + - 20 / - 63 + + - 45 AS col0
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-8010
SELECT + 72 DIV - 11 + 73 AS col2
----
67

skipif mysql # not compatible
query I rowsort label-8010
SELECT + 72 / - 11 + 73 AS col2
----
67

query I rowsort
SELECT + 99 + - + 31 + + ( 70 ) + - 45 * COALESCE ( + + 52, + 59 ) * + - 31
----
72678

query II rowsort
SELECT ALL + 82 * + 42, - 48 AS col1
----
3444
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8013
SELECT DISTINCT + CAST( ( - 14 ) AS SIGNED ) DIV - COUNT( * ) + - 13 + + 14
----
15

skipif mysql # not compatible
query I rowsort label-8013
SELECT DISTINCT + CAST ( ( - 14 ) AS INTEGER ) / - COUNT ( * ) + - 13 + + 14
----
15

query I rowsort
SELECT + - 2 * + 70 * + 13 + + + 62 AS col2
----
-1758

onlyif mysql # aggregate syntax: 
query I rowsort label-8015
SELECT 44 * - 67 * - COUNT( * ) + 23
----
2971

skipif mysql # not compatible
query I rowsort label-8015
SELECT 44 * - 67 * - COUNT ( * ) + 23
----
2971

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8017
SELECT ALL COUNT( * ) * + - MAX( DISTINCT - 95 ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-8017
SELECT ALL COUNT ( * ) * + - MAX ( DISTINCT - 95 ) AS col2
----
95

query I rowsort
SELECT - ( 91 ) AS col1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8019
SELECT COUNT( - + 6 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8019
SELECT COUNT ( - + 6 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8020
SELECT + 68 DIV 76 DIV + 50
----
0

skipif mysql # not compatible
query I rowsort label-8020
SELECT + 68 / 76 / + 50
----
0

query I rowsort
SELECT DISTINCT - 40 + 42
----
2

query I rowsort
SELECT ALL + 85 + 35 + - 98 AS col2
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8023
SELECT DISTINCT COALESCE ( + 54, - 76 - + 58 + + 63 - + COUNT( * ) + - ( + 31 ) + - + CAST( - 46 AS SIGNED ) * 92 DIV - COALESCE ( + 41 DIV 54 + + 9, 43, + 75 + NULLIF ( - 50, - COUNT( ALL 28 ) * - MIN( 60 * 38 ) ), - AVG ( DISTINCT + 15 ) ) * - 48 * - 26, 58, - 69 + ( + 96 ) DIV SUM( DISTINCT 1 ) ) + 89 col1
----
143

skipif mysql # not compatible
query I rowsort label-8023
SELECT DISTINCT COALESCE ( + 54, - 76 - + 58 + + 63 - + COUNT ( * ) + - ( + 31 ) + - + CAST ( - 46 AS INTEGER ) * 92 / - COALESCE ( + 41 / 54 + + 9, 43, + 75 + NULLIF ( - 50, - COUNT ( ALL 28 ) * - MIN ( 60 * 38 ) ), - AVG ( DISTINCT + 15 ) ) * - 48 * - 26, 58, - 69 + ( + 96 ) / SUM ( DISTINCT 1 ) ) + 89 col1
----
143

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

query I rowsort
SELECT - 14 * 69
----
-966

query II rowsort
SELECT - 8 AS col2, 52 AS col1
----
-8
52

query I rowsort
SELECT DISTINCT - 41 + + + 1
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-8028
SELECT 0 * + 82 DIV ( 54 )
----
0

skipif mysql # not compatible
query I rowsort label-8028
SELECT 0 * + 82 / ( 54 )
----
0

query I rowsort
SELECT 6 + 42 AS col1
----
48

query I rowsort
SELECT ALL - 41 - + 2 AS col1
----
-43

query I rowsort
SELECT 87 + - - 54 * - 58 AS col1
----
-3045

query I rowsort
SELECT 90 * 13
----
1170

query I rowsort
SELECT 13 - - 40
----
53

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8035
SELECT DISTINCT - - 91 DIV - 16 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-8035
SELECT DISTINCT - - 91 / - 16 AS col1
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8036
SELECT ALL - 60 - - CASE + 96 WHEN + ( - ( + 86 ) ) THEN NULL WHEN 65 * COUNT( ALL + 62 ) + - - 97 - 8 - 37 DIV 86 THEN NULL ELSE - 26 DIV + 43 END
----
-60

skipif mysql # not compatible
query I rowsort label-8036
SELECT ALL - 60 - - CASE + 96 WHEN + ( - ( + 86 ) ) THEN NULL WHEN 65 * COUNT ( ALL + 62 ) + - - 97 - 8 - 37 / 86 THEN NULL ELSE - 26 / + 43 END
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8037
SELECT ALL NULLIF ( CAST( NULL AS SIGNED ), SUM( - 64 ) ) * MAX( + - 71 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8037
SELECT ALL NULLIF ( CAST ( NULL AS INTEGER ), SUM ( - 64 ) ) * MAX ( + - 71 )
----
NULL

query I rowsort
SELECT 20 + 31 AS col2
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-8039
SELECT DISTINCT - + 24 DIV - 8 + + + 9 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-8039
SELECT DISTINCT - + 24 / - 8 + + + 9 AS col0
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8040
SELECT - - 48 * + + CAST( + 92 AS SIGNED ) + + COUNT( * ) + 55, 26 AS col0
----
4472
26

skipif mysql # not compatible
query II rowsort label-8040
SELECT - - 48 * + + CAST ( + 92 AS INTEGER ) + + COUNT ( * ) + 55, 26 AS col0
----
4472
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8041
SELECT ALL - 94 DIV + 72 * - COUNT( * ) + + 95
----
96

skipif mysql # not compatible
query I rowsort label-8041
SELECT ALL - 94 / + 72 * - COUNT ( * ) + + 95
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8042
SELECT - COUNT( * ) * + 91 - - 29 + + 96
----
34

skipif mysql # not compatible
query I rowsort label-8042
SELECT - COUNT ( * ) * + 91 - - 29 + + 96
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8043
SELECT - 57 / - CASE SUM( - + 79 ) WHEN - COUNT( * ) THEN + + ( - 38 ) WHEN - + 93 THEN - COUNT( * ) * + 86 / + 45 ELSE NULL END + - 72
----
NULL

skipif mysql # not compatible
query I rowsort label-8043
SELECT - 57 / - CASE SUM ( - + 79 ) WHEN - COUNT ( * ) THEN + + ( - 38 ) WHEN - + 93 THEN - COUNT ( * ) * + 86 / + 45 ELSE NULL END + - 72
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8044
SELECT ALL 0 * + 69 * 94 * + COALESCE ( + 13, - CASE + 2 WHEN + ( - ( + + 76 ) ) / - 36 THEN + ( 97 ) + CASE + MAX( 78 ) WHEN 77 + AVG ( ALL 18 ) THEN + 63 - ( 22 ) END WHEN COUNT( * ) THEN 91 * + 15 ELSE NULL END ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8044
SELECT ALL 0 * + 69 * 94 * + COALESCE ( + 13, - CASE + 2 WHEN + ( - ( + + 76 ) ) / - 36 THEN + ( 97 ) + CASE + MAX ( 78 ) WHEN 77 + AVG ( ALL 18 ) THEN + 63 - ( 22 ) END WHEN COUNT ( * ) THEN 91 * + 15 ELSE NULL END ) + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + + 46 col0
----
46

query II rowsort
SELECT + 59 AS col2, + 91
----
59
91

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

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

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

query I rowsort
SELECT + 97 * + 80 col1
----
7760

query I rowsort
SELECT DISTINCT - + ( 87 )
----
-87

query I rowsort
SELECT - ( - 77 )
----
77

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8053
SELECT - 63 + + - 42 DIV - 53
----
-63

skipif mysql # not compatible
query I rowsort label-8053
SELECT - 63 + + - 42 / - 53
----
-63

query II rowsort
SELECT + 29 AS col0, ( + 89 ) AS col1
----
29
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8055
SELECT DISTINCT 22 + COUNT( * ) * - 90 AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-8055
SELECT DISTINCT 22 + COUNT ( * ) * - 90 AS col1
----
-68

query I rowsort
SELECT ALL 80 + + 43
----
123

query I rowsort
SELECT ALL 57 + + 95 col2
----
152

query II rowsort
SELECT ALL 96, - 61 * + 40 + + 94 col0
----
96
-2346

query I rowsort
SELECT DISTINCT 9 * 82 * 80
----
59040

query I rowsort
SELECT ALL 21 + + 61 * - + 86
----
-5225

onlyif mysql # aggregate syntax: 
query II rowsort label-8061
SELECT DISTINCT 53 AS col0, + 40 + - COUNT( * )
----
53
39

skipif mysql # not compatible
query II rowsort label-8061
SELECT DISTINCT 53 AS col0, + 40 + - COUNT ( * )
----
53
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8062
SELECT 55 + + MIN( ALL - 12 ) + - + 96 * - 48
----
4651

skipif mysql # not compatible
query I rowsort label-8062
SELECT 55 + + MIN ( ALL - 12 ) + - + 96 * - 48
----
4651

onlyif mysql # aggregate syntax: 
query I rowsort label-8063
SELECT ALL 14 * - - COUNT( * ) AS col0
----
14

skipif mysql # not compatible
query I rowsort label-8063
SELECT ALL 14 * - - COUNT ( * ) AS col0
----
14

query I rowsort
SELECT DISTINCT 73 * 83 AS col0
----
6059

onlyif mysql # aggregate syntax: 
query I rowsort label-8065
SELECT SUM( ALL - 51 ) + + 32
----
-19

skipif mysql # not compatible
query I rowsort label-8065
SELECT SUM ( ALL - 51 ) + + 32
----
-19

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8067
SELECT 10 - - COUNT( ALL + + 25 ) * 93 * + 36
----
3358

skipif mysql # not compatible
query I rowsort label-8067
SELECT 10 - - COUNT ( ALL + + 25 ) * 93 * + 36
----
3358

onlyif mysql # aggregate syntax: 
query II rowsort label-8068
SELECT ALL + 91 - + + 74 AS col2, - 28 * + - MAX( + 82 ) * + - 49 + - 63 AS col0
----
17
-112567

skipif mysql # not compatible
query II rowsort label-8068
SELECT ALL + 91 - + + 74 AS col2, - 28 * + - MAX ( + 82 ) * + - 49 + - 63 AS col0
----
17
-112567

query I rowsort
SELECT ALL 73 col2
----
73

query II rowsort
SELECT 91 col1, + 72
----
91
72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8071
SELECT - CAST( NULL AS SIGNED ) AS col0, 26
----
NULL
26

skipif mysql # not compatible
query II rowsort label-8071
SELECT - CAST ( NULL AS INTEGER ) AS col0, 26
----
NULL
26

query I rowsort
SELECT 45 + 61 + - 58 + 50
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8073
SELECT - 79 * CAST( - + 75 AS SIGNED )
----
5925

skipif mysql # not compatible
query I rowsort label-8073
SELECT - 79 * CAST ( - + 75 AS INTEGER )
----
5925

onlyif mysql # aggregate syntax: 
query I rowsort label-8074
SELECT - + 58 * CASE - + 34 WHEN - 88 * + + COALESCE ( + - ( + 75 ), - 46, + 74 ) - ( + 37 ) - - 27 THEN COUNT( ALL - 39 ) WHEN 15 THEN 64 END + + ( 74 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8074
SELECT - + 58 * CASE - + 34 WHEN - 88 * + + COALESCE ( + - ( + 75 ), - 46, + 74 ) - ( + 37 ) - - 27 THEN COUNT ( ALL - 39 ) WHEN 15 THEN 64 END + + ( 74 )
----
NULL

query I rowsort
SELECT + - 38
----
-38

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

skipif mysql # not compatible
query II rowsort label-8076
SELECT ALL - 25 AS col0, COUNT ( * ) * - - 21
----
-25
21

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8078
SELECT NULLIF ( 87, 63 ) * + 72 + + 69 + CAST( - 14 AS SIGNED ) DIV + COUNT( DISTINCT 3 )
----
6319

skipif mysql # not compatible
query I rowsort label-8078
SELECT NULLIF ( 87, 63 ) * + 72 + + 69 + CAST ( - 14 AS INTEGER ) / + COUNT ( DISTINCT 3 )
----
6319

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8079
SELECT CAST( NULL AS SIGNED ) - - - 14 + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-8079
SELECT CAST ( NULL AS INTEGER ) - - - 14 + 41
----
NULL

query I rowsort
SELECT ALL + 66 + - 43 AS col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8081
SELECT DISTINCT - - MIN( - 54 ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-8081
SELECT DISTINCT - - MIN ( - 54 ) AS col2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-8082
SELECT - COUNT( * ) + - 82 AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-8082
SELECT - COUNT ( * ) + - 82 AS col0
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-8083
SELECT + 25 DIV - 67 - 27
----
-27

skipif mysql # not compatible
query I rowsort label-8083
SELECT + 25 / - 67 - 27
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8084
SELECT ALL + COUNT( * ) + CAST( + 96 AS SIGNED ) * 16
----
1537

skipif mysql # not compatible
query I rowsort label-8084
SELECT ALL + COUNT ( * ) + CAST ( + 96 AS INTEGER ) * 16
----
1537

query I rowsort
SELECT - 61 * - 95
----
5795

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8086
SELECT + 50 * - - 33 + + SUM( DISTINCT CAST( + 85 AS SIGNED ) ) * + 84 + + 56 + ( + + 28 ) AS col2, + 37 * + 0
----
8874
0

skipif mysql # not compatible
query II rowsort label-8086
SELECT + 50 * - - 33 + + SUM ( DISTINCT CAST ( + 85 AS INTEGER ) ) * + 84 + + 56 + ( + + 28 ) AS col2, + 37 * + 0
----
8874
0

query II rowsort
SELECT DISTINCT + 31 * + 12 AS col1, + 0
----
372
0

query I rowsort
SELECT 56 + 75 + - - 1 + + 5 + - + 61 * + 62 * + - 76 AS col0
----
287569

query I rowsort
SELECT ALL 74 * 90
----
6660

query II rowsort
SELECT ALL 33 * + + 87 AS col2, - 70
----
2871
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-8091
SELECT 65 + - - COUNT( * ) + - - 45
----
111

skipif mysql # not compatible
query I rowsort label-8091
SELECT 65 + - - COUNT ( * ) + - - 45
----
111

query I rowsort
SELECT ALL - 86 + + - 23 + - 22
----
-131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8093
SELECT + 95 * - 4 + + + 31 * - CAST( 42 AS SIGNED ) DIV COUNT( * ) col2
----
-1682

skipif mysql # not compatible
query I rowsort label-8093
SELECT + 95 * - 4 + + + 31 * - CAST ( 42 AS INTEGER ) / COUNT ( * ) col2
----
-1682

query I rowsort
SELECT - 3 * ( 35 ) AS col1
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-8095
SELECT + COALESCE ( - 42, - 35, COUNT( * ) * + 78 ) * - 73
----
3066

skipif mysql # not compatible
query I rowsort label-8095
SELECT + COALESCE ( - 42, - 35, COUNT ( * ) * + 78 ) * - 73
----
3066

onlyif mysql # aggregate syntax: 
query I rowsort label-8096
SELECT - COUNT( * ) + + 77 - - 47
----
123

skipif mysql # not compatible
query I rowsort label-8096
SELECT - COUNT ( * ) + + 77 - - 47
----
123

query I rowsort
SELECT - 3 AS col0
----
-3

query I rowsort
SELECT + 85 + - + 85 AS col2
----
0

query I rowsort
SELECT - 57 col1
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-8100
SELECT + 61 + MIN( ALL - 81 ) + 9
----
-11

skipif mysql # not compatible
query I rowsort label-8100
SELECT + 61 + MIN ( ALL - 81 ) + 9
----
-11

query I rowsort
SELECT + 79 * + + 39 AS col1
----
3081

query I rowsort
SELECT ALL NULLIF ( + 7, 83 ) col2
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-8103
SELECT DISTINCT COUNT( * ) * 59 * + 24 AS col2, - 53 AS col0
----
1416
-53

skipif mysql # not compatible
query II rowsort label-8103
SELECT DISTINCT COUNT ( * ) * 59 * + 24 AS col2, - 53 AS col0
----
1416
-53

query I rowsort
SELECT + 66 + 84
----
150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8105
SELECT DISTINCT NULLIF ( + 54, 7 * - - NULLIF ( + ( + 71 ), - - NULLIF ( + 47, - 37 ) * - COUNT( * ) / - 29 + + 72 ) + 98 * + COALESCE ( - CASE COUNT( * ) WHEN - 75 / NULLIF ( ( COUNT( * ) ) * 73, 67 * - 20 ) THEN + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + - 66 WHEN + 99 THEN + 9 WHEN 38 + + 15 THEN NULL ELSE NULL END, ( + AVG ( - 17 ) ) ) ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-8105
SELECT DISTINCT NULLIF ( + 54, 7 * - - NULLIF ( + ( + 71 ), - - NULLIF ( + 47, - 37 ) * - COUNT ( * ) / - 29 + + 72 ) + 98 * + COALESCE ( - CASE COUNT ( * ) WHEN - 75 / NULLIF ( ( COUNT ( * ) ) * 73, 67 * - 20 ) THEN + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + - 66 WHEN + 99 THEN + 9 WHEN 38 + + 15 THEN NULL ELSE NULL END, ( + AVG ( - 17 ) ) ) ) AS col1
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-8106
SELECT ALL + 24 - + + 52 - COUNT( * ) - + 72 * + 20 AS col2, 24
----
-1469
24

skipif mysql # not compatible
query II rowsort label-8106
SELECT ALL + 24 - + + 52 - COUNT ( * ) - + 72 * + 20 AS col2, 24
----
-1469
24

query I rowsort
SELECT DISTINCT ( + 38 ) * + 78
----
2964

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8109
SELECT - NULLIF ( 88, - - 12 + + 7 + + - 46 + 4 * COUNT( * ) * + + MIN( DISTINCT 80 ) )
----
-88

skipif mysql # not compatible
query I rowsort label-8109
SELECT - NULLIF ( 88, - - 12 + + 7 + + - 46 + 4 * COUNT ( * ) * + + MIN ( DISTINCT 80 ) )
----
-88

query I rowsort
SELECT + 93 - - 6 * - 64 col1
----
-291

query I rowsort
SELECT + - 21 * + + 79 AS col1
----
-1659

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8112
SELECT DISTINCT - 10 * + + COUNT( * ) * + - 73 DIV - COUNT( * ) col2
----
-730

skipif mysql # not compatible
query I rowsort label-8112
SELECT DISTINCT - 10 * + + COUNT ( * ) * + - 73 / - COUNT ( * ) col2
----
-730

query I rowsort
SELECT + + 47 * + - 62 AS col0
----
-2914

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8114
SELECT - ( - CASE - 98 WHEN - 49 + - - 60 * + - 83 THEN 24 WHEN - COALESCE ( - COUNT( * ), 41 * 69 + + - 62 + 75 - 17 ) + + CAST( NULL AS SIGNED ) * 45 THEN - CASE - 44 WHEN + 43 * - 18 THEN NULL WHEN - 27 THEN - 60 + - 64 ELSE 42 END * 80 WHEN 14 THEN NULL ELSE NULL END ) * 74 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8114
SELECT - ( - CASE - 98 WHEN - 49 + - - 60 * + - 83 THEN 24 WHEN - COALESCE ( - COUNT ( * ), 41 * 69 + + - 62 + 75 - 17 ) + + CAST ( NULL AS INTEGER ) * 45 THEN - CASE - 44 WHEN + 43 * - 18 THEN NULL WHEN - 27 THEN - 60 + - 64 ELSE 42 END * 80 WHEN 14 THEN NULL ELSE NULL END ) * 74 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8115
SELECT ALL CAST( 8 AS SIGNED ) + - ( + 33 ) * - 81 * - 8
----
-21376

skipif mysql # not compatible
query I rowsort label-8115
SELECT ALL CAST ( 8 AS INTEGER ) + - ( + 33 ) * - 81 * - 8
----
-21376

onlyif mysql # DIV for integer division: 
query I rowsort label-8116
SELECT + 52 + + NULLIF ( - 0, + 26 ) DIV - ( 35 ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-8116
SELECT + 52 + + NULLIF ( - 0, + 26 ) / - ( 35 ) AS col2
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8117
SELECT DISTINCT 44 * - 58 * - + 88 * - COALESCE ( + 77, + CAST( NULL AS SIGNED ) + - 79 ) + 46 AS col2
----
-17292306

skipif mysql # not compatible
query I rowsort label-8117
SELECT DISTINCT 44 * - 58 * - + 88 * - COALESCE ( + 77, + CAST ( NULL AS INTEGER ) + - 79 ) + 46 AS col2
----
-17292306

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8118
SELECT ALL + + 19 * COALESCE ( + + 74, CASE + 37 WHEN + 98 THEN - COALESCE ( - ( 7 ), ( - MIN( DISTINCT - 35 ) ) ) ELSE CAST( NULL AS SIGNED ) END ) + CASE WHEN NOT ( NULL ) > + CASE - 41 WHEN + 49 THEN NULL WHEN 14 THEN - 34 ELSE NULL END THEN + 59 / 47 + 61 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8118
SELECT ALL + + 19 * COALESCE ( + + 74, CASE + 37 WHEN + 98 THEN - COALESCE ( - ( 7 ), ( - MIN ( DISTINCT - 35 ) ) ) ELSE CAST ( NULL AS INTEGER ) END ) + CASE WHEN NOT ( NULL ) > + CASE - 41 WHEN + 49 THEN NULL WHEN 14 THEN - 34 ELSE NULL END THEN + 59 / 47 + 61 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8119
SELECT + + 17 * - - 15 + - 38 AS col0, - NULLIF ( + COUNT( * ), + - 38 )
----
217
-1

skipif mysql # not compatible
query II rowsort label-8119
SELECT + + 17 * - - 15 + - 38 AS col0, - NULLIF ( + COUNT ( * ), + - 38 )
----
217
-1

query I rowsort
SELECT + + 68 AS col2
----
68

query I rowsort
SELECT ALL 89 * - 10 * + + 94 + + ( - 18 )
----
-83678

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8122
SELECT - - 65 + - + ( - 96 ) + + + CAST( - 22 AS SIGNED )
----
139

skipif mysql # not compatible
query I rowsort label-8122
SELECT - - 65 + - + ( - 96 ) + + + CAST ( - 22 AS INTEGER )
----
139

query I rowsort
SELECT + 54 * + ( - 52 ) AS col0
----
-2808

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8124
SELECT DISTINCT - 59 * - - CAST( NULL AS SIGNED ) + 36 * - 88 / - 38 + + 65 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8124
SELECT DISTINCT - 59 * - - CAST ( NULL AS INTEGER ) + 36 * - 88 / - 38 + + 65 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8125
SELECT ALL + ( - + CASE SUM( ALL 8 ) WHEN - ( 46 ) * - 51 THEN - 70 * - - 34 WHEN + 31 + - - CAST( 48 AS SIGNED ) / + 64 THEN + 31 + - ( + 12 ) * 45 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8125
SELECT ALL + ( - + CASE SUM ( ALL 8 ) WHEN - ( 46 ) * - 51 THEN - 70 * - - 34 WHEN + 31 + - - CAST ( 48 AS INTEGER ) / + 64 THEN + 31 + - ( + 12 ) * 45 END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8126
SELECT - COALESCE ( - AVG ( DISTINCT + - 99 ), - 66 + - 83 ) / + + 8 + + + CASE - + 21 WHEN ( + COUNT( DISTINCT + - 11 ) ) THEN + - 65 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8126
SELECT - COALESCE ( - AVG ( DISTINCT + - 99 ), - 66 + - 83 ) / + + 8 + + + CASE - + 21 WHEN ( + COUNT ( DISTINCT + - 11 ) ) THEN + - 65 END
----
NULL

query I rowsort
SELECT ALL 29 * + 55 - - 69 + - 85 AS col2
----
1579

query II rowsort
SELECT DISTINCT + 4, 4 * - - NULLIF ( + - 99, - 73 ) AS col1
----
4
-396

query I rowsort
SELECT NULLIF ( + + 52, - - AVG ( 31 ) + - 93 ) col2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8130
SELECT ALL 47 * - 8 - - COUNT( * )
----
-375

skipif mysql # not compatible
query I rowsort label-8130
SELECT ALL 47 * - 8 - - COUNT ( * )
----
-375

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

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

query I rowsort
SELECT + 53 * - 60 - + 52
----
-3232

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8133
SELECT - CAST( NULL AS SIGNED ) / - CASE WHEN NOT AVG ( 66 ) < ( COUNT( * ) ) AND NOT + 72 IS NULL THEN + - 46 * 67 * 48 ELSE 15 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8133
SELECT - CAST ( NULL AS INTEGER ) / - CASE WHEN NOT AVG ( 66 ) < ( COUNT ( * ) ) AND NOT + 72 IS NULL THEN + - 46 * 67 * 48 ELSE 15 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8134
SELECT - MAX( ALL 21 ) + + - 79 AS col1, + 9 + + 10
----
-100
19

skipif mysql # not compatible
query II rowsort label-8134
SELECT - MAX ( ALL 21 ) + + - 79 AS col1, + 9 + + 10
----
-100
19

query II rowsort
SELECT + 50 AS col2, 94 col2
----
50
94

query I rowsort
SELECT + 79 * ( - NULLIF ( + 44, - + 43 ) ) * - - 97 AS col0
----
-337172

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8137
SELECT DISTINCT - 10 / + - ( 44 ) * + - 73 + 2 * - CAST( NULL AS SIGNED ) * - 72
----
NULL

skipif mysql # not compatible
query I rowsort label-8137
SELECT DISTINCT - 10 / + - ( 44 ) * + - 73 + 2 * - CAST ( NULL AS INTEGER ) * - 72
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8138
SELECT ALL + COUNT( * ) * + 42 * + 18 AS col2, 0 AS col2
----
756
0

skipif mysql # not compatible
query II rowsort label-8138
SELECT ALL + COUNT ( * ) * + 42 * + 18 AS col2, 0 AS col2
----
756
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8139
SELECT DISTINCT + COUNT( * ) * - + 85 * - + 82, - 13 DIV COUNT( * ) * - ( - 15 ) * 86 + 14 + - 84 AS col1
----
6970
-16840

skipif mysql # not compatible
query II rowsort label-8139
SELECT DISTINCT + COUNT ( * ) * - + 85 * - + 82, - 13 / COUNT ( * ) * - ( - 15 ) * 86 + 14 + - 84 AS col1
----
6970
-16840

query I rowsort
SELECT - 2 + + - 69
----
-71

query II rowsort
SELECT ALL 69 AS col1, + 77 * + 62 AS col2
----
69
4774

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8143
SELECT - 90 + - NULLIF ( + COUNT( * ), COUNT( * ) + 43 ) - + - 30 + - + 91 AS col1
----
-152

skipif mysql # not compatible
query I rowsort label-8143
SELECT - 90 + - NULLIF ( + COUNT ( * ), COUNT ( * ) + 43 ) - + - 30 + - + 91 AS col1
----
-152

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8144
SELECT - 76, - 57 DIV 16 * - COALESCE ( ( COUNT( * ) ), + - 27 * - - CASE 40 WHEN + 3 THEN + CASE + 10 WHEN + COALESCE ( 85, + 72, - 31 * - 63, NULLIF ( AVG ( + 6 ), + ( - 97 ) ) + 94 ) * + COUNT( * ) THEN NULL WHEN + 0 THEN NULL ELSE + 52 * COUNT( DISTINCT - 49 ) END * - 22 WHEN - 87 THEN - 24 DIV - 47 WHEN MAX( DISTINCT + 71 ) THEN NULL ELSE NULL END + 48 DIV + SUM( + 46 ) ) AS col1
----
-76
3

skipif mysql # not compatible
query II rowsort label-8144
SELECT - 76, - 57 / 16 * - COALESCE ( ( COUNT ( * ) ), + - 27 * - - CASE 40 WHEN + 3 THEN + CASE + 10 WHEN + COALESCE ( 85, + 72, - 31 * - 63, NULLIF ( AVG ( + 6 ), + ( - 97 ) ) + 94 ) * + COUNT ( * ) THEN NULL WHEN + 0 THEN NULL ELSE + 52 * COUNT ( DISTINCT - 49 ) END * - 22 WHEN - 87 THEN - 24 / - 47 WHEN MAX ( DISTINCT + 71 ) THEN NULL ELSE NULL END + 48 / + SUM ( + 46 ) ) AS col1
----
-76
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8145
SELECT - + SUM( CASE - NULLIF ( - 0, ( + 54 ) ) WHEN + ( - 11 ) * - 71 * + + 45 - - 14 THEN + + 63 END ) + - CAST( 81 AS SIGNED ) + 92 * 12
----
NULL

skipif mysql # not compatible
query I rowsort label-8145
SELECT - + SUM ( CASE - NULLIF ( - 0, ( + 54 ) ) WHEN + ( - 11 ) * - 71 * + + 45 - - 14 THEN + + 63 END ) + - CAST ( 81 AS INTEGER ) + 92 * 12
----
NULL

query I rowsort
SELECT - - 76 * + 8 * 89 col2
----
54112

query I rowsort
SELECT + 70 * - 89
----
-6230

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

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

query I rowsort
SELECT ALL 66 + - 32
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8151
SELECT + 41 + - 61 + - ( + + 35 ) + + 83 - 35 - + + CAST( 55 AS SIGNED ) * + - 70 * - 75 * - 20 * - CASE - 11 WHEN SUM( ALL - 35 ) * - CASE - ( - 83 ) WHEN 40 THEN + 72 + 2 END THEN NULL ELSE - 73 * 52 END * + CASE 59 WHEN 92 + AVG ( 19 ) THEN 36 / - 77 + + 90 * 96 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8151
SELECT + 41 + - 61 + - ( + + 35 ) + + 83 - 35 - + + CAST ( 55 AS INTEGER ) * + - 70 * - 75 * - 20 * - CASE - 11 WHEN SUM ( ALL - 35 ) * - CASE - ( - 83 ) WHEN 40 THEN + 72 + 2 END THEN NULL ELSE - 73 * 52 END * + CASE 59 WHEN 92 + AVG ( 19 ) THEN 36 / - 77 + + 90 * 96 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8152
SELECT DISTINCT + 88 DIV ( MAX( 12 ) )
----
7

skipif mysql # not compatible
query I rowsort label-8152
SELECT DISTINCT + 88 / ( MAX ( 12 ) )
----
7

query II rowsort
SELECT ALL - 24 + - - 24 - 77 AS col0, + 33
----
-77
33

query I rowsort
SELECT ALL 93 * + 37 AS col0
----
3441

query I rowsort
SELECT - + 49 + - + 33 AS col1
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8156
SELECT - - 74 + - 50 + - - CAST( 23 AS SIGNED ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-8156
SELECT - - 74 + - 50 + - - CAST ( 23 AS INTEGER ) AS col1
----
47

query II rowsort
SELECT + 44 col1, - 4 + - 8
----
44
-12

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8159
SELECT + + CAST( - 7 AS SIGNED ) AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-8159
SELECT + + CAST ( - 7 AS INTEGER ) AS col1
----
-7

query II rowsort
SELECT + + 13 col1, 80 * + ( + + 64 ) AS col0
----
13
5120

onlyif mysql # DIV for integer division: 
query I rowsort label-8161
SELECT 83 DIV - - 73 - - 24 + 98 AS col1
----
123

skipif mysql # not compatible
query I rowsort label-8161
SELECT 83 / - - 73 - - 24 + 98 AS col1
----
123

query II rowsort
SELECT ALL + - 82, + 75 * 37 AS col2
----
-82
2775

onlyif mysql # DIV for integer division: 
query I rowsort label-8163
SELECT ALL + 69 DIV 41 - + 54
----
-53

skipif mysql # not compatible
query I rowsort label-8163
SELECT ALL + 69 / 41 - + 54
----
-53

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8166
SELECT CAST( - - NULLIF ( + 19, + 24 ) AS SIGNED ) * 37 - + + 81 + + 29 + - 48 * - + 65 + + + 90 * NULLIF ( + 18, + - 36 * + CAST( - 98 AS DECIMAL ) + COUNT( * ) ) + 48 AS col0
----
5439

skipif mysql # not compatible
query I rowsort label-8166
SELECT CAST ( - - NULLIF ( + 19, + 24 ) AS INTEGER ) * 37 - + + 81 + + 29 + - 48 * - + 65 + + + 90 * NULLIF ( + 18, + - 36 * + CAST ( - 98 AS REAL ) + COUNT ( * ) ) + 48 AS col0
----
5439

query I rowsort
SELECT 55 + - - 63 AS col2
----
118

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8168
SELECT 22 DIV + + 43 * - - 18 - 81 * + 91, 11 * - - SUM( ALL + 67 ) col2
----
-7371
737

skipif mysql # not compatible
query II rowsort label-8168
SELECT 22 / + + 43 * - - 18 - 81 * + 91, 11 * - - SUM ( ALL + 67 ) col2
----
-7371
737

query I rowsort
SELECT 94 * + 62 AS col0
----
5828

onlyif mysql # aggregate syntax: 
query I rowsort label-8170
SELECT 0 + - 79 - - 54 - + COUNT( * ) * - + 27 - + + 32
----
-30

skipif mysql # not compatible
query I rowsort label-8170
SELECT 0 + - 79 - - 54 - + COUNT ( * ) * - + 27 - + + 32
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8171
SELECT CAST( + 52 AS SIGNED ) * + COUNT( * ) * - - 83, + 37 + - 82 AS col1
----
4316
-45

skipif mysql # not compatible
query II rowsort label-8171
SELECT CAST ( + 52 AS INTEGER ) * + COUNT ( * ) * - - 83, + 37 + - 82 AS col1
----
4316
-45

query I rowsort
SELECT 96 * 57 + + 9 + 31
----
5512

query I rowsort
SELECT ALL - 96 * 29
----
-2784

query I rowsort
SELECT ALL 55 * ( + - 78 ) * + - 17 * + 92 AS col0
----
6709560

onlyif mysql # aggregate syntax: 
query I rowsort label-8175
SELECT ALL - MAX( + 76 ) AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-8175
SELECT ALL - MAX ( + 76 ) AS col1
----
-76

query I rowsort
SELECT 0 + 75 + - 15
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8177
SELECT ALL - MAX( + + ( + ( + + 28 ) ) ) col2
----
-28

skipif mysql # not compatible
query I rowsort label-8177
SELECT ALL - MAX ( + + ( + ( + + 28 ) ) ) col2
----
-28

query I rowsort
SELECT 88 col2
----
88

query I rowsort
SELECT - ( + 53 ) * - - 72 * - 24 + - 14 + 90 + 38 + + 69 AS col1
----
91767

query I rowsort
SELECT 99 * - 92
----
-9108

onlyif mysql # DIV for integer division: 
query I rowsort label-8181
SELECT 35 + - 65 DIV + 91
----
35

skipif mysql # not compatible
query I rowsort label-8181
SELECT 35 + - 65 / + 91
----
35

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8182
SELECT 41 / + 96 * CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8182
SELECT 41 / + 96 * CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT 2 + 45 - - 52 AS col1
----
99

query I rowsort
SELECT - + 90 AS col2
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8185
SELECT ALL + + 2 + - + MAX( DISTINCT 60 ) - - 74 + 34 + + 92 DIV + 93 - + 42 * + + ( - - ( - 94 ) ) + + + NULLIF ( + + COUNT( * ), 55 ) + - 33
----
3966

skipif mysql # not compatible
query I rowsort label-8185
SELECT ALL + + 2 + - + MAX ( DISTINCT 60 ) - - 74 + 34 + + 92 / + 93 - + 42 * + + ( - - ( - 94 ) ) + + + NULLIF ( + + COUNT ( * ), 55 ) + - 33
----
3966

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8186
SELECT ALL - + COUNT( * ) DIV + ( - 67 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8186
SELECT ALL - + COUNT ( * ) / + ( - 67 ) AS col1
----
0

query I rowsort
SELECT + 20 + - 52
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8188
SELECT ALL + + NULLIF ( + + 89, 73 * 34 + 61 + 93 + - - 71 / 76 - - 71 * 78 * + + 16 * + + COALESCE ( - + 60, + CAST( + 19 AS SIGNED ), NULLIF ( + 26, + CASE - 83 WHEN - 41 + 0 THEN 70 * MAX( ALL + 24 ) WHEN 69 - - 59 THEN NULL END + - 57 ) / - 72 + - 57 ) ) * + 34 AS col0
----
3026

skipif mysql # not compatible
query I rowsort label-8188
SELECT ALL + + NULLIF ( + + 89, 73 * 34 + 61 + 93 + - - 71 / 76 - - 71 * 78 * + + 16 * + + COALESCE ( - + 60, + CAST ( + 19 AS INTEGER ), NULLIF ( + 26, + CASE - 83 WHEN - 41 + 0 THEN 70 * MAX ( ALL + 24 ) WHEN 69 - - 59 THEN NULL END + - 57 ) / - 72 + - 57 ) ) * + 34 AS col0
----
3026

onlyif mysql # aggregate syntax: 
query I rowsort label-8189
SELECT ALL + + 10 + ( - 10 ) + + - COUNT( * ) + + 81 * - 90 * + 21 * + - ( - MAX( ALL 98 ) ) * - 34 + - 48 * - 63 + COUNT( * )
----
510098904

skipif mysql # not compatible
query I rowsort label-8189
SELECT ALL + + 10 + ( - 10 ) + + - COUNT ( * ) + + 81 * - 90 * + 21 * + - ( - MAX ( ALL 98 ) ) * - 34 + - 48 * - 63 + COUNT ( * )
----
510098904

query I rowsort
SELECT DISTINCT + 25 + 14 * 12 + - 98
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8191
SELECT CASE + - 61 WHEN + 42 + + + 13 + + + 31 THEN NULL WHEN + SUM( 94 ) THEN - + 4 END - - 31 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8191
SELECT CASE + - 61 WHEN + 42 + + + 13 + + + 31 THEN NULL WHEN + SUM ( 94 ) THEN - + 4 END - - 31 + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8192
SELECT - + ( NULLIF ( - AVG ( - CAST( NULL AS SIGNED ) ), - 44 * + - 48 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8192
SELECT - + ( NULLIF ( - AVG ( - CAST ( NULL AS INTEGER ) ), - 44 * + - 48 ) )
----
NULL

query II rowsort
SELECT - 70 + 69 AS col2, + 74 - + + 46 * + 82
----
-1
-3698

query I rowsort
SELECT 82 + + 49
----
131

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

query II rowsort
SELECT + 36 + + 91, 58 AS col1
----
127
58

query II rowsort
SELECT DISTINCT - 32 - + 0 col2, 79 AS col1
----
-32
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8198
SELECT - NULLIF ( - COUNT( * ), + COUNT( * ) * ( + COUNT( * ) ) / COUNT( * ) + + 32 )
----
1

skipif mysql # not compatible
query I rowsort label-8198
SELECT - NULLIF ( - COUNT ( * ), + COUNT ( * ) * ( + COUNT ( * ) ) / COUNT ( * ) + + 32 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8199
SELECT ALL - 82 DIV 8 AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-8199
SELECT ALL - 82 / 8 AS col0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8200
SELECT DISTINCT 57 * COALESCE ( + + MAX( ALL + ( - - 14 ) ), 86 + 6 ) AS col2
----
798

skipif mysql # not compatible
query I rowsort label-8200
SELECT DISTINCT 57 * COALESCE ( + + MAX ( ALL + ( - - 14 ) ), 86 + 6 ) AS col2
----
798

query I rowsort
SELECT 65 * + 63 AS col0
----
4095

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8202
SELECT 27 DIV + 34 + - - 4 - COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-8202
SELECT 27 / + 34 + - - 4 - COUNT ( * )
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-8203
SELECT ALL - 39 AS col2, + 32 + 14 DIV - 20 - + 29 * - 94
----
-39
2758

skipif mysql # not compatible
query II rowsort label-8203
SELECT ALL - 39 AS col2, + 32 + 14 / - 20 - + 29 * - 94
----
-39
2758

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

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

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

query I rowsort
SELECT 6 * 81 * - 70 AS col2
----
-34020

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

skipif mysql # not compatible
query II rowsort label-8207
SELECT 79 AS col0, - COUNT ( * ) col2
----
79
-1

query I rowsort
SELECT 19 * - 35 AS col2
----
-665

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8209
SELECT 96 * - 71 * + - 30 col1, COUNT( * ) - - + CAST( COUNT( * ) AS SIGNED ) AS col0
----
204480
2

skipif mysql # not compatible
query II rowsort label-8209
SELECT 96 * - 71 * + - 30 col1, COUNT ( * ) - - + CAST ( COUNT ( * ) AS INTEGER ) AS col0
----
204480
2

query I rowsort
SELECT DISTINCT 37 * - 61
----
-2257

query I rowsort
SELECT 9 * + 16
----
144

query I rowsort
SELECT 44 * - 81 * - + 15 AS col2
----
53460

onlyif mysql # aggregate syntax: 
query I rowsort label-8213
SELECT DISTINCT MAX( - 67 ) * - 56 * - 28 + ( COUNT( * ) ) AS col1
----
-105055

skipif mysql # not compatible
query I rowsort label-8213
SELECT DISTINCT MAX ( - 67 ) * - 56 * - 28 + ( COUNT ( * ) ) AS col1
----
-105055

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8214
SELECT + 4 * NULLIF ( + COALESCE ( - CAST( NULL AS SIGNED ), + CAST( NULL AS SIGNED ) / - - 36 + + + 78 ), + 65 ) * + 55 + - - NULLIF ( + 32, 26 + + - 48 ) + + + 97 * + 77 + + 22 + 81 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8214
SELECT + 4 * NULLIF ( + COALESCE ( - CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) / - - 36 + + + 78 ), + 65 ) * + 55 + - - NULLIF ( + 32, 26 + + - 48 ) + + + 97 * + 77 + + 22 + 81 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8215
SELECT DISTINCT + 53 AS col1, 26 * + + CAST( NULL AS SIGNED ) AS col2
----
53
NULL

skipif mysql # not compatible
query II rowsort label-8215
SELECT DISTINCT + 53 AS col1, 26 * + + CAST ( NULL AS INTEGER ) AS col2
----
53
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8216
SELECT ALL + COUNT( * ) + - - CASE 70 WHEN - 82 THEN NULL ELSE - + ( - 72 ) DIV COUNT( * ) * - COUNT( * ) END col2
----
-71

skipif mysql # not compatible
query I rowsort label-8216
SELECT ALL + COUNT ( * ) + - - CASE 70 WHEN - 82 THEN NULL ELSE - + ( - 72 ) / COUNT ( * ) * - COUNT ( * ) END col2
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-8217
SELECT 30 + + - 48 * COUNT( * ) + + - ( - 60 ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-8217
SELECT 30 + + - 48 * COUNT ( * ) + + - ( - 60 ) AS col0
----
42

query I rowsort
SELECT - 45 * - 99 AS col1
----
4455

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8220
SELECT 20 - + + 44 * - COUNT( + 75 ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-8220
SELECT 20 - + + 44 * - COUNT ( + 75 ) AS col1
----
64

query II rowsort
SELECT 49 AS col1, 0 col2
----
49
0

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8223
SELECT 66 - + - 31 DIV + 94 + + - COUNT( * )
----
65

skipif mysql # not compatible
query I rowsort label-8223
SELECT 66 - + - 31 / + 94 + + - COUNT ( * )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8224
SELECT ( + COUNT( * ) ) + - 29
----
-28

skipif mysql # not compatible
query I rowsort label-8224
SELECT ( + COUNT ( * ) ) + - 29
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-8225
SELECT DISTINCT 99 DIV 95 + 88
----
89

skipif mysql # not compatible
query I rowsort label-8225
SELECT DISTINCT 99 / 95 + 88
----
89

query I rowsort
SELECT - - 33 + - 77 - - + 9 col1
----
-35

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8228
SELECT - ( MIN( DISTINCT - + NULLIF ( - 72, + 90 * - 73 + - 74 - ( - 92 ) + + + 81 * - + 97 + + 11 / - 24 * 27 - + - 10 ) ) ) * 80 AS col1
----
-5760

skipif mysql # not compatible
query I rowsort label-8228
SELECT - ( MIN ( DISTINCT - + NULLIF ( - 72, + 90 * - 73 + - 74 - ( - 92 ) + + + 81 * - + 97 + + 11 / - 24 * 27 - + - 10 ) ) ) * 80 AS col1
----
-5760

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

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

query I rowsort
SELECT - 61 * ( + ( - 40 ) )
----
2440

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8232
SELECT ALL MAX( DISTINCT 4 )
----
4

skipif mysql # not compatible
query I rowsort label-8232
SELECT ALL MAX ( DISTINCT 4 )
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-8233
SELECT - 57 * - ( SUM( - 15 ) ) AS col2, + COUNT( * ) + - - MIN( DISTINCT - 95 ) - - 15
----
-855
-79

skipif mysql # not compatible
query II rowsort label-8233
SELECT - 57 * - ( SUM ( - 15 ) ) AS col2, + COUNT ( * ) + - - MIN ( DISTINCT - 95 ) - - 15
----
-855
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-8234
SELECT ALL + COUNT( * ) col2, + 11 * - 0 + 47 + + 98 * - 93 AS col2
----
1
-9067

skipif mysql # not compatible
query II rowsort label-8234
SELECT ALL + COUNT ( * ) col2, + 11 * - 0 + 47 + + 98 * - 93 AS col2
----
1
-9067

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8235
SELECT ( - - 27 ) DIV + - 32 + COUNT( * ) + - 93 + + 1 AS col0, + 97 + - 90 AS col0
----
-91
7

skipif mysql # not compatible
query II rowsort label-8235
SELECT ( - - 27 ) / + - 32 + COUNT ( * ) + - 93 + + 1 AS col0, + 97 + - 90 AS col0
----
-91
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8236
SELECT DISTINCT - 23 * + 98 * + - CAST( 99 AS SIGNED )
----
223146

skipif mysql # not compatible
query I rowsort label-8236
SELECT DISTINCT - 23 * + 98 * + - CAST ( 99 AS INTEGER )
----
223146

query II rowsort
SELECT DISTINCT + 61 AS col1, 78 AS col1
----
61
78

onlyif mysql # DIV for integer division: 
query I rowsort label-8238
SELECT - 3 DIV + 33 + + 77
----
77

skipif mysql # not compatible
query I rowsort label-8238
SELECT - 3 / + 33 + + 77
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8239
SELECT ALL 15 * 56 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8239
SELECT ALL 15 * 56 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8240
SELECT DISTINCT + COUNT( ALL + 79 ) DIV - - 48 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8240
SELECT DISTINCT + COUNT ( ALL + 79 ) / - - 48 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8241
SELECT + 96 + - 40 * COUNT( * ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-8241
SELECT + 96 + - 40 * COUNT ( * ) AS col0
----
56

query I rowsort
SELECT ALL + 60 * - 31 col1
----
-1860

query I rowsort
SELECT ALL + 49 * 39 + + 71 * + + 34
----
4325

query II rowsort
SELECT + 9 AS col1, - 8 AS col2
----
9
-8

query I rowsort
SELECT + 73 + + ( 76 ) AS col2
----
149

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8246
SELECT - MAX( + - 60 ) * - + 7 - - MAX( CAST( NULL AS SIGNED ) ) + + 30 / - 45 * + COALESCE ( - - 22, 24 ) * + 37 + - + COUNT( ( ( - 66 ) ) ) * 99 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8246
SELECT - MAX ( + - 60 ) * - + 7 - - MAX ( CAST ( NULL AS INTEGER ) ) + + 30 / - 45 * + COALESCE ( - - 22, 24 ) * + 37 + - + COUNT ( ( ( - 66 ) ) ) * 99 AS col1
----
NULL

query I rowsort
SELECT ALL + 33 * + 28 + + 49
----
973

query I rowsort
SELECT - ( + 55 ) * - + 38 + - ( + ( + + 13 ) ) + 12 - ( - - 99 )
----
1990

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8249
SELECT ALL + COUNT( DISTINCT + + 36 ) * MIN( DISTINCT - 61 ) + NULLIF ( + CAST( NULL AS SIGNED ), - CASE 93 WHEN COUNT( + 40 ) * - 88 THEN NULL WHEN + ( - 82 ) * 56 + - 98 + + CAST( NULL AS SIGNED ) + CAST( CAST( 34 AS SIGNED ) - 39 AS SIGNED ) * 26 THEN 53 ELSE - 18 END * ( + 81 + + 14 ) + 2 ) + - 56 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8249
SELECT ALL + COUNT ( DISTINCT + + 36 ) * MIN ( DISTINCT - 61 ) + NULLIF ( + CAST ( NULL AS INTEGER ), - CASE 93 WHEN COUNT ( + 40 ) * - 88 THEN NULL WHEN + ( - 82 ) * 56 + - 98 + + CAST ( NULL AS INTEGER ) + CAST ( CAST ( 34 AS INTEGER ) - 39 AS INTEGER ) * 26 THEN 53 ELSE - 18 END * ( + 81 + + 14 ) + 2 ) + - 56 AS col0
----
NULL

query I rowsort
SELECT + 37 + + 46 AS col1
----
83

query I rowsort
SELECT DISTINCT + + 64 * - - 76 + + + 32
----
4896

query II rowsort
SELECT 33 AS col0, - 9
----
33
-9

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

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

query I rowsort
SELECT - 46 * + - 55
----
2530

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8255
SELECT + COUNT( * ) AS col1, 16 / 29 * 86 * - + 22 * - 24 + + ( + - CAST( NULL AS DECIMAL ) ) / 9 col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-8255
SELECT + COUNT ( * ) AS col1, 16 / 29 * 86 * - + 22 * - 24 + + ( + - CAST ( NULL AS REAL ) ) / 9 col1
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8256
SELECT COALESCE ( + SUM( DISTINCT 6 ), - 19 * COUNT( * ), COUNT( * ) * - + 2 + 85 ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-8256
SELECT COALESCE ( + SUM ( DISTINCT 6 ), - 19 * COUNT ( * ), COUNT ( * ) * - + 2 + 85 ) AS col1
----
6

query II rowsort
SELECT ( ( + ( - 28 ) ) ), - 67 + 18 + + - 6 AS col0
----
-28
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8258
SELECT + - SUM( DISTINCT 67 ) + - - 38 + + + NULLIF ( - + 29, 94 / + CAST( NULL AS SIGNED ) - + - 37 )
----
-58

skipif mysql # not compatible
query I rowsort label-8258
SELECT + - SUM ( DISTINCT 67 ) + - - 38 + + + NULLIF ( - + 29, 94 / + CAST ( NULL AS INTEGER ) - + - 37 )
----
-58

query I rowsort
SELECT + + ( 86 ) * - 39 + + 20
----
-3334

query I rowsort
SELECT DISTINCT COALESCE ( + 75, + - 74 - - 45 ) * + 53 AS col1
----
3975

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8261
SELECT ALL + 18 - - + ( + 48 ) + + 20 * + 98 DIV - - COUNT( * ) + - 7
----
2019

skipif mysql # not compatible
query I rowsort label-8261
SELECT ALL + 18 - - + ( + 48 ) + + 20 * + 98 / - - COUNT ( * ) + - 7
----
2019

query I rowsort
SELECT + 5 + + + 61 * - 93 col2
----
-5668

query I rowsort
SELECT + + 37 * - ( - 73 ) + 90 * 5 col0
----
3151

query I rowsort
SELECT DISTINCT + COALESCE ( - 29, + 59 * + + 72 * + + 25 + + 84 )
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8265
SELECT ALL 58, - CAST( 70 AS SIGNED ) AS col0
----
58
-70

skipif mysql # not compatible
query II rowsort label-8265
SELECT ALL 58, - CAST ( 70 AS INTEGER ) AS col0
----
58
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8266
SELECT + SUM( DISTINCT + 82 ) DIV + 53 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8266
SELECT + SUM ( DISTINCT + 82 ) / + 53 AS col0
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8267
SELECT - CAST( NULL AS DECIMAL ) * 12
----
NULL

skipif mysql # not compatible
query I rowsort label-8267
SELECT - CAST ( NULL AS REAL ) * 12
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-8268
SELECT + COUNT( * ), 92 AS col0, - COUNT( DISTINCT + 64 ) AS col2
----
1
92
-1

skipif mysql # not compatible
query III rowsort label-8268
SELECT + COUNT ( * ), 92 AS col0, - COUNT ( DISTINCT + 64 ) AS col2
----
1
92
-1

query II rowsort
SELECT ALL - 80, 77 AS col2
----
-80
77

query II rowsort
SELECT + 59, 50 AS col0
----
59
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8271
SELECT + CASE 31 WHEN + + 77 + 69 THEN NULL WHEN ( - + COUNT( * ) ) + + + 74 + - 0 THEN 87 + + MAX( + 53 ) * + 10 ELSE NULL END / - NULLIF ( + + NULLIF ( + COUNT( * ), - 44 * + - 11 + - 93 ), + MIN( ALL 72 ) / 54 ) + - COUNT( DISTINCT 7 + 35 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8271
SELECT + CASE 31 WHEN + + 77 + 69 THEN NULL WHEN ( - + COUNT ( * ) ) + + + 74 + - 0 THEN 87 + + MAX ( + 53 ) * + 10 ELSE NULL END / - NULLIF ( + + NULLIF ( + COUNT ( * ), - 44 * + - 11 + - 93 ), + MIN ( ALL 72 ) / 54 ) + - COUNT ( DISTINCT 7 + 35 ) AS col0
----
NULL

query I rowsort
SELECT - 63 + + 77 AS col1
----
14

query I rowsort
SELECT 94 col0
----
94

query I rowsort
SELECT - 27 * 31 * + - 35 * - ( - + 68 ) AS col1
----
1992060

onlyif mysql # aggregate syntax: 
query I rowsort label-8275
SELECT ALL COUNT( * ) + - - NULLIF ( - 59, 41 )
----
-58

skipif mysql # not compatible
query I rowsort label-8275
SELECT ALL COUNT ( * ) + - - NULLIF ( - 59, 41 )
----
-58

query I rowsort
SELECT - 3 * - 39
----
117

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8277
SELECT CAST( + CASE 80 WHEN + 18 THEN NULL WHEN 2 THEN COUNT( * ) ELSE NULL END AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8277
SELECT CAST ( + CASE 80 WHEN + 18 THEN NULL WHEN 2 THEN COUNT ( * ) ELSE NULL END AS REAL )
----
NULL

query I rowsort
SELECT - 73 * 77 * - 9
----
50589

query I rowsort
SELECT DISTINCT + CASE 86 WHEN + 43 - 91 THEN - CASE - 11 WHEN - 96 THEN NULL ELSE - + 20 + + COALESCE ( + + 61, 23 + - 70 + + - 40 + + 89 ) END * 89 - 38 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8280
SELECT ALL + MAX( DISTINCT 69 )
----
69

skipif mysql # not compatible
query I rowsort label-8280
SELECT ALL + MAX ( DISTINCT 69 )
----
69

query I rowsort
SELECT - 37 * 30 AS col0
----
-1110

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

query I rowsort
SELECT - + 77 * + 75
----
-5775

query I rowsort
SELECT + - 11
----
-11

query I rowsort
SELECT - + 32 + 3 col2
----
-29

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8287
SELECT - 67 * CAST( + 29 AS SIGNED ) * + + COALESCE ( + - 36, + MIN( ALL + 90 ) + + ( - COUNT( DISTINCT 24 ) ) + + 1 DIV - 52, - + 92 ) * 47 + 74
----
3287630

skipif mysql # not compatible
query I rowsort label-8287
SELECT - 67 * CAST ( + 29 AS INTEGER ) * + + COALESCE ( + - 36, + MIN ( ALL + 90 ) + + ( - COUNT ( DISTINCT 24 ) ) + + 1 / - 52, - + 92 ) * 47 + 74
----
3287630

onlyif mysql # aggregate syntax: 
query I rowsort label-8288
SELECT + 36 * ( - SUM( + - 65 ) )
----
2340

skipif mysql # not compatible
query I rowsort label-8288
SELECT + 36 * ( - SUM ( + - 65 ) )
----
2340

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

query I rowsort
SELECT ALL + - 50
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-8291
SELECT DISTINCT + - COUNT( 60 ) * 30 * - MIN( - 45 ) - ( + - 10 ) AS col1
----
-1340

skipif mysql # not compatible
query I rowsort label-8291
SELECT DISTINCT + - COUNT ( 60 ) * 30 * - MIN ( - 45 ) - ( + - 10 ) AS col1
----
-1340

query I rowsort
SELECT + 16 * - 62 + + 24 * 96 AS col2
----
1312

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8294
SELECT 16 + - COALESCE ( + 17, - + 54 ) + + + 78 + CAST( NULL AS DECIMAL ) - + CAST( NULL AS DECIMAL ) / - + 90 + + 37 * - 47
----
NULL

skipif mysql # not compatible
query I rowsort label-8294
SELECT 16 + - COALESCE ( + 17, - + 54 ) + + + 78 + CAST ( NULL AS REAL ) - + CAST ( NULL AS REAL ) / - + 90 + + 37 * - 47
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8295
SELECT - MIN( DISTINCT - - 81 )
----
-81

skipif mysql # not compatible
query I rowsort label-8295
SELECT - MIN ( DISTINCT - - 81 )
----
-81

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8297
SELECT + 57 - - + 66 + + + COUNT( * ) * - + 25 DIV - + COUNT( * )
----
148

skipif mysql # not compatible
query I rowsort label-8297
SELECT + 57 - - + 66 + + + COUNT ( * ) * - + 25 / - + COUNT ( * )
----
148

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

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

query I rowsort
SELECT 94 + - 31 AS col0
----
63

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8302
SELECT DISTINCT CASE - COUNT( * ) WHEN + + 5 - + CASE 27 WHEN 97 THEN - + 81 WHEN 48 + 16 - - 10 + - - 26 + - 26 + + 17 THEN NULL WHEN - - 79 + + - CAST( NULL AS SIGNED ) - + ( - - 23 ) THEN NULL ELSE NULL END + + SUM( ALL + 93 ) * - COUNT( * ) THEN NULL WHEN COUNT( * ) + - 61 THEN NULL ELSE 70 END + 42 col1
----
112

skipif mysql # not compatible
query I rowsort label-8302
SELECT DISTINCT CASE - COUNT ( * ) WHEN + + 5 - + CASE 27 WHEN 97 THEN - + 81 WHEN 48 + 16 - - 10 + - - 26 + - 26 + + 17 THEN NULL WHEN - - 79 + + - CAST ( NULL AS INTEGER ) - + ( - - 23 ) THEN NULL ELSE NULL END + + SUM ( ALL + 93 ) * - COUNT ( * ) THEN NULL WHEN COUNT ( * ) + - 61 THEN NULL ELSE 70 END + 42 col1
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-8303
SELECT ALL SUM( - - 68 ) + + - 47 + 82 * - COUNT( * ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-8303
SELECT ALL SUM ( - - 68 ) + + - 47 + 82 * - COUNT ( * ) AS col2
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-8304
SELECT CASE 5 WHEN + 19 + + 18 * + + 81 THEN - 0 WHEN - - 79 + COUNT( * ) * 60 + 53 + - + 30 * - 34 * + ( 45 ) THEN + 95 END + 89 * 24 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8304
SELECT CASE 5 WHEN + 19 + + 18 * + + 81 THEN - 0 WHEN - - 79 + COUNT ( * ) * 60 + 53 + - + 30 * - 34 * + ( 45 ) THEN + 95 END + 89 * 24 AS col2
----
NULL

query I rowsort
SELECT - 39 col1
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8306
SELECT 90 + + CASE CAST( - 51 AS SIGNED ) WHEN + COUNT( * ) + - 33 THEN + 66 END * + + 15 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8306
SELECT 90 + + CASE CAST ( - 51 AS INTEGER ) WHEN + COUNT ( * ) + - 33 THEN + 66 END * + + 15 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8307
SELECT CAST( - 91 AS SIGNED ) + + 29 col1, 1 + ( - COUNT( * ) ) col0
----
-62
0

skipif mysql # not compatible
query II rowsort label-8307
SELECT CAST ( - 91 AS INTEGER ) + + 29 col1, 1 + ( - COUNT ( * ) ) col0
----
-62
0

query I rowsort
SELECT 35 / + CASE 20 WHEN + 18 THEN + - 37 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8309
SELECT ALL ( - - COUNT( * ) ) + 81 + 21
----
103

skipif mysql # not compatible
query I rowsort label-8309
SELECT ALL ( - - COUNT ( * ) ) + 81 + 21
----
103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8310
SELECT 18 * - ( + CAST( + - COUNT( * ) AS SIGNED ) ) * COUNT( * ) - - + 59 - + - 12
----
89

skipif mysql # not compatible
query I rowsort label-8310
SELECT 18 * - ( + CAST ( + - COUNT ( * ) AS INTEGER ) ) * COUNT ( * ) - - + 59 - + - 12
----
89

query I rowsort
SELECT ALL 43 - - 52 AS col1
----
95

query I rowsort
SELECT ALL + 43 * - 53
----
-2279

query I rowsort
SELECT DISTINCT 78 * 76
----
5928

onlyif mysql # aggregate syntax: 
query I rowsort label-8314
SELECT COUNT( * ) / - CASE - NULLIF ( - - 62, 49 ) WHEN MAX( 73 ) * + 15 THEN 29 * + COALESCE ( 15, - 47 + - - 96 / - 38 - + 57 ) + 36 + - COUNT( * ) + + + 80 + + 59 END + 87 * + 82 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8314
SELECT COUNT ( * ) / - CASE - NULLIF ( - - 62, 49 ) WHEN MAX ( 73 ) * + 15 THEN 29 * + COALESCE ( 15, - 47 + - - 96 / - 38 - + 57 ) + 36 + - COUNT ( * ) + + + 80 + + 59 END + 87 * + 82 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8315
SELECT 15 DIV 21
----
0

skipif mysql # not compatible
query I rowsort label-8315
SELECT 15 / 21
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8316
SELECT 50 DIV - COALESCE ( + 3, + 78, 43 + 82 * + ( 9 ) + - + 79 )
----
-16

skipif mysql # not compatible
query I rowsort label-8316
SELECT 50 / - COALESCE ( + 3, + 78, 43 + 82 * + ( 9 ) + - + 79 )
----
-16

query I rowsort
SELECT ALL - 98 * - 89 AS col0
----
8722

onlyif mysql # aggregate syntax: 
query I rowsort label-8318
SELECT ALL + ( - ( - COUNT( * ) ) ) * + + ( + 81 ) col1
----
81

skipif mysql # not compatible
query I rowsort label-8318
SELECT ALL + ( - ( - COUNT ( * ) ) ) * + + ( + 81 ) col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8319
SELECT DISTINCT + COUNT( * ) * - + 69 + + 74
----
5

skipif mysql # not compatible
query I rowsort label-8319
SELECT DISTINCT + COUNT ( * ) * - + 69 + + 74
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8320
SELECT + CASE COALESCE ( 18, - 8 ) WHEN - 74 THEN COALESCE ( 34, 65 * - COUNT( - 57 ) ) - COUNT( DISTINCT 40 ) + - - 58 WHEN + CASE + COUNT( * ) WHEN - COUNT( ALL + ( - 23 ) ) + - COALESCE ( CAST( COUNT( * ) AS SIGNED ), 59 ) THEN CAST( NULL AS SIGNED ) WHEN 54 THEN 46 - 31 END + + 83 THEN NULL WHEN MAX( 93 ) THEN + 81 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8320
SELECT + CASE COALESCE ( 18, - 8 ) WHEN - 74 THEN COALESCE ( 34, 65 * - COUNT ( - 57 ) ) - COUNT ( DISTINCT 40 ) + - - 58 WHEN + CASE + COUNT ( * ) WHEN - COUNT ( ALL + ( - 23 ) ) + - COALESCE ( CAST ( COUNT ( * ) AS INTEGER ), 59 ) THEN CAST ( NULL AS INTEGER ) WHEN 54 THEN 46 - 31 END + + 83 THEN NULL WHEN MAX ( 93 ) THEN + 81 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT - 64 * + 93 AS col0
----
-5952

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

query II rowsort
SELECT DISTINCT - NULLIF ( - 26, + 26 ) col0, 52 * - - 57 AS col0
----
26
2964

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8324
SELECT - CAST( - 86 AS SIGNED ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-8324
SELECT - CAST ( - 86 AS INTEGER ) AS col2
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8325
SELECT COUNT( * ) * - 76 * - CASE + + 99 WHEN 65 THEN - 73 ELSE - + COALESCE ( + - 50, - 14 * + - SUM( + 1 ) + CAST( NULL AS SIGNED ) DIV + + 43 * - - 46 * + ( + 33 ) + - + 38 ) END + - COUNT( * ) col2
----
3799

skipif mysql # not compatible
query I rowsort label-8325
SELECT COUNT ( * ) * - 76 * - CASE + + 99 WHEN 65 THEN - 73 ELSE - + COALESCE ( + - 50, - 14 * + - SUM ( + 1 ) + CAST ( NULL AS INTEGER ) / + + 43 * - - 46 * + ( + 33 ) + - + 38 ) END + - COUNT ( * ) col2
----
3799

query I rowsort
SELECT DISTINCT - - 84 + + 32 AS col0
----
116

query II rowsort
SELECT - + 7 AS col0, 36
----
-7
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8328
SELECT ALL - COUNT( * ) + + 18 AS col0
----
17

skipif mysql # not compatible
query I rowsort label-8328
SELECT ALL - COUNT ( * ) + + 18 AS col0
----
17

query I rowsort
SELECT ALL + 83 + 67
----
150

query I rowsort
SELECT 84 + 34 AS col0
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-8331
SELECT ALL + COUNT( * ) * + ( - SUM( DISTINCT - 6 ) ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-8331
SELECT ALL + COUNT ( * ) * + ( - SUM ( DISTINCT - 6 ) ) AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8332
SELECT COUNT( * ) + + 12 AS col0
----
13

skipif mysql # not compatible
query I rowsort label-8332
SELECT COUNT ( * ) + + 12 AS col0
----
13

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8334
SELECT ALL - COUNT( * ) + 31 * + 86
----
2665

skipif mysql # not compatible
query I rowsort label-8334
SELECT ALL - COUNT ( * ) + 31 * + 86
----
2665

onlyif mysql # aggregate syntax: 
query I rowsort label-8335
SELECT DISTINCT MIN( DISTINCT + 78 ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-8335
SELECT DISTINCT MIN ( DISTINCT + 78 ) AS col0
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-8336
SELECT 80 DIV - 4
----
-20

skipif mysql # not compatible
query I rowsort label-8336
SELECT 80 / - 4
----
-20

query I rowsort
SELECT ALL 85 col0
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8338
SELECT ( + ( + 93 ) ) + CAST( + + 45 AS SIGNED ) AS col0, COUNT( * ) * 94 AS col2
----
138
94

skipif mysql # not compatible
query II rowsort label-8338
SELECT ( + ( + 93 ) ) + CAST ( + + 45 AS INTEGER ) AS col0, COUNT ( * ) * 94 AS col2
----
138
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8339
SELECT CAST( NULL AS SIGNED ) + - 2 * - - 42 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8339
SELECT CAST ( NULL AS INTEGER ) + - 2 * - - 42 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 20 - + 49
----
-69

query I rowsort
SELECT ALL + 2 - - - 38 * + 18
----
-682

query I rowsort
SELECT ALL 2 * 98
----
196

onlyif mysql # aggregate syntax: 
query I rowsort label-8343
SELECT ALL 25 - + COUNT( * ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-8343
SELECT ALL 25 - + COUNT ( * ) AS col1
----
24

query I rowsort
SELECT DISTINCT 37 * 33
----
1221

query I rowsort
SELECT 53 * - + ( + - 17 )
----
901

query I rowsort
SELECT + COALESCE ( + 95, + 92, + ( - NULLIF ( - 82, 28 * 19 ) ) ) AS col2
----
95

query I rowsort
SELECT DISTINCT - - 70
----
70

query I rowsort
SELECT 97 * 49 AS col1
----
4753

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

query I rowsort
SELECT + + 50 * + + 77 AS col2
----
3850

query I rowsort
SELECT ALL - - 61 * 76
----
4636

onlyif mysql # DIV for integer division: 
query I rowsort label-8352
SELECT - 85 DIV + 32 + - - 71
----
69

skipif mysql # not compatible
query I rowsort label-8352
SELECT - 85 / + 32 + - - 71
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8353
SELECT DISTINCT 54 * NULLIF ( - 69, COUNT( * ) * - + 55 ) / + + COUNT( * ) + + COUNT( ALL + ( 18 ) ) + + 88 + + 50 - ( + CAST( NULL AS SIGNED ) ) + + 98, - 6 * + 46 AS col0
----
NULL
-276

skipif mysql # not compatible
query II rowsort label-8353
SELECT DISTINCT 54 * NULLIF ( - 69, COUNT ( * ) * - + 55 ) / + + COUNT ( * ) + + COUNT ( ALL + ( 18 ) ) + + 88 + + 50 - ( + CAST ( NULL AS INTEGER ) ) + + 98, - 6 * + 46 AS col0
----
NULL
-276

query I rowsort
SELECT + 54 col1
----
54

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

query I rowsort
SELECT ALL - - 81 + - 96 + + 15 AS col1
----
0

query I rowsort
SELECT + 77 col2
----
77

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

query I rowsort
SELECT ALL 39 + - + 53 AS col0
----
-14

query I rowsort
SELECT DISTINCT 43 + + 90 AS col1
----
133

query I rowsort
SELECT ALL + NULLIF ( - 19, - 72 * ( - + 29 ) )
----
-19

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8364
SELECT - - 73 + + + CASE - COUNT( * ) WHEN MIN( + - 38 ) * + 91 THEN NULLIF ( + - 48, - 16 * 79 ) ELSE + COUNT( * ) END + 94 - + 94 AS col1
----
74

skipif mysql # not compatible
query I rowsort label-8364
SELECT - - 73 + + + CASE - COUNT ( * ) WHEN MIN ( + - 38 ) * + 91 THEN NULLIF ( + - 48, - 16 * 79 ) ELSE + COUNT ( * ) END + 94 - + 94 AS col1
----
74

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

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

query I rowsort
SELECT + 74 + 43 AS col2
----
117

query I rowsort
SELECT DISTINCT + 87 + - 58 * + 72 * + 87
----
-363225

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8368
SELECT - CAST( 33 AS DECIMAL ) + + - CASE 94 WHEN + + 52 + + - 29 + + COUNT( * ) + - - 12 / + NULLIF ( - 58, + - 94 ) THEN 78 - - + 11 + + 9 + - 2 + + 76 / + 72 * + 65 * + 72 + + NULLIF ( MAX( DISTINCT 31 ), - 13 + NULLIF ( - 90 - + COUNT( * ), 5 * - CASE SUM( 24 ) WHEN NULLIF ( + 84, ( + CAST( NULL AS SIGNED ) ) - COUNT( * ) * - 67 ) THEN + 47 / + 87 WHEN 46 * + 84 THEN NULL ELSE + 83 END ) ) * 23 WHEN - COUNT( * ) THEN 57 * 92 + CASE COUNT( * ) + 44 WHEN - 87 * + 70 THEN COUNT( * ) END * + 64 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8368
SELECT - CAST ( 33 AS REAL ) + + - CASE 94 WHEN + + 52 + + - 29 + + COUNT ( * ) + - - 12 / + NULLIF ( - 58, + - 94 ) THEN 78 - - + 11 + + 9 + - 2 + + 76 / + 72 * + 65 * + 72 + + NULLIF ( MAX ( DISTINCT 31 ), - 13 + NULLIF ( - 90 - + COUNT ( * ), 5 * - CASE SUM ( 24 ) WHEN NULLIF ( + 84, ( + CAST ( NULL AS INTEGER ) ) - COUNT ( * ) * - 67 ) THEN + 47 / + 87 WHEN 46 * + 84 THEN NULL ELSE + 83 END ) ) * 23 WHEN - COUNT ( * ) THEN 57 * 92 + CASE COUNT ( * ) + 44 WHEN - 87 * + 70 THEN COUNT ( * ) END * + 64 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8369
SELECT - MAX( ALL + 82 ) AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-8369
SELECT - MAX ( ALL + 82 ) AS col1
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8370
SELECT + 32 + - 18 + - + CAST( NULL AS SIGNED ) * + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-8370
SELECT + 32 + - 18 + - + CAST ( NULL AS INTEGER ) * + 15
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8371
SELECT ALL - COUNT( * ) * SUM( 2 )
----
-2

skipif mysql # not compatible
query I rowsort label-8371
SELECT ALL - COUNT ( * ) * SUM ( 2 )
----
-2

query I rowsort
SELECT - 44 * + 21
----
-924

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8373
SELECT ALL - 42 DIV - - COUNT( * )
----
-42

skipif mysql # not compatible
query I rowsort label-8373
SELECT ALL - 42 / - - COUNT ( * )
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-8374
SELECT ALL ( - MIN( ALL - - 69 ) ) AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-8374
SELECT ALL ( - MIN ( ALL - - 69 ) ) AS col1
----
-69

query I rowsort
SELECT DISTINCT 46 col1
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-8376
SELECT - 97 + 10 * + NULLIF ( + 73, - 98 * 28 + + 37 * 39 * - - COALESCE ( - - 63, 1, + COUNT( * ) * + NULLIF ( - CASE + + 14 WHEN + - ( + CAST( NULL AS SIGNED ) ) + CAST( + 39 AS DECIMAL ) * + NULLIF ( - 36, + ( + 33 ) * - 67 + COUNT( * ) ) THEN NULL WHEN 71 THEN 4 * 1 ELSE - COUNT( * ) END, - 61 + COUNT( * ) * - COUNT( * ) ) * 95 + + COUNT( * ) ) ) + COALESCE ( COUNT( * ), 19 DIV + CASE 34 WHEN - 74 * + 94 THEN - 19 + + 53 ELSE NULL END ) * - 66 AS col0
----
567

skipif mysql # not compatible
query I rowsort label-8376
SELECT - 97 + 10 * + NULLIF ( + 73, - 98 * 28 + + 37 * 39 * - - COALESCE ( - - 63, 1, + COUNT ( * ) * + NULLIF ( - CASE + + 14 WHEN + - ( + CAST ( NULL AS INTEGER ) ) + CAST ( + 39 AS REAL ) * + NULLIF ( - 36, + ( + 33 ) * - 67 + COUNT ( * ) ) THEN NULL WHEN 71 THEN 4 * 1 ELSE - COUNT ( * ) END, - 61 + COUNT ( * ) * - COUNT ( * ) ) * 95 + + COUNT ( * ) ) ) + COALESCE ( COUNT ( * ), 19 / + CASE 34 WHEN - 74 * + 94 THEN - 19 + + 53 ELSE NULL END ) * - 66 AS col0
----
567

query I rowsort
SELECT ALL - 16 * - 4
----
64

query I rowsort
SELECT ALL 26 - + + 15
----
11

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8380
SELECT + 8 - + + COUNT( * ) + + 95 * - + 87
----
-8258

skipif mysql # not compatible
query I rowsort label-8380
SELECT + 8 - + + COUNT ( * ) + + 95 * - + 87
----
-8258

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8381
SELECT + AVG ( CAST( NULL AS SIGNED ) ) / - 25 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8381
SELECT + AVG ( CAST ( NULL AS INTEGER ) ) / - 25 AS col0
----
NULL

query II rowsort
SELECT - 78 + + - 35 - + 68 AS col1, ( - 80 ) AS col1
----
-181
-80

query I rowsort
SELECT ALL ( + 17 ) col1
----
17

query I rowsort
SELECT - 54 + + 88 * + 72
----
6282

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

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

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

query I rowsort
SELECT ALL + - 3
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8388
SELECT ALL + CAST( - 93 AS SIGNED ) * + 41 + + COUNT( * )
----
-3812

skipif mysql # not compatible
query I rowsort label-8388
SELECT ALL + CAST ( - 93 AS INTEGER ) * + 41 + + COUNT ( * )
----
-3812

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8390
SELECT DISTINCT + MAX( ALL - - 76 )
----
76

skipif mysql # not compatible
query I rowsort label-8390
SELECT DISTINCT + MAX ( ALL - - 76 )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8391
SELECT DISTINCT COUNT( DISTINCT + 64 ) * + 49 + + MAX( - 37 ) + + NULLIF ( 60, + MAX( ALL + 61 ) ) * + + 25 * 90
----
135012

skipif mysql # not compatible
query I rowsort label-8391
SELECT DISTINCT COUNT ( DISTINCT + 64 ) * + 49 + + MAX ( - 37 ) + + NULLIF ( 60, + MAX ( ALL + 61 ) ) * + + 25 * 90
----
135012

query I rowsort
SELECT ALL + CASE 52 WHEN + 22 + + 82 THEN + 3 ELSE NULL END col0
----
NULL

query I rowsort
SELECT + ( + 2 ) AS col1
----
2

query II rowsort
SELECT DISTINCT + - 84 AS col1, - 48 AS col0
----
-84
-48

query I rowsort
SELECT + - 77 * + 57 AS col1
----
-4389

query I rowsort
SELECT DISTINCT + + ( + 99 )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8397
SELECT DISTINCT COUNT( * ) * + + 3 * + + 3 + 91 - + NULLIF ( + ( + - 12 ), + 59 ) + - 78 AS col2
----
34

skipif mysql # not compatible
query I rowsort label-8397
SELECT DISTINCT COUNT ( * ) * + + 3 * + + 3 + 91 - + NULLIF ( + ( + - 12 ), + 59 ) + - 78 AS col2
----
34

query I rowsort
SELECT ALL - 92 * + 28 - - 76
----
-2500

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

query I rowsort
SELECT ALL + 10 * - 77 + 26
----
-744

onlyif mysql # DIV for integer division: 
query I rowsort label-8401
SELECT + 42 DIV - 86 + + 28 + - 11 * 47 AS col2
----
-489

skipif mysql # not compatible
query I rowsort label-8401
SELECT + 42 / - 86 + + 28 + - 11 * 47 AS col2
----
-489

onlyif mysql # aggregate syntax: 
query I rowsort label-8402
SELECT - COUNT( * ) * + 71 + COUNT( * ) + 34
----
-36

skipif mysql # not compatible
query I rowsort label-8402
SELECT - COUNT ( * ) * + 71 + COUNT ( * ) + 34
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8403
SELECT + 51 * CAST( NULL AS SIGNED ) * - 66 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8403
SELECT + 51 * CAST ( NULL AS INTEGER ) * - 66 AS col2
----
NULL

query I rowsort
SELECT - 57 * + + COALESCE ( - 98, - 81 )
----
5586

query I rowsort
SELECT ALL 62 * 78 * + - 19
----
-91884

onlyif mysql # aggregate syntax: 
query I rowsort label-8406
SELECT MAX( - 64 ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-8406
SELECT MAX ( - 64 ) AS col0
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8407
SELECT - CAST( + 25 AS SIGNED )
----
-25

skipif mysql # not compatible
query I rowsort label-8407
SELECT - CAST ( + 25 AS INTEGER )
----
-25

query I rowsort
SELECT DISTINCT + 35 * 9 - 88 AS col2
----
227

query I rowsort
SELECT ALL 26 * + 71
----
1846

query I rowsort
SELECT - 38 + - 61 AS col2
----
-99

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8413
SELECT - COUNT( * ) + - 13 AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-8413
SELECT - COUNT ( * ) + - 13 AS col2
----
-14

query I rowsort
SELECT ALL - 84 * - 10 AS col0
----
840

query I rowsort
SELECT - 90 * ( - 37 ) col0
----
3330

onlyif mysql # aggregate syntax: 
query I rowsort label-8416
SELECT ALL COALESCE ( - + 66, - COUNT( * ) ) col1
----
-66

skipif mysql # not compatible
query I rowsort label-8416
SELECT ALL COALESCE ( - + 66, - COUNT ( * ) ) col1
----
-66

query I rowsort
SELECT + 61 - 95
----
-34

query I rowsort
SELECT - 3 col1
----
-3

query I rowsort
SELECT DISTINCT ( - + 49 )
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-8420
SELECT - 55 * 70 DIV - 41 AS col0
----
93

skipif mysql # not compatible
query I rowsort label-8420
SELECT - 55 * 70 / - 41 AS col0
----
93

onlyif mysql # DIV for integer division: 
query II rowsort label-8421
SELECT - 13, + 6 DIV + 79 * - 29 col2
----
-13
0

skipif mysql # not compatible
query II rowsort label-8421
SELECT - 13, + 6 / + 79 * - 29 col2
----
-13
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8422
SELECT DISTINCT + CAST( - 75 AS SIGNED ) * + - 89
----
6675

skipif mysql # not compatible
query I rowsort label-8422
SELECT DISTINCT + CAST ( - 75 AS INTEGER ) * + - 89
----
6675

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

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

query I rowsort
SELECT DISTINCT 54 col2
----
54

query I rowsort
SELECT DISTINCT + + 52 + 97 + + 18 AS col0
----
167

query II rowsort
SELECT - 15 AS col2, - 69 AS col1
----
-15
-69

query I rowsort
SELECT ALL + 28 + - - 74
----
102

onlyif mysql # aggregate syntax: 
query II rowsort label-8428
SELECT + - COUNT( * ) AS col1, 21 AS col2
----
-1
21

skipif mysql # not compatible
query II rowsort label-8428
SELECT + - COUNT ( * ) AS col1, 21 AS col2
----
-1
21

query I rowsort
SELECT 36 * 79 AS col2
----
2844

query I rowsort
SELECT ALL - 36 + ( - 62 ) col2
----
-98

query I rowsort
SELECT - ( - 65 ) AS col1
----
65

query I rowsort
SELECT ALL 77 + - 60 + - 23
----
-6

query I rowsort
SELECT 81 * 72 - 96 AS col1
----
5736

onlyif mysql # DIV for integer division: 
query II rowsort label-8434
SELECT ALL - - 16 col0, + 0 DIV 61 * - - 98 * - 44 - + - 85 AS col2
----
16
85

skipif mysql # not compatible
query II rowsort label-8434
SELECT ALL - - 16 col0, + 0 / 61 * - - 98 * - 44 - + - 85 AS col2
----
16
85

query II rowsort
SELECT ALL - ( - 28 ), - 5 AS col0
----
28
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8436
SELECT DISTINCT + CAST( 67 AS SIGNED ) + - CASE ( 71 ) WHEN + - 29 THEN NULL WHEN + 59 * 20 THEN - + CASE + - 40 WHEN CASE 4 WHEN + 23 THEN 56 ELSE NULL END THEN - 85 * + ( + ( 33 ) ) * 24 * + - COUNT( * ) + - + 52 WHEN - CAST( - COUNT( * ) AS SIGNED ) THEN NULL END ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8436
SELECT DISTINCT + CAST ( 67 AS INTEGER ) + - CASE ( 71 ) WHEN + - 29 THEN NULL WHEN + 59 * 20 THEN - + CASE + - 40 WHEN CASE 4 WHEN + 23 THEN 56 ELSE NULL END THEN - 85 * + ( + ( 33 ) ) * 24 * + - COUNT ( * ) + - + 52 WHEN - CAST ( - COUNT ( * ) AS INTEGER ) THEN NULL END ELSE NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8437
SELECT ALL - - 0 AS col0, 95 * - COALESCE ( - + 62, 81 + - + 43 DIV - NULLIF ( + + NULLIF ( 61, + 94 ), 60 ) ) + 40 * ( + - 83 )
----
0
2570

skipif mysql # not compatible
query II rowsort label-8437
SELECT ALL - - 0 AS col0, 95 * - COALESCE ( - + 62, 81 + - + 43 / - NULLIF ( + + NULLIF ( 61, + 94 ), 60 ) ) + 40 * ( + - 83 )
----
0
2570

query I rowsort
SELECT ALL + + 22 - - + 27 AS col0
----
49

query I rowsort
SELECT 67 col0
----
67

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

query I rowsort
SELECT + - NULLIF ( + 58, - 16 ) AS col1
----
-58

query I rowsort
SELECT + 40 + - 3 AS col2
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8443
SELECT - - 34 * - - 0 DIV + 16 - + + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-8443
SELECT - - 34 * - - 0 / + 16 - + + COUNT ( * )
----
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8444
SELECT ALL - CAST( NULL AS SIGNED ), - 10 DIV + - 35 AS col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-8444
SELECT ALL - CAST ( NULL AS INTEGER ), - 10 / + - 35 AS col2
----
NULL
0

query I rowsort
SELECT - ( + 57 ) * 46 AS col2
----
-2622

query I rowsort
SELECT 3 + - + 9 + + 29 AS col2
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-8447
SELECT ALL ( 2 ) DIV 61
----
0

skipif mysql # not compatible
query I rowsort label-8447
SELECT ALL ( 2 ) / 61
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8448
SELECT NULLIF ( + 58, 8 ) + + - 77 + - COUNT( * ) * + 63 AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-8448
SELECT NULLIF ( + 58, 8 ) + + - 77 + - COUNT ( * ) * + 63 AS col1
----
-82

query I rowsort
SELECT DISTINCT - 57 col0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-8450
SELECT 88 * + ( - COALESCE ( + 14, - + 52 ) ) + + 26 + + - NULLIF ( NULLIF ( - 14, 33 / 97 ), + 22 + - ( + 43 ) * - + 33 - - 48 * 18 - - - COUNT( * ) + - 67 + 71 )
----
-1192

skipif mysql # not compatible
query I rowsort label-8450
SELECT 88 * + ( - COALESCE ( + 14, - + 52 ) ) + + 26 + + - NULLIF ( NULLIF ( - 14, 33 / 97 ), + 22 + - ( + 43 ) * - + 33 - - 48 * 18 - - - COUNT ( * ) + - 67 + 71 )
----
-1192

onlyif mysql # DIV for integer division: 
query I rowsort label-8451
SELECT DISTINCT ( + + 87 ) DIV - 26 + - - 72 - - - 98
----
-29

skipif mysql # not compatible
query I rowsort label-8451
SELECT DISTINCT ( + + 87 ) / - 26 + - - 72 - - - 98
----
-29

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8453
SELECT COALESCE ( 11, + 85 * + 31 * - - 48 - - 86, + + 19 * 27 + + 69 * - 68 ) DIV + SUM( DISTINCT + + 70 ) * + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8453
SELECT COALESCE ( 11, + 85 * + 31 * - - 48 - - 86, + + 19 * 27 + + 69 * - 68 ) / + SUM ( DISTINCT + + 70 ) * + COUNT ( * )
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8455
SELECT NULLIF ( + 15, + 93 ) + + COUNT( * ) + ( + 0 ) * + + 90
----
16

skipif mysql # not compatible
query I rowsort label-8455
SELECT NULLIF ( + 15, + 93 ) + + COUNT ( * ) + ( + 0 ) * + + 90
----
16

query II rowsort
SELECT 63 + - - 6 + + ( 51 ) * + 77 AS col1, 92 * - 68 + + - 40 + - + 43 * - 48 AS col2
----
3996
-4232

onlyif mysql # aggregate syntax: 
query I rowsort label-8457
SELECT 34 / - - 75 * - CASE - COUNT( * ) WHEN + 17 THEN - 48 END * ( + ( COALESCE ( - + 91, - 11 ) ) ) + ( - CASE + COUNT( ALL - - 28 ) WHEN ( + + 58 ) * + 37 THEN + - 5 + + 39 ELSE - 78 * + + 0 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-8457
SELECT 34 / - - 75 * - CASE - COUNT ( * ) WHEN + 17 THEN - 48 END * ( + ( COALESCE ( - + 91, - 11 ) ) ) + ( - CASE + COUNT ( ALL - - 28 ) WHEN ( + + 58 ) * + 37 THEN + - 5 + + 39 ELSE - 78 * + + 0 END )
----
NULL

query I rowsort
SELECT DISTINCT 7 col1
----
7

query I rowsort
SELECT ALL + 80 + - 99 + - 52 AS col1
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-8460
SELECT CASE 17 WHEN + NULLIF ( + 43, - ( - 30 ) + - - ( - 35 ) ) THEN 64 * + COUNT( - - 20 ) END - + + SUM( ALL + 11 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8460
SELECT CASE 17 WHEN + NULLIF ( + 43, - ( - 30 ) + - - ( - 35 ) ) THEN 64 * + COUNT ( - - 20 ) END - + + SUM ( ALL + 11 ) col1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8462
SELECT DISTINCT ( + - 90 ) + + - COUNT( * ) + - - 29 AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-8462
SELECT DISTINCT ( + - 90 ) + + - COUNT ( * ) + - - 29 AS col1
----
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8463
SELECT DISTINCT 48 + COUNT( * ) + + + 92 DIV + + 61 AS col0
----
50

skipif mysql # not compatible
query I rowsort label-8463
SELECT DISTINCT 48 + COUNT ( * ) + + + 92 / + + 61 AS col0
----
50

query I rowsort
SELECT ALL 7 + - 81 * 75 col1
----
-6068

query I rowsort
SELECT DISTINCT 65 + + 85
----
150

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8467
SELECT + 81 + + 9 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8467
SELECT + 81 + + 9 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 2 - - 60
----
62

query I rowsort
SELECT ( + - 96 ) + + - 79 AS col2
----
-175

query II rowsort
SELECT - 8 + + + 92 AS col1, - 8
----
84
-8

query I rowsort
SELECT ALL + + 75 + - 86 AS col1
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8472
SELECT - 31 + - 38 AS col0, + 38 + COUNT( * ) DIV - 77
----
-69
38

skipif mysql # not compatible
query II rowsort label-8472
SELECT - 31 + - 38 AS col0, + 38 + COUNT ( * ) / - 77
----
-69
38

query I rowsort
SELECT ALL - 5 * - 88
----
440

query I rowsort
SELECT ALL - - 5
----
5

query I rowsort
SELECT DISTINCT + 88 * 76 col0
----
6688

query I rowsort
SELECT ALL - - ( + 60 ) AS col0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8477
SELECT ALL - 55 - SUM( - 30 ) - - COUNT( * )
----
-24

skipif mysql # not compatible
query I rowsort label-8477
SELECT ALL - 55 - SUM ( - 30 ) - - COUNT ( * )
----
-24

onlyif mysql # DIV for integer division: 
query II rowsort label-8478
SELECT + 97 DIV + - 78 col1, - 71 AS col1
----
-1
-71

skipif mysql # not compatible
query II rowsort label-8478
SELECT + 97 / + - 78 col1, - 71 AS col1
----
-1
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-8479
SELECT 51 * - 7 + - ( 81 ) + COUNT( * ) + CASE WHEN NULL BETWEEN - ( - 29 ) AND NULL THEN - - COUNT( * ) END + COUNT( - - 5 ) * 14
----
NULL

skipif mysql # not compatible
query I rowsort label-8479
SELECT 51 * - 7 + - ( 81 ) + COUNT ( * ) + CASE WHEN NULL BETWEEN - ( - 29 ) AND NULL THEN - - COUNT ( * ) END + COUNT ( - - 5 ) * 14
----
NULL

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

skipif mysql # not compatible
query I rowsort label-8480
SELECT + COUNT ( + - CAST ( 73 AS REAL ) ) + - COUNT ( * )
----
0

query I rowsort
SELECT ( CASE + 15 WHEN - 10 * + + 67 THEN - 44 + + 17 END ) * + COALESCE ( + - 24, 85 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8482
SELECT - + CASE - SUM( ALL - + 63 ) WHEN - ( + - CASE - AVG ( DISTINCT 48 ) WHEN + 70 THEN - 4 WHEN + + 46 - - - NULLIF ( 74, + + 46 * + AVG ( ALL - 71 ) ) + + 57 * - - 91 THEN 86 + 6 ELSE 48 END ) / + 83 + COALESCE ( - ( ( 35 ) ), - COUNT( * ) ) * 53 + 83 THEN NULL WHEN - COUNT( * ) * 45 THEN 63 ELSE - CAST( NULL AS SIGNED ) END / - 54 + + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-8482
SELECT - + CASE - SUM ( ALL - + 63 ) WHEN - ( + - CASE - AVG ( DISTINCT 48 ) WHEN + 70 THEN - 4 WHEN + + 46 - - - NULLIF ( 74, + + 46 * + AVG ( ALL - 71 ) ) + + 57 * - - 91 THEN 86 + 6 ELSE 48 END ) / + 83 + COALESCE ( - ( ( 35 ) ), - COUNT ( * ) ) * 53 + 83 THEN NULL WHEN - COUNT ( * ) * 45 THEN 63 ELSE - CAST ( NULL AS INTEGER ) END / - 54 + + 14
----
NULL

query I rowsort
SELECT + + 99
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-8484
SELECT 43 + ( + 6 ) DIV - + ( + 87 ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-8484
SELECT 43 + ( + 6 ) / - + ( + 87 ) AS col0
----
43

query I rowsort
SELECT DISTINCT - - 41 - - 16
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8486
SELECT DISTINCT ( + 62 ) * + CAST( + 74 AS SIGNED ) AS col2
----
4588

skipif mysql # not compatible
query I rowsort label-8486
SELECT DISTINCT ( + 62 ) * + CAST ( + 74 AS INTEGER ) AS col2
----
4588

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8487
SELECT ALL CAST( NULL AS DECIMAL ) * - 8 * 66 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8487
SELECT ALL CAST ( NULL AS REAL ) * - 8 * 66 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8488
SELECT COUNT( * ) * + NULLIF ( + 23, - - COUNT( * ) ) * + 38 * - 18
----
-15732

skipif mysql # not compatible
query I rowsort label-8488
SELECT COUNT ( * ) * + NULLIF ( + 23, - - COUNT ( * ) ) * + 38 * - 18
----
-15732

query I rowsort
SELECT DISTINCT + 11 * - 65
----
-715

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

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

query I rowsort
SELECT 11 * + 81 + - - 72 + + 73 * 14 AS col1
----
1985

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8494
SELECT + 36 * - - 46 DIV + COUNT( DISTINCT + 56 ) + + - 59
----
1597

skipif mysql # not compatible
query I rowsort label-8494
SELECT + 36 * - - 46 / + COUNT ( DISTINCT + 56 ) + + - 59
----
1597

query I rowsort
SELECT ALL 67 + 11 AS col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8496
SELECT ALL - MIN( ALL + + 55 ) * - - 18 - - - 45 AS col2
----
-1035

skipif mysql # not compatible
query I rowsort label-8496
SELECT ALL - MIN ( ALL + + 55 ) * - - 18 - - - 45 AS col2
----
-1035

query I rowsort
SELECT + 49 + - 32 AS col0
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8498
SELECT DISTINCT 60 DIV MIN( ALL + 96 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8498
SELECT DISTINCT 60 / MIN ( ALL + 96 ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8499
SELECT ALL NULLIF ( + COUNT( * ), SUM( - CAST( NULL AS SIGNED ) ) / + + CASE - + COUNT( * ) WHEN + - 76 THEN + 0 ELSE NULL END ) + + - ( + - 96 ) - - + 41 AS col2
----
138

skipif mysql # not compatible
query I rowsort label-8499
SELECT ALL NULLIF ( + COUNT ( * ), SUM ( - CAST ( NULL AS INTEGER ) ) / + + CASE - + COUNT ( * ) WHEN + - 76 THEN + 0 ELSE NULL END ) + + - ( + - 96 ) - - + 41 AS col2
----
138

onlyif mysql # DIV for integer division: 
query I rowsort label-8500
SELECT + 1 DIV + 26 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8500
SELECT + 1 / + 26 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8501
SELECT ALL 7 + + COUNT( * ) * - 56 AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-8501
SELECT ALL 7 + + COUNT ( * ) * - 56 AS col2
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8502
SELECT ALL 66 + - CAST( NULL AS SIGNED ) * 75
----
NULL

skipif mysql # not compatible
query I rowsort label-8502
SELECT ALL 66 + - CAST ( NULL AS INTEGER ) * 75
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8503
SELECT - MIN( ALL - 22 ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-8503
SELECT - MIN ( ALL - 22 ) AS col0
----
22

query I rowsort
SELECT ALL 10 * - 96 AS col0
----
-960

onlyif mysql # DIV for integer division: 
query I rowsort label-8505
SELECT + 79 DIV 83
----
0

skipif mysql # not compatible
query I rowsort label-8505
SELECT + 79 / 83
----
0

query I rowsort
SELECT + 49 + + 38 AS col2
----
87

query I rowsort
SELECT + 53 - + 65
----
-12

query I rowsort
SELECT DISTINCT - ( 78 )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-8509
SELECT - COUNT( + - 8 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8509
SELECT - COUNT ( + - 8 ) AS col2
----
-1

query I rowsort
SELECT - ( 31 ) AS col1
----
-31

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

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

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

query II rowsort
SELECT + + 35 AS col0, + ( - - 76 ) + - 89
----
35
-13

query I rowsort
SELECT - 65 * - 36 col0
----
2340

query I rowsort
SELECT ALL + - 39
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8516
SELECT + 74 AS col1, 59 + + 50 + + 82 - + MIN( ALL CAST( NULL AS SIGNED ) )
----
74
NULL

skipif mysql # not compatible
query II rowsort label-8516
SELECT + 74 AS col1, 59 + + 50 + + 82 - + MIN ( ALL CAST ( NULL AS INTEGER ) )
----
74
NULL

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

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

query II rowsort
SELECT 40, NULLIF ( - + 26, + + 29 ) col1
----
40
-26

query I rowsort
SELECT ALL - 43 * + + 26 col1
----
-1118

onlyif mysql # DIV for integer division: 
query I rowsort label-8520
SELECT + + 38 DIV 38 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8520
SELECT + + 38 / 38 AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8521
SELECT ALL + 32 DIV 56
----
0

skipif mysql # not compatible
query I rowsort label-8521
SELECT ALL + 32 / 56
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8523
SELECT - - MAX( + 9 ) * + 78 / + - COUNT( * ) * + 19 + + 95 * 87 * - + 98 * - CAST( NULL AS SIGNED ) + - - 61 - + 74
----
NULL

skipif mysql # not compatible
query I rowsort label-8523
SELECT - - MAX ( + 9 ) * + 78 / + - COUNT ( * ) * + 19 + + 95 * 87 * - + 98 * - CAST ( NULL AS INTEGER ) + - - 61 - + 74
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8524
SELECT ALL + COUNT( ALL 35 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8524
SELECT ALL + COUNT ( ALL 35 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8525
SELECT DISTINCT + MIN( - CASE + 51 WHEN + 38 / - 10 THEN - - 45 / + - 53 + - 54 + 60 WHEN - ( - 13 ) * - 94 + 4 THEN NULL ELSE - - 34 END )
----
-34

skipif mysql # not compatible
query I rowsort label-8525
SELECT DISTINCT + MIN ( - CASE + 51 WHEN + 38 / - 10 THEN - - 45 / + - 53 + - 54 + 60 WHEN - ( - 13 ) * - 94 + 4 THEN NULL ELSE - - 34 END )
----
-34

query I rowsort
SELECT ALL 4 * + - 65
----
-260

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8527
SELECT - 15 DIV COUNT( * ) * 60
----
-900

skipif mysql # not compatible
query I rowsort label-8527
SELECT - 15 / COUNT ( * ) * 60
----
-900

onlyif mysql # aggregate syntax: 
query I rowsort label-8528
SELECT COALESCE ( + 39, - ( MAX( + + 31 ) ) ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-8528
SELECT COALESCE ( + 39, - ( MAX ( + + 31 ) ) ) AS col1
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-8529
SELECT ALL + ( + 3 ) * - + COUNT( * ) + + - 34 AS col2, + 12 + + + 97
----
-37
109

skipif mysql # not compatible
query II rowsort label-8529
SELECT ALL + ( + 3 ) * - + COUNT ( * ) + + - 34 AS col2, + 12 + + + 97
----
-37
109

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8530
SELECT - CAST( NULL AS SIGNED ) * + NULLIF ( + 19, - + 28 ) + + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-8530
SELECT - CAST ( NULL AS INTEGER ) * + NULLIF ( + 19, - + 28 ) + + 42
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8531
SELECT - MIN( 27 ) * COALESCE ( + + NULLIF ( - CAST( + NULLIF ( 64, + 46 * + 42 * + 38 ) AS SIGNED ), 95 ), + 87 )
----
1728

skipif mysql # not compatible
query I rowsort label-8531
SELECT - MIN ( 27 ) * COALESCE ( + + NULLIF ( - CAST ( + NULLIF ( 64, + 46 * + 42 * + 38 ) AS INTEGER ), 95 ), + 87 )
----
1728

query I rowsort
SELECT 25 * + 66 + - - 86
----
1736

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8534
SELECT ALL 51 * COUNT( * ) * - ( + 74 ) * + + 41 * - 36 DIV + + 3 + 74
----
1856882

skipif mysql # not compatible
query I rowsort label-8534
SELECT ALL 51 * COUNT ( * ) * - ( + 74 ) * + + 41 * - 36 / + + 3 + 74
----
1856882

query I rowsort
SELECT NULLIF ( + 68, + + ( + - 49 ) )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8536
SELECT DISTINCT + COALESCE ( + 30, + COUNT( DISTINCT CASE 5 WHEN + 26 THEN + 9 + - - 20 * - - 94 ELSE NULL END ) + + - ( + 80 ) * + 1 ) * + - 47 + - + ( - - COUNT( * ) ) AS col2
----
-1411

skipif mysql # not compatible
query I rowsort label-8536
SELECT DISTINCT + COALESCE ( + 30, + COUNT ( DISTINCT CASE 5 WHEN + 26 THEN + 9 + - - 20 * - - 94 ELSE NULL END ) + + - ( + 80 ) * + 1 ) * + - 47 + - + ( - - COUNT ( * ) ) AS col2
----
-1411

onlyif mysql # aggregate syntax: 
query I rowsort label-8537
SELECT + 69 * + COUNT( * ) * - 95 + - - 13
----
-6542

skipif mysql # not compatible
query I rowsort label-8537
SELECT + 69 * + COUNT ( * ) * - 95 + - - 13
----
-6542

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

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

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

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

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

query I rowsort
SELECT ALL - 54 * - 3 AS col1
----
162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8542
SELECT DISTINCT - 36 * + CAST( NULL AS SIGNED ) / - + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-8542
SELECT DISTINCT - 36 * + CAST ( NULL AS INTEGER ) / - + 7
----
NULL

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

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

query II rowsort
SELECT + - 69 - + 16 * - 71 + - - 30, 23 + + 38 AS col0
----
1097
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8545
SELECT + 13 + + COUNT( * ) DIV + - COUNT( + 46 ) AS col1, COUNT( * ) AS col2
----
12
1

skipif mysql # not compatible
query II rowsort label-8545
SELECT + 13 + + COUNT ( * ) / + - COUNT ( + 46 ) AS col1, COUNT ( * ) AS col2
----
12
1

query I rowsort
SELECT DISTINCT - 66 * + 29 + - 92 AS col0
----
-2006

onlyif mysql # aggregate syntax: 
query II rowsort label-8547
SELECT - 66 + - COUNT( * ) AS col0, 21
----
-67
21

skipif mysql # not compatible
query II rowsort label-8547
SELECT - 66 + - COUNT ( * ) AS col0, 21
----
-67
21

query I rowsort
SELECT + 40 * 84 * + 62 * - + ( - 8 ) AS col2
----
1666560

onlyif mysql # DIV for integer division: 
query I rowsort label-8549
SELECT + + 28 - - 82 DIV ( - - 38 )
----
30

skipif mysql # not compatible
query I rowsort label-8549
SELECT + + 28 - - 82 / ( - - 38 )
----
30

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

query I rowsort
SELECT + 93 + 22
----
115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8552
SELECT + + 84 * CAST( NULL AS SIGNED ) AS col0, - ( + SUM( ALL + ( + ( - 4 ) ) ) ) * - - 37 AS col2
----
NULL
148

skipif mysql # not compatible
query II rowsort label-8552
SELECT + + 84 * CAST ( NULL AS INTEGER ) AS col0, - ( + SUM ( ALL + ( + ( - 4 ) ) ) ) * - - 37 AS col2
----
NULL
148

query I rowsort
SELECT + + 78 * 77 + - 67
----
5939

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8554
SELECT ALL COALESCE ( + ( - CAST( 10 AS SIGNED ) ), - + 97 * + - 65, 67 * NULLIF ( - CAST( NULL AS SIGNED ), + 30 / 66 * + 89 + - COUNT( * ) ) * + - 68 ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-8554
SELECT ALL COALESCE ( + ( - CAST ( 10 AS INTEGER ) ), - + 97 * + - 65, 67 * NULLIF ( - CAST ( NULL AS INTEGER ), + 30 / 66 * + 89 + - COUNT ( * ) ) * + - 68 ) AS col1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8555
SELECT + - 67 + + MAX( ALL - 12 )
----
-79

skipif mysql # not compatible
query I rowsort label-8555
SELECT + - 67 + + MAX ( ALL - 12 )
----
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8556
SELECT ALL - ( + - ( - - MAX( + 84 ) ) ) * + 57 - - COUNT( * ) DIV ( - + 6 ) AS col1
----
4788

skipif mysql # not compatible
query I rowsort label-8556
SELECT ALL - ( + - ( - - MAX ( + 84 ) ) ) * + 57 - - COUNT ( * ) / ( - + 6 ) AS col1
----
4788

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

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

query I rowsort
SELECT DISTINCT 8 * + 69 * - 75 * - ( - ( - 71 ) ) * 36 AS col2
----
105818400

query I rowsort
SELECT ALL + 80 col0
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-8560
SELECT ALL + 26 DIV 29 + 71
----
71

skipif mysql # not compatible
query I rowsort label-8560
SELECT ALL + 26 / 29 + 71
----
71

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

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

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

skipif mysql # not compatible
query I rowsort label-8562
SELECT CAST ( - + 82 AS INTEGER ) AS col0
----
-82

query I rowsort
SELECT + 38 * + 67
----
2546

query I rowsort
SELECT - 44 + + + 36 * - + 65 * - 31 * - 60 * COALESCE ( - + 90, + - 77 ) + + 73
----
391716029

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8565
SELECT ALL MIN( ALL + 15 ) * + - MIN( - 85 ) + 74 + + CAST( NULL AS SIGNED ) * - AVG ( - 12 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8565
SELECT ALL MIN ( ALL + 15 ) * + - MIN ( - 85 ) + 74 + + CAST ( NULL AS INTEGER ) * - AVG ( - 12 ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8566
SELECT 70 DIV + - ( + - 9 ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-8566
SELECT 70 / + - ( + - 9 ) AS col2
----
7

query II rowsort
SELECT ALL + 94 + - 36 * + 97, + ( - + 89 ) AS col1
----
-3398
-89

query I rowsort
SELECT DISTINCT - 39 * - 82 col1
----
3198

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8569
SELECT DISTINCT CAST( - 28 AS SIGNED ) + + 45 + - + ( - + COUNT( * ) ) col0, 45 * - 42 AS col0
----
18
-1890

skipif mysql # not compatible
query II rowsort label-8569
SELECT DISTINCT CAST ( - 28 AS INTEGER ) + + 45 + - + ( - + COUNT ( * ) ) col0, 45 * - 42 AS col0
----
18
-1890

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8571
SELECT 60 + + CAST( + - 40 AS SIGNED ) + 50
----
70

skipif mysql # not compatible
query I rowsort label-8571
SELECT 60 + + CAST ( + - 40 AS INTEGER ) + 50
----
70

query I rowsort
SELECT DISTINCT NULLIF ( + 15, 8 ) + - 66 AS col0
----
-51

query I rowsort
SELECT DISTINCT 49 * + 50
----
2450

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

query I rowsort
SELECT 69 * + 94 * - 3 * + + 1
----
-19458

onlyif mysql # aggregate syntax: 
query I rowsort label-8576
SELECT 4 + + COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-8576
SELECT 4 + + COUNT ( * )
----
5

query I rowsort
SELECT ALL - 32 - - - 94
----
-126

onlyif mysql # DIV for integer division: 
query I rowsort label-8578
SELECT DISTINCT + 62 DIV 50
----
1

skipif mysql # not compatible
query I rowsort label-8578
SELECT DISTINCT + 62 / 50
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8579
SELECT 80 + - COUNT( * )
----
79

skipif mysql # not compatible
query I rowsort label-8579
SELECT 80 + - COUNT ( * )
----
79

query I rowsort
SELECT ALL - 39 col0
----
-39

query I rowsort
SELECT DISTINCT ( + 66 )
----
66

query I rowsort
SELECT - CASE + ( + - 36 ) WHEN 6 THEN NULL WHEN 51 + 44 THEN + + 16 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8583
SELECT DISTINCT - 26 * 81 * - ( + - 55 ) DIV - COUNT( DISTINCT + + 59 ) + 9 AS col2
----
115839

skipif mysql # not compatible
query I rowsort label-8583
SELECT DISTINCT - 26 * 81 * - ( + - 55 ) / - COUNT ( DISTINCT + + 59 ) + 9 AS col2
----
115839

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

query II rowsort
SELECT - - 59 AS col2, - 74
----
59
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8586
SELECT + 33 + - - COUNT( * ) * - - 37 * + 67 * - 59 DIV COUNT( * ) - - + ( - 86 ) + 20 AS col0
----
-146294

skipif mysql # not compatible
query I rowsort label-8586
SELECT + 33 + - - COUNT ( * ) * - - 37 * + 67 * - 59 / COUNT ( * ) - - + ( - 86 ) + 20 AS col0
----
-146294

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8587
SELECT COUNT( * ) * + 55 - ( 63 ) DIV 53 col2
----
54

skipif mysql # not compatible
query I rowsort label-8587
SELECT COUNT ( * ) * + 55 - ( 63 ) / 53 col2
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8588
SELECT + 77 * + 38 * - 4 - - - ( + - 1 ) + + - 87 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8588
SELECT + 77 * + 38 * - 4 - - - ( + - 1 ) + + - 87 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8589
SELECT CAST( - - 17 AS SIGNED ) DIV 16 + + ( - CAST( + 65 AS SIGNED ) ) AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-8589
SELECT CAST ( - - 17 AS INTEGER ) / 16 + + ( - CAST ( + 65 AS INTEGER ) ) AS col1
----
-64

query I rowsort
SELECT ALL 57 + 13 AS col1
----
70

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

query I rowsort
SELECT DISTINCT - 25 + 87
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-8593
SELECT 8 - ( + 68 ) * - COUNT( 33 ) + - 49
----
27

skipif mysql # not compatible
query I rowsort label-8593
SELECT 8 - ( + 68 ) * - COUNT ( 33 ) + - 49
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8594
SELECT CAST( + 85 AS SIGNED ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-8594
SELECT CAST ( + 85 AS INTEGER ) AS col1
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-8595
SELECT DISTINCT + 50 DIV - 39 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8595
SELECT DISTINCT + 50 / - 39 AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8596
SELECT COUNT( * ) DIV 45 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8596
SELECT COUNT ( * ) / 45 AS col2
----
0

query I rowsort
SELECT ( 85 ) * + ( + 25 ) + 34 AS col2
----
2159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8598
SELECT ALL CAST( + 85 AS SIGNED ) + 18
----
103

skipif mysql # not compatible
query I rowsort label-8598
SELECT ALL CAST ( + 85 AS INTEGER ) + 18
----
103

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8599
SELECT DISTINCT 9 * + ( CASE - - 78 WHEN + 81 + - - 78 THEN NULL ELSE MIN( DISTINCT - + 49 ) * + - COUNT( * ) + COUNT( * ) DIV + 32 + - 89 END ) AS col0, - 94 + 99 AS col1
----
-360
5

skipif mysql # not compatible
query II rowsort label-8599
SELECT DISTINCT 9 * + ( CASE - - 78 WHEN + 81 + - - 78 THEN NULL ELSE MIN ( DISTINCT - + 49 ) * + - COUNT ( * ) + COUNT ( * ) / + 32 + - 89 END ) AS col0, - 94 + 99 AS col1
----
-360
5

query I rowsort
SELECT 37 * 49 * 88 AS col2
----
159544

query I rowsort
SELECT ALL - 98 + + 73
----
-25

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8602
SELECT ALL + CAST( NULL AS DECIMAL ) * 90
----
NULL

skipif mysql # not compatible
query I rowsort label-8602
SELECT ALL + CAST ( NULL AS REAL ) * 90
----
NULL

query I rowsort
SELECT ALL 3 + + + 50 + + + 1 AS col2
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8604
SELECT ALL SUM( - ( + CAST( NULL AS SIGNED ) ) ) + + 22
----
NULL

skipif mysql # not compatible
query I rowsort label-8604
SELECT ALL SUM ( - ( + CAST ( NULL AS INTEGER ) ) ) + + 22
----
NULL

query II rowsort
SELECT DISTINCT - 5, - CASE + 88 WHEN + 47 THEN - 95 END col0
----
-5
NULL

query II rowsort
SELECT - CASE - 90 WHEN - 87 THEN + + 20 END * - 51 + - 31 col0, 4 AS col0
----
NULL
4

query I rowsort
SELECT 90 col0
----
90

query II rowsort
SELECT ALL - 14 col0, + 67 AS col0
----
-14
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8609
SELECT 62 + - 89 + + COUNT( * ) + + + 96 * + + CAST( 11 AS SIGNED ) AS col2
----
1030

skipif mysql # not compatible
query I rowsort label-8609
SELECT 62 + - 89 + + COUNT ( * ) + + + 96 * + + CAST ( 11 AS INTEGER ) AS col2
----
1030

onlyif mysql # aggregate syntax: 
query I rowsort label-8610
SELECT COUNT( + + 72 ) * - + 35 * - 47 * + - 24 * + 85 - - 51
----
-3355749

skipif mysql # not compatible
query I rowsort label-8610
SELECT COUNT ( + + 72 ) * - + 35 * - 47 * + - 24 * + 85 - - 51
----
-3355749

query II rowsort
SELECT ALL - 33, - 11 AS col1
----
-33
-11

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

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

query I rowsort
SELECT ALL + 91 * 47
----
4277

onlyif mysql # DIV for integer division: 
query I rowsort label-8614
SELECT DISTINCT 42 DIV 27 col2
----
1

skipif mysql # not compatible
query I rowsort label-8614
SELECT DISTINCT 42 / 27 col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8615
SELECT + CASE 87 WHEN MAX( ALL + NULLIF ( 20, - - 33 / - 97 * + - 4 + - 46 ) ) THEN NULL WHEN + 23 THEN - - 66 WHEN - + SUM( - + 92 ) / + 68 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8615
SELECT + CASE 87 WHEN MAX ( ALL + NULLIF ( 20, - - 33 / - 97 * + - 4 + - 46 ) ) THEN NULL WHEN + 23 THEN - - 66 WHEN - + SUM ( - + 92 ) / + 68 THEN NULL ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL - 72 * - 77 * - + 23 AS col1
----
-127512

onlyif mysql # aggregate syntax: 
query I rowsort label-8617
SELECT + COUNT( * ) + 44
----
45

skipif mysql # not compatible
query I rowsort label-8617
SELECT + COUNT ( * ) + 44
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8618
SELECT SUM( + 61 ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-8618
SELECT SUM ( + 61 ) AS col0
----
61

query II rowsort
SELECT ALL - ( + 83 ) AS col1, 50 AS col0
----
-83
50

query I rowsort
SELECT + 48 + + 97
----
145

query II rowsort
SELECT NULLIF ( 82, - - 72 + 15 ), - 14 * - 95 AS col1
----
82
1330

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8622
SELECT DISTINCT - 15 AS col0, - CAST( NULL AS SIGNED ) * + CAST( - NULLIF ( + 39, + + 11 * 2 + - ( 78 ) * CAST( 48 AS SIGNED ) ) AS SIGNED ) * - 82 * - CASE 58 WHEN + 80 + + 74 + + + AVG ( - 28 ) + 5 + ( + + 83 ) * ( - 77 ) + COALESCE ( + COUNT( * ), - 96 ) + - 85 THEN SUM( 25 ) * ( + CASE 30 WHEN MAX( DISTINCT - 36 ) + - 88 THEN NULL ELSE - ( 42 ) END / 0 + 79 / - 64 ) END * + AVG ( DISTINCT + ( - 2 ) )
----
-15
NULL

skipif mysql # not compatible
query II rowsort label-8622
SELECT DISTINCT - 15 AS col0, - CAST ( NULL AS INTEGER ) * + CAST ( - NULLIF ( + 39, + + 11 * 2 + - ( 78 ) * CAST ( 48 AS INTEGER ) ) AS INTEGER ) * - 82 * - CASE 58 WHEN + 80 + + 74 + + + AVG ( - 28 ) + 5 + ( + + 83 ) * ( - 77 ) + COALESCE ( + COUNT ( * ), - 96 ) + - 85 THEN SUM ( 25 ) * ( + CASE 30 WHEN MAX ( DISTINCT - 36 ) + - 88 THEN NULL ELSE - ( 42 ) END / 0 + 79 / - 64 ) END * + AVG ( DISTINCT + ( - 2 ) )
----
-15
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8623
SELECT 74 + + COUNT( * ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-8623
SELECT 74 + + COUNT ( * ) AS col0
----
75

query I rowsort
SELECT - 31 * + 11
----
-341

onlyif mysql # aggregate syntax: 
query I rowsort label-8625
SELECT ( 92 ) + COUNT( * ) col1
----
93

skipif mysql # not compatible
query I rowsort label-8625
SELECT ( 92 ) + COUNT ( * ) col1
----
93

query I rowsort
SELECT - 75 * 97 col1
----
-7275

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8627
SELECT DISTINCT + 79, COUNT( * ) * - 72 DIV + 26 AS col0
----
79
-2

skipif mysql # not compatible
query II rowsort label-8627
SELECT DISTINCT + 79, COUNT ( * ) * - 72 / + 26 AS col0
----
79
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8628
SELECT ALL + + 48 + COUNT( * ) - 93 - NULLIF ( 95, - - AVG ( DISTINCT 10 ) * CAST( NULL AS SIGNED ) ) + 96 + + + 6 * 76
----
413

skipif mysql # not compatible
query I rowsort label-8628
SELECT ALL + + 48 + COUNT ( * ) - 93 - NULLIF ( 95, - - AVG ( DISTINCT 10 ) * CAST ( NULL AS INTEGER ) ) + 96 + + + 6 * 76
----
413

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8629
SELECT + CAST( - 29 AS SIGNED ) + - - 67
----
38

skipif mysql # not compatible
query I rowsort label-8629
SELECT + CAST ( - 29 AS INTEGER ) + - - 67
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8630
SELECT ALL MIN( ALL - + 84 ) AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-8630
SELECT ALL MIN ( ALL - + 84 ) AS col1
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-8631
SELECT ALL + 65 * COUNT( * ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-8631
SELECT ALL + 65 * COUNT ( * ) AS col2
----
65

query I rowsort
SELECT DISTINCT + - COALESCE ( + + 20, + - 95 ) + - 84
----
-104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8633
SELECT + CAST( + COUNT( * ) AS SIGNED ) + + 76 AS col1
----
77

skipif mysql # not compatible
query I rowsort label-8633
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) + + 76 AS col1
----
77

query II rowsort
SELECT - + 20, 62 - - 76 AS col2
----
-20
138

query I rowsort
SELECT ALL + 21 + 32 * 27
----
885

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

query I rowsort
SELECT + 61 + + 36 + - 37
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8638
SELECT ALL CASE + 43 WHEN + + CAST( NULL AS SIGNED ) * 72 THEN NULL WHEN - + 51 * + 40 * COALESCE ( + 72, + COUNT( * ) ) THEN + 46 * 81 * 1 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8638
SELECT ALL CASE + 43 WHEN + + CAST ( NULL AS INTEGER ) * 72 THEN NULL WHEN - + 51 * + 40 * COALESCE ( + 72, + COUNT ( * ) ) THEN + 46 * 81 * 1 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8639
SELECT DISTINCT NULLIF ( + 41, - 8 * CAST( NULL AS SIGNED ) )
----
41

skipif mysql # not compatible
query I rowsort label-8639
SELECT DISTINCT NULLIF ( + 41, - 8 * CAST ( NULL AS INTEGER ) )
----
41

query I rowsort
SELECT DISTINCT - ( 90 ) + + 26
----
-64

query I rowsort
SELECT ALL 39 * + ( - 80 ) * 58 + - + 97
----
-181057

query I rowsort
SELECT - 9 + 83 AS col2
----
74

query I rowsort
SELECT DISTINCT + ( - 86 )
----
-86

query I rowsort
SELECT + ( + ( 51 ) ) * - + 34 * 15 + + - 38 * - 69
----
-23388

onlyif mysql # aggregate syntax: 
query II rowsort label-8645
SELECT ALL COUNT( ALL 73 ) * - + 50 AS col0, COUNT( * ) * + 8 - - 89 + 38 AS col0
----
-50
135

skipif mysql # not compatible
query II rowsort label-8645
SELECT ALL COUNT ( ALL 73 ) * - + 50 AS col0, COUNT ( * ) * + 8 - - 89 + 38 AS col0
----
-50
135

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8647
SELECT ALL CASE + 8 WHEN + + 34 * + 74 THEN 54 WHEN 2 THEN NULL END * + 89 * - 23 * - - 50 - - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8647
SELECT ALL CASE + 8 WHEN + + 34 * + 74 THEN 54 WHEN 2 THEN NULL END * + 89 * - 23 * - - 50 - - COUNT ( * ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8648
SELECT ALL + 4 DIV + 69 AS col1, 1 * - 93 * - CASE + 17 WHEN - 89 THEN NULL ELSE + + 33 * + 61 * - 24 END AS col1
----
0
-4493016

skipif mysql # not compatible
query II rowsort label-8648
SELECT ALL + 4 / + 69 AS col1, 1 * - 93 * - CASE + 17 WHEN - 89 THEN NULL ELSE + + 33 * + 61 * - 24 END AS col1
----
0
-4493016

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8649
SELECT - COALESCE ( + - ( + 11 ), - - 56, + MIN( DISTINCT ( - 22 ) ) + + CAST( + COALESCE ( - COUNT( * ), 57, + + 37 * + 81 ) AS SIGNED ) DIV 71 * - + NULLIF ( - + 6, + 92 + + COUNT( * ) + - ( + 2 ) DIV - 94 ) + MAX( ALL - 83 ), + 10 ) DIV + - NULLIF ( - + 69, - - 36 * 15 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8649
SELECT - COALESCE ( + - ( + 11 ), - - 56, + MIN ( DISTINCT ( - 22 ) ) + + CAST ( + COALESCE ( - COUNT ( * ), 57, + + 37 * + 81 ) AS INTEGER ) / 71 * - + NULLIF ( - + 6, + 92 + + COUNT ( * ) + - ( + 2 ) / - 94 ) + MAX ( ALL - 83 ), + 10 ) / + - NULLIF ( - + 69, - - 36 * 15 ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8650
SELECT + CAST( 65 AS SIGNED ) + 51
----
116

skipif mysql # not compatible
query I rowsort label-8650
SELECT + CAST ( 65 AS INTEGER ) + 51
----
116

query I rowsort
SELECT ALL 61 * - + 59 AS col0
----
-3599

onlyif mysql # aggregate syntax: 
query II rowsort label-8652
SELECT - ( + COUNT( * ) ) * 19 + + 5 + + - 27 * 14 * 93 AS col2, COUNT( * ) + - 29 * + 92
----
-35168
-2667

skipif mysql # not compatible
query II rowsort label-8652
SELECT - ( + COUNT ( * ) ) * 19 + + 5 + + - 27 * 14 * 93 AS col2, COUNT ( * ) + - 29 * + 92
----
-35168
-2667

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8654
SELECT ALL 26 * + 49 * - 27 - - + 15 + COUNT( * ) - 44 AS col1
----
-34426

skipif mysql # not compatible
query I rowsort label-8654
SELECT ALL 26 * + 49 * - 27 - - + 15 + COUNT ( * ) - 44 AS col1
----
-34426

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8655
SELECT DISTINCT 96 * + 57 * - + 99, 82 * + - CAST( NULL AS SIGNED ) AS col1
----
-541728
NULL

skipif mysql # not compatible
query II rowsort label-8655
SELECT DISTINCT 96 * + 57 * - + 99, 82 * + - CAST ( NULL AS INTEGER ) AS col1
----
-541728
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8656
SELECT DISTINCT MAX( ALL - CASE + 42 WHEN + 17 THEN NULL WHEN 30 THEN - 79 ELSE NULL END ) * - + 38 - - - COUNT( * ) * + 75 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8656
SELECT DISTINCT MAX ( ALL - CASE + 42 WHEN + 17 THEN NULL WHEN 30 THEN - 79 ELSE NULL END ) * - + 38 - - - COUNT ( * ) * + 75 AS col1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8658
SELECT DISTINCT 36 * - COUNT( * ) * - COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-8658
SELECT DISTINCT 36 * - COUNT ( * ) * - COUNT ( * )
----
36

query I rowsort
SELECT ALL + - 49
----
-49

query I rowsort
SELECT - - 37 - - - 79
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-8661
SELECT + + 62 - - - ( - + 80 ) + + ( COUNT( * ) ) AS col1
----
143

skipif mysql # not compatible
query I rowsort label-8661
SELECT + + 62 - - - ( - + 80 ) + + ( COUNT ( * ) ) AS col1
----
143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8662
SELECT + MIN( + CAST( + 90 AS SIGNED ) ) AS col0
----
90

skipif mysql # not compatible
query I rowsort label-8662
SELECT + MIN ( + CAST ( + 90 AS INTEGER ) ) AS col0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8663
SELECT 40 * - 38 * + COUNT( * ) * + ( - - 74 ) * - - 15 + + 21 AS col2
----
-1687179

skipif mysql # not compatible
query I rowsort label-8663
SELECT 40 * - 38 * + COUNT ( * ) * + ( - - 74 ) * - - 15 + + 21 AS col2
----
-1687179

query II rowsort
SELECT ALL 29 + 6 AS col0, + 24 col1
----
35
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8665
SELECT ALL + CAST( - 84 AS SIGNED ) + + 1 AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-8665
SELECT ALL + CAST ( - 84 AS INTEGER ) + + 1 AS col2
----
-83

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

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

query I rowsort
SELECT ALL - 85 + 81 - 56
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-8668
SELECT DISTINCT MIN( DISTINCT - 1 ) + NULLIF ( 32, + - ( - COUNT( * ) ) ) + - 12 + - - 76 * - 9 * 1 AS col2, - 68 AS col2
----
-665
-68

skipif mysql # not compatible
query II rowsort label-8668
SELECT DISTINCT MIN ( DISTINCT - 1 ) + NULLIF ( 32, + - ( - COUNT ( * ) ) ) + - 12 + - - 76 * - 9 * 1 AS col2, - 68 AS col2
----
-665
-68

query I rowsort
SELECT - + 14
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-8670
SELECT DISTINCT + 66 + 34 * + - 68 * + COUNT( * ) AS col2
----
-2246

skipif mysql # not compatible
query I rowsort label-8670
SELECT DISTINCT + 66 + 34 * + - 68 * + COUNT ( * ) AS col2
----
-2246

onlyif mysql # aggregate syntax: 
query I rowsort label-8671
SELECT - 32 + + - COUNT( * ) + - 51 * + 40 AS col1
----
-2073

skipif mysql # not compatible
query I rowsort label-8671
SELECT - 32 + + - COUNT ( * ) + - 51 * + 40 AS col1
----
-2073

query I rowsort
SELECT - COALESCE ( - + 45, + 82 ) + 85 * 63 AS col1
----
5400

query I rowsort
SELECT ALL - 84 + - COALESCE ( - 29, - + 4 ) AS col2
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8674
SELECT ALL CASE COUNT( * ) WHEN + + 83 THEN - - 6 - - CAST( - 63 AS SIGNED ) / - 85 * MAX( - ( 35 ) ) WHEN + 20 THEN NULL ELSE - 63 + - 1 + + - 81 END, 86 - 79 col2
----
-145
7

skipif mysql # not compatible
query II rowsort label-8674
SELECT ALL CASE COUNT ( * ) WHEN + + 83 THEN - - 6 - - CAST ( - 63 AS INTEGER ) / - 85 * MAX ( - ( 35 ) ) WHEN + 20 THEN NULL ELSE - 63 + - 1 + + - 81 END, 86 - 79 col2
----
-145
7

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

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

query I rowsort
SELECT ALL ( + ( + 12 ) ) - + 3
----
9

query I rowsort
SELECT ALL ( 34 ) AS col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8678
SELECT DISTINCT COUNT( - - 88 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8678
SELECT DISTINCT COUNT ( - - 88 ) AS col2
----
1

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

query I rowsort
SELECT - ( - + 85 ) AS col1
----
85

query II rowsort
SELECT 23 AS col2, 46 AS col0
----
23
46

query I rowsort
SELECT - ( 29 ) * + - ( 71 ) * + + ( 34 )
----
70006

query II rowsort
SELECT + 37 AS col2, 50 AS col0
----
37
50

query I rowsort
SELECT ALL + 8 * + 56 * + 38 * + 80 AS col2
----
1361920

onlyif mysql # aggregate syntax: 
query I rowsort label-8685
SELECT - ( + 58 ) + 5 * - COALESCE ( CASE - + 91 WHEN + 80 + - COUNT( * ) THEN 80 WHEN 99 / MAX( ALL + - 67 ) THEN NULL WHEN - + COUNT( * ) THEN 1 ELSE 7 END, - COUNT( * ) * - 58, + 80 ) AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-8685
SELECT - ( + 58 ) + 5 * - COALESCE ( CASE - + 91 WHEN + 80 + - COUNT ( * ) THEN 80 WHEN 99 / MAX ( ALL + - 67 ) THEN NULL WHEN - + COUNT ( * ) THEN 1 ELSE 7 END, - COUNT ( * ) * - 58, + 80 ) AS col2
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-8686
SELECT + COUNT( + ( 31 ) )
----
1

skipif mysql # not compatible
query I rowsort label-8686
SELECT + COUNT ( + ( 31 ) )
----
1

query I rowsort
SELECT ALL + NULLIF ( 67, + 51 ) col0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8688
SELECT + 71 * - SUM( ALL + 77 ) - + + 77 AS col0
----
-5544

skipif mysql # not compatible
query I rowsort label-8688
SELECT + 71 * - SUM ( ALL + 77 ) - + + 77 AS col0
----
-5544

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8690
SELECT - 13 * ( - + COUNT( * ) ) * + - MAX( DISTINCT 88 ) AS col0
----
-1144

skipif mysql # not compatible
query I rowsort label-8690
SELECT - 13 * ( - + COUNT ( * ) ) * + - MAX ( DISTINCT 88 ) AS col0
----
-1144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8691
SELECT - ( + 11 ) + COUNT( * ) DIV - CAST( + + 12 AS SIGNED ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-8691
SELECT - ( + 11 ) + COUNT ( * ) / - CAST ( + + 12 AS INTEGER ) AS col1
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-8692
SELECT ALL + 68 AS col0, - 31 - - 42 + COUNT( * ) + - 51 * + 26 AS col2
----
68
-1314

skipif mysql # not compatible
query II rowsort label-8692
SELECT ALL + 68 AS col0, - 31 - - 42 + COUNT ( * ) + - 51 * + 26 AS col2
----
68
-1314

onlyif mysql # aggregate syntax: 
query II rowsort label-8693
SELECT ALL + 42 AS col1, CASE - COALESCE ( - 0, - - 73 * + CASE + 50 WHEN - + COUNT( ALL + 61 ) THEN - COUNT( * ) / 28 WHEN - + COALESCE ( + COUNT( * ), + 0 * + 90 - - - 5 * - MAX( ALL - - 48 ) ) THEN NULL END ) WHEN - 86 * 52 THEN - 89 WHEN - 44 THEN NULL ELSE NULL END
----
42
NULL

skipif mysql # not compatible
query II rowsort label-8693
SELECT ALL + 42 AS col1, CASE - COALESCE ( - 0, - - 73 * + CASE + 50 WHEN - + COUNT ( ALL + 61 ) THEN - COUNT ( * ) / 28 WHEN - + COALESCE ( + COUNT ( * ), + 0 * + 90 - - - 5 * - MAX ( ALL - - 48 ) ) THEN NULL END ) WHEN - 86 * 52 THEN - 89 WHEN - 44 THEN NULL ELSE NULL END
----
42
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8694
SELECT ( - CAST( + 57 AS SIGNED ) ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-8694
SELECT ( - CAST ( + 57 AS INTEGER ) ) AS col1
----
-57

query I rowsort
SELECT - - 50 * 72
----
3600

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8696
SELECT + - CAST( - 11 AS SIGNED ) DIV + 97 + - 54
----
-54

skipif mysql # not compatible
query I rowsort label-8696
SELECT + - CAST ( - 11 AS INTEGER ) / + 97 + - 54
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8697
SELECT - CAST( - 13 AS SIGNED ) * - - 6 - + 31 * + COUNT( * ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-8697
SELECT - CAST ( - 13 AS INTEGER ) * - - 6 - + 31 * + COUNT ( * ) AS col1
----
47

query II rowsort
SELECT ALL + 67 col2, + 75 AS col2
----
67
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8699
SELECT - 35 + + ( CAST( + 37 AS SIGNED ) )
----
2

skipif mysql # not compatible
query I rowsort label-8699
SELECT - 35 + + ( CAST ( + 37 AS INTEGER ) )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8700
SELECT DISTINCT 78 * + ( + MIN( 28 ) )
----
2184

skipif mysql # not compatible
query I rowsort label-8700
SELECT DISTINCT 78 * + ( + MIN ( 28 ) )
----
2184

query II rowsort
SELECT 70 AS col0, 28 AS col0
----
70
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8702
SELECT ALL + NULLIF ( - CAST( NULL AS SIGNED ), - 83 * + COUNT( - - ( 59 ) ) * 99 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8702
SELECT ALL + NULLIF ( - CAST ( NULL AS INTEGER ), - 83 * + COUNT ( - - ( 59 ) ) * 99 ) AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8704
SELECT DISTINCT + 87 * - 69 * - + 74 / ( - COUNT( * ) ) - CAST( NULL AS SIGNED ) col1, 91 * + CAST( + 32 AS SIGNED ) + + - COUNT( * ) * + - COUNT( * ) * + - COALESCE ( - ( COUNT( * ) ), 52 + + + 93, + 38 + NULLIF ( CAST( NULL AS SIGNED ), - 49 ) ) - SUM( ALL + ( 9 ) ) AS col1
----
NULL
2904

skipif mysql # not compatible
query II rowsort label-8704
SELECT DISTINCT + 87 * - 69 * - + 74 / ( - COUNT ( * ) ) - CAST ( NULL AS INTEGER ) col1, 91 * + CAST ( + 32 AS INTEGER ) + + - COUNT ( * ) * + - COUNT ( * ) * + - COALESCE ( - ( COUNT ( * ) ), 52 + + + 93, + 38 + NULLIF ( CAST ( NULL AS INTEGER ), - 49 ) ) - SUM ( ALL + ( 9 ) ) AS col1
----
NULL
2904

onlyif mysql # aggregate syntax: 
query I rowsort label-8705
SELECT ALL - 62 * COUNT( * ) + - 39 + - 80 + + 92 * COUNT( * ) AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-8705
SELECT ALL - 62 * COUNT ( * ) + - 39 + - 80 + + 92 * COUNT ( * ) AS col1
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8706
SELECT 7 AS col1, + COUNT( * ) + + CAST( NULL AS SIGNED ) - - NULLIF ( - + 55, + + 57 ) + + COUNT( * ) + - + NULLIF ( 47, + - CAST( - + 19 AS DECIMAL ) ) * - 27 AS col1
----
7
NULL

skipif mysql # not compatible
query II rowsort label-8706
SELECT 7 AS col1, + COUNT ( * ) + + CAST ( NULL AS INTEGER ) - - NULLIF ( - + 55, + + 57 ) + + COUNT ( * ) + - + NULLIF ( 47, + - CAST ( - + 19 AS REAL ) ) * - 27 AS col1
----
7
NULL

query I rowsort
SELECT - - 26 col0
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8708
SELECT ALL + + COUNT( * ) * - 98 + - 19 AS col0, - 51 DIV + 5 col0
----
-117
-10

skipif mysql # not compatible
query II rowsort label-8708
SELECT ALL + + COUNT ( * ) * - 98 + - 19 AS col0, - 51 / + 5 col0
----
-117
-10

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

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

query I rowsort
SELECT + 87 * + COALESCE ( + 59, + + 24, + - 12 )
----
5133

onlyif mysql # aggregate syntax: 
query II rowsort label-8711
SELECT DISTINCT 21 * - + 24, - COUNT( * ) AS col0
----
-504
-1

skipif mysql # not compatible
query II rowsort label-8711
SELECT DISTINCT 21 * - + 24, - COUNT ( * ) AS col0
----
-504
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8712
SELECT DISTINCT 33 * COUNT( * ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-8712
SELECT DISTINCT 33 * COUNT ( * ) AS col0
----
33

query I rowsort
SELECT ALL 72 col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8714
SELECT 37 * + 4 * + COUNT( * )
----
148

skipif mysql # not compatible
query I rowsort label-8714
SELECT 37 * + 4 * + COUNT ( * )
----
148

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8715
SELECT 72 + CAST( - 10 AS SIGNED ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-8715
SELECT 72 + CAST ( - 10 AS INTEGER ) AS col2
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8716
SELECT 43 + - COUNT( - 73 ) + - ( - 28 ) * + + CAST( NULL AS SIGNED ) / + - COALESCE ( - 36, + 15 * - 90, - 1 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8716
SELECT 43 + - COUNT ( - 73 ) + - ( - 28 ) * + + CAST ( NULL AS INTEGER ) / + - COALESCE ( - 36, + 15 * - 90, - 1 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8717
SELECT ( + COALESCE ( + 55, + NULLIF ( - COALESCE ( COALESCE ( + + 22, + ( - - 62 ), - COUNT( * ) ), - - 67 + - 21 + + - 51 * COUNT( * ) DIV - COALESCE ( ( - - 8 ), 24 + + + 95 - COUNT( * ) * - COUNT( ALL + 14 ), 10 ) ), + 42 + + MAX( CAST( + - 35 AS SIGNED ) ) ) ) ) + 85 - 94 - 5 DIV 12 * COALESCE ( - MIN( 53 ), 29 ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-8717
SELECT ( + COALESCE ( + 55, + NULLIF ( - COALESCE ( COALESCE ( + + 22, + ( - - 62 ), - COUNT ( * ) ), - - 67 + - 21 + + - 51 * COUNT ( * ) / - COALESCE ( ( - - 8 ), 24 + + + 95 - COUNT ( * ) * - COUNT ( ALL + 14 ), 10 ) ), + 42 + + MAX ( CAST ( + - 35 AS INTEGER ) ) ) ) ) + 85 - 94 - 5 / 12 * COALESCE ( - MIN ( 53 ), 29 ) AS col0
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-8718
SELECT 88 - - 67 * + COUNT( + 81 ) - - 3 AS col2, COUNT( * ) * - 23
----
158
-23

skipif mysql # not compatible
query II rowsort label-8718
SELECT 88 - - 67 * + COUNT ( + 81 ) - - 3 AS col2, COUNT ( * ) * - 23
----
158
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-8719
SELECT MAX( 27 ) * - 93 + + 13 + + 18 AS col1, 32 * - 3 * - 42
----
-2480
4032

skipif mysql # not compatible
query II rowsort label-8719
SELECT MAX ( 27 ) * - 93 + + 13 + + 18 AS col1, 32 * - 3 * - 42
----
-2480
4032

query I rowsort
SELECT 98 + + + 12
----
110

query I rowsort
SELECT DISTINCT 90 - + + 73 + - - 24 AS col0
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-8722
SELECT DISTINCT - 59 DIV 14 * - - 24
----
-96

skipif mysql # not compatible
query I rowsort label-8722
SELECT DISTINCT - 59 / 14 * - - 24
----
-96

query I rowsort
SELECT ALL - 17 col2
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8724
SELECT CAST( NULL AS SIGNED ) * 18 + - 91 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8724
SELECT CAST ( NULL AS INTEGER ) * 18 + - 91 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8725
SELECT DISTINCT 19 DIV + - 46
----
0

skipif mysql # not compatible
query I rowsort label-8725
SELECT DISTINCT 19 / + - 46
----
0

query I rowsort
SELECT ALL + 41 + - 23 AS col1
----
18

query I rowsort
SELECT 23 + + + 62 - 10 AS col1
----
75

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

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

query I rowsort
SELECT 94 * - 88
----
-8272

query I rowsort
SELECT DISTINCT - + 76
----
-76

query I rowsort
SELECT DISTINCT - + 4 + - 49 + - + 90 AS col0
----
-143

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8733
SELECT COUNT( * ) + - - COUNT( * ) * - COALESCE ( + CASE + 49 WHEN + 3 THEN + 51 * SUM( DISTINCT + 43 ) + 65 END, + - 44 * + + CASE CAST( + + 49 AS SIGNED ) WHEN CAST( NULL AS SIGNED ) THEN 58 ELSE NULL END - - - 62, - 81 DIV + 70 - - + SUM( ALL - 86 ), - 38 ) + + - 73 + 71 + + + 46 AS col1
----
132

skipif mysql # not compatible
query I rowsort label-8733
SELECT COUNT ( * ) + - - COUNT ( * ) * - COALESCE ( + CASE + 49 WHEN + 3 THEN + 51 * SUM ( DISTINCT + 43 ) + 65 END, + - 44 * + + CASE CAST ( + + 49 AS INTEGER ) WHEN CAST ( NULL AS INTEGER ) THEN 58 ELSE NULL END - - - 62, - 81 / + 70 - - + SUM ( ALL - 86 ), - 38 ) + + - 73 + 71 + + + 46 AS col1
----
132

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8735
SELECT + COALESCE ( - - SUM( DISTINCT - 37 ), + COUNT( * ) * + 38 + - + 22 + + + 95 ) DIV + 21 * - ( + - COALESCE ( + 1, + + 68 * COUNT( * ) ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8735
SELECT + COALESCE ( - - SUM ( DISTINCT - 37 ), + COUNT ( * ) * + 38 + - + 22 + + + 95 ) / + 21 * - ( + - COALESCE ( + 1, + + 68 * COUNT ( * ) ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8736
SELECT + - COALESCE ( + 29, - - 59, + COUNT( * ) ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-8736
SELECT + - COALESCE ( + 29, - - 59, + COUNT ( * ) ) AS col2
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8737
SELECT + - MAX( - - NULLIF ( + + 31, + 89 ) ) * - COUNT( * ) + - 22 * CAST( + 64 AS SIGNED ) - - + 55 * + + NULLIF ( + + 63, + 30 * - 41 * + COALESCE ( + COUNT( * ), 93 / - 1 / + + 58 * + 92 ) + 3 )
----
2088

skipif mysql # not compatible
query I rowsort label-8737
SELECT + - MAX ( - - NULLIF ( + + 31, + 89 ) ) * - COUNT ( * ) + - 22 * CAST ( + 64 AS INTEGER ) - - + 55 * + + NULLIF ( + + 63, + 30 * - 41 * + COALESCE ( + COUNT ( * ), 93 / - 1 / + + 58 * + 92 ) + 3 )
----
2088

onlyif mysql # aggregate syntax: 
query I rowsort label-8738
SELECT 87 * MIN( + 45 ) AS col2
----
3915

skipif mysql # not compatible
query I rowsort label-8738
SELECT 87 * MIN ( + 45 ) AS col2
----
3915

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8739
SELECT ALL - - 62 * + CAST( - - COUNT( * ) AS SIGNED ) * + - 60 + + 70 * - 2 * COUNT( * ) * - + 4 AS col0
----
-3160

skipif mysql # not compatible
query I rowsort label-8739
SELECT ALL - - 62 * + CAST ( - - COUNT ( * ) AS INTEGER ) * + - 60 + + 70 * - 2 * COUNT ( * ) * - + 4 AS col0
----
-3160

onlyif mysql # aggregate syntax: 
query I rowsort label-8740
SELECT DISTINCT - - SUM( + ( - - 22 ) ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-8740
SELECT DISTINCT - - SUM ( + ( - - 22 ) ) AS col0
----
22

query I rowsort
SELECT ALL + + 37 - + + 60
----
-23

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

skipif mysql # not compatible
query I rowsort label-8742
SELECT DISTINCT + 6 / - COUNT ( * )
----
-6

query I rowsort
SELECT ALL 97 * COALESCE ( + + 4, - 53 * + - 96 * 92 + 12 - + ( + 20 ) + + + 13 + 83 )
----
388

query I rowsort
SELECT - 67 * + 9 AS col0
----
-603

onlyif mysql # aggregate syntax: 
query I rowsort label-8745
SELECT ALL + - MIN( + 24 ) * - - SUM( + 82 ) AS col0
----
-1968

skipif mysql # not compatible
query I rowsort label-8745
SELECT ALL + - MIN ( + 24 ) * - - SUM ( + 82 ) AS col0
----
-1968

query I rowsort
SELECT - 85 - 49 col2
----
-134

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8747
SELECT DISTINCT + COUNT( * ) * ( + CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8747
SELECT DISTINCT + COUNT ( * ) * ( + CAST ( NULL AS REAL ) ) AS col0
----
NULL

query I rowsort
SELECT + 33 * - - 94 AS col0
----
3102

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-8749
SELECT DISTINCT 73, 30 DIV - 11 + - COALESCE ( + 89, 87 ) * + - 40 + + 32 AS col2, + 60 * - 90 + - COUNT( * ) * 20 * - COUNT( * ) * 93 * - + NULLIF ( 82, + + 84 + ( + - 70 ) * - COUNT( * ) * - COUNT( * ) * - 83 ) + - 6 + - 45 * - - 88 AS col1
----
73
3590
-161886

skipif mysql # not compatible
query III rowsort label-8749
SELECT DISTINCT 73, 30 / - 11 + - COALESCE ( + 89, 87 ) * + - 40 + + 32 AS col2, + 60 * - 90 + - COUNT ( * ) * 20 * - COUNT ( * ) * 93 * - + NULLIF ( 82, + + 84 + ( + - 70 ) * - COUNT ( * ) * - COUNT ( * ) * - 83 ) + - 6 + - 45 * - - 88 AS col1
----
73
3590
-161886

query I rowsort
SELECT 88 + + ( - 94 )
----
-6

query II rowsort
SELECT DISTINCT 31, 21 AS col2
----
31
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8752
SELECT ALL 14 * - + COUNT( * ) AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-8752
SELECT ALL 14 * - + COUNT ( * ) AS col2
----
-14

query I rowsort
SELECT DISTINCT 31 * + - 91 AS col0
----
-2821

query II rowsort
SELECT - 92 col0, 67 AS col2
----
-92
67

onlyif mysql # DIV for integer division: 
query II rowsort label-8755
SELECT ALL 94 AS col1, - 17 - - + 91 DIV 44 * + 68 AS col2
----
94
119

skipif mysql # not compatible
query II rowsort label-8755
SELECT ALL 94 AS col1, - 17 - - + 91 / 44 * + 68 AS col2
----
94
119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8756
SELECT ALL MIN( + 44 ) * + 37 * - + CASE + + 48 WHEN + 70 THEN + COUNT( * ) + - 93 WHEN MIN( - 18 ) THEN NULL END * 83 * - - 7 * AVG ( + 14 ) / - CAST( + 90 AS SIGNED ) * + - COUNT( * ) + 78 + - + 67 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8756
SELECT ALL MIN ( + 44 ) * + 37 * - + CASE + + 48 WHEN + 70 THEN + COUNT ( * ) + - 93 WHEN MIN ( - 18 ) THEN NULL END * 83 * - - 7 * AVG ( + 14 ) / - CAST ( + 90 AS INTEGER ) * + - COUNT ( * ) + 78 + - + 67 AS col2
----
NULL

query I rowsort
SELECT ALL 78 * + - 31 AS col2
----
-2418

query I rowsort
SELECT 78 + + - 35 * - - 59 AS col2
----
-1987

onlyif mysql # aggregate syntax: 
query I rowsort label-8759
SELECT ALL - COUNT( * ) * - 61 + + ( - COUNT( * ) )
----
60

skipif mysql # not compatible
query I rowsort label-8759
SELECT ALL - COUNT ( * ) * - 61 + + ( - COUNT ( * ) )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8760
SELECT MAX( - ( - 69 ) ) + 20 + + + 1 AS col0
----
90

skipif mysql # not compatible
query I rowsort label-8760
SELECT MAX ( - ( - 69 ) ) + 20 + + + 1 AS col0
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8761
SELECT ( + CASE - 72 WHEN + 59 THEN + SUM( - CAST( 75 AS SIGNED ) ) * - 70 END ) * + 48 / + 71 * - - 42 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8761
SELECT ( + CASE - 72 WHEN + 59 THEN + SUM ( - CAST ( 75 AS INTEGER ) ) * - 70 END ) * + 48 / + 71 * - - 42 AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8763
SELECT ALL - 5 * - 18 + COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-8763
SELECT ALL - 5 * - 18 + COUNT ( * )
----
91

query I rowsort
SELECT ALL 36 * + 50
----
1800

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

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

query I rowsort
SELECT 33 + - 92 AS col0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8767
SELECT ALL + 18 * 26 + 31 + COUNT( * ) - + + 14 + - - COUNT( * ) - - 43 AS col2
----
530

skipif mysql # not compatible
query I rowsort label-8767
SELECT ALL + 18 * 26 + 31 + COUNT ( * ) - + + 14 + - - COUNT ( * ) - - 43 AS col2
----
530

onlyif mysql # aggregate syntax: 
query I rowsort label-8768
SELECT MIN( - + 65 ) col0
----
-65

skipif mysql # not compatible
query I rowsort label-8768
SELECT MIN ( - + 65 ) col0
----
-65

query I rowsort
SELECT ALL - + 10 * ( 79 ) + COALESCE ( + 57, 70 - - - 17 ) AS col0
----
-733

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8770
SELECT + + 89 * - - ( + - COALESCE ( 14, + 20 ) ) - - + 13 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8770
SELECT + + 89 * - - ( + - COALESCE ( 14, + 20 ) ) - - + 13 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - 4 * + - 83 AS col2
----
332

query I rowsort
SELECT ALL - - ( + - 27 ) * + 64 col0
----
-1728

query I rowsort
SELECT - ( + 20 ) * - 47
----
940

query I rowsort
SELECT ALL 11 * - + 8
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8775
SELECT ALL - CAST( NULL AS SIGNED ) - + COUNT( * ) * - + 51 col0, - 70
----
NULL
-70

skipif mysql # not compatible
query II rowsort label-8775
SELECT ALL - CAST ( NULL AS INTEGER ) - + COUNT ( * ) * - + 51 col0, - 70
----
NULL
-70

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

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

query I rowsort
SELECT ALL + + ( - + 87 ) AS col1
----
-87

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8780
SELECT ALL - MIN( DISTINCT - - 63 ) - 54 AS col1, - SUM( - 29 ) col0
----
-117
29

skipif mysql # not compatible
query II rowsort label-8780
SELECT ALL - MIN ( DISTINCT - - 63 ) - 54 AS col1, - SUM ( - 29 ) col0
----
-117
29

query I rowsort
SELECT DISTINCT 52 col2
----
52

query I rowsort
SELECT - + 30 + + 26 - 89 AS col0
----
-93

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8784
SELECT ALL + 76 DIV - 31 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-8784
SELECT ALL + 76 / - 31 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-8785
SELECT - COUNT( * ) AS col0, + 47 + + 68 - 11 AS col1
----
-1
104

skipif mysql # not compatible
query II rowsort label-8785
SELECT - COUNT ( * ) AS col0, + 47 + + 68 - 11 AS col1
----
-1
104

query I rowsort
SELECT ALL NULLIF ( + 80, + 40 ) AS col0
----
80

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8788
SELECT - ( - ( - - 28 ) ) DIV + 10 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-8788
SELECT - ( - ( - - 28 ) ) / + 10 AS col0
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-8789
SELECT ALL + 77 DIV + 61 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8789
SELECT ALL + 77 / + 61 AS col2
----
1

query I rowsort
SELECT - ( + CASE COALESCE ( 47, - 59 * - 22 ) WHEN - 11 + + 61 THEN - 33 END ) + 30
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8791
SELECT - MIN( ALL - ( CAST( + + 3 AS SIGNED ) ) ) + - 39 + NULLIF ( + COUNT( * ), - COUNT( * ) ) * + + COUNT( * ) AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-8791
SELECT - MIN ( ALL - ( CAST ( + + 3 AS INTEGER ) ) ) + - 39 + NULLIF ( + COUNT ( * ), - COUNT ( * ) ) * + + COUNT ( * ) AS col2
----
-35

query I rowsort
SELECT ALL NULLIF ( - 49, 80 )
----
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-8793
SELECT ALL 89 AS col1, + 80 * + - CASE 98 WHEN 14 THEN NULL WHEN 78 + - 50 * + 24 * 35 THEN + 85 WHEN + + 59 * + NULLIF ( 78, + - 38 ) + + + MIN( 25 ) * - 49 / + COUNT( ALL 60 ) * - - COUNT( * ) THEN NULL END
----
89
NULL

skipif mysql # not compatible
query II rowsort label-8793
SELECT ALL 89 AS col1, + 80 * + - CASE 98 WHEN 14 THEN NULL WHEN 78 + - 50 * + 24 * 35 THEN + 85 WHEN + + 59 * + NULLIF ( 78, + - 38 ) + + + MIN ( 25 ) * - 49 / + COUNT ( ALL 60 ) * - - COUNT ( * ) THEN NULL END
----
89
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8794
SELECT DISTINCT ( COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8794
SELECT DISTINCT ( COUNT ( * ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8795
SELECT - MIN( ALL + 41 ) + 61 * MAX( DISTINCT + ( 48 ) ) * ( 54 ) + 28 * - - 69 AS col2
----
160003

skipif mysql # not compatible
query I rowsort label-8795
SELECT - MIN ( ALL + 41 ) + 61 * MAX ( DISTINCT + ( 48 ) ) * ( 54 ) + 28 * - - 69 AS col2
----
160003

query I rowsort
SELECT + 66 - + 30 AS col0
----
36

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

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

query I rowsort
SELECT + 42 + - - COALESCE ( - 88, 91, - + ( + - 48 ) )
----
-46

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8801
SELECT ALL - COUNT( * ) + - 95 AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-8801
SELECT ALL - COUNT ( * ) + - 95 AS col1
----
-96

query I rowsort
SELECT + 6 + 83 AS col0
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-8803
SELECT ALL 15 AS col2, MIN( DISTINCT 92 ) AS col0
----
15
92

skipif mysql # not compatible
query II rowsort label-8803
SELECT ALL 15 AS col2, MIN ( DISTINCT 92 ) AS col0
----
15
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8804
SELECT ALL + - CAST( NULL AS SIGNED ) / 97 * - 19 * + 16 * + COUNT( * ) + - 75, ( + 5 ) * + ( + 78 ) * + + CAST( NULL AS SIGNED ) + + 41 + - 17
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8804
SELECT ALL + - CAST ( NULL AS INTEGER ) / 97 * - 19 * + 16 * + COUNT ( * ) + - 75, ( + 5 ) * + ( + 78 ) * + + CAST ( NULL AS INTEGER ) + + 41 + - 17
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8805
SELECT - - COUNT( * ) * 57 + + - 57 + + - ( 45 ) + - + ( + 36 ) + - + COUNT( * ) + - 91 + + ( - + 57 ) col1
----
-230

skipif mysql # not compatible
query I rowsort label-8805
SELECT - - COUNT ( * ) * 57 + + - 57 + + - ( 45 ) + - + ( + 36 ) + - + COUNT ( * ) + - 91 + + ( - + 57 ) col1
----
-230

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8806
SELECT ALL + - NULLIF ( 22, + CAST( NULL AS SIGNED ) ) DIV 9 + 11 AS col2
----
9

skipif mysql # not compatible
query I rowsort label-8806
SELECT ALL + - NULLIF ( 22, + CAST ( NULL AS INTEGER ) ) / 9 + 11 AS col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8807
SELECT + - SUM( DISTINCT - - 77 )
----
-77

skipif mysql # not compatible
query I rowsort label-8807
SELECT + - SUM ( DISTINCT - - 77 )
----
-77

query II rowsort
SELECT + - 32, - 37 * - 54 AS col2
----
-32
1998

query I rowsort
SELECT ALL + - NULLIF ( - + 91, - 29 ) AS col2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8810
SELECT - + COUNT( ALL - + 19 ) * - 9
----
9

skipif mysql # not compatible
query I rowsort label-8810
SELECT - + COUNT ( ALL - + 19 ) * - 9
----
9

query I rowsort
SELECT + 60 * + 15 AS col1
----
900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8812
SELECT + 99 + - ( + CAST( NULL AS SIGNED ) ) + + + 31 * - CASE - 74 WHEN 59 THEN NULL WHEN - + 49 THEN - + CAST( - 71 AS SIGNED ) ELSE NULL END / 25
----
NULL

skipif mysql # not compatible
query I rowsort label-8812
SELECT + 99 + - ( + CAST ( NULL AS INTEGER ) ) + + + 31 * - CASE - 74 WHEN 59 THEN NULL WHEN - + 49 THEN - + CAST ( - 71 AS INTEGER ) ELSE NULL END / 25
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8813
SELECT DISTINCT + 13 * - - ( - SUM( ALL - + 30 ) ) * - 26 - - 43 AS col0
----
-10097

skipif mysql # not compatible
query I rowsort label-8813
SELECT DISTINCT + 13 * - - ( - SUM ( ALL - + 30 ) ) * - 26 - - 43 AS col0
----
-10097

onlyif mysql # aggregate syntax: 
query I rowsort label-8814
SELECT - MIN( DISTINCT + 59 )
----
-59

skipif mysql # not compatible
query I rowsort label-8814
SELECT - MIN ( DISTINCT + 59 )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8815
SELECT ALL 95 * + COUNT( + 88 ) - 48 AS col2
----
47

skipif mysql # not compatible
query I rowsort label-8815
SELECT ALL 95 * + COUNT ( + 88 ) - 48 AS col2
----
47

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8817
SELECT ALL - 6 * + 4 * - SUM( ALL + + 28 ) * + 32 - - 60, 71 AS col1
----
21564
71

skipif mysql # not compatible
query II rowsort label-8817
SELECT ALL - 6 * + 4 * - SUM ( ALL + + 28 ) * + 32 - - 60, 71 AS col1
----
21564
71

onlyif mysql # aggregate syntax: 
query II rowsort label-8818
SELECT ALL + 91 AS col2, + COUNT( * ) - + 42 + - 96 AS col0
----
91
-137

skipif mysql # not compatible
query II rowsort label-8818
SELECT ALL + 91 AS col2, + COUNT ( * ) - + 42 + - 96 AS col0
----
91
-137

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8819
SELECT 20 DIV - - 96 + + + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8819
SELECT 20 / - - 96 + + + COUNT ( * ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-8820
SELECT + 30 AS col0, - 53 DIV - + 70 AS col1
----
30
0

skipif mysql # not compatible
query II rowsort label-8820
SELECT + 30 AS col0, - 53 / - + 70 AS col1
----
30
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8821
SELECT ALL + + COUNT( * ) AS col2, 28
----
1
28

skipif mysql # not compatible
query II rowsort label-8821
SELECT ALL + + COUNT ( * ) AS col2, 28
----
1
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8822
SELECT + COUNT( DISTINCT 3 ) AS col2, + 92 DIV + 83
----
1
1

skipif mysql # not compatible
query II rowsort label-8822
SELECT + COUNT ( DISTINCT 3 ) AS col2, + 92 / + 83
----
1
1

query I rowsort
SELECT ALL + ( + - 16 ) AS col1
----
-16

query I rowsort
SELECT - 76 * + 18 AS col0
----
-1368

query II rowsort
SELECT ALL + 70, 47 AS col0
----
70
47

onlyif mysql # DIV for integer division: 
query I rowsort label-8826
SELECT + + 1 - + + 54 + - + 80 DIV - 34
----
-51

skipif mysql # not compatible
query I rowsort label-8826
SELECT + + 1 - + + 54 + - + 80 / - 34
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8827
SELECT - CAST( + 5 AS SIGNED ) * + 37 - + 91 + - 42 AS col2
----
-318

skipif mysql # not compatible
query I rowsort label-8827
SELECT - CAST ( + 5 AS INTEGER ) * + 37 - + 91 + - 42 AS col2
----
-318

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8829
SELECT + NULLIF ( ( - SUM( + + 18 ) ), + COALESCE ( 68, 48 ) * - 56 + - 76 ) * + ( - 76 ) + CAST( 3 AS SIGNED ) + - 33 AS col0
----
1338

skipif mysql # not compatible
query I rowsort label-8829
SELECT + NULLIF ( ( - SUM ( + + 18 ) ), + COALESCE ( 68, 48 ) * - 56 + - 76 ) * + ( - 76 ) + CAST ( 3 AS INTEGER ) + - 33 AS col0
----
1338

onlyif mysql # aggregate syntax: 
query I rowsort label-8830
SELECT ALL NULLIF ( - + 84, + COUNT( * ) )
----
-84

skipif mysql # not compatible
query I rowsort label-8830
SELECT ALL NULLIF ( - + 84, + COUNT ( * ) )
----
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-8831
SELECT DISTINCT ( ( + 85 ) ) * + COUNT( * ) - - - 92 + + ( - 39 ), ( + - COUNT( * ) ) col2
----
-46
-1

skipif mysql # not compatible
query II rowsort label-8831
SELECT DISTINCT ( ( + 85 ) ) * + COUNT ( * ) - - - 92 + + ( - 39 ), ( + - COUNT ( * ) ) col2
----
-46
-1

query I rowsort
SELECT DISTINCT ( + 75 ) col1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8833
SELECT ALL 99 * + 7 * + ( - + 75 ) + + + COUNT( * ) AS col2
----
-51974

skipif mysql # not compatible
query I rowsort label-8833
SELECT ALL 99 * + 7 * + ( - + 75 ) + + + COUNT ( * ) AS col2
----
-51974

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

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

query I rowsort
SELECT - 67 * - 97 AS col2
----
6499

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

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

query I rowsort
SELECT - 31 * + COALESCE ( + + 19, 50 + + 33, + 16 )
----
-589

onlyif mysql # aggregate syntax: 
query I rowsort label-8839
SELECT DISTINCT - 28 + 42 + - ( + 86 ) + + 62 * - COUNT( * ) AS col2
----
-134

skipif mysql # not compatible
query I rowsort label-8839
SELECT DISTINCT - 28 + 42 + - ( + 86 ) + + 62 * - COUNT ( * ) AS col2
----
-134

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8840
SELECT DISTINCT ( + - CAST( NULL AS DECIMAL ) ), - 28 AS col2
----
NULL
-28

skipif mysql # not compatible
query II rowsort label-8840
SELECT DISTINCT ( + - CAST ( NULL AS REAL ) ), - 28 AS col2
----
NULL
-28

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

query I rowsort
SELECT DISTINCT + 70 * + 91 AS col1
----
6370

query II rowsort
SELECT 3 + - 13 col1, 90 * 17 col0
----
-10
1530

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8844
SELECT - 88 + COALESCE ( - 10, + NULLIF ( 70, + CAST( - 89 AS DECIMAL ) ) + + + COUNT( * ) * + + 84, ( + - 7 ) * - 21 + 0 * + + 64 + + - 52 ) + COUNT( CAST( - + 85 AS SIGNED ) )
----
-97

skipif mysql # not compatible
query I rowsort label-8844
SELECT - 88 + COALESCE ( - 10, + NULLIF ( 70, + CAST ( - 89 AS REAL ) ) + + + COUNT ( * ) * + + 84, ( + - 7 ) * - 21 + 0 * + + 64 + + - 52 ) + COUNT ( CAST ( - + 85 AS INTEGER ) )
----
-97

query I rowsort
SELECT 93 * - - 41 + + - 56 * - 58 * 87 * + - 45 AS col2
----
-12712107

onlyif mysql # aggregate syntax: 
query II rowsort label-8846
SELECT ALL + COUNT( * ) - 9, + 33 + + 96 AS col1
----
-8
129

skipif mysql # not compatible
query II rowsort label-8846
SELECT ALL + COUNT ( * ) - 9, + 33 + + 96 AS col1
----
-8
129

query I rowsort
SELECT ALL - 85 col1
----
-85

query I rowsort
SELECT DISTINCT - - 89
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8849
SELECT ALL MIN( - + 61 ) * - 79
----
4819

skipif mysql # not compatible
query I rowsort label-8849
SELECT ALL MIN ( - + 61 ) * - 79
----
4819

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8850
SELECT - MIN( - 37 ) / - 21 / CAST( NULL AS SIGNED ) - - - 77 + 17 + 57 + + + 22 * ( - - 79 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8850
SELECT - MIN ( - 37 ) / - 21 / CAST ( NULL AS INTEGER ) - - - 77 + 17 + 57 + + + 22 * ( - - 79 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - + 12
----
-12

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8854
SELECT - - 15 * - - COUNT( * ) + - ( 31 ) + - ( + 86 )
----
-102

skipif mysql # not compatible
query I rowsort label-8854
SELECT - - 15 * - - COUNT ( * ) + - ( 31 ) + - ( + 86 )
----
-102

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

query I rowsort
SELECT DISTINCT - COALESCE ( - 46, - 77 * COALESCE ( + + COALESCE ( 70, 85, - 10 ), + 65 * 45 * - 65 ) ) AS col1
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8857
SELECT ( + - COUNT( * ) ) DIV 51
----
0

skipif mysql # not compatible
query I rowsort label-8857
SELECT ( + - COUNT ( * ) ) / 51
----
0

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8859
SELECT DISTINCT - 40 AS col1, - COUNT( DISTINCT + 31 ) DIV + COUNT( - + 0 ) + + 17 - - 3 * - 16 AS col0
----
-40
-32

skipif mysql # not compatible
query II rowsort label-8859
SELECT DISTINCT - 40 AS col1, - COUNT ( DISTINCT + 31 ) / + COUNT ( - + 0 ) + + 17 - - 3 * - 16 AS col0
----
-40
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8860
SELECT ALL COUNT( * ) + + + 70 DIV 81 * - - 38 * + + NULLIF ( - ( + 86 ), - 47 * 14 )
----
1

skipif mysql # not compatible
query I rowsort label-8860
SELECT ALL COUNT ( * ) + + + 70 / 81 * - - 38 * + + NULLIF ( - ( + 86 ), - 47 * 14 )
----
1

query I rowsort
SELECT DISTINCT 27 + + 77 AS col0
----
104

onlyif mysql # aggregate syntax: 
query II rowsort label-8862
SELECT + 83 * CASE 0 WHEN + + 94 + + COALESCE ( + - COUNT( * ), + + 78, + + ( - + 91 ) * 66 ) + - CASE + 75 WHEN 51 THEN + COUNT( * ) END - + COUNT( DISTINCT - + 25 ) / - 71 THEN 46 - - MIN( + 44 ) END + - + 97, + 45 AS col0
----
NULL
45

skipif mysql # not compatible
query II rowsort label-8862
SELECT + 83 * CASE 0 WHEN + + 94 + + COALESCE ( + - COUNT ( * ), + + 78, + + ( - + 91 ) * 66 ) + - CASE + 75 WHEN 51 THEN + COUNT ( * ) END - + COUNT ( DISTINCT - + 25 ) / - 71 THEN 46 - - MIN ( + 44 ) END + - + 97, + 45 AS col0
----
NULL
45

query I rowsort
SELECT ALL - 27 col1
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-8864
SELECT DISTINCT 20 DIV - 35
----
0

skipif mysql # not compatible
query I rowsort label-8864
SELECT DISTINCT 20 / - 35
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8865
SELECT ALL 55 + - COUNT( * ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-8865
SELECT ALL 55 + - COUNT ( * ) AS col1
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8866
SELECT 78 + - 39 * 23 + + - CAST( NULL AS SIGNED ) + 59 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8866
SELECT 78 + - 39 * 23 + + - CAST ( NULL AS INTEGER ) + 59 AS col1
----
NULL

query I rowsort
SELECT ( 88 ) + + + 2 AS col0
----
90

query I rowsort
SELECT 23 * 56
----
1288

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8869
SELECT ALL NULLIF ( + 15, + - 87 ) + + 24 * + 73 + - - 79 + - MAX( DISTINCT + - ( - 45 ) ) + + CASE - CAST( - 18 AS SIGNED ) WHEN - 59 * - 36 THEN NULL WHEN + - 45 THEN + + ( - 84 ) ELSE NULL END * - - 52 / - CAST( + + 27 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8869
SELECT ALL NULLIF ( + 15, + - 87 ) + + 24 * + 73 + - - 79 + - MAX ( DISTINCT + - ( - 45 ) ) + + CASE - CAST ( - 18 AS INTEGER ) WHEN - 59 * - 36 THEN NULL WHEN + - 45 THEN + + ( - 84 ) ELSE NULL END * - - 52 / - CAST ( + + 27 AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 19 + - 41
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-8871
SELECT COUNT( * ) + - 79
----
-78

skipif mysql # not compatible
query I rowsort label-8871
SELECT COUNT ( * ) + - 79
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8872
SELECT ALL + 15 * - - CAST( NULL AS SIGNED ) / 46 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8872
SELECT ALL + 15 * - - CAST ( NULL AS INTEGER ) / 46 col2
----
NULL

query I rowsort
SELECT 13 + - 64 AS col2
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8874
SELECT ALL 13 * + CAST( - - 27 AS SIGNED ) * - 89 * 49
----
-1530711

skipif mysql # not compatible
query I rowsort label-8874
SELECT ALL 13 * + CAST ( - - 27 AS INTEGER ) * - 89 * 49
----
-1530711

onlyif mysql # aggregate syntax: 
query II rowsort label-8875
SELECT ALL 54 AS col0, + 88 * COUNT( * ) * - - MIN( - 30 )
----
54
-2640

skipif mysql # not compatible
query II rowsort label-8875
SELECT ALL 54 AS col0, + 88 * COUNT ( * ) * - - MIN ( - 30 )
----
54
-2640

query I rowsort
SELECT 22 + - 19 - + + 56 AS col0
----
-53

query I rowsort
SELECT ALL 48 * 74 * + + 72
----
255744

query I rowsort
SELECT 32 + 29
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8879
SELECT 38 * - MAX( + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8879
SELECT 38 * - MAX ( + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query II rowsort
SELECT 41 + - 68 - - 73 AS col1, 29 AS col0
----
46
29

query I rowsort
SELECT + 28 + - 94 AS col1
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-8882
SELECT ALL - - 3 DIV - + 53
----
0

skipif mysql # not compatible
query I rowsort label-8882
SELECT ALL - - 3 / - + 53
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8883
SELECT - COALESCE ( + + COUNT( * ), SUM( + 86 ) ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-8883
SELECT - COALESCE ( + + COUNT ( * ), SUM ( + 86 ) ) col1
----
-1

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

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

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

query I rowsort
SELECT ALL - + 28 * - 27 AS col0
----
756

query I rowsort
SELECT ALL + 25 * - 85
----
-2125

query I rowsort
SELECT DISTINCT + + 99 * + 34 AS col1
----
3366

onlyif mysql # DIV for integer division: 
query I rowsort label-8889
SELECT + 44 DIV - 80 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8889
SELECT + 44 / - 80 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8890
SELECT ALL + - 49 + - + 70 + + + COUNT( * ) * 96 AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-8890
SELECT ALL + - 49 + - + 70 + + + COUNT ( * ) * 96 AS col2
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8891
SELECT + NULLIF ( 62, - 95 / 47 / + CAST( 37 AS SIGNED ) * 32 - + + 8 * - 82 + + + COUNT( * ) )
----
62

skipif mysql # not compatible
query I rowsort label-8891
SELECT + NULLIF ( 62, - 95 / 47 / + CAST ( 37 AS INTEGER ) * 32 - + + 8 * - 82 + + + COUNT ( * ) )
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8892
SELECT + 71 + + 59 * + + 89 * + 4, + 37 + CAST( NULL AS SIGNED ) + + 3 + + 30 + - COUNT( DISTINCT 93 ) AS col2
----
21075
NULL

skipif mysql # not compatible
query II rowsort label-8892
SELECT + 71 + + 59 * + + 89 * + 4, + 37 + CAST ( NULL AS INTEGER ) + + 3 + + 30 + - COUNT ( DISTINCT 93 ) AS col2
----
21075
NULL

query I rowsort
SELECT DISTINCT - - 73 + + - 58
----
15

query I rowsort
SELECT ALL - - 57 + 26
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8895
SELECT ALL 63 + + 79 + - COALESCE ( - COUNT( DISTINCT - 93 ), - - 11 + 24 ) AS col0
----
143

skipif mysql # not compatible
query I rowsort label-8895
SELECT ALL 63 + + 79 + - COALESCE ( - COUNT ( DISTINCT - 93 ), - - 11 + 24 ) AS col0
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-8896
SELECT 91 * + + MAX( ALL - + ( 36 ) ) * - 57 AS col2
----
186732

skipif mysql # not compatible
query I rowsort label-8896
SELECT 91 * + + MAX ( ALL - + ( 36 ) ) * - 57 AS col2
----
186732

onlyif mysql # aggregate syntax: 
query I rowsort label-8897
SELECT 98 + - COALESCE ( + COUNT( * ), + COALESCE ( ( + 79 ), - 6 ) ) * - 9 AS col0
----
107

skipif mysql # not compatible
query I rowsort label-8897
SELECT 98 + - COALESCE ( + COUNT ( * ), + COALESCE ( ( + 79 ), - 6 ) ) * - 9 AS col0
----
107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8898
SELECT ALL - 45 + - CAST( - + COUNT( * ) AS SIGNED )
----
-44

skipif mysql # not compatible
query I rowsort label-8898
SELECT ALL - 45 + - CAST ( - + COUNT ( * ) AS INTEGER )
----
-44

query I rowsort
SELECT DISTINCT 14 + + 89
----
103

query I rowsort
SELECT 81 - - ( + 39 )
----
120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8901
SELECT DISTINCT 49 + + + CAST( NULL AS SIGNED ) + + 46 * + - SUM( + 93 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8901
SELECT DISTINCT 49 + + + CAST ( NULL AS INTEGER ) + + 46 * + - SUM ( + 93 )
----
NULL

query I rowsort
SELECT DISTINCT - 28 - - - 97
----
-125

query I rowsort
SELECT DISTINCT - 10 - - + 25 + - + 76 AS col1
----
-61

query I rowsort
SELECT 96 * + + 40 AS col0
----
3840

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8905
SELECT ALL COUNT( ALL + + 32 ) DIV - + 1
----
-1

skipif mysql # not compatible
query I rowsort label-8905
SELECT ALL COUNT ( ALL + + 32 ) / - + 1
----
-1

query I rowsort
SELECT 3 - - 80 * - + 45
----
-3597

query I rowsort
SELECT - NULLIF ( 32, - 61 * - - 49 ) col2
----
-32

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

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

query I rowsort
SELECT ALL 36 col1
----
36

query I rowsort
SELECT ALL + 21 * 24 - - - 89
----
415

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8911
SELECT - CASE - 44 WHEN - 7 / MAX( + 96 ) + 1 + SUM( + - 55 ) + + - COUNT( * ) * - - 30 * + - ( + + 75 ) THEN - 94 * + - 47 + 30 * - - 19 / - 85 * + - 51 WHEN + + CAST( + 23 AS DECIMAL ) + 80 THEN NULL ELSE + + ( - - CAST( NULL AS DECIMAL ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8911
SELECT - CASE - 44 WHEN - 7 / MAX ( + 96 ) + 1 + SUM ( + - 55 ) + + - COUNT ( * ) * - - 30 * + - ( + + 75 ) THEN - 94 * + - 47 + 30 * - - 19 / - 85 * + - 51 WHEN + + CAST ( + 23 AS REAL ) + 80 THEN NULL ELSE + + ( - - CAST ( NULL AS REAL ) ) END
----
NULL

query I rowsort
SELECT DISTINCT + ( - 72 ) AS col1
----
-72

query I rowsort
SELECT DISTINCT - 88 * - 65 * - 72 AS col1
----
-411840

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8915
SELECT - - 32 * + CAST( NULL AS SIGNED ) * 4
----
NULL

skipif mysql # not compatible
query I rowsort label-8915
SELECT - - 32 * + CAST ( NULL AS INTEGER ) * 4
----
NULL

query I rowsort
SELECT DISTINCT - 27 + - 91
----
-118

onlyif mysql # aggregate syntax: 
query II rowsort label-8917
SELECT ALL + COUNT( ALL - ( + 75 ) ) + + 96 AS col2, 97 + 63
----
97
160

skipif mysql # not compatible
query II rowsort label-8917
SELECT ALL + COUNT ( ALL - ( + 75 ) ) + + 96 AS col2, 97 + 63
----
97
160

onlyif mysql # aggregate syntax: 
query I rowsort label-8918
SELECT + + CASE + + ( 32 ) WHEN 12 THEN + - 7 * + COUNT( * ) WHEN + COUNT( * ) THEN - - 37 * 35 + - + 19 END + + 36 + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8918
SELECT + + CASE + + ( 32 ) WHEN 12 THEN + - 7 * + COUNT ( * ) WHEN + COUNT ( * ) THEN - - 37 * 35 + - + 19 END + + 36 + - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8919
SELECT + MAX( - - 67 ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-8919
SELECT + MAX ( - - 67 ) AS col1
----
67

query I rowsort
SELECT + - 88 + 65 col0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8921
SELECT - - COUNT( ALL + 11 ) - - + 16
----
17

skipif mysql # not compatible
query I rowsort label-8921
SELECT - - COUNT ( ALL + 11 ) - - + 16
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8922
SELECT + SUM( ALL 95 ) DIV + 50
----
1

skipif mysql # not compatible
query I rowsort label-8922
SELECT + SUM ( ALL 95 ) / + 50
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8923
SELECT ALL + - ( + 93 ), + 24 + - COUNT( * ) AS col2
----
-93
23

skipif mysql # not compatible
query II rowsort label-8923
SELECT ALL + - ( + 93 ), + 24 + - COUNT ( * ) AS col2
----
-93
23

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8924
SELECT ALL + 35 * + 60 + + CASE 98 WHEN - 66 * + + 42 * - COUNT( * ) THEN - CASE - 41 WHEN + CAST( - 73 AS DECIMAL ) + + 0 + CASE COUNT( * ) WHEN + - 36 - - - 50 THEN + ( 16 ) END * 43 THEN NULL ELSE + 52 END + + 20 ELSE 59 END * - 88 * - + 36 + + 85 AS col1
----
189097

skipif mysql # not compatible
query I rowsort label-8924
SELECT ALL + 35 * + 60 + + CASE 98 WHEN - 66 * + + 42 * - COUNT ( * ) THEN - CASE - 41 WHEN + CAST ( - 73 AS REAL ) + + 0 + CASE COUNT ( * ) WHEN + - 36 - - - 50 THEN + ( 16 ) END * 43 THEN NULL ELSE + 52 END + + 20 ELSE 59 END * - 88 * - + 36 + + 85 AS col1
----
189097

query I rowsort
SELECT ALL + 71 * + 23 + + 51 col2
----
1684

onlyif mysql # DIV for integer division: 
query I rowsort label-8926
SELECT DISTINCT 96 DIV - + 75 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8926
SELECT DISTINCT 96 / - + 75 AS col0
----
-1

query I rowsort
SELECT - 35 + - 50 col2
----
-85

query II rowsort
SELECT + 65 AS col2, + 15
----
65
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8929
SELECT ALL 87 * + 40 * - 34 + - 59 * 9 * CAST( NULL AS SIGNED ) * - - 63
----
NULL

skipif mysql # not compatible
query I rowsort label-8929
SELECT ALL 87 * + 40 * - 34 + - 59 * 9 * CAST ( NULL AS INTEGER ) * - - 63
----
NULL

query I rowsort
SELECT ALL 56 * 79 + - 61
----
4363

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

query I rowsort
SELECT NULLIF ( - 44, - 88 * - 84 ) AS col0
----
-44

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8933
SELECT - 26 * 24 * - - 74 * + + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8933
SELECT - 26 * 24 * - - 74 * + + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8934
SELECT COALESCE ( 94, - + 37 * + 80 * + - 81 DIV + 15 * 69, - - 86 ), NULLIF ( + 96, 76 + - 81 ) DIV - NULLIF ( - - 91, 76 * + 51 ) + + 78 AS col1
----
94
77

skipif mysql # not compatible
query II rowsort label-8934
SELECT COALESCE ( 94, - + 37 * + 80 * + - 81 / + 15 * 69, - - 86 ), NULLIF ( + 96, 76 + - 81 ) / - NULLIF ( - - 91, 76 * + 51 ) + + 78 AS col1
----
94
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8935
SELECT NULLIF ( + COUNT( * ), - 40 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8935
SELECT NULLIF ( + COUNT ( * ), - 40 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8936
SELECT ALL + CAST( - 53 AS SIGNED ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-8936
SELECT ALL + CAST ( - 53 AS INTEGER ) AS col2
----
-53

query I rowsort
SELECT - 8 - - 77 + + - 30 + + 67
----
106

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8938
SELECT - 66 * - + 64 * + - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8938
SELECT - 66 * - + 64 * + - CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + ( - 16 ) AS col0
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8940
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + ( + 77 ) - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-8940
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + ( + 77 ) - 69
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8941
SELECT + MAX( DISTINCT 1 )
----
1

skipif mysql # not compatible
query I rowsort label-8941
SELECT + MAX ( DISTINCT 1 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8942
SELECT ALL + CAST( - 21 AS SIGNED )
----
-21

skipif mysql # not compatible
query I rowsort label-8942
SELECT ALL + CAST ( - 21 AS INTEGER )
----
-21

query I rowsort
SELECT - 72 + + 7
----
-65

query I rowsort
SELECT - 30 * + + 70 AS col1
----
-2100

query I rowsort
SELECT - 48 + - 59
----
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-8946
SELECT + 54 - + NULLIF ( COALESCE ( + + COUNT( * ), - 6, + 16, 86 ), - CASE COUNT( * ) WHEN - 13 THEN - CASE 80 WHEN + + COUNT( * ) * + - 7 THEN NULL WHEN 39 THEN - + 32 END + - MIN( DISTINCT + 57 ) ELSE NULL END ) + - 48 + + 9
----
14

skipif mysql # not compatible
query I rowsort label-8946
SELECT + 54 - + NULLIF ( COALESCE ( + + COUNT ( * ), - 6, + 16, 86 ), - CASE COUNT ( * ) WHEN - 13 THEN - CASE 80 WHEN + + COUNT ( * ) * + - 7 THEN NULL WHEN 39 THEN - + 32 END + - MIN ( DISTINCT + 57 ) ELSE NULL END ) + - 48 + + 9
----
14

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8949
SELECT ALL ( + 1 ) * - - COUNT( * ) + NULLIF ( - 90, - + 39 )
----
-89

skipif mysql # not compatible
query I rowsort label-8949
SELECT ALL ( + 1 ) * - - COUNT ( * ) + NULLIF ( - 90, - + 39 )
----
-89

query I rowsort
SELECT - 0 + - 64 AS col1
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-8951
SELECT DISTINCT + + 20 * + MIN( ALL - 85 ) * + 53 AS col1
----
-90100

skipif mysql # not compatible
query I rowsort label-8951
SELECT DISTINCT + + 20 * + MIN ( ALL - 85 ) * + 53 AS col1
----
-90100

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

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

query II rowsort
SELECT DISTINCT ( + CASE - 93 WHEN + 22 THEN NULL WHEN - 86 / + + 38 THEN - 25 * - - ( 35 ) + - AVG ( - 86 ) END ) AS col2, - 23
----
NULL
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8954
SELECT DISTINCT - COUNT( * ) + + 19 AS col2
----
18

skipif mysql # not compatible
query I rowsort label-8954
SELECT DISTINCT - COUNT ( * ) + + 19 AS col2
----
18

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8956
SELECT - + 9 * - - COUNT( * ) - 4
----
-13

skipif mysql # not compatible
query I rowsort label-8956
SELECT - + 9 * - - COUNT ( * ) - 4
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-8957
SELECT + - 3 + - 93 + + 57 * - 63 + - COALESCE ( NULLIF ( - ( - + COUNT( * ) ), - + 70 ), 61 ) * + 68 AS col1
----
-3755

skipif mysql # not compatible
query I rowsort label-8957
SELECT + - 3 + - 93 + + 57 * - 63 + - COALESCE ( NULLIF ( - ( - + COUNT ( * ) ), - + 70 ), 61 ) * + 68 AS col1
----
-3755

query I rowsort
SELECT ALL - 98 + - 61
----
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-8959
SELECT MAX( ALL 29 )
----
29

skipif mysql # not compatible
query I rowsort label-8959
SELECT MAX ( ALL 29 )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-8960
SELECT + + 28 + + 11 * + MAX( ALL 61 ) AS col1
----
699

skipif mysql # not compatible
query I rowsort label-8960
SELECT + + 28 + + 11 * + MAX ( ALL 61 ) AS col1
----
699

query I rowsort
SELECT + 57 * + 0 * 18 * + 25 AS col2
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8963
SELECT + 70 * COUNT( 39 ) + 31 AS col2
----
101

skipif mysql # not compatible
query I rowsort label-8963
SELECT + 70 * COUNT ( 39 ) + 31 AS col2
----
101

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

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

query II rowsort
SELECT DISTINCT + 52, ( 39 ) * + - 70 AS col2
----
52
-2730

query I rowsort
SELECT DISTINCT + 15 + + 16
----
31

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8968
SELECT ALL 37 + - 94 DIV + ( - + 31 ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-8968
SELECT ALL 37 + - 94 / + ( - + 31 ) AS col1
----
40

query I rowsort
SELECT + + 76 * + - 3
----
-228

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8971
SELECT DISTINCT NULLIF ( 48, - 70 * + + 17 * - 86 * 26 * - + SUM( ALL + 59 ) + + 34 + + 68 * ( + + COUNT( * ) ) + + + 26 + - COUNT( * ) ) DIV - - 97 * + 11 + + - 56 + 43 AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-8971
SELECT DISTINCT NULLIF ( 48, - 70 * + + 17 * - 86 * 26 * - + SUM ( ALL + 59 ) + + 34 + + 68 * ( + + COUNT ( * ) ) + + + 26 + - COUNT ( * ) ) / - - 97 * + 11 + + - 56 + 43 AS col1
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-8972
SELECT + CASE 76 WHEN - 22 + + + 81 THEN NULL WHEN - 9 THEN + + 54 WHEN + COUNT( ALL - 20 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8972
SELECT + CASE 76 WHEN - 22 + + + 81 THEN NULL WHEN - 9 THEN + + 54 WHEN + COUNT ( ALL - 20 ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8973
SELECT ALL 89 DIV - + 49 DIV COUNT( * ) * + COUNT( * ) + - 95 + - + 98 - - + 30 AS col2
----
-164

skipif mysql # not compatible
query I rowsort label-8973
SELECT ALL 89 / - + 49 / COUNT ( * ) * + COUNT ( * ) + - 95 + - + 98 - - + 30 AS col2
----
-164

onlyif mysql # aggregate syntax: 
query I rowsort label-8974
SELECT + + COUNT( * ) - - MIN( 24 ) + - 84 * + + COUNT( * ) * - 21
----
1789

skipif mysql # not compatible
query I rowsort label-8974
SELECT + + COUNT ( * ) - - MIN ( 24 ) + - 84 * + + COUNT ( * ) * - 21
----
1789

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8975
SELECT + NULLIF ( - + 17, + COUNT( * ) DIV + + 69 + - COUNT( * ) ) DIV + ( - 61 ) + + + 34 AS col1
----
34

skipif mysql # not compatible
query I rowsort label-8975
SELECT + NULLIF ( - + 17, + COUNT ( * ) / + + 69 + - COUNT ( * ) ) / + ( - 61 ) + + + 34 AS col1
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8976
SELECT CAST( 84 AS SIGNED ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-8976
SELECT CAST ( 84 AS INTEGER ) AS col0
----
84

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8979
SELECT ALL + 82 DIV - COALESCE ( 22, - 3 * + 26 )
----
-3

skipif mysql # not compatible
query I rowsort label-8979
SELECT ALL + 82 / - COALESCE ( 22, - 3 * + 26 )
----
-3

query II rowsort
SELECT ALL + 42 AS col2, - 88 + + 2 AS col1
----
42
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-8981
SELECT 83 * - - 35 * + + COUNT( * ) + - NULLIF ( - ( + 38 ), - 32 - - - 52 * COUNT( DISTINCT + 48 ) ) * 88, - NULLIF ( + NULLIF ( - 27, 58 ), + 73 * - COUNT( * ) ) col2
----
6249
27

skipif mysql # not compatible
query II rowsort label-8981
SELECT 83 * - - 35 * + + COUNT ( * ) + - NULLIF ( - ( + 38 ), - 32 - - - 52 * COUNT ( DISTINCT + 48 ) ) * 88, - NULLIF ( + NULLIF ( - 27, 58 ), + 73 * - COUNT ( * ) ) col2
----
6249
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8982
SELECT - 67 - COALESCE ( COUNT( * ), + 84 * 50, 26 )
----
-68

skipif mysql # not compatible
query I rowsort label-8982
SELECT - 67 - COALESCE ( COUNT ( * ), + 84 * 50, 26 )
----
-68

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8983
SELECT + CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8983
SELECT + CAST ( NULL AS REAL ) col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8984
SELECT 42 DIV 68 * + 5 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8984
SELECT 42 / 68 * + 5 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8985
SELECT - COALESCE ( + 93, + 93 ) * + 67 + + COALESCE ( - CASE + - 24 WHEN + 8 THEN 51 END, + 44, COUNT( * ) + + 10 ) + - 15 + - 93 * - MIN( - 5 ) * 3 + - MAX( - 17 ) + - 26 AS col0
----
-7606

skipif mysql # not compatible
query I rowsort label-8985
SELECT - COALESCE ( + 93, + 93 ) * + 67 + + COALESCE ( - CASE + - 24 WHEN + 8 THEN 51 END, + 44, COUNT ( * ) + + 10 ) + - 15 + - 93 * - MIN ( - 5 ) * 3 + - MAX ( - 17 ) + - 26 AS col0
----
-7606

query II rowsort
SELECT 51 * + 54 AS col1, + 51 AS col1
----
2754
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8987
SELECT DISTINCT - 90 AS col0, 21 * 16 * - CASE - 99 WHEN - + ( + - 1 ) * - + 2 + - COUNT( * ) * + + CAST( NULL AS SIGNED ) + - + 92 THEN NULL WHEN + 28 THEN + ( + ( + 28 ) ) END + + + 71 AS col1
----
-90
NULL

skipif mysql # not compatible
query II rowsort label-8987
SELECT DISTINCT - 90 AS col0, 21 * 16 * - CASE - 99 WHEN - + ( + - 1 ) * - + 2 + - COUNT ( * ) * + + CAST ( NULL AS INTEGER ) + - + 92 THEN NULL WHEN + 28 THEN + ( + ( + 28 ) ) END + + + 71 AS col1
----
-90
NULL

query I rowsort
SELECT 41 * - - 14
----
574

query II rowsort
SELECT DISTINCT 65, + 19 * + + 50 AS col0
----
65
950

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8991
SELECT ALL - - 21 + + - COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-8991
SELECT ALL - - 21 + + - COUNT ( * )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8992
SELECT + COALESCE ( 32, - + NULLIF ( + - 34, - + ( + - 11 ) / - SUM( ALL - 41 ) + 12 + - - 19 ) ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-8992
SELECT + COALESCE ( 32, - + NULLIF ( + - 34, - + ( + - 11 ) / - SUM ( ALL - 41 ) + 12 + - - 19 ) ) AS col1
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8993
SELECT ALL - 2 + + - CAST( + 93 AS SIGNED ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-8993
SELECT ALL - 2 + + - CAST ( + 93 AS INTEGER ) AS col2
----
-95

query I rowsort
SELECT - 88 * - 18 AS col1
----
1584

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8995
SELECT 26 - CASE - 27 WHEN 86 THEN NULL WHEN + MAX( DISTINCT - 4 ) THEN NULL WHEN 43 THEN + 24 ELSE + 40 + 35 DIV 91 END
----
-14

skipif mysql # not compatible
query I rowsort label-8995
SELECT 26 - CASE - 27 WHEN 86 THEN NULL WHEN + MAX ( DISTINCT - 4 ) THEN NULL WHEN 43 THEN + 24 ELSE + 40 + 35 / 91 END
----
-14

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

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

query I rowsort
SELECT DISTINCT + 10 * + + 72 + 35
----
755

query II rowsort
SELECT - 33 AS col0, 43
----
-33
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8999
SELECT - 54 * - 18 - - - MAX( + 40 )
----
932

skipif mysql # not compatible
query I rowsort label-8999
SELECT - 54 * - 18 - - - MAX ( + 40 )
----
932

onlyif mysql # aggregate syntax: 
query II rowsort label-9000
SELECT - ( 22 ) * + 58 + - 47 - + 78 * + MAX( + - 39 ) AS col0, + 65 AS col1
----
1719
65

skipif mysql # not compatible
query II rowsort label-9000
SELECT - ( 22 ) * + 58 + - 47 - + 78 * + MAX ( + - 39 ) AS col0, + 65 AS col1
----
1719
65

query I rowsort
SELECT ALL + 86 + - + 20 + - 69 col2
----
-3

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9003
SELECT ALL + + 50 * NULLIF ( + 68, - COUNT( * ) ) * + 93 + + 76 DIV + SUM( ALL 99 )
----
316200

skipif mysql # not compatible
query I rowsort label-9003
SELECT ALL + + 50 * NULLIF ( + 68, - COUNT ( * ) ) * + 93 + + 76 / + SUM ( ALL 99 )
----
316200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9004
SELECT + 90 - 49 + - + 63 + - CAST( + 99 AS SIGNED ) - - 8 * + 22
----
55

skipif mysql # not compatible
query I rowsort label-9004
SELECT + 90 - 49 + - + 63 + - CAST ( + 99 AS INTEGER ) - - 8 * + 22
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9005
SELECT + ( - 15 ) * - - 63 * + + 77 - + SUM( ALL + 99 ) * 88 + 76 AS col0
----
-81401

skipif mysql # not compatible
query I rowsort label-9005
SELECT + ( - 15 ) * - - 63 * + + 77 - + SUM ( ALL + 99 ) * 88 + 76 AS col0
----
-81401

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9006
SELECT ALL + - 37 - 53 - + - ( 73 ) + + SUM( 0 ) * 84 DIV 22
----
-17

skipif mysql # not compatible
query I rowsort label-9006
SELECT ALL + - 37 - 53 - + - ( 73 ) + + SUM ( 0 ) * 84 / 22
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9007
SELECT + 90 AS col0, COUNT( * ) DIV - MIN( ALL 88 ) * + + 47 + + 90 AS col0
----
90
90

skipif mysql # not compatible
query II rowsort label-9007
SELECT + 90 AS col0, COUNT ( * ) / - MIN ( ALL 88 ) * + + 47 + + 90 AS col0
----
90
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9008
SELECT 65 * - MIN( DISTINCT - 14 ) AS col2
----
910

skipif mysql # not compatible
query I rowsort label-9008
SELECT 65 * - MIN ( DISTINCT - 14 ) AS col2
----
910

onlyif mysql # DIV for integer division: 
query I rowsort label-9009
SELECT ALL 96 DIV 15 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-9009
SELECT ALL 96 / 15 AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9010
SELECT - ( 82 ) + + - COUNT( * )
----
-83

skipif mysql # not compatible
query I rowsort label-9010
SELECT - ( 82 ) + + - COUNT ( * )
----
-83

query I rowsort
SELECT - 40 - 64
----
-104

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9014
SELECT ALL - 96 - + - 45 + ( - COUNT( * ) )
----
-52

skipif mysql # not compatible
query I rowsort label-9014
SELECT ALL - 96 - + - 45 + ( - COUNT ( * ) )
----
-52

query I rowsort
SELECT DISTINCT - ( + + 97 ) AS col2
----
-97

query I rowsort
SELECT COALESCE ( 19, - 41 ) * ( - 46 ) AS col2
----
-874

onlyif mysql # DIV for integer division: 
query I rowsort label-9017
SELECT 96 DIV + - 57 + + 82 + - 28 DIV - - 11
----
79

skipif mysql # not compatible
query I rowsort label-9017
SELECT 96 / + - 57 + + 82 + - 28 / - - 11
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9018
SELECT DISTINCT - MAX( DISTINCT 15 ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-9018
SELECT DISTINCT - MAX ( DISTINCT 15 ) AS col0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9019
SELECT CAST( NULL AS SIGNED ) * + AVG ( + 52 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9019
SELECT CAST ( NULL AS INTEGER ) * + AVG ( + 52 )
----
NULL

query I rowsort
SELECT DISTINCT - 74 col0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-9021
SELECT 57 * - 57 * COUNT( * ) * + ( - COUNT( * ) )
----
3249

skipif mysql # not compatible
query I rowsort label-9021
SELECT 57 * - 57 * COUNT ( * ) * + ( - COUNT ( * ) )
----
3249

query I rowsort
SELECT ALL - 34 * + 67
----
-2278

query I rowsort
SELECT ALL - 77 col2
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-9024
SELECT + MIN( ALL - 92 ) col2, ( 18 ) AS col0
----
-92
18

skipif mysql # not compatible
query II rowsort label-9024
SELECT + MIN ( ALL - 92 ) col2, ( 18 ) AS col0
----
-92
18

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9025
SELECT ALL 33 * - 47 + CAST( NULL AS SIGNED ) AS col0, - CAST( + 22 AS SIGNED )
----
NULL
-22

skipif mysql # not compatible
query II rowsort label-9025
SELECT ALL 33 * - 47 + CAST ( NULL AS INTEGER ) AS col0, - CAST ( + 22 AS INTEGER )
----
NULL
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-9026
SELECT - 72 DIV + 49 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9026
SELECT - 72 / + 49 AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9027
SELECT + COUNT( * ) + - CAST( 38 AS SIGNED ) * + 50
----
-1899

skipif mysql # not compatible
query I rowsort label-9027
SELECT + COUNT ( * ) + - CAST ( 38 AS INTEGER ) * + 50
----
-1899

onlyif mysql # aggregate syntax: 
query I rowsort label-9028
SELECT ALL + + CASE + 21 WHEN 60 THEN COUNT( * ) + 57 WHEN - 75 THEN - COUNT( * ) + 76 * + 71 / + + 83 ELSE NULL END + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9028
SELECT ALL + + CASE + 21 WHEN 60 THEN COUNT ( * ) + 57 WHEN - 75 THEN - COUNT ( * ) + 76 * + 71 / + + 83 ELSE NULL END + + COUNT ( * )
----
NULL

query I rowsort
SELECT + 95 - - 77 * + + 13 AS col0
----
1096

query I rowsort
SELECT 0 * - 14
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9033
SELECT DISTINCT + - COUNT( * ) - 37 - - 93 * - ( 5 ) AS col2, 73 DIV - + 38
----
-503
-1

skipif mysql # not compatible
query II rowsort label-9033
SELECT DISTINCT + - COUNT ( * ) - 37 - - 93 * - ( 5 ) AS col2, 73 / - + 38
----
-503
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9034
SELECT - 28 * ( - - ( + 6 ) ) * + + 97 AS col0, + COALESCE ( + 13, + COUNT( * ) * + ( - 69 ) + - 38 * - 63 )
----
-16296
13

skipif mysql # not compatible
query II rowsort label-9034
SELECT - 28 * ( - - ( + 6 ) ) * + + 97 AS col0, + COALESCE ( + 13, + COUNT ( * ) * + ( - 69 ) + - 38 * - 63 )
----
-16296
13

onlyif mysql # aggregate syntax: 
query II rowsort label-9035
SELECT 2 + COUNT( * ) AS col0, 24 + 77 AS col1
----
3
101

skipif mysql # not compatible
query II rowsort label-9035
SELECT 2 + COUNT ( * ) AS col0, 24 + 77 AS col1
----
3
101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9036
SELECT ALL - CAST( NULL AS SIGNED ) * - 16 * - COUNT( ALL - 73 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9036
SELECT ALL - CAST ( NULL AS INTEGER ) * - 16 * - COUNT ( ALL - 73 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9037
SELECT MAX( ALL - 74 ) + + - 67 * - 83 AS col1
----
5487

skipif mysql # not compatible
query I rowsort label-9037
SELECT MAX ( ALL - 74 ) + + - 67 * - 83 AS col1
----
5487

query I rowsort
SELECT - - ( - 23 )
----
-23

query I rowsort
SELECT 0 * - - 9
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9040
SELECT 7 DIV - 26 * 92 * - - 58 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9040
SELECT 7 / - 26 * 92 * - - 58 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9041
SELECT ALL MIN( ALL - 97 )
----
-97

skipif mysql # not compatible
query I rowsort label-9041
SELECT ALL MIN ( ALL - 97 )
----
-97

query I rowsort
SELECT DISTINCT - 83 * - ( + 44 )
----
3652

query II rowsort
SELECT ALL 72 col1, + ( - + 3 )
----
72
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9044
SELECT ALL 38 DIV - SUM( + 26 )
----
-1

skipif mysql # not compatible
query I rowsort label-9044
SELECT ALL 38 / - SUM ( + 26 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9045
SELECT - 55 DIV - 54 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9045
SELECT - 55 / - 54 AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9046
SELECT + 61 DIV + COUNT( * ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-9046
SELECT + 61 / + COUNT ( * ) AS col2
----
61

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

skipif mysql # not compatible
query I rowsort label-9047
SELECT + MAX ( + 21 )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9048
SELECT - 31 - + 6 - + 97 * - COUNT( * ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-9048
SELECT - 31 - + 6 - + 97 * - COUNT ( * ) AS col2
----
60

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

skipif mysql # not compatible
query I rowsort label-9049
SELECT + MIN ( - + 3 )
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9050
SELECT ALL + CAST( - COUNT( + 43 ) AS SIGNED ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9050
SELECT ALL + CAST ( - COUNT ( + 43 ) AS INTEGER ) AS col0
----
-1

query I rowsort
SELECT - 49 + + 79 * 71 + + 37 AS col2
----
5597

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-9053
SELECT - 25 DIV + 64
----
0

skipif mysql # not compatible
query I rowsort label-9053
SELECT - 25 / + 64
----
0

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

skipif mysql # not compatible
query I rowsort label-9054
SELECT 56 / COUNT ( * ) + - 96
----
-40

query I rowsort
SELECT DISTINCT - 59 * + 6 + ( - - 30 ) AS col0
----
-324

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9058
SELECT ALL CAST( NULL AS SIGNED ) * - 7 + + 2 * 66 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9058
SELECT ALL CAST ( NULL AS INTEGER ) * - 7 + + 2 * 66 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9059
SELECT DISTINCT - 82 * 28 + + + MIN( - 28 ) * + CASE WHEN NOT - COUNT( * ) > 36 THEN - 9 ELSE NULL END * - 17 AS col1
----
-6580

skipif mysql # not compatible
query I rowsort label-9059
SELECT DISTINCT - 82 * 28 + + + MIN ( - 28 ) * + CASE WHEN NOT - COUNT ( * ) > 36 THEN - 9 ELSE NULL END * - 17 AS col1
----
-6580

onlyif mysql # aggregate syntax: 
query II rowsort label-9060
SELECT ALL + 22 AS col0, + COUNT( * ) + - 94
----
22
-93

skipif mysql # not compatible
query II rowsort label-9060
SELECT ALL + 22 AS col0, + COUNT ( * ) + - 94
----
22
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9061
SELECT + 71 + + CAST( - - 96 AS SIGNED ) * - 33 + 22 * + 91
----
-1095

skipif mysql # not compatible
query I rowsort label-9061
SELECT + 71 + + CAST ( - - 96 AS INTEGER ) * - 33 + 22 * + 91
----
-1095

query I rowsort
SELECT DISTINCT 94 * 5
----
470

onlyif mysql # aggregate syntax: 
query I rowsort label-9063
SELECT + MAX( DISTINCT 16 )
----
16

skipif mysql # not compatible
query I rowsort label-9063
SELECT + MAX ( DISTINCT 16 )
----
16

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9064
SELECT + CAST( NULL AS SIGNED ) * - CAST( NULL AS DECIMAL ) + 49 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9064
SELECT + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS REAL ) + 49 AS col1
----
NULL

query II rowsort
SELECT - 72 AS col2, 66 AS col1
----
-72
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9066
SELECT ALL + SUM( DISTINCT + 77 )
----
77

skipif mysql # not compatible
query I rowsort label-9066
SELECT ALL + SUM ( DISTINCT + 77 )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9067
SELECT + + NULLIF ( + - 67, COUNT( * ) * - + 0 )
----
-67

skipif mysql # not compatible
query I rowsort label-9067
SELECT + + NULLIF ( + - 67, COUNT ( * ) * - + 0 )
----
-67

query I rowsort
SELECT + 45 * + NULLIF ( + COALESCE ( - 58, 82 ), + - 52 )
----
-2610

query I rowsort
SELECT + - 48 col2
----
-48

query I rowsort
SELECT - + 79 AS col2
----
-79

query II rowsort
SELECT + 79, ( 16 ) AS col2
----
79
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9072
SELECT + - 78 - + - 42 * - NULLIF ( + COUNT( * ), CAST( 50 AS SIGNED ) )
----
-120

skipif mysql # not compatible
query I rowsort label-9072
SELECT + - 78 - + - 42 * - NULLIF ( + COUNT ( * ), CAST ( 50 AS INTEGER ) )
----
-120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9073
SELECT + + 3 - + COUNT( ( - CAST( NULL AS SIGNED ) ) ) * - CASE + 18 WHEN 16 * - 65 * 98 * + 56 THEN NULL WHEN + 74 THEN + NULLIF ( + COUNT( * ), 42 * + CAST( + 43 AS SIGNED ) * 53 - - 60 ) END + - SUM( - 90 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9073
SELECT + + 3 - + COUNT ( ( - CAST ( NULL AS INTEGER ) ) ) * - CASE + 18 WHEN 16 * - 65 * 98 * + 56 THEN NULL WHEN + 74 THEN + NULLIF ( + COUNT ( * ), 42 * + CAST ( + 43 AS INTEGER ) * 53 - - 60 ) END + - SUM ( - 90 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9074
SELECT SUM( 1 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9074
SELECT SUM ( 1 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9075
SELECT - + 39 * + + MAX( - - 34 ) AS col1
----
-1326

skipif mysql # not compatible
query I rowsort label-9075
SELECT - + 39 * + + MAX ( - - 34 ) AS col1
----
-1326

onlyif mysql # aggregate syntax: 
query II rowsort label-9076
SELECT ALL + COUNT( * ) * - - ( + 88 ) AS col1, + 0
----
88
0

skipif mysql # not compatible
query II rowsort label-9076
SELECT ALL + COUNT ( * ) * - - ( + 88 ) AS col1, + 0
----
88
0

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

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

query II rowsort
SELECT ALL 75, 56 AS col2
----
75
56

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

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

query I rowsort
SELECT - 75 - - - 47 * + ( - 27 ) AS col1
----
1194

onlyif mysql # aggregate syntax: 
query II rowsort label-9081
SELECT - 68 - + 95 - + 40 * - - 16 * + + 26 col1, 71 + - + ( 83 ) + - CASE + NULLIF ( - 79, - ( 42 ) ) WHEN - 2 / + + 24 + - - 47 THEN + 86 WHEN - + 51 THEN - 75 - - - 35 END * NULLIF ( 76, - 86 * NULLIF ( 85, 69 ) + - NULLIF ( - 59, + - COUNT( * ) - + + COUNT( * ) ) + 7 )
----
-16803
NULL

skipif mysql # not compatible
query II rowsort label-9081
SELECT - 68 - + 95 - + 40 * - - 16 * + + 26 col1, 71 + - + ( 83 ) + - CASE + NULLIF ( - 79, - ( 42 ) ) WHEN - 2 / + + 24 + - - 47 THEN + 86 WHEN - + 51 THEN - 75 - - - 35 END * NULLIF ( 76, - 86 * NULLIF ( 85, 69 ) + - NULLIF ( - 59, + - COUNT ( * ) - + + COUNT ( * ) ) + 7 )
----
-16803
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-9083
SELECT + 32 + 32 col2, + COUNT( * ) * + 5 AS col2
----
64
5

skipif mysql # not compatible
query II rowsort label-9083
SELECT + 32 + 32 col2, + COUNT ( * ) * + 5 AS col2
----
64
5

query I rowsort
SELECT - 49 * - 71 * - + 32
----
-111328

onlyif mysql # aggregate syntax: 
query I rowsort label-9085
SELECT - 8 + + 23 * - - COUNT( * ) + + 75 + - MIN( ALL + 25 ) + + - 58 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-9085
SELECT - 8 + + 23 * - - COUNT ( * ) + + 75 + - MIN ( ALL + 25 ) + + - 58 AS col1
----
7

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9087
SELECT ALL + 71 DIV 27 + - + 30 * - COUNT( * )
----
32

skipif mysql # not compatible
query I rowsort label-9087
SELECT ALL + 71 / 27 + - + 30 * - COUNT ( * )
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9088
SELECT 70 DIV 54 + + - 1 * + COUNT( * ) DIV - + 57 + ( + 90 ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-9088
SELECT 70 / 54 + + - 1 * + COUNT ( * ) / - + 57 + ( + 90 ) AS col1
----
91

query I rowsort
SELECT - 30 + - 33
----
-63

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9091
SELECT - 59 + - + MIN( - CASE - 2 WHEN - - 90 THEN - 28 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9091
SELECT - 59 + - + MIN ( - CASE - 2 WHEN - - 90 THEN - 28 END ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9092
SELECT - 18 * + + CAST( NULL AS SIGNED ) * + - 89 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9092
SELECT - 18 * + + CAST ( NULL AS INTEGER ) * + - 89 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9093
SELECT + NULLIF ( + - 26, 81 * + + 17 ) DIV 82 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9093
SELECT + NULLIF ( + - 26, 81 * + + 17 ) / 82 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9094
SELECT DISTINCT COUNT( * ) * 44 + + 20 * 38 + + + 96 col1
----
900

skipif mysql # not compatible
query I rowsort label-9094
SELECT DISTINCT COUNT ( * ) * 44 + + 20 * 38 + + + 96 col1
----
900

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

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

query I rowsort
SELECT + + 93 + - 52
----
41

query II rowsort
SELECT ALL - 86 * 59 * - + 95 + + 24 + - 11 + + 12 * + 89 * + 13 - + - 77 col1, + 7
----
496004
7

query I rowsort
SELECT ALL + - 17
----
-17

query I rowsort
SELECT - + 49 * + 8 * - 96 AS col2
----
37632

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

skipif mysql # not compatible
query I rowsort label-9100
SELECT ALL + COUNT ( * ) * - 99 AS col0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9101
SELECT - 10 + 28 col0, 13 + 71 + CAST( NULL AS SIGNED ) * - - 86 col0
----
18
NULL

skipif mysql # not compatible
query II rowsort label-9101
SELECT - 10 + 28 col0, 13 + 71 + CAST ( NULL AS INTEGER ) * - - 86 col0
----
18
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-9102
SELECT NULLIF ( + 80, - - CAST( - 64 AS DECIMAL ) + + 67 ) * - SUM( DISTINCT 9 ) * - 97 + + 89 * 23 * 32 - - COUNT( * ) DIV - - 61 - + MAX( - COALESCE ( - 66, 76 ) )
----
135278

skipif mysql # not compatible
query I rowsort label-9102
SELECT NULLIF ( + 80, - - CAST ( - 64 AS REAL ) + + 67 ) * - SUM ( DISTINCT 9 ) * - 97 + + 89 * 23 * 32 - - COUNT ( * ) / - - 61 - + MAX ( - COALESCE ( - 66, 76 ) )
----
135278

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9103
SELECT + + SUM( + ( - + ( - + 77 ) ) ) * CAST( 46 AS SIGNED ) * CAST( NULL AS SIGNED ) - 42 + - + 65 + + 7 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9103
SELECT + + SUM ( + ( - + ( - + 77 ) ) ) * CAST ( 46 AS INTEGER ) * CAST ( NULL AS INTEGER ) - 42 + - + 65 + + 7 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9104
SELECT 83 * + ( - 98 ) + + ( - COUNT( * ) ) * + 49 AS col1
----
-8183

skipif mysql # not compatible
query I rowsort label-9104
SELECT 83 * + ( - 98 ) + + ( - COUNT ( * ) ) * + 49 AS col1
----
-8183

onlyif mysql # DIV for integer division: 
query II rowsort label-9105
SELECT + - 66 DIV - 76 col0, 53
----
0
53

skipif mysql # not compatible
query II rowsort label-9105
SELECT + - 66 / - 76 col0, 53
----
0
53

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

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

query I rowsort
SELECT ALL - 22 * + - 62 * - 33
----
-45012

onlyif mysql # aggregate syntax: 
query I rowsort label-9108
SELECT + - COUNT( * ) + + + COUNT( * ) + + 92 * 57 AS col0
----
5244

skipif mysql # not compatible
query I rowsort label-9108
SELECT + - COUNT ( * ) + + + COUNT ( * ) + + 92 * 57 AS col0
----
5244

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9109
SELECT ALL + CASE - MAX( - 58 ) WHEN 28 + + CAST( 26 AS SIGNED ) THEN NULL WHEN - 67 * 85 THEN NULL ELSE - CAST( - 37 AS SIGNED ) + - - MIN( DISTINCT 66 ) END AS col1
----
103

skipif mysql # not compatible
query I rowsort label-9109
SELECT ALL + CASE - MAX ( - 58 ) WHEN 28 + + CAST ( 26 AS INTEGER ) THEN NULL WHEN - 67 * 85 THEN NULL ELSE - CAST ( - 37 AS INTEGER ) + - - MIN ( DISTINCT 66 ) END AS col1
----
103

query I rowsort
SELECT DISTINCT 67 + 1 + + 42 col0
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-9111
SELECT ALL NULLIF ( - + 15, + 83 + - - COUNT( * ) - + - 44 ) + COUNT( * ) - 75 + - COUNT( * ) * - 93 * - MAX( - - 6 ) * + COUNT( * ) + - COALESCE ( + - 87, - 33 + - 27, - 10 ) AS col1
----
-560

skipif mysql # not compatible
query I rowsort label-9111
SELECT ALL NULLIF ( - + 15, + 83 + - - COUNT ( * ) - + - 44 ) + COUNT ( * ) - 75 + - COUNT ( * ) * - 93 * - MAX ( - - 6 ) * + COUNT ( * ) + - COALESCE ( + - 87, - 33 + - 27, - 10 ) AS col1
----
-560

query II rowsort
SELECT DISTINCT ( - + 11 ) + - 38, 40 AS col1
----
-49
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9113
SELECT ALL 20 * - COUNT( * ) * - - 71
----
-1420

skipif mysql # not compatible
query I rowsort label-9113
SELECT ALL 20 * - COUNT ( * ) * - - 71
----
-1420

query I rowsort
SELECT DISTINCT 31 AS col0
----
31

query I rowsort
SELECT DISTINCT + 93 + 80
----
173

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9116
SELECT ALL + 75 + - COUNT( * ) + - 13 * + 54 DIV - COUNT( * )
----
776

skipif mysql # not compatible
query I rowsort label-9116
SELECT ALL + 75 + - COUNT ( * ) + - 13 * + 54 / - COUNT ( * )
----
776

query I rowsort
SELECT DISTINCT - 20 + + 65 AS col0
----
45

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9119
SELECT ALL + 75 + + - ( + 51 ) - + 18 - + 45 * + + COUNT( * ) + - 11 AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-9119
SELECT ALL + 75 + + - ( + 51 ) - + 18 - + 45 * + + COUNT ( * ) + - 11 AS col0
----
-50

query I rowsort
SELECT 41 - + 84 AS col0
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9121
SELECT 86 * + CAST( + 34 AS SIGNED ) AS col0
----
2924

skipif mysql # not compatible
query I rowsort label-9121
SELECT 86 * + CAST ( + 34 AS INTEGER ) AS col0
----
2924

query I rowsort
SELECT ALL + 3 * - 30
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9123
SELECT DISTINCT + - 33 * - - CAST( COUNT( * ) AS SIGNED ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-9123
SELECT DISTINCT + - 33 * - - CAST ( COUNT ( * ) AS INTEGER ) AS col1
----
-33

query I rowsort
SELECT ALL - ( - + 39 ) AS col2
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9125
SELECT DISTINCT - 91 - SUM( DISTINCT 5 ) + COALESCE ( + + 31, - 29, CASE 91 WHEN 38 DIV SUM( - + 7 ) THEN - 86 + + 96 * + 13 * + 7 - + + ( + + 10 ) + - ( + 40 ) * - - 89 * + - 76 * - 3 * COUNT( * ) + 3 - + COUNT( * ) DIV + ( + 6 ) WHEN + + ( COUNT( * ) ) THEN NULL WHEN COUNT( * ) THEN COALESCE ( - 84, - - 81, NULLIF ( + 93, - + 44 ) + - 8 ) ELSE - - 34 - + CAST( + + 98 AS SIGNED ) + - 20 DIV 62 END + 89 DIV - 43, 80 * + 56 ) * - 76 AS col2
----
-2452

skipif mysql # not compatible
query I rowsort label-9125
SELECT DISTINCT - 91 - SUM ( DISTINCT 5 ) + COALESCE ( + + 31, - 29, CASE 91 WHEN 38 / SUM ( - + 7 ) THEN - 86 + + 96 * + 13 * + 7 - + + ( + + 10 ) + - ( + 40 ) * - - 89 * + - 76 * - 3 * COUNT ( * ) + 3 - + COUNT ( * ) / + ( + 6 ) WHEN + + ( COUNT ( * ) ) THEN NULL WHEN COUNT ( * ) THEN COALESCE ( - 84, - - 81, NULLIF ( + 93, - + 44 ) + - 8 ) ELSE - - 34 - + CAST ( + + 98 AS INTEGER ) + - 20 / 62 END + 89 / - 43, 80 * + 56 ) * - 76 AS col2
----
-2452

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

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

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

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

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

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

query I rowsort
SELECT - 98 * 84 AS col1
----
-8232

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

query II rowsort
SELECT ALL - + 47 AS col0, 18 * + 41 * + 92
----
-47
67896

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

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

query I rowsort
SELECT 34 * 89 AS col1
----
3026

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

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

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

query I rowsort
SELECT 57 * + 9 * - 43
----
-22059

query I rowsort
SELECT 44 - 68 AS col0
----
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-9139
SELECT ( + MAX( ALL + 57 ) ), - 42 * - ( + - ( - + 14 ) ) - + COUNT( - 82 ) AS col1
----
57
587

skipif mysql # not compatible
query II rowsort label-9139
SELECT ( + MAX ( ALL + 57 ) ), - 42 * - ( + - ( - + 14 ) ) - + COUNT ( - 82 ) AS col1
----
57
587

query I rowsort
SELECT ALL 26 + + 74 AS col0
----
100

query I rowsort
SELECT 6 - 93
----
-87

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9143
SELECT DISTINCT + 61 * - - 36 / CASE COUNT( * ) WHEN - - COUNT( * ) + - 98 THEN - CAST( NULL AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9143
SELECT DISTINCT + 61 * - - 36 / CASE COUNT ( * ) WHEN - - COUNT ( * ) + - 98 THEN - CAST ( NULL AS INTEGER ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9144
SELECT ALL - COALESCE ( + 85, + 98 - + 35 + COUNT( * ) * - + ( - + 42 ) + + 51 ) + 56 AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-9144
SELECT ALL - COALESCE ( + 85, + 98 - + 35 + COUNT ( * ) * - + ( - + 42 ) + + 51 ) + 56 AS col0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-9145
SELECT DISTINCT + MAX( ALL - 32 ) * - 5 AS col1
----
160

skipif mysql # not compatible
query I rowsort label-9145
SELECT DISTINCT + MAX ( ALL - 32 ) * - 5 AS col1
----
160

query I rowsort
SELECT ALL 73 + - - 63
----
136

query I rowsort
SELECT 51 - + 44 col1
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-9148
SELECT COUNT( * ) + + + NULLIF ( 95, - ( ( + COUNT( * ) ) ) ) AS col1, 90
----
96
90

skipif mysql # not compatible
query II rowsort label-9148
SELECT COUNT ( * ) + + + NULLIF ( 95, - ( ( + COUNT ( * ) ) ) ) AS col1, 90
----
96
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9149
SELECT CAST( 73 AS SIGNED ) + 71 + 76 AS col2
----
220

skipif mysql # not compatible
query I rowsort label-9149
SELECT CAST ( 73 AS INTEGER ) + 71 + 76 AS col2
----
220

query I rowsort
SELECT NULLIF ( - 54, + 72 + 88 ) * - - 26
----
-1404

onlyif mysql # aggregate syntax: 
query II rowsort label-9151
SELECT - COUNT( * ) AS col0, NULLIF ( 33, + + AVG ( DISTINCT + 90 ) * + 52 )
----
-1
33

skipif mysql # not compatible
query II rowsort label-9151
SELECT - COUNT ( * ) AS col0, NULLIF ( 33, + + AVG ( DISTINCT + 90 ) * + 52 )
----
-1
33

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

skipif mysql # not compatible
query I rowsort label-9152
SELECT ( COUNT ( * ) ) + - 85 AS col0
----
-84

query I rowsort
SELECT 86 - - 90
----
176

onlyif mysql # aggregate syntax: 
query I rowsort label-9154
SELECT ALL 18 * + COALESCE ( + - 98, + MIN( - 73 ) ) AS col1
----
-1764

skipif mysql # not compatible
query I rowsort label-9154
SELECT ALL 18 * + COALESCE ( + - 98, + MIN ( - 73 ) ) AS col1
----
-1764

onlyif mysql # aggregate syntax: 
query I rowsort label-9155
SELECT DISTINCT 36 * - - COUNT( 85 ) * + 57 - - COUNT( * ) + 60 * - - ( 98 )
----
7933

skipif mysql # not compatible
query I rowsort label-9155
SELECT DISTINCT 36 * - - COUNT ( 85 ) * + 57 - - COUNT ( * ) + 60 * - - ( 98 )
----
7933

onlyif mysql # DIV for integer division: 
query I rowsort label-9156
SELECT ALL - 44 DIV + + 89 * 58 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9156
SELECT ALL - 44 / + + 89 * 58 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9157
SELECT 76 DIV - + 67
----
-1

skipif mysql # not compatible
query I rowsort label-9157
SELECT 76 / - + 67
----
-1

query I rowsort
SELECT ALL - - CASE + - 23 WHEN + 22 THEN - - 71 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9159
SELECT 64 + + 47 DIV + ( - ( + 74 ) ) + NULLIF ( 31, COUNT( + 22 ) * - 69 - COUNT( * ) + 43 ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-9159
SELECT 64 + + 47 / + ( - ( + 74 ) ) + NULLIF ( 31, COUNT ( + 22 ) * - 69 - COUNT ( * ) + 43 ) AS col1
----
95

query II rowsort
SELECT + 36 AS col2, ( 59 ) AS col0
----
36
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9161
SELECT + 55 * - CAST( NULL AS SIGNED ) + - ( + + COALESCE ( 56, + + 54 + 40 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9161
SELECT + 55 * - CAST ( NULL AS INTEGER ) + - ( + + COALESCE ( 56, + + 54 + 40 ) ) AS col0
----
NULL

query II rowsort
SELECT + + 56, - 16 * - + 55 AS col1
----
56
880

query I rowsort
SELECT ALL 59 * - 82 * 36 + - 73 * 92 + + + 31 * - 51
----
-182465

query II rowsort
SELECT DISTINCT - + 79 col2, + 39 AS col1
----
-79
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9165
SELECT ALL + + SUM( - + 56 ) + + + 2 col0
----
-54

skipif mysql # not compatible
query I rowsort label-9165
SELECT ALL + + SUM ( - + 56 ) + + + 2 col0
----
-54

query I rowsort
SELECT 33 - - 40 AS col1
----
73

query I rowsort
SELECT DISTINCT 97 * 32
----
3104

query I rowsort
SELECT - 80 * - 17 + + 4
----
1364

onlyif mysql # aggregate syntax: 
query I rowsort label-9169
SELECT + - 89 + + 67 * - COUNT( * ) + - 98 AS col2
----
-254

skipif mysql # not compatible
query I rowsort label-9169
SELECT + - 89 + + 67 * - COUNT ( * ) + - 98 AS col2
----
-254

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9170
SELECT - - 39 + - 26 + - CASE + 49 WHEN + 40 + 98 - 92 * COUNT( * ) THEN - - 64 ELSE NULL END * CAST( + 88 AS SIGNED ) * + MIN( ( - 17 ) ) AS col2, 73 * + CASE - - CASE - ( + CAST( NULL AS SIGNED ) ) WHEN - - COUNT( * ) / + ( - + 88 ) THEN NULL WHEN - 0 THEN - 32 - 49 + - - 23 ELSE NULL END WHEN 69 * - - 24 * + + MIN( DISTINCT - 44 ) THEN - COUNT( ( + + 35 ) ) + AVG ( DISTINCT - - 8 ) + - 25 * - 3 * + AVG ( + 48 ) ELSE NULL END * + - 2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9170
SELECT - - 39 + - 26 + - CASE + 49 WHEN + 40 + 98 - 92 * COUNT ( * ) THEN - - 64 ELSE NULL END * CAST ( + 88 AS INTEGER ) * + MIN ( ( - 17 ) ) AS col2, 73 * + CASE - - CASE - ( + CAST ( NULL AS INTEGER ) ) WHEN - - COUNT ( * ) / + ( - + 88 ) THEN NULL WHEN - 0 THEN - 32 - 49 + - - 23 ELSE NULL END WHEN 69 * - - 24 * + + MIN ( DISTINCT - 44 ) THEN - COUNT ( ( + + 35 ) ) + AVG ( DISTINCT - - 8 ) + - 25 * - 3 * + AVG ( + 48 ) ELSE NULL END * + - 2
----
NULL
NULL

query I rowsort
SELECT - 15 - 17 + 84
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9172
SELECT - 79 + - COUNT( DISTINCT - ( 28 ) ) + - 65
----
-145

skipif mysql # not compatible
query I rowsort label-9172
SELECT - 79 + - COUNT ( DISTINCT - ( 28 ) ) + - 65
----
-145

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9173
SELECT DISTINCT + CAST( NULL AS SIGNED ) * AVG ( ( - + ( 9 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9173
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * AVG ( ( - + ( 9 ) ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-9174
SELECT ALL - MAX( DISTINCT + - 16 ) - 56 * - 30 * - 49 * 80 * + 77 AS col2, ( + ( - - 97 ) ), 1 + - - CAST( + - CASE + - ( + 27 ) WHEN - ( 7 ) THEN NULL WHEN + 85 + + - 33 + - + AVG ( - 59 ) * - 6 THEN - 31 END AS SIGNED ) / - ( - 3 ) col2
----
-507091184
97
NULL

skipif mysql # not compatible
query III rowsort label-9174
SELECT ALL - MAX ( DISTINCT + - 16 ) - 56 * - 30 * - 49 * 80 * + 77 AS col2, ( + ( - - 97 ) ), 1 + - - CAST ( + - CASE + - ( + 27 ) WHEN - ( 7 ) THEN NULL WHEN + 85 + + - 33 + - + AVG ( - 59 ) * - 6 THEN - 31 END AS INTEGER ) / - ( - 3 ) col2
----
-507091184
97
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9175
SELECT + ( - 69 ) + 87 + - - COUNT( * ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-9175
SELECT + ( - 69 ) + 87 + - - COUNT ( * ) AS col0
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-9176
SELECT - COUNT( * ) * + 32 AS col0, 44 + 94
----
-32
138

skipif mysql # not compatible
query II rowsort label-9176
SELECT - COUNT ( * ) * + 32 AS col0, 44 + 94
----
-32
138

onlyif mysql # aggregate syntax: 
query I rowsort label-9177
SELECT ALL 31 * COUNT( * ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-9177
SELECT ALL 31 * COUNT ( * ) AS col1
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9178
SELECT ALL + CAST( NULL AS SIGNED ) * - 43 AS col1, 17 * 9
----
NULL
153

skipif mysql # not compatible
query II rowsort label-9178
SELECT ALL + CAST ( NULL AS INTEGER ) * - 43 AS col1, 17 * 9
----
NULL
153

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

query I rowsort
SELECT DISTINCT ( - 6 ) AS col0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9181
SELECT - 53 * 2 AS col1, ( 5 ) * CASE + AVG ( ALL + 2 ) WHEN + 66 THEN - CAST( NULL AS SIGNED ) * - 21 * COALESCE ( 66, - - 72 ) ELSE NULL END
----
-106
NULL

skipif mysql # not compatible
query II rowsort label-9181
SELECT - 53 * 2 AS col1, ( 5 ) * CASE + AVG ( ALL + 2 ) WHEN + 66 THEN - CAST ( NULL AS INTEGER ) * - 21 * COALESCE ( 66, - - 72 ) ELSE NULL END
----
-106
NULL

query I rowsort
SELECT + - 6 + + 61 AS col0
----
55

query I rowsort
SELECT + ( + 84 ) AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9184
SELECT + + MIN( + ( - + 61 ) ) - COUNT( * )
----
-62

skipif mysql # not compatible
query I rowsort label-9184
SELECT + + MIN ( + ( - + 61 ) ) - COUNT ( * )
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9185
SELECT + COALESCE ( + CAST( NULL AS SIGNED ), + 79 + + - 49 ) col2
----
30

skipif mysql # not compatible
query I rowsort label-9185
SELECT + COALESCE ( + CAST ( NULL AS INTEGER ), + 79 + + - 49 ) col2
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-9186
SELECT ALL - 50 * 90 AS col1, COUNT( * ) AS col2
----
-4500
1

skipif mysql # not compatible
query II rowsort label-9186
SELECT ALL - 50 * 90 AS col1, COUNT ( * ) AS col2
----
-4500
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9187
SELECT 39 DIV - 45 + - + CAST( COUNT( * ) AS SIGNED ) * + NULLIF ( - COUNT( * ), + 7 ) DIV 92 * 48 DIV + 68 + 21
----
21

skipif mysql # not compatible
query I rowsort label-9187
SELECT 39 / - 45 + - + CAST ( COUNT ( * ) AS INTEGER ) * + NULLIF ( - COUNT ( * ), + 7 ) / 92 * 48 / + 68 + 21
----
21

query I rowsort
SELECT ALL ( 8 ) * NULLIF ( + - 55, 48 ) + - 3
----
-443

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9189
SELECT DISTINCT - + MIN( + - 63 ) DIV + 68 + + - ( - COUNT( 90 ) ) + - ( - 20 ) * - 29 AS col1
----
-579

skipif mysql # not compatible
query I rowsort label-9189
SELECT DISTINCT - + MIN ( + - 63 ) / + 68 + + - ( - COUNT ( 90 ) ) + - ( - 20 ) * - 29 AS col1
----
-579

query I rowsort
SELECT 46 * - - 97 - 71
----
4391

onlyif mysql # aggregate syntax: 
query I rowsort label-9191
SELECT ALL + 86 * 45 + + + MIN( + 49 ) + + 73 AS col1
----
3992

skipif mysql # not compatible
query I rowsort label-9191
SELECT ALL + 86 * 45 + + + MIN ( + 49 ) + + 73 AS col1
----
3992

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9192
SELECT + NULLIF ( + COUNT( * ), - + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * + - 29 ), + 61 + 18 AS col2
----
1
79

skipif mysql # not compatible
query II rowsort label-9192
SELECT + NULLIF ( + COUNT ( * ), - + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * + - 29 ), + 61 + 18 AS col2
----
1
79

query I rowsort
SELECT + - 43 * - 5 * + 92
----
19780

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

query I rowsort
SELECT + COALESCE ( - 66, + 54 * - ( + CASE 21 WHEN 78 THEN 61 END ) + + + 89 * + + 65, + 37 ) * - NULLIF ( - 73, 14 ) + - 67 * + + 50
----
-8168

query I rowsort
SELECT ALL + 56 * 63 * + 94 + 3 AS col1
----
331635

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

query I rowsort
SELECT - 38 * - + 35 AS col1
----
1330

query I rowsort
SELECT ALL 44 * 17
----
748

query I rowsort
SELECT + 67 * + 3 AS col1
----
201

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9201
SELECT - CAST( 44 AS SIGNED ) col1
----
-44

skipif mysql # not compatible
query I rowsort label-9201
SELECT - CAST ( 44 AS INTEGER ) col1
----
-44

query I rowsort
SELECT + 43 - + 46
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-9203
SELECT COUNT( * ) AS col2, - COUNT( * )
----
1
-1

skipif mysql # not compatible
query II rowsort label-9203
SELECT COUNT ( * ) AS col2, - COUNT ( * )
----
1
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9205
SELECT - COUNT( + - ( 33 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9205
SELECT - COUNT ( + - ( 33 ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9206
SELECT ALL - 71 DIV - COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-9206
SELECT ALL - 71 / - COUNT ( * )
----
71

query I rowsort
SELECT DISTINCT ( - 60 )
----
-60

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

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

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

query I rowsort
SELECT + 35 * + 34 AS col0
----
1190

query II rowsort
SELECT ALL 70, - 17 AS col2
----
70
-17

query II rowsort
SELECT - 82, 22 - - 37 - 56 + + 83 AS col2
----
-82
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9213
SELECT - + COUNT( * ) + COALESCE ( - + 11, - 51 )
----
-12

skipif mysql # not compatible
query I rowsort label-9213
SELECT - + COUNT ( * ) + COALESCE ( - + 11, - 51 )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-9214
SELECT - COUNT( DISTINCT - - 27 ) * - NULLIF ( + + 71, - + COUNT( * ) ) col0
----
71

skipif mysql # not compatible
query I rowsort label-9214
SELECT - COUNT ( DISTINCT - - 27 ) * - NULLIF ( + + 71, - + COUNT ( * ) ) col0
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9215
SELECT ALL + 33 DIV 82 + COUNT( * ) * + + 5
----
5

skipif mysql # not compatible
query I rowsort label-9215
SELECT ALL + 33 / 82 + COUNT ( * ) * + + 5
----
5

query I rowsort
SELECT DISTINCT - + 36 col1
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9217
SELECT ALL + COUNT( * ) DIV + + 20 col2
----
0

skipif mysql # not compatible
query I rowsort label-9217
SELECT ALL + COUNT ( * ) / + + 20 col2
----
0

query I rowsort
SELECT DISTINCT - + 79 + + + 98 - + - 41 AS col2
----
60

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

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

query II rowsort
SELECT + 16 AS col0, + 55
----
16
55

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9222
SELECT CAST( + + 32 AS SIGNED ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-9222
SELECT CAST ( + + 32 AS INTEGER ) AS col0
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-9223
SELECT ALL + - 37 DIV + 36
----
-1

skipif mysql # not compatible
query I rowsort label-9223
SELECT ALL + - 37 / + 36
----
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9225
SELECT ALL - COUNT( * ) - 76 AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-9225
SELECT ALL - COUNT ( * ) - 76 AS col2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9226
SELECT ALL MIN( + 44 ) * + MAX( + 70 ) * + SUM( 7 ) * + 87 * + - 92 col2
----
-172566240

skipif mysql # not compatible
query I rowsort label-9226
SELECT ALL MIN ( + 44 ) * + MAX ( + 70 ) * + SUM ( 7 ) * + 87 * + - 92 col2
----
-172566240

query I rowsort
SELECT DISTINCT ( 51 ) * + ( + 98 )
----
4998

onlyif mysql # aggregate syntax: 
query I rowsort label-9228
SELECT NULLIF ( - - ( - 85 ), - 35 ) * + MAX( DISTINCT + ( - - ( 59 ) ) ) + + 20 + + - CASE - COUNT( * ) WHEN 47 THEN + + 54 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9228
SELECT NULLIF ( - - ( - 85 ), - 35 ) * + MAX ( DISTINCT + ( - - ( 59 ) ) ) + + 20 + + - CASE - COUNT ( * ) WHEN 47 THEN + + 54 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9229
SELECT ALL 50 DIV 85 * - - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-9229
SELECT ALL 50 / 85 * - - COUNT ( * )
----
0

query I rowsort
SELECT + 75 * - 95 + - 85 * + 34
----
-10015

onlyif mysql # aggregate syntax: 
query II rowsort label-9231
SELECT 48 * + - 48 + - COUNT( DISTINCT - 47 ) col1, + 11 AS col2
----
-2305
11

skipif mysql # not compatible
query II rowsort label-9231
SELECT 48 * + - 48 + - COUNT ( DISTINCT - 47 ) col1, + 11 AS col2
----
-2305
11

query I rowsort
SELECT 79 * - 71 * - 18 * - - 89 * - + 22
----
-197683596

query I rowsort
SELECT 57 * 59 AS col1
----
3363

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

query I rowsort
SELECT - 86 col1
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-9236
SELECT MIN( - - ( - 59 ) ) * + 75 AS col2
----
-4425

skipif mysql # not compatible
query I rowsort label-9236
SELECT MIN ( - - ( - 59 ) ) * + 75 AS col2
----
-4425

query I rowsort
SELECT ALL 54 * - + ( 56 ) AS col0
----
-3024

onlyif mysql # aggregate syntax: 
query I rowsort label-9238
SELECT SUM( + 79 ) + 68 * 53 * - ( + MAX( - + 51 ) )
----
183883

skipif mysql # not compatible
query I rowsort label-9238
SELECT SUM ( + 79 ) + 68 * 53 * - ( + MAX ( - + 51 ) )
----
183883

query I rowsort
SELECT DISTINCT 89 * - 72
----
-6408

query I rowsort
SELECT DISTINCT 6 * + - ( + - 50 )
----
300

onlyif mysql # aggregate syntax: 
query I rowsort label-9241
SELECT 95 + - COUNT( * ) + - COUNT( * ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-9241
SELECT 95 + - COUNT ( * ) + - COUNT ( * ) AS col0
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9242
SELECT 16 + CAST( - + 44 AS SIGNED )
----
-28

skipif mysql # not compatible
query I rowsort label-9242
SELECT 16 + CAST ( - + 44 AS INTEGER )
----
-28

query II rowsort
SELECT - 49 * + ( + ( 20 ) ) AS col0, - 2 AS col2
----
-980
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9244
SELECT ALL NULLIF ( - COUNT( * ), + 15 * - + 47 ) + + + COALESCE ( 21, 90, + SUM( ALL 81 ) * - 8 DIV + COALESCE ( + 13, - - 49, + - 6 ), + + 76 ) col1
----
20

skipif mysql # not compatible
query I rowsort label-9244
SELECT ALL NULLIF ( - COUNT ( * ), + 15 * - + 47 ) + + + COALESCE ( 21, 90, + SUM ( ALL 81 ) * - 8 / + COALESCE ( + 13, - - 49, + - 6 ), + + 76 ) col1
----
20

query I rowsort
SELECT ALL + 23 + + 20
----
43

query I rowsort
SELECT ALL - 59 + - 96 * + 46 AS col0
----
-4475

onlyif mysql # aggregate syntax: 
query I rowsort label-9247
SELECT DISTINCT + 1 * + MIN( - 15 )
----
-15

skipif mysql # not compatible
query I rowsort label-9247
SELECT DISTINCT + 1 * + MIN ( - 15 )
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9248
SELECT ALL + 68 * - + CASE - + CASE + ( - + 14 ) WHEN CAST( COUNT( * ) AS SIGNED ) + + CAST( - 51 AS SIGNED ) THEN + 23 END WHEN - 25 * + 25 THEN COUNT( * ) END - 50 * - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-9248
SELECT ALL + 68 * - + CASE - + CASE + ( - + 14 ) WHEN CAST ( COUNT ( * ) AS INTEGER ) + + CAST ( - 51 AS INTEGER ) THEN + 23 END WHEN - 25 * + 25 THEN COUNT ( * ) END - 50 * - 22
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9249
SELECT DISTINCT + + COUNT( * ) * 75 * + 31 * 1
----
2325

skipif mysql # not compatible
query I rowsort label-9249
SELECT DISTINCT + + COUNT ( * ) * 75 * + 31 * 1
----
2325

onlyif mysql # aggregate syntax: 
query I rowsort label-9250
SELECT + SUM( 37 ) * - ( 62 ) - - COUNT( * ) + + - ( - 60 ) * - CASE ( + 24 ) WHEN - SUM( ALL - - 12 ) + + - 54 - + 43 THEN - SUM( ALL + + 84 ) + + - 77 ELSE NULL END + - ( + COUNT( DISTINCT - 19 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9250
SELECT + SUM ( 37 ) * - ( 62 ) - - COUNT ( * ) + + - ( - 60 ) * - CASE ( + 24 ) WHEN - SUM ( ALL - - 12 ) + + - 54 - + 43 THEN - SUM ( ALL + + 84 ) + + - 77 ELSE NULL END + - ( + COUNT ( DISTINCT - 19 ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9251
SELECT COALESCE ( + SUM( + 43 ), - - 82, + 0 DIV - 34 + - COUNT( - 65 ) * 52 ) AS col2, - 57 AS col1
----
43
-57

skipif mysql # not compatible
query II rowsort label-9251
SELECT COALESCE ( + SUM ( + 43 ), - - 82, + 0 / - 34 + - COUNT ( - 65 ) * 52 ) AS col2, - 57 AS col1
----
43
-57

query I rowsort
SELECT DISTINCT - - 9 AS col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9253
SELECT DISTINCT - NULLIF ( + 34, + + 61 * 83 * + + 51 + - COUNT( DISTINCT + - 78 ) ) * - 78
----
2652

skipif mysql # not compatible
query I rowsort label-9253
SELECT DISTINCT - NULLIF ( + 34, + + 61 * 83 * + + 51 + - COUNT ( DISTINCT + - 78 ) ) * - 78
----
2652

query I rowsort
SELECT ALL - + 57
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9255
SELECT ALL - - COALESCE ( 37, 21 - 34 DIV - 62, + 72 * + 75 * 55 - + 56 - + CASE - 37 WHEN - 48 DIV 29 THEN NULL ELSE + 0 END + COALESCE ( - 40, 19, - 32 * + 38 * - + COUNT( * ) + 28 DIV 51 ), - - 81 ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-9255
SELECT ALL - - COALESCE ( 37, 21 - 34 / - 62, + 72 * + 75 * 55 - + 56 - + CASE - 37 WHEN - 48 / 29 THEN NULL ELSE + 0 END + COALESCE ( - 40, 19, - 32 * + 38 * - + COUNT ( * ) + 28 / 51 ), - - 81 ) AS col1
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9256
SELECT + 1 * + - COALESCE ( + COUNT( * ), + - 7, - 72 + 83 ) * - 80 - - 95 - - CAST( NULL AS SIGNED ) * NULLIF ( COUNT( * ), 85 + - 50 + + AVG ( DISTINCT + 70 ) ) + - + 31 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9256
SELECT + 1 * + - COALESCE ( + COUNT ( * ), + - 7, - 72 + 83 ) * - 80 - - 95 - - CAST ( NULL AS INTEGER ) * NULLIF ( COUNT ( * ), 85 + - 50 + + AVG ( DISTINCT + 70 ) ) + - + 31 AS col0
----
NULL

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

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

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

query I rowsort
SELECT ALL - 23 col1
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9260
SELECT ALL - CASE 4 WHEN + + MIN( + 92 ) THEN NULL WHEN - - 26 THEN + 1 WHEN + 29 / - 94 THEN - + CAST( 63 AS SIGNED ) - + 19 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9260
SELECT ALL - CASE 4 WHEN + + MIN ( + 92 ) THEN NULL WHEN - - 26 THEN + 1 WHEN + 29 / - 94 THEN - + CAST ( 63 AS INTEGER ) - + 19 END AS col2
----
NULL

query I rowsort
SELECT 25 * - 52 AS col2
----
-1300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9262
SELECT 44 * - 66 + 19 + - + 39 * MAX( ALL + + CAST( NULL AS SIGNED ) ) * + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-9262
SELECT 44 * - 66 + 19 + - + 39 * MAX ( ALL + + CAST ( NULL AS INTEGER ) ) * + 86
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9263
SELECT DISTINCT + 71 * + COUNT( * ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-9263
SELECT DISTINCT + 71 * + COUNT ( * ) AS col0
----
71

query II rowsort
SELECT ALL - 95 AS col0, 43
----
-95
43

query I rowsort
SELECT ALL + 53 * + 22 AS col0
----
1166

query I rowsort
SELECT DISTINCT 13 * - + 17
----
-221

query I rowsort
SELECT ALL 72 * + 48
----
3456

query I rowsort
SELECT DISTINCT 91
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-9269
SELECT CASE - 2 WHEN + 16 THEN - 26 + + - 36 DIV 2 + 74 DIV + + 30 ELSE - 91 DIV - 47 END DIV 53
----
0

skipif mysql # not compatible
query I rowsort label-9269
SELECT CASE - 2 WHEN + 16 THEN - 26 + + - 36 / 2 + 74 / + + 30 ELSE - 91 / - 47 END / 53
----
0

query I rowsort
SELECT CASE - 89 WHEN - 77 + 32 THEN CASE + 91 WHEN + 21 THEN - 12 END END - 59
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9271
SELECT COALESCE ( - 9, + 58 ) * + 63 * + COUNT( * ) col2
----
-567

skipif mysql # not compatible
query I rowsort label-9271
SELECT COALESCE ( - 9, + 58 ) * + 63 * + COUNT ( * ) col2
----
-567

onlyif mysql # aggregate syntax: 
query I rowsort label-9272
SELECT ALL 0 + CASE - ( - 14 ) WHEN 74 + - - 67 THEN - 1 * + SUM( + 78 ) + + 92 ELSE + - 59 END AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-9272
SELECT ALL 0 + CASE - ( - 14 ) WHEN 74 + - - 67 THEN - 1 * + SUM ( + 78 ) + + 92 ELSE + - 59 END AS col0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9273
SELECT + 38 * + - 76 + - 94 * + 15 * + COUNT( * ) AS col0
----
-4298

skipif mysql # not compatible
query I rowsort label-9273
SELECT + 38 * + - 76 + - 94 * + 15 * + COUNT ( * ) AS col0
----
-4298

query I rowsort
SELECT + 47 + 33 * - - ( + ( - 21 ) )
----
-646

query I rowsort
SELECT ( 66 )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9276
SELECT ALL + ( - 8 ) * - 56 * + COALESCE ( + 20, 63 * - - 21 * 90 + ( - 66 ) ) - - NULLIF ( + 25, - - 39 + 52 + - - 92 ) + + COUNT( * ) + NULLIF ( - - NULLIF ( - 77, + 76 ), + - COUNT( * ) + 32 ) AS col1
----
8909

skipif mysql # not compatible
query I rowsort label-9276
SELECT ALL + ( - 8 ) * - 56 * + COALESCE ( + 20, 63 * - - 21 * 90 + ( - 66 ) ) - - NULLIF ( + 25, - - 39 + 52 + - - 92 ) + + COUNT ( * ) + NULLIF ( - - NULLIF ( - 77, + 76 ), + - COUNT ( * ) + 32 ) AS col1
----
8909

onlyif mysql # aggregate syntax: 
query I rowsort label-9277
SELECT + + 39 + + CASE + 12 WHEN 81 THEN ( + 79 ) + + 53 WHEN + ( + 43 ) + 7 THEN + - SUM( ALL - 9 ) * + 86 + + 63 - 67 / - - 47 + - 82 * 48 END + - 80
----
NULL

skipif mysql # not compatible
query I rowsort label-9277
SELECT + + 39 + + CASE + 12 WHEN 81 THEN ( + 79 ) + + 53 WHEN + ( + 43 ) + 7 THEN + - SUM ( ALL - 9 ) * + 86 + + 63 - 67 / - - 47 + - 82 * 48 END + - 80
----
NULL

query I rowsort
SELECT ALL 53 + - 88 AS col2
----
-35

query I rowsort
SELECT DISTINCT + 28 col1
----
28

query I rowsort
SELECT ALL 62 * 83
----
5146

query I rowsort
SELECT - 19 * - + 0 * + 20
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9282
SELECT - SUM( DISTINCT - 57 ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-9282
SELECT - SUM ( DISTINCT - 57 ) AS col1
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-9283
SELECT + ( - - COUNT( * ) ) + - 59 AS col1, COALESCE ( - COUNT( * ), 82, - 77 * - - 88 ) AS col1
----
-58
-1

skipif mysql # not compatible
query II rowsort label-9283
SELECT + ( - - COUNT ( * ) ) + - 59 AS col1, COALESCE ( - COUNT ( * ), 82, - 77 * - - 88 ) AS col1
----
-58
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9284
SELECT ALL - ( + COUNT( - - 44 ) ), 21 AS col0
----
-1
21

skipif mysql # not compatible
query II rowsort label-9284
SELECT ALL - ( + COUNT ( - - 44 ) ), 21 AS col0
----
-1
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9285
SELECT ALL + + 37 * - 96 * - 2 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9285
SELECT ALL + + 37 * - 96 * - 2 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9286
SELECT DISTINCT + + 51 * - + 33 - - 40 + - MIN( DISTINCT - 19 ) AS col2
----
-1624

skipif mysql # not compatible
query I rowsort label-9286
SELECT DISTINCT + + 51 * - + 33 - - 40 + - MIN ( DISTINCT - 19 ) AS col2
----
-1624

onlyif mysql # aggregate syntax: 
query I rowsort label-9287
SELECT ALL - - SUM( DISTINCT + 40 ) * - + COUNT( * ) * + - 84 * - - SUM( DISTINCT - 91 )
----
-305760

skipif mysql # not compatible
query I rowsort label-9287
SELECT ALL - - SUM ( DISTINCT + 40 ) * - + COUNT ( * ) * + - 84 * - - SUM ( DISTINCT - 91 )
----
-305760

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9288
SELECT + MIN( ALL + 21 ) DIV - 84 * + - 26 * - - 65 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9288
SELECT + MIN ( ALL + 21 ) / - 84 * + - 26 * - - 65 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9289
SELECT - CAST( NULL AS SIGNED ) * + + 68 * + COUNT( ALL + 30 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9289
SELECT - CAST ( NULL AS INTEGER ) * + + 68 * + COUNT ( ALL + 30 )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-9290
SELECT ALL - - COUNT ( * ) * + + 68 AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9291
SELECT + - NULLIF ( NULLIF ( - 39, + 0 - - - 47 ), - 40 + + 27 + - 78 + - + NULLIF ( - MAX( - 66 ), + - 89 - - 91 ) / + 77 ) + 9 * - 89 + - 89
----
-851

skipif mysql # not compatible
query I rowsort label-9291
SELECT + - NULLIF ( NULLIF ( - 39, + 0 - - - 47 ), - 40 + + 27 + - 78 + - + NULLIF ( - MAX ( - 66 ), + - 89 - - 91 ) / + 77 ) + 9 * - 89 + - 89
----
-851

onlyif mysql # aggregate syntax: 
query I rowsort label-9292
SELECT - 3 * - - 5 * - 12 * COALESCE ( + COUNT( * ), + 28 + + - 96 )
----
180

skipif mysql # not compatible
query I rowsort label-9292
SELECT - 3 * - - 5 * - 12 * COALESCE ( + COUNT ( * ), + 28 + + - 96 )
----
180

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

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

query I rowsort
SELECT ALL + 84 * - + 25 * - - 2 AS col2
----
-4200

query I rowsort
SELECT COALESCE ( - 49, + 62 ) AS col2
----
-49

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

skipif mysql # not compatible
query II rowsort label-9296
SELECT + COUNT ( * ) AS col1, + 37 AS col1
----
1
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9297
SELECT CASE 14 WHEN - COALESCE ( - 78, - + 90 - - + COALESCE ( + 60, + - 18 ) ) + + 79 + + COUNT( * ) * + 72 THEN COUNT( * ) ELSE + - 85 * - NULLIF ( + 26, + 98 * + ( - - COUNT( * ) ) - - + 84 - + NULLIF ( - 94, 89 - - COUNT( * ) ) ) END * + - ( - CAST( NULL AS SIGNED ) ) * - ( + - 91 ) / 48 + + - 82
----
NULL

skipif mysql # not compatible
query I rowsort label-9297
SELECT CASE 14 WHEN - COALESCE ( - 78, - + 90 - - + COALESCE ( + 60, + - 18 ) ) + + 79 + + COUNT ( * ) * + 72 THEN COUNT ( * ) ELSE + - 85 * - NULLIF ( + 26, + 98 * + ( - - COUNT ( * ) ) - - + 84 - + NULLIF ( - 94, 89 - - COUNT ( * ) ) ) END * + - ( - CAST ( NULL AS INTEGER ) ) * - ( + - 91 ) / 48 + + - 82
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9299
SELECT ALL + CAST( + 1 AS SIGNED ) * + 88 + + 65 AS col0
----
153

skipif mysql # not compatible
query I rowsort label-9299
SELECT ALL + CAST ( + 1 AS INTEGER ) * + 88 + + 65 AS col0
----
153

query I rowsort
SELECT NULLIF ( - + 29, NULLIF ( - 78, 96 ) + - 89 + + 5 ) AS col0
----
-29

query I rowsort
SELECT - 66 + 72 AS col2
----
6

query II rowsort
SELECT ALL + 11 AS col1, + 90
----
11
90

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9304
SELECT - COUNT( * ) * - 18 DIV - COUNT( DISTINCT + + 73 )
----
-18

skipif mysql # not compatible
query I rowsort label-9304
SELECT - COUNT ( * ) * - 18 / - COUNT ( DISTINCT + + 73 )
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9305
SELECT ALL 47 * - + 76 * + 63 + + 30 + 39 DIV ( + + 48 ) + 3 - - + 82 + + + COALESCE ( - 33, - + NULLIF ( - + 31, 79 ), + CAST( NULL AS SIGNED ) ) + + + 4 - COUNT( * ) * - 92 DIV - + 42 + + 75 DIV - 95, - 44 DIV + 87 * - 18 * - 31 AS col1
----
-224952
0

skipif mysql # not compatible
query II rowsort label-9305
SELECT ALL 47 * - + 76 * + 63 + + 30 + 39 / ( + + 48 ) + 3 - - + 82 + + + COALESCE ( - 33, - + NULLIF ( - + 31, 79 ), + CAST ( NULL AS INTEGER ) ) + + + 4 - COUNT ( * ) * - 92 / - + 42 + + 75 / - 95, - 44 / + 87 * - 18 * - 31 AS col1
----
-224952
0

query I rowsort
SELECT + 95 + - 82 + - - 44
----
57

query I rowsort
SELECT - ( 40 ) + + - 62 col1
----
-102

query I rowsort
SELECT + 12 + + 55 * + 89
----
4907

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9309
SELECT DISTINCT 15 * + 28 * + + 15 + - + 93 * 28 * - COUNT( * ) * + CAST( - 54 AS SIGNED ) + - 74 col2
----
-134390

skipif mysql # not compatible
query I rowsort label-9309
SELECT DISTINCT 15 * + 28 * + + 15 + - + 93 * 28 * - COUNT ( * ) * + CAST ( - 54 AS INTEGER ) + - 74 col2
----
-134390

onlyif mysql # aggregate syntax: 
query II rowsort label-9310
SELECT - COUNT( + + 28 ) AS col2, 79 + 32
----
-1
111

skipif mysql # not compatible
query II rowsort label-9310
SELECT - COUNT ( + + 28 ) AS col2, 79 + 32
----
-1
111

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9312
SELECT DISTINCT + 68 + - + COUNT( 33 ) AS col0
----
67

skipif mysql # not compatible
query I rowsort label-9312
SELECT DISTINCT + 68 + - + COUNT ( 33 ) AS col0
----
67

query I rowsort
SELECT ALL + 32 * - - 39 + 50 col1
----
1298

query I rowsort
SELECT DISTINCT 28 AS col0
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-9315
SELECT - 39 col0, COALESCE ( 1, 23, CASE COUNT( * ) WHEN NULLIF ( - 84, - + 26 ) THEN - CASE + MIN( DISTINCT + + 2 ) WHEN - 76 THEN + 51 ELSE NULL END END, - - ( + - 23 ) )
----
-39
1

skipif mysql # not compatible
query II rowsort label-9315
SELECT - 39 col0, COALESCE ( 1, 23, CASE COUNT ( * ) WHEN NULLIF ( - 84, - + 26 ) THEN - CASE + MIN ( DISTINCT + + 2 ) WHEN - 76 THEN + 51 ELSE NULL END END, - - ( + - 23 ) )
----
-39
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9316
SELECT + 67 + + COALESCE ( - COUNT( * ), + 79 + + CAST( - 24 AS SIGNED ) ), + 2 AS col2
----
66
2

skipif mysql # not compatible
query II rowsort label-9316
SELECT + 67 + + COALESCE ( - COUNT ( * ), + 79 + + CAST ( - 24 AS INTEGER ) ), + 2 AS col2
----
66
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9317
SELECT + + COALESCE ( 5, - CASE - 56 WHEN - - 29 + 0 + - COUNT( * ) THEN - - 1 + + + COUNT( * ) + - 6 + 51 WHEN 66 - COUNT( ALL - 2 ) THEN NULL WHEN 85 * + 97 + 43 THEN NULL ELSE NULL END ) * - 37 AS col2
----
-185

skipif mysql # not compatible
query I rowsort label-9317
SELECT + + COALESCE ( 5, - CASE - 56 WHEN - - 29 + 0 + - COUNT ( * ) THEN - - 1 + + + COUNT ( * ) + - 6 + 51 WHEN 66 - COUNT ( ALL - 2 ) THEN NULL WHEN 85 * + 97 + 43 THEN NULL ELSE NULL END ) * - 37 AS col2
----
-185

query I rowsort
SELECT + 81 + + 21 AS col0
----
102

query I rowsort
SELECT ALL 50 - + 13 + + 43 AS col0
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9320
SELECT - COUNT( * ), - 29 DIV - 67 AS col2
----
-1
0

skipif mysql # not compatible
query II rowsort label-9320
SELECT - COUNT ( * ), - 29 / - 67 AS col2
----
-1
0

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9323
SELECT ALL + CAST( 47 AS SIGNED ), - ( + + CAST( NULL AS SIGNED ) ) col0
----
47
NULL

skipif mysql # not compatible
query II rowsort label-9323
SELECT ALL + CAST ( 47 AS INTEGER ), - ( + + CAST ( NULL AS INTEGER ) ) col0
----
47
NULL

query I rowsort
SELECT ALL + 66 * 47 AS col2
----
3102

query I rowsort
SELECT 20 col1
----
20

query II rowsort
SELECT DISTINCT 86, + 89 AS col1
----
86
89

query II rowsort
SELECT - 8, ( 17 ) * + 21 + + 19 col0
----
-8
376

query I rowsort
SELECT - NULLIF ( + 97, 19 + 97 )
----
-97

query I rowsort
SELECT + - 69 + + 5 + - 78 AS col1
----
-142

query II rowsort
SELECT ALL 53, 2 + + 11 AS col2
----
53
13

query I rowsort
SELECT ALL 80 * - 48
----
-3840

query I rowsort
SELECT DISTINCT 44 * - - 37
----
1628

onlyif mysql # DIV for integer division: 
query I rowsort label-9333
SELECT ALL - 76 DIV - - CASE + 85 WHEN 37 THEN NULL WHEN - AVG ( DISTINCT - + 72 ) + + + 8 THEN + - 47 DIV - ( + + 44 ) ELSE 45 + - - 14 END + + + ( 0 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9333
SELECT ALL - 76 / - - CASE + 85 WHEN 37 THEN NULL WHEN - AVG ( DISTINCT - + 72 ) + + + 8 THEN + - 47 / - ( + + 44 ) ELSE 45 + - - 14 END + + + ( 0 ) AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9334
SELECT + 73 DIV - COUNT( * ) AS col0, + 12 + - - COUNT( * ) AS col2
----
-73
13

skipif mysql # not compatible
query II rowsort label-9334
SELECT + 73 / - COUNT ( * ) AS col0, + 12 + - - COUNT ( * ) AS col2
----
-73
13

onlyif mysql # DIV for integer division: 
query I rowsort label-9335
SELECT ALL + 26 DIV + 62 + 28 AS col0
----
28

skipif mysql # not compatible
query I rowsort label-9335
SELECT ALL + 26 / + 62 + 28 AS col0
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9336
SELECT ALL COUNT( * ) DIV - 69 + + 23 * - 42 + - 6
----
-972

skipif mysql # not compatible
query I rowsort label-9336
SELECT ALL COUNT ( * ) / - 69 + + 23 * - 42 + - 6
----
-972

onlyif mysql # DIV for integer division: 
query I rowsort label-9337
SELECT DISTINCT 6 DIV - 22 * 46 + + 99 AS col2
----
99

skipif mysql # not compatible
query I rowsort label-9337
SELECT DISTINCT 6 / - 22 * 46 + + 99 AS col2
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-9338
SELECT ALL 31 DIV + COALESCE ( - 85, - - 23 )
----
0

skipif mysql # not compatible
query I rowsort label-9338
SELECT ALL 31 / + COALESCE ( - 85, - - 23 )
----
0

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

skipif mysql # not compatible
query I rowsort label-9339
SELECT - 43 / + COUNT ( * )
----
-43

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9340
SELECT - CAST( NULL AS DECIMAL ) * + 74, + 77 + - 13 AS col2
----
NULL
64

skipif mysql # not compatible
query II rowsort label-9340
SELECT - CAST ( NULL AS REAL ) * + 74, + 77 + - 13 AS col2
----
NULL
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9341
SELECT ALL 74 / CASE + 2 WHEN + 14 * + 45 * 37 THEN NULL WHEN + 89 THEN - 5 + - MIN( + 99 ) WHEN + 61 THEN + - 38 * - 90 END * + + 22 + 93 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9341
SELECT ALL 74 / CASE + 2 WHEN + 14 * + 45 * 37 THEN NULL WHEN + 89 THEN - 5 + - MIN ( + 99 ) WHEN + 61 THEN + - 38 * - 90 END * + + 22 + 93 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9342
SELECT DISTINCT CAST( NULL AS SIGNED ) / NULLIF ( + CASE ( - 57 ) WHEN + 49 + - + 51 + + + COUNT( * ) + + + 30 / + 29 * - CAST( NULL AS SIGNED ) + 98 THEN CAST( + 37 AS DECIMAL ) END, 56 ) * + + 53 * + 58 - - ( + + 65 ) + + COALESCE ( SUM( DISTINCT - - 62 ), + NULLIF ( + 8, 86 ), + + 5 ) + ( + CAST( NULL AS SIGNED ) ) * - 80 + - 8 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9342
SELECT DISTINCT CAST ( NULL AS INTEGER ) / NULLIF ( + CASE ( - 57 ) WHEN + 49 + - + 51 + + + COUNT ( * ) + + + 30 / + 29 * - CAST ( NULL AS INTEGER ) + 98 THEN CAST ( + 37 AS REAL ) END, 56 ) * + + 53 * + 58 - - ( + + 65 ) + + COALESCE ( SUM ( DISTINCT - - 62 ), + NULLIF ( + 8, 86 ), + + 5 ) + ( + CAST ( NULL AS INTEGER ) ) * - 80 + - 8 AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-9343
SELECT ( - MAX ( + 43 ) )
----
-43

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9345
SELECT - CAST( + MAX( DISTINCT - 79 ) AS SIGNED ) * + + COUNT( * )
----
79

skipif mysql # not compatible
query I rowsort label-9345
SELECT - CAST ( + MAX ( DISTINCT - 79 ) AS INTEGER ) * + + COUNT ( * )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9346
SELECT ALL NULLIF ( - SUM( + - 68 ), + + 60 ) * 68 + - + 41 AS col2
----
4583

skipif mysql # not compatible
query I rowsort label-9346
SELECT ALL NULLIF ( - SUM ( + - 68 ), + + 60 ) * 68 + - + 41 AS col2
----
4583

query I rowsort
SELECT ( ( ( + 70 ) ) ) AS col1
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9348
SELECT DISTINCT - CAST( - ( - 93 ) AS SIGNED )
----
-93

skipif mysql # not compatible
query I rowsort label-9348
SELECT DISTINCT - CAST ( - ( - 93 ) AS INTEGER )
----
-93

query I rowsort
SELECT DISTINCT + 36 + + 18 - - + 45 AS col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9350
SELECT 10 * + + CASE + 82 WHEN - COUNT( * ) * - + 91 * + 32 + + COUNT( ALL 60 ) THEN + 69 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9350
SELECT 10 * + + CASE + 82 WHEN - COUNT ( * ) * - + 91 * + 32 + + COUNT ( ALL 60 ) THEN + 69 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT 84 + 39 + - 42 AS col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9352
SELECT MIN( 56 ) col1
----
56

skipif mysql # not compatible
query I rowsort label-9352
SELECT MIN ( 56 ) col1
----
56

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-9354
SELECT + COUNT( * ) + - 26, + 51 AS col1
----
-25
51

skipif mysql # not compatible
query II rowsort label-9354
SELECT + COUNT ( * ) + - 26, + 51 AS col1
----
-25
51

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

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

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

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

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

skipif mysql # not compatible
query II rowsort label-9358
SELECT CAST ( NULL AS INTEGER ) + - + 21 AS col2, - COUNT ( * ) AS col0
----
NULL
-1

query I rowsort
SELECT 63 * - 3
----
-189

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9360
SELECT - 45 + - 8 / - + CAST( NULL AS SIGNED ) * - 30 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9360
SELECT - 45 + - 8 / - + CAST ( NULL AS INTEGER ) * - 30 AS col0
----
NULL

query II rowsort
SELECT DISTINCT - - 28 * - 86, + 37 AS col2
----
-2408
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9362
SELECT ALL - MAX( DISTINCT - 8 )
----
8

skipif mysql # not compatible
query I rowsort label-9362
SELECT ALL - MAX ( DISTINCT - 8 )
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9363
SELECT - 67 + + 20 DIV MAX( ALL + + 68 ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-9363
SELECT - 67 + + 20 / MAX ( ALL + + 68 ) AS col1
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9364
SELECT + CAST( NULL AS SIGNED ) * - 64
----
NULL

skipif mysql # not compatible
query I rowsort label-9364
SELECT + CAST ( NULL AS INTEGER ) * - 64
----
NULL

query I rowsort
SELECT + 95 + 70 AS col0
----
165

query I rowsort
SELECT + 34 + - + 29
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9367
SELECT + COUNT( * ) DIV 16
----
0

skipif mysql # not compatible
query I rowsort label-9367
SELECT + COUNT ( * ) / 16
----
0

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

query I rowsort
SELECT 11 * - + 35 AS col0
----
-385

query I rowsort
SELECT ALL + 74 + 97 AS col1
----
171

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9371
SELECT ALL 85 + MAX( - 81 ) + - 41 DIV 88 * + 56 + + 42 + - - 45 - - 74 * 81 * - 21 AS col0
----
-125783

skipif mysql # not compatible
query I rowsort label-9371
SELECT ALL 85 + MAX ( - 81 ) + - 41 / 88 * + 56 + + 42 + - - 45 - - 74 * 81 * - 21 AS col0
----
-125783

query I rowsort
SELECT 76 * + + 16 AS col0
----
1216

query II rowsort
SELECT 48 AS col1, 19 * - ( - 5 ) AS col2
----
48
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9374
SELECT ALL 25 + + + COUNT( * ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-9374
SELECT ALL 25 + + + COUNT ( * ) AS col1
----
26

query I rowsort
SELECT 66 + + 84 col1
----
150

query I rowsort
SELECT DISTINCT 43 * ( 33 )
----
1419

query I rowsort
SELECT 11 - - 99
----
110

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9379
SELECT DISTINCT - MAX( - + 48 )
----
48

skipif mysql # not compatible
query I rowsort label-9379
SELECT DISTINCT - MAX ( - + 48 )
----
48

query II rowsort
SELECT DISTINCT 48 + 94 + - 43, - 96 + - 43 AS col2
----
99
-139

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

skipif mysql # not compatible
query I rowsort label-9381
SELECT DISTINCT - 77 / - + 86
----
0

query I rowsort
SELECT ALL + COALESCE ( - 58, 24, 30 + + ( + 86 ) - + 99 + + 82 ) - + - NULLIF ( + ( - + 74 ), - 79 )
----
-132

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

query II rowsort
SELECT ALL - 39, 89 AS col0
----
-39
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9385
SELECT COALESCE ( - + MAX( + - 54 ), 81 DIV CAST( - 39 AS SIGNED ) ) + 61 DIV - 99 + - 74 AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-9385
SELECT COALESCE ( - + MAX ( + - 54 ), 81 / CAST ( - 39 AS INTEGER ) ) + 61 / - 99 + - 74 AS col0
----
-20

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

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

query I rowsort
SELECT ALL 35 - - 43
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9388
SELECT 91 * ( - + 62 ) * + + ( - 78 ) * + 11 - + 68 + + 26 + - MAX( + - 53 ) * - 53 AS col0
----
4837985

skipif mysql # not compatible
query I rowsort label-9388
SELECT 91 * ( - + 62 ) * + + ( - 78 ) * + 11 - + 68 + + 26 + - MAX ( + - 53 ) * - 53 AS col0
----
4837985

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9389
SELECT - 88 * - CAST( 30 AS SIGNED ) + NULLIF ( - MAX( + 45 ), 53 )
----
2595

skipif mysql # not compatible
query I rowsort label-9389
SELECT - 88 * - CAST ( 30 AS INTEGER ) + NULLIF ( - MAX ( + 45 ), 53 )
----
2595

query I rowsort
SELECT ALL + 40 * + 62 col0
----
2480

onlyif mysql # aggregate syntax: 
query I rowsort label-9391
SELECT 8 / - CASE - 41 WHEN + 82 THEN COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9391
SELECT 8 / - CASE - 41 WHEN + 82 THEN COUNT ( * ) END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9392
SELECT ALL - 49 * + 60 + - NULLIF ( - 11, - + 23 * - - CAST( NULL AS SIGNED ) - - ( ( - ( - + 62 ) ) ) ) * - - 77 AS col0
----
-2093

skipif mysql # not compatible
query I rowsort label-9392
SELECT ALL - 49 * + 60 + - NULLIF ( - 11, - + 23 * - - CAST ( NULL AS INTEGER ) - - ( ( - ( - + 62 ) ) ) ) * - - 77 AS col0
----
-2093

query II rowsort
SELECT ALL + 44 AS col2, 26
----
44
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9394
SELECT 47 * + NULLIF ( - 26, - 28 / 98 * - + 2 ) * COUNT( * )
----
-1222

skipif mysql # not compatible
query I rowsort label-9394
SELECT 47 * + NULLIF ( - 26, - 28 / 98 * - + 2 ) * COUNT ( * )
----
-1222

query II rowsort
SELECT ALL + 34 AS col0, 16 * - 5 - 94 * + 39 col1
----
34
-3746

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

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

query I rowsort
SELECT DISTINCT - 95 col2
----
-95

query I rowsort
SELECT 26 * + 52 * + 69
----
93288

query I rowsort
SELECT - 74 * + 64 AS col1
----
-4736

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

query I rowsort
SELECT DISTINCT - ( - 42 ) AS col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9402
SELECT - 27 + - 61 - + COUNT( * ) + - 38 AS col0
----
-127

skipif mysql # not compatible
query I rowsort label-9402
SELECT - 27 + - 61 - + COUNT ( * ) + - 38 AS col0
----
-127

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

onlyif mysql # DIV for integer division: 
query I rowsort label-9404
SELECT + ( + - 88 ) DIV 33 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-9404
SELECT + ( + - 88 ) / 33 AS col2
----
-2

query I rowsort
SELECT ALL - - 34 + - 56 AS col0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-9406
SELECT DISTINCT - + NULLIF ( + 35, - + COUNT( * ) * - + 20 ) + + 53 AS col2
----
18

skipif mysql # not compatible
query I rowsort label-9406
SELECT DISTINCT - + NULLIF ( + 35, - + COUNT ( * ) * - + 20 ) + + 53 AS col2
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9407
SELECT DISTINCT + 45 DIV + COUNT( * ) col1
----
45

skipif mysql # not compatible
query I rowsort label-9407
SELECT DISTINCT + 45 / + COUNT ( * ) col1
----
45

query I rowsort
SELECT ALL + 23 + - 96
----
-73

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9410
SELECT DISTINCT - 71 + COALESCE ( + - 56, CAST( 1 AS SIGNED ) + - - ( + 48 ) )
----
-127

skipif mysql # not compatible
query I rowsort label-9410
SELECT DISTINCT - 71 + COALESCE ( + - 56, CAST ( 1 AS INTEGER ) + - - ( + 48 ) )
----
-127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9411
SELECT DISTINCT + 8 * + 64 AS col1, COALESCE ( + 2, + NULLIF ( - 22, 98 * + + CAST( - SUM( + 69 ) AS SIGNED ) ), + 49 + + 27 * - COUNT( * ) * + NULLIF ( - - COUNT( * ), 14 ) DIV 82, + - 79, - MIN( 45 ) ) AS col0
----
512
2

skipif mysql # not compatible
query II rowsort label-9411
SELECT DISTINCT + 8 * + 64 AS col1, COALESCE ( + 2, + NULLIF ( - 22, 98 * + + CAST ( - SUM ( + 69 ) AS INTEGER ) ), + 49 + + 27 * - COUNT ( * ) * + NULLIF ( - - COUNT ( * ), 14 ) / 82, + - 79, - MIN ( 45 ) ) AS col0
----
512
2

query I rowsort
SELECT ALL - 53 + + + 59 AS col2
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-9413
SELECT ALL + 99 + + - 38 DIV 43 col0
----
99

skipif mysql # not compatible
query I rowsort label-9413
SELECT ALL + 99 + + - 38 / 43 col0
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-9414
SELECT 66 DIV 44 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9414
SELECT 66 / 44 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9415
SELECT NULLIF ( - 31, - COUNT( * ) * + COUNT( * ) * - CASE 65 WHEN - COUNT( * ) * - ( - + AVG ( DISTINCT + 99 ) ) / - 41 + - MIN( DISTINCT + - 49 ) THEN ( 16 ) END * - 80 + + 22 ) AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-9415
SELECT NULLIF ( - 31, - COUNT ( * ) * + COUNT ( * ) * - CASE 65 WHEN - COUNT ( * ) * - ( - + AVG ( DISTINCT + 99 ) ) / - 41 + - MIN ( DISTINCT + - 49 ) THEN ( 16 ) END * - 80 + + 22 ) AS col0
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-9416
SELECT 54 DIV + + 34 + + - 95 AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-9416
SELECT 54 / + + 34 + + - 95 AS col0
----
-94

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9418
SELECT COALESCE ( + COUNT( * ), 14 )
----
1

skipif mysql # not compatible
query I rowsort label-9418
SELECT COALESCE ( + COUNT ( * ), 14 )
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9420
SELECT ALL + CASE - 13 WHEN + 59 THEN - ( + + COALESCE ( + 53, COUNT( * ), - 97 * - - 52 ) ) * + + ( + 63 ) ELSE NULL END * - 32 * - 27 / 73 - 67 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9420
SELECT ALL + CASE - 13 WHEN + 59 THEN - ( + + COALESCE ( + 53, COUNT ( * ), - 97 * - - 52 ) ) * + + ( + 63 ) ELSE NULL END * - 32 * - 27 / 73 - 67 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9421
SELECT ALL 71 * + - MIN( - CASE - ( - 38 ) WHEN 3 THEN NULL WHEN - + 25 * + 86 THEN - 5 ELSE - + 77 END )
----
-5467

skipif mysql # not compatible
query I rowsort label-9421
SELECT ALL 71 * + - MIN ( - CASE - ( - 38 ) WHEN 3 THEN NULL WHEN - + 25 * + 86 THEN - 5 ELSE - + 77 END )
----
-5467

query I rowsort
SELECT + 12 * - 56
----
-672

onlyif mysql # aggregate syntax: 
query II rowsort label-9423
SELECT MIN( + 16 ) AS col1, 62
----
16
62

skipif mysql # not compatible
query II rowsort label-9423
SELECT MIN ( + 16 ) AS col1, 62
----
16
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9424
SELECT MAX( + 68 ) * ( - 8 ) + - + AVG ( - 40 ) + + 79 - - 42 + + CAST( NULL AS SIGNED ) - + + 77 + - 28 * + - 58 * 53 + + 13 * - COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9424
SELECT MAX ( + 68 ) * ( - 8 ) + - + AVG ( - 40 ) + + 79 - - 42 + + CAST ( NULL AS INTEGER ) - + + 77 + - 28 * + - 58 * 53 + + 13 * - COUNT ( * ) col0
----
NULL

query I rowsort
SELECT + 82 * 38 AS col1
----
3116

query I rowsort
SELECT ALL + + 39
----
39

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

onlyif mysql # DIV for integer division: 
query I rowsort label-9428
SELECT ALL + - 3 DIV + + 7 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9428
SELECT ALL + - 3 / + + 7 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9429
SELECT ALL + - CAST( 94 AS SIGNED ) AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-9429
SELECT ALL + - CAST ( 94 AS INTEGER ) AS col2
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9430
SELECT + + CAST( - 13 AS SIGNED ) + + 96
----
83

skipif mysql # not compatible
query I rowsort label-9430
SELECT + + CAST ( - 13 AS INTEGER ) + + 96
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9431
SELECT - SUM( + - 29 ) * - 5 * 24 * - 32 * - ( 77 ) col1
----
-8574720

skipif mysql # not compatible
query I rowsort label-9431
SELECT - SUM ( + - 29 ) * - 5 * 24 * - 32 * - ( 77 ) col1
----
-8574720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9432
SELECT ALL CAST( NULL AS SIGNED ) / - 68 - - 4 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9432
SELECT ALL CAST ( NULL AS INTEGER ) / - 68 - - 4 AS col0
----
NULL

query I rowsort
SELECT - - 84 AS col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9434
SELECT 87 * 17 + + 3 * + + ( + COUNT( * ) ) + + 4 + 3 * 64 * 22 + 7 AS col0
----
5717

skipif mysql # not compatible
query I rowsort label-9434
SELECT 87 * 17 + + 3 * + + ( + COUNT ( * ) ) + + 4 + 3 * 64 * 22 + 7 AS col0
----
5717

onlyif mysql # aggregate syntax: 
query I rowsort label-9435
SELECT - CASE 71 WHEN - SUM( + ( - 60 ) ) + 73 THEN + 88 * + 71 * 89 + 80 * + 14 + + COUNT( 45 ) + - MAX( ALL 4 ) * - - 61 WHEN + - 98 THEN COUNT( - + 67 ) WHEN + 64 - + + 21 * - + 52 THEN - 96 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9435
SELECT - CASE 71 WHEN - SUM ( + ( - 60 ) ) + 73 THEN + 88 * + 71 * 89 + 80 * + 14 + + COUNT ( 45 ) + - MAX ( ALL 4 ) * - - 61 WHEN + - 98 THEN COUNT ( - + 67 ) WHEN + 64 - + + 21 * - + 52 THEN - 96 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + + 36 + + 51 + + 99 + - 83 AS col1
----
103

query I rowsort
SELECT + - 38 + + ( - - 4 )
----
-34

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

query I rowsort
SELECT ALL - + 23 + - 53 AS col0
----
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-9440
SELECT ALL COUNT( * ) * - 97 AS col2, 35
----
-97
35

skipif mysql # not compatible
query II rowsort label-9440
SELECT ALL COUNT ( * ) * - 97 AS col2, 35
----
-97
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9441
SELECT ALL + CAST( - 2 AS SIGNED ) + + 11 AS col2
----
9

skipif mysql # not compatible
query I rowsort label-9441
SELECT ALL + CAST ( - 2 AS INTEGER ) + + 11 AS col2
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-9442
SELECT DISTINCT 31 + + - COUNT( * ) AS col0, + 58
----
30
58

skipif mysql # not compatible
query II rowsort label-9442
SELECT DISTINCT 31 + + - COUNT ( * ) AS col0, + 58
----
30
58

query I rowsort
SELECT DISTINCT + 22 + - 85
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9444
SELECT ALL - 67 + - + 30 + CASE + - CAST( NULL AS SIGNED ) WHEN 95 THEN + 98 WHEN - CASE + ( - + 5 ) WHEN 77 * + ( + CAST( NULL AS SIGNED ) ) * + 20 * - + 52 * - 14 * - 30 THEN NULLIF ( - AVG ( - 99 ), + CAST( NULL AS SIGNED ) + 31 + + - 29 * COUNT( * ) ) END THEN NULL END * + 3 * 6 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9444
SELECT ALL - 67 + - + 30 + CASE + - CAST ( NULL AS INTEGER ) WHEN 95 THEN + 98 WHEN - CASE + ( - + 5 ) WHEN 77 * + ( + CAST ( NULL AS INTEGER ) ) * + 20 * - + 52 * - 14 * - 30 THEN NULLIF ( - AVG ( - 99 ), + CAST ( NULL AS INTEGER ) + 31 + + - 29 * COUNT ( * ) ) END THEN NULL END * + 3 * 6 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9445
SELECT DISTINCT CASE 90 WHEN 53 * + 58 - 47 / COUNT( * ) - + COUNT( * ) THEN NULL ELSE + + 96 * - 12 * + COUNT( * ) END AS col0
----
-1152

skipif mysql # not compatible
query I rowsort label-9445
SELECT DISTINCT CASE 90 WHEN 53 * + 58 - 47 / COUNT ( * ) - + COUNT ( * ) THEN NULL ELSE + + 96 * - 12 * + COUNT ( * ) END AS col0
----
-1152

onlyif mysql # aggregate syntax: 
query I rowsort label-9446
SELECT - 96 * COUNT( * ) AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-9446
SELECT - 96 * COUNT ( * ) AS col2
----
-96

query I rowsort
SELECT DISTINCT NULLIF ( - 24, + - 72 )
----
-24

query I rowsort
SELECT - 66 + - 87 AS col0
----
-153

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9450
SELECT ALL - 4 - + + 39 * + COUNT( * ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-9450
SELECT ALL - 4 - + + 39 * + COUNT ( * ) AS col0
----
-43

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9452
SELECT DISTINCT + 77 * - - COUNT( * ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-9452
SELECT DISTINCT + 77 * - - COUNT ( * ) AS col2
----
77

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

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

query I rowsort
SELECT - 30 * - COALESCE ( + - 31, 34 ) AS col2
----
-930

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

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

query I rowsort
SELECT - 18 + + 83 * + 75 AS col2
----
6207

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9457
SELECT 23 DIV + 57 - 3 AS col2, - 64 * + COUNT( * ) * - - COUNT( * ) * + 90
----
-3
-5760

skipif mysql # not compatible
query II rowsort label-9457
SELECT 23 / + 57 - 3 AS col2, - 64 * + COUNT ( * ) * - - COUNT ( * ) * + 90
----
-3
-5760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9458
SELECT 96 * + - 54 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9458
SELECT 96 * + - 54 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9459
SELECT ALL + COUNT( * ) * - 99 * - 53 AS col2
----
5247

skipif mysql # not compatible
query I rowsort label-9459
SELECT ALL + COUNT ( * ) * - 99 * - 53 AS col2
----
5247

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9461
SELECT + MAX( ALL 86 ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-9461
SELECT + MAX ( ALL 86 ) AS col2
----
86

query I rowsort
SELECT + 64 + 52 AS col2
----
116

query I rowsort
SELECT DISTINCT + 76 * + 38 + 19 * - 49
----
1957

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9465
SELECT COALESCE ( 1, + MIN( DISTINCT 15 ) * 36 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9465
SELECT COALESCE ( 1, + MIN ( DISTINCT 15 ) * 36 ) AS col2
----
1

query I rowsort
SELECT - 4 * + 87
----
-348

query I rowsort
SELECT ALL 16 * 27
----
432

onlyif mysql # aggregate syntax: 
query I rowsort label-9468
SELECT + NULLIF ( COUNT( * ), - MIN( DISTINCT 48 ) / - AVG ( ALL - 21 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9468
SELECT + NULLIF ( COUNT ( * ), - MIN ( DISTINCT 48 ) / - AVG ( ALL - 21 ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9469
SELECT ALL ( - NULLIF ( + 11, + ( + CAST( NULL AS SIGNED ) ) ) ) * 33 + - 12
----
-375

skipif mysql # not compatible
query I rowsort label-9469
SELECT ALL ( - NULLIF ( + 11, + ( + CAST ( NULL AS INTEGER ) ) ) ) * 33 + - 12
----
-375

query I rowsort
SELECT - ( 50 ) AS col1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-9471
SELECT MIN( DISTINCT + 49 )
----
49

skipif mysql # not compatible
query I rowsort label-9471
SELECT MIN ( DISTINCT + 49 )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9472
SELECT ALL NULLIF ( + 39, MAX( 23 ) - + 57 ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-9472
SELECT ALL NULLIF ( + 39, MAX ( 23 ) - + 57 ) AS col1
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9473
SELECT DISTINCT MAX( ALL + 66 ) * COALESCE ( - ( - NULLIF ( + CAST( NULL AS SIGNED ), + 6 / - COUNT( * ) ) ), COUNT( * ) ) + 53 AS col0
----
119

skipif mysql # not compatible
query I rowsort label-9473
SELECT DISTINCT MAX ( ALL + 66 ) * COALESCE ( - ( - NULLIF ( + CAST ( NULL AS INTEGER ), + 6 / - COUNT ( * ) ) ), COUNT ( * ) ) + 53 AS col0
----
119

query I rowsort
SELECT + 38 * + 89 AS col1
----
3382

query I rowsort
SELECT + COALESCE ( 57, 13 ) * 42 AS col1
----
2394

onlyif mysql # aggregate syntax: 
query I rowsort label-9476
SELECT ALL 46 * 21 - - COUNT( * ) AS col0
----
967

skipif mysql # not compatible
query I rowsort label-9476
SELECT ALL 46 * 21 - - COUNT ( * ) AS col0
----
967

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9478
SELECT ALL MAX( CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9478
SELECT ALL MAX ( CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT + 91 - - 8
----
99

query I rowsort
SELECT - 96 * + ( + 70 ) AS col0
----
-6720

query I rowsort
SELECT ALL 2 * + 56
----
112

query I rowsort
SELECT + 8 + + 83
----
91

query I rowsort
SELECT ALL 73 - 60
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-9484
SELECT DISTINCT 31 DIV + 4
----
7

skipif mysql # not compatible
query I rowsort label-9484
SELECT DISTINCT 31 / + 4
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9485
SELECT DISTINCT + CASE - CAST( + 12 AS SIGNED ) WHEN 97 THEN 69 WHEN 34 THEN + 97 ELSE NULL END * CASE 62 WHEN 44 + - 35 THEN 93 WHEN 27 + CAST( NULL AS SIGNED ) / 74 THEN - MIN( + 42 ) * CAST( NULL AS DECIMAL ) WHEN + NULLIF ( 21, - 4 + - 38 ) * 6 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9485
SELECT DISTINCT + CASE - CAST ( + 12 AS INTEGER ) WHEN 97 THEN 69 WHEN 34 THEN + 97 ELSE NULL END * CASE 62 WHEN 44 + - 35 THEN 93 WHEN 27 + CAST ( NULL AS INTEGER ) / 74 THEN - MIN ( + 42 ) * CAST ( NULL AS REAL ) WHEN + NULLIF ( 21, - 4 + - 38 ) * 6 THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT 25 * 17
----
425

query I rowsort
SELECT 4 * 46
----
184

query I rowsort
SELECT 11 + + 83 AS col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9489
SELECT DISTINCT COUNT( DISTINCT + 26 ) * + 73 col2
----
73

skipif mysql # not compatible
query I rowsort label-9489
SELECT DISTINCT COUNT ( DISTINCT + 26 ) * + 73 col2
----
73

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

skipif mysql # not compatible
query I rowsort label-9490
SELECT 20 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9491
SELECT CAST( 78 AS SIGNED ) * 67 AS col2
----
5226

skipif mysql # not compatible
query I rowsort label-9491
SELECT CAST ( 78 AS INTEGER ) * 67 AS col2
----
5226

query I rowsort
SELECT 30 * 80
----
2400

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

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

query I rowsort
SELECT 20 * - 6 AS col2
----
-120

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

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

query I rowsort
SELECT DISTINCT - 19 * + 45 AS col2
----
-855

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9497
SELECT DISTINCT - 47 + ( 84 + - MAX( 54 - - NULLIF ( 4, + ( - 52 ) * 79 + + 6 * ( 33 * - 71 ) ) ) DIV + 84 ) DIV 3
----
-19

skipif mysql # not compatible
query I rowsort label-9497
SELECT DISTINCT - 47 + ( 84 + - MAX ( 54 - - NULLIF ( 4, + ( - 52 ) * 79 + + 6 * ( 33 * - 71 ) ) ) / + 84 ) / 3
----
-19

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9499
SELECT ALL - COUNT( * ) + 16 AS col1
----
15

skipif mysql # not compatible
query I rowsort label-9499
SELECT ALL - COUNT ( * ) + 16 AS col1
----
15

query I rowsort
SELECT + 5 * 32 AS col0
----
160

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

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

query I rowsort
SELECT - + 83 * 70 - 60
----
-5870

query I rowsort
SELECT DISTINCT - - 97
----
97

query I rowsort
SELECT ALL - 51 + 22
----
-29

query I rowsort
SELECT 52 * 19
----
988

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

query I rowsort
SELECT ALL + - 57 + - 58 AS col0
----
-115

onlyif mysql # DIV for integer division: 
query I rowsort label-9508
SELECT DISTINCT - 18 + 44 DIV 51 AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-9508
SELECT DISTINCT - 18 + 44 / 51 AS col0
----
-18

query I rowsort
SELECT DISTINCT - - 63
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9510
SELECT ALL CAST( NULL AS SIGNED ) + NULLIF ( 87, COUNT( * ) * ( 99 * 87 ) ) * 61 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9510
SELECT ALL CAST ( NULL AS INTEGER ) + NULLIF ( 87, COUNT ( * ) * ( 99 * 87 ) ) * 61 AS col1
----
NULL

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

query I rowsort
SELECT DISTINCT - + 46 AS col1
----
-46

query I rowsort
SELECT DISTINCT - 58 + COALESCE ( 19, 36 + + 91, 49 + ( 99 ) * - 30 ) AS col1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-9514
SELECT ALL - SUM( 87 ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-9514
SELECT ALL - SUM ( 87 ) AS col2
----
-87

query I rowsort
SELECT - 60 * + 34 - 63 AS col1
----
-2103

query I rowsort
SELECT ALL - 24 - + 29 AS col1
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9517
SELECT + CASE + 67 WHEN + 9 - - 73 THEN 87 WHEN 25 THEN ( CAST( CASE COUNT( * ) WHEN - COUNT( * ) THEN - ( + ( 44 ) ) WHEN 0 THEN NULL WHEN - 81 / - 32 THEN NULL END AS SIGNED ) ) END * ( 37 ) + 82 * 96
----
NULL

skipif mysql # not compatible
query I rowsort label-9517
SELECT + CASE + 67 WHEN + 9 - - 73 THEN 87 WHEN 25 THEN ( CAST ( CASE COUNT ( * ) WHEN - COUNT ( * ) THEN - ( + ( 44 ) ) WHEN 0 THEN NULL WHEN - 81 / - 32 THEN NULL END AS INTEGER ) ) END * ( 37 ) + 82 * 96
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9518
SELECT + MIN( DISTINCT 26 ) * + 79 AS col2
----
2054

skipif mysql # not compatible
query I rowsort label-9518
SELECT + MIN ( DISTINCT 26 ) * + 79 AS col2
----
2054

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9519
SELECT CAST( NULL AS SIGNED ) * COALESCE ( 26, + 58 / 36 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9519
SELECT CAST ( NULL AS INTEGER ) * COALESCE ( 26, + 58 / 36 ) col2
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9521
SELECT + 68 * NULLIF ( + CAST( 54 AS SIGNED ), - 48 - + MAX( + 54 ) ) + 28
----
3700

skipif mysql # not compatible
query I rowsort label-9521
SELECT + 68 * NULLIF ( + CAST ( 54 AS INTEGER ), - 48 - + MAX ( + 54 ) ) + 28
----
3700

query I rowsort
SELECT ALL 61 * + + 96 AS col2
----
5856

query I rowsort
SELECT 79 + + COALESCE ( + 31, - NULLIF ( ( 57 ), - 57 ) * + 32, 55 )
----
110

query I rowsort
SELECT 85 * - + 80
----
-6800

onlyif mysql # DIV for integer division: 
query I rowsort label-9525
SELECT ALL - 95 * 95 DIV + 31
----
-291

skipif mysql # not compatible
query I rowsort label-9525
SELECT ALL - 95 * 95 / + 31
----
-291

query I rowsort
SELECT 63 col2
----
63

query I rowsort
SELECT ALL 66 col2
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-9528
SELECT ALL 49 DIV 47 * 46
----
46

skipif mysql # not compatible
query I rowsort label-9528
SELECT ALL 49 / 47 * 46
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9529
SELECT 11 * + COALESCE ( MIN( 52 ), + 82 * + 34 )
----
572

skipif mysql # not compatible
query I rowsort label-9529
SELECT 11 * + COALESCE ( MIN ( 52 ), + 82 * + 34 )
----
572

query I rowsort
SELECT DISTINCT 22
----
22

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9532
SELECT 23 + + + 76 / - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9532
SELECT 23 + + + 76 / - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9533
SELECT 94 DIV ( 69 )
----
1

skipif mysql # not compatible
query I rowsort label-9533
SELECT 94 / ( 69 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9534
SELECT COUNT( * ) DIV + 47 * COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9534
SELECT COUNT ( * ) / + 47 * COUNT ( * ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9535
SELECT ALL 13 DIV + 65 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9535
SELECT ALL 13 / + 65 AS col2
----
0

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9539
SELECT ALL AVG ( + - CAST( NULL AS SIGNED ) ) * + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-9539
SELECT ALL AVG ( + - CAST ( NULL AS INTEGER ) ) * + 86
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9541
SELECT ALL + COUNT( * ) * CAST( + 51 AS SIGNED ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-9541
SELECT ALL + COUNT ( * ) * CAST ( + 51 AS INTEGER ) AS col2
----
51

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

query I rowsort
SELECT ALL + 33 + + 45
----
78

query I rowsort
SELECT DISTINCT 70 * + - 83 col2
----
-5810

query I rowsort
SELECT ALL 71 * + + 19 + 43 AS col2
----
1392

query I rowsort
SELECT - 84 * + 11 * + ( 27 ) + + 31 * + 65
----
-22933

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9547
SELECT ALL - - CAST( NULL AS SIGNED ) * + 54 * 46 + 81 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9547
SELECT ALL - - CAST ( NULL AS INTEGER ) * + 54 * 46 + 81 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9548
SELECT ALL - AVG ( DISTINCT + + CAST( NULL AS SIGNED ) ) * 20
----
NULL

skipif mysql # not compatible
query I rowsort label-9548
SELECT ALL - AVG ( DISTINCT + + CAST ( NULL AS INTEGER ) ) * 20
----
NULL

query I rowsort
SELECT DISTINCT + - 11 * 2 + ( ( - 46 ) ) * 88
----
-4070

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

query I rowsort
SELECT ALL + + 46 * 1 * + 69 + 54
----
3228

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9552
SELECT - + CAST( NULL AS SIGNED ) * - ( SUM( ALL + 23 ) ) + + 60 + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9552
SELECT - + CAST ( NULL AS INTEGER ) * - ( SUM ( ALL + 23 ) ) + + 60 + - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9553
SELECT - 25 - + 50 * + COUNT( * ) AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-9553
SELECT - 25 - + 50 * + COUNT ( * ) AS col1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9554
SELECT - 8 * 7 + COUNT( * ) + 37 AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-9554
SELECT - 8 * 7 + COUNT ( * ) + 37 AS col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-9555
SELECT ALL 92 * ( 10 ) + + SUM( ALL 23 ) AS col2
----
943

skipif mysql # not compatible
query I rowsort label-9555
SELECT ALL 92 * ( 10 ) + + SUM ( ALL 23 ) AS col2
----
943

query I rowsort
SELECT 70 + 17
----
87

query I rowsort
SELECT ALL + - 26 * + + 12 + 43
----
-269

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9558
SELECT DISTINCT - + 42 * - + ( 37 ) + ( 28 + - 95 ) * CASE 83 * + COUNT( * ) + CAST( NULL AS SIGNED ) WHEN - 11 THEN 87 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9558
SELECT DISTINCT - + 42 * - + ( 37 ) + ( 28 + - 95 ) * CASE 83 * + COUNT ( * ) + CAST ( NULL AS INTEGER ) WHEN - 11 THEN 87 END AS col2
----
NULL

query I rowsort
SELECT DISTINCT - ( - 98 ) AS col1
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9560
SELECT ALL - - 17 - 68 - - 30 * - CAST( COALESCE ( ( 23 ), SUM( DISTINCT - 10 ) ) AS SIGNED )
----
-741

skipif mysql # not compatible
query I rowsort label-9560
SELECT ALL - - 17 - 68 - - 30 * - CAST ( COALESCE ( ( 23 ), SUM ( DISTINCT - 10 ) ) AS INTEGER )
----
-741

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

query I rowsort
SELECT ALL - ( 36 ) * + 16 AS col0
----
-576

query I rowsort
SELECT + - 21 * - 97 + 9 AS col2
----
2046

onlyif mysql # aggregate syntax: 
query I rowsort label-9564
SELECT ALL + - COALESCE ( 11, - 76 + 48 * + 58, 62 * COUNT( * ) ) - - 25 * 83
----
2064

skipif mysql # not compatible
query I rowsort label-9564
SELECT ALL + - COALESCE ( 11, - 76 + 48 * + 58, 62 * COUNT ( * ) ) - - 25 * 83
----
2064

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9565
SELECT 84 * - 74 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9565
SELECT 84 * - 74 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9566
SELECT 26 DIV + 32 * - 9 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9566
SELECT 26 / + 32 * - 9 AS col0
----
0

query I rowsort
SELECT - 41 * - + 61
----
2501

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

query I rowsort
SELECT + 74 col0
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-9570
SELECT ALL + 13 DIV + NULLIF ( + 75, 74 + 66 ) + 35 AS col1
----
35

skipif mysql # not compatible
query I rowsort label-9570
SELECT ALL + 13 / + NULLIF ( + 75, 74 + 66 ) + 35 AS col1
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-9571
SELECT DISTINCT + COUNT( * ) AS col2, - 10 AS col1
----
1
-10

skipif mysql # not compatible
query II rowsort label-9571
SELECT DISTINCT + COUNT ( * ) AS col2, - 10 AS col1
----
1
-10

query I rowsort
SELECT - 61 * 57 AS col1
----
-3477

onlyif mysql # aggregate syntax: 
query I rowsort label-9573
SELECT ALL MAX( + ( 20 ) ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-9573
SELECT ALL MAX ( + ( 20 ) ) AS col1
----
20

onlyif mysql # DIV for integer division: 
query II rowsort label-9574
SELECT ALL 61 AS col1, 13 DIV + + 34 AS col0
----
61
0

skipif mysql # not compatible
query II rowsort label-9574
SELECT ALL 61 AS col1, 13 / + + 34 AS col0
----
61
0

query II rowsort
SELECT 41 AS col2, 40 * - 19
----
41
-760

onlyif mysql # aggregate syntax: 
query I rowsort label-9576
SELECT ALL MIN( - 59 ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-9576
SELECT ALL MIN ( - 59 ) AS col2
----
-59

query II rowsort
SELECT - 16 AS col2, 50
----
-16
50

query I rowsort
SELECT ALL NULLIF ( COALESCE ( - + NULLIF ( 89, 85 ), 70 ), ( - 34 ) )
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9579
SELECT - 25 * - 56 * COUNT( DISTINCT 36 ) DIV COUNT( * ) AS col2
----
1400

skipif mysql # not compatible
query I rowsort label-9579
SELECT - 25 * - 56 * COUNT ( DISTINCT 36 ) / COUNT ( * ) AS col2
----
1400

query I rowsort
SELECT + 31 * - 72 AS col1
----
-2232

query I rowsort
SELECT DISTINCT - 64 * 40 AS col2
----
-2560

onlyif mysql # aggregate syntax: 
query I rowsort label-9582
SELECT - MAX( - 60 ) col2
----
60

skipif mysql # not compatible
query I rowsort label-9582
SELECT - MAX ( - 60 ) col2
----
60

query I rowsort
SELECT ALL 72 + 63 AS col0
----
135

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

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

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

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

skipif mysql # not compatible
query I rowsort label-9586
SELECT - 95 * COUNT ( * )
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-9587
SELECT - MAX( ALL 62 )
----
-62

skipif mysql # not compatible
query I rowsort label-9587
SELECT - MAX ( ALL 62 )
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9588
SELECT ALL - 47 + CAST( 58 AS SIGNED ) col0
----
11

skipif mysql # not compatible
query I rowsort label-9588
SELECT ALL - 47 + CAST ( 58 AS INTEGER ) col0
----
11

query I rowsort
SELECT ALL 59 + + 85 + + 95 + + 97 * - 29 * 85 AS col2
----
-238866

query I rowsort
SELECT ALL 18 + - 71 - + - 39
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9591
SELECT 35 AS col1, 38 * + - MAX( ALL + CAST( NULL AS SIGNED ) ) + - 87
----
35
NULL

skipif mysql # not compatible
query II rowsort label-9591
SELECT 35 AS col1, 38 * + - MAX ( ALL + CAST ( NULL AS INTEGER ) ) + - 87
----
35
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9592
SELECT + 0 - - 50 + COUNT( * ) * 92 AS col0
----
142

skipif mysql # not compatible
query I rowsort label-9592
SELECT + 0 - - 50 + COUNT ( * ) * 92 AS col0
----
142

onlyif mysql # aggregate syntax: 
query II rowsort label-9593
SELECT DISTINCT 1 AS col1, + MAX( - 4 ) * + 45
----
1
-180

skipif mysql # not compatible
query II rowsort label-9593
SELECT DISTINCT 1 AS col1, + MAX ( - 4 ) * + 45
----
1
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-9594
SELECT + + 98 + MAX( ALL - ( 99 ) ) + + 55
----
54

skipif mysql # not compatible
query I rowsort label-9594
SELECT + + 98 + MAX ( ALL - ( 99 ) ) + + 55
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9595
SELECT ALL + 46 * 11 + SUM( DISTINCT - 56 ) * 65 AS col2
----
-3134

skipif mysql # not compatible
query I rowsort label-9595
SELECT ALL + 46 * 11 + SUM ( DISTINCT - 56 ) * 65 AS col2
----
-3134

query I rowsort
SELECT + + COALESCE ( 42, + 1, - ( + COALESCE ( 27, - 47 ) ) )
----
42

query I rowsort
SELECT ALL + ( + 5 ) AS col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9598
SELECT DISTINCT - 60 * - COUNT( * ) * + CASE + 70 WHEN MAX( ALL - 4 ) THEN 16 END + COUNT( * ) * 42 - COUNT( * ) * 84 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9598
SELECT DISTINCT - 60 * - COUNT ( * ) * + CASE + 70 WHEN MAX ( ALL - 4 ) THEN 16 END + COUNT ( * ) * 42 - COUNT ( * ) * 84 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9599
SELECT DISTINCT 15 * - COALESCE ( - 12, 23 DIV 31 + + COUNT( * ) * + 66 )
----
180

skipif mysql # not compatible
query I rowsort label-9599
SELECT DISTINCT 15 * - COALESCE ( - 12, 23 / 31 + + COUNT ( * ) * + 66 )
----
180

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

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

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

query I rowsort
SELECT ALL + CASE WHEN NOT NULL BETWEEN NULL AND 28 THEN 77 ELSE NULL END * + 55
----
NULL

query I rowsort
SELECT + 42 * + 4
----
168

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

onlyif mysql # DIV for integer division: 
query I rowsort label-9605
SELECT + + 45 * NULLIF ( + 63, 65 ) DIV 83 - 23 AS col1
----
11

skipif mysql # not compatible
query I rowsort label-9605
SELECT + + 45 * NULLIF ( + 63, 65 ) / 83 - 23 AS col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9606
SELECT - - COUNT( * ) * + - 40 - - - 43 + 44 * - 1 * 87 AS col1
----
-3911

skipif mysql # not compatible
query I rowsort label-9606
SELECT - - COUNT ( * ) * + - 40 - - - 43 + 44 * - 1 * 87 AS col1
----
-3911

query I rowsort
SELECT ALL + + 8
----
8

query I rowsort
SELECT DISTINCT + + 48
----
48

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9610
SELECT + SUM( - CAST( + 32 AS SIGNED ) )
----
-32

skipif mysql # not compatible
query I rowsort label-9610
SELECT + SUM ( - CAST ( + 32 AS INTEGER ) )
----
-32

query I rowsort
SELECT DISTINCT + ( 34 ) * + + 38
----
1292

onlyif mysql # aggregate syntax: 
query I rowsort label-9612
SELECT - 14 - + - COUNT( * )
----
-13

skipif mysql # not compatible
query I rowsort label-9612
SELECT - 14 - + - COUNT ( * )
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-9613
SELECT - 31 DIV - 60 * 53
----
0

skipif mysql # not compatible
query I rowsort label-9613
SELECT - 31 / - 60 * 53
----
0

query I rowsort
SELECT DISTINCT - 9 * 60 + + 99 AS col2
----
-441

query I rowsort
SELECT ALL - CASE - - 99 WHEN 54 THEN - 25 END * CASE + CASE 40 WHEN 9 + 49 THEN + 54 ELSE 34 END * 7 WHEN + 29 THEN + 44 * 13 + - 65 * 70 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9616
SELECT - 66 DIV - + 97 * - 72 * + 93 * - COUNT( DISTINCT - 95 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9616
SELECT - 66 / - + 97 * - 72 * + 93 * - COUNT ( DISTINCT - 95 ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9617
SELECT ALL + 76 * - + COUNT( * ) * 67 + + 86 + - NULLIF ( + COUNT( DISTINCT + CAST( NULL AS SIGNED ) ), 97 ) AS col1
----
-5006

skipif mysql # not compatible
query I rowsort label-9617
SELECT ALL + 76 * - + COUNT ( * ) * 67 + + 86 + - NULLIF ( + COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ), 97 ) AS col1
----
-5006

onlyif mysql # DIV for integer division: 
query I rowsort label-9618
SELECT - 95 DIV + - 73 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9618
SELECT - 95 / + - 73 AS col0
----
1

query I rowsort
SELECT DISTINCT 95 * - 66 + 41 * + 93 AS col1
----
-2457

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

query I rowsort
SELECT DISTINCT + 87 + 96 * + 17 + + 56
----
1775

onlyif mysql # aggregate syntax: 
query I rowsort label-9622
SELECT - 30 + - + MAX( + 98 ) col0
----
-128

skipif mysql # not compatible
query I rowsort label-9622
SELECT - 30 + - + MAX ( + 98 ) col0
----
-128

onlyif mysql # DIV for integer division: 
query I rowsort label-9623
SELECT ALL + 15 + - - 23 DIV + 88 * - 91 AS col1
----
15

skipif mysql # not compatible
query I rowsort label-9623
SELECT ALL + 15 + - - 23 / + 88 * - 91 AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9624
SELECT DISTINCT COALESCE ( + 31, + ( COUNT( * ) ) * + 32 + + 51 ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-9624
SELECT DISTINCT COALESCE ( + 31, + ( COUNT ( * ) ) * + 32 + + 51 ) AS col2
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9625
SELECT ALL - 15 + - 39 * - CAST( NULL AS SIGNED ) * + 48 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9625
SELECT ALL - 15 + - 39 * - CAST ( NULL AS INTEGER ) * + 48 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9626
SELECT ALL ( - COALESCE ( + + SUM( + ( + 84 ) ), 23, - 77 + - 21 ) ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-9626
SELECT ALL ( - COALESCE ( + + SUM ( + ( + 84 ) ), 23, - 77 + - 21 ) ) AS col2
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9627
SELECT DISTINCT ( SUM( DISTINCT + + NULLIF ( 95, - 65 * + 98 ) ) ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-9627
SELECT DISTINCT ( SUM ( DISTINCT + + NULLIF ( 95, - 65 * + 98 ) ) ) AS col0
----
95

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9629
SELECT ALL - CAST( NULL AS SIGNED ) + + COUNT( * ) AS col1, 80 AS col1
----
NULL
80

skipif mysql # not compatible
query II rowsort label-9629
SELECT ALL - CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col1, 80 AS col1
----
NULL
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9630
SELECT - 5 + + 95 * - 43 + - + COUNT( * ) col2
----
-4091

skipif mysql # not compatible
query I rowsort label-9630
SELECT - 5 + + 95 * - 43 + - + COUNT ( * ) col2
----
-4091

query I rowsort
SELECT DISTINCT + - 0 * + 63 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9632
SELECT ALL - COALESCE ( 74, - COALESCE ( 37, - COUNT( * ) * + 42, - 24 ) )
----
-74

skipif mysql # not compatible
query I rowsort label-9632
SELECT ALL - COALESCE ( 74, - COALESCE ( 37, - COUNT ( * ) * + 42, - 24 ) )
----
-74

query I rowsort
SELECT - + 58 + + - ( 61 ) AS col1
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-9634
SELECT ALL - - 21 - - 5 * COUNT( * ) + - ( - ( - 78 ) ) * SUM( ( + 96 ) ) AS col0
----
-7462

skipif mysql # not compatible
query I rowsort label-9634
SELECT ALL - - 21 - - 5 * COUNT ( * ) + - ( - ( - 78 ) ) * SUM ( ( + 96 ) ) AS col0
----
-7462

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

query I rowsort
SELECT DISTINCT + + 8 * - 98
----
-784

query I rowsort
SELECT + 73 - - 96 AS col1
----
169

query I rowsort
SELECT DISTINCT - 87 - - 16 AS col0
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9639
SELECT - COUNT( * ) DIV + 59 + - COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9639
SELECT - COUNT ( * ) / + 59 + - COUNT ( * ) AS col1
----
-1

query I rowsort
SELECT + 14 * + 44 + - 35 AS col2
----
581

onlyif mysql # DIV for integer division: 
query I rowsort label-9641
SELECT + COALESCE ( + ( - + 28 ), + 32 * 45, - 66 DIV - 4 + + 50 ) - 69
----
-97

skipif mysql # not compatible
query I rowsort label-9641
SELECT + COALESCE ( + ( - + 28 ), + 32 * 45, - 66 / - 4 + + 50 ) - 69
----
-97

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9643
SELECT ALL - CASE + COUNT( * ) WHEN + + 53 THEN + + 88 + 42 * CAST( NULL AS SIGNED ) ELSE + 26 END
----
-26

skipif mysql # not compatible
query I rowsort label-9643
SELECT ALL - CASE + COUNT ( * ) WHEN + + 53 THEN + + 88 + 42 * CAST ( NULL AS INTEGER ) ELSE + 26 END
----
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-9644
SELECT ALL + 13 * - COUNT( * ) AS col1, + MIN( + 44 ) * - 88
----
-13
-3872

skipif mysql # not compatible
query II rowsort label-9644
SELECT ALL + 13 * - COUNT ( * ) AS col1, + MIN ( + 44 ) * - 88
----
-13
-3872

query I rowsort
SELECT + 80 * + 32 * ( - + 96 ) + - 28 * 36 col1
----
-246768

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9647
SELECT DISTINCT 59 * - - 33 + + COUNT( * ) col2
----
1948

skipif mysql # not compatible
query I rowsort label-9647
SELECT DISTINCT 59 * - - 33 + + COUNT ( * ) col2
----
1948

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9649
SELECT DISTINCT 61 + + - 75 * - COALESCE ( + COUNT( * ), - MAX( ALL + 23 ) )
----
136

skipif mysql # not compatible
query I rowsort label-9649
SELECT DISTINCT 61 + + - 75 * - COALESCE ( + COUNT ( * ), - MAX ( ALL + 23 ) )
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-9650
SELECT COUNT( - 56 ) * - ( 20 ) * + + 22 * 32 AS col1
----
-14080

skipif mysql # not compatible
query I rowsort label-9650
SELECT COUNT ( - 56 ) * - ( 20 ) * + + 22 * 32 AS col1
----
-14080

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9651
SELECT - CAST( NULL AS DECIMAL ) * 86 + - 99 * + NULLIF ( + 28, + CAST( NULL AS SIGNED ) + 18 * 14 ) / + 31 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9651
SELECT - CAST ( NULL AS REAL ) * 86 + - 99 * + NULLIF ( + 28, + CAST ( NULL AS INTEGER ) + 18 * 14 ) / + 31 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9652
SELECT 66 AS col0, - 9 * 37 + - MAX( ALL - + 49 )
----
66
-284

skipif mysql # not compatible
query II rowsort label-9652
SELECT 66 AS col0, - 9 * 37 + - MAX ( ALL - + 49 )
----
66
-284

query I rowsort
SELECT 33 + + 13 AS col1
----
46

query I rowsort
SELECT ALL - 75 col1
----
-75

query I rowsort
SELECT 10 + + 41 + - + COALESCE ( + 45, - 37 + 19 ) * 21 AS col0
----
-894

onlyif mysql # DIV for integer division: 
query II rowsort label-9656
SELECT DISTINCT 1 + + + 59 + 70 AS col0, - 40 DIV + ( 9 ) AS col0
----
130
-4

skipif mysql # not compatible
query II rowsort label-9656
SELECT DISTINCT 1 + + + 59 + 70 AS col0, - 40 / + ( 9 ) AS col0
----
130
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9657
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-9657
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + 60
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9658
SELECT ALL - COUNT( * ) + - 53
----
-54

skipif mysql # not compatible
query I rowsort label-9658
SELECT ALL - COUNT ( * ) + - 53
----
-54

query II rowsort
SELECT ALL 28 AS col1, + ( 95 )
----
28
95

query I rowsort
SELECT ALL + 83 + - 28 AS col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9661
SELECT 39 * MIN( ALL + 62 )
----
2418

skipif mysql # not compatible
query I rowsort label-9661
SELECT 39 * MIN ( ALL + 62 )
----
2418

query I rowsort
SELECT 45 + + - 28 AS col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9663
SELECT DISTINCT ( - 9 ) + - 98 - - 3 * + - COUNT( * ) * 9 AS col1
----
-134

skipif mysql # not compatible
query I rowsort label-9663
SELECT DISTINCT ( - 9 ) + - 98 - - 3 * + - COUNT ( * ) * 9 AS col1
----
-134

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9664
SELECT 58 / - CASE - + 79 WHEN - - 32 THEN - - 67 WHEN + 17 * 65 + + ( - 55 ) THEN 70 + 70 WHEN ( + 42 ) THEN NULL ELSE CASE + 40 WHEN - 76 THEN 82 ELSE NULL END END * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9664
SELECT 58 / - CASE - + 79 WHEN - - 32 THEN - - 67 WHEN + 17 * 65 + + ( - 55 ) THEN 70 + 70 WHEN ( + 42 ) THEN NULL ELSE CASE + 40 WHEN - 76 THEN 82 ELSE NULL END END * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9665
SELECT ALL + CAST( CASE 69 WHEN + 95 THEN CAST( 18 AS SIGNED ) * + COALESCE ( - 82 + + 4 * 96, - 76 + + 73 * COUNT( * ) ) END AS SIGNED ) - + COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9665
SELECT ALL + CAST ( CASE 69 WHEN + 95 THEN CAST ( 18 AS INTEGER ) * + COALESCE ( - 82 + + 4 * 96, - 76 + + 73 * COUNT ( * ) ) END AS INTEGER ) - + COUNT ( * ) col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9666
SELECT CAST( NULL AS SIGNED ) * + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-9666
SELECT CAST ( NULL AS INTEGER ) * + 50
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9667
SELECT 64 * - - CAST( NULL AS SIGNED ) / CAST( NULL AS SIGNED ), COUNT( ALL - CASE 52 WHEN - 24 + 86 THEN - ( + 24 ) WHEN 92 THEN + 96 ELSE + 94 + - 74 * - 21 END ) col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-9667
SELECT 64 * - - CAST ( NULL AS INTEGER ) / CAST ( NULL AS INTEGER ), COUNT ( ALL - CASE 52 WHEN - 24 + 86 THEN - ( + 24 ) WHEN 92 THEN + 96 ELSE + 94 + - 74 * - 21 END ) col0
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9668
SELECT COALESCE ( COUNT( * ), - + 11 * + + 64 * + 48 + MAX( - 97 + 8 ) ) - + 69 AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-9668
SELECT COALESCE ( COUNT ( * ), - + 11 * + + 64 * + 48 + MAX ( - 97 + 8 ) ) - + 69 AS col0
----
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9669
SELECT ALL 46 - - - 73 DIV - MAX( 30 ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-9669
SELECT ALL 46 - - - 73 / - MAX ( 30 ) AS col1
----
48

query I rowsort
SELECT 75 * 92 AS col2
----
6900

query I rowsort
SELECT ALL + ( + + 78 ) - + 94
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-9672
SELECT MIN( - - 25 ) + 98 AS col1
----
123

skipif mysql # not compatible
query I rowsort label-9672
SELECT MIN ( - - 25 ) + 98 AS col1
----
123

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

query I rowsort
SELECT - 7 AS col0
----
-7

query I rowsort
SELECT + 71 + + - 0 AS col0
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-9676
SELECT 14 - + 35 DIV - 34
----
15

skipif mysql # not compatible
query I rowsort label-9676
SELECT 14 - + 35 / - 34
----
15

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

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

query I rowsort
SELECT ALL ( + - ( - 22 ) ) AS col2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9679
SELECT - MAX( 97 ) AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-9679
SELECT - MAX ( 97 ) AS col0
----
-97

query I rowsort
SELECT - - 91 AS col1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9681
SELECT 21 + + COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-9681
SELECT 21 + + COUNT ( * )
----
22

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

query I rowsort
SELECT ALL + + 30 * + + 76 AS col0
----
2280

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9684
SELECT 24 * - + 32 * CAST( + 38 AS SIGNED ) DIV - 16 AS col2
----
1824

skipif mysql # not compatible
query I rowsort label-9684
SELECT 24 * - + 32 * CAST ( + 38 AS INTEGER ) / - 16 AS col2
----
1824

query I rowsort
SELECT ALL + 6 * 32 AS col2
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-9686
SELECT DISTINCT - COUNT( 13 ) + + 21 - - - 67 * + + 64 * - 17
----
72916

skipif mysql # not compatible
query I rowsort label-9686
SELECT DISTINCT - COUNT ( 13 ) + + 21 - - - 67 * + + 64 * - 17
----
72916

onlyif mysql # aggregate syntax: 
query II rowsort label-9687
SELECT ALL + MAX( ALL + 34 ) + + - 78 AS col1, - ( + - SUM( ALL + 42 ) )
----
-44
42

skipif mysql # not compatible
query II rowsort label-9687
SELECT ALL + MAX ( ALL + 34 ) + + - 78 AS col1, - ( + - SUM ( ALL + 42 ) )
----
-44
42

query I rowsort
SELECT + NULLIF ( 17, 80 )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9689
SELECT DISTINCT + - 88 + + COUNT( * ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-9689
SELECT DISTINCT + - 88 + + COUNT ( * ) AS col0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-9690
SELECT ALL - - COALESCE ( - + COUNT( * ), - 96 ) + 29
----
28

skipif mysql # not compatible
query I rowsort label-9690
SELECT ALL - - COALESCE ( - + COUNT ( * ), - 96 ) + 29
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9691
SELECT - COUNT( + 57 )
----
-1

skipif mysql # not compatible
query I rowsort label-9691
SELECT - COUNT ( + 57 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9692
SELECT + 45 DIV + COUNT( * ) + COUNT( * ) AS col1, 67 AS col2
----
46
67

skipif mysql # not compatible
query II rowsort label-9692
SELECT + 45 / + COUNT ( * ) + COUNT ( * ) AS col1, 67 AS col2
----
46
67

onlyif mysql # DIV for integer division: 
query I rowsort label-9693
SELECT + 14 DIV - 98 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9693
SELECT + 14 / - 98 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9694
SELECT ALL 96 + - 32 - - 69 + + - CAST( NULL AS SIGNED ) * 57 / CAST( NULL AS SIGNED ) * 37 - + 77 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9694
SELECT ALL 96 + - 32 - - 69 + + - CAST ( NULL AS INTEGER ) * 57 / CAST ( NULL AS INTEGER ) * 37 - + 77 AS col1
----
NULL

query I rowsort
SELECT 78 * - 79 - - 20 AS col0
----
-6142

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9696
SELECT - 0 DIV + MIN( - 15 ) - + 76 AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-9696
SELECT - 0 / + MIN ( - 15 ) - + 76 AS col0
----
-76

query II rowsort
SELECT + 59, 94 AS col1
----
59
94

query I rowsort
SELECT ALL 49 * + + 19
----
931

query I rowsort
SELECT 13 + + 49
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9700
SELECT ALL - COUNT( * ) + + 82
----
81

skipif mysql # not compatible
query I rowsort label-9700
SELECT ALL - COUNT ( * ) + + 82
----
81

query I rowsort
SELECT DISTINCT - ( + CASE 20 WHEN - 33 + + 84 THEN - 22 WHEN - 77 THEN 23 WHEN + 88 + 75 THEN 88 END )
----
NULL

query I rowsort
SELECT ALL ( + 85 ) + 49 AS col2
----
134

onlyif mysql # aggregate syntax: 
query II rowsort label-9703
SELECT ALL - 65 AS col1, CASE 33 WHEN - + 16 * + + 88 + + 9 * - 98 THEN CASE 37 WHEN 53 / COUNT( * ) THEN 75 WHEN - ( COALESCE ( 30, - COUNT( * ) * + 94 - 38 ) ) THEN + 40 END WHEN 52 THEN - 46 WHEN - 56 THEN NULL WHEN + 50 THEN NULL ELSE NULL END + 88 col1
----
-65
NULL

skipif mysql # not compatible
query II rowsort label-9703
SELECT ALL - 65 AS col1, CASE 33 WHEN - + 16 * + + 88 + + 9 * - 98 THEN CASE 37 WHEN 53 / COUNT ( * ) THEN 75 WHEN - ( COALESCE ( 30, - COUNT ( * ) * + 94 - 38 ) ) THEN + 40 END WHEN 52 THEN - 46 WHEN - 56 THEN NULL WHEN + 50 THEN NULL ELSE NULL END + 88 col1
----
-65
NULL

query I rowsort
SELECT ALL 13 * - 28 * 7
----
-2548

query I rowsort
SELECT ALL ( 88 ) - - 94 AS col1
----
182

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9706
SELECT 51 AS col2, - MAX( ALL - + CAST( NULL AS SIGNED ) ) + + 15
----
51
NULL

skipif mysql # not compatible
query II rowsort label-9706
SELECT 51 AS col2, - MAX ( ALL - + CAST ( NULL AS INTEGER ) ) + + 15
----
51
NULL

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

skipif mysql # not compatible
query I rowsort label-9707
SELECT + MIN ( - - 11 )
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9708
SELECT 89, + CASE CASE 89 WHEN + 43 * MIN( ALL + 5 ) THEN NULL ELSE 32 END WHEN - CAST( NULL AS SIGNED ) THEN NULL WHEN 13 THEN 18 END AS col1
----
89
NULL

skipif mysql # not compatible
query II rowsort label-9708
SELECT 89, + CASE CASE 89 WHEN + 43 * MIN ( ALL + 5 ) THEN NULL ELSE 32 END WHEN - CAST ( NULL AS INTEGER ) THEN NULL WHEN 13 THEN 18 END AS col1
----
89
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9709
SELECT ALL MIN( DISTINCT - 10 ) - - - COALESCE ( + 59, - SUM( DISTINCT 81 ) ) + - COUNT( * )
----
-70

skipif mysql # not compatible
query I rowsort label-9709
SELECT ALL MIN ( DISTINCT - 10 ) - - - COALESCE ( + 59, - SUM ( DISTINCT 81 ) ) + - COUNT ( * )
----
-70

query I rowsort
SELECT 29 + - + 35
----
-6

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9712
SELECT ALL COUNT( * ) - - 82 + - + 19
----
64

skipif mysql # not compatible
query I rowsort label-9712
SELECT ALL COUNT ( * ) - - 82 + - + 19
----
64

onlyif mysql # DIV for integer division: 
query II rowsort label-9713
SELECT DISTINCT 97 AS col2, 46 DIV + 54
----
97
0

skipif mysql # not compatible
query II rowsort label-9713
SELECT DISTINCT 97 AS col2, 46 / + 54
----
97
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9714
SELECT ALL - 53 - + COALESCE ( - + 25, + 51 DIV 54, + ( 83 ) + + 19 ) + 84 AS col0
----
56

skipif mysql # not compatible
query I rowsort label-9714
SELECT ALL - 53 - + COALESCE ( - + 25, + 51 / 54, + ( 83 ) + + 19 ) + 84 AS col0
----
56

query I rowsort
SELECT CASE - - 66 WHEN 94 THEN - + 42 END * + 9 / - 72 + 37 col1
----
NULL

query I rowsort
SELECT ALL NULLIF ( - 17, - NULLIF ( + ( 62 ), - 47 + + 88 ) * 7 + - 93 / - 31 ) AS col0
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9717
SELECT + 86 + - COALESCE ( + NULLIF ( - 51, 73 / + + ( + COALESCE ( + 33, 2, 32 + + 13 ) ) + CAST( - 64 AS SIGNED ) ), + 44 * 55 ) * - 32
----
-1546

skipif mysql # not compatible
query I rowsort label-9717
SELECT + 86 + - COALESCE ( + NULLIF ( - 51, 73 / + + ( + COALESCE ( + 33, 2, 32 + + 13 ) ) + CAST ( - 64 AS INTEGER ) ), + 44 * 55 ) * - 32
----
-1546

onlyif mysql # aggregate syntax: 
query I rowsort label-9718
SELECT - SUM( DISTINCT 68 ) col1
----
-68

skipif mysql # not compatible
query I rowsort label-9718
SELECT - SUM ( DISTINCT 68 ) col1
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9719
SELECT + CAST( - + CASE 49 WHEN - 12 THEN 49 END AS SIGNED ) + ( NULLIF ( 99, - 6 ) ) + 65 * + 78
----
NULL

skipif mysql # not compatible
query I rowsort label-9719
SELECT + CAST ( - + CASE 49 WHEN - 12 THEN 49 END AS INTEGER ) + ( NULLIF ( 99, - 6 ) ) + 65 * + 78
----
NULL

query I rowsort
SELECT ALL - 12 * - 82 AS col1
----
984

query I rowsort
SELECT 70 * - 11 + - NULLIF ( + 50, - 33 ) - 10 * 61
----
-1430

query I rowsort
SELECT + 69 * + 32 - 41 col2
----
2167

onlyif mysql # aggregate syntax: 
query I rowsort label-9723
SELECT ALL + MIN( - 59 ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-9723
SELECT ALL + MIN ( - 59 ) AS col0
----
-59

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9725
SELECT ALL + 3 AS col1, CAST( NULL AS DECIMAL ) - - 11 - 68 + + COUNT( * ) / + 69 AS col0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-9725
SELECT ALL + 3 AS col1, CAST ( NULL AS REAL ) - - 11 - 68 + + COUNT ( * ) / + 69 AS col0
----
3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9726
SELECT + NULLIF ( + - 11, - 80 + + 51 + COUNT( * ) - - CASE 25 WHEN - 73 * - 92 THEN 85 * - AVG ( + 34 ) + - ( AVG ( DISTINCT 14 ) ) END * 57 ) + 54 AS col1
----
43

skipif mysql # not compatible
query I rowsort label-9726
SELECT + NULLIF ( + - 11, - 80 + + 51 + COUNT ( * ) - - CASE 25 WHEN - 73 * - 92 THEN 85 * - AVG ( + 34 ) + - ( AVG ( DISTINCT 14 ) ) END * 57 ) + 54 AS col1
----
43

query II rowsort
SELECT 41, - 7 AS col2
----
41
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-9728
SELECT ALL - SUM( 26 ) AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-9728
SELECT ALL - SUM ( 26 ) AS col2
----
-26

query I rowsort
SELECT ALL + 54 + - 90 * 69 col2
----
-6156

onlyif mysql # aggregate syntax: 
query I rowsort label-9730
SELECT - - COUNT( * ) - + NULLIF ( + + 62, + COUNT( * ) ) - + 43 * + + 1 + 41 AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-9730
SELECT - - COUNT ( * ) - + NULLIF ( + + 62, + COUNT ( * ) ) - + 43 * + + 1 + 41 AS col2
----
-63

query II rowsort
SELECT - 48 col0, 71 AS col2
----
-48
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9732
SELECT ALL + 85 + - + 98 + + - 52 DIV 10 - + 25 * + 95 DIV - COUNT( * ) AS col2
----
2357

skipif mysql # not compatible
query I rowsort label-9732
SELECT ALL + 85 + - + 98 + + - 52 / 10 - + 25 * + 95 / - COUNT ( * ) AS col2
----
2357

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9733
SELECT DISTINCT + - 36 + COUNT( * ) + - CAST( 10 AS SIGNED ) AS col0, CASE + 89 WHEN + 59 THEN NULL ELSE 33 END AS col0
----
-45
33

skipif mysql # not compatible
query II rowsort label-9733
SELECT DISTINCT + - 36 + COUNT ( * ) + - CAST ( 10 AS INTEGER ) AS col0, CASE + 89 WHEN + 59 THEN NULL ELSE 33 END AS col0
----
-45
33

query I rowsort
SELECT - + COALESCE ( 58, + 82 * 9 ) AS col1
----
-58

query I rowsort
SELECT + - 5 * + 58 AS col0
----
-290

onlyif mysql # aggregate syntax: 
query I rowsort label-9736
SELECT ALL CASE - - 77 WHEN + + 93 * + + 4 + COUNT( ALL 82 ) / - 75 + CASE 55 WHEN ( + AVG ( + 2 ) ) + 61 THEN 82 END THEN - 54 - - 12 WHEN - COUNT( * ) - - 6 THEN NULL ELSE NULL END * SUM( 84 ) + - 94 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9736
SELECT ALL CASE - - 77 WHEN + + 93 * + + 4 + COUNT ( ALL 82 ) / - 75 + CASE 55 WHEN ( + AVG ( + 2 ) ) + 61 THEN 82 END THEN - 54 - - 12 WHEN - COUNT ( * ) - - 6 THEN NULL ELSE NULL END * SUM ( 84 ) + - 94 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9737
SELECT + CASE - - COALESCE ( - 79, 95, - - MAX( + 41 ) * 14 ) WHEN + 3 * ( + MIN( DISTINCT 67 ) ) + COUNT( * ) THEN 55 + - 14 * COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9737
SELECT + CASE - - COALESCE ( - 79, 95, - - MAX ( + 41 ) * 14 ) WHEN + 3 * ( + MIN ( DISTINCT 67 ) ) + COUNT ( * ) THEN 55 + - 14 * COUNT ( * ) END
----
NULL

query I rowsort
SELECT - 38 + - 23 AS col1
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-9739
SELECT 82 * 26 + 87 * + 60 * - + 28 * - - SUM( - + 88 )
----
12864212

skipif mysql # not compatible
query I rowsort label-9739
SELECT 82 * 26 + 87 * + 60 * - + 28 * - - SUM ( - + 88 )
----
12864212

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9740
SELECT ALL COUNT( * ) * + + ( 42 ) DIV - 62 * + - 50 + - - 53
----
53

skipif mysql # not compatible
query I rowsort label-9740
SELECT ALL COUNT ( * ) * + + ( 42 ) / - 62 * + - 50 + - - 53
----
53

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

skipif mysql # not compatible
query I rowsort label-9741
SELECT - 33 / 40 + + COUNT ( * ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9742
SELECT DISTINCT + SUM( DISTINCT 3 )
----
3

skipif mysql # not compatible
query I rowsort label-9742
SELECT DISTINCT + SUM ( DISTINCT 3 )
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9743
SELECT ALL - CASE + 31 WHEN COUNT( * ) THEN - + 38 ELSE NULL END * COUNT( + 83 ) * + 46 + CAST( - 37 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9743
SELECT ALL - CASE + 31 WHEN COUNT ( * ) THEN - + 38 ELSE NULL END * COUNT ( + 83 ) * + 46 + CAST ( - 37 AS INTEGER )
----
NULL

query I rowsort
SELECT - 49 * - 80 * + 85
----
333200

query I rowsort
SELECT COALESCE ( + 33, - + 16 ) AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9746
SELECT DISTINCT + 34 * - SUM( 24 ) - SUM( ALL + ( - + 95 ) ) * 30 AS col2
----
2034

skipif mysql # not compatible
query I rowsort label-9746
SELECT DISTINCT + 34 * - SUM ( 24 ) - SUM ( ALL + ( - + 95 ) ) * 30 AS col2
----
2034

onlyif mysql # DIV for integer division: 
query I rowsort label-9747
SELECT 20 * + 86 + + 95 - + + 71 + + 2 DIV + + 39 - - ( 8 ) col1
----
1752

skipif mysql # not compatible
query I rowsort label-9747
SELECT 20 * + 86 + + 95 - + + 71 + + 2 / + + 39 - - ( 8 ) col1
----
1752

query II rowsort
SELECT - 13 * 80 AS col0, - 13 + + - 90
----
-1040
-103

query II rowsort
SELECT + 53 * - - 56 AS col2, 11 * - - 12 - + 85
----
2968
47

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

skipif mysql # not compatible
query I rowsort label-9750
SELECT ALL 59 / - ( + COUNT ( * ) ) col0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9751
SELECT - 83 + - COUNT( * ) + + - 60
----
-144

skipif mysql # not compatible
query I rowsort label-9751
SELECT - 83 + - COUNT ( * ) + + - 60
----
-144

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9753
SELECT ALL 29 * MAX( - + 11 )
----
-319

skipif mysql # not compatible
query I rowsort label-9753
SELECT ALL 29 * MAX ( - + 11 )
----
-319

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9754
SELECT + COUNT( * ) DIV + 96 col1, 8 * + ( 90 ) * 59 + + + CAST( ( CASE 71 WHEN + 4 * 39 THEN 98 WHEN 29 THEN NULL END ) AS SIGNED )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-9754
SELECT + COUNT ( * ) / + 96 col1, 8 * + ( 90 ) * 59 + + + CAST ( ( CASE 71 WHEN + 4 * 39 THEN 98 WHEN 29 THEN NULL END ) AS INTEGER )
----
0
NULL

query I rowsort
SELECT ALL ( - + 46 ) AS col1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9756
SELECT - 70 * CASE - 78 WHEN - 96 * 87 THEN COUNT( * ) + 16 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9756
SELECT - 70 * CASE - 78 WHEN - 96 * 87 THEN COUNT ( * ) + 16 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9757
SELECT + 40 + - + CASE - 92 WHEN + 10 THEN NULL ELSE + 93 * - + MIN( DISTINCT - 99 ) * - 77 + - 13 + + 43 END AS col0
----
708949

skipif mysql # not compatible
query I rowsort label-9757
SELECT + 40 + - + CASE - 92 WHEN + 10 THEN NULL ELSE + 93 * - + MIN ( DISTINCT - 99 ) * - 77 + - 13 + + 43 END AS col0
----
708949

onlyif mysql # aggregate syntax: 
query II rowsort label-9758
SELECT - + MIN( 92 ) AS col0, + 23 + + + 36
----
-92
59

skipif mysql # not compatible
query II rowsort label-9758
SELECT - + MIN ( 92 ) AS col0, + 23 + + + 36
----
-92
59

query I rowsort
SELECT DISTINCT 26 AS col0
----
26

query I rowsort
SELECT + + 44 * + 95 * 80
----
334400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9761
SELECT DISTINCT - + COUNT( * ) * + - 7 * + CAST( - ( 3 ) AS SIGNED ) AS col1, + 23
----
-21
23

skipif mysql # not compatible
query II rowsort label-9761
SELECT DISTINCT - + COUNT ( * ) * + - 7 * + CAST ( - ( 3 ) AS INTEGER ) AS col1, + 23
----
-21
23

onlyif mysql # aggregate syntax: 
query II rowsort label-9762
SELECT ALL - COUNT( DISTINCT + 10 ), - ( + 16 ) AS col0
----
-1
-16

skipif mysql # not compatible
query II rowsort label-9762
SELECT ALL - COUNT ( DISTINCT + 10 ), - ( + 16 ) AS col0
----
-1
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-9763
SELECT DISTINCT 54 + - SUM( ALL - 10 ) + - COALESCE ( - - 61, + - 75 + 21 - ( 40 ) ) - + 56
----
-53

skipif mysql # not compatible
query I rowsort label-9763
SELECT DISTINCT 54 + - SUM ( ALL - 10 ) + - COALESCE ( - - 61, + - 75 + 21 - ( 40 ) ) - + 56
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-9764
SELECT DISTINCT - MAX( - + 6 ) + 6
----
12

skipif mysql # not compatible
query I rowsort label-9764
SELECT DISTINCT - MAX ( - + 6 ) + 6
----
12

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

query I rowsort
SELECT + + 95 * - - 11 * + 53 * - 23 col2
----
-1273855

query I rowsort
SELECT ALL + 89 + - + 20 + + 89 + + 7 AS col2
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-9768
SELECT ALL + 25 + + COALESCE ( + CASE + AVG ( DISTINCT + 59 ) WHEN - 50 THEN + - 32 * - 43 + COUNT( * ) END, COUNT( * ), 99 ) * 86 AS col0
----
111

skipif mysql # not compatible
query I rowsort label-9768
SELECT ALL + 25 + + COALESCE ( + CASE + AVG ( DISTINCT + 59 ) WHEN - 50 THEN + - 32 * - 43 + COUNT ( * ) END, COUNT ( * ), 99 ) * 86 AS col0
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-9769
SELECT DISTINCT 82 * - + CASE + 70 WHEN ( + + COUNT( + + 10 ) ) THEN + + 61 + 10 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9769
SELECT DISTINCT 82 * - + CASE + 70 WHEN ( + + COUNT ( + + 10 ) ) THEN + + 61 + 10 END AS col1
----
NULL

query I rowsort
SELECT DISTINCT 25 + 42 * 11
----
487

onlyif mysql # aggregate syntax: 
query I rowsort label-9771
SELECT + 69 * CASE - MIN( DISTINCT - 47 ) WHEN - 99 * + + COUNT( DISTINCT - 5 ) THEN COUNT( * ) END * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9771
SELECT + 69 * CASE - MIN ( DISTINCT - 47 ) WHEN - 99 * + + COUNT ( DISTINCT - 5 ) THEN COUNT ( * ) END * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9772
SELECT DISTINCT - 6 * - MIN( 73 ) AS col0
----
438

skipif mysql # not compatible
query I rowsort label-9772
SELECT DISTINCT - 6 * - MIN ( 73 ) AS col0
----
438

query I rowsort
SELECT + ( 48 ) * + - 8
----
-384

query I rowsort
SELECT - - 23 col0
----
23

query II rowsort
SELECT ALL 66 * + - 69 col1, 19 * + 9 AS col1
----
-4554
171

onlyif mysql # aggregate syntax: 
query I rowsort label-9776
SELECT ALL - 62 + 8 + + MAX( DISTINCT + - 56 )
----
-110

skipif mysql # not compatible
query I rowsort label-9776
SELECT ALL - 62 + 8 + + MAX ( DISTINCT + - 56 )
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-9777
SELECT CASE + 87 WHEN + ( MAX( - 22 ) ) THEN - + 51 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9777
SELECT CASE + 87 WHEN + ( MAX ( - 22 ) ) THEN - + 51 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9778
SELECT ALL + MAX( DISTINCT - 21 ) col2
----
-21

skipif mysql # not compatible
query I rowsort label-9778
SELECT ALL + MAX ( DISTINCT - 21 ) col2
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-9779
SELECT - 49 DIV 23
----
-2

skipif mysql # not compatible
query I rowsort label-9779
SELECT - 49 / 23
----
-2

query I rowsort
SELECT - 25 * - + 91
----
2275

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9781
SELECT - 4 * - CAST( NULL AS SIGNED ) * 64 * + COUNT( ALL + ( - 80 ) ) + 54 * + 25 + + 29 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9781
SELECT - 4 * - CAST ( NULL AS INTEGER ) * 64 * + COUNT ( ALL + ( - 80 ) ) + 54 * + 25 + + 29 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9782
SELECT + CAST( NULL AS SIGNED ) AS col0, + 24 AS col0
----
NULL
24

skipif mysql # not compatible
query II rowsort label-9782
SELECT + CAST ( NULL AS INTEGER ) AS col0, + 24 AS col0
----
NULL
24

query I rowsort
SELECT - 95 * + 29 AS col2
----
-2755

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9784
SELECT ALL + COALESCE ( - + SUM( DISTINCT + 27 ), + 88 - CASE + + 10 WHEN CASE + 6 WHEN 1 THEN NULL WHEN - ( ( 41 ) ) * - NULLIF ( 62 * - COUNT( * ) + - COALESCE ( 27, - 58 + - 4, + 5 ), 66 ) + 54 THEN NULL WHEN - 98 THEN + 60 END THEN - 54 * + 43 + - 96 ELSE - COUNT( * ) END * CAST( NULL AS SIGNED ) ) AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-9784
SELECT ALL + COALESCE ( - + SUM ( DISTINCT + 27 ), + 88 - CASE + + 10 WHEN CASE + 6 WHEN 1 THEN NULL WHEN - ( ( 41 ) ) * - NULLIF ( 62 * - COUNT ( * ) + - COALESCE ( 27, - 58 + - 4, + 5 ), 66 ) + 54 THEN NULL WHEN - 98 THEN + 60 END THEN - 54 * + 43 + - 96 ELSE - COUNT ( * ) END * CAST ( NULL AS INTEGER ) ) AS col1
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-9785
SELECT - COUNT( DISTINCT 61 ) + + + 33
----
32

skipif mysql # not compatible
query I rowsort label-9785
SELECT - COUNT ( DISTINCT 61 ) + + + 33
----
32

query II rowsort
SELECT DISTINCT + 77, 45 AS col1
----
77
45

query I rowsort
SELECT - 42 + + 73 + 64
----
95

query I rowsort
SELECT ALL - 52 * - 52
----
2704

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9789
SELECT - 59 * + ( - NULLIF ( + 40, - 23 ) ) DIV COALESCE ( + COUNT( * ), + 16 ) * 45
----
106200

skipif mysql # not compatible
query I rowsort label-9789
SELECT - 59 * + ( - NULLIF ( + 40, - 23 ) ) / COALESCE ( + COUNT ( * ), + 16 ) * 45
----
106200

onlyif mysql # aggregate syntax: 
query II rowsort label-9790
SELECT DISTINCT + COUNT( * ) AS col0, + ( + 19 ) AS col2
----
1
19

skipif mysql # not compatible
query II rowsort label-9790
SELECT DISTINCT + COUNT ( * ) AS col0, + ( + 19 ) AS col2
----
1
19

query I rowsort
SELECT - 6 + 22 AS col1
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-9792
SELECT - 23 * + 54 * - - 39 col1, MAX( 70 )
----
-48438
70

skipif mysql # not compatible
query II rowsort label-9792
SELECT - 23 * + 54 * - - 39 col1, MAX ( 70 )
----
-48438
70

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9794
SELECT - CAST( - 50 AS SIGNED ) - + NULLIF ( - 38, + 67 ) + - NULLIF ( + - COUNT( * ), + + 43 * CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + + 51 )
----
89

skipif mysql # not compatible
query I rowsort label-9794
SELECT - CAST ( - 50 AS INTEGER ) - + NULLIF ( - 38, + 67 ) + - NULLIF ( + - COUNT ( * ), + + 43 * CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + + 51 )
----
89

query I rowsort
SELECT NULLIF ( - 28, + 98 - - + 93 ) AS col2
----
-28

query II rowsort
SELECT - 37 AS col2, 60
----
-37
60

query I rowsort
SELECT ALL - 54 + 87 col0
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-9798
SELECT ALL + - 99 DIV 32 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-9798
SELECT ALL + - 99 / 32 AS col1
----
-3

query I rowsort
SELECT + 90 * + + 61 AS col1
----
5490

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9800
SELECT 99 + CAST( - - 9 AS SIGNED ) col0
----
108

skipif mysql # not compatible
query I rowsort label-9800
SELECT 99 + CAST ( - - 9 AS INTEGER ) col0
----
108

query II rowsort
SELECT ALL + 43 AS col2, 2 * - 90
----
43
-180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9802
SELECT NULLIF ( - 14, + CAST( NULL AS SIGNED ) ) * 83
----
-1162

skipif mysql # not compatible
query I rowsort label-9802
SELECT NULLIF ( - 14, + CAST ( NULL AS INTEGER ) ) * 83
----
-1162

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

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

query I rowsort
SELECT ALL + 29 * + 93
----
2697

onlyif mysql # aggregate syntax: 
query I rowsort label-9805
SELECT ALL + 18 + - CASE + 89 WHEN - + 62 THEN NULL ELSE + + SUM( + 69 ) END - + 22 AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-9805
SELECT ALL + 18 + - CASE + 89 WHEN - + 62 THEN NULL ELSE + + SUM ( + 69 ) END - + 22 AS col1
----
-73

query I rowsort
SELECT DISTINCT + ( + 38 ) * + - 95 * + 0 AS col1
----
0

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

query I rowsort
SELECT - NULLIF ( - 87, - 1 ) * - + 68 * - - 41
----
-242556

query I rowsort
SELECT DISTINCT - 27 + - 77 AS col1
----
-104

query I rowsort
SELECT ALL + 69 * - COALESCE ( 22, + 23 )
----
-1518

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

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

query I rowsort
SELECT DISTINCT 12 col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9813
SELECT ALL 73 - COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-9813
SELECT ALL 73 - COUNT ( * )
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9814
SELECT ALL 56, - 92 * 83 * - CAST( NULL AS SIGNED ) AS col2
----
56
NULL

skipif mysql # not compatible
query II rowsort label-9814
SELECT ALL 56, - 92 * 83 * - CAST ( NULL AS INTEGER ) AS col2
----
56
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9815
SELECT + NULLIF ( + - 16, 38 ) + 74 * + 42 * + 42 + + - CASE + 45 WHEN 99 * 23 + ( + 85 ) * 34 THEN NULL WHEN - 46 THEN - 71 WHEN 52 * 20 THEN 63 / - 31 END - 30 * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9815
SELECT + NULLIF ( + - 16, 38 ) + 74 * + 42 * + 42 + + - CASE + 45 WHEN 99 * 23 + ( + 85 ) * 34 THEN NULL WHEN - 46 THEN - 71 WHEN 52 * 20 THEN 63 / - 31 END - 30 * COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9816
SELECT COUNT( * ) * + 79 AS col1, 75 * 22 + 87
----
79
1737

skipif mysql # not compatible
query II rowsort label-9816
SELECT COUNT ( * ) * + 79 AS col1, 75 * 22 + 87
----
79
1737

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9817
SELECT NULLIF ( - 12, - 47 * + 56 * - - 6 + - + CAST( NULL AS SIGNED ) + + 47 * 44 ) + - 25 DIV + COALESCE ( 66 * - CASE - 39 WHEN COUNT( * ) * COUNT( * ) THEN NULL WHEN + 15 * 35 THEN - 64 END, SUM( ALL + 86 ) * + ( - 71 * + COUNT( * ) + + ( - 76 ) ) + 37 ) AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-9817
SELECT NULLIF ( - 12, - 47 * + 56 * - - 6 + - + CAST ( NULL AS INTEGER ) + + 47 * 44 ) + - 25 / + COALESCE ( 66 * - CASE - 39 WHEN COUNT ( * ) * COUNT ( * ) THEN NULL WHEN + 15 * 35 THEN - 64 END, SUM ( ALL + 86 ) * + ( - 71 * + COUNT ( * ) + + ( - 76 ) ) + 37 ) AS col2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-9818
SELECT ALL COUNT( * ) - - 67 * - 82 AS col1
----
-5493

skipif mysql # not compatible
query I rowsort label-9818
SELECT ALL COUNT ( * ) - - 67 * - 82 AS col1
----
-5493

onlyif mysql # DIV for integer division: 
query I rowsort label-9819
SELECT 56 DIV 90 DIV 56 * + 16 + - ( - 57 )
----
57

skipif mysql # not compatible
query I rowsort label-9819
SELECT 56 / 90 / 56 * + 16 + - ( - 57 )
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9820
SELECT 83 DIV - 26 + - - NULLIF ( - 62, - + 33 * - - CASE + + 26 WHEN COUNT( * ) THEN + 90 END + 23 ) * - 69 AS col0
----
4275

skipif mysql # not compatible
query I rowsort label-9820
SELECT 83 / - 26 + - - NULLIF ( - 62, - + 33 * - - CASE + + 26 WHEN COUNT ( * ) THEN + 90 END + 23 ) * - 69 AS col0
----
4275

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9822
SELECT COALESCE ( - 13, CAST( NULL AS SIGNED ) ) + + 43, 39 * 74 + 5 + - 68 col1
----
30
2823

skipif mysql # not compatible
query II rowsort label-9822
SELECT COALESCE ( - 13, CAST ( NULL AS INTEGER ) ) + + 43, 39 * 74 + 5 + - 68 col1
----
30
2823

onlyif mysql # DIV for integer division: 
query II rowsort label-9823
SELECT 64 DIV + - 7, ( + ( 46 ) ) + - 72 * 81 AS col1
----
-9
-5786

skipif mysql # not compatible
query II rowsort label-9823
SELECT 64 / + - 7, ( + ( 46 ) ) + - 72 * 81 AS col1
----
-9
-5786

query I rowsort
SELECT ALL - 3 col0
----
-3

query I rowsort
SELECT DISTINCT ( 42 ) * - 95 * - 3 AS col2
----
11970

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9827
SELECT ( + + 4 ) / + CASE COALESCE ( + - 87, + ( - 93 ), + 50 + - CAST( NULL AS DECIMAL ) ) WHEN + CAST( NULL AS SIGNED ) THEN + ( ( COUNT( * ) ) ) * + 41 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9827
SELECT ( + + 4 ) / + CASE COALESCE ( + - 87, + ( - 93 ), + 50 + - CAST ( NULL AS REAL ) ) WHEN + CAST ( NULL AS INTEGER ) THEN + ( ( COUNT ( * ) ) ) * + 41 END
----
NULL

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

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

skipif mysql # not compatible
query I rowsort label-9829
SELECT ( - - 99 ) * - - COUNT ( * )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9830
SELECT 73 + - COALESCE ( + - COUNT( * ), NULLIF ( 5, 67 * + 21 + + + 46 ) + - COUNT( * ) + 62 * NULLIF ( - 30, + 20 - CASE - 57 WHEN 66 + + 61 * 3 THEN 15 + NULLIF ( + 49, 71 * CASE NULLIF ( + 34, - MIN( 13 ) * - 2 + 19 ) * 17 WHEN + 46 * NULLIF ( - ( - 67 ) * + 73, - 50 * MAX( ALL - 63 ) ) THEN - COUNT( * ) + + ( ( 10 ) ) * 66 WHEN + 27 + + 56 * - COALESCE ( - COALESCE ( + 59, 68 ) + + 1 * 9, 11 ) THEN NULL END ) END ) * 83 ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-9830
SELECT 73 + - COALESCE ( + - COUNT ( * ), NULLIF ( 5, 67 * + 21 + + + 46 ) + - COUNT ( * ) + 62 * NULLIF ( - 30, + 20 - CASE - 57 WHEN 66 + + 61 * 3 THEN 15 + NULLIF ( + 49, 71 * CASE NULLIF ( + 34, - MIN ( 13 ) * - 2 + 19 ) * 17 WHEN + 46 * NULLIF ( - ( - 67 ) * + 73, - 50 * MAX ( ALL - 63 ) ) THEN - COUNT ( * ) + + ( ( 10 ) ) * 66 WHEN + 27 + + 56 * - COALESCE ( - COALESCE ( + 59, 68 ) + + 1 * 9, 11 ) THEN NULL END ) END ) * 83 ) AS col1
----
74

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9832
SELECT CAST( - + 82 AS SIGNED ) * - - 7 + 2 * 37 + + CAST( NULL AS SIGNED ) + - 43 * 48 * - ( - 73 ) * COUNT( * ) * + 31 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9832
SELECT CAST ( - + 82 AS INTEGER ) * - - 7 + 2 * 37 + + CAST ( NULL AS INTEGER ) + - 43 * 48 * - ( - 73 ) * COUNT ( * ) * + 31 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9833
SELECT 89 * COALESCE ( COUNT( * ), + - 5, - 54 ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-9833
SELECT 89 * COALESCE ( COUNT ( * ), + - 5, - 54 ) AS col0
----
89

query I rowsort
SELECT DISTINCT - 49 + + 54 + + 52 AS col2
----
57

query I rowsort
SELECT ALL + 94 + + 6 AS col1
----
100

query I rowsort
SELECT + + ( - - 52 ) AS col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9837
SELECT DISTINCT 58 + + MAX( ALL + - 4 ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-9837
SELECT DISTINCT 58 + + MAX ( ALL + - 4 ) AS col1
----
54

query I rowsort
SELECT ALL - - 32 AS col1
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9839
SELECT DISTINCT - - 59 + CAST( + MIN( DISTINCT + 16 ) AS SIGNED ) + + - 35
----
40

skipif mysql # not compatible
query I rowsort label-9839
SELECT DISTINCT - - 59 + CAST ( + MIN ( DISTINCT + 16 ) AS INTEGER ) + + - 35
----
40

query I rowsort
SELECT DISTINCT - 31 + 97 + + 93 - - 55 * - 50 AS col0
----
-2591

query I rowsort
SELECT ALL COALESCE ( 97, - - 26 * 76 + 3 ) AS col1
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9842
SELECT + 9 * - 29 * + + 22 DIV - COUNT( * ) + - 23 + 84 * - CAST( + + 33 AS SIGNED )
----
2947

skipif mysql # not compatible
query I rowsort label-9842
SELECT + 9 * - 29 * + + 22 / - COUNT ( * ) + - 23 + 84 * - CAST ( + + 33 AS INTEGER )
----
2947

query I rowsort
SELECT ALL 78 col2
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-9844
SELECT DISTINCT + + 29 * + COUNT( * ) AS col0, - 8
----
29
-8

skipif mysql # not compatible
query II rowsort label-9844
SELECT DISTINCT + + 29 * + COUNT ( * ) AS col0, - 8
----
29
-8

query I rowsort
SELECT 83 * 67 * - - 8 col0
----
44488

query I rowsort
SELECT + 82 * 13 + 29 + - - 64
----
1159

onlyif mysql # aggregate syntax: 
query I rowsort label-9847
SELECT ALL - + 17 - - - 22 + + 62 + - COUNT( * ) * COUNT( * ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-9847
SELECT ALL - + 17 - - - 22 + + 62 + - COUNT ( * ) * COUNT ( * ) AS col0
----
22

query I rowsort
SELECT + ( - + NULLIF ( + 79, + 54 / - + 91 ) ) col0
----
-79

query I rowsort
SELECT - + 60 AS col2
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9850
SELECT AVG ( ALL - 81 ) - - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9850
SELECT AVG ( ALL - 81 ) - - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9851
SELECT ALL + - 4 DIV 32
----
0

skipif mysql # not compatible
query I rowsort label-9851
SELECT ALL + - 4 / 32
----
0

query I rowsort
SELECT ALL + 37 AS col0
----
37

query I rowsort
SELECT ALL 12 col0
----
12

query II rowsort
SELECT DISTINCT - 24 * + - 19 AS col2, - 1
----
456
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9855
SELECT DISTINCT + + 37 DIV - + ( - COUNT( * ) )
----
37

skipif mysql # not compatible
query I rowsort label-9855
SELECT DISTINCT + + 37 / - + ( - COUNT ( * ) )
----
37

query I rowsort
SELECT DISTINCT - NULLIF ( - 23, - 86 ) AS col1
----
23

query I rowsort
SELECT - ( + 14 ) AS col2
----
-14

query I rowsort
SELECT 42 * - 3 col2
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-9859
SELECT ALL SUM( DISTINCT + 31 )
----
31

skipif mysql # not compatible
query I rowsort label-9859
SELECT ALL SUM ( DISTINCT + 31 )
----
31

query II rowsort
SELECT - 53, 27 AS col0
----
-53
27

query II rowsort
SELECT - 10, + 47 AS col0
----
-10
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9862
SELECT CASE + + 64 WHEN + - 85 * + 63 + + 25 + - + MIN( + + 31 ) * 75 / + 97 THEN 8 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9862
SELECT CASE + + 64 WHEN + - 85 * + 63 + + 25 + - + MIN ( + + 31 ) * 75 / + 97 THEN 8 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9863
SELECT CASE 92 WHEN 49 * + 68 - + 24 + + - SUM( ALL + 30 ) THEN NULL WHEN + 22 THEN ( - COUNT( * ) ) END * 86 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9863
SELECT CASE 92 WHEN 49 * + 68 - + 24 + + - SUM ( ALL + 30 ) THEN NULL WHEN + 22 THEN ( - COUNT ( * ) ) END * 86 col0
----
NULL

query I rowsort
SELECT DISTINCT - 96 AS col0
----
-96

query I rowsort
SELECT 38 + + 3 col0
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-9866
SELECT NULLIF ( - + COALESCE ( 0, - NULLIF ( - 71, 24 DIV + + 77 ) DIV - - 63, + + 22 + + 99 * 77 ), + 4 + - 15 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-9866
SELECT NULLIF ( - + COALESCE ( 0, - NULLIF ( - 71, 24 / + + 77 ) / - - 63, + + 22 + + 99 * 77 ), + 4 + - 15 ) col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9867
SELECT + CAST( 41 AS SIGNED ) * + 67 AS col0
----
2747

skipif mysql # not compatible
query I rowsort label-9867
SELECT + CAST ( 41 AS INTEGER ) * + 67 AS col0
----
2747

onlyif mysql # aggregate syntax: 
query I rowsort label-9868
SELECT COUNT( ALL 15 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9868
SELECT COUNT ( ALL 15 ) AS col2
----
1

query I rowsort
SELECT + COALESCE ( 8, - ( - ( + 36 ) ) * + - 70, - 28 )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9870
SELECT NULLIF ( 56, - COUNT( * ) ) * + - 57 + - 88 * - 22 * - 40 + COUNT( * ) col0
----
-80631

skipif mysql # not compatible
query I rowsort label-9870
SELECT NULLIF ( 56, - COUNT ( * ) ) * + - 57 + - 88 * - 22 * - 40 + COUNT ( * ) col0
----
-80631

onlyif mysql # aggregate syntax: 
query I rowsort label-9871
SELECT MIN( DISTINCT + ( - 50 ) ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-9871
SELECT MIN ( DISTINCT + ( - 50 ) ) AS col0
----
-50

onlyif mysql # DIV for integer division: 
query II rowsort label-9872
SELECT ALL + 35 DIV - 83 * + 43, 53 AS col0
----
0
53

skipif mysql # not compatible
query II rowsort label-9872
SELECT ALL + 35 / - 83 * + 43, 53 AS col0
----
0
53

query I rowsort
SELECT + ( + 10 ) + - + 72 AS col2
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9874
SELECT COUNT( DISTINCT - CAST( 98 AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-9874
SELECT COUNT ( DISTINCT - CAST ( 98 AS INTEGER ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9875
SELECT 24 * - - CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9875
SELECT 24 * - - CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 94 * - + 8 * - 85 + 8 * + 27 AS col1
----
-63704

onlyif mysql # aggregate syntax: 
query II rowsort label-9877
SELECT + + ( + 14 ) * 33 AS col2, - 25 * + + COUNT( * ) * + 94 + + 57 AS col2
----
462
-2293

skipif mysql # not compatible
query II rowsort label-9877
SELECT + + ( + 14 ) * 33 AS col2, - 25 * + + COUNT ( * ) * + 94 + + 57 AS col2
----
462
-2293

onlyif mysql # aggregate syntax: 
query I rowsort label-9878
SELECT DISTINCT + - SUM( ALL + - 97 ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-9878
SELECT DISTINCT + - SUM ( ALL + - 97 ) AS col0
----
97

query I rowsort
SELECT - + 57 + + - 51
----
-108

query I rowsort
SELECT + + 46 * - 4
----
-184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9881
SELECT + + COALESCE ( - ( + 91 ), ( + MAX( - 28 ) ) ) * + 48 + - 48 / + COUNT( * ) + - 73 + 83 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9881
SELECT + + COALESCE ( - ( + 91 ), ( + MAX ( - 28 ) ) ) * + 48 + - 48 / + COUNT ( * ) + - 73 + 83 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT ( 7 )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9883
SELECT + COUNT( DISTINCT + + ( NULLIF ( 45, - 78 * 28 + + + 52 + 8 / - 66 + - + 71 ) ) ) + + 39 AS col1
----
40

skipif mysql # not compatible
query I rowsort label-9883
SELECT + COUNT ( DISTINCT + + ( NULLIF ( 45, - 78 * 28 + + + 52 + 8 / - 66 + - + 71 ) ) ) + + 39 AS col1
----
40

query I rowsort
SELECT ALL 76 - + 41
----
35

query I rowsort
SELECT - 16 * + 36
----
-576

query I rowsort
SELECT ALL - 36 - - 63 * 98 col2
----
6138

query I rowsort
SELECT - + 56 + 76
----
20

query I rowsort
SELECT - - 39 * - + 52 + + 65 + + + 91 AS col1
----
-1872

query II rowsort
SELECT ALL 25 AS col1, 60 AS col2
----
25
60

onlyif mysql # aggregate syntax: 
query II rowsort label-9890
SELECT 0 AS col1, COUNT( * ) + - - COUNT( * ) + - 44 * + 61 + + - 82 * + + ( - COUNT( * ) )
----
0
-2600

skipif mysql # not compatible
query II rowsort label-9890
SELECT 0 AS col1, COUNT ( * ) + - - COUNT ( * ) + - 44 * + 61 + + - 82 * + + ( - COUNT ( * ) )
----
0
-2600

query I rowsort
SELECT ALL ( - - 30 )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9892
SELECT - COUNT( * ) + + - MIN( 59 )
----
-60

skipif mysql # not compatible
query I rowsort label-9892
SELECT - COUNT ( * ) + + - MIN ( 59 )
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-9893
SELECT ALL + MIN( ALL + 37 ) + + COUNT( * )
----
38

skipif mysql # not compatible
query I rowsort label-9893
SELECT ALL + MIN ( ALL + 37 ) + + COUNT ( * )
----
38

query I rowsort
SELECT DISTINCT COALESCE ( + 57, - 37 + 71 * 31, + 14 + + - 83 + + 71 )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9895
SELECT - 19 / - ( CASE - 49 WHEN - 18 THEN - CASE 34 WHEN + 91 THEN 31 * ( 25 ) END * + 10 + ( 9 ) ELSE ( - MIN( + CASE 17 WHEN 44 THEN + 12 / + 69 WHEN 68 + + 36 THEN NULL WHEN 94 THEN NULL END ) ) - + COUNT( * ) END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9895
SELECT - 19 / - ( CASE - 49 WHEN - 18 THEN - CASE 34 WHEN + 91 THEN 31 * ( 25 ) END * + 10 + ( 9 ) ELSE ( - MIN ( + CASE 17 WHEN 44 THEN + 12 / + 69 WHEN 68 + + 36 THEN NULL WHEN 94 THEN NULL END ) ) - + COUNT ( * ) END ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9896
SELECT ALL 30 + - + 2 + - 3 + + 49 DIV + - 16 AS col1
----
22

skipif mysql # not compatible
query I rowsort label-9896
SELECT ALL 30 + - + 2 + - 3 + + 49 / + - 16 AS col1
----
22

query I rowsort
SELECT - 36 + - 79 * - 55 AS col0
----
4309

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9898
SELECT DISTINCT - COUNT( * ) DIV + - NULLIF ( 1, - + ( 86 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9898
SELECT DISTINCT - COUNT ( * ) / + - NULLIF ( 1, - + ( 86 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9899
SELECT - 83 DIV + SUM( - + 33 )
----
2

skipif mysql # not compatible
query I rowsort label-9899
SELECT - 83 / + SUM ( - + 33 )
----
2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9900
SELECT CAST( NULL AS DECIMAL ) / 14 + - 33 / - 35, + 0 - 83 * - COALESCE ( MAX( + 76 ), - - 7 + + - 1 ) AS col0
----
NULL
6308

skipif mysql # not compatible
query II rowsort label-9900
SELECT CAST ( NULL AS REAL ) / 14 + - 33 / - 35, + 0 - 83 * - COALESCE ( MAX ( + 76 ), - - 7 + + - 1 ) AS col0
----
NULL
6308

query I rowsort
SELECT - 0 * - + 69
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9902
SELECT + CAST( - + 90 AS SIGNED ) + - - CASE 5 WHEN + + ( - CAST( NULL AS SIGNED ) ) * - 8 THEN + - COUNT( * ) ELSE NULL END + - 16
----
NULL

skipif mysql # not compatible
query I rowsort label-9902
SELECT + CAST ( - + 90 AS INTEGER ) + - - CASE 5 WHEN + + ( - CAST ( NULL AS INTEGER ) ) * - 8 THEN + - COUNT ( * ) ELSE NULL END + - 16
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9903
SELECT + CAST( NULL AS SIGNED ) * + ( 75 ) + 85 - 1 + - 18 * - 9 * + 84 * - ( - 58 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9903
SELECT + CAST ( NULL AS INTEGER ) * + ( 75 ) + 85 - 1 + - 18 * - 9 * + 84 * - ( - 58 ) AS col0
----
NULL

query II rowsort
SELECT DISTINCT + 34 AS col1, - COALESCE ( - 99, - 10 + + - 63 ) AS col0
----
34
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9905
SELECT DISTINCT 78 DIV - - NULLIF ( + 64, NULLIF ( - + 73, - ( 49 ) + - COUNT( * ) ) ) + + ( 3 ) - + - CAST( 26 AS SIGNED ) DIV + ( COUNT( 37 ) )
----
30

skipif mysql # not compatible
query I rowsort label-9905
SELECT DISTINCT 78 / - - NULLIF ( + 64, NULLIF ( - + 73, - ( 49 ) + - COUNT ( * ) ) ) + + ( 3 ) - + - CAST ( 26 AS INTEGER ) / + ( COUNT ( 37 ) )
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9906
SELECT - CAST( NULL AS SIGNED ) * - 73
----
NULL

skipif mysql # not compatible
query I rowsort label-9906
SELECT - CAST ( NULL AS INTEGER ) * - 73
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9907
SELECT ALL 53 DIV + 73 + 94 AS col1
----
94

skipif mysql # not compatible
query I rowsort label-9907
SELECT ALL 53 / + 73 + 94 AS col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9908
SELECT + COUNT( 1 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9908
SELECT + COUNT ( 1 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9909
SELECT DISTINCT + - 10, + 75 + - - CAST( NULL AS SIGNED ) AS col2
----
-10
NULL

skipif mysql # not compatible
query II rowsort label-9909
SELECT DISTINCT + - 10, + 75 + - - CAST ( NULL AS INTEGER ) AS col2
----
-10
NULL

query I rowsort
SELECT + - 36 + + + 3 AS col2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-9911
SELECT ALL + MIN( ALL + - 45 ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-9911
SELECT ALL + MIN ( ALL + - 45 ) AS col1
----
-45

onlyif mysql # DIV for integer division: 
query II rowsort label-9912
SELECT DISTINCT 76 DIV 73 + + COALESCE ( - 74, - - 33 * - - 13 ) col1, 13 * + 76 AS col0
----
-73
988

skipif mysql # not compatible
query II rowsort label-9912
SELECT DISTINCT 76 / 73 + + COALESCE ( - 74, - - 33 * - - 13 ) col1, 13 * + 76 AS col0
----
-73
988

onlyif mysql # aggregate syntax: 
query I rowsort label-9913
SELECT ALL + + 86 * COUNT( * ) - + - COUNT( * ) + - 85 * - 81 + + 51 * + 13 AS col1
----
7635

skipif mysql # not compatible
query I rowsort label-9913
SELECT ALL + + 86 * COUNT ( * ) - + - COUNT ( * ) + - 85 * - 81 + + 51 * + 13 AS col1
----
7635

query II rowsort
SELECT + 51, - ( + 89 ) col0
----
51
-89

query I rowsort
SELECT + + 51
----
51

query II rowsort
SELECT 2 AS col0, + 76 + + - 40 AS col1
----
2
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9917
SELECT + 64 DIV MIN( ALL 70 )
----
0

skipif mysql # not compatible
query I rowsort label-9917
SELECT + 64 / MIN ( ALL 70 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9918
SELECT + 33 * - 11 + - 88 * + 43, + NULLIF ( ( 59 ), + 91 * + 38 / 61 + - + NULLIF ( 46, ( 78 ) * + 4 ) + + SUM( 7 ) * + AVG ( ALL NULLIF ( 6, ( 68 ) * NULLIF ( 0 - 77, + 51 ) ) ) / 26 ) + - 19 AS col0
----
-4147
40

skipif mysql # not compatible
query II rowsort label-9918
SELECT + 33 * - 11 + - 88 * + 43, + NULLIF ( ( 59 ), + 91 * + 38 / 61 + - + NULLIF ( 46, ( 78 ) * + 4 ) + + SUM ( 7 ) * + AVG ( ALL NULLIF ( 6, ( 68 ) * NULLIF ( 0 - 77, + 51 ) ) ) / 26 ) + - 19 AS col0
----
-4147
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9919
SELECT ALL - 90 * COUNT( ALL 91 ) * 15 col2
----
-1350

skipif mysql # not compatible
query I rowsort label-9919
SELECT ALL - 90 * COUNT ( ALL 91 ) * 15 col2
----
-1350

query I rowsort
SELECT + - ( + 0 ) + - 86
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-9921
SELECT DISTINCT - 79 DIV - + 66
----
1

skipif mysql # not compatible
query I rowsort label-9921
SELECT DISTINCT - 79 / - + 66
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9922
SELECT + + ( SUM( DISTINCT - 27 ) )
----
-27

skipif mysql # not compatible
query I rowsort label-9922
SELECT + + ( SUM ( DISTINCT - 27 ) )
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9923
SELECT + 2, MIN( ALL - + 42 ) DIV - + ( - - 88 ) * - - ( - 62 ) + + 33 + + + 54 AS col0
----
2
87

skipif mysql # not compatible
query II rowsort label-9923
SELECT + 2, MIN ( ALL - + 42 ) / - + ( - - 88 ) * - - ( - 62 ) + + 33 + + + 54 AS col0
----
2
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9924
SELECT ALL - NULLIF ( - - 88, CASE 23 WHEN 98 THEN - 86 * - - MIN( DISTINCT 73 ) WHEN - - 86 THEN NULL END * - 67 ) * - - 20
----
-1760

skipif mysql # not compatible
query I rowsort label-9924
SELECT ALL - NULLIF ( - - 88, CASE 23 WHEN 98 THEN - 86 * - - MIN ( DISTINCT 73 ) WHEN - - 86 THEN NULL END * - 67 ) * - - 20
----
-1760

query I rowsort
SELECT DISTINCT + 5 col1
----
5

query I rowsort
SELECT ALL + + ( - - 99 ) AS col0
----
99

query I rowsort
SELECT + + 60 * 50
----
3000

query II rowsort
SELECT DISTINCT - 81 col1, 71
----
-81
71

query I rowsort
SELECT ( - 85 )
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-9930
SELECT + ( + MAX( + 63 ) ) + - 75 + - - ( + - 1 ) * - - 51 + - 99
----
-162

skipif mysql # not compatible
query I rowsort label-9930
SELECT + ( + MAX ( + 63 ) ) + - 75 + - - ( + - 1 ) * - - 51 + - 99
----
-162

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9931
SELECT ALL COUNT( * ) DIV - 5
----
0

skipif mysql # not compatible
query I rowsort label-9931
SELECT ALL COUNT ( * ) / - 5
----
0

query I rowsort
SELECT - 49 * - + 53
----
2597

query II rowsort
SELECT - - 33 AS col1, ( + 17 )
----
33
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9934
SELECT + 49 - - ( - COUNT( * ) ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-9934
SELECT + 49 - - ( - COUNT ( * ) ) AS col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9935
SELECT ALL CASE 20 WHEN 1 THEN 38 * - COUNT( * ) * + 15 + + 95 WHEN - MIN( ALL + + 36 ) THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9935
SELECT ALL CASE 20 WHEN 1 THEN 38 * - COUNT ( * ) * + 15 + + 95 WHEN - MIN ( ALL + + 36 ) THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9936
SELECT MIN( + 44 ) AS col2, 4 AS col1
----
44
4

skipif mysql # not compatible
query II rowsort label-9936
SELECT MIN ( + 44 ) AS col2, 4 AS col1
----
44
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9937
SELECT ALL MAX( ALL - 36 ) + + + 13 AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-9937
SELECT ALL MAX ( ALL - 36 ) + + + 13 AS col1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-9938
SELECT + 43 * + MIN( DISTINCT - + 28 ) col1
----
-1204

skipif mysql # not compatible
query I rowsort label-9938
SELECT + 43 * + MIN ( DISTINCT - + 28 ) col1
----
-1204

onlyif mysql # aggregate syntax: 
query I rowsort label-9939
SELECT ALL - 25 + CASE + + 88 WHEN 93 + 87 + 78 THEN 48 WHEN + + 47 + + 25 * COALESCE ( ( - SUM( 9 ) ), ( - NULLIF ( 48, COUNT( * ) * 25 ) ) / + ( + 56 ), + 87 ) + + 1 THEN NULL WHEN + COALESCE ( + 94, 67, + MIN( ALL ( - 92 ) ) ) THEN NULL ELSE 73 * 42 END * + 5
----
15305

skipif mysql # not compatible
query I rowsort label-9939
SELECT ALL - 25 + CASE + + 88 WHEN 93 + 87 + 78 THEN 48 WHEN + + 47 + + 25 * COALESCE ( ( - SUM ( 9 ) ), ( - NULLIF ( 48, COUNT ( * ) * 25 ) ) / + ( + 56 ), + 87 ) + + 1 THEN NULL WHEN + COALESCE ( + 94, 67, + MIN ( ALL ( - 92 ) ) ) THEN NULL ELSE 73 * 42 END * + 5
----
15305

query I rowsort
SELECT ALL + 61 + + 51
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-9941
SELECT ALL - COUNT( * ) + + - 4 - COUNT( * ) + 73
----
67

skipif mysql # not compatible
query I rowsort label-9941
SELECT ALL - COUNT ( * ) + + - 4 - COUNT ( * ) + 73
----
67

query I rowsort
SELECT ALL 1 * + ( + 0 )
----
0

query I rowsort
SELECT - 13 * - + 87 * + - 35 * - 46 * - 81 AS col0
----
-147493710

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9944
SELECT 77 - + - 84 + CAST( - 13 AS SIGNED ) AS col0
----
148

skipif mysql # not compatible
query I rowsort label-9944
SELECT 77 - + - 84 + CAST ( - 13 AS INTEGER ) AS col0
----
148

query I rowsort
SELECT 20 col2
----
20

query I rowsort
SELECT ALL + 62 + + 22 AS col2
----
84

query I rowsort
SELECT 99 * - - 71 * + 90 AS col2
----
632610

query I rowsort
SELECT ALL 59 + 93 * + + 19
----
1826

query I rowsort
SELECT ALL - 63 + + 94 + - 38 * + 10 AS col0
----
-349

query I rowsort
SELECT 89 * - 17
----
-1513

onlyif mysql # DIV for integer division: 
query I rowsort label-9951
SELECT ALL + 99 - + 76 DIV - ( 60 ) AS col0
----
100

skipif mysql # not compatible
query I rowsort label-9951
SELECT ALL + 99 - + 76 / - ( 60 ) AS col0
----
100

query II rowsort
SELECT DISTINCT - COALESCE ( + - 65, + ( 7 ) ) * + 84, 10 AS col0
----
5460
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9953
SELECT 96 * + - 9 * - 74 + - CASE 74 WHEN + COUNT( * ) THEN - CAST( 90 AS SIGNED ) END * - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-9953
SELECT 96 * + - 9 * - 74 + - CASE 74 WHEN + COUNT ( * ) THEN - CAST ( 90 AS INTEGER ) END * - 58
----
NULL

query I rowsort
SELECT 30 * + 6 + - NULLIF ( - - 82, 41 ) AS col2
----
98

query I rowsort
SELECT - 2 * - 24 + - COALESCE ( + 10, - + 47 ) * - 20
----
248

onlyif mysql # aggregate syntax: 
query I rowsort label-9956
SELECT ALL - - 85 - + NULLIF ( - ( - + COUNT( ALL + ( 20 ) ) ), ( + ( + COUNT( * ) ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9956
SELECT ALL - - 85 - + NULLIF ( - ( - + COUNT ( ALL + ( 20 ) ) ), ( + ( + COUNT ( * ) ) ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9957
SELECT - 34 * CAST( + 79 AS SIGNED ) DIV + 49
----
-54

skipif mysql # not compatible
query I rowsort label-9957
SELECT - 34 * CAST ( + 79 AS INTEGER ) / + 49
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9958
SELECT - 9 * CAST( + - 16 AS SIGNED )
----
144

skipif mysql # not compatible
query I rowsort label-9958
SELECT - 9 * CAST ( + - 16 AS INTEGER )
----
144

query I rowsort
SELECT ALL - ( - 33 )
----
33

query I rowsort
SELECT ALL - - 92 AS col0
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9961
SELECT 68 + 94 - + + MIN( ALL - + 66 ) * - COUNT( * ) DIV + + 84 AS col0
----
162

skipif mysql # not compatible
query I rowsort label-9961
SELECT 68 + 94 - + + MIN ( ALL - + 66 ) * - COUNT ( * ) / + + 84 AS col0
----
162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9962
SELECT ALL - 50 * - + 2 + - CAST( - - 34 AS SIGNED )
----
66

skipif mysql # not compatible
query I rowsort label-9962
SELECT ALL - 50 * - + 2 + - CAST ( - - 34 AS INTEGER )
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9963
SELECT - ( + CAST( NULL AS SIGNED ) ) * - 26 / - 5 + 83 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9963
SELECT - ( + CAST ( NULL AS INTEGER ) ) * - 26 / - 5 + 83 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9964
SELECT ALL - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9964
SELECT ALL - CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9965
SELECT 78 * 17 - + CAST( NULL AS SIGNED ), + COUNT( * ) * + 2 * 72 AS col0
----
NULL
144

skipif mysql # not compatible
query II rowsort label-9965
SELECT 78 * 17 - + CAST ( NULL AS INTEGER ), + COUNT ( * ) * + 2 * 72 AS col0
----
NULL
144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9966
SELECT 37 + + COUNT( * ) + NULLIF ( + + CAST( - - 25 AS SIGNED ), - 26 ) DIV NULLIF ( - 46, ( 4 ) )
----
38

skipif mysql # not compatible
query I rowsort label-9966
SELECT 37 + + COUNT ( * ) + NULLIF ( + + CAST ( - - 25 AS INTEGER ), - 26 ) / NULLIF ( - 46, ( 4 ) )
----
38

query II rowsort
SELECT ( + 34 ), + ( 68 ) - + + 34
----
34
34

query II rowsort
SELECT + 34 * 93, 8 AS col2
----
3162
8

query I rowsort
SELECT - - COALESCE ( - 78, + + 11 )
----
-78

query I rowsort
SELECT ALL - 38 * + - 59 AS col0
----
2242

query I rowsort
SELECT DISTINCT 55 + + 62
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-9972
SELECT ALL 25 + + - 2 - + 29 * + SUM( ALL + 44 ) + - COUNT( * )
----
-1254

skipif mysql # not compatible
query I rowsort label-9972
SELECT ALL 25 + + - 2 - + 29 * + SUM ( ALL + 44 ) + - COUNT ( * )
----
-1254

onlyif mysql # aggregate syntax: 
query I rowsort label-9973
SELECT COUNT( * ) + 4 col0
----
5

skipif mysql # not compatible
query I rowsort label-9973
SELECT COUNT ( * ) + 4 col0
----
5

query I rowsort
SELECT ALL 19 + 12 * - - 5 * - NULLIF ( 84, - 64 + + AVG ( DISTINCT 41 ) )
----
-5021

query II rowsort
SELECT 55, 7 AS col2
----
55
7

query I rowsort
SELECT 83 * + 91 AS col0
----
7553

onlyif mysql # aggregate syntax: 
query I rowsort label-9977
SELECT CASE - 30 WHEN + MAX( ALL - + 52 ) + - 16 THEN - 83 ELSE NULL END + 67 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9977
SELECT CASE - 30 WHEN + MAX ( ALL - + 52 ) + - 16 THEN - 83 ELSE NULL END + 67 col0
----
NULL

query I rowsort
SELECT 73 + - 96 * - 22 AS col1
----
2185

onlyif mysql # aggregate syntax: 
query I rowsort label-9979
SELECT ALL 59 - + 8 - 55 + COUNT( * ) * - ( - ( - - 37 ) )
----
33

skipif mysql # not compatible
query I rowsort label-9979
SELECT ALL 59 - + 8 - 55 + COUNT ( * ) * - ( - ( - - 37 ) )
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9980
SELECT ( - 70 ) + 44 + 38 + - 27 * - + COALESCE ( + 53, + 29 + 91 ) * + - ( - + 77 ) + CAST( - MIN( DISTINCT - 29 ) AS SIGNED ) * 82 * 99 * 98 AS col1
----
23181555

skipif mysql # not compatible
query I rowsort label-9980
SELECT ( - 70 ) + 44 + 38 + - 27 * - + COALESCE ( + 53, + 29 + 91 ) * + - ( - + 77 ) + CAST ( - MIN ( DISTINCT - 29 ) AS INTEGER ) * 82 * 99 * 98 AS col1
----
23181555

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9981
SELECT ALL + 31 - + + CAST( - + 80 AS SIGNED ) AS col0
----
111

skipif mysql # not compatible
query I rowsort label-9981
SELECT ALL + 31 - + + CAST ( - + 80 AS INTEGER ) AS col0
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-9982
SELECT ALL - 76 * + CASE 88 WHEN - MIN( - - 43 ) THEN + 20 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9982
SELECT ALL - 76 * + CASE 88 WHEN - MIN ( - - 43 ) THEN + 20 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9983
SELECT ALL 11 * COUNT( 82 )
----
11

skipif mysql # not compatible
query I rowsort label-9983
SELECT ALL 11 * COUNT ( 82 )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9984
SELECT MAX( 25 ) + - 72 + 8 + 44 * 8
----
313

skipif mysql # not compatible
query I rowsort label-9984
SELECT MAX ( 25 ) + - 72 + 8 + 44 * 8
----
313

query II rowsort
SELECT - 92 AS col0, 10 * + - 29 AS col1
----
-92
-290

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9986
SELECT 8 + 85 DIV COUNT( * ) col1
----
93

skipif mysql # not compatible
query I rowsort label-9986
SELECT 8 + 85 / COUNT ( * ) col1
----
93

query I rowsort
SELECT DISTINCT - - 58
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9988
SELECT ALL - SUM( DISTINCT - 62 ) col0
----
62

skipif mysql # not compatible
query I rowsort label-9988
SELECT ALL - SUM ( DISTINCT - 62 ) col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9989
SELECT ALL - - ( NULLIF ( - 9, 59 * 18 * - COUNT( DISTINCT - ( - 24 ) ) / - 39 ) ) col1
----
-9

skipif mysql # not compatible
query I rowsort label-9989
SELECT ALL - - ( NULLIF ( - 9, 59 * 18 * - COUNT ( DISTINCT - ( - 24 ) ) / - 39 ) ) col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9990
SELECT DISTINCT - ( - ( + COALESCE ( + - 14, + ( - + COUNT( * ) ) * COUNT( * ) ) ) ) AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-9990
SELECT DISTINCT - ( - ( + COALESCE ( + - 14, + ( - + COUNT ( * ) ) * COUNT ( * ) ) ) ) AS col2
----
-14

query II rowsort
SELECT 94, 62 * - - 75 AS col1
----
94
4650

query II rowsort
SELECT + 47, 37 - + 74 AS col0
----
47
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9993
SELECT ALL + + 78 DIV - 3 + - 40 * - ( - COUNT( 65 ) ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-9993
SELECT ALL + + 78 / - 3 + - 40 * - ( - COUNT ( 65 ) ) AS col1
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-9994
SELECT + 21 DIV 7
----
3

skipif mysql # not compatible
query I rowsort label-9994
SELECT + 21 / 7
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-9995
SELECT + - 62, + COUNT( 6 ) AS col1
----
-62
1

skipif mysql # not compatible
query II rowsort label-9995
SELECT + - 62, + COUNT ( 6 ) AS col1
----
-62
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9996
SELECT ALL - + MAX( DISTINCT 7 )
----
-7

skipif mysql # not compatible
query I rowsort label-9996
SELECT ALL - + MAX ( DISTINCT 7 )
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9997
SELECT + - CASE + 61 WHEN - - COUNT( * ) * - 16 THEN CAST( + 53 AS SIGNED ) / - + 27 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9997
SELECT + - CASE + 61 WHEN - - COUNT ( * ) * - 16 THEN CAST ( + 53 AS INTEGER ) / - + 27 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9998
SELECT + COUNT( * ) * CASE - CAST( NULL AS SIGNED ) WHEN + - 49 THEN NULL WHEN - ( 26 ) THEN NULL ELSE + - 41 + 56 + + COUNT( * ) * 52 END * - 8 + + - 62 - ( + 90 ) + 19 AS col0
----
-669

skipif mysql # not compatible
query I rowsort label-9998
SELECT + COUNT ( * ) * CASE - CAST ( NULL AS INTEGER ) WHEN + - 49 THEN NULL WHEN - ( 26 ) THEN NULL ELSE + - 41 + 56 + + COUNT ( * ) * 52 END * - 8 + + - 62 - ( + 90 ) + 19 AS col0
----
-669

onlyif mysql # aggregate syntax: 
query I rowsort label-9999
SELECT CASE 70 WHEN - + 21 / 41 + - 84 - + 23 / 9 * + NULLIF ( - - COUNT( * ), + + 90 ) THEN + 21 * 89 - - 32 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9999
SELECT CASE 70 WHEN - + 21 / 41 + - 84 - + 23 / 9 * + NULLIF ( - - COUNT ( * ), + + 90 ) THEN + 21 * 89 - - 32 ELSE NULL END AS col1
----
NULL

