hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

query II rowsort
SELECT + 11 AS col1, - 94 + 54
----
11
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1
SELECT DISTINCT + COALESCE ( 42, - - COUNT( + 41 ) * + CAST( NULL AS SIGNED ) )
----
42

skipif mysql # not compatible
query I rowsort label-1
SELECT DISTINCT + COALESCE ( 42, - - COUNT ( + 41 ) * + CAST ( NULL AS INTEGER ) )
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2
SELECT DISTINCT 9 DIV + 92 + - 43 * - + COUNT( * ) * - 98
----
-4214

skipif mysql # not compatible
query I rowsort label-2
SELECT DISTINCT 9 / + 92 + - 43 * - + COUNT ( * ) * - 98
----
-4214

onlyif mysql # aggregate syntax: 
query I rowsort label-3
SELECT DISTINCT + 43 * - + MAX( - 10 ) * + COALESCE ( + 50, - + 36 + - 39 + - 27 - + 93 ) + + 95 AS col0
----
21595

skipif mysql # not compatible
query I rowsort label-3
SELECT DISTINCT + 43 * - + MAX ( - 10 ) * + COALESCE ( + 50, - + 36 + - 39 + - 27 - + 93 ) + + 95 AS col0
----
21595

query I rowsort
SELECT DISTINCT + 54 * - 12 AS col2
----
-648

query I rowsort
SELECT 50 + + 62 * 57
----
3584

query I rowsort
SELECT 59 + + - 98 + COALESCE ( - 65, - 94 + 22 ) AS col1
----
-104

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7
SELECT ALL 74 + 82 AS col1, + COUNT( * ) + - 43 DIV 60 AS col2
----
156
1

skipif mysql # not compatible
query II rowsort label-7
SELECT ALL 74 + 82 AS col1, + COUNT ( * ) + - 43 / 60 AS col2
----
156
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8
SELECT ALL + 0 + + + 78 + 44 * - - 48 * - 35 * COUNT( * ) * - - 76 * 75 DIV - - 2
----
-210671922

skipif mysql # not compatible
query I rowsort label-8
SELECT ALL + 0 + + + 78 + 44 * - - 48 * - 35 * COUNT ( * ) * - - 76 * 75 / - - 2
----
-210671922

onlyif mysql # aggregate syntax: 
query I rowsort label-9
SELECT ALL - 37 * - - COUNT( * ) * + + 96 AS col2
----
-3552

skipif mysql # not compatible
query I rowsort label-9
SELECT ALL - 37 * - - COUNT ( * ) * + + 96 AS col2
----
-3552

query I rowsort
SELECT DISTINCT + 82 + 31
----
113

query I rowsort
SELECT ALL 38 + - 82
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-12
SELECT CAST( - 76 AS SIGNED ) * - SUM( DISTINCT - ( + 11 ) ) + - 94 + 32 - - + ( 42 ) + 21 * - COUNT( * ) * 81 AS col1
----
-2557

skipif mysql # not compatible
query I rowsort label-12
SELECT CAST ( - 76 AS INTEGER ) * - SUM ( DISTINCT - ( + 11 ) ) + - 94 + 32 - - + ( 42 ) + 21 * - COUNT ( * ) * 81 AS col1
----
-2557

query I rowsort
SELECT 10 * 48
----
480

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-15
SELECT 1 DIV + 50 * - ( COUNT( ALL - 78 ) ) - - COUNT( * ) + + - 5 + + ( + COUNT( * ) ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-15
SELECT 1 / + 50 * - ( COUNT ( ALL - 78 ) ) - - COUNT ( * ) + + - 5 + + ( + COUNT ( * ) ) AS col2
----
-3

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

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

query I rowsort
SELECT - 74 * 4 + + 23 col1
----
-273

onlyif mysql # aggregate syntax: 
query II rowsort label-18
SELECT ALL + 15 * + 27 AS col1, + COUNT( * ) + + 66
----
405
67

skipif mysql # not compatible
query II rowsort label-18
SELECT ALL + 15 * + 27 AS col1, + COUNT ( * ) + + 66
----
405
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-19
SELECT DISTINCT + 57 * 96 * - 23 * - 2 * + 22 + - 67 * - 87 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-19
SELECT DISTINCT + 57 * 96 * - 23 * - 2 * + 22 + - 67 * - 87 / + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 12 * + - 79 + 92 AS col0
----
-856

query I rowsort
SELECT 17 + + - ( - 13 ) col1
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-22
SELECT ALL 26 * + 14 + + - 9 * - CAST( NULL AS SIGNED ) * + + 83 + - 82 + 78 * 55 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-22
SELECT ALL 26 * + 14 + + - 9 * - CAST ( NULL AS INTEGER ) * + + 83 + - 82 + 78 * 55 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-23
SELECT COUNT( * ) * - - 84 * + ( + 32 )
----
2688

skipif mysql # not compatible
query I rowsort label-23
SELECT COUNT ( * ) * - - 84 * + ( + 32 )
----
2688

onlyif mysql # aggregate syntax: 
query II rowsort label-24
SELECT - ( - 15 ) * + COUNT( * ) + 42 + - 91 AS col2, 62
----
-34
62

skipif mysql # not compatible
query II rowsort label-24
SELECT - ( - 15 ) * + COUNT ( * ) + 42 + - 91 AS col2, 62
----
-34
62

onlyif mysql # aggregate syntax: 
query I rowsort label-25
SELECT - 82 * + - 26 + - MAX( + 69 ) * 27
----
269

skipif mysql # not compatible
query I rowsort label-25
SELECT - 82 * + - 26 + - MAX ( + 69 ) * 27
----
269

onlyif mysql # aggregate syntax: 
query I rowsort label-26
SELECT MIN( ALL - 51 ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-26
SELECT MIN ( ALL - 51 ) AS col1
----
-51

query I rowsort
SELECT ALL 15 + + + NULLIF ( - ( + 50 ), + 86 / - - AVG ( - 69 ) * + - 82 * - 20 + - ( 38 + 68 / + 1 ) ) * 55 AS col2
----
-2735

query I rowsort
SELECT ALL + 14 + + 31 + 88 AS col1
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-29
SELECT DISTINCT COUNT( * ) + - 59 * - + 98 col0
----
5783

skipif mysql # not compatible
query I rowsort label-29
SELECT DISTINCT COUNT ( * ) + - 59 * - + 98 col0
----
5783

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-30
SELECT - 86 * - ( - 85 ) + + + COUNT( * ) + - 3 * - + 46 DIV 23 * 48 AS col2
----
-7021

skipif mysql # not compatible
query I rowsort label-30
SELECT - 86 * - ( - 85 ) + + + COUNT ( * ) + - 3 * - + 46 / 23 * 48 AS col2
----
-7021

onlyif mysql # aggregate syntax: 
query I rowsort label-31
SELECT COUNT( * ) * - 81 + - MAX( 47 ) AS col0
----
-128

skipif mysql # not compatible
query I rowsort label-31
SELECT COUNT ( * ) * - 81 + - MAX ( 47 ) AS col0
----
-128

query I rowsort
SELECT ALL - COALESCE ( - 89, - 6 + 81 ) + 61
----
150

query II rowsort
SELECT 6 AS col0, - 96
----
6
-96

query I rowsort
SELECT 89 * - - 36 col0
----
3204

onlyif mysql # aggregate syntax: 
query I rowsort label-35
SELECT 95 + + COUNT( * ) col1
----
96

skipif mysql # not compatible
query I rowsort label-35
SELECT 95 + + COUNT ( * ) col1
----
96

onlyif mysql # DIV for integer division: 
query II rowsort label-36
SELECT DISTINCT + 95 + - ( - + 54 ), 53 DIV + 43 AS col1
----
149
1

skipif mysql # not compatible
query II rowsort label-36
SELECT DISTINCT + 95 + - ( - + 54 ), 53 / + 43 AS col1
----
149
1

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

query I rowsort
SELECT 79 * - 6 col1
----
-474

onlyif mysql # DIV for integer division: 
query I rowsort label-39
SELECT 85 + + ( - 76 ) + + 22 + - 32 DIV - 58 AS col1
----
31

skipif mysql # not compatible
query I rowsort label-39
SELECT 85 + + ( - 76 ) + + 22 + - 32 / - 58 AS col1
----
31

query I rowsort
SELECT 78 * + + 24 AS col0
----
1872

onlyif mysql # aggregate syntax: 
query I rowsort label-41
SELECT ALL - COUNT( * ) * - + 53 * 56
----
2968

skipif mysql # not compatible
query I rowsort label-41
SELECT ALL - COUNT ( * ) * - + 53 * 56
----
2968

query I rowsort
SELECT 20 + + - 44
----
-24

query I rowsort
SELECT ALL 84 * - 62
----
-5208

query I rowsort
SELECT ( + - 62 ) + - 33 AS col1
----
-95

query I rowsort
SELECT ALL - 6 * + 90
----
-540

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-46
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col2, COUNT( * ) / + CASE - 28 WHEN - 68 THEN 80 WHEN + 37 THEN NULL WHEN - 67 THEN - 1 ELSE NULL END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-46
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2, COUNT ( * ) / + CASE - 28 WHEN - 68 THEN 80 WHEN + 37 THEN NULL WHEN - 67 THEN - 1 ELSE NULL END
----
NULL
NULL

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

skipif mysql # not compatible
query I rowsort label-47
SELECT COUNT ( 1 ) col0
----
1

query I rowsort
SELECT DISTINCT - ( + 78 ) * + - 13 AS col1
----
1014

query I rowsort
SELECT ALL - ( + ( 42 ) ) * - + 8 AS col2
----
336

onlyif mysql # aggregate syntax: 
query I rowsort label-50
SELECT ALL - MAX( DISTINCT + + 24 ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-50
SELECT ALL - MAX ( DISTINCT + + 24 ) AS col2
----
-24

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-52
SELECT + ( + 38 ) DIV + + MAX( + 99 ) * - + 58 + - 71
----
-71

skipif mysql # not compatible
query I rowsort label-52
SELECT + ( + 38 ) / + + MAX ( + 99 ) * - + 58 + - 71
----
-71

query I rowsort
SELECT ALL + 71 * 46 * + + 67 + + - 5 + - 7
----
218810

onlyif mysql # aggregate syntax: 
query I rowsort label-54
SELECT - - ( + CASE + - 54 WHEN 57 + - CASE - 96 WHEN + 57 + 36 - MAX( ALL 1 ) THEN + 10 END * + ( - 19 * CASE COALESCE ( + NULLIF ( 66, + 83 ), 23 + 32 ) WHEN 25 THEN NULL WHEN 9 - COALESCE ( 79 + 16, ( + 14 ) * ( - COUNT( * ) * 53 ) - + 30 ) * NULLIF ( - SUM( DISTINCT 92 ), 32 / 57 ) THEN NULLIF ( + NULLIF ( - 28, 0 * COUNT( * ) + 83 ), + NULLIF ( 88, - 18 + - 42 ) * - 30 ) + 77 END ) THEN - 53 * + 68 WHEN 2 THEN - 0 * - 10 END ) * COUNT( * ) + - MIN( 52 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-54
SELECT - - ( + CASE + - 54 WHEN 57 + - CASE - 96 WHEN + 57 + 36 - MAX ( ALL 1 ) THEN + 10 END * + ( - 19 * CASE COALESCE ( + NULLIF ( 66, + 83 ), 23 + 32 ) WHEN 25 THEN NULL WHEN 9 - COALESCE ( 79 + 16, ( + 14 ) * ( - COUNT ( * ) * 53 ) - + 30 ) * NULLIF ( - SUM ( DISTINCT 92 ), 32 / 57 ) THEN NULLIF ( + NULLIF ( - 28, 0 * COUNT ( * ) + 83 ), + NULLIF ( 88, - 18 + - 42 ) * - 30 ) + 77 END ) THEN - 53 * + 68 WHEN 2 THEN - 0 * - 10 END ) * COUNT ( * ) + - MIN ( 52 ) AS col2
----
NULL

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

query I rowsort
SELECT ALL 46 * + + 34 AS col0
----
1564

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-57
SELECT - COALESCE ( - + 43, + - 88 * + 12, - 94 * - + CAST( - - 56 AS SIGNED ) DIV ( 44 ) ) DIV 61
----
0

skipif mysql # not compatible
query I rowsort label-57
SELECT - COALESCE ( - + 43, + - 88 * + 12, - 94 * - + CAST ( - - 56 AS INTEGER ) / ( 44 ) ) / 61
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-58
SELECT - 80 * 56 + COUNT( * ) DIV - COUNT( ALL + + 83 )
----
-4481

skipif mysql # not compatible
query I rowsort label-58
SELECT - 80 * 56 + COUNT ( * ) / - COUNT ( ALL + + 83 )
----
-4481

onlyif mysql # aggregate syntax: 
query I rowsort label-59
SELECT DISTINCT - 54 * - COUNT( * ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-59
SELECT DISTINCT - 54 * - COUNT ( * ) AS col2
----
54

query I rowsort
SELECT ALL + ( + + 64 ) + 18 + + 96 * 73 * - + ( - NULLIF ( + + 27, 88 / + 21 * 26 ) ) col0
----
189298

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

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

query I rowsort
SELECT ALL 26 * + 88 + + 42 AS col2
----
2330

query I rowsort
SELECT + 65 * - 76 AS col1
----
-4940

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

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

query I rowsort
SELECT + + CASE - 77 WHEN - 17 THEN - - 48 * + + 70 + - 80 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-66
SELECT ALL - COUNT( * ) + - - 21 * - CAST( + 44 AS SIGNED ) AS col2
----
-925

skipif mysql # not compatible
query I rowsort label-66
SELECT ALL - COUNT ( * ) + - - 21 * - CAST ( + 44 AS INTEGER ) AS col2
----
-925

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-67
SELECT ALL + 27 + + 98 + + CAST( NULL AS DECIMAL ) + + + 28 + - 8 * - 14 + - 75 - + NULLIF ( - 35, + 33 - 13 ) * 17 * COALESCE ( + COUNT( * ), + CAST( - 46 AS SIGNED ) ) * 8 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-67
SELECT ALL + 27 + + 98 + + CAST ( NULL AS REAL ) + + + 28 + - 8 * - 14 + - 75 - + NULLIF ( - 35, + 33 - 13 ) * 17 * COALESCE ( + COUNT ( * ), + CAST ( - 46 AS INTEGER ) ) * 8 AS col2
----
NULL

query I rowsort
SELECT + + 22 + - 13
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-69
SELECT - COALESCE ( - - COUNT( * ), + 59 DIV 71, + COUNT( * ) * 76 )
----
-1

skipif mysql # not compatible
query I rowsort label-69
SELECT - COALESCE ( - - COUNT ( * ), + 59 / 71, + COUNT ( * ) * 76 )
----
-1

query I rowsort
SELECT ALL 97 * 89 * 48
----
414384

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-71
SELECT DISTINCT + 64 - + 93, - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * + ( 95 ) AS col2
----
-29
NULL

skipif mysql # not compatible
query II rowsort label-71
SELECT DISTINCT + 64 - + 93, - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * + ( 95 ) AS col2
----
-29
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-72
SELECT - COALESCE ( - CAST( NULL AS SIGNED ), + 17 ) col1
----
-17

skipif mysql # not compatible
query I rowsort label-72
SELECT - COALESCE ( - CAST ( NULL AS INTEGER ), + 17 ) col1
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-73
SELECT ALL COUNT( * ), - COUNT( * ) * + CAST( 75 AS SIGNED ) + + + 74 * + 47 * - 85 AS col1
----
1
-295705

skipif mysql # not compatible
query II rowsort label-73
SELECT ALL COUNT ( * ), - COUNT ( * ) * + CAST ( 75 AS INTEGER ) + + + 74 * + 47 * - 85 AS col1
----
1
-295705

query I rowsort
SELECT - 61 * 99 AS col0
----
-6039

query I rowsort
SELECT - ( - - 64 ) + 31 AS col2
----
-33

query I rowsort
SELECT DISTINCT CASE + COALESCE ( + 52, + - 27 + + 45, - 17 + 58 ) WHEN + + 55 THEN NULL WHEN + 3 * - NULLIF ( + - 88, - 82 ) + 23 THEN + 7 END AS col1
----
NULL

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

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

query I rowsort
SELECT - 49 + + - ( + 43 )
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-79
SELECT ALL CASE - - 71 WHEN - 2 + - 88 THEN - 17 * + 0 - 4 - ( - 83 ) + COUNT( * ) WHEN + 66 / 46 THEN NULLIF ( + 27, - 10 ) + 9 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-79
SELECT ALL CASE - - 71 WHEN - 2 + - 88 THEN - 17 * + 0 - 4 - ( - 83 ) + COUNT ( * ) WHEN + 66 / 46 THEN NULLIF ( + 27, - 10 ) + 9 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-80
SELECT - 43 - 74 + - SUM( DISTINCT - 54 ) col2
----
-63

skipif mysql # not compatible
query I rowsort label-80
SELECT - 43 - 74 + - SUM ( DISTINCT - 54 ) col2
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-81
SELECT DISTINCT MIN( + 2 )
----
2

skipif mysql # not compatible
query I rowsort label-81
SELECT DISTINCT MIN ( + 2 )
----
2

query I rowsort
SELECT ALL ( + + 87 ) AS col0
----
87

query II rowsort
SELECT - 19 + - 5, + 37 AS col2
----
-24
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-84
SELECT ALL COALESCE ( + - 84, - COUNT( * ) DIV 0, - COUNT( * ) )
----
-84

skipif mysql # not compatible
query I rowsort label-84
SELECT ALL COALESCE ( + - 84, - COUNT ( * ) / 0, - COUNT ( * ) )
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-85
SELECT ALL + NULLIF ( 90, - 5 * + + 99 * - 95 + + 33 + 70 ) DIV 82 * 54 * + + 87
----
4698

skipif mysql # not compatible
query I rowsort label-85
SELECT ALL + NULLIF ( 90, - 5 * + + 99 * - 95 + + 33 + 70 ) / 82 * 54 * + + 87
----
4698

onlyif mysql # aggregate syntax: 
query I rowsort label-86
SELECT DISTINCT COALESCE ( - 86, 5, 35 * 86 + + ( - NULLIF ( 65, COALESCE ( - - 80, - 87 + - 85 ) / 99 ) ) + 37 * NULLIF ( - NULLIF ( - COUNT( * ), - 76 ) * 59, - ( + 94 ) + 72 ) + - 37 * 38 )
----
-86

skipif mysql # not compatible
query I rowsort label-86
SELECT DISTINCT COALESCE ( - 86, 5, 35 * 86 + + ( - NULLIF ( 65, COALESCE ( - - 80, - 87 + - 85 ) / 99 ) ) + 37 * NULLIF ( - NULLIF ( - COUNT ( * ), - 76 ) * 59, - ( + 94 ) + 72 ) + - 37 * 38 )
----
-86

query I rowsort
SELECT - 32 * + 82 + 19 + - - 30 col2
----
-2575

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-88
SELECT ALL + 25 DIV SUM( ALL + - 12 ) + - 33
----
-35

skipif mysql # not compatible
query I rowsort label-88
SELECT ALL + 25 / SUM ( ALL + - 12 ) + - 33
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-89
SELECT ( - - 18 ) DIV + 8 + 51
----
53

skipif mysql # not compatible
query I rowsort label-89
SELECT ( - - 18 ) / + 8 + 51
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-90
SELECT - 91 + - COUNT( * ), + CAST( NULL AS SIGNED ) * + MIN( - 16 ) * 30 AS col2
----
-92
NULL

skipif mysql # not compatible
query II rowsort label-90
SELECT - 91 + - COUNT ( * ), + CAST ( NULL AS INTEGER ) * + MIN ( - 16 ) * 30 AS col2
----
-92
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-91
SELECT + 19 * + 89 * + ( - + COUNT( * ) ) - + - 5 - + COALESCE ( + 17, - + COUNT( * ) )
----
-1703

skipif mysql # not compatible
query I rowsort label-91
SELECT + 19 * + 89 * + ( - + COUNT ( * ) ) - + - 5 - + COALESCE ( + 17, - + COUNT ( * ) )
----
-1703

onlyif mysql # aggregate syntax: 
query I rowsort label-92
SELECT ALL - 10 * - 73 + NULLIF ( - + COALESCE ( + 10, + - 12 + COUNT( * ), - 88 ), - + 85 + + 80 ) + + + 97 * - 37 * 4 AS col0
----
-13636

skipif mysql # not compatible
query I rowsort label-92
SELECT ALL - 10 * - 73 + NULLIF ( - + COALESCE ( + 10, + - 12 + COUNT ( * ), - 88 ), - + 85 + + 80 ) + + + 97 * - 37 * 4 AS col0
----
-13636

query I rowsort
SELECT - 5 + - - 30 AS col1
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-94
SELECT + COUNT( * ) DIV - COUNT( * ) + COALESCE ( COUNT( * ), + ( 87 ) ) + - 61 DIV - 54 + - 6 * + - 90 + 31 DIV 53 AS col0
----
541

skipif mysql # not compatible
query I rowsort label-94
SELECT + COUNT ( * ) / - COUNT ( * ) + COALESCE ( COUNT ( * ), + ( 87 ) ) + - 61 / - 54 + - 6 * + - 90 + 31 / 53 AS col0
----
541

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-95
SELECT DISTINCT + - COALESCE ( + - 52, ( - - 88 ), + 70 * + + 64 + COUNT( * ), 7 DIV + - 61 + 32 ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-95
SELECT DISTINCT + - COALESCE ( + - 52, ( - - 88 ), + 70 * + + 64 + COUNT ( * ), 7 / + - 61 + 32 ) AS col0
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-96
SELECT ALL + NULLIF ( 74, - 65 + + 77 * - 50 + - 77 + + MIN( 84 ) * - + 86 * - CAST( NULL AS SIGNED ) + - CAST( NULL AS DECIMAL ) / 68 )
----
74

skipif mysql # not compatible
query I rowsort label-96
SELECT ALL + NULLIF ( 74, - 65 + + 77 * - 50 + - 77 + + MIN ( 84 ) * - + 86 * - CAST ( NULL AS INTEGER ) + - CAST ( NULL AS REAL ) / 68 )
----
74

query I rowsort
SELECT DISTINCT + - NULLIF ( + 12, + 49 ) AS col2
----
-12

query I rowsort
SELECT - + 26 * 54
----
-1404

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-99
SELECT + 77 * COALESCE ( + 17, + ( CAST( NULL AS SIGNED ) ) ) * - 76 AS col0
----
-99484

skipif mysql # not compatible
query I rowsort label-99
SELECT + 77 * COALESCE ( + 17, + ( CAST ( NULL AS INTEGER ) ) ) * - 76 AS col0
----
-99484

onlyif mysql # aggregate syntax: 
query I rowsort label-100
SELECT + 23 * - 28 + COUNT( * )
----
-643

skipif mysql # not compatible
query I rowsort label-100
SELECT + 23 * - 28 + COUNT ( * )
----
-643

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-101
SELECT DISTINCT COALESCE ( - CAST( NULL AS SIGNED ), 82 ) * - + MIN( - 31 ) - - CASE + 88 WHEN + + ( 88 ) + 65 + 8 THEN - CAST( 69 AS SIGNED ) END * + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-101
SELECT DISTINCT COALESCE ( - CAST ( NULL AS INTEGER ), 82 ) * - + MIN ( - 31 ) - - CASE + 88 WHEN + + ( 88 ) + 65 + 8 THEN - CAST ( 69 AS INTEGER ) END * + 88
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-102
SELECT ALL + 16 AS col0, - 69 * CAST( NULL AS SIGNED )
----
16
NULL

skipif mysql # not compatible
query II rowsort label-102
SELECT ALL + 16 AS col0, - 69 * CAST ( NULL AS INTEGER )
----
16
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-103
SELECT DISTINCT + 81 * + 97 + MAX( + 31 ) AS col1
----
7888

skipif mysql # not compatible
query I rowsort label-103
SELECT DISTINCT + 81 * + 97 + MAX ( + 31 ) AS col1
----
7888

onlyif mysql # aggregate syntax: 
query I rowsort label-104
SELECT + 64 * + - 10 + COUNT( * )
----
-639

skipif mysql # not compatible
query I rowsort label-104
SELECT + 64 * + - 10 + COUNT ( * )
----
-639

query I rowsort
SELECT + 43 * - 74 AS col1
----
-3182

onlyif mysql # aggregate syntax: 
query I rowsort label-106
SELECT ALL SUM( ALL - 38 ) * - MAX( ALL + 45 ) + + - CASE + 30 WHEN 41 * 3 + ( - COALESCE ( SUM( + 55 ), 34 * - 23, - 60 ) ) - MAX( ALL ( - 51 ) + + 5 ) THEN NULL ELSE + 71 END + - 19 AS col1
----
1620

skipif mysql # not compatible
query I rowsort label-106
SELECT ALL SUM ( ALL - 38 ) * - MAX ( ALL + 45 ) + + - CASE + 30 WHEN 41 * 3 + ( - COALESCE ( SUM ( + 55 ), 34 * - 23, - 60 ) ) - MAX ( ALL ( - 51 ) + + 5 ) THEN NULL ELSE + 71 END + - 19 AS col1
----
1620

onlyif mysql # aggregate syntax: 
query I rowsort label-107
SELECT DISTINCT ( 47 ) * - + COUNT( * ) + + 73 - - 27
----
53

skipif mysql # not compatible
query I rowsort label-107
SELECT DISTINCT ( 47 ) * - + COUNT ( * ) + + 73 - - 27
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-108
SELECT + COUNT( * ) + + + COUNT( * ) * - 51 AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-108
SELECT + COUNT ( * ) + + + COUNT ( * ) * - 51 AS col0
----
-50

query I rowsort
SELECT ALL 98 * + + 79
----
7742

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-110
SELECT DISTINCT 56 * 75, 9 DIV 4 + + COUNT( * ) AS col1
----
4200
3

skipif mysql # not compatible
query II rowsort label-110
SELECT DISTINCT 56 * 75, 9 / 4 + + COUNT ( * ) AS col1
----
4200
3

onlyif mysql # aggregate syntax: 
query I rowsort label-111
SELECT MIN( DISTINCT 11 )
----
11

skipif mysql # not compatible
query I rowsort label-111
SELECT MIN ( DISTINCT 11 )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-112
SELECT + SUM( DISTINCT + 58 ) * 24 * 81
----
112752

skipif mysql # not compatible
query I rowsort label-112
SELECT + SUM ( DISTINCT + 58 ) * 24 * 81
----
112752

query I rowsort
SELECT - COALESCE ( + 20, + 52 )
----
-20

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

query I rowsort
SELECT - 79 + + + 66
----
-13

query I rowsort
SELECT - 38 * + 53 AS col0
----
-2014

onlyif mysql # aggregate syntax: 
query I rowsort label-117
SELECT + ( + - CASE + ( - ( - 54 ) ) WHEN + COUNT( * ) THEN NULL ELSE + - 89 END ) * + 60
----
5340

skipif mysql # not compatible
query I rowsort label-117
SELECT + ( + - CASE + ( - ( - 54 ) ) WHEN + COUNT ( * ) THEN NULL ELSE + - 89 END ) * + 60
----
5340

query I rowsort
SELECT + 20 + + 46 - 58 * - 20
----
1226

query I rowsort
SELECT - 78 - + 59
----
-137

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-121
SELECT ALL + ( 90 ) + COUNT( * ) + - 18 + - COALESCE ( - + 55, - 8 DIV - 20 + COUNT( * ) - - COUNT( * ) * + 70 ) * - CAST( 33 AS SIGNED ) * COUNT( * ) * 9 col2
----
-16262

skipif mysql # not compatible
query I rowsort label-121
SELECT ALL + ( 90 ) + COUNT ( * ) + - 18 + - COALESCE ( - + 55, - 8 / - 20 + COUNT ( * ) - - COUNT ( * ) * + 70 ) * - CAST ( 33 AS INTEGER ) * COUNT ( * ) * 9 col2
----
-16262

onlyif mysql # aggregate syntax: 
query I rowsort label-122
SELECT + MAX( ALL 99 ) * 98
----
9702

skipif mysql # not compatible
query I rowsort label-122
SELECT + MAX ( ALL 99 ) * 98
----
9702

query I rowsort
SELECT - 31 + - 73
----
-104

query I rowsort
SELECT DISTINCT + - 59 * - - 66
----
-3894

query II rowsort
SELECT DISTINCT 63 + - 65 AS col1, 10
----
-2
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-126
SELECT DISTINCT - 54 DIV - + COUNT( * ) - + - 62 * 25 col2
----
1604

skipif mysql # not compatible
query I rowsort label-126
SELECT DISTINCT - 54 / - + COUNT ( * ) - + - 62 * 25 col2
----
1604

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-127
SELECT - - 15 DIV CAST( 73 AS SIGNED ) * + 55 + - 22 + ( 9 ) * + + 45 * 29
----
11723

skipif mysql # not compatible
query I rowsort label-127
SELECT - - 15 / CAST ( 73 AS INTEGER ) * + 55 + - 22 + ( 9 ) * + + 45 * 29
----
11723

onlyif mysql # aggregate syntax: 
query I rowsort label-128
SELECT ALL - COUNT( * ) * + + 43 AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-128
SELECT ALL - COUNT ( * ) * + + 43 AS col2
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-129
SELECT DISTINCT - - 67 DIV + 13 AS col0, COUNT( * ) AS col2
----
5
1

skipif mysql # not compatible
query II rowsort label-129
SELECT DISTINCT - - 67 / + 13 AS col0, COUNT ( * ) AS col2
----
5
1

query I rowsort
SELECT ALL + + 4 + 43 - + - 68 - 43
----
72

query I rowsort
SELECT ALL - 60 + + 18 AS col2
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-132
SELECT + - 76 * + CAST( COALESCE ( - 29, + 83 + + 82 / - + CASE WHEN NULL IS NOT NULL THEN NULL ELSE + 36 END * 88 - + ( + 2 ) ) AS SIGNED ) + 47 AS col0
----
2251

skipif mysql # not compatible
query I rowsort label-132
SELECT + - 76 * + CAST ( COALESCE ( - 29, + 83 + + 82 / - + CASE WHEN NULL IS NOT NULL THEN NULL ELSE + 36 END * 88 - + ( + 2 ) ) AS INTEGER ) + 47 AS col0
----
2251

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-133
SELECT ALL - CAST( NULL AS SIGNED ) - 30 / - NULLIF ( SUM( ALL + 69 ), 91 * - 39 * 78 + COUNT( + + 37 ) / + 96 - + COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-133
SELECT ALL - CAST ( NULL AS INTEGER ) - 30 / - NULLIF ( SUM ( ALL + 69 ), 91 * - 39 * 78 + COUNT ( + + 37 ) / + 96 - + COUNT ( * ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-134
SELECT DISTINCT + - SUM( + 20 ) * 48
----
-960

skipif mysql # not compatible
query I rowsort label-134
SELECT DISTINCT + - SUM ( + 20 ) * 48
----
-960

query I rowsort
SELECT DISTINCT - 66 - - + 6 * + 19 * + - 81 * - NULLIF ( - 32, - 94 / ( + - 21 ) * + - 13 ) + 64
----
-295490

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-137
SELECT ALL - COALESCE ( - 52, 8 * 17, + + COUNT( * ) + + 94, + - 89 DIV 21 * + 17 + + + 70 ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-137
SELECT ALL - COALESCE ( - 52, 8 * 17, + + COUNT ( * ) + + 94, + - 89 / 21 * + 17 + + + 70 ) AS col2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-138
SELECT 78 + + SUM( ALL - 42 ) * - - 54 + + COALESCE ( + 57, + 18 * + + ( - 33 ) - + 67 + - 20 ) AS col0
----
-2133

skipif mysql # not compatible
query I rowsort label-138
SELECT 78 + + SUM ( ALL - 42 ) * - - 54 + + COALESCE ( + 57, + 18 * + + ( - 33 ) - + 67 + - 20 ) AS col0
----
-2133

onlyif mysql # aggregate syntax: 
query I rowsort label-139
SELECT 88 + + 61 + - CASE 9 WHEN 81 THEN + + 40 * - 72 WHEN + 23 * ( - - AVG ( ALL - + 52 ) ) + - 99 * - COALESCE ( 1, COUNT( * ) - 18 ) THEN NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-139
SELECT 88 + + 61 + - CASE 9 WHEN 81 THEN + + 40 * - 72 WHEN + 23 * ( - - AVG ( ALL - + 52 ) ) + - 99 * - COALESCE ( 1, COUNT ( * ) - 18 ) THEN NULL END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-140
SELECT 23 - COUNT( * ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-140
SELECT 23 - COUNT ( * ) AS col1
----
22

query II rowsort
SELECT DISTINCT 62 AS col0, + 10 - - - 46 AS col1
----
62
-36

query I rowsort
SELECT DISTINCT 62 * - 1
----
-62

query I rowsort
SELECT ALL COALESCE ( - 40, ( + + 35 ) ) + - + 72
----
-112

query I rowsort
SELECT ALL 97 * 37
----
3589

onlyif mysql # aggregate syntax: 
query II rowsort label-145
SELECT DISTINCT COUNT( ALL 45 ) + - 96 col0, 91 + + + ( + 18 ) + COUNT( DISTINCT - 90 )
----
-95
110

skipif mysql # not compatible
query II rowsort label-145
SELECT DISTINCT COUNT ( ALL 45 ) + - 96 col0, 91 + + + ( + 18 ) + COUNT ( DISTINCT - 90 )
----
-95
110

query I rowsort
SELECT ALL COALESCE ( - 59, + 89 ) + - 75 + + - 22 + - 22
----
-178

query I rowsort
SELECT 9 + - 46 * - + 6 * - + 45 AS col1
----
-12411

onlyif mysql # aggregate syntax: 
query I rowsort label-148
SELECT COUNT( * ) - - + 97 * - 85 AS col2
----
-8244

skipif mysql # not compatible
query I rowsort label-148
SELECT COUNT ( * ) - - + 97 * - 85 AS col2
----
-8244

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-149
SELECT ALL CAST( + + 21 AS SIGNED ) + - 37 + - + 49 AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-149
SELECT ALL CAST ( + + 21 AS INTEGER ) + - 37 + - + 49 AS col0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-150
SELECT ALL COALESCE ( + 12, + COUNT( * ) - 54 * - 64 - COUNT( * ) )
----
12

skipif mysql # not compatible
query I rowsort label-150
SELECT ALL COALESCE ( + 12, + COUNT ( * ) - 54 * - 64 - COUNT ( * ) )
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-151
SELECT 17 + - + COUNT( - 91 ) AS col1, + 61 - 94 * - - 58 * - 50 AS col0
----
16
272661

skipif mysql # not compatible
query II rowsort label-151
SELECT 17 + - + COUNT ( - 91 ) AS col1, + 61 - 94 * - - 58 * - 50 AS col0
----
16
272661

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-152
SELECT ALL - 25 + + 68 + - 5 + - 50 + - 70 - + 97 + + 66 DIV - + COUNT( * ) + - + 31 + + ( + 22 ) + - 28 - - COUNT( * ) * 97 * 75 AS col1
----
6993

skipif mysql # not compatible
query I rowsort label-152
SELECT ALL - 25 + + 68 + - 5 + - 50 + - 70 - + 97 + + 66 / - + COUNT ( * ) + - + 31 + + ( + 22 ) + - 28 - - COUNT ( * ) * 97 * 75 AS col1
----
6993

onlyif mysql # aggregate syntax: 
query I rowsort label-153
SELECT - 96 + - COUNT( * ) AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-153
SELECT - 96 + - COUNT ( * ) AS col2
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-154
SELECT DISTINCT + CASE - 48 WHEN + ( + 97 ) * - 58 THEN + + 84 * - - ( + - 5 ) + 40 - - COUNT( * ) + 69 + - 23 / NULLIF ( + 21, + 29 ) END + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-154
SELECT DISTINCT + CASE - 48 WHEN + ( + 97 ) * - 58 THEN + + 84 * - - ( + - 5 ) + 40 - - COUNT ( * ) + 69 + - 23 / NULLIF ( + 21, + 29 ) END + 28
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-155
SELECT ALL 92 - - 22 - - + 2 * 74 + + MAX( + 80 ) * + 88 + - - 60 + + - 78 + + 92 / ( + 15 ) / - ( + CAST( NULL AS DECIMAL ) ) * 70 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-155
SELECT ALL 92 - - 22 - - + 2 * 74 + + MAX ( + 80 ) * + 88 + - - 60 + + - 78 + + 92 / ( + 15 ) / - ( + CAST ( NULL AS REAL ) ) * 70 AS col1
----
NULL

query I rowsort
SELECT - 62 + - 22 * - + 40 * 35 + + - 50
----
30688

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-157
SELECT - ( 34 ) DIV + + COUNT( * ) + 2 + + COUNT( * )
----
-31

skipif mysql # not compatible
query I rowsort label-157
SELECT - ( 34 ) / + + COUNT ( * ) + 2 + + COUNT ( * )
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-158
SELECT ALL - 15 * + - 88 * 11 * - CASE ( - 72 ) WHEN 37 + - ( MIN( ALL 70 ) ) THEN - 86 WHEN - CAST( + + 6 AS SIGNED ) + - 23 THEN CASE + ( 15 ) WHEN - 85 THEN 31 END END * 24
----
NULL

skipif mysql # not compatible
query I rowsort label-158
SELECT ALL - 15 * + - 88 * 11 * - CASE ( - 72 ) WHEN 37 + - ( MIN ( ALL 70 ) ) THEN - 86 WHEN - CAST ( + + 6 AS INTEGER ) + - 23 THEN CASE + ( 15 ) WHEN - 85 THEN 31 END END * 24
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-160
SELECT 3 * + 7 + + 16 + - CAST( + - CAST( 21 AS SIGNED ) AS SIGNED ) * - 92 AS col1
----
-1895

skipif mysql # not compatible
query I rowsort label-160
SELECT 3 * + 7 + + 16 + - CAST ( + - CAST ( 21 AS INTEGER ) AS INTEGER ) * - 92 AS col1
----
-1895

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-161
SELECT ALL - + CASE + 97 WHEN - 74 THEN NULL ELSE CAST( NULL AS SIGNED ) * + 60 + + - CASE + 74 WHEN - 39 THEN NULL ELSE + + 61 END + 51 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-161
SELECT ALL - + CASE + 97 WHEN - 74 THEN NULL ELSE CAST ( NULL AS INTEGER ) * + 60 + + - CASE + 74 WHEN - 39 THEN NULL ELSE + + 61 END + 51 END AS col0
----
NULL

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

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

query II rowsort
SELECT ALL - 86 AS col2, 48 + + 50
----
-86
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-164
SELECT ALL - - 89 DIV - + COUNT( * ) * + - COUNT( * ) col2, 64 + - - 46 * ( 41 ) AS col2
----
89
1950

skipif mysql # not compatible
query II rowsort label-164
SELECT ALL - - 89 / - + COUNT ( * ) * + - COUNT ( * ) col2, 64 + - - 46 * ( 41 ) AS col2
----
89
1950

onlyif mysql # aggregate syntax: 
query II rowsort label-165
SELECT ALL - - 95, 93 - + MAX( ALL - 54 ) AS col1
----
95
147

skipif mysql # not compatible
query II rowsort label-165
SELECT ALL - - 95, 93 - + MAX ( ALL - 54 ) AS col1
----
95
147

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-166
SELECT ALL - COUNT( * ) * 99 DIV - - 55
----
-1

skipif mysql # not compatible
query I rowsort label-166
SELECT ALL - COUNT ( * ) * 99 / - - 55
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-167
SELECT 98 + + 54 * CAST( - + COUNT( * ) AS SIGNED ) - 18 + + 34 DIV 2 - 4 col1
----
39

skipif mysql # not compatible
query I rowsort label-167
SELECT 98 + + 54 * CAST ( - + COUNT ( * ) AS INTEGER ) - 18 + + 34 / 2 - 4 col1
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-168
SELECT ALL - 51 DIV + ( 53 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-168
SELECT ALL - 51 / + ( 53 ) AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-169
SELECT COUNT( - + 82 ) DIV 56 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-169
SELECT COUNT ( - + 82 ) / 56 AS col2
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-171
SELECT ( + - 13 ) * - 31 + + 9 + + 24 * - - COUNT( * ) * - 20 + + + 83
----
15

skipif mysql # not compatible
query I rowsort label-171
SELECT ( + - 13 ) * - 31 + + 9 + + 24 * - - COUNT ( * ) * - 20 + + + 83
----
15

query II rowsort
SELECT - 69 * 76 + - ( - 91 ) AS col0, 8 col0
----
-5153
8

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

skipif mysql # not compatible
query I rowsort label-173
SELECT DISTINCT - 60 * - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT 97 * 85 AS col1, 52 AS col1
----
8245
52

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

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

query I rowsort
SELECT ALL - 79 * + 51 AS col1
----
-4029

onlyif mysql # aggregate syntax: 
query I rowsort label-177
SELECT ALL - NULLIF ( - 22, - - CASE 31 WHEN 19 THEN + 75 ELSE NULL END + + COUNT( * ) * + NULLIF ( - 17, 93 ) ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-177
SELECT ALL - NULLIF ( - 22, - - CASE 31 WHEN 19 THEN + 75 ELSE NULL END + + COUNT ( * ) * + NULLIF ( - 17, 93 ) ) AS col1
----
22

query I rowsort
SELECT ALL COALESCE ( + - 38, + 85 * 72 - - 96 ) + - - 8 AS col2
----
-30

query I rowsort
SELECT 20 + - 97
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-180
SELECT MIN( 5 ) * 3 + + + 39 + + + 12 + + - ( + 21 ) / ( 7 ) + - + CAST( NULL AS SIGNED ) * 1 + - 21 * - 10 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-180
SELECT MIN ( 5 ) * 3 + + + 39 + + + 12 + + - ( + 21 ) / ( 7 ) + - + CAST ( NULL AS INTEGER ) * 1 + - 21 * - 10 AS col2
----
NULL

query II rowsort
SELECT ALL - 43 + 67 AS col1, 79 AS col0
----
24
79

query II rowsort
SELECT 13 - 71 * 59 * - 97 AS col2, 40
----
406346
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-183
SELECT ALL - COALESCE ( - - 70, 52 ) DIV CASE - + ( 0 ) WHEN - 8 THEN - + 92 WHEN - 43 THEN NULL ELSE - - 78 * + 95 + + - 67 * SUM( ALL 52 ) END
----
0

skipif mysql # not compatible
query I rowsort label-183
SELECT ALL - COALESCE ( - - 70, 52 ) / CASE - + ( 0 ) WHEN - 8 THEN - + 92 WHEN - 43 THEN NULL ELSE - - 78 * + 95 + + - 67 * SUM ( ALL 52 ) END
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-184
SELECT 19 DIV + 98
----
0

skipif mysql # not compatible
query I rowsort label-184
SELECT 19 / + 98
----
0

query I rowsort
SELECT 54 + - ( - 48 )
----
102

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-186
SELECT - MIN( - 89 ) AS col0, - COUNT( * ) DIV - 60 AS col1
----
89
0

skipif mysql # not compatible
query II rowsort label-186
SELECT - MIN ( - 89 ) AS col0, - COUNT ( * ) / - 60 AS col1
----
89
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-187
SELECT ALL - 70 * + CAST( - 1 AS SIGNED ) AS col1
----
70

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-188
SELECT ALL - MAX( 92 ) DIV + 69
----
-1

skipif mysql # not compatible
query I rowsort label-188
SELECT ALL - MAX ( 92 ) / + 69
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-189
SELECT DISTINCT CASE 75 WHEN COUNT( * ) / + + 65 / - + 6 THEN NULL WHEN 47 THEN + 7 * + 82 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-189
SELECT DISTINCT CASE 75 WHEN COUNT ( * ) / + + 65 / - + 6 THEN NULL WHEN 47 THEN + 7 * + 82 END AS col2
----
NULL

query I rowsort
SELECT - + 88 - + 37
----
-125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-191
SELECT NULLIF ( + - 11, + ( + ( + CAST( + 77 AS SIGNED ) ) ) ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-191
SELECT NULLIF ( + - 11, + ( + ( + CAST ( + 77 AS INTEGER ) ) ) ) AS col2
----
-11

query I rowsort
SELECT + + 7 * 65
----
455

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

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

query II rowsort
SELECT - COALESCE ( + - 98, - 91 + 45 ), + 98 * - 13 AS col2
----
98
-1274

query I rowsort
SELECT DISTINCT + 0 - + - ( + ( ( + 86 ) ) ) * 58 AS col1
----
4988

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-196
SELECT DISTINCT - ( - - 88 ) AS col1, 38 * 18 DIV + COUNT( * )
----
-88
684

skipif mysql # not compatible
query II rowsort label-196
SELECT DISTINCT - ( - - 88 ) AS col1, 38 * 18 / + COUNT ( * )
----
-88
684

query I rowsort
SELECT DISTINCT - 19 * - - NULLIF ( 41, + 8 )
----
-779

onlyif mysql # aggregate syntax: 
query I rowsort label-198
SELECT ALL + + COUNT( - CASE 46 WHEN + - 32 * + 16 THEN NULL WHEN + + 95 THEN - + ( - - 23 ) END ) col2
----
0

skipif mysql # not compatible
query I rowsort label-198
SELECT ALL + + COUNT ( - CASE 46 WHEN + - 32 * + 16 THEN NULL WHEN + + 95 THEN - + ( - - 23 ) END ) col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-199
SELECT DISTINCT 11 * + 66 * + SUM( ALL - + 62 ) * - 61 - 99 + + 4 AS col1, 81 + MIN( + COALESCE ( - - 25, - + CAST( - 47 AS SIGNED ) * - NULLIF ( - 39, - 17 ) + - 74 - 9, 70 DIV 1 + 49 ) ) AS col2
----
2745637
106

skipif mysql # not compatible
query II rowsort label-199
SELECT DISTINCT 11 * + 66 * + SUM ( ALL - + 62 ) * - 61 - 99 + + 4 AS col1, 81 + MIN ( + COALESCE ( - - 25, - + CAST ( - 47 AS INTEGER ) * - NULLIF ( - 39, - 17 ) + - 74 - 9, 70 / 1 + 49 ) ) AS col2
----
2745637
106

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-200
SELECT ALL + ( - + ( - CASE - 61 WHEN + + 54 THEN + - 77 DIV 85 WHEN 82 - 49 + - - 55 * + 37 THEN NULL WHEN + + 47 * + + 36 + + COUNT( ALL - 46 ) THEN - 31 + 68 ELSE 68 END ) )
----
68

skipif mysql # not compatible
query I rowsort label-200
SELECT ALL + ( - + ( - CASE - 61 WHEN + + 54 THEN + - 77 / 85 WHEN 82 - 49 + - - 55 * + 37 THEN NULL WHEN + + 47 * + + 36 + + COUNT ( ALL - 46 ) THEN - 31 + 68 ELSE 68 END ) )
----
68

query II rowsort
SELECT + 42, + ( - 90 ) AS col1
----
42
-90

query I rowsort
SELECT ALL 69 * 79 AS col1
----
5451

onlyif mysql # aggregate syntax: 
query II rowsort label-203
SELECT + 84 * - 8 + + 0 + 61 * COUNT( * ), COUNT( * ) AS col2
----
-611
1

skipif mysql # not compatible
query II rowsort label-203
SELECT + 84 * - 8 + + 0 + 61 * COUNT ( * ), COUNT ( * ) AS col2
----
-611
1

query I rowsort
SELECT COALESCE ( + + 78, + + 14, - 73 )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-205
SELECT ALL + MAX( - + 35 ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-205
SELECT ALL + MAX ( - + 35 ) AS col0
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-206
SELECT - 3 - + - 35 + + + 56 - + + 92 + + - 97 DIV - 5
----
15

skipif mysql # not compatible
query I rowsort label-206
SELECT - 3 - + - 35 + + + 56 - + + 92 + + - 97 / - 5
----
15

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-207
SELECT ALL - 7 * + 42 + - + 64 DIV + + ( - 74 ) AS col2, CAST( NULL AS DECIMAL ) AS col0
----
-294
NULL

skipif mysql # not compatible
query II rowsort label-207
SELECT ALL - 7 * + 42 + - + 64 / + + ( - 74 ) AS col2, CAST ( NULL AS REAL ) AS col0
----
-294
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-208
SELECT ALL + 24 * + + 82 + + + 49 DIV + 9 + + 77 + ( + - 48 ) AS col2
----
2002

skipif mysql # not compatible
query I rowsort label-208
SELECT ALL + 24 * + + 82 + + + 49 / + 9 + + 77 + ( + - 48 ) AS col2
----
2002

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-209
SELECT - 79 + CASE + COUNT( * ) WHEN COALESCE ( + - 87, + - 92, + 41 ) * - 49 THEN - + 59 WHEN + 31 THEN + 62 ELSE 50 END + CAST( NULL AS SIGNED ), - MIN( - 37 ) + - 32 DIV - 51 col1
----
NULL
37

skipif mysql # not compatible
query II rowsort label-209
SELECT - 79 + CASE + COUNT ( * ) WHEN COALESCE ( + - 87, + - 92, + 41 ) * - 49 THEN - + 59 WHEN + 31 THEN + 62 ELSE 50 END + CAST ( NULL AS INTEGER ), - MIN ( - 37 ) + - 32 / - 51 col1
----
NULL
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-210
SELECT ALL + COUNT( - - ( - 37 ) ) * + 8 * 32 + + - COUNT( + ( - 64 ) ) + - 95 DIV - 99, + NULLIF ( - 26, + 36 ) AS col1
----
255
-26

skipif mysql # not compatible
query II rowsort label-210
SELECT ALL + COUNT ( - - ( - 37 ) ) * + 8 * 32 + + - COUNT ( + ( - 64 ) ) + - 95 / - 99, + NULLIF ( - 26, + 36 ) AS col1
----
255
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-211
SELECT DISTINCT + 2 DIV - ( - 82 ) * + 47
----
0

skipif mysql # not compatible
query I rowsort label-211
SELECT DISTINCT + 2 / - ( - 82 ) * + 47
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-212
SELECT + 84 * COUNT( * ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-212
SELECT + 84 * COUNT ( * ) AS col2
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-213
SELECT - 25 - 19 - + 62 * 62 + - 51 + - COUNT( * ) * + - 3 * - 84 - - - ( 89 ) + - CAST( NULL AS SIGNED ) + + ( 66 )
----
NULL

skipif mysql # not compatible
query I rowsort label-213
SELECT - 25 - 19 - + 62 * 62 + - 51 + - COUNT ( * ) * + - 3 * - 84 - - - ( 89 ) + - CAST ( NULL AS INTEGER ) + + ( 66 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-214
SELECT ALL - 64 * 29 + + + COUNT( * ) AS col0
----
-1855

skipif mysql # not compatible
query I rowsort label-214
SELECT ALL - 64 * 29 + + + COUNT ( * ) AS col0
----
-1855

query I rowsort
SELECT DISTINCT - 3 * + + 31
----
-93

query I rowsort
SELECT - 69 * - 21 AS col1
----
1449

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

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

query I rowsort
SELECT + 14 - + + 35 col0
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-219
SELECT ALL 38 col0, COUNT( * ) + - 12 AS col2
----
38
-11

skipif mysql # not compatible
query II rowsort label-219
SELECT ALL 38 col0, COUNT ( * ) + - 12 AS col2
----
38
-11

query I rowsort
SELECT - 58 + 60 AS col2
----
2

query II rowsort
SELECT - + 47, + 62 * 70 AS col1
----
-47
4340

onlyif mysql # aggregate syntax: 
query III rowsort label-222
SELECT - CASE + 96 WHEN - 76 * + 95 + - ( - + 99 ) + + COUNT( * ) + - 35 THEN - + 97 ELSE NULL END + + COUNT( * ) AS col0, - 2 * + - 80 * COUNT( * ), 46 AS col0
----
NULL
160
46

skipif mysql # not compatible
query III rowsort label-222
SELECT - CASE + 96 WHEN - 76 * + 95 + - ( - + 99 ) + + COUNT ( * ) + - 35 THEN - + 97 ELSE NULL END + + COUNT ( * ) AS col0, - 2 * + - 80 * COUNT ( * ), 46 AS col0
----
NULL
160
46

onlyif mysql # aggregate syntax: 
query I rowsort label-223
SELECT ALL 11 * + - 17 * - 17 + - COUNT( * ) + + MAX( - + 83 ) AS col1
----
3095

skipif mysql # not compatible
query I rowsort label-223
SELECT ALL 11 * + - 17 * - 17 + - COUNT ( * ) + + MAX ( - + 83 ) AS col1
----
3095

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-224
SELECT DISTINCT + 70 / + 19 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-224
SELECT DISTINCT + 70 / + 19 * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-225
SELECT DISTINCT + 65 * - - COUNT( * ) col1
----
65

skipif mysql # not compatible
query I rowsort label-225
SELECT DISTINCT + 65 * - - COUNT ( * ) col1
----
65

query I rowsort
SELECT DISTINCT - 90 * - + 87 AS col2
----
7830

query II rowsort
SELECT DISTINCT 28, - 57 AS col0
----
28
-57

query I rowsort
SELECT ALL + 21 * + 18 AS col0
----
378

onlyif mysql # aggregate syntax: 
query I rowsort label-229
SELECT - + CASE - 69 WHEN + - 35 / + - 9 THEN - + 81 WHEN - SUM( DISTINCT - 82 ) * - 85 / - - 82 + NULLIF ( + COUNT( * ), COUNT( DISTINCT - - 74 ) ) + + 11 / 96 THEN NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-229
SELECT - + CASE - 69 WHEN + - 35 / + - 9 THEN - + 81 WHEN - SUM ( DISTINCT - 82 ) * - 85 / - - 82 + NULLIF ( + COUNT ( * ), COUNT ( DISTINCT - - 74 ) ) + + 11 / 96 THEN NULL END col0
----
NULL

query I rowsort
SELECT DISTINCT 0 * 86 - + + NULLIF ( - 77, 95 / 79 * + 76 ) col0
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-231
SELECT ALL 30 DIV 79 + COUNT( * ) AS col2, + COALESCE ( + CAST( NULL AS SIGNED ), - 98 DIV - 80 + - 42 ) DIV 76 + + 29 * ( COALESCE ( - 2, - 7 ) ) * 20 + 85 DIV 41 AS col0
----
1
-1158

skipif mysql # not compatible
query II rowsort label-231
SELECT ALL 30 / 79 + COUNT ( * ) AS col2, + COALESCE ( + CAST ( NULL AS INTEGER ), - 98 / - 80 + - 42 ) / 76 + + 29 * ( COALESCE ( - 2, - 7 ) ) * 20 + 85 / 41 AS col0
----
1
-1158

onlyif mysql # DIV for integer division: 
query I rowsort label-232
SELECT ALL - ( + 33 ) DIV - + 4 + - - 54 + - 32 AS col2
----
30

skipif mysql # not compatible
query I rowsort label-232
SELECT ALL - ( + 33 ) / - + 4 + - - 54 + - 32 AS col2
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-233
SELECT CAST( + - 9 AS SIGNED ) AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-233
SELECT CAST ( + - 9 AS INTEGER ) AS col0
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-234
SELECT DISTINCT - ( + - 99 ) DIV 5 + 70 col2, - COUNT( * ) + - 11
----
89
-12

skipif mysql # not compatible
query II rowsort label-234
SELECT DISTINCT - ( + - 99 ) / 5 + 70 col2, - COUNT ( * ) + - 11
----
89
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-235
SELECT 25 DIV + + 70 + 38 - - COUNT( * ) * 91 * - COUNT( * ) col1
----
-53

skipif mysql # not compatible
query I rowsort label-235
SELECT 25 / + + 70 + 38 - - COUNT ( * ) * 91 * - COUNT ( * ) col1
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-236
SELECT ALL + ( ( 48 ) ) DIV - 86 + - 49 * 1 AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-236
SELECT ALL + ( ( 48 ) ) / - 86 + - 49 * 1 AS col2
----
-49

query I rowsort
SELECT + 67 * + + 55 * + 15 AS col1
----
55275

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-238
SELECT ALL CASE + 43 WHEN + 37 / + - ( + 89 ) THEN 39 WHEN - 71 THEN NULL WHEN + COUNT( * ) + CASE - 99 WHEN 51 THEN NULL ELSE + - 43 END THEN - 13 * - + 66 / + + NULLIF ( + CAST( COUNT( * ) AS SIGNED ), - 25 ) + 33 ELSE NULL END * - CAST( 73 + - 56 * + 47 AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-238
SELECT ALL CASE + 43 WHEN + 37 / + - ( + 89 ) THEN 39 WHEN - 71 THEN NULL WHEN + COUNT ( * ) + CASE - 99 WHEN 51 THEN NULL ELSE + - 43 END THEN - 13 * - + 66 / + + NULLIF ( + CAST ( COUNT ( * ) AS INTEGER ), - 25 ) + 33 ELSE NULL END * - CAST ( 73 + - 56 * + 47 AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-239
SELECT 16 * COUNT( ALL + 97 ) + 0 * 45
----
16

skipif mysql # not compatible
query I rowsort label-239
SELECT 16 * COUNT ( ALL + 97 ) + 0 * 45
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-240
SELECT + 22 * - 17 * - - 50 * - + COALESCE ( + - 2, + - COALESCE ( - - 49, - + 19 DIV + + 54 DIV + 99 + - 6 ) + - CAST( + NULLIF ( + 58, 54 ) AS SIGNED ) + 36 + - COUNT( * ) * 59, + ( - 47 ) + 14 * + 13 ) + COUNT( * ) AS col0
----
-37399

skipif mysql # not compatible
query I rowsort label-240
SELECT + 22 * - 17 * - - 50 * - + COALESCE ( + - 2, + - COALESCE ( - - 49, - + 19 / + + 54 / + 99 + - 6 ) + - CAST ( + NULLIF ( + 58, 54 ) AS INTEGER ) + 36 + - COUNT ( * ) * 59, + ( - 47 ) + 14 * + 13 ) + COUNT ( * ) AS col0
----
-37399

onlyif mysql # aggregate syntax: 
query I rowsort label-241
SELECT ( SUM( - 88 ) )
----
-88

skipif mysql # not compatible
query I rowsort label-241
SELECT ( SUM ( - 88 ) )
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-242
SELECT ALL NULLIF ( NULLIF ( + COUNT( * ), + 48 ), - - 41 / COUNT( + + 96 ) + + - MIN( + 29 ) + + - 11 * COUNT( * ) ) * 33 + COUNT( - 3 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-242
SELECT ALL NULLIF ( NULLIF ( + COUNT ( * ), + 48 ), - - 41 / COUNT ( + + 96 ) + + - MIN ( + 29 ) + + - 11 * COUNT ( * ) ) * 33 + COUNT ( - 3 ) AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-243
SELECT ( - - SUM ( - ( + 83 ) ) )
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-244
SELECT ALL + 53 DIV - - 37 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-244
SELECT ALL + 53 / - - 37 AS col0
----
1

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

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

query I rowsort
SELECT ( - ( - - 95 ) )
----
-95

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-247
SELECT - 89 * + CASE CAST( 9 AS DECIMAL ) WHEN - 77 THEN NULL WHEN 97 + + - COUNT( * ) THEN NULL ELSE + 1 + - COUNT( * ) + 0 END
----
0

skipif mysql # not compatible
query I rowsort label-247
SELECT - 89 * + CASE CAST ( 9 AS REAL ) WHEN - 77 THEN NULL WHEN 97 + + - COUNT ( * ) THEN NULL ELSE + 1 + - COUNT ( * ) + 0 END
----
0

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

skipif mysql # not compatible
query II rowsort label-248
SELECT 34 AS col2, COUNT ( * ) AS col1
----
34
1

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

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

query II rowsort
SELECT - 5 AS col1, 4 + - - 34
----
-5
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-251
SELECT ALL SUM( - + CASE WHEN NOT + CAST( NULL AS SIGNED ) IS NULL THEN 92 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-251
SELECT ALL SUM ( - + CASE WHEN NOT + CAST ( NULL AS INTEGER ) IS NULL THEN 92 END )
----
NULL

query I rowsort
SELECT 64 * - 13 + + 11 col1
----
-821

query II rowsort
SELECT - 39 AS col1, 74
----
-39
74

onlyif mysql # aggregate syntax: 
query I rowsort label-254
SELECT ALL + - 53 * 59 + + 77 + 43 - - + COUNT( * )
----
-3006

skipif mysql # not compatible
query I rowsort label-254
SELECT ALL + - 53 * 59 + + 77 + 43 - - + COUNT ( * )
----
-3006

query I rowsort
SELECT ALL + ( + + 53 ) AS col1
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-256
SELECT + CASE - 73 WHEN - - 0 + - + 79 THEN NULL ELSE + 10 DIV + - 42 END AS col0, - COUNT( * ) + - + MAX( + 93 ) AS col1
----
0
-94

skipif mysql # not compatible
query II rowsort label-256
SELECT + CASE - 73 WHEN - - 0 + - + 79 THEN NULL ELSE + 10 / + - 42 END AS col0, - COUNT ( * ) + - + MAX ( + 93 ) AS col1
----
0
-94

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-257
SELECT ALL - 84 AS col0, CASE - 33 WHEN + + 31 THEN - CAST( 9 AS DECIMAL ) END AS col0
----
-84
NULL

skipif mysql # not compatible
query II rowsort label-257
SELECT ALL - 84 AS col0, CASE - 33 WHEN + + 31 THEN - CAST ( 9 AS REAL ) END AS col0
----
-84
NULL

query I rowsort
SELECT ALL + 92 * - 1 + - 20 + - - 84 AS col1
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-259
SELECT - COUNT( * ) * + NULLIF ( 34, - 97 ) + + ( + - 83 ) + ( + + 12 ) AS col2
----
-105

skipif mysql # not compatible
query I rowsort label-259
SELECT - COUNT ( * ) * + NULLIF ( 34, - 97 ) + + ( + - 83 ) + ( + + 12 ) AS col2
----
-105

query I rowsort
SELECT 74 - - - 87
----
-13

query II rowsort
SELECT + 12, + 51 + + - 22 * + 4 AS col1
----
12
-37

query II rowsort
SELECT - - 64, 55 AS col1
----
64
55

query I rowsort
SELECT ALL + + 78 + 56 AS col1
----
134

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-264
SELECT - + CAST( - - 23 AS SIGNED ) col2, 36 * + ( - 15 ) AS col1
----
-23
-540

skipif mysql # not compatible
query II rowsort label-264
SELECT - + CAST ( - - 23 AS INTEGER ) col2, 36 * + ( - 15 ) AS col1
----
-23
-540

query I rowsort
SELECT DISTINCT + ( - 23 ) * 65
----
-1495

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-266
SELECT ALL + 20 / 21 * CASE + CAST( NULL AS SIGNED ) WHEN + 6 THEN NULL WHEN + COUNT( * ) * 68 - 44 + - 23 + + 31 / + + COUNT( DISTINCT - 2 ) THEN NULL WHEN + - 10 THEN + 53 END * ( - 84 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-266
SELECT ALL + 20 / 21 * CASE + CAST ( NULL AS INTEGER ) WHEN + 6 THEN NULL WHEN + COUNT ( * ) * 68 - 44 + - 23 + + 31 / + + COUNT ( DISTINCT - 2 ) THEN NULL WHEN + - 10 THEN + 53 END * ( - 84 ) col2
----
NULL

query I rowsort
SELECT DISTINCT - 2 * + 88
----
-176

query I rowsort
SELECT 97 + 25 * - CASE + 10 WHEN 42 THEN NULL ELSE + + 73 END
----
-1728

onlyif mysql # DIV for integer division: 
query II rowsort label-269
SELECT 32 DIV - 19 AS col2, + 54 * ( + - 90 )
----
-1
-4860

skipif mysql # not compatible
query II rowsort label-269
SELECT 32 / - 19 AS col2, + 54 * ( + - 90 )
----
-1
-4860

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-271
SELECT 13 + - CAST( 34 AS SIGNED ) * + + 17 AS col2
----
-565

skipif mysql # not compatible
query I rowsort label-271
SELECT 13 + - CAST ( 34 AS INTEGER ) * + + 17 AS col2
----
-565

query I rowsort
SELECT 30 * 38 + + 56
----
1196

query I rowsort
SELECT ALL + 30 * + 94 AS col1
----
2820

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-275
SELECT DISTINCT + COUNT( * ) - 88 col2, + 8
----
-87
8

skipif mysql # not compatible
query II rowsort label-275
SELECT DISTINCT + COUNT ( * ) - 88 col2, + 8
----
-87
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-276
SELECT ALL CAST( - - 53 AS SIGNED ) * 43 * - 47
----
-107113

skipif mysql # not compatible
query I rowsort label-276
SELECT ALL CAST ( - - 53 AS INTEGER ) * 43 * - 47
----
-107113

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-277
SELECT COALESCE ( + + 90, 80 * COALESCE ( + 27, - + COUNT( * ) ) DIV - 42 * + + 68 ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-277
SELECT COALESCE ( + + 90, 80 * COALESCE ( + 27, - + COUNT ( * ) ) / - 42 * + + 68 ) AS col1
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-278
SELECT - 87 DIV + 85 AS col2, 17 * + COUNT( - 28 ) + - + ( - 97 ) AS col1
----
-1
114

skipif mysql # not compatible
query II rowsort label-278
SELECT - 87 / + 85 AS col2, 17 * + COUNT ( - 28 ) + - + ( - 97 ) AS col1
----
-1
114

query I rowsort
SELECT DISTINCT + 14 * + 67 - - 89
----
1027

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

query II rowsort
SELECT DISTINCT - 87 * - - 62 col2, 2 * - 50 col2
----
-5394
-100

onlyif mysql # DIV for integer division: 
query I rowsort label-282
SELECT + 53 DIV - CASE - 51 WHEN 3 THEN NULL WHEN - ( 32 ) THEN NULL ELSE + + 74 * 79 DIV 98 END AS col2
----
0

skipif mysql # not compatible
query I rowsort label-282
SELECT + 53 / - CASE - 51 WHEN 3 THEN NULL WHEN - ( 32 ) THEN NULL ELSE + + 74 * 79 / 98 END AS col2
----
0

query I rowsort
SELECT DISTINCT - + 80 + 22
----
-58

query I rowsort
SELECT + 29 + + 23 col2
----
52

query I rowsort
SELECT ALL 73 + 13 - + 9 AS col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-286
SELECT MIN( - + 99 ) + 58
----
-41

skipif mysql # not compatible
query I rowsort label-286
SELECT MIN ( - + 99 ) + 58
----
-41

query I rowsort
SELECT + 12 - + 90
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-288
SELECT DISTINCT + CAST( + ( - 10 ) AS SIGNED ), ( COUNT( * ) ) + + 13 * 34 + 41 AS col0
----
-10
484

skipif mysql # not compatible
query II rowsort label-288
SELECT DISTINCT + CAST ( + ( - 10 ) AS INTEGER ), ( COUNT ( * ) ) + + 13 * 34 + 41 AS col0
----
-10
484

query III rowsort
SELECT + 56 + + 88 col2, + 60, 5 AS col1
----
144
60
5

query I rowsort
SELECT ALL + - 75 * - 35 * + 34 - 38 * 46 col1
----
87502

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-291
SELECT DISTINCT + 47 * CAST( + 9 AS SIGNED ) * + COALESCE ( CASE - - 76 WHEN + 31 THEN 16 + - ( 70 ) ELSE 44 END, 82 + + 18 * + - 40 + - 82 + ( + 27 ) ) + 43 AS col1
----
18655

skipif mysql # not compatible
query I rowsort label-291
SELECT DISTINCT + 47 * CAST ( + 9 AS INTEGER ) * + COALESCE ( CASE - - 76 WHEN + 31 THEN 16 + - ( 70 ) ELSE 44 END, 82 + + 18 * + - 40 + - 82 + ( + 27 ) ) + 43 AS col1
----
18655

query I rowsort
SELECT 13 + + 68
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-293
SELECT CAST( 8 AS SIGNED ) * + - COUNT( * ) + + 49
----
41

skipif mysql # not compatible
query I rowsort label-293
SELECT CAST ( 8 AS INTEGER ) * + - COUNT ( * ) + + 49
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-294
SELECT ALL - MIN( DISTINCT 30 ) - - 37 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-294
SELECT ALL - MIN ( DISTINCT 30 ) - - 37 AS col2
----
7

query II rowsort
SELECT 31 AS col2, - 12
----
31
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-296
SELECT 42 + + COUNT( * ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-296
SELECT 42 + + COUNT ( * ) AS col2
----
43

query II rowsort
SELECT ALL - 77, 82 AS col2
----
-77
82

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

skipif mysql # not compatible
query I rowsort label-298
SELECT 13 * - COUNT ( * )
----
-13

query I rowsort
SELECT 25 * - - 83 + - 1 AS col0
----
2074

query I rowsort
SELECT COALESCE ( 35, 69, - 21 + - 54 * 85 ) AS col1
----
35

query I rowsort
SELECT ALL - CASE - + 79 WHEN + 44 THEN - + 39 WHEN 95 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-302
SELECT DISTINCT + 54 * ( COUNT( 54 ) ) - - 7 col2
----
61

skipif mysql # not compatible
query I rowsort label-302
SELECT DISTINCT + 54 * ( COUNT ( 54 ) ) - - 7 col2
----
61

query I rowsort
SELECT ALL - 53 * + 11 * + 84 * 77 AS col1
----
-3770844

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

query II rowsort
SELECT + 70, + 42 AS col1
----
70
42

onlyif mysql # aggregate syntax: 
query I rowsort label-306
SELECT ALL + CASE - 77 WHEN 39 THEN NULL WHEN + - 7 + + 19 + - - COUNT( * ) / - - 95 / + 28 THEN NULL ELSE - + 55 END
----
-55

skipif mysql # not compatible
query I rowsort label-306
SELECT ALL + CASE - 77 WHEN 39 THEN NULL WHEN + - 7 + + 19 + - - COUNT ( * ) / - - 95 / + 28 THEN NULL ELSE - + 55 END
----
-55

query I rowsort
SELECT - 84 * + + 5 AS col1
----
-420

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

skipif mysql # not compatible
query I rowsort label-308
SELECT ALL + 99 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - - 55 * + - 2 AS col2
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-310
SELECT + 80 + + COUNT( * ) * + 77
----
157

skipif mysql # not compatible
query I rowsort label-310
SELECT + 80 + + COUNT ( * ) * + 77
----
157

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-313
SELECT + 47 + + - 81 DIV - 26 + + + 99
----
149

skipif mysql # not compatible
query I rowsort label-313
SELECT + 47 + + - 81 / - 26 + + + 99
----
149

query II rowsort
SELECT + - 47 AS col0, - ( 29 )
----
-47
-29

query II rowsort
SELECT DISTINCT + - 49 + - + ( + + 21 ), + 84 * - 34 AS col0
----
-70
-2856

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-316
SELECT ALL + COUNT( * ) + - - 52 DIV + CAST( - 88 AS SIGNED ) * + 11 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-316
SELECT ALL + COUNT ( * ) + - - 52 / + CAST ( - 88 AS INTEGER ) * + 11 AS col2
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-317
SELECT + CASE ( 55 ) WHEN ( + - 43 ) THEN + - 46 END AS col0, 62 - 42 DIV + - 6
----
NULL
69

skipif mysql # not compatible
query II rowsort label-317
SELECT + CASE ( 55 ) WHEN ( + - 43 ) THEN + - 46 END AS col0, 62 - 42 / + - 6
----
NULL
69

query I rowsort
SELECT - - 53 * + 82
----
4346

onlyif mysql # aggregate syntax: 
query I rowsort label-319
SELECT DISTINCT 66 * + COUNT( * ) * 60
----
3960

skipif mysql # not compatible
query I rowsort label-319
SELECT DISTINCT 66 * + COUNT ( * ) * 60
----
3960

onlyif mysql # aggregate syntax: 
query I rowsort label-320
SELECT + COUNT( * ) + + COALESCE ( - + 16, + 93 * - 99 * + 61 - - 81 * - - 47 )
----
-15

skipif mysql # not compatible
query I rowsort label-320
SELECT + COUNT ( * ) + + COALESCE ( - + 16, + 93 * - 99 * + 61 - - 81 * - - 47 )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-321
SELECT ALL 93 + - 94 + + + COUNT( DISTINCT + 46 ) * + + 19
----
18

skipif mysql # not compatible
query I rowsort label-321
SELECT ALL 93 + - 94 + + + COUNT ( DISTINCT + 46 ) * + + 19
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-322
SELECT DISTINCT 32 * + - 51 * + 55 DIV + COUNT( * ) + - 95 + - - 38
----
-89817

skipif mysql # not compatible
query I rowsort label-322
SELECT DISTINCT 32 * + - 51 * + 55 / + COUNT ( * ) + - 95 + - - 38
----
-89817

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-323
SELECT ALL CAST( NULL AS SIGNED ) + - 15 / - ( - 95 ) * + 17 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-323
SELECT ALL CAST ( NULL AS INTEGER ) + - 15 / - ( - 95 ) * + 17 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-324
SELECT DISTINCT - 59 + + COUNT( * ) * 80 col0
----
21

skipif mysql # not compatible
query I rowsort label-324
SELECT DISTINCT - 59 + + COUNT ( * ) * 80 col0
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-325
SELECT DISTINCT CAST( 68 AS SIGNED ) - + 44 AS col2
----
24

skipif mysql # not compatible
query I rowsort label-325
SELECT DISTINCT CAST ( 68 AS INTEGER ) - + 44 AS col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-326
SELECT ALL MIN( - + 41 ) * + + 36
----
-1476

skipif mysql # not compatible
query I rowsort label-326
SELECT ALL MIN ( - + 41 ) * + + 36
----
-1476

query I rowsort
SELECT - ( - ( 54 ) )
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-328
SELECT ALL CASE CAST( 42 AS SIGNED ) WHEN + - 57 - 4 + - + 32 * - - 73 + 21 THEN NULL WHEN - - ( 73 ) THEN 40 * + + 8 ELSE + 18 * 45 END AS col1
----
810

skipif mysql # not compatible
query I rowsort label-328
SELECT ALL CASE CAST ( 42 AS INTEGER ) WHEN + - 57 - 4 + - + 32 * - - 73 + 21 THEN NULL WHEN - - ( 73 ) THEN 40 * + + 8 ELSE + 18 * 45 END AS col1
----
810

query I rowsort
SELECT ALL - 67 * + 90
----
-6030

query I rowsort
SELECT - 91 - - 44
----
-47

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-332
SELECT DISTINCT + COUNT( - 35 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-332
SELECT DISTINCT + COUNT ( - 35 ) AS col2
----
1

query I rowsort
SELECT + 55 + - + 46 + 2
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-334
SELECT - 60 * + 15 AS col1, 71 + 21 - + 74 * + COUNT( * ) AS col0
----
-900
18

skipif mysql # not compatible
query II rowsort label-334
SELECT - 60 * + 15 AS col1, 71 + 21 - + 74 * + COUNT ( * ) AS col0
----
-900
18

query I rowsort
SELECT - 84 * + 3 + + - 15 * + 53 AS col0
----
-1047

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

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

query I rowsort
SELECT 4 * + + 56 + 84 AS col0
----
308

query II rowsort
SELECT DISTINCT + + ( 56 ) AS col2, 59
----
56
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-339
SELECT ALL - 48 * + - COUNT( * ) + 29 * - + 5 AS col1, - ( - 25 ) + CAST( - COUNT( * ) AS SIGNED ) AS col1
----
-97
24

skipif mysql # not compatible
query II rowsort label-339
SELECT ALL - 48 * + - COUNT ( * ) + 29 * - + 5 AS col1, - ( - 25 ) + CAST ( - COUNT ( * ) AS INTEGER ) AS col1
----
-97
24

onlyif mysql # aggregate syntax: 
query I rowsort label-340
SELECT DISTINCT - 46 * 25 + COUNT( * ) * - - 13 + - 37 - - - 42
----
-1216

skipif mysql # not compatible
query I rowsort label-340
SELECT DISTINCT - 46 * 25 + COUNT ( * ) * - - 13 + - 37 - - - 42
----
-1216

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

query I rowsort
SELECT - - 99 * - - 21 AS col2
----
2079

onlyif mysql # aggregate syntax: 
query II rowsort label-343
SELECT + MAX( DISTINCT - 81 ), 0 AS col0
----
-81
0

skipif mysql # not compatible
query II rowsort label-343
SELECT + MAX ( DISTINCT - 81 ), 0 AS col0
----
-81
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-344
SELECT DISTINCT COUNT( * ) * + 47 * - 24 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-344
SELECT DISTINCT COUNT ( * ) * + 47 * - 24 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-345
SELECT DISTINCT + + 60 * 52 + + 65 DIV - 52 + + - CASE 55 WHEN - - 13 + - 27 THEN - 12 DIV - - COUNT( DISTINCT ( - - 98 ) ) WHEN + + ( - NULLIF ( + - COUNT( * ), - + 53 ) ) THEN NULL ELSE + 81 END
----
3038

skipif mysql # not compatible
query I rowsort label-345
SELECT DISTINCT + + 60 * 52 + + 65 / - 52 + + - CASE 55 WHEN - - 13 + - 27 THEN - 12 / - - COUNT ( DISTINCT ( - - 98 ) ) WHEN + + ( - NULLIF ( + - COUNT ( * ), - + 53 ) ) THEN NULL ELSE + 81 END
----
3038

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-346
SELECT DISTINCT - CAST( - + 15 AS SIGNED ) AS col0, + 80
----
15
80

skipif mysql # not compatible
query II rowsort label-346
SELECT DISTINCT - CAST ( - + 15 AS INTEGER ) AS col0, + 80
----
15
80

onlyif mysql # aggregate syntax: 
query I rowsort label-347
SELECT ALL - - MIN( - 56 ) * - 56 * - 37 * + - COUNT( * ) * + + 76 + - 60 + + SUM( 70 ) + 18 + 36 AS col0
----
8818496

skipif mysql # not compatible
query I rowsort label-347
SELECT ALL - - MIN ( - 56 ) * - 56 * - 37 * + - COUNT ( * ) * + + 76 + - 60 + + SUM ( 70 ) + 18 + 36 AS col0
----
8818496

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-348
SELECT + 75 * + 79 - - MIN( ALL + - 64 ) + - ( + 27 ) - 3 DIV + MIN( DISTINCT 94 ) - - 51
----
5885

skipif mysql # not compatible
query I rowsort label-348
SELECT + 75 * + 79 - - MIN ( ALL + - 64 ) + - ( + 27 ) - 3 / + MIN ( DISTINCT 94 ) - - 51
----
5885

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-349
SELECT CAST( + + NULLIF ( + 69, 60 + - + 63 ) AS SIGNED ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-349
SELECT CAST ( + + NULLIF ( + 69, 60 + - + 63 ) AS INTEGER ) AS col0
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-350
SELECT ALL + COALESCE ( - - 49, 34 * SUM( - 35 ) ) * - COUNT( * ) - + - 66, + COUNT( * ) AS col2
----
17
1

skipif mysql # not compatible
query II rowsort label-350
SELECT ALL + COALESCE ( - - 49, 34 * SUM ( - 35 ) ) * - COUNT ( * ) - + - 66, + COUNT ( * ) AS col2
----
17
1

query II rowsort
SELECT - 13 + + 19 * 12 * - 45, + 50 * + 79 AS col2
----
-10273
3950

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

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

query I rowsort
SELECT + 74 * + NULLIF ( - 65, + 34 * 42 * - - CASE 97 WHEN - 45 * + 82 / + 94 THEN + 90 * - 67 END * 11 / - 82 )
----
-4810

query I rowsort
SELECT + 9 * 90
----
810

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

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

query I rowsort
SELECT + 21 + + + 59
----
80

query I rowsort
SELECT ALL - 98 * + 80
----
-7840

query I rowsort
SELECT 38 + + - 56 + - 97 * + 11 AS col2
----
-1085

onlyif mysql # aggregate syntax: 
query II rowsort label-359
SELECT ALL 4 AS col2, + ( SUM( DISTINCT + 32 ) )
----
4
32

skipif mysql # not compatible
query II rowsort label-359
SELECT ALL 4 AS col2, + ( SUM ( DISTINCT + 32 ) )
----
4
32

query II rowsort
SELECT ALL 12 col2, 1 AS col0
----
12
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-361
SELECT COUNT( * ) DIV 94 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-361
SELECT COUNT ( * ) / 94 AS col1
----
0

query I rowsort
SELECT ( - + 36 ) + - + 8 * + - 99 col0
----
756

query II rowsort
SELECT - 68, 62 + + + 74 * - 32 AS col0
----
-68
-2306

onlyif mysql # DIV for integer division: 
query I rowsort label-364
SELECT ALL 67 DIV ( - 49 ) * + 99 * + - 18 AS col0
----
1782

skipif mysql # not compatible
query I rowsort label-364
SELECT ALL 67 / ( - 49 ) * + 99 * + - 18 AS col0
----
1782

onlyif mysql # aggregate syntax: 
query I rowsort label-365
SELECT MAX( + 42 ) * + 92 + - 55
----
3809

skipif mysql # not compatible
query I rowsort label-365
SELECT MAX ( + 42 ) * + 92 + - 55
----
3809

query I rowsort
SELECT 54 * - 86
----
-4644

query I rowsort
SELECT ( + 11 ) * 1
----
11

query I rowsort
SELECT 66 * - + 37 AS col1
----
-2442

onlyif mysql # aggregate syntax: 
query I rowsort label-369
SELECT ALL - COUNT( * ) + - + 14 AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-369
SELECT ALL - COUNT ( * ) + - + 14 AS col0
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-370
SELECT + - CASE - - 3 WHEN - ( - COUNT( * ) ) * - + 17 + + 47 THEN CASE CASE + 90 WHEN + COALESCE ( ( 53 ), + 72, 53 ) THEN - COUNT( * ) + + + 6 + + 31 * + - 21 + - MIN( 33 ) * - 38 ELSE - 8 + 22 END WHEN CASE + CAST( NULL AS SIGNED ) WHEN 63 + 62 THEN + 20 WHEN COUNT( * ) THEN - NULLIF ( CAST( NULL AS SIGNED ), 58 + 50 ) + CAST( NULL AS SIGNED ) * + 16 ELSE + COUNT( * ) END * - 29 THEN 59 - 66 END * + 85 WHEN 64 THEN + MAX( ALL - 17 ) * 21 END
----
NULL

skipif mysql # not compatible
query I rowsort label-370
SELECT + - CASE - - 3 WHEN - ( - COUNT ( * ) ) * - + 17 + + 47 THEN CASE CASE + 90 WHEN + COALESCE ( ( 53 ), + 72, 53 ) THEN - COUNT ( * ) + + + 6 + + 31 * + - 21 + - MIN ( 33 ) * - 38 ELSE - 8 + 22 END WHEN CASE + CAST ( NULL AS INTEGER ) WHEN 63 + 62 THEN + 20 WHEN COUNT ( * ) THEN - NULLIF ( CAST ( NULL AS INTEGER ), 58 + 50 ) + CAST ( NULL AS INTEGER ) * + 16 ELSE + COUNT ( * ) END * - 29 THEN 59 - 66 END * + 85 WHEN 64 THEN + MAX ( ALL - 17 ) * 21 END
----
NULL

query I rowsort
SELECT ALL - COALESCE ( - 95, + + 95 ) + + 23 col1
----
118

query I rowsort
SELECT + 33 * 39 * + 4
----
5148

onlyif mysql # aggregate syntax: 
query I rowsort label-373
SELECT ALL - 8 + - + COUNT( * ) col0
----
-9

skipif mysql # not compatible
query I rowsort label-373
SELECT ALL - 8 + - + COUNT ( * ) col0
----
-9

onlyif mysql # DIV for integer division: 
query II rowsort label-374
SELECT + 3 AS col1, 54 * 47 DIV + 24
----
3
105

skipif mysql # not compatible
query II rowsort label-374
SELECT + 3 AS col1, 54 * 47 / + 24
----
3
105

onlyif mysql # DIV for integer division: 
query I rowsort label-375
SELECT + 60 DIV + - 16 - + 4 - - ( + 3 ) + + 6 + + 36 * + 46 AS col2
----
1658

skipif mysql # not compatible
query I rowsort label-375
SELECT + 60 / + - 16 - + 4 - - ( + 3 ) + + 6 + + 36 * + 46 AS col2
----
1658

query II rowsort
SELECT DISTINCT - 13, - 58 AS col2
----
-13
-58

query I rowsort
SELECT DISTINCT + 25 - 63 AS col2
----
-38

query I rowsort
SELECT ALL + + ( - 49 ) - - + 16
----
-33

query I rowsort
SELECT NULLIF ( NULLIF ( - - 33, + 52 * 52 ), + 60 * 78 ) * 16 * + 15 AS col0
----
7920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-380
SELECT ALL - CAST( + 26 AS SIGNED ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-380
SELECT ALL - CAST ( + 26 AS INTEGER ) AS col0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-381
SELECT COUNT( * ) * + + COUNT( * ) - - 82 + - + 58 + 53 - - 93 + + MIN( - ( 14 ) ) * 45 * + 6 * 32 + + 99 * - 89 * - 20
----
55431

skipif mysql # not compatible
query I rowsort label-381
SELECT COUNT ( * ) * + + COUNT ( * ) - - 82 + - + 58 + 53 - - 93 + + MIN ( - ( 14 ) ) * 45 * + 6 * 32 + + 99 * - 89 * - 20
----
55431

query I rowsort
SELECT - NULLIF ( - + 60, 28 + - 73 ) * - 23 + 27 * + 44 AS col1
----
-192

query I rowsort
SELECT 56 * - 12 AS col2
----
-672

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-384
SELECT ALL - - 64 * + NULLIF ( 91, + - ( CAST( - - 28 AS SIGNED ) ) )
----
5824

skipif mysql # not compatible
query I rowsort label-384
SELECT ALL - - 64 * + NULLIF ( 91, + - ( CAST ( - - 28 AS INTEGER ) ) )
----
5824

query I rowsort
SELECT 48 + - 85 AS col0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-386
SELECT CASE + 15 WHEN 91 THEN 58 / - 71 END / 10 + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-386
SELECT CASE + 15 WHEN 91 THEN 58 / - 71 END / 10 + COUNT ( * ) AS col1
----
NULL

query II rowsort
SELECT ALL 88 AS col1, 57 AS col1
----
88
57

onlyif mysql # aggregate syntax: 
query I rowsort label-388
SELECT 22 * COUNT( ALL 98 ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-388
SELECT 22 * COUNT ( ALL 98 ) AS col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-389
SELECT DISTINCT - NULLIF ( - - 95, + + 66 ) * + 35 + + NULLIF ( 10, + COUNT( * ) )
----
-3315

skipif mysql # not compatible
query I rowsort label-389
SELECT DISTINCT - NULLIF ( - - 95, + + 66 ) * + 35 + + NULLIF ( 10, + COUNT ( * ) )
----
-3315

query II rowsort
SELECT 36 AS col2, 51 * 88 * COALESCE ( + - 45, - 70 ) AS col2
----
36
-201960

query II rowsort
SELECT ALL 99 AS col2, 25 AS col2
----
99
25

query II rowsort
SELECT DISTINCT 50 AS col1, 12 col0
----
50
12

query II rowsort
SELECT DISTINCT 8 AS col2, NULLIF ( - 71, - 49 )
----
8
-71

query II rowsort
SELECT - 10 AS col0, + 79 * - ( + - 82 ) * - 90 - - - 27
----
-10
-583047

query I rowsort
SELECT 38 - 56 * NULLIF ( - + 36, + 89 )
----
2054

onlyif mysql # aggregate syntax: 
query II rowsort label-396
SELECT DISTINCT COUNT( * ), - MIN( ALL - 88 ) AS col1
----
1
88

skipif mysql # not compatible
query II rowsort label-396
SELECT DISTINCT COUNT ( * ), - MIN ( ALL - 88 ) AS col1
----
1
88

query I rowsort
SELECT 47 - 9 + - - 58
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-398
SELECT 71 AS col2, 38 * + + 71 + + CAST( + - 75 AS SIGNED ) col0
----
71
2623

skipif mysql # not compatible
query II rowsort label-398
SELECT 71 AS col2, 38 * + + 71 + + CAST ( + - 75 AS INTEGER ) col0
----
71
2623

onlyif mysql # aggregate syntax: 
query I rowsort label-399
SELECT ALL 2 + + + 54 - - + 5 * + ( 43 ) + - CASE - COUNT( * ) WHEN 48 THEN COUNT( * ) ELSE COUNT( * ) - + 4 * + + 41 END + COUNT( * ) AS col2
----
435

skipif mysql # not compatible
query I rowsort label-399
SELECT ALL 2 + + + 54 - - + 5 * + ( 43 ) + - CASE - COUNT ( * ) WHEN 48 THEN COUNT ( * ) ELSE COUNT ( * ) - + 4 * + + 41 END + COUNT ( * ) AS col2
----
435

onlyif mysql # aggregate syntax: 
query I rowsort label-400
SELECT DISTINCT 60 + + COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-400
SELECT DISTINCT 60 + + COUNT ( * )
----
61

query I rowsort
SELECT ALL 19 + + 60 + + ( - 98 ) + + 13 + + 95 * - 86 * + 20 AS col1
----
-163406

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

skipif mysql # not compatible
query I rowsort label-402
SELECT COUNT ( DISTINCT 82 ) / + 30 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-403
SELECT 57 AS col2, COUNT( * ) - - 5 * - - 62 * + COALESCE ( - 66, + + 75 + 63, + 87 * - COUNT( * ) DIV COUNT( - - CAST( + 11 AS DECIMAL ) ) * - CAST( NULL AS SIGNED ) DIV 66 + + 66 )
----
57
-20459

skipif mysql # not compatible
query II rowsort label-403
SELECT 57 AS col2, COUNT ( * ) - - 5 * - - 62 * + COALESCE ( - 66, + + 75 + 63, + 87 * - COUNT ( * ) / COUNT ( - - CAST ( + 11 AS REAL ) ) * - CAST ( NULL AS INTEGER ) / 66 + + 66 )
----
57
-20459

query I rowsort
SELECT ALL - 77 + + - ( + + ( 1 ) ) col1
----
-78

query I rowsort
SELECT DISTINCT 38 * + 93 * + + 77 + + 98 * - + 93 col1
----
263004

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-406
SELECT + COUNT( + CAST( + ( - 68 ) AS SIGNED ) ) AS col1, - COUNT( * ) AS col2
----
1
-1

skipif mysql # not compatible
query II rowsort label-406
SELECT + COUNT ( + CAST ( + ( - 68 ) AS INTEGER ) ) AS col1, - COUNT ( * ) AS col2
----
1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-407
SELECT 99 DIV 81
----
1

skipif mysql # not compatible
query I rowsort label-407
SELECT 99 / 81
----
1

query I rowsort
SELECT - 57 * 88 + - 43 AS col2
----
-5059

onlyif mysql # aggregate syntax: 
query I rowsort label-409
SELECT + SUM( + ( - 36 ) ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-409
SELECT + SUM ( + ( - 36 ) ) AS col0
----
-36

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

query I rowsort
SELECT 22 - - + 54 * - 20
----
-1058

onlyif mysql # aggregate syntax: 
query II rowsort label-412
SELECT - 42, 14 + MIN( 47 ) AS col1
----
-42
61

skipif mysql # not compatible
query II rowsort label-412
SELECT - 42, 14 + MIN ( 47 ) AS col1
----
-42
61

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-415
SELECT DISTINCT SUM( DISTINCT + 84 ) * - 23
----
-1932

skipif mysql # not compatible
query I rowsort label-415
SELECT DISTINCT SUM ( DISTINCT + 84 ) * - 23
----
-1932

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-416
SELECT DISTINCT + 3 * - ( + CASE - - 25 WHEN + 34 * 96 * + COUNT( * ) + + 52 THEN + NULLIF ( 70, + CASE + - 43 WHEN + 15 THEN NULL WHEN - 53 * + 5 THEN - 36 END / - CASE 71 WHEN 15 - + 96 THEN - 71 WHEN 67 + ( - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) - 33 ) THEN NULL ELSE NULL END + 55 * - 8 ) WHEN CASE ( NULLIF ( + COUNT( * ), ( 47 ) ) ) WHEN 10 * 38 THEN 54 ELSE NULL END THEN + 50 * - ( + 73 ) END ) + - SUM( 81 ) * - 96
----
NULL

skipif mysql # not compatible
query I rowsort label-416
SELECT DISTINCT + 3 * - ( + CASE - - 25 WHEN + 34 * 96 * + COUNT ( * ) + + 52 THEN + NULLIF ( 70, + CASE + - 43 WHEN + 15 THEN NULL WHEN - 53 * + 5 THEN - 36 END / - CASE 71 WHEN 15 - + 96 THEN - 71 WHEN 67 + ( - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) - 33 ) THEN NULL ELSE NULL END + 55 * - 8 ) WHEN CASE ( NULLIF ( + COUNT ( * ), ( 47 ) ) ) WHEN 10 * 38 THEN 54 ELSE NULL END THEN + 50 * - ( + 73 ) END ) + - SUM ( 81 ) * - 96
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-417
SELECT - COUNT( * ) * 4 + - + 95
----
-99

skipif mysql # not compatible
query I rowsort label-417
SELECT - COUNT ( * ) * 4 + - + 95
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-418
SELECT 27 * - 97 + COUNT( * )
----
-2618

skipif mysql # not compatible
query I rowsort label-418
SELECT 27 * - 97 + COUNT ( * )
----
-2618

query I rowsort
SELECT 71 * + + 98
----
6958

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-420
SELECT DISTINCT + - 57, - ( + 30 ) - CASE + 11 WHEN - 18 + 2 THEN 73 + + CAST( NULL AS SIGNED ) - - 77 * + 5 * + 86 + + + 32 * + + 57 WHEN 88 * - + 7 THEN NULL END * - 75 AS col0, - + 1 + NULLIF ( - 5, - 11 ) AS col2
----
-57
NULL
-6

skipif mysql # not compatible
query III rowsort label-420
SELECT DISTINCT + - 57, - ( + 30 ) - CASE + 11 WHEN - 18 + 2 THEN 73 + + CAST ( NULL AS INTEGER ) - - 77 * + 5 * + 86 + + + 32 * + + 57 WHEN 88 * - + 7 THEN NULL END * - 75 AS col0, - + 1 + NULLIF ( - 5, - 11 ) AS col2
----
-57
NULL
-6

query I rowsort
SELECT + 98 * 14
----
1372

query I rowsort
SELECT + 79 + - 41 * + + 26
----
-987

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-423
SELECT - CASE + - 45 WHEN - + ( - SUM( ALL 40 ) ) * + 2 - - 89 + + 42 - + 48 * - + 33 * - 6 THEN 85 + - 35 WHEN 44 THEN NULL ELSE + 70 DIV MAX( ( 25 ) ) END
----
-2

skipif mysql # not compatible
query I rowsort label-423
SELECT - CASE + - 45 WHEN - + ( - SUM ( ALL 40 ) ) * + 2 - - 89 + + 42 - + 48 * - + 33 * - 6 THEN 85 + - 35 WHEN 44 THEN NULL ELSE + 70 / MAX ( ( 25 ) ) END
----
-2

query I rowsort
SELECT + 55 + - + 89
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-425
SELECT ALL - 8 + + 3 + + + CAST( + 48 AS SIGNED ) * - 21 * 82 + + 7 * 67
----
-82192

skipif mysql # not compatible
query I rowsort label-425
SELECT ALL - 8 + + 3 + + + CAST ( + 48 AS INTEGER ) * - 21 * 82 + + 7 * 67
----
-82192

onlyif mysql # aggregate syntax: 
query I rowsort label-426
SELECT - 37 - COUNT( * )
----
-38

skipif mysql # not compatible
query I rowsort label-426
SELECT - 37 - COUNT ( * )
----
-38

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-428
SELECT ALL + 36 + + 40 + + 41 DIV - 41 AS col1
----
75

skipif mysql # not compatible
query I rowsort label-428
SELECT ALL + 36 + + 40 + + 41 / - 41 AS col1
----
75

query I rowsort
SELECT DISTINCT NULLIF ( - 56, + - 86 )
----
-56

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

query I rowsort
SELECT - 2 + + 53 + 19
----
70

query I rowsort
SELECT DISTINCT ( + 20 )
----
20

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-433
SELECT ALL + COUNT( * ) + - - 12 + - CASE COALESCE ( 28, + - 31 - COALESCE ( - + 76, 67 + 41 * + AVG ( DISTINCT - + 59 ) - + 31 ), - MIN( ALL - + 20 ) ) WHEN CAST( - 50 AS DECIMAL ) + - ( 18 ) + + 75 THEN 92 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-433
SELECT ALL + COUNT ( * ) + - - 12 + - CASE COALESCE ( 28, + - 31 - COALESCE ( - + 76, 67 + 41 * + AVG ( DISTINCT - + 59 ) - + 31 ), - MIN ( ALL - + 20 ) ) WHEN CAST ( - 50 AS REAL ) + - ( 18 ) + + 75 THEN 92 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-434
SELECT - ( - + 23 ) + - CASE + 57 WHEN + ( - COUNT( * ) ) THEN + COALESCE ( - 53, + + 37 + + MAX( + + 4 ) * - 0 * - 42, NULLIF ( 8, COUNT( * ) * + 76 ), + - 50 / - - 81, 45 * + CASE + - ( 94 ) WHEN 13 + - COALESCE ( CAST( NULL AS SIGNED ), 39 + 18, 46 ) / + 28 THEN + AVG ( DISTINCT - 90 ) / 72 + 48 * - 86 END + - 13 / + COUNT( * ) + 93 / AVG ( - 38 ) ) END - - 73 / - 9 * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-434
SELECT - ( - + 23 ) + - CASE + 57 WHEN + ( - COUNT ( * ) ) THEN + COALESCE ( - 53, + + 37 + + MAX ( + + 4 ) * - 0 * - 42, NULLIF ( 8, COUNT ( * ) * + 76 ), + - 50 / - - 81, 45 * + CASE + - ( 94 ) WHEN 13 + - COALESCE ( CAST ( NULL AS INTEGER ), 39 + 18, 46 ) / + 28 THEN + AVG ( DISTINCT - 90 ) / 72 + 48 * - 86 END + - 13 / + COUNT ( * ) + 93 / AVG ( - 38 ) ) END - - 73 / - 9 * COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT - - 86 * + 71 * - 64 col1
----
-390784

query I rowsort
SELECT DISTINCT + 98 * + 55 - - - 75
----
5315

query I rowsort
SELECT - 91 * 54 * - - 37 - 35
----
-181853

query I rowsort
SELECT ALL - + 60 * - 92 * + 52
----
287040

onlyif mysql # aggregate syntax: 
query II rowsort label-439
SELECT ALL + ( + 47 ) AS col0, - 98 * + + 54 + + COUNT( * ) AS col0
----
47
-5291

skipif mysql # not compatible
query II rowsort label-439
SELECT ALL + ( + 47 ) AS col0, - 98 * + + 54 + + COUNT ( * ) AS col0
----
47
-5291

onlyif mysql # aggregate syntax: 
query I rowsort label-440
SELECT ALL - + ( + COUNT( * ) ) * + 78 + + - NULLIF ( - + CASE + - 37 WHEN - 90 THEN NULL WHEN - 22 THEN + 35 / - - 24 + + 77 ELSE NULL END, - - 8 * + - ( 38 ) - - ( 81 ) ) * - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-440
SELECT ALL - + ( + COUNT ( * ) ) * + 78 + + - NULLIF ( - + CASE + - 37 WHEN - 90 THEN NULL WHEN - 22 THEN + 35 / - - 24 + + 77 ELSE NULL END, - - 8 * + - ( 38 ) - - ( 81 ) ) * - 61
----
NULL

query I rowsort
SELECT - 68 * + 82 + + 15 + 60 AS col1
----
-5501

query I rowsort
SELECT 93 * + + 73 * - 82 + - 9
----
-556707

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-443
SELECT + - COUNT( * ) - - + 35, 45 + 43 DIV - - 4 + + 86 + + - 53 - - + 20 AS col2
----
34
108

skipif mysql # not compatible
query II rowsort label-443
SELECT + - COUNT ( * ) - - + 35, 45 + 43 / - - 4 + + 86 + + - 53 - - + 20 AS col2
----
34
108

onlyif mysql # aggregate syntax: 
query I rowsort label-444
SELECT ALL + COUNT( * ) * 82 * 30 * 94 AS col1
----
231240

skipif mysql # not compatible
query I rowsort label-444
SELECT ALL + COUNT ( * ) * 82 * 30 * 94 AS col1
----
231240

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-445
SELECT + 20 DIV 56, - 15 + - COUNT( * ) * + 5 AS col0
----
0
-20

skipif mysql # not compatible
query II rowsort label-445
SELECT + 20 / 56, - 15 + - COUNT ( * ) * + 5 AS col0
----
0
-20

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

onlyif mysql # aggregate syntax: 
query II rowsort label-447
SELECT ALL + COUNT( * ) * + 43 + + 75, 69 AS col0
----
118
69

skipif mysql # not compatible
query II rowsort label-447
SELECT ALL + COUNT ( * ) * + 43 + + 75, 69 AS col0
----
118
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-448
SELECT COUNT( * ) * - - 8 + + 96 + - CAST( + - COUNT( * ) AS SIGNED ) + MAX( + 51 ) col2
----
156

skipif mysql # not compatible
query I rowsort label-448
SELECT COUNT ( * ) * - - 8 + + 96 + - CAST ( + - COUNT ( * ) AS INTEGER ) + MAX ( + 51 ) col2
----
156

query I rowsort
SELECT + NULLIF ( + 98, + 23 * - - 22 * - - 23 )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-450
SELECT ALL - 4 + + COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-450
SELECT ALL - 4 + + COUNT ( * )
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-451
SELECT ALL CASE - 98 WHEN + 48 * + 4 THEN + 65 WHEN - 74 + - MIN( DISTINCT + - ( + 68 ) ) + 79 * + COUNT( * ) THEN + 73 * - 95 - - COUNT( * ) + - COALESCE ( + MAX( 93 ), - NULLIF ( + 29, - - 95 + - - 17 + + - 19 + - 93 * 59 ) + - 45 ) - SUM( 90 ) * + ( - 41 * + 72 ) + + COUNT( * ) WHEN + CAST( - 40 AS SIGNED ) THEN 90 + + 28 ELSE COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-451
SELECT ALL CASE - 98 WHEN + 48 * + 4 THEN + 65 WHEN - 74 + - MIN ( DISTINCT + - ( + 68 ) ) + 79 * + COUNT ( * ) THEN + 73 * - 95 - - COUNT ( * ) + - COALESCE ( + MAX ( 93 ), - NULLIF ( + 29, - - 95 + - - 17 + + - 19 + - 93 * 59 ) + - 45 ) - SUM ( 90 ) * + ( - 41 * + 72 ) + + COUNT ( * ) WHEN + CAST ( - 40 AS INTEGER ) THEN 90 + + 28 ELSE COUNT ( * ) END
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-452
SELECT DISTINCT NULLIF ( - 0, + + COUNT( * ) * + + 68 + + 49 / + CAST( - + 48 AS SIGNED ) * - 65 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-452
SELECT DISTINCT NULLIF ( - 0, + + COUNT ( * ) * + + 68 + + 49 / + CAST ( - + 48 AS INTEGER ) * - 65 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-453
SELECT DISTINCT 49 + + MAX( - 85 ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-453
SELECT DISTINCT 49 + + MAX ( - 85 ) AS col0
----
-36

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-455
SELECT ALL - MAX( - 21 ) * 45 + - + ( 51 ) * + 36 col1, - 4 * + 11 col0
----
-891
-44

skipif mysql # not compatible
query II rowsort label-455
SELECT ALL - MAX ( - 21 ) * 45 + - + ( 51 ) * + 36 col1, - 4 * + 11 col0
----
-891
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-456
SELECT ALL 84 + - COUNT( DISTINCT + + ( + 90 ) )
----
83

skipif mysql # not compatible
query I rowsort label-456
SELECT ALL 84 + - COUNT ( DISTINCT + + ( + 90 ) )
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-457
SELECT ALL MAX( - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-457
SELECT ALL MAX ( - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query II rowsort
SELECT 77 AS col0, 47
----
77
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-459
SELECT - CAST( 28 AS SIGNED ) col2
----
-28

skipif mysql # not compatible
query I rowsort label-459
SELECT - CAST ( 28 AS INTEGER ) col2
----
-28

query I rowsort
SELECT + 25 * - - 84 AS col0
----
2100

query I rowsort
SELECT ALL - 78 * + - 79
----
6162

query I rowsort
SELECT - 48 * 27 AS col1
----
-1296

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

query I rowsort
SELECT + - 40 - 44
----
-84

query I rowsort
SELECT - 22 * - 56 AS col0
----
1232

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

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

query I rowsort
SELECT ALL - - 37 - - 50 + - ( + - 83 )
----
170

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-468
SELECT - 75 DIV COUNT( * ) AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-468
SELECT - 75 / COUNT ( * ) AS col2
----
-75

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

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

query I rowsort
SELECT DISTINCT COALESCE ( 17, + 75, + + ( - + 88 ) )
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-471
SELECT ALL CASE - 11 WHEN 78 + - - AVG ( - 93 ) / - 22 THEN AVG ( + 44 ) WHEN - + 60 + + ( COALESCE ( - - 36, - SUM( 36 ) * 71 + - 32, + CAST( NULL AS SIGNED ) + - 51 + + 99 ) ) THEN ( CAST( - 90 AS SIGNED ) ) * + 79 END
----
NULL

skipif mysql # not compatible
query I rowsort label-471
SELECT ALL CASE - 11 WHEN 78 + - - AVG ( - 93 ) / - 22 THEN AVG ( + 44 ) WHEN - + 60 + + ( COALESCE ( - - 36, - SUM ( 36 ) * 71 + - 32, + CAST ( NULL AS INTEGER ) + - 51 + + 99 ) ) THEN ( CAST ( - 90 AS INTEGER ) ) * + 79 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-472
SELECT - COUNT( * ) + - 63 + - 13 AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-472
SELECT - COUNT ( * ) + - 63 + - 13 AS col0
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-473
SELECT - 66 DIV 8 * + 80 - + 33
----
-673

skipif mysql # not compatible
query I rowsort label-473
SELECT - 66 / 8 * + 80 - + 33
----
-673

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-474
SELECT - + 8 * + 79 + + 39 AS col1, CAST( NULL AS SIGNED ) AS col0
----
-593
NULL

skipif mysql # not compatible
query II rowsort label-474
SELECT - + 8 * + 79 + + 39 AS col1, CAST ( NULL AS INTEGER ) AS col0
----
-593
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-475
SELECT - - COALESCE ( - - 86, + SUM( + 18 ) * - 18 + - 45 - - - 51 + + 79 ) + - - COUNT( * )
----
87

skipif mysql # not compatible
query I rowsort label-475
SELECT - - COALESCE ( - - 86, + SUM ( + 18 ) * - 18 + - 45 - - - 51 + + 79 ) + - - COUNT ( * )
----
87

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-476
SELECT - CASE - + 39 WHEN - - SUM( + 59 ) - + 96 - - COUNT( * ) THEN NULL WHEN COUNT( * ) * + 84 + - 14 * + 96 + + 8 / - 27 THEN + 96 * - 50 + + 30 * + NULLIF ( 42, - 75 - + + 55 ) / - - CAST( NULL AS DECIMAL ) WHEN + 54 THEN - 12 + + - 12 * - 98 END - CASE - 80 WHEN 58 THEN NULL ELSE AVG ( - 75 ) + 33 * - 84 END * 84 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-476
SELECT - CASE - + 39 WHEN - - SUM ( + 59 ) - + 96 - - COUNT ( * ) THEN NULL WHEN COUNT ( * ) * + 84 + - 14 * + 96 + + 8 / - 27 THEN + 96 * - 50 + + 30 * + NULLIF ( 42, - 75 - + + 55 ) / - - CAST ( NULL AS REAL ) WHEN + 54 THEN - 12 + + - 12 * - 98 END - CASE - 80 WHEN 58 THEN NULL ELSE AVG ( - 75 ) + 33 * - 84 END * 84 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-477
SELECT ALL - NULLIF ( + - 23, + 98 * - - COUNT( * ) + - 30 ) + - 87 * 81
----
-7024

skipif mysql # not compatible
query I rowsort label-477
SELECT ALL - NULLIF ( + - 23, + 98 * - - COUNT ( * ) + - 30 ) + - 87 * 81
----
-7024

query II rowsort
SELECT + - 87, 73 - - + 73 AS col2
----
-87
146

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-479
SELECT ALL + MIN( ALL + - ( + 52 ) ) + - 60 DIV - NULLIF ( - 1, + - 72 )
----
-112

skipif mysql # not compatible
query I rowsort label-479
SELECT ALL + MIN ( ALL + - ( + 52 ) ) + - 60 / - NULLIF ( - 1, + - 72 )
----
-112

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

onlyif mysql # aggregate syntax: 
query I rowsort label-481
SELECT ALL - 87 + COUNT( * ) + 44 * + 55 AS col1
----
2334

skipif mysql # not compatible
query I rowsort label-481
SELECT ALL - 87 + COUNT ( * ) + 44 * + 55 AS col1
----
2334

onlyif mysql # aggregate syntax: 
query I rowsort label-482
SELECT MAX( - 77 ) + + - 96 + - 72 AS col2
----
-245

skipif mysql # not compatible
query I rowsort label-482
SELECT MAX ( - 77 ) + + - 96 + - 72 AS col2
----
-245

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-483
SELECT ALL - CAST( + 58 AS SIGNED ) AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-483
SELECT ALL - CAST ( + 58 AS INTEGER ) AS col0
----
-58

query I rowsort
SELECT DISTINCT - 26 + + ( 11 )
----
-15

query I rowsort
SELECT 71 * - 3 + + 38
----
-175

query I rowsort
SELECT DISTINCT 44 + - 25 + - 6 col0
----
13

query I rowsort
SELECT ALL 96 + - 44 + - + 63 AS col2
----
-11

query I rowsort
SELECT 73 - + NULLIF ( - 82, - - ( 19 ) * 48 )
----
155

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

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

query I rowsort
SELECT ALL 43 * 3
----
129

query I rowsort
SELECT 92 + + + 29 col0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-492
SELECT 63 + - + COUNT( * ) * 7
----
56

skipif mysql # not compatible
query I rowsort label-492
SELECT 63 + - + COUNT ( * ) * 7
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-493
SELECT 17 - - MAX( + 40 )
----
57

skipif mysql # not compatible
query I rowsort label-493
SELECT 17 - - MAX ( + 40 )
----
57

query I rowsort
SELECT DISTINCT 42 * 19 AS col2
----
798

onlyif mysql # aggregate syntax: 
query I rowsort label-495
SELECT 77 * - MAX( ALL 6 )
----
-462

skipif mysql # not compatible
query I rowsort label-495
SELECT 77 * - MAX ( ALL 6 )
----
-462

onlyif mysql # DIV for integer division: 
query I rowsort label-496
SELECT ALL - + 10 DIV - 15 * + 77
----
0

skipif mysql # not compatible
query I rowsort label-496
SELECT ALL - + 10 / - 15 * + 77
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-497
SELECT 8 + SUM( ALL - 33 )
----
-25

skipif mysql # not compatible
query I rowsort label-497
SELECT 8 + SUM ( ALL - 33 )
----
-25

onlyif mysql # DIV for integer division: 
query II rowsort label-498
SELECT DISTINCT + 65 DIV 95 + 42 + - 12 AS col2, 68 + + - 43
----
30
25

skipif mysql # not compatible
query II rowsort label-498
SELECT DISTINCT + 65 / 95 + 42 + - 12 AS col2, 68 + + - 43
----
30
25

query I rowsort
SELECT + 0 + - + 42 AS col0
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-500
SELECT - 9 DIV - 9
----
1

skipif mysql # not compatible
query I rowsort label-500
SELECT - 9 / - 9
----
1

query I rowsort
SELECT DISTINCT + - 68 * + 5 * + 46 - 53 col2
----
-15693

onlyif mysql # aggregate syntax: 
query I rowsort label-502
SELECT 64 + + COUNT( * ) + - 25 AS col2
----
40

skipif mysql # not compatible
query I rowsort label-502
SELECT 64 + + COUNT ( * ) + - 25 AS col2
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-503
SELECT + COUNT( * ) DIV - + ( - COUNT( * ) ) + - - 97
----
98

skipif mysql # not compatible
query I rowsort label-503
SELECT + COUNT ( * ) / - + ( - COUNT ( * ) ) + - - 97
----
98

query I rowsort
SELECT ALL + 71 + - 97
----
-26

query I rowsort
SELECT ALL ( + 83 ) + - 51 + + 28
----
60

query I rowsort
SELECT ALL - 91 + - 60
----
-151

onlyif mysql # aggregate syntax: 
query I rowsort label-507
SELECT + - NULLIF ( + NULLIF ( - - 92, - 8 ), - - COUNT( * ) + + 50 )
----
-92

skipif mysql # not compatible
query I rowsort label-507
SELECT + - NULLIF ( + NULLIF ( - - 92, - 8 ), - - COUNT ( * ) + + 50 )
----
-92

query I rowsort
SELECT ALL - ( - - 94 ) AS col0
----
-94

query I rowsort
SELECT 38 + 18 col2
----
56

query I rowsort
SELECT 83 + + - 21
----
62

query I rowsort
SELECT DISTINCT - 95 * + NULLIF ( 83, - - 17 - + ( - - 12 ) ) col2
----
-7885

onlyif mysql # DIV for integer division: 
query I rowsort label-512
SELECT ALL - ( - 42 ) - - + 35 DIV + + 38 + + + 99 AS col2
----
141

skipif mysql # not compatible
query I rowsort label-512
SELECT ALL - ( - 42 ) - - + 35 / + + 38 + + + 99 AS col2
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-513
SELECT ALL + COUNT( ALL - 79 ) * + MAX( DISTINCT + 87 ) * + 43 AS col2
----
3741

skipif mysql # not compatible
query I rowsort label-513
SELECT ALL + COUNT ( ALL - 79 ) * + MAX ( DISTINCT + 87 ) * + 43 AS col2
----
3741

query I rowsort
SELECT 73 + - - 27 AS col1
----
100

query I rowsort
SELECT DISTINCT + 4 * 99 AS col1
----
396

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-516
SELECT + 73 * - 30 - - 27 * + 70 * + - 17 + - COUNT( * ) DIV - 9
----
-34320

skipif mysql # not compatible
query I rowsort label-516
SELECT + 73 * - 30 - - 27 * + 70 * + - 17 + - COUNT ( * ) / - 9
----
-34320

query I rowsort
SELECT 57 * + 15 AS col2
----
855

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-518
SELECT ALL - COALESCE ( - ( - COALESCE ( - NULLIF ( COUNT( * ), + 73 - + 3 + - CASE 70 WHEN - 35 THEN - - COUNT( * ) ELSE NULL END / 21 * + 47 * - + 14 * + 44 * - 82 * - - CAST( ( - MIN( DISTINCT + + 42 ) ) AS SIGNED ) * + - ( + 76 ) / - 35 ), + 54, + 6 ) ), 2 )
----
1

skipif mysql # not compatible
query I rowsort label-518
SELECT ALL - COALESCE ( - ( - COALESCE ( - NULLIF ( COUNT ( * ), + 73 - + 3 + - CASE 70 WHEN - 35 THEN - - COUNT ( * ) ELSE NULL END / 21 * + 47 * - + 14 * + 44 * - 82 * - - CAST ( ( - MIN ( DISTINCT + + 42 ) ) AS INTEGER ) * + - ( + 76 ) / - 35 ), + 54, + 6 ) ), 2 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-519
SELECT DISTINCT MIN( DISTINCT - - 74 ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-519
SELECT DISTINCT MIN ( DISTINCT - - 74 ) AS col2
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-520
SELECT 76 DIV 86
----
0

skipif mysql # not compatible
query I rowsort label-520
SELECT 76 / 86
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-521
SELECT NULLIF ( + 18, 53 + + 59 * - - 79 ) + - - 82 DIV - + ( - COUNT( * ) )
----
100

skipif mysql # not compatible
query I rowsort label-521
SELECT NULLIF ( + 18, 53 + + 59 * - - 79 ) + - - 82 / - + ( - COUNT ( * ) )
----
100

onlyif mysql # DIV for integer division: 
query I rowsort label-522
SELECT COALESCE ( 35, 32, + 75 DIV + - 63 ) * - - ( 35 ) * + 7 * + + 50
----
428750

skipif mysql # not compatible
query I rowsort label-522
SELECT COALESCE ( 35, 32, + 75 / + - 63 ) * - - ( 35 ) * + 7 * + + 50
----
428750

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-524
SELECT DISTINCT + CASE - + NULLIF ( - 66, - + 87 * 55 ) WHEN + 59 THEN NULL ELSE 53 END * - + CAST( - 17 AS SIGNED )
----
901

skipif mysql # not compatible
query I rowsort label-524
SELECT DISTINCT + CASE - + NULLIF ( - 66, - + 87 * 55 ) WHEN + 59 THEN NULL ELSE 53 END * - + CAST ( - 17 AS INTEGER )
----
901

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-526
SELECT 2 - 52 * - 44 + - - 68 - - CAST( + - 86 AS SIGNED ) DIV - MAX( 29 )
----
2360

skipif mysql # not compatible
query I rowsort label-526
SELECT 2 - 52 * - 44 + - - 68 - - CAST ( + - 86 AS INTEGER ) / - MAX ( 29 )
----
2360

onlyif mysql # aggregate syntax: 
query I rowsort label-527
SELECT - MIN( - 66 ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-527
SELECT - MIN ( - 66 ) AS col2
----
66

query I rowsort
SELECT ALL + ( - 58 ) * 74
----
-4292

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-529
SELECT + - ( - 2 ) + CASE - 71 WHEN - - COUNT( * ) THEN 70 * + CASE + ( COALESCE ( - + COUNT( * ), 25 ) ) WHEN + 87 + 45 * - + 84 THEN - + 83 END - 79 + + CAST( NULL AS DECIMAL ) / + 51 * + 4 * - 70 * + - 84 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-529
SELECT + - ( - 2 ) + CASE - 71 WHEN - - COUNT ( * ) THEN 70 * + CASE + ( COALESCE ( - + COUNT ( * ), 25 ) ) WHEN + 87 + 45 * - + 84 THEN - + 83 END - 79 + + CAST ( NULL AS REAL ) / + 51 * + 4 * - 70 * + - 84 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + 42 + + 67
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-531
SELECT DISTINCT MIN( 72 ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-531
SELECT DISTINCT MIN ( 72 ) AS col2
----
72

query I rowsort
SELECT + - ( + + 92 ) - 37 col0
----
-129

query I rowsort
SELECT DISTINCT + 92 + 68 AS col0
----
160

query II rowsort
SELECT + 0 - - ( - COALESCE ( 75, 26 ) ) AS col2, 58 AS col2
----
-75
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-535
SELECT + COUNT( NULLIF ( - 11, + CAST( NULL AS SIGNED ) * + ( + 94 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-535
SELECT + COUNT ( NULLIF ( - 11, + CAST ( NULL AS INTEGER ) * + ( + 94 ) ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-536
SELECT + COALESCE ( - + COALESCE ( MAX( DISTINCT + 9 ), COUNT( ALL - 77 ) ), + - 54 ) col0
----
-9

skipif mysql # not compatible
query I rowsort label-536
SELECT + COALESCE ( - + COALESCE ( MAX ( DISTINCT + 9 ), COUNT ( ALL - 77 ) ), + - 54 ) col0
----
-9

query I rowsort
SELECT DISTINCT 7 * - 77 - - 20
----
-519

query I rowsort
SELECT + ( 68 ) * - 98 AS col0
----
-6664

query I rowsort
SELECT NULLIF ( - 42, + - 23 )
----
-42

query I rowsort
SELECT ALL 67 * - 79 AS col2
----
-5293

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-541
SELECT DISTINCT + 15, - CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) AS col1
----
15
NULL

skipif mysql # not compatible
query II rowsort label-541
SELECT DISTINCT + 15, - CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) AS col1
----
15
NULL

query I rowsort
SELECT - 38 + + 33
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-543
SELECT + 49 * 70 DIV 30 AS col1
----
114

skipif mysql # not compatible
query I rowsort label-543
SELECT + 49 * 70 / 30 AS col1
----
114

query I rowsort
SELECT NULLIF ( 35, + 28 ) col0
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-545
SELECT COUNT( * ) * + + 53 / - CAST( NULL AS SIGNED ) + - COALESCE ( + - 56, 29 * - COUNT( * ) + + 15 ) + - 67 * 57 + - - 53 + - + 51, CASE - 96 WHEN 39 * + COUNT( * ) + + - MAX( 53 ) THEN - 0 * - 72 WHEN + 46 THEN NULL END * + 83 * - SUM( 97 ) col2, - 16 AS col2
----
NULL
NULL
-16

skipif mysql # not compatible
query III rowsort label-545
SELECT COUNT ( * ) * + + 53 / - CAST ( NULL AS INTEGER ) + - COALESCE ( + - 56, 29 * - COUNT ( * ) + + 15 ) + - 67 * 57 + - - 53 + - + 51, CASE - 96 WHEN 39 * + COUNT ( * ) + + - MAX ( 53 ) THEN - 0 * - 72 WHEN + 46 THEN NULL END * + 83 * - SUM ( 97 ) col2, - 16 AS col2
----
NULL
NULL
-16

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

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

query I rowsort
SELECT + 68 * - 89 + + 77
----
-5975

onlyif mysql # aggregate syntax: 
query II rowsort label-548
SELECT - 19 + - MAX( 24 ) * - 71 AS col0, - ( + - COUNT( * ) ) * - 16
----
1685
-16

skipif mysql # not compatible
query II rowsort label-548
SELECT - 19 + - MAX ( 24 ) * - 71 AS col0, - ( + - COUNT ( * ) ) * - 16
----
1685
-16

query II rowsort
SELECT ALL + 17, - 31 AS col1
----
17
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-550
SELECT ALL + 46 * SUM( DISTINCT + - 98 ) AS col2
----
-4508

skipif mysql # not compatible
query I rowsort label-550
SELECT ALL + 46 * SUM ( DISTINCT + - 98 ) AS col2
----
-4508

query II rowsort
SELECT ALL + 56 * + 17 AS col2, 10
----
952
10

query I rowsort
SELECT DISTINCT - 1 + 70 + 39 * - 0 + - 94
----
-25

query II rowsort
SELECT + 95 col0, ( + - 73 ) * + 4
----
95
-292

query I rowsort
SELECT - 68 + + 50 + + - 1 * 47
----
-65

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-556
SELECT + ( - - 27 ) DIV + COUNT( - 2 ) + + NULLIF ( + - 65, ( + 80 ) ) + 67 AS col1
----
29

skipif mysql # not compatible
query I rowsort label-556
SELECT + ( - - 27 ) / + COUNT ( - 2 ) + + NULLIF ( + - 65, ( + 80 ) ) + 67 AS col1
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-557
SELECT - + 26 + - COALESCE ( + MAX( DISTINCT - 94 ), - + CAST( - 91 AS SIGNED ) )
----
68

skipif mysql # not compatible
query I rowsort label-557
SELECT - + 26 + - COALESCE ( + MAX ( DISTINCT - 94 ), - + CAST ( - 91 AS INTEGER ) )
----
68

query II rowsort
SELECT - + 29 AS col1, 49 * + 39 AS col1
----
-29
1911

onlyif mysql # aggregate syntax: 
query I rowsort label-559
SELECT - - 51 + - - COUNT( * ) + - NULLIF ( + 54, + - 72 )
----
-2

skipif mysql # not compatible
query I rowsort label-559
SELECT - - 51 + - - COUNT ( * ) + - NULLIF ( + 54, + - 72 )
----
-2

query I rowsort
SELECT ALL - + 46 + + - 99 * - 11
----
1043

query I rowsort
SELECT NULLIF ( + 15, + 53 ) AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-562
SELECT + COUNT( ALL ( + 99 ) ) + + - 79 + ( - - ( 53 ) ) col1
----
-25

skipif mysql # not compatible
query I rowsort label-562
SELECT + COUNT ( ALL ( + 99 ) ) + + - 79 + ( - - ( 53 ) ) col1
----
-25

query I rowsort
SELECT ALL 10 * - + ( - 54 )
----
540

onlyif mysql # aggregate syntax: 
query II rowsort label-564
SELECT DISTINCT + 63 + - COUNT( * ) + + + ( + + 50 ) AS col0, + NULLIF ( + + 4, + 72 * 94 / COUNT( * ) * - 26 + 14 - 38 ) * - - 83 + 94
----
112
426

skipif mysql # not compatible
query II rowsort label-564
SELECT DISTINCT + 63 + - COUNT ( * ) + + + ( + + 50 ) AS col0, + NULLIF ( + + 4, + 72 * 94 / COUNT ( * ) * - 26 + 14 - 38 ) * - - 83 + 94
----
112
426

query I rowsort
SELECT - + 99 * - + 43
----
4257

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query III rowsort label-566
SELECT + 98 + 43 AS col0, CASE + - 19 WHEN - 67 * - + 29 - + + 49 THEN 28 * - ( 57 ) + + CAST( + - 88 AS DECIMAL ) WHEN + 79 + + COUNT( + + 24 ) DIV - CAST( 54 AS SIGNED ) - + + 52 THEN - 82 ELSE NULL END AS col2, - COUNT( * ) * + - 7 - + 59 DIV - + 52 col2
----
141
NULL
8

skipif mysql # not compatible
query III rowsort label-566
SELECT + 98 + 43 AS col0, CASE + - 19 WHEN - 67 * - + 29 - + + 49 THEN 28 * - ( 57 ) + + CAST ( + - 88 AS REAL ) WHEN + 79 + + COUNT ( + + 24 ) / - CAST ( 54 AS INTEGER ) - + + 52 THEN - 82 ELSE NULL END AS col2, - COUNT ( * ) * + - 7 - + 59 / - + 52 col2
----
141
NULL
8

onlyif mysql # aggregate syntax: 
query II rowsort label-567
SELECT - COUNT( * ) AS col1, COUNT( * ) + + 35
----
-1
36

skipif mysql # not compatible
query II rowsort label-567
SELECT - COUNT ( * ) AS col1, COUNT ( * ) + + 35
----
-1
36

onlyif mysql # aggregate syntax: 
query II rowsort label-568
SELECT ALL CASE NULLIF ( - 48, + 69 + - 31 + 57 + + 56 * 4 * + 86 + - 72 ) WHEN 28 / + - 74 + + - 5 * 70 * - - 37 THEN - + MIN( ALL - + 46 ) + 90 / - 41 + 36 WHEN + 56 THEN NULL ELSE NULL END, 84 AS col2
----
NULL
84

skipif mysql # not compatible
query II rowsort label-568
SELECT ALL CASE NULLIF ( - 48, + 69 + - 31 + 57 + + 56 * 4 * + 86 + - 72 ) WHEN 28 / + - 74 + + - 5 * 70 * - - 37 THEN - + MIN ( ALL - + 46 ) + 90 / - 41 + 36 WHEN + 56 THEN NULL ELSE NULL END, 84 AS col2
----
NULL
84

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-570
SELECT ALL 3 DIV - 44 * - 9 - + 29 + + 3 + - + COALESCE ( + - 96, + COUNT( DISTINCT 0 ) * - 84 - - 39 + + + COUNT( * ) ) - + 93 * 86 * - + 8 - - 79
----
64133

skipif mysql # not compatible
query I rowsort label-570
SELECT ALL 3 / - 44 * - 9 - + 29 + + 3 + - + COALESCE ( + - 96, + COUNT ( DISTINCT 0 ) * - 84 - - 39 + + + COUNT ( * ) ) - + 93 * 86 * - + 8 - - 79
----
64133

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-572
SELECT + ( - 29 ) * CAST( - CASE + 54 WHEN + 27 - 5 * - + 73 * + 24 / ( - + 59 ) THEN 36 * CAST( 0 AS SIGNED ) - 19 * 74 ELSE - ( + + 30 ) * + 13 END AS SIGNED )
----
-11310

skipif mysql # not compatible
query I rowsort label-572
SELECT + ( - 29 ) * CAST ( - CASE + 54 WHEN + 27 - 5 * - + 73 * + 24 / ( - + 59 ) THEN 36 * CAST ( 0 AS INTEGER ) - 19 * 74 ELSE - ( + + 30 ) * + 13 END AS INTEGER )
----
-11310

query I rowsort
SELECT + 59 * + 85 + + 78
----
5093

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-574
SELECT + 26 DIV CAST( 72 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-574
SELECT + 26 / CAST ( 72 AS INTEGER )
----
0

query I rowsort
SELECT + 32 * + - 76 AS col1
----
-2432

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-576
SELECT + 64 * + 42 - + CAST( 96 AS SIGNED )
----
2592

skipif mysql # not compatible
query I rowsort label-576
SELECT + 64 * + 42 - + CAST ( 96 AS INTEGER )
----
2592

query II rowsort
SELECT DISTINCT 72 * 75 col1, + 58
----
5400
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-578
SELECT ALL 84 / + - CASE + 98 WHEN MAX( DISTINCT + NULLIF ( + + ( + - 35 ), 47 * - 38 + + 83 + + 43 + - - 45 * 26 * - 15 ) ) THEN CAST( 27 AS DECIMAL ) WHEN + 28 THEN - 23 * - CAST( + 60 AS SIGNED ) - + 78 * + + CAST( NULL AS SIGNED ) END * - MAX( DISTINCT + CASE ( + NULLIF ( - + CAST( NULL AS SIGNED ), + 38 - + 73 ) ) WHEN - 60 THEN + 58 - 43 ELSE 54 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-578
SELECT ALL 84 / + - CASE + 98 WHEN MAX ( DISTINCT + NULLIF ( + + ( + - 35 ), 47 * - 38 + + 83 + + 43 + - - 45 * 26 * - 15 ) ) THEN CAST ( 27 AS REAL ) WHEN + 28 THEN - 23 * - CAST ( + 60 AS INTEGER ) - + 78 * + + CAST ( NULL AS INTEGER ) END * - MAX ( DISTINCT + CASE ( + NULLIF ( - + CAST ( NULL AS INTEGER ), + 38 - + 73 ) ) WHEN - 60 THEN + 58 - 43 ELSE 54 END )
----
NULL

query II rowsort
SELECT + 96 * - + 6 AS col1, - 43
----
-576
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-580
SELECT ALL + SUM( ALL 29 ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-580
SELECT ALL + SUM ( ALL 29 ) AS col0
----
29

query II rowsort
SELECT ALL 78 * - - 22 AS col1, 70 * + 50
----
1716
3500

onlyif mysql # aggregate syntax: 
query II rowsort label-582
SELECT ALL + COUNT( * ) * COUNT( * ) + - 79 - - 84 * ( 60 ) + + 49, 71 AS col1
----
5011
71

skipif mysql # not compatible
query II rowsort label-582
SELECT ALL + COUNT ( * ) * COUNT ( * ) + - 79 - - 84 * ( 60 ) + + 49, 71 AS col1
----
5011
71

query II rowsort
SELECT - 66 * + - 67, 12 + COALESCE ( - 4, + 70, - 21 ) AS col1
----
4422
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-584
SELECT + CAST( NULL AS SIGNED ) * + 55 AS col2, 21, - + ( + SUM( - + NULLIF ( ( + 37 ), - 54 ) ) ) DIV - - COUNT( - 74 ) + - + NULLIF ( 60, - ( - COUNT( * ) ) ) AS col1
----
NULL
21
-23

skipif mysql # not compatible
query III rowsort label-584
SELECT + CAST ( NULL AS INTEGER ) * + 55 AS col2, 21, - + ( + SUM ( - + NULLIF ( ( + 37 ), - 54 ) ) ) / - - COUNT ( - 74 ) + - + NULLIF ( 60, - ( - COUNT ( * ) ) ) AS col1
----
NULL
21
-23

query I rowsort
SELECT - 42 * + 56 AS col1
----
-2352

query I rowsort
SELECT DISTINCT - 12 * + 38 + - 71 * + - 65 AS col0
----
4159

onlyif mysql # aggregate syntax: 
query I rowsort label-587
SELECT 83 + + + 88 * + SUM( 11 )
----
1051

skipif mysql # not compatible
query I rowsort label-587
SELECT 83 + + + 88 * + SUM ( 11 )
----
1051

query II rowsort
SELECT ( + 67 ), + 43 * + 24 AS col0
----
67
1032

query I rowsort
SELECT ALL 89 + + 75 + - 5
----
159

query I rowsort
SELECT DISTINCT + - 48 * + 33 + + 30
----
-1554

query I rowsort
SELECT ALL - 25 * - 42 * 19 AS col1
----
19950

query I rowsort
SELECT + 55 * 5 AS col1
----
275

onlyif mysql # aggregate syntax: 
query I rowsort label-593
SELECT COUNT( * ) + - 5 * 23
----
-114

skipif mysql # not compatible
query I rowsort label-593
SELECT COUNT ( * ) + - 5 * 23
----
-114

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-594
SELECT - + CASE AVG ( ALL - - 28 ) WHEN + 68 THEN - 43 WHEN + NULLIF ( + + 72, + 77 + + - 47 ) * 66 + + CAST( NULL AS DECIMAL ) / ( - COUNT( ALL - + 30 ) ) THEN NULL WHEN COUNT( + + 71 ) / + 77 + + COUNT( - 43 ) + + + 40 THEN ( - ( + 95 ) ) ELSE NULL END AS col1, + 23 * - 49 AS col1
----
NULL
-1127

skipif mysql # not compatible
query II rowsort label-594
SELECT - + CASE AVG ( ALL - - 28 ) WHEN + 68 THEN - 43 WHEN + NULLIF ( + + 72, + 77 + + - 47 ) * 66 + + CAST ( NULL AS REAL ) / ( - COUNT ( ALL - + 30 ) ) THEN NULL WHEN COUNT ( + + 71 ) / + 77 + + COUNT ( - 43 ) + + + 40 THEN ( - ( + 95 ) ) ELSE NULL END AS col1, + 23 * - 49 AS col1
----
NULL
-1127

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

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

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

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

query I rowsort
SELECT ( - 95 ) + + 87 + + - 54 + + ( 70 ) + + 36
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-598
SELECT ALL - - 39 - 43 + - - COUNT( DISTINCT - - 56 )
----
-3

skipif mysql # not compatible
query I rowsort label-598
SELECT ALL - - 39 - 43 + - - COUNT ( DISTINCT - - 56 )
----
-3

query I rowsort
SELECT - 62 + 34
----
-28

query I rowsort
SELECT ALL 1 - 92 AS col2
----
-91

query I rowsort
SELECT DISTINCT - 60 * + + 95 + 44 - - 76 * 27 AS col0
----
-3604

onlyif mysql # DIV for integer division: 
query I rowsort label-602
SELECT ALL - 63 DIV + 45 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-602
SELECT ALL - 63 / + 45 AS col0
----
-1

query I rowsort
SELECT 76 - 87 * + + 42 * + + 79 * - - 94 col2
----
-27134528

query I rowsort
SELECT ALL 74 * 82
----
6068

query I rowsort
SELECT 83 * + 71 col1
----
5893

onlyif mysql # DIV for integer division: 
query I rowsort label-606
SELECT DISTINCT - 45 DIV - 26 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-606
SELECT DISTINCT - 45 / - 26 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-607
SELECT 57 * + - COUNT( * ) AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-607
SELECT 57 * + - COUNT ( * ) AS col2
----
-57

query II rowsort
SELECT 58 col0, 91 * + 4 * 59 col2
----
58
21476

query I rowsort
SELECT DISTINCT + 73 * 45
----
3285

query II rowsort
SELECT 27 * + 21 + 75, - 74 AS col1
----
642
-74

query I rowsort
SELECT 82 * + 53
----
4346

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-612
SELECT ALL - COALESCE ( CASE + 49 WHEN 99 THEN 27 WHEN 42 THEN NULL END, 15, + COUNT( * ) + + CASE - + 55 WHEN + 25 + - CAST( NULL AS DECIMAL ) THEN - - 88 ELSE NULL END )
----
-15

skipif mysql # not compatible
query I rowsort label-612
SELECT ALL - COALESCE ( CASE + 49 WHEN 99 THEN 27 WHEN 42 THEN NULL END, 15, + COUNT ( * ) + + CASE - + 55 WHEN + 25 + - CAST ( NULL AS REAL ) THEN - - 88 ELSE NULL END )
----
-15

query I rowsort
SELECT DISTINCT - 73 * - 32
----
2336

query I rowsort
SELECT ALL + 19 + 0
----
19

query II rowsort
SELECT + 12, 82 AS col1
----
12
82

query II rowsort
SELECT 74 AS col0, 4
----
74
4

onlyif mysql # aggregate syntax: 
query I rowsort label-617
SELECT ALL COUNT( DISTINCT - 30 ) + - 58
----
-57

skipif mysql # not compatible
query I rowsort label-617
SELECT ALL COUNT ( DISTINCT - 30 ) + - 58
----
-57

query II rowsort
SELECT 55 AS col0, + 37
----
55
37

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

skipif mysql # not compatible
query II rowsort label-619
SELECT + COUNT ( * ) AS col1, - 75 AS col0
----
1
-75

query II rowsort
SELECT 3, - 59 col1
----
3
-59

query I rowsort
SELECT DISTINCT + 57 + - + ( 89 )
----
-32

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

query I rowsort
SELECT DISTINCT - 88 * 26 * + 29 + + + 97
----
-66255

query I rowsort
SELECT ALL 86 + + 88 + + 75 AS col2
----
249

onlyif mysql # aggregate syntax: 
query I rowsort label-625
SELECT + 26 + ( - 89 ) + - COUNT( * )
----
-64

skipif mysql # not compatible
query I rowsort label-625
SELECT + 26 + ( - 89 ) + - COUNT ( * )
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-626
SELECT DISTINCT - ( - - COALESCE ( + COUNT( * ), - + 42 DIV 28 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-626
SELECT DISTINCT - ( - - COALESCE ( + COUNT ( * ), - + 42 / 28 ) )
----
-1

query I rowsort
SELECT DISTINCT 4 + - 18
----
-14

query I rowsort
SELECT COALESCE ( - 10, + 15, + - 22 )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-629
SELECT ( - COUNT( * ) ) * + - 79 * COUNT( * ) + - - CASE - COUNT( * ) WHEN - 35 THEN - + COUNT( * ) / + AVG ( + 15 ) * - NULLIF ( + 31, + 19 ) + - ( COUNT( * ) ) + 53 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-629
SELECT ( - COUNT ( * ) ) * + - 79 * COUNT ( * ) + - - CASE - COUNT ( * ) WHEN - 35 THEN - + COUNT ( * ) / + AVG ( + 15 ) * - NULLIF ( + 31, + 19 ) + - ( COUNT ( * ) ) + 53 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-630
SELECT + ( - 66 ) + + COUNT( * ) * 61 * + 63 * COUNT( * ) + - COALESCE ( - - ( 30 ), + 0 )
----
3747

skipif mysql # not compatible
query I rowsort label-630
SELECT + ( - 66 ) + + COUNT ( * ) * 61 * + 63 * COUNT ( * ) + - COALESCE ( - - ( 30 ), + 0 )
----
3747

query I rowsort
SELECT 56 + - - 96
----
152

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-632
SELECT - 26, 74 + - 59 + ( - - CAST( 3 AS SIGNED ) ) * + 4 AS col2
----
-26
27

skipif mysql # not compatible
query II rowsort label-632
SELECT - 26, 74 + - 59 + ( - - CAST ( 3 AS INTEGER ) ) * + 4 AS col2
----
-26
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-633
SELECT - 19 + + + COALESCE ( + 41, - - 82, + ( + 89 ) * + 69 + ( - + 10 ) + - 17 + - 80 * - 50 * 32 DIV - - 86 + MIN( 31 ) ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-633
SELECT - 19 + + + COALESCE ( + 41, - - 82, + ( + 89 ) * + 69 + ( - + 10 ) + - 17 + - 80 * - 50 * 32 / - - 86 + MIN ( 31 ) ) AS col2
----
22

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

query I rowsort
SELECT DISTINCT ( 10 )
----
10

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

query I rowsort
SELECT DISTINCT - 31 * + - 69
----
2139

onlyif mysql # aggregate syntax: 
query I rowsort label-638
SELECT 86 + - 67 - - - 33 + + ( + 89 ) * + + 73 * - COUNT( * ) * + 42 AS col2
----
-272888

skipif mysql # not compatible
query I rowsort label-638
SELECT 86 + - 67 - - - 33 + + ( + 89 ) * + + 73 * - COUNT ( * ) * + 42 AS col2
----
-272888

query I rowsort
SELECT ALL - 59 * - 11
----
649

onlyif mysql # aggregate syntax: 
query I rowsort label-640
SELECT MIN( 4 ) * 84
----
336

skipif mysql # not compatible
query I rowsort label-640
SELECT MIN ( 4 ) * 84
----
336

onlyif mysql # aggregate syntax: 
query I rowsort label-641
SELECT ALL MAX( + - 70 ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-641
SELECT ALL MAX ( + - 70 ) AS col2
----
-70

query I rowsort
SELECT 82 + + + 50 AS col2
----
132

query I rowsort
SELECT NULLIF ( + 36, - 2 ) AS col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-644
SELECT ALL 75 * NULLIF ( + 4, 64 + + COUNT( * ) ) + 82
----
382

skipif mysql # not compatible
query I rowsort label-644
SELECT ALL 75 * NULLIF ( + 4, 64 + + COUNT ( * ) ) + 82
----
382

onlyif mysql # aggregate syntax: 
query I rowsort label-645
SELECT DISTINCT 18 * + SUM( DISTINCT 26 ) * + + 17 + COALESCE ( + COUNT( * ), 93, - + 72 ) + + 53 * - - 25 + + 55 AS col2
----
9337

skipif mysql # not compatible
query I rowsort label-645
SELECT DISTINCT 18 * + SUM ( DISTINCT 26 ) * + + 17 + COALESCE ( + COUNT ( * ), 93, - + 72 ) + + 53 * - - 25 + + 55 AS col2
----
9337

query I rowsort
SELECT 87 * 9 + + 95
----
878

onlyif mysql # aggregate syntax: 
query II rowsort label-647
SELECT COUNT( * ) * 68 AS col1, - 40 + - COUNT( * ) AS col2
----
68
-41

skipif mysql # not compatible
query II rowsort label-647
SELECT COUNT ( * ) * 68 AS col1, - 40 + - COUNT ( * ) AS col2
----
68
-41

query I rowsort
SELECT 97 * + - 48 AS col0
----
-4656

query I rowsort
SELECT ALL - 24 * 84
----
-2016

query I rowsort
SELECT - 30 * - 52 AS col2
----
1560

onlyif mysql # aggregate syntax: 
query I rowsort label-651
SELECT ALL - 53 * - MAX( ALL - 61 ) + - + 44 + 92
----
-3185

skipif mysql # not compatible
query I rowsort label-651
SELECT ALL - 53 * - MAX ( ALL - 61 ) + - + 44 + 92
----
-3185

query I rowsort
SELECT DISTINCT + - ( - 52 ) AS col2
----
52

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

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

query I rowsort
SELECT DISTINCT - - CASE - + NULLIF ( + 16, - 62 ) WHEN - 67 THEN - 55 WHEN - - 10 THEN NULL ELSE NULL END * + - 10 - + 67 AS col2
----
NULL

query I rowsort
SELECT ( + - COALESCE ( + 16, + 82 ) )
----
-16

query II rowsort
SELECT + ( + 94 ) col2, - 16 + + 28 AS col1
----
94
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-657
SELECT - MIN( ALL + + 58 ) * + - 30 + - + 19 DIV + 4
----
1736

skipif mysql # not compatible
query I rowsort label-657
SELECT - MIN ( ALL + + 58 ) * + - 30 + - + 19 / + 4
----
1736

query I rowsort
SELECT ALL 34 * 27 * ( - + 97 )
----
-89046

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-659
SELECT + - 32 / - CAST( NULL AS SIGNED ) + + + CAST( NULL AS SIGNED ) + - + 57 - - 40 * + 94 + 58 * + COUNT( * ) + + 20 * + 85 * NULLIF ( + 41, - + 20 )
----
NULL

skipif mysql # not compatible
query I rowsort label-659
SELECT + - 32 / - CAST ( NULL AS INTEGER ) + + + CAST ( NULL AS INTEGER ) + - + 57 - - 40 * + 94 + 58 * + COUNT ( * ) + + 20 * + 85 * NULLIF ( + 41, - + 20 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-660
SELECT DISTINCT + - 22 DIV MIN( ALL 55 )
----
0

skipif mysql # not compatible
query I rowsort label-660
SELECT DISTINCT + - 22 / MIN ( ALL 55 )
----
0

query I rowsort
SELECT ALL + 51 - + + 11 - - + 54
----
94

query I rowsort
SELECT - NULLIF ( - 7, + ( - 16 ) )
----
7

query I rowsort
SELECT + - 88 * - COALESCE ( - 51, - 28 )
----
-4488

query II rowsort
SELECT ALL - 82 * + - 78 + - 12 * + 7 AS col0, 95 AS col2
----
6312
95

query I rowsort
SELECT DISTINCT 18 * 40
----
720

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-666
SELECT ALL 23 * + 89 * + 14 + - 7 - - 30 DIV - ( - - 81 ) * - + SUM( - 69 ) AS col2
----
28651

skipif mysql # not compatible
query I rowsort label-666
SELECT ALL 23 * + 89 * + 14 + - 7 - - 30 / - ( - - 81 ) * - + SUM ( - 69 ) AS col2
----
28651

query I rowsort
SELECT + 92 * + - 42 col0
----
-3864

onlyif mysql # aggregate syntax: 
query I rowsort label-668
SELECT + - COUNT( * ) + + - 60 AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-668
SELECT + - COUNT ( * ) + + - 60 AS col2
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-669
SELECT + CASE + + COUNT( * ) WHEN - 60 THEN - COUNT( * ) + 20 + + + 58 + + 65 * + ( 24 ) + - - CASE + - 65 WHEN + 47 + + + CAST( COUNT( * ) AS SIGNED ) THEN + - 57 WHEN + ( - 45 ) THEN NULL WHEN + ( COUNT( * ) ) THEN NULL END END * COALESCE ( - COUNT( * ), + COUNT( DISTINCT + + 95 ) * - 52 * - CASE - 64 WHEN COUNT( * ) THEN - - CASE - 9 WHEN 91 + - 80 THEN + MIN( - 51 ) ELSE NULL END END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-669
SELECT + CASE + + COUNT ( * ) WHEN - 60 THEN - COUNT ( * ) + 20 + + + 58 + + 65 * + ( 24 ) + - - CASE + - 65 WHEN + 47 + + + CAST ( COUNT ( * ) AS INTEGER ) THEN + - 57 WHEN + ( - 45 ) THEN NULL WHEN + ( COUNT ( * ) ) THEN NULL END END * COALESCE ( - COUNT ( * ), + COUNT ( DISTINCT + + 95 ) * - 52 * - CASE - 64 WHEN COUNT ( * ) THEN - - CASE - 9 WHEN 91 + - 80 THEN + MIN ( - 51 ) ELSE NULL END END ) AS col1
----
NULL

query I rowsort
SELECT + 27 + 17 AS col0
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-671
SELECT + ( - 31 ) + - COUNT( * ) DIV + - 11 * - 76 AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-671
SELECT + ( - 31 ) + - COUNT ( * ) / + - 11 * - 76 AS col0
----
-31

query I rowsort
SELECT DISTINCT 26 + + 53 AS col0
----
79

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-674
SELECT - ( - ( + 71 ) ) AS col1, COALESCE ( + ( 52 ), + 5 DIV + + MIN( + 85 ) + - 51 ) * 21 + - 68
----
71
1024

skipif mysql # not compatible
query II rowsort label-674
SELECT - ( - ( + 71 ) ) AS col1, COALESCE ( + ( 52 ), + 5 / + + MIN ( + 85 ) + - 51 ) * 21 + - 68
----
71
1024

query I rowsort
SELECT ALL 2 + + - 61 AS col1
----
-59

query I rowsort
SELECT DISTINCT 20 + 98
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-677
SELECT ALL + COUNT( * ) + 59 * + 40
----
2361

skipif mysql # not compatible
query I rowsort label-677
SELECT ALL + COUNT ( * ) + 59 * + 40
----
2361

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-680
SELECT - 25 + - 43 - 28 DIV 76 + 90 AS col2
----
22

skipif mysql # not compatible
query I rowsort label-680
SELECT - 25 + - 43 - 28 / 76 + 90 AS col2
----
22

query I rowsort
SELECT DISTINCT + COALESCE ( + 33, + - 8 * - 13 ) * + 90 + 21 AS col2
----
2991

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-683
SELECT + 31 DIV + - 69
----
0

skipif mysql # not compatible
query I rowsort label-683
SELECT + 31 / + - 69
----
0

query I rowsort
SELECT DISTINCT - 48 * + COALESCE ( + 12, + 16 + - - 74 ) - - - ( + 90 ) AS col1
----
-666

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

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

query I rowsort
SELECT DISTINCT - 49 * + - 99 - 70 col0
----
4781

onlyif mysql # DIV for integer division: 
query I rowsort label-688
SELECT - 12 DIV 65 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-688
SELECT - 12 / 65 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-689
SELECT ALL + ( - 1 ) DIV + + ( 11 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-689
SELECT ALL + ( - 1 ) / + + ( 11 ) col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-690
SELECT - 16 * - - 93 + - - 67 + 60 + - 48 * - - 14 * - - 19 + - 65 + - + 59 + 54 * 45 DIV - - 97 + 89
----
-14139

skipif mysql # not compatible
query I rowsort label-690
SELECT - 16 * - - 93 + - - 67 + 60 + - 48 * - - 14 * - - 19 + - 65 + - + 59 + 54 * 45 / - - 97 + 89
----
-14139

onlyif mysql # aggregate syntax: 
query I rowsort label-691
SELECT + SUM( 32 ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-691
SELECT + SUM ( 32 ) AS col1
----
32

query I rowsort
SELECT DISTINCT + - 75 * + 54 AS col0
----
-4050

onlyif mysql # aggregate syntax: 
query I rowsort label-693
SELECT ( + COUNT( * ) ) * - + COALESCE ( - 66, - + 8 ) + + + 72 + 58
----
196

skipif mysql # not compatible
query I rowsort label-693
SELECT ( + COUNT ( * ) ) * - + COALESCE ( - 66, - + 8 ) + + + 72 + 58
----
196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-694
SELECT + COUNT( * ) * + 30 + + ( + 57 ) - - + 69 - - MAX( DISTINCT + 74 ) * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-694
SELECT + COUNT ( * ) * + 30 + + ( + 57 ) - - + 69 - - MAX ( DISTINCT + 74 ) * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - - 92 + - 98
----
-6

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

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

query II rowsort
SELECT ALL + 75 AS col0, 11 + 63 * - - 37 AS col2
----
75
2342

onlyif mysql # DIV for integer division: 
query I rowsort label-698
SELECT - - 42 * + + 83 DIV + + 1 AS col1
----
3486

skipif mysql # not compatible
query I rowsort label-698
SELECT - - 42 * + + 83 / + + 1 AS col1
----
3486

onlyif mysql # aggregate syntax: 
query I rowsort label-699
SELECT + 28 * + + 63 * - 9 + + + COUNT( * ) * - - 73
----
-15803

skipif mysql # not compatible
query I rowsort label-699
SELECT + 28 * + + 63 * - 9 + + + COUNT ( * ) * - - 73
----
-15803

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-702
SELECT ALL 45 * 52 + 19 + + NULLIF ( COUNT( + 37 ), - - 59 + + 30 + - 46 ) / - + CAST( NULL AS SIGNED ) * - 86 * - - 58 * - + 73 + + 74 / + COUNT( * ) * 6
----
NULL

skipif mysql # not compatible
query I rowsort label-702
SELECT ALL 45 * 52 + 19 + + NULLIF ( COUNT ( + 37 ), - - 59 + + 30 + - 46 ) / - + CAST ( NULL AS INTEGER ) * - 86 * - - 58 * - + 73 + + 74 / + COUNT ( * ) * 6
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-703
SELECT - ( + CASE + 65 WHEN + ( - NULLIF ( - - COALESCE ( - 1, + 19 ), - COUNT( * ) ) ) + 4 * + 86 * + 5 * - - CAST( - 72 AS SIGNED ) - - 30 THEN + 88 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-703
SELECT - ( + CASE + 65 WHEN + ( - NULLIF ( - - COALESCE ( - 1, + 19 ), - COUNT ( * ) ) ) + 4 * + 86 * + 5 * - - CAST ( - 72 AS INTEGER ) - - 30 THEN + 88 END )
----
NULL

query I rowsort
SELECT + 78 + + 0
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-705
SELECT ALL + 32 + 85 + + 8 DIV + + 11 AS col2
----
117

skipif mysql # not compatible
query I rowsort label-705
SELECT ALL + 32 + 85 + + 8 / + + 11 AS col2
----
117

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-707
SELECT DISTINCT COUNT( * ) + + - 8
----
-7

skipif mysql # not compatible
query I rowsort label-707
SELECT DISTINCT COUNT ( * ) + + - 8
----
-7

query II rowsort
SELECT ALL 44, 83 AS col2
----
44
83

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

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

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

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

query II rowsort
SELECT 55 AS col2, - 43 + + 37 AS col2
----
55
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-712
SELECT ALL 8 + + 94 - - - 99 * 34 - + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-712
SELECT ALL 8 + + 94 - - - 99 * 34 - + CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT 1 * - 69 * 15 AS col0
----
-1035

onlyif mysql # aggregate syntax: 
query I rowsort label-714
SELECT 7 + COALESCE ( - COALESCE ( + COUNT( * ), + MIN( ALL - 6 ) + 87 ), - 66, + ( - 37 ), - - COUNT( * ) * - CASE + 25 WHEN + 94 THEN + - 91 + 56 ELSE NULL END + + COUNT( DISTINCT 34 ) + + 43 )
----
6

skipif mysql # not compatible
query I rowsort label-714
SELECT 7 + COALESCE ( - COALESCE ( + COUNT ( * ), + MIN ( ALL - 6 ) + 87 ), - 66, + ( - 37 ), - - COUNT ( * ) * - CASE + 25 WHEN + 94 THEN + - 91 + 56 ELSE NULL END + + COUNT ( DISTINCT 34 ) + + 43 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-715
SELECT COALESCE ( + COUNT( * ), + + CASE - 75 WHEN - 48 * CASE 37 WHEN - 34 THEN - + SUM( - + 2 ) END + - 20 THEN - 45 WHEN 1 THEN NULL END + 8 * 60 ) * - 16 * 30
----
-480

skipif mysql # not compatible
query I rowsort label-715
SELECT COALESCE ( + COUNT ( * ), + + CASE - 75 WHEN - 48 * CASE 37 WHEN - 34 THEN - + SUM ( - + 2 ) END + - 20 THEN - 45 WHEN 1 THEN NULL END + 8 * 60 ) * - 16 * 30
----
-480

onlyif mysql # aggregate syntax: 
query I rowsort label-716
SELECT ALL 72 - + 54 * ( COUNT( * ) )
----
18

skipif mysql # not compatible
query I rowsort label-716
SELECT ALL 72 - + 54 * ( COUNT ( * ) )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-717
SELECT DISTINCT - MAX( DISTINCT - + 94 )
----
94

skipif mysql # not compatible
query I rowsort label-717
SELECT DISTINCT - MAX ( DISTINCT - + 94 )
----
94

query II rowsort
SELECT DISTINCT - 68, COALESCE ( + 95, + 86 ) AS col2
----
-68
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-719
SELECT ALL - 71 AS col1, + CASE + COUNT( * ) WHEN + + COUNT( DISTINCT + 14 ) THEN + + CASE - - ( - + 23 ) WHEN + NULLIF ( - + 85, - 9 ) THEN NULL WHEN 37 THEN - 44 * + - 95 * 27 + + + CAST( NULL AS SIGNED ) ELSE NULL END * + 22 ELSE 22 - 42 END * + 16 + + 81 + + 53
----
-71
NULL

skipif mysql # not compatible
query II rowsort label-719
SELECT ALL - 71 AS col1, + CASE + COUNT ( * ) WHEN + + COUNT ( DISTINCT + 14 ) THEN + + CASE - - ( - + 23 ) WHEN + NULLIF ( - + 85, - 9 ) THEN NULL WHEN 37 THEN - 44 * + - 95 * 27 + + + CAST ( NULL AS INTEGER ) ELSE NULL END * + 22 ELSE 22 - 42 END * + 16 + + 81 + + 53
----
-71
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-720
SELECT - 59 * + ( + - 57 ) * - 97 + - 43 + + - 2 + MAX( ALL + ( - 86 ) ) + + - MAX( DISTINCT + 44 ) + + - CASE MIN( ALL - 76 ) WHEN + ( + 84 ) + + + 95 THEN NULL WHEN + + 61 * + 22 THEN - COUNT( * ) ELSE NULL END * - + 96 AS col1, + 40
----
NULL
40

skipif mysql # not compatible
query II rowsort label-720
SELECT - 59 * + ( + - 57 ) * - 97 + - 43 + + - 2 + MAX ( ALL + ( - 86 ) ) + + - MAX ( DISTINCT + 44 ) + + - CASE MIN ( ALL - 76 ) WHEN + ( + 84 ) + + + 95 THEN NULL WHEN + + 61 * + 22 THEN - COUNT ( * ) ELSE NULL END * - + 96 AS col1, + 40
----
NULL
40

query II rowsort
SELECT + 76 col2, 33
----
76
33

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-723
SELECT 56 * + ( - - CAST( NULL AS SIGNED ) ) + - 71 + MIN( 58 ) / + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-723
SELECT 56 * + ( - - CAST ( NULL AS INTEGER ) ) + - 71 + MIN ( 58 ) / + 6
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-724
SELECT COUNT( * ) * + 71 - 59 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-724
SELECT COUNT ( * ) * + 71 - 59 AS col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-725
SELECT + COALESCE ( - COUNT( * ), 70 * + - 6 ) * - + COUNT( * ) * 61 - 0 AS col1
----
61

skipif mysql # not compatible
query I rowsort label-725
SELECT + COALESCE ( - COUNT ( * ), 70 * + - 6 ) * - + COUNT ( * ) * 61 - 0 AS col1
----
61

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

onlyif mysql # aggregate syntax: 
query II rowsort label-727
SELECT + CASE - 57 WHEN ( 48 ) THEN + - COALESCE ( + 97, - + 90 * 66 * + + COUNT( 10 ) ) * - 5 ELSE NULL END, + 41 AS col2
----
NULL
41

skipif mysql # not compatible
query II rowsort label-727
SELECT + CASE - 57 WHEN ( 48 ) THEN + - COALESCE ( + 97, - + 90 * 66 * + + COUNT ( 10 ) ) * - 5 ELSE NULL END, + 41 AS col2
----
NULL
41

query II rowsort
SELECT + 33, COALESCE ( 37, - 35, + 93 ) AS col1
----
33
37

onlyif mysql # aggregate syntax: 
query II rowsort label-729
SELECT DISTINCT - - COALESCE ( - 25, + + 12 * - COUNT( * ) ) AS col2, 27
----
-25
27

skipif mysql # not compatible
query II rowsort label-729
SELECT DISTINCT - - COALESCE ( - 25, + + 12 * - COUNT ( * ) ) AS col2, 27
----
-25
27

onlyif mysql # aggregate syntax: 
query I rowsort label-730
SELECT ALL - ( SUM( + 77 ) ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-730
SELECT ALL - ( SUM ( + 77 ) ) AS col2
----
-77

query I rowsort
SELECT ALL - - NULLIF ( 43, - + 39 ) AS col2
----
43

query I rowsort
SELECT DISTINCT - + ( 67 ) AS col1
----
-67

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

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

query II rowsort
SELECT ALL - - 96 AS col0, 39 AS col0
----
96
39

onlyif mysql # aggregate syntax: 
query I rowsort label-735
SELECT DISTINCT - + 55 + + - MIN( DISTINCT - 65 ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-735
SELECT DISTINCT - + 55 + + - MIN ( DISTINCT - 65 ) AS col0
----
10

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

skipif mysql # not compatible
query I rowsort label-736
SELECT ALL + + 93 + + - COUNT ( * ) / ( - 34 )
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-737
SELECT 69 DIV - 37
----
-1

skipif mysql # not compatible
query I rowsort label-737
SELECT 69 / - 37
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-738
SELECT ALL - 99 + + + COUNT( * )
----
-98

skipif mysql # not compatible
query I rowsort label-738
SELECT ALL - 99 + + + COUNT ( * )
----
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-739
SELECT + 88 - + 24 DIV 58 * - ( COUNT( * ) ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-739
SELECT + 88 - + 24 / 58 * - ( COUNT ( * ) ) AS col1
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-740
SELECT ALL + COUNT( * ) * + + 27 DIV 26 + COUNT( * ) + - + 38 * 64
----
-2430

skipif mysql # not compatible
query I rowsort label-740
SELECT ALL + COUNT ( * ) * + + 27 / 26 + COUNT ( * ) + - + 38 * 64
----
-2430

query I rowsort
SELECT DISTINCT + 55 + + - 83 - + + 81 * + 64 AS col2
----
-5212

onlyif mysql # aggregate syntax: 
query I rowsort label-742
SELECT DISTINCT + 46 * + ( + 39 ) * COALESCE ( 77, + COUNT( * ) ) AS col2
----
138138

skipif mysql # not compatible
query I rowsort label-742
SELECT DISTINCT + 46 * + ( + 39 ) * COALESCE ( 77, + COUNT ( * ) ) AS col2
----
138138

query I rowsort
SELECT DISTINCT 9 + - 28 * - 23
----
653

onlyif mysql # aggregate syntax: 
query I rowsort label-744
SELECT COUNT( * ) - 64 * 52
----
-3327

skipif mysql # not compatible
query I rowsort label-744
SELECT COUNT ( * ) - 64 * 52
----
-3327

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-746
SELECT NULLIF ( MIN( DISTINCT + ( 80 ) ), + 75 * COUNT( * ) / - COUNT( * ) * - + 24 ) * 51 AS col1
----
4080

skipif mysql # not compatible
query I rowsort label-746
SELECT NULLIF ( MIN ( DISTINCT + ( 80 ) ), + 75 * COUNT ( * ) / - COUNT ( * ) * - + 24 ) * 51 AS col1
----
4080

onlyif mysql # aggregate syntax: 
query I rowsort label-747
SELECT ALL + 1 + - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-747
SELECT ALL + 1 + - COUNT ( * ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-748
SELECT ALL + 38 - 43 DIV - 67 + - - 69 - + 0 col1
----
107

skipif mysql # not compatible
query I rowsort label-748
SELECT ALL + 38 - 43 / - 67 + - - 69 - + 0 col1
----
107

query I rowsort
SELECT 1 + + - NULLIF ( + 58, - 87 ) col0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-750
SELECT COUNT( * ) + 27 * + + NULLIF ( + 78, COUNT( * ) * MIN( 17 ) + + - 98 * 92 * CASE 66 WHEN - 72 THEN + COUNT( * ) * - 13 END + - 10 )
----
2107

skipif mysql # not compatible
query I rowsort label-750
SELECT COUNT ( * ) + 27 * + + NULLIF ( + 78, COUNT ( * ) * MIN ( 17 ) + + - 98 * 92 * CASE 66 WHEN - 72 THEN + COUNT ( * ) * - 13 END + - 10 )
----
2107

onlyif mysql # aggregate syntax: 
query I rowsort label-751
SELECT ALL + COUNT( * ) - - + 12
----
13

skipif mysql # not compatible
query I rowsort label-751
SELECT ALL + COUNT ( * ) - - + 12
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-752
SELECT DISTINCT - 84 DIV - + MIN( DISTINCT + 31 )
----
2

skipif mysql # not compatible
query I rowsort label-752
SELECT DISTINCT - 84 / - + MIN ( DISTINCT + 31 )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-753
SELECT DISTINCT 1 * CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-753
SELECT DISTINCT 1 * CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-754
SELECT DISTINCT ( + 78 ) * ( 85 ) DIV - + 38 AS col2
----
-174

skipif mysql # not compatible
query I rowsort label-754
SELECT DISTINCT ( + 78 ) * ( 85 ) / - + 38 AS col2
----
-174

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-755
SELECT 0 DIV - ( - 76 ) * - - 17 + - CAST( - 3 AS SIGNED ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-755
SELECT 0 / - ( - 76 ) * - - 17 + - CAST ( - 3 AS INTEGER ) AS col1
----
3

query I rowsort
SELECT + 3 * + 87 AS col2
----
261

onlyif mysql # DIV for integer division: 
query I rowsort label-757
SELECT ALL 0 DIV + + 10 * - 83
----
0

skipif mysql # not compatible
query I rowsort label-757
SELECT ALL 0 / + + 10 * - 83
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-758
SELECT ALL - - COALESCE ( 12, 67, COUNT( * ) * + 97 * + 64 * + 15 * + - 51 )
----
12

skipif mysql # not compatible
query I rowsort label-758
SELECT ALL - - COALESCE ( 12, 67, COUNT ( * ) * + 97 * + 64 * + 15 * + - 51 )
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-759
SELECT DISTINCT - CAST( - AVG ( DISTINCT + + 59 ) AS SIGNED ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-759
SELECT DISTINCT - CAST ( - AVG ( DISTINCT + + 59 ) AS INTEGER ) AS col1
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-760
SELECT ALL - 64 + CASE + 24 WHEN - - 36 * + - 24 * - - 53 * + - 66 THEN NULL WHEN - + 70 + 49 THEN NULL WHEN + ( + + 95 ) * - 21 THEN - 99 ELSE + - CAST( + COUNT( * ) AS SIGNED ) * + MAX( + - 34 ) * COUNT( * ) * - 55 + - + 72 + - - 44 END + - 85 + MAX( DISTINCT + 29 )
----
-2018

skipif mysql # not compatible
query I rowsort label-760
SELECT ALL - 64 + CASE + 24 WHEN - - 36 * + - 24 * - - 53 * + - 66 THEN NULL WHEN - + 70 + 49 THEN NULL WHEN + ( + + 95 ) * - 21 THEN - 99 ELSE + - CAST ( + COUNT ( * ) AS INTEGER ) * + MAX ( + - 34 ) * COUNT ( * ) * - 55 + - + 72 + - - 44 END + - 85 + MAX ( DISTINCT + 29 )
----
-2018

onlyif mysql # DIV for integer division: 
query I rowsort label-761
SELECT + COALESCE ( + 85, + 73 DIV + 39 + + 86, - 43, + 21 ) * - 71 - - 55 AS col1
----
-5980

skipif mysql # not compatible
query I rowsort label-761
SELECT + COALESCE ( + 85, + 73 / + 39 + + 86, - 43, + 21 ) * - 71 - - 55 AS col1
----
-5980

onlyif mysql # aggregate syntax: 
query I rowsort label-762
SELECT - SUM( + + 12 ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-762
SELECT - SUM ( + + 12 ) AS col1
----
-12

query I rowsort
SELECT 48 * - 11 AS col0
----
-528

onlyif mysql # aggregate syntax: 
query I rowsort label-764
SELECT + 19 * - COUNT( * ) + + + 7
----
-12

skipif mysql # not compatible
query I rowsort label-764
SELECT + 19 * - COUNT ( * ) + + + 7
----
-12

query II rowsort
SELECT ALL 89 + 68 AS col2, 4
----
157
4

onlyif mysql # aggregate syntax: 
query I rowsort label-766
SELECT + COUNT( ALL 70 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-766
SELECT + COUNT ( ALL 70 ) AS col2
----
1

query I rowsort
SELECT - 42 - 34 + 86 AS col0
----
10

query I rowsort
SELECT ALL 56 + + 26
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-769
SELECT COUNT( * ) + + 90 DIV - CASE - + 35 WHEN COALESCE ( - COUNT( * ), - + 90 * - - 18 + + 3 * 17 * + SUM( DISTINCT - 83 ) * - 99 ) THEN + - 98 * + 91 ELSE + 44 END
----
-1

skipif mysql # not compatible
query I rowsort label-769
SELECT COUNT ( * ) + + 90 / - CASE - + 35 WHEN COALESCE ( - COUNT ( * ), - + 90 * - - 18 + + 3 * 17 * + SUM ( DISTINCT - 83 ) * - 99 ) THEN + - 98 * + 91 ELSE + 44 END
----
-1

query I rowsort
SELECT ALL 69 + + - 65 * + + 98 AS col1
----
-6301

query I rowsort
SELECT 1 + + + 66 AS col0
----
67

query II rowsort
SELECT ALL - 37 col2, 46 * 39
----
-37
1794

query I rowsort
SELECT DISTINCT 97 + 54 AS col2
----
151

query I rowsort
SELECT - 26 + + - 15
----
-41

query I rowsort
SELECT ALL - 69 - + 76
----
-145

onlyif mysql # aggregate syntax: 
query I rowsort label-776
SELECT + COUNT( * ) * SUM( + 96 ) * - 4 * - 70 col2
----
26880

skipif mysql # not compatible
query I rowsort label-776
SELECT + COUNT ( * ) * SUM ( + 96 ) * - 4 * - 70 col2
----
26880

query I rowsort
SELECT - 44 * - + 95 col0
----
4180

onlyif mysql # aggregate syntax: 
query I rowsort label-778
SELECT - COUNT( * ) + + - ( 86 ) * 61 + - 26
----
-5273

skipif mysql # not compatible
query I rowsort label-778
SELECT - COUNT ( * ) + + - ( 86 ) * 61 + - 26
----
-5273

onlyif mysql # aggregate syntax: 
query I rowsort label-779
SELECT ALL SUM( 74 )
----
74

skipif mysql # not compatible
query I rowsort label-779
SELECT ALL SUM ( 74 )
----
74

query I rowsort
SELECT - 8 * + + 25 AS col1
----
-200

onlyif mysql # aggregate syntax: 
query I rowsort label-781
SELECT DISTINCT MIN( 56 )
----
56

skipif mysql # not compatible
query I rowsort label-781
SELECT DISTINCT MIN ( 56 )
----
56

query II rowsort
SELECT - 62, + 78 + + 91 * + ( + + 98 ) - ( - + 76 ) AS col1
----
-62
9072

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

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

query I rowsort
SELECT ALL - 79 * + 21
----
-1659

query I rowsort
SELECT - 48 * 0
----
0

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

skipif mysql # not compatible
query I rowsort label-786
SELECT - 54 * - + CAST ( COUNT ( * ) AS INTEGER ) AS col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-787
SELECT DISTINCT COALESCE ( - 36, - MIN( ALL - 6 ) * + + COUNT( * ) - + 67 ) col0
----
-36

skipif mysql # not compatible
query I rowsort label-787
SELECT DISTINCT COALESCE ( - 36, - MIN ( ALL - 6 ) * + + COUNT ( * ) - + 67 ) col0
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-788
SELECT DISTINCT COALESCE ( + - 9, - - NULLIF ( - - 44, CASE 26 WHEN + COUNT( * ) + - - SUM( + + 60 ) THEN NULL WHEN - COUNT( * ) THEN NULL ELSE + CAST( NULL AS SIGNED ) + COUNT( * ) * - + 8 * + 19 * SUM( ALL - + 90 ) + + 12 / + + 51 END ) * + + 43, - 62 * 39 ) col0, + 46
----
-9
46

skipif mysql # not compatible
query II rowsort label-788
SELECT DISTINCT COALESCE ( + - 9, - - NULLIF ( - - 44, CASE 26 WHEN + COUNT ( * ) + - - SUM ( + + 60 ) THEN NULL WHEN - COUNT ( * ) THEN NULL ELSE + CAST ( NULL AS INTEGER ) + COUNT ( * ) * - + 8 * + 19 * SUM ( ALL - + 90 ) + + 12 / + + 51 END ) * + + 43, - 62 * 39 ) col0, + 46
----
-9
46

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

query I rowsort
SELECT - - 54 + - 95
----
-41

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

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

query I rowsort
SELECT ALL + 57 * - 64 + + + 96
----
-3552

query I rowsort
SELECT ALL 42 * + 18 + - 15 AS col0
----
741

onlyif mysql # DIV for integer division: 
query II rowsort label-795
SELECT + - 28 DIV - 91 + ( 93 ), - 24 + - 19 + - 72 * 10 * - 33 * 8 + + - 35 AS col0
----
93
190002

skipif mysql # not compatible
query II rowsort label-795
SELECT + - 28 / - 91 + ( 93 ), - 24 + - 19 + - 72 * 10 * - 33 * 8 + + - 35 AS col0
----
93
190002

query II rowsort
SELECT - 18 AS col1, - 6 col0
----
-18
-6

query I rowsort
SELECT + 61 * + + 47 + - 47
----
2820

onlyif mysql # aggregate syntax: 
query I rowsort label-798
SELECT ALL + 77 * - 38 + + 50 * + MAX( 58 ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-798
SELECT ALL + 77 * - 38 + + 50 * + MAX ( 58 ) AS col1
----
-26

query II rowsort
SELECT DISTINCT + 60 AS col1, + 23 * + 59
----
60
1357

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

skipif mysql # not compatible
query I rowsort label-800
SELECT + SUM ( - 37 )
----
-37

query I rowsort
SELECT + 50 * 93
----
4650

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-802
SELECT ALL 24 * + + 65 - + 14 + + - 71 + + 89 * CAST( + 67 AS SIGNED ) * + 11 * + - NULLIF ( COUNT( * ), + 27 ) col2
----
-64118

skipif mysql # not compatible
query I rowsort label-802
SELECT ALL 24 * + + 65 - + 14 + + - 71 + + 89 * CAST ( + 67 AS INTEGER ) * + 11 * + - NULLIF ( COUNT ( * ), + 27 ) col2
----
-64118

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

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

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

query I rowsort
SELECT + 14 - 75 - - 54
----
-7

query I rowsort
SELECT - 20 * - 10 AS col0
----
200

onlyif mysql # aggregate syntax: 
query I rowsort label-807
SELECT ALL SUM( DISTINCT + + 87 ) * - 79 - + 58 * 27
----
-8439

skipif mysql # not compatible
query I rowsort label-807
SELECT ALL SUM ( DISTINCT + + 87 ) * - 79 - + 58 * 27
----
-8439

query I rowsort
SELECT DISTINCT 55 * - + 51
----
-2805

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-809
SELECT + 31 + - COUNT( ALL 38 ) + - 91 DIV MAX( DISTINCT + 59 ) + + COUNT( * )
----
30

skipif mysql # not compatible
query I rowsort label-809
SELECT + 31 + - COUNT ( ALL 38 ) + - 91 / MAX ( DISTINCT + 59 ) + + COUNT ( * )
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-810
SELECT - 37 - - COALESCE ( - 12, - ( + 35 ), - SUM( + CAST( NULL AS SIGNED ) ) )
----
-49

skipif mysql # not compatible
query I rowsort label-810
SELECT - 37 - - COALESCE ( - 12, - ( + 35 ), - SUM ( + CAST ( NULL AS INTEGER ) ) )
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-811
SELECT DISTINCT + CAST( NULL AS SIGNED ) / - SUM( + 63 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-811
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / - SUM ( + 63 ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-812
SELECT ALL COALESCE ( CAST( - AVG ( - + 75 ) AS SIGNED ), + + 0 )
----
75

skipif mysql # not compatible
query I rowsort label-812
SELECT ALL COALESCE ( CAST ( - AVG ( - + 75 ) AS INTEGER ), + + 0 )
----
75

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-814
SELECT ALL + 3 * + COUNT( * ) * 57
----
171

skipif mysql # not compatible
query I rowsort label-814
SELECT ALL + 3 * + COUNT ( * ) * 57
----
171

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-816
SELECT DISTINCT ( + COUNT( + NULLIF ( - - 20, - 2 ) ) ) + - 44 AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-816
SELECT DISTINCT ( + COUNT ( + NULLIF ( - - 20, - 2 ) ) ) + - 44 AS col0
----
-43

query I rowsort
SELECT ALL + 28 + + 60 + 35 * ( + 89 )
----
3203

query I rowsort
SELECT ALL - 70 + + 48 - + + 25
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-819
SELECT DISTINCT MAX( 43 )
----
43

skipif mysql # not compatible
query I rowsort label-819
SELECT DISTINCT MAX ( 43 )
----
43

query I rowsort
SELECT ALL - - 78 + - 5
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-821
SELECT - ( - 13 ) * - COUNT( * ) * + 54
----
-702

skipif mysql # not compatible
query I rowsort label-821
SELECT - ( - 13 ) * - COUNT ( * ) * + 54
----
-702

query I rowsort
SELECT DISTINCT - - 61 + + + 99 AS col0
----
160

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-824
SELECT ALL ( CAST( NULL AS SIGNED ) ) / - + 7 * 7 * - + 87 * - 36 + - 68, MAX( DISTINCT - + 65 ) AS col0
----
NULL
-65

skipif mysql # not compatible
query II rowsort label-824
SELECT ALL ( CAST ( NULL AS INTEGER ) ) / - + 7 * 7 * - + 87 * - 36 + - 68, MAX ( DISTINCT - + 65 ) AS col0
----
NULL
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-825
SELECT + - ( + 37 ) DIV 44 * 75 + - + 34 * - - 27
----
-918

skipif mysql # not compatible
query I rowsort label-825
SELECT + - ( + 37 ) / 44 * 75 + - + 34 * - - 27
----
-918

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-826
SELECT DISTINCT + COUNT( * ) DIV - - COALESCE ( - 66, 88 ) - ( - - 76 ) * + 12 - + 57
----
-969

skipif mysql # not compatible
query I rowsort label-826
SELECT DISTINCT + COUNT ( * ) / - - COALESCE ( - 66, 88 ) - ( - - 76 ) * + 12 - + 57
----
-969

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-827
SELECT - 95 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-827
SELECT - 95 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT - 34 + 40, COALESCE ( + 53, + 97 ) col2
----
6
53

onlyif mysql # DIV for integer division: 
query I rowsort label-829
SELECT - - 51 DIV + 42 - - COALESCE ( + - 65, 72 * - - 42 * ( - AVG ( DISTINCT 98 ) ) DIV - - 34 ) * 85
----
-5524

skipif mysql # not compatible
query I rowsort label-829
SELECT - - 51 / + 42 - - COALESCE ( + - 65, 72 * - - 42 * ( - AVG ( DISTINCT 98 ) ) / - - 34 ) * 85
----
-5524

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

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

query I rowsort
SELECT DISTINCT 72 * - 69
----
-4968

query I rowsort
SELECT 43 * 38 + - ( + 47 )
----
1587

onlyif mysql # aggregate syntax: 
query I rowsort label-833
SELECT COUNT( * ) * - SUM( + COALESCE ( - 60, - 77 * 7, + + 42 ) ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-833
SELECT COUNT ( * ) * - SUM ( + COALESCE ( - 60, - 77 * 7, + + 42 ) ) AS col0
----
60

query II rowsort
SELECT DISTINCT 11 col0, - 70
----
11
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-835
SELECT ALL 95 + COUNT( * ) * - + 74 - 65 * - 0 + + + 49 + - - 40 AS col2
----
110

skipif mysql # not compatible
query I rowsort label-835
SELECT ALL 95 + COUNT ( * ) * - + 74 - 65 * - 0 + + + 49 + - - 40 AS col2
----
110

query I rowsort
SELECT ALL 71 + + - 4 AS col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-837
SELECT DISTINCT ( - - 99 ) + CASE 10 WHEN - + COUNT( ALL + - 19 ) * + ( - + 22 ) * - SUM( ALL + ( - 32 ) ) * 1 - + 94 THEN NULL WHEN - 49 THEN NULL ELSE COALESCE ( 0, + - 54 ) END AS col0
----
99

skipif mysql # not compatible
query I rowsort label-837
SELECT DISTINCT ( - - 99 ) + CASE 10 WHEN - + COUNT ( ALL + - 19 ) * + ( - + 22 ) * - SUM ( ALL + ( - 32 ) ) * 1 - + 94 THEN NULL WHEN - 49 THEN NULL ELSE COALESCE ( 0, + - 54 ) END AS col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-838
SELECT ALL - 44 + MIN( 23 ) + 62
----
41

skipif mysql # not compatible
query I rowsort label-838
SELECT ALL - 44 + MIN ( 23 ) + 62
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-839
SELECT DISTINCT CAST( - - 82 AS SIGNED )
----
82

skipif mysql # not compatible
query I rowsort label-839
SELECT DISTINCT CAST ( - - 82 AS INTEGER )
----
82

query I rowsort
SELECT DISTINCT + 66 + + 10
----
76

query II rowsort
SELECT - 80 AS col1, 94 + + + 22
----
-80
116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-842
SELECT 0 * COUNT( * ) DIV - 16 * - 92 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-842
SELECT 0 * COUNT ( * ) / - 16 * - 92 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-843
SELECT ALL + + 46 DIV + + 23
----
2

skipif mysql # not compatible
query I rowsort label-843
SELECT ALL + + 46 / + + 23
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-844
SELECT + COUNT( * ) - - COUNT( * ) + - COUNT( * ) * + - COUNT( ALL 37 ) - - - 83 - + 22 * + 74 * 55 * + 2 * - 42 + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-844
SELECT + COUNT ( * ) - - COUNT ( * ) + - COUNT ( * ) * + - COUNT ( ALL 37 ) - - - 83 - + 22 * + 74 * 55 * + 2 * - 42 + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

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

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

query I rowsort
SELECT - 39 + + + 87
----
48

onlyif mysql # DIV for integer division: 
query II rowsort label-847
SELECT 93 DIV 12 - 50 AS col1, - 23 AS col1
----
-43
-23

skipif mysql # not compatible
query II rowsort label-847
SELECT 93 / 12 - 50 AS col1, - 23 AS col1
----
-43
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-848
SELECT ALL - 72 - - + 37 - - 36 + ( 3 ) + + - COUNT( * ) DIV + - 48 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-848
SELECT ALL - 72 - - + 37 - - 36 + ( 3 ) + + - COUNT ( * ) / + - 48 AS col0
----
4

query II rowsort
SELECT + 15 col2, + 55 + - 15
----
15
40

query I rowsort
SELECT ALL 35 * + - 22 col1
----
-770

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

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

query I rowsort
SELECT ALL + 31 * - - 62 AS col2
----
1922

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-854
SELECT DISTINCT - ( + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-854
SELECT DISTINCT - ( + CAST ( NULL AS REAL ) )
----
NULL

query II rowsort
SELECT 4 * - - 0, - 24 AS col2
----
0
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-856
SELECT COUNT( * ) * + + MIN( DISTINCT + + 47 ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-856
SELECT COUNT ( * ) * + + MIN ( DISTINCT + + 47 ) AS col0
----
47

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

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

query I rowsort
SELECT DISTINCT - CASE - 76 WHEN 44 THEN 77 * - + 12 + + 68 * - 66 END col2
----
NULL

query II rowsort
SELECT ALL - 55 AS col1, 72 AS col2
----
-55
72

onlyif mysql # aggregate syntax: 
query I rowsort label-860
SELECT COUNT( * ) * 10 * + 87 AS col2
----
870

skipif mysql # not compatible
query I rowsort label-860
SELECT COUNT ( * ) * 10 * + 87 AS col2
----
870

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

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

query I rowsort
SELECT ALL + COALESCE ( + 72, COALESCE ( - + 36, 31 ) ) * 81 + + 99
----
5931

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

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

query I rowsort
SELECT 55 * 60 AS col2
----
3300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-865
SELECT 26 - - + CAST( NULL AS SIGNED ) + + + 52 + + + 4 + + NULLIF ( - + 89, + 23 / + 7 * + 60 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-865
SELECT 26 - - + CAST ( NULL AS INTEGER ) + + + 52 + + + 4 + + NULLIF ( - + 89, + 23 / + 7 * + 60 ) AS col0
----
NULL

query I rowsort
SELECT 35 - 59 AS col2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-867
SELECT ALL - COALESCE ( 30, COALESCE ( + 66, + - 38 + 91 + + - COUNT( ALL - 56 ) * + 24 ) ) * - 71
----
2130

skipif mysql # not compatible
query I rowsort label-867
SELECT ALL - COALESCE ( 30, COALESCE ( + 66, + - 38 + 91 + + - COUNT ( ALL - 56 ) * + 24 ) ) * - 71
----
2130

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-868
SELECT COUNT( * ) * + 29 DIV 48 - - 92, 45 AS col1
----
92
45

skipif mysql # not compatible
query II rowsort label-868
SELECT COUNT ( * ) * + 29 / 48 - - 92, 45 AS col1
----
92
45

onlyif mysql # DIV for integer division: 
query I rowsort label-869
SELECT ALL 89 DIV - - NULLIF ( 16, + COALESCE ( + 18, + 89 * 1 DIV COALESCE ( + 40, - 31, + + 90 ) ) * + 99 * + - 62 + + 5 ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-869
SELECT ALL 89 / - - NULLIF ( 16, + COALESCE ( + 18, + 89 * 1 / COALESCE ( + 40, - 31, + + 90 ) ) * + 99 * + - 62 + + 5 ) AS col2
----
5

onlyif mysql # aggregate syntax: 
query III rowsort label-870
SELECT - 16 AS col1, 75 + + 80 - - 74 AS col2, - 30 * - COUNT( 56 ) - + ( 45 ) AS col0
----
-16
229
-15

skipif mysql # not compatible
query III rowsort label-870
SELECT - 16 AS col1, 75 + + 80 - - 74 AS col2, - 30 * - COUNT ( 56 ) - + ( 45 ) AS col0
----
-16
229
-15

query I rowsort
SELECT DISTINCT - 3 + + 30 * + 45 * - 85
----
-114753

onlyif mysql # aggregate syntax: 
query I rowsort label-872
SELECT ALL + NULLIF ( + ( + COUNT( * ) ), + + 86 ) + + 13 AS col2
----
14

skipif mysql # not compatible
query I rowsort label-872
SELECT ALL + NULLIF ( + ( + COUNT ( * ) ), + + 86 ) + + 13 AS col2
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-873
SELECT DISTINCT 24 DIV - ( 80 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-873
SELECT DISTINCT 24 / - ( 80 ) AS col0
----
0

query I rowsort
SELECT DISTINCT 83 + 4 AS col0
----
87

query I rowsort
SELECT DISTINCT + 31 + + 68 - + 80 * - 4 AS col0
----
419

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-876
SELECT 82 col0, - NULLIF ( - 29, - 19 ) DIV + 69 + - - COUNT( * ) * - ( 83 ) AS col1
----
82
-83

skipif mysql # not compatible
query II rowsort label-876
SELECT 82 col0, - NULLIF ( - 29, - 19 ) / + 69 + - - COUNT ( * ) * - ( 83 ) AS col1
----
82
-83

query I rowsort
SELECT + 78 + + - 66
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-878
SELECT 36 - - COALESCE ( COUNT( * ), + + COUNT( * ) + + + 48, + 38 ) col2
----
37

skipif mysql # not compatible
query I rowsort label-878
SELECT 36 - - COALESCE ( COUNT ( * ), + + COUNT ( * ) + + + 48, + 38 ) col2
----
37

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

skipif mysql # not compatible
query I rowsort label-879
SELECT - ( - CAST ( + + 46 AS INTEGER ) ) AS col0
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-880
SELECT COUNT( * ) + - ( + 88 ) DIV COUNT( * ) * - 55 * + COUNT( * ) AS col0
----
4841

skipif mysql # not compatible
query I rowsort label-880
SELECT COUNT ( * ) + - ( + 88 ) / COUNT ( * ) * - 55 * + COUNT ( * ) AS col0
----
4841

query II rowsort
SELECT - NULLIF ( 42, + 42 ) + + 20, - 40 AS col0
----
NULL
-40

query I rowsort
SELECT DISTINCT - 43 * - - 76 + 20
----
-3248

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

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

skipif mysql # not compatible
query I rowsort label-884
SELECT COUNT ( * ) * - COUNT ( ALL - 3 ) AS col1
----
-1

query I rowsort
SELECT DISTINCT 29 - - + 62 AS col2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-886
SELECT ALL SUM( + 1 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-886
SELECT ALL SUM ( + 1 ) AS col2
----
1

query I rowsort
SELECT + + 55 * 82 - + + 32 + + + 64 + 36 * 98 * - 4 + - 86
----
-9656

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-888
SELECT - - NULLIF ( - CAST( NULL AS DECIMAL ), - MAX( DISTINCT + - 33 ) * - + CAST( + COUNT( * ) AS SIGNED ) ) * 9 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-888
SELECT - - NULLIF ( - CAST ( NULL AS REAL ), - MAX ( DISTINCT + - 33 ) * - + CAST ( + COUNT ( * ) AS INTEGER ) ) * 9 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-889
SELECT ALL 56 DIV + 19 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-889
SELECT ALL 56 / + 19 AS col0
----
2

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-891
SELECT - - 14 DIV - 38 + + 61 + - 55, 32 * + 25 AS col2
----
6
800

skipif mysql # not compatible
query II rowsort label-891
SELECT - - 14 / - 38 + + 61 + - 55, 32 * + 25 AS col2
----
6
800

onlyif mysql # aggregate syntax: 
query I rowsort label-892
SELECT ALL + CASE - - 85 WHEN MIN( ALL + - 19 ) THEN NULL WHEN + 27 + + + COUNT( * ) THEN + 58 + 59 * 38 * 88 WHEN 53 THEN - + COUNT( * ) + - 32 END * 54 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-892
SELECT ALL + CASE - - 85 WHEN MIN ( ALL + - 19 ) THEN NULL WHEN + 27 + + + COUNT ( * ) THEN + 58 + 59 * 38 * 88 WHEN 53 THEN - + COUNT ( * ) + - 32 END * 54 AS col1
----
NULL

query II rowsort
SELECT DISTINCT 32 * + 54, + CASE - 24 WHEN + + 23 * + 62 THEN - 25 / - - 59 - 29 * 79 ELSE NULL END + 4 AS col0
----
1728
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-894
SELECT - 44 DIV - + COUNT( ALL + 81 )
----
44

skipif mysql # not compatible
query I rowsort label-894
SELECT - 44 / - + COUNT ( ALL + 81 )
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-895
SELECT 43 * + 57 - + 35 DIV 55 AS col0
----
2451

skipif mysql # not compatible
query I rowsort label-895
SELECT 43 * + 57 - + 35 / 55 AS col0
----
2451

onlyif mysql # aggregate syntax: 
query I rowsort label-896
SELECT COALESCE ( + + MIN( DISTINCT - + ( + 47 ) ), - 23 + + ( - - 7 ) * COUNT( * ) * - 97 * 69 ) AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-896
SELECT COALESCE ( + + MIN ( DISTINCT - + ( + 47 ) ), - 23 + + ( - - 7 ) * COUNT ( * ) * - 97 * 69 ) AS col0
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-897
SELECT ALL ( + - 67 ) * 67 * + 0 DIV + + 9 AS col2, MAX( DISTINCT - 35 ) + + 12 * - + 45 * + COUNT( * ) * + - 30 AS col1
----
0
16165

skipif mysql # not compatible
query II rowsort label-897
SELECT ALL ( + - 67 ) * 67 * + 0 / + + 9 AS col2, MAX ( DISTINCT - 35 ) + + 12 * - + 45 * + COUNT ( * ) * + - 30 AS col1
----
0
16165

query I rowsort
SELECT - 80 * 86 * + 36 + - 73
----
-247753

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-899
SELECT - COUNT( * ) + - 69 DIV - COUNT( * )
----
68

skipif mysql # not compatible
query I rowsort label-899
SELECT - COUNT ( * ) + - 69 / - COUNT ( * )
----
68

query I rowsort
SELECT + NULLIF ( 60, - - 46 ) col0
----
60

query I rowsort
SELECT ALL - 73 * + + 53 + + 42 col1
----
-3827

query II rowsort
SELECT - 90 * - + 13 col2, 79 + - + COALESCE ( - - 0, + + ( - - 89 ) ) AS col0
----
1170
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-903
SELECT ALL 17 * - COUNT( * ) / + COUNT( * ) * - COUNT( * ) + + COUNT( * ) + - ( - CASE + 65 WHEN - COUNT( * ) THEN - ( - 43 ) + - + CASE 56 WHEN - CAST( - 79 AS SIGNED ) THEN NULL WHEN - - 54 + - 79 * - - 74 THEN NULL ELSE - - COUNT( * ) END WHEN + - 64 - + 35 THEN NULL ELSE NULL END ) * - CAST( NULL AS SIGNED ) / - - 34 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-903
SELECT ALL 17 * - COUNT ( * ) / + COUNT ( * ) * - COUNT ( * ) + + COUNT ( * ) + - ( - CASE + 65 WHEN - COUNT ( * ) THEN - ( - 43 ) + - + CASE 56 WHEN - CAST ( - 79 AS INTEGER ) THEN NULL WHEN - - 54 + - 79 * - - 74 THEN NULL ELSE - - COUNT ( * ) END WHEN + - 64 - + 35 THEN NULL ELSE NULL END ) * - CAST ( NULL AS INTEGER ) / - - 34 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-904
SELECT 80 * - COUNT( * ) * + CASE + 66 WHEN + - 94 * + CAST( NULL AS SIGNED ) + COUNT( * ) THEN - 3 ELSE NULL END + 29 + + 34 + - 76
----
NULL

skipif mysql # not compatible
query I rowsort label-904
SELECT 80 * - COUNT ( * ) * + CASE + 66 WHEN + - 94 * + CAST ( NULL AS INTEGER ) + COUNT ( * ) THEN - 3 ELSE NULL END + 29 + + 34 + - 76
----
NULL

query I rowsort
SELECT 44 * - 3 - - ( + 93 ) * - 83
----
-7851

query I rowsort
SELECT ALL - 89 * - 14 AS col1
----
1246

onlyif mysql # aggregate syntax: 
query I rowsort label-907
SELECT MIN( - + 56 ) * 69 + - ( + 91 ) AS col0
----
-3955

skipif mysql # not compatible
query I rowsort label-907
SELECT MIN ( - + 56 ) * 69 + - ( + 91 ) AS col0
----
-3955

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-908
SELECT ALL + 47 * - COALESCE ( - 59, - 27 DIV 68 DIV - COUNT( * ) * - 35 ) + + 45 AS col2
----
2818

skipif mysql # not compatible
query I rowsort label-908
SELECT ALL + 47 * - COALESCE ( - 59, - 27 / 68 / - COUNT ( * ) * - 35 ) + + 45 AS col2
----
2818

query I rowsort
SELECT DISTINCT - 63 * 11 + - 45 col1
----
-738

onlyif mysql # aggregate syntax: 
query I rowsort label-910
SELECT DISTINCT - 72 * COUNT( DISTINCT + + 19 ) col1
----
-72

skipif mysql # not compatible
query I rowsort label-910
SELECT DISTINCT - 72 * COUNT ( DISTINCT + + 19 ) col1
----
-72

query I rowsort
SELECT ALL 72 * + 66 * + + 78 + + 13
----
370669

query I rowsort
SELECT ALL + COALESCE ( 15, 26, + + 61 )
----
15

query I rowsort
SELECT ALL - 90 * - + 65 AS col1
----
5850

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-914
SELECT - 24 + - + 99 AS col0, - CAST( + + 77 AS SIGNED ) * CAST( + 14 AS SIGNED )
----
-123
-1078

skipif mysql # not compatible
query II rowsort label-914
SELECT - 24 + - + 99 AS col0, - CAST ( + + 77 AS INTEGER ) * CAST ( + 14 AS INTEGER )
----
-123
-1078

onlyif mysql # aggregate syntax: 
query II rowsort label-915
SELECT DISTINCT - 49 * + COUNT( * ) col2, - 19 * - 23
----
-49
437

skipif mysql # not compatible
query II rowsort label-915
SELECT DISTINCT - 49 * + COUNT ( * ) col2, - 19 * - 23
----
-49
437

query I rowsort
SELECT ALL + 91 - - - 50 AS col0
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-917
SELECT - CAST( NULLIF ( - 85, - 51 + - - COUNT( * ) ) AS SIGNED ) DIV + - 5
----
-17

skipif mysql # not compatible
query I rowsort label-917
SELECT - CAST ( NULLIF ( - 85, - 51 + - - COUNT ( * ) ) AS INTEGER ) / + - 5
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-918
SELECT DISTINCT + COUNT( * ) * 74 + - - 74
----
148

skipif mysql # not compatible
query I rowsort label-918
SELECT DISTINCT + COUNT ( * ) * 74 + - - 74
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-919
SELECT - SUM( - 42 ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-919
SELECT - SUM ( - 42 ) AS col2
----
42

query I rowsort
SELECT + + 70 * CASE + 64 WHEN 1 THEN 37 WHEN + - 12 - + 24 THEN + 71 END AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-922
SELECT DISTINCT + MAX( + 73 ) AS col2
----
73

skipif mysql # not compatible
query I rowsort label-922
SELECT DISTINCT + MAX ( + 73 ) AS col2
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-923
SELECT CAST( NULLIF ( + 78, + + 41 ) AS SIGNED ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-923
SELECT CAST ( NULLIF ( + 78, + + 41 ) AS INTEGER ) AS col1
----
78

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

skipif mysql # not compatible
query I rowsort label-924
SELECT ALL CAST ( NULL AS INTEGER ) * - 13 - - 68
----
NULL

query I rowsort
SELECT + 84 * 65
----
5460

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-926
SELECT - - 92 + + SUM( ALL + 71 ) * - MAX( + COALESCE ( + - 55, 62 DIV - 10 + - 40 + 78 ) ) DIV - - COUNT( * )
----
3997

skipif mysql # not compatible
query I rowsort label-926
SELECT - - 92 + + SUM ( ALL + 71 ) * - MAX ( + COALESCE ( + - 55, 62 / - 10 + - 40 + 78 ) ) / - - COUNT ( * )
----
3997

onlyif mysql # aggregate syntax: 
query I rowsort label-927
SELECT + COUNT( * ) - + 8 + - COUNT( * ) * 39
----
-46

skipif mysql # not compatible
query I rowsort label-927
SELECT + COUNT ( * ) - + 8 + - COUNT ( * ) * 39
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-928
SELECT ALL + SUM( - 5 ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-928
SELECT ALL + SUM ( - 5 ) AS col0
----
-5

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

query I rowsort
SELECT + - 43 * 20 * - + 17
----
14620

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

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

query I rowsort
SELECT DISTINCT 91 * 23
----
2093

onlyif mysql # DIV for integer division: 
query I rowsort label-933
SELECT ALL 1 DIV 18 + + + 72 DIV - 61 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-933
SELECT ALL 1 / 18 + + + 72 / - 61 AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-934
SELECT + ( COALESCE ( + 95, + + 14 + COUNT( + 57 ), - 59 - + 37 * + 45 DIV - 9 ) ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-934
SELECT + ( COALESCE ( + 95, + + 14 + COUNT ( + 57 ), - 59 - + 37 * + 45 / - 9 ) ) AS col1
----
95

query I rowsort
SELECT + 32 * - 6
----
-192

onlyif mysql # DIV for integer division: 
query I rowsort label-936
SELECT 48 * 51 DIV - 36 + 5 AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-936
SELECT 48 * 51 / - 36 + 5 AS col2
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-937
SELECT DISTINCT + 13 / + MAX( + 24 ) + + 72 / + - CASE - 20 WHEN - 90 THEN + COUNT( * ) * + + 37 + - 72 + + 96 * - 42 * - COALESCE ( - - MAX( - 33 ), 11 ) + + + 58 + + - CASE WHEN NOT NULL > - 96 THEN 74 WHEN NULL IS NULL AND NOT ( COUNT( * ) ) = + 97 THEN NULL ELSE + CAST( + 42 AS SIGNED ) + CAST( + + 65 AS SIGNED ) END * + 79 + - 4 * + - 44 WHEN 72 THEN NULL WHEN + - ( + COALESCE ( 98, + 43 * - 11 ) ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-937
SELECT DISTINCT + 13 / + MAX ( + 24 ) + + 72 / + - CASE - 20 WHEN - 90 THEN + COUNT ( * ) * + + 37 + - 72 + + 96 * - 42 * - COALESCE ( - - MAX ( - 33 ), 11 ) + + + 58 + + - CASE WHEN NOT NULL > - 96 THEN 74 WHEN NULL IS NULL AND NOT ( COUNT ( * ) ) = + 97 THEN NULL ELSE + CAST ( + 42 AS INTEGER ) + CAST ( + + 65 AS INTEGER ) END * + 79 + - 4 * + - 44 WHEN 72 THEN NULL WHEN + - ( + COALESCE ( 98, + 43 * - 11 ) ) THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-938
SELECT ALL - 29 DIV + 46 + - + 8 AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-938
SELECT ALL - 29 / + 46 + - + 8 AS col2
----
-8

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

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

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

query I rowsort
SELECT + 2 * 16
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-942
SELECT - COUNT( * ) + - CAST( - + ( ( 70 ) ) AS SIGNED ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-942
SELECT - COUNT ( * ) + - CAST ( - + ( ( 70 ) ) AS INTEGER ) AS col1
----
69

query I rowsort
SELECT DISTINCT 14 * + 51
----
714

query I rowsort
SELECT + 78 * + 20
----
1560

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-945
SELECT ALL + MIN( - 65 ) DIV NULLIF ( 62, SUM( ( + 40 ) ) ) + + + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-945
SELECT ALL + MIN ( - 65 ) / NULLIF ( 62, SUM ( ( + 40 ) ) ) + + + COUNT ( * )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-946
SELECT ALL + 58 * + - CASE CAST( - MIN( ALL - 61 ) AS SIGNED ) WHEN + 91 THEN COUNT( * ) ELSE - 5 END * MAX( + - 66 ) + 46
----
-19094

skipif mysql # not compatible
query I rowsort label-946
SELECT ALL + 58 * + - CASE CAST ( - MIN ( ALL - 61 ) AS INTEGER ) WHEN + 91 THEN COUNT ( * ) ELSE - 5 END * MAX ( + - 66 ) + 46
----
-19094

onlyif mysql # aggregate syntax: 
query I rowsort label-947
SELECT ALL 54 * + COUNT( * ) * 82
----
4428

skipif mysql # not compatible
query I rowsort label-947
SELECT ALL 54 * + COUNT ( * ) * 82
----
4428

onlyif mysql # aggregate syntax: 
query II rowsort label-948
SELECT ALL + 9, MIN( DISTINCT 63 ) AS col2
----
9
63

skipif mysql # not compatible
query II rowsort label-948
SELECT ALL + 9, MIN ( DISTINCT 63 ) AS col2
----
9
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-949
SELECT + ( + CASE - AVG ( ALL + 31 ) WHEN + MAX( ALL - 26 ) THEN NULL WHEN + - 8 + AVG ( DISTINCT CAST( NULL AS SIGNED ) ) THEN - - COUNT( * ) END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-949
SELECT + ( + CASE - AVG ( ALL + 31 ) WHEN + MAX ( ALL - 26 ) THEN NULL WHEN + - 8 + AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) THEN - - COUNT ( * ) END ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-950
SELECT + CAST( + + ( - + 23 ) AS SIGNED ), CAST( NULL AS SIGNED ) * - - SUM( DISTINCT - 67 ) * 84 AS col0
----
-23
NULL

skipif mysql # not compatible
query II rowsort label-950
SELECT + CAST ( + + ( - + 23 ) AS INTEGER ), CAST ( NULL AS INTEGER ) * - - SUM ( DISTINCT - 67 ) * 84 AS col0
----
-23
NULL

query I rowsort
SELECT + 12 - - + 59
----
71

query I rowsort
SELECT - 18 * 56
----
-1008

query I rowsort
SELECT - - 48 * 60 AS col2
----
2880

query I rowsort
SELECT DISTINCT - - 27 * ( - 12 ) AS col0
----
-324

query I rowsort
SELECT DISTINCT 10 * + 74 - - + COALESCE ( - COALESCE ( - + 91, 40 + - CASE 44 WHEN - - 90 + - 34 THEN - 34 END ), - 30 )
----
831

query I rowsort
SELECT ALL - COALESCE ( - 21, - 20 + + 9 ) * + 31
----
651

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-957
SELECT - 32 - + 57 DIV - 79 * - CAST( - 67 AS SIGNED ) * - NULLIF ( + 21, MIN( + + 18 ) + - 9 ) * 39 AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-957
SELECT - 32 - + 57 / - 79 * - CAST ( - 67 AS INTEGER ) * - NULLIF ( + 21, MIN ( + + 18 ) + - 9 ) * 39 AS col0
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-958
SELECT ALL - 93 DIV - 76 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-958
SELECT ALL - 93 / - 76 AS col0
----
1

query I rowsort
SELECT 9 * + + 69 + 37 - + - 78 AS col1
----
736

query I rowsort
SELECT + 89 * + + 89 * - 91 + + 31
----
-720780

query I rowsort
SELECT ALL + 44 * - + 50 AS col2
----
-2200

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-962
SELECT + MAX( ALL - 3 ) DIV + + 42
----
0

skipif mysql # not compatible
query I rowsort label-962
SELECT + MAX ( ALL - 3 ) / + + 42
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-963
SELECT ALL + - CAST( 35 AS SIGNED ) * + NULLIF ( 97, + CAST( NULL AS SIGNED ) ) * + - COUNT( * ) col0
----
3395

skipif mysql # not compatible
query I rowsort label-963
SELECT ALL + - CAST ( 35 AS INTEGER ) * + NULLIF ( 97, + CAST ( NULL AS INTEGER ) ) * + - COUNT ( * ) col0
----
3395

onlyif mysql # DIV for integer division: 
query I rowsort label-964
SELECT + 35 DIV + - 19 - - 97 AS col1
----
96

skipif mysql # not compatible
query I rowsort label-964
SELECT + 35 / + - 19 - - 97 AS col1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-965
SELECT DISTINCT 74 + - - 15 * + 96 + + ( + 87 ) + - COUNT( * )
----
1600

skipif mysql # not compatible
query I rowsort label-965
SELECT DISTINCT 74 + - - 15 * + 96 + + ( + 87 ) + - COUNT ( * )
----
1600

query II rowsort
SELECT - 40 AS col2, - 95
----
-40
-95

query I rowsort
SELECT ALL - - 80 + 83
----
163

onlyif mysql # aggregate syntax: 
query I rowsort label-968
SELECT ALL + ( 12 ) + + 15 + + 11 * - SUM( DISTINCT - 75 ) * - + 60
----
-49473

skipif mysql # not compatible
query I rowsort label-968
SELECT ALL + ( 12 ) + + 15 + + 11 * - SUM ( DISTINCT - 75 ) * - + 60
----
-49473

onlyif mysql # aggregate syntax: 
query I rowsort label-969
SELECT COUNT( * ) * - 91 AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-969
SELECT COUNT ( * ) * - 91 AS col2
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-970
SELECT ALL + 88 DIV - 63 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-970
SELECT ALL + 88 / - 63 AS col0
----
-1

query I rowsort
SELECT 10 + + ( - 61 )
----
-51

query I rowsort
SELECT 26 + + - ( - 78 ) AS col2
----
104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-973
SELECT ALL - CAST( + COALESCE ( + MAX( ALL 74 ), - 69 ) AS SIGNED ) AS col1, 79 AS col2
----
-74
79

skipif mysql # not compatible
query II rowsort label-973
SELECT ALL - CAST ( + COALESCE ( + MAX ( ALL 74 ), - 69 ) AS INTEGER ) AS col1, 79 AS col2
----
-74
79

onlyif mysql # aggregate syntax: 
query I rowsort label-974
SELECT ALL 37 * - MIN( - 22 )
----
814

skipif mysql # not compatible
query I rowsort label-974
SELECT ALL 37 * - MIN ( - 22 )
----
814

onlyif mysql # DIV for integer division: 
query I rowsort label-975
SELECT + 39 DIV - 20 + - - 17
----
16

skipif mysql # not compatible
query I rowsort label-975
SELECT + 39 / - 20 + - - 17
----
16

query II rowsort
SELECT ALL 30 - + 73 col0, - 77
----
-43
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-977
SELECT COUNT( 16 ) * + 65 * - 50 - - COUNT( * ) AS col1
----
-3249

skipif mysql # not compatible
query I rowsort label-977
SELECT COUNT ( 16 ) * + 65 * - 50 - - COUNT ( * ) AS col1
----
-3249

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-978
SELECT + 76 * + + 23 + 85 * - + 70 * + CASE 75 WHEN 63 THEN NULL WHEN + COUNT( * ) THEN + 65 ELSE NULL END AS col0, + MIN( DISTINCT 77 ) * CAST( - CASE + + SUM( DISTINCT - CAST( NULL AS SIGNED ) ) WHEN + 3 THEN + 16 END AS SIGNED ) - + 43 + - 43
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-978
SELECT + 76 * + + 23 + 85 * - + 70 * + CASE 75 WHEN 63 THEN NULL WHEN + COUNT ( * ) THEN + 65 ELSE NULL END AS col0, + MIN ( DISTINCT 77 ) * CAST ( - CASE + + SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) WHEN + 3 THEN + 16 END AS INTEGER ) - + 43 + - 43
----
NULL
NULL

query I rowsort
SELECT ( - 84 ) * + 50 col2
----
-4200

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-980
SELECT DISTINCT 24 DIV ( - COUNT( 37 ) ) * + 90 + + - ( + + COUNT( + + 72 ) ) * - 89
----
-2071

skipif mysql # not compatible
query I rowsort label-980
SELECT DISTINCT 24 / ( - COUNT ( 37 ) ) * + 90 + + - ( + + COUNT ( + + 72 ) ) * - 89
----
-2071

onlyif mysql # aggregate syntax: 
query I rowsort label-981
SELECT ALL MAX( ALL - 2 ) * + 12 * - 24
----
576

skipif mysql # not compatible
query I rowsort label-981
SELECT ALL MAX ( ALL - 2 ) * + 12 * - 24
----
576

onlyif mysql # aggregate syntax: 
query I rowsort label-982
SELECT + COUNT( + + 74 ) + + 47 AS col0
----
48

skipif mysql # not compatible
query I rowsort label-982
SELECT + COUNT ( + + 74 ) + + 47 AS col0
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-983
SELECT ALL 50 DIV - 99 - 92 AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-983
SELECT ALL 50 / - 99 - 92 AS col1
----
-92

query I rowsort
SELECT DISTINCT - ( 27 ) AS col1
----
-27

query I rowsort
SELECT DISTINCT - 66 * + 44 + - 29
----
-2933

onlyif mysql # aggregate syntax: 
query I rowsort label-986
SELECT ALL - 8 * 67 * + + COALESCE ( - MIN( ALL 39 ), - 98 )
----
20904

skipif mysql # not compatible
query I rowsort label-986
SELECT ALL - 8 * 67 * + + COALESCE ( - MIN ( ALL 39 ), - 98 )
----
20904

query I rowsort
SELECT 44 * - 58 * - - ( - 18 ) AS col2
----
45936

onlyif mysql # aggregate syntax: 
query II rowsort label-988
SELECT ALL 77 * COUNT( * ), + 76 AS col1
----
77
76

skipif mysql # not compatible
query II rowsort label-988
SELECT ALL 77 * COUNT ( * ), + 76 AS col1
----
77
76

onlyif mysql # aggregate syntax: 
query I rowsort label-989
SELECT - - 52 * + - 83 + - NULLIF ( 54, 96 ) + + COUNT( * )
----
-4369

skipif mysql # not compatible
query I rowsort label-989
SELECT - - 52 * + - 83 + - NULLIF ( 54, 96 ) + + COUNT ( * )
----
-4369

onlyif mysql # DIV for integer division: 
query I rowsort label-990
SELECT + 56 DIV 36 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-990
SELECT + 56 / 36 AS col1
----
1

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

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

query I rowsort
SELECT DISTINCT 61 + + - 98
----
-37

query I rowsort
SELECT DISTINCT + 65 + + ( - + 25 )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-994
SELECT DISTINCT - + NULLIF ( - + 74, + COUNT( * ) ) + + MIN( ALL 57 )
----
131

skipif mysql # not compatible
query I rowsort label-994
SELECT DISTINCT - + NULLIF ( - + 74, + COUNT ( * ) ) + + MIN ( ALL 57 )
----
131

query I rowsort
SELECT ALL + + 57 + - + 39 AS col1
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-996
SELECT DISTINCT + - 90 * + COUNT( * ) + + + MAX( ALL 65 ) DIV 80 + + - SUM( - + 52 ), 83 AS col2
----
-38
83

skipif mysql # not compatible
query II rowsort label-996
SELECT DISTINCT + - 90 * + COUNT ( * ) + + + MAX ( ALL 65 ) / 80 + + - SUM ( - + 52 ), 83 AS col2
----
-38
83

query I rowsort
SELECT ALL + 93 * - - 53 * - 63 AS col2
----
-310527

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-998
SELECT ALL - CAST( NULL AS SIGNED ) + + + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-998
SELECT ALL - CAST ( NULL AS INTEGER ) + + + 57
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-999
SELECT ALL - 85 - + CASE + COALESCE ( 4, 15 ) WHEN + 10 * 37 * 30 + - COUNT( * ) + - 65 * + - 81 THEN - 45 WHEN - 15 THEN - 43 - - 66 END
----
NULL

skipif mysql # not compatible
query I rowsort label-999
SELECT ALL - 85 - + CASE + COALESCE ( 4, 15 ) WHEN + 10 * 37 * 30 + - COUNT ( * ) + - 65 * + - 81 THEN - 45 WHEN - 15 THEN - 43 - - 66 END
----
NULL

query I rowsort
SELECT 64 * - 46
----
-2944

onlyif mysql # aggregate syntax: 
query I rowsort label-1001
SELECT SUM( DISTINCT 43 ) * + ( CASE + 42 WHEN - 98 THEN NULL WHEN - + 92 THEN - - 3 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1001
SELECT SUM ( DISTINCT 43 ) * + ( CASE + 42 WHEN - 98 THEN NULL WHEN - + 92 THEN - - 3 END ) AS col0
----
NULL

query I rowsort
SELECT ALL 83 * + - 76 AS col1
----
-6308

query II rowsort
SELECT + 64 AS col0, + 67 - - 97 AS col2
----
64
164

onlyif mysql # aggregate syntax: 
query II rowsort label-1004
SELECT ALL - 44 AS col2, 64 * + COUNT( * )
----
-44
64

skipif mysql # not compatible
query II rowsort label-1004
SELECT ALL - 44 AS col2, 64 * + COUNT ( * )
----
-44
64

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

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

query I rowsort
SELECT DISTINCT + 68 * - - 85 AS col0
----
5780

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1007
SELECT DISTINCT + COUNT( * ) * - ( - - ( + 43 ) ) DIV + 79 - + 97 - + ( - 33 ), 29 col2
----
-64
29

skipif mysql # not compatible
query II rowsort label-1007
SELECT DISTINCT + COUNT ( * ) * - ( - - ( + 43 ) ) / + 79 - + 97 - + ( - 33 ), 29 col2
----
-64
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1008
SELECT 62 * + - 2 - 64 + 84 - + 81 + - - MIN( DISTINCT 82 )
----
-103

skipif mysql # not compatible
query I rowsort label-1008
SELECT 62 * + - 2 - 64 + 84 - + 81 + - - MIN ( DISTINCT 82 )
----
-103

query I rowsort
SELECT - + 88 + + + 88 col1
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1011
SELECT + 23 DIV + - 98
----
0

skipif mysql # not compatible
query I rowsort label-1011
SELECT + 23 / + - 98
----
0

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1014
SELECT + 81 - + 87 + + - 60 + - + 16 - SUM( COALESCE ( - - 58, - 9 ) ) * + MAX( - ( - - NULLIF ( 45, + 8 + + 27 - 89 ) ) ) * 22
----
57338

skipif mysql # not compatible
query I rowsort label-1014
SELECT + 81 - + 87 + + - 60 + - + 16 - SUM ( COALESCE ( - - 58, - 9 ) ) * + MAX ( - ( - - NULLIF ( 45, + 8 + + 27 - 89 ) ) ) * 22
----
57338

onlyif mysql # DIV for integer division: 
query I rowsort label-1015
SELECT + 90 DIV - 43 - - 22 AS col2
----
20

skipif mysql # not compatible
query I rowsort label-1015
SELECT + 90 / - 43 - - 22 AS col2
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1016
SELECT ALL - 25 + 7 + - MAX( - CAST( NULL AS SIGNED ) ) * + COUNT( - 56 ) + + 65 - 42 + - - COUNT( * ) * - ( + 3 ) + - 17 + + 79 + + - 14 * - 20 + - COUNT( * ) - - 36 - + 44 + COUNT( * ) + + - ( - - COUNT( * ) ) * - MIN( ALL + 38 ) / - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-1016
SELECT ALL - 25 + 7 + - MAX ( - CAST ( NULL AS INTEGER ) ) * + COUNT ( - 56 ) + + 65 - 42 + - - COUNT ( * ) * - ( + 3 ) + - 17 + + 79 + + - 14 * - 20 + - COUNT ( * ) - - 36 - + 44 + COUNT ( * ) + + - ( - - COUNT ( * ) ) * - MIN ( ALL + 38 ) / - 22
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1017
SELECT ALL 47 + - COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-1017
SELECT ALL 47 + - COUNT ( * )
----
46

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1018
SELECT ALL + CASE - - MAX( DISTINCT + 82 ) WHEN CAST( NULL AS DECIMAL ) THEN - 1 * 95 + - 23 + + + 19 + - + ( - 92 ) * - 24 ELSE NULL END * + - 25 * - MIN( ALL - 68 ) * 88 + + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-1018
SELECT ALL + CASE - - MAX ( DISTINCT + 82 ) WHEN CAST ( NULL AS REAL ) THEN - 1 * 95 + - 23 + + + 19 + - + ( - 92 ) * - 24 ELSE NULL END * + - 25 * - MIN ( ALL - 68 ) * 88 + + 50
----
NULL

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

query II rowsort
SELECT + + 86 + 64 + - + 46 col2, 21 AS col1
----
104
21

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

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

query I rowsort
SELECT ALL + 0 + CASE + 91 WHEN + 62 THEN + - 38 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1023
SELECT DISTINCT + 42 * + + 32 * + 84 * + COUNT( * ) + - 85 AS col1
----
112811

skipif mysql # not compatible
query I rowsort label-1023
SELECT DISTINCT + 42 * + + 32 * + 84 * + COUNT ( * ) + - 85 AS col1
----
112811

query I rowsort
SELECT - - 31 + 56
----
87

query I rowsort
SELECT NULLIF ( + 27, - ( + 49 ) * - 39 + - 93 )
----
27

query II rowsort
SELECT - 74 AS col0, + 92
----
-74
92

query I rowsort
SELECT ALL 56 + - 16
----
40

query I rowsort
SELECT + 62 + + 17 AS col1
----
79

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

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

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

query II rowsort
SELECT ALL 86 col1, ( - - 35 )
----
86
35

query I rowsort
SELECT ALL - 99 - + 58 * - + 68 AS col2
----
3845

onlyif mysql # aggregate syntax: 
query I rowsort label-1033
SELECT DISTINCT + 44 * + SUM( 89 ) AS col0
----
3916

skipif mysql # not compatible
query I rowsort label-1033
SELECT DISTINCT + 44 * + SUM ( 89 ) AS col0
----
3916

onlyif mysql # aggregate syntax: 
query I rowsort label-1034
SELECT - ( - + 59 ) * - 64 * + MIN( 96 ) AS col0
----
-362496

skipif mysql # not compatible
query I rowsort label-1034
SELECT - ( - + 59 ) * - 64 * + MIN ( 96 ) AS col0
----
-362496

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1035
SELECT + NULLIF ( + COALESCE ( - + 91, - 48 * - - MIN( NULLIF ( - 41, 50 * - - ( - 86 ) / + 50 ) ) - + 39 + + + 14 ), - 89 ) + - COALESCE ( + + 70, - + CAST( NULL AS SIGNED ) + + CASE - 82 WHEN + 64 + + - MAX( ALL - 87 ) + COALESCE ( 96, 67 ) THEN NULL ELSE + - 58 END, ( + + 21 ) + 87 ) + + + 96 AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-1035
SELECT + NULLIF ( + COALESCE ( - + 91, - 48 * - - MIN ( NULLIF ( - 41, 50 * - - ( - 86 ) / + 50 ) ) - + 39 + + + 14 ), - 89 ) + - COALESCE ( + + 70, - + CAST ( NULL AS INTEGER ) + + CASE - 82 WHEN + 64 + + - MAX ( ALL - 87 ) + COALESCE ( 96, 67 ) THEN NULL ELSE + - 58 END, ( + + 21 ) + 87 ) + + + 96 AS col0
----
-65

query I rowsort
SELECT ALL + 54 * 36 AS col0
----
1944

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1037
SELECT DISTINCT - 45 * - ( 60 ) * - + 17 + + 79 + 29 DIV COUNT( + 65 )
----
-45792

skipif mysql # not compatible
query I rowsort label-1037
SELECT DISTINCT - 45 * - ( 60 ) * - + 17 + + 79 + 29 / COUNT ( + 65 )
----
-45792

onlyif mysql # aggregate syntax: 
query I rowsort label-1038
SELECT + COUNT( * ) + - 31 AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-1038
SELECT + COUNT ( * ) + - 31 AS col0
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-1039
SELECT + 72 DIV - - 6 AS col1
----
12

skipif mysql # not compatible
query I rowsort label-1039
SELECT + 72 / - - 6 AS col1
----
12

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1041
SELECT - 89 + CAST( NULL AS SIGNED ) * - 82 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1041
SELECT - 89 + CAST ( NULL AS INTEGER ) * - 82 AS col1
----
NULL

query I rowsort
SELECT + 43 * - 36 + + + 59
----
-1489

onlyif mysql # aggregate syntax: 
query I rowsort label-1043
SELECT CASE 22 WHEN - 65 * - - 39 THEN - - 27 + NULLIF ( - 88, + + 19 * + + 90 * - 85 ) ELSE NULL END * 56 + - 98 * + 36 + + - COUNT( + 23 ) * + COALESCE ( - 13, - 10 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1043
SELECT CASE 22 WHEN - 65 * - - 39 THEN - - 27 + NULLIF ( - 88, + + 19 * + + 90 * - 85 ) ELSE NULL END * 56 + - 98 * + 36 + + - COUNT ( + 23 ) * + COALESCE ( - 13, - 10 ) AS col1
----
NULL

query I rowsort
SELECT - ( - - 62 ) * - 13 AS col0
----
806

query I rowsort
SELECT ALL + NULLIF ( + 81, 12 + - + 34 + 17 * - - 20 ) col1
----
81

query I rowsort
SELECT DISTINCT + 23 * + - 22 - - 24 + - - 5 * - - 55 + + - ( + 23 )
----
-230

query II rowsort
SELECT ALL + - 54 AS col2, 19 * + 39 * 9 AS col0
----
-54
6669

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

skipif mysql # not compatible
query I rowsort label-1048
SELECT - - 17 / + + 15 / + - COUNT ( * )
----
-1

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

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

query II rowsort
SELECT DISTINCT + ( - 10 ) AS col1, + 95
----
-10
95

onlyif mysql # aggregate syntax: 
query I rowsort label-1051
SELECT - + COUNT( * ) * + + ( + MIN( - - 94 ) ) * - ( - 59 ) + + 71 - 74 AS col0
----
-5549

skipif mysql # not compatible
query I rowsort label-1051
SELECT - + COUNT ( * ) * + + ( + MIN ( - - 94 ) ) * - ( - 59 ) + + 71 - 74 AS col0
----
-5549

onlyif mysql # aggregate syntax: 
query I rowsort label-1052
SELECT - 74 * - ( ( + COUNT( * ) ) ) + - 60 * 59 * + 83
----
-293746

skipif mysql # not compatible
query I rowsort label-1052
SELECT - 74 * - ( ( + COUNT ( * ) ) ) + - 60 * 59 * + 83
----
-293746

onlyif mysql # aggregate syntax: 
query II rowsort label-1053
SELECT + 57 * 38 + + 15 + + 88 AS col1, COUNT( * )
----
2269
1

skipif mysql # not compatible
query II rowsort label-1053
SELECT + 57 * 38 + + 15 + + 88 AS col1, COUNT ( * )
----
2269
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1054
SELECT + - 66, 98 * - 89 + - COALESCE ( + + 1, + 24 * 7 + CAST( ( + SUM( DISTINCT - - 54 ) ) AS SIGNED ) + COUNT( * ) ) * + + 20 col2
----
-66
-8742

skipif mysql # not compatible
query II rowsort label-1054
SELECT + - 66, 98 * - 89 + - COALESCE ( + + 1, + 24 * 7 + CAST ( ( + SUM ( DISTINCT - - 54 ) ) AS INTEGER ) + COUNT ( * ) ) * + + 20 col2
----
-66
-8742

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1055
SELECT ALL + + NULLIF ( - + 87, 23 ) * - CAST( NULL AS SIGNED ) * + - 26 + + + 77 col2, 5
----
NULL
5

skipif mysql # not compatible
query II rowsort label-1055
SELECT ALL + + NULLIF ( - + 87, 23 ) * - CAST ( NULL AS INTEGER ) * + - 26 + + + 77 col2, 5
----
NULL
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1056
SELECT - MIN( ALL 72 ) + - 78
----
-150

skipif mysql # not compatible
query I rowsort label-1056
SELECT - MIN ( ALL 72 ) + - 78
----
-150

query I rowsort
SELECT ALL - 50 * - 2 + + 81
----
181

query I rowsort
SELECT - 78 + - 0 * + - 41
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1059
SELECT ALL + SUM( + 87 ) * + - ( - CAST( + + 26 AS SIGNED ) ) + + ( + 80 ) + 50 + 15 * - ( + + CAST( + 58 AS SIGNED ) ) + + 32 * 73 + - 95 * 86
----
-4312

skipif mysql # not compatible
query I rowsort label-1059
SELECT ALL + SUM ( + 87 ) * + - ( - CAST ( + + 26 AS INTEGER ) ) + + ( + 80 ) + 50 + 15 * - ( + + CAST ( + 58 AS INTEGER ) ) + + 32 * 73 + - 95 * 86
----
-4312

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

skipif mysql # not compatible
query I rowsort label-1060
SELECT MIN ( - + 40 )
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-1061
SELECT DISTINCT + + COUNT( * ) * - COUNT( * ) * + 24 AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-1061
SELECT DISTINCT + + COUNT ( * ) * - COUNT ( * ) * + 24 AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-1062
SELECT ALL - + MIN( ALL 24 ) * 18 + - ( + - 73 )
----
-359

skipif mysql # not compatible
query I rowsort label-1062
SELECT ALL - + MIN ( ALL 24 ) * 18 + - ( + - 73 )
----
-359

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1063
SELECT - 82 * MAX( DISTINCT - 2 ) DIV MIN( 32 ) + CASE - 58 WHEN + 28 THEN - + 60 - - - 61 + 21 - ( 69 ) DIV 1 ELSE - 18 DIV 52 END + ( - 90 )
----
-85

skipif mysql # not compatible
query I rowsort label-1063
SELECT - 82 * MAX ( DISTINCT - 2 ) / MIN ( 32 ) + CASE - 58 WHEN + 28 THEN - + 60 - - - 61 + 21 - ( 69 ) / 1 ELSE - 18 / 52 END + ( - 90 )
----
-85

query I rowsort
SELECT ALL - + 73 * - 11 AS col1
----
803

query I rowsort
SELECT + - 35 + + - 86
----
-121

query I rowsort
SELECT ALL - - CASE + 64 WHEN + 38 THEN + 13 END * - 2 / - + 46 + - 20 + - 49 * + 42
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1067
SELECT - 81 * + 61 - + 13 + + - COALESCE ( - 38, + MAX( DISTINCT - - 30 ) ) + + + COALESCE ( + + 2, 33 * + ( + 99 ) ) * - 61 + + - 51 * 72 * + 52 * - 28 AS col2
----
5341394

skipif mysql # not compatible
query I rowsort label-1067
SELECT - 81 * + 61 - + 13 + + - COALESCE ( - 38, + MAX ( DISTINCT - - 30 ) ) + + + COALESCE ( + + 2, 33 * + ( + 99 ) ) * - 61 + + - 51 * 72 * + 52 * - 28 AS col2
----
5341394

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1069
SELECT ALL - 38 DIV + 76 * + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-1069
SELECT ALL - 38 / + 76 * + COUNT ( * )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1070
SELECT ALL - 91 col0, - 47 + - MIN( - 50 ) * + CAST( + 54 AS SIGNED ) AS col1
----
-91
2653

skipif mysql # not compatible
query II rowsort label-1070
SELECT ALL - 91 col0, - 47 + - MIN ( - 50 ) * + CAST ( + 54 AS INTEGER ) AS col1
----
-91
2653

onlyif mysql # aggregate syntax: 
query II rowsort label-1071
SELECT MAX( 3 ) AS col0, - 31 AS col0
----
3
-31

skipif mysql # not compatible
query II rowsort label-1071
SELECT MAX ( 3 ) AS col0, - 31 AS col0
----
3
-31

query I rowsort
SELECT + 55 * + + 96 AS col0
----
5280

query I rowsort
SELECT - 2 - - ( - - 10 ) + ( + + 23 ) * - - 38 AS col0
----
882

onlyif mysql # DIV for integer division: 
query II rowsort label-1074
SELECT + 8 DIV + 45 AS col1, - 52
----
0
-52

skipif mysql # not compatible
query II rowsort label-1074
SELECT + 8 / + 45 AS col1, - 52
----
0
-52

query II rowsort
SELECT ALL 14 * 1, - 8 AS col2
----
14
-8

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

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

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

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

query I rowsort
SELECT ALL 90 - - 32 AS col2
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-1079
SELECT + CASE + - 79 WHEN 26 * + 26 + + 98 THEN 32 ELSE NULL END * + 58 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1079
SELECT + CASE + - 79 WHEN 26 * + 26 + + 98 THEN 32 ELSE NULL END * + 58 * + COUNT ( * )
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1081
SELECT ALL MAX( DISTINCT - 55 ) col0
----
-55

skipif mysql # not compatible
query I rowsort label-1081
SELECT ALL MAX ( DISTINCT - 55 ) col0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-1082
SELECT + 48 - - + COUNT( DISTINCT 59 ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-1082
SELECT + 48 - - + COUNT ( DISTINCT 59 ) AS col2
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1083
SELECT ALL 54 * - + 41 DIV COUNT( * )
----
-2214

skipif mysql # not compatible
query I rowsort label-1083
SELECT ALL 54 * - + 41 / COUNT ( * )
----
-2214

query I rowsort
SELECT 70 * - 41
----
-2870

query I rowsort
SELECT 5 * 4 * 63 AS col0
----
1260

onlyif mysql # DIV for integer division: 
query I rowsort label-1086
SELECT 88 DIV + 81
----
1

skipif mysql # not compatible
query I rowsort label-1086
SELECT 88 / + 81
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1087
SELECT ALL - - COUNT( * ) + - 45 AS col0, + 95
----
-44
95

skipif mysql # not compatible
query II rowsort label-1087
SELECT ALL - - COUNT ( * ) + - 45 AS col0, + 95
----
-44
95

onlyif mysql # DIV for integer division: 
query I rowsort label-1088
SELECT ALL + ( + 44 ) + + 58 DIV - - 91
----
44

skipif mysql # not compatible
query I rowsort label-1088
SELECT ALL + ( + 44 ) + + 58 / - - 91
----
44

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1089
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + + - 80 * - - 30 * - + 13
----
NULL

skipif mysql # not compatible
query I rowsort label-1089
SELECT DISTINCT - CAST ( NULL AS REAL ) + + - 80 * - - 30 * - + 13
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1090
SELECT CASE - - 39 WHEN + + CASE + 46 WHEN 68 + + - 21 + NULLIF ( - 80, 6 ) * - - 70 * + - 15 THEN NULL WHEN + + 85 THEN + 78 WHEN - - 15 + + 10 + + 50 THEN NULL END THEN NULL ELSE - + 18 + 29 END DIV + 97
----
0

skipif mysql # not compatible
query I rowsort label-1090
SELECT CASE - - 39 WHEN + + CASE + 46 WHEN 68 + + - 21 + NULLIF ( - 80, 6 ) * - - 70 * + - 15 THEN NULL WHEN + + 85 THEN + 78 WHEN - - 15 + + 10 + + 50 THEN NULL END THEN NULL ELSE - + 18 + 29 END / + 97
----
0

query I rowsort
SELECT ALL - 25 + 22 * - 94 + + 27 AS col1
----
-2066

onlyif mysql # aggregate syntax: 
query I rowsort label-1092
SELECT DISTINCT - + MIN( 87 ) + 80
----
-7

skipif mysql # not compatible
query I rowsort label-1092
SELECT DISTINCT - + MIN ( 87 ) + 80
----
-7

query I rowsort
SELECT 37 * 44 * - 20 + + 15 col0
----
-32545

query II rowsort
SELECT 39 * + 38 AS col0, - 53 AS col1
----
1482
-53

query I rowsort
SELECT + 65 - ( 7 ) * + 34 AS col2
----
-173

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1096
SELECT - 62 * + 79 + - - CAST( - 17 AS SIGNED )
----
-4915

skipif mysql # not compatible
query I rowsort label-1096
SELECT - 62 * + 79 + - - CAST ( - 17 AS INTEGER )
----
-4915

query I rowsort
SELECT ALL - 92 * 55 AS col0
----
-5060

onlyif mysql # aggregate syntax: 
query I rowsort label-1098
SELECT DISTINCT - - COUNT( 60 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1098
SELECT DISTINCT - - COUNT ( 60 ) AS col1
----
1

query II rowsort
SELECT - 72 AS col0, + 56
----
-72
56

query II rowsort
SELECT DISTINCT 74, 46 AS col2
----
74
46

query I rowsort
SELECT 35 * - 11 AS col1
----
-385

query I rowsort
SELECT 38 + + 27 AS col0
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-1103
SELECT 54 DIV + + 62
----
0

skipif mysql # not compatible
query I rowsort label-1103
SELECT 54 / + + 62
----
0

query I rowsort
SELECT 90 * + 32 * 84
----
241920

onlyif mysql # DIV for integer division: 
query I rowsort label-1105
SELECT DISTINCT 43 DIV 27
----
1

skipif mysql # not compatible
query I rowsort label-1105
SELECT DISTINCT 43 / 27
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1106
SELECT 73 + NULLIF ( - 5, 89 + + - CAST( NULL AS SIGNED ) ) * - 7 * - MIN( ALL + 45 ), - COUNT( * ) + - 33 + 86 AS col1
----
-1502
52

skipif mysql # not compatible
query II rowsort label-1106
SELECT 73 + NULLIF ( - 5, 89 + + - CAST ( NULL AS INTEGER ) ) * - 7 * - MIN ( ALL + 45 ), - COUNT ( * ) + - 33 + 86 AS col1
----
-1502
52

query I rowsort
SELECT 80 * + 83 AS col0
----
6640

onlyif mysql # aggregate syntax: 
query I rowsort label-1108
SELECT 89 * COUNT( * ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-1108
SELECT 89 * COUNT ( * ) AS col2
----
89

query I rowsort
SELECT ALL 54 + + - 23
----
31

query I rowsort
SELECT 70 + + 93
----
163

onlyif mysql # aggregate syntax: 
query I rowsort label-1111
SELECT NULLIF ( COUNT( * ), + 27 / - - 92 * - 65 - + 7 ) * - 10
----
-10

skipif mysql # not compatible
query I rowsort label-1111
SELECT NULLIF ( COUNT ( * ), + 27 / - - 92 * - 65 - + 7 ) * - 10
----
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-1112
SELECT 79 + - 72 + + + 83 AS col2, 2 + + + 96 + - COUNT( * ) * + 54 AS col0
----
90
44

skipif mysql # not compatible
query II rowsort label-1112
SELECT 79 + - 72 + + + 83 AS col2, 2 + + + 96 + - COUNT ( * ) * + 54 AS col0
----
90
44

query I rowsort
SELECT 15 * + 54 AS col1
----
810

query I rowsort
SELECT DISTINCT 35 * 29 * - 7 AS col2
----
-7105

onlyif mysql # aggregate syntax: 
query I rowsort label-1115
SELECT + MIN( 42 ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-1115
SELECT + MIN ( 42 ) AS col0
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1116
SELECT DISTINCT 12 * + 33 + - CAST( + NULLIF ( - - 26, COUNT( * ) * + MIN( 99 ) + + + 35 ) AS SIGNED ) + + 43 + 60 + 22 * - 5, COUNT( * ) + - - ( - 30 ) - COUNT( * ) - 39 DIV + 56 AS col0
----
363
-30

skipif mysql # not compatible
query II rowsort label-1116
SELECT DISTINCT 12 * + 33 + - CAST ( + NULLIF ( - - 26, COUNT ( * ) * + MIN ( 99 ) + + + 35 ) AS INTEGER ) + + 43 + 60 + 22 * - 5, COUNT ( * ) + - - ( - 30 ) - COUNT ( * ) - 39 / + 56 AS col0
----
363
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-1117
SELECT ALL COUNT( * ) + 13 AS col0
----
14

skipif mysql # not compatible
query I rowsort label-1117
SELECT ALL COUNT ( * ) + 13 AS col0
----
14

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1120
SELECT - + 6 DIV 52 + - 75 + + 17 DIV 54 + - 38 + - 17
----
-130

skipif mysql # not compatible
query I rowsort label-1120
SELECT - + 6 / 52 + - 75 + + 17 / 54 + - 38 + - 17
----
-130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1121
SELECT 5 + - 10 / NULLIF ( CAST( NULL AS SIGNED ), - MAX( ALL 80 ) ) AS col0, 42 * + 9 + COUNT( * )
----
NULL
379

skipif mysql # not compatible
query II rowsort label-1121
SELECT 5 + - 10 / NULLIF ( CAST ( NULL AS INTEGER ), - MAX ( ALL 80 ) ) AS col0, 42 * + 9 + COUNT ( * )
----
NULL
379

query I rowsort
SELECT + 5 * + 3
----
15

query I rowsort
SELECT - 10 * + - 50 * - 41 + 52 * - ( + 62 ) * + 63 + + ( + 32 ) + + - 11 * + + 4 AS col0
----
-223624

onlyif mysql # DIV for integer division: 
query I rowsort label-1124
SELECT ALL - 44 DIV 13 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-1124
SELECT ALL - 44 / 13 AS col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1125
SELECT SUM( 14 ) + + 99
----
113

skipif mysql # not compatible
query I rowsort label-1125
SELECT SUM ( 14 ) + + 99
----
113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1126
SELECT - 72 * 19 - + - ( CAST( + - COUNT( * ) AS SIGNED ) )
----
-1369

skipif mysql # not compatible
query I rowsort label-1126
SELECT - 72 * 19 - + - ( CAST ( + - COUNT ( * ) AS INTEGER ) )
----
-1369

query II rowsort
SELECT + 27 AS col0, 90 * - 11
----
27
-990

onlyif mysql # aggregate syntax: 
query I rowsort label-1128
SELECT - COUNT( 9 ) * + 66 * + - 64 * - 18
----
-76032

skipif mysql # not compatible
query I rowsort label-1128
SELECT - COUNT ( 9 ) * + 66 * + - 64 * - 18
----
-76032

onlyif mysql # DIV for integer division: 
query II rowsort label-1129
SELECT DISTINCT - + 64, - 40 - - + COALESCE ( - 17, - 70 * + + 65, - 23 DIV + 3 ) AS col0
----
-64
-57

skipif mysql # not compatible
query II rowsort label-1129
SELECT DISTINCT - + 64, - 40 - - + COALESCE ( - 17, - 70 * + + 65, - 23 / + 3 ) AS col0
----
-64
-57

query II rowsort
SELECT ( - 10 ) * - ( + 10 ) AS col1, NULLIF ( + 53, - 72 / + + 17 + - 45 )
----
100
53

query I rowsort
SELECT 45 * + 35
----
1575

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1132
SELECT CAST( NULL AS DECIMAL ) * - 2
----
NULL

skipif mysql # not compatible
query I rowsort label-1132
SELECT CAST ( NULL AS REAL ) * - 2
----
NULL

query I rowsort
SELECT 83 + - 36 * 80 col0
----
-2797

query I rowsort
SELECT - CASE WHEN NOT ( NULL ) NOT IN ( - 88, 79, + 9 * - 98 / ( 60 ) ) THEN + 8 WHEN NULL IS NULL THEN + 23 END
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-1135
SELECT 90 DIV 97
----
0

skipif mysql # not compatible
query I rowsort label-1135
SELECT 90 / 97
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1136
SELECT ALL + 95 DIV 76 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1136
SELECT ALL + 95 / 76 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1137
SELECT DISTINCT MAX( + 62 )
----
62

skipif mysql # not compatible
query I rowsort label-1137
SELECT DISTINCT MAX ( + 62 )
----
62

query I rowsort
SELECT DISTINCT - 22 * CASE 90 WHEN - 42 THEN - 87 END AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1140
SELECT DISTINCT - 13 + - - NULLIF ( + 29, COUNT( * ) / COUNT( * ) * + 1 + - - 60 ) - - ( - + 86 ) * 60 AS col2
----
-5144

skipif mysql # not compatible
query I rowsort label-1140
SELECT DISTINCT - 13 + - - NULLIF ( + 29, COUNT ( * ) / COUNT ( * ) * + 1 + - - 60 ) - - ( - + 86 ) * 60 AS col2
----
-5144

onlyif mysql # aggregate syntax: 
query II rowsort label-1141
SELECT ALL 13 + + MAX( DISTINCT 46 ) + + 57 col0, + 49 * + 95 * - - 88
----
116
409640

skipif mysql # not compatible
query II rowsort label-1141
SELECT ALL 13 + + MAX ( DISTINCT 46 ) + + 57 col0, + 49 * + 95 * - - 88
----
116
409640

onlyif mysql # DIV for integer division: 
query I rowsort label-1142
SELECT - 36 + - 76 DIV NULLIF ( 54, - + 74 * ( 6 ) + - 11 )
----
-37

skipif mysql # not compatible
query I rowsort label-1142
SELECT - 36 + - 76 / NULLIF ( 54, - + 74 * ( 6 ) + - 11 )
----
-37

query I rowsort
SELECT DISTINCT NULLIF ( 66, - 27 )
----
66

query I rowsort
SELECT ALL + 96 + - 58 AS col2
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-1145
SELECT ALL - COALESCE ( 85, + 28 DIV + 56 ) + 41
----
-44

skipif mysql # not compatible
query I rowsort label-1145
SELECT ALL - COALESCE ( 85, + 28 / + 56 ) + 41
----
-44

query I rowsort
SELECT - ( 85 ) * ( 70 ) * - 49
----
291550

onlyif mysql # DIV for integer division: 
query I rowsort label-1147
SELECT - 76 DIV 57
----
-1

skipif mysql # not compatible
query I rowsort label-1147
SELECT - 76 / 57
----
-1

query I rowsort
SELECT DISTINCT + 99 - - 52 * - 51
----
-2553

onlyif mysql # aggregate syntax: 
query I rowsort label-1149
SELECT ALL + MIN( + 55 ) * - + 48
----
-2640

skipif mysql # not compatible
query I rowsort label-1149
SELECT ALL + MIN ( + 55 ) * - + 48
----
-2640

onlyif mysql # DIV for integer division: 
query I rowsort label-1150
SELECT DISTINCT + - 42 DIV - 34 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1150
SELECT DISTINCT + - 42 / - 34 AS col1
----
1

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1152
SELECT ALL + 17 * + COUNT( * ) AS col0, + 81 / + 26 + + + CASE - 1 WHEN + COALESCE ( + COUNT( - + 7 ), + 78 ) / + 77 - - 16 - - - 42 + - 85 + + + COUNT( * ) * COUNT( * ) + - 67 THEN + COALESCE ( 36, - 54, + + 80 ) END AS col0
----
17
NULL

skipif mysql # not compatible
query II rowsort label-1152
SELECT ALL + 17 * + COUNT ( * ) AS col0, + 81 / + 26 + + + CASE - 1 WHEN + COALESCE ( + COUNT ( - + 7 ), + 78 ) / + 77 - - 16 - - - 42 + - 85 + + + COUNT ( * ) * COUNT ( * ) + - 67 THEN + COALESCE ( 36, - 54, + + 80 ) END AS col0
----
17
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1153
SELECT ALL - COUNT( * ) * + - 60 * - 2 col1
----
-120

skipif mysql # not compatible
query I rowsort label-1153
SELECT ALL - COUNT ( * ) * + - 60 * - 2 col1
----
-120

query I rowsort
SELECT DISTINCT - + 52 * + 23 - - 95 AS col2
----
-1101

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1156
SELECT + + 70 * - CAST( NULL AS DECIMAL ) + + 74 * 65 + + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-1156
SELECT + + 70 * - CAST ( NULL AS REAL ) + + 74 * 65 + + 68
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1157
SELECT + - ( - + COUNT( * ) ) - CASE WHEN NOT ( NULL ) NOT BETWEEN + 70 AND + MAX( ALL + + ( + 2 ) ) + - + 74 THEN + 11 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1157
SELECT + - ( - + COUNT ( * ) ) - CASE WHEN NOT ( NULL ) NOT BETWEEN + 70 AND + MAX ( ALL + + ( + 2 ) ) + - + 74 THEN + 11 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT - - 79 * - - 33 + - 44 AS col0
----
2563

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1159
SELECT - CASE + 16 WHEN - SUM( DISTINCT + - 12 ) THEN CAST( + 15 AS DECIMAL ) + - ( + 7 ) + + - 6 + + + 10 - - + 1 + - - MAX( 90 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1159
SELECT - CASE + 16 WHEN - SUM ( DISTINCT + - 12 ) THEN CAST ( + 15 AS REAL ) + - ( + 7 ) + + - 6 + + + 10 - - + 1 + - - MAX ( 90 ) END
----
NULL

query I rowsort
SELECT + 79 + + 40
----
119

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1162
SELECT ALL 97 * + + COUNT( * ) + - COUNT( * ) * 56 DIV - - 63 + 23
----
120

skipif mysql # not compatible
query I rowsort label-1162
SELECT ALL 97 * + + COUNT ( * ) + - COUNT ( * ) * 56 / - - 63 + 23
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-1163
SELECT + CASE + ( 49 ) WHEN + + 26 THEN - 1 END + - SUM( 78 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1163
SELECT + CASE + ( 49 ) WHEN + + 26 THEN - 1 END + - SUM ( 78 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1164
SELECT ALL COUNT( - - 2 ) * COALESCE ( 46, - + MIN( + + 67 ) ) * + 63
----
2898

skipif mysql # not compatible
query I rowsort label-1164
SELECT ALL COUNT ( - - 2 ) * COALESCE ( 46, - + MIN ( + + 67 ) ) * + 63
----
2898

onlyif mysql # aggregate syntax: 
query I rowsort label-1165
SELECT + 21 * + 99 + - MAX( DISTINCT + 70 ) AS col2
----
2009

skipif mysql # not compatible
query I rowsort label-1165
SELECT + 21 * + 99 + - MAX ( DISTINCT + 70 ) AS col2
----
2009

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

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

query I rowsort
SELECT ALL - 80 * ( 5 ) + + - 87 AS col2
----
-487

onlyif mysql # aggregate syntax: 
query I rowsort label-1168
SELECT MIN( ALL + 23 ) col1
----
23

skipif mysql # not compatible
query I rowsort label-1168
SELECT MIN ( ALL + 23 ) col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1169
SELECT + MAX( DISTINCT - - ( 84 ) ) * 83 + + 45
----
7017

skipif mysql # not compatible
query I rowsort label-1169
SELECT + MAX ( DISTINCT - - ( 84 ) ) * 83 + + 45
----
7017

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1171
SELECT - ( - NULLIF ( 59, - + MIN( ALL 69 ) * + - 20 ) )
----
59

skipif mysql # not compatible
query I rowsort label-1171
SELECT - ( - NULLIF ( 59, - + MIN ( ALL 69 ) * + - 20 ) )
----
59

query I rowsort
SELECT DISTINCT - 64 + - 22
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-1173
SELECT ALL + COUNT( * ) + 59
----
60

skipif mysql # not compatible
query I rowsort label-1173
SELECT ALL + COUNT ( * ) + 59
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1174
SELECT MIN( DISTINCT - + 19 )
----
-19

skipif mysql # not compatible
query I rowsort label-1174
SELECT MIN ( DISTINCT - + 19 )
----
-19

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1176
SELECT - 59 + + 89 - + 52 DIV - 26
----
32

skipif mysql # not compatible
query I rowsort label-1176
SELECT - 59 + + 89 - + 52 / - 26
----
32

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1178
SELECT ALL 83 - + - CAST( NULL AS SIGNED ) * 60
----
NULL

skipif mysql # not compatible
query I rowsort label-1178
SELECT ALL 83 - + - CAST ( NULL AS INTEGER ) * 60
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1179
SELECT - - 1 - NULLIF ( - + 61, - 82 ) - + 80 * CAST( NULL AS SIGNED ) * - 47 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1179
SELECT - - 1 - NULLIF ( - + 61, - 82 ) - + 80 * CAST ( NULL AS INTEGER ) * - 47 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1180
SELECT ALL + - 39 * + CASE + - 4 WHEN 72 THEN - - COUNT( + 6 ) WHEN + 27 - 6 THEN - + 19 ELSE COUNT( * ) * + CAST( ( - 2 ) AS SIGNED ) END + + - 7 + + COUNT( * ) * ( - 21 ) * + 56 col2, 99 AS col2
----
-1105
99

skipif mysql # not compatible
query II rowsort label-1180
SELECT ALL + - 39 * + CASE + - 4 WHEN 72 THEN - - COUNT ( + 6 ) WHEN + 27 - 6 THEN - + 19 ELSE COUNT ( * ) * + CAST ( ( - 2 ) AS INTEGER ) END + + - 7 + + COUNT ( * ) * ( - 21 ) * + 56 col2, 99 AS col2
----
-1105
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1181
SELECT - + NULLIF ( + - 22, + 36 * - + COUNT( * ) * + 85 / - 24 + - - ( + 87 ) * 46 + + 27 * - 25 * - 93 ) + - 18
----
4

skipif mysql # not compatible
query I rowsort label-1181
SELECT - + NULLIF ( + - 22, + 36 * - + COUNT ( * ) * + 85 / - 24 + - - ( + 87 ) * 46 + + 27 * - 25 * - 93 ) + - 18
----
4

query I rowsort
SELECT - 4 + - 19 AS col1
----
-23

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1184
SELECT + CAST( - ( + 63 ) AS SIGNED ) * + 8 col2
----
-504

skipif mysql # not compatible
query I rowsort label-1184
SELECT + CAST ( - ( + 63 ) AS INTEGER ) * + 8 col2
----
-504

query I rowsort
SELECT - 18 + - 95 + ( + - 31 ) AS col0
----
-144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1186
SELECT COUNT( * ) * + + 69 * - COUNT( * ) + - + 4 + 27 * + 86 * CAST( 65 AS SIGNED ) * - - CASE + 97 WHEN 31 * - 75 + 47 THEN ( - 44 ) * MIN( ALL - 24 ) + - + 1 ELSE NULL END + - 3
----
NULL

skipif mysql # not compatible
query I rowsort label-1186
SELECT COUNT ( * ) * + + 69 * - COUNT ( * ) + - + 4 + 27 * + 86 * CAST ( 65 AS INTEGER ) * - - CASE + 97 WHEN 31 * - 75 + 47 THEN ( - 44 ) * MIN ( ALL - 24 ) + - + 1 ELSE NULL END + - 3
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1188
SELECT + 43 * - 5 + 73 DIV + - COUNT( * ) AS col1
----
-288

skipif mysql # not compatible
query I rowsort label-1188
SELECT + 43 * - 5 + 73 / + - COUNT ( * ) AS col1
----
-288

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1189
SELECT + - CASE COUNT( * ) WHEN 25 THEN NULL ELSE - - COUNT( * ) END / - + 41 / - ( + CAST( NULL AS SIGNED ) ) / - 68, 40 * + 64 * 19 AS col1
----
NULL
48640

skipif mysql # not compatible
query II rowsort label-1189
SELECT + - CASE COUNT ( * ) WHEN 25 THEN NULL ELSE - - COUNT ( * ) END / - + 41 / - ( + CAST ( NULL AS INTEGER ) ) / - 68, 40 * + 64 * 19 AS col1
----
NULL
48640

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1190
SELECT - - 55 * - - 59 DIV + + CAST( NULL AS SIGNED ), - 99 + + COALESCE ( - 23, 94, + 3 ) DIV + + 81 AS col0
----
NULL
-99

skipif mysql # not compatible
query II rowsort label-1190
SELECT - - 55 * - - 59 / + + CAST ( NULL AS INTEGER ), - 99 + + COALESCE ( - 23, 94, + 3 ) / + + 81 AS col0
----
NULL
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1191
SELECT - + 81 * - + COUNT( * ) * 31
----
2511

skipif mysql # not compatible
query I rowsort label-1191
SELECT - + 81 * - + COUNT ( * ) * 31
----
2511

onlyif mysql # aggregate syntax: 
query I rowsort label-1192
SELECT + SUM( DISTINCT + 70 ) + 51 AS col0
----
121

skipif mysql # not compatible
query I rowsort label-1192
SELECT + SUM ( DISTINCT + 70 ) + 51 AS col0
----
121

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1193
SELECT DISTINCT - ( CAST( NULL AS DECIMAL ) ) * - + 96 * COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1193
SELECT DISTINCT - ( CAST ( NULL AS REAL ) ) * - + 96 * COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1194
SELECT ( + 78 ) * + 74 * + MAX( 58 ) + - 29 + + - 53 AS col0
----
334694

skipif mysql # not compatible
query I rowsort label-1194
SELECT ( + 78 ) * + 74 * + MAX ( 58 ) + - 29 + + - 53 AS col0
----
334694

onlyif mysql # aggregate syntax: 
query I rowsort label-1195
SELECT - 73 * 58 * + COUNT( * )
----
-4234

skipif mysql # not compatible
query I rowsort label-1195
SELECT - 73 * 58 * + COUNT ( * )
----
-4234

query II rowsort
SELECT ALL + 35 AS col2, + 20 AS col1
----
35
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1197
SELECT ALL 30 DIV + 49 + - + SUM( DISTINCT + 79 )
----
-79

skipif mysql # not compatible
query I rowsort label-1197
SELECT ALL 30 / + 49 + - + SUM ( DISTINCT + 79 )
----
-79

query I rowsort
SELECT + ( - 26 ) * - + 82 AS col2
----
2132

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1199
SELECT 59 col2, - COALESCE ( + COUNT( * ), + COUNT( * ) * 88, - 29 ) + - 30 DIV 59 + - 17 + - 43 + 87 * + - 29 AS col1
----
59
-2584

skipif mysql # not compatible
query II rowsort label-1199
SELECT 59 col2, - COALESCE ( + COUNT ( * ), + COUNT ( * ) * 88, - 29 ) + - 30 / 59 + - 17 + - 43 + 87 * + - 29 AS col1
----
59
-2584

query II rowsort
SELECT + 32 AS col1, 85 AS col1
----
32
85

query I rowsort
SELECT ALL 37 + + - 31
----
6

query II rowsort
SELECT 67, 59 * + 30 - + 22 AS col1
----
67
1748

onlyif mysql # aggregate syntax: 
query II rowsort label-1203
SELECT ALL - 25, 83 * - COUNT( * ) * + - 20 AS col0
----
-25
1660

skipif mysql # not compatible
query II rowsort label-1203
SELECT ALL - 25, 83 * - COUNT ( * ) * + - 20 AS col0
----
-25
1660

query II rowsort
SELECT DISTINCT - 37 AS col2, 38 + - 88 + - 63 AS col1
----
-37
-113

query I rowsort
SELECT 89 * - + 58
----
-5162

onlyif mysql # aggregate syntax: 
query II rowsort label-1206
SELECT DISTINCT 59, 56 * - COUNT( * ) * - 8 AS col0
----
59
448

skipif mysql # not compatible
query II rowsort label-1206
SELECT DISTINCT 59, 56 * - COUNT ( * ) * - 8 AS col0
----
59
448

onlyif mysql # aggregate syntax: 
query I rowsort label-1207
SELECT ALL 42 - - COUNT( * ) * + 35
----
77

skipif mysql # not compatible
query I rowsort label-1207
SELECT ALL 42 - - COUNT ( * ) * + 35
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1208
SELECT CAST( + CASE - ( - 63 ) WHEN - 6 - 42 THEN - 43 END AS SIGNED ) + + 69
----
NULL

skipif mysql # not compatible
query I rowsort label-1208
SELECT CAST ( + CASE - ( - 63 ) WHEN - 6 - 42 THEN - 43 END AS INTEGER ) + + 69
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1209
SELECT + 27 DIV - 47 * 18
----
0

skipif mysql # not compatible
query I rowsort label-1209
SELECT + 27 / - 47 * 18
----
0

query I rowsort
SELECT - 36 + + 31 * 13 AS col0
----
367

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1212
SELECT ALL - 17 DIV 97 + - CAST( - 41 AS SIGNED ) - + COALESCE ( - - NULLIF ( - + COUNT( * ), + - 75 ), + 65 * + + 21 ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-1212
SELECT ALL - 17 / 97 + - CAST ( - 41 AS INTEGER ) - + COALESCE ( - - NULLIF ( - + COUNT ( * ), + - 75 ), + 65 * + + 21 ) AS col1
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-1213
SELECT - 93 DIV + ( + - 85 )
----
1

skipif mysql # not compatible
query I rowsort label-1213
SELECT - 93 / + ( + - 85 )
----
1

query II rowsort
SELECT - 77 AS col0, CASE 71 WHEN + - 63 THEN + 41 * - 63 + - 47 ELSE NULL END AS col1
----
-77
NULL

query II rowsort
SELECT DISTINCT 16 AS col1, 38 * + 67 + 93 AS col1
----
16
2639

query I rowsort
SELECT DISTINCT + - ( 82 ) * COALESCE ( + 11, 74 )
----
-902

onlyif mysql # aggregate syntax: 
query I rowsort label-1217
SELECT ALL + MAX( DISTINCT - + 25 ) * - + 83 - + 57 + 76
----
2094

skipif mysql # not compatible
query I rowsort label-1217
SELECT ALL + MAX ( DISTINCT - + 25 ) * - + 83 - + 57 + 76
----
2094

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1218
SELECT + 43 * - + COALESCE ( + 35, 41 ) * 8 + CAST( + COUNT( * ) AS SIGNED ) - - 47 * + - 52 + - 47
----
-14530

skipif mysql # not compatible
query I rowsort label-1218
SELECT + 43 * - + COALESCE ( + 35, 41 ) * 8 + CAST ( + COUNT ( * ) AS INTEGER ) - - 47 * + - 52 + - 47
----
-14530

query I rowsort
SELECT ALL + 65 + + 41 - - 81 col0
----
187

onlyif mysql # aggregate syntax: 
query II rowsort label-1220
SELECT - 84, 73 / + - CASE + 14 WHEN - + 43 + - + COUNT( * ) + - ( + + 15 ) * - 98 THEN 8 - - 29 / + 13 + ( - 10 ) + + - ( + 13 ) * - - 24 * + ( + 37 ) * - 26 * - 82 * + 30 + - 59 - 98 WHEN + 74 * - + COALESCE ( + 98, 47 ) THEN + 55 END AS col0
----
-84
NULL

skipif mysql # not compatible
query II rowsort label-1220
SELECT - 84, 73 / + - CASE + 14 WHEN - + 43 + - + COUNT ( * ) + - ( + + 15 ) * - 98 THEN 8 - - 29 / + 13 + ( - 10 ) + + - ( + 13 ) * - - 24 * + ( + 37 ) * - 26 * - 82 * + 30 + - 59 - 98 WHEN + 74 * - + COALESCE ( + 98, 47 ) THEN + 55 END AS col0
----
-84
NULL

query I rowsort
SELECT - 9 * - ( - + 13 )
----
-117

query I rowsort
SELECT 6 * - 15
----
-90

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1224
SELECT ALL - 81 + 59 * - CAST( + CAST( + - COUNT( * ) AS SIGNED ) AS SIGNED ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-1224
SELECT ALL - 81 + 59 * - CAST ( + CAST ( + - COUNT ( * ) AS INTEGER ) AS INTEGER ) AS col1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-1225
SELECT ALL - 8 + + 46 * - + 97 * + COUNT( * )
----
-4470

skipif mysql # not compatible
query I rowsort label-1225
SELECT ALL - 8 + + 46 * - + 97 * + COUNT ( * )
----
-4470

onlyif mysql # aggregate syntax: 
query I rowsort label-1226
SELECT DISTINCT - MAX( - NULLIF ( + 73, + 70 ) ) + 40 col2
----
113

skipif mysql # not compatible
query I rowsort label-1226
SELECT DISTINCT - MAX ( - NULLIF ( + 73, + 70 ) ) + 40 col2
----
113

onlyif mysql # aggregate syntax: 
query II rowsort label-1227
SELECT ALL COUNT( * ) + + 6 AS col2, - 0
----
7
0

skipif mysql # not compatible
query II rowsort label-1227
SELECT ALL COUNT ( * ) + + 6 AS col2, - 0
----
7
0

query I rowsort
SELECT DISTINCT 96 * + - 75 col2
----
-7200

onlyif mysql # aggregate syntax: 
query I rowsort label-1229
SELECT 45 * COUNT( * ) + - 74 + + SUM( ( 70 ) ) * 36 * - 36 AS col1
----
-90749

skipif mysql # not compatible
query I rowsort label-1229
SELECT 45 * COUNT ( * ) + - 74 + + SUM ( ( 70 ) ) * 36 * - 36 AS col1
----
-90749

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1230
SELECT + CAST( NULL AS SIGNED ) / 12 * MAX( 7 ) + + 97 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1230
SELECT + CAST ( NULL AS INTEGER ) / 12 * MAX ( 7 ) + + 97 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1231
SELECT ALL + 9 + + COUNT( * ) + 46
----
56

skipif mysql # not compatible
query I rowsort label-1231
SELECT ALL + 9 + + COUNT ( * ) + 46
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1232
SELECT 82 + - 19 + - 63 / + 3 * + 36 * + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1232
SELECT 82 + - 19 + - 63 / + 3 * + 36 * + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1233
SELECT 89 * - + 65 * + SUM( DISTINCT 24 ) AS col0
----
-138840

skipif mysql # not compatible
query I rowsort label-1233
SELECT 89 * - + 65 * + SUM ( DISTINCT 24 ) AS col0
----
-138840

onlyif mysql # aggregate syntax: 
query II rowsort label-1234
SELECT COUNT( * ) * + 46, + MIN( ALL 70 ) AS col0
----
46
70

skipif mysql # not compatible
query II rowsort label-1234
SELECT COUNT ( * ) * + 46, + MIN ( ALL 70 ) AS col0
----
46
70

query I rowsort
SELECT ALL 95 * 86 * - + 0 * - + 32
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1236
SELECT DISTINCT - 64 - - COUNT( * )
----
-63

skipif mysql # not compatible
query I rowsort label-1236
SELECT DISTINCT - 64 - - COUNT ( * )
----
-63

onlyif mysql # DIV for integer division: 
query II rowsort label-1237
SELECT DISTINCT - 92 * + + 21, 38 DIV - 11 AS col1
----
-1932
-3

skipif mysql # not compatible
query II rowsort label-1237
SELECT DISTINCT - 92 * + + 21, 38 / - 11 AS col1
----
-1932
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1238
SELECT 17 + + MAX( 76 ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-1238
SELECT 17 + + MAX ( 76 ) AS col2
----
93

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1240
SELECT 24 * + COUNT( * ) AS col0, - 20
----
24
-20

skipif mysql # not compatible
query II rowsort label-1240
SELECT 24 * + COUNT ( * ) AS col0, - 20
----
24
-20

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1241
SELECT 43 + 29 DIV - - CAST( - - 46 AS SIGNED ) * + ( - 21 ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-1241
SELECT 43 + 29 / - - CAST ( - - 46 AS INTEGER ) * + ( - 21 ) AS col1
----
43

query I rowsort
SELECT 36 * - 66 AS col2
----
-2376

onlyif mysql # aggregate syntax: 
query II rowsort label-1243
SELECT COUNT( DISTINCT + 19 ), 82 AS col1
----
1
82

skipif mysql # not compatible
query II rowsort label-1243
SELECT COUNT ( DISTINCT + 19 ), 82 AS col1
----
1
82

onlyif mysql # aggregate syntax: 
query II rowsort label-1244
SELECT - - ( + + 31 ), 99 * 47 * - COALESCE ( - 35, - MIN( - - ( 60 ) ) + 40 ) AS col0
----
31
162855

skipif mysql # not compatible
query II rowsort label-1244
SELECT - - ( + + 31 ), 99 * 47 * - COALESCE ( - 35, - MIN ( - - ( 60 ) ) + 40 ) AS col0
----
31
162855

onlyif mysql # aggregate syntax: 
query I rowsort label-1245
SELECT DISTINCT 79 * - COUNT( * )
----
-79

skipif mysql # not compatible
query I rowsort label-1245
SELECT DISTINCT 79 * - COUNT ( * )
----
-79

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1246
SELECT DISTINCT - COALESCE ( + + CASE 77 WHEN - + CAST( NULL AS DECIMAL ) THEN NULL WHEN - 37 * - 31 + - COUNT( * ) + + MAX( DISTINCT - ( + - 23 ) ) THEN NULL WHEN + 6 THEN NULL WHEN + 52 THEN - - 25 END, - 85 * - 40 + 27 * + - 89, + 89 * - + ( 56 ) )
----
-997

skipif mysql # not compatible
query I rowsort label-1246
SELECT DISTINCT - COALESCE ( + + CASE 77 WHEN - + CAST ( NULL AS REAL ) THEN NULL WHEN - 37 * - 31 + - COUNT ( * ) + + MAX ( DISTINCT - ( + - 23 ) ) THEN NULL WHEN + 6 THEN NULL WHEN + 52 THEN - - 25 END, - 85 * - 40 + 27 * + - 89, + 89 * - + ( 56 ) )
----
-997

onlyif mysql # aggregate syntax: 
query I rowsort label-1247
SELECT - MAX( ALL - - 68 )
----
-68

skipif mysql # not compatible
query I rowsort label-1247
SELECT - MAX ( ALL - - 68 )
----
-68

query I rowsort
SELECT ALL + 3 + NULLIF ( + 37, 32 ) col1
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1249
SELECT 74 DIV - - COUNT( * ) * - + COUNT( * ) + + 67
----
-7

skipif mysql # not compatible
query I rowsort label-1249
SELECT 74 / - - COUNT ( * ) * - + COUNT ( * ) + + 67
----
-7

query I rowsort
SELECT 61 + - 64
----
-3

query I rowsort
SELECT + COALESCE ( - - 60, 53 )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1252
SELECT ALL + COUNT( ALL - - 53 ) + + 92 AS col1
----
93

skipif mysql # not compatible
query I rowsort label-1252
SELECT ALL + COUNT ( ALL - - 53 ) + + 92 AS col1
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1253
SELECT + 16 + - CAST( NULL AS SIGNED ) * - 99 + - - COUNT( * ) * - 33 * + 27 * - + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-1253
SELECT + 16 + - CAST ( NULL AS INTEGER ) * - 99 + - - COUNT ( * ) * - 33 * + 27 * - + 23
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1254
SELECT + - 73 + 76 col1, - COUNT( * )
----
3
-1

skipif mysql # not compatible
query II rowsort label-1254
SELECT + - 73 + 76 col1, - COUNT ( * )
----
3
-1

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1256
SELECT ALL - 97 * + 59 + CAST( + 90 AS SIGNED ) * + 7
----
-5093

skipif mysql # not compatible
query I rowsort label-1256
SELECT ALL - 97 * + 59 + CAST ( + 90 AS INTEGER ) * + 7
----
-5093

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1257
SELECT NULLIF ( + 20, - ( + + 95 ) - + CASE 48 WHEN + 89 + + 49 * + - 11 THEN CAST( 70 AS SIGNED ) END / COUNT( * ) )
----
20

skipif mysql # not compatible
query I rowsort label-1257
SELECT NULLIF ( + 20, - ( + + 95 ) - + CASE 48 WHEN + 89 + + 49 * + - 11 THEN CAST ( 70 AS INTEGER ) END / COUNT ( * ) )
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1258
SELECT + 47 DIV + + SUM( DISTINCT + - 56 ) * + 22 + + - 56
----
-56

skipif mysql # not compatible
query I rowsort label-1258
SELECT + 47 / + + SUM ( DISTINCT + - 56 ) * + 22 + + - 56
----
-56

query I rowsort
SELECT - 96 + 70
----
-26

query I rowsort
SELECT ALL 65 * + 15 - + - NULLIF ( + 48, - 72 )
----
1023

query I rowsort
SELECT + 8 * 78
----
624

onlyif mysql # aggregate syntax: 
query I rowsort label-1262
SELECT + CASE WHEN NOT COUNT( * ) <> + + 38 / - 34 THEN - 24 ELSE - 92 END AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-1262
SELECT + CASE WHEN NOT COUNT ( * ) <> + + 38 / - 34 THEN - 24 ELSE - 92 END AS col0
----
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-1263
SELECT + 88 col2, COALESCE ( - COUNT( * ), - 0 + - 9 - + 8 ) AS col1
----
88
-1

skipif mysql # not compatible
query II rowsort label-1263
SELECT + 88 col2, COALESCE ( - COUNT ( * ), - 0 + - 9 - + 8 ) AS col1
----
88
-1

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

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

query I rowsort
SELECT DISTINCT + ( + CASE + 35 WHEN 0 THEN 54 * + + 11 WHEN 56 THEN NULL END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1266
SELECT ALL + MIN( DISTINCT + 29 ) col2
----
29

skipif mysql # not compatible
query I rowsort label-1266
SELECT ALL + MIN ( DISTINCT + 29 ) col2
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1267
SELECT COUNT( * ) AS col1, - 53 DIV - + 78
----
1
0

skipif mysql # not compatible
query II rowsort label-1267
SELECT COUNT ( * ) AS col1, - 53 / - + 78
----
1
0

query II rowsort
SELECT DISTINCT + 47, 24 AS col2
----
47
24

query I rowsort
SELECT - 30 * - 28 AS col1
----
840

onlyif mysql # DIV for integer division: 
query II rowsort label-1270
SELECT ALL + 62 AS col2, - 90 DIV 68 AS col1
----
62
-1

skipif mysql # not compatible
query II rowsort label-1270
SELECT ALL + 62 AS col2, - 90 / 68 AS col1
----
62
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1271
SELECT DISTINCT + COUNT( * ) DIV - + 53 DIV - + 5 AS col0, 90 - NULLIF ( - 49, + + 14 )
----
0
139

skipif mysql # not compatible
query II rowsort label-1271
SELECT DISTINCT + COUNT ( * ) / - + 53 / - + 5 AS col0, 90 - NULLIF ( - 49, + + 14 )
----
0
139

onlyif mysql # aggregate syntax: 
query II rowsort label-1272
SELECT COUNT( * ) AS col1, 47 * - 80
----
1
-3760

skipif mysql # not compatible
query II rowsort label-1272
SELECT COUNT ( * ) AS col1, 47 * - 80
----
1
-3760

query I rowsort
SELECT ALL + ( - 65 ) * - 15 * + 10 + + 59 col0
----
9809

onlyif mysql # DIV for integer division: 
query I rowsort label-1274
SELECT - 94 DIV + 71 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1274
SELECT - 94 / + 71 AS col0
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1276
SELECT + - SUM( ALL 30 ) col1
----
-30

skipif mysql # not compatible
query I rowsort label-1276
SELECT + - SUM ( ALL 30 ) col1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-1277
SELECT ALL - - 20 * - - COUNT( * ) * - - 59 * + 66
----
77880

skipif mysql # not compatible
query I rowsort label-1277
SELECT ALL - - 20 * - - COUNT ( * ) * - - 59 * + 66
----
77880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1278
SELECT - + CASE - 24 WHEN + + CASE 11 WHEN - 45 THEN - + 18 * - + 68 * + 56 WHEN 20 - 59 * - 80 DIV + CAST( - - 98 AS SIGNED ) * + - 14 + + 55 + - + CAST( - + 8 AS SIGNED ) + + COALESCE ( - + CAST( - 20 AS SIGNED ), + 50 * + + NULLIF ( - NULLIF ( 76, + 0 ), + 39 * - CAST( - 63 AS SIGNED ) ) + COUNT( * ), 4 ) THEN - 36 ELSE NULL END DIV - 96 * + MAX( ALL + - 69 ) + - 90 + - + 48 THEN NULL ELSE - + 33 - - COUNT( * ) END * MAX( + - 6 ) DIV + 43 + - 59 DIV + 30 + - 78 - + + 45
----
-128

skipif mysql # not compatible
query I rowsort label-1278
SELECT - + CASE - 24 WHEN + + CASE 11 WHEN - 45 THEN - + 18 * - + 68 * + 56 WHEN 20 - 59 * - 80 / + CAST ( - - 98 AS INTEGER ) * + - 14 + + 55 + - + CAST ( - + 8 AS INTEGER ) + + COALESCE ( - + CAST ( - 20 AS INTEGER ), + 50 * + + NULLIF ( - NULLIF ( 76, + 0 ), + 39 * - CAST ( - 63 AS INTEGER ) ) + COUNT ( * ), 4 ) THEN - 36 ELSE NULL END / - 96 * + MAX ( ALL + - 69 ) + - 90 + - + 48 THEN NULL ELSE - + 33 - - COUNT ( * ) END * MAX ( + - 6 ) / + 43 + - 59 / + 30 + - 78 - + + 45
----
-128

query I rowsort
SELECT ALL + 89 * + 94 * - 97 col0
----
-811502

query I rowsort
SELECT - ( - ( + 68 ) ) * 59 * + 46 * + + 70 + - 73 AS col0
----
12918567

query II rowsort
SELECT 95, 18 * 18 col1
----
95
324

query I rowsort
SELECT - 55 + + 81 - - 36 + 12 * 91 col1
----
1154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1283
SELECT - + MAX( DISTINCT + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1283
SELECT - + MAX ( DISTINCT + CAST ( NULL AS INTEGER ) )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1285
SELECT + NULLIF ( + 9, - COUNT( * ) + - CASE - COALESCE ( - 81, - 17 ) WHEN - 9 * - + 49 - - - 94 THEN + 96 + - 0 + + - NULLIF ( 10, 80 ) WHEN + - 67 * 56 THEN NULL END - - + 46 * 20 * - SUM( + - 7 ) + + NULLIF ( 11, 30 * ( 6 ) ) - - 40 )
----
9

skipif mysql # not compatible
query I rowsort label-1285
SELECT + NULLIF ( + 9, - COUNT ( * ) + - CASE - COALESCE ( - 81, - 17 ) WHEN - 9 * - + 49 - - - 94 THEN + 96 + - 0 + + - NULLIF ( 10, 80 ) WHEN + - 67 * 56 THEN NULL END - - + 46 * 20 * - SUM ( + - 7 ) + + NULLIF ( 11, 30 * ( 6 ) ) - - 40 )
----
9

query I rowsort
SELECT + + 62 + + - 88 * - 1
----
150

onlyif mysql # DIV for integer division: 
query II rowsort label-1287
SELECT + 8 col1, 44 * 74 DIV - - 34
----
8
95

skipif mysql # not compatible
query II rowsort label-1287
SELECT + 8 col1, 44 * 74 / - - 34
----
8
95

onlyif mysql # aggregate syntax: 
query I rowsort label-1288
SELECT ALL 31 + - COUNT( * ) * + + 31 + 39 + + - 95 * 65 AS col2
----
-6136

skipif mysql # not compatible
query I rowsort label-1288
SELECT ALL 31 + - COUNT ( * ) * + + 31 + 39 + + - 95 * 65 AS col2
----
-6136

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

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

query I rowsort
SELECT ALL + 71 + - 82
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-1291
SELECT ALL - 91 + + 19 + - MIN( DISTINCT - 84 ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-1291
SELECT ALL - 91 + + 19 + - MIN ( DISTINCT - 84 ) AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-1292
SELECT ALL 58 * 68 * COUNT( * )
----
3944

skipif mysql # not compatible
query I rowsort label-1292
SELECT ALL 58 * 68 * COUNT ( * )
----
3944

query I rowsort
SELECT ALL 97 * 83 AS col2
----
8051

query I rowsort
SELECT DISTINCT 67 - + 14
----
53

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

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

query I rowsort
SELECT + ( - 1 ) * + 56 AS col2
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1297
SELECT CAST( COUNT( * ) AS SIGNED ) col0, MAX( DISTINCT + + 43 ) col1
----
1
43

skipif mysql # not compatible
query II rowsort label-1297
SELECT CAST ( COUNT ( * ) AS INTEGER ) col0, MAX ( DISTINCT + + 43 ) col1
----
1
43

query I rowsort
SELECT + 84 - - 71
----
155

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1299
SELECT + CAST( NULL AS DECIMAL ) * - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-1299
SELECT + CAST ( NULL AS REAL ) * - 22
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1300
SELECT ALL CASE CAST( NULL AS DECIMAL ) WHEN + 66 THEN 9 * - 46 END / - + 22 + - 71 - 71
----
NULL

skipif mysql # not compatible
query I rowsort label-1300
SELECT ALL CASE CAST ( NULL AS REAL ) WHEN + 66 THEN 9 * - 46 END / - + 22 + - 71 - 71
----
NULL

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

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

query I rowsort
SELECT - 89 * - 81 * + 77
----
555093

onlyif mysql # aggregate syntax: 
query I rowsort label-1303
SELECT + 60 * + - 49 + + COUNT( * ) + + 8 * - 43
----
-3283

skipif mysql # not compatible
query I rowsort label-1303
SELECT + 60 * + - 49 + + COUNT ( * ) + + 8 * - 43
----
-3283

query I rowsort
SELECT - 7 - + ( - - 84 ) + + 1 * 89
----
-2

query II rowsort
SELECT + 18 * 52, 95 AS col0
----
936
95

onlyif mysql # aggregate syntax: 
query I rowsort label-1306
SELECT DISTINCT + COUNT( * ) * + + MAX( - 57 )
----
-57

skipif mysql # not compatible
query I rowsort label-1306
SELECT DISTINCT + COUNT ( * ) * + + MAX ( - 57 )
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-1307
SELECT ( - COUNT( ALL - - 38 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1307
SELECT ( - COUNT ( ALL - - 38 ) ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1308
SELECT ALL - 34 * + 94 + - 20 + + 31 * ( + CAST( NULL AS SIGNED ) ) * + 69 * 20
----
NULL

skipif mysql # not compatible
query I rowsort label-1308
SELECT ALL - 34 * + 94 + - 20 + + 31 * ( + CAST ( NULL AS INTEGER ) ) * + 69 * 20
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1309
SELECT - 47 + + 2 + + 0 DIV 35
----
-45

skipif mysql # not compatible
query I rowsort label-1309
SELECT - 47 + + 2 + + 0 / 35
----
-45

query I rowsort
SELECT DISTINCT + 60 * - 15 AS col1
----
-900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1311
SELECT DISTINCT 43 * + 29 - - 9 * ( + CAST( NULL AS SIGNED ) ) + + + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-1311
SELECT DISTINCT 43 * + 29 - - 9 * ( + CAST ( NULL AS INTEGER ) ) + + + 82
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1312
SELECT + - MAX( ALL + - ( - + 42 ) ) * + COUNT( * ) + + 35 AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-1312
SELECT + - MAX ( ALL + - ( - + 42 ) ) * + COUNT ( * ) + + 35 AS col0
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-1313
SELECT ALL + ( + 13 ) DIV + 48 + - - 87 AS col1
----
87

skipif mysql # not compatible
query I rowsort label-1313
SELECT ALL + ( + 13 ) / + 48 + - - 87 AS col1
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-1314
SELECT - CASE - NULLIF ( 99, 6 ) WHEN 41 THEN NULL WHEN - + 50 THEN NULL WHEN 39 * 47 THEN - - 74 * - 54 + COUNT( * ) - - 55 + 82 ELSE + COUNT( * ) END col1, CASE COUNT( * ) WHEN 39 THEN - + MAX( 55 ) ELSE NULL END
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-1314
SELECT - CASE - NULLIF ( 99, 6 ) WHEN 41 THEN NULL WHEN - + 50 THEN NULL WHEN 39 * 47 THEN - - 74 * - 54 + COUNT ( * ) - - 55 + 82 ELSE + COUNT ( * ) END col1, CASE COUNT ( * ) WHEN 39 THEN - + MAX ( 55 ) ELSE NULL END
----
-1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1315
SELECT - COUNT( * ) / + 28 + - CASE + - 95 WHEN CAST( - COUNT( * ) AS SIGNED ) + + + 13 * + + 62 THEN + - 67 * + 73 * + COUNT( * ) WHEN + COALESCE ( 66, - 45, + 78 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1315
SELECT - COUNT ( * ) / + 28 + - CASE + - 95 WHEN CAST ( - COUNT ( * ) AS INTEGER ) + + + 13 * + + 62 THEN + - 67 * + 73 * + COUNT ( * ) WHEN + COALESCE ( 66, - 45, + 78 ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1316
SELECT - + 8 + COUNT( * ) + + + 48
----
41

skipif mysql # not compatible
query I rowsort label-1316
SELECT - + 8 + COUNT ( * ) + + + 48
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-1317
SELECT DISTINCT + COUNT( * ) * - - 68 AS col2
----
68

skipif mysql # not compatible
query I rowsort label-1317
SELECT DISTINCT + COUNT ( * ) * - - 68 AS col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1318
SELECT ALL - 87 * - 96 + + 77 * + - COUNT( * ) AS col1
----
8275

skipif mysql # not compatible
query I rowsort label-1318
SELECT ALL - 87 * - 96 + + 77 * + - COUNT ( * ) AS col1
----
8275

query I rowsort
SELECT - 75 * 23 AS col2
----
-1725

query I rowsort
SELECT DISTINCT - 84 * + + 4 col0
----
-336

onlyif mysql # aggregate syntax: 
query I rowsort label-1321
SELECT ALL COUNT( DISTINCT 27 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1321
SELECT ALL COUNT ( DISTINCT 27 ) AS col1
----
1

query I rowsort
SELECT 14 - - 56 AS col2
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1323
SELECT DISTINCT + + 8 - + MAX( - 42 ) + + + 14 * - + COUNT( * ) DIV + 98 + - - COUNT( * ) AS col0, COUNT( * ) AS col1
----
51
1

skipif mysql # not compatible
query II rowsort label-1323
SELECT DISTINCT + + 8 - + MAX ( - 42 ) + + + 14 * - + COUNT ( * ) / + 98 + - - COUNT ( * ) AS col0, COUNT ( * ) AS col1
----
51
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1324
SELECT + 78 + - ( + + 74 ) * + 2, - 77 - - COUNT( * ) AS col1
----
-70
-76

skipif mysql # not compatible
query II rowsort label-1324
SELECT + 78 + - ( + + 74 ) * + 2, - 77 - - COUNT ( * ) AS col1
----
-70
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-1325
SELECT 83 * - + 72 * 1 * + COUNT( * ) AS col2
----
-5976

skipif mysql # not compatible
query I rowsort label-1325
SELECT 83 * - + 72 * 1 * + COUNT ( * ) AS col2
----
-5976

onlyif mysql # aggregate syntax: 
query I rowsort label-1326
SELECT COUNT( + 75 ) + 84
----
85

skipif mysql # not compatible
query I rowsort label-1326
SELECT COUNT ( + 75 ) + 84
----
85

query I rowsort
SELECT 98 + 75 AS col2
----
173

onlyif mysql # DIV for integer division: 
query I rowsort label-1328
SELECT - 0 DIV - ( - ( - 88 ) ) * - 79 + - - 7 + 50 col2
----
57

skipif mysql # not compatible
query I rowsort label-1328
SELECT - 0 / - ( - ( - 88 ) ) * - 79 + - - 7 + 50 col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1329
SELECT ALL ( + MIN( 27 ) ) * - 4 + - COUNT( * ) - 32 * + SUM( ALL + + 88 ) * - - 52 + + 39 * - NULLIF ( - MAX( - 28 ), + 76 )
----
-147633

skipif mysql # not compatible
query I rowsort label-1329
SELECT ALL ( + MIN ( 27 ) ) * - 4 + - COUNT ( * ) - 32 * + SUM ( ALL + + 88 ) * - - 52 + + 39 * - NULLIF ( - MAX ( - 28 ), + 76 )
----
-147633

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1331
SELECT COALESCE ( 33, + 3 * + CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) ) * COUNT( * ) * 47
----
1551

skipif mysql # not compatible
query I rowsort label-1331
SELECT COALESCE ( 33, + 3 * + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) ) * COUNT ( * ) * 47
----
1551

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

skipif mysql # not compatible
query I rowsort label-1332
SELECT ( 94 ) * COUNT ( * )
----
94

query I rowsort
SELECT DISTINCT 58 * + 68
----
3944

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1334
SELECT ( 3 ) * COALESCE ( 64 + + 75, CAST( COALESCE ( - 73, 65 ) AS SIGNED ) * - 95 - - COUNT( DISTINCT + 13 ), + 83 * - COUNT( DISTINCT - CASE - 16 WHEN - 26 / 19 THEN NULL ELSE + 57 / + NULLIF ( + 3, 59 ) END * 49 ) + 11 )
----
417

skipif mysql # not compatible
query I rowsort label-1334
SELECT ( 3 ) * COALESCE ( 64 + + 75, CAST ( COALESCE ( - 73, 65 ) AS INTEGER ) * - 95 - - COUNT ( DISTINCT + 13 ), + 83 * - COUNT ( DISTINCT - CASE - 16 WHEN - 26 / 19 THEN NULL ELSE + 57 / + NULLIF ( + 3, 59 ) END * 49 ) + 11 )
----
417

query I rowsort
SELECT 77 * - 49
----
-3773

query I rowsort
SELECT ALL 93 * + 86
----
7998

query I rowsort
SELECT ALL 57 * + 52 AS col2
----
2964

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1338
SELECT 93 * CAST( 69 AS SIGNED )
----
6417

skipif mysql # not compatible
query I rowsort label-1338
SELECT 93 * CAST ( 69 AS INTEGER )
----
6417

query I rowsort
SELECT 99 + 18 col2
----
117

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1340
SELECT DISTINCT - 36 DIV + CASE COUNT( * ) WHEN SUM( DISTINCT - 62 ) - COUNT( * ) THEN 33 WHEN - 1 + 86 * - 13 THEN NULL ELSE - 36 * 47 - COUNT( * ) END AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1340
SELECT DISTINCT - 36 / + CASE COUNT ( * ) WHEN SUM ( DISTINCT - 62 ) - COUNT ( * ) THEN 33 WHEN - 1 + 86 * - 13 THEN NULL ELSE - 36 * 47 - COUNT ( * ) END AS col1
----
0

query I rowsort
SELECT 83 * + 31 AS col0
----
2573

query I rowsort
SELECT 18 * + 75
----
1350

onlyif mysql # DIV for integer division: 
query I rowsort label-1343
SELECT DISTINCT 8 DIV 36 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1343
SELECT DISTINCT 8 / 36 AS col0
----
0

query I rowsort
SELECT DISTINCT + COALESCE ( 32, + ( - 39 ) ) * - 13
----
-416

onlyif mysql # aggregate syntax: 
query I rowsort label-1345
SELECT 8 * CASE + 38 WHEN - 42 THEN - COUNT( * ) * + 75 ELSE - 23 END col0
----
-184

skipif mysql # not compatible
query I rowsort label-1345
SELECT 8 * CASE + 38 WHEN - 42 THEN - COUNT ( * ) * + 75 ELSE - 23 END col0
----
-184

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1349
SELECT ALL SUM( ALL 36 )
----
36

skipif mysql # not compatible
query I rowsort label-1349
SELECT ALL SUM ( ALL 36 )
----
36

query I rowsort
SELECT 8 * + 80 AS col2
----
640

onlyif mysql # aggregate syntax: 
query I rowsort label-1351
SELECT MIN( DISTINCT - 75 ) col0
----
-75

skipif mysql # not compatible
query I rowsort label-1351
SELECT MIN ( DISTINCT - 75 ) col0
----
-75

query I rowsort
SELECT 23 - - 57
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1353
SELECT ALL - 35 * CAST( NULL AS SIGNED ) + - 26 * - 90
----
NULL

skipif mysql # not compatible
query I rowsort label-1353
SELECT ALL - 35 * CAST ( NULL AS INTEGER ) + - 26 * - 90
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1354
SELECT DISTINCT + 51 * COUNT( DISTINCT ( 53 ) ) + - 84 col1
----
-33

skipif mysql # not compatible
query I rowsort label-1354
SELECT DISTINCT + 51 * COUNT ( DISTINCT ( 53 ) ) + - 84 col1
----
-33

query I rowsort
SELECT 58 * 91
----
5278

onlyif mysql # aggregate syntax: 
query I rowsort label-1356
SELECT - MIN( + 43 ) - + 37
----
-80

skipif mysql # not compatible
query I rowsort label-1356
SELECT - MIN ( + 43 ) - + 37
----
-80

query I rowsort
SELECT 5 * 93 AS col1
----
465

onlyif mysql # aggregate syntax: 
query I rowsort label-1358
SELECT ALL ( 27 ) * + 13 - + CASE 24 WHEN - COUNT( * ) * - 10 THEN 65 * - 97 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1358
SELECT ALL ( 27 ) * + 13 - + CASE 24 WHEN - COUNT ( * ) * - 10 THEN 65 * - 97 END
----
NULL

query I rowsort
SELECT + + 80 + 39 * 57 AS col0
----
2303

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

query I rowsort
SELECT DISTINCT + 58 - 15
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1362
SELECT ALL - CAST( + MAX( DISTINCT 41 ) AS SIGNED ) DIV COUNT( * ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-1362
SELECT ALL - CAST ( + MAX ( DISTINCT 41 ) AS INTEGER ) / COUNT ( * ) AS col0
----
-41

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

skipif mysql # not compatible
query I rowsort label-1363
SELECT ALL + COUNT ( * ) - 18 AS col0
----
-17

query I rowsort
SELECT ALL - 45 - 67 * 90 col2
----
-6075

query I rowsort
SELECT + 33 + - 73 AS col0
----
-40

query I rowsort
SELECT + ( - 52 ) + + 53 AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-1367
SELECT ALL - COUNT( * ) * CASE + 88 WHEN + CAST( NULL AS DECIMAL ) + 51 THEN - COUNT( * ) ELSE - 63 + 74 DIV + NULLIF ( ( 37 ), ( - 48 ) ) END
----
61

skipif mysql # not compatible
query I rowsort label-1367
SELECT ALL - COUNT ( * ) * CASE + 88 WHEN + CAST ( NULL AS REAL ) + 51 THEN - COUNT ( * ) ELSE - 63 + 74 / + NULLIF ( ( 37 ), ( - 48 ) ) END
----
61

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1369
SELECT + - 62 + + 4 * + SUM( - 70 ) AS col1
----
-342

skipif mysql # not compatible
query I rowsort label-1369
SELECT + - 62 + + 4 * + SUM ( - 70 ) AS col1
----
-342

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1371
SELECT ALL - SUM( DISTINCT ( NULLIF ( + 75, - 44 ) ) ) * COUNT( * ) AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-1371
SELECT ALL - SUM ( DISTINCT ( NULLIF ( + 75, - 44 ) ) ) * COUNT ( * ) AS col1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-1372
SELECT ALL SUM( 29 ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-1372
SELECT ALL SUM ( 29 ) AS col0
----
29

query I rowsort
SELECT + 38 + + 84 AS col0
----
122

query I rowsort
SELECT ALL 2 * + 36 * 41 AS col1
----
2952

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

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

query I rowsort
SELECT ALL - 87 + - + 62 col2
----
-149

query I rowsort
SELECT - 31 - - 39
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1378
SELECT ALL CASE + 88 WHEN 54 / SUM( ALL + 67 ) THEN NULL ELSE + 33 * 93 END + + 11 AS col0
----
3080

skipif mysql # not compatible
query I rowsort label-1378
SELECT ALL CASE + 88 WHEN 54 / SUM ( ALL + 67 ) THEN NULL ELSE + 33 * 93 END + + 11 AS col0
----
3080

onlyif mysql # aggregate syntax: 
query I rowsort label-1379
SELECT - 7 - 1 * ( CASE COUNT( * ) WHEN - 32 THEN 91 + COUNT( * ) * - 57 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1379
SELECT - 7 - 1 * ( CASE COUNT ( * ) WHEN - 32 THEN 91 + COUNT ( * ) * - 57 END ) AS col0
----
NULL

query I rowsort
SELECT - 84 + + - 71 + 92 AS col2
----
-63

query I rowsort
SELECT ALL - ( + 89 ) + 4 AS col1
----
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-1382
SELECT - ( COALESCE ( - 69, 60 * + 66, - 22 * 73, - 50 + - COALESCE ( 99, + 83 DIV - 39 ) DIV - 21 ) )
----
69

skipif mysql # not compatible
query I rowsort label-1382
SELECT - ( COALESCE ( - 69, 60 * + 66, - 22 * 73, - 50 + - COALESCE ( 99, + 83 / - 39 ) / - 21 ) )
----
69

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1383
SELECT - 71 + + - CAST( + 65 AS SIGNED ) + + 85 * 20 DIV - 91 AS col1
----
-154

skipif mysql # not compatible
query I rowsort label-1383
SELECT - 71 + + - CAST ( + 65 AS INTEGER ) + + 85 * 20 / - 91 AS col1
----
-154

query I rowsort
SELECT DISTINCT ( + - 63 ) + + 54 AS col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1385
SELECT ALL COUNT( - + ( 22 ) ) + + 0
----
1

skipif mysql # not compatible
query I rowsort label-1385
SELECT ALL COUNT ( - + ( 22 ) ) + + 0
----
1

query I rowsort
SELECT - 24 + - 2
----
-26

query I rowsort
SELECT ALL - 25 + + - 59 AS col1
----
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1388
SELECT ALL 35 DIV COUNT( * ) * ( SUM( + 14 ) * SUM( 83 ) ) + 96
----
40766

skipif mysql # not compatible
query I rowsort label-1388
SELECT ALL 35 / COUNT ( * ) * ( SUM ( + 14 ) * SUM ( 83 ) ) + 96
----
40766

onlyif mysql # aggregate syntax: 
query I rowsort label-1389
SELECT - COUNT( * ) * - + 85 col2
----
85

skipif mysql # not compatible
query I rowsort label-1389
SELECT - COUNT ( * ) * - + 85 col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1390
SELECT ALL + MAX( DISTINCT 44 ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-1390
SELECT ALL + MAX ( DISTINCT 44 ) AS col1
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1391
SELECT ALL - CAST( 38 AS SIGNED ) * - 6 AS col0
----
228

skipif mysql # not compatible
query I rowsort label-1391
SELECT ALL - CAST ( 38 AS INTEGER ) * - 6 AS col0
----
228

onlyif mysql # DIV for integer division: 
query I rowsort label-1392
SELECT ( - 74 ) DIV + 30 + 24 AS col1
----
22

skipif mysql # not compatible
query I rowsort label-1392
SELECT ( - 74 ) / + 30 + 24 AS col1
----
22

query I rowsort
SELECT - - ( + + 93 ) + - 13 * 64 AS col2
----
-739

onlyif mysql # aggregate syntax: 
query I rowsort label-1394
SELECT ALL COUNT( * ) * + 23 - 0 - 50 * COUNT( * ) AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-1394
SELECT ALL COUNT ( * ) * + 23 - 0 - 50 * COUNT ( * ) AS col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-1395
SELECT + CASE - 69 WHEN 2 + COUNT( DISTINCT 93 ) THEN NULL ELSE + 93 * + 86 END AS col1
----
7998

skipif mysql # not compatible
query I rowsort label-1395
SELECT + CASE - 69 WHEN 2 + COUNT ( DISTINCT 93 ) THEN NULL ELSE + 93 * + 86 END AS col1
----
7998

query I rowsort
SELECT - - 10 * 76
----
760

query I rowsort
SELECT DISTINCT + - ( 19 ) AS col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-1398
SELECT ALL 14 * + COALESCE ( COUNT( * ), 65 ) * + 6 - COUNT( * ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-1398
SELECT ALL 14 * + COALESCE ( COUNT ( * ), 65 ) * + 6 - COUNT ( * ) AS col0
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-1399
SELECT + + 52 DIV + 80 + + 13 + + 97 * - ( + ( + 20 ) * 53 ) AS col0
----
-102807

skipif mysql # not compatible
query I rowsort label-1399
SELECT + + 52 / + 80 + + 13 + + 97 * - ( + ( + 20 ) * 53 ) AS col0
----
-102807

onlyif mysql # aggregate syntax: 
query I rowsort label-1400
SELECT DISTINCT + MAX( DISTINCT + 52 ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-1400
SELECT DISTINCT + MAX ( DISTINCT + 52 ) AS col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-1401
SELECT + 31 * + 95 * ( + 95 * - MAX( DISTINCT - 8 ) ) - 98 AS col0
----
2238102

skipif mysql # not compatible
query I rowsort label-1401
SELECT + 31 * + 95 * ( + 95 * - MAX ( DISTINCT - 8 ) ) - 98 AS col0
----
2238102

query I rowsort
SELECT DISTINCT - 5 * - + 29 col0
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-1403
SELECT - COUNT( * ) - - - 79 * 52 AS col1
----
-4109

skipif mysql # not compatible
query I rowsort label-1403
SELECT - COUNT ( * ) - - - 79 * 52 AS col1
----
-4109

query I rowsort
SELECT - + 83 * 97 AS col0
----
-8051

query I rowsort
SELECT + 10 * - - 59 + + 50
----
640

onlyif mysql # aggregate syntax: 
query I rowsort label-1406
SELECT ( + MAX( ALL 92 ) ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-1406
SELECT ( + MAX ( ALL 92 ) ) AS col1
----
92

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1408
SELECT DISTINCT COALESCE ( + - 62, 61 * 60 + COUNT( DISTINCT 55 ) * 86 )
----
-62

skipif mysql # not compatible
query I rowsort label-1408
SELECT DISTINCT COALESCE ( + - 62, 61 * 60 + COUNT ( DISTINCT 55 ) * 86 )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-1409
SELECT - COUNT( ALL - + 90 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1409
SELECT - COUNT ( ALL - + 90 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1410
SELECT DISTINCT COUNT( * ) AS col1, + 43 * + CASE - 88 WHEN 84 * - AVG ( ALL - ( 72 ) ) + 24 THEN NULL WHEN 95 / 90 THEN + COUNT( * ) END * 76 AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-1410
SELECT DISTINCT COUNT ( * ) AS col1, + 43 * + CASE - 88 WHEN 84 * - AVG ( ALL - ( 72 ) ) + 24 THEN NULL WHEN 95 / 90 THEN + COUNT ( * ) END * 76 AS col0
----
1
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1411
SELECT + 14 DIV 24 * + 85 DIV - 69 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1411
SELECT + 14 / 24 * + 85 / - 69 AS col1
----
0

query I rowsort
SELECT - 2 * + + ( - 26 ) * - 17
----
-884

query I rowsort
SELECT ALL ( - 89 ) + - + 61 - - 65
----
-85

query I rowsort
SELECT ALL 48 * 89 AS col2
----
4272

query I rowsort
SELECT + 72 * - 67
----
-4824

onlyif mysql # aggregate syntax: 
query I rowsort label-1416
SELECT DISTINCT COUNT( - 98 ) * 27 * 18 AS col2
----
486

skipif mysql # not compatible
query I rowsort label-1416
SELECT DISTINCT COUNT ( - 98 ) * 27 * 18 AS col2
----
486

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1418
SELECT ALL ( - MAX( DISTINCT + 18 ) ) + COUNT( * ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-1418
SELECT ALL ( - MAX ( DISTINCT + 18 ) ) + COUNT ( * ) AS col2
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1419
SELECT ALL COUNT( * ) * 40 DIV COUNT( ALL - 88 ) * 30
----
1200

skipif mysql # not compatible
query I rowsort label-1419
SELECT ALL COUNT ( * ) * 40 / COUNT ( ALL - 88 ) * 30
----
1200

onlyif mysql # aggregate syntax: 
query I rowsort label-1420
SELECT DISTINCT + 11 + - COUNT( * ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-1420
SELECT DISTINCT + 11 + - COUNT ( * ) AS col1
----
10

query I rowsort
SELECT ALL - 57 + - 7
----
-64

query II rowsort
SELECT DISTINCT 50 AS col2, 90 AS col1
----
50
90

query I rowsort
SELECT + 12 + + - 46 + - 76 * 86
----
-6570

onlyif mysql # aggregate syntax: 
query I rowsort label-1424
SELECT ALL COUNT( DISTINCT - - 44 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1424
SELECT ALL COUNT ( DISTINCT - - 44 ) AS col2
----
1

query I rowsort
SELECT ALL + + 54 * + 19
----
1026

onlyif mysql # aggregate syntax: 
query I rowsort label-1426
SELECT ALL MIN( ALL 42 ) - + COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-1426
SELECT ALL MIN ( ALL 42 ) - + COUNT ( * )
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-1427
SELECT + 49 DIV + 69 + - + 33
----
-33

skipif mysql # not compatible
query I rowsort label-1427
SELECT + 49 / + 69 + - + 33
----
-33

query I rowsort
SELECT ALL - 9 * + 60 * 42 - - 53 * - 79
----
-26867

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

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

query I rowsort
SELECT ALL - NULLIF ( - - 99, + 82 / + 71 )
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1431
SELECT + - 34 * + + COUNT( * ) + + + ( ( - 76 ) ) + + 72
----
-38

skipif mysql # not compatible
query I rowsort label-1431
SELECT + - 34 * + + COUNT ( * ) + + + ( ( - 76 ) ) + + 72
----
-38

query I rowsort
SELECT - 95 * + + 22 - + 58 AS col2
----
-2148

query I rowsort
SELECT 83 + 93
----
176

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1435
SELECT ALL + + CAST( NULL AS DECIMAL ) + + - COUNT( * ) + - 81
----
NULL

skipif mysql # not compatible
query I rowsort label-1435
SELECT ALL + + CAST ( NULL AS REAL ) + + - COUNT ( * ) + - 81
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1436
SELECT - NULLIF ( + - 67, AVG ( DISTINCT - 79 ) * - 67 ) * COUNT( * ) + - ( + 94 ) AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-1436
SELECT - NULLIF ( + - 67, AVG ( DISTINCT - 79 ) * - 67 ) * COUNT ( * ) + - ( + 94 ) AS col1
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-1437
SELECT ALL - MAX( ALL - 14 )
----
14

skipif mysql # not compatible
query I rowsort label-1437
SELECT ALL - MAX ( ALL - 14 )
----
14

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

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

skipif mysql # not compatible
query I rowsort label-1439
SELECT ALL - AVG ( CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1440
SELECT ALL - + CASE 54 WHEN + 55 THEN NULL ELSE + 85 * + COUNT( * ) END + 95
----
10

skipif mysql # not compatible
query I rowsort label-1440
SELECT ALL - + CASE 54 WHEN + 55 THEN NULL ELSE + 85 * + COUNT ( * ) END + 95
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1441
SELECT CAST( 47 AS SIGNED ) + + COALESCE ( 57, + 84, + 5 * COUNT( * ) ) + + 46 AS col0
----
150

skipif mysql # not compatible
query I rowsort label-1441
SELECT CAST ( 47 AS INTEGER ) + + COALESCE ( 57, + 84, + 5 * COUNT ( * ) ) + + 46 AS col0
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-1442
SELECT 98 + - COUNT( ALL + 82 ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-1442
SELECT 98 + - COUNT ( ALL + 82 ) AS col1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1443
SELECT COUNT( * ) * + 89 * - 7 AS col0
----
-623

skipif mysql # not compatible
query I rowsort label-1443
SELECT COUNT ( * ) * + 89 * - 7 AS col0
----
-623

query I rowsort
SELECT NULLIF ( - 60, + ( 92 ) ) + + 29 AS col2
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-1445
SELECT DISTINCT - 43 + + + COUNT( * ) * - ( + 80 ) col1
----
-123

skipif mysql # not compatible
query I rowsort label-1445
SELECT DISTINCT - 43 + + + COUNT ( * ) * - ( + 80 ) col1
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-1446
SELECT 33 + - COUNT( * ) col1
----
32

skipif mysql # not compatible
query I rowsort label-1446
SELECT 33 + - COUNT ( * ) col1
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-1447
SELECT ALL - COUNT( * ) + + 35, - 45 col0
----
34
-45

skipif mysql # not compatible
query II rowsort label-1447
SELECT ALL - COUNT ( * ) + + 35, - 45 col0
----
34
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1448
SELECT NULLIF ( - 16, + + 90 / 39 * + 68 + MAX( ALL 72 ) * + CAST( NULL AS SIGNED ) ) + 11 * - 66
----
-742

skipif mysql # not compatible
query I rowsort label-1448
SELECT NULLIF ( - 16, + + 90 / 39 * + 68 + MAX ( ALL 72 ) * + CAST ( NULL AS INTEGER ) ) + 11 * - 66
----
-742

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

skipif mysql # not compatible
query I rowsort label-1449
SELECT CAST ( + 70 AS REAL ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1450
SELECT 68 + - + 43 * - MAX( + 91 ) + 55 AS col2
----
4036

skipif mysql # not compatible
query I rowsort label-1450
SELECT 68 + - + 43 * - MAX ( + 91 ) + 55 AS col2
----
4036

onlyif mysql # aggregate syntax: 
query I rowsort label-1451
SELECT CASE WHEN NOT ( - 48 ) NOT IN ( 72 + 50 / + 74 ) THEN 11 WHEN NOT 36 - COUNT( * ) NOT BETWEEN ( 38 + 95 * - ( 67 ) ) AND ( + COALESCE ( 26, 75, 14 - 12, - COUNT( * ) ) + 60 * - NULLIF ( - 73, - COUNT( * ) ) ) THEN NULL ELSE - 39 + 25 END + 51 * - 60 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1451
SELECT CASE WHEN NOT ( - 48 ) NOT IN ( 72 + 50 / + 74 ) THEN 11 WHEN NOT 36 - COUNT ( * ) NOT BETWEEN ( 38 + 95 * - ( 67 ) ) AND ( + COALESCE ( 26, 75, 14 - 12, - COUNT ( * ) ) + 60 * - NULLIF ( - 73, - COUNT ( * ) ) ) THEN NULL ELSE - 39 + 25 END + 51 * - 60 AS col0
----
NULL

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

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

query II rowsort
SELECT DISTINCT 94 * + 37 col0, - 99 AS col1
----
3478
-99

query I rowsort
SELECT 58 + + 51 * 63 + + 53 + ( 79 )
----
3403

onlyif mysql # aggregate syntax: 
query I rowsort label-1455
SELECT ALL COALESCE ( + SUM( - 64 ), + 50 ) * 62
----
-3968

skipif mysql # not compatible
query I rowsort label-1455
SELECT ALL COALESCE ( + SUM ( - 64 ), + 50 ) * 62
----
-3968

onlyif mysql # aggregate syntax: 
query I rowsort label-1456
SELECT + 43 * + 87 + + 97 + + 43 * - COUNT( * ) col0
----
3795

skipif mysql # not compatible
query I rowsort label-1456
SELECT + 43 * + 87 + + 97 + + 43 * - COUNT ( * ) col0
----
3795

onlyif mysql # aggregate syntax: 
query I rowsort label-1457
SELECT - 4 * + + COUNT( * ) * 10
----
-40

skipif mysql # not compatible
query I rowsort label-1457
SELECT - 4 * + + COUNT ( * ) * 10
----
-40

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1458
SELECT DISTINCT - CASE + 98 WHEN 26 * - 52 * - 31 + - 33 THEN + 62 * 35 WHEN + CAST( + 93 AS DECIMAL ) / - 84 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1458
SELECT DISTINCT - CASE + 98 WHEN 26 * - 52 * - 31 + - 33 THEN + 62 * 35 WHEN + CAST ( + 93 AS REAL ) / - 84 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1459
SELECT DISTINCT + + COUNT( * ) + + - 88 + 84 * - 65 AS col2
----
-5547

skipif mysql # not compatible
query I rowsort label-1459
SELECT DISTINCT + + COUNT ( * ) + + - 88 + 84 * - 65 AS col2
----
-5547

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1460
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + - NULLIF ( + 59, COUNT( * ) * 25 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1460
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + - NULLIF ( + 59, COUNT ( * ) * 25 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1461
SELECT ALL + COUNT( * ) + + 26 * - 67
----
-1741

skipif mysql # not compatible
query I rowsort label-1461
SELECT ALL + COUNT ( * ) + + 26 * - 67
----
-1741

query I rowsort
SELECT 98 * + 6 * + + 37 AS col1
----
21756

query I rowsort
SELECT ALL + 11 + - - 17 + + ( + + 48 )
----
76

query I rowsort
SELECT ( ( - + 95 ) ) + - - 57 + 83 * + 10 col0
----
792

query I rowsort
SELECT DISTINCT ( - 54 ) + - - 75 * - - 7
----
471

query I rowsort
SELECT ALL + 62 + - + 3
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1467
SELECT CAST( NULL AS SIGNED ) * - 74 + - 9 + - 94 + + COALESCE ( 54 + - 25 / 82, 71 + 58, + 98 * - 28 + 71 ) / 68 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1467
SELECT CAST ( NULL AS INTEGER ) * - 74 + - 9 + - 94 + + COALESCE ( 54 + - 25 / 82, 71 + 58, + 98 * - 28 + 71 ) / 68 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - NULLIF ( - + 5, - + 63 ) + + 96 + 66 AS col0
----
167

onlyif mysql # aggregate syntax: 
query I rowsort label-1469
SELECT ALL - SUM( - 63 ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-1469
SELECT ALL - SUM ( - 63 ) AS col2
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1470
SELECT - 43 * + CASE WHEN NOT COUNT( * ) IN ( - + 1 * MIN( 3 ) ) THEN CAST( NULL AS SIGNED ) END + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-1470
SELECT - 43 * + CASE WHEN NOT COUNT ( * ) IN ( - + 1 * MIN ( 3 ) ) THEN CAST ( NULL AS INTEGER ) END + 75
----
NULL

query II rowsort
SELECT ALL - 88 AS col0, + 14 * - 57
----
-88
-798

onlyif mysql # DIV for integer division: 
query I rowsort label-1472
SELECT DISTINCT 78 + 1 + 46 + ( + 39 ) DIV 77 * 27 AS col2
----
125

skipif mysql # not compatible
query I rowsort label-1472
SELECT DISTINCT 78 + 1 + 46 + ( + 39 ) / 77 * 27 AS col2
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-1473
SELECT DISTINCT - 11 + COUNT( * ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-1473
SELECT DISTINCT - 11 + COUNT ( * ) AS col0
----
-10

query I rowsort
SELECT 36 - 9 - - COALESCE ( 38, - 48, 51 ) AS col1
----
65

query I rowsort
SELECT ALL + 39 * + 36 AS col0
----
1404

query I rowsort
SELECT ALL + 66 * - 96 AS col1
----
-6336

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1477
SELECT AVG ( ALL - CAST( NULL AS SIGNED ) ) + - - 53 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1477
SELECT AVG ( ALL - CAST ( NULL AS INTEGER ) ) + - - 53 col2
----
NULL

query I rowsort
SELECT DISTINCT + 57 * - 86 AS col0
----
-4902

onlyif mysql # aggregate syntax: 
query II rowsort label-1479
SELECT - 45, - 77 * NULLIF ( + 66, + CASE 99 WHEN + 13 / - 67 THEN - COUNT( * ) * - 25 END * - 42 ) AS col2
----
-45
-5082

skipif mysql # not compatible
query II rowsort label-1479
SELECT - 45, - 77 * NULLIF ( + 66, + CASE 99 WHEN + 13 / - 67 THEN - COUNT ( * ) * - 25 END * - 42 ) AS col2
----
-45
-5082

query I rowsort
SELECT ALL - 94 - + 85 * + 87
----
-7489

onlyif mysql # DIV for integer division: 
query I rowsort label-1481
SELECT - 83 DIV + ( + 95 ) * + 81
----
0

skipif mysql # not compatible
query I rowsort label-1481
SELECT - 83 / + ( + 95 ) * + 81
----
0

query II rowsort
SELECT - 53 AS col1, 1 * - - 78
----
-53
78

query I rowsort
SELECT ALL - 40 * - + CASE WHEN NULL = - 1 THEN NULL ELSE 73 * - 56 END
----
-163520

onlyif mysql # DIV for integer division: 
query I rowsort label-1484
SELECT ALL 47 DIV - - 18 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-1484
SELECT ALL 47 / - - 18 AS col2
----
2

query I rowsort
SELECT ALL - 78 * + 1 AS col1
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-1486
SELECT + - 73 DIV - 30 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-1486
SELECT + - 73 / - 30 AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1487
SELECT ALL - - ( - + 76 ) / + + 78 + + - CASE - ( - 59 ) WHEN + 21 THEN NULL WHEN + 46 * - 95 THEN - 29 * 9 - SUM( DISTINCT 43 ) WHEN + 12 THEN - 27 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1487
SELECT ALL - - ( - + 76 ) / + + 78 + + - CASE - ( - 59 ) WHEN + 21 THEN NULL WHEN + 46 * - 95 THEN - 29 * 9 - SUM ( DISTINCT 43 ) WHEN + 12 THEN - 27 END
----
NULL

query I rowsort
SELECT - + 28 col1
----
-28

query I rowsort
SELECT - 88 + 49
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-1490
SELECT - - MIN( + + 94 ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-1490
SELECT - - MIN ( + + 94 ) AS col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1491
SELECT DISTINCT + COUNT( * ) * - 10 + - + ( + 14 )
----
-24

skipif mysql # not compatible
query I rowsort label-1491
SELECT DISTINCT + COUNT ( * ) * - 10 + - + ( + 14 )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-1492
SELECT + 36 * 24 + - COUNT( * ) - - - 95 + - - 80 - - COUNT( * ) AS col0
----
849

skipif mysql # not compatible
query I rowsort label-1492
SELECT + 36 * 24 + - COUNT ( * ) - - - 95 + - - 80 - - COUNT ( * ) AS col0
----
849

onlyif mysql # DIV for integer division: 
query I rowsort label-1493
SELECT DISTINCT 3 * 52 * - 41 + 71 DIV - - 94 AS col1
----
-6396

skipif mysql # not compatible
query I rowsort label-1493
SELECT DISTINCT 3 * 52 * - 41 + 71 / - - 94 AS col1
----
-6396

query I rowsort
SELECT DISTINCT + ( 3 ) AS col2
----
3

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

skipif mysql # not compatible
query I rowsort label-1495
SELECT + CAST ( NULL AS INTEGER ) * + COUNT ( * ) + NULLIF ( 37, + + 25 ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1496
SELECT - CASE 62 WHEN - CAST( COUNT( * ) AS SIGNED ) + - AVG ( ( ( - 64 ) ) ) / - COUNT( * ) THEN 81 WHEN 12 * - 6 THEN + CASE - CAST( NULL AS SIGNED ) WHEN COUNT( * ) THEN 42 ELSE NULL END - - 19 * + 43 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1496
SELECT - CASE 62 WHEN - CAST ( COUNT ( * ) AS INTEGER ) + - AVG ( ( ( - 64 ) ) ) / - COUNT ( * ) THEN 81 WHEN 12 * - 6 THEN + CASE - CAST ( NULL AS INTEGER ) WHEN COUNT ( * ) THEN 42 ELSE NULL END - - 19 * + 43 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1497
SELECT + 57 / + - 29 + CAST( NULL AS SIGNED ) + + + COUNT( * ) * 91
----
NULL

skipif mysql # not compatible
query I rowsort label-1497
SELECT + 57 / + - 29 + CAST ( NULL AS INTEGER ) + + + COUNT ( * ) * 91
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1498
SELECT CAST( - 81 AS SIGNED ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-1498
SELECT CAST ( - 81 AS INTEGER ) AS col1
----
-81

query I rowsort
SELECT - + 31 * + 21 + + 47
----
-604

onlyif mysql # aggregate syntax: 
query I rowsort label-1500
SELECT ALL + SUM( DISTINCT - 49 )
----
-49

skipif mysql # not compatible
query I rowsort label-1500
SELECT ALL + SUM ( DISTINCT - 49 )
----
-49

query I rowsort
SELECT ALL - 92 * + + 16 * + 71 - - + 74 AS col0
----
-104438

query I rowsort
SELECT + 31 + 96 AS col1
----
127

query II rowsort
SELECT ALL + 62, 60 AS col2
----
62
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1504
SELECT - 76 * + 12 + + COUNT( * ) DIV - 24 * - - 2 + ( MAX( + 29 ) ) AS col1
----
-883

skipif mysql # not compatible
query I rowsort label-1504
SELECT - 76 * + 12 + + COUNT ( * ) / - 24 * - - 2 + ( MAX ( + 29 ) ) AS col1
----
-883

query I rowsort
SELECT ALL + 70 * 13 * - 52
----
-47320

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1507
SELECT ALL + COUNT( * ) * - + 77 - 62
----
-139

skipif mysql # not compatible
query I rowsort label-1507
SELECT ALL + COUNT ( * ) * - + 77 - 62
----
-139

onlyif mysql # aggregate syntax: 
query I rowsort label-1508
SELECT - 1 * - 66 * - COUNT( * )
----
-66

skipif mysql # not compatible
query I rowsort label-1508
SELECT - 1 * - 66 * - COUNT ( * )
----
-66

query I rowsort
SELECT + 13 + 73 * + 59 AS col0
----
4320

query II rowsort
SELECT + 72 * COALESCE ( 50, - - 6 ), + 24 + + 75 col2
----
3600
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1511
SELECT ALL CAST( + 61 AS SIGNED ) * - + NULLIF ( 3, + 17 ) + 28 + MAX( ALL 7 ) * 12 AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-1511
SELECT ALL CAST ( + 61 AS INTEGER ) * - + NULLIF ( 3, + 17 ) + 28 + MAX ( ALL 7 ) * 12 AS col1
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-1512
SELECT + MAX( ALL + - 25 ) + 57 * + 53
----
2996

skipif mysql # not compatible
query I rowsort label-1512
SELECT + MAX ( ALL + - 25 ) + 57 * + 53
----
2996

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1513
SELECT - MIN( - 47 ) + + ( + 94 ) * + CAST( 4 AS SIGNED ) AS col1
----
423

skipif mysql # not compatible
query I rowsort label-1513
SELECT - MIN ( - 47 ) + + ( + 94 ) * + CAST ( 4 AS INTEGER ) AS col1
----
423

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1514
SELECT + 65 * + + CASE + AVG ( ALL 74 ) WHEN + 57 * 88 * 76 + + NULLIF ( - SUM( DISTINCT - 97 ) + + 2, MIN( 30 ) ) THEN ( 21 ) * + 57 - - CAST( NULL AS SIGNED ) * - ( CAST( NULL AS SIGNED ) / - 81 ) WHEN - 7 THEN 10 + AVG ( - 43 ) WHEN COUNT( 12 ) + ( + 17 ) * 23 THEN + CAST( 70 AS SIGNED ) + + 17 / + 60 WHEN - 76 * + 13 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1514
SELECT + 65 * + + CASE + AVG ( ALL 74 ) WHEN + 57 * 88 * 76 + + NULLIF ( - SUM ( DISTINCT - 97 ) + + 2, MIN ( 30 ) ) THEN ( 21 ) * + 57 - - CAST ( NULL AS INTEGER ) * - ( CAST ( NULL AS INTEGER ) / - 81 ) WHEN - 7 THEN 10 + AVG ( - 43 ) WHEN COUNT ( 12 ) + ( + 17 ) * 23 THEN + CAST ( 70 AS INTEGER ) + + 17 / + 60 WHEN - 76 * + 13 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1515
SELECT ALL COUNT( + - 2 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1515
SELECT ALL COUNT ( + - 2 ) AS col1
----
1

query I rowsort
SELECT DISTINCT ( - 80 ) AS col0
----
-80

query I rowsort
SELECT ALL - 8 * + 3
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-1518
SELECT - 11 + - 47 - - NULLIF ( + 44, NULLIF ( COUNT( * ), COUNT( * ) ) + - 88 ) + - COUNT( * ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-1518
SELECT - 11 + - 47 - - NULLIF ( + 44, NULLIF ( COUNT ( * ), COUNT ( * ) ) + - 88 ) + - COUNT ( * ) AS col1
----
-15

query I rowsort
SELECT ALL NULLIF ( + - ( 3 ), + 28 + - + 34 * + 68 )
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1520
SELECT DISTINCT CASE + COALESCE ( 34, 84 / + ( + - 50 ), COALESCE ( - 65, - ( 66 ) ) * + 62 - 27 * 8 ) WHEN - CASE WHEN NOT ( - 76 ) NOT BETWEEN 56 AND ( + 40 / + 98 ) THEN NULL ELSE + 54 * 13 - + COUNT( * ) END THEN NULL WHEN - MIN( ALL - 14 ) + + ( - ( + 14 ) - + 75 ) THEN - 91 * CASE 47 WHEN 14 THEN NULL WHEN + 58 THEN 77 * NULLIF ( - 61, + 47 ) END WHEN - CAST( 46 AS SIGNED ) THEN COALESCE ( ( 69 ), NULLIF ( + 93, 4 + - 25 * 1 ) ) * - 66 + COUNT( * ) * - 65 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1520
SELECT DISTINCT CASE + COALESCE ( 34, 84 / + ( + - 50 ), COALESCE ( - 65, - ( 66 ) ) * + 62 - 27 * 8 ) WHEN - CASE WHEN NOT ( - 76 ) NOT BETWEEN 56 AND ( + 40 / + 98 ) THEN NULL ELSE + 54 * 13 - + COUNT ( * ) END THEN NULL WHEN - MIN ( ALL - 14 ) + + ( - ( + 14 ) - + 75 ) THEN - 91 * CASE 47 WHEN 14 THEN NULL WHEN + 58 THEN 77 * NULLIF ( - 61, + 47 ) END WHEN - CAST ( 46 AS INTEGER ) THEN COALESCE ( ( 69 ), NULLIF ( + 93, 4 + - 25 * 1 ) ) * - 66 + COUNT ( * ) * - 65 END
----
NULL

query II rowsort
SELECT - 63 AS col0, 21 - + + 22 - - NULLIF ( - 7, - 94 * 28 + ( - ( 19 ) + 76 ) ) AS col0
----
-63
-8

query I rowsort
SELECT + 45 + + 12 - - 98 * - - 24 + - 86
----
2323

query I rowsort
SELECT - - 85 + - 19
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1524
SELECT DISTINCT NULLIF ( 76, + MIN( - 83 ) )
----
76

skipif mysql # not compatible
query I rowsort label-1524
SELECT DISTINCT NULLIF ( 76, + MIN ( - 83 ) )
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1525
SELECT ALL - - 93 * COALESCE ( - - 40, - - CAST( NULL AS SIGNED ) ) col0
----
3720

skipif mysql # not compatible
query I rowsort label-1525
SELECT ALL - - 93 * COALESCE ( - - 40, - - CAST ( NULL AS INTEGER ) ) col0
----
3720

query I rowsort
SELECT - CASE - - 79 WHEN 7 THEN 9 WHEN 70 * - 30 THEN CASE WHEN NULL IS NULL THEN - 67 END ELSE NULL END * + 9 AS col0
----
NULL

query I rowsort
SELECT - + 10 + - 15 - 56
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-1528
SELECT + COALESCE ( 39, - COUNT( * ) + + 77 )
----
39

skipif mysql # not compatible
query I rowsort label-1528
SELECT + COALESCE ( 39, - COUNT ( * ) + + 77 )
----
39

query I rowsort
SELECT DISTINCT - 88 + COALESCE ( ( - 45 ), 36 + + 35 * 2 ) * - 13 AS col1
----
497

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1530
SELECT - + COUNT( * ) + 63 + - 35 * - 90 * 56 - CAST( NULL AS SIGNED ) * 26 / + NULLIF ( 54, 67 * COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1530
SELECT - + COUNT ( * ) + 63 + - 35 * - 90 * 56 - CAST ( NULL AS INTEGER ) * 26 / + NULLIF ( 54, 67 * COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1531
SELECT COALESCE ( - NULLIF ( + 58, 61 ), + 99 * 71 + COUNT( * ) DIV COUNT( * ) ) AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-1531
SELECT COALESCE ( - NULLIF ( + 58, 61 ), + 99 * 71 + COUNT ( * ) / COUNT ( * ) ) AS col1
----
-58

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

skipif mysql # not compatible
query I rowsort label-1532
SELECT ALL - - 93 + + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1533
SELECT - - CAST( + 19 AS SIGNED ) + + 35 * 4 * + + 36 + - + 78
----
4981

skipif mysql # not compatible
query I rowsort label-1533
SELECT - - CAST ( + 19 AS INTEGER ) + + 35 * 4 * + + 36 + - + 78
----
4981

query I rowsort
SELECT ALL - 44 * - - 60
----
-2640

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1535
SELECT DISTINCT - COALESCE ( - ( CAST( - + 14 AS SIGNED ) ), + 82, + 12 + 29 ) + ( + 81 - + 46 ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-1535
SELECT DISTINCT - COALESCE ( - ( CAST ( - + 14 AS INTEGER ) ), + 82, + 12 + 29 ) + ( + 81 - + 46 ) AS col1
----
21

onlyif mysql # DIV for integer division: 
query II rowsort label-1536
SELECT ALL 74, 72 + + 44 DIV - 43 AS col1
----
74
71

skipif mysql # not compatible
query II rowsort label-1536
SELECT ALL 74, 72 + + 44 / - 43 AS col1
----
74
71

onlyif mysql # aggregate syntax: 
query I rowsort label-1537
SELECT ALL + 6 / 56 * CASE WHEN NOT COUNT( * ) IS NULL THEN NULL ELSE - - 67 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1537
SELECT ALL + 6 / 56 * CASE WHEN NOT COUNT ( * ) IS NULL THEN NULL ELSE - - 67 END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1538
SELECT - 22 DIV + 50 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1538
SELECT - 22 / + 50 AS col1
----
0

query II rowsort
SELECT ALL - 95 + + 22 AS col1, 17
----
-73
17

onlyif mysql # DIV for integer division: 
query II rowsort label-1540
SELECT DISTINCT - 40 AS col2, 89 DIV 59
----
-40
1

skipif mysql # not compatible
query II rowsort label-1540
SELECT DISTINCT - 40 AS col2, 89 / 59
----
-40
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1541
SELECT - - 91 DIV - - COUNT( 32 ) + - - 89 DIV - SUM( DISTINCT + + 77 )
----
90

skipif mysql # not compatible
query I rowsort label-1541
SELECT - - 91 / - - COUNT ( 32 ) + - - 89 / - SUM ( DISTINCT + + 77 )
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1542
SELECT - 88 DIV MIN( DISTINCT - + 4 ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-1542
SELECT - 88 / MIN ( DISTINCT - + 4 ) AS col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-1543
SELECT + - 34 + - - MIN( DISTINCT + 47 ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-1543
SELECT + - 34 + - - MIN ( DISTINCT + 47 ) AS col0
----
13

query II rowsort
SELECT + + ( - 20 ) AS col0, - 51 * + 74 - + 67 * - 13
----
-20
-2903

query I rowsort
SELECT DISTINCT ( 77 ) * - - 37
----
2849

onlyif mysql # aggregate syntax: 
query II rowsort label-1546
SELECT ALL + 81 AS col0, + 11 + + COALESCE ( + ( - COUNT( * ) ), ( 72 ), - 69 ) AS col0
----
81
10

skipif mysql # not compatible
query II rowsort label-1546
SELECT ALL + 81 AS col0, + 11 + + COALESCE ( + ( - COUNT ( * ) ), ( 72 ), - 69 ) AS col0
----
81
10

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

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

query I rowsort
SELECT ALL + CASE - 65 WHEN - 44 THEN + + 75 END
----
NULL

query I rowsort
SELECT DISTINCT - ( 2 ) * 79
----
-158

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1550
SELECT CAST( ( + 12 ) AS SIGNED ), 13 + COUNT( - - 74 ) AS col1
----
12
14

skipif mysql # not compatible
query II rowsort label-1550
SELECT CAST ( ( + 12 ) AS INTEGER ), 13 + COUNT ( - - 74 ) AS col1
----
12
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1551
SELECT CAST( - NULLIF ( - - NULLIF ( 92, + ( - 45 ) ), + COUNT( * ) ) AS SIGNED ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-1551
SELECT CAST ( - NULLIF ( - - NULLIF ( 92, + ( - 45 ) ), + COUNT ( * ) ) AS INTEGER ) AS col1
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1552
SELECT DISTINCT 49 * + - CASE + - AVG ( 10 ) WHEN + + CAST( NULL AS SIGNED ) THEN - - 43 WHEN COUNT( * ) + - 91 THEN NULL ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1552
SELECT DISTINCT 49 * + - CASE + - AVG ( 10 ) WHEN + + CAST ( NULL AS INTEGER ) THEN - - 43 WHEN COUNT ( * ) + - 91 THEN NULL ELSE NULL END col1
----
NULL

query I rowsort
SELECT - 72 - 2
----
-74

query I rowsort
SELECT + 78 * + 96
----
7488

query I rowsort
SELECT + 89 * 19
----
1691

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1556
SELECT ( 17 ) * 54 + - 42 - 10 AS col0, 18 DIV NULLIF ( + 60, 70 + 65 * - CASE + 92 WHEN 7 THEN NULLIF ( - 52, 48 * + 50 ) WHEN COUNT( * ) * CAST( - 86 AS SIGNED ) - + 76 THEN NULL ELSE NULL END )
----
866
0

skipif mysql # not compatible
query II rowsort label-1556
SELECT ( 17 ) * 54 + - 42 - 10 AS col0, 18 / NULLIF ( + 60, 70 + 65 * - CASE + 92 WHEN 7 THEN NULLIF ( - 52, 48 * + 50 ) WHEN COUNT ( * ) * CAST ( - 86 AS INTEGER ) - + 76 THEN NULL ELSE NULL END )
----
866
0

query I rowsort
SELECT + 96 * - 76 + 13 * + 51 AS col0
----
-6633

onlyif mysql # DIV for integer division: 
query I rowsort label-1558
SELECT 52 DIV 32
----
1

skipif mysql # not compatible
query I rowsort label-1558
SELECT 52 / 32
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1559
SELECT + 96 * COUNT( * ) * + 3 - + 97 * 70 AS col2
----
-6502

skipif mysql # not compatible
query I rowsort label-1559
SELECT + 96 * COUNT ( * ) * + 3 - + 97 * 70 AS col2
----
-6502

onlyif mysql # DIV for integer division: 
query I rowsort label-1560
SELECT DISTINCT 83 DIV 45
----
1

skipif mysql # not compatible
query I rowsort label-1560
SELECT DISTINCT 83 / 45
----
1

query I rowsort
SELECT ALL + 76 * 81 AS col2
----
6156

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1562
SELECT CASE 95 WHEN CAST( NULL AS SIGNED ) THEN - - 74 END / CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1562
SELECT CASE 95 WHEN CAST ( NULL AS INTEGER ) THEN - - 74 END / CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL 18 + 53 + - - 27 AS col2
----
98

query I rowsort
SELECT DISTINCT 35 * + 37 * 24 * - 7
----
-217560

onlyif mysql # aggregate syntax: 
query I rowsort label-1565
SELECT DISTINCT 11 * 29 * - COUNT( * )
----
-319

skipif mysql # not compatible
query I rowsort label-1565
SELECT DISTINCT 11 * 29 * - COUNT ( * )
----
-319

onlyif mysql # aggregate syntax: 
query I rowsort label-1566
SELECT ALL 70 * + - 1 * COUNT( * ) AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-1566
SELECT ALL 70 * + - 1 * COUNT ( * ) AS col1
----
-70

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

query I rowsort
SELECT ALL - + ( + 36 ) + + 11
----
-25

query I rowsort
SELECT DISTINCT 35 * + 52
----
1820

query I rowsort
SELECT DISTINCT - - 90 + - + 61 * + - 68
----
4238

onlyif mysql # aggregate syntax: 
query I rowsort label-1571
SELECT DISTINCT - - COUNT( * ) + 13 + + 56 - NULLIF ( 57, - NULLIF ( ( + 4 ), - 30 * + 51 ) ) * 7
----
-329

skipif mysql # not compatible
query I rowsort label-1571
SELECT DISTINCT - - COUNT ( * ) + 13 + + 56 - NULLIF ( 57, - NULLIF ( ( + 4 ), - 30 * + 51 ) ) * 7
----
-329

query I rowsort
SELECT 83 + + 99
----
182

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

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

query I rowsort
SELECT + 73 + - - 1 * + + 0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-1575
SELECT ALL + + 73 - + MIN( - 74 ) AS col1
----
147

skipif mysql # not compatible
query I rowsort label-1575
SELECT ALL + + 73 - + MIN ( - 74 ) AS col1
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-1576
SELECT 6 * + + 49 * NULLIF ( - CASE + - 14 WHEN + + ( - 55 ) THEN COUNT( ALL 48 ) WHEN 13 + + MIN( - 38 ) THEN NULL ELSE - 31 END, + 56 ) AS col2
----
9114

skipif mysql # not compatible
query I rowsort label-1576
SELECT 6 * + + 49 * NULLIF ( - CASE + - 14 WHEN + + ( - 55 ) THEN COUNT ( ALL 48 ) WHEN 13 + + MIN ( - 38 ) THEN NULL ELSE - 31 END, + 56 ) AS col2
----
9114

onlyif mysql # aggregate syntax: 
query I rowsort label-1577
SELECT ALL SUM( DISTINCT - ( ( + - ( - + 51 ) ) ) ) * + 77 + + 20 * - 64 AS col2
----
-5207

skipif mysql # not compatible
query I rowsort label-1577
SELECT ALL SUM ( DISTINCT - ( ( + - ( - + 51 ) ) ) ) * + 77 + + 20 * - 64 AS col2
----
-5207

onlyif mysql # aggregate syntax: 
query I rowsort label-1578
SELECT 3 * - 10 + - 5 + - COUNT( * ) + - ( + - 71 ) + + 11 + 41
----
87

skipif mysql # not compatible
query I rowsort label-1578
SELECT 3 * - 10 + - 5 + - COUNT ( * ) + - ( + - 71 ) + + 11 + 41
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1579
SELECT ALL + - 81 - SUM( DISTINCT 63 ) AS col2
----
-144

skipif mysql # not compatible
query I rowsort label-1579
SELECT ALL + - 81 - SUM ( DISTINCT 63 ) AS col2
----
-144

query I rowsort
SELECT 43 * 22 AS col0
----
946

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1581
SELECT 46 + CAST( + 11 AS SIGNED ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-1581
SELECT 46 + CAST ( + 11 AS INTEGER ) AS col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1582
SELECT DISTINCT - CASE COUNT( * ) WHEN - 63 THEN + 0 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1582
SELECT DISTINCT - CASE COUNT ( * ) WHEN - 63 THEN + 0 END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1583
SELECT ALL - 88, + 41 * 51 DIV + + ( - 63 ) AS col1
----
-88
-33

skipif mysql # not compatible
query II rowsort label-1583
SELECT ALL - 88, + 41 * 51 / + + ( - 63 ) AS col1
----
-88
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1584
SELECT - ( + + 49 ) * ( - + 19 ) * - + 86 + + CASE CASE WHEN NOT ( NULL ) IS NOT NULL THEN + 66 END WHEN COUNT( * ) / NULLIF ( 60, COALESCE ( + CAST( NULL AS SIGNED ), - 96 * 35 + - 38 * + 82, + 19 ) ) THEN ( 89 ) / + 44 + 1 * + 88 WHEN - 7 + - 99 * - 82 THEN - 31 * + 82 - - NULLIF ( ( - 91 ), 88 / + ( - ( 40 ) / - COUNT( * ) ) + + 55 * + 21 ) / - 74 WHEN - COALESCE ( 70, + 65 * + 65, + COUNT( * ) ) * CASE - 93 * 81 WHEN + SUM( ALL 7 ) THEN 57 WHEN 86 - - CAST( + 66 AS SIGNED ) THEN NULL END THEN 76 + + 34 ELSE 5 * 19 + CASE 35 WHEN - ( + 14 ) - ( - COUNT( * ) + + 80 / 52 ) * - 18 THEN + COUNT( * ) * 36 - 30 WHEN - 47 THEN 17 END END + + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-1584
SELECT - ( + + 49 ) * ( - + 19 ) * - + 86 + + CASE CASE WHEN NOT ( NULL ) IS NOT NULL THEN + 66 END WHEN COUNT ( * ) / NULLIF ( 60, COALESCE ( + CAST ( NULL AS INTEGER ), - 96 * 35 + - 38 * + 82, + 19 ) ) THEN ( 89 ) / + 44 + 1 * + 88 WHEN - 7 + - 99 * - 82 THEN - 31 * + 82 - - NULLIF ( ( - 91 ), 88 / + ( - ( 40 ) / - COUNT ( * ) ) + + 55 * + 21 ) / - 74 WHEN - COALESCE ( 70, + 65 * + 65, + COUNT ( * ) ) * CASE - 93 * 81 WHEN + SUM ( ALL 7 ) THEN 57 WHEN 86 - - CAST ( + 66 AS INTEGER ) THEN NULL END THEN 76 + + 34 ELSE 5 * 19 + CASE 35 WHEN - ( + 14 ) - ( - COUNT ( * ) + + 80 / 52 ) * - 18 THEN + COUNT ( * ) * 36 - 30 WHEN - 47 THEN 17 END END + + 51
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1585
SELECT SUM( - - 34 ) - - 9
----
43

skipif mysql # not compatible
query I rowsort label-1585
SELECT SUM ( - - 34 ) - - 9
----
43

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

skipif mysql # not compatible
query I rowsort label-1586
SELECT ALL + CAST ( NULL AS INTEGER ) / - 14
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1587
SELECT 16 DIV - + 77 + - + 55 AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-1587
SELECT 16 / - + 77 + - + 55 AS col0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-1588
SELECT COUNT( DISTINCT - 48 ) * + 27 - - 56 + 41 AS col0
----
124

skipif mysql # not compatible
query I rowsort label-1588
SELECT COUNT ( DISTINCT - 48 ) * + 27 - - 56 + 41 AS col0
----
124

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

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

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

skipif mysql # not compatible
query I rowsort label-1590
SELECT + 92 * + CAST ( NULL AS INTEGER ) + 27
----
NULL

query I rowsort
SELECT ALL 36 * - 50
----
-1800

onlyif mysql # aggregate syntax: 
query I rowsort label-1592
SELECT DISTINCT 95 * COALESCE ( 1, + NULLIF ( + + 96, - - 71 ) ) * - - COUNT( * )
----
95

skipif mysql # not compatible
query I rowsort label-1592
SELECT DISTINCT 95 * COALESCE ( 1, + NULLIF ( + + 96, - - 71 ) ) * - - COUNT ( * )
----
95

query II rowsort
SELECT 61 + 83 + + 72 AS col0, - 48 + - + 33 + - 33 * - + 24 AS col0
----
216
711

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1594
SELECT ALL 30 * COALESCE ( 82, 38, SUM( 70 ) ), + 81 DIV + COALESCE ( COUNT( * ), - 33 ) - 3 * 97 AS col0
----
2460
-210

skipif mysql # not compatible
query II rowsort label-1594
SELECT ALL 30 * COALESCE ( 82, 38, SUM ( 70 ) ), + 81 / + COALESCE ( COUNT ( * ), - 33 ) - 3 * 97 AS col0
----
2460
-210

query I rowsort
SELECT 68 * 99
----
6732

query I rowsort
SELECT DISTINCT 65 + + + 35 - - 78
----
178

query II rowsort
SELECT 30 AS col2, + ( - 51 ) col1
----
30
-51

query I rowsort
SELECT ALL 94 + 29 AS col0
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-1599
SELECT 58 + - + MIN( ALL - + 38 )
----
96

skipif mysql # not compatible
query I rowsort label-1599
SELECT 58 + - + MIN ( ALL - + 38 )
----
96

query II rowsort
SELECT ALL - 32 AS col2, 9
----
-32
9

query I rowsort
SELECT 67 + ( - 91 )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-1602
SELECT ALL 88 + 48 + + 50 + COUNT( * ) - 81 * 94 + 65 * + 85
----
-1902

skipif mysql # not compatible
query I rowsort label-1602
SELECT ALL 88 + 48 + + 50 + COUNT ( * ) - 81 * 94 + 65 * + 85
----
-1902

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1604
SELECT MIN( DISTINCT + - 71 ) + - COUNT( * ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-1604
SELECT MIN ( DISTINCT + - 71 ) + - COUNT ( * ) AS col2
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-1605
SELECT DISTINCT + ( + 19 ) DIV - - 88
----
0

skipif mysql # not compatible
query I rowsort label-1605
SELECT DISTINCT + ( + 19 ) / - - 88
----
0

query I rowsort
SELECT DISTINCT + 61 + - 42 AS col2
----
19

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

skipif mysql # not compatible
query I rowsort label-1607
SELECT 42 * + - ( COUNT ( * ) ) / + 59 AS col1
----
0

query I rowsort
SELECT ALL 7 * - NULLIF ( + 95, - 2 * + 59 + - 45 + + - 92 )
----
-665

onlyif mysql # aggregate syntax: 
query I rowsort label-1609
SELECT SUM( 62 ) + 97 * + - 16
----
-1490

skipif mysql # not compatible
query I rowsort label-1609
SELECT SUM ( 62 ) + 97 * + - 16
----
-1490

query I rowsort
SELECT ALL + 28 + + 84
----
112

query I rowsort
SELECT ALL - 47 - - 47
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1612
SELECT + COUNT( * ) * - MIN( + + 73 ) + 86 col0, + 69 - 55 + - + 11 + ( SUM( DISTINCT CAST( + ( + 27 ) AS SIGNED ) ) ) AS col1
----
13
30

skipif mysql # not compatible
query II rowsort label-1612
SELECT + COUNT ( * ) * - MIN ( + + 73 ) + 86 col0, + 69 - 55 + - + 11 + ( SUM ( DISTINCT CAST ( + ( + 27 ) AS INTEGER ) ) ) AS col1
----
13
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1613
SELECT ALL - NULLIF ( COALESCE ( + + 62, 52 + NULLIF ( + + 72, COUNT( + 83 ) * - COUNT( * ) - + NULLIF ( 45 + - 72 * 18, 40 ) * - 39 ) ), + COUNT( * ) ) * - 99 AS col0
----
6138

skipif mysql # not compatible
query I rowsort label-1613
SELECT ALL - NULLIF ( COALESCE ( + + 62, 52 + NULLIF ( + + 72, COUNT ( + 83 ) * - COUNT ( * ) - + NULLIF ( 45 + - 72 * 18, 40 ) * - 39 ) ), + COUNT ( * ) ) * - 99 AS col0
----
6138

onlyif mysql # aggregate syntax: 
query II rowsort label-1614
SELECT DISTINCT 42 AS col2, MAX( + 23 ) AS col0
----
42
23

skipif mysql # not compatible
query II rowsort label-1614
SELECT DISTINCT 42 AS col2, MAX ( + 23 ) AS col0
----
42
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1615
SELECT ALL CASE - 47 WHEN 14 THEN - - 62 END - + COUNT( * ) * - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-1615
SELECT ALL CASE - 47 WHEN 14 THEN - - 62 END - + COUNT ( * ) * - 48
----
NULL

query I rowsort
SELECT 88 + 14 AS col2
----
102

onlyif mysql # DIV for integer division: 
query I rowsort label-1617
SELECT - 79 DIV - 51
----
1

skipif mysql # not compatible
query I rowsort label-1617
SELECT - 79 / - 51
----
1

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1620
SELECT NULLIF ( + - COUNT( * ), + 49 ) DIV - MIN( - 96 ) + - 37
----
-37

skipif mysql # not compatible
query I rowsort label-1620
SELECT NULLIF ( + - COUNT ( * ), + 49 ) / - MIN ( - 96 ) + - 37
----
-37

query I rowsort
SELECT ALL + 12 * + 28 AS col1
----
336

onlyif mysql # aggregate syntax: 
query I rowsort label-1622
SELECT - ( + + ( + NULLIF ( + 59, SUM( DISTINCT CASE ( - - CASE - - 65 WHEN 70 THEN + 48 END ) WHEN - 7 THEN + 68 END ) ) ) ) * 30
----
-1770

skipif mysql # not compatible
query I rowsort label-1622
SELECT - ( + + ( + NULLIF ( + 59, SUM ( DISTINCT CASE ( - - CASE - - 65 WHEN 70 THEN + 48 END ) WHEN - 7 THEN + 68 END ) ) ) ) * 30
----
-1770

onlyif mysql # aggregate syntax: 
query I rowsort label-1623
SELECT 85 * - CASE - 1 WHEN - 80 + COUNT( DISTINCT - 87 ) * + 30 THEN - 1 WHEN - 55 + COUNT( * ) THEN NULL ELSE NULL END + + 88 * 43
----
NULL

skipif mysql # not compatible
query I rowsort label-1623
SELECT 85 * - CASE - 1 WHEN - 80 + COUNT ( DISTINCT - 87 ) * + 30 THEN - 1 WHEN - 55 + COUNT ( * ) THEN NULL ELSE NULL END + + 88 * 43
----
NULL

query I rowsort
SELECT DISTINCT + 94 * 84 * 43
----
339528

onlyif mysql # aggregate syntax: 
query I rowsort label-1625
SELECT ALL 69 * 4 + + COUNT( * )
----
277

skipif mysql # not compatible
query I rowsort label-1625
SELECT ALL 69 * 4 + + COUNT ( * )
----
277

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1626
SELECT DISTINCT + ( - 45 ) * - 3 - CAST( NULL AS SIGNED ) + 12 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1626
SELECT DISTINCT + ( - 45 ) * - 3 - CAST ( NULL AS INTEGER ) + 12 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1627
SELECT + 88 DIV - 88 + - 44
----
-45

skipif mysql # not compatible
query I rowsort label-1627
SELECT + 88 / - 88 + - 44
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-1628
SELECT ALL 69 * - MAX( DISTINCT 75 ) * + + 81 + - 45 * - 72 * + 4 * - - 48 * - 29 + - 26 * - 87 AS col1
----
-18457233

skipif mysql # not compatible
query I rowsort label-1628
SELECT ALL 69 * - MAX ( DISTINCT 75 ) * + + 81 + - 45 * - 72 * + 4 * - - 48 * - 29 + - 26 * - 87 AS col1
----
-18457233

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1629
SELECT DISTINCT + COALESCE ( CAST( - 66 AS SIGNED ), - 51 * 6 * - - 84 + + 32 + - + ( - COALESCE ( 40, CASE + COUNT( * ) WHEN 86 THEN + COUNT( * ) WHEN + COUNT( ( 0 ) ) THEN NULL END, 44 + - 68 ) ) + 47 * 8 )
----
-66

skipif mysql # not compatible
query I rowsort label-1629
SELECT DISTINCT + COALESCE ( CAST ( - 66 AS INTEGER ), - 51 * 6 * - - 84 + + 32 + - + ( - COALESCE ( 40, CASE + COUNT ( * ) WHEN 86 THEN + COUNT ( * ) WHEN + COUNT ( ( 0 ) ) THEN NULL END, 44 + - 68 ) ) + 47 * 8 )
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-1630
SELECT DISTINCT 19 * 64 + + 68 - + 3 + + COALESCE ( - 61, + 18 + + 11 DIV - 9 - - 93 ) * 93 AS col1
----
-4392

skipif mysql # not compatible
query I rowsort label-1630
SELECT DISTINCT 19 * 64 + + 68 - + 3 + + COALESCE ( - 61, + 18 + + 11 / - 9 - - 93 ) * 93 AS col1
----
-4392

onlyif mysql # aggregate syntax: 
query I rowsort label-1631
SELECT ALL + ( - - COALESCE ( - + COALESCE ( - 16, - 17 ), SUM( ALL + 80 ) ) )
----
16

skipif mysql # not compatible
query I rowsort label-1631
SELECT ALL + ( - - COALESCE ( - + COALESCE ( - 16, - 17 ), SUM ( ALL + 80 ) ) )
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1632
SELECT - NULLIF ( - 53, - - 21 + + 15 ) DIV + COUNT( * ) + COALESCE ( - 92, - + 55 * + - CASE - SUM( ALL 96 ) WHEN - 36 THEN - 99 * - 13 END + ( - 99 + - COUNT( * ) ) ) DIV 38
----
51

skipif mysql # not compatible
query I rowsort label-1632
SELECT - NULLIF ( - 53, - - 21 + + 15 ) / + COUNT ( * ) + COALESCE ( - 92, - + 55 * + - CASE - SUM ( ALL 96 ) WHEN - 36 THEN - 99 * - 13 END + ( - 99 + - COUNT ( * ) ) ) / 38
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1633
SELECT DISTINCT 87 * COALESCE ( - 74, + - 44, + ( + COALESCE ( + 88, - + 53, + - CAST( + 42 AS SIGNED ) ) ) * - NULLIF ( - 27 + + COALESCE ( 1 + - 58, + 79 ), 88 - 36 ), - 77 ) + - CASE ( - 47 ) WHEN - 92 THEN NULL WHEN 31 THEN NULLIF ( 20, 53 * + 3 ) + NULLIF ( + ( 6 ) + 42, 2 + 86 ) END / 58 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1633
SELECT DISTINCT 87 * COALESCE ( - 74, + - 44, + ( + COALESCE ( + 88, - + 53, + - CAST ( + 42 AS INTEGER ) ) ) * - NULLIF ( - 27 + + COALESCE ( 1 + - 58, + 79 ), 88 - 36 ), - 77 ) + - CASE ( - 47 ) WHEN - 92 THEN NULL WHEN 31 THEN NULLIF ( 20, 53 * + 3 ) + NULLIF ( + ( 6 ) + 42, 2 + 86 ) END / 58 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 56 * + - 95 * - + 0 + 61 AS col1
----
61

onlyif mysql # DIV for integer division: 
query II rowsort label-1635
SELECT ALL - 50 DIV + 90 AS col0, - 66 AS col2
----
0
-66

skipif mysql # not compatible
query II rowsort label-1635
SELECT ALL - 50 / + 90 AS col0, - 66 AS col2
----
0
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-1636
SELECT 77 * + 50 + + + COUNT( * ) AS col0
----
3851

skipif mysql # not compatible
query I rowsort label-1636
SELECT 77 * + 50 + + + COUNT ( * ) AS col0
----
3851

query I rowsort
SELECT ALL - 25 * + ( - 9 ) * + + 19 * - - 64 + - ( 85 ) + + 90 AS col1
----
273605

query I rowsort
SELECT ALL + 77 * + + ( + 30 ) AS col2
----
2310

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1639
SELECT - + COALESCE ( + 1, - 59 ) * + - SUM( + 34 ) + + ( + - ( ( + 2 ) ) ) DIV + 70 AS col0
----
34

skipif mysql # not compatible
query I rowsort label-1639
SELECT - + COALESCE ( + 1, - 59 ) * + - SUM ( + 34 ) + + ( + - ( ( + 2 ) ) ) / + 70 AS col0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1640
SELECT DISTINCT 57 * + 74 * - 84 + 97 * - 65 + - CASE 5 WHEN + 46 * + 60 / - COUNT( * ) + - COUNT( ALL + 94 ) THEN NULL WHEN 95 - - 99 THEN NULL ELSE 90 END * - 86 AS col0
----
-352877

skipif mysql # not compatible
query I rowsort label-1640
SELECT DISTINCT 57 * + 74 * - 84 + 97 * - 65 + - CASE 5 WHEN + 46 * + 60 / - COUNT ( * ) + - COUNT ( ALL + 94 ) THEN NULL WHEN 95 - - 99 THEN NULL ELSE 90 END * - 86 AS col0
----
-352877

onlyif mysql # aggregate syntax: 
query I rowsort label-1641
SELECT + ( - SUM( DISTINCT + 24 ) ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-1641
SELECT + ( - SUM ( DISTINCT + 24 ) ) AS col1
----
-24

query I rowsort
SELECT ALL - 57 - - 90 * 21 + + - 25 * + - 56 AS col1
----
3233

onlyif mysql # aggregate syntax: 
query II rowsort label-1643
SELECT ALL + 99 * - 85 AS col2, - COUNT( * ) col2
----
-8415
-1

skipif mysql # not compatible
query II rowsort label-1643
SELECT ALL + 99 * - 85 AS col2, - COUNT ( * ) col2
----
-8415
-1

query I rowsort
SELECT ALL ( - 56 ) - 26
----
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1645
SELECT ALL - COALESCE ( - COUNT( * ), 9 DIV - + MIN( DISTINCT 89 ) * + 75 + 83 + + ( + COALESCE ( COUNT( * ), + COUNT( * ) ) ) * + 7 ) - + 7
----
-6

skipif mysql # not compatible
query I rowsort label-1645
SELECT ALL - COALESCE ( - COUNT ( * ), 9 / - + MIN ( DISTINCT 89 ) * + 75 + 83 + + ( + COALESCE ( COUNT ( * ), + COUNT ( * ) ) ) * + 7 ) - + 7
----
-6

query I rowsort
SELECT + + 36 - 19 AS col0
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-1647
SELECT + CASE + 23 WHEN - 89 THEN 2 ELSE 44 DIV - 56 * + - 28 * - - 59 - - 13 + + 58 * - 0 * + 89 END * 19 AS col0
----
247

skipif mysql # not compatible
query I rowsort label-1647
SELECT + CASE + 23 WHEN - 89 THEN 2 ELSE 44 / - 56 * + - 28 * - - 59 - - 13 + + 58 * - 0 * + 89 END * 19 AS col0
----
247

onlyif mysql # DIV for integer division: 
query I rowsort label-1648
SELECT ALL - 66 DIV - 81
----
0

skipif mysql # not compatible
query I rowsort label-1648
SELECT ALL - 66 / - 81
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1650
SELECT DISTINCT - ( + + 66 ) DIV - + 12 col0
----
5

skipif mysql # not compatible
query I rowsort label-1650
SELECT DISTINCT - ( + + 66 ) / - + 12 col0
----
5

query I rowsort
SELECT + - 11 * - 71 AS col0
----
781

onlyif mysql # aggregate syntax: 
query I rowsort label-1652
SELECT - COUNT( * ) + - 19 + - - 41 AS col2
----
21

skipif mysql # not compatible
query I rowsort label-1652
SELECT - COUNT ( * ) + - 19 + - - 41 AS col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-1653
SELECT + 57 + - 6 + - - 18 + + MIN( 82 ) * + - 90 AS col0
----
-7311

skipif mysql # not compatible
query I rowsort label-1653
SELECT + 57 + - 6 + - - 18 + + MIN ( 82 ) * + - 90 AS col0
----
-7311

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1654
SELECT + 90 * CAST( 49 AS SIGNED ) AS col2
----
4410

skipif mysql # not compatible
query I rowsort label-1654
SELECT + 90 * CAST ( 49 AS INTEGER ) AS col2
----
4410

query I rowsort
SELECT + 55 * 10
----
550

query I rowsort
SELECT - NULLIF ( - ( + 90 ), - - 55 ) AS col0
----
90

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

skipif mysql # not compatible
query I rowsort label-1657
SELECT - 72 / 77
----
0

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

skipif mysql # not compatible
query I rowsort label-1658
SELECT + COUNT ( * ) + + 85 * + 83 + - 24 AS col0
----
7032

query I rowsort
SELECT 17 * + + 89 + - - 37
----
1550

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1660
SELECT ALL CAST( 90 AS SIGNED ) DIV + 40 + 67
----
69

skipif mysql # not compatible
query I rowsort label-1660
SELECT ALL CAST ( 90 AS INTEGER ) / + 40 + 67
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1661
SELECT ALL 96 DIV + 42 + - + 6 + - - 69 * - + 95 AS col1, + NULLIF ( + - 3, + SUM( ALL 10 ) DIV - COUNT( * ) ) * 57
----
-6559
-171

skipif mysql # not compatible
query II rowsort label-1661
SELECT ALL 96 / + 42 + - + 6 + - - 69 * - + 95 AS col1, + NULLIF ( + - 3, + SUM ( ALL 10 ) / - COUNT ( * ) ) * 57
----
-6559
-171

query II rowsort
SELECT DISTINCT + 10 AS col1, + 41
----
10
41

query I rowsort
SELECT ALL 34 / - 44 + CASE WHEN NOT 84 IS NOT NULL THEN + 17 END AS col2
----
NULL

query I rowsort
SELECT ( - - 97 ) AS col1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1665
SELECT + COUNT( * ) * - - 71 + - 59 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-1665
SELECT + COUNT ( * ) * - - 71 + - 59 AS col0
----
12

query I rowsort
SELECT DISTINCT ( + 83 ) * - - 90 + - 15 AS col2
----
7455

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1667
SELECT ALL 46 * - NULLIF ( + - ( - - 33 ), - COUNT( * ) + - 56 * + 76 ) * + CAST( NULL AS SIGNED ) + - 55 * + MIN( 54 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1667
SELECT ALL 46 * - NULLIF ( + - ( - - 33 ), - COUNT ( * ) + - 56 * + 76 ) * + CAST ( NULL AS INTEGER ) + - 55 * + MIN ( 54 )
----
NULL

query I rowsort
SELECT + 29 * + 34 AS col2
----
986

query I rowsort
SELECT ALL - 45 * - 56 AS col2
----
2520

onlyif mysql # aggregate syntax: 
query II rowsort label-1670
SELECT DISTINCT + 70 AS col2, COUNT( * ) * - NULLIF ( + 6, + 71 ) + + + NULLIF ( - + 73, - - COUNT( * ) + 58 ) col2
----
70
-79

skipif mysql # not compatible
query II rowsort label-1670
SELECT DISTINCT + 70 AS col2, COUNT ( * ) * - NULLIF ( + 6, + 71 ) + + + NULLIF ( - + 73, - - COUNT ( * ) + 58 ) col2
----
70
-79

query I rowsort
SELECT - 75 * 31 * NULLIF ( 21, - 89 ) * + 92 + + - 87
----
-4491987

onlyif mysql # aggregate syntax: 
query I rowsort label-1672
SELECT ALL - 68 * COUNT( * ) - + 37 * + + 71 AS col0
----
-2695

skipif mysql # not compatible
query I rowsort label-1672
SELECT ALL - 68 * COUNT ( * ) - + 37 * + + 71 AS col0
----
-2695

query I rowsort
SELECT - 59 * + 74
----
-4366

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1674
SELECT NULLIF ( - + 86, ( - 69 ) ) * + 91 * - - 2 + + SUM( DISTINCT - + CAST( + 30 AS SIGNED ) ) + + 20 + 11 * - 85 AS col2
----
-16597

skipif mysql # not compatible
query I rowsort label-1674
SELECT NULLIF ( - + 86, ( - 69 ) ) * + 91 * - - 2 + + SUM ( DISTINCT - + CAST ( + 30 AS INTEGER ) ) + + 20 + 11 * - 85 AS col2
----
-16597

query I rowsort
SELECT + + 31 + + + 69
----
100

query II rowsort
SELECT - 37 * + - 79 - + - 7, - 18 AS col1
----
2930
-18

onlyif mysql # DIV for integer division: 
query II rowsort label-1677
SELECT DISTINCT + - 68 * 36 - + 12, 58 DIV - 94 AS col0
----
-2460
0

skipif mysql # not compatible
query II rowsort label-1677
SELECT DISTINCT + - 68 * 36 - + 12, 58 / - 94 AS col0
----
-2460
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1678
SELECT - - 56 + + 9 + + 67 + 99 * - + 52 AS col1, 87 / + CASE - - MAX( 12 ) WHEN - - MAX( + 33 ) + + 0 THEN ( ( 82 ) ) END AS col1
----
-5016
NULL

skipif mysql # not compatible
query II rowsort label-1678
SELECT - - 56 + + 9 + + 67 + 99 * - + 52 AS col1, 87 / + CASE - - MAX ( 12 ) WHEN - - MAX ( + 33 ) + + 0 THEN ( ( 82 ) ) END AS col1
----
-5016
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1679
SELECT SUM( DISTINCT - NULLIF ( + 88, + 32 / + ( + - 53 ) ) )
----
-88

skipif mysql # not compatible
query I rowsort label-1679
SELECT SUM ( DISTINCT - NULLIF ( + 88, + 32 / + ( + - 53 ) ) )
----
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1680
SELECT ALL - - COUNT( * ) DIV 11 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1680
SELECT ALL - - COUNT ( * ) / 11 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1681
SELECT ALL MAX( DISTINCT 81 ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-1681
SELECT ALL MAX ( DISTINCT 81 ) AS col1
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1682
SELECT DISTINCT - COUNT( * ) DIV - MIN( NULLIF ( - 97, + - 37 + - 47 ) )
----
0

skipif mysql # not compatible
query I rowsort label-1682
SELECT DISTINCT - COUNT ( * ) / - MIN ( NULLIF ( - 97, + - 37 + - 47 ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1683
SELECT DISTINCT - 17 / - 28 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1683
SELECT DISTINCT - 17 / - 28 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1684
SELECT - - 6 DIV - 42 - - ( - 26 ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-1684
SELECT - - 6 / - 42 - - ( - 26 ) AS col0
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1685
SELECT ALL - - 50 DIV + 63 + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-1685
SELECT ALL - - 50 / + 63 + COUNT ( * )
----
1

query I rowsort
SELECT - 75 + ( + 65 ) col1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-1687
SELECT ALL NULLIF ( - COUNT( * ), + - COUNT( * ) + - + 85 ) * + + 40
----
-40

skipif mysql # not compatible
query I rowsort label-1687
SELECT ALL NULLIF ( - COUNT ( * ), + - COUNT ( * ) + - + 85 ) * + + 40
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-1688
SELECT ALL + MIN( - - 0 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-1688
SELECT ALL + MIN ( - - 0 ) col1
----
0

query I rowsort
SELECT DISTINCT + + 24 + - + 83 AS col0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-1690
SELECT + 25 + 42 - + COUNT( * ) * - + 35 * 66 AS col1
----
2377

skipif mysql # not compatible
query I rowsort label-1690
SELECT + 25 + 42 - + COUNT ( * ) * - + 35 * 66 AS col1
----
2377

query II rowsort
SELECT DISTINCT NULLIF ( - 98, 82 ) AS col2, 77
----
-98
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1692
SELECT 46 * MAX( - + 83 ) * - 76
----
290168

skipif mysql # not compatible
query I rowsort label-1692
SELECT 46 * MAX ( - + 83 ) * - 76
----
290168

onlyif mysql # aggregate syntax: 
query II rowsort label-1693
SELECT 81 + + 64, + MIN( DISTINCT ( + 59 ) ) AS col2
----
145
59

skipif mysql # not compatible
query II rowsort label-1693
SELECT 81 + + 64, + MIN ( DISTINCT ( + 59 ) ) AS col2
----
145
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1694
SELECT DISTINCT + CAST( + CAST( + 67 AS SIGNED ) AS SIGNED ) + + + 88 + - 30 - + NULLIF ( 74, + 45 - + SUM( + NULLIF ( - 21, + 91 ) ) + - 48 * + COUNT( * ) ) col2
----
51

skipif mysql # not compatible
query I rowsort label-1694
SELECT DISTINCT + CAST ( + CAST ( + 67 AS INTEGER ) AS INTEGER ) + + + 88 + - 30 - + NULLIF ( 74, + 45 - + SUM ( + NULLIF ( - 21, + 91 ) ) + - 48 * + COUNT ( * ) ) col2
----
51

query II rowsort
SELECT DISTINCT 17, + 92 * - 54 AS col1
----
17
-4968

onlyif mysql # aggregate syntax: 
query I rowsort label-1696
SELECT DISTINCT 72 + + 65 * + - COUNT( * ) * + - 16
----
1112

skipif mysql # not compatible
query I rowsort label-1696
SELECT DISTINCT 72 + + 65 * + - COUNT ( * ) * + - 16
----
1112

query I rowsort
SELECT 71 * - 14 AS col1
----
-994

query I rowsort
SELECT ALL 54 * - 35 AS col0
----
-1890

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

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

query II rowsort
SELECT 51, - 18 * 82 AS col0
----
51
-1476

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1701
SELECT CAST( NULL AS SIGNED ) * + ( COALESCE ( 92, MAX( DISTINCT 63 ) ) ) col1, + 45 / CASE - 1 WHEN - MAX( ALL + COALESCE ( + ( 8 ), - 81 + 28 ) ) THEN NULL WHEN + 27 + + 99 * - MIN( ALL + 99 ) THEN - 36 END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1701
SELECT CAST ( NULL AS INTEGER ) * + ( COALESCE ( 92, MAX ( DISTINCT 63 ) ) ) col1, + 45 / CASE - 1 WHEN - MAX ( ALL + COALESCE ( + ( 8 ), - 81 + 28 ) ) THEN NULL WHEN + 27 + + 99 * - MIN ( ALL + 99 ) THEN - 36 END
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1702
SELECT 60 AS col1, ( + - 58 ) - + + 61 + - + 66 * - 0 * - - AVG ( CAST( NULL AS SIGNED ) ) * + 22 + + 18
----
60
NULL

skipif mysql # not compatible
query II rowsort label-1702
SELECT 60 AS col1, ( + - 58 ) - + + 61 + - + 66 * - 0 * - - AVG ( CAST ( NULL AS INTEGER ) ) * + 22 + + 18
----
60
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1703
SELECT ALL - 59 * - ( + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1703
SELECT ALL - 59 * - ( + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 77 - - 7
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1705
SELECT + COUNT( * ) * - 59 + - 66 * + 98
----
-6527

skipif mysql # not compatible
query I rowsort label-1705
SELECT + COUNT ( * ) * - 59 + - 66 * + 98
----
-6527

onlyif mysql # aggregate syntax: 
query I rowsort label-1706
SELECT DISTINCT 53 - + 22 - + 33 + - COUNT( 56 ) * - 17 + + + 49 * + 99
----
4866

skipif mysql # not compatible
query I rowsort label-1706
SELECT DISTINCT 53 - + 22 - + 33 + - COUNT ( 56 ) * - 17 + + + 49 * + 99
----
4866

onlyif mysql # DIV for integer division: 
query I rowsort label-1707
SELECT 14 DIV - 62 + - - 20 AS col0
----
20

skipif mysql # not compatible
query I rowsort label-1707
SELECT 14 / - 62 + - - 20 AS col0
----
20

query II rowsort
SELECT DISTINCT - 41 - 3 - 90 * + 27, - 66 AS col2
----
-2474
-66

query II rowsort
SELECT ALL - - 17 AS col1, 92
----
17
92

onlyif mysql # DIV for integer division: 
query I rowsort label-1710
SELECT 77 DIV 69 + + - 19
----
-18

skipif mysql # not compatible
query I rowsort label-1710
SELECT 77 / 69 + + - 19
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-1711
SELECT DISTINCT - 45, - NULLIF ( 95, 22 + - + COUNT( * ) + 50 * - + 72 * 52 ) * + 15 + - 51 + - - 97 AS col2
----
-45
-1379

skipif mysql # not compatible
query II rowsort label-1711
SELECT DISTINCT - 45, - NULLIF ( 95, 22 + - + COUNT ( * ) + 50 * - + 72 * 52 ) * + 15 + - 51 + - - 97 AS col2
----
-45
-1379

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1712
SELECT ALL - + COALESCE ( - SUM( ALL - + 82 ), - - 60, - + CAST( NULL AS SIGNED ) + + - 59 )
----
-82

skipif mysql # not compatible
query I rowsort label-1712
SELECT ALL - + COALESCE ( - SUM ( ALL - + 82 ), - - 60, - + CAST ( NULL AS INTEGER ) + + - 59 )
----
-82

query II rowsort
SELECT 66, 52 AS col1
----
66
52

query I rowsort
SELECT ALL - 16 * 70 AS col1
----
-1120

query I rowsort
SELECT + 23 * - 89
----
-2047

query I rowsort
SELECT - ( 27 ) + - - 58
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1717
SELECT DISTINCT 2 * + MIN( DISTINCT + 99 ) AS col1
----
198

skipif mysql # not compatible
query I rowsort label-1717
SELECT DISTINCT 2 * + MIN ( DISTINCT + 99 ) AS col1
----
198

onlyif mysql # aggregate syntax: 
query I rowsort label-1718
SELECT - 50 - - - COUNT( * ) * + 75
----
-125

skipif mysql # not compatible
query I rowsort label-1718
SELECT - 50 - - - COUNT ( * ) * + 75
----
-125

onlyif mysql # aggregate syntax: 
query I rowsort label-1719
SELECT ALL ( - MAX( DISTINCT + + 95 ) ) * - ( + - MIN( - - 54 ) ) * 31 + + 88
----
-158942

skipif mysql # not compatible
query I rowsort label-1719
SELECT ALL ( - MAX ( DISTINCT + + 95 ) ) * - ( + - MIN ( - - 54 ) ) * 31 + + 88
----
-158942

onlyif mysql # aggregate syntax: 
query I rowsort label-1720
SELECT ALL COALESCE ( 67, + - 26 * + ( 35 ) * - COUNT( * ) - + COUNT( * ) + + - 73 ) AS col0
----
67

skipif mysql # not compatible
query I rowsort label-1720
SELECT ALL COALESCE ( 67, + - 26 * + ( 35 ) * - COUNT ( * ) - + COUNT ( * ) + + - 73 ) AS col0
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1721
SELECT CAST( NULL AS SIGNED ) AS col2, + 66 + + COALESCE ( 87, + 28, - NULLIF ( + 84, - COUNT( * ) ) DIV 3 + + CASE 89 WHEN 45 THEN - 76 * + 13 WHEN + COUNT( DISTINCT 51 ) THEN ( + 99 ) ELSE + ( + 86 ) * 97 + + 38 END * 54 ) + - NULLIF ( 55 + 11, - 46 * 87 ) AS col0
----
NULL
87

skipif mysql # not compatible
query II rowsort label-1721
SELECT CAST ( NULL AS INTEGER ) AS col2, + 66 + + COALESCE ( 87, + 28, - NULLIF ( + 84, - COUNT ( * ) ) / 3 + + CASE 89 WHEN 45 THEN - 76 * + 13 WHEN + COUNT ( DISTINCT 51 ) THEN ( + 99 ) ELSE + ( + 86 ) * 97 + + 38 END * 54 ) + - NULLIF ( 55 + 11, - 46 * 87 ) AS col0
----
NULL
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1722
SELECT - - CASE WHEN NOT - 9 IN ( + 59 - + SUM( DISTINCT - + ( - 5 ) ) ) THEN - 53 WHEN ( 17 * + 60 ) NOT IN ( + 45 * 9 + 60 ) OR + ( COUNT( * ) ) * + 19 IS NULL THEN NULL ELSE NULL END
----
-53

skipif mysql # not compatible
query I rowsort label-1722
SELECT - - CASE WHEN NOT - 9 IN ( + 59 - + SUM ( DISTINCT - + ( - 5 ) ) ) THEN - 53 WHEN ( 17 * + 60 ) NOT IN ( + 45 * 9 + 60 ) OR + ( COUNT ( * ) ) * + 19 IS NULL THEN NULL ELSE NULL END
----
-53

query I rowsort
SELECT + 26 * - 10 col1
----
-260

query II rowsort
SELECT ALL 51 AS col1, + 82 * - 55 + - 41 * - NULLIF ( - 14, - 76 )
----
51
-5084

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1726
SELECT ALL + 39 / + - 24 + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1726
SELECT ALL + 39 / + - 24 + CAST ( NULL AS REAL )
----
NULL

query II rowsort
SELECT DISTINCT - 81 + ( + 96 ) + - 44, 47 AS col0
----
-29
47

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

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

query I rowsort
SELECT 75 - 30
----
45

onlyif mysql # DIV for integer division: 
query II rowsort label-1730
SELECT ALL 32 DIV 25, 12 AS col2
----
1
12

skipif mysql # not compatible
query II rowsort label-1730
SELECT ALL 32 / 25, 12 AS col2
----
1
12

query I rowsort
SELECT 61 * - 36
----
-2196

onlyif mysql # aggregate syntax: 
query I rowsort label-1732
SELECT ALL - 17 + - COUNT( * ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-1732
SELECT ALL - 17 + - COUNT ( * ) AS col2
----
-18

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1733
SELECT ALL - 80 * - 60 AS col1, - CAST( NULL AS DECIMAL ) + 90 AS col1
----
4800
NULL

skipif mysql # not compatible
query II rowsort label-1733
SELECT ALL - 80 * - 60 AS col1, - CAST ( NULL AS REAL ) + 90 AS col1
----
4800
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1734
SELECT ALL 66 * - + COUNT( * ) AS col1, 30
----
-66
30

skipif mysql # not compatible
query II rowsort label-1734
SELECT ALL 66 * - + COUNT ( * ) AS col1, 30
----
-66
30

query I rowsort
SELECT ALL - 90 + + 95 + + 67 AS col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-1736
SELECT 51 + 29 + 86 + 96 + + 62 * CASE + ( + COUNT( - 47 ) ) WHEN - + ( 53 ) THEN 66 + + ( CASE + COUNT( * ) WHEN 52 THEN NULL ELSE - 76 END ) * ( - 63 ) END * - NULLIF ( 41 - 9, 59 ) + 93 * - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-1736
SELECT 51 + 29 + 86 + 96 + + 62 * CASE + ( + COUNT ( - 47 ) ) WHEN - + ( 53 ) THEN 66 + + ( CASE + COUNT ( * ) WHEN 52 THEN NULL ELSE - 76 END ) * ( - 63 ) END * - NULLIF ( 41 - 9, 59 ) + 93 * - 61
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1737
SELECT 61 + 54 * + COUNT( * )
----
115

skipif mysql # not compatible
query I rowsort label-1737
SELECT 61 + 54 * + COUNT ( * )
----
115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1738
SELECT ALL MAX( ALL - 78 ) AS col1, - NULLIF ( + CASE 39 WHEN - 62 / - 80 - - + 15 + - - 82 THEN - 97 WHEN CASE + CAST( NULL AS SIGNED ) WHEN 97 * 63 THEN NULL WHEN 68 - COUNT( * ) * - 52 THEN NULL ELSE + 23 + + 38 / - 13 END * - 63 + COALESCE ( COALESCE ( 30, 60 + - 98 ) + - 32, + 73 ) THEN NULL END, - 54 ) - - 39
----
-78
NULL

skipif mysql # not compatible
query II rowsort label-1738
SELECT ALL MAX ( ALL - 78 ) AS col1, - NULLIF ( + CASE 39 WHEN - 62 / - 80 - - + 15 + - - 82 THEN - 97 WHEN CASE + CAST ( NULL AS INTEGER ) WHEN 97 * 63 THEN NULL WHEN 68 - COUNT ( * ) * - 52 THEN NULL ELSE + 23 + + 38 / - 13 END * - 63 + COALESCE ( COALESCE ( 30, 60 + - 98 ) + - 32, + 73 ) THEN NULL END, - 54 ) - - 39
----
-78
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1739
SELECT 70 + - - 49 + - - MIN( DISTINCT + + 0 )
----
119

skipif mysql # not compatible
query I rowsort label-1739
SELECT 70 + - - 49 + - - MIN ( DISTINCT + + 0 )
----
119

query I rowsort
SELECT 6 * 54
----
324

query I rowsort
SELECT 77 * - 86 AS col1
----
-6622

onlyif mysql # aggregate syntax: 
query I rowsort label-1742
SELECT MAX( ALL 68 ) + 31 + 18 AS col0
----
117

skipif mysql # not compatible
query I rowsort label-1742
SELECT MAX ( ALL 68 ) + 31 + 18 AS col0
----
117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1743
SELECT ALL 0 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1743
SELECT ALL 0 / + CAST ( NULL AS INTEGER )
----
NULL

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

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

query II rowsort
SELECT 92 * + + 40 AS col2, - 48
----
3680
-48

query I rowsort
SELECT DISTINCT 20 * + 91
----
1820

query I rowsort
SELECT DISTINCT + 62 * 46
----
2852

onlyif mysql # DIV for integer division: 
query I rowsort label-1748
SELECT - 7 DIV - 20
----
0

skipif mysql # not compatible
query I rowsort label-1748
SELECT - 7 / - 20
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1750
SELECT ALL - CAST( 56 AS SIGNED ) DIV - + 7
----
8

skipif mysql # not compatible
query I rowsort label-1750
SELECT ALL - CAST ( 56 AS INTEGER ) / - + 7
----
8

query I rowsort
SELECT ALL + 68 + + 40 * ( 8 )
----
388

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1752
SELECT + CAST( + + 48 AS SIGNED ) * + 1 AS col2
----
48

skipif mysql # not compatible
query I rowsort label-1752
SELECT + CAST ( + + 48 AS INTEGER ) * + 1 AS col2
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1753
SELECT + - 29 - + 83 + COUNT( * ) DIV - 39 * - + 37
----
-112

skipif mysql # not compatible
query I rowsort label-1753
SELECT + - 29 - + 83 + COUNT ( * ) / - 39 * - + 37
----
-112

query II rowsort
SELECT + 10 + + - 14 AS col1, 91
----
-4
91

query I rowsort
SELECT DISTINCT + ( + 82 ) * 32
----
2624

onlyif mysql # aggregate syntax: 
query I rowsort label-1756
SELECT 47 * - COUNT( * ) + - + 55 * - + 59 * + 31
----
100548

skipif mysql # not compatible
query I rowsort label-1756
SELECT 47 * - COUNT ( * ) + - + 55 * - + 59 * + 31
----
100548

query I rowsort
SELECT ALL 20 * - + 54 AS col1
----
-1080

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1758
SELECT + 96 + + + CAST( NULL AS SIGNED ) * + NULLIF ( - 31, - + AVG ( DISTINCT - - 38 ) ) * 21 + + 98 * - 42 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1758
SELECT + 96 + + + CAST ( NULL AS INTEGER ) * + NULLIF ( - 31, - + AVG ( DISTINCT - - 38 ) ) * 21 + + 98 * - 42 AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1759
SELECT ALL MIN ( ALL 90 )
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1760
SELECT + MAX( DISTINCT - 31 ) / - ( + CASE - 36 WHEN + - ( 78 ) * COUNT( * ) * + CASE + ( 8 ) WHEN - 65 THEN - 2 + + 23 / + COALESCE ( - 87, - 33 * + 42 + 91, - 78 ) WHEN - 66 THEN 76 WHEN + 64 THEN - 9 + - 94 * COUNT( * ) END THEN NULL WHEN CAST( + 56 AS SIGNED ) + + 86 THEN + 3 ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1760
SELECT + MAX ( DISTINCT - 31 ) / - ( + CASE - 36 WHEN + - ( 78 ) * COUNT ( * ) * + CASE + ( 8 ) WHEN - 65 THEN - 2 + + 23 / + COALESCE ( - 87, - 33 * + 42 + 91, - 78 ) WHEN - 66 THEN 76 WHEN + 64 THEN - 9 + - 94 * COUNT ( * ) END THEN NULL WHEN CAST ( + 56 AS INTEGER ) + + 86 THEN + 3 ELSE NULL END ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1761
SELECT - ( - - 63 ) + + - CAST( NULL AS SIGNED ) AS col0, + 14 AS col1
----
NULL
14

skipif mysql # not compatible
query II rowsort label-1761
SELECT - ( - - 63 ) + + - CAST ( NULL AS INTEGER ) AS col0, + 14 AS col1
----
NULL
14

query I rowsort
SELECT - 66 + 36 AS col1
----
-30

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

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

query II rowsort
SELECT 90, 62 AS col0
----
90
62

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

query I rowsort
SELECT + ( - - 64 ) * + ( - ( + 2 ) ) AS col0
----
-128

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

skipif mysql # not compatible
query I rowsort label-1767
SELECT DISTINCT + COUNT ( * ) / - + 12
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1768
SELECT - COUNT( * ) * - 70 col1
----
70

skipif mysql # not compatible
query I rowsort label-1768
SELECT - COUNT ( * ) * - 70 col1
----
70

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

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

query I rowsort
SELECT ALL + 86 * - + 17 AS col2
----
-1462

onlyif mysql # aggregate syntax: 
query II rowsort label-1771
SELECT ALL COUNT( * ), COALESCE ( 60, - 76 + - - 93 * - 50 + - - 82 ) + 58 + - 79 * + + 73 * - ( - 41 ) * 65 AS col0
----
1
-15368937

skipif mysql # not compatible
query II rowsort label-1771
SELECT ALL COUNT ( * ), COALESCE ( 60, - 76 + - - 93 * - 50 + - - 82 ) + 58 + - 79 * + + 73 * - ( - 41 ) * 65 AS col0
----
1
-15368937

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1772
SELECT - 0 * - CAST( 82 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-1772
SELECT - 0 * - CAST ( 82 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1773
SELECT ALL CASE - COUNT( * ) WHEN MIN( 46 ) THEN NULL WHEN 45 + - - 52 THEN 35 * 78 + - 51 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1773
SELECT ALL CASE - COUNT ( * ) WHEN MIN ( 46 ) THEN NULL WHEN 45 + - - 52 THEN 35 * 78 + - 51 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL COALESCE ( - 17, - 40 ) AS col1
----
-17

query II rowsort
SELECT + 2 AS col1, - 86
----
2
-86

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1777
SELECT - 64 * - - CASE - 21 WHEN + + 54 THEN NULL WHEN - AVG ( - 3 ) * + 90 / 55 * - 65 * + - 48 THEN + 2 * - - 13 / + 0 + MIN( ALL - 72 + + 49 ) * 94 ELSE NULL END * - 51 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1777
SELECT - 64 * - - CASE - 21 WHEN + + 54 THEN NULL WHEN - AVG ( - 3 ) * + 90 / 55 * - 65 * + - 48 THEN + 2 * - - 13 / + 0 + MIN ( ALL - 72 + + 49 ) * 94 ELSE NULL END * - 51 AS col0
----
NULL

query I rowsort
SELECT - 70 * + 89 AS col0
----
-6230

query II rowsort
SELECT + 67 col1, 23 AS col2
----
67
23

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

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

query II rowsort
SELECT ALL + 77 AS col2, - 96 AS col2
----
77
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1782
SELECT DISTINCT SUM( - - 52 ) DIV + + 49 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1782
SELECT DISTINCT SUM ( - - 52 ) / + + 49 AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1783
SELECT 1 AS col0, 48 - NULLIF ( - + 49, 4 + - - ( - - 68 ) * - - COUNT( * ) ) AS col1
----
1
97

skipif mysql # not compatible
query II rowsort label-1783
SELECT 1 AS col0, 48 - NULLIF ( - + 49, 4 + - - ( - - 68 ) * - - COUNT ( * ) ) AS col1
----
1
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1784
SELECT - + CASE - ( + SUM( + + 92 ) ) WHEN ( - - 77 ) THEN + + 78 * + + 44 * - + 76 ELSE NULL END + + COALESCE ( + - MAX( DISTINCT - ( + + 95 ) ), + 87 / + 6 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1784
SELECT - + CASE - ( + SUM ( + + 92 ) ) WHEN ( - - 77 ) THEN + + 78 * + + 44 * - + 76 ELSE NULL END + + COALESCE ( + - MAX ( DISTINCT - ( + + 95 ) ), + 87 / + 6 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1785
SELECT + CASE - COUNT( * ) WHEN + 22 THEN 67 + + 36 WHEN - + 22 THEN NULL END * - - 95 + + 29 - 54 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1785
SELECT + CASE - COUNT ( * ) WHEN + 22 THEN 67 + + 36 WHEN - + 22 THEN NULL END * - - 95 + + 29 - 54 AS col2
----
NULL

query I rowsort
SELECT ALL ( 98 ) * + + 11
----
1078

onlyif mysql # aggregate syntax: 
query I rowsort label-1787
SELECT DISTINCT 17 * + MIN( DISTINCT + 63 ) * + 61 + - - 75 AS col2
----
65406

skipif mysql # not compatible
query I rowsort label-1787
SELECT DISTINCT 17 * + MIN ( DISTINCT + 63 ) * + 61 + - - 75 AS col2
----
65406

onlyif mysql # aggregate syntax: 
query I rowsort label-1788
SELECT ALL + COALESCE ( + + 52, - 10 + - 51 ) * + COUNT( * ) + - + 21 + 80 + + - 88 * - 84 * + 59 * - - 76
----
33145839

skipif mysql # not compatible
query I rowsort label-1788
SELECT ALL + COALESCE ( + + 52, - 10 + - 51 ) * + COUNT ( * ) + - + 21 + 80 + + - 88 * - 84 * + 59 * - - 76
----
33145839

query I rowsort
SELECT DISTINCT + 54 * + 39
----
2106

onlyif mysql # DIV for integer division: 
query I rowsort label-1790
SELECT DISTINCT 83 DIV + 11 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-1790
SELECT DISTINCT 83 / + 11 AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1791
SELECT ALL + + MAX( DISTINCT - 88 )
----
-88

skipif mysql # not compatible
query I rowsort label-1791
SELECT ALL + + MAX ( DISTINCT - 88 )
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1792
SELECT DISTINCT - 46 * 55 + + + 46 - + 74 - - + CAST( ( + 88 ) AS SIGNED ) AS col2
----
-2470

skipif mysql # not compatible
query I rowsort label-1792
SELECT DISTINCT - 46 * 55 + + + 46 - + 74 - - + CAST ( ( + 88 ) AS INTEGER ) AS col2
----
-2470

onlyif mysql # aggregate syntax: 
query I rowsort label-1793
SELECT + ( MAX( DISTINCT - + 55 ) ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-1793
SELECT + ( MAX ( DISTINCT - + 55 ) ) AS col2
----
-55

query I rowsort
SELECT - 84 - 11
----
-95

query II rowsort
SELECT - ( + - 4 ) AS col0, 59
----
4
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1796
SELECT + ( + COALESCE ( COUNT( * ), + 31 ) ) * + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1796
SELECT + ( + COALESCE ( COUNT ( * ), + 31 ) ) * + COUNT ( * ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1797
SELECT MAX( ALL - 40 ) col1
----
-40

skipif mysql # not compatible
query I rowsort label-1797
SELECT MAX ( ALL - 40 ) col1
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-1798
SELECT + ( - + 23 ) * - 24 * + 71 + + 77 + 81 DIV - - 38 - ( - 72 ) * - COALESCE ( 67, + 80 ) - + + 5 DIV 37
----
34447

skipif mysql # not compatible
query I rowsort label-1798
SELECT + ( - + 23 ) * - 24 * + 71 + + 77 + 81 / - - 38 - ( - 72 ) * - COALESCE ( 67, + 80 ) - + + 5 / 37
----
34447

onlyif mysql # aggregate syntax: 
query I rowsort label-1799
SELECT ALL COUNT( * ) * - 65 * + - 31 AS col1
----
2015

skipif mysql # not compatible
query I rowsort label-1799
SELECT ALL COUNT ( * ) * - 65 * + - 31 AS col1
----
2015

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1800
SELECT + ( + + ( + ( + 79 ) ) ) - - + 34 + CAST( NULL AS SIGNED ) / - - COALESCE ( + 82, CAST( ( + - COUNT( * ) ) AS DECIMAL ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1800
SELECT + ( + + ( + ( + 79 ) ) ) - - + 34 + CAST ( NULL AS INTEGER ) / - - COALESCE ( + 82, CAST ( ( + - COUNT ( * ) ) AS REAL ) ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1801
SELECT ALL COALESCE ( - 6, + COUNT( * ) + - 69 + - 65 * + - 45 )
----
-6

skipif mysql # not compatible
query I rowsort label-1801
SELECT ALL COALESCE ( - 6, + COUNT ( * ) + - 69 + - 65 * + - 45 )
----
-6

query I rowsort
SELECT DISTINCT COALESCE ( + 80, - + ( 58 ) * + 36 * + 68 ) AS col1
----
80

query I rowsort
SELECT + 0 * - - 18 col2
----
0

query I rowsort
SELECT + 23 + - 30 AS col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1805
SELECT ALL - 65 + + 46 * - 61 * SUM( - + 89 )
----
249669

skipif mysql # not compatible
query I rowsort label-1805
SELECT ALL - 65 + + 46 * - 61 * SUM ( - + 89 )
----
249669

query I rowsort
SELECT - 17 + - - 10 col0
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1807
SELECT DISTINCT - - ( - 65 ) / CASE - COUNT( * ) WHEN - + 31 THEN NULL WHEN + 11 * + + 2 THEN - ( + CAST( NULL AS SIGNED ) ) END + + 88 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1807
SELECT DISTINCT - - ( - 65 ) / CASE - COUNT ( * ) WHEN - + 31 THEN NULL WHEN + 11 * + + 2 THEN - ( + CAST ( NULL AS INTEGER ) ) END + + 88 AS col2
----
NULL

query I rowsort
SELECT ALL + 37 * + 99 + - 33
----
3630

onlyif mysql # DIV for integer division: 
query I rowsort label-1809
SELECT ALL - - 42 DIV - - 12 + - 50 DIV 8
----
-3

skipif mysql # not compatible
query I rowsort label-1809
SELECT ALL - - 42 / - - 12 + - 50 / 8
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-1810
SELECT DISTINCT + 0 DIV 64 * - 43 + + 96 AS col2
----
96

skipif mysql # not compatible
query I rowsort label-1810
SELECT DISTINCT + 0 / 64 * - 43 + + 96 AS col2
----
96

query I rowsort
SELECT DISTINCT - - 65 + + + 65 + 34 AS col1
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-1812
SELECT + NULLIF ( NULLIF ( 65, - 63 / + 31 ), - COUNT( * ) ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-1812
SELECT + NULLIF ( NULLIF ( 65, - 63 / + 31 ), - COUNT ( * ) ) AS col2
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1813
SELECT ALL - + 15 + + SUM( DISTINCT 98 ) + - - CAST( + - 3 AS SIGNED )
----
80

skipif mysql # not compatible
query I rowsort label-1813
SELECT ALL - + 15 + + SUM ( DISTINCT 98 ) + - - CAST ( + - 3 AS INTEGER )
----
80

query II rowsort
SELECT ALL + - 53 + + + 67, + ( + 41 ) AS col2
----
14
41

query I rowsort
SELECT ALL + + 36 * 56
----
2016

onlyif mysql # DIV for integer division: 
query I rowsort label-1816
SELECT + - 0 DIV 36 + - 35 - - - 34
----
-69

skipif mysql # not compatible
query I rowsort label-1816
SELECT + - 0 / 36 + - 35 - - - 34
----
-69

query I rowsort
SELECT - 28 + - + 98 + + 58 AS col1
----
-68

query I rowsort
SELECT ALL - + 23 - 30
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-1819
SELECT ALL 72 * + + COALESCE ( 78, - + 2 DIV 79 )
----
5616

skipif mysql # not compatible
query I rowsort label-1819
SELECT ALL 72 * + + COALESCE ( 78, - + 2 / 79 )
----
5616

query I rowsort
SELECT ALL 81 - + 51 AS col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1821
SELECT COALESCE ( 79, + - ( - COUNT( + - CASE + - 77 WHEN - - 10 * + 41 * 25 * + 81 THEN + 26 / - 47 ELSE 75 END ) ) * + + 68, 57 - ( - 72 ) ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-1821
SELECT COALESCE ( 79, + - ( - COUNT ( + - CASE + - 77 WHEN - - 10 * + 41 * 25 * + 81 THEN + 26 / - 47 ELSE 75 END ) ) * + + 68, 57 - ( - 72 ) ) AS col1
----
79

query I rowsort
SELECT + 95 + + 34
----
129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1823
SELECT ALL - 0 * - + 93 + + CAST( + COUNT( * ) AS SIGNED ) + + MAX( ALL - ( + 3 ) ) + 8 * 93 DIV 36
----
18

skipif mysql # not compatible
query I rowsort label-1823
SELECT ALL - 0 * - + 93 + + CAST ( + COUNT ( * ) AS INTEGER ) + + MAX ( ALL - ( + 3 ) ) + 8 * 93 / 36
----
18

query II rowsort
SELECT + 64 AS col1, - 71 AS col2
----
64
-71

onlyif mysql # DIV for integer division: 
query II rowsort label-1825
SELECT 67 AS col2, 90 DIV + 39 AS col2
----
67
2

skipif mysql # not compatible
query II rowsort label-1825
SELECT 67 AS col2, 90 / + 39 AS col2
----
67
2

query I rowsort
SELECT ALL 49 * + 55
----
2695

onlyif mysql # aggregate syntax: 
query I rowsort label-1827
SELECT 77 + COUNT( * ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-1827
SELECT 77 + COUNT ( * ) AS col2
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1828
SELECT ALL - 31 * - + CAST( + 24 AS SIGNED ) AS col2
----
744

skipif mysql # not compatible
query I rowsort label-1828
SELECT ALL - 31 * - + CAST ( + 24 AS INTEGER ) AS col2
----
744

query I rowsort
SELECT 59 * + 48 + - + 34
----
2798

onlyif mysql # aggregate syntax: 
query II rowsort label-1830
SELECT COUNT( - 36 ) * - + ( + COUNT( * ) ) + + + 90 AS col2, ( + + 66 ) AS col2
----
89
66

skipif mysql # not compatible
query II rowsort label-1830
SELECT COUNT ( - 36 ) * - + ( + COUNT ( * ) ) + + + 90 AS col2, ( + + 66 ) AS col2
----
89
66

query I rowsort
SELECT DISTINCT - 13 * - 68 AS col2
----
884

onlyif mysql # DIV for integer division: 
query I rowsort label-1832
SELECT ALL 77 DIV - - CASE - - 59 WHEN + 40 DIV - - 8 THEN - ( - 32 ) ELSE - - 21 END AS col2
----
3

skipif mysql # not compatible
query I rowsort label-1832
SELECT ALL 77 / - - CASE - - 59 WHEN + 40 / - - 8 THEN - ( - 32 ) ELSE - - 21 END AS col2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query III rowsort label-1833
SELECT 6 + - 70 + - COUNT( * ) * - CAST( - 91 AS SIGNED ) col1, - CAST( NULL AS DECIMAL ) * + AVG ( - - 16 ) AS col2, + - 80
----
-155
NULL
-80

skipif mysql # not compatible
query III rowsort label-1833
SELECT 6 + - 70 + - COUNT ( * ) * - CAST ( - 91 AS INTEGER ) col1, - CAST ( NULL AS REAL ) * + AVG ( - - 16 ) AS col2, + - 80
----
-155
NULL
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-1834
SELECT ALL 95 DIV - - 78 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1834
SELECT ALL 95 / - - 78 AS col0
----
1

query I rowsort
SELECT ( - 45 ) * + 18 * + 51 + 64
----
-41246

query II rowsort
SELECT ALL 89 AS col2, 33
----
89
33

onlyif mysql # DIV for integer division: 
query I rowsort label-1837
SELECT DISTINCT ( + 6 ) + - 16 DIV + + 37 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-1837
SELECT DISTINCT ( + 6 ) + - 16 / + + 37 AS col1
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1838
SELECT NULLIF ( 4, + - 11 ) * - CAST( - 34 AS SIGNED ) * 34 * 76 * 25 AS col2, 37 - - + 90
----
8785600
127

skipif mysql # not compatible
query II rowsort label-1838
SELECT NULLIF ( 4, + - 11 ) * - CAST ( - 34 AS INTEGER ) * 34 * 76 * 25 AS col2, 37 - - + 90
----
8785600
127

query II rowsort
SELECT DISTINCT 49 AS col1, + 22 AS col0
----
49
22

onlyif mysql # aggregate syntax: 
query I rowsort label-1840
SELECT DISTINCT 70 * + COUNT( * ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-1840
SELECT DISTINCT 70 * + COUNT ( * ) AS col2
----
70

query I rowsort
SELECT ALL 87 + + 39 AS col0
----
126

query I rowsort
SELECT 30 * - + 90 AS col2
----
-2700

onlyif mysql # DIV for integer division: 
query I rowsort label-1843
SELECT ALL 99 + + 21 + + ( + + 81 ) DIV + 70 AS col0
----
121

skipif mysql # not compatible
query I rowsort label-1843
SELECT ALL 99 + + 21 + + ( + + 81 ) / + 70 AS col0
----
121

query I rowsort
SELECT DISTINCT + 8 + 38 AS col1
----
46

query I rowsort
SELECT DISTINCT - 50 + - + 90
----
-140

query I rowsort
SELECT 96 - 79 AS col1
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1847
SELECT DISTINCT 2 + + 81 * - ( - 85 ) + CAST( - 71 AS SIGNED )
----
6816

skipif mysql # not compatible
query I rowsort label-1847
SELECT DISTINCT 2 + + 81 * - ( - 85 ) + CAST ( - 71 AS INTEGER )
----
6816

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1849
SELECT + 84 / - 98 + + COUNT( * ) * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1849
SELECT + 84 / - 98 + + COUNT ( * ) * CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL - 56 + + + 30
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1851
SELECT + 90 * - + 30 * + ( - COUNT( * ) ) * + ( + CAST( + 93 AS SIGNED ) ) + - - CAST( NULL AS DECIMAL ) AS col2, 67
----
NULL
67

skipif mysql # not compatible
query II rowsort label-1851
SELECT + 90 * - + 30 * + ( - COUNT ( * ) ) * + ( + CAST ( + 93 AS INTEGER ) ) + - - CAST ( NULL AS REAL ) AS col2, 67
----
NULL
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1852
SELECT DISTINCT - COUNT( ALL - 80 ) - 50
----
-51

skipif mysql # not compatible
query I rowsort label-1852
SELECT DISTINCT - COUNT ( ALL - 80 ) - 50
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-1853
SELECT ALL 87 DIV - + 8
----
-10

skipif mysql # not compatible
query I rowsort label-1853
SELECT ALL 87 / - + 8
----
-10

query I rowsort
SELECT DISTINCT + - 50 * + 59 col1
----
-2950

onlyif mysql # aggregate syntax: 
query I rowsort label-1855
SELECT 45 * - + 14 * - + COUNT( * ) * - 66 AS col1
----
-41580

skipif mysql # not compatible
query I rowsort label-1855
SELECT 45 * - + 14 * - + COUNT ( * ) * - 66 AS col1
----
-41580

query I rowsort
SELECT + COALESCE ( - 24, - 54 ) AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-1857
SELECT + - SUM( ALL + 11 ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-1857
SELECT + - SUM ( ALL + 11 ) AS col2
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1858
SELECT - CASE - 36 WHEN + ( - + COUNT( * ) ) / - 46 / - COUNT( * ) THEN - - MIN( + + 46 ) + - 85 + 27 / + 50 WHEN - - 90 THEN NULL END + - COUNT( * ) + - MIN( DISTINCT - - CAST( + 88 AS SIGNED ) ) + 93 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1858
SELECT - CASE - 36 WHEN + ( - + COUNT ( * ) ) / - 46 / - COUNT ( * ) THEN - - MIN ( + + 46 ) + - 85 + 27 / + 50 WHEN - - 90 THEN NULL END + - COUNT ( * ) + - MIN ( DISTINCT - - CAST ( + 88 AS INTEGER ) ) + 93 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - + 58 * + 94
----
-5452

onlyif mysql # aggregate syntax: 
query I rowsort label-1860
SELECT - COUNT( * ) * 4 + - - NULLIF ( + 19, + COUNT( * ) ) + + + 4 + 56 AS col1
----
75

skipif mysql # not compatible
query I rowsort label-1860
SELECT - COUNT ( * ) * 4 + - - NULLIF ( + 19, + COUNT ( * ) ) + + + 4 + 56 AS col1
----
75

query II rowsort
SELECT DISTINCT - 48 AS col2, 94
----
-48
94

query I rowsort
SELECT 90 * + + 6
----
540

query II rowsort
SELECT + 19 AS col1, 73
----
19
73

query I rowsort
SELECT ALL - COALESCE ( 84, - - 34 )
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-1865
SELECT DISTINCT - 82 * COUNT( * ) * + - COALESCE ( + - 80, - COUNT( * ) * - 28 ) AS col2
----
-6560

skipif mysql # not compatible
query I rowsort label-1865
SELECT DISTINCT - 82 * COUNT ( * ) * + - COALESCE ( + - 80, - COUNT ( * ) * - 28 ) AS col2
----
-6560

query II rowsort
SELECT - 27 AS col1, NULLIF ( - 48, - - 87 ) * ( - + NULLIF ( - 71, + 65 - - - 76 + - 19 * + 71 ) ) * 38 + + 97
----
-27
-129407

query I rowsort
SELECT 15 * - + 29 * 8
----
-3480

onlyif mysql # aggregate syntax: 
query I rowsort label-1868
SELECT ALL - COUNT( * ) + 17 * - COALESCE ( + 17, 52 * 93 * - 74, 23, - + 70 * + 54 ) AS col0
----
-290

skipif mysql # not compatible
query I rowsort label-1868
SELECT ALL - COUNT ( * ) + 17 * - COALESCE ( + 17, 52 * 93 * - 74, 23, - + 70 * + 54 ) AS col0
----
-290

onlyif mysql # aggregate syntax: 
query I rowsort label-1869
SELECT ALL + 37 + + - COUNT( DISTINCT + + 45 )
----
36

skipif mysql # not compatible
query I rowsort label-1869
SELECT ALL + 37 + + - COUNT ( DISTINCT + + 45 )
----
36

query I rowsort
SELECT DISTINCT - 82 + + 15 - 7
----
-74

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

skipif mysql # not compatible
query I rowsort label-1871
SELECT ALL SUM ( ALL - 72 )
----
-72

query II rowsort
SELECT - 88, 29 col1
----
-88
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1873
SELECT 5 DIV SUM( ALL + 21 )
----
0

skipif mysql # not compatible
query I rowsort label-1873
SELECT 5 / SUM ( ALL + 21 )
----
0

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

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

query I rowsort
SELECT ALL - 64 + - 25 + + 55 - - 22 + - 92 + - 75 * - 83 - - 8 * + CASE 73 WHEN 48 THEN 1 * 89 * - 99 * + ( + 62 ) + + 73 / 74 ELSE NULL END + 39
----
NULL

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

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

query I rowsort
SELECT 30 - + 85
----
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-1878
SELECT DISTINCT - COUNT( * ) * + 10 AS col1, - 0 AS col1
----
-10
0

skipif mysql # not compatible
query II rowsort label-1878
SELECT DISTINCT - COUNT ( * ) * + 10 AS col1, - 0 AS col1
----
-10
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1879
SELECT ALL + COUNT( * ) AS col1, + NULLIF ( + COALESCE ( + 78, - - 19 ), - + 18 )
----
1
78

skipif mysql # not compatible
query II rowsort label-1879
SELECT ALL + COUNT ( * ) AS col1, + NULLIF ( + COALESCE ( + 78, - - 19 ), - + 18 )
----
1
78

query I rowsort
SELECT ALL + 51 + 58 + - + 92
----
17

query I rowsort
SELECT - + 46 + 11 AS col1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-1882
SELECT - - 71 + + MIN( DISTINCT 35 ) AS col2
----
106

skipif mysql # not compatible
query I rowsort label-1882
SELECT - - 71 + + MIN ( DISTINCT 35 ) AS col2
----
106

query II rowsort
SELECT ALL 31 col1, 69 AS col1
----
31
69

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1885
SELECT ALL COUNT( * ) - - - 39 * + 65 * 44 + - + 73 * - - COUNT( * ) * - 77 + - ( + 10 ) AS col0
----
-105928

skipif mysql # not compatible
query I rowsort label-1885
SELECT ALL COUNT ( * ) - - - 39 * + 65 * 44 + - + 73 * - - COUNT ( * ) * - 77 + - ( + 10 ) AS col0
----
-105928

onlyif mysql # aggregate syntax: 
query II rowsort label-1886
SELECT 26 col2, COUNT( * ) + 56 * - 98
----
26
-5487

skipif mysql # not compatible
query II rowsort label-1886
SELECT 26 col2, COUNT ( * ) + 56 * - 98
----
26
-5487

query I rowsort
SELECT ALL 81 * + 47 - + - 81 + + 70 - + 0 + - 84 col1
----
3874

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1888
SELECT + 15 + CAST( + - 8 AS SIGNED )
----
7

skipif mysql # not compatible
query I rowsort label-1888
SELECT + 15 + CAST ( + - 8 AS INTEGER )
----
7

query I rowsort
SELECT - + 44 * - 98 + + - 38
----
4274

query I rowsort
SELECT + + 39 * + 38
----
1482

onlyif mysql # aggregate syntax: 
query II rowsort label-1891
SELECT ALL + 33 * - + COUNT( * ), - 64 - + ( - + 72 ) AS col2
----
-33
8

skipif mysql # not compatible
query II rowsort label-1891
SELECT ALL + 33 * - + COUNT ( * ), - 64 - + ( - + 72 ) AS col2
----
-33
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1892
SELECT + CASE + 2 WHEN + - COUNT( * ) * - 16 THEN NULL WHEN COUNT( * ) * 45 + + - 50 + + 49 THEN 13 WHEN 3 + + 72 + + ( + COUNT( * ) ) THEN COUNT( * ) * - 59 END + + 25 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1892
SELECT + CASE + 2 WHEN + - COUNT ( * ) * - 16 THEN NULL WHEN COUNT ( * ) * 45 + + - 50 + + 49 THEN 13 WHEN 3 + + 72 + + ( + COUNT ( * ) ) THEN COUNT ( * ) * - 59 END + + 25 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1893
SELECT + SUM( ALL 53 ) * - - 63 - MIN( - 0 ) AS col2
----
3339

skipif mysql # not compatible
query I rowsort label-1893
SELECT + SUM ( ALL 53 ) * - - 63 - MIN ( - 0 ) AS col2
----
3339

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1894
SELECT DISTINCT + 50 DIV - 66 + ( + CAST( - 18 AS SIGNED ) ) * + - 54 col2
----
972

skipif mysql # not compatible
query I rowsort label-1894
SELECT DISTINCT + 50 / - 66 + ( + CAST ( - 18 AS INTEGER ) ) * + - 54 col2
----
972

onlyif mysql # aggregate syntax: 
query I rowsort label-1895
SELECT ALL + MIN( DISTINCT - 96 ) col1
----
-96

skipif mysql # not compatible
query I rowsort label-1895
SELECT ALL + MIN ( DISTINCT - 96 ) col1
----
-96

query I rowsort
SELECT ALL + 68 * - 84
----
-5712

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1897
SELECT DISTINCT 31 DIV - - COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-1897
SELECT DISTINCT 31 / - - COUNT ( * )
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1898
SELECT CAST( - COUNT( * ) AS SIGNED ) * - CASE - 15 WHEN ( + NULLIF ( 50, + COALESCE ( - + 53, - COUNT( * ) / - 33 * 2, 71, + + COUNT( * ) ) * - COALESCE ( CASE - 52 WHEN MIN( DISTINCT - 12 ) THEN 69 WHEN - 19 / 75 THEN 81 - ( 81 ) END, - MAX( 5 ) ) + + 41 + 31 * - COUNT( * ) ) ) THEN + 30 + 51 WHEN - 24 THEN NULL ELSE NULL END * + NULLIF ( 80, - 10 + NULLIF ( - 76, ( - 60 ) + 45 ) ) + CASE 94 + + 75 WHEN - ( 34 ) THEN 15 / + 68 + - 85 WHEN + COALESCE ( - 68, 12 ) THEN NULL END + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-1898
SELECT CAST ( - COUNT ( * ) AS INTEGER ) * - CASE - 15 WHEN ( + NULLIF ( 50, + COALESCE ( - + 53, - COUNT ( * ) / - 33 * 2, 71, + + COUNT ( * ) ) * - COALESCE ( CASE - 52 WHEN MIN ( DISTINCT - 12 ) THEN 69 WHEN - 19 / 75 THEN 81 - ( 81 ) END, - MAX ( 5 ) ) + + 41 + 31 * - COUNT ( * ) ) ) THEN + 30 + 51 WHEN - 24 THEN NULL ELSE NULL END * + NULLIF ( 80, - 10 + NULLIF ( - 76, ( - 60 ) + 45 ) ) + CASE 94 + + 75 WHEN - ( 34 ) THEN 15 / + 68 + - 85 WHEN + COALESCE ( - 68, 12 ) THEN NULL END + 62
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1899
SELECT - 60 DIV - 95 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1899
SELECT - 60 / - 95 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1900
SELECT ALL + ( + - COUNT( * ) ) * - 18 / + 15 + 16 + + CAST( NULL AS SIGNED ) - + 46 * - + 42 AS col0, 18 + CAST( - CASE 37 WHEN + - 94 * 8 + + + 39 * - 46 - - 56 + - 5 THEN + 7 + 62 ELSE NULL END AS DECIMAL )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1900
SELECT ALL + ( + - COUNT ( * ) ) * - 18 / + 15 + 16 + + CAST ( NULL AS INTEGER ) - + 46 * - + 42 AS col0, 18 + CAST ( - CASE 37 WHEN + - 94 * 8 + + + 39 * - 46 - - 56 + - 5 THEN + 7 + 62 ELSE NULL END AS REAL )
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1901
SELECT + ( + MIN( - + 23 ) ) + + 49 AS col0
----
26

skipif mysql # not compatible
query I rowsort label-1901
SELECT + ( + MIN ( - + 23 ) ) + + 49 AS col0
----
26

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1902
SELECT - CAST( NULL AS DECIMAL ) * - - COUNT( * ) / MIN( DISTINCT + 37 ) - - + 90 - + 19 + - COUNT( * ) + - 13 * - 75
----
NULL

skipif mysql # not compatible
query I rowsort label-1902
SELECT - CAST ( NULL AS REAL ) * - - COUNT ( * ) / MIN ( DISTINCT + 37 ) - - + 90 - + 19 + - COUNT ( * ) + - 13 * - 75
----
NULL

query I rowsort
SELECT + 48 + 30 AS col1
----
78

onlyif mysql # DIV for integer division: 
query II rowsort label-1904
SELECT - 54 + + 86, 35 DIV 14 AS col1
----
32
2

skipif mysql # not compatible
query II rowsort label-1904
SELECT - 54 + + 86, 35 / 14 AS col1
----
32
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1905
SELECT ALL + CASE CAST( NULL AS SIGNED ) WHEN 38 THEN + + NULLIF ( + + 18, - + 91 ) WHEN - COUNT( * ) / + + 41 THEN - 22 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1905
SELECT ALL + CASE CAST ( NULL AS INTEGER ) WHEN 38 THEN + + NULLIF ( + + 18, - + 91 ) WHEN - COUNT ( * ) / + + 41 THEN - 22 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1906
SELECT - COUNT( * ) + + 44 - + + 21 AS col1, - 49 + - 17 DIV - 38 - + 15
----
22
-64

skipif mysql # not compatible
query II rowsort label-1906
SELECT - COUNT ( * ) + + 44 - + + 21 AS col1, - 49 + - 17 / - 38 - + 15
----
22
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-1907
SELECT - COUNT( ALL - 25 ) * + - 78 + - 76 + + + ( - 75 ) AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-1907
SELECT - COUNT ( ALL - 25 ) * + - 78 + - 76 + + + ( - 75 ) AS col2
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-1908
SELECT 33 * - 90 + + - COUNT( * ) AS col1
----
-2971

skipif mysql # not compatible
query I rowsort label-1908
SELECT 33 * - 90 + + - COUNT ( * ) AS col1
----
-2971

query I rowsort
SELECT ALL 23 * + + 20 AS col2
----
460

query II rowsort
SELECT ALL ( - + 14 ) AS col0, COALESCE ( - + 17, 2 ) + + 21 AS col1
----
-14
4

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1912
SELECT DISTINCT SUM( - 12 ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-1912
SELECT DISTINCT SUM ( - 12 ) AS col1
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1913
SELECT - 87 * - 99 * - ( + CAST( - - 32 AS SIGNED ) ), 7 + 5 * + 52 AS col0
----
-275616
267

skipif mysql # not compatible
query II rowsort label-1913
SELECT - 87 * - 99 * - ( + CAST ( - - 32 AS INTEGER ) ), 7 + 5 * + 52 AS col0
----
-275616
267

query I rowsort
SELECT ALL COALESCE ( + + NULLIF ( + 18, + 26 ), - 55 + + + 44 - + 16 )
----
18

query I rowsort
SELECT DISTINCT + 52 - - 77
----
129

onlyif mysql # DIV for integer division: 
query I rowsort label-1916
SELECT - + 34 DIV 43 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1916
SELECT - + 34 / 43 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1917
SELECT ALL + 28 * + 62 + + COUNT( * )
----
1737

skipif mysql # not compatible
query I rowsort label-1917
SELECT ALL + 28 * + 62 + + COUNT ( * )
----
1737

query I rowsort
SELECT DISTINCT - - 16 * + ( + 12 ) / - 85 + + - CASE 95 WHEN + - 5 * - - 73 THEN - - 5 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1919
SELECT - 52 - + 22 - 76 + + + 83 DIV + 94 * + 19
----
-150

skipif mysql # not compatible
query I rowsort label-1919
SELECT - 52 - + 22 - 76 + + + 83 / + 94 * + 19
----
-150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1920
SELECT + ( 95 ) * + NULLIF ( + - 7, CAST( NULL AS SIGNED ) ) AS col2
----
-665

skipif mysql # not compatible
query I rowsort label-1920
SELECT + ( 95 ) * + NULLIF ( + - 7, CAST ( NULL AS INTEGER ) ) AS col2
----
-665

onlyif mysql # aggregate syntax: 
query I rowsort label-1921
SELECT 76 * - 97 + + COALESCE ( - 19, 67 * COALESCE ( - 97, - 99 ) * - ( + + COUNT( * ) ), COUNT( * ) * - - 1 + + 98 ) + NULLIF ( MAX( DISTINCT + 50 ), - 83 + + 41 ) + SUM( 96 ) AS col1
----
-7245

skipif mysql # not compatible
query I rowsort label-1921
SELECT 76 * - 97 + + COALESCE ( - 19, 67 * COALESCE ( - 97, - 99 ) * - ( + + COUNT ( * ) ), COUNT ( * ) * - - 1 + + 98 ) + NULLIF ( MAX ( DISTINCT + 50 ), - 83 + + 41 ) + SUM ( 96 ) AS col1
----
-7245

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1922
SELECT + + 7 * 42 + - MIN( + 14 ) + + COUNT( * ) DIV 20 AS col1
----
280

skipif mysql # not compatible
query I rowsort label-1922
SELECT + + 7 * 42 + - MIN ( + 14 ) + + COUNT ( * ) / 20 AS col1
----
280

onlyif mysql # DIV for integer division: 
query I rowsort label-1923
SELECT + 70 DIV + 70 - - 3 + 76
----
80

skipif mysql # not compatible
query I rowsort label-1923
SELECT + 70 / + 70 - - 3 + 76
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1924
SELECT DISTINCT + CAST( NULL AS SIGNED ) / + SUM( + + 42 ) * - + 6 + 56 + 54
----
NULL

skipif mysql # not compatible
query I rowsort label-1924
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + SUM ( + + 42 ) * - + 6 + 56 + 54
----
NULL

query I rowsort
SELECT + ( + ( - 52 ) ) - + + 37 + - 8
----
-97

query I rowsort
SELECT + 84 * + 70 col1
----
5880

onlyif mysql # DIV for integer division: 
query I rowsort label-1927
SELECT ALL 14 DIV - 83 + - 55 + + 91 col0
----
36

skipif mysql # not compatible
query I rowsort label-1927
SELECT ALL 14 / - 83 + - 55 + + 91 col0
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1928
SELECT CAST( - NULLIF ( - 22, - ( 93 ) ) AS SIGNED ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-1928
SELECT CAST ( - NULLIF ( - 22, - ( 93 ) ) AS INTEGER ) AS col0
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1929
SELECT + COALESCE ( + 57, + - 26, + - COUNT( * ) + 94 - - COALESCE ( 41, 66, - 2 ) * - ( - - CASE - 74 WHEN + ( + 95 ) + COUNT( DISTINCT ( 91 ) ) THEN NULL WHEN - ( + 71 ) * - COALESCE ( 39, 1 + AVG ( DISTINCT + 14 ), COALESCE ( + ( 13 ), 39 ) * - 1 ) + - ( 28 ) THEN + ( 86 ) END ) DIV + 28 DIV - MIN( DISTINCT - 22 ) )
----
57

skipif mysql # not compatible
query I rowsort label-1929
SELECT + COALESCE ( + 57, + - 26, + - COUNT ( * ) + 94 - - COALESCE ( 41, 66, - 2 ) * - ( - - CASE - 74 WHEN + ( + 95 ) + COUNT ( DISTINCT ( 91 ) ) THEN NULL WHEN - ( + 71 ) * - COALESCE ( 39, 1 + AVG ( DISTINCT + 14 ), COALESCE ( + ( 13 ), 39 ) * - 1 ) + - ( 28 ) THEN + ( 86 ) END ) / + 28 / - MIN ( DISTINCT - 22 ) )
----
57

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

skipif mysql # not compatible
query I rowsort label-1930
SELECT + CAST ( + + 68 AS INTEGER ) AS col1
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-1931
SELECT + ( - COUNT( * ) ) / + - CASE - 66 WHEN - 40 THEN + - 0 + + 24 WHEN - 6 THEN + 1 WHEN COUNT( * ) * - 0 THEN NULL ELSE NULL END, COUNT( * ) + + 79 * - + 56 AS col2
----
NULL
-4423

skipif mysql # not compatible
query II rowsort label-1931
SELECT + ( - COUNT ( * ) ) / + - CASE - 66 WHEN - 40 THEN + - 0 + + 24 WHEN - 6 THEN + 1 WHEN COUNT ( * ) * - 0 THEN NULL ELSE NULL END, COUNT ( * ) + + 79 * - + 56 AS col2
----
NULL
-4423

onlyif mysql # aggregate syntax: 
query I rowsort label-1932
SELECT ALL + MIN( + 6 ) / - - ( + CASE - 56 WHEN + + COUNT( * ) THEN - 42 + - + 35 WHEN - + 6 THEN NULL END ) * + 58 + - COUNT( * ) + + 79 + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1932
SELECT ALL + MIN ( + 6 ) / - - ( + CASE - 56 WHEN + + COUNT ( * ) THEN - 42 + - + 35 WHEN - + 6 THEN NULL END ) * + 58 + - COUNT ( * ) + + 79 + + COUNT ( * )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1934
SELECT + 18 * CASE - 29 WHEN - NULLIF ( - - 52, MIN( ALL - 77 ) / - + 75 * - - 54 / 16 ) THEN - 20 * + 6 / - 69 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1934
SELECT + 18 * CASE - 29 WHEN - NULLIF ( - - 52, MIN ( ALL - 77 ) / - + 75 * - - 54 / 16 ) THEN - 20 * + 6 / - 69 END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1935
SELECT ALL + 10 * + - 5 DIV - 57 AS col1, - 66 DIV 84
----
0
0

skipif mysql # not compatible
query II rowsort label-1935
SELECT ALL + 10 * + - 5 / - 57 AS col1, - 66 / 84
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1936
SELECT ( + - 79 ) - COUNT( * ) * + - ( - 38 ) AS col0
----
-117

skipif mysql # not compatible
query I rowsort label-1936
SELECT ( + - 79 ) - COUNT ( * ) * + - ( - 38 ) AS col0
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-1937
SELECT COUNT( * ) + - MIN( - 5 )
----
6

skipif mysql # not compatible
query I rowsort label-1937
SELECT COUNT ( * ) + - MIN ( - 5 )
----
6

query II rowsort
SELECT 56 * - - 55 * + 21 AS col1, 15 AS col0
----
64680
15

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1939
SELECT ALL CASE 2 WHEN - COALESCE ( - 72, 14, - 64, CASE + - COALESCE ( + NULLIF ( + - COUNT( ALL - + ( + 53 ) ), + + 39 + - 90 ), + 5 * - CASE - - 45 WHEN + 61 * - COUNT( * ) THEN + COUNT( * ) * 9 END ) WHEN 1 * 8 THEN NULL WHEN 33 - + 69 THEN NULL ELSE 46 END * - COUNT( * ) ) THEN COUNT( * ) WHEN - 12 * 18 THEN NULL WHEN 95 * NULLIF ( + COUNT( * ) * 79, - 60 * 97 ) THEN CAST( NULL AS DECIMAL ) + 14 * 81 ELSE NULL END * 44
----
NULL

skipif mysql # not compatible
query I rowsort label-1939
SELECT ALL CASE 2 WHEN - COALESCE ( - 72, 14, - 64, CASE + - COALESCE ( + NULLIF ( + - COUNT ( ALL - + ( + 53 ) ), + + 39 + - 90 ), + 5 * - CASE - - 45 WHEN + 61 * - COUNT ( * ) THEN + COUNT ( * ) * 9 END ) WHEN 1 * 8 THEN NULL WHEN 33 - + 69 THEN NULL ELSE 46 END * - COUNT ( * ) ) THEN COUNT ( * ) WHEN - 12 * 18 THEN NULL WHEN 95 * NULLIF ( + COUNT ( * ) * 79, - 60 * 97 ) THEN CAST ( NULL AS REAL ) + 14 * 81 ELSE NULL END * 44
----
NULL

query I rowsort
SELECT ALL - 2 - 8
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-1941
SELECT CASE - 13 WHEN - 36 THEN + 58 + - 24 + + 23 END - - - COUNT( * ) - + + 0 * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1941
SELECT CASE - 13 WHEN - 36 THEN + 58 + - 24 + + 23 END - - - COUNT ( * ) - + + 0 * + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1942
SELECT + 70 + + MIN( ALL 79 ), 21 col2
----
149
21

skipif mysql # not compatible
query II rowsort label-1942
SELECT + 70 + + MIN ( ALL 79 ), 21 col2
----
149
21

query II rowsort
SELECT ALL - 4, 37 AS col2
----
-4
37

onlyif mysql # aggregate syntax: 
query I rowsort label-1944
SELECT 50 + CASE + 28 WHEN - - 49 THEN + + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1944
SELECT 50 + CASE + 28 WHEN - - 49 THEN + + COUNT ( * ) END
----
NULL

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

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

query I rowsort
SELECT 40 - 87 + - 5
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-1947
SELECT 43 + COUNT( * ) col2
----
44

skipif mysql # not compatible
query I rowsort label-1947
SELECT 43 + COUNT ( * ) col2
----
44

query I rowsort
SELECT DISTINCT - ( - 64 ) + + ( 46 )
----
110

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

skipif mysql # not compatible
query I rowsort label-1949
SELECT ALL + - 1 + + + ( + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT ALL - 92 + + 6 AS col0
----
-86

query I rowsort
SELECT + 86 + - 67 + - 11 + + + 69
----
77

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1953
SELECT - 43 DIV CAST( + + ( - + COUNT( * ) ) AS SIGNED ) + - CAST( - + AVG ( ALL 96 ) AS SIGNED ) + + 75 * - - 94 + + 85 + - 24 AS col1
----
7250

skipif mysql # not compatible
query I rowsort label-1953
SELECT - 43 / CAST ( + + ( - + COUNT ( * ) ) AS INTEGER ) + - CAST ( - + AVG ( ALL 96 ) AS INTEGER ) + + 75 * - - 94 + + 85 + - 24 AS col1
----
7250

onlyif mysql # DIV for integer division: 
query I rowsort label-1954
SELECT 42 DIV ( 18 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-1954
SELECT 42 / ( 18 ) AS col2
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1955
SELECT ALL - ( - CAST( NULL AS SIGNED ) ) + - 38
----
NULL

skipif mysql # not compatible
query I rowsort label-1955
SELECT ALL - ( - CAST ( NULL AS INTEGER ) ) + - 38
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1956
SELECT 86 + + - 15 * + 90 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 25 * 56 * + 74
----
103600

onlyif mysql # DIV for integer division: 
query II rowsort label-1958
SELECT ALL - 41 DIV - - 91, 97 AS col0
----
0
97

skipif mysql # not compatible
query II rowsort label-1958
SELECT ALL - 41 / - - 91, 97 AS col0
----
0
97

query I rowsort
SELECT DISTINCT - NULLIF ( 32, + 93 ) col0
----
-32

query I rowsort
SELECT 21 + 1 AS col2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-1961
SELECT COUNT( * ) * - NULLIF ( 6, MIN( DISTINCT 48 ) ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-1961
SELECT COUNT ( * ) * - NULLIF ( 6, MIN ( DISTINCT 48 ) ) AS col1
----
-6

query I rowsort
SELECT ALL - ( ( 19 ) ) col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-1963
SELECT DISTINCT 6 - 25 + + + COUNT( * ) + - ( + + 48 ) + - COUNT( * )
----
-67

skipif mysql # not compatible
query I rowsort label-1963
SELECT DISTINCT 6 - 25 + + + COUNT ( * ) + - ( + + 48 ) + - COUNT ( * )
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1964
SELECT COUNT( * ) * - 42 + + - 26 + + 6 / - COALESCE ( + 65, + 4 + + 97 * 37, - - 90 * 63 + COUNT( * ) ) / + + 5 + + 90 + - 63 * + CAST( NULL AS SIGNED ) * - 9 * - + CAST( + 75 AS SIGNED ) * 21 + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-1964
SELECT COUNT ( * ) * - 42 + + - 26 + + 6 / - COALESCE ( + 65, + 4 + + 97 * 37, - - 90 * 63 + COUNT ( * ) ) / + + 5 + + 90 + - 63 * + CAST ( NULL AS INTEGER ) * - 9 * - + CAST ( + 75 AS INTEGER ) * 21 + 4
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1965
SELECT ALL - SUM( 2 )
----
-2

skipif mysql # not compatible
query I rowsort label-1965
SELECT ALL - SUM ( 2 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1966
SELECT 70 * + + 4 + 27 + - COUNT( * ) * 4 AS col0
----
303

skipif mysql # not compatible
query I rowsort label-1966
SELECT 70 * + + 4 + 27 + - COUNT ( * ) * 4 AS col0
----
303

onlyif mysql # aggregate syntax: 
query I rowsort label-1967
SELECT COUNT( * ) * + 97 * + 54 AS col2
----
5238

skipif mysql # not compatible
query I rowsort label-1967
SELECT COUNT ( * ) * + 97 * + 54 AS col2
----
5238

onlyif mysql # aggregate syntax: 
query I rowsort label-1968
SELECT COUNT( * ) + - CASE - ( + COUNT( * ) ) WHEN + 87 THEN NULL WHEN + - 31 THEN + - 27 + - - 57 / + - 52 + + 97 ELSE NULL END + 35 / + + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-1968
SELECT COUNT ( * ) + - CASE - ( + COUNT ( * ) ) WHEN + 87 THEN NULL WHEN + - 31 THEN + - 27 + - - 57 / + - 52 + + 97 ELSE NULL END + 35 / + + 75
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1969
SELECT + CASE 41 WHEN 42 THEN COALESCE ( 87, - + 16 ) * 63 * + CASE + ( - 18 ) WHEN - MAX( ALL 3 ) THEN NULL WHEN - ( 47 ) * - - 36 + 88 - + COUNT( * ) * - 59 THEN NULL WHEN - 0 THEN - 2 * 46 + + COUNT( * ) END WHEN + 22 * + 60 THEN COALESCE ( CASE COALESCE ( 6, ( + SUM( ALL + 66 ) ) * CASE - ( + 12 ) WHEN + 91 THEN 6 + 72 WHEN 27 THEN NULL WHEN ( + 28 ) * + 45 THEN NULL WHEN 3 THEN NULL END + 42 ) WHEN - 14 - 41 * CAST( NULL AS SIGNED ) THEN NULL WHEN - 39 THEN NULL WHEN - 10 THEN + 23 + - 53 * MAX( ALL - 93 + ( + 72 ) ) ELSE NULL END, NULLIF ( COUNT( * ), + 8 + 0 ) / 17, 43 * + 39, CAST( NULL AS SIGNED ) - NULLIF ( + 72, + 88 ) * 85 ) END * + 33 + - ( + 86 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1969
SELECT + CASE 41 WHEN 42 THEN COALESCE ( 87, - + 16 ) * 63 * + CASE + ( - 18 ) WHEN - MAX ( ALL 3 ) THEN NULL WHEN - ( 47 ) * - - 36 + 88 - + COUNT ( * ) * - 59 THEN NULL WHEN - 0 THEN - 2 * 46 + + COUNT ( * ) END WHEN + 22 * + 60 THEN COALESCE ( CASE COALESCE ( 6, ( + SUM ( ALL + 66 ) ) * CASE - ( + 12 ) WHEN + 91 THEN 6 + 72 WHEN 27 THEN NULL WHEN ( + 28 ) * + 45 THEN NULL WHEN 3 THEN NULL END + 42 ) WHEN - 14 - 41 * CAST ( NULL AS INTEGER ) THEN NULL WHEN - 39 THEN NULL WHEN - 10 THEN + 23 + - 53 * MAX ( ALL - 93 + ( + 72 ) ) ELSE NULL END, NULLIF ( COUNT ( * ), + 8 + 0 ) / 17, 43 * + 39, CAST ( NULL AS INTEGER ) - NULLIF ( + 72, + 88 ) * 85 ) END * + 33 + - ( + 86 )
----
NULL

query I rowsort
SELECT 40 * ( - 80 )
----
-3200

query I rowsort
SELECT 40 + + 74 * + 37 AS col0
----
2778

onlyif mysql # aggregate syntax: 
query I rowsort label-1972
SELECT ALL ( + ( 74 ) ) * 91 + - + MAX( ALL + - 49 )
----
6783

skipif mysql # not compatible
query I rowsort label-1972
SELECT ALL ( + ( 74 ) ) * 91 + - + MAX ( ALL + - 49 )
----
6783

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1973
SELECT COALESCE ( COUNT( * ), - 42 ) DIV 1
----
1

skipif mysql # not compatible
query I rowsort label-1973
SELECT COALESCE ( COUNT ( * ), - 42 ) / 1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1974
SELECT ( 22 ) + - MIN( - 16 )
----
38

skipif mysql # not compatible
query I rowsort label-1974
SELECT ( 22 ) + - MIN ( - 16 )
----
38

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1976
SELECT - NULLIF ( - 95, + 90 * + MIN( ALL + 39 ) + + 41 + - + 66 * + 80 ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-1976
SELECT - NULLIF ( - 95, + 90 * + MIN ( ALL + 39 ) + + 41 + - + 66 * + 80 ) AS col0
----
95

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1978
SELECT ALL - COUNT( + 94 ) + - 50
----
-51

skipif mysql # not compatible
query I rowsort label-1978
SELECT ALL - COUNT ( + 94 ) + - 50
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1979
SELECT DISTINCT - - 37 + + - 20 * + CAST( + - 46 AS SIGNED ) AS col0, 58 * ( - 29 ) * COUNT( * ) + + - COALESCE ( + - ( - 59 ), + 4 ) col1
----
957
-1741

skipif mysql # not compatible
query II rowsort label-1979
SELECT DISTINCT - - 37 + + - 20 * + CAST ( + - 46 AS INTEGER ) AS col0, 58 * ( - 29 ) * COUNT ( * ) + + - COALESCE ( + - ( - 59 ), + 4 ) col1
----
957
-1741

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1980
SELECT 65 + - CAST( 4 AS SIGNED ) DIV - ( - - SUM( + 51 ) )
----
65

skipif mysql # not compatible
query I rowsort label-1980
SELECT 65 + - CAST ( 4 AS INTEGER ) / - ( - - SUM ( + 51 ) )
----
65

query I rowsort
SELECT DISTINCT - 94 + + - 27
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-1982
SELECT 26 * + - MIN( - + 71 )
----
1846

skipif mysql # not compatible
query I rowsort label-1982
SELECT 26 * + - MIN ( - + 71 )
----
1846

onlyif mysql # aggregate syntax: 
query I rowsort label-1983
SELECT ALL CASE + 13 WHEN + + 86 THEN + + 77 / ( - 19 ) + - NULLIF ( + 4, + - MIN( ALL + 41 ) + - 97 ) * - - 63 WHEN - + 49 + + 89 + + COUNT( * ) THEN NULL END + + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-1983
SELECT ALL CASE + 13 WHEN + + 86 THEN + + 77 / ( - 19 ) + - NULLIF ( + 4, + - MIN ( ALL + 41 ) + - 97 ) * - - 63 WHEN - + 49 + + 89 + + COUNT ( * ) THEN NULL END + + 53
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1984
SELECT NULLIF ( 84, - 60 + ( - COUNT( * ) ) + - - COALESCE ( + + COUNT( * ), + + ( 39 ) * - MAX( - + 65 ) + - COUNT( DISTINCT + 28 ), + COUNT( * ) ) + + - 64 + + COUNT( * ) * - - 27 ) - + 15 AS col1
----
69

skipif mysql # not compatible
query I rowsort label-1984
SELECT NULLIF ( 84, - 60 + ( - COUNT ( * ) ) + - - COALESCE ( + + COUNT ( * ), + + ( 39 ) * - MAX ( - + 65 ) + - COUNT ( DISTINCT + 28 ), + COUNT ( * ) ) + + - 64 + + COUNT ( * ) * - - 27 ) - + 15 AS col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-1985
SELECT 44 * - MIN( ALL NULLIF ( + 88, - 61 ) )
----
-3872

skipif mysql # not compatible
query I rowsort label-1985
SELECT 44 * - MIN ( ALL NULLIF ( + 88, - 61 ) )
----
-3872

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1986
SELECT CASE + CASE 19 WHEN 14 THEN CAST( + + 91 AS SIGNED ) END WHEN + CASE WHEN NOT ( NULL IS NOT NULL ) THEN + 51 ELSE NULL END / + + 62 THEN NULL WHEN + + 37 / SUM( + - 77 ) THEN + + 5 * + + MIN( 31 ) ELSE NULL END - 23 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1986
SELECT CASE + CASE 19 WHEN 14 THEN CAST ( + + 91 AS INTEGER ) END WHEN + CASE WHEN NOT ( NULL IS NOT NULL ) THEN + 51 ELSE NULL END / + + 62 THEN NULL WHEN + + 37 / SUM ( + - 77 ) THEN + + 5 * + + MIN ( 31 ) ELSE NULL END - 23 col0
----
NULL

query II rowsort
SELECT 94 AS col2, + 79 + + 74 AS col2
----
94
153

query I rowsort
SELECT 34 * 62 AS col1
----
2108

onlyif mysql # aggregate syntax: 
query I rowsort label-1989
SELECT DISTINCT + MIN( DISTINCT 43 ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-1989
SELECT DISTINCT + MIN ( DISTINCT 43 ) AS col1
----
43

query I rowsort
SELECT ALL - 38 * + 77 AS col1
----
-2926

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1992
SELECT - 41 DIV - 58 * + COUNT( * ) * + + 55
----
0

skipif mysql # not compatible
query I rowsort label-1992
SELECT - 41 / - 58 * + COUNT ( * ) * + + 55
----
0

query I rowsort
SELECT - 47 * - 90
----
4230

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1994
SELECT - COALESCE ( ( - 35 ), + SUM( - 25 ) DIV 18 + - + 79 ) * + 98 * 76
----
260680

skipif mysql # not compatible
query I rowsort label-1994
SELECT - COALESCE ( ( - 35 ), + SUM ( - 25 ) / 18 + - + 79 ) * + 98 * 76
----
260680

query I rowsort
SELECT ALL + NULLIF ( 23, 95 + + 28 ) AS col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1996
SELECT DISTINCT + MAX( + COALESCE ( - 6, + ( - + 43 ) + + 48 ) ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-1996
SELECT DISTINCT + MAX ( + COALESCE ( - 6, + ( - + 43 ) + + 48 ) ) AS col0
----
-6

query II rowsort
SELECT ALL + 11 AS col2, + 29 col2
----
11
29

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1998
SELECT + + 72 * 20 * CAST( NULL AS DECIMAL ) * - 40
----
NULL

skipif mysql # not compatible
query I rowsort label-1998
SELECT + + 72 * 20 * CAST ( NULL AS REAL ) * - 40
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1999
SELECT - + CAST( - 23 AS SIGNED ) + - + 55 - + 87 + ( 73 ) DIV + 99 * 7 AS col2
----
-119

skipif mysql # not compatible
query I rowsort label-1999
SELECT - + CAST ( - 23 AS INTEGER ) + - + 55 - + 87 + ( 73 ) / + 99 * 7 AS col2
----
-119

query I rowsort
SELECT DISTINCT - 50 * 73
----
-3650

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2001
SELECT + 39 * COUNT( * ) + + 54 + - + 11 DIV - 95 AS col1, CASE + + 55 WHEN - - MAX( - 61 ) THEN - + 81 ELSE NULL END
----
93
NULL

skipif mysql # not compatible
query II rowsort label-2001
SELECT + 39 * COUNT ( * ) + + 54 + - + 11 / - 95 AS col1, CASE + + 55 WHEN - - MAX ( - 61 ) THEN - + 81 ELSE NULL END
----
93
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2002
SELECT ALL + 17 * + ( NULLIF ( 46, - COUNT( - 43 ) ) ) AS col1, 8 + + 2 AS col0
----
782
10

skipif mysql # not compatible
query II rowsort label-2002
SELECT ALL + 17 * + ( NULLIF ( 46, - COUNT ( - 43 ) ) ) AS col1, 8 + + 2 AS col0
----
782
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2003
SELECT - + 11 + 22 * - COUNT( * ) * + 1 + - + MAX( + 86 ) AS col0
----
-119

skipif mysql # not compatible
query I rowsort label-2003
SELECT - + 11 + 22 * - COUNT ( * ) * + 1 + - + MAX ( + 86 ) AS col0
----
-119

query I rowsort
SELECT + 88 * - 20 AS col0
----
-1760

query I rowsort
SELECT ALL 71 + - 8 AS col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2006
SELECT + COUNT( * ) - 3 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-2006
SELECT + COUNT ( * ) - 3 AS col0
----
-2

query I rowsort
SELECT ALL - 56 + 5
----
-51

query I rowsort
SELECT + 54 - + 75
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2009
SELECT ALL - CAST( NULL AS SIGNED ) / 46
----
NULL

skipif mysql # not compatible
query I rowsort label-2009
SELECT ALL - CAST ( NULL AS INTEGER ) / 46
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2010
SELECT ALL 98 + + COALESCE ( ( NULLIF ( + - 98, - + 95 ) ), - 27 ) + - + COUNT( * ) + - 96 * ( - 65 ) * - 63 * + 42 AS col2, + 73
----
-16511041
73

skipif mysql # not compatible
query II rowsort label-2010
SELECT ALL 98 + + COALESCE ( ( NULLIF ( + - 98, - + 95 ) ), - 27 ) + - + COUNT ( * ) + - 96 * ( - 65 ) * - 63 * + 42 AS col2, + 73
----
-16511041
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2011
SELECT + SUM( ALL 45 ) + NULLIF ( + 77, - 56 + - 86 ) AS col1
----
122

skipif mysql # not compatible
query I rowsort label-2011
SELECT + SUM ( ALL 45 ) + NULLIF ( + 77, - 56 + - 86 ) AS col1
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-2012
SELECT + + 79 * - COUNT( * ) AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-2012
SELECT + + 79 * - COUNT ( * ) AS col2
----
-79

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2013
SELECT ALL CASE - MIN( DISTINCT 39 ) WHEN + + COUNT( DISTINCT + - 73 ) * CAST( + ( 99 ) AS DECIMAL ) THEN ( - 78 ) * - 19 END * - 33 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2013
SELECT ALL CASE - MIN ( DISTINCT 39 ) WHEN + + COUNT ( DISTINCT + - 73 ) * CAST ( + ( 99 ) AS REAL ) THEN ( - 78 ) * - 19 END * - 33 AS col0
----
NULL

query I rowsort
SELECT + - 4 - - 22
----
18

query I rowsort
SELECT DISTINCT - 40 * - + 91
----
3640

query I rowsort
SELECT - 17 - - 61
----
44

query II rowsort
SELECT DISTINCT 7, - 0 AS col2
----
7
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2018
SELECT ALL 96 - CAST( NULL AS SIGNED ) AS col0, 73 AS col0
----
NULL
73

skipif mysql # not compatible
query II rowsort label-2018
SELECT ALL 96 - CAST ( NULL AS INTEGER ) AS col0, 73 AS col0
----
NULL
73

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

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

query I rowsort
SELECT ALL 7 * - - 92
----
644

query I rowsort
SELECT + 78 + + 70 + + - COALESCE ( 17, 30 ) AS col0
----
131

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

skipif mysql # not compatible
query I rowsort label-2022
SELECT ALL + COUNT ( * ) / + 83 - - 39 AS col1
----
39

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

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

query I rowsort
SELECT + 83 + + 10
----
93

query II rowsort
SELECT DISTINCT + 82 AS col0, 18 AS col0
----
82
18

query I rowsort
SELECT + 59 + - 63
----
-4

query II rowsort
SELECT + 81 AS col0, + 82
----
81
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2028
SELECT 79 * + 53 + - - SUM( ALL - 81 ) - + - 84 + + 47 * CAST( + + 97 AS SIGNED )
----
8749

skipif mysql # not compatible
query I rowsort label-2028
SELECT 79 * + 53 + - - SUM ( ALL - 81 ) - + - 84 + + 47 * CAST ( + + 97 AS INTEGER )
----
8749

query I rowsort
SELECT ALL - 6 * + 13
----
-78

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

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

query I rowsort
SELECT - 63 * - 5 * + 52 + - 19 + 1
----
16362

onlyif mysql # DIV for integer division: 
query I rowsort label-2032
SELECT - 88 DIV - 15
----
5

skipif mysql # not compatible
query I rowsort label-2032
SELECT - 88 / - 15
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2033
SELECT + 98 col1, CAST( + - 32 AS SIGNED )
----
98
-32

skipif mysql # not compatible
query II rowsort label-2033
SELECT + 98 col1, CAST ( + - 32 AS INTEGER )
----
98
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2034
SELECT ALL + 30 AS col1, COUNT( ALL + CAST( NULL AS SIGNED ) ) * - + COUNT( * ) - - 92
----
30
92

skipif mysql # not compatible
query II rowsort label-2034
SELECT ALL + 30 AS col1, COUNT ( ALL + CAST ( NULL AS INTEGER ) ) * - + COUNT ( * ) - - 92
----
30
92

query I rowsort
SELECT ALL + 89 * - - 26
----
2314

onlyif mysql # DIV for integer division: 
query I rowsort label-2036
SELECT + 52 DIV + 57 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2036
SELECT + 52 / + 57 AS col1
----
0

query I rowsort
SELECT - + 26 * 38 + - 67 AS col1
----
-1055

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2038
SELECT ALL - 6 * + 58 * + + ( 91 ) + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2038
SELECT ALL - 6 * + 58 * + + ( 91 ) + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2039
SELECT - 2 DIV 27 * + - 79
----
0

skipif mysql # not compatible
query I rowsort label-2039
SELECT - 2 / 27 * + - 79
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2040
SELECT - CASE + - 22 WHEN - - 88 - + 42 THEN NULL WHEN + MIN( + 47 ) * NULLIF ( - 81, + 24 * 26 * 63 - + 66 - 17 ) - 70 THEN - 41 + 2 + - - COUNT( * ) END + - 71 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2040
SELECT - CASE + - 22 WHEN - - 88 - + 42 THEN NULL WHEN + MIN ( + 47 ) * NULLIF ( - 81, + 24 * 26 * 63 - + 66 - 17 ) - 70 THEN - 41 + 2 + - - COUNT ( * ) END + - 71 AS col1
----
NULL

query II rowsort
SELECT + 79 AS col2, 73 AS col2
----
79
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2042
SELECT DISTINCT 65 * COUNT( * ) + - + 53 * - COALESCE ( - COUNT( * ), - CASE - 91 WHEN 67 THEN ( - 84 ) WHEN + NULLIF ( 61, - 23 ) THEN 14 WHEN - + ( + 83 ) THEN NULL END ) * - - CAST( NULL AS SIGNED ) * - 46 / + 28 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2042
SELECT DISTINCT 65 * COUNT ( * ) + - + 53 * - COALESCE ( - COUNT ( * ), - CASE - 91 WHEN 67 THEN ( - 84 ) WHEN + NULLIF ( 61, - 23 ) THEN 14 WHEN - + ( + 83 ) THEN NULL END ) * - - CAST ( NULL AS INTEGER ) * - 46 / + 28 AS col1
----
NULL

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

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

query I rowsort
SELECT - - 99 + + 80 + - 96 AS col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2045
SELECT ALL - 44 * - 42 * + COUNT( * ) AS col2
----
1848

skipif mysql # not compatible
query I rowsort label-2045
SELECT ALL - 44 * - 42 * + COUNT ( * ) AS col2
----
1848

onlyif mysql # aggregate syntax: 
query I rowsort label-2046
SELECT - NULLIF ( - - ( - 82 ), + 14 ) * + COUNT( * ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-2046
SELECT - NULLIF ( - - ( - 82 ), + 14 ) * + COUNT ( * ) AS col1
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-2047
SELECT DISTINCT - 15 AS col0, + COUNT( * ) AS col1
----
-15
1

skipif mysql # not compatible
query II rowsort label-2047
SELECT DISTINCT - 15 AS col0, + COUNT ( * ) AS col1
----
-15
1

query I rowsort
SELECT ALL 71 - - + 19
----
90

query I rowsort
SELECT 31 + - 94 - + - ( - 67 ) AS col2
----
-130

onlyif mysql # DIV for integer division: 
query I rowsort label-2050
SELECT 5 DIV + 79 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2050
SELECT 5 / + 79 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2051
SELECT COALESCE ( 61, 97 * + - COUNT( * ) * + 57 ) * - COUNT( * )
----
-61

skipif mysql # not compatible
query I rowsort label-2051
SELECT COALESCE ( 61, 97 * + - COUNT ( * ) * + 57 ) * - COUNT ( * )
----
-61

query I rowsort
SELECT 14 - + ( 32 )
----
-18

query I rowsort
SELECT DISTINCT ( + 32 ) * 15 + + - 24 + - 68 * + 46 + - + 56 + + 96
----
-2632

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2054
SELECT COUNT( * ) - + ( - COALESCE ( + - COALESCE ( - 34, + 9 ), 54 * - CAST( + 34 AS SIGNED ) + 38, MIN( - - 83 ) * + 42 + + 97 * + 50 ) )
----
35

skipif mysql # not compatible
query I rowsort label-2054
SELECT COUNT ( * ) - + ( - COALESCE ( + - COALESCE ( - 34, + 9 ), 54 * - CAST ( + 34 AS INTEGER ) + 38, MIN ( - - 83 ) * + 42 + + 97 * + 50 ) )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2055
SELECT NULLIF ( 29, + COUNT( * ) ) * + 29 * - COUNT( * ) AS col1
----
-841

skipif mysql # not compatible
query I rowsort label-2055
SELECT NULLIF ( 29, + COUNT ( * ) ) * + 29 * - COUNT ( * ) AS col1
----
-841

onlyif mysql # aggregate syntax: 
query I rowsort label-2056
SELECT DISTINCT 47 * + 19 * + COUNT( * ) AS col2
----
893

skipif mysql # not compatible
query I rowsort label-2056
SELECT DISTINCT 47 * + 19 * + COUNT ( * ) AS col2
----
893

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2058
SELECT COUNT( - ( + 58 ) ) * + + 66
----
66

skipif mysql # not compatible
query I rowsort label-2058
SELECT COUNT ( - ( + 58 ) ) * + + 66
----
66

query I rowsort
SELECT ALL 40 + - ( + - 63 ) AS col1
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-2060
SELECT ALL - 58 + - - COUNT( * ) * 58 AS col1
----
0

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

query I rowsort
SELECT ALL + 0 * - 66 * - 60 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2062
SELECT ALL + 89 + - - CAST( 89 AS SIGNED )
----
178

skipif mysql # not compatible
query I rowsort label-2062
SELECT ALL + 89 + - - CAST ( 89 AS INTEGER )
----
178

onlyif mysql # aggregate syntax: 
query I rowsort label-2063
SELECT ALL COUNT( ALL - 99 ) + + 66
----
67

skipif mysql # not compatible
query I rowsort label-2063
SELECT ALL COUNT ( ALL - 99 ) + + 66
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2064
SELECT - CAST( NULL AS SIGNED ) / + 60 / ( + 46 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2064
SELECT - CAST ( NULL AS INTEGER ) / + 60 / ( + 46 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2065
SELECT 73 + + 20 + - COUNT( * ) + + 20
----
112

skipif mysql # not compatible
query I rowsort label-2065
SELECT 73 + + 20 + - COUNT ( * ) + + 20
----
112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2066
SELECT DISTINCT + 6 * + COALESCE ( - 10, - 35 * - NULLIF ( + 86, 73 ) ) / + + CAST( NULL AS SIGNED ) * - COUNT( * ) * 89 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2066
SELECT DISTINCT + 6 * + COALESCE ( - 10, - 35 * - NULLIF ( + 86, 73 ) ) / + + CAST ( NULL AS INTEGER ) * - COUNT ( * ) * 89 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2067
SELECT - 89 + + SUM( DISTINCT - 73 ) + + NULLIF ( - COUNT( * ), + COUNT( * ) ) * - ( - 28 )
----
-190

skipif mysql # not compatible
query I rowsort label-2067
SELECT - 89 + + SUM ( DISTINCT - 73 ) + + NULLIF ( - COUNT ( * ), + COUNT ( * ) ) * - ( - 28 )
----
-190

onlyif mysql # DIV for integer division: 
query I rowsort label-2068
SELECT + - ( - - 4 ) * 74 DIV + 5 + 33 - + 35
----
-61

skipif mysql # not compatible
query I rowsort label-2068
SELECT + - ( - - 4 ) * 74 / + 5 + 33 - + 35
----
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-2069
SELECT + 72 DIV + 85 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2069
SELECT + 72 / + 85 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2070
SELECT + COUNT( * ) * + 22 AS col2
----
22

skipif mysql # not compatible
query I rowsort label-2070
SELECT + COUNT ( * ) * + 22 AS col2
----
22

query I rowsort
SELECT 12 + - NULLIF ( 9, + 2 )
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2072
SELECT DISTINCT + - 25 DIV - 44 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2072
SELECT DISTINCT + - 25 / - 44 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2073
SELECT + COUNT( * ) - - 84
----
85

skipif mysql # not compatible
query I rowsort label-2073
SELECT + COUNT ( * ) - - 84
----
85

query I rowsort
SELECT 34 + - 49 + - + ( 96 ) AS col0
----
-111

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-2075
SELECT ALL 12 col1, - 89 DIV + ( - + 9 ), 10 * - COUNT( ALL + NULLIF ( 42, + 3 + - 83 ) ) * + + ( + 44 ) * + COALESCE ( + 37, - COUNT( * ) ) + - 36 AS col0
----
12
9
-16316

skipif mysql # not compatible
query III rowsort label-2075
SELECT ALL 12 col1, - 89 / + ( - + 9 ), 10 * - COUNT ( ALL + NULLIF ( 42, + 3 + - 83 ) ) * + + ( + 44 ) * + COALESCE ( + 37, - COUNT ( * ) ) + - 36 AS col0
----
12
9
-16316

onlyif mysql # aggregate syntax: 
query I rowsort label-2076
SELECT 14 + MIN( DISTINCT - 8 ) * - 49 * 23
----
9030

skipif mysql # not compatible
query I rowsort label-2076
SELECT 14 + MIN ( DISTINCT - 8 ) * - 49 * 23
----
9030

query II rowsort
SELECT 24 + 19 + + + 93 + - 4 AS col0, + 33
----
132
33

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

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

query I rowsort
SELECT 33 + 72 * + 34 * 71
----
173841

onlyif mysql # DIV for integer division: 
query I rowsort label-2080
SELECT 40 DIV - 73 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2080
SELECT 40 / - 73 AS col2
----
0

query I rowsort
SELECT ALL + 16 * + + 74
----
1184

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2082
SELECT ALL - ( 58 ) + + COUNT( DISTINCT CAST( 6 AS DECIMAL ) )
----
-57

skipif mysql # not compatible
query I rowsort label-2082
SELECT ALL - ( 58 ) + + COUNT ( DISTINCT CAST ( 6 AS REAL ) )
----
-57

query I rowsort
SELECT ALL 0 + 64
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2084
SELECT ALL COUNT( DISTINCT + ( + 70 ) )
----
1

skipif mysql # not compatible
query I rowsort label-2084
SELECT ALL COUNT ( DISTINCT + ( + 70 ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2085
SELECT ALL 48 * 95 + COALESCE ( NULLIF ( + 74, + 83 ), - 76 * - 13 + + - COUNT( * ) - + 43 DIV + MIN( CAST( + 41 AS SIGNED ) ) )
----
4634

skipif mysql # not compatible
query I rowsort label-2085
SELECT ALL 48 * 95 + COALESCE ( NULLIF ( + 74, + 83 ), - 76 * - 13 + + - COUNT ( * ) - + 43 / + MIN ( CAST ( + 41 AS INTEGER ) ) )
----
4634

query I rowsort
SELECT 46 + - 6 * + 0 * - CASE - 98 WHEN - + 11 / - + 74 THEN + 50 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2087
SELECT DISTINCT 91 * 71 + - 67 + + - NULLIF ( + COALESCE ( 24, - - 1 * + 94 + 30 DIV - 78 + 16 + - 74 + + 5 + - 84 * + + 44 * + COUNT( * ), - 90 * - 64, + - 78 - - + CAST( NULL AS SIGNED ) * + COALESCE ( ( + + 29 ), 50 + 73 * + 38 ) ), COUNT( * ) )
----
6370

skipif mysql # not compatible
query I rowsort label-2087
SELECT DISTINCT 91 * 71 + - 67 + + - NULLIF ( + COALESCE ( 24, - - 1 * + 94 + 30 / - 78 + 16 + - 74 + + 5 + - 84 * + + 44 * + COUNT ( * ), - 90 * - 64, + - 78 - - + CAST ( NULL AS INTEGER ) * + COALESCE ( ( + + 29 ), 50 + 73 * + 38 ) ), COUNT ( * ) )
----
6370

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

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

query I rowsort
SELECT ALL + 29 * + + 79 * - - 30 AS col2
----
68730

query I rowsort
SELECT 9 + - COALESCE ( + 57, - + 74 ) + 78 AS col1
----
30

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

skipif mysql # not compatible
query II rowsort label-2091
SELECT + + COUNT ( * ) AS col0, 85 + - - COUNT ( * )
----
1
86

query I rowsort
SELECT DISTINCT - ( - + 19 )
----
19

query I rowsort
SELECT 88 * + - 16 * + - 20 AS col2
----
28160

query II rowsort
SELECT + 70 + + 72 + + - 46 AS col2, 45 col1
----
96
45

query II rowsort
SELECT 77 AS col1, - CASE 71 WHEN - 45 THEN - 76 END
----
77
NULL

query II rowsort
SELECT NULLIF ( 2, 13 ) AS col2, - 56 * 20 col0
----
2
-1120

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

skipif mysql # not compatible
query I rowsort label-2097
SELECT ALL COUNT ( * ) * + - 15 AS col0
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-2098
SELECT - 31 * 89 * + - MIN( + 67 ), - COUNT( * ) AS col1
----
184853
-1

skipif mysql # not compatible
query II rowsort label-2098
SELECT - 31 * 89 * + - MIN ( + 67 ), - COUNT ( * ) AS col1
----
184853
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2099
SELECT ALL COUNT( - 21 )
----
1

skipif mysql # not compatible
query I rowsort label-2099
SELECT ALL COUNT ( - 21 )
----
1

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2102
SELECT DISTINCT 36 + 85 * + 95 + + - COALESCE ( - 86, - + 10 * - 7 + + COUNT( * ) + - 99 + + 56 DIV + 97 * + 35 - - 73 ) DIV COUNT( * ) col2
----
8197

skipif mysql # not compatible
query I rowsort label-2102
SELECT DISTINCT 36 + 85 * + 95 + + - COALESCE ( - 86, - + 10 * - 7 + + COUNT ( * ) + - 99 + + 56 / + 97 * + 35 - - 73 ) / COUNT ( * ) col2
----
8197

query I rowsort
SELECT - NULLIF ( - - 95, - - 27 + + 54 ) + + 16 AS col2
----
-79

onlyif mysql # DIV for integer division: 
query II rowsort label-2104
SELECT DISTINCT + 75 + - - 87 col1, COALESCE ( + - 96, 42 DIV + 95 ) AS col0
----
162
-96

skipif mysql # not compatible
query II rowsort label-2104
SELECT DISTINCT + 75 + - - 87 col1, COALESCE ( + - 96, 42 / + 95 ) AS col0
----
162
-96

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

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

query I rowsort
SELECT ALL + 85 + - 42 + 68 col1
----
111

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2107
SELECT DISTINCT - 12 + + + 78 + ( - - 64 ) DIV - MIN( + - 20 ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-2107
SELECT DISTINCT - 12 + + + 78 + ( - - 64 ) / - MIN ( + - 20 ) AS col0
----
69

query I rowsort
SELECT + + 77 col2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2109
SELECT - - 76 - - + 11 * - - 71 + - 6 + - COUNT( * ) AS col0
----
850

skipif mysql # not compatible
query I rowsort label-2109
SELECT - - 76 - - + 11 * - - 71 + - 6 + - COUNT ( * ) AS col0
----
850

query I rowsort
SELECT - 49 * + 92 AS col2
----
-4508

onlyif mysql # DIV for integer division: 
query I rowsort label-2111
SELECT ALL - - 9 DIV + 66
----
0

skipif mysql # not compatible
query I rowsort label-2111
SELECT ALL - - 9 / + 66
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2112
SELECT + + 95 / - - ( + NULLIF ( CAST( NULL AS SIGNED ), - + COUNT( * ) / + - COUNT( + 93 ) - + ( + 3 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2112
SELECT + + 95 / - - ( + NULLIF ( CAST ( NULL AS INTEGER ), - + COUNT ( * ) / + - COUNT ( + 93 ) - + ( + 3 ) ) )
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2114
SELECT ALL - 42 * + - 19 - 49 * + - 72 AS col0, 79 * - 16 * + - CASE 54 WHEN + 18 THEN - - COUNT( * ) WHEN - + 99 + + 26 - - 84 THEN + - 63 END / + 63 + - 52 AS col1
----
4326
NULL

skipif mysql # not compatible
query II rowsort label-2114
SELECT ALL - 42 * + - 19 - 49 * + - 72 AS col0, 79 * - 16 * + - CASE 54 WHEN + 18 THEN - - COUNT ( * ) WHEN - + 99 + + 26 - - 84 THEN + - 63 END / + 63 + - 52 AS col1
----
4326
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2115
SELECT ALL + 57 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2115
SELECT ALL + 57 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2116
SELECT - + MAX( + 12 ) * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2116
SELECT - + MAX ( + 12 ) * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2117
SELECT ALL - + 17 DIV + 2 col2, - 68
----
-8
-68

skipif mysql # not compatible
query II rowsort label-2117
SELECT ALL - + 17 / + 2 col2, - 68
----
-8
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-2118
SELECT ALL COUNT( * ) * - 30 AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-2118
SELECT ALL COUNT ( * ) * - 30 AS col2
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2119
SELECT ALL + + CASE + CAST( NULL AS SIGNED ) WHEN + + 81 THEN - - 81 END, - 25 AS col1
----
NULL
-25

skipif mysql # not compatible
query II rowsort label-2119
SELECT ALL + + CASE + CAST ( NULL AS INTEGER ) WHEN + + 81 THEN - - 81 END, - 25 AS col1
----
NULL
-25

query I rowsort
SELECT ALL 95 * - 50 + ( - ( - 66 ) ) * 42 * - 56
----
-159982

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

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

query I rowsort
SELECT - + 99 + 90
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2123
SELECT + - NULLIF ( + + 55, NULLIF ( - COUNT( * ), + - 38 ) - + SUM( + 11 ) ) + + 76
----
21

skipif mysql # not compatible
query I rowsort label-2123
SELECT + - NULLIF ( + + 55, NULLIF ( - COUNT ( * ), + - 38 ) - + SUM ( + 11 ) ) + + 76
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-2124
SELECT + - NULLIF ( + COALESCE ( - 90, - 11 * - + 65 DIV - + 57 * - + 77, - + 75 ), + - 21 ) - - - 78 + - + 90
----
-78

skipif mysql # not compatible
query I rowsort label-2124
SELECT + - NULLIF ( + COALESCE ( - 90, - 11 * - + 65 / - + 57 * - + 77, - + 75 ), + - 21 ) - - - 78 + - + 90
----
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-2125
SELECT 61 * + 24 + - 81, COUNT( * ) * + + 57 * + - 67 AS col2
----
1383
-3819

skipif mysql # not compatible
query II rowsort label-2125
SELECT 61 * + 24 + - 81, COUNT ( * ) * + + 57 * + - 67 AS col2
----
1383
-3819

query I rowsort
SELECT - NULLIF ( 31, + 14 + - ( - 45 ) ) AS col2
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2127
SELECT ALL - 40 * + - ( + 90 ) + COUNT( * ) / - - 8 * - 10 * ( - - 51 ) * + CAST( NULL AS SIGNED ) * - 86 + + 53 + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-2127
SELECT ALL - 40 * + - ( + 90 ) + COUNT ( * ) / - - 8 * - 10 * ( - - 51 ) * + CAST ( NULL AS INTEGER ) * - 86 + + 53 + 56
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2128
SELECT SUM( 5 ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-2128
SELECT SUM ( 5 ) AS col2
----
5

query I rowsort
SELECT ALL 83 + + 98 + + - 77
----
104

query I rowsort
SELECT + 89 + 85
----
174

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2131
SELECT + CASE + 58 WHEN + - COUNT( * ) THEN NULL WHEN 66 - + 46 THEN - COALESCE ( - ( 84 ), + 57 DIV 21 + + 31 * + ( + - COALESCE ( 79, - COUNT( DISTINCT + 56 ), + 75 DIV + 58 ) ) * 2 ) - 0 WHEN - 69 * - + 59 + - 2 + + 13 THEN NULL ELSE - - ( COALESCE ( ( + 7 ), - 0, ( - 30 ) - COUNT( * ) ) ) END + ( + ( - 55 ) )
----
-48

skipif mysql # not compatible
query I rowsort label-2131
SELECT + CASE + 58 WHEN + - COUNT ( * ) THEN NULL WHEN 66 - + 46 THEN - COALESCE ( - ( 84 ), + 57 / 21 + + 31 * + ( + - COALESCE ( 79, - COUNT ( DISTINCT + 56 ), + 75 / + 58 ) ) * 2 ) - 0 WHEN - 69 * - + 59 + - 2 + + 13 THEN NULL ELSE - - ( COALESCE ( ( + 7 ), - 0, ( - 30 ) - COUNT ( * ) ) ) END + ( + ( - 55 ) )
----
-48

query I rowsort
SELECT DISTINCT 88 + 91 col2
----
179

query I rowsort
SELECT + 53 * 0 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2134
SELECT + COUNT( * ) + - 51 * ( - MAX( DISTINCT + 47 ) )
----
2398

skipif mysql # not compatible
query I rowsort label-2134
SELECT + COUNT ( * ) + - 51 * ( - MAX ( DISTINCT + 47 ) )
----
2398

onlyif mysql # DIV for integer division: 
query I rowsort label-2135
SELECT + 5 + 1 + + 74 DIV 61 + + 65 AS col1
----
72

skipif mysql # not compatible
query I rowsort label-2135
SELECT + 5 + 1 + + 74 / 61 + + 65 AS col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2136
SELECT - COUNT( * ) + NULLIF ( 62, - - ( + + 72 ) + - - 23 / - + 22 )
----
61

skipif mysql # not compatible
query I rowsort label-2136
SELECT - COUNT ( * ) + NULLIF ( 62, - - ( + + 72 ) + - - 23 / - + 22 )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2137
SELECT ALL NULLIF ( + 60, + - COUNT( * ) ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-2137
SELECT ALL NULLIF ( + 60, + - COUNT ( * ) ) AS col0
----
60

query I rowsort
SELECT ALL 87 + + + 35 AS col1
----
122

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2140
SELECT ALL - MAX( DISTINCT 75 ) - + 23 + + - 11 * + 91 AS col1
----
-1099

skipif mysql # not compatible
query I rowsort label-2140
SELECT ALL - MAX ( DISTINCT 75 ) - + 23 + + - 11 * + 91 AS col1
----
-1099

query I rowsort
SELECT - 80 + 39 - + 93
----
-134

query I rowsort
SELECT ALL - 21 * + 92
----
-1932

query I rowsort
SELECT - + CASE 24 WHEN + 42 THEN + 49 ELSE + 84 END
----
-84

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2145
SELECT - CASE + 96 WHEN + - 64 THEN NULL WHEN - ( - 98 ) THEN NULL ELSE NULLIF ( 18, - 19 + + - 33 ) * + 26 + + + 94 + - 28 * - - 88 - - - 93 + + 43 + + COUNT( * ) END AS col0
----
1951

skipif mysql # not compatible
query I rowsort label-2145
SELECT - CASE + 96 WHEN + - 64 THEN NULL WHEN - ( - 98 ) THEN NULL ELSE NULLIF ( 18, - 19 + + - 33 ) * + 26 + + + 94 + - 28 * - - 88 - - - 93 + + 43 + + COUNT ( * ) END AS col0
----
1951

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2146
SELECT + 42 + - CASE - ( 77 ) WHEN - CAST( NULL AS SIGNED ) + - - COALESCE ( + 47, - 57 + - - 61 * - NULLIF ( + COUNT( * ), + - COUNT( * ) * + 71 + 18 + - COUNT( * ) + + 34 * - - 72 - + 52 + - 70 ) ) + + CASE - - 54 WHEN - 96 - 33 + - 93 THEN NULL WHEN ( + 91 ) + - 22 THEN + ( 15 ) - - 42 WHEN 11 + + NULLIF ( - 72 - - NULLIF ( - 8, - 94 ), CAST( COUNT( * ) AS SIGNED ) + 49 ) THEN NULL WHEN 60 THEN NULL ELSE NULL END THEN NULL WHEN 45 THEN NULL ELSE 50 END AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-2146
SELECT + 42 + - CASE - ( 77 ) WHEN - CAST ( NULL AS INTEGER ) + - - COALESCE ( + 47, - 57 + - - 61 * - NULLIF ( + COUNT ( * ), + - COUNT ( * ) * + 71 + 18 + - COUNT ( * ) + + 34 * - - 72 - + 52 + - 70 ) ) + + CASE - - 54 WHEN - 96 - 33 + - 93 THEN NULL WHEN ( + 91 ) + - 22 THEN + ( 15 ) - - 42 WHEN 11 + + NULLIF ( - 72 - - NULLIF ( - 8, - 94 ), CAST ( COUNT ( * ) AS INTEGER ) + 49 ) THEN NULL WHEN 60 THEN NULL ELSE NULL END THEN NULL WHEN 45 THEN NULL ELSE 50 END AS col0
----
-8

query I rowsort
SELECT + - 72 * + - 14 AS col2
----
1008

query I rowsort
SELECT - + 66 * - 82 AS col1
----
5412

query II rowsort
SELECT + 27, 20 AS col2
----
27
20

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

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

query II rowsort
SELECT ALL - + COALESCE ( 46, - 79 ) AS col2, 77 * - 23
----
-46
-1771

query I rowsort
SELECT ALL - 84 * + - 75 AS col2
----
6300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2153
SELECT + 5 + + 15 + + CAST( NULL AS SIGNED ) + + + COALESCE ( 35, 75 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2153
SELECT + 5 + + 15 + + CAST ( NULL AS INTEGER ) + + + COALESCE ( 35, 75 ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2154
SELECT ALL - 45 DIV - 76 * + 89 * + + ( + 28 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2154
SELECT ALL - 45 / - 76 * + 89 * + + ( + 28 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2155
SELECT 39 * - 33 + + 92 + - 47 + + COUNT( DISTINCT - - 82 ) * + 8
----
-1234

skipif mysql # not compatible
query I rowsort label-2155
SELECT 39 * - 33 + + 92 + - 47 + + COUNT ( DISTINCT - - 82 ) * + 8
----
-1234

onlyif mysql # aggregate syntax: 
query II rowsort label-2156
SELECT + + 74 AS col2, COALESCE ( + + COUNT( * ), + + ( ( - 6 ) ) ) + - 97 AS col0
----
74
-96

skipif mysql # not compatible
query II rowsort label-2156
SELECT + + 74 AS col2, COALESCE ( + + COUNT ( * ), + + ( ( - 6 ) ) ) + - 97 AS col0
----
74
-96

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

skipif mysql # not compatible
query II rowsort label-2157
SELECT COUNT ( * ) AS col1, + 5
----
1
5

query II rowsort
SELECT - 12 AS col0, 76 AS col1
----
-12
76

query II rowsort
SELECT 34 AS col0, ( - 79 ) + + ( - 51 ) AS col1
----
34
-130

query I rowsort
SELECT 34 * + 73
----
2482

onlyif mysql # aggregate syntax: 
query I rowsort label-2161
SELECT DISTINCT 42 + + ( - 1 ) + + COUNT( * )
----
42

skipif mysql # not compatible
query I rowsort label-2161
SELECT DISTINCT 42 + + ( - 1 ) + + COUNT ( * )
----
42

query II rowsort
SELECT ALL 14 AS col1, + 23 * 16
----
14
368

query I rowsort
SELECT ALL 47 + - ( - 91 ) AS col2
----
138

query I rowsort
SELECT 49 * 50
----
2450

query I rowsort
SELECT 84 * + 13
----
1092

query I rowsort
SELECT 74 * + 93 AS col0
----
6882

query I rowsort
SELECT ALL CASE 15 WHEN + 3 THEN - 52 END - 36 AS col0
----
NULL

query II rowsort
SELECT ALL 94, + 53 col2
----
94
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2169
SELECT CAST( - NULLIF ( - 56, - - 45 ) AS SIGNED ) + - 89
----
-33

skipif mysql # not compatible
query I rowsort label-2169
SELECT CAST ( - NULLIF ( - 56, - - 45 ) AS INTEGER ) + - 89
----
-33

query II rowsort
SELECT DISTINCT 97, 58 AS col0
----
97
58

query II rowsort
SELECT COALESCE ( 95, - 76 * 95 * - 87 ) * 51 + - 14 AS col0, CASE + 17 WHEN - 11 + + - 24 THEN + 80 ELSE NULL END * + 91 AS col0
----
4831
NULL

query I rowsort
SELECT ALL 75 * 52
----
3900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2173
SELECT COALESCE ( + + 52, + + CASE 69 WHEN + + 0 DIV - + 90 DIV - 69 THEN NULL WHEN + COUNT( * ) THEN - CAST( NULL AS SIGNED ) ELSE NULL END - NULLIF ( + 52, - COUNT( * ) ) - - COUNT( * ) * - SUM( - 52 ) DIV 81 * 83 - - + 3 + 16 * - 37 )
----
52

skipif mysql # not compatible
query I rowsort label-2173
SELECT COALESCE ( + + 52, + + CASE 69 WHEN + + 0 / - + 90 / - 69 THEN NULL WHEN + COUNT ( * ) THEN - CAST ( NULL AS INTEGER ) ELSE NULL END - NULLIF ( + 52, - COUNT ( * ) ) - - COUNT ( * ) * - SUM ( - 52 ) / 81 * 83 - - + 3 + 16 * - 37 )
----
52

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

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

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

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

query I rowsort
SELECT - 40 * - 91
----
3640

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

skipif mysql # not compatible
query I rowsort label-2177
SELECT 84 + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2178
SELECT DISTINCT 28 * - 0 + - 12 - COUNT( * ), 69 col1
----
-13
69

skipif mysql # not compatible
query II rowsort label-2178
SELECT DISTINCT 28 * - 0 + - 12 - COUNT ( * ), 69 col1
----
-13
69

query I rowsort
SELECT DISTINCT 32 * - 27 * 55
----
-47520

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

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

query I rowsort
SELECT ( - 54 ) * + 11
----
-594

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2182
SELECT + + CASE - - COUNT( * ) WHEN 12 - - 98 THEN - - CAST( NULL AS SIGNED ) - SUM( + 67 ) + 26 + + COUNT( * ) WHEN + 65 THEN + 29 + - 31 + - + 94 / 31 * NULLIF ( 23, + + 26 ) * - + COUNT( * ) + 0 ELSE NULL END AS col1, + 84 * 33 AS col2
----
NULL
2772

skipif mysql # not compatible
query II rowsort label-2182
SELECT + + CASE - - COUNT ( * ) WHEN 12 - - 98 THEN - - CAST ( NULL AS INTEGER ) - SUM ( + 67 ) + 26 + + COUNT ( * ) WHEN + 65 THEN + 29 + - 31 + - + 94 / 31 * NULLIF ( 23, + + 26 ) * - + COUNT ( * ) + 0 ELSE NULL END AS col1, + 84 * 33 AS col2
----
NULL
2772

onlyif mysql # aggregate syntax: 
query I rowsort label-2183
SELECT COALESCE ( + MAX( - 88 ), 9 * - 51 + - COUNT( * ) * + 64 ) AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-2183
SELECT COALESCE ( + MAX ( - 88 ), 9 * - 51 + - COUNT ( * ) * + 64 ) AS col0
----
-88

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

query I rowsort
SELECT 1 * + 21 + 56 * - 41 * - 76 * - 6
----
-1046955

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2186
SELECT - COUNT( ALL + 37 ) * - 99 DIV + COUNT( * )
----
99

skipif mysql # not compatible
query I rowsort label-2186
SELECT - COUNT ( ALL + 37 ) * - 99 / + COUNT ( * )
----
99

query I rowsort
SELECT DISTINCT - + ( - 65 ) * + 15
----
975

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2188
SELECT + COUNT( * ) AS col1, - 66 DIV + COUNT( * )
----
1
-66

skipif mysql # not compatible
query II rowsort label-2188
SELECT + COUNT ( * ) AS col1, - 66 / + COUNT ( * )
----
1
-66

query I rowsort
SELECT ( + 71 ) - - - 94
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-2190
SELECT 50 - - + 38 * - - SUM( DISTINCT + 42 ) * + 63 * + 50 + - 97 + + 16 + 6 + - 74 + 48 AS col2
----
5027349

skipif mysql # not compatible
query I rowsort label-2190
SELECT 50 - - + 38 * - - SUM ( DISTINCT + 42 ) * + 63 * + 50 + - 97 + + 16 + 6 + - 74 + 48 AS col2
----
5027349

query I rowsort
SELECT DISTINCT - 16 + COALESCE ( + 46, - - 42 ) AS col0
----
30

query I rowsort
SELECT ALL + ( + - 17 ) + - ( - 12 )
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2193
SELECT ALL - 98 + - 80 - COUNT( * ) DIV + 94 AS col2
----
-178

skipif mysql # not compatible
query I rowsort label-2193
SELECT ALL - 98 + - 80 - COUNT ( * ) / + 94 AS col2
----
-178

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2194
SELECT ALL + 26 / - - CAST( NULL AS SIGNED ) / 2 * + 19 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2194
SELECT ALL + 26 / - - CAST ( NULL AS INTEGER ) / 2 * + 19 col1
----
NULL

query I rowsort
SELECT 68 + - 2 * - 83
----
234

onlyif mysql # aggregate syntax: 
query I rowsort label-2196
SELECT ALL COUNT( ALL 99 ) - + 48 - - 69 * 30
----
2023

skipif mysql # not compatible
query I rowsort label-2196
SELECT ALL COUNT ( ALL 99 ) - + 48 - - 69 * 30
----
2023

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2197
SELECT ALL + 26 DIV + 73, - 11 + + COALESCE ( - 48, + COUNT( + - 75 ) * - 74 + 93 - - 15 ) - - 48 AS col1
----
0
-11

skipif mysql # not compatible
query II rowsort label-2197
SELECT ALL + 26 / + 73, - 11 + + COALESCE ( - 48, + COUNT ( + - 75 ) * - 74 + 93 - - 15 ) - - 48 AS col1
----
0
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2198
SELECT ALL 87 * + CAST( - 86 AS SIGNED ), - MIN( 24 ) AS col0
----
-7482
-24

skipif mysql # not compatible
query II rowsort label-2198
SELECT ALL 87 * + CAST ( - 86 AS INTEGER ), - MIN ( 24 ) AS col0
----
-7482
-24

query I rowsort
SELECT DISTINCT - 54 * + 48 AS col1
----
-2592

query I rowsort
SELECT ALL + 99 - 9 AS col1
----
90

query II rowsort
SELECT 74 * 73 col1, 68 * - 72 AS col1
----
5402
-4896

onlyif mysql # aggregate syntax: 
query I rowsort label-2202
SELECT COUNT( * ) * + 86 col2
----
86

skipif mysql # not compatible
query I rowsort label-2202
SELECT COUNT ( * ) * + 86 col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-2203
SELECT ALL SUM( ALL - 68 )
----
-68

skipif mysql # not compatible
query I rowsort label-2203
SELECT ALL SUM ( ALL - 68 )
----
-68

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

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

query I rowsort
SELECT 68 + + + NULLIF ( + 35, - 87 * - 97 ) + 33 * - 42 AS col1
----
-1283

query I rowsort
SELECT + 38 * + 22 * 9
----
7524

query II rowsort
SELECT ALL - ( - + 48 ), 66 + + 63 - 67 AS col0
----
48
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2208
SELECT DISTINCT + 0 + 25 + - + 49 * + + COUNT( * )
----
-24

skipif mysql # not compatible
query I rowsort label-2208
SELECT DISTINCT + 0 + 25 + - + 49 * + + COUNT ( * )
----
-24

query II rowsort
SELECT ALL 4 * - - 22 AS col2, + 44
----
88
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2210
SELECT + ( 95 ) * + SUM( DISTINCT - 1 ) - + 32 AS col1, COALESCE ( + ( - ( + AVG ( - 27 ) ) ), - + 56 ) + CAST( NULL AS SIGNED ) + - 7 + ( + 38 ) + + 60 / - NULLIF ( + + 47, - COUNT( * ) * - 54 ) AS col2
----
-127
NULL

skipif mysql # not compatible
query II rowsort label-2210
SELECT + ( 95 ) * + SUM ( DISTINCT - 1 ) - + 32 AS col1, COALESCE ( + ( - ( + AVG ( - 27 ) ) ), - + 56 ) + CAST ( NULL AS INTEGER ) + - 7 + ( + 38 ) + + 60 / - NULLIF ( + + 47, - COUNT ( * ) * - 54 ) AS col2
----
-127
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2211
SELECT 37 * 61 * 10 * + 13 + COUNT( * ) AS col0
----
293411

skipif mysql # not compatible
query I rowsort label-2211
SELECT 37 * 61 * 10 * + 13 + COUNT ( * ) AS col0
----
293411

query I rowsort
SELECT - + 32 - 46 AS col2
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2213
SELECT ALL 22 * 48 - + 46 * + CAST( NULL AS SIGNED ) + - 99 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2213
SELECT ALL 22 * 48 - + 46 * + CAST ( NULL AS INTEGER ) + - 99 AS col1
----
NULL

query I rowsort
SELECT ALL + 82 * 91
----
7462

onlyif mysql # aggregate syntax: 
query II rowsort label-2215
SELECT + + COUNT( * ) * - + 6 * - 91 * + NULLIF ( 51, - 86 + + + 75 * 20 * 99 * COUNT( * ) ), - 96 AS col0
----
27846
-96

skipif mysql # not compatible
query II rowsort label-2215
SELECT + + COUNT ( * ) * - + 6 * - 91 * + NULLIF ( 51, - 86 + + + 75 * 20 * 99 * COUNT ( * ) ), - 96 AS col0
----
27846
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-2216
SELECT ALL - 2 DIV 1
----
-2

skipif mysql # not compatible
query I rowsort label-2216
SELECT ALL - 2 / 1
----
-2

query I rowsort
SELECT + 35 * - + 20 + - ( 81 ) AS col1
----
-781

query I rowsort
SELECT + 54 * 68
----
3672

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2219
SELECT CASE + + 57 WHEN + 84 * + - COUNT( * ) + 24 THEN SUM( DISTINCT 39 ) / + 53 - + + 25 + - 74 + + - COUNT( * ) * + 67 + + 39 WHEN - ( - + 20 ) / + - NULLIF ( - CAST( NULL AS SIGNED ), + 74 * 49 + - 11 ) THEN + COALESCE ( + COUNT( * ), - 3 * - ( - 49 ) * + 66 / + 3, 66 * - 70, 36 ) * COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2219
SELECT CASE + + 57 WHEN + 84 * + - COUNT ( * ) + 24 THEN SUM ( DISTINCT 39 ) / + 53 - + + 25 + - 74 + + - COUNT ( * ) * + 67 + + 39 WHEN - ( - + 20 ) / + - NULLIF ( - CAST ( NULL AS INTEGER ), + 74 * 49 + - 11 ) THEN + COALESCE ( + COUNT ( * ), - 3 * - ( - 49 ) * + 66 / + 3, 66 * - 70, 36 ) * COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2220
SELECT CASE - + 11 WHEN - COUNT( * ) THEN + MAX( - ( - - 4 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2220
SELECT CASE - + 11 WHEN - COUNT ( * ) THEN + MAX ( - ( - - 4 ) ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2221
SELECT ALL + 39 * + 30 * + + COALESCE ( COUNT( * ), + NULLIF ( SUM( + 25 ), SUM( + 7 ) ) + 53 ) AS col2
----
1170

skipif mysql # not compatible
query I rowsort label-2221
SELECT ALL + 39 * + 30 * + + COALESCE ( COUNT ( * ), + NULLIF ( SUM ( + 25 ), SUM ( + 7 ) ) + 53 ) AS col2
----
1170

query I rowsort
SELECT + ( 57 ) col2
----
57

query I rowsort
SELECT - ( + + 12 ) + 61 AS col1
----
49

query II rowsort
SELECT + 26 AS col0, 17
----
26
17

onlyif mysql # DIV for integer division: 
query II rowsort label-2225
SELECT DISTINCT + 16, - 59 DIV + 55 + + 1 col2
----
16
0

skipif mysql # not compatible
query II rowsort label-2225
SELECT DISTINCT + 16, - 59 / + 55 + + 1 col2
----
16
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2227
SELECT DISTINCT MAX( - + 30 ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-2227
SELECT DISTINCT MAX ( - + 30 ) AS col1
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2228
SELECT + 58 * - COUNT( - ( + 46 ) ) - + CAST( + + AVG ( + - 4 ) AS SIGNED )
----
-54

skipif mysql # not compatible
query I rowsort label-2228
SELECT + 58 * - COUNT ( - ( + 46 ) ) - + CAST ( + + AVG ( + - 4 ) AS INTEGER )
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-2229
SELECT - COUNT( * ) - - 6 + - 30 + 76 AS col1
----
51

skipif mysql # not compatible
query I rowsort label-2229
SELECT - COUNT ( * ) - - 6 + - 30 + 76 AS col1
----
51

query I rowsort
SELECT - 93 * + 74
----
-6882

onlyif mysql # aggregate syntax: 
query I rowsort label-2231
SELECT DISTINCT + CASE 11 WHEN - MAX( ALL + 23 ) THEN AVG ( 48 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2231
SELECT DISTINCT + CASE 11 WHEN - MAX ( ALL + 23 ) THEN AVG ( 48 ) END
----
NULL

query II rowsort
SELECT ALL 6 col1, 35 + + + 40 AS col0
----
6
75

query I rowsort
SELECT DISTINCT - - 8 + + 53 AS col2
----
61

query I rowsort
SELECT DISTINCT - 96 + + 2 * + ( + + NULLIF ( 87, + 90 * + 31 ) )
----
78

query I rowsort
SELECT ALL + - 95 * + + 90 + - 35
----
-8585

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2236
SELECT DISTINCT - - COUNT( * ) * 57 DIV - 15, + COALESCE ( + - 18, SUM( 50 ) * 30 + + COUNT( * ) ) AS col0
----
-3
-18

skipif mysql # not compatible
query II rowsort label-2236
SELECT DISTINCT - - COUNT ( * ) * 57 / - 15, + COALESCE ( + - 18, SUM ( 50 ) * 30 + + COUNT ( * ) ) AS col0
----
-3
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2237
SELECT - 18 AS col2, 35 * - 4 + CASE - 46 WHEN - + MIN( + + 96 ) THEN + - CAST( NULL AS SIGNED ) ELSE - 74 END
----
-18
-214

skipif mysql # not compatible
query II rowsort label-2237
SELECT - 18 AS col2, 35 * - 4 + CASE - 46 WHEN - + MIN ( + + 96 ) THEN + - CAST ( NULL AS INTEGER ) ELSE - 74 END
----
-18
-214

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2238
SELECT - NULLIF ( - 68, + COALESCE ( - 95, CAST( - - ( 17 ) AS SIGNED ) + - - 5, + - CAST( COUNT( * ) AS SIGNED ) + - MAX( DISTINCT + 63 ), - 24 ) * + 96 )
----
68

skipif mysql # not compatible
query I rowsort label-2238
SELECT - NULLIF ( - 68, + COALESCE ( - 95, CAST ( - - ( 17 ) AS INTEGER ) + - - 5, + - CAST ( COUNT ( * ) AS INTEGER ) + - MAX ( DISTINCT + 63 ), - 24 ) * + 96 )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2239
SELECT ALL - COALESCE ( + - 91, + ( + + 56 ) ) + 31 * NULLIF ( 86, 23 * SUM( ALL 28 ) / + 94 * + + 85 + - 90 + 76 ) AS col2
----
2757

skipif mysql # not compatible
query I rowsort label-2239
SELECT ALL - COALESCE ( + - 91, + ( + + 56 ) ) + 31 * NULLIF ( 86, 23 * SUM ( ALL 28 ) / + 94 * + + 85 + - 90 + 76 ) AS col2
----
2757

onlyif mysql # aggregate syntax: 
query I rowsort label-2240
SELECT - + 83 + - NULLIF ( + + 89, + + COUNT( * ) ) + - 94 + + ( + - 80 ) AS col2
----
-346

skipif mysql # not compatible
query I rowsort label-2240
SELECT - + 83 + - NULLIF ( + + 89, + + COUNT ( * ) ) + - 94 + + ( + - 80 ) AS col2
----
-346

onlyif mysql # aggregate syntax: 
query I rowsort label-2241
SELECT DISTINCT - COUNT( * ) + + 81 + + 59 + ( - 85 )
----
54

skipif mysql # not compatible
query I rowsort label-2241
SELECT DISTINCT - COUNT ( * ) + + 81 + + 59 + ( - 85 )
----
54

query I rowsort
SELECT DISTINCT + 44 * + 58
----
2552

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2243
SELECT DISTINCT - 2 DIV - + 12 - - - 75 + + - MIN( ALL - 67 )
----
-8

skipif mysql # not compatible
query I rowsort label-2243
SELECT DISTINCT - 2 / - + 12 - - - 75 + + - MIN ( ALL - 67 )
----
-8

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

skipif mysql # not compatible
query II rowsort label-2244
SELECT ALL + - CAST ( NULL AS INTEGER ) AS col0, + ( + 59 ) * - + COUNT ( * ) col2
----
NULL
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2245
SELECT + 60 * - - COALESCE ( 97, - - 94 * + COUNT( * ) ) AS col0
----
5820

skipif mysql # not compatible
query I rowsort label-2245
SELECT + 60 * - - COALESCE ( 97, - - 94 * + COUNT ( * ) ) AS col0
----
5820

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2246
SELECT CAST( CASE + MAX( 3 ) WHEN + 40 THEN NULL WHEN + 4 + - - 98 * + 92 THEN + 99 + + 51 END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2246
SELECT CAST ( CASE + MAX ( 3 ) WHEN + 40 THEN NULL WHEN + 4 + - - 98 * + 92 THEN + 99 + + 51 END AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2247
SELECT + 95 * COUNT( * ) AS col0, + 18 col1
----
95
18

skipif mysql # not compatible
query II rowsort label-2247
SELECT + 95 * COUNT ( * ) AS col0, + 18 col1
----
95
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2248
SELECT ( + + CASE 20 WHEN + MIN( 88 ) * 48 * - 61 + - + 63 THEN NULL WHEN - - 46 / 47 THEN NULL ELSE - 71 END )
----
-71

skipif mysql # not compatible
query I rowsort label-2248
SELECT ( + + CASE 20 WHEN + MIN ( 88 ) * 48 * - 61 + - + 63 THEN NULL WHEN - - 46 / 47 THEN NULL ELSE - 71 END )
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2249
SELECT + 24 * - + 38 * 55 * - - NULLIF ( + 2, + 80 ) * - COALESCE ( - 90, - CAST( + NULLIF ( - 70, - 45 ) AS SIGNED ) + + COUNT( * ), - 75 ) AS col2
----
-9028800

skipif mysql # not compatible
query I rowsort label-2249
SELECT + 24 * - + 38 * 55 * - - NULLIF ( + 2, + 80 ) * - COALESCE ( - 90, - CAST ( + NULLIF ( - 70, - 45 ) AS INTEGER ) + + COUNT ( * ), - 75 ) AS col2
----
-9028800

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2250
SELECT + COALESCE ( 62, + 32 * - + 81 + SUM( DISTINCT - + 33 ) + - 75, - AVG ( + 68 ) DIV - MIN( + - 8 ) ) - ( - - COUNT( * ) ) + + 21 + - + 63 * - + 39 DIV - - COUNT( * ) + + + 92 DIV + + 98 - 29 * - 75 col0
----
4714

skipif mysql # not compatible
query I rowsort label-2250
SELECT + COALESCE ( 62, + 32 * - + 81 + SUM ( DISTINCT - + 33 ) + - 75, - AVG ( + 68 ) / - MIN ( + - 8 ) ) - ( - - COUNT ( * ) ) + + 21 + - + 63 * - + 39 / - - COUNT ( * ) + + + 92 / + + 98 - 29 * - 75 col0
----
4714

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2251
SELECT ( NULLIF ( + 0, + - 97 * - 76 + + - 52 * + 30 - - - 82 ) ) * + ( - 97 ) - - + 53 + - - CASE ( - - COUNT( ALL + 55 ) ) WHEN CAST( NULL AS SIGNED ) + + + 15 THEN - 11 WHEN 67 THEN NULL END + - - 6 - 21 / 23 / - 96 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2251
SELECT ( NULLIF ( + 0, + - 97 * - 76 + + - 52 * + 30 - - - 82 ) ) * + ( - 97 ) - - + 53 + - - CASE ( - - COUNT ( ALL + 55 ) ) WHEN CAST ( NULL AS INTEGER ) + + + 15 THEN - 11 WHEN 67 THEN NULL END + - - 6 - 21 / 23 / - 96 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2252
SELECT + CASE WHEN NOT ( NULL ) >= - MIN( ALL + 25 ) THEN + + COUNT( * ) + + + ( + + 72 ) ELSE NULL END * + 11 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2252
SELECT + CASE WHEN NOT ( NULL ) >= - MIN ( ALL + 25 ) THEN + + COUNT ( * ) + + + ( + + 72 ) ELSE NULL END * + 11 AS col2
----
NULL

query II rowsort
SELECT + 70 * + 9 AS col2, + 95
----
630
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2254
SELECT + 29 * - COALESCE ( - CASE + 72 WHEN 73 + - + 24 THEN + 92 WHEN + + 93 THEN NULL ELSE - 22 + CAST( - ( + + 95 ) AS SIGNED ) END, - - 18 ) AS col2
----
-3393

skipif mysql # not compatible
query I rowsort label-2254
SELECT + 29 * - COALESCE ( - CASE + 72 WHEN 73 + - + 24 THEN + 92 WHEN + + 93 THEN NULL ELSE - 22 + CAST ( - ( + + 95 ) AS INTEGER ) END, - - 18 ) AS col2
----
-3393

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2255
SELECT + 40 + 57 + + 61 - + 80 + - + ( 47 ) * - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2255
SELECT + 40 + 57 + + 61 - + 80 + - + ( 47 ) * - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2256
SELECT NULLIF ( 68, - MAX( - 26 ) * 71 * + 60 + + ( COUNT( * ) ) )
----
68

skipif mysql # not compatible
query I rowsort label-2256
SELECT NULLIF ( 68, - MAX ( - 26 ) * 71 * + 60 + + ( COUNT ( * ) ) )
----
68

query I rowsort
SELECT + 92 * - 20 + 8
----
-1832

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2258
SELECT - 23 - + - CAST( NULL AS SIGNED ) + - + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-2258
SELECT - 23 - + - CAST ( NULL AS INTEGER ) + - + 97
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2259
SELECT ALL 16 + - COUNT( * ) - - 45
----
60

skipif mysql # not compatible
query I rowsort label-2259
SELECT ALL 16 + - COUNT ( * ) - - 45
----
60

query I rowsort
SELECT ALL 75 + + 26
----
101

query I rowsort
SELECT DISTINCT - 0 + - 14
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2262
SELECT CASE + 21 WHEN - CAST( NULL AS SIGNED ) + - + 72 THEN - 59 WHEN - 77 THEN NULL ELSE 86 END col2
----
86

skipif mysql # not compatible
query I rowsort label-2262
SELECT CASE + 21 WHEN - CAST ( NULL AS INTEGER ) + - + 72 THEN - 59 WHEN - 77 THEN NULL ELSE 86 END col2
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2263
SELECT ALL - 67 + - COALESCE ( + 57, + 44 * + 30 ) * - - AVG ( ALL - CAST( NULL AS SIGNED ) ) + + 79 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2263
SELECT ALL - 67 + - COALESCE ( + 57, + 44 * + 30 ) * - - AVG ( ALL - CAST ( NULL AS INTEGER ) ) + + 79 AS col0
----
NULL

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

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

query I rowsort
SELECT ALL - 50 + - - 16
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-2266
SELECT 10 * MIN( + 85 ) AS col2
----
850

skipif mysql # not compatible
query I rowsort label-2266
SELECT 10 * MIN ( + 85 ) AS col2
----
850

onlyif mysql # aggregate syntax: 
query II rowsort label-2267
SELECT - 83 * 75 + + 88 * + + 3, ( - COUNT( * ) ) AS col1
----
-5961
-1

skipif mysql # not compatible
query II rowsort label-2267
SELECT - 83 * 75 + + 88 * + + 3, ( - COUNT ( * ) ) AS col1
----
-5961
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2268
SELECT DISTINCT - - NULLIF ( - 42, + 9 * - - 67 - - 42 - + - 65 ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2268
SELECT DISTINCT - - NULLIF ( - 42, + 9 * - - 67 - - 42 - + - 65 ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2269
SELECT DISTINCT NULLIF ( + 31, + + 17 * - COUNT( * ) + + - ( - COUNT( * ) ) )
----
31

skipif mysql # not compatible
query I rowsort label-2269
SELECT DISTINCT NULLIF ( + 31, + + 17 * - COUNT ( * ) + + - ( - COUNT ( * ) ) )
----
31

query II rowsort
SELECT - 49 * 38, 78 AS col2
----
-1862
78

query I rowsort
SELECT DISTINCT - 24 - 5 + + 61
----
32

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2273
SELECT ALL - + SUM( DISTINCT - 87 ) * - 83 * - 92 * - MAX( - 42 )
----
27901944

skipif mysql # not compatible
query I rowsort label-2273
SELECT ALL - + SUM ( DISTINCT - 87 ) * - 83 * - 92 * - MAX ( - 42 )
----
27901944

onlyif mysql # aggregate syntax: 
query I rowsort label-2274
SELECT + 16 * + 31 * COUNT( ALL - 99 )
----
496

skipif mysql # not compatible
query I rowsort label-2274
SELECT + 16 * + 31 * COUNT ( ALL - 99 )
----
496

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2275
SELECT CAST( - 70 AS SIGNED ) * 82 + + - CAST( - 17 AS SIGNED )
----
-5723

skipif mysql # not compatible
query I rowsort label-2275
SELECT CAST ( - 70 AS INTEGER ) * 82 + + - CAST ( - 17 AS INTEGER )
----
-5723

query I rowsort
SELECT 58 * + 66
----
3828

onlyif mysql # aggregate syntax: 
query I rowsort label-2277
SELECT 49 + COUNT( * ) + + + 44
----
94

skipif mysql # not compatible
query I rowsort label-2277
SELECT 49 + COUNT ( * ) + + + 44
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2278
SELECT + 27 * 38 + - CAST( NULL AS SIGNED ) + ( + 39 ) / - CASE - ( 47 ) WHEN - 77 THEN NULL WHEN - 37 * COUNT( * ) THEN + 33 + + - COUNT( * ) * - 21 + - 50 + 10 + + 72 * - - 13 ELSE 60 + + + 21 END * + COUNT( * ) + ( + - COALESCE ( + ( + - 33 ), + - 7 ) ) * - COUNT( DISTINCT - 23 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2278
SELECT + 27 * 38 + - CAST ( NULL AS INTEGER ) + ( + 39 ) / - CASE - ( 47 ) WHEN - 77 THEN NULL WHEN - 37 * COUNT ( * ) THEN + 33 + + - COUNT ( * ) * - 21 + - 50 + 10 + + 72 * - - 13 ELSE 60 + + + 21 END * + COUNT ( * ) + ( + - COALESCE ( + ( + - 33 ), + - 7 ) ) * - COUNT ( DISTINCT - 23 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2279
SELECT DISTINCT - NULLIF ( - - ( 96 ), - + ( COUNT( ALL + ( + - 79 ) ) ) / + + 16 - 10 )
----
-96

skipif mysql # not compatible
query I rowsort label-2279
SELECT DISTINCT - NULLIF ( - - ( 96 ), - + ( COUNT ( ALL + ( + - 79 ) ) ) / + + 16 - 10 )
----
-96

query II rowsort
SELECT DISTINCT - 45, - 98 AS col1
----
-45
-98

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2282
SELECT 94 + - CAST( - 96 AS SIGNED ) col1, - 16
----
190
-16

skipif mysql # not compatible
query II rowsort label-2282
SELECT 94 + - CAST ( - 96 AS INTEGER ) col1, - 16
----
190
-16

query I rowsort
SELECT 13 * 18 col0
----
234

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2284
SELECT ALL 11 + + 97 + 39 + + ( - + COALESCE ( 64, - COUNT( * ) * - + 5 + - 35, - + 48 + - + 96 * + 66 - CAST( NULL AS SIGNED ) + + + COUNT( * ), + 16 * + - 30 * ( + CASE 21 WHEN - 14 THEN - - 58 * CAST( + 96 AS SIGNED ) + - CASE 20 WHEN - 77 THEN + 99 DIV 61 + + + 31 DIV + 36 WHEN 83 THEN - ( AVG ( DISTINCT + 69 ) ) END * 63 ELSE - COUNT( * ) END ) DIV NULLIF ( CAST( 22 AS SIGNED ) DIV + 77, 12 + + 56 ) ) ) + ( 74 ) * + 38 * + 29
----
81631

skipif mysql # not compatible
query I rowsort label-2284
SELECT ALL 11 + + 97 + 39 + + ( - + COALESCE ( 64, - COUNT ( * ) * - + 5 + - 35, - + 48 + - + 96 * + 66 - CAST ( NULL AS INTEGER ) + + + COUNT ( * ), + 16 * + - 30 * ( + CASE 21 WHEN - 14 THEN - - 58 * CAST ( + 96 AS INTEGER ) + - CASE 20 WHEN - 77 THEN + 99 / 61 + + + 31 / + 36 WHEN 83 THEN - ( AVG ( DISTINCT + 69 ) ) END * 63 ELSE - COUNT ( * ) END ) / NULLIF ( CAST ( 22 AS INTEGER ) / + 77, 12 + + 56 ) ) ) + ( 74 ) * + 38 * + 29
----
81631

query I rowsort
SELECT 84 * - 66
----
-5544

query I rowsort
SELECT 4 * - NULLIF ( - + 64, 25 ) + - 8 + + - 48
----
200

query I rowsort
SELECT ALL 29 * - + 75
----
-2175

query I rowsort
SELECT DISTINCT + 23 + - 97 col2
----
-74

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2290
SELECT ALL 10 DIV + 16 - - 30 AS col1
----
30

skipif mysql # not compatible
query I rowsort label-2290
SELECT ALL 10 / + 16 - - 30 AS col1
----
30

query I rowsort
SELECT ALL - 21 + 43 AS col0
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2292
SELECT 16 * COUNT( * ) DIV - SUM( - 39 ) - - 21
----
21

skipif mysql # not compatible
query I rowsort label-2292
SELECT 16 * COUNT ( * ) / - SUM ( - 39 ) - - 21
----
21

query I rowsort
SELECT ALL 28 + + 26
----
54

query I rowsort
SELECT - ( + 0 ) - - 65
----
65

query II rowsort
SELECT ALL 2 AS col0, - 63 * + 89 * 35
----
2
-196245

query I rowsort
SELECT 53 + - 88 + - - 26 + - - 46
----
37

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

query II rowsort
SELECT ALL 94 - + 82 * + 85, 67 AS col1
----
-6876
67

onlyif mysql # aggregate syntax: 
query II rowsort label-2299
SELECT 32 + COALESCE ( COUNT( * ), 6 + + 8 ) AS col1, 52 AS col1
----
33
52

skipif mysql # not compatible
query II rowsort label-2299
SELECT 32 + COALESCE ( COUNT ( * ), 6 + + 8 ) AS col1, 52 AS col1
----
33
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2300
SELECT DISTINCT COALESCE ( - - 32, + SUM( ALL - 90 ) + - + 37 ) - + 50 AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-2300
SELECT DISTINCT COALESCE ( - - 32, + SUM ( ALL - 90 ) + - + 37 ) - + 50 AS col0
----
-18

query I rowsort
SELECT 94 - + 47 AS col0
----
47

query I rowsort
SELECT - 13 * - 49 AS col2
----
637

query I rowsort
SELECT 71 * - - 34 + + + 33 AS col1
----
2447

query II rowsort
SELECT DISTINCT + 29 col0, 31 AS col2
----
29
31

query I rowsort
SELECT 73 + - 83 + 15 AS col1
----
5

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2307
SELECT ALL + 80 DIV + 96 * + + 95
----
0

skipif mysql # not compatible
query I rowsort label-2307
SELECT ALL + 80 / + 96 * + + 95
----
0

query I rowsort
SELECT 68 * - + 54
----
-3672

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2309
SELECT DISTINCT 7 DIV - COUNT( * )
----
-7

skipif mysql # not compatible
query I rowsort label-2309
SELECT DISTINCT 7 / - COUNT ( * )
----
-7

query I rowsort
SELECT ALL + 81 * - - 18 AS col0
----
1458

query I rowsort
SELECT 94 * - - COALESCE ( + + 58, 64 ) * - 64 + + 90 * ( - 78 )
----
-355948

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2312
SELECT 68 * - 30 DIV - + COUNT( - 46 )
----
2040

skipif mysql # not compatible
query I rowsort label-2312
SELECT 68 * - 30 / - + COUNT ( - 46 )
----
2040

onlyif mysql # aggregate syntax: 
query I rowsort label-2313
SELECT 3 * - COALESCE ( + - 28, COUNT( * ) + COUNT( * ) )
----
84

skipif mysql # not compatible
query I rowsort label-2313
SELECT 3 * - COALESCE ( + - 28, COUNT ( * ) + COUNT ( * ) )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2314
SELECT MIN( - 65 ) * - 67 * 67 - - ( - MIN( - - 16 ) ) + + COUNT( * ) * 55 * + 8 + - - 8 * - 21 AS col2
----
292041

skipif mysql # not compatible
query I rowsort label-2314
SELECT MIN ( - 65 ) * - 67 * 67 - - ( - MIN ( - - 16 ) ) + + COUNT ( * ) * 55 * + 8 + - - 8 * - 21 AS col2
----
292041

onlyif mysql # aggregate syntax: 
query I rowsort label-2315
SELECT SUM( - 3 )
----
-3

skipif mysql # not compatible
query I rowsort label-2315
SELECT SUM ( - 3 )
----
-3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2317
SELECT DISTINCT COUNT( * ) * 1 + - - 88 * 96
----
8449

skipif mysql # not compatible
query I rowsort label-2317
SELECT DISTINCT COUNT ( * ) * 1 + - - 88 * 96
----
8449

onlyif mysql # aggregate syntax: 
query I rowsort label-2318
SELECT ALL + SUM( 40 ) * + 6 + + COUNT( * )
----
241

skipif mysql # not compatible
query I rowsort label-2318
SELECT ALL + SUM ( 40 ) * + 6 + + COUNT ( * )
----
241

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

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

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

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

query II rowsort
SELECT 14 AS col1, + ( + 26 )
----
14
26

query I rowsort
SELECT - 68 + + - 11 + - + 46 * + + 44 * 85 AS col1
----
-172119

query I rowsort
SELECT + + 39 * + - 49
----
-1911

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2324
SELECT COUNT( + CAST( 59 AS DECIMAL ) ) * 51 + - - 16 - + 58 * - - 57 + + 49 AS col0
----
-3190

skipif mysql # not compatible
query I rowsort label-2324
SELECT COUNT ( + CAST ( 59 AS REAL ) ) * 51 + - - 16 - + 58 * - - 57 + + 49 AS col0
----
-3190

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2326
SELECT + - 79 * - CAST( - + MIN( + 77 ) AS SIGNED ) * + 92
----
-559636

skipif mysql # not compatible
query I rowsort label-2326
SELECT + - 79 * - CAST ( - + MIN ( + 77 ) AS INTEGER ) * + 92
----
-559636

query II rowsort
SELECT DISTINCT 42, - 54 AS col0
----
42
-54

query I rowsort
SELECT DISTINCT + + NULLIF ( + 6, + - 13 - - - 94 ) - + 11 * 91
----
-995

query I rowsort
SELECT + 31 + 57
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2330
SELECT - COUNT( * ) AS col2, - 91 + + 61 - + 92 + CAST( NULL AS SIGNED ) * 43
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-2330
SELECT - COUNT ( * ) AS col2, - 91 + + 61 - + 92 + CAST ( NULL AS INTEGER ) * 43
----
-1
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2331
SELECT ALL 28 DIV - 62, 12 AS col0
----
0
12

skipif mysql # not compatible
query II rowsort label-2331
SELECT ALL 28 / - 62, 12 AS col0
----
0
12

onlyif mysql # DIV for integer division: 
query II rowsort label-2332
SELECT ALL 16, 43 DIV - 60 * - 33 * - 19 * 62 * 94 + - - 18 * 54 AS col0
----
16
972

skipif mysql # not compatible
query II rowsort label-2332
SELECT ALL 16, 43 / - 60 * - 33 * - 19 * 62 * 94 + - - 18 * 54 AS col0
----
16
972

query I rowsort
SELECT + - 77 * - 44
----
3388

onlyif mysql # aggregate syntax: 
query II rowsort label-2334
SELECT ALL + COUNT( * ) AS col0, - 33 * 60 AS col0
----
1
-1980

skipif mysql # not compatible
query II rowsort label-2334
SELECT ALL + COUNT ( * ) AS col0, - 33 * 60 AS col0
----
1
-1980

query I rowsort
SELECT ALL 66 * 52
----
3432

query I rowsort
SELECT - ( - - 69 ) col2
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2337
SELECT ALL 59 + 13 + + 20 * - + NULLIF ( + - COUNT( * ), + - CAST( NULL AS SIGNED ) - - - AVG ( DISTINCT + 42 ) ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-2337
SELECT ALL 59 + 13 + + 20 * - + NULLIF ( + - COUNT ( * ), + - CAST ( NULL AS INTEGER ) - - - AVG ( DISTINCT + 42 ) ) AS col0
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2338
SELECT - 30 * 50 DIV - + ( + COUNT( * ) )
----
1500

skipif mysql # not compatible
query I rowsort label-2338
SELECT - 30 * 50 / - + ( + COUNT ( * ) )
----
1500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2339
SELECT + NULLIF ( - COUNT( * ), 84 ) + - + 23 - CAST( - 54 AS SIGNED ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-2339
SELECT + NULLIF ( - COUNT ( * ), 84 ) + - + 23 - CAST ( - 54 AS INTEGER ) AS col1
----
30

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

skipif mysql # not compatible
query I rowsort label-2340
SELECT 77 * - - CAST ( NULL AS INTEGER ) + - 66
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2341
SELECT 40 DIV - 26 - - CAST( + 38 AS SIGNED ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-2341
SELECT 40 / - 26 - - CAST ( + 38 AS INTEGER ) AS col0
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2342
SELECT ALL 92 DIV - 82 + - COALESCE ( - ( - 61 ), ( - - 75 ) * + + 73 * - COUNT( DISTINCT - 48 ), + + 30 * - - 54 + + + 73 * 91 ) AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-2342
SELECT ALL 92 / - 82 + - COALESCE ( - ( - 61 ), ( - - 75 ) * + + 73 * - COUNT ( DISTINCT - 48 ), + + 30 * - - 54 + + + 73 * 91 ) AS col2
----
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2343
SELECT DISTINCT 61 DIV - 32 + - 89 + + 29 * + COALESCE ( + 54, 4 + ( + COUNT( * ) ) + - + ( + 41 ) + 87 * + - 63 ) + + 68 AS col2
----
1544

skipif mysql # not compatible
query I rowsort label-2343
SELECT DISTINCT 61 / - 32 + - 89 + + 29 * + COALESCE ( + 54, 4 + ( + COUNT ( * ) ) + - + ( + 41 ) + 87 * + - 63 ) + + 68 AS col2
----
1544

query I rowsort
SELECT DISTINCT + 32 * - 3 / + CASE AVG ( 18 ) WHEN 93 + 10 * - + 95 THEN - - 28 * - 35 + 3 + - - ( - 84 ) END / - 6 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2345
SELECT ALL + 57 DIV - 94 + 30 AS col2
----
30

skipif mysql # not compatible
query I rowsort label-2345
SELECT ALL + 57 / - 94 + 30 AS col2
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-2346
SELECT 41 DIV 95 + - - 67 AS col1
----
67

skipif mysql # not compatible
query I rowsort label-2346
SELECT 41 / 95 + - - 67 AS col1
----
67

query I rowsort
SELECT - 64 + - 90 - + 0 + + 28 * 69 + 25 - + 9
----
1794

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2349
SELECT 14 * CAST( NULL AS SIGNED ) + 18 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2349
SELECT 14 * CAST ( NULL AS INTEGER ) + 18 AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2351
SELECT - 42 * 78 * 35 + - + NULLIF ( 4, - 4 ) - CAST( NULL AS SIGNED ) * - AVG ( DISTINCT 27 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2351
SELECT - 42 * 78 * 35 + - + NULLIF ( 4, - 4 ) - CAST ( NULL AS INTEGER ) * - AVG ( DISTINCT 27 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2352
SELECT ALL - 31 * + COUNT( * ) + 84 AS col1
----
53

skipif mysql # not compatible
query I rowsort label-2352
SELECT ALL - 31 * + COUNT ( * ) + 84 AS col1
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-2353
SELECT - NULLIF ( + COUNT( DISTINCT - - 90 ), - - CASE 16 WHEN + MAX( + - 78 ) THEN NULL ELSE + COUNT( * ) + - 23 / + 86 END + + 93 + - COUNT( * ) ) * ( + 40 ) col2
----
-40

skipif mysql # not compatible
query I rowsort label-2353
SELECT - NULLIF ( + COUNT ( DISTINCT - - 90 ), - - CASE 16 WHEN + MAX ( + - 78 ) THEN NULL ELSE + COUNT ( * ) + - 23 / + 86 END + + 93 + - COUNT ( * ) ) * ( + 40 ) col2
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2354
SELECT ALL + ( ( + + CAST( + + AVG ( + CAST( 78 AS SIGNED ) ) AS SIGNED ) ) ) col2
----
78

skipif mysql # not compatible
query I rowsort label-2354
SELECT ALL + ( ( + + CAST ( + + AVG ( + CAST ( 78 AS INTEGER ) ) AS INTEGER ) ) ) col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2355
SELECT DISTINCT COUNT( * ) * - 81
----
-81

skipif mysql # not compatible
query I rowsort label-2355
SELECT DISTINCT COUNT ( * ) * - 81
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2356
SELECT ALL + NULLIF ( - NULLIF ( 74, + 96 ), - NULLIF ( ( 33 ), + COUNT( * ) ) )
----
-74

skipif mysql # not compatible
query I rowsort label-2356
SELECT ALL + NULLIF ( - NULLIF ( 74, + 96 ), - NULLIF ( ( 33 ), + COUNT ( * ) ) )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-2357
SELECT DISTINCT + - SUM( ALL + 28 ) * - 87 * - 76
----
-185136

skipif mysql # not compatible
query I rowsort label-2357
SELECT DISTINCT + - SUM ( ALL + 28 ) * - 87 * - 76
----
-185136

query I rowsort
SELECT DISTINCT - + 89 * - ( - - 81 ) * 46 * ( + 45 ) - + 85 * COALESCE ( - 94, + ( + - 69 ) * ( + 44 ) * - 51, - 37 ) col1
----
14930620

query II rowsort
SELECT - - 72 * + + 37, 34 + + 53 + - 33 col0
----
2664
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2360
SELECT + + 67 * + 96 * + COUNT( * )
----
6432

skipif mysql # not compatible
query I rowsort label-2360
SELECT + + 67 * + 96 * + COUNT ( * )
----
6432

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2361
SELECT ALL + COUNT( * ) * - 66 + + COALESCE ( 7, + + COUNT( * ) DIV + - 17 - + + 47 + + 30 - 16, - CASE 1 WHEN - 93 THEN + - 14 + - 25 WHEN 96 - MIN( + ( + 41 ) ) + + 45 DIV - 82 * - + 31 THEN + + ( - + 65 ) * - + ( 96 ) ELSE NULL END ) col0
----
-59

skipif mysql # not compatible
query I rowsort label-2361
SELECT ALL + COUNT ( * ) * - 66 + + COALESCE ( 7, + + COUNT ( * ) / + - 17 - + + 47 + + 30 - 16, - CASE 1 WHEN - 93 THEN + - 14 + - 25 WHEN 96 - MIN ( + ( + 41 ) ) + + 45 / - 82 * - + 31 THEN + + ( - + 65 ) * - + ( 96 ) ELSE NULL END ) col0
----
-59

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

skipif mysql # not compatible
query I rowsort label-2362
SELECT - COUNT ( * ) * COUNT ( * ) + CAST ( + + 77 AS INTEGER )
----
76

query I rowsort
SELECT DISTINCT 44 * - - 93
----
4092

query I rowsort
SELECT DISTINCT + 84 * + 51 AS col1
----
4284

query II rowsort
SELECT ALL + + 76 * + 8 AS col1, - NULLIF ( - 59, - - 37 ) * - 16 AS col2
----
608
-944

query II rowsort
SELECT DISTINCT - 93 + 35, - 75 AS col1
----
-58
-75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2367
SELECT DISTINCT 1 + - CAST( + 80 AS SIGNED ) AS col0, + 21 * - 28
----
-79
-588

skipif mysql # not compatible
query II rowsort label-2367
SELECT DISTINCT 1 + - CAST ( + 80 AS INTEGER ) AS col0, + 21 * - 28
----
-79
-588

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

skipif mysql # not compatible
query I rowsort label-2368
SELECT ALL 60 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL 18 + + + ( ( 54 ) )
----
72

query I rowsort
SELECT - 42 * + 59
----
-2478

query II rowsort
SELECT 48 AS col1, + 21 AS col2
----
48
21

onlyif mysql # aggregate syntax: 
query II rowsort label-2372
SELECT - 17, 39 + - COUNT( * ) AS col1
----
-17
38

skipif mysql # not compatible
query II rowsort label-2372
SELECT - 17, 39 + - COUNT ( * ) AS col1
----
-17
38

query II rowsort
SELECT 62, - 71 AS col1
----
62
-71

query I rowsort
SELECT ALL - 45 + - 22 AS col1
----
-67

query I rowsort
SELECT ALL 6 + - 85 AS col0
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2376
SELECT ( COUNT( * ) ) * - 92 + COUNT( * ) - 36 * + ( + ( - CASE - 31 WHEN - + 24 THEN - COUNT( * ) + + 89 + + - 64 * - 28 ELSE - + 86 END ) ) * + CAST( NULL AS SIGNED ) + 2 * CAST( NULL AS DECIMAL ) * - 12
----
NULL

skipif mysql # not compatible
query I rowsort label-2376
SELECT ( COUNT ( * ) ) * - 92 + COUNT ( * ) - 36 * + ( + ( - CASE - 31 WHEN - + 24 THEN - COUNT ( * ) + + 89 + + - 64 * - 28 ELSE - + 86 END ) ) * + CAST ( NULL AS INTEGER ) + 2 * CAST ( NULL AS REAL ) * - 12
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2377
SELECT DISTINCT 77, + COUNT( * ) AS col1
----
77
1

skipif mysql # not compatible
query II rowsort label-2377
SELECT DISTINCT 77, + COUNT ( * ) AS col1
----
77
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2378
SELECT DISTINCT COUNT( * ) + + - 63 AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-2378
SELECT DISTINCT COUNT ( * ) + + - 63 AS col1
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-2379
SELECT 46 * + 63 - COUNT( * ) * + 47
----
2851

skipif mysql # not compatible
query I rowsort label-2379
SELECT 46 * + 63 - COUNT ( * ) * + 47
----
2851

query I rowsort
SELECT 47 * + 9 AS col0
----
423

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

skipif mysql # not compatible
query I rowsort label-2381
SELECT 54 / 54 col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2382
SELECT ALL - + CAST( - 61 AS SIGNED ) col0
----
61

skipif mysql # not compatible
query I rowsort label-2382
SELECT ALL - + CAST ( - 61 AS INTEGER ) col0
----
61

query II rowsort
SELECT 43, 76 AS col2
----
43
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2384
SELECT COUNT( * ) - - + 77 * - - 89
----
6854

skipif mysql # not compatible
query I rowsort label-2384
SELECT COUNT ( * ) - - + 77 * - - 89
----
6854

query I rowsort
SELECT ALL - ( + 4 ) AS col1
----
-4

query I rowsort
SELECT DISTINCT - 51 * - - 94 * - + 95 AS col2
----
455430

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2387
SELECT ALL + - COUNT( * ) * + CAST( - + NULLIF ( + 59, + ( + 71 ) * - 51 ) AS SIGNED )
----
59

skipif mysql # not compatible
query I rowsort label-2387
SELECT ALL + - COUNT ( * ) * + CAST ( - + NULLIF ( + 59, + ( + 71 ) * - 51 ) AS INTEGER )
----
59

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2388
SELECT - COUNT( * ) * + 17 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2388
SELECT - COUNT ( * ) * + 17 * CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL - - 29 * - + 12 * 72
----
-25056

onlyif mysql # aggregate syntax: 
query I rowsort label-2390
SELECT - 33 * - - MIN( ALL + 94 ) + 51
----
-3051

skipif mysql # not compatible
query I rowsort label-2390
SELECT - 33 * - - MIN ( ALL + 94 ) + 51
----
-3051

query I rowsort
SELECT ALL + - 16 * - 25 AS col0
----
400

onlyif mysql # aggregate syntax: 
query I rowsort label-2392
SELECT ( COUNT( * ) ) * 46 * 28 + + + 51
----
1339

skipif mysql # not compatible
query I rowsort label-2392
SELECT ( COUNT ( * ) ) * 46 * 28 + + + 51
----
1339

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

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

query I rowsort
SELECT - 93 + + 29 * - 40
----
-1253

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2395
SELECT ALL CASE - 0 WHEN COUNT( DISTINCT + - 86 ) THEN ( + - CAST( NULL AS SIGNED ) ) ELSE + + 2 END + - ( + MIN( - - 27 ) )
----
-25

skipif mysql # not compatible
query I rowsort label-2395
SELECT ALL CASE - 0 WHEN COUNT ( DISTINCT + - 86 ) THEN ( + - CAST ( NULL AS INTEGER ) ) ELSE + + 2 END + - ( + MIN ( - - 27 ) )
----
-25

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

query I rowsort
SELECT ALL - 91 + 73
----
-18

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

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

query I rowsort
SELECT 79 * - 84 col1
----
-6636

onlyif mysql # aggregate syntax: 
query I rowsort label-2400
SELECT ALL - 22 + + COUNT( * ) * - + 20
----
-42

skipif mysql # not compatible
query I rowsort label-2400
SELECT ALL - 22 + + COUNT ( * ) * - + 20
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-2401
SELECT ALL - 49 * MIN( + ( 66 ) ) AS col0
----
-3234

skipif mysql # not compatible
query I rowsort label-2401
SELECT ALL - 49 * MIN ( + ( 66 ) ) AS col0
----
-3234

query I rowsort
SELECT 19 * - 47
----
-893

query I rowsort
SELECT ALL 65 * + 82
----
5330

query I rowsort
SELECT DISTINCT - 32 * ( - 19 ) AS col0
----
608

onlyif mysql # aggregate syntax: 
query I rowsort label-2405
SELECT ALL + COUNT( 19 ) - - 43 col2
----
44

skipif mysql # not compatible
query I rowsort label-2405
SELECT ALL + COUNT ( 19 ) - - 43 col2
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-2406
SELECT 28 + + - 65 + + ( + 58 ) * - 37 * COUNT( * ) + - - 12 AS col1, - 23 * + 20 + 21 AS col2
----
-2171
-439

skipif mysql # not compatible
query II rowsort label-2406
SELECT 28 + + - 65 + + ( + 58 ) * - 37 * COUNT ( * ) + - - 12 AS col1, - 23 * + 20 + 21 AS col2
----
-2171
-439

onlyif mysql # aggregate syntax: 
query I rowsort label-2407
SELECT 99 + - + 14 * 52 + + COUNT( * )
----
-628

skipif mysql # not compatible
query I rowsort label-2407
SELECT 99 + - + 14 * 52 + + COUNT ( * )
----
-628

query I rowsort
SELECT ( + + 98 ) - - 44
----
142

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2409
SELECT ALL COUNT( 74 ) DIV - + ( - 97 ) * - - ( + 90 ) + - - 72 + - 33
----
39

skipif mysql # not compatible
query I rowsort label-2409
SELECT ALL COUNT ( 74 ) / - + ( - 97 ) * - - ( + 90 ) + - - 72 + - 33
----
39

query I rowsort
SELECT 51 * + 38 + 60
----
1998

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2411
SELECT CAST( + 45 AS SIGNED ) * + + 99 * 82
----
365310

skipif mysql # not compatible
query I rowsort label-2411
SELECT CAST ( + 45 AS INTEGER ) * + + 99 * 82
----
365310

onlyif mysql # DIV for integer division: 
query I rowsort label-2412
SELECT - + ( - 62 ) DIV 38 + + 7
----
8

skipif mysql # not compatible
query I rowsort label-2412
SELECT - + ( - 62 ) / 38 + + 7
----
8

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

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

query II rowsort
SELECT ALL + 22 * - - 83 + - ( + 10 ) AS col0, + 40
----
1816
40

query I rowsort
SELECT + 84 + + + 88 AS col1
----
172

onlyif mysql # aggregate syntax: 
query I rowsort label-2416
SELECT ALL + COUNT( * ) * - + 99 + - - 96 * + 7 AS col0
----
573

skipif mysql # not compatible
query I rowsort label-2416
SELECT ALL + COUNT ( * ) * - + 99 + - - 96 * + 7 AS col0
----
573

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2419
SELECT ALL 94 + + CASE + 41 WHEN + 13 THEN - 75 WHEN COUNT( * ) + CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END + - 64 + - 71 + + 14 + - CAST( 37 AS SIGNED ) / - 76 + + 77 * - 97 + ( + 44 ) + COALESCE ( - 62, COUNT( * ) + + + COALESCE ( - 66, - + 98 * + 66 + - 16 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2419
SELECT ALL 94 + + CASE + 41 WHEN + 13 THEN - 75 WHEN COUNT ( * ) + CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END + - 64 + - 71 + + 14 + - CAST ( 37 AS INTEGER ) / - 76 + + 77 * - 97 + ( + 44 ) + COALESCE ( - 62, COUNT ( * ) + + + COALESCE ( - 66, - + 98 * + 66 + - 16 ) ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 28 + - 63 + 21 * + - 14 AS col2
----
-329

onlyif mysql # aggregate syntax: 
query I rowsort label-2421
SELECT 94 * - COUNT( * ) * - 78 AS col0
----
7332

skipif mysql # not compatible
query I rowsort label-2421
SELECT 94 * - COUNT ( * ) * - 78 AS col0
----
7332

query I rowsort
SELECT ALL - 95 + NULLIF ( 27, + - 2 + + ( - 36 ) + + - 30 * + 33 * 85 )
----
-68

query I rowsort
SELECT DISTINCT - - NULLIF ( - - 0, - - 88 )
----
0

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

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

query I rowsort
SELECT DISTINCT - 51 + - 97
----
-148

onlyif mysql # aggregate syntax: 
query I rowsort label-2426
SELECT ALL - COUNT( * ) + 91 AS col1
----
90

skipif mysql # not compatible
query I rowsort label-2426
SELECT ALL - COUNT ( * ) + 91 AS col1
----
90

query I rowsort
SELECT + 14 * 68 AS col0
----
952

onlyif mysql # aggregate syntax: 
query I rowsort label-2428
SELECT - COUNT( * ) + - 31 AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-2428
SELECT - COUNT ( * ) + - 31 AS col2
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-2429
SELECT ALL 97 + - + MIN( ALL 48 ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-2429
SELECT ALL 97 + - + MIN ( ALL 48 ) AS col1
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2430
SELECT DISTINCT - 2 * - - CASE - 31 WHEN + - 29 THEN + - 63 * - + 63 * + COUNT( * ) WHEN - - 2 THEN NULL WHEN + 10 THEN - - 21 * 37 * - CAST( - + 58 AS SIGNED ) * - 4 - - 73 + + ( ( - 28 ) ) WHEN + + 33 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2430
SELECT DISTINCT - 2 * - - CASE - 31 WHEN + - 29 THEN + - 63 * - + 63 * + COUNT ( * ) WHEN - - 2 THEN NULL WHEN + 10 THEN - - 21 * 37 * - CAST ( - + 58 AS INTEGER ) * - 4 - - 73 + + ( ( - 28 ) ) WHEN + + 33 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2431
SELECT + COUNT( * ) - + - 59 + + 17 col2
----
77

skipif mysql # not compatible
query I rowsort label-2431
SELECT + COUNT ( * ) - + - 59 + + 17 col2
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2432
SELECT - CASE - 14 WHEN - 0 THEN NULL WHEN - 81 THEN + + 35 * + + NULLIF ( + CAST( + 19 AS SIGNED ), 99 ) + + 69 * + - ( + 28 ) WHEN - 26 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2432
SELECT - CASE - 14 WHEN - 0 THEN NULL WHEN - 81 THEN + + 35 * + + NULLIF ( + CAST ( + 19 AS INTEGER ), 99 ) + + 69 * + - ( + 28 ) WHEN - 26 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT 42 * 37 AS col1
----
1554

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

skipif mysql # not compatible
query I rowsort label-2434
SELECT ALL SUM ( DISTINCT 60 ) AS col1
----
60

query I rowsort
SELECT DISTINCT 35 * - ( ( - - 56 ) ) * + + 0 AS col2
----
0

query I rowsort
SELECT - 47 * + 31
----
-1457

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2437
SELECT ALL COALESCE ( - + 98, + - 33 DIV + + 97 + - NULLIF ( - 73, - 69 + + + COUNT( * ) + + ( + NULLIF ( - - 99, + 5 ) ) ), - - 90 + - ( MIN( - + 8 ) ) + - 59 * - 67 - ( + 55 ) * + 43 ), + CAST( + 49 AS SIGNED ) + + - 31 AS col0
----
-98
18

skipif mysql # not compatible
query II rowsort label-2437
SELECT ALL COALESCE ( - + 98, + - 33 / + + 97 + - NULLIF ( - 73, - 69 + + + COUNT ( * ) + + ( + NULLIF ( - - 99, + 5 ) ) ), - - 90 + - ( MIN ( - + 8 ) ) + - 59 * - 67 - ( + 55 ) * + 43 ), + CAST ( + 49 AS INTEGER ) + + - 31 AS col0
----
-98
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2438
SELECT - 23 - COUNT( * )
----
-24

skipif mysql # not compatible
query I rowsort label-2438
SELECT - 23 - COUNT ( * )
----
-24

query I rowsort
SELECT ALL - 28 - + 44 * + 72 AS col0
----
-3196

query I rowsort
SELECT - 17 * - - 70 * + 67
----
-79730

onlyif mysql # aggregate syntax: 
query II rowsort label-2441
SELECT - 81, COUNT( * ) * 84 AS col1
----
-81
84

skipif mysql # not compatible
query II rowsort label-2441
SELECT - 81, COUNT ( * ) * 84 AS col1
----
-81
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2442
SELECT DISTINCT - NULLIF ( + 29, 8 + - CASE - 48 WHEN + COUNT( * ) THEN 11 WHEN 51 THEN NULL ELSE - 19 END ) * + 45
----
-1305

skipif mysql # not compatible
query I rowsort label-2442
SELECT DISTINCT - NULLIF ( + 29, 8 + - CASE - 48 WHEN + COUNT ( * ) THEN 11 WHEN 51 THEN NULL ELSE - 19 END ) * + 45
----
-1305

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2443
SELECT ALL CASE - + 52 WHEN COALESCE ( + 80, - 77 / 47 - + - 60 + 76 ) THEN + 32 WHEN + + CAST( NULL AS SIGNED ) + ( + - 25 ) / + 70 * - - 55 THEN 78 / + + 57 WHEN 29 THEN NULL ELSE - 59 + - 99 END AS col1
----
-158

skipif mysql # not compatible
query I rowsort label-2443
SELECT ALL CASE - + 52 WHEN COALESCE ( + 80, - 77 / 47 - + - 60 + 76 ) THEN + 32 WHEN + + CAST ( NULL AS INTEGER ) + ( + - 25 ) / + 70 * - - 55 THEN 78 / + + 57 WHEN 29 THEN NULL ELSE - 59 + - 99 END AS col1
----
-158

onlyif mysql # aggregate syntax: 
query I rowsort label-2444
SELECT DISTINCT SUM( - - ( + - 85 ) ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-2444
SELECT DISTINCT SUM ( - - ( + - 85 ) ) AS col0
----
-85

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2447
SELECT ALL + - 37 * + - MAX( - 91 ) AS col2
----
-3367

skipif mysql # not compatible
query I rowsort label-2447
SELECT ALL + - 37 * + - MAX ( - 91 ) AS col2
----
-3367

query I rowsort
SELECT - 21 - + - 42
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-2449
SELECT - 26 DIV - 70 + - + 30 * - ( 25 ) + - 1 - 94
----
655

skipif mysql # not compatible
query I rowsort label-2449
SELECT - 26 / - 70 + - + 30 * - ( 25 ) + - 1 - 94
----
655

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2450
SELECT + COUNT( DISTINCT + + COALESCE ( + + CAST( - 6 AS SIGNED ), - 30 ) ) DIV + CAST( - 88 AS SIGNED ) * - + 36 col2, 47
----
0
47

skipif mysql # not compatible
query II rowsort label-2450
SELECT + COUNT ( DISTINCT + + COALESCE ( + + CAST ( - 6 AS INTEGER ), - 30 ) ) / + CAST ( - 88 AS INTEGER ) * - + 36 col2, 47
----
0
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2451
SELECT + 9 * - COUNT( * ) - + COALESCE ( + 91, 46 * - 32 + - 53, - 77 ) AS col1
----
-100

skipif mysql # not compatible
query I rowsort label-2451
SELECT + 9 * - COUNT ( * ) - + COALESCE ( + 91, 46 * - 32 + - 53, - 77 ) AS col1
----
-100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2452
SELECT ALL 62 * + - COUNT( ALL 88 ) + - + 20 * + 12 * + CAST( NULL AS SIGNED ) * + 88 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2452
SELECT ALL 62 * + - COUNT ( ALL 88 ) + - + 20 * + 12 * + CAST ( NULL AS INTEGER ) * + 88 AS col2
----
NULL

query I rowsort
SELECT ALL 24 * - 98 + - 71
----
-2423

query I rowsort
SELECT ALL - ( - + 76 ) * - 72 - - - 12 * - + 33 + + ( + 41 ) + 85
----
-4950

onlyif mysql # aggregate syntax: 
query I rowsort label-2455
SELECT DISTINCT - COUNT( * ) * - 50 * - COUNT( * ) - - 9
----
-41

skipif mysql # not compatible
query I rowsort label-2455
SELECT DISTINCT - COUNT ( * ) * - 50 * - COUNT ( * ) - - 9
----
-41

query I rowsort
SELECT ALL + 72 * - 79 * 57
----
-324216

query I rowsort
SELECT ALL 1 * - - ( + 84 )
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2458
SELECT ALL + NULLIF ( + CAST( + + 88 AS SIGNED ), - 88 ) * - - 13 * + - 39 - - - 49 + 72
----
-44593

skipif mysql # not compatible
query I rowsort label-2458
SELECT ALL + NULLIF ( + CAST ( + + 88 AS INTEGER ), - 88 ) * - - 13 * + - 39 - - - 49 + 72
----
-44593

query II rowsort
SELECT ALL 5, ( 2 ) AS col0
----
5
2

onlyif mysql # aggregate syntax: 
query II rowsort label-2460
SELECT ALL COUNT( * ) AS col0, 70 * + + ( 61 ) + - 89
----
1
4181

skipif mysql # not compatible
query II rowsort label-2460
SELECT ALL COUNT ( * ) AS col0, 70 * + + ( 61 ) + - 89
----
1
4181

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2461
SELECT DISTINCT CAST( NULL AS SIGNED ) * - + COUNT( * ) * - - SUM( + ( ( + 15 ) ) ) * 63 - - 12 * - 44 * - - CASE - 27 WHEN + ( - - COALESCE ( + 35, - 61, + 16 ) ) THEN - NULLIF ( 86, 45 / - 61 ) * + ( - + COUNT( DISTINCT 46 ) ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2461
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - + COUNT ( * ) * - - SUM ( + ( ( + 15 ) ) ) * 63 - - 12 * - 44 * - - CASE - 27 WHEN + ( - - COALESCE ( + 35, - 61, + 16 ) ) THEN - NULLIF ( 86, 45 / - 61 ) * + ( - + COUNT ( DISTINCT 46 ) ) ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2462
SELECT ALL + CASE - 76 WHEN CAST( NULL AS SIGNED ) THEN - 31 - - COUNT( * ) WHEN + + ( + + COALESCE ( + + ( + CASE 52 WHEN + ( 1 ) THEN + 55 WHEN 81 THEN + 42 * 72 WHEN 85 THEN NULL END ), + 94 * - 42 / + 33 * + + 36 ) ) THEN + + ( 2 ) WHEN - + 48 THEN COUNT( * ) / + 89 WHEN - 56 * MAX( - + 3 ) + - - COUNT( * ) * + COUNT( * ) + 50 * 40 THEN NULL ELSE NULL END * + 67 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2462
SELECT ALL + CASE - 76 WHEN CAST ( NULL AS INTEGER ) THEN - 31 - - COUNT ( * ) WHEN + + ( + + COALESCE ( + + ( + CASE 52 WHEN + ( 1 ) THEN + 55 WHEN 81 THEN + 42 * 72 WHEN 85 THEN NULL END ), + 94 * - 42 / + 33 * + + 36 ) ) THEN + + ( 2 ) WHEN - + 48 THEN COUNT ( * ) / + 89 WHEN - 56 * MAX ( - + 3 ) + - - COUNT ( * ) * + COUNT ( * ) + 50 * 40 THEN NULL ELSE NULL END * + 67 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2463
SELECT SUM( 85 )
----
85

skipif mysql # not compatible
query I rowsort label-2463
SELECT SUM ( 85 )
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-2464
SELECT - CAST( NULL AS SIGNED ) AS col0, ( - + 81 ) * 18, + - MIN( + 80 ) / - + CAST( NULL AS SIGNED ) * + ( + + 43 ) * - 19 AS col2
----
NULL
-1458
NULL

skipif mysql # not compatible
query III rowsort label-2464
SELECT - CAST ( NULL AS INTEGER ) AS col0, ( - + 81 ) * 18, + - MIN ( + 80 ) / - + CAST ( NULL AS INTEGER ) * + ( + + 43 ) * - 19 AS col2
----
NULL
-1458
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2465
SELECT + 11 DIV - 52
----
0

skipif mysql # not compatible
query I rowsort label-2465
SELECT + 11 / - 52
----
0

query I rowsort
SELECT - 17 * ( + 8 ) col1
----
-136

query I rowsort
SELECT - ( + + 47 ) col2
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-2468
SELECT + 5 + - 49 DIV 50 * 21
----
5

skipif mysql # not compatible
query I rowsort label-2468
SELECT + 5 + - 49 / 50 * 21
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2469
SELECT DISTINCT - 15 * - MIN( DISTINCT - 79 )
----
-1185

skipif mysql # not compatible
query I rowsort label-2469
SELECT DISTINCT - 15 * - MIN ( DISTINCT - 79 )
----
-1185

query I rowsort
SELECT + 81 + - + 4
----
77

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

query I rowsort
SELECT - 58 * + 66 col2
----
-3828

query I rowsort
SELECT ALL ( 50 ) AS col0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2474
SELECT ALL COALESCE ( ( COUNT( * ) ), 87 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2474
SELECT ALL COALESCE ( ( COUNT ( * ) ), 87 ) AS col2
----
1

query I rowsort
SELECT + 22 * - 9
----
-198

query II rowsort
SELECT ALL - NULLIF ( 49, - 59 ) + - 17, 32 AS col0
----
-66
32

query I rowsort
SELECT - + 39 * + 14
----
-546

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2478
SELECT ALL + 54 DIV + 53 + + - SUM( + + NULLIF ( + 22, + 60 ) ) AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-2478
SELECT ALL + 54 / + 53 + + - SUM ( + + NULLIF ( + 22, + 60 ) ) AS col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-2479
SELECT DISTINCT + - MAX( ALL 8 ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-2479
SELECT DISTINCT + - MAX ( ALL 8 ) AS col0
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2480
SELECT ALL + 90 DIV + - 56 * + COUNT( ALL + 97 ) + + + 24 + + COUNT( * ) - + - 71
----
95

skipif mysql # not compatible
query I rowsort label-2480
SELECT ALL + 90 / + - 56 * + COUNT ( ALL + 97 ) + + + 24 + + COUNT ( * ) - + - 71
----
95

query I rowsort
SELECT - 69 + 62 AS col1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2482
SELECT ALL + 68 * - 34 * - 35 + + MIN( ALL - + 16 )
----
80904

skipif mysql # not compatible
query I rowsort label-2482
SELECT ALL + 68 * - 34 * - 35 + + MIN ( ALL - + 16 )
----
80904

onlyif mysql # DIV for integer division: 
query II rowsort label-2483
SELECT ALL - 82 DIV + - 12 + COALESCE ( + + 10, - - 44, - 77 * + 73 + + 60 ) + + - 12 col2, 76 * - + 68 * + NULLIF ( + 18, - 77 )
----
4
-93024

skipif mysql # not compatible
query II rowsort label-2483
SELECT ALL - 82 / + - 12 + COALESCE ( + + 10, - - 44, - 77 * + 73 + + 60 ) + + - 12 col2, 76 * - + 68 * + NULLIF ( + 18, - 77 )
----
4
-93024

onlyif mysql # aggregate syntax: 
query I rowsort label-2484
SELECT - COUNT( + 92 ) + + - 77 * + 80 * - 27
----
166319

skipif mysql # not compatible
query I rowsort label-2484
SELECT - COUNT ( + 92 ) + + - 77 * + 80 * - 27
----
166319

onlyif mysql # aggregate syntax: 
query II rowsort label-2485
SELECT + MIN( - 90 ) AS col2, 1
----
-90
1

skipif mysql # not compatible
query II rowsort label-2485
SELECT + MIN ( - 90 ) AS col2, 1
----
-90
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2486
SELECT - MIN( + 78 ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-2486
SELECT - MIN ( + 78 ) AS col2
----
-78

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

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

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

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

query I rowsort
SELECT DISTINCT - CASE - 31 WHEN - 94 THEN NULL ELSE - NULLIF ( + 99, 4 ) * - + ( 75 ) * - 75 - ( + + 94 ) END col0
----
556969

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

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

query I rowsort
SELECT ( + COALESCE ( 77, - 48 + - 68 ) ) * + 68
----
5236

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

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

query II rowsort
SELECT + + 79 AS col2, - ( + - 56 )
----
79
56

query I rowsort
SELECT - 71 * 85 AS col2
----
-6035

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

query I rowsort
SELECT DISTINCT + COALESCE ( + 42, - - 69 ) - - + 38
----
80

query II rowsort
SELECT ALL + 28 - + - 89, 9 AS col1
----
117
9

onlyif mysql # aggregate syntax: 
query II rowsort label-2498
SELECT ALL COUNT( * ) * 86 AS col2, + 72 AS col2
----
86
72

skipif mysql # not compatible
query II rowsort label-2498
SELECT ALL COUNT ( * ) * 86 AS col2, + 72 AS col2
----
86
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2499
SELECT ( - MIN( + 20 ) ) * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2499
SELECT ( - MIN ( + 20 ) ) * - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ( - 55 ) + 76 AS col1
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2501
SELECT COALESCE ( + - 38, + 32 DIV - COUNT( * ), MAX( DISTINCT - 79 ) ) DIV - 42 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2501
SELECT COALESCE ( + - 38, + 32 / - COUNT ( * ), MAX ( DISTINCT - 79 ) ) / - 42 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2502
SELECT ( - NULLIF ( COUNT( ALL - 83 ), - 18 ) ) * - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-2502
SELECT ( - NULLIF ( COUNT ( ALL - 83 ), - 18 ) ) * - COUNT ( * )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2503
SELECT ALL CAST( NULL AS SIGNED ) / + - ( - + 17 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2503
SELECT ALL CAST ( NULL AS INTEGER ) / + - ( - + 17 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2504
SELECT ALL + 49 + COALESCE ( - + 90, - 66, - 20 * 63 * + - 47 ) col0, COUNT( * ) col1
----
-41
1

skipif mysql # not compatible
query II rowsort label-2504
SELECT ALL + 49 + COALESCE ( - + 90, - 66, - 20 * 63 * + - 47 ) col0, COUNT ( * ) col1
----
-41
1

query I rowsort
SELECT ( + - 23 ) + - + 94 AS col0
----
-117

query I rowsort
SELECT ALL 56 + + 64 * - - 80 + + 57
----
5233

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2507
SELECT ALL + + ( + 47 ) * - - NULLIF ( + CASE CASE - 43 WHEN - 69 * + 73 + - 48 / + 1 + - 40 * - - 10 + - + 15 THEN + + 30 WHEN + NULLIF ( + 0, + - 67 + + SUM( DISTINCT - + 31 ) + + 41 * + + 99 ) THEN - + CAST( 71 AS DECIMAL ) * + + 69 ELSE - - 63 * + 12 END WHEN - - 65 + + COUNT( * ) / - COUNT( * ) / - - COUNT( * ) THEN NULL ELSE 45 END, - 98 + + 60 + + 66 * - + COUNT( * ) + + COUNT( DISTINCT + 11 ) ) - 50
----
2065

skipif mysql # not compatible
query I rowsort label-2507
SELECT ALL + + ( + 47 ) * - - NULLIF ( + CASE CASE - 43 WHEN - 69 * + 73 + - 48 / + 1 + - 40 * - - 10 + - + 15 THEN + + 30 WHEN + NULLIF ( + 0, + - 67 + + SUM ( DISTINCT - + 31 ) + + 41 * + + 99 ) THEN - + CAST ( 71 AS REAL ) * + + 69 ELSE - - 63 * + 12 END WHEN - - 65 + + COUNT ( * ) / - COUNT ( * ) / - - COUNT ( * ) THEN NULL ELSE 45 END, - 98 + + 60 + + 66 * - + COUNT ( * ) + + COUNT ( DISTINCT + 11 ) ) - 50
----
2065

query I rowsort
SELECT + 66 * - 81 - 58 AS col0
----
-5404

onlyif mysql # aggregate syntax: 
query I rowsort label-2509
SELECT - 19 * ( + + 55 ) * + MAX( DISTINCT 84 ) + + + COUNT( * ) + - 84
----
-87863

skipif mysql # not compatible
query I rowsort label-2509
SELECT - 19 * ( + + 55 ) * + MAX ( DISTINCT 84 ) + + + COUNT ( * ) + - 84
----
-87863

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2511
SELECT 48 + + COUNT( * ) * 66
----
114

skipif mysql # not compatible
query I rowsort label-2511
SELECT 48 + + COUNT ( * ) * 66
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-2512
SELECT DISTINCT + NULLIF ( + CASE - COUNT( * ) WHEN + - NULLIF ( - ( 86 ), - + COUNT( * ) - - - 14 ) + + + 87 THEN NULL WHEN - 66 THEN + 11 END, + 71 * - - 6 + 15 ) * 88 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2512
SELECT DISTINCT + NULLIF ( + CASE - COUNT ( * ) WHEN + - NULLIF ( - ( 86 ), - + COUNT ( * ) - - - 14 ) + + + 87 THEN NULL WHEN - 66 THEN + 11 END, + 71 * - - 6 + 15 ) * 88 AS col1
----
NULL

query II rowsort
SELECT DISTINCT + 54 - 94, + 62 AS col0
----
-40
62

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2515
SELECT 32 * + MIN( + - ( 30 ) ) + - - 83 - - 35 * - MIN( + 81 ) * + 22 + + 53 + - 55 + ( COALESCE ( + NULLIF ( - ( 53 ), + 64 ), 94 + + + 0 ) ) - + + CASE + MIN( DISTINCT + - 15 ) WHEN - 64 THEN + 51 * + 86 / + 6 * 37 ELSE NULL END - + 81 + - 94 * + - 95 * - 5 * + - 23 * - - 58 col1, ( + - 14 )
----
NULL
-14

skipif mysql # not compatible
query II rowsort label-2515
SELECT 32 * + MIN ( + - ( 30 ) ) + - - 83 - - 35 * - MIN ( + 81 ) * + 22 + + 53 + - 55 + ( COALESCE ( + NULLIF ( - ( 53 ), + 64 ), 94 + + + 0 ) ) - + + CASE + MIN ( DISTINCT + - 15 ) WHEN - 64 THEN + 51 * + 86 / + 6 * 37 ELSE NULL END - + 81 + - 94 * + - 95 * - 5 * + - 23 * - - 58 col1, ( + - 14 )
----
NULL
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-2516
SELECT 93 DIV 27
----
3

skipif mysql # not compatible
query I rowsort label-2516
SELECT 93 / 27
----
3

query I rowsort
SELECT 28 * 70
----
1960

query I rowsort
SELECT 2 + - 24
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-2519
SELECT ALL - 76 col2, - 7 * - COUNT( * )
----
-76
7

skipif mysql # not compatible
query II rowsort label-2519
SELECT ALL - 76 col2, - 7 * - COUNT ( * )
----
-76
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2520
SELECT 32 * + 75 * - + 62 * - 46 + - - MIN( - 91 ) * + - 57 * - + 47 + - 65 AS col1
----
6600946

skipif mysql # not compatible
query I rowsort label-2520
SELECT 32 * + 75 * - + 62 * - 46 + - - MIN ( - 91 ) * + - 57 * - + 47 + - 65 AS col1
----
6600946

onlyif mysql # DIV for integer division: 
query I rowsort label-2521
SELECT ALL - 60 DIV 48 col1
----
-1

skipif mysql # not compatible
query I rowsort label-2521
SELECT ALL - 60 / 48 col1
----
-1

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

query II rowsort
SELECT DISTINCT - 54, + 18 AS col2
----
-54
18

query I rowsort
SELECT ALL 70 + - + 28
----
42

query I rowsort
SELECT ALL 29 + - 21
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2526
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + - COALESCE ( - ( 72 ), 44 * + 75 * - SUM( - 21 ) - + 2 * + 90, 73 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2526
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + - COALESCE ( - ( 72 ), 44 * + 75 * - SUM ( - 21 ) - + 2 * + 90, 73 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2527
SELECT COUNT( * ) + 72 AS col2
----
73

skipif mysql # not compatible
query I rowsort label-2527
SELECT COUNT ( * ) + 72 AS col2
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-2528
SELECT 78, - COUNT( * ) col1
----
78
-1

skipif mysql # not compatible
query II rowsort label-2528
SELECT 78, - COUNT ( * ) col1
----
78
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2529
SELECT ALL - + ( + 2 ) + + CASE + 39 WHEN 38 THEN + 21 WHEN + 97 * + - MIN( ALL - 95 ) * 11 + + + CASE - - 85 WHEN MAX( DISTINCT + - 72 ) / - + 26 + + 89 * 34 THEN - 13 WHEN + + 1 + - + CAST( - 72 AS SIGNED ) - - - 18 THEN NULL END THEN NULL END + + + 51 - 47 + + + CAST( NULL AS SIGNED ) / + - 2, NULLIF ( + 60, 9 - 49 ) - + - 6 + - ( + CASE + - 86 WHEN - + 81 * AVG ( - 12 ) * - + 90 + + COALESCE ( - 39 - COUNT( * ) * CAST( + CAST( CASE + MIN( ALL - 72 ) WHEN - ( 36 ) THEN + 89 ELSE NULL END AS SIGNED ) AS DECIMAL ), + 46 ) THEN ( NULLIF ( - 34, COALESCE ( COALESCE ( 59, + 73 * 47, - COUNT( * ) * 42, - 28 ), + 55 ) - - 34 ) ) END )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2529
SELECT ALL - + ( + 2 ) + + CASE + 39 WHEN 38 THEN + 21 WHEN + 97 * + - MIN ( ALL - 95 ) * 11 + + + CASE - - 85 WHEN MAX ( DISTINCT + - 72 ) / - + 26 + + 89 * 34 THEN - 13 WHEN + + 1 + - + CAST ( - 72 AS INTEGER ) - - - 18 THEN NULL END THEN NULL END + + + 51 - 47 + + + CAST ( NULL AS INTEGER ) / + - 2, NULLIF ( + 60, 9 - 49 ) - + - 6 + - ( + CASE + - 86 WHEN - + 81 * AVG ( - 12 ) * - + 90 + + COALESCE ( - 39 - COUNT ( * ) * CAST ( + CAST ( CASE + MIN ( ALL - 72 ) WHEN - ( 36 ) THEN + 89 ELSE NULL END AS INTEGER ) AS REAL ), + 46 ) THEN ( NULLIF ( - 34, COALESCE ( COALESCE ( 59, + 73 * 47, - COUNT ( * ) * 42, - 28 ), + 55 ) - - 34 ) ) END )
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2530
SELECT ALL + COUNT( * ) + CASE + + 46 WHEN - COUNT( DISTINCT - 91 ) THEN 28 ELSE NULL END * - 89 + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-2530
SELECT ALL + COUNT ( * ) + CASE + + 46 WHEN - COUNT ( DISTINCT - 91 ) THEN 28 ELSE NULL END * - 89 + 86
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2531
SELECT + ( - + COUNT( - - ( + 39 ) ) ) + - SUM( DISTINCT + 16 ) col2
----
-17

skipif mysql # not compatible
query I rowsort label-2531
SELECT + ( - + COUNT ( - - ( + 39 ) ) ) + - SUM ( DISTINCT + 16 ) col2
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2532
SELECT DISTINCT 72 + - 46 + + - COALESCE ( + SUM( DISTINCT + 76 ), - 70 / + 98, 7 + - 13 ) + - - CAST( NULL AS SIGNED ) * + 87 / - 3
----
NULL

skipif mysql # not compatible
query I rowsort label-2532
SELECT DISTINCT 72 + - 46 + + - COALESCE ( + SUM ( DISTINCT + 76 ), - 70 / + 98, 7 + - 13 ) + - - CAST ( NULL AS INTEGER ) * + 87 / - 3
----
NULL

query II rowsort
SELECT + 42 * + 61 + + 21, 62 AS col0
----
2583
62

onlyif mysql # DIV for integer division: 
query I rowsort label-2534
SELECT DISTINCT 29 DIV + 56 * + 36
----
0

skipif mysql # not compatible
query I rowsort label-2534
SELECT DISTINCT 29 / + 56 * + 36
----
0

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

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

query I rowsort
SELECT DISTINCT + 43 - 94 AS col1
----
-51

query II rowsort
SELECT ALL + - 75 AS col0, 34 AS col1
----
-75
34

onlyif mysql # aggregate syntax: 
query II rowsort label-2538
SELECT ALL + + 84, 11 * - 69 * + + COUNT( * ) + + + 23 col2
----
84
-736

skipif mysql # not compatible
query II rowsort label-2538
SELECT ALL + + 84, 11 * - 69 * + + COUNT ( * ) + + + 23 col2
----
84
-736

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2539
SELECT + - COALESCE ( - CAST( - 52 AS SIGNED ), 31 + - ( - + 87 ) ) / - + CASE 82 WHEN + - 64 - + - COUNT( * ) + - 10 + + ( + + COUNT( * ) ) + - 12 + + 81 * - 76 * NULLIF ( - - 67, ( 44 ) * - 45 * 86 ) THEN NULL WHEN + + MAX( - 1 ) * + MAX( + + 83 ) THEN + + ( - COUNT( * ) ) END AS col1, 53 + + + 60 AS col2
----
NULL
113

skipif mysql # not compatible
query II rowsort label-2539
SELECT + - COALESCE ( - CAST ( - 52 AS INTEGER ), 31 + - ( - + 87 ) ) / - + CASE 82 WHEN + - 64 - + - COUNT ( * ) + - 10 + + ( + + COUNT ( * ) ) + - 12 + + 81 * - 76 * NULLIF ( - - 67, ( 44 ) * - 45 * 86 ) THEN NULL WHEN + + MAX ( - 1 ) * + MAX ( + + 83 ) THEN + + ( - COUNT ( * ) ) END AS col1, 53 + + + 60 AS col2
----
NULL
113

query I rowsort
SELECT ALL - 24 * - + 57
----
1368

query II rowsort
SELECT ALL + - 6, 79 AS col1
----
-6
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2542
SELECT + NULLIF ( - 89, + 97 * - 26 - + 77 * 41 - - + 8 + SUM( + + 25 ) + + CAST( 38 AS SIGNED ) ) AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-2542
SELECT + NULLIF ( - 89, + 97 * - 26 - + 77 * 41 - - + 8 + SUM ( + + 25 ) + + CAST ( 38 AS INTEGER ) ) AS col1
----
-89

query I rowsort
SELECT - 18 * + 55
----
-990

onlyif mysql # DIV for integer division: 
query I rowsort label-2544
SELECT COALESCE ( - - 0, + 70 DIV + + 29 - + + 88 * 80 * - 95, - 87 )
----
0

skipif mysql # not compatible
query I rowsort label-2544
SELECT COALESCE ( - - 0, + 70 / + + 29 - + + 88 * 80 * - 95, - 87 )
----
0

query I rowsort
SELECT CASE - 49 WHEN - 18 THEN + - 92 + + 64 END AS col0
----
NULL

query I rowsort
SELECT ALL 64 * - 71 + + + 75 AS col2
----
-4469

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2547
SELECT ALL + SUM( - 49 ) AS col0, - 11 + - 60 + + 61 * - MIN( 23 ) * - 44 * - 43 - + + CAST( 30 AS SIGNED ) * + 87 col1
----
-49
-2657157

skipif mysql # not compatible
query II rowsort label-2547
SELECT ALL + SUM ( - 49 ) AS col0, - 11 + - 60 + + 61 * - MIN ( 23 ) * - 44 * - 43 - + + CAST ( 30 AS INTEGER ) * + 87 col1
----
-49
-2657157

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2548
SELECT ALL 70 * 16 + + + 30 + + + CAST( - + 60 AS SIGNED ) * + 83 AS col0
----
-3830

skipif mysql # not compatible
query I rowsort label-2548
SELECT ALL 70 * 16 + + + 30 + + + CAST ( - + 60 AS INTEGER ) * + 83 AS col0
----
-3830

query II rowsort
SELECT DISTINCT + ( - 75 ) col0, + ( 83 ) AS col1
----
-75
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2550
SELECT ALL - COUNT( * ) * + + CASE - 65 WHEN 68 * 10 * 57 * - COUNT( * ) THEN + + ( + 32 ) ELSE + 37 END + - - 18 AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-2550
SELECT ALL - COUNT ( * ) * + + CASE - 65 WHEN 68 * 10 * 57 * - COUNT ( * ) THEN + + ( + 32 ) ELSE + 37 END + - - 18 AS col1
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-2551
SELECT ALL COUNT( * ) * - COUNT( * ) + + + 96 AS col1
----
95

skipif mysql # not compatible
query I rowsort label-2551
SELECT ALL COUNT ( * ) * - COUNT ( * ) + + + 96 AS col1
----
95

query I rowsort
SELECT - 99 * 7
----
-693

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2553
SELECT - 16 DIV + + MAX( ALL - + 88 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2553
SELECT - 16 / + + MAX ( ALL - + 88 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2554
SELECT - MAX( - 93 ) + - 92
----
1

skipif mysql # not compatible
query I rowsort label-2554
SELECT - MAX ( - 93 ) + - 92
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2555
SELECT DISTINCT - 11 DIV + 17
----
0

skipif mysql # not compatible
query I rowsort label-2555
SELECT DISTINCT - 11 / + 17
----
0

query II rowsort
SELECT ALL - NULLIF ( + 61, - 15 ) + - + 14 AS col1, - 60 + - + 11 * 39 - + 26 AS col2
----
-75
-515

query II rowsort
SELECT DISTINCT ( - 87 ) AS col0, 65 * - 9 * - 62 * + 39
----
-87
1414530

query I rowsort
SELECT ALL - 41 + + 95 + + - 1 AS col0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-2559
SELECT - 21 * - - COUNT( * ) col1
----
-21

skipif mysql # not compatible
query I rowsort label-2559
SELECT - 21 * - - COUNT ( * ) col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-2560
SELECT - MAX( 61 )
----
-61

skipif mysql # not compatible
query I rowsort label-2560
SELECT - MAX ( 61 )
----
-61

query I rowsort
SELECT DISTINCT - 89 * - - 74
----
-6586

onlyif mysql # aggregate syntax: 
query II rowsort label-2562
SELECT + COUNT( 63 ) AS col0, 17
----
1
17

skipif mysql # not compatible
query II rowsort label-2562
SELECT + COUNT ( 63 ) AS col0, 17
----
1
17

query I rowsort
SELECT ALL - ( - 36 ) AS col0
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-2564
SELECT + + COUNT( * ) * - - NULLIF ( - + 32, + 78 / - 24 ) AS col2, 33 AS col1
----
-32
33

skipif mysql # not compatible
query II rowsort label-2564
SELECT + + COUNT ( * ) * - - NULLIF ( - + 32, + 78 / - 24 ) AS col2, 33 AS col1
----
-32
33

query I rowsort
SELECT - 95 + - 87
----
-182

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2567
SELECT DISTINCT COUNT( * ) * + COALESCE ( - 36, + 18 ) col0
----
-36

skipif mysql # not compatible
query I rowsort label-2567
SELECT DISTINCT COUNT ( * ) * + COALESCE ( - 36, + 18 ) col0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-2568
SELECT + 65 + + - CASE - - 57 WHEN - 7 + - COUNT( * ) * + + 42 THEN NULL WHEN + + 72 * + 59 THEN - - 20 WHEN + - 78 THEN NULL END + + COALESCE ( 3, + 77 * - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2568
SELECT + 65 + + - CASE - - 57 WHEN - 7 + - COUNT ( * ) * + + 42 THEN NULL WHEN + + 72 * + 59 THEN - - 20 WHEN + - 78 THEN NULL END + + COALESCE ( 3, + 77 * - COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2569
SELECT 42 * - + COUNT( * ) DIV - 71 + - 19
----
-19

skipif mysql # not compatible
query I rowsort label-2569
SELECT 42 * - + COUNT ( * ) / - 71 + - 19
----
-19

query I rowsort
SELECT ALL 65 * - + 81 AS col1
----
-5265

onlyif mysql # aggregate syntax: 
query I rowsort label-2571
SELECT - 9 * - COUNT( * ) + 32 AS col2
----
41

skipif mysql # not compatible
query I rowsort label-2571
SELECT - 9 * - COUNT ( * ) + 32 AS col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2572
SELECT ALL - 52 * + + COUNT( * ) + + + 78 AS col0
----
26

skipif mysql # not compatible
query I rowsort label-2572
SELECT ALL - 52 * + + COUNT ( * ) + + + 78 AS col0
----
26

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2574
SELECT ( - MAX( ALL - 89 ) )
----
89

skipif mysql # not compatible
query I rowsort label-2574
SELECT ( - MAX ( ALL - 89 ) )
----
89

query I rowsort
SELECT - 81 * + - 82 AS col0
----
6642

onlyif mysql # aggregate syntax: 
query I rowsort label-2576
SELECT CASE + 48 WHEN + AVG ( 46 ) + + 39 THEN NULL ELSE - - COUNT( * ) * + 13 END
----
13

skipif mysql # not compatible
query I rowsort label-2576
SELECT CASE + 48 WHEN + AVG ( 46 ) + + 39 THEN NULL ELSE - - COUNT ( * ) * + 13 END
----
13

query I rowsort
SELECT ALL 90 * - ( + - 75 ) - + - 93 AS col2
----
6843

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

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

query I rowsort
SELECT ALL 51 * 43 * - - 14
----
30702

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2580
SELECT - 70 AS col2, - COUNT( DISTINCT + NULLIF ( + 73, - 37 / + 39 * + - CAST( + 30 AS SIGNED ) * - - ( - 25 ) ) ) + + 59 AS col0
----
-70
58

skipif mysql # not compatible
query II rowsort label-2580
SELECT - 70 AS col2, - COUNT ( DISTINCT + NULLIF ( + 73, - 37 / + 39 * + - CAST ( + 30 AS INTEGER ) * - - ( - 25 ) ) ) + + 59 AS col0
----
-70
58

onlyif mysql # aggregate syntax: 
query II rowsort label-2581
SELECT ALL - ( - COUNT( DISTINCT + 55 ) ), 86 AS col0
----
1
86

skipif mysql # not compatible
query II rowsort label-2581
SELECT ALL - ( - COUNT ( DISTINCT + 55 ) ), 86 AS col0
----
1
86

query II rowsort
SELECT + 86 + - 2 * - - 96, 15 AS col2
----
-106
15

query I rowsort
SELECT + 55 - - 18 + - 69 + + 67 * - 14 * - 88 AS col0
----
82548

onlyif mysql # aggregate syntax: 
query I rowsort label-2584
SELECT CASE WHEN 87 > - + ( - 19 ) THEN - 97 * + 73 - - COUNT( * ) END + + 41
----
-7039

skipif mysql # not compatible
query I rowsort label-2584
SELECT CASE WHEN 87 > - + ( - 19 ) THEN - 97 * + 73 - - COUNT ( * ) END + + 41
----
-7039

onlyif mysql # aggregate syntax: 
query I rowsort label-2585
SELECT DISTINCT MAX( DISTINCT 93 )
----
93

skipif mysql # not compatible
query I rowsort label-2585
SELECT DISTINCT MAX ( DISTINCT 93 )
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-2586
SELECT 46 DIV 37 col2
----
1

skipif mysql # not compatible
query I rowsort label-2586
SELECT 46 / 37 col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2587
SELECT ALL + + 16 DIV + 55
----
0

skipif mysql # not compatible
query I rowsort label-2587
SELECT ALL + + 16 / + 55
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2588
SELECT DISTINCT - COALESCE ( 38, - + COUNT( * ) * + 89 ) * + COUNT( * ) AS col0, + 14
----
-38
14

skipif mysql # not compatible
query II rowsort label-2588
SELECT DISTINCT - COALESCE ( 38, - + COUNT ( * ) * + 89 ) * + COUNT ( * ) AS col0, + 14
----
-38
14

query I rowsort
SELECT - 79 * 72
----
-5688

query I rowsort
SELECT 23 + + 36
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2591
SELECT + ( 46 ) + - 6 * - - 42 + - CAST( + COUNT( * ) AS SIGNED ) AS col2
----
-207

skipif mysql # not compatible
query I rowsort label-2591
SELECT + ( 46 ) + - 6 * - - 42 + - CAST ( + COUNT ( * ) AS INTEGER ) AS col2
----
-207

onlyif mysql # aggregate syntax: 
query I rowsort label-2592
SELECT - NULLIF ( - 87, COUNT( * ) / + 40 / + + 30 + AVG ( 92 ) ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-2592
SELECT - NULLIF ( - 87, COUNT ( * ) / + 40 / + + 30 + AVG ( 92 ) ) AS col2
----
87

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2594
SELECT ALL - + COUNT( * ) + + 57
----
56

skipif mysql # not compatible
query I rowsort label-2594
SELECT ALL - + COUNT ( * ) + + 57
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2595
SELECT NULLIF ( + NULLIF ( + ( + 27 ), + NULLIF ( + 20, 68 ) ), - + MIN( DISTINCT 5 ) * CAST( NULL AS SIGNED ) ) * - 16 AS col0
----
-432

skipif mysql # not compatible
query I rowsort label-2595
SELECT NULLIF ( + NULLIF ( + ( + 27 ), + NULLIF ( + 20, 68 ) ), - + MIN ( DISTINCT 5 ) * CAST ( NULL AS INTEGER ) ) * - 16 AS col0
----
-432

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2596
SELECT ( - 24 ) + ( + + ( + CAST( NULL AS SIGNED ) ) ) / 35
----
NULL

skipif mysql # not compatible
query I rowsort label-2596
SELECT ( - 24 ) + ( + + ( + CAST ( NULL AS INTEGER ) ) ) / 35
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2597
SELECT ALL CAST( 0 AS SIGNED ) + 52 + + + CAST( - 32 AS SIGNED ) + + + CAST( 18 AS SIGNED )
----
38

skipif mysql # not compatible
query I rowsort label-2597
SELECT ALL CAST ( 0 AS INTEGER ) + 52 + + + CAST ( - 32 AS INTEGER ) + + + CAST ( 18 AS INTEGER )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2598
SELECT 31 * 56 * + COUNT( * )
----
1736

skipif mysql # not compatible
query I rowsort label-2598
SELECT 31 * 56 * + COUNT ( * )
----
1736

query I rowsort
SELECT ALL 53 + + + 37
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-2600
SELECT DISTINCT + ( + - 19 ) + + - MAX( DISTINCT + 7 ) AS col1, + 81
----
-26
81

skipif mysql # not compatible
query II rowsort label-2600
SELECT DISTINCT + ( + - 19 ) + + - MAX ( DISTINCT + 7 ) AS col1, + 81
----
-26
81

query I rowsort
SELECT 27 * 34 AS col2
----
918

onlyif mysql # aggregate syntax: 
query II rowsort label-2602
SELECT + 17 AS col1, COUNT( * ) * - MAX( DISTINCT + 4 )
----
17
-4

skipif mysql # not compatible
query II rowsort label-2602
SELECT + 17 AS col1, COUNT ( * ) * - MAX ( DISTINCT + 4 )
----
17
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2603
SELECT 37 - - 43 * - CAST( NULL AS SIGNED ) * - ( - + 74 ) * - 2 * + - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-2603
SELECT 37 - - 43 * - CAST ( NULL AS INTEGER ) * - ( - + 74 ) * - 2 * + - 14
----
NULL

query II rowsort
SELECT + 20 AS col2, - 52
----
20
-52

query II rowsort
SELECT ALL - 8, 35 + + 3 * + 30 col0
----
-8
125

onlyif mysql # DIV for integer division: 
query I rowsort label-2606
SELECT ALL 70 * + 88 * - COALESCE ( - 6, - 48 DIV + + 76, 12 * - - 78 )
----
36960

skipif mysql # not compatible
query I rowsort label-2606
SELECT ALL 70 * + 88 * - COALESCE ( - 6, - 48 / + + 76, 12 * - - 78 )
----
36960

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2607
SELECT COUNT( * ) DIV + 43 * - 6 * - 59 * - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-2607
SELECT COUNT ( * ) / + 43 * - 6 * - 59 * - COUNT ( * )
----
0

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

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

query I rowsort
SELECT ALL 63 * NULLIF ( + 79, + - 51 / + ( - 29 ) * + 37 + + COALESCE ( 97, + 76 + + - ( 21 ), + + 72 + 38 ) - 79 )
----
4977

onlyif mysql # aggregate syntax: 
query I rowsort label-2610
SELECT ALL - SUM( ALL - ( 52 ) )
----
52

skipif mysql # not compatible
query I rowsort label-2610
SELECT ALL - SUM ( ALL - ( 52 ) )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2611
SELECT ALL COUNT( * ) - - COUNT( - 95 )
----
2

skipif mysql # not compatible
query I rowsort label-2611
SELECT ALL COUNT ( * ) - - COUNT ( - 95 )
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-2612
SELECT ( 95 ) DIV - 21
----
-4

skipif mysql # not compatible
query I rowsort label-2612
SELECT ( 95 ) / - 21
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-2613
SELECT DISTINCT 10 * COUNT( * ) * - 11 * + 81
----
-8910

skipif mysql # not compatible
query I rowsort label-2613
SELECT DISTINCT 10 * COUNT ( * ) * - 11 * + 81
----
-8910

query II rowsort
SELECT DISTINCT - 14 col2, + 47
----
-14
47

onlyif mysql # aggregate syntax: 
query II rowsort label-2615
SELECT MAX( DISTINCT + + 51 ) + - + 12 * + - 71 col1, - 32
----
903
-32

skipif mysql # not compatible
query II rowsort label-2615
SELECT MAX ( DISTINCT + + 51 ) + - + 12 * + - 71 col1, - 32
----
903
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-2616
SELECT ALL + CASE - + 57 WHEN MIN( ALL + 22 ) + - - 61 THEN NULL WHEN + 16 THEN + + 99 / + - 18 + 37 END - 22 + + AVG ( ALL - 13 ) / - 49
----
NULL

skipif mysql # not compatible
query I rowsort label-2616
SELECT ALL + CASE - + 57 WHEN MIN ( ALL + 22 ) + - - 61 THEN NULL WHEN + 16 THEN + + 99 / + - 18 + 37 END - 22 + + AVG ( ALL - 13 ) / - 49
----
NULL

query I rowsort
SELECT + 61 * + 2 - - ( + 87 ) col1
----
209

onlyif mysql # aggregate syntax: 
query I rowsort label-2618
SELECT MAX( DISTINCT + 99 ) * - 37
----
-3663

skipif mysql # not compatible
query I rowsort label-2618
SELECT MAX ( DISTINCT + 99 ) * - 37
----
-3663

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2619
SELECT DISTINCT - NULLIF ( - CASE + 91 WHEN - 14 THEN NULL WHEN + + CASE ( - ( CAST( - 56 AS SIGNED ) ) ) WHEN 64 + - - COALESCE ( + 78, + AVG ( + 97 ) + + 88 ) THEN NULL WHEN + 88 THEN NULL WHEN 57 THEN + 7 WHEN + 94 THEN NULL END + - + 51 + - NULLIF ( 53, - 17 ) THEN + + 70 END, - - 37 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2619
SELECT DISTINCT - NULLIF ( - CASE + 91 WHEN - 14 THEN NULL WHEN + + CASE ( - ( CAST ( - 56 AS INTEGER ) ) ) WHEN 64 + - - COALESCE ( + 78, + AVG ( + 97 ) + + 88 ) THEN NULL WHEN + 88 THEN NULL WHEN 57 THEN + 7 WHEN + 94 THEN NULL END + - + 51 + - NULLIF ( 53, - 17 ) THEN + + 70 END, - - 37 )
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2622
SELECT ALL + - 81 * + - COUNT( * ) * - - 58
----
4698

skipif mysql # not compatible
query I rowsort label-2622
SELECT ALL + - 81 * + - COUNT ( * ) * - - 58
----
4698

query I rowsort
SELECT 69 * - 79 * 12 AS col2
----
-65412

query II rowsort
SELECT ALL - 12 AS col1, 1 - 62 AS col2
----
-12
-61

query II rowsort
SELECT ALL 0 AS col2, 82 AS col0
----
0
82

query I rowsort
SELECT ALL - 48 + 6 * + - 37 + + 81 AS col2
----
-189

query I rowsort
SELECT ( + 74 ) * + 6 col1
----
444

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2628
SELECT 79 - CAST( NULL AS SIGNED ) * + 3 * - CASE 92 WHEN + CASE + + 73 WHEN - - 15 THEN - - 96 END THEN NULL ELSE 96 / + + COALESCE ( 80, + 20 - COUNT( * ) ) + + 13 END - - 10 + + 42 * - 10 * 80 * - COUNT( * ) * + 26 * + NULLIF ( + 3, - 33 / + + 63 + - - COUNT( * ) ) + - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-2628
SELECT 79 - CAST ( NULL AS INTEGER ) * + 3 * - CASE 92 WHEN + CASE + + 73 WHEN - - 15 THEN - - 96 END THEN NULL ELSE 96 / + + COALESCE ( 80, + 20 - COUNT ( * ) ) + + 13 END - - 10 + + 42 * - 10 * 80 * - COUNT ( * ) * + 26 * + NULLIF ( + 3, - 33 / + + 63 + - - COUNT ( * ) ) + - 28
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2629
SELECT DISTINCT + 46 * - COUNT( * ) * 5
----
-230

skipif mysql # not compatible
query I rowsort label-2629
SELECT DISTINCT + 46 * - COUNT ( * ) * 5
----
-230

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2632
SELECT 71 * NULLIF ( - 19, + COUNT( * ) / - 86 - + - 57 / + 51 ) AS col2
----
-1349

skipif mysql # not compatible
query I rowsort label-2632
SELECT 71 * NULLIF ( - 19, + COUNT ( * ) / - 86 - + - 57 / + 51 ) AS col2
----
-1349

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2633
SELECT ALL - 43 * 91 DIV + CAST( + 61 AS SIGNED ) AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-2633
SELECT ALL - 43 * 91 / + CAST ( + 61 AS INTEGER ) AS col1
----
-64

query I rowsort
SELECT 17 * 4 AS col1
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-2635
SELECT ALL + 63 DIV - 78 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2635
SELECT ALL + 63 / - 78 AS col2
----
0

query I rowsort
SELECT ALL ( + + 44 ) + + 27
----
71

query I rowsort
SELECT DISTINCT + 97 * + + ( + 75 )
----
7275

onlyif mysql # aggregate syntax: 
query I rowsort label-2638
SELECT ALL + 42 + - COUNT( * ) * - 31 + + + 64 + - - 54 + - - COUNT( ALL 31 ) * + 87 col1
----
278

skipif mysql # not compatible
query I rowsort label-2638
SELECT ALL + 42 + - COUNT ( * ) * - 31 + + + 64 + - - 54 + - - COUNT ( ALL 31 ) * + 87 col1
----
278

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2639
SELECT DISTINCT - SUM( DISTINCT - CAST( 8 AS SIGNED ) ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-2639
SELECT DISTINCT - SUM ( DISTINCT - CAST ( 8 AS INTEGER ) ) AS col1
----
8

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

skipif mysql # not compatible
query I rowsort label-2640
SELECT - 1 * + COUNT ( * ) + + 4 AS col0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2641
SELECT COUNT( * ) / CASE 35 WHEN - 88 + + - CAST( NULL AS SIGNED ) THEN NULL WHEN - - 19 THEN - MIN( DISTINCT + - 14 ) ELSE NULL END + + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-2641
SELECT COUNT ( * ) / CASE 35 WHEN - 88 + + - CAST ( NULL AS INTEGER ) THEN NULL WHEN - - 19 THEN - MIN ( DISTINCT + - 14 ) ELSE NULL END + + 71
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2642
SELECT 56 + + 56 * - + 0 + CAST( - CAST( - ( + NULLIF ( 11, 54 ) ) AS SIGNED ) AS SIGNED )
----
67

skipif mysql # not compatible
query I rowsort label-2642
SELECT 56 + + 56 * - + 0 + CAST ( - CAST ( - ( + NULLIF ( 11, 54 ) ) AS INTEGER ) AS INTEGER )
----
67

query I rowsort
SELECT ALL 38 * 78 - + 0 * 91 * + 18 + 33
----
2997

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

skipif mysql # not compatible
query I rowsort label-2644
SELECT ALL + CAST ( NULL AS INTEGER ) * - - 61
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2645
SELECT - COALESCE ( - 61, + 17 * 21, - + COUNT( + 21 ) * 31 + - - COUNT( * ), + COUNT( * ) + + 72 + - 82 * + 33 * + COUNT( * ) * - CASE - 68 WHEN - 94 * - + ( CAST( - 22 AS SIGNED ) ) THEN NULL ELSE + 32 END ) * + + CAST( - 15 AS SIGNED ) AS col0, 74 + 70 * - 5 * - - 81 AS col0
----
-915
-28276

skipif mysql # not compatible
query II rowsort label-2645
SELECT - COALESCE ( - 61, + 17 * 21, - + COUNT ( + 21 ) * 31 + - - COUNT ( * ), + COUNT ( * ) + + 72 + - 82 * + 33 * + COUNT ( * ) * - CASE - 68 WHEN - 94 * - + ( CAST ( - 22 AS INTEGER ) ) THEN NULL ELSE + 32 END ) * + + CAST ( - 15 AS INTEGER ) AS col0, 74 + 70 * - 5 * - - 81 AS col0
----
-915
-28276

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2646
SELECT + CAST( NULL AS SIGNED ) * + 52 AS col2, 54
----
NULL
54

skipif mysql # not compatible
query II rowsort label-2646
SELECT + CAST ( NULL AS INTEGER ) * + 52 AS col2, 54
----
NULL
54

query I rowsort
SELECT + 74 + - 56
----
18

query I rowsort
SELECT - 54 * 9 * - + 7 * 11
----
37422

onlyif mysql # aggregate syntax: 
query I rowsort label-2649
SELECT ALL 12 * - + MAX( DISTINCT + 28 ) * + - ( + 42 ) - + 18
----
14094

skipif mysql # not compatible
query I rowsort label-2649
SELECT ALL 12 * - + MAX ( DISTINCT + 28 ) * + - ( + 42 ) - + 18
----
14094

onlyif mysql # aggregate syntax: 
query I rowsort label-2650
SELECT ALL - MAX( 92 ) * + + 87
----
-8004

skipif mysql # not compatible
query I rowsort label-2650
SELECT ALL - MAX ( 92 ) * + + 87
----
-8004

onlyif mysql # aggregate syntax: 
query I rowsort label-2651
SELECT DISTINCT + CASE 17 WHEN + 7 THEN NULL WHEN 81 + + MIN( DISTINCT - + CASE - 59 WHEN - 67 THEN NULL WHEN - + 74 THEN + - 13 END ) THEN + - 32 ELSE 79 + + - 23 END + 16
----
72

skipif mysql # not compatible
query I rowsort label-2651
SELECT DISTINCT + CASE 17 WHEN + 7 THEN NULL WHEN 81 + + MIN ( DISTINCT - + CASE - 59 WHEN - 67 THEN NULL WHEN - + 74 THEN + - 13 END ) THEN + - 32 ELSE 79 + + - 23 END + 16
----
72

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

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

query I rowsort
SELECT DISTINCT 73 + 67 AS col2
----
140

onlyif mysql # DIV for integer division: 
query I rowsort label-2654
SELECT - - 2 DIV + ( + 88 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2654
SELECT - - 2 / + ( + 88 ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2655
SELECT + + 97 DIV 78 + - - 91 AS col0
----
92

skipif mysql # not compatible
query I rowsort label-2655
SELECT + + 97 / 78 + - - 91 AS col0
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2656
SELECT + 31 * + CAST( 61 AS SIGNED ) * 0
----
0

skipif mysql # not compatible
query I rowsort label-2656
SELECT + 31 * + CAST ( 61 AS INTEGER ) * 0
----
0

query I rowsort
SELECT + 70 + 57
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-2658
SELECT + MAX( + ( + 70 ) ) + - 61 * + - 21 AS col0
----
1351

skipif mysql # not compatible
query I rowsort label-2658
SELECT + MAX ( + ( + 70 ) ) + - 61 * + - 21 AS col0
----
1351

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2659
SELECT - ( + + 67 ) - - 41 AS col1, - ( + CAST( + - CASE + 19 WHEN - NULLIF ( - + 50, + CAST( - 13 AS SIGNED ) / 56 * - 90 * + 1 + - - 81 * + 29 * COUNT( * ) ) * COUNT( * ) * 31 + ( - 82 ) * 37 + + 83 THEN + ( + 6 ) END AS DECIMAL ) ) AS col1
----
-26
NULL

skipif mysql # not compatible
query II rowsort label-2659
SELECT - ( + + 67 ) - - 41 AS col1, - ( + CAST ( + - CASE + 19 WHEN - NULLIF ( - + 50, + CAST ( - 13 AS INTEGER ) / 56 * - 90 * + 1 + - - 81 * + 29 * COUNT ( * ) ) * COUNT ( * ) * 31 + ( - 82 ) * 37 + + 83 THEN + ( + 6 ) END AS REAL ) ) AS col1
----
-26
NULL

query I rowsort
SELECT DISTINCT + 25 + 83
----
108

query I rowsort
SELECT + 97 + - 96
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2662
SELECT ALL - 50 + - CASE - + 0 WHEN - COUNT( 86 ) THEN NULL ELSE + 19 + - MAX( DISTINCT + 14 ) END AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-2662
SELECT ALL - 50 + - CASE - + 0 WHEN - COUNT ( 86 ) THEN NULL ELSE + 19 + - MAX ( DISTINCT + 14 ) END AS col1
----
-55

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2663
SELECT ALL COUNT( + CAST( NULL AS DECIMAL ) ), 4 AS col1
----
0
4

skipif mysql # not compatible
query II rowsort label-2663
SELECT ALL COUNT ( + CAST ( NULL AS REAL ) ), 4 AS col1
----
0
4

query I rowsort
SELECT ALL + 10 * - 77
----
-770

onlyif mysql # aggregate syntax: 
query II rowsort label-2665
SELECT - NULLIF ( - + 58, - MAX( - 26 ) ) AS col0, - 52 col0
----
58
-52

skipif mysql # not compatible
query II rowsort label-2665
SELECT - NULLIF ( - + 58, - MAX ( - 26 ) ) AS col0, - 52 col0
----
58
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-2666
SELECT - CASE + COUNT( * ) WHEN + ( - - COUNT( * ) ) * - 26 THEN + 5 + ( + 48 ) WHEN 75 + + 59 THEN + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2666
SELECT - CASE + COUNT ( * ) WHEN + ( - - COUNT ( * ) ) * - 26 THEN + 5 + ( + 48 ) WHEN 75 + + 59 THEN + COUNT ( * ) END
----
NULL

query I rowsort
SELECT - 88 + - 41
----
-129

onlyif mysql # DIV for integer division: 
query I rowsort label-2668
SELECT + 0 DIV - - ( + 78 )
----
0

skipif mysql # not compatible
query I rowsort label-2668
SELECT + 0 / - - ( + 78 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2669
SELECT - 70 DIV + 72 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2669
SELECT - 70 / + 72 AS col2
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2671
SELECT - COALESCE ( - + 54, - - 41, 91 * + + 87 * + 14 + - 23 + - 82 - MIN( DISTINCT + + 42 ) + + - COUNT( * ) ) * - 75 * 39
----
-157950

skipif mysql # not compatible
query I rowsort label-2671
SELECT - COALESCE ( - + 54, - - 41, 91 * + + 87 * + 14 + - 23 + - 82 - MIN ( DISTINCT + + 42 ) + + - COUNT ( * ) ) * - 75 * 39
----
-157950

query I rowsort
SELECT ALL - 48 * - + 53 col1
----
2544

onlyif mysql # DIV for integer division: 
query I rowsort label-2673
SELECT ALL - 76 DIV + 99 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2673
SELECT ALL - 76 / + 99 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2674
SELECT + 34 DIV 48
----
0

skipif mysql # not compatible
query I rowsort label-2674
SELECT + 34 / 48
----
0

query I rowsort
SELECT - 40 * 37 AS col1
----
-1480

query I rowsort
SELECT + COALESCE ( + 33, NULLIF ( + 19, + 83 ) ) * 27 col0
----
891

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

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

query I rowsort
SELECT - 86 - + 60
----
-146

query I rowsort
SELECT ALL + 72 * + 52
----
3744

onlyif mysql # aggregate syntax: 
query I rowsort label-2680
SELECT ALL + COUNT( ALL + 16 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2680
SELECT ALL + COUNT ( ALL + 16 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2681
SELECT ALL - 81 * + COALESCE ( 59, + 69 + + 62 * + - CAST( + 43 AS SIGNED ) ) * - 14 - 29 * + + MIN( - - 5 ) + - 76 * + 27 - + 20 - + - 84
----
64773

skipif mysql # not compatible
query I rowsort label-2681
SELECT ALL - 81 * + COALESCE ( 59, + 69 + + 62 * + - CAST ( + 43 AS INTEGER ) ) * - 14 - 29 * + + MIN ( - - 5 ) + - 76 * + 27 - + 20 - + - 84
----
64773

query I rowsort
SELECT + 81 * 37 + - 46 + + 39 AS col0
----
2990

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2683
SELECT DISTINCT + + NULLIF ( 68, - + 91 * + 4 - - MAX( 81 ) + ( - 92 ) * + 25 * - 13 ) * - ( + CASE 25 WHEN - 30 THEN - CASE - - 73 WHEN - 90 * COUNT( * ) + - + 11 THEN 78 * + + 6 ELSE 68 + + 19 END WHEN - 5 * 72 THEN MAX( DISTINCT - 43 ) END ) * + 90 * CAST( + 12 AS SIGNED ) - + 83 / + 83 + + - COUNT( * ) + + COUNT( * ) + - - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-2683
SELECT DISTINCT + + NULLIF ( 68, - + 91 * + 4 - - MAX ( 81 ) + ( - 92 ) * + 25 * - 13 ) * - ( + CASE 25 WHEN - 30 THEN - CASE - - 73 WHEN - 90 * COUNT ( * ) + - + 11 THEN 78 * + + 6 ELSE 68 + + 19 END WHEN - 5 * 72 THEN MAX ( DISTINCT - 43 ) END ) * + 90 * CAST ( + 12 AS INTEGER ) - + 83 / + 83 + + - COUNT ( * ) + + COUNT ( * ) + - - 58
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2684
SELECT + - 68 * NULLIF ( CASE - + 55 WHEN + 60 THEN - - 53 END, - MAX( 11 ) ) AS col1, 50 AS col0
----
NULL
50

skipif mysql # not compatible
query II rowsort label-2684
SELECT + - 68 * NULLIF ( CASE - + 55 WHEN + 60 THEN - - 53 END, - MAX ( 11 ) ) AS col1, 50 AS col0
----
NULL
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2685
SELECT - + COUNT( * ) * + + 8 * ( - 83 ) * 12 DIV + + 2 + 88
----
4072

skipif mysql # not compatible
query I rowsort label-2685
SELECT - + COUNT ( * ) * + + 8 * ( - 83 ) * 12 / + + 2 + 88
----
4072

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2686
SELECT - CAST( + + 26 AS SIGNED ) + + 36 AS col0, - 94 * + - MAX( - 56 ) AS col1
----
10
-5264

skipif mysql # not compatible
query II rowsort label-2686
SELECT - CAST ( + + 26 AS INTEGER ) + + 36 AS col0, - 94 * + - MAX ( - 56 ) AS col1
----
10
-5264

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

skipif mysql # not compatible
query II rowsort label-2687
SELECT - - 8 AS col2, COUNT ( * ) AS col0
----
8
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2688
SELECT - 73 + - 7 + - + CASE 78 WHEN + CASE - - COUNT( * ) WHEN + - COUNT( * ) + - 91 * - ( + 71 ) THEN NULL WHEN + - 18 THEN NULL ELSE + COUNT( * ) END THEN + + 80 END / - 91
----
NULL

skipif mysql # not compatible
query I rowsort label-2688
SELECT - 73 + - 7 + - + CASE 78 WHEN + CASE - - COUNT ( * ) WHEN + - COUNT ( * ) + - 91 * - ( + 71 ) THEN NULL WHEN + - 18 THEN NULL ELSE + COUNT ( * ) END THEN + + 80 END / - 91
----
NULL

query I rowsort
SELECT ALL + 96 * CASE + 87 WHEN - 33 * + + 70 * - ( - - 85 ) THEN + - 83 WHEN + + 18 THEN + 8 END col1
----
NULL

query I rowsort
SELECT ALL + + 60 * + 40 + + 65
----
2465

query I rowsort
SELECT ALL - 21 * - 61
----
1281

query I rowsort
SELECT DISTINCT 30 * + 97 AS col2
----
2910

query I rowsort
SELECT ALL 92 * - - 80 AS col1
----
7360

query I rowsort
SELECT - 24 - - 92 AS col2
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2695
SELECT - NULLIF ( + 86, CAST( AVG ( 88 ) AS SIGNED ) )
----
-86

skipif mysql # not compatible
query I rowsort label-2695
SELECT - NULLIF ( + 86, CAST ( AVG ( 88 ) AS INTEGER ) )
----
-86

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

query I rowsort
SELECT + 59 * - - 24 AS col1
----
1416

query I rowsort
SELECT + 76 + + 19 * + 31 * + 35 + + 96 + + 56
----
20843

onlyif mysql # aggregate syntax: 
query I rowsort label-2699
SELECT ALL MAX( - 73 )
----
-73

skipif mysql # not compatible
query I rowsort label-2699
SELECT ALL MAX ( - 73 )
----
-73

query I rowsort
SELECT + 29 * + - 84
----
-2436

query I rowsort
SELECT ALL 41 * + 87
----
3567

onlyif mysql # aggregate syntax: 
query I rowsort label-2702
SELECT + 46 - + COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-2702
SELECT + 46 - + COUNT ( * )
----
45

query I rowsort
SELECT ( - + 72 ) - + + ( - + 41 ) AS col2
----
-31

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2704
SELECT COALESCE ( - CAST( - 46 AS SIGNED ), - 20 DIV + 64 * 52 + - 19 - + 5 + + 33 * + 44, 33 ) DIV - 72 + + ( ( + - 87 ) ) col1
----
-87

skipif mysql # not compatible
query I rowsort label-2704
SELECT COALESCE ( - CAST ( - 46 AS INTEGER ), - 20 / + 64 * 52 + - 19 - + 5 + + 33 * + 44, 33 ) / - 72 + + ( ( + - 87 ) ) col1
----
-87

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

skipif mysql # not compatible
query I rowsort label-2705
SELECT DISTINCT 86 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2706
SELECT ALL 45 + + ( + - COUNT( * ) ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-2706
SELECT ALL 45 + + ( + - COUNT ( * ) ) AS col0
----
44

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

skipif mysql # not compatible
query I rowsort label-2707
SELECT DISTINCT - COUNT ( DISTINCT 47 ) / + 73 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2708
SELECT DISTINCT + - 7 DIV 99 + 3 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-2708
SELECT DISTINCT + - 7 / 99 + 3 AS col1
----
3

query I rowsort
SELECT DISTINCT - - 45 + - 89
----
-44

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

query I rowsort
SELECT DISTINCT - 67 * - 65
----
4355

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2713
SELECT COUNT( * ) + - - CAST( - - COUNT( * ) AS SIGNED ) + + + COUNT( DISTINCT + 99 ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-2713
SELECT COUNT ( * ) + - - CAST ( - - COUNT ( * ) AS INTEGER ) + + + COUNT ( DISTINCT + 99 ) AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2714
SELECT - 46 * + COUNT( * ) * - + 14 - 79 AS col1
----
565

skipif mysql # not compatible
query I rowsort label-2714
SELECT - 46 * + COUNT ( * ) * - + 14 - 79 AS col1
----
565

query I rowsort
SELECT 37 + + 19
----
56

query II rowsort
SELECT 47 + + 73 * - + ( + ( - 87 ) ) AS col0, 56 + - 17
----
6398
39

query I rowsort
SELECT 66 * 89
----
5874

query I rowsort
SELECT 82 + 36 AS col0
----
118

onlyif mysql # DIV for integer division: 
query I rowsort label-2719
SELECT 56 DIV - 27 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-2719
SELECT 56 / - 27 AS col2
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2720
SELECT 44, CAST( - - CASE - 22 WHEN - - 14 THEN NULL WHEN 14 THEN NULL WHEN + - 34 THEN - 69 / - ( 96 ) + - - 30 END AS SIGNED ) AS col0
----
44
NULL

skipif mysql # not compatible
query II rowsort label-2720
SELECT 44, CAST ( - - CASE - 22 WHEN - - 14 THEN NULL WHEN 14 THEN NULL WHEN + - 34 THEN - 69 / - ( 96 ) + - - 30 END AS INTEGER ) AS col0
----
44
NULL

query II rowsort
SELECT ALL 27, + 67 AS col1
----
27
67

query I rowsort
SELECT DISTINCT - 3 + + + 12 - - 87 * - - 22 AS col1
----
1923

query I rowsort
SELECT ALL 33 + + 94 * - - 19
----
1819

query I rowsort
SELECT 91 * 66 AS col2
----
6006

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2725
SELECT ALL - 86 + + + NULLIF ( 20, + CAST( + - 38 AS SIGNED ) + - ( + CAST( + COUNT( * ) AS SIGNED ) ) / - 75 ) col0
----
-66

skipif mysql # not compatible
query I rowsort label-2725
SELECT ALL - 86 + + + NULLIF ( 20, + CAST ( + - 38 AS INTEGER ) + - ( + CAST ( + COUNT ( * ) AS INTEGER ) ) / - 75 ) col0
----
-66

query II rowsort
SELECT + 35 AS col0, 95
----
35
95

query I rowsort
SELECT 92 * - + ( - 70 )
----
6440

onlyif mysql # DIV for integer division: 
query I rowsort label-2728
SELECT + 70 + + 7 + 65 DIV - ( 8 ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-2728
SELECT + 70 + + 7 + 65 / - ( 8 ) AS col0
----
69

query I rowsort
SELECT DISTINCT - 79 + 68 AS col0
----
-11

query I rowsort
SELECT ALL - 20 + + 4 AS col2
----
-16

query I rowsort
SELECT + 28 - - - 67 AS col1
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2732
SELECT DISTINCT NULLIF ( - - MIN( DISTINCT + - 18 ), + CAST( NULL AS SIGNED ) ) + + 23 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-2732
SELECT DISTINCT NULLIF ( - - MIN ( DISTINCT + - 18 ), + CAST ( NULL AS INTEGER ) ) + + 23 AS col0
----
5

query I rowsort
SELECT DISTINCT - + ( + - 43 ) AS col2
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-2734
SELECT DISTINCT - 79 AS col1, CASE + 97 WHEN 92 THEN COUNT( * ) WHEN - 87 THEN NULL ELSE NULL END * - 67 + + 30 * + - COALESCE ( - + AVG ( + 28 ), - + 95 + - COUNT( DISTINCT + 55 ), + 67 ) AS col0
----
-79
NULL

skipif mysql # not compatible
query II rowsort label-2734
SELECT DISTINCT - 79 AS col1, CASE + 97 WHEN 92 THEN COUNT ( * ) WHEN - 87 THEN NULL ELSE NULL END * - 67 + + 30 * + - COALESCE ( - + AVG ( + 28 ), - + 95 + - COUNT ( DISTINCT + 55 ), + 67 ) AS col0
----
-79
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2735
SELECT - 64 * - - COUNT( DISTINCT 72 )
----
-64

skipif mysql # not compatible
query I rowsort label-2735
SELECT - 64 * - - COUNT ( DISTINCT 72 )
----
-64

query I rowsort
SELECT ALL - - 67 - + 50 AS col2
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-2737
SELECT DISTINCT - - 51, + COUNT( * ) AS col1
----
51
1

skipif mysql # not compatible
query II rowsort label-2737
SELECT DISTINCT - - 51, + COUNT ( * ) AS col1
----
51
1

query I rowsort
SELECT 30 - + + 49 AS col1
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-2739
SELECT + 30 * 91 DIV + 61 col0
----
44

skipif mysql # not compatible
query I rowsort label-2739
SELECT + 30 * 91 / + 61 col0
----
44

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2740
SELECT ALL + 2 / - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2740
SELECT ALL + 2 / - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2741
SELECT + NULLIF ( - SUM( ALL - 9 ), - COUNT( * ) ) col0
----
9

skipif mysql # not compatible
query I rowsort label-2741
SELECT + NULLIF ( - SUM ( ALL - 9 ), - COUNT ( * ) ) col0
----
9

query II rowsort
SELECT DISTINCT 41 AS col1, 73 col2
----
41
73

query II rowsort
SELECT ALL - 79 * - 40 AS col2, ( + 93 )
----
3160
93

query II rowsort
SELECT - 55 AS col1, + 18 col0
----
-55
18

query I rowsort
SELECT + 17 * + - 10 col1
----
-170

query I rowsort
SELECT ALL - 17 + + ( 28 ) + - + COALESCE ( + - 15, ( 41 ), + 81 ) * + - 38
----
-559

query I rowsort
SELECT - 11 - - NULLIF ( 30, + + 63 ) AS col0
----
19

query I rowsort
SELECT - 76 * + - 11 AS col1
----
836

query I rowsort
SELECT ALL - 90 + - 39 - + 81
----
-210

query I rowsort
SELECT - 63 + - - 57 - - 56 * + 34
----
1898

query I rowsort
SELECT ALL - 17 + + 75 + + 71 * - 7
----
-439

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2752
SELECT - CAST( NULL AS SIGNED ) / - CASE + 71 WHEN COUNT( * ) THEN - + CASE + + 74 WHEN + 87 + + 76 THEN + 7 ELSE NULL END * + 80 * + 63 END / + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-2752
SELECT - CAST ( NULL AS INTEGER ) / - CASE + 71 WHEN COUNT ( * ) THEN - + CASE + + 74 WHEN + 87 + + 76 THEN + 7 ELSE NULL END * + 80 * + 63 END / + 83
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2753
SELECT ALL + COUNT( * ) + - + 6 - - 14
----
9

skipif mysql # not compatible
query I rowsort label-2753
SELECT ALL + COUNT ( * ) + - + 6 - - 14
----
9

query I rowsort
SELECT - 33 - + + 20
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-2755
SELECT ALL + NULLIF ( - 93, - + 19 + - NULLIF ( - 92, - 20 + 90 ) ) * + COUNT( * ) + + 33 AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-2755
SELECT ALL + NULLIF ( - 93, - + 19 + - NULLIF ( - 92, - 20 + 90 ) ) * + COUNT ( * ) + + 33 AS col2
----
-60

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

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

query I rowsort
SELECT ALL + 61 * - - 4 + - + 11 AS col0
----
233

onlyif mysql # aggregate syntax: 
query I rowsort label-2758
SELECT COUNT( * ) * - + 16 + - - 21
----
5

skipif mysql # not compatible
query I rowsort label-2758
SELECT COUNT ( * ) * - + 16 + - - 21
----
5

query II rowsort
SELECT 14, ( + 20 ) * - 39 * + 6 AS col2
----
14
-4680

onlyif mysql # aggregate syntax: 
query II rowsort label-2760
SELECT 83, - 88 * + COUNT( ALL + + 18 ) AS col1
----
83
-88

skipif mysql # not compatible
query II rowsort label-2760
SELECT 83, - 88 * + COUNT ( ALL + + 18 ) AS col1
----
83
-88

query I rowsort
SELECT + 7 * + 99 * 84 * - 39 + - 9 AS col2
----
-2270277

onlyif mysql # aggregate syntax: 
query II rowsort label-2762
SELECT 20 AS col1, COUNT( * ) * - 83 + - 32 AS col2
----
20
-115

skipif mysql # not compatible
query II rowsort label-2762
SELECT 20 AS col1, COUNT ( * ) * - 83 + - 32 AS col2
----
20
-115

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

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

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

query I rowsort
SELECT - + 3 * + 92 + - 81 AS col1
----
-357

query I rowsort
SELECT - 2 * - 1 * - + 86 + 19 AS col0
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-2767
SELECT + - MIN( ALL 87 ) + 68 * - - 15 * 51
----
51933

skipif mysql # not compatible
query I rowsort label-2767
SELECT + - MIN ( ALL 87 ) + 68 * - - 15 * 51
----
51933

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2768
SELECT + ( + 83 ) * + CASE + - 36 WHEN + - 89 * + CAST( 97 AS DECIMAL ) + - + 34 THEN NULL WHEN - - 64 THEN COALESCE ( + SUM( DISTINCT - 33 ), + - 90, + 74 * + + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ) * 52 + 84 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2768
SELECT + ( + 83 ) * + CASE + - 36 WHEN + - 89 * + CAST ( 97 AS REAL ) + - + 34 THEN NULL WHEN - - 64 THEN COALESCE ( + SUM ( DISTINCT - 33 ), + - 90, + 74 * + + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) * 52 + 84 ELSE NULL END AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2770
SELECT ALL NULLIF ( + + 74, - - COUNT( * ) ) * 76
----
5624

skipif mysql # not compatible
query I rowsort label-2770
SELECT ALL NULLIF ( + + 74, - - COUNT ( * ) ) * 76
----
5624

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2771
SELECT + - COUNT( * ) * 74 * 10 - + COUNT( * ) AS col2, - 97 + + + CAST( NULL AS SIGNED )
----
-741
NULL

skipif mysql # not compatible
query II rowsort label-2771
SELECT + - COUNT ( * ) * 74 * 10 - + COUNT ( * ) AS col2, - 97 + + + CAST ( NULL AS INTEGER )
----
-741
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-2772
SELECT MIN( ALL - 67 ) AS col1, 53 * + + CAST( 87 AS SIGNED ) * + 0 + + CAST( NULL AS SIGNED ) - - - 92 AS col1, 82 * + 33
----
-67
NULL
2706

skipif mysql # not compatible
query III rowsort label-2772
SELECT MIN ( ALL - 67 ) AS col1, 53 * + + CAST ( 87 AS INTEGER ) * + 0 + + CAST ( NULL AS INTEGER ) - - - 92 AS col1, 82 * + 33
----
-67
NULL
2706

onlyif mysql # DIV for integer division: 
query I rowsort label-2773
SELECT + 18 DIV 71
----
0

skipif mysql # not compatible
query I rowsort label-2773
SELECT + 18 / 71
----
0

query I rowsort
SELECT + 23 + ( + 58 ) AS col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2775
SELECT + MIN( DISTINCT - - 51 ) * + - 70 * - 35
----
124950

skipif mysql # not compatible
query I rowsort label-2775
SELECT + MIN ( DISTINCT - - 51 ) * + - 70 * - 35
----
124950

onlyif mysql # aggregate syntax: 
query I rowsort label-2776
SELECT - NULLIF ( 86, + COUNT( * ) + - + 72 ) + + 37 AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-2776
SELECT - NULLIF ( 86, + COUNT ( * ) + - + 72 ) + + 37 AS col2
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2777
SELECT + 30 * - 19 + - CAST( - 63 AS SIGNED ) AS col1
----
-507

skipif mysql # not compatible
query I rowsort label-2777
SELECT + 30 * - 19 + - CAST ( - 63 AS INTEGER ) AS col1
----
-507

query I rowsort
SELECT + 88 + + + 6 + 9
----
103

query I rowsort
SELECT - 93 - - 72
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-2780
SELECT ALL + 58 * - COUNT( * ), 93 AS col0
----
-58
93

skipif mysql # not compatible
query II rowsort label-2780
SELECT ALL + 58 * - COUNT ( * ), 93 AS col0
----
-58
93

query II rowsort
SELECT + CASE - + ( - ( - + 22 ) ) WHEN - 89 * + + 15 THEN NULL ELSE + + 42 END + - 5 AS col2, 38
----
37
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2782
SELECT ALL - SUM( ALL + - 49 ) + + COUNT( * ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-2782
SELECT ALL - SUM ( ALL + - 49 ) + + COUNT ( * ) AS col1
----
50

query I rowsort
SELECT ALL 22 * + 29 * - + 29 * - 62
----
1147124

query I rowsort
SELECT ALL - 86 + 51 + + 83
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2785
SELECT - 86 + - NULLIF ( COUNT( + + 58 ), ( COUNT( * ) ) * + 69 * 15 * - 15 * + COUNT( * ) * + ( - 82 ) )
----
-87

skipif mysql # not compatible
query I rowsort label-2785
SELECT - 86 + - NULLIF ( COUNT ( + + 58 ), ( COUNT ( * ) ) * + 69 * 15 * - 15 * + COUNT ( * ) * + ( - 82 ) )
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2786
SELECT ALL + + 88 DIV - COUNT( * ) AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-2786
SELECT ALL + + 88 / - COUNT ( * ) AS col0
----
-88

query I rowsort
SELECT DISTINCT - - COALESCE ( - - CASE 29 WHEN 95 THEN NULL WHEN + 55 THEN NULL ELSE - 48 * 31 + + ( 51 ) + - 34 END, + 37 ) * - - 0 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2788
SELECT ALL - - 96 / + CASE - 8 WHEN - - ( + - 15 ) THEN - COUNT( * ) * - - 99 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2788
SELECT ALL - - 96 / + CASE - 8 WHEN - - ( + - 15 ) THEN - COUNT ( * ) * - - 99 END col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2789
SELECT - 85 * MAX( ALL - 86 ), CASE ( + 0 ) WHEN - - 72 * - 86 * - 88 THEN NULL WHEN 83 * - 18 THEN + 32 + + 47 ELSE - - 18 END AS col1
----
7310
18

skipif mysql # not compatible
query II rowsort label-2789
SELECT - 85 * MAX ( ALL - 86 ), CASE ( + 0 ) WHEN - - 72 * - 86 * - 88 THEN NULL WHEN 83 * - 18 THEN + 32 + + 47 ELSE - - 18 END AS col1
----
7310
18

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2790
SELECT - CAST( NULL AS DECIMAL ) * ( - 66 ) * - - 49 + 65 - - + MIN( 84 ) * 6 * + 52 + - 35 + - + 73 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2790
SELECT - CAST ( NULL AS REAL ) * ( - 66 ) * - - 49 + 65 - - + MIN ( 84 ) * 6 * + 52 + - 35 + - + 73 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2791
SELECT + 82 DIV + + 84 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2791
SELECT + 82 / + + 84 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2792
SELECT + - COUNT( 13 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2792
SELECT + - COUNT ( 13 ) AS col2
----
-1

query I rowsort
SELECT - - 5 * - + 10
----
-50

query I rowsort
SELECT ALL - + 31 col0
----
-31

query II rowsort
SELECT + 45 AS col0, - 13 + - 12 col0
----
45
-25

query I rowsort
SELECT ALL 88 * - 41
----
-3608

query II rowsort
SELECT + 53 AS col0, + ( - - 20 )
----
53
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2798
SELECT COALESCE ( + - CASE - 20 WHEN - + 19 THEN + - COUNT( * ) WHEN + ( + MAX( + 21 ) ) THEN 73 END, + COUNT( * ) ) + - CAST( + CAST( NULL AS SIGNED ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2798
SELECT COALESCE ( + - CASE - 20 WHEN - + 19 THEN + - COUNT ( * ) WHEN + ( + MAX ( + 21 ) ) THEN 73 END, + COUNT ( * ) ) + - CAST ( + CAST ( NULL AS INTEGER ) AS REAL )
----
NULL

query I rowsort
SELECT ALL - 62 * 83 AS col2
----
-5146

query I rowsort
SELECT ALL 76 + + NULLIF ( - - 24, 23 ) AS col0
----
100

onlyif mysql # aggregate syntax: 
query II rowsort label-2801
SELECT DISTINCT 87 * ( 63 ), - 61 * + - COUNT( * ) + - + 28 AS col1
----
5481
33

skipif mysql # not compatible
query II rowsort label-2801
SELECT DISTINCT 87 * ( 63 ), - 61 * + - COUNT ( * ) + - + 28 AS col1
----
5481
33

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

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

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

skipif mysql # not compatible
query II rowsort label-2803
SELECT 60 AS col0, - COUNT ( * ) AS col1
----
60
-1

query I rowsort
SELECT 90 * + 47 AS col1
----
4230

query I rowsort
SELECT 32 * 39
----
1248

onlyif mysql # DIV for integer division: 
query I rowsort label-2806
SELECT DISTINCT 10 DIV + + 89
----
0

skipif mysql # not compatible
query I rowsort label-2806
SELECT DISTINCT 10 / + + 89
----
0

query II rowsort
SELECT ALL 87 AS col1, + 4 AS col1
----
87
4

query I rowsort
SELECT 42 * + 5
----
210

onlyif mysql # DIV for integer division: 
query II rowsort label-2809
SELECT ALL 55 DIV + + 63 + - 76, - 97 + + + 49 AS col0
----
-76
-48

skipif mysql # not compatible
query II rowsort label-2809
SELECT ALL 55 / + + 63 + - 76, - 97 + + + 49 AS col0
----
-76
-48

query I rowsort
SELECT ALL - 42 - - 91 AS col2
----
49

onlyif mysql # DIV for integer division: 
query II rowsort label-2811
SELECT DISTINCT + 41 AS col1, - 94 DIV 18
----
41
-5

skipif mysql # not compatible
query II rowsort label-2811
SELECT DISTINCT + 41 AS col1, - 94 / 18
----
41
-5

query I rowsort
SELECT - 16 * - 89 * + 23 AS col2
----
32752

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

query I rowsort
SELECT DISTINCT + 39 * + - 30 col1
----
-1170

query II rowsort
SELECT - 82 col0, + ( + 13 ) * 59 * + 39 * 30 AS col0
----
-82
897390

onlyif mysql # aggregate syntax: 
query I rowsort label-2816
SELECT 36 + + 67 - + COUNT( * ) + + COUNT( * ) + + - 92 + + + 98 + 43 * 1
----
152

skipif mysql # not compatible
query I rowsort label-2816
SELECT 36 + + 67 - + COUNT ( * ) + + COUNT ( * ) + + - 92 + + + 98 + 43 * 1
----
152

query I rowsort
SELECT - 83 * 15
----
-1245

onlyif mysql # aggregate syntax: 
query I rowsort label-2818
SELECT 67 * + - ( + 91 ) * COUNT( * )
----
-6097

skipif mysql # not compatible
query I rowsort label-2818
SELECT 67 * + - ( + 91 ) * COUNT ( * )
----
-6097

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2819
SELECT 51 DIV + 26 + + COUNT( * ) DIV 63 + 96
----
97

skipif mysql # not compatible
query I rowsort label-2819
SELECT 51 / + 26 + + COUNT ( * ) / 63 + 96
----
97

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

query I rowsort
SELECT ALL 2 + + 13
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-2822
SELECT ALL - 96 + - + 30 + + 59 * + - 7 DIV 7
----
-185

skipif mysql # not compatible
query I rowsort label-2822
SELECT ALL - 96 + - + 30 + + 59 * + - 7 / 7
----
-185

query II rowsort
SELECT - 67, - 10 AS col0
----
-67
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-2824
SELECT ALL - - ( + 32 ) + MAX( ALL + - ( + 32 ) )
----
0

skipif mysql # not compatible
query I rowsort label-2824
SELECT ALL - - ( + 32 ) + MAX ( ALL + - ( + 32 ) )
----
0

query I rowsort
SELECT DISTINCT - 63 + - NULLIF ( - ( 6 ), - - 59 )
----
-57

onlyif mysql # DIV for integer division: 
query II rowsort label-2826
SELECT ALL - 30 * - 37, - ( + 79 ) DIV - + 56 AS col2
----
1110
1

skipif mysql # not compatible
query II rowsort label-2826
SELECT ALL - 30 * - 37, - ( + 79 ) / - + 56 AS col2
----
1110
1

query I rowsort
SELECT 72 + + - 30 + 79 * 41
----
3281

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2829
SELECT ALL + 30 * - + 41 * + 1 * COUNT( * )
----
-1230

skipif mysql # not compatible
query I rowsort label-2829
SELECT ALL + 30 * - + 41 * + 1 * COUNT ( * )
----
-1230

query I rowsort
SELECT DISTINCT - 76 * 63 AS col0
----
-4788

onlyif mysql # aggregate syntax: 
query I rowsort label-2831
SELECT DISTINCT + MAX( - - 19 ) + + 96 AS col1
----
115

skipif mysql # not compatible
query I rowsort label-2831
SELECT DISTINCT + MAX ( - - 19 ) + + 96 AS col1
----
115

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2832
SELECT DISTINCT + 86 - + 88 * - CAST( - - 7 AS SIGNED ) AS col2, - 7
----
702
-7

skipif mysql # not compatible
query II rowsort label-2832
SELECT DISTINCT + 86 - + 88 * - CAST ( - - 7 AS INTEGER ) AS col2, - 7
----
702
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2833
SELECT ALL MIN( DISTINCT 98 ) col1
----
98

skipif mysql # not compatible
query I rowsort label-2833
SELECT ALL MIN ( DISTINCT 98 ) col1
----
98

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2834
SELECT DISTINCT - 13 * CAST( 26 AS SIGNED ) DIV + 24 AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-2834
SELECT DISTINCT - 13 * CAST ( 26 AS INTEGER ) / + 24 AS col0
----
-14

query II rowsort
SELECT 0 * + - 50, - 11 AS col0
----
0
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-2836
SELECT ALL - COUNT( * ) - 96
----
-97

skipif mysql # not compatible
query I rowsort label-2836
SELECT ALL - COUNT ( * ) - 96
----
-97

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

skipif mysql # not compatible
query I rowsort label-2837
SELECT ALL MIN ( - 99 )
----
-99

query I rowsort
SELECT ALL ( + 84 ) AS col1
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-2839
SELECT ALL - 2 * COUNT( * ) AS col1, - 24 * NULLIF ( + COUNT( * ), + 37 )
----
-2
-24

skipif mysql # not compatible
query II rowsort label-2839
SELECT ALL - 2 * COUNT ( * ) AS col1, - 24 * NULLIF ( + COUNT ( * ), + 37 )
----
-2
-24

query I rowsort
SELECT DISTINCT - COALESCE ( + 59, 73 ) AS col2
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-2841
SELECT - 14 + + 7 AS col1, - 20 + 22 * + - MAX( + 55 ) col0
----
-7
-1230

skipif mysql # not compatible
query II rowsort label-2841
SELECT - 14 + + 7 AS col1, - 20 + 22 * + - MAX ( + 55 ) col0
----
-7
-1230

query I rowsort
SELECT 61 * - 99
----
-6039

query I rowsort
SELECT + 28 + 99 AS col2
----
127

query I rowsort
SELECT 51 + - 79 AS col1
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-2845
SELECT + ( - + 9 ) DIV + 21 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2845
SELECT + ( - + 9 ) / + 21 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2846
SELECT ALL + 86 + - MAX( + 36 ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-2846
SELECT ALL + 86 + - MAX ( + 36 ) AS col1
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2847
SELECT ALL 64 DIV - 10 + - - 22 * + 33 + 56 + 37 + + 63 * COALESCE ( NULLIF ( - - COUNT( ALL 57 ), + + 54 ), + COUNT( ALL - + 71 ) + COUNT( * ) * 51 )
----
876

skipif mysql # not compatible
query I rowsort label-2847
SELECT ALL 64 / - 10 + - - 22 * + 33 + 56 + 37 + + 63 * COALESCE ( NULLIF ( - - COUNT ( ALL 57 ), + + 54 ), + COUNT ( ALL - + 71 ) + COUNT ( * ) * 51 )
----
876

onlyif mysql # DIV for integer division: 
query I rowsort label-2848
SELECT - 3 DIV + ( + - 36 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2848
SELECT - 3 / + ( + - 36 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2849
SELECT DISTINCT 73 + + SUM( ALL + 69 ) * - 79 - - NULLIF ( + + 97, + COUNT( * ) ) + + 68 AS col1
----
-5213

skipif mysql # not compatible
query I rowsort label-2849
SELECT DISTINCT 73 + + SUM ( ALL + 69 ) * - 79 - - NULLIF ( + + 97, + COUNT ( * ) ) + + 68 AS col1
----
-5213

onlyif mysql # aggregate syntax: 
query I rowsort label-2850
SELECT ALL 47 * - MIN( - 50 ) + - + 53 * - 73 * - 16 AS col0
----
-59554

skipif mysql # not compatible
query I rowsort label-2850
SELECT ALL 47 * - MIN ( - 50 ) + - + 53 * - 73 * - 16 AS col0
----
-59554

query I rowsort
SELECT ALL 91 + 98 - - + 57 + + 54
----
300

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2852
SELECT DISTINCT + + CAST( NULL AS DECIMAL ) * - 87 + + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-2852
SELECT DISTINCT + + CAST ( NULL AS REAL ) * - 87 + + 46
----
NULL

query I rowsort
SELECT ALL + 4 * COALESCE ( + 13, + 78 * - 63 ) * - - 4 + 83 + + 16
----
307

onlyif mysql # aggregate syntax: 
query I rowsort label-2854
SELECT ALL COUNT( * ) * + 19 + - 51 + + 88 * + - 83 + - 69 + - + 62 * + + 82 col2
----
-12489

skipif mysql # not compatible
query I rowsort label-2854
SELECT ALL COUNT ( * ) * + 19 + - 51 + + 88 * + - 83 + - 69 + - + 62 * + + 82 col2
----
-12489

query I rowsort
SELECT - CASE 27 WHEN 49 THEN + ( + 9 ) + - 92 WHEN 80 THEN NULL ELSE NULL END AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2857
SELECT + 71 * + MIN( DISTINCT + 67 ) AS col1
----
4757

skipif mysql # not compatible
query I rowsort label-2857
SELECT + 71 * + MIN ( DISTINCT + 67 ) AS col1
----
4757

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2858
SELECT + CAST( NULL AS SIGNED ) - + + 46 * - + 18 * + + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-2858
SELECT + CAST ( NULL AS INTEGER ) - + + 46 * - + 18 * + + 80
----
NULL

query I rowsort
SELECT 71 * + - 83 + - 50
----
-5943

query I rowsort
SELECT ALL + 99 * 11 AS col2
----
1089

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2861
SELECT COALESCE ( - - 7, + + 23, + COUNT( * ) * + COUNT( * ) ), MIN( ALL - - CAST( NULL AS SIGNED ) ) AS col2
----
7
NULL

skipif mysql # not compatible
query II rowsort label-2861
SELECT COALESCE ( - - 7, + + 23, + COUNT ( * ) * + COUNT ( * ) ), MIN ( ALL - - CAST ( NULL AS INTEGER ) ) AS col2
----
7
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2862
SELECT DISTINCT 64 DIV - NULLIF ( 2, + 90 )
----
-32

skipif mysql # not compatible
query I rowsort label-2862
SELECT DISTINCT 64 / - NULLIF ( 2, + 90 )
----
-32

query I rowsort
SELECT - 93 - + ( - + 85 ) + 27
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-2864
SELECT - 69 - + 55 + + - 3 * + - 66 * - COUNT( * ) * + 18 - + MAX( ALL + + 7 ) AS col1
----
-3695

skipif mysql # not compatible
query I rowsort label-2864
SELECT - 69 - + 55 + + - 3 * + - 66 * - COUNT ( * ) * + 18 - + MAX ( ALL + + 7 ) AS col1
----
-3695

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2865
SELECT ALL - ( - CAST( - - NULLIF ( - 88, - + 41 * - COUNT( * ) + - ( - 64 ) * - 50 + 52 ) AS SIGNED ) ) * - 21
----
1848

skipif mysql # not compatible
query I rowsort label-2865
SELECT ALL - ( - CAST ( - - NULLIF ( - 88, - + 41 * - COUNT ( * ) + - ( - 64 ) * - 50 + 52 ) AS INTEGER ) ) * - 21
----
1848

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2866
SELECT - 57 DIV MAX( + - 15 ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-2866
SELECT - 57 / MAX ( + - 15 ) AS col2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2867
SELECT - 63 * + CAST( AVG ( - 53 ) AS SIGNED )
----
3339

skipif mysql # not compatible
query I rowsort label-2867
SELECT - 63 * + CAST ( AVG ( - 53 ) AS INTEGER )
----
3339

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2868
SELECT - 33 + - 74 + - 8 * - COUNT( * ) + + CAST( NULL AS SIGNED ) + - - 75 * + COALESCE ( + 75, + 53 - 1 + - SUM( + 79 ) * - + NULLIF ( - 20, + 87 * - 2 ), + + 64 - - 60 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2868
SELECT - 33 + - 74 + - 8 * - COUNT ( * ) + + CAST ( NULL AS INTEGER ) + - - 75 * + COALESCE ( + 75, + 53 - 1 + - SUM ( + 79 ) * - + NULLIF ( - 20, + 87 * - 2 ), + + 64 - - 60 )
----
NULL

query I rowsort
SELECT ALL - 36 * - + 49 AS col0
----
1764

onlyif mysql # aggregate syntax: 
query I rowsort label-2870
SELECT ALL - COUNT( * ) * - 10 AS col2
----
10

skipif mysql # not compatible
query I rowsort label-2870
SELECT ALL - COUNT ( * ) * - 10 AS col2
----
10

query I rowsort
SELECT ALL ( - + 8 ) AS col0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-2872
SELECT ALL CASE - 67 WHEN - 10 THEN NULL WHEN + 28 THEN NULL ELSE ( + NULLIF ( + + COUNT( + 74 ), + + 51 - + 42 + - 60 * 37 / + - 79 ) ) + - 31 * - ( 51 ) END AS col0
----
1582

skipif mysql # not compatible
query I rowsort label-2872
SELECT ALL CASE - 67 WHEN - 10 THEN NULL WHEN + 28 THEN NULL ELSE ( + NULLIF ( + + COUNT ( + 74 ), + + 51 - + 42 + - 60 * 37 / + - 79 ) ) + - 31 * - ( 51 ) END AS col0
----
1582

onlyif mysql # aggregate syntax: 
query I rowsort label-2873
SELECT DISTINCT CASE - 22 WHEN + 56 / 11 THEN NULL WHEN - COUNT( * ) THEN - 35 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2873
SELECT DISTINCT CASE - 22 WHEN + 56 / 11 THEN NULL WHEN - COUNT ( * ) THEN - 35 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2874
SELECT ALL COALESCE ( - 21, - COUNT( * ) + 8, 67 - + 69 ) col2
----
-21

skipif mysql # not compatible
query I rowsort label-2874
SELECT ALL COALESCE ( - 21, - COUNT ( * ) + 8, 67 - + 69 ) col2
----
-21

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2877
SELECT - MIN( DISTINCT + 26 )
----
-26

skipif mysql # not compatible
query I rowsort label-2877
SELECT - MIN ( DISTINCT + 26 )
----
-26

query I rowsort
SELECT - COALESCE ( 65, + 46 ) AS col0
----
-65

query I rowsort
SELECT DISTINCT 14 + 72 * - 3
----
-202

query I rowsort
SELECT DISTINCT + 74 * + 46
----
3404

query I rowsort
SELECT DISTINCT - ( - 61 ) + 25
----
86

query I rowsort
SELECT + 14 + 60
----
74

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

skipif mysql # not compatible
query I rowsort label-2883
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - 67 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2884
SELECT - MIN( + 40 ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-2884
SELECT - MIN ( + 40 ) AS col1
----
-40

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

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

query I rowsort
SELECT ALL 65 + 13
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2887
SELECT + COALESCE ( - 49, ( + MIN( DISTINCT 93 ) ) * - 47 - 98 ) * - 7 + - ( - 65 + - 2 ) * 4 AS col1
----
611

skipif mysql # not compatible
query I rowsort label-2887
SELECT + COALESCE ( - 49, ( + MIN ( DISTINCT 93 ) ) * - 47 - 98 ) * - 7 + - ( - 65 + - 2 ) * 4 AS col1
----
611

query I rowsort
SELECT + 77 * 45 AS col2
----
3465

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2890
SELECT DISTINCT 12 DIV COUNT( * ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-2890
SELECT DISTINCT 12 / COUNT ( * ) AS col0
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2891
SELECT ALL 33 DIV - COALESCE ( 26 * 81, - 81, + 89 * NULLIF ( - MIN( + 33 ) * - 79, + 18 - 18 * 70 ) ) - 14
----
-14

skipif mysql # not compatible
query I rowsort label-2891
SELECT ALL 33 / - COALESCE ( 26 * 81, - 81, + 89 * NULLIF ( - MIN ( + 33 ) * - 79, + 18 - 18 * 70 ) ) - 14
----
-14

query I rowsort
SELECT + 17 * + 44 AS col1
----
748

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

query I rowsort
SELECT + COALESCE ( + 14, + 62, NULLIF ( + 80, - 78 ) + - 58, 87 * + 18 )
----
14

query I rowsort
SELECT - 87 * 93 AS col1
----
-8091

query I rowsort
SELECT + 75 + 26 * - 84
----
-2109

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2898
SELECT ALL + MIN( ALL + 53 ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-2898
SELECT ALL + MIN ( ALL + 53 ) AS col0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-2899
SELECT - 51 * + 21 + COUNT( DISTINCT - 47 )
----
-1070

skipif mysql # not compatible
query I rowsort label-2899
SELECT - 51 * + 21 + COUNT ( DISTINCT - 47 )
----
-1070

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2901
SELECT - COUNT( * ) DIV ( - 8 )
----
0

skipif mysql # not compatible
query I rowsort label-2901
SELECT - COUNT ( * ) / ( - 8 )
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2903
SELECT + - 18 * - 40 + + 28 DIV + 42
----
720

skipif mysql # not compatible
query I rowsort label-2903
SELECT + - 18 * - 40 + + 28 / + 42
----
720

onlyif mysql # aggregate syntax: 
query I rowsort label-2904
SELECT ALL + - 46 * - 24 + COUNT( * )
----
1105

skipif mysql # not compatible
query I rowsort label-2904
SELECT ALL + - 46 * - 24 + COUNT ( * )
----
1105

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

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

query I rowsort
SELECT DISTINCT + 67 * - 80 + 27
----
-5333

onlyif mysql # DIV for integer division: 
query I rowsort label-2907
SELECT ALL - 32 * 72 + + 83 DIV 37 AS col2
----
-2302

skipif mysql # not compatible
query I rowsort label-2907
SELECT ALL - 32 * 72 + + 83 / 37 AS col2
----
-2302

query I rowsort
SELECT DISTINCT + - 82 * + 23 AS col0
----
-1886

query I rowsort
SELECT DISTINCT - 36 + - ( - 76 - 39 ) AS col0
----
79

query I rowsort
SELECT ALL + 78 + - 3 * 84 AS col2
----
-174

query I rowsort
SELECT ALL - COALESCE ( 12, - 53 * - ( - 85 ) + - COALESCE ( 52 + 87, - 40, 83 ) ) AS col2
----
-12

query I rowsort
SELECT DISTINCT COALESCE ( - ( 82 ), + 15 )
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2913
SELECT - 65 * MAX( - ( - CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2913
SELECT - 65 * MAX ( - ( - CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2914
SELECT + CASE 56 WHEN 41 THEN NULL WHEN + MAX( DISTINCT - 59 ) * + 68 + + SUM( + 8 ) THEN - 39 * + 89 WHEN - CAST( NULL AS SIGNED ) * - 17 + - 32 THEN 50 * 72 + - COUNT( * ) ELSE + ( + 82 ) * + 63 END AS col2
----
5166

skipif mysql # not compatible
query I rowsort label-2914
SELECT + CASE 56 WHEN 41 THEN NULL WHEN + MAX ( DISTINCT - 59 ) * + 68 + + SUM ( + 8 ) THEN - 39 * + 89 WHEN - CAST ( NULL AS INTEGER ) * - 17 + - 32 THEN 50 * 72 + - COUNT ( * ) ELSE + ( + 82 ) * + 63 END AS col2
----
5166

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2915
SELECT ALL - - 69 - + COALESCE ( 13, 2 DIV - COUNT( * ) + ( 60 ) * 79 )
----
56

skipif mysql # not compatible
query I rowsort label-2915
SELECT ALL - - 69 - + COALESCE ( 13, 2 / - COUNT ( * ) + ( 60 ) * 79 )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-2916
SELECT DISTINCT + 84 * COUNT( - 9 ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-2916
SELECT DISTINCT + 84 * COUNT ( - 9 ) AS col2
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2917
SELECT DISTINCT + COALESCE ( COALESCE ( 88, - 85 ), - 32 * 28, 8 + - MAX( + 73 ) * + ( 70 - CASE 3 WHEN 82 DIV 82 + - 12 THEN AVG ( - ( + 97 ) ) + - SUM( + 91 ) WHEN 54 * 33 THEN NULL END DIV 63 ) ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-2917
SELECT DISTINCT + COALESCE ( COALESCE ( 88, - 85 ), - 32 * 28, 8 + - MAX ( + 73 ) * + ( 70 - CASE 3 WHEN 82 / 82 + - 12 THEN AVG ( - ( + 97 ) ) + - SUM ( + 91 ) WHEN 54 * 33 THEN NULL END / 63 ) ) AS col2
----
88

query I rowsort
SELECT DISTINCT + ( 87 ) * - 90 col2
----
-7830

query I rowsort
SELECT ALL - 82 - - 23 AS col2
----
-59

query I rowsort
SELECT DISTINCT + 17 * 2
----
34

query I rowsort
SELECT DISTINCT - 54 - + 89
----
-143

onlyif mysql # DIV for integer division: 
query I rowsort label-2922
SELECT ALL + 99 * 44 DIV - 22 AS col2
----
-198

skipif mysql # not compatible
query I rowsort label-2922
SELECT ALL + 99 * 44 / - 22 AS col2
----
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-2923
SELECT ( COUNT( * ) ) * - 34 + 25 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-2923
SELECT ( COUNT ( * ) ) * - 34 + 25 AS col0
----
-9

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2925
SELECT 90 DIV - COUNT( * ) AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-2925
SELECT 90 / - COUNT ( * ) AS col2
----
-90

query I rowsort
SELECT 26 * - - 50 * + 57 AS col0
----
74100

onlyif mysql # aggregate syntax: 
query I rowsort label-2927
SELECT COUNT( * ) - - 91 + + 31 * - CASE WHEN NOT 38 * + 80 = 20 THEN 50 * + 2 ELSE 85 END * + COUNT( * )
----
-3008

skipif mysql # not compatible
query I rowsort label-2927
SELECT COUNT ( * ) - - 91 + + 31 * - CASE WHEN NOT 38 * + 80 = 20 THEN 50 * + 2 ELSE 85 END * + COUNT ( * )
----
-3008

query I rowsort
SELECT COALESCE ( + 9, + 10 ) * + 25
----
225

query I rowsort
SELECT ALL 46 * 31 * + 15
----
21390

onlyif mysql # DIV for integer division: 
query I rowsort label-2930
SELECT 16 DIV - + 92 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2930
SELECT 16 / - + 92 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2931
SELECT DISTINCT 75 DIV - 62 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2931
SELECT DISTINCT 75 / - 62 AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2932
SELECT ALL CAST( NULL AS SIGNED ) + + 82 + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-2932
SELECT ALL CAST ( NULL AS INTEGER ) + + 82 + 8
----
NULL

query I rowsort
SELECT DISTINCT ( + 75 ) + - 99
----
-24

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2935
SELECT CAST( - 97 AS SIGNED ) * - 61
----
5917

skipif mysql # not compatible
query I rowsort label-2935
SELECT CAST ( - 97 AS INTEGER ) * - 61
----
5917

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2936
SELECT ALL CAST( NULL AS SIGNED ) + - 21
----
NULL

skipif mysql # not compatible
query I rowsort label-2936
SELECT ALL CAST ( NULL AS INTEGER ) + - 21
----
NULL

query I rowsort
SELECT DISTINCT 68 + - + ( 43 ) AS col2
----
25

query I rowsort
SELECT DISTINCT 12 + - 88 AS col2
----
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-2939
SELECT ALL + 62 + - 45 + + ( ( + 19 ) ) DIV 9 AS col1
----
19

skipif mysql # not compatible
query I rowsort label-2939
SELECT ALL + 62 + - 45 + + ( ( + 19 ) ) / 9 AS col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-2940
SELECT DISTINCT - COUNT( * ) + - + 78
----
-79

skipif mysql # not compatible
query I rowsort label-2940
SELECT DISTINCT - COUNT ( * ) + - + 78
----
-79

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2942
SELECT ALL - + 9 + + COUNT( * )
----
-8

skipif mysql # not compatible
query I rowsort label-2942
SELECT ALL - + 9 + + COUNT ( * )
----
-8

query I rowsort
SELECT - 83 - - 19 + + 96 AS col0
----
32

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2945
SELECT - COALESCE ( ( - 15 ), - 77 + COUNT( * ) ) + + NULLIF ( - ( - COALESCE ( + 16, + SUM( 22 ) ) ) + - 3 * + CAST( NULL AS DECIMAL ), 57 * 12 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2945
SELECT - COALESCE ( ( - 15 ), - 77 + COUNT ( * ) ) + + NULLIF ( - ( - COALESCE ( + 16, + SUM ( 22 ) ) ) + - 3 * + CAST ( NULL AS REAL ), 57 * 12 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2946
SELECT ALL - COUNT( * ) - 1 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-2946
SELECT ALL - COUNT ( * ) - 1 AS col2
----
-2

query I rowsort
SELECT + 49 * 27 col1
----
1323

onlyif mysql # aggregate syntax: 
query I rowsort label-2948
SELECT COUNT( * ) + - 48 * + 84 AS col2
----
-4031

skipif mysql # not compatible
query I rowsort label-2948
SELECT COUNT ( * ) + - 48 * + 84 AS col2
----
-4031

onlyif mysql # aggregate syntax: 
query I rowsort label-2949
SELECT CASE WHEN NOT ( 92 ) <= - 0 THEN + MIN( + 30 ) ELSE NULL END col0
----
30

skipif mysql # not compatible
query I rowsort label-2949
SELECT CASE WHEN NOT ( 92 ) <= - 0 THEN + MIN ( + 30 ) ELSE NULL END col0
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-2950
SELECT 84 + 52 DIV + 34
----
85

skipif mysql # not compatible
query I rowsort label-2950
SELECT 84 + 52 / + 34
----
85

query I rowsort
SELECT ALL - 86 - - 11 AS col0
----
-75

query I rowsort
SELECT + 90 + 0
----
90

query I rowsort
SELECT ALL + NULLIF ( - + ( - 19 ), 68 + 44 ) * 89 AS col1
----
1691

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2954
SELECT DISTINCT + CASE 86 WHEN + 81 / CAST( NULL AS SIGNED ) THEN 57 + 63 WHEN - 57 THEN 31 * - 1 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2954
SELECT DISTINCT + CASE 86 WHEN + 81 / CAST ( NULL AS INTEGER ) THEN 57 + 63 WHEN - 57 THEN 31 * - 1 END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2955
SELECT ALL - 31 DIV 87 - - 0 * + 62
----
0

skipif mysql # not compatible
query I rowsort label-2955
SELECT ALL - 31 / 87 - - 0 * + 62
----
0

query I rowsort
SELECT 0 + 18 AS col1
----
18

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

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

query I rowsort
SELECT 81 * - 60 AS col2
----
-4860

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2959
SELECT 20 + - 32 * - + CAST( 56 AS SIGNED )
----
1812

skipif mysql # not compatible
query I rowsort label-2959
SELECT 20 + - 32 * - + CAST ( 56 AS INTEGER )
----
1812

query II rowsort
SELECT - 50, 20 AS col1
----
-50
20

query I rowsort
SELECT 29 + - 7 + 27 AS col2
----
49

query I rowsort
SELECT 35 * - 6 * - 6 * + 11 AS col1
----
13860

query I rowsort
SELECT ALL - CASE 60 WHEN - ( - 18 ) - 4 THEN - 53 + 8 ELSE NULL END * ( 99 - 73 ) AS col2
----
NULL

query I rowsort
SELECT 6 * - - 67 AS col1
----
402

onlyif mysql # DIV for integer division: 
query II rowsort label-2965
SELECT + 61, + COALESCE ( - 69, + 99 DIV - 97, 67 * 95 + + 85 ) * - 79 col2
----
61
5451

skipif mysql # not compatible
query II rowsort label-2965
SELECT + 61, + COALESCE ( - 69, + 99 / - 97, 67 * 95 + + 85 ) * - 79 col2
----
61
5451

onlyif mysql # aggregate syntax: 
query I rowsort label-2966
SELECT 19 + - + COUNT( * ) col0
----
18

skipif mysql # not compatible
query I rowsort label-2966
SELECT 19 + - + COUNT ( * ) col0
----
18

query I rowsort
SELECT ALL - 77 * - 76
----
5852

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2968
SELECT DISTINCT - CASE - 51 WHEN - + 90 THEN NULL WHEN + CAST( COUNT( * ) AS SIGNED ) * 15 THEN 42 ELSE 34 * - CAST( + 54 AS SIGNED ) END AS col0
----
1836

skipif mysql # not compatible
query I rowsort label-2968
SELECT DISTINCT - CASE - 51 WHEN - + 90 THEN NULL WHEN + CAST ( COUNT ( * ) AS INTEGER ) * 15 THEN 42 ELSE 34 * - CAST ( + 54 AS INTEGER ) END AS col0
----
1836

query I rowsort
SELECT ALL - 67 * + 22 + 49 * 35 AS col2
----
241

onlyif mysql # aggregate syntax: 
query I rowsort label-2970
SELECT ALL + 95 * + ( 7 ) + MAX( 35 ) AS col2
----
700

skipif mysql # not compatible
query I rowsort label-2970
SELECT ALL + 95 * + ( 7 ) + MAX ( 35 ) AS col2
----
700

onlyif mysql # aggregate syntax: 
query II rowsort label-2971
SELECT DISTINCT - 3 AS col0, COALESCE ( + 61, - MAX( 61 ), - ( + ( + 50 ) ) * - COUNT( * ) + + 29 ) AS col1
----
-3
61

skipif mysql # not compatible
query II rowsort label-2971
SELECT DISTINCT - 3 AS col0, COALESCE ( + 61, - MAX ( 61 ), - ( + ( + 50 ) ) * - COUNT ( * ) + + 29 ) AS col1
----
-3
61

query I rowsort
SELECT - 42 * - 65 + + - 86 + 80 * - 39
----
-476

query I rowsort
SELECT 9 * - + 14 AS col1
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-2974
SELECT MAX( ALL - + 51 ) * - 98 * - CASE 39 WHEN 22 THEN NULL WHEN - 68 THEN 26 - - 83 * - 14 END + - 63 + COUNT( * ) * + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-2974
SELECT MAX ( ALL - + 51 ) * - 98 * - CASE 39 WHEN 22 THEN NULL WHEN - 68 THEN 26 - - 83 * - 14 END + - 63 + COUNT ( * ) * + 12
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2975
SELECT ALL + COUNT( * ) * 70 + 51 + COUNT( * ) * + COUNT( * )
----
122

skipif mysql # not compatible
query I rowsort label-2975
SELECT ALL + COUNT ( * ) * 70 + 51 + COUNT ( * ) * + COUNT ( * )
----
122

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

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

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

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

query I rowsort
SELECT 34 * 60
----
2040

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2979
SELECT ALL 56 DIV MIN( ALL 19 )
----
2

skipif mysql # not compatible
query I rowsort label-2979
SELECT ALL 56 / MIN ( ALL 19 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2980
SELECT ALL + COALESCE ( - - 3, COUNT( * ), - 27 ) * - 70 + MAX( ALL + 37 ) * 36 AS col2
----
1122

skipif mysql # not compatible
query I rowsort label-2980
SELECT ALL + COALESCE ( - - 3, COUNT ( * ), - 27 ) * - 70 + MAX ( ALL + 37 ) * 36 AS col2
----
1122

query II rowsort
SELECT - 13 AS col2, 21 AS col0
----
-13
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2982
SELECT ALL - 42 DIV - + COUNT( * )
----
42

skipif mysql # not compatible
query I rowsort label-2982
SELECT ALL - 42 / - + COUNT ( * )
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2983
SELECT + + 2 * - - NULLIF ( + - CAST( COUNT( * ) AS SIGNED ), CASE + 11 WHEN ( + 21 ) * ( 24 + - COALESCE ( + 68, + ( COUNT( * ) ) ) ) THEN 48 END + 31 * - CAST( NULL AS SIGNED ) ) + + COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2983
SELECT + + 2 * - - NULLIF ( + - CAST ( COUNT ( * ) AS INTEGER ), CASE + 11 WHEN ( + 21 ) * ( 24 + - COALESCE ( + 68, + ( COUNT ( * ) ) ) ) THEN 48 END + 31 * - CAST ( NULL AS INTEGER ) ) + + COUNT ( * ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2984
SELECT + 64 col2, - 80 - - CASE 37 WHEN + 80 * - 86 + CAST( 29 + + 85 AS SIGNED ) THEN 13 * COUNT( * ) - + AVG ( 71 ) * + 55 END
----
64
NULL

skipif mysql # not compatible
query II rowsort label-2984
SELECT + 64 col2, - 80 - - CASE 37 WHEN + 80 * - 86 + CAST ( 29 + + 85 AS INTEGER ) THEN 13 * COUNT ( * ) - + AVG ( 71 ) * + 55 END
----
64
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2985
SELECT DISTINCT + + NULLIF ( ( ( COALESCE ( - 3, 46, SUM( + CAST( NULL AS SIGNED ) ) + COUNT( * ) ) ) ), - SUM( 65 ) ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-2985
SELECT DISTINCT + + NULLIF ( ( ( COALESCE ( - 3, 46, SUM ( + CAST ( NULL AS INTEGER ) ) + COUNT ( * ) ) ) ), - SUM ( 65 ) ) AS col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2986
SELECT ALL - SUM( 14 ) - + 38 AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-2986
SELECT ALL - SUM ( 14 ) - + 38 AS col2
----
-52

query I rowsort
SELECT ALL + 76 - + 19
----
57

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

query I rowsort
SELECT - 98 * + - 68 + 38 + 71
----
6773

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2991
SELECT DISTINCT + 57 * CAST( COALESCE ( 40, 81, - 51 - - CAST( NULL AS SIGNED ) ) AS SIGNED ) * - ( - COUNT( + 98 ) * - MAX( ALL - 42 ) - - COUNT( * ) / + 41 ) + NULLIF ( + CAST( NULL AS SIGNED ), 25 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2991
SELECT DISTINCT + 57 * CAST ( COALESCE ( 40, 81, - 51 - - CAST ( NULL AS INTEGER ) ) AS INTEGER ) * - ( - COUNT ( + 98 ) * - MAX ( ALL - 42 ) - - COUNT ( * ) / + 41 ) + NULLIF ( + CAST ( NULL AS INTEGER ), 25 ) AS col1
----
NULL

query II rowsort
SELECT DISTINCT - 71, 12 AS col1
----
-71
12

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

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

query I rowsort
SELECT DISTINCT CASE + 10 WHEN - 37 THEN 30 + - 28 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2995
SELECT DISTINCT - 2 * 62 DIV - ( + 51 ) + - ( + 51 ) col2
----
-49

skipif mysql # not compatible
query I rowsort label-2995
SELECT DISTINCT - 2 * 62 / - ( + 51 ) + - ( + 51 ) col2
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-2996
SELECT ALL 0 DIV + + 83 * + 40 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2996
SELECT ALL 0 / + + 83 * + 40 AS col2
----
0

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

skipif mysql # not compatible
query II rowsort label-2997
SELECT + COUNT ( * ) / + COUNT ( * ) AS col0, - 97
----
1
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2998
SELECT - CASE WHEN NOT ( NULL ) IN ( - COUNT( * ) ) THEN 32 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2998
SELECT - CASE WHEN NOT ( NULL ) IN ( - COUNT ( * ) ) THEN 32 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2999
SELECT DISTINCT SUM( ALL - 36 )
----
-36

skipif mysql # not compatible
query I rowsort label-2999
SELECT DISTINCT SUM ( ALL - 36 )
----
-36

query II rowsort
SELECT ALL - 82 + + 6 AS col0, - 80 * 80
----
-76
-6400

query I rowsort
SELECT DISTINCT 99 * + 12 * 20
----
23760

query I rowsort
SELECT - 11 * - 50
----
550

onlyif mysql # aggregate syntax: 
query I rowsort label-3003
SELECT ALL COUNT( * ) + 85 + 2 + - 96 * + 9 AS col1
----
-776

skipif mysql # not compatible
query I rowsort label-3003
SELECT ALL COUNT ( * ) + 85 + 2 + - 96 * + 9 AS col1
----
-776

onlyif mysql # aggregate syntax: 
query I rowsort label-3004
SELECT ALL 93 + MAX( - 7 ) - 38 AS col0
----
48

skipif mysql # not compatible
query I rowsort label-3004
SELECT ALL 93 + MAX ( - 7 ) - 38 AS col0
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-3005
SELECT DISTINCT + 91 DIV + 77
----
1

skipif mysql # not compatible
query I rowsort label-3005
SELECT DISTINCT + 91 / + 77
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3006
SELECT + 16 * SUM( - 20 ) * - 87
----
27840

skipif mysql # not compatible
query I rowsort label-3006
SELECT + 16 * SUM ( - 20 ) * - 87
----
27840

onlyif mysql # aggregate syntax: 
query I rowsort label-3007
SELECT ALL + COUNT( 56 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-3007
SELECT ALL + COUNT ( 56 ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3008
SELECT + ( MAX( DISTINCT - 72 ) ) col0
----
-72

skipif mysql # not compatible
query I rowsort label-3008
SELECT + ( MAX ( DISTINCT - 72 ) ) col0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-3009
SELECT - 57 * + - SUM( 49 ) AS col0
----
2793

skipif mysql # not compatible
query I rowsort label-3009
SELECT - 57 * + - SUM ( 49 ) AS col0
----
2793

onlyif mysql # aggregate syntax: 
query I rowsort label-3010
SELECT - 45 - 44 * 79 * - COUNT( * ) + + 72 * + 14 col1
----
4439

skipif mysql # not compatible
query I rowsort label-3010
SELECT - 45 - 44 * 79 * - COUNT ( * ) + + 72 * + 14 col1
----
4439

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3011
SELECT DISTINCT 82 * + + 3 * + 28 + - COALESCE ( + 24, 78 + - CAST( NULL AS SIGNED ), 26 ) AS col1
----
6864

skipif mysql # not compatible
query I rowsort label-3011
SELECT DISTINCT 82 * + + 3 * + 28 + - COALESCE ( + 24, 78 + - CAST ( NULL AS INTEGER ), 26 ) AS col1
----
6864

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3012
SELECT 83 * + 19 * - + 55 + + CASE - 29 WHEN 53 + - COUNT( * ) THEN - 21 / CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3012
SELECT 83 * + 19 * - + 55 + + CASE - 29 WHEN 53 + - COUNT ( * ) THEN - 21 / CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3013
SELECT DISTINCT + 12 * - - 52 + + - 8 DIV + - 84 - + ( 30 + 69 ) AS col2
----
525

skipif mysql # not compatible
query I rowsort label-3013
SELECT DISTINCT + 12 * - - 52 + + - 8 / + - 84 - + ( 30 + 69 ) AS col2
----
525

onlyif mysql # aggregate syntax: 
query I rowsort label-3014
SELECT DISTINCT + 26 * 79 - - - SUM( + 39 ) AS col0
----
2015

skipif mysql # not compatible
query I rowsort label-3014
SELECT DISTINCT + 26 * 79 - - - SUM ( + 39 ) AS col0
----
2015

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3015
SELECT - 18 - 41 AS col2, + CAST( NULL AS SIGNED )
----
-59
NULL

skipif mysql # not compatible
query II rowsort label-3015
SELECT - 18 - 41 AS col2, + CAST ( NULL AS INTEGER )
----
-59
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3016
SELECT - - 41 * + COUNT( * ) + + - 10 AS col2
----
31

skipif mysql # not compatible
query I rowsort label-3016
SELECT - - 41 * + COUNT ( * ) + + - 10 AS col2
----
31

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3018
SELECT + 1 DIV ( - - 30 )
----
0

skipif mysql # not compatible
query I rowsort label-3018
SELECT + 1 / ( - - 30 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3019
SELECT ALL + - COALESCE ( - 4, + NULLIF ( + COUNT( * ), + 62 ) DIV 77 ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-3019
SELECT ALL + - COALESCE ( - 4, + NULLIF ( + COUNT ( * ), + 62 ) / 77 ) AS col2
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3020
SELECT DISTINCT + CASE + ( 4 ) WHEN - + MAX( 16 ) THEN NULL WHEN + COALESCE ( - 14, - 96 ) / 90 + + MIN( ALL 48 - - 36 ) THEN - 67 + CAST( NULL AS SIGNED ) * 25 ELSE 7 END
----
7

skipif mysql # not compatible
query I rowsort label-3020
SELECT DISTINCT + CASE + ( 4 ) WHEN - + MAX ( 16 ) THEN NULL WHEN + COALESCE ( - 14, - 96 ) / 90 + + MIN ( ALL 48 - - 36 ) THEN - 67 + CAST ( NULL AS INTEGER ) * 25 ELSE 7 END
----
7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3021
SELECT + - ( + - 67 ) DIV + CAST( + 4 AS SIGNED )
----
16

skipif mysql # not compatible
query I rowsort label-3021
SELECT + - ( + - 67 ) / + CAST ( + 4 AS INTEGER )
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3022
SELECT DISTINCT + 53 DIV COUNT( * ) * + 95 AS col2
----
5035

skipif mysql # not compatible
query I rowsort label-3022
SELECT DISTINCT + 53 / COUNT ( * ) * + 95 AS col2
----
5035

query I rowsort
SELECT DISTINCT + + 8 * + + 28 AS col2
----
224

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3024
SELECT + CASE 42 WHEN + + 69 THEN 60 DIV MIN( + 82 * 41 ) ELSE + 63 * 13 END DIV 69
----
11

skipif mysql # not compatible
query I rowsort label-3024
SELECT + CASE 42 WHEN + + 69 THEN 60 / MIN ( + 82 * 41 ) ELSE + 63 * 13 END / 69
----
11

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

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

query I rowsort
SELECT - 48 + - 78
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-3027
SELECT ALL ( + 60 ) + + COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-3027
SELECT ALL ( + 60 ) + + COUNT ( * )
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-3028
SELECT + 59 + 56 + + 55 DIV + 58
----
115

skipif mysql # not compatible
query I rowsort label-3028
SELECT + 59 + 56 + + 55 / + 58
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-3029
SELECT ALL COUNT( * ) + + 63 AS col0
----
64

skipif mysql # not compatible
query I rowsort label-3029
SELECT ALL COUNT ( * ) + + 63 AS col0
----
64

query I rowsort
SELECT + 35 + - 44 + - 35 + 78 + 53 col1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3031
SELECT ALL - 77 + + + ( + - COUNT( * ) ) * - 65 * - 48 AS col1
----
-3197

skipif mysql # not compatible
query I rowsort label-3031
SELECT ALL - 77 + + + ( + - COUNT ( * ) ) * - 65 * - 48 AS col1
----
-3197

onlyif mysql # aggregate syntax: 
query I rowsort label-3032
SELECT DISTINCT 58 + + + COUNT( * ) * - 16 + 61 + CASE 3 WHEN - 7 + 83 THEN + 69 * - 24 - 35 * 90 ELSE NULL END / 91 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3032
SELECT DISTINCT 58 + + + COUNT ( * ) * - 16 + 61 + CASE 3 WHEN - 7 + 83 THEN + 69 * - 24 - 35 * 90 ELSE NULL END / 91 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3033
SELECT DISTINCT NULLIF ( + 95, 41 ) + 72 + + + CAST( NULLIF ( COUNT( - 95 ), 51 + + AVG ( - 32 ) ) AS SIGNED ) + - COUNT( * ) * 49
----
119

skipif mysql # not compatible
query I rowsort label-3033
SELECT DISTINCT NULLIF ( + 95, 41 ) + 72 + + + CAST ( NULLIF ( COUNT ( - 95 ), 51 + + AVG ( - 32 ) ) AS INTEGER ) + - COUNT ( * ) * 49
----
119

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3034
SELECT DISTINCT NULLIF ( + 82, - + 27 ) * + 57 * + 84 - + 7 DIV + COUNT( * ) AS col1
----
392609

skipif mysql # not compatible
query I rowsort label-3034
SELECT DISTINCT NULLIF ( + 82, - + 27 ) * + 57 * + 84 - + 7 / + COUNT ( * ) AS col1
----
392609

onlyif mysql # aggregate syntax: 
query I rowsort label-3035
SELECT - MIN( ALL - - 71 ) + NULLIF ( 14, - 38 ) + 9 AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-3035
SELECT - MIN ( ALL - - 71 ) + NULLIF ( 14, - 38 ) + 9 AS col1
----
-48

query I rowsort
SELECT + 69 * - + 34 * - 90 * + + 43 AS col0
----
9079020

query I rowsort
SELECT ALL 39 + - - 47
----
86

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3039
SELECT DISTINCT + 61 DIV + 44 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3039
SELECT DISTINCT + 61 / + 44 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3040
SELECT - 3 * 65 + - 26 * + COUNT( * ) * - 77 - 34 AS col2
----
1773

skipif mysql # not compatible
query I rowsort label-3040
SELECT - 3 * 65 + - 26 * + COUNT ( * ) * - 77 - 34 AS col2
----
1773

onlyif mysql # aggregate syntax: 
query II rowsort label-3041
SELECT - 9 AS col2, + 88 * + - 59 - - + 14 * - ( NULLIF ( - 35, 73 - - COUNT( * ) ) ) AS col2
----
-9
-4702

skipif mysql # not compatible
query II rowsort label-3041
SELECT - 9 AS col2, + 88 * + - 59 - - + 14 * - ( NULLIF ( - 35, 73 - - COUNT ( * ) ) ) AS col2
----
-9
-4702

query II rowsort
SELECT DISTINCT - + 28 AS col1, - 47
----
-28
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3043
SELECT 44 + - 51 + CASE + 73 WHEN + 11 THEN NULL ELSE 80 DIV 24 - COUNT( * ) END DIV + 56 AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-3043
SELECT 44 + - 51 + CASE + 73 WHEN + 11 THEN NULL ELSE 80 / 24 - COUNT ( * ) END / + 56 AS col2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-3044
SELECT - COUNT( * ) * - 2 * - - MIN( - ( + 87 ) ) AS col0
----
-174

skipif mysql # not compatible
query I rowsort label-3044
SELECT - COUNT ( * ) * - 2 * - - MIN ( - ( + 87 ) ) AS col0
----
-174

onlyif mysql # aggregate syntax: 
query I rowsort label-3045
SELECT DISTINCT + CASE - ( MIN( 7 ) ) WHEN + + 68 THEN 6 ELSE - ( 19 ) END * - 22 AS col2
----
418

skipif mysql # not compatible
query I rowsort label-3045
SELECT DISTINCT + CASE - ( MIN ( 7 ) ) WHEN + + 68 THEN 6 ELSE - ( 19 ) END * - 22 AS col2
----
418

query II rowsort
SELECT ALL - 93 AS col0, 99 * 97
----
-93
9603

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

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

query I rowsort
SELECT ALL + - 31 * + + 27
----
-837

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

query I rowsort
SELECT DISTINCT + 7 * - 71 col1
----
-497

query I rowsort
SELECT + + NULLIF ( - + 53, - 11 + - + 42 )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3053
SELECT 62 * + COUNT( * ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-3053
SELECT 62 * + COUNT ( * ) AS col2
----
62

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3055
SELECT DISTINCT + - 81 + + + 45 * 14 + 12 + 11 + CASE 74 + + 70 WHEN 67 THEN NULL ELSE COUNT( + 72 ) * 75 + 77 END
----
724

skipif mysql # not compatible
query I rowsort label-3055
SELECT DISTINCT + - 81 + + + 45 * 14 + 12 + 11 + CASE 74 + + 70 WHEN 67 THEN NULL ELSE COUNT ( + 72 ) * 75 + 77 END
----
724

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3056
SELECT COUNT( * ) * 4 * ( - 18 ) AS col2, 47 * 18 * - 0 + - 68 * ( + 54 DIV + 92 ) AS col2
----
-72
0

skipif mysql # not compatible
query II rowsort label-3056
SELECT COUNT ( * ) * 4 * ( - 18 ) AS col2, 47 * 18 * - 0 + - 68 * ( + 54 / + 92 ) AS col2
----
-72
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3057
SELECT ALL CAST( NULL AS SIGNED ) / + AVG ( ALL - + 42 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3057
SELECT ALL CAST ( NULL AS INTEGER ) / + AVG ( ALL - + 42 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3058
SELECT ALL 42 AS col1, 73 + - COUNT( DISTINCT + 4 ) AS col2
----
42
72

skipif mysql # not compatible
query II rowsort label-3058
SELECT ALL 42 AS col1, 73 + - COUNT ( DISTINCT + 4 ) AS col2
----
42
72

query I rowsort
SELECT 19 * - 32
----
-608

query I rowsort
SELECT ALL - 82 + - - 86 AS col1
----
4

query I rowsort
SELECT ALL + ( 46 ) + 77
----
123

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

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

query I rowsort
SELECT 9 * - + 50
----
-450

onlyif mysql # aggregate syntax: 
query II rowsort label-3064
SELECT COUNT( * ) * + + 17 AS col1, COUNT( - + 23 ) * 77 * + + SUM( + 57 )
----
17
4389

skipif mysql # not compatible
query II rowsort label-3064
SELECT COUNT ( * ) * + + 17 AS col1, COUNT ( - + 23 ) * 77 * + + SUM ( + 57 )
----
17
4389

onlyif mysql # aggregate syntax: 
query I rowsort label-3065
SELECT ALL + ( + COALESCE ( - 19, + 24 + 9 ) ) + - 24 - 33 * COUNT( * )
----
-76

skipif mysql # not compatible
query I rowsort label-3065
SELECT ALL + ( + COALESCE ( - 19, + 24 + 9 ) ) + - 24 - 33 * COUNT ( * )
----
-76

query II rowsort
SELECT 68 col2, 54 * 80
----
68
4320

onlyif mysql # aggregate syntax: 
query I rowsort label-3067
SELECT DISTINCT NULLIF ( 73, - COUNT( * ) ) * - COUNT( * ) * - 77 AS col2
----
5621

skipif mysql # not compatible
query I rowsort label-3067
SELECT DISTINCT NULLIF ( 73, - COUNT ( * ) ) * - COUNT ( * ) * - 77 AS col2
----
5621

onlyif mysql # aggregate syntax: 
query I rowsort label-3068
SELECT COUNT( * ) - + 72 * 75 AS col0
----
-5399

skipif mysql # not compatible
query I rowsort label-3068
SELECT COUNT ( * ) - + 72 * 75 AS col0
----
-5399

onlyif mysql # aggregate syntax: 
query I rowsort label-3069
SELECT ALL + COUNT( * ) * + 33 * 59
----
1947

skipif mysql # not compatible
query I rowsort label-3069
SELECT ALL + COUNT ( * ) * + 33 * 59
----
1947

query II rowsort
SELECT DISTINCT 18 AS col0, 34
----
18
34

query I rowsort
SELECT DISTINCT 75 - 59
----
16

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3073
SELECT ALL 76 AS col2, COUNT( DISTINCT + + ( + 4 ) )
----
76
1

skipif mysql # not compatible
query II rowsort label-3073
SELECT ALL 76 AS col2, COUNT ( DISTINCT + + ( + 4 ) )
----
76
1

query I rowsort
SELECT ALL 27 * - + 29
----
-783

onlyif mysql # aggregate syntax: 
query I rowsort label-3075
SELECT DISTINCT 39 - - COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-3075
SELECT DISTINCT 39 - - COUNT ( * )
----
40

query II rowsort
SELECT ALL - 5 AS col1, 4 * + 79
----
-5
316

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3077
SELECT 75 DIV - 45 + + MAX( - COALESCE ( - 21, - - 96 - 97 ) ) * - 35
----
-736

skipif mysql # not compatible
query I rowsort label-3077
SELECT 75 / - 45 + + MAX ( - COALESCE ( - 21, - - 96 - 97 ) ) * - 35
----
-736

onlyif mysql # aggregate syntax: 
query I rowsort label-3078
SELECT 36 * + + 72 + + + 31 + + NULLIF ( + ( - - 68 ), COUNT( * ) ) * + 62 AS col0
----
6839

skipif mysql # not compatible
query I rowsort label-3078
SELECT 36 * + + 72 + + + 31 + + NULLIF ( + ( - - 68 ), COUNT ( * ) ) * + 62 AS col0
----
6839

onlyif mysql # aggregate syntax: 
query I rowsort label-3079
SELECT ALL - 63 * + - NULLIF ( + 43, - + CASE COUNT( * ) WHEN + COUNT( * ) * COUNT( * ) THEN - 40 + COALESCE ( ( ( + 94 ) ), + 85 * COUNT( * ) ) / 87 WHEN + 15 * 43 THEN NULL ELSE NULL END )
----
2709

skipif mysql # not compatible
query I rowsort label-3079
SELECT ALL - 63 * + - NULLIF ( + 43, - + CASE COUNT ( * ) WHEN + COUNT ( * ) * COUNT ( * ) THEN - 40 + COALESCE ( ( ( + 94 ) ), + 85 * COUNT ( * ) ) / 87 WHEN + 15 * 43 THEN NULL ELSE NULL END )
----
2709

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3080
SELECT ALL CAST( NULL AS SIGNED ) * + CASE NULLIF ( - + 55, + 90 * 89 ) WHEN ( - 7 ) * - 83 THEN NULL WHEN + CAST( NULL AS SIGNED ) THEN - 68 / - CAST( NULL AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3080
SELECT ALL CAST ( NULL AS INTEGER ) * + CASE NULLIF ( - + 55, + 90 * 89 ) WHEN ( - 7 ) * - 83 THEN NULL WHEN + CAST ( NULL AS INTEGER ) THEN - 68 / - CAST ( NULL AS INTEGER ) ELSE NULL END
----
NULL

query I rowsort
SELECT 28 + 87 AS col1
----
115

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3082
SELECT ALL - COALESCE ( - - 18, - SUM( + 87 ), - - NULLIF ( - 40, 91 ), - 33 DIV + 52 ) DIV + 90
----
0

skipif mysql # not compatible
query I rowsort label-3082
SELECT ALL - COALESCE ( - - 18, - SUM ( + 87 ), - - NULLIF ( - 40, 91 ), - 33 / + 52 ) / + 90
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3083
SELECT DISTINCT - 87 AS col2, - COUNT( * ) AS col0
----
-87
-1

skipif mysql # not compatible
query II rowsort label-3083
SELECT DISTINCT - 87 AS col2, - COUNT ( * ) AS col0
----
-87
-1

query I rowsort
SELECT + - 60 * + 27 + - COALESCE ( - - 76, - 30 ) * + 53 * 82
----
-331916

onlyif mysql # aggregate syntax: 
query I rowsort label-3085
SELECT ALL - + CASE COUNT( ALL + 15 ) WHEN + 64 * + 86 THEN + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3085
SELECT ALL - + CASE COUNT ( ALL + 15 ) WHEN + 64 * + 86 THEN + COUNT ( * ) ELSE NULL END
----
NULL

query II rowsort
SELECT ALL - 48 AS col0, - 28 * + 99
----
-48
-2772

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3087
SELECT ALL - 69 * ( + + COUNT( * ) ) DIV + MAX( 51 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3087
SELECT ALL - 69 * ( + + COUNT ( * ) ) / + MAX ( 51 ) AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3088
SELECT + 41 DIV - + 46 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3088
SELECT + 41 / - + 46 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3089
SELECT - ( - 87 ) * + - MAX( 93 )
----
-8091

skipif mysql # not compatible
query I rowsort label-3089
SELECT - ( - 87 ) * + - MAX ( 93 )
----
-8091

query I rowsort
SELECT 84 * + - 10 + - 54
----
-894

onlyif mysql # aggregate syntax: 
query II rowsort label-3091
SELECT + - 28 col0, + SUM( - - 70 )
----
-28
70

skipif mysql # not compatible
query II rowsort label-3091
SELECT + - 28 col0, + SUM ( - - 70 )
----
-28
70

query I rowsort
SELECT - 68 + - 23
----
-91

query I rowsort
SELECT DISTINCT + 45 + 7 * - 90 * + 72 AS col1
----
-45315

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

onlyif mysql # aggregate syntax: 
query III rowsort label-3095
SELECT + 12 AS col0, COUNT( * ) AS col1, + + 33 * 63 + + 23
----
12
1
2102

skipif mysql # not compatible
query III rowsort label-3095
SELECT + 12 AS col0, COUNT ( * ) AS col1, + + 33 * 63 + + 23
----
12
1
2102

onlyif mysql # aggregate syntax: 
query II rowsort label-3096
SELECT - 90 * - COUNT( * ) col1, + 2 + + 78
----
90
80

skipif mysql # not compatible
query II rowsort label-3096
SELECT - 90 * - COUNT ( * ) col1, + 2 + + 78
----
90
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3097
SELECT ALL + COUNT( * ) + - 51 col0
----
-50

skipif mysql # not compatible
query I rowsort label-3097
SELECT ALL + COUNT ( * ) + - 51 col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-3098
SELECT - 95 * + 31 - + - 90 + - COUNT( * ) - + 56 + - 72 * - 77 AS col2
----
2632

skipif mysql # not compatible
query I rowsort label-3098
SELECT - 95 * + 31 - + - 90 + - COUNT ( * ) - + 56 + - 72 * - 77 AS col2
----
2632

onlyif mysql # aggregate syntax: 
query I rowsort label-3099
SELECT ALL + COALESCE ( + 78, - 96 + + 89 + 45 * - - ( - 8 ) * + COUNT( DISTINCT CASE - 48 WHEN 54 * 87 + - 3 THEN 59 ELSE 75 + CASE - 50 WHEN 53 + - 91 * + 88 THEN 18 ELSE NULL END END ) + 88 ) + 21 * 28
----
666

skipif mysql # not compatible
query I rowsort label-3099
SELECT ALL + COALESCE ( + 78, - 96 + + 89 + 45 * - - ( - 8 ) * + COUNT ( DISTINCT CASE - 48 WHEN 54 * 87 + - 3 THEN 59 ELSE 75 + CASE - 50 WHEN 53 + - 91 * + 88 THEN 18 ELSE NULL END END ) + 88 ) + 21 * 28
----
666

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

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

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

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

query II rowsort
SELECT ALL + 23 * - 78, + 32 AS col1
----
-1794
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3103
SELECT DISTINCT 76 + + 16 + - COUNT( * ) * + + 73 col1
----
19

skipif mysql # not compatible
query I rowsort label-3103
SELECT DISTINCT 76 + + 16 + - COUNT ( * ) * + + 73 col1
----
19

query I rowsort
SELECT ALL - 50 + 75
----
25

onlyif mysql # DIV for integer division: 
query II rowsort label-3105
SELECT 35 - 92 col1, + 32 DIV - 40
----
-57
0

skipif mysql # not compatible
query II rowsort label-3105
SELECT 35 - 92 col1, + 32 / - 40
----
-57
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3106
SELECT ALL + NULLIF ( - + MAX( + ( + 8 ) ), - + 36 ) * - NULLIF ( 89, + 62 * + 49 ) + + 84 AS col0
----
796

skipif mysql # not compatible
query I rowsort label-3106
SELECT ALL + NULLIF ( - + MAX ( + ( + 8 ) ), - + 36 ) * - NULLIF ( 89, + 62 * + 49 ) + + 84 AS col0
----
796

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

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

query II rowsort
SELECT 15 * + - 31, + 31 AS col2
----
-465
31

query I rowsort
SELECT ALL + ( + 31 ) - - 82 * + 74 AS col1
----
6099

query I rowsort
SELECT 25 + + - 82 AS col2
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-3111
SELECT - 46 + - - COUNT( * ) * + - 78
----
-124

skipif mysql # not compatible
query I rowsort label-3111
SELECT - 46 + - - COUNT ( * ) * + - 78
----
-124

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3112
SELECT ALL - 78 DIV - ( COUNT( * ) ), - 20 AS col1
----
78
-20

skipif mysql # not compatible
query II rowsort label-3112
SELECT ALL - 78 / - ( COUNT ( * ) ), - 20 AS col1
----
78
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3113
SELECT - COUNT( * ) + + + 14 DIV 75 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3113
SELECT - COUNT ( * ) + + + 14 / 75 AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3114
SELECT ALL CASE MIN( + 4 ) WHEN + 18 THEN CASE - - 7 WHEN + CAST( NULL AS SIGNED ) THEN + 56 WHEN - 46 THEN - NULLIF ( 56, + COUNT( ALL + CAST( - 45 AS SIGNED ) ) ) + + 59 * + 20 END * 51 ELSE + MIN( ALL 16 ) * 48 END
----
768

skipif mysql # not compatible
query I rowsort label-3114
SELECT ALL CASE MIN ( + 4 ) WHEN + 18 THEN CASE - - 7 WHEN + CAST ( NULL AS INTEGER ) THEN + 56 WHEN - 46 THEN - NULLIF ( 56, + COUNT ( ALL + CAST ( - 45 AS INTEGER ) ) ) + + 59 * + 20 END * 51 ELSE + MIN ( ALL 16 ) * 48 END
----
768

onlyif mysql # aggregate syntax: 
query I rowsort label-3115
SELECT DISTINCT - 61 * + - 77 * + + 87 * - + COUNT( * )
----
-408639

skipif mysql # not compatible
query I rowsort label-3115
SELECT DISTINCT - 61 * + - 77 * + + 87 * - + COUNT ( * )
----
-408639

query I rowsort
SELECT - 98 + 85 - 23 AS col2
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-3117
SELECT DISTINCT COUNT( ALL - 45 ), + 42 col2
----
1
42

skipif mysql # not compatible
query II rowsort label-3117
SELECT DISTINCT COUNT ( ALL - 45 ), + 42 col2
----
1
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3118
SELECT - 62 * + 45 * + COUNT( * ) * COUNT( * )
----
-2790

skipif mysql # not compatible
query I rowsort label-3118
SELECT - 62 * + 45 * + COUNT ( * ) * COUNT ( * )
----
-2790

query I rowsort
SELECT + 68 + NULLIF ( 49, + ( + ( 18 ) ) ) AS col1
----
117

onlyif mysql # DIV for integer division: 
query I rowsort label-3120
SELECT - 80 DIV 55 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3120
SELECT - 80 / 55 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3121
SELECT ALL + + MIN( DISTINCT - 59 ), - 58 AS col2
----
-59
-58

skipif mysql # not compatible
query II rowsort label-3121
SELECT ALL + + MIN ( DISTINCT - 59 ), - 58 AS col2
----
-59
-58

query I rowsort
SELECT DISTINCT + + ( - 23 ) * - 5 AS col2
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-3123
SELECT + COUNT( * ) * - CASE + 78 WHEN + 63 THEN + SUM( - + 72 ) WHEN 30 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3123
SELECT + COUNT ( * ) * - CASE + 78 WHEN + 63 THEN + SUM ( - + 72 ) WHEN 30 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3124
SELECT ALL COALESCE ( CAST( NULL AS SIGNED ), - 36 + 70 + - + COUNT( * ) * - 36 ) * 99 + - 67
----
6863

skipif mysql # not compatible
query I rowsort label-3124
SELECT ALL COALESCE ( CAST ( NULL AS INTEGER ), - 36 + 70 + - + COUNT ( * ) * - 36 ) * 99 + - 67
----
6863

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3126
SELECT ALL - + 5 * 8 / - 50 + CAST( 75 AS SIGNED ) + - - CASE + COALESCE ( 73, 55, - 99 + + 98, 57 ) WHEN - NULLIF ( 39, - 78 * + 44 ) THEN - ( - 22 ) ELSE NULL END + 89 + - COUNT( ALL - 47 + - 64 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3126
SELECT ALL - + 5 * 8 / - 50 + CAST ( 75 AS INTEGER ) + - - CASE + COALESCE ( 73, 55, - 99 + + 98, 57 ) WHEN - NULLIF ( 39, - 78 * + 44 ) THEN - ( - 22 ) ELSE NULL END + 89 + - COUNT ( ALL - 47 + - 64 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3127
SELECT + NULLIF ( + - CASE - 81 WHEN + 20 THEN 29 * 89 * + 81 DIV + 3 + + 52 ELSE + 64 * + ( + 88 * - ( 89 DIV - 22 ) ) END, + 83 ) * + 58 + ( 74 )
----
-1306550

skipif mysql # not compatible
query I rowsort label-3127
SELECT + NULLIF ( + - CASE - 81 WHEN + 20 THEN 29 * 89 * + 81 / + 3 + + 52 ELSE + 64 * + ( + 88 * - ( 89 / - 22 ) ) END, + 83 ) * + 58 + ( 74 )
----
-1306550

onlyif mysql # DIV for integer division: 
query II rowsort label-3128
SELECT DISTINCT 26 DIV - 48, + ( + - 14 ) DIV - - 90 AS col2
----
0
0

skipif mysql # not compatible
query II rowsort label-3128
SELECT DISTINCT 26 / - 48, + ( + - 14 ) / - - 90 AS col2
----
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3129
SELECT ALL + 83 * + - CAST( 6 AS SIGNED ) + - - 46 AS col2
----
-452

skipif mysql # not compatible
query I rowsort label-3129
SELECT ALL + 83 * + - CAST ( 6 AS INTEGER ) + - - 46 AS col2
----
-452

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3130
SELECT + 43 / - 18 / CAST( NULL AS SIGNED ) + - 40 + + - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-3130
SELECT + 43 / - 18 / CAST ( NULL AS INTEGER ) + - 40 + + - 61
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3131
SELECT - CASE 67 WHEN - 25 THEN + ( - + 54 ) * - 80 * CASE 24 WHEN 75 * + 63 + 42 * - 60 THEN + ( 20 ) * + 89 + + 75 END * + CASE 21 WHEN - 67 THEN - ( + 87 ) WHEN 60 + COUNT( * ) * - ( COUNT( * ) ) THEN NULL END + 82 + 96 ELSE - 39 * + 30 END AS col0
----
1170

skipif mysql # not compatible
query I rowsort label-3131
SELECT - CASE 67 WHEN - 25 THEN + ( - + 54 ) * - 80 * CASE 24 WHEN 75 * + 63 + 42 * - 60 THEN + ( 20 ) * + 89 + + 75 END * + CASE 21 WHEN - 67 THEN - ( + 87 ) WHEN 60 + COUNT ( * ) * - ( COUNT ( * ) ) THEN NULL END + 82 + 96 ELSE - 39 * + 30 END AS col0
----
1170

onlyif mysql # aggregate syntax: 
query I rowsort label-3132
SELECT - 68 * - 78 + - - SUM( 91 ) + - + COUNT( * )
----
5394

skipif mysql # not compatible
query I rowsort label-3132
SELECT - 68 * - 78 + - - SUM ( 91 ) + - + COUNT ( * )
----
5394

onlyif mysql # aggregate syntax: 
query I rowsort label-3133
SELECT ALL + SUM( 74 ) * - 53 + + 67 AS col2
----
-3855

skipif mysql # not compatible
query I rowsort label-3133
SELECT ALL + SUM ( 74 ) * - 53 + + 67 AS col2
----
-3855

onlyif mysql # aggregate syntax: 
query I rowsort label-3134
SELECT ALL - ( - - 63 ) * - CASE + 69 WHEN + ( + - NULLIF ( COUNT( * ), 11 * + 55 ) ) THEN NULL WHEN + 71 THEN NULL ELSE + 18 END + + 60
----
1194

skipif mysql # not compatible
query I rowsort label-3134
SELECT ALL - ( - - 63 ) * - CASE + 69 WHEN + ( + - NULLIF ( COUNT ( * ), 11 * + 55 ) ) THEN NULL WHEN + 71 THEN NULL ELSE + 18 END + + 60
----
1194

onlyif mysql # aggregate syntax: 
query I rowsort label-3135
SELECT CASE + 19 WHEN - 80 THEN - + 60 + + - 15 END * - MIN( 10 ) * + 18 + ( 57 ) + - 85
----
NULL

skipif mysql # not compatible
query I rowsort label-3135
SELECT CASE + 19 WHEN - 80 THEN - + 60 + + - 15 END * - MIN ( 10 ) * + 18 + ( 57 ) + - 85
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3136
SELECT DISTINCT - 64 * COUNT( * ), - 38 * 88 AS col1
----
-64
-3344

skipif mysql # not compatible
query II rowsort label-3136
SELECT DISTINCT - 64 * COUNT ( * ), - 38 * 88 AS col1
----
-64
-3344

query I rowsort
SELECT + 0 * ( + + 25 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3138
SELECT + COUNT( * ) + + + 79 * + - 84 * - 68
----
451249

skipif mysql # not compatible
query I rowsort label-3138
SELECT + COUNT ( * ) + + + 79 * + - 84 * - 68
----
451249

query I rowsort
SELECT - 82 + + 70 - - - 16
----
-28

query I rowsort
SELECT + 94 * 26
----
2444

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

skipif mysql # not compatible
query I rowsort label-3141
SELECT COUNT ( 42 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3142
SELECT + COUNT( - 51 ) * + - 51 * CAST( 85 AS SIGNED ) + + 34 AS col0
----
-4301

skipif mysql # not compatible
query I rowsort label-3142
SELECT + COUNT ( - 51 ) * + - 51 * CAST ( 85 AS INTEGER ) + + 34 AS col0
----
-4301

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

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

query I rowsort
SELECT + 70 * + + 4 AS col2
----
280

query I rowsort
SELECT - 76 * 16 AS col2
----
-1216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3146
SELECT ALL CASE 88 WHEN 37 + - COALESCE ( - + MIN( + 98 ), + 65 ) / 4 * - ( 73 * - 73 ) + - 51 THEN - 60 * + 59 WHEN + 38 * - CAST( NULL AS SIGNED ) THEN + NULLIF ( + AVG ( + 40 ), - 99 / 48 ) + COUNT( ALL 91 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3146
SELECT ALL CASE 88 WHEN 37 + - COALESCE ( - + MIN ( + 98 ), + 65 ) / 4 * - ( 73 * - 73 ) + - 51 THEN - 60 * + 59 WHEN + 38 * - CAST ( NULL AS INTEGER ) THEN + NULLIF ( + AVG ( + 40 ), - 99 / 48 ) + COUNT ( ALL 91 ) END
----
NULL

query I rowsort
SELECT ALL - 92 * + 45 AS col0
----
-4140

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3148
SELECT - CAST( NULL AS SIGNED ) AS col0, 72 DIV - 4
----
NULL
-18

skipif mysql # not compatible
query II rowsort label-3148
SELECT - CAST ( NULL AS INTEGER ) AS col0, 72 / - 4
----
NULL
-18

query I rowsort
SELECT - 40 * + 23 col2
----
-920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3150
SELECT DISTINCT - 74 * + - CAST( NULL AS SIGNED ) * + - 76 * - 66 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3150
SELECT DISTINCT - 74 * + - CAST ( NULL AS INTEGER ) * + - 76 * - 66 AS col0
----
NULL

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

query II rowsort
SELECT - 65 AS col1, - 82
----
-65
-82

query I rowsort
SELECT + 4 * ( + 95 ) AS col2
----
380

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3154
SELECT - CAST( ( - 12 ) AS SIGNED ) AS col2, - 83 / CAST( NULL AS DECIMAL ) * - 52 + - CAST( NULL AS SIGNED ) * COALESCE ( + 44, - 72 )
----
12
NULL

skipif mysql # not compatible
query II rowsort label-3154
SELECT - CAST ( ( - 12 ) AS INTEGER ) AS col2, - 83 / CAST ( NULL AS REAL ) * - 52 + - CAST ( NULL AS INTEGER ) * COALESCE ( + 44, - 72 )
----
12
NULL

query II rowsort
SELECT 25 col1, 80 AS col2
----
25
80

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

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

query I rowsort
SELECT - 45 * + 38
----
-1710

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3159
SELECT - COUNT( CAST( NULL AS SIGNED ) ) DIV CAST( 7 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-3159
SELECT - COUNT ( CAST ( NULL AS INTEGER ) ) / CAST ( 7 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3160
SELECT 41 AS col0, - 75 * + COUNT( * ) + 22
----
41
-53

skipif mysql # not compatible
query II rowsort label-3160
SELECT 41 AS col0, - 75 * + COUNT ( * ) + 22
----
41
-53

query II rowsort
SELECT + 50 col2, + 60
----
50
60

query II rowsort
SELECT ALL 78 AS col0, + 39
----
78
39

onlyif mysql # DIV for integer division: 
query I rowsort label-3163
SELECT - 96 DIV - + 67 + + + 84 AS col1
----
85

skipif mysql # not compatible
query I rowsort label-3163
SELECT - 96 / - + 67 + + + 84 AS col1
----
85

query II rowsort
SELECT - 51 AS col0, - 32 + ( + + 11 ) + - - 69 * - - 68 * 86 AS col2
----
-51
403491

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3166
SELECT - CAST( - 58 AS SIGNED ) + + 47
----
105

skipif mysql # not compatible
query I rowsort label-3166
SELECT - CAST ( - 58 AS INTEGER ) + + 47
----
105

query I rowsort
SELECT - - 42 - + - 3 AS col1
----
45

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3169
SELECT + ( - ( + + NULLIF ( - COUNT( * ), + CASE WHEN NOT ( 50 ) NOT IN ( + 38 + + 22 ) THEN 26 ELSE NULL END + 85 ) ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3169
SELECT + ( - ( + + NULLIF ( - COUNT ( * ), + CASE WHEN NOT ( 50 ) NOT IN ( + 38 + + 22 ) THEN 26 ELSE NULL END + 85 ) ) ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3170
SELECT - - 94 / + 26 - + 98 + - + 76 * CAST( - + 26 AS SIGNED ) + + COUNT( * ) + COALESCE ( + 45, - 94, + COUNT( * ) ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3170
SELECT - - 94 / + 26 - + 98 + - + 76 * CAST ( - + 26 AS INTEGER ) + + COUNT ( * ) + COALESCE ( + 45, - 94, + COUNT ( * ) ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3171
SELECT DISTINCT 99 DIV 25 + COALESCE ( 8, + 92 )
----
11

skipif mysql # not compatible
query I rowsort label-3171
SELECT DISTINCT 99 / 25 + COALESCE ( 8, + 92 )
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-3172
SELECT ALL + 29 DIV 22 * + 40 + + ( + 57 ) * + 84 AS col2
----
4828

skipif mysql # not compatible
query I rowsort label-3172
SELECT ALL + 29 / 22 * + 40 + + ( + 57 ) * + 84 AS col2
----
4828

query I rowsort
SELECT + NULLIF ( - 93, - 0 )
----
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3174
SELECT DISTINCT + 43 DIV - - 11 * - + COUNT( * ) + COUNT( * ) + - 38 - + 69 + NULLIF ( 22, 63 + COUNT( * ) ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-3174
SELECT DISTINCT + 43 / - - 11 * - + COUNT ( * ) + COUNT ( * ) + - 38 - + 69 + NULLIF ( 22, 63 + COUNT ( * ) ) AS col0
----
-87

query I rowsort
SELECT - + 6 + 28
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-3176
SELECT DISTINCT + 79 DIV + 94 * + 82 + 23 + + - 24 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3176
SELECT DISTINCT + 79 / + 94 * + 82 + 23 + + - 24 AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3177
SELECT ALL + 65 DIV - 76 + 8 + 79 * - 40 AS col2
----
-3152

skipif mysql # not compatible
query I rowsort label-3177
SELECT ALL + 65 / - 76 + 8 + 79 * - 40 AS col2
----
-3152

onlyif mysql # DIV for integer division: 
query I rowsort label-3178
SELECT ALL - - 79 DIV - 8 - + 12 * 91 * - 12 + - 33 AS col0
----
13062

skipif mysql # not compatible
query I rowsort label-3178
SELECT ALL - - 79 / - 8 - + 12 * 91 * - 12 + - 33 AS col0
----
13062

onlyif mysql # aggregate syntax: 
query I rowsort label-3179
SELECT ALL + - MIN( ALL - 74 ) col1
----
74

skipif mysql # not compatible
query I rowsort label-3179
SELECT ALL + - MIN ( ALL - 74 ) col1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3180
SELECT - - NULLIF ( - - MAX( + 4 ), + 69 ) + - + COUNT( * ) + 19 AS col1
----
22

skipif mysql # not compatible
query I rowsort label-3180
SELECT - - NULLIF ( - - MAX ( + 4 ), + 69 ) + - + COUNT ( * ) + 19 AS col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3181
SELECT + - 24 * - 67 + + - COUNT( * ) - - 43 * + COUNT( DISTINCT + 66 ) AS col0
----
1650

skipif mysql # not compatible
query I rowsort label-3181
SELECT + - 24 * - 67 + + - COUNT ( * ) - - 43 * + COUNT ( DISTINCT + 66 ) AS col0
----
1650

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3184
SELECT ALL + 3 DIV - 53 - + COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3184
SELECT ALL + 3 / - 53 - + COUNT ( * ) AS col0
----
-1

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3187
SELECT - 70 - + + CAST( - - 35 AS SIGNED ) AS col2
----
-105

skipif mysql # not compatible
query I rowsort label-3187
SELECT - 70 - + + CAST ( - - 35 AS INTEGER ) AS col2
----
-105

query I rowsort
SELECT ALL 17 * - + 35 AS col1
----
-595

onlyif mysql # aggregate syntax: 
query II rowsort label-3189
SELECT ALL COUNT( * ) * - + 95 col2, 16 col1
----
-95
16

skipif mysql # not compatible
query II rowsort label-3189
SELECT ALL COUNT ( * ) * - + 95 col2, 16 col1
----
-95
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3190
SELECT DISTINCT 22 * COUNT( * ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-3190
SELECT DISTINCT 22 * COUNT ( * ) AS col1
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-3191
SELECT ALL 51 DIV + 84
----
0

skipif mysql # not compatible
query I rowsort label-3191
SELECT ALL 51 / + 84
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3192
SELECT ALL 21 + CASE 3 WHEN - + 27 THEN COUNT( * ) + 69 END / + 15 * + 56 * 82
----
NULL

skipif mysql # not compatible
query I rowsort label-3192
SELECT ALL 21 + CASE 3 WHEN - + 27 THEN COUNT ( * ) + 69 END / + 15 * + 56 * 82
----
NULL

query I rowsort
SELECT DISTINCT 80 + + - 84
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3194
SELECT 75 * - COUNT( * ) * + - ( + + 79 ) * + + 37 AS col1
----
219225

skipif mysql # not compatible
query I rowsort label-3194
SELECT 75 * - COUNT ( * ) * + - ( + + 79 ) * + + 37 AS col1
----
219225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3195
SELECT CAST( - 38 AS SIGNED ) + + 14 AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-3195
SELECT CAST ( - 38 AS INTEGER ) + + 14 AS col0
----
-24

query I rowsort
SELECT ALL 41 + + ( + + 70 ) col0
----
111

onlyif mysql # aggregate syntax: 
query II rowsort label-3197
SELECT - 84 + - - 36, - SUM( 8 ) * - 61 + + - 5 + + - 35 + ( + COUNT( * ) ) AS col0
----
-48
449

skipif mysql # not compatible
query II rowsort label-3197
SELECT - 84 + - - 36, - SUM ( 8 ) * - 61 + + - 5 + + - 35 + ( + COUNT ( * ) ) AS col0
----
-48
449

query I rowsort
SELECT ALL - 40 * + 49
----
-1960

onlyif mysql # aggregate syntax: 
query I rowsort label-3199
SELECT NULLIF ( - 86, - 0 - + + 25 ) + + MIN( + 66 ) + + 9
----
-11

skipif mysql # not compatible
query I rowsort label-3199
SELECT NULLIF ( - 86, - 0 - + + 25 ) + + MIN ( + 66 ) + + 9
----
-11

query I rowsort
SELECT + 51 * 67
----
3417

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3201
SELECT ALL + CAST( + - 58 AS SIGNED ) + - + MAX( ALL - 16 ) DIV - 34
----
-58

skipif mysql # not compatible
query I rowsort label-3201
SELECT ALL + CAST ( + - 58 AS INTEGER ) + - + MAX ( ALL - 16 ) / - 34
----
-58

query I rowsort
SELECT + NULLIF ( 14, - 55 ) + + - 17 + + + 18 - + 22 + 64
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3203
SELECT ALL - - 9 + + CAST( NULL AS SIGNED ), SUM( + 4 ) AS col2
----
NULL
4

skipif mysql # not compatible
query II rowsort label-3203
SELECT ALL - - 9 + + CAST ( NULL AS INTEGER ), SUM ( + 4 ) AS col2
----
NULL
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3204
SELECT COALESCE ( 66, MIN( DISTINCT 14 ) )
----
66

skipif mysql # not compatible
query I rowsort label-3204
SELECT COALESCE ( 66, MIN ( DISTINCT 14 ) )
----
66

query I rowsort
SELECT DISTINCT + - 72 - + 28 + + 69
----
-31

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3207
SELECT ALL + - COUNT( * ) - - CAST( + 53 AS SIGNED ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-3207
SELECT ALL + - COUNT ( * ) - - CAST ( + 53 AS INTEGER ) AS col2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3208
SELECT CASE + 15 WHEN 91 + + + 31 / + 73 THEN - 91 WHEN + + COUNT( * ) * - 79 THEN - 34 END * - 18
----
NULL

skipif mysql # not compatible
query I rowsort label-3208
SELECT CASE + 15 WHEN 91 + + + 31 / + 73 THEN - 91 WHEN + + COUNT ( * ) * - 79 THEN - 34 END * - 18
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3209
SELECT ALL + + ( + - 78 ) DIV + 29 + - 51 AS col0, 84 + + 72 * - 74 col2
----
-53
-5244

skipif mysql # not compatible
query II rowsort label-3209
SELECT ALL + + ( + - 78 ) / + 29 + - 51 AS col0, 84 + + 72 * - 74 col2
----
-53
-5244

query I rowsort
SELECT 82 + - - 39
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-3211
SELECT ALL + + 30 * - 87 * - - COUNT( * )
----
-2610

skipif mysql # not compatible
query I rowsort label-3211
SELECT ALL + + 30 * - 87 * - - COUNT ( * )
----
-2610

query II rowsort
SELECT 31 * - + 87 AS col2, + 1
----
-2697
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3213
SELECT MIN( ALL 96 ) * - 26 * - + 72 AS col0
----
179712

skipif mysql # not compatible
query I rowsort label-3213
SELECT MIN ( ALL 96 ) * - 26 * - + 72 AS col0
----
179712

query I rowsort
SELECT 25 + + CASE + 78 WHEN + - 70 THEN - 28 END
----
NULL

query I rowsort
SELECT 28 * 52
----
1456

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

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

query I rowsort
SELECT - 21 * - CASE - 95 WHEN - + 51 + + ( + 23 ) THEN - + 44 WHEN 29 * 25 THEN + 89 ELSE + 35 - 35 END - ( - NULLIF ( 10, + 47 ) + 34 )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3218
SELECT - 58 * + CASE - COALESCE ( + 92, 78 ) WHEN - - 42 THEN - 67 WHEN COUNT( * ) THEN NULL ELSE NULL END + 90 + + + 31 * - 79
----
NULL

skipif mysql # not compatible
query I rowsort label-3218
SELECT - 58 * + CASE - COALESCE ( + 92, 78 ) WHEN - - 42 THEN - 67 WHEN COUNT ( * ) THEN NULL ELSE NULL END + 90 + + + 31 * - 79
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3220
SELECT ALL - 25, NULLIF ( + COALESCE ( + 20, - + ( + - 56 ) * + 37 * + 87 * + 61 * + 82 ), - 50 - AVG ( + 59 ) ) + + 73 * + COUNT( DISTINCT + 57 * + 17 - 68 ) AS col2
----
-25
93

skipif mysql # not compatible
query II rowsort label-3220
SELECT ALL - 25, NULLIF ( + COALESCE ( + 20, - + ( + - 56 ) * + 37 * + 87 * + 61 * + 82 ), - 50 - AVG ( + 59 ) ) + + 73 * + COUNT ( DISTINCT + 57 * + 17 - 68 ) AS col2
----
-25
93

query I rowsort
SELECT + 1 * - 50 + 14 + 90
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3222
SELECT ALL 27 + - 11 + - ( - + COUNT( - 82 ) ) + - 33 AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-3222
SELECT ALL 27 + - 11 + - ( - + COUNT ( - 82 ) ) + - 33 AS col2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-3223
SELECT MAX( DISTINCT - 78 ) * + 5 AS col0
----
-390

skipif mysql # not compatible
query I rowsort label-3223
SELECT MAX ( DISTINCT - 78 ) * + 5 AS col0
----
-390

query I rowsort
SELECT ALL + 57 + 61
----
118

query I rowsort
SELECT ALL 3 + - - ( - 5 ) + + 69 * - 31
----
-2141

query I rowsort
SELECT DISTINCT + 39 * + 42 AS col1
----
1638

query I rowsort
SELECT - 78 * - 98 + - 83
----
7561

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3228
SELECT ALL COALESCE ( + + 97, 56 * + + ( + + ( ( + CAST( NULL AS SIGNED ) ) ) ) ) * + 9 * 68 * - COUNT( * ) AS col2
----
-59364

skipif mysql # not compatible
query I rowsort label-3228
SELECT ALL COALESCE ( + + 97, 56 * + + ( + + ( ( + CAST ( NULL AS INTEGER ) ) ) ) ) * + 9 * 68 * - COUNT ( * ) AS col2
----
-59364

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3230
SELECT 18 DIV + CASE - - COALESCE ( - 38, - - 81 ) WHEN 86 * + NULLIF ( - + 30, + COALESCE ( - COUNT( 87 ), + 93 ) ) - - COALESCE ( - 90, 68 ) DIV - 55 THEN NULL WHEN 65 THEN + ( + 22 ) + + 34 ELSE - 69 END * 92
----
0

skipif mysql # not compatible
query I rowsort label-3230
SELECT 18 / + CASE - - COALESCE ( - 38, - - 81 ) WHEN 86 * + NULLIF ( - + 30, + COALESCE ( - COUNT ( 87 ), + 93 ) ) - - COALESCE ( - 90, 68 ) / - 55 THEN NULL WHEN 65 THEN + ( + 22 ) + + 34 ELSE - 69 END * 92
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3231
SELECT ALL CASE COUNT( * ) WHEN - 42 THEN + 70 - + 37 + 32 - + 46 END + 43 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3231
SELECT ALL CASE COUNT ( * ) WHEN - 42 THEN + 70 - + 37 + 32 - + 46 END + 43 AS col2
----
NULL

query I rowsort
SELECT - 44 * + 34 * + + 98
----
-146608

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

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

query I rowsort
SELECT - 58 - 75 - - 30
----
-103

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3235
SELECT - + 43 col0, 60 * - NULLIF ( - - ( - ( - 14 ) ), CAST( + + 17 AS SIGNED ) ) AS col1
----
-43
-840

skipif mysql # not compatible
query II rowsort label-3235
SELECT - + 43 col0, 60 * - NULLIF ( - - ( - ( - 14 ) ), CAST ( + + 17 AS INTEGER ) ) AS col1
----
-43
-840

query I rowsort
SELECT ALL + - 69 * + 51
----
-3519

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3237
SELECT ALL - COUNT( * ) - 23 DIV 24 * - - 25
----
-1

skipif mysql # not compatible
query I rowsort label-3237
SELECT ALL - COUNT ( * ) - 23 / 24 * - - 25
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3238
SELECT DISTINCT - ( - 80 ) * + 54 DIV + ( - COUNT( * ) ) + 0 AS col1
----
-4320

skipif mysql # not compatible
query I rowsort label-3238
SELECT DISTINCT - ( - 80 ) * + 54 / + ( - COUNT ( * ) ) + 0 AS col1
----
-4320

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3240
SELECT 66 - - ( + COUNT( + 34 ) )
----
67

skipif mysql # not compatible
query I rowsort label-3240
SELECT 66 - - ( + COUNT ( + 34 ) )
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3241
SELECT - CASE - COUNT( * ) WHEN - CAST( NULL AS SIGNED ) THEN NULL WHEN CASE COUNT( * ) WHEN - NULLIF ( + 16, + + COUNT( * ) ) THEN - ( 98 ) WHEN - 78 + 49 * COUNT( * ) THEN NULL WHEN + 92 THEN NULL END + + 8 THEN - 32 END * 47 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3241
SELECT - CASE - COUNT ( * ) WHEN - CAST ( NULL AS INTEGER ) THEN NULL WHEN CASE COUNT ( * ) WHEN - NULLIF ( + 16, + + COUNT ( * ) ) THEN - ( 98 ) WHEN - 78 + 49 * COUNT ( * ) THEN NULL WHEN + 92 THEN NULL END + + 8 THEN - 32 END * 47 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 1 * + + 42 AS col0
----
-42

query I rowsort
SELECT DISTINCT - 85 * 97 * + - 67 AS col0
----
552415

onlyif mysql # aggregate syntax: 
query I rowsort label-3244
SELECT + + COALESCE ( + SUM( DISTINCT + 72 ), + 46, ( 87 ) + 57, + 75 )
----
72

skipif mysql # not compatible
query I rowsort label-3244
SELECT + + COALESCE ( + SUM ( DISTINCT + 72 ), + 46, ( 87 ) + 57, + 75 )
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3245
SELECT ALL + CASE + AVG ( - 85 ) WHEN - - 69 + 91 THEN 58 / - + ( - 96 ) * CAST( NULL AS SIGNED ) * NULLIF ( ( 60 ), COALESCE ( + AVG ( 28 ), - 82 ) + + 53 ) ELSE - 10 END
----
-10

skipif mysql # not compatible
query I rowsort label-3245
SELECT ALL + CASE + AVG ( - 85 ) WHEN - - 69 + 91 THEN 58 / - + ( - 96 ) * CAST ( NULL AS INTEGER ) * NULLIF ( ( 60 ), COALESCE ( + AVG ( 28 ), - 82 ) + + 53 ) ELSE - 10 END
----
-10

query I rowsort
SELECT ALL ( - - 74 ) * + 92
----
6808

onlyif mysql # DIV for integer division: 
query I rowsort label-3247
SELECT ALL + 33 DIV - - 50 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3247
SELECT ALL + 33 / - - 50 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3248
SELECT - CASE WHEN + 74 IS NOT NULL THEN + 71 WHEN ( NULL ) IN ( - 61, - 21 ) THEN - + 35 DIV - 55 END * 59
----
-4189

skipif mysql # not compatible
query I rowsort label-3248
SELECT - CASE WHEN + 74 IS NOT NULL THEN + 71 WHEN ( NULL ) IN ( - 61, - 21 ) THEN - + 35 / - 55 END * 59
----
-4189

query I rowsort
SELECT ALL + CASE + 16 WHEN + 30 + - - 60 - 30 * + 66 * 58 * + + 24 THEN NULL ELSE - 91 + 79 END AS col1
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3250
SELECT ALL + COUNT( * ) col2, + 31 DIV + 49
----
1
0

skipif mysql # not compatible
query II rowsort label-3250
SELECT ALL + COUNT ( * ) col2, + 31 / + 49
----
1
0

query I rowsort
SELECT DISTINCT 79 * 41 + + 90 + - ( 76 ) * + 43 col1
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-3252
SELECT + 63 DIV - ( + 56 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3252
SELECT + 63 / - ( + 56 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3253
SELECT - 69 * - - CASE 85 WHEN - MIN( - - ( 25 ) ) THEN 25 + - 76 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3253
SELECT - 69 * - - CASE 85 WHEN - MIN ( - - ( 25 ) ) THEN 25 + - 76 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3254
SELECT ALL 53 * - 49 * + 66 + + AVG ( ALL + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3254
SELECT ALL 53 * - 49 * + 66 + + AVG ( ALL + + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT 91 * - 60 + 0
----
-5460

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3257
SELECT DISTINCT + 52 * + - COALESCE ( - COALESCE ( + ( - ( - 95 ) ), - CAST( + - 43 AS SIGNED ) ), 75 - + 89 + + 57 * + 40 * + 92 ) AS col2
----
4940

skipif mysql # not compatible
query I rowsort label-3257
SELECT DISTINCT + 52 * + - COALESCE ( - COALESCE ( + ( - ( - 95 ) ), - CAST ( + - 43 AS INTEGER ) ), 75 - + 89 + + 57 * + 40 * + 92 ) AS col2
----
4940

query I rowsort
SELECT ALL 66 * - - ( + 74 ) + 44 AS col0
----
4928

onlyif mysql # aggregate syntax: 
query I rowsort label-3259
SELECT 62 * + - 64 + 93 - MIN( DISTINCT 19 ) * - 68 AS col0
----
-2583

skipif mysql # not compatible
query I rowsort label-3259
SELECT 62 * + - 64 + 93 - MIN ( DISTINCT 19 ) * - 68 AS col0
----
-2583

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

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

query I rowsort
SELECT - COALESCE ( 24, + 86 + + 89, + 6 ) + - 97
----
-121

query I rowsort
SELECT ALL + 26 + - 60 - 24 * - ( + 78 ) AS col2
----
1838

query I rowsort
SELECT DISTINCT + 53 * + 28
----
1484

query I rowsort
SELECT ALL - 98 + 69 AS col1
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-3265
SELECT - 3 - ( + + 42 ) + COUNT( * )
----
-44

skipif mysql # not compatible
query I rowsort label-3265
SELECT - 3 - ( + + 42 ) + COUNT ( * )
----
-44

query I rowsort
SELECT - 79 - - 23
----
-56

query I rowsort
SELECT - 19 + - - 32 AS col2
----
13

query I rowsort
SELECT + 89 + - 99 AS col2
----
-10

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3270
SELECT + 41 AS col0, 23 + - - COUNT( * ) AS col1
----
41
24

skipif mysql # not compatible
query II rowsort label-3270
SELECT + 41 AS col0, 23 + - - COUNT ( * ) AS col1
----
41
24

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

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

query I rowsort
SELECT - + 68 + + 9 col2
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3273
SELECT - - MAX( ALL 90 ) + + - 21 * + - ( - 54 ) AS col0
----
-1044

skipif mysql # not compatible
query I rowsort label-3273
SELECT - - MAX ( ALL 90 ) + + - 21 * + - ( - 54 ) AS col0
----
-1044

query I rowsort
SELECT ALL - - 26 - 72 AS col1
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-3275
SELECT DISTINCT - - 63 DIV - + 8
----
-7

skipif mysql # not compatible
query I rowsort label-3275
SELECT DISTINCT - - 63 / - + 8
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-3276
SELECT ALL 8 * MIN( 79 )
----
632

skipif mysql # not compatible
query I rowsort label-3276
SELECT ALL 8 * MIN ( 79 )
----
632

onlyif mysql # aggregate syntax: 
query I rowsort label-3277
SELECT + 78 * - COUNT( DISTINCT 7 ) * - 18 * - 10
----
-14040

skipif mysql # not compatible
query I rowsort label-3277
SELECT + 78 * - COUNT ( DISTINCT 7 ) * - 18 * - 10
----
-14040

query II rowsort
SELECT ALL - 2 AS col2, + 62
----
-2
62

onlyif mysql # aggregate syntax: 
query II rowsort label-3279
SELECT ( - COUNT( * ) ) col1, 78
----
-1
78

skipif mysql # not compatible
query II rowsort label-3279
SELECT ( - COUNT ( * ) ) col1, 78
----
-1
78

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

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

query II rowsort
SELECT 20, 11 AS col1
----
20
11

query I rowsort
SELECT + 5 + + 37
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-3283
SELECT ALL + 78 AS col0, MIN( + - 78 )
----
78
-78

skipif mysql # not compatible
query II rowsort label-3283
SELECT ALL + 78 AS col0, MIN ( + - 78 )
----
78
-78

query II rowsort
SELECT - - 42 * 66 AS col1, - 18 * 75 - + - 21
----
2772
-1329

query I rowsort
SELECT + ( - - 64 ) + - + ( - 71 ) AS col2
----
135

query II rowsort
SELECT ALL 88, 69 + 83 AS col1
----
88
152

onlyif mysql # aggregate syntax: 
query I rowsort label-3287
SELECT + + MIN( DISTINCT 33 ) * + 90
----
2970

skipif mysql # not compatible
query I rowsort label-3287
SELECT + + MIN ( DISTINCT 33 ) * + 90
----
2970

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3288
SELECT + SUM( + + 42 ) + CASE + + 41 WHEN + 6 - + 44 THEN + - 6 + + + 91 + 62 + - - ( - + 26 ) + + 22 DIV COALESCE ( 12, - 99, NULLIF ( - 9, 64 DIV + CASE + 80 WHEN + 69 THEN NULL ELSE 91 END ) ) WHEN - 73 THEN - ( 21 ) ELSE 43 END + - COUNT( * )
----
84

skipif mysql # not compatible
query I rowsort label-3288
SELECT + SUM ( + + 42 ) + CASE + + 41 WHEN + 6 - + 44 THEN + - 6 + + + 91 + 62 + - - ( - + 26 ) + + 22 / COALESCE ( 12, - 99, NULLIF ( - 9, 64 / + CASE + 80 WHEN + 69 THEN NULL ELSE 91 END ) ) WHEN - 73 THEN - ( 21 ) ELSE 43 END + - COUNT ( * )
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-3289
SELECT - 13 DIV - 1 + + + 96 AS col2
----
109

skipif mysql # not compatible
query I rowsort label-3289
SELECT - 13 / - 1 + + + 96 AS col2
----
109

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3290
SELECT CAST( - 54 AS SIGNED ) col0
----
-54

skipif mysql # not compatible
query I rowsort label-3290
SELECT CAST ( - 54 AS INTEGER ) col0
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3291
SELECT CAST( - 6 AS SIGNED ), 13 - 19
----
-6
-6

skipif mysql # not compatible
query II rowsort label-3291
SELECT CAST ( - 6 AS INTEGER ), 13 - 19
----
-6
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3292
SELECT + MAX( DISTINCT + 36 ) * 69 AS col0
----
2484

skipif mysql # not compatible
query I rowsort label-3292
SELECT + MAX ( DISTINCT + 36 ) * 69 AS col0
----
2484

query I rowsort
SELECT + ( 61 ) + 69
----
130

query I rowsort
SELECT DISTINCT CASE 50 WHEN 86 THEN + 71 WHEN 8 THEN NULL ELSE NULL END / NULLIF ( + + 43, + 35 ) + + + 25 * 18 * + 57 + - 28 + 74 / ( + ( - 51 ) + 72 ) col1
----
NULL

query I rowsort
SELECT ALL 34 * + 17
----
578

onlyif mysql # DIV for integer division: 
query I rowsort label-3296
SELECT + 57 + + 91 DIV + - 79 col0
----
56

skipif mysql # not compatible
query I rowsort label-3296
SELECT + 57 + + 91 / + - 79 col0
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3297
SELECT DISTINCT 63 * - + 93 * - 74 * - CAST( + - 12 AS SIGNED ) * 44 + 63 + 25
----
228922936

skipif mysql # not compatible
query I rowsort label-3297
SELECT DISTINCT 63 * - + 93 * - 74 * - CAST ( + - 12 AS INTEGER ) * 44 + 63 + 25
----
228922936

query I rowsort
SELECT ALL 93 * 83 + 11
----
7730

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3300
SELECT + 10 DIV - - ( + COALESCE ( + 13, + 58 * 86 + + 75 ) )
----
0

skipif mysql # not compatible
query I rowsort label-3300
SELECT + 10 / - - ( + COALESCE ( + 13, + 58 * 86 + + 75 ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3301
SELECT ( - CAST( 11 AS SIGNED ) ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-3301
SELECT ( - CAST ( 11 AS INTEGER ) ) AS col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3302
SELECT ALL ( + COALESCE ( + ( - 14 ), - - ( + SUM( 87 ) ) ) ) * - - 74 + - 87 + - + 76 - + 59
----
-1258

skipif mysql # not compatible
query I rowsort label-3302
SELECT ALL ( + COALESCE ( + ( - 14 ), - - ( + SUM ( 87 ) ) ) ) * - - 74 + - 87 + - + 76 - + 59
----
-1258

onlyif mysql # DIV for integer division: 
query I rowsort label-3303
SELECT DISTINCT 99 * + + 8 + + 99 DIV + - 16
----
786

skipif mysql # not compatible
query I rowsort label-3303
SELECT DISTINCT 99 * + + 8 + + 99 / + - 16
----
786

onlyif mysql # aggregate syntax: 
query I rowsort label-3304
SELECT NULLIF ( + 30, - COUNT( * ) * - 37 * - 51 + + 27 )
----
30

skipif mysql # not compatible
query I rowsort label-3304
SELECT NULLIF ( + 30, - COUNT ( * ) * - 37 * - 51 + + 27 )
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3305
SELECT ALL CAST( - 36 AS SIGNED ) * - 21 * + - CAST( 77 AS SIGNED ) * + + 2 + - 0 + 84 - + + 26 * ( + NULLIF ( + + 93, - 60 / - 3 ) ) + MAX( ALL 93 ) + - COUNT( * ) * + ( - 22 )
----
-118643

skipif mysql # not compatible
query I rowsort label-3305
SELECT ALL CAST ( - 36 AS INTEGER ) * - 21 * + - CAST ( 77 AS INTEGER ) * + + 2 + - 0 + 84 - + + 26 * ( + NULLIF ( + + 93, - 60 / - 3 ) ) + MAX ( ALL 93 ) + - COUNT ( * ) * + ( - 22 )
----
-118643

onlyif mysql # aggregate syntax: 
query I rowsort label-3306
SELECT ALL + NULLIF ( - + 97, + - COUNT( * ) * 21 / + + 85 + + 27 ) AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-3306
SELECT ALL + NULLIF ( - + 97, + - COUNT ( * ) * 21 / + + 85 + + 27 ) AS col0
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3307
SELECT + CAST( - 26 AS SIGNED ), ( 48 ) * + MAX( ALL + 76 ) + - - CAST( - + 52 AS SIGNED ) + - + 14 AS col1
----
-26
3582

skipif mysql # not compatible
query II rowsort label-3307
SELECT + CAST ( - 26 AS INTEGER ), ( 48 ) * + MAX ( ALL + 76 ) + - - CAST ( - + 52 AS INTEGER ) + - + 14 AS col1
----
-26
3582

onlyif mysql # aggregate syntax: 
query I rowsort label-3308
SELECT - 56 + + + COUNT( * ) + + + 97 * + 11 AS col2
----
1012

skipif mysql # not compatible
query I rowsort label-3308
SELECT - 56 + + + COUNT ( * ) + + + 97 * + 11 AS col2
----
1012

onlyif mysql # aggregate syntax: 
query I rowsort label-3309
SELECT DISTINCT - 20 * - COUNT( * ) * - 95
----
-1900

skipif mysql # not compatible
query I rowsort label-3309
SELECT DISTINCT - 20 * - COUNT ( * ) * - 95
----
-1900

onlyif mysql # aggregate syntax: 
query II rowsort label-3310
SELECT 9 * - - 16 + COUNT( * ) AS col0, 63 + + 90 AS col1
----
145
153

skipif mysql # not compatible
query II rowsort label-3310
SELECT 9 * - - 16 + COUNT ( * ) AS col0, 63 + + 90 AS col1
----
145
153

query II rowsort
SELECT ALL - 3 * + 64, + 62 AS col1
----
-192
62

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3312
SELECT - - 98 DIV - + CAST( - 38 AS SIGNED ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-3312
SELECT - - 98 / - + CAST ( - 38 AS INTEGER ) AS col2
----
2

query I rowsort
SELECT ALL 96 / + CASE - 95 WHEN + - 66 THEN NULL WHEN + + 25 THEN + - 88 * 97 END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3314
SELECT ALL - - CAST ( NULL AS INTEGER ) * ( + + MAX ( 15 ) ) - COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT COALESCE ( + 30, + 78 ) AS col2
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3316
SELECT ALL - ( - - CASE - 14 WHEN + 33 THEN + + COUNT( * ) + + 43 WHEN + 5 THEN + 53 * 54 * + - 83 DIV - 87 WHEN + 44 THEN NULL WHEN 15 THEN - 28 ELSE + 97 END ) AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-3316
SELECT ALL - ( - - CASE - 14 WHEN + 33 THEN + + COUNT ( * ) + + 43 WHEN + 5 THEN + 53 * 54 * + - 83 / - 87 WHEN + 44 THEN NULL WHEN 15 THEN - 28 ELSE + 97 END ) AS col1
----
-97

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3318
SELECT - - COUNT( - ( + 24 ) ) + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3318
SELECT - - COUNT ( - ( + 24 ) ) + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + 56 - + + 67 AS col1
----
-11

query I rowsort
SELECT ALL - 52 + - 16
----
-68

query I rowsort
SELECT 29 - 90 + + 53 * 9 * + 31
----
14726

query II rowsort
SELECT ALL 9 * - 81 col1, 88
----
-729
88

query I rowsort
SELECT ALL - 24 + - 78 * + + 24 AS col0
----
-1896

onlyif mysql # aggregate syntax: 
query I rowsort label-3324
SELECT DISTINCT COUNT( * ) * - MAX( + + 45 ) * + 38
----
-1710

skipif mysql # not compatible
query I rowsort label-3324
SELECT DISTINCT COUNT ( * ) * - MAX ( + + 45 ) * + 38
----
-1710

onlyif mysql # aggregate syntax: 
query I rowsort label-3325
SELECT ALL 12 + + 28 + ( + COALESCE ( 67, 38 * + + 58 + - COUNT( * ), - - SUM( DISTINCT - 33 ) * + ( + + COUNT( + 92 ) ) * 77 ) ) * COUNT( * ) * 34
----
2318

skipif mysql # not compatible
query I rowsort label-3325
SELECT ALL 12 + + 28 + ( + COALESCE ( 67, 38 * + + 58 + - COUNT ( * ), - - SUM ( DISTINCT - 33 ) * + ( + + COUNT ( + 92 ) ) * 77 ) ) * COUNT ( * ) * 34
----
2318

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3326
SELECT 28 + SUM( CASE 81 WHEN 76 THEN NULL WHEN - ( ( 52 ) ) THEN - CAST( NULL AS DECIMAL ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3326
SELECT 28 + SUM ( CASE 81 WHEN 76 THEN NULL WHEN - ( ( 52 ) ) THEN - CAST ( NULL AS REAL ) END )
----
NULL

query II rowsort
SELECT - 34 col1, - 64 AS col1
----
-34
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-3328
SELECT 34 DIV + - 56 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3328
SELECT 34 / + - 56 AS col1
----
0

query I rowsort
SELECT 70 * + - 23 AS col2
----
-1610

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3330
SELECT DISTINCT - 24 + 5 + + + CAST( NULL AS SIGNED ) + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-3330
SELECT DISTINCT - 24 + 5 + + + CAST ( NULL AS INTEGER ) + 59
----
NULL

query II rowsort
SELECT 36 AS col1, - 16 col2
----
36
-16

query I rowsort
SELECT ( 63 ) * - + CASE 13 WHEN - - 14 THEN + 85 * 14 ELSE NULL END AS col0
----
NULL

query II rowsort
SELECT 80, 30 AS col0
----
80
30

query II rowsort
SELECT 60 * + + 17 * - - 52 AS col2, - 21
----
53040
-21

query I rowsort
SELECT ALL - 70 * 34
----
-2380

query I rowsort
SELECT 69 * - 94 AS col2
----
-6486

query II rowsort
SELECT DISTINCT - 11 AS col1, - 53
----
-11
-53

query I rowsort
SELECT ALL 81 * + 9
----
729

query I rowsort
SELECT 95 * 2 col2
----
190

onlyif mysql # aggregate syntax: 
query I rowsort label-3340
SELECT SUM( 87 ) + - - CASE - 65 WHEN + 36 + + 99 THEN NULL WHEN + MAX( ALL - + 8 ) THEN - 73 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3340
SELECT SUM ( 87 ) + - - CASE - 65 WHEN + 36 + + 99 THEN NULL WHEN + MAX ( ALL - + 8 ) THEN - 73 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 45 * 87 col0
----
3915

onlyif mysql # aggregate syntax: 
query II rowsort label-3342
SELECT 78 + + 90 * + COUNT( * ), COALESCE ( + 2, - + 89 ) AS col0
----
168
2

skipif mysql # not compatible
query II rowsort label-3342
SELECT 78 + + 90 * + COUNT ( * ), COALESCE ( + 2, - + 89 ) AS col0
----
168
2

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3344
SELECT DISTINCT 80 * - COUNT( - - CAST( NULL AS SIGNED ) ) * - - ( + CASE 92 WHEN - 66 THEN - NULLIF ( - 16, - - COALESCE ( + - 58, - 8 / 16 * + 35 + 30 * ( ( + 16 ) * 30 + - 88 ), - 3 * - COUNT( * ), COUNT( * ) - + 87 * + 50 ) / 94 - NULLIF ( SUM( 82 ) - CAST( NULL AS SIGNED ) / + 73, 87 + ( 84 ) ) ) WHEN - 35 THEN 94 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3344
SELECT DISTINCT 80 * - COUNT ( - - CAST ( NULL AS INTEGER ) ) * - - ( + CASE 92 WHEN - 66 THEN - NULLIF ( - 16, - - COALESCE ( + - 58, - 8 / 16 * + 35 + 30 * ( ( + 16 ) * 30 + - 88 ), - 3 * - COUNT ( * ), COUNT ( * ) - + 87 * + 50 ) / 94 - NULLIF ( SUM ( 82 ) - CAST ( NULL AS INTEGER ) / + 73, 87 + ( 84 ) ) ) WHEN - 35 THEN 94 END )
----
NULL

query I rowsort
SELECT + NULLIF ( 22, + AVG ( 51 ) * - 54 ) * + 76 * + 85 - + 88 * + 80 col1
----
135080

query I rowsort
SELECT ALL 85 * + 34 + - + 84 / - CASE + 95 WHEN 86 THEN 84 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3347
SELECT - 55 * - + 84 + COUNT( + - 34 ) + - 89 * + 70 * CASE COUNT( * ) WHEN - 87 THEN NULL ELSE + - 99 + - + 83 END * + 3 * + 40 * - ( COUNT( ALL 46 ) ) + + 92 AS col1
----
-136058487

skipif mysql # not compatible
query I rowsort label-3347
SELECT - 55 * - + 84 + COUNT ( + - 34 ) + - 89 * + 70 * CASE COUNT ( * ) WHEN - 87 THEN NULL ELSE + - 99 + - + 83 END * + 3 * + 40 * - ( COUNT ( ALL 46 ) ) + + 92 AS col1
----
-136058487

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3348
SELECT - 38 + - CAST( + + 97 AS SIGNED ) * + - 58
----
5588

skipif mysql # not compatible
query I rowsort label-3348
SELECT - 38 + - CAST ( + + 97 AS INTEGER ) * + - 58
----
5588

onlyif mysql # aggregate syntax: 
query II rowsort label-3349
SELECT ALL - 93, + NULLIF ( + - 7, COUNT( * ) ) col0
----
-93
-7

skipif mysql # not compatible
query II rowsort label-3349
SELECT ALL - 93, + NULLIF ( + - 7, COUNT ( * ) ) col0
----
-93
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3350
SELECT + CAST( + 76 AS DECIMAL ) * - 68 + + + 72 + - + 95 * CAST( NULL AS SIGNED ) + 31 * + 9 + + 5 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3350
SELECT + CAST ( + 76 AS REAL ) * - 68 + + + 72 + - + 95 * CAST ( NULL AS INTEGER ) + 31 * + 9 + + 5 + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3351
SELECT CAST( NULL AS DECIMAL ) - - 59 + - + COUNT( * ) * - 65 * + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-3351
SELECT CAST ( NULL AS REAL ) - - 59 + - + COUNT ( * ) * - 65 * + 76
----
NULL

query I rowsort
SELECT COALESCE ( + 35, 12 - - - 32, - 20 ) * - + 52 - + + 51 * + 11 AS col0
----
-2381

onlyif mysql # aggregate syntax: 
query II rowsort label-3353
SELECT ( + 24 ) * - COUNT( * ) AS col1, 65 + 24
----
-24
89

skipif mysql # not compatible
query II rowsort label-3353
SELECT ( + 24 ) * - COUNT ( * ) AS col1, 65 + 24
----
-24
89

query I rowsort
SELECT DISTINCT + ( - 4 ) * 17 * + 79 col2
----
-5372

query II rowsort
SELECT ALL 50, ( 38 ) AS col2
----
50
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3356
SELECT 51 + - - 88 - + COALESCE ( - - MAX( - + 4 ), - 31 + COUNT( * ) ) * - NULLIF ( COUNT( 55 ), 70 * - 39 ) + - + ( + 74 )
----
61

skipif mysql # not compatible
query I rowsort label-3356
SELECT 51 + - - 88 - + COALESCE ( - - MAX ( - + 4 ), - 31 + COUNT ( * ) ) * - NULLIF ( COUNT ( 55 ), 70 * - 39 ) + - + ( + 74 )
----
61

query II rowsort
SELECT ALL 72 AS col2, 96 AS col2
----
72
96

onlyif mysql # DIV for integer division: 
query I rowsort label-3358
SELECT DISTINCT 14 DIV - 55 * + ( + 69 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3358
SELECT DISTINCT 14 / - 55 * + ( + 69 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3359
SELECT - 54 + - - 47 * + COUNT( * )
----
-7

skipif mysql # not compatible
query I rowsort label-3359
SELECT - 54 + - - 47 * + COUNT ( * )
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3360
SELECT - NULLIF ( - + CAST( NULL AS SIGNED ), - 9 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3360
SELECT - NULLIF ( - + CAST ( NULL AS INTEGER ), - 9 )
----
NULL

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

query I rowsort
SELECT ALL ( - ( - 69 ) ) + - - 79
----
148

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3363
SELECT - 95 col2, + CAST( - - 62 AS SIGNED )
----
-95
62

skipif mysql # not compatible
query II rowsort label-3363
SELECT - 95 col2, + CAST ( - - 62 AS INTEGER )
----
-95
62

query I rowsort
SELECT DISTINCT - 73 + - 99
----
-172

query I rowsort
SELECT DISTINCT - 62 + ( + 48 ) AS col1
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-3366
SELECT - 29 + 5 DIV - + 41 * 8 - 93 AS col0
----
-122

skipif mysql # not compatible
query I rowsort label-3366
SELECT - 29 + 5 / - + 41 * 8 - 93 AS col0
----
-122

query I rowsort
SELECT 38 * 92 AS col1
----
3496

query I rowsort
SELECT 79 * + NULLIF ( + 56, - + 95 ) col2
----
4424

onlyif mysql # aggregate syntax: 
query II rowsort label-3369
SELECT DISTINCT - 29 + ( - COALESCE ( - + 27, 54 * 75 - + 77 ) ) AS col0, + COALESCE ( + - 20, + COUNT( * ) ) + - COUNT( * ) AS col0
----
-2
-21

skipif mysql # not compatible
query II rowsort label-3369
SELECT DISTINCT - 29 + ( - COALESCE ( - + 27, 54 * 75 - + 77 ) ) AS col0, + COALESCE ( + - 20, + COUNT ( * ) ) + - COUNT ( * ) AS col0
----
-2
-21

query I rowsort
SELECT 63 * + 49
----
3087

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3371
SELECT DISTINCT - 93 + + 71 * + MIN( ALL + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3371
SELECT DISTINCT - 93 + + 71 * + MIN ( ALL + - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT - 22 * + + 14 + - 94
----
-402

onlyif mysql # DIV for integer division: 
query I rowsort label-3373
SELECT 40 DIV + 89 * 42 DIV + 33 + + 57 AS col0
----
57

skipif mysql # not compatible
query I rowsort label-3373
SELECT 40 / + 89 * 42 / + 33 + + 57 AS col0
----
57

query I rowsort
SELECT 94 + + 70
----
164

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3376
SELECT - 59 * 55 + - 38 DIV + COUNT( * ) + - - NULLIF ( + - 81, + COUNT( * ) ) + - COUNT( * ) + + - 5 + + - 61 * + + 21
----
-4651

skipif mysql # not compatible
query I rowsort label-3376
SELECT - 59 * 55 + - 38 / + COUNT ( * ) + - - NULLIF ( + - 81, + COUNT ( * ) ) + - COUNT ( * ) + + - 5 + + - 61 * + + 21
----
-4651

onlyif mysql # DIV for integer division: 
query I rowsort label-3377
SELECT ALL ( 7 ) DIV + 69
----
0

skipif mysql # not compatible
query I rowsort label-3377
SELECT ALL ( 7 ) / + 69
----
0

query I rowsort
SELECT DISTINCT - - ( + - 85 ) AS col2
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-3379
SELECT CASE - 12 WHEN + 91 + - 57 THEN NULL WHEN + 57 THEN 87 / - - 1 + + MAX( + + NULLIF ( 43, + - 17 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3379
SELECT CASE - 12 WHEN + 91 + - 57 THEN NULL WHEN + 57 THEN 87 / - - 1 + + MAX ( + + NULLIF ( 43, + - 17 ) ) END
----
NULL

query I rowsort
SELECT - - 18 * 60 + + 40 col2
----
1120

onlyif mysql # aggregate syntax: 
query I rowsort label-3381
SELECT NULLIF ( + COUNT( * ), + 91 - + 16 + - 37 ) * - - COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3381
SELECT NULLIF ( + COUNT ( * ), + 91 - + 16 + - 37 ) * - - COUNT ( * ) AS col1
----
1

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

query I rowsort
SELECT + 97 * + 59
----
5723

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3384
SELECT + CAST( NULL AS DECIMAL ) * + 90 * CASE + SUM( 36 ) WHEN - 20 THEN NULL ELSE SUM( ALL + 3 ) * - 12 + + 36 * - 6 END * - CAST( - + 76 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3384
SELECT + CAST ( NULL AS REAL ) * + 90 * CASE + SUM ( 36 ) WHEN - 20 THEN NULL ELSE SUM ( ALL + 3 ) * - 12 + + 36 * - 6 END * - CAST ( - + 76 AS INTEGER )
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3386
SELECT ALL 55 + - + 27 * - 79 * + NULLIF ( - 1, + ( + 81 ) - - CAST( 92 AS SIGNED ) ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3386
SELECT ALL 55 + - + 27 * - 79 * + NULLIF ( - 1, + ( + 81 ) - - CAST ( 92 AS INTEGER ) ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3387
SELECT DISTINCT ( - 47 ) + - 36 DIV + COUNT( * ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-3387
SELECT DISTINCT ( - 47 ) + - 36 / + COUNT ( * ) AS col2
----
-83

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

query I rowsort
SELECT ALL - COALESCE ( + + 5, - 50 ) + + 0
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3390
SELECT + - 30 * + CAST( - + 89 AS SIGNED )
----
2670

skipif mysql # not compatible
query I rowsort label-3390
SELECT + - 30 * + CAST ( - + 89 AS INTEGER )
----
2670

query I rowsort
SELECT + + 44 - - 68 AS col1
----
112

onlyif mysql # DIV for integer division: 
query I rowsort label-3392
SELECT DISTINCT - 75 + + 66 DIV - 45 AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-3392
SELECT DISTINCT - 75 + + 66 / - 45 AS col1
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-3393
SELECT + COUNT( * ) + + ( 18 ) * + 11 col2
----
199

skipif mysql # not compatible
query I rowsort label-3393
SELECT + COUNT ( * ) + + ( 18 ) * + 11 col2
----
199

query I rowsort
SELECT - + ( + 25 ) + - - 72 + + 90 col2
----
137

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3395
SELECT - COALESCE ( 40, - - 2 DIV 19 + 82 * COALESCE ( + 1, - + COUNT( * ) ), - COUNT( * ), - CASE 30 WHEN - 13 * - + 92 THEN - 64 * + COUNT( * ) WHEN 69 + - 70 THEN NULL ELSE - 24 END * 97 ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-3395
SELECT - COALESCE ( 40, - - 2 / 19 + 82 * COALESCE ( + 1, - + COUNT ( * ) ), - COUNT ( * ), - CASE 30 WHEN - 13 * - + 92 THEN - 64 * + COUNT ( * ) WHEN 69 + - 70 THEN NULL ELSE - 24 END * 97 ) AS col0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-3396
SELECT ALL + 79 + + + COUNT( * ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-3396
SELECT ALL + 79 + + + COUNT ( * ) AS col0
----
80

query II rowsort
SELECT + NULLIF ( + 33, - - 25 + - 85 ) - - + ( - 11 ), + 85 AS col1
----
22
85

onlyif mysql # DIV for integer division: 
query II rowsort label-3398
SELECT ALL + 70 * + + 0 * - 14 DIV 63 * - - 42 AS col0, 77 * - 29 col0
----
0
-2233

skipif mysql # not compatible
query II rowsort label-3398
SELECT ALL + 70 * + + 0 * - 14 / 63 * - - 42 AS col0, 77 * - 29 col0
----
0
-2233

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

query I rowsort
SELECT DISTINCT - 98 - - - 33 AS col1
----
-131

query I rowsort
SELECT DISTINCT 34 * 89 * + 84 AS col2
----
254184

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3402
SELECT - COALESCE ( - CASE + - 4 WHEN + 14 + 53 THEN + ( - 52 ) DIV 59 + - + 11 + - + 21 + - 89 + - 35 WHEN 89 * 97 THEN + 6 ELSE + NULLIF ( MIN( NULLIF ( + 19, - ( 59 ) DIV + 68 ) ), COUNT( * ) ) END, - 63 ) col1
----
19

skipif mysql # not compatible
query I rowsort label-3402
SELECT - COALESCE ( - CASE + - 4 WHEN + 14 + 53 THEN + ( - 52 ) / 59 + - + 11 + - + 21 + - 89 + - 35 WHEN 89 * 97 THEN + 6 ELSE + NULLIF ( MIN ( NULLIF ( + 19, - ( 59 ) / + 68 ) ), COUNT ( * ) ) END, - 63 ) col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3403
SELECT + COUNT( ALL + - 54 ) + + ( - 41 )
----
-40

skipif mysql # not compatible
query I rowsort label-3403
SELECT + COUNT ( ALL + - 54 ) + + ( - 41 )
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3404
SELECT ALL + 8 * 33 * - - CASE CAST( NULL AS SIGNED ) WHEN + - 43 THEN NULL WHEN + ( ( - COUNT( * ) ) ) THEN NULL ELSE 76 * - 28 END col1, CAST( NULL AS SIGNED ) AS col1
----
-561792
NULL

skipif mysql # not compatible
query II rowsort label-3404
SELECT ALL + 8 * 33 * - - CASE CAST ( NULL AS INTEGER ) WHEN + - 43 THEN NULL WHEN + ( ( - COUNT ( * ) ) ) THEN NULL ELSE 76 * - 28 END col1, CAST ( NULL AS INTEGER ) AS col1
----
-561792
NULL

query I rowsort
SELECT - 39 - - 85 col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3406
SELECT ALL - 71 * 48 / + - 3 - 38 * - + CASE COUNT( * ) WHEN - AVG ( ALL 13 ) THEN - 38 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3406
SELECT ALL - 71 * 48 / + - 3 - 38 * - + CASE COUNT ( * ) WHEN - AVG ( ALL 13 ) THEN - 38 END AS col0
----
NULL

query I rowsort
SELECT - ( - - ( - 66 ) ) * - 51
----
-3366

query I rowsort
SELECT - 33 * + 47
----
-1551

query I rowsort
SELECT ( 84 ) col0
----
84

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

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

query I rowsort
SELECT ALL + 36 * - 91
----
-3276

query I rowsort
SELECT DISTINCT + + 54 * + 97 AS col2
----
5238

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3413
SELECT - MAX( ALL - + 61 ) DIV - + COUNT( * ) + - - 39
----
-22

skipif mysql # not compatible
query I rowsort label-3413
SELECT - MAX ( ALL - + 61 ) / - + COUNT ( * ) + - - 39
----
-22

query I rowsort
SELECT ALL + 80 * 8 + + 96 AS col0
----
736

query I rowsort
SELECT + 42 * + + ( 45 ) + - 88 * + + 28
----
-574

query I rowsort
SELECT - 8 * + 75 + + 29
----
-571

onlyif mysql # DIV for integer division: 
query I rowsort label-3417
SELECT + + 20 DIV - 38
----
0

skipif mysql # not compatible
query I rowsort label-3417
SELECT + + 20 / - 38
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3418
SELECT DISTINCT CAST( NULL AS DECIMAL ) / + ( 92 ) * 21
----
NULL

skipif mysql # not compatible
query I rowsort label-3418
SELECT DISTINCT CAST ( NULL AS REAL ) / + ( 92 ) * 21
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3419
SELECT - - 34 + - CAST( + - 54 AS SIGNED )
----
88

skipif mysql # not compatible
query I rowsort label-3419
SELECT - - 34 + - CAST ( + - 54 AS INTEGER )
----
88

onlyif mysql # DIV for integer division: 
query II rowsort label-3420
SELECT ALL + 64 DIV 93 + - - 31 AS col1, + 20 col1
----
31
20

skipif mysql # not compatible
query II rowsort label-3420
SELECT ALL + 64 / 93 + - - 31 AS col1, + 20 col1
----
31
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3421
SELECT - ( 30 ) * + COUNT( * ) + 33 + 78
----
81

skipif mysql # not compatible
query I rowsort label-3421
SELECT - ( 30 ) * + COUNT ( * ) + 33 + 78
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3422
SELECT + SUM( - 14 ) - 87 + 89 * - + ( - 38 ) * COUNT( * ) * + + ( 8 ) AS col1
----
26955

skipif mysql # not compatible
query I rowsort label-3422
SELECT + SUM ( - 14 ) - 87 + 89 * - + ( - 38 ) * COUNT ( * ) * + + ( 8 ) AS col1
----
26955

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3423
SELECT - - COALESCE ( + COUNT( * ), - - ( + + CASE 59 WHEN 29 * + ( 30 ) * + - 97 THEN 12 * - - 8 - + 50 * - 3 ELSE - + CAST( NULL AS SIGNED ) END ), + 14 )
----
1

skipif mysql # not compatible
query I rowsort label-3423
SELECT - - COALESCE ( + COUNT ( * ), - - ( + + CASE 59 WHEN 29 * + ( 30 ) * + - 97 THEN 12 * - - 8 - + 50 * - 3 ELSE - + CAST ( NULL AS INTEGER ) END ), + 14 )
----
1

query I rowsort
SELECT - ( - - 94 ) + - + 80 AS col2
----
-174

onlyif mysql # aggregate syntax: 
query I rowsort label-3425
SELECT 93 * - 5 + + + 17 * - COUNT( * )
----
-482

skipif mysql # not compatible
query I rowsort label-3425
SELECT 93 * - 5 + + + 17 * - COUNT ( * )
----
-482

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3426
SELECT - - COUNT( * ) col1, 40 DIV - + MIN( 74 )
----
1
0

skipif mysql # not compatible
query II rowsort label-3426
SELECT - - COUNT ( * ) col1, 40 / - + MIN ( 74 )
----
1
0

query I rowsort
SELECT ALL + 62 * 66 + - ( + + 69 )
----
4023

onlyif mysql # DIV for integer division: 
query I rowsort label-3428
SELECT + + 7 * 51 DIV - 91 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-3428
SELECT + + 7 * 51 / - 91 AS col1
----
-3

query I rowsort
SELECT ALL COALESCE ( - + ( + + 64 ), + + COALESCE ( 58, + 51, + 92 ), + 35 )
----
-64

query I rowsort
SELECT + 17 + + 76 AS col0
----
93

query I rowsort
SELECT - ( - - ( - - 26 ) )
----
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-3432
SELECT ALL 99 - + + COUNT( * ) AS col0, - 0 * + 28 + + 63
----
98
63

skipif mysql # not compatible
query II rowsort label-3432
SELECT ALL 99 - + + COUNT ( * ) AS col0, - 0 * + 28 + + 63
----
98
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3433
SELECT + COUNT( ALL - CAST( NULL AS SIGNED ) ) + + 22
----
22

skipif mysql # not compatible
query I rowsort label-3433
SELECT + COUNT ( ALL - CAST ( NULL AS INTEGER ) ) + + 22
----
22

query I rowsort
SELECT ALL 81 - + - 49 AS col2
----
130

onlyif mysql # aggregate syntax: 
query II rowsort label-3435
SELECT 82, - COUNT( * ) * - 98 * 96 col1
----
82
9408

skipif mysql # not compatible
query II rowsort label-3435
SELECT 82, - COUNT ( * ) * - 98 * 96 col1
----
82
9408

query II rowsort
SELECT + 99 + + 84, - NULLIF ( + 98, 60 + - 13 ) AS col0
----
183
-98

query I rowsort
SELECT + ( + 11 ) + - 86
----
-75

query I rowsort
SELECT - 16 + 34 * - 29 * + 71
----
-70022

onlyif mysql # aggregate syntax: 
query I rowsort label-3439
SELECT ALL 22 / NULLIF ( + 77, 77 ) / - - ( - COUNT( * ) ) * + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-3439
SELECT ALL 22 / NULLIF ( + 77, 77 ) / - - ( - COUNT ( * ) ) * + 91
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3440
SELECT + 27 DIV COUNT( * ) AS col1
----
27

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

query I rowsort
SELECT - 33 * + 26 AS col1
----
-858

query II rowsort
SELECT ALL + 76 * 97, 67 col0
----
7372
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3443
SELECT ALL 86 * 61 * CASE 14 WHEN COUNT( * ) THEN NULL WHEN + 11 THEN 17 / SUM( CAST( NULL AS SIGNED ) ) - 75 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3443
SELECT ALL 86 * 61 * CASE 14 WHEN COUNT ( * ) THEN NULL WHEN + 11 THEN 17 / SUM ( CAST ( NULL AS INTEGER ) ) - 75 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3444
SELECT 77 / 49 * - 61 / + CASE - CAST( NULL AS DECIMAL ) WHEN + COUNT( * ) THEN + - 21 END + + ( + 63 ) * - 26 + 98, - 60 + + CASE 31 WHEN + + 14 + - 0 THEN NULL ELSE ( - 99 ) - + 21 END AS col2
----
NULL
-180

skipif mysql # not compatible
query II rowsort label-3444
SELECT 77 / 49 * - 61 / + CASE - CAST ( NULL AS REAL ) WHEN + COUNT ( * ) THEN + - 21 END + + ( + 63 ) * - 26 + 98, - 60 + + CASE 31 WHEN + + 14 + - 0 THEN NULL ELSE ( - 99 ) - + 21 END AS col2
----
NULL
-180

query I rowsort
SELECT - 74 * + 72
----
-5328

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3446
SELECT ALL + COUNT( * ) DIV 2 + - + 27 + 16 AS col2, - COUNT( * )
----
-11
-1

skipif mysql # not compatible
query II rowsort label-3446
SELECT ALL + COUNT ( * ) / 2 + - + 27 + 16 AS col2, - COUNT ( * )
----
-11
-1

query II rowsort
SELECT + 29, - ( - + 94 ) AS col2
----
29
94

query I rowsort
SELECT + + COALESCE ( + 89, + 53 ) AS col1
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3449
SELECT SUM( 52 ) * - CAST( - 26 AS SIGNED )
----
1352

skipif mysql # not compatible
query I rowsort label-3449
SELECT SUM ( 52 ) * - CAST ( - 26 AS INTEGER )
----
1352

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3450
SELECT - 60 * + + 84 * + 9 + + 88 * 84 * - AVG ( - + CAST( NULL AS SIGNED ) ) + SUM( DISTINCT + - 34 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3450
SELECT - 60 * + + 84 * + 9 + + 88 * 84 * - AVG ( - + CAST ( NULL AS INTEGER ) ) + SUM ( DISTINCT + - 34 ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - + ( + - 24 ) AS col0
----
24

query II rowsort
SELECT 69 AS col1, 33
----
69
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3453
SELECT ALL - COUNT( * ) + + + 85 * - - 66
----
5609

skipif mysql # not compatible
query I rowsort label-3453
SELECT ALL - COUNT ( * ) + + + 85 * - - 66
----
5609

query I rowsort
SELECT ALL + + 76 + + 46 AS col1
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-3455
SELECT ALL + - CASE - COUNT( * ) WHEN 68 THEN NULL WHEN MAX( + 0 ) THEN + 45 ELSE NULL END + - - 27 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3455
SELECT ALL + - CASE - COUNT ( * ) WHEN 68 THEN NULL WHEN MAX ( + 0 ) THEN + 45 ELSE NULL END + - - 27 AS col0
----
NULL

query II rowsort
SELECT + 80 AS col2, 28 AS col1
----
80
28

query I rowsort
SELECT - 73 * 14 col1
----
-1022

query I rowsort
SELECT DISTINCT - - 34 + - 67 * 34 AS col2
----
-2244

onlyif mysql # aggregate syntax: 
query II rowsort label-3459
SELECT ALL + - 72 + 14 + - 83 * 67, MAX( ALL - + 47 ) AS col2
----
-5619
-47

skipif mysql # not compatible
query II rowsort label-3459
SELECT ALL + - 72 + 14 + - 83 * 67, MAX ( ALL - + 47 ) AS col2
----
-5619
-47

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3461
SELECT DISTINCT - - NULLIF ( - COUNT( DISTINCT + 29 ), - 71 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3461
SELECT DISTINCT - - NULLIF ( - COUNT ( DISTINCT + 29 ), - 71 ) AS col0
----
-1

query I rowsort
SELECT DISTINCT - + 42 - + 76
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-3463
SELECT ALL - 80 - COALESCE ( + 95, - COUNT( * ) )
----
-175

skipif mysql # not compatible
query I rowsort label-3463
SELECT ALL - 80 - COALESCE ( + 95, - COUNT ( * ) )
----
-175

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3464
SELECT DISTINCT 23 DIV + COUNT( * )
----
23

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3465
SELECT 63 + - COUNT( ALL + - 97 ) + + - 45 DIV + 78
----
62

skipif mysql # not compatible
query I rowsort label-3465
SELECT 63 + - COUNT ( ALL + - 97 ) + + - 45 / + 78
----
62

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3467
SELECT MIN( - 82 ) * 64
----
-5248

skipif mysql # not compatible
query I rowsort label-3467
SELECT MIN ( - 82 ) * 64
----
-5248

query I rowsort
SELECT DISTINCT 81 * + - 16 AS col2
----
-1296

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3469
SELECT DISTINCT - 90 * - CAST( + 56 AS SIGNED ) * + 28 / CASE + 17 WHEN + 79 * - 40 - + COUNT( * ) THEN - 66 + 72 * - + 33 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3469
SELECT DISTINCT - 90 * - CAST ( + 56 AS INTEGER ) * + 28 / CASE + 17 WHEN + 79 * - 40 - + COUNT ( * ) THEN - 66 + 72 * - + 33 END AS col1
----
NULL

query I rowsort
SELECT 4 * - 27 * + 51
----
-5508

onlyif mysql # aggregate syntax: 
query I rowsort label-3471
SELECT COUNT( * ) + + 68 * - 95 * + 9
----
-58139

skipif mysql # not compatible
query I rowsort label-3471
SELECT COUNT ( * ) + + 68 * - 95 * + 9
----
-58139

query I rowsort
SELECT DISTINCT 45 * + - 47
----
-2115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3473
SELECT ALL COALESCE ( - - 98, - CASE + CAST( NULL AS SIGNED ) WHEN + - ( ( + 72 ) ) * + 20 + + 77 THEN - + 79 WHEN + - COUNT( 33 ) THEN + 45 + - 38 ELSE NULL END ) + 41 * + 85
----
3583

skipif mysql # not compatible
query I rowsort label-3473
SELECT ALL COALESCE ( - - 98, - CASE + CAST ( NULL AS INTEGER ) WHEN + - ( ( + 72 ) ) * + 20 + + 77 THEN - + 79 WHEN + - COUNT ( 33 ) THEN + 45 + - 38 ELSE NULL END ) + 41 * + 85
----
3583

query II rowsort
SELECT ALL 80 + - 5 col0, 83 * + + ( - - 20 ) + + + 89 + + 53 AS col0
----
75
1802

query I rowsort
SELECT 94 * - 17 AS col1
----
-1598

query I rowsort
SELECT ALL ( - 99 ) + - 66 col0
----
-165

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3477
SELECT ALL 32 DIV - 26 AS col2, + COUNT( - 30 ) * - - 82 - - + COUNT( * ) AS col2
----
-1
83

skipif mysql # not compatible
query II rowsort label-3477
SELECT ALL 32 / - 26 AS col2, + COUNT ( - 30 ) * - - 82 - - + COUNT ( * ) AS col2
----
-1
83

onlyif mysql # DIV for integer division: 
query II rowsort label-3478
SELECT 93 DIV + 34 AS col0, 75
----
2
75

skipif mysql # not compatible
query II rowsort label-3478
SELECT 93 / + 34 AS col0, 75
----
2
75

query I rowsort
SELECT DISTINCT + 31 * - 56 AS col1
----
-1736

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3480
SELECT ALL ( - CAST( + 33 AS SIGNED ) ) + 89 * 76 * 36 * + + 46 AS col2
----
11201151

skipif mysql # not compatible
query I rowsort label-3480
SELECT ALL ( - CAST ( + 33 AS INTEGER ) ) + 89 * 76 * 36 * + + 46 AS col2
----
11201151

query I rowsort
SELECT ALL ( - ( + 31 ) ) + + 66 AS col0
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3482
SELECT 72 DIV + - 99 AS col2, 73 + 40 * + 57 * + 4 + + + COUNT( * ) AS col0
----
0
9194

skipif mysql # not compatible
query II rowsort label-3482
SELECT 72 / + - 99 AS col2, 73 + 40 * + 57 * + 4 + + + COUNT ( * ) AS col0
----
0
9194

query I rowsort
SELECT ALL - + 12 + ( 25 ) * + 17
----
413

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3484
SELECT DISTINCT + COUNT( ALL + 3 ) * CASE - 85 WHEN + 72 THEN NULL WHEN + + COUNT( * ) * + 4 THEN + 55 / - + ( 51 ) + - + 57 + - + AVG ( CASE CAST( NULL AS SIGNED ) WHEN + 10 THEN 28 WHEN 80 THEN - 64 END ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3484
SELECT DISTINCT + COUNT ( ALL + 3 ) * CASE - 85 WHEN + 72 THEN NULL WHEN + + COUNT ( * ) * + 4 THEN + 55 / - + ( 51 ) + - + 57 + - + AVG ( CASE CAST ( NULL AS INTEGER ) WHEN + 10 THEN 28 WHEN 80 THEN - 64 END ) END
----
NULL

query I rowsort
SELECT ALL + 6 + - 65 AS col1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3486
SELECT + 71 + + CASE + - 40 WHEN ( - 33 ) * + - 95 / + 65 THEN - 97 * - + 78 * 69 * 49 - - CASE 60 WHEN + - 89 THEN 94 * - 1 - 9 - + 2 * 37 WHEN 6 THEN 87 * - NULLIF ( COUNT( * ), 85 ) ELSE - 43 END END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3486
SELECT + 71 + + CASE + - 40 WHEN ( - 33 ) * + - 95 / + 65 THEN - 97 * - + 78 * 69 * 49 - - CASE 60 WHEN + - 89 THEN 94 * - 1 - 9 - + 2 * 37 WHEN 6 THEN 87 * - NULLIF ( COUNT ( * ), 85 ) ELSE - 43 END END col2
----
NULL

query I rowsort
SELECT 41 * 35 AS col2
----
1435

query I rowsort
SELECT - 80 * + 38
----
-3040

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3489
SELECT 74 + 69 + + 75 + + CAST( - CASE WHEN + 42 = + - 80 * - 82 * - 26 THEN + + MAX( - 6 ) / + 67 WHEN NOT AVG ( ALL + 46 ) NOT IN ( + 79 ) THEN + ( - 71 ) / 14 END AS DECIMAL ) + 19 * ( - 31 ) * CASE CASE - 50 WHEN COALESCE ( - 5, - 42 * 36 + - 8 ) THEN + 95 * + 28 END * + NULLIF ( 85, + 30 ) WHEN 9 THEN COALESCE ( - 23, - 18 + 40 ) - - ( ( COUNT( * ) ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3489
SELECT 74 + 69 + + 75 + + CAST ( - CASE WHEN + 42 = + - 80 * - 82 * - 26 THEN + + MAX ( - 6 ) / + 67 WHEN NOT AVG ( ALL + 46 ) NOT IN ( + 79 ) THEN + ( - 71 ) / 14 END AS REAL ) + 19 * ( - 31 ) * CASE CASE - 50 WHEN COALESCE ( - 5, - 42 * 36 + - 8 ) THEN + 95 * + 28 END * + NULLIF ( 85, + 30 ) WHEN 9 THEN COALESCE ( - 23, - 18 + 40 ) - - ( ( COUNT ( * ) ) ) ELSE NULL END
----
NULL

query I rowsort
SELECT + 98 * 91 * 95 + 84
----
847294

onlyif mysql # aggregate syntax: 
query II rowsort label-3491
SELECT 90 * 4 + + - COUNT( * ) * 39 + + 71 + MAX( + + 97 ), - 93 * + + ( - + 30 ) AS col1
----
489
2790

skipif mysql # not compatible
query II rowsort label-3491
SELECT 90 * 4 + + - COUNT ( * ) * 39 + + 71 + MAX ( + + 97 ), - 93 * + + ( - + 30 ) AS col1
----
489
2790

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

query I rowsort
SELECT 13 + + - CASE - - 36 WHEN - 72 THEN + 9 * - 66 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3494
SELECT ALL - COALESCE ( - - 88, - SUM( ALL + - 71 ), + 16 ) * + 17
----
-1496

skipif mysql # not compatible
query I rowsort label-3494
SELECT ALL - COALESCE ( - - 88, - SUM ( ALL + - 71 ), + 16 ) * + 17
----
-1496

query I rowsort
SELECT 88 * - 10 AS col1
----
-880

onlyif mysql # aggregate syntax: 
query I rowsort label-3496
SELECT + 50 * + 4 * - - COUNT( * ) + + 64
----
264

skipif mysql # not compatible
query I rowsort label-3496
SELECT + 50 * + 4 * - - COUNT ( * ) + + 64
----
264

onlyif mysql # aggregate syntax: 
query III rowsort label-3497
SELECT 98 + - - 77 + + 12 AS col0, 97 AS col1, - NULLIF ( - 13, + ( - + MAX( + 42 ) ) * + 60 ) AS col0
----
187
97
13

skipif mysql # not compatible
query III rowsort label-3497
SELECT 98 + - - 77 + + 12 AS col0, 97 AS col1, - NULLIF ( - 13, + ( - + MAX ( + 42 ) ) * + 60 ) AS col0
----
187
97
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3498
SELECT - SUM( DISTINCT 42 ) col1
----
-42

skipif mysql # not compatible
query I rowsort label-3498
SELECT - SUM ( DISTINCT 42 ) col1
----
-42

query I rowsort
SELECT 72 * - 66 * - 48 AS col0
----
228096

query I rowsort
SELECT ALL - 49 * - 26 AS col0
----
1274

onlyif mysql # DIV for integer division: 
query II rowsort label-3501
SELECT 78 DIV - + ( + 65 ) col0, 91 col0
----
-1
91

skipif mysql # not compatible
query II rowsort label-3501
SELECT 78 / - + ( + 65 ) col0, 91 col0
----
-1
91

onlyif mysql # aggregate syntax: 
query II rowsort label-3502
SELECT 14 * + ( + 80 ) * - COUNT( * ) * + + 77 + - + 76 AS col0, COUNT( * ) + COUNT( * )
----
-86316
2

skipif mysql # not compatible
query II rowsort label-3502
SELECT 14 * + ( + 80 ) * - COUNT ( * ) * + + 77 + - + 76 AS col0, COUNT ( * ) + COUNT ( * )
----
-86316
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3503
SELECT COUNT( * ) + + 81
----
82

skipif mysql # not compatible
query I rowsort label-3503
SELECT COUNT ( * ) + + 81
----
82

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3505
SELECT ALL COUNT( * ) AS col0, - CAST( + 22 AS SIGNED ) AS col1
----
1
-22

skipif mysql # not compatible
query II rowsort label-3505
SELECT ALL COUNT ( * ) AS col0, - CAST ( + 22 AS INTEGER ) AS col1
----
1
-22

query I rowsort
SELECT 97 + + 27
----
124

query II rowsort
SELECT ALL + 49 * - ( - 35 ), - 76 AS col0
----
1715
-76

query I rowsort
SELECT 7 + + 12 AS col2
----
19

query II rowsort
SELECT ALL 6 AS col1, - 78 * - 80 AS col2
----
6
6240

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3511
SELECT DISTINCT + ( 97 ) + + - 51 - - - 24 + COALESCE ( CAST( NULL AS SIGNED ), + MAX( ALL 56 ) * 25 + - 40 ) + - CAST( NULL AS DECIMAL ) / + + COUNT( * ) / - + 1 - - - 43 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3511
SELECT DISTINCT + ( 97 ) + + - 51 - - - 24 + COALESCE ( CAST ( NULL AS INTEGER ), + MAX ( ALL 56 ) * 25 + - 40 ) + - CAST ( NULL AS REAL ) / + + COUNT ( * ) / - + 1 - - - 43 AS col0
----
NULL

query I rowsort
SELECT - 62 + - 60 AS col0
----
-122

onlyif mysql # aggregate syntax: 
query II rowsort label-3513
SELECT + 68 * - 61 * - COUNT( * ) * 42 AS col2, + COUNT( * )
----
174216
1

skipif mysql # not compatible
query II rowsort label-3513
SELECT + 68 * - 61 * - COUNT ( * ) * 42 AS col2, + COUNT ( * )
----
174216
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3515
SELECT ALL + MAX( ( - - 61 ) ) col0
----
61

skipif mysql # not compatible
query I rowsort label-3515
SELECT ALL + MAX ( ( - - 61 ) ) col0
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3516
SELECT + + COUNT( * ) + - 85 + 80 * - - 37 * 65 DIV COUNT( * )
----
192316

skipif mysql # not compatible
query I rowsort label-3516
SELECT + + COUNT ( * ) + - 85 + 80 * - - 37 * 65 / COUNT ( * )
----
192316

query II rowsort
SELECT DISTINCT - 10 + - - ( 59 ) col1, - 89
----
49
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3518
SELECT ALL - - 93 * - + 83 + - CAST( - CASE - 81 WHEN - 10 THEN NULL WHEN + 84 THEN - + AVG ( - + 54 ) * - CAST( NULL AS SIGNED ) + + COALESCE ( - 53, + MIN( - + ( - + 86 ) ) * + 26 * - ( - 71 ) * + 41 + - 97 + + 3 * - CAST( 14 AS SIGNED ), - 46 + COUNT( * ) ) ELSE + 45 + + 84 * + COUNT( * ) END AS SIGNED ) AS col0
----
-7590

skipif mysql # not compatible
query I rowsort label-3518
SELECT ALL - - 93 * - + 83 + - CAST ( - CASE - 81 WHEN - 10 THEN NULL WHEN + 84 THEN - + AVG ( - + 54 ) * - CAST ( NULL AS INTEGER ) + + COALESCE ( - 53, + MIN ( - + ( - + 86 ) ) * + 26 * - ( - 71 ) * + 41 + - 97 + + 3 * - CAST ( 14 AS INTEGER ), - 46 + COUNT ( * ) ) ELSE + 45 + + 84 * + COUNT ( * ) END AS INTEGER ) AS col0
----
-7590

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3519
SELECT + - CASE - COALESCE ( - NULLIF ( - 4, + 93 + + - COUNT( * ) ), 77 ) WHEN - ( MIN( 89 ) ) THEN NULL WHEN COUNT( * ) THEN + CAST( NULL AS SIGNED ) + - CAST( + + 69 AS SIGNED ) + - + 71 ELSE + 88 END
----
-88

skipif mysql # not compatible
query I rowsort label-3519
SELECT + - CASE - COALESCE ( - NULLIF ( - 4, + 93 + + - COUNT ( * ) ), 77 ) WHEN - ( MIN ( 89 ) ) THEN NULL WHEN COUNT ( * ) THEN + CAST ( NULL AS INTEGER ) + - CAST ( + + 69 AS INTEGER ) + - + 71 ELSE + 88 END
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3520
SELECT + 11 + - - 30 * + CASE - 76 WHEN + - 45 - - 85 THEN NULL ELSE 64 * - ( CAST( 12 AS SIGNED ) ) END
----
-23029

skipif mysql # not compatible
query I rowsort label-3520
SELECT + 11 + - - 30 * + CASE - 76 WHEN + - 45 - - 85 THEN NULL ELSE 64 * - ( CAST ( 12 AS INTEGER ) ) END
----
-23029

onlyif mysql # DIV for integer division: 
query I rowsort label-3521
SELECT + 1 * + - ( - + ( 90 ) ) DIV + - COALESCE ( 37, + + 76, + 14 ) + 47 + 89 + + + 87 AS col2
----
221

skipif mysql # not compatible
query I rowsort label-3521
SELECT + 1 * + - ( - + ( 90 ) ) / + - COALESCE ( 37, + + 76, + 14 ) + 47 + 89 + + + 87 AS col2
----
221

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3523
SELECT + MAX( - - 57 ) * 45 AS col0, 18 + - 62
----
2565
-44

skipif mysql # not compatible
query II rowsort label-3523
SELECT + MAX ( - - 57 ) * 45 AS col0, 18 + - 62
----
2565
-44

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3525
SELECT ALL + NULLIF ( + 40, + COALESCE ( + + CAST( - - MAX( + 93 ) AS SIGNED ), + COUNT( ALL + 63 ) ) * 1 )
----
40

skipif mysql # not compatible
query I rowsort label-3525
SELECT ALL + NULLIF ( + 40, + COALESCE ( + + CAST ( - - MAX ( + 93 ) AS INTEGER ), + COUNT ( ALL + 63 ) ) * 1 )
----
40

query I rowsort
SELECT + + 70 * - 59
----
-4130

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

skipif mysql # not compatible
query I rowsort label-3527
SELECT + 27 / - - COUNT ( * ) col0
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-3528
SELECT + + 15 AS col2, - CASE WHEN NOT - 79 BETWEEN 9 AND - - COUNT( * ) * NULLIF ( + 28, - + 21 + - COUNT( * ) ) THEN - 85 END AS col2
----
15
85

skipif mysql # not compatible
query II rowsort label-3528
SELECT + + 15 AS col2, - CASE WHEN NOT - 79 BETWEEN 9 AND - - COUNT ( * ) * NULLIF ( + 28, - + 21 + - COUNT ( * ) ) THEN - 85 END AS col2
----
15
85

query I rowsort
SELECT ALL 70 * - 19
----
-1330

query I rowsort
SELECT + 76 * 61 * + 58 * 45 * - 73 AS col0
----
-883297080

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3531
SELECT + CASE - + 65 WHEN - SUM( 65 ) THEN + COUNT( * ) * - 24 WHEN + + CASE - 84 WHEN - 14 THEN - - 57 / + 76 / 99 WHEN + 25 THEN MIN( DISTINCT - CAST( NULL AS SIGNED ) ) + + - 95 - + COUNT( * ) * - COUNT( * ) + - 9 ELSE NULL END + 2 THEN + 12 * - 47 ELSE COUNT( * ) END
----
-24

skipif mysql # not compatible
query I rowsort label-3531
SELECT + CASE - + 65 WHEN - SUM ( 65 ) THEN + COUNT ( * ) * - 24 WHEN + + CASE - 84 WHEN - 14 THEN - - 57 / + 76 / 99 WHEN + 25 THEN MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) + + - 95 - + COUNT ( * ) * - COUNT ( * ) + - 9 ELSE NULL END + 2 THEN + 12 * - 47 ELSE COUNT ( * ) END
----
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-3532
SELECT + COUNT( * ) - 32 AS col1, 60
----
-31
60

skipif mysql # not compatible
query II rowsort label-3532
SELECT + COUNT ( * ) - 32 AS col1, 60
----
-31
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3533
SELECT ALL + COUNT( * ) * 2 + - 77 - + MAX( - 96 )
----
21

skipif mysql # not compatible
query I rowsort label-3533
SELECT ALL + COUNT ( * ) * 2 + - 77 - + MAX ( - 96 )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3534
SELECT COUNT( ALL 64 )
----
1

skipif mysql # not compatible
query I rowsort label-3534
SELECT COUNT ( ALL 64 )
----
1

query I rowsort
SELECT - 81 * + + 2 AS col0
----
-162

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3537
SELECT ALL 63 + 3 + - 34 DIV + 66 AS col2
----
66

skipif mysql # not compatible
query I rowsort label-3537
SELECT ALL 63 + 3 + - 34 / + 66 AS col2
----
66

query I rowsort
SELECT + 69 + + - 96 + - 25 * + - 92 - + 31 AS col1
----
2242

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

skipif mysql # not compatible
query I rowsort label-3539
SELECT + ( 67 ) + - ( - ( + ( COUNT ( * ) ) ) ) + - 17 AS col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3540
SELECT ALL + COUNT( * ) * + ( - ( + 33 ) ) * + - 87 AS col1
----
2871

skipif mysql # not compatible
query I rowsort label-3540
SELECT ALL + COUNT ( * ) * + ( - ( + 33 ) ) * + - 87 AS col1
----
2871

query II rowsort
SELECT - 68 + + + 77 - + ( + + 25 ) AS col2, + 53
----
-16
53

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

skipif mysql # not compatible
query I rowsort label-3542
SELECT ALL - COUNT ( * ) + + + 74 AS col1
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-3543
SELECT DISTINCT 62 + 68 DIV - 89 AS col1
----
62

skipif mysql # not compatible
query I rowsort label-3543
SELECT DISTINCT 62 + 68 / - 89 AS col1
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3544
SELECT - 32 DIV 33 col2, COUNT( * )
----
0
1

skipif mysql # not compatible
query II rowsort label-3544
SELECT - 32 / 33 col2, COUNT ( * )
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3545
SELECT - 91 + + - 81 + + + COUNT( * ) * - 21 + + 59 AS col1
----
-134

skipif mysql # not compatible
query I rowsort label-3545
SELECT - 91 + + - 81 + + + COUNT ( * ) * - 21 + + 59 AS col1
----
-134

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3546
SELECT DISTINCT + 3 * + CAST( NULL AS DECIMAL ) - + - MIN( 20 ) + + 31 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3546
SELECT DISTINCT + 3 * + CAST ( NULL AS REAL ) - + - MIN ( 20 ) + + 31 AS col2
----
NULL

query I rowsort
SELECT ALL - 12 - - - 91
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-3548
SELECT CASE 69 WHEN 28 THEN + COUNT( * ) / + - 20 - 81 + ( - - ( 84 ) ) / COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3548
SELECT CASE 69 WHEN 28 THEN + COUNT ( * ) / + - 20 - 81 + ( - - ( 84 ) ) / COUNT ( * ) END AS col0
----
NULL

query I rowsort
SELECT - 30 + ( - 27 )
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-3550
SELECT + COALESCE ( - 49, - - 45 * + + 87 + + COUNT( * ) ) - COALESCE ( + 99, - 80 * - COUNT( * ) )
----
-148

skipif mysql # not compatible
query I rowsort label-3550
SELECT + COALESCE ( - 49, - - 45 * + + 87 + + COUNT ( * ) ) - COALESCE ( + 99, - 80 * - COUNT ( * ) )
----
-148

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

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

query I rowsort
SELECT ALL + + 65 * 86 * - 4 + + + 60
----
-22300

query I rowsort
SELECT + 57 * + + 24 - - 63 + - 6 AS col1
----
1425

query I rowsort
SELECT + NULLIF ( 59, 49 )
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3555
SELECT + CAST( - + 9 AS SIGNED ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-3555
SELECT + CAST ( - + 9 AS INTEGER ) AS col1
----
-9

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3557
SELECT + CASE - COUNT( + - 2 ) WHEN - 25 + - 84 - + 47 * + - 54 THEN 93 - - + 10 / + - 76 WHEN + - 40 / - - 68 * + 64 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3557
SELECT + CASE - COUNT ( + - 2 ) WHEN - 25 + - 84 - + 47 * + - 54 THEN 93 - - + 10 / + - 76 WHEN + - 40 / - - 68 * + 64 THEN NULL ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT + - 23 * - 13 * ( - + 21 ) + - 80 + + - 7 * - 38 col1
----
-6093

query I rowsort
SELECT + 16 * 20
----
320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3560
SELECT - 55 + CAST( + + 50 AS SIGNED ) + 47
----
42

skipif mysql # not compatible
query I rowsort label-3560
SELECT - 55 + CAST ( + + 50 AS INTEGER ) + 47
----
42

query I rowsort
SELECT ( - - 1 )
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3563
SELECT + 79 * - 62 * - COUNT( * ) + + 61
----
4959

skipif mysql # not compatible
query I rowsort label-3563
SELECT + 79 * - 62 * - COUNT ( * ) + + 61
----
4959

onlyif mysql # aggregate syntax: 
query I rowsort label-3564
SELECT 22 * - - 6 + - + COUNT( * ) + - 84 AS col0
----
47

skipif mysql # not compatible
query I rowsort label-3564
SELECT 22 * - - 6 + - + COUNT ( * ) + - 84 AS col0
----
47

query I rowsort
SELECT DISTINCT 35 * - - 29 + ( + + ( 37 ) )
----
1052

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3567
SELECT + 57 + + 41 DIV - 77 + + 62
----
119

skipif mysql # not compatible
query I rowsort label-3567
SELECT + 57 + + 41 / - 77 + + 62
----
119

query I rowsort
SELECT ALL + 23 * - - 66 + + 80
----
1598

onlyif mysql # aggregate syntax: 
query II rowsort label-3569
SELECT + COALESCE ( - 90, - - 95 * 51 - - COUNT( * ) + + + 82 ) AS col2, - 56 AS col0
----
-90
-56

skipif mysql # not compatible
query II rowsort label-3569
SELECT + COALESCE ( - 90, - - 95 * 51 - - COUNT ( * ) + + + 82 ) AS col2, - 56 AS col0
----
-90
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-3570
SELECT 97 DIV 22 DIV 49 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3570
SELECT 97 / 22 / 49 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3571
SELECT 22 * 90 + - CAST( - MIN( ALL + - 99 ) AS SIGNED ) + - COALESCE ( 38, + + COALESCE ( - - CAST( NULL AS SIGNED ), + - 36 + 97 + + ( + + ( + 92 ) ) ) * - 73 * + 60, + 6 ) * CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3571
SELECT 22 * 90 + - CAST ( - MIN ( ALL + - 99 ) AS INTEGER ) + - COALESCE ( 38, + + COALESCE ( - - CAST ( NULL AS INTEGER ), + - 36 + 97 + + ( + + ( + 92 ) ) ) * - 73 * + 60, + 6 ) * CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3572
SELECT DISTINCT COUNT( * ) * - 59 AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-3572
SELECT DISTINCT COUNT ( * ) * - 59 AS col2
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3573
SELECT - 47 * - COUNT( * ) + MAX( ALL + - 28 ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-3573
SELECT - 47 * - COUNT ( * ) + MAX ( ALL + - 28 ) AS col2
----
19

query II rowsort
SELECT 70 AS col2, 88 col1
----
70
88

query I rowsort
SELECT 52 + + 24 AS col0
----
76

query I rowsort
SELECT ALL 9 + + + 36 * 34
----
1233

query I rowsort
SELECT ( - 37 ) * 16 AS col1
----
-592

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3578
SELECT DISTINCT + 69 * + - 98 * + + CAST( - - 58 AS SIGNED ) AS col0
----
-392196

skipif mysql # not compatible
query I rowsort label-3578
SELECT DISTINCT + 69 * + - 98 * + + CAST ( - - 58 AS INTEGER ) AS col0
----
-392196

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

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

query I rowsort
SELECT 70 * - 96 AS col1
----
-6720

onlyif mysql # aggregate syntax: 
query I rowsort label-3581
SELECT + 10 + - COALESCE ( ( 43 ), + 20 + 25 + + 28 * + + MAX( - 15 ) )
----
-33

skipif mysql # not compatible
query I rowsort label-3581
SELECT + 10 + - COALESCE ( ( 43 ), + 20 + 25 + + 28 * + + MAX ( - 15 ) )
----
-33

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

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

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

query I rowsort
SELECT - 98 + - - 54 * - 80 + 79
----
-4339

query I rowsort
SELECT 50 * + 65 AS col2
----
3250

onlyif mysql # aggregate syntax: 
query II rowsort label-3586
SELECT + COUNT( * ) * - + 44 * - COUNT( * ) AS col1, COUNT( * ) + + 43
----
44
44

skipif mysql # not compatible
query II rowsort label-3586
SELECT + COUNT ( * ) * - + 44 * - COUNT ( * ) AS col1, COUNT ( * ) + + 43
----
44
44

query I rowsort
SELECT ALL + 58 * 95 AS col1
----
5510

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3589
SELECT DISTINCT - 75 / ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3589
SELECT DISTINCT - 75 / ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3590
SELECT + NULLIF ( - - 58, - + 29 + + 94 ) * - + COUNT( + 77 )
----
-58

skipif mysql # not compatible
query I rowsort label-3590
SELECT + NULLIF ( - - 58, - + 29 + + 94 ) * - + COUNT ( + 77 )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3591
SELECT 98 * + CASE 67 WHEN - - 74 / + + 24 + + + NULLIF ( - 90, + COALESCE ( + COUNT( * ), - 45 ) ) + - 2 * 25 * - - 2 * 62 + + - 25 THEN + 95 WHEN + 91 THEN NULL ELSE + 83 END + + - 21 + - 31 AS col2
----
8082

skipif mysql # not compatible
query I rowsort label-3591
SELECT 98 * + CASE 67 WHEN - - 74 / + + 24 + + + NULLIF ( - 90, + COALESCE ( + COUNT ( * ), - 45 ) ) + - 2 * 25 * - - 2 * 62 + + - 25 THEN + 95 WHEN + 91 THEN NULL ELSE + 83 END + + - 21 + - 31 AS col2
----
8082

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3592
SELECT - 54 * - CAST( - 24 AS SIGNED ) + - 87 + 67 AS col0
----
-1316

skipif mysql # not compatible
query I rowsort label-3592
SELECT - 54 * - CAST ( - 24 AS INTEGER ) + - 87 + 67 AS col0
----
-1316

query II rowsort
SELECT ALL - 82 + + - 87 * + 36, + 72 AS col1
----
-3214
72

query II rowsort
SELECT + 78 col2, - 75 + 97 col2
----
78
22

query I rowsort
SELECT ALL - COALESCE ( 30, - 38 * + 94 + 21 + + 35 ) AS col1
----
-30

query II rowsort
SELECT DISTINCT - 8 + - - 44 * - 87 * - 50 AS col2, 30
----
191392
30

query I rowsort
SELECT ALL ( + 28 ) * 73 AS col1
----
2044

query I rowsort
SELECT DISTINCT + 45 + + 93 AS col2
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-3599
SELECT DISTINCT COUNT( * ) + + 61 * - - 57 AS col2
----
3478

skipif mysql # not compatible
query I rowsort label-3599
SELECT DISTINCT COUNT ( * ) + + 61 * - - 57 AS col2
----
3478

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3600
SELECT 88 - 15 * COALESCE ( + 82, + 30 + 80 DIV COUNT( * ) ) + MAX( - + 92 ) + - ( - 40 ) DIV 46
----
-1234

skipif mysql # not compatible
query I rowsort label-3600
SELECT 88 - 15 * COALESCE ( + 82, + 30 + 80 / COUNT ( * ) ) + MAX ( - + 92 ) + - ( - 40 ) / 46
----
-1234

query I rowsort
SELECT 13 * + ( - 60 )
----
-780

query II rowsort
SELECT 42 AS col0, ( 45 ) AS col2
----
42
45

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-3603
SELECT + 56 AS col2, 98 - + 0 DIV - - CAST( + 47 AS SIGNED ) + 87 + + 13 * 89 * - + 13, - 61 DIV - + 11 - + 75 AS col1
----
56
-14856
-70

skipif mysql # not compatible
query III rowsort label-3603
SELECT + 56 AS col2, 98 - + 0 / - - CAST ( + 47 AS INTEGER ) + 87 + + 13 * 89 * - + 13, - 61 / - + 11 - + 75 AS col1
----
56
-14856
-70

query I rowsort
SELECT 23 - 74 + + 96 AS col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3605
SELECT ALL 3 * - + NULLIF ( + 64, - 88 * - COUNT( * ) + + + NULLIF ( - 69, + + COUNT( * ) ) )
----
-192

skipif mysql # not compatible
query I rowsort label-3605
SELECT ALL 3 * - + NULLIF ( + 64, - 88 * - COUNT ( * ) + + + NULLIF ( - 69, + + COUNT ( * ) ) )
----
-192

query I rowsort
SELECT 38 * 96 AS col0
----
3648

onlyif mysql # DIV for integer division: 
query I rowsort label-3607
SELECT DISTINCT - 82 DIV + ( + 22 )
----
-3

skipif mysql # not compatible
query I rowsort label-3607
SELECT DISTINCT - 82 / + ( + 22 )
----
-3

query I rowsort
SELECT ALL + ( + 68 ) - + 31 AS col0
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3609
SELECT - 70, + 5 DIV + 96 + + MAX( 12 ) AS col2
----
-70
12

skipif mysql # not compatible
query II rowsort label-3609
SELECT - 70, + 5 / + 96 + + MAX ( 12 ) AS col2
----
-70
12

onlyif mysql # DIV for integer division: 
query I rowsort label-3610
SELECT 57 DIV + + ( + 5 ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-3610
SELECT 57 / + + ( + 5 ) AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3611
SELECT ALL 67 * + - ( ( - - COUNT( DISTINCT 31 ) ) )
----
-67

skipif mysql # not compatible
query I rowsort label-3611
SELECT ALL 67 * + - ( ( - - COUNT ( DISTINCT 31 ) ) )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-3612
SELECT 28 * - CASE - 67 WHEN COUNT( * ) * + 95 * CASE - 49 WHEN + 34 THEN 84 WHEN + 74 THEN NULL WHEN - + 9 THEN NULL ELSE - 43 * + COALESCE ( COALESCE ( NULLIF ( + 31, ( + 99 ) ), 59 ), - 55, + 27 - + 59, CASE + 17 WHEN - MAX( + 44 ) + - 93 THEN 23 / + 56 + - 13 * 47 END * COALESCE ( + CASE + 71 WHEN + MAX( DISTINCT + 71 ) * - 45 THEN + 95 + 64 * + ( 66 ) END, - AVG ( 8 ), - 89 ) ) + 66 * - 78 END THEN - 58 ELSE + 16 END
----
-448

skipif mysql # not compatible
query I rowsort label-3612
SELECT 28 * - CASE - 67 WHEN COUNT ( * ) * + 95 * CASE - 49 WHEN + 34 THEN 84 WHEN + 74 THEN NULL WHEN - + 9 THEN NULL ELSE - 43 * + COALESCE ( COALESCE ( NULLIF ( + 31, ( + 99 ) ), 59 ), - 55, + 27 - + 59, CASE + 17 WHEN - MAX ( + 44 ) + - 93 THEN 23 / + 56 + - 13 * 47 END * COALESCE ( + CASE + 71 WHEN + MAX ( DISTINCT + 71 ) * - 45 THEN + 95 + 64 * + ( 66 ) END, - AVG ( 8 ), - 89 ) ) + 66 * - 78 END THEN - 58 ELSE + 16 END
----
-448

onlyif mysql # aggregate syntax: 
query I rowsort label-3613
SELECT DISTINCT COUNT( * ) * + + 82 AS col2
----
82

skipif mysql # not compatible
query I rowsort label-3613
SELECT DISTINCT COUNT ( * ) * + + 82 AS col2
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3614
SELECT - 93 col2, CAST( 22 AS SIGNED ) AS col2
----
-93
22

skipif mysql # not compatible
query II rowsort label-3614
SELECT - 93 col2, CAST ( 22 AS INTEGER ) AS col2
----
-93
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3615
SELECT - 32 AS col0, 80 DIV - + COUNT( * ) - + + 88 * - - ( 50 )
----
-32
-4480

skipif mysql # not compatible
query II rowsort label-3615
SELECT - 32 AS col0, 80 / - + COUNT ( * ) - + + 88 * - - ( 50 )
----
-32
-4480

query II rowsort
SELECT ALL 4 * + 90, + 57 AS col2
----
360
57

query I rowsort
SELECT DISTINCT - NULLIF ( - 17, + 49 / - - 1 * 26 ) AS col0
----
17

query I rowsort
SELECT + ( + 36 ) * 57
----
2052

query II rowsort
SELECT DISTINCT - 62, + 39 AS col1
----
-62
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3620
SELECT + ( + 26 ) * + CAST( - COUNT( * ) AS SIGNED ) AS col0, - COUNT( * ) + - - 31 col1
----
-26
30

skipif mysql # not compatible
query II rowsort label-3620
SELECT + ( + 26 ) * + CAST ( - COUNT ( * ) AS INTEGER ) AS col0, - COUNT ( * ) + - - 31 col1
----
-26
30

query I rowsort
SELECT - 7 * - - 95 * + 68
----
-45220

onlyif mysql # aggregate syntax: 
query I rowsort label-3622
SELECT DISTINCT - COALESCE ( + - COUNT( * ), - 18 )
----
1

skipif mysql # not compatible
query I rowsort label-3622
SELECT DISTINCT - COALESCE ( + - COUNT ( * ), - 18 )
----
1

query II rowsort
SELECT ALL 14 * + - 79 + - + 6 + - - 28 col1, - 98 * 16 + + 79
----
-1084
-1489

query I rowsort
SELECT ALL - ( - - 72 ) AS col2
----
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-3625
SELECT 7 * + - COUNT( * ) col2, - 94
----
-7
-94

skipif mysql # not compatible
query II rowsort label-3625
SELECT 7 * + - COUNT ( * ) col2, - 94
----
-7
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-3626
SELECT ( - 14 ) DIV - ( + 72 ) + - ( + 44 ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-3626
SELECT ( - 14 ) / - ( + 72 ) + - ( + 44 ) AS col0
----
-44

query I rowsort
SELECT ALL - 69 * 24 - + 53 * + 97 - - - 82 + - 43
----
-6922

query I rowsort
SELECT 59 * 89 + 27 * 29 AS col2
----
6034

query I rowsort
SELECT ALL - 87 * + 25 AS col1
----
-2175

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3630
SELECT ALL + MAX( ALL - CAST( 1 AS SIGNED ) ) * + + 77 + + 92 * SUM( - 28 ) + + 69 - - 57 * + COUNT( * ) AS col2
----
-2527

skipif mysql # not compatible
query I rowsort label-3630
SELECT ALL + MAX ( ALL - CAST ( 1 AS INTEGER ) ) * + + 77 + + 92 * SUM ( - 28 ) + + 69 - - 57 * + COUNT ( * ) AS col2
----
-2527

onlyif mysql # aggregate syntax: 
query I rowsort label-3631
SELECT - 68 + COUNT( * ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-3631
SELECT - 68 + COUNT ( * ) AS col2
----
-67

query I rowsort
SELECT ALL - ( + - 38 ) * - 53 + 54 * 73 AS col0
----
1928

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3633
SELECT DISTINCT + CASE - + 82 WHEN 1 THEN NULL WHEN + 32 THEN 90 + - 88 * + 21 ELSE NULL END AS col2, CASE - COUNT( ALL 96 ) WHEN - 73 THEN + 7 * - + 19 END * + + 42 * CAST( - + 44 AS DECIMAL )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3633
SELECT DISTINCT + CASE - + 82 WHEN 1 THEN NULL WHEN + 32 THEN 90 + - 88 * + 21 ELSE NULL END AS col2, CASE - COUNT ( ALL 96 ) WHEN - 73 THEN + 7 * - + 19 END * + + 42 * CAST ( - + 44 AS REAL )
----
NULL
NULL

query I rowsort
SELECT ALL - 69 * - 36 AS col1
----
2484

onlyif mysql # aggregate syntax: 
query II rowsort label-3635
SELECT 97 * + 96 + + - CASE - 54 WHEN - COUNT( * ) THEN + 19 END * - 21 + + 99 col0, 98
----
NULL
98

skipif mysql # not compatible
query II rowsort label-3635
SELECT 97 * + 96 + + - CASE - 54 WHEN - COUNT ( * ) THEN + 19 END * - 21 + + 99 col0, 98
----
NULL
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3636
SELECT - 50 * COUNT( ALL + 75 ) * - COUNT( * )
----
50

skipif mysql # not compatible
query I rowsort label-3636
SELECT - 50 * COUNT ( ALL + 75 ) * - COUNT ( * )
----
50

query I rowsort
SELECT + 66 + 37 AS col0
----
103

onlyif mysql # DIV for integer division: 
query I rowsort label-3638
SELECT ALL - 42 DIV + + COALESCE ( - 43, - ( + - 31 ) ) * + 43 + + 77 AS col2
----
77

skipif mysql # not compatible
query I rowsort label-3638
SELECT ALL - 42 / + + COALESCE ( - 43, - ( + - 31 ) ) * + 43 + + 77 AS col2
----
77

query I rowsort
SELECT - - 36 + + + 88 AS col0
----
124

query I rowsort
SELECT - - NULLIF ( 75, - AVG ( ALL - + 36 ) )
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-3641
SELECT ALL - 98 DIV - + ( COALESCE ( 34, COALESCE ( - 6, + - 7 ) * - 89 ) ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-3641
SELECT ALL - 98 / - + ( COALESCE ( 34, COALESCE ( - 6, + - 7 ) * - 89 ) ) AS col1
----
2

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

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

query I rowsort
SELECT + 78 + + + 16 * 53
----
926

onlyif mysql # aggregate syntax: 
query I rowsort label-3644
SELECT + - COUNT( * ) * + 59 + - 73 AS col1
----
-132

skipif mysql # not compatible
query I rowsort label-3644
SELECT + - COUNT ( * ) * + 59 + - 73 AS col1
----
-132

query I rowsort
SELECT ALL 61 + - + 87 AS col2
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3646
SELECT ALL MIN( - 8 ) * - + 97 + + - 98 * 90 DIV + - 41
----
991

skipif mysql # not compatible
query I rowsort label-3646
SELECT ALL MIN ( - 8 ) * - + 97 + + - 98 * 90 / + - 41
----
991

query I rowsort
SELECT ALL - 46 * - + 48
----
2208

onlyif mysql # aggregate syntax: 
query II rowsort label-3648
SELECT DISTINCT + 87 + + - NULLIF ( CASE + + 48 WHEN + 96 THEN NULL WHEN + 67 / + 3 * AVG ( DISTINCT 37 ) THEN NULL ELSE MIN( DISTINCT + 65 ) END, - + 84 ) AS col1, 79 - - 40 col0
----
22
119

skipif mysql # not compatible
query II rowsort label-3648
SELECT DISTINCT + 87 + + - NULLIF ( CASE + + 48 WHEN + 96 THEN NULL WHEN + 67 / + 3 * AVG ( DISTINCT 37 ) THEN NULL ELSE MIN ( DISTINCT + 65 ) END, - + 84 ) AS col1, 79 - - 40 col0
----
22
119

onlyif mysql # aggregate syntax: 
query I rowsort label-3649
SELECT + + COUNT( ALL - 94 ) + + 68
----
69

skipif mysql # not compatible
query I rowsort label-3649
SELECT + + COUNT ( ALL - 94 ) + + 68
----
69

query I rowsort
SELECT ALL + 54 + + - 59 AS col0
----
-5

query II rowsort
SELECT 86 AS col2, 25
----
86
25

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-3653
SELECT - ( - NULLIF ( - 46, - 24 ) ) DIV 16 + + - 17, - 62 * + + 84 AS col2
----
-19
-5208

skipif mysql # not compatible
query II rowsort label-3653
SELECT - ( - NULLIF ( - 46, - 24 ) ) / 16 + + - 17, - 62 * + + 84 AS col2
----
-19
-5208

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3654
SELECT CAST( - 72 AS SIGNED ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-3654
SELECT CAST ( - 72 AS INTEGER ) AS col2
----
-72

query I rowsort
SELECT + COALESCE ( + 23, + 91, - 60, - 30 ) AS col1
----
23

query I rowsort
SELECT + 52 + - - 83
----
135

query I rowsort
SELECT - 29 * + 26 + ( + - 84 ) AS col2
----
-838

onlyif mysql # DIV for integer division: 
query I rowsort label-3658
SELECT ALL - 25 DIV + 18 - 6
----
-7

skipif mysql # not compatible
query I rowsort label-3658
SELECT ALL - 25 / + 18 - 6
----
-7

query I rowsort
SELECT + ( + COALESCE ( - 30, + 63 ) ) AS col0
----
-30

query I rowsort
SELECT + 98 * ( + + 78 ) * - + 97 AS col1
----
-741468

onlyif mysql # DIV for integer division: 
query II rowsort label-3661
SELECT ALL 4 DIV - ( - 99 ), - 12 AS col1
----
0
-12

skipif mysql # not compatible
query II rowsort label-3661
SELECT ALL 4 / - ( - 99 ), - 12 AS col1
----
0
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3662
SELECT + 16 DIV - MIN( DISTINCT 17 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3662
SELECT + 16 / - MIN ( DISTINCT 17 ) AS col0
----
0

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

skipif mysql # not compatible
query I rowsort label-3663
SELECT DISTINCT COUNT ( * ) * - - 75 AS col0
----
75

query I rowsort
SELECT ALL + 48 * + 89 - 12 AS col2
----
4260

query I rowsort
SELECT ALL 97 * 86 - - 53 + 40 + - + 55
----
8380

onlyif mysql # DIV for integer division: 
query I rowsort label-3666
SELECT - 86 DIV - 78
----
1

skipif mysql # not compatible
query I rowsort label-3666
SELECT - 86 / - 78
----
1

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

skipif mysql # not compatible
query II rowsort label-3667
SELECT DISTINCT + 83 AS col0, - COUNT ( * )
----
83
-1

query I rowsort
SELECT + 56 - - 39 AS col1
----
95

query II rowsort
SELECT + 11 AS col0, 69
----
11
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3670
SELECT ALL + MAX( - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) AS col0, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-3670
SELECT ALL + MAX ( - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col0, COUNT ( * )
----
NULL
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3671
SELECT + 50 DIV - 20
----
-2

skipif mysql # not compatible
query I rowsort label-3671
SELECT + 50 / - 20
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3672
SELECT DISTINCT + 11 * + COUNT( ALL + NULLIF ( + 20, + - 26 * + + 55 ) ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-3672
SELECT DISTINCT + 11 * + COUNT ( ALL + NULLIF ( + 20, + - 26 * + + 55 ) ) AS col2
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-3673
SELECT - - 82 - - COUNT( - - 29 ) AS col2, - 22 + 98 * - 76 AS col2
----
83
-7470

skipif mysql # not compatible
query II rowsort label-3673
SELECT - - 82 - - COUNT ( - - 29 ) AS col2, - 22 + 98 * - 76 AS col2
----
83
-7470

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

query I rowsort
SELECT - + 7 - - 3 AS col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3676
SELECT - - MAX( 37 ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-3676
SELECT - - MAX ( 37 ) AS col2
----
37

query I rowsort
SELECT DISTINCT - + 89 * 51
----
-4539

query I rowsort
SELECT ALL - 93 * - - 97 + - - 64 - 74 * - 50 AS col1
----
-5257

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3679
SELECT - 29 AS col1, + ( - - COALESCE ( - CAST( + + 87 AS SIGNED ), + 60 ) ) AS col1
----
-29
-87

skipif mysql # not compatible
query II rowsort label-3679
SELECT - 29 AS col1, + ( - - COALESCE ( - CAST ( + + 87 AS INTEGER ), + 60 ) ) AS col1
----
-29
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-3680
SELECT - CASE 25 WHEN + 58 THEN NULL ELSE - 47 * + ( + 63 ) + + - MIN( - 37 ) - - 58 * - 81 * - ( + COUNT( * ) ) - - 14 END + - 55 + + 71 + 85 * + 91 + - - 81 * 85
----
12848

skipif mysql # not compatible
query I rowsort label-3680
SELECT - CASE 25 WHEN + 58 THEN NULL ELSE - 47 * + ( + 63 ) + + - MIN ( - 37 ) - - 58 * - 81 * - ( + COUNT ( * ) ) - - 14 END + - 55 + + 71 + 85 * + 91 + - - 81 * 85
----
12848

onlyif mysql # aggregate syntax: 
query I rowsort label-3681
SELECT - 66 - SUM( - + 3 ) * + 39
----
51

skipif mysql # not compatible
query I rowsort label-3681
SELECT - 66 - SUM ( - + 3 ) * + 39
----
51

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

skipif mysql # not compatible
query I rowsort label-3682
SELECT + - COUNT ( * ) + + 64 AS col2
----
63

query I rowsort
SELECT + 80 * + + 57
----
4560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3684
SELECT ALL + + ( - + 66 ) * - + 50 * - CASE - - 38 WHEN + - 93 * ( COALESCE ( - + 59, - - COALESCE ( - 11, 55 * + CAST( NULL AS SIGNED ) ) + - + 57 ) ) DIV + + 6 - - 90 THEN 92 ELSE + COUNT( * ) DIV - 84 END
----
0

skipif mysql # not compatible
query I rowsort label-3684
SELECT ALL + + ( - + 66 ) * - + 50 * - CASE - - 38 WHEN + - 93 * ( COALESCE ( - + 59, - - COALESCE ( - 11, 55 * + CAST ( NULL AS INTEGER ) ) + - + 57 ) ) / + + 6 - - 90 THEN 92 ELSE + COUNT ( * ) / - 84 END
----
0

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

query II rowsort
SELECT ALL 24 col1, + 35
----
24
35

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

skipif mysql # not compatible
query I rowsort label-3687
SELECT DISTINCT - CAST ( NULL AS REAL ) + - 50 + + CAST ( + 14 AS INTEGER )
----
NULL

query I rowsort
SELECT - 8 + 2 AS col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3689
SELECT - MAX( - - 76 ) * - 74 * - 69 col0
----
-388056

skipif mysql # not compatible
query I rowsort label-3689
SELECT - MAX ( - - 76 ) * - 74 * - 69 col0
----
-388056

onlyif mysql # aggregate syntax: 
query I rowsort label-3690
SELECT 13 - + MAX( - + 51 ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-3690
SELECT 13 - + MAX ( - + 51 ) AS col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3691
SELECT COALESCE ( + 23, 41 ) * - 22 + - 6 - + 94 + - 74 * - - COUNT( * ) AS col2
----
-680

skipif mysql # not compatible
query I rowsort label-3691
SELECT COALESCE ( + 23, 41 ) * - 22 + - 6 - + 94 + - 74 * - - COUNT ( * ) AS col2
----
-680

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

skipif mysql # not compatible
query II rowsort label-3692
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) AS col0, + 96
----
-1
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3693
SELECT ALL - ( - MIN( - 50 ) ) * - 54 * + - NULLIF ( - 60, + 73 * - + ( - - 94 ) - + - CAST( NULL AS SIGNED ) ) - - + 50
----
162050

skipif mysql # not compatible
query I rowsort label-3693
SELECT ALL - ( - MIN ( - 50 ) ) * - 54 * + - NULLIF ( - 60, + 73 * - + ( - - 94 ) - + - CAST ( NULL AS INTEGER ) ) - - + 50
----
162050

onlyif mysql # aggregate syntax: 
query I rowsort label-3694
SELECT 16 * CASE - COUNT( * ) WHEN 14 THEN NULL WHEN - 67 + + + 61 / - 60 THEN + 82 END * + 9 * + - 60 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3694
SELECT 16 * CASE - COUNT ( * ) WHEN 14 THEN NULL WHEN - 67 + + + 61 / - 60 THEN + 82 END * + 9 * + - 60 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3695
SELECT 32 + + ( NULLIF ( + 96, 49 * - 92 + CAST( NULL AS SIGNED ) - - 17 + 82 ) )
----
128

skipif mysql # not compatible
query I rowsort label-3695
SELECT 32 + + ( NULLIF ( + 96, 49 * - 92 + CAST ( NULL AS INTEGER ) - - 17 + 82 ) )
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-3696
SELECT - 43 * + 47 + + 87 + + ( + - CASE + - 63 WHEN - 41 - 75 THEN + + 39 * + 14 + COUNT( * ) * + 15 WHEN + 17 THEN + + 52 * - - 41 * - ( CASE 10 WHEN + NULLIF ( + - ( + + 30 ), + 92 * + + 4 + + 46 ) THEN NULL WHEN - COUNT( * ) * - 0 THEN - 8 END ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3696
SELECT - 43 * + 47 + + 87 + + ( + - CASE + - 63 WHEN - 41 - 75 THEN + + 39 * + 14 + COUNT ( * ) * + 15 WHEN + 17 THEN + + 52 * - - 41 * - ( CASE 10 WHEN + NULLIF ( + - ( + + 30 ), + 92 * + + 4 + + 46 ) THEN NULL WHEN - COUNT ( * ) * - 0 THEN - 8 END ) END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3697
SELECT 77 + - MIN( ALL + + 80 ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-3697
SELECT 77 + - MIN ( ALL + + 80 ) AS col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3698
SELECT DISTINCT 38 + - COUNT( * )
----
37

skipif mysql # not compatible
query I rowsort label-3698
SELECT DISTINCT 38 + - COUNT ( * )
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-3699
SELECT DISTINCT ( + 93 ) + + - 91 * + 79 AS col1, + ( - 23 ) - + COUNT( * ) col1
----
-7096
-24

skipif mysql # not compatible
query II rowsort label-3699
SELECT DISTINCT ( + 93 ) + + - 91 * + 79 AS col1, + ( - 23 ) - + COUNT ( * ) col1
----
-7096
-24

query I rowsort
SELECT + 1 + - 78
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3701
SELECT ALL MAX( - 36 ) + - COUNT( ALL + 6 ) * + + 38 * + 31
----
-1214

skipif mysql # not compatible
query I rowsort label-3701
SELECT ALL MAX ( - 36 ) + - COUNT ( ALL + 6 ) * + + 38 * + 31
----
-1214

onlyif mysql # aggregate syntax: 
query II rowsort label-3702
SELECT DISTINCT - + ( - + 89 ), - COUNT( * ) * - 17 + - COUNT( * ) + - - ( - 34 ) + + 2 AS col2
----
89
-16

skipif mysql # not compatible
query II rowsort label-3702
SELECT DISTINCT - + ( - + 89 ), - COUNT ( * ) * - 17 + - COUNT ( * ) + - - ( - 34 ) + + 2 AS col2
----
89
-16

query I rowsort
SELECT ALL - 50 + COALESCE ( - + 7, + - 34 * 34 ) AS col0
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3704
SELECT - CAST( + - 5 AS SIGNED ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-3704
SELECT - CAST ( + - 5 AS INTEGER ) AS col1
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3705
SELECT COALESCE ( 76, + - 88 * + 96 ) + - 89 + - CAST( + - 87 AS SIGNED ) + - 45 AS col0
----
29

skipif mysql # not compatible
query I rowsort label-3705
SELECT COALESCE ( 76, + - 88 * + 96 ) + - 89 + - CAST ( + - 87 AS INTEGER ) + - 45 AS col0
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3706
SELECT 19 * - NULLIF ( + NULLIF ( CAST( NULL AS SIGNED ), + ( - CASE + 65 WHEN - 28 THEN + + 44 * - + 76 * - COUNT( * ) WHEN - - 29 + COUNT( * ) THEN + 62 ELSE NULL END ) ), + + 49 + 52 * + - 83 * 52 ) * + - 50 + - 60 * + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-3706
SELECT 19 * - NULLIF ( + NULLIF ( CAST ( NULL AS INTEGER ), + ( - CASE + 65 WHEN - 28 THEN + + 44 * - + 76 * - COUNT ( * ) WHEN - - 29 + COUNT ( * ) THEN + 62 ELSE NULL END ) ), + + 49 + 52 * + - 83 * 52 ) * + - 50 + - 60 * + 84
----
NULL

query I rowsort
SELECT ALL - 98 * - 62 + 42 AS col1
----
6118

query I rowsort
SELECT ALL - ( - - 88 ) AS col0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-3709
SELECT DISTINCT + COALESCE ( 24, 83 - - 61 * - - 55 + + - 30 + + 62 * 10 * - 77 * - + ( 35 ), - 52 ) - - COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-3709
SELECT DISTINCT + COALESCE ( 24, 83 - - 61 * - - 55 + + - 30 + + 62 * 10 * - 77 * - + ( 35 ), - 52 ) - - COUNT ( * )
----
25

query I rowsort
SELECT ALL + 63 * 88 AS col2
----
5544

query I rowsort
SELECT + 92 + - - 52 AS col0
----
144

query I rowsort
SELECT ALL NULLIF ( - 60, - 30 ) AS col1
----
-60

query I rowsort
SELECT 7 * 37
----
259

query II rowsort
SELECT DISTINCT 82 col1, + 67 * - + ( - 21 )
----
82
1407

onlyif mysql # DIV for integer division: 
query I rowsort label-3715
SELECT 26 DIV - + 26
----
-1

skipif mysql # not compatible
query I rowsort label-3715
SELECT 26 / - + 26
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3716
SELECT COUNT( * ) + 38 + - + 78 * + - CAST( COUNT( * ) AS SIGNED ) DIV - 89
----
39

skipif mysql # not compatible
query I rowsort label-3716
SELECT COUNT ( * ) + 38 + - + 78 * + - CAST ( COUNT ( * ) AS INTEGER ) / - 89
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3717
SELECT DISTINCT 4 * CASE + 24 WHEN + 2 THEN 28 END / + - 54 * - CASE - 50 WHEN 88 * + - COUNT( * ) + - 57 THEN + - 99 / + SUM( + ( + 84 ) ) / 2 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3717
SELECT DISTINCT 4 * CASE + 24 WHEN + 2 THEN 28 END / + - 54 * - CASE - 50 WHEN 88 * + - COUNT ( * ) + - 57 THEN + - 99 / + SUM ( + ( + 84 ) ) / 2 ELSE NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3718
SELECT 16 DIV ( 1 )
----
16

skipif mysql # not compatible
query I rowsort label-3718
SELECT 16 / ( 1 )
----
16

query I rowsort
SELECT CASE - 63 WHEN + - 61 THEN 11 WHEN + 9 THEN NULL END / + - 25 + + 35 col1
----
NULL

query I rowsort
SELECT 22 * - - 71 AS col1
----
1562

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3721
SELECT DISTINCT - ( - 29 ) * + + 60 + AVG ( - ( 18 ) ) * - CAST( NULL AS SIGNED ) / + 92 AS col2, - 14 + + 18 + + 48
----
NULL
52

skipif mysql # not compatible
query II rowsort label-3721
SELECT DISTINCT - ( - 29 ) * + + 60 + AVG ( - ( 18 ) ) * - CAST ( NULL AS INTEGER ) / + 92 AS col2, - 14 + + 18 + + 48
----
NULL
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3722
SELECT + 76 * + SUM( - + 35 ) + + 58 AS col0
----
-2602

skipif mysql # not compatible
query I rowsort label-3722
SELECT + 76 * + SUM ( - + 35 ) + + 58 AS col0
----
-2602

onlyif mysql # aggregate syntax: 
query I rowsort label-3723
SELECT ALL 3 * CASE - 50 WHEN - - 32 / - 55 THEN NULL WHEN + - 60 / - 50 * - 89 + 40 / COUNT( * ) / + - COUNT( * ) THEN + - 85 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3723
SELECT ALL 3 * CASE - 50 WHEN - - 32 / - 55 THEN NULL WHEN + - 60 / - 50 * - 89 + 40 / COUNT ( * ) / + - COUNT ( * ) THEN + - 85 END AS col0
----
NULL

query I rowsort
SELECT 38 * + + 50 + - - 75 + - - 28 * 92 * - - 3 + 65 col1
----
9768

onlyif mysql # aggregate syntax: 
query II rowsort label-3725
SELECT DISTINCT COUNT( * ) * 73 + NULLIF ( 22, - 43 - - - 62 ) * + ( - 2 ) AS col1, - 48
----
29
-48

skipif mysql # not compatible
query II rowsort label-3725
SELECT DISTINCT COUNT ( * ) * 73 + NULLIF ( 22, - 43 - - - 62 ) * + ( - 2 ) AS col1, - 48
----
29
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-3726
SELECT ALL COUNT( * ) * + 3 + - COUNT( * ) * + ( - 7 ), MAX( + + 70 ) AS col2
----
10
70

skipif mysql # not compatible
query II rowsort label-3726
SELECT ALL COUNT ( * ) * + 3 + - COUNT ( * ) * + ( - 7 ), MAX ( + + 70 ) AS col2
----
10
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3727
SELECT ALL + 65 * MAX( - 17 )
----
-1105

skipif mysql # not compatible
query I rowsort label-3727
SELECT ALL + 65 * MAX ( - 17 )
----
-1105

query I rowsort
SELECT DISTINCT 32 + 48
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3729
SELECT DISTINCT + 47 * - NULLIF ( - + 93, COUNT( + 60 ) * + 74 * - 5 + + SUM( ALL - NULLIF ( + 65, - 38 ) ) - + + 41 ) AS col2
----
4371

skipif mysql # not compatible
query I rowsort label-3729
SELECT DISTINCT + 47 * - NULLIF ( - + 93, COUNT ( + 60 ) * + 74 * - 5 + + SUM ( ALL - NULLIF ( + 65, - 38 ) ) - + + 41 ) AS col2
----
4371

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3730
SELECT ALL + + ( - 71 ) + + 24 col0, - 22 DIV COALESCE ( 36, 27 + - + 94 ) * + 90 - - + 86 + MIN( - - 13 )
----
-47
99

skipif mysql # not compatible
query II rowsort label-3730
SELECT ALL + + ( - 71 ) + + 24 col0, - 22 / COALESCE ( 36, 27 + - + 94 ) * + 90 - - + 86 + MIN ( - - 13 )
----
-47
99

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3733
SELECT + 89 * - 7 + + 15 + + 81 + + 19 - - ( + COUNT( DISTINCT 5 ) ) - ( + 45 ) col2
----
-552

skipif mysql # not compatible
query I rowsort label-3733
SELECT + 89 * - 7 + + 15 + + 81 + + 19 - - ( + COUNT ( DISTINCT 5 ) ) - ( + 45 ) col2
----
-552

query I rowsort
SELECT ( COALESCE ( 69, + 88 + - + ( 9 ), + - 4 ) ) * + 73
----
5037

query I rowsort
SELECT 85 + + + 71
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-3736
SELECT DISTINCT + - COALESCE ( + + 73, MAX( DISTINCT - 22 ) ) + SUM( + 43 ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-3736
SELECT DISTINCT + - COALESCE ( + + 73, MAX ( DISTINCT - 22 ) ) + SUM ( + 43 ) AS col1
----
-30

onlyif mysql # DIV for integer division: 
query II rowsort label-3737
SELECT ALL 32 - - 97 DIV 17 AS col1, 63
----
37
63

skipif mysql # not compatible
query II rowsort label-3737
SELECT ALL 32 - - 97 / 17 AS col1, 63
----
37
63

query I rowsort
SELECT ALL 71 * + 36 + 69
----
2625

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3740
SELECT - COALESCE ( + + 16, - 86 ) - 79 - CAST( NULL AS SIGNED ) * + 21 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3740
SELECT - COALESCE ( + + 16, - 86 ) - 79 - CAST ( NULL AS INTEGER ) * + 21 AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3742
SELECT ALL 98 - - COALESCE ( 70, - 28 + CASE 22 WHEN - CASE 32 WHEN + 96 THEN 2 ELSE NULL END THEN NULL WHEN - 42 / CASE + 48 WHEN - 25 THEN + 96 WHEN + + 39 - - + 72 THEN - 82 + 54 WHEN ( - 61 ) - - + MAX( - 94 ) THEN NULL END THEN - 86 ELSE - ( 60 ) END, + 56, 80 ) AS col0
----
168

skipif mysql # not compatible
query I rowsort label-3742
SELECT ALL 98 - - COALESCE ( 70, - 28 + CASE 22 WHEN - CASE 32 WHEN + 96 THEN 2 ELSE NULL END THEN NULL WHEN - 42 / CASE + 48 WHEN - 25 THEN + 96 WHEN + + 39 - - + 72 THEN - 82 + 54 WHEN ( - 61 ) - - + MAX ( - 94 ) THEN NULL END THEN - 86 ELSE - ( 60 ) END, + 56, 80 ) AS col0
----
168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3743
SELECT + 68 * + CAST( NULLIF ( - 41, CAST( NULL AS DECIMAL ) ) AS SIGNED ) - - + 62 + - + CASE + 10 WHEN + + COUNT( * ) * + 76 THEN - - 23 WHEN + COALESCE ( - 62, + 6 - 95, 73 * - 11 ) THEN NULL END - + 78 * 68
----
NULL

skipif mysql # not compatible
query I rowsort label-3743
SELECT + 68 * + CAST ( NULLIF ( - 41, CAST ( NULL AS REAL ) ) AS INTEGER ) - - + 62 + - + CASE + 10 WHEN + + COUNT ( * ) * + 76 THEN - - 23 WHEN + COALESCE ( - 62, + 6 - 95, 73 * - 11 ) THEN NULL END - + 78 * 68
----
NULL

query I rowsort
SELECT + - 97 * - 72 + - 91
----
6893

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3746
SELECT - - COUNT( * ) - + + MIN( + 29 ) AS col2, + 78 AS col0
----
-28
78

skipif mysql # not compatible
query II rowsort label-3746
SELECT - - COUNT ( * ) - + + MIN ( + 29 ) AS col2, + 78 AS col0
----
-28
78

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

skipif mysql # not compatible
query I rowsort label-3747
SELECT ALL + COUNT ( * ) / 84
----
0

query I rowsort
SELECT + 17 * - 82 * + 61 + + 22 AS col0
----
-85012

onlyif mysql # aggregate syntax: 
query I rowsort label-3749
SELECT ALL COUNT( + + 84 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3749
SELECT ALL COUNT ( + + 84 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3750
SELECT - CASE MIN( + 75 ) WHEN - 95 THEN NULL ELSE - - 35 * + 78 DIV COUNT( * ) + 82 + 72 - 80 DIV + - COUNT( + + NULLIF ( - - 92, - 69 ) ) + 10 - + - NULLIF ( + 53, + 92 + - CAST( NULL AS SIGNED ) + - 16 * ( + - 12 ) ) * 21 + + - 41 * 58 + + - 55 END AS col0
----
-1654

skipif mysql # not compatible
query I rowsort label-3750
SELECT - CASE MIN ( + 75 ) WHEN - 95 THEN NULL ELSE - - 35 * + 78 / COUNT ( * ) + 82 + 72 - 80 / + - COUNT ( + + NULLIF ( - - 92, - 69 ) ) + 10 - + - NULLIF ( + 53, + 92 + - CAST ( NULL AS INTEGER ) + - 16 * ( + - 12 ) ) * 21 + + - 41 * 58 + + - 55 END AS col0
----
-1654

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3751
SELECT ALL 28 AS col0, - SUM( DISTINCT CASE 49 WHEN - 66 THEN + 61 WHEN + 72 + + + 25 + + + 10 THEN NULL END ) * 46 * CAST( NULL AS SIGNED ) * + + COUNT( * )
----
28
NULL

skipif mysql # not compatible
query II rowsort label-3751
SELECT ALL 28 AS col0, - SUM ( DISTINCT CASE 49 WHEN - 66 THEN + 61 WHEN + 72 + + + 25 + + + 10 THEN NULL END ) * 46 * CAST ( NULL AS INTEGER ) * + + COUNT ( * )
----
28
NULL

query II rowsort
SELECT DISTINCT 80 AS col2, 4 * + 14 + ( + 39 ) + 23 AS col2
----
80
118

query I rowsort
SELECT ALL + 41 * 43 AS col2
----
1763

query II rowsort
SELECT ALL 86 col2, NULLIF ( - + 53, - + 88 )
----
86
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3755
SELECT DISTINCT COUNT( * ) AS col1, 97 + + + 80 + 11 DIV - 93 AS col1
----
1
177

skipif mysql # not compatible
query II rowsort label-3755
SELECT DISTINCT COUNT ( * ) AS col1, 97 + + + 80 + 11 / - 93 AS col1
----
1
177

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3756
SELECT + 57 + - NULLIF ( + CAST( + - 71 AS SIGNED ), + 41 + - 42 * - 24 + + MAX( ALL + - 33 ) ) * ( - - 75 ) AS col2, 41 AS col0
----
5382
41

skipif mysql # not compatible
query II rowsort label-3756
SELECT + 57 + - NULLIF ( + CAST ( + - 71 AS INTEGER ), + 41 + - 42 * - 24 + + MAX ( ALL + - 33 ) ) * ( - - 75 ) AS col2, 41 AS col0
----
5382
41

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

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

skipif mysql # not compatible
query II rowsort label-3758
SELECT 26 AS col2, ( - COUNT ( * ) ) AS col2
----
26
-1

query I rowsort
SELECT ALL + 42 * + 98 AS col2
----
4116

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

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

query I rowsort
SELECT - ( - - 24 ) * - ( + 38 ) AS col2
----
912

onlyif mysql # aggregate syntax: 
query I rowsort label-3762
SELECT ALL NULLIF ( + + 70, - 86 * MIN( + 25 ) * + + 41 * + + 99 )
----
70

skipif mysql # not compatible
query I rowsort label-3762
SELECT ALL NULLIF ( + + 70, - 86 * MIN ( + 25 ) * + + 41 * + + 99 )
----
70

query I rowsort
SELECT DISTINCT - 24 + + 70
----
46

query I rowsort
SELECT - 27 - + + 22
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-3765
SELECT DISTINCT COUNT( COALESCE ( + ( - 93 ), - 65 * 46, + ( - 60 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-3765
SELECT DISTINCT COUNT ( COALESCE ( + ( - 93 ), - 65 * 46, + ( - 60 ) ) )
----
1

query I rowsort
SELECT ALL - 6 + + + 47
----
41

query I rowsort
SELECT ALL + ( - 93 ) AS col0
----
-93

query I rowsort
SELECT ALL - 79 * 3
----
-237

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3769
SELECT - 56 DIV 79 AS col1, MAX( ALL - 65 ) AS col2
----
0
-65

skipif mysql # not compatible
query II rowsort label-3769
SELECT - 56 / 79 AS col1, MAX ( ALL - 65 ) AS col2
----
0
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3770
SELECT ALL 65 * 89 + - CASE + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) WHEN + COUNT( * ) THEN - 27 ELSE NULL END col2, 94 AS col2
----
NULL
94

skipif mysql # not compatible
query II rowsort label-3770
SELECT ALL 65 * 89 + - CASE + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) WHEN + COUNT ( * ) THEN - 27 ELSE NULL END col2, 94 AS col2
----
NULL
94

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3771
SELECT SUM( - 26 ) * - + 43 + + 72 + - - 43 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3771
SELECT SUM ( - 26 ) * - + 43 + + 72 + - - 43 * + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT - 73 * 47 AS col0
----
-3431

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3774
SELECT + 84 DIV - - 42 + 46
----
48

skipif mysql # not compatible
query I rowsort label-3774
SELECT + 84 / - - 42 + 46
----
48

query I rowsort
SELECT + - 81 * 69 - + ( + 38 ) * + 65 AS col2
----
-8059

onlyif mysql # aggregate syntax: 
query I rowsort label-3776
SELECT - - MIN( + + 94 ) + + 69 + + 6 AS col2
----
169

skipif mysql # not compatible
query I rowsort label-3776
SELECT - - MIN ( + + 94 ) + + 69 + + 6 AS col2
----
169

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3777
SELECT 53 DIV - 96 + - 72 + COUNT( * ) - + COALESCE ( 64, MAX( ALL + + CASE - - 79 WHEN + 68 + + 54 * - 9 THEN NULL ELSE + 90 END ) * 29 ) AS col1, + 96 AS col0
----
-135
96

skipif mysql # not compatible
query II rowsort label-3777
SELECT 53 / - 96 + - 72 + COUNT ( * ) - + COALESCE ( 64, MAX ( ALL + + CASE - - 79 WHEN + 68 + + 54 * - 9 THEN NULL ELSE + 90 END ) * 29 ) AS col1, + 96 AS col0
----
-135
96

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

skipif mysql # not compatible
query I rowsort label-3778
SELECT DISTINCT + + CAST ( - 22 AS INTEGER ) * - - COUNT ( * )
----
-22

query I rowsort
SELECT + ( - 29 ) + + 4 - - 0
----
-25

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

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

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

skipif mysql # not compatible
query I rowsort label-3781
SELECT - CAST ( NULL AS INTEGER ) * ( + + 24 ) + 88
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3782
SELECT DISTINCT + + 78 * + 64 * COUNT( * ) - - COUNT( 12 ) col1
----
4993

skipif mysql # not compatible
query I rowsort label-3782
SELECT DISTINCT + + 78 * + 64 * COUNT ( * ) - - COUNT ( 12 ) col1
----
4993

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3783
SELECT DISTINCT + + 64 AS col2, + 15 * + ( + 25 ) + SUM( ALL - + CAST( NULL AS SIGNED ) )
----
64
NULL

skipif mysql # not compatible
query II rowsort label-3783
SELECT DISTINCT + + 64 AS col2, + 15 * + ( + 25 ) + SUM ( ALL - + CAST ( NULL AS INTEGER ) )
----
64
NULL

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

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

query I rowsort
SELECT ALL + COALESCE ( - 79, - 47 ) AS col1
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3786
SELECT + - CAST( + - 71 AS SIGNED ) col1
----
71

skipif mysql # not compatible
query I rowsort label-3786
SELECT + - CAST ( + - 71 AS INTEGER ) col1
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3787
SELECT + COUNT( * ) * - 65 * + + MIN( DISTINCT ( - 89 ) ) + + 83 + + CAST( + CASE 73 WHEN 12 THEN + 97 + - 37 + + - 52 + - 0 * 52 WHEN + 43 * + - AVG ( COALESCE ( - - ( - + 41 ), 78 ) ) THEN NULL END AS SIGNED ) + - 27
----
NULL

skipif mysql # not compatible
query I rowsort label-3787
SELECT + COUNT ( * ) * - 65 * + + MIN ( DISTINCT ( - 89 ) ) + + 83 + + CAST ( + CASE 73 WHEN 12 THEN + 97 + - 37 + + - 52 + - 0 * 52 WHEN + 43 * + - AVG ( COALESCE ( - - ( - + 41 ), 78 ) ) THEN NULL END AS INTEGER ) + - 27
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3788
SELECT DISTINCT - 13 * + COUNT( * ) AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-3788
SELECT DISTINCT - 13 * + COUNT ( * ) AS col2
----
-13

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

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

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

skipif mysql # not compatible
query I rowsort label-3790
SELECT ALL COUNT ( DISTINCT + - 11 ) AS col1
----
1

query I rowsort
SELECT + - 75 + 80
----
5

query I rowsort
SELECT DISTINCT 40 * - 94 * - + 44 col1
----
165440

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3793
SELECT - CASE + 0 WHEN - CAST( 71 AS DECIMAL ) THEN - CAST( 12 AS DECIMAL ) * + CAST( NULL AS SIGNED ) * + + 41 + 22 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3793
SELECT - CASE + 0 WHEN - CAST ( 71 AS REAL ) THEN - CAST ( 12 AS REAL ) * + CAST ( NULL AS INTEGER ) * + + 41 + 22 ELSE NULL END
----
NULL

query I rowsort
SELECT + 57 + - 76 + - + 62 AS col1
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-3795
SELECT + 34 DIV - - 18
----
1

skipif mysql # not compatible
query I rowsort label-3795
SELECT + 34 / - - 18
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3796
SELECT - 39 + - 60 - - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3796
SELECT - 39 + - 60 - - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3797
SELECT DISTINCT 63 + - - 28 DIV 13 AS col2
----
65

skipif mysql # not compatible
query I rowsort label-3797
SELECT DISTINCT 63 + - - 28 / 13 AS col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3798
SELECT + NULLIF ( - + COUNT( * ), + - 81 * - 42 ) + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-3798
SELECT + NULLIF ( - + COUNT ( * ), + - 81 * - 42 ) + COUNT ( * )
----
0

query I rowsort
SELECT DISTINCT + 65 * + - 78 * + 9
----
-45630

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3801
SELECT - 50 + - CASE + NULLIF ( + + 40, - 84 * + 31 / + 14 + + 38 ) WHEN - - COUNT( * ) THEN NULL ELSE - 55 - - - MIN( - 34 ) END + NULLIF ( + - 5, - 27 - - 36 ) + + - 73 * - CASE WHEN + 74 >= NULL THEN + 97 - 28 END / 12 * - ( 78 ) + + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-3801
SELECT - 50 + - CASE + NULLIF ( + + 40, - 84 * + 31 / + 14 + + 38 ) WHEN - - COUNT ( * ) THEN NULL ELSE - 55 - - - MIN ( - 34 ) END + NULLIF ( + - 5, - 27 - - 36 ) + + - 73 * - CASE WHEN + 74 >= NULL THEN + 97 - 28 END / 12 * - ( 78 ) + + 90
----
NULL

query II rowsort
SELECT ALL - 2 * + 55 AS col2, - 49 AS col2
----
-110
-49

query II rowsort
SELECT DISTINCT - 93 * + - 71, 62 * - 92 * 58 col2
----
6603
-330832

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

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

query I rowsort
SELECT - + 97 * + + 72 + - 28
----
-7012

query I rowsort
SELECT ALL + 91 * - - 80 * - 34
----
-247520

query I rowsort
SELECT + COALESCE ( 57, - + 83 * - - 92 * - 12 + - 18 )
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3808
SELECT + - COALESCE ( 45, + CASE - CASE - - 86 WHEN - 39 THEN + 86 + 53 ELSE + - 25 * 59 END WHEN + ( + CAST( COUNT( DISTINCT 50 ) AS SIGNED ) ) THEN + + COUNT( * ) * + 46 END )
----
-45

skipif mysql # not compatible
query I rowsort label-3808
SELECT + - COALESCE ( 45, + CASE - CASE - - 86 WHEN - 39 THEN + 86 + 53 ELSE + - 25 * 59 END WHEN + ( + CAST ( COUNT ( DISTINCT 50 ) AS INTEGER ) ) THEN + + COUNT ( * ) * + 46 END )
----
-45

query II rowsort
SELECT 47 * - ( - 21 ) AS col1, + 77 + 55
----
987
132

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3810
SELECT DISTINCT - 20 * + COUNT( * ) DIV + 69 + + COUNT( + 66 ) * - COUNT( ALL + 95 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3810
SELECT DISTINCT - 20 * + COUNT ( * ) / + 69 + + COUNT ( + 66 ) * - COUNT ( ALL + 95 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3811
SELECT ALL + CAST( + COUNT( * ) AS SIGNED ) * + COUNT( * ) * CAST( + + 96 AS SIGNED ) * - - 34 + 17
----
3281

skipif mysql # not compatible
query I rowsort label-3811
SELECT ALL + CAST ( + COUNT ( * ) AS INTEGER ) * + COUNT ( * ) * CAST ( + + 96 AS INTEGER ) * - - 34 + 17
----
3281

onlyif mysql # aggregate syntax: 
query I rowsort label-3812
SELECT 12 * COUNT( * ) + - + 70
----
-58

skipif mysql # not compatible
query I rowsort label-3812
SELECT 12 * COUNT ( * ) + - + 70
----
-58

query I rowsort
SELECT DISTINCT - 84 * 47 + + 56 * - 18 AS col1
----
-4956

onlyif mysql # aggregate syntax: 
query I rowsort label-3814
SELECT + NULLIF ( - COALESCE ( 42, - COALESCE ( - 3, - + 81 * + - 28 * 49 ), + 58 ), + COUNT( * ) * 57 )
----
-42

skipif mysql # not compatible
query I rowsort label-3814
SELECT + NULLIF ( - COALESCE ( 42, - COALESCE ( - 3, - + 81 * + - 28 * 49 ), + 58 ), + COUNT ( * ) * 57 )
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3815
SELECT DISTINCT - + SUM( - - 20 ) + - 90 - - ( 93 ) col1
----
-17

skipif mysql # not compatible
query I rowsort label-3815
SELECT DISTINCT - + SUM ( - - 20 ) + - 90 - - ( 93 ) col1
----
-17

query I rowsort
SELECT DISTINCT + 82 * + 12 col0
----
984

onlyif mysql # aggregate syntax: 
query I rowsort label-3817
SELECT DISTINCT - COUNT( * ) + - 8 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-3817
SELECT DISTINCT - COUNT ( * ) + - 8 AS col0
----
-9

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3818
SELECT ALL - COUNT( ALL + CAST( - 25 AS DECIMAL ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3818
SELECT ALL - COUNT ( ALL + CAST ( - 25 AS REAL ) ) AS col0
----
-1

query I rowsort
SELECT DISTINCT 23 + - 50 col0
----
-27

query II rowsort
SELECT 22 * - + 53 * - 64, NULLIF ( - 21, + - 20 * 76 ) AS col0
----
74624
-21

query I rowsort
SELECT 25 + - 9 + + - 78 AS col2
----
-62

query II rowsort
SELECT ALL 82 AS col1, - 49
----
82
-49

query I rowsort
SELECT ALL 22 + + 59 AS col0
----
81

query I rowsort
SELECT ALL 81 + + + 80 AS col2
----
161

query I rowsort
SELECT DISTINCT 39 * - 61 * + - 98 AS col0
----
233142

query I rowsort
SELECT 60 * + + 22 AS col2
----
1320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3827
SELECT ALL + 6 + CAST( 96 AS SIGNED ) AS col2
----
102

skipif mysql # not compatible
query I rowsort label-3827
SELECT ALL + 6 + CAST ( 96 AS INTEGER ) AS col2
----
102

query I rowsort
SELECT 47 + 63
----
110

query I rowsort
SELECT 50 * - 37 col2
----
-1850

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3830
SELECT ALL 38 * - CASE + 93 WHEN MIN( - 46 ) + 31 THEN + 39 ELSE + COUNT( * ) + + CAST( NULL AS SIGNED ) * + + 72 END * - 27
----
NULL

skipif mysql # not compatible
query I rowsort label-3830
SELECT ALL 38 * - CASE + 93 WHEN MIN ( - 46 ) + 31 THEN + 39 ELSE + COUNT ( * ) + + CAST ( NULL AS INTEGER ) * + + 72 END * - 27
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3831
SELECT MIN( - - 54 ) + + NULLIF ( + 94, 34 ) AS col2
----
148

skipif mysql # not compatible
query I rowsort label-3831
SELECT MIN ( - - 54 ) + + NULLIF ( + 94, 34 ) AS col2
----
148

query I rowsort
SELECT 66 + - 70
----
-4

query I rowsort
SELECT ALL 32 - - - 66
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3834
SELECT ALL COUNT( * ) DIV 16 * - - 66 * 79
----
0

skipif mysql # not compatible
query I rowsort label-3834
SELECT ALL COUNT ( * ) / 16 * - - 66 * 79
----
0

query I rowsort
SELECT CASE - 72 WHEN - 6 THEN - 13 * + 90 WHEN 66 * + + 78 - 71 THEN NULL WHEN 93 THEN NULL END - 20 AS col1
----
NULL

query II rowsort
SELECT - + 8, - 20 AS col1
----
-8
-20

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3837
SELECT ALL + COUNT( DISTINCT 60 ) * + + COUNT( + 12 ) * CAST( NULL AS DECIMAL ) * + + 32 * 49 + - MAX( - 40 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3837
SELECT ALL + COUNT ( DISTINCT 60 ) * + + COUNT ( + 12 ) * CAST ( NULL AS REAL ) * + + 32 * 49 + - MAX ( - 40 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3838
SELECT - 68 + - + ( + 61 ) + - COUNT( * ) + - CASE 95 WHEN - 24 / 32 + 23 / - ( - COUNT( * ) ) THEN NULL WHEN - 91 + - COALESCE ( + + 22, 18 ) + + CAST( MIN( ALL - 18 ) AS SIGNED ) * + 31 THEN + 18 - - - 15 WHEN 66 * NULLIF ( COALESCE ( 12, - COUNT( * ) ), - + 80 ) THEN NULL ELSE 9 * - 93 END * - 94 AS col2
----
-78808

skipif mysql # not compatible
query I rowsort label-3838
SELECT - 68 + - + ( + 61 ) + - COUNT ( * ) + - CASE 95 WHEN - 24 / 32 + 23 / - ( - COUNT ( * ) ) THEN NULL WHEN - 91 + - COALESCE ( + + 22, 18 ) + + CAST ( MIN ( ALL - 18 ) AS INTEGER ) * + 31 THEN + 18 - - - 15 WHEN 66 * NULLIF ( COALESCE ( 12, - COUNT ( * ) ), - + 80 ) THEN NULL ELSE 9 * - 93 END * - 94 AS col2
----
-78808

query II rowsort
SELECT ALL - 29, + 55 col2
----
-29
55

query I rowsort
SELECT 90 * - 71 + - CASE + 49 WHEN + 32 * 53 THEN NULL ELSE 95 END
----
-6485

query II rowsort
SELECT 62 * + - ( - 88 ) * - 15 + - 90 - - 57 AS col0, - 74 col0
----
-81873
-74

query I rowsort
SELECT ALL - 79 * + + 62
----
-4898

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3843
SELECT - COUNT( * ) + CASE - CAST( NULL AS SIGNED ) WHEN - SUM( DISTINCT - - 78 ) THEN + + 92 / + - 95 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3843
SELECT - COUNT ( * ) + CASE - CAST ( NULL AS INTEGER ) WHEN - SUM ( DISTINCT - - 78 ) THEN + + 92 / + - 95 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3844
SELECT + CASE COUNT( - 11 ) WHEN - 34 + + 92 * - NULLIF ( + 71, - CAST( NULL AS DECIMAL ) ) * 56 + + 21 THEN NULL WHEN + 7 THEN + 78 + - 99 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3844
SELECT + CASE COUNT ( - 11 ) WHEN - 34 + + 92 * - NULLIF ( + 71, - CAST ( NULL AS REAL ) ) * 56 + + 21 THEN NULL WHEN + 7 THEN + 78 + - 99 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3845
SELECT + NULLIF ( + COUNT( * ), - 52 ) * + COUNT( * ) * - CAST( NULL AS SIGNED ) / + 45
----
NULL

skipif mysql # not compatible
query I rowsort label-3845
SELECT + NULLIF ( + COUNT ( * ), - 52 ) * + COUNT ( * ) * - CAST ( NULL AS INTEGER ) / + 45
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3846
SELECT ALL - + COUNT( * ) col1, 3 + + 6
----
-1
9

skipif mysql # not compatible
query II rowsort label-3846
SELECT ALL - + COUNT ( * ) col1, 3 + + 6
----
-1
9

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3847
SELECT ALL - 38 + + - CAST( + 93 AS SIGNED ) DIV - 70
----
-37

skipif mysql # not compatible
query I rowsort label-3847
SELECT ALL - 38 + + - CAST ( + 93 AS INTEGER ) / - 70
----
-37

query I rowsort
SELECT DISTINCT 49 + + + 36 col1
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3849
SELECT ALL - 21, COUNT( * ) DIV - 6 + - CASE + + 40 WHEN + 9 * + + 29 + + ( + 38 ) THEN NULL ELSE COALESCE ( 80, 77 * 7 ) DIV + COALESCE ( MAX( ALL + - 74 ), CAST( + - 81 AS SIGNED ) * 73 * - 93 * - AVG ( + - 92 ), 35, - ( - + 17 ) DIV - 77 ) END + - 69 * + + COUNT( * ) * + 42 * + 47 AS col0
----
-21
-136205

skipif mysql # not compatible
query II rowsort label-3849
SELECT ALL - 21, COUNT ( * ) / - 6 + - CASE + + 40 WHEN + 9 * + + 29 + + ( + 38 ) THEN NULL ELSE COALESCE ( 80, 77 * 7 ) / + COALESCE ( MAX ( ALL + - 74 ), CAST ( + - 81 AS INTEGER ) * 73 * - 93 * - AVG ( + - 92 ), 35, - ( - + 17 ) / - 77 ) END + - 69 * + + COUNT ( * ) * + 42 * + 47 AS col0
----
-21
-136205

onlyif mysql # aggregate syntax: 
query I rowsort label-3850
SELECT DISTINCT 62 + 43 * - COUNT( * ) * 21 AS col0
----
-841

skipif mysql # not compatible
query I rowsort label-3850
SELECT DISTINCT 62 + 43 * - COUNT ( * ) * 21 AS col0
----
-841

query I rowsort
SELECT - 11 + - - 27
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3852
SELECT - 50 * COALESCE ( + COALESCE ( - - 17, + 2 - - 36 ), 11 + 10 + - - 60 + + COUNT( * ) * 69, - - 42 )
----
-850

skipif mysql # not compatible
query I rowsort label-3852
SELECT - 50 * COALESCE ( + COALESCE ( - - 17, + 2 - - 36 ), 11 + 10 + - - 60 + + COUNT ( * ) * 69, - - 42 )
----
-850

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3853
SELECT ALL + - 93 / + + CASE - + 26 WHEN + 93 + - 87 THEN - CASE + 97 WHEN - 30 / COUNT( * ) THEN 64 WHEN - COALESCE ( + NULLIF ( + 56, + COUNT( * ) ), + 66 + + 98, 60 ) THEN NULL ELSE NULL END WHEN - + 21 - + CASE - + CASE 95 WHEN - 12 THEN NULL WHEN + - CAST( NULL AS SIGNED ) THEN NULL ELSE - + 24 END WHEN - 34 - + COUNT( * ) THEN + + 25 WHEN + 75 THEN NULL END * - SUM( ALL 14 ) THEN + 19 / - SUM( DISTINCT 33 ) + - 88 / + 14 WHEN + COUNT( * ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3853
SELECT ALL + - 93 / + + CASE - + 26 WHEN + 93 + - 87 THEN - CASE + 97 WHEN - 30 / COUNT ( * ) THEN 64 WHEN - COALESCE ( + NULLIF ( + 56, + COUNT ( * ) ), + 66 + + 98, 60 ) THEN NULL ELSE NULL END WHEN - + 21 - + CASE - + CASE 95 WHEN - 12 THEN NULL WHEN + - CAST ( NULL AS INTEGER ) THEN NULL ELSE - + 24 END WHEN - 34 - + COUNT ( * ) THEN + + 25 WHEN + 75 THEN NULL END * - SUM ( ALL 14 ) THEN + 19 / - SUM ( DISTINCT 33 ) + - 88 / + 14 WHEN + COUNT ( * ) THEN NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3854
SELECT 35 DIV + - 90 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3854
SELECT 35 / + - 90 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3855
SELECT + 54 * - + 8 + + COUNT( * )
----
-431

skipif mysql # not compatible
query I rowsort label-3855
SELECT + 54 * - + 8 + + COUNT ( * )
----
-431

query I rowsort
SELECT ALL + 83 * + 54 col1
----
4482

onlyif mysql # aggregate syntax: 
query I rowsort label-3857
SELECT DISTINCT - 38 + + COUNT( * ) + + + ( - + ( - 13 ) ) col2
----
-24

skipif mysql # not compatible
query I rowsort label-3857
SELECT DISTINCT - 38 + + COUNT ( * ) + + + ( - + ( - 13 ) ) col2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3858
SELECT COUNT( + 96 ) + - 99 + 0 + + 52 * + - COUNT( * ) AS col2
----
-150

skipif mysql # not compatible
query I rowsort label-3858
SELECT COUNT ( + 96 ) + - 99 + 0 + + 52 * + - COUNT ( * ) AS col2
----
-150

onlyif mysql # DIV for integer division: 
query I rowsort label-3859
SELECT ALL + 74 - + 19 - - + 2 + - - 40 + + 33 DIV - 86 AS col1
----
97

skipif mysql # not compatible
query I rowsort label-3859
SELECT ALL + 74 - + 19 - - + 2 + - - 40 + + 33 / - 86 AS col1
----
97

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3861
SELECT 47 * + - COUNT( * ) DIV - 51
----
0

skipif mysql # not compatible
query I rowsort label-3861
SELECT 47 * + - COUNT ( * ) / - 51
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3862
SELECT DISTINCT MAX( DISTINCT + - 32 ), CAST( + + 28 AS SIGNED ) * - 64 + + 82 + 65 * ( + - 24 ) AS col2
----
-32
-3270

skipif mysql # not compatible
query II rowsort label-3862
SELECT DISTINCT MAX ( DISTINCT + - 32 ), CAST ( + + 28 AS INTEGER ) * - 64 + + 82 + 65 * ( + - 24 ) AS col2
----
-32
-3270

onlyif mysql # aggregate syntax: 
query II rowsort label-3863
SELECT ALL MAX( DISTINCT 68 ) AS col2, - 97
----
68
-97

skipif mysql # not compatible
query II rowsort label-3863
SELECT ALL MAX ( DISTINCT 68 ) AS col2, - 97
----
68
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3864
SELECT ALL MIN( - 7 ) * - - 24 + 49 * + COUNT( * ) * 53
----
2429

skipif mysql # not compatible
query I rowsort label-3864
SELECT ALL MIN ( - 7 ) * - - 24 + 49 * + COUNT ( * ) * 53
----
2429

query I rowsort
SELECT - ( - 26 ) + - 2 AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3866
SELECT ALL MAX( DISTINCT 23 ) col0
----
23

skipif mysql # not compatible
query I rowsort label-3866
SELECT ALL MAX ( DISTINCT 23 ) col0
----
23

query I rowsort
SELECT DISTINCT + 53 * + + 52 + + 77 AS col2
----
2833

query I rowsort
SELECT DISTINCT + 42 * + + 87
----
3654

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

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

query II rowsort
SELECT + + 70 * - - 93 AS col1, - 45
----
6510
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3871
SELECT - 54 * + CAST( - COUNT( ALL 8 ) AS SIGNED ) * + 65 * + - 25 + MIN( DISTINCT 67 ) + CASE + 83 WHEN 5 THEN - MAX( + 55 ) DIV - 86 DIV - + 3 + + 19 + - 89 - - CAST( - SUM( 12 ) AS SIGNED ) + - 82 * - 81 ELSE + 12 END
----
-87671

skipif mysql # not compatible
query I rowsort label-3871
SELECT - 54 * + CAST ( - COUNT ( ALL 8 ) AS INTEGER ) * + 65 * + - 25 + MIN ( DISTINCT 67 ) + CASE + 83 WHEN 5 THEN - MAX ( + 55 ) / - 86 / - + 3 + + 19 + - 89 - - CAST ( - SUM ( 12 ) AS INTEGER ) + - 82 * - 81 ELSE + 12 END
----
-87671

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3872
SELECT ALL - ( + + 16 ) * + COUNT( * ) + 48 + - + 5 DIV - 9 * 98 AS col0
----
32

skipif mysql # not compatible
query I rowsort label-3872
SELECT ALL - ( + + 16 ) * + COUNT ( * ) + 48 + - + 5 / - 9 * 98 AS col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3873
SELECT DISTINCT - + 27 * + - 68 * + 98 + + - SUM( DISTINCT - 40 ) col0
----
179968

skipif mysql # not compatible
query I rowsort label-3873
SELECT DISTINCT - + 27 * + - 68 * + 98 + + - SUM ( DISTINCT - 40 ) col0
----
179968

query I rowsort
SELECT ALL + - 61 * + + 93 * + 84 + 71
----
-476461

query I rowsort
SELECT + 68 * + 91 AS col2
----
6188

onlyif mysql # DIV for integer division: 
query I rowsort label-3876
SELECT ALL 38 DIV + 98 + 16 AS col2
----
16

skipif mysql # not compatible
query I rowsort label-3876
SELECT ALL 38 / + 98 + 16 AS col2
----
16

query I rowsort
SELECT ALL 83 * - 53 + + NULLIF ( - - 24, - 76 ) + + 0
----
-4375

onlyif mysql # aggregate syntax: 
query I rowsort label-3878
SELECT + 81 * + MIN( DISTINCT - - 2 ) + + - 77 AS col0
----
85

skipif mysql # not compatible
query I rowsort label-3878
SELECT + 81 * + MIN ( DISTINCT - - 2 ) + + - 77 AS col0
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-3879
SELECT DISTINCT 56 DIV - - 48 + + + 85
----
86

skipif mysql # not compatible
query I rowsort label-3879
SELECT DISTINCT 56 / - - 48 + + + 85
----
86

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3880
SELECT DISTINCT + - 7 * + - CAST( NULL AS DECIMAL ) + - 69 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3880
SELECT DISTINCT + - 7 * + - CAST ( NULL AS REAL ) + - 69 AS col1
----
NULL

query I rowsort
SELECT ALL + 80 * - 47 + - 43 * + - 35 * + 64
----
92560

onlyif mysql # aggregate syntax: 
query I rowsort label-3882
SELECT + 63 - + MIN( DISTINCT - + 32 ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-3882
SELECT + 63 - + MIN ( DISTINCT - + 32 ) AS col1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3883
SELECT + 25 * 30 - 49 + + NULLIF ( - - COUNT( * ), 22 ) * - 63
----
638

skipif mysql # not compatible
query I rowsort label-3883
SELECT + 25 * 30 - 49 + + NULLIF ( - - COUNT ( * ), 22 ) * - 63
----
638

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3884
SELECT ALL COUNT( * ) * + 73 * - - 63 - - - 39 + 87 + - 38 * + 11 * - + COUNT( DISTINCT CAST( 6 AS DECIMAL ) ) * - MAX( DISTINCT 30 ) * + 15 - - 56 * + 17 - - 10 * + - 28 * + 13
----
-186141

skipif mysql # not compatible
query I rowsort label-3884
SELECT ALL COUNT ( * ) * + 73 * - - 63 - - - 39 + 87 + - 38 * + 11 * - + COUNT ( DISTINCT CAST ( 6 AS REAL ) ) * - MAX ( DISTINCT 30 ) * + 15 - - 56 * + 17 - - 10 * + - 28 * + 13
----
-186141

query I rowsort
SELECT + 27 + + + 78 * - 75 - 4 AS col0
----
-5827

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

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

query I rowsort
SELECT + ( + - 61 ) + 18 AS col0
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-3888
SELECT - 9 DIV + + 50 * 27 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3888
SELECT - 9 / + + 50 * 27 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3889
SELECT + 21 * 51 * COUNT( * )
----
1071

skipif mysql # not compatible
query I rowsort label-3889
SELECT + 21 * 51 * COUNT ( * )
----
1071

query I rowsort
SELECT ALL - 43 * - 11
----
473

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3891
SELECT ALL CASE ( CAST( - - 29 AS SIGNED ) ) WHEN + 83 THEN + - 71 + - 15 - + 9 END AS col0, - 62 AS col2
----
NULL
-62

skipif mysql # not compatible
query II rowsort label-3891
SELECT ALL CASE ( CAST ( - - 29 AS INTEGER ) ) WHEN + 83 THEN + - 71 + - 15 - + 9 END AS col0, - 62 AS col2
----
NULL
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-3892
SELECT DISTINCT - 34 * - ( - CASE - COALESCE ( COUNT( * ), COUNT( * ), 94 / 95 ) WHEN 4 THEN + - 97 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3892
SELECT DISTINCT - 34 * - ( - CASE - COALESCE ( COUNT ( * ), COUNT ( * ), 94 / 95 ) WHEN 4 THEN + - 97 END ) AS col0
----
NULL

query I rowsort
SELECT ALL ( - ( 41 ) ) AS col0
----
-41

query II rowsort
SELECT - 14 col1, 83
----
-14
83

query I rowsort
SELECT ALL - 44 * - - 36 AS col1
----
-1584

query I rowsort
SELECT ALL + 89 * 87 * + 4
----
30972

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3897
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2, COUNT( * ) + + COUNT( * ) * + 73 * CASE 26 WHEN - + 91 THEN + 24 * - - COUNT( * ) * + 85 - - - COUNT( * ) * - - 55 WHEN - + 17 THEN + 90 ELSE ( 62 ) * + COUNT( * ) * - - 73 + 94 / + CAST( NULL AS DECIMAL ) + + 77 - - ( 89 ) * - 20 * - 99 * - + 26 + 9 + - + 67 END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3897
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2, COUNT ( * ) + + COUNT ( * ) * + 73 * CASE 26 WHEN - + 91 THEN + 24 * - - COUNT ( * ) * + 85 - - - COUNT ( * ) * - - 55 WHEN - + 17 THEN + 90 ELSE ( 62 ) * + COUNT ( * ) * - - 73 + 94 / + CAST ( NULL AS REAL ) + + 77 - - ( 89 ) * - 20 * - 99 * - + 26 + 9 + - + 67 END
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3898
SELECT DISTINCT + + 69 * + COUNT( ALL 79 ), + NULLIF ( - 77, MIN( DISTINCT 29 ) ) AS col2
----
69
-77

skipif mysql # not compatible
query II rowsort label-3898
SELECT DISTINCT + + 69 * + COUNT ( ALL 79 ), + NULLIF ( - 77, MIN ( DISTINCT 29 ) ) AS col2
----
69
-77

query I rowsort
SELECT - - COALESCE ( + 14, + + ( 56 ) ) + + + 51 - - 65
----
130

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3900
SELECT - - ( - 7 ) - - CAST( NULL AS SIGNED ) AS col0, 58 - + 68 AS col0
----
NULL
-10

skipif mysql # not compatible
query II rowsort label-3900
SELECT - - ( - 7 ) - - CAST ( NULL AS INTEGER ) AS col0, 58 - + 68 AS col0
----
NULL
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3901
SELECT - - 85 * - CASE WHEN ( + + 25 IS NOT NULL ) THEN - COUNT( * ) * + 62 + - ( - 16 ) * + COUNT( * ) END
----
3910

skipif mysql # not compatible
query I rowsort label-3901
SELECT - - 85 * - CASE WHEN ( + + 25 IS NOT NULL ) THEN - COUNT ( * ) * + 62 + - ( - 16 ) * + COUNT ( * ) END
----
3910

query I rowsort
SELECT ALL + + 19 + - 57 - + 52
----
-90

query I rowsort
SELECT - + 74 + 45 AS col2
----
-29

query II rowsort
SELECT - 78, 50 + + - 73 AS col2
----
-78
-23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3905
SELECT ALL 89 AS col2, 95 - - 92 + + + CAST( + + ( - 85 ) AS SIGNED )
----
89
102

skipif mysql # not compatible
query II rowsort label-3905
SELECT ALL 89 AS col2, 95 - - 92 + + + CAST ( + + ( - 85 ) AS INTEGER )
----
89
102

query I rowsort
SELECT - - 99 + - 0
----
99

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

skipif mysql # not compatible
query II rowsort label-3907
SELECT 10, CAST ( NULL AS INTEGER ) AS col1
----
10
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3908
SELECT ALL - 88 + - - 51 + - CASE + COUNT( + 14 ) WHEN + + 30 / - 62 * + 32 + - 81 THEN + CAST( NULL AS SIGNED ) - + 56 + + 32 / + + 63 WHEN 16 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3908
SELECT ALL - 88 + - - 51 + - CASE + COUNT ( + 14 ) WHEN + + 30 / - 62 * + 32 + - 81 THEN + CAST ( NULL AS INTEGER ) - + 56 + + 32 / + + 63 WHEN 16 THEN NULL ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - ( + - 6 ) + - 83 * - 12 + - 61
----
941

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3910
SELECT ALL + - 27 + - ( - - COUNT( * ) ) AS col2, - 66 + - + CAST( NULL AS SIGNED )
----
-28
NULL

skipif mysql # not compatible
query II rowsort label-3910
SELECT ALL + - 27 + - ( - - COUNT ( * ) ) AS col2, - 66 + - + CAST ( NULL AS INTEGER )
----
-28
NULL

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

query I rowsort
SELECT ALL 83 + + 63
----
146

query I rowsort
SELECT ALL - - 14 + - - 37 AS col0
----
51

query I rowsort
SELECT + - 58 + - 90 AS col1
----
-148

query I rowsort
SELECT ALL - 47 * - 4 + - - 66
----
254

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3916
SELECT ALL - COUNT( * ) DIV + + NULLIF ( + + 30, MIN( 0 ) DIV COUNT( * ) * - 76 ) + + COUNT( * ) + - 77 + + 31 + + - 17 + + ( - CAST( + - 55 AS SIGNED ) ) * 35 * 9 + + COUNT( * )
----
17264

skipif mysql # not compatible
query I rowsort label-3916
SELECT ALL - COUNT ( * ) / + + NULLIF ( + + 30, MIN ( 0 ) / COUNT ( * ) * - 76 ) + + COUNT ( * ) + - 77 + + 31 + + - 17 + + ( - CAST ( + - 55 AS INTEGER ) ) * 35 * 9 + + COUNT ( * )
----
17264

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3918
SELECT ALL - COUNT( * ) * - - CASE + 80 WHEN 9 * 92 THEN NULL WHEN - 73 THEN + 58 ELSE COUNT( * ) * - 64 + - COUNT( * ) + + 80 + - + MIN( ALL + 58 ) END + - + 51
----
-8

skipif mysql # not compatible
query I rowsort label-3918
SELECT ALL - COUNT ( * ) * - - CASE + 80 WHEN 9 * 92 THEN NULL WHEN - 73 THEN + 58 ELSE COUNT ( * ) * - 64 + - COUNT ( * ) + + 80 + - + MIN ( ALL + 58 ) END + - + 51
----
-8

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3921
SELECT ALL 39 DIV - 19 + + ( 76 )
----
74

skipif mysql # not compatible
query I rowsort label-3921
SELECT ALL 39 / - 19 + + ( 76 )
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3922
SELECT DISTINCT - MIN( + 27 ) DIV + 11 - - - 11 col2
----
-13

skipif mysql # not compatible
query I rowsort label-3922
SELECT DISTINCT - MIN ( + 27 ) / + 11 - - - 11 col2
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-3923
SELECT ALL 99 DIV 2 AS col1
----
49

skipif mysql # not compatible
query I rowsort label-3923
SELECT ALL 99 / 2 AS col1
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3924
SELECT DISTINCT 2 * + 22 - + COUNT( * )
----
43

skipif mysql # not compatible
query I rowsort label-3924
SELECT DISTINCT 2 * + 22 - + COUNT ( * )
----
43

query I rowsort
SELECT + 40 + + - ( 88 ) + - 3 * - - 52
----
-204

query I rowsort
SELECT ALL 51 * 81 * 34 AS col1
----
140454

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3927
SELECT + 57 * + CAST( - - 57 AS SIGNED ) col0
----
3249

skipif mysql # not compatible
query I rowsort label-3927
SELECT + 57 * + CAST ( - - 57 AS INTEGER ) col0
----
3249

onlyif mysql # DIV for integer division: 
query II rowsort label-3928
SELECT ALL + 15, 91 DIV + 59 AS col0
----
15
1

skipif mysql # not compatible
query II rowsort label-3928
SELECT ALL + 15, 91 / + 59 AS col0
----
15
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3929
SELECT + COALESCE ( - - 4, - 39, - - CAST( NULL AS SIGNED ) * ( + + COALESCE ( - 56, - CAST( NULL AS SIGNED ) + - 54, + - MAX( ALL + 15 ) * - ( - 4 ) * + 28 * - + 74 ) ) * 36 * 12 ) * ( - + 98 ) DIV + - 67 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-3929
SELECT + COALESCE ( - - 4, - 39, - - CAST ( NULL AS INTEGER ) * ( + + COALESCE ( - 56, - CAST ( NULL AS INTEGER ) + - 54, + - MAX ( ALL + 15 ) * - ( - 4 ) * + 28 * - + 74 ) ) * 36 * 12 ) * ( - + 98 ) / + - 67 AS col2
----
5

query II rowsort
SELECT 57 * + ( - 29 ) + - 20 * + 31 + + 63, 89 + + 2 AS col0
----
-2210
91

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3931
SELECT - 86 + + CAST( 46 AS SIGNED ) + + + 20 DIV 9 AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-3931
SELECT - 86 + + CAST ( 46 AS INTEGER ) + + + 20 / 9 AS col2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-3932
SELECT ALL MIN( 29 ) * - 56 AS col2
----
-1624

skipif mysql # not compatible
query I rowsort label-3932
SELECT ALL MIN ( 29 ) * - 56 AS col2
----
-1624

query I rowsort
SELECT + 97 * + 85 * 67 col2
----
552415

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3934
SELECT ALL 3 * - + CASE WHEN 34 <= NULL THEN NULL ELSE + COUNT( * ) DIV - 30 + + 49 END AS col1, COUNT( * ) + + - 1
----
-147
0

skipif mysql # not compatible
query II rowsort label-3934
SELECT ALL 3 * - + CASE WHEN 34 <= NULL THEN NULL ELSE + COUNT ( * ) / - 30 + + 49 END AS col1, COUNT ( * ) + + - 1
----
-147
0

query I rowsort
SELECT DISTINCT 21 * + 80
----
1680

query I rowsort
SELECT 1 + - - 6 + - 9 * 46
----
-407

query II rowsort
SELECT 69 AS col1, 13 - - + 85 + - - 73 - - + 12 AS col0
----
69
183

query II rowsort
SELECT 4 AS col0, 31 - 65
----
4
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-3939
SELECT ALL COUNT( * ) + + 44 AS col0
----
45

skipif mysql # not compatible
query I rowsort label-3939
SELECT ALL COUNT ( * ) + + 44 AS col0
----
45

query I rowsort
SELECT - 87 * 70 AS col0
----
-6090

query II rowsort
SELECT ALL 62 AS col2, + 86
----
62
86

query I rowsort
SELECT ALL - 59 * 97 col0
----
-5723

onlyif mysql # aggregate syntax: 
query I rowsort label-3943
SELECT NULLIF ( - COUNT( * ), 19 )
----
-1

skipif mysql # not compatible
query I rowsort label-3943
SELECT NULLIF ( - COUNT ( * ), 19 )
----
-1

query I rowsort
SELECT ALL 84 + 97 * - 5
----
-401

query I rowsort
SELECT ALL - 42 + 16 AS col2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-3946
SELECT + NULLIF ( 18, + - 9 * 6 + - MIN( 16 ) ) * 79 + - 23
----
1399

skipif mysql # not compatible
query I rowsort label-3946
SELECT + NULLIF ( 18, + - 9 * 6 + - MIN ( 16 ) ) * 79 + - 23
----
1399

onlyif mysql # aggregate syntax: 
query I rowsort label-3947
SELECT DISTINCT + COUNT( * ) / + - ( - + 52 ) + - 46 + - CASE + + 93 WHEN 58 THEN - - 85 + - + 8 ELSE NULL END * 43 + + 60 - + + NULLIF ( COALESCE ( CASE - 67 WHEN - 86 - COALESCE ( + 2, 94 / - 60 + + 15 ) THEN + 73 * - - ( + CASE + ( 2 ) WHEN - 78 THEN - - 40 END ) ELSE NULL END, - - COUNT( * ) + 87 + - + CASE ( 83 ) WHEN + ( - AVG ( ALL 28 ) ) * + 63 THEN NULL WHEN 27 * + 90 THEN + 47 ELSE 61 END - + NULLIF ( ( SUM( 51 ) ), 28 ) ), - MIN( ALL 55 ) ) * + 9 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3947
SELECT DISTINCT + COUNT ( * ) / + - ( - + 52 ) + - 46 + - CASE + + 93 WHEN 58 THEN - - 85 + - + 8 ELSE NULL END * 43 + + 60 - + + NULLIF ( COALESCE ( CASE - 67 WHEN - 86 - COALESCE ( + 2, 94 / - 60 + + 15 ) THEN + 73 * - - ( + CASE + ( 2 ) WHEN - 78 THEN - - 40 END ) ELSE NULL END, - - COUNT ( * ) + 87 + - + CASE ( 83 ) WHEN + ( - AVG ( ALL 28 ) ) * + 63 THEN NULL WHEN 27 * + 90 THEN + 47 ELSE 61 END - + NULLIF ( ( SUM ( 51 ) ), 28 ) ), - MIN ( ALL 55 ) ) * + 9 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3948
SELECT DISTINCT - 9 + + 96 col0, COUNT( * ) AS col0
----
87
1

skipif mysql # not compatible
query II rowsort label-3948
SELECT DISTINCT - 9 + + 96 col0, COUNT ( * ) AS col0
----
87
1

query II rowsort
SELECT DISTINCT + - 49 * 45 * - 64 * ( + 58 ) * - 91 AS col0, 17 + - ( - - ( + 85 ) ) AS col1
----
-744831360
-68

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3951
SELECT 17 * + + 21 + + COALESCE ( + - COUNT( * ), + ( - 18 ) * MAX( DISTINCT - - 68 ) ) + + 90 * - ( - - SUM( - 92 ) ) * 98
----
811796

skipif mysql # not compatible
query I rowsort label-3951
SELECT 17 * + + 21 + + COALESCE ( + - COUNT ( * ), + ( - 18 ) * MAX ( DISTINCT - - 68 ) ) + + 90 * - ( - - SUM ( - 92 ) ) * 98
----
811796

onlyif mysql # DIV for integer division: 
query I rowsort label-3952
SELECT ALL + 7 + + 1 DIV + 19 * 26 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-3952
SELECT ALL + 7 + + 1 / + 19 * 26 AS col1
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3953
SELECT - 3 * + CAST( - 84 AS SIGNED ) AS col0
----
252

skipif mysql # not compatible
query I rowsort label-3953
SELECT - 3 * + CAST ( - 84 AS INTEGER ) AS col0
----
252

query II rowsort
SELECT - 41 col2, 26 AS col0
----
-41
26

query I rowsort
SELECT 55 * + 35
----
1925

query I rowsort
SELECT + 39 * + 74
----
2886

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3957
SELECT ALL - 45 AS col2, CAST( - - 36 AS SIGNED ) AS col0
----
-45
36

skipif mysql # not compatible
query II rowsort label-3957
SELECT ALL - 45 AS col2, CAST ( - - 36 AS INTEGER ) AS col0
----
-45
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3958
SELECT ALL - + 22 col1, - COUNT( * ) + + 53 + - CAST( 2 AS SIGNED ) * + 74 AS col2
----
-22
-96

skipif mysql # not compatible
query II rowsort label-3958
SELECT ALL - + 22 col1, - COUNT ( * ) + + 53 + - CAST ( 2 AS INTEGER ) * + 74 AS col2
----
-22
-96

query I rowsort
SELECT DISTINCT 17 - - + 1 AS col1
----
18

onlyif mysql # DIV for integer division: 
query III rowsort label-3960
SELECT ALL 75 * + + 86 AS col2, 80 AS col1, - 26 DIV - NULLIF ( ( + 13 ), + 3 * - 8 * + 76 * - 26 * - 48 ) * 1 + - 66 + 13 AS col1
----
6450
80
-51

skipif mysql # not compatible
query III rowsort label-3960
SELECT ALL 75 * + + 86 AS col2, 80 AS col1, - 26 / - NULLIF ( ( + 13 ), + 3 * - 8 * + 76 * - 26 * - 48 ) * 1 + - 66 + 13 AS col1
----
6450
80
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-3961
SELECT DISTINCT - 79 * + 46 AS col0, - 54 * - COUNT( * ) AS col0
----
-3634
54

skipif mysql # not compatible
query II rowsort label-3961
SELECT DISTINCT - 79 * + 46 AS col0, - 54 * - COUNT ( * ) AS col0
----
-3634
54

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

query I rowsort
SELECT 51 + 78 AS col2
----
129

query I rowsort
SELECT 86 * 46 * + 26
----
102856

query I rowsort
SELECT 57 * 13 AS col2
----
741

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

skipif mysql # not compatible
query I rowsort label-3966
SELECT + 17 * - COUNT ( * ) + + 69 AS col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3967
SELECT MIN( DISTINCT - - 64 ) - + - COUNT( * ) + + 86 * + 54 + COUNT( * ) col0
----
4710

skipif mysql # not compatible
query I rowsort label-3967
SELECT MIN ( DISTINCT - - 64 ) - + - COUNT ( * ) + + 86 * + 54 + COUNT ( * ) col0
----
4710

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3968
SELECT ALL - COALESCE ( CAST( NULL AS SIGNED ), + + 22 + + 31 * - + 97 )
----
2985

skipif mysql # not compatible
query I rowsort label-3968
SELECT ALL - COALESCE ( CAST ( NULL AS INTEGER ), + + 22 + + 31 * - + 97 )
----
2985

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3969
SELECT ALL COUNT( ALL - + CAST( + 26 AS SIGNED ) ) * - - 13 * + + 18 AS col1
----
234

skipif mysql # not compatible
query I rowsort label-3969
SELECT ALL COUNT ( ALL - + CAST ( + 26 AS INTEGER ) ) * - - 13 * + + 18 AS col1
----
234

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

skipif mysql # not compatible
query II rowsort label-3970
SELECT COUNT ( * ) / + - 98 AS col1, - COUNT ( * ) AS col1
----
0
-1

query I rowsort
SELECT 11 * 5 AS col1
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3972
SELECT ALL COUNT( * ) + + + 8 DIV - 22 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3972
SELECT ALL COUNT ( * ) + + + 8 / - 22 AS col0
----
1

query I rowsort
SELECT + 54 * - - 26 AS col0
----
1404

query II rowsort
SELECT ALL - 71 + + 89 AS col2, 94
----
18
94

query II rowsort
SELECT 62 - 1 AS col2, 49 AS col1
----
61
49

query I rowsort
SELECT ALL - 2 * - NULLIF ( + 76, 79 ) * + + 39
----
5928

query I rowsort
SELECT - 21 * - + ( 63 ) AS col0
----
1323

onlyif mysql # aggregate syntax: 
query I rowsort label-3978
SELECT ALL 4 + CASE + 4 WHEN + + 31 * + COUNT( * ) + + 5 THEN - COALESCE ( - 45, + + 77 - + NULLIF ( + - SUM( ALL NULLIF ( + 7, - 9 / - 77 + - NULLIF ( + + 33, - - 74 / - + 37 * + 90 * 89 * 23 ) ) ), - - 24 * + 63 + + 61 ), + CASE COUNT( * ) WHEN - 48 / + 50 THEN NULL WHEN - + 64 - 58 + + 63 * 46 THEN 6 ELSE - 38 END ) - 7 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3978
SELECT ALL 4 + CASE + 4 WHEN + + 31 * + COUNT ( * ) + + 5 THEN - COALESCE ( - 45, + + 77 - + NULLIF ( + - SUM ( ALL NULLIF ( + 7, - 9 / - 77 + - NULLIF ( + + 33, - - 74 / - + 37 * + 90 * 89 * 23 ) ) ), - - 24 * + 63 + + 61 ), + CASE COUNT ( * ) WHEN - 48 / + 50 THEN NULL WHEN - + 64 - 58 + + 63 * 46 THEN 6 ELSE - 38 END ) - 7 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT COALESCE ( - 20, - COALESCE ( 46, - 93 ) ) - - 23
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3980
SELECT - 1 + - COUNT( * ) * - 45 AS col1
----
44

skipif mysql # not compatible
query I rowsort label-3980
SELECT - 1 + - COUNT ( * ) * - 45 AS col1
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-3981
SELECT ALL 45 DIV + - 97
----
0

skipif mysql # not compatible
query I rowsort label-3981
SELECT ALL 45 / + - 97
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3983
SELECT + COUNT( * ) + + COUNT( * ) * + - 23 + - + 9 + - 62 + 31
----
-62

skipif mysql # not compatible
query I rowsort label-3983
SELECT + COUNT ( * ) + + COUNT ( * ) * + - 23 + - + 9 + - 62 + 31
----
-62

query I rowsort
SELECT ALL + 26 * + 61 - COALESCE ( + - 65, 80 * + - 8 )
----
1651

onlyif mysql # aggregate syntax: 
query II rowsort label-3985
SELECT DISTINCT - MAX( ALL + - 85 ) AS col2, 73 AS col0
----
85
73

skipif mysql # not compatible
query II rowsort label-3985
SELECT DISTINCT - MAX ( ALL + - 85 ) AS col2, 73 AS col0
----
85
73

query I rowsort
SELECT DISTINCT + 93 * + 90 AS col0
----
8370

query I rowsort
SELECT ALL 46 * - + NULLIF ( - 34, + 78 ) AS col1
----
1564

query I rowsort
SELECT 41 * + 49 AS col0
----
2009

query I rowsort
SELECT 77 * - - 32 * + 35 * 94 col1
----
8106560

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3990
SELECT 86 DIV - NULLIF ( 82, - COUNT( * ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-3990
SELECT 86 / - NULLIF ( 82, - COUNT ( * ) ) col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3991
SELECT ALL - NULLIF ( 79, - + MAX( + COALESCE ( + + 57, + 79 * 31 ) ) )
----
-79

skipif mysql # not compatible
query I rowsort label-3991
SELECT ALL - NULLIF ( 79, - + MAX ( + COALESCE ( + + 57, + 79 * 31 ) ) )
----
-79

query II rowsort
SELECT ALL - 31, - 90 + ( + ( + 5 ) ) AS col2
----
-31
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3993
SELECT 66 * CASE - - 27 WHEN 82 THEN - - 83 + - 59 + + - ( + - NULLIF ( - 58, ( + 84 ) ) ) * - + 22 - - 35 ELSE + 85 DIV - - COALESCE ( + - 61, + 40 ) + - COUNT( * ) + NULLIF ( + 97, - - COUNT( * ) + + - 52 ) END
----
6270

skipif mysql # not compatible
query I rowsort label-3993
SELECT 66 * CASE - - 27 WHEN 82 THEN - - 83 + - 59 + + - ( + - NULLIF ( - 58, ( + 84 ) ) ) * - + 22 - - 35 ELSE + 85 / - - COALESCE ( + - 61, + 40 ) + - COUNT ( * ) + NULLIF ( + 97, - - COUNT ( * ) + + - 52 ) END
----
6270

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3995
SELECT COUNT( * ) col1, - 41 - + NULLIF ( - + ( + - 53 ), + + 89 ) DIV + COALESCE ( + 46, 43 * COUNT( * ) + COUNT( * ), MAX( DISTINCT + ( + 15 ) ) - + - 37 DIV CASE - 27 WHEN + + 74 + - COUNT( * ) THEN + 78 WHEN + - COUNT( * ) THEN 8 END * - - 64 - + - 93 ) AS col1
----
1
-42

skipif mysql # not compatible
query II rowsort label-3995
SELECT COUNT ( * ) col1, - 41 - + NULLIF ( - + ( + - 53 ), + + 89 ) / + COALESCE ( + 46, 43 * COUNT ( * ) + COUNT ( * ), MAX ( DISTINCT + ( + 15 ) ) - + - 37 / CASE - 27 WHEN + + 74 + - COUNT ( * ) THEN + 78 WHEN + - COUNT ( * ) THEN 8 END * - - 64 - + - 93 ) AS col1
----
1
-42

query I rowsort
SELECT DISTINCT 75 * - 94 + + + 98 * + - 48
----
-11754

query I rowsort
SELECT DISTINCT - 17 * 47 + + 77 AS col0
----
-722

onlyif mysql # aggregate syntax: 
query I rowsort label-3998
SELECT DISTINCT + COUNT( * ) * - 74 col2
----
-74

skipif mysql # not compatible
query I rowsort label-3998
SELECT DISTINCT + COUNT ( * ) * - 74 col2
----
-74

query I rowsort
SELECT - ( - + 40 ) * 24 * - 51
----
-48960

onlyif mysql # DIV for integer division: 
query I rowsort label-4000
SELECT + 14 DIV + 56 * + - 54 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4000
SELECT + 14 / + 56 * + - 54 AS col0
----
0

query I rowsort
SELECT ALL + 86 + 57
----
143

query I rowsort
SELECT DISTINCT + 13 * + 4 AS col2
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4003
SELECT ALL NULLIF ( - CAST( 81 AS SIGNED ), + 57 ) + ( CAST( NULL AS SIGNED ) ) / + NULLIF ( 68, - NULLIF ( - 63, 53 ) ) * - + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4003
SELECT ALL NULLIF ( - CAST ( 81 AS INTEGER ), + 57 ) + ( CAST ( NULL AS INTEGER ) ) / + NULLIF ( 68, - NULLIF ( - 63, 53 ) ) * - + COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-4004
SELECT - 91 + COUNT( DISTINCT + NULLIF ( - + 80, + 31 ) ) DIV 86 DIV - CAST( - + COALESCE ( + - 90, + 24 DIV - + CASE + 4 WHEN 87 THEN + - CAST( + COUNT( * ) AS DECIMAL ) * + 63 ELSE - - 7 + + + 55 END * + 33, + + 12 ) AS SIGNED ) + + + 22 AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-4004
SELECT - 91 + COUNT ( DISTINCT + NULLIF ( - + 80, + 31 ) ) / 86 / - CAST ( - + COALESCE ( + - 90, + 24 / - + CASE + 4 WHEN 87 THEN + - CAST ( + COUNT ( * ) AS REAL ) * + 63 ELSE - - 7 + + + 55 END * + 33, + + 12 ) AS INTEGER ) + + + 22 AS col2
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-4005
SELECT ALL + 90 AS col1, + 6 * + + SUM( 91 ) AS col1
----
90
546

skipif mysql # not compatible
query II rowsort label-4005
SELECT ALL + 90 AS col1, + 6 * + + SUM ( 91 ) AS col1
----
90
546

query I rowsort
SELECT - ( 30 ) AS col1
----
-30

query II rowsort
SELECT ALL 58 AS col0, 78 * - 82 AS col1
----
58
-6396

onlyif mysql # aggregate syntax: 
query I rowsort label-4008
SELECT ALL - + COUNT( * ) - 50 AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-4008
SELECT ALL - + COUNT ( * ) - 50 AS col0
----
-51

query I rowsort
SELECT - + 34 * - 75
----
2550

onlyif mysql # aggregate syntax: 
query II rowsort label-4010
SELECT 66, 89 * - 97 * + MAX( + + 30 ) AS col2
----
66
-258990

skipif mysql # not compatible
query II rowsort label-4010
SELECT 66, 89 * - 97 * + MAX ( + + 30 ) AS col2
----
66
-258990

onlyif mysql # aggregate syntax: 
query I rowsort label-4011
SELECT + + 54 + SUM( DISTINCT 23 ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-4011
SELECT + + 54 + SUM ( DISTINCT 23 ) AS col2
----
77

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4013
SELECT + - 79 + + NULLIF ( - COUNT( * ), + 50 ) + 34 + 47 + + CAST( - 50 AS SIGNED ) col2
----
-49

skipif mysql # not compatible
query I rowsort label-4013
SELECT + - 79 + + NULLIF ( - COUNT ( * ), + 50 ) + 34 + 47 + + CAST ( - 50 AS INTEGER ) col2
----
-49

onlyif mysql # DIV for integer division: 
query II rowsort label-4014
SELECT + + ( + CASE WHEN NOT ( NULL ) IS NOT NULL THEN + - 72 ELSE + - 72 END ) + + + 71 DIV - 22 + - - 81 AS col2, 63
----
6
63

skipif mysql # not compatible
query II rowsort label-4014
SELECT + + ( + CASE WHEN NOT ( NULL ) IS NOT NULL THEN + - 72 ELSE + - 72 END ) + + + 71 / - 22 + - - 81 AS col2, 63
----
6
63

query I rowsort
SELECT ALL 51 * - 0 AS col1
----
0

query I rowsort
SELECT DISTINCT + 97 * + + 32
----
3104

onlyif mysql # aggregate syntax: 
query II rowsort label-4017
SELECT - COUNT( * ), - 92 * + 72 - + MAX( ALL - 6 ) AS col2
----
-1
-6618

skipif mysql # not compatible
query II rowsort label-4017
SELECT - COUNT ( * ), - 92 * + 72 - + MAX ( ALL - 6 ) AS col2
----
-1
-6618

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

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

query I rowsort
SELECT + - 58 - - 30
----
-28

query II rowsort
SELECT - 77 col1, 49 + 98
----
-77
147

query I rowsort
SELECT + ( - - 48 ) * 72
----
3456

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4022
SELECT + COALESCE ( + COUNT( + + 13 ), + 17 * 31, + + 92 ) * + COALESCE ( + + 50, + 86 * + COUNT( * ) + 29 ) * - + COALESCE ( CAST( + + 1 AS SIGNED ), + 11 ) + + 94 AS col2
----
44

skipif mysql # not compatible
query I rowsort label-4022
SELECT + COALESCE ( + COUNT ( + + 13 ), + 17 * 31, + + 92 ) * + COALESCE ( + + 50, + 86 * + COUNT ( * ) + 29 ) * - + COALESCE ( CAST ( + + 1 AS INTEGER ), + 11 ) + + 94 AS col2
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4023
SELECT + COALESCE ( 39, + 27 * NULLIF ( 71, + 89 + - - 48 ), - 56 + - 94 - - AVG ( ALL + 60 ) + 86 ) / + + 30 * + - ( + 69 ) + 28 + + 5 + 64 + + - 56 * CAST( NULL AS SIGNED ) * + + COUNT( - 59 ) * - 6 * - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-4023
SELECT + COALESCE ( 39, + 27 * NULLIF ( 71, + 89 + - - 48 ), - 56 + - 94 - - AVG ( ALL + 60 ) + 86 ) / + + 30 * + - ( + 69 ) + 28 + + 5 + 64 + + - 56 * CAST ( NULL AS INTEGER ) * + + COUNT ( - 59 ) * - 6 * - 65
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4024
SELECT CAST( + 92 AS SIGNED ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-4024
SELECT CAST ( + 92 AS INTEGER ) AS col1
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-4025
SELECT DISTINCT 71 DIV - 48 + - 63
----
-64

skipif mysql # not compatible
query I rowsort label-4025
SELECT DISTINCT 71 / - 48 + - 63
----
-64

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4027
SELECT - 68 * + COUNT( * ) * 34 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4027
SELECT - 68 * + COUNT ( * ) * 34 * - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4028
SELECT DISTINCT SUM( - 38 ) * - 53 + COALESCE ( - 10, 42 DIV 51, - 5 ) AS col1
----
2004

skipif mysql # not compatible
query I rowsort label-4028
SELECT DISTINCT SUM ( - 38 ) * - 53 + COALESCE ( - 10, 42 / 51, - 5 ) AS col1
----
2004

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4030
SELECT + COALESCE ( - ( - COUNT( * ) ), + - 53, - + ( 88 ) ) + 1 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-4030
SELECT + COALESCE ( - ( - COUNT ( * ) ), + - 53, - + ( 88 ) ) + 1 AS col2
----
2

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

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

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

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

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

query I rowsort
SELECT DISTINCT - 63 * - 0 + + 12
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4035
SELECT ALL + 80 * 11 + + 90 + + + ( + - 74 ) * - + 36 + - - COUNT( * ) + - COUNT( * ) + + 80 * 94 * 56 + - 10 - 53 DIV + 33
----
424743

skipif mysql # not compatible
query I rowsort label-4035
SELECT ALL + 80 * 11 + + 90 + + + ( + - 74 ) * - + 36 + - - COUNT ( * ) + - COUNT ( * ) + + 80 * 94 * 56 + - 10 - 53 / + 33
----
424743

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4036
SELECT ALL + 30 * - 66 + + + 32 DIV 76 + + COUNT( * ) AS col0
----
-1979

skipif mysql # not compatible
query I rowsort label-4036
SELECT ALL + 30 * - 66 + + + 32 / 76 + + COUNT ( * ) AS col0
----
-1979

onlyif mysql # aggregate syntax: 
query I rowsort label-4037
SELECT NULLIF ( - COUNT( * ), + 97 + - - 62 * - 37 * + COALESCE ( 21, + MIN( DISTINCT NULLIF ( 17, 12 ) ), - + 9 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4037
SELECT NULLIF ( - COUNT ( * ), + 97 + - - 62 * - 37 * + COALESCE ( 21, + MIN ( DISTINCT NULLIF ( 17, 12 ) ), - + 9 ) )
----
-1

query I rowsort
SELECT DISTINCT + - 53 * + - 27 * - 26 + + 24 - - 31
----
-37151

query II rowsort
SELECT ALL + 80 * - ( 71 ) + - - 81 AS col1, + 8 AS col2
----
-5599
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4040
SELECT DISTINCT + + NULLIF ( - 40, - + COALESCE ( - - 75, + COUNT( * ) ) * + - COUNT( * ) * 84 ) * 53 col2
----
-2120

skipif mysql # not compatible
query I rowsort label-4040
SELECT DISTINCT + + NULLIF ( - 40, - + COALESCE ( - - 75, + COUNT ( * ) ) * + - COUNT ( * ) * 84 ) * 53 col2
----
-2120

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4042
SELECT - CAST( NULL AS SIGNED ) - - - SUM( 80 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4042
SELECT - CAST ( NULL AS INTEGER ) - - - SUM ( 80 ) AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4044
SELECT ALL + COUNT( DISTINCT 34 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4044
SELECT ALL + COUNT ( DISTINCT 34 ) AS col2
----
1

query I rowsort
SELECT + + 98 * 92 * + + 9 AS col1
----
81144

onlyif mysql # DIV for integer division: 
query I rowsort label-4046
SELECT ALL - - 0 DIV - + 87 * + 61 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4046
SELECT ALL - - 0 / - + 87 * + 61 AS col1
----
0

query I rowsort
SELECT + NULLIF ( + 81, - 29 )
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4048
SELECT DISTINCT - 76 DIV - + 89 + - COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4048
SELECT DISTINCT - 76 / - + 89 + - COUNT ( * ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4049
SELECT - + 12 + - MIN( - 20 )
----
8

skipif mysql # not compatible
query I rowsort label-4049
SELECT - + 12 + - MIN ( - 20 )
----
8

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4050
SELECT + + NULLIF ( + 31, - + CAST( NULL AS SIGNED ) ) DIV 19 + + 14
----
15

skipif mysql # not compatible
query I rowsort label-4050
SELECT + + NULLIF ( + 31, - + CAST ( NULL AS INTEGER ) ) / 19 + + 14
----
15

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

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

query I rowsort
SELECT + 68 - + - 98 + - + 79 AS col2
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4053
SELECT ALL - 2 + 50 - ( - 43 ) * - + 51 + + + CASE - + CASE - MAX( ALL + 5 ) WHEN + + 45 * 50 THEN - CAST( NULL AS DECIMAL ) END WHEN COUNT( * ) THEN NULL WHEN 25 THEN - 87 * + 46 / 88 - CAST( NULL AS SIGNED ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4053
SELECT ALL - 2 + 50 - ( - 43 ) * - + 51 + + + CASE - + CASE - MAX ( ALL + 5 ) WHEN + + 45 * 50 THEN - CAST ( NULL AS REAL ) END WHEN COUNT ( * ) THEN NULL WHEN 25 THEN - 87 * + 46 / 88 - CAST ( NULL AS INTEGER ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4054
SELECT 86 + - COUNT( * ) + - + 56 * 90 * + - 54
----
272245

skipif mysql # not compatible
query I rowsort label-4054
SELECT 86 + - COUNT ( * ) + - + 56 * 90 * + - 54
----
272245

query I rowsort
SELECT ALL NULLIF ( 99, + 84 ) + + 37 AS col0
----
136

query I rowsort
SELECT 3 * - 44 + - - 20 * - 20 + + 47 AS col0
----
-485

onlyif mysql # aggregate syntax: 
query I rowsort label-4057
SELECT ALL 33 + COUNT( * ) * 36
----
69

skipif mysql # not compatible
query I rowsort label-4057
SELECT ALL 33 + COUNT ( * ) * 36
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4058
SELECT CASE 19 WHEN + - 19 * + 70 + + 58 * + 92 / COUNT( ALL 16 ) * 1 * - 13 + - 99 - - ( + NULLIF ( - + NULLIF ( 99, + 32 ), - COUNT( * ) ) ) / NULLIF ( 96, ( ( 30 ) ) * 28 + + - ( + - NULLIF ( - - 54, - + 16 * 53 ) ) + - + 33 / + COUNT( DISTINCT + 20 ) * + 2 * + 37 - + 24 + - + 51 ) THEN - 77 * 44 END * + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-4058
SELECT CASE 19 WHEN + - 19 * + 70 + + 58 * + 92 / COUNT ( ALL 16 ) * 1 * - 13 + - 99 - - ( + NULLIF ( - + NULLIF ( 99, + 32 ), - COUNT ( * ) ) ) / NULLIF ( 96, ( ( 30 ) ) * 28 + + - ( + - NULLIF ( - - 54, - + 16 * 53 ) ) + - + 33 / + COUNT ( DISTINCT + 20 ) * + 2 * + 37 - + 24 + - + 51 ) THEN - 77 * 44 END * + 26
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4059
SELECT - ( - 13 ) DIV + 61 + + 30
----
30

skipif mysql # not compatible
query I rowsort label-4059
SELECT - ( - 13 ) / + 61 + + 30
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4060
SELECT DISTINCT COUNT( * ) + 64 + - 99 + - + 61
----
-95

skipif mysql # not compatible
query I rowsort label-4060
SELECT DISTINCT COUNT ( * ) + 64 + - 99 + - + 61
----
-95

query I rowsort
SELECT ALL 79 + 56 - - 26
----
161

query I rowsort
SELECT 10 * - - 84 AS col0
----
840

query I rowsort
SELECT ALL + ( - - 90 ) * 88
----
7920

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

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

query I rowsort
SELECT ALL 43 * + - 51
----
-2193

onlyif mysql # aggregate syntax: 
query II rowsort label-4066
SELECT 59 col1, + SUM( ALL + 41 ) AS col2
----
59
41

skipif mysql # not compatible
query II rowsort label-4066
SELECT 59 col1, + SUM ( ALL + 41 ) AS col2
----
59
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4067
SELECT DISTINCT 66 * - 47 + COALESCE ( - 6, + 92, + 98, + COUNT( * ) - - 75 ) + - + MAX( DISTINCT - + 71 ) * - COUNT( * ) * - CAST( NULL AS SIGNED ) - - 94 * + CASE - + 46 WHEN + - 29 / + ( + SUM( + 63 ) ) + - - 82 * 13 * + 54 THEN NULL WHEN + 80 THEN + ( - - 72 ) WHEN + COUNT( * ) / - 46 * + ( + 24 ) THEN NULL ELSE + 77 / + 60 * 28 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4067
SELECT DISTINCT 66 * - 47 + COALESCE ( - 6, + 92, + 98, + COUNT ( * ) - - 75 ) + - + MAX ( DISTINCT - + 71 ) * - COUNT ( * ) * - CAST ( NULL AS INTEGER ) - - 94 * + CASE - + 46 WHEN + - 29 / + ( + SUM ( + 63 ) ) + - - 82 * 13 * + 54 THEN NULL WHEN + 80 THEN + ( - - 72 ) WHEN + COUNT ( * ) / - 46 * + ( + 24 ) THEN NULL ELSE + 77 / + 60 * 28 END
----
NULL

query I rowsort
SELECT ALL 70 * + 74 * 41 AS col1
----
212380

onlyif mysql # DIV for integer division: 
query I rowsort label-4069
SELECT - COALESCE ( + 75, - 61 ) DIV - 79 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4069
SELECT - COALESCE ( + 75, - 61 ) / - 79 AS col2
----
0

query II rowsort
SELECT ALL - 96 AS col1, 34 + - 4 * + + 86
----
-96
-310

onlyif mysql # aggregate syntax: 
query I rowsort label-4071
SELECT - 23 + - COUNT( * )
----
-24

skipif mysql # not compatible
query I rowsort label-4071
SELECT - 23 + - COUNT ( * )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4072
SELECT ALL - + COALESCE ( - 82, - CASE + - 0 WHEN + 16 * + NULLIF ( 67, 47 ) + 67 + CASE - - 64 WHEN - ( - 71 ) THEN NULL WHEN + + 16 THEN - - 38 * + 55 ELSE NULL END THEN - - MIN( 76 ) ELSE MIN( 58 ) END + - 64 ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-4072
SELECT ALL - + COALESCE ( - 82, - CASE + - 0 WHEN + 16 * + NULLIF ( 67, 47 ) + 67 + CASE - - 64 WHEN - ( - 71 ) THEN NULL WHEN + + 16 THEN - - 38 * + 55 ELSE NULL END THEN - - MIN ( 76 ) ELSE MIN ( 58 ) END + - 64 ) AS col2
----
82

query I rowsort
SELECT NULLIF ( - 1, - 75 ) AS col1
----
-1

query II rowsort
SELECT DISTINCT 32 AS col2, 54
----
32
54

onlyif mysql # DIV for integer division: 
query I rowsort label-4075
SELECT ALL + + 65 * - 87 + - 96 DIV - - 16 AS col0
----
-5661

skipif mysql # not compatible
query I rowsort label-4075
SELECT ALL + + 65 * - 87 + - 96 / - - 16 AS col0
----
-5661

onlyif mysql # aggregate syntax: 
query I rowsort label-4076
SELECT + 3 + - SUM( - 16 ) + 80
----
99

skipif mysql # not compatible
query I rowsort label-4076
SELECT + 3 + - SUM ( - 16 ) + 80
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4077
SELECT + - 90 * + 71 * + - COUNT( * ) DIV - COUNT( * ) + + 3 + - 9 + + 90
----
-6306

skipif mysql # not compatible
query I rowsort label-4077
SELECT + - 90 * + 71 * + - COUNT ( * ) / - COUNT ( * ) + + 3 + - 9 + + 90
----
-6306

onlyif mysql # aggregate syntax: 
query I rowsort label-4078
SELECT ALL - 47 + - COUNT( * ) AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-4078
SELECT ALL - 47 + - COUNT ( * ) AS col0
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4079
SELECT - 39 + - CAST( - MAX( DISTINCT - ( 73 ) ) AS SIGNED )
----
-112

skipif mysql # not compatible
query I rowsort label-4079
SELECT - 39 + - CAST ( - MAX ( DISTINCT - ( 73 ) ) AS INTEGER )
----
-112

query II rowsort
SELECT - - 47, 93 AS col2
----
47
93

query II rowsort
SELECT ALL + 91, 78 AS col2
----
91
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4082
SELECT - ( - - NULLIF ( 56, - 5 / - 34 + + + COUNT( * ) + + ( 92 ) + - 21 * - MIN( - 20 ) * 62 * - ( - MIN( DISTINCT - + CAST( NULL AS SIGNED ) ) ) + - 34 * - 82 * - 49 ) ) + + COALESCE ( - + 27, + - COUNT( * ) ) + - - 0
----
-83

skipif mysql # not compatible
query I rowsort label-4082
SELECT - ( - - NULLIF ( 56, - 5 / - 34 + + + COUNT ( * ) + + ( 92 ) + - 21 * - MIN ( - 20 ) * 62 * - ( - MIN ( DISTINCT - + CAST ( NULL AS INTEGER ) ) ) + - 34 * - 82 * - 49 ) ) + + COALESCE ( - + 27, + - COUNT ( * ) ) + - - 0
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-4083
SELECT - 97 DIV + - 28
----
3

skipif mysql # not compatible
query I rowsort label-4083
SELECT - 97 / + - 28
----
3

query I rowsort
SELECT DISTINCT - 16 + + + 94 AS col0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4085
SELECT ALL 46 + - 92 * - COUNT( * ) + - 78 AS col0
----
60

skipif mysql # not compatible
query I rowsort label-4085
SELECT ALL 46 + - 92 * - COUNT ( * ) + - 78 AS col0
----
60

query I rowsort
SELECT 95 * - ( - 33 )
----
3135

onlyif mysql # aggregate syntax: 
query I rowsort label-4087
SELECT ALL - 98 + - 67 * MIN( + 98 )
----
-6664

skipif mysql # not compatible
query I rowsort label-4087
SELECT ALL - 98 + - 67 * MIN ( + 98 )
----
-6664

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4088
SELECT COUNT( * ) * NULLIF ( COUNT( * ), 41 ) * CAST( + 75 AS SIGNED ) * - 7
----
-525

skipif mysql # not compatible
query I rowsort label-4088
SELECT COUNT ( * ) * NULLIF ( COUNT ( * ), 41 ) * CAST ( + 75 AS INTEGER ) * - 7
----
-525

query II rowsort
SELECT - 85, - NULLIF ( ( + - 44 ), - NULLIF ( - 39, + 83 + - 24 ) * + 37 * + - 55 ) * + - 72 + - 44 AS col2
----
-85
-3212

query I rowsort
SELECT ALL - 71 + + 87 AS col0
----
16

query II rowsort
SELECT 85 - + 48 + 59 * 54 AS col2, 42
----
3223
42

onlyif mysql # aggregate syntax: 
query II rowsort label-4092
SELECT ALL MIN( ALL + 47 ) AS col2, NULLIF ( - 88, - 55 ) * MAX( - + 12 ) * + 84 + + 93 + + + 37
----
47
88834

skipif mysql # not compatible
query II rowsort label-4092
SELECT ALL MIN ( ALL + 47 ) AS col2, NULLIF ( - 88, - 55 ) * MAX ( - + 12 ) * + 84 + + 93 + + + 37
----
47
88834

onlyif mysql # aggregate syntax: 
query I rowsort label-4093
SELECT COUNT( ALL 76 ) * - + 93 AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-4093
SELECT COUNT ( ALL 76 ) * - + 93 AS col0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-4094
SELECT ALL MAX( DISTINCT + - 39 ) - MAX( ALL + + 16 ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-4094
SELECT ALL MAX ( DISTINCT + - 39 ) - MAX ( ALL + + 16 ) AS col2
----
-55

query II rowsort
SELECT DISTINCT - 81 AS col0, 6
----
-81
6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4096
SELECT ALL - 91 col2, + CAST( - 70 AS SIGNED ) AS col0
----
-91
-70

skipif mysql # not compatible
query II rowsort label-4096
SELECT ALL - 91 col2, + CAST ( - 70 AS INTEGER ) AS col0
----
-91
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-4097
SELECT ALL + COUNT( * ) - 22 AS col1, - 27 AS col0
----
-21
-27

skipif mysql # not compatible
query II rowsort label-4097
SELECT ALL + COUNT ( * ) - 22 AS col1, - 27 AS col0
----
-21
-27

query I rowsort
SELECT DISTINCT - 82 * - 82 * - 97
----
-652228

query I rowsort
SELECT 10 * 16
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-4100
SELECT 45 * 76 * + 66 * + MIN( DISTINCT + 0 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4100
SELECT 45 * 76 * + 66 * + MIN ( DISTINCT + 0 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4101
SELECT - - 8 * - 51 + - COUNT( * )
----
-409

skipif mysql # not compatible
query I rowsort label-4101
SELECT - - 8 * - 51 + - COUNT ( * )
----
-409

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4102
SELECT DISTINCT - + CAST( - 20 AS SIGNED ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-4102
SELECT DISTINCT - + CAST ( - 20 AS INTEGER ) AS col2
----
20

query I rowsort
SELECT ALL - COALESCE ( + + 30, 15 ) AS col2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4104
SELECT 54 * + COALESCE ( 39, MAX( DISTINCT + + 11 ) )
----
2106

skipif mysql # not compatible
query I rowsort label-4104
SELECT 54 * + COALESCE ( 39, MAX ( DISTINCT + + 11 ) )
----
2106

onlyif mysql # aggregate syntax: 
query I rowsort label-4105
SELECT DISTINCT COALESCE ( + COUNT( * ), + 17 + 88 ) * ( + 62 ) * - 23 * 4 * - ( ( - + 69 ) ) + - 23
----
-393599

skipif mysql # not compatible
query I rowsort label-4105
SELECT DISTINCT COALESCE ( + COUNT ( * ), + 17 + 88 ) * ( + 62 ) * - 23 * 4 * - ( ( - + 69 ) ) + - 23
----
-393599

query II rowsort
SELECT ALL - 37 * - COALESCE ( + 36, + + 14 ) AS col1, 19 col0
----
1332
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4107
SELECT - MAX( + 86 ) * - + 87 + - 47
----
7435

skipif mysql # not compatible
query I rowsort label-4107
SELECT - MAX ( + 86 ) * - + 87 + - 47
----
7435

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4108
SELECT DISTINCT + COUNT( * ) * - + 55 DIV - + 42
----
1

skipif mysql # not compatible
query I rowsort label-4108
SELECT DISTINCT + COUNT ( * ) * - + 55 / - + 42
----
1

query I rowsort
SELECT - 12 * - 33 - + - 99 AS col0
----
495

query I rowsort
SELECT ALL 84 + + 30 AS col0
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-4111
SELECT - SUM( + 5 ) + + + 9 + + - 30 * + + 17 AS col0
----
-506

skipif mysql # not compatible
query I rowsort label-4111
SELECT - SUM ( + 5 ) + + + 9 + + - 30 * + + 17 AS col0
----
-506

onlyif mysql # aggregate syntax: 
query I rowsort label-4112
SELECT NULLIF ( - 6, + CASE + 15 WHEN - + 41 / COUNT( * ) - + + ( 80 ) THEN NULL WHEN - 72 / COALESCE ( COUNT( * ), - 58 ) THEN 21 WHEN + + COUNT( * ) THEN NULL ELSE - ( 94 ) * + + COUNT( - 32 ) / + ( + + 28 ) END ) * + ( - 4 ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-4112
SELECT NULLIF ( - 6, + CASE + 15 WHEN - + 41 / COUNT ( * ) - + + ( 80 ) THEN NULL WHEN - 72 / COALESCE ( COUNT ( * ), - 58 ) THEN 21 WHEN + + COUNT ( * ) THEN NULL ELSE - ( 94 ) * + + COUNT ( - 32 ) / + ( + + 28 ) END ) * + ( - 4 ) AS col2
----
24

query I rowsort
SELECT 3 * + - 77
----
-231

query I rowsort
SELECT - NULLIF ( + 7, + - 91 )
----
-7

query I rowsort
SELECT ALL - 85 + - ( - 94 ) AS col0
----
9

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4117
SELECT ALL + NULLIF ( - - 66, ( COUNT( * ) ) ) + NULLIF ( - COUNT( * ), 85 DIV - 82 ) + + 20 + 8 * 52 * - - 27
----
NULL

skipif mysql # not compatible
query I rowsort label-4117
SELECT ALL + NULLIF ( - - 66, ( COUNT ( * ) ) ) + NULLIF ( - COUNT ( * ), 85 / - 82 ) + + 20 + 8 * 52 * - - 27
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4118
SELECT + - CAST( NULL AS SIGNED ) - - 7 + + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-4118
SELECT + - CAST ( NULL AS INTEGER ) - - 7 + + 0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4119
SELECT - + 95 AS col2, 98 * + COUNT( * ) + - + 39 AS col1
----
-95
59

skipif mysql # not compatible
query II rowsort label-4119
SELECT - + 95 AS col2, 98 * + COUNT ( * ) + - + 39 AS col1
----
-95
59

query I rowsort
SELECT ALL - 35 + - ( - 83 ) * - + 81 * + 23 * + 68 AS col2
----
-10514807

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

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

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

skipif mysql # not compatible
query I rowsort label-4122
SELECT - COALESCE ( + + 43, - CAST ( NULL AS INTEGER ) )
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-4123
SELECT ALL MIN( 18 ) AS col0, + 46 + + COUNT( * ) + - 85 AS col2
----
18
-38

skipif mysql # not compatible
query II rowsort label-4123
SELECT ALL MIN ( 18 ) AS col0, + 46 + + COUNT ( * ) + - 85 AS col2
----
18
-38

query I rowsort
SELECT + ( + - 81 ) + + 95 AS col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4125
SELECT - MIN( DISTINCT - + 62 ) + - 10
----
52

skipif mysql # not compatible
query I rowsort label-4125
SELECT - MIN ( DISTINCT - + 62 ) + - 10
----
52

query I rowsort
SELECT - 98 - - - ( 94 ) AS col0
----
-192

query I rowsort
SELECT - 44 * + ( 58 ) AS col1
----
-2552

onlyif mysql # aggregate syntax: 
query I rowsort label-4128
SELECT ALL COALESCE ( + + COUNT( DISTINCT - 28 ), - - 72 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4128
SELECT ALL COALESCE ( + + COUNT ( DISTINCT - 28 ), - - 72 ) AS col1
----
1

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

query I rowsort
SELECT - 38 + + 56 + + ( - 19 ) - - 47 * + 18 AS col0
----
845

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4131
SELECT - 32 DIV + MIN( ALL + 83 ) * 71 + + 61 + - 56
----
5

skipif mysql # not compatible
query I rowsort label-4131
SELECT - 32 / + MIN ( ALL + 83 ) * 71 + + 61 + - 56
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4132
SELECT + COUNT( - 83 ) DIV 4 + + COUNT( * ) + - 26
----
-25

skipif mysql # not compatible
query I rowsort label-4132
SELECT + COUNT ( - 83 ) / 4 + + COUNT ( * ) + - 26
----
-25

query I rowsort
SELECT ALL + + 86 * + 41 * 17 AS col1
----
59942

onlyif mysql # DIV for integer division: 
query I rowsort label-4134
SELECT - + 27 DIV + 82 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4134
SELECT - + 27 / + 82 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4135
SELECT ALL + + 69 DIV + 80
----
0

skipif mysql # not compatible
query I rowsort label-4135
SELECT ALL + + 69 / + 80
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4137
SELECT + 85 * + COUNT( * ) + - NULLIF ( 69, - 76 ) + - 35 AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-4137
SELECT + 85 * + COUNT ( * ) + - NULLIF ( 69, - 76 ) + - 35 AS col2
----
-19

query I rowsort
SELECT 42 * 78 * - 6 - + 60 col1
----
-19716

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4139
SELECT DISTINCT 0 DIV + - 75 AS col2, SUM( ALL + CAST( NULL AS SIGNED ) ) + 96 AS col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-4139
SELECT DISTINCT 0 / + - 75 AS col2, SUM ( ALL + CAST ( NULL AS INTEGER ) ) + 96 AS col2
----
0
NULL

query I rowsort
SELECT ALL + 24 * 16 * ( + COALESCE ( + - 78, + + 10, - 12 ) ) + + 16
----
-29936

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4142
SELECT DISTINCT + ( - 17 ) * - - 19 * COUNT( * ) + + 15 + 93 * + 2 - + 11 DIV + + 1 AS col0
----
-133

skipif mysql # not compatible
query I rowsort label-4142
SELECT DISTINCT + ( - 17 ) * - - 19 * COUNT ( * ) + + 15 + 93 * + 2 - + 11 / + + 1 AS col0
----
-133

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4143
SELECT - 42 * - 62 + + 77 - 62 + - - CAST( NULL AS SIGNED ) / + 59 * - 43
----
NULL

skipif mysql # not compatible
query I rowsort label-4143
SELECT - 42 * - 62 + + 77 - 62 + - - CAST ( NULL AS INTEGER ) / + 59 * - 43
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4144
SELECT MAX( - 52 ) AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-4144
SELECT MAX ( - 52 ) AS col2
----
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-4145
SELECT + 22 + + ( + + COUNT( * ) ), - 97 AS col2
----
23
-97

skipif mysql # not compatible
query II rowsort label-4145
SELECT + 22 + + ( + + COUNT ( * ) ), - 97 AS col2
----
23
-97

query I rowsort
SELECT ALL 28 * + 44
----
1232

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4148
SELECT + 10 DIV - NULLIF ( - 67, + ( + + 9 ) * COUNT( - 86 ) + - + 6 - 33 * - - 9 DIV - - ( 93 ) + 23 + COUNT( * ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4148
SELECT + 10 / - NULLIF ( - 67, + ( + + 9 ) * COUNT ( - 86 ) + - + 6 - 33 * - - 9 / - - ( 93 ) + 23 + COUNT ( * ) ) AS col1
----
0

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

skipif mysql # not compatible
query I rowsort label-4149
SELECT DISTINCT COUNT ( * ) - - + 22 * - + 45 * + - COUNT ( * ) AS col2
----
991

onlyif mysql # DIV for integer division: 
query I rowsort label-4150
SELECT DISTINCT COALESCE ( + 42, + AVG ( DISTINCT + 89 ) DIV 86 ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-4150
SELECT DISTINCT COALESCE ( + 42, + AVG ( DISTINCT + 89 ) / 86 ) AS col2
----
42

query I rowsort
SELECT ALL CASE - - 77 WHEN + 19 * + - 30 / - 24 THEN + ( + 13 ) WHEN - - 99 THEN NULL WHEN + 32 THEN 77 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 54 - 71 + + 63 * - - CASE - - 27 WHEN 97 THEN NULL WHEN 28 THEN 89 WHEN - 23 THEN + 48 END
----
NULL

query II rowsort
SELECT ALL 44 AS col0, 65 AS col2
----
44
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4154
SELECT DISTINCT ( - COUNT( ALL + - 3 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4154
SELECT DISTINCT ( - COUNT ( ALL + - 3 ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4155
SELECT ALL - 36 * - MAX( DISTINCT 18 ) AS col2, 31 AS col1
----
648
31

skipif mysql # not compatible
query II rowsort label-4155
SELECT ALL - 36 * - MAX ( DISTINCT 18 ) AS col2, 31 AS col1
----
648
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4156
SELECT - 56 * - COUNT( * ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-4156
SELECT - 56 * - COUNT ( * ) AS col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4157
SELECT DISTINCT SUM( DISTINCT 69 )
----
69

skipif mysql # not compatible
query I rowsort label-4157
SELECT DISTINCT SUM ( DISTINCT 69 )
----
69

query II rowsort
SELECT + 26 - - NULLIF ( + ( - COALESCE ( - 37, + 85 - + + 10 ) ), + 55 ) * 21 AS col0, + 0
----
803
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4159
SELECT + 2 - NULLIF ( CAST( - - 66 AS SIGNED ), - + 21 ) col2
----
-64

skipif mysql # not compatible
query I rowsort label-4159
SELECT + 2 - NULLIF ( CAST ( - - 66 AS INTEGER ), - + 21 ) col2
----
-64

query II rowsort
SELECT 21 AS col2, 89
----
21
89

query I rowsort
SELECT ALL + 37 * + - 35 AS col1
----
-1295

query I rowsort
SELECT + 20 * 36 AS col0
----
720

query II rowsort
SELECT - 14, 98 AS col1
----
-14
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4164
SELECT ALL + + 60 DIV + COUNT( * ) + + + ( - + 56 ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-4164
SELECT ALL + + 60 / + COUNT ( * ) + + + ( - + 56 ) AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4165
SELECT DISTINCT + + CASE 64 WHEN + COUNT( * ) THEN 69 WHEN + 73 THEN + ( + - 66 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4165
SELECT DISTINCT + + CASE 64 WHEN + COUNT ( * ) THEN 69 WHEN + 73 THEN + ( + - 66 ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4166
SELECT ALL NULLIF ( - 8, 28 * + 7 ) DIV - + 98 * 19 + + 3 - 67 AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-4166
SELECT ALL NULLIF ( - 8, 28 * + 7 ) / - + 98 * 19 + + 3 - 67 AS col0
----
-64

query I rowsort
SELECT - 47 - 35 AS col0
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4168
SELECT DISTINCT - COUNT( * ) DIV + 79 + 31 + - + ( + 52 ) + - - CAST( - 18 AS SIGNED )
----
-39

skipif mysql # not compatible
query I rowsort label-4168
SELECT DISTINCT - COUNT ( * ) / + 79 + 31 + - + ( + 52 ) + - - CAST ( - 18 AS INTEGER )
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4169
SELECT - - 45 + + 11 * - CAST( - + 70 AS SIGNED )
----
815

skipif mysql # not compatible
query I rowsort label-4169
SELECT - - 45 + + 11 * - CAST ( - + 70 AS INTEGER )
----
815

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4172
SELECT ALL + ( + 58 ) / - ( + CAST( NULL AS SIGNED ) ) + + AVG ( DISTINCT - 32 ) col0, - 4 + 44
----
NULL
40

skipif mysql # not compatible
query II rowsort label-4172
SELECT ALL + ( + 58 ) / - ( + CAST ( NULL AS INTEGER ) ) + + AVG ( DISTINCT - 32 ) col0, - 4 + 44
----
NULL
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4173
SELECT ALL - ( - 98 ) + + SUM( 95 ) + + + 51
----
244

skipif mysql # not compatible
query I rowsort label-4173
SELECT ALL - ( - 98 ) + + SUM ( 95 ) + + + 51
----
244

onlyif mysql # aggregate syntax: 
query I rowsort label-4174
SELECT + - SUM( DISTINCT - + 30 ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-4174
SELECT + - SUM ( DISTINCT - + 30 ) AS col2
----
30

query II rowsort
SELECT 79 + + + 13 + + + 58 AS col1, 24
----
150
24

query I rowsort
SELECT ALL + - 87 * 92
----
-8004

onlyif mysql # aggregate syntax: 
query II rowsort label-4177
SELECT 58 * CASE + + COALESCE ( - 74, - + 54 + + - 57 + COUNT( * ) ) WHEN 33 + 20 THEN + COUNT( * ) WHEN - + 96 THEN NULL END * 1 / + 73 - - 49, - 32 * - + 3 AS col1
----
NULL
96

skipif mysql # not compatible
query II rowsort label-4177
SELECT 58 * CASE + + COALESCE ( - 74, - + 54 + + - 57 + COUNT ( * ) ) WHEN 33 + 20 THEN + COUNT ( * ) WHEN - + 96 THEN NULL END * 1 / + 73 - - 49, - 32 * - + 3 AS col1
----
NULL
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4178
SELECT COUNT( * ) * - - 24 * + 11
----
264

skipif mysql # not compatible
query I rowsort label-4178
SELECT COUNT ( * ) * - - 24 * + 11
----
264

query I rowsort
SELECT 20 - - - 78
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-4180
SELECT ALL + 50 DIV 29 * - + 94 AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-4180
SELECT ALL + 50 / 29 * - + 94 AS col0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-4181
SELECT ( 31 ) + CASE + - ( - - COUNT( * ) ) WHEN 36 THEN NULL WHEN - - COUNT( * ) THEN - COUNT( - 66 ) END - + + MIN( ALL - 89 ) * ( - 16 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4181
SELECT ( 31 ) + CASE + - ( - - COUNT ( * ) ) WHEN 36 THEN NULL WHEN - - COUNT ( * ) THEN - COUNT ( - 66 ) END - + + MIN ( ALL - 89 ) * ( - 16 ) AS col0
----
NULL

query II rowsort
SELECT 10 + - + 84, - 0 AS col0
----
-74
0

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

skipif mysql # not compatible
query I rowsort label-4183
SELECT CAST ( NULL AS INTEGER ) / + - 36 col1
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4186
SELECT ALL 67 + ( MIN( COALESCE ( + 87, + - 81, + 10 ) ) )
----
154

skipif mysql # not compatible
query I rowsort label-4186
SELECT ALL 67 + ( MIN ( COALESCE ( + 87, + - 81, + 10 ) ) )
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-4187
SELECT ALL + - 31 + - + 26 + + + 79 + + ( + + ( - 12 ) ) * - COUNT( * ) * COUNT( * )
----
34

skipif mysql # not compatible
query I rowsort label-4187
SELECT ALL + - 31 + - + 26 + + + 79 + + ( + + ( - 12 ) ) * - COUNT ( * ) * COUNT ( * )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4188
SELECT + COUNT( * ) + + 76 + - ( - 89 )
----
166

skipif mysql # not compatible
query I rowsort label-4188
SELECT + COUNT ( * ) + + 76 + - ( - 89 )
----
166

query I rowsort
SELECT DISTINCT 10 + 42 AS col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4190
SELECT + NULLIF ( + 70, COALESCE ( + - 78, - 85 * - - 27, + - SUM( + 30 ) ) ) * 68 + - 51 * COALESCE ( 34, - 3 ) * + 83 AS col2
----
-139162

skipif mysql # not compatible
query I rowsort label-4190
SELECT + NULLIF ( + 70, COALESCE ( + - 78, - 85 * - - 27, + - SUM ( + 30 ) ) ) * 68 + - 51 * COALESCE ( 34, - 3 ) * + 83 AS col2
----
-139162

onlyif mysql # aggregate syntax: 
query II rowsort label-4191
SELECT ALL + 80 + - 14 AS col1, SUM( DISTINCT - 65 ) - 62
----
66
-127

skipif mysql # not compatible
query II rowsort label-4191
SELECT ALL + 80 + - 14 AS col1, SUM ( DISTINCT - 65 ) - 62
----
66
-127

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4192
SELECT - CAST( NULL AS SIGNED ) * - - 2 + - + NULLIF ( - + 87, 47 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4192
SELECT - CAST ( NULL AS INTEGER ) * - - 2 + - + NULLIF ( - + 87, 47 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4193
SELECT ALL + - CAST( NULL AS SIGNED ) * + MAX( - - 39 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4193
SELECT ALL + - CAST ( NULL AS INTEGER ) * + MAX ( - - 39 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4194
SELECT ALL - + COUNT( 59 ) - - 26 * - 69
----
-1795

skipif mysql # not compatible
query I rowsort label-4194
SELECT ALL - + COUNT ( 59 ) - - 26 * - 69
----
-1795

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4195
SELECT 17 * - 89 * + + 21 + - + 43 + NULLIF ( + ( - CAST( NULL AS SIGNED ) ), + 5 ) - + + 40 + 13 * 45 * - COUNT( * ) * + - 30 * + 14 / - + 6 + + + ( + - 95 ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4195
SELECT 17 * - 89 * + + 21 + - + 43 + NULLIF ( + ( - CAST ( NULL AS INTEGER ) ), + 5 ) - + + 40 + 13 * 45 * - COUNT ( * ) * + - 30 * + 14 / - + 6 + + + ( + - 95 ) * - COUNT ( * )
----
NULL

query I rowsort
SELECT 47 * + 74
----
3478

onlyif mysql # aggregate syntax: 
query I rowsort label-4197
SELECT ALL - NULLIF ( - CASE COALESCE ( + 94, - - 11 * - 44, - 69, - COUNT( * ) / + 63 ) WHEN + 9 THEN 19 END, + 17 + 77 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4197
SELECT ALL - NULLIF ( - CASE COALESCE ( + 94, - - 11 * - 44, - 69, - COUNT ( * ) / + 63 ) WHEN + 9 THEN 19 END, + 17 + 77 ) AS col1
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4199
SELECT NULLIF ( - + 52, + ( + 97 ) ) DIV 87 * + - 26
----
0

skipif mysql # not compatible
query I rowsort label-4199
SELECT NULLIF ( - + 52, + ( + 97 ) ) / 87 * + - 26
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4200
SELECT - 6 + + CAST( NULL AS SIGNED ) AS col0, COUNT( * ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4200
SELECT - 6 + + CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) AS col0
----
NULL
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4201
SELECT DISTINCT - COUNT( * ) / - 8 * + 64 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4201
SELECT DISTINCT - COUNT ( * ) / - 8 * + 64 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4202
SELECT ALL 57 DIV - - MAX( 92 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4202
SELECT ALL 57 / - - MAX ( 92 ) AS col0
----
0

query I rowsort
SELECT 4 * + 64 AS col1
----
256

onlyif mysql # aggregate syntax: 
query I rowsort label-4204
SELECT 11 + + - 9 * - COUNT( - + 47 ) * 15 + + 44 AS col1
----
190

skipif mysql # not compatible
query I rowsort label-4204
SELECT 11 + + - 9 * - COUNT ( - + 47 ) * 15 + + 44 AS col1
----
190

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4205
SELECT ALL - COALESCE ( + + 31, + 80 + - ( 79 ) + 12 * - CAST( NULL AS SIGNED ) )
----
-31

skipif mysql # not compatible
query I rowsort label-4205
SELECT ALL - COALESCE ( + + 31, + 80 + - ( 79 ) + 12 * - CAST ( NULL AS INTEGER ) )
----
-31

query I rowsort
SELECT 20 + + 87 AS col2
----
107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4207
SELECT DISTINCT CAST( 18 AS SIGNED ) * + 35 + + COUNT( * ) AS col0
----
631

skipif mysql # not compatible
query I rowsort label-4207
SELECT DISTINCT CAST ( 18 AS INTEGER ) * + 35 + + COUNT ( * ) AS col0
----
631

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4208
SELECT DISTINCT + CASE + 83 WHEN - 2 + 6 THEN - 36 WHEN - COUNT( * ) - + - COUNT( * ) THEN 61 ELSE NULL END * 71 * - 27, + CAST( 69 AS SIGNED ) col2
----
NULL
69

skipif mysql # not compatible
query II rowsort label-4208
SELECT DISTINCT + CASE + 83 WHEN - 2 + 6 THEN - 36 WHEN - COUNT ( * ) - + - COUNT ( * ) THEN 61 ELSE NULL END * 71 * - 27, + CAST ( 69 AS INTEGER ) col2
----
NULL
69

query I rowsort
SELECT 4 * + 28 * + 97 col1
----
10864

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4211
SELECT DISTINCT + COUNT( * ) * + ( - - 70 ) * - AVG ( ALL 10 ) * - CASE - NULLIF ( NULLIF ( 94, 95 + + ( 93 ) * CAST( + - COUNT( * ) AS SIGNED ) ), - - 80 ) WHEN - 38 * + 15 THEN + - CASE - MIN( ALL + - 42 ) WHEN + NULLIF ( - COUNT( * ), + + COUNT( * ) ) * 69 * + - 60 + - + NULLIF ( + 70, + 83 ) * 69 * - CASE - CAST( 96 AS DECIMAL ) WHEN 64 + - + 47 THEN - 75 WHEN + - COALESCE ( 4, CAST( NULL AS DECIMAL ) ) * 40 / + - CAST( 72 AS SIGNED ) THEN - 27 * 24 WHEN 5 * - CAST( NULL AS SIGNED ) THEN 10 END * ( 88 ) THEN CAST( 52 AS SIGNED ) END WHEN - 99 + + 73 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4211
SELECT DISTINCT + COUNT ( * ) * + ( - - 70 ) * - AVG ( ALL 10 ) * - CASE - NULLIF ( NULLIF ( 94, 95 + + ( 93 ) * CAST ( + - COUNT ( * ) AS INTEGER ) ), - - 80 ) WHEN - 38 * + 15 THEN + - CASE - MIN ( ALL + - 42 ) WHEN + NULLIF ( - COUNT ( * ), + + COUNT ( * ) ) * 69 * + - 60 + - + NULLIF ( + 70, + 83 ) * 69 * - CASE - CAST ( 96 AS REAL ) WHEN 64 + - + 47 THEN - 75 WHEN + - COALESCE ( 4, CAST ( NULL AS REAL ) ) * 40 / + - CAST ( 72 AS INTEGER ) THEN - 27 * 24 WHEN 5 * - CAST ( NULL AS INTEGER ) THEN 10 END * ( 88 ) THEN CAST ( 52 AS INTEGER ) END WHEN - 99 + + 73 THEN NULL ELSE NULL END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4213
SELECT ALL COUNT( ALL - - 60 )
----
1

skipif mysql # not compatible
query I rowsort label-4213
SELECT ALL COUNT ( ALL - - 60 )
----
1

query I rowsort
SELECT ALL 67 + - + 26 AS col2
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-4215
SELECT 46 AS col0, COUNT( ALL + 85 ) col0
----
46
1

skipif mysql # not compatible
query II rowsort label-4215
SELECT 46 AS col0, COUNT ( ALL + 85 ) col0
----
46
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4217
SELECT ALL - COUNT( * ) + + 25 + + 21 * - - ( - MAX( 43 ) )
----
-879

skipif mysql # not compatible
query I rowsort label-4217
SELECT ALL - COUNT ( * ) + + 25 + + 21 * - - ( - MAX ( 43 ) )
----
-879

query I rowsort
SELECT ALL 61 * - + NULLIF ( - 15, - 3 - - 81 )
----
915

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

skipif mysql # not compatible
query I rowsort label-4219
SELECT - SUM ( + - 98 )
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4220
SELECT COUNT( * ) DIV 27 DIV - - 67, - 5 AS col0
----
0
-5

skipif mysql # not compatible
query II rowsort label-4220
SELECT COUNT ( * ) / 27 / - - 67, - 5 AS col0
----
0
-5

query I rowsort
SELECT 1 - + - 93 + + 62 AS col0
----
156

query I rowsort
SELECT 44 * + 44 col1
----
1936

onlyif mysql # aggregate syntax: 
query I rowsort label-4223
SELECT ALL ( ( 98 ) ) * - COUNT( * ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-4223
SELECT ALL ( ( 98 ) ) * - COUNT ( * ) AS col1
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4224
SELECT - 95 - + 80 + + - 26 * - - COUNT( * ) AS col0
----
-201

skipif mysql # not compatible
query I rowsort label-4224
SELECT - 95 - + 80 + + - 26 * - - COUNT ( * ) AS col0
----
-201

onlyif mysql # aggregate syntax: 
query I rowsort label-4225
SELECT DISTINCT + COUNT( * ) + - 6 * - + 32
----
193

skipif mysql # not compatible
query I rowsort label-4225
SELECT DISTINCT + COUNT ( * ) + - 6 * - + 32
----
193

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4226
SELECT DISTINCT 66 DIV - 46 + 41 AS col1, + 93 + + COALESCE ( - + 26, 43 ) * COUNT( * ) DIV + 29 + 59
----
40
152

skipif mysql # not compatible
query II rowsort label-4226
SELECT DISTINCT 66 / - 46 + 41 AS col1, + 93 + + COALESCE ( - + 26, 43 ) * COUNT ( * ) / + 29 + 59
----
40
152

query I rowsort
SELECT DISTINCT + + 6 AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4228
SELECT + 11 + - COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-4228
SELECT + 11 + - COUNT ( * )
----
10

query II rowsort
SELECT ALL + 82 AS col0, - 63 AS col0
----
82
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-4230
SELECT - 36 * + 5 + + 15 + 69 + + 17 DIV - 42
----
-96

skipif mysql # not compatible
query I rowsort label-4230
SELECT - 36 * + 5 + + 15 + 69 + + 17 / - 42
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4231
SELECT - ( + CAST( - 72 AS SIGNED ) ) * 36
----
2592

skipif mysql # not compatible
query I rowsort label-4231
SELECT - ( + CAST ( - 72 AS INTEGER ) ) * 36
----
2592

onlyif mysql # aggregate syntax: 
query I rowsort label-4232
SELECT + + 36 * 60 + - - SUM( 87 )
----
2247

skipif mysql # not compatible
query I rowsort label-4232
SELECT + + 36 * 60 + - - SUM ( 87 )
----
2247

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4233
SELECT CAST( 61 AS SIGNED ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-4233
SELECT CAST ( 61 AS INTEGER ) AS col0
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4234
SELECT DISTINCT - COALESCE ( + - NULLIF ( - 48, + 89 ), + 72 * NULLIF ( + 22, + - 47 + 96 * + + 7 * - 72 * + 47 + - + 2 * + 74 ), 94 + - COUNT( * ) + + CAST( NULL AS SIGNED ) * - COUNT( * ) ) * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4234
SELECT DISTINCT - COALESCE ( + - NULLIF ( - 48, + 89 ), + 72 * NULLIF ( + 22, + - 47 + 96 * + + 7 * - 72 * + 47 + - + 2 * + 74 ), 94 + - COUNT ( * ) + + CAST ( NULL AS INTEGER ) * - COUNT ( * ) ) * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4235
SELECT ALL - COUNT( * ) * + + 29 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4235
SELECT ALL - COUNT ( * ) * + + 29 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL 51 * - ( - + 38 ) AS col0
----
1938

query I rowsort
SELECT DISTINCT + ( - 5 ) * - 54 + - 8 - 17 col0
----
245

onlyif mysql # aggregate syntax: 
query I rowsort label-4238
SELECT + NULLIF ( - COALESCE ( + COUNT( * ), + - 51, 45 ), + + ( + 44 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4238
SELECT + NULLIF ( - COALESCE ( + COUNT ( * ), + - 51, 45 ), + + ( + 44 ) )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4239
SELECT - 15 DIV - MIN( ALL 30 )
----
0

skipif mysql # not compatible
query I rowsort label-4239
SELECT - 15 / - MIN ( ALL 30 )
----
0

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

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

query II rowsort
SELECT + 86, + 41 AS col0
----
86
41

query I rowsort
SELECT + 3 + 93
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-4243
SELECT COUNT( * ), - COALESCE ( 57, - 36 ) col1
----
1
-57

skipif mysql # not compatible
query II rowsort label-4243
SELECT COUNT ( * ), - COALESCE ( 57, - 36 ) col1
----
1
-57

query I rowsort
SELECT - 79 + + + 73 + 81 * - COALESCE ( - 85, + - ( - + 11 ) ) * 17 AS col1
----
117039

onlyif mysql # DIV for integer division: 
query I rowsort label-4245
SELECT ALL - 78 + 64 DIV + 65
----
-78

skipif mysql # not compatible
query I rowsort label-4245
SELECT ALL - 78 + 64 / + 65
----
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4246
SELECT DISTINCT COUNT( * ) DIV 94 col1
----
0

skipif mysql # not compatible
query I rowsort label-4246
SELECT DISTINCT COUNT ( * ) / 94 col1
----
0

query I rowsort
SELECT - 73 - 51 + 68 AS col1
----
-56

query II rowsort
SELECT 18 AS col0, 42
----
18
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4249
SELECT ALL + COUNT( ALL + - 24 ) / - - 38 / - CAST( NULL AS SIGNED ) / + - 77
----
NULL

skipif mysql # not compatible
query I rowsort label-4249
SELECT ALL + COUNT ( ALL + - 24 ) / - - 38 / - CAST ( NULL AS INTEGER ) / + - 77
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4250
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + CASE + + 28 WHEN + COUNT( ALL + 28 ) + NULLIF ( - + 50, - + 79 - 59 ) + 47 - - - 82 / + 53 / + 17 - CASE 51 WHEN - COUNT( * ) THEN - 69 END THEN + 27 WHEN 14 * - + 2 THEN + CASE 85 WHEN 55 + - + COUNT( * ) - COALESCE ( + 74, 3, - 52 * - 41 / + COUNT( * ) * + + 9 * - + COUNT( * ) - - 33 + + 33 * - 67 ) + + ( + + ( + 85 ) ) THEN NULL WHEN 52 THEN + ( 14 ) END + - 58 / - 72 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4250
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + CASE + + 28 WHEN + COUNT ( ALL + 28 ) + NULLIF ( - + 50, - + 79 - 59 ) + 47 - - - 82 / + 53 / + 17 - CASE 51 WHEN - COUNT ( * ) THEN - 69 END THEN + 27 WHEN 14 * - + 2 THEN + CASE 85 WHEN 55 + - + COUNT ( * ) - COALESCE ( + 74, 3, - 52 * - 41 / + COUNT ( * ) * + + 9 * - + COUNT ( * ) - - 33 + + 33 * - 67 ) + + ( + + ( + 85 ) ) THEN NULL WHEN 52 THEN + ( 14 ) END + - 58 / - 72 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4251
SELECT ALL ( NULLIF ( - 3, - + SUM( 61 ) * NULLIF ( + 8, COALESCE ( + + 2, 51 ) ) ) )
----
-3

skipif mysql # not compatible
query I rowsort label-4251
SELECT ALL ( NULLIF ( - 3, - + SUM ( 61 ) * NULLIF ( + 8, COALESCE ( + + 2, 51 ) ) ) )
----
-3

onlyif mysql # DIV for integer division: 
query III rowsort label-4252
SELECT ALL - 87 * + 95 AS col1, - 70 DIV 40 AS col0, + ( 16 ) + + ( - + 51 ) + + ( 72 ) col0
----
-8265
-1
37

skipif mysql # not compatible
query III rowsort label-4252
SELECT ALL - 87 * + 95 AS col1, - 70 / 40 AS col0, + ( 16 ) + + ( - + 51 ) + + ( 72 ) col0
----
-8265
-1
37

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

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

query II rowsort
SELECT - 37 + - + NULLIF ( + + ( + ( + 60 ) ), - + 76 ) AS col0, 29 AS col2
----
-97
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4255
SELECT - SUM( 28 ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-4255
SELECT - SUM ( 28 ) AS col0
----
-28

query I rowsort
SELECT - NULLIF ( 97, - 46 * 12 ) AS col0
----
-97

query II rowsort
SELECT - - 28, - 32 col0
----
28
-32

query II rowsort
SELECT ALL + 72, COALESCE ( - 21, + - 46 ) col1
----
72
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4259
SELECT ALL + 72 - NULLIF ( + + 22, + - COUNT( DISTINCT + ( + 12 ) ) + - - 43 * - 66 * - COUNT( * ) / CAST( NULL AS SIGNED ) * - 29 / + 30 ) * - 76 AS col2
----
1744

skipif mysql # not compatible
query I rowsort label-4259
SELECT ALL + 72 - NULLIF ( + + 22, + - COUNT ( DISTINCT + ( + 12 ) ) + - - 43 * - 66 * - COUNT ( * ) / CAST ( NULL AS INTEGER ) * - 29 / + 30 ) * - 76 AS col2
----
1744

onlyif mysql # aggregate syntax: 
query I rowsort label-4260
SELECT - COUNT( * ) + - - 86 * 61 * - 18 + 39 + - 36 * + + COUNT( ALL + 21 )
----
-94426

skipif mysql # not compatible
query I rowsort label-4260
SELECT - COUNT ( * ) + - - 86 * 61 * - 18 + 39 + - 36 * + + COUNT ( ALL + 21 )
----
-94426

query I rowsort
SELECT ALL 55 * - - 14
----
770

onlyif mysql # aggregate syntax: 
query I rowsort label-4262
SELECT - COUNT( * ) + - 92 + - 29 * + 10 AS col1
----
-383

skipif mysql # not compatible
query I rowsort label-4262
SELECT - COUNT ( * ) + - 92 + - 29 * + 10 AS col1
----
-383

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4263
SELECT ALL CAST( + ( + + ( - 85 ) ) AS SIGNED ) * 9 - 32
----
-797

skipif mysql # not compatible
query I rowsort label-4263
SELECT ALL CAST ( + ( + + ( - 85 ) ) AS INTEGER ) * 9 - 32
----
-797

onlyif mysql # aggregate syntax: 
query I rowsort label-4264
SELECT + COUNT( * ) + + 42 + 37 + + 33 * + 34 * - + 59 AS col2
----
-66118

skipif mysql # not compatible
query I rowsort label-4264
SELECT + COUNT ( * ) + + 42 + 37 + + 33 * + 34 * - + 59 AS col2
----
-66118

onlyif mysql # DIV for integer division: 
query I rowsort label-4265
SELECT ALL - 37 DIV + ( - - 26 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4265
SELECT ALL - 37 / + ( - - 26 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4266
SELECT + - COUNT( * ) * - 14 * + 94 AS col2
----
1316

skipif mysql # not compatible
query I rowsort label-4266
SELECT + - COUNT ( * ) * - 14 * + 94 AS col2
----
1316

query II rowsort
SELECT + 71 col2, + 82 * 17 * - 13 * - 92
----
71
1667224

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4268
SELECT ALL + + NULLIF ( CAST( NULL AS SIGNED ), + COUNT( * ) + - + 61 - + 48 * CASE - + 44 WHEN - COALESCE ( - COUNT( * ), + COUNT( * ) - - - 3 - 23 * + 74 / - 90, + 52 * + SUM( - - 97 ) + + + COUNT( * ) * + + 66 ) THEN NULL WHEN + 8 + + ( - - COUNT( * ) ) THEN NULL ELSE 28 END + 93 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4268
SELECT ALL + + NULLIF ( CAST ( NULL AS INTEGER ), + COUNT ( * ) + - + 61 - + 48 * CASE - + 44 WHEN - COALESCE ( - COUNT ( * ), + COUNT ( * ) - - - 3 - 23 * + 74 / - 90, + 52 * + SUM ( - - 97 ) + + + COUNT ( * ) * + + 66 ) THEN NULL WHEN + 8 + + ( - - COUNT ( * ) ) THEN NULL ELSE 28 END + 93 )
----
NULL

query I rowsort
SELECT 40 * - 43 + - 88
----
-1808

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4270
SELECT + NULLIF ( - 69, - + 52 + + 65 * ( - 73 ) ) AS col1, - 80 * + SUM( ALL + 81 ) - + 93 DIV - + 66
----
-69
-6479

skipif mysql # not compatible
query II rowsort label-4270
SELECT + NULLIF ( - 69, - + 52 + + 65 * ( - 73 ) ) AS col1, - 80 * + SUM ( ALL + 81 ) - + 93 / - + 66
----
-69
-6479

query I rowsort
SELECT - + 65 + - 40 AS col0
----
-105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4272
SELECT DISTINCT + 28 AS col2, SUM( + NULLIF ( - 66, 64 * - 57 + - 59 + - 91 * + 76 / 99 ) ) * - 58 + + - 87 * + 4 * + CAST( NULL AS SIGNED ) * CAST( 78 AS SIGNED ) + 1 * + + 59 * COUNT( * ) AS col2
----
28
NULL

skipif mysql # not compatible
query II rowsort label-4272
SELECT DISTINCT + 28 AS col2, SUM ( + NULLIF ( - 66, 64 * - 57 + - 59 + - 91 * + 76 / 99 ) ) * - 58 + + - 87 * + 4 * + CAST ( NULL AS INTEGER ) * CAST ( 78 AS INTEGER ) + 1 * + + 59 * COUNT ( * ) AS col2
----
28
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4273
SELECT ALL + + COUNT( DISTINCT + 10 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-4273
SELECT ALL + + COUNT ( DISTINCT + 10 ) col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4274
SELECT DISTINCT + COUNT( * ) AS col0, 1 + - CASE 83 WHEN - 15 + + - 63 * + - COUNT( * ) THEN - 59 WHEN - 44 THEN - 0 ELSE NULLIF ( - 38, + COUNT( * ) * - 45 ) * - - 90 * + 34 + - 45 * - ( 51 ) END AS col1
----
1
113986

skipif mysql # not compatible
query II rowsort label-4274
SELECT DISTINCT + COUNT ( * ) AS col0, 1 + - CASE 83 WHEN - 15 + + - 63 * + - COUNT ( * ) THEN - 59 WHEN - 44 THEN - 0 ELSE NULLIF ( - 38, + COUNT ( * ) * - 45 ) * - - 90 * + 34 + - 45 * - ( 51 ) END AS col1
----
1
113986

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4276
SELECT 81 * - MAX( + 83 ) + + + 39
----
-6684

skipif mysql # not compatible
query I rowsort label-4276
SELECT 81 * - MAX ( + 83 ) + + + 39
----
-6684

query I rowsort
SELECT + CASE - - ( + - 16 ) WHEN + - 21 THEN - 64 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4278
SELECT ( + COUNT( * ) ) AS col0, - 63 * - 64
----
1
4032

skipif mysql # not compatible
query II rowsort label-4278
SELECT ( + COUNT ( * ) ) AS col0, - 63 * - 64
----
1
4032

query I rowsort
SELECT + NULLIF ( + 40, + - 27 + 99 + - 28 - + 83 )
----
40

query II rowsort
SELECT ( - + 44 ) col0, + 61
----
-44
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4281
SELECT ALL + 51 * - 22 + - SUM( + 70 )
----
-1192

skipif mysql # not compatible
query I rowsort label-4281
SELECT ALL + 51 * - 22 + - SUM ( + 70 )
----
-1192

query I rowsort
SELECT + 9 + 40 + + NULLIF ( - 60, + 51 ) + 36 * - 20
----
-731

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4283
SELECT ALL 50 * + 23, COALESCE ( + 49, 56 * 30, - 4 DIV + + COUNT( * ) * 81 ) AS col0
----
1150
49

skipif mysql # not compatible
query II rowsort label-4283
SELECT ALL 50 * + 23, COALESCE ( + 49, 56 * 30, - 4 / + + COUNT ( * ) * 81 ) AS col0
----
1150
49

query I rowsort
SELECT ALL + NULLIF ( 42, - + 84 + + - ( + NULLIF ( - - 80, + 77 / 3 + + 85 + NULLIF ( - + 96, + - 22 ) + + - 80 ) ) / 82 ) AS col0
----
42

query I rowsort
SELECT + 43 * - 57 + 68 AS col1
----
-2383

onlyif mysql # aggregate syntax: 
query I rowsort label-4286
SELECT CASE 77 WHEN + 50 THEN + - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4286
SELECT CASE 77 WHEN + 50 THEN + - COUNT ( * ) END
----
NULL

query II rowsort
SELECT 47 * + 91 + - 78 AS col2, 70 * - 56
----
4199
-3920

query II rowsort
SELECT 83 * + - 8 AS col1, 65
----
-664
65

query II rowsort
SELECT DISTINCT - 2 - + - 57, 55 AS col0
----
55
55

query II rowsort
SELECT ALL - - 20 - + 36 AS col1, + 95 * 1 AS col0
----
-16
95

query I rowsort
SELECT + 91 * ( + 33 )
----
3003

onlyif mysql # DIV for integer division: 
query I rowsort label-4292
SELECT - 0 DIV + 74 * - 73 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4292
SELECT - 0 / + 74 * - 73 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4293
SELECT DISTINCT + + 7 * + COUNT( * ) + 61 AS col2
----
68

skipif mysql # not compatible
query I rowsort label-4293
SELECT DISTINCT + + 7 * + COUNT ( * ) + 61 AS col2
----
68

query I rowsort
SELECT ALL - - 44 * + 10 - - 27 * + + 5 AS col0
----
575

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4296
SELECT - MAX( + - 65 ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-4296
SELECT - MAX ( + - 65 ) AS col2
----
65

onlyif mysql # DIV for integer division: 
query II rowsort label-4297
SELECT 32 - + CASE 50 WHEN + 2 + - + 44 * + + 27 THEN - 96 WHEN + + 39 THEN - 89 WHEN 42 THEN NULL ELSE + 16 END DIV + - 38, 19 AS col1
----
32
19

skipif mysql # not compatible
query II rowsort label-4297
SELECT 32 - + CASE 50 WHEN + 2 + - + 44 * + + 27 THEN - 96 WHEN + + 39 THEN - 89 WHEN 42 THEN NULL ELSE + 16 END / + - 38, 19 AS col1
----
32
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4298
SELECT + COUNT( - 56 ) * - + 68 col2
----
-68

skipif mysql # not compatible
query I rowsort label-4298
SELECT + COUNT ( - 56 ) * - + 68 col2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4299
SELECT ALL + NULLIF ( + - ( - 54 ), + 23 + + - COUNT( * ) )
----
54

skipif mysql # not compatible
query I rowsort label-4299
SELECT ALL + NULLIF ( + - ( - 54 ), + 23 + + - COUNT ( * ) )
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-4300
SELECT + ( - 96 ) + + 63 + + + 45 - - - 5 * + + COUNT( * ) * + - 70 + COALESCE ( - ( + 49 ), + ( + 27 ) ) + 73, MAX( + + 2 ) + - ( + 39 ) AS col2
----
386
-37

skipif mysql # not compatible
query II rowsort label-4300
SELECT + ( - 96 ) + + 63 + + + 45 - - - 5 * + + COUNT ( * ) * + - 70 + COALESCE ( - ( + 49 ), + ( + 27 ) ) + 73, MAX ( + + 2 ) + - ( + 39 ) AS col2
----
386
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-4301
SELECT - MAX( + - 64 ) * + MIN( ALL - 54 ) - - 51
----
-3405

skipif mysql # not compatible
query I rowsort label-4301
SELECT - MAX ( + - 64 ) * + MIN ( ALL - 54 ) - - 51
----
-3405

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4302
SELECT COUNT( * ) * 19 DIV 6
----
3

skipif mysql # not compatible
query I rowsort label-4302
SELECT COUNT ( * ) * 19 / 6
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4303
SELECT 20 DIV COALESCE ( + 20, + 19 + + 43 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4303
SELECT 20 / COALESCE ( + 20, + 19 + + 43 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4304
SELECT DISTINCT ( + COUNT( * ) ) + + 38 AS col1
----
39

skipif mysql # not compatible
query I rowsort label-4304
SELECT DISTINCT ( + COUNT ( * ) ) + + 38 AS col1
----
39

query I rowsort
SELECT DISTINCT - 32 + 5
----
-27

query I rowsort
SELECT 55 * + + 75
----
4125

query I rowsort
SELECT - 95 * + 61 + - 87 AS col1
----
-5882

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4308
SELECT - 1 * 24 * + + CAST( NULL AS SIGNED ) + 22 * + 27 * - COUNT( * ) / - + 64 * 52, 83 AS col2
----
NULL
83

skipif mysql # not compatible
query II rowsort label-4308
SELECT - 1 * 24 * + + CAST ( NULL AS INTEGER ) + 22 * + 27 * - COUNT ( * ) / - + 64 * 52, 83 AS col2
----
NULL
83

query II rowsort
SELECT + 5 AS col2, - 19 * + 96 AS col2
----
5
-1824

onlyif mysql # aggregate syntax: 
query I rowsort label-4310
SELECT SUM( + - 72 ) + 71 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4310
SELECT SUM ( + - 72 ) + 71 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4311
SELECT COUNT( * ) * - 85 AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-4311
SELECT COUNT ( * ) * - 85 AS col2
----
-85

query II rowsort
SELECT - 76, 52 AS col2
----
-76
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4313
SELECT DISTINCT 49 * SUM( - 47 ) + + + 34 * 49
----
-637

skipif mysql # not compatible
query I rowsort label-4313
SELECT DISTINCT 49 * SUM ( - 47 ) + + + 34 * 49
----
-637

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

skipif mysql # not compatible
query I rowsort label-4314
SELECT - MAX ( + 93 )
----
-93

query I rowsort
SELECT 68 + + 0 AS col2
----
68

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4316
SELECT + 51 + - - 69 / + 46 + + CAST( - 68 AS DECIMAL ) + - CASE 13 WHEN + 43 THEN + COUNT( * ) ELSE + 66 + CASE - COALESCE ( - + 36, + 24 ) WHEN 3 * + 18 THEN NULL WHEN ( + 58 ) THEN - CASE - - COUNT( * ) WHEN + 57 + - - 0 * - 27 * + 98 THEN - 44 + - 23 + + ( + 60 ) END WHEN - 89 THEN - 78 * - 42 - + 87 END / 87 END - 42 * + - NULLIF ( + AVG ( + 75 ), + 73 ) * - + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-4316
SELECT + 51 + - - 69 / + 46 + + CAST ( - 68 AS REAL ) + - CASE 13 WHEN + 43 THEN + COUNT ( * ) ELSE + 66 + CASE - COALESCE ( - + 36, + 24 ) WHEN 3 * + 18 THEN NULL WHEN ( + 58 ) THEN - CASE - - COUNT ( * ) WHEN + 57 + - - 0 * - 27 * + 98 THEN - 44 + - 23 + + ( + 60 ) END WHEN - 89 THEN - 78 * - 42 - + 87 END / 87 END - 42 * + - NULLIF ( + AVG ( + 75 ), + 73 ) * - + 29
----
NULL

query I rowsort
SELECT + 25 + - 57
----
-32

query I rowsort
SELECT - 64 + + - 32
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4319
SELECT - COUNT( * ) - CASE 26 WHEN + - MAX( ( + 83 ) ) / 89 * - + 53 + - COUNT( * ) THEN - + 5 * ( - + ( - 92 ) ) - + 86 / - COUNT( * ) END + 70 + + 77 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4319
SELECT - COUNT ( * ) - CASE 26 WHEN + - MAX ( ( + 83 ) ) / 89 * - + 53 + - COUNT ( * ) THEN - + 5 * ( - + ( - 92 ) ) - + 86 / - COUNT ( * ) END + 70 + + 77 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 18 + + 74 - NULLIF ( 45, 8 + - + 49 ) * + + 87
----
-3823

onlyif mysql # aggregate syntax: 
query I rowsort label-4321
SELECT ALL SUM( - 99 ) + + 46 AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-4321
SELECT ALL SUM ( - 99 ) + + 46 AS col1
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-4322
SELECT DISTINCT + 38 + 50 DIV 7 * - 53
----
-333

skipif mysql # not compatible
query I rowsort label-4322
SELECT DISTINCT + 38 + 50 / 7 * - 53
----
-333

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4323
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - - 32 + - ( + CAST( + - 66 AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4323
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - - 32 + - ( + CAST ( + - 66 AS INTEGER ) ) AS col2
----
NULL

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

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

query I rowsort
SELECT 16 + - 28 + - 4 + 99
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-4326
SELECT NULLIF ( ( - 95 ), + - 98 DIV + 66 ) DIV - 12 + - 43 col0
----
-36

skipif mysql # not compatible
query I rowsort label-4326
SELECT NULLIF ( ( - 95 ), + - 98 / + 66 ) / - 12 + - 43 col0
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4327
SELECT - CAST( - ( - + CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col0, COUNT( + 75 )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4327
SELECT - CAST ( - ( - + CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col0, COUNT ( + 75 )
----
NULL
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4329
SELECT ALL + 18 + SUM( + 97 )
----
115

skipif mysql # not compatible
query I rowsort label-4329
SELECT ALL + 18 + SUM ( + 97 )
----
115

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4330
SELECT 18 DIV 40 + + NULLIF ( + COUNT( * ), + 42 ) * + ( COUNT( * ) ) AS col0, 53 col2
----
1
53

skipif mysql # not compatible
query II rowsort label-4330
SELECT 18 / 40 + + NULLIF ( + COUNT ( * ), + 42 ) * + ( COUNT ( * ) ) AS col0, 53 col2
----
1
53

query I rowsort
SELECT 23 * + - 41 AS col0
----
-943

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4332
SELECT + 17 DIV - 3 + ( - 71 ) AS col2, - 83 + 91 + - COUNT( * )
----
-76
7

skipif mysql # not compatible
query II rowsort label-4332
SELECT + 17 / - 3 + ( - 71 ) AS col2, - 83 + 91 + - COUNT ( * )
----
-76
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4333
SELECT DISTINCT - 2 * - 12 + + 52 + - + 42 - + 65 * COUNT( * ) col0
----
-31

skipif mysql # not compatible
query I rowsort label-4333
SELECT DISTINCT - 2 * - 12 + + 52 + - + 42 - + 65 * COUNT ( * ) col0
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4334
SELECT + 92 * + + 17 + 3 DIV COUNT( * )
----
1567

skipif mysql # not compatible
query I rowsort label-4334
SELECT + 92 * + + 17 + 3 / COUNT ( * )
----
1567

onlyif mysql # aggregate syntax: 
query I rowsort label-4335
SELECT DISTINCT COUNT( * ) * + + 39 - - COUNT( * )
----
40

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

query I rowsort
SELECT DISTINCT - ( - 61 ) col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4337
SELECT CASE 50 WHEN - + 22 + + - ( + COALESCE ( - + 11, - 8 * + 3, + 82 * - 13 + 62 + - - COUNT( * ) * 70 * + 1 ) ) - 26 THEN 23 + - - COUNT( * ) WHEN ( + 63 ) + + + AVG ( + 4 ) * 91 THEN NULL ELSE NULL END * - 3 + NULLIF ( + 17, + 77 * - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4337
SELECT CASE 50 WHEN - + 22 + + - ( + COALESCE ( - + 11, - 8 * + 3, + 82 * - 13 + 62 + - - COUNT ( * ) * 70 * + 1 ) ) - 26 THEN 23 + - - COUNT ( * ) WHEN ( + 63 ) + + + AVG ( + 4 ) * 91 THEN NULL ELSE NULL END * - 3 + NULLIF ( + 17, + 77 * - COUNT ( * ) )
----
NULL

query I rowsort
SELECT ALL + 56 * 29
----
1624

onlyif mysql # aggregate syntax: 
query I rowsort label-4339
SELECT COUNT( DISTINCT - + COALESCE ( + 78, + 23 ) ) * - 9 * - 65 - - 33 * 32 AS col1
----
1641

skipif mysql # not compatible
query I rowsort label-4339
SELECT COUNT ( DISTINCT - + COALESCE ( + 78, + 23 ) ) * - 9 * - 65 - - 33 * 32 AS col1
----
1641

onlyif mysql # aggregate syntax: 
query I rowsort label-4340
SELECT DISTINCT 60 * - COUNT( ALL - + 37 ) - - 65 - - NULLIF ( 73, - 72 ) + - 79 * + - 83 AS col2
----
6635

skipif mysql # not compatible
query I rowsort label-4340
SELECT DISTINCT 60 * - COUNT ( ALL - + 37 ) - - 65 - - NULLIF ( 73, - 72 ) + - 79 * + - 83 AS col2
----
6635

onlyif mysql # aggregate syntax: 
query I rowsort label-4341
SELECT ALL - 29 * - 75 * + COUNT( - + 57 )
----
2175

skipif mysql # not compatible
query I rowsort label-4341
SELECT ALL - 29 * - 75 * + COUNT ( - + 57 )
----
2175

query I rowsort
SELECT - 67 * - - 12
----
-804

query I rowsort
SELECT DISTINCT - 38 * - ( - 94 ) AS col0
----
-3572

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4345
SELECT ALL COUNT( * ) DIV - 8 col2
----
0

skipif mysql # not compatible
query I rowsort label-4345
SELECT ALL COUNT ( * ) / - 8 col2
----
0

query I rowsort
SELECT - + 35 * - + 25 AS col2
----
875

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

skipif mysql # not compatible
query I rowsort label-4347
SELECT - SUM ( + 97 )
----
-97

query I rowsort
SELECT + 18 + + + 23 col1
----
41

query I rowsort
SELECT + 23 * + + 52 AS col1
----
1196

query I rowsort
SELECT + 62 * + + 73 * + 39 AS col1
----
176514

query I rowsort
SELECT + 32 + - 57 * - 6 AS col2
----
374

query I rowsort
SELECT ALL - 58 * - + 65 - - - 82 + + ( 85 ) - + 1 * 46 AS col2
----
3727

onlyif mysql # aggregate syntax: 
query I rowsort label-4353
SELECT DISTINCT + COUNT( * ) + 87 + ( - 72 ) * 88 * + - 64 AS col0
----
405592

skipif mysql # not compatible
query I rowsort label-4353
SELECT DISTINCT + COUNT ( * ) + 87 + ( - 72 ) * 88 * + - 64 AS col0
----
405592

onlyif mysql # aggregate syntax: 
query I rowsort label-4354
SELECT ALL - - MIN( ALL 56 ) + - 46 * - COUNT( * ) * + + 90 AS col1
----
4196

skipif mysql # not compatible
query I rowsort label-4354
SELECT ALL - - MIN ( ALL 56 ) + - 46 * - COUNT ( * ) * + + 90 AS col1
----
4196

query I rowsort
SELECT + 89 * + 20 AS col0
----
1780

query I rowsort
SELECT + - 53 * + 19
----
-1007

query I rowsort
SELECT + 64 * - 77 AS col1
----
-4928

onlyif mysql # aggregate syntax: 
query I rowsort label-4358
SELECT ALL 8 + + - COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-4358
SELECT ALL 8 + + - COUNT ( * )
----
7

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

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

query I rowsort
SELECT + 63 + + 5 AS col1
----
68

query I rowsort
SELECT - 69 * - + 27 * + + ( - 77 ) AS col1
----
-143451

onlyif mysql # DIV for integer division: 
query I rowsort label-4362
SELECT ALL 75 DIV + + 10
----
7

skipif mysql # not compatible
query I rowsort label-4362
SELECT ALL 75 / + + 10
----
7

query II rowsort
SELECT - NULLIF ( 49, - 98 ), 59 col2
----
-49
59

query II rowsort
SELECT ALL 18 col2, 55 + 31 + 47
----
18
133

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4366
SELECT ALL 39 DIV + 97
----
0

skipif mysql # not compatible
query I rowsort label-4366
SELECT ALL 39 / + 97
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4367
SELECT ( - SUM( DISTINCT 51 ) ), + ( COUNT( 42 ) ) AS col0
----
-51
1

skipif mysql # not compatible
query II rowsort label-4367
SELECT ( - SUM ( DISTINCT 51 ) ), + ( COUNT ( 42 ) ) AS col0
----
-51
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4368
SELECT ( - COUNT( * ) ) DIV 90 + + 27 + + + 48 AS col2, 97
----
75
97

skipif mysql # not compatible
query II rowsort label-4368
SELECT ( - COUNT ( * ) ) / 90 + + 27 + + + 48 AS col2, 97
----
75
97

query I rowsort
SELECT ALL + 69 * 70 * + + 87 col1
----
420210

query I rowsort
SELECT - 25 * + 70 + - 61 * + - 24 AS col0
----
-286

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4371
SELECT ALL + COUNT( * ) col0, 57 + + + 38 + - 51 + - 29 + - - CASE - 45 WHEN 30 THEN NULL ELSE 47 + - 84 END * - + 89 / + CASE + ( + - 68 ) WHEN + - 76 / - CAST( COUNT( * ) AS SIGNED ) + - + 58 THEN 41 ELSE NULL END
----
1
NULL

skipif mysql # not compatible
query II rowsort label-4371
SELECT ALL + COUNT ( * ) col0, 57 + + + 38 + - 51 + - 29 + - - CASE - 45 WHEN 30 THEN NULL ELSE 47 + - 84 END * - + 89 / + CASE + ( + - 68 ) WHEN + - 76 / - CAST ( COUNT ( * ) AS INTEGER ) + - + 58 THEN 41 ELSE NULL END
----
1
NULL

query I rowsort
SELECT DISTINCT 32 * - 51
----
-1632

query I rowsort
SELECT - 43 * + ( - 92 )
----
3956

query I rowsort
SELECT DISTINCT + NULLIF ( + 29, + 60 )
----
29

query I rowsort
SELECT COALESCE ( + 49, + - 33 ) AS col2
----
49

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

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

query I rowsort
SELECT COALESCE ( + + 21, + ( - 13 ) - + 57, - 95 + 59 ) AS col0
----
21

query I rowsort
SELECT DISTINCT + - NULLIF ( 78, + + ( + 9 ) )
----
-78

query I rowsort
SELECT 48 * - 40 + + 34
----
-1886

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

skipif mysql # not compatible
query I rowsort label-4380
SELECT + 25 * - - 0 + - COUNT ( * ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4381
SELECT - - MAX( ALL - 59 ) + + 87 AS col2
----
28

skipif mysql # not compatible
query I rowsort label-4381
SELECT - - MAX ( ALL - 59 ) + + 87 AS col2
----
28

query I rowsort
SELECT + + 93 * - 31 col1
----
-2883

query I rowsort
SELECT - 82 + - 1 col2
----
-83

query I rowsort
SELECT - 96 + - 83 AS col0
----
-179

onlyif mysql # aggregate syntax: 
query I rowsort label-4385
SELECT - MIN( + - 55 ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-4385
SELECT - MIN ( + - 55 ) AS col0
----
55

query I rowsort
SELECT ALL - - ( + CASE - + 49 WHEN 48 THEN + 0 ELSE - - 7 * + 32 END ) + + 90 AS col2
----
314

query I rowsort
SELECT - 49 + 17 - - 82 * + ( 52 ) + 5 * 64 * - 22
----
-2808

onlyif mysql # aggregate syntax: 
query I rowsort label-4388
SELECT + - 66 * 21 + COUNT( * ) + - 48 * 11 + + - 83
----
-1996

skipif mysql # not compatible
query I rowsort label-4388
SELECT + - 66 * 21 + COUNT ( * ) + - 48 * 11 + + - 83
----
-1996

query I rowsort
SELECT - + 97 + + - 51
----
-148

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

query I rowsort
SELECT - - ( 38 ) + + 35 AS col2
----
73

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

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

query I rowsort
SELECT + 10 + - - ( 91 )
----
101

query I rowsort
SELECT - 21 * + 47
----
-987

query I rowsort
SELECT + 27 * + + 77 AS col0
----
2079

query II rowsort
SELECT ALL 33 * + 82, - 7 * + 72 + - 51 AS col1
----
2706
-555

query II rowsort
SELECT 87 AS col0, 12 + - 75 AS col1
----
87
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-4398
SELECT - 83 * - 22 + COUNT( * ) AS col0
----
1827

skipif mysql # not compatible
query I rowsort label-4398
SELECT - 83 * - 22 + COUNT ( * ) AS col0
----
1827

onlyif mysql # aggregate syntax: 
query I rowsort label-4399
SELECT DISTINCT 27 - ( - COALESCE ( + - 66, MIN( ALL - + 19 ) ) ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-4399
SELECT DISTINCT 27 - ( - COALESCE ( + - 66, MIN ( ALL - + 19 ) ) ) AS col2
----
-39

query II rowsort
SELECT 73 AS col0, + 85
----
73
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4401
SELECT ALL - COUNT( * ) AS col0, 47 * - 96 DIV + 1 AS col1
----
-1
-4512

skipif mysql # not compatible
query II rowsort label-4401
SELECT ALL - COUNT ( * ) AS col0, 47 * - 96 / + 1 AS col1
----
-1
-4512

query II rowsort
SELECT DISTINCT - 6 AS col1, 87 AS col1
----
-6
87

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4403
SELECT CASE + 13 WHEN - CAST( NULL AS SIGNED ) + - 17 THEN + - 63 WHEN - 83 THEN NULL WHEN COALESCE ( ( + + 47 ), + CAST( 44 AS DECIMAL ) ) THEN NULL END + 69 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4403
SELECT CASE + 13 WHEN - CAST ( NULL AS INTEGER ) + - 17 THEN + - 63 WHEN - 83 THEN NULL WHEN COALESCE ( ( + + 47 ), + CAST ( 44 AS REAL ) ) THEN NULL END + 69 col0
----
NULL

query II rowsort
SELECT + 1 AS col0, - 78
----
1
-78

query I rowsort
SELECT DISTINCT 84 + 88 AS col0
----
172

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4406
SELECT ALL 19 + - 3 - + SUM( ALL - + 13 ) * + 18 * + + 1 + + 55 AS col2, 41 - - 77 + + 20 DIV + - 84 AS col1
----
305
118

skipif mysql # not compatible
query II rowsort label-4406
SELECT ALL 19 + - 3 - + SUM ( ALL - + 13 ) * + 18 * + + 1 + + 55 AS col2, 41 - - 77 + + 20 / + - 84 AS col1
----
305
118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4407
SELECT + CAST( - 35 AS SIGNED ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-4407
SELECT + CAST ( - 35 AS INTEGER ) AS col0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-4408
SELECT + COUNT( DISTINCT + 36 ) + + 0 * - + 91 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4408
SELECT + COUNT ( DISTINCT + 36 ) + + 0 * - + 91 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4409
SELECT ALL + - 6 + + COUNT( * ) - 4 * + 40 * - - COALESCE ( - 26, 71 ) * - 82 * - 47 * 81
----
1298643835

skipif mysql # not compatible
query I rowsort label-4409
SELECT ALL + - 6 + + COUNT ( * ) - 4 * + 40 * - - COALESCE ( - 26, 71 ) * - 82 * - 47 * 81
----
1298643835

query II rowsort
SELECT + - 53, - 5 * 29 AS col0
----
-53
-145

query I rowsort
SELECT - 0 + - 10 - + - ( - 5 )
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-4412
SELECT ALL - 64 * 28 DIV 3 AS col1
----
-597

skipif mysql # not compatible
query I rowsort label-4412
SELECT ALL - 64 * 28 / 3 AS col1
----
-597

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4414
SELECT ALL - + COUNT( + 24 ) + 44 - + 50 + + + ( + 47 ) * 96 AS col2
----
4505

skipif mysql # not compatible
query I rowsort label-4414
SELECT ALL - + COUNT ( + 24 ) + 44 - + 50 + + + ( + 47 ) * 96 AS col2
----
4505

query I rowsort
SELECT DISTINCT ( + - 36 ) * 6 AS col2
----
-216

onlyif mysql # aggregate syntax: 
query II rowsort label-4416
SELECT ALL - - 27 AS col1, 14 * COUNT( * ) * + + 87 AS col0
----
27
1218

skipif mysql # not compatible
query II rowsort label-4416
SELECT ALL - - 27 AS col1, 14 * COUNT ( * ) * + + 87 AS col0
----
27
1218

query I rowsort
SELECT NULLIF ( 36, - 57 )
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4418
SELECT + 51 AS col1, + CAST( NULL AS SIGNED ) * - 27 * + 68 * 66 AS col0
----
51
NULL

skipif mysql # not compatible
query II rowsort label-4418
SELECT + 51 AS col1, + CAST ( NULL AS INTEGER ) * - 27 * + 68 * 66 AS col0
----
51
NULL

query II rowsort
SELECT ALL - 35, - 87 + - 40 + COALESCE ( - 5, + 4 ) AS col0
----
-35
-132

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4420
SELECT DISTINCT + + 64 + + 9 DIV - COUNT( * ) + 88, + 25 AS col2
----
143
25

skipif mysql # not compatible
query II rowsort label-4420
SELECT DISTINCT + + 64 + + 9 / - COUNT ( * ) + 88, + 25 AS col2
----
143
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4421
SELECT ALL - + COUNT( * ) + - - CAST( - - 84 AS SIGNED ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-4421
SELECT ALL - + COUNT ( * ) + - - CAST ( - - 84 AS INTEGER ) AS col2
----
83

query I rowsort
SELECT + 19 * + CASE + 91 WHEN - + 35 THEN + NULLIF ( + 27, 11 ) + + - 1 + + - 89 + - 50 * - 98 + - + 10 * - - 8 ELSE - 84 END * - - 50 AS col2
----
-79800

query I rowsort
SELECT ALL + 6 + 86 AS col2
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4424
SELECT - CASE - - 9 WHEN + 27 THEN 10 + 6 WHEN - COUNT( * ) * + COUNT( * ) * + 52 + CAST( NULL AS SIGNED ) * - 52 * - 0 THEN NULL END, 94 * + ( - 85 ) AS col1
----
NULL
-7990

skipif mysql # not compatible
query II rowsort label-4424
SELECT - CASE - - 9 WHEN + 27 THEN 10 + 6 WHEN - COUNT ( * ) * + COUNT ( * ) * + 52 + CAST ( NULL AS INTEGER ) * - 52 * - 0 THEN NULL END, 94 * + ( - 85 ) AS col1
----
NULL
-7990

onlyif mysql # DIV for integer division: 
query I rowsort label-4425
SELECT 2 DIV - 28
----
0

skipif mysql # not compatible
query I rowsort label-4425
SELECT 2 / - 28
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4426
SELECT ALL - CAST( NULL AS SIGNED ) * - + 94 col1, - 55
----
NULL
-55

skipif mysql # not compatible
query II rowsort label-4426
SELECT ALL - CAST ( NULL AS INTEGER ) * - + 94 col1, - 55
----
NULL
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-4427
SELECT - + COALESCE ( 64, - 67 * - 53 DIV + 42 )
----
-64

skipif mysql # not compatible
query I rowsort label-4427
SELECT - + COALESCE ( 64, - 67 * - 53 / + 42 )
----
-64

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4429
SELECT ALL + 65 - - + ( NULLIF ( - CAST( NULL AS SIGNED ), - 52 * + 66 * + 79 ) ) + + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-4429
SELECT ALL + 65 - - + ( NULLIF ( - CAST ( NULL AS INTEGER ), - 52 * + 66 * + 79 ) ) + + 19
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4430
SELECT - 83 * - MIN( DISTINCT - CAST( NULL AS SIGNED ) ) - + 63 * ( - + 39 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4430
SELECT - 83 * - MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) - + 63 * ( - + 39 )
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4432
SELECT 29 DIV 69 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4432
SELECT 29 / 69 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4433
SELECT 39 - - + 24 AS col2, COUNT( * ) / + CASE - - 51 WHEN - 31 / - ( - AVG ( ALL + ( + 84 ) ) ) + 26 / + 79 - + ( + 33 ) + - + 52 * - - 13 * + 26 - 33 THEN NULL WHEN 64 THEN - - 3 + - ( - 91 ) ELSE NULL END AS col2
----
63
NULL

skipif mysql # not compatible
query II rowsort label-4433
SELECT 39 - - + 24 AS col2, COUNT ( * ) / + CASE - - 51 WHEN - 31 / - ( - AVG ( ALL + ( + 84 ) ) ) + 26 / + 79 - + ( + 33 ) + - + 52 * - - 13 * + 26 - 33 THEN NULL WHEN 64 THEN - - 3 + - ( - 91 ) ELSE NULL END AS col2
----
63
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4434
SELECT 74 * 5, COUNT( * ) col1
----
370
1

skipif mysql # not compatible
query II rowsort label-4434
SELECT 74 * 5, COUNT ( * ) col1
----
370
1

query I rowsort
SELECT 58 + - 45 + - - 59 * + - 62 * + ( 0 )
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4436
SELECT 64 * + - COUNT( * ) DIV + COUNT( * ), - MIN( DISTINCT - - 26 ) * COUNT( - COALESCE ( - - 87, 63 + - - COALESCE ( + + 13, + 21 + 61 ) + 18 ) ) AS col2
----
-64
-26

skipif mysql # not compatible
query II rowsort label-4436
SELECT 64 * + - COUNT ( * ) / + COUNT ( * ), - MIN ( DISTINCT - - 26 ) * COUNT ( - COALESCE ( - - 87, 63 + - - COALESCE ( + + 13, + 21 + 61 ) + 18 ) ) AS col2
----
-64
-26

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4437
SELECT DISTINCT 79 * 5 AS col1, - 78 * - 86 + + 8 * - 60 / + - AVG ( ALL - - 30 ) * + 50 + - CAST( NULL AS DECIMAL ) AS col2
----
395
NULL

skipif mysql # not compatible
query II rowsort label-4437
SELECT DISTINCT 79 * 5 AS col1, - 78 * - 86 + + 8 * - 60 / + - AVG ( ALL - - 30 ) * + 50 + - CAST ( NULL AS REAL ) AS col2
----
395
NULL

query I rowsort
SELECT ALL 32 * + 36 * - - 39 * 87
----
3908736

query I rowsort
SELECT ALL 78 + - 41 AS col2
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4440
SELECT ALL + + CAST( + - 45 AS SIGNED ) + + 48 + + ( + - 54 ) * + ( - COUNT( * ) ) * - + 47
----
-2535

skipif mysql # not compatible
query I rowsort label-4440
SELECT ALL + + CAST ( + - 45 AS INTEGER ) + + 48 + + ( + - 54 ) * + ( - COUNT ( * ) ) * - + 47
----
-2535

onlyif mysql # aggregate syntax: 
query I rowsort label-4441
SELECT ALL 68 + - 31 * + - MIN( - - 63 )
----
2021

skipif mysql # not compatible
query I rowsort label-4441
SELECT ALL 68 + - 31 * + - MIN ( - - 63 )
----
2021

query I rowsort
SELECT DISTINCT ( + - ( - 44 ) ) + + 90 col1
----
134

query II rowsort
SELECT 60 * - 44 AS col2, 88 AS col0
----
-2640
88

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4445
SELECT 30 * - 51 + - 65 + - - 58 * 73 DIV - + 73
----
-1653

skipif mysql # not compatible
query I rowsort label-4445
SELECT 30 * - 51 + - 65 + - - 58 * 73 / - + 73
----
-1653

query II rowsort
SELECT 39 * 99, 38 + + ( - 60 ) col1
----
3861
-22

query I rowsort
SELECT 70 + - + 89 AS col1
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4448
SELECT 16 + 72 * + CAST( NULL AS SIGNED ) * - - 1 * + + COUNT( - 70 ) - - SUM( - - ( + 51 ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4448
SELECT 16 + 72 * + CAST ( NULL AS INTEGER ) * - - 1 * + + COUNT ( - 70 ) - - SUM ( - - ( + 51 ) ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4449
SELECT ALL - COUNT( DISTINCT + - 51 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-4449
SELECT ALL - COUNT ( DISTINCT + - 51 ) col0
----
-1

query I rowsort
SELECT 9 * - - 99 AS col1
----
891

query I rowsort
SELECT ALL 41 * 90
----
3690

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4452
SELECT ALL + 28 DIV - 82 * + - COALESCE ( - - 37, - CAST( NULL AS SIGNED ) * - 49 ) AS col2, 12 AS col2
----
0
12

skipif mysql # not compatible
query II rowsort label-4452
SELECT ALL + 28 / - 82 * + - COALESCE ( - - 37, - CAST ( NULL AS INTEGER ) * - 49 ) AS col2, 12 AS col2
----
0
12

query II rowsort
SELECT - 25 AS col1, + 93
----
-25
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4454
SELECT - CASE - 48 WHEN + + 28 + - 50 THEN NULL WHEN + + MIN( DISTINCT 32 ) THEN NULL WHEN + 83 THEN - 93 + - + 24 + - + ( + 40 ) END / + 27 * - - 98 + - + ( - + 86 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4454
SELECT - CASE - 48 WHEN + + 28 + - 50 THEN NULL WHEN + + MIN ( DISTINCT 32 ) THEN NULL WHEN + 83 THEN - 93 + - + 24 + - + ( + 40 ) END / + 27 * - - 98 + - + ( - + 86 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4455
SELECT ALL NULLIF ( - 36, + - 72 * - 93 * + + COALESCE ( + - COALESCE ( 50, - - 95 * 40 + 7 * + 77 * - 53 ), COUNT( * ) / - 62, - 16, + 83 + - 96 * 24 * + - AVG ( ALL + 88 ) ) + + + 40 + - 65 )
----
-36

skipif mysql # not compatible
query I rowsort label-4455
SELECT ALL NULLIF ( - 36, + - 72 * - 93 * + + COALESCE ( + - COALESCE ( 50, - - 95 * 40 + 7 * + 77 * - 53 ), COUNT ( * ) / - 62, - 16, + 83 + - 96 * 24 * + - AVG ( ALL + 88 ) ) + + + 40 + - 65 )
----
-36

query II rowsort
SELECT DISTINCT - 56 + + - 24 - - - 82 col1, - 54
----
-162
-54

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4458
SELECT - 73 DIV - NULLIF ( - + 99, + - 69 )
----
0

skipif mysql # not compatible
query I rowsort label-4458
SELECT - 73 / - NULLIF ( - + 99, + - 69 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4459
SELECT - CAST( - 41 AS SIGNED ) * 86 * 16
----
56416

skipif mysql # not compatible
query I rowsort label-4459
SELECT - CAST ( - 41 AS INTEGER ) * 86 * 16
----
56416

onlyif mysql # aggregate syntax: 
query I rowsort label-4460
SELECT - 2 + - - ( 14 ) + - 96 + + - 63 + - + COUNT( + 44 )
----
-148

skipif mysql # not compatible
query I rowsort label-4460
SELECT - 2 + - - ( 14 ) + - 96 + + - 63 + - + COUNT ( + 44 )
----
-148

query I rowsort
SELECT ( 71 ) col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4462
SELECT ALL - - 13 * 66 + + COALESCE ( + 24, 6, - 56 * 42 * + 47 * + COUNT( ALL 82 ) ) AS col2
----
882

skipif mysql # not compatible
query I rowsort label-4462
SELECT ALL - - 13 * 66 + + COALESCE ( + 24, 6, - 56 * 42 * + 47 * + COUNT ( ALL 82 ) ) AS col2
----
882

query II rowsort
SELECT ALL + 26 AS col0, 30 + 19 AS col2
----
26
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4464
SELECT DISTINCT 72 * - + 84 * + 0 + + COUNT( * ) col2
----
1

skipif mysql # not compatible
query I rowsort label-4464
SELECT DISTINCT 72 * - + 84 * + 0 + + COUNT ( * ) col2
----
1

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-4466
SELECT + COUNT( * ) col1, + 15
----
1
15

skipif mysql # not compatible
query II rowsort label-4466
SELECT + COUNT ( * ) col1, + 15
----
1
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4467
SELECT - ( 20 ) * - 83 + + 73 * + 82 * CAST( NULL AS SIGNED ) / - 39 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4467
SELECT - ( 20 ) * - 83 + + 73 * + 82 * CAST ( NULL AS INTEGER ) / - 39 col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4468
SELECT COUNT( * ) AS col2, - 0 + - COUNT( DISTINCT + - 9 ) AS col1
----
1
-1

skipif mysql # not compatible
query II rowsort label-4468
SELECT COUNT ( * ) AS col2, - 0 + - COUNT ( DISTINCT + - 9 ) AS col1
----
1
-1

query I rowsort
SELECT + 85 + 84 + 45
----
214

onlyif mysql # aggregate syntax: 
query I rowsort label-4470
SELECT + - MAX( 18 ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-4470
SELECT + - MAX ( 18 ) AS col1
----
-18

query I rowsort
SELECT ALL + + 31 * + + 2 - + - 47 col2
----
109

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

query I rowsort
SELECT ALL + NULLIF ( + 37, + ( + 83 ) * 23 )
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-4474
SELECT ALL + COUNT( * ), 94 * + - 93 * - - 40 * + 24 AS col0
----
1
-8392320

skipif mysql # not compatible
query II rowsort label-4474
SELECT ALL + COUNT ( * ), 94 * + - 93 * - - 40 * + 24 AS col0
----
1
-8392320

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4476
SELECT DISTINCT + 4 DIV + + 22
----
0

skipif mysql # not compatible
query I rowsort label-4476
SELECT DISTINCT + 4 / + + 22
----
0

query I rowsort
SELECT + 92 * + 50
----
4600

query I rowsort
SELECT DISTINCT 10 * + - 45 * 55
----
-24750

onlyif mysql # DIV for integer division: 
query I rowsort label-4479
SELECT ALL 69 * 58 DIV - + 80 AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-4479
SELECT ALL 69 * 58 / - + 80 AS col0
----
-50

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4481
SELECT ALL 33 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4481
SELECT ALL 33 + + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + 97 + - 52 AS col1
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4483
SELECT - CAST( + + 61 AS SIGNED ) * - + 26 col0
----
1586

skipif mysql # not compatible
query I rowsort label-4483
SELECT - CAST ( + + 61 AS INTEGER ) * - + 26 col0
----
1586

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4485
SELECT ALL COUNT( * ) + + 36 * 77 * + 62 + + 46
----
171911

skipif mysql # not compatible
query I rowsort label-4485
SELECT ALL COUNT ( * ) + + 36 * 77 * + 62 + + 46
----
171911

query I rowsort
SELECT - 67 * ( - 1 ) AS col0
----
67

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-4488
SELECT ALL MAX( ALL + + 89 ), + 20 AS col0
----
89
20

skipif mysql # not compatible
query II rowsort label-4488
SELECT ALL MAX ( ALL + + 89 ), + 20 AS col0
----
89
20

query I rowsort
SELECT - 31 * - 60
----
1860

onlyif mysql # DIV for integer division: 
query I rowsort label-4490
SELECT DISTINCT + - 82 DIV 85 - - 72 AS col2
----
72

skipif mysql # not compatible
query I rowsort label-4490
SELECT DISTINCT + - 82 / 85 - - 72 AS col2
----
72

query I rowsort
SELECT - 46 * - + 41 + 51 col0
----
1937

onlyif mysql # aggregate syntax: 
query I rowsort label-4492
SELECT SUM( 61 ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-4492
SELECT SUM ( 61 ) AS col2
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4493
SELECT ALL + COALESCE ( - COALESCE ( ( + 8 ), - ( COUNT( * ) ) * - 49 + - 85 - NULLIF ( - + 55, AVG ( DISTINCT - 48 ) + 74 ), + 43 ), + 74 DIV + 1 + + + 26, + 5 * 22 ), - 17 + + 76 * + - 67 - - 87 col1
----
-8
-5022

skipif mysql # not compatible
query II rowsort label-4493
SELECT ALL + COALESCE ( - COALESCE ( ( + 8 ), - ( COUNT ( * ) ) * - 49 + - 85 - NULLIF ( - + 55, AVG ( DISTINCT - 48 ) + 74 ), + 43 ), + 74 / + 1 + + + 26, + 5 * 22 ), - 17 + + 76 * + - 67 - - 87 col1
----
-8
-5022

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

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

query I rowsort
SELECT - + 64 * + 76
----
-4864

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4497
SELECT - 99 * COALESCE ( - 38, + CAST( NULL AS SIGNED ) * - 57 DIV - COUNT( DISTINCT CAST( NULL AS SIGNED ) ) DIV + 69, - 18 ) * + - 86 - + + ( 30 )
----
-323562

skipif mysql # not compatible
query I rowsort label-4497
SELECT - 99 * COALESCE ( - 38, + CAST ( NULL AS INTEGER ) * - 57 / - COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) / + 69, - 18 ) * + - 86 - + + ( 30 )
----
-323562

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4498
SELECT + CAST( - AVG ( 64 ) AS SIGNED ) col0
----
-64

skipif mysql # not compatible
query I rowsort label-4498
SELECT + CAST ( - AVG ( 64 ) AS INTEGER ) col0
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4499
SELECT ALL + - 40 * - 49 * + + 39 + - COUNT( * ) - 24 DIV - + 62
----
76439

skipif mysql # not compatible
query I rowsort label-4499
SELECT ALL + - 40 * - 49 * + + 39 + - COUNT ( * ) - 24 / - + 62
----
76439

query I rowsort
SELECT - + 79 * + + 21 + + 71 AS col0
----
-1588

query I rowsort
SELECT 10 + - 82
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4502
SELECT DISTINCT - + COUNT( - 78 ) * - 63 + + 21 * + 44 col0
----
987

skipif mysql # not compatible
query I rowsort label-4502
SELECT DISTINCT - + COUNT ( - 78 ) * - 63 + + 21 * + 44 col0
----
987

query I rowsort
SELECT ALL + - 27 + + 24 AS col2
----
-3

query I rowsort
SELECT - - 0 * + 68 + - 73 * - 0 + - 60 col1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-4505
SELECT 15 * - COUNT( * ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-4505
SELECT 15 * - COUNT ( * ) AS col2
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4506
SELECT + 29 + - ( + + CAST( - 83 AS SIGNED ) ) + - 0 AS col1
----
112

skipif mysql # not compatible
query I rowsort label-4506
SELECT + 29 + - ( + + CAST ( - 83 AS INTEGER ) ) + - 0 AS col1
----
112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4507
SELECT ( 8 ) * 92 + 28 + + 59 + - + 29 + - 66 - + + CAST( NULL AS SIGNED ) - - ( + + 27 ) + - 73
----
NULL

skipif mysql # not compatible
query I rowsort label-4507
SELECT ( 8 ) * 92 + 28 + + 59 + - + 29 + - 66 - + + CAST ( NULL AS INTEGER ) - - ( + + 27 ) + - 73
----
NULL

query I rowsort
SELECT ALL 63 + + 92 * + 22 AS col1
----
2087

query II rowsort
SELECT ALL - 11 + - + 33 * - 27 AS col2, 64 * + - 89 * 25
----
880
-142400

onlyif mysql # DIV for integer division: 
query I rowsort label-4510
SELECT DISTINCT 56 DIV - ( - - 27 )
----
-2

skipif mysql # not compatible
query I rowsort label-4510
SELECT DISTINCT 56 / - ( - - 27 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4511
SELECT ALL COUNT( * ) + - 43
----
-42

skipif mysql # not compatible
query I rowsort label-4511
SELECT ALL COUNT ( * ) + - 43
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-4512
SELECT + 17 * - COUNT( * ) * - 73 + NULLIF ( 33, 0 + - 72 * 60 ) AS col2
----
1274

skipif mysql # not compatible
query I rowsort label-4512
SELECT + 17 * - COUNT ( * ) * - 73 + NULLIF ( 33, 0 + - 72 * 60 ) AS col2
----
1274

onlyif mysql # DIV for integer division: 
query I rowsort label-4513
SELECT DISTINCT 85 DIV + - 50 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4513
SELECT DISTINCT 85 / + - 50 AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4514
SELECT 57 DIV - COUNT( * )
----
-57

skipif mysql # not compatible
query I rowsort label-4514
SELECT 57 / - COUNT ( * )
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4515
SELECT 93 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4515
SELECT 93 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 64 * 77 AS col2
----
4928

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4517
SELECT ALL 55 + + 40 + - CAST( NULL AS SIGNED ) + + 63 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4517
SELECT ALL 55 + + 40 + - CAST ( NULL AS INTEGER ) + + 63 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4518
SELECT ALL 73 * COUNT( * ) DIV - COALESCE ( + 38, + 15, + - 74, + 17 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4518
SELECT ALL 73 * COUNT ( * ) / - COALESCE ( + 38, + 15, + - 74, + 17 ) AS col2
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4519
SELECT ALL ( + 73 ) * ( - - CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4519
SELECT ALL ( + 73 ) * ( - - CAST ( NULL AS REAL ) ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 78 - - 95 * + + 77 AS col2
----
7393

onlyif mysql # aggregate syntax: 
query I rowsort label-4521
SELECT ALL - MIN( DISTINCT 62 )
----
-62

skipif mysql # not compatible
query I rowsort label-4521
SELECT ALL - MIN ( DISTINCT 62 )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-4522
SELECT COUNT( * ) * 32 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-4522
SELECT COUNT ( * ) * 32 AS col2
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-4523
SELECT ALL 47 DIV 12 col2
----
3

skipif mysql # not compatible
query I rowsort label-4523
SELECT ALL 47 / 12 col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4524
SELECT DISTINCT 64 * COUNT( * ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-4524
SELECT DISTINCT 64 * COUNT ( * ) AS col0
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4525
SELECT COUNT( * ) DIV MIN( ALL + 86 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4525
SELECT COUNT ( * ) / MIN ( ALL + 86 ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4526
SELECT + 95 DIV + 71 + 12
----
13

skipif mysql # not compatible
query I rowsort label-4526
SELECT + 95 / + 71 + 12
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4527
SELECT 48 * - CAST( ( MIN( DISTINCT + 11 ) ) AS SIGNED ) AS col0
----
-528

skipif mysql # not compatible
query I rowsort label-4527
SELECT 48 * - CAST ( ( MIN ( DISTINCT + 11 ) ) AS INTEGER ) AS col0
----
-528

query I rowsort
SELECT 84 + 83 col1
----
167

onlyif mysql # DIV for integer division: 
query I rowsort label-4529
SELECT ALL + 69 DIV 53 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4529
SELECT ALL + 69 / 53 AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4530
SELECT ALL 57 + + CAST( - 83 AS SIGNED )
----
-26

skipif mysql # not compatible
query I rowsort label-4530
SELECT ALL 57 + + CAST ( - 83 AS INTEGER )
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4531
SELECT ALL - NULLIF ( 62, + CAST( NULL AS SIGNED ) )
----
-62

skipif mysql # not compatible
query I rowsort label-4531
SELECT ALL - NULLIF ( 62, + CAST ( NULL AS INTEGER ) )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-4532
SELECT DISTINCT - MIN( ALL - 23 ) + 91
----
114

skipif mysql # not compatible
query I rowsort label-4532
SELECT DISTINCT - MIN ( ALL - 23 ) + 91
----
114

query I rowsort
SELECT DISTINCT - 24 + 46
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4534
SELECT ALL 15 + + COUNT( * )
----
16

skipif mysql # not compatible
query I rowsort label-4534
SELECT ALL 15 + + COUNT ( * )
----
16

query I rowsort
SELECT 83 * 73
----
6059

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4536
SELECT ALL - 6 + CAST( NULL AS SIGNED ) * 51 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4536
SELECT ALL - 6 + CAST ( NULL AS INTEGER ) * 51 AS col1
----
NULL

query I rowsort
SELECT ALL - COALESCE ( - 29, 36, 72 )
----
29

query I rowsort
SELECT DISTINCT - 97 + 70
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-4539
SELECT DISTINCT MAX( 77 )
----
77

skipif mysql # not compatible
query I rowsort label-4539
SELECT DISTINCT MAX ( 77 )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4540
SELECT ALL - SUM( DISTINCT 42 ) + + 54
----
12

skipif mysql # not compatible
query I rowsort label-4540
SELECT ALL - SUM ( DISTINCT 42 ) + + 54
----
12

query I rowsort
SELECT 73 - 12 * 46 AS col1
----
-479

query I rowsort
SELECT 9 * - 63 AS col1
----
-567

onlyif mysql # aggregate syntax: 
query I rowsort label-4543
SELECT DISTINCT - 62 - MAX( - 6 + 87 * 15 ) AS col0
----
-1361

skipif mysql # not compatible
query I rowsort label-4543
SELECT DISTINCT - 62 - MAX ( - 6 + 87 * 15 ) AS col0
----
-1361

query I rowsort
SELECT DISTINCT - 89 * + 26 AS col2
----
-2314

query I rowsort
SELECT ALL - 80 - - 44 AS col1
----
-36

query I rowsort
SELECT 99 * - 42 AS col0
----
-4158

onlyif mysql # aggregate syntax: 
query I rowsort label-4547
SELECT ALL MAX( 92 ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-4547
SELECT ALL MAX ( 92 ) AS col2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4548
SELECT DISTINCT - COUNT( ALL - CASE + ( + 7 ) WHEN 79 * - 28 THEN 28 END ) - - 10
----
10

skipif mysql # not compatible
query I rowsort label-4548
SELECT DISTINCT - COUNT ( ALL - CASE + ( + 7 ) WHEN 79 * - 28 THEN 28 END ) - - 10
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4549
SELECT ALL MIN( 60 ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-4549
SELECT ALL MIN ( 60 ) AS col2
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4550
SELECT ALL COUNT( * ) DIV 91
----
0

skipif mysql # not compatible
query I rowsort label-4550
SELECT ALL COUNT ( * ) / 91
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4551
SELECT COUNT( * ) - 92
----
-91

skipif mysql # not compatible
query I rowsort label-4551
SELECT COUNT ( * ) - 92
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4552
SELECT ALL MIN( 61 ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-4552
SELECT ALL MIN ( 61 ) AS col1
----
61

query I rowsort
SELECT 88 * 53
----
4664

onlyif mysql # aggregate syntax: 
query I rowsort label-4554
SELECT COUNT( * ) * ( 67 ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-4554
SELECT COUNT ( * ) * ( 67 ) AS col2
----
67

query I rowsort
SELECT + 19 * + 28
----
532

query I rowsort
SELECT ALL - ( + 2 ) * + 95
----
-190

onlyif mysql # aggregate syntax: 
query I rowsort label-4557
SELECT + 59 + - COUNT( * ) * 59 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4557
SELECT + 59 + - COUNT ( * ) * 59 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4558
SELECT ( 71 ) DIV 39 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4558
SELECT ( 71 ) / 39 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4559
SELECT - SUM( 97 ) * 63 AS col0
----
-6111

skipif mysql # not compatible
query I rowsort label-4559
SELECT - SUM ( 97 ) * 63 AS col0
----
-6111

onlyif mysql # aggregate syntax: 
query I rowsort label-4560
SELECT 60 + + MAX( + 50 ) col2
----
110

skipif mysql # not compatible
query I rowsort label-4560
SELECT 60 + + MAX ( + 50 ) col2
----
110

onlyif mysql # DIV for integer division: 
query I rowsort label-4561
SELECT DISTINCT + 49 DIV + 18 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-4561
SELECT DISTINCT + 49 / + 18 AS col1
----
2

query I rowsort
SELECT ALL + + 61 * 8 col0
----
488

query I rowsort
SELECT ALL 69 * + 42 AS col1
----
2898

query I rowsort
SELECT ALL 78 * 12
----
936

onlyif mysql # aggregate syntax: 
query I rowsort label-4565
SELECT + 69 * - MAX( ALL 80 + 88 ) + - ( 52 )
----
-11644

skipif mysql # not compatible
query I rowsort label-4565
SELECT + 69 * - MAX ( ALL 80 + 88 ) + - ( 52 )
----
-11644

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4566
SELECT ALL - 56 * + CASE 93 / + AVG ( DISTINCT ( - 11 ) ) WHEN + 90 THEN COUNT( * ) WHEN COUNT( * ) / CAST( NULL AS DECIMAL ) THEN NULL ELSE NULL END + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4566
SELECT ALL - 56 * + CASE 93 / + AVG ( DISTINCT ( - 11 ) ) WHEN + 90 THEN COUNT ( * ) WHEN COUNT ( * ) / CAST ( NULL AS REAL ) THEN NULL ELSE NULL END + - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4567
SELECT + + 81 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4567
SELECT + + 81 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4568
SELECT ALL - COUNT( * ) * + 54 + CAST( + ( + 72 ) AS SIGNED ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-4568
SELECT ALL - COUNT ( * ) * + 54 + CAST ( + ( + 72 ) AS INTEGER ) AS col2
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4569
SELECT + ( 79 ) DIV MIN( 32 * - 62 ) - + ( 76 )
----
-76

skipif mysql # not compatible
query I rowsort label-4569
SELECT + ( 79 ) / MIN ( 32 * - 62 ) - + ( 76 )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4570
SELECT DISTINCT COUNT( * ) * + 92 + + 89 AS col1
----
181

skipif mysql # not compatible
query I rowsort label-4570
SELECT DISTINCT COUNT ( * ) * + 92 + + 89 AS col1
----
181

onlyif mysql # aggregate syntax: 
query I rowsort label-4571
SELECT ALL COUNT( * ) * 84 AS col0
----
84

skipif mysql # not compatible
query I rowsort label-4571
SELECT ALL COUNT ( * ) * 84 AS col0
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4572
SELECT + CAST( NULL AS SIGNED ) / + 43 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4572
SELECT + CAST ( NULL AS INTEGER ) / + 43 AS col0
----
NULL

query I rowsort
SELECT ALL + - 62 * + 83 + 60 col2
----
-5086

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4574
SELECT DISTINCT - + CAST( - 30 AS SIGNED ) * ( CAST( NULL AS SIGNED ) ) + - 77 / 40
----
NULL

skipif mysql # not compatible
query I rowsort label-4574
SELECT DISTINCT - + CAST ( - 30 AS INTEGER ) * ( CAST ( NULL AS INTEGER ) ) + - 77 / 40
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4575
SELECT DISTINCT + - COALESCE ( - COUNT( * ), 10 ) * 23 AS col1
----
23

skipif mysql # not compatible
query I rowsort label-4575
SELECT DISTINCT + - COALESCE ( - COUNT ( * ), 10 ) * 23 AS col1
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4576
SELECT ALL 60 * + ( 83 DIV + MAX( ALL - 26 * 58 ) + + 96 ) + - 37 DIV - 68
----
5760

skipif mysql # not compatible
query I rowsort label-4576
SELECT ALL 60 * + ( 83 / + MAX ( ALL - 26 * 58 ) + + 96 ) + - 37 / - 68
----
5760

query I rowsort
SELECT + 52 * - 97 - + 71
----
-5115

onlyif mysql # aggregate syntax: 
query I rowsort label-4578
SELECT CASE 13 WHEN - 70 * - 88 - 5 THEN + COALESCE ( - COUNT( * ), 4 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4578
SELECT CASE 13 WHEN - 70 * - 88 - 5 THEN + COALESCE ( - COUNT ( * ), 4 ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL 10 * - - 45
----
450

query I rowsort
SELECT DISTINCT 45 * - ( ( - 56 ) ) col0
----
2520

query I rowsort
SELECT ALL 90 * + 3 + + 53
----
323

query I rowsort
SELECT 75 * + 51 + + 63 AS col1
----
3888

query I rowsort
SELECT + CASE - 34 WHEN 8 - 94 THEN 19 + - 96 END * 81 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4584
SELECT + 9 * + COUNT( * ) * + ( - ( 62 ) ) + - COUNT( * ) AS col1
----
-559

skipif mysql # not compatible
query I rowsort label-4584
SELECT + 9 * + COUNT ( * ) * + ( - ( 62 ) ) + - COUNT ( * ) AS col1
----
-559

query I rowsort
SELECT + 62 + - 8
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4586
SELECT 12 * + 51 - CASE - 55 - + 96 WHEN - 47 * ( + COUNT( ALL 11 ) ) THEN - 43 + 27 / 40 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4586
SELECT 12 * + 51 - CASE - 55 - + 96 WHEN - 47 * ( + COUNT ( ALL 11 ) ) THEN - 43 + 27 / 40 END col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4587
SELECT ALL + 21 DIV 60 * - 69
----
0

skipif mysql # not compatible
query I rowsort label-4587
SELECT ALL + 21 / 60 * - 69
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4588
SELECT - CAST( NULL AS SIGNED ) + - 34 * + 41 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4588
SELECT - CAST ( NULL AS INTEGER ) + - 34 * + 41 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4589
SELECT - CAST( + 85 AS SIGNED ) DIV - ( 50 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4589
SELECT - CAST ( + 85 AS INTEGER ) / - ( 50 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4590
SELECT DISTINCT CASE + 21 WHEN + COALESCE ( + 88, - COUNT( DISTINCT 71 ) ) * 16 + 46 THEN NULL WHEN 48 + 51 * - 40 THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4590
SELECT DISTINCT CASE + 21 WHEN + COALESCE ( + 88, - COUNT ( DISTINCT 71 ) ) * 16 + 46 THEN NULL WHEN 48 + 51 * - 40 THEN COUNT ( * ) END
----
NULL

query I rowsort
SELECT ALL COALESCE ( + - 49, 71, + ( - 4 ) ) col2
----
-49

query I rowsort
SELECT - 32 + + 73 + + 36
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4593
SELECT ALL MIN( ALL - 24 )
----
-24

skipif mysql # not compatible
query I rowsort label-4593
SELECT ALL MIN ( ALL - 24 )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4594
SELECT ALL + COALESCE ( + NULLIF ( + 16, - COUNT( * ) * + ( 99 * - 40 ) ), ( COUNT( * ) ) * - 19 ) * - COUNT( * ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-4594
SELECT ALL + COALESCE ( + NULLIF ( + 16, - COUNT ( * ) * + ( 99 * - 40 ) ), ( COUNT ( * ) ) * - 19 ) * - COUNT ( * ) AS col0
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-4595
SELECT - 2 * - - 5 DIV + 44
----
0

skipif mysql # not compatible
query I rowsort label-4595
SELECT - 2 * - - 5 / + 44
----
0

query I rowsort
SELECT - 60 + + - 96 AS col1
----
-156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4597
SELECT ALL COALESCE ( - + COALESCE ( 45, CAST( NULL AS SIGNED ) ), 62 + - 24 )
----
-45

skipif mysql # not compatible
query I rowsort label-4597
SELECT ALL COALESCE ( - + COALESCE ( 45, CAST ( NULL AS INTEGER ) ), 62 + - 24 )
----
-45

query I rowsort
SELECT DISTINCT + 31 * - - NULLIF ( - 79, 20 )
----
-2449

onlyif mysql # aggregate syntax: 
query I rowsort label-4599
SELECT ALL ( SUM( 72 ) )
----
72

skipif mysql # not compatible
query I rowsort label-4599
SELECT ALL ( SUM ( 72 ) )
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4600
SELECT - 52 + - + 99 + CASE + 67 WHEN - COUNT( 0 ) * + ( - 47 * COUNT( * ) ) THEN 23 END * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4600
SELECT - 52 + - + 99 + CASE + 67 WHEN - COUNT ( 0 ) * + ( - 47 * COUNT ( * ) ) THEN 23 END * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4601
SELECT + NULLIF ( + 99, + ( - MAX( DISTINCT + 4 ) ) ) + + 1 * + 69
----
168

skipif mysql # not compatible
query I rowsort label-4601
SELECT + NULLIF ( + 99, + ( - MAX ( DISTINCT + 4 ) ) ) + + 1 * + 69
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-4602
SELECT - + COUNT( * ) * + - ( COALESCE ( NULLIF ( + 86, 58 ), - 97 - + 22 ) )
----
86

skipif mysql # not compatible
query I rowsort label-4602
SELECT - + COUNT ( * ) * + - ( COALESCE ( NULLIF ( + 86, 58 ), - 97 - + 22 ) )
----
86

query I rowsort
SELECT ALL + 20 * + 98
----
1960

query I rowsort
SELECT DISTINCT + 4 * - 85 col0
----
-340

query I rowsort
SELECT ALL + 40 + 0 AS col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4606
SELECT DISTINCT + + MAX( ALL 50 ) + 24 AS col1
----
74

skipif mysql # not compatible
query I rowsort label-4606
SELECT DISTINCT + + MAX ( ALL 50 ) + 24 AS col1
----
74

query I rowsort
SELECT ALL - + ( - 44 ) + + 78 * - 26 AS col1
----
-1984

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4608
SELECT ALL + CAST( NULL AS SIGNED ) + AVG ( ALL 3 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4608
SELECT ALL + CAST ( NULL AS INTEGER ) + AVG ( ALL 3 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4609
SELECT - COUNT( + 52 ) + - MIN( ALL - ( 4 ) ) col1
----
3

skipif mysql # not compatible
query I rowsort label-4609
SELECT - COUNT ( + 52 ) + - MIN ( ALL - ( 4 ) ) col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4610
SELECT - CASE + + 60 WHEN - ( + COUNT( * ) ) + 93 THEN NULL ELSE 61 END - + MAX( - 44 + NULLIF ( + 45, - 74 ) * 14 )
----
-647

skipif mysql # not compatible
query I rowsort label-4610
SELECT - CASE + + 60 WHEN - ( + COUNT ( * ) ) + 93 THEN NULL ELSE 61 END - + MAX ( - 44 + NULLIF ( + 45, - 74 ) * 14 )
----
-647

query I rowsort
SELECT - 82 + + 86 AS col2
----
4

query I rowsort
SELECT ALL 26 * - ( 41 ) AS col0
----
-1066

query I rowsort
SELECT DISTINCT + - 91 * + 18 + - 38 * + 36
----
-3006

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4614
SELECT ALL - 1 / - + 51 * - 28 - - COUNT( * ) + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4614
SELECT ALL - 1 / - + 51 * - 28 - - COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + - 58 + - 71 AS col0
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-4616
SELECT DISTINCT MIN( 32 ) * 97
----
3104

skipif mysql # not compatible
query I rowsort label-4616
SELECT DISTINCT MIN ( 32 ) * 97
----
3104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4617
SELECT ALL + + ( - - COALESCE ( CASE 65 WHEN 73 THEN - COALESCE ( 61, - 1 ) DIV ( + 63 ) END, + CASE NULLIF ( CASE - 72 WHEN 13 THEN - 7 DIV 96 END, - 30 ) WHEN COUNT( * ) THEN 8 WHEN CASE 22 WHEN COUNT( * ) THEN - 17 END * 61 THEN 4 * 11 ELSE + 26 END * + 85 ) ) AS col1
----
2210

skipif mysql # not compatible
query I rowsort label-4617
SELECT ALL + + ( - - COALESCE ( CASE 65 WHEN 73 THEN - COALESCE ( 61, - 1 ) / ( + 63 ) END, + CASE NULLIF ( CASE - 72 WHEN 13 THEN - 7 / 96 END, - 30 ) WHEN COUNT ( * ) THEN 8 WHEN CASE 22 WHEN COUNT ( * ) THEN - 17 END * 61 THEN 4 * 11 ELSE + 26 END * + 85 ) ) AS col1
----
2210

query I rowsort
SELECT DISTINCT 96 * 47 AS col2
----
4512

onlyif mysql # DIV for integer division: 
query I rowsort label-4619
SELECT + 68 DIV 91 - - + 76 col1
----
76

skipif mysql # not compatible
query I rowsort label-4619
SELECT + 68 / 91 - - + 76 col1
----
76

query I rowsort
SELECT ( - + 5 ) AS col2
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-4621
SELECT + 5 DIV 81 + + - 41 AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-4621
SELECT + 5 / 81 + + - 41 AS col2
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-4622
SELECT + COUNT( * ) * - 56
----
-56

skipif mysql # not compatible
query I rowsort label-4622
SELECT + COUNT ( * ) * - 56
----
-56

query I rowsort
SELECT + COALESCE ( - 5, - - 93 ) AS col0
----
-5

query I rowsort
SELECT DISTINCT 92 * + 40 * 26 - + 85 col0
----
95595

query I rowsort
SELECT + NULLIF ( + 58, + - ( - 46 ) ) * + 58 AS col1
----
3364

onlyif mysql # aggregate syntax: 
query I rowsort label-4626
SELECT + 50 * - - 83 * - COUNT( * ) * - 91 AS col2
----
377650

skipif mysql # not compatible
query I rowsort label-4626
SELECT + 50 * - - 83 * - COUNT ( * ) * - 91 AS col2
----
377650

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4627
SELECT - 68 + - 62 * + - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) / + COUNT( - 47 ) + + 65 * COUNT( NULLIF ( 47, - 32 / + 13 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4627
SELECT - 68 + - 62 * + - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) / + COUNT ( - 47 ) + + 65 * COUNT ( NULLIF ( 47, - 32 / + 13 ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4628
SELECT ALL + ( - CAST( 44 AS SIGNED ) ) * - 46 - 14 * 0 AS col2
----
2024

skipif mysql # not compatible
query I rowsort label-4628
SELECT ALL + ( - CAST ( 44 AS INTEGER ) ) * - 46 - 14 * 0 AS col2
----
2024

query I rowsort
SELECT + 15 * + ( - - 32 ) * 88
----
42240

query I rowsort
SELECT ALL + 17 * + 76 * + 45 AS col2
----
58140

onlyif mysql # aggregate syntax: 
query I rowsort label-4631
SELECT DISTINCT CASE + 67 WHEN 21 THEN - ( + 69 ) ELSE 40 * COUNT( * ) END * + 63 AS col0
----
2520

skipif mysql # not compatible
query I rowsort label-4631
SELECT DISTINCT CASE + 67 WHEN 21 THEN - ( + 69 ) ELSE 40 * COUNT ( * ) END * + 63 AS col0
----
2520

query I rowsort
SELECT - 84 * - + 43
----
3612

onlyif mysql # aggregate syntax: 
query I rowsort label-4633
SELECT ALL ( 46 ) * + SUM( DISTINCT - ( 64 ) ) + 81 * + ( - 37 + + 78 ) AS col2
----
377

skipif mysql # not compatible
query I rowsort label-4633
SELECT ALL ( 46 ) * + SUM ( DISTINCT - ( 64 ) ) + 81 * + ( - 37 + + 78 ) AS col2
----
377

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4634
SELECT - COUNT( * ) / CAST( NULL AS SIGNED ) * - 79 * - 65 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4634
SELECT - COUNT ( * ) / CAST ( NULL AS INTEGER ) * - 79 * - 65 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4635
SELECT + 72 - + - ( COUNT( * ) ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-4635
SELECT + 72 - + - ( COUNT ( * ) ) AS col0
----
73

query I rowsort
SELECT ALL COALESCE ( + 95, - - ( 69 ) )
----
95

query I rowsort
SELECT + 48 - 56 + - - 7 AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4638
SELECT + 66 DIV + ( - 75 )
----
0

skipif mysql # not compatible
query I rowsort label-4638
SELECT + 66 / + ( - 75 )
----
0

query II rowsort
SELECT 47 AS col2, 86 + + + 7 AS col0
----
47
93

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4640
SELECT ALL - CAST( NULL AS DECIMAL ) * + COUNT( * ) * - + 20 * - COUNT( * ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4640
SELECT ALL - CAST ( NULL AS REAL ) * + COUNT ( * ) * - + 20 * - COUNT ( * ) + COUNT ( * )
----
NULL

query I rowsort
SELECT - ( + - 11 )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4642
SELECT ALL - 41 * + + COUNT( * ) + - - 81
----
40

skipif mysql # not compatible
query I rowsort label-4642
SELECT ALL - 41 * + + COUNT ( * ) + - - 81
----
40

query I rowsort
SELECT - + 5 - 23 * + 14 * 31
----
-9987

onlyif mysql # DIV for integer division: 
query I rowsort label-4644
SELECT DISTINCT - + COALESCE ( + 79, + 78 * 97 + 49 DIV + 83, NULLIF ( 30, 86 ) ) + 85 DIV 86 AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-4644
SELECT DISTINCT - + COALESCE ( + 79, + 78 * 97 + 49 / + 83, NULLIF ( 30, 86 ) ) + 85 / 86 AS col1
----
-79

query I rowsort
SELECT 97 * 46
----
4462

onlyif mysql # aggregate syntax: 
query I rowsort label-4646
SELECT DISTINCT + COUNT( * ) + - 52
----
-51

skipif mysql # not compatible
query I rowsort label-4646
SELECT DISTINCT + COUNT ( * ) + - 52
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-4647
SELECT 27 AS col1, - 61 * + COALESCE ( COUNT( DISTINCT 22 ), + COUNT( - 56 ) * 8, 62 ) col0
----
27
-61

skipif mysql # not compatible
query II rowsort label-4647
SELECT 27 AS col1, - 61 * + COALESCE ( COUNT ( DISTINCT 22 ), + COUNT ( - 56 ) * 8, 62 ) col0
----
27
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4648
SELECT - 57 + + COUNT( * ) DIV + COUNT( * )
----
-56

skipif mysql # not compatible
query I rowsort label-4648
SELECT - 57 + + COUNT ( * ) / + COUNT ( * )
----
-56

query II rowsort
SELECT + 35 AS col2, 30 - + 36 AS col2
----
35
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4650
SELECT ALL + COUNT( - - 36 ) * + 27
----
27

skipif mysql # not compatible
query I rowsort label-4650
SELECT ALL + COUNT ( - - 36 ) * + 27
----
27

query I rowsort
SELECT - ( - 87 ) + + + ( 21 ) * + 38 AS col2
----
885

onlyif mysql # aggregate syntax: 
query I rowsort label-4652
SELECT ALL - - COUNT( * ) + 56 * - + MAX( 36 )
----
-2015

skipif mysql # not compatible
query I rowsort label-4652
SELECT ALL - - COUNT ( * ) + 56 * - + MAX ( 36 )
----
-2015

query I rowsort
SELECT - + 23 col2
----
-23

query II rowsort
SELECT DISTINCT - 97 AS col1, 8 AS col1
----
-97
8

query I rowsort
SELECT ALL + - ( + 80 ) * + 24 AS col1
----
-1920

query I rowsort
SELECT ALL + 34 - + 84 AS col1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-4657
SELECT - NULLIF ( + + MAX( - 15 ), 5 ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-4657
SELECT - NULLIF ( + + MAX ( - 15 ), 5 ) AS col0
----
15

query I rowsort
SELECT DISTINCT + + 76 - - - 80 + - + 12 * - 71
----
848

query I rowsort
SELECT 48 * - 3 AS col1
----
-144

query II rowsort
SELECT + 92 AS col2, 98
----
92
98

query II rowsort
SELECT ALL - 35 AS col0, + 31 AS col2
----
-35
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4662
SELECT ALL + 74 - 68 - + 24 - + MIN( 13 ) * CASE 27 WHEN + 74 THEN NULL ELSE - 62 * + 80 END * - 80 AS col1
----
-5158418

skipif mysql # not compatible
query I rowsort label-4662
SELECT ALL + 74 - 68 - + 24 - + MIN ( 13 ) * CASE 27 WHEN + 74 THEN NULL ELSE - 62 * + 80 END * - 80 AS col1
----
-5158418

onlyif mysql # DIV for integer division: 
query I rowsort label-4663
SELECT 76 DIV + 2
----
38

skipif mysql # not compatible
query I rowsort label-4663
SELECT 76 / + 2
----
38

query I rowsort
SELECT 12 * + + 13 * 23 * 11 AS col0
----
39468

query I rowsort
SELECT ALL 57 * - 75 AS col2
----
-4275

onlyif mysql # aggregate syntax: 
query I rowsort label-4666
SELECT DISTINCT 92 * - COUNT( * ) * - 9
----
828

skipif mysql # not compatible
query I rowsort label-4666
SELECT DISTINCT 92 * - COUNT ( * ) * - 9
----
828

onlyif mysql # aggregate syntax: 
query I rowsort label-4667
SELECT MIN( + 4 ) * - + SUM( DISTINCT 85 )
----
-340

skipif mysql # not compatible
query I rowsort label-4667
SELECT MIN ( + 4 ) * - + SUM ( DISTINCT 85 )
----
-340

query I rowsort
SELECT ALL - 21 * - + 20 AS col0
----
420

query I rowsort
SELECT 48 * 52 - 7 AS col1
----
2489

onlyif mysql # aggregate syntax: 
query I rowsort label-4670
SELECT ALL + CASE - - 57 WHEN - 90 + - 77 THEN + MAX( + CASE + 56 WHEN + 56 + + 60 THEN + 82 ELSE 0 * + 84 END ) / + COALESCE ( 93, 94 ) WHEN + 18 THEN - NULLIF ( - 33, 12 + COUNT( * ) * 34 ) * 15 ELSE NULL END * 96 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4670
SELECT ALL + CASE - - 57 WHEN - 90 + - 77 THEN + MAX ( + CASE + 56 WHEN + 56 + + 60 THEN + 82 ELSE 0 * + 84 END ) / + COALESCE ( 93, 94 ) WHEN + 18 THEN - NULLIF ( - 33, 12 + COUNT ( * ) * 34 ) * 15 ELSE NULL END * 96 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4671
SELECT NULLIF ( NULLIF ( + + 12, - COALESCE ( - 78, - ( - 46 ) ) ), - COUNT( * ) ) + - 74 AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-4671
SELECT NULLIF ( NULLIF ( + + 12, - COALESCE ( - 78, - ( - 46 ) ) ), - COUNT ( * ) ) + - 74 AS col1
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-4672
SELECT 27 + 26 + - COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-4672
SELECT 27 + 26 + - COUNT ( * )
----
52

query I rowsort
SELECT COALESCE ( + + 97, - 18 ) * + 26 * 60 + 9
----
151329

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4674
SELECT CAST( NULL AS SIGNED ) * 78 * 76
----
NULL

skipif mysql # not compatible
query I rowsort label-4674
SELECT CAST ( NULL AS INTEGER ) * 78 * 76
----
NULL

query I rowsort
SELECT - ( - 84 ) * + - ( + 0 ) + + 99 + 83 * - 43 AS col0
----
-3470

onlyif mysql # aggregate syntax: 
query I rowsort label-4676
SELECT COUNT( * ) + + 64
----
65

skipif mysql # not compatible
query I rowsort label-4676
SELECT COUNT ( * ) + + 64
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4677
SELECT ALL - CASE 14 WHEN + 19 * - 16 * 27 THEN - COUNT( DISTINCT - NULLIF ( + 51, + 26 ) ) / - MIN( ALL 93 + NULLIF ( - 22, + 78 - 56 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4677
SELECT ALL - CASE 14 WHEN + 19 * - 16 * 27 THEN - COUNT ( DISTINCT - NULLIF ( + 51, + 26 ) ) / - MIN ( ALL 93 + NULLIF ( - 22, + 78 - 56 ) ) END
----
NULL

query I rowsort
SELECT 27 + - 49 AS col2
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4679
SELECT ALL + 45 + - 78 + 26 DIV - COALESCE ( 20, 75 DIV - COUNT( * ) )
----
-34

skipif mysql # not compatible
query I rowsort label-4679
SELECT ALL + 45 + - 78 + 26 / - COALESCE ( 20, 75 / - COUNT ( * ) )
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4680
SELECT - + 30 * - + COUNT( * ) * - COUNT( * ) + + COUNT( * ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-4680
SELECT - + 30 * - + COUNT ( * ) * - COUNT ( * ) + + COUNT ( * ) AS col2
----
-29

query I rowsort
SELECT ALL - 65 + + - 52 * - + 16 + + 21 * 60 AS col0
----
2027

onlyif mysql # aggregate syntax: 
query I rowsort label-4682
SELECT 35 + - + COUNT( * ) * + ( + - 59 )
----
94

skipif mysql # not compatible
query I rowsort label-4682
SELECT 35 + - + COUNT ( * ) * + ( + - 59 )
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4683
SELECT ALL COALESCE ( + 78, + 3 + - 99 - CASE + 81 WHEN CASE + 79 WHEN + CASE 26 WHEN - 49 + 84 THEN COALESCE ( ( CAST( + COUNT( ALL 15 ) AS SIGNED ) ), + 19 / - CASE - 18 WHEN + 79 THEN NULL ELSE - ( 45 ) * 73 END, 46 ) + - 25 WHEN - 68 THEN - 59 ELSE NULL END THEN - MAX( - 32 ) ELSE 46 END + 62 THEN 1 * - 39 END ) + 25 * - 4
----
-22

skipif mysql # not compatible
query I rowsort label-4683
SELECT ALL COALESCE ( + 78, + 3 + - 99 - CASE + 81 WHEN CASE + 79 WHEN + CASE 26 WHEN - 49 + 84 THEN COALESCE ( ( CAST ( + COUNT ( ALL 15 ) AS INTEGER ) ), + 19 / - CASE - 18 WHEN + 79 THEN NULL ELSE - ( 45 ) * 73 END, 46 ) + - 25 WHEN - 68 THEN - 59 ELSE NULL END THEN - MAX ( - 32 ) ELSE 46 END + 62 THEN 1 * - 39 END ) + 25 * - 4
----
-22

query I rowsort
SELECT ALL 58 + - 32 * - 47 AS col1
----
1562

query I rowsort
SELECT DISTINCT 62 * NULLIF ( - 21, - - 91 ) AS col0
----
-1302

query I rowsort
SELECT NULLIF ( 27, 34 ) * + 91 * 63
----
154791

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4687
SELECT + COALESCE ( + 16, + 85 DIV - 70, 41 * + COUNT( * ) ) * - 82 col2
----
-1312

skipif mysql # not compatible
query I rowsort label-4687
SELECT + COALESCE ( + 16, + 85 / - 70, 41 * + COUNT ( * ) ) * - 82 col2
----
-1312

onlyif mysql # aggregate syntax: 
query I rowsort label-4688
SELECT 45 + + CASE 83 WHEN + + 29 THEN NULL WHEN ( - 79 ) THEN NULL ELSE + COUNT( * ) END * + 96
----
141

skipif mysql # not compatible
query I rowsort label-4688
SELECT 45 + + CASE 83 WHEN + + 29 THEN NULL WHEN ( - 79 ) THEN NULL ELSE + COUNT ( * ) END * + 96
----
141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4689
SELECT + 55 * + CAST( + + COALESCE ( 96, - 5 ) AS SIGNED ) + 14
----
5294

skipif mysql # not compatible
query I rowsort label-4689
SELECT + 55 * + CAST ( + + COALESCE ( 96, - 5 ) AS INTEGER ) + 14
----
5294

onlyif mysql # aggregate syntax: 
query I rowsort label-4690
SELECT - ( + CASE - COUNT( * ) WHEN - 30 * + MIN( DISTINCT + 99 ) THEN + 32 WHEN 43 + + 35 / ( - 64 + - 76 ) THEN SUM( + COALESCE ( - 7, 17 ) ) END ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4690
SELECT - ( + CASE - COUNT ( * ) WHEN - 30 * + MIN ( DISTINCT + 99 ) THEN + 32 WHEN 43 + + 35 / ( - 64 + - 76 ) THEN SUM ( + COALESCE ( - 7, 17 ) ) END ) col1
----
NULL

query I rowsort
SELECT - 77 * 92
----
-7084

query I rowsort
SELECT 83 * + + 1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4693
SELECT ALL + + 53 * - COUNT( 69 )
----
-53

skipif mysql # not compatible
query I rowsort label-4693
SELECT ALL + + 53 * - COUNT ( 69 )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-4694
SELECT DISTINCT - COUNT( * ) - NULLIF ( - COALESCE ( - MIN( ALL + 68 ), + COUNT( * ), - CASE - 17 WHEN 76 * - CASE + COUNT( ALL + 6 ) WHEN - 11 THEN NULL WHEN + 62 + ( + 64 + 92 ) THEN 25 * - COUNT( * ) ELSE 83 END THEN NULL WHEN 99 THEN NULL ELSE + 72 END ), - COUNT( * ) * - ( COUNT( DISTINCT 19 ) ) )
----
-69

skipif mysql # not compatible
query I rowsort label-4694
SELECT DISTINCT - COUNT ( * ) - NULLIF ( - COALESCE ( - MIN ( ALL + 68 ), + COUNT ( * ), - CASE - 17 WHEN 76 * - CASE + COUNT ( ALL + 6 ) WHEN - 11 THEN NULL WHEN + 62 + ( + 64 + 92 ) THEN 25 * - COUNT ( * ) ELSE 83 END THEN NULL WHEN 99 THEN NULL ELSE + 72 END ), - COUNT ( * ) * - ( COUNT ( DISTINCT 19 ) ) )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-4695
SELECT + COUNT( * ) + + 24 * + 40
----
961

skipif mysql # not compatible
query I rowsort label-4695
SELECT + COUNT ( * ) + + 24 * + 40
----
961

query I rowsort
SELECT ALL - - 86 - - 35 + + 59 * - ( 32 ) * 97 + 85 AS col0
----
-182930

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4697
SELECT CASE WHEN + 61 IS NOT NULL THEN + - CAST( - COALESCE ( + COUNT( * ), + NULLIF ( 1, COUNT( * ) ) ) AS SIGNED ) ELSE + 66 END * - COUNT( + 31 + ( + 83 - 93 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4697
SELECT CASE WHEN + 61 IS NOT NULL THEN + - CAST ( - COALESCE ( + COUNT ( * ), + NULLIF ( 1, COUNT ( * ) ) ) AS INTEGER ) ELSE + 66 END * - COUNT ( + 31 + ( + 83 - 93 ) )
----
-1

query I rowsort
SELECT 94 + - - ( + 83 ) * + 12 AS col1
----
1090

onlyif mysql # aggregate syntax: 
query II rowsort label-4699
SELECT + 71 - - + 8 AS col0, + 0 + 76 * SUM( ALL - 97 ) AS col0
----
79
-7372

skipif mysql # not compatible
query II rowsort label-4699
SELECT + 71 - - + 8 AS col0, + 0 + 76 * SUM ( ALL - 97 ) AS col0
----
79
-7372

query I rowsort
SELECT DISTINCT - 34 * + 57 AS col1
----
-1938

onlyif mysql # aggregate syntax: 
query I rowsort label-4701
SELECT DISTINCT MIN( DISTINCT 77 ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-4701
SELECT DISTINCT MIN ( DISTINCT 77 ) AS col0
----
77

query I rowsort
SELECT 92 * - ( 58 )
----
-5336

query I rowsort
SELECT ALL - ( - - 49 ) AS col1
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-4704
SELECT 11 DIV + - ( + 4 ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-4704
SELECT 11 / + - ( + 4 ) AS col0
----
-2

query I rowsort
SELECT ALL - ( - 91 )
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4706
SELECT ALL + ( 46 ) * + 72 + - 93 + + + 75 + COUNT( * ) * 76 * + COALESCE ( + 58 + + CASE 92 WHEN + COALESCE ( - 53, COUNT( * ) - - COUNT( ALL 61 ) ) THEN + COALESCE ( 63, - 56 - - 11 DIV + COUNT( * ), - COUNT( * ) * + 13, + 4 ) END, 53 * 70 ) AS col0
----
285254

skipif mysql # not compatible
query I rowsort label-4706
SELECT ALL + ( 46 ) * + 72 + - 93 + + + 75 + COUNT ( * ) * 76 * + COALESCE ( + 58 + + CASE 92 WHEN + COALESCE ( - 53, COUNT ( * ) - - COUNT ( ALL 61 ) ) THEN + COALESCE ( 63, - 56 - - 11 / + COUNT ( * ), - COUNT ( * ) * + 13, + 4 ) END, 53 * 70 ) AS col0
----
285254

query I rowsort
SELECT 43 + - 99 col1
----
-56

query I rowsort
SELECT ALL - 17 * - 23 + ( - - 94 ) AS col2
----
485

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4709
SELECT DISTINCT - COUNT( * ) * 97 * + 51 + 54 + - + ( 78 ) DIV - 51 AS col1
----
-4892

skipif mysql # not compatible
query I rowsort label-4709
SELECT DISTINCT - COUNT ( * ) * 97 * + 51 + 54 + - + ( 78 ) / - 51 AS col1
----
-4892

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4710
SELECT DISTINCT - 99 DIV + + MAX( + + 80 )
----
-1

skipif mysql # not compatible
query I rowsort label-4710
SELECT DISTINCT - 99 / + + MAX ( + + 80 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4711
SELECT DISTINCT + 73 * COUNT( * ) + + 44 AS col0
----
117

skipif mysql # not compatible
query I rowsort label-4711
SELECT DISTINCT + 73 * COUNT ( * ) + + 44 AS col0
----
117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4712
SELECT DISTINCT 54 + CAST( 23 AS SIGNED ) - 28 * + + 60 AS col1
----
-1603

skipif mysql # not compatible
query I rowsort label-4712
SELECT DISTINCT 54 + CAST ( 23 AS INTEGER ) - 28 * + + 60 AS col1
----
-1603

query I rowsort
SELECT - 38 * 70 + - - 77
----
-2583

query I rowsort
SELECT ALL + 83 + 86
----
169

query II rowsort
SELECT + 35 col2, 79
----
35
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4716
SELECT + + COUNT( * ) * 84 DIV + + 8, 56 - + 39 + ( - 48 + CAST( NULL AS SIGNED ) ) * MIN( DISTINCT + 45 ) AS col1
----
10
NULL

skipif mysql # not compatible
query II rowsort label-4716
SELECT + + COUNT ( * ) * 84 / + + 8, 56 - + 39 + ( - 48 + CAST ( NULL AS INTEGER ) ) * MIN ( DISTINCT + 45 ) AS col1
----
10
NULL

query I rowsort
SELECT - + 3 - - 13 AS col2
----
10

query I rowsort
SELECT ALL - 34 + 51 AS col2
----
17

query I rowsort
SELECT - - 28 - - 19 col1
----
47

query I rowsort
SELECT - 31 * 26 + 67 + - 13 AS col2
----
-752

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4721
SELECT DISTINCT + CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) + - 63 + - ( 35 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4721
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) + - 63 + - ( 35 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4722
SELECT DISTINCT - COUNT( * ) - 97
----
-98

skipif mysql # not compatible
query I rowsort label-4722
SELECT DISTINCT - COUNT ( * ) - 97
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4723
SELECT ALL - 76 * + AVG ( - - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4723
SELECT ALL - 76 * + AVG ( - - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT - ( - + 80 ) AS col2
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4725
SELECT DISTINCT + 65 * - COUNT( * ) * - + 37 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4725
SELECT DISTINCT + 65 * - COUNT ( * ) * - + 37 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4726
SELECT + 3, COUNT( * ) AS col2
----
3
1

skipif mysql # not compatible
query II rowsort label-4726
SELECT + 3, COUNT ( * ) AS col2
----
3
1

query I rowsort
SELECT + - 38 - + + 13 AS col2
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-4728
SELECT + - 26 DIV - 51 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4728
SELECT + - 26 / - 51 AS col1
----
0

query I rowsort
SELECT + + 21 * - 80 AS col1
----
-1680

query I rowsort
SELECT ALL 81 * + 70
----
5670

query I rowsort
SELECT CASE - - 6 WHEN ( - 56 ) + + 9 THEN NULL WHEN 84 * - 93 THEN - 25 ELSE NULL END
----
NULL

query I rowsort
SELECT + - 77 + + 49
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-4733
SELECT DISTINCT 86 * + - NULLIF ( + 1, - - COUNT( * ) * + 51 + 56 )
----
-86

skipif mysql # not compatible
query I rowsort label-4733
SELECT DISTINCT 86 * + - NULLIF ( + 1, - - COUNT ( * ) * + 51 + 56 )
----
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-4734
SELECT 1 AS col0, COUNT( * ) AS col1
----
1
1

skipif mysql # not compatible
query II rowsort label-4734
SELECT 1 AS col0, COUNT ( * ) AS col1
----
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4735
SELECT ALL MIN( - + CAST( + NULLIF ( - ( + 13 ), + 54 + - 63 ) AS SIGNED ) )
----
13

skipif mysql # not compatible
query I rowsort label-4735
SELECT ALL MIN ( - + CAST ( + NULLIF ( - ( + 13 ), + 54 + - 63 ) AS INTEGER ) )
----
13

query II rowsort
SELECT ALL + 56 AS col1, - 96 * - + 60
----
56
5760

onlyif mysql # aggregate syntax: 
query I rowsort label-4737
SELECT + 79 * + + CASE + 80 WHEN 90 - - COUNT( * ) THEN - 95 * + 2 WHEN COALESCE ( 35, 16 * 3 ) THEN + 65 * 95 WHEN 23 + 29 * + COUNT( * ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4737
SELECT + 79 * + + CASE + 80 WHEN 90 - - COUNT ( * ) THEN - 95 * + 2 WHEN COALESCE ( 35, 16 * 3 ) THEN + 65 * 95 WHEN 23 + 29 * + COUNT ( * ) THEN NULL END AS col1
----
NULL

query I rowsort
SELECT - 85 * + - 14
----
1190

onlyif mysql # aggregate syntax: 
query I rowsort label-4739
SELECT ( - + COUNT( ALL 93 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4739
SELECT ( - + COUNT ( ALL 93 ) ) AS col2
----
-1

query II rowsort
SELECT + 78, 99 AS col1
----
78
99

query I rowsort
SELECT ALL + 22 * 8 * - + 31 + - - 29 + + ( - 69 ) * + 65 AS col0
----
-9912

query I rowsort
SELECT - 49 + - 93 + 3
----
-139

onlyif mysql # aggregate syntax: 
query I rowsort label-4743
SELECT DISTINCT 73 * - 40 * + + MAX( CASE + 60 WHEN + + ( 33 ) THEN 35 END ) * 89
----
NULL

skipif mysql # not compatible
query I rowsort label-4743
SELECT DISTINCT 73 * - 40 * + + MAX ( CASE + 60 WHEN + + ( 33 ) THEN 35 END ) * 89
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4744
SELECT - SUM( ALL 15 ) * - 60 * - NULLIF ( 47, 26 ) + 20 - 12 col1
----
-42292

skipif mysql # not compatible
query I rowsort label-4744
SELECT - SUM ( ALL 15 ) * - 60 * - NULLIF ( 47, 26 ) + 20 - 12 col1
----
-42292

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4745
SELECT ALL 60 * COUNT( * ) * + + 44 * 79 * + 47 + + NULLIF ( 57, + COALESCE ( COUNT( * ), AVG ( - 59 ) + 0 ) + - CAST( ( COUNT( * ) ) AS SIGNED ) ) * - 1 AS col0
----
9802263

skipif mysql # not compatible
query I rowsort label-4745
SELECT ALL 60 * COUNT ( * ) * + + 44 * 79 * + 47 + + NULLIF ( 57, + COALESCE ( COUNT ( * ), AVG ( - 59 ) + 0 ) + - CAST ( ( COUNT ( * ) ) AS INTEGER ) ) * - 1 AS col0
----
9802263

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4746
SELECT 23 * - - SUM( DISTINCT + ( 14 ) ) * - 89 - - CAST( NULL AS SIGNED ) - - 13 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4746
SELECT 23 * - - SUM ( DISTINCT + ( 14 ) ) * - 89 - - CAST ( NULL AS INTEGER ) - - 13 AS col0
----
NULL

query I rowsort
SELECT ALL - 86 * - 41 * 31
----
109306

query I rowsort
SELECT 96 * + - 96 + 89 AS col0
----
-9127

onlyif mysql # aggregate syntax: 
query I rowsort label-4749
SELECT - 95 + + COALESCE ( 53, - + 73 * + COUNT( * ) - - 30 ) * 89 col1
----
4622

skipif mysql # not compatible
query I rowsort label-4749
SELECT - 95 + + COALESCE ( 53, - + 73 * + COUNT ( * ) - - 30 ) * 89 col1
----
4622

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4750
SELECT - COUNT( ALL 19 ) + + + CASE + ( CASE 0 WHEN 40 THEN + 20 * 67 WHEN + 97 THEN NULL END ) WHEN ( + CAST( 84 AS SIGNED ) ) * 58 THEN 28 / + 40 WHEN MIN( ALL - 17 ) THEN + 31 / - MAX( ALL + 42 ) END + + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-4750
SELECT - COUNT ( ALL 19 ) + + + CASE + ( CASE 0 WHEN 40 THEN + 20 * 67 WHEN + 97 THEN NULL END ) WHEN ( + CAST ( 84 AS INTEGER ) ) * 58 THEN 28 / + 40 WHEN MIN ( ALL - 17 ) THEN + 31 / - MAX ( ALL + 42 ) END + + 80
----
NULL

query I rowsort
SELECT - 66 * + 97
----
-6402

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4752
SELECT DISTINCT + + 49 DIV + + 29 + - ( + COUNT( * ) ) - - + 69
----
69

skipif mysql # not compatible
query I rowsort label-4752
SELECT DISTINCT + + 49 / + + 29 + - ( + COUNT ( * ) ) - - + 69
----
69

query I rowsort
SELECT - COALESCE ( + 74, - 73 * 46 - - 3, + 62 ) + + 85 * 76
----
6386

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4754
SELECT CAST( - 87 AS SIGNED ) * + 40 * 79 - 34 AS col0
----
-274954

skipif mysql # not compatible
query I rowsort label-4754
SELECT CAST ( - 87 AS INTEGER ) * + 40 * 79 - 34 AS col0
----
-274954

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4755
SELECT - COUNT( * ) + SUM( ALL + 66 ) DIV - + 40
----
-2

skipif mysql # not compatible
query I rowsort label-4755
SELECT - COUNT ( * ) + SUM ( ALL + 66 ) / - + 40
----
-2

query I rowsort
SELECT - + 66 * - + 91 * 51 AS col1
----
306306

query I rowsort
SELECT - 12 * ( + - 72 ) + + - 56 * 26
----
-592

query I rowsort
SELECT DISTINCT - - 70 * - 97 AS col2
----
-6790

query II rowsort
SELECT - 99 AS col0, - 90 + - 34
----
-99
-124

onlyif mysql # aggregate syntax: 
query II rowsort label-4760
SELECT ALL ( + 15 ), - COUNT( DISTINCT - 65 ) + + + 9 AS col2
----
15
8

skipif mysql # not compatible
query II rowsort label-4760
SELECT ALL ( + 15 ), - COUNT ( DISTINCT - 65 ) + + + 9 AS col2
----
15
8

query II rowsort
SELECT ALL 60 AS col0, 25 AS col2
----
60
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4762
SELECT - SUM( ALL 53 )
----
-53

skipif mysql # not compatible
query I rowsort label-4762
SELECT - SUM ( ALL 53 )
----
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-4763
SELECT - ( - 80 ) AS col1, + NULLIF ( - 68, + - 80 / - 87 - + COUNT( * ) ) - - COUNT( * ) * 62
----
80
-6

skipif mysql # not compatible
query II rowsort label-4763
SELECT - ( - 80 ) AS col1, + NULLIF ( - 68, + - 80 / - 87 - + COUNT ( * ) ) - - COUNT ( * ) * 62
----
80
-6

query I rowsort
SELECT + 9 + - 82 AS col1
----
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-4765
SELECT + 86 + - 34, COUNT( * ) * - 99 AS col0
----
52
-99

skipif mysql # not compatible
query II rowsort label-4765
SELECT + 86 + - 34, COUNT ( * ) * - 99 AS col0
----
52
-99

query I rowsort
SELECT - NULLIF ( + + 51, + 86 )
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4767
SELECT ALL 68 + + ( 15 ) + - COUNT( * ) + COALESCE ( + - 87, + - 64 DIV - 72 ) * COUNT( * ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-4767
SELECT ALL 68 + + ( 15 ) + - COUNT ( * ) + COALESCE ( + - 87, + - 64 / - 72 ) * COUNT ( * ) AS col2
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4768
SELECT + 73 + + + COUNT( * ) * + + NULLIF ( - - COUNT( * ), - 21 * + 69 + + CASE 93 WHEN + CAST( NULL AS SIGNED ) * + CASE WHEN NULL BETWEEN NULL AND NULL THEN NULL ELSE - CAST( NULLIF ( - 99, NULLIF ( 24, 62 ) + 93 * 76 ) AS SIGNED ) END + COUNT( * ) THEN + 52 ELSE - 10 END ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-4768
SELECT + 73 + + + COUNT ( * ) * + + NULLIF ( - - COUNT ( * ), - 21 * + 69 + + CASE 93 WHEN + CAST ( NULL AS INTEGER ) * + CASE WHEN NULL BETWEEN NULL AND NULL THEN NULL ELSE - CAST ( NULLIF ( - 99, NULLIF ( 24, 62 ) + 93 * 76 ) AS INTEGER ) END + COUNT ( * ) THEN + 52 ELSE - 10 END ) AS col2
----
74

query I rowsort
SELECT DISTINCT 97 + ( + 9 ) * + 5
----
142

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4770
SELECT ALL CAST( NULL AS SIGNED ) + - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-4770
SELECT ALL CAST ( NULL AS INTEGER ) + - 68
----
NULL

query I rowsort
SELECT NULLIF ( + ( 54 ), + 93 ) * + 55 + 39
----
3009

query I rowsort
SELECT COALESCE ( - ( - 87 ), 37 * + + 76 ) * - 49
----
-4263

onlyif mysql # aggregate syntax: 
query I rowsort label-4773
SELECT + COUNT( + 16 ) + - + 75 AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-4773
SELECT + COUNT ( + 16 ) + - + 75 AS col2
----
-74

query I rowsort
SELECT ALL + - 22 * 44 AS col0
----
-968

query I rowsort
SELECT ALL - + 74 col0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4776
SELECT DISTINCT + CASE WHEN NOT NULL IS NULL THEN COUNT( * ) ELSE COUNT( * ) END - - 55 AS col2
----
56

skipif mysql # not compatible
query I rowsort label-4776
SELECT DISTINCT + CASE WHEN NOT NULL IS NULL THEN COUNT ( * ) ELSE COUNT ( * ) END - - 55 AS col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4777
SELECT ( + 27 ) + 32 + + 59 * + 23 * 83 + - + 95 + COUNT( * ) * 75 * 1
----
112670

skipif mysql # not compatible
query I rowsort label-4777
SELECT ( + 27 ) + 32 + + 59 * + 23 * 83 + - + 95 + COUNT ( * ) * 75 * 1
----
112670

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4778
SELECT - 96 DIV - COUNT( * ) col2, + 92 DIV + 35 AS col1
----
96
2

skipif mysql # not compatible
query II rowsort label-4778
SELECT - 96 / - COUNT ( * ) col2, + 92 / + 35 AS col1
----
96
2

query I rowsort
SELECT 69 - - - 82 + - 42
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-4780
SELECT - 24 - - 69 + + 46 * COUNT( * ) + + CASE - 84 WHEN - + 46 - + 35 / + 69 THEN - 5 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4780
SELECT - 24 - - 69 + + 46 * COUNT ( * ) + + CASE - 84 WHEN - + 46 - + 35 / + 69 THEN - 5 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4781
SELECT + 33 * - 83 * + - 19, 6 + 91 * COUNT( + + 84 ) AS col0
----
52041
97

skipif mysql # not compatible
query II rowsort label-4781
SELECT + 33 * - 83 * + - 19, 6 + 91 * COUNT ( + + 84 ) AS col0
----
52041
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4782
SELECT DISTINCT - CASE - 12 WHEN - 20 THEN - 56 * + ( - + COUNT( ALL - + 15 ) ) WHEN 30 THEN 6 + + 92 * - COALESCE ( 63, 54 / 99 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4782
SELECT DISTINCT - CASE - 12 WHEN - 20 THEN - 56 * + ( - + COUNT ( ALL - + 15 ) ) WHEN 30 THEN 6 + + 92 * - COALESCE ( 63, 54 / 99 ) END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4783
SELECT + CAST( NULL AS SIGNED ) * + 56 / 96 / + + CAST( + 72 AS SIGNED ) + + - 79 + + - 27 / 54 * - 88 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4783
SELECT + CAST ( NULL AS INTEGER ) * + 56 / 96 / + + CAST ( + 72 AS INTEGER ) + + - 79 + + - 27 / 54 * - 88 AS col0
----
NULL

query I rowsort
SELECT 7 + + ( - 81 ) + - 33 * - ( + - ( + 16 ) )
----
-602

query I rowsort
SELECT ALL + 55 + - - ( + 8 )
----
63

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4786
SELECT ALL 99 + 9 + + + 97 + + CAST( NULL AS DECIMAL ) * - + 95 / + + 16 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4786
SELECT ALL 99 + 9 + + + 97 + + CAST ( NULL AS REAL ) * - + 95 / + + 16 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4787
SELECT ALL + 75 + + COUNT( ALL + + 8 ) - + + 0 + - + 49 * + 66 * + MIN( 52 )
----
-168092

skipif mysql # not compatible
query I rowsort label-4787
SELECT ALL + 75 + + COUNT ( ALL + + 8 ) - + + 0 + - + 49 * + 66 * + MIN ( 52 )
----
-168092

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4788
SELECT + CAST( 54 AS SIGNED ) - + 28, + 35 AS col2
----
26
35

skipif mysql # not compatible
query II rowsort label-4788
SELECT + CAST ( 54 AS INTEGER ) - + 28, + 35 AS col2
----
26
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4789
SELECT ALL + 63 * + + 63 * - ( - 75 ) * - MAX( DISTINCT - + 12 )
----
3572100

skipif mysql # not compatible
query I rowsort label-4789
SELECT ALL + 63 * + + 63 * - ( - 75 ) * - MAX ( DISTINCT - + 12 )
----
3572100

query I rowsort
SELECT 18 * + 31 AS col0
----
558

onlyif mysql # aggregate syntax: 
query I rowsort label-4791
SELECT 21 - - NULLIF ( 93, - MAX( + 54 ) * + ( 94 ) * + 80 - - 11 )
----
114

skipif mysql # not compatible
query I rowsort label-4791
SELECT 21 - - NULLIF ( 93, - MAX ( + 54 ) * + ( 94 ) * + 80 - - 11 )
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-4792
SELECT DISTINCT + 12 * + COUNT( * ) col0
----
12

skipif mysql # not compatible
query I rowsort label-4792
SELECT DISTINCT + 12 * + COUNT ( * ) col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4793
SELECT ALL + COUNT( * ) + - 57 AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-4793
SELECT ALL + COUNT ( * ) + - 57 AS col2
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-4794
SELECT 11 + COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-4794
SELECT 11 + COUNT ( * )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4795
SELECT ALL - COUNT( 88 ) + COALESCE ( + 62, - 14 - 40, + 1 ) + - + 40 * - 52 AS col0
----
2141

skipif mysql # not compatible
query I rowsort label-4795
SELECT ALL - COUNT ( 88 ) + COALESCE ( + 62, - 14 - 40, + 1 ) + - + 40 * - 52 AS col0
----
2141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4796
SELECT ALL CAST( NULL AS SIGNED ) + + COUNT( * ) + + 43 * - - 27 + + 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4796
SELECT ALL CAST ( NULL AS INTEGER ) + + COUNT ( * ) + + 43 * - - 27 + + 40 AS col0
----
NULL

query II rowsort
SELECT DISTINCT 80 AS col1, + 26 + 96 AS col1
----
80
122

onlyif mysql # aggregate syntax: 
query I rowsort label-4798
SELECT DISTINCT 73 - + 63 * MAX( ALL - 4 )
----
325

skipif mysql # not compatible
query I rowsort label-4798
SELECT DISTINCT 73 - + 63 * MAX ( ALL - 4 )
----
325

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4799
SELECT COUNT( * ) + + 21 + - ( - COALESCE ( 24, - 46 DIV + COUNT( * ) - + 55 + 55 * + 67 ) )
----
46

skipif mysql # not compatible
query I rowsort label-4799
SELECT COUNT ( * ) + + 21 + - ( - COALESCE ( 24, - 46 / + COUNT ( * ) - + 55 + 55 * + 67 ) )
----
46

query II rowsort
SELECT + 41, + 55 col0
----
41
55

query II rowsort
SELECT ALL - 97 col1, - 68 AS col0
----
-97
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4802
SELECT NULLIF ( 56, - 86 - 6 * - COUNT( * ) / + NULLIF ( + 78, COUNT( - 94 ) ) + - 26 ) * + 13
----
728

skipif mysql # not compatible
query I rowsort label-4802
SELECT NULLIF ( 56, - 86 - 6 * - COUNT ( * ) / + NULLIF ( + 78, COUNT ( - 94 ) ) + - 26 ) * + 13
----
728

onlyif mysql # DIV for integer division: 
query I rowsort label-4803
SELECT 78 DIV + 52
----
1

skipif mysql # not compatible
query I rowsort label-4803
SELECT 78 / + 52
----
1

query I rowsort
SELECT + 76 * - + COALESCE ( - 74, - 2 * - 49 ) + + 31
----
5655

query I rowsort
SELECT ALL - ( - - 98 )
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4806
SELECT 66 * COUNT( * ) + - 1 + + - NULLIF ( - - 15, 43 * - 13 * + - 79 / COUNT( * ) + 22 * CAST( NULL AS SIGNED ) ) + 75 * COUNT( DISTINCT + 99 ) + + 89
----
214

skipif mysql # not compatible
query I rowsort label-4806
SELECT 66 * COUNT ( * ) + - 1 + + - NULLIF ( - - 15, 43 * - 13 * + - 79 / COUNT ( * ) + 22 * CAST ( NULL AS INTEGER ) ) + 75 * COUNT ( DISTINCT + 99 ) + + 89
----
214

onlyif mysql # DIV for integer division: 
query I rowsort label-4807
SELECT ALL 45 DIV - 24 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4807
SELECT ALL 45 / - 24 AS col0
----
-1

query I rowsort
SELECT 49 * + - 62 - + 37
----
-3075

onlyif mysql # DIV for integer division: 
query I rowsort label-4809
SELECT ALL 2 DIV ( - + 79 ) + + 79
----
79

skipif mysql # not compatible
query I rowsort label-4809
SELECT ALL 2 / ( - + 79 ) + + 79
----
79

query I rowsort
SELECT - 72 * 18 AS col1
----
-1296

query I rowsort
SELECT 4 + 7 AS col0
----
11

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4812
SELECT + CASE + COUNT( * ) WHEN - 94 * - - 25 * 68 + - 76 THEN + + CAST( NULL AS DECIMAL ) * + 30 * COALESCE ( - COUNT( * ) * 15, - 50 + 39 ) + - 24 END / 18
----
NULL

skipif mysql # not compatible
query I rowsort label-4812
SELECT + CASE + COUNT ( * ) WHEN - 94 * - - 25 * 68 + - 76 THEN + + CAST ( NULL AS REAL ) * + 30 * COALESCE ( - COUNT ( * ) * 15, - 50 + 39 ) + - 24 END / 18
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4813
SELECT + + 69 * ( - + 98 ) + - MIN( DISTINCT + 77 )
----
-6839

skipif mysql # not compatible
query I rowsort label-4813
SELECT + + 69 * ( - + 98 ) + - MIN ( DISTINCT + 77 )
----
-6839

query I rowsort
SELECT + 19 * - - 39 + - 13 + + 45 + - - 4 AS col2
----
777

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4815
SELECT AVG ( - 47 ) + CASE + 13 WHEN - + AVG ( ALL - + CAST( NULL AS SIGNED ) ) * + 41 + - + COUNT( * ) THEN 81 * 49 WHEN + 26 THEN NULL END + 26 * 0
----
NULL

skipif mysql # not compatible
query I rowsort label-4815
SELECT AVG ( - 47 ) + CASE + 13 WHEN - + AVG ( ALL - + CAST ( NULL AS INTEGER ) ) * + 41 + - + COUNT ( * ) THEN 81 * 49 WHEN + 26 THEN NULL END + 26 * 0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4816
SELECT - 23 * - 48 - - NULLIF ( - 50, COUNT( * ) + 24 * ( - 45 ) ) + - 12
----
1042

skipif mysql # not compatible
query I rowsort label-4816
SELECT - 23 * - 48 - - NULLIF ( - 50, COUNT ( * ) + 24 * ( - 45 ) ) + - 12
----
1042

query I rowsort
SELECT ALL - + ( - - 6 ) AS col0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4818
SELECT + 21 + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4818
SELECT + 21 + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL - ( + 78 ) + - + 65
----
-143

onlyif mysql # aggregate syntax: 
query II rowsort label-4820
SELECT - 44 AS col0, 41 + + COALESCE ( - COUNT( * ), - - 10 * 29 * COUNT( * ) )
----
-44
40

skipif mysql # not compatible
query II rowsort label-4820
SELECT - 44 AS col0, 41 + + COALESCE ( - COUNT ( * ), - - 10 * 29 * COUNT ( * ) )
----
-44
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4821
SELECT ALL + 4 + + + ( - - CAST( + + ( - 84 ) AS SIGNED ) ) - + - 3 AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-4821
SELECT ALL + 4 + + + ( - - CAST ( + + ( - 84 ) AS INTEGER ) ) - + - 3 AS col2
----
-77

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4822
SELECT - + CASE + 62 WHEN - 9 THEN NULL WHEN - + ( COUNT( * ) ) THEN NULLIF ( - 81, + - 11 ) * 88 END * + CAST( NULL AS DECIMAL ) + 56 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4822
SELECT - + CASE + 62 WHEN - 9 THEN NULL WHEN - + ( COUNT ( * ) ) THEN NULLIF ( - 81, + - 11 ) * 88 END * + CAST ( NULL AS REAL ) + 56 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4823
SELECT - MIN( DISTINCT - + ( + 42 ) )
----
42

skipif mysql # not compatible
query I rowsort label-4823
SELECT - MIN ( DISTINCT - + ( + 42 ) )
----
42

query I rowsort
SELECT DISTINCT + 76 + + 64
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-4825
SELECT + COALESCE ( + - NULLIF ( - - 88, + + COALESCE ( COUNT( * ), 12 ) + - 66 ), - 31, ( - COUNT( DISTINCT 1 ) ) ) AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-4825
SELECT + COALESCE ( + - NULLIF ( - - 88, + + COALESCE ( COUNT ( * ), 12 ) + - 66 ), - 31, ( - COUNT ( DISTINCT 1 ) ) ) AS col1
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4826
SELECT CASE + 92 WHEN + + 12 THEN + COUNT( * ) + + COUNT( 95 ) + - + 87 + + CAST( + NULLIF ( + COUNT( * ), 36 * 54 + 57 ) AS SIGNED ) + - 78 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4826
SELECT CASE + 92 WHEN + + 12 THEN + COUNT ( * ) + + COUNT ( 95 ) + - + 87 + + CAST ( + NULLIF ( + COUNT ( * ), 36 * 54 + 57 ) AS INTEGER ) + - 78 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + ( 22 ) + + + 5 AS col1
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4828
SELECT ALL - MIN( DISTINCT - 63 ) + - CAST( NULL AS SIGNED ) + + + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-4828
SELECT ALL - MIN ( DISTINCT - 63 ) + - CAST ( NULL AS INTEGER ) + + + 46
----
NULL

query I rowsort
SELECT 2 * - 67 AS col2
----
-134

query I rowsort
SELECT 8 + - - 94 AS col1
----
102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4831
SELECT DISTINCT - ( + COALESCE ( COUNT( * ), 73 * + + 23 - - COUNT( * ) * - 78 DIV + - 55 ) ) + - - 94 AS col1
----
93

skipif mysql # not compatible
query I rowsort label-4831
SELECT DISTINCT - ( + COALESCE ( COUNT ( * ), 73 * + + 23 - - COUNT ( * ) * - 78 / + - 55 ) ) + - - 94 AS col1
----
93

query I rowsort
SELECT 17 + 95
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-4833
SELECT ALL MAX( - + 97 ) + - 95 AS col0
----
-192

skipif mysql # not compatible
query I rowsort label-4833
SELECT ALL MAX ( - + 97 ) + - 95 AS col0
----
-192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4834
SELECT ALL 15 + + CAST( NULL AS SIGNED ) + - 50 * - + NULLIF ( - - 92, - ( + 66 ) ) AS col0, COUNT( * ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4834
SELECT ALL 15 + + CAST ( NULL AS INTEGER ) + - 50 * - + NULLIF ( - - 92, - ( + 66 ) ) AS col0, COUNT ( * ) AS col0
----
NULL
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4835
SELECT ALL + 72 - - COUNT( * ) col0, 83
----
73
83

skipif mysql # not compatible
query II rowsort label-4835
SELECT ALL + 72 - - COUNT ( * ) col0, 83
----
73
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4836
SELECT ALL SUM( + - 11 ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-4836
SELECT ALL SUM ( + - 11 ) AS col1
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-4837
SELECT - COUNT( * ) + - + SUM( ALL 57 ) - - 53 AS col1, + 78 + 1 AS col2
----
-5
79

skipif mysql # not compatible
query II rowsort label-4837
SELECT - COUNT ( * ) + - + SUM ( ALL 57 ) - - 53 AS col1, + 78 + 1 AS col2
----
-5
79

onlyif mysql # DIV for integer division: 
query I rowsort label-4838
SELECT - 79 DIV - - 72
----
-1

skipif mysql # not compatible
query I rowsort label-4838
SELECT - 79 / - - 72
----
-1

query I rowsort
SELECT - 91 * 17
----
-1547

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4840
SELECT - 96 + - - 52 * - - NULLIF ( - + 98, + 96 * - COUNT( * ) * + 96 + - 18 / 39 * SUM( + CAST( NULL AS DECIMAL ) ) + 6 )
----
-5192

skipif mysql # not compatible
query I rowsort label-4840
SELECT - 96 + - - 52 * - - NULLIF ( - + 98, + 96 * - COUNT ( * ) * + 96 + - 18 / 39 * SUM ( + CAST ( NULL AS REAL ) ) + 6 )
----
-5192

query I rowsort
SELECT ALL - 27 * - + ( + 15 )
----
405

query I rowsort
SELECT - CASE 30 WHEN + - 39 + - 79 THEN + 25 - ( - 34 ) * 45 * + ( + 26 ) END + - 35
----
NULL

query II rowsort
SELECT ALL - 9 - + ( - 65 ) + 37 col1, - 69 * + + 22 * + 96 - - - 99 AS col1
----
93
-145827

onlyif mysql # aggregate syntax: 
query I rowsort label-4844
SELECT DISTINCT NULLIF ( + 36, - + 58 * SUM( DISTINCT + + 7 ) )
----
36

skipif mysql # not compatible
query I rowsort label-4844
SELECT DISTINCT NULLIF ( + 36, - + 58 * SUM ( DISTINCT + + 7 ) )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4845
SELECT ALL CASE + - 20 WHEN - COUNT( * ) - 68 THEN + + 34 / + 16 - 23 WHEN + 3 + COUNT( * ) + COUNT( * ) THEN COUNT( * ) * - COUNT( * ) WHEN 8 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4845
SELECT ALL CASE + - 20 WHEN - COUNT ( * ) - 68 THEN + + 34 / + 16 - 23 WHEN + 3 + COUNT ( * ) + COUNT ( * ) THEN COUNT ( * ) * - COUNT ( * ) WHEN 8 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT ALL - 10 - + 43 col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-4847
SELECT ( - CASE + ( + - ( 29 ) ) WHEN 90 + 69 - + 57 + - 26 + SUM( DISTINCT + 3 ) * + 83 * 40 THEN NULL WHEN 47 + 23 * 40 THEN 22 * - 23 ELSE - 47 END )
----
47

skipif mysql # not compatible
query I rowsort label-4847
SELECT ( - CASE + ( + - ( 29 ) ) WHEN 90 + 69 - + 57 + - 26 + SUM ( DISTINCT + 3 ) * + 83 * 40 THEN NULL WHEN 47 + 23 * 40 THEN 22 * - 23 ELSE - 47 END )
----
47

query I rowsort
SELECT - 3 * 10 * 61
----
-1830

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4849
SELECT DISTINCT - - CAST( NULL AS SIGNED ) / ( 44 ) + 16 * - COUNT( * ) * - COUNT( * ) * + 21 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4849
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) / ( 44 ) + 16 * - COUNT ( * ) * - COUNT ( * ) * + 21 AS col1
----
NULL

query I rowsort
SELECT + - 54 * - 11 * - + 85 + - 7 - 95 AS col0
----
-50592

query I rowsort
SELECT + ( - 15 ) AS col2
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4852
SELECT DISTINCT CAST( NULL AS SIGNED ) * - + ( + COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4852
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - + ( + COUNT ( * ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4853
SELECT + 62 + + COUNT( * ) * - 19 + 46 AS col2
----
89

skipif mysql # not compatible
query I rowsort label-4853
SELECT + 62 + + COUNT ( * ) * - 19 + 46 AS col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4854
SELECT ALL - 43 * - NULLIF ( - + 18, COUNT( * ) ) + 54 + + - 74 AS col0
----
-794

skipif mysql # not compatible
query I rowsort label-4854
SELECT ALL - 43 * - NULLIF ( - + 18, COUNT ( * ) ) + 54 + + - 74 AS col0
----
-794

onlyif mysql # aggregate syntax: 
query II rowsort label-4855
SELECT ALL ( - 2 ) * 77 + - COUNT( * ) col1, 87
----
-155
87

skipif mysql # not compatible
query II rowsort label-4855
SELECT ALL ( - 2 ) * 77 + - COUNT ( * ) col1, 87
----
-155
87

query I rowsort
SELECT ALL - - 19 * + 12 + - 83 * - - 53 AS col0
----
-4171

onlyif mysql # DIV for integer division: 
query I rowsort label-4857
SELECT DISTINCT 63 DIV + 69
----
0

skipif mysql # not compatible
query I rowsort label-4857
SELECT DISTINCT 63 / + 69
----
0

query I rowsort
SELECT + - 27 * + 26
----
-702

query I rowsort
SELECT ALL + 35 * + 33 + 36 AS col2
----
1191

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4860
SELECT + - CAST( + 19 AS SIGNED ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-4860
SELECT + - CAST ( + 19 AS INTEGER ) AS col1
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4861
SELECT ALL + 28 * 89 DIV COUNT( * ) DIV + + NULLIF ( - - 9, + - 15 * 5 * 50 * - 18 ) + ( - 68 ) AS col1
----
208

skipif mysql # not compatible
query I rowsort label-4861
SELECT ALL + 28 * 89 / COUNT ( * ) / + + NULLIF ( - - 9, + - 15 * 5 * 50 * - 18 ) + ( - 68 ) AS col1
----
208

query I rowsort
SELECT + - 67 - + 97 AS col2
----
-164

query II rowsort
SELECT + 33 + - 50 * 36 AS col0, + 39 AS col2
----
-1767
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4864
SELECT ALL 45 * - - COUNT( * ) * + + 1 AS col0
----
45

skipif mysql # not compatible
query I rowsort label-4864
SELECT ALL 45 * - - COUNT ( * ) * + + 1 AS col0
----
45

query I rowsort
SELECT - 1 * + 0 + + 39 AS col0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4866
SELECT ALL COUNT( * ) - + 1 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4866
SELECT ALL COUNT ( * ) - + 1 AS col1
----
0

query I rowsort
SELECT DISTINCT 74 * + + 26 AS col1
----
1924

query I rowsort
SELECT ALL - 40 - - 91
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4869
SELECT + 3 * + ( + 3 ) * + COUNT( * ) DIV - + COUNT( * ) AS col0, + 94 AS col0
----
-9
94

skipif mysql # not compatible
query II rowsort label-4869
SELECT + 3 * + ( + 3 ) * + COUNT ( * ) / - + COUNT ( * ) AS col0, + 94 AS col0
----
-9
94

query I rowsort
SELECT ALL 9 * + 48
----
432

onlyif mysql # aggregate syntax: 
query I rowsort label-4871
SELECT - MIN( DISTINCT + 93 ) - - + COUNT( * ) * + 71
----
-22

skipif mysql # not compatible
query I rowsort label-4871
SELECT - MIN ( DISTINCT + 93 ) - - + COUNT ( * ) * + 71
----
-22

query II rowsort
SELECT 7 col0, + 76 AS col1
----
7
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4873
SELECT DISTINCT COUNT( - 1 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4873
SELECT DISTINCT COUNT ( - 1 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4874
SELECT ALL 61 - SUM( DISTINCT - 17 ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-4874
SELECT ALL 61 - SUM ( DISTINCT - 17 ) AS col0
----
78

query I rowsort
SELECT + 67 * - 23
----
-1541

onlyif mysql # aggregate syntax: 
query I rowsort label-4876
SELECT - 73 * + COUNT( - 47 ) * - 58 + + + 3
----
4237

skipif mysql # not compatible
query I rowsort label-4876
SELECT - 73 * + COUNT ( - 47 ) * - 58 + + + 3
----
4237

onlyif mysql # aggregate syntax: 
query I rowsort label-4877
SELECT ALL CASE + 11 WHEN 33 * + 19 + SUM( ALL + 72 ) * - - ( + + 22 ) THEN NULL WHEN - + COUNT( * ) * 89 * + 57 + 3 * 12 THEN + 75 * 96 + - 57 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4877
SELECT ALL CASE + 11 WHEN 33 * + 19 + SUM ( ALL + 72 ) * - - ( + + 22 ) THEN NULL WHEN - + COUNT ( * ) * 89 * + 57 + 3 * 12 THEN + 75 * 96 + - 57 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4878
SELECT 88 AS col1, ( + COUNT( * ) ) + - SUM( DISTINCT ( + + 28 ) )
----
88
-27

skipif mysql # not compatible
query II rowsort label-4878
SELECT 88 AS col1, ( + COUNT ( * ) ) + - SUM ( DISTINCT ( + + 28 ) )
----
88
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4879
SELECT + 19 + - + 12 DIV - 43 AS col2, - ( - + COUNT( * ) )
----
19
1

skipif mysql # not compatible
query II rowsort label-4879
SELECT + 19 + - + 12 / - 43 AS col2, - ( - + COUNT ( * ) )
----
19
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4880
SELECT ALL - 5 DIV 66
----
0

skipif mysql # not compatible
query I rowsort label-4880
SELECT ALL - 5 / 66
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4881
SELECT - 37 * - 67 * - + 28 / + CASE - 0 WHEN + NULLIF ( 29, + + 45 ) THEN - 59 WHEN + 80 / ( NULLIF ( + MAX( ALL NULLIF ( - 14, CASE 91 WHEN - 70 / 32 THEN NULL ELSE 10 END + 93 ) ), 70 - - 47 / 96 ) * - CAST( NULL AS SIGNED ) + 41 ) + - 73 * 12 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4881
SELECT - 37 * - 67 * - + 28 / + CASE - 0 WHEN + NULLIF ( 29, + + 45 ) THEN - 59 WHEN + 80 / ( NULLIF ( + MAX ( ALL NULLIF ( - 14, CASE 91 WHEN - 70 / 32 THEN NULL ELSE 10 END + 93 ) ), 70 - - 47 / 96 ) * - CAST ( NULL AS INTEGER ) + 41 ) + - 73 * 12 THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 96 * + ( + 18 ) AS col1
----
-1728

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4883
SELECT DISTINCT MAX( ALL - 25 ) DIV 64
----
0

skipif mysql # not compatible
query I rowsort label-4883
SELECT DISTINCT MAX ( ALL - 25 ) / 64
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4884
SELECT ALL ( ( - CAST( 97 AS SIGNED ) ) ) AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-4884
SELECT ALL ( ( - CAST ( 97 AS INTEGER ) ) ) AS col0
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4885
SELECT - MIN( 2 ) DIV - - 58
----
0

skipif mysql # not compatible
query I rowsort label-4885
SELECT - MIN ( 2 ) / - - 58
----
0

query I rowsort
SELECT ALL + 6 * + - 73 AS col0
----
-438

query I rowsort
SELECT DISTINCT NULLIF ( + - 77, - 83 )
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4888
SELECT + - MIN( ( - 39 ) ) + - - 21 AS col1
----
60

skipif mysql # not compatible
query I rowsort label-4888
SELECT + - MIN ( ( - 39 ) ) + - - 21 AS col1
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4889
SELECT ALL - + COUNT( * ) * CAST( 0 AS SIGNED ) AS col0, - 60 AS col0
----
0
-60

skipif mysql # not compatible
query II rowsort label-4889
SELECT ALL - + COUNT ( * ) * CAST ( 0 AS INTEGER ) AS col0, - 60 AS col0
----
0
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4890
SELECT - + 89 DIV - - 25 DIV + - COUNT( * ) - + 42 * 79 * ( - + 51 ) * - 79 + + MIN( DISTINCT - + 72 ) * 28 AS col1
----
-13370235

skipif mysql # not compatible
query I rowsort label-4890
SELECT - + 89 / - - 25 / + - COUNT ( * ) - + 42 * 79 * ( - + 51 ) * - 79 + + MIN ( DISTINCT - + 72 ) * 28 AS col1
----
-13370235

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4891
SELECT - - 83 / + + CAST( NULL AS SIGNED ) + - 60 + - + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-4891
SELECT - - 83 / + + CAST ( NULL AS INTEGER ) + - 60 + - + 50
----
NULL

query I rowsort
SELECT - ( 1 ) AS col0
----
-1

query I rowsort
SELECT - + 8 * + 0 + - + 56 AS col1
----
-56

query I rowsort
SELECT - 76 + - - 95 * 91 + + 45
----
8614

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4895
SELECT ALL - MIN( DISTINCT - CAST( NULL AS SIGNED ) ) / - + NULLIF ( + 38, - 35 ) + - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-4895
SELECT ALL - MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) / - + NULLIF ( + 38, - 35 ) + - 59
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4896
SELECT ALL - 89 DIV - 64 + + + ( + + 97 )
----
98

skipif mysql # not compatible
query I rowsort label-4896
SELECT ALL - 89 / - 64 + + + ( + + 97 )
----
98

onlyif mysql # DIV for integer division: 
query II rowsort label-4897
SELECT ALL - 17 DIV 86 + + 23 AS col1, + 9 * 25 * + 56 col2
----
23
12600

skipif mysql # not compatible
query II rowsort label-4897
SELECT ALL - 17 / 86 + + 23 AS col1, + 9 * 25 * + 56 col2
----
23
12600

onlyif mysql # aggregate syntax: 
query I rowsort label-4898
SELECT - ( - - SUM( + 91 ) )
----
-91

skipif mysql # not compatible
query I rowsort label-4898
SELECT - ( - - SUM ( + 91 ) )
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4899
SELECT - 77 * - 32 * - 52 + 16 * - CAST( 74 AS SIGNED ) + - 15 AS col2
----
-129327

skipif mysql # not compatible
query I rowsort label-4899
SELECT - 77 * - 32 * - 52 + 16 * - CAST ( 74 AS INTEGER ) + - 15 AS col2
----
-129327

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4900
SELECT ALL - 10 / + 41 + + NULLIF ( - CAST( NULL AS SIGNED ), - 66 + 44 ) + + - 66 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4900
SELECT ALL - 10 / + 41 + + NULLIF ( - CAST ( NULL AS INTEGER ), - 66 + 44 ) + + - 66 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4901
SELECT 31 * + - COUNT( - 39 ) + 91 + 14 / COUNT( * ) - 23 * CASE - 5 WHEN 76 / COUNT( * ) THEN + 31 * 7 + + 13 ELSE NULL END * COUNT( + 93 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4901
SELECT 31 * + - COUNT ( - 39 ) + 91 + 14 / COUNT ( * ) - 23 * CASE - 5 WHEN 76 / COUNT ( * ) THEN + 31 * 7 + + 13 ELSE NULL END * COUNT ( + 93 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4902
SELECT DISTINCT 18 DIV + 79 + 74 + COUNT( * ) DIV + ( + - 23 )
----
74

skipif mysql # not compatible
query I rowsort label-4902
SELECT DISTINCT 18 / + 79 + 74 + COUNT ( * ) / + ( + - 23 )
----
74

query I rowsort
SELECT + - ( 34 ) AS col2
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-4904
SELECT ALL + - 32 AS col2, + 60 * - CASE 20 WHEN - 56 THEN - - 39 WHEN - 54 * SUM( - 40 ) THEN 7 END * 88
----
-32
NULL

skipif mysql # not compatible
query II rowsort label-4904
SELECT ALL + - 32 AS col2, + 60 * - CASE 20 WHEN - 56 THEN - - 39 WHEN - 54 * SUM ( - 40 ) THEN 7 END * 88
----
-32
NULL

query I rowsort
SELECT ALL 36 * ( - 49 ) * 13 + - 82 + + - 98
----
-23112

query I rowsort
SELECT - 6 + - 54
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-4907
SELECT ALL + 52 * COUNT( * ) - 36 AS col1
----
16

skipif mysql # not compatible
query I rowsort label-4907
SELECT ALL + 52 * COUNT ( * ) - 36 AS col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4908
SELECT ALL 21 - - - COUNT( * ) - - - ( ( + 5 ) ) + - ( + 80 ) * - + 77 AS col1
----
6175

skipif mysql # not compatible
query I rowsort label-4908
SELECT ALL 21 - - - COUNT ( * ) - - - ( ( + 5 ) ) + - ( + 80 ) * - + 77 AS col1
----
6175

query I rowsort
SELECT ALL - 99 * - + 5
----
495

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4910
SELECT COUNT( * ) DIV COALESCE ( + + 66, - 67 DIV 13 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4910
SELECT COUNT ( * ) / COALESCE ( + + 66, - 67 / 13 ) AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4911
SELECT ALL 15 DIV 61 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4911
SELECT ALL 15 / 61 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4912
SELECT COUNT( * ) * - + 61 / - 7 + - CASE + 88 WHEN - 58 * + + 65 THEN + 24 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4912
SELECT COUNT ( * ) * - + 61 / - 7 + - CASE + 88 WHEN - 58 * + + 65 THEN + 24 END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4913
SELECT - 69, - 97 * + 96 - + NULLIF ( + + 56, - + 41 ) + + 15 DIV + - 67 AS col1
----
-69
-9368

skipif mysql # not compatible
query II rowsort label-4913
SELECT - 69, - 97 * + 96 - + NULLIF ( + + 56, - + 41 ) + + 15 / + - 67 AS col1
----
-69
-9368

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4914
SELECT CASE + 26 WHEN - 67 + - 45 + 66 THEN 61 / - + 92 ELSE NULL END + - + 84 - CASE - 10 WHEN + SUM( DISTINCT + 46 ) THEN - COALESCE ( + 33, - COUNT( * ), CAST( NULL AS SIGNED ) + + 73 ) * + 73 WHEN - COUNT( * ) THEN NULL WHEN 23 + + 21 THEN + 51 * - 68 ELSE COALESCE ( COALESCE ( NULLIF ( CAST( NULL AS SIGNED ), 17 - - ( + 65 ) ), - COUNT( 37 ) ), - 28, + 85 * 82 ) END / + 74 * - 33 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4914
SELECT CASE + 26 WHEN - 67 + - 45 + 66 THEN 61 / - + 92 ELSE NULL END + - + 84 - CASE - 10 WHEN + SUM ( DISTINCT + 46 ) THEN - COALESCE ( + 33, - COUNT ( * ), CAST ( NULL AS INTEGER ) + + 73 ) * + 73 WHEN - COUNT ( * ) THEN NULL WHEN 23 + + 21 THEN + 51 * - 68 ELSE COALESCE ( COALESCE ( NULLIF ( CAST ( NULL AS INTEGER ), 17 - - ( + 65 ) ), - COUNT ( 37 ) ), - 28, + 85 * 82 ) END / + 74 * - 33 AS col2
----
NULL

query I rowsort
SELECT ALL ( NULLIF ( + 86, - - 52 + - ( 35 ) ) ) - - 75 col0
----
161

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4916
SELECT COUNT( * ) DIV + + ( + 65 )
----
0

skipif mysql # not compatible
query I rowsort label-4916
SELECT COUNT ( * ) / + + ( + 65 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4917
SELECT ( + - COUNT( - - CAST( - 94 AS SIGNED ) ) ) * - 78 AS col2
----
78

skipif mysql # not compatible
query I rowsort label-4917
SELECT ( + - COUNT ( - - CAST ( - 94 AS INTEGER ) ) ) * - 78 AS col2
----
78

query I rowsort
SELECT 65 + - - 81 + + 65 col1
----
211

query I rowsort
SELECT 36 * 86 AS col0
----
3096

onlyif mysql # aggregate syntax: 
query I rowsort label-4920
SELECT 72 * - SUM( - + ( + 79 ) ) AS col1
----
5688

skipif mysql # not compatible
query I rowsort label-4920
SELECT 72 * - SUM ( - + ( + 79 ) ) AS col1
----
5688

query I rowsort
SELECT 42 + + 73
----
115

query II rowsort
SELECT DISTINCT 31 AS col1, 80 + ( 70 )
----
31
150

query I rowsort
SELECT ( 70 ) + - + 50
----
20

query I rowsort
SELECT ALL 8 * - 22 * + 65 AS col0
----
-11440

onlyif mysql # aggregate syntax: 
query II rowsort label-4925
SELECT DISTINCT 44, MAX( ALL + 74 ) AS col2
----
44
74

skipif mysql # not compatible
query II rowsort label-4925
SELECT DISTINCT 44, MAX ( ALL + 74 ) AS col2
----
44
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4926
SELECT ALL + 38 + - + SUM( DISTINCT + - 1 ) * - 58 DIV 67
----
38

skipif mysql # not compatible
query I rowsort label-4926
SELECT ALL + 38 + - + SUM ( DISTINCT + - 1 ) * - 58 / 67
----
38

query II rowsort
SELECT - 48 AS col2, 42
----
-48
42

query I rowsort
SELECT 87 + 26
----
113

query I rowsort
SELECT ALL COALESCE ( - - 99, + + 57 * - 98 + + + 92, - 74 ) AS col0
----
99

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4930
SELECT DISTINCT ( + CASE CASE + + MAX( - ( + ( + 66 ) ) ) WHEN + CAST( NULL AS DECIMAL ) * + - 6 THEN - 16 + - ( 56 ) + - 51 * 92 WHEN MAX( DISTINCT 59 ) * + 83 THEN NULL END WHEN 4 * + 7 - + 82 THEN ( 0 ) * 82 WHEN + ( 6 ) THEN NULL WHEN - 56 THEN NULL ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4930
SELECT DISTINCT ( + CASE CASE + + MAX ( - ( + ( + 66 ) ) ) WHEN + CAST ( NULL AS REAL ) * + - 6 THEN - 16 + - ( 56 ) + - 51 * 92 WHEN MAX ( DISTINCT 59 ) * + 83 THEN NULL END WHEN 4 * + 7 - + 82 THEN ( 0 ) * 82 WHEN + ( 6 ) THEN NULL WHEN - 56 THEN NULL ELSE NULL END ) AS col2
----
NULL

query I rowsort
SELECT 89 * - + 68 * 88 AS col1
----
-532576

onlyif mysql # aggregate syntax: 
query II rowsort label-4932
SELECT ALL - 21 + - 5 AS col1, - COUNT( * ) AS col0
----
-26
-1

skipif mysql # not compatible
query II rowsort label-4932
SELECT ALL - 21 + - 5 AS col1, - COUNT ( * ) AS col0
----
-26
-1

query I rowsort
SELECT ALL - 41 + - CASE + 5 WHEN - + NULLIF ( + 82, 56 ) - + 60 + + 23 THEN - 79 + - + 90 WHEN 72 + + 9 THEN NULL END - 61
----
NULL

query I rowsort
SELECT ALL + 82 * ( - 64 ) AS col1
----
-5248

query II rowsort
SELECT - 29 col1, 48 AS col2
----
-29
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4936
SELECT ALL - 71 + - + 57 AS col0, + COUNT( * ) + - 62 * - 54 * - - 11 * + + ( + + 12 ) + + - 14 + + + NULLIF ( - CAST( - 6 AS SIGNED ), - 55 ) AS col1
----
-128
441929

skipif mysql # not compatible
query II rowsort label-4936
SELECT ALL - 71 + - + 57 AS col0, + COUNT ( * ) + - 62 * - 54 * - - 11 * + + ( + + 12 ) + + - 14 + + + NULLIF ( - CAST ( - 6 AS INTEGER ), - 55 ) AS col1
----
-128
441929

query I rowsort
SELECT 12 * + 28 * - - 24 * + + 88 AS col0
----
709632

onlyif mysql # aggregate syntax: 
query II rowsort label-4938
SELECT ALL - 91 + - + 99 + + - 29 * 87 AS col0, + COUNT( * ) AS col2
----
-2713
1

skipif mysql # not compatible
query II rowsort label-4938
SELECT ALL - 91 + - + 99 + + - 29 * 87 AS col0, + COUNT ( * ) AS col2
----
-2713
1

query I rowsort
SELECT ALL - 80 + - 96 AS col0
----
-176

onlyif mysql # aggregate syntax: 
query II rowsort label-4940
SELECT + 52 AS col1, - COUNT( * ) * - 23 col2
----
52
23

skipif mysql # not compatible
query II rowsort label-4940
SELECT + 52 AS col1, - COUNT ( * ) * - 23 col2
----
52
23

query II rowsort
SELECT + 2, - 51 AS col0
----
2
-51

query I rowsort
SELECT 38 * - 6
----
-228

query II rowsort
SELECT 24 AS col1, + 21 col1
----
24
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4944
SELECT + COUNT( DISTINCT - - 41 )
----
1

skipif mysql # not compatible
query I rowsort label-4944
SELECT + COUNT ( DISTINCT - - 41 )
----
1

query I rowsort
SELECT ALL + 45 - 46 * - - 40 AS col1
----
-1795

query I rowsort
SELECT ( - 49 ) * 43
----
-2107

query I rowsort
SELECT 37 - - - 60 AS col1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4948
SELECT 36 + + 25 * + + COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-4948
SELECT 36 + + 25 * + + COUNT ( * )
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4949
SELECT 14 * - CAST( 87 AS SIGNED ) + 86
----
-1132

skipif mysql # not compatible
query I rowsort label-4949
SELECT 14 * - CAST ( 87 AS INTEGER ) + 86
----
-1132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4950
SELECT DISTINCT + CAST( NULL AS SIGNED ) * COALESCE ( + + COUNT( DISTINCT + - 7 ), + 45 ) AS col0, - CAST( MIN( ALL 55 ) AS SIGNED ) AS col1
----
NULL
-55

skipif mysql # not compatible
query II rowsort label-4950
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * COALESCE ( + + COUNT ( DISTINCT + - 7 ), + 45 ) AS col0, - CAST ( MIN ( ALL 55 ) AS INTEGER ) AS col1
----
NULL
-55

query I rowsort
SELECT ( - 5 ) - - - 23 - 92 AS col1
----
-120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4952
SELECT SUM( - 23 ) / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4952
SELECT SUM ( - 23 ) / + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 71 * ( + + 81 ) AS col0
----
5751

onlyif mysql # aggregate syntax: 
query I rowsort label-4954
SELECT - SUM( - ( - 46 ) )
----
-46

skipif mysql # not compatible
query I rowsort label-4954
SELECT - SUM ( - ( - 46 ) )
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-4955
SELECT - 49 + - COUNT( * ), 18 AS col0
----
-50
18

skipif mysql # not compatible
query II rowsort label-4955
SELECT - 49 + - COUNT ( * ), 18 AS col0
----
-50
18

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4956
SELECT DISTINCT - 42 + - CASE - 98 WHEN - COALESCE ( 81, + ( + 68 ) ) * 85 * ( - + CAST( - 76 AS DECIMAL ) ) * + 9 THEN 70 WHEN 72 THEN COUNT( * ) * ( 49 ) + ( + 50 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4956
SELECT DISTINCT - 42 + - CASE - 98 WHEN - COALESCE ( 81, + ( + 68 ) ) * 85 * ( - + CAST ( - 76 AS REAL ) ) * + 9 THEN 70 WHEN 72 THEN COUNT ( * ) * ( 49 ) + ( + 50 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4957
SELECT DISTINCT COALESCE ( - + 54, - + COUNT( * ) ), + ( 64 ) + 15 * - COUNT( - + 53 ) AS col2
----
-54
49

skipif mysql # not compatible
query II rowsort label-4957
SELECT DISTINCT COALESCE ( - + 54, - + COUNT ( * ) ), + ( 64 ) + 15 * - COUNT ( - + 53 ) AS col2
----
-54
49

query I rowsort
SELECT 83 + + 16 - + + COALESCE ( - - 3, 64 ) AS col1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4959
SELECT 27 * - + COUNT( * ) * + - ( + - 50 )
----
-1350

skipif mysql # not compatible
query I rowsort label-4959
SELECT 27 * - + COUNT ( * ) * + - ( + - 50 )
----
-1350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4960
SELECT ALL CASE 10 WHEN NULLIF ( SUM( + 59 ), - 29 ) THEN + CASE + 84 WHEN + 24 * + 48 * 90 THEN - - COUNT( * ) - 5 * - ( 60 * 47 ) WHEN - ( - 44 ) / 72 THEN + COUNT( * ) / COUNT( DISTINCT 75 ) WHEN + 20 THEN NULL WHEN 84 * 19 - 77 * - 10 THEN 44 END WHEN 25 * - CAST( 37 AS SIGNED ) THEN - ( 50 ) WHEN - 29 / 14 THEN NULL END + + 43 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4960
SELECT ALL CASE 10 WHEN NULLIF ( SUM ( + 59 ), - 29 ) THEN + CASE + 84 WHEN + 24 * + 48 * 90 THEN - - COUNT ( * ) - 5 * - ( 60 * 47 ) WHEN - ( - 44 ) / 72 THEN + COUNT ( * ) / COUNT ( DISTINCT 75 ) WHEN + 20 THEN NULL WHEN 84 * 19 - 77 * - 10 THEN 44 END WHEN 25 * - CAST ( 37 AS INTEGER ) THEN - ( 50 ) WHEN - 29 / 14 THEN NULL END + + 43 AS col1
----
NULL

query I rowsort
SELECT - 38 + + NULLIF ( - 93, - + 3 ) col2
----
-131

query I rowsort
SELECT + AVG ( + CASE - 26 WHEN - 91 + + 21 THEN + + 11 END )
----
NULL

query I rowsort
SELECT DISTINCT + - 53 col0
----
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4964
SELECT ALL - 79 * 77 - + 41, COUNT( * ) DIV - COALESCE ( - 3, + 87, 12 + ( 23 ) DIV + 89, + 62 ) + COUNT( * ) AS col2
----
-6124
1

skipif mysql # not compatible
query II rowsort label-4964
SELECT ALL - 79 * 77 - + 41, COUNT ( * ) / - COALESCE ( - 3, + 87, 12 + ( 23 ) / + 89, + 62 ) + COUNT ( * ) AS col2
----
-6124
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4965
SELECT 30 DIV + 35 * + 80 + - 12 + ( + 60 ) AS col0
----
48

skipif mysql # not compatible
query I rowsort label-4965
SELECT 30 / + 35 * + 80 + - 12 + ( + 60 ) AS col0
----
48

query I rowsort
SELECT ALL + - CASE - 67 WHEN + 27 - + - 9 THEN - 81 END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4967
SELECT DISTINCT + 66 DIV + 11 - - 70 - - ( + - 30 ) + - + 11 col0
----
35

skipif mysql # not compatible
query I rowsort label-4967
SELECT DISTINCT + 66 / + 11 - - 70 - - ( + - 30 ) + - + 11 col0
----
35

query I rowsort
SELECT - 80 + 33
----
-47

query I rowsort
SELECT ALL 86 * - COALESCE ( + + 7, 2 ) * + 27 * + 76
----
-1235304

onlyif mysql # DIV for integer division: 
query I rowsort label-4970
SELECT + 92 DIV + 55 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4970
SELECT + 92 / + 55 AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4971
SELECT + CASE - - 79 WHEN - 31 THEN - COUNT( * ) END, MIN( ALL 10 ) + + 96 AS col2
----
NULL
106

skipif mysql # not compatible
query II rowsort label-4971
SELECT + CASE - - 79 WHEN - 31 THEN - COUNT ( * ) END, MIN ( ALL 10 ) + + 96 AS col2
----
NULL
106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4972
SELECT - COUNT( - 10 ) + - 18 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4972
SELECT - COUNT ( - 10 ) + - 18 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4973
SELECT + NULLIF ( + - COUNT( * ), COALESCE ( - - 2, + - 79, - 99 + + NULLIF ( + 20, 38 ) ) * CAST( - - 54 AS SIGNED ) ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-4973
SELECT + NULLIF ( + - COUNT ( * ), COALESCE ( - - 2, + - 79, - 99 + + NULLIF ( + 20, 38 ) ) * CAST ( - - 54 AS INTEGER ) ) col1
----
-1

query II rowsort
SELECT ALL + NULLIF ( - + 85, - 51 ) AS col1, - 57 - 28 * 84
----
-85
-2409

onlyif mysql # aggregate syntax: 
query I rowsort label-4975
SELECT DISTINCT - 44 * - NULLIF ( + COUNT( * ), 81 * - 55 * + 67 + - 60 / + 89 * + 27 ) + - 19 * 40
----
-716

skipif mysql # not compatible
query I rowsort label-4975
SELECT DISTINCT - 44 * - NULLIF ( + COUNT ( * ), 81 * - 55 * + 67 + - 60 / + 89 * + 27 ) + - 19 * 40
----
-716

query I rowsort
SELECT DISTINCT + ( + ( + ( 29 ) ) ) col2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4977
SELECT DISTINCT 44 * + 29 + - + CASE - 48 WHEN - ( + MIN( DISTINCT - + 85 ) ) THEN NULL ELSE - + 55 + COUNT( * ) + + - SUM( + + 18 ) + 40 * - - 58 END + - ( MAX( 60 ) ) * COUNT( * ) AS col1
----
-1032

skipif mysql # not compatible
query I rowsort label-4977
SELECT DISTINCT 44 * + 29 + - + CASE - 48 WHEN - ( + MIN ( DISTINCT - + 85 ) ) THEN NULL ELSE - + 55 + COUNT ( * ) + + - SUM ( + + 18 ) + 40 * - - 58 END + - ( MAX ( 60 ) ) * COUNT ( * ) AS col1
----
-1032

query I rowsort
SELECT DISTINCT - 65 + - 15 - + 97 + 54 AS col2
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-4979
SELECT MAX( + - 88 )
----
-88

skipif mysql # not compatible
query I rowsort label-4979
SELECT MAX ( + - 88 )
----
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-4980
SELECT COUNT( * ), + MIN( - 42 ) * 83 AS col2
----
1
-3486

skipif mysql # not compatible
query II rowsort label-4980
SELECT COUNT ( * ), + MIN ( - 42 ) * 83 AS col2
----
1
-3486

query I rowsort
SELECT ALL NULLIF ( 30, 26 ) AS col0
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-4982
SELECT COUNT( * ), - 91 * 49 AS col2
----
1
-4459

skipif mysql # not compatible
query II rowsort label-4982
SELECT COUNT ( * ), - 91 * 49 AS col2
----
1
-4459

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4983
SELECT - CAST( NULL AS SIGNED ) + + 37 + + - 91 + - CASE - 32 WHEN - COALESCE ( 56, - 72 * + MAX( DISTINCT - 25 ) ) THEN NULL WHEN - - 67 THEN - 22 + + 78 + - 27 * 91 END + 25 * 48
----
NULL

skipif mysql # not compatible
query I rowsort label-4983
SELECT - CAST ( NULL AS INTEGER ) + + 37 + + - 91 + - CASE - 32 WHEN - COALESCE ( 56, - 72 * + MAX ( DISTINCT - 25 ) ) THEN NULL WHEN - - 67 THEN - 22 + + 78 + - 27 * 91 END + 25 * 48
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-4984
SELECT 47 col0, - COUNT( * ) * + CAST( 47 AS SIGNED ), 56 AS col2
----
47
-47
56

skipif mysql # not compatible
query III rowsort label-4984
SELECT 47 col0, - COUNT ( * ) * + CAST ( 47 AS INTEGER ), 56 AS col2
----
47
-47
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4985
SELECT ALL + 74 + - + 53 DIV + + CASE - + 40 WHEN 34 THEN NULL WHEN + 65 * - MIN( DISTINCT + - COALESCE ( - CAST( NULL AS SIGNED ), 97 ) ) + + - COUNT( * ) + + COUNT( * ) THEN NULL ELSE 80 + ( + COUNT( * ) ) END col0
----
74

skipif mysql # not compatible
query I rowsort label-4985
SELECT ALL + 74 + - + 53 / + + CASE - + 40 WHEN 34 THEN NULL WHEN + 65 * - MIN ( DISTINCT + - COALESCE ( - CAST ( NULL AS INTEGER ), 97 ) ) + + - COUNT ( * ) + + COUNT ( * ) THEN NULL ELSE 80 + ( + COUNT ( * ) ) END col0
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4986
SELECT ALL - 20 + - 90 * - 96 - + 60 + + CASE + 46 WHEN COUNT( * ) + + + MAX( DISTINCT + 3 ) THEN NULL WHEN - 30 * + - 47 THEN 42 DIV - CASE ( - 55 ) WHEN 53 - - 71 THEN NULL WHEN - COALESCE ( 92, ( 37 ) ) THEN COALESCE ( - 12, 5, - 91 * + 60 ) * - ( + ( MAX( ALL - 52 ) ) - + 3 ) ELSE - 48 END + 59 WHEN + 2 DIV - 17 THEN - 22 ELSE 6 * MAX( DISTINCT + 16 DIV 93 ) END
----
8560

skipif mysql # not compatible
query I rowsort label-4986
SELECT ALL - 20 + - 90 * - 96 - + 60 + + CASE + 46 WHEN COUNT ( * ) + + + MAX ( DISTINCT + 3 ) THEN NULL WHEN - 30 * + - 47 THEN 42 / - CASE ( - 55 ) WHEN 53 - - 71 THEN NULL WHEN - COALESCE ( 92, ( 37 ) ) THEN COALESCE ( - 12, 5, - 91 * + 60 ) * - ( + ( MAX ( ALL - 52 ) ) - + 3 ) ELSE - 48 END + 59 WHEN + 2 / - 17 THEN - 22 ELSE 6 * MAX ( DISTINCT + 16 / 93 ) END
----
8560

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4987
SELECT ALL - - 54 * 67 DIV COUNT( * ), 21 AS col1
----
3618
21

skipif mysql # not compatible
query II rowsort label-4987
SELECT ALL - - 54 * 67 / COUNT ( * ), 21 AS col1
----
3618
21

query I rowsort
SELECT ALL - 4 + + 80
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4989
SELECT DISTINCT - COUNT( ALL 95 )
----
-1

skipif mysql # not compatible
query I rowsort label-4989
SELECT DISTINCT - COUNT ( ALL 95 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4990
SELECT + - CAST( NULL AS SIGNED ) + - 70 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4990
SELECT + - CAST ( NULL AS INTEGER ) + - 70 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4991
SELECT + + MIN( ALL 93 ) + + COUNT( * ) + - + 74 + - COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-4991
SELECT + + MIN ( ALL 93 ) + + COUNT ( * ) + - + 74 + - COUNT ( * )
----
19

query I rowsort
SELECT - + 58 * + 28 + + 46 AS col0
----
-1578

query I rowsort
SELECT - - 0 * - 23
----
0

query I rowsort
SELECT + - 94 * + + 7
----
-658

query I rowsort
SELECT ALL 98 - - 7 * - 93 AS col2
----
-553

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4996
SELECT ALL CAST( NULL AS SIGNED ), 90 AS col0
----
NULL
90

skipif mysql # not compatible
query II rowsort label-4996
SELECT ALL CAST ( NULL AS INTEGER ), 90 AS col0
----
NULL
90

onlyif mysql # aggregate syntax: 
query II rowsort label-4997
SELECT 10, 42 * + 80 * + COUNT( * ) AS col1
----
10
3360

skipif mysql # not compatible
query II rowsort label-4997
SELECT 10, 42 * + 80 * + COUNT ( * ) AS col1
----
10
3360

query II rowsort
SELECT - 82 AS col1, + 84 AS col0
----
-82
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4999
SELECT ALL 25 * MIN( - 29 )
----
-725

skipif mysql # not compatible
query I rowsort label-4999
SELECT ALL 25 * MIN ( - 29 )
----
-725

onlyif mysql # aggregate syntax: 
query II rowsort label-5000
SELECT ALL - ( + + COUNT( * ) ) * COALESCE ( + 76, + - 3 - + 57 ) AS col2, 40 * 84
----
-76
3360

skipif mysql # not compatible
query II rowsort label-5000
SELECT ALL - ( + + COUNT ( * ) ) * COALESCE ( + 76, + - 3 - + 57 ) AS col2, 40 * 84
----
-76
3360

onlyif mysql # aggregate syntax: 
query II rowsort label-5001
SELECT + + COUNT( * ), SUM( ALL 83 ) AS col1
----
1
83

skipif mysql # not compatible
query II rowsort label-5001
SELECT + + COUNT ( * ), SUM ( ALL 83 ) AS col1
----
1
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5002
SELECT + - CASE - 85 WHEN COUNT( * ) * - 65 THEN - 96 + + - 77 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5002
SELECT + - CASE - 85 WHEN COUNT ( * ) * - 65 THEN - 96 + + - 77 END AS col1
----
NULL

query II rowsort
SELECT + - 77, + 44 AS col2
----
-77
44

query I rowsort
SELECT + - CASE - - COALESCE ( + + 28, + 45 ) WHEN - - 46 THEN + 18 + - 35 END * 77 + 26 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-5005
SELECT + + 36, 63 * - + 17 * - 80 AS col1, - 78 * - COALESCE ( - 10, + COUNT( * ) ) + - 15 col2
----
36
85680
-795

skipif mysql # not compatible
query III rowsort label-5005
SELECT + + 36, 63 * - + 17 * - 80 AS col1, - 78 * - COALESCE ( - 10, + COUNT ( * ) ) + - 15 col2
----
36
85680
-795

query II rowsort
SELECT + 74 * + 5 AS col2, - 23 + + - 27 AS col0
----
370
-50

query I rowsort
SELECT - 97 * 54 - - 69
----
-5169

query I rowsort
SELECT + 21 * - - 39 AS col1
----
819

onlyif mysql # DIV for integer division: 
query I rowsort label-5009
SELECT DISTINCT - 0 * + + 35 DIV 10 + - 70 AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-5009
SELECT DISTINCT - 0 * + + 35 / 10 + - 70 AS col2
----
-70

query I rowsort
SELECT ALL - 17 * 30 + 48 AS col2
----
-462

query I rowsort
SELECT + 91 - - 84 AS col2
----
175

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5012
SELECT + ( CAST( + + COALESCE ( - + COUNT( * ), + + COUNT( * ) ) AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5012
SELECT + ( CAST ( + + COALESCE ( - + COUNT ( * ), + + COUNT ( * ) ) AS INTEGER ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5013
SELECT - NULLIF ( - 97, - 70 + + 16 ) * MAX( DISTINCT + + 27 ) + + ( - - 68 ) AS col2
----
2687

skipif mysql # not compatible
query I rowsort label-5013
SELECT - NULLIF ( - 97, - 70 + + 16 ) * MAX ( DISTINCT + + 27 ) + + ( - - 68 ) AS col2
----
2687

query II rowsort
SELECT + ( + + 55 ) AS col1, 71 AS col0
----
55
71

query I rowsort
SELECT + 55 * 83 AS col0
----
4565

query I rowsort
SELECT - 19 * 56 * 79 AS col2
----
-84056

onlyif mysql # aggregate syntax: 
query I rowsort label-5017
SELECT ALL 83 * - - COUNT( * ) + 41 col1
----
124

skipif mysql # not compatible
query I rowsort label-5017
SELECT ALL 83 * - - COUNT ( * ) + 41 col1
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-5018
SELECT + ( 4 ) + - + 17 * ( - 10 ) * - - 91 - CASE + COUNT( * ) WHEN - - 16 THEN + + 27 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5018
SELECT + ( 4 ) + - + 17 * ( - 10 ) * - - 91 - CASE + COUNT ( * ) WHEN - - 16 THEN + + 27 END AS col0
----
NULL

query I rowsort
SELECT COALESCE ( + 65, - 93 ) col2
----
65

query II rowsort
SELECT ALL ( + 96 ), 58 AS col1
----
96
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5021
SELECT ALL CAST( NULL AS SIGNED ) * - 28 - + 11 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5021
SELECT ALL CAST ( NULL AS INTEGER ) * - 28 - + 11 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5022
SELECT MIN( 71 )
----
71

skipif mysql # not compatible
query I rowsort label-5022
SELECT MIN ( 71 )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5023
SELECT ALL - MAX( ALL + 53 ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-5023
SELECT ALL - MAX ( ALL + 53 ) AS col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-5024
SELECT COUNT( DISTINCT - - 69 )
----
1

skipif mysql # not compatible
query I rowsort label-5024
SELECT COUNT ( DISTINCT - - 69 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5025
SELECT - + NULLIF ( + CAST( NULL AS SIGNED ), + - 26 ) + 74 + + 87 + + 60 / - 19 * + + CASE - 93 WHEN 84 / - CASE - MAX( - 19 ) WHEN + 97 THEN SUM( 67 ) END THEN 36 * NULLIF ( - 8, 5 + 29 * + 38 ) WHEN COUNT( * ) THEN + 48 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5025
SELECT - + NULLIF ( + CAST ( NULL AS INTEGER ), + - 26 ) + 74 + + 87 + + 60 / - 19 * + + CASE - 93 WHEN 84 / - CASE - MAX ( - 19 ) WHEN + 97 THEN SUM ( 67 ) END THEN 36 * NULLIF ( - 8, 5 + 29 * + 38 ) WHEN COUNT ( * ) THEN + 48 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5026
SELECT ( + CASE + 68 WHEN - 65 + - - COUNT( * ) - COUNT( * ) THEN - 83 * - 63 * + - 93 / 30 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-5026
SELECT ( + CASE + 68 WHEN - 65 + - - COUNT ( * ) - COUNT ( * ) THEN - 83 * - 63 * + - 93 / 30 END )
----
NULL

query I rowsort
SELECT - 29 - + 12 AS col0
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5028
SELECT + 34 * + - COUNT( * ) * - SUM( - 43 ) * 92 - + + 64 + ( - 86 ) DIV 87 * - 25
----
-134568

skipif mysql # not compatible
query I rowsort label-5028
SELECT + 34 * + - COUNT ( * ) * - SUM ( - 43 ) * 92 - + + 64 + ( - 86 ) / 87 * - 25
----
-134568

query I rowsort
SELECT DISTINCT - 10 * - NULLIF ( - 5, + 42 * - + 58 ) AS col2
----
-50

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5030
SELECT CAST( NULL AS DECIMAL ) - + 58
----
NULL

skipif mysql # not compatible
query I rowsort label-5030
SELECT CAST ( NULL AS REAL ) - + 58
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5031
SELECT DISTINCT - + COUNT( * ) * 15 * 11 AS col1
----
-165

skipif mysql # not compatible
query I rowsort label-5031
SELECT DISTINCT - + COUNT ( * ) * 15 * 11 AS col1
----
-165

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5032
SELECT 15 + + 8 + + - 5 + - 8 * 32 AS col0, COUNT( * ) * + - CAST( NULL AS SIGNED ) AS col2
----
-238
NULL

skipif mysql # not compatible
query II rowsort label-5032
SELECT 15 + + 8 + + - 5 + - 8 * 32 AS col0, COUNT ( * ) * + - CAST ( NULL AS INTEGER ) AS col2
----
-238
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5033
SELECT CAST( NULL AS SIGNED ) * + + ( - 6 ) + + - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-5033
SELECT CAST ( NULL AS INTEGER ) * + + ( - 6 ) + + - 31
----
NULL

query I rowsort
SELECT 92 + 50 + + - 55
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5035
SELECT 82 DIV COUNT( * ) + - 40 + + 11 AS col0
----
53

skipif mysql # not compatible
query I rowsort label-5035
SELECT 82 / COUNT ( * ) + - 40 + + 11 AS col0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-5036
SELECT DISTINCT - COALESCE ( + 73, + - 55, + SUM( ALL + - 14 ) ) + + - 73 + 78 AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-5036
SELECT DISTINCT - COALESCE ( + 73, + - 55, + SUM ( ALL + - 14 ) ) + + - 73 + 78 AS col2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-5037
SELECT ALL 91 * - - MAX( + 73 )
----
6643

skipif mysql # not compatible
query I rowsort label-5037
SELECT ALL 91 * - - MAX ( + 73 )
----
6643

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5038
SELECT DISTINCT 26 + + 2 DIV ( + COUNT( * ) )
----
28

skipif mysql # not compatible
query I rowsort label-5038
SELECT DISTINCT 26 + + 2 / ( + COUNT ( * ) )
----
28

query I rowsort
SELECT ALL 85 + 60 col2
----
145

query I rowsort
SELECT ALL 55 * + + 16
----
880

query I rowsort
SELECT 45 * + 38 AS col1
----
1710

onlyif mysql # aggregate syntax: 
query I rowsort label-5042
SELECT 81 + + - COUNT( * ) col1
----
80

skipif mysql # not compatible
query I rowsort label-5042
SELECT 81 + + - COUNT ( * ) col1
----
80

query I rowsort
SELECT DISTINCT 90 + 96
----
186

query I rowsort
SELECT ALL 49 + - 92
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-5045
SELECT 71 * + COUNT( * ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-5045
SELECT 71 * + COUNT ( * ) AS col2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5046
SELECT COUNT( * ) * + ( + - 58 )
----
-58

skipif mysql # not compatible
query I rowsort label-5046
SELECT COUNT ( * ) * + ( + - 58 )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5047
SELECT DISTINCT - MAX( DISTINCT 83 ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-5047
SELECT DISTINCT - MAX ( DISTINCT 83 ) AS col0
----
-83

onlyif mysql # DIV for integer division: 
query II rowsort label-5048
SELECT DISTINCT - 55 DIV 69 * - - 40 AS col0, + 50
----
0
50

skipif mysql # not compatible
query II rowsort label-5048
SELECT DISTINCT - 55 / 69 * - - 40 AS col0, + 50
----
0
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5049
SELECT + 52 DIV MAX( - + 55 ) DIV 82 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5049
SELECT + 52 / MAX ( - + 55 ) / 82 AS col0
----
0

query I rowsort
SELECT - 91 * + 91
----
-8281

query I rowsort
SELECT 58 + - 73
----
-15

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5052
SELECT ALL - 61 * + 66 * - NULLIF ( + - CAST( NULL AS DECIMAL ), 82 * - 12 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5052
SELECT ALL - 61 * + 66 * - NULLIF ( + - CAST ( NULL AS REAL ), 82 * - 12 )
----
NULL

query I rowsort
SELECT DISTINCT 19 * + 67 AS col1
----
1273

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5054
SELECT 81 + + 93 + - + COUNT( * ), - 7 * - 85 + SUM( - 6 ) + + - 42 DIV + - 85 AS col2
----
173
589

skipif mysql # not compatible
query II rowsort label-5054
SELECT 81 + + 93 + - + COUNT ( * ), - 7 * - 85 + SUM ( - 6 ) + + - 42 / + - 85 AS col2
----
173
589

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5055
SELECT - + CASE - 18 WHEN - - 12 * + - 88 + 86 THEN - - CAST( NULL AS DECIMAL ) WHEN - 26 + + 12 + - - 41 THEN + COUNT( * ) WHEN 72 - + 54 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5055
SELECT - + CASE - 18 WHEN - - 12 * + - 88 + 86 THEN - - CAST ( NULL AS REAL ) WHEN - 26 + + 12 + - - 41 THEN + COUNT ( * ) WHEN 72 - + 54 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5056
SELECT ALL - ( COUNT( + + 31 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5056
SELECT ALL - ( COUNT ( + + 31 ) )
----
-1

query I rowsort
SELECT - ( + - 91 ) * 89 * 41 AS col1
----
332059

query I rowsort
SELECT - 77 + 99 + + - 7 AS col1
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5059
SELECT - CAST( NULL AS SIGNED ) AS col0, + 23 * - 64
----
NULL
-1472

skipif mysql # not compatible
query II rowsort label-5059
SELECT - CAST ( NULL AS INTEGER ) AS col0, + 23 * - 64
----
NULL
-1472

onlyif mysql # DIV for integer division: 
query I rowsort label-5060
SELECT ALL + - 2 + - - 43 DIV - 80 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-5060
SELECT ALL + - 2 + - - 43 / - 80 AS col1
----
-2

query I rowsort
SELECT 20 * + 69 col0
----
1380

query I rowsort
SELECT + 43 * - 68 * - 74
----
216376

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5063
SELECT DISTINCT - CAST( 78 AS SIGNED ) * 71 DIV + + 52 + + 66 - + 5 * - 46
----
190

skipif mysql # not compatible
query I rowsort label-5063
SELECT DISTINCT - CAST ( 78 AS INTEGER ) * 71 / + + 52 + + 66 - + 5 * - 46
----
190

query I rowsort
SELECT ALL + 85 + + 50 + + 36 + + 7 * + - 7 * - 42 + 26 AS col0
----
2255

onlyif mysql # aggregate syntax: 
query I rowsort label-5065
SELECT ALL + 51 + - NULLIF ( + 0, - 5 * - 95 + + 82 * - + COUNT( * ) ) * COUNT( * ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-5065
SELECT ALL + 51 + - NULLIF ( + 0, - 5 * - 95 + + 82 * - + COUNT ( * ) ) * COUNT ( * ) AS col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5066
SELECT DISTINCT + 78 * 38 * - + 30 * + COUNT( * ) * - 53
----
4712760

skipif mysql # not compatible
query I rowsort label-5066
SELECT DISTINCT + 78 * 38 * - + 30 * + COUNT ( * ) * - 53
----
4712760

onlyif mysql # aggregate syntax: 
query II rowsort label-5067
SELECT COUNT( * ), 12 col2
----
1
12

skipif mysql # not compatible
query II rowsort label-5067
SELECT COUNT ( * ), 12 col2
----
1
12

query I rowsort
SELECT ALL + 60 * - ( + + 67 )
----
-4020

onlyif mysql # aggregate syntax: 
query II rowsort label-5069
SELECT 45 / - - NULLIF ( + CASE + COUNT( * ) WHEN - + 11 + - 87 THEN NULL ELSE - COUNT( * ) * - CASE + + 62 WHEN - + 69 THEN + 79 END END, + 78 ), CASE 0 WHEN 10 THEN NULL WHEN 18 THEN 30 * 61 WHEN COUNT( * ) THEN NULL ELSE NULL END col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5069
SELECT 45 / - - NULLIF ( + CASE + COUNT ( * ) WHEN - + 11 + - 87 THEN NULL ELSE - COUNT ( * ) * - CASE + + 62 WHEN - + 69 THEN + 79 END END, + 78 ), CASE 0 WHEN 10 THEN NULL WHEN 18 THEN 30 * 61 WHEN COUNT ( * ) THEN NULL ELSE NULL END col0
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5070
SELECT 81 DIV + 50
----
1

skipif mysql # not compatible
query I rowsort label-5070
SELECT 81 / + 50
----
1

query I rowsort
SELECT 52 * - 28 AS col2
----
-1456

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5072
SELECT ALL NULLIF ( 21, - - 50 - - ( - - 23 ) ) * + 93 * - 1 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5072
SELECT ALL NULLIF ( 21, - - 50 - - ( - - 23 ) ) * + 93 * - 1 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5073
SELECT SUM( 9 ) col0
----
9

skipif mysql # not compatible
query I rowsort label-5073
SELECT SUM ( 9 ) col0
----
9

query II rowsort
SELECT + 50 * - - 1 * + 34 - - + 33 AS col1, 92
----
1733
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5075
SELECT ALL + 15 DIV + - COALESCE ( - 27, - - COUNT( * ) * + 12 * + 31, - - 49 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5075
SELECT ALL + 15 / + - COALESCE ( - 27, - - COUNT ( * ) * + 12 * + 31, - - 49 ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5076
SELECT + 34 AS col2, - 27 * - CAST( NULL AS SIGNED ) AS col1
----
34
NULL

skipif mysql # not compatible
query II rowsort label-5076
SELECT + 34 AS col2, - 27 * - CAST ( NULL AS INTEGER ) AS col1
----
34
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5077
SELECT COUNT( * ) col1, + COALESCE ( MIN( + CAST( NULL AS SIGNED ) ), + - COUNT( * ) ) AS col1
----
1
-1

skipif mysql # not compatible
query II rowsort label-5077
SELECT COUNT ( * ) col1, + COALESCE ( MIN ( + CAST ( NULL AS INTEGER ) ), + - COUNT ( * ) ) AS col1
----
1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5078
SELECT COUNT( ALL + ( + 25 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5078
SELECT COUNT ( ALL + ( + 25 ) ) AS col0
----
1

query II rowsort
SELECT + 45 AS col0, 2
----
45
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5080
SELECT MIN( DISTINCT + 89 ) + + COUNT( * ) * - MAX( - 47 ) * 94 * - 99 * - 40
----
17495369

skipif mysql # not compatible
query I rowsort label-5080
SELECT MIN ( DISTINCT + 89 ) + + COUNT ( * ) * - MAX ( - 47 ) * 94 * - 99 * - 40
----
17495369

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5081
SELECT - 12 * - 13 * + 81 * + COUNT( * ) - CAST( + 26 AS SIGNED ) AS col2
----
12610

skipif mysql # not compatible
query I rowsort label-5081
SELECT - 12 * - 13 * + 81 * + COUNT ( * ) - CAST ( + 26 AS INTEGER ) AS col2
----
12610

onlyif mysql # aggregate syntax: 
query II rowsort label-5082
SELECT + COUNT( * ) + + + 72, 27 + - - MIN( + - 67 ) * + 81 AS col2
----
73
-5400

skipif mysql # not compatible
query II rowsort label-5082
SELECT + COUNT ( * ) + + + 72, 27 + - - MIN ( + - 67 ) * + 81 AS col2
----
73
-5400

onlyif mysql # aggregate syntax: 
query I rowsort label-5083
SELECT ALL + + NULLIF ( - + 13, + 59 + - + MAX( DISTINCT - 26 ) ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-5083
SELECT ALL + + NULLIF ( - + 13, + 59 + - + MAX ( DISTINCT - 26 ) ) AS col1
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-5084
SELECT 86 AS col2, - COUNT( * ) + - 6
----
86
-7

skipif mysql # not compatible
query II rowsort label-5084
SELECT 86 AS col2, - COUNT ( * ) + - 6
----
86
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-5085
SELECT DISTINCT + + CASE COUNT( * ) WHEN - + NULLIF ( + + 12, + - 85 ) THEN NULL ELSE + 86 + 55 END
----
141

skipif mysql # not compatible
query I rowsort label-5085
SELECT DISTINCT + + CASE COUNT ( * ) WHEN - + NULLIF ( + + 12, + - 85 ) THEN NULL ELSE + 86 + 55 END
----
141

onlyif mysql # aggregate syntax: 
query II rowsort label-5086
SELECT ALL 93 AS col2, 66 * + COUNT( * ) * - 53 col0
----
93
-3498

skipif mysql # not compatible
query II rowsort label-5086
SELECT ALL 93 AS col2, 66 * + COUNT ( * ) * - 53 col0
----
93
-3498

query I rowsort
SELECT + - 21 * + 45
----
-945

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5088
SELECT CAST( + - 56 AS SIGNED )
----
-56

skipif mysql # not compatible
query I rowsort label-5088
SELECT CAST ( + - 56 AS INTEGER )
----
-56

query I rowsort
SELECT DISTINCT + 49 + 53 AS col1
----
102

query I rowsort
SELECT ALL 49 + - + ( - - 71 )
----
-22

query I rowsort
SELECT + - 19 * + 93 AS col2
----
-1767

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5092
SELECT ALL - 14 + COUNT( * ) - + 70 DIV + 44
----
-14

skipif mysql # not compatible
query I rowsort label-5092
SELECT ALL - 14 + COUNT ( * ) - + 70 / + 44
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-5093
SELECT - + ( - CASE - 71 WHEN + MAX( - - ( + 67 ) ) + COUNT( * ) THEN + ( - + 47 ) END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5093
SELECT - + ( - CASE - 71 WHEN + MAX ( - - ( + 67 ) ) + COUNT ( * ) THEN + ( - + 47 ) END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5094
SELECT ALL 80 * - + COALESCE ( + COUNT( * ), - 6 ) col2
----
-80

skipif mysql # not compatible
query I rowsort label-5094
SELECT ALL 80 * - + COALESCE ( + COUNT ( * ), - 6 ) col2
----
-80

query I rowsort
SELECT + 62 + - - 63 AS col0
----
125

query I rowsort
SELECT - 68 - + 89 - + - 59
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5097
SELECT + MAX( DISTINCT - 77 ) + CAST( - 21 AS SIGNED ) + 32 col0
----
-66

skipif mysql # not compatible
query I rowsort label-5097
SELECT + MAX ( DISTINCT - 77 ) + CAST ( - 21 AS INTEGER ) + 32 col0
----
-66

query II rowsort
SELECT ALL 90 * - 52 - 51 * + 88 * - 41 AS col2, + 18
----
179328
18

query I rowsort
SELECT + 83 * - - 70 + 64
----
5874

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5100
SELECT - ( - - CASE - - 60 WHEN - + 87 THEN NULL WHEN - CAST( 92 AS SIGNED ) * COUNT( * ) + + 4 + + - 98 THEN - - 84 ELSE NULL END ) * 38 * 6 * 38 * - + 51 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5100
SELECT - ( - - CASE - - 60 WHEN - + 87 THEN NULL WHEN - CAST ( 92 AS INTEGER ) * COUNT ( * ) + + 4 + + - 98 THEN - - 84 ELSE NULL END ) * 38 * 6 * 38 * - + 51 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5101
SELECT DISTINCT + CAST( - 13 AS SIGNED ) AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-5101
SELECT DISTINCT + CAST ( - 13 AS INTEGER ) AS col2
----
-13

query I rowsort
SELECT ALL + 30 * 9 * + + 82 * - - ( 0 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5103
SELECT - NULLIF ( 27, + + ( + + 90 ) + + 72 ) DIV 95 + + 21
----
21

skipif mysql # not compatible
query I rowsort label-5103
SELECT - NULLIF ( 27, + + ( + + 90 ) + + 72 ) / 95 + + 21
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5104
SELECT + ( + 59 ) * - 89 - 61 + SUM( ALL + 99 )
----
-5213

skipif mysql # not compatible
query I rowsort label-5104
SELECT + ( + 59 ) * - 89 - 61 + SUM ( ALL + 99 )
----
-5213

query I rowsort
SELECT - 54 + - CASE + 41 WHEN - ( 76 ) THEN + 71 END * - 27 + - 32 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5106
SELECT ALL + SUM( DISTINCT - - CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5106
SELECT ALL + SUM ( DISTINCT - - CAST ( NULL AS REAL ) ) AS col0
----
NULL

query I rowsort
SELECT - 45 * 4 + + 99
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-5108
SELECT DISTINCT + COUNT( - 53 ), + 22 AS col1
----
1
22

skipif mysql # not compatible
query II rowsort label-5108
SELECT DISTINCT + COUNT ( - 53 ), + 22 AS col1
----
1
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5109
SELECT - + 30 * + + 96 + + 30 + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5109
SELECT - + 30 * + + 96 + + 30 + - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - - 67 * 0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5111
SELECT DISTINCT + SUM( + 71 ), COUNT( * ) * 50 AS col0
----
71
50

skipif mysql # not compatible
query II rowsort label-5111
SELECT DISTINCT + SUM ( + 71 ), COUNT ( * ) * 50 AS col0
----
71
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5112
SELECT + + CAST( - 45 AS SIGNED ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-5112
SELECT + + CAST ( - 45 AS INTEGER ) AS col1
----
-45

query I rowsort
SELECT ALL 53 * - 80 + 21 AS col2
----
-4219

query I rowsort
SELECT ALL + - 97 * - - ( + 37 ) * + 65 + + 50 AS col1
----
-233235

onlyif mysql # aggregate syntax: 
query II rowsort label-5115
SELECT MIN( DISTINCT 60 ), + 6 * + + 89 * + 48 * + - 59 + 55 + + 11 + 91 * - + 63 col1
----
60
-1517955

skipif mysql # not compatible
query II rowsort label-5115
SELECT MIN ( DISTINCT 60 ), + 6 * + + 89 * + 48 * + - 59 + 55 + + 11 + 91 * - + 63 col1
----
60
-1517955

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5116
SELECT + + 9 * - 65 col0, - 11 + 6 + - + CAST( 27 AS SIGNED ) col2
----
-585
-32

skipif mysql # not compatible
query II rowsort label-5116
SELECT + + 9 * - 65 col0, - 11 + 6 + - + CAST ( 27 AS INTEGER ) col2
----
-585
-32

query II rowsort
SELECT - ( + - 24 ), 94 * + + 84 + + 59 AS col1
----
24
7955

onlyif mysql # aggregate syntax: 
query I rowsort label-5118
SELECT - COALESCE ( MIN( ALL - 87 ), 24 )
----
87

skipif mysql # not compatible
query I rowsort label-5118
SELECT - COALESCE ( MIN ( ALL - 87 ), 24 )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5119
SELECT ALL 35 * - + 74 - ( - + 49 ) + + COUNT( * )
----
-2540

skipif mysql # not compatible
query I rowsort label-5119
SELECT ALL 35 * - + 74 - ( - + 49 ) + + COUNT ( * )
----
-2540

query II rowsort
SELECT - 12 + 3, 2 AS col0
----
-9
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5121
SELECT DISTINCT + - 12 * SUM( DISTINCT 64 ) * + + 40 + + - 56
----
-30776

skipif mysql # not compatible
query I rowsort label-5121
SELECT DISTINCT + - 12 * SUM ( DISTINCT 64 ) * + + 40 + + - 56
----
-30776

query I rowsort
SELECT DISTINCT 65 + - 75 + + 99 AS col1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-5123
SELECT DISTINCT COALESCE ( 29, + SUM( DISTINCT - CASE WHEN NOT ( - 99 ) IS NOT NULL THEN 62 - + 86 * 29 ELSE NULL END ) - - 43, + 21 ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-5123
SELECT DISTINCT COALESCE ( 29, + SUM ( DISTINCT - CASE WHEN NOT ( - 99 ) IS NOT NULL THEN 62 - + 86 * 29 ELSE NULL END ) - - 43, + 21 ) AS col1
----
29

query I rowsort
SELECT - + 83 col2
----
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5125
SELECT ALL 74 - COUNT( * ) DIV + - 72
----
74

skipif mysql # not compatible
query I rowsort label-5125
SELECT ALL 74 - COUNT ( * ) / + - 72
----
74

query I rowsort
SELECT ALL 32 * 18
----
576

query I rowsort
SELECT + 38 * + + 2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5128
SELECT + 44 + - - COUNT( * ) + + - 92 * - 14 AS col0
----
1333

skipif mysql # not compatible
query I rowsort label-5128
SELECT + 44 + - - COUNT ( * ) + + - 92 * - 14 AS col0
----
1333

onlyif mysql # aggregate syntax: 
query II rowsort label-5129
SELECT 97 AS col2, - 74 + COUNT( * ) AS col0
----
97
-73

skipif mysql # not compatible
query II rowsort label-5129
SELECT 97 AS col2, - 74 + COUNT ( * ) AS col0
----
97
-73

onlyif mysql # aggregate syntax: 
query III rowsort label-5130
SELECT ALL 26 * + - 98 * - COUNT( * ) AS col1, 69 col0, - 45 - - - 98 AS col0
----
2548
69
-143

skipif mysql # not compatible
query III rowsort label-5130
SELECT ALL 26 * + - 98 * - COUNT ( * ) AS col1, 69 col0, - 45 - - - 98 AS col0
----
2548
69
-143

query I rowsort
SELECT ALL 38 - + + 20
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5132
SELECT ALL 97 * + CAST( + + COUNT( * ) AS SIGNED ) AS col2, CAST( NULL AS DECIMAL ) * 70 AS col1
----
97
NULL

skipif mysql # not compatible
query II rowsort label-5132
SELECT ALL 97 * + CAST ( + + COUNT ( * ) AS INTEGER ) AS col2, CAST ( NULL AS REAL ) * 70 AS col1
----
97
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5133
SELECT DISTINCT MIN( ALL + 77 ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-5133
SELECT DISTINCT MIN ( ALL + 77 ) AS col2
----
77

query I rowsort
SELECT ALL 20 - + 24 + - 28 * 29
----
-816

query I rowsort
SELECT DISTINCT 31 * - 89 AS col2
----
-2759

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5136
SELECT + CAST( NULL AS SIGNED ) * 91 * 58 AS col2, 51 * + - 44
----
NULL
-2244

skipif mysql # not compatible
query II rowsort label-5136
SELECT + CAST ( NULL AS INTEGER ) * 91 * 58 AS col2, 51 * + - 44
----
NULL
-2244

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5137
SELECT + CAST( + CASE + 46 WHEN + + 43 + + + COUNT( * ) THEN 10 WHEN - - COUNT( * ) THEN NULL WHEN 65 * - 93 + - 4 THEN NULL ELSE NULL END AS SIGNED ) * SUM( DISTINCT + - 80 ) / 29 / 73 / + + 45
----
NULL

skipif mysql # not compatible
query I rowsort label-5137
SELECT + CAST ( + CASE + 46 WHEN + + 43 + + + COUNT ( * ) THEN 10 WHEN - - COUNT ( * ) THEN NULL WHEN 65 * - 93 + - 4 THEN NULL ELSE NULL END AS INTEGER ) * SUM ( DISTINCT + - 80 ) / 29 / 73 / + + 45
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5138
SELECT MIN( + 79 ) - COUNT( * ) + 33 * + COUNT( DISTINCT + 36 ) * - 75 + + + 73 + 31 + - - 19 + - 71 AS col2
----
-2345

skipif mysql # not compatible
query I rowsort label-5138
SELECT MIN ( + 79 ) - COUNT ( * ) + 33 * + COUNT ( DISTINCT + 36 ) * - 75 + + + 73 + 31 + - - 19 + - 71 AS col2
----
-2345

onlyif mysql # aggregate syntax: 
query II rowsort label-5139
SELECT + 42, - COUNT( * ) col0
----
42
-1

skipif mysql # not compatible
query II rowsort label-5139
SELECT + 42, - COUNT ( * ) col0
----
42
-1

query II rowsort
SELECT DISTINCT - 67 AS col0, NULLIF ( ( + ( - 32 ) ), + 53 )
----
-67
-32

query I rowsort
SELECT ALL + 98 + - 50 AS col2
----
48

query I rowsort
SELECT - 3 * - 97 * 15 * + + 78 - + 24 AS col0
----
340446

query II rowsort
SELECT DISTINCT - 44 col2, 95 AS col2
----
-44
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5144
SELECT DISTINCT - 43 + - 9 - + 13 + - 47 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5144
SELECT DISTINCT - 43 + - 9 - + 13 + - 47 + - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL - 67, ( - - 33 ) AS col0
----
-67
33

onlyif mysql # aggregate syntax: 
query II rowsort label-5146
SELECT 53 AS col0, 52 * + MIN( 32 ) AS col1
----
53
1664

skipif mysql # not compatible
query II rowsort label-5146
SELECT 53 AS col0, 52 * + MIN ( 32 ) AS col1
----
53
1664

query I rowsort
SELECT ALL - 93 + + - 44 * - ( 79 ) AS col2
----
3383

query II rowsort
SELECT - + 11 * 98 + - 5 * 13 AS col0, 74
----
-1143
74

query I rowsort
SELECT + 21 - + + 16 - + - 58 AS col1
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5150
SELECT - 17 * COALESCE ( 26, - 42 ) - + CAST( NULL AS SIGNED ) * 16 - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5150
SELECT - 17 * COALESCE ( 26, - 42 ) - + CAST ( NULL AS INTEGER ) * 16 - - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5151
SELECT + 62, - 82 - - COUNT( * ) AS col1
----
62
-81

skipif mysql # not compatible
query II rowsort label-5151
SELECT + 62, - 82 - - COUNT ( * ) AS col1
----
62
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5152
SELECT - 96 * + ( - COUNT( ALL + CAST( NULL AS SIGNED ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-5152
SELECT - 96 * + ( - COUNT ( ALL + CAST ( NULL AS INTEGER ) ) )
----
0

query I rowsort
SELECT ALL - - 70 AS col2
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5154
SELECT ALL CASE - CAST( NULL AS SIGNED ) WHEN - 17 THEN - 58 / 82 + - SUM( DISTINCT + 77 ) WHEN - + 30 THEN + - 85 - + 31 - - 87 ELSE 38 END
----
38

skipif mysql # not compatible
query I rowsort label-5154
SELECT ALL CASE - CAST ( NULL AS INTEGER ) WHEN - 17 THEN - 58 / 82 + - SUM ( DISTINCT + 77 ) WHEN - + 30 THEN + - 85 - + 31 - - 87 ELSE 38 END
----
38

query I rowsort
SELECT + 37 * + ( - + 76 )
----
-2812

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5156
SELECT 43 + + CAST( - ( SUM( DISTINCT 94 ) ) AS SIGNED ) * + - 96 col2
----
9067

skipif mysql # not compatible
query I rowsort label-5156
SELECT 43 + + CAST ( - ( SUM ( DISTINCT 94 ) ) AS INTEGER ) * + - 96 col2
----
9067

query I rowsort
SELECT DISTINCT - 47 * - 58 AS col1
----
2726

onlyif mysql # aggregate syntax: 
query I rowsort label-5158
SELECT 61 - + 48 + + COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-5158
SELECT 61 - + 48 + + COUNT ( * )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5159
SELECT 64 * MAX( DISTINCT + 0 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5159
SELECT 64 * MAX ( DISTINCT + 0 ) AS col2
----
0

query I rowsort
SELECT 0 * + 20 AS col0
----
0

query I rowsort
SELECT 71 + 94 AS col2
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-5162
SELECT DISTINCT - 47 * + + SUM( + 17 ) * + + 55 - - + 37
----
-43908

skipif mysql # not compatible
query I rowsort label-5162
SELECT DISTINCT - 47 * + + SUM ( + 17 ) * + + 55 - - + 37
----
-43908

query I rowsort
SELECT 90 * + 0
----
0

query I rowsort
SELECT 96 - + 29 AS col0
----
67

query I rowsort
SELECT DISTINCT 14 * - 39 col0
----
-546

onlyif mysql # aggregate syntax: 
query I rowsort label-5166
SELECT 70 + - + COUNT( * ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-5166
SELECT 70 + - + COUNT ( * ) AS col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5167
SELECT COALESCE ( 26, + COUNT( * ), + + 94 ) - + ( + 32 ) + 21
----
15

skipif mysql # not compatible
query I rowsort label-5167
SELECT COALESCE ( 26, + COUNT ( * ), + + 94 ) - + ( + 32 ) + 21
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5168
SELECT 80 + + + MIN( DISTINCT - 35 )
----
45

skipif mysql # not compatible
query I rowsort label-5168
SELECT 80 + + + MIN ( DISTINCT - 35 )
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5169
SELECT COUNT( * ) DIV 8 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5169
SELECT COUNT ( * ) / 8 AS col2
----
0

query I rowsort
SELECT ALL 13 + + + 13
----
26

query I rowsort
SELECT 5 + + 30 AS col2
----
35

onlyif mysql # DIV for integer division: 
query II rowsort label-5172
SELECT ALL - 94 DIV 21 AS col2, - 67
----
-4
-67

skipif mysql # not compatible
query II rowsort label-5172
SELECT ALL - 94 / 21 AS col2, - 67
----
-4
-67

query I rowsort
SELECT DISTINCT NULLIF ( 35, - 43 ) + + - 57 * - - 9 + - 75
----
-553

query I rowsort
SELECT ALL - 45 + + 45
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5175
SELECT DISTINCT 57 + + + SUM( DISTINCT - - 89 ) col0
----
146

skipif mysql # not compatible
query I rowsort label-5175
SELECT DISTINCT 57 + + + SUM ( DISTINCT - - 89 ) col0
----
146

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5176
SELECT DISTINCT + - 35 + - - CASE + - 2 WHEN + + 41 - - 38 * + COUNT( ALL - - 87 ) + - CAST( NULL AS SIGNED ) * + - 27 THEN + 1 END + - 97 + + 82 / 17 + + CAST( + + COUNT( * ) AS SIGNED ) + + + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-5176
SELECT DISTINCT + - 35 + - - CASE + - 2 WHEN + + 41 - - 38 * + COUNT ( ALL - - 87 ) + - CAST ( NULL AS INTEGER ) * + - 27 THEN + 1 END + - 97 + + 82 / 17 + + CAST ( + + COUNT ( * ) AS INTEGER ) + + + 0
----
NULL

query I rowsort
SELECT + 35 * + 64 AS col0
----
2240

onlyif mysql # DIV for integer division: 
query I rowsort label-5178
SELECT + 64 DIV - ( - - 8 ) + + - 78
----
-86

skipif mysql # not compatible
query I rowsort label-5178
SELECT + 64 / - ( - - 8 ) + + - 78
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-5179
SELECT NULLIF ( - MAX( 91 ), + 26 + - 54 ) AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-5179
SELECT NULLIF ( - MAX ( 91 ), + 26 + - 54 ) AS col2
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5180
SELECT + 18 + + + 73 + + 37 + - - 93 * + 86 * + 52 * 2 * CAST( 33 AS SIGNED ) * - 5
----
-137245552

skipif mysql # not compatible
query I rowsort label-5180
SELECT + 18 + + + 73 + + 37 + - - 93 * + 86 * + 52 * 2 * CAST ( 33 AS INTEGER ) * - 5
----
-137245552

query I rowsort
SELECT ALL 15 + - 51
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-5182
SELECT 43 * - 5 * + + 30 + - + 77 + COUNT( * ) * + 43 * + + 84
----
-2915

skipif mysql # not compatible
query I rowsort label-5182
SELECT 43 * - 5 * + + 30 + - + 77 + COUNT ( * ) * + 43 * + + 84
----
-2915

query I rowsort
SELECT ALL - 37 * - - 90 + + 6 AS col2
----
-3324

onlyif mysql # aggregate syntax: 
query I rowsort label-5184
SELECT ALL + 26 * - - 62 * 33 + - 98 + - 61 * COUNT( * )
----
53037

skipif mysql # not compatible
query I rowsort label-5184
SELECT ALL + 26 * - - 62 * 33 + - 98 + - 61 * COUNT ( * )
----
53037

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5185
SELECT - 57 + ( + 66 ) DIV + 77 + - - 85 - - - COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-5185
SELECT - 57 + ( + 66 ) / + 77 + - - 85 - - - COUNT ( * )
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-5186
SELECT 65 DIV 41 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5186
SELECT 65 / 41 AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5187
SELECT 0 * + 98 DIV + - COUNT( * ) * 73 * COUNT( * ) * 43 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5187
SELECT 0 * + 98 / + - COUNT ( * ) * 73 * COUNT ( * ) * 43 AS col1
----
0

query I rowsort
SELECT 74 - 73 AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5189
SELECT 90 DIV - - 80
----
1

skipif mysql # not compatible
query I rowsort label-5189
SELECT 90 / - - 80
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5190
SELECT 96 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5190
SELECT 96 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5191
SELECT DISTINCT + 88 DIV - COUNT( * ) AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-5191
SELECT DISTINCT + 88 / - COUNT ( * ) AS col1
----
-88

query I rowsort
SELECT - 25 * - 26
----
650

query I rowsort
SELECT + 31 * 94 AS col1
----
2914

query I rowsort
SELECT ALL - 98 + 28 * + 96 AS col0
----
2590

query I rowsort
SELECT DISTINCT + 53 + 80 AS col1
----
133

query I rowsort
SELECT ALL - 99 + - 74 AS col0
----
-173

query I rowsort
SELECT DISTINCT - 81 + 43 * ( - 46 ) col0
----
-2059

onlyif mysql # aggregate syntax: 
query I rowsort label-5198
SELECT + 89 * - COUNT( * ) AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-5198
SELECT + 89 * - COUNT ( * ) AS col1
----
-89

query I rowsort
SELECT ALL + ( - + ( - 23 ) ) AS col2
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-5200
SELECT ALL - - COUNT( * ) * + 18 + 11 col0, COUNT( + 91 ) + + + 26 AS col1
----
29
27

skipif mysql # not compatible
query II rowsort label-5200
SELECT ALL - - COUNT ( * ) * + 18 + 11 col0, COUNT ( + 91 ) + + + 26 AS col1
----
29
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5201
SELECT - + 27 - + 99 - - - MIN( DISTINCT + 63 )
----
-189

skipif mysql # not compatible
query I rowsort label-5201
SELECT - + 27 - + 99 - - - MIN ( DISTINCT + 63 )
----
-189

query I rowsort
SELECT + + 22 * NULLIF ( - + 97, - 22 )
----
-2134

onlyif mysql # aggregate syntax: 
query I rowsort label-5203
SELECT ALL + MAX( DISTINCT - + 43 ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-5203
SELECT ALL + MAX ( DISTINCT - + 43 ) AS col0
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5204
SELECT CASE + - CAST( + ( - SUM( + 88 ) ) AS SIGNED ) WHEN COUNT( * ) THEN + COALESCE ( - 16, - CAST( ( + - CAST( - 87 AS SIGNED ) ) AS SIGNED ) * 21 - + - 88 - + - 29 + - 10 * 65 * + 43 ) WHEN - - COUNT( * ) THEN NULL END * + - 25 - - 96 / 53 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5204
SELECT CASE + - CAST ( + ( - SUM ( + 88 ) ) AS INTEGER ) WHEN COUNT ( * ) THEN + COALESCE ( - 16, - CAST ( ( + - CAST ( - 87 AS INTEGER ) ) AS INTEGER ) * 21 - + - 88 - + - 29 + - 10 * 65 * + 43 ) WHEN - - COUNT ( * ) THEN NULL END * + - 25 - - 96 / 53 AS col1
----
NULL

query I rowsort
SELECT ALL - 41 * - 29
----
1189

onlyif mysql # DIV for integer division: 
query I rowsort label-5206
SELECT - ( - 98 ) DIV - - 54 + + - 91 + - + 1 * - 59 * + 39 AS col2
----
2211

skipif mysql # not compatible
query I rowsort label-5206
SELECT - ( - 98 ) / - - 54 + + - 91 + - + 1 * - 59 * + 39 AS col2
----
2211

onlyif mysql # aggregate syntax: 
query I rowsort label-5207
SELECT + SUM( 35 ) * 26 * - 81
----
-73710

skipif mysql # not compatible
query I rowsort label-5207
SELECT + SUM ( 35 ) * 26 * - 81
----
-73710

onlyif mysql # aggregate syntax: 
query II rowsort label-5208
SELECT ALL - 97 * - MAX( 69 ), 1 AS col2
----
6693
1

skipif mysql # not compatible
query II rowsort label-5208
SELECT ALL - 97 * - MAX ( 69 ), 1 AS col2
----
6693
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5209
SELECT ALL + 78 AS col1, - 8 * + 73 / + 96 * - - CASE + 41 WHEN 75 THEN + 62 WHEN + + 23 * - 77 * - 50 + - 14 + - + 59 * + 72 THEN NULL WHEN AVG ( ALL + 16 ) THEN 83 END + COUNT( * ) + - 52 + + - 6 * - SUM( + 54 ) AS col1
----
78
NULL

skipif mysql # not compatible
query II rowsort label-5209
SELECT ALL + 78 AS col1, - 8 * + 73 / + 96 * - - CASE + 41 WHEN 75 THEN + 62 WHEN + + 23 * - 77 * - 50 + - 14 + - + 59 * + 72 THEN NULL WHEN AVG ( ALL + 16 ) THEN 83 END + COUNT ( * ) + - 52 + + - 6 * - SUM ( + 54 ) AS col1
----
78
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5210
SELECT 37 * - - ( COALESCE ( + 48, - ( NULLIF ( - - 33, - - COUNT( * ) ) ) ) ) - + ( + 49 ) + - 10 AS col0
----
1717

skipif mysql # not compatible
query I rowsort label-5210
SELECT 37 * - - ( COALESCE ( + 48, - ( NULLIF ( - - 33, - - COUNT ( * ) ) ) ) ) - + ( + 49 ) + - 10 AS col0
----
1717

query I rowsort
SELECT + CASE + 3 WHEN 24 * ( 17 ) + + + 30 THEN 69 / - - 75 END * 19 AS col0
----
NULL

query I rowsort
SELECT ALL + ( + + COALESCE ( - 25, 9 ) )
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-5213
SELECT + COUNT( * ) * + - 34
----
-34

skipif mysql # not compatible
query I rowsort label-5213
SELECT + COUNT ( * ) * + - 34
----
-34

query I rowsort
SELECT - ( - 68 ) AS col2
----
68

query I rowsort
SELECT ALL COALESCE ( + + 57, - - 0, - 31 )
----
57

query I rowsort
SELECT ALL 67 * 36
----
2412

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5217
SELECT + CASE - 83 WHEN 22 / + 48 THEN + COUNT( * ) WHEN - COUNT( ALL 90 ) / - CAST( NULL AS SIGNED ) * - + 58 THEN - - ( 11 ) * - CASE + CAST( - ( - + NULLIF ( + NULLIF ( + 62, + CAST( - + 39 AS DECIMAL ) ), ( + 82 ) + ( COALESCE ( ( + 19 ), COUNT( * ) + CAST( + 57 - SUM( DISTINCT 90 + 11 ) AS SIGNED ) / + 53, + 39 ) ) * 95 ) ) AS SIGNED ) WHEN ( 25 ) + MAX( 36 + + 1 * - 47 ) * + 18 THEN + 61 * - 71 WHEN COUNT( * ) THEN 76 + - 11 * 61 ELSE - 11 END + - 67 END + + 64 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5217
SELECT + CASE - 83 WHEN 22 / + 48 THEN + COUNT ( * ) WHEN - COUNT ( ALL 90 ) / - CAST ( NULL AS INTEGER ) * - + 58 THEN - - ( 11 ) * - CASE + CAST ( - ( - + NULLIF ( + NULLIF ( + 62, + CAST ( - + 39 AS REAL ) ), ( + 82 ) + ( COALESCE ( ( + 19 ), COUNT ( * ) + CAST ( + 57 - SUM ( DISTINCT 90 + 11 ) AS INTEGER ) / + 53, + 39 ) ) * 95 ) ) AS INTEGER ) WHEN ( 25 ) + MAX ( 36 + + 1 * - 47 ) * + 18 THEN + 61 * - 71 WHEN COUNT ( * ) THEN 76 + - 11 * 61 ELSE - 11 END + - 67 END + + 64 AS col1
----
NULL

query I rowsort
SELECT - 79 * + 64 AS col1
----
-5056

query I rowsort
SELECT + 49 + - 74 AS col2
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-5220
SELECT - 31 DIV 16 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5220
SELECT - 31 / 16 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5221
SELECT ALL + 66 + + 18 + COUNT( * ) * + + 19 * - 64 * + 19 - ( 15 )
----
-23035

skipif mysql # not compatible
query I rowsort label-5221
SELECT ALL + 66 + + 18 + COUNT ( * ) * + + 19 * - 64 * + 19 - ( 15 )
----
-23035

onlyif mysql # aggregate syntax: 
query I rowsort label-5222
SELECT + ( 27 ) + - - MIN( - + 41 ) + - 18 - - 74 * - 51 AS col1
----
-3806

skipif mysql # not compatible
query I rowsort label-5222
SELECT + ( 27 ) + - - MIN ( - + 41 ) + - 18 - - 74 * - 51 AS col1
----
-3806

query I rowsort
SELECT ALL 8 * 50 * + NULLIF ( - 23, + - 2 ) AS col1
----
-9200

onlyif mysql # aggregate syntax: 
query I rowsort label-5224
SELECT DISTINCT COUNT( + 43 ) + - - 52 AS col0
----
53

skipif mysql # not compatible
query I rowsort label-5224
SELECT DISTINCT COUNT ( + 43 ) + - - 52 AS col0
----
53

query I rowsort
SELECT DISTINCT COALESCE ( - + 78, + 54 + + 0 ) AS col1
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5226
SELECT ALL + CAST( NULL AS SIGNED ) / - 6 * + - ( + 18 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5226
SELECT ALL + CAST ( NULL AS INTEGER ) / - 6 * + - ( + 18 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5227
SELECT ALL COUNT( * ) + - + 37 AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-5227
SELECT ALL COUNT ( * ) + - + 37 AS col1
----
-36

query I rowsort
SELECT DISTINCT 60 + - 84
----
-24

query II rowsort
SELECT - 35, + 86 AS col2
----
-35
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5230
SELECT ALL - CAST( + - 21 AS SIGNED ) + COUNT( * ) * CASE + 51 WHEN - - ( - AVG ( ALL 61 ) ) - 84 * - - 80 * + + 79 * - COUNT( * ) THEN + 56 - + COALESCE ( + ( - 58 ), + + CAST( - COUNT( * ) AS SIGNED ) ) * - 8 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5230
SELECT ALL - CAST ( + - 21 AS INTEGER ) + COUNT ( * ) * CASE + 51 WHEN - - ( - AVG ( ALL 61 ) ) - 84 * - - 80 * + + 79 * - COUNT ( * ) THEN + 56 - + COALESCE ( + ( - 58 ), + + CAST ( - COUNT ( * ) AS INTEGER ) ) * - 8 END
----
NULL

query I rowsort
SELECT - 89 - ( + 51 ) + 23
----
-117

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5232
SELECT ALL + COUNT( * ) DIV 89 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5232
SELECT ALL + COUNT ( * ) / 89 AS col2
----
0

query I rowsort
SELECT + 60 + + + 47 AS col0
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-5234
SELECT - SUM( + 89 ) + + 68
----
-21

skipif mysql # not compatible
query I rowsort label-5234
SELECT - SUM ( + 89 ) + + 68
----
-21

query I rowsort
SELECT - + 67 + - 47
----
-114

query I rowsort
SELECT DISTINCT + 59 * - - 47 AS col2
----
2773

query I rowsort
SELECT + + ( + - ( + 24 ) )
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5238
SELECT - 89 DIV + + ( + 1 ) + - + COUNT( * )
----
-90

skipif mysql # not compatible
query I rowsort label-5238
SELECT - 89 / + + ( + 1 ) + - + COUNT ( * )
----
-90

query I rowsort
SELECT + 3 + - 10 AS col1
----
-7

query I rowsort
SELECT + + ( + + 50 )
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-5241
SELECT - - 55 DIV 62 + 81 AS col0
----
81

skipif mysql # not compatible
query I rowsort label-5241
SELECT - - 55 / 62 + 81 AS col0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5242
SELECT + - 49 * COUNT( * ) - - COALESCE ( - NULLIF ( 94, COUNT( * ) + 24 ), ( - 64 ), - 74 ) AS col2
----
-143

skipif mysql # not compatible
query I rowsort label-5242
SELECT + - 49 * COUNT ( * ) - - COALESCE ( - NULLIF ( 94, COUNT ( * ) + 24 ), ( - 64 ), - 74 ) AS col2
----
-143

onlyif mysql # aggregate syntax: 
query III rowsort label-5243
SELECT + 76 col0, COUNT( * ) col0, + 89 AS col0
----
76
1
89

skipif mysql # not compatible
query III rowsort label-5243
SELECT + 76 col0, COUNT ( * ) col0, + 89 AS col0
----
76
1
89

onlyif mysql # aggregate syntax: 
query II rowsort label-5244
SELECT ALL + + 39 AS col2, + 39 + + - MAX( ALL + 42 )
----
39
-3

skipif mysql # not compatible
query II rowsort label-5244
SELECT ALL + + 39 AS col2, + 39 + + - MAX ( ALL + 42 )
----
39
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-5245
SELECT DISTINCT + 16 DIV - + 57 AS col0, 7 + - 44 * - 29 AS col0
----
0
1283

skipif mysql # not compatible
query II rowsort label-5245
SELECT DISTINCT + 16 / - + 57 AS col0, 7 + - 44 * - 29 AS col0
----
0
1283

query II rowsort
SELECT DISTINCT + - 48 AS col1, 22
----
-48
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5247
SELECT ALL 22 * - + NULLIF ( + MIN( - 46 ), + ( - + 7 ) - - - 73 ) * - 8
----
-8096

skipif mysql # not compatible
query I rowsort label-5247
SELECT ALL 22 * - + NULLIF ( + MIN ( - 46 ), + ( - + 7 ) - - - 73 ) * - 8
----
-8096

onlyif mysql # aggregate syntax: 
query II rowsort label-5248
SELECT DISTINCT + 67 * - 93, + COUNT( * ) AS col1
----
-6231
1

skipif mysql # not compatible
query II rowsort label-5248
SELECT DISTINCT + 67 * - 93, + COUNT ( * ) AS col1
----
-6231
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5249
SELECT ALL + COALESCE ( + COUNT( * ), - 43 ) * + 48 DIV - COUNT( * ) + SUM( DISTINCT + 82 ) DIV + + 28
----
-46

skipif mysql # not compatible
query I rowsort label-5249
SELECT ALL + COALESCE ( + COUNT ( * ), - 43 ) * + 48 / - COUNT ( * ) + SUM ( DISTINCT + 82 ) / + + 28
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5250
SELECT DISTINCT 9 * 30 DIV - - COUNT( * ) col1
----
270

skipif mysql # not compatible
query I rowsort label-5250
SELECT DISTINCT 9 * 30 / - - COUNT ( * ) col1
----
270

onlyif mysql # DIV for integer division: 
query II rowsort label-5251
SELECT - 73 DIV 48 AS col1, 86
----
-1
86

skipif mysql # not compatible
query II rowsort label-5251
SELECT - 73 / 48 AS col1, 86
----
-1
86

onlyif mysql # DIV for integer division: 
query I rowsort label-5252
SELECT + 79 + 20 DIV + 53 AS col0
----
79

skipif mysql # not compatible
query I rowsort label-5252
SELECT + 79 + 20 / + 53 AS col0
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5253
SELECT 80 * + COUNT( * ) * - - CASE + 73 WHEN - 98 + 78 / + + COUNT( * ) + - 19 * + COUNT( * ) THEN NULL WHEN - 56 * - - 49 * - 67 + 79 THEN NULL WHEN - 80 + - 77 * + 29 THEN - 36 END AS col2, + 8 + - CAST( NULL AS SIGNED ) col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5253
SELECT 80 * + COUNT ( * ) * - - CASE + 73 WHEN - 98 + 78 / + + COUNT ( * ) + - 19 * + COUNT ( * ) THEN NULL WHEN - 56 * - - 49 * - 67 + 79 THEN NULL WHEN - 80 + - 77 * + 29 THEN - 36 END AS col2, + 8 + - CAST ( NULL AS INTEGER ) col2
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5254
SELECT ALL COUNT( DISTINCT + 9 ) + + 93
----
94

skipif mysql # not compatible
query I rowsort label-5254
SELECT ALL COUNT ( DISTINCT + 9 ) + + 93
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5255
SELECT 25 + + + 19 + - COUNT( DISTINCT 98 ) * + CAST( + 53 AS SIGNED ) * 84
----
-4408

skipif mysql # not compatible
query I rowsort label-5255
SELECT 25 + + + 19 + - COUNT ( DISTINCT 98 ) * + CAST ( + 53 AS INTEGER ) * 84
----
-4408

onlyif mysql # aggregate syntax: 
query I rowsort label-5256
SELECT 96 + + - COUNT( 59 ) * + 52 * COUNT( * ) col1
----
44

skipif mysql # not compatible
query I rowsort label-5256
SELECT 96 + + - COUNT ( 59 ) * + 52 * COUNT ( * ) col1
----
44

query I rowsort
SELECT DISTINCT 67 + - + 35 AS col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5258
SELECT ALL COUNT( * ) + + 52 + + 57 * - - 28 AS col1
----
1649

skipif mysql # not compatible
query I rowsort label-5258
SELECT ALL COUNT ( * ) + + 52 + + 57 * - - 28 AS col1
----
1649

onlyif mysql # aggregate syntax: 
query I rowsort label-5259
SELECT DISTINCT ( + + SUM( - 60 ) ) + 79
----
19

skipif mysql # not compatible
query I rowsort label-5259
SELECT DISTINCT ( + + SUM ( - 60 ) ) + 79
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5260
SELECT ALL + CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) * - 17
----
NULL

skipif mysql # not compatible
query I rowsort label-5260
SELECT ALL + CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) * - 17
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5261
SELECT CAST( NULL AS DECIMAL ) + + CASE + 55 WHEN + COUNT( * ) + + 84 + - CAST( NULL AS SIGNED ) THEN 23 * + 19 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5261
SELECT CAST ( NULL AS REAL ) + + CASE + 55 WHEN + COUNT ( * ) + + 84 + - CAST ( NULL AS INTEGER ) THEN 23 * + 19 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5262
SELECT DISTINCT ( + COUNT( * ) ) + - 97 * + COUNT( * ) + - - 15 * + 2 + - - 33 + + - 97 + - 75 - + 9 * + 54
----
-691

skipif mysql # not compatible
query I rowsort label-5262
SELECT DISTINCT ( + COUNT ( * ) ) + - 97 * + COUNT ( * ) + - - 15 * + 2 + - - 33 + + - 97 + - 75 - + 9 * + 54
----
-691

query I rowsort
SELECT 43 * - 42 * + 37 AS col0
----
-66822

query I rowsort
SELECT 50 + - 32 AS col1
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5265
SELECT ALL CAST( NULL AS SIGNED ) - + 65 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5265
SELECT ALL CAST ( NULL AS INTEGER ) - + 65 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5266
SELECT DISTINCT + - 99 - - - COUNT( * ) - - 17 * - 35 AS col1
----
-695

skipif mysql # not compatible
query I rowsort label-5266
SELECT DISTINCT + - 99 - - - COUNT ( * ) - - 17 * - 35 AS col1
----
-695

query I rowsort
SELECT ALL - 22 * - + 72 AS col2
----
1584

onlyif mysql # aggregate syntax: 
query I rowsort label-5268
SELECT ALL 7 - - ( COUNT( * ) ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-5268
SELECT ALL 7 - - ( COUNT ( * ) ) AS col1
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5269
SELECT DISTINCT - - CAST( NULL AS SIGNED ) / - + 94 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5269
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) / - + 94 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5270
SELECT DISTINCT NULLIF ( COUNT( * ), + 85 ) col2, 3 * - 83 AS col1
----
1
-249

skipif mysql # not compatible
query II rowsort label-5270
SELECT DISTINCT NULLIF ( COUNT ( * ), + 85 ) col2, 3 * - 83 AS col1
----
1
-249

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5271
SELECT COUNT( * ) DIV - 2 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5271
SELECT COUNT ( * ) / - 2 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5272
SELECT - 86 DIV + + 9 - - 90 + - COUNT( * ) + ( - 63 )
----
17

skipif mysql # not compatible
query I rowsort label-5272
SELECT - 86 / + + 9 - - 90 + - COUNT ( * ) + ( - 63 )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-5273
SELECT MAX( DISTINCT ( + 84 ) ) * - 89
----
-7476

skipif mysql # not compatible
query I rowsort label-5273
SELECT MAX ( DISTINCT ( + 84 ) ) * - 89
----
-7476

onlyif mysql # aggregate syntax: 
query I rowsort label-5274
SELECT MAX( 73 ) + 16
----
89

skipif mysql # not compatible
query I rowsort label-5274
SELECT MAX ( 73 ) + 16
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-5275
SELECT 43 + - COUNT( * ) * + 85
----
-42

skipif mysql # not compatible
query I rowsort label-5275
SELECT 43 + - COUNT ( * ) * + 85
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5276
SELECT ALL + CASE - CAST( NULL AS SIGNED ) WHEN - 11 THEN 98 END + + 2 + + NULLIF ( + 19, 0 ) / + + 2 * - - 25 - + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-5276
SELECT ALL + CASE - CAST ( NULL AS INTEGER ) WHEN - 11 THEN 98 END + + 2 + + NULLIF ( + 19, 0 ) / + + 2 * - - 25 - + 57
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5277
SELECT + - COUNT( - 8 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5277
SELECT + - COUNT ( - 8 ) AS col1
----
-1

query I rowsort
SELECT ALL + - 77 + - - 47 + + 84 AS col1
----
54

query II rowsort
SELECT ALL 34 + 1 AS col2, - 39
----
35
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-5280
SELECT + 53 * - 78 + 0 + + 43 - COUNT( DISTINCT 43 ) * CASE + 50 WHEN - 86 THEN - SUM( ALL + + 91 ) ELSE NULL END * 31 + + - CASE 5 WHEN - + 8 THEN NULL WHEN + 23 * + + 46 / - - 58 - 99 THEN + 99 * + CASE + - 8 WHEN 81 - - MIN( ALL - 27 ) THEN NULL WHEN - 91 THEN NULL ELSE ( ( 89 ) ) * 28 END * 55 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5280
SELECT + 53 * - 78 + 0 + + 43 - COUNT ( DISTINCT 43 ) * CASE + 50 WHEN - 86 THEN - SUM ( ALL + + 91 ) ELSE NULL END * 31 + + - CASE 5 WHEN - + 8 THEN NULL WHEN + 23 * + + 46 / - - 58 - 99 THEN + 99 * + CASE + - 8 WHEN 81 - - MIN ( ALL - 27 ) THEN NULL WHEN - 91 THEN NULL ELSE ( ( 89 ) ) * 28 END * 55 END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5281
SELECT + 2 AS col2, + ( + 61 ) + 99 DIV - - 34
----
2
63

skipif mysql # not compatible
query II rowsort label-5281
SELECT + 2 AS col2, + ( + 61 ) + 99 / - - 34
----
2
63

onlyif mysql # DIV for integer division: 
query I rowsort label-5282
SELECT 15 DIV - + 25 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5282
SELECT 15 / - + 25 AS col0
----
0

query I rowsort
SELECT ALL + 12 + - + 28
----
-16

query I rowsort
SELECT ALL 14 * 52
----
728

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5285
SELECT 5 / - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5285
SELECT 5 / - CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 67 + 87 AS col1
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5287
SELECT ALL - COALESCE ( - CAST( NULL AS SIGNED ), 69 * + 8, 61 + + MIN( ALL - 55 ) ) AS col0
----
-552

skipif mysql # not compatible
query I rowsort label-5287
SELECT ALL - COALESCE ( - CAST ( NULL AS INTEGER ), 69 * + 8, 61 + + MIN ( ALL - 55 ) ) AS col0
----
-552

query I rowsort
SELECT DISTINCT ( 26 ) + - 91 AS col1
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-5289
SELECT - 23, - CASE - COUNT( * ) WHEN 19 THEN NULL WHEN - + 62 THEN - 94 WHEN - 51 * SUM( + 80 ) THEN NULL END AS col1
----
-23
NULL

skipif mysql # not compatible
query II rowsort label-5289
SELECT - 23, - CASE - COUNT ( * ) WHEN 19 THEN NULL WHEN - + 62 THEN - 94 WHEN - 51 * SUM ( + 80 ) THEN NULL END AS col1
----
-23
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5290
SELECT ALL - COALESCE ( 6, + + COUNT( ALL - + 67 ) ) * + - 4 * - COUNT( * ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-5290
SELECT ALL - COALESCE ( 6, + + COUNT ( ALL - + 67 ) ) * + - 4 * - COUNT ( * ) AS col1
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-5291
SELECT 31 DIV + + 78 col2
----
0

skipif mysql # not compatible
query I rowsort label-5291
SELECT 31 / + + 78 col2
----
0

query II rowsort
SELECT 62 AS col0, - 65 AS col0
----
62
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5293
SELECT ALL + SUM( DISTINCT + CAST( + 12 AS SIGNED ) ) * - - 93 + - ( + 13 ) AS col0
----
1103

skipif mysql # not compatible
query I rowsort label-5293
SELECT ALL + SUM ( DISTINCT + CAST ( + 12 AS INTEGER ) ) * - - 93 + - ( + 13 ) AS col0
----
1103

query I rowsort
SELECT 5 + + 7
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5295
SELECT ALL ( SUM( - 38 ) ) - COUNT( * ) DIV - - MAX( - 15 ) AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-5295
SELECT ALL ( SUM ( - 38 ) ) - COUNT ( * ) / - - MAX ( - 15 ) AS col1
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5296
SELECT 21 + + CAST( NULL AS SIGNED ) * - - 8 * - 23
----
NULL

skipif mysql # not compatible
query I rowsort label-5296
SELECT 21 + + CAST ( NULL AS INTEGER ) * - - 8 * - 23
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5297
SELECT 48 AS col0, COUNT( * )
----
48
1

skipif mysql # not compatible
query II rowsort label-5297
SELECT 48 AS col0, COUNT ( * )
----
48
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5298
SELECT NULLIF ( + 7, 72 ) + COUNT( * ) * - + 52 * + 24 AS col1
----
-1241

skipif mysql # not compatible
query I rowsort label-5298
SELECT NULLIF ( + 7, 72 ) + COUNT ( * ) * - + 52 * + 24 AS col1
----
-1241

onlyif mysql # aggregate syntax: 
query I rowsort label-5299
SELECT DISTINCT SUM( DISTINCT - - ( + 39 ) ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-5299
SELECT DISTINCT SUM ( DISTINCT - - ( + 39 ) ) AS col1
----
39

query I rowsort
SELECT - 35 + - 60
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-5301
SELECT DISTINCT COUNT( + 2 )
----
1

skipif mysql # not compatible
query I rowsort label-5301
SELECT DISTINCT COUNT ( + 2 )
----
1

query I rowsort
SELECT ALL + ( - - 74 ) AS col0
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5303
SELECT + 62 * 86 * CAST( - 15 AS SIGNED ) * - 11
----
879780

skipif mysql # not compatible
query I rowsort label-5303
SELECT + 62 * 86 * CAST ( - 15 AS INTEGER ) * - 11
----
879780

query I rowsort
SELECT ALL - 10 * + + 10
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-5305
SELECT ( - + 78 ) + - 19 - - - COUNT( * )
----
-98

skipif mysql # not compatible
query I rowsort label-5305
SELECT ( - + 78 ) + - 19 - - - COUNT ( * )
----
-98

query I rowsort
SELECT ALL ( 83 ) * - + 2
----
-166

onlyif mysql # DIV for integer division: 
query I rowsort label-5307
SELECT - 11 DIV - - 40 * - - NULLIF ( + - 8, - 49 - - 24 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5307
SELECT - 11 / - - 40 * - - NULLIF ( + - 8, - 49 - - 24 ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5308
SELECT - 85 + + MAX( ALL - 92 ), ( 81 ) * + CAST( NULL AS SIGNED ) AS col0
----
-177
NULL

skipif mysql # not compatible
query II rowsort label-5308
SELECT - 85 + + MAX ( ALL - 92 ), ( 81 ) * + CAST ( NULL AS INTEGER ) AS col0
----
-177
NULL

query I rowsort
SELECT DISTINCT - 60 * + 76 AS col2
----
-4560

onlyif mysql # aggregate syntax: 
query I rowsort label-5310
SELECT + COALESCE ( + - 2, + 44 ) * - COUNT( * ) + + ( - - SUM( + 44 ) )
----
46

skipif mysql # not compatible
query I rowsort label-5310
SELECT + COALESCE ( + - 2, + 44 ) * - COUNT ( * ) + + ( - - SUM ( + 44 ) )
----
46

query I rowsort
SELECT 33 + - 65 + 4 * + 87 * - + 56 AS col0
----
-19520

onlyif mysql # aggregate syntax: 
query I rowsort label-5312
SELECT + ( - + 88 ) * COUNT( * )
----
-88

skipif mysql # not compatible
query I rowsort label-5312
SELECT + ( - + 88 ) * COUNT ( * )
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-5313
SELECT - ( - - NULLIF ( + + 26, + + 92 ) ) * + 79 * COUNT( * ) + + + 2 * - - MIN( + COALESCE ( - ( 39 ), - NULLIF ( + 34, - COALESCE ( NULLIF ( + + 6, + 37 ), + - 76 * - 9 ) ) ) ) + + + 62 * 3 * - - 3 + 34 AS col0
----
-1540

skipif mysql # not compatible
query I rowsort label-5313
SELECT - ( - - NULLIF ( + + 26, + + 92 ) ) * + 79 * COUNT ( * ) + + + 2 * - - MIN ( + COALESCE ( - ( 39 ), - NULLIF ( + 34, - COALESCE ( NULLIF ( + + 6, + 37 ), + - 76 * - 9 ) ) ) ) + + + 62 * 3 * - - 3 + 34 AS col0
----
-1540

onlyif mysql # aggregate syntax: 
query I rowsort label-5314
SELECT ALL + MAX( + 67 ) * - 6 + + 9 col2
----
-393

skipif mysql # not compatible
query I rowsort label-5314
SELECT ALL + MAX ( + 67 ) * - 6 + + 9 col2
----
-393

onlyif mysql # aggregate syntax: 
query I rowsort label-5315
SELECT ALL - 81 * - ( + - 25 ) * MAX( + 49 ) + - 3
----
-99228

skipif mysql # not compatible
query I rowsort label-5315
SELECT ALL - 81 * - ( + - 25 ) * MAX ( + 49 ) + - 3
----
-99228

query I rowsort
SELECT + - ( 18 )
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5317
SELECT - CAST( NULL AS SIGNED ) + ( + NULLIF ( + - 13, - 30 * + 12 + ( COUNT( * ) ) / - - 82 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5317
SELECT - CAST ( NULL AS INTEGER ) + ( + NULLIF ( + - 13, - 30 * + 12 + ( COUNT ( * ) ) / - - 82 ) )
----
NULL

query I rowsort
SELECT - - 22 + 1
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5319
SELECT ALL - COALESCE ( COUNT( * ), - 97, 86 + NULLIF ( - - 30, CAST( NULL AS SIGNED ) ) * 36, - 39 ) DIV ( - 22 ) + + COALESCE ( + 52, - ( + 92 ) ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-5319
SELECT ALL - COALESCE ( COUNT ( * ), - 97, 86 + NULLIF ( - - 30, CAST ( NULL AS INTEGER ) ) * 36, - 39 ) / ( - 22 ) + + COALESCE ( + 52, - ( + 92 ) ) AS col2
----
52

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5320
SELECT + CAST( NULL AS SIGNED ) * - 37 / + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5320
SELECT + CAST ( NULL AS INTEGER ) * - 37 / + CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT + COALESCE ( - 10, 85 ) AS col2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-5322
SELECT ALL ( - NULLIF ( 10, - - COUNT( * ) ) ) * - 43 + + 0 col1
----
430

skipif mysql # not compatible
query I rowsort label-5322
SELECT ALL ( - NULLIF ( 10, - - COUNT ( * ) ) ) * - 43 + + 0 col1
----
430

onlyif mysql # aggregate syntax: 
query I rowsort label-5323
SELECT - 96 + + COUNT( * ) - + + 73 AS col1
----
-168

skipif mysql # not compatible
query I rowsort label-5323
SELECT - 96 + + COUNT ( * ) - + + 73 AS col1
----
-168

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5324
SELECT ALL + ( - - CAST( NULL AS SIGNED ) ) AS col0, + 34
----
NULL
34

skipif mysql # not compatible
query II rowsort label-5324
SELECT ALL + ( - - CAST ( NULL AS INTEGER ) ) AS col0, + 34
----
NULL
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5325
SELECT ALL + SUM( + 98 )
----
98

skipif mysql # not compatible
query I rowsort label-5325
SELECT ALL + SUM ( + 98 )
----
98

onlyif mysql # aggregate syntax: 
query II rowsort label-5326
SELECT DISTINCT - 53 * - 77, + COUNT( * ) + + COALESCE ( - 48, 83 ) AS col0
----
4081
-47

skipif mysql # not compatible
query II rowsort label-5326
SELECT DISTINCT - 53 * - 77, + COUNT ( * ) + + COALESCE ( - 48, 83 ) AS col0
----
4081
-47

query I rowsort
SELECT + 43 - + 46 col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5328
SELECT - 49 * + - COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-5328
SELECT - 49 * + - COUNT ( * )
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5329
SELECT DISTINCT + CASE + 72 WHEN 95 THEN NULL WHEN COUNT( + 94 ) THEN - CAST( + 43 AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5329
SELECT DISTINCT + CASE + 72 WHEN 95 THEN NULL WHEN COUNT ( + 94 ) THEN - CAST ( + 43 AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5330
SELECT DISTINCT - NULLIF ( - COUNT( ALL - - 99 ), 49 * + SUM( DISTINCT - 70 ) + - 58 + - - COUNT( * ) + - - COUNT( * ) ) - 25 AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-5330
SELECT DISTINCT - NULLIF ( - COUNT ( ALL - - 99 ), 49 * + SUM ( DISTINCT - 70 ) + - 58 + - - COUNT ( * ) + - - COUNT ( * ) ) - 25 AS col0
----
-24

query I rowsort
SELECT + 29 * 13 + - - 82
----
459

query II rowsort
SELECT ALL - 18 - - 27 AS col2, - 73 AS col2
----
9
-73

query I rowsort
SELECT + 19 + - ( + - 70 ) AS col0
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-5334
SELECT ALL - 9 DIV + 28 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5334
SELECT ALL - 9 / + 28 AS col0
----
0

query I rowsort
SELECT ALL ( - 7 ) AS col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-5336
SELECT DISTINCT - ( 39 ) * - 90 + + ( + + 88 ) + - - ( - COUNT( * ) ) - - 11 + - COUNT( * ) * - COUNT( * ) AS col0
----
3609

skipif mysql # not compatible
query I rowsort label-5336
SELECT DISTINCT - ( 39 ) * - 90 + + ( + + 88 ) + - - ( - COUNT ( * ) ) - - 11 + - COUNT ( * ) * - COUNT ( * ) AS col0
----
3609

query I rowsort
SELECT DISTINCT + + 40 * - - 75 AS col0
----
3000

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5338
SELECT + + COUNT( * ) DIV + 78 col2, + 7 * - + COUNT( * ) AS col2
----
0
-7

skipif mysql # not compatible
query II rowsort label-5338
SELECT + + COUNT ( * ) / + 78 col2, + 7 * - + COUNT ( * ) AS col2
----
0
-7

query I rowsort
SELECT - 86 * + 30 * - 86
----
221880

onlyif mysql # aggregate syntax: 
query II rowsort label-5340
SELECT + 56 * + COUNT( * ) AS col0, 33 AS col1
----
56
33

skipif mysql # not compatible
query II rowsort label-5340
SELECT + 56 * + COUNT ( * ) AS col0, 33 AS col1
----
56
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5341
SELECT - 0 * - 13 + - ( - - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5341
SELECT - 0 * - 13 + - ( - - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5342
SELECT - + 42 - NULLIF ( 9, - - 63 * + 65 - + 57 ) DIV - + 89 + + - 83 AS col1
----
-125

skipif mysql # not compatible
query I rowsort label-5342
SELECT - + 42 - NULLIF ( 9, - - 63 * + 65 - + 57 ) / - + 89 + + - 83 AS col1
----
-125

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5343
SELECT ALL 53 + COUNT( * ) - - 25 DIV + 98 AS col1
----
54

skipif mysql # not compatible
query I rowsort label-5343
SELECT ALL 53 + COUNT ( * ) - - 25 / + 98 AS col1
----
54

query I rowsort
SELECT ALL + ( - 56 ) + 92 AS col0
----
36

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-5345
SELECT + + 93 * 33 + - 10 DIV 59 AS col1, AVG ( - 58 ) * + 80 + - 92 DIV - + CAST( NULL AS DECIMAL ) col0
----
3069
NULL

skipif mysql # not compatible
query II rowsort label-5345
SELECT + + 93 * 33 + - 10 / 59 AS col1, AVG ( - 58 ) * + 80 + - 92 / - + CAST ( NULL AS REAL ) col0
----
3069
NULL

query I rowsort
SELECT ALL - 87 + - 50 AS col0
----
-137

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5347
SELECT ALL + ( + - CAST( 41 AS SIGNED ) ) + + 69
----
28

skipif mysql # not compatible
query I rowsort label-5347
SELECT ALL + ( + - CAST ( 41 AS INTEGER ) ) + + 69
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5348
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - + 47 col2, - 14
----
NULL
-14

skipif mysql # not compatible
query II rowsort label-5348
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - + 47 col2, - 14
----
NULL
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5349
SELECT ALL - 37 + - + CASE + - 48 WHEN - 17 THEN NULL ELSE - CAST( + + 34 AS SIGNED ) END
----
-3

skipif mysql # not compatible
query I rowsort label-5349
SELECT ALL - 37 + - + CASE + - 48 WHEN - 17 THEN NULL ELSE - CAST ( + + 34 AS INTEGER ) END
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5350
SELECT - COUNT( * ) + MIN( 26 ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-5350
SELECT - COUNT ( * ) + MIN ( 26 ) AS col1
----
25

query I rowsort
SELECT + 29 + - 46 * - 39 col0
----
1823

query II rowsort
SELECT + 99 * - 91 AS col1, + 42 * 50 AS col1
----
-9009
2100

query I rowsort
SELECT + + 66 * 28
----
1848

onlyif mysql # aggregate syntax: 
query I rowsort label-5354
SELECT ALL + MAX( DISTINCT - - 32 ) / - + NULLIF ( + + CASE + 27 WHEN - - 76 / - - 31 THEN + 67 END, + - COUNT( DISTINCT - 20 ) ) + - - 65 + - + 14 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5354
SELECT ALL + MAX ( DISTINCT - - 32 ) / - + NULLIF ( + + CASE + 27 WHEN - - 76 / - - 31 THEN + 67 END, + - COUNT ( DISTINCT - 20 ) ) + - - 65 + - + 14 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5355
SELECT + 57 * CAST( - - 2 AS SIGNED ) * 62 - - CAST( - COALESCE ( + - COALESCE ( 97, 40 + + + 6 + 40 + - - COUNT( * ) * 33 * + - 26 / - - 57, + + 40 * + CAST( NULL AS SIGNED ) ), + - 17 + - + 92 ) AS SIGNED ) AS col1
----
7165

skipif mysql # not compatible
query I rowsort label-5355
SELECT + 57 * CAST ( - - 2 AS INTEGER ) * 62 - - CAST ( - COALESCE ( + - COALESCE ( 97, 40 + + + 6 + 40 + - - COUNT ( * ) * 33 * + - 26 / - - 57, + + 40 * + CAST ( NULL AS INTEGER ) ), + - 17 + - + 92 ) AS INTEGER ) AS col1
----
7165

query I rowsort
SELECT ( - + 92 ) AS col2
----
-92

query I rowsort
SELECT + ( + - 31 ) AS col0
----
-31

query I rowsort
SELECT + 55 + NULLIF ( - ( - 34 ), + - 34 ) + - + 1 AS col0
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-5359
SELECT - 49 DIV + NULLIF ( - + 31, + ( + 87 ) * + 98 DIV - - 83 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5359
SELECT - 49 / + NULLIF ( - + 31, + ( + 87 ) * + 98 / - - 83 ) AS col1
----
1

query I rowsort
SELECT + 61 * - 71 AS col0
----
-4331

query I rowsort
SELECT ( - + 51 ) AS col0
----
-51

query I rowsort
SELECT DISTINCT ( - 52 ) * 83 AS col1
----
-4316

query I rowsort
SELECT + 25 * - - NULLIF ( - 35, + + 32 + - + 49 ) + 57 + 9 * - 41 + 35
----
-1152

onlyif mysql # DIV for integer division: 
query I rowsort label-5364
SELECT + 13 DIV + 78 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5364
SELECT + 13 / + 78 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5365
SELECT ALL + CASE + COALESCE ( + + AVG ( DISTINCT + CAST( NULL AS SIGNED ) ), + 3 + 20 ) WHEN 28 * + 44 + + 7 THEN 99 WHEN 8 THEN NULL END, + 60 AS col0
----
NULL
60

skipif mysql # not compatible
query II rowsort label-5365
SELECT ALL + CASE + COALESCE ( + + AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ), + 3 + 20 ) WHEN 28 * + 44 + + 7 THEN 99 WHEN 8 THEN NULL END, + 60 AS col0
----
NULL
60

query I rowsort
SELECT + 89 + - 9 * - 30
----
359

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5367
SELECT NULLIF ( COUNT( * ), 50 + CAST( 67 AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-5367
SELECT NULLIF ( COUNT ( * ), 50 + CAST ( 67 AS INTEGER ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5368
SELECT - 62 * - 69 * - + SUM( + 86 ) + + + 39
----
-367869

skipif mysql # not compatible
query I rowsort label-5368
SELECT - 62 * - 69 * - + SUM ( + 86 ) + + + 39
----
-367869

onlyif mysql # aggregate syntax: 
query I rowsort label-5369
SELECT ALL + COUNT( ALL - + 68 )
----
1

skipif mysql # not compatible
query I rowsort label-5369
SELECT ALL + COUNT ( ALL - + 68 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5370
SELECT - 59 * - - COUNT( * )
----
-59

skipif mysql # not compatible
query I rowsort label-5370
SELECT - 59 * - - COUNT ( * )
----
-59

query I rowsort
SELECT ALL - ( 27 ) * + ( + - 10 ) AS col2
----
270

query II rowsort
SELECT + 71 + 80 + 1, + 81 AS col1
----
152
81

query II rowsort
SELECT DISTINCT - 75 AS col2, - 33
----
-75
-33

query I rowsort
SELECT + 70 + - 64 + 0 * 16 + + 80
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5375
SELECT + SUM( + + 77 )
----
77

skipif mysql # not compatible
query I rowsort label-5375
SELECT + SUM ( + + 77 )
----
77

query I rowsort
SELECT - 84 * + 18
----
-1512

query I rowsort
SELECT - - 82 * - + 33
----
-2706

query I rowsort
SELECT - + 71 + - + 34 AS col1
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-5379
SELECT + CASE - COALESCE ( 45, + 18 ) WHEN - 24 THEN + - 66 * - - 69 - 48 * 18 / + NULLIF ( - 46, - 29 * + 12 / + SUM( ALL - 3 ) + - - COUNT( * ) - 23 ) + - 24 / - 97 + + ( - 21 ) * + 54 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5379
SELECT + CASE - COALESCE ( 45, + 18 ) WHEN - 24 THEN + - 66 * - - 69 - 48 * 18 / + NULLIF ( - 46, - 29 * + 12 / + SUM ( ALL - 3 ) + - - COUNT ( * ) - 23 ) + - 24 / - 97 + + ( - 21 ) * + 54 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - - 75 + + 13
----
88

query I rowsort
SELECT - - 96 + - + 21
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5382
SELECT - + 22 + - COUNT( * )
----
-23

skipif mysql # not compatible
query I rowsort label-5382
SELECT - + 22 + - COUNT ( * )
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-5383
SELECT DISTINCT + + 46 DIV - - 56
----
0

skipif mysql # not compatible
query I rowsort label-5383
SELECT DISTINCT + + 46 / - - 56
----
0

query II rowsort
SELECT - 51 AS col0, 82
----
-51
82

query I rowsort
SELECT ALL + - 96 + 98 AS col1
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5386
SELECT - 56 + + 7 * - - CAST( + + 74 AS SIGNED )
----
462

skipif mysql # not compatible
query I rowsort label-5386
SELECT - 56 + + 7 * - - CAST ( + + 74 AS INTEGER )
----
462

query I rowsort
SELECT ALL + + 71 * + + 69
----
4899

query I rowsort
SELECT ALL - 75 + + + 91 * + 13
----
1108

onlyif mysql # aggregate syntax: 
query I rowsort label-5389
SELECT + MIN( 10 )
----
10

skipif mysql # not compatible
query I rowsort label-5389
SELECT + MIN ( 10 )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5390
SELECT - SUM( - + 22 ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-5390
SELECT - SUM ( - + 22 ) AS col1
----
22

query I rowsort
SELECT + 23 * + 24 + 20 * 15
----
852

query I rowsort
SELECT 49 * + 50 AS col2
----
2450

query I rowsort
SELECT DISTINCT + + 54 - + 10 * + 83 AS col0
----
-776

onlyif mysql # aggregate syntax: 
query I rowsort label-5394
SELECT DISTINCT 71 - - COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-5394
SELECT DISTINCT 71 - - COUNT ( * )
----
72

query I rowsort
SELECT DISTINCT - ( + - 54 )
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-5396
SELECT ALL - 80 AS col0, MIN( DISTINCT 87 )
----
-80
87

skipif mysql # not compatible
query II rowsort label-5396
SELECT ALL - 80 AS col0, MIN ( DISTINCT 87 )
----
-80
87

query II rowsort
SELECT + 51, - 98 AS col1
----
51
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-5398
SELECT COUNT( * ) * + 33 * 65 AS col1
----
2145

skipif mysql # not compatible
query I rowsort label-5398
SELECT COUNT ( * ) * + 33 * 65 AS col1
----
2145

query II rowsort
SELECT 34, 47 AS col0
----
34
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5400
SELECT 17 DIV 52 DIV 24 + - + COALESCE ( ( - COUNT( * ) ), 64 )
----
1

skipif mysql # not compatible
query I rowsort label-5400
SELECT 17 / 52 / 24 + - + COALESCE ( ( - COUNT ( * ) ), 64 )
----
1

query II rowsort
SELECT ALL - 70 AS col1, + ( - + 3 ) * + + NULLIF ( + NULLIF ( + 69, + 5 ), - - 6 ) AS col1
----
-70
-207

query I rowsort
SELECT NULLIF ( 98, + 86 ) + - 4
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5403
SELECT COUNT( * ) * 71 AS col0
----
71

skipif mysql # not compatible
query I rowsort label-5403
SELECT COUNT ( * ) * 71 AS col0
----
71

query I rowsort
SELECT DISTINCT ( + 96 ) * - + CASE 28 WHEN - 9 THEN - 74 WHEN - 21 * 88 THEN NULL ELSE - 14 END * - 65
----
-87360

onlyif mysql # aggregate syntax: 
query I rowsort label-5405
SELECT ALL + ( - COALESCE ( + + ( + + 82 ), + 27 * + - 5 + + 51 * - 7 ) ) * - COALESCE ( - - 7, + COUNT( * ), 48 )
----
574

skipif mysql # not compatible
query I rowsort label-5405
SELECT ALL + ( - COALESCE ( + + ( + + 82 ), + 27 * + - 5 + + 51 * - 7 ) ) * - COALESCE ( - - 7, + COUNT ( * ), 48 )
----
574

query I rowsort
SELECT - 21 * + 13 + - - 27 AS col2
----
-246

query II rowsort
SELECT 77, + 47 * - 71 AS col1
----
77
-3337

query II rowsort
SELECT ALL - 85 AS col0, - 28 AS col1
----
-85
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5409
SELECT CAST( + 60 AS SIGNED ) / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5409
SELECT CAST ( + 60 AS INTEGER ) / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5410
SELECT 33 - - COUNT( * ) + ( + CAST( COUNT( 13 ) AS SIGNED ) )
----
35

skipif mysql # not compatible
query I rowsort label-5410
SELECT 33 - - COUNT ( * ) + ( + CAST ( COUNT ( 13 ) AS INTEGER ) )
----
35

query II rowsort
SELECT 78 * 56 col0, - COALESCE ( - NULLIF ( + + 12, 75 ), + 46 )
----
4368
12

onlyif mysql # DIV for integer division: 
query I rowsort label-5412
SELECT ALL + 22 DIV 98 + 72 AS col0
----
72

skipif mysql # not compatible
query I rowsort label-5412
SELECT ALL + 22 / 98 + 72 AS col0
----
72

query I rowsort
SELECT 79 * - 2
----
-158

onlyif mysql # aggregate syntax: 
query I rowsort label-5414
SELECT 26 * - COUNT( ALL 9 ) col0
----
-26

skipif mysql # not compatible
query I rowsort label-5414
SELECT 26 * - COUNT ( ALL 9 ) col0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-5415
SELECT ALL CASE 13 WHEN - 41 THEN NULL WHEN 39 THEN 94 * + - AVG ( 15 ) / + + 65 + 11 + 9 END + 69 * - COUNT( * ) * - - 9 * + 32 + + 54
----
NULL

skipif mysql # not compatible
query I rowsort label-5415
SELECT ALL CASE 13 WHEN - 41 THEN NULL WHEN 39 THEN 94 * + - AVG ( 15 ) / + + 65 + 11 + 9 END + 69 * - COUNT ( * ) * - - 9 * + 32 + + 54
----
NULL

query I rowsort
SELECT DISTINCT + - 10 * 70 + + 3 + 3
----
-694

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5417
SELECT DISTINCT - 4 + + + CASE - - COUNT( 77 ) WHEN 64 + + + CAST( NULL AS SIGNED ) / 61 THEN + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5417
SELECT DISTINCT - 4 + + + CASE - - COUNT ( 77 ) WHEN 64 + + + CAST ( NULL AS INTEGER ) / 61 THEN + COUNT ( * ) ELSE NULL END
----
NULL

query II rowsort
SELECT ALL - 40 + + 76 AS col2, 61
----
36
61

onlyif mysql # aggregate syntax: 
query II rowsort label-5419
SELECT DISTINCT - 36 AS col1, COUNT( * ) AS col2
----
-36
1

skipif mysql # not compatible
query II rowsort label-5419
SELECT DISTINCT - 36 AS col1, COUNT ( * ) AS col2
----
-36
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5420
SELECT - + 51 AS col0, - COUNT( * ) * + 3 - MAX( - - 30 ) * - ( NULLIF ( - 26, + CASE + 54 WHEN + 10 THEN 88 WHEN - 52 + CAST( NULL AS SIGNED ) - 85 / - COALESCE ( - 37, + 14 ) THEN NULL ELSE - + 35 * - COUNT( * ) END ) )
----
-51
-783

skipif mysql # not compatible
query II rowsort label-5420
SELECT - + 51 AS col0, - COUNT ( * ) * + 3 - MAX ( - - 30 ) * - ( NULLIF ( - 26, + CASE + 54 WHEN + 10 THEN 88 WHEN - 52 + CAST ( NULL AS INTEGER ) - 85 / - COALESCE ( - 37, + 14 ) THEN NULL ELSE - + 35 * - COUNT ( * ) END ) )
----
-51
-783

onlyif mysql # aggregate syntax: 
query I rowsort label-5421
SELECT MIN( ALL - 23 )
----
-23

skipif mysql # not compatible
query I rowsort label-5421
SELECT MIN ( ALL - 23 )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-5422
SELECT ALL MIN( + 3 )
----
3

skipif mysql # not compatible
query I rowsort label-5422
SELECT ALL MIN ( + 3 )
----
3

query I rowsort
SELECT 28 * + - 76 * - + 66
----
140448

onlyif mysql # aggregate syntax: 
query I rowsort label-5424
SELECT ALL - - 56 - 38 + - 33 * - + CASE + 54 WHEN 66 THEN COUNT( * ) END / + - COUNT( DISTINCT - 36 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5424
SELECT ALL - - 56 - 38 + - 33 * - + CASE + 54 WHEN 66 THEN COUNT ( * ) END / + - COUNT ( DISTINCT - 36 ) AS col2
----
NULL

query I rowsort
SELECT 74 - 89
----
-15

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5426
SELECT + CAST( NULL AS DECIMAL ) * 8 - - 92
----
NULL

skipif mysql # not compatible
query I rowsort label-5426
SELECT + CAST ( NULL AS REAL ) * 8 - - 92
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5427
SELECT - 20 DIV MIN( ALL 19 ) * - - 21 DIV - 59 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5427
SELECT - 20 / MIN ( ALL 19 ) * - - 21 / - 59 AS col1
----
0

query I rowsort
SELECT ALL 90 - + 19 + - 99 AS col0
----
-28

query I rowsort
SELECT ALL + 38 * - 53
----
-2014

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5430
SELECT - - 66, - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + - 88 / - MIN( DISTINCT - 75 ) + + + 38 AS col0
----
66
NULL

skipif mysql # not compatible
query II rowsort label-5430
SELECT - - 66, - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + - 88 / - MIN ( DISTINCT - 75 ) + + + 38 AS col0
----
66
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5431
SELECT DISTINCT NULLIF ( + + 29, - COUNT( ALL + 57 ) * 19 )
----
29

skipif mysql # not compatible
query I rowsort label-5431
SELECT DISTINCT NULLIF ( + + 29, - COUNT ( ALL + 57 ) * 19 )
----
29

query I rowsort
SELECT DISTINCT - 67 - - + 74 AS col2
----
7

query I rowsort
SELECT ALL - 94 * 62
----
-5828

query I rowsort
SELECT 8 + - - 7
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-5435
SELECT 15 DIV 17
----
0

skipif mysql # not compatible
query I rowsort label-5435
SELECT 15 / 17
----
0

query I rowsort
SELECT 50 * + 84 * - 3
----
-12600

onlyif mysql # aggregate syntax: 
query I rowsort label-5437
SELECT COUNT( * ) * 14 * - - 2 + - NULLIF ( - - COUNT( - 35 ), 96 ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-5437
SELECT COUNT ( * ) * 14 * - - 2 + - NULLIF ( - - COUNT ( - 35 ), 96 ) AS col0
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5438
SELECT DISTINCT - CASE - 45 WHEN + 81 * 41 THEN + - 37 / ( - 24 ) END AS col2, - 95 + 46 / CAST( NULL AS SIGNED ) * + + 81 * - AVG ( DISTINCT + 68 )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5438
SELECT DISTINCT - CASE - 45 WHEN + 81 * 41 THEN + - 37 / ( - 24 ) END AS col2, - 95 + 46 / CAST ( NULL AS INTEGER ) * + + 81 * - AVG ( DISTINCT + 68 )
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5439
SELECT ALL + CAST( NULL AS SIGNED ) + + - 37 + ( - COUNT( * ) ) / - NULLIF ( - ( + 40 ), - 14 ) * 92 + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-5439
SELECT ALL + CAST ( NULL AS INTEGER ) + + - 37 + ( - COUNT ( * ) ) / - NULLIF ( - ( + 40 ), - 14 ) * 92 + 19
----
NULL

query I rowsort
SELECT DISTINCT - ( + 55 ) AS col1
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-5441
SELECT - 54 * + COUNT( ALL + + 31 ) + 18
----
-36

skipif mysql # not compatible
query I rowsort label-5441
SELECT - 54 * + COUNT ( ALL + + 31 ) + 18
----
-36

query I rowsort
SELECT ALL + 87 * + + 74
----
6438

onlyif mysql # aggregate syntax: 
query I rowsort label-5443
SELECT COUNT( * ) * + ( 62 ) * + - 22 + 8 + + 13 - - 65 AS col1
----
-1278

skipif mysql # not compatible
query I rowsort label-5443
SELECT COUNT ( * ) * + ( 62 ) * + - 22 + 8 + + 13 - - 65 AS col1
----
-1278

query I rowsort
SELECT ALL 36 + - 28 AS col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5445
SELECT ALL 94 + + + 43 * COUNT( * )
----
137

skipif mysql # not compatible
query I rowsort label-5445
SELECT ALL 94 + + + 43 * COUNT ( * )
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-5446
SELECT ALL + - 4 * + 61 * + CASE - - COUNT( * ) WHEN + CASE + - 75 WHEN 54 THEN 74 END + MIN( DISTINCT + 24 ) THEN NULL WHEN - + 19 * + - 51 + + 90 + 49 / + 54 * - 3 - + AVG ( DISTINCT - 60 ) THEN - 12 ELSE - + 69 END * - 20 * + - CASE + - 2 WHEN + 34 * 38 + - + ( + 2 ) THEN NULL ELSE 51 * - NULLIF ( COUNT( * ), - 69 * 69 ) END * 54 + ( 86 ) + + 61
----
-927326733

skipif mysql # not compatible
query I rowsort label-5446
SELECT ALL + - 4 * + 61 * + CASE - - COUNT ( * ) WHEN + CASE + - 75 WHEN 54 THEN 74 END + MIN ( DISTINCT + 24 ) THEN NULL WHEN - + 19 * + - 51 + + 90 + 49 / + 54 * - 3 - + AVG ( DISTINCT - 60 ) THEN - 12 ELSE - + 69 END * - 20 * + - CASE + - 2 WHEN + 34 * 38 + - + ( + 2 ) THEN NULL ELSE 51 * - NULLIF ( COUNT ( * ), - 69 * 69 ) END * 54 + ( 86 ) + + 61
----
-927326733

query I rowsort
SELECT 94 * + 58 * + - 77 AS col2
----
-419804

query I rowsort
SELECT DISTINCT - - 37 AS col2
----
37

query II rowsort
SELECT - + 19 + 74, + 38 * + 65 - 2 AS col2
----
55
2468

onlyif mysql # aggregate syntax: 
query I rowsort label-5450
SELECT - - 15 * - CASE - NULLIF ( 83, + 19 ) WHEN CASE - - 58 WHEN SUM( ALL 64 ) THEN - 77 - - - 42 WHEN 46 THEN + 87 - - COUNT( * ) ELSE - COUNT( * ) END THEN 6 + - COUNT( + 98 ) END - - + 9 + - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5450
SELECT - - 15 * - CASE - NULLIF ( 83, + 19 ) WHEN CASE - - 58 WHEN SUM ( ALL 64 ) THEN - 77 - - - 42 WHEN 46 THEN + 87 - - COUNT ( * ) ELSE - COUNT ( * ) END THEN 6 + - COUNT ( + 98 ) END - - + 9 + - - COUNT ( * )
----
NULL

query I rowsort
SELECT + - 56 * - 80 AS col1
----
4480

onlyif mysql # DIV for integer division: 
query I rowsort label-5452
SELECT ALL - 50 DIV + 73 * - 41
----
0

skipif mysql # not compatible
query I rowsort label-5452
SELECT ALL - 50 / + 73 * - 41
----
0

query I rowsort
SELECT + - NULLIF ( 37, - 88 ) + + 47 + + - 83 - 22 AS col1
----
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-5454
SELECT DISTINCT + 17 DIV + + 79 + + 46
----
46

skipif mysql # not compatible
query I rowsort label-5454
SELECT DISTINCT + 17 / + + 79 + + 46
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5455
SELECT + 96 * - NULLIF ( - 65, - - MAX( CAST( NULL AS SIGNED ) ) ) * 29
----
180960

skipif mysql # not compatible
query I rowsort label-5455
SELECT + 96 * - NULLIF ( - 65, - - MAX ( CAST ( NULL AS INTEGER ) ) ) * 29
----
180960

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5456
SELECT ALL 65 DIV - - COUNT( * )
----
65

skipif mysql # not compatible
query I rowsort label-5456
SELECT ALL 65 / - - COUNT ( * )
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5457
SELECT + ( + + 34 ) + 44 DIV - + COALESCE ( - - CASE + - COUNT( * ) WHEN 26 THEN NULL ELSE + 56 END, + 78, + 13 + - + 45 ) + - 55
----
-21

skipif mysql # not compatible
query I rowsort label-5457
SELECT + ( + + 34 ) + 44 / - + COALESCE ( - - CASE + - COUNT ( * ) WHEN 26 THEN NULL ELSE + 56 END, + 78, + 13 + - + 45 ) + - 55
----
-21

query I rowsort
SELECT + + 29 + + - 11 AS col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5459
SELECT ALL + NULLIF ( - 53, + - 63 * MAX( DISTINCT 48 ) ) AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-5459
SELECT ALL + NULLIF ( - 53, + - 63 * MAX ( DISTINCT 48 ) ) AS col0
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5460
SELECT ALL + CAST( 40 AS SIGNED )
----
40

skipif mysql # not compatible
query I rowsort label-5460
SELECT ALL + CAST ( 40 AS INTEGER )
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5461
SELECT - - 54 * + COUNT( * ) DIV - COUNT( * ) + - 66
----
-120

skipif mysql # not compatible
query I rowsort label-5461
SELECT - - 54 * + COUNT ( * ) / - COUNT ( * ) + - 66
----
-120

onlyif mysql # aggregate syntax: 
query II rowsort label-5462
SELECT 73 AS col2, COUNT( * )
----
73
1

skipif mysql # not compatible
query II rowsort label-5462
SELECT 73 AS col2, COUNT ( * )
----
73
1

query I rowsort
SELECT ALL ( 33 ) * - - 51 AS col1
----
1683

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5464
SELECT - NULLIF ( + - CAST( + 75 AS SIGNED ), + ( + 51 ) * + 64 ) AS col1, + CAST( + 27 AS SIGNED ) + + MIN( ALL 81 ) + - 14 + + 71 DIV + 91
----
75
94

skipif mysql # not compatible
query II rowsort label-5464
SELECT - NULLIF ( + - CAST ( + 75 AS INTEGER ), + ( + 51 ) * + 64 ) AS col1, + CAST ( + 27 AS INTEGER ) + + MIN ( ALL 81 ) + - 14 + + 71 / + 91
----
75
94

query I rowsort
SELECT - 26 + + ( - 76 ) AS col2
----
-102

query I rowsort
SELECT + 97 * + - 40 AS col1
----
-3880

onlyif mysql # aggregate syntax: 
query I rowsort label-5467
SELECT DISTINCT COUNT( ALL + + 58 )
----
1

skipif mysql # not compatible
query I rowsort label-5467
SELECT DISTINCT COUNT ( ALL + + 58 )
----
1

query I rowsort
SELECT ALL - 63 + + + 18 col2
----
-45

query I rowsort
SELECT - 66 * 41
----
-2706

query I rowsort
SELECT DISTINCT + ( + 5 ) AS col2
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5471
SELECT - ( 45 ) DIV - 14 + 65, MAX( - 5 ) AS col0
----
68
-5

skipif mysql # not compatible
query II rowsort label-5471
SELECT - ( 45 ) / - 14 + 65, MAX ( - 5 ) AS col0
----
68
-5

query I rowsort
SELECT + 31 * + 64
----
1984

onlyif mysql # aggregate syntax: 
query I rowsort label-5473
SELECT - 36 * + 76 * MAX( - 87 ) AS col0
----
238032

skipif mysql # not compatible
query I rowsort label-5473
SELECT - 36 * + 76 * MAX ( - 87 ) AS col0
----
238032

onlyif mysql # aggregate syntax: 
query I rowsort label-5474
SELECT ( MAX( ALL + 65 ) )
----
65

skipif mysql # not compatible
query I rowsort label-5474
SELECT ( MAX ( ALL + 65 ) )
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5475
SELECT - 54 / - - COUNT( * ) * CAST( NULL AS SIGNED ) * - - 9 * - 19 * - 90 * - + 31
----
NULL

skipif mysql # not compatible
query I rowsort label-5475
SELECT - 54 / - - COUNT ( * ) * CAST ( NULL AS INTEGER ) * - - 9 * - 19 * - 90 * - + 31
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5476
SELECT DISTINCT 43 * - - ( - + 17 ) + - COALESCE ( - - 14, ( - + 10 ) * + 83 - - COALESCE ( + 73, + - 89 * + - 94 DIV COUNT( + + COALESCE ( + 36, - 21 ) ) + 0 + CASE + 59 WHEN 20 * + AVG ( - + 32 ) + + 30 * 36 THEN + + 20 + + + 5 ELSE + 91 END * - 31 + 74 * 95 ) + 68 )
----
-745

skipif mysql # not compatible
query I rowsort label-5476
SELECT DISTINCT 43 * - - ( - + 17 ) + - COALESCE ( - - 14, ( - + 10 ) * + 83 - - COALESCE ( + 73, + - 89 * + - 94 / COUNT ( + + COALESCE ( + 36, - 21 ) ) + 0 + CASE + 59 WHEN 20 * + AVG ( - + 32 ) + + 30 * 36 THEN + + 20 + + + 5 ELSE + 91 END * - 31 + 74 * 95 ) + 68 )
----
-745

query I rowsort
SELECT ( - ( + + 90 ) )
----
-90

query I rowsort
SELECT ALL 18 * - 82 + - - 89 + 62
----
-1325

onlyif mysql # aggregate syntax: 
query I rowsort label-5479
SELECT ALL - 55 * + COUNT( * ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-5479
SELECT ALL - 55 * + COUNT ( * ) AS col0
----
-55

query II rowsort
SELECT DISTINCT + 62 * - 47 + - + 13 AS col2, 25 col0
----
-2927
25

query I rowsort
SELECT COALESCE ( + + 64, + 20 + + + 81 )
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5482
SELECT + 60 DIV 31 + 69 DIV + + 4 + + - COUNT( * ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-5482
SELECT + 60 / 31 + 69 / + + 4 + + - COUNT ( * ) AS col0
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5483
SELECT ALL - COUNT( + + 88 ) * - COUNT( * ) + NULLIF ( + + CASE - 58 WHEN 80 + 43 THEN 13 * - 2 * + COUNT( * ) DIV - 57 ELSE + - CAST( + 20 AS SIGNED ) END, - 85 * - COUNT( + 72 ) + + AVG ( + 59 ) ) + - - 7 AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-5483
SELECT ALL - COUNT ( + + 88 ) * - COUNT ( * ) + NULLIF ( + + CASE - 58 WHEN 80 + 43 THEN 13 * - 2 * + COUNT ( * ) / - 57 ELSE + - CAST ( + 20 AS INTEGER ) END, - 85 * - COUNT ( + 72 ) + + AVG ( + 59 ) ) + - - 7 AS col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-5484
SELECT + CASE + - MIN( ( - 52 ) ) WHEN + 70 * + + 89 + 70 + - ( 81 ) * - 28 - 67 - + + 55 * + 93 THEN NULL ELSE 76 + - 59 END AS col2
----
17

skipif mysql # not compatible
query I rowsort label-5484
SELECT + CASE + - MIN ( ( - 52 ) ) WHEN + 70 * + + 89 + 70 + - ( 81 ) * - 28 - 67 - + + 55 * + 93 THEN NULL ELSE 76 + - 59 END AS col2
----
17

query I rowsort
SELECT ALL - 65 * + 61 AS col0
----
-3965

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5486
SELECT + CAST( NULL AS SIGNED ) AS col1, 73 + COUNT( * ) * - SUM( 22 )
----
NULL
51

skipif mysql # not compatible
query II rowsort label-5486
SELECT + CAST ( NULL AS INTEGER ) AS col1, 73 + COUNT ( * ) * - SUM ( 22 )
----
NULL
51

query II rowsort
SELECT ALL + + 70 col1, 54
----
70
54

query II rowsort
SELECT + - 88, 9 AS col2
----
-88
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5489
SELECT ALL + - CAST( + 75 AS SIGNED )
----
-75

skipif mysql # not compatible
query I rowsort label-5489
SELECT ALL + - CAST ( + 75 AS INTEGER )
----
-75

onlyif mysql # DIV for integer division: 
query II rowsort label-5490
SELECT - 91, 64 DIV + 96 AS col1
----
-91
0

skipif mysql # not compatible
query II rowsort label-5490
SELECT - 91, 64 / + 96 AS col1
----
-91
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5491
SELECT - - CASE + + 35 WHEN + + MIN( DISTINCT + 63 ) / - CASE - 17 WHEN - + 32 THEN 11 ELSE NULL END * 39 + - 30 / - - 57 + + 99 - - 12 THEN - - 73 WHEN + 94 + 1 + + - 1 THEN + 32 + CASE + COUNT( * ) WHEN + COUNT( * ) THEN + 29 / + - 63 + - + 42 + - 31 * - 14 + - 67 + + COUNT( * ) + CASE ( 65 ) WHEN + 56 * + 61 + 65 THEN - 47 WHEN + CASE 18 WHEN + 66 THEN NULL ELSE - 92 + 6 END THEN - 89 + + COUNT( * ) * CAST( NULL AS SIGNED ) END WHEN ( - 71 ) THEN NULL ELSE NULL END ELSE NULL END * + ( - 25 ) + ( - 90 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5491
SELECT - - CASE + + 35 WHEN + + MIN ( DISTINCT + 63 ) / - CASE - 17 WHEN - + 32 THEN 11 ELSE NULL END * 39 + - 30 / - - 57 + + 99 - - 12 THEN - - 73 WHEN + 94 + 1 + + - 1 THEN + 32 + CASE + COUNT ( * ) WHEN + COUNT ( * ) THEN + 29 / + - 63 + - + 42 + - 31 * - 14 + - 67 + + COUNT ( * ) + CASE ( 65 ) WHEN + 56 * + 61 + 65 THEN - 47 WHEN + CASE 18 WHEN + 66 THEN NULL ELSE - 92 + 6 END THEN - 89 + + COUNT ( * ) * CAST ( NULL AS INTEGER ) END WHEN ( - 71 ) THEN NULL ELSE NULL END ELSE NULL END * + ( - 25 ) + ( - 90 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5492
SELECT ALL ( - + 45 ) * 82 - COUNT( * ) + 48
----
-3643

skipif mysql # not compatible
query I rowsort label-5492
SELECT ALL ( - + 45 ) * 82 - COUNT ( * ) + 48
----
-3643

onlyif mysql # DIV for integer division: 
query I rowsort label-5493
SELECT + 36 + + 60 DIV 67 + 71
----
107

skipif mysql # not compatible
query I rowsort label-5493
SELECT + 36 + + 60 / 67 + 71
----
107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5494
SELECT - + 82 DIV - + NULLIF ( + COALESCE ( - ( CAST( NULL AS SIGNED ) ), + - 6 - - 66, COUNT( - ( + 91 ) ) ), - COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-5494
SELECT - + 82 / - + NULLIF ( + COALESCE ( - ( CAST ( NULL AS INTEGER ) ), + - 6 - - 66, COUNT ( - ( + 91 ) ) ), - COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5495
SELECT ALL + MAX( - - 72 ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-5495
SELECT ALL + MAX ( - - 72 ) AS col1
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-5496
SELECT - + NULLIF ( + 34, COUNT( * ) ) AS col0, 50 AS col0
----
-34
50

skipif mysql # not compatible
query II rowsort label-5496
SELECT - + NULLIF ( + 34, COUNT ( * ) ) AS col0, 50 AS col0
----
-34
50

onlyif mysql # aggregate syntax: 
query II rowsort label-5497
SELECT ALL - 37 AS col2, + 98 * - + COUNT( * ) AS col2
----
-37
-98

skipif mysql # not compatible
query II rowsort label-5497
SELECT ALL - 37 AS col2, + 98 * - + COUNT ( * ) AS col2
----
-37
-98

query I rowsort
SELECT ( - + 32 )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-5499
SELECT + 97 / + 66 / + 43 * CASE - 21 WHEN 19 * - + SUM( DISTINCT + - 41 ) + + COUNT( - 22 ) + + 7 THEN - 42 WHEN - 15 THEN COALESCE ( - + 0, + - 82 ) ELSE NULL END / + 1 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5499
SELECT + 97 / + 66 / + 43 * CASE - 21 WHEN 19 * - + SUM ( DISTINCT + - 41 ) + + COUNT ( - 22 ) + + 7 THEN - 42 WHEN - 15 THEN COALESCE ( - + 0, + - 82 ) ELSE NULL END / + 1 AS col2
----
NULL

query I rowsort
SELECT + 3 * - 57 col0
----
-171

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5501
SELECT ALL COALESCE ( - 96, - - 60, - COALESCE ( - + COUNT( * ), + - COALESCE ( + 3, + SUM( 75 ) * - ( - + COUNT( * ) ) DIV + COALESCE ( + COUNT( * ), 21, - + 3 + 74 + + 70, - 50 - ( + 65 ) ), - - 42 ) * NULLIF ( + 63, 26 * + 79 + - 42 ) DIV - 3 * + 44 + 34 + 96 * + 76, + 34 DIV - 39, CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * + 76 ) ) * - ( 89 * CASE COUNT( + 71 ) WHEN + 73 THEN NULL ELSE CAST( 33 AS SIGNED ) + 25 END ) AS col2
----
495552

skipif mysql # not compatible
query I rowsort label-5501
SELECT ALL COALESCE ( - 96, - - 60, - COALESCE ( - + COUNT ( * ), + - COALESCE ( + 3, + SUM ( 75 ) * - ( - + COUNT ( * ) ) / + COALESCE ( + COUNT ( * ), 21, - + 3 + 74 + + 70, - 50 - ( + 65 ) ), - - 42 ) * NULLIF ( + 63, 26 * + 79 + - 42 ) / - 3 * + 44 + 34 + 96 * + 76, + 34 / - 39, CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * + 76 ) ) * - ( 89 * CASE COUNT ( + 71 ) WHEN + 73 THEN NULL ELSE CAST ( 33 AS INTEGER ) + 25 END ) AS col2
----
495552

query I rowsort
SELECT DISTINCT NULLIF ( + 83, + 91 + + 62 ) * 84 * 36
----
250992

query I rowsort
SELECT ALL 2 * + + 66
----
132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5504
SELECT - CAST( 74 AS SIGNED ) col1
----
-74

skipif mysql # not compatible
query I rowsort label-5504
SELECT - CAST ( 74 AS INTEGER ) col1
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5505
SELECT + 43 * - COALESCE ( + COUNT( * ), + 52 * + CAST( NULL AS SIGNED ) + + 75 DIV - COUNT( * ) + NULLIF ( MIN( 68 ), + ( + MIN( DISTINCT + 35 ) ) * - 75 ) + + - CASE - - ( 1 ) WHEN - 74 THEN - 82 ELSE - + 86 + - 74 END )
----
-43

skipif mysql # not compatible
query I rowsort label-5505
SELECT + 43 * - COALESCE ( + COUNT ( * ), + 52 * + CAST ( NULL AS INTEGER ) + + 75 / - COUNT ( * ) + NULLIF ( MIN ( 68 ), + ( + MIN ( DISTINCT + 35 ) ) * - 75 ) + + - CASE - - ( 1 ) WHEN - 74 THEN - 82 ELSE - + 86 + - 74 END )
----
-43

query I rowsort
SELECT ALL - 59 + 9 + + + 84 AS col0
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-5507
SELECT ALL 66 * - 74 AS col1, COUNT( * )
----
-4884
1

skipif mysql # not compatible
query II rowsort label-5507
SELECT ALL 66 * - 74 AS col1, COUNT ( * )
----
-4884
1

query I rowsort
SELECT + 31 + + 69 - - 81 AS col0
----
181

query I rowsort
SELECT + 7 + - 31
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-5510
SELECT - 13 * - COUNT( * )
----
13

skipif mysql # not compatible
query I rowsort label-5510
SELECT - 13 * - COUNT ( * )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-5511
SELECT ALL + NULLIF ( ( + 80 ), - - COUNT( * ) + + - COUNT( * ) * 60 )
----
80

skipif mysql # not compatible
query I rowsort label-5511
SELECT ALL + NULLIF ( ( + 80 ), - - COUNT ( * ) + + - COUNT ( * ) * 60 )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5512
SELECT DISTINCT 8 / 2 + + + CASE + + 29 WHEN 46 * + + ( - COUNT( * ) ) - + + 49 THEN - + 96 * 11 WHEN - - 53 THEN NULL WHEN 49 * - 27 THEN - - 80 + COUNT( * ) WHEN - 80 THEN 13 + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5512
SELECT DISTINCT 8 / 2 + + + CASE + + 29 WHEN 46 * + + ( - COUNT ( * ) ) - + + 49 THEN - + 96 * 11 WHEN - - 53 THEN NULL WHEN 49 * - 27 THEN - - 80 + COUNT ( * ) WHEN - 80 THEN 13 + COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5513
SELECT ALL - COUNT( * ) * + + 39 AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-5513
SELECT ALL - COUNT ( * ) * + + 39 AS col2
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5514
SELECT + 70 DIV + + 88 * 67 + - - COUNT( * ) + - 9
----
-8

skipif mysql # not compatible
query I rowsort label-5514
SELECT + 70 / + + 88 * 67 + - - COUNT ( * ) + - 9
----
-8

query I rowsort
SELECT ALL - - NULLIF ( - 42, 32 ) * 98
----
-4116

onlyif mysql # aggregate syntax: 
query I rowsort label-5516
SELECT + MIN( - 40 ) col2
----
-40

skipif mysql # not compatible
query I rowsort label-5516
SELECT + MIN ( - 40 ) col2
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5517
SELECT 72 * CAST( - + COUNT( * ) AS SIGNED ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-5517
SELECT 72 * CAST ( - + COUNT ( * ) AS INTEGER ) AS col2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-5518
SELECT DISTINCT + + SUM( + 66 ) * - COUNT( * ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-5518
SELECT DISTINCT + + SUM ( + 66 ) * - COUNT ( * ) AS col1
----
-66

query I rowsort
SELECT DISTINCT - + ( + 34 ) * - 72 AS col0
----
2448

onlyif mysql # aggregate syntax: 
query I rowsort label-5520
SELECT + CASE CASE + - 57 WHEN + - SUM( - 68 ) + + + 56 + - + 90 * 31 THEN + 6 ELSE + 76 * - 16 END WHEN + + 81 * - ( - - 90 ) * 14 * + 30 * - - 52 THEN + 38 * - 18 ELSE NULL END * - + 8 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5520
SELECT + CASE CASE + - 57 WHEN + - SUM ( - 68 ) + + + 56 + - + 90 * 31 THEN + 6 ELSE + 76 * - 16 END WHEN + + 81 * - ( - - 90 ) * 14 * + 30 * - - 52 THEN + 38 * - 18 ELSE NULL END * - + 8 col1
----
NULL

query I rowsort
SELECT 93 * + 30 * + - 35 AS col1
----
-97650

query I rowsort
SELECT + + 77 * + ( 70 ) - - 26 AS col1
----
5416

onlyif mysql # aggregate syntax: 
query I rowsort label-5523
SELECT DISTINCT + + MIN( DISTINCT - 93 ) * - + 37 + 28 * - + 81
----
1173

skipif mysql # not compatible
query I rowsort label-5523
SELECT DISTINCT + + MIN ( DISTINCT - 93 ) * - + 37 + 28 * - + 81
----
1173

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5524
SELECT ALL - + 32 * - CAST( NULL AS SIGNED ) AS col1, - 13 + 88
----
NULL
75

skipif mysql # not compatible
query II rowsort label-5524
SELECT ALL - + 32 * - CAST ( NULL AS INTEGER ) AS col1, - 13 + 88
----
NULL
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5525
SELECT 72 * + + 30 + 16 DIV + 38 * + 6 + + NULLIF ( COUNT( * ), + 5 )
----
2161

skipif mysql # not compatible
query I rowsort label-5525
SELECT 72 * + + 30 + 16 / + 38 * + 6 + + NULLIF ( COUNT ( * ), + 5 )
----
2161

onlyif mysql # aggregate syntax: 
query I rowsort label-5526
SELECT ALL - COALESCE ( - MIN( ALL + + 72 ), - 0 + + 29, + 2 * + ( - + 36 ) )
----
72

skipif mysql # not compatible
query I rowsort label-5526
SELECT ALL - COALESCE ( - MIN ( ALL + + 72 ), - 0 + + 29, + 2 * + ( - + 36 ) )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5527
SELECT DISTINCT - + MIN( 66 ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-5527
SELECT DISTINCT - + MIN ( 66 ) AS col1
----
-66

query II rowsort
SELECT 52 + - 68 AS col2, 63 * - 97
----
-16
-6111

query I rowsort
SELECT - 67 + 49
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-5530
SELECT ALL - 15 * - COUNT( * )
----
15

skipif mysql # not compatible
query I rowsort label-5530
SELECT ALL - 15 * - COUNT ( * )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5531
SELECT - COUNT( ALL - - 0 )
----
-1

skipif mysql # not compatible
query I rowsort label-5531
SELECT - COUNT ( ALL - - 0 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5532
SELECT COUNT( * ) + + - COALESCE ( + 81, 49 ) - - 17 + - COUNT( * )
----
-64

skipif mysql # not compatible
query I rowsort label-5532
SELECT COUNT ( * ) + + - COALESCE ( + 81, 49 ) - - 17 + - COUNT ( * )
----
-64

query I rowsort
SELECT 34 + - ( + 29 )
----
5

query I rowsort
SELECT ALL - ( + 69 ) + + 83 AS col1
----
14

query I rowsort
SELECT ALL 61 + - + 15 + - - 84
----
130

query I rowsort
SELECT 43 + - - 77 - 49 * - - 84 AS col2
----
-3996

query I rowsort
SELECT ALL 79 + 41 AS col2
----
120

query I rowsort
SELECT ALL 55 + - - 16 AS col0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5539
SELECT ALL 19 + + COUNT( * ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-5539
SELECT ALL 19 + + COUNT ( * ) AS col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5540
SELECT COUNT( * ) * 25
----
25

skipif mysql # not compatible
query I rowsort label-5540
SELECT COUNT ( * ) * 25
----
25

query I rowsort
SELECT 88 + - - 71 + - ( - + 83 )
----
242

query I rowsort
SELECT DISTINCT 54 * 81 AS col1
----
4374

onlyif mysql # aggregate syntax: 
query I rowsort label-5543
SELECT ALL 71 * - 40 * - COALESCE ( - 98, 48, + COUNT( * ) ) AS col0
----
-278320

skipif mysql # not compatible
query I rowsort label-5543
SELECT ALL 71 * - 40 * - COALESCE ( - 98, 48, + COUNT ( * ) ) AS col0
----
-278320

onlyif mysql # DIV for integer division: 
query I rowsort label-5544
SELECT ALL 83 DIV + 2 AS col0
----
41

skipif mysql # not compatible
query I rowsort label-5544
SELECT ALL 83 / + 2 AS col0
----
41

query I rowsort
SELECT ALL 48 * 49 AS col0
----
2352

onlyif mysql # aggregate syntax: 
query I rowsort label-5546
SELECT DISTINCT COUNT( * ) - + 1 * 60
----
-59

skipif mysql # not compatible
query I rowsort label-5546
SELECT DISTINCT COUNT ( * ) - + 1 * 60
----
-59

query I rowsort
SELECT ALL 65 * - 94 * + 58
----
-354380

query I rowsort
SELECT ALL 77 * - + 63 AS col2
----
-4851

query I rowsort
SELECT DISTINCT ( 5 ) * + + 76
----
380

query I rowsort
SELECT DISTINCT - + 47 col1
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-5551
SELECT + 21 * ( + 37 ) DIV ( + 41 ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-5551
SELECT + 21 * ( + 37 ) / ( + 41 ) AS col2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5552
SELECT + NULLIF ( + COUNT( * ), + 30 )
----
1

skipif mysql # not compatible
query I rowsort label-5552
SELECT + NULLIF ( + COUNT ( * ), + 30 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5553
SELECT + 48 * - COUNT( * ) - + NULLIF ( 44, 82 + + 62 + - + 79 * + - SUM( DISTINCT - 7 ) ) + + CAST( NULL AS SIGNED ) / + ( - 91 ) * CAST( - 72 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5553
SELECT + 48 * - COUNT ( * ) - + NULLIF ( 44, 82 + + 62 + - + 79 * + - SUM ( DISTINCT - 7 ) ) + + CAST ( NULL AS INTEGER ) / + ( - 91 ) * CAST ( - 72 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5554
SELECT + + 16 * + - 45 * + - COUNT( * ) + ( + ( 17 ) )
----
737

skipif mysql # not compatible
query I rowsort label-5554
SELECT + + 16 * + - 45 * + - COUNT ( * ) + ( + ( 17 ) )
----
737

query II rowsort
SELECT DISTINCT - 38, + 35 + 58 AS col1
----
-38
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5556
SELECT - COUNT( 2 ) + - + 66 * + 77 * - 0
----
-1

skipif mysql # not compatible
query I rowsort label-5556
SELECT - COUNT ( 2 ) + - + 66 * + 77 * - 0
----
-1

query I rowsort
SELECT 87 * - - 60
----
5220

onlyif mysql # DIV for integer division: 
query I rowsort label-5558
SELECT ALL 54 DIV 18 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-5558
SELECT ALL 54 / 18 AS col2
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5559
SELECT 89 + 45 + - MIN( DISTINCT + 66 ) * - 1 - - 39 col1, 48 DIV + SUM( 19 ) AS col0
----
239
2

skipif mysql # not compatible
query II rowsort label-5559
SELECT 89 + 45 + - MIN ( DISTINCT + 66 ) * - 1 - - 39 col1, 48 / + SUM ( 19 ) AS col0
----
239
2

query I rowsort
SELECT + ( - NULLIF ( - - 81, 42 + 26 ) ) AS col2
----
-81

query I rowsort
SELECT 25 * + 88 + 59
----
2259

query II rowsort
SELECT + 39 AS col1, - 97 AS col2
----
39
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5563
SELECT CASE + ( - - 99 ) WHEN - 10 THEN - + NULLIF ( - 81, - - CAST( 47 AS SIGNED ) ) - - + 77 * + + NULLIF ( - 77, 14 + - 71 ) * - + 30 WHEN 55 THEN NULL END / COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5563
SELECT CASE + ( - - 99 ) WHEN - 10 THEN - + NULLIF ( - 81, - - CAST ( 47 AS INTEGER ) ) - - + 77 * + + NULLIF ( - 77, 14 + - 71 ) * - + 30 WHEN 55 THEN NULL END / COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5564
SELECT ALL + + COUNT( * ) + + + ( SUM( DISTINCT 3 ) )
----
4

skipif mysql # not compatible
query I rowsort label-5564
SELECT ALL + + COUNT ( * ) + + + ( SUM ( DISTINCT 3 ) )
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5565
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + + - ( - MAX( 99 ) ) + + COALESCE ( + - CAST( - 22 AS SIGNED ), + 86 * - 52, + + ( + - 23 ) + 3 ) / - 4
----
NULL

skipif mysql # not compatible
query I rowsort label-5565
SELECT DISTINCT + CAST ( NULL AS REAL ) + + - ( - MAX ( 99 ) ) + + COALESCE ( + - CAST ( - 22 AS INTEGER ), + 86 * - 52, + + ( + - 23 ) + 3 ) / - 4
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5566
SELECT + - CASE COUNT( * ) WHEN + 74 THEN NULL WHEN + COUNT( * ) THEN 71 END col0
----
-71

skipif mysql # not compatible
query I rowsort label-5566
SELECT + - CASE COUNT ( * ) WHEN + 74 THEN NULL WHEN + COUNT ( * ) THEN 71 END col0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-5567
SELECT 43 * - COUNT( * ) col2
----
-43

skipif mysql # not compatible
query I rowsort label-5567
SELECT 43 * - COUNT ( * ) col2
----
-43

query I rowsort
SELECT ALL - 59 + 64 * - 84 * + - 56
----
300997

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5569
SELECT ALL - NULLIF ( 78, - - CAST( NULL AS SIGNED ) ) + - 63 AS col1
----
-141

skipif mysql # not compatible
query I rowsort label-5569
SELECT ALL - NULLIF ( 78, - - CAST ( NULL AS INTEGER ) ) + - 63 AS col1
----
-141

onlyif mysql # DIV for integer division: 
query II rowsort label-5570
SELECT 33 * + 89 AS col1, 45 + + 24 * 48 DIV 51 * 21 col1
----
2937
507

skipif mysql # not compatible
query II rowsort label-5570
SELECT 33 * + 89 AS col1, 45 + + 24 * 48 / 51 * 21 col1
----
2937
507

query I rowsort
SELECT DISTINCT + 41 * + - 89
----
-3649

query I rowsort
SELECT ALL + 24 * 44
----
1056

query I rowsort
SELECT ALL NULLIF ( 99, 62 + 15 ) AS col2
----
99

query I rowsort
SELECT 68 - - 60 + 33 AS col0
----
161

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5575
SELECT ALL - 96 - ( + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5575
SELECT ALL - 96 - ( + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5576
SELECT DISTINCT + 42 * + ( - + 18 ) * - 13 AS col1, + ( - - COUNT( * ) )
----
9828
1

skipif mysql # not compatible
query II rowsort label-5576
SELECT DISTINCT + 42 * + ( - + 18 ) * - 13 AS col1, + ( - - COUNT ( * ) )
----
9828
1

query II rowsort
SELECT ALL 80, 93 AS col2
----
80
93

onlyif mysql # aggregate syntax: 
query II rowsort label-5578
SELECT - ( 18 ) * - COUNT( DISTINCT + + 16 ) + 6 + 54, - 71 AS col1
----
78
-71

skipif mysql # not compatible
query II rowsort label-5578
SELECT - ( 18 ) * - COUNT ( DISTINCT + + 16 ) + 6 + 54, - 71 AS col1
----
78
-71

query I rowsort
SELECT ALL + 24 * - 53 col0
----
-1272

query I rowsort
SELECT - 42 + + + 69 + - 65 AS col2
----
-38

query II rowsort
SELECT 56, + 9 AS col2
----
56
9

query I rowsort
SELECT - ( + - 52 ) + - - 5 AS col2
----
57

query I rowsort
SELECT - + 61 * - - 97 AS col2
----
-5917

query I rowsort
SELECT + ( 24 ) * + - 20 AS col1
----
-480

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5585
SELECT DISTINCT - COUNT( * ) DIV + 52 + 80 AS col1
----
80

skipif mysql # not compatible
query I rowsort label-5585
SELECT DISTINCT - COUNT ( * ) / + 52 + 80 AS col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5586
SELECT + - NULLIF ( - 35, - - 16 ) * - - NULLIF ( - - 8, + 10 * 31 + 46 * - - 43 * + 83 - + COUNT( * ) )
----
280

skipif mysql # not compatible
query I rowsort label-5586
SELECT + - NULLIF ( - 35, - - 16 ) * - - NULLIF ( - - 8, + 10 * 31 + 46 * - - 43 * + 83 - + COUNT ( * ) )
----
280

onlyif mysql # aggregate syntax: 
query I rowsort label-5587
SELECT DISTINCT + + SUM( 87 ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-5587
SELECT DISTINCT + + SUM ( 87 ) AS col1
----
87

query I rowsort
SELECT ALL 72 * - 8
----
-576

onlyif mysql # aggregate syntax: 
query I rowsort label-5589
SELECT + ( - - 79 ) * - MAX( - 39 ) AS col1
----
3081

skipif mysql # not compatible
query I rowsort label-5589
SELECT + ( - - 79 ) * - MAX ( - 39 ) AS col1
----
3081

onlyif mysql # aggregate syntax: 
query I rowsort label-5590
SELECT - - COUNT( * ) * 45 + + + 21 + + 51 AS col2
----
117

skipif mysql # not compatible
query I rowsort label-5590
SELECT - - COUNT ( * ) * 45 + + + 21 + + 51 AS col2
----
117

onlyif mysql # aggregate syntax: 
query II rowsort label-5591
SELECT ALL + 22, - 58 * + - SUM( ALL - ( + 98 ) ) AS col0
----
22
-5684

skipif mysql # not compatible
query II rowsort label-5591
SELECT ALL + 22, - 58 * + - SUM ( ALL - ( + 98 ) ) AS col0
----
22
-5684

query I rowsort
SELECT + 60 + + 28 AS col0
----
88

query II rowsort
SELECT + + ( + - NULLIF ( + 67, - - 96 ) ) col2, + 61
----
-67
61

query I rowsort
SELECT + + 59 * - + 35 AS col0
----
-2065

query II rowsort
SELECT 4 AS col1, 45 + - 36 + - CASE ( + + 18 ) WHEN + 80 THEN NULL WHEN - + 38 THEN NULL ELSE 25 END
----
4
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-5596
SELECT - - 25 * + 83 + + 22 DIV + 26
----
2075

skipif mysql # not compatible
query I rowsort label-5596
SELECT - - 25 * + 83 + + 22 / + 26
----
2075

query I rowsort
SELECT + AVG ( ALL 25 ) + + CASE - 48 WHEN + 25 * - 81 * + 49 + + 73 / 76 + - 56 THEN NULL WHEN + + AVG ( ALL - - 68 ) THEN + 90 END
----
NULL

query I rowsort
SELECT ALL 78 * 22 + - 63 - + 16 * + 54
----
789

onlyif mysql # aggregate syntax: 
query II rowsort label-5599
SELECT + ( + 33 ), 1 * + 50 - - 44 * - SUM( DISTINCT + + 57 ) + - 66 AS col2
----
33
-2524

skipif mysql # not compatible
query II rowsort label-5599
SELECT + ( + 33 ), 1 * + 50 - - 44 * - SUM ( DISTINCT + + 57 ) + - 66 AS col2
----
33
-2524

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5600
SELECT + 32 + + 42 + + + 49 DIV + - ( - MAX( ALL + + CAST( 62 AS SIGNED ) ) ) col0
----
74

skipif mysql # not compatible
query I rowsort label-5600
SELECT + 32 + + 42 + + + 49 / + - ( - MAX ( ALL + + CAST ( 62 AS INTEGER ) ) ) col0
----
74

query I rowsort
SELECT - 38 - 23 col0
----
-61

query I rowsort
SELECT - NULLIF ( 97, - - COALESCE ( 23, 3, - + 59 ) * - + 74 + NULLIF ( 91, + + NULLIF ( - + 42, 22 * + + 21 * - 95 ) + 93 ) ) + - 61 AS col2
----
-158

query I rowsort
SELECT - ( ( 44 ) ) AS col0
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5604
SELECT ALL NULLIF ( 88, - 4 - + CAST( NULL AS SIGNED ) * - ( - 38 ) * + + 75 * - + 1 + ( - - 85 ) )
----
88

skipif mysql # not compatible
query I rowsort label-5604
SELECT ALL NULLIF ( 88, - 4 - + CAST ( NULL AS INTEGER ) * - ( - 38 ) * + + 75 * - + 1 + ( - - 85 ) )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5605
SELECT 64 * 88 + + 91 * SUM( DISTINCT 87 ) AS col1
----
13549

skipif mysql # not compatible
query I rowsort label-5605
SELECT 64 * 88 + + 91 * SUM ( DISTINCT 87 ) AS col1
----
13549

query I rowsort
SELECT ALL 7 * 71 col0
----
497

query I rowsort
SELECT ALL CASE - 35 WHEN - 55 + - 82 + - - 75 THEN + 18 END
----
NULL

query II rowsort
SELECT DISTINCT 1 * + + 59, - 90 AS col0
----
59
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-5609
SELECT ALL - SUM( DISTINCT 17 ) - SUM( + - 81 ) + - COUNT( * ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-5609
SELECT ALL - SUM ( DISTINCT 17 ) - SUM ( + - 81 ) + - COUNT ( * ) AS col2
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-5610
SELECT - 71 DIV - 98
----
0

skipif mysql # not compatible
query I rowsort label-5610
SELECT - 71 / - 98
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5611
SELECT DISTINCT NULLIF ( - 26, + + MAX( ALL - 6 ) * + 18 * + - 9 + - 14 ) AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-5611
SELECT DISTINCT NULLIF ( - 26, + + MAX ( ALL - 6 ) * + 18 * + - 9 + - 14 ) AS col2
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5612
SELECT ALL NULLIF ( - 72, CAST( NULL AS SIGNED ) ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-5612
SELECT ALL NULLIF ( - 72, CAST ( NULL AS INTEGER ) ) AS col2
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5613
SELECT - 0 + COUNT( * ) + + 42 + + ( 12 ) + 24 + + 19 DIV - + 18 + 64 AS col2
----
142

skipif mysql # not compatible
query I rowsort label-5613
SELECT - 0 + COUNT ( * ) + + 42 + + ( 12 ) + 24 + + 19 / - + 18 + 64 AS col2
----
142

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5614
SELECT - CAST( NULL AS SIGNED ) * + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-5614
SELECT - CAST ( NULL AS INTEGER ) * + 59
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5615
SELECT - 18 * 60 DIV + + 1 col2
----
-1080

skipif mysql # not compatible
query I rowsort label-5615
SELECT - 18 * 60 / + + 1 col2
----
-1080

query I rowsort
SELECT DISTINCT + - 17 * - 74 - - 21
----
1279

onlyif mysql # aggregate syntax: 
query I rowsort label-5617
SELECT ALL - - COUNT( * ) * - + 87 + - + COUNT( * ) AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-5617
SELECT ALL - - COUNT ( * ) * - + 87 + - + COUNT ( * ) AS col0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-5618
SELECT - - COUNT( * ) * 35 * + - 66 AS col2
----
-2310

skipif mysql # not compatible
query I rowsort label-5618
SELECT - - COUNT ( * ) * 35 * + - 66 AS col2
----
-2310

query I rowsort
SELECT DISTINCT - 44 + - + 64 AS col0
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-5620
SELECT ALL + COUNT( DISTINCT + 12 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5620
SELECT ALL + COUNT ( DISTINCT + 12 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5621
SELECT MIN( + 43 ), - NULLIF ( + 78, + + 15 / - + COUNT( * ) * + CAST( - ( AVG ( DISTINCT + - 50 ) ) AS SIGNED ) + 49 ) AS col2
----
43
-78

skipif mysql # not compatible
query II rowsort label-5621
SELECT MIN ( + 43 ), - NULLIF ( + 78, + + 15 / - + COUNT ( * ) * + CAST ( - ( AVG ( DISTINCT + - 50 ) ) AS INTEGER ) + 49 ) AS col2
----
43
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5622
SELECT ALL - 0 DIV 13 * CAST( - NULLIF ( + - COALESCE ( + 69, 68, - COUNT( * ) ), COUNT( * ) + - - COUNT( * ) ) AS SIGNED ) * + ( + - 62 ) DIV - + 56 + + COUNT( * ) - MAX( DISTINCT + 79 ) + - 64 * + COUNT( * ) * + 65 * - + COUNT( * ) AS col0
----
4082

skipif mysql # not compatible
query I rowsort label-5622
SELECT ALL - 0 / 13 * CAST ( - NULLIF ( + - COALESCE ( + 69, 68, - COUNT ( * ) ), COUNT ( * ) + - - COUNT ( * ) ) AS INTEGER ) * + ( + - 62 ) / - + 56 + + COUNT ( * ) - MAX ( DISTINCT + 79 ) + - 64 * + COUNT ( * ) * + 65 * - + COUNT ( * ) AS col0
----
4082

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5623
SELECT - + 5 - NULLIF ( + 44, - MIN( - - 30 ) * + + 99 + + - CAST( - - 10 AS SIGNED ) ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-5623
SELECT - + 5 - NULLIF ( + 44, - MIN ( - - 30 ) * + + 99 + + - CAST ( - - 10 AS INTEGER ) ) AS col2
----
-49

query I rowsort
SELECT + 94 * + + ( - 20 )
----
-1880

onlyif mysql # aggregate syntax: 
query I rowsort label-5625
SELECT - 54 * + - NULLIF ( - + 17, + 19 + - 10 * - - MAX( + 71 ) * + 36 ) + + + NULLIF ( ( 38 ), + 1 ) + - 96 + 40 + 4 * + + 75 AS col0
----
-636

skipif mysql # not compatible
query I rowsort label-5625
SELECT - 54 * + - NULLIF ( - + 17, + 19 + - 10 * - - MAX ( + 71 ) * + 36 ) + + + NULLIF ( ( 38 ), + 1 ) + - 96 + 40 + 4 * + + 75 AS col0
----
-636

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5626
SELECT + 60 - COUNT( * ) + + 54 DIV + ( 90 ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-5626
SELECT + 60 - COUNT ( * ) + + 54 / + ( 90 ) AS col1
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5627
SELECT ALL + 4 * - - COUNT( + CAST( + - 95 AS SIGNED ) ) + - ( + + 11 ) + + + CASE + 72 WHEN + MIN( 74 ) - COUNT( * ) THEN ( + COUNT( * ) ) ELSE NULL END + - 0 + + + COUNT( DISTINCT - 27 ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5627
SELECT ALL + 4 * - - COUNT ( + CAST ( + - 95 AS INTEGER ) ) + - ( + + 11 ) + + + CASE + 72 WHEN + MIN ( 74 ) - COUNT ( * ) THEN ( + COUNT ( * ) ) ELSE NULL END + - 0 + + + COUNT ( DISTINCT - 27 ) * + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5628
SELECT ALL COUNT( * ) * 43 - 77
----
-34

skipif mysql # not compatible
query I rowsort label-5628
SELECT ALL COUNT ( * ) * 43 - 77
----
-34

onlyif mysql # DIV for integer division: 
query II rowsort label-5629
SELECT DISTINCT + 11 col1, 50 DIV + - 5 + - 76 AS col1
----
11
-86

skipif mysql # not compatible
query II rowsort label-5629
SELECT DISTINCT + 11 col1, 50 / + - 5 + - 76 AS col1
----
11
-86

query I rowsort
SELECT + 26 * + + 58
----
1508

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5631
SELECT CASE CAST( + + 68 AS SIGNED ) WHEN + 70 THEN + AVG ( DISTINCT 15 ) + + 89 * - 6 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5631
SELECT CASE CAST ( + + 68 AS INTEGER ) WHEN + 70 THEN + AVG ( DISTINCT 15 ) + + 89 * - 6 ELSE NULL END
----
NULL

query II rowsort
SELECT ALL + 94, + 65 * + 49 AS col0
----
94
3185

query I rowsort
SELECT ALL 66 * - 35 AS col0
----
-2310

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5634
SELECT - CAST( NULL AS DECIMAL ) AS col0, + MAX( DISTINCT - - 96 )
----
NULL
96

skipif mysql # not compatible
query II rowsort label-5634
SELECT - CAST ( NULL AS REAL ) AS col0, + MAX ( DISTINCT - - 96 )
----
NULL
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5635
SELECT ALL NULLIF ( NULLIF ( - + 93, + + 31 ), COUNT( * ) * - - 83 )
----
-93

skipif mysql # not compatible
query I rowsort label-5635
SELECT ALL NULLIF ( NULLIF ( - + 93, + + 31 ), COUNT ( * ) * - - 83 )
----
-93

query I rowsort
SELECT 87 * 33
----
2871

query I rowsort
SELECT 58 - - 59 AS col0
----
117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5638
SELECT 95, + 49 * + 71 + 7 + - 4 + - COUNT( DISTINCT - CAST( 18 AS SIGNED ) ) * COUNT( * ) AS col0
----
95
3481

skipif mysql # not compatible
query II rowsort label-5638
SELECT 95, + 49 * + 71 + 7 + - 4 + - COUNT ( DISTINCT - CAST ( 18 AS INTEGER ) ) * COUNT ( * ) AS col0
----
95
3481

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5639
SELECT ALL 54 DIV - - COUNT( * ) col2
----
54

skipif mysql # not compatible
query I rowsort label-5639
SELECT ALL 54 / - - COUNT ( * ) col2
----
54

query I rowsort
SELECT + 17 * 45 + - - ( + 49 )
----
814

query II rowsort
SELECT - 79 AS col1, 54 col1
----
-79
54

onlyif mysql # DIV for integer division: 
query I rowsort label-5642
SELECT 19 DIV - ( - 14 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5642
SELECT 19 / - ( - 14 ) AS col2
----
1

query I rowsort
SELECT DISTINCT - 61 * - 80 AS col2
----
4880

onlyif mysql # aggregate syntax: 
query II rowsort label-5644
SELECT ALL + COALESCE ( + - 91, - COUNT( * ) ) + ( - ( - 88 ) ) AS col0, - 62 AS col2
----
-3
-62

skipif mysql # not compatible
query II rowsort label-5644
SELECT ALL + COALESCE ( + - 91, - COUNT ( * ) ) + ( - ( - 88 ) ) AS col0, - 62 AS col2
----
-3
-62

query I rowsort
SELECT 16 - - 27
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-5646
SELECT - 24 DIV + - 14 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5646
SELECT - 24 / + - 14 AS col0
----
1

query I rowsort
SELECT ALL + 15 + 83
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5648
SELECT 95 + 51 + - + 56 * - - ( - COUNT( * ) ) DIV - 91
----
146

skipif mysql # not compatible
query I rowsort label-5648
SELECT 95 + 51 + - + 56 * - - ( - COUNT ( * ) ) / - 91
----
146

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5649
SELECT 41 + - 88 * - CAST( + CASE + 74 WHEN - ( + 49 ) / + 66 + + + 59 THEN + 16 + - 79 END AS SIGNED ) * - + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-5649
SELECT 41 + - 88 * - CAST ( + CASE + 74 WHEN - ( + 49 ) / + 66 + + + 59 THEN + 16 + - 79 END AS INTEGER ) * - + 29
----
NULL

query I rowsort
SELECT 85 - - 45 * + ( - 64 ) * + 30
----
-86315

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5651
SELECT DISTINCT - + 98 + + ( + 73 ) - - COUNT( * ) * - - 95 * 35 * 7 + - + 53 DIV + ( + 50 )
----
23249

skipif mysql # not compatible
query I rowsort label-5651
SELECT DISTINCT - + 98 + + ( + 73 ) - - COUNT ( * ) * - - 95 * 35 * 7 + - + 53 / + ( + 50 )
----
23249

query II rowsort
SELECT + 90 col0, 55
----
90
55

query I rowsort
SELECT ALL - 99 + 69
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-5654
SELECT 93 * - MAX( 94 ) * + 23 + - 97 AS col1
----
-201163

skipif mysql # not compatible
query I rowsort label-5654
SELECT 93 * - MAX ( 94 ) * + 23 + - 97 AS col1
----
-201163

query II rowsort
SELECT ALL - + 0 AS col2, 79
----
0
79

onlyif mysql # DIV for integer division: 
query I rowsort label-5656
SELECT ALL - 38 - - 36 + - 72 DIV COALESCE ( - 97, + + 14 ) + - + 79
----
-81

skipif mysql # not compatible
query I rowsort label-5656
SELECT ALL - 38 - - 36 + - 72 / COALESCE ( - 97, + + 14 ) + - + 79
----
-81

query II rowsort
SELECT + 2 AS col1, + 78 * - 91 * - + 87 + + 3
----
2
617529

query II rowsort
SELECT - 14, 4 AS col2
----
-14
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5659
SELECT - 35 * + - 67 * - 8 + + NULLIF ( - - ( - 81 ), - 59 * + 87 + - + 90 + + + 38 + + SUM( 91 ) * - 65 + - ( - COUNT( * ) ) + - 39 + - 86 + - 5 + - 48 + - MAX( ALL - 52 ) + CASE - 48 WHEN COUNT( * ) THEN NULL WHEN NULLIF ( + - ( 59 ), 80 ) THEN + - 57 WHEN + 84 THEN 34 END + - + 41 / 70 * 63 ) * + 3 AS col1
----
-19003

skipif mysql # not compatible
query I rowsort label-5659
SELECT - 35 * + - 67 * - 8 + + NULLIF ( - - ( - 81 ), - 59 * + 87 + - + 90 + + + 38 + + SUM ( 91 ) * - 65 + - ( - COUNT ( * ) ) + - 39 + - 86 + - 5 + - 48 + - MAX ( ALL - 52 ) + CASE - 48 WHEN COUNT ( * ) THEN NULL WHEN NULLIF ( + - ( 59 ), 80 ) THEN + - 57 WHEN + 84 THEN 34 END + - + 41 / 70 * 63 ) * + 3 AS col1
----
-19003

onlyif mysql # aggregate syntax: 
query I rowsort label-5660
SELECT ( + ( COUNT( * ) ) ) * + 86 + 9 AS col1
----
95

skipif mysql # not compatible
query I rowsort label-5660
SELECT ( + ( COUNT ( * ) ) ) * + 86 + 9 AS col1
----
95

query II rowsort
SELECT 59 + + 34, 5 AS col0
----
93
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5662
SELECT ALL - SUM( - 32 ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-5662
SELECT ALL - SUM ( - 32 ) AS col1
----
32

query I rowsort
SELECT 68 + 49
----
117

query II rowsort
SELECT DISTINCT 90 * - 84 AS col1, 26 AS col0
----
-7560
26

query I rowsort
SELECT DISTINCT 8 * + 86 AS col0
----
688

query I rowsort
SELECT ALL 13 * 5 * - 87 AS col2
----
-5655

query I rowsort
SELECT 3 - - ( 62 ) AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5668
SELECT ALL 83 + 68 * - COUNT( * )
----
15

skipif mysql # not compatible
query I rowsort label-5668
SELECT ALL 83 + 68 * - COUNT ( * )
----
15

query I rowsort
SELECT 93 + - 64 - + - 54 * COALESCE ( + - 78, - - 24 )
----
-4183

onlyif mysql # aggregate syntax: 
query I rowsort label-5670
SELECT ALL MAX( ALL + - 80 ) col2
----
-80

skipif mysql # not compatible
query I rowsort label-5670
SELECT ALL MAX ( ALL + - 80 ) col2
----
-80

query I rowsort
SELECT DISTINCT - 93 + 29 + ( - 83 )
----
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-5672
SELECT ALL COUNT( * ) + 17 * - 77
----
-1308

skipif mysql # not compatible
query I rowsort label-5672
SELECT ALL COUNT ( * ) + 17 * - 77
----
-1308

onlyif mysql # aggregate syntax: 
query I rowsort label-5673
SELECT 31 + + + COUNT( * ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-5673
SELECT 31 + + + COUNT ( * ) AS col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5674
SELECT ALL MIN( DISTINCT - 32 ) + - 53 AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-5674
SELECT ALL MIN ( DISTINCT - 32 ) + - 53 AS col0
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5675
SELECT 8 + + CASE WHEN NOT 54 <> - 60 THEN + - 39 + - 15 ELSE - ( - 75 ) + + 4 END, - CAST( NULL AS SIGNED ) AS col2
----
87
NULL

skipif mysql # not compatible
query II rowsort label-5675
SELECT 8 + + CASE WHEN NOT 54 <> - 60 THEN + - 39 + - 15 ELSE - ( - 75 ) + + 4 END, - CAST ( NULL AS INTEGER ) AS col2
----
87
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5676
SELECT + MIN( DISTINCT + 70 ) + + + 37 + + 38 + + 82 * - 73 AS col2
----
-5841

skipif mysql # not compatible
query I rowsort label-5676
SELECT + MIN ( DISTINCT + 70 ) + + + 37 + + 38 + + 82 * - 73 AS col2
----
-5841

query I rowsort
SELECT 10 * + 18 * - 28
----
-5040

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5678
SELECT + COUNT( * ) + 79 DIV - 50 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5678
SELECT + COUNT ( * ) + 79 / - 50 AS col2
----
0

query I rowsort
SELECT DISTINCT 27 + - + 9 * + 3 * - 58 col0
----
1593

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5680
SELECT ALL - 3 + - 97 + - CAST( 70 AS SIGNED ) DIV + - 76 * + - 91
----
-100

skipif mysql # not compatible
query I rowsort label-5680
SELECT ALL - 3 + - 97 + - CAST ( 70 AS INTEGER ) / + - 76 * + - 91
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-5681
SELECT ALL + COUNT( * ) + - 49 AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-5681
SELECT ALL + COUNT ( * ) + - 49 AS col1
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-5682
SELECT + COUNT( * ) * - 50 AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-5682
SELECT + COUNT ( * ) * - 50 AS col1
----
-50

query I rowsort
SELECT - 24 + + - 77 AS col2
----
-101

query I rowsort
SELECT DISTINCT 94 - 82
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5685
SELECT 56 * + 14 + + - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5685
SELECT 56 * + 14 + + - CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5686
SELECT - 65 * - + COUNT( ALL + 85 ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-5686
SELECT - 65 * - + COUNT ( ALL + 85 ) AS col1
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-5687
SELECT DISTINCT - - ( - 16 ) AS col2, 64 * - NULLIF ( 30, - 30 * - 41 * + 47 ) * + 73 - - 94 + + ( COUNT( * ) )
----
-16
-140065

skipif mysql # not compatible
query II rowsort label-5687
SELECT DISTINCT - - ( - 16 ) AS col2, 64 * - NULLIF ( 30, - 30 * - 41 * + 47 ) * + 73 - - 94 + + ( COUNT ( * ) )
----
-16
-140065

query I rowsort
SELECT - 33 * - 89 - - 29 AS col2
----
2966

onlyif mysql # aggregate syntax: 
query I rowsort label-5689
SELECT + COUNT( ALL - 72 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5689
SELECT + COUNT ( ALL - 72 ) AS col0
----
1

query II rowsort
SELECT ALL 72 * - + 97 - - + 7, 30 * - 85 AS col2
----
-6977
-2550

onlyif mysql # aggregate syntax: 
query I rowsort label-5691
SELECT COUNT( DISTINCT - 27 ) * 75 * + - 9 AS col2
----
-675

skipif mysql # not compatible
query I rowsort label-5691
SELECT COUNT ( DISTINCT - 27 ) * 75 * + - 9 AS col2
----
-675

onlyif mysql # aggregate syntax: 
query I rowsort label-5692
SELECT 69 * - 24 + - COUNT( * )
----
-1657

skipif mysql # not compatible
query I rowsort label-5692
SELECT 69 * - 24 + - COUNT ( * )
----
-1657

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5693
SELECT + 28 DIV + - 15 + + 54 + - 43 * - 10 * SUM( + 1 )
----
483

skipif mysql # not compatible
query I rowsort label-5693
SELECT + 28 / + - 15 + + 54 + - 43 * - 10 * SUM ( + 1 )
----
483

query I rowsort
SELECT ALL + 78 * + 29 * 63
----
142506

query I rowsort
SELECT DISTINCT + 97 * + 15
----
1455

onlyif mysql # aggregate syntax: 
query I rowsort label-5696
SELECT - 49 + + + COUNT( * ) * - 36 - + 91
----
-176

skipif mysql # not compatible
query I rowsort label-5696
SELECT - 49 + + + COUNT ( * ) * - 36 - + 91
----
-176

onlyif mysql # aggregate syntax: 
query I rowsort label-5697
SELECT ALL + NULLIF ( - 57, 22 * 42 - - - COUNT( * ) + 44 * + 62 - - 61 )
----
-57

skipif mysql # not compatible
query I rowsort label-5697
SELECT ALL + NULLIF ( - 57, 22 * 42 - - - COUNT ( * ) + 44 * + 62 - - 61 )
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-5698
SELECT COUNT( * ), AVG ( ALL + CASE - 91 WHEN 49 * CASE - 52 WHEN 64 THEN - + 32 WHEN - + 2 THEN NULL END + - + 6 THEN 41 WHEN - 52 THEN NULL ELSE NULL END ) AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-5698
SELECT COUNT ( * ), AVG ( ALL + CASE - 91 WHEN 49 * CASE - 52 WHEN 64 THEN - + 32 WHEN - + 2 THEN NULL END + - + 6 THEN 41 WHEN - 52 THEN NULL ELSE NULL END ) AS col2
----
1
NULL

query I rowsort
SELECT 43 * - 41 + + 69 * - 83
----
-7490

query I rowsort
SELECT ALL - 6 + 67 AS col0
----
61

query I rowsort
SELECT ALL + 79 + 41 * + 64
----
2703

onlyif mysql # DIV for integer division: 
query I rowsort label-5702
SELECT DISTINCT + 34 DIV 18
----
1

skipif mysql # not compatible
query I rowsort label-5702
SELECT DISTINCT + 34 / 18
----
1

query I rowsort
SELECT ALL 59 + - 72
----
-13

query I rowsort
SELECT ALL - 7 + + - 74 AS col2
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5705
SELECT ALL ( 80 ) * - 95 + + + 76 * + COUNT( * ) * - ( + - 70 )
----
-2280

skipif mysql # not compatible
query I rowsort label-5705
SELECT ALL ( 80 ) * - 95 + + + 76 * + COUNT ( * ) * - ( + - 70 )
----
-2280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5706
SELECT DISTINCT + COUNT( * ) * - + COALESCE ( + NULLIF ( 58, - + 94 ), - CASE 31 WHEN + CAST( + + 89 AS SIGNED ) + 41 + + 52 THEN - ( - 76 ) * + NULLIF ( - + 47, - - COUNT( * ) * + 33 + 41 + + 0 ) ELSE + MIN( DISTINCT 37 ) + + ( + + 27 ) * - 33 * - - CAST( NULL AS SIGNED ) END, + 44 ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-5706
SELECT DISTINCT + COUNT ( * ) * - + COALESCE ( + NULLIF ( 58, - + 94 ), - CASE 31 WHEN + CAST ( + + 89 AS INTEGER ) + 41 + + 52 THEN - ( - 76 ) * + NULLIF ( - + 47, - - COUNT ( * ) * + 33 + 41 + + 0 ) ELSE + MIN ( DISTINCT 37 ) + + ( + + 27 ) * - 33 * - - CAST ( NULL AS INTEGER ) END, + 44 ) AS col2
----
-58

query I rowsort
SELECT - + 93 + 1 * - 0
----
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5708
SELECT ALL - COALESCE ( - 94, + MIN( 62 ) DIV - 28 )
----
94

skipif mysql # not compatible
query I rowsort label-5708
SELECT ALL - COALESCE ( - 94, + MIN ( 62 ) / - 28 )
----
94

query I rowsort
SELECT ALL 16 - + + 77 AS col2
----
-61

query I rowsort
SELECT + 99 - + + 40 AS col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5711
SELECT ALL + MAX( + 63 )
----
63

skipif mysql # not compatible
query I rowsort label-5711
SELECT ALL + MAX ( + 63 )
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5712
SELECT ALL + CAST( + COUNT( * ) AS SIGNED ) - 88 AS col2, COUNT( * )
----
-87
1

skipif mysql # not compatible
query II rowsort label-5712
SELECT ALL + CAST ( + COUNT ( * ) AS INTEGER ) - 88 AS col2, COUNT ( * )
----
-87
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5713
SELECT + COUNT( * ) + + - 53 AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-5713
SELECT + COUNT ( * ) + + - 53 AS col2
----
-52

query I rowsort
SELECT ALL + ( - 81 ) AS col0
----
-81

query I rowsort
SELECT + 88 * COALESCE ( - 79, 67 ) * 74 + - 41 - + - 60 AS col2
----
-514429

onlyif mysql # aggregate syntax: 
query I rowsort label-5716
SELECT ALL 46 * + SUM( ALL - + 81 ) AS col1
----
-3726

skipif mysql # not compatible
query I rowsort label-5716
SELECT ALL 46 * + SUM ( ALL - + 81 ) AS col1
----
-3726

onlyif mysql # DIV for integer division: 
query I rowsort label-5717
SELECT + 15 DIV + 85
----
0

skipif mysql # not compatible
query I rowsort label-5717
SELECT + 15 / + 85
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5718
SELECT ALL + 33 AS col0, 15 + - 15 * + ( + + 73 ) * + COUNT( * ) AS col0
----
33
-1080

skipif mysql # not compatible
query II rowsort label-5718
SELECT ALL + 33 AS col0, 15 + - 15 * + ( + + 73 ) * + COUNT ( * ) AS col0
----
33
-1080

onlyif mysql # aggregate syntax: 
query I rowsort label-5719
SELECT DISTINCT + NULLIF ( - 31, - CASE + - 82 WHEN COUNT( * ) THEN NULL WHEN - 14 THEN + 58 END )
----
-31

skipif mysql # not compatible
query I rowsort label-5719
SELECT DISTINCT + NULLIF ( - 31, - CASE + - 82 WHEN COUNT ( * ) THEN NULL WHEN - 14 THEN + 58 END )
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-5720
SELECT + 24 DIV - 9 + + + 89
----
87

skipif mysql # not compatible
query I rowsort label-5720
SELECT + 24 / - 9 + + + 89
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5721
SELECT ALL + COUNT( * ) DIV - 75 * + 48
----
0

skipif mysql # not compatible
query I rowsort label-5721
SELECT ALL + COUNT ( * ) / - 75 * + 48
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5722
SELECT + NULLIF ( + COUNT( * ), - MAX( DISTINCT + 66 ) ) * 64 AS col1
----
64

skipif mysql # not compatible
query I rowsort label-5722
SELECT + NULLIF ( + COUNT ( * ), - MAX ( DISTINCT + 66 ) ) * 64 AS col1
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5723
SELECT ALL 80 * COALESCE ( 85, 21 * 88 + CAST( NULL AS SIGNED ) ) + - 66 + 60 * 37 * - CASE + 51 WHEN - + ( 2 ) + + 88 * 26 THEN + 25 ELSE NULL END * + - 26 + + NULLIF ( + COALESCE ( + + 95, + 77 + - COUNT( * ) ), 47 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5723
SELECT ALL 80 * COALESCE ( 85, 21 * 88 + CAST ( NULL AS INTEGER ) ) + - 66 + 60 * 37 * - CASE + 51 WHEN - + ( 2 ) + + 88 * 26 THEN + 25 ELSE NULL END * + - 26 + + NULLIF ( + COALESCE ( + + 95, + 77 + - COUNT ( * ) ), 47 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5724
SELECT + COUNT( * ) + + 92 - - 59 DIV + 32
----
94

skipif mysql # not compatible
query I rowsort label-5724
SELECT + COUNT ( * ) + + 92 - - 59 / + 32
----
94

query I rowsort
SELECT ( + + 15 )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5726
SELECT 11 * - COUNT( * ) + - + 20
----
-31

skipif mysql # not compatible
query I rowsort label-5726
SELECT 11 * - COUNT ( * ) + - + 20
----
-31

query II rowsort
SELECT ( + 46 ), 57 * + 74 AS col1
----
46
4218

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5728
SELECT - 1 * CAST( NULL AS SIGNED ) AS col0, 94
----
NULL
94

skipif mysql # not compatible
query II rowsort label-5728
SELECT - 1 * CAST ( NULL AS INTEGER ) AS col0, 94
----
NULL
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5729
SELECT DISTINCT + MAX( DISTINCT - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5729
SELECT DISTINCT + MAX ( DISTINCT - CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT + 70 AS col0, 14 * + - 58 * 26 * - 94 AS col0
----
70
1984528

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5731
SELECT ALL + COUNT( * ) * SUM( DISTINCT + + 87 ) DIV - + MAX( DISTINCT - 42 )
----
2

skipif mysql # not compatible
query I rowsort label-5731
SELECT ALL + COUNT ( * ) * SUM ( DISTINCT + + 87 ) / - + MAX ( DISTINCT - 42 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5732
SELECT - 65 + - + 8 + - - 30 + + - ( + COUNT( * ) ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-5732
SELECT - 65 + - + 8 + - - 30 + + - ( + COUNT ( * ) ) AS col0
----
-44

query I rowsort
SELECT 48 * - 47 + + 87 AS col2
----
-2169

query I rowsort
SELECT ALL + 48 * - - 81
----
3888

query I rowsort
SELECT + + 47 + 39 AS col2
----
86

query I rowsort
SELECT - ( - 22 ) + 27
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5737
SELECT 35 AS col0, CAST( 95 AS SIGNED )
----
35
95

skipif mysql # not compatible
query II rowsort label-5737
SELECT 35 AS col0, CAST ( 95 AS INTEGER )
----
35
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5738
SELECT - 31 + + 9 - - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5738
SELECT - 31 + + 9 - - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5739
SELECT ALL - 11 * + 24 - 59 DIV - 77 AS col2
----
-264

skipif mysql # not compatible
query I rowsort label-5739
SELECT ALL - 11 * + 24 - 59 / - 77 AS col2
----
-264

onlyif mysql # aggregate syntax: 
query II rowsort label-5740
SELECT - - 6 + - - COUNT( * ) AS col1, + 84 * + ( - + 48 ) - - 22 + + COUNT( * ) AS col2
----
7
-4009

skipif mysql # not compatible
query II rowsort label-5740
SELECT - - 6 + - - COUNT ( * ) AS col1, + 84 * + ( - + 48 ) - - 22 + + COUNT ( * ) AS col2
----
7
-4009

query I rowsort
SELECT ALL - + 24 - - 92 * + + 24
----
2184

onlyif mysql # aggregate syntax: 
query I rowsort label-5742
SELECT - + 89 * + COUNT( * ) AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-5742
SELECT - + 89 * + COUNT ( * ) AS col1
----
-89

query I rowsort
SELECT - + 31 + - - 86 AS col2
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5744
SELECT - - 20 * - ( - CAST( NULL AS SIGNED ) ) * - 80 - 18 - + - 26 / 39 * - 86 + - CASE - COUNT( * ) WHEN + + 91 * + 55 * + + MIN( + 70 ) * + ( - 2 ) THEN 30 + - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5744
SELECT - - 20 * - ( - CAST ( NULL AS INTEGER ) ) * - 80 - 18 - + - 26 / 39 * - 86 + - CASE - COUNT ( * ) WHEN + + 91 * + 55 * + + MIN ( + 70 ) * + ( - 2 ) THEN 30 + - COUNT ( * ) END
----
NULL

query I rowsort
SELECT - - 15 * 32 AS col0
----
480

query II rowsort
SELECT ALL - 37 AS col2, - 86
----
-37
-86

query I rowsort
SELECT ALL - + COALESCE ( - 35, - 54 + + 62 * - + 50, - 52 * + ( 61 ) ) * + 11 AS col2
----
385

query II rowsort
SELECT 90 col1, - 90 AS col1
----
90
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-5749
SELECT + COUNT( * ) + 77 col2
----
78

skipif mysql # not compatible
query I rowsort label-5749
SELECT + COUNT ( * ) + 77 col2
----
78

query I rowsort
SELECT - 72 * 31 AS col2
----
-2232

query I rowsort
SELECT + 47 + - COALESCE ( - 75, + 16 )
----
122

query I rowsort
SELECT ALL + 59 * + 87
----
5133

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5753
SELECT - MIN( - 51 ) * - 17 + - - 71 col2, 82 DIV ( - + CASE WHEN NOT 19 <= + 60 THEN + 98 ELSE - - 89 + - 52 * - 50 END ) * + COUNT( * )
----
-796
0

skipif mysql # not compatible
query II rowsort label-5753
SELECT - MIN ( - 51 ) * - 17 + - - 71 col2, 82 / ( - + CASE WHEN NOT 19 <= + 60 THEN + 98 ELSE - - 89 + - 52 * - 50 END ) * + COUNT ( * )
----
-796
0

query I rowsort
SELECT + 56 * + 52
----
2912

query I rowsort
SELECT + 60 + - 72 * - 99 AS col1
----
7188

onlyif mysql # aggregate syntax: 
query II rowsort label-5756
SELECT DISTINCT + ( 59 ) * - 33 * 73 AS col1, - COUNT( * ) AS col0
----
-142131
-1

skipif mysql # not compatible
query II rowsort label-5756
SELECT DISTINCT + ( 59 ) * - 33 * 73 AS col1, - COUNT ( * ) AS col0
----
-142131
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5757
SELECT CAST( + - 42 AS SIGNED ) + - 70 AS col1
----
-112

skipif mysql # not compatible
query I rowsort label-5757
SELECT CAST ( + - 42 AS INTEGER ) + - 70 AS col1
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-5758
SELECT - NULLIF ( + + 30, 20 + - - 6 + - 26 - + - 52 / - + SUM( ALL - 22 ) ) col1
----
-30

skipif mysql # not compatible
query I rowsort label-5758
SELECT - NULLIF ( + + 30, 20 + - - 6 + - 26 - + - 52 / - + SUM ( ALL - 22 ) ) col1
----
-30

query I rowsort
SELECT DISTINCT 67 + - - 39 AS col2
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-5760
SELECT 62 - - 5 - + + COUNT( * )
----
66

skipif mysql # not compatible
query I rowsort label-5760
SELECT 62 - - 5 - + + COUNT ( * )
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-5761
SELECT - 38 DIV + + 49 + - - 56 + + 33 * + 83 AS col1
----
2795

skipif mysql # not compatible
query I rowsort label-5761
SELECT - 38 / + + 49 + - - 56 + + 33 * + 83 AS col1
----
2795

query I rowsort
SELECT DISTINCT 31 + - + 10 AS col0
----
21

query I rowsort
SELECT 13 + - 22 AS col1
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5764
SELECT ALL SUM( DISTINCT + CAST( NULL AS SIGNED ) ) + + - 54 * + + 80 * - - 63 + - 26 + + 16 / + + 39 * + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-5764
SELECT ALL SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) + + - 54 * + + 80 * - - 63 + - 26 + + 16 / + + 39 * + 59
----
NULL

query III rowsort
SELECT DISTINCT 95 + - 27 AS col1, + 70 AS col1, 45 col2
----
68
70
45

query I rowsort
SELECT DISTINCT 77 + + 80
----
157

query I rowsort
SELECT DISTINCT 89 * - 14 AS col1
----
-1246

query I rowsort
SELECT 87 * ( + 93 )
----
8091

query II rowsort
SELECT 28 + - 13 AS col1, + 45 AS col0
----
15
45

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5770
SELECT ALL ( + 42 ) - + 34, + CAST( 87 AS SIGNED ) + - 22 + + 1 AS col1
----
8
66

skipif mysql # not compatible
query II rowsort label-5770
SELECT ALL ( + 42 ) - + 34, + CAST ( 87 AS INTEGER ) + - 22 + + 1 AS col1
----
8
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5771
SELECT ALL + COUNT( * ) - + + COALESCE ( - + 86, + + 74 )
----
87

skipif mysql # not compatible
query I rowsort label-5771
SELECT ALL + COUNT ( * ) - + + COALESCE ( - + 86, + + 74 )
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5772
SELECT DISTINCT + 82 * - CAST( NULL AS SIGNED ) * 76 + + 26 / + 27 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5772
SELECT DISTINCT + 82 * - CAST ( NULL AS INTEGER ) * 76 + + 26 / + 27 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 71 * ( + 41 ) AS col1
----
-2911

onlyif mysql # aggregate syntax: 
query I rowsort label-5774
SELECT - 34 - 36 * - 42 * 33 + - 16 + + 81 - COUNT( * ) * 8 - - 61 * COUNT( * ) AS col1
----
49980

skipif mysql # not compatible
query I rowsort label-5774
SELECT - 34 - 36 * - 42 * 33 + - 16 + + 81 - COUNT ( * ) * 8 - - 61 * COUNT ( * ) AS col1
----
49980

query I rowsort
SELECT 64 + - 42 * 4
----
-104

query I rowsort
SELECT - 61 + 48 + + - 44 AS col1
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-5777
SELECT - - MAX( ALL + ( ( - ( 20 ) ) ) )
----
-20

skipif mysql # not compatible
query I rowsort label-5777
SELECT - - MAX ( ALL + ( ( - ( 20 ) ) ) )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-5778
SELECT ALL COUNT( + + 85 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-5778
SELECT ALL COUNT ( + + 85 ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5779
SELECT 85 * - ( MIN( + ( - + 28 ) ) ) + - + COUNT( * ) AS col2
----
2379

skipif mysql # not compatible
query I rowsort label-5779
SELECT 85 * - ( MIN ( + ( - + 28 ) ) ) + - + COUNT ( * ) AS col2
----
2379

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5780
SELECT ALL - CAST( + 31 AS SIGNED ) col2
----
-31

skipif mysql # not compatible
query I rowsort label-5780
SELECT ALL - CAST ( + 31 AS INTEGER ) col2
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5781
SELECT ALL - + 21 + + + 10 + + - COUNT( * ) - - + 85 + + 69 - + 68 DIV - COALESCE ( + 5, + AVG ( - 17 ) * - - ( + 45 ) * - 69, + 92 * + 93 ) AS col2
----
155

skipif mysql # not compatible
query I rowsort label-5781
SELECT ALL - + 21 + + + 10 + + - COUNT ( * ) - - + 85 + + 69 - + 68 / - COALESCE ( + 5, + AVG ( - 17 ) * - - ( + 45 ) * - 69, + 92 * + 93 ) AS col2
----
155

query I rowsort
SELECT 34 - - 68
----
102

onlyif mysql # DIV for integer division: 
query I rowsort label-5783
SELECT 64 DIV + 41 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5783
SELECT 64 / + 41 AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5784
SELECT DISTINCT - - CAST( - - CAST( 23 AS SIGNED ) AS SIGNED ) DIV - CAST( - + CAST( - 64 AS SIGNED ) AS SIGNED ) * MAX( DISTINCT + 11 ) + + 91 * - 16 + + 51 + - 58 + - 18 AS col2
----
-1481

skipif mysql # not compatible
query I rowsort label-5784
SELECT DISTINCT - - CAST ( - - CAST ( 23 AS INTEGER ) AS INTEGER ) / - CAST ( - + CAST ( - 64 AS INTEGER ) AS INTEGER ) * MAX ( DISTINCT + 11 ) + + 91 * - 16 + + 51 + - 58 + - 18 AS col2
----
-1481

query II rowsort
SELECT 13 + 51 * + 24 col1, + 9 * + 19 * - 9
----
1237
-1539

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5786
SELECT 62 + 21 + + 31 + 29 * + + 36 / 79 + + - ( CASE + CAST( + COUNT( * ) AS SIGNED ) WHEN COALESCE ( - COUNT( * ), COUNT( * ) ) THEN NULL WHEN - 9 THEN + COALESCE ( + 77, + 51 ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-5786
SELECT 62 + 21 + + 31 + 29 * + + 36 / 79 + + - ( CASE + CAST ( + COUNT ( * ) AS INTEGER ) WHEN COALESCE ( - COUNT ( * ), COUNT ( * ) ) THEN NULL WHEN - 9 THEN + COALESCE ( + 77, + 51 ) END )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5787
SELECT NULLIF ( - 86, COUNT( * ) - + COUNT( * ) + 63 ) * - - 94, - 81 * - 49 AS col1
----
-8084
3969

skipif mysql # not compatible
query II rowsort label-5787
SELECT NULLIF ( - 86, COUNT ( * ) - + COUNT ( * ) + 63 ) * - - 94, - 81 * - 49 AS col1
----
-8084
3969

query II rowsort
SELECT 7 - 74 * 74, 67 AS col1
----
-5469
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5789
SELECT ALL - COUNT( * ) * 45 AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-5789
SELECT ALL - COUNT ( * ) * 45 AS col0
----
-45

query I rowsort
SELECT DISTINCT + 65 * + 47
----
3055

query II rowsort
SELECT 30, 16 AS col2
----
30
16

query II rowsort
SELECT ALL - 58 AS col1, 69 AS col2
----
-58
69

query I rowsort
SELECT 93 * - 70
----
-6510

query I rowsort
SELECT DISTINCT - 75 + + + 87
----
12

query I rowsort
SELECT 93 + 65 AS col2
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-5796
SELECT 96 * + CASE + - 15 WHEN - COUNT( * ) THEN + - COUNT( * ) / - COUNT( * ) / + 65 + - + 61 * - 4 * + + 29 + - COALESCE ( CASE + - 1 WHEN ( + 0 ) - COUNT( * ) THEN + 20 WHEN - 59 THEN NULL WHEN + 36 - - 81 THEN NULL ELSE - NULLIF ( + + 38, + - COALESCE ( 33, 78, + - 4 ) ) END, - 77 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5796
SELECT 96 * + CASE + - 15 WHEN - COUNT ( * ) THEN + - COUNT ( * ) / - COUNT ( * ) / + 65 + - + 61 * - 4 * + + 29 + - COALESCE ( CASE + - 1 WHEN ( + 0 ) - COUNT ( * ) THEN + 20 WHEN - 59 THEN NULL WHEN + 36 - - 81 THEN NULL ELSE - NULLIF ( + + 38, + - COALESCE ( 33, 78, + - 4 ) ) END, - 77 ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5797
SELECT ALL - 76 AS col0, - 9 + - 30 - + + CASE COUNT( + CAST( - 76 AS SIGNED ) ) WHEN + COUNT( * ) THEN - 88 WHEN - 75 + + ( + + 5 ) + 66 THEN - ( - 14 ) * + 51 + 33 END
----
-76
49

skipif mysql # not compatible
query II rowsort label-5797
SELECT ALL - 76 AS col0, - 9 + - 30 - + + CASE COUNT ( + CAST ( - 76 AS INTEGER ) ) WHEN + COUNT ( * ) THEN - 88 WHEN - 75 + + ( + + 5 ) + 66 THEN - ( - 14 ) * + 51 + 33 END
----
-76
49

query I rowsort
SELECT DISTINCT 35 * + 6
----
210

query I rowsort
SELECT - 95 * + 94 + 61 * - - 10 + - 73 AS col0
----
-8393

query I rowsort
SELECT 21 * + + 45 * + + 54 * + 54 * + 58 AS col1
----
159825960

query I rowsort
SELECT 7 + 74
----
81

query I rowsort
SELECT ALL - 33 - + 0 AS col2
----
-33

query I rowsort
SELECT 87 + - 50 AS col0
----
37

query II rowsort
SELECT + 43, + 64 - 27 AS col1
----
43
37

query I rowsort
SELECT - 32 + - + 76
----
-108

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5806
SELECT ALL - 20 AS col2, + 1 / CAST( NULL AS DECIMAL )
----
-20
NULL

skipif mysql # not compatible
query II rowsort label-5806
SELECT ALL - 20 AS col2, + 1 / CAST ( NULL AS REAL )
----
-20
NULL

query I rowsort
SELECT 79 * 55
----
4345

query II rowsort
SELECT + 15 + - 38 - + - 17, 17 col2
----
-6
17

onlyif mysql # aggregate syntax: 
query I rowsort label-5809
SELECT DISTINCT + COUNT( DISTINCT + 74 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5809
SELECT DISTINCT + COUNT ( DISTINCT + 74 ) AS col1
----
1

query I rowsort
SELECT + 59 * + 23 AS col0
----
1357

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5811
SELECT COUNT( * ) * - CASE + ( + 76 ) WHEN - - 73 THEN NULL WHEN - CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) + - 10 THEN 56 ELSE NULL END + 32 * + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-5811
SELECT COUNT ( * ) * - CASE + ( + 76 ) WHEN - - 73 THEN NULL WHEN - CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) + - 10 THEN 56 ELSE NULL END + 32 * + 68
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5812
SELECT + 82 + + 96 + + 12 * + - 52 * NULLIF ( 86, + COUNT( * ) + 0 ) AS col0
----
-53486

skipif mysql # not compatible
query I rowsort label-5812
SELECT + 82 + + 96 + + 12 * + - 52 * NULLIF ( 86, + COUNT ( * ) + 0 ) AS col0
----
-53486

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5813
SELECT DISTINCT CAST( - CASE + 71 WHEN - 27 THEN + - 38 * - 86 / + - COUNT( * ) ELSE NULL END AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5813
SELECT DISTINCT CAST ( - CASE + 71 WHEN - 27 THEN + - 38 * - 86 / + - COUNT ( * ) ELSE NULL END AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5814
SELECT + 95 + 73 DIV + 75
----
95

skipif mysql # not compatible
query I rowsort label-5814
SELECT + 95 + 73 / + 75
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5815
SELECT DISTINCT + 66 + - COUNT( * )
----
65

skipif mysql # not compatible
query I rowsort label-5815
SELECT DISTINCT + 66 + - COUNT ( * )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5816
SELECT - COUNT( + 49 )
----
-1

skipif mysql # not compatible
query I rowsort label-5816
SELECT - COUNT ( + 49 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5817
SELECT + 62 * 59 + + COUNT( * ) AS col0
----
3659

skipif mysql # not compatible
query I rowsort label-5817
SELECT + 62 * 59 + + COUNT ( * ) AS col0
----
3659

query I rowsort
SELECT ALL + 16 * - - 38
----
608

query I rowsort
SELECT - 85 + - 77 AS col2
----
-162

query I rowsort
SELECT DISTINCT + 79 + - 12
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5821
SELECT DISTINCT 20 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5821
SELECT DISTINCT 20 + + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 61 + - 78 AS col2
----
-139

query I rowsort
SELECT DISTINCT + 7 + - 69 AS col0
----
-62

query I rowsort
SELECT - 66 + - - 22 AS col0
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-5825
SELECT - 25 DIV - 2
----
12

skipif mysql # not compatible
query I rowsort label-5825
SELECT - 25 / - 2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5826
SELECT ALL - 62 - MIN( ALL + 3 ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-5826
SELECT ALL - 62 - MIN ( ALL + 3 ) AS col2
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-5827
SELECT + 13 - ( CASE 61 WHEN COUNT( * ) THEN + 91 WHEN + + 5 * 3 / + 17 THEN NULL WHEN + - 8 + - + 49 + + 3 + + - COALESCE ( - 82, + - 34, - + 62 * + - 75 + + AVG ( 63 ) * - - 2 + - + 51 ) / + 34 THEN NULL ELSE NULL END ) + - 4 / 64 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5827
SELECT + 13 - ( CASE 61 WHEN COUNT ( * ) THEN + 91 WHEN + + 5 * 3 / + 17 THEN NULL WHEN + - 8 + - + 49 + + 3 + + - COALESCE ( - 82, + - 34, - + 62 * + - 75 + + AVG ( 63 ) * - - 2 + - + 51 ) / + 34 THEN NULL ELSE NULL END ) + - 4 / 64 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5828
SELECT + ( - - ( - - CAST( NULL AS SIGNED ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5828
SELECT + ( - - ( - - CAST ( NULL AS INTEGER ) ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5829
SELECT 80 * + 94 + - 39 * + COUNT( * )
----
7481

skipif mysql # not compatible
query I rowsort label-5829
SELECT 80 * + 94 + - 39 * + COUNT ( * )
----
7481

query I rowsort
SELECT ALL + 89 * - ( 48 )
----
-4272

onlyif mysql # DIV for integer division: 
query I rowsort label-5831
SELECT - 92 DIV 79 + 85
----
84

skipif mysql # not compatible
query I rowsort label-5831
SELECT - 92 / 79 + 85
----
84

query I rowsort
SELECT - 71 * + - ( + 7 ) * + + 26
----
12922

onlyif mysql # aggregate syntax: 
query I rowsort label-5833
SELECT DISTINCT + ( - + COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5833
SELECT DISTINCT + ( - + COUNT ( * ) ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5834
SELECT ALL - CAST( NULL AS SIGNED ) * + + ( + - NULLIF ( CASE + 62 WHEN + - 97 + - 44 THEN - + 77 / - 99 WHEN 87 THEN NULL ELSE + + MIN( 53 ) END, + 17 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5834
SELECT ALL - CAST ( NULL AS INTEGER ) * + + ( + - NULLIF ( CASE + 62 WHEN + - 97 + - 44 THEN - + 77 / - 99 WHEN 87 THEN NULL ELSE + + MIN ( 53 ) END, + 17 ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5835
SELECT ( + 24 ) AS col0, COUNT( * )
----
24
1

skipif mysql # not compatible
query II rowsort label-5835
SELECT ( + 24 ) AS col0, COUNT ( * )
----
24
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5836
SELECT DISTINCT + MAX( DISTINCT + - 56 )
----
-56

skipif mysql # not compatible
query I rowsort label-5836
SELECT DISTINCT + MAX ( DISTINCT + - 56 )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-5837
SELECT ALL - 26 * NULLIF ( + 59, COUNT( * ) + - 5 )
----
-1534

skipif mysql # not compatible
query I rowsort label-5837
SELECT ALL - 26 * NULLIF ( + 59, COUNT ( * ) + - 5 )
----
-1534

query I rowsort
SELECT NULLIF ( ( + 66 ), + 7 * 81 ) col1
----
66

query I rowsort
SELECT - ( - - ( - - 13 ) ) AS col2
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5840
SELECT + 77 * CASE 91 WHEN 89 THEN - 56 + 94 + + 87 * - 5 - + 54 + 74 * CAST( 64 AS SIGNED ) * 47 * - - 24 WHEN + 45 * + AVG ( ALL - 81 ) THEN - 36 END * 23 * + 45 * - 96 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5840
SELECT + 77 * CASE 91 WHEN 89 THEN - 56 + 94 + + 87 * - 5 - + 54 + 74 * CAST ( 64 AS INTEGER ) * 47 * - - 24 WHEN + 45 * + AVG ( ALL - 81 ) THEN - 36 END * 23 * + 45 * - 96 AS col1
----
NULL

query I rowsort
SELECT - - 33 * 89
----
2937

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5842
SELECT CAST( ( + 67 ) AS SIGNED )
----
67

skipif mysql # not compatible
query I rowsort label-5842
SELECT CAST ( ( + 67 ) AS INTEGER )
----
67

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5843
SELECT - - MIN( + NULLIF ( 21, - - 35 * - 92 ) ) * CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5843
SELECT - - MIN ( + NULLIF ( 21, - - 35 * - 92 ) ) * CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5844
SELECT ALL + 5 * + 37 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5844
SELECT ALL + 5 * + 37 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 80 * - 28 + + - 53
----
-2293

query I rowsort
SELECT + 93 * 3 AS col0
----
279

query I rowsort
SELECT ALL 50 * + 37 - + 17 + - + 9
----
1824

query I rowsort
SELECT - - 31 + + + 45 AS col1
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5849
SELECT + - COUNT( * ) * + + 32 + - - COUNT( * ) * + ( - 20 ) DIV 57 + + 42 AS col1
----
10

skipif mysql # not compatible
query I rowsort label-5849
SELECT + - COUNT ( * ) * + + 32 + - - COUNT ( * ) * + ( - 20 ) / 57 + + 42 AS col1
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-5850
SELECT + - 81 + + 45 + + + COUNT( * ) * + 11 AS col1, 20 * + - 45 + - 86 AS col2
----
-25
-986

skipif mysql # not compatible
query II rowsort label-5850
SELECT + - 81 + + 45 + + + COUNT ( * ) * + 11 AS col1, 20 * + - 45 + - 86 AS col2
----
-25
-986

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5851
SELECT + + 76 * - CAST( - COALESCE ( + + 67, - 38 ) AS SIGNED ) AS col2
----
5092

skipif mysql # not compatible
query I rowsort label-5851
SELECT + + 76 * - CAST ( - COALESCE ( + + 67, - 38 ) AS INTEGER ) AS col2
----
5092

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5852
SELECT + ( - - 40 ) + ( + CAST( - - 4 AS SIGNED ) )
----
44

skipif mysql # not compatible
query I rowsort label-5852
SELECT + ( - - 40 ) + ( + CAST ( - - 4 AS INTEGER ) )
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5853
SELECT + CAST( + 94 AS SIGNED ) - - - 29
----
65

skipif mysql # not compatible
query I rowsort label-5853
SELECT + CAST ( + 94 AS INTEGER ) - - - 29
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5854
SELECT + COALESCE ( - CASE - - ( - + 68 ) WHEN - + 78 THEN - + 22 - - 75 END, 53 + + 99 + - 47 + + MAX( DISTINCT + + CAST( NULL AS SIGNED ) ) * + + 45 + 72 * - 20 + + SUM( 57 ) - - ( + COUNT( * ) ) * - COUNT( * ) ) + + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-5854
SELECT + COALESCE ( - CASE - - ( - + 68 ) WHEN - + 78 THEN - + 22 - - 75 END, 53 + + 99 + - 47 + + MAX ( DISTINCT + + CAST ( NULL AS INTEGER ) ) * + + 45 + 72 * - 20 + + SUM ( 57 ) - - ( + COUNT ( * ) ) * - COUNT ( * ) ) + + 53
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5855
SELECT ALL MAX( ALL 77 ) * - 35 col1
----
-2695

skipif mysql # not compatible
query I rowsort label-5855
SELECT ALL MAX ( ALL 77 ) * - 35 col1
----
-2695

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5856
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + NULLIF ( COUNT( * ), - + 38 ) * + 6 AS col1, + 87 * + 89
----
NULL
7743

skipif mysql # not compatible
query II rowsort label-5856
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + NULLIF ( COUNT ( * ), - + 38 ) * + 6 AS col1, + 87 * + 89
----
NULL
7743

query I rowsort
SELECT + 19 * + - 94 AS col2
----
-1786

onlyif mysql # DIV for integer division: 
query II rowsort label-5858
SELECT - 95 - 79 + NULLIF ( + - 96, + NULLIF ( + 40, - 97 ) ) DIV 59, 14 AS col2
----
-175
14

skipif mysql # not compatible
query II rowsort label-5858
SELECT - 95 - 79 + NULLIF ( + - 96, + NULLIF ( + 40, - 97 ) ) / 59, 14 AS col2
----
-175
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5859
SELECT ALL COUNT( * ) AS col2, - SUM( - ( - CAST( + ( - 68 ) AS SIGNED ) ) ) + 30 + + 30 AS col2
----
1
128

skipif mysql # not compatible
query II rowsort label-5859
SELECT ALL COUNT ( * ) AS col2, - SUM ( - ( - CAST ( + ( - 68 ) AS INTEGER ) ) ) + 30 + + 30 AS col2
----
1
128

query I rowsort
SELECT - ( - - 31 ) AS col2
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-5861
SELECT ALL CASE WHEN COUNT( * ) IS NOT NULL THEN 57 END col0
----
57

skipif mysql # not compatible
query I rowsort label-5861
SELECT ALL CASE WHEN COUNT ( * ) IS NOT NULL THEN 57 END col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5862
SELECT ALL COALESCE ( + 62, + - 94 * 21 - + 3 - - 85 * - 6 + - COUNT( * ) * - 89, 57 ) col2
----
62

skipif mysql # not compatible
query I rowsort label-5862
SELECT ALL COALESCE ( + 62, + - 94 * 21 - + 3 - - 85 * - 6 + - COUNT ( * ) * - 89, 57 ) col2
----
62

query II rowsort
SELECT ALL 23 AS col0, 11 AS col2
----
23
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5864
SELECT ALL + 58 DIV + + COUNT( * ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-5864
SELECT ALL + 58 / + + COUNT ( * ) AS col1
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5865
SELECT - MAX( DISTINCT - CAST( NULL AS SIGNED ) ) * 60 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5865
SELECT - MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) * 60 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5866
SELECT + 41 + - 33 + - 96 DIV 10
----
-1

skipif mysql # not compatible
query I rowsort label-5866
SELECT + 41 + - 33 + - 96 / 10
----
-1

query I rowsort
SELECT - 70 * + 38
----
-2660

onlyif mysql # aggregate syntax: 
query I rowsort label-5868
SELECT ALL - COUNT( * ) + MIN( ALL + + 60 ) * - - COUNT( * )
----
59

skipif mysql # not compatible
query I rowsort label-5868
SELECT ALL - COUNT ( * ) + MIN ( ALL + + 60 ) * - - COUNT ( * )
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5869
SELECT ALL + + 11 * + CAST( 92 AS SIGNED ) AS col2, - CAST( + 28 AS SIGNED )
----
1012
-28

skipif mysql # not compatible
query II rowsort label-5869
SELECT ALL + + 11 * + CAST ( 92 AS INTEGER ) AS col2, - CAST ( + 28 AS INTEGER )
----
1012
-28

query I rowsort
SELECT DISTINCT + 99 + + + 18 * + 99 col0
----
1881

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5871
SELECT 19 * CAST( - - 89 AS SIGNED ) AS col2, COUNT( + + 80 ) + 33 * - 22 AS col0
----
1691
-725

skipif mysql # not compatible
query II rowsort label-5871
SELECT 19 * CAST ( - - 89 AS INTEGER ) AS col2, COUNT ( + + 80 ) + 33 * - 22 AS col0
----
1691
-725

query I rowsort
SELECT - ( - - 68 ) col1
----
-68

query I rowsort
SELECT 8 + - 25 - 23 * - 69
----
1570

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5874
SELECT - 85 AS col2, SUM( CAST( - 93 AS SIGNED ) ) AS col0
----
-85
-93

skipif mysql # not compatible
query II rowsort label-5874
SELECT - 85 AS col2, SUM ( CAST ( - 93 AS INTEGER ) ) AS col0
----
-85
-93

query I rowsort
SELECT - 13 + + - 32 AS col0
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5876
SELECT - 53 * - 76 + 84 + + 79 + 84 - 62 * + COUNT( DISTINCT - + 68 ) * 98 + + + MIN( 56 ) DIV + 63 AS col2
----
-1801

skipif mysql # not compatible
query I rowsort label-5876
SELECT - 53 * - 76 + 84 + + 79 + 84 - 62 * + COUNT ( DISTINCT - + 68 ) * 98 + + + MIN ( 56 ) / + 63 AS col2
----
-1801

onlyif mysql # aggregate syntax: 
query I rowsort label-5877
SELECT ALL MAX( - 79 ) - - 79 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5877
SELECT ALL MAX ( - 79 ) - - 79 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5878
SELECT - - SUM( + COALESCE ( + 43, + 41 ) )
----
43

skipif mysql # not compatible
query I rowsort label-5878
SELECT - - SUM ( + COALESCE ( + 43, + 41 ) )
----
43

query I rowsort
SELECT ALL + ( - 9 ) AS col1
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-5880
SELECT ALL + 34 DIV ( - 87 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5880
SELECT ALL + 34 / ( - 87 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5881
SELECT COALESCE ( CASE + - 54 WHEN + SUM( DISTINCT + + 46 ) THEN + 57 + - - COALESCE ( - COUNT( * ), - + COUNT( * ) ) + + + 5 * - 77 ELSE 67 END, + NULLIF ( 5, 51 * + 28 + + 12 + - 26 ) ) * 42 AS col0
----
2814

skipif mysql # not compatible
query I rowsort label-5881
SELECT COALESCE ( CASE + - 54 WHEN + SUM ( DISTINCT + + 46 ) THEN + 57 + - - COALESCE ( - COUNT ( * ), - + COUNT ( * ) ) + + + 5 * - 77 ELSE 67 END, + NULLIF ( 5, 51 * + 28 + + 12 + - 26 ) ) * 42 AS col0
----
2814

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5882
SELECT DISTINCT + 16 * - 44 AS col2, + 21 DIV - COUNT( * )
----
-704
-21

skipif mysql # not compatible
query II rowsort label-5882
SELECT DISTINCT + 16 * - 44 AS col2, + 21 / - COUNT ( * )
----
-704
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-5883
SELECT ALL - 61 - - 9 + - 98 + 43 DIV 82 DIV 47 + + + 39 + 67 AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-5883
SELECT ALL - 61 - - 9 + - 98 + 43 / 82 / 47 + + + 39 + 67 AS col2
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5884
SELECT 22 DIV COUNT( DISTINCT + 34 ) * - - CAST( - 27 AS SIGNED )
----
-594

skipif mysql # not compatible
query I rowsort label-5884
SELECT 22 / COUNT ( DISTINCT + 34 ) * - - CAST ( - 27 AS INTEGER )
----
-594

query I rowsort
SELECT 93 + 96 + + 68 AS col2
----
257

onlyif mysql # aggregate syntax: 
query I rowsort label-5886
SELECT COUNT( * ) + COALESCE ( ( - 65 ), + + COUNT( * ), - SUM( DISTINCT - - 87 ) * COUNT( * ) ) * + 35 AS col0
----
-2274

skipif mysql # not compatible
query I rowsort label-5886
SELECT COUNT ( * ) + COALESCE ( ( - 65 ), + + COUNT ( * ), - SUM ( DISTINCT - - 87 ) * COUNT ( * ) ) * + 35 AS col0
----
-2274

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5887
SELECT DISTINCT 7 AS col2, - 0 DIV - SUM( + 90 ) + + - 41 AS col1
----
7
-41

skipif mysql # not compatible
query II rowsort label-5887
SELECT DISTINCT 7 AS col2, - 0 / - SUM ( + 90 ) + + - 41 AS col1
----
7
-41

query I rowsort
SELECT 6 * - 55
----
-330

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5889
SELECT 41 + COUNT( * ) DIV - ( 16 ) + + - 62 col0
----
-21

skipif mysql # not compatible
query I rowsort label-5889
SELECT 41 + COUNT ( * ) / - ( 16 ) + + - 62 col0
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-5890
SELECT 12 DIV - 22
----
0

skipif mysql # not compatible
query I rowsort label-5890
SELECT 12 / - 22
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5891
SELECT DISTINCT 69 AS col2, - COUNT( * ) * - 27 * COUNT( * ) * COUNT( * ) AS col1
----
69
27

skipif mysql # not compatible
query II rowsort label-5891
SELECT DISTINCT 69 AS col2, - COUNT ( * ) * - 27 * COUNT ( * ) * COUNT ( * ) AS col1
----
69
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5892
SELECT 37 + - 1 * - - COUNT( * ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-5892
SELECT 37 + - 1 * - - COUNT ( * ) AS col2
----
36

query I rowsort
SELECT ALL 59 + + 9 AS col0
----
68

query I rowsort
SELECT 21 - - - 13 col0
----
8

query II rowsort
SELECT ALL 33 AS col0, 76 + - 41 AS col1
----
33
35

query I rowsort
SELECT 54 * - 33 * + + ( 51 ) + + + 6 AS col2
----
-90876

query I rowsort
SELECT 85 * - 85 * + 0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5898
SELECT + 46 DIV + 21 + - 27
----
-25

skipif mysql # not compatible
query I rowsort label-5898
SELECT + 46 / + 21 + - 27
----
-25

query I rowsort
SELECT ALL - 5 + + 27 + + 84
----
106

onlyif mysql # aggregate syntax: 
query II rowsort label-5900
SELECT + SUM( - + 97 ) AS col1, 19 AS col1
----
-97
19

skipif mysql # not compatible
query II rowsort label-5900
SELECT + SUM ( - + 97 ) AS col1, 19 AS col1
----
-97
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5901
SELECT ALL - 61 * - ( - - COUNT( * ) ) DIV + + 78 * + 99 DIV - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5901
SELECT ALL - 61 * - ( - - COUNT ( * ) ) / + + 78 * + 99 / - COUNT ( * ) AS col0
----
0

query I rowsort
SELECT DISTINCT 0 + 91 + + 85
----
176

onlyif mysql # aggregate syntax: 
query I rowsort label-5903
SELECT ALL - 44 + + 39 * - 84 * - 99 + + 16 * 24 * + COUNT( * )
----
324664

skipif mysql # not compatible
query I rowsort label-5903
SELECT ALL - 44 + + 39 * - 84 * - 99 + + 16 * 24 * + COUNT ( * )
----
324664

query I rowsort
SELECT ALL - + 78 col1
----
-78

query I rowsort
SELECT DISTINCT - - 12 + + - 75 * - + 17
----
1287

query I rowsort
SELECT - 70 * + - ( + ( + 58 ) ) AS col2
----
4060

onlyif mysql # aggregate syntax: 
query I rowsort label-5907
SELECT - 84 * - CASE + - 68 WHEN 71 / - 67 * + MIN( DISTINCT + + ( - 26 ) ) + - - 55 THEN - - 59 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5907
SELECT - 84 * - CASE + - 68 WHEN 71 / - 67 * + MIN ( DISTINCT + + ( - 26 ) ) + - - 55 THEN - - 59 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL - + 70 - - - 69
----
-139

query I rowsort
SELECT + 37 * ( + 18 )
----
666

onlyif mysql # DIV for integer division: 
query I rowsort label-5910
SELECT DISTINCT - 18 DIV + - 55 * - + 28 - - 4 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-5910
SELECT DISTINCT - 18 / + - 55 * - + 28 - - 4 AS col1
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-5911
SELECT ALL - + 11 AS col0, + MIN( + 46 ) AS col0
----
-11
46

skipif mysql # not compatible
query II rowsort label-5911
SELECT ALL - + 11 AS col0, + MIN ( + 46 ) AS col0
----
-11
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5912
SELECT + 50 - + CAST( - 35 AS SIGNED ) * CASE - + 66 WHEN ( - - 24 ) THEN - 5 ELSE NULL END + - - 31 * + ( + ( + SUM( DISTINCT - 29 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5912
SELECT + 50 - + CAST ( - 35 AS INTEGER ) * CASE - + 66 WHEN ( - - 24 ) THEN - 5 ELSE NULL END + - - 31 * + ( + ( + SUM ( DISTINCT - 29 ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5913
SELECT DISTINCT + - COUNT( DISTINCT 66 ) * + 76 * - COUNT( * ) AS col2, 37 AS col1
----
76
37

skipif mysql # not compatible
query II rowsort label-5913
SELECT DISTINCT + - COUNT ( DISTINCT 66 ) * + 76 * - COUNT ( * ) AS col2, 37 AS col1
----
76
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5914
SELECT DISTINCT - SUM( - 7 )
----
7

skipif mysql # not compatible
query I rowsort label-5914
SELECT DISTINCT - SUM ( - 7 )
----
7

query I rowsort
SELECT 13 * - 89 * ( - 88 )
----
101816

query II rowsort
SELECT 87 + + ( - 24 ) AS col1, + 1
----
63
1

query I rowsort
SELECT + ( + 61 ) * - + 66 + + 9 - + 40 * - + 50 * - + 83 * - + 22 * + 64 AS col0
----
233723983

query I rowsort
SELECT 6 + CASE - 51 WHEN - 45 THEN + 28 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5919
SELECT ALL SUM( ALL 42 )
----
42

skipif mysql # not compatible
query I rowsort label-5919
SELECT ALL SUM ( ALL 42 )
----
42

query I rowsort
SELECT 22 + + + 2 + 40 col1
----
64

query I rowsort
SELECT DISTINCT 6 + - - 96 AS col2
----
102

query I rowsort
SELECT 41 + - - ( - 20 ) col2
----
21

query I rowsort
SELECT ALL - 67 * - 91 AS col0
----
6097

onlyif mysql # aggregate syntax: 
query II rowsort label-5924
SELECT DISTINCT SUM( ALL + 93 ) AS col2, - 68 + - 94
----
93
-162

skipif mysql # not compatible
query II rowsort label-5924
SELECT DISTINCT SUM ( ALL + 93 ) AS col2, - 68 + - 94
----
93
-162

query I rowsort
SELECT 21 + 15 + 25 col2
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5926
SELECT ALL CASE - ( + 49 ) WHEN + 25 THEN NULL WHEN + - 95 * - 41 THEN + SUM( + CAST( NULL AS SIGNED ) ) + COALESCE ( 35, - - 5 ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5926
SELECT ALL CASE - ( + 49 ) WHEN + 25 THEN NULL WHEN + - 95 * - 41 THEN + SUM ( + CAST ( NULL AS INTEGER ) ) + COALESCE ( 35, - - 5 ) END col0
----
NULL

query I rowsort
SELECT 31 + 40 AS col2
----
71

query I rowsort
SELECT 66 + - 88 * ( + 28 ) col2
----
-2398

onlyif mysql # aggregate syntax: 
query I rowsort label-5929
SELECT ALL 5 + - + COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-5929
SELECT ALL 5 + - + COUNT ( * )
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-5930
SELECT ALL + 85 DIV + 96
----
0

skipif mysql # not compatible
query I rowsort label-5930
SELECT ALL + 85 / + 96
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5931
SELECT ALL COUNT( * ) * MAX( ALL - + 24 ) + - CASE AVG ( - 36 ) WHEN + COUNT( ALL ( - 45 ) ) + + AVG ( ALL - - 21 ) THEN 4 / + 87 + - COALESCE ( + - 38, + 9 ) / 26 WHEN 26 * - - 26 + + - 62 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5931
SELECT ALL COUNT ( * ) * MAX ( ALL - + 24 ) + - CASE AVG ( - 36 ) WHEN + COUNT ( ALL ( - 45 ) ) + + AVG ( ALL - - 21 ) THEN 4 / + 87 + - COALESCE ( + - 38, + 9 ) / 26 WHEN 26 * - - 26 + + - 62 THEN NULL ELSE NULL END AS col0
----
NULL

query II rowsort
SELECT - NULLIF ( + - 1, 36 ) * 66 + ( - + ( - - 65 ) ) + 97 AS col0, + 39
----
98
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5933
SELECT + + COUNT( * ) - + 49 + - 38 + + - 22 - + 15 AS col2
----
-123

skipif mysql # not compatible
query I rowsort label-5933
SELECT + + COUNT ( * ) - + 49 + - 38 + + - 22 - + 15 AS col2
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-5934
SELECT + 47 * - MAX( ALL + 24 ) * + + COUNT( * ) + 77 + + CASE 23 WHEN + 1 * - + MAX( DISTINCT + 99 ) * - - ( COALESCE ( + 5, + - MAX( + + 73 ) * + + 82 + - 6 + + 74 - + COALESCE ( - ( + - 95 ), - + 64 / + 69 * - + 19 + - 76 + - - COUNT( * ) + + + 17 - COUNT( * ) ), + 35, + NULLIF ( + 64, 97 * + + MAX( DISTINCT 58 ) ) * + 74, - - 50 ) ) * 58 + 98 + CASE + 92 WHEN + 89 THEN - 40 + + ( - 99 - + ( 57 ) ) ELSE NULL END + - ( + 77 + 10 ) * - 80 THEN - 88 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5934
SELECT + 47 * - MAX ( ALL + 24 ) * + + COUNT ( * ) + 77 + + CASE 23 WHEN + 1 * - + MAX ( DISTINCT + 99 ) * - - ( COALESCE ( + 5, + - MAX ( + + 73 ) * + + 82 + - 6 + + 74 - + COALESCE ( - ( + - 95 ), - + 64 / + 69 * - + 19 + - 76 + - - COUNT ( * ) + + + 17 - COUNT ( * ) ), + 35, + NULLIF ( + 64, 97 * + + MAX ( DISTINCT 58 ) ) * + 74, - - 50 ) ) * 58 + 98 + CASE + 92 WHEN + 89 THEN - 40 + + ( - 99 - + ( 57 ) ) ELSE NULL END + - ( + 77 + 10 ) * - 80 THEN - 88 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5935
SELECT CAST( - + 0 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-5935
SELECT CAST ( - + 0 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5936
SELECT ALL COUNT( * ) * + CASE + 95 WHEN - - 62 * COUNT( ALL + - 53 ) + + 86 THEN + 28 - - ( - + 38 ) / + 90 + - 49 + + 88 / + - 56 / - 30 * 65 / MAX( - - 95 ) + 98 END - MAX( + 44 ) * + 64 / + 82, COALESCE ( - 37, + 49 ) AS col0
----
NULL
-37

skipif mysql # not compatible
query II rowsort label-5936
SELECT ALL COUNT ( * ) * + CASE + 95 WHEN - - 62 * COUNT ( ALL + - 53 ) + + 86 THEN + 28 - - ( - + 38 ) / + 90 + - 49 + + 88 / + - 56 / - 30 * 65 / MAX ( - - 95 ) + 98 END - MAX ( + 44 ) * + 64 / + 82, COALESCE ( - 37, + 49 ) AS col0
----
NULL
-37

query I rowsort
SELECT + - 63 * - 97 * + 19 + 67 AS col2
----
116176

query II rowsort
SELECT + + 94 * - 86 AS col2, + 2
----
-8084
2

query I rowsort
SELECT DISTINCT - 55 * CASE WHEN ( NULL ) IS NOT NULL THEN - ( + 1 ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5940
SELECT - 60 * - COUNT( DISTINCT 85 ) * - + 15 * - 11 * 51 + - 81 + + 62
----
504881

skipif mysql # not compatible
query I rowsort label-5940
SELECT - 60 * - COUNT ( DISTINCT 85 ) * - + 15 * - 11 * 51 + - 81 + + 62
----
504881

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5941
SELECT + - COUNT( * ) DIV - 4 + - 18 + + 92 AS col0
----
74

skipif mysql # not compatible
query I rowsort label-5941
SELECT + - COUNT ( * ) / - 4 + - 18 + + 92 AS col0
----
74

query II rowsort
SELECT - 58 * + - 26 + - 41 col0, - 96
----
1467
-96

query I rowsort
SELECT - 79 * + 24 AS col0
----
-1896

onlyif mysql # aggregate syntax: 
query II rowsort label-5944
SELECT + MAX( ALL + + 74 ) * - COUNT( * ), 90 * + COUNT( * ) * + 60 AS col1
----
-74
5400

skipif mysql # not compatible
query II rowsort label-5944
SELECT + MAX ( ALL + + 74 ) * - COUNT ( * ), 90 * + COUNT ( * ) * + 60 AS col1
----
-74
5400

query I rowsort
SELECT - 96 + + + 72 * - 73 * 57 AS col1
----
-299688

onlyif mysql # DIV for integer division: 
query I rowsort label-5946
SELECT + 8 DIV - 61
----
0

skipif mysql # not compatible
query I rowsort label-5946
SELECT + 8 / - 61
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5947
SELECT - MAX( DISTINCT - + 69 ) + + CASE CAST( - 4 AS SIGNED ) WHEN - + 9 * + COUNT( * ) * 88 * + 96 THEN + + 33 + + ( 1 ) WHEN - + COUNT( * ) * - 35 * - - 1 + - CAST( + COUNT( * ) AS SIGNED ) + + COUNT( * ) THEN NULL ELSE NULL END + - CAST( NULL AS SIGNED ) * 90 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5947
SELECT - MAX ( DISTINCT - + 69 ) + + CASE CAST ( - 4 AS INTEGER ) WHEN - + 9 * + COUNT ( * ) * 88 * + 96 THEN + + 33 + + ( 1 ) WHEN - + COUNT ( * ) * - 35 * - - 1 + - CAST ( + COUNT ( * ) AS INTEGER ) + + COUNT ( * ) THEN NULL ELSE NULL END + - CAST ( NULL AS INTEGER ) * 90 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5948
SELECT ALL - COUNT( ALL 93 ) + 34 * + 87 AS col2, 65 AS col2
----
2957
65

skipif mysql # not compatible
query II rowsort label-5948
SELECT ALL - COUNT ( ALL 93 ) + 34 * + 87 AS col2, 65 AS col2
----
2957
65

query I rowsort
SELECT ALL 42 * - + 96
----
-4032

onlyif mysql # aggregate syntax: 
query I rowsort label-5950
SELECT DISTINCT SUM( - + 4 )
----
-4

skipif mysql # not compatible
query I rowsort label-5950
SELECT DISTINCT SUM ( - + 4 )
----
-4

query I rowsort
SELECT DISTINCT - 54 + - 47 * 49
----
-2357

query II rowsort
SELECT DISTINCT - ( - ( NULLIF ( - 38, + 63 ) ) ) * - 15 AS col2, + 81 * 41
----
570
3321

query II rowsort
SELECT - 19 AS col1, 13 AS col1
----
-19
13

query II rowsort
SELECT 3 AS col2, + 81 * + - 60 AS col0
----
3
-4860

onlyif mysql # aggregate syntax: 
query II rowsort label-5955
SELECT 38 col1, + COUNT( * ) - + 65
----
38
-64

skipif mysql # not compatible
query II rowsort label-5955
SELECT 38 col1, + COUNT ( * ) - + 65
----
38
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-5956
SELECT - SUM( + - 97 ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-5956
SELECT - SUM ( + - 97 ) AS col0
----
97

query I rowsort
SELECT - 59 * + 90 AS col0
----
-5310

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5958
SELECT DISTINCT + COUNT( * ) + + 23 DIV - - 49 * + 31
----
1

skipif mysql # not compatible
query I rowsort label-5958
SELECT DISTINCT + COUNT ( * ) + + 23 / - - 49 * + 31
----
1

query I rowsort
SELECT - 3 + 16
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5960
SELECT DISTINCT + + 66 + + + 23 * - 20 * + MIN( ALL 79 ) * + - COUNT( * ) * + - 88 DIV - - 1 AS col1, 19
----
-3197854
19

skipif mysql # not compatible
query II rowsort label-5960
SELECT DISTINCT + + 66 + + + 23 * - 20 * + MIN ( ALL 79 ) * + - COUNT ( * ) * + - 88 / - - 1 AS col1, 19
----
-3197854
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5961
SELECT ALL - - COUNT( * ) DIV - 39
----
0

skipif mysql # not compatible
query I rowsort label-5961
SELECT ALL - - COUNT ( * ) / - 39
----
0

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-5962
SELECT DISTINCT + CAST( NULL AS DECIMAL ), + ( - 19 ) + - 8 + 97 DIV + COALESCE ( 92, + 0 ) col1
----
NULL
-26

skipif mysql # not compatible
query II rowsort label-5962
SELECT DISTINCT + CAST ( NULL AS REAL ), + ( - 19 ) + - 8 + 97 / + COALESCE ( 92, + 0 ) col1
----
NULL
-26

query I rowsort
SELECT DISTINCT - COALESCE ( + 82, + 31 ) - + 53 * + 97 AS col0
----
-5223

onlyif mysql # aggregate syntax: 
query I rowsort label-5964
SELECT DISTINCT - ( MIN( 2 ) ) * + 92 AS col1
----
-184

skipif mysql # not compatible
query I rowsort label-5964
SELECT DISTINCT - ( MIN ( 2 ) ) * + 92 AS col1
----
-184

onlyif mysql # aggregate syntax: 
query II rowsort label-5965
SELECT - 69, + 63 * - + 91 + - + COUNT( * ) AS col0
----
-69
-5734

skipif mysql # not compatible
query II rowsort label-5965
SELECT - 69, + 63 * - + 91 + - + COUNT ( * ) AS col0
----
-69
-5734

onlyif mysql # aggregate syntax: 
query II rowsort label-5966
SELECT - COALESCE ( - COUNT( * ), 68 ), 81 * - 16 AS col2
----
1
-1296

skipif mysql # not compatible
query II rowsort label-5966
SELECT - COALESCE ( - COUNT ( * ), 68 ), 81 * - 16 AS col2
----
1
-1296

onlyif mysql # DIV for integer division: 
query I rowsort label-5967
SELECT + ( + 88 ) DIV + 72 + 17 * - 50
----
-849

skipif mysql # not compatible
query I rowsort label-5967
SELECT + ( + 88 ) / + 72 + 17 * - 50
----
-849

onlyif mysql # aggregate syntax: 
query I rowsort label-5968
SELECT - - 23 * + 84 + - MAX( DISTINCT + + 78 ) - COUNT( * )
----
1853

skipif mysql # not compatible
query I rowsort label-5968
SELECT - - 23 * + 84 + - MAX ( DISTINCT + + 78 ) - COUNT ( * )
----
1853

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5969
SELECT DISTINCT + COUNT( * ) AS col2, - ( - 51 ) + 71 DIV 71
----
1
52

skipif mysql # not compatible
query II rowsort label-5969
SELECT DISTINCT + COUNT ( * ) AS col2, - ( - 51 ) + 71 / 71
----
1
52

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5970
SELECT DISTINCT 87 / 93 - CAST( NULL AS SIGNED ) - - AVG ( ALL - 28 ) + 41 AS col1, + 24 AS col1
----
NULL
24

skipif mysql # not compatible
query II rowsort label-5970
SELECT DISTINCT 87 / 93 - CAST ( NULL AS INTEGER ) - - AVG ( ALL - 28 ) + 41 AS col1, + 24 AS col1
----
NULL
24

query I rowsort
SELECT DISTINCT - 79 * - + 90
----
7110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5972
SELECT - CAST( - 95 AS SIGNED ) * - MIN( 92 ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5972
SELECT - CAST ( - 95 AS INTEGER ) * - MIN ( 92 ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5973
SELECT + 60 * - 12 + + COUNT( * ) DIV - 91
----
-720

skipif mysql # not compatible
query I rowsort label-5973
SELECT + 60 * - 12 + + COUNT ( * ) / - 91
----
-720

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5974
SELECT + 73 * - 9 * + CAST( - + CAST( NULL AS DECIMAL ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5974
SELECT + 73 * - 9 * + CAST ( - + CAST ( NULL AS REAL ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5975
SELECT + ( + MIN( - 29 ) ) AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-5975
SELECT + ( + MIN ( - 29 ) ) AS col1
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5976
SELECT ALL - 89 * 69 * - 16 * + 45 + 54 * + 54 DIV - COUNT( * ), 17 * + 22 AS col1
----
4418604
374

skipif mysql # not compatible
query II rowsort label-5976
SELECT ALL - 89 * 69 * - 16 * + 45 + 54 * + 54 / - COUNT ( * ), 17 * + 22 AS col1
----
4418604
374

query I rowsort
SELECT DISTINCT - ( - + 0 ) * + 39 * - 9 + 57 AS col0
----
57

query I rowsort
SELECT + 37 * - ( + 80 ) AS col2
----
-2960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5979
SELECT + CAST( + - 51 AS SIGNED )
----
-51

skipif mysql # not compatible
query I rowsort label-5979
SELECT + CAST ( + - 51 AS INTEGER )
----
-51

query I rowsort
SELECT + 25 + - 86 * 82
----
-7027

onlyif mysql # aggregate syntax: 
query I rowsort label-5981
SELECT CASE + NULLIF ( + COUNT( * ), + 24 ) WHEN + 89 THEN - 88 ELSE - COUNT( ALL + 75 ) END AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5981
SELECT CASE + NULLIF ( + COUNT ( * ), + 24 ) WHEN + 89 THEN - 88 ELSE - COUNT ( ALL + 75 ) END AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5982
SELECT ALL + 73 * + 70 DIV - 10 + - + ( - COALESCE ( + 58, - + 65 + - ( + 15 ) ) )
----
-453

skipif mysql # not compatible
query I rowsort label-5982
SELECT ALL + 73 * + 70 / - 10 + - + ( - COALESCE ( + 58, - + 65 + - ( + 15 ) ) )
----
-453

query II rowsort
SELECT + 1 + - + 80, 25 AS col2
----
-79
25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5984
SELECT - ( - CAST( NULL AS SIGNED ) ), 2 * + CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5984
SELECT - ( - CAST ( NULL AS INTEGER ) ), 2 * + CAST ( NULL AS INTEGER )
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5985
SELECT + 77 + CAST( - 90 AS SIGNED ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-5985
SELECT + 77 + CAST ( - 90 AS INTEGER ) AS col0
----
-13

query I rowsort
SELECT - 83 - + 74
----
-157

query I rowsort
SELECT ALL NULLIF ( - ( + + 5 ), + 91 )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5988
SELECT ( - 29 ) + + COUNT( * ) * + COUNT( + 86 ) * + COUNT( * ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-5988
SELECT ( - 29 ) + + COUNT ( * ) * + COUNT ( + 86 ) * + COUNT ( * ) AS col2
----
-28

query I rowsort
SELECT ( 28 ) * + 4
----
112

query I rowsort
SELECT ALL + 95 * 38
----
3610

onlyif mysql # aggregate syntax: 
query I rowsort label-5991
SELECT ALL 29 * - COUNT( * ) * + 39
----
-1131

skipif mysql # not compatible
query I rowsort label-5991
SELECT ALL 29 * - COUNT ( * ) * + 39
----
-1131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5992
SELECT ALL CAST( - 36 AS SIGNED ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-5992
SELECT ALL CAST ( - 36 AS INTEGER ) AS col1
----
-36

query I rowsort
SELECT ( + 28 ) * + + 20
----
560

onlyif mysql # aggregate syntax: 
query II rowsort label-5994
SELECT - NULLIF ( 85, + MIN( DISTINCT - 3 ) ), - 28 - - + 22 AS col1
----
-85
-6

skipif mysql # not compatible
query II rowsort label-5994
SELECT - NULLIF ( 85, + MIN ( DISTINCT - 3 ) ), - 28 - - + 22 AS col1
----
-85
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5995
SELECT ALL - MIN( ALL - 11 ) * + - 1
----
-11

skipif mysql # not compatible
query I rowsort label-5995
SELECT ALL - MIN ( ALL - 11 ) * + - 1
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-5996
SELECT - 54 + + + COUNT( * ) + - 29 * + 56 * + 48 * ( + 68 ), 37 AS col0
----
-5300789
37

skipif mysql # not compatible
query II rowsort label-5996
SELECT - 54 + + + COUNT ( * ) + - 29 * + 56 * + 48 * ( + 68 ), 37 AS col0
----
-5300789
37

query I rowsort
SELECT 98 + - - 92 AS col1
----
190

query I rowsort
SELECT - 81 * + 62 * 7
----
-35154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5999
SELECT ALL CAST( + 4 AS SIGNED ) AS col0, - MAX( - - 22 ) * 40
----
4
-880

skipif mysql # not compatible
query II rowsort label-5999
SELECT ALL CAST ( + 4 AS INTEGER ) AS col0, - MAX ( - - 22 ) * 40
----
4
-880

query I rowsort
SELECT DISTINCT ( + 87 ) AS col0
----
87

query I rowsort
SELECT ALL - NULLIF ( - 41, 63 + + - 74 )
----
41

query I rowsort
SELECT + 3 - 89 + - + 78
----
-164

query I rowsort
SELECT DISTINCT + + 51 * 94 AS col2
----
4794

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6004
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 24 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6004
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 24 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6005
SELECT ALL + - 84 * + 32 + COUNT( * )
----
-2687

skipif mysql # not compatible
query I rowsort label-6005
SELECT ALL + - 84 * + 32 + COUNT ( * )
----
-2687

query I rowsort
SELECT 88 + - - 18
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-6007
SELECT COUNT( * ) * - + 0 + - COALESCE ( 15, + 41 * - - 54, + 43 ) - - COUNT( * ) AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-6007
SELECT COUNT ( * ) * - + 0 + - COALESCE ( 15, + 41 * - - 54, + 43 ) - - COUNT ( * ) AS col1
----
-14

query I rowsort
SELECT 78 - - 64 AS col1
----
142

onlyif mysql # DIV for integer division: 
query I rowsort label-6009
SELECT 80 DIV 98 * + 43
----
0

skipif mysql # not compatible
query I rowsort label-6009
SELECT 80 / 98 * + 43
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6010
SELECT ALL SUM( - - 56 ) + - 5
----
51

skipif mysql # not compatible
query I rowsort label-6010
SELECT ALL SUM ( - - 56 ) + - 5
----
51

query I rowsort
SELECT 22 + + 62 col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6012
SELECT ALL - SUM( DISTINCT - 6 ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-6012
SELECT ALL - SUM ( DISTINCT - 6 ) AS col2
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6013
SELECT ALL - CAST( + 86 AS SIGNED )
----
-86

skipif mysql # not compatible
query I rowsort label-6013
SELECT ALL - CAST ( + 86 AS INTEGER )
----
-86

query I rowsort
SELECT ALL 49 * + + 95 * + 97 AS col2
----
451535

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6015
SELECT DISTINCT + NULLIF ( + CAST( NULL AS SIGNED ), + 68 ) + MAX( ALL 59 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6015
SELECT DISTINCT + NULLIF ( + CAST ( NULL AS INTEGER ), + 68 ) + MAX ( ALL 59 ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6016
SELECT DISTINCT CASE + 81 WHEN - CAST( NULL AS SIGNED ) THEN NULL WHEN AVG ( ALL ( - + 42 ) ) THEN + - 10 - 3 END + - - ( - 16 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6016
SELECT DISTINCT CASE + 81 WHEN - CAST ( NULL AS INTEGER ) THEN NULL WHEN AVG ( ALL ( - + 42 ) ) THEN + - 10 - 3 END + - - ( - 16 )
----
NULL

query I rowsort
SELECT 31 * - 97 AS col0
----
-3007

query I rowsort
SELECT ALL - NULLIF ( - 89, - 10 + + 74 ) + CASE - NULLIF ( 77, 41 + - 67 * - 27 * + + 10 ) WHEN + 81 THEN + + 85 END + - 39 * + 42 * + 46 / - ( + - ( 29 ) )
----
NULL

query I rowsort
SELECT ALL 41 - 93 AS col0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-6020
SELECT ALL + COALESCE ( COUNT( * ), - 32 ) * + - COALESCE ( - 43, - 76, 52 ) + 51 col0
----
94

skipif mysql # not compatible
query I rowsort label-6020
SELECT ALL + COALESCE ( COUNT ( * ), - 32 ) * + - COALESCE ( - 43, - 76, 52 ) + 51 col0
----
94

query I rowsort
SELECT DISTINCT 76 - + 86 AS col1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-6022
SELECT COUNT( * ) * 58
----
58

skipif mysql # not compatible
query I rowsort label-6022
SELECT COUNT ( * ) * 58
----
58

query I rowsort
SELECT 75 * - + 62 * COALESCE ( - 87, + 80 ) col1
----
404550

query I rowsort
SELECT CASE - 60 WHEN + 94 THEN NULL ELSE - 86 END * 4 + + 51
----
-293

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6025
SELECT DISTINCT - CAST( + 97 AS SIGNED )
----
-97

skipif mysql # not compatible
query I rowsort label-6025
SELECT DISTINCT - CAST ( + 97 AS INTEGER )
----
-97

query I rowsort
SELECT ALL + NULLIF ( + - 32, 88 * + - ( - 19 ) ) * - 13 AS col1
----
416

onlyif mysql # aggregate syntax: 
query I rowsort label-6027
SELECT DISTINCT SUM( DISTINCT 28 ) * 20
----
560

skipif mysql # not compatible
query I rowsort label-6027
SELECT DISTINCT SUM ( DISTINCT 28 ) * 20
----
560

onlyif mysql # aggregate syntax: 
query II rowsort label-6028
SELECT - - 26 AS col0, + SUM( - 26 )
----
26
-26

skipif mysql # not compatible
query II rowsort label-6028
SELECT - - 26 AS col0, + SUM ( - 26 )
----
26
-26

query II rowsort
SELECT - 16 AS col1, + 60
----
-16
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6030
SELECT DISTINCT - 77 + + 54 + + COUNT( * ) * + 53 AS col0
----
30

skipif mysql # not compatible
query I rowsort label-6030
SELECT DISTINCT - 77 + + 54 + + COUNT ( * ) * + 53 AS col0
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6031
SELECT COUNT( * ) * + 27 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6031
SELECT COUNT ( * ) * + 27 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6032
SELECT - 40 DIV + - 99 * 47 + - 98 * + - COUNT( * ) * - COALESCE ( - 6, + COUNT( * ) ) AS col0
----
588

skipif mysql # not compatible
query I rowsort label-6032
SELECT - 40 / + - 99 * 47 + - 98 * + - COUNT ( * ) * - COALESCE ( - 6, + COUNT ( * ) ) AS col0
----
588

query I rowsort
SELECT 62 - + - 24 * - 94 * - 28 - 7 + + + 96 + - - 31 - - - 8 + + 30
----
63372

onlyif mysql # aggregate syntax: 
query I rowsort label-6034
SELECT NULLIF ( + 70, - COUNT( * ) + + 26 * - 71 ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-6034
SELECT NULLIF ( + 70, - COUNT ( * ) + + 26 * - 71 ) AS col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-6035
SELECT DISTINCT 90 * - 11 + + CASE COUNT( * ) WHEN + 85 * - 24 THEN - 10 WHEN - 62 THEN - 95 * - 91 + 12 ELSE NULL END * + 57 + + - 63 + 76 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6035
SELECT DISTINCT 90 * - 11 + + CASE COUNT ( * ) WHEN + 85 * - 24 THEN - 10 WHEN - 62 THEN - 95 * - 91 + 12 ELSE NULL END * + 57 + + - 63 + 76 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6036
SELECT ALL + NULLIF ( 29, - 0 ) * + 97 + 70 * - - 13, 92 DIV 69 AS col1
----
3723
1

skipif mysql # not compatible
query II rowsort label-6036
SELECT ALL + NULLIF ( 29, - 0 ) * + 97 + 70 * - - 13, 92 / 69 AS col1
----
3723
1

query II rowsort
SELECT 22 * - - 4 AS col1, 7 * - 8 * + 10 AS col0
----
88
-560

query I rowsort
SELECT ALL + ( NULLIF ( - 28, 31 ) ) * - + ( - 66 ) * - + 46 + - 72 AS col0
----
84936

onlyif mysql # aggregate syntax: 
query I rowsort label-6039
SELECT DISTINCT + 67 * + NULLIF ( + - 37, + + 19 * - 5 * + MIN( - 70 ) * - + 19 - - + 49 + - 48 ) + - - COUNT( * ) * + + COUNT( * ) AS col2
----
-2478

skipif mysql # not compatible
query I rowsort label-6039
SELECT DISTINCT + 67 * + NULLIF ( + - 37, + + 19 * - 5 * + MIN ( - 70 ) * - + 19 - - + 49 + - 48 ) + - - COUNT ( * ) * + + COUNT ( * ) AS col2
----
-2478

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6040
SELECT - 20 * 83 - - COUNT( ALL CAST( - + 73 AS SIGNED ) ) + + - 97 * + 80 AS col1
----
-9419

skipif mysql # not compatible
query I rowsort label-6040
SELECT - 20 * 83 - - COUNT ( ALL CAST ( - + 73 AS INTEGER ) ) + + - 97 * + 80 AS col1
----
-9419

query II rowsort
SELECT + 47 AS col0, - 4 + + 65
----
47
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6042
SELECT 40 * COUNT( * ) * - CAST( 39 AS SIGNED ) * - 99 * + 38 * 98 - 49 DIV + - 7 - + 3 col0
----
575134564

skipif mysql # not compatible
query I rowsort label-6042
SELECT 40 * COUNT ( * ) * - CAST ( 39 AS INTEGER ) * - 99 * + 38 * 98 - 49 / + - 7 - + 3 col0
----
575134564

query I rowsort
SELECT ALL - ( + - 26 ) * - 51 * + ( + 89 )
----
-118014

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6044
SELECT - 95 * + - COALESCE ( - 80, - COUNT( * ) + 90, - 85 DIV + - ( - 51 ) * + 19 + - - 29 ) AS col2
----
-7600

skipif mysql # not compatible
query I rowsort label-6044
SELECT - 95 * + - COALESCE ( - 80, - COUNT ( * ) + 90, - 85 / + - ( - 51 ) * + 19 + - - 29 ) AS col2
----
-7600

onlyif mysql # aggregate syntax: 
query II rowsort label-6045
SELECT COUNT( * ) AS col0, - 81
----
1
-81

skipif mysql # not compatible
query II rowsort label-6045
SELECT COUNT ( * ) AS col0, - 81
----
1
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6046
SELECT ALL + SUM( DISTINCT - 24 ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-6046
SELECT ALL + SUM ( DISTINCT - 24 ) AS col1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-6047
SELECT DISTINCT - 24 * 83 - + COUNT( * ) + 67 AS col0
----
-1926

skipif mysql # not compatible
query I rowsort label-6047
SELECT DISTINCT - 24 * 83 - + COUNT ( * ) + 67 AS col0
----
-1926

query I rowsort
SELECT ALL + ( + 88 ) * + + 1 col1
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6049
SELECT ALL - 77 DIV + - CAST( MAX( DISTINCT 57 ) AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6049
SELECT ALL - 77 / + - CAST ( MAX ( DISTINCT 57 ) AS INTEGER ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6050
SELECT + 88 * + MAX( DISTINCT + CAST( 26 AS SIGNED ) ) * - 44 * + 78 + - COUNT( * ) - + 7 - - 77 - - MAX( ALL 14 ) + - + 15
----
-7852348

skipif mysql # not compatible
query I rowsort label-6050
SELECT + 88 * + MAX ( DISTINCT + CAST ( 26 AS INTEGER ) ) * - 44 * + 78 + - COUNT ( * ) - + 7 - - 77 - - MAX ( ALL 14 ) + - + 15
----
-7852348

query I rowsort
SELECT DISTINCT + ( 41 )
----
41

query I rowsort
SELECT - 11 + 45 col1
----
34

query I rowsort
SELECT - + 60 * - 90 AS col0
----
5400

onlyif mysql # DIV for integer division: 
query I rowsort label-6054
SELECT + 10 - 67 + + 16 + + 41 + 36 DIV 28
----
1

skipif mysql # not compatible
query I rowsort label-6054
SELECT + 10 - 67 + + 16 + + 41 + 36 / 28
----
1

query I rowsort
SELECT ALL + - 93 * - + 44 AS col1
----
4092

query II rowsort
SELECT ALL 27 AS col0, 69
----
27
69

onlyif mysql # aggregate syntax: 
query I rowsort label-6057
SELECT + - 36 + - SUM( ALL + - 70 )
----
34

skipif mysql # not compatible
query I rowsort label-6057
SELECT + - 36 + - SUM ( ALL + - 70 )
----
34

query I rowsort
SELECT + 99 * + 76 AS col2
----
7524

query I rowsort
SELECT ALL 68 + + 53 + 2 * - 87 * - + 76 * - 49 * + 82 AS col2
----
-53133911

query I rowsort
SELECT ALL 73 + - 48 AS col2
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6061
SELECT - + 59 + + - CAST( 35 AS SIGNED ) AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-6061
SELECT - + 59 + + - CAST ( 35 AS INTEGER ) AS col1
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6062
SELECT DISTINCT CAST( NULL AS SIGNED ), - 47 * + - COUNT( * ) AS col1
----
NULL
47

skipif mysql # not compatible
query II rowsort label-6062
SELECT DISTINCT CAST ( NULL AS INTEGER ), - 47 * + - COUNT ( * ) AS col1
----
NULL
47

query II rowsort
SELECT + + 78 * + 47 AS col1, 45
----
3666
45

query I rowsort
SELECT + 39 + 40 AS col0
----
79

query I rowsort
SELECT - - ( + + 67 )
----
67

query I rowsort
SELECT ALL - 98 + - + 83 AS col1
----
-181

onlyif mysql # aggregate syntax: 
query I rowsort label-6067
SELECT MIN( DISTINCT + 70 ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-6067
SELECT MIN ( DISTINCT + 70 ) AS col2
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-6068
SELECT ALL + 29 DIV 21 * + 95
----
95

skipif mysql # not compatible
query I rowsort label-6068
SELECT ALL + 29 / 21 * + 95
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6069
SELECT + CAST( NULL AS SIGNED ) + - + ( 17 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6069
SELECT + CAST ( NULL AS INTEGER ) + - + ( 17 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6070
SELECT DISTINCT 41 * 24 - - SUM( + 65 ) + + 77 * + CAST( NULL AS SIGNED ) * 45 / - + CAST( + 13 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6070
SELECT DISTINCT 41 * 24 - - SUM ( + 65 ) + + 77 * + CAST ( NULL AS INTEGER ) * 45 / - + CAST ( + 13 AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6071
SELECT ALL - 40 DIV + + 75 + - 8 + 69 - - 57 * - 56 DIV 63 DIV + - NULLIF ( + 87, COUNT( * ) )
----
61

skipif mysql # not compatible
query I rowsort label-6071
SELECT ALL - 40 / + + 75 + - 8 + 69 - - 57 * - 56 / 63 / + - NULLIF ( + 87, COUNT ( * ) )
----
61

query I rowsort
SELECT + ( + + 75 )
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6073
SELECT ALL - 90 DIV + COUNT( * ) + - 98 AS col0
----
-188

skipif mysql # not compatible
query I rowsort label-6073
SELECT ALL - 90 / + COUNT ( * ) + - 98 AS col0
----
-188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6074
SELECT + 25 + + + ( + - 74 ) * 4 * CAST( 8 AS SIGNED ) col2
----
-2343

skipif mysql # not compatible
query I rowsort label-6074
SELECT + 25 + + + ( + - 74 ) * 4 * CAST ( 8 AS INTEGER ) col2
----
-2343

query I rowsort
SELECT + 2 + - - 81 - 24
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6076
SELECT 45 * - - 82 + - 6 + - CAST( NULL AS SIGNED ) + MAX( + 53 ) + - 7 - - 94 + + - COUNT( * ) / COUNT( * ) * + 99 * - AVG ( ALL - + COALESCE ( + 22, + 93 / 20 ) ) / COUNT( * ) * - COALESCE ( - 44, 47 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6076
SELECT 45 * - - 82 + - 6 + - CAST ( NULL AS INTEGER ) + MAX ( + 53 ) + - 7 - - 94 + + - COUNT ( * ) / COUNT ( * ) * + 99 * - AVG ( ALL - + COALESCE ( + 22, + 93 / 20 ) ) / COUNT ( * ) * - COALESCE ( - 44, 47 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6077
SELECT - COUNT( * ) + - 89 col2
----
-90

skipif mysql # not compatible
query I rowsort label-6077
SELECT - COUNT ( * ) + - 89 col2
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-6078
SELECT ALL + COALESCE ( + 20, - 17 + - + ( COUNT( * ) ) + + COUNT( * ) )
----
20

skipif mysql # not compatible
query I rowsort label-6078
SELECT ALL + COALESCE ( + 20, - 17 + - + ( COUNT ( * ) ) + + COUNT ( * ) )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6079
SELECT - 24 + - COUNT( * ) AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-6079
SELECT - 24 + - COUNT ( * ) AS col2
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6080
SELECT + 21 * + 92 * 44 + - CAST( 80 AS SIGNED )
----
84928

skipif mysql # not compatible
query I rowsort label-6080
SELECT + 21 * + 92 * 44 + - CAST ( 80 AS INTEGER )
----
84928

onlyif mysql # aggregate syntax: 
query I rowsort label-6081
SELECT CASE - 1 WHEN COALESCE ( - 77, - COUNT( * ) / - + 7, COALESCE ( + 31, MAX( DISTINCT - 40 ), + 23 ) ) THEN - 41 ELSE + + 40 * - - 91 + - - COALESCE ( - 58, + - 66 ) END
----
3582

skipif mysql # not compatible
query I rowsort label-6081
SELECT CASE - 1 WHEN COALESCE ( - 77, - COUNT ( * ) / - + 7, COALESCE ( + 31, MAX ( DISTINCT - 40 ), + 23 ) ) THEN - 41 ELSE + + 40 * - - 91 + - - COALESCE ( - 58, + - 66 ) END
----
3582

onlyif mysql # aggregate syntax: 
query I rowsort label-6082
SELECT ALL - 74 * - COUNT( * ) * 15 col1
----
1110

skipif mysql # not compatible
query I rowsort label-6082
SELECT ALL - 74 * - COUNT ( * ) * 15 col1
----
1110

query I rowsort
SELECT DISTINCT - 65 * 51 * 87 AS col2
----
-288405

query I rowsort
SELECT COALESCE ( - + 34, - - 19 )
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-6085
SELECT ALL - + 53 * + 35 AS col2, COUNT( * ) + + 37 + + - COUNT( * ) * - + 42 AS col2
----
-1855
80

skipif mysql # not compatible
query II rowsort label-6085
SELECT ALL - + 53 * + 35 AS col2, COUNT ( * ) + + 37 + + - COUNT ( * ) * - + 42 AS col2
----
-1855
80

onlyif mysql # DIV for integer division: 
query I rowsort label-6086
SELECT DISTINCT - + 19 DIV - + 25 * + 75 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6086
SELECT DISTINCT - + 19 / - + 25 * + 75 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6087
SELECT + COUNT( * ) * - 88 + ( 28 ) + - 28 AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-6087
SELECT + COUNT ( * ) * - 88 + ( 28 ) + - 28 AS col2
----
-88

query I rowsort
SELECT ALL 90 * + + 61 * - + 55 + + 60 + + 43 AS col1
----
-301847

onlyif mysql # aggregate syntax: 
query I rowsort label-6089
SELECT - + MIN( - 78 ) * + 69 * - - 80 + 52 * - 98 AS col1
----
425464

skipif mysql # not compatible
query I rowsort label-6089
SELECT - + MIN ( - 78 ) * + 69 * - - 80 + 52 * - 98 AS col1
----
425464

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6090
SELECT ALL - ( CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6090
SELECT ALL - ( CAST ( NULL AS REAL ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6091
SELECT DISTINCT - 60 + + COUNT( * ) col0
----
-59

skipif mysql # not compatible
query I rowsort label-6091
SELECT DISTINCT - 60 + + COUNT ( * ) col0
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6092
SELECT - - AVG ( + CAST( NULL AS SIGNED ) ) * 76 * - 4
----
NULL

skipif mysql # not compatible
query I rowsort label-6092
SELECT - - AVG ( + CAST ( NULL AS INTEGER ) ) * 76 * - 4
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6093
SELECT ALL NULLIF ( + 45, - 79 + + - 33 ) + + COUNT( * ) - 35 * - 96 * - - 64 col2
----
215086

skipif mysql # not compatible
query I rowsort label-6093
SELECT ALL NULLIF ( + 45, - 79 + + - 33 ) + + COUNT ( * ) - 35 * - 96 * - - 64 col2
----
215086

onlyif mysql # aggregate syntax: 
query I rowsort label-6094
SELECT ALL + 69 + + SUM( - 82 )
----
-13

skipif mysql # not compatible
query I rowsort label-6094
SELECT ALL + 69 + + SUM ( - 82 )
----
-13

query I rowsort
SELECT + 99 + - 92 * 23 + + 8
----
-2009

onlyif mysql # aggregate syntax: 
query I rowsort label-6096
SELECT + 8 + + COUNT( * ) * 0 col1
----
8

skipif mysql # not compatible
query I rowsort label-6096
SELECT + 8 + + COUNT ( * ) * 0 col1
----
8

query II rowsort
SELECT ALL 90 AS col2, 8 * + 52 AS col0
----
90
416

onlyif mysql # aggregate syntax: 
query II rowsort label-6098
SELECT 50 AS col0, COUNT( * )
----
50
1

skipif mysql # not compatible
query II rowsort label-6098
SELECT 50 AS col0, COUNT ( * )
----
50
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6099
SELECT ALL 90 - - CASE + 81 WHEN - 2 THEN - 12 WHEN COUNT( ALL - 55 ) THEN NULL WHEN 15 - - - COUNT( * ) THEN 56 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6099
SELECT ALL 90 - - CASE + 81 WHEN - 2 THEN - 12 WHEN COUNT ( ALL - 55 ) THEN NULL WHEN 15 - - - COUNT ( * ) THEN 56 END
----
NULL

query I rowsort
SELECT ALL 66 * - + 79
----
-5214

query I rowsort
SELECT DISTINCT 60 * + 56 col2
----
3360

onlyif mysql # aggregate syntax: 
query I rowsort label-6102
SELECT 78 * - - 98 - COUNT( * )
----
7643

skipif mysql # not compatible
query I rowsort label-6102
SELECT 78 * - - 98 - COUNT ( * )
----
7643

query I rowsort
SELECT 82 * - 4
----
-328

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6104
SELECT DISTINCT 24 * + CAST( + COUNT( * ) AS SIGNED ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-6104
SELECT DISTINCT 24 * + CAST ( + COUNT ( * ) AS INTEGER ) AS col0
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6105
SELECT + 79 * + 51 - + 74 + + 82 + + - 94 * 52 * - + 17 * + - ( + ( - 90 ) ) * - 53 / + 43 + + NULLIF ( - CAST( NULL AS SIGNED ), + - 16 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6105
SELECT + 79 * + 51 - + 74 + + 82 + + - 94 * 52 * - + 17 * + - ( + ( - 90 ) ) * - 53 / + 43 + + NULLIF ( - CAST ( NULL AS INTEGER ), + - 16 ) AS col2
----
NULL

query II rowsort
SELECT 1 col2, 48 AS col1
----
1
48

query II rowsort
SELECT ALL - 30 col0, 62
----
-30
62

query II rowsort
SELECT 74, 71 AS col0
----
74
71

query II rowsort
SELECT 79, 74 AS col2
----
79
74

query I rowsort
SELECT DISTINCT 88 * 74
----
6512

onlyif mysql # aggregate syntax: 
query II rowsort label-6111
SELECT ALL - COUNT( * ) AS col2, 35 * 76 * - COUNT( * ) + + 91 * COUNT( * ) * - 15
----
-1
-4025

skipif mysql # not compatible
query II rowsort label-6111
SELECT ALL - COUNT ( * ) AS col2, 35 * 76 * - COUNT ( * ) + + 91 * COUNT ( * ) * - 15
----
-1
-4025

onlyif mysql # aggregate syntax: 
query II rowsort label-6112
SELECT ( + COUNT( * ) ) - 38 + + 44 * + 96 * + 65, - 20 * - - 75 + + COUNT( * ) AS col2
----
274523
-1499

skipif mysql # not compatible
query II rowsort label-6112
SELECT ( + COUNT ( * ) ) - 38 + + 44 * + 96 * + 65, - 20 * - - 75 + + COUNT ( * ) AS col2
----
274523
-1499

onlyif mysql # aggregate syntax: 
query II rowsort label-6113
SELECT ALL - - ( COUNT( * ) ) * - 51 - - 76 AS col1, - 46 - + 73 + - 16
----
25
-135

skipif mysql # not compatible
query II rowsort label-6113
SELECT ALL - - ( COUNT ( * ) ) * - 51 - - 76 AS col1, - 46 - + 73 + - 16
----
25
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-6114
SELECT ALL - 14 + + 20 + COUNT( * ) * 81 * + COUNT( * )
----
87

skipif mysql # not compatible
query I rowsort label-6114
SELECT ALL - 14 + + 20 + COUNT ( * ) * 81 * + COUNT ( * )
----
87

query II rowsort
SELECT DISTINCT - - 32 col0, + 1
----
32
1

query I rowsort
SELECT - 72 * 75 + - 11
----
-5411

query I rowsort
SELECT ALL + 64 + + + 0
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6118
SELECT 59 * + - CAST( NULL AS SIGNED ) * 35 + - + 84 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6118
SELECT 59 * + - CAST ( NULL AS INTEGER ) * 35 + - + 84 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + + ( - 56 ) * + 15 * + 70 * - - 4
----
-235200

query I rowsort
SELECT + 38 + + 95 * 98 + + 53 AS col0
----
9401

onlyif mysql # aggregate syntax: 
query I rowsort label-6121
SELECT NULLIF ( - 72, - COUNT( * ) )
----
-72

skipif mysql # not compatible
query I rowsort label-6121
SELECT NULLIF ( - 72, - COUNT ( * ) )
----
-72

query II rowsort
SELECT 27 AS col2, 79
----
27
79

onlyif mysql # aggregate syntax: 
query I rowsort label-6123
SELECT ALL COUNT( * ) * - - 91 AS col1
----
91

skipif mysql # not compatible
query I rowsort label-6123
SELECT ALL COUNT ( * ) * - - 91 AS col1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6124
SELECT DISTINCT - MAX( 47 ) + + COUNT( * ) AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-6124
SELECT DISTINCT - MAX ( 47 ) + + COUNT ( * ) AS col1
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-6125
SELECT ALL + 7 DIV + - 59 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6125
SELECT ALL + 7 / + - 59 AS col1
----
0

query I rowsort
SELECT ALL - - 71 - + 89 AS col2
----
-18

query I rowsort
SELECT - ( - 27 ) AS col0
----
27

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6128
SELECT 11 + + ( + - 54 ) + COUNT( * ) - + + 66 - - CAST( NULL AS DECIMAL ) + COUNT( * ) - + 13 * + + 43 * - COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6128
SELECT 11 + + ( + - 54 ) + COUNT ( * ) - + + 66 - - CAST ( NULL AS REAL ) + COUNT ( * ) - + 13 * + + 43 * - COUNT ( * ) col2
----
NULL

query II rowsort
SELECT 57 + 79 + + - 72 AS col0, - 48 AS col1
----
64
-48

onlyif mysql # aggregate syntax: 
query III rowsort label-6130
SELECT 25 * + 34 * + ( 11 ), 5 AS col0, + 88 + + 17 + + MIN( - 94 ) AS col1
----
9350
5
11

skipif mysql # not compatible
query III rowsort label-6130
SELECT 25 * + 34 * + ( 11 ), 5 AS col0, + 88 + + 17 + + MIN ( - 94 ) AS col1
----
9350
5
11

onlyif mysql # aggregate syntax: 
query II rowsort label-6131
SELECT 60 * + + 55 AS col1, 29 * - COALESCE ( + + 40, - 82 ) + + MAX( - 35 ) AS col2
----
3300
-1195

skipif mysql # not compatible
query II rowsort label-6131
SELECT 60 * + + 55 AS col1, 29 * - COALESCE ( + + 40, - 82 ) + + MAX ( - 35 ) AS col2
----
3300
-1195

onlyif mysql # aggregate syntax: 
query II rowsort label-6132
SELECT ALL - 8 * COUNT( * ) col1, + 25
----
-8
25

skipif mysql # not compatible
query II rowsort label-6132
SELECT ALL - 8 * COUNT ( * ) col1, + 25
----
-8
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6133
SELECT COUNT( * ) - + - 28 - - COUNT( * ) + COUNT( * ) + ( - - 3 ) * - 20
----
-29

skipif mysql # not compatible
query I rowsort label-6133
SELECT COUNT ( * ) - + - 28 - - COUNT ( * ) + COUNT ( * ) + ( - - 3 ) * - 20
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-6134
SELECT 50 * - COUNT( DISTINCT + 57 )
----
-50

skipif mysql # not compatible
query I rowsort label-6134
SELECT 50 * - COUNT ( DISTINCT + 57 )
----
-50

query II rowsort
SELECT ALL 42 * + - 55 AS col0, + 66 + 58 * - - COALESCE ( + ( - 46 ), + - 1 + + 39, - 29 ) AS col1
----
-2310
-2602

query II rowsort
SELECT 56 + - + 95, 14 - + NULLIF ( 10, + - 10 ) AS col1
----
-39
4

onlyif mysql # DIV for integer division: 
query I rowsort label-6137
SELECT ALL - COALESCE ( - 67, + 15, 33 ) * ( + - 65 ) DIV COALESCE ( - 41, + 20 ) + + + 46 + 85
----
237

skipif mysql # not compatible
query I rowsort label-6137
SELECT ALL - COALESCE ( - 67, + 15, 33 ) * ( + - 65 ) / COALESCE ( - 41, + 20 ) + + + 46 + 85
----
237

query II rowsort
SELECT 66 + + + 47 AS col1, 18
----
113
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6139
SELECT ALL + 91 * - + ( + - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6139
SELECT ALL + 91 * - + ( + - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT 40 * + 26 * + ( + - 18 ) AS col2
----
-18720

query I rowsort
SELECT DISTINCT - ( - + 5 ) AS col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6142
SELECT 91 - - - 6 + - SUM( DISTINCT + - 57 ) * + - 35 * + ( - + 0 ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-6142
SELECT 91 - - - 6 + - SUM ( DISTINCT + - 57 ) * + - 35 * + ( - + 0 ) AS col1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6143
SELECT SUM( DISTINCT 27 ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-6143
SELECT SUM ( DISTINCT 27 ) AS col2
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-6144
SELECT + 13 * + NULLIF ( + 95, + 88 ) + 9 DIV - 36 AS col1
----
1235

skipif mysql # not compatible
query I rowsort label-6144
SELECT + 13 * + NULLIF ( + 95, + 88 ) + 9 / - 36 AS col1
----
1235

onlyif mysql # DIV for integer division: 
query I rowsort label-6145
SELECT ALL 76 DIV + 85
----
0

skipif mysql # not compatible
query I rowsort label-6145
SELECT ALL 76 / + 85
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6146
SELECT DISTINCT - ( + 69 ) col0, ( + NULLIF ( + - NULLIF ( - 23, + ( + 15 ) + 26 ), + - 37 - - CAST( NULL AS SIGNED ) + + 66 ) )
----
-69
23

skipif mysql # not compatible
query II rowsort label-6146
SELECT DISTINCT - ( + 69 ) col0, ( + NULLIF ( + - NULLIF ( - 23, + ( + 15 ) + 26 ), + - 37 - - CAST ( NULL AS INTEGER ) + + 66 ) )
----
-69
23

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6147
SELECT ALL - 19 + + 61 AS col1, - 90 DIV 43 * - ( 87 ) + CAST( ( - 61 ) AS SIGNED ) AS col1
----
42
113

skipif mysql # not compatible
query II rowsort label-6147
SELECT ALL - 19 + + 61 AS col1, - 90 / 43 * - ( 87 ) + CAST ( ( - 61 ) AS INTEGER ) AS col1
----
42
113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6148
SELECT SUM( ALL - CAST( + + 0 AS SIGNED ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6148
SELECT SUM ( ALL - CAST ( + + 0 AS INTEGER ) ) AS col2
----
0

query I rowsort
SELECT ALL + 56 + 12
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6150
SELECT ALL 40 + - COALESCE ( - + ( + CAST( NULL AS SIGNED ) ), + + 41 - + 49, + 86 * + CAST( NULL AS DECIMAL ) * CAST( NULL AS SIGNED ) + + 89 + + + 81 ) - - CAST( NULL AS SIGNED ) * 20 * - AVG ( + CAST( NULL AS SIGNED ) ) * + 31 + - MIN( - 69 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6150
SELECT ALL 40 + - COALESCE ( - + ( + CAST ( NULL AS INTEGER ) ), + + 41 - + 49, + 86 * + CAST ( NULL AS REAL ) * CAST ( NULL AS INTEGER ) + + 89 + + + 81 ) - - CAST ( NULL AS INTEGER ) * 20 * - AVG ( + CAST ( NULL AS INTEGER ) ) * + 31 + - MIN ( - 69 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6151
SELECT + ( - + MAX( + + 74 ) )
----
-74

skipif mysql # not compatible
query I rowsort label-6151
SELECT + ( - + MAX ( + + 74 ) )
----
-74

query I rowsort
SELECT + 95 * - 32
----
-3040

onlyif mysql # aggregate syntax: 
query I rowsort label-6153
SELECT 46 * COALESCE ( + - CASE + - 40 WHEN + 56 * + 46 THEN + 45 WHEN - + 19 * - 83 THEN NULL END, + COUNT( * ) ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-6153
SELECT 46 * COALESCE ( + - CASE + - 40 WHEN + 56 * + 46 THEN + 45 WHEN - + 19 * - 83 THEN NULL END, + COUNT ( * ) ) AS col0
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6154
SELECT - CAST( + AVG ( ALL + + CAST( NULL AS SIGNED ) ) AS DECIMAL ) + + 16 * - - CAST( + 24 AS SIGNED ) * - 91 - - + SUM( DISTINCT - - 13 ) * + + NULLIF ( + COALESCE ( - COALESCE ( + + 36, - COUNT( * ) * 6 * + 24, - - 53 / - - 88 * - - 21 ), - - 47 ), - COUNT( * ) * + + ( + - 48 ) * - 15 + - 20 ) * 74 + SUM( DISTINCT + CAST( - 72 AS SIGNED ) ) + 66 * - 57 + + + 88 - 68 + MAX( - - NULLIF ( 76, + + 67 ) ) * - 3
----
NULL

skipif mysql # not compatible
query I rowsort label-6154
SELECT - CAST ( + AVG ( ALL + + CAST ( NULL AS INTEGER ) ) AS REAL ) + + 16 * - - CAST ( + 24 AS INTEGER ) * - 91 - - + SUM ( DISTINCT - - 13 ) * + + NULLIF ( + COALESCE ( - COALESCE ( + + 36, - COUNT ( * ) * 6 * + 24, - - 53 / - - 88 * - - 21 ), - - 47 ), - COUNT ( * ) * + + ( + - 48 ) * - 15 + - 20 ) * 74 + SUM ( DISTINCT + CAST ( - 72 AS INTEGER ) ) + 66 * - 57 + + + 88 - 68 + MAX ( - - NULLIF ( 76, + + 67 ) ) * - 3
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6155
SELECT DISTINCT - SUM( - 41 ) + - 96
----
-55

skipif mysql # not compatible
query I rowsort label-6155
SELECT DISTINCT - SUM ( - 41 ) + - 96
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6156
SELECT ALL CAST( NULL AS SIGNED ) + + + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-6156
SELECT ALL CAST ( NULL AS INTEGER ) + + + 95
----
NULL

query I rowsort
SELECT + 45 * 91
----
4095

onlyif mysql # aggregate syntax: 
query I rowsort label-6158
SELECT ALL - + COALESCE ( CASE 92 WHEN - - 89 THEN NULL ELSE + SUM( - + 1 ) END, 52 ) - - 70 - + 94 + - 43 * + + 8
----
-367

skipif mysql # not compatible
query I rowsort label-6158
SELECT ALL - + COALESCE ( CASE 92 WHEN - - 89 THEN NULL ELSE + SUM ( - + 1 ) END, 52 ) - - 70 - + 94 + - 43 * + + 8
----
-367

query I rowsort
SELECT ALL ( + - 77 )
----
-77

query I rowsort
SELECT + 12 * - - NULLIF ( - 89, 39 * - 40 ) + + - 97
----
-1165

onlyif mysql # DIV for integer division: 
query I rowsort label-6161
SELECT ALL 51 DIV - - 30
----
1

skipif mysql # not compatible
query I rowsort label-6161
SELECT ALL 51 / - - 30
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6162
SELECT CAST( - + 53 AS SIGNED ) - + 98 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6162
SELECT CAST ( - + 53 AS INTEGER ) - + 98 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6163
SELECT DISTINCT - ( + + 86 ) * + CAST( NULL AS SIGNED ) / - CAST( + + 25 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6163
SELECT DISTINCT - ( + + 86 ) * + CAST ( NULL AS INTEGER ) / - CAST ( + + 25 AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + 39 - - - 53 AS col2
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-6165
SELECT - COUNT( * ) * + 19 AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-6165
SELECT - COUNT ( * ) * + 19 AS col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-6166
SELECT - + 89 + + MAX( ALL - ( + 61 ) )
----
-150

skipif mysql # not compatible
query I rowsort label-6166
SELECT - + 89 + + MAX ( ALL - ( + 61 ) )
----
-150

query II rowsort
SELECT DISTINCT ( 64 ) * - 76 AS col0, 49 AS col2
----
-4864
49

onlyif mysql # aggregate syntax: 
query I rowsort label-6168
SELECT ALL MAX( 21 ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-6168
SELECT ALL MAX ( 21 ) AS col1
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-6169
SELECT DISTINCT + 32 DIV + 26
----
1

skipif mysql # not compatible
query I rowsort label-6169
SELECT DISTINCT + 32 / + 26
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6170
SELECT + MAX( DISTINCT - 63 ) DIV - + 14 - + - 84
----
88

skipif mysql # not compatible
query I rowsort label-6170
SELECT + MAX ( DISTINCT - 63 ) / - + 14 - + - 84
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6171
SELECT - CAST( NULL AS SIGNED ) / - 65 * 67
----
NULL

skipif mysql # not compatible
query I rowsort label-6171
SELECT - CAST ( NULL AS INTEGER ) / - 65 * 67
----
NULL

query I rowsort
SELECT + 13 * + 4 * 23 * 43
----
51428

query I rowsort
SELECT DISTINCT - 32 + - 69 / - ( ( - - CASE - + 60 WHEN + 48 + + + 8 / + + 5 THEN + + 60 END ) ) * - 9 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6174
SELECT DISTINCT CASE - - 26 WHEN + + 6 THEN NULL ELSE - - COALESCE ( - MAX( DISTINCT - + ( + 72 ) ), + ( - + 3 ) ) END
----
72

skipif mysql # not compatible
query I rowsort label-6174
SELECT DISTINCT CASE - - 26 WHEN + + 6 THEN NULL ELSE - - COALESCE ( - MAX ( DISTINCT - + ( + 72 ) ), + ( - + 3 ) ) END
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-6175
SELECT - 71 + NULLIF ( COUNT( DISTINCT + 17 ), + 55 ) AS col1, + 91
----
-70
91

skipif mysql # not compatible
query II rowsort label-6175
SELECT - 71 + NULLIF ( COUNT ( DISTINCT + 17 ), + 55 ) AS col1, + 91
----
-70
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6176
SELECT - NULLIF ( + + 1, 21 - + COUNT( * ) * + + MIN( ALL - 22 ) * + + CAST( NULL AS SIGNED ) + - NULLIF ( - 70, - 35 + - 97 ) * 12 * 5 / + COUNT( * ) + + - ( - 85 ) + - NULLIF ( + 5, + MAX( - 80 ) + 60 ) ) * + 58 AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-6176
SELECT - NULLIF ( + + 1, 21 - + COUNT ( * ) * + + MIN ( ALL - 22 ) * + + CAST ( NULL AS INTEGER ) + - NULLIF ( - 70, - 35 + - 97 ) * 12 * 5 / + COUNT ( * ) + + - ( - 85 ) + - NULLIF ( + 5, + MAX ( - 80 ) + 60 ) ) * + 58 AS col2
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-6177
SELECT DISTINCT 27 * 16 DIV 81 + + 15
----
20

skipif mysql # not compatible
query I rowsort label-6177
SELECT DISTINCT 27 * 16 / 81 + + 15
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6178
SELECT DISTINCT + COUNT( * ) * 69
----
69

skipif mysql # not compatible
query I rowsort label-6178
SELECT DISTINCT + COUNT ( * ) * 69
----
69

query I rowsort
SELECT - 11 * + + 23 col1
----
-253

onlyif mysql # aggregate syntax: 
query I rowsort label-6180
SELECT DISTINCT + 43 * NULLIF ( + COUNT( * ), - 74 * 60 - - ( + 62 ) ) col0
----
43

skipif mysql # not compatible
query I rowsort label-6180
SELECT DISTINCT + 43 * NULLIF ( + COUNT ( * ), - 74 * 60 - - ( + 62 ) ) col0
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6181
SELECT ALL CAST( NULL AS SIGNED ) * ( COUNT( 97 ) ) + 29 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6181
SELECT ALL CAST ( NULL AS INTEGER ) * ( COUNT ( 97 ) ) + 29 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6182
SELECT CAST( + 68 AS SIGNED ) * + 57 - 73 * 8
----
3292

skipif mysql # not compatible
query I rowsort label-6182
SELECT CAST ( + 68 AS INTEGER ) * + 57 - 73 * 8
----
3292

onlyif mysql # aggregate syntax: 
query I rowsort label-6183
SELECT CASE NULLIF ( - 82, 98 ) WHEN ( MIN( + 34 ) ) THEN + 80 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6183
SELECT CASE NULLIF ( - 82, 98 ) WHEN ( MIN ( + 34 ) ) THEN + 80 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6184
SELECT ALL + CAST( 8 AS SIGNED )
----
8

skipif mysql # not compatible
query I rowsort label-6184
SELECT ALL + CAST ( 8 AS INTEGER )
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-6185
SELECT + ( + 53 ) DIV + 96 + + 11 * 33 AS col0
----
363

skipif mysql # not compatible
query I rowsort label-6185
SELECT + ( + 53 ) / + 96 + + 11 * 33 AS col0
----
363

query I rowsort
SELECT + 81 * - 63
----
-5103

query I rowsort
SELECT - 51 + + 87
----
36

query I rowsort
SELECT + NULLIF ( - ( 24 ), NULLIF ( 28, 75 ) * 49 + - COALESCE ( - 23, + 41 ) / - 76 ) AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-6189
SELECT ALL + COUNT( * ) * 71 - 63 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-6189
SELECT ALL + COUNT ( * ) * 71 - 63 AS col0
----
8

query I rowsort
SELECT NULLIF ( - 72, + ( + 43 ) )
----
-72

query I rowsort
SELECT DISTINCT ( 61 ) * 86 - 53 * + 18
----
4292

query I rowsort
SELECT ALL 57 * - 69
----
-3933

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6193
SELECT DISTINCT - COUNT( * ) DIV 8
----
0

skipif mysql # not compatible
query I rowsort label-6193
SELECT DISTINCT - COUNT ( * ) / 8
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6194
SELECT DISTINCT + COUNT( * ) * + 78 - + 57 AS col0
----
21

skipif mysql # not compatible
query I rowsort label-6194
SELECT DISTINCT + COUNT ( * ) * + 78 - + 57 AS col0
----
21

query I rowsort
SELECT + 98 + - 99 AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6196
SELECT - 9 DIV - 96 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6196
SELECT - 9 / - 96 AS col1
----
0

query I rowsort
SELECT + 15 * 61 col2
----
915

query I rowsort
SELECT ALL 21 * - 35 AS col1
----
-735

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6199
SELECT ALL CASE + 39 WHEN - 12 THEN + CAST( NULL AS SIGNED ) DIV + 37 ELSE 24 END * - COALESCE ( + 21, + 63 ) AS col0
----
-504

skipif mysql # not compatible
query I rowsort label-6199
SELECT ALL CASE + 39 WHEN - 12 THEN + CAST ( NULL AS INTEGER ) / + 37 ELSE 24 END * - COALESCE ( + 21, + 63 ) AS col0
----
-504

query I rowsort
SELECT - 85 + 15 AS col1
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-6201
SELECT + MIN( + 40 ) * 73 AS col2
----
2920

skipif mysql # not compatible
query I rowsort label-6201
SELECT + MIN ( + 40 ) * 73 AS col2
----
2920

onlyif mysql # aggregate syntax: 
query I rowsort label-6202
SELECT SUM( ( 31 ) ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-6202
SELECT SUM ( ( 31 ) ) AS col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6203
SELECT 26 * 23 + COUNT( * ) AS col0
----
599

skipif mysql # not compatible
query I rowsort label-6203
SELECT 26 * 23 + COUNT ( * ) AS col0
----
599

query I rowsort
SELECT - NULLIF ( 49, 32 ) AS col0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-6205
SELECT MAX( DISTINCT ( 17 ) )
----
17

skipif mysql # not compatible
query I rowsort label-6205
SELECT MAX ( DISTINCT ( 17 ) )
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6206
SELECT + MIN( DISTINCT COALESCE ( CAST( + 88 AS SIGNED ), - 45 DIV 8, 32 ) ) * + 89 col1
----
7832

skipif mysql # not compatible
query I rowsort label-6206
SELECT + MIN ( DISTINCT COALESCE ( CAST ( + 88 AS INTEGER ), - 45 / 8, 32 ) ) * + 89 col1
----
7832

onlyif mysql # aggregate syntax: 
query I rowsort label-6207
SELECT ALL ( MAX( 43 ) ) * + CASE 64 + + ( CASE 4 WHEN 53 * + 32 + COUNT( * ) THEN - 93 + - 70 WHEN + 63 - 27 THEN NULL END ) WHEN + 17 THEN + 99 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6207
SELECT ALL ( MAX ( 43 ) ) * + CASE 64 + + ( CASE 4 WHEN 53 * + 32 + COUNT ( * ) THEN - 93 + - 70 WHEN + 63 - 27 THEN NULL END ) WHEN + 17 THEN + 99 END
----
NULL

query I rowsort
SELECT DISTINCT ( 13 ) * - 20 AS col1
----
-260

query I rowsort
SELECT + NULLIF ( 58, + 20 ) + + 11 * + 20 AS col2
----
278

query I rowsort
SELECT + ( + COALESCE ( 34, 33 * 26 - - 75 * + 23 ) ) * 56 AS col2
----
1904

query I rowsort
SELECT + 84 + - 38 * - 50
----
1984

query I rowsort
SELECT ALL 7 + + 99 AS col2
----
106

query I rowsort
SELECT - 95 * + 18
----
-1710

query I rowsort
SELECT DISTINCT 1 + - 63 * 1 AS col1
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6215
SELECT ALL MAX( DISTINCT CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6215
SELECT ALL MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT ALL - 28 * - 78
----
2184

query I rowsort
SELECT ALL - 19 + - ( + 14 ) * 97
----
-1377

query I rowsort
SELECT + 59 + - NULLIF ( 91, 37 )
----
-32

query I rowsort
SELECT DISTINCT 65 * 55 AS col2
----
3575

query I rowsort
SELECT ALL + 56 + 23 AS col2
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6221
SELECT - ( + 55 ) + CAST( - 95 + - NULLIF ( 14, 15 * - CAST( NULL AS SIGNED ) + NULLIF ( + COUNT( * ), - COALESCE ( ( 26 ), 51 * - ( ( - 29 ) ), COALESCE ( 55, - CAST( NULL AS SIGNED ) ) ) ) ) AS SIGNED ) AS col1
----
-164

skipif mysql # not compatible
query I rowsort label-6221
SELECT - ( + 55 ) + CAST ( - 95 + - NULLIF ( 14, 15 * - CAST ( NULL AS INTEGER ) + NULLIF ( + COUNT ( * ), - COALESCE ( ( 26 ), 51 * - ( ( - 29 ) ), COALESCE ( 55, - CAST ( NULL AS INTEGER ) ) ) ) ) AS INTEGER ) AS col1
----
-164

query I rowsort
SELECT ALL 41 + 76
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-6223
SELECT DISTINCT MAX( DISTINCT - 48 )
----
-48

skipif mysql # not compatible
query I rowsort label-6223
SELECT DISTINCT MAX ( DISTINCT - 48 )
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6224
SELECT 83 / CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + 78 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6224
SELECT 83 / CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + 78 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6225
SELECT - CAST( NULL AS SIGNED ) / 18 + - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-6225
SELECT - CAST ( NULL AS INTEGER ) / 18 + - 58
----
NULL

query I rowsort
SELECT + ( - 35 ) + + 92 * 8 AS col1
----
701

onlyif mysql # DIV for integer division: 
query I rowsort label-6227
SELECT - 66 DIV + 14 - 17 AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-6227
SELECT - 66 / + 14 - 17 AS col2
----
-21

query I rowsort
SELECT - 64 * 96
----
-6144

query I rowsort
SELECT - - 40 + 78 AS col0
----
118

onlyif mysql # DIV for integer division: 
query I rowsort label-6230
SELECT ALL - 35 DIV 98
----
0

skipif mysql # not compatible
query I rowsort label-6230
SELECT ALL - 35 / 98
----
0

query I rowsort
SELECT - + 32 * 30 + + 38 * 5 col1
----
-770

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6232
SELECT - COALESCE ( COUNT( * ), 59 DIV ( 40 ) - + 92 ) * + 90 AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-6232
SELECT - COALESCE ( COUNT ( * ), 59 / ( 40 ) - + 92 ) * + 90 AS col0
----
-90

query I rowsort
SELECT DISTINCT + - 6 * 79
----
-474

onlyif mysql # DIV for integer division: 
query I rowsort label-6234
SELECT DISTINCT 89 DIV + 34 - + 31 AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-6234
SELECT DISTINCT 89 / + 34 - + 31 AS col0
----
-29

query I rowsort
SELECT ALL + - 56 * - 36 AS col2
----
2016

onlyif mysql # aggregate syntax: 
query I rowsort label-6236
SELECT ALL + - COUNT( - 64 )
----
-1

skipif mysql # not compatible
query I rowsort label-6236
SELECT ALL + - COUNT ( - 64 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6237
SELECT DISTINCT - 83 * NULLIF ( 96 + - ( COUNT( * ) ) * 38, CAST( + 4 AS SIGNED ) * COUNT( * ) ) AS col0
----
-4814

skipif mysql # not compatible
query I rowsort label-6237
SELECT DISTINCT - 83 * NULLIF ( 96 + - ( COUNT ( * ) ) * 38, CAST ( + 4 AS INTEGER ) * COUNT ( * ) ) AS col0
----
-4814

onlyif mysql # aggregate syntax: 
query I rowsort label-6238
SELECT DISTINCT + CASE + 13 WHEN + MIN( ALL + 30 ) + 10 THEN NULL WHEN COUNT( * ) THEN NULL ELSE MAX( - 40 ) + - 21 END AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-6238
SELECT DISTINCT + CASE + 13 WHEN + MIN ( ALL + 30 ) + 10 THEN NULL WHEN COUNT ( * ) THEN NULL ELSE MAX ( - 40 ) + - 21 END AS col2
----
-61

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6239
SELECT ALL - + 64 * CASE - 25 WHEN ( + 66 ) * 54 + 88 THEN NULL WHEN + 97 THEN - COUNT( * ) WHEN 55 THEN 90 * + 50 ELSE + CAST( NULL AS DECIMAL ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6239
SELECT ALL - + 64 * CASE - 25 WHEN ( + 66 ) * 54 + 88 THEN NULL WHEN + 97 THEN - COUNT ( * ) WHEN 55 THEN 90 * + 50 ELSE + CAST ( NULL AS REAL ) END AS col1
----
NULL

query I rowsort
SELECT 76 * - 77 AS col2
----
-5852

query I rowsort
SELECT ( + 5 ) col1
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6242
SELECT ( COALESCE ( + NULLIF ( 36, NULLIF ( - CAST( + 54 AS SIGNED ), - 77 - 9 ) * + AVG ( 53 ) + 24 ), 78 ) )
----
36

skipif mysql # not compatible
query I rowsort label-6242
SELECT ( COALESCE ( + NULLIF ( 36, NULLIF ( - CAST ( + 54 AS INTEGER ), - 77 - 9 ) * + AVG ( 53 ) + 24 ), 78 ) )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-6243
SELECT ( - CASE 70 WHEN COALESCE ( + 24, - NULLIF ( + 64, - COUNT( * ) + 37 * 1 ) ) THEN CASE + 48 WHEN AVG ( DISTINCT - 99 ) * + 48 THEN SUM( + ( ( + 86 ) ) ) - - 63 WHEN ( 7 ) + - 54 THEN + 3 ELSE NULL END * - 95 WHEN 88 THEN NULL END ) * AVG ( ALL 23 - 30 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6243
SELECT ( - CASE 70 WHEN COALESCE ( + 24, - NULLIF ( + 64, - COUNT ( * ) + 37 * 1 ) ) THEN CASE + 48 WHEN AVG ( DISTINCT - 99 ) * + 48 THEN SUM ( + ( ( + 86 ) ) ) - - 63 WHEN ( 7 ) + - 54 THEN + 3 ELSE NULL END * - 95 WHEN 88 THEN NULL END ) * AVG ( ALL 23 - 30 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6244
SELECT 55 DIV CASE + ( COUNT( * ) ) WHEN CAST( NULL AS SIGNED ) * 90 THEN + 98 DIV COUNT( * ) ELSE 16 * - ( + 7 ) END col1
----
0

skipif mysql # not compatible
query I rowsort label-6244
SELECT 55 / CASE + ( COUNT ( * ) ) WHEN CAST ( NULL AS INTEGER ) * 90 THEN + 98 / COUNT ( * ) ELSE 16 * - ( + 7 ) END col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6245
SELECT DISTINCT 69 DIV - 64
----
-1

skipif mysql # not compatible
query I rowsort label-6245
SELECT DISTINCT 69 / - 64
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6246
SELECT ALL - 59 DIV - 81 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6246
SELECT ALL - 59 / - 81 AS col2
----
0

query I rowsort
SELECT ALL 20 * - 55 * 2 AS col1
----
-2200

query I rowsort
SELECT 66 + + 71 + ( + 55 )
----
192

query I rowsort
SELECT DISTINCT - 50 + + 38 * + 24
----
862

query I rowsort
SELECT ALL 7 + 7 * 38
----
273

onlyif mysql # aggregate syntax: 
query I rowsort label-6251
SELECT ALL 66 + COUNT( 82 ) + + 56 AS col0
----
123

skipif mysql # not compatible
query I rowsort label-6251
SELECT ALL 66 + COUNT ( 82 ) + + 56 AS col0
----
123

onlyif mysql # DIV for integer division: 
query I rowsort label-6252
SELECT 50 - ( - 16 ) DIV - 54
----
50

skipif mysql # not compatible
query I rowsort label-6252
SELECT 50 - ( - 16 ) / - 54
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-6253
SELECT 56 DIV + + 81 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6253
SELECT 56 / + + 81 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6254
SELECT COUNT( ALL 79 ) + + COUNT( * ) * + 18
----
19

skipif mysql # not compatible
query I rowsort label-6254
SELECT COUNT ( ALL 79 ) + + COUNT ( * ) * + 18
----
19

query I rowsort
SELECT DISTINCT 1 + + 63 AS col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6256
SELECT ALL SUM( ALL 3 ) * - 95
----
-285

skipif mysql # not compatible
query I rowsort label-6256
SELECT ALL SUM ( ALL 3 ) * - 95
----
-285

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6257
SELECT ALL - 33 + + MIN( CAST( 20 AS SIGNED ) ) * 49
----
947

skipif mysql # not compatible
query I rowsort label-6257
SELECT ALL - 33 + + MIN ( CAST ( 20 AS INTEGER ) ) * 49
----
947

query I rowsort
SELECT ALL 54 + 13 + - 54 AS col0
----
13

query I rowsort
SELECT ALL 12 + 98
----
110

query I rowsort
SELECT 91 * - ( 9 ) AS col1
----
-819

onlyif mysql # aggregate syntax: 
query I rowsort label-6261
SELECT CASE - 73 WHEN 61 - 97 * 7 THEN + 66 END - COUNT( 48 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6261
SELECT CASE - 73 WHEN 61 - 97 * 7 THEN + 66 END - COUNT ( 48 )
----
NULL

query I rowsort
SELECT ALL 18 + - ( 40 ) * 37 AS col2
----
-1462

onlyif mysql # aggregate syntax: 
query I rowsort label-6263
SELECT 81 * MIN( - 20 ) col0
----
-1620

skipif mysql # not compatible
query I rowsort label-6263
SELECT 81 * MIN ( - 20 ) col0
----
-1620

query I rowsort
SELECT 16 + - - 28 AS col0
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-6265
SELECT DISTINCT 11 * 9 DIV 62 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6265
SELECT DISTINCT 11 * 9 / 62 AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6266
SELECT 26 + - + 8 + CASE + 38 - ( 35 + 24 ) WHEN 68 * - 88 THEN + 66 WHEN COUNT( * ) - - CAST( - 26 + MAX( 26 + 25 * + 33 ) AS SIGNED ) THEN NULL END / - ( + ( 55 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6266
SELECT 26 + - + 8 + CASE + 38 - ( 35 + 24 ) WHEN 68 * - 88 THEN + 66 WHEN COUNT ( * ) - - CAST ( - 26 + MAX ( 26 + 25 * + 33 ) AS INTEGER ) THEN NULL END / - ( + ( 55 ) )
----
NULL

query I rowsort
SELECT ALL 46 * + ( - 92 ) col0
----
-4232

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6268
SELECT ALL 45 DIV - - CAST( - COUNT( * ) AS SIGNED ) + + 90 * ( + 47 + 41 * + 91 )
----
339975

skipif mysql # not compatible
query I rowsort label-6268
SELECT ALL 45 / - - CAST ( - COUNT ( * ) AS INTEGER ) + + 90 * ( + 47 + 41 * + 91 )
----
339975

onlyif mysql # aggregate syntax: 
query I rowsort label-6269
SELECT DISTINCT - COUNT( * ) - - 27 + 94
----
120

skipif mysql # not compatible
query I rowsort label-6269
SELECT DISTINCT - COUNT ( * ) - - 27 + 94
----
120

query I rowsort
SELECT DISTINCT - - 66 * + 34
----
2244

query I rowsort
SELECT DISTINCT - - 41 - + NULLIF ( - 51, - 98 ) * 47
----
2438

query I rowsort
SELECT 91 * + 50 AS col1
----
4550

onlyif mysql # aggregate syntax: 
query I rowsort label-6273
SELECT DISTINCT - MIN( DISTINCT 68 ) AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-6273
SELECT DISTINCT - MIN ( DISTINCT 68 ) AS col2
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6274
SELECT DISTINCT - + CAST( COUNT( * ) AS SIGNED ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-6274
SELECT DISTINCT - + CAST ( COUNT ( * ) AS INTEGER ) col1
----
-1

query I rowsort
SELECT ALL - ( 97 ) AS col0
----
-97

query I rowsort
SELECT + 64 - - 82
----
146

query I rowsort
SELECT + COALESCE ( + + 90, 29 ) col0
----
90

query I rowsort
SELECT + 38 * - 75 AS col2
----
-2850

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6279
SELECT - ( - COALESCE ( 92, CAST( NULL AS SIGNED ) ) ) * 87 + CASE 27 - + ( SUM( ALL + 29 ) - 26 ) WHEN 79 THEN 43 WHEN 61 THEN NULL WHEN 4 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6279
SELECT - ( - COALESCE ( 92, CAST ( NULL AS INTEGER ) ) ) * 87 + CASE 27 - + ( SUM ( ALL + 29 ) - 26 ) WHEN 79 THEN 43 WHEN 61 THEN NULL WHEN 4 THEN NULL ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT - ( 43 ) AS col1
----
-43

query I rowsort
SELECT 39 * 95 AS col0
----
3705

query I rowsort
SELECT ALL - 38 + - - ( 90 ) AS col2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6283
SELECT 70 - COUNT( * ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-6283
SELECT 70 - COUNT ( * ) AS col2
----
69

query I rowsort
SELECT DISTINCT + - 57 + + + 8
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-6285
SELECT + 40 * - MIN( DISTINCT + 93 ) - + 73 AS col0
----
-3793

skipif mysql # not compatible
query I rowsort label-6285
SELECT + 40 * - MIN ( DISTINCT + 93 ) - + 73 AS col0
----
-3793

query I rowsort
SELECT DISTINCT - 94 * - 58 AS col2
----
5452

query I rowsort
SELECT 62 + - - 49 * - 85 AS col1
----
-4103

onlyif mysql # aggregate syntax: 
query I rowsort label-6288
SELECT ALL - - 44 + - 34 - CASE 9 + 98 WHEN - 43 THEN ( - 38 ) WHEN - ( 57 ) THEN SUM( 56 ) ELSE ( 17 ) END * 56 * 6 AS col1
----
-5702

skipif mysql # not compatible
query I rowsort label-6288
SELECT ALL - - 44 + - 34 - CASE 9 + 98 WHEN - 43 THEN ( - 38 ) WHEN - ( 57 ) THEN SUM ( 56 ) ELSE ( 17 ) END * 56 * 6 AS col1
----
-5702

query II rowsort
SELECT + 30 AS col2, 38
----
30
38

onlyif mysql # aggregate syntax: 
query I rowsort label-6290
SELECT ALL + 0 + - - COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6290
SELECT ALL + 0 + - - COUNT ( * ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6291
SELECT COUNT( * ) * + + COUNT( * ) + + COUNT( ALL + 36 ) * + 81
----
82

skipif mysql # not compatible
query I rowsort label-6291
SELECT COUNT ( * ) * + + COUNT ( * ) + + COUNT ( ALL + 36 ) * + 81
----
82

query I rowsort
SELECT 95 - + 59 * + 6 * - CASE + 68 WHEN ( + ( - 67 ) ) THEN 85 END + + ( - 20 ) AS col2
----
NULL

query II rowsort
SELECT - 40 col0, 7
----
-40
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6294
SELECT DISTINCT - COUNT( * ) + + - 56 col1
----
-57

skipif mysql # not compatible
query I rowsort label-6294
SELECT DISTINCT - COUNT ( * ) + + - 56 col1
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6295
SELECT ALL 13 + - - 81 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6295
SELECT ALL 13 + - - 81 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 85 * + 18 * + 8
----
12240

query I rowsort
SELECT 94 + + 4 AS col2
----
98

query I rowsort
SELECT 75 * + + 14
----
1050

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6299
SELECT COUNT( * ) * - 79 DIV 73 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6299
SELECT COUNT ( * ) * - 79 / 73 AS col0
----
-1

query I rowsort
SELECT 81 + - 83 + + + 60 + ( 47 ) * + 12 AS col1
----
622

onlyif mysql # aggregate syntax: 
query II rowsort label-6301
SELECT - 15 AS col2, + ( ( + 6 ) ) + - NULLIF ( - 65 + 60 * COUNT( * ), - 90 + 86 * 38 ) * COUNT( * ) AS col1
----
-15
11

skipif mysql # not compatible
query II rowsort label-6301
SELECT - 15 AS col2, + ( ( + 6 ) ) + - NULLIF ( - 65 + 60 * COUNT ( * ), - 90 + 86 * 38 ) * COUNT ( * ) AS col1
----
-15
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6302
SELECT COUNT( * ) + - 32 + - 53
----
-84

skipif mysql # not compatible
query I rowsort label-6302
SELECT COUNT ( * ) + - 32 + - 53
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6303
SELECT ALL 74 AS col1, - 14 + + CAST( NULL AS SIGNED ) * - 51 AS col2
----
74
NULL

skipif mysql # not compatible
query II rowsort label-6303
SELECT ALL 74 AS col1, - 14 + + CAST ( NULL AS INTEGER ) * - 51 AS col2
----
74
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6304
SELECT DISTINCT MIN( DISTINCT ( - 17 ) ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-6304
SELECT DISTINCT MIN ( DISTINCT ( - 17 ) ) AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-6305
SELECT ALL NULLIF ( + + COUNT( * ), + COALESCE ( CASE + 12 WHEN 2 * - CASE - 0 WHEN + 6 THEN 73 / 89 - - 77 WHEN - 88 + 25 THEN NULL ELSE + NULLIF ( - 89, COUNT( * ) ) + + 69 END THEN NULL WHEN 39 THEN NULL WHEN COUNT( * ) THEN - COUNT( * ) + - 91 * - 67 ELSE NULL END, 46 * ( - ( 96 ) * 63 ), 48 ) * 28 + 44 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6305
SELECT ALL NULLIF ( + + COUNT ( * ), + COALESCE ( CASE + 12 WHEN 2 * - CASE - 0 WHEN + 6 THEN 73 / 89 - - 77 WHEN - 88 + 25 THEN NULL ELSE + NULLIF ( - 89, COUNT ( * ) ) + + 69 END THEN NULL WHEN 39 THEN NULL WHEN COUNT ( * ) THEN - COUNT ( * ) + - 91 * - 67 ELSE NULL END, 46 * ( - ( 96 ) * 63 ), 48 ) * 28 + 44 ) AS col0
----
1

query I rowsort
SELECT + 82 + - 82 AS col2
----
0

query II rowsort
SELECT 33 col2, - 1
----
33
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6308
SELECT + CAST( - + 47 AS SIGNED ) + - + 26 DIV - 90 AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-6308
SELECT + CAST ( - + 47 AS INTEGER ) + - + 26 / - 90 AS col2
----
-47

query II rowsort
SELECT + 60, + 17 AS col0
----
60
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6310
SELECT - - 80 DIV - 70 + + - NULLIF ( + ( 97 ), + COUNT( DISTINCT 10 ) * SUM( ALL 92 ) ) + 50 DIV 88 AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-6310
SELECT - - 80 / - 70 + + - NULLIF ( + ( 97 ), + COUNT ( DISTINCT 10 ) * SUM ( ALL 92 ) ) + 50 / 88 AS col1
----
-98

query I rowsort
SELECT + 62 + - - 84
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-6312
SELECT ALL COUNT( * ) * - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6312
SELECT ALL COUNT ( * ) * - COUNT ( * ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6313
SELECT + 76 * 98 + 20 DIV NULLIF ( + 23 - - 50 * + ( 83 - - 83 ), + CAST( NULL AS SIGNED ) + + 98 )
----
7448

skipif mysql # not compatible
query I rowsort label-6313
SELECT + 76 * 98 + 20 / NULLIF ( + 23 - - 50 * + ( 83 - - 83 ), + CAST ( NULL AS INTEGER ) + + 98 )
----
7448

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6314
SELECT + + COUNT( * ) DIV + + ( - + 41 )
----
0

skipif mysql # not compatible
query I rowsort label-6314
SELECT + + COUNT ( * ) / + + ( - + 41 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6315
SELECT DISTINCT 47 * + 8 + - 51 * + COUNT( * ) AS col1
----
325

skipif mysql # not compatible
query I rowsort label-6315
SELECT DISTINCT 47 * + 8 + - 51 * + COUNT ( * ) AS col1
----
325

onlyif mysql # DIV for integer division: 
query I rowsort label-6316
SELECT DISTINCT 63 DIV - + 89 + - 34 AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-6316
SELECT DISTINCT 63 / - + 89 + - 34 AS col1
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6317
SELECT ALL + COUNT( * ) AS col0, COALESCE ( + COUNT( * ), 1 DIV - COUNT( * ), COUNT( 69 ) * - 56 ) DIV COUNT( * ) AS col2
----
1
1

skipif mysql # not compatible
query II rowsort label-6317
SELECT ALL + COUNT ( * ) AS col0, COALESCE ( + COUNT ( * ), 1 / - COUNT ( * ), COUNT ( 69 ) * - 56 ) / COUNT ( * ) AS col2
----
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6318
SELECT ALL + + 26 * + + 49 + 64 + + 10 DIV COUNT( * )
----
1348

skipif mysql # not compatible
query I rowsort label-6318
SELECT ALL + + 26 * + + 49 + 64 + + 10 / COUNT ( * )
----
1348

onlyif mysql # aggregate syntax: 
query I rowsort label-6319
SELECT DISTINCT + - 60 * + - 32 + COUNT( * ) AS col1
----
1921

skipif mysql # not compatible
query I rowsort label-6319
SELECT DISTINCT + - 60 * + - 32 + COUNT ( * ) AS col1
----
1921

onlyif mysql # aggregate syntax: 
query I rowsort label-6320
SELECT ALL + + CASE WHEN NOT 16 IS NOT NULL THEN - 69 - COUNT( * ) ELSE - COUNT( * ) * COUNT( * ) END col2
----
-1

skipif mysql # not compatible
query I rowsort label-6320
SELECT ALL + + CASE WHEN NOT 16 IS NOT NULL THEN - 69 - COUNT ( * ) ELSE - COUNT ( * ) * COUNT ( * ) END col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6321
SELECT + + ( - - 93 ) DIV 70
----
1

skipif mysql # not compatible
query I rowsort label-6321
SELECT + + ( - - 93 ) / 70
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6322
SELECT + 13 * - 68 + - 37 * + CAST( + 86 * 22 AS SIGNED ) AS col0
----
-70888

skipif mysql # not compatible
query I rowsort label-6322
SELECT + 13 * - 68 + - 37 * + CAST ( + 86 * 22 AS INTEGER ) AS col0
----
-70888

onlyif mysql # aggregate syntax: 
query I rowsort label-6323
SELECT ALL - 0 * + 44 + - + 11 / NULLIF ( COUNT( * ), COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6323
SELECT ALL - 0 * + 44 + - + 11 / NULLIF ( COUNT ( * ), COUNT ( * ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6324
SELECT + 28 AS col2, - COUNT( * ) * + CAST( NULL AS SIGNED )
----
28
NULL

skipif mysql # not compatible
query II rowsort label-6324
SELECT + 28 AS col2, - COUNT ( * ) * + CAST ( NULL AS INTEGER )
----
28
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6325
SELECT - - COUNT( * ) * + CAST( + + 27 AS SIGNED ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-6325
SELECT - - COUNT ( * ) * + CAST ( + + 27 AS INTEGER ) AS col1
----
27

query I rowsort
SELECT DISTINCT 54 * - - 85 + + ( - 99 ) + - 18
----
4473

query II rowsort
SELECT + 90 + + 68 AS col1, + 28 AS col2
----
158
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6328
SELECT - CAST( - 29 AS SIGNED ) + + 52 * + + 5 + - COUNT( * )
----
288

skipif mysql # not compatible
query I rowsort label-6328
SELECT - CAST ( - 29 AS INTEGER ) + + 52 * + + 5 + - COUNT ( * )
----
288

onlyif mysql # aggregate syntax: 
query II rowsort label-6329
SELECT COUNT( DISTINCT 65 ) AS col2, COUNT( * ) AS col0
----
1
1

skipif mysql # not compatible
query II rowsort label-6329
SELECT COUNT ( DISTINCT 65 ) AS col2, COUNT ( * ) AS col0
----
1
1

query I rowsort
SELECT + 25 * - 43
----
-1075

query I rowsort
SELECT ALL 43 * - + ( 23 ) + + + 68 * + 14
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6332
SELECT ALL 49 * + ( 97 ) - - 35 DIV SUM( + 64 DIV - 19 - + ( 0 ) ) AS col0
----
4742

skipif mysql # not compatible
query I rowsort label-6332
SELECT ALL 49 * + ( 97 ) - - 35 / SUM ( + 64 / - 19 - + ( 0 ) ) AS col0
----
4742

onlyif mysql # aggregate syntax: 
query I rowsort label-6333
SELECT DISTINCT - COUNT( * ) * + 74 AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-6333
SELECT DISTINCT - COUNT ( * ) * + 74 AS col1
----
-74

query I rowsort
SELECT ALL CASE - 67 WHEN + + 19 - + 11 THEN + 83 WHEN + 33 THEN NULL END col1
----
NULL

query I rowsort
SELECT DISTINCT 42 - - 28
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-6336
SELECT ALL - 97 * - SUM( DISTINCT + - 7 ) AS col1
----
-679

skipif mysql # not compatible
query I rowsort label-6336
SELECT ALL - 97 * - SUM ( DISTINCT + - 7 ) AS col1
----
-679

query I rowsort
SELECT ALL + 24 * 23
----
552

query I rowsort
SELECT DISTINCT + 15 * + 95 * 73
----
104025

query I rowsort
SELECT - 65 * 26 AS col0
----
-1690

onlyif mysql # aggregate syntax: 
query I rowsort label-6340
SELECT - 29 * 85 * + COUNT( * )
----
-2465

skipif mysql # not compatible
query I rowsort label-6340
SELECT - 29 * 85 * + COUNT ( * )
----
-2465

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6341
SELECT ALL ( + 43 ) AS col2, - 3 * + + CASE CAST( ( - CAST( NULL AS SIGNED ) ) AS SIGNED ) WHEN 50 / - 32 THEN 88 * - 42 WHEN 75 THEN NULL ELSE NULL END col2
----
43
NULL

skipif mysql # not compatible
query II rowsort label-6341
SELECT ALL ( + 43 ) AS col2, - 3 * + + CASE CAST ( ( - CAST ( NULL AS INTEGER ) ) AS INTEGER ) WHEN 50 / - 32 THEN 88 * - 42 WHEN 75 THEN NULL ELSE NULL END col2
----
43
NULL

query II rowsort
SELECT - 93 * 99 col2, - 20 * + - 65 + + 71 AS col0
----
-9207
1371

query I rowsort
SELECT - - 48 * + 47 + 27 AS col0
----
2283

onlyif mysql # aggregate syntax: 
query I rowsort label-6344
SELECT DISTINCT + COALESCE ( + 18, COUNT( * ) )
----
18

skipif mysql # not compatible
query I rowsort label-6344
SELECT DISTINCT + COALESCE ( + 18, COUNT ( * ) )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-6345
SELECT ALL + MIN( DISTINCT 74 ) * - 33 AS col0
----
-2442

skipif mysql # not compatible
query I rowsort label-6345
SELECT ALL + MIN ( DISTINCT 74 ) * - 33 AS col0
----
-2442

query I rowsort
SELECT - 60 * - + 24 * 58
----
83520

query I rowsort
SELECT - 73 * + 0 + + - 94
----
-94

query I rowsort
SELECT DISTINCT + 60 * + 86
----
5160

query I rowsort
SELECT DISTINCT + - ( 22 )
----
-22

query I rowsort
SELECT + - 16 * - - 21
----
-336

onlyif mysql # aggregate syntax: 
query I rowsort label-6351
SELECT COUNT( * ) * + + 18 + 88 * - 63 col0
----
-5526

skipif mysql # not compatible
query I rowsort label-6351
SELECT COUNT ( * ) * + + 18 + 88 * - 63 col0
----
-5526

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6352
SELECT + 46 * + COALESCE ( + 56, + 93 ) DIV + COUNT( * ) AS col2
----
2576

skipif mysql # not compatible
query I rowsort label-6352
SELECT + 46 * + COALESCE ( + 56, + 93 ) / + COUNT ( * ) AS col2
----
2576

query I rowsort
SELECT ALL - 44 * + + 21 + + + CASE + 17 WHEN + 99 THEN + 38 ELSE NULL END * - 31
----
NULL

query I rowsort
SELECT + ( 48 ) + - - 97 * 64
----
6256

onlyif mysql # aggregate syntax: 
query I rowsort label-6355
SELECT + COALESCE ( + 22, + - 74, + 8 * + 49 - 33 * ( CASE COUNT( ALL 23 ) WHEN 44 THEN NULL WHEN 71 THEN - 68 END - 52 ) ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-6355
SELECT + COALESCE ( + 22, + - 74, + 8 * + 49 - 33 * ( CASE COUNT ( ALL 23 ) WHEN 44 THEN NULL WHEN 71 THEN - 68 END - 52 ) ) AS col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6356
SELECT + COALESCE ( + 98, + - COUNT( * ) ) + + - CASE - COUNT( * ) WHEN 64 THEN NULL ELSE 85 END
----
13

skipif mysql # not compatible
query I rowsort label-6356
SELECT + COALESCE ( + 98, + - COUNT ( * ) ) + + - CASE - COUNT ( * ) WHEN 64 THEN NULL ELSE 85 END
----
13

query I rowsort
SELECT + ( 83 ) * + 36 + 50
----
3038

query I rowsort
SELECT 1 * - + 28 - + - 13 AS col1
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6359
SELECT + MIN( 38 ) * - - CAST( + 94 AS SIGNED ) + 74 AS col2
----
3646

skipif mysql # not compatible
query I rowsort label-6359
SELECT + MIN ( 38 ) * - - CAST ( + 94 AS INTEGER ) + 74 AS col2
----
3646

query I rowsort
SELECT ALL 7 * + + 92 - - + 72 - ( + + 12 ) AS col0
----
704

query I rowsort
SELECT + 13 * 75 * - 74
----
-72150

onlyif mysql # aggregate syntax: 
query I rowsort label-6362
SELECT + 71 + 6 + + CASE WHEN NOT ( + 23 ) BETWEEN ( + COUNT( * ) ) AND ( COUNT( * ) * - 97 + MIN( ALL + 19 ) * + 71 ) THEN 1 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6362
SELECT + 71 + 6 + + CASE WHEN NOT ( + 23 ) BETWEEN ( + COUNT ( * ) ) AND ( COUNT ( * ) * - 97 + MIN ( ALL + 19 ) * + 71 ) THEN 1 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6363
SELECT ALL COUNT( * ) * 67 * - - 17 - - CASE - COALESCE ( - 11, AVG ( 52 ) ) WHEN - 34 THEN - 97 ELSE NULLIF ( 2, + 18 * + 32 ) END * - CAST( 70 AS SIGNED )
----
999

skipif mysql # not compatible
query I rowsort label-6363
SELECT ALL COUNT ( * ) * 67 * - - 17 - - CASE - COALESCE ( - 11, AVG ( 52 ) ) WHEN - 34 THEN - 97 ELSE NULLIF ( 2, + 18 * + 32 ) END * - CAST ( 70 AS INTEGER )
----
999

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6364
SELECT - 65 DIV - 88 * + - CAST( - 60 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-6364
SELECT - 65 / - 88 * + - CAST ( - 60 AS INTEGER )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6365
SELECT ALL 71 DIV + - 75 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6365
SELECT ALL 71 / + - 75 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6366
SELECT DISTINCT MIN( - 9 )
----
-9

skipif mysql # not compatible
query I rowsort label-6366
SELECT DISTINCT MIN ( - 9 )
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6367
SELECT + COALESCE ( 28, + 87 * + COALESCE ( - COALESCE ( 1, COUNT( * ) - + 90 ), 64 DIV 55, - 56 * + 37 + + 87 ) + + 32 + 42 DIV + 35, - 32 ) + 16 AS col2
----
44

skipif mysql # not compatible
query I rowsort label-6367
SELECT + COALESCE ( 28, + 87 * + COALESCE ( - COALESCE ( 1, COUNT ( * ) - + 90 ), 64 / 55, - 56 * + 37 + + 87 ) + + 32 + 42 / + 35, - 32 ) + 16 AS col2
----
44

query I rowsort
SELECT - 41 - + 40
----
-81

query I rowsort
SELECT ALL - 39 * - 46 AS col1
----
1794

onlyif mysql # DIV for integer division: 
query I rowsort label-6370
SELECT + 29 DIV 30 col1
----
0

skipif mysql # not compatible
query I rowsort label-6370
SELECT + 29 / 30 col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6371
SELECT ALL 35 DIV + - 6 col2
----
-5

skipif mysql # not compatible
query I rowsort label-6371
SELECT ALL 35 / + - 6 col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6372
SELECT DISTINCT MIN( ALL ( + + 41 ) ) AS col0
----
41

skipif mysql # not compatible
query I rowsort label-6372
SELECT DISTINCT MIN ( ALL ( + + 41 ) ) AS col0
----
41

query I rowsort
SELECT DISTINCT ( + - 39 ) AS col0
----
-39

query I rowsort
SELECT ALL + 66 * - 21
----
-1386

onlyif mysql # aggregate syntax: 
query I rowsort label-6375
SELECT ALL SUM( - 21 )
----
-21

skipif mysql # not compatible
query I rowsort label-6375
SELECT ALL SUM ( - 21 )
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6376
SELECT - 26, SUM( + 47 ) DIV - + 60 + + ( COALESCE ( 53, - 51, 5 ) ) + 47 * - 81 * 27 + 54 * 79 AS col2
----
-26
-98470

skipif mysql # not compatible
query II rowsort label-6376
SELECT - 26, SUM ( + 47 ) / - + 60 + + ( COALESCE ( 53, - 51, 5 ) ) + 47 * - 81 * 27 + 54 * 79 AS col2
----
-26
-98470

onlyif mysql # aggregate syntax: 
query I rowsort label-6377
SELECT + NULLIF ( - 0, + COUNT( + 15 ) + - 58 - - ( COUNT( * ) ) ) + 2 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-6377
SELECT + NULLIF ( - 0, + COUNT ( + 15 ) + - 58 - - ( COUNT ( * ) ) ) + 2 AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6378
SELECT COUNT( * ) * + 17 AS col1
----
17

skipif mysql # not compatible
query I rowsort label-6378
SELECT COUNT ( * ) * + 17 AS col1
----
17

query I rowsort
SELECT 7 + + + 70 AS col1
----
77

query II rowsort
SELECT + 0 - 9 * + - 56 col1, - 54 AS col2
----
504
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-6381
SELECT + COUNT( * ) + + ( NULLIF ( + 17, ( COALESCE ( + 81, - 87 * 74 ) ) ) )
----
18

skipif mysql # not compatible
query I rowsort label-6381
SELECT + COUNT ( * ) + + ( NULLIF ( + 17, ( COALESCE ( + 81, - 87 * 74 ) ) ) )
----
18

query II rowsort
SELECT + 83 AS col0, 64
----
83
64

query I rowsort
SELECT ALL - - ( NULLIF ( - 38, - - 97 ) ) + + 61 AS col2
----
23

query I rowsort
SELECT 99 + + 65 + + - 52 * + 33 AS col1
----
-1552

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6385
SELECT ALL + CAST( NULL AS SIGNED ) + + CAST( - ( + ( 64 ) ) AS SIGNED ) * + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-6385
SELECT ALL + CAST ( NULL AS INTEGER ) + + CAST ( - ( + ( 64 ) ) AS INTEGER ) * + 4
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6386
SELECT - 67 + COALESCE ( 30, + 62 * - + 55 + - 6 * + 45, 13 + MAX( 66 + 66 ) ) DIV 94 AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-6386
SELECT - 67 + COALESCE ( 30, + 62 * - + 55 + - 6 * + 45, 13 + MAX ( 66 + 66 ) ) / 94 AS col0
----
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-6387
SELECT DISTINCT - COUNT( * ), 61 AS col0
----
-1
61

skipif mysql # not compatible
query II rowsort label-6387
SELECT DISTINCT - COUNT ( * ), 61 AS col0
----
-1
61

query I rowsort
SELECT DISTINCT + 73 + + 64
----
137

query I rowsort
SELECT ALL - 51 + + + 8 + 72 + + 15 * + 34
----
539

query I rowsort
SELECT - 94 + + + 49
----
-45

query I rowsort
SELECT 68 + 71 AS col0
----
139

onlyif mysql # DIV for integer division: 
query I rowsort label-6392
SELECT DISTINCT - 7 DIV + - 51
----
0

skipif mysql # not compatible
query I rowsort label-6392
SELECT DISTINCT - 7 / + - 51
----
0

query I rowsort
SELECT NULLIF ( + 5, - + ( 67 ) ) AS col1
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6394
SELECT ALL - + CAST( NULL AS SIGNED ) * - 23
----
NULL

skipif mysql # not compatible
query I rowsort label-6394
SELECT ALL - + CAST ( NULL AS INTEGER ) * - 23
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6395
SELECT + 60 DIV - 91 * - - 79
----
0

skipif mysql # not compatible
query I rowsort label-6395
SELECT + 60 / - 91 * - - 79
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6396
SELECT ALL + - 25 - MAX( ALL + - CAST( NULL AS SIGNED ) ) AS col2, - 8 - + 14 + CAST( + CASE - SUM( ALL 7 ) WHEN - 35 THEN NULL ELSE 25 END - + 20 AS SIGNED )
----
NULL
-17

skipif mysql # not compatible
query II rowsort label-6396
SELECT ALL + - 25 - MAX ( ALL + - CAST ( NULL AS INTEGER ) ) AS col2, - 8 - + 14 + CAST ( + CASE - SUM ( ALL 7 ) WHEN - 35 THEN NULL ELSE 25 END - + 20 AS INTEGER )
----
NULL
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-6397
SELECT + COUNT( ALL + - 68 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6397
SELECT + COUNT ( ALL + - 68 ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6398
SELECT 24 DIV - COUNT( * )
----
-24

skipif mysql # not compatible
query I rowsort label-6398
SELECT 24 / - COUNT ( * )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-6399
SELECT DISTINCT - 87 - + + MIN( DISTINCT 73 ) * COUNT( * )
----
-160

skipif mysql # not compatible
query I rowsort label-6399
SELECT DISTINCT - 87 - + + MIN ( DISTINCT 73 ) * COUNT ( * )
----
-160

query II rowsort
SELECT ALL - 59 AS col0, - 9 AS col1
----
-59
-9

query II rowsort
SELECT 52, - 75 col2
----
52
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-6402
SELECT + ( ( - + ( + 98 ) ) ) DIV + 66 - - 39 - 99 DIV 60 AS col1
----
37

skipif mysql # not compatible
query I rowsort label-6402
SELECT + ( ( - + ( + 98 ) ) ) / + 66 - - 39 - 99 / 60 AS col1
----
37

query I rowsort
SELECT ( - 53 ) * - - 34 AS col1
----
-1802

query III rowsort
SELECT + 47, 35 AS col2, + - 71 AS col1
----
47
35
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6405
SELECT 29 + + 2 + + 76 + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6405
SELECT 29 + + 2 + + 76 + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6406
SELECT ALL 47 * + + ( + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6406
SELECT ALL 47 * + + ( + CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT 0 * - 51 AS col0
----
0

query I rowsort
SELECT DISTINCT 82 * + + 29 * - - 15 AS col1
----
35670

query II rowsort
SELECT ALL - 81, 70 * 97 col1
----
-81
6790

onlyif mysql # aggregate syntax: 
query II rowsort label-6410
SELECT DISTINCT 17 AS col2, COUNT( * ) AS col2
----
17
1

skipif mysql # not compatible
query II rowsort label-6410
SELECT DISTINCT 17 AS col2, COUNT ( * ) AS col2
----
17
1

query I rowsort
SELECT 15 * + + 12 AS col0
----
180

query II rowsort
SELECT 21 * 1 AS col2, - 79 * - 23 AS col0
----
21
1817

onlyif mysql # aggregate syntax: 
query I rowsort label-6413
SELECT - 98 + 50 - COUNT( * ) * + 55
----
-103

skipif mysql # not compatible
query I rowsort label-6413
SELECT - 98 + 50 - COUNT ( * ) * + 55
----
-103

onlyif mysql # DIV for integer division: 
query I rowsort label-6414
SELECT ALL + 46 DIV - 24 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6414
SELECT ALL + 46 / - 24 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6415
SELECT COUNT( * ) AS col1, SUM( 75 ) AS col2
----
1
75

skipif mysql # not compatible
query II rowsort label-6415
SELECT COUNT ( * ) AS col1, SUM ( 75 ) AS col2
----
1
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6416
SELECT ALL 12 + CASE 13 WHEN + COALESCE ( - 83, - CASE WHEN NOT NULL > 87 THEN - 72 - 72 WHEN NOT + 12 * + 83 NOT IN ( 71 DIV + 90 ) THEN NULL ELSE NULL END, - 83 * - 24 + 69 ) THEN 31 ELSE 94 END - + MAX( 27 - 43 ) DIV - 38
----
106

skipif mysql # not compatible
query I rowsort label-6416
SELECT ALL 12 + CASE 13 WHEN + COALESCE ( - 83, - CASE WHEN NOT NULL > 87 THEN - 72 - 72 WHEN NOT + 12 * + 83 NOT IN ( 71 / + 90 ) THEN NULL ELSE NULL END, - 83 * - 24 + 69 ) THEN 31 ELSE 94 END - + MAX ( 27 - 43 ) / - 38
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-6417
SELECT DISTINCT + COUNT( * ) + + - SUM( DISTINCT - 64 ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-6417
SELECT DISTINCT + COUNT ( * ) + + - SUM ( DISTINCT - 64 ) AS col2
----
65

query I rowsort
SELECT DISTINCT + 22 + - 32 + + - 54 AS col1
----
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-6419
SELECT ALL - 49 AS col0, COUNT( * )
----
-49
1

skipif mysql # not compatible
query II rowsort label-6419
SELECT ALL - 49 AS col0, COUNT ( * )
----
-49
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6420
SELECT + MAX( ALL + 63 ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-6420
SELECT + MAX ( ALL + 63 ) AS col2
----
63

query I rowsort
SELECT ( + 3 ) - 42 * - - ( + - 57 )
----
2397

onlyif mysql # aggregate syntax: 
query I rowsort label-6422
SELECT - - MIN( + 44 )
----
44

skipif mysql # not compatible
query I rowsort label-6422
SELECT - - MIN ( + 44 )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-6423
SELECT - MAX( - 27 ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-6423
SELECT - MAX ( - 27 ) AS col0
----
27

query I rowsort
SELECT + ( + - 16 )
----
-16

query I rowsort
SELECT 60 * 14 AS col2
----
840

onlyif mysql # aggregate syntax: 
query II rowsort label-6426
SELECT ALL - 28 - - - ( + COUNT( * ) ) * + - 10 AS col1, COUNT( * )
----
-18
1

skipif mysql # not compatible
query II rowsort label-6426
SELECT ALL - 28 - - - ( + COUNT ( * ) ) * + - 10 AS col1, COUNT ( * )
----
-18
1

query II rowsort
SELECT - 67 * 87 - + 66 * + 69, + ( + - 11 ) AS col1
----
-10383
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-6428
SELECT DISTINCT 37 * SUM( 68 ) AS col0
----
2516

skipif mysql # not compatible
query I rowsort label-6428
SELECT DISTINCT 37 * SUM ( 68 ) AS col0
----
2516

query II rowsort
SELECT DISTINCT - + 59, - 45 * + 9 AS col1
----
-59
-405

query I rowsort
SELECT ALL - ( 86 ) col0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-6431
SELECT COUNT( ALL + + 87 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6431
SELECT COUNT ( ALL + + 87 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6432
SELECT 10 DIV - 93 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6432
SELECT 10 / - 93 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6433
SELECT ALL - ( SUM( DISTINCT - 82 ) ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-6433
SELECT ALL - ( SUM ( DISTINCT - 82 ) ) AS col0
----
82

query I rowsort
SELECT 94 + - 81
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-6435
SELECT ALL - COUNT( * ) * 70
----
-70

skipif mysql # not compatible
query I rowsort label-6435
SELECT ALL - COUNT ( * ) * 70
----
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-6436
SELECT 0 DIV - + 47 * - 6 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6436
SELECT 0 / - + 47 * - 6 AS col2
----
0

query I rowsort
SELECT ALL - 66 * 5
----
-330

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-6438
SELECT ALL NULLIF ( + 48, + + CAST( NULL AS DECIMAL ) * + - 6 + - - 44 ) + + NULLIF ( + NULLIF ( COALESCE ( 4, CAST( - 96 AS SIGNED ) ), + COALESCE ( + 13, ( - 34 ) DIV 47 + 56 ) * 65 ), 2 ) DIV 90 AS col0
----
48

skipif mysql # not compatible
query I rowsort label-6438
SELECT ALL NULLIF ( + 48, + + CAST ( NULL AS REAL ) * + - 6 + - - 44 ) + + NULLIF ( + NULLIF ( COALESCE ( 4, CAST ( - 96 AS INTEGER ) ), + COALESCE ( + 13, ( - 34 ) / 47 + 56 ) * 65 ), 2 ) / 90 AS col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-6439
SELECT - 42 * - - 36 + + - SUM( 13 ) AS col1
----
-1525

skipif mysql # not compatible
query I rowsort label-6439
SELECT - 42 * - - 36 + + - SUM ( 13 ) AS col1
----
-1525

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6440
SELECT ALL 76 + CAST( - 60 AS SIGNED ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-6440
SELECT ALL 76 + CAST ( - 60 AS INTEGER ) AS col0
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6441
SELECT 12 * COUNT( * ) + 34 - + CAST( + - 68 AS SIGNED ) * 97 col1
----
6642

skipif mysql # not compatible
query I rowsort label-6441
SELECT 12 * COUNT ( * ) + 34 - + CAST ( + - 68 AS INTEGER ) * 97 col1
----
6642

onlyif mysql # aggregate syntax: 
query I rowsort label-6442
SELECT DISTINCT + CASE + - COUNT( * ) WHEN - 89 THEN - COUNT( * ) WHEN 84 * + 69 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6442
SELECT DISTINCT + CASE + - COUNT ( * ) WHEN - 89 THEN - COUNT ( * ) WHEN 84 * + 69 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6443
SELECT 12 * + + 68 * + 96 + - 10 + + + MIN( ALL - 96 )
----
78230

skipif mysql # not compatible
query I rowsort label-6443
SELECT 12 * + + 68 * + 96 + - 10 + + + MIN ( ALL - 96 )
----
78230

query I rowsort
SELECT - 64 * 25 AS col1
----
-1600

onlyif mysql # DIV for integer division: 
query II rowsort label-6445
SELECT + 70 * - 61 AS col1, - 12 DIV - 12
----
-4270
1

skipif mysql # not compatible
query II rowsort label-6445
SELECT + 70 * - 61 AS col1, - 12 / - 12
----
-4270
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6446
SELECT DISTINCT 75 + 87 + + 59 DIV 98 * - + 3
----
162

skipif mysql # not compatible
query I rowsort label-6446
SELECT DISTINCT 75 + 87 + + 59 / 98 * - + 3
----
162

query I rowsort
SELECT ALL - + 71 + + - 49 AS col1
----
-120

onlyif mysql # aggregate syntax: 
query II rowsort label-6448
SELECT ALL - CASE - 32 WHEN COUNT( * ) THEN + 44 END * - 97 AS col2, - 55
----
NULL
-55

skipif mysql # not compatible
query II rowsort label-6448
SELECT ALL - CASE - 32 WHEN COUNT ( * ) THEN + 44 END * - 97 AS col2, - 55
----
NULL
-55

query I rowsort
SELECT + - 78 - - - 7
----
-85

query III rowsort
SELECT DISTINCT - 73 + + - 15, - 74 AS col0, - 7 AS col0
----
-88
-74
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6451
SELECT DISTINCT 97 + + ( - 78 ) * 60 + - 37 * - COUNT( * ) DIV - 43
----
-4583

skipif mysql # not compatible
query I rowsort label-6451
SELECT DISTINCT 97 + + ( - 78 ) * 60 + - 37 * - COUNT ( * ) / - 43
----
-4583

onlyif mysql # DIV for integer division: 
query II rowsort label-6452
SELECT ( + - 24 ) AS col1, 15 DIV - 3 AS col1
----
-24
-5

skipif mysql # not compatible
query II rowsort label-6452
SELECT ( + - 24 ) AS col1, 15 / - 3 AS col1
----
-24
-5

query I rowsort
SELECT ALL - 23 * + 81 - - 46
----
-1817

onlyif mysql # aggregate syntax: 
query I rowsort label-6454
SELECT + COUNT( * ) + - 84 + + 3 + - MIN( - 13 )
----
-67

skipif mysql # not compatible
query I rowsort label-6454
SELECT + COUNT ( * ) + - 84 + + 3 + - MIN ( - 13 )
----
-67

query I rowsort
SELECT + 98 - + + 1 AS col2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6456
SELECT + - 79 * - + MAX( DISTINCT + 9 )
----
711

skipif mysql # not compatible
query I rowsort label-6456
SELECT + - 79 * - + MAX ( DISTINCT + 9 )
----
711

onlyif mysql # aggregate syntax: 
query I rowsort label-6457
SELECT + COUNT( * ) + - - COUNT( * ) * + ( 30 ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-6457
SELECT + COUNT ( * ) + - - COUNT ( * ) * + ( 30 ) AS col2
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-6458
SELECT DISTINCT + 40 DIV 69 * 59 * + - 56 col2
----
0

skipif mysql # not compatible
query I rowsort label-6458
SELECT DISTINCT + 40 / 69 * 59 * + - 56 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6459
SELECT + - MIN( + + 38 ) + - 5
----
-43

skipif mysql # not compatible
query I rowsort label-6459
SELECT + - MIN ( + + 38 ) + - 5
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6460
SELECT + AVG ( DISTINCT CAST( NULL AS SIGNED ) ) * - 89 + - 83
----
NULL

skipif mysql # not compatible
query I rowsort label-6460
SELECT + AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) * - 89 + - 83
----
NULL

query I rowsort
SELECT + + 2 + 70 + + 85 - + + 30
----
127

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6462
SELECT ALL + 96 - + CAST( NULL AS SIGNED ) * - 72 + 8 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6462
SELECT ALL + 96 - + CAST ( NULL AS INTEGER ) * - 72 + 8 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-6463
SELECT + 31 * COUNT( * ) AS col1, + 24 AS col1, 93 * COUNT( * ) * COUNT( ALL - + 20 ) * - COUNT( * ) - COUNT( * ) * - 29 col1
----
31
24
-64

skipif mysql # not compatible
query III rowsort label-6463
SELECT + 31 * COUNT ( * ) AS col1, + 24 AS col1, 93 * COUNT ( * ) * COUNT ( ALL - + 20 ) * - COUNT ( * ) - COUNT ( * ) * - 29 col1
----
31
24
-64

query I rowsort
SELECT DISTINCT 19 * - 37 col2
----
-703

query I rowsort
SELECT - 49 * + 75
----
-3675

query I rowsort
SELECT ( + 86 ) AS col1
----
86

query I rowsort
SELECT ALL 72 * - 97 * 44 * + 94
----
-28885824

query I rowsort
SELECT + ( 62 ) AS col2
----
62

query I rowsort
SELECT + 13 * 30
----
390

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6470
SELECT ALL 39 * + CAST( NULL AS SIGNED ) + ( COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6470
SELECT ALL 39 * + CAST ( NULL AS INTEGER ) + ( COUNT ( * ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6471
SELECT DISTINCT + COUNT( * ) AS col2, CASE - + ( - 74 ) WHEN - CASE - 75 WHEN + - 39 * MIN( + 22 ) * + 78 THEN - 63 WHEN COUNT( DISTINCT 8 ) + - MAX( ALL 40 ) THEN + 56 ELSE NULL END THEN NULL WHEN 7 * + CASE NULLIF ( 76, - 30 + COUNT( * ) ) WHEN + 43 * 98 THEN + 50 * + 88 + - 74 END + 1 THEN - 37 + 40 * 76 ELSE NULL END * + 10 + + 61 AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-6471
SELECT DISTINCT + COUNT ( * ) AS col2, CASE - + ( - 74 ) WHEN - CASE - 75 WHEN + - 39 * MIN ( + 22 ) * + 78 THEN - 63 WHEN COUNT ( DISTINCT 8 ) + - MAX ( ALL 40 ) THEN + 56 ELSE NULL END THEN NULL WHEN 7 * + CASE NULLIF ( 76, - 30 + COUNT ( * ) ) WHEN + 43 * 98 THEN + 50 * + 88 + - 74 END + 1 THEN - 37 + 40 * 76 ELSE NULL END * + 10 + + 61 AS col0
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6472
SELECT DISTINCT - COUNT( * ) * 86 * - COUNT( * ) + - ( + - 41 )
----
127

skipif mysql # not compatible
query I rowsort label-6472
SELECT DISTINCT - COUNT ( * ) * 86 * - COUNT ( * ) + - ( + - 41 )
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-6473
SELECT ALL - COALESCE ( - 24, + 24, COALESCE ( + - 3, - 81 - 97 * + - 9 + + 17 ) * MIN( ALL - 93 * - 30 ) ) * CASE - 46 WHEN 67 THEN + COUNT( * ) * COUNT( * ) WHEN 16 THEN NULL ELSE 44 END + - CASE ( 13 ) + + 16 WHEN COALESCE ( 90, 2 ) THEN NULL WHEN 41 THEN 0 * - 91 END * - ( - 35 * - 3 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6473
SELECT ALL - COALESCE ( - 24, + 24, COALESCE ( + - 3, - 81 - 97 * + - 9 + + 17 ) * MIN ( ALL - 93 * - 30 ) ) * CASE - 46 WHEN 67 THEN + COUNT ( * ) * COUNT ( * ) WHEN 16 THEN NULL ELSE 44 END + - CASE ( 13 ) + + 16 WHEN COALESCE ( 90, 2 ) THEN NULL WHEN 41 THEN 0 * - 91 END * - ( - 35 * - 3 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6474
SELECT DISTINCT + NULLIF ( COUNT( * ), - + COALESCE ( CASE - - 73 WHEN + COUNT( * ) THEN NULL WHEN 94 THEN - 19 ELSE + 87 + - 33 END, 93, NULLIF ( 97, + 45 * 82 + 3 ), + AVG ( 62 ) ) * + COUNT( * ) ) DIV 3 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6474
SELECT DISTINCT + NULLIF ( COUNT ( * ), - + COALESCE ( CASE - - 73 WHEN + COUNT ( * ) THEN NULL WHEN 94 THEN - 19 ELSE + 87 + - 33 END, 93, NULLIF ( 97, + 45 * 82 + 3 ), + AVG ( 62 ) ) * + COUNT ( * ) ) / 3 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6475
SELECT DISTINCT + 61 * + + 8 + 26 + - + ( NULLIF ( - 49, - ( - COUNT( * ) ) ) ) DIV 84
----
514

skipif mysql # not compatible
query I rowsort label-6475
SELECT DISTINCT + 61 * + + 8 + 26 + - + ( NULLIF ( - 49, - ( - COUNT ( * ) ) ) ) / 84
----
514

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6476
SELECT DISTINCT - 28 * 55 * + COALESCE ( 94, - 28 * + + 85, - 89, + - NULLIF ( + CAST( NULL AS SIGNED ), + MAX( 47 ) * 23 ) + 54 ) + 32 * 31 AS col1
----
-143768

skipif mysql # not compatible
query I rowsort label-6476
SELECT DISTINCT - 28 * 55 * + COALESCE ( 94, - 28 * + + 85, - 89, + - NULLIF ( + CAST ( NULL AS INTEGER ), + MAX ( 47 ) * 23 ) + 54 ) + 32 * 31 AS col1
----
-143768

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6477
SELECT ALL + CAST( NULL AS SIGNED ) * - - 58 + ( + + 49 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6477
SELECT ALL + CAST ( NULL AS INTEGER ) * - - 58 + ( + + 49 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6478
SELECT - MIN( 97 ) * - 70 AS col2, + COUNT( * )
----
6790
1

skipif mysql # not compatible
query II rowsort label-6478
SELECT - MIN ( 97 ) * - 70 AS col2, + COUNT ( * )
----
6790
1

query I rowsort
SELECT COALESCE ( + - 99, + 10, 41 * + 48 )
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6480
SELECT ALL - COUNT( * ) * 9 AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-6480
SELECT ALL - COUNT ( * ) * 9 AS col1
----
-9

query I rowsort
SELECT - - 24 * 24 + + 1
----
577

onlyif mysql # DIV for integer division: 
query I rowsort label-6482
SELECT + - 2 * 21 DIV - 25 - + + 95 * - 88 + 71 + 82
----
8514

skipif mysql # not compatible
query I rowsort label-6482
SELECT + - 2 * 21 / - 25 - + + 95 * - 88 + 71 + 82
----
8514

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6483
SELECT - + COUNT( * ) - + CAST( NULL AS SIGNED ) - + + 40 + - - 78 + 31 - 52 * + 99 * - - COUNT( * ) * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6483
SELECT - + COUNT ( * ) - + CAST ( NULL AS INTEGER ) - + + 40 + - - 78 + 31 - 52 * + 99 * - - COUNT ( * ) * + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT ALL - 44 * - 25 AS col0
----
1100

onlyif mysql # aggregate syntax: 
query I rowsort label-6485
SELECT - 47 + - + 9 - - 64 * - - CASE - + 24 WHEN - + COUNT( * ) THEN + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6485
SELECT - 47 + - + 9 - - 64 * - - CASE - + 24 WHEN - + COUNT ( * ) THEN + COUNT ( * ) ELSE NULL END
----
NULL

query II rowsort
SELECT + 41, ( + 15 ) + 10 col1
----
41
25

query I rowsort
SELECT - - ( - 1 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6488
SELECT - - COUNT( 56 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6488
SELECT - - COUNT ( 56 ) AS col1
----
1

query I rowsort
SELECT - 4 * - - 15
----
-60

query I rowsort
SELECT DISTINCT + ( - 57 ) * + ( + 58 ) * + 28 * 49 - + - ( - + 99 )
----
-4535931

query I rowsort
SELECT ALL 70 * + 29
----
2030

onlyif mysql # aggregate syntax: 
query I rowsort label-6492
SELECT - - COUNT( * ) * + 64 col1
----
64

skipif mysql # not compatible
query I rowsort label-6492
SELECT - - COUNT ( * ) * + 64 col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6493
SELECT - MAX( + 23 ) col1
----
-23

skipif mysql # not compatible
query I rowsort label-6493
SELECT - MAX ( + 23 ) col1
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6494
SELECT - CASE - ( 31 ) WHEN 52 + COUNT( * ) - + + 86 + + 66 THEN NULL WHEN + ( CASE WHEN ( - 92 ) BETWEEN ( NULLIF ( - 77, + MIN( - 62 ) * 90 ) ) AND 23 * 93 THEN 78 * - COUNT( * ) ELSE 63 - 89 END ) THEN - 84 + 62 * 34 ELSE - 41 - + CAST( NULL AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6494
SELECT - CASE - ( 31 ) WHEN 52 + COUNT ( * ) - + + 86 + + 66 THEN NULL WHEN + ( CASE WHEN ( - 92 ) BETWEEN ( NULLIF ( - 77, + MIN ( - 62 ) * 90 ) ) AND 23 * 93 THEN 78 * - COUNT ( * ) ELSE 63 - 89 END ) THEN - 84 + 62 * 34 ELSE - 41 - + CAST ( NULL AS INTEGER ) END AS col1
----
NULL

query II rowsort
SELECT ALL 20, - 88 + + - 44 AS col1
----
20
-132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6496
SELECT ALL + - 51 * + - MIN( DISTINCT - 30 ) * + 47 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6496
SELECT ALL + - 51 * + - MIN ( DISTINCT - 30 ) * + 47 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6497
SELECT + 82, - ( ( + 22 ) ) * - - CAST( NULL AS SIGNED ) AS col1
----
82
NULL

skipif mysql # not compatible
query II rowsort label-6497
SELECT + 82, - ( ( + 22 ) ) * - - CAST ( NULL AS INTEGER ) AS col1
----
82
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6498
SELECT COUNT( * ), + ( + COUNT( * ) ) + + - 44 * - + 92 AS col1
----
1
4049

skipif mysql # not compatible
query II rowsort label-6498
SELECT COUNT ( * ), + ( + COUNT ( * ) ) + + - 44 * - + 92 AS col1
----
1
4049

onlyif mysql # aggregate syntax: 
query I rowsort label-6499
SELECT - COUNT( * ) - + COUNT( DISTINCT + 3 ) + + ( 87 ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-6499
SELECT - COUNT ( * ) - + COUNT ( DISTINCT + 3 ) + + ( 87 ) AS col0
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6500
SELECT + 3 DIV 73 * 97 DIV + NULLIF ( 63, MAX( 44 ) )
----
0

skipif mysql # not compatible
query I rowsort label-6500
SELECT + 3 / 73 * 97 / + NULLIF ( 63, MAX ( 44 ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6501
SELECT - CAST( 99 AS SIGNED ) AS col1, - 92
----
-99
-92

skipif mysql # not compatible
query II rowsort label-6501
SELECT - CAST ( 99 AS INTEGER ) AS col1, - 92
----
-99
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-6502
SELECT ALL - 11 + + 85 + ( AVG ( ALL - 98 ) ) + + - 6 + CASE - MAX( ALL + - 72 ) WHEN + 32 THEN 87 + - 56 WHEN 64 THEN NULL END * - 68 * 69 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6502
SELECT ALL - 11 + + 85 + ( AVG ( ALL - 98 ) ) + + - 6 + CASE - MAX ( ALL + - 72 ) WHEN + 32 THEN 87 + - 56 WHEN 64 THEN NULL END * - 68 * 69 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6503
SELECT + 13 DIV + - NULLIF ( - NULLIF ( 55, + + 87 + - + CAST( - 96 AS SIGNED ) * + - ( - + 18 ) * 70 + + 98 ), 56 )
----
0

skipif mysql # not compatible
query I rowsort label-6503
SELECT + 13 / + - NULLIF ( - NULLIF ( 55, + + 87 + - + CAST ( - 96 AS INTEGER ) * + - ( - + 18 ) * 70 + + 98 ), 56 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6504
SELECT + 30 - - 95 DIV + - MIN( DISTINCT 48 ) * + COUNT( * ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-6504
SELECT + 30 - - 95 / + - MIN ( DISTINCT 48 ) * + COUNT ( * ) AS col1
----
29

query I rowsort
SELECT + ( - - 81 ) AS col1
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6506
SELECT ALL - MAX( + 36 ) DIV 51 + SUM( DISTINCT - 63 ) + + COUNT( * )
----
-62

skipif mysql # not compatible
query I rowsort label-6506
SELECT ALL - MAX ( + 36 ) / 51 + SUM ( DISTINCT - 63 ) + + COUNT ( * )
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-6507
SELECT 11 DIV + 22 - - - 1 + - 68 * + 54 AS col2
----
-3673

skipif mysql # not compatible
query I rowsort label-6507
SELECT 11 / + 22 - - - 1 + - 68 * + 54 AS col2
----
-3673

onlyif mysql # aggregate syntax: 
query II rowsort label-6508
SELECT ALL COUNT( * ) * 0, - 46 AS col2
----
0
-46

skipif mysql # not compatible
query II rowsort label-6508
SELECT ALL COUNT ( * ) * 0, - 46 AS col2
----
0
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6509
SELECT DISTINCT COUNT( * ) + COALESCE ( 45, NULLIF ( 84, - 97 * + 60 + ( - 98 ) + CAST( + 93 AS SIGNED ) / - 55 ) )
----
46

skipif mysql # not compatible
query I rowsort label-6509
SELECT DISTINCT COUNT ( * ) + COALESCE ( 45, NULLIF ( 84, - 97 * + 60 + ( - 98 ) + CAST ( + 93 AS INTEGER ) / - 55 ) )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6510
SELECT COALESCE ( + 36, + COUNT( * ) * - 25, - 98 ) * + 88 + + + 86
----
3254

skipif mysql # not compatible
query I rowsort label-6510
SELECT COALESCE ( + 36, + COUNT ( * ) * - 25, - 98 ) * + 88 + + + 86
----
3254

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6511
SELECT - 34 * COUNT( * ) * 59 + - + CAST( NULL AS SIGNED ) + - MAX( - 23 ) * - 47 * - 33 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6511
SELECT - 34 * COUNT ( * ) * 59 + - + CAST ( NULL AS INTEGER ) + - MAX ( - 23 ) * - 47 * - 33 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6512
SELECT 49 DIV - 38 + + 23
----
22

skipif mysql # not compatible
query I rowsort label-6512
SELECT 49 / - 38 + + 23
----
22

onlyif mysql # aggregate syntax: 
query III rowsort label-6513
SELECT COUNT( * ) * + 68 - 65 + + 21 AS col2, - 34 AS col1, - 24
----
24
-34
-24

skipif mysql # not compatible
query III rowsort label-6513
SELECT COUNT ( * ) * + 68 - 65 + + 21 AS col2, - 34 AS col1, - 24
----
24
-34
-24

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6514
SELECT NULLIF ( ( - 21 ), - - 3 * 68 ) + - - 43 * - MIN( + CASE - 64 WHEN ( - 57 ) THEN NULL ELSE + ( CAST( NULL AS DECIMAL ) ) END ) * - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6514
SELECT NULLIF ( ( - 21 ), - - 3 * 68 ) + - - 43 * - MIN ( + CASE - 64 WHEN ( - 57 ) THEN NULL ELSE + ( CAST ( NULL AS REAL ) ) END ) * - COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6515
SELECT + CASE + - 69 WHEN + MIN( ALL + 46 ) THEN NULL WHEN + ( CASE - + MAX( - 54 ) WHEN + ( - NULLIF ( - 18, + 53 ) ) THEN 83 + + 56 * CASE - 6 WHEN 45 THEN - 74 - ( - AVG ( 61 ) - 65 * AVG ( ALL 29 ) ) END ELSE NULL END ) THEN 6 * + CAST( NULL AS SIGNED ) END * - 82 + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-6515
SELECT + CASE + - 69 WHEN + MIN ( ALL + 46 ) THEN NULL WHEN + ( CASE - + MAX ( - 54 ) WHEN + ( - NULLIF ( - 18, + 53 ) ) THEN 83 + + 56 * CASE - 6 WHEN 45 THEN - 74 - ( - AVG ( 61 ) - 65 * AVG ( ALL 29 ) ) END ELSE NULL END ) THEN 6 * + CAST ( NULL AS INTEGER ) END * - 82 + 8
----
NULL

query I rowsort
SELECT - 35 + 22 + + 70
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6517
SELECT MIN( - - NULLIF ( - - ( + + 97 ), + 77 ) ) * - - 77
----
7469

skipif mysql # not compatible
query I rowsort label-6517
SELECT MIN ( - - NULLIF ( - - ( + + 97 ), + 77 ) ) * - - 77
----
7469

query I rowsort
SELECT 76 + - + 32
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-6519
SELECT DISTINCT + + COUNT( * ) * 98 * - - 73 AS col2
----
7154

skipif mysql # not compatible
query I rowsort label-6519
SELECT DISTINCT + + COUNT ( * ) * 98 * - - 73 AS col2
----
7154

onlyif mysql # DIV for integer division: 
query I rowsort label-6520
SELECT ALL + ( - 99 ) DIV + 61 + - - COALESCE ( 68, + 4 DIV + 52 * + 46 )
----
67

skipif mysql # not compatible
query I rowsort label-6520
SELECT ALL + ( - 99 ) / + 61 + - - COALESCE ( 68, + 4 / + 52 * + 46 )
----
67

query I rowsort
SELECT 45 - - - 35
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6522
SELECT ALL - CASE + + 92 WHEN COUNT( - 25 ) THEN ( + 81 ) * - - 16 END / 94 + + - 92
----
NULL

skipif mysql # not compatible
query I rowsort label-6522
SELECT ALL - CASE + + 92 WHEN COUNT ( - 25 ) THEN ( + 81 ) * - - 16 END / 94 + + - 92
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6523
SELECT - COUNT( ALL + + 47 ) * + + 2 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-6523
SELECT - COUNT ( ALL + + 47 ) * + + 2 AS col0
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-6524
SELECT COUNT( * ) * - 51 AS col0, COUNT( * ) - - + 25
----
-51
26

skipif mysql # not compatible
query II rowsort label-6524
SELECT COUNT ( * ) * - 51 AS col0, COUNT ( * ) - - + 25
----
-51
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6525
SELECT + NULLIF ( - 3, - 62 + - 86 ) + + - 13 - - + ( - 81 ) + 36 + - COALESCE ( - 77, - MIN( + 40 ) + - ( - 95 ), + 81 )
----
16

skipif mysql # not compatible
query I rowsort label-6525
SELECT + NULLIF ( - 3, - 62 + - 86 ) + + - 13 - - + ( - 81 ) + 36 + - COALESCE ( - 77, - MIN ( + 40 ) + - ( - 95 ), + 81 )
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-6526
SELECT ( - 93 ) - MIN( 94 ) + + 67 AS col1
----
-120

skipif mysql # not compatible
query I rowsort label-6526
SELECT ( - 93 ) - MIN ( 94 ) + + 67 AS col1
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-6527
SELECT 94 + - + COUNT( + - ( - 32 ) ) col1
----
93

skipif mysql # not compatible
query I rowsort label-6527
SELECT 94 + - + COUNT ( + - ( - 32 ) ) col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6528
SELECT ALL + 79 + - CASE - 3 WHEN - 64 THEN NULL ELSE + + 10 + + COUNT( * ) + + 92 * - - 44 * + 58 - - 18 END AS col1
----
-234734

skipif mysql # not compatible
query I rowsort label-6528
SELECT ALL + 79 + - CASE - 3 WHEN - 64 THEN NULL ELSE + + 10 + + COUNT ( * ) + + 92 * - - 44 * + 58 - - 18 END AS col1
----
-234734

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6529
SELECT ALL + CASE - + 69 WHEN 24 + ( - CASE WHEN NOT + 54 IS NOT NULL THEN NULL WHEN NOT + ( 60 ) + - COUNT( * ) * + 13 IS NOT NULL THEN 91 END ) * + 19 THEN - 47 * + 35 WHEN - CAST( NULL AS SIGNED ) THEN NULL END + 46 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6529
SELECT ALL + CASE - + 69 WHEN 24 + ( - CASE WHEN NOT + 54 IS NOT NULL THEN NULL WHEN NOT + ( 60 ) + - COUNT ( * ) * + 13 IS NOT NULL THEN 91 END ) * + 19 THEN - 47 * + 35 WHEN - CAST ( NULL AS INTEGER ) THEN NULL END + 46 AS col2
----
NULL

query I rowsort
SELECT ALL - ( 97 ) + - 98 - - - 45
----
-240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6531
SELECT ( CAST( + 6 AS SIGNED ) ) + + 68 AS col0
----
74

skipif mysql # not compatible
query I rowsort label-6531
SELECT ( CAST ( + 6 AS INTEGER ) ) + + 68 AS col0
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-6532
SELECT DISTINCT COUNT( * ) + + 43 + + 86 col0, CASE + + 65 WHEN + COALESCE ( + 18, - 61, + 24 + - 18 - + 14 ) + - 39 THEN 51 WHEN + COUNT( * ) THEN ( - ( + 44 ) ) + ( COUNT( * ) ) * - CASE 96 WHEN 44 / + 21 THEN + 78 ELSE 76 - - 85 END END * + 70 + - COUNT( * ) AS col2
----
130
NULL

skipif mysql # not compatible
query II rowsort label-6532
SELECT DISTINCT COUNT ( * ) + + 43 + + 86 col0, CASE + + 65 WHEN + COALESCE ( + 18, - 61, + 24 + - 18 - + 14 ) + - 39 THEN 51 WHEN + COUNT ( * ) THEN ( - ( + 44 ) ) + ( COUNT ( * ) ) * - CASE 96 WHEN 44 / + 21 THEN + 78 ELSE 76 - - 85 END END * + 70 + - COUNT ( * ) AS col2
----
130
NULL

query I rowsort
SELECT ALL 11 - 59
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6534
SELECT DISTINCT 70 DIV + + SUM( 65 )
----
1

skipif mysql # not compatible
query I rowsort label-6534
SELECT DISTINCT 70 / + + SUM ( 65 )
----
1

query I rowsort
SELECT 60 * 86 AS col2
----
5160

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6536
SELECT DISTINCT 16 / + - CAST( NULL AS DECIMAL ) / - 16 * 96 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6536
SELECT DISTINCT 16 / + - CAST ( NULL AS REAL ) / - 16 * 96 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6537
SELECT ALL CAST( - 89 AS SIGNED ) - + CAST( NULL AS SIGNED ) + - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-6537
SELECT ALL CAST ( - 89 AS INTEGER ) - + CAST ( NULL AS INTEGER ) + - 7
----
NULL

query I rowsort
SELECT 14 - + + 39 * 47
----
-1819

onlyif mysql # aggregate syntax: 
query I rowsort label-6539
SELECT - SUM( DISTINCT + 6 ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-6539
SELECT - SUM ( DISTINCT + 6 ) AS col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-6540
SELECT ( + - COUNT( * ) ) * - + 7 - 49 * - 90 col0
----
4417

skipif mysql # not compatible
query I rowsort label-6540
SELECT ( + - COUNT ( * ) ) * - + 7 - 49 * - 90 col0
----
4417

query I rowsort
SELECT 90 * + 66 * + 17 AS col0
----
100980

onlyif mysql # aggregate syntax: 
query I rowsort label-6542
SELECT + ( + COUNT( + - 97 ) )
----
1

skipif mysql # not compatible
query I rowsort label-6542
SELECT + ( + COUNT ( + - 97 ) )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6543
SELECT + 43 * - MIN( ALL + 41 ) * 77 + 5 + - 30 DIV 6 AS col2
----
-135751

skipif mysql # not compatible
query I rowsort label-6543
SELECT + 43 * - MIN ( ALL + 41 ) * 77 + 5 + - 30 / 6 AS col2
----
-135751

query I rowsort
SELECT - 36 - COALESCE ( 3, - 83, + + 97 )
----
-39

query I rowsort
SELECT ALL - 9 + + 9 + 53 * + 22
----
1166

query I rowsort
SELECT + 58 * - 35 + - + 87
----
-2117

query I rowsort
SELECT ( - 64 ) * - 92 * - 3 * + 33 AS col0
----
-582912

onlyif mysql # aggregate syntax: 
query I rowsort label-6548
SELECT 83 + - COUNT( * ) * COUNT( * ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-6548
SELECT 83 + - COUNT ( * ) * COUNT ( * ) AS col2
----
82

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6549
SELECT - ( ( 34 ) ) / + + 69 * - CASE 88 WHEN + + 26 + + + 44 THEN NULL WHEN 19 + - ( CAST( NULL AS DECIMAL ) ) + 14 THEN + CASE + 25 WHEN + 34 + 63 THEN - 81 + - 60 END + 52 * 75 END * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6549
SELECT - ( ( 34 ) ) / + + 69 * - CASE 88 WHEN + + 26 + + + 44 THEN NULL WHEN 19 + - ( CAST ( NULL AS REAL ) ) + 14 THEN + CASE + 25 WHEN + 34 + 63 THEN - 81 + - 60 END + 52 * 75 END * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6550
SELECT DISTINCT - 57 DIV + 5 + + + 6 col2
----
-5

skipif mysql # not compatible
query I rowsort label-6550
SELECT DISTINCT - 57 / + 5 + + + 6 col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6551
SELECT DISTINCT SUM( DISTINCT 49 ) + + 34 + + 28 * - + 36
----
-925

skipif mysql # not compatible
query I rowsort label-6551
SELECT DISTINCT SUM ( DISTINCT 49 ) + + 34 + + 28 * - + 36
----
-925

onlyif mysql # aggregate syntax: 
query I rowsort label-6552
SELECT ALL + ( 54 ) + - COUNT( * )
----
53

skipif mysql # not compatible
query I rowsort label-6552
SELECT ALL + ( 54 ) + - COUNT ( * )
----
53

query I rowsort
SELECT - CASE - 94 WHEN + ( + 96 ) THEN NULL WHEN + + 93 THEN + 88 ELSE NULL END * 36 * + - 67 AS col2
----
NULL

query I rowsort
SELECT DISTINCT COALESCE ( + - 8, 15 )
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-6555
SELECT ALL + COUNT( * ) - + - 80 - - 14 + - - CASE - 1 WHEN + 33 + + 87 THEN NULL ELSE 10 + - + COUNT( * ) END + - 28 * - ( + 45 )
----
1364

skipif mysql # not compatible
query I rowsort label-6555
SELECT ALL + COUNT ( * ) - + - 80 - - 14 + - - CASE - 1 WHEN + 33 + + 87 THEN NULL ELSE 10 + - + COUNT ( * ) END + - 28 * - ( + 45 )
----
1364

onlyif mysql # aggregate syntax: 
query I rowsort label-6556
SELECT - 17 - 69 + + - 49 * + COUNT( * ) col1
----
-135

skipif mysql # not compatible
query I rowsort label-6556
SELECT - 17 - 69 + + - 49 * + COUNT ( * ) col1
----
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-6557
SELECT DISTINCT 29 * + + NULLIF ( - - 1, - - MIN( DISTINCT + 65 ) * - 59 + - ( + COUNT( DISTINCT + 66 ) ) * - MIN( - - 66 ) / 8 )
----
29

skipif mysql # not compatible
query I rowsort label-6557
SELECT DISTINCT 29 * + + NULLIF ( - - 1, - - MIN ( DISTINCT + 65 ) * - 59 + - ( + COUNT ( DISTINCT + 66 ) ) * - MIN ( - - 66 ) / 8 )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6558
SELECT DISTINCT - COUNT( * ) * + - 89 * CASE 55 WHEN + 5 THEN + 64 ELSE + + 81 END AS col2
----
7209

skipif mysql # not compatible
query I rowsort label-6558
SELECT DISTINCT - COUNT ( * ) * + - 89 * CASE 55 WHEN + 5 THEN + 64 ELSE + + 81 END AS col2
----
7209

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6559
SELECT - 81 * + CAST( - CASE - - 19 WHEN 47 * 42 + + COUNT( * ) THEN + 52 END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6559
SELECT - 81 * + CAST ( - CASE - - 19 WHEN 47 * 42 + + COUNT ( * ) THEN + 52 END AS INTEGER )
----
NULL

query II rowsort
SELECT ALL + 69 col1, 36 AS col1
----
69
36

onlyif mysql # DIV for integer division: 
query I rowsort label-6561
SELECT 1 DIV - 17 * - 68 + + 76 + - 2
----
74

skipif mysql # not compatible
query I rowsort label-6561
SELECT 1 / - 17 * - 68 + + 76 + - 2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6562
SELECT - COUNT( + + 84 ) * - MAX( - 79 ) + - 86
----
-165

skipif mysql # not compatible
query I rowsort label-6562
SELECT - COUNT ( + + 84 ) * - MAX ( - 79 ) + - 86
----
-165

query I rowsort
SELECT - + ( + 80 ) + 79
----
-1

query II rowsort
SELECT DISTINCT + + 58 AS col0, 79 col0
----
58
79

onlyif mysql # aggregate syntax: 
query I rowsort label-6565
SELECT - MIN( 51 )
----
-51

skipif mysql # not compatible
query I rowsort label-6565
SELECT - MIN ( 51 )
----
-51

query I rowsort
SELECT ALL + 24 * 59 AS col2
----
1416

query I rowsort
SELECT + + 18 * 78
----
1404

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6568
SELECT DISTINCT - 13 DIV + + MAX( DISTINCT + 89 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6568
SELECT DISTINCT - 13 / + + MAX ( DISTINCT + 89 ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6569
SELECT - - NULLIF ( COUNT( * ), + 60 * + 19 ) * - + 4 - 24 col0, ( - MIN( CAST( NULL AS SIGNED ) ) ) col0
----
-28
NULL

skipif mysql # not compatible
query II rowsort label-6569
SELECT - - NULLIF ( COUNT ( * ), + 60 * + 19 ) * - + 4 - 24 col0, ( - MIN ( CAST ( NULL AS INTEGER ) ) ) col0
----
-28
NULL

query I rowsort
SELECT + - 44 * 60 col1
----
-2640

query I rowsort
SELECT + + 85 + 55 + + 36 * 11 * 19 * - ( 94 ) AS col1
----
-707116

onlyif mysql # DIV for integer division: 
query I rowsort label-6572
SELECT ALL + 80 DIV - 8
----
-10

skipif mysql # not compatible
query I rowsort label-6572
SELECT ALL + 80 / - 8
----
-10

query II rowsort
SELECT DISTINCT + - 8, 6 AS col1
----
-8
6

query I rowsort
SELECT - 82 + - 41 AS col0
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-6575
SELECT ALL - COUNT( * ) * - COUNT( * ) + 26 * 33 AS col0
----
859

skipif mysql # not compatible
query I rowsort label-6575
SELECT ALL - COUNT ( * ) * - COUNT ( * ) + 26 * 33 AS col0
----
859

query I rowsort
SELECT + 95 + - + 5 col1
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6577
SELECT ALL - 51 * + - NULLIF ( + 47, - - 19 / COUNT( * ) + + + 62 - + 4 ) * - 50 + - + 11 + - CAST( NULL AS SIGNED ) + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-6577
SELECT ALL - 51 * + - NULLIF ( + 47, - - 19 / COUNT ( * ) + + + 62 - + 4 ) * - 50 + - + 11 + - CAST ( NULL AS INTEGER ) + 96
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6578
SELECT DISTINCT - COALESCE ( + COUNT( * ), 38, - 38, - 26 * - 94 + + 79 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6578
SELECT DISTINCT - COALESCE ( + COUNT ( * ), 38, - 38, - 26 * - 94 + + 79 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6579
SELECT ALL MAX( - 71 ) * 2 * - 35 * + + 57 AS col1
----
283290

skipif mysql # not compatible
query I rowsort label-6579
SELECT ALL MAX ( - 71 ) * 2 * - 35 * + + 57 AS col1
----
283290

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6580
SELECT + - 17 - - + SUM( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6580
SELECT + - 17 - - + SUM ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6581
SELECT ALL COUNT( * ), 38 * 92 col0
----
1
3496

skipif mysql # not compatible
query II rowsort label-6581
SELECT ALL COUNT ( * ), 38 * 92 col0
----
1
3496

query I rowsort
SELECT + 7 + + - ( - - 39 )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-6583
SELECT MAX( DISTINCT + COALESCE ( - 1, + 64 ) ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-6583
SELECT MAX ( DISTINCT + COALESCE ( - 1, + 64 ) ) col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6584
SELECT + 84 + + COUNT( * ) + CAST( - + 24 AS SIGNED ) * 59 DIV - ( + + 52 ) + + 89 * + ( + 26 ) - ( + 6 )
----
2420

skipif mysql # not compatible
query I rowsort label-6584
SELECT + 84 + + COUNT ( * ) + CAST ( - + 24 AS INTEGER ) * 59 / - ( + + 52 ) + + 89 * + ( + 26 ) - ( + 6 )
----
2420

onlyif mysql # aggregate syntax: 
query I rowsort label-6585
SELECT + 95 + + COUNT( * ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-6585
SELECT + 95 + + COUNT ( * ) AS col2
----
96

query I rowsort
SELECT + 72 + + + 26 AS col1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6587
SELECT - COUNT( + ( COALESCE ( - + 33, - 45 ) ) ) - 18
----
-19

skipif mysql # not compatible
query I rowsort label-6587
SELECT - COUNT ( + ( COALESCE ( - + 33, - 45 ) ) ) - 18
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-6588
SELECT - 36 * MIN( - - 67 ) AS col2
----
-2412

skipif mysql # not compatible
query I rowsort label-6588
SELECT - 36 * MIN ( - - 67 ) AS col2
----
-2412

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6589
SELECT ALL COUNT( * ) DIV - - 79
----
0

skipif mysql # not compatible
query I rowsort label-6589
SELECT ALL COUNT ( * ) / - - 79
----
0

query I rowsort
SELECT + 48 + ( - 24 )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6591
SELECT - 54 - - 81 + - 92 * + COUNT( * )
----
-65

skipif mysql # not compatible
query I rowsort label-6591
SELECT - 54 - - 81 + - 92 * + COUNT ( * )
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-6592
SELECT ALL + COUNT( * ) - - CASE + 32 WHEN - 62 / - + NULLIF ( 43, + - 84 * + 64 - + MIN( DISTINCT - 32 ) ) + + + ( + 31 ) * - 32 THEN - 40 ELSE 26 END AS col0
----
27

skipif mysql # not compatible
query I rowsort label-6592
SELECT ALL + COUNT ( * ) - - CASE + 32 WHEN - 62 / - + NULLIF ( 43, + - 84 * + 64 - + MIN ( DISTINCT - 32 ) ) + + + ( + 31 ) * - 32 THEN - 40 ELSE 26 END AS col0
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6593
SELECT - CAST( - + CASE COALESCE ( + AVG ( DISTINCT + 75 ), + - ( 45 ) * AVG ( + 55 ) + + ( + 89 ) * CAST( - 28 AS SIGNED ) + - 43, - CAST( NULL AS SIGNED ) ) WHEN + CASE AVG ( + 43 ) WHEN ( - 69 ) THEN 40 WHEN 39 THEN - AVG ( ALL + 85 ) + - 95 ELSE NULL END + 64 * NULLIF ( - 56, 68 ) THEN NULL ELSE 62 END AS SIGNED )
----
62

skipif mysql # not compatible
query I rowsort label-6593
SELECT - CAST ( - + CASE COALESCE ( + AVG ( DISTINCT + 75 ), + - ( 45 ) * AVG ( + 55 ) + + ( + 89 ) * CAST ( - 28 AS INTEGER ) + - 43, - CAST ( NULL AS INTEGER ) ) WHEN + CASE AVG ( + 43 ) WHEN ( - 69 ) THEN 40 WHEN 39 THEN - AVG ( ALL + 85 ) + - 95 ELSE NULL END + 64 * NULLIF ( - 56, 68 ) THEN NULL ELSE 62 END AS INTEGER )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6594
SELECT ALL COUNT( * ) * - + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-6594
SELECT ALL COUNT ( * ) * - + COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6595
SELECT - 18 + - ( - + NULLIF ( + 61, + COUNT( * ) * - - MIN( DISTINCT + ( + - 78 ) ) - 23 * - + 63 ) )
----
43

skipif mysql # not compatible
query I rowsort label-6595
SELECT - 18 + - ( - + NULLIF ( + 61, + COUNT ( * ) * - - MIN ( DISTINCT + ( + - 78 ) ) - 23 * - + 63 ) )
----
43

query I rowsort
SELECT ALL ( 25 ) AS col0
----
25

query I rowsort
SELECT - 94 + + 62 + 95 + + - 13 * - 78 * 75 col0
----
76113

onlyif mysql # aggregate syntax: 
query I rowsort label-6598
SELECT ALL 0 - - CASE + 10 WHEN - ( 47 ) / - SUM( - 80 ) * - 38 + 42 THEN NULL ELSE + COUNT( * ) END AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6598
SELECT ALL 0 - - CASE + 10 WHEN - ( 47 ) / - SUM ( - 80 ) * - 38 + 42 THEN NULL ELSE + COUNT ( * ) END AS col2
----
1

query I rowsort
SELECT + 5 * - - 16 AS col2
----
80

query II rowsort
SELECT + 64 * + NULLIF ( - 0, 68 + - - 31 * - + ( 33 ) ) col2, 9 AS col0
----
0
9

onlyif mysql # aggregate syntax: 
query II rowsort label-6601
SELECT - COUNT( DISTINCT - 24 ) + 91 * 83 * 8 AS col0, + 6 col2
----
60423
6

skipif mysql # not compatible
query II rowsort label-6601
SELECT - COUNT ( DISTINCT - 24 ) + 91 * 83 * 8 AS col0, + 6 col2
----
60423
6

onlyif mysql # DIV for integer division: 
query I rowsort label-6602
SELECT + 82 DIV + 36
----
2

skipif mysql # not compatible
query I rowsort label-6602
SELECT + 82 / + 36
----
2

query I rowsort
SELECT - ( 13 ) + + + 43
----
30

query I rowsort
SELECT + NULLIF ( - 3, - 71 )
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6605
SELECT ALL COUNT( * ) / 21 * + CAST( NULL AS SIGNED ) + - + 75 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6605
SELECT ALL COUNT ( * ) / 21 * + CAST ( NULL AS INTEGER ) + - + 75 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6606
SELECT ALL + 77 DIV + COALESCE ( ( + 49 ), COUNT( * ) + - + 43 + - COUNT( * ) ) - + 94 + - 84 + 84 + - - 8 + + COUNT( DISTINCT + 78 ) + 18 * - 68
----
-1308

skipif mysql # not compatible
query I rowsort label-6606
SELECT ALL + 77 / + COALESCE ( ( + 49 ), COUNT ( * ) + - + 43 + - COUNT ( * ) ) - + 94 + - 84 + 84 + - - 8 + + COUNT ( DISTINCT + 78 ) + 18 * - 68
----
-1308

query I rowsort
SELECT ALL - - ( + 97 ) * + 24 * + 28
----
65184

query I rowsort
SELECT - 13 + - - 94 * 36 * + - 61
----
-206437

onlyif mysql # aggregate syntax: 
query II rowsort label-6609
SELECT DISTINCT - + NULLIF ( + + MIN( DISTINCT + + 51 ), - COUNT( * ) ) * + 59 AS col0, - ( - NULLIF ( - - 77, - 25 + + 22 - - + 8 * - - 1 * 15 + ( COUNT( * ) ) * 68 ) )
----
-3009
77

skipif mysql # not compatible
query II rowsort label-6609
SELECT DISTINCT - + NULLIF ( + + MIN ( DISTINCT + + 51 ), - COUNT ( * ) ) * + 59 AS col0, - ( - NULLIF ( - - 77, - 25 + + 22 - - + 8 * - - 1 * 15 + ( COUNT ( * ) ) * 68 ) )
----
-3009
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6610
SELECT ALL + CAST( + ( - 6 ) AS SIGNED ) DIV - - 30 + + 13 + 96 + - 13 * - NULLIF ( - 91, - ( - 14 ) ) * + + CASE WHEN + COUNT( * ) IS NOT NULL THEN - 26 DIV 73 WHEN - COUNT( 57 ) * MAX( DISTINCT - 60 + + CASE 35 + 94 WHEN - 37 THEN NULL ELSE 58 END ) NOT BETWEEN NULL AND NULL THEN 33 * 36 ELSE NULL END + 65 AS col2
----
174

skipif mysql # not compatible
query I rowsort label-6610
SELECT ALL + CAST ( + ( - 6 ) AS INTEGER ) / - - 30 + + 13 + 96 + - 13 * - NULLIF ( - 91, - ( - 14 ) ) * + + CASE WHEN + COUNT ( * ) IS NOT NULL THEN - 26 / 73 WHEN - COUNT ( 57 ) * MAX ( DISTINCT - 60 + + CASE 35 + 94 WHEN - 37 THEN NULL ELSE 58 END ) NOT BETWEEN NULL AND NULL THEN 33 * 36 ELSE NULL END + 65 AS col2
----
174

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6611
SELECT - CASE + 76 WHEN + 90 THEN NULL WHEN 64 / - NULLIF ( - 32, 75 * - 94 + + 11 * + SUM( DISTINCT - 23 ) * - 2 ) * 95 + 94 THEN - 38 * - COUNT( * ) WHEN + 48 + - CAST( NULL AS SIGNED ) / + MIN( ALL - ( + 19 ) + CAST( NULLIF ( + 34, 58 - 5 ) + 61 AS SIGNED ) ) THEN 63 END - - 49 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6611
SELECT - CASE + 76 WHEN + 90 THEN NULL WHEN 64 / - NULLIF ( - 32, 75 * - 94 + + 11 * + SUM ( DISTINCT - 23 ) * - 2 ) * 95 + 94 THEN - 38 * - COUNT ( * ) WHEN + 48 + - CAST ( NULL AS INTEGER ) / + MIN ( ALL - ( + 19 ) + CAST ( NULLIF ( + 34, 58 - 5 ) + 61 AS INTEGER ) ) THEN 63 END - - 49 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6612
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + - 4 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6612
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + - 4 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6613
SELECT + + NULLIF ( + 96, + + COUNT( * ) * - 37 * CAST( NULL AS SIGNED ) * 81 + - - 93 )
----
96

skipif mysql # not compatible
query I rowsort label-6613
SELECT + + NULLIF ( + 96, + + COUNT ( * ) * - 37 * CAST ( NULL AS INTEGER ) * 81 + - - 93 )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6614
SELECT 71 * - - 65 * + + 87 + COALESCE ( - - ( + COUNT( * ) ), 49 ) AS col2
----
401506

skipif mysql # not compatible
query I rowsort label-6614
SELECT 71 * - - 65 * + + 87 + COALESCE ( - - ( + COUNT ( * ) ), 49 ) AS col2
----
401506

onlyif mysql # DIV for integer division: 
query I rowsort label-6615
SELECT ALL + 7 DIV ( + - 44 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-6615
SELECT ALL + 7 / ( + - 44 ) col2
----
0

query II rowsort
SELECT - 25, - 81 - + 24 AS col0
----
-25
-105

query II rowsort
SELECT - 28, + 76 col1
----
-28
76

query II rowsort
SELECT - 81, 42 + - 56 AS col1
----
-81
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6619
SELECT 48 AS col0, 78 DIV + COUNT( * ) col2
----
48
78

skipif mysql # not compatible
query II rowsort label-6619
SELECT 48 AS col0, 78 / + COUNT ( * ) col2
----
48
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6620
SELECT COUNT( * ) * - SUM( DISTINCT - + NULLIF ( - - 60, 77 * - 35 ) )
----
60

skipif mysql # not compatible
query I rowsort label-6620
SELECT COUNT ( * ) * - SUM ( DISTINCT - + NULLIF ( - - 60, 77 * - 35 ) )
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-6621
SELECT ALL 48, - 24 * + - ( MAX( ALL - + 27 ) ) * - - 58 - - 18 AS col2
----
48
-37566

skipif mysql # not compatible
query II rowsort label-6621
SELECT ALL 48, - 24 * + - ( MAX ( ALL - + 27 ) ) * - - 58 - - 18 AS col2
----
48
-37566

onlyif mysql # aggregate syntax: 
query II rowsort label-6622
SELECT ALL 50 AS col0, + COUNT( ALL + 11 ) AS col1
----
50
1

skipif mysql # not compatible
query II rowsort label-6622
SELECT ALL 50 AS col0, + COUNT ( ALL + 11 ) AS col1
----
50
1

query I rowsort
SELECT 25 * + 43
----
1075

onlyif mysql # aggregate syntax: 
query II rowsort label-6624
SELECT 86, ( - MIN( DISTINCT + 63 ) ) AS col2
----
86
-63

skipif mysql # not compatible
query II rowsort label-6624
SELECT 86, ( - MIN ( DISTINCT + 63 ) ) AS col2
----
86
-63

query I rowsort
SELECT 53 + 22 AS col2
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-6626
SELECT - 17 AS col2, - ( - COUNT( - ( + 11 ) ) ) AS col0
----
-17
1

skipif mysql # not compatible
query II rowsort label-6626
SELECT - 17 AS col2, - ( - COUNT ( - ( + 11 ) ) ) AS col0
----
-17
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6627
SELECT DISTINCT 22, COUNT( * ) AS col0
----
22
1

skipif mysql # not compatible
query II rowsort label-6627
SELECT DISTINCT 22, COUNT ( * ) AS col0
----
22
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6628
SELECT DISTINCT + - 20 + 64 - COUNT( * ) - + COUNT( * ) + + 54 + + 34 * - 29 + + 13 * - + COUNT( * ) * - + 15 AS col1
----
-695

skipif mysql # not compatible
query I rowsort label-6628
SELECT DISTINCT + - 20 + 64 - COUNT ( * ) - + COUNT ( * ) + + 54 + + 34 * - 29 + + 13 * - + COUNT ( * ) * - + 15 AS col1
----
-695

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6629
SELECT DISTINCT 40 + + CAST( NULL AS SIGNED ) + + 91 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6629
SELECT DISTINCT 40 + + CAST ( NULL AS INTEGER ) + + 91 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6630
SELECT ALL + 24 + - 63 + + NULLIF ( - 69, 27 * 61 + + 76 + - COUNT( * ) ) * + - CAST( + 37 AS SIGNED ) * - 73 + 56 - - 46 + - 96 - 93
----
-186495

skipif mysql # not compatible
query I rowsort label-6630
SELECT ALL + 24 + - 63 + + NULLIF ( - 69, 27 * 61 + + 76 + - COUNT ( * ) ) * + - CAST ( + 37 AS INTEGER ) * - 73 + 56 - - 46 + - 96 - 93
----
-186495

onlyif mysql # aggregate syntax: 
query I rowsort label-6631
SELECT DISTINCT + ( 61 ) * + COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-6631
SELECT DISTINCT + ( 61 ) * + COUNT ( * )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-6632
SELECT ALL + ( + COUNT( ALL + 8 ) ) + + 26 AS col0
----
27

skipif mysql # not compatible
query I rowsort label-6632
SELECT ALL + ( + COUNT ( ALL + 8 ) ) + + 26 AS col0
----
27

query II rowsort
SELECT 53 AS col1, - 89 AS col2
----
53
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6634
SELECT - 68 + - 64 + - + ( - COUNT( * ) ) DIV + 40
----
-132

skipif mysql # not compatible
query I rowsort label-6634
SELECT - 68 + - 64 + - + ( - COUNT ( * ) ) / + 40
----
-132

query II rowsort
SELECT ALL - 47, 84 * 9 col0
----
-47
756

query II rowsort
SELECT 6 + - 15 - - 47 * + 12 * + + 12 * + 17 * + + 31 * 40, - 42 + 12 AS col2
----
142669431
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-6637
SELECT ALL + 3 + + CASE + 18 WHEN + ( + ( - 0 ) ) THEN - 83 + - + 14 END * + 96 * + - COUNT( * ) + + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-6637
SELECT ALL + 3 + + CASE + 18 WHEN + ( + ( - 0 ) ) THEN - 83 + - + 14 END * + 96 * + - COUNT ( * ) + + 42
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6638
SELECT - 94 * - 53 - - - 57 DIV - MIN( 47 ) + - 84 + + 16 - 38 * ( + - 32 ) * 42 * - 1
----
-46157

skipif mysql # not compatible
query I rowsort label-6638
SELECT - 94 * - 53 - - - 57 / - MIN ( 47 ) + - 84 + + 16 - 38 * ( + - 32 ) * 42 * - 1
----
-46157

query I rowsort
SELECT ALL - - ( - 62 ) AS col1
----
-62

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6640
SELECT DISTINCT + CAST( - - 29 AS SIGNED ) * + 79 + - - ( - COALESCE ( - + 90, - 27 ) ) DIV + 61 + + 29
----
2321

skipif mysql # not compatible
query I rowsort label-6640
SELECT DISTINCT + CAST ( - - 29 AS INTEGER ) * + 79 + - - ( - COALESCE ( - + 90, - 27 ) ) / + 61 + + 29
----
2321

onlyif mysql # aggregate syntax: 
query I rowsort label-6641
SELECT COUNT( * ) * - ( - + 79 ) + - 83
----
-4

skipif mysql # not compatible
query I rowsort label-6641
SELECT COUNT ( * ) * - ( - + 79 ) + - 83
----
-4

query I rowsort
SELECT ALL + + 73 * - 73 + + 97
----
-5232

query I rowsort
SELECT 44 + + 60 + - 7 + - 32 AS col0
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6644
SELECT COUNT( * ) DIV + 20 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6644
SELECT COUNT ( * ) / + 20 AS col1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-6645
SELECT DISTINCT + 45 DIV + 57 AS col2, + ( 56 )
----
0
56

skipif mysql # not compatible
query II rowsort label-6645
SELECT DISTINCT + 45 / + 57 AS col2, + ( 56 )
----
0
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6646
SELECT SUM( ALL + + 97 ) * 81 + - 1 AS col1
----
7856

skipif mysql # not compatible
query I rowsort label-6646
SELECT SUM ( ALL + + 97 ) * 81 + - 1 AS col1
----
7856

onlyif mysql # DIV for integer division: 
query II rowsort label-6647
SELECT 38 DIV 84, + 92 DIV 18 AS col2
----
0
5

skipif mysql # not compatible
query II rowsort label-6647
SELECT 38 / 84, + 92 / 18 AS col2
----
0
5

onlyif mysql # DIV for integer division: 
query II rowsort label-6648
SELECT 73 DIV + 90 AS col2, 63 * 34 * + + 73 AS col2
----
0
156366

skipif mysql # not compatible
query II rowsort label-6648
SELECT 73 / + 90 AS col2, 63 * 34 * + + 73 AS col2
----
0
156366

onlyif mysql # aggregate syntax: 
query I rowsort label-6649
SELECT ALL - 27 + - COUNT( * ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-6649
SELECT ALL - 27 + - COUNT ( * ) AS col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-6650
SELECT MAX( 59 ) * + + 66
----
3894

skipif mysql # not compatible
query I rowsort label-6650
SELECT MAX ( 59 ) * + + 66
----
3894

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6651
SELECT CASE COUNT( * ) WHEN + CAST( NULL AS SIGNED ) THEN - 66 WHEN - 12 THEN 36 ELSE NULL END - - 51 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6651
SELECT CASE COUNT ( * ) WHEN + CAST ( NULL AS INTEGER ) THEN - 66 WHEN - 12 THEN 36 ELSE NULL END - - 51 AS col2
----
NULL

query I rowsort
SELECT ALL 46 * - 50 * 74
----
-170200

query I rowsort
SELECT ALL - 27 + - 96 * - 78
----
7461

query I rowsort
SELECT DISTINCT + 73 + + - 47 * 70 AS col0
----
-3217

query I rowsort
SELECT DISTINCT 40 + + - 69 * - + 55 AS col1
----
3835

onlyif mysql # aggregate syntax: 
query I rowsort label-6656
SELECT ALL MAX( - ( - 64 ) ) + + + 79 * - 66 + - 4 + - + ( - + 40 ) - 64
----
-5178

skipif mysql # not compatible
query I rowsort label-6656
SELECT ALL MAX ( - ( - 64 ) ) + + + 79 * - 66 + - 4 + - + ( - + 40 ) - 64
----
-5178

onlyif mysql # aggregate syntax: 
query I rowsort label-6657
SELECT CASE - 92 WHEN - COUNT( - - 33 ) * + 58 THEN + - 45 END + - 80 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6657
SELECT CASE - 92 WHEN - COUNT ( - - 33 ) * + 58 THEN + - 45 END + - 80 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6658
SELECT 3 + CAST( NULL AS SIGNED ) * + + 67 / COUNT( * ) + 33 + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6658
SELECT 3 + CAST ( NULL AS INTEGER ) * + + 67 / COUNT ( * ) + 33 + + COUNT ( * )
----
NULL

query I rowsort
SELECT + 26 * - + 11 AS col1
----
-286

query I rowsort
SELECT DISTINCT 74 + 15 + 68 * + + 54
----
3761

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6661
SELECT + 53 DIV 35 AS col1, + COUNT( * ) * - 88 * - 69 * + COUNT( * ) col1
----
1
6072

skipif mysql # not compatible
query II rowsort label-6661
SELECT + 53 / 35 AS col1, + COUNT ( * ) * - 88 * - 69 * + COUNT ( * ) col1
----
1
6072

onlyif mysql # DIV for integer division: 
query I rowsort label-6662
SELECT DISTINCT - 73 DIV + - 51
----
1

skipif mysql # not compatible
query I rowsort label-6662
SELECT DISTINCT - 73 / + - 51
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6663
SELECT ALL + 46 * CAST( + 22 AS SIGNED ) - + 11 AS col0
----
1001

skipif mysql # not compatible
query I rowsort label-6663
SELECT ALL + 46 * CAST ( + 22 AS INTEGER ) - + 11 AS col0
----
1001

query I rowsort
SELECT ALL 58 * 52
----
3016

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6665
SELECT + COUNT( * ) * + + 33 - - + 85 + - - 35 * CAST( + + 30 AS SIGNED ) DIV 6 AS col1
----
293

skipif mysql # not compatible
query I rowsort label-6665
SELECT + COUNT ( * ) * + + 33 - - + 85 + - - 35 * CAST ( + + 30 AS INTEGER ) / 6 AS col1
----
293

query I rowsort
SELECT - + 55 + + 4
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6667
SELECT ALL + ( - + 7 ) * ( COUNT( * ) ) / + CASE - COUNT( * ) WHEN + + 79 THEN COUNT( DISTINCT - 85 ) WHEN - 41 THEN + + 43 END - 19 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6667
SELECT ALL + ( - + 7 ) * ( COUNT ( * ) ) / + CASE - COUNT ( * ) WHEN + + 79 THEN COUNT ( DISTINCT - 85 ) WHEN - 41 THEN + + 43 END - 19 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6668
SELECT + - 85 DIV + 39, - 8 + - + COUNT( * ) AS col1
----
-2
-9

skipif mysql # not compatible
query II rowsort label-6668
SELECT + - 85 / + 39, - 8 + - + COUNT ( * ) AS col1
----
-2
-9

query I rowsort
SELECT - - 80 * + 68 AS col2
----
5440

onlyif mysql # aggregate syntax: 
query II rowsort label-6670
SELECT + + COALESCE ( + COUNT( * ), + 21, - - 99 * + + 22 * - COUNT( ALL - ( - 74 ) ) ) - + COUNT( * ), + COUNT( * ) AS col2
----
0
1

skipif mysql # not compatible
query II rowsort label-6670
SELECT + + COALESCE ( + COUNT ( * ), + 21, - - 99 * + + 22 * - COUNT ( ALL - ( - 74 ) ) ) - + COUNT ( * ), + COUNT ( * ) AS col2
----
0
1

onlyif mysql # DIV for integer division: 
query II rowsort label-6671
SELECT + - 23 * + 88 + 3 + 3 DIV 29, - 90 AS col1
----
-2021
-90

skipif mysql # not compatible
query II rowsort label-6671
SELECT + - 23 * + 88 + 3 + 3 / 29, - 90 AS col1
----
-2021
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-6672
SELECT MAX( - + ( + + 79 ) ) AS col0, 85
----
-79
85

skipif mysql # not compatible
query II rowsort label-6672
SELECT MAX ( - + ( + + 79 ) ) AS col0, 85
----
-79
85

query I rowsort
SELECT ALL + 58 * 62
----
3596

onlyif mysql # aggregate syntax: 
query I rowsort label-6674
SELECT DISTINCT + MAX( DISTINCT - ( - 17 ) ) col0
----
17

skipif mysql # not compatible
query I rowsort label-6674
SELECT DISTINCT + MAX ( DISTINCT - ( - 17 ) ) col0
----
17

onlyif mysql # aggregate syntax: 
query III rowsort label-6675
SELECT ALL + 83 AS col1, 83 * - 43 AS col1, NULLIF ( MIN( - 25 ), + 59 * + 18 + + 38 + - AVG ( DISTINCT 60 ) * + + 7 ) - + MIN( 89 ) AS col2
----
83
-3569
-114

skipif mysql # not compatible
query III rowsort label-6675
SELECT ALL + 83 AS col1, 83 * - 43 AS col1, NULLIF ( MIN ( - 25 ), + 59 * + 18 + + 38 + - AVG ( DISTINCT 60 ) * + + 7 ) - + MIN ( 89 ) AS col2
----
83
-3569
-114

onlyif mysql # aggregate syntax: 
query III rowsort label-6676
SELECT + 36 col1, + 53 + - 2, + + 59 + + COUNT( * ) AS col1
----
36
51
60

skipif mysql # not compatible
query III rowsort label-6676
SELECT + 36 col1, + 53 + - 2, + + 59 + + COUNT ( * ) AS col1
----
36
51
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6677
SELECT + 65 * 82 * + MIN( + 92 )
----
490360

skipif mysql # not compatible
query I rowsort label-6677
SELECT + 65 * 82 * + MIN ( + 92 )
----
490360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6678
SELECT ALL + CAST( - COUNT( * ) AS SIGNED ) + 35 col0
----
34

skipif mysql # not compatible
query I rowsort label-6678
SELECT ALL + CAST ( - COUNT ( * ) AS INTEGER ) + 35 col0
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6679
SELECT - 45 AS col2, 34 DIV - + 41 * + + COUNT( * ) * - SUM( DISTINCT + 71 ) + + 57 * - 35
----
-45
-1995

skipif mysql # not compatible
query II rowsort label-6679
SELECT - 45 AS col2, 34 / - + 41 * + + COUNT ( * ) * - SUM ( DISTINCT + 71 ) + + 57 * - 35
----
-45
-1995

query I rowsort
SELECT DISTINCT + 41 + 49
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6681
SELECT - 35 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6681
SELECT - 35 * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6682
SELECT ALL 41 + - - COUNT( * )
----
42

skipif mysql # not compatible
query I rowsort label-6682
SELECT ALL 41 + - - COUNT ( * )
----
42

query I rowsort
SELECT DISTINCT - 41 + + ( + 90 ) - + + 16 + 23 - 73
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6684
SELECT - 5 * + + COALESCE ( + COALESCE ( + + ( CASE - COUNT( * ) WHEN 67 THEN NULL WHEN + + 59 THEN - COALESCE ( - + CASE 8 WHEN 68 * - - 38 + - 38 THEN - + 9 + SUM( ALL 5 + + ( - 97 ) ) WHEN - 81 THEN - 87 ELSE + 32 + 54 END, 91, 65 + - 50 ) WHEN - 36 DIV 21 THEN 34 + 51 ELSE NULL END ), + 93 * + 31 ), - 84 * COUNT( * ) )
----
-425

skipif mysql # not compatible
query I rowsort label-6684
SELECT - 5 * + + COALESCE ( + COALESCE ( + + ( CASE - COUNT ( * ) WHEN 67 THEN NULL WHEN + + 59 THEN - COALESCE ( - + CASE 8 WHEN 68 * - - 38 + - 38 THEN - + 9 + SUM ( ALL 5 + + ( - 97 ) ) WHEN - 81 THEN - 87 ELSE + 32 + 54 END, 91, 65 + - 50 ) WHEN - 36 / 21 THEN 34 + 51 ELSE NULL END ), + 93 * + 31 ), - 84 * COUNT ( * ) )
----
-425

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6685
SELECT ALL NULLIF ( - 29, ( COUNT( * ) ) * CAST( + - 43 AS SIGNED ) )
----
-29

skipif mysql # not compatible
query I rowsort label-6685
SELECT ALL NULLIF ( - 29, ( COUNT ( * ) ) * CAST ( + - 43 AS INTEGER ) )
----
-29

query II rowsort
SELECT 10 col0, 65 + + 24 AS col2
----
10
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6687
SELECT - + AVG ( + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6687
SELECT - + AVG ( + - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT - - 91 - - 65
----
156

onlyif mysql # DIV for integer division: 
query I rowsort label-6689
SELECT - COALESCE ( - 17, 38 DIV - + NULLIF ( - 31, + 90 ) + - - 49 ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-6689
SELECT - COALESCE ( - 17, 38 / - + NULLIF ( - 31, + 90 ) + - - 49 ) AS col0
----
17

query I rowsort
SELECT - + 16 + 9 AS col2
----
-7

query I rowsort
SELECT - 37 + + 91 AS col1
----
54

query I rowsort
SELECT ALL - 36 - 48 + - 54 * + + 82 AS col2
----
-4512

onlyif mysql # aggregate syntax: 
query I rowsort label-6693
SELECT DISTINCT + 72 * 89 + + MIN( DISTINCT - 82 )
----
6326

skipif mysql # not compatible
query I rowsort label-6693
SELECT DISTINCT + 72 * 89 + + MIN ( DISTINCT - 82 )
----
6326

query I rowsort
SELECT + - 75 - - 61
----
-14

query I rowsort
SELECT DISTINCT + + 31 * + 24 col0
----
744

onlyif mysql # aggregate syntax: 
query I rowsort label-6696
SELECT - - 89 * - + COALESCE ( - + 55, MAX( + + 77 ), - 92, + 99 ) - ( + + ( + 45 ) )
----
4850

skipif mysql # not compatible
query I rowsort label-6696
SELECT - - 89 * - + COALESCE ( - + 55, MAX ( + + 77 ), - 92, + 99 ) - ( + + ( + 45 ) )
----
4850

query I rowsort
SELECT DISTINCT + - 65 col2
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6698
SELECT 40 DIV 30 - - 21 DIV + 89 * + 77 + + COUNT( ALL 83 )
----
2

skipif mysql # not compatible
query I rowsort label-6698
SELECT 40 / 30 - - 21 / + 89 * + 77 + + COUNT ( ALL 83 )
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6699
SELECT + COUNT( * ) * 40 * 18 DIV - CASE + 17 WHEN 44 THEN + + COALESCE ( + + COUNT( DISTINCT 82 ), + 39 * + 19 + + 28 + 73, - 25 DIV 11 + 33 ) * 68 ELSE 56 END
----
-12

skipif mysql # not compatible
query I rowsort label-6699
SELECT + COUNT ( * ) * 40 * 18 / - CASE + 17 WHEN 44 THEN + + COALESCE ( + + COUNT ( DISTINCT 82 ), + 39 * + 19 + + 28 + 73, - 25 / 11 + 33 ) * 68 ELSE 56 END
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-6700
SELECT + MAX( ALL + - 56 ) * 14 + + 1
----
-783

skipif mysql # not compatible
query I rowsort label-6700
SELECT + MAX ( ALL + - 56 ) * 14 + + 1
----
-783

query I rowsort
SELECT DISTINCT - 96 * - - 10 AS col2
----
-960

onlyif mysql # aggregate syntax: 
query II rowsort label-6702
SELECT ALL + - 50 AS col2, - COUNT( * ) * + + COUNT( * ) + + 23 - 67 + 61 + 96 * - 61 * ( + + 79 ) * 73 + - ( + + 64 )
----
-50
-33771600

skipif mysql # not compatible
query II rowsort label-6702
SELECT ALL + - 50 AS col2, - COUNT ( * ) * + + COUNT ( * ) + + 23 - 67 + 61 + 96 * - 61 * ( + + 79 ) * 73 + - ( + + 64 )
----
-50
-33771600

onlyif mysql # DIV for integer division: 
query I rowsort label-6703
SELECT + 1 DIV - - 4 * 52 * - 62 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6703
SELECT + 1 / - - 4 * 52 * - 62 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6704
SELECT ALL 7 DIV + + MAX( DISTINCT 62 ) * - - 88 + 61
----
61

skipif mysql # not compatible
query I rowsort label-6704
SELECT ALL 7 / + + MAX ( DISTINCT 62 ) * - - 88 + 61
----
61

query I rowsort
SELECT + ( 27 ) col0
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-6706
SELECT ALL + 83 col0, - 41 * - COUNT( * )
----
83
41

skipif mysql # not compatible
query II rowsort label-6706
SELECT ALL + 83 col0, - 41 * - COUNT ( * )
----
83
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6707
SELECT DISTINCT - 32 * + + 78 + - COUNT( * ) * - 86 + + COUNT( * ) AS col1
----
-2409

skipif mysql # not compatible
query I rowsort label-6707
SELECT DISTINCT - 32 * + + 78 + - COUNT ( * ) * - 86 + + COUNT ( * ) AS col1
----
-2409

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6708
SELECT + 65 DIV + COUNT( * ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-6708
SELECT + 65 / + COUNT ( * ) AS col2
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-6709
SELECT + 71 DIV + 15
----
4

skipif mysql # not compatible
query I rowsort label-6709
SELECT + 71 / + 15
----
4

query I rowsort
SELECT ALL + 99 * 49 + - - 0 AS col0
----
4851

query I rowsort
SELECT CASE - - 20 WHEN - 97 + - 35 * + - 25 / + 80 + 43 THEN - 78 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6712
SELECT + MAX( 46 ) + - - 66 + COUNT( * ) AS col0
----
113

skipif mysql # not compatible
query I rowsort label-6712
SELECT + MAX ( 46 ) + - - 66 + COUNT ( * ) AS col0
----
113

query I rowsort
SELECT + 18 * + 53 * 82 AS col1
----
78228

onlyif mysql # aggregate syntax: 
query I rowsort label-6714
SELECT NULLIF ( + MAX( + 18 ), - - 60 + - + 24 )
----
18

skipif mysql # not compatible
query I rowsort label-6714
SELECT NULLIF ( + MAX ( + 18 ), - - 60 + - + 24 )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-6715
SELECT 63 * 55 * + 44 + COUNT( * )
----
152461

skipif mysql # not compatible
query I rowsort label-6715
SELECT 63 * 55 * + 44 + COUNT ( * )
----
152461

onlyif mysql # aggregate syntax: 
query I rowsort label-6716
SELECT ALL - 22 * 55 + - 40 - - 12 * - COUNT( * ) col1
----
-1262

skipif mysql # not compatible
query I rowsort label-6716
SELECT ALL - 22 * 55 + - 40 - - 12 * - COUNT ( * ) col1
----
-1262

query I rowsort
SELECT 0 * 62 + - + 31 AS col1
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6718
SELECT ALL 61 * - + 4 + ( - 77 ) + COUNT( * ) - ( - 21 ) + - + ( + - 84 ) + CASE + 86 WHEN 6 THEN NULL WHEN + 43 * + - 85 * - 44 THEN NULL ELSE COUNT( * ) + CAST( 32 + + 53 DIV - 14 AS SIGNED ) * 23 END * - 52 AS col1
----
-34951

skipif mysql # not compatible
query I rowsort label-6718
SELECT ALL 61 * - + 4 + ( - 77 ) + COUNT ( * ) - ( - 21 ) + - + ( + - 84 ) + CASE + 86 WHEN 6 THEN NULL WHEN + 43 * + - 85 * - 44 THEN NULL ELSE COUNT ( * ) + CAST ( 32 + + 53 / - 14 AS INTEGER ) * 23 END * - 52 AS col1
----
-34951

onlyif mysql # aggregate syntax: 
query I rowsort label-6719
SELECT SUM( DISTINCT 57 )
----
57

skipif mysql # not compatible
query I rowsort label-6719
SELECT SUM ( DISTINCT 57 )
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-6720
SELECT ALL COUNT( * ) * - - ( 79 ) + + 91 AS col0, 91 AS col2
----
170
91

skipif mysql # not compatible
query II rowsort label-6720
SELECT ALL COUNT ( * ) * - - ( 79 ) + + 91 AS col0, 91 AS col2
----
170
91

query I rowsort
SELECT - 77 - - 68 + - + 56 * 93 + 94 * + 60 col0
----
423

onlyif mysql # aggregate syntax: 
query I rowsort label-6722
SELECT ALL - 34 * COUNT( * ) * 55
----
-1870

skipif mysql # not compatible
query I rowsort label-6722
SELECT ALL - 34 * COUNT ( * ) * 55
----
-1870

onlyif mysql # aggregate syntax: 
query I rowsort label-6723
SELECT ALL 91 - - - COUNT( * ) * ( - 47 )
----
138

skipif mysql # not compatible
query I rowsort label-6723
SELECT ALL 91 - - - COUNT ( * ) * ( - 47 )
----
138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6724
SELECT ALL - CAST( - COALESCE ( + 12, - MIN( ALL - 96 ) - - 32, CAST( NULL AS SIGNED ) * - + 31 + SUM( ALL 95 ) ) AS SIGNED ) - - 2 - + + 51 DIV COUNT( * ) * + - 1
----
65

skipif mysql # not compatible
query I rowsort label-6724
SELECT ALL - CAST ( - COALESCE ( + 12, - MIN ( ALL - 96 ) - - 32, CAST ( NULL AS INTEGER ) * - + 31 + SUM ( ALL 95 ) ) AS INTEGER ) - - 2 - + + 51 / COUNT ( * ) * + - 1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6725
SELECT COUNT( * ) * 81 + + - 65 AS col0
----
16

skipif mysql # not compatible
query I rowsort label-6725
SELECT COUNT ( * ) * 81 + + - 65 AS col0
----
16

query I rowsort
SELECT ALL - + 41 * - NULLIF ( - + 9, + 0 )
----
-369

query I rowsort
SELECT ALL - NULLIF ( + + 47, + 31 )
----
-47

query I rowsort
SELECT + 57 + - 47 AS col2
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6729
SELECT 22 DIV - COUNT( - 50 ) col1
----
-22

skipif mysql # not compatible
query I rowsort label-6729
SELECT 22 / - COUNT ( - 50 ) col1
----
-22

query I rowsort
SELECT - ( ( + 14 ) ) * - 81 AS col0
----
1134

onlyif mysql # aggregate syntax: 
query I rowsort label-6731
SELECT 81 + - 8 * + CASE 28 WHEN ( 23 ) + - 82 THEN NULL ELSE 17 END + ( COUNT( * ) ) * 50 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-6731
SELECT 81 + - 8 * + CASE 28 WHEN ( 23 ) + - 82 THEN NULL ELSE 17 END + ( COUNT ( * ) ) * 50 AS col1
----
-5

query I rowsort
SELECT + 98 * + 10
----
980

query II rowsort
SELECT 21 AS col2, 29
----
21
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6734
SELECT ALL + - CASE + + 38 WHEN + 4 * - 60 + + COUNT( * ) + - + 86 THEN NULL ELSE + 52 + - COUNT( * ) END * + 3 AS col2, 7 DIV - 71 AS col0
----
-153
0

skipif mysql # not compatible
query II rowsort label-6734
SELECT ALL + - CASE + + 38 WHEN + 4 * - 60 + + COUNT ( * ) + - + 86 THEN NULL ELSE + 52 + - COUNT ( * ) END * + 3 AS col2, 7 / - 71 AS col0
----
-153
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6735
SELECT + 46 + + - 91 + + COUNT( * )
----
-44

skipif mysql # not compatible
query I rowsort label-6735
SELECT + 46 + + - 91 + + COUNT ( * )
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6736
SELECT DISTINCT + 47 DIV - 57 * + CASE 78 WHEN + - 59 * 75 * COUNT( * ) + + 80 + - + 82 THEN - COUNT( ALL - 99 ) WHEN - 12 * + ( - - 85 ) * + + COUNT( * ) THEN 18 + - 43 ELSE - 59 + 89 * + 7 END
----
0

skipif mysql # not compatible
query I rowsort label-6736
SELECT DISTINCT + 47 / - 57 * + CASE 78 WHEN + - 59 * 75 * COUNT ( * ) + + 80 + - + 82 THEN - COUNT ( ALL - 99 ) WHEN - 12 * + ( - - 85 ) * + + COUNT ( * ) THEN 18 + - 43 ELSE - 59 + 89 * + 7 END
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6737
SELECT ALL - 4, COUNT( * ) + - 9 AS col0
----
-4
-8

skipif mysql # not compatible
query II rowsort label-6737
SELECT ALL - 4, COUNT ( * ) + - 9 AS col0
----
-4
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6738
SELECT DISTINCT + CAST( - 86 AS SIGNED ) * - 21
----
1806

skipif mysql # not compatible
query I rowsort label-6738
SELECT DISTINCT + CAST ( - 86 AS INTEGER ) * - 21
----
1806

query I rowsort
SELECT ALL - ( - 55 )
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-6740
SELECT ALL - 81, + CASE - 43 WHEN - 10 THEN NULL ELSE COUNT( * ) * - COUNT( * ) * COUNT( * ) END AS col0
----
-81
-1

skipif mysql # not compatible
query II rowsort label-6740
SELECT ALL - 81, + CASE - 43 WHEN - 10 THEN NULL ELSE COUNT ( * ) * - COUNT ( * ) * COUNT ( * ) END AS col0
----
-81
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6741
SELECT - COUNT( ALL - + COALESCE ( 28, - 82 - - 37 ) ) DIV 7 DIV - 47 + - COALESCE ( - CAST( 76 AS SIGNED ), 54 * - MAX( - 12 ) + + + 77 + 44, - COUNT( + + 73 ) ) * + COUNT( 72 * - 96 ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-6741
SELECT - COUNT ( ALL - + COALESCE ( 28, - 82 - - 37 ) ) / 7 / - 47 + - COALESCE ( - CAST ( 76 AS INTEGER ), 54 * - MAX ( - 12 ) + + + 77 + 44, - COUNT ( + + 73 ) ) * + COUNT ( 72 * - 96 ) AS col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6742
SELECT 67 * COUNT( - 70 ) * 69 AS col0
----
4623

skipif mysql # not compatible
query I rowsort label-6742
SELECT 67 * COUNT ( - 70 ) * 69 AS col0
----
4623

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6743
SELECT 44 * + - 5 * + MAX( DISTINCT - CAST( + 37 AS SIGNED ) ) AS col0
----
8140

skipif mysql # not compatible
query I rowsort label-6743
SELECT 44 * + - 5 * + MAX ( DISTINCT - CAST ( + 37 AS INTEGER ) ) AS col0
----
8140

query I rowsort
SELECT DISTINCT 88 + - + 2 col2
----
86

query I rowsort
SELECT ALL - 41 + 38 * 16 AS col2
----
567

onlyif mysql # aggregate syntax: 
query II rowsort label-6746
SELECT ALL MIN( DISTINCT + 79 ) + + NULLIF ( + + 15, - 18 ) * ( 6 ) AS col0, 12 AS col1
----
169
12

skipif mysql # not compatible
query II rowsort label-6746
SELECT ALL MIN ( DISTINCT + 79 ) + + NULLIF ( + + 15, - 18 ) * ( 6 ) AS col0, 12 AS col1
----
169
12

query I rowsort
SELECT DISTINCT 53 + + 57 + + 61 AS col0
----
171

onlyif mysql # aggregate syntax: 
query II rowsort label-6748
SELECT SUM( 35 ) * + - 67, NULLIF ( 76, - COUNT( * ) + 59 * 66 * 81 ) col0
----
-2345
76

skipif mysql # not compatible
query II rowsort label-6748
SELECT SUM ( 35 ) * + - 67, NULLIF ( 76, - COUNT ( * ) + 59 * 66 * 81 ) col0
----
-2345
76

query I rowsort
SELECT ALL 87 + + - 38
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6750
SELECT 69 * + CAST( NULL AS DECIMAL ) * - + COALESCE ( CASE - + COUNT( * ) WHEN - CAST( NULL AS SIGNED ) THEN + 7 WHEN 95 THEN - - 7 * - 54 + - + 13 + + 28 ELSE 98 - + 21 - COUNT( * ) END, + ( + 44 ) * + 14 ) * 70 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6750
SELECT 69 * + CAST ( NULL AS REAL ) * - + COALESCE ( CASE - + COUNT ( * ) WHEN - CAST ( NULL AS INTEGER ) THEN + 7 WHEN 95 THEN - - 7 * - 54 + - + 13 + + 28 ELSE 98 - + 21 - COUNT ( * ) END, + ( + 44 ) * + 14 ) * 70 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6751
SELECT ( 22 ) * 59 + - COUNT( * ) AS col2
----
1297

skipif mysql # not compatible
query I rowsort label-6751
SELECT ( 22 ) * 59 + - COUNT ( * ) AS col2
----
1297

onlyif mysql # aggregate syntax: 
query I rowsort label-6752
SELECT DISTINCT 84 * + - 41 * - - 81 / NULLIF ( + 85, - 67 ) + - 33 + + 70 + 62 + - 28 * - 21 * CASE 47 WHEN - 84 THEN - 15 END - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6752
SELECT DISTINCT 84 * + - 41 * - - 81 / NULLIF ( + 85, - 67 ) + - 33 + + 70 + 62 + - 28 * - 21 * CASE 47 WHEN - 84 THEN - 15 END - - COUNT ( * )
----
NULL

query II rowsort
SELECT DISTINCT - - 6 * + 52, 72 AS col2
----
312
72

query I rowsort
SELECT DISTINCT - 62 * - 71 col2
----
4402

onlyif mysql # aggregate syntax: 
query I rowsort label-6755
SELECT ALL + + 64 * NULLIF ( + + 39, + 97 / COUNT( * ) * - - AVG ( - 92 ) ) + + COUNT( * ) AS col0
----
2497

skipif mysql # not compatible
query I rowsort label-6755
SELECT ALL + + 64 * NULLIF ( + + 39, + 97 / COUNT ( * ) * - - AVG ( - 92 ) ) + + COUNT ( * ) AS col0
----
2497

query I rowsort
SELECT ALL + 18 * - 3 AS col0
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6757
SELECT + 44 DIV CASE 31 WHEN 60 DIV + 60 * + 88 * COUNT( * ) * 3 + COUNT( * ) + - 85 * + - 32 + - 3 * + + MIN( DISTINCT + 80 ) THEN CAST( - + 2 AS SIGNED ) * + 39 ELSE 8 END AS col0
----
5

skipif mysql # not compatible
query I rowsort label-6757
SELECT + 44 / CASE 31 WHEN 60 / + 60 * + 88 * COUNT ( * ) * 3 + COUNT ( * ) + - 85 * + - 32 + - 3 * + + MIN ( DISTINCT + 80 ) THEN CAST ( - + 2 AS INTEGER ) * + 39 ELSE 8 END AS col0
----
5

query II rowsort
SELECT DISTINCT 14 * + 34 AS col2, 52 AS col2
----
476
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6759
SELECT DISTINCT - COUNT( DISTINCT + 47 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6759
SELECT DISTINCT - COUNT ( DISTINCT + 47 ) AS col0
----
-1

query I rowsort
SELECT ALL + 68 + 33
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-6761
SELECT + 76 * 74 + ( + NULLIF ( + 10, - NULLIF ( - - 21, 89 ) + COUNT( * ) ) )
----
5634

skipif mysql # not compatible
query I rowsort label-6761
SELECT + 76 * 74 + ( + NULLIF ( + 10, - NULLIF ( - - 21, 89 ) + COUNT ( * ) ) )
----
5634

query I rowsort
SELECT ALL + + 1 * - 30 + - 94
----
-124

query I rowsort
SELECT 67 + + 78
----
145

onlyif mysql # aggregate syntax: 
query II rowsort label-6764
SELECT 38 * ( + COUNT( * ) ) AS col1, 45 + + 27
----
38
72

skipif mysql # not compatible
query II rowsort label-6764
SELECT 38 * ( + COUNT ( * ) ) AS col1, 45 + + 27
----
38
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6765
SELECT 9 / + 24 + CASE + + 78 WHEN - 43 + 22 THEN 37 + - - COUNT( * ) WHEN + 26 / + CASE - 17 WHEN - + 20 THEN - 44 * - + ( - 87 ) + - 11 * + 11 END / - CAST( NULL AS SIGNED ) THEN 38 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6765
SELECT 9 / + 24 + CASE + + 78 WHEN - 43 + 22 THEN 37 + - - COUNT ( * ) WHEN + 26 / + CASE - 17 WHEN - + 20 THEN - 44 * - + ( - 87 ) + - 11 * + 11 END / - CAST ( NULL AS INTEGER ) THEN 38 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6766
SELECT ALL - 51 * - CAST( + 16 AS SIGNED ) / - - 24 + CASE 79 WHEN - - COUNT( * ) * - AVG ( + 89 ) THEN NULL WHEN + + COUNT( * ) THEN + + 58 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6766
SELECT ALL - 51 * - CAST ( + 16 AS INTEGER ) / - - 24 + CASE 79 WHEN - - COUNT ( * ) * - AVG ( + 89 ) THEN NULL WHEN + + COUNT ( * ) THEN + + 58 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6767
SELECT COUNT( * ) AS col1, 1 * + 70
----
1
70

skipif mysql # not compatible
query II rowsort label-6767
SELECT COUNT ( * ) AS col1, 1 * + 70
----
1
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6768
SELECT COUNT( * ), - CASE - 85 WHEN - 50 THEN CAST( - 40 AS SIGNED ) WHEN + - ( - ( + COUNT( * ) ) ) THEN - 71 * - 44 + 58 WHEN - 11 + + ( 55 ) THEN NULL END * - 26 * - + 45 * 83 AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-6768
SELECT COUNT ( * ), - CASE - 85 WHEN - 50 THEN CAST ( - 40 AS INTEGER ) WHEN + - ( - ( + COUNT ( * ) ) ) THEN - 71 * - 44 + 58 WHEN - 11 + + ( 55 ) THEN NULL END * - 26 * - + 45 * 83 AS col1
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6769
SELECT ALL - 37 * - COALESCE ( + COUNT( * ), - + ( 15 ), 43 ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-6769
SELECT ALL - 37 * - COALESCE ( + COUNT ( * ), - + ( 15 ), 43 ) AS col1
----
37

query I rowsort
SELECT DISTINCT - ( + - 15 )
----
15

query I rowsort
SELECT DISTINCT - 28 - + - 2 col2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-6772
SELECT + COUNT( * ) * - 13 * 21 + 1 col1
----
-272

skipif mysql # not compatible
query I rowsort label-6772
SELECT + COUNT ( * ) * - 13 * 21 + 1 col1
----
-272

query I rowsort
SELECT 78 + - + 6 + 53 AS col1
----
125

query I rowsort
SELECT 82 * 72 * + 34 AS col0
----
200736

query I rowsort
SELECT + 83 * - + ( 53 ) * + - 13 + + 56 AS col0
----
57243

onlyif mysql # aggregate syntax: 
query I rowsort label-6776
SELECT ALL COUNT( * ) - 36 AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-6776
SELECT ALL COUNT ( * ) - 36 AS col1
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6777
SELECT + 98 + 88 + + 90 + + + 99 - + MAX( + + 27 ) DIV - 20 AS col0
----
376

skipif mysql # not compatible
query I rowsort label-6777
SELECT + 98 + 88 + + 90 + + + 99 - + MAX ( + + 27 ) / - 20 AS col0
----
376

query I rowsort
SELECT + + 79 * + ( 59 ) * 3 AS col2
----
13983

query I rowsort
SELECT + 26 + - - ( + 27 ) * + 53 AS col0
----
1457

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6780
SELECT ALL + ( + 5 ) DIV + + 42 * - MIN( 12 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6780
SELECT ALL + ( + 5 ) / + + 42 * - MIN ( 12 ) AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6781
SELECT + COALESCE ( ( CASE 12 WHEN + 49 THEN + 96 END ), + 78 ) + + 41 * - COUNT( - 30 ) DIV COUNT( * ) + + 37
----
74

skipif mysql # not compatible
query I rowsort label-6781
SELECT + COALESCE ( ( CASE 12 WHEN + 49 THEN + 96 END ), + 78 ) + + 41 * - COUNT ( - 30 ) / COUNT ( * ) + + 37
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-6782
SELECT - 83 DIV + 71
----
-1

skipif mysql # not compatible
query I rowsort label-6782
SELECT - 83 / + 71
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6783
SELECT - + COUNT( * ) col2, COALESCE ( + 50, - 33 )
----
-1
50

skipif mysql # not compatible
query II rowsort label-6783
SELECT - + COUNT ( * ) col2, COALESCE ( + 50, - 33 )
----
-1
50

query I rowsort
SELECT DISTINCT - ( + 5 )
----
-5

query I rowsort
SELECT ALL + 33 + + + 67 AS col0
----
100

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6786
SELECT + + CAST( NULL AS DECIMAL ) + + SUM( DISTINCT 56 ) * + 95 + + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-6786
SELECT + + CAST ( NULL AS REAL ) + + SUM ( DISTINCT 56 ) * + 95 + + 1
----
NULL

query I rowsort
SELECT ALL + 63 * + 90 + - 35
----
5635

onlyif mysql # aggregate syntax: 
query I rowsort label-6788
SELECT ALL CASE + - 32 WHEN + COUNT( ALL - - ( + 65 ) ) * 89 THEN + - 86 END / + + 93 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6788
SELECT ALL CASE + - 32 WHEN + COUNT ( ALL - - ( + 65 ) ) * 89 THEN + - 86 END / + + 93 AS col2
----
NULL

query I rowsort
SELECT + + 77 * 74
----
5698

query I rowsort
SELECT ALL 2 + + ( - 69 ) AS col2
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6791
SELECT DISTINCT + 39 + - NULLIF ( CAST( + + 91 AS SIGNED ), 86 * - COUNT( * ) ) AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-6791
SELECT DISTINCT + 39 + - NULLIF ( CAST ( + + 91 AS INTEGER ), 86 * - COUNT ( * ) ) AS col0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-6792
SELECT + 99 * + NULLIF ( 22, + 11 ) + + ( + 43 ) - - COUNT( * ) * - 46 * COUNT( * )
----
2175

skipif mysql # not compatible
query I rowsort label-6792
SELECT + 99 * + NULLIF ( 22, + 11 ) + + ( + 43 ) - - COUNT ( * ) * - 46 * COUNT ( * )
----
2175

query I rowsort
SELECT + 69 + 94
----
163

query I rowsort
SELECT ALL - 6 + 6 AS col0
----
0

query I rowsort
SELECT DISTINCT + 89 + - - 81 AS col1
----
170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6796
SELECT - ( - CASE + 80 WHEN 75 * - - 24 * + CAST( NULL AS SIGNED ) * - 63 + 4 * - - CAST( NULL AS SIGNED ) * + - 1 THEN SUM( DISTINCT + 4 ) + - 33 + + + CASE + + 59 WHEN + 53 THEN 54 WHEN + 52 THEN NULL ELSE NULL END END ) + 20 + 34 / CAST( + 20 + - 12 * 34 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6796
SELECT - ( - CASE + 80 WHEN 75 * - - 24 * + CAST ( NULL AS INTEGER ) * - 63 + 4 * - - CAST ( NULL AS INTEGER ) * + - 1 THEN SUM ( DISTINCT + 4 ) + - 33 + + + CASE + + 59 WHEN + 53 THEN 54 WHEN + 52 THEN NULL ELSE NULL END END ) + 20 + 34 / CAST ( + 20 + - 12 * 34 AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL 99 * + 67 + - - 79
----
6712

onlyif mysql # aggregate syntax: 
query I rowsort label-6798
SELECT - ( + + COUNT( * ) ) * + + 35 col0
----
-35

skipif mysql # not compatible
query I rowsort label-6798
SELECT - ( + + COUNT ( * ) ) * + + 35 col0
----
-35

query I rowsort
SELECT DISTINCT 74 * - ( NULLIF ( 94, 52 * + 59 ) ) - 41 * + 11
----
-7407

query I rowsort
SELECT ( + + 22 )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6801
SELECT - SUM( DISTINCT - - 49 ) + + 70 * - COUNT( * ) col0
----
-119

skipif mysql # not compatible
query I rowsort label-6801
SELECT - SUM ( DISTINCT - - 49 ) + + 70 * - COUNT ( * ) col0
----
-119

query I rowsort
SELECT + ( 18 ) * 87 AS col2
----
1566

onlyif mysql # aggregate syntax: 
query I rowsort label-6803
SELECT - 5 - + SUM( DISTINCT 97 ) AS col1
----
-102

skipif mysql # not compatible
query I rowsort label-6803
SELECT - 5 - + SUM ( DISTINCT 97 ) AS col1
----
-102

query I rowsort
SELECT - 23 * 66 * + 79 AS col1
----
-119922

onlyif mysql # aggregate syntax: 
query I rowsort label-6805
SELECT ALL + ( + COUNT( * ) ) * - - COUNT( ALL - 50 )
----
1

skipif mysql # not compatible
query I rowsort label-6805
SELECT ALL + ( + COUNT ( * ) ) * - - COUNT ( ALL - 50 )
----
1

query I rowsort
SELECT DISTINCT - 52 * - 76 col1
----
3952

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6807
SELECT DISTINCT + 61 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6807
SELECT DISTINCT + 61 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + + 72 * 99 col0
----
7128

query I rowsort
SELECT + - 67 * + 18 * - 70 AS col2
----
84420

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6810
SELECT - 90 * + MAX( + CAST( + 55 AS SIGNED ) ) - + COUNT( * ) AS col1
----
-4951

skipif mysql # not compatible
query I rowsort label-6810
SELECT - 90 * + MAX ( + CAST ( + 55 AS INTEGER ) ) - + COUNT ( * ) AS col1
----
-4951

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6811
SELECT ALL - ( + CAST( NULL AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6811
SELECT ALL - ( + CAST ( NULL AS INTEGER ) ) col1
----
NULL

query I rowsort
SELECT DISTINCT + - 42 * + - ( 63 ) + - 34 * - 96 + - - 17 AS col0
----
5927

query I rowsort
SELECT ALL + + 80 + - - 43
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-6814
SELECT DISTINCT - + COUNT( * ) + - - 31 AS col1
----
30

skipif mysql # not compatible
query I rowsort label-6814
SELECT DISTINCT - + COUNT ( * ) + - - 31 AS col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6815
SELECT MIN( DISTINCT - 74 ) AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-6815
SELECT MIN ( DISTINCT - 74 ) AS col1
----
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-6816
SELECT - - 29 * + 43, + CASE 21 WHEN - 1 THEN + 62 + - + 86 WHEN + - COUNT( * ) THEN NULL END / + - 15 AS col1
----
1247
NULL

skipif mysql # not compatible
query II rowsort label-6816
SELECT - - 29 * + 43, + CASE 21 WHEN - 1 THEN + 62 + - + 86 WHEN + - COUNT ( * ) THEN NULL END / + - 15 AS col1
----
1247
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6817
SELECT + 20 + - + 58 + + MAX( DISTINCT + 27 ) - - + COUNT( * ) DIV + 44 DIV + 6 AS col2, - 1 AS col0
----
-11
-1

skipif mysql # not compatible
query II rowsort label-6817
SELECT + 20 + - + 58 + + MAX ( DISTINCT + 27 ) - - + COUNT ( * ) / + 44 / + 6 AS col2, - 1 AS col0
----
-11
-1

query I rowsort
SELECT + 89 * + - 34 AS col1
----
-3026

onlyif mysql # aggregate syntax: 
query I rowsort label-6819
SELECT DISTINCT - COUNT( * ) * - 23 * - ( - 74 )
----
1702

skipif mysql # not compatible
query I rowsort label-6819
SELECT DISTINCT - COUNT ( * ) * - 23 * - ( - 74 )
----
1702

query I rowsort
SELECT ALL 7 - - - 45 - + 79
----
-117

onlyif mysql # DIV for integer division: 
query I rowsort label-6821
SELECT DISTINCT 66 DIV - NULLIF ( - 88, - 16 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6821
SELECT DISTINCT 66 / - NULLIF ( - 88, - 16 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6822
SELECT + 71 + SUM( - 36 )
----
35

skipif mysql # not compatible
query I rowsort label-6822
SELECT + 71 + SUM ( - 36 )
----
35

query II rowsort
SELECT ALL 27, - 70 AS col2
----
27
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-6824
SELECT DISTINCT 36 - COUNT( * )
----
35

skipif mysql # not compatible
query I rowsort label-6824
SELECT DISTINCT 36 - COUNT ( * )
----
35

query I rowsort
SELECT + ( - - ( + 83 ) ) + - - 69 * + NULLIF ( + + 89, AVG ( ALL + ( - 37 ) ) ) AS col2
----
6224

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6826
SELECT - CAST( + 69 AS SIGNED )
----
-69

skipif mysql # not compatible
query I rowsort label-6826
SELECT - CAST ( + 69 AS INTEGER )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-6827
SELECT + COUNT( * ) + + NULLIF ( - - 27, - 57 - + 67 ) * + 69 - - COUNT( * ) + 70
----
1935

skipif mysql # not compatible
query I rowsort label-6827
SELECT + COUNT ( * ) + + NULLIF ( - - 27, - 57 - + 67 ) * + 69 - - COUNT ( * ) + 70
----
1935

onlyif mysql # aggregate syntax: 
query I rowsort label-6828
SELECT + 95 * 81 + MIN( ALL + 77 ) col0
----
7772

skipif mysql # not compatible
query I rowsort label-6828
SELECT + 95 * 81 + MIN ( ALL + 77 ) col0
----
7772

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6829
SELECT 83 DIV 29 + 80 * + 57 * - 10 * + - 27 + + COALESCE ( + COUNT( ALL - 98 ), 95 ), + CAST( 40 AS SIGNED ) col2
----
1231203
40

skipif mysql # not compatible
query II rowsort label-6829
SELECT 83 / 29 + 80 * + 57 * - 10 * + - 27 + + COALESCE ( + COUNT ( ALL - 98 ), 95 ), + CAST ( 40 AS INTEGER ) col2
----
1231203
40

onlyif mysql # DIV for integer division: 
query I rowsort label-6830
SELECT DISTINCT 70 DIV + - 91
----
0

skipif mysql # not compatible
query I rowsort label-6830
SELECT DISTINCT 70 / + - 91
----
0

query I rowsort
SELECT 91 + 33 AS col2
----
124

query I rowsort
SELECT 98 * - 42 * + 21 col1
----
-86436

onlyif mysql # aggregate syntax: 
query I rowsort label-6833
SELECT ALL 5 * + COUNT( * ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-6833
SELECT ALL 5 * + COUNT ( * ) AS col1
----
5

query I rowsort
SELECT DISTINCT 22 * + 39 * + 90
----
77220

onlyif mysql # aggregate syntax: 
query I rowsort label-6835
SELECT ALL - COUNT( DISTINCT + 3 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6835
SELECT ALL - COUNT ( DISTINCT + 3 ) AS col0
----
-1

query II rowsort
SELECT 84 * - 12 + - - 52, 35 * - 59 AS col0
----
-956
-2065

query I rowsort
SELECT 88 * - - 78 AS col0
----
6864

query I rowsort
SELECT 23 * + 28
----
644

onlyif mysql # aggregate syntax: 
query I rowsort label-6839
SELECT 43 + - 96 + + 79 + + + 54 * + 78 * + COUNT( * ) * - 64 AS col2
----
-269542

skipif mysql # not compatible
query I rowsort label-6839
SELECT 43 + - 96 + + 79 + + + 54 * + 78 * + COUNT ( * ) * - 64 AS col2
----
-269542

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6840
SELECT + CAST( 51 AS SIGNED ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-6840
SELECT + CAST ( 51 AS INTEGER ) AS col1
----
51

query I rowsort
SELECT 33 - + + 37 * - + 42 + + - 72
----
1515

onlyif mysql # DIV for integer division: 
query I rowsort label-6842
SELECT DISTINCT - 74 DIV - 26 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-6842
SELECT DISTINCT - 74 / - 26 AS col1
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-6843
SELECT DISTINCT - COUNT( DISTINCT 44 ) + 50 AS col2, 48 AS col1
----
49
48

skipif mysql # not compatible
query II rowsort label-6843
SELECT DISTINCT - COUNT ( DISTINCT 44 ) + 50 AS col2, 48 AS col1
----
49
48

query I rowsort
SELECT DISTINCT + 83 + - 57 AS col2
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-6845
SELECT ALL + - 44 + 35 DIV + 71 + - + 5
----
-49

skipif mysql # not compatible
query I rowsort label-6845
SELECT ALL + - 44 + 35 / + 71 + - + 5
----
-49

query I rowsort
SELECT + NULLIF ( 26, + + 52 + + 4 ) + + 11
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6847
SELECT ALL + - COUNT( * ) + 38 + ( + CAST( NULL AS SIGNED ) ) * 54 * 53 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6847
SELECT ALL + - COUNT ( * ) + 38 + ( + CAST ( NULL AS INTEGER ) ) * 54 * 53 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6848
SELECT COUNT( * ) + + 77 AS col2
----
78

skipif mysql # not compatible
query I rowsort label-6848
SELECT COUNT ( * ) + + 77 AS col2
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6849
SELECT 86 AS col0, - NULLIF ( + - 92, COUNT( * ) ) * COUNT( - CAST( + ( - + 23 ) AS SIGNED ) ) + 48 - - 43 * - COUNT( - - 0 )
----
86
97

skipif mysql # not compatible
query II rowsort label-6849
SELECT 86 AS col0, - NULLIF ( + - 92, COUNT ( * ) ) * COUNT ( - CAST ( + ( - + 23 ) AS INTEGER ) ) + 48 - - 43 * - COUNT ( - - 0 )
----
86
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6850
SELECT + CASE - 29 WHEN 24 THEN + 15 WHEN + 4 THEN 71 * - 9 + - AVG ( 27 ) END * + - COUNT( * ) + + - 9 * COALESCE ( ( + CAST( + 89 AS SIGNED ) ), + 51 ) * 77 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6850
SELECT + CASE - 29 WHEN 24 THEN + 15 WHEN + 4 THEN 71 * - 9 + - AVG ( 27 ) END * + - COUNT ( * ) + + - 9 * COALESCE ( ( + CAST ( + 89 AS INTEGER ) ), + 51 ) * 77 AS col1
----
NULL

query I rowsort
SELECT - 90 * - 74
----
6660

query I rowsort
SELECT 81 * + 49 AS col1
----
3969

query II rowsort
SELECT 29 AS col0, - 27 * + 59 + 69
----
29
-1524

onlyif mysql # aggregate syntax: 
query I rowsort label-6854
SELECT MAX( + 5 ) * - 76
----
-380

skipif mysql # not compatible
query I rowsort label-6854
SELECT MAX ( + 5 ) * - 76
----
-380

query I rowsort
SELECT DISTINCT 25 * + 89
----
2225

query II rowsort
SELECT DISTINCT - 95 - - 45, 17 AS col2
----
-50
17

query I rowsort
SELECT ALL 60 * + 26 * - + 60
----
-93600

query II rowsort
SELECT 51, 27 * - + 88 AS col1
----
51
-2376

onlyif mysql # aggregate syntax: 
query I rowsort label-6859
SELECT 53 * - - 28 * + + COUNT( * )
----
1484

skipif mysql # not compatible
query I rowsort label-6859
SELECT 53 * - - 28 * + + COUNT ( * )
----
1484

onlyif mysql # aggregate syntax: 
query II rowsort label-6860
SELECT - 81 AS col2, COUNT( * ) - - + 70 AS col0
----
-81
71

skipif mysql # not compatible
query II rowsort label-6860
SELECT - 81 AS col2, COUNT ( * ) - - + 70 AS col0
----
-81
71

query I rowsort
SELECT ALL 24 * - - 41
----
984

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6862
SELECT DISTINCT COUNT( DISTINCT - - 21 ) * + CASE + 10 WHEN - 73 * - MAX( ALL CAST( NULL AS SIGNED ) ) + + 46 + - 20 THEN - - 65 * + 12 ELSE + 87 END
----
87

skipif mysql # not compatible
query I rowsort label-6862
SELECT DISTINCT COUNT ( DISTINCT - - 21 ) * + CASE + 10 WHEN - 73 * - MAX ( ALL CAST ( NULL AS INTEGER ) ) + + 46 + - 20 THEN - - 65 * + 12 ELSE + 87 END
----
87

query I rowsort
SELECT DISTINCT - 60 * 76 AS col2
----
-4560

query II rowsort
SELECT DISTINCT 46 AS col0, 1
----
46
1

query I rowsort
SELECT 91 * + - 11
----
-1001

query I rowsort
SELECT ALL - 51 * - 72
----
3672

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6867
SELECT 6 / - 10 * - 40 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6867
SELECT 6 / - 10 * - 40 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT 75 AS col1, 45 * + + 41 AS col2
----
75
1845

query II rowsort
SELECT ALL - 52 AS col0, 63 AS col1
----
-52
63

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6870
SELECT DISTINCT 16 + - COALESCE ( - 48, + 10 DIV 17 - - - CAST( NULL AS SIGNED ) ) * 48 * - - 97
----
223504

skipif mysql # not compatible
query I rowsort label-6870
SELECT DISTINCT 16 + - COALESCE ( - 48, + 10 / 17 - - - CAST ( NULL AS INTEGER ) ) * 48 * - - 97
----
223504

query I rowsort
SELECT 33 * 95 AS col2
----
3135

query I rowsort
SELECT ALL 51 + + 76 - - 19
----
146

query II rowsort
SELECT 58 AS col0, 96 * + 88 * 37
----
58
312576

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6874
SELECT + COUNT( * ) * COUNT( * ) + COALESCE ( + 90, + - COUNT( * ) DIV - + ( NULLIF ( CASE + 28 WHEN - 18 THEN + 49 DIV + + COUNT( * ) * - + 12 DIV + 85 DIV - + COUNT( * ) * + - ( - - AVG ( + + 86 ) ) * + 36 + + 2 + + 81 + COUNT( * ) - - 90 * - ( + 50 * + 39 ) END, - 64 ) ) * - CAST( COALESCE ( 43, 25 ) + - 38 DIV 89 AS SIGNED ) ) + + 75 AS col2
----
166

skipif mysql # not compatible
query I rowsort label-6874
SELECT + COUNT ( * ) * COUNT ( * ) + COALESCE ( + 90, + - COUNT ( * ) / - + ( NULLIF ( CASE + 28 WHEN - 18 THEN + 49 / + + COUNT ( * ) * - + 12 / + 85 / - + COUNT ( * ) * + - ( - - AVG ( + + 86 ) ) * + 36 + + 2 + + 81 + COUNT ( * ) - - 90 * - ( + 50 * + 39 ) END, - 64 ) ) * - CAST ( COALESCE ( 43, 25 ) + - 38 / 89 AS INTEGER ) ) + + 75 AS col2
----
166

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6875
SELECT ALL + 45 * ( - COALESCE ( + 71, - COALESCE ( - + 58, CASE 33 WHEN - MIN( + CAST( 58 AS SIGNED ) ) * + 7 THEN + CASE - ( + 88 ) WHEN + + 94 / + 40 THEN NULL ELSE - 22 * - 4 + + 14 END END ) + + 61 ) ) AS col2
----
-3195

skipif mysql # not compatible
query I rowsort label-6875
SELECT ALL + 45 * ( - COALESCE ( + 71, - COALESCE ( - + 58, CASE 33 WHEN - MIN ( + CAST ( 58 AS INTEGER ) ) * + 7 THEN + CASE - ( + 88 ) WHEN + + 94 / + 40 THEN NULL ELSE - 22 * - 4 + + 14 END END ) + + 61 ) ) AS col2
----
-3195

query I rowsort
SELECT + 72 * 39 + - 22 AS col1
----
2786

query I rowsort
SELECT ALL - 34 + 8 AS col1
----
-26

query I rowsort
SELECT ALL 46 + + 36 AS col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6879
SELECT + - COUNT( ALL 8 )
----
-1

skipif mysql # not compatible
query I rowsort label-6879
SELECT + - COUNT ( ALL 8 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6880
SELECT ALL + - 92 + ( - COUNT( * ) )
----
-93

skipif mysql # not compatible
query I rowsort label-6880
SELECT ALL + - 92 + ( - COUNT ( * ) )
----
-93

query III rowsort
SELECT + + 96 AS col1, - 65 AS col2, + 67 AS col0
----
96
-65
67

onlyif mysql # DIV for integer division: 
query II rowsort label-6882
SELECT ALL - 84 * 67, 17 DIV - - 21 + + + 13 col0
----
-5628
13

skipif mysql # not compatible
query II rowsort label-6882
SELECT ALL - 84 * 67, 17 / - - 21 + + + 13 col0
----
-5628
13

onlyif mysql # aggregate syntax: 
query I rowsort label-6883
SELECT 27 * 44 * - ( + 74 ) - + COALESCE ( - COUNT( * ), + - SUM( + + 59 ), - + 15 ) AS col2
----
-87911

skipif mysql # not compatible
query I rowsort label-6883
SELECT 27 * 44 * - ( + 74 ) - + COALESCE ( - COUNT ( * ), + - SUM ( + + 59 ), - + 15 ) AS col2
----
-87911

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6884
SELECT - CAST( 71 AS SIGNED ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-6884
SELECT - CAST ( 71 AS INTEGER ) AS col2
----
-71

query II rowsort
SELECT DISTINCT - + 87 AS col1, 53 AS col1
----
-87
53

query I rowsort
SELECT ALL 91 + 54 + - + 21 + + 64 AS col1
----
188

onlyif mysql # aggregate syntax: 
query I rowsort label-6887
SELECT 60 - - 11 * - COUNT( * ) col0
----
49

skipif mysql # not compatible
query I rowsort label-6887
SELECT 60 - - 11 * - COUNT ( * ) col0
----
49

query I rowsort
SELECT - 66 * 9 AS col1
----
-594

onlyif mysql # aggregate syntax: 
query I rowsort label-6889
SELECT - 4 * + - 17 - COUNT( * ) AS col0
----
67

skipif mysql # not compatible
query I rowsort label-6889
SELECT - 4 * + - 17 - COUNT ( * ) AS col0
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6890
SELECT CASE + 53 WHEN 54 THEN + 71 * 20 * CAST( - 71 AS SIGNED ) WHEN COUNT( * ) / - 18 - + 6 + - 18 + - 29 * - - ( - 63 ) * 66 THEN NULL END * - ( - COUNT( + 77 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6890
SELECT CASE + 53 WHEN 54 THEN + 71 * 20 * CAST ( - 71 AS INTEGER ) WHEN COUNT ( * ) / - 18 - + 6 + - 18 + - 29 * - - ( - 63 ) * 66 THEN NULL END * - ( - COUNT ( + 77 ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6891
SELECT 57, CAST( + 18 AS SIGNED ) + + 4 AS col2
----
57
22

skipif mysql # not compatible
query II rowsort label-6891
SELECT 57, CAST ( + 18 AS INTEGER ) + + 4 AS col2
----
57
22

query II rowsort
SELECT ALL + + 37 * + + 73 AS col0, 86 - + 38 + + 92
----
2701
140

query II rowsort
SELECT + 63 AS col0, - 1 AS col1
----
63
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6894
SELECT ALL + MAX( DISTINCT + + 66 ) DIV - ( 40 )
----
-1

skipif mysql # not compatible
query I rowsort label-6894
SELECT ALL + MAX ( DISTINCT + + 66 ) / - ( 40 )
----
-1

query I rowsort
SELECT ALL - 77 * + 6 AS col1
----
-462

query I rowsort
SELECT 75 - - 35 AS col1
----
110

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6897
SELECT + ( 43 ) * - - 73 + + CAST( - 11 AS SIGNED ) DIV + 85
----
3139

skipif mysql # not compatible
query I rowsort label-6897
SELECT + ( 43 ) * - - 73 + + CAST ( - 11 AS INTEGER ) / + 85
----
3139

query I rowsort
SELECT ALL + 55 * + + 28 AS col1
----
1540

query I rowsort
SELECT DISTINCT - 91 * - + 81 AS col1
----
7371

onlyif mysql # DIV for integer division: 
query II rowsort label-6900
SELECT 56 + 76 AS col0, + 24 + + 88 DIV + 86 + + - 16 + + - 88
----
132
-79

skipif mysql # not compatible
query II rowsort label-6900
SELECT 56 + 76 AS col0, + 24 + + 88 / + 86 + + - 16 + + - 88
----
132
-79

query I rowsort
SELECT 63 * - 76 * - 85 AS col2
----
406980

onlyif mysql # aggregate syntax: 
query I rowsort label-6902
SELECT ALL MAX( 39 ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-6902
SELECT ALL MAX ( 39 ) AS col2
----
39

query II rowsort
SELECT 72 + 83 AS col1, 37 AS col1
----
155
37

onlyif mysql # aggregate syntax: 
query I rowsort label-6904
SELECT - COUNT( * ) + - MIN( + 4 )
----
-5

skipif mysql # not compatible
query I rowsort label-6904
SELECT - COUNT ( * ) + - MIN ( + 4 )
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6905
SELECT ALL COALESCE ( + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ), - + 57, - + 15 ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-6905
SELECT ALL COALESCE ( + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ), - + 57, - + 15 ) AS col1
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-6906
SELECT - COUNT( * ) * 3 AS col1, - 12 AS col0
----
-3
-12

skipif mysql # not compatible
query II rowsort label-6906
SELECT - COUNT ( * ) * 3 AS col1, - 12 AS col0
----
-3
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-6907
SELECT DISTINCT - 74 * + ( - - 46 ) * - - 41 + - + COUNT( * ) + - MIN( + 97 ) * - + 19 AS col0
----
-137722

skipif mysql # not compatible
query I rowsort label-6907
SELECT DISTINCT - 74 * + ( - - 46 ) * - - 41 + - + COUNT ( * ) + - MIN ( + 97 ) * - + 19 AS col0
----
-137722

query I rowsort
SELECT DISTINCT + 74 + - 48 + + 97 * + + 76
----
7398

query I rowsort
SELECT DISTINCT - 93 + 46
----
-47

query II rowsort
SELECT - 52 + - 47 col1, 95
----
-99
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6911
SELECT DISTINCT + COALESCE ( - - ( 8 ), - NULLIF ( + + 36, - 70 ), + 90 * 74 ) * CASE + 2 WHEN + ( + - 40 ) * 8 + + 64 THEN + 13 - + - 86 - + + 27 + - + 78 * 8 + COUNT( * ) * + 34 WHEN CASE 27 WHEN CASE COALESCE ( - COUNT( * ), - 28 + + ( 2 ), 48 ) WHEN + 18 THEN NULL ELSE + 72 END THEN NULL WHEN CAST( - 61 AS SIGNED ) THEN - ( + 35 ) * 55 ELSE NULL END * + 97 THEN - CAST( NULL AS SIGNED ) END * MAX( ALL + 92 ) + - 56 + 74 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6911
SELECT DISTINCT + COALESCE ( - - ( 8 ), - NULLIF ( + + 36, - 70 ), + 90 * 74 ) * CASE + 2 WHEN + ( + - 40 ) * 8 + + 64 THEN + 13 - + - 86 - + + 27 + - + 78 * 8 + COUNT ( * ) * + 34 WHEN CASE 27 WHEN CASE COALESCE ( - COUNT ( * ), - 28 + + ( 2 ), 48 ) WHEN + 18 THEN NULL ELSE + 72 END THEN NULL WHEN CAST ( - 61 AS INTEGER ) THEN - ( + 35 ) * 55 ELSE NULL END * + 97 THEN - CAST ( NULL AS INTEGER ) END * MAX ( ALL + 92 ) + - 56 + 74 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6912
SELECT ALL - 17 * 61 * + - COALESCE ( 69, + + COUNT( * ), + 13 ) + 32
----
71585

skipif mysql # not compatible
query I rowsort label-6912
SELECT ALL - 17 * 61 * + - COALESCE ( 69, + + COUNT ( * ), + 13 ) + 32
----
71585

query I rowsort
SELECT ALL - 67 * + + 34 * 98 + + + ( - 17 )
----
-223261

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6914
SELECT DISTINCT MAX( ALL + CAST( NULL AS SIGNED ) ) * + CASE 86 WHEN + 60 THEN COUNT( * ) END - - + 92 + ( - 97 ) + - 93 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6914
SELECT DISTINCT MAX ( ALL + CAST ( NULL AS INTEGER ) ) * + CASE 86 WHEN + 60 THEN COUNT ( * ) END - - + 92 + ( - 97 ) + - 93 + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6915
SELECT DISTINCT + 47 * MIN( DISTINCT - 42 )
----
-1974

skipif mysql # not compatible
query I rowsort label-6915
SELECT DISTINCT + 47 * MIN ( DISTINCT - 42 )
----
-1974

query I rowsort
SELECT ALL 90 * + - 3 * - - 47 + - 96 * + + 28 + - CASE - 21 WHEN - 54 + 0 + - 38 * 17 * + - 67 THEN 19 + - 38 * + - 95 END + + 2 - - 29 + - 32 * - 85
----
NULL

query I rowsort
SELECT + CASE 41 WHEN 38 * 13 / - 37 THEN - ( + 82 ) WHEN 89 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT ALL + 73 * - 1 * - 36 * 21 col2
----
55188

onlyif mysql # aggregate syntax: 
query I rowsort label-6919
SELECT ( - + 39 ) * 1 + + - COUNT( * )
----
-40

skipif mysql # not compatible
query I rowsort label-6919
SELECT ( - + 39 ) * 1 + + - COUNT ( * )
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-6920
SELECT + + 18 * - 40 AS col0, - COUNT( * ) + 91 AS col2
----
-720
90

skipif mysql # not compatible
query II rowsort label-6920
SELECT + + 18 * - 40 AS col0, - COUNT ( * ) + 91 AS col2
----
-720
90

query I rowsort
SELECT DISTINCT 22 * 91 - + + 30
----
1972

query I rowsort
SELECT DISTINCT - 79 * - 69 * - 84 * + 37 * 15
----
-254125620

onlyif mysql # aggregate syntax: 
query I rowsort label-6923
SELECT - + CASE + 15 WHEN + 4 / 67 * + - 28 - - - 1 THEN - 48 WHEN - COUNT( * ) THEN + - 53 + + + 93 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6923
SELECT - + CASE + 15 WHEN + 4 / 67 * + - 28 - - - 1 THEN - 48 WHEN - COUNT ( * ) THEN + - 53 + + + 93 END
----
NULL

query I rowsort
SELECT + ( 52 ) + + + 31
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6925
SELECT - CASE + NULLIF ( + 32, COUNT( * ) ) WHEN COUNT( ALL - - COALESCE ( + 11, + + 63 + - 87 * 79 ) ) THEN + - AVG ( - 79 ) + + 6 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6925
SELECT - CASE + NULLIF ( + 32, COUNT ( * ) ) WHEN COUNT ( ALL - - COALESCE ( + 11, + + 63 + - 87 * 79 ) ) THEN + - AVG ( - 79 ) + + 6 END col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6926
SELECT - ( CAST( NULL AS DECIMAL ) ) / - AVG ( ALL - - 75 ) / 92 + + 29 * - + 38 * - ( + - 79 ) - + MAX( + ( - 25 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6926
SELECT - ( CAST ( NULL AS REAL ) ) / - AVG ( ALL - - 75 ) / 92 + + 29 * - + 38 * - ( + - 79 ) - + MAX ( + ( - 25 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6927
SELECT DISTINCT MIN( ALL + 91 ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-6927
SELECT DISTINCT MIN ( ALL + 91 ) AS col1
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-6928
SELECT - 95 DIV + ( - - 64 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-6928
SELECT - 95 / + ( - - 64 ) col1
----
-1

query I rowsort
SELECT + ( - 81 ) * 3 AS col0
----
-243

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6930
SELECT + CAST( NULL AS SIGNED ) / - 55 / + NULLIF ( 65, 43 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6930
SELECT + CAST ( NULL AS INTEGER ) / - 55 / + NULLIF ( 65, 43 ) AS col1
----
NULL

query I rowsort
SELECT - ( + + 97 )
----
-97

query I rowsort
SELECT ALL 88 + - 44 AS col0
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-6933
SELECT - 59 DIV + 72
----
0

skipif mysql # not compatible
query I rowsort label-6933
SELECT - 59 / + 72
----
0

query I rowsort
SELECT ALL 41 + + - 7 col1
----
34

query I rowsort
SELECT - ( - 51 ) AS col2
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6936
SELECT - 70 * + + CAST( - 84 AS SIGNED )
----
5880

skipif mysql # not compatible
query I rowsort label-6936
SELECT - 70 * + + CAST ( - 84 AS INTEGER )
----
5880

onlyif mysql # aggregate syntax: 
query I rowsort label-6937
SELECT DISTINCT + COALESCE ( - COUNT( + - 72 ), + 1 ) + + 20
----
19

skipif mysql # not compatible
query I rowsort label-6937
SELECT DISTINCT + COALESCE ( - COUNT ( + - 72 ), + 1 ) + + 20
----
19

query II rowsort
SELECT ALL - 88 + - 8 * - 42, 26 AS col0
----
248
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6939
SELECT DISTINCT + ( + 35 ) * + COUNT( * ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-6939
SELECT DISTINCT + ( + 35 ) * + COUNT ( * ) AS col2
----
35

query I rowsort
SELECT - 5 * + 86 AS col1
----
-430

onlyif mysql # DIV for integer division: 
query I rowsort label-6941
SELECT - 16 - 0 DIV 78 * + 39
----
-16

skipif mysql # not compatible
query I rowsort label-6941
SELECT - 16 - 0 / 78 * + 39
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-6942
SELECT - MIN( - + 83 )
----
83

skipif mysql # not compatible
query I rowsort label-6942
SELECT - MIN ( - + 83 )
----
83

query I rowsort
SELECT - 34 + + - 83 AS col0
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-6944
SELECT DISTINCT ( - COUNT( DISTINCT 56 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6944
SELECT DISTINCT ( - COUNT ( DISTINCT 56 ) ) AS col0
----
-1

query I rowsort
SELECT - 69 * + - 84 AS col2
----
5796

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6946
SELECT ALL + 0 DIV + + 60 - - - COUNT( * ) AS col0, + 7 * + SUM( ALL + COALESCE ( + 33, + - 97 + + 74 ) ) AS col2
----
-1
231

skipif mysql # not compatible
query II rowsort label-6946
SELECT ALL + 0 / + + 60 - - - COUNT ( * ) AS col0, + 7 * + SUM ( ALL + COALESCE ( + 33, + - 97 + + 74 ) ) AS col2
----
-1
231

query I rowsort
SELECT DISTINCT + - COALESCE ( + - 86, 5 )
----
86

query II rowsort
SELECT - 62 * + + 38 + + 13, - 73 AS col0
----
-2343
-73

query I rowsort
SELECT - + 62 * - 22
----
1364

query II rowsort
SELECT DISTINCT + ( + 66 ) * - - 85, 71 AS col1
----
5610
71

query I rowsort
SELECT - + 13 + + - 31 + + 37 * 19
----
659

query I rowsort
SELECT + - 7 * + 12 AS col0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-6953
SELECT ALL + COUNT( * ) * 62 * 93 + + + 96 AS col0
----
5862

skipif mysql # not compatible
query I rowsort label-6953
SELECT ALL + COUNT ( * ) * 62 * 93 + + + 96 AS col0
----
5862

query II rowsort
SELECT 11, - 92 * - 69 AS col0
----
11
6348

query II rowsort
SELECT ALL + - 53, + 94 + + + 86 + + 14 AS col2
----
-53
194

onlyif mysql # aggregate syntax: 
query II rowsort label-6956
SELECT + + COUNT( * ) AS col1, 68 * + 64 * + 85 + 40 + - ( + 92 )
----
1
369868

skipif mysql # not compatible
query II rowsort label-6956
SELECT + + COUNT ( * ) AS col1, 68 * + 64 * + 85 + 40 + - ( + 92 )
----
1
369868

query I rowsort
SELECT + 97 * + 97
----
9409

query II rowsort
SELECT DISTINCT + 87 AS col0, - 69 col1
----
87
-69

query I rowsort
SELECT ALL + ( + - 51 )
----
-51

query I rowsort
SELECT - + 11 * + 30
----
-330

query I rowsort
SELECT + 19 * + - 82
----
-1558

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6962
SELECT + 4 * 12 * + - 22 - CAST( NULL AS SIGNED ) / + 8 AS col0, + 64 * 38
----
NULL
2432

skipif mysql # not compatible
query II rowsort label-6962
SELECT + 4 * 12 * + - 22 - CAST ( NULL AS INTEGER ) / + 8 AS col0, + 64 * 38
----
NULL
2432

onlyif mysql # DIV for integer division: 
query I rowsort label-6963
SELECT ALL 1 + + 15 DIV 95 * + 62 * + - 15 + + 88 DIV + 75 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-6963
SELECT ALL 1 + + 15 / 95 * + 62 * + - 15 + + 88 / + 75 AS col2
----
2

query I rowsort
SELECT 7 - - 88
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-6965
SELECT ALL COUNT( * ) + 71 + + COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-6965
SELECT ALL COUNT ( * ) + 71 + + COUNT ( * )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-6966
SELECT MIN( DISTINCT + - ( - 40 ) ) + + 21
----
61

skipif mysql # not compatible
query I rowsort label-6966
SELECT MIN ( DISTINCT + - ( - 40 ) ) + + 21
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6967
SELECT CAST( NULL AS SIGNED ) - + + COUNT( * ) * - - 40 * + MAX( + + 32 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6967
SELECT CAST ( NULL AS INTEGER ) - + + COUNT ( * ) * - - 40 * + MAX ( + + 32 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6968
SELECT ALL CASE - COUNT( * ) WHEN - + 70 * + 65 + + - SUM( - + 13 ) + + ( COUNT( * ) ) / + + 74 THEN NULL WHEN COUNT( * ) + + COALESCE ( + - 89, - 50 * + + ( + 53 ) - - 85 + - 82 / + 34 ) + + 38 / - 35 * 20 THEN + 62 END + 87 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6968
SELECT ALL CASE - COUNT ( * ) WHEN - + 70 * + 65 + + - SUM ( - + 13 ) + + ( COUNT ( * ) ) / + + 74 THEN NULL WHEN COUNT ( * ) + + COALESCE ( + - 89, - 50 * + + ( + 53 ) - - 85 + - 82 / + 34 ) + + 38 / - 35 * 20 THEN + 62 END + 87 AS col1
----
NULL

query I rowsort
SELECT 91 + - - 27 + + - 43 - + - 81 AS col2
----
156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6970
SELECT ALL 35 + 39 - - 73 + 64 * - + 10 - - SUM( DISTINCT 76 ) AS col2, + COUNT( * ) + + CAST( NULL AS SIGNED )
----
-417
NULL

skipif mysql # not compatible
query II rowsort label-6970
SELECT ALL 35 + 39 - - 73 + 64 * - + 10 - - SUM ( DISTINCT 76 ) AS col2, + COUNT ( * ) + + CAST ( NULL AS INTEGER )
----
-417
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6971
SELECT 7 + + COUNT( * ) AS col1, - 89
----
8
-89

skipif mysql # not compatible
query II rowsort label-6971
SELECT 7 + + COUNT ( * ) AS col1, - 89
----
8
-89

query II rowsort
SELECT 42 * - 21 AS col0, - 80 AS col2
----
-882
-80

query I rowsort
SELECT DISTINCT 40 + + 61
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-6974
SELECT DISTINCT 46 + + + COUNT( * ) + + - CASE + 34 WHEN + 77 / + 42 THEN - AVG ( - 39 ) END * - - 76 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6974
SELECT DISTINCT 46 + + + COUNT ( * ) + + - CASE + 34 WHEN + 77 / + 42 THEN - AVG ( - 39 ) END * - - 76 AS col0
----
NULL

query I rowsort
SELECT 26 + 7 AS col2
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6976
SELECT ALL - CAST( + 65 AS SIGNED ) - - 6 AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-6976
SELECT ALL - CAST ( + 65 AS INTEGER ) - - 6 AS col2
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-6977
SELECT ALL 92 DIV + - ( + 70 )
----
-1

skipif mysql # not compatible
query I rowsort label-6977
SELECT ALL 92 / + - ( + 70 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6978
SELECT - + CAST( - 11 AS SIGNED )
----
11

skipif mysql # not compatible
query I rowsort label-6978
SELECT - + CAST ( - 11 AS INTEGER )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6979
SELECT + 65 + - - COUNT( * ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-6979
SELECT + 65 + - - COUNT ( * ) AS col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6980
SELECT CASE - 35 WHEN + ( + COUNT( * ) ) THEN AVG ( ALL + - 15 ) / - 47 * - NULLIF ( 25, + 27 + + - 96 * - MAX( DISTINCT + 44 ) ) + + - 36 WHEN 68 THEN - 73 END + 58
----
NULL

skipif mysql # not compatible
query I rowsort label-6980
SELECT CASE - 35 WHEN + ( + COUNT ( * ) ) THEN AVG ( ALL + - 15 ) / - 47 * - NULLIF ( 25, + 27 + + - 96 * - MAX ( DISTINCT + 44 ) ) + + - 36 WHEN 68 THEN - 73 END + 58
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6981
SELECT ALL + - 18 - + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6981
SELECT ALL + - 18 - + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6982
SELECT ALL + COUNT( * ) * - + 2 + - 63 DIV COUNT( * ) + - 70 + - MAX( ALL + 66 ) AS col2
----
-201

skipif mysql # not compatible
query I rowsort label-6982
SELECT ALL + COUNT ( * ) * - + 2 + - 63 / COUNT ( * ) + - 70 + - MAX ( ALL + 66 ) AS col2
----
-201

query I rowsort
SELECT 12 + + CASE + 89 WHEN + + 83 THEN + + 16 + 38 WHEN - NULLIF ( - - 79, - 9 ) THEN NULL END col2
----
NULL

query I rowsort
SELECT ALL 15 - + 80
----
-65

query I rowsort
SELECT 4 * + + 50 * 59 AS col1
----
11800

onlyif mysql # aggregate syntax: 
query I rowsort label-6986
SELECT DISTINCT - + ( CASE + 30 WHEN SUM( DISTINCT 28 ) THEN + 30 * SUM( DISTINCT + 83 ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-6986
SELECT DISTINCT - + ( CASE + 30 WHEN SUM ( DISTINCT 28 ) THEN + 30 * SUM ( DISTINCT + 83 ) END )
----
NULL

query II rowsort
SELECT ALL - ( + 96 ) col1, + 94 AS col0
----
-96
94

query I rowsort
SELECT + 77 - - 96 * - 11
----
-979

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6989
SELECT + COALESCE ( - 58, COUNT( * ) * + 14 * + ( CAST( 97 AS SIGNED ) ) + + COUNT( * ) + 44 + + + 21, + 85 * + - 79 DIV + + 89 * - COUNT( 24 ) * + 31 * + 35 * 27 ) AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-6989
SELECT + COALESCE ( - 58, COUNT ( * ) * + 14 * + ( CAST ( 97 AS INTEGER ) ) + + COUNT ( * ) + 44 + + + 21, + 85 * + - 79 / + + 89 * - COUNT ( 24 ) * + 31 * + 35 * 27 ) AS col1
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6990
SELECT + 18 * COUNT( DISTINCT + - 95 ) + - 50 + + + COUNT( * )
----
-31

skipif mysql # not compatible
query I rowsort label-6990
SELECT + 18 * COUNT ( DISTINCT + - 95 ) + - 50 + + + COUNT ( * )
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-6991
SELECT - NULLIF ( 66, + + MIN( - + 30 ) * + - 49 ) AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-6991
SELECT - NULLIF ( 66, + + MIN ( - + 30 ) * + - 49 ) AS col2
----
-66

query I rowsort
SELECT - 43 + - - 37 AS col1
----
-6

query I rowsort
SELECT - 57 + - 5
----
-62

query I rowsort
SELECT + 37 * - 97 + + - 11 + - NULLIF ( + ( + 32 ), - - 21 ) * 79 * - 31
----
74768

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6995
SELECT ALL + 51 + + COUNT( * ) * - 41 * - CAST( + - 25 AS SIGNED ) + ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6995
SELECT ALL + 51 + + COUNT ( * ) * - 41 * - CAST ( + - 25 AS INTEGER ) + ( + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL 95 + + 5 * - 35 AS col2
----
-80

query I rowsort
SELECT DISTINCT - 15 * - ( - - 80 ) AS col1
----
1200

query I rowsort
SELECT DISTINCT - 6 + 53 AS col2
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-6999
SELECT 81 DIV - 85 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6999
SELECT 81 / - 85 AS col2
----
0

query I rowsort
SELECT 17 + - + 56 AS col0
----
-39

query I rowsort
SELECT 88 * + - 70
----
-6160

query II rowsort
SELECT 25 AS col2, - 85
----
25
-85

query I rowsort
SELECT NULLIF ( 10, + 48 - + - NULLIF ( - 44, + - 38 ) ) + + NULLIF ( - 81, + 76 ) AS col0
----
-71

query II rowsort
SELECT - 89 AS col0, + COALESCE ( - ( - 76 ), 81 * - 80, + + 86 * + 21 ) * - ( 65 ) AS col0
----
-89
-4940

onlyif mysql # aggregate syntax: 
query I rowsort label-7005
SELECT ALL COUNT( * ) + + 62 AS col0
----
63

skipif mysql # not compatible
query I rowsort label-7005
SELECT ALL COUNT ( * ) + + 62 AS col0
----
63

query I rowsort
SELECT ALL 5 * + 17
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7007
SELECT ALL SUM( DISTINCT - 14 )
----
-14

skipif mysql # not compatible
query I rowsort label-7007
SELECT ALL SUM ( DISTINCT - 14 )
----
-14

query I rowsort
SELECT DISTINCT NULLIF ( - 1, + 84 + + + ( - 76 ) * - 26 + 37 + - 9 ) - 46 AS col2
----
-47

query I rowsort
SELECT 13 * + 1 * + 33
----
429

query I rowsort
SELECT DISTINCT 86 * - 62 AS col2
----
-5332

query I rowsort
SELECT DISTINCT - 68 * 1 AS col2
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-7012
SELECT 50 DIV 5
----
10

skipif mysql # not compatible
query I rowsort label-7012
SELECT 50 / 5
----
10

query II rowsort
SELECT ALL + 52, - 33 AS col2
----
52
-33

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7014
SELECT DISTINCT AVG ( - + 46 ) / + MIN( DISTINCT - CAST( NULL AS DECIMAL ) ) * - 41 + + - 18
----
NULL

skipif mysql # not compatible
query I rowsort label-7014
SELECT DISTINCT AVG ( - + 46 ) / + MIN ( DISTINCT - CAST ( NULL AS REAL ) ) * - 41 + + - 18
----
NULL

query II rowsort
SELECT - + 42, - 96 AS col0
----
-42
-96

query I rowsort
SELECT + ( - ( + + NULLIF ( - 40, + 74 ) ) ) * 17
----
680

query I rowsort
SELECT ALL CASE - - 9 WHEN - 2 * - - 27 THEN ( 1 ) END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7018
SELECT ALL - - 92 col1, - CAST( NULL AS SIGNED )
----
92
NULL

skipif mysql # not compatible
query II rowsort label-7018
SELECT ALL - - 92 col1, - CAST ( NULL AS INTEGER )
----
92
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7019
SELECT - CASE + ( - 56 ) WHEN CAST( NULL AS DECIMAL ) THEN - 72 * 77 + + 7 * - 11 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7019
SELECT - CASE + ( - 56 ) WHEN CAST ( NULL AS REAL ) THEN - 72 * 77 + + 7 * - 11 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7020
SELECT - 5 DIV 52 - - COALESCE ( + 7, - 51 DIV + + COUNT( * ) * - - 93 + - - 96, + COALESCE ( + - 76, + - COUNT( * ) * + - 14 ) * + SUM( DISTINCT - + 36 ) DIV - COUNT( * ) ) AS col0, 2 AS col1
----
7
2

skipif mysql # not compatible
query II rowsort label-7020
SELECT - 5 / 52 - - COALESCE ( + 7, - 51 / + + COUNT ( * ) * - - 93 + - - 96, + COALESCE ( + - 76, + - COUNT ( * ) * + - 14 ) * + SUM ( DISTINCT - + 36 ) / - COUNT ( * ) ) AS col0, 2 AS col1
----
7
2

query I rowsort
SELECT DISTINCT 44 * 10 + + 57
----
497

onlyif mysql # aggregate syntax: 
query I rowsort label-7022
SELECT 98 * + 0 * - - COUNT( * ) + - 75
----
-75

skipif mysql # not compatible
query I rowsort label-7022
SELECT 98 * + 0 * - - COUNT ( * ) + - 75
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7023
SELECT - MAX( ALL + 19 ) * + + 90
----
-1710

skipif mysql # not compatible
query I rowsort label-7023
SELECT - MAX ( ALL + 19 ) * + + 90
----
-1710

query I rowsort
SELECT DISTINCT - 17 * + ( + - COALESCE ( - ( + 29 ), 35 ) ) AS col1
----
-493

query I rowsort
SELECT ALL 15 * - + 23 AS col1
----
-345

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7026
SELECT ALL CAST( COUNT( + COALESCE ( 91, + 70 ) ) AS SIGNED ) * - 86 * + + 64 - - COUNT( * ) + 39 + - 87
----
-5551

skipif mysql # not compatible
query I rowsort label-7026
SELECT ALL CAST ( COUNT ( + COALESCE ( 91, + 70 ) ) AS INTEGER ) * - 86 * + + 64 - - COUNT ( * ) + 39 + - 87
----
-5551

onlyif mysql # aggregate syntax: 
query III rowsort label-7027
SELECT + 19, - 5 AS col1, - - 17 * 7 + MIN( + 0 ) col2
----
19
-5
119

skipif mysql # not compatible
query III rowsort label-7027
SELECT + 19, - 5 AS col1, - - 17 * 7 + MIN ( + 0 ) col2
----
19
-5
119

query II rowsort
SELECT ALL + 36 AS col0, 80 AS col2
----
36
80

query I rowsort
SELECT - 77 * - - 69
----
-5313

query II rowsort
SELECT ALL + 43 AS col1, - 25 + 95 + + - 78 AS col0
----
43
-8

query II rowsort
SELECT + 77, 54 AS col0
----
77
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7032
SELECT ALL + 90 * + 18 * 76 * 75 * + COUNT( * ) + 15 * - CAST( - - NULLIF ( + 56, + ( - 15 ) ) AS SIGNED )
----
9233160

skipif mysql # not compatible
query I rowsort label-7032
SELECT ALL + 90 * + 18 * 76 * 75 * + COUNT ( * ) + 15 * - CAST ( - - NULLIF ( + 56, + ( - 15 ) ) AS INTEGER )
----
9233160

onlyif mysql # aggregate syntax: 
query I rowsort label-7033
SELECT + COALESCE ( - 43, - 43 * - COUNT( * ), - - 49 ) AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-7033
SELECT + COALESCE ( - 43, - 43 * - COUNT ( * ), - - 49 ) AS col2
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-7034
SELECT - COUNT( * ) - - + 17
----
16

skipif mysql # not compatible
query I rowsort label-7034
SELECT - COUNT ( * ) - - + 17
----
16

query I rowsort
SELECT - 47 * 66
----
-3102

onlyif mysql # aggregate syntax: 
query I rowsort label-7036
SELECT DISTINCT - SUM( ALL + 92 ) * + 74 * + 14 + 66 - + NULLIF ( + - 78, ( + 28 ) * + + 52 / + 56 + - - AVG ( + 82 ) + - + CASE - - 57 WHEN - COUNT( * ) / + 68 * + + MAX( + 72 ) * - + 83 THEN + - COUNT( * ) + + + 58 END ) col1
----
-95168

skipif mysql # not compatible
query I rowsort label-7036
SELECT DISTINCT - SUM ( ALL + 92 ) * + 74 * + 14 + 66 - + NULLIF ( + - 78, ( + 28 ) * + + 52 / + 56 + - - AVG ( + 82 ) + - + CASE - - 57 WHEN - COUNT ( * ) / + 68 * + + MAX ( + 72 ) * - + 83 THEN + - COUNT ( * ) + + + 58 END ) col1
----
-95168

onlyif mysql # aggregate syntax: 
query I rowsort label-7037
SELECT DISTINCT CASE ( + 27 ) WHEN + - 13 / + COUNT( ALL + 58 ) * ( - 19 ) THEN - 76 WHEN - - COUNT( * ) - - ( 5 ) THEN - + 4 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7037
SELECT DISTINCT CASE ( + 27 ) WHEN + - 13 / + COUNT ( ALL + 58 ) * ( - 19 ) THEN - 76 WHEN - - COUNT ( * ) - - ( 5 ) THEN - + 4 ELSE NULL END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7038
SELECT ALL - 57 * + + COUNT( * ) AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-7038
SELECT ALL - 57 * + + COUNT ( * ) AS col2
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7039
SELECT - 11 * - COUNT( * ) * CAST( NULL AS SIGNED ) / + 52 / + + 19 * + 52 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7039
SELECT - 11 * - COUNT ( * ) * CAST ( NULL AS INTEGER ) / + 52 / + + 19 * + 52 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 84 * 20 * 93 AS col1
----
-156240

onlyif mysql # aggregate syntax: 
query I rowsort label-7041
SELECT ALL SUM( ALL - 18 )
----
-18

skipif mysql # not compatible
query I rowsort label-7041
SELECT ALL SUM ( ALL - 18 )
----
-18

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7042
SELECT ALL + COUNT( DISTINCT + CAST( NULL AS DECIMAL ) ) * - 13 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7042
SELECT ALL + COUNT ( DISTINCT + CAST ( NULL AS REAL ) ) * - 13 AS col0
----
0

query I rowsort
SELECT - 75 * 26
----
-1950

query I rowsort
SELECT - 34 + 86 AS col2
----
52

query I rowsort
SELECT - 40 - - 77 col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7046
SELECT ALL - MAX( 32 ) - + 74 AS col1
----
-106

skipif mysql # not compatible
query I rowsort label-7046
SELECT ALL - MAX ( 32 ) - + 74 AS col1
----
-106

query I rowsort
SELECT - 51 * - 78 * - - ( + + ( + 10 ) ) col0
----
39780

onlyif mysql # aggregate syntax: 
query I rowsort label-7048
SELECT + COUNT( * ) * - + 46 * 2
----
-92

skipif mysql # not compatible
query I rowsort label-7048
SELECT + COUNT ( * ) * - + 46 * 2
----
-92

query I rowsort
SELECT - 27 + + - ( - - 37 ) * 1 * - 18 AS col1
----
639

onlyif mysql # aggregate syntax: 
query II rowsort label-7050
SELECT - - 77 AS col1, MAX( ALL - - 46 ) * 99 AS col0
----
77
4554

skipif mysql # not compatible
query II rowsort label-7050
SELECT - - 77 AS col1, MAX ( ALL - - 46 ) * 99 AS col0
----
77
4554

onlyif mysql # aggregate syntax: 
query I rowsort label-7051
SELECT - + 0 + + NULLIF ( 28, + 64 + - ( - 16 ) / - - COALESCE ( COUNT( * ), - + 48 * + - 84, + + 95 + - - 13, - - 33 ) + - - ( - 50 ) )
----
28

skipif mysql # not compatible
query I rowsort label-7051
SELECT - + 0 + + NULLIF ( 28, + 64 + - ( - 16 ) / - - COALESCE ( COUNT ( * ), - + 48 * + - 84, + + 95 + - - 13, - - 33 ) + - - ( - 50 ) )
----
28

query I rowsort
SELECT ALL ( - - ( - 20 ) ) AS col2
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-7053
SELECT DISTINCT - COUNT( * ) AS col1, - 59 + + 15 AS col2
----
-1
-44

skipif mysql # not compatible
query II rowsort label-7053
SELECT DISTINCT - COUNT ( * ) AS col1, - 59 + + 15 AS col2
----
-1
-44

query I rowsort
SELECT - - 25 + 65
----
90

query I rowsort
SELECT - + 51 + + 37 AS col2
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-7056
SELECT ALL + ( COUNT( * ) ) AS col0, 90 AS col1
----
1
90

skipif mysql # not compatible
query II rowsort label-7056
SELECT ALL + ( COUNT ( * ) ) AS col0, 90 AS col1
----
1
90

query II rowsort
SELECT + 93 AS col1, 38 - 49
----
93
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7058
SELECT ALL - CAST( 17 AS SIGNED ) + - COUNT( * )
----
-18

skipif mysql # not compatible
query I rowsort label-7058
SELECT ALL - CAST ( 17 AS INTEGER ) + - COUNT ( * )
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7059
SELECT + 50 + - CAST( + 6 AS SIGNED )
----
44

skipif mysql # not compatible
query I rowsort label-7059
SELECT + 50 + - CAST ( + 6 AS INTEGER )
----
44

query II rowsort
SELECT ALL + 77, 70 AS col0
----
77
70

query II rowsort
SELECT - + 21 AS col1, 90 + 62 col0
----
-21
152

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7062
SELECT + CAST( + - CAST( + AVG ( - 54 ) AS SIGNED ) AS SIGNED ) + + - 97
----
-43

skipif mysql # not compatible
query I rowsort label-7062
SELECT + CAST ( + - CAST ( + AVG ( - 54 ) AS INTEGER ) AS INTEGER ) + + - 97
----
-43

query II rowsort
SELECT 61 AS col2, 98
----
61
98

query I rowsort
SELECT + 38 * - - ( - 7 ) + + 90 AS col2
----
-176

onlyif mysql # aggregate syntax: 
query I rowsort label-7065
SELECT + - 43 * + 59 - + + COUNT( * ) + 82 AS col2
----
-2456

skipif mysql # not compatible
query I rowsort label-7065
SELECT + - 43 * + 59 - + + COUNT ( * ) + 82 AS col2
----
-2456

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7066
SELECT DISTINCT - + 27 / 43 * - CAST( NULL AS DECIMAL ) + + 2 + + 30 * - 9 / COUNT( * ) / - + 19 * 47
----
NULL

skipif mysql # not compatible
query I rowsort label-7066
SELECT DISTINCT - + 27 / 43 * - CAST ( NULL AS REAL ) + + 2 + + 30 * - 9 / COUNT ( * ) / - + 19 * 47
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7067
SELECT DISTINCT - 80 DIV 84 + - 41 - + + 82 * + COUNT( - NULLIF ( - - 80, - 5 ) ) * + MIN( ALL - + 64 ) * + 46
----
241367

skipif mysql # not compatible
query I rowsort label-7067
SELECT DISTINCT - 80 / 84 + - 41 - + + 82 * + COUNT ( - NULLIF ( - - 80, - 5 ) ) * + MIN ( ALL - + 64 ) * + 46
----
241367

onlyif mysql # DIV for integer division: 
query I rowsort label-7068
SELECT DISTINCT - ( 15 ) DIV + + 64 + 79 AS col2
----
79

skipif mysql # not compatible
query I rowsort label-7068
SELECT DISTINCT - ( 15 ) / + + 64 + 79 AS col2
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7069
SELECT DISTINCT CAST( - MIN( + - 92 ) AS SIGNED ) * + 59 + + COUNT( ALL + 79 ) + - 4 * - 47, + 87 * - 22 + + 33 + - 8 col2
----
5617
-1889

skipif mysql # not compatible
query II rowsort label-7069
SELECT DISTINCT CAST ( - MIN ( + - 92 ) AS INTEGER ) * + 59 + + COUNT ( ALL + 79 ) + - 4 * - 47, + 87 * - 22 + + 33 + - 8 col2
----
5617
-1889

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7070
SELECT 61 * COUNT( ALL CAST( NULL AS SIGNED ) ) * ( + 10 ) + + 40
----
40

skipif mysql # not compatible
query I rowsort label-7070
SELECT 61 * COUNT ( ALL CAST ( NULL AS INTEGER ) ) * ( + 10 ) + + 40
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-7071
SELECT ALL COUNT( * ) * - + 70, + COUNT( * ) AS col1
----
-70
1

skipif mysql # not compatible
query II rowsort label-7071
SELECT ALL COUNT ( * ) * - + 70, + COUNT ( * ) AS col1
----
-70
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7072
SELECT + CAST( NULL AS SIGNED ) + ( - 95 ) + + - 87 * - 45 * + + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-7072
SELECT + CAST ( NULL AS INTEGER ) + ( - 95 ) + + - 87 * - 45 * + + 95
----
NULL

query II rowsort
SELECT + ( - 66 ) AS col0, 99 AS col1
----
-66
99

query I rowsort
SELECT ALL 12 * + + 45 AS col0
----
540

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7075
SELECT + 18 + - + 32 * CAST( NULL AS SIGNED ) * ( - COUNT( * ) ) + - SUM( 64 ) AS col0, ( + - COUNT( 42 ) ) * - 9 AS col1
----
NULL
9

skipif mysql # not compatible
query II rowsort label-7075
SELECT + 18 + - + 32 * CAST ( NULL AS INTEGER ) * ( - COUNT ( * ) ) + - SUM ( 64 ) AS col0, ( + - COUNT ( 42 ) ) * - 9 AS col1
----
NULL
9

query I rowsort
SELECT DISTINCT 41 * - COALESCE ( - 90, - 47 ) AS col1
----
3690

onlyif mysql # aggregate syntax: 
query II rowsort label-7077
SELECT CASE + 54 WHEN 51 * + 64 * COUNT( * ) * - 34 THEN - 15 END AS col1, + 56 AS col0
----
NULL
56

skipif mysql # not compatible
query II rowsort label-7077
SELECT CASE + 54 WHEN 51 * + 64 * COUNT ( * ) * - 34 THEN - 15 END AS col1, + 56 AS col0
----
NULL
56

query I rowsort
SELECT ALL 76 * - - 76 col0
----
5776

onlyif mysql # aggregate syntax: 
query I rowsort label-7079
SELECT COALESCE ( + 78, + COUNT( * ) )
----
78

skipif mysql # not compatible
query I rowsort label-7079
SELECT COALESCE ( + 78, + COUNT ( * ) )
----
78

query I rowsort
SELECT ALL + ( - + 62 )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-7081
SELECT - SUM( + 0 ) + 24 + + 96 AS col1
----
120

skipif mysql # not compatible
query I rowsort label-7081
SELECT - SUM ( + 0 ) + 24 + + 96 AS col1
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-7082
SELECT ALL + SUM( + 77 ) col2
----
77

skipif mysql # not compatible
query I rowsort label-7082
SELECT ALL + SUM ( + 77 ) col2
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-7083
SELECT ALL COUNT( 98 ) AS col0, - 55 * 36 + - 65 AS col2
----
1
-2045

skipif mysql # not compatible
query II rowsort label-7083
SELECT ALL COUNT ( 98 ) AS col0, - 55 * 36 + - 65 AS col2
----
1
-2045

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7084
SELECT - CAST( + ( + 76 ) AS SIGNED ) AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-7084
SELECT - CAST ( + ( + 76 ) AS INTEGER ) AS col1
----
-76

query I rowsort
SELECT - 40 + - 29 - + - 28 * - + 54 AS col0
----
-1581

query I rowsort
SELECT ALL + 35 * - 7 AS col0
----
-245

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7087
SELECT ALL + 18 * + - ( - COUNT( * ) ) DIV + + 54 * + - 2
----
0

skipif mysql # not compatible
query I rowsort label-7087
SELECT ALL + 18 * + - ( - COUNT ( * ) ) / + + 54 * + - 2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7088
SELECT DISTINCT 63 + - + CAST( NULL AS SIGNED ) + + + 54 * - 39 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7088
SELECT DISTINCT 63 + - + CAST ( NULL AS INTEGER ) + + + 54 * - 39 AS col0
----
NULL

query II rowsort
SELECT DISTINCT ( + 95 ) col0, 4
----
95
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7090
SELECT DISTINCT + - COUNT( + 39 ) + - 15 col1
----
-16

skipif mysql # not compatible
query I rowsort label-7090
SELECT DISTINCT + - COUNT ( + 39 ) + - 15 col1
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7091
SELECT - - ( ( - 87 ) ) * - CAST( NULL AS SIGNED ) + 55 * + NULLIF ( + - 66, - - 83 * + - ( + COUNT( * ) ) * COUNT( * ) * - - 27 ) / + 80 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7091
SELECT - - ( ( - 87 ) ) * - CAST ( NULL AS INTEGER ) + 55 * + NULLIF ( + - 66, - - 83 * + - ( + COUNT ( * ) ) * COUNT ( * ) * - - 27 ) / + 80 AS col0
----
NULL

query I rowsort
SELECT - 48 * + 3 AS col0
----
-144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7093
SELECT - CASE COALESCE ( - + CAST( NULL AS SIGNED ), + + AVG ( - 35 ) - COUNT( * ) ) WHEN - 21 * + ( - MAX( ALL + 81 ) ) THEN NULL WHEN + + COUNT( * ) * + 65 * - 53 + - 0 + - 15 THEN NULL WHEN + - 72 THEN - + 46 * + 73 * + + 38 + - 26 ELSE 32 END AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-7093
SELECT - CASE COALESCE ( - + CAST ( NULL AS INTEGER ), + + AVG ( - 35 ) - COUNT ( * ) ) WHEN - 21 * + ( - MAX ( ALL + 81 ) ) THEN NULL WHEN + + COUNT ( * ) * + 65 * - 53 + - 0 + - 15 THEN NULL WHEN + - 72 THEN - + 46 * + 73 * + + 38 + - 26 ELSE 32 END AS col1
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-7094
SELECT ( - - 49 ) + - 2 + + + SUM( ALL - 13 ) * + 94 AS col0
----
-1175

skipif mysql # not compatible
query I rowsort label-7094
SELECT ( - - 49 ) + - 2 + + + SUM ( ALL - 13 ) * + 94 AS col0
----
-1175

onlyif mysql # aggregate syntax: 
query I rowsort label-7095
SELECT - 10 * - ( + - COUNT( * ) ) - + 27
----
-37

skipif mysql # not compatible
query I rowsort label-7095
SELECT - 10 * - ( + - COUNT ( * ) ) - + 27
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7096
SELECT ALL + 31 + - + 47 AS col1, CAST( NULL AS SIGNED ) AS col0
----
-16
NULL

skipif mysql # not compatible
query II rowsort label-7096
SELECT ALL + 31 + - + 47 AS col1, CAST ( NULL AS INTEGER ) AS col0
----
-16
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7097
SELECT ALL 67 * - 91 * MAX( ALL + - 32 ) AS col2
----
195104

skipif mysql # not compatible
query I rowsort label-7097
SELECT ALL 67 * - 91 * MAX ( ALL + - 32 ) AS col2
----
195104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7098
SELECT CASE + + 57 WHEN + + CAST( + 80 AS SIGNED ) THEN 44 / + 88 ELSE NULL END / - COUNT( * ) + + 82 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7098
SELECT CASE + + 57 WHEN + + CAST ( + 80 AS INTEGER ) THEN 44 / + 88 ELSE NULL END / - COUNT ( * ) + + 82 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7099
SELECT ALL + - 40 * 29 * + COUNT( * ) AS col2
----
-1160

skipif mysql # not compatible
query I rowsort label-7099
SELECT ALL + - 40 * 29 * + COUNT ( * ) AS col2
----
-1160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7100
SELECT 74 * + NULLIF ( + + 84, + - ( MAX( + ( - 44 ) ) ) + + + CAST( NULL AS SIGNED ) ) - - 56 + 12 * 55 AS col0
----
6932

skipif mysql # not compatible
query I rowsort label-7100
SELECT 74 * + NULLIF ( + + 84, + - ( MAX ( + ( - 44 ) ) ) + + + CAST ( NULL AS INTEGER ) ) - - 56 + 12 * 55 AS col0
----
6932

onlyif mysql # aggregate syntax: 
query I rowsort label-7101
SELECT DISTINCT COUNT( + 37 ) * + MAX( + - 50 ) * ( - - 71 ) * + 8
----
-28400

skipif mysql # not compatible
query I rowsort label-7101
SELECT DISTINCT COUNT ( + 37 ) * + MAX ( + - 50 ) * ( - - 71 ) * + 8
----
-28400

query II rowsort
SELECT + 20 AS col0, - 80
----
20
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-7103
SELECT COUNT( * ) * - 76 * - + 4 AS col0
----
304

skipif mysql # not compatible
query I rowsort label-7103
SELECT COUNT ( * ) * - 76 * - + 4 AS col0
----
304

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7104
SELECT DISTINCT - 75 AS col0, + COALESCE ( - 98, COUNT( * ), + - 74 * - 98 + - 45 - + 1 - 44 * 33 * + + 77 + + + COUNT( - 84 ) + + 49 * - 7 - - - 10 + - + 26 + COUNT( * ) * + + 35 DIV - + 58 + 62 + - 33 * 41 * - 0 ) + - + 52 DIV - 85 AS col2
----
-75
-98

skipif mysql # not compatible
query II rowsort label-7104
SELECT DISTINCT - 75 AS col0, + COALESCE ( - 98, COUNT ( * ), + - 74 * - 98 + - 45 - + 1 - 44 * 33 * + + 77 + + + COUNT ( - 84 ) + + 49 * - 7 - - - 10 + - + 26 + COUNT ( * ) * + + 35 / - + 58 + 62 + - 33 * 41 * - 0 ) + - + 52 / - 85 AS col2
----
-75
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7105
SELECT 10 + - 90 + 20 + - 41 * - + CAST( NULL AS SIGNED ) * 25 / 37 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7105
SELECT 10 + - 90 + 20 + - 41 * - + CAST ( NULL AS INTEGER ) * 25 / 37 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7106
SELECT DISTINCT - ( - + CASE + 5 WHEN - + 24 THEN + COALESCE ( - + ( MIN( - CAST( NULL AS SIGNED ) ) ), - 31, + 87 ) WHEN + + 33 THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-7106
SELECT DISTINCT - ( - + CASE + 5 WHEN - + 24 THEN + COALESCE ( - + ( MIN ( - CAST ( NULL AS INTEGER ) ) ), - 31, + 87 ) WHEN + + 33 THEN NULL END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-7107
SELECT ALL CAST( + - 43 AS SIGNED ) DIV - + 2 col1, 16 * - SUM( 69 ) AS col2, - + SUM( 77 ) DIV 4 * - COUNT( * ) + - - CASE - 12 WHEN + 36 * - + COUNT( + + ( + 48 ) ) + - ( + 95 ) DIV + ( - 79 ) THEN - 74 END AS col0
----
21
-1104
NULL

skipif mysql # not compatible
query III rowsort label-7107
SELECT ALL CAST ( + - 43 AS INTEGER ) / - + 2 col1, 16 * - SUM ( 69 ) AS col2, - + SUM ( 77 ) / 4 * - COUNT ( * ) + - - CASE - 12 WHEN + 36 * - + COUNT ( + + ( + 48 ) ) + - ( + 95 ) / + ( - 79 ) THEN - 74 END AS col0
----
21
-1104
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7108
SELECT ( - 50 ) DIV + - 73 AS col0, ( + ( - 12 ) ) + 70 * - 54 * + 96 * + + 38 + + MAX( + 5 )
----
0
-13789447

skipif mysql # not compatible
query II rowsort label-7108
SELECT ( - 50 ) / + - 73 AS col0, ( + ( - 12 ) ) + 70 * - 54 * + 96 * + + 38 + + MAX ( + 5 )
----
0
-13789447

query II rowsort
SELECT DISTINCT - 68 AS col1, 37 * 86
----
-68
3182

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7110
SELECT CAST( NULL AS SIGNED ) / 81 * + 58 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7110
SELECT CAST ( NULL AS INTEGER ) / 81 * + 58 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7111
SELECT NULLIF ( + COUNT( * ), 82 ) * 44 - 72
----
-28

skipif mysql # not compatible
query I rowsort label-7111
SELECT NULLIF ( + COUNT ( * ), 82 ) * 44 - 72
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7112
SELECT CAST( CAST( - 1 AS SIGNED ) AS SIGNED ) * - COALESCE ( - 75, 5 * - CAST( NULL AS SIGNED ) * - MAX( - + 67 ) )
----
-75

skipif mysql # not compatible
query I rowsort label-7112
SELECT CAST ( CAST ( - 1 AS INTEGER ) AS INTEGER ) * - COALESCE ( - 75, 5 * - CAST ( NULL AS INTEGER ) * - MAX ( - + 67 ) )
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-7113
SELECT DISTINCT 64 * 17 DIV - - COALESCE ( - 29, - + 61 ) AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-7113
SELECT DISTINCT 64 * 17 / - - COALESCE ( - 29, - + 61 ) AS col0
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-7114
SELECT 35 DIV + 38 * + 88 * 98 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7114
SELECT 35 / + 38 * + 88 * 98 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7115
SELECT ALL - 12, - CAST( + + 92 AS SIGNED ) AS col0
----
-12
-92

skipif mysql # not compatible
query II rowsort label-7115
SELECT ALL - 12, - CAST ( + + 92 AS INTEGER ) AS col0
----
-12
-92

query I rowsort
SELECT ALL 75 + + 41 AS col2
----
116

query II rowsort
SELECT - - 94 AS col0, 41 AS col2
----
94
41

query I rowsort
SELECT ALL + 23 + - 26 AS col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7119
SELECT ( - 32 ) + COUNT( ALL + 44 ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-7119
SELECT ( - 32 ) + COUNT ( ALL + 44 ) AS col2
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7120
SELECT 17 - - 89 + CAST( 27 AS SIGNED ) + + + 5
----
138

skipif mysql # not compatible
query I rowsort label-7120
SELECT 17 - - 89 + CAST ( 27 AS INTEGER ) + + + 5
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-7121
SELECT - MIN( ALL + - 90 ) + 19 AS col2
----
109

skipif mysql # not compatible
query I rowsort label-7121
SELECT - MIN ( ALL + - 90 ) + 19 AS col2
----
109

query II rowsort
SELECT 16 col1, - CASE + 44 WHEN + - 56 * + - 13 + + - 73 THEN + + 23 END
----
16
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7123
SELECT 96 + - NULLIF ( + + 12, 64 * - + 14 ) DIV CAST( - NULLIF ( - CASE 3 WHEN - COUNT( * ) THEN + + CASE 7 WHEN + 7 THEN NULL WHEN - 66 THEN - ( + 37 ) ELSE NULL END * + 86 - - 85 * - 17 WHEN - + 51 * 71 THEN NULL ELSE 48 END, - 64 ) AS SIGNED ) * + 51 AS col1
----
96

skipif mysql # not compatible
query I rowsort label-7123
SELECT 96 + - NULLIF ( + + 12, 64 * - + 14 ) / CAST ( - NULLIF ( - CASE 3 WHEN - COUNT ( * ) THEN + + CASE 7 WHEN + 7 THEN NULL WHEN - 66 THEN - ( + 37 ) ELSE NULL END * + 86 - - 85 * - 17 WHEN - + 51 * 71 THEN NULL ELSE 48 END, - 64 ) AS INTEGER ) * + 51 AS col1
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-7124
SELECT DISTINCT + 60 col0, - CASE + 28 WHEN + + ( - + 30 ) + - COUNT( * ) + + 30 + + 96 + - - COUNT( * ) * 54 * - - 4 + - 58 / 15 * + 75 + + - 79 + + 11 * + 36 * + 52 * COUNT( ALL 24 ) / - + 46 * - COUNT( * ) * + 8 * + + 52 THEN + 82 + - - 22 ELSE NULL END
----
60
NULL

skipif mysql # not compatible
query II rowsort label-7124
SELECT DISTINCT + 60 col0, - CASE + 28 WHEN + + ( - + 30 ) + - COUNT ( * ) + + 30 + + 96 + - - COUNT ( * ) * 54 * - - 4 + - 58 / 15 * + 75 + + - 79 + + 11 * + 36 * + 52 * COUNT ( ALL 24 ) / - + 46 * - COUNT ( * ) * + 8 * + + 52 THEN + 82 + - - 22 ELSE NULL END
----
60
NULL

query I rowsort
SELECT ALL - + 4 - - - 67 AS col1
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-7126
SELECT SUM( - 39 ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-7126
SELECT SUM ( - 39 ) AS col0
----
-39

query I rowsort
SELECT 66 + - 96 AS col0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-7128
SELECT COUNT( + 93 ) + - - 86 + + 88 * + 98
----
8711

skipif mysql # not compatible
query I rowsort label-7128
SELECT COUNT ( + 93 ) + - - 86 + + 88 * + 98
----
8711

query I rowsort
SELECT COALESCE ( + 86, 24 * - - 3 - 92 ) + - + 40
----
46

query II rowsort
SELECT ALL 8 AS col2, 74 * + - 28 AS col1
----
8
-2072

onlyif mysql # aggregate syntax: 
query I rowsort label-7131
SELECT ALL + COUNT( * ) * - 38 - - 65 col2
----
27

skipif mysql # not compatible
query I rowsort label-7131
SELECT ALL + COUNT ( * ) * - 38 - - 65 col2
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7132
SELECT 1 DIV 84 col2, SUM( ALL - 51 )
----
0
-51

skipif mysql # not compatible
query II rowsort label-7132
SELECT 1 / 84 col2, SUM ( ALL - 51 )
----
0
-51

query I rowsort
SELECT 36 * 57 * + + 18 AS col1
----
36936

query I rowsort
SELECT ALL - ( + 96 ) AS col1
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-7135
SELECT ALL 41 * 82 DIV ( - 69 )
----
-48

skipif mysql # not compatible
query I rowsort label-7135
SELECT ALL 41 * 82 / ( - 69 )
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7136
SELECT COUNT( * ) + 33 * - - 61 DIV COUNT( * ) AS col1
----
2014

skipif mysql # not compatible
query I rowsort label-7136
SELECT COUNT ( * ) + 33 * - - 61 / COUNT ( * ) AS col1
----
2014

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7137
SELECT DISTINCT + CAST( + 47 AS SIGNED ) * - - 90 * 19 * - + 91 col0, + 85 * - 16 AS col0
----
-7313670
-1360

skipif mysql # not compatible
query II rowsort label-7137
SELECT DISTINCT + CAST ( + 47 AS INTEGER ) * - - 90 * 19 * - + 91 col0, + 85 * - 16 AS col0
----
-7313670
-1360

onlyif mysql # aggregate syntax: 
query I rowsort label-7138
SELECT ALL - MIN( ALL - + 57 )
----
57

skipif mysql # not compatible
query I rowsort label-7138
SELECT ALL - MIN ( ALL - + 57 )
----
57

query I rowsort
SELECT + 7 * - 38 + + + 15
----
-251

onlyif mysql # aggregate syntax: 
query I rowsort label-7140
SELECT ALL + 35 + + - COUNT( * ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-7140
SELECT ALL + 35 + + - COUNT ( * ) AS col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7141
SELECT + SUM( - 16 ) col0
----
-16

skipif mysql # not compatible
query I rowsort label-7141
SELECT + SUM ( - 16 ) col0
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7142
SELECT DISTINCT - COUNT( - + 50 ) + + COUNT( * ) + - 4 DIV 91 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7142
SELECT DISTINCT - COUNT ( - + 50 ) + + COUNT ( * ) + - 4 / 91 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7143
SELECT ALL - CAST( NULL AS DECIMAL ) + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7143
SELECT ALL - CAST ( NULL AS REAL ) + COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7144
SELECT + 88 * + + CAST( 6 AS SIGNED ) + - + 87 AS col2, + 3 AS col2
----
441
3

skipif mysql # not compatible
query II rowsort label-7144
SELECT + 88 * + + CAST ( 6 AS INTEGER ) + - + 87 AS col2, + 3 AS col2
----
441
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7145
SELECT 39 + + COALESCE ( - - 51, 51 * - 11 * - 87 + COUNT( * ) ) + - - COUNT( * ) - - SUM( - 32 )
----
59

skipif mysql # not compatible
query I rowsort label-7145
SELECT 39 + + COALESCE ( - - 51, 51 * - 11 * - 87 + COUNT ( * ) ) + - - COUNT ( * ) - - SUM ( - 32 )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7146
SELECT NULLIF ( ( + 25 ), + 6 ) * 48 + + MIN( DISTINCT + + 3 ) AS col0
----
1203

skipif mysql # not compatible
query I rowsort label-7146
SELECT NULLIF ( ( + 25 ), + 6 ) * 48 + + MIN ( DISTINCT + + 3 ) AS col0
----
1203

onlyif mysql # aggregate syntax: 
query I rowsort label-7147
SELECT + COALESCE ( - ( + + 9 ), + + 30 ) + - COUNT( * ) + + - 33
----
-43

skipif mysql # not compatible
query I rowsort label-7147
SELECT + COALESCE ( - ( + + 9 ), + + 30 ) + - COUNT ( * ) + + - 33
----
-43

query I rowsort
SELECT ALL 86 + + ( - + 30 ) AS col2
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-7149
SELECT 97 * + 30 + - + CASE - COUNT( * ) WHEN 25 * + - 60 THEN NULL ELSE - 14 END + - 1 * - + 64 + + 12 AS col0, COUNT( * )
----
3000
1

skipif mysql # not compatible
query II rowsort label-7149
SELECT 97 * + 30 + - + CASE - COUNT ( * ) WHEN 25 * + - 60 THEN NULL ELSE - 14 END + - 1 * - + 64 + + 12 AS col0, COUNT ( * )
----
3000
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7150
SELECT + 69 * - - CASE - + COUNT( * ) WHEN + COUNT( * ) - - 34 + + 65 * - 44 THEN - + 56 + - - 40 * + 76 / 24 + - 15 * - AVG ( + 22 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7150
SELECT + 69 * - - CASE - + COUNT ( * ) WHEN + COUNT ( * ) - - 34 + + 65 * - 44 THEN - + 56 + - - 40 * + 76 / 24 + - 15 * - AVG ( + 22 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7151
SELECT + COUNT( * ) * - + 7
----
-7

skipif mysql # not compatible
query I rowsort label-7151
SELECT + COUNT ( * ) * - + 7
----
-7

query I rowsort
SELECT ALL + 75 * - 36 col0
----
-2700

query I rowsort
SELECT DISTINCT - 84 - - - 8 AS col1
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-7154
SELECT ALL + 51 - + MIN( + 50 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7154
SELECT ALL + 51 - + MIN ( + 50 ) AS col1
----
1

query I rowsort
SELECT + - 45 * + 7
----
-315

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7156
SELECT + + ( + MIN( ALL - 37 ) ) - COALESCE ( + - 80, 72 + + 44 * 15 ) - - + 45 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7156
SELECT + + ( + MIN ( ALL - 37 ) ) - COALESCE ( + - 80, 72 + + 44 * 15 ) - - + 45 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 41 + + 67
----
108

query I rowsort
SELECT ALL 16 - - + 14 * - 6 AS col2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-7159
SELECT + COUNT( ALL + 50 ) * - 42
----
-42

skipif mysql # not compatible
query I rowsort label-7159
SELECT + COUNT ( ALL + 50 ) * - 42
----
-42

query I rowsort
SELECT - 55 + 18 * + COALESCE ( - 89, + 95 ) + - + 27 * + + 66
----
-3439

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7161
SELECT DISTINCT + MAX( ALL + - CAST( - 74 AS SIGNED ) ) * - 17 AS col0
----
-1258

skipif mysql # not compatible
query I rowsort label-7161
SELECT DISTINCT + MAX ( ALL + - CAST ( - 74 AS INTEGER ) ) * - 17 AS col0
----
-1258

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7162
SELECT - NULLIF ( - - 45, + ( + CAST( NULL AS DECIMAL ) ) ), + 87 AS col1
----
-45
87

skipif mysql # not compatible
query II rowsort label-7162
SELECT - NULLIF ( - - 45, + ( + CAST ( NULL AS REAL ) ) ), + 87 AS col1
----
-45
87

query I rowsort
SELECT + 77 - 42
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7164
SELECT ALL - CAST( NULL AS SIGNED ) * - 60
----
NULL

skipif mysql # not compatible
query I rowsort label-7164
SELECT ALL - CAST ( NULL AS INTEGER ) * - 60
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7165
SELECT + 95 * SUM( - + 47 )
----
-4465

skipif mysql # not compatible
query I rowsort label-7165
SELECT + 95 * SUM ( - + 47 )
----
-4465

query I rowsort
SELECT DISTINCT - 30 * + 92
----
-2760

query I rowsort
SELECT DISTINCT 18 * - 44 AS col1
----
-792

onlyif mysql # DIV for integer division: 
query I rowsort label-7168
SELECT - 47 DIV + + 69 * + ( + 25 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-7168
SELECT - 47 / + + 69 * + ( + 25 ) col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7169
SELECT ALL 53 * + NULLIF ( 93, 69 * COUNT( * ) * - + 48 + + 65 ) col1
----
4929

skipif mysql # not compatible
query I rowsort label-7169
SELECT ALL 53 * + NULLIF ( 93, 69 * COUNT ( * ) * - + 48 + + 65 ) col1
----
4929

onlyif mysql # aggregate syntax: 
query I rowsort label-7170
SELECT + 59 * 63 * COUNT( * )
----
3717

skipif mysql # not compatible
query I rowsort label-7170
SELECT + 59 * 63 * COUNT ( * )
----
3717

query I rowsort
SELECT ( - ( - 75 ) )
----
75

query I rowsort
SELECT ( - 48 ) col2
----
-48

query I rowsort
SELECT ALL - 71 * 89 + + - 78 * + 83 AS col0
----
-12793

onlyif mysql # DIV for integer division: 
query I rowsort label-7174
SELECT + 11 DIV - - 33
----
0

skipif mysql # not compatible
query I rowsort label-7174
SELECT + 11 / - - 33
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7175
SELECT - 17 DIV COALESCE ( + + 11, + - COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-7175
SELECT - 17 / COALESCE ( + + 11, + - COUNT ( * ) )
----
-1

query I rowsort
SELECT - 29 * + - 23
----
667

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7177
SELECT DISTINCT - 94 DIV + + 77 * + - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-7177
SELECT DISTINCT - 94 / + + 77 * + - COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7178
SELECT ALL SUM( DISTINCT + 95 ) * - 67 + 6 AS col1
----
-6359

skipif mysql # not compatible
query I rowsort label-7178
SELECT ALL SUM ( DISTINCT + 95 ) * - 67 + 6 AS col1
----
-6359

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7179
SELECT ALL - CASE - 78 WHEN - MAX( DISTINCT CASE - 17 WHEN 74 * + 20 THEN - CAST( NULL AS DECIMAL ) END ) + - CAST( NULL AS SIGNED ) THEN NULL WHEN + 85 * ( - - 87 ) THEN + 47 + + - COUNT( * ) + - - 78 * ( - 90 ) * - COUNT( * ) ELSE NULL END * + 50 * - - 55 + 23 + - + 31 + - NULLIF ( - 27, - - 34 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7179
SELECT ALL - CASE - 78 WHEN - MAX ( DISTINCT CASE - 17 WHEN 74 * + 20 THEN - CAST ( NULL AS REAL ) END ) + - CAST ( NULL AS INTEGER ) THEN NULL WHEN + 85 * ( - - 87 ) THEN + 47 + + - COUNT ( * ) + - - 78 * ( - 90 ) * - COUNT ( * ) ELSE NULL END * + 50 * - - 55 + 23 + - + 31 + - NULLIF ( - 27, - - 34 )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7180
SELECT ALL 3 * - 57 * + 94 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7180
SELECT ALL 3 * - 57 * + 94 + - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT NULLIF ( + 30, 94 )
----
30

query I rowsort
SELECT DISTINCT 86 * - - NULLIF ( - - 59, + - 32 / - NULLIF ( + 94, - 23 ) )
----
5074

query I rowsort
SELECT - 45 + + 53
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7184
SELECT + SUM( ALL - 50 )
----
-50

skipif mysql # not compatible
query I rowsort label-7184
SELECT + SUM ( ALL - 50 )
----
-50

query I rowsort
SELECT - 31 + - + 1 AS col2
----
-32

query I rowsort
SELECT DISTINCT + - 32 col0
----
-32

query I rowsort
SELECT ALL - 41 * + 42 - ( - - 44 ) + ( ( 16 ) )
----
-1750

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7188
SELECT - + ( + CAST( + - 28 AS SIGNED ) ) + + + 77 + + 23
----
128

skipif mysql # not compatible
query I rowsort label-7188
SELECT - + ( + CAST ( + - 28 AS INTEGER ) ) + + + 77 + + 23
----
128

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7189
SELECT - 41, ( - 21 ) DIV + - COUNT( * ) - COALESCE ( + COUNT( * ), - - COUNT( * ) * + ( 68 ) + - - 81 + - 95 * + 52 * 61, MIN( 66 ) ) + + COUNT( * ) * + COALESCE ( - + 78, - - 43 DIV + - 65, 36 ) col2
----
-41
-58

skipif mysql # not compatible
query II rowsort label-7189
SELECT - 41, ( - 21 ) / + - COUNT ( * ) - COALESCE ( + COUNT ( * ), - - COUNT ( * ) * + ( 68 ) + - - 81 + - 95 * + 52 * 61, MIN ( 66 ) ) + + COUNT ( * ) * + COALESCE ( - + 78, - - 43 / + - 65, 36 ) col2
----
-41
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7190
SELECT - 47 + + + COUNT( * ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-7190
SELECT - 47 + + + COUNT ( * ) AS col2
----
-46

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7191
SELECT + 17 - - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7191
SELECT + 17 - - CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT - 61 + + + 24 col1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-7193
SELECT + COUNT( * ) + - + 81 col1
----
-80

skipif mysql # not compatible
query I rowsort label-7193
SELECT + COUNT ( * ) + - + 81 col1
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7194
SELECT ALL CAST( NULL AS SIGNED ) * - 15
----
NULL

skipif mysql # not compatible
query I rowsort label-7194
SELECT ALL CAST ( NULL AS INTEGER ) * - 15
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7195
SELECT - + 14 DIV 18
----
0

skipif mysql # not compatible
query I rowsort label-7195
SELECT - + 14 / 18
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7196
SELECT + - COUNT( * ) * 36
----
-36

skipif mysql # not compatible
query I rowsort label-7196
SELECT + - COUNT ( * ) * 36
----
-36

query I rowsort
SELECT + 44 + - 12 AS col1
----
32

query I rowsort
SELECT - - ( + 5 ) + - 70 * + - 20
----
1405

query I rowsort
SELECT + + 33 * + 27 AS col2
----
891

query I rowsort
SELECT ALL + 28 * - 56 AS col2
----
-1568

onlyif mysql # aggregate syntax: 
query I rowsort label-7201
SELECT + + 64 + + 69 * + MAX( + + 31 ) AS col1
----
2203

skipif mysql # not compatible
query I rowsort label-7201
SELECT + + 64 + + 69 * + MAX ( + + 31 ) AS col1
----
2203

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7202
SELECT DISTINCT - 95 * - 57 DIV COUNT( * )
----
5415

skipif mysql # not compatible
query I rowsort label-7202
SELECT DISTINCT - 95 * - 57 / COUNT ( * )
----
5415

onlyif mysql # aggregate syntax: 
query II rowsort label-7203
SELECT ALL COUNT( * ) AS col2, + ( 51 )
----
1
51

skipif mysql # not compatible
query II rowsort label-7203
SELECT ALL COUNT ( * ) AS col2, + ( 51 )
----
1
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7204
SELECT + 71 * - CAST( COUNT( * ) AS SIGNED )
----
-71

skipif mysql # not compatible
query I rowsort label-7204
SELECT + 71 * - CAST ( COUNT ( * ) AS INTEGER )
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-7205
SELECT ALL 77 * - - COUNT( * ) * CASE ( 80 ) WHEN 46 THEN + - COUNT( * ) / 70 - - + 51 WHEN ( 81 ) THEN NULL END * 9 * + 56 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7205
SELECT ALL 77 * - - COUNT ( * ) * CASE ( 80 ) WHEN 46 THEN + - COUNT ( * ) / 70 - - + 51 WHEN ( 81 ) THEN NULL END * 9 * + 56 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7206
SELECT - 59 + - - COALESCE ( 91, + 1, + 40 ) + - - 77 + + ( + + MAX( ALL + - 78 ) ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-7206
SELECT - 59 + - - COALESCE ( 91, + 1, + 40 ) + - - 77 + + ( + + MAX ( ALL + - 78 ) ) AS col1
----
31

query II rowsort
SELECT 84 AS col1, + 18 AS col1
----
84
18

query I rowsort
SELECT + 24 + + + ( - 90 )
----
-66

query I rowsort
SELECT + 41 * + 66 col2
----
2706

onlyif mysql # aggregate syntax: 
query I rowsort label-7210
SELECT + NULLIF ( + + ( + 5 ), + 26 + 48 * COUNT( * ) ) + - 8 * - 39 col1
----
317

skipif mysql # not compatible
query I rowsort label-7210
SELECT + NULLIF ( + + ( + 5 ), + 26 + 48 * COUNT ( * ) ) + - 8 * - 39 col1
----
317

onlyif mysql # aggregate syntax: 
query II rowsort label-7211
SELECT - 81 AS col1, - 6 + - - 7 * - CASE + ( 29 ) WHEN 35 THEN - - COUNT( * ) ELSE NULL END * - ( - COUNT( * ) )
----
-81
NULL

skipif mysql # not compatible
query II rowsort label-7211
SELECT - 81 AS col1, - 6 + - - 7 * - CASE + ( 29 ) WHEN 35 THEN - - COUNT ( * ) ELSE NULL END * - ( - COUNT ( * ) )
----
-81
NULL

query II rowsort
SELECT + 29 + + 45 col0, ( + 88 ) AS col2
----
74
88

query I rowsort
SELECT + ( 9 ) col2
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-7214
SELECT ALL 80 DIV 69 + 17 AS col1
----
18

skipif mysql # not compatible
query I rowsort label-7214
SELECT ALL 80 / 69 + 17 AS col1
----
18

query I rowsort
SELECT 72 * - - 97 + 95 AS col1
----
7079

query II rowsort
SELECT ALL + 80 col2, + 88 + 57
----
80
145

query I rowsort
SELECT ALL - 81 * - 39
----
3159

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7218
SELECT ALL + 51 / CAST( NULL AS DECIMAL ) + COUNT( 84 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7218
SELECT ALL + 51 / CAST ( NULL AS REAL ) + COUNT ( 84 )
----
NULL

query I rowsort
SELECT + 45 * 25 AS col0
----
1125

query I rowsort
SELECT - 51 + - + 61 + + ( 57 ) * 91 * + 9
----
46571

query I rowsort
SELECT ALL 57 + 75 AS col1
----
132

query II rowsort
SELECT 81 AS col1, - 35
----
81
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-7223
SELECT + 79 DIV - + 64 + - 9
----
-10

skipif mysql # not compatible
query I rowsort label-7223
SELECT + 79 / - + 64 + - 9
----
-10

query II rowsort
SELECT 89, - 85 col2
----
89
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7225
SELECT ( 17 ) DIV + 2 + + 43 AS col0, + ( - 49 ) * + - 7 + COUNT( * ) AS col0
----
51
344

skipif mysql # not compatible
query II rowsort label-7225
SELECT ( 17 ) / + 2 + + 43 AS col0, + ( - 49 ) * + - 7 + COUNT ( * ) AS col0
----
51
344

onlyif mysql # DIV for integer division: 
query I rowsort label-7226
SELECT ALL + + ( + 5 ) DIV + 29 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7226
SELECT ALL + + ( + 5 ) / + 29 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7227
SELECT ALL 21 - CASE + - 50 WHEN - ( + 34 ) * - 40 / + 80 + - NULLIF ( + 72, + - 65 + + 53 ) THEN - 74 * - COUNT( * ) WHEN + + COUNT( * ) * - 42 THEN + - 89 ELSE + CASE - - 14 WHEN - 47 + 29 THEN COALESCE ( - COALESCE ( + 54, + 15 * - + 11, + - ( 17 ) ), - - 0 * - 33 * - - CAST( NULL AS SIGNED ), - 5 ) WHEN COUNT( * ) * - 50 + + NULLIF ( - COUNT( * ), NULLIF ( + 41, 32 * - 21 + - 21 * - NULLIF ( + 85 * 12, 19 + ( 7 ) ) ) * + ( 71 ) + - 99 * COUNT( * ) ) * 91 THEN NULL WHEN 27 * + CASE - 57 WHEN 34 THEN CAST( NULL AS SIGNED ) WHEN - 52 / 54 THEN NULL END THEN NULL END + - AVG ( - ( + ( + CASE 71 WHEN 16 THEN 48 * 65 + + 47 WHEN + 92 THEN - 32 ELSE NULL END ) ) ) END * - COALESCE ( + 74 + 47, - 70 * + 23 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7227
SELECT ALL 21 - CASE + - 50 WHEN - ( + 34 ) * - 40 / + 80 + - NULLIF ( + 72, + - 65 + + 53 ) THEN - 74 * - COUNT ( * ) WHEN + + COUNT ( * ) * - 42 THEN + - 89 ELSE + CASE - - 14 WHEN - 47 + 29 THEN COALESCE ( - COALESCE ( + 54, + 15 * - + 11, + - ( 17 ) ), - - 0 * - 33 * - - CAST ( NULL AS INTEGER ), - 5 ) WHEN COUNT ( * ) * - 50 + + NULLIF ( - COUNT ( * ), NULLIF ( + 41, 32 * - 21 + - 21 * - NULLIF ( + 85 * 12, 19 + ( 7 ) ) ) * + ( 71 ) + - 99 * COUNT ( * ) ) * 91 THEN NULL WHEN 27 * + CASE - 57 WHEN 34 THEN CAST ( NULL AS INTEGER ) WHEN - 52 / 54 THEN NULL END THEN NULL END + - AVG ( - ( + ( + CASE 71 WHEN 16 THEN 48 * 65 + + 47 WHEN + 92 THEN - 32 ELSE NULL END ) ) ) END * - COALESCE ( + 74 + 47, - 70 * + 23 ) AS col1
----
NULL

query I rowsort
SELECT + - COALESCE ( 7, + 13 )
----
-7

query I rowsort
SELECT ALL - - 73 - 39
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7230
SELECT SUM( DISTINCT + 99 ) * + COUNT( * )
----
99

skipif mysql # not compatible
query I rowsort label-7230
SELECT SUM ( DISTINCT + 99 ) * + COUNT ( * )
----
99

query I rowsort
SELECT ALL - - 81 * + + 22 * + 78 AS col0
----
138996

onlyif mysql # aggregate syntax: 
query II rowsort label-7232
SELECT 18 + COUNT( * ) AS col2, 22
----
19
22

skipif mysql # not compatible
query II rowsort label-7232
SELECT 18 + COUNT ( * ) AS col2, 22
----
19
22

query I rowsort
SELECT - ( NULLIF ( + 24, 50 ) )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7234
SELECT - MIN( - 70 )
----
70

skipif mysql # not compatible
query I rowsort label-7234
SELECT - MIN ( - 70 )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7235
SELECT ALL - - COUNT( * ) + + 65
----
66

skipif mysql # not compatible
query I rowsort label-7235
SELECT ALL - - COUNT ( * ) + + 65
----
66

query I rowsort
SELECT 10 + 75
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7237
SELECT DISTINCT ( CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) * + + 46 + - 20 * - 47
----
NULL

skipif mysql # not compatible
query I rowsort label-7237
SELECT DISTINCT ( CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) * + + 46 + - 20 * - 47
----
NULL

query I rowsort
SELECT ALL 23 + + 47 AS col2
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7239
SELECT COUNT( * ) - + 18 - + 94 + - CAST( + + ( + 33 ) AS SIGNED ) - + + ( - 89 ) * - 79 AS col1
----
-7175

skipif mysql # not compatible
query I rowsort label-7239
SELECT COUNT ( * ) - + 18 - + 94 + - CAST ( + + ( + 33 ) AS INTEGER ) - + + ( - 89 ) * - 79 AS col1
----
-7175

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7240
SELECT COUNT( * ) DIV 87 DIV - - COALESCE ( - COALESCE ( + + 27, + - 65, - 97 ), - - ( + + 38 ) * + 85 + 0 + - MIN( + + 62 ), - + COUNT( + 24 ) - + 81 )
----
0

skipif mysql # not compatible
query I rowsort label-7240
SELECT COUNT ( * ) / 87 / - - COALESCE ( - COALESCE ( + + 27, + - 65, - 97 ), - - ( + + 38 ) * + 85 + 0 + - MIN ( + + 62 ), - + COUNT ( + 24 ) - + 81 )
----
0

query I rowsort
SELECT 45 - - + 91 * 78 AS col2
----
7143

query I rowsort
SELECT DISTINCT + 94 * - - 2 * 48
----
9024

query I rowsort
SELECT DISTINCT 93 + - 13 + - ( - ( - 70 ) ) * + 55 + + 48 AS col0
----
-3722

onlyif mysql # aggregate syntax: 
query I rowsort label-7244
SELECT DISTINCT COUNT( * ) + ( + + COUNT( * ) ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-7244
SELECT DISTINCT COUNT ( * ) + ( + + COUNT ( * ) ) AS col2
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-7245
SELECT MIN( - COALESCE ( - 26, + 32 ) ) * 55 AS col2, COUNT( * ) + 11
----
1430
12

skipif mysql # not compatible
query II rowsort label-7245
SELECT MIN ( - COALESCE ( - 26, + 32 ) ) * 55 AS col2, COUNT ( * ) + 11
----
1430
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7246
SELECT ( + ( 61 ) ) * - - ( - MAX( DISTINCT + 33 ) )
----
-2013

skipif mysql # not compatible
query I rowsort label-7246
SELECT ( + ( 61 ) ) * - - ( - MAX ( DISTINCT + 33 ) )
----
-2013

onlyif mysql # aggregate syntax: 
query I rowsort label-7247
SELECT ALL - SUM( ALL - + 86 ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-7247
SELECT ALL - SUM ( ALL - + 86 ) AS col2
----
86

query II rowsort
SELECT DISTINCT - ( - 81 ) AS col2, 69 AS col2
----
81
69

query I rowsort
SELECT DISTINCT 37 * + CASE + - 52 WHEN - + 49 THEN 40 * + 49 * - - 85 END * + - 76 + + - 74 AS col2
----
NULL

query II rowsort
SELECT - 76 * + - 74 AS col2, + ( 91 ) AS col2
----
5624
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7251
SELECT ALL - CASE + - 28 WHEN + 35 * - 26 THEN 18 + 96 * + 28 END * - CAST( NULL AS SIGNED ) / + 65 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7251
SELECT ALL - CASE + - 28 WHEN + 35 * - 26 THEN 18 + 96 * + 28 END * - CAST ( NULL AS INTEGER ) / + 65 AS col2
----
NULL

query I rowsort
SELECT - 70 * + 15 + + 19 col1
----
-1031

query I rowsort
SELECT 17 * + 72 AS col0
----
1224

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7254
SELECT + 12 * 56 * - 18 * + - 59 + - + CAST( 50 AS SIGNED )
----
713614

skipif mysql # not compatible
query I rowsort label-7254
SELECT + 12 * 56 * - 18 * + - 59 + - + CAST ( 50 AS INTEGER )
----
713614

query I rowsort
SELECT ALL - CASE + 36 WHEN - 57 * + 62 * + - 79 THEN ( - NULLIF ( + 24, - 74 * 3 ) ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7256
SELECT - CASE + ( - + 98 ) WHEN + + CASE - COUNT( 60 ) WHEN + COUNT( * ) * - - COALESCE ( - + 3, + 93, - - 41 + - - COUNT( * ) ) / + - 32 + - 87 + 82 + - COUNT( * ) * - COUNT( * ) * + 31 - 24 + - 6 * + 17 * + ( + 37 ) + - + COUNT( * ) + - 42 * - COALESCE ( - + 6, 18 ) * 21 / + - 5 + + 67 + 11 + - 24 THEN NULL WHEN - 77 * 68 THEN NULL ELSE + COUNT( * ) - - 21 END THEN - COUNT( * ) ELSE 43 / 27 END * 43 + CASE 55 WHEN 48 / + 90 THEN 32 WHEN - 63 * - 96 + + 8 * 0 THEN NULLIF ( + COUNT( * ), 54 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7256
SELECT - CASE + ( - + 98 ) WHEN + + CASE - COUNT ( 60 ) WHEN + COUNT ( * ) * - - COALESCE ( - + 3, + 93, - - 41 + - - COUNT ( * ) ) / + - 32 + - 87 + 82 + - COUNT ( * ) * - COUNT ( * ) * + 31 - 24 + - 6 * + 17 * + ( + 37 ) + - + COUNT ( * ) + - 42 * - COALESCE ( - + 6, 18 ) * 21 / + - 5 + + 67 + 11 + - 24 THEN NULL WHEN - 77 * 68 THEN NULL ELSE + COUNT ( * ) - - 21 END THEN - COUNT ( * ) ELSE 43 / 27 END * 43 + CASE 55 WHEN 48 / + 90 THEN 32 WHEN - 63 * - 96 + + 8 * 0 THEN NULLIF ( + COUNT ( * ), 54 ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7257
SELECT 66 + + MAX( ALL - 26 ) AS col2, COUNT( * ) AS col2
----
40
1

skipif mysql # not compatible
query II rowsort label-7257
SELECT 66 + + MAX ( ALL - 26 ) AS col2, COUNT ( * ) AS col2
----
40
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7258
SELECT 96 * - 48 + 45 * + + COUNT( * ) AS col2
----
-4563

skipif mysql # not compatible
query I rowsort label-7258
SELECT 96 * - 48 + 45 * + + COUNT ( * ) AS col2
----
-4563

query I rowsort
SELECT DISTINCT + 0 + - ( ( - ( - 82 ) ) ) AS col0
----
-82

query II rowsort
SELECT DISTINCT 66 + + + 82 AS col2, 79 + + + 39 AS col2
----
148
118

query I rowsort
SELECT ( 26 ) * - + 79
----
-2054

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7262
SELECT + CAST( NULL AS DECIMAL ) + - 0 - - + 61
----
NULL

skipif mysql # not compatible
query I rowsort label-7262
SELECT + CAST ( NULL AS REAL ) + - 0 - - + 61
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7263
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 93 * + 13 * + MAX( ALL + 67 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7263
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 93 * + 13 * + MAX ( ALL + 67 )
----
NULL

query III rowsort
SELECT ( + 49 ) * - + 29, + 45 * + 19 * + 92 AS col2, 19 col1
----
-1421
78660
19

query I rowsort
SELECT 55 + - - 48
----
103

query II rowsort
SELECT ALL + 8 + - + 86 + 27, 82 AS col0
----
-51
82

query I rowsort
SELECT ALL - 53 + - + 64
----
-117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7268
SELECT ALL + CAST( NULL AS SIGNED ) * - NULLIF ( + - 89, ( 61 ) / - 13 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7268
SELECT ALL + CAST ( NULL AS INTEGER ) * - NULLIF ( + - 89, ( 61 ) / - 13 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7269
SELECT DISTINCT - 36 - COUNT( * ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-7269
SELECT DISTINCT - 36 - COUNT ( * ) AS col2
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-7270
SELECT DISTINCT + 63 DIV + 46 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7270
SELECT DISTINCT + 63 / + 46 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7271
SELECT + 4 * - COUNT( ALL + 70 )
----
-4

skipif mysql # not compatible
query I rowsort label-7271
SELECT + 4 * - COUNT ( ALL + 70 )
----
-4

query I rowsort
SELECT ALL - 46 * - 26 AS col2
----
1196

query I rowsort
SELECT - 16 + + 68 AS col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7274
SELECT - MIN( + 94 ) * - 79
----
7426

skipif mysql # not compatible
query I rowsort label-7274
SELECT - MIN ( + 94 ) * - 79
----
7426

query I rowsort
SELECT DISTINCT 71 * 2 - - 27 col2
----
169

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7276
SELECT + - 78 * ( - 23 ), SUM( DISTINCT 68 ) DIV + - 34 AS col1
----
1794
-2

skipif mysql # not compatible
query II rowsort label-7276
SELECT + - 78 * ( - 23 ), SUM ( DISTINCT 68 ) / + - 34 AS col1
----
1794
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7277
SELECT + - COUNT( ALL 7 ) + + 71 + + 24
----
94

skipif mysql # not compatible
query I rowsort label-7277
SELECT + - COUNT ( ALL 7 ) + + 71 + + 24
----
94

query I rowsort
SELECT DISTINCT + - 89 * - - 28 AS col1
----
-2492

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7279
SELECT + CAST( + 21 AS SIGNED ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-7279
SELECT + CAST ( + 21 AS INTEGER ) AS col0
----
21

query I rowsort
SELECT - - 17 * 56
----
952

query I rowsort
SELECT - + 35 * + 84 + - 73
----
-3013

query I rowsort
SELECT + 97 + - 18 AS col0
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7283
SELECT ALL + - 3 * 22 - - 30 + - + 66 DIV - SUM( + 92 )
----
-36

skipif mysql # not compatible
query I rowsort label-7283
SELECT ALL + - 3 * 22 - - 30 + - + 66 / - SUM ( + 92 )
----
-36

query I rowsort
SELECT + 49 * - 76 AS col1
----
-3724

onlyif mysql # aggregate syntax: 
query I rowsort label-7285
SELECT DISTINCT - MIN( ALL + 10 ) * + 44 + + 93 * + 27 AS col0
----
2071

skipif mysql # not compatible
query I rowsort label-7285
SELECT DISTINCT - MIN ( ALL + 10 ) * + 44 + + 93 * + 27 AS col0
----
2071

onlyif mysql # aggregate syntax: 
query I rowsort label-7286
SELECT ALL + 41 * + + COUNT( * ) + - 97 AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-7286
SELECT ALL + 41 * + + COUNT ( * ) + - 97 AS col2
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7287
SELECT + + 2 DIV + 24 - 4, CASE + - 91 WHEN 89 THEN NULL ELSE - MAX( DISTINCT - - 87 ) END + + 4 AS col0
----
-4
-83

skipif mysql # not compatible
query II rowsort label-7287
SELECT + + 2 / + 24 - 4, CASE + - 91 WHEN 89 THEN NULL ELSE - MAX ( DISTINCT - - 87 ) END + + 4 AS col0
----
-4
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-7288
SELECT ALL 55 * - 76 * - + SUM( - 18 ) AS col0
----
-75240

skipif mysql # not compatible
query I rowsort label-7288
SELECT ALL 55 * - 76 * - + SUM ( - 18 ) AS col0
----
-75240

query II rowsort
SELECT + 73 AS col0, 38
----
73
38

onlyif mysql # DIV for integer division: 
query I rowsort label-7290
SELECT + + 41 DIV + 32 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7290
SELECT + + 41 / + 32 AS col0
----
1

query I rowsort
SELECT ALL 83 + - - 61 + - - 8
----
152

onlyif mysql # DIV for integer division: 
query I rowsort label-7292
SELECT ALL - 49 DIV - - 58 col1
----
0

skipif mysql # not compatible
query I rowsort label-7292
SELECT ALL - 49 / - - 58 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7293
SELECT DISTINCT - 31 * - COALESCE ( + 98, + - COUNT( * ) ) AS col0
----
3038

skipif mysql # not compatible
query I rowsort label-7293
SELECT DISTINCT - 31 * - COALESCE ( + 98, + - COUNT ( * ) ) AS col0
----
3038

onlyif mysql # aggregate syntax: 
query I rowsort label-7294
SELECT ALL - 22 - NULLIF ( - 4, 5 + + 86 ) + + - 47 * 27 * - ( + COUNT( * ) ) AS col0
----
1251

skipif mysql # not compatible
query I rowsort label-7294
SELECT ALL - 22 - NULLIF ( - 4, 5 + + 86 ) + + - 47 * 27 * - ( + COUNT ( * ) ) AS col0
----
1251

query I rowsort
SELECT - 52 + + + 59 AS col2
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7296
SELECT - ( - 59 ) * - 9 / + - ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7296
SELECT - ( - 59 ) * - 9 / + - ( + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT - ( + ( - - 97 ) )
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7298
SELECT - CAST( NULL AS SIGNED ) + - 32, + 7 AS col2
----
NULL
7

skipif mysql # not compatible
query II rowsort label-7298
SELECT - CAST ( NULL AS INTEGER ) + - 32, + 7 AS col2
----
NULL
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7299
SELECT ALL + 77 * COUNT( * )
----
77

skipif mysql # not compatible
query I rowsort label-7299
SELECT ALL + 77 * COUNT ( * )
----
77

query I rowsort
SELECT ALL + 59 * - 12
----
-708

onlyif mysql # aggregate syntax: 
query I rowsort label-7301
SELECT ALL 81 * - + 83 * + + CASE - 5 WHEN MAX( + 96 ) * COUNT( * ) * + + 70 THEN - MIN( 99 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7301
SELECT ALL 81 * - + 83 * + + CASE - 5 WHEN MAX ( + 96 ) * COUNT ( * ) * + + 70 THEN - MIN ( 99 ) ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7302
SELECT - MIN( + 12 ) - + - COUNT( * ) * + + 41 col1
----
29

skipif mysql # not compatible
query I rowsort label-7302
SELECT - MIN ( + 12 ) - + - COUNT ( * ) * + + 41 col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7303
SELECT ALL ( SUM( - 9 ) ) col0
----
-9

skipif mysql # not compatible
query I rowsort label-7303
SELECT ALL ( SUM ( - 9 ) ) col0
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-7304
SELECT ALL - 60 * - + COUNT( * ), 93 AS col1
----
60
93

skipif mysql # not compatible
query II rowsort label-7304
SELECT ALL - 60 * - + COUNT ( * ), 93 AS col1
----
60
93

query I rowsort
SELECT - 45 * + + 2
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7306
SELECT + - 38 + - CASE + + CAST( NULL AS SIGNED ) WHEN - 57 THEN COUNT( * ) / + + 76 - + 89 + + + COUNT( * ) - + MIN( + + 29 ) WHEN + 15 THEN NULL ELSE NULL END + + + 69 * - 11
----
NULL

skipif mysql # not compatible
query I rowsort label-7306
SELECT + - 38 + - CASE + + CAST ( NULL AS INTEGER ) WHEN - 57 THEN COUNT ( * ) / + + 76 - + 89 + + + COUNT ( * ) - + MIN ( + + 29 ) WHEN + 15 THEN NULL ELSE NULL END + + + 69 * - 11
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7307
SELECT + COUNT( * ) * + 15 - 10
----
5

skipif mysql # not compatible
query I rowsort label-7307
SELECT + COUNT ( * ) * + 15 - 10
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7308
SELECT - ( - + COUNT( * ) ) DIV 58 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7308
SELECT - ( - + COUNT ( * ) ) / 58 AS col2
----
0

query I rowsort
SELECT - 67 * - 70 - 91 + 99
----
4698

onlyif mysql # DIV for integer division: 
query I rowsort label-7310
SELECT DISTINCT + - 59 DIV + 29 + + + 20 AS col0
----
18

skipif mysql # not compatible
query I rowsort label-7310
SELECT DISTINCT + - 59 / + 29 + + + 20 AS col0
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7311
SELECT DISTINCT COUNT( * ) DIV 79 + + SUM( + CASE + 68 WHEN + 54 THEN + 97 ELSE + 83 END ) * + 91 * - - 66 * 98
----
48852804

skipif mysql # not compatible
query I rowsort label-7311
SELECT DISTINCT COUNT ( * ) / 79 + + SUM ( + CASE + 68 WHEN + 54 THEN + 97 ELSE + 83 END ) * + 91 * - - 66 * 98
----
48852804

onlyif mysql # aggregate syntax: 
query II rowsort label-7312
SELECT ALL + 11 * + 95, COUNT( * ) AS col1
----
1045
1

skipif mysql # not compatible
query II rowsort label-7312
SELECT ALL + 11 * + 95, COUNT ( * ) AS col1
----
1045
1

query I rowsort
SELECT - + 6 * 88 * - - 16 col0
----
-8448

onlyif mysql # DIV for integer division: 
query I rowsort label-7314
SELECT ALL - 23 DIV - 72 + 3 col2
----
3

skipif mysql # not compatible
query I rowsort label-7314
SELECT ALL - 23 / - 72 + 3 col2
----
3

query I rowsort
SELECT - 90 * + - 17 + - 34 - + ( + 61 )
----
1435

onlyif mysql # aggregate syntax: 
query I rowsort label-7316
SELECT ALL + - NULLIF ( ( - MIN( + 25 ) ), + - 74 - - 30 ) col0
----
25

skipif mysql # not compatible
query I rowsort label-7316
SELECT ALL + - NULLIF ( ( - MIN ( + 25 ) ), + - 74 - - 30 ) col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7317
SELECT ALL + + 19 * - MAX( - 0 ) * - - 85 * - MIN( + - 72 ) * + 24 + - - 43
----
43

skipif mysql # not compatible
query I rowsort label-7317
SELECT ALL + + 19 * - MAX ( - 0 ) * - - 85 * - MIN ( + - 72 ) * + 24 + - - 43
----
43

query I rowsort
SELECT - 14 + 43
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7319
SELECT - - 8 * - 52 + - MAX( CAST( NULL AS SIGNED ) ) + + + 99 + + - 27
----
NULL

skipif mysql # not compatible
query I rowsort label-7319
SELECT - - 8 * - 52 + - MAX ( CAST ( NULL AS INTEGER ) ) + + + 99 + + - 27
----
NULL

query I rowsort
SELECT ALL - + 77 * ( ( - 28 ) ) + 28 AS col0
----
2184

onlyif mysql # aggregate syntax: 
query II rowsort label-7321
SELECT - ( + - 13 ) AS col0, COUNT( * ) - 81
----
13
-80

skipif mysql # not compatible
query II rowsort label-7321
SELECT - ( + - 13 ) AS col0, COUNT ( * ) - 81
----
13
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-7322
SELECT + COUNT( DISTINCT - + 25 ) + 78 * - 1 AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-7322
SELECT + COUNT ( DISTINCT - + 25 ) + 78 * - 1 AS col1
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7323
SELECT DISTINCT 36 * + ( - CAST( - - 55 AS SIGNED ) ) AS col0
----
-1980

skipif mysql # not compatible
query I rowsort label-7323
SELECT DISTINCT 36 * + ( - CAST ( - - 55 AS INTEGER ) ) AS col0
----
-1980

onlyif mysql # aggregate syntax: 
query I rowsort label-7324
SELECT + 41 + 83 + - - NULLIF ( + MIN( DISTINCT + ( + + 45 ) ), - + 96 ) AS col2
----
169

skipif mysql # not compatible
query I rowsort label-7324
SELECT + 41 + 83 + - - NULLIF ( + MIN ( DISTINCT + ( + + 45 ) ), - + 96 ) AS col2
----
169

query I rowsort
SELECT DISTINCT 70 * 15 AS col2
----
1050

query I rowsort
SELECT - 8 * - ( + 7 ) + - 48
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7327
SELECT ( 66 ) + - MIN( + + 89 ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-7327
SELECT ( 66 ) + - MIN ( + + 89 ) AS col1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-7328
SELECT DISTINCT 0 * - - 92 * + 32 * - COALESCE ( 39, + COUNT( * ) ) col2
----
0

skipif mysql # not compatible
query I rowsort label-7328
SELECT DISTINCT 0 * - - 92 * + 32 * - COALESCE ( 39, + COUNT ( * ) ) col2
----
0

query I rowsort
SELECT 90 * 38 + - 68 AS col2
----
3352

query I rowsort
SELECT 51 * 73 * - 5
----
-18615

onlyif mysql # aggregate syntax: 
query I rowsort label-7331
SELECT DISTINCT 35 * 22 * + COUNT( * )
----
770

skipif mysql # not compatible
query I rowsort label-7331
SELECT DISTINCT 35 * 22 * + COUNT ( * )
----
770

onlyif mysql # aggregate syntax: 
query I rowsort label-7332
SELECT SUM( DISTINCT - + 85 ) + + 50 + 83 AS col1
----
48

skipif mysql # not compatible
query I rowsort label-7332
SELECT SUM ( DISTINCT - + 85 ) + + 50 + 83 AS col1
----
48

query I rowsort
SELECT DISTINCT 40 * 42
----
1680

query I rowsort
SELECT 76 + ( + 38 ) AS col2
----
114

query II rowsort
SELECT - 44, - 20 AS col0
----
-44
-20

query I rowsort
SELECT ALL - + 72 * - 69 + - 26 AS col0
----
4942

query I rowsort
SELECT + 65 * + - 96 col0
----
-6240

onlyif mysql # aggregate syntax: 
query I rowsort label-7338
SELECT DISTINCT - - COUNT( * ) * - 18 + + 33
----
15

skipif mysql # not compatible
query I rowsort label-7338
SELECT DISTINCT - - COUNT ( * ) * - 18 + + 33
----
15

query I rowsort
SELECT ALL + - 59 + + 80 AS col0
----
21

query I rowsort
SELECT ALL - - 46 + - + 97
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7341
SELECT DISTINCT - + 30 * + 8 * + CAST( + - ( 21 ) AS SIGNED ) AS col1
----
5040

skipif mysql # not compatible
query I rowsort label-7341
SELECT DISTINCT - + 30 * + 8 * + CAST ( + - ( 21 ) AS INTEGER ) AS col1
----
5040

query II rowsort
SELECT + 29, 76 AS col1
----
29
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7343
SELECT + + CAST( - - 4 AS SIGNED ) * + 67 * - 79 / + + CAST( NULL AS SIGNED ) + NULLIF ( + AVG ( + CAST( NULL AS SIGNED ) ), + - 62 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7343
SELECT + + CAST ( - - 4 AS INTEGER ) * + 67 * - 79 / + + CAST ( NULL AS INTEGER ) + NULLIF ( + AVG ( + CAST ( NULL AS INTEGER ) ), + - 62 )
----
NULL

query I rowsort
SELECT ALL + 88 + - 33 AS col1
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7345
SELECT DISTINCT - 30 DIV SUM( 98 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7345
SELECT DISTINCT - 30 / SUM ( 98 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7346
SELECT MAX( 52 ) * + 52 * - 64
----
-173056

skipif mysql # not compatible
query I rowsort label-7346
SELECT MAX ( 52 ) * + 52 * - 64
----
-173056

query I rowsort
SELECT + 95 + - 9 AS col2
----
86

query I rowsort
SELECT DISTINCT - - ( + 1 ) - 95
----
-94

query I rowsort
SELECT ALL + 97 * + 41
----
3977

onlyif mysql # aggregate syntax: 
query I rowsort label-7350
SELECT ALL - 28 - + SUM( DISTINCT 78 ) + - COALESCE ( + 82, + 33 * - 90 * 20 + ( - 93 ) * + 29 ) * 58 AS col1
----
-4862

skipif mysql # not compatible
query I rowsort label-7350
SELECT ALL - 28 - + SUM ( DISTINCT 78 ) + - COALESCE ( + 82, + 33 * - 90 * 20 + ( - 93 ) * + 29 ) * 58 AS col1
----
-4862

onlyif mysql # aggregate syntax: 
query II rowsort label-7351
SELECT + 10 AS col1, + COUNT( * ) + - 4 * - 8
----
10
33

skipif mysql # not compatible
query II rowsort label-7351
SELECT + 10 AS col1, + COUNT ( * ) + - 4 * - 8
----
10
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7352
SELECT DISTINCT 95 * + COUNT( * ) col1
----
95

skipif mysql # not compatible
query I rowsort label-7352
SELECT DISTINCT 95 * + COUNT ( * ) col1
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-7353
SELECT 61 DIV + ( + 52 )
----
1

skipif mysql # not compatible
query I rowsort label-7353
SELECT 61 / + ( + 52 )
----
1

query I rowsort
SELECT 70 * + 7 * - + 83 AS col2
----
-40670

query I rowsort
SELECT DISTINCT - 77 * - - 72
----
-5544

query II rowsort
SELECT - 28 col1, + 8 AS col0
----
-28
8

query I rowsort
SELECT 60 * - - 75 * + 1 AS col0
----
4500

query I rowsort
SELECT 96 * 95
----
9120

query II rowsort
SELECT 43 col1, - 43
----
43
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7360
SELECT CASE + 98 WHEN + + 90 THEN + ( CASE 48 WHEN 52 THEN NULL WHEN - 36 THEN + - 31 - NULLIF ( - 22, - - 24 - + - 53 * + - 37 ) ELSE - - 25 END ) * - CAST( NULL AS SIGNED ) ELSE 29 END + + 88 AS col1
----
117

skipif mysql # not compatible
query I rowsort label-7360
SELECT CASE + 98 WHEN + + 90 THEN + ( CASE 48 WHEN 52 THEN NULL WHEN - 36 THEN + - 31 - NULLIF ( - 22, - - 24 - + - 53 * + - 37 ) ELSE - - 25 END ) * - CAST ( NULL AS INTEGER ) ELSE 29 END + + 88 AS col1
----
117

query III rowsort
SELECT - 39 col2, 3, + 1 AS col1
----
-39
3
1

query II rowsort
SELECT ALL 40, - 81 AS col0
----
40
-81

query II rowsort
SELECT ALL 95 AS col0, - 29
----
95
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-7364
SELECT - 96 AS col1, - COUNT( * ) AS col0
----
-96
-1

skipif mysql # not compatible
query II rowsort label-7364
SELECT - 96 AS col1, - COUNT ( * ) AS col0
----
-96
-1

query II rowsort
SELECT 69 + 5, 44 AS col1
----
74
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7366
SELECT COUNT( * ) + + + CASE + 93 WHEN + + 70 + + - 15 + - 92 * + + 39 THEN COALESCE ( 36, - + 33, + COUNT( * ), 27 ) + + 93 * + CAST( NULL AS SIGNED ) ELSE - 41 END AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-7366
SELECT COUNT ( * ) + + + CASE + 93 WHEN + + 70 + + - 15 + - 92 * + + 39 THEN COALESCE ( 36, - + 33, + COUNT ( * ), 27 ) + + 93 * + CAST ( NULL AS INTEGER ) ELSE - 41 END AS col1
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-7367
SELECT 21 + - + COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-7367
SELECT 21 + - + COUNT ( * )
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7368
SELECT - 2 * - CAST( - 57 AS SIGNED ) col1
----
-114

skipif mysql # not compatible
query I rowsort label-7368
SELECT - 2 * - CAST ( - 57 AS INTEGER ) col1
----
-114

onlyif mysql # aggregate syntax: 
query II rowsort label-7369
SELECT ALL 62 col1, + 92 * + ( - + 23 ) + 90 + - 98 + 18 * COUNT( * )
----
62
-2106

skipif mysql # not compatible
query II rowsort label-7369
SELECT ALL 62 col1, + 92 * + ( - + 23 ) + 90 + - 98 + 18 * COUNT ( * )
----
62
-2106

query II rowsort
SELECT ALL 23 col1, + 68 + - 0 AS col1
----
23
68

query II rowsort
SELECT - ( 33 ) * + + 9 * + 76 * - 17 * - 92 AS col2, 51 col1
----
-35302608
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7372
SELECT ALL - 93 * + CASE + 5 WHEN - - COUNT( * ) THEN - COUNT( * ) ELSE NULL END - ( + 87 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7372
SELECT ALL - 93 * + CASE + 5 WHEN - - COUNT ( * ) THEN - COUNT ( * ) ELSE NULL END - ( + 87 ) col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7373
SELECT CAST( - 59 AS SIGNED ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-7373
SELECT CAST ( - 59 AS INTEGER ) AS col2
----
-59

query II rowsort
SELECT DISTINCT - 17 col0, + 87 AS col2
----
-17
87

query I rowsort
SELECT ALL 1 * - + 83 col0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-7376
SELECT - COUNT( * ) * - + 7 col0
----
7

skipif mysql # not compatible
query I rowsort label-7376
SELECT - COUNT ( * ) * - + 7 col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7377
SELECT ALL + MAX( DISTINCT 44 )
----
44

skipif mysql # not compatible
query I rowsort label-7377
SELECT ALL + MAX ( DISTINCT 44 )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7378
SELECT + MAX( DISTINCT + 30 ) * - CASE 90 WHEN - ( COUNT( * ) ) THEN 56 WHEN 49 - + COUNT( * ) * + 28 THEN - + ( - COUNT( * ) ) ELSE NULL END / + 53 + + COALESCE ( - 85, - + COUNT( * ) ) - + 35 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7378
SELECT + MAX ( DISTINCT + 30 ) * - CASE 90 WHEN - ( COUNT ( * ) ) THEN 56 WHEN 49 - + COUNT ( * ) * + 28 THEN - + ( - COUNT ( * ) ) ELSE NULL END / + 53 + + COALESCE ( - 85, - + COUNT ( * ) ) - + 35 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7379
SELECT + 6 + 81 * - COUNT( * ) AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-7379
SELECT + 6 + 81 * - COUNT ( * ) AS col0
----
-75

query I rowsort
SELECT - ( - + 39 ) * + COALESCE ( - 32, 44 )
----
-1248

query I rowsort
SELECT + 12 * + 78 + - 84
----
852

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7382
SELECT DISTINCT + 18 DIV COUNT( DISTINCT - CAST( - 66 AS SIGNED ) ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-7382
SELECT DISTINCT + 18 / COUNT ( DISTINCT - CAST ( - 66 AS INTEGER ) ) AS col0
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-7383
SELECT ALL + 28 DIV - 28 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7383
SELECT ALL + 28 / - 28 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7384
SELECT - COUNT( * ) + + - MAX( - 1 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-7384
SELECT - COUNT ( * ) + + - MAX ( - 1 ) col1
----
0

query II rowsort
SELECT - 57 * - 82, 38 * + - 52 AS col0
----
4674
-1976

query I rowsort
SELECT - ( - NULLIF ( + 69, 22 ) ) * - 72 * 2
----
-9936

query II rowsort
SELECT ALL CASE - 61 WHEN - - 34 THEN NULL ELSE + ( + 87 ) END AS col1, 21 * 52
----
87
1092

query I rowsort
SELECT + 74 + - 95 AS col2
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7389
SELECT - 3 + + CAST( + - 12 AS SIGNED ) + - COUNT( * ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-7389
SELECT - 3 + + CAST ( + - 12 AS INTEGER ) + - COUNT ( * ) AS col2
----
-16

query I rowsort
SELECT - + COALESCE ( + 22, + 31 * - 26 ) AS col0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-7391
SELECT DISTINCT - 57 + + 58 + - 43 + + + NULLIF ( - - 64, MIN( - 19 ) / + 12 ) + - 68 + - ( 88 ) + - - 58 - - 76 * + + 32 + 2 + 33 * - - 99
----
5625

skipif mysql # not compatible
query I rowsort label-7391
SELECT DISTINCT - 57 + + 58 + - 43 + + + NULLIF ( - - 64, MIN ( - 19 ) / + 12 ) + - 68 + - ( 88 ) + - - 58 - - 76 * + + 32 + 2 + 33 * - - 99
----
5625

query I rowsort
SELECT ALL + 24 * - 50 AS col1
----
-1200

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7393
SELECT ALL + COUNT( * ) DIV - - 23 + + 36
----
36

skipif mysql # not compatible
query I rowsort label-7393
SELECT ALL + COUNT ( * ) / - - 23 + + 36
----
36

query I rowsort
SELECT + 23 - - 31
----
54

query II rowsort
SELECT ALL - 63 * - 69, - 44 + 55 AS col0
----
4347
11

query I rowsort
SELECT - 80 * - ( + 15 ) * + 92 * + - 26 - 58
----
-2870458

query I rowsort
SELECT + 89 + - 67 AS col0
----
22

query I rowsort
SELECT ALL - 61 - 34
----
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-7399
SELECT + - 81 DIV - 49 + 88
----
89

skipif mysql # not compatible
query I rowsort label-7399
SELECT + - 81 / - 49 + 88
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7400
SELECT + - COUNT( * ) DIV + 84 * + 26 col0
----
0

skipif mysql # not compatible
query I rowsort label-7400
SELECT + - COUNT ( * ) / + 84 * + 26 col0
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7401
SELECT ALL + 36 DIV - COALESCE ( CAST( NULL AS SIGNED ), + - NULLIF ( + 5, - 50 ) )
----
7

skipif mysql # not compatible
query I rowsort label-7401
SELECT ALL + 36 / - COALESCE ( CAST ( NULL AS INTEGER ), + - NULLIF ( + 5, - 50 ) )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7402
SELECT + + ( + + ( 39 ) ) * COUNT( * ) * - 20
----
-780

skipif mysql # not compatible
query I rowsort label-7402
SELECT + + ( + + ( 39 ) ) * COUNT ( * ) * - 20
----
-780

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7403
SELECT + CASE 39 WHEN 67 THEN + - 41 + + - NULLIF ( - 46, + + 54 - - SUM( DISTINCT + 35 ) ) WHEN CAST( NULL AS SIGNED ) + ( + - 14 ) + + 43 * 33 THEN + - 66 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7403
SELECT + CASE 39 WHEN 67 THEN + - 41 + + - NULLIF ( - 46, + + 54 - - SUM ( DISTINCT + 35 ) ) WHEN CAST ( NULL AS INTEGER ) + ( + - 14 ) + + 43 * 33 THEN + - 66 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7404
SELECT CAST( NULL AS SIGNED ) / CASE + COUNT( * ) WHEN - - 43 THEN - + 17 * + SUM( + 38 ) WHEN + + 33 THEN + 60 * + + 82 * 5 / - COUNT( 35 ) + + 76 END + - - MIN( - 28 ) - 40
----
NULL

skipif mysql # not compatible
query I rowsort label-7404
SELECT CAST ( NULL AS INTEGER ) / CASE + COUNT ( * ) WHEN - - 43 THEN - + 17 * + SUM ( + 38 ) WHEN + + 33 THEN + 60 * + + 82 * 5 / - COUNT ( 35 ) + + 76 END + - - MIN ( - 28 ) - 40
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7405
SELECT ALL 33 * + COUNT( * ) + + + NULLIF ( + 32, + - ( - ( SUM( + + 18 ) ) ) * - 23 )
----
65

skipif mysql # not compatible
query I rowsort label-7405
SELECT ALL 33 * + COUNT ( * ) + + + NULLIF ( + 32, + - ( - ( SUM ( + + 18 ) ) ) * - 23 )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7406
SELECT DISTINCT 8 * + COUNT( - 10 ) * 63 + - COUNT( * )
----
503

skipif mysql # not compatible
query I rowsort label-7406
SELECT DISTINCT 8 * + COUNT ( - 10 ) * 63 + - COUNT ( * )
----
503

query II rowsort
SELECT ALL + 50 AS col0, + 32
----
50
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7408
SELECT DISTINCT ( + 90 ) * - + ( + - 49 ) * 20 + - ( - 42 ) * + 72 + - CAST( 78 AS SIGNED ) * - + 42 * + + 67 AS col2
----
310716

skipif mysql # not compatible
query I rowsort label-7408
SELECT DISTINCT ( + 90 ) * - + ( + - 49 ) * 20 + - ( - 42 ) * + 72 + - CAST ( 78 AS INTEGER ) * - + 42 * + + 67 AS col2
----
310716

query II rowsort
SELECT + 83 AS col2, - 9
----
83
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-7410
SELECT - 98 * 34 * + COUNT( * ), + 29 AS col2
----
-3332
29

skipif mysql # not compatible
query II rowsort label-7410
SELECT - 98 * 34 * + COUNT ( * ), + 29 AS col2
----
-3332
29

query I rowsort
SELECT ALL - 0 * 46 + - + 19 AS col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-7412
SELECT COALESCE ( - 40, + COUNT( * ) * 81, ( - - 30 ) * + 59 + 92 )
----
-40

skipif mysql # not compatible
query I rowsort label-7412
SELECT COALESCE ( - 40, + COUNT ( * ) * 81, ( - - 30 ) * + 59 + 92 )
----
-40

query I rowsort
SELECT CASE + CASE + 13 WHEN 82 + 62 THEN + 66 WHEN - + 15 THEN NULL WHEN + 58 THEN NULL ELSE NULL END WHEN + 3 THEN + 79 * + 35 + + NULLIF ( - 13, - + 30 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7414
SELECT - MAX( DISTINCT 11 ) col1
----
-11

skipif mysql # not compatible
query I rowsort label-7414
SELECT - MAX ( DISTINCT 11 ) col1
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7415
SELECT ALL + 1 * COUNT( * ) * + - 74 + + - 55 + - COUNT( DISTINCT CAST( NULL AS SIGNED ) ) - 65 + 84 * - - ( + 12 ) * - 14 + + 19
----
-14287

skipif mysql # not compatible
query I rowsort label-7415
SELECT ALL + 1 * COUNT ( * ) * + - 74 + + - 55 + - COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) - 65 + 84 * - - ( + 12 ) * - 14 + + 19
----
-14287

onlyif mysql # aggregate syntax: 
query I rowsort label-7416
SELECT - 63 - MIN( 24 ) col2
----
-87

skipif mysql # not compatible
query I rowsort label-7416
SELECT - 63 - MIN ( 24 ) col2
----
-87

query I rowsort
SELECT ALL + + 52 * - ( + - 61 )
----
3172

onlyif mysql # aggregate syntax: 
query II rowsort label-7418
SELECT ALL - 67 AS col2, - COUNT( * ) + + + ( ( + COUNT( ALL ( + 84 ) ) ) )
----
-67
0

skipif mysql # not compatible
query II rowsort label-7418
SELECT ALL - 67 AS col2, - COUNT ( * ) + + + ( ( + COUNT ( ALL ( + 84 ) ) ) )
----
-67
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7419
SELECT - - ( - MAX( - - 69 ) ) * + - ( - 86 ) AS col0
----
-5934

skipif mysql # not compatible
query I rowsort label-7419
SELECT - - ( - MAX ( - - 69 ) ) * + - ( - 86 ) AS col0
----
-5934

query I rowsort
SELECT DISTINCT + - ( 65 ) * - + 53
----
3445

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7421
SELECT - + SUM( ALL - - 90 ) + CAST( - 73 AS SIGNED ) + - COUNT( * ) - + - 74 AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-7421
SELECT - + SUM ( ALL - - 90 ) + CAST ( - 73 AS INTEGER ) + - COUNT ( * ) - + - 74 AS col2
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-7422
SELECT - 20 + 73 - COUNT( * ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-7422
SELECT - 20 + 73 - COUNT ( * ) AS col2
----
52

query I rowsort
SELECT - + 49 col2
----
-49

query I rowsort
SELECT ALL ( + 35 ) AS col2
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-7425
SELECT - COUNT( * ) AS col2, - 27
----
-1
-27

skipif mysql # not compatible
query II rowsort label-7425
SELECT - COUNT ( * ) AS col2, - 27
----
-1
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-7426
SELECT 17, - 33 * + COUNT( * ) * + 93 * - - 17 AS col2
----
17
-52173

skipif mysql # not compatible
query II rowsort label-7426
SELECT 17, - 33 * + COUNT ( * ) * + 93 * - - 17 AS col2
----
17
-52173

onlyif mysql # aggregate syntax: 
query I rowsort label-7427
SELECT - COUNT( ALL 32 ) * - 15 * + + 36
----
540

skipif mysql # not compatible
query I rowsort label-7427
SELECT - COUNT ( ALL 32 ) * - 15 * + + 36
----
540

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7428
SELECT - NULLIF ( - 33, + 45 * + CAST( - - COUNT( * ) AS SIGNED ) + NULLIF ( + + AVG ( DISTINCT 19 ), + 69 + + 64 * + + 99 - ( COUNT( * ) ) / 71 * - - 72 ) )
----
33

skipif mysql # not compatible
query I rowsort label-7428
SELECT - NULLIF ( - 33, + 45 * + CAST ( - - COUNT ( * ) AS INTEGER ) + NULLIF ( + + AVG ( DISTINCT 19 ), + 69 + + 64 * + + 99 - ( COUNT ( * ) ) / 71 * - - 72 ) )
----
33

query II rowsort
SELECT + - 44 AS col1, - 25 - - ( + - 37 ) AS col2
----
-44
-62

query I rowsort
SELECT ALL 71 + + 36 AS col1
----
107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7431
SELECT CASE 6 WHEN - + 41 * + 46 + - CAST( NULL AS SIGNED ) - + + SUM( + 43 ) * + + 30 * + + 99 THEN + + 8 + - 54 + 18 WHEN COALESCE ( - COUNT( - 80 ), + + 97 + + + CAST( NULL AS SIGNED ), + + 84 * - + 8 ) * 50 * - - 49 * - 61 / + - ( - 26 ) * 54 THEN NULL ELSE NULL END / + 52 - + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-7431
SELECT CASE 6 WHEN - + 41 * + 46 + - CAST ( NULL AS INTEGER ) - + + SUM ( + 43 ) * + + 30 * + + 99 THEN + + 8 + - 54 + 18 WHEN COALESCE ( - COUNT ( - 80 ), + + 97 + + + CAST ( NULL AS INTEGER ), + + 84 * - + 8 ) * 50 * - - 49 * - 61 / + - ( - 26 ) * 54 THEN NULL ELSE NULL END / + 52 - + 27
----
NULL

query I rowsort
SELECT ALL - 27 * - ( - 47 ) AS col2
----
-1269

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7433
SELECT ALL - ( + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7433
SELECT ALL - ( + - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7434
SELECT DISTINCT - 18 + + 93 + - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7434
SELECT DISTINCT - 18 + + 93 + - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7435
SELECT ALL MAX( + 58 ) + 79 + + ( - CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7435
SELECT ALL MAX ( + 58 ) + 79 + + ( - CAST ( NULL AS INTEGER ) ) col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7436
SELECT ALL 23 DIV + 41 * + 18 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7436
SELECT ALL 23 / + 41 * + 18 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7437
SELECT 89 DIV 68
----
1

skipif mysql # not compatible
query I rowsort label-7437
SELECT 89 / 68
----
1

query I rowsort
SELECT ALL 35 + 94
----
129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7439
SELECT 95 * + CAST( - COUNT( * ) AS SIGNED )
----
-95

skipif mysql # not compatible
query I rowsort label-7439
SELECT 95 * + CAST ( - COUNT ( * ) AS INTEGER )
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7440
SELECT 79 + - CASE 58 WHEN + CAST( NULL AS SIGNED ) THEN NULL WHEN + 0 / 35 THEN + + 9 ELSE NULL END * + MAX( ALL - - 61 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7440
SELECT 79 + - CASE 58 WHEN + CAST ( NULL AS INTEGER ) THEN NULL WHEN + 0 / 35 THEN + + 9 ELSE NULL END * + MAX ( ALL - - 61 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7441
SELECT COUNT( * ) DIV - 82
----
0

skipif mysql # not compatible
query I rowsort label-7441
SELECT COUNT ( * ) / - 82
----
0

query I rowsort
SELECT + CASE + 82 WHEN 75 THEN - NULLIF ( - - 37, + + 26 ) WHEN + 38 THEN + 13 END * - 93 + - 64 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7443
SELECT 1 * + + COUNT( ALL - 1 ) + - 35 DIV - + COUNT( * ) + 40 AS col2
----
76

skipif mysql # not compatible
query I rowsort label-7443
SELECT 1 * + + COUNT ( ALL - 1 ) + - 35 / - + COUNT ( * ) + 40 AS col2
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7444
SELECT 14 + - - 58 + + + CAST( + 27 AS SIGNED ) DIV + 35 + - MIN( ALL + 70 )
----
2

skipif mysql # not compatible
query I rowsort label-7444
SELECT 14 + - - 58 + + + CAST ( + 27 AS INTEGER ) / + 35 + - MIN ( ALL + 70 )
----
2

query I rowsort
SELECT NULLIF ( - - 74, - 81 * + 23 ) + 39 + + - 82 AS col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-7446
SELECT - NULLIF ( + 84, - ( + 24 ) + AVG ( + 45 ) + + + COUNT( * ) / - 16 + + MIN( DISTINCT + + 20 ) / COALESCE ( - 16, - + SUM( DISTINCT + 72 ) * 66 ) * - MAX( ALL 26 ) + 67 ) AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-7446
SELECT - NULLIF ( + 84, - ( + 24 ) + AVG ( + 45 ) + + + COUNT ( * ) / - 16 + + MIN ( DISTINCT + + 20 ) / COALESCE ( - 16, - + SUM ( DISTINCT + 72 ) * 66 ) * - MAX ( ALL 26 ) + 67 ) AS col1
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7447
SELECT DISTINCT - 54 - - + COALESCE ( - 17, - ( - - CAST( 82 AS SIGNED ) ) + - + CASE + CAST( + 72 AS DECIMAL ) WHEN + 29 + 97 THEN + ( + 75 ) + - 75 + - 26 WHEN 21 THEN NULL ELSE NULL END - SUM( ALL - 16 ) ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-7447
SELECT DISTINCT - 54 - - + COALESCE ( - 17, - ( - - CAST ( 82 AS INTEGER ) ) + - + CASE + CAST ( + 72 AS REAL ) WHEN + 29 + 97 THEN + ( + 75 ) + - 75 + - 26 WHEN 21 THEN NULL ELSE NULL END - SUM ( ALL - 16 ) ) AS col0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-7448
SELECT MAX( ALL + 67 ) * 80 * + - COUNT( * ) AS col1
----
-5360

skipif mysql # not compatible
query I rowsort label-7448
SELECT MAX ( ALL + 67 ) * 80 * + - COUNT ( * ) AS col1
----
-5360

query II rowsort
SELECT - ( - 84 ), - 6 + + 98 AS col0
----
84
92

query I rowsort
SELECT 30 + + 22
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7451
SELECT ALL - - 45 * COUNT( * ) * - + ( + + 31 ) * + 65 * + - 90 + - 44
----
8160706

skipif mysql # not compatible
query I rowsort label-7451
SELECT ALL - - 45 * COUNT ( * ) * - + ( + + 31 ) * + 65 * + - 90 + - 44
----
8160706

onlyif mysql # aggregate syntax: 
query I rowsort label-7452
SELECT - 98 * - 85 + + + COUNT( ALL - 36 )
----
8331

skipif mysql # not compatible
query I rowsort label-7452
SELECT - 98 * - 85 + + + COUNT ( ALL - 36 )
----
8331

onlyif mysql # DIV for integer division: 
query I rowsort label-7453
SELECT ALL 68 DIV - 70 + + + 66
----
66

skipif mysql # not compatible
query I rowsort label-7453
SELECT ALL 68 / - 70 + + + 66
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7454
SELECT DISTINCT - + COUNT( * ) * 74 + COUNT( COALESCE ( - 42, - 13 * ( + + 54 ) - - 88 + 33 ) ) * CASE - 35 WHEN 92 THEN NULL ELSE + 51 - 54 - COALESCE ( - 51, 56 ) * - SUM( + 11 ) END + + 73
----
-565

skipif mysql # not compatible
query I rowsort label-7454
SELECT DISTINCT - + COUNT ( * ) * 74 + COUNT ( COALESCE ( - 42, - 13 * ( + + 54 ) - - 88 + 33 ) ) * CASE - 35 WHEN 92 THEN NULL ELSE + 51 - 54 - COALESCE ( - 51, 56 ) * - SUM ( + 11 ) END + + 73
----
-565

onlyif mysql # aggregate syntax: 
query I rowsort label-7455
SELECT COUNT( * ) + + 67 * 82
----
5495

skipif mysql # not compatible
query I rowsort label-7455
SELECT COUNT ( * ) + + 67 * 82
----
5495

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7456
SELECT + ( + 56 ) - 80 + CAST( - 48 AS SIGNED )
----
-72

skipif mysql # not compatible
query I rowsort label-7456
SELECT + ( + 56 ) - 80 + CAST ( - 48 AS INTEGER )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-7457
SELECT ALL - 20 * + COUNT( * ) - + 91 AS col1
----
-111

skipif mysql # not compatible
query I rowsort label-7457
SELECT ALL - 20 * + COUNT ( * ) - + 91 AS col1
----
-111

query I rowsort
SELECT 10 + 49 AS col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7459
SELECT COALESCE ( 21, - - MAX( + + 52 ) ) * - 2
----
-42

skipif mysql # not compatible
query I rowsort label-7459
SELECT COALESCE ( 21, - - MAX ( + + 52 ) ) * - 2
----
-42

query I rowsort
SELECT + NULLIF ( - 70, + - 94 / - ( - - 43 ) - + 52 ) * + + 7 - - 59
----
-431

query II rowsort
SELECT + 87 + 96 AS col1, 28 - + 19 + - + 29
----
183
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7462
SELECT DISTINCT 57 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7462
SELECT DISTINCT 57 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7463
SELECT 70 + ( MIN( DISTINCT 31 ) ) + - + ( + 7 ) * + 12 AS col1
----
17

skipif mysql # not compatible
query I rowsort label-7463
SELECT 70 + ( MIN ( DISTINCT 31 ) ) + - + ( + 7 ) * + 12 AS col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-7464
SELECT DISTINCT MIN( DISTINCT 87 )
----
87

skipif mysql # not compatible
query I rowsort label-7464
SELECT DISTINCT MIN ( DISTINCT 87 )
----
87

query I rowsort
SELECT DISTINCT + 86 + + 48 AS col2
----
134

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7466
SELECT DISTINCT 82 + - CAST( 11 AS SIGNED ) * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7466
SELECT DISTINCT 82 + - CAST ( 11 AS INTEGER ) * - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7467
SELECT DISTINCT - 14 + + 61 DIV - - 63 + 26
----
12

skipif mysql # not compatible
query I rowsort label-7467
SELECT DISTINCT - 14 + + 61 / - - 63 + 26
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7468
SELECT 69 * - ( COUNT( * ) )
----
-69

skipif mysql # not compatible
query I rowsort label-7468
SELECT 69 * - ( COUNT ( * ) )
----
-69

query I rowsort
SELECT 5 + + 30 AS col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7470
SELECT ALL - 96 * + + SUM( DISTINCT - 27 )
----
2592

skipif mysql # not compatible
query I rowsort label-7470
SELECT ALL - 96 * + + SUM ( DISTINCT - 27 )
----
2592

onlyif mysql # aggregate syntax: 
query II rowsort label-7471
SELECT ALL - ( SUM( + 12 ) ) AS col0, COUNT( - 65 )
----
-12
1

skipif mysql # not compatible
query II rowsort label-7471
SELECT ALL - ( SUM ( + 12 ) ) AS col0, COUNT ( - 65 )
----
-12
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7472
SELECT + 79 AS col1, 97 * + - 27 - 26 + - CAST( + + 32 AS SIGNED ) * - + 56 * + COUNT( ALL + 46 )
----
79
-853

skipif mysql # not compatible
query II rowsort label-7472
SELECT + 79 AS col1, 97 * + - 27 - 26 + - CAST ( + + 32 AS INTEGER ) * - + 56 * + COUNT ( ALL + 46 )
----
79
-853

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7473
SELECT - ( - + COUNT( * ) ) * - CAST( NULL AS DECIMAL ) * + + ( - ( 2 ) ) + - 84 + - 29 + - - 83 / COUNT( * ) / 12 * + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-7473
SELECT - ( - + COUNT ( * ) ) * - CAST ( NULL AS REAL ) * + + ( - ( 2 ) ) + - 84 + - 29 + - - 83 / COUNT ( * ) / 12 * + 72
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7474
SELECT DISTINCT - CAST( - 85 AS SIGNED ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-7474
SELECT DISTINCT - CAST ( - 85 AS INTEGER ) AS col0
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7475
SELECT ALL 81 + 36 + + + 53 DIV + 46 - + COUNT( * ) * - COUNT( * )
----
119

skipif mysql # not compatible
query I rowsort label-7475
SELECT ALL 81 + 36 + + + 53 / + 46 - + COUNT ( * ) * - COUNT ( * )
----
119

query I rowsort
SELECT 95 * - 84
----
-7980

query I rowsort
SELECT ALL - ( + + 7 )
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-7478
SELECT DISTINCT COUNT( * ) - - 18 + + 4, 69 AS col1
----
23
69

skipif mysql # not compatible
query II rowsort label-7478
SELECT DISTINCT COUNT ( * ) - - 18 + + 4, 69 AS col1
----
23
69

query I rowsort
SELECT DISTINCT - 79 * + 71
----
-5609

onlyif mysql # aggregate syntax: 
query I rowsort label-7480
SELECT ALL - 70 - - COUNT( * ) - 20
----
-89

skipif mysql # not compatible
query I rowsort label-7480
SELECT ALL - 70 - - COUNT ( * ) - 20
----
-89

query I rowsort
SELECT 20 * + + 39
----
780

onlyif mysql # DIV for integer division: 
query I rowsort label-7482
SELECT DISTINCT CASE 30 WHEN 65 + + 73 THEN + 76 WHEN + 73 THEN - 33 * + 83 ELSE - - 98 END DIV 40 * - 12 AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-7482
SELECT DISTINCT CASE 30 WHEN 65 + + 73 THEN + 76 WHEN + 73 THEN - 33 * + 83 ELSE - - 98 END / 40 * - 12 AS col1
----
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-7483
SELECT ALL - 65, SUM( DISTINCT 5 ) * SUM( 6 ) AS col0
----
-65
30

skipif mysql # not compatible
query II rowsort label-7483
SELECT ALL - 65, SUM ( DISTINCT 5 ) * SUM ( 6 ) AS col0
----
-65
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7484
SELECT COUNT( * ) DIV - 55
----
0

skipif mysql # not compatible
query I rowsort label-7484
SELECT COUNT ( * ) / - 55
----
0

query I rowsort
SELECT + 19 * + ( + 3 ) - + 18 AS col0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7486
SELECT + - COUNT( ALL + 67 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7486
SELECT + - COUNT ( ALL + 67 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7487
SELECT ( COUNT( * ) ) * + + 68 col0
----
68

skipif mysql # not compatible
query I rowsort label-7487
SELECT ( COUNT ( * ) ) * + + 68 col0
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-7488
SELECT + 46 - - - ( + + 10 ) DIV 69 AS col0
----
46

skipif mysql # not compatible
query I rowsort label-7488
SELECT + 46 - - - ( + + 10 ) / 69 AS col0
----
46

query I rowsort
SELECT DISTINCT ( + + 90 )
----
90

query I rowsort
SELECT ALL 38 * + 92 * - + 20 + - 96
----
-70016

query I rowsort
SELECT + 26 + - 18
----
8

query I rowsort
SELECT + - 13 + - + ( 31 ) + - 32
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-7493
SELECT DISTINCT 84 + + - COUNT( + - 35 ) + 20 * + 55 - ( - 6 ) - 4 AS col2
----
1185

skipif mysql # not compatible
query I rowsort label-7493
SELECT DISTINCT 84 + + - COUNT ( + - 35 ) + 20 * + 55 - ( - 6 ) - 4 AS col2
----
1185

onlyif mysql # aggregate syntax: 
query I rowsort label-7494
SELECT - - 80 - - COUNT( * )
----
81

skipif mysql # not compatible
query I rowsort label-7494
SELECT - - 80 - - COUNT ( * )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7495
SELECT - + SUM( ALL 43 )
----
-43

skipif mysql # not compatible
query I rowsort label-7495
SELECT - + SUM ( ALL 43 )
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-7496
SELECT - + 63 DIV 56 * 75 - ( - 32 ) * - 25
----
-875

skipif mysql # not compatible
query I rowsort label-7496
SELECT - + 63 / 56 * 75 - ( - 32 ) * - 25
----
-875

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7497
SELECT ALL COUNT( * ) + + 64 + - + 1 + - 37 * - NULLIF ( + 67, + 5 * NULLIF ( - + 98, + + 7 ) + + - 0 ) * - - 76 - + 51 - - 1 * - 33 DIV 60
----
188417

skipif mysql # not compatible
query I rowsort label-7497
SELECT ALL COUNT ( * ) + + 64 + - + 1 + - 37 * - NULLIF ( + 67, + 5 * NULLIF ( - + 98, + + 7 ) + + - 0 ) * - - 76 - + 51 - - 1 * - 33 / 60
----
188417

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7498
SELECT DISTINCT NULLIF ( + ( 84 ), - AVG ( DISTINCT - + ( + + 87 ) ) ) + - CAST( - 38 AS SIGNED ) + + 29 - 88 + 17 * + - 98 - - - 32 * + 26 * + COUNT( * )
----
-2435

skipif mysql # not compatible
query I rowsort label-7498
SELECT DISTINCT NULLIF ( + ( 84 ), - AVG ( DISTINCT - + ( + + 87 ) ) ) + - CAST ( - 38 AS INTEGER ) + + 29 - 88 + 17 * + - 98 - - - 32 * + 26 * + COUNT ( * )
----
-2435

onlyif mysql # aggregate syntax: 
query I rowsort label-7499
SELECT + - ( + 37 ) + - 73 + + 73 - MAX( - + 91 ) col2
----
54

skipif mysql # not compatible
query I rowsort label-7499
SELECT + - ( + 37 ) + - 73 + + 73 - MAX ( - + 91 ) col2
----
54

query I rowsort
SELECT + CASE + + 98 WHEN + 30 THEN 66 * ( + 49 ) * + - 63 * - 90 WHEN + 10 THEN NULL WHEN + - 98 + 89 THEN + 41 END / + 59 * + 31 * - 37
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7501
SELECT ALL 59 + - + 82 - + CAST( NULL AS SIGNED ) * + + COUNT( * ) * - 62 / COALESCE ( ( + 95 ), + - 84 + + 81 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7501
SELECT ALL 59 + - + 82 - + CAST ( NULL AS INTEGER ) * + + COUNT ( * ) * - 62 / COALESCE ( ( + 95 ), + - 84 + + 81 )
----
NULL

query I rowsort
SELECT ALL - 0 + 49
----
49

query II rowsort
SELECT - 14 AS col2, 25
----
-14
25

query II rowsort
SELECT - 66 AS col1, - 24 * - 38 AS col0
----
-66
912

query I rowsort
SELECT ALL 12 * + 1 * - 43
----
-516

onlyif mysql # aggregate syntax: 
query I rowsort label-7506
SELECT + NULLIF ( 66, MAX( DISTINCT + 9 ) ) + 80 - 58 AS col2
----
88

skipif mysql # not compatible
query I rowsort label-7506
SELECT + NULLIF ( 66, MAX ( DISTINCT + 9 ) ) + 80 - 58 AS col2
----
88

onlyif mysql # DIV for integer division: 
query II rowsort label-7507
SELECT - 23 DIV 26 AS col2, - 22 + + 69 * - 11 + - + 73 AS col2
----
0
-854

skipif mysql # not compatible
query II rowsort label-7507
SELECT - 23 / 26 AS col2, - 22 + + 69 * - 11 + - + 73 AS col2
----
0
-854

onlyif mysql # aggregate syntax: 
query I rowsort label-7508
SELECT ALL - COUNT( * ) * - 27 * - + 5
----
-135

skipif mysql # not compatible
query I rowsort label-7508
SELECT ALL - COUNT ( * ) * - 27 * - + 5
----
-135

query I rowsort
SELECT DISTINCT + NULLIF ( 82, + 54 ) AS col1
----
82

query I rowsort
SELECT ( 4 ) AS col2
----
4

query I rowsort
SELECT - ( + - NULLIF ( - 28, + 22 ) ) * - 90
----
2520

onlyif mysql # aggregate syntax: 
query I rowsort label-7512
SELECT + 20 * - 8 - - - ( + MAX( ALL - - 77 ) )
----
-237

skipif mysql # not compatible
query I rowsort label-7512
SELECT + 20 * - 8 - - - ( + MAX ( ALL - - 77 ) )
----
-237

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7513
SELECT ALL + COUNT( * ) AS col1, - CASE - + NULLIF ( - - CAST( NULL AS SIGNED ), - - 30 ) WHEN 60 + - COUNT( DISTINCT 12 ) THEN - + CASE SUM( 40 ) WHEN + - 33 * 76 * + CASE - - CAST( + 5 AS SIGNED ) WHEN - 18 - - 60 THEN 30 END THEN + 6 END * - - 39 WHEN 30 * - - CAST( - + 81 AS SIGNED ) * 50 THEN NULL END - 16 AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-7513
SELECT ALL + COUNT ( * ) AS col1, - CASE - + NULLIF ( - - CAST ( NULL AS INTEGER ), - - 30 ) WHEN 60 + - COUNT ( DISTINCT 12 ) THEN - + CASE SUM ( 40 ) WHEN + - 33 * 76 * + CASE - - CAST ( + 5 AS INTEGER ) WHEN - 18 - - 60 THEN 30 END THEN + 6 END * - - 39 WHEN 30 * - - CAST ( - + 81 AS INTEGER ) * 50 THEN NULL END - 16 AS col0
----
1
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-7514
SELECT DISTINCT + COUNT( * ), + 54 * + 79 + + 86 AS col0, 23 col2
----
1
4352
23

skipif mysql # not compatible
query III rowsort label-7514
SELECT DISTINCT + COUNT ( * ), + 54 * + 79 + + 86 AS col0, 23 col2
----
1
4352
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7515
SELECT ALL + SUM( DISTINCT 54 ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-7515
SELECT ALL + SUM ( DISTINCT 54 ) AS col2
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7516
SELECT ALL + CAST( - - 32 AS SIGNED ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-7516
SELECT ALL + CAST ( - - 32 AS INTEGER ) AS col2
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7517
SELECT COALESCE ( - 77, - 7, + - 45 ) AS col0, + CAST( + + CASE 30 WHEN - - 40 THEN + 38 + COUNT( * ) WHEN - 76 + + 42 THEN + 66 + SUM( + 20 ) END AS SIGNED ) / + 8 AS col2
----
-77
NULL

skipif mysql # not compatible
query II rowsort label-7517
SELECT COALESCE ( - 77, - 7, + - 45 ) AS col0, + CAST ( + + CASE 30 WHEN - - 40 THEN + 38 + COUNT ( * ) WHEN - 76 + + 42 THEN + 66 + SUM ( + 20 ) END AS INTEGER ) / + 8 AS col2
----
-77
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7518
SELECT - 33 * + 67 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7518
SELECT - 33 * + 67 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7519
SELECT ALL + MAX( DISTINCT 73 )
----
73

skipif mysql # not compatible
query I rowsort label-7519
SELECT ALL + MAX ( DISTINCT 73 )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7520
SELECT - 4 + + - 52 * - - COUNT( * ) AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-7520
SELECT - 4 + + - 52 * - - COUNT ( * ) AS col0
----
-56

query I rowsort
SELECT 39 * + + 20 - - ( - 10 )
----
770

query I rowsort
SELECT NULLIF ( + 48, 38 )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7523
SELECT - 75 * - COUNT( * ) * + 85 * - 84 + + COUNT( * )
----
-535499

skipif mysql # not compatible
query I rowsort label-7523
SELECT - 75 * - COUNT ( * ) * + 85 * - 84 + + COUNT ( * )
----
-535499

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7524
SELECT + 86 - + + 52 DIV ( + COUNT( * ) )
----
34

skipif mysql # not compatible
query I rowsort label-7524
SELECT + 86 - + + 52 / ( + COUNT ( * ) )
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-7525
SELECT - 17 DIV - - ( - 1 ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-7525
SELECT - 17 / - - ( - 1 ) AS col1
----
17

query I rowsort
SELECT DISTINCT + 36 * - 66
----
-2376

query I rowsort
SELECT - 44 + - 85 + - 32 + - 47
----
-208

onlyif mysql # aggregate syntax: 
query I rowsort label-7528
SELECT - + COUNT( * ) * - 9 * + 59
----
531

skipif mysql # not compatible
query I rowsort label-7528
SELECT - + COUNT ( * ) * - 9 * + 59
----
531

query I rowsort
SELECT DISTINCT + 86 * - 66 + - - 6 AS col2
----
-5670

onlyif mysql # aggregate syntax: 
query II rowsort label-7530
SELECT ALL + - COUNT( * ), - 80 AS col1
----
-1
-80

skipif mysql # not compatible
query II rowsort label-7530
SELECT ALL + - COUNT ( * ), - 80 AS col1
----
-1
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-7531
SELECT DISTINCT + 86 * + NULLIF ( + 30, 87 / - 80 / + COUNT( * ) ) AS col1
----
2580

skipif mysql # not compatible
query I rowsort label-7531
SELECT DISTINCT + 86 * + NULLIF ( + 30, 87 / - 80 / + COUNT ( * ) ) AS col1
----
2580

query I rowsort
SELECT DISTINCT 41 * + 25 + + + 72 + + + 78
----
1175

onlyif mysql # DIV for integer division: 
query II rowsort label-7533
SELECT ALL 83, - 92 DIV 19 AS col2
----
83
-4

skipif mysql # not compatible
query II rowsort label-7533
SELECT ALL 83, - 92 / 19 AS col2
----
83
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7534
SELECT - - 14 * 8 + CASE - 9 WHEN + 64 * + 84 - - COUNT( * ) THEN NULL ELSE + 87 END
----
199

skipif mysql # not compatible
query I rowsort label-7534
SELECT - - 14 * 8 + CASE - 9 WHEN + 64 * + 84 - - COUNT ( * ) THEN NULL ELSE + 87 END
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-7535
SELECT 84 * - - COUNT( * ) + - + 73 + + 28 + - 50 AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-7535
SELECT 84 * - - COUNT ( * ) + - + 73 + + 28 + - 50 AS col0
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-7536
SELECT DISTINCT ( + + 66 ) + - 35 - - 48 DIV + 7
----
37

skipif mysql # not compatible
query I rowsort label-7536
SELECT DISTINCT ( + + 66 ) + - 35 - - 48 / + 7
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7537
SELECT + 94, + MIN( 52 ) DIV + 71 AS col1
----
94
0

skipif mysql # not compatible
query II rowsort label-7537
SELECT + 94, + MIN ( 52 ) / + 71 AS col1
----
94
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7538
SELECT + 6 AS col2, COUNT( * ) DIV + - ( - 19 )
----
6
0

skipif mysql # not compatible
query II rowsort label-7538
SELECT + 6 AS col2, COUNT ( * ) / + - ( - 19 )
----
6
0

query I rowsort
SELECT ALL 90 + + 71 AS col2
----
161

onlyif mysql # aggregate syntax: 
query I rowsort label-7540
SELECT DISTINCT + + 19 + - COUNT( * ) * - 71
----
90

skipif mysql # not compatible
query I rowsort label-7540
SELECT DISTINCT + + 19 + - COUNT ( * ) * - 71
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7541
SELECT DISTINCT - + 57 + + CAST( NULL AS SIGNED ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7541
SELECT DISTINCT - + 57 + + CAST ( NULL AS INTEGER ) * + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 57 + + 6
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7543
SELECT + 18 + + - 96 + + MAX( + - 95 )
----
-173

skipif mysql # not compatible
query I rowsort label-7543
SELECT + 18 + + - 96 + + MAX ( + - 95 )
----
-173

query I rowsort
SELECT + 23 + + 5
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-7545
SELECT + 0 + 96 AS col2, MAX( DISTINCT + + 88 ) * - 19 + + + 75 AS col2
----
96
-1597

skipif mysql # not compatible
query II rowsort label-7545
SELECT + 0 + 96 AS col2, MAX ( DISTINCT + + 88 ) * - 19 + + + 75 AS col2
----
96
-1597

onlyif mysql # aggregate syntax: 
query II rowsort label-7546
SELECT ALL COUNT( * ) - - 58 AS col2, - 73 + 75 - + - 14 AS col1
----
59
16

skipif mysql # not compatible
query II rowsort label-7546
SELECT ALL COUNT ( * ) - - 58 AS col2, - 73 + 75 - + - 14 AS col1
----
59
16

onlyif mysql # aggregate syntax: 
query I rowsort label-7547
SELECT + 88 + - 6 - + - COUNT( * ) * + 86 * 26 AS col1
----
2318

skipif mysql # not compatible
query I rowsort label-7547
SELECT + 88 + - 6 - + - COUNT ( * ) * + 86 * 26 AS col1
----
2318

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7548
SELECT + CAST( NULL AS SIGNED ) * + AVG ( ALL - 45 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7548
SELECT + CAST ( NULL AS INTEGER ) * + AVG ( ALL - 45 ) AS col2
----
NULL

query I rowsort
SELECT + 64 + - 63 col2
----
1

query I rowsort
SELECT ALL COALESCE ( 97, + 14 ) AS col1
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-7551
SELECT 42 DIV + - 16 + + + ( - 43 ) col0
----
-45

skipif mysql # not compatible
query I rowsort label-7551
SELECT 42 / + - 16 + + + ( - 43 ) col0
----
-45

query II rowsort
SELECT + 16 * + 97 AS col2, 15
----
1552
15

query I rowsort
SELECT - 34 + - 70
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-7554
SELECT DISTINCT - 61 * + + 22 * - COUNT( * ) * - 63
----
-84546

skipif mysql # not compatible
query I rowsort label-7554
SELECT DISTINCT - 61 * + + 22 * - COUNT ( * ) * - 63
----
-84546

onlyif mysql # DIV for integer division: 
query I rowsort label-7555
SELECT - 3 DIV 48 * - 23 * - ( - ( ( + 91 ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-7555
SELECT - 3 / 48 * - 23 * - ( - ( ( + 91 ) ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7556
SELECT DISTINCT + - COUNT( * ) / + 57 + + ( + CAST( NULL AS DECIMAL ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7556
SELECT DISTINCT + - COUNT ( * ) / + 57 + + ( + CAST ( NULL AS REAL ) ) col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7557
SELECT ALL + - 34 + 23 DIV - - 51 * + - 70 * - 8 AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-7557
SELECT ALL + - 34 + 23 / - - 51 * + - 70 * - 8 AS col1
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7558
SELECT + ( + - CAST( - COUNT( * ) AS SIGNED ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7558
SELECT + ( + - CAST ( - COUNT ( * ) AS INTEGER ) ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7559
SELECT ALL + - 9 + - COUNT( * ) + - 1 * + ( + COUNT( * ) ) * + CAST( - + 33 AS SIGNED ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-7559
SELECT ALL + - 9 + - COUNT ( * ) + - 1 * + ( + COUNT ( * ) ) * + CAST ( - + 33 AS INTEGER ) AS col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7560
SELECT ALL - NULLIF ( + + 61, 29 + + + 85 * + - 8 * + 34 + 21 + 56 * + + 21 + COUNT( * ) ) + 51 AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-7560
SELECT ALL - NULLIF ( + + 61, 29 + + + 85 * + - 8 * + 34 + 21 + 56 * + + 21 + COUNT ( * ) ) + 51 AS col2
----
-10

query I rowsort
SELECT 77 * 52 + + + 47 col2
----
4051

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7562
SELECT ALL + NULLIF ( 96, CASE - + CAST( NULL AS DECIMAL ) WHEN - 47 + - - 22 THEN - 26 * - SUM( + 12 ) + 88 + - + COUNT( * ) ELSE NULL END ) * + + 78 col2
----
7488

skipif mysql # not compatible
query I rowsort label-7562
SELECT ALL + NULLIF ( 96, CASE - + CAST ( NULL AS REAL ) WHEN - 47 + - - 22 THEN - 26 * - SUM ( + 12 ) + 88 + - + COUNT ( * ) ELSE NULL END ) * + + 78 col2
----
7488

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7563
SELECT MIN( 21 ) DIV 34 col0
----
0

skipif mysql # not compatible
query I rowsort label-7563
SELECT MIN ( 21 ) / 34 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7564
SELECT DISTINCT + 30 + + 13 + MAX( - 24 )
----
19

skipif mysql # not compatible
query I rowsort label-7564
SELECT DISTINCT + 30 + + 13 + MAX ( - 24 )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-7565
SELECT ALL MIN( - + 40 )
----
-40

skipif mysql # not compatible
query I rowsort label-7565
SELECT ALL MIN ( - + 40 )
----
-40

query I rowsort
SELECT + ( - 29 ) col1
----
-29

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7567
SELECT DISTINCT 6 + + CAST( NULL AS DECIMAL ) + - 18 * - 9 * + 65 / 2 * + 51 - 76
----
NULL

skipif mysql # not compatible
query I rowsort label-7567
SELECT DISTINCT 6 + + CAST ( NULL AS REAL ) + - 18 * - 9 * + 65 / 2 * + 51 - 76
----
NULL

query I rowsort
SELECT + ( + - 20 ) + - - ( + - 24 ) - - 67 * - 63
----
-4265

onlyif mysql # aggregate syntax: 
query II rowsort label-7569
SELECT DISTINCT 5, - COUNT( * ) + - SUM( - 13 ) AS col0
----
5
12

skipif mysql # not compatible
query II rowsort label-7569
SELECT DISTINCT 5, - COUNT ( * ) + - SUM ( - 13 ) AS col0
----
5
12

query I rowsort
SELECT 79 * - 84 AS col0
----
-6636

onlyif mysql # DIV for integer division: 
query I rowsort label-7571
SELECT ALL 6 DIV ( - - 18 ) * + - 9
----
0

skipif mysql # not compatible
query I rowsort label-7571
SELECT ALL 6 / ( - - 18 ) * + - 9
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7572
SELECT ALL 63 col0, CASE - + 40 WHEN - 83 + CAST( - - 34 AS DECIMAL ) * 14 THEN NULL WHEN 6 / + + 70 * - 4 * 24 THEN + - 11 END + + MIN( DISTINCT + - 7 ) + - COALESCE ( - 28, + COUNT( * ) ) AS col0
----
63
NULL

skipif mysql # not compatible
query II rowsort label-7572
SELECT ALL 63 col0, CASE - + 40 WHEN - 83 + CAST ( - - 34 AS REAL ) * 14 THEN NULL WHEN 6 / + + 70 * - 4 * 24 THEN + - 11 END + + MIN ( DISTINCT + - 7 ) + - COALESCE ( - 28, + COUNT ( * ) ) AS col0
----
63
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7573
SELECT DISTINCT - 56 DIV 31 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7573
SELECT DISTINCT - 56 / 31 AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7574
SELECT ALL 20 AS col2, COUNT( * ) * + 68 * + 56 / 8 / + CAST( NULL AS SIGNED ) + + + 95 + + 13 AS col1
----
20
NULL

skipif mysql # not compatible
query II rowsort label-7574
SELECT ALL 20 AS col2, COUNT ( * ) * + 68 * + 56 / 8 / + CAST ( NULL AS INTEGER ) + + + 95 + + 13 AS col1
----
20
NULL

query II rowsort
SELECT 61 AS col0, 12 + + + 0
----
61
12

onlyif mysql # aggregate syntax: 
query II rowsort label-7576
SELECT ALL ( 44 ) * - 75 AS col2, CASE 58 WHEN - SUM( + 48 ) THEN 95 WHEN + COUNT( * ) / + 93 + + - 42 * + + 7 * + 47 THEN NULL ELSE NULL END * 9 + - 13 + - 42 * - - 62 * - + 21 AS col0
----
-3300
NULL

skipif mysql # not compatible
query II rowsort label-7576
SELECT ALL ( 44 ) * - 75 AS col2, CASE 58 WHEN - SUM ( + 48 ) THEN 95 WHEN + COUNT ( * ) / + 93 + + - 42 * + + 7 * + 47 THEN NULL ELSE NULL END * 9 + - 13 + - 42 * - - 62 * - + 21 AS col0
----
-3300
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7577
SELECT DISTINCT CASE + ( - COUNT( 20 ) ) WHEN - 97 THEN - - 53 ELSE NULL END * + 9 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7577
SELECT DISTINCT CASE + ( - COUNT ( 20 ) ) WHEN - 97 THEN - - 53 ELSE NULL END * + 9 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 94 + - 48 AS col0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7579
SELECT ALL ( - 33 ) * - + COUNT( * ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-7579
SELECT ALL ( - 33 ) * - + COUNT ( * ) AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7580
SELECT COUNT( * ) + - 33
----
-32

skipif mysql # not compatible
query I rowsort label-7580
SELECT COUNT ( * ) + - 33
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-7581
SELECT ALL ( + 6 ) * - COUNT( DISTINCT - + 65 )
----
-6

skipif mysql # not compatible
query I rowsort label-7581
SELECT ALL ( + 6 ) * - COUNT ( DISTINCT - + 65 )
----
-6

query II rowsort
SELECT 90, - 48 AS col0
----
90
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-7583
SELECT 39 * - 8 - - 61 * - COUNT( * )
----
-373

skipif mysql # not compatible
query I rowsort label-7583
SELECT 39 * - 8 - - 61 * - COUNT ( * )
----
-373

onlyif mysql # aggregate syntax: 
query I rowsort label-7584
SELECT ( 30 ) * - 85 + 3 - - + 44 * COUNT( * ) AS col2
----
-2503

skipif mysql # not compatible
query I rowsort label-7584
SELECT ( 30 ) * - 85 + 3 - - + 44 * COUNT ( * ) AS col2
----
-2503

query I rowsort
SELECT - CASE 0 WHEN - + 55 / ( 32 ) + 29 THEN NULL WHEN - 31 THEN - 52 END / + 33 - + 8 * + ( + + 78 ) * 51
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7586
SELECT COUNT( * ) + - 79 AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-7586
SELECT COUNT ( * ) + - 79 AS col0
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-7587
SELECT ALL - 97 + 93 + + 2 DIV 74 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-7587
SELECT ALL - 97 + 93 + + 2 / 74 AS col2
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-7588
SELECT DISTINCT 5 DIV + + 41 + 73
----
73

skipif mysql # not compatible
query I rowsort label-7588
SELECT DISTINCT 5 / + + 41 + 73
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7589
SELECT ALL 9 + CASE CAST( NULL AS SIGNED ) WHEN 24 * - 62 THEN - MAX( ALL + 76 ) - 31 - + ( + 65 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7589
SELECT ALL 9 + CASE CAST ( NULL AS INTEGER ) WHEN 24 * - 62 THEN - MAX ( ALL + 76 ) - 31 - + ( + 65 ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7590
SELECT 10 + + 79 + + NULLIF ( - CAST( 87 AS SIGNED ), 85 ) * - 9 * + + COUNT( * ) AS col0, ( + 1 )
----
872
1

skipif mysql # not compatible
query II rowsort label-7590
SELECT 10 + + 79 + + NULLIF ( - CAST ( 87 AS INTEGER ), 85 ) * - 9 * + + COUNT ( * ) AS col0, ( + 1 )
----
872
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7591
SELECT SUM( ALL - 13 ) + + 99 * 87
----
8600

skipif mysql # not compatible
query I rowsort label-7591
SELECT SUM ( ALL - 13 ) + + 99 * 87
----
8600

query I rowsort
SELECT ALL + 62 + - + 88 + 94 AS col2
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-7593
SELECT + COUNT( * ), + 29 AS col0
----
1
29

skipif mysql # not compatible
query II rowsort label-7593
SELECT + COUNT ( * ), + 29 AS col0
----
1
29

query I rowsort
SELECT ALL 89 + + + 98 + 70 AS col2
----
257

onlyif mysql # aggregate syntax: 
query I rowsort label-7595
SELECT DISTINCT 7 + + + 49 * - 37 + - 5 * COUNT( * ) * - 35 col0
----
-1631

skipif mysql # not compatible
query I rowsort label-7595
SELECT DISTINCT 7 + + + 49 * - 37 + - 5 * COUNT ( * ) * - 35 col0
----
-1631

query I rowsort
SELECT ALL - 1 + + 37 + + 23
----
59

query II rowsort
SELECT DISTINCT - + 16, 25 + + - 35 AS col0
----
-16
-10

query I rowsort
SELECT + 56 + + + 36 AS col0
----
92

query I rowsort
SELECT 43 + + CASE - 18 WHEN - 75 THEN - + 84 WHEN + 54 THEN - - 61 ELSE - 64 END
----
-21

query I rowsort
SELECT - 9 * - 3 AS col2
----
27

query I rowsort
SELECT 2 * - 85
----
-170

onlyif mysql # aggregate syntax: 
query I rowsort label-7602
SELECT + - 76 * 99 + - COUNT( - + 10 )
----
-7525

skipif mysql # not compatible
query I rowsort label-7602
SELECT + - 76 * 99 + - COUNT ( - + 10 )
----
-7525

query I rowsort
SELECT DISTINCT - + 90 - - 14 * - 72 AS col1
----
-1098

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7604
SELECT 18 + - 86 + + 62 + - + 48 + + 40 + + 56 * - 23 + + - 45 * + ( 90 ) / 27 / - 86 * - 14 * - 54 * - CAST( NULL AS SIGNED ) * + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-7604
SELECT 18 + - 86 + + 62 + - + 48 + + 40 + + 56 * - 23 + + - 45 * + ( 90 ) / 27 / - 86 * - 14 * - 54 * - CAST ( NULL AS INTEGER ) * + 37
----
NULL

query I rowsort
SELECT 89 * - - 15 * + + 24
----
32040

query I rowsort
SELECT 24 * + - 8 AS col2
----
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-7607
SELECT ALL - COALESCE ( - COUNT( * ), SUM( + + 4 ) ) * 94 * - 41
----
-3854

skipif mysql # not compatible
query I rowsort label-7607
SELECT ALL - COALESCE ( - COUNT ( * ), SUM ( + + 4 ) ) * 94 * - 41
----
-3854

query I rowsort
SELECT 95 + ( + 94 )
----
189

onlyif mysql # DIV for integer division: 
query II rowsort label-7609
SELECT DISTINCT 94 DIV - - 52, + 16 col2
----
1
16

skipif mysql # not compatible
query II rowsort label-7609
SELECT DISTINCT 94 / - - 52, + 16 col2
----
1
16

onlyif mysql # aggregate syntax: 
query II rowsort label-7610
SELECT ALL SUM( DISTINCT + 40 ), 69 AS col1
----
40
69

skipif mysql # not compatible
query II rowsort label-7610
SELECT ALL SUM ( DISTINCT + 40 ), 69 AS col1
----
40
69

query I rowsort
SELECT 5 + ( + + 99 )
----
104

query I rowsort
SELECT ALL - 51 * + + 20 AS col2
----
-1020

onlyif mysql # aggregate syntax: 
query I rowsort label-7613
SELECT 14 + ( + SUM( ALL 29 ) )
----
43

skipif mysql # not compatible
query I rowsort label-7613
SELECT 14 + ( + SUM ( ALL 29 ) )
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7614
SELECT DISTINCT - COUNT( * ) * - 29 DIV 88 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7614
SELECT DISTINCT - COUNT ( * ) * - 29 / 88 AS col2
----
0

query I rowsort
SELECT 4 * 46 AS col0
----
184

onlyif mysql # aggregate syntax: 
query I rowsort label-7616
SELECT 39 + - - COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-7616
SELECT 39 + - - COUNT ( * )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7617
SELECT ALL SUM( DISTINCT + + 18 )
----
18

skipif mysql # not compatible
query I rowsort label-7617
SELECT ALL SUM ( DISTINCT + + 18 )
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7618
SELECT COALESCE ( - + CASE + 18 WHEN + 38 THEN NULL ELSE 95 + - 4 - + 47 * + CAST( NULL AS SIGNED ) * + 0 END, - - COALESCE ( - CAST( NULL AS SIGNED ), + 83 + - + 46, - - 75 * - 88 ) ) + 30 * - 20
----
-563

skipif mysql # not compatible
query I rowsort label-7618
SELECT COALESCE ( - + CASE + 18 WHEN + 38 THEN NULL ELSE 95 + - 4 - + 47 * + CAST ( NULL AS INTEGER ) * + 0 END, - - COALESCE ( - CAST ( NULL AS INTEGER ), + 83 + - + 46, - - 75 * - 88 ) ) + 30 * - 20
----
-563

onlyif mysql # aggregate syntax: 
query II rowsort label-7619
SELECT ALL - COUNT( * ) + 59 + - + 17 + + + 51, 45 col2
----
92
45

skipif mysql # not compatible
query II rowsort label-7619
SELECT ALL - COUNT ( * ) + 59 + - + 17 + + + 51, 45 col2
----
92
45

query I rowsort
SELECT 29 + 3 AS col0
----
32

query I rowsort
SELECT ALL 45 + - 86
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-7622
SELECT - COUNT( - - 41 ) + + + NULLIF ( 37, - - MIN( ALL + ( - 85 ) ) ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-7622
SELECT - COUNT ( - - 41 ) + + + NULLIF ( 37, - - MIN ( ALL + ( - 85 ) ) ) AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7623
SELECT ALL + COUNT( * ) + + + 92 AS col2
----
93

skipif mysql # not compatible
query I rowsort label-7623
SELECT ALL + COUNT ( * ) + + + 92 AS col2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7624
SELECT DISTINCT COALESCE ( - - 92, - - COUNT( * ) ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-7624
SELECT DISTINCT COALESCE ( - - 92, - - COUNT ( * ) ) AS col0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7625
SELECT DISTINCT - ( - - 14 ) + - ( - COUNT( DISTINCT - 33 ) ) + - + 76 * + + 7 - + 12
----
-557

skipif mysql # not compatible
query I rowsort label-7625
SELECT DISTINCT - ( - - 14 ) + - ( - COUNT ( DISTINCT - 33 ) ) + - + 76 * + + 7 - + 12
----
-557

onlyif mysql # aggregate syntax: 
query II rowsort label-7626
SELECT + MIN( 1 ) AS col0, - 38 AS col1
----
1
-38

skipif mysql # not compatible
query II rowsort label-7626
SELECT + MIN ( 1 ) AS col0, - 38 AS col1
----
1
-38

query I rowsort
SELECT - 63 * + - 17 AS col1
----
1071

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7628
SELECT + - 46 + 48 - + + ( + ( - 63 ) ) + + NULLIF ( + 42, - 46 + + 7 DIV 95 * + 86 + + + 0 DIV + 54 ) - - - COALESCE ( - + 11, 46 * + - 92 DIV 33 * + 22 * SUM( ALL + 14 ) + + COUNT( * ) + + 24 ) * + 79 * ( - - 75 ) * + 69
----
4497182

skipif mysql # not compatible
query I rowsort label-7628
SELECT + - 46 + 48 - + + ( + ( - 63 ) ) + + NULLIF ( + 42, - 46 + + 7 / 95 * + 86 + + + 0 / + 54 ) - - - COALESCE ( - + 11, 46 * + - 92 / 33 * + 22 * SUM ( ALL + 14 ) + + COUNT ( * ) + + 24 ) * + 79 * ( - - 75 ) * + 69
----
4497182

onlyif mysql # aggregate syntax: 
query I rowsort label-7629
SELECT + - SUM( DISTINCT - 44 ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-7629
SELECT + - SUM ( DISTINCT - 44 ) AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7630
SELECT ALL - COUNT( * ) * + + 58 + + ( 37 )
----
-21

skipif mysql # not compatible
query I rowsort label-7630
SELECT ALL - COUNT ( * ) * + + 58 + + ( 37 )
----
-21

query I rowsort
SELECT DISTINCT 21 * - 20 * - - 33 + + 50 AS col1
----
-13810

onlyif mysql # aggregate syntax: 
query I rowsort label-7632
SELECT MAX( + - 78 )
----
-78

skipif mysql # not compatible
query I rowsort label-7632
SELECT MAX ( + - 78 )
----
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7633
SELECT + COUNT( * ) DIV 26 * + 99 DIV 72
----
0

skipif mysql # not compatible
query I rowsort label-7633
SELECT + COUNT ( * ) / 26 * + 99 / 72
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7634
SELECT ALL - + 59 * 65 * + COUNT( * ) + + + 94 + - - COUNT( * ) - + 33 AS col1
----
-3773

skipif mysql # not compatible
query I rowsort label-7634
SELECT ALL - + 59 * 65 * + COUNT ( * ) + + + 94 + - - COUNT ( * ) - + 33 AS col1
----
-3773

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7635
SELECT DISTINCT - + CAST( NULL AS DECIMAL ) * + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-7635
SELECT DISTINCT - + CAST ( NULL AS REAL ) * + 93
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7636
SELECT ALL ( 34 ) DIV 52 col1
----
0

skipif mysql # not compatible
query I rowsort label-7636
SELECT ALL ( 34 ) / 52 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7637
SELECT + - 58 * - + COUNT( * ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-7637
SELECT + - 58 * - + COUNT ( * ) AS col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7638
SELECT + - 95 * - 54 + COUNT( * ) AS col0
----
5131

skipif mysql # not compatible
query I rowsort label-7638
SELECT + - 95 * - 54 + COUNT ( * ) AS col0
----
5131

query I rowsort
SELECT + - ( + 68 )
----
-68

query I rowsort
SELECT + + ( + 61 )
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-7641
SELECT + - 9 DIV - 93
----
0

skipif mysql # not compatible
query I rowsort label-7641
SELECT + - 9 / - 93
----
0

query I rowsort
SELECT DISTINCT 94 * + ( - ( - + 27 ) )
----
2538

query I rowsort
SELECT ALL 53 * - - 38 col1
----
2014

query I rowsort
SELECT + 23 - - 23 AS col1
----
46

query I rowsort
SELECT - 17 * - 77 * - ( 61 )
----
-79849

onlyif mysql # aggregate syntax: 
query II rowsort label-7646
SELECT + ( - 0 ) + 57 col2, - COUNT( * ) AS col1
----
57
-1

skipif mysql # not compatible
query II rowsort label-7646
SELECT + ( - 0 ) + 57 col2, - COUNT ( * ) AS col1
----
57
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7647
SELECT 86 AS col1, 75 - COUNT( * ) + + 10 DIV 50 * + NULLIF ( + COUNT( DISTINCT - 53 ), ( - COUNT( 35 ) ) + - MAX( ALL - 85 ) + + + MIN( DISTINCT + 80 ) )
----
86
74

skipif mysql # not compatible
query II rowsort label-7647
SELECT 86 AS col1, 75 - COUNT ( * ) + + 10 / 50 * + NULLIF ( + COUNT ( DISTINCT - 53 ), ( - COUNT ( 35 ) ) + - MAX ( ALL - 85 ) + + + MIN ( DISTINCT + 80 ) )
----
86
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7648
SELECT DISTINCT SUM( + 12 )
----
12

skipif mysql # not compatible
query I rowsort label-7648
SELECT DISTINCT SUM ( + 12 )
----
12

query I rowsort
SELECT + 81 * + ( - 50 )
----
-4050

onlyif mysql # aggregate syntax: 
query I rowsort label-7650
SELECT DISTINCT - 2 * 86 / CASE - - 99 WHEN + 69 THEN - 53 + - 56 + + - MAX( DISTINCT + 10 ) WHEN 54 / - + 59 - + SUM( + 45 ) + - 21 + - 28 + + + 52 * - 11 THEN - - 93 ELSE NULL END * + + ( + COUNT( * ) ) + + - NULLIF ( + - ( 46 ), + AVG ( + + COALESCE ( - - 63, 39 ) ) ) * + + 75 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7650
SELECT DISTINCT - 2 * 86 / CASE - - 99 WHEN + 69 THEN - 53 + - 56 + + - MAX ( DISTINCT + 10 ) WHEN 54 / - + 59 - + SUM ( + 45 ) + - 21 + - 28 + + + 52 * - 11 THEN - - 93 ELSE NULL END * + + ( + COUNT ( * ) ) + + - NULLIF ( + - ( 46 ), + AVG ( + + COALESCE ( - - 63, 39 ) ) ) * + + 75 * - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7651
SELECT ALL + ( COUNT( * ) ) + - - 1 * - 66 * COUNT( DISTINCT + 79 )
----
-65

skipif mysql # not compatible
query I rowsort label-7651
SELECT ALL + ( COUNT ( * ) ) + - - 1 * - 66 * COUNT ( DISTINCT + 79 )
----
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-7652
SELECT ALL 39 DIV - 50
----
0

skipif mysql # not compatible
query I rowsort label-7652
SELECT ALL 39 / - 50
----
0

query I rowsort
SELECT - 51 * 51 col0
----
-2601

query I rowsort
SELECT DISTINCT - ( + 51 ) * ( - 17 ) AS col2
----
867

onlyif mysql # aggregate syntax: 
query I rowsort label-7655
SELECT ALL - - 15 + - COUNT( * ) + + - 66 AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-7655
SELECT ALL - - 15 + - COUNT ( * ) + + - 66 AS col0
----
-52

query I rowsort
SELECT ALL + NULLIF ( NULLIF ( - 55, 89 ), - 71 ) AS col1
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7657
SELECT + CAST( ( + 69 ) AS SIGNED ), - COUNT( * ) * - 54 AS col2
----
69
54

skipif mysql # not compatible
query II rowsort label-7657
SELECT + CAST ( ( + 69 ) AS INTEGER ), - COUNT ( * ) * - 54 AS col2
----
69
54

query I rowsort
SELECT + 53 * - 17 AS col2
----
-901

query I rowsort
SELECT - 11 + - 79 AS col2
----
-90

query II rowsort
SELECT ALL + 3 AS col1, 1
----
3
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7661
SELECT - + COUNT( * ) + + 32
----
31

skipif mysql # not compatible
query I rowsort label-7661
SELECT - + COUNT ( * ) + + 32
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7662
SELECT COALESCE ( + CAST( - ( - - 61 ) AS SIGNED ), + 40 - + + 79 ) / CAST( NULL AS DECIMAL ) - + 18 - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7662
SELECT COALESCE ( + CAST ( - ( - - 61 ) AS INTEGER ), + 40 - + + 79 ) / CAST ( NULL AS REAL ) - + 18 - - COUNT ( * )
----
NULL

query I rowsort
SELECT - 0 * 4 * - + 1 AS col2
----
0

query I rowsort
SELECT + 69 * + 21
----
1449

onlyif mysql # aggregate syntax: 
query I rowsort label-7665
SELECT + + 49 + - + 48 * + COUNT( * ) * + - NULLIF ( 74, - + 87 / + 53 * + 50 ) * + COUNT( * ) + 0 * + + SUM( + - 87 )
----
3601

skipif mysql # not compatible
query I rowsort label-7665
SELECT + + 49 + - + 48 * + COUNT ( * ) * + - NULLIF ( 74, - + 87 / + 53 * + 50 ) * + COUNT ( * ) + 0 * + + SUM ( + - 87 )
----
3601

onlyif mysql # aggregate syntax: 
query I rowsort label-7666
SELECT ALL + 58 * + CASE - 65 WHEN - - 72 + - 8 THEN NULL WHEN - COUNT( * ) + - 31 THEN NULL ELSE + ( + 85 ) + + ( 54 ) * - 4 END AS col0
----
-7598

skipif mysql # not compatible
query I rowsort label-7666
SELECT ALL + 58 * + CASE - 65 WHEN - - 72 + - 8 THEN NULL WHEN - COUNT ( * ) + - 31 THEN NULL ELSE + ( + 85 ) + + ( 54 ) * - 4 END AS col0
----
-7598

onlyif mysql # aggregate syntax: 
query I rowsort label-7667
SELECT + + COUNT( * ) * - 52 AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-7667
SELECT + + COUNT ( * ) * - 52 AS col2
----
-52

query I rowsort
SELECT + 24 + - - 50 + - 56
----
18

query II rowsort
SELECT ALL + 79, 38 + - 12 AS col2
----
79
26

query II rowsort
SELECT ALL + 50, 28 AS col1
----
50
28

query I rowsort
SELECT NULLIF ( - 1, AVG ( + + 6 ) + - 57 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7672
SELECT - 87 * + COUNT( * ) * + + 51 + + 63, 75 AS col1
----
-4374
75

skipif mysql # not compatible
query II rowsort label-7672
SELECT - 87 * + COUNT ( * ) * + + 51 + + 63, 75 AS col1
----
-4374
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7673
SELECT ALL CASE - + 69 WHEN - 90 THEN NULL WHEN 48 * + NULLIF ( - 76, 40 ) + 4 + + 48 THEN 37 * + + ( + - 95 ) + + COALESCE ( - - SUM( + - 8 ), + 64 ) ELSE NULL END * - + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7673
SELECT ALL CASE - + 69 WHEN - 90 THEN NULL WHEN 48 * + NULLIF ( - 76, 40 ) + 4 + + 48 THEN 37 * + + ( + - 95 ) + + COALESCE ( - - SUM ( + - 8 ), + 64 ) ELSE NULL END * - + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7674
SELECT ALL + COUNT( * ) * + - ( - 67 ) + + 56 * - 5 col1
----
-213

skipif mysql # not compatible
query I rowsort label-7674
SELECT ALL + COUNT ( * ) * + - ( - 67 ) + + 56 * - 5 col1
----
-213

query I rowsort
SELECT ALL + 56 * + 55 + - + 89
----
2991

query I rowsort
SELECT 30 + + 16 * 56 AS col2
----
926

onlyif mysql # aggregate syntax: 
query I rowsort label-7677
SELECT DISTINCT 81 + + - MIN( + 54 )
----
27

skipif mysql # not compatible
query I rowsort label-7677
SELECT DISTINCT 81 + + - MIN ( + 54 )
----
27

query II rowsort
SELECT ALL COALESCE ( + - 23, + 97 ) * - - 0 AS col1, 32 col1
----
0
32

query I rowsort
SELECT DISTINCT 98 + 85
----
183

query II rowsort
SELECT DISTINCT 88 col0, + 82 AS col1
----
88
82

query II rowsort
SELECT - 92, + 97 AS col0
----
-92
97

query II rowsort
SELECT - 49, 66 AS col2
----
-49
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7683
SELECT 74 + + MIN( ALL + - 11 ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-7683
SELECT 74 + + MIN ( ALL + - 11 ) AS col1
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7684
SELECT - ( 20 ) + + CAST( + - CASE - COUNT( * ) WHEN COUNT( - 2 ) THEN 95 WHEN 19 + - 60 * + 81 + + 34 THEN + - 68 ELSE + AVG ( - 61 ) END AS SIGNED ) + - CASE - - 34 WHEN SUM( DISTINCT - 76 ) THEN + + 8 * + - ( - MAX( + 97 ) ) * - 62 * - + ( + 94 ) WHEN - 41 * - 90 + 40 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7684
SELECT - ( 20 ) + + CAST ( + - CASE - COUNT ( * ) WHEN COUNT ( - 2 ) THEN 95 WHEN 19 + - 60 * + 81 + + 34 THEN + - 68 ELSE + AVG ( - 61 ) END AS INTEGER ) + - CASE - - 34 WHEN SUM ( DISTINCT - 76 ) THEN + + 8 * + - ( - MAX ( + 97 ) ) * - 62 * - + ( + 94 ) WHEN - 41 * - 90 + 40 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - NULLIF ( - 18, 79 )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7686
SELECT 39 + 32 * 16 - - SUM( 66 )
----
617

skipif mysql # not compatible
query I rowsort label-7686
SELECT 39 + 32 * 16 - - SUM ( 66 )
----
617

query I rowsort
SELECT DISTINCT + 58 * - 40 * ( - 34 ) * - 69 col1
----
-5442720

query I rowsort
SELECT DISTINCT 60 * 44 + + 47 + - - 3 * - 40
----
2567

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7689
SELECT + CASE SUM( CAST( NULL AS SIGNED ) ) WHEN AVG ( DISTINCT - - 70 ) THEN 37 WHEN - ( - 45 ) THEN 44 + - - CAST( + 45 AS SIGNED ) END AS col1, 59 * + 79 - - 53 + + 27 + - + 95 * - - 85 * 14 + 8
----
NULL
-108301

skipif mysql # not compatible
query II rowsort label-7689
SELECT + CASE SUM ( CAST ( NULL AS INTEGER ) ) WHEN AVG ( DISTINCT - - 70 ) THEN 37 WHEN - ( - 45 ) THEN 44 + - - CAST ( + 45 AS INTEGER ) END AS col1, 59 * + 79 - - 53 + + 27 + - + 95 * - - 85 * 14 + 8
----
NULL
-108301

query II rowsort
SELECT 8 + COALESCE ( + 70, 70 ) AS col2, + 38 AS col0
----
78
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7691
SELECT - 75 * - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7691
SELECT - 75 * - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7692
SELECT - - 21 * - - ( + 38 ) * + 20 + + 8 + - 2 * - COALESCE ( 45, + + 67 * - 27 * - 43 + - COUNT( * ), - - 55 ) * - 62 + + 49 AS col1
----
10437

skipif mysql # not compatible
query I rowsort label-7692
SELECT - - 21 * - - ( + 38 ) * + 20 + + 8 + - 2 * - COALESCE ( 45, + + 67 * - 27 * - 43 + - COUNT ( * ), - - 55 ) * - 62 + + 49 AS col1
----
10437

onlyif mysql # aggregate syntax: 
query II rowsort label-7693
SELECT + 32 col0, + MIN( - 47 )
----
32
-47

skipif mysql # not compatible
query II rowsort label-7693
SELECT + 32 col0, + MIN ( - 47 )
----
32
-47

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7694
SELECT DISTINCT + 70 + + ( + 97 ) + + - 64 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7694
SELECT DISTINCT + 70 + + ( + 97 ) + + - 64 * CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7695
SELECT + 34 * - 90 * - COUNT( * )
----
3060

skipif mysql # not compatible
query I rowsort label-7695
SELECT + 34 * - 90 * - COUNT ( * )
----
3060

onlyif mysql # aggregate syntax: 
query I rowsort label-7696
SELECT ALL + + 3 + + + ( COUNT( * ) )
----
4

skipif mysql # not compatible
query I rowsort label-7696
SELECT ALL + + 3 + + + ( COUNT ( * ) )
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7697
SELECT + CAST( + CASE 19 WHEN 64 THEN ( - COUNT( * ) ) + - - 72 / - 45 * 5 + - 11 * + + 60 * + 82 * - - 88 - + 21 * 31 / - 83 ELSE - ( AVG ( - + 21 ) ) END AS SIGNED ) * 75 * 64 - - ( - 42 ) * - + CASE - 3 WHEN - 33 + + 95 THEN - 76 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7697
SELECT + CAST ( + CASE 19 WHEN 64 THEN ( - COUNT ( * ) ) + - - 72 / - 45 * 5 + - 11 * + + 60 * + 82 * - - 88 - + 21 * 31 / - 83 ELSE - ( AVG ( - + 21 ) ) END AS INTEGER ) * 75 * 64 - - ( - 42 ) * - + CASE - 3 WHEN - 33 + + 95 THEN - 76 END
----
NULL

query I rowsort
SELECT ALL + 20 * 61 AS col1
----
1220

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7699
SELECT 4 * 29 DIV - MIN( + 8 )
----
-14

skipif mysql # not compatible
query I rowsort label-7699
SELECT 4 * 29 / - MIN ( + 8 )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-7700
SELECT COUNT( * ) + 96
----
97

skipif mysql # not compatible
query I rowsort label-7700
SELECT COUNT ( * ) + 96
----
97

query I rowsort
SELECT DISTINCT NULLIF ( + - 51, - + 89 + 63 - - 98 ) * + 37
----
-1887

query I rowsort
SELECT ALL ( + 84 ) + - 60 * + 56 AS col1
----
-3276

onlyif mysql # DIV for integer division: 
query II rowsort label-7703
SELECT ALL 22 DIV + - 96, - 84 col2
----
0
-84

skipif mysql # not compatible
query II rowsort label-7703
SELECT ALL 22 / + - 96, - 84 col2
----
0
-84

query I rowsort
SELECT ALL 39 + + ( + ( - - 43 ) ) AS col1
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-7705
SELECT COUNT( * ) + - 66 AS col2, 57 AS col2
----
-65
57

skipif mysql # not compatible
query II rowsort label-7705
SELECT COUNT ( * ) + - 66 AS col2, 57 AS col2
----
-65
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7706
SELECT CAST( + + 87 AS SIGNED ) * - - 31
----
2697

skipif mysql # not compatible
query I rowsort label-7706
SELECT CAST ( + + 87 AS INTEGER ) * - - 31
----
2697

query I rowsort
SELECT DISTINCT 21 * 23
----
483

onlyif mysql # aggregate syntax: 
query I rowsort label-7708
SELECT ALL - - 69 * + + 42 + + 4 * + 0 * - - COALESCE ( COUNT( * ), 99 ) * + 75 + - - 19
----
2917

skipif mysql # not compatible
query I rowsort label-7708
SELECT ALL - - 69 * + + 42 + + 4 * + 0 * - - COALESCE ( COUNT ( * ), 99 ) * + 75 + - - 19
----
2917

query I rowsort
SELECT - + ( - 61 )
----
61

query I rowsort
SELECT ALL - 34 * + + 31 * + 9 + 95 - - 11 * - + 11 AS col2
----
-9512

query I rowsort
SELECT - 6 * + 90 AS col2
----
-540

query I rowsort
SELECT 33 + - + 85 AS col2
----
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-7713
SELECT - SUM( - + 7 ) AS col2, - 5 + + + 61 AS col0
----
7
56

skipif mysql # not compatible
query II rowsort label-7713
SELECT - SUM ( - + 7 ) AS col2, - 5 + + + 61 AS col0
----
7
56

onlyif mysql # DIV for integer division: 
query I rowsort label-7714
SELECT - 59 + 0 DIV + 16 + - 36
----
-95

skipif mysql # not compatible
query I rowsort label-7714
SELECT - 59 + 0 / + 16 + - 36
----
-95

query I rowsort
SELECT - 73 + 80 AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7716
SELECT - NULLIF ( NULLIF ( + MIN( DISTINCT - - 91 ), 11 ), - 76 ) * + 87 AS col1
----
-7917

skipif mysql # not compatible
query I rowsort label-7716
SELECT - NULLIF ( NULLIF ( + MIN ( DISTINCT - - 91 ), 11 ), - 76 ) * + 87 AS col1
----
-7917

query I rowsort
SELECT ALL + - 81 * 38
----
-3078

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7718
SELECT 21 DIV - + COALESCE ( + 64, + + COUNT( * ), - MIN( - 85 ) ) * + 17 + + MIN( ALL 51 ) + + ( - ( 5 ) ) AS col2, 96 * - + 71 AS col1
----
46
-6816

skipif mysql # not compatible
query II rowsort label-7718
SELECT 21 / - + COALESCE ( + 64, + + COUNT ( * ), - MIN ( - 85 ) ) * + 17 + + MIN ( ALL 51 ) + + ( - ( 5 ) ) AS col2, 96 * - + 71 AS col1
----
46
-6816

query I rowsort
SELECT ALL - - NULLIF ( - + 59, + 32 / 93 / - 29 * AVG ( ALL + 72 ) )
----
-59

query II rowsort
SELECT + NULLIF ( + 58, 46 ) + + + 24 + 39 AS col2, - 62 * + + 45 * + 66 AS col0
----
121
-184140

onlyif mysql # aggregate syntax: 
query I rowsort label-7721
SELECT ALL + COUNT( + + 42 ) * - - COUNT( * ) + 57 * - + 14
----
-797

skipif mysql # not compatible
query I rowsort label-7721
SELECT ALL + COUNT ( + + 42 ) * - - COUNT ( * ) + 57 * - + 14
----
-797

onlyif mysql # aggregate syntax: 
query II rowsort label-7722
SELECT ALL - + 91 * MAX( + - 21 ) - + - COUNT( * ) + - 95, + 43 * ( 61 ) AS col1
----
1817
2623

skipif mysql # not compatible
query II rowsort label-7722
SELECT ALL - + 91 * MAX ( + - 21 ) - + - COUNT ( * ) + - 95, + 43 * ( 61 ) AS col1
----
1817
2623

query I rowsort
SELECT ALL - - ( - 89 ) col2
----
-89

query I rowsort
SELECT - 75 + 47
----
-28

query I rowsort
SELECT + NULLIF ( + - 68, 67 + + 26 )
----
-68

query I rowsort
SELECT 43 + + 64 * - + 21 * + 14 + + 10
----
-18763

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7727
SELECT + 60, - COALESCE ( - COUNT( * ), - + COUNT( * ) - + - 33 - + - 64 + + + 46 - 98 * 58 * + + 67 ) DIV - COUNT( * ) - + - 25 - - + SUM( 27 ) + + 55 AS col1
----
60
106

skipif mysql # not compatible
query II rowsort label-7727
SELECT + 60, - COALESCE ( - COUNT ( * ), - + COUNT ( * ) - + - 33 - + - 64 + + + 46 - 98 * 58 * + + 67 ) / - COUNT ( * ) - + - 25 - - + SUM ( 27 ) + + 55 AS col1
----
60
106

query I rowsort
SELECT - 58 * 50
----
-2900

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7729
SELECT ALL + 59 col1, + 58 / - - CAST( - CASE - + 31 WHEN + 45 * - 98 THEN - 27 * - + 77 END AS SIGNED )
----
59
NULL

skipif mysql # not compatible
query II rowsort label-7729
SELECT ALL + 59 col1, + 58 / - - CAST ( - CASE - + 31 WHEN + 45 * - 98 THEN - 27 * - + 77 END AS INTEGER )
----
59
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7730
SELECT DISTINCT + MAX( - ( + 35 ) ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-7730
SELECT DISTINCT + MAX ( - ( + 35 ) ) AS col0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-7731
SELECT - 79 * + - COUNT( * ) + - - 81 col1
----
160

skipif mysql # not compatible
query I rowsort label-7731
SELECT - 79 * + - COUNT ( * ) + - - 81 col1
----
160

query I rowsort
SELECT DISTINCT - 34 * - + NULLIF ( - 23, + 54 * + - 39 )
----
-782

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7733
SELECT - 11 + 9 DIV + 37 * - 16 * + 71 DIV + - 13 + - + COUNT( * ) + 98 AS col2
----
86

skipif mysql # not compatible
query I rowsort label-7733
SELECT - 11 + 9 / + 37 * - 16 * + 71 / + - 13 + - + COUNT ( * ) + 98 AS col2
----
86

query I rowsort
SELECT ALL - 62 + - + 85 * + + 56 AS col0
----
-4822

query I rowsort
SELECT DISTINCT + 71 * + + NULLIF ( 3, 96 ) AS col2
----
213

query II rowsort
SELECT DISTINCT 40 - + 8 + + 79 - - 26 AS col0, 27
----
137
27

query I rowsort
SELECT ALL + ( - - 43 ) AS col1
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-7738
SELECT + 35 col1, + COUNT( * )
----
35
1

skipif mysql # not compatible
query II rowsort label-7738
SELECT + 35 col1, + COUNT ( * )
----
35
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7739
SELECT DISTINCT - 17 - CASE + 75 WHEN 17 + + - 90 * MIN( + CASE - 88 WHEN 89 THEN + 52 + 13 ELSE NULL END ) THEN + COUNT( * ) ELSE NULL END + + + 14 + + 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7739
SELECT DISTINCT - 17 - CASE + 75 WHEN 17 + + - 90 * MIN ( + CASE - 88 WHEN 89 THEN + 52 + 13 ELSE NULL END ) THEN + COUNT ( * ) ELSE NULL END + + + 14 + + 40 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7740
SELECT - COUNT( DISTINCT 55 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7740
SELECT - COUNT ( DISTINCT 55 ) AS col1
----
-1

query I rowsort
SELECT ALL + 54 * + + 11 AS col0
----
594

onlyif mysql # aggregate syntax: 
query I rowsort label-7742
SELECT DISTINCT + 72 * - 65 * + + COUNT( * ) AS col1
----
-4680

skipif mysql # not compatible
query I rowsort label-7742
SELECT DISTINCT + 72 * - 65 * + + COUNT ( * ) AS col1
----
-4680

query I rowsort
SELECT - 21 * + 15 * - 36
----
11340

onlyif mysql # aggregate syntax: 
query I rowsort label-7744
SELECT + 77 + + + 89 + 73 + 7 * SUM( DISTINCT 6 ) * 90 + 38 * + 80 * + - 64 AS col1
----
-190541

skipif mysql # not compatible
query I rowsort label-7744
SELECT + 77 + + + 89 + 73 + 7 * SUM ( DISTINCT 6 ) * 90 + 38 * + 80 * + - 64 AS col1
----
-190541

query II rowsort
SELECT - 59 AS col0, 24 + - 63
----
-59
-39

query II rowsort
SELECT + 91 * 52 + - 0 col2, - 91 * + 75 AS col2
----
4732
-6825

query I rowsort
SELECT - - 91 * 20 + 52 AS col0
----
1872

query II rowsort
SELECT + - 86 + 31 + - 49 AS col2, + 40 AS col1
----
-104
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7749
SELECT ALL + 4 AS col0, 97 + - - COUNT( * ) DIV 74
----
4
97

skipif mysql # not compatible
query II rowsort label-7749
SELECT ALL + 4 AS col0, 97 + - - COUNT ( * ) / 74
----
4
97

query I rowsort
SELECT + - 36 + - 98
----
-134

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7751
SELECT ALL - CAST( NULL AS SIGNED ) + - + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-7751
SELECT ALL - CAST ( NULL AS INTEGER ) + - + 18
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7752
SELECT DISTINCT - 73 * - - CAST( + 54 AS SIGNED ) + + + 29 + - COUNT( * ) - COUNT( - 20 ) + 99 + 28 + - 25 + - - 31, + 53 AS col0
----
-3782
53

skipif mysql # not compatible
query II rowsort label-7752
SELECT DISTINCT - 73 * - - CAST ( + 54 AS INTEGER ) + + + 29 + - COUNT ( * ) - COUNT ( - 20 ) + 99 + 28 + - 25 + - - 31, + 53 AS col0
----
-3782
53

query I rowsort
SELECT DISTINCT - + 99 + - 81 * 26 + 38
----
-2167

query I rowsort
SELECT + 93 * + 42
----
3906

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7755
SELECT DISTINCT + - CAST( NULL AS SIGNED ) / 11 + - 12 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7755
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) / 11 + - 12 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7756
SELECT ALL + - 14 / 94 + - + CAST( NULL AS SIGNED ) / - 36 + - + 62 * - 62 + + 63 + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-7756
SELECT ALL + - 14 / 94 + - + CAST ( NULL AS INTEGER ) / - 36 + - + 62 * - 62 + + 63 + 79
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7757
SELECT + - COUNT( * ) * - 58 * - 25 AS col2
----
-1450

skipif mysql # not compatible
query I rowsort label-7757
SELECT + - COUNT ( * ) * - 58 * - 25 AS col2
----
-1450

onlyif mysql # aggregate syntax: 
query II rowsort label-7758
SELECT COUNT( * ) * + 15 + - 27 + + 78 - - 83 * ( - + ( - + 2 ) ) AS col0, - 42
----
232
-42

skipif mysql # not compatible
query II rowsort label-7758
SELECT COUNT ( * ) * + 15 + - 27 + + 78 - - 83 * ( - + ( - + 2 ) ) AS col0, - 42
----
232
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7759
SELECT ALL + CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) + - + 20 / + 98 / - - 63
----
NULL

skipif mysql # not compatible
query I rowsort label-7759
SELECT ALL + CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) + - + 20 / + 98 / - - 63
----
NULL

query I rowsort
SELECT ( + ( + - 82 ) ) AS col2
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-7761
SELECT DISTINCT + 46 * + + COUNT( * ) + 63 AS col0
----
109

skipif mysql # not compatible
query I rowsort label-7761
SELECT DISTINCT + 46 * + + COUNT ( * ) + 63 AS col0
----
109

query I rowsort
SELECT ALL - 57 * - 91
----
5187

query I rowsort
SELECT + 52 + + 1 AS col1
----
53

query I rowsort
SELECT DISTINCT 75 * + + 26 * + + 58
----
113100

query I rowsort
SELECT NULLIF ( - 48, - 20 )
----
-48

query II rowsort
SELECT + 99 - - - 70 AS col2, + 29 * - + 53 + 33 AS col1
----
29
-1504

query I rowsort
SELECT - 5 * + + 92
----
-460

query I rowsort
SELECT ALL 10 * + - 22
----
-220

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7769
SELECT - NULLIF ( - MIN( + 83 ), - - 21 ) * + - 12 + + + 70 - - - 5 DIV 47
----
-926

skipif mysql # not compatible
query I rowsort label-7769
SELECT - NULLIF ( - MIN ( + 83 ), - - 21 ) * + - 12 + + + 70 - - - 5 / 47
----
-926

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7770
SELECT COALESCE ( 59, + MAX( + 29 ) + 2 + - ( + 69 ) + - + 7, + SUM( ALL - 11 ) + - - CAST( NULL AS SIGNED ) ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-7770
SELECT COALESCE ( 59, + MAX ( + 29 ) + 2 + - ( + 69 ) + - + 7, + SUM ( ALL - 11 ) + - - CAST ( NULL AS INTEGER ) ) AS col0
----
59

query I rowsort
SELECT - ( - + 3 ) + + 8 - - 64
----
75

query I rowsort
SELECT + 69 * + - 22
----
-1518

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7773
SELECT - MIN( - + COALESCE ( 79, + 63, + + 85 * + - 82 ) ) + + CASE CAST( NULL AS SIGNED ) WHEN 41 THEN - CAST( NULL AS DECIMAL ) / CAST( - 29 AS SIGNED ) + + - COALESCE ( 25, 99, - - COUNT( * ) / + AVG ( - 37 ) * COUNT( * ) + + + 89 + - ( - 72 ) + - 69 * - 29 ) * + ( - - 33 ) WHEN + - 31 * + + 78 + 45 THEN + MIN( DISTINCT + 77 ) + - CAST( + - 92 AS SIGNED ) ELSE NULL END - - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-7773
SELECT - MIN ( - + COALESCE ( 79, + 63, + + 85 * + - 82 ) ) + + CASE CAST ( NULL AS INTEGER ) WHEN 41 THEN - CAST ( NULL AS REAL ) / CAST ( - 29 AS INTEGER ) + + - COALESCE ( 25, 99, - - COUNT ( * ) / + AVG ( - 37 ) * COUNT ( * ) + + + 89 + - ( - 72 ) + - 69 * - 29 ) * + ( - - 33 ) WHEN + - 31 * + + 78 + 45 THEN + MIN ( DISTINCT + 77 ) + - CAST ( + - 92 AS INTEGER ) ELSE NULL END - - 34
----
NULL

query II rowsort
SELECT COALESCE ( 65, NULLIF ( + - 66, 68 ) ) AS col2, 73
----
65
73

query I rowsort
SELECT ALL + ( ( + + 98 ) ) col0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7776
SELECT - COUNT( * ) - 93
----
-94

skipif mysql # not compatible
query I rowsort label-7776
SELECT - COUNT ( * ) - 93
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7777
SELECT ALL - 95 * COALESCE ( + + 75, 47 + + 30 ) / - COUNT( + 19 ) * + CASE + + COUNT( * ) WHEN - 74 THEN - + 37 ELSE NULL END + + - 79 + - 76 + + COUNT( * ) * 13 / + - CAST( 95 AS SIGNED ) + - + SUM( ALL - - 36 ) * + 82 * + MIN( DISTINCT + 10 ) + - 13 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7777
SELECT ALL - 95 * COALESCE ( + + 75, 47 + + 30 ) / - COUNT ( + 19 ) * + CASE + + COUNT ( * ) WHEN - 74 THEN - + 37 ELSE NULL END + + - 79 + - 76 + + COUNT ( * ) * 13 / + - CAST ( 95 AS INTEGER ) + - + SUM ( ALL - - 36 ) * + 82 * + MIN ( DISTINCT + 10 ) + - 13 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7778
SELECT - COUNT( * ) * - + 33 * + 28
----
924

skipif mysql # not compatible
query I rowsort label-7778
SELECT - COUNT ( * ) * - + 33 * + 28
----
924

query I rowsort
SELECT DISTINCT - 86 * + - 87 * 73 * - 5 * - + 22
----
60080460

onlyif mysql # DIV for integer division: 
query I rowsort label-7780
SELECT DISTINCT + 13 DIV + 3
----
4

skipif mysql # not compatible
query I rowsort label-7780
SELECT DISTINCT + 13 / + 3
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-7781
SELECT DISTINCT NULLIF ( SUM( ALL - 99 ), - + 48 ), 54 + + + 27 * 66 + + + 71 - - MAX( ALL - + 83 ) * - + 78 col1
----
-99
8381

skipif mysql # not compatible
query II rowsort label-7781
SELECT DISTINCT NULLIF ( SUM ( ALL - 99 ), - + 48 ), 54 + + + 27 * 66 + + + 71 - - MAX ( ALL - + 83 ) * - + 78 col1
----
-99
8381

onlyif mysql # aggregate syntax: 
query I rowsort label-7782
SELECT - CASE SUM( DISTINCT + 24 ) WHEN - + 75 THEN 13 WHEN + 92 THEN - + SUM( - - 4 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7782
SELECT - CASE SUM ( DISTINCT + 24 ) WHEN - + 75 THEN 13 WHEN + 92 THEN - + SUM ( - - 4 ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7783
SELECT - - 46 * + CASE - - 70 WHEN + 17 + + 94 THEN NULL WHEN - 18 THEN NULL ELSE + 35 END AS col0, - CAST( NULL AS SIGNED )
----
1610
NULL

skipif mysql # not compatible
query II rowsort label-7783
SELECT - - 46 * + CASE - - 70 WHEN + 17 + + 94 THEN NULL WHEN - 18 THEN NULL ELSE + 35 END AS col0, - CAST ( NULL AS INTEGER )
----
1610
NULL

query I rowsort
SELECT CASE - 45 WHEN + 61 / - 87 THEN - 17 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL - 35 * - 83 * - + 3 AS col2
----
-8715

query II rowsort
SELECT - - ( - + 23 ), - 91 AS col1
----
-23
-91

query II rowsort
SELECT ( 72 ) AS col0, 17 + + 11 + - 53 AS col2
----
72
-25

query I rowsort
SELECT - 64 * - - COALESCE ( - + 37, 33 + 81 )
----
2368

query I rowsort
SELECT ALL - + 97 + + 85 + - - 61
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7790
SELECT ALL COUNT( * ) + + + NULLIF ( CASE - COUNT( * ) WHEN - 1 * + MIN( ALL - 80 ) THEN NULL ELSE 34 END, 60 )
----
35

skipif mysql # not compatible
query I rowsort label-7790
SELECT ALL COUNT ( * ) + + + NULLIF ( CASE - COUNT ( * ) WHEN - 1 * + MIN ( ALL - 80 ) THEN NULL ELSE 34 END, 60 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7791
SELECT DISTINCT - 52 + + + COUNT( 70 )
----
-51

skipif mysql # not compatible
query I rowsort label-7791
SELECT DISTINCT - 52 + + + COUNT ( 70 )
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-7792
SELECT ALL - 94 + - 73, - 19 * + COUNT( ALL - - 26 ) AS col1
----
-167
-19

skipif mysql # not compatible
query II rowsort label-7792
SELECT ALL - 94 + - 73, - 19 * + COUNT ( ALL - - 26 ) AS col1
----
-167
-19

query I rowsort
SELECT DISTINCT COALESCE ( + ( - + 94 ), + 39 )
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7794
SELECT - + 19 + CAST( NULL AS SIGNED ) + 39 + 5 + - 67 / 98
----
NULL

skipif mysql # not compatible
query I rowsort label-7794
SELECT - + 19 + CAST ( NULL AS INTEGER ) + 39 + 5 + - 67 / 98
----
NULL

query I rowsort
SELECT + + 13 * - 78 AS col1
----
-1014

onlyif mysql # aggregate syntax: 
query I rowsort label-7796
SELECT - + 69 + CASE COALESCE ( - 65, + COUNT( * ) / 12 * + - 76 + - 3 ) WHEN 19 + + COUNT( * ) THEN + - 15 - ( - 32 ) + + 3 ELSE NULL END + - COUNT( * ) / - 89
----
NULL

skipif mysql # not compatible
query I rowsort label-7796
SELECT - + 69 + CASE COALESCE ( - 65, + COUNT ( * ) / 12 * + - 76 + - 3 ) WHEN 19 + + COUNT ( * ) THEN + - 15 - ( - 32 ) + + 3 ELSE NULL END + - COUNT ( * ) / - 89
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7797
SELECT + + 64 / + NULLIF ( + - CASE - 45 WHEN CAST( NULL AS SIGNED ) THEN - 79 END, + + COUNT( * ) * + 5 + - + CASE - 19 WHEN - 22 * + + 90 * COUNT( * ) THEN - + 57 * - 33 + - - ( - NULLIF ( + CASE - 17 WHEN + + CAST( NULL AS SIGNED ) THEN - COALESCE ( - COUNT( * ), 62 ) * - 77 * + + 48 + 23 + - 14 + + ( + - 85 ) END, - NULLIF ( 68, - 75 ) * 76 ) ) + - COUNT( * ) / - 68 * + 77 * COUNT( * ) WHEN - 37 THEN NULL END + + 1 + - - 37 + + COUNT( * ) + - 73 * 80 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7797
SELECT + + 64 / + NULLIF ( + - CASE - 45 WHEN CAST ( NULL AS INTEGER ) THEN - 79 END, + + COUNT ( * ) * + 5 + - + CASE - 19 WHEN - 22 * + + 90 * COUNT ( * ) THEN - + 57 * - 33 + - - ( - NULLIF ( + CASE - 17 WHEN + + CAST ( NULL AS INTEGER ) THEN - COALESCE ( - COUNT ( * ), 62 ) * - 77 * + + 48 + 23 + - 14 + + ( + - 85 ) END, - NULLIF ( 68, - 75 ) * 76 ) ) + - COUNT ( * ) / - 68 * + 77 * COUNT ( * ) WHEN - 37 THEN NULL END + + 1 + - - 37 + + COUNT ( * ) + - 73 * 80 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7798
SELECT - 66 * - 14 * - + MAX( ALL + - 19 ) * - 94 AS col2
----
-1650264

skipif mysql # not compatible
query I rowsort label-7798
SELECT - 66 * - 14 * - + MAX ( ALL + - 19 ) * - 94 AS col2
----
-1650264

onlyif mysql # DIV for integer division: 
query I rowsort label-7799
SELECT + ( + - 70 ) DIV - 30 + 78 AS col0
----
80

skipif mysql # not compatible
query I rowsort label-7799
SELECT + ( + - 70 ) / - 30 + 78 AS col0
----
80

query I rowsort
SELECT ALL + 62 - + 23 col1
----
39

query I rowsort
SELECT 42 + + 37 + 79 + - 43 AS col1
----
115

onlyif mysql # DIV for integer division: 
query I rowsort label-7802
SELECT ALL - 98 - COALESCE ( - 42, + 28 * + 0 ) * 57 DIV 17 * + - 7 * 4
----
-4018

skipif mysql # not compatible
query I rowsort label-7802
SELECT ALL - 98 - COALESCE ( - 42, + 28 * + 0 ) * 57 / 17 * + - 7 * 4
----
-4018

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7803
SELECT DISTINCT CASE - 74 WHEN - + ( - 92 ) * + COUNT( * ) * + 96 * + 78 * - 41 THEN 50 ELSE + + 5 END * 39 + + 93 + 84 - + - COUNT( * ) - CASE - - 7 WHEN + + 7 - - 73 + - ( - + 34 ) THEN + + 43 / COALESCE ( - 73, MIN( 5 ) ) + - + CASE + 77 WHEN 59 THEN NULL WHEN + - 64 THEN NULL ELSE - 97 * - - NULLIF ( + 20, - COUNT( + - 81 ) ) / COALESCE ( - MIN( + NULLIF ( - CAST( - 25 AS SIGNED ), CAST( NULL AS SIGNED ) * + 46 + - + 35 ) ), - 68, 20 * + 7 ) + + 82 + + COUNT( * ) / 72 / + - 85 END END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7803
SELECT DISTINCT CASE - 74 WHEN - + ( - 92 ) * + COUNT ( * ) * + 96 * + 78 * - 41 THEN 50 ELSE + + 5 END * 39 + + 93 + 84 - + - COUNT ( * ) - CASE - - 7 WHEN + + 7 - - 73 + - ( - + 34 ) THEN + + 43 / COALESCE ( - 73, MIN ( 5 ) ) + - + CASE + 77 WHEN 59 THEN NULL WHEN + - 64 THEN NULL ELSE - 97 * - - NULLIF ( + 20, - COUNT ( + - 81 ) ) / COALESCE ( - MIN ( + NULLIF ( - CAST ( - 25 AS INTEGER ), CAST ( NULL AS INTEGER ) * + 46 + - + 35 ) ), - 68, 20 * + 7 ) + + 82 + + COUNT ( * ) / 72 / + - 85 END END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7804
SELECT ALL 35 * + COUNT( * )
----
35

skipif mysql # not compatible
query I rowsort label-7804
SELECT ALL 35 * + COUNT ( * )
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7805
SELECT CASE AVG ( DISTINCT 73 ) WHEN 36 THEN - 66 * - + CAST( NULL AS SIGNED ) WHEN - 69 THEN - SUM( + 55 ) * + 87 + SUM( DISTINCT 51 ) * + - ( + 59 ) END / + 44 / + 27 + + 24 * 47 AS col0, 84
----
NULL
84

skipif mysql # not compatible
query II rowsort label-7805
SELECT CASE AVG ( DISTINCT 73 ) WHEN 36 THEN - 66 * - + CAST ( NULL AS INTEGER ) WHEN - 69 THEN - SUM ( + 55 ) * + 87 + SUM ( DISTINCT 51 ) * + - ( + 59 ) END / + 44 / + 27 + + 24 * 47 AS col0, 84
----
NULL
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7806
SELECT CAST( + - 62 AS SIGNED ) + 36 * + + 51
----
1774

skipif mysql # not compatible
query I rowsort label-7806
SELECT CAST ( + - 62 AS INTEGER ) + 36 * + + 51
----
1774

query I rowsort
SELECT ALL 63 - + + 4 col1
----
59

query II rowsort
SELECT + 79 AS col0, 55 * ( - 85 ) * + - 90 col2
----
79
420750

query I rowsort
SELECT 58 * 77
----
4466

onlyif mysql # aggregate syntax: 
query II rowsort label-7810
SELECT DISTINCT - 0 AS col1, + COUNT( * ) AS col0
----
0
1

skipif mysql # not compatible
query II rowsort label-7810
SELECT DISTINCT - 0 AS col1, + COUNT ( * ) AS col0
----
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7811
SELECT COUNT( ALL + - NULLIF ( + ( + 46 ), 39 ) ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7811
SELECT COUNT ( ALL + - NULLIF ( + ( + 46 ), 39 ) ) + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 3 * 39
----
117

query I rowsort
SELECT ALL - 0 * - 29 AS col2
----
0

query I rowsort
SELECT ALL 21 * 7
----
147

onlyif mysql # aggregate syntax: 
query II rowsort label-7815
SELECT 2 col0, 83 + + MIN( ALL - - 40 )
----
2
123

skipif mysql # not compatible
query II rowsort label-7815
SELECT 2 col0, 83 + + MIN ( ALL - - 40 )
----
2
123

query I rowsort
SELECT 27 * 98 + + 28 AS col2
----
2674

query I rowsort
SELECT 99 - 68
----
31

query I rowsort
SELECT 9 * - 28 AS col0
----
-252

onlyif mysql # aggregate syntax: 
query I rowsort label-7819
SELECT DISTINCT + 82 + COUNT( * ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-7819
SELECT DISTINCT + 82 + COUNT ( * ) AS col1
----
83

query I rowsort
SELECT DISTINCT 20 + + 7 AS col0
----
27

query I rowsort
SELECT ALL + 64 + 78 * 13 AS col0
----
1078

query I rowsort
SELECT 99 + - 9 col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7823
SELECT 8 + + COUNT( * ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-7823
SELECT 8 + + COUNT ( * ) AS col2
----
9

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7824
SELECT ALL + CAST( NULL AS DECIMAL ) * - ( + COUNT( * ) / 61 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7824
SELECT ALL + CAST ( NULL AS REAL ) * - ( + COUNT ( * ) / 61 ) AS col1
----
NULL

query I rowsort
SELECT 24 + 84
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-7826
SELECT COUNT( ALL 66 ) * 6
----
6

skipif mysql # not compatible
query I rowsort label-7826
SELECT COUNT ( ALL 66 ) * 6
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7827
SELECT 33 + ( ( MAX( DISTINCT 63 ) ) + - 22 )
----
74

skipif mysql # not compatible
query I rowsort label-7827
SELECT 33 + ( ( MAX ( DISTINCT 63 ) ) + - 22 )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7828
SELECT COUNT( * ) + 90 * - 99 AS col0
----
-8909

skipif mysql # not compatible
query I rowsort label-7828
SELECT COUNT ( * ) + 90 * - 99 AS col0
----
-8909

query I rowsort
SELECT ALL + ( + 79 ) - 60 AS col2
----
19

query I rowsort
SELECT ALL 47 * 69
----
3243

query I rowsort
SELECT DISTINCT + 48 - - 31 AS col0
----
79

query I rowsort
SELECT ALL 23 - 47 AS col2
----
-24

query I rowsort
SELECT 49 * 47 AS col2
----
2303

onlyif mysql # DIV for integer division: 
query I rowsort label-7834
SELECT ALL + 30 DIV 97 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7834
SELECT ALL + 30 / 97 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7835
SELECT 39 * + SUM( DISTINCT - 87 )
----
-3393

skipif mysql # not compatible
query I rowsort label-7835
SELECT 39 * + SUM ( DISTINCT - 87 )
----
-3393

query I rowsort
SELECT DISTINCT 22 * 77
----
1694

onlyif mysql # aggregate syntax: 
query I rowsort label-7837
SELECT MIN( DISTINCT 88 ) - 53
----
35

skipif mysql # not compatible
query I rowsort label-7837
SELECT MIN ( DISTINCT 88 ) - 53
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7838
SELECT ALL 57 * + COUNT( * )
----
57

skipif mysql # not compatible
query I rowsort label-7838
SELECT ALL 57 * + COUNT ( * )
----
57

query I rowsort
SELECT ALL 16 * 53
----
848

query I rowsort
SELECT DISTINCT + 13 * 81 AS col2
----
1053

query I rowsort
SELECT CASE 18 WHEN 18 THEN - 77 ELSE NULL END * - 31
----
2387

query I rowsort
SELECT ALL + 95 + ( + 75 ) AS col2
----
170

query I rowsort
SELECT ALL 80 + 43 * + 88
----
3864

query I rowsort
SELECT + 3 * - 51 + - 78 * + 56
----
-4521

onlyif mysql # DIV for integer division: 
query I rowsort label-7845
SELECT 9 + + 50 DIV 84 AS col2
----
9

skipif mysql # not compatible
query I rowsort label-7845
SELECT 9 + + 50 / 84 AS col2
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7846
SELECT ALL - NULLIF ( COALESCE ( 71, 93 + + 66 * + 24, + NULLIF ( 30, - 93 * 69 + + 39 * 95 ) ), - 0 ) + COUNT( + 22 + + 24 ) / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7846
SELECT ALL - NULLIF ( COALESCE ( 71, 93 + + 66 * + 24, + NULLIF ( 30, - 93 * 69 + + 39 * 95 ) ), - 0 ) + COUNT ( + 22 + + 24 ) / + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + ( - 89 ) + - 64 AS col2
----
-153

query I rowsort
SELECT ALL - ( 42 ) col1
----
-42

query I rowsort
SELECT ALL 85 + + 44
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-7850
SELECT ALL - COALESCE ( + 99, MIN( ALL + 34 ), 13 * + ( + 11 * + SUM( + ( 50 ) ) ), 95 + - NULLIF ( - 46, NULLIF ( - 5, + NULLIF ( - 24, 6 / - ( ( - 23 ) ) ) + - 25 ) ) )
----
-99

skipif mysql # not compatible
query I rowsort label-7850
SELECT ALL - COALESCE ( + 99, MIN ( ALL + 34 ), 13 * + ( + 11 * + SUM ( + ( 50 ) ) ), 95 + - NULLIF ( - 46, NULLIF ( - 5, + NULLIF ( - 24, 6 / - ( ( - 23 ) ) ) + - 25 ) ) )
----
-99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7851
SELECT + CAST( NULL AS DECIMAL ) * ( 82 ) - - CASE WHEN - 91 >= 28 THEN 66 END * 6
----
NULL

skipif mysql # not compatible
query I rowsort label-7851
SELECT + CAST ( NULL AS REAL ) * ( 82 ) - - CASE WHEN - 91 >= 28 THEN 66 END * 6
----
NULL

query I rowsort
SELECT 71 * 56
----
3976

onlyif mysql # aggregate syntax: 
query I rowsort label-7853
SELECT DISTINCT - COUNT( - ( 93 ) ) + CASE + 0 - + 21 * 14 WHEN 61 THEN 14 + 33 * COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7853
SELECT DISTINCT - COUNT ( - ( 93 ) ) + CASE + 0 - + 21 * 14 WHEN 61 THEN 14 + 33 * COUNT ( * ) END AS col1
----
NULL

query I rowsort
SELECT ALL + CASE + 68 WHEN - 65 / + 68 THEN NULL WHEN + ( 37 ) THEN 31 - + 59 END - + ( 35 + - 58 ) * + 93
----
NULL

query I rowsort
SELECT + - 11 - 3
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-7856
SELECT + COUNT( * ) * + NULLIF ( 14, 34 * + 2 )
----
14

skipif mysql # not compatible
query I rowsort label-7856
SELECT + COUNT ( * ) * + NULLIF ( 14, 34 * + 2 )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7857
SELECT ALL - SUM( + 32 ) AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-7857
SELECT ALL - SUM ( + 32 ) AS col2
----
-32

query I rowsort
SELECT + + 36 - 97 * + 64 AS col1
----
-6172

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7859
SELECT ALL + CAST( - COALESCE ( 0, + 59 ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-7859
SELECT ALL + CAST ( - COALESCE ( 0, + 59 ) AS INTEGER )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7860
SELECT ALL NULLIF ( + 32, 30 * CAST( - 24 AS SIGNED ) )
----
32

skipif mysql # not compatible
query I rowsort label-7860
SELECT ALL NULLIF ( + 32, 30 * CAST ( - 24 AS INTEGER ) )
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7861
SELECT DISTINCT + COUNT( * ) DIV 66 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7861
SELECT DISTINCT + COUNT ( * ) / 66 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7862
SELECT - 84 DIV - 39 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-7862
SELECT - 84 / - 39 AS col2
----
2

query I rowsort
SELECT + 0 + - 14 AS col1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-7864
SELECT - COUNT( * ) - + - 59 * + 56 AS col1
----
3303

skipif mysql # not compatible
query I rowsort label-7864
SELECT - COUNT ( * ) - + - 59 * + 56 AS col1
----
3303

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7865
SELECT - 64 DIV ( CAST( - 59 AS SIGNED ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7865
SELECT - 64 / ( CAST ( - 59 AS INTEGER ) ) AS col0
----
1

query I rowsort
SELECT + 76 + + 67
----
143

query I rowsort
SELECT - 82 - - 67 AS col2
----
-15

query I rowsort
SELECT ALL + 44 * 19 * 92 AS col0
----
76912

query I rowsort
SELECT + 52 + 3
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7870
SELECT ALL NULLIF ( COUNT( * ), COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7870
SELECT ALL NULLIF ( COUNT ( * ), COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7871
SELECT ALL 74 * - 26 + COUNT( * )
----
-1923

skipif mysql # not compatible
query I rowsort label-7871
SELECT ALL 74 * - 26 + COUNT ( * )
----
-1923

query I rowsort
SELECT ALL + ( - 64 ) AS col1
----
-64

query I rowsort
SELECT - ( + 11 ) * + 38 AS col1
----
-418

query I rowsort
SELECT DISTINCT 37 * + 36 * + 47 + - ( - 50 ) * - 8 AS col2
----
62204

onlyif mysql # aggregate syntax: 
query I rowsort label-7875
SELECT ALL 12 * - + 52 + - COUNT( * ) AS col0
----
-625

skipif mysql # not compatible
query I rowsort label-7875
SELECT ALL 12 * - + 52 + - COUNT ( * ) AS col0
----
-625

onlyif mysql # aggregate syntax: 
query I rowsort label-7876
SELECT - COALESCE ( + + ( + 1 ), 75 + - 43 * 32, - 57 * + CASE - 17 WHEN 91 THEN NULL WHEN 45 THEN 86 WHEN 68 + 77 THEN - 35 + + 30 END ) * + COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7876
SELECT - COALESCE ( + + ( + 1 ), 75 + - 43 * 32, - 57 * + CASE - 17 WHEN 91 THEN NULL WHEN 45 THEN 86 WHEN 68 + 77 THEN - 35 + + 30 END ) * + COUNT ( * ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7877
SELECT + 44 + COUNT( * ) + + NULLIF ( 61, + COUNT( DISTINCT - COALESCE ( 54, 66 * 10 + ( 94 ) / - 31, + CAST( - 3 AS SIGNED ) ) ) * + CAST( - CAST( 79 AS SIGNED ) / COUNT( + 0 ) AS SIGNED ) )
----
106

skipif mysql # not compatible
query I rowsort label-7877
SELECT + 44 + COUNT ( * ) + + NULLIF ( 61, + COUNT ( DISTINCT - COALESCE ( 54, 66 * 10 + ( 94 ) / - 31, + CAST ( - 3 AS INTEGER ) ) ) * + CAST ( - CAST ( 79 AS INTEGER ) / COUNT ( + 0 ) AS INTEGER ) )
----
106

query I rowsort
SELECT COALESCE ( + 44, 23 )
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7879
SELECT ALL + ( - CAST( - 82 AS SIGNED ) ) * + 20 + - ( + ( - 74 ) ) AS col0
----
1714

skipif mysql # not compatible
query I rowsort label-7879
SELECT ALL + ( - CAST ( - 82 AS INTEGER ) ) * + 20 + - ( + ( - 74 ) ) AS col0
----
1714

query I rowsort
SELECT ALL - 96 * + 28 + 93 * 27
----
-177

query I rowsort
SELECT - 17 * + - 4 AS col1
----
68

query I rowsort
SELECT - - 9 * 11 col2
----
99

query I rowsort
SELECT ALL 90 * 14 + 6 AS col2
----
1266

query I rowsort
SELECT - - 6 + + + 68 * - 43 AS col2
----
-2918

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7885
SELECT + ( + 75 ) * CAST( 39 AS SIGNED )
----
2925

skipif mysql # not compatible
query I rowsort label-7885
SELECT + ( + 75 ) * CAST ( 39 AS INTEGER )
----
2925

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7886
SELECT + - 26 - + - 37 DIV COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-7886
SELECT + - 26 - + - 37 / COUNT ( * )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7887
SELECT DISTINCT - 16 * - COUNT( * ) - - 20
----
36

skipif mysql # not compatible
query I rowsort label-7887
SELECT DISTINCT - 16 * - COUNT ( * ) - - 20
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7888
SELECT - - COUNT( ALL - + 7 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7888
SELECT - - COUNT ( ALL - + 7 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7889
SELECT + 33 + + COALESCE ( + 11, + 13, + MIN( DISTINCT 0 ) - - COALESCE ( + 39 + 98, - CAST( NULL AS SIGNED ) ), - 42 )
----
44

skipif mysql # not compatible
query I rowsort label-7889
SELECT + 33 + + COALESCE ( + 11, + 13, + MIN ( DISTINCT 0 ) - - COALESCE ( + 39 + 98, - CAST ( NULL AS INTEGER ) ), - 42 )
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7890
SELECT DISTINCT - 60 - + COUNT( * ) DIV - 65 AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-7890
SELECT DISTINCT - 60 - + COUNT ( * ) / - 65 AS col1
----
-60

query I rowsort
SELECT ALL ( + - 65 ) AS col1
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-7892
SELECT + COUNT( * ) + - 85 col0
----
-84

skipif mysql # not compatible
query I rowsort label-7892
SELECT + COUNT ( * ) + - 85 col0
----
-84

query I rowsort
SELECT DISTINCT 85 * - COALESCE ( + 20, - ( + ( 87 ) ) ) AS col0
----
-1700

onlyif mysql # aggregate syntax: 
query I rowsort label-7894
SELECT + 60 + COUNT( * ) col1
----
61

skipif mysql # not compatible
query I rowsort label-7894
SELECT + 60 + COUNT ( * ) col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7895
SELECT - ( - + 25 ) * COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-7895
SELECT - ( - + 25 ) * COUNT ( * )
----
25

query I rowsort
SELECT + 73 * - 35 AS col1
----
-2555

query I rowsort
SELECT + - NULLIF ( - + 50, + 40 + 11 ) + 52
----
102

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7898
SELECT DISTINCT - 19 * 90 DIV CAST( ( 42 ) * - 26 AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-7898
SELECT DISTINCT - 19 * 90 / CAST ( ( 42 ) * - 26 AS INTEGER )
----
1

query I rowsort
SELECT + AVG ( DISTINCT + CASE - 32 WHEN 36 + 19 THEN 14 * 94 END ) + 74
----
NULL

query I rowsort
SELECT ALL 47 * + ( 51 ) * + 83 AS col0
----
198951

query I rowsort
SELECT - 58 + 24
----
-34

query II rowsort
SELECT 75 AS col0, - 93 * - - 55
----
75
-5115

onlyif mysql # aggregate syntax: 
query I rowsort label-7903
SELECT ALL 40 + + - COUNT( * ) + + + ( 40 ) * - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7903
SELECT ALL 40 + + - COUNT ( * ) + + + ( 40 ) * - COUNT ( * ) AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7904
SELECT DISTINCT COUNT( * ), 61 + - 62 + + COUNT( * ) DIV 53 AS col0
----
1
-1

skipif mysql # not compatible
query II rowsort label-7904
SELECT DISTINCT COUNT ( * ), 61 + - 62 + + COUNT ( * ) / 53 AS col0
----
1
-1

query I rowsort
SELECT + 22 * 17 AS col0
----
374

onlyif mysql # aggregate syntax: 
query I rowsort label-7906
SELECT ALL + COUNT( * ) + 81
----
82

skipif mysql # not compatible
query I rowsort label-7906
SELECT ALL + COUNT ( * ) + 81
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7907
SELECT ALL 4 + - MIN( DISTINCT - 85 )
----
89

skipif mysql # not compatible
query I rowsort label-7907
SELECT ALL 4 + - MIN ( DISTINCT - 85 )
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-7908
SELECT - 75 DIV + 78
----
0

skipif mysql # not compatible
query I rowsort label-7908
SELECT - 75 / + 78
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7909
SELECT COALESCE ( + + COUNT( * ), - + 44, + SUM( ALL + 5 ) DIV COUNT( * ) ) * 5 - - ( 81 ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-7909
SELECT COALESCE ( + + COUNT ( * ), - + 44, + SUM ( ALL + 5 ) / COUNT ( * ) ) * 5 - - ( 81 ) AS col0
----
86

query I rowsort
SELECT - 92 * 87 AS col1
----
-8004

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7911
SELECT ALL + COALESCE ( + + COALESCE ( - 27, + 59 + - ( - COUNT( * ) + - NULLIF ( - 71, COUNT( * ) ) ) * + 16 ), 29 * 85, 47 DIV 39 ) AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-7911
SELECT ALL + COALESCE ( + + COALESCE ( - 27, + 59 + - ( - COUNT ( * ) + - NULLIF ( - 71, COUNT ( * ) ) ) * + 16 ), 29 * 85, 47 / 39 ) AS col0
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7912
SELECT + CAST( + COALESCE ( + COUNT( * ), 19 ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7912
SELECT + CAST ( + COALESCE ( + COUNT ( * ), 19 ) AS INTEGER ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7913
SELECT ALL + SUM( 14 ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-7913
SELECT ALL + SUM ( 14 ) AS col1
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7914
SELECT ALL - CAST( NULL AS SIGNED ) / MIN( ALL + 44 ) * 0 + - ( 14 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7914
SELECT ALL - CAST ( NULL AS INTEGER ) / MIN ( ALL + 44 ) * 0 + - ( 14 ) AS col2
----
NULL

query I rowsort
SELECT ALL 38 * 58 col1
----
2204

onlyif mysql # DIV for integer division: 
query I rowsort label-7916
SELECT DISTINCT + 98 DIV + 68 + + 85 + - 56 * 46
----
-2490

skipif mysql # not compatible
query I rowsort label-7916
SELECT DISTINCT + 98 / + 68 + + 85 + - 56 * 46
----
-2490

onlyif mysql # aggregate syntax: 
query I rowsort label-7917
SELECT + MIN( DISTINCT + 85 ) * + - 97
----
-8245

skipif mysql # not compatible
query I rowsort label-7917
SELECT + MIN ( DISTINCT + 85 ) * + - 97
----
-8245

onlyif mysql # aggregate syntax: 
query I rowsort label-7918
SELECT MAX( ALL + 75 ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-7918
SELECT MAX ( ALL + 75 ) AS col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7919
SELECT - + COUNT( * ) * 26 * - + 52 + CASE + 18 WHEN + COALESCE ( 14, COUNT( * ) ) THEN NULL WHEN - MAX( 13 ) THEN 8 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7919
SELECT - + COUNT ( * ) * 26 * - + 52 + CASE + 18 WHEN + COALESCE ( 14, COUNT ( * ) ) THEN NULL WHEN - MAX ( 13 ) THEN 8 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7920
SELECT + CAST( - 39 AS SIGNED ) - 7 AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-7920
SELECT + CAST ( - 39 AS INTEGER ) - 7 AS col1
----
-46

query I rowsort
SELECT ALL - ( + 72 ) AS col0
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7922
SELECT - 64 + - CAST( NULL AS SIGNED ) * - - 71 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7922
SELECT - 64 + - CAST ( NULL AS INTEGER ) * - - 71 col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7923
SELECT ALL - 75 DIV + 34 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-7923
SELECT ALL - 75 / + 34 AS col0
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-7924
SELECT ALL - - 47, + 48 + + MIN( DISTINCT 81 ) AS col2
----
47
129

skipif mysql # not compatible
query II rowsort label-7924
SELECT ALL - - 47, + 48 + + MIN ( DISTINCT 81 ) AS col2
----
47
129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7925
SELECT - CAST( NULL AS SIGNED ) / - SUM( ALL 77 ) * - COUNT( * ) - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7925
SELECT - CAST ( NULL AS INTEGER ) / - SUM ( ALL 77 ) * - COUNT ( * ) - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7926
SELECT ALL - 31 DIV + - COUNT( ALL - - 12 )
----
31

skipif mysql # not compatible
query I rowsort label-7926
SELECT ALL - 31 / + - COUNT ( ALL - - 12 )
----
31

query I rowsort
SELECT 24 + - 17
----
7

query II rowsort
SELECT 49 AS col1, 89 + 42 * 45 AS col2
----
49
1979

query I rowsort
SELECT ALL - 81 * 15 * + 12 AS col2
----
-14580

onlyif mysql # DIV for integer division: 
query I rowsort label-7930
SELECT - 88 DIV - 47 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7930
SELECT - 88 / - 47 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7931
SELECT - MAX( DISTINCT 28 ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-7931
SELECT - MAX ( DISTINCT 28 ) AS col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-7932
SELECT + COUNT( 87 ) * COUNT( * ) col1
----
1

skipif mysql # not compatible
query I rowsort label-7932
SELECT + COUNT ( 87 ) * COUNT ( * ) col1
----
1

query I rowsort
SELECT - + 77 col2
----
-77

query II rowsort
SELECT - 32 AS col0, 51 AS col1
----
-32
51

onlyif mysql # DIV for integer division: 
query I rowsort label-7935
SELECT 42 DIV - 70
----
0

skipif mysql # not compatible
query I rowsort label-7935
SELECT 42 / - 70
----
0

query I rowsort
SELECT ALL 64 + + 9 + + + 41 + + 11
----
125

query I rowsort
SELECT 48 - + 74
----
-26

query I rowsort
SELECT 52 * 32 AS col2
----
1664

onlyif mysql # aggregate syntax: 
query I rowsort label-7939
SELECT ALL 41 + COUNT( * ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-7939
SELECT ALL 41 + COUNT ( * ) AS col2
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7940
SELECT DISTINCT - 26 + + - CAST( - COUNT( * ) AS SIGNED ) DIV 97
----
-26

skipif mysql # not compatible
query I rowsort label-7940
SELECT DISTINCT - 26 + + - CAST ( - COUNT ( * ) AS INTEGER ) / 97
----
-26

query I rowsort
SELECT 77 * - 30 * - 75 AS col2
----
173250

query II rowsort
SELECT ALL 5 + + 85, 79 col0
----
90
79

onlyif mysql # aggregate syntax: 
query II rowsort label-7943
SELECT 48 + + 90 AS col0, COALESCE ( - 26, + 55 * 46 + MAX( DISTINCT - 9 ), COUNT( * ) + - 94 )
----
138
-26

skipif mysql # not compatible
query II rowsort label-7943
SELECT 48 + + 90 AS col0, COALESCE ( - 26, + 55 * 46 + MAX ( DISTINCT - 9 ), COUNT ( * ) + - 94 )
----
138
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7944
SELECT ( 39 ) - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7944
SELECT ( 39 ) - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 67 + + 61 AS col2
----
128

query I rowsort
SELECT 2 - + - ( - 92 ) AS col1
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7947
SELECT ALL AVG ( - + 90 ) + + CAST( NULL AS SIGNED ) + 5 * 12 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7947
SELECT ALL AVG ( - + 90 ) + + CAST ( NULL AS INTEGER ) + 5 * 12 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7948
SELECT ALL 27 + - COUNT( DISTINCT + + 93 )
----
26

skipif mysql # not compatible
query I rowsort label-7948
SELECT ALL 27 + - COUNT ( DISTINCT + + 93 )
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7949
SELECT CAST( NULL AS SIGNED ) + + 21, 94 col0
----
NULL
94

skipif mysql # not compatible
query II rowsort label-7949
SELECT CAST ( NULL AS INTEGER ) + + 21, 94 col0
----
NULL
94

query I rowsort
SELECT ALL - CASE - 38 WHEN 96 + - 86 / - 22 THEN 94 WHEN 67 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7951
SELECT DISTINCT - ( + 37 ) DIV - 27 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7951
SELECT DISTINCT - ( + 37 ) / - 27 AS col2
----
1

query I rowsort
SELECT 83 * - 92 + + + 80
----
-7556

onlyif mysql # DIV for integer division: 
query I rowsort label-7953
SELECT 31 DIV 17
----
1

skipif mysql # not compatible
query I rowsort label-7953
SELECT 31 / 17
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7954
SELECT + 12 * - NULLIF ( + - 89, - + 42 + COUNT( - 79 ) * 3 )
----
1068

skipif mysql # not compatible
query I rowsort label-7954
SELECT + 12 * - NULLIF ( + - 89, - + 42 + COUNT ( - 79 ) * 3 )
----
1068

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7955
SELECT CAST( NULL AS SIGNED ) * + 28 AS col0, + 64 col1
----
NULL
64

skipif mysql # not compatible
query II rowsort label-7955
SELECT CAST ( NULL AS INTEGER ) * + 28 AS col0, + 64 col1
----
NULL
64

query I rowsort
SELECT ALL - - ( + + 3 ) AS col1
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7957
SELECT - - 29 DIV - - COUNT( * ) + COUNT( * ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-7957
SELECT - - 29 / - - COUNT ( * ) + COUNT ( * ) AS col2
----
30

query I rowsort
SELECT 97 * 10 AS col0
----
970

query I rowsort
SELECT - 53 + + 2 * ( 25 )
----
-3

query I rowsort
SELECT 0 * - + 94
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7961
SELECT DISTINCT 80 * MAX( ALL + 75 )
----
6000

skipif mysql # not compatible
query I rowsort label-7961
SELECT DISTINCT 80 * MAX ( ALL + 75 )
----
6000

query I rowsort
SELECT ALL - + NULLIF ( - 91, + - 82 - + 83 * + 69 ) AS col0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7963
SELECT + - COALESCE ( 96, + + 56 * COALESCE ( - 91, 50 ) * 62, - 9 * COUNT( * ) + 7 ) col1
----
-96

skipif mysql # not compatible
query I rowsort label-7963
SELECT + - COALESCE ( 96, + + 56 * COALESCE ( - 91, 50 ) * 62, - 9 * COUNT ( * ) + 7 ) col1
----
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7964
SELECT 56 + - MAX( ALL - - 10 ) DIV 65 * 45
----
56

skipif mysql # not compatible
query I rowsort label-7964
SELECT 56 + - MAX ( ALL - - 10 ) / 65 * 45
----
56

query I rowsort
SELECT 0 - + + 29 * + + 98 AS col2
----
-2842

onlyif mysql # aggregate syntax: 
query I rowsort label-7966
SELECT - 60 * + - 81 + + + COUNT( * ) AS col2
----
4861

skipif mysql # not compatible
query I rowsort label-7966
SELECT - 60 * + - 81 + + + COUNT ( * ) AS col2
----
4861

query I rowsort
SELECT ALL + 28 + - 84 * - + 30 AS col0
----
2548

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7968
SELECT 79 + CAST( - 29 AS SIGNED )
----
50

skipif mysql # not compatible
query I rowsort label-7968
SELECT 79 + CAST ( - 29 AS INTEGER )
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7969
SELECT ALL NULLIF ( - 5, CAST( + ( - COUNT( * ) ) AS SIGNED ) + - 47 * 52 ) + - 68
----
-73

skipif mysql # not compatible
query I rowsort label-7969
SELECT ALL NULLIF ( - 5, CAST ( + ( - COUNT ( * ) ) AS INTEGER ) + - 47 * 52 ) + - 68
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-7970
SELECT DISTINCT - 22 + + - COUNT( * )
----
-23

skipif mysql # not compatible
query I rowsort label-7970
SELECT DISTINCT - 22 + + - COUNT ( * )
----
-23

query I rowsort
SELECT DISTINCT + 67 * - - 83 AS col0
----
5561

query I rowsort
SELECT ALL - 13 + 87 + - - 54 AS col2
----
128

query I rowsort
SELECT 68 + - + 35
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7974
SELECT ALL - 40 + + COUNT( * ) * + - 57 AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-7974
SELECT ALL - 40 + + COUNT ( * ) * + - 57 AS col1
----
-97

query I rowsort
SELECT 48 * + COALESCE ( - 95, - 87 ) AS col2
----
-4560

query I rowsort
SELECT 83 * + 31
----
2573

query I rowsort
SELECT DISTINCT + 68 * + 41 AS col2
----
2788

onlyif mysql # aggregate syntax: 
query I rowsort label-7978
SELECT ALL MAX( DISTINCT - 14 )
----
-14

skipif mysql # not compatible
query I rowsort label-7978
SELECT ALL MAX ( DISTINCT - 14 )
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7979
SELECT 67 DIV - ( + ( + ( - MAX( DISTINCT - 42 ) ) ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7979
SELECT 67 / - ( + ( + ( - MAX ( DISTINCT - 42 ) ) ) ) AS col0
----
-1

query II rowsort
SELECT 73 * - ( + 8 ) AS col0, - 74 + + 28
----
-584
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-7981
SELECT 12 + COUNT( * ) - 78
----
-65

skipif mysql # not compatible
query I rowsort label-7981
SELECT 12 + COUNT ( * ) - 78
----
-65

query I rowsort
SELECT ALL - 5 * - 57
----
285

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7983
SELECT ALL MAX( - + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7983
SELECT ALL MAX ( - + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7984
SELECT DISTINCT 86 - + - COUNT( * ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-7984
SELECT DISTINCT 86 - + - COUNT ( * ) AS col1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7985
SELECT DISTINCT MAX( ALL - - 54 )
----
54

skipif mysql # not compatible
query I rowsort label-7985
SELECT DISTINCT MAX ( ALL - - 54 )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-7986
SELECT ALL - 78 - 17 + + ( - COUNT( * ) ) AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-7986
SELECT ALL - 78 - 17 + + ( - COUNT ( * ) ) AS col0
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7987
SELECT DISTINCT COUNT( * ) * + NULLIF ( - 77, CASE 95 WHEN - 77 THEN NULL ELSE - COUNT( * ) END * + NULLIF ( CAST( NULL AS SIGNED ) * 16, - 25 + + 18 ) ) AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-7987
SELECT DISTINCT COUNT ( * ) * + NULLIF ( - 77, CASE 95 WHEN - 77 THEN NULL ELSE - COUNT ( * ) END * + NULLIF ( CAST ( NULL AS INTEGER ) * 16, - 25 + + 18 ) ) AS col1
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7988
SELECT ALL CASE + 59 WHEN 47 + + CAST( - + 17 AS SIGNED ) THEN NULL ELSE 21 END AS col2
----
21

skipif mysql # not compatible
query I rowsort label-7988
SELECT ALL CASE + 59 WHEN 47 + + CAST ( - + 17 AS INTEGER ) THEN NULL ELSE 21 END AS col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7989
SELECT 92 - COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-7989
SELECT 92 - COUNT ( * )
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7990
SELECT - COUNT( * ) * 20 DIV 5
----
-4

skipif mysql # not compatible
query I rowsort label-7990
SELECT - COUNT ( * ) * 20 / 5
----
-4

query I rowsort
SELECT - NULLIF ( - + 15, 38 ) * - 67 - 6 AS col2
----
-1011

onlyif mysql # aggregate syntax: 
query I rowsort label-7992
SELECT DISTINCT + COALESCE ( + - 32, 42 * CASE - 62 WHEN COUNT( * ) THEN + 5 WHEN 35 THEN NULL ELSE + 58 END - - COUNT( * ) * 74 ) * COUNT( * ) AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-7992
SELECT DISTINCT + COALESCE ( + - 32, 42 * CASE - 62 WHEN COUNT ( * ) THEN + 5 WHEN 35 THEN NULL ELSE + 58 END - - COUNT ( * ) * 74 ) * COUNT ( * ) AS col0
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7993
SELECT + + CASE - + 6 WHEN + + 46 THEN NULL WHEN ( + COUNT( * ) ) THEN NULL WHEN 44 + + 22 THEN CASE + 87 WHEN + 45 THEN - CAST( 47 AS SIGNED ) - + 75 END * 52 ELSE - 96 / - 28 + ( + CAST( NULL AS DECIMAL ) ) END / COALESCE ( - 63 + - 2, 47, 75 + 77 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7993
SELECT + + CASE - + 6 WHEN + + 46 THEN NULL WHEN ( + COUNT ( * ) ) THEN NULL WHEN 44 + + 22 THEN CASE + 87 WHEN + 45 THEN - CAST ( 47 AS INTEGER ) - + 75 END * 52 ELSE - 96 / - 28 + ( + CAST ( NULL AS REAL ) ) END / COALESCE ( - 63 + - 2, 47, 75 + 77 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7994
SELECT ALL + - COUNT( * ) * + - 61 AS col1
----
61

skipif mysql # not compatible
query I rowsort label-7994
SELECT ALL + - COUNT ( * ) * + - 61 AS col1
----
61

query I rowsort
SELECT + - 95 - - 11
----
-84

query I rowsort
SELECT + 26 * 7
----
182

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7997
SELECT - COUNT( * ) * - 9 + + 0 * - COUNT( - 49 ) + COUNT( * ) DIV 22
----
9

skipif mysql # not compatible
query I rowsort label-7997
SELECT - COUNT ( * ) * - 9 + + 0 * - COUNT ( - 49 ) + COUNT ( * ) / 22
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-7998
SELECT + 79 DIV + 46
----
1

skipif mysql # not compatible
query I rowsort label-7998
SELECT + 79 / + 46
----
1

query I rowsort
SELECT - - 37 + 93 AS col2
----
130

query I rowsort
SELECT DISTINCT - 24 * - + 50 + - NULLIF ( + 94, 54 * - 20 ) col1
----
1106

onlyif mysql # aggregate syntax: 
query I rowsort label-8001
SELECT - + MAX( ALL 25 ) * - 29 + 81 AS col2
----
806

skipif mysql # not compatible
query I rowsort label-8001
SELECT - + MAX ( ALL 25 ) * - 29 + 81 AS col2
----
806

onlyif mysql # aggregate syntax: 
query I rowsort label-8002
SELECT ALL COUNT( - + 93 ) * + 22 * - 21 + 12
----
-450

skipif mysql # not compatible
query I rowsort label-8002
SELECT ALL COUNT ( - + 93 ) * + 22 * - 21 + 12
----
-450

query I rowsort
SELECT DISTINCT - 40 * - + 16
----
640

query I rowsort
SELECT DISTINCT + - 40 * + + 79 + - + 30 col1
----
-3190

onlyif mysql # aggregate syntax: 
query I rowsort label-8005
SELECT ALL - 81 * + MAX( 42 )
----
-3402

skipif mysql # not compatible
query I rowsort label-8005
SELECT ALL - 81 * + MAX ( 42 )
----
-3402

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8006
SELECT DISTINCT 53 * CAST( NULL AS SIGNED ) * + MIN( ALL NULLIF ( + 77, + 15 ) ) * + CAST( 71 + COUNT( * ) AS DECIMAL ) + - 52 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8006
SELECT DISTINCT 53 * CAST ( NULL AS INTEGER ) * + MIN ( ALL NULLIF ( + 77, + 15 ) ) * + CAST ( 71 + COUNT ( * ) AS REAL ) + - 52 AS col2
----
NULL

query II rowsort
SELECT - 3 col0, ( 46 ) AS col2
----
-3
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8008
SELECT ALL MAX( DISTINCT 32 )
----
32

skipif mysql # not compatible
query I rowsort label-8008
SELECT ALL MAX ( DISTINCT 32 )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8009
SELECT ALL - COUNT( * ) - - ( + COUNT( * ) ) + - 85 * 85 * - - 23 + - 84
----
-166259

skipif mysql # not compatible
query I rowsort label-8009
SELECT ALL - COUNT ( * ) - - ( + COUNT ( * ) ) + - 85 * 85 * - - 23 + - 84
----
-166259

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8010
SELECT DISTINCT + COUNT( * ) * CAST( 4 AS SIGNED ) * + NULLIF ( + 18, + - 66 + - COUNT( * ) )
----
72

skipif mysql # not compatible
query I rowsort label-8010
SELECT DISTINCT + COUNT ( * ) * CAST ( 4 AS INTEGER ) * + NULLIF ( + 18, + - 66 + - COUNT ( * ) )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8011
SELECT DISTINCT MAX( DISTINCT - 18 )
----
-18

skipif mysql # not compatible
query I rowsort label-8011
SELECT DISTINCT MAX ( DISTINCT - 18 )
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8012
SELECT ALL + 19 * - - ( + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8012
SELECT ALL + 19 * - - ( + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query II rowsort
SELECT ALL + 46 - - 9 AS col0, 24 AS col0
----
55
24

onlyif mysql # aggregate syntax: 
query II rowsort label-8014
SELECT DISTINCT COUNT( * ), 1 * + - CASE WHEN NOT ( + 14 ) IN ( - 28 ) THEN SUM( + 66 ) END AS col2
----
1
-66

skipif mysql # not compatible
query II rowsort label-8014
SELECT DISTINCT COUNT ( * ), 1 * + - CASE WHEN NOT ( + 14 ) IN ( - 28 ) THEN SUM ( + 66 ) END AS col2
----
1
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-8015
SELECT + MIN( - + 49 ) + + - 87
----
-136

skipif mysql # not compatible
query I rowsort label-8015
SELECT + MIN ( - + 49 ) + + - 87
----
-136

query I rowsort
SELECT DISTINCT COALESCE ( - - 90, 72 * 18 + 37 + 55 + 92 )
----
90

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8017
SELECT - CAST( + - 82 AS SIGNED ) + + ( 63 ) DIV 85
----
82

skipif mysql # not compatible
query I rowsort label-8017
SELECT - CAST ( + - 82 AS INTEGER ) + + ( 63 ) / 85
----
82

query I rowsort
SELECT - 50 + - 14 AS col1
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-8019
SELECT + 56 - 37 + + 79 * - COUNT( * ) AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-8019
SELECT + 56 - 37 + + 79 * - COUNT ( * ) AS col1
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-8020
SELECT ALL - COUNT( * ) col1, ( - + 46 ) AS col2
----
-1
-46

skipif mysql # not compatible
query II rowsort label-8020
SELECT ALL - COUNT ( * ) col1, ( - + 46 ) AS col2
----
-1
-46

query I rowsort
SELECT - + CASE + 43 WHEN + 49 THEN NULL WHEN - 20 THEN NULL ELSE 11 END * - 26 AS col1
----
286

query I rowsort
SELECT - 83 * - 93 AS col2
----
7719

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8023
SELECT - - 49 + + 22 DIV - + COALESCE ( 99, - COUNT( * ) ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-8023
SELECT - - 49 + + 22 / - + COALESCE ( 99, - COUNT ( * ) ) AS col1
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8024
SELECT ALL + - 57, 14 + - SUM( - CAST( 81 AS SIGNED ) ) col1
----
-57
95

skipif mysql # not compatible
query II rowsort label-8024
SELECT ALL + - 57, 14 + - SUM ( - CAST ( 81 AS INTEGER ) ) col1
----
-57
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8025
SELECT DISTINCT + SUM( ALL - 18 ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-8025
SELECT DISTINCT + SUM ( ALL - 18 ) AS col2
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8026
SELECT ALL + + COUNT( * ) / + ( + CAST( NULL AS SIGNED ) ) + - 85 * 81
----
NULL

skipif mysql # not compatible
query I rowsort label-8026
SELECT ALL + + COUNT ( * ) / + ( + CAST ( NULL AS INTEGER ) ) + - 85 * 81
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8027
SELECT - + MAX( DISTINCT - - 52 ) * NULLIF ( + + 82, - 14 ) + + ( + 21 ) AS col1
----
-4243

skipif mysql # not compatible
query I rowsort label-8027
SELECT - + MAX ( DISTINCT - - 52 ) * NULLIF ( + + 82, - 14 ) + + ( + 21 ) AS col1
----
-4243

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8028
SELECT - CASE + + 55 WHEN + CAST( - - 97 AS SIGNED ) / 20 THEN - + ( - CAST( + COUNT( * ) AS SIGNED ) ) WHEN + COUNT( DISTINCT 66 ) THEN NULL ELSE NULL END / 7 + - 26 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8028
SELECT - CASE + + 55 WHEN + CAST ( - - 97 AS INTEGER ) / 20 THEN - + ( - CAST ( + COUNT ( * ) AS INTEGER ) ) WHEN + COUNT ( DISTINCT 66 ) THEN NULL ELSE NULL END / 7 + - 26 AS col2
----
NULL

query I rowsort
SELECT ALL - 2 * 41
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-8030
SELECT + - 91 DIV - + 11
----
8

skipif mysql # not compatible
query I rowsort label-8030
SELECT + - 91 / - + 11
----
8

query I rowsort
SELECT + ( - - 62 )
----
62

query I rowsort
SELECT ALL 88 * - 79 + - 92 - + + 5 * ( - ( + 43 ) ) AS col1
----
-6829

onlyif mysql # aggregate syntax: 
query I rowsort label-8033
SELECT + 99 + - + COUNT( * ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-8033
SELECT + 99 + - + COUNT ( * ) AS col2
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8034
SELECT DISTINCT + - MIN( DISTINCT + + 34 ) * - CAST( NULL AS SIGNED ) * - 63 * + 59 * - 96 + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-8034
SELECT DISTINCT + - MIN ( DISTINCT + + 34 ) * - CAST ( NULL AS INTEGER ) * - 63 * + 59 * - 96 + 91
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8035
SELECT + CASE COALESCE ( 72, - ( 26 ) * - 32 + - ( 37 ) ) WHEN - COUNT( * ) + 71 * + ( + 74 ) THEN NULL WHEN 42 - + SUM( - 97 ) THEN NULL WHEN 42 THEN 5 ELSE + ( - COUNT( ALL + ( + 40 ) ) ) END AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8035
SELECT + CASE COALESCE ( 72, - ( 26 ) * - 32 + - ( 37 ) ) WHEN - COUNT ( * ) + 71 * + ( + 74 ) THEN NULL WHEN 42 - + SUM ( - 97 ) THEN NULL WHEN 42 THEN 5 ELSE + ( - COUNT ( ALL + ( + 40 ) ) ) END AS col0
----
-1

query I rowsort
SELECT - 11 + - - ( + - 11 ) + - 92 * + + 59 AS col0
----
-5450

query I rowsort
SELECT - 70 * 56 * 10 AS col0
----
-39200

onlyif mysql # aggregate syntax: 
query I rowsort label-8038
SELECT + 93 - 99 + - 78 * + 81 * + + COUNT( * ) * 26 AS col0
----
-164274

skipif mysql # not compatible
query I rowsort label-8038
SELECT + 93 - 99 + - 78 * + 81 * + + COUNT ( * ) * 26 AS col0
----
-164274

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8039
SELECT + CAST( ( + - 4 ) AS SIGNED ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-8039
SELECT + CAST ( ( + - 4 ) AS INTEGER ) AS col2
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8040
SELECT + CASE - - COUNT( * ) WHEN + 65 * + CAST( + - MIN( - ( - + 26 ) ) AS SIGNED ) - + 43 + 92 * + 91 THEN - 91 / - NULLIF ( - NULLIF ( 13, - 62 - + 8 ) / + 53, CAST( + 12 AS SIGNED ) * AVG ( ALL + 30 ) + 5 * + 89 ) + - NULLIF ( SUM( 64 ), + 43 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8040
SELECT + CASE - - COUNT ( * ) WHEN + 65 * + CAST ( + - MIN ( - ( - + 26 ) ) AS INTEGER ) - + 43 + 92 * + 91 THEN - 91 / - NULLIF ( - NULLIF ( 13, - 62 - + 8 ) / + 53, CAST ( + 12 AS INTEGER ) * AVG ( ALL + 30 ) + 5 * + 89 ) + - NULLIF ( SUM ( 64 ), + 43 ) END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8041
SELECT ALL ( - 84 ) * + CAST( NULL AS SIGNED ) + + 18 - + CAST( - + ( - + 46 ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8041
SELECT ALL ( - 84 ) * + CAST ( NULL AS INTEGER ) + + 18 - + CAST ( - + ( - + 46 ) AS INTEGER )
----
NULL

query II rowsort
SELECT ALL 34 * 2 AS col0, 75 AS col2
----
68
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8043
SELECT + 40 * + NULLIF ( MIN( + 58 ), + 70 + - 1 ) AS col0
----
2320

skipif mysql # not compatible
query I rowsort label-8043
SELECT + 40 * + NULLIF ( MIN ( + 58 ), + 70 + - 1 ) AS col0
----
2320

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8044
SELECT ALL 46 / + CAST( NULL AS SIGNED ), 65 AS col0
----
NULL
65

skipif mysql # not compatible
query II rowsort label-8044
SELECT ALL 46 / + CAST ( NULL AS INTEGER ), 65 AS col0
----
NULL
65

query I rowsort
SELECT + 57 + + 53 AS col2
----
110

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8046
SELECT - CAST( - 55 AS SIGNED ) AS col2, - 41 AS col1, + 47 * 42 AS col1
----
55
-41
1974

skipif mysql # not compatible
query III rowsort label-8046
SELECT - CAST ( - 55 AS INTEGER ) AS col2, - 41 AS col1, + 47 * 42 AS col1
----
55
-41
1974

onlyif mysql # aggregate syntax: 
query II rowsort label-8047
SELECT ALL COUNT( * ) * - 74 AS col0, 25 AS col0
----
-74
25

skipif mysql # not compatible
query II rowsort label-8047
SELECT ALL COUNT ( * ) * - 74 AS col0, 25 AS col0
----
-74
25

query I rowsort
SELECT + ( 38 ) + - 69 * + + 33 AS col2
----
-2239

onlyif mysql # aggregate syntax: 
query I rowsort label-8049
SELECT DISTINCT SUM( + 80 ) * + + 21 AS col0
----
1680

skipif mysql # not compatible
query I rowsort label-8049
SELECT DISTINCT SUM ( + 80 ) * + + 21 AS col0
----
1680

onlyif mysql # aggregate syntax: 
query I rowsort label-8050
SELECT SUM( + - ( - - ( - - 0 ) ) ) col1
----
0

skipif mysql # not compatible
query I rowsort label-8050
SELECT SUM ( + - ( - - ( - - 0 ) ) ) col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8051
SELECT COUNT( DISTINCT - 85 ) AS col0, COUNT( * ) * + - 81 AS col2
----
1
-81

skipif mysql # not compatible
query II rowsort label-8051
SELECT COUNT ( DISTINCT - 85 ) AS col0, COUNT ( * ) * + - 81 AS col2
----
1
-81

query I rowsort
SELECT 27 + - - 65
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8053
SELECT CAST( NULL AS SIGNED ) * + AVG ( ALL + - 74 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8053
SELECT CAST ( NULL AS INTEGER ) * + AVG ( ALL + - 74 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8054
SELECT 37 + + - 61 - + ( 86 ) * + 79 + + - 44 + - 10 / - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8054
SELECT 37 + + - 61 - + ( 86 ) * + 79 + + - 44 + - 10 / - CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8055
SELECT CAST( NULL AS DECIMAL ) / 93 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8055
SELECT CAST ( NULL AS REAL ) / 93 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8056
SELECT DISTINCT - COUNT( - - 15 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8056
SELECT DISTINCT - COUNT ( - - 15 ) AS col2
----
-1

query I rowsort
SELECT ALL - 58 + - 2 * 26
----
-110

query I rowsort
SELECT ALL + + 66 + 29 AS col0
----
95

query I rowsort
SELECT DISTINCT - + 3 + - 26 AS col2
----
-29

query II rowsort
SELECT DISTINCT - + 87 * 5, - 28 AS col0
----
-435
-28

query I rowsort
SELECT + 25 - - 75 * ( + 48 ) AS col1
----
3625

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8062
SELECT - - COUNT( ALL + CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-8062
SELECT - - COUNT ( ALL + CAST ( NULL AS INTEGER ) )
----
0

query I rowsort
SELECT ALL + - 74 + - + 35 + - 60 AS col2
----
-169

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8064
SELECT + CAST( NULL AS SIGNED ) - 69 + - 98 + + MAX( DISTINCT + 97 ) / - 89 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8064
SELECT + CAST ( NULL AS INTEGER ) - 69 + - 98 + + MAX ( DISTINCT + 97 ) / - 89 AS col0
----
NULL

query II rowsort
SELECT ( - 89 ) col1, - 98 + - 87 AS col0
----
-89
-185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8066
SELECT ALL + 62 + - + COUNT( * ) + - 63 + - CAST( + 11 AS SIGNED ), + 77 * - SUM( + 84 ) DIV + COUNT( * ) col2
----
-13
-6468

skipif mysql # not compatible
query II rowsort label-8066
SELECT ALL + 62 + - + COUNT ( * ) + - 63 + - CAST ( + 11 AS INTEGER ), + 77 * - SUM ( + 84 ) / + COUNT ( * ) col2
----
-13
-6468

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8067
SELECT ALL - - NULLIF ( + CASE WHEN NOT COALESCE ( + 2, SUM( DISTINCT CAST( NULL AS SIGNED ) ) ) NOT BETWEEN ( - 4 ) AND 25 THEN ( MAX( ALL 22 ) ) ELSE 69 END, MAX( + 90 ) * - 8 )
----
22

skipif mysql # not compatible
query I rowsort label-8067
SELECT ALL - - NULLIF ( + CASE WHEN NOT COALESCE ( + 2, SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) ) NOT BETWEEN ( - 4 ) AND 25 THEN ( MAX ( ALL 22 ) ) ELSE 69 END, MAX ( + 90 ) * - 8 )
----
22

query I rowsort
SELECT ALL - - 86 + 13 - - 33 * - - 16 * - 91 + + 32
----
-47917

onlyif mysql # aggregate syntax: 
query I rowsort label-8069
SELECT - ( 35 ) * COUNT( * ) - - - 1 + - + ( + - 11 ) - 19 + 39 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-8069
SELECT - ( 35 ) * COUNT ( * ) - - - 1 + - + ( + - 11 ) - 19 + 39 AS col1
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8070
SELECT ALL - - CAST( - COUNT( * ) AS SIGNED ) AS col1, - COUNT( * ) AS col1
----
-1
-1

skipif mysql # not compatible
query II rowsort label-8070
SELECT ALL - - CAST ( - COUNT ( * ) AS INTEGER ) AS col1, - COUNT ( * ) AS col1
----
-1
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8071
SELECT ALL COUNT( * ) * + + 83 * NULLIF ( + 8, + 87 * - - 70 * - - ( COUNT( * ) ) ) DIV + ( 55 ) + - COUNT( * ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-8071
SELECT ALL COUNT ( * ) * + + 83 * NULLIF ( + 8, + 87 * - - 70 * - - ( COUNT ( * ) ) ) / + ( 55 ) + - COUNT ( * ) AS col0
----
11

query I rowsort
SELECT + NULLIF ( - 38, + 86 ) AS col1
----
-38

query I rowsort
SELECT 96 * + 34 AS col1
----
3264

onlyif mysql # aggregate syntax: 
query I rowsort label-8074
SELECT 3 + COUNT( * ) * + 4 * ( - 32 )
----
-125

skipif mysql # not compatible
query I rowsort label-8074
SELECT 3 + COUNT ( * ) * + 4 * ( - 32 )
----
-125

onlyif mysql # aggregate syntax: 
query II rowsort label-8075
SELECT ALL - 41, + SUM( DISTINCT + 8 ) * - 94 - COUNT( * ) AS col0
----
-41
-753

skipif mysql # not compatible
query II rowsort label-8075
SELECT ALL - 41, + SUM ( DISTINCT + 8 ) * - 94 - COUNT ( * ) AS col0
----
-41
-753

query I rowsort
SELECT DISTINCT 93 * - 47 AS col1
----
-4371

onlyif mysql # aggregate syntax: 
query I rowsort label-8077
SELECT DISTINCT - 64 * + COUNT( * )
----
-64

skipif mysql # not compatible
query I rowsort label-8077
SELECT DISTINCT - 64 * + COUNT ( * )
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-8078
SELECT 86 * + 93 DIV 93 * - - 2 AS col1
----
172

skipif mysql # not compatible
query I rowsort label-8078
SELECT 86 * + 93 / 93 * - - 2 AS col1
----
172

query II rowsort
SELECT DISTINCT - 60 AS col0, - 29 AS col2
----
-60
-29

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8080
SELECT 59 AS col0, + ( - 98 ) - 82 * - + 41 + + - CAST( NULL AS SIGNED ) * 77 / 52 * 34 + - 95
----
59
NULL

skipif mysql # not compatible
query II rowsort label-8080
SELECT 59 AS col0, + ( - 98 ) - 82 * - + 41 + + - CAST ( NULL AS INTEGER ) * 77 / 52 * 34 + - 95
----
59
NULL

query I rowsort
SELECT ALL 81 / - CASE 22 WHEN + 8 * - 23 * AVG ( - - 80 ) THEN + 42 + - 98 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8082
SELECT CAST( + + 55 AS SIGNED ) * - 95 + - 28 + + 54 + + + 57 * - 48 * CAST( + 84 AS SIGNED ) * 55
----
-12645519

skipif mysql # not compatible
query I rowsort label-8082
SELECT CAST ( + + 55 AS INTEGER ) * - 95 + - 28 + + 54 + + + 57 * - 48 * CAST ( + 84 AS INTEGER ) * 55
----
-12645519

onlyif mysql # DIV for integer division: 
query I rowsort label-8083
SELECT 31 DIV + 86
----
0

skipif mysql # not compatible
query I rowsort label-8083
SELECT 31 / + 86
----
0

query II rowsort
SELECT 2 + - + ( 53 ) AS col0, - 68 AS col0
----
-51
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-8085
SELECT NULLIF ( - + COUNT( * ), 47 * - 95 + + 34 ) * - - 55 AS col2, 81 AS col2
----
-55
81

skipif mysql # not compatible
query II rowsort label-8085
SELECT NULLIF ( - + COUNT ( * ), 47 * - 95 + + 34 ) * - - 55 AS col2, 81 AS col2
----
-55
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8086
SELECT ALL COUNT( * ) + + 63 + - 23 + - 40 * + - 96
----
3881

skipif mysql # not compatible
query I rowsort label-8086
SELECT ALL COUNT ( * ) + + 63 + - 23 + - 40 * + - 96
----
3881

onlyif mysql # aggregate syntax: 
query I rowsort label-8087
SELECT COUNT( * ) - MIN( + 62 )
----
-61

skipif mysql # not compatible
query I rowsort label-8087
SELECT COUNT ( * ) - MIN ( + 62 )
----
-61

query II rowsort
SELECT ALL 46 AS col1, - 18
----
46
-18

query I rowsort
SELECT - 56 + - ( - 22 )
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8090
SELECT DISTINCT + 85 + + - 15 * - MIN( + 87 ) * CASE + + CASE - - 84 WHEN + - 69 + - 72 THEN - CAST( NULL AS SIGNED ) * - 55 + + 33 WHEN - 19 * 36 THEN + CASE + 16 WHEN 36 / 17 THEN NULL ELSE - 16 END WHEN - 41 THEN 54 + 98 ELSE - 48 * 39 END WHEN MIN( + 84 ) * ( ( 34 ) * 15 ) THEN CAST( NULL AS SIGNED ) * - 83 + 87 WHEN 5 THEN 50 WHEN 25 THEN NULL WHEN + COUNT( * ) + 77 * + 4 THEN NULL END + + ( 32 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8090
SELECT DISTINCT + 85 + + - 15 * - MIN ( + 87 ) * CASE + + CASE - - 84 WHEN + - 69 + - 72 THEN - CAST ( NULL AS INTEGER ) * - 55 + + 33 WHEN - 19 * 36 THEN + CASE + 16 WHEN 36 / 17 THEN NULL ELSE - 16 END WHEN - 41 THEN 54 + 98 ELSE - 48 * 39 END WHEN MIN ( + 84 ) * ( ( 34 ) * 15 ) THEN CAST ( NULL AS INTEGER ) * - 83 + 87 WHEN 5 THEN 50 WHEN 25 THEN NULL WHEN + COUNT ( * ) + 77 * + 4 THEN NULL END + + ( 32 ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-8091
SELECT ALL + 27 + ( + + 17 ) AS col1, - 32 col0, + 56 + - + NULLIF ( - 68, - + COUNT( * ) ) * - CAST( - ( - 65 ) AS SIGNED )
----
44
-32
-4364

skipif mysql # not compatible
query III rowsort label-8091
SELECT ALL + 27 + ( + + 17 ) AS col1, - 32 col0, + 56 + - + NULLIF ( - 68, - + COUNT ( * ) ) * - CAST ( - ( - 65 ) AS INTEGER )
----
44
-32
-4364

query I rowsort
SELECT 0 + 2
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8093
SELECT + 23 + - CAST( + 31 AS SIGNED )
----
-8

skipif mysql # not compatible
query I rowsort label-8093
SELECT + 23 + - CAST ( + 31 AS INTEGER )
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8094
SELECT ( 44 ) - - - 89 + CASE - 56 WHEN + + 99 * COUNT( * ) - 86 THEN + 87 + - COUNT( * ) * 95 ELSE NULL END + 50 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8094
SELECT ( 44 ) - - - 89 + CASE - 56 WHEN + + 99 * COUNT ( * ) - 86 THEN + 87 + - COUNT ( * ) * 95 ELSE NULL END + 50 col2
----
NULL

query II rowsort
SELECT ALL + 33 AS col1, 89
----
33
89

query I rowsort
SELECT NULLIF ( - ( CASE + - 37 WHEN 93 THEN - 18 * + 80 WHEN + + 83 THEN - 58 * ( + 22 ) END ), + 30 ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8097
SELECT - MAX( DISTINCT - + 61 ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-8097
SELECT - MAX ( DISTINCT - + 61 ) AS col1
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8098
SELECT DISTINCT + 33 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8098
SELECT DISTINCT + 33 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8099
SELECT ALL + 11 + + + CASE - 40 WHEN - ( 76 ) / - - 91 + COUNT( DISTINCT - 66 ) THEN MIN( DISTINCT + 90 ) WHEN 78 * ( ( SUM( + 54 ) ) * 49 ) THEN NULL ELSE NULL END + - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-8099
SELECT ALL + 11 + + + CASE - 40 WHEN - ( 76 ) / - - 91 + COUNT ( DISTINCT - 66 ) THEN MIN ( DISTINCT + 90 ) WHEN 78 * ( ( SUM ( + 54 ) ) * 49 ) THEN NULL ELSE NULL END + - 22
----
NULL

query I rowsort
SELECT - 72 + + + 37 AS col2
----
-35

query I rowsort
SELECT DISTINCT - - NULLIF ( + 41, 83 ) AS col2
----
41

query I rowsort
SELECT + 95 * + 24 AS col2
----
2280

query I rowsort
SELECT ALL - 9 * - 18 col0
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-8104
SELECT ALL + 82 * - - 56 - COUNT( * ) + 71
----
4662

skipif mysql # not compatible
query I rowsort label-8104
SELECT ALL + 82 * - - 56 - COUNT ( * ) + 71
----
4662

onlyif mysql # aggregate syntax: 
query I rowsort label-8105
SELECT + 21 * - 52 + + - MAX( + + 54 ) + + 26
----
-1120

skipif mysql # not compatible
query I rowsort label-8105
SELECT + 21 * - 52 + + - MAX ( + + 54 ) + + 26
----
-1120

onlyif mysql # DIV for integer division: 
query I rowsort label-8106
SELECT + 52 DIV + CASE 91 WHEN - 23 THEN NULL WHEN - 92 * + 26 THEN NULL WHEN + - 44 THEN NULL ELSE + - 46 - - 11 DIV - 75 END AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8106
SELECT + 52 / + CASE 91 WHEN - 23 THEN NULL WHEN - 92 * + 26 THEN NULL WHEN + - 44 THEN NULL ELSE + - 46 - - 11 / - 75 END AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8107
SELECT - MIN( 42 ) + - 91
----
-133

skipif mysql # not compatible
query I rowsort label-8107
SELECT - MIN ( 42 ) + - 91
----
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-8108
SELECT DISTINCT 5 * COUNT( * ) * 65
----
325

skipif mysql # not compatible
query I rowsort label-8108
SELECT DISTINCT 5 * COUNT ( * ) * 65
----
325

query I rowsort
SELECT DISTINCT 64 * + 62
----
3968

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8110
SELECT + 71 * + CAST( NULL AS SIGNED ) + - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-8110
SELECT + 71 * + CAST ( NULL AS INTEGER ) + - 61
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8111
SELECT DISTINCT - CASE 81 WHEN - COALESCE ( + 99, COUNT( * ) / + 51 / - - ( MIN( DISTINCT + 31 ) ) + 26 / 39 ) THEN NULL ELSE 0 END
----
0

skipif mysql # not compatible
query I rowsort label-8111
SELECT DISTINCT - CASE 81 WHEN - COALESCE ( + 99, COUNT ( * ) / + 51 / - - ( MIN ( DISTINCT + 31 ) ) + 26 / 39 ) THEN NULL ELSE 0 END
----
0

query I rowsort
SELECT 87 * - - 64 + - 65 AS col2
----
5503

query I rowsort
SELECT 12 + + 44
----
56

query I rowsort
SELECT 83 + + 36 * 23 + + 33 + 52 AS col0
----
996

query I rowsort
SELECT - 63 * + - 29 AS col2
----
1827

onlyif mysql # aggregate syntax: 
query I rowsort label-8116
SELECT ( + - 56 ) * + + ( + COUNT( * ) ) + + 85
----
29

skipif mysql # not compatible
query I rowsort label-8116
SELECT ( + - 56 ) * + + ( + COUNT ( * ) ) + + 85
----
29

query II rowsort
SELECT + 80 + + - 72, + 97 + + - 93 AS col1
----
8
4

query I rowsort
SELECT ALL + ( + 24 )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8119
SELECT ALL 39 + + 75 + - 61 * MIN( 3 ) AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-8119
SELECT ALL 39 + + 75 + - 61 * MIN ( 3 ) AS col1
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8120
SELECT - 44 + - COUNT( * ) + 62 * + + COUNT( 55 ) / - + ( - - 16 ) - - - 81 * + + CASE - CAST( NULL AS SIGNED ) WHEN AVG ( 78 ) / 94 + CAST( - 32 AS SIGNED ) THEN 23 * 18 WHEN 24 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8120
SELECT - 44 + - COUNT ( * ) + 62 * + + COUNT ( 55 ) / - + ( - - 16 ) - - - 81 * + + CASE - CAST ( NULL AS INTEGER ) WHEN AVG ( 78 ) / 94 + CAST ( - 32 AS INTEGER ) THEN 23 * 18 WHEN 24 THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-8121
SELECT DISTINCT - 15 * + ( + - 13 ) * + + COALESCE ( - 82, - ( ( COALESCE ( + 36, - CASE + 80 WHEN + 73 THEN NULL WHEN CAST( + 88 AS DECIMAL ) THEN 64 DIV + SUM( DISTINCT + 93 ) END ) ) ) ) * - 15 + 25 * 94
----
242200

skipif mysql # not compatible
query I rowsort label-8121
SELECT DISTINCT - 15 * + ( + - 13 ) * + + COALESCE ( - 82, - ( ( COALESCE ( + 36, - CASE + 80 WHEN + 73 THEN NULL WHEN CAST ( + 88 AS REAL ) THEN 64 / + SUM ( DISTINCT + 93 ) END ) ) ) ) * - 15 + 25 * 94
----
242200

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8122
SELECT ALL - CASE - - COUNT( * ) WHEN + - 63 THEN - 70 WHEN 50 + - - 23 * 2 - - - CAST( + COALESCE ( 78, + 50 * 8, ( + 38 ) ) AS DECIMAL ) * 54 THEN + 78 + + 10 WHEN 28 * COUNT( * ) + + 69 * 85 THEN NULL ELSE ( 14 ) * ( SUM( ALL 50 ) ) END * - COUNT( * ) AS col2
----
700

skipif mysql # not compatible
query I rowsort label-8122
SELECT ALL - CASE - - COUNT ( * ) WHEN + - 63 THEN - 70 WHEN 50 + - - 23 * 2 - - - CAST ( + COALESCE ( 78, + 50 * 8, ( + 38 ) ) AS REAL ) * 54 THEN + 78 + + 10 WHEN 28 * COUNT ( * ) + + 69 * 85 THEN NULL ELSE ( 14 ) * ( SUM ( ALL 50 ) ) END * - COUNT ( * ) AS col2
----
700

onlyif mysql # aggregate syntax: 
query I rowsort label-8123
SELECT DISTINCT + COUNT( * ) + - 61
----
-60

skipif mysql # not compatible
query I rowsort label-8123
SELECT DISTINCT + COUNT ( * ) + - 61
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8124
SELECT ALL + 56 + - 85 * 10 + - + CAST( + 33 AS SIGNED ) AS col1
----
-827

skipif mysql # not compatible
query I rowsort label-8124
SELECT ALL + 56 + - 85 * 10 + - + CAST ( + 33 AS INTEGER ) AS col1
----
-827

onlyif mysql # aggregate syntax: 
query I rowsort label-8125
SELECT DISTINCT + - 20 + COUNT( ALL + + 83 ) col0
----
-19

skipif mysql # not compatible
query I rowsort label-8125
SELECT DISTINCT + - 20 + COUNT ( ALL + + 83 ) col0
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8126
SELECT - 7 DIV + + 41 * - COUNT( * ) + - - COUNT( * ), + 88 AS col2
----
1
88

skipif mysql # not compatible
query II rowsort label-8126
SELECT - 7 / + + 41 * - COUNT ( * ) + - - COUNT ( * ), + 88 AS col2
----
1
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8127
SELECT + 77 + + COUNT( * ) * - COUNT( * ) DIV - 22 AS col1, + 79 + - COUNT( * ) + - 12 * + + 48 + + COUNT( * ) col2
----
77
-497

skipif mysql # not compatible
query II rowsort label-8127
SELECT + 77 + + COUNT ( * ) * - COUNT ( * ) / - 22 AS col1, + 79 + - COUNT ( * ) + - 12 * + + 48 + + COUNT ( * ) col2
----
77
-497

onlyif mysql # DIV for integer division: 
query I rowsort label-8128
SELECT ALL 46 DIV + + 42 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8128
SELECT ALL 46 / + + 42 AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8129
SELECT + 90 + + 57 + - 93 DIV - - COALESCE ( + 63, + 38 + + + 82, + COUNT( * ), - 0 )
----
146

skipif mysql # not compatible
query I rowsort label-8129
SELECT + 90 + + 57 + - 93 / - - COALESCE ( + 63, + 38 + + + 82, + COUNT ( * ), - 0 )
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-8130
SELECT - + CASE 80 WHEN + 89 + - + NULLIF ( + + 13, - + CASE COUNT( * ) WHEN - - COUNT( * ) THEN - - 92 / 25 WHEN + ( + COUNT( 33 ) ) + 30 / 83 THEN 13 + 90 ELSE NULL END ) + - ( 47 ) * - 11 THEN + 75 WHEN - MIN( ALL + 24 ) THEN + 76 ELSE - 27 * 98 END
----
2646

skipif mysql # not compatible
query I rowsort label-8130
SELECT - + CASE 80 WHEN + 89 + - + NULLIF ( + + 13, - + CASE COUNT ( * ) WHEN - - COUNT ( * ) THEN - - 92 / 25 WHEN + ( + COUNT ( 33 ) ) + 30 / 83 THEN 13 + 90 ELSE NULL END ) + - ( 47 ) * - 11 THEN + 75 WHEN - MIN ( ALL + 24 ) THEN + 76 ELSE - 27 * 98 END
----
2646

query I rowsort
SELECT ALL - ( + 52 ) - - 64 AS col1
----
12

query I rowsort
SELECT + - 10 * - + 14 AS col1
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-8133
SELECT ALL - ( - + 20 ) * SUM( DISTINCT + + 97 ) * - 54 + - 66 AS col0
----
-104826

skipif mysql # not compatible
query I rowsort label-8133
SELECT ALL - ( - + 20 ) * SUM ( DISTINCT + + 97 ) * - 54 + - 66 AS col0
----
-104826

query I rowsort
SELECT + 66 + - 52
----
14

query I rowsort
SELECT + 23 - + - 98 AS col2
----
121

query II rowsort
SELECT + 93 * + - 61, 18 + - 89 * - 60 AS col0
----
-5673
5358

onlyif mysql # aggregate syntax: 
query II rowsort label-8137
SELECT + 36 - + - 5 col2, 82 * + 70 * - COALESCE ( - + ( 21 ), + + ( - 78 ) ) * + 76 + + COALESCE ( 3, - 54, COUNT( * ) )
----
41
9161043

skipif mysql # not compatible
query II rowsort label-8137
SELECT + 36 - + - 5 col2, 82 * + 70 * - COALESCE ( - + ( 21 ), + + ( - 78 ) ) * + 76 + + COALESCE ( 3, - 54, COUNT ( * ) )
----
41
9161043

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8138
SELECT ALL + - CAST( - - ( + + 1 ) AS SIGNED ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-8138
SELECT ALL + - CAST ( - - ( + + 1 ) AS INTEGER ) col0
----
-1

query I rowsort
SELECT - - 77 + + 32
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-8140
SELECT ALL + CASE 2 WHEN + 57 + - 99 + 30 THEN NULL WHEN - 49 THEN + SUM( ALL + - 35 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8140
SELECT ALL + CASE 2 WHEN + 57 + - 99 + 30 THEN NULL WHEN - 49 THEN + SUM ( ALL + - 35 ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8141
SELECT + ( - 41 ) * CAST( 76 AS SIGNED ) + + 35 + - - CASE + 42 WHEN + 48 THEN + 50 WHEN - 19 THEN 97 + - 66 ELSE NULL END * 41 - 10 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8141
SELECT + ( - 41 ) * CAST ( 76 AS INTEGER ) + + 35 + - - CASE + 42 WHEN + 48 THEN + 50 WHEN - 19 THEN 97 + - 66 ELSE NULL END * 41 - 10 col0
----
NULL

query I rowsort
SELECT ALL + 91 * + - 67
----
-6097

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8143
SELECT ALL 17 DIV 79 * + COUNT( * ) * 36
----
0

skipif mysql # not compatible
query I rowsort label-8143
SELECT ALL 17 / 79 * + COUNT ( * ) * 36
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8144
SELECT + 10, - COUNT( * ) AS col0
----
10
-1

skipif mysql # not compatible
query II rowsort label-8144
SELECT + 10, - COUNT ( * ) AS col0
----
10
-1

query I rowsort
SELECT - 81 * - 90
----
7290

query I rowsort
SELECT NULLIF ( 25, - 73 ) AS col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8147
SELECT ALL - COUNT( * ) * 59
----
-59

skipif mysql # not compatible
query I rowsort label-8147
SELECT ALL - COUNT ( * ) * 59
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8148
SELECT - 29 * + + 88 * - + COUNT( * ) * + 89 - 30
----
227098

skipif mysql # not compatible
query I rowsort label-8148
SELECT - 29 * + + 88 * - + COUNT ( * ) * + 89 - 30
----
227098

onlyif mysql # aggregate syntax: 
query I rowsort label-8149
SELECT ALL - COALESCE ( - - 47, - - 66 + + COUNT( * ) + + CASE + + 80 WHEN SUM( - 23 ) THEN + + COALESCE ( + + COUNT( * ), - ( + 31 ) ) + - 46 * + 25 END ) * 76 + 49 * 41
----
-1563

skipif mysql # not compatible
query I rowsort label-8149
SELECT ALL - COALESCE ( - - 47, - - 66 + + COUNT ( * ) + + CASE + + 80 WHEN SUM ( - 23 ) THEN + + COALESCE ( + + COUNT ( * ), - ( + 31 ) ) + - 46 * + 25 END ) * 76 + 49 * 41
----
-1563

query I rowsort
SELECT - 45 * 79
----
-3555

onlyif mysql # aggregate syntax: 
query I rowsort label-8151
SELECT DISTINCT COUNT( + 13 ) * + COUNT( + + 78 )
----
1

skipif mysql # not compatible
query I rowsort label-8151
SELECT DISTINCT COUNT ( + 13 ) * + COUNT ( + + 78 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8152
SELECT NULLIF ( - 81, + MAX( DISTINCT - + 91 ) + + - ( + 9 ) + + 91 * + ( + + 62 ) * - 34 / 19 )
----
-81

skipif mysql # not compatible
query I rowsort label-8152
SELECT NULLIF ( - 81, + MAX ( DISTINCT - + 91 ) + + - ( + 9 ) + + 91 * + ( + + 62 ) * - 34 / 19 )
----
-81

query I rowsort
SELECT - 80 + 21 col2
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8154
SELECT ALL + 29 / - + CAST( NULL AS SIGNED ) * + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-8154
SELECT ALL + 29 / - + CAST ( NULL AS INTEGER ) * + 97
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8155
SELECT COALESCE ( - 55, - - 35 - + + 87, ( - NULLIF ( 12, MIN( ALL - 5 ) * 65 * 78 ) ) + 29 DIV 42 ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-8155
SELECT COALESCE ( - 55, - - 35 - + + 87, ( - NULLIF ( 12, MIN ( ALL - 5 ) * 65 * 78 ) ) + 29 / 42 ) AS col2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-8156
SELECT ALL - 50 * - COUNT( * ) + 76 + - COUNT( * ) + COALESCE ( - 83, + 58, - 52 ) * - 73
----
6184

skipif mysql # not compatible
query I rowsort label-8156
SELECT ALL - 50 * - COUNT ( * ) + 76 + - COUNT ( * ) + COALESCE ( - 83, + 58, - 52 ) * - 73
----
6184

onlyif mysql # aggregate syntax: 
query I rowsort label-8157
SELECT - CASE COUNT( ALL + - 22 ) WHEN 38 THEN + - 1 + - - 49 WHEN - + ( - - NULLIF ( - 90, - COUNT( * ) ) ) THEN + ( 84 ) * ( - 73 ) WHEN + 7 + + 75 THEN NULL ELSE NULL END + + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-8157
SELECT - CASE COUNT ( ALL + - 22 ) WHEN 38 THEN + - 1 + - - 49 WHEN - + ( - - NULLIF ( - 90, - COUNT ( * ) ) ) THEN + ( 84 ) * ( - 73 ) WHEN + 7 + + 75 THEN NULL ELSE NULL END + + 38
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8158
SELECT - 5 + 22 + 49, - MAX( 89 ) * + 29 AS col0
----
66
-2581

skipif mysql # not compatible
query II rowsort label-8158
SELECT - 5 + 22 + 49, - MAX ( 89 ) * + 29 AS col0
----
66
-2581

onlyif mysql # aggregate syntax: 
query I rowsort label-8159
SELECT DISTINCT + COALESCE ( + COUNT( * ), - 95 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-8159
SELECT DISTINCT + COALESCE ( + COUNT ( * ), - 95 ) col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8160
SELECT ALL - + 55 - - 12 - + ( - CAST( - 81 AS SIGNED ) ) AS col1
----
-124

skipif mysql # not compatible
query I rowsort label-8160
SELECT ALL - + 55 - - 12 - + ( - CAST ( - 81 AS INTEGER ) ) AS col1
----
-124

query I rowsort
SELECT - + 39 - 49 AS col0
----
-88

query I rowsort
SELECT + 68 + - 97
----
-29

query I rowsort
SELECT - 7 + 23 AS col1
----
16

query I rowsort
SELECT ALL - NULLIF ( + 39, + 1 )
----
-39

query I rowsort
SELECT - 21 + - 50
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-8166
SELECT + - 23 - COUNT( * ) * COALESCE ( + 80, - + ( COUNT( * ) ), + COUNT( * ) ) * 59 + + 2
----
-4741

skipif mysql # not compatible
query I rowsort label-8166
SELECT + - 23 - COUNT ( * ) * COALESCE ( + 80, - + ( COUNT ( * ) ), + COUNT ( * ) ) * 59 + + 2
----
-4741

onlyif mysql # aggregate syntax: 
query I rowsort label-8167
SELECT DISTINCT CASE - + 85 WHEN + COUNT( - 81 ) THEN - - NULLIF ( - + MIN( DISTINCT + 23 ), + COALESCE ( 46, - 93 ) ) WHEN - 65 THEN NULL WHEN + ( + 81 ) THEN + NULLIF ( 7, 37 * COUNT( * ) ) ELSE NULL END / 14 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8167
SELECT DISTINCT CASE - + 85 WHEN + COUNT ( - 81 ) THEN - - NULLIF ( - + MIN ( DISTINCT + 23 ), + COALESCE ( 46, - 93 ) ) WHEN - 65 THEN NULL WHEN + ( + 81 ) THEN + NULLIF ( 7, 37 * COUNT ( * ) ) ELSE NULL END / 14 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8168
SELECT - - 37 / - + 16 + - 8 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8168
SELECT - - 37 / - + 16 + - 8 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8169
SELECT ALL 15 AS col1, - MAX( DISTINCT ( - 15 ) ) + - + COUNT( * ) AS col0
----
15
14

skipif mysql # not compatible
query II rowsort label-8169
SELECT ALL 15 AS col1, - MAX ( DISTINCT ( - 15 ) ) + - + COUNT ( * ) AS col0
----
15
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8170
SELECT - CAST( + + 3 AS SIGNED ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-8170
SELECT - CAST ( + + 3 AS INTEGER ) AS col1
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8171
SELECT DISTINCT + + COUNT( * ) DIV + 73 * 68 AS col2, 28 AS col1
----
0
28

skipif mysql # not compatible
query II rowsort label-8171
SELECT DISTINCT + + COUNT ( * ) / + 73 * 68 AS col2, 28 AS col1
----
0
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8172
SELECT + 11 DIV COUNT( * ) * + 20 AS col2
----
220

skipif mysql # not compatible
query I rowsort label-8172
SELECT + 11 / COUNT ( * ) * + 20 AS col2
----
220

query I rowsort
SELECT ALL 76 * CASE 83 WHEN - 4 THEN - 29 WHEN - 18 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8174
SELECT COUNT( * ) * + + 63
----
63

skipif mysql # not compatible
query I rowsort label-8174
SELECT COUNT ( * ) * + + 63
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8175
SELECT DISTINCT COUNT( * ) * 45 DIV 92
----
0

skipif mysql # not compatible
query I rowsort label-8175
SELECT DISTINCT COUNT ( * ) * 45 / 92
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8176
SELECT - 50 DIV - + 91 + + 28 AS col0
----
28

skipif mysql # not compatible
query I rowsort label-8176
SELECT - 50 / - + 91 + + 28 AS col0
----
28

query I rowsort
SELECT DISTINCT 4 + 43 - + NULLIF ( - + 15, + 70 )
----
62

query I rowsort
SELECT 18 + + 70 * 13 AS col1
----
928

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8179
SELECT ALL - 56, - 56 + + CAST( - + 36 AS SIGNED ) + 29 AS col2
----
-56
-63

skipif mysql # not compatible
query II rowsort label-8179
SELECT ALL - 56, - 56 + + CAST ( - + 36 AS INTEGER ) + 29 AS col2
----
-56
-63

query I rowsort
SELECT DISTINCT 68 + + 99 + ( - 94 )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8181
SELECT MAX( DISTINCT - 77 ) * 79 + - 38
----
-6121

skipif mysql # not compatible
query I rowsort label-8181
SELECT MAX ( DISTINCT - 77 ) * 79 + - 38
----
-6121

query I rowsort
SELECT ALL 3 + + 88 AS col2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8183
SELECT ALL ( - COUNT( * ) ) + + 25 AS col2
----
24

skipif mysql # not compatible
query I rowsort label-8183
SELECT ALL ( - COUNT ( * ) ) + + 25 AS col2
----
24

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8184
SELECT CAST( NULL AS DECIMAL ) + 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8184
SELECT CAST ( NULL AS REAL ) + 40 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8185
SELECT ( + 15 ) DIV 38 * + 84 - + - 23 + + 92 + ( - 28 ) * + 76 AS col0
----
-2013

skipif mysql # not compatible
query I rowsort label-8185
SELECT ( + 15 ) / 38 * + 84 - + - 23 + + 92 + ( - 28 ) * + 76 AS col0
----
-2013

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8186
SELECT 52 + - MIN( 98 ) DIV COALESCE ( + 90, - + NULLIF ( + ( + 41 ), - 97 + - - NULLIF ( CAST( + 77 AS SIGNED ), + 10 * ( - 83 * 78 ) ) + 9 * 8 ) + - 93 ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-8186
SELECT 52 + - MIN ( 98 ) / COALESCE ( + 90, - + NULLIF ( + ( + 41 ), - 97 + - - NULLIF ( CAST ( + 77 AS INTEGER ), + 10 * ( - 83 * 78 ) ) + 9 * 8 ) + - 93 ) AS col2
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8187
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ) * + 13 * NULLIF ( COUNT( * ), - 97 )
----
13

skipif mysql # not compatible
query I rowsort label-8187
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) * + 13 * NULLIF ( COUNT ( * ), - 97 )
----
13

query I rowsort
SELECT 62 + - ( - 38 ) + - 63 - 92
----
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-8189
SELECT SUM( DISTINCT 54 ) AS col1, - 88 AS col1
----
54
-88

skipif mysql # not compatible
query II rowsort label-8189
SELECT SUM ( DISTINCT 54 ) AS col1, - 88 AS col1
----
54
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-8190
SELECT + COUNT( * ) * ( - 38 ) + SUM( DISTINCT + - 80 ) + 52 - - ( 3 ) * - 15 * + 0 * + 91 * 71
----
-66

skipif mysql # not compatible
query I rowsort label-8190
SELECT + COUNT ( * ) * ( - 38 ) + SUM ( DISTINCT + - 80 ) + 52 - - ( 3 ) * - 15 * + 0 * + 91 * 71
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-8191
SELECT ALL + + 2 - + 15 - - COALESCE ( + 96, 28 + - + 43 - - ( + 73 ) + - 97 * + 64 * 75, + 3 * + 90 ) * MAX( ALL - 95 ) AS col1
----
-9133

skipif mysql # not compatible
query I rowsort label-8191
SELECT ALL + + 2 - + 15 - - COALESCE ( + 96, 28 + - + 43 - - ( + 73 ) + - 97 * + 64 * 75, + 3 * + 90 ) * MAX ( ALL - 95 ) AS col1
----
-9133

query I rowsort
SELECT - 98 * 34 * 40 col1
----
-133280

query I rowsort
SELECT 75 + + 34 + 3 + - 42 AS col2
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8194
SELECT + ( + 28 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8194
SELECT + ( + 28 ) * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + COALESCE ( + + 81, + - 32, + 90 ) * + 89
----
7209

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8196
SELECT DISTINCT - - CASE - 32 WHEN 87 * 12 + - + 76 * + 7 THEN CAST( NULL AS DECIMAL ) / 51 WHEN + MAX( 7 ) + + + 40 THEN + 23 * 18 WHEN 49 * + 91 THEN NULL END / 49
----
NULL

skipif mysql # not compatible
query I rowsort label-8196
SELECT DISTINCT - - CASE - 32 WHEN 87 * 12 + - + 76 * + 7 THEN CAST ( NULL AS REAL ) / 51 WHEN + MAX ( 7 ) + + + 40 THEN + 23 * 18 WHEN 49 * + 91 THEN NULL END / 49
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8197
SELECT + CAST( NULL AS SIGNED ) * + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-8197
SELECT + CAST ( NULL AS INTEGER ) * + 5
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8198
SELECT + COUNT( * ), - 2 AS col0
----
1
-2

skipif mysql # not compatible
query II rowsort label-8198
SELECT + COUNT ( * ), - 2 AS col0
----
1
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8199
SELECT ALL + MAX( + + 46 ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-8199
SELECT ALL + MAX ( + + 46 ) AS col1
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8200
SELECT + CAST( 39 AS SIGNED ) + - + 16
----
23

skipif mysql # not compatible
query I rowsort label-8200
SELECT + CAST ( 39 AS INTEGER ) + - + 16
----
23

query I rowsort
SELECT - 14 * - 18 AS col1
----
252

onlyif mysql # aggregate syntax: 
query I rowsort label-8202
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) * CASE + - 23 WHEN 40 THEN + 73 WHEN + 59 + + 39 THEN NULL END / COALESCE ( + MAX( + 6 ), - 44 + 77 ) + ( + SUM( ALL + 6 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8202
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) * CASE + - 23 WHEN 40 THEN + 73 WHEN + 59 + + 39 THEN NULL END / COALESCE ( + MAX ( + 6 ), - 44 + 77 ) + ( + SUM ( ALL + 6 ) )
----
NULL

query I rowsort
SELECT ALL ( ( - 31 ) ) AS col2
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-8204
SELECT ALL COUNT( - 74 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8204
SELECT ALL COUNT ( - 74 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8205
SELECT DISTINCT + - 6 + + MAX( DISTINCT - + 70 ) AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-8205
SELECT DISTINCT + - 6 + + MAX ( DISTINCT - + 70 ) AS col2
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-8206
SELECT ALL 99 + + + 93 * - NULLIF ( - - 38, + + 92 * + COUNT( * ) + - COUNT( * ) + + 19 )
----
-3435

skipif mysql # not compatible
query I rowsort label-8206
SELECT ALL 99 + + + 93 * - NULLIF ( - - 38, + + 92 * + COUNT ( * ) + - COUNT ( * ) + + 19 )
----
-3435

onlyif mysql # aggregate syntax: 
query I rowsort label-8207
SELECT 62 * - COUNT( * ) + - COUNT( * ) * + COUNT( * )
----
-63

skipif mysql # not compatible
query I rowsort label-8207
SELECT 62 * - COUNT ( * ) + - COUNT ( * ) * + COUNT ( * )
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-8208
SELECT ALL + COUNT( * ) + - 83
----
-82

skipif mysql # not compatible
query I rowsort label-8208
SELECT ALL + COUNT ( * ) + - 83
----
-82

query I rowsort
SELECT DISTINCT - 74 + + 31 - - 11
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8210
SELECT 95 + - CAST( 54 AS SIGNED ) AS col0
----
41

skipif mysql # not compatible
query I rowsort label-8210
SELECT 95 + - CAST ( 54 AS INTEGER ) AS col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8211
SELECT 37 + COUNT( * ) * 13 AS col1
----
50

skipif mysql # not compatible
query I rowsort label-8211
SELECT 37 + COUNT ( * ) * 13 AS col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8212
SELECT DISTINCT 63 + + MIN( ALL - 86 ) + - 63 * + 63 + ( - 11 ) * + + 11
----
-4113

skipif mysql # not compatible
query I rowsort label-8212
SELECT DISTINCT 63 + + MIN ( ALL - 86 ) + - 63 * + 63 + ( - 11 ) * + + 11
----
-4113

onlyif mysql # aggregate syntax: 
query I rowsort label-8213
SELECT ALL NULLIF ( - + AVG ( ALL + - 79 ), COUNT( * ) ) + + CASE - 41 WHEN - ( - NULLIF ( - NULLIF ( + - 34, - COUNT( * ) ), - + 32 ) ) THEN 47 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8213
SELECT ALL NULLIF ( - + AVG ( ALL + - 79 ), COUNT ( * ) ) + + CASE - 41 WHEN - ( - NULLIF ( - NULLIF ( + - 34, - COUNT ( * ) ), - + 32 ) ) THEN 47 END AS col1
----
NULL

query I rowsort
SELECT ALL - NULLIF ( + - 20, - 85 ) col1
----
20

query I rowsort
SELECT DISTINCT - CASE + 66 WHEN - + 41 THEN NULL ELSE + - CASE - 62 WHEN - 65 THEN ( + 59 ) ELSE - ( - ( 47 ) ) END + 68 * 35 END + + 90 AS col1
----
-2243

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8216
SELECT 27 DIV + COUNT( * ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-8216
SELECT 27 / + COUNT ( * ) AS col0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8217
SELECT ALL - ( + - COALESCE ( + - COUNT( * ), 85 ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-8217
SELECT ALL - ( + - COALESCE ( + - COUNT ( * ), 85 ) ) col0
----
-1

query I rowsort
SELECT ALL - NULLIF ( - + CASE - - 12 WHEN + 44 + 19 THEN NULL ELSE 38 * - 56 * + + 78 END, 19 * 39 + - AVG ( - + 3 ) - 81 ) + 70 col2
----
-165914

onlyif mysql # aggregate syntax: 
query I rowsort label-8219
SELECT DISTINCT - SUM( + 55 )
----
-55

skipif mysql # not compatible
query I rowsort label-8219
SELECT DISTINCT - SUM ( + 55 )
----
-55

query I rowsort
SELECT ALL + + 83 * + + 54 AS col0
----
4482

query I rowsort
SELECT DISTINCT - COALESCE ( ( 59 ), + 39 ) AS col1
----
-59

query I rowsort
SELECT ALL - 92 * COALESCE ( - - 58, 89 ) + + 92
----
-5244

query I rowsort
SELECT + 89 + 86
----
175

query I rowsort
SELECT 61 + + 14 + ( + 44 )
----
119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8225
SELECT ALL 86 + + NULLIF ( MAX( DISTINCT - 50 ), 85 + 82 + - CAST( - + 46 AS SIGNED ) ) + 27 DIV 91 AS col0
----
36

skipif mysql # not compatible
query I rowsort label-8225
SELECT ALL 86 + + NULLIF ( MAX ( DISTINCT - 50 ), 85 + 82 + - CAST ( - + 46 AS INTEGER ) ) + 27 / 91 AS col0
----
36

query I rowsort
SELECT DISTINCT + ( + - 91 ) * + 62 + + - 88 AS col1
----
-5730

onlyif mysql # aggregate syntax: 
query I rowsort label-8227
SELECT ALL MAX( ALL 77 )
----
77

skipif mysql # not compatible
query I rowsort label-8227
SELECT ALL MAX ( ALL 77 )
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8228
SELECT - 39 + CAST( NULL AS SIGNED ), - COUNT( * ) AS col0
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-8228
SELECT - 39 + CAST ( NULL AS INTEGER ), - COUNT ( * ) AS col0
----
NULL
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8229
SELECT + 48 * CAST( CAST( NULL AS DECIMAL ) AS DECIMAL ) col2, - 10
----
NULL
-10

skipif mysql # not compatible
query II rowsort label-8229
SELECT + 48 * CAST ( CAST ( NULL AS REAL ) AS REAL ) col2, - 10
----
NULL
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8230
SELECT - + 71 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8230
SELECT - + 71 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8231
SELECT + + 60 * - COUNT( * ) * - 72 AS col2
----
4320

skipif mysql # not compatible
query I rowsort label-8231
SELECT + + 60 * - COUNT ( * ) * - 72 AS col2
----
4320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8232
SELECT CAST( - 61 AS SIGNED ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-8232
SELECT CAST ( - 61 AS INTEGER ) AS col1
----
-61

query I rowsort
SELECT ALL 31 + - 62 * + + 51 AS col1
----
-3131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8234
SELECT ALL - 69 + + CAST( 41 AS SIGNED ), + 70 * - 24 * + COUNT( * ) + 90 * + 51 AS col2
----
-28
2910

skipif mysql # not compatible
query II rowsort label-8234
SELECT ALL - 69 + + CAST ( 41 AS INTEGER ), + 70 * - 24 * + COUNT ( * ) + 90 * + 51 AS col2
----
-28
2910

onlyif mysql # aggregate syntax: 
query I rowsort label-8235
SELECT DISTINCT SUM( ALL - 47 )
----
-47

skipif mysql # not compatible
query I rowsort label-8235
SELECT DISTINCT SUM ( ALL - 47 )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8236
SELECT ALL MIN( - + 1 ) + + 99
----
98

skipif mysql # not compatible
query I rowsort label-8236
SELECT ALL MIN ( - + 1 ) + + 99
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8237
SELECT DISTINCT 51 + + AVG ( + 0 ) - 31 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8237
SELECT DISTINCT 51 + + AVG ( + 0 ) - 31 / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8238
SELECT ALL - CAST( NULL AS SIGNED ) + 14 * + - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8238
SELECT ALL - CAST ( NULL AS INTEGER ) + 14 * + - CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8239
SELECT ALL - ( - - 72 ) * CAST( NULL AS SIGNED ) * - 96
----
NULL

skipif mysql # not compatible
query I rowsort label-8239
SELECT ALL - ( - - 72 ) * CAST ( NULL AS INTEGER ) * - 96
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8240
SELECT DISTINCT + MIN( + 66 ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-8240
SELECT DISTINCT + MIN ( + 66 ) AS col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8241
SELECT - 54 * + 23 * - - COUNT( * ) * - - 22 + + COUNT( * )
----
-27323

skipif mysql # not compatible
query I rowsort label-8241
SELECT - 54 * + 23 * - - COUNT ( * ) * - - 22 + + COUNT ( * )
----
-27323

query I rowsort
SELECT - 45 * 62
----
-2790

query I rowsort
SELECT DISTINCT + 52 * + + 54 - NULLIF ( + + 29, + + 10 + - + 12 ) AS col1
----
2779

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8244
SELECT COALESCE ( 52, - 56, - 32 * + 1 + + COUNT( * ) + - CAST( NULL AS SIGNED ) + + 18 + - - CAST( NULL AS SIGNED ) ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-8244
SELECT COALESCE ( 52, - 56, - 32 * + 1 + + COUNT ( * ) + - CAST ( NULL AS INTEGER ) + + 18 + - - CAST ( NULL AS INTEGER ) ) AS col2
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-8245
SELECT ALL - 7 DIV - 53
----
0

skipif mysql # not compatible
query I rowsort label-8245
SELECT ALL - 7 / - 53
----
0

query I rowsort
SELECT - 14 * - + 83
----
1162

onlyif mysql # DIV for integer division: 
query I rowsort label-8247
SELECT ALL - 87 DIV + + 50
----
-1

skipif mysql # not compatible
query I rowsort label-8247
SELECT ALL - 87 / + + 50
----
-1

query I rowsort
SELECT + - 2 * + + 3
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8249
SELECT + COUNT( * ) + - COALESCE ( - + COUNT( * ), + + ( + 29 ) ) * + + COUNT( * ) + + - 32
----
-30

skipif mysql # not compatible
query I rowsort label-8249
SELECT + COUNT ( * ) + - COALESCE ( - + COUNT ( * ), + + ( + 29 ) ) * + + COUNT ( * ) + + - 32
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-8250
SELECT + 87 AS col1, + COUNT( * )
----
87
1

skipif mysql # not compatible
query II rowsort label-8250
SELECT + 87 AS col1, + COUNT ( * )
----
87
1

query I rowsort
SELECT + 43 + + 40 AS col1
----
83

query I rowsort
SELECT DISTINCT 30 * - 11 * + 12 + - 12
----
-3972

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8253
SELECT ALL COALESCE ( + + CAST( NULL AS SIGNED ), 48 + - + 2 - + 38 + 91 + - 12 DIV + 48 )
----
99

skipif mysql # not compatible
query I rowsort label-8253
SELECT ALL COALESCE ( + + CAST ( NULL AS INTEGER ), 48 + - + 2 - + 38 + 91 + - 12 / + 48 )
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8254
SELECT + + 75 * + 32 + - 87 + + - 29 + + CAST( NULL AS SIGNED ) / + - 85 * + + 32 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8254
SELECT + + 75 * + 32 + - 87 + + - 29 + + CAST ( NULL AS INTEGER ) / + - 85 * + + 32 col2
----
NULL

query I rowsort
SELECT DISTINCT 2 + 22 AS col1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8256
SELECT - COUNT( ALL - 53 ) - + + 1 * - - COALESCE ( - 75, + COUNT( 18 ), - 33 ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-8256
SELECT - COUNT ( ALL - 53 ) - + + 1 * - - COALESCE ( - 75, + COUNT ( 18 ), - 33 ) AS col0
----
74

query II rowsort
SELECT DISTINCT - 73, + 66 AS col0
----
-73
66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8258
SELECT ALL CAST( NULL AS SIGNED ) + + 65 * + 14 col2, + ( - 8 )
----
NULL
-8

skipif mysql # not compatible
query II rowsort label-8258
SELECT ALL CAST ( NULL AS INTEGER ) + + 65 * + 14 col2, + ( - 8 )
----
NULL
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8259
SELECT + 59 * COALESCE ( 32, - 14 ) / + SUM( DISTINCT - 20 ) * CAST( NULL AS SIGNED ) * + 45 + + + 3 + - - 9 * 31 * + - 91 - - MAX( 76 ) + - 33 / - NULLIF ( 3, 29 * + 2 ) * - 58 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8259
SELECT + 59 * COALESCE ( 32, - 14 ) / + SUM ( DISTINCT - 20 ) * CAST ( NULL AS INTEGER ) * + 45 + + + 3 + - - 9 * 31 * + - 91 - - MAX ( 76 ) + - 33 / - NULLIF ( 3, 29 * + 2 ) * - 58 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 87 + + 44
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-8261
SELECT DISTINCT MIN( 89 ) - + 71 * - 73 col2
----
5272

skipif mysql # not compatible
query I rowsort label-8261
SELECT DISTINCT MIN ( 89 ) - + 71 * - 73 col2
----
5272

query I rowsort
SELECT ALL 10 * + ( + ( - ( + 0 ) ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8263
SELECT + 81 / + CASE 88 WHEN - COALESCE ( + 29, - - 60 ) / + 53 THEN COUNT( * ) END * 13 * 80 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8263
SELECT + 81 / + CASE 88 WHEN - COALESCE ( + 29, - - 60 ) / + 53 THEN COUNT ( * ) END * 13 * 80 AS col0
----
NULL

query I rowsort
SELECT + 69 * 84 AS col0
----
5796

onlyif mysql # aggregate syntax: 
query I rowsort label-8265
SELECT ALL COUNT( - 96 )
----
1

skipif mysql # not compatible
query I rowsort label-8265
SELECT ALL COUNT ( - 96 )
----
1

query I rowsort
SELECT + 45 + - + 98 AS col0
----
-53

query I rowsort
SELECT - 27 * - 65
----
1755

query II rowsort
SELECT + 39 * 53, ( + - 24 ) AS col1
----
2067
-24

query I rowsort
SELECT ALL + ( 9 ) AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8270
SELECT DISTINCT + MAX( ALL - - 94 ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-8270
SELECT DISTINCT + MAX ( ALL - - 94 ) AS col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8271
SELECT ALL + COALESCE ( - 17, - + COUNT( * ), 3 ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-8271
SELECT ALL + COALESCE ( - 17, - + COUNT ( * ), 3 ) AS col2
----
-17

query I rowsort
SELECT - 5 * 35
----
-175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8273
SELECT ALL + COALESCE ( NULLIF ( + 33, - 55 + + 51 ), CAST( - - 72 AS SIGNED ) + + 89 ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-8273
SELECT ALL + COALESCE ( NULLIF ( + 33, - 55 + + 51 ), CAST ( - - 72 AS INTEGER ) + + 89 ) AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8274
SELECT ALL + - COALESCE ( - MAX( + - 98 ), - 70 ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-8274
SELECT ALL + - COALESCE ( - MAX ( + - 98 ), - 70 ) AS col1
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-8275
SELECT - + ( + + 75 ) DIV 38 + - 6 col0
----
-7

skipif mysql # not compatible
query I rowsort label-8275
SELECT - + ( + + 75 ) / 38 + - 6 col0
----
-7

query I rowsort
SELECT ALL - 64 * + + 0 + - 48 * - 11 AS col0
----
528

onlyif mysql # aggregate syntax: 
query II rowsort label-8277
SELECT ALL 47 * - + 13 * + 18 + + SUM( - 21 ) AS col1, - 91 AS col1
----
-11019
-91

skipif mysql # not compatible
query II rowsort label-8277
SELECT ALL 47 * - + 13 * + 18 + + SUM ( - 21 ) AS col1, - 91 AS col1
----
-11019
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8278
SELECT + + ( - COALESCE ( + - CAST( NULL AS SIGNED ), - ( 10 ) * + 71 ) )
----
710

skipif mysql # not compatible
query I rowsort label-8278
SELECT + + ( - COALESCE ( + - CAST ( NULL AS INTEGER ), - ( 10 ) * + 71 ) )
----
710

query I rowsort
SELECT ALL - - 36 + - 90 col1
----
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-8280
SELECT ALL + 49 + - COUNT( * ) AS col1, 62 - - - MAX( + 31 ) + 60
----
48
91

skipif mysql # not compatible
query II rowsort label-8280
SELECT ALL + 49 + - COUNT ( * ) AS col1, 62 - - - MAX ( + 31 ) + 60
----
48
91

query II rowsort
SELECT 47 + - 99 * - - 2 * 86, 86 * - 13 - - 73 AS col1
----
-16981
-1045

onlyif mysql # aggregate syntax: 
query I rowsort label-8282
SELECT 91 * + COUNT( * ) * + - 13 AS col0
----
-1183

skipif mysql # not compatible
query I rowsort label-8282
SELECT 91 * + COUNT ( * ) * + - 13 AS col0
----
-1183

query I rowsort
SELECT ALL - 58 + + 88 + + 25 AS col2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8284
SELECT ALL MIN( ALL - 26 ) - - 37 AS col1
----
11

skipif mysql # not compatible
query I rowsort label-8284
SELECT ALL MIN ( ALL - 26 ) - - 37 AS col1
----
11

query I rowsort
SELECT 21 + - - 45
----
66

query I rowsort
SELECT 30 + 98 * + + 7
----
716

query I rowsort
SELECT 11 * - 18 * + 88 * - - 8
----
-139392

query I rowsort
SELECT 49 + + 43
----
92

query I rowsort
SELECT ( + 97 ) + - 18 + + 12 + - + NULLIF ( - + 39, 52 )
----
130

query I rowsort
SELECT ALL 33 * + 11
----
363

onlyif mysql # aggregate syntax: 
query I rowsort label-8291
SELECT NULLIF ( + - ( - + 28 ), + 22 ) * + ( - 74 ) * - SUM( ALL 87 )
----
180264

skipif mysql # not compatible
query I rowsort label-8291
SELECT NULLIF ( + - ( - + 28 ), + 22 ) * + ( - 74 ) * - SUM ( ALL 87 )
----
180264

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8292
SELECT ALL + COUNT( * ) DIV - 80 * - COUNT( * ) * 99 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8292
SELECT ALL + COUNT ( * ) / - 80 * - COUNT ( * ) * 99 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8293
SELECT DISTINCT ( ( 48 ) ) * ( - COUNT( * ) ) + 63 * 63 * MIN( - - 19 ) AS col2
----
75363

skipif mysql # not compatible
query I rowsort label-8293
SELECT DISTINCT ( ( 48 ) ) * ( - COUNT ( * ) ) + 63 * 63 * MIN ( - - 19 ) AS col2
----
75363

query II rowsort
SELECT ALL 78, 19 AS col0
----
78
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8295
SELECT + - COUNT( * ) * 43 + 20
----
-23

skipif mysql # not compatible
query I rowsort label-8295
SELECT + - COUNT ( * ) * 43 + 20
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8296
SELECT - COUNT( - - 66 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8296
SELECT - COUNT ( - - 66 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8297
SELECT - MAX( + 37 ) DIV + 32 + - - ( + CAST( 74 AS SIGNED ) ) + 59 * - 51 + + 70 + - 45 * + COUNT( * ) + 38 + - COUNT( * ) AS col1
----
-2874

skipif mysql # not compatible
query I rowsort label-8297
SELECT - MAX ( + 37 ) / + 32 + - - ( + CAST ( 74 AS INTEGER ) ) + 59 * - 51 + + 70 + - 45 * + COUNT ( * ) + 38 + - COUNT ( * ) AS col1
----
-2874

query II rowsort
SELECT + - 65, 11 AS col0
----
-65
11

onlyif mysql # DIV for integer division: 
query II rowsort label-8299
SELECT 10 DIV - 83 + + 52, 7 AS col0
----
52
7

skipif mysql # not compatible
query II rowsort label-8299
SELECT 10 / - 83 + + 52, 7 AS col0
----
52
7

query I rowsort
SELECT DISTINCT + 35 + - 9 AS col0
----
26

query II rowsort
SELECT ALL + 13 + + 10 - - 13 AS col0, 59 AS col0
----
36
59

query I rowsort
SELECT DISTINCT + 86 + - - 67 AS col1
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-8303
SELECT ALL + ( + 21 ) + + 80 * + MIN( - 87 ) + SUM( ALL + - 67 )
----
-7006

skipif mysql # not compatible
query I rowsort label-8303
SELECT ALL + ( + 21 ) + + 80 * + MIN ( - 87 ) + SUM ( ALL + - 67 )
----
-7006

onlyif mysql # aggregate syntax: 
query I rowsort label-8304
SELECT COUNT( * ) * - 21 * NULLIF ( - 90, - 3 ) + - 71
----
1819

skipif mysql # not compatible
query I rowsort label-8304
SELECT COUNT ( * ) * - 21 * NULLIF ( - 90, - 3 ) + - 71
----
1819

query II rowsort
SELECT + + 69 AS col0, - 49
----
69
-49

query I rowsort
SELECT 13 + + 84 + + 64
----
161

onlyif mysql # aggregate syntax: 
query I rowsort label-8307
SELECT + COUNT( * ) + + 32 AS col0
----
33

skipif mysql # not compatible
query I rowsort label-8307
SELECT + COUNT ( * ) + + 32 AS col0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8308
SELECT DISTINCT - 59 - - COUNT( * ) col2
----
-58

skipif mysql # not compatible
query I rowsort label-8308
SELECT DISTINCT - 59 - - COUNT ( * ) col2
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-8309
SELECT ALL + + 21 DIV + + 60 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8309
SELECT ALL + + 21 / + + 60 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8310
SELECT - COUNT( * ) DIV - ( - 18 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8310
SELECT - COUNT ( * ) / - ( - 18 ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8311
SELECT DISTINCT + 29 DIV - - CAST( COALESCE ( 6, COUNT( * ) ) AS SIGNED ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-8311
SELECT DISTINCT + 29 / - - CAST ( COALESCE ( 6, COUNT ( * ) ) AS INTEGER ) AS col1
----
4

query I rowsort
SELECT ALL 93 * 23 * 91
----
194649

query I rowsort
SELECT 5 * + + 53 * + + 40 * + 71 * + 82
----
61713200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8314
SELECT 11 - 45 + + 41 * + - COUNT( * ) * + - NULLIF ( 9, + 66 ) * 41 DIV CAST( + - COUNT( * ) AS SIGNED ) * + 64
----
-968290

skipif mysql # not compatible
query I rowsort label-8314
SELECT 11 - 45 + + 41 * + - COUNT ( * ) * + - NULLIF ( 9, + 66 ) * 41 / CAST ( + - COUNT ( * ) AS INTEGER ) * + 64
----
-968290

onlyif mysql # DIV for integer division: 
query I rowsort label-8315
SELECT 46 DIV - - 15
----
3

skipif mysql # not compatible
query I rowsort label-8315
SELECT 46 / - - 15
----
3

query II rowsort
SELECT 34 AS col2, + 25
----
34
25

query I rowsort
SELECT ALL + 48 * + 94
----
4512

onlyif mysql # aggregate syntax: 
query I rowsort label-8318
SELECT ALL + 39 * COUNT( * ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-8318
SELECT ALL + 39 * COUNT ( * ) AS col0
----
39

query I rowsort
SELECT 55 - 65
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8320
SELECT DISTINCT COUNT( ALL - + 0 )
----
1

skipif mysql # not compatible
query I rowsort label-8320
SELECT DISTINCT COUNT ( ALL - + 0 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8321
SELECT ALL + 3 + - 11 + + 47 - 33 / 41 + - 79 * - CAST( NULL AS SIGNED ) * + + SUM( + 66 ) / - NULLIF ( + + 53, + + 77 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8321
SELECT ALL + 3 + - 11 + + 47 - 33 / 41 + - 79 * - CAST ( NULL AS INTEGER ) * + + SUM ( + 66 ) / - NULLIF ( + + 53, + + 77 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8322
SELECT ALL - 49 + - COUNT( * )
----
-50

skipif mysql # not compatible
query I rowsort label-8322
SELECT ALL - 49 + - COUNT ( * )
----
-50

query II rowsort
SELECT 34, + 70 AS col2
----
34
70

onlyif mysql # aggregate syntax: 
query II rowsort label-8324
SELECT - COUNT( * ) AS col2, + 8 * + COUNT( * )
----
-1
8

skipif mysql # not compatible
query II rowsort label-8324
SELECT - COUNT ( * ) AS col2, + 8 * + COUNT ( * )
----
-1
8

query I rowsort
SELECT ALL 43 * + 46
----
1978

onlyif mysql # DIV for integer division: 
query I rowsort label-8326
SELECT 33 + - 27 + + 44 DIV 61 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-8326
SELECT 33 + - 27 + + 44 / 61 AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8327
SELECT - MIN( + - 21 )
----
21

skipif mysql # not compatible
query I rowsort label-8327
SELECT - MIN ( + - 21 )
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-8328
SELECT DISTINCT - 76 * + - 53 * ( + - 8 ) * - MIN( DISTINCT 25 ) + + 51 + 42 + - + 52 * - 33 - 44, ( 78 ) AS col1
----
807365
78

skipif mysql # not compatible
query II rowsort label-8328
SELECT DISTINCT - 76 * + - 53 * ( + - 8 ) * - MIN ( DISTINCT 25 ) + + 51 + 42 + - + 52 * - 33 - 44, ( 78 ) AS col1
----
807365
78

query II rowsort
SELECT - 56 AS col1, - 62 * - + 45
----
-56
2790

query I rowsort
SELECT ALL - - 57 * 15 + + 79 AS col1
----
934

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8331
SELECT COALESCE ( 61, CAST( + ( CAST( - AVG ( 76 ) AS SIGNED ) ) AS SIGNED ) * - - ( - - 25 ) / + - 94 - - 90 * + 53 ) * + + ( - CAST( NULL AS SIGNED ) ) * 6 * ( - 27 ) + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-8331
SELECT COALESCE ( 61, CAST ( + ( CAST ( - AVG ( 76 ) AS INTEGER ) ) AS INTEGER ) * - - ( - - 25 ) / + - 94 - - 90 * + 53 ) * + + ( - CAST ( NULL AS INTEGER ) ) * 6 * ( - 27 ) + 28
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8332
SELECT DISTINCT COUNT( * ) * 16 DIV 44 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8332
SELECT DISTINCT COUNT ( * ) * 16 / 44 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8333
SELECT ALL CASE + 56 WHEN + 99 THEN 84 END * - - COUNT( * ) + ( + - ( - 65 ) ) - - + 2 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8333
SELECT ALL CASE + 56 WHEN + 99 THEN 84 END * - - COUNT ( * ) + ( + - ( - 65 ) ) - - + 2 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8334
SELECT 76 DIV 39 - + 72 + 15 AS col2, 48 AS col2
----
-56
48

skipif mysql # not compatible
query II rowsort label-8334
SELECT 76 / 39 - + 72 + 15 AS col2, 48 AS col2
----
-56
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8335
SELECT + MAX( + 13 )
----
13

skipif mysql # not compatible
query I rowsort label-8335
SELECT + MAX ( + 13 )
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8336
SELECT + ( 19 ) * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8336
SELECT + ( 19 ) * CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - + 38 * + + 12 AS col2
----
-456

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8338
SELECT ALL - COUNT( * ) DIV - + 17 * + + 60 * - 24 col1, + COUNT( * ) col1
----
0
1

skipif mysql # not compatible
query II rowsort label-8338
SELECT ALL - COUNT ( * ) / - + 17 * + + 60 * - 24 col1, + COUNT ( * ) col1
----
0
1

onlyif mysql # DIV for integer division: 
query II rowsort label-8339
SELECT + 63, + NULLIF ( + 76, - - 93 ) DIV - 3 AS col1
----
63
-25

skipif mysql # not compatible
query II rowsort label-8339
SELECT + 63, + NULLIF ( + 76, - - 93 ) / - 3 AS col1
----
63
-25

query I rowsort
SELECT NULLIF ( + 81, 32 ) AS col2
----
81

query II rowsort
SELECT ALL + 20 col2, 17 * + 54 * + + 5
----
20
4590

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8342
SELECT 61 * + 52 + + CAST( NULL AS SIGNED ) + ( + - 52 ) * 14 * - 27 + - 2 - AVG ( ALL CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8342
SELECT 61 * + 52 + + CAST ( NULL AS INTEGER ) + ( + - 52 ) * 14 * - 27 + - 2 - AVG ( ALL CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8343
SELECT DISTINCT + + ( + COALESCE ( - 14, - 35 * + 71 + - MAX( ALL 87 ) + - - 39 DIV 82 * NULLIF ( + - COUNT( ALL 45 ), - 65 * + 18 ), COUNT( * ) * + 21 ) )
----
-14

skipif mysql # not compatible
query I rowsort label-8343
SELECT DISTINCT + + ( + COALESCE ( - 14, - 35 * + 71 + - MAX ( ALL 87 ) + - - 39 / 82 * NULLIF ( + - COUNT ( ALL 45 ), - 65 * + 18 ), COUNT ( * ) * + 21 ) )
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8344
SELECT ALL - CAST( - 11 AS SIGNED ) * + 55 col0
----
605

skipif mysql # not compatible
query I rowsort label-8344
SELECT ALL - CAST ( - 11 AS INTEGER ) * + 55 col0
----
605

query I rowsort
SELECT + - 75 * - 66 AS col0
----
4950

query I rowsort
SELECT + NULLIF ( 32, COALESCE ( - + 32, - NULLIF ( - + 83, + NULLIF ( + 98, - NULLIF ( + 65, 31 * - 55 ) ) ) + - - 24, - - 25 ) + + - 2 ) AS col1
----
32

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8347
SELECT 43 * + 99 + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8347
SELECT 43 * + 99 + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + 46 + - - NULLIF ( + + CASE + 5 WHEN - - 20 THEN NULL WHEN - - 91 * 1 + - 47 THEN + + 41 ELSE NULL END, - 32 ) / - 34
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8349
SELECT COUNT( * ) * + COUNT( * ) - - COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-8349
SELECT COUNT ( * ) * + COUNT ( * ) - - COUNT ( * ) AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8350
SELECT ALL COUNT( - - ( + - 35 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8350
SELECT ALL COUNT ( - - ( + - 35 ) ) AS col2
----
1

query I rowsort
SELECT + 22 + + + 89 + + - COALESCE ( - - 89, + 7 )
----
22

query II rowsort
SELECT - 98 + 55, 22 - ( - 6 ) AS col0
----
-43
28

query I rowsort
SELECT ALL ( 90 ) AS col1
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-8354
SELECT ALL - 80 DIV + - 22
----
3

skipif mysql # not compatible
query I rowsort label-8354
SELECT ALL - 80 / + - 22
----
3

query I rowsort
SELECT - ( - ( + 69 ) )
----
69

query I rowsort
SELECT - COALESCE ( - 17, 47, - + 50 ) + + ( 84 )
----
101

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8357
SELECT ALL - 45 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8357
SELECT ALL - 45 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8358
SELECT DISTINCT + 90 + CASE + 8 WHEN - CASE + + 52 WHEN 78 / + 28 THEN - + 5 ELSE NULL END - 43 THEN NULL WHEN + ( + COUNT( * ) ) / - 3 * + + 18 THEN + 57 WHEN - + 49 THEN NULL END + + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-8358
SELECT DISTINCT + 90 + CASE + 8 WHEN - CASE + + 52 WHEN 78 / + 28 THEN - + 5 ELSE NULL END - 43 THEN NULL WHEN + ( + COUNT ( * ) ) / - 3 * + + 18 THEN + 57 WHEN - + 49 THEN NULL END + + 26
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8359
SELECT + 14 + ( - COUNT( * ) ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-8359
SELECT + 14 + ( - COUNT ( * ) ) AS col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8360
SELECT DISTINCT + 19 + + - ( + - SUM( ALL - 30 ) )
----
-11

skipif mysql # not compatible
query I rowsort label-8360
SELECT DISTINCT + 19 + + - ( + - SUM ( ALL - 30 ) )
----
-11

query I rowsort
SELECT ALL - ( - 12 ) AS col2
----
12

query I rowsort
SELECT DISTINCT - 86 + + 26 AS col1
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8363
SELECT MIN( DISTINCT - + 39 ) AS col1, - 98 DIV 3 AS col1
----
-39
-32

skipif mysql # not compatible
query II rowsort label-8363
SELECT MIN ( DISTINCT - + 39 ) AS col1, - 98 / 3 AS col1
----
-39
-32

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8364
SELECT + - 15 * + 90 + - 6 / CAST( - MAX( DISTINCT + 7 ) AS DECIMAL ) * - CAST( NULL AS DECIMAL ) * - 94 + 80 + + 15 * + COALESCE ( + 46, - 63 ) - 25
----
NULL

skipif mysql # not compatible
query I rowsort label-8364
SELECT + - 15 * + 90 + - 6 / CAST ( - MAX ( DISTINCT + 7 ) AS REAL ) * - CAST ( NULL AS REAL ) * - 94 + 80 + + 15 * + COALESCE ( + 46, - 63 ) - 25
----
NULL

query I rowsort
SELECT - + 47 * + 25 + - 87
----
-1262

query I rowsort
SELECT + 96 - - + 53 AS col2
----
149

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8367
SELECT ALL - - 3 DIV + ( 69 ) + + COUNT( * ) - 15
----
-14

skipif mysql # not compatible
query I rowsort label-8367
SELECT ALL - - 3 / + ( 69 ) + + COUNT ( * ) - 15
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8368
SELECT ALL - CAST( - AVG ( DISTINCT 38 ) AS SIGNED ) * - 13 + 22 + + 84 DIV + + NULLIF ( - + COUNT( * ), - 45 )
----
-556

skipif mysql # not compatible
query I rowsort label-8368
SELECT ALL - CAST ( - AVG ( DISTINCT 38 ) AS INTEGER ) * - 13 + 22 + + 84 / + + NULLIF ( - + COUNT ( * ), - 45 )
----
-556

query I rowsort
SELECT DISTINCT - + 13 * + + 37 AS col2
----
-481

query I rowsort
SELECT DISTINCT - - 88 * + 95
----
8360

onlyif mysql # DIV for integer division: 
query I rowsort label-8371
SELECT + 81 DIV + 65 + 77
----
78

skipif mysql # not compatible
query I rowsort label-8371
SELECT + 81 / + 65 + 77
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8372
SELECT ALL + COUNT( * ) * + 49 + - + 80 + + - 98 col1
----
-129

skipif mysql # not compatible
query I rowsort label-8372
SELECT ALL + COUNT ( * ) * + 49 + - + 80 + + - 98 col1
----
-129

query I rowsort
SELECT + - 40 + + 99
----
59

query I rowsort
SELECT + 52 + - + 14
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-8375
SELECT DISTINCT CASE WHEN NOT + 75 <= - + 56 * 67 * - + 94 * 24 + - 44 THEN NULL ELSE + 4 END DIV + + 85 + - - 20 AS col2
----
20

skipif mysql # not compatible
query I rowsort label-8375
SELECT DISTINCT CASE WHEN NOT + 75 <= - + 56 * 67 * - + 94 * 24 + - 44 THEN NULL ELSE + 4 END / + + 85 + - - 20 AS col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8376
SELECT CASE + 13 WHEN + ( COALESCE ( 93, + COUNT( * ) ) ) / - 22 THEN + - 63 WHEN - ( 3 ) THEN 33 + - 32 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8376
SELECT CASE + 13 WHEN + ( COALESCE ( 93, + COUNT ( * ) ) ) / - 22 THEN + - 63 WHEN - ( 3 ) THEN 33 + - 32 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 76 * 57 col0
----
-4332

query I rowsort
SELECT ALL 71 * + + 73 + + 57 + 55 AS col1
----
5295

onlyif mysql # aggregate syntax: 
query I rowsort label-8379
SELECT ALL MAX( DISTINCT - 12 ) * - - MIN( - - 14 ) + - COUNT( * ) AS col1
----
-169

skipif mysql # not compatible
query I rowsort label-8379
SELECT ALL MAX ( DISTINCT - 12 ) * - - MIN ( - - 14 ) + - COUNT ( * ) AS col1
----
-169

onlyif mysql # aggregate syntax: 
query I rowsort label-8380
SELECT - 45 * + COUNT( * ) AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-8380
SELECT - 45 * + COUNT ( * ) AS col2
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8381
SELECT + 56 - + + 42 + + COUNT( * ) * 86 + + - 29 DIV - - 4 AS col2
----
93

skipif mysql # not compatible
query I rowsort label-8381
SELECT + 56 - + + 42 + + COUNT ( * ) * 86 + + - 29 / - - 4 AS col2
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8382
SELECT - 22 AS col0, + CAST( NULL AS SIGNED ) * - 72 + ( + 59 )
----
-22
NULL

skipif mysql # not compatible
query II rowsort label-8382
SELECT - 22 AS col0, + CAST ( NULL AS INTEGER ) * - 72 + ( + 59 )
----
-22
NULL

query I rowsort
SELECT ALL 68 * - - 11 AS col2
----
748

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8384
SELECT - CAST( + - 2 AS SIGNED ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-8384
SELECT - CAST ( + - 2 AS INTEGER ) AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8385
SELECT ALL 32 * + - COUNT( * ) * + - MIN( + 3 ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-8385
SELECT ALL 32 * + - COUNT ( * ) * + - MIN ( + 3 ) AS col2
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-8386
SELECT 2 AS col1, COUNT( * ) * + COUNT( * )
----
2
1

skipif mysql # not compatible
query II rowsort label-8386
SELECT 2 AS col1, COUNT ( * ) * + COUNT ( * )
----
2
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8387
SELECT DISTINCT 1 - 54 * CAST( - 97 AS SIGNED ) * MAX( - 38 )
----
-199043

skipif mysql # not compatible
query I rowsort label-8387
SELECT DISTINCT 1 - 54 * CAST ( - 97 AS INTEGER ) * MAX ( - 38 )
----
-199043

onlyif mysql # DIV for integer division: 
query I rowsort label-8388
SELECT DISTINCT - - 65 DIV + 19 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-8388
SELECT DISTINCT - - 65 / + 19 AS col2
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8389
SELECT ALL + + 3 - ( - NULLIF ( - COUNT( * ), 0 ) ) DIV 31
----
3

skipif mysql # not compatible
query I rowsort label-8389
SELECT ALL + + 3 - ( - NULLIF ( - COUNT ( * ), 0 ) ) / 31
----
3

query I rowsort
SELECT - 2 + - 14 AS col2
----
-16

query I rowsort
SELECT ALL + - 90 * + ( 9 ) + - 74
----
-884

onlyif mysql # aggregate syntax: 
query I rowsort label-8392
SELECT 91 + COALESCE ( - 7, + + 37, 85 + - 38 - + COUNT( * ) * 6 * - 54 - MAX( ALL - 32 ) * - 17 ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-8392
SELECT 91 + COALESCE ( - 7, + + 37, 85 + - 38 - + COUNT ( * ) * 6 * - 54 - MAX ( ALL - 32 ) * - 17 ) AS col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8393
SELECT - 85 * - 82 + - - 9 + + CASE + ( + CASE 74 WHEN + - 48 + + 65 * CASE COUNT( * ) WHEN - 36 / ( - 16 ) THEN NULL WHEN 20 - 32 THEN - 53 ELSE NULL END THEN + 38 ELSE COALESCE ( 85, + 94 ) END ) WHEN 55 THEN NULL WHEN 57 THEN NULL ELSE COUNT( * ) END
----
6980

skipif mysql # not compatible
query I rowsort label-8393
SELECT - 85 * - 82 + - - 9 + + CASE + ( + CASE 74 WHEN + - 48 + + 65 * CASE COUNT ( * ) WHEN - 36 / ( - 16 ) THEN NULL WHEN 20 - 32 THEN - 53 ELSE NULL END THEN + 38 ELSE COALESCE ( 85, + 94 ) END ) WHEN 55 THEN NULL WHEN 57 THEN NULL ELSE COUNT ( * ) END
----
6980

onlyif mysql # aggregate syntax: 
query I rowsort label-8394
SELECT DISTINCT + NULLIF ( - COUNT( * ), - - 37 ) * + COUNT( * ) * + 77
----
-77

skipif mysql # not compatible
query I rowsort label-8394
SELECT DISTINCT + NULLIF ( - COUNT ( * ), - - 37 ) * + COUNT ( * ) * + 77
----
-77

query I rowsort
SELECT DISTINCT - 74 * - - 22 AS col2
----
-1628

onlyif mysql # aggregate syntax: 
query I rowsort label-8396
SELECT - SUM( - 12 )
----
12

skipif mysql # not compatible
query I rowsort label-8396
SELECT - SUM ( - 12 )
----
12

query I rowsort
SELECT ALL - ( NULLIF ( - 90, + 93 + + + 16 ) ) AS col0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8398
SELECT ALL - ( - SUM( 57 ) ) - - 70
----
127

skipif mysql # not compatible
query I rowsort label-8398
SELECT ALL - ( - SUM ( 57 ) ) - - 70
----
127

query I rowsort
SELECT + 52 * + ( + 80 )
----
4160

query I rowsort
SELECT ALL - 30 * + 52
----
-1560

onlyif mysql # aggregate syntax: 
query II rowsort label-8401
SELECT 6 AS col0, - COUNT( * ) * - 75
----
6
75

skipif mysql # not compatible
query II rowsort label-8401
SELECT 6 AS col0, - COUNT ( * ) * - 75
----
6
75

query I rowsort
SELECT DISTINCT - + 85 * 77 * - 18
----
117810

onlyif mysql # aggregate syntax: 
query I rowsort label-8403
SELECT ALL - + COALESCE ( + 57, COUNT( DISTINCT 38 ) )
----
-57

skipif mysql # not compatible
query I rowsort label-8403
SELECT ALL - + COALESCE ( + 57, COUNT ( DISTINCT 38 ) )
----
-57

query II rowsort
SELECT 12, 67 AS col1
----
12
67

query I rowsort
SELECT - COALESCE ( + - 35, 28 ) * - 46 + - 88
----
-1698

onlyif mysql # aggregate syntax: 
query I rowsort label-8406
SELECT - 88 * - - MAX( - 46 )
----
4048

skipif mysql # not compatible
query I rowsort label-8406
SELECT - 88 * - - MAX ( - 46 )
----
4048

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8407
SELECT - 2 DIV - 67 - + 99 - + - 38 * 71 * - 85 - COUNT( * ) AS col1
----
-229430

skipif mysql # not compatible
query I rowsort label-8407
SELECT - 2 / - 67 - + 99 - + - 38 * 71 * - 85 - COUNT ( * ) AS col1
----
-229430

query II rowsort
SELECT 11 AS col0, 83
----
11
83

query I rowsort
SELECT 30 * - 99 AS col2
----
-2970

onlyif mysql # aggregate syntax: 
query II rowsort label-8410
SELECT DISTINCT - MIN( + 7 ), 86 AS col1
----
-7
86

skipif mysql # not compatible
query II rowsort label-8410
SELECT DISTINCT - MIN ( + 7 ), 86 AS col1
----
-7
86

query I rowsort
SELECT ALL + 53 + + 27
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8412
SELECT ALL + ( - - MAX( + 96 ) ) + - 69 - 32 + - 77 * + ( 41 ) * + + COUNT( * ) * - CAST( - + 94 AS SIGNED ) AS col2
----
-296763

skipif mysql # not compatible
query I rowsort label-8412
SELECT ALL + ( - - MAX ( + 96 ) ) + - 69 - 32 + - 77 * + ( 41 ) * + + COUNT ( * ) * - CAST ( - + 94 AS INTEGER ) AS col2
----
-296763

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8413
SELECT ALL 63 + 35 + + - 61 DIV - 43 + - - 91 DIV 92 * + + 75 DIV - 60 - - 69, - ( + 41 ) * - 0 DIV - CASE + 21 WHEN + 58 + + 23 THEN + 74 * COUNT( * ) DIV + COUNT( * ) + + 54 WHEN 92 * 71 THEN NULL END * + 94 AS col2
----
168
NULL

skipif mysql # not compatible
query II rowsort label-8413
SELECT ALL 63 + 35 + + - 61 / - 43 + - - 91 / 92 * + + 75 / - 60 - - 69, - ( + 41 ) * - 0 / - CASE + 21 WHEN + 58 + + 23 THEN + 74 * COUNT ( * ) / + COUNT ( * ) + + 54 WHEN 92 * 71 THEN NULL END * + 94 AS col2
----
168
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8414
SELECT ALL - 17 + 15 + + MIN( ALL - 57 ) + 44 * - 80
----
-3579

skipif mysql # not compatible
query I rowsort label-8414
SELECT ALL - 17 + 15 + + MIN ( ALL - 57 ) + 44 * - 80
----
-3579

query I rowsort
SELECT DISTINCT 33 * + - ( 30 )
----
-990

onlyif mysql # aggregate syntax: 
query I rowsort label-8416
SELECT ALL 27 + - + COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-8416
SELECT ALL 27 + - + COUNT ( * )
----
26

query I rowsort
SELECT 55 + - 69 + 98
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8418
SELECT COUNT( * ) * - 57 - + 0 + COUNT( DISTINCT + ( + + 23 ) ) col0
----
-56

skipif mysql # not compatible
query I rowsort label-8418
SELECT COUNT ( * ) * - 57 - + 0 + COUNT ( DISTINCT + ( + + 23 ) ) col0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-8419
SELECT CASE + 19 WHEN 83 THEN COUNT( * ) END + + - 17 * - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-8419
SELECT CASE + 19 WHEN 83 THEN COUNT ( * ) END + + - 17 * - 34
----
NULL

query I rowsort
SELECT ALL 21 + + ( + + 94 )
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-8421
SELECT ( + 20 ) * + + 35 - - - ( - 28 ) + - NULLIF ( - COUNT( * ), 36 + - 12 )
----
729

skipif mysql # not compatible
query I rowsort label-8421
SELECT ( + 20 ) * + + 35 - - - ( - 28 ) + - NULLIF ( - COUNT ( * ), 36 + - 12 )
----
729

onlyif mysql # aggregate syntax: 
query I rowsort label-8422
SELECT ALL 14 * + NULLIF ( - COUNT( * ), - 80 ) * - + COUNT( * ) * - + COUNT( * )
----
-14

skipif mysql # not compatible
query I rowsort label-8422
SELECT ALL 14 * + NULLIF ( - COUNT ( * ), - 80 ) * - + COUNT ( * ) * - + COUNT ( * )
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8423
SELECT ALL - COUNT( * ) * - - COUNT( * ) DIV 32
----
0

skipif mysql # not compatible
query I rowsort label-8423
SELECT ALL - COUNT ( * ) * - - COUNT ( * ) / 32
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8424
SELECT - 33 + + CAST( - 1 AS SIGNED ) * - COALESCE ( COUNT( * ), - + COUNT( * ) - - - 25 DIV + 16 * 6 * + 97 ) * 68 - - + 85 + 80 + - - 26, - 96 AS col1
----
226
-96

skipif mysql # not compatible
query II rowsort label-8424
SELECT - 33 + + CAST ( - 1 AS INTEGER ) * - COALESCE ( COUNT ( * ), - + COUNT ( * ) - - - 25 / + 16 * 6 * + 97 ) * 68 - - + 85 + 80 + - - 26, - 96 AS col1
----
226
-96

query I rowsort
SELECT 67 * + - 67 + + 34 AS col0
----
-4455

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8426
SELECT 44 + - 65 DIV + COUNT( + 16 ) AS col0, - 12 + - + 95 - - CAST( - - 34 AS SIGNED ) + - 82 DIV COALESCE ( + 9, - 56 + + 36 DIV - - 42 + COUNT( * ) - - CAST( NULL AS SIGNED ) )
----
-21
-82

skipif mysql # not compatible
query II rowsort label-8426
SELECT 44 + - 65 / + COUNT ( + 16 ) AS col0, - 12 + - + 95 - - CAST ( - - 34 AS INTEGER ) + - 82 / COALESCE ( + 9, - 56 + + 36 / - - 42 + COUNT ( * ) - - CAST ( NULL AS INTEGER ) )
----
-21
-82

query I rowsort
SELECT - COALESCE ( 0, + 60 )
----
0

query I rowsort
SELECT + 69 + + 88 - + + 12 AS col1
----
145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8429
SELECT + CAST( NULL AS SIGNED ) * + CASE + 30 WHEN - - 14 - 67 THEN + 76 + + - 4 * MIN( DISTINCT - + 80 ) WHEN + ( 71 ) + - - NULLIF ( + - 47, COUNT( * ) + + 96 * 50 * + 39 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8429
SELECT + CAST ( NULL AS INTEGER ) * + CASE + 30 WHEN - - 14 - 67 THEN + 76 + + - 4 * MIN ( DISTINCT - + 80 ) WHEN + ( 71 ) + - - NULLIF ( + - 47, COUNT ( * ) + + 96 * 50 * + 39 ) THEN NULL END
----
NULL

query II rowsort
SELECT ALL COALESCE ( - 83, 71, + 41 ), 46 AS col2
----
-83
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8431
SELECT + ( - CASE MAX( + + 67 ) WHEN - + ( + - 23 ) THEN + - NULLIF ( 8, + - 60 * - 63 / + COUNT( * ) ) END ) / + 82 * + 18 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8431
SELECT + ( - CASE MAX ( + + 67 ) WHEN - + ( + - 23 ) THEN + - NULLIF ( 8, + - 60 * - 63 / + COUNT ( * ) ) END ) / + 82 * + 18 col0
----
NULL

query I rowsort
SELECT 13 + - 2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8433
SELECT ( + MAX( DISTINCT - + 65 ) ) col1
----
-65

skipif mysql # not compatible
query I rowsort label-8433
SELECT ( + MAX ( DISTINCT - + 65 ) ) col1
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-8434
SELECT - SUM( DISTINCT + + 36 ) + - 50 AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-8434
SELECT - SUM ( DISTINCT + + 36 ) + - 50 AS col2
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8435
SELECT - - CASE CAST( + + ( - + 20 ) AS SIGNED ) WHEN - 7 * + COUNT( * ) / + - AVG ( + + 62 ) THEN NULL ELSE 82 END * 76 + + 63 - - COUNT( - - 91 ) - + 74 * - 82 * + + 96 col1
----
588824

skipif mysql # not compatible
query I rowsort label-8435
SELECT - - CASE CAST ( + + ( - + 20 ) AS INTEGER ) WHEN - 7 * + COUNT ( * ) / + - AVG ( + + 62 ) THEN NULL ELSE 82 END * 76 + + 63 - - COUNT ( - - 91 ) - + 74 * - 82 * + + 96 col1
----
588824

onlyif mysql # aggregate syntax: 
query I rowsort label-8436
SELECT + 66 * 30 - + + CASE - + 4 WHEN - 97 + + ( - COUNT( * ) ) THEN + - 15 * + + 22 - 18 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8436
SELECT + 66 * 30 - + + CASE - + 4 WHEN - 97 + + ( - COUNT ( * ) ) THEN + - 15 * + + 22 - 18 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8437
SELECT ALL + 48 * 84 * + CAST( NULL AS DECIMAL ) + - 38 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8437
SELECT ALL + 48 * 84 * + CAST ( NULL AS REAL ) + - 38 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8438
SELECT DISTINCT 44 * - + 74 * MIN( ALL - 58 ) + - 49 + - 33 + + 7 * 19
----
188899

skipif mysql # not compatible
query I rowsort label-8438
SELECT DISTINCT 44 * - + 74 * MIN ( ALL - 58 ) + - 49 + - 33 + + 7 * 19
----
188899

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8439
SELECT + CAST( NULL AS SIGNED ) * + + 28 / + - ( + 68 ) + + 2 + + + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-8439
SELECT + CAST ( NULL AS INTEGER ) * + + 28 / + - ( + 68 ) + + 2 + + + 38
----
NULL

query I rowsort
SELECT ALL + 83 * - 48 + - 0
----
-3984

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8441
SELECT ALL - 21 + CAST( NULL AS SIGNED ) * - - 55
----
NULL

skipif mysql # not compatible
query I rowsort label-8441
SELECT ALL - 21 + CAST ( NULL AS INTEGER ) * - - 55
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8442
SELECT ALL - NULLIF ( - ( MIN( + - NULLIF ( + 56, + 65 ) ) ), - + 71 * + 53 ) col0
----
-56

skipif mysql # not compatible
query I rowsort label-8442
SELECT ALL - NULLIF ( - ( MIN ( + - NULLIF ( + 56, + 65 ) ) ), - + 71 * + 53 ) col0
----
-56

query I rowsort
SELECT 55 * - 73
----
-4015

onlyif mysql # aggregate syntax: 
query I rowsort label-8444
SELECT MAX( DISTINCT + 31 ) + - 32 * + + 26
----
-801

skipif mysql # not compatible
query I rowsort label-8444
SELECT MAX ( DISTINCT + 31 ) + - 32 * + + 26
----
-801

query I rowsort
SELECT ALL - 86 - - + 26
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8446
SELECT DISTINCT 80 * - CAST( - - COUNT( * ) AS SIGNED ) AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-8446
SELECT DISTINCT 80 * - CAST ( - - COUNT ( * ) AS INTEGER ) AS col2
----
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-8447
SELECT ALL + 59 DIV + + 42
----
1

skipif mysql # not compatible
query I rowsort label-8447
SELECT ALL + 59 / + + 42
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8448
SELECT DISTINCT - 4 - COUNT( * ) * - COUNT( * ) col0, 91 * - 93 * + 50
----
-3
-423150

skipif mysql # not compatible
query II rowsort label-8448
SELECT DISTINCT - 4 - COUNT ( * ) * - COUNT ( * ) col0, 91 * - 93 * + 50
----
-3
-423150

onlyif mysql # aggregate syntax: 
query I rowsort label-8449
SELECT DISTINCT COUNT( * ) * + 70
----
70

skipif mysql # not compatible
query I rowsort label-8449
SELECT DISTINCT COUNT ( * ) * + 70
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8450
SELECT DISTINCT + 41 * - NULLIF ( + + CASE + - COUNT( * ) WHEN 14 * - 66 + + - 15 THEN + + 19 * + 49 ELSE NULL END, + 3 + + 77 ) * - 82
----
NULL

skipif mysql # not compatible
query I rowsort label-8450
SELECT DISTINCT + 41 * - NULLIF ( + + CASE + - COUNT ( * ) WHEN 14 * - 66 + + - 15 THEN + + 19 * + 49 ELSE NULL END, + 3 + + 77 ) * - 82
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8451
SELECT DISTINCT NULLIF ( + - 92, - + 27 * + - 15 * COUNT( * ) + + 49 ) - + + 1 AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-8451
SELECT DISTINCT NULLIF ( + - 92, - + 27 * + - 15 * COUNT ( * ) + + 49 ) - + + 1 AS col2
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-8452
SELECT DISTINCT + 32 * COUNT( * ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-8452
SELECT DISTINCT + 32 * COUNT ( * ) AS col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8453
SELECT - COUNT( DISTINCT 71 )
----
-1

skipif mysql # not compatible
query I rowsort label-8453
SELECT - COUNT ( DISTINCT 71 )
----
-1

query I rowsort
SELECT + 73 * + 45
----
3285

query I rowsort
SELECT ALL ( - + 77 ) AS col0
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-8456
SELECT ALL - 49 DIV - 16
----
3

skipif mysql # not compatible
query I rowsort label-8456
SELECT ALL - 49 / - 16
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8457
SELECT - 93 * + 22 DIV - 22 AS col1
----
93

skipif mysql # not compatible
query I rowsort label-8457
SELECT - 93 * + 22 / - 22 AS col1
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8458
SELECT + CAST( + 41 AS SIGNED ) AS col0
----
41

skipif mysql # not compatible
query I rowsort label-8458
SELECT + CAST ( + 41 AS INTEGER ) AS col0
----
41

query I rowsort
SELECT + 6 * - 5 * 81
----
-2430

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8460
SELECT + CAST( NULL AS SIGNED ) - - + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-8460
SELECT + CAST ( NULL AS INTEGER ) - - + 12
----
NULL

query I rowsort
SELECT + - 2 * 29 AS col0
----
-58

query I rowsort
SELECT DISTINCT 21 * + 2 AS col1
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8463
SELECT ALL + 22 + + CAST( 88 AS SIGNED )
----
110

skipif mysql # not compatible
query I rowsort label-8463
SELECT ALL + 22 + + CAST ( 88 AS INTEGER )
----
110

query I rowsort
SELECT ALL + 64 + + + 74
----
138

query I rowsort
SELECT + 9 * 94
----
846

query I rowsort
SELECT - 79 + - 46 AS col2
----
-125

query I rowsort
SELECT ALL 92 + - - 86
----
178

query II rowsort
SELECT - - 99, NULLIF ( + 51, 40 ) AS col0
----
99
51

query I rowsort
SELECT + + 76 * ( ( 92 ) ) AS col1
----
6992

onlyif mysql # aggregate syntax: 
query I rowsort label-8470
SELECT DISTINCT + + ( + COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8470
SELECT DISTINCT + + ( + COUNT ( * ) ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8471
SELECT ALL CAST( NULL AS SIGNED ) * - + 15 + + - 89 + COALESCE ( + + 53, + 82 * + + CASE + 43 WHEN 78 * + 96 THEN - - 8 ELSE - 99 END - - 7 ) * + 89 / - 68 + + COUNT( * ) + + 0 * + + 78 + - - 23 AS col2, 42
----
NULL
42

skipif mysql # not compatible
query II rowsort label-8471
SELECT ALL CAST ( NULL AS INTEGER ) * - + 15 + + - 89 + COALESCE ( + + 53, + 82 * + + CASE + 43 WHEN 78 * + 96 THEN - - 8 ELSE - 99 END - - 7 ) * + 89 / - 68 + + COUNT ( * ) + + 0 * + + 78 + - - 23 AS col2, 42
----
NULL
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8472
SELECT ( - - MAX( + 64 ) ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-8472
SELECT ( - - MAX ( + 64 ) ) AS col0
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-8473
SELECT + 53 AS col0, - COUNT( DISTINCT 62 ) * 46 * + + 86
----
53
-3956

skipif mysql # not compatible
query II rowsort label-8473
SELECT + 53 AS col0, - COUNT ( DISTINCT 62 ) * 46 * + + 86
----
53
-3956

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8474
SELECT - 22 * + COUNT( * ) DIV - + 99
----
0

skipif mysql # not compatible
query I rowsort label-8474
SELECT - 22 * + COUNT ( * ) / - + 99
----
0

query I rowsort
SELECT + 33 + + 39 AS col0
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8476
SELECT - 39 DIV - - ( + + SUM( ALL 48 ) ), + 66 * + 82 AS col0
----
0
5412

skipif mysql # not compatible
query II rowsort label-8476
SELECT - 39 / - - ( + + SUM ( ALL 48 ) ), + 66 * + 82 AS col0
----
0
5412

query I rowsort
SELECT ALL - 17 * - 18 * - 11
----
-3366

query I rowsort
SELECT - 86 * - + 78
----
6708

query I rowsort
SELECT ALL 92 * 87 AS col0
----
8004

onlyif mysql # aggregate syntax: 
query I rowsort label-8480
SELECT COALESCE ( - ( - + 35 ), - ( - + COUNT( * ) ) )
----
35

skipif mysql # not compatible
query I rowsort label-8480
SELECT COALESCE ( - ( - + 35 ), - ( - + COUNT ( * ) ) )
----
35

onlyif mysql # DIV for integer division: 
query II rowsort label-8481
SELECT ALL CASE + + ( + 55 ) WHEN + ( 83 ) THEN 8 ELSE NULL END * + - 98 * + 79 * 90 + + - 8 - + 30 DIV + - 40, + 22 DIV + 98 AS col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-8481
SELECT ALL CASE + + ( + 55 ) WHEN + ( 83 ) THEN 8 ELSE NULL END * + - 98 * + 79 * 90 + + - 8 - + 30 / + - 40, + 22 / + 98 AS col1
----
NULL
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8482
SELECT ALL + ( - - 77 ) AS col1, - COUNT( DISTINCT - 39 ) * 14 AS col2
----
77
-14

skipif mysql # not compatible
query II rowsort label-8482
SELECT ALL + ( - - 77 ) AS col1, - COUNT ( DISTINCT - 39 ) * 14 AS col2
----
77
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8483
SELECT DISTINCT + 45 * 87 AS col0, COUNT( - 11 ) + + 50 * CAST( NULL AS SIGNED ) + - 21 col2
----
3915
NULL

skipif mysql # not compatible
query II rowsort label-8483
SELECT DISTINCT + 45 * 87 AS col0, COUNT ( - 11 ) + + 50 * CAST ( NULL AS INTEGER ) + - 21 col2
----
3915
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8484
SELECT NULLIF ( 53, 32 + + + 85 / ( COUNT( * ) ) * + 97 + - COUNT( * ) )
----
53

skipif mysql # not compatible
query I rowsort label-8484
SELECT NULLIF ( 53, 32 + + + 85 / ( COUNT ( * ) ) * + 97 + - COUNT ( * ) )
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-8485
SELECT DISTINCT + 41 AS col2, + 70 * - 0 * + - COUNT( * ) AS col1
----
41
0

skipif mysql # not compatible
query II rowsort label-8485
SELECT DISTINCT + 41 AS col2, + 70 * - 0 * + - COUNT ( * ) AS col1
----
41
0

query I rowsort
SELECT ALL + ( + 13 ) AS col1
----
13

query I rowsort
SELECT - 49 * - - 14
----
-686

query II rowsort
SELECT ALL 20 AS col0, + 37 AS col2
----
20
37

onlyif mysql # aggregate syntax: 
query I rowsort label-8489
SELECT ALL - MAX( - - 6 ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-8489
SELECT ALL - MAX ( - - 6 ) AS col0
----
-6

query I rowsort
SELECT - + 23 + - 52
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8491
SELECT ALL 48 + + NULLIF ( - 48, 49 * - + COUNT( * ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8491
SELECT ALL 48 + + NULLIF ( - 48, 49 * - + COUNT ( * ) ) AS col1
----
0

query I rowsort
SELECT - - 48 + 5 AS col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8493
SELECT ALL - - COUNT( * ) * 7 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-8493
SELECT ALL - - COUNT ( * ) * 7 AS col1
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-8494
SELECT - + 32 DIV + + 43 - - 52 + 4 AS col2
----
56

skipif mysql # not compatible
query I rowsort label-8494
SELECT - + 32 / + + 43 - - 52 + 4 AS col2
----
56

query I rowsort
SELECT ALL + 51 + + + 38 col1
----
89

query I rowsort
SELECT ALL - - 28 + - + 67
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-8497
SELECT - + MAX( - - 90 ) * 62
----
-5580

skipif mysql # not compatible
query I rowsort label-8497
SELECT - + MAX ( - - 90 ) * 62
----
-5580

query II rowsort
SELECT - 77 AS col0, 17 AS col1
----
-77
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8499
SELECT - 93 + + NULLIF ( 54, + 93 ) DIV - + COALESCE ( 65, - + 77 - + 57 + + 83 + + 29 - - COUNT( * ) * 62 DIV 28 + 97 ) + + + 60 AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-8499
SELECT - 93 + + NULLIF ( 54, + 93 ) / - + COALESCE ( 65, - + 77 - + 57 + + 83 + + 29 - - COUNT ( * ) * 62 / 28 + 97 ) + + + 60 AS col2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-8500
SELECT + 67 + + 4 + 49 - - COUNT( * ) - + COUNT( * ) * + 83 * - 29 * - 68
----
-163555

skipif mysql # not compatible
query I rowsort label-8500
SELECT + 67 + + 4 + 49 - - COUNT ( * ) - + COUNT ( * ) * + 83 * - 29 * - 68
----
-163555

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8501
SELECT ALL - + 36 + + CAST( + 27 AS SIGNED ) * - + ( 95 ) * + ( 26 ) AS col2, - 19 AS col1
----
-66726
-19

skipif mysql # not compatible
query II rowsort label-8501
SELECT ALL - + 36 + + CAST ( + 27 AS INTEGER ) * - + ( 95 ) * + ( 26 ) AS col2, - 19 AS col1
----
-66726
-19

query I rowsort
SELECT ALL 64 + + + 34 + - - 18 AS col0
----
116

query I rowsort
SELECT + + 30 + 99
----
129

query I rowsort
SELECT ( 28 ) col2
----
28

query I rowsort
SELECT ALL 52 * - 11 AS col1
----
-572

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8506
SELECT - 23 * 13 + 70 DIV + COUNT( * ) DIV + COUNT( * ) AS col0, 86 DIV + + 20
----
-229
4

skipif mysql # not compatible
query II rowsort label-8506
SELECT - 23 * 13 + 70 / + COUNT ( * ) / + COUNT ( * ) AS col0, 86 / + + 20
----
-229
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8507
SELECT + NULLIF ( - COUNT( - + 64 ), - 11 * 98 ) AS col0, - 73 / - + CAST( NULL AS SIGNED ) + - 34
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-8507
SELECT + NULLIF ( - COUNT ( - + 64 ), - 11 * 98 ) AS col0, - 73 / - + CAST ( NULL AS INTEGER ) + - 34
----
-1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8508
SELECT + 29 / + CAST( NULL AS SIGNED ) + 35 - - COALESCE ( - 65, 99 / + 63 * 75 / + ( + 50 ) - - + COALESCE ( + + 47, + 55 ) + + ( - + COUNT( * ) ) * - 27, + 1 / - COUNT( * ) - + - CAST( NULL AS DECIMAL ) + 93 / - 72 ) + ( ( 43 ) ) / 12
----
NULL

skipif mysql # not compatible
query I rowsort label-8508
SELECT + 29 / + CAST ( NULL AS INTEGER ) + 35 - - COALESCE ( - 65, 99 / + 63 * 75 / + ( + 50 ) - - + COALESCE ( + + 47, + 55 ) + + ( - + COUNT ( * ) ) * - 27, + 1 / - COUNT ( * ) - + - CAST ( NULL AS REAL ) + 93 / - 72 ) + ( ( 43 ) ) / 12
----
NULL

query I rowsort
SELECT + 42 * - 43 + - + 65
----
-1871

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8510
SELECT DISTINCT COUNT( DISTINCT - + 92 ) DIV + 29 - 2
----
-2

skipif mysql # not compatible
query I rowsort label-8510
SELECT DISTINCT COUNT ( DISTINCT - + 92 ) / + 29 - 2
----
-2

query I rowsort
SELECT ALL 4 * - 94 * + - 94
----
35344

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8512
SELECT DISTINCT 17 / - COUNT( * ) * - + 34 - - + 62 * 90 * - COUNT( * ) * + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8512
SELECT DISTINCT 17 / - COUNT ( * ) * - + 34 - - + 62 * 90 * - COUNT ( * ) * + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8513
SELECT CAST( ( - 94 ) AS SIGNED ) * + 65 * + - MAX( 30 ) * - ( - 62 ) + - + 7 + ( - CAST( - - 94 AS SIGNED ) )
----
11364499

skipif mysql # not compatible
query I rowsort label-8513
SELECT CAST ( ( - 94 ) AS INTEGER ) * + 65 * + - MAX ( 30 ) * - ( - 62 ) + - + 7 + ( - CAST ( - - 94 AS INTEGER ) )
----
11364499

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-8514
SELECT DISTINCT - CASE - + CAST( - 11 AS DECIMAL ) WHEN - NULLIF ( + - 66, + SUM( + 18 ) ) * - - NULLIF ( + 33, ( ( - 31 ) ) ) THEN NULL WHEN + 16 THEN NULL WHEN - 2 THEN NULL ELSE 45 END DIV - 39 + + 14
----
15

skipif mysql # not compatible
query I rowsort label-8514
SELECT DISTINCT - CASE - + CAST ( - 11 AS REAL ) WHEN - NULLIF ( + - 66, + SUM ( + 18 ) ) * - - NULLIF ( + 33, ( ( - 31 ) ) ) THEN NULL WHEN + 16 THEN NULL WHEN - 2 THEN NULL ELSE 45 END / - 39 + + 14
----
15

query I rowsort
SELECT 9 * 23 AS col0
----
207

query II rowsort
SELECT 15 + - 98 + + - ( + 17 ) * 83 AS col0, + 71 col1
----
-1494
71

query I rowsort
SELECT DISTINCT 55 * - 8 * - - 21
----
-9240

query I rowsort
SELECT 25 + - 90 AS col1
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8519
SELECT CAST( - + CAST( NULLIF ( + 92, - + 91 ) AS SIGNED ) AS SIGNED ) * + 54 AS col0
----
-4968

skipif mysql # not compatible
query I rowsort label-8519
SELECT CAST ( - + CAST ( NULLIF ( + 92, - + 91 ) AS INTEGER ) AS INTEGER ) * + 54 AS col0
----
-4968

onlyif mysql # aggregate syntax: 
query I rowsort label-8520
SELECT COUNT( + + 20 ) * - 94 + NULLIF ( - + 95, + 70 * - - 98 + 50 ) - + + 50 * ( - 48 ) + 14
----
2225

skipif mysql # not compatible
query I rowsort label-8520
SELECT COUNT ( + + 20 ) * - 94 + NULLIF ( - + 95, + 70 * - - 98 + 50 ) - + + 50 * ( - 48 ) + 14
----
2225

query I rowsort
SELECT - 80 * + 33 * + 12 + + - 13
----
-31693

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8522
SELECT ALL + 57 + + 97 - - ( CAST( NULL AS SIGNED ) ) / - - 1 * 4 * ( + - 12 ) + - - COUNT( * ) * - 40 * 70 / - - 79 * COUNT( ALL 17 ) + ( + + COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8522
SELECT ALL + 57 + + 97 - - ( CAST ( NULL AS INTEGER ) ) / - - 1 * 4 * ( + - 12 ) + - - COUNT ( * ) * - 40 * 70 / - - 79 * COUNT ( ALL 17 ) + ( + + COUNT ( * ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8523
SELECT ALL + 46 * + - 66 * - CASE - + MIN( + - 56 ) WHEN + 16 THEN + 80 END * 62 * + ( + 15 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8523
SELECT ALL + 46 * + - 66 * - CASE - + MIN ( + - 56 ) WHEN + 16 THEN + 80 END * 62 * + ( + 15 ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8524
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - + 6 * - + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-8524
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - + 6 * - + 51
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8525
SELECT ALL - - CAST( + 15 AS SIGNED ) + + - NULLIF ( + - 92, 19 ) AS col2
----
107

skipif mysql # not compatible
query I rowsort label-8525
SELECT ALL - - CAST ( + 15 AS INTEGER ) + + - NULLIF ( + - 92, 19 ) AS col2
----
107

query I rowsort
SELECT ALL + ( + 3 ) + 40 AS col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8527
SELECT 60 - - COUNT( * ) * 57 + + + COALESCE ( + - 61, + 2 ) + COUNT( ALL - 26 ) - - COUNT( * ) * - - 76
----
133

skipif mysql # not compatible
query I rowsort label-8527
SELECT 60 - - COUNT ( * ) * 57 + + + COALESCE ( + - 61, + 2 ) + COUNT ( ALL - 26 ) - - COUNT ( * ) * - - 76
----
133

query I rowsort
SELECT DISTINCT - 14 + + - 32 * - 27 col0
----
850

onlyif mysql # aggregate syntax: 
query I rowsort label-8529
SELECT - CASE - - SUM( DISTINCT + 95 ) WHEN - 44 THEN ( + 52 ) + - - 90 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8529
SELECT - CASE - - SUM ( DISTINCT + 95 ) WHEN - 44 THEN ( + 52 ) + - - 90 ELSE NULL END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8530
SELECT ALL - - COUNT( * ) + + 8 + + MIN( DISTINCT + 0 ) * ( 78 ) col1
----
9

skipif mysql # not compatible
query I rowsort label-8530
SELECT ALL - - COUNT ( * ) + + 8 + + MIN ( DISTINCT + 0 ) * ( 78 ) col1
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8531
SELECT ALL - 70 DIV - - COALESCE ( + ( + 80 ), - COUNT( * ) + + 71 + + + 54 ) + + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-8531
SELECT ALL - 70 / - - COALESCE ( + ( + 80 ), - COUNT ( * ) + + 71 + + + 54 ) + + + COUNT ( * )
----
1

query I rowsort
SELECT ALL - 20 - + 81 - - 10 * - - 41
----
309

query I rowsort
SELECT - 85 * + 14 * 98 * 50
----
-5831000

onlyif mysql # aggregate syntax: 
query I rowsort label-8534
SELECT 49 + COUNT( + 66 )
----
50

skipif mysql # not compatible
query I rowsort label-8534
SELECT 49 + COUNT ( + 66 )
----
50

query I rowsort
SELECT ( + 85 ) + + CASE 71 WHEN - 94 + + 34 THEN - - 7 * + 45 ELSE NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8536
SELECT ALL 22 DIV + + 34 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8536
SELECT ALL 22 / + + 34 AS col2
----
0

query I rowsort
SELECT ALL 57 * + 4
----
228

query II rowsort
SELECT DISTINCT - 61 AS col0, - 18 + - + ( - 27 ) col2
----
-61
9

query I rowsort
SELECT 64 * - 24
----
-1536

query II rowsort
SELECT ALL - 35 AS col1, + 42
----
-35
42

query II rowsort
SELECT DISTINCT - 51 AS col1, 19
----
-51
19

query I rowsort
SELECT ALL 14 * 20 * - + 86
----
-24080

query I rowsort
SELECT 90 + + 50 col1
----
140

query I rowsort
SELECT + 62 * 35 + - 57
----
2113

query I rowsort
SELECT DISTINCT - 10 * - 60 AS col2
----
600

onlyif mysql # aggregate syntax: 
query I rowsort label-8546
SELECT ALL SUM( DISTINCT + + 76 ) + + + COUNT( * ) * 74
----
150

skipif mysql # not compatible
query I rowsort label-8546
SELECT ALL SUM ( DISTINCT + + 76 ) + + + COUNT ( * ) * 74
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-8547
SELECT 28 * - 8 * + - COALESCE ( + + 24, - + ( + MAX( ALL + 43 ) ) ) - 26 * + 83 * - + 37
----
85222

skipif mysql # not compatible
query I rowsort label-8547
SELECT 28 * - 8 * + - COALESCE ( + + 24, - + ( + MAX ( ALL + 43 ) ) ) - 26 * + 83 * - + 37
----
85222

query II rowsort
SELECT DISTINCT - - 12 AS col1, 29
----
12
29

onlyif mysql # aggregate syntax: 
query I rowsort label-8549
SELECT DISTINCT - 59 + + COUNT( * )
----
-58

skipif mysql # not compatible
query I rowsort label-8549
SELECT DISTINCT - 59 + + COUNT ( * )
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-8550
SELECT 5 DIV + ( + 18 )
----
0

skipif mysql # not compatible
query I rowsort label-8550
SELECT 5 / + ( + 18 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8551
SELECT 49 + + COUNT( * ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-8551
SELECT 49 + + COUNT ( * ) AS col2
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8552
SELECT ALL 70 + + COALESCE ( - 17, - SUM( - - 71 ), + - 57 DIV 11 )
----
53

skipif mysql # not compatible
query I rowsort label-8552
SELECT ALL 70 + + COALESCE ( - 17, - SUM ( - - 71 ), + - 57 / 11 )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8553
SELECT - ( - - COUNT( * ) ) + - 4 + + + COUNT( DISTINCT + 54 ) * + - COALESCE ( + - 95, 43, - 14 ) * - 81 AS col0
----
-7700

skipif mysql # not compatible
query I rowsort label-8553
SELECT - ( - - COUNT ( * ) ) + - 4 + + + COUNT ( DISTINCT + 54 ) * + - COALESCE ( + - 95, 43, - 14 ) * - 81 AS col0
----
-7700

onlyif mysql # aggregate syntax: 
query I rowsort label-8554
SELECT + - MAX( + 63 ) * 35 - - 2 + - 63
----
-2266

skipif mysql # not compatible
query I rowsort label-8554
SELECT + - MAX ( + 63 ) * 35 - - 2 + - 63
----
-2266

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8555
SELECT ALL + - 61 - COUNT( * ) + - 12 * 47 DIV - + 79 col0
----
-55

skipif mysql # not compatible
query I rowsort label-8555
SELECT ALL + - 61 - COUNT ( * ) + - 12 * 47 / - + 79 col0
----
-55

query I rowsort
SELECT 77 * + - 24 * - + 74 - CASE - 92 WHEN - 46 THEN + 13 WHEN NULLIF ( + 55, + 35 ) * - - 83 * 87 THEN NULL WHEN + 83 THEN ( + - 5 ) * 49 * + 63 ELSE NULL END
----
NULL

query I rowsort
SELECT + 52 * + ( - + 77 )
----
-4004

onlyif mysql # aggregate syntax: 
query II rowsort label-8558
SELECT ALL 58 AS col1, - MAX( - - 72 )
----
58
-72

skipif mysql # not compatible
query II rowsort label-8558
SELECT ALL 58 AS col1, - MAX ( - - 72 )
----
58
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-8559
SELECT MAX( DISTINCT - 87 ) + 82 + 95 + - 92
----
-2

skipif mysql # not compatible
query I rowsort label-8559
SELECT MAX ( DISTINCT - 87 ) + 82 + 95 + - 92
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8560
SELECT ALL - COUNT( * ) * + + 52 AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-8560
SELECT ALL - COUNT ( * ) * + + 52 AS col0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-8561
SELECT - COUNT( * ) + 39 AS col0
----
38

skipif mysql # not compatible
query I rowsort label-8561
SELECT - COUNT ( * ) + 39 AS col0
----
38

query I rowsort
SELECT DISTINCT + 86 * - 99 AS col1
----
-8514

query I rowsort
SELECT ALL COALESCE ( - - 93, 50 )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8564
SELECT - 80 + - 1 * COUNT( * )
----
-81

skipif mysql # not compatible
query I rowsort label-8564
SELECT - 80 + - 1 * COUNT ( * )
----
-81

query I rowsort
SELECT - 57 + 10 AS col2
----
-47

query I rowsort
SELECT ALL + 95 * - - 60
----
5700

onlyif mysql # aggregate syntax: 
query I rowsort label-8567
SELECT - CASE - 43 WHEN - + 50 THEN + NULLIF ( - + 65, - - 91 / - + 1 ) + - NULLIF ( - 52, + COUNT( * ) * - + 53 ) + + - 8 + + 70 * COUNT( * ) * - + 29 + - 15 WHEN COUNT( * ) - - 70 + 17 THEN - - 14 END + 56 + - 18 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8567
SELECT - CASE - 43 WHEN - + 50 THEN + NULLIF ( - + 65, - - 91 / - + 1 ) + - NULLIF ( - 52, + COUNT ( * ) * - + 53 ) + + - 8 + + 70 * COUNT ( * ) * - + 29 + - 15 WHEN COUNT ( * ) - - 70 + 17 THEN - - 14 END + 56 + - 18 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8568
SELECT DISTINCT + COUNT( - - 54 ) * 71 * - ( - - 42 ) + 59 * ( - 22 ) AS col1
----
-4280

skipif mysql # not compatible
query I rowsort label-8568
SELECT DISTINCT + COUNT ( - - 54 ) * 71 * - ( - - 42 ) + 59 * ( - 22 ) AS col1
----
-4280

query I rowsort
SELECT - 50 + - - 31 * - + 10 AS col0
----
-360

query II rowsort
SELECT ALL + ( + 78 ), 68 AS col2
----
78
68

query II rowsort
SELECT - 95 * + 54 * + 50 + - ( 62 ) + + 56 * 65 AS col1, 43 AS col2
----
-252922
43

query I rowsort
SELECT - 97 * + + 26
----
-2522

onlyif mysql # aggregate syntax: 
query II rowsort label-8573
SELECT ALL - 99 * - 15 * + COUNT( * ) + + 29, - 3 AS col0
----
1514
-3

skipif mysql # not compatible
query II rowsort label-8573
SELECT ALL - 99 * - 15 * + COUNT ( * ) + + 29, - 3 AS col0
----
1514
-3

query I rowsort
SELECT - 14 + 97 + - + 47 AS col1
----
36

query I rowsort
SELECT - 90 + - - 71
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8576
SELECT DISTINCT CAST( NULL AS SIGNED ) * - + ( - COUNT( * ) ) * + 1 - 46 * + 55 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8576
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - + ( - COUNT ( * ) ) * + 1 - 46 * + 55 AS col2
----
NULL

query I rowsort
SELECT 33 * - 86 + + - 4 AS col0
----
-2842

onlyif mysql # aggregate syntax: 
query I rowsort label-8578
SELECT ALL - + COUNT( - - 33 ) * 48 + COUNT( * ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-8578
SELECT ALL - + COUNT ( - - 33 ) * 48 + COUNT ( * ) AS col1
----
-47

query II rowsort
SELECT + - 69 + - 46 col1, - 52 col2
----
-115
-52

query I rowsort
SELECT ALL + CASE - 28 WHEN + 17 * - + 64 - 55 THEN + 64 WHEN - 67 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT ALL + - 92 * 48 AS col1
----
-4416

query I rowsort
SELECT DISTINCT + + ( - 6 )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8583
SELECT ALL + + 28 * SUM( DISTINCT 79 ) + 4 - - 62
----
2278

skipif mysql # not compatible
query I rowsort label-8583
SELECT ALL + + 28 * SUM ( DISTINCT 79 ) + 4 - - 62
----
2278

query I rowsort
SELECT - + 48 * 21
----
-1008

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8585
SELECT + - 43 * COUNT( * ) AS col2, + 1 DIV - - 87 AS col2
----
-43
0

skipif mysql # not compatible
query II rowsort label-8585
SELECT + - 43 * COUNT ( * ) AS col2, + 1 / - - 87 AS col2
----
-43
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8586
SELECT - CAST( - SUM( + - 83 ) AS SIGNED )
----
-83

skipif mysql # not compatible
query I rowsort label-8586
SELECT - CAST ( - SUM ( + - 83 ) AS INTEGER )
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-8587
SELECT + + MAX( - 36 ) - + 23 * 49 + + - 61 AS col0
----
-1224

skipif mysql # not compatible
query I rowsort label-8587
SELECT + + MAX ( - 36 ) - + 23 * 49 + + - 61 AS col0
----
-1224

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8588
SELECT + - MAX( ALL 64 ) DIV 41 * - + 49 AS col0, - 78 AS col2
----
49
-78

skipif mysql # not compatible
query II rowsort label-8588
SELECT + - MAX ( ALL 64 ) / 41 * - + 49 AS col0, - 78 AS col2
----
49
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-8589
SELECT ALL - 87 DIV + 57
----
-1

skipif mysql # not compatible
query I rowsort label-8589
SELECT ALL - 87 / + 57
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8590
SELECT + 76 * - COUNT( * ) + - 63 * + 34
----
-2218

skipif mysql # not compatible
query I rowsort label-8590
SELECT + 76 * - COUNT ( * ) + - 63 * + 34
----
-2218

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8591
SELECT + - CAST( NULL AS SIGNED ) + - COUNT( * ) + + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-8591
SELECT + - CAST ( NULL AS INTEGER ) + - COUNT ( * ) + + 23
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8592
SELECT ALL + COALESCE ( - MIN( DISTINCT + 87 ), - + 4 * - + 94 + + COUNT( * ) * - 14 DIV - 91 ) col1
----
-87

skipif mysql # not compatible
query I rowsort label-8592
SELECT ALL + COALESCE ( - MIN ( DISTINCT + 87 ), - + 4 * - + 94 + + COUNT ( * ) * - 14 / - 91 ) col1
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-8593
SELECT DISTINCT + 60 DIV - 11 + - - 34 AS col0
----
29

skipif mysql # not compatible
query I rowsort label-8593
SELECT DISTINCT + 60 / - 11 + - - 34 AS col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-8594
SELECT ALL SUM( 18 ) * MIN( ALL + 59 ) AS col0
----
1062

skipif mysql # not compatible
query I rowsort label-8594
SELECT ALL SUM ( 18 ) * MIN ( ALL + 59 ) AS col0
----
1062

onlyif mysql # aggregate syntax: 
query I rowsort label-8595
SELECT ALL COALESCE ( - - COUNT( * ), + + 8, + - 28 )
----
1

skipif mysql # not compatible
query I rowsort label-8595
SELECT ALL COALESCE ( - - COUNT ( * ), + + 8, + - 28 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8596
SELECT ALL 21 * CASE 16 WHEN - COUNT( * ) / 6 * - - 62 THEN + - COUNT( * ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8596
SELECT ALL 21 * CASE 16 WHEN - COUNT ( * ) / 6 * - - 62 THEN + - COUNT ( * ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL 39 + 16
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8598
SELECT + 3 + - 14 + - COUNT( * )
----
-12

skipif mysql # not compatible
query I rowsort label-8598
SELECT + 3 + - 14 + - COUNT ( * )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-8599
SELECT DISTINCT - 28 + - ( - COUNT( * ) )
----
-27

skipif mysql # not compatible
query I rowsort label-8599
SELECT DISTINCT - 28 + - ( - COUNT ( * ) )
----
-27

query I rowsort
SELECT + ( - 47 ) * + 49 AS col2
----
-2303

query I rowsort
SELECT ALL + 64 + 22
----
86

query I rowsort
SELECT DISTINCT + 55 * + 66
----
3630

onlyif mysql # aggregate syntax: 
query II rowsort label-8603
SELECT ALL + COALESCE ( 14, + - SUM( - + 47 ) ) * - 84, + 93 AS col1
----
-1176
93

skipif mysql # not compatible
query II rowsort label-8603
SELECT ALL + COALESCE ( 14, + - SUM ( - + 47 ) ) * - 84, + 93 AS col1
----
-1176
93

query I rowsort
SELECT - 67 * + 91 AS col1
----
-6097

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8605
SELECT 65 / - 6 * 72 + + CAST( NULL AS SIGNED ) * 82 * - 89
----
NULL

skipif mysql # not compatible
query I rowsort label-8605
SELECT 65 / - 6 * 72 + + CAST ( NULL AS INTEGER ) * 82 * - 89
----
NULL

query I rowsort
SELECT - 21 + - 81
----
-102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8607
SELECT DISTINCT - - 40 * - - 35 / + CAST( NULL AS SIGNED ) * + ( 11 ) * + + NULLIF ( + 19, + CAST( - CAST( SUM( ALL 13 ) AS SIGNED ) AS DECIMAL ) ) + + + 93 + + 31 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8607
SELECT DISTINCT - - 40 * - - 35 / + CAST ( NULL AS INTEGER ) * + ( 11 ) * + + NULLIF ( + 19, + CAST ( - CAST ( SUM ( ALL 13 ) AS INTEGER ) AS REAL ) ) + + + 93 + + 31 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8608
SELECT ALL + SUM( ALL + 17 ) / - 56 - - CASE WHEN SUM( 22 ) NOT BETWEEN 28 AND NULL THEN NULL WHEN NULL <= COUNT( * ) * 64 THEN - ( - + 11 ) * - 71 + + COUNT( * ) / + - AVG ( ALL 4 ) + - CAST( 31 AS SIGNED ) + - - COUNT( * ) + 37 ELSE + 84 END * + MIN( 77 ) / - 49 + COALESCE ( COUNT( * ) - 33 / 67, - 11 + + 43, - 84 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8608
SELECT ALL + SUM ( ALL + 17 ) / - 56 - - CASE WHEN SUM ( 22 ) NOT BETWEEN 28 AND NULL THEN NULL WHEN NULL <= COUNT ( * ) * 64 THEN - ( - + 11 ) * - 71 + + COUNT ( * ) / + - AVG ( ALL 4 ) + - CAST ( 31 AS INTEGER ) + - - COUNT ( * ) + 37 ELSE + 84 END * + MIN ( 77 ) / - 49 + COALESCE ( COUNT ( * ) - 33 / 67, - 11 + + 43, - 84 ) AS col2
----
NULL

query I rowsort
SELECT - - 38 * - 10
----
-380

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8610
SELECT DISTINCT - COUNT( * ) DIV 87 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8610
SELECT DISTINCT - COUNT ( * ) / 87 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8611
SELECT ALL + CAST( - 16 AS SIGNED ) AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-8611
SELECT ALL + CAST ( - 16 AS INTEGER ) AS col1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-8612
SELECT - - COUNT( - 69 ) + - 74
----
-73

skipif mysql # not compatible
query I rowsort label-8612
SELECT - - COUNT ( - 69 ) + - 74
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8613
SELECT ALL + + CASE + - 41 WHEN - CASE + 83 WHEN 19 THEN NULL WHEN - 77 * - + 25 * + 39 / + - COUNT( * ) THEN + - 99 * + 34 - 23 + - NULLIF ( - COUNT( * ), + 39 * 48 ) ELSE - MAX( ALL 31 ) END THEN NULL WHEN + + COUNT( * ) THEN - CAST( 76 AS SIGNED ) + + 27 ELSE NULL END * + COUNT( * ) - + MIN( 24 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8613
SELECT ALL + + CASE + - 41 WHEN - CASE + 83 WHEN 19 THEN NULL WHEN - 77 * - + 25 * + 39 / + - COUNT ( * ) THEN + - 99 * + 34 - 23 + - NULLIF ( - COUNT ( * ), + 39 * 48 ) ELSE - MAX ( ALL 31 ) END THEN NULL WHEN + + COUNT ( * ) THEN - CAST ( 76 AS INTEGER ) + + 27 ELSE NULL END * + COUNT ( * ) - + MIN ( 24 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8614
SELECT - - 77 / - 17 * + + CAST( NULL AS SIGNED ) + + + 35 / + 17 * - COUNT( * ) * - 81 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8614
SELECT - - 77 / - 17 * + + CAST ( NULL AS INTEGER ) + + + 35 / + 17 * - COUNT ( * ) * - 81 col2
----
NULL

query I rowsort
SELECT - - 94 * 90 - 46 + 19 AS col0
----
8433

query I rowsort
SELECT + 7 * + 52
----
364

onlyif mysql # aggregate syntax: 
query II rowsort label-8617
SELECT 39 * - COUNT( * ) + + + 97, + 93 col1
----
58
93

skipif mysql # not compatible
query II rowsort label-8617
SELECT 39 * - COUNT ( * ) + + + 97, + 93 col1
----
58
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8618
SELECT - 51 + - - COUNT( * ) + + + 77 + 32 AS col2
----
59

skipif mysql # not compatible
query I rowsort label-8618
SELECT - 51 + - - COUNT ( * ) + + + 77 + 32 AS col2
----
59

query I rowsort
SELECT ALL + 58 * 80
----
4640

onlyif mysql # aggregate syntax: 
query II rowsort label-8620
SELECT - ( + + COUNT( * ) ) + MAX( ALL - ( - + 5 ) ) col1, - 11 col2
----
4
-11

skipif mysql # not compatible
query II rowsort label-8620
SELECT - ( + + COUNT ( * ) ) + MAX ( ALL - ( - + 5 ) ) col1, - 11 col2
----
4
-11

query I rowsort
SELECT ALL + 31 * + - ( - 51 ) col0
----
1581

query I rowsort
SELECT ALL + ( - 27 ) * - - 28 + + - 49 AS col2
----
-805

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8623
SELECT + 57 * - 11 + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8623
SELECT + 57 * - 11 + CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT ( - 22 ) * + 22 AS col2
----
-484

onlyif mysql # aggregate syntax: 
query I rowsort label-8625
SELECT MIN( DISTINCT - 88 ) + - - CASE 70 WHEN - 31 + - + 69 - + 60 THEN + 73 WHEN + - 92 THEN NULL END + + 75 - 82 * - 4
----
NULL

skipif mysql # not compatible
query I rowsort label-8625
SELECT MIN ( DISTINCT - 88 ) + - - CASE 70 WHEN - 31 + - + 69 - + 60 THEN + 73 WHEN + - 92 THEN NULL END + + 75 - 82 * - 4
----
NULL

query II rowsort
SELECT 38, ( + 47 ) AS col0
----
38
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8627
SELECT CAST( NULL AS SIGNED ) + - 87 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8627
SELECT CAST ( NULL AS INTEGER ) + - 87 col2
----
NULL

query II rowsort
SELECT - 99 AS col2, 38 * NULLIF ( 83, - - ( - 65 ) )
----
-99
3154

query II rowsort
SELECT ALL 39 + + + 31 col0, 20
----
70
20

onlyif mysql # DIV for integer division: 
query I rowsort label-8630
SELECT 80 + + 92 - 94 - 25 * 10 DIV - 74
----
81

skipif mysql # not compatible
query I rowsort label-8630
SELECT 80 + + 92 - 94 - 25 * 10 / - 74
----
81

query I rowsort
SELECT ALL 92 * - 92 AS col2
----
-8464

query I rowsort
SELECT ALL 3 + + 30 * - - 67 col2
----
2013

query II rowsort
SELECT - 65, + ( - 35 ) AS col1
----
-65
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-8634
SELECT DISTINCT COUNT( DISTINCT + ( 57 ) ) + - ( + COUNT( * ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8634
SELECT DISTINCT COUNT ( DISTINCT + ( 57 ) ) + - ( + COUNT ( * ) ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8635
SELECT 25 + - CAST( 51 AS SIGNED ) + + NULLIF ( - + COUNT( ALL + + 75 ), + COUNT( * ) * + NULLIF ( + CASE 45 WHEN - + 8 + - ( + + COUNT( * ) ) THEN - 3 * 99 END, + - 90 + 56 ) + - + 28 - 36 * 77 ) * - 89 + - - NULLIF ( ( + ( 22 ) ), 78 )
----
85

skipif mysql # not compatible
query I rowsort label-8635
SELECT 25 + - CAST ( 51 AS INTEGER ) + + NULLIF ( - + COUNT ( ALL + + 75 ), + COUNT ( * ) * + NULLIF ( + CASE 45 WHEN - + 8 + - ( + + COUNT ( * ) ) THEN - 3 * 99 END, + - 90 + 56 ) + - + 28 - 36 * 77 ) * - 89 + - - NULLIF ( ( + ( 22 ) ), 78 )
----
85

query II rowsort
SELECT 62 AS col1, 87
----
62
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8637
SELECT CAST( NULL AS SIGNED ) + + 42 / ( 48 ) * + 20 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8637
SELECT CAST ( NULL AS INTEGER ) + + 42 / ( 48 ) * + 20 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8638
SELECT + + 47 AS col2, 48 - - ( + SUM( ALL + 54 ) ) * - + 91 AS col2
----
47
-4866

skipif mysql # not compatible
query II rowsort label-8638
SELECT + + 47 AS col2, 48 - - ( + SUM ( ALL + 54 ) ) * - + 91 AS col2
----
47
-4866

onlyif mysql # aggregate syntax: 
query I rowsort label-8639
SELECT ALL + 47 - + + COUNT( * ) + - 5
----
41

skipif mysql # not compatible
query I rowsort label-8639
SELECT ALL + 47 - + + COUNT ( * ) + - 5
----
41

query I rowsort
SELECT DISTINCT + + 67 * - ( + + 65 ) AS col0
----
-4355

onlyif mysql # aggregate syntax: 
query I rowsort label-8641
SELECT MAX( DISTINCT + - 72 ) * - + 82 + - 34 + - COUNT( * ) AS col1
----
5869

skipif mysql # not compatible
query I rowsort label-8641
SELECT MAX ( DISTINCT + - 72 ) * - + 82 + - 34 + - COUNT ( * ) AS col1
----
5869

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8642
SELECT DISTINCT - 54 * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8642
SELECT DISTINCT - 54 * + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 13 * 14 * - 79 AS col1
----
-14378

onlyif mysql # DIV for integer division: 
query I rowsort label-8644
SELECT 80 DIV - 13 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-8644
SELECT 80 / - 13 AS col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8645
SELECT 29 * 20 * + 14 * + + 11 + + COUNT( * ) * 37 AS col2
----
89357

skipif mysql # not compatible
query I rowsort label-8645
SELECT 29 * 20 * + 14 * + + 11 + + COUNT ( * ) * 37 AS col2
----
89357

query I rowsort
SELECT DISTINCT + 60 * 3 AS col0
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-8647
SELECT ALL + 2 * + ( - COUNT( - + COALESCE ( + 34, - + 58, 20 ) ) ) * + 70 + - CASE 95 WHEN - - 70 * + 68 THEN - 20 ELSE + 85 END
----
-225

skipif mysql # not compatible
query I rowsort label-8647
SELECT ALL + 2 * + ( - COUNT ( - + COALESCE ( + 34, - + 58, 20 ) ) ) * + 70 + - CASE 95 WHEN - - 70 * + 68 THEN - 20 ELSE + 85 END
----
-225

onlyif mysql # aggregate syntax: 
query I rowsort label-8648
SELECT + NULLIF ( - COUNT( * ), - 92 )
----
-1

skipif mysql # not compatible
query I rowsort label-8648
SELECT + NULLIF ( - COUNT ( * ), - 92 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8649
SELECT ALL - - 74 + - CASE - AVG ( ALL + 75 ) WHEN + - 8 + - - CAST( NULL AS SIGNED ) + + COUNT( * ) + + + 28 + - 90 * 5 THEN + 15 ELSE NULL END * + COUNT( * ) * - 36
----
NULL

skipif mysql # not compatible
query I rowsort label-8649
SELECT ALL - - 74 + - CASE - AVG ( ALL + 75 ) WHEN + - 8 + - - CAST ( NULL AS INTEGER ) + + COUNT ( * ) + + + 28 + - 90 * 5 THEN + 15 ELSE NULL END * + COUNT ( * ) * - 36
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8650
SELECT + 29 + 19 + + + 47 * + 9 DIV + + COUNT( + ( - - 91 ) ) AS col1
----
471

skipif mysql # not compatible
query I rowsort label-8650
SELECT + 29 + 19 + + + 47 * + 9 / + + COUNT ( + ( - - 91 ) ) AS col1
----
471

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8651
SELECT DISTINCT - 54 DIV + COUNT( * )
----
-54

skipif mysql # not compatible
query I rowsort label-8651
SELECT DISTINCT - 54 / + COUNT ( * )
----
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-8652
SELECT DISTINCT + 0 + 59 * + 63 AS col1, - NULLIF ( + MAX( DISTINCT - 90 ), + 33 + - 70 ) * MAX( - 35 ) + - + 91
----
3717
-3241

skipif mysql # not compatible
query II rowsort label-8652
SELECT DISTINCT + 0 + 59 * + 63 AS col1, - NULLIF ( + MAX ( DISTINCT - 90 ), + 33 + - 70 ) * MAX ( - 35 ) + - + 91
----
3717
-3241

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8653
SELECT ALL + CASE 73 WHEN - 82 DIV + COUNT( * ) THEN + 29 + COUNT( * ) * ( 41 ) * + 63 DIV + - 53 * - + 88 ELSE - ( - - 96 ) END + - - 54 + - - ( - - SUM( DISTINCT - 4 ) ) AS col2, + COALESCE ( 2, + 44, - + 73 ) * + 29 + - 57 - - 27
----
-46
28

skipif mysql # not compatible
query II rowsort label-8653
SELECT ALL + CASE 73 WHEN - 82 / + COUNT ( * ) THEN + 29 + COUNT ( * ) * ( 41 ) * + 63 / + - 53 * - + 88 ELSE - ( - - 96 ) END + - - 54 + - - ( - - SUM ( DISTINCT - 4 ) ) AS col2, + COALESCE ( 2, + 44, - + 73 ) * + 29 + - 57 - - 27
----
-46
28

query II rowsort
SELECT 83 - 73 + NULLIF ( 8, + 75 ) AS col0, 38 - 61
----
18
-23

query I rowsort
SELECT + ( + 91 ) * - 26 + + 37 AS col2
----
-2329

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8656
SELECT ALL - 82 + CASE 45 WHEN - + 51 * - COUNT( * ) * + CAST( + + 31 AS SIGNED ) * + 44 * - COUNT( * ) THEN NULL ELSE - 49 * + 1 + + 49 + + + 60 + + + 21 * + 28 END * - - COUNT( * ) * + - 55
----
-35722

skipif mysql # not compatible
query I rowsort label-8656
SELECT ALL - 82 + CASE 45 WHEN - + 51 * - COUNT ( * ) * + CAST ( + + 31 AS INTEGER ) * + 44 * - COUNT ( * ) THEN NULL ELSE - 49 * + 1 + + 49 + + + 60 + + + 21 * + 28 END * - - COUNT ( * ) * + - 55
----
-35722

query I rowsort
SELECT 15 * - + 45 col2
----
-675

query I rowsort
SELECT DISTINCT - CASE 19 WHEN - 52 THEN + - 28 ELSE - 38 END + + + 96 - 93 + + 32
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-8659
SELECT ALL MIN( ALL + 68 ), + 17 AS col1
----
68
17

skipif mysql # not compatible
query II rowsort label-8659
SELECT ALL MIN ( ALL + 68 ), + 17 AS col1
----
68
17

onlyif mysql # DIV for integer division: 
query I rowsort label-8660
SELECT 5 DIV - 35 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8660
SELECT 5 / - 35 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8661
SELECT ALL COUNT( * ) - + 93
----
-92

skipif mysql # not compatible
query I rowsort label-8661
SELECT ALL COUNT ( * ) - + 93
----
-92

query I rowsort
SELECT DISTINCT 52 * + + 70 col2
----
3640

onlyif mysql # aggregate syntax: 
query I rowsort label-8663
SELECT MAX( - 11 ) * - 47
----
517

skipif mysql # not compatible
query I rowsort label-8663
SELECT MAX ( - 11 ) * - 47
----
517

query I rowsort
SELECT + 44 * - - 67 AS col0
----
2948

onlyif mysql # aggregate syntax: 
query I rowsort label-8665
SELECT - COALESCE ( 0, - COUNT( * ) + + 88 ) * - 10 + - 42 AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-8665
SELECT - COALESCE ( 0, - COUNT ( * ) + + 88 ) * - 10 + - 42 AS col0
----
-42

query I rowsort
SELECT 59 * - 2 * + + 30 - - + 62 AS col1
----
-3478

onlyif mysql # DIV for integer division: 
query I rowsort label-8667
SELECT 75 DIV + - 41
----
-1

skipif mysql # not compatible
query I rowsort label-8667
SELECT 75 / + - 41
----
-1

query I rowsort
SELECT 18 * + 97 AS col2
----
1746

query I rowsort
SELECT ALL - - ( - - 61 ) AS col2
----
61

query I rowsort
SELECT - 10 * + 23 AS col0
----
-230

query I rowsort
SELECT 64 * + + 41
----
2624

onlyif mysql # aggregate syntax: 
query I rowsort label-8672
SELECT + COUNT( * ) + + ( 44 ) AS col1
----
45

skipif mysql # not compatible
query I rowsort label-8672
SELECT + COUNT ( * ) + + ( 44 ) AS col1
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-8673
SELECT DISTINCT 98 * + - 89, COUNT( * ) AS col1
----
-8722
1

skipif mysql # not compatible
query II rowsort label-8673
SELECT DISTINCT 98 * + - 89, COUNT ( * ) AS col1
----
-8722
1

query I rowsort
SELECT - 39 * + 38 + + 1 AS col2
----
-1481

query I rowsort
SELECT - ( + - 34 ) AS col0
----
34

query I rowsort
SELECT ALL + 42 * + + COALESCE ( + 42, + + 82 ) + 32 * 87
----
4548

onlyif mysql # aggregate syntax: 
query I rowsort label-8677
SELECT + COUNT( * ) / + 50 * - + COUNT( * ) + - COUNT( * ) + 46 + - CASE + - COUNT( * ) WHEN - 50 * 92 THEN + 73 WHEN - + 49 THEN NULL END + + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-8677
SELECT + COUNT ( * ) / + 50 * - + COUNT ( * ) + - COUNT ( * ) + 46 + - CASE + - COUNT ( * ) WHEN - 50 * 92 THEN + 73 WHEN - + 49 THEN NULL END + + 83
----
NULL

query II rowsort
SELECT ALL + + ( 97 ) col2, 96 + 0 * - 85
----
97
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8679
SELECT + 13 * - + SUM( DISTINCT 71 )
----
-923

skipif mysql # not compatible
query I rowsort label-8679
SELECT + 13 * - + SUM ( DISTINCT 71 )
----
-923

query I rowsort
SELECT - ( + + 47 ) + 54 AS col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8681
SELECT DISTINCT COUNT( * ) * - MAX( - 1 ) + + 42 + + 70 + + + 17
----
130

skipif mysql # not compatible
query I rowsort label-8681
SELECT DISTINCT COUNT ( * ) * - MAX ( - 1 ) + + 42 + + 70 + + + 17
----
130

query I rowsort
SELECT ALL 36 * + - 76 + - + 48 - + + 78
----
-2862

onlyif mysql # aggregate syntax: 
query II rowsort label-8683
SELECT + 49 * - 23 + - + 76 AS col0, + COALESCE ( - + 57, + CASE + COUNT( * ) WHEN + 1 * + 14 THEN NULL WHEN + 87 THEN + 82 + - + 13 * - + COUNT( * ) END )
----
-1203
-57

skipif mysql # not compatible
query II rowsort label-8683
SELECT + 49 * - 23 + - + 76 AS col0, + COALESCE ( - + 57, + CASE + COUNT ( * ) WHEN + 1 * + 14 THEN NULL WHEN + 87 THEN + 82 + - + 13 * - + COUNT ( * ) END )
----
-1203
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-8684
SELECT COUNT( * ) AS col1, + 52
----
1
52

skipif mysql # not compatible
query II rowsort label-8684
SELECT COUNT ( * ) AS col1, + 52
----
1
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8685
SELECT + COUNT( * ) + 12 AS col1
----
13

skipif mysql # not compatible
query I rowsort label-8685
SELECT + COUNT ( * ) + 12 AS col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8686
SELECT 77 * - - SUM( + 61 ) - - 35
----
4732

skipif mysql # not compatible
query I rowsort label-8686
SELECT 77 * - - SUM ( + 61 ) - - 35
----
4732

query I rowsort
SELECT ALL - 41 * - 72 AS col0
----
2952

onlyif mysql # aggregate syntax: 
query I rowsort label-8688
SELECT MIN( ALL - + 88 )
----
-88

skipif mysql # not compatible
query I rowsort label-8688
SELECT MIN ( ALL - + 88 )
----
-88

query I rowsort
SELECT DISTINCT 28 + - + 55 AS col1
----
-27

query I rowsort
SELECT DISTINCT - 69 + + 91 AS col0
----
22

query I rowsort
SELECT DISTINCT 21 + + 18 * + - ( 64 ) AS col2
----
-1131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8692
SELECT ALL + ( NULLIF ( + 74, + 2 / + 86 - + CASE - - 97 WHEN COALESCE ( COUNT( - 12 ), CASE + 33 WHEN - COUNT( * ) * + ( - - 31 ) * 94 * + + 49 - - CAST( NULL AS SIGNED ) THEN NULL ELSE + 99 + 73 END - + + 81 - + + 80 * + COUNT( * ) + - NULLIF ( - + MIN( 36 ), - + 69 * - ( - COUNT( * ) ) * ( 73 ) ) * 34, - 87 + - 96 * + 52 ) THEN + 36 ELSE NULL END ) ) / - ( + MAX( ALL CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8692
SELECT ALL + ( NULLIF ( + 74, + 2 / + 86 - + CASE - - 97 WHEN COALESCE ( COUNT ( - 12 ), CASE + 33 WHEN - COUNT ( * ) * + ( - - 31 ) * 94 * + + 49 - - CAST ( NULL AS INTEGER ) THEN NULL ELSE + 99 + 73 END - + + 81 - + + 80 * + COUNT ( * ) + - NULLIF ( - + MIN ( 36 ), - + 69 * - ( - COUNT ( * ) ) * ( 73 ) ) * 34, - 87 + - 96 * + 52 ) THEN + 36 ELSE NULL END ) ) / - ( + MAX ( ALL CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8693
SELECT ALL - COUNT( DISTINCT - 70 ) + + 27 AS col1
----
26

skipif mysql # not compatible
query I rowsort label-8693
SELECT ALL - COUNT ( DISTINCT - 70 ) + + 27 AS col1
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-8694
SELECT 14 * 35 DIV 52 + + 68
----
77

skipif mysql # not compatible
query I rowsort label-8694
SELECT 14 * 35 / 52 + + 68
----
77

query I rowsort
SELECT - 27 + + 87 AS col0
----
60

query I rowsort
SELECT - ( + 49 ) * + - 47 * - 36
----
-82908

query I rowsort
SELECT - 44 * - ( - 78 )
----
-3432

query I rowsort
SELECT ALL - 51 - + + 85 AS col2
----
-136

onlyif mysql # aggregate syntax: 
query I rowsort label-8699
SELECT - 14 * ( + 14 ) * - + COUNT( 81 ) AS col0
----
196

skipif mysql # not compatible
query I rowsort label-8699
SELECT - 14 * ( + 14 ) * - + COUNT ( 81 ) AS col0
----
196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8700
SELECT - 32 + - - ( + CAST( - + COALESCE ( + 50, - - 17, MAX( ALL + - 78 ) - + 84 ) AS SIGNED ) ) - + - 84 + ( - 40 )
----
-38

skipif mysql # not compatible
query I rowsort label-8700
SELECT - 32 + - - ( + CAST ( - + COALESCE ( + 50, - - 17, MAX ( ALL + - 78 ) - + 84 ) AS INTEGER ) ) - + - 84 + ( - 40 )
----
-38

query II rowsort
SELECT 17 AS col1, + ( + - 27 )
----
17
-27

query I rowsort
SELECT - 8 + - + 5 * ( - 71 ) * + 15 + + 15
----
5332

onlyif mysql # aggregate syntax: 
query I rowsort label-8703
SELECT ALL SUM( + 24 )
----
24

skipif mysql # not compatible
query I rowsort label-8703
SELECT ALL SUM ( + 24 )
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8704
SELECT - 84 * + - NULLIF ( - 59, - - COUNT( DISTINCT + 23 ) - + - CAST( - - 41 AS SIGNED ) ) AS col2
----
-4956

skipif mysql # not compatible
query I rowsort label-8704
SELECT - 84 * + - NULLIF ( - 59, - - COUNT ( DISTINCT + 23 ) - + - CAST ( - - 41 AS INTEGER ) ) AS col2
----
-4956

query I rowsort
SELECT ALL 96 * 39
----
3744

query I rowsort
SELECT DISTINCT - 34 * 47 AS col0
----
-1598

onlyif mysql # aggregate syntax: 
query I rowsort label-8707
SELECT - COUNT( * ) + - 90
----
-91

skipif mysql # not compatible
query I rowsort label-8707
SELECT - COUNT ( * ) + - 90
----
-91

query I rowsort
SELECT - 28 * + + 58
----
-1624

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8709
SELECT ALL - + CAST( AVG ( + 29 ) AS SIGNED ) * + + 77
----
-2233

skipif mysql # not compatible
query I rowsort label-8709
SELECT ALL - + CAST ( AVG ( + 29 ) AS INTEGER ) * + + 77
----
-2233

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8710
SELECT - CAST( + + COUNT( ALL - 25 ) AS SIGNED ) * + 84
----
-84

skipif mysql # not compatible
query I rowsort label-8710
SELECT - CAST ( + + COUNT ( ALL - 25 ) AS INTEGER ) * + 84
----
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-8711
SELECT - 82 AS col0, - ( ( - COUNT( * ) ) ) * 70 + + ( + - 2 ) AS col2
----
-82
68

skipif mysql # not compatible
query II rowsort label-8711
SELECT - 82 AS col0, - ( ( - COUNT ( * ) ) ) * 70 + + ( + - 2 ) AS col2
----
-82
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8712
SELECT + + 26 * - - 40 * - - 72 * COUNT( * ) col0
----
74880

skipif mysql # not compatible
query I rowsort label-8712
SELECT + + 26 * - - 40 * - - 72 * COUNT ( * ) col0
----
74880

query I rowsort
SELECT - - 15 * - 64
----
-960

onlyif mysql # DIV for integer division: 
query I rowsort label-8714
SELECT DISTINCT 43 DIV 22 * + - 32 AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-8714
SELECT DISTINCT 43 / 22 * + - 32 AS col0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-8715
SELECT ALL - AVG ( ALL + 40 ) * - + COALESCE ( 17, - COUNT( + + 15 ), - - 22 + - 39 ) * + - 18 / CASE 43 WHEN + + 65 THEN - AVG ( ALL + 73 ) WHEN - ( 39 ) * - 84 - + + ( 49 ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8715
SELECT ALL - AVG ( ALL + 40 ) * - + COALESCE ( 17, - COUNT ( + + 15 ), - - 22 + - 39 ) * + - 18 / CASE 43 WHEN + + 65 THEN - AVG ( ALL + 73 ) WHEN - ( 39 ) * - 84 - + + ( 49 ) THEN NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8716
SELECT + - 65 DIV - + 73 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8716
SELECT + - 65 / - + 73 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8717
SELECT DISTINCT + + 66 DIV + - 90 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8717
SELECT DISTINCT + + 66 / + - 90 AS col2
----
0

query II rowsort
SELECT + - 89 col0, 20
----
-89
20

query II rowsort
SELECT ALL + + 93 AS col1, 17 * + NULLIF ( + 43, + ( + + 15 ) )
----
93
731

onlyif mysql # aggregate syntax: 
query I rowsort label-8720
SELECT + + ( - COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8720
SELECT + + ( - COUNT ( * ) ) AS col2
----
-1

query I rowsort
SELECT + - ( - + 49 ) * + ( 75 ) col2
----
3675

onlyif mysql # aggregate syntax: 
query I rowsort label-8722
SELECT ALL 3 * + + NULLIF ( - 26, + 0 ) + + COUNT( * ) AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-8722
SELECT ALL 3 * + + NULLIF ( - 26, + 0 ) + + COUNT ( * ) AS col0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8723
SELECT DISTINCT COUNT( * ) * ( - - ( 25 ) ) * + 1 + 78
----
103

skipif mysql # not compatible
query I rowsort label-8723
SELECT DISTINCT COUNT ( * ) * ( - - ( 25 ) ) * + 1 + 78
----
103

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8724
SELECT CASE - COUNT( * ) WHEN - + ( - + ( + - 60 ) ) DIV 44 THEN 73 * + + 29 ELSE NULL END
----
2117

skipif mysql # not compatible
query I rowsort label-8724
SELECT CASE - COUNT ( * ) WHEN - + ( - + ( + - 60 ) ) / 44 THEN 73 * + + 29 ELSE NULL END
----
2117

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8725
SELECT ALL CAST( NULL AS SIGNED ) * - 29 + - AVG ( ALL + + 59 ) AS col1, 70 - 75 AS col0
----
NULL
-5

skipif mysql # not compatible
query II rowsort label-8725
SELECT ALL CAST ( NULL AS INTEGER ) * - 29 + - AVG ( ALL + + 59 ) AS col1, 70 - 75 AS col0
----
NULL
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8726
SELECT + ( + CAST( NULL AS SIGNED ) ), - COUNT( * ) AS col1
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-8726
SELECT + ( + CAST ( NULL AS INTEGER ) ), - COUNT ( * ) AS col1
----
NULL
-1

query I rowsort
SELECT ALL + 96 * - 46 - 31 + + - 65 AS col0
----
-4512

onlyif mysql # aggregate syntax: 
query I rowsort label-8728
SELECT ALL - COUNT( * ) * 35
----
-35

skipif mysql # not compatible
query I rowsort label-8728
SELECT ALL - COUNT ( * ) * 35
----
-35

query I rowsort
SELECT + 68 + + 71 * - + 76
----
-5328

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8730
SELECT COALESCE ( - 31, + 96 * + COUNT( * ) DIV 80 * 5 - + - 33 * - 44 )
----
-31

skipif mysql # not compatible
query I rowsort label-8730
SELECT COALESCE ( - 31, + 96 * + COUNT ( * ) / 80 * 5 - + - 33 * - 44 )
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8731
SELECT + 15 + SUM( ALL + ( - 43 ) ) * + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8731
SELECT + 15 + SUM ( ALL + ( - 43 ) ) * + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - 21 * 3
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-8733
SELECT SUM( - - 54 )
----
54

skipif mysql # not compatible
query I rowsort label-8733
SELECT SUM ( - - 54 )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8734
SELECT + 91 + - MAX( 76 ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-8734
SELECT + 91 + - MAX ( 76 ) AS col1
----
15

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8735
SELECT ALL COALESCE ( - CASE 48 WHEN - + 64 * + 21 THEN - 89 + COUNT( * ) ELSE NULL END, - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8735
SELECT ALL COALESCE ( - CASE 48 WHEN - + 64 * + 21 THEN - 89 + COUNT ( * ) ELSE NULL END, - CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT ALL ( + + 98 ) AS col2
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8737
SELECT + - COUNT( * ) DIV 23 + + NULLIF ( - + COUNT( * ), - NULLIF ( + ( + 39 ), - - COUNT( * ) ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-8737
SELECT + - COUNT ( * ) / 23 + + NULLIF ( - + COUNT ( * ), - NULLIF ( + ( + 39 ), - - COUNT ( * ) ) ) col2
----
-1

query I rowsort
SELECT + + 35 * 2 AS col2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8739
SELECT - - 55 / + + 90 * MAX( ALL + + 94 ) + + MAX( CASE - 50 WHEN + 12 THEN NULL WHEN - 64 * 46 * + + 76 THEN + 52 * + 3 - + - 0 ELSE NULL END ) + - 94 * + + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-8739
SELECT - - 55 / + + 90 * MAX ( ALL + + 94 ) + + MAX ( CASE - 50 WHEN + 12 THEN NULL WHEN - 64 * 46 * + + 76 THEN + 52 * + 3 - + - 0 ELSE NULL END ) + - 94 * + + 79
----
NULL

query II rowsort
SELECT 35 * 62 AS col0, 38 + - 28 AS col1
----
2170
10

query I rowsort
SELECT DISTINCT + + 5 + + 34 * - NULLIF ( - ( + NULLIF ( - - 31, + 1 ) ), - 90 )
----
1059

onlyif mysql # DIV for integer division: 
query I rowsort label-8742
SELECT + 68 DIV 36 + 60
----
61

skipif mysql # not compatible
query I rowsort label-8742
SELECT + 68 / 36 + 60
----
61

query I rowsort
SELECT ALL - 23 + + 11 - - 48 AS col1
----
36

query I rowsort
SELECT + ( - - 86 )
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8745
SELECT - CAST( MIN( DISTINCT + 52 ) AS SIGNED ) * + 80 * - 47
----
195520

skipif mysql # not compatible
query I rowsort label-8745
SELECT - CAST ( MIN ( DISTINCT + 52 ) AS INTEGER ) * + 80 * - 47
----
195520

onlyif mysql # DIV for integer division: 
query I rowsort label-8746
SELECT - 18 + + + 30 * ( + COALESCE ( 2, 96 * - CASE NULLIF ( + 17, 56 ) WHEN + 82 THEN - 33 END ) ) DIV 3
----
2

skipif mysql # not compatible
query I rowsort label-8746
SELECT - 18 + + + 30 * ( + COALESCE ( 2, 96 * - CASE NULLIF ( + 17, 56 ) WHEN + 82 THEN - 33 END ) ) / 3
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-8747
SELECT 62 DIV + 13 - - + 99 AS col1
----
103

skipif mysql # not compatible
query I rowsort label-8747
SELECT 62 / + 13 - - + 99 AS col1
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-8748
SELECT + MAX( DISTINCT - 74 ) * 78 + 73 + + 14 + + - 89 + - - 62 + + + COUNT( * ) + 97 AS col2
----
-5614

skipif mysql # not compatible
query I rowsort label-8748
SELECT + MAX ( DISTINCT - 74 ) * 78 + 73 + + 14 + + - 89 + - - 62 + + + COUNT ( * ) + 97 AS col2
----
-5614

query II rowsort
SELECT DISTINCT - 32, 85 AS col2
----
-32
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8750
SELECT 14 * + + SUM( ALL + 4 ) + 34 AS col0
----
90

skipif mysql # not compatible
query I rowsort label-8750
SELECT 14 * + + SUM ( ALL + 4 ) + 34 AS col0
----
90

query I rowsort
SELECT ( + - 56 ) + + + 99 col0
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-8752
SELECT 8 DIV ( 61 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8752
SELECT 8 / ( 61 ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8753
SELECT 44 DIV + 99 * + 74
----
0

skipif mysql # not compatible
query I rowsort label-8753
SELECT 44 / + 99 * + 74
----
0

query II rowsort
SELECT DISTINCT - 92 AS col0, - 64 col1
----
-92
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8755
SELECT ALL MIN( + NULLIF ( - + 34, - - 76 * 2 * + + CASE - + ( + + 35 ) WHEN - 86 THEN NULL WHEN - - 73 * 95 - - 82 THEN NULL ELSE - NULLIF ( - - 35, 51 ) END * 35 + + - 29 ) ) + - 5 AS col0, - CAST( + + 47 AS SIGNED ) AS col2
----
-39
-47

skipif mysql # not compatible
query II rowsort label-8755
SELECT ALL MIN ( + NULLIF ( - + 34, - - 76 * 2 * + + CASE - + ( + + 35 ) WHEN - 86 THEN NULL WHEN - - 73 * 95 - - 82 THEN NULL ELSE - NULLIF ( - - 35, 51 ) END * 35 + + - 29 ) ) + - 5 AS col0, - CAST ( + + 47 AS INTEGER ) AS col2
----
-39
-47

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8756
SELECT ALL CAST( NULL AS DECIMAL ) / + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-8756
SELECT ALL CAST ( NULL AS REAL ) / + 11
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8757
SELECT CAST( 55 AS SIGNED ) * 54
----
2970

skipif mysql # not compatible
query I rowsort label-8757
SELECT CAST ( 55 AS INTEGER ) * 54
----
2970

query I rowsort
SELECT ALL 2 + + + 61
----
63

query I rowsort
SELECT 1 - + 76 AS col0
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8760
SELECT COUNT( * ) + + - 96 / + COALESCE ( + 4, - 15 ) * - + 77 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8760
SELECT COUNT ( * ) + + - 96 / + COALESCE ( + 4, - 15 ) * - + 77 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8761
SELECT ALL + 87 + - ( + 85 ) + - COUNT( * ) DIV - - 54 col1
----
2

skipif mysql # not compatible
query I rowsort label-8761
SELECT ALL + 87 + - ( + 85 ) + - COUNT ( * ) / - - 54 col1
----
2

query I rowsort
SELECT ALL + ( - 94 ) AS col2
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8763
SELECT DISTINCT 87 + - 40 * - - 8 / + 22 * - CASE COUNT( * ) WHEN - + 39 THEN - - CAST( NULL AS SIGNED ) WHEN - 63 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8763
SELECT DISTINCT 87 + - 40 * - - 8 / + 22 * - CASE COUNT ( * ) WHEN - + 39 THEN - - CAST ( NULL AS INTEGER ) WHEN - 63 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8764
SELECT - CASE CASE COUNT( * ) WHEN 4 * 3 THEN + 70 ELSE NULL END WHEN - 68 + + 11 THEN COUNT( * ) * - 8 * 86 * ( - 45 ) - 88 + ( 10 ) WHEN - + 29 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8764
SELECT - CASE CASE COUNT ( * ) WHEN 4 * 3 THEN + 70 ELSE NULL END WHEN - 68 + + 11 THEN COUNT ( * ) * - 8 * 86 * ( - 45 ) - 88 + ( 10 ) WHEN - + 29 THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8765
SELECT 72 + - CASE + - ( - 4 ) WHEN + 3 - + COALESCE ( - 7, 60 ) THEN - - 66 WHEN + + 86 + CASE WHEN NOT - 96 IS NULL THEN - 50 END THEN NULL WHEN + - 95 * - 72 * - - 97 * + 12 / + - 2 * + - SUM( ALL 92 ) THEN - - COALESCE ( - 18, - COUNT( * ), - 13 + + + 88, + 80 ) / + + 60 - - 51 + - MIN( DISTINCT 36 ) * 74 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8765
SELECT 72 + - CASE + - ( - 4 ) WHEN + 3 - + COALESCE ( - 7, 60 ) THEN - - 66 WHEN + + 86 + CASE WHEN NOT - 96 IS NULL THEN - 50 END THEN NULL WHEN + - 95 * - 72 * - - 97 * + 12 / + - 2 * + - SUM ( ALL 92 ) THEN - - COALESCE ( - 18, - COUNT ( * ), - 13 + + + 88, + 80 ) / + + 60 - - 51 + - MIN ( DISTINCT 36 ) * 74 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL 5 + - - ( + COALESCE ( 42, + 78, + + 59 * 86 * + - ( - 39 ) - 58 ) ) + + + ( 94 )
----
141

query I rowsort
SELECT - 49 + 37
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-8768
SELECT DISTINCT - + 99 DIV + + 87 + 75 AS col2
----
74

skipif mysql # not compatible
query I rowsort label-8768
SELECT DISTINCT - + 99 / + + 87 + 75 AS col2
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8769
SELECT ALL + - 87 * - + 90 + + - 53 - + 47 - - 36 * 43 * - 11 - + - 50 * - CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) / 5 + + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-8769
SELECT ALL + - 87 * - + 90 + + - 53 - + 47 - - 36 * 43 * - 11 - + - 50 * - CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) / 5 + + 80
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8770
SELECT + - NULLIF ( - 6, - + 5 + + + COALESCE ( 90, 87 * - - COUNT( * ) ) ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-8770
SELECT + - NULLIF ( - 6, - + 5 + + + COALESCE ( 90, 87 * - - COUNT ( * ) ) ) AS col1
----
6

query I rowsort
SELECT 9 * + 78 AS col1
----
702

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8772
SELECT DISTINCT - CAST( - NULLIF ( - COALESCE ( + 0, - 72, 98 ), + 59 ) AS SIGNED ) col0
----
0

skipif mysql # not compatible
query I rowsort label-8772
SELECT DISTINCT - CAST ( - NULLIF ( - COALESCE ( + 0, - 72, 98 ), + 59 ) AS INTEGER ) col0
----
0

query I rowsort
SELECT DISTINCT + NULLIF ( - + 53, - 78 ) * 94 AS col1
----
-4982

query I rowsort
SELECT ALL + 19 * 31
----
589

query I rowsort
SELECT 99 * 71 col2
----
7029

onlyif mysql # aggregate syntax: 
query I rowsort label-8776
SELECT COUNT( * ) * 66 * COALESCE ( - COUNT( * ), + 79 ) * + 11 * + 14 col1
----
-10164

skipif mysql # not compatible
query I rowsort label-8776
SELECT COUNT ( * ) * 66 * COALESCE ( - COUNT ( * ), + 79 ) * + 11 * + 14 col1
----
-10164

onlyif mysql # aggregate syntax: 
query I rowsort label-8777
SELECT 19 * COUNT( * ) - + 44
----
-25

skipif mysql # not compatible
query I rowsort label-8777
SELECT 19 * COUNT ( * ) - + 44
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-8778
SELECT MIN( + + 79 ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-8778
SELECT MIN ( + + 79 ) AS col1
----
79

query II rowsort
SELECT + 3, + 2 AS col0
----
3
2

query I rowsort
SELECT 24 * 9 * + 83
----
17928

onlyif mysql # aggregate syntax: 
query II rowsort label-8781
SELECT COUNT( * ) AS col2, - 84 + + COUNT( * ) + - + 4 AS col1
----
1
-87

skipif mysql # not compatible
query II rowsort label-8781
SELECT COUNT ( * ) AS col2, - 84 + + COUNT ( * ) + - + 4 AS col1
----
1
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-8782
SELECT ALL - 98 AS col0, + MAX( DISTINCT 62 ) * - + COUNT( * ) * + ( + 98 )
----
-98
-6076

skipif mysql # not compatible
query II rowsort label-8782
SELECT ALL - 98 AS col0, + MAX ( DISTINCT 62 ) * - + COUNT ( * ) * + ( + 98 )
----
-98
-6076

onlyif mysql # aggregate syntax: 
query I rowsort label-8783
SELECT ALL - CASE + 0 WHEN 39 THEN 57 + + 10 WHEN - + NULLIF ( 58, SUM( - 43 ) + 17 * - + CASE + - 96 WHEN - + 5 THEN - + 65 * 16 * - NULLIF ( 30, 2 - ( + - 97 ) + - ( + 27 ) + 16 - + - 25 ) + + 76 + 62 END + + + 79 ) + - + 21 + + + 48 + - + 20 + - 46 / 64 * + 4 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8783
SELECT ALL - CASE + 0 WHEN 39 THEN 57 + + 10 WHEN - + NULLIF ( 58, SUM ( - 43 ) + 17 * - + CASE + - 96 WHEN - + 5 THEN - + 65 * 16 * - NULLIF ( 30, 2 - ( + - 97 ) + - ( + 27 ) + 16 - + - 25 ) + + 76 + 62 END + + + 79 ) + - + 21 + + + 48 + - + 20 + - 46 / 64 * + 4 THEN NULL ELSE NULL END
----
NULL

query II rowsort
SELECT 46, 35 * + - 95 + NULLIF ( + 48, - 20 ) AS col0
----
46
-3277

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8785
SELECT ALL 73 * 8 AS col0, ( + 6 ) DIV + - COUNT( * )
----
584
-6

skipif mysql # not compatible
query II rowsort label-8785
SELECT ALL 73 * 8 AS col0, ( + 6 ) / + - COUNT ( * )
----
584
-6

query I rowsort
SELECT 62 * + 76 * 38 AS col2
----
179056

query I rowsort
SELECT ALL - 57 * 14 * + 57 AS col0
----
-45486

query I rowsort
SELECT DISTINCT 78 * 55 AS col2
----
4290

onlyif mysql # aggregate syntax: 
query I rowsort label-8789
SELECT - COUNT( * ) + - 64 + + 76
----
11

skipif mysql # not compatible
query I rowsort label-8789
SELECT - COUNT ( * ) + - 64 + + 76
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-8790
SELECT 76 AS col0, COUNT( DISTINCT + 1 ) col2
----
76
1

skipif mysql # not compatible
query II rowsort label-8790
SELECT 76 AS col0, COUNT ( DISTINCT + 1 ) col2
----
76
1

query I rowsort
SELECT - + 2 * + 52 + + + 37 AS col2
----
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8792
SELECT - + 72 AS col1, 67 * + COUNT( DISTINCT - + 9 ) * 29 + COUNT( 55 ) * + MAX( ALL - 68 ) DIV - 35 + - + 59 - + - 12 * COUNT( * )
----
-72
1897

skipif mysql # not compatible
query II rowsort label-8792
SELECT - + 72 AS col1, 67 * + COUNT ( DISTINCT - + 9 ) * 29 + COUNT ( 55 ) * + MAX ( ALL - 68 ) / - 35 + - + 59 - + - 12 * COUNT ( * )
----
-72
1897

onlyif mysql # aggregate syntax: 
query I rowsort label-8793
SELECT - - ( + + COALESCE ( - CASE - SUM( DISTINCT + 90 ) WHEN 1 THEN NULL WHEN + 90 + 65 THEN NULL ELSE - 49 + 79 END, - 38 ) ) AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-8793
SELECT - - ( + + COALESCE ( - CASE - SUM ( DISTINCT + 90 ) WHEN 1 THEN NULL WHEN + 90 + 65 THEN NULL ELSE - 49 + 79 END, - 38 ) ) AS col2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-8794
SELECT - COALESCE ( + + ( COALESCE ( - - 62, + - COUNT( * ) * ( 34 ) * + + 31 ) ), 24 )
----
-62

skipif mysql # not compatible
query I rowsort label-8794
SELECT - COALESCE ( + + ( COALESCE ( - - 62, + - COUNT ( * ) * ( 34 ) * + + 31 ) ), 24 )
----
-62

query II rowsort
SELECT + 67 AS col2, - 28 AS col0
----
67
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-8796
SELECT DISTINCT + 65 * COUNT( * ) * - + 51
----
-3315

skipif mysql # not compatible
query I rowsort label-8796
SELECT DISTINCT + 65 * COUNT ( * ) * - + 51
----
-3315

onlyif mysql # aggregate syntax: 
query I rowsort label-8797
SELECT + 77 * + COUNT( * ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-8797
SELECT + 77 * + COUNT ( * ) AS col2
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8798
SELECT - 47 * COUNT( * ) * + + 92 * + + CAST( + + NULLIF ( - MAX( - 39 ), + 73 * - 48 ) AS SIGNED ) * - CAST( ( + 91 ) AS SIGNED ) * COUNT( * )
----
15345876

skipif mysql # not compatible
query I rowsort label-8798
SELECT - 47 * COUNT ( * ) * + + 92 * + + CAST ( + + NULLIF ( - MAX ( - 39 ), + 73 * - 48 ) AS INTEGER ) * - CAST ( ( + 91 ) AS INTEGER ) * COUNT ( * )
----
15345876

onlyif mysql # aggregate syntax: 
query I rowsort label-8799
SELECT ALL - 31 * + - 90 * COUNT( * )
----
2790

skipif mysql # not compatible
query I rowsort label-8799
SELECT ALL - 31 * + - 90 * COUNT ( * )
----
2790

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8800
SELECT - + COUNT( * ) DIV + 95
----
0

skipif mysql # not compatible
query I rowsort label-8800
SELECT - + COUNT ( * ) / + 95
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8801
SELECT ALL + SUM( ALL + 47 ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-8801
SELECT ALL + SUM ( ALL + 47 ) AS col1
----
47

query I rowsort
SELECT - - ( + 82 ) AS col0
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-8803
SELECT ALL - 40 - 87 AS col2, - COUNT( * ) + + 9 AS col2
----
-127
8

skipif mysql # not compatible
query II rowsort label-8803
SELECT ALL - 40 - 87 AS col2, - COUNT ( * ) + + 9 AS col2
----
-127
8

query II rowsort
SELECT + - 76 * - 28, + 41 + + 38 AS col0
----
2128
79

query II rowsort
SELECT ALL 14, + 76 * + + 99 AS col2
----
14
7524

onlyif mysql # DIV for integer division: 
query I rowsort label-8806
SELECT 60 DIV 75 + - 84 DIV + 93 col2
----
0

skipif mysql # not compatible
query I rowsort label-8806
SELECT 60 / 75 + - 84 / + 93 col2
----
0

query I rowsort
SELECT - 28 * 3
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-8808
SELECT + 16 + + 40 * - + 83 - + + 54 * + COUNT( * ) - - 87 * + 64
----
2210

skipif mysql # not compatible
query I rowsort label-8808
SELECT + 16 + + 40 * - + 83 - + + 54 * + COUNT ( * ) - - 87 * + 64
----
2210

onlyif mysql # aggregate syntax: 
query I rowsort label-8809
SELECT - 80 / - COUNT( * ) * + - 88 / - + 53 * 4 * - + 7 / - CASE - 34 WHEN - 32 THEN - 57 + - - 40 WHEN COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8809
SELECT - 80 / - COUNT ( * ) * + - 88 / - + 53 * 4 * - + 7 / - CASE - 34 WHEN - 32 THEN - 57 + - - 40 WHEN COUNT ( * ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8810
SELECT + 92 + - + 18, COUNT( * ) AS col2
----
74
1

skipif mysql # not compatible
query II rowsort label-8810
SELECT + 92 + - + 18, COUNT ( * ) AS col2
----
74
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8811
SELECT DISTINCT + MIN( - - 68 ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-8811
SELECT DISTINCT + MIN ( - - 68 ) AS col0
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8812
SELECT ALL - CAST( - 33 AS SIGNED ) * + - MAX( 62 ) + + - 54 + - 47 + - 25 * + + 61 + + + COALESCE ( - 28, + COUNT( * ) DIV - CAST( NULL AS SIGNED ) * + 55 + + COUNT( * ) ) DIV - 25
----
-3671

skipif mysql # not compatible
query I rowsort label-8812
SELECT ALL - CAST ( - 33 AS INTEGER ) * + - MAX ( 62 ) + + - 54 + - 47 + - 25 * + + 61 + + + COALESCE ( - 28, + COUNT ( * ) / - CAST ( NULL AS INTEGER ) * + 55 + + COUNT ( * ) ) / - 25
----
-3671

onlyif mysql # aggregate syntax: 
query I rowsort label-8813
SELECT - 38 + + + COALESCE ( - COALESCE ( - + 59, COUNT( * ), 32 ), - - 6 * - 46 )
----
21

skipif mysql # not compatible
query I rowsort label-8813
SELECT - 38 + + + COALESCE ( - COALESCE ( - + 59, COUNT ( * ), 32 ), - - 6 * - 46 )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8814
SELECT ALL - MAX( ALL - - 2 ) * 16 col0
----
-32

skipif mysql # not compatible
query I rowsort label-8814
SELECT ALL - MAX ( ALL - - 2 ) * 16 col0
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8815
SELECT CASE 47 WHEN COUNT( * ) * 56 * CAST( NULL AS SIGNED ) + MAX( + - 71 ) * + + 3 THEN + - 11 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8815
SELECT CASE 47 WHEN COUNT ( * ) * 56 * CAST ( NULL AS INTEGER ) + MAX ( + - 71 ) * + + 3 THEN + - 11 END
----
NULL

query I rowsort
SELECT - 55 * - 1 AS col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8817
SELECT - COUNT( * ) + 66
----
65

skipif mysql # not compatible
query I rowsort label-8817
SELECT - COUNT ( * ) + 66
----
65

query I rowsort
SELECT DISTINCT - 71 * + ( - 13 ) * - + 50 AS col2
----
-46150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8819
SELECT ALL 74 * - ( - 84 ) + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8819
SELECT ALL 74 * - ( - 84 ) + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8820
SELECT - 20 DIV 2 * + + ( COUNT( * ) )
----
-10

skipif mysql # not compatible
query I rowsort label-8820
SELECT - 20 / 2 * + + ( COUNT ( * ) )
----
-10

query I rowsort
SELECT ALL + 67 * - 31 + + - 11 AS col2
----
-2088

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8822
SELECT - - SUM( ALL 32 ) DIV + 78 + - 95 col0
----
-95

skipif mysql # not compatible
query I rowsort label-8822
SELECT - - SUM ( ALL 32 ) / + 78 + - 95 col0
----
-95

query I rowsort
SELECT ALL 70 * - 26 + - 34
----
-1854

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8824
SELECT - 90 + MIN( DISTINCT + - 29 ) + - 31 + - 49 DIV - + 85 + - 21 AS col0
----
-171

skipif mysql # not compatible
query I rowsort label-8824
SELECT - 90 + MIN ( DISTINCT + - 29 ) + - 31 + - 49 / - + 85 + - 21 AS col0
----
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-8825
SELECT ALL - - 57 * + NULLIF ( + CASE + - 86 WHEN 37 THEN + 8 ELSE 75 * - 92 END, - COUNT( * ) * - + 82 + - + 28 ) * + 5 AS col0
----
-1966500

skipif mysql # not compatible
query I rowsort label-8825
SELECT ALL - - 57 * + NULLIF ( + CASE + - 86 WHEN 37 THEN + 8 ELSE 75 * - 92 END, - COUNT ( * ) * - + 82 + - + 28 ) * + 5 AS col0
----
-1966500

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8826
SELECT - COUNT( * ) * + 49 DIV 20
----
-2

skipif mysql # not compatible
query I rowsort label-8826
SELECT - COUNT ( * ) * + 49 / 20
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8827
SELECT + 8 * + NULLIF ( - COALESCE ( + COUNT( * ), - COUNT( * ) * - 76 * + COUNT( * ) ), 78 )
----
-8

skipif mysql # not compatible
query I rowsort label-8827
SELECT + 8 * + NULLIF ( - COALESCE ( + COUNT ( * ), - COUNT ( * ) * - 76 * + COUNT ( * ) ), 78 )
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8828
SELECT DISTINCT + ( + - ( - 55 ) ) * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8828
SELECT DISTINCT + ( + - ( - 55 ) ) * + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8829
SELECT - - 30 + + ( COALESCE ( + 73, - 22 DIV - 68 * - 9 ) ) AS col2
----
103

skipif mysql # not compatible
query I rowsort label-8829
SELECT - - 30 + + ( COALESCE ( + 73, - 22 / - 68 * - 9 ) ) AS col2
----
103

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8830
SELECT - + SUM( DISTINCT + ( 85 ) ) - + + 56 DIV 97, + ( + - ( + 96 ) ) col1
----
-85
-96

skipif mysql # not compatible
query II rowsort label-8830
SELECT - + SUM ( DISTINCT + ( 85 ) ) - + + 56 / 97, + ( + - ( + 96 ) ) col1
----
-85
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8831
SELECT - + ( + - 73 ) + + COUNT( * ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-8831
SELECT - + ( + - 73 ) + + COUNT ( * ) AS col1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8832
SELECT - - 97 * - COUNT( + - 62 ) AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-8832
SELECT - - 97 * - COUNT ( + - 62 ) AS col0
----
-97

query I rowsort
SELECT + 6 + 93 * - 74 AS col0
----
-6876

query I rowsort
SELECT + 11 * + ( - - 1 ) + - - 73
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8835
SELECT + NULLIF ( - 80, - 71 * - + 44 + - 27 + + + 36 ) + COUNT( * )
----
-79

skipif mysql # not compatible
query I rowsort label-8835
SELECT + NULLIF ( - 80, - 71 * - + 44 + - 27 + + + 36 ) + COUNT ( * )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-8836
SELECT ALL - COALESCE ( COUNT( * ), - MIN( - - 27 ) * - COUNT( DISTINCT 80 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8836
SELECT ALL - COALESCE ( COUNT ( * ), - MIN ( - - 27 ) * - COUNT ( DISTINCT 80 ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8837
SELECT + - 39 + - - ( - COUNT( * ) ) * + 35 * MAX( DISTINCT + 37 ) AS col0
----
-1334

skipif mysql # not compatible
query I rowsort label-8837
SELECT + - 39 + - - ( - COUNT ( * ) ) * + 35 * MAX ( DISTINCT + 37 ) AS col0
----
-1334

onlyif mysql # aggregate syntax: 
query II rowsort label-8838
SELECT + 99 * - MAX( 23 ) * 6, 76 AS col0
----
-13662
76

skipif mysql # not compatible
query II rowsort label-8838
SELECT + 99 * - MAX ( 23 ) * 6, 76 AS col0
----
-13662
76

query I rowsort
SELECT + 4 * + 24 AS col1
----
96

query I rowsort
SELECT ALL 10 * + - 10 AS col0
----
-100

onlyif mysql # aggregate syntax: 
query II rowsort label-8841
SELECT - NULLIF ( + 98, 51 ) AS col0, + COUNT( * ) + - + 79 AS col2
----
-98
-78

skipif mysql # not compatible
query II rowsort label-8841
SELECT - NULLIF ( + 98, 51 ) AS col0, + COUNT ( * ) + - + 79 AS col2
----
-98
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-8842
SELECT DISTINCT COUNT( * ) * - COUNT( ALL + 31 ), + 12 AS col1
----
-1
12

skipif mysql # not compatible
query II rowsort label-8842
SELECT DISTINCT COUNT ( * ) * - COUNT ( ALL + 31 ), + 12 AS col1
----
-1
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8843
SELECT + 68 * COUNT( * ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-8843
SELECT + 68 * COUNT ( * ) AS col1
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8844
SELECT ALL 33 / 41 + + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8844
SELECT ALL 33 / 41 + + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8845
SELECT + COUNT( * ) * - + ( + 16 ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-8845
SELECT + COUNT ( * ) * - + ( + 16 ) AS col2
----
-16

query I rowsort
SELECT + ( - - 10 ) AS col1
----
10

query I rowsort
SELECT - 83 * - - 59 - 67 AS col2
----
-4964

onlyif mysql # aggregate syntax: 
query I rowsort label-8848
SELECT 78 * + COUNT( * ) * - COUNT( * ) AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-8848
SELECT 78 * + COUNT ( * ) * - COUNT ( * ) AS col1
----
-78

query I rowsort
SELECT 52 * - 58
----
-3016

query II rowsort
SELECT ALL - 23 AS col1, COALESCE ( ( - 44 ), + 60, + + 23 )
----
-23
-44

query I rowsort
SELECT DISTINCT - 40 * - + 30
----
1200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8852
SELECT DISTINCT - 89 - + + 21 - 56 + COUNT( * ) + + + 91 * + COUNT( * ) * 65 + + MAX( ALL NULLIF ( 94, + 4 ) ) + 80 DIV - + 26 + + CAST( - + 41 AS SIGNED ) AS col2
----
5800

skipif mysql # not compatible
query I rowsort label-8852
SELECT DISTINCT - 89 - + + 21 - 56 + COUNT ( * ) + + + 91 * + COUNT ( * ) * 65 + + MAX ( ALL NULLIF ( 94, + 4 ) ) + 80 / - + 26 + + CAST ( - + 41 AS INTEGER ) AS col2
----
5800

query I rowsort
SELECT - 9 + - + 89
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8854
SELECT + NULLIF ( + + 24, + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + COUNT( * ) * 82 ) * + 19 - - + COALESCE ( - + COUNT( * ), + - 26 * + 97 + + + CAST( - 43 AS SIGNED ) * - COUNT( * ) + - + CASE 50 WHEN + - 64 * ( + ( + 50 ) ) + + - 12 * + 64 + - + NULLIF ( 81, ( - COUNT( * ) ) ) THEN NULL WHEN 60 + + 69 THEN MIN( ALL + + 94 ) ELSE COUNT( 14 ) END * - - 53 * 30 + + 80 ) + + COUNT( * ) * COUNT( * )
----
456

skipif mysql # not compatible
query I rowsort label-8854
SELECT + NULLIF ( + + 24, + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + COUNT ( * ) * 82 ) * + 19 - - + COALESCE ( - + COUNT ( * ), + - 26 * + 97 + + + CAST ( - 43 AS INTEGER ) * - COUNT ( * ) + - + CASE 50 WHEN + - 64 * ( + ( + 50 ) ) + + - 12 * + 64 + - + NULLIF ( 81, ( - COUNT ( * ) ) ) THEN NULL WHEN 60 + + 69 THEN MIN ( ALL + + 94 ) ELSE COUNT ( 14 ) END * - - 53 * 30 + + 80 ) + + COUNT ( * ) * COUNT ( * )
----
456

query I rowsort
SELECT DISTINCT - 98 * - - 27
----
-2646

query I rowsort
SELECT + 2 * - 48 * 47 + + ( + 99 )
----
-4413

query I rowsort
SELECT 27 + - ( 16 )
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8858
SELECT + + 88 * 13 + + 20 + 38 * - - 5 DIV + + ( + COUNT( * ) ) + + + 61 + ( 38 )
----
1453

skipif mysql # not compatible
query I rowsort label-8858
SELECT + + 88 * 13 + + 20 + 38 * - - 5 / + + ( + COUNT ( * ) ) + + + 61 + ( 38 )
----
1453

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8859
SELECT COALESCE ( + 57, - 34 + + COUNT( * ) * - 60 - - - 3 DIV COUNT( * ), 70 + 97 * 23 - + ( + 96 ) ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-8859
SELECT COALESCE ( + 57, - 34 + + COUNT ( * ) * - 60 - - - 3 / COUNT ( * ), 70 + 97 * 23 - + ( + 96 ) ) AS col0
----
57

query I rowsort
SELECT 27 * - 87 AS col1
----
-2349

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8861
SELECT - 9 + + - ( + 53 ) * + COALESCE ( + COUNT( * ), + - 95 - - - 80 - ( + COUNT( * ) ) * + - 30 - + 58 * COUNT( * ), 36 + - 87 DIV + - 2 ) + 0 col1
----
-62

skipif mysql # not compatible
query I rowsort label-8861
SELECT - 9 + + - ( + 53 ) * + COALESCE ( + COUNT ( * ), + - 95 - - - 80 - ( + COUNT ( * ) ) * + - 30 - + 58 * COUNT ( * ), 36 + - 87 / + - 2 ) + 0 col1
----
-62

query I rowsort
SELECT DISTINCT + - 87 * 94
----
-8178

query I rowsort
SELECT - 57 - + 60 AS col1
----
-117

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8864
SELECT 76 DIV + + 88 + + NULLIF ( + NULLIF ( - 37, - 28 + COUNT( * ) ), 6 + 36 + 69 ) + + 8
----
-29

skipif mysql # not compatible
query I rowsort label-8864
SELECT 76 / + + 88 + + NULLIF ( + NULLIF ( - 37, - 28 + COUNT ( * ) ), 6 + 36 + 69 ) + + 8
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-8865
SELECT + 31 DIV - - 39 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8865
SELECT + 31 / - - 39 AS col2
----
0

query I rowsort
SELECT ALL + 88 + 58
----
146

query I rowsort
SELECT - + ( - + ( - 93 ) ) AS col0
----
-93

query I rowsort
SELECT 47 * - 50
----
-2350

query II rowsort
SELECT DISTINCT - 15 * + + 13 AS col2, 76
----
-195
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8870
SELECT ALL + CASE MAX( - + 57 ) WHEN + + 3 * + NULLIF ( COALESCE ( - + 96, CAST( 74 AS SIGNED ) * 36 + 57 ), - - COUNT( * ) + - 95 * - 93 * - COUNT( * ) + + 17 ) THEN NULL WHEN + + 23 * - - 29 THEN NULL ELSE + + 92 + 67 DIV - + ( - COALESCE ( 18, 79 * + - 83 * - CAST( 2 AS SIGNED ) - MIN( 71 ) - - COUNT( * ) * + 3 + + + 68, - 39 ) ) END + ( - 67 ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-8870
SELECT ALL + CASE MAX ( - + 57 ) WHEN + + 3 * + NULLIF ( COALESCE ( - + 96, CAST ( 74 AS INTEGER ) * 36 + 57 ), - - COUNT ( * ) + - 95 * - 93 * - COUNT ( * ) + + 17 ) THEN NULL WHEN + + 23 * - - 29 THEN NULL ELSE + + 92 + 67 / - + ( - COALESCE ( 18, 79 * + - 83 * - CAST ( 2 AS INTEGER ) - MIN ( 71 ) - - COUNT ( * ) * + 3 + + + 68, - 39 ) ) END + ( - 67 ) AS col2
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-8871
SELECT ALL 57 + - 84 * 65 + + + 56 + - 57 * + 30 - COALESCE ( + - 79, 80 DIV - 38 ) * + 70 - + 60 + - + 5
----
-1592

skipif mysql # not compatible
query I rowsort label-8871
SELECT ALL 57 + - 84 * 65 + + + 56 + - 57 * + 30 - COALESCE ( + - 79, 80 / - 38 ) * + 70 - + 60 + - + 5
----
-1592

query II rowsort
SELECT 18 + + - ( + 50 ) + - 51, 18 * - 91 AS col1
----
-83
-1638

onlyif mysql # aggregate syntax: 
query II rowsort label-8873
SELECT DISTINCT 62 + + 72 AS col0, COUNT( * ) * 15 AS col2
----
134
15

skipif mysql # not compatible
query II rowsort label-8873
SELECT DISTINCT 62 + + 72 AS col0, COUNT ( * ) * 15 AS col2
----
134
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8874
SELECT ALL 97 + CASE - CAST( + 30 AS SIGNED ) WHEN COUNT( * ) THEN NULL WHEN + 38 THEN + + 16 * ( + - CAST( NULL AS SIGNED ) ) ELSE NULL END / 77
----
NULL

skipif mysql # not compatible
query I rowsort label-8874
SELECT ALL 97 + CASE - CAST ( + 30 AS INTEGER ) WHEN COUNT ( * ) THEN NULL WHEN + 38 THEN + + 16 * ( + - CAST ( NULL AS INTEGER ) ) ELSE NULL END / 77
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8875
SELECT 43 + + CAST( + + ( 39 ) AS SIGNED )
----
82

skipif mysql # not compatible
query I rowsort label-8875
SELECT 43 + + CAST ( + + ( 39 ) AS INTEGER )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8876
SELECT ALL 91 * MAX( 49 )
----
4459

skipif mysql # not compatible
query I rowsort label-8876
SELECT ALL 91 * MAX ( 49 )
----
4459

query I rowsort
SELECT ALL 61 - + + 22 * 25
----
-489

query I rowsort
SELECT DISTINCT 20 * - 74 AS col2
----
-1480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8879
SELECT ALL COUNT( * ) - + 65 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8879
SELECT ALL COUNT ( * ) - + 65 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8880
SELECT + 63 + 81 DIV - - COUNT( * )
----
144

skipif mysql # not compatible
query I rowsort label-8880
SELECT + 63 + 81 / - - COUNT ( * )
----
144

query I rowsort
SELECT DISTINCT - CASE + 0 WHEN 41 THEN 39 * 38 END col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8882
SELECT - 16 DIV 73 + + + ( - 25 ) + - 75 * NULLIF ( COUNT( * ), - COUNT( * ) ) AS col0
----
-100

skipif mysql # not compatible
query I rowsort label-8882
SELECT - 16 / 73 + + + ( - 25 ) + - 75 * NULLIF ( COUNT ( * ), - COUNT ( * ) ) AS col0
----
-100

query I rowsort
SELECT + 66 * + 45
----
2970

onlyif mysql # aggregate syntax: 
query I rowsort label-8884
SELECT ALL + 53 * - CASE + NULLIF ( + + 22, - 37 ) WHEN + 28 * + + COUNT( * ) THEN NULL WHEN + - 12 THEN + 20 * - + 44 WHEN + MIN( + ( - 91 ) ) THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8884
SELECT ALL + 53 * - CASE + NULLIF ( + + 22, - 37 ) WHEN + 28 * + + COUNT ( * ) THEN NULL WHEN + - 12 THEN + 20 * - + 44 WHEN + MIN ( + ( - 91 ) ) THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8885
SELECT 42 * COUNT( * ) * + + 16 - - - 38 col0
----
634

skipif mysql # not compatible
query I rowsort label-8885
SELECT 42 * COUNT ( * ) * + + 16 - - - 38 col0
----
634

onlyif mysql # aggregate syntax: 
query I rowsort label-8886
SELECT ALL + + ( 33 ) + - + 97 + NULLIF ( - 72, + 28 + COUNT( * ) - - 31 + 42 * + AVG ( + + 62 ) * + 57 / + 11 ) AS col0
----
-136

skipif mysql # not compatible
query I rowsort label-8886
SELECT ALL + + ( 33 ) + - + 97 + NULLIF ( - 72, + 28 + COUNT ( * ) - - 31 + 42 * + AVG ( + + 62 ) * + 57 / + 11 ) AS col0
----
-136

query I rowsort
SELECT - 55 + 88 col2
----
33

query I rowsort
SELECT 90 - 12 AS col0
----
78

query I rowsort
SELECT DISTINCT + 90 + 86 + 97
----
273

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8890
SELECT ALL + 31 + - COUNT( * ) DIV + - 68
----
31

skipif mysql # not compatible
query I rowsort label-8890
SELECT ALL + 31 + - COUNT ( * ) / + - 68
----
31

query I rowsort
SELECT DISTINCT + 47 + + 14 AS col2
----
61

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-8892
SELECT ALL + 29 + - COUNT( ALL + - CAST( NULL AS DECIMAL ) ) DIV 33 + - + COUNT( * ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-8892
SELECT ALL + 29 + - COUNT ( ALL + - CAST ( NULL AS REAL ) ) / 33 + - + COUNT ( * ) AS col1
----
28

query I rowsort
SELECT 53 + 73 + + + 44 + - 11 AS col2
----
159

query II rowsort
SELECT 4 AS col0, - 61
----
4
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8895
SELECT - ( 90 ) + - 30 * CAST( + - CAST( + ( + 55 ) AS SIGNED ) AS SIGNED )
----
1560

skipif mysql # not compatible
query I rowsort label-8895
SELECT - ( 90 ) + - 30 * CAST ( + - CAST ( + ( + 55 ) AS INTEGER ) AS INTEGER )
----
1560

query I rowsort
SELECT - 27 * - 73 AS col1
----
1971

query I rowsort
SELECT - 3 * 83 * + 91 AS col0
----
-22659

query I rowsort
SELECT ALL + 57 * + 43 AS col0
----
2451

query I rowsort
SELECT - 97 * + 83 AS col0
----
-8051

onlyif mysql # aggregate syntax: 
query I rowsort label-8900
SELECT COALESCE ( - + COUNT( * ), 1 )
----
-1

skipif mysql # not compatible
query I rowsort label-8900
SELECT COALESCE ( - + COUNT ( * ), 1 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8901
SELECT ALL + ( - + 6 ) * COUNT( * ) - - 54
----
48

skipif mysql # not compatible
query I rowsort label-8901
SELECT ALL + ( - + 6 ) * COUNT ( * ) - - 54
----
48

query I rowsort
SELECT DISTINCT 31 * 79 - - 25
----
2474

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8903
SELECT ALL + 58 * - + COUNT( CAST( NULL AS SIGNED ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8903
SELECT ALL + 58 * - + COUNT ( CAST ( NULL AS INTEGER ) ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8904
SELECT COALESCE ( - CAST( NULL AS SIGNED ), + SUM( DISTINCT - 59 ) * 51 + + COUNT( * ), + MAX( + 11 ) ) col1
----
-3008

skipif mysql # not compatible
query I rowsort label-8904
SELECT COALESCE ( - CAST ( NULL AS INTEGER ), + SUM ( DISTINCT - 59 ) * 51 + + COUNT ( * ), + MAX ( + 11 ) ) col1
----
-3008

onlyif mysql # aggregate syntax: 
query I rowsort label-8905
SELECT + COUNT( ( + - 89 ) )
----
1

skipif mysql # not compatible
query I rowsort label-8905
SELECT + COUNT ( ( + - 89 ) )
----
1

query I rowsort
SELECT ALL + - NULLIF ( + 24, 71 * + 90 )
----
-24

query I rowsort
SELECT - 1 - + NULLIF ( + 36, - + 16 * + 9 * ( - - 42 ) / - 84 + - 52 + - 20 * + 92 + ( 20 ) ) AS col1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-8908
SELECT + SUM( ALL 99 )
----
99

skipif mysql # not compatible
query I rowsort label-8908
SELECT + SUM ( ALL 99 )
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-8909
SELECT COUNT( * ), - 87 AS col2
----
1
-87

skipif mysql # not compatible
query II rowsort label-8909
SELECT COUNT ( * ), - 87 AS col2
----
1
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-8910
SELECT + - MIN( + NULLIF ( - + ( 2 ), - 81 - + + 74 ) ) * + 88 * - - 68 + + MAX( ALL 8 ) - - - 13 AS col1
----
11963

skipif mysql # not compatible
query I rowsort label-8910
SELECT + - MIN ( + NULLIF ( - + ( 2 ), - 81 - + + 74 ) ) * + 88 * - - 68 + + MAX ( ALL 8 ) - - - 13 AS col1
----
11963

query I rowsort
SELECT + 84 * - - 74
----
6216

query I rowsort
SELECT ALL + 48 * + 3 col1
----
144

query I rowsort
SELECT - + 42 * - 32 AS col1
----
1344

query II rowsort
SELECT DISTINCT 71 * 77 * 1 AS col2, 28 - - 54
----
5467
82

query I rowsort
SELECT ALL + 4 * - 35 AS col2
----
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-8916
SELECT + + CASE + - 5 WHEN - COUNT( * ) THEN + ( - 40 ) - - 58 END / - + 57 + + 36 * - 62
----
NULL

skipif mysql # not compatible
query I rowsort label-8916
SELECT + + CASE + - 5 WHEN - COUNT ( * ) THEN + ( - 40 ) - - 58 END / - + 57 + + 36 * - 62
----
NULL

query I rowsort
SELECT + - 18 - + 38 * + 63
----
-2412

query I rowsort
SELECT - + 49 + 44 * 91 AS col0
----
3955

onlyif mysql # DIV for integer division: 
query I rowsort label-8919
SELECT + 86 DIV ( + 35 ) * 32 AS col2
----
64

skipif mysql # not compatible
query I rowsort label-8919
SELECT + 86 / ( + 35 ) * 32 AS col2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8920
SELECT ALL - - 83 * CASE - MAX( + 79 ) WHEN - + 73 + 7 + + - 91 THEN NULL WHEN + + ( + 63 ) THEN - 49 ELSE NULL END * 47 * + MIN( DISTINCT 61 ) * - 75 + - AVG ( DISTINCT - 27 ) + - 1
----
NULL

skipif mysql # not compatible
query I rowsort label-8920
SELECT ALL - - 83 * CASE - MAX ( + 79 ) WHEN - + 73 + 7 + + - 91 THEN NULL WHEN + + ( + 63 ) THEN - 49 ELSE NULL END * 47 * + MIN ( DISTINCT 61 ) * - 75 + - AVG ( DISTINCT - 27 ) + - 1
----
NULL

query I rowsort
SELECT ( + ( + 94 ) )
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8922
SELECT ALL - SUM( + 48 ) DIV + 85 * + 48 + - 71
----
-71

skipif mysql # not compatible
query I rowsort label-8922
SELECT ALL - SUM ( + 48 ) / + 85 * + 48 + - 71
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8923
SELECT ALL - 61 + + CAST( + 47 AS SIGNED ) AS col0, - NULLIF ( + ( + 67 ), - 39 ) + - + 72 + + 91 AS col2
----
-14
-48

skipif mysql # not compatible
query II rowsort label-8923
SELECT ALL - 61 + + CAST ( + 47 AS INTEGER ) AS col0, - NULLIF ( + ( + 67 ), - 39 ) + - + 72 + + 91 AS col2
----
-14
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-8924
SELECT ALL + 2 + - 68 DIV + - 85
----
2

skipif mysql # not compatible
query I rowsort label-8924
SELECT ALL + 2 + - 68 / + - 85
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8925
SELECT - - ( - - MIN( DISTINCT + 69 ) )
----
69

skipif mysql # not compatible
query I rowsort label-8925
SELECT - - ( - - MIN ( DISTINCT + 69 ) )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8926
SELECT MAX( DISTINCT - - 45 )
----
45

skipif mysql # not compatible
query I rowsort label-8926
SELECT MAX ( DISTINCT - - 45 )
----
45

query II rowsort
SELECT 95 AS col0, + 2 + ( + 20 ) AS col0
----
95
22

query I rowsort
SELECT - COALESCE ( + + 99, + 91 ) * - 47
----
4653

query I rowsort
SELECT - NULLIF ( 93, - + 98 / + 77 ) AS col0
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8930
SELECT ALL COALESCE ( - 98, + 96 ) + + CAST( MIN( ALL 44 ) AS SIGNED ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-8930
SELECT ALL COALESCE ( - 98, + 96 ) + + CAST ( MIN ( ALL 44 ) AS INTEGER ) AS col1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-8931
SELECT + 27 - - + 52 + 78 * - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-8931
SELECT + 27 - - + 52 + 78 * - COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8932
SELECT + COALESCE ( + + 34, 33 + ( - + 86 ) ) + 29 col1, + MIN( ALL + 34 ) + + + 63 AS col2
----
63
97

skipif mysql # not compatible
query II rowsort label-8932
SELECT + COALESCE ( + + 34, 33 + ( - + 86 ) ) + 29 col1, + MIN ( ALL + 34 ) + + + 63 AS col2
----
63
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8933
SELECT - CAST( NULL AS SIGNED ) * 12 * - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8933
SELECT - CAST ( NULL AS INTEGER ) * 12 * - + COUNT ( * )
----
NULL

query I rowsort
SELECT + 79 + + - 84 - - 26 AS col0
----
21

query I rowsort
SELECT ALL - 99 - 88
----
-187

onlyif mysql # aggregate syntax: 
query I rowsort label-8936
SELECT - 73 * - + ( + + COUNT( * ) ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-8936
SELECT - 73 * - + ( + + COUNT ( * ) ) AS col0
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8937
SELECT + 20 + - + COUNT( 89 ) + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8937
SELECT + 20 + - + COUNT ( 89 ) + - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 26 + + + 31 AS col0
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8939
SELECT + CAST( + 45 AS SIGNED ) AS col2, + 42 AS col1
----
45
42

skipif mysql # not compatible
query II rowsort label-8939
SELECT + CAST ( + 45 AS INTEGER ) AS col2, + 42 AS col1
----
45
42

onlyif mysql # aggregate syntax: 
query II rowsort label-8940
SELECT ALL + NULLIF ( - MAX( ALL - 34 ), 57 ) AS col2, + 42 + - + 13 - + 65 AS col1
----
34
-36

skipif mysql # not compatible
query II rowsort label-8940
SELECT ALL + NULLIF ( - MAX ( ALL - 34 ), 57 ) AS col2, + 42 + - + 13 - + 65 AS col1
----
34
-36

onlyif mysql # DIV for integer division: 
query II rowsort label-8941
SELECT + 57 DIV 50 + - - 51 + - 67 AS col0, - 35
----
-15
-35

skipif mysql # not compatible
query II rowsort label-8941
SELECT + 57 / 50 + - - 51 + - 67 AS col0, - 35
----
-15
-35

query I rowsort
SELECT ALL - 77 * - 94
----
7238

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8943
SELECT ALL + 12 AS col0, - 47 * - 36 DIV COUNT( 52 ) * 65 + + 32 + 95
----
12
110107

skipif mysql # not compatible
query II rowsort label-8943
SELECT ALL + 12 AS col0, - 47 * - 36 / COUNT ( 52 ) * 65 + + 32 + 95
----
12
110107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8944
SELECT - CAST( 8 AS SIGNED ) * + - 63 + - CASE - COUNT( * ) WHEN - 83 * 78 * 81 + 71 THEN + - 42 + ( + - 25 ) * COALESCE ( + 64, + COUNT( * ) ) / - - 28 * 20 END + + COUNT( ALL + - 1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8944
SELECT - CAST ( 8 AS INTEGER ) * + - 63 + - CASE - COUNT ( * ) WHEN - 83 * 78 * 81 + 71 THEN + - 42 + ( + - 25 ) * COALESCE ( + 64, + COUNT ( * ) ) / - - 28 * 20 END + + COUNT ( ALL + - 1 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8945
SELECT + CAST( - - CAST( - ( - + ( + + 57 ) ) AS DECIMAL ) AS SIGNED ) * COUNT( * ) + - 46 - + NULLIF ( + - 30, - COUNT( 0 ) + + + 18 ) + COALESCE ( 61, + - 20 ) * - 68 + - 53 * 72 * + NULLIF ( + - 36, + - COUNT( * ) * + 2 * + 78 ) + + + 20
----
133289

skipif mysql # not compatible
query I rowsort label-8945
SELECT + CAST ( - - CAST ( - ( - + ( + + 57 ) ) AS REAL ) AS INTEGER ) * COUNT ( * ) + - 46 - + NULLIF ( + - 30, - COUNT ( 0 ) + + + 18 ) + COALESCE ( 61, + - 20 ) * - 68 + - 53 * 72 * + NULLIF ( + - 36, + - COUNT ( * ) * + 2 * + 78 ) + + + 20
----
133289

onlyif mysql # aggregate syntax: 
query I rowsort label-8946
SELECT ALL + MAX( - + 55 ) * - 67 * 99 * + 63 + + 97 + 92 AS col0
----
22983534

skipif mysql # not compatible
query I rowsort label-8946
SELECT ALL + MAX ( - + 55 ) * - 67 * 99 * + 63 + + 97 + 92 AS col0
----
22983534

query II rowsort
SELECT DISTINCT + 53, 36 AS col0
----
53
36

query I rowsort
SELECT ALL + 74 * - 27 + 64 AS col2
----
-1934

query I rowsort
SELECT NULLIF ( - 82, + 87 )
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-8950
SELECT ALL - 73 * + - COUNT( * ) * 97 - + 66 + - 71 AS col2
----
6944

skipif mysql # not compatible
query I rowsort label-8950
SELECT ALL - 73 * + - COUNT ( * ) * 97 - + 66 + - 71 AS col2
----
6944

query I rowsort
SELECT ( - - 1 ) + 5 + + ( - 20 ) AS col2
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-8952
SELECT NULLIF ( - 50, - - COUNT( * ) - COALESCE ( - 13, - 19 ) ) + + SUM( ALL - 40 ) AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-8952
SELECT NULLIF ( - 50, - - COUNT ( * ) - COALESCE ( - 13, - 19 ) ) + + SUM ( ALL - 40 ) AS col0
----
-90

query I rowsort
SELECT 37 * + + 83 * 25
----
76775

query II rowsort
SELECT 43 + + 64 AS col0, - 11 * + 33
----
107
-363

onlyif mysql # DIV for integer division: 
query I rowsort label-8955
SELECT DISTINCT 33 DIV + 71
----
0

skipif mysql # not compatible
query I rowsort label-8955
SELECT DISTINCT 33 / + 71
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8956
SELECT MIN( + - ( + 82 ) ) * + - 89 * - 85 / CAST( - ( - 42 ) AS SIGNED ) + 18 + + + CAST( NULL AS SIGNED ) * - COALESCE ( - 33, - 58 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8956
SELECT MIN ( + - ( + 82 ) ) * + - 89 * - 85 / CAST ( - ( - 42 ) AS INTEGER ) + 18 + + + CAST ( NULL AS INTEGER ) * - COALESCE ( - 33, - 58 ) AS col2
----
NULL

query I rowsort
SELECT ALL 68 * - + 94 col1
----
-6392

onlyif mysql # DIV for integer division: 
query II rowsort label-8958
SELECT DISTINCT 79 DIV + 11 AS col0, - ( - 43 ) - 99 AS col1
----
7
-56

skipif mysql # not compatible
query II rowsort label-8958
SELECT DISTINCT 79 / + 11 AS col0, - ( - 43 ) - 99 AS col1
----
7
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-8959
SELECT ( CASE 94 WHEN - + COUNT( ALL 58 ) THEN + - 73 - - + 46 / + 69 * - MIN( DISTINCT 58 ) WHEN - - COUNT( * ) + + 3 - 49 / ( + 96 ) * - 0 + - 62 * - 57 THEN + 17 + + AVG ( 28 ) WHEN + 41 THEN + 74 END ) + + ( + 24 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8959
SELECT ( CASE 94 WHEN - + COUNT ( ALL 58 ) THEN + - 73 - - + 46 / + 69 * - MIN ( DISTINCT 58 ) WHEN - - COUNT ( * ) + + 3 - 49 / ( + 96 ) * - 0 + - 62 * - 57 THEN + 17 + + AVG ( 28 ) WHEN + 41 THEN + 74 END ) + + ( + 24 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8960
SELECT 62 * + COALESCE ( + COUNT( * ), 93 ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-8960
SELECT 62 * + COALESCE ( + COUNT ( * ), 93 ) AS col2
----
62

query I rowsort
SELECT DISTINCT 25 * - NULLIF ( - 24, - 83 )
----
600

query I rowsort
SELECT 87 * - - 55 * 21
----
100485

onlyif mysql # aggregate syntax: 
query I rowsort label-8963
SELECT ALL 72 * ( MIN( ALL 7 ) ) * - 90 * - - 40 * - 33 * + ( - - COUNT( * ) ) AS col0
----
59875200

skipif mysql # not compatible
query I rowsort label-8963
SELECT ALL 72 * ( MIN ( ALL 7 ) ) * - 90 * - - 40 * - 33 * + ( - - COUNT ( * ) ) AS col0
----
59875200

query I rowsort
SELECT DISTINCT 75 * - 13 * 61 col2
----
-59475

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8965
SELECT DISTINCT - + CAST( + + COUNT( * ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-8965
SELECT DISTINCT - + CAST ( + + COUNT ( * ) AS INTEGER )
----
-1

query I rowsort
SELECT ALL 93 + + 1 - + 83 + + + 48
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8967
SELECT - SUM( ALL + CAST( NULL AS SIGNED ) ) AS col0, 88 * - + 94 * 11
----
NULL
-90992

skipif mysql # not compatible
query II rowsort label-8967
SELECT - SUM ( ALL + CAST ( NULL AS INTEGER ) ) AS col0, 88 * - + 94 * 11
----
NULL
-90992

query II rowsort
SELECT ALL + + 91 + + + 66, + 63 AS col2
----
157
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8969
SELECT - NULLIF ( NULLIF ( + COALESCE ( - 66, - + 83 * - 39 + + MIN( + 11 ) ), - - 52 ), - - COUNT( DISTINCT - 63 ) * 52 )
----
66

skipif mysql # not compatible
query I rowsort label-8969
SELECT - NULLIF ( NULLIF ( + COALESCE ( - 66, - + 83 * - 39 + + MIN ( + 11 ) ), - - 52 ), - - COUNT ( DISTINCT - 63 ) * 52 )
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-8970
SELECT + 59 * 64 AS col0, 32 + + - 28 + + 59 + + 67 + - COALESCE ( - + NULLIF ( + + COUNT( ALL - 54 ), + 25 * 55 ), 56 ) AS col2
----
3776
131

skipif mysql # not compatible
query II rowsort label-8970
SELECT + 59 * 64 AS col0, 32 + + - 28 + + 59 + + 67 + - COALESCE ( - + NULLIF ( + + COUNT ( ALL - 54 ), + 25 * 55 ), 56 ) AS col2
----
3776
131

onlyif mysql # aggregate syntax: 
query I rowsort label-8971
SELECT COUNT( - 9 ) - - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-8971
SELECT COUNT ( - 9 ) - - COUNT ( * )
----
2

query I rowsort
SELECT + ( - 14 ) AS col0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-8973
SELECT ALL + - 78 * - COUNT( * ) * COUNT( - 36 )
----
78

skipif mysql # not compatible
query I rowsort label-8973
SELECT ALL + - 78 * - COUNT ( * ) * COUNT ( - 36 )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8974
SELECT ALL CASE + - 28 WHEN + - 33 + + + 46 + - 18 + - NULLIF ( - COUNT( * ), - 10 ) - COUNT( * ) + 6 * - 47 + - 0 THEN - + 86 * + + 52 / + ( 24 ) WHEN + 62 THEN NULL END + - ( - 47 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8974
SELECT ALL CASE + - 28 WHEN + - 33 + + + 46 + - 18 + - NULLIF ( - COUNT ( * ), - 10 ) - COUNT ( * ) + 6 * - 47 + - 0 THEN - + 86 * + + 52 / + ( 24 ) WHEN + 62 THEN NULL END + - ( - 47 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8975
SELECT DISTINCT - + 74 - - COUNT( * ) AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-8975
SELECT DISTINCT - + 74 - - COUNT ( * ) AS col0
----
-73

query I rowsort
SELECT DISTINCT + 78 - - + 23 + 76 AS col2
----
177

query I rowsort
SELECT DISTINCT - - CASE + ( - + 73 ) WHEN + - 23 THEN NULL ELSE - 10 END
----
-10

query I rowsort
SELECT DISTINCT 92 * + + 75 * + - 13 * 14 AS col0
----
-1255800

query II rowsort
SELECT DISTINCT 44 AS col2, - 19 AS col0
----
44
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8980
SELECT ALL 27 * - CAST( CAST( - 59 AS SIGNED ) AS SIGNED ) AS col2, COUNT( * ) * + 17 + - 89 * + 99 * - 14
----
1593
123371

skipif mysql # not compatible
query II rowsort label-8980
SELECT ALL 27 * - CAST ( CAST ( - 59 AS INTEGER ) AS INTEGER ) AS col2, COUNT ( * ) * + 17 + - 89 * + 99 * - 14
----
1593
123371

query I rowsort
SELECT 72 * + 74
----
5328

onlyif mysql # aggregate syntax: 
query I rowsort label-8982
SELECT ALL + 8 * - + COUNT( * ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-8982
SELECT ALL + 8 * - + COUNT ( * ) AS col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8983
SELECT DISTINCT + 99 * - COUNT( * )
----
-99

skipif mysql # not compatible
query I rowsort label-8983
SELECT DISTINCT + 99 * - COUNT ( * )
----
-99

query II rowsort
SELECT ALL 91 * + + ( 95 ), + 5 AS col0
----
8645
5

query I rowsort
SELECT 68 + 68
----
136

query II rowsort
SELECT 44, + 47 * + 38 AS col1
----
44
1786

query I rowsort
SELECT ALL 84 + - - 31 + - 66 + + 45 * - 19 + + 21
----
-785

query I rowsort
SELECT 78 + + - 49 * + 63
----
-3009

onlyif mysql # aggregate syntax: 
query II rowsort label-8989
SELECT ALL COUNT( * ), - 6 col1
----
1
-6

skipif mysql # not compatible
query II rowsort label-8989
SELECT ALL COUNT ( * ), - 6 col1
----
1
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8990
SELECT SUM( - 99 ) + 7 col1
----
-92

skipif mysql # not compatible
query I rowsort label-8990
SELECT SUM ( - 99 ) + 7 col1
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8991
SELECT 63 col0, + CAST( - - 6 AS SIGNED ) * + 19 * 12
----
63
1368

skipif mysql # not compatible
query II rowsort label-8991
SELECT 63 col0, + CAST ( - - 6 AS INTEGER ) * + 19 * 12
----
63
1368

onlyif mysql # aggregate syntax: 
query I rowsort label-8992
SELECT DISTINCT MAX( DISTINCT - 15 )
----
-15

skipif mysql # not compatible
query I rowsort label-8992
SELECT DISTINCT MAX ( DISTINCT - 15 )
----
-15

query I rowsort
SELECT ALL 48 + - 11
----
37

query I rowsort
SELECT 42 * - - 26 + 28 AS col0
----
1120

query II rowsort
SELECT 85 + - 41 - 76 AS col0, + 48 + + ( + 86 ) + + 77
----
-32
211

onlyif mysql # aggregate syntax: 
query I rowsort label-8996
SELECT ALL - 25 + - 63 + - - COALESCE ( + + MIN( + - 57 ), - - COUNT( * ) ) * - 75 AS col0
----
4187

skipif mysql # not compatible
query I rowsort label-8996
SELECT ALL - 25 + - 63 + - - COALESCE ( + + MIN ( + - 57 ), - - COUNT ( * ) ) * - 75 AS col0
----
4187

query I rowsort
SELECT + ( - + 91 )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8998
SELECT + + MIN( DISTINCT + 31 ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-8998
SELECT + + MIN ( DISTINCT + 31 ) AS col1
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-8999
SELECT 65 + - 68 DIV 27
----
63

skipif mysql # not compatible
query I rowsort label-8999
SELECT 65 + - 68 / 27
----
63

query I rowsort
SELECT DISTINCT 84 * - 63 AS col2
----
-5292

onlyif mysql # aggregate syntax: 
query I rowsort label-9001
SELECT ALL - COUNT( ALL 58 )
----
-1

skipif mysql # not compatible
query I rowsort label-9001
SELECT ALL - COUNT ( ALL 58 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9002
SELECT + CAST( NULL AS SIGNED ) * 95 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9002
SELECT + CAST ( NULL AS INTEGER ) * 95 AS col0
----
NULL

query II rowsort
SELECT 97 AS col0, 71 - + - 8 + 81 * - 57 AS col1
----
97
-4538

onlyif mysql # aggregate syntax: 
query I rowsort label-9004
SELECT ALL - COUNT( * ) * - 21 - 72 AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-9004
SELECT ALL - COUNT ( * ) * - 21 - 72 AS col2
----
-51

query I rowsort
SELECT + 99 * + 2 + 87 col0
----
285

query I rowsort
SELECT - 69 * - 75
----
5175

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9007
SELECT ALL + 32 DIV + SUM( ALL - 2 )
----
-16

skipif mysql # not compatible
query I rowsort label-9007
SELECT ALL + 32 / + SUM ( ALL - 2 )
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9008
SELECT 2 * - CAST( NULL AS SIGNED ) + - 90
----
NULL

skipif mysql # not compatible
query I rowsort label-9008
SELECT 2 * - CAST ( NULL AS INTEGER ) + - 90
----
NULL

query I rowsort
SELECT ALL 21 * - 67
----
-1407

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9010
SELECT - ( - COUNT( * ) ) DIV - 3 * + - 80
----
0

skipif mysql # not compatible
query I rowsort label-9010
SELECT - ( - COUNT ( * ) ) / - 3 * + - 80
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-9011
SELECT ALL + 40 DIV + + 49 AS col2, 35
----
0
35

skipif mysql # not compatible
query II rowsort label-9011
SELECT ALL + 40 / + + 49 AS col2, 35
----
0
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9012
SELECT - CAST( + AVG ( 96 ) AS SIGNED ) + + 48 + - 33 + - 75 AS col1
----
-156

skipif mysql # not compatible
query I rowsort label-9012
SELECT - CAST ( + AVG ( 96 ) AS INTEGER ) + + 48 + - 33 + - 75 AS col1
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-9013
SELECT + 21 * + + COUNT( * )
----
21

skipif mysql # not compatible
query I rowsort label-9013
SELECT + 21 * + + COUNT ( * )
----
21

query I rowsort
SELECT ALL - 40 + + 79 + - 98 + - 87 * 26
----
-2321

query I rowsort
SELECT - 14 + 19 + + - 74 + + 44 * - 61 + 28 AS col0
----
-2725

query I rowsort
SELECT - 79 * - ( 7 ) AS col2
----
553

onlyif mysql # aggregate syntax: 
query I rowsort label-9017
SELECT ALL + MAX( + + 77 ) + - 55
----
22

skipif mysql # not compatible
query I rowsort label-9017
SELECT ALL + MAX ( + + 77 ) + - 55
----
22

query I rowsort
SELECT ALL + 4 + + 98 * 25
----
2454

onlyif mysql # DIV for integer division: 
query I rowsort label-9019
SELECT DISTINCT + 95 + + 53 DIV + ( + ( 30 ) )
----
96

skipif mysql # not compatible
query I rowsort label-9019
SELECT DISTINCT + 95 + + 53 / + ( + ( 30 ) )
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9020
SELECT ALL - COALESCE ( - COALESCE ( - COALESCE ( 9, + - 24 ), 67 + - + 9 - - - CAST( NULL AS SIGNED ) - - + COALESCE ( MAX( + 34 ), - 72 ) ), + + 34 ) + - 87 * + 28 AS col0
----
-2445

skipif mysql # not compatible
query I rowsort label-9020
SELECT ALL - COALESCE ( - COALESCE ( - COALESCE ( 9, + - 24 ), 67 + - + 9 - - - CAST ( NULL AS INTEGER ) - - + COALESCE ( MAX ( + 34 ), - 72 ) ), + + 34 ) + - 87 * + 28 AS col0
----
-2445

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9021
SELECT DISTINCT NULLIF ( 12, CAST( - 48 AS SIGNED ) ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-9021
SELECT DISTINCT NULLIF ( 12, CAST ( - 48 AS INTEGER ) ) AS col0
----
12

query I rowsort
SELECT ALL + 77 + 51 * - + 77
----
-3850

query II rowsort
SELECT DISTINCT - 23 + + 95, - 53 * + 26 AS col0
----
72
-1378

query I rowsort
SELECT ALL - + 99 + 74 + ( + 94 ) * - - 35 + - 36 AS col0
----
3229

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9025
SELECT + COALESCE ( COALESCE ( + 82, - COUNT( * ) ), 90 ) + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9025
SELECT + COALESCE ( COALESCE ( + 82, - COUNT ( * ) ), 90 ) + + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9026
SELECT - 54 * - ( COUNT( * ) ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-9026
SELECT - 54 * - ( COUNT ( * ) ) AS col2
----
54

query I rowsort
SELECT ALL 97 + 29
----
126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9028
SELECT ALL + MAX( DISTINCT + + CAST( + + 43 AS SIGNED ) ) + - - ( + MIN( ALL - - 24 ) ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-9028
SELECT ALL + MAX ( DISTINCT + + CAST ( + + 43 AS INTEGER ) ) + - - ( + MIN ( ALL - - 24 ) ) AS col2
----
67

query I rowsort
SELECT ALL + 13 - - + 51
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9030
SELECT DISTINCT + + 23 / + ( + CASE + 70 WHEN + 42 THEN - + COUNT( * ) ELSE NULL END ) + - 48 - + - 81 * 12
----
NULL

skipif mysql # not compatible
query I rowsort label-9030
SELECT DISTINCT + + 23 / + ( + CASE + 70 WHEN + 42 THEN - + COUNT ( * ) ELSE NULL END ) + - 48 - + - 81 * 12
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9031
SELECT DISTINCT MAX( - - 48 ) * - 68 - 8 AS col1
----
-3272

skipif mysql # not compatible
query I rowsort label-9031
SELECT DISTINCT MAX ( - - 48 ) * - 68 - 8 AS col1
----
-3272

onlyif mysql # aggregate syntax: 
query I rowsort label-9032
SELECT + 30 * - + COUNT( ALL - 49 )
----
-30

skipif mysql # not compatible
query I rowsort label-9032
SELECT + 30 * - + COUNT ( ALL - 49 )
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9033
SELECT - - 89 + - CAST( - 51 AS SIGNED ) + - 49 * - 84
----
4256

skipif mysql # not compatible
query I rowsort label-9033
SELECT - - 89 + - CAST ( - 51 AS INTEGER ) + - 49 * - 84
----
4256

onlyif mysql # aggregate syntax: 
query I rowsort label-9034
SELECT ALL 27 * + COUNT( * ) + 32 AS col0
----
59

skipif mysql # not compatible
query I rowsort label-9034
SELECT ALL 27 * + COUNT ( * ) + 32 AS col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9035
SELECT + 66 * - + COUNT( * )
----
-66

skipif mysql # not compatible
query I rowsort label-9035
SELECT + 66 * - + COUNT ( * )
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9036
SELECT ALL + - NULLIF ( 6, NULLIF ( - + 22, - CAST( NULL AS SIGNED ) + - 74 ) )
----
-6

skipif mysql # not compatible
query I rowsort label-9036
SELECT ALL + - NULLIF ( 6, NULLIF ( - + 22, - CAST ( NULL AS INTEGER ) + - 74 ) )
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9037
SELECT DISTINCT CAST( + 78 AS SIGNED ) * + CAST( NULL AS SIGNED ) * - + 77 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9037
SELECT DISTINCT CAST ( + 78 AS INTEGER ) * + CAST ( NULL AS INTEGER ) * - + 77 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9038
SELECT ALL CAST( 28 AS SIGNED ) * + COUNT( * ) col2
----
28

skipif mysql # not compatible
query I rowsort label-9038
SELECT ALL CAST ( 28 AS INTEGER ) * + COUNT ( * ) col2
----
28

query I rowsort
SELECT CASE + 63 WHEN + + 26 THEN - 21 + - 76 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9040
SELECT CASE - + 27 WHEN - CASE + 27 WHEN - 54 - - 88 + 89 THEN NULL WHEN - - 50 THEN + - 36 END THEN 5 * + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9040
SELECT CASE - + 27 WHEN - CASE + 27 WHEN - 54 - - 88 + 89 THEN NULL WHEN - - 50 THEN + - 36 END THEN 5 * + COUNT ( * ) END
----
NULL

query I rowsort
SELECT + 98 * + ( 21 ) - + 97 col2
----
1961

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9042
SELECT - CAST( NULL AS SIGNED ) * - + 86 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9042
SELECT - CAST ( NULL AS INTEGER ) * - + 86 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9043
SELECT CAST( - + 88 AS SIGNED ) * - 7 - - 13 + - 49 DIV 24 * - 8 * - - MIN( + 19 )
----
933

skipif mysql # not compatible
query I rowsort label-9043
SELECT CAST ( - + 88 AS INTEGER ) * - 7 - - 13 + - 49 / 24 * - 8 * - - MIN ( + 19 )
----
933

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9044
SELECT ALL 54 * + 81 * + 74 + - + MAX( 51 ) + - - COUNT( * ) + CAST( 55 AS SIGNED ) AS col2
----
323681

skipif mysql # not compatible
query I rowsort label-9044
SELECT ALL 54 * + 81 * + 74 + - + MAX ( 51 ) + - - COUNT ( * ) + CAST ( 55 AS INTEGER ) AS col2
----
323681

query I rowsort
SELECT + ( + - 83 )
----
-83

query I rowsort
SELECT NULLIF ( + 35, + + 69 )
----
35

query I rowsort
SELECT + 91 * 68
----
6188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-9048
SELECT + 42 * ( 37 ) * - 87 + + COUNT( * ) * 76 + - CASE SUM( + ( 86 ) ) WHEN CAST( NULL AS SIGNED ) + + - CASE - 78 WHEN + 0 + - - 99 THEN NULL ELSE - - 85 END THEN + SUM( DISTINCT - 51 ) / + - 8 END + + 85 AS col0, 89 AS col0, + - 10 * 60
----
NULL
89
-600

skipif mysql # not compatible
query III rowsort label-9048
SELECT + 42 * ( 37 ) * - 87 + + COUNT ( * ) * 76 + - CASE SUM ( + ( 86 ) ) WHEN CAST ( NULL AS INTEGER ) + + - CASE - 78 WHEN + 0 + - - 99 THEN NULL ELSE - - 85 END THEN + SUM ( DISTINCT - 51 ) / + - 8 END + + 85 AS col0, 89 AS col0, + - 10 * 60
----
NULL
89
-600

query I rowsort
SELECT DISTINCT 23 * + 14 + - - 30 col1
----
352

onlyif mysql # DIV for integer division: 
query I rowsort label-9050
SELECT ALL 91 * + - 93 + + 2 + COALESCE ( 47, + 79 ) + + 55 DIV - 82
----
-8414

skipif mysql # not compatible
query I rowsort label-9050
SELECT ALL 91 * + - 93 + + 2 + COALESCE ( 47, + 79 ) + + 55 / - 82
----
-8414

query I rowsort
SELECT DISTINCT ( 32 ) AS col2
----
32

query II rowsort
SELECT DISTINCT 66 * 92 + + - 70 * COALESCE ( - - 55, 69 ), - 32 * + + 72 AS col1
----
2222
-2304

onlyif mysql # aggregate syntax: 
query I rowsort label-9053
SELECT DISTINCT 67 * COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-9053
SELECT DISTINCT 67 * COUNT ( * )
----
67

query I rowsort
SELECT - 37 * 43 * + 28 col2
----
-44548

query I rowsort
SELECT ALL + 73 + 71
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-9056
SELECT ALL COALESCE ( - - 59, - 4 - - 92 * ( + 63 ) * + COUNT( * ), - COUNT( * ) ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-9056
SELECT ALL COALESCE ( - - 59, - 4 - - 92 * ( + 63 ) * + COUNT ( * ), - COUNT ( * ) ) AS col0
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9057
SELECT + 7 + + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9057
SELECT + 7 + + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9058
SELECT - 13 DIV + 46
----
0

skipif mysql # not compatible
query I rowsort label-9058
SELECT - 13 / + 46
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9059
SELECT DISTINCT 90 col1, 35 * - 82 * - COUNT( * )
----
90
2870

skipif mysql # not compatible
query II rowsort label-9059
SELECT DISTINCT 90 col1, 35 * - 82 * - COUNT ( * )
----
90
2870

query I rowsort
SELECT ALL + 9 + + 21 + - ( 0 ) * + 29 + 97
----
127

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9061
SELECT - - COUNT( * ) + + 29 DIV - + SUM( DISTINCT - 14 ) - + 57
----
-54

skipif mysql # not compatible
query I rowsort label-9061
SELECT - - COUNT ( * ) + + 29 / - + SUM ( DISTINCT - 14 ) - + 57
----
-54

query I rowsort
SELECT - - 98 * - - 19 AS col2
----
1862

onlyif mysql # aggregate syntax: 
query I rowsort label-9063
SELECT ALL SUM( + 73 ) col2
----
73

skipif mysql # not compatible
query I rowsort label-9063
SELECT ALL SUM ( + 73 ) col2
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-9064
SELECT - MAX( ALL - 8 ) * + COUNT( * ), - 55 + - 29 + - - 46 + 68 * - + 89 + 27 + 79 AS col2
----
8
-5984

skipif mysql # not compatible
query II rowsort label-9064
SELECT - MAX ( ALL - 8 ) * + COUNT ( * ), - 55 + - 29 + - - 46 + 68 * - + 89 + 27 + 79 AS col2
----
8
-5984

query I rowsort
SELECT DISTINCT + + 42 - - 67 * 27
----
1851

query II rowsort
SELECT ALL + 69 AS col1, ( + 85 ) AS col2
----
69
85

query I rowsort
SELECT - 45 + - + 70 AS col2
----
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-9068
SELECT DISTINCT - - ( + + 92 ) * + NULLIF ( - 26, - COUNT( + 42 ) / - 27 * + - 94 + - + 19 ) * + + NULLIF ( + CASE + + 34 WHEN - 58 THEN + 84 ELSE NULL END, + + 31 + - 8 ) * - - COUNT( ALL + 54 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9068
SELECT DISTINCT - - ( + + 92 ) * + NULLIF ( - 26, - COUNT ( + 42 ) / - 27 * + - 94 + - + 19 ) * + + NULLIF ( + CASE + + 34 WHEN - 58 THEN + 84 ELSE NULL END, + + 31 + - 8 ) * - - COUNT ( ALL + 54 )
----
NULL

query II rowsort
SELECT - NULLIF ( 4, + + 91 * 47 * - + 16 ) AS col2, - 88 AS col0
----
-4
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9070
SELECT + 8 / + + 71 / + MAX( ALL CAST( NULL AS SIGNED ) ) + - 16 AS col2, 67 * - + 87
----
NULL
-5829

skipif mysql # not compatible
query II rowsort label-9070
SELECT + 8 / + + 71 / + MAX ( ALL CAST ( NULL AS INTEGER ) ) + - 16 AS col2, 67 * - + 87
----
NULL
-5829

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9071
SELECT ( - 10 ) DIV + MIN( - 17 ) + - - 39 AS col1
----
39

skipif mysql # not compatible
query I rowsort label-9071
SELECT ( - 10 ) / + MIN ( - 17 ) + - - 39 AS col1
----
39

query I rowsort
SELECT + 95 + + COALESCE ( - 3, + ( 60 ) )
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9073
SELECT - 33 * + + 66 + - + CAST( + 80 AS SIGNED ) AS col2
----
-2258

skipif mysql # not compatible
query I rowsort label-9073
SELECT - 33 * + + 66 + - + CAST ( + 80 AS INTEGER ) AS col2
----
-2258

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9074
SELECT ALL - + CAST( - 90 AS SIGNED )
----
90

skipif mysql # not compatible
query I rowsort label-9074
SELECT ALL - + CAST ( - 90 AS INTEGER )
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-9075
SELECT 73 DIV + 61
----
1

skipif mysql # not compatible
query I rowsort label-9075
SELECT 73 / + 61
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9076
SELECT DISTINCT - 67 DIV + 16
----
-4

skipif mysql # not compatible
query I rowsort label-9076
SELECT DISTINCT - 67 / + 16
----
-4

query I rowsort
SELECT 46 * - 54 AS col0
----
-2484

query II rowsort
SELECT 81 + 62 AS col2, - 21 AS col0
----
143
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-9079
SELECT ALL 15 DIV 32
----
0

skipif mysql # not compatible
query I rowsort label-9079
SELECT ALL 15 / 32
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9080
SELECT 52 DIV - 21 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-9080
SELECT 52 / - 21 AS col2
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9081
SELECT 88 DIV 65 * - - COUNT( - 23 ), COUNT( * ) * - - 38 * - - COUNT( * ) AS col2
----
1
38

skipif mysql # not compatible
query II rowsort label-9081
SELECT 88 / 65 * - - COUNT ( - 23 ), COUNT ( * ) * - - 38 * - - COUNT ( * ) AS col2
----
1
38

query I rowsort
SELECT DISTINCT 33 + - 9
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9083
SELECT CAST( - 14 AS SIGNED ) * - - 63 AS col1
----
-882

skipif mysql # not compatible
query I rowsort label-9083
SELECT CAST ( - 14 AS INTEGER ) * - - 63 AS col1
----
-882

query I rowsort
SELECT ALL 68 + - 12 AS col2
----
56

query I rowsort
SELECT DISTINCT + 95 + ( + + 11 ) - + - 66
----
172

query II rowsort
SELECT ALL - 52 AS col0, - 44
----
-52
-44

query I rowsort
SELECT 87 + COALESCE ( + 13, + 92 )
----
100

query I rowsort
SELECT ALL 73 + + 67 AS col0
----
140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9089
SELECT ALL 32 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9089
SELECT ALL 32 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT DISTINCT - 64 AS col2, - 18
----
-64
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-9091
SELECT ALL SUM( + 66 ) + - + 3
----
63

skipif mysql # not compatible
query I rowsort label-9091
SELECT ALL SUM ( + 66 ) + - + 3
----
63

query I rowsort
SELECT 13 + + + 73
----
86

query II rowsort
SELECT 60 AS col1, + 11
----
60
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9094
SELECT - 62 * + 26 + COUNT( * )
----
-1611

skipif mysql # not compatible
query I rowsort label-9094
SELECT - 62 * + 26 + COUNT ( * )
----
-1611

onlyif mysql # aggregate syntax: 
query I rowsort label-9095
SELECT ALL COUNT( * ) + - 60 * COUNT( ALL 24 )
----
-59

skipif mysql # not compatible
query I rowsort label-9095
SELECT ALL COUNT ( * ) + - 60 * COUNT ( ALL 24 )
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9096
SELECT ALL 95 DIV + MAX( - + 97 ) * + 57, + 9 col1
----
0
9

skipif mysql # not compatible
query II rowsort label-9096
SELECT ALL 95 / + MAX ( - + 97 ) * + 57, + 9 col1
----
0
9

onlyif mysql # DIV for integer division: 
query I rowsort label-9097
SELECT 3 DIV 40
----
0

skipif mysql # not compatible
query I rowsort label-9097
SELECT 3 / 40
----
0

query I rowsort
SELECT DISTINCT 75 * 93 AS col2
----
6975

onlyif mysql # aggregate syntax: 
query II rowsort label-9099
SELECT - - 71, COUNT( * ) + - - 17 AS col1
----
71
18

skipif mysql # not compatible
query II rowsort label-9099
SELECT - - 71, COUNT ( * ) + - - 17 AS col1
----
71
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9100
SELECT ALL COALESCE ( - CAST( + + 61 AS SIGNED ), + - 95 * - 24 ) DIV COUNT( * ) + + 69 AS col1, + 25
----
8
25

skipif mysql # not compatible
query II rowsort label-9100
SELECT ALL COALESCE ( - CAST ( + + 61 AS INTEGER ), + - 95 * - 24 ) / COUNT ( * ) + + 69 AS col1, + 25
----
8
25

query II rowsort
SELECT 11, 93 AS col2
----
11
93

query I rowsort
SELECT DISTINCT + 44 * + 4
----
176

query I rowsort
SELECT ALL + 86 * 66 AS col0
----
5676

onlyif mysql # aggregate syntax: 
query II rowsort label-9104
SELECT 42 AS col0, - 3 + + 2 * - 60 + - + COUNT( * ) * - 44 + + SUM( ALL 37 ) AS col0
----
42
-42

skipif mysql # not compatible
query II rowsort label-9104
SELECT 42 AS col0, - 3 + + 2 * - 60 + - + COUNT ( * ) * - 44 + + SUM ( ALL 37 ) AS col0
----
42
-42

query I rowsort
SELECT + ( 81 ) * - 28 - + + 59 AS col1
----
-2327

onlyif mysql # aggregate syntax: 
query I rowsort label-9106
SELECT ALL - CASE COUNT( DISTINCT - - 66 ) WHEN 50 THEN - - 58 + + 34 + - - 58 - - 76 * 73 / - - COUNT( DISTINCT + - ( + 29 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9106
SELECT ALL - CASE COUNT ( DISTINCT - - 66 ) WHEN 50 THEN - - 58 + + 34 + - - 58 - - 76 * 73 / - - COUNT ( DISTINCT + - ( + 29 ) ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9107
SELECT DISTINCT COUNT( - 74 )
----
1

skipif mysql # not compatible
query I rowsort label-9107
SELECT DISTINCT COUNT ( - 74 )
----
1

onlyif mysql # aggregate syntax: 
query III rowsort label-9108
SELECT ALL + 52, 80 + MAX( DISTINCT - 31 ) AS col1, + ( + - COUNT( * ) ) * 93 + COUNT( * ) AS col0
----
52
49
-92

skipif mysql # not compatible
query III rowsort label-9108
SELECT ALL + 52, 80 + MAX ( DISTINCT - 31 ) AS col1, + ( + - COUNT ( * ) ) * 93 + COUNT ( * ) AS col0
----
52
49
-92

query I rowsort
SELECT 96 * + 59 AS col1
----
5664

onlyif mysql # aggregate syntax: 
query II rowsort label-9110
SELECT DISTINCT - 40 AS col2, - NULLIF ( + 6, - 79 * + 4 ) + + + COUNT( * ) AS col1
----
-40
-5

skipif mysql # not compatible
query II rowsort label-9110
SELECT DISTINCT - 40 AS col2, - NULLIF ( + 6, - 79 * + 4 ) + + + COUNT ( * ) AS col1
----
-40
-5

query I rowsort
SELECT DISTINCT - 53 * 98 * - + 67 * - - ( 58 )
----
20183884

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9112
SELECT DISTINCT CAST( - MAX( - 72 ) AS SIGNED ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-9112
SELECT DISTINCT CAST ( - MAX ( - 72 ) AS INTEGER ) AS col1
----
72

query I rowsort
SELECT ALL - 9 * + 26 AS col1
----
-234

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9114
SELECT 75 * - COALESCE ( - + COUNT( * ), + + 76 DIV + 71 ) AS col1
----
75

skipif mysql # not compatible
query I rowsort label-9114
SELECT 75 * - COALESCE ( - + COUNT ( * ), + + 76 / + 71 ) AS col1
----
75

query I rowsort
SELECT 46 + + 70 + 63 col2
----
179

query I rowsort
SELECT DISTINCT - 62 * 10 col1
----
-620

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9117
SELECT 56 + CASE - 75 WHEN + - 30 DIV NULLIF ( 4, + 13 ) * + - 91 + + 66 THEN SUM( - - 31 ) + + COUNT( * ) * + 72 END AS col2, COALESCE ( + CAST( NULL AS SIGNED ), - 66 * + 69, - - 72 DIV + + MAX( DISTINCT + - 45 ) ) AS col1
----
NULL
-4554

skipif mysql # not compatible
query II rowsort label-9117
SELECT 56 + CASE - 75 WHEN + - 30 / NULLIF ( 4, + 13 ) * + - 91 + + 66 THEN SUM ( - - 31 ) + + COUNT ( * ) * + 72 END AS col2, COALESCE ( + CAST ( NULL AS INTEGER ), - 66 * + 69, - - 72 / + + MAX ( DISTINCT + - 45 ) ) AS col1
----
NULL
-4554

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9118
SELECT 91 * + COUNT( * ) * - CAST( NULL AS SIGNED ) * - 3 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9118
SELECT 91 * + COUNT ( * ) * - CAST ( NULL AS INTEGER ) * - 3 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9119
SELECT COUNT( + 58 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9119
SELECT COUNT ( + 58 ) AS col2
----
1

query I rowsort
SELECT DISTINCT - 63 * - + 67 AS col0
----
4221

onlyif mysql # aggregate syntax: 
query I rowsort label-9121
SELECT DISTINCT + 8 + + 91 + COUNT( * ) AS col2
----
100

skipif mysql # not compatible
query I rowsort label-9121
SELECT DISTINCT + 8 + + 91 + COUNT ( * ) AS col2
----
100

query I rowsort
SELECT ALL 55 + + 23 AS col0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9123
SELECT ALL COUNT( * ) + - COUNT( * ) + 30
----
30

skipif mysql # not compatible
query I rowsort label-9123
SELECT ALL COUNT ( * ) + - COUNT ( * ) + 30
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9124
SELECT COUNT( * ) * 97 * 25
----
2425

skipif mysql # not compatible
query I rowsort label-9124
SELECT COUNT ( * ) * 97 * 25
----
2425

onlyif mysql # DIV for integer division: 
query II rowsort label-9125
SELECT ALL + 18 DIV + 63 col1, - 27
----
0
-27

skipif mysql # not compatible
query II rowsort label-9125
SELECT ALL + 18 / + 63 col1, - 27
----
0
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9126
SELECT COUNT( * ) DIV - 84 AS col2, - 79 + - SUM( 59 ) AS col0
----
0
-138

skipif mysql # not compatible
query II rowsort label-9126
SELECT COUNT ( * ) / - 84 AS col2, - 79 + - SUM ( 59 ) AS col0
----
0
-138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9127
SELECT 91 * - - 27 - - CAST( ( 55 ) AS SIGNED ) AS col1
----
2512

skipif mysql # not compatible
query I rowsort label-9127
SELECT 91 * - - 27 - - CAST ( ( 55 ) AS INTEGER ) AS col1
----
2512

onlyif mysql # aggregate syntax: 
query I rowsort label-9128
SELECT - 58 * + 80 + - - COUNT( * ) + - - 6 * + 36 - + 37 AS col1
----
-4460

skipif mysql # not compatible
query I rowsort label-9128
SELECT - 58 * + 80 + - - COUNT ( * ) + - - 6 * + 36 - + 37 AS col1
----
-4460

onlyif mysql # aggregate syntax: 
query I rowsort label-9129
SELECT ALL COUNT( DISTINCT 64 ) - 6 + + 22
----
17

skipif mysql # not compatible
query I rowsort label-9129
SELECT ALL COUNT ( DISTINCT 64 ) - 6 + + 22
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9130
SELECT + MAX( ALL - 73 )
----
-73

skipif mysql # not compatible
query I rowsort label-9130
SELECT + MAX ( ALL - 73 )
----
-73

query I rowsort
SELECT 6 * + 98
----
588

onlyif mysql # aggregate syntax: 
query II rowsort label-9132
SELECT ALL 72 * ( - + COUNT( * ) ) * + 62 * + - 19, + 96 AS col0
----
84816
96

skipif mysql # not compatible
query II rowsort label-9132
SELECT ALL 72 * ( - + COUNT ( * ) ) * + 62 * + - 19, + 96 AS col0
----
84816
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9133
SELECT ALL - COUNT( - 76 )
----
-1

skipif mysql # not compatible
query I rowsort label-9133
SELECT ALL - COUNT ( - 76 )
----
-1

query II rowsort
SELECT DISTINCT + ( 10 ), 54 AS col0
----
10
54

query I rowsort
SELECT - + 51 + 4 + ( - 97 ) * CASE + + 33 WHEN 54 - 67 THEN NULL ELSE - - 44 - + 8 END + + 50 AS col2
----
-3489

onlyif mysql # aggregate syntax: 
query I rowsort label-9136
SELECT + - 76 + + COUNT( * ) + - 64
----
-139

skipif mysql # not compatible
query I rowsort label-9136
SELECT + - 76 + + COUNT ( * ) + - 64
----
-139

onlyif mysql # aggregate syntax: 
query I rowsort label-9137
SELECT + 36 + - ( - COUNT( * ) )
----
37

skipif mysql # not compatible
query I rowsort label-9137
SELECT + 36 + - ( - COUNT ( * ) )
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9138
SELECT + CAST( - 43 AS SIGNED ) + - - 54 * + ( - + COUNT( * ) ), 70 AS col2
----
-97
70

skipif mysql # not compatible
query II rowsort label-9138
SELECT + CAST ( - 43 AS INTEGER ) + - - 54 * + ( - + COUNT ( * ) ), 70 AS col2
----
-97
70

query I rowsort
SELECT ALL 93 * + 27
----
2511

query I rowsort
SELECT + 63 + - 8
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9141
SELECT ALL COUNT( * ) DIV 68 col2, 73
----
0
73

skipif mysql # not compatible
query II rowsort label-9141
SELECT ALL COUNT ( * ) / 68 col2, 73
----
0
73

query I rowsort
SELECT + ( 35 ) + 67 * + NULLIF ( - 12, + NULLIF ( + 18, + 81 * + + 14 * 5 + - 41 + - 17 ) ) col2
----
-769

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9143
SELECT ALL 46 + - 76 col1, - COUNT( * ) - ( 75 ) DIV ( 93 ) + - + COUNT( * )
----
-30
-2

skipif mysql # not compatible
query II rowsort label-9143
SELECT ALL 46 + - 76 col1, - COUNT ( * ) - ( 75 ) / ( 93 ) + - + COUNT ( * )
----
-30
-2

query I rowsort
SELECT DISTINCT 51 * + - 43
----
-2193

query I rowsort
SELECT ALL + - 49 + 55 AS col1
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-9146
SELECT + + NULLIF ( 46, ( + 51 ) ) + + 66 + + 48 DIV 42 AS col2
----
113

skipif mysql # not compatible
query I rowsort label-9146
SELECT + + NULLIF ( 46, ( + 51 ) ) + + 66 + + 48 / 42 AS col2
----
113

query I rowsort
SELECT DISTINCT 78 + 40 + + - 73 AS col2
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9148
SELECT - + 94 + - COALESCE ( + + 38, + + 23 + + + ( CAST( 97 AS SIGNED ) ) * + COUNT( * ) DIV - + 0 * + - 95 ) AS col2, 97
----
-132
97

skipif mysql # not compatible
query II rowsort label-9148
SELECT - + 94 + - COALESCE ( + + 38, + + 23 + + + ( CAST ( 97 AS INTEGER ) ) * + COUNT ( * ) / - + 0 * + - 95 ) AS col2, 97
----
-132
97

onlyif mysql # DIV for integer division: 
query I rowsort label-9149
SELECT ALL 92 + + + 48 - 33 + - 0 + 9 DIV - 85 * + ( + 90 ) * 44 + - - 35 AS col0
----
142

skipif mysql # not compatible
query I rowsort label-9149
SELECT ALL 92 + + + 48 - 33 + - 0 + 9 / - 85 * + ( + 90 ) * 44 + - - 35 AS col0
----
142

onlyif mysql # DIV for integer division: 
query I rowsort label-9150
SELECT 95 DIV - 18 + 64 AS col1
----
59

skipif mysql # not compatible
query I rowsort label-9150
SELECT 95 / - 18 + 64 AS col1
----
59

query I rowsort
SELECT + 74 + + 65 + + 77 * + 71 AS col2
----
5606

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9152
SELECT ALL COALESCE ( + 95, 9 ) * + + ( 17 ) * 5 + + - 92 DIV - + 89 + + + COUNT( ALL + 43 ) AS col1
----
8077

skipif mysql # not compatible
query I rowsort label-9152
SELECT ALL COALESCE ( + 95, 9 ) * + + ( 17 ) * 5 + + - 92 / - + 89 + + + COUNT ( ALL + 43 ) AS col1
----
8077

query I rowsort
SELECT ( - 53 ) AS col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-9154
SELECT - COUNT( * ) * - - NULLIF ( - 75, + 28 ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-9154
SELECT - COUNT ( * ) * - - NULLIF ( - 75, + 28 ) AS col0
----
75

query I rowsort
SELECT ALL 42 * - - 32 * + - ( + - 97 ) + + + 12 AS col1
----
130380

onlyif mysql # aggregate syntax: 
query II rowsort label-9156
SELECT ALL + 32 AS col2, CASE + 66 WHEN - 34 THEN NULL ELSE + + 80 + - COUNT( * ) END AS col1
----
32
79

skipif mysql # not compatible
query II rowsort label-9156
SELECT ALL + 32 AS col2, CASE + 66 WHEN - 34 THEN NULL ELSE + + 80 + - COUNT ( * ) END AS col1
----
32
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9157
SELECT ALL - COUNT( * ) * + 32 DIV + ( + ( COUNT( * ) ) ) - - 58 AS col0, + 73
----
26
73

skipif mysql # not compatible
query II rowsort label-9157
SELECT ALL - COUNT ( * ) * + 32 / + ( + ( COUNT ( * ) ) ) - - 58 AS col0, + 73
----
26
73

onlyif mysql # aggregate syntax: 
query II rowsort label-9158
SELECT ALL + 42, + 69 + + - COUNT( * ) col0
----
42
68

skipif mysql # not compatible
query II rowsort label-9158
SELECT ALL + 42, + 69 + + - COUNT ( * ) col0
----
42
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9159
SELECT DISTINCT COUNT( * ) * - - COUNT( * ) - 90 + + CASE - ( + CAST( NULL AS SIGNED ) ) WHEN + COUNT( * ) THEN - 35 * - 90 + - - 82 + 0 + 4 - - 68 / 58 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9159
SELECT DISTINCT COUNT ( * ) * - - COUNT ( * ) - 90 + + CASE - ( + CAST ( NULL AS INTEGER ) ) WHEN + COUNT ( * ) THEN - 35 * - 90 + - - 82 + 0 + 4 - - 68 / 58 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9160
SELECT + COALESCE ( - - COUNT( * ), 64 DIV CAST( - 73 AS SIGNED ) - ( + 61 ) DIV - SUM( DISTINCT - ( + + 16 ) ) * - - 32 ) * + 99 AS col2
----
99

skipif mysql # not compatible
query I rowsort label-9160
SELECT + COALESCE ( - - COUNT ( * ), 64 / CAST ( - 73 AS INTEGER ) - ( + 61 ) / - SUM ( DISTINCT - ( + + 16 ) ) * - - 32 ) * + 99 AS col2
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9161
SELECT COALESCE ( CAST( NULL AS SIGNED ), - - COALESCE ( + + 52, + 20 ) * - - COALESCE ( - - 98, - 57 + + 49 ) + + COUNT( * ) DIV + NULLIF ( - + 23, - - 0 * - 82 DIV - + 20 + + CASE + 8 WHEN - CASE - + 23 WHEN + COALESCE ( + + 42, - 96 + - 70, + - CASE - - CAST( NULL AS SIGNED ) WHEN + - 33 + - MIN( ALL + 77 ) THEN + - CASE - 89 WHEN + 87 + - 55 THEN ( 23 ) END END + - 3 ) THEN NULL WHEN + COUNT( * ) * 56 * - COUNT( * ) THEN - ( - ( + + 95 ) ) ELSE + 47 END + - + COUNT( * ) + 77 THEN - COUNT( * ) * 0 WHEN ( + COALESCE ( - MAX( ALL + 69 ), - 88 ) ) THEN + 49 WHEN 88 + + 76 THEN ( - COUNT( ALL 29 ) ) ELSE NULL END * + 38 ) + - 21 )
----
5075

skipif mysql # not compatible
query I rowsort label-9161
SELECT COALESCE ( CAST ( NULL AS INTEGER ), - - COALESCE ( + + 52, + 20 ) * - - COALESCE ( - - 98, - 57 + + 49 ) + + COUNT ( * ) / + NULLIF ( - + 23, - - 0 * - 82 / - + 20 + + CASE + 8 WHEN - CASE - + 23 WHEN + COALESCE ( + + 42, - 96 + - 70, + - CASE - - CAST ( NULL AS INTEGER ) WHEN + - 33 + - MIN ( ALL + 77 ) THEN + - CASE - 89 WHEN + 87 + - 55 THEN ( 23 ) END END + - 3 ) THEN NULL WHEN + COUNT ( * ) * 56 * - COUNT ( * ) THEN - ( - ( + + 95 ) ) ELSE + 47 END + - + COUNT ( * ) + 77 THEN - COUNT ( * ) * 0 WHEN ( + COALESCE ( - MAX ( ALL + 69 ), - 88 ) ) THEN + 49 WHEN 88 + + 76 THEN ( - COUNT ( ALL 29 ) ) ELSE NULL END * + 38 ) + - 21 )
----
5075

query I rowsort
SELECT ALL + 14 * + NULLIF ( + 78, + 78 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9163
SELECT DISTINCT + 5 * + COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-9163
SELECT DISTINCT + 5 * + COUNT ( * )
----
5

query I rowsort
SELECT 14 * - 44 + - 95
----
-711

onlyif mysql # DIV for integer division: 
query I rowsort label-9165
SELECT - 61 DIV - + 40
----
1

skipif mysql # not compatible
query I rowsort label-9165
SELECT - 61 / - + 40
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9166
SELECT ALL + COUNT( * ) * - + COALESCE ( + CAST( NULL AS SIGNED ), 35 - + - CASE + 85 WHEN + SUM( + + 13 ) THEN - CASE CASE AVG ( 91 ) WHEN - 92 THEN AVG ( DISTINCT + 16 ) WHEN + 61 * + ( - 28 ) + - + 65 + - - 2 * NULLIF ( - COALESCE ( - 10, 80 ), - 68 + 68 ) + + 1 THEN COALESCE ( NULLIF ( - 49, 86 * + 3 + - 58 ), - 51, 3 ) + + 32 WHEN 99 THEN NULL END WHEN 35 + AVG ( DISTINCT - 81 ) THEN NULL ELSE - 36 END WHEN - 0 THEN NULL END * - 16 * 60 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9166
SELECT ALL + COUNT ( * ) * - + COALESCE ( + CAST ( NULL AS INTEGER ), 35 - + - CASE + 85 WHEN + SUM ( + + 13 ) THEN - CASE CASE AVG ( 91 ) WHEN - 92 THEN AVG ( DISTINCT + 16 ) WHEN + 61 * + ( - 28 ) + - + 65 + - - 2 * NULLIF ( - COALESCE ( - 10, 80 ), - 68 + 68 ) + + 1 THEN COALESCE ( NULLIF ( - 49, 86 * + 3 + - 58 ), - 51, 3 ) + + 32 WHEN 99 THEN NULL END WHEN 35 + AVG ( DISTINCT - 81 ) THEN NULL ELSE - 36 END WHEN - 0 THEN NULL END * - 16 * 60 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9167
SELECT - 54 + + ( + 60 ) + + 23 DIV 71 * + + COUNT( * ) * + COUNT( * ) DIV - + 20 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-9167
SELECT - 54 + + ( + 60 ) + + 23 / 71 * + + COUNT ( * ) * + COUNT ( * ) / - + 20 AS col2
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9168
SELECT ALL CAST( NULL AS SIGNED ) / - COALESCE ( 18, - 2 + + 31, 23 + - ( 34 ), + + 64 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9168
SELECT ALL CAST ( NULL AS INTEGER ) / - COALESCE ( 18, - 2 + + 31, 23 + - ( 34 ), + + 64 ) AS col2
----
NULL

query I rowsort
SELECT - - 66 * - 64 AS col0
----
-4224

onlyif mysql # aggregate syntax: 
query I rowsort label-9170
SELECT - 54 + 4 + - - 53 * - 58 - - COUNT( * ) AS col2
----
-3123

skipif mysql # not compatible
query I rowsort label-9170
SELECT - 54 + 4 + - - 53 * - 58 - - COUNT ( * ) AS col2
----
-3123

onlyif mysql # aggregate syntax: 
query I rowsort label-9171
SELECT - + 91 * - COUNT( * ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-9171
SELECT - + 91 * - COUNT ( * ) AS col2
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-9172
SELECT DISTINCT + 27 DIV 83 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9172
SELECT DISTINCT + 27 / 83 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9173
SELECT - NULLIF ( 40, - + 88 ) DIV - + CAST( - COUNT( * ) AS SIGNED ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-9173
SELECT - NULLIF ( 40, - + 88 ) / - + CAST ( - COUNT ( * ) AS INTEGER ) AS col1
----
-40

query I rowsort
SELECT + 81 + - 8
----
73

query I rowsort
SELECT - 25 * + 5 * - 30 AS col1
----
3750

query I rowsort
SELECT + + 9 + - 71 * 65
----
-4606

onlyif mysql # aggregate syntax: 
query I rowsort label-9177
SELECT DISTINCT + COUNT( * ) * + 9
----
9

skipif mysql # not compatible
query I rowsort label-9177
SELECT DISTINCT + COUNT ( * ) * + 9
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-9178
SELECT ALL - 34 + - 35 * - - 86 * COUNT( * ) + + NULLIF ( - - 99, ( 29 ) ), - 31 AS col2
----
-2945
-31

skipif mysql # not compatible
query II rowsort label-9178
SELECT ALL - 34 + - 35 * - - 86 * COUNT ( * ) + + NULLIF ( - - 99, ( 29 ) ), - 31 AS col2
----
-2945
-31

query I rowsort
SELECT ALL + 76 * 22 AS col2
----
1672

onlyif mysql # aggregate syntax: 
query I rowsort label-9180
SELECT - COUNT( DISTINCT - + ( - ( + 93 ) ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9180
SELECT - COUNT ( DISTINCT - + ( - ( + 93 ) ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9181
SELECT ALL - 84 + SUM( - 52 ) + + 21 AS col0
----
-115

skipif mysql # not compatible
query I rowsort label-9181
SELECT ALL - 84 + SUM ( - 52 ) + + 21 AS col0
----
-115

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9182
SELECT - 27, + CAST( + 39 AS SIGNED ) AS col1
----
-27
39

skipif mysql # not compatible
query II rowsort label-9182
SELECT - 27, + CAST ( + 39 AS INTEGER ) AS col1
----
-27
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9183
SELECT - + COUNT( * ) AS col2, + ( - 35 ) DIV 89 DIV - - 75 + 98
----
-1
98

skipif mysql # not compatible
query II rowsort label-9183
SELECT - + COUNT ( * ) AS col2, + ( - 35 ) / 89 / - - 75 + 98
----
-1
98

onlyif mysql # aggregate syntax: 
query II rowsort label-9184
SELECT - + 4 * MAX( DISTINCT - + 92 ) col1, + ( - ( - COUNT( * ) ) ) - - 86 - - COUNT( DISTINCT + 85 ) * 55 AS col2
----
368
142

skipif mysql # not compatible
query II rowsort label-9184
SELECT - + 4 * MAX ( DISTINCT - + 92 ) col1, + ( - ( - COUNT ( * ) ) ) - - 86 - - COUNT ( DISTINCT + 85 ) * 55 AS col2
----
368
142

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9185
SELECT ALL 67 + CAST( - + CAST( - 11 AS SIGNED ) AS SIGNED )
----
78

skipif mysql # not compatible
query I rowsort label-9185
SELECT ALL 67 + CAST ( - + CAST ( - 11 AS INTEGER ) AS INTEGER )
----
78

query II rowsort
SELECT - 0 AS col2, 18 AS col0
----
0
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9187
SELECT ALL 80 + - NULLIF ( + 53, SUM( 10 ) ) col0
----
27

skipif mysql # not compatible
query I rowsort label-9187
SELECT ALL 80 + - NULLIF ( + 53, SUM ( 10 ) ) col0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9188
SELECT DISTINCT COUNT( * ) + + 24
----
25

skipif mysql # not compatible
query I rowsort label-9188
SELECT DISTINCT COUNT ( * ) + + 24
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-9189
SELECT DISTINCT 15 DIV + 13 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9189
SELECT DISTINCT 15 / + 13 AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9190
SELECT + CAST( - 46 AS SIGNED ) + + - 69 + - + 21 AS col2
----
-136

skipif mysql # not compatible
query I rowsort label-9190
SELECT + CAST ( - 46 AS INTEGER ) + + - 69 + - + 21 AS col2
----
-136

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9191
SELECT + 97 DIV MIN( ALL + - 51 )
----
-1

skipif mysql # not compatible
query I rowsort label-9191
SELECT + 97 / MIN ( ALL + - 51 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9192
SELECT ALL + 97 DIV - 46 - - 17 col2
----
15

skipif mysql # not compatible
query I rowsort label-9192
SELECT ALL + 97 / - 46 - - 17 col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9193
SELECT + CASE COUNT( * ) WHEN - - AVG ( 17 ) - + + 77 THEN AVG ( DISTINCT - ( + 70 ) ) * + 12 - - - 30 + - 53 + + 28 + - 8 * - 68 END * 77 * + 0 / - - 53
----
NULL

skipif mysql # not compatible
query I rowsort label-9193
SELECT + CASE COUNT ( * ) WHEN - - AVG ( 17 ) - + + 77 THEN AVG ( DISTINCT - ( + 70 ) ) * + 12 - - - 30 + - 53 + + 28 + - 8 * - 68 END * 77 * + 0 / - - 53
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9194
SELECT 28 * 39 * - + 78 + + 73 - - COUNT( + - 3 ) + NULLIF ( + CASE 78 WHEN + 10 THEN - - ( + 30 ) + 54 + + 37 + CASE + 81 WHEN + 47 * 18 + + ( - 71 ) THEN - NULLIF ( + + 91, + 30 ) * 62 * ( + + 11 ) * NULLIF ( 61, - 16 ) - + 16 END * - 16 ELSE - 60 END, - - COUNT( * ) * - ( 24 ) + - 41 + - 46 ) - - 52 AS col0
----
-85110

skipif mysql # not compatible
query I rowsort label-9194
SELECT 28 * 39 * - + 78 + + 73 - - COUNT ( + - 3 ) + NULLIF ( + CASE 78 WHEN + 10 THEN - - ( + 30 ) + 54 + + 37 + CASE + 81 WHEN + 47 * 18 + + ( - 71 ) THEN - NULLIF ( + + 91, + 30 ) * 62 * ( + + 11 ) * NULLIF ( 61, - 16 ) - + 16 END * - 16 ELSE - 60 END, - - COUNT ( * ) * - ( 24 ) + - 41 + - 46 ) - - 52 AS col0
----
-85110

query I rowsort
SELECT DISTINCT + 48 col0
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-9196
SELECT + 55 * + 6, 52 * 40 * - COUNT( * ) AS col2
----
330
-2080

skipif mysql # not compatible
query II rowsort label-9196
SELECT + 55 * + 6, 52 * 40 * - COUNT ( * ) AS col2
----
330
-2080

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9197
SELECT DISTINCT + CASE WHEN NOT ( NULL ) IS NULL THEN - CAST( 87 AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9197
SELECT DISTINCT + CASE WHEN NOT ( NULL ) IS NULL THEN - CAST ( 87 AS INTEGER ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9198
SELECT DISTINCT - COUNT( + - 35 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9198
SELECT DISTINCT - COUNT ( + - 35 ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9199
SELECT DISTINCT + + 33 * 21 + - 77 + - CAST( 12 AS SIGNED ) DIV - 47 AS col1
----
616

skipif mysql # not compatible
query I rowsort label-9199
SELECT DISTINCT + + 33 * 21 + - 77 + - CAST ( 12 AS INTEGER ) / - 47 AS col1
----
616

onlyif mysql # aggregate syntax: 
query I rowsort label-9200
SELECT ALL + + 83 * - COUNT( * ) - - 14 AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-9200
SELECT ALL + + 83 * - COUNT ( * ) - - 14 AS col2
----
-69

query II rowsort
SELECT ALL + + 58 + + 47, - 10 + + 44 col0
----
105
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9202
SELECT DISTINCT - ( + COUNT( * ) ) * CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9202
SELECT DISTINCT - ( + COUNT ( * ) ) * CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9203
SELECT ALL - 74 + + - MAX( 3 ) DIV + COUNT( * ) AS col0, + 62 * 59 * - 52 + 35 AS col0
----
-77
-190181

skipif mysql # not compatible
query II rowsort label-9203
SELECT ALL - 74 + + - MAX ( 3 ) / + COUNT ( * ) AS col0, + 62 * 59 * - 52 + 35 AS col0
----
-77
-190181

query I rowsort
SELECT ALL + 63 + + ( - 34 ) + 40 * - 89 * - 72 AS col2
----
256349

onlyif mysql # aggregate syntax: 
query I rowsort label-9205
SELECT DISTINCT - + COUNT( * ) + - - 63 AS col1
----
62

skipif mysql # not compatible
query I rowsort label-9205
SELECT DISTINCT - + COUNT ( * ) + - - 63 AS col1
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-9206
SELECT + 45 DIV + 61 * + 45 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9206
SELECT + 45 / + 61 * + 45 AS col1
----
0

query I rowsort
SELECT ALL + 83 + - 17
----
66

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9208
SELECT ALL NULLIF ( + COUNT( * ), - + 71 * + 28 + 70 + + COUNT( * ) + - COUNT( * ) * + 74 * 55 * + 33 / + CAST( NULL AS DECIMAL ) )
----
1

skipif mysql # not compatible
query I rowsort label-9208
SELECT ALL NULLIF ( + COUNT ( * ), - + 71 * + 28 + 70 + + COUNT ( * ) + - COUNT ( * ) * + 74 * 55 * + 33 / + CAST ( NULL AS REAL ) )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9209
SELECT DISTINCT - - ( + 87 ) DIV 83
----
1

skipif mysql # not compatible
query I rowsort label-9209
SELECT DISTINCT - - ( + 87 ) / 83
----
1

query I rowsort
SELECT - 12 + + 96
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-9211
SELECT - 81 DIV 52 + + + 61 DIV ( 61 ) DIV - 67 + - 75 AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-9211
SELECT - 81 / 52 + + + 61 / ( 61 ) / - 67 + - 75 AS col1
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9212
SELECT ALL - COALESCE ( - MIN( ALL + 57 ), 97 DIV - 26 + + 61 + - - 78 * - 11, ( - 36 ), 87 + + CAST( 69 AS SIGNED ) ) + 57 AS col0
----
114

skipif mysql # not compatible
query I rowsort label-9212
SELECT ALL - COALESCE ( - MIN ( ALL + 57 ), 97 / - 26 + + 61 + - - 78 * - 11, ( - 36 ), 87 + + CAST ( 69 AS INTEGER ) ) + 57 AS col0
----
114

query I rowsort
SELECT + 21 * - 45
----
-945

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9214
SELECT - CAST( ( - - AVG ( + 54 ) ) AS SIGNED ) * - - 23 AS col2
----
-1242

skipif mysql # not compatible
query I rowsort label-9214
SELECT - CAST ( ( - - AVG ( + 54 ) ) AS INTEGER ) * - - 23 AS col2
----
-1242

query I rowsort
SELECT 73 + - 90
----
-17

query I rowsort
SELECT + 48 + 14 * 80
----
1168

query I rowsort
SELECT ALL - + 74 + + 27
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9218
SELECT + 61 + - 69 + + - 1 * 59 * 16 DIV + COUNT( * )
----
-952

skipif mysql # not compatible
query I rowsort label-9218
SELECT + 61 + - 69 + + - 1 * 59 * 16 / + COUNT ( * )
----
-952

onlyif mysql # aggregate syntax: 
query I rowsort label-9219
SELECT ALL + 58 - ( + - MIN( - 34 ) )
----
24

skipif mysql # not compatible
query I rowsort label-9219
SELECT ALL + 58 - ( + - MIN ( - 34 ) )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9220
SELECT ALL MAX( + - 34 ) * COUNT( * )
----
-34

skipif mysql # not compatible
query I rowsort label-9220
SELECT ALL MAX ( + - 34 ) * COUNT ( * )
----
-34

query I rowsort
SELECT DISTINCT + 49 * + ( - 30 ) AS col2
----
-1470

query I rowsort
SELECT ALL 39 - + + 64
----
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9223
SELECT NULLIF ( 60, MIN( + 58 ) ) + + 14 DIV 52 AS col1
----
60

skipif mysql # not compatible
query I rowsort label-9223
SELECT NULLIF ( 60, MIN ( + 58 ) ) + + 14 / 52 AS col1
----
60

query I rowsort
SELECT ALL + 32 * 98
----
3136

onlyif mysql # aggregate syntax: 
query II rowsort label-9225
SELECT - 40 AS col0, CASE 73 WHEN - - 10 THEN - COUNT( * ) END / - 6 AS col2
----
-40
NULL

skipif mysql # not compatible
query II rowsort label-9225
SELECT - 40 AS col0, CASE 73 WHEN - - 10 THEN - COUNT ( * ) END / - 6 AS col2
----
-40
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9226
SELECT CAST( NULL AS SIGNED ) + - ( 40 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9226
SELECT CAST ( NULL AS INTEGER ) + - ( 40 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9227
SELECT CAST( NULL AS SIGNED ) * + ( - 20 ) * - COUNT( * ) * + CAST( NULL AS SIGNED ) * + COUNT( * ) + + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-9227
SELECT CAST ( NULL AS INTEGER ) * + ( - 20 ) * - COUNT ( * ) * + CAST ( NULL AS INTEGER ) * + COUNT ( * ) + + 88
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9228
SELECT - COUNT( * ) DIV - - 23 + - ( 3 ) col0
----
-3

skipif mysql # not compatible
query I rowsort label-9228
SELECT - COUNT ( * ) / - - 23 + - ( 3 ) col0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9229
SELECT ALL - COALESCE ( - 15, 36 - + ( + MAX( ALL 35 ) ) + 77 DIV + 13 + + - 50 + + COUNT( * ) )
----
15

skipif mysql # not compatible
query I rowsort label-9229
SELECT ALL - COALESCE ( - 15, 36 - + ( + MAX ( ALL 35 ) ) + 77 / + 13 + + - 50 + + COUNT ( * ) )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9230
SELECT ALL 49 * - COUNT( * ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-9230
SELECT ALL 49 * - COUNT ( * ) AS col2
----
-49

query I rowsort
SELECT 22 * - - 85 AS col2
----
1870

query I rowsort
SELECT DISTINCT 84 * + 22
----
1848

query I rowsort
SELECT ALL 96 * - + 29 * + + 7
----
-19488

onlyif mysql # DIV for integer division: 
query I rowsort label-9234
SELECT 12 DIV - 15
----
0

skipif mysql # not compatible
query I rowsort label-9234
SELECT 12 / - 15
----
0

query I rowsort
SELECT 47 * 23
----
1081

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9236
SELECT DISTINCT 31 + + 12 * - 23 DIV + ( - 22 ) + - COUNT( * )
----
42

skipif mysql # not compatible
query I rowsort label-9236
SELECT DISTINCT 31 + + 12 * - 23 / + ( - 22 ) + - COUNT ( * )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9237
SELECT ALL ( + CASE 86 WHEN 70 * + 56 THEN + - 46 END ) * + 49 - - NULLIF ( + + 12, - 35 + + 66 ) + + 44 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9237
SELECT ALL ( + CASE 86 WHEN 70 * + 56 THEN + - 46 END ) * + 49 - - NULLIF ( + + 12, - 35 + + 66 ) + + 44 * COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9238
SELECT - CAST( - 92 AS SIGNED ) * 86
----
7912

skipif mysql # not compatible
query I rowsort label-9238
SELECT - CAST ( - 92 AS INTEGER ) * 86
----
7912

query II rowsort
SELECT DISTINCT - - 28, 71 + 43 + 84 AS col2
----
28
198

query I rowsort
SELECT ALL - 78 + + 68 col1
----
-10

query I rowsort
SELECT + 10 * + + 25 + + - CASE - 67 WHEN + - 95 + + - 21 - - 0 THEN - 48 + - 47 + 89 + 81 ELSE - - 0 END + + 24 * 52
----
1498

onlyif mysql # aggregate syntax: 
query I rowsort label-9242
SELECT ALL + COUNT( * ) * + 56
----
56

skipif mysql # not compatible
query I rowsort label-9242
SELECT ALL + COUNT ( * ) * + 56
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9243
SELECT - 22 * + 69 * 23 * + + 84 + + 11 / + 38 * + 41 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9243
SELECT - 22 * + 69 * 23 * + + 84 + + 11 / + 38 * + 41 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9244
SELECT DISTINCT + 87 + + + COUNT( DISTINCT - + 86 )
----
88

skipif mysql # not compatible
query I rowsort label-9244
SELECT DISTINCT + 87 + + + COUNT ( DISTINCT - + 86 )
----
88

query I rowsort
SELECT DISTINCT - + 95 col1
----
-95

query I rowsort
SELECT ALL 99 + 24 col2
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-9247
SELECT ALL + + MAX( DISTINCT + 94 ) * + - SUM( ALL 62 ) * - - 87
----
-507036

skipif mysql # not compatible
query I rowsort label-9247
SELECT ALL + + MAX ( DISTINCT + 94 ) * + - SUM ( ALL 62 ) * - - 87
----
-507036

query I rowsort
SELECT ALL + 37 + + 58 AS col0
----
95

query I rowsort
SELECT + 52 + 62
----
114

query II rowsort
SELECT DISTINCT + 26 + ( + 88 ), + 80 col1
----
114
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9251
SELECT + COUNT( * ) * + - 22 + - 3 * 16 + + 55
----
-15

skipif mysql # not compatible
query I rowsort label-9251
SELECT + COUNT ( * ) * + - 22 + - 3 * 16 + + 55
----
-15

query I rowsort
SELECT ALL - 51 + + 79 col2
----
28

query I rowsort
SELECT ALL - 93 * - ( + ( + 51 ) )
----
4743

query I rowsort
SELECT + NULLIF ( + - 53, - 72 + - 41 ) AS col2
----
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-9255
SELECT + 79 + - 17 + - + COUNT( * ) * - 47 * COUNT( * ), - 19 + - 59 AS col2
----
109
-78

skipif mysql # not compatible
query II rowsort label-9255
SELECT + 79 + - 17 + - + COUNT ( * ) * - 47 * COUNT ( * ), - 19 + - 59 AS col2
----
109
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9256
SELECT + 18 * - + COALESCE ( + 61, + - COALESCE ( - MIN( ALL - + 77 ), + 71 + CASE - 90 WHEN + 45 THEN NULL ELSE + NULLIF ( 17, - 58 * + 61 + - - MIN( + CAST( NULL AS SIGNED ) ) + - 59 + - + 95 * 32 ) DIV 75 + - - 5 - + 94 END, + 56 * + 44 + + 13 ) + + 84 * CAST( - ( + - 17 ) AS SIGNED ), + NULLIF ( + 43, - 35 * - + ( - 1 ) * + ( - NULLIF ( + 41, 1 ) ) - + - ( - ( - + ( AVG ( 67 ) ) ) ) * - ( + - COUNT( * ) ) + - COUNT( * ) ) ) * + 83
----
-91134

skipif mysql # not compatible
query I rowsort label-9256
SELECT + 18 * - + COALESCE ( + 61, + - COALESCE ( - MIN ( ALL - + 77 ), + 71 + CASE - 90 WHEN + 45 THEN NULL ELSE + NULLIF ( 17, - 58 * + 61 + - - MIN ( + CAST ( NULL AS INTEGER ) ) + - 59 + - + 95 * 32 ) / 75 + - - 5 - + 94 END, + 56 * + 44 + + 13 ) + + 84 * CAST ( - ( + - 17 ) AS INTEGER ), + NULLIF ( + 43, - 35 * - + ( - 1 ) * + ( - NULLIF ( + 41, 1 ) ) - + - ( - ( - + ( AVG ( 67 ) ) ) ) * - ( + - COUNT ( * ) ) + - COUNT ( * ) ) ) * + 83
----
-91134

query I rowsort
SELECT ( + 4 ) AS col0
----
4

query I rowsort
SELECT ALL - 32 * + + 15 + 8 AS col0
----
-472

onlyif mysql # aggregate syntax: 
query I rowsort label-9259
SELECT ALL - - 38 - COUNT( * ) - - - 65 * - - CASE - - 90 WHEN - 91 THEN - NULLIF ( 71, 83 ) WHEN 5 * + ( + + 76 ) * - 91 / + 96 + + 95 + - - 55 * + 16 + 39 THEN NULL END + 74 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9259
SELECT ALL - - 38 - COUNT ( * ) - - - 65 * - - CASE - - 90 WHEN - 91 THEN - NULLIF ( 71, 83 ) WHEN 5 * + ( + + 76 ) * - 91 / + 96 + + 95 + - - 55 * + 16 + 39 THEN NULL END + 74 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9260
SELECT DISTINCT - 99 * + CASE - MIN( DISTINCT - 32 ) WHEN + 66 + - 20 THEN 39 + + 9 END * 79 * + 2 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9260
SELECT DISTINCT - 99 * + CASE - MIN ( DISTINCT - 32 ) WHEN + 66 + - 20 THEN 39 + + 9 END * 79 * + 2 col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9261
SELECT DISTINCT - ( + - ( - 37 ) ) DIV - + 4
----
9

skipif mysql # not compatible
query I rowsort label-9261
SELECT DISTINCT - ( + - ( - 37 ) ) / - + 4
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9262
SELECT ALL MIN( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9262
SELECT ALL MIN ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9263
SELECT 87 * - NULLIF ( - COUNT( * ), - CAST( + - 90 AS SIGNED ) ) * - COALESCE ( + - 35, - COUNT( * ) ) / + CAST( - 42 AS SIGNED ) + + - 73 + + + 33 - + CAST( NULL AS SIGNED ) + + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-9263
SELECT 87 * - NULLIF ( - COUNT ( * ), - CAST ( + - 90 AS INTEGER ) ) * - COALESCE ( + - 35, - COUNT ( * ) ) / + CAST ( - 42 AS INTEGER ) + + - 73 + + + 33 - + CAST ( NULL AS INTEGER ) + + 56
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9264
SELECT 90 * - 21 AS col1, 32 - - 75 + COUNT( * ) * - 30 DIV + + 42
----
-1890
107

skipif mysql # not compatible
query II rowsort label-9264
SELECT 90 * - 21 AS col1, 32 - - 75 + COUNT ( * ) * - 30 / + + 42
----
-1890
107

onlyif mysql # DIV for integer division: 
query I rowsort label-9265
SELECT 32 DIV + + ( - + 51 )
----
0

skipif mysql # not compatible
query I rowsort label-9265
SELECT 32 / + + ( - + 51 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9266
SELECT ALL SUM( ALL + 61 ) AS col1, 51 * + 94 AS col2
----
61
4794

skipif mysql # not compatible
query II rowsort label-9266
SELECT ALL SUM ( ALL + 61 ) AS col1, 51 * + 94 AS col2
----
61
4794

onlyif mysql # aggregate syntax: 
query I rowsort label-9267
SELECT 6 - + - 19 * + 78 + + SUM( + + 42 ) * - + 63
----
-1158

skipif mysql # not compatible
query I rowsort label-9267
SELECT 6 - + - 19 * + 78 + + SUM ( + + 42 ) * - + 63
----
-1158

onlyif mysql # DIV for integer division: 
query I rowsort label-9268
SELECT DISTINCT - 73 DIV + 36 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-9268
SELECT DISTINCT - 73 / + 36 AS col2
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9269
SELECT DISTINCT - CAST( 19 AS SIGNED ) * - + 56 + + - 98
----
966

skipif mysql # not compatible
query I rowsort label-9269
SELECT DISTINCT - CAST ( 19 AS INTEGER ) * - + 56 + + - 98
----
966

onlyif mysql # aggregate syntax: 
query II rowsort label-9270
SELECT - 53, + ( NULLIF ( - 82, + ( 26 ) ) ) + + 99 * + COUNT( * ) AS col2
----
-53
17

skipif mysql # not compatible
query II rowsort label-9270
SELECT - 53, + ( NULLIF ( - 82, + ( 26 ) ) ) + + 99 * + COUNT ( * ) AS col2
----
-53
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9271
SELECT DISTINCT MIN( DISTINCT + ( - 16 ) ) AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-9271
SELECT DISTINCT MIN ( DISTINCT + ( - 16 ) ) AS col1
----
-16

query I rowsort
SELECT ALL - 1 * - 19 * - 82 * - ( 43 ) AS col0
----
66994

onlyif mysql # DIV for integer division: 
query I rowsort label-9273
SELECT - 41 DIV 54 DIV - ( - 15 ) + - + ( 47 ) * - 18
----
846

skipif mysql # not compatible
query I rowsort label-9273
SELECT - 41 / 54 / - ( - 15 ) + - + ( 47 ) * - 18
----
846

query I rowsort
SELECT - 54 * + - 30 * 23 - + 81 * + 72
----
31428

query III rowsort
SELECT ALL + 86 AS col0, - 25 + - - 10 * 72, - 5 AS col1
----
86
695
-5

query I rowsort
SELECT NULLIF ( + 12, - 92 ) AS col2
----
12

query I rowsort
SELECT + 1 * + + 32 AS col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9278
SELECT ALL - 49 * - COUNT( * ) + + 47 - + 25 + - 78
----
-7

skipif mysql # not compatible
query I rowsort label-9278
SELECT ALL - 49 * - COUNT ( * ) + + 47 - + 25 + - 78
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9279
SELECT ALL 79 * - + CAST( NULL AS SIGNED ) + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9279
SELECT ALL 79 * - + CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT NULLIF ( 66, + COALESCE ( + + 13, + + 44 ) )
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9281
SELECT + 20 / - + CAST( NULL AS SIGNED ) + - ( - 65 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9281
SELECT + 20 / - + CAST ( NULL AS INTEGER ) + - ( - 65 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 99 * - ( 50 ) AS col2
----
4950

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9283
SELECT ALL - + 33 * + + 83 + + 75 + CAST( NULL AS SIGNED ) + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-9283
SELECT ALL - + 33 * + + 83 + + 75 + CAST ( NULL AS INTEGER ) + 52
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9284
SELECT DISTINCT - SUM( DISTINCT - COALESCE ( - 79, - 8 * - + 30 * - 14 + + 34 ) ) * + MIN( DISTINCT + 79 ) * + 56 + + 56
----
-349440

skipif mysql # not compatible
query I rowsort label-9284
SELECT DISTINCT - SUM ( DISTINCT - COALESCE ( - 79, - 8 * - + 30 * - 14 + + 34 ) ) * + MIN ( DISTINCT + 79 ) * + 56 + + 56
----
-349440

query II rowsort
SELECT ALL + + 10 AS col0, 44 * 92 AS col1
----
10
4048

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9286
SELECT + + CAST( NULL AS SIGNED ) * + 89 + + 66 * + + ( 94 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9286
SELECT + + CAST ( NULL AS INTEGER ) * + 89 + + 66 * + + ( 94 ) AS col0
----
NULL

query II rowsort
SELECT ALL + - 33, - 76 AS col1
----
-33
-76

query I rowsort
SELECT + 90 * + 84 + + 57 - - 30 * 99 AS col0
----
10587

query II rowsort
SELECT + + 70 AS col0, - 52 + 23 AS col1
----
70
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-9290
SELECT + + 67 DIV - 18 - + 23 AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-9290
SELECT + + 67 / - 18 - + 23 AS col0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-9291
SELECT DISTINCT - COUNT( * ) * + + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-9291
SELECT DISTINCT - COUNT ( * ) * + + COUNT ( * )
----
-1

query I rowsort
SELECT ALL - ( + 76 ) - - - 41 AS col2
----
-117

query II rowsort
SELECT ALL 58, 85 AS col1
----
58
85

query I rowsort
SELECT DISTINCT 17 - - ( + - ( 91 ) ) + + 12
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9295
SELECT + + 84 - + COUNT( DISTINCT + 25 ) - + + 95 + - COUNT( DISTINCT 42 ) * + + 69 + - ( - 68 ) - - + CAST( + - 12 AS SIGNED ) * - - 29 * + - 55
----
19127

skipif mysql # not compatible
query I rowsort label-9295
SELECT + + 84 - + COUNT ( DISTINCT + 25 ) - + + 95 + - COUNT ( DISTINCT 42 ) * + + 69 + - ( - 68 ) - - + CAST ( + - 12 AS INTEGER ) * - - 29 * + - 55
----
19127

onlyif mysql # aggregate syntax: 
query I rowsort label-9296
SELECT - 80 * COUNT( ALL 97 ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-9296
SELECT - 80 * COUNT ( ALL 97 ) AS col0
----
-80

query I rowsort
SELECT + 92 + 41 * - - CASE - 59 WHEN + 19 THEN - 47 WHEN - - 91 THEN NULL WHEN AVG ( - 91 ) THEN NULL ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT + 9 * - 28
----
-252

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9299
SELECT DISTINCT 21 * - + COUNT( * ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9299
SELECT DISTINCT 21 * - + COUNT ( * ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9300
SELECT - 50 * + COUNT( * )
----
-50

skipif mysql # not compatible
query I rowsort label-9300
SELECT - 50 * + COUNT ( * )
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9301
SELECT ALL - AVG ( - 49 ) * 91 * 92 / 7 + + 55 / + 47 * + MIN( + 64 ) * + 40 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9301
SELECT ALL - AVG ( - 49 ) * 91 * 92 / 7 + + 55 / + 47 * + MIN ( + 64 ) * + 40 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + 62 + - 48 AS col2
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-9303
SELECT - 14 + - MAX( ALL - 85 ) col1, 65 * - + 53
----
71
-3445

skipif mysql # not compatible
query II rowsort label-9303
SELECT - 14 + - MAX ( ALL - 85 ) col1, 65 * - + 53
----
71
-3445

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9304
SELECT ALL COUNT( * ) + + 72 + + ( + + 49 ) * - + 80 + - + 34 + 24 * - 23 + 28 * + 87 + + - ( - + 0 ) + - 68 + + 89 DIV ( + COUNT( * ) ) AS col1
----
-1976

skipif mysql # not compatible
query I rowsort label-9304
SELECT ALL COUNT ( * ) + + 72 + + ( + + 49 ) * - + 80 + - + 34 + 24 * - 23 + 28 * + 87 + + - ( - + 0 ) + - 68 + + 89 / ( + COUNT ( * ) ) AS col1
----
-1976

query I rowsort
SELECT ALL COALESCE ( - - 79, + 66 )
----
79

query I rowsort
SELECT DISTINCT + ( + 6 ) + + + 68
----
74

query I rowsort
SELECT + 78 * 95 AS col2
----
7410

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9308
SELECT - SUM( DISTINCT + CAST( NULL AS SIGNED ) ) + + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-9308
SELECT - SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) + + 66
----
NULL

query I rowsort
SELECT DISTINCT COALESCE ( + - 89, - 44 + - + 19 )
----
-89

query I rowsort
SELECT DISTINCT + 24 + 62 AS col0
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-9311
SELECT ALL - ( + ( - + 84 ) ) + + 28 DIV - 82
----
84

skipif mysql # not compatible
query I rowsort label-9311
SELECT ALL - ( + ( - + 84 ) ) + + 28 / - 82
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9312
SELECT ALL 12 DIV - - 63 + - COALESCE ( + - 21, + COUNT( * ) ) + 55 + - - MIN( ALL + 12 ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-9312
SELECT ALL 12 / - - 63 + - COALESCE ( + - 21, + COUNT ( * ) ) + 55 + - - MIN ( ALL + 12 ) AS col2
----
88

query II rowsort
SELECT ALL + 98 * - 23 AS col2, + 7
----
-2254
7

query I rowsort
SELECT ALL - + 64 * COALESCE ( - 67, + 19 * - 10, + 61 + 7 + + - 37 + - + 33 )
----
4288

query I rowsort
SELECT - ( - + NULLIF ( - 49, - + 67 ) )
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9316
SELECT DISTINCT 39 / - 25 + CAST( NULL AS SIGNED ) + + 36 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9316
SELECT DISTINCT 39 / - 25 + CAST ( NULL AS INTEGER ) + + 36 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9317
SELECT DISTINCT - CAST( 18 AS SIGNED ) * NULLIF ( - - 97, + 58 ) * 58
----
-101268

skipif mysql # not compatible
query I rowsort label-9317
SELECT DISTINCT - CAST ( 18 AS INTEGER ) * NULLIF ( - - 97, + 58 ) * 58
----
-101268

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9318
SELECT - + NULLIF ( + 55, - + COUNT( * ) ) DIV - - 19 + ( + 66 )
----
64

skipif mysql # not compatible
query I rowsort label-9318
SELECT - + NULLIF ( + 55, - + COUNT ( * ) ) / - - 19 + ( + 66 )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9319
SELECT - + COUNT( * ) * - + 47 col2
----
47

skipif mysql # not compatible
query I rowsort label-9319
SELECT - + COUNT ( * ) * - + 47 col2
----
47

query I rowsort
SELECT - + 31 * + 38
----
-1178

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9321
SELECT DISTINCT + + CAST( - 58 AS SIGNED ), COUNT( * ) DIV + 17 - - - 51 * + 89 AS col2
----
-58
-4539

skipif mysql # not compatible
query II rowsort label-9321
SELECT DISTINCT + + CAST ( - 58 AS INTEGER ), COUNT ( * ) / + 17 - - - 51 * + 89 AS col2
----
-58
-4539

query II rowsort
SELECT + 61 * + 66 AS col2, ( + ( - 16 ) )
----
4026
-16

query I rowsort
SELECT + 63 * + - 17 + - 39 * - 86 AS col0
----
2283

query I rowsort
SELECT - 5 - - 50 AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9325
SELECT - + 79 + 26 + - - 55 * - + MAX( 6 ) * COUNT( * )
----
-383

skipif mysql # not compatible
query I rowsort label-9325
SELECT - + 79 + 26 + - - 55 * - + MAX ( 6 ) * COUNT ( * )
----
-383

onlyif mysql # DIV for integer division: 
query I rowsort label-9326
SELECT DISTINCT + + 54 DIV + 27 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-9326
SELECT DISTINCT + + 54 / + 27 AS col0
----
2

query I rowsort
SELECT + 50 + + - 31 + - 90 * 12
----
-1061

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9328
SELECT ALL - 50 * NULLIF ( - 43, 41 ) + + - 59 - - COALESCE ( + 52, - MIN( - 23 ) ) + 51 + + 89 * + 74 * SUM( - - 24 ) * + COALESCE ( + 24, - 63 ) * 82 - - 64 - - CAST( NULL AS SIGNED ) * + - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-9328
SELECT ALL - 50 * NULLIF ( - 43, 41 ) + + - 59 - - COALESCE ( + 52, - MIN ( - 23 ) ) + 51 + + 89 * + 74 * SUM ( - - 24 ) * + COALESCE ( + 24, - 63 ) * 82 - - 64 - - CAST ( NULL AS INTEGER ) * + - 19
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9329
SELECT - 88 * + ( - 20 ) * - + ( ( + - COUNT( + + 47 ) ) ) + + 43 - - + 67 * + + COUNT( DISTINCT - 95 ) * + SUM( DISTINCT - COALESCE ( + 69, - 75 + ( 2 ) - - 28 + - - 14 + + + 15 * - 26 ) ) * 74 + ( - 98 ) + + 52
----
-340345

skipif mysql # not compatible
query I rowsort label-9329
SELECT - 88 * + ( - 20 ) * - + ( ( + - COUNT ( + + 47 ) ) ) + + 43 - - + 67 * + + COUNT ( DISTINCT - 95 ) * + SUM ( DISTINCT - COALESCE ( + 69, - 75 + ( 2 ) - - 28 + - - 14 + + + 15 * - 26 ) ) * 74 + ( - 98 ) + + 52
----
-340345

query I rowsort
SELECT - COALESCE ( 79, - 6, + 82 ) AS col0
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-9331
SELECT + 74 + - COUNT( * ) - - 10 + + + 59 col2
----
142

skipif mysql # not compatible
query I rowsort label-9331
SELECT + 74 + - COUNT ( * ) - - 10 + + + 59 col2
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-9332
SELECT CASE 62 WHEN AVG ( 65 ) THEN NULL WHEN - 97 * + NULLIF ( - 44, MIN( DISTINCT - 11 ) ) THEN + 57 * + 85 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9332
SELECT CASE 62 WHEN AVG ( 65 ) THEN NULL WHEN - 97 * + NULLIF ( - 44, MIN ( DISTINCT - 11 ) ) THEN + 57 * + 85 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9333
SELECT CASE - 99 WHEN - 42 - + COUNT( * ) THEN + 38 WHEN + - ( + + 23 ) * + 27 + CASE + 92 WHEN + - CAST( - CAST( + 25 AS SIGNED ) AS SIGNED ) THEN - 0 ELSE NULL END - + - 20 THEN NULL WHEN + 56 + MAX( + 71 ) * + 58 + ( 16 ) THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9333
SELECT CASE - 99 WHEN - 42 - + COUNT ( * ) THEN + 38 WHEN + - ( + + 23 ) * + 27 + CASE + 92 WHEN + - CAST ( - CAST ( + 25 AS INTEGER ) AS INTEGER ) THEN - 0 ELSE NULL END - + - 20 THEN NULL WHEN + 56 + MAX ( + 71 ) * + 58 + ( 16 ) THEN NULL ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + 62 * + 14 AS col1
----
868

onlyif mysql # DIV for integer division: 
query I rowsort label-9335
SELECT ALL ( + + NULLIF ( + 35, 76 ) ) DIV - - 14 + + + 48
----
50

skipif mysql # not compatible
query I rowsort label-9335
SELECT ALL ( + + NULLIF ( + 35, 76 ) ) / - - 14 + + + 48
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9336
SELECT DISTINCT NULLIF ( + + ( ( - 61 ) ), + - 39 ) * 74 + COUNT( * )
----
-4513

skipif mysql # not compatible
query I rowsort label-9336
SELECT DISTINCT NULLIF ( + + ( ( - 61 ) ), + - 39 ) * 74 + COUNT ( * )
----
-4513

query II rowsort
SELECT ALL 90 AS col1, 30
----
90
30

onlyif mysql # aggregate syntax: 
query II rowsort label-9338
SELECT 77 AS col2, MIN( ALL 2 ) AS col1
----
77
2

skipif mysql # not compatible
query II rowsort label-9338
SELECT 77 AS col2, MIN ( ALL 2 ) AS col1
----
77
2

query I rowsort
SELECT 6 * 89
----
534

onlyif mysql # aggregate syntax: 
query II rowsort label-9340
SELECT - 6 AS col1, 69 + - 45 + - COUNT( 75 )
----
-6
23

skipif mysql # not compatible
query II rowsort label-9340
SELECT - 6 AS col1, 69 + - 45 + - COUNT ( 75 )
----
-6
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9341
SELECT 40 - - + COUNT( 35 ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-9341
SELECT 40 - - + COUNT ( 35 ) AS col2
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9342
SELECT ALL ( 23 ) + CAST( SUM( + 12 ) AS SIGNED ) col0
----
35

skipif mysql # not compatible
query I rowsort label-9342
SELECT ALL ( 23 ) + CAST ( SUM ( + 12 ) AS INTEGER ) col0
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-9343
SELECT DISTINCT 22, ( - COUNT( * ) ) * - COUNT( * ) - 50 AS col2
----
22
-49

skipif mysql # not compatible
query II rowsort label-9343
SELECT DISTINCT 22, ( - COUNT ( * ) ) * - COUNT ( * ) - 50 AS col2
----
22
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9344
SELECT ALL - + 36 - + - 97 + + NULLIF ( CAST( NULL AS SIGNED ), - - COUNT( * ) * - AVG ( + 21 ) ) + - - 86 * + 19 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9344
SELECT ALL - + 36 - + - 97 + + NULLIF ( CAST ( NULL AS INTEGER ), - - COUNT ( * ) * - AVG ( + 21 ) ) + - - 86 * + 19 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9345
SELECT - 49 DIV + 82 + 12 AS col2, - 55
----
12
-55

skipif mysql # not compatible
query II rowsort label-9345
SELECT - 49 / + 82 + 12 AS col2, - 55
----
12
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-9346
SELECT + - 2 * + + 80 * + CASE - - COALESCE ( - - 93, COUNT( * ) + + - 66 ) WHEN - 86 THEN - + 4 ELSE NULL END - + 20 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9346
SELECT + - 2 * + + 80 * + CASE - - COALESCE ( - - 93, COUNT ( * ) + + - 66 ) WHEN - 86 THEN - + 4 ELSE NULL END - + 20 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9347
SELECT 86 + - - CAST( NULL AS SIGNED ) + - - 60 + + - 94 * - 16 - + MAX( CAST( NULL AS DECIMAL ) ) * + 97, - CAST( NULL AS SIGNED ) + 80 / - - COUNT( * ) * + 67 AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9347
SELECT 86 + - - CAST ( NULL AS INTEGER ) + - - 60 + + - 94 * - 16 - + MAX ( CAST ( NULL AS REAL ) ) * + 97, - CAST ( NULL AS INTEGER ) + 80 / - - COUNT ( * ) * + 67 AS col0
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9348
SELECT - 24 AS col1, + MIN( DISTINCT 48 ) * + COUNT( * ) + - 83
----
-24
-35

skipif mysql # not compatible
query II rowsort label-9348
SELECT - 24 AS col1, + MIN ( DISTINCT 48 ) * + COUNT ( * ) + - 83
----
-24
-35

query I rowsort
SELECT ALL + 5 - 17
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-9350
SELECT DISTINCT - 22 AS col2, NULLIF ( 4, + - COUNT( * ) )
----
-22
4

skipif mysql # not compatible
query II rowsort label-9350
SELECT DISTINCT - 22 AS col2, NULLIF ( 4, + - COUNT ( * ) )
----
-22
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9351
SELECT - 61 * - CAST( - 42 AS SIGNED ) * + 96 + + COUNT( * ) col0
----
-245951

skipif mysql # not compatible
query I rowsort label-9351
SELECT - 61 * - CAST ( - 42 AS INTEGER ) * + 96 + + COUNT ( * ) col0
----
-245951

query I rowsort
SELECT DISTINCT + 56 * - ( 6 ) + + 77
----
-259

query I rowsort
SELECT 56 + + 10 col1
----
66

query II rowsort
SELECT ALL - 73 AS col2, + 93 col0
----
-73
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9355
SELECT 32 * + 70 * + + ( - COUNT( DISTINCT + 87 ) ) + + 51 * + - 1 + + - 18
----
-2309

skipif mysql # not compatible
query I rowsort label-9355
SELECT 32 * + 70 * + + ( - COUNT ( DISTINCT + 87 ) ) + + 51 * + - 1 + + - 18
----
-2309

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9356
SELECT ALL + CAST( - CAST( NULL AS DECIMAL ) AS DECIMAL ) * - 80 / - COUNT( * ) * - + COALESCE ( - - 9, - - 78 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9356
SELECT ALL + CAST ( - CAST ( NULL AS REAL ) AS REAL ) * - 80 / - COUNT ( * ) * - + COALESCE ( - - 9, - - 78 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9357
SELECT + + 79, + CASE COUNT( * ) WHEN 15 THEN - 64 + - + ( COUNT( * ) ) WHEN CAST( + 73 AS SIGNED ) THEN NULL ELSE NULL END col1
----
79
NULL

skipif mysql # not compatible
query II rowsort label-9357
SELECT + + 79, + CASE COUNT ( * ) WHEN 15 THEN - 64 + - + ( COUNT ( * ) ) WHEN CAST ( + 73 AS INTEGER ) THEN NULL ELSE NULL END col1
----
79
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9358
SELECT ALL - 22, + ( + COUNT( * ) ) AS col2
----
-22
1

skipif mysql # not compatible
query II rowsort label-9358
SELECT ALL - 22, + ( + COUNT ( * ) ) AS col2
----
-22
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9359
SELECT + - 66 AS col1, + COUNT( * )
----
-66
1

skipif mysql # not compatible
query II rowsort label-9359
SELECT + - 66 AS col1, + COUNT ( * )
----
-66
1

query I rowsort
SELECT 12 * + CASE - 62 WHEN 1 THEN - 22 * 68 + - - NULLIF ( + - 97, + 95 * - AVG ( 67 ) * - 79 + 22 ) * + - 36 END + ( + - 36 ) * 49 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9361
SELECT SUM( DISTINCT + CAST( NULL AS SIGNED ) ) * 88
----
NULL

skipif mysql # not compatible
query I rowsort label-9361
SELECT SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) * 88
----
NULL

query I rowsort
SELECT ALL + + 52 + 11 col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9363
SELECT + 43 * + + 79 - + 14 - + COUNT( * )
----
3382

skipif mysql # not compatible
query I rowsort label-9363
SELECT + 43 * + + 79 - + 14 - + COUNT ( * )
----
3382

query I rowsort
SELECT DISTINCT + 87 + 30 + 0
----
117

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9365
SELECT ALL ( - 28 ) DIV - COUNT( * ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-9365
SELECT ALL ( - 28 ) / - COUNT ( * ) AS col1
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9366
SELECT COUNT( * ) * 64 col0, ( - MAX( - 66 ) ) + - - 74 + + CAST( + - 55 AS SIGNED ) * + MAX( ALL - + ( + ( - ( - ( + 83 ) ) ) ) ) * + ( - - 0 ) * + + 75
----
64
140

skipif mysql # not compatible
query II rowsort label-9366
SELECT COUNT ( * ) * 64 col0, ( - MAX ( - 66 ) ) + - - 74 + + CAST ( + - 55 AS INTEGER ) * + MAX ( ALL - + ( + ( - ( - ( + 83 ) ) ) ) ) * + ( - - 0 ) * + + 75
----
64
140

onlyif mysql # DIV for integer division: 
query I rowsort label-9367
SELECT ALL + 69 + - 21 DIV - 70
----
69

skipif mysql # not compatible
query I rowsort label-9367
SELECT ALL + 69 + - 21 / - 70
----
69

query I rowsort
SELECT 33 * + 43 - - 19 AS col1
----
1438

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9369
SELECT ALL + ( + CAST( - 85 AS SIGNED ) ) + + NULLIF ( 56, - CAST( NULL AS SIGNED ) - 28 ) + - COALESCE ( 77, 26 ) - - + 90 AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-9369
SELECT ALL + ( + CAST ( - 85 AS INTEGER ) ) + + NULLIF ( 56, - CAST ( NULL AS INTEGER ) - 28 ) + - COALESCE ( 77, 26 ) - - + 90 AS col2
----
-16

query I rowsort
SELECT 6 + - 98
----
-92

query I rowsort
SELECT 15 + - - ( 57 ) - 7 * + 43 * + 51
----
-15279

onlyif mysql # aggregate syntax: 
query I rowsort label-9372
SELECT 31 + COUNT( * ) * - - 53
----
84

skipif mysql # not compatible
query I rowsort label-9372
SELECT 31 + COUNT ( * ) * - - 53
----
84

query I rowsort
SELECT 66 * - ( - 80 )
----
5280

query I rowsort
SELECT 50 + - 29
----
21

query I rowsort
SELECT CASE - ( + ( - 67 ) ) WHEN 29 + - ( ( + 82 ) ) THEN + 97 - 25 + 62 * + 59 ELSE NULL END + ( - 44 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9376
SELECT 52 + + 88 DIV + 82 + + 26 AS col1, - 0 * - 9 col2
----
79
0

skipif mysql # not compatible
query II rowsort label-9376
SELECT 52 + + 88 / + 82 + + 26 AS col1, - 0 * - 9 col2
----
79
0

query I rowsort
SELECT DISTINCT NULLIF ( - 68, - 75 )
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-9378
SELECT ALL - COUNT( * ) - - 51
----
50

skipif mysql # not compatible
query I rowsort label-9378
SELECT ALL - COUNT ( * ) - - 51
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-9379
SELECT + NULLIF ( + COUNT( * ), + 54 ) * - + 42, 80 AS col0
----
-42
80

skipif mysql # not compatible
query II rowsort label-9379
SELECT + NULLIF ( + COUNT ( * ), + 54 ) * - + 42, 80 AS col0
----
-42
80

query I rowsort
SELECT ALL - CASE + 91 WHEN - - 12 THEN 12 * - - 63 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9381
SELECT - SUM( DISTINCT - 60 ) AS col2, + 74 AS col2
----
60
74

skipif mysql # not compatible
query II rowsort label-9381
SELECT - SUM ( DISTINCT - 60 ) AS col2, + 74 AS col2
----
60
74

query I rowsort
SELECT 9 + - - 75 AS col2
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9383
SELECT DISTINCT - COALESCE ( COALESCE ( - 90, + + 15 + + 27 ), - + ( 15 ) - - 84, 10 * + ( + 3 ), - - COUNT( * ) + - 21 ) * - - CAST( - 75 AS SIGNED ) + - 14 AS col1
----
-6764

skipif mysql # not compatible
query I rowsort label-9383
SELECT DISTINCT - COALESCE ( COALESCE ( - 90, + + 15 + + 27 ), - + ( 15 ) - - 84, 10 * + ( + 3 ), - - COUNT ( * ) + - 21 ) * - - CAST ( - 75 AS INTEGER ) + - 14 AS col1
----
-6764

onlyif mysql # DIV for integer division: 
query I rowsort label-9384
SELECT 1 DIV ( 32 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-9384
SELECT 1 / ( 32 ) col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9385
SELECT 72 * + + CAST( NULL AS SIGNED ) * 89 * - - 80 + - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-9385
SELECT 72 * + + CAST ( NULL AS INTEGER ) * 89 * - - 80 + - 93
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9386
SELECT - - 46 / ( + COUNT( * ) ) * + COUNT( * ) * - + 0 + - AVG ( ALL - 74 ) - - - 67 * - CASE + CAST( - MIN( DISTINCT + 14 ) AS SIGNED ) WHEN - 5 THEN + + 77 + + 60 END - - + ( - 62 ) + - + CASE - - 76 WHEN - 9 THEN NULL WHEN + - 98 + - + 73 THEN NULL WHEN 17 THEN NULL ELSE + 91 END / 19
----
NULL

skipif mysql # not compatible
query I rowsort label-9386
SELECT - - 46 / ( + COUNT ( * ) ) * + COUNT ( * ) * - + 0 + - AVG ( ALL - 74 ) - - - 67 * - CASE + CAST ( - MIN ( DISTINCT + 14 ) AS INTEGER ) WHEN - 5 THEN + + 77 + + 60 END - - + ( - 62 ) + - + CASE - - 76 WHEN - 9 THEN NULL WHEN + - 98 + - + 73 THEN NULL WHEN 17 THEN NULL ELSE + 91 END / 19
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9387
SELECT ALL - NULLIF ( - + NULLIF ( + 56, 63 * - - COUNT( * ) - 45 ), + - CAST( NULL AS DECIMAL ) * 26 * 65 + + ( 86 ) ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-9387
SELECT ALL - NULLIF ( - + NULLIF ( + 56, 63 * - - COUNT ( * ) - 45 ), + - CAST ( NULL AS REAL ) * 26 * 65 + + ( 86 ) ) AS col0
----
56

query II rowsort
SELECT 11 * + 2 * - 49 * - - 56 + + 89 * 55 * 74 AS col0, - 87 AS col1
----
301862
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-9389
SELECT + MAX( DISTINCT + 5 ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-9389
SELECT + MAX ( DISTINCT + 5 ) AS col1
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-9390
SELECT ALL + 75 * - 52 + - 18 + - 94 + + SUM( + + ( - - 44 ) ), SUM( DISTINCT - - 44 ) * - 43 AS col1
----
-3968
-1892

skipif mysql # not compatible
query II rowsort label-9390
SELECT ALL + 75 * - 52 + - 18 + - 94 + + SUM ( + + ( - - 44 ) ), SUM ( DISTINCT - - 44 ) * - 43 AS col1
----
-3968
-1892

query I rowsort
SELECT - + 17 * + 78 + - 75 + - - 92
----
-1309

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9392
SELECT ALL 8 * + + CAST( - COUNT( + 19 ) AS SIGNED ) + 62
----
54

skipif mysql # not compatible
query I rowsort label-9392
SELECT ALL 8 * + + CAST ( - COUNT ( + 19 ) AS INTEGER ) + 62
----
54

query I rowsort
SELECT ALL - 10 * ( + 34 )
----
-340

onlyif mysql # DIV for integer division: 
query I rowsort label-9394
SELECT - 39 DIV - 75 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9394
SELECT - 39 / - 75 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9395
SELECT - 33 + COUNT( * ) AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-9395
SELECT - 33 + COUNT ( * ) AS col2
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-9396
SELECT MAX( - - 35 ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-9396
SELECT MAX ( - - 35 ) AS col2
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9397
SELECT 38 * + NULLIF ( + - 15, CAST( NULL AS SIGNED ) ) + 51 + + + 34
----
-485

skipif mysql # not compatible
query I rowsort label-9397
SELECT 38 * + NULLIF ( + - 15, CAST ( NULL AS INTEGER ) ) + 51 + + + 34
----
-485

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9398
SELECT ALL + CAST( NULL AS SIGNED ) + 88 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9398
SELECT ALL + CAST ( NULL AS INTEGER ) + 88 col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9399
SELECT ALL + MIN( DISTINCT + CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9399
SELECT ALL + MIN ( DISTINCT + CAST ( NULL AS REAL ) ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( - 21, + 19 )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-9401
SELECT ALL NULLIF ( + COUNT( * ), 0 * + 86 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9401
SELECT ALL NULLIF ( + COUNT ( * ), 0 * + 86 ) AS col1
----
1

query I rowsort
SELECT DISTINCT 78 * + 69 AS col1
----
5382

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9403
SELECT ALL 37 - + 41 - + 87 + + 50 * + + 93 DIV COUNT( * ) * - 74
----
-344191

skipif mysql # not compatible
query I rowsort label-9403
SELECT ALL 37 - + 41 - + 87 + + 50 * + + 93 / COUNT ( * ) * - 74
----
-344191

query II rowsort
SELECT - 19 * 95 * - 95, + 5 AS col2
----
171475
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9405
SELECT - 89 + - COUNT( * ) AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-9405
SELECT - 89 + - COUNT ( * ) AS col2
----
-90

query I rowsort
SELECT ALL - 76 * + 38 AS col0
----
-2888

onlyif mysql # DIV for integer division: 
query I rowsort label-9407
SELECT - 83 DIV 54
----
-1

skipif mysql # not compatible
query I rowsort label-9407
SELECT - 83 / 54
----
-1

query I rowsort
SELECT + 89 * 98
----
8722

query I rowsort
SELECT DISTINCT + 31 * 23
----
713

query I rowsort
SELECT ALL - 76 * 27 AS col2
----
-2052

onlyif mysql # aggregate syntax: 
query I rowsort label-9411
SELECT ALL ( SUM( + 90 ) ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-9411
SELECT ALL ( SUM ( + 90 ) ) AS col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9412
SELECT DISTINCT COUNT( + ( - 27 ) ) + - 25 col1
----
-24

skipif mysql # not compatible
query I rowsort label-9412
SELECT DISTINCT COUNT ( + ( - 27 ) ) + - 25 col1
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9413
SELECT + COUNT( * ) DIV + 2 + 13
----
13

skipif mysql # not compatible
query I rowsort label-9413
SELECT + COUNT ( * ) / + 2 + 13
----
13

query I rowsort
SELECT - 61 * - 93 - + 41 * - 53 col0
----
7846

query I rowsort
SELECT - 93 * 3
----
-279

query I rowsort
SELECT + 99 * 46
----
4554

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9417
SELECT - MIN( ALL 26 ) DIV 52 - 24 AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-9417
SELECT - MIN ( ALL 26 ) / 52 - 24 AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9418
SELECT ( + COUNT( - 66 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9418
SELECT ( + COUNT ( - 66 ) )
----
1

query I rowsort
SELECT ( - ( + 27 ) ) col0
----
-27

query I rowsort
SELECT ALL + 38 * - ( + 63 ) + 38 AS col2
----
-2356

query I rowsort
SELECT + 63 * 26 col1
----
1638

query I rowsort
SELECT + ( ( 68 ) ) AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9423
SELECT - 78 * COUNT( * ) + + 73
----
-5

skipif mysql # not compatible
query I rowsort label-9423
SELECT - 78 * COUNT ( * ) + + 73
----
-5

query I rowsort
SELECT DISTINCT - 45 * 80 + 95 AS col1
----
-3505

onlyif mysql # aggregate syntax: 
query I rowsort label-9425
SELECT NULLIF ( 1, + 12 + COUNT( * ) * 44 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9425
SELECT NULLIF ( 1, + 12 + COUNT ( * ) * 44 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9426
SELECT ALL + MIN( DISTINCT + 22 ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-9426
SELECT ALL + MIN ( DISTINCT + 22 ) AS col2
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9427
SELECT CASE + 87 WHEN CAST( NULL AS SIGNED ) THEN 79 WHEN 75 * + COUNT( * ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9427
SELECT CASE + 87 WHEN CAST ( NULL AS INTEGER ) THEN 79 WHEN 75 * + COUNT ( * ) THEN NULL END AS col2
----
NULL

query I rowsort
SELECT + 32 * + ( 96 )
----
3072

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9429
SELECT ALL - 79 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9429
SELECT ALL - 79 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + 49 + 89
----
138

query I rowsort
SELECT ALL + 18 * + 76 - 4 * - 42 col2
----
1536

query I rowsort
SELECT + 40 * + 21 + 54 AS col1
----
894

query I rowsort
SELECT ALL 65 * + 5 - 76 AS col0
----
249

onlyif mysql # aggregate syntax: 
query I rowsort label-9434
SELECT - COUNT( * ) * 13
----
-13

skipif mysql # not compatible
query I rowsort label-9434
SELECT - COUNT ( * ) * 13
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-9435
SELECT ALL COALESCE ( MAX( DISTINCT + 40 ), CASE + 78 WHEN + COUNT( * ) THEN NULL WHEN 63 * + 11 + 70 THEN 63 END ) * 11 AS col2
----
440

skipif mysql # not compatible
query I rowsort label-9435
SELECT ALL COALESCE ( MAX ( DISTINCT + 40 ), CASE + 78 WHEN + COUNT ( * ) THEN NULL WHEN 63 * + 11 + 70 THEN 63 END ) * 11 AS col2
----
440

query I rowsort
SELECT + 83 * 23 - 84
----
1825

onlyif mysql # aggregate syntax: 
query I rowsort label-9437
SELECT - 78 * + SUM( 17 )
----
-1326

skipif mysql # not compatible
query I rowsort label-9437
SELECT - 78 * + SUM ( 17 )
----
-1326

onlyif mysql # aggregate syntax: 
query I rowsort label-9438
SELECT + 90 + + COUNT( * ) * - 18 col0
----
72

skipif mysql # not compatible
query I rowsort label-9438
SELECT + 90 + + COUNT ( * ) * - 18 col0
----
72

query I rowsort
SELECT - 95 - - 26 * 86
----
2141

query I rowsort
SELECT ALL 2 * 42 - 37
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9441
SELECT - CAST( - MAX( ALL - ( + ( 72 ) ) ) AS SIGNED )
----
-72

skipif mysql # not compatible
query I rowsort label-9441
SELECT - CAST ( - MAX ( ALL - ( + ( 72 ) ) ) AS INTEGER )
----
-72

query I rowsort
SELECT - 28 + 1
----
-27

query I rowsort
SELECT - 42 + 86 AS col1
----
44

query I rowsort
SELECT + CASE + 9 WHEN 31 + - 56 THEN - 84 END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9445
SELECT ALL - NULLIF ( ( 32 ), COALESCE ( 24, - 92 + + 37 * ( + 95 ), 10 ) + COUNT( * ) ) * + 8
----
-256

skipif mysql # not compatible
query I rowsort label-9445
SELECT ALL - NULLIF ( ( 32 ), COALESCE ( 24, - 92 + + 37 * ( + 95 ), 10 ) + COUNT ( * ) ) * + 8
----
-256

query I rowsort
SELECT ALL + + 58 + 41
----
99

query I rowsort
SELECT - 17 + 7
----
-10

query I rowsort
SELECT - - 77 * + 2 AS col1
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-9449
SELECT ALL - - COUNT( * ) * + COUNT( 29 + 25 )
----
1

skipif mysql # not compatible
query I rowsort label-9449
SELECT ALL - - COUNT ( * ) * + COUNT ( 29 + 25 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9450
SELECT + 1 DIV - 86
----
0

skipif mysql # not compatible
query I rowsort label-9450
SELECT + 1 / - 86
----
0

query I rowsort
SELECT + + 97 + + 12 AS col2
----
109

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9452
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 58 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9452
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 58 col1
----
NULL

query I rowsort
SELECT ALL - 75 + 9 AS col0
----
-66

query I rowsort
SELECT DISTINCT - + 16 + + 30
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9455
SELECT ALL - CASE - COUNT( * ) WHEN + ( + 3 ) THEN NULL WHEN + 13 * + ( ( + CASE + 65 WHEN - CASE 55 WHEN 44 / ( + 50 * - 31 ) THEN - 43 END THEN NULL WHEN - 58 * + 81 + + 87 THEN 33 + - 48 ELSE 17 END ) ) - 29 * + 17 THEN 20 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9455
SELECT ALL - CASE - COUNT ( * ) WHEN + ( + 3 ) THEN NULL WHEN + 13 * + ( ( + CASE + 65 WHEN - CASE 55 WHEN 44 / ( + 50 * - 31 ) THEN - 43 END THEN NULL WHEN - 58 * + 81 + + 87 THEN 33 + - 48 ELSE 17 END ) ) - 29 * + 17 THEN 20 END
----
NULL

query I rowsort
SELECT DISTINCT - 83 + 63
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9457
SELECT DISTINCT + + COUNT( * ) * + CAST( COUNT( * ) + + 58 AS SIGNED ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-9457
SELECT DISTINCT + + COUNT ( * ) * + CAST ( COUNT ( * ) + + 58 AS INTEGER ) AS col1
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9458
SELECT - SUM( DISTINCT 94 ) DIV 89
----
-1

skipif mysql # not compatible
query I rowsort label-9458
SELECT - SUM ( DISTINCT 94 ) / 89
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9459
SELECT ALL + 50 DIV + 94 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9459
SELECT ALL + 50 / + 94 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9460
SELECT ALL - COUNT( - 83 ) + + 5 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-9460
SELECT ALL - COUNT ( - 83 ) + + 5 AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9461
SELECT MAX( DISTINCT - 47 ) - CASE + 30 WHEN + AVG ( + 22 ) THEN NULL ELSE + 0 END AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-9461
SELECT MAX ( DISTINCT - 47 ) - CASE + 30 WHEN + AVG ( + 22 ) THEN NULL ELSE + 0 END AS col0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-9462
SELECT + + NULLIF ( 46, COUNT( DISTINCT + 54 ) )
----
46

skipif mysql # not compatible
query I rowsort label-9462
SELECT + + NULLIF ( 46, COUNT ( DISTINCT + 54 ) )
----
46

query I rowsort
SELECT 74 * 42 + - 87 AS col0
----
3021

query I rowsort
SELECT DISTINCT 15 - + 22 AS col2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-9465
SELECT ( - ( - ( - 33 ) ) ) + + COUNT( * ) AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-9465
SELECT ( - ( - ( - 33 ) ) ) + + COUNT ( * ) AS col1
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-9466
SELECT 60 + - 47 + COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-9466
SELECT 60 + - 47 + COUNT ( * )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9467
SELECT 74 * - - 88 * 94 + - NULLIF ( + ( - 43 ), - COUNT( * ) * + 69 ) AS col0
----
612171

skipif mysql # not compatible
query I rowsort label-9467
SELECT 74 * - - 88 * 94 + - NULLIF ( + ( - 43 ), - COUNT ( * ) * + 69 ) AS col0
----
612171

query I rowsort
SELECT DISTINCT - COALESCE ( 15, 40, + 80 ) - + 86
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-9469
SELECT - 61 * + COUNT( * ) * + 29 + - 84
----
-1853

skipif mysql # not compatible
query I rowsort label-9469
SELECT - 61 * + COUNT ( * ) * + 29 + - 84
----
-1853

onlyif mysql # aggregate syntax: 
query I rowsort label-9470
SELECT ALL COUNT( * ) * - 31 * + COUNT( * ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-9470
SELECT ALL COUNT ( * ) * - 31 * + COUNT ( * ) AS col1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-9471
SELECT + 17 * 49 * 8 + - NULLIF ( 78, + COUNT( * ) + COUNT( * ) )
----
6586

skipif mysql # not compatible
query I rowsort label-9471
SELECT + 17 * 49 * 8 + - NULLIF ( 78, + COUNT ( * ) + COUNT ( * ) )
----
6586

query I rowsort
SELECT 95 * - 51
----
-4845

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9473
SELECT ALL 54 DIV MIN( ALL - 77 ) * - 92 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9473
SELECT ALL 54 / MIN ( ALL - 77 ) * - 92 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9474
SELECT ALL - 85 + MAX( 68 )
----
-17

skipif mysql # not compatible
query I rowsort label-9474
SELECT ALL - 85 + MAX ( 68 )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-9475
SELECT DISTINCT + MIN( DISTINCT + 8 ) * 20 AS col2
----
160

skipif mysql # not compatible
query I rowsort label-9475
SELECT DISTINCT + MIN ( DISTINCT + 8 ) * 20 AS col2
----
160

query I rowsort
SELECT ALL ( 53 ) AS col0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9477
SELECT DISTINCT COUNT( * ) + 11 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-9477
SELECT DISTINCT COUNT ( * ) + 11 AS col0
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-9478
SELECT DISTINCT - 98 * 6 + 98 * ( 25 DIV - 82 ) AS col2
----
-588

skipif mysql # not compatible
query I rowsort label-9478
SELECT DISTINCT - 98 * 6 + 98 * ( 25 / - 82 ) AS col2
----
-588

query I rowsort
SELECT 76 * + 49 col1
----
3724

query I rowsort
SELECT ALL - 86 + + ( - 1 )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-9481
SELECT - 6 + MIN( DISTINCT + 8 )
----
2

skipif mysql # not compatible
query I rowsort label-9481
SELECT - 6 + MIN ( DISTINCT + 8 )
----
2

query I rowsort
SELECT DISTINCT - 37 * NULLIF ( - 55, 53 * 71 )
----
2035

query I rowsort
SELECT 55 * + 17 AS col1
----
935

onlyif mysql # aggregate syntax: 
query I rowsort label-9484
SELECT - + COALESCE ( - + COUNT( * ), + 86 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9484
SELECT - + COALESCE ( - + COUNT ( * ), + 86 ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9485
SELECT ALL + ( ( 14 ) ) + - COUNT( * ) DIV - 6
----
14

skipif mysql # not compatible
query I rowsort label-9485
SELECT ALL + ( ( 14 ) ) + - COUNT ( * ) / - 6
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9486
SELECT + 42 - + MIN( ALL 88 ) AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-9486
SELECT + 42 - + MIN ( ALL 88 ) AS col0
----
-46

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9487
SELECT + ( - 55 ) - COUNT( - CASE 91 WHEN + 26 + CAST( NULL AS DECIMAL ) THEN + ( - 34 ) WHEN - 23 * 56 + + 38 THEN NULL ELSE NULL END )
----
-55

skipif mysql # not compatible
query I rowsort label-9487
SELECT + ( - 55 ) - COUNT ( - CASE 91 WHEN + 26 + CAST ( NULL AS REAL ) THEN + ( - 34 ) WHEN - 23 * 56 + + 38 THEN NULL ELSE NULL END )
----
-55

query I rowsort
SELECT 25 + - - 42 * 16 AS col0
----
697

onlyif mysql # aggregate syntax: 
query I rowsort label-9489
SELECT DISTINCT + - 68 * + - 10 + COUNT( * ) AS col1
----
681

skipif mysql # not compatible
query I rowsort label-9489
SELECT DISTINCT + - 68 * + - 10 + COUNT ( * ) AS col1
----
681

onlyif mysql # aggregate syntax: 
query I rowsort label-9490
SELECT ALL + - 51 + - COUNT( * ) * + 32
----
-83

skipif mysql # not compatible
query I rowsort label-9490
SELECT ALL + - 51 + - COUNT ( * ) * + 32
----
-83

query I rowsort
SELECT - 92 * - 91 AS col1
----
8372

query I rowsort
SELECT ALL - - ( - - NULLIF ( 18, - 91 ) )
----
18

query I rowsort
SELECT DISTINCT + 97 * + - 74 * 21 col2
----
-150738

onlyif mysql # DIV for integer division: 
query I rowsort label-9494
SELECT + 20 DIV 70 - 92 AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-9494
SELECT + 20 / 70 - 92 AS col2
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9495
SELECT SUM( 11 ) * + CASE - MAX( DISTINCT - 71 ) WHEN COALESCE ( + 80, - 44 ) THEN - 83 / COUNT( * ) + - 89 ELSE NULL END * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9495
SELECT SUM ( 11 ) * + CASE - MAX ( DISTINCT - 71 ) WHEN COALESCE ( + 80, - 44 ) THEN - 83 / COUNT ( * ) + - 89 ELSE NULL END * CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL - 70, 82 col0
----
-70
82

onlyif mysql # DIV for integer division: 
query I rowsort label-9497
SELECT ALL + 79 * - 42 * - 95 * NULLIF ( - 74 DIV 77, + 91 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-9497
SELECT ALL + 79 * - 42 * - 95 * NULLIF ( - 74 / 77, + 91 ) col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9498
SELECT DISTINCT 55 DIV 47
----
1

skipif mysql # not compatible
query I rowsort label-9498
SELECT DISTINCT 55 / 47
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9499
SELECT 31 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9499
SELECT 31 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9500
SELECT + 44 AS col1, COALESCE ( + + 59, 36 * CAST( 29 AS SIGNED ), 58 * - MAX( ALL - CAST( 17 AS SIGNED ) * CAST( NULL AS SIGNED ) ) + + 8 ) * 97 AS col2
----
44
5723

skipif mysql # not compatible
query II rowsort label-9500
SELECT + 44 AS col1, COALESCE ( + + 59, 36 * CAST ( 29 AS INTEGER ), 58 * - MAX ( ALL - CAST ( 17 AS INTEGER ) * CAST ( NULL AS INTEGER ) ) + + 8 ) * 97 AS col2
----
44
5723

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9501
SELECT + 13 * - 45 * + COUNT( * ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9501
SELECT + 13 * - 45 * + COUNT ( * ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9502
SELECT ALL - COALESCE ( + CASE + - 42 WHEN + 86 THEN 9 ELSE NULL END, + CAST( NULL AS SIGNED ), + 6 + + 80 ) AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-9502
SELECT ALL - COALESCE ( + CASE + - 42 WHEN + 86 THEN 9 ELSE NULL END, + CAST ( NULL AS INTEGER ), + 6 + + 80 ) AS col1
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-9503
SELECT + COUNT( * ) * + 94 + - + 21
----
73

skipif mysql # not compatible
query I rowsort label-9503
SELECT + COUNT ( * ) * + 94 + - + 21
----
73

query II rowsort
SELECT + 53 AS col1, - 25 * 21 AS col0
----
53
-525

onlyif mysql # aggregate syntax: 
query I rowsort label-9505
SELECT + SUM( DISTINCT + - 90 ) * - 47 - - 57 - 91
----
4196

skipif mysql # not compatible
query I rowsort label-9505
SELECT + SUM ( DISTINCT + - 90 ) * - 47 - - 57 - 91
----
4196

onlyif mysql # aggregate syntax: 
query I rowsort label-9506
SELECT ALL 54 + + COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-9506
SELECT ALL 54 + + COUNT ( * )
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9507
SELECT 66 + - 33 + - CAST( NULL AS SIGNED ) * - 12
----
NULL

skipif mysql # not compatible
query I rowsort label-9507
SELECT 66 + - 33 + - CAST ( NULL AS INTEGER ) * - 12
----
NULL

query II rowsort
SELECT ALL - 1 AS col1, 52
----
-1
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9509
SELECT MAX( + + 61 ) + - - ( + COUNT( * ) )
----
62

skipif mysql # not compatible
query I rowsort label-9509
SELECT MAX ( + + 61 ) + - - ( + COUNT ( * ) )
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-9510
SELECT 54 * - 33 DIV 33 + 3
----
-51

skipif mysql # not compatible
query I rowsort label-9510
SELECT 54 * - 33 / 33 + 3
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9511
SELECT ALL - 17 + + ( 79 ) - + ( + COUNT( * ) ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-9511
SELECT ALL - 17 + + ( 79 ) - + ( + COUNT ( * ) ) AS col2
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9512
SELECT + COUNT( * ) DIV 47 - + ( ( 6 ) ) col0
----
-6

skipif mysql # not compatible
query I rowsort label-9512
SELECT + COUNT ( * ) / 47 - + ( ( 6 ) ) col0
----
-6

query I rowsort
SELECT 32 + + 5 AS col2
----
37

query I rowsort
SELECT - - 9 * - 42 - + + 97 + - 12
----
-487

query I rowsort
SELECT ALL 16 * + 54 col0
----
864

query I rowsort
SELECT 22 + - - 64
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-9517
SELECT - + 24, + 28 * + + 85 * - SUM( + 18 ) + + 40 * 18 AS col0
----
-24
-42120

skipif mysql # not compatible
query II rowsort label-9517
SELECT - + 24, + 28 * + + 85 * - SUM ( + 18 ) + + 40 * 18 AS col0
----
-24
-42120

onlyif mysql # aggregate syntax: 
query I rowsort label-9518
SELECT - 74 + CASE - 94 WHEN + COUNT( 6 ) + 17 THEN NULL ELSE - COUNT( * ) + COUNT( * ) * - 45 END * 54 AS col1
----
-2558

skipif mysql # not compatible
query I rowsort label-9518
SELECT - 74 + CASE - 94 WHEN + COUNT ( 6 ) + 17 THEN NULL ELSE - COUNT ( * ) + COUNT ( * ) * - 45 END * 54 AS col1
----
-2558

query I rowsort
SELECT + 13 * - 16 + + 3 + - 93 * 27
----
-2716

onlyif mysql # aggregate syntax: 
query I rowsort label-9520
SELECT MIN( DISTINCT - 75 )
----
-75

skipif mysql # not compatible
query I rowsort label-9520
SELECT MIN ( DISTINCT - 75 )
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9521
SELECT + + 69 + CAST( + 20 AS SIGNED ) * - 5
----
-31

skipif mysql # not compatible
query I rowsort label-9521
SELECT + + 69 + CAST ( + 20 AS INTEGER ) * - 5
----
-31

query I rowsort
SELECT + - 94 + ( + NULLIF ( - 11, - 31 ) ) * + 20 AS col0
----
-314

query II rowsort
SELECT 23 AS col2, 86 * + 45
----
23
3870

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9524
SELECT DISTINCT 19 DIV + MAX( - 3 )
----
-6

skipif mysql # not compatible
query I rowsort label-9524
SELECT DISTINCT 19 / + MAX ( - 3 )
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9525
SELECT + 6 DIV - COUNT( * )
----
-6

skipif mysql # not compatible
query I rowsort label-9525
SELECT + 6 / - COUNT ( * )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9526
SELECT - CASE + 32 WHEN + 59 THEN NULL WHEN ( 89 ) * + COUNT( * ) + - 98 THEN + ( ( - COUNT( * ) ) ) END / - 85 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9526
SELECT - CASE + 32 WHEN + 59 THEN NULL WHEN ( 89 ) * + COUNT ( * ) + - 98 THEN + ( ( - COUNT ( * ) ) ) END / - 85 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9527
SELECT ALL 46 * COUNT( - + 31 ) * 78
----
3588

skipif mysql # not compatible
query I rowsort label-9527
SELECT ALL 46 * COUNT ( - + 31 ) * 78
----
3588

query I rowsort
SELECT - 90 + + 85 col0
----
-5

query II rowsort
SELECT DISTINCT 46 col1, + 57
----
46
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9530
SELECT - - ( - SUM( + 12 ) )
----
-12

skipif mysql # not compatible
query I rowsort label-9530
SELECT - - ( - SUM ( + 12 ) )
----
-12

query I rowsort
SELECT + ( - - 49 ) AS col1
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9532
SELECT ALL COUNT( - - ( 23 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9532
SELECT ALL COUNT ( - - ( 23 ) ) AS col1
----
1

query I rowsort
SELECT + 33 * + - 88 * - 59 * - 4 AS col1
----
-685344

onlyif mysql # aggregate syntax: 
query I rowsort label-9534
SELECT - 26 + COUNT( * ) + 82 + + + 36 * 2
----
129

skipif mysql # not compatible
query I rowsort label-9534
SELECT - 26 + COUNT ( * ) + 82 + + + 36 * 2
----
129

query I rowsort
SELECT - NULLIF ( - 10, ( 32 ) + + 73 ) * - 83
----
-830

onlyif mysql # aggregate syntax: 
query I rowsort label-9536
SELECT + 73 - COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-9536
SELECT + 73 - COUNT ( * )
----
72

query I rowsort
SELECT CASE - 91 WHEN - + ( + 96 ) THEN 46 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9538
SELECT CAST( NULL AS SIGNED ) / - 63 / + - 22 + NULLIF ( 87, 65 ) * NULLIF ( 32 / + 25 + - NULLIF ( 81 + 11, COUNT( * ) + + 49 * 58 ), - 95 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9538
SELECT CAST ( NULL AS INTEGER ) / - 63 / + - 22 + NULLIF ( 87, 65 ) * NULLIF ( 32 / + 25 + - NULLIF ( 81 + 11, COUNT ( * ) + + 49 * 58 ), - 95 )
----
NULL

query I rowsort
SELECT COALESCE ( 96, + 53 )
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9540
SELECT - CASE + 75 WHEN COUNT( + - 98 ) THEN NULL WHEN - 97 THEN NULL ELSE + 84 * - CAST( + 47 AS SIGNED ) + + 95 END * 10 AS col0
----
38530

skipif mysql # not compatible
query I rowsort label-9540
SELECT - CASE + 75 WHEN COUNT ( + - 98 ) THEN NULL WHEN - 97 THEN NULL ELSE + 84 * - CAST ( + 47 AS INTEGER ) + + 95 END * 10 AS col0
----
38530

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9541
SELECT - CAST( - + SUM( DISTINCT 19 ) AS SIGNED ) + 23
----
42

skipif mysql # not compatible
query I rowsort label-9541
SELECT - CAST ( - + SUM ( DISTINCT 19 ) AS INTEGER ) + 23
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9542
SELECT ALL MAX( DISTINCT + 86 ) * - MAX( DISTINCT + 72 ) DIV + MAX( 83 DIV 3 + 98 * - 80 ) + 35 + - 63
----
-28

skipif mysql # not compatible
query I rowsort label-9542
SELECT ALL MAX ( DISTINCT + 86 ) * - MAX ( DISTINCT + 72 ) / + MAX ( 83 / 3 + 98 * - 80 ) + 35 + - 63
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-9543
SELECT - NULLIF ( - 39, - 65 ) + + - COUNT( * ) * 72 AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-9543
SELECT - NULLIF ( - 39, - 65 ) + + - COUNT ( * ) * 72 AS col0
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9544
SELECT ALL - 58 * - + ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9544
SELECT ALL - 58 * - + ( - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT - NULLIF ( + 58, + 62 ) * + 33 + 58 * + 4 AS col0
----
-1682

onlyif mysql # aggregate syntax: 
query I rowsort label-9546
SELECT ALL 33 * - + MAX( - + 80 ) + + 87
----
2727

skipif mysql # not compatible
query I rowsort label-9546
SELECT ALL 33 * - + MAX ( - + 80 ) + + 87
----
2727

query I rowsort
SELECT DISTINCT 2 * + 15 * + - ( - 32 ) + - 31 * + 74
----
-1334

onlyif mysql # DIV for integer division: 
query II rowsort label-9548
SELECT - 1 DIV + 48 AS col0, - 96 AS col2
----
0
-96

skipif mysql # not compatible
query II rowsort label-9548
SELECT - 1 / + 48 AS col0, - 96 AS col2
----
0
-96

query I rowsort
SELECT - 7 + - 10 AS col0
----
-17

query I rowsort
SELECT ALL + ( + 33 ) AS col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9551
SELECT - - MIN( - + 48 ) * + 85
----
-4080

skipif mysql # not compatible
query I rowsort label-9551
SELECT - - MIN ( - + 48 ) * + 85
----
-4080

query I rowsort
SELECT - - 47 * - 83 + - ( 79 ) AS col1
----
-3980

onlyif mysql # aggregate syntax: 
query I rowsort label-9553
SELECT - 11 * - - COUNT( * )
----
-11

skipif mysql # not compatible
query I rowsort label-9553
SELECT - 11 * - - COUNT ( * )
----
-11

query I rowsort
SELECT DISTINCT - COALESCE ( + - 84, - - 81 ) AS col2
----
84

query I rowsort
SELECT ALL 68 * + + ( + 14 )
----
952

query II rowsort
SELECT ( - 86 ) AS col0, 78 - 62 + + 47
----
-86
63

onlyif mysql # DIV for integer division: 
query II rowsort label-9557
SELECT ALL + - 59 * 15 AS col0, + 33 DIV + - 37
----
-885
0

skipif mysql # not compatible
query II rowsort label-9557
SELECT ALL + - 59 * 15 AS col0, + 33 / + - 37
----
-885
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9558
SELECT + + NULLIF ( - CAST( NULL AS DECIMAL ), + 69 ) * + 90 + + 98 * + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-9558
SELECT + + NULLIF ( - CAST ( NULL AS REAL ), + 69 ) * + 90 + + 98 * + 75
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9559
SELECT CAST( 53 AS SIGNED )
----
53

skipif mysql # not compatible
query I rowsort label-9559
SELECT CAST ( 53 AS INTEGER )
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9560
SELECT ALL COALESCE ( + + 32, CAST( COUNT( * ) AS SIGNED ) ) * CAST( - 85 AS SIGNED ) col0
----
-2720

skipif mysql # not compatible
query I rowsort label-9560
SELECT ALL COALESCE ( + + 32, CAST ( COUNT ( * ) AS INTEGER ) ) * CAST ( - 85 AS INTEGER ) col0
----
-2720

onlyif mysql # aggregate syntax: 
query I rowsort label-9561
SELECT - + 88 + 85 * COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-9561
SELECT - + 88 + 85 * COUNT ( * )
----
-3

query I rowsort
SELECT - + 72 * - 92 AS col2
----
6624

onlyif mysql # aggregate syntax: 
query I rowsort label-9563
SELECT + 83 + - ( + 6 ) + + COUNT( + 79 ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-9563
SELECT + 83 + - ( + 6 ) + + COUNT ( + 79 ) AS col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9564
SELECT - NULLIF ( + 80, + + 96 + - COUNT( * ) + COUNT( 86 ) )
----
-80

skipif mysql # not compatible
query I rowsort label-9564
SELECT - NULLIF ( + 80, + + 96 + - COUNT ( * ) + COUNT ( 86 ) )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-9565
SELECT ALL - MIN( + ( 88 ) )
----
-88

skipif mysql # not compatible
query I rowsort label-9565
SELECT ALL - MIN ( + ( 88 ) )
----
-88

query I rowsort
SELECT NULLIF ( - + 97, ( + + 48 ) ) AS col2
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9567
SELECT + ( COUNT( * ) ) - - 82
----
83

skipif mysql # not compatible
query I rowsort label-9567
SELECT + ( COUNT ( * ) ) - - 82
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9568
SELECT + 51 * 86 * - 73 AS col1, CASE COUNT( * ) WHEN + 98 THEN NULL WHEN 74 / COUNT( 64 ) THEN NULL ELSE 51 + 75 END * CAST( 42 AS SIGNED ) - + 83
----
-320178
5209

skipif mysql # not compatible
query II rowsort label-9568
SELECT + 51 * 86 * - 73 AS col1, CASE COUNT ( * ) WHEN + 98 THEN NULL WHEN 74 / COUNT ( 64 ) THEN NULL ELSE 51 + 75 END * CAST ( 42 AS INTEGER ) - + 83
----
-320178
5209

onlyif mysql # aggregate syntax: 
query I rowsort label-9569
SELECT + COUNT( * ) + + 39
----
40

skipif mysql # not compatible
query I rowsort label-9569
SELECT + COUNT ( * ) + + 39
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9570
SELECT DISTINCT 80 * - MAX( ALL 65 ) AS col2
----
-5200

skipif mysql # not compatible
query I rowsort label-9570
SELECT DISTINCT 80 * - MAX ( ALL 65 ) AS col2
----
-5200

query I rowsort
SELECT + 86 + + + 1 + + 84
----
171

onlyif mysql # DIV for integer division: 
query I rowsort label-9572
SELECT ALL 91 DIV - - ( + 30 )
----
3

skipif mysql # not compatible
query I rowsort label-9572
SELECT ALL 91 / - - ( + 30 )
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9573
SELECT + 3 DIV + 94 * - - 76
----
0

skipif mysql # not compatible
query I rowsort label-9573
SELECT + 3 / + 94 * - - 76
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9574
SELECT + 15 * COALESCE ( - - 20, - COUNT( ALL + - 53 ) * - 42 ) AS col2
----
300

skipif mysql # not compatible
query I rowsort label-9574
SELECT + 15 * COALESCE ( - - 20, - COUNT ( ALL + - 53 ) * - 42 ) AS col2
----
300

query I rowsort
SELECT + 73 + + + 97 AS col2
----
170

onlyif mysql # aggregate syntax: 
query II rowsort label-9576
SELECT 95 col0, 39 - - - 79 * + 84 * COUNT( * ) - COALESCE ( - 63, 78, + ( - 39 ) )
----
95
-6534

skipif mysql # not compatible
query II rowsort label-9576
SELECT 95 col0, 39 - - - 79 * + 84 * COUNT ( * ) - COALESCE ( - 63, 78, + ( - 39 ) )
----
95
-6534

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9577
SELECT CASE - 29 WHEN COUNT( * ) THEN NULL ELSE + 77 END DIV - 35 - + 12 AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-9577
SELECT CASE - 29 WHEN COUNT ( * ) THEN NULL ELSE + 77 END / - 35 - + 12 AS col0
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-9578
SELECT ALL 17 DIV + 58 * + 49 + + + 74 + - - 63
----
137

skipif mysql # not compatible
query I rowsort label-9578
SELECT ALL 17 / + 58 * + 49 + + + 74 + - - 63
----
137

query I rowsort
SELECT ALL 37 * + 10
----
370

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9580
SELECT + ( - + 95 ) * - + 25 AS col0, CASE + 0 WHEN 21 / 96 + + COUNT( * ) * 98 THEN + CAST( - COUNT( * ) AS SIGNED ) * + 23 END AS col2
----
2375
NULL

skipif mysql # not compatible
query II rowsort label-9580
SELECT + ( - + 95 ) * - + 25 AS col0, CASE + 0 WHEN 21 / 96 + + COUNT ( * ) * 98 THEN + CAST ( - COUNT ( * ) AS INTEGER ) * + 23 END AS col2
----
2375
NULL

query I rowsort
SELECT 62 * 81 + - 89
----
4933

query II rowsort
SELECT ALL + 39 AS col1, + 39 AS col0
----
39
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9583
SELECT ( - - 68 ) * COUNT( * ) + - 97 * - COUNT( * )
----
165

skipif mysql # not compatible
query I rowsort label-9583
SELECT ( - - 68 ) * COUNT ( * ) + - 97 * - COUNT ( * )
----
165

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9584
SELECT + + 43 DIV - 67 + + 38, + 20 * - COUNT( * ) AS col0
----
38
-20

skipif mysql # not compatible
query II rowsort label-9584
SELECT + + 43 / - 67 + + 38, + 20 * - COUNT ( * ) AS col0
----
38
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9585
SELECT + + 72 * + COUNT( * ) + + + 83 + 30 - + 68 * + COALESCE ( 82, - 93 ) * + 93 AS col2
----
-518383

skipif mysql # not compatible
query I rowsort label-9585
SELECT + + 72 * + COUNT ( * ) + + + 83 + 30 - + 68 * + COALESCE ( 82, - 93 ) * + 93 AS col2
----
-518383

query I rowsort
SELECT + 86 * ( + 81 ) AS col1
----
6966

onlyif mysql # aggregate syntax: 
query I rowsort label-9587
SELECT - MAX( - 36 ) + - - 75 AS col2
----
111

skipif mysql # not compatible
query I rowsort label-9587
SELECT - MAX ( - 36 ) + - - 75 AS col2
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-9588
SELECT DISTINCT - 16 * + SUM( - 93 ) * - 41 AS col2
----
-61008

skipif mysql # not compatible
query I rowsort label-9588
SELECT DISTINCT - 16 * + SUM ( - 93 ) * - 41 AS col2
----
-61008

query I rowsort
SELECT DISTINCT - 5 * - - 80 * + 55
----
-22000

onlyif mysql # aggregate syntax: 
query I rowsort label-9590
SELECT ALL + - COUNT( * ) - - 42 col1
----
41

skipif mysql # not compatible
query I rowsort label-9590
SELECT ALL + - COUNT ( * ) - - 42 col1
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-9591
SELECT - 28 * + - 46 + - 38 + - 91 + COALESCE ( - 28, + 92, - 68 ) DIV 80 * - 58
----
1159

skipif mysql # not compatible
query I rowsort label-9591
SELECT - 28 * + - 46 + - 38 + - 91 + COALESCE ( - 28, + 92, - 68 ) / 80 * - 58
----
1159

query I rowsort
SELECT ALL - 67 - 37 + + 60 col2
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9593
SELECT 61 / + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9593
SELECT 61 / + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9594
SELECT + COUNT( * ) + - 17 AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-9594
SELECT + COUNT ( * ) + - 17 AS col2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-9595
SELECT + CASE - 30 WHEN COUNT( * ) / - 47 THEN NULL WHEN 39 THEN + 23 ELSE 4 + 50 END + 56 AS col1
----
110

skipif mysql # not compatible
query I rowsort label-9595
SELECT + CASE - 30 WHEN COUNT ( * ) / - 47 THEN NULL WHEN 39 THEN + 23 ELSE 4 + 50 END + 56 AS col1
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-9596
SELECT - COUNT( * ) * - COUNT( * ) * ( + - 73 ) + 66 + - COUNT( * )
----
-8

skipif mysql # not compatible
query I rowsort label-9596
SELECT - COUNT ( * ) * - COUNT ( * ) * ( + - 73 ) + 66 + - COUNT ( * )
----
-8

query I rowsort
SELECT + 58 + - 55
----
3

query I rowsort
SELECT - ( + 52 ) AS col0
----
-52

query I rowsort
SELECT 0 + 48
----
48

query II rowsort
SELECT 30 * - 93 * - + 35 AS col2, 88 AS col1
----
97650
88

query II rowsort
SELECT ALL 31, + 20 col2
----
31
20

query I rowsort
SELECT - 25 + 44 AS col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9603
SELECT ALL COUNT( DISTINCT - 80 ) * + + COALESCE ( - - 73, + 22, + COUNT( * ), - 22 )
----
73

skipif mysql # not compatible
query I rowsort label-9603
SELECT ALL COUNT ( DISTINCT - 80 ) * + + COALESCE ( - - 73, + 22, + COUNT ( * ), - 22 )
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9604
SELECT 79 + ( - CAST( + 75 AS SIGNED ) )
----
4

skipif mysql # not compatible
query I rowsort label-9604
SELECT 79 + ( - CAST ( + 75 AS INTEGER ) )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9605
SELECT COUNT( * ) * 5 * SUM( + - 97 ) AS col1
----
-485

skipif mysql # not compatible
query I rowsort label-9605
SELECT COUNT ( * ) * 5 * SUM ( + - 97 ) AS col1
----
-485

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9606
SELECT COUNT( ALL - 55 ) + - ( 34 ) + 5 DIV + - COUNT( * ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-9606
SELECT COUNT ( ALL - 55 ) + - ( 34 ) + 5 / + - COUNT ( * ) AS col0
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-9607
SELECT 69 + - 22 DIV + - 45 - + + 90 AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-9607
SELECT 69 + - 22 / + - 45 - + + 90 AS col1
----
-21

query I rowsort
SELECT 40 * - - 48 AS col0
----
1920

query I rowsort
SELECT 76 * + - 16
----
-1216

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9610
SELECT DISTINCT 3 + + + COUNT( * ) + - + COUNT( * ) - + 1 AS col1, - NULLIF ( + NULLIF ( - 72, 93 DIV 95 + 16 ), - 96 + 15 * 73 ) DIV - 5 + + 99 * ( NULLIF ( - COUNT( + 50 ), - CASE + 87 WHEN + 51 - ( 88 - - 29 * 32 ) THEN 99 + 23 WHEN + ( 68 ) + + 61 * 3 THEN NULL END ) )
----
2
-113

skipif mysql # not compatible
query II rowsort label-9610
SELECT DISTINCT 3 + + + COUNT ( * ) + - + COUNT ( * ) - + 1 AS col1, - NULLIF ( + NULLIF ( - 72, 93 / 95 + 16 ), - 96 + 15 * 73 ) / - 5 + + 99 * ( NULLIF ( - COUNT ( + 50 ), - CASE + 87 WHEN + 51 - ( 88 - - 29 * 32 ) THEN 99 + 23 WHEN + ( 68 ) + + 61 * 3 THEN NULL END ) )
----
2
-113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9611
SELECT MAX( ALL + 58 ) + 11 - 27 + - COUNT( - 79 ) * COALESCE ( + ( - 83 ) + 68, COUNT( * ), + MAX( 28 ) - - CAST( NULL AS SIGNED ) * 46 ) * 72
----
1122

skipif mysql # not compatible
query I rowsort label-9611
SELECT MAX ( ALL + 58 ) + 11 - 27 + - COUNT ( - 79 ) * COALESCE ( + ( - 83 ) + 68, COUNT ( * ), + MAX ( 28 ) - - CAST ( NULL AS INTEGER ) * 46 ) * 72
----
1122

onlyif mysql # aggregate syntax: 
query I rowsort label-9612
SELECT ALL 38 + + MAX( + 24 )
----
62

skipif mysql # not compatible
query I rowsort label-9612
SELECT ALL 38 + + MAX ( + 24 )
----
62

query II rowsort
SELECT - 37 AS col0, + 71 AS col2
----
-37
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9614
SELECT ALL - CASE + 41 WHEN - 71 * - 69 - 81 THEN - COUNT( ALL + 4 ) ELSE NULL END * - 82
----
NULL

skipif mysql # not compatible
query I rowsort label-9614
SELECT ALL - CASE + 41 WHEN - 71 * - 69 - 81 THEN - COUNT ( ALL + 4 ) ELSE NULL END * - 82
----
NULL

query I rowsort
SELECT DISTINCT + 3 + - 45
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9616
SELECT ALL COUNT( * ) + 84 AS col0
----
85

skipif mysql # not compatible
query I rowsort label-9616
SELECT ALL COUNT ( * ) + 84 AS col0
----
85

onlyif mysql # aggregate syntax: 
query III rowsort label-9617
SELECT ALL - 30 col1, 92 AS col2, - COALESCE ( + SUM( ALL + ( 0 ) ), + SUM( 8 ) * - 81, COUNT( * ) ) + CASE WHEN 52 < MIN( ALL 45 ) * 82 + 62 * 38 THEN 29 + ( + 66 ) END * + 22
----
-30
92
2090

skipif mysql # not compatible
query III rowsort label-9617
SELECT ALL - 30 col1, 92 AS col2, - COALESCE ( + SUM ( ALL + ( 0 ) ), + SUM ( 8 ) * - 81, COUNT ( * ) ) + CASE WHEN 52 < MIN ( ALL 45 ) * 82 + 62 * 38 THEN 29 + ( + 66 ) END * + 22
----
-30
92
2090

onlyif mysql # aggregate syntax: 
query I rowsort label-9618
SELECT 65 * NULLIF ( + COUNT( * ), - - COUNT( * ) - - 28 ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-9618
SELECT 65 * NULLIF ( + COUNT ( * ), - - COUNT ( * ) - - 28 ) AS col1
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-9619
SELECT DISTINCT - 42, 51 + - COUNT( * ) AS col1
----
-42
50

skipif mysql # not compatible
query II rowsort label-9619
SELECT DISTINCT - 42, 51 + - COUNT ( * ) AS col1
----
-42
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9620
SELECT ALL COUNT( + 54 ) - - 74 - + 6 * - ( + + CASE - ( 37 ) WHEN ( + MAX( ALL - 2 ) ) * 77 THEN + 0 * COUNT( * ) WHEN MIN( ALL 63 ) * - 58 THEN ( - 91 ) END ) / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9620
SELECT ALL COUNT ( + 54 ) - - 74 - + 6 * - ( + + CASE - ( 37 ) WHEN ( + MAX ( ALL - 2 ) ) * 77 THEN + 0 * COUNT ( * ) WHEN MIN ( ALL 63 ) * - 58 THEN ( - 91 ) END ) / COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9621
SELECT DISTINCT - 20 * + CAST( + - 30 AS SIGNED ) * 58 AS col1, - MAX( - 29 ) * ( 87 * 22 ) AS col2
----
34800
55506

skipif mysql # not compatible
query II rowsort label-9621
SELECT DISTINCT - 20 * + CAST ( + - 30 AS INTEGER ) * 58 AS col1, - MAX ( - 29 ) * ( 87 * 22 ) AS col2
----
34800
55506

query I rowsort
SELECT DISTINCT 44 * - 3
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-9623
SELECT ALL + 51 - + - COUNT( * ) + + ( - 28 ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-9623
SELECT ALL + 51 - + - COUNT ( * ) + + ( - 28 ) AS col2
----
24

query II rowsort
SELECT ALL - + 23 col2, 49
----
-23
49

query II rowsort
SELECT 68, 95 col1
----
68
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9626
SELECT DISTINCT - - CAST( - 50 AS SIGNED ) AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-9626
SELECT DISTINCT - - CAST ( - 50 AS INTEGER ) AS col1
----
-50

query II rowsort
SELECT + + 32 AS col2, 30 AS col2
----
32
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9628
SELECT ( + CASE + 50 WHEN + 60 THEN - 37 ELSE + COUNT( * ) END )
----
1

skipif mysql # not compatible
query I rowsort label-9628
SELECT ( + CASE + 50 WHEN + 60 THEN - 37 ELSE + COUNT ( * ) END )
----
1

query I rowsort
SELECT 25 * + 68 * - NULLIF ( 27, + 93 )
----
-45900

onlyif mysql # aggregate syntax: 
query II rowsort label-9630
SELECT 54 col1, COALESCE ( + 61, + 47 * - NULLIF ( 32, + ( COUNT( * ) ) ) + + CASE - 67 WHEN + AVG ( 11 ) THEN SUM( ALL ( - 87 ) ) * 6 ELSE NULL END * 15 ) + 43 AS col0
----
54
104

skipif mysql # not compatible
query II rowsort label-9630
SELECT 54 col1, COALESCE ( + 61, + 47 * - NULLIF ( 32, + ( COUNT ( * ) ) ) + + CASE - 67 WHEN + AVG ( 11 ) THEN SUM ( ALL ( - 87 ) ) * 6 ELSE NULL END * 15 ) + 43 AS col0
----
54
104

query I rowsort
SELECT DISTINCT + - 67 * - + 9 AS col2
----
603

onlyif mysql # DIV for integer division: 
query I rowsort label-9632
SELECT DISTINCT 74 DIV 71 * - 54 col1
----
-54

skipif mysql # not compatible
query I rowsort label-9632
SELECT DISTINCT 74 / 71 * - 54 col1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-9633
SELECT + COUNT( * ) * - 81
----
-81

skipif mysql # not compatible
query I rowsort label-9633
SELECT + COUNT ( * ) * - 81
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9634
SELECT ALL + SUM( + 44 )
----
44

skipif mysql # not compatible
query I rowsort label-9634
SELECT ALL + SUM ( + 44 )
----
44

query II rowsort
SELECT ALL 54 AS col2, 43 col2
----
54
43

query I rowsort
SELECT ALL + ( - + COALESCE ( 84, - ( - + 7 ) + + 25 ) ) + + 36 * 10 AS col1
----
276

query II rowsort
SELECT ( 51 ) + - NULLIF ( 7, + 98 ) AS col1, - 44 + + 65 AS col0
----
44
21

query I rowsort
SELECT 69 * + + 52 * - 77 AS col0
----
-276276

query I rowsort
SELECT 44 + 28 AS col1
----
72

query II rowsort
SELECT ALL - 62 + - - 0, - 90 AS col0
----
-62
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9641
SELECT MAX( - 25 ) DIV - - MAX( ALL - 94 ) - - 16 - - 10 AS col0
----
26

skipif mysql # not compatible
query I rowsort label-9641
SELECT MAX ( - 25 ) / - - MAX ( ALL - 94 ) - - 16 - - 10 AS col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9642
SELECT ALL MAX( DISTINCT - - 34 )
----
34

skipif mysql # not compatible
query I rowsort label-9642
SELECT ALL MAX ( DISTINCT - - 34 )
----
34

query II rowsort
SELECT DISTINCT + 17 + 60, 65 AS col2
----
77
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9644
SELECT DISTINCT SUM( ALL + 74 ) + + - 60 AS col2
----
14

skipif mysql # not compatible
query I rowsort label-9644
SELECT DISTINCT SUM ( ALL + 74 ) + + - 60 AS col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9645
SELECT COUNT( - 45 ) + - ( - 31 ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-9645
SELECT COUNT ( - 45 ) + - ( - 31 ) AS col2
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9646
SELECT ALL 84 + + 13 DIV + 86 * - COUNT( * ) + + - COUNT( * ) * 18 DIV 75 AS col0
----
84

skipif mysql # not compatible
query I rowsort label-9646
SELECT ALL 84 + + 13 / + 86 * - COUNT ( * ) + + - COUNT ( * ) * 18 / 75 AS col0
----
84

query II rowsort
SELECT 68 + 84 col2, - 88
----
152
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-9648
SELECT 84 * + 30 * COUNT( DISTINCT + 56 ) AS col0
----
2520

skipif mysql # not compatible
query I rowsort label-9648
SELECT 84 * + 30 * COUNT ( DISTINCT + 56 ) AS col0
----
2520

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9649
SELECT DISTINCT COUNT( * ) * + 78 - CAST( NULL AS DECIMAL ) * - 32 * - 83 AS col0, + 1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-9649
SELECT DISTINCT COUNT ( * ) * + 78 - CAST ( NULL AS REAL ) * - 32 * - 83 AS col0, + 1
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9650
SELECT DISTINCT - 34 * - - 72 * + 71 * + - COUNT( * ) - + 93 * + - 17
----
175389

skipif mysql # not compatible
query I rowsort label-9650
SELECT DISTINCT - 34 * - - 72 * + 71 * + - COUNT ( * ) - + 93 * + - 17
----
175389

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9651
SELECT ALL MIN( DISTINCT + 75 ) DIV 59 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9651
SELECT ALL MIN ( DISTINCT + 75 ) / 59 AS col2
----
1

query I rowsort
SELECT - 44 * ( 20 ) + 81 + 69 + - 87 AS col1
----
-817

query I rowsort
SELECT + 18 * + + ( 4 ) AS col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9654
SELECT + + CASE + 79 WHEN - - CASE + 88 WHEN + 7 * + - 34 * - + COUNT( * ) - - 8 - 45 THEN - 87 * 6 + 93 END + - NULLIF ( - COUNT( * ) + + COUNT( * ) / 58, - 5 ) THEN 41 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9654
SELECT + + CASE + 79 WHEN - - CASE + 88 WHEN + 7 * + - 34 * - + COUNT ( * ) - - 8 - 45 THEN - 87 * 6 + 93 END + - NULLIF ( - COUNT ( * ) + + COUNT ( * ) / 58, - 5 ) THEN 41 END
----
NULL

query I rowsort
SELECT + + 95 * - 88
----
-8360

onlyif mysql # aggregate syntax: 
query I rowsort label-9656
SELECT + - COUNT( * ) * + - 38 + COALESCE ( - 41, - 97 * COUNT( * ) - + - 14 ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-9656
SELECT + - COUNT ( * ) * + - 38 + COALESCE ( - 41, - 97 * COUNT ( * ) - + - 14 ) AS col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9657
SELECT ALL - 83 * + + 80 + - COUNT( * ) + - - 44 + 14
----
-6583

skipif mysql # not compatible
query I rowsort label-9657
SELECT ALL - 83 * + + 80 + - COUNT ( * ) + - - 44 + 14
----
-6583

onlyif mysql # aggregate syntax: 
query I rowsort label-9658
SELECT + + ( + - 92 ) + + + 97 * + COUNT( * ) * - 41 AS col2
----
-4069

skipif mysql # not compatible
query I rowsort label-9658
SELECT + + ( + - 92 ) + + + 97 * + COUNT ( * ) * - 41 AS col2
----
-4069

query I rowsort
SELECT ALL + ( - + 33 )
----
-33

query II rowsort
SELECT + - 35 + - 42 AS col1, - 36
----
-77
-36

query I rowsort
SELECT DISTINCT - ( - - 80 ) * + 40 AS col0
----
-3200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9662
SELECT ALL 3 + + 32 / - 74 * - + 22 * + CAST( NULL AS SIGNED ) * - COUNT( * ) * - + 19 * 83
----
NULL

skipif mysql # not compatible
query I rowsort label-9662
SELECT ALL 3 + + 32 / - 74 * - + 22 * + CAST ( NULL AS INTEGER ) * - COUNT ( * ) * - + 19 * 83
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9663
SELECT NULLIF ( 78, + - 39 / - 50 / + ( + COUNT( - 79 ) ) )
----
78

skipif mysql # not compatible
query I rowsort label-9663
SELECT NULLIF ( 78, + - 39 / - 50 / + ( + COUNT ( - 79 ) ) )
----
78

query I rowsort
SELECT - 43 + - + 99 * + 3 * + + 31 AS col0
----
-9250

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9665
SELECT CASE - 65 WHEN ( - 27 ) * - 29 / - 35 THEN 9 * COALESCE ( + 39 + + 73 * 92, 34 ) + COALESCE ( CAST( NULL AS SIGNED ), + 36 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9665
SELECT CASE - 65 WHEN ( - 27 ) * - 29 / - 35 THEN 9 * COALESCE ( + 39 + + 73 * 92, 34 ) + COALESCE ( CAST ( NULL AS INTEGER ), + 36 ) END AS col1
----
NULL

query I rowsort
SELECT ALL 62 + - 8 AS col1
----
54

query II rowsort
SELECT DISTINCT 32, 54 AS col1
----
32
54

query I rowsort
SELECT - 97 + - 66 col1
----
-163

query I rowsort
SELECT - 66 + 75 AS col0
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-9670
SELECT 97, + COUNT( * ) AS col1
----
97
1

skipif mysql # not compatible
query II rowsort label-9670
SELECT 97, + COUNT ( * ) AS col1
----
97
1

query I rowsort
SELECT - 43 + + - 75
----
-118

onlyif mysql # DIV for integer division: 
query I rowsort label-9672
SELECT ALL - 68 DIV + 90
----
0

skipif mysql # not compatible
query I rowsort label-9672
SELECT ALL - 68 / + 90
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9673
SELECT DISTINCT CASE - - 87 WHEN COUNT( * ) - - 77 THEN + 58 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9673
SELECT DISTINCT CASE - - 87 WHEN COUNT ( * ) - - 77 THEN + 58 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - 19 + + 78 col1
----
59

query I rowsort
SELECT DISTINCT 78 - - 29
----
107

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9676
SELECT - 48 + - CAST( 32 AS SIGNED )
----
-80

skipif mysql # not compatible
query I rowsort label-9676
SELECT - 48 + - CAST ( 32 AS INTEGER )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-9677
SELECT DISTINCT MAX( ALL - 19 ) AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-9677
SELECT DISTINCT MAX ( ALL - 19 ) AS col0
----
-19

query I rowsort
SELECT ALL + + 17 * 22 AS col1
----
374

query I rowsort
SELECT - 75 * - 40 * - - 87 * - + 9 col2
----
-2349000

query I rowsort
SELECT ALL + - ( + - 47 )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9681
SELECT DISTINCT + CASE + 96 WHEN 85 / - 9 THEN - 40 * - - 94 + MAX( + - 79 ) / 52 WHEN ( + 83 ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9681
SELECT DISTINCT + CASE + 96 WHEN 85 / - 9 THEN - 40 * - - 94 + MAX ( + - 79 ) / 52 WHEN ( + 83 ) THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9682
SELECT - + 5 * + SUM( DISTINCT ( - 13 ) ), - 51 col1
----
65
-51

skipif mysql # not compatible
query II rowsort label-9682
SELECT - + 5 * + SUM ( DISTINCT ( - 13 ) ), - 51 col1
----
65
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-9683
SELECT - - 1 DIV + + 99 + + 8
----
8

skipif mysql # not compatible
query I rowsort label-9683
SELECT - - 1 / + + 99 + + 8
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-9684
SELECT ALL - 29 DIV + 13 + - - 87 * + 73
----
6349

skipif mysql # not compatible
query I rowsort label-9684
SELECT ALL - 29 / + 13 + - - 87 * + 73
----
6349

query I rowsort
SELECT - 77 * + 60
----
-4620

query I rowsort
SELECT ALL - 50 * + 90 + - 34 + - - 2 AS col2
----
-4532

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9687
SELECT ALL + + 61 * 40 + - ( + + CASE ( + COUNT( * ) ) WHEN + + COUNT( * ) * + + 37 * CASE 26 * ( 55 ) WHEN 49 THEN NULL WHEN - 35 THEN + 59 * + 65 WHEN + CAST( NULL AS SIGNED ) THEN 54 * CAST( 11 AS DECIMAL ) END + - 12 THEN 59 * - CAST( NULL AS SIGNED ) END ) * 30 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9687
SELECT ALL + + 61 * 40 + - ( + + CASE ( + COUNT ( * ) ) WHEN + + COUNT ( * ) * + + 37 * CASE 26 * ( 55 ) WHEN 49 THEN NULL WHEN - 35 THEN + 59 * + 65 WHEN + CAST ( NULL AS INTEGER ) THEN 54 * CAST ( 11 AS REAL ) END + - 12 THEN 59 * - CAST ( NULL AS INTEGER ) END ) * 30 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9688
SELECT - - 78 * 31 DIV + 73, 92 * 0 * 95 AS col2
----
33
0

skipif mysql # not compatible
query II rowsort label-9688
SELECT - - 78 * 31 / + 73, 92 * 0 * 95 AS col2
----
33
0

query I rowsort
SELECT + + 72 * + 54 + + 49 * 72 + 93 AS col1
----
7509

onlyif mysql # DIV for integer division: 
query I rowsort label-9690
SELECT + + 23 DIV - 67 * + + 80 * + - 48 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9690
SELECT + + 23 / - 67 * + + 80 * + - 48 AS col0
----
0

query I rowsort
SELECT DISTINCT 19 * 89
----
1691

query I rowsort
SELECT DISTINCT + 23 * + 53 + 86
----
1305

onlyif mysql # aggregate syntax: 
query I rowsort label-9693
SELECT ALL + ( MIN( 42 ) ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-9693
SELECT ALL + ( MIN ( 42 ) ) AS col2
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-9694
SELECT DISTINCT 70 * - + 55 * + 3 + + 37 DIV + 80 col2
----
-11550

skipif mysql # not compatible
query I rowsort label-9694
SELECT DISTINCT 70 * - + 55 * + 3 + + 37 / + 80 col2
----
-11550

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9695
SELECT DISTINCT 85 * COUNT( * ) DIV - - 62 col0
----
1

skipif mysql # not compatible
query I rowsort label-9695
SELECT DISTINCT 85 * COUNT ( * ) / - - 62 col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9696
SELECT SUM( DISTINCT + - 27 ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-9696
SELECT SUM ( DISTINCT + - 27 ) AS col2
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9697
SELECT - CAST( - ( + + 78 ) AS SIGNED )
----
78

skipif mysql # not compatible
query I rowsort label-9697
SELECT - CAST ( - ( + + 78 ) AS INTEGER )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9698
SELECT DISTINCT 20 * COALESCE ( 25, - - COUNT( * ), - 80 ) * + + 3 * - 72 * - 45
----
4860000

skipif mysql # not compatible
query I rowsort label-9698
SELECT DISTINCT 20 * COALESCE ( 25, - - COUNT ( * ), - 80 ) * + + 3 * - 72 * - 45
----
4860000

query I rowsort
SELECT + 85 + 50
----
135

query I rowsort
SELECT + ( - 88 ) + 27
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-9701
SELECT + ( - ( + 14 ) ) * - 25 * - 73, - ( - COUNT( 69 ) ) AS col2
----
-25550
1

skipif mysql # not compatible
query II rowsort label-9701
SELECT + ( - ( + 14 ) ) * - 25 * - 73, - ( - COUNT ( 69 ) ) AS col2
----
-25550
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9702
SELECT DISTINCT COALESCE ( + ( - ( + COALESCE ( + 59, - 65 * - 39 DIV CAST( + 52 AS SIGNED ), + 60 * - 9 ) ) ), COUNT( ALL 45 ) * + 19 ) DIV + 1
----
-59

skipif mysql # not compatible
query I rowsort label-9702
SELECT DISTINCT COALESCE ( + ( - ( + COALESCE ( + 59, - 65 * - 39 / CAST ( + 52 AS INTEGER ), + 60 * - 9 ) ) ), COUNT ( ALL 45 ) * + 19 ) / + 1
----
-59

onlyif mysql # aggregate syntax: 
query III rowsort label-9703
SELECT ALL 7 * + + 87 AS col2, COUNT( * ) - - ( - 20 ) AS col1, + - 51
----
609
-19
-51

skipif mysql # not compatible
query III rowsort label-9703
SELECT ALL 7 * + + 87 AS col2, COUNT ( * ) - - ( - 20 ) AS col1, + - 51
----
609
-19
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9704
SELECT 29 * - COUNT( * ) * - 31
----
899

skipif mysql # not compatible
query I rowsort label-9704
SELECT 29 * - COUNT ( * ) * - 31
----
899

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9705
SELECT MAX( - 13 ) DIV - 79 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9705
SELECT MAX ( - 13 ) / - 79 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9706
SELECT NULLIF ( - 82, 69 + 8 ) + - 9 - 85 + - + 6 - + - ( - + ( CASE COUNT( * ) WHEN ( + COUNT( * ) ) THEN + MAX( DISTINCT - 5 ) DIV 80 WHEN - 55 THEN NULL END ) ) col0
----
-182

skipif mysql # not compatible
query I rowsort label-9706
SELECT NULLIF ( - 82, 69 + 8 ) + - 9 - 85 + - + 6 - + - ( - + ( CASE COUNT ( * ) WHEN ( + COUNT ( * ) ) THEN + MAX ( DISTINCT - 5 ) / 80 WHEN - 55 THEN NULL END ) ) col0
----
-182

onlyif mysql # DIV for integer division: 
query I rowsort label-9707
SELECT DISTINCT - - 35 DIV - 58 * + - 50 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9707
SELECT DISTINCT - - 35 / - 58 * + - 50 AS col2
----
0

query I rowsort
SELECT ALL + 48 + 20 * 38
----
808

query I rowsort
SELECT 61 - - + 48 AS col0
----
109

query I rowsort
SELECT DISTINCT + + 23 + CASE + - 62 WHEN - + 17 THEN - 90 WHEN + COALESCE ( 39, - 74 * + - ( - 5 ) ) * 17 THEN NULL ELSE 38 * + 64 END AS col1
----
2455

onlyif mysql # DIV for integer division: 
query I rowsort label-9711
SELECT - 14 DIV - 58 + + - 52 - + + 90 + 43 AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-9711
SELECT - 14 / - 58 + + - 52 - + + 90 + 43 AS col0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9712
SELECT DISTINCT - COUNT( * ) + - - COUNT( * ) * 81 AS col2
----
80

skipif mysql # not compatible
query I rowsort label-9712
SELECT DISTINCT - COUNT ( * ) + - - COUNT ( * ) * 81 AS col2
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9713
SELECT + - COALESCE ( + 32, + ( - 68 ) ), 12 - + + COALESCE ( 92, + - 10 * + COUNT( * ) ) DIV - MAX( DISTINCT + 35 DIV + 6 ) AS col2
----
-32
30

skipif mysql # not compatible
query II rowsort label-9713
SELECT + - COALESCE ( + 32, + ( - 68 ) ), 12 - + + COALESCE ( 92, + - 10 * + COUNT ( * ) ) / - MAX ( DISTINCT + 35 / + 6 ) AS col2
----
-32
30

onlyif mysql # aggregate syntax: 
query II rowsort label-9714
SELECT ALL - - 93 + - 26 + - 8 * - + 54, MAX( ALL 2 ) + - 53 * - - COALESCE ( + + 14, 51, - 64 + + 81 * 84 ) * + 30 AS col0
----
499
-22258

skipif mysql # not compatible
query II rowsort label-9714
SELECT ALL - - 93 + - 26 + - 8 * - + 54, MAX ( ALL 2 ) + - 53 * - - COALESCE ( + + 14, 51, - 64 + + 81 * 84 ) * + 30 AS col0
----
499
-22258

query I rowsort
SELECT + 28 + + 6 + + - 95
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-9716
SELECT + NULLIF ( COUNT( * ), 38 )
----
1

skipif mysql # not compatible
query I rowsort label-9716
SELECT + NULLIF ( COUNT ( * ), 38 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9717
SELECT + NULLIF ( + - CASE + - 72 WHEN - ( - + 56 ) * ( - 12 ) + + + 9 + - 66 + - 71 THEN COUNT( * ) * - 4 ELSE NULL END, - ( 2 ) ) - 40 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9717
SELECT + NULLIF ( + - CASE + - 72 WHEN - ( - + 56 ) * ( - 12 ) + + + 9 + - 66 + - 71 THEN COUNT ( * ) * - 4 ELSE NULL END, - ( 2 ) ) - 40 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9718
SELECT ALL - - 80 + - - NULLIF ( + CASE + 38 WHEN + 56 THEN - - 80 / + 17 WHEN + COUNT( * ) THEN - COUNT( * ) ELSE NULL END, 40 + ( - 20 ) ) * + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-9718
SELECT ALL - - 80 + - - NULLIF ( + CASE + 38 WHEN + 56 THEN - - 80 / + 17 WHEN + COUNT ( * ) THEN - COUNT ( * ) ELSE NULL END, 40 + ( - 20 ) ) * + 33
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9719
SELECT ALL - + SUM( + 59 ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-9719
SELECT ALL - + SUM ( + 59 ) AS col2
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9720
SELECT - + 74 * + + 80 + COUNT( * ) AS col2
----
-5919

skipif mysql # not compatible
query I rowsort label-9720
SELECT - + 74 * + + 80 + COUNT ( * ) AS col2
----
-5919

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9721
SELECT - CAST( + 50 AS SIGNED ) AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-9721
SELECT - CAST ( + 50 AS INTEGER ) AS col1
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9722
SELECT ALL - + MAX( - 75 ) * - 61 + 79 + - CAST( + COUNT( + 26 ) AS SIGNED ) + 16 * + 41 * 53
----
30271

skipif mysql # not compatible
query I rowsort label-9722
SELECT ALL - + MAX ( - 75 ) * - 61 + 79 + - CAST ( + COUNT ( + 26 ) AS INTEGER ) + 16 * + 41 * 53
----
30271

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9723
SELECT DISTINCT - NULLIF ( + 50, + + 81 + + CAST( + + 85 AS SIGNED ) * 21 )
----
-50

skipif mysql # not compatible
query I rowsort label-9723
SELECT DISTINCT - NULLIF ( + 50, + + 81 + + CAST ( + + 85 AS INTEGER ) * 21 )
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-9724
SELECT ALL 73 DIV - 55 col2
----
-1

skipif mysql # not compatible
query I rowsort label-9724
SELECT ALL 73 / - 55 col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9725
SELECT MIN( ALL + + 38 ) * + - 77 + 61
----
-2865

skipif mysql # not compatible
query I rowsort label-9725
SELECT MIN ( ALL + + 38 ) * + - 77 + 61
----
-2865

query I rowsort
SELECT ALL 25 * - 62 AS col0
----
-1550

onlyif mysql # aggregate syntax: 
query II rowsort label-9727
SELECT DISTINCT 49 AS col2, NULLIF ( + 54, + + COUNT( + - 47 ) ) - - COUNT( * )
----
49
55

skipif mysql # not compatible
query II rowsort label-9727
SELECT DISTINCT 49 AS col2, NULLIF ( + 54, + + COUNT ( + - 47 ) ) - - COUNT ( * )
----
49
55

query I rowsort
SELECT 10 * 86 AS col1
----
860

query I rowsort
SELECT DISTINCT 31 * + 4 AS col2
----
124

query II rowsort
SELECT 73 AS col2, - 34 * 27 AS col2
----
73
-918

query I rowsort
SELECT 0 + 79 AS col1
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-9732
SELECT 89 AS col1, + SUM( 69 ) + COUNT( * ) AS col0
----
89
70

skipif mysql # not compatible
query II rowsort label-9732
SELECT 89 AS col1, + SUM ( 69 ) + COUNT ( * ) AS col0
----
89
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9733
SELECT COALESCE ( 46, - 81 + - 79 + - 88 + - 91 * 42, 69 * + - CAST( NULL AS SIGNED ) ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-9733
SELECT COALESCE ( 46, - 81 + - 79 + - 88 + - 91 * 42, 69 * + - CAST ( NULL AS INTEGER ) ) AS col1
----
46

query I rowsort
SELECT - 93 * - - 18 * - 42 AS col2
----
70308

query I rowsort
SELECT ALL 67 + + - 11
----
56

query I rowsort
SELECT DISTINCT 11 + + 88 * ( + + 17 ) * - - 81 AS col2
----
121187

onlyif mysql # aggregate syntax: 
query I rowsort label-9737
SELECT + 59 + - - COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-9737
SELECT + 59 + - - COUNT ( * )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9738
SELECT ALL + 16 + + 23 + - + 50 * - - MIN( DISTINCT + 76 ) AS col1
----
-3761

skipif mysql # not compatible
query I rowsort label-9738
SELECT ALL + 16 + + 23 + - + 50 * - - MIN ( DISTINCT + 76 ) AS col1
----
-3761

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9739
SELECT + COALESCE ( + COUNT( * ), 49 DIV AVG ( DISTINCT + 88 ) + - 98 + + 32 + 89 * + - MAX( + 64 ) * 65 * ( 75 ), 16 - 37 ) - - 30
----
31

skipif mysql # not compatible
query I rowsort label-9739
SELECT + COALESCE ( + COUNT ( * ), 49 / AVG ( DISTINCT + 88 ) + - 98 + + 32 + 89 * + - MAX ( + 64 ) * 65 * ( 75 ), 16 - 37 ) - - 30
----
31

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9740
SELECT + - CAST( NULL AS DECIMAL ) AS col0, 91 AS col2
----
NULL
91

skipif mysql # not compatible
query II rowsort label-9740
SELECT + - CAST ( NULL AS REAL ) AS col0, 91 AS col2
----
NULL
91

query I rowsort
SELECT ALL CASE 31 WHEN + COALESCE ( 57, + AVG ( + 38 ) ) THEN + 37 + + 78 + - 20 ELSE + - 26 * - 64 END * + ( 76 + ( + 64 ) )
----
232960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9742
SELECT 37 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9742
SELECT 37 + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9743
SELECT ALL + CAST( NULL AS DECIMAL ) / + 27 + - + 47 * - + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-9743
SELECT ALL + CAST ( NULL AS REAL ) / + 27 + - + 47 * - + 33
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9744
SELECT 24 DIV + 15
----
1

skipif mysql # not compatible
query I rowsort label-9744
SELECT 24 / + 15
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9745
SELECT ALL - + MIN( DISTINCT - 36 ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-9745
SELECT ALL - + MIN ( DISTINCT - 36 ) AS col1
----
36

query II rowsort
SELECT DISTINCT - 17 AS col2, 36
----
-17
36

query I rowsort
SELECT 95 * - + 62 AS col2
----
-5890

onlyif mysql # aggregate syntax: 
query I rowsort label-9748
SELECT ALL - MAX( - 3 ) * + 54 AS col1
----
162

skipif mysql # not compatible
query I rowsort label-9748
SELECT ALL - MAX ( - 3 ) * + 54 AS col1
----
162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9749
SELECT + 76, - CAST( NULL AS SIGNED ) * + CASE - COUNT( ALL + 20 ) WHEN - + 26 + 81 THEN - 78 * - 0 WHEN + COUNT( * ) THEN 47 WHEN 64 THEN NULL ELSE + 43 END AS col2
----
76
NULL

skipif mysql # not compatible
query II rowsort label-9749
SELECT + 76, - CAST ( NULL AS INTEGER ) * + CASE - COUNT ( ALL + 20 ) WHEN - + 26 + 81 THEN - 78 * - 0 WHEN + COUNT ( * ) THEN 47 WHEN 64 THEN NULL ELSE + 43 END AS col2
----
76
NULL

query II rowsort
SELECT + 78 col1, 77
----
78
77

query II rowsort
SELECT - 55 * 91 * ( 3 ), + 10 AS col1
----
-15015
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9752
SELECT - CAST( NULL AS SIGNED ) - - + ( + AVG ( 29 ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9752
SELECT - CAST ( NULL AS INTEGER ) - - + ( + AVG ( 29 ) ) col0
----
NULL

query I rowsort
SELECT ALL + NULLIF ( 21, - 80 )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9754
SELECT ALL - MIN( ( 63 ) ) * - + 79 * - 63 - + 46 + - + 14
----
-313611

skipif mysql # not compatible
query I rowsort label-9754
SELECT ALL - MIN ( ( 63 ) ) * - + 79 * - 63 - + 46 + - + 14
----
-313611

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9755
SELECT DISTINCT MAX( ALL + CAST( + - 0 AS SIGNED ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9755
SELECT DISTINCT MAX ( ALL + CAST ( + - 0 AS INTEGER ) ) AS col2
----
0

query I rowsort
SELECT - 25 * 87
----
-2175

onlyif mysql # aggregate syntax: 
query I rowsort label-9757
SELECT DISTINCT - 64 + + MIN( DISTINCT 80 )
----
16

skipif mysql # not compatible
query I rowsort label-9757
SELECT DISTINCT - 64 + + MIN ( DISTINCT 80 )
----
16

query I rowsort
SELECT - 60 * + 20
----
-1200

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9759
SELECT - 89 DIV MIN( DISTINCT 61 ) * - - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-9759
SELECT - 89 / MIN ( DISTINCT 61 ) * - - COUNT ( * )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9760
SELECT - 48 + + CAST( - - CASE + 1 WHEN - 77 * - CAST( 15 AS SIGNED ) * - COUNT( * ) THEN 59 END AS SIGNED ) - + 13 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9760
SELECT - 48 + + CAST ( - - CASE + 1 WHEN - 77 * - CAST ( 15 AS INTEGER ) * - COUNT ( * ) THEN 59 END AS INTEGER ) - + 13 AS col0
----
NULL

query I rowsort
SELECT + 54 - 8 AS col2
----
46

query I rowsort
SELECT DISTINCT + 19 + - - NULLIF ( + 22, + + 5 )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9763
SELECT ALL MIN( + 21 ) + - COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-9763
SELECT ALL MIN ( + 21 ) + - COUNT ( * )
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9764
SELECT DISTINCT + + CAST( + 13 AS SIGNED ) + 29
----
42

skipif mysql # not compatible
query I rowsort label-9764
SELECT DISTINCT + + CAST ( + 13 AS INTEGER ) + 29
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9765
SELECT ALL ( + - NULLIF ( - 54, - COUNT( * ) * 14 + - 22 + - COUNT( * ) ) )
----
54

skipif mysql # not compatible
query I rowsort label-9765
SELECT ALL ( + - NULLIF ( - 54, - COUNT ( * ) * 14 + - 22 + - COUNT ( * ) ) )
----
54

query I rowsort
SELECT ALL + - 1 + - 64
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9767
SELECT ALL - + 39 + + ( - CAST( + MAX( ALL - 49 ) AS SIGNED ) )
----
10

skipif mysql # not compatible
query I rowsort label-9767
SELECT ALL - + 39 + + ( - CAST ( + MAX ( ALL - 49 ) AS INTEGER ) )
----
10

query II rowsort
SELECT - 97 + - 37, - 75 * + 20 col1
----
-134
-1500

onlyif mysql # aggregate syntax: 
query II rowsort label-9769
SELECT + 40 AS col1, COALESCE ( COUNT( * ), - 2 ) AS col2
----
40
1

skipif mysql # not compatible
query II rowsort label-9769
SELECT + 40 AS col1, COALESCE ( COUNT ( * ), - 2 ) AS col2
----
40
1

query II rowsort
SELECT ALL + 26, - 60 * 58 AS col0
----
26
-3480

query II rowsort
SELECT + 73, - 54 * 68 AS col0
----
73
-3672

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9772
SELECT + 84 + - COUNT( * ) + - + COALESCE ( + - 4, + + 53 DIV 8 * + COALESCE ( + - COUNT( * ), NULLIF ( 15, + 89 DIV - COUNT( * ) ), 88 ) )
----
87

skipif mysql # not compatible
query I rowsort label-9772
SELECT + 84 + - COUNT ( * ) + - + COALESCE ( + - 4, + + 53 / 8 * + COALESCE ( + - COUNT ( * ), NULLIF ( 15, + 89 / - COUNT ( * ) ), 88 ) )
----
87

query II rowsort
SELECT DISTINCT 18 AS col2, + 67 + 74 AS col1
----
18
141

query I rowsort
SELECT ALL - 5 - + - 49 AS col1
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9775
SELECT + + NULLIF ( + CASE - 41 WHEN + - COUNT( * ) * - 29 * + + MIN( DISTINCT 89 ) THEN NULL WHEN + 71 THEN NULL ELSE - 30 * + COALESCE ( COUNT( ALL - CAST( NULL AS SIGNED ) ), 70, ( 42 ) * + 32 + 78, + CASE + COUNT( * ) WHEN - 24 THEN + COUNT( * ) * + MIN( 17 ) WHEN + SUM( ALL 37 ) THEN NULL ELSE NULL END ) END, 20 ) - 3 * 15
----
-45

skipif mysql # not compatible
query I rowsort label-9775
SELECT + + NULLIF ( + CASE - 41 WHEN + - COUNT ( * ) * - 29 * + + MIN ( DISTINCT 89 ) THEN NULL WHEN + 71 THEN NULL ELSE - 30 * + COALESCE ( COUNT ( ALL - CAST ( NULL AS INTEGER ) ), 70, ( 42 ) * + 32 + 78, + CASE + COUNT ( * ) WHEN - 24 THEN + COUNT ( * ) * + MIN ( 17 ) WHEN + SUM ( ALL 37 ) THEN NULL ELSE NULL END ) END, 20 ) - 3 * 15
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9776
SELECT DISTINCT + - 25, COALESCE ( + NULLIF ( + + 21, 78 + + MAX( DISTINCT + 99 ) ), ( - 95 ) * - - CAST( NULL AS SIGNED ) DIV + + MIN( + 98 ) * - 3 ) AS col0
----
-25
21

skipif mysql # not compatible
query II rowsort label-9776
SELECT DISTINCT + - 25, COALESCE ( + NULLIF ( + + 21, 78 + + MAX ( DISTINCT + 99 ) ), ( - 95 ) * - - CAST ( NULL AS INTEGER ) / + + MIN ( + 98 ) * - 3 ) AS col0
----
-25
21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9777
SELECT ALL + CAST( NULL AS SIGNED ) AS col2, CAST( NULL AS SIGNED ) AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9777
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2, CAST ( NULL AS INTEGER ) AS col0
----
NULL
NULL

query II rowsort
SELECT + + 85 AS col2, 82 AS col0
----
85
82

query I rowsort
SELECT + 87 * + 87 + 21 + - - 83 + - + 87 * 52
----
3149

onlyif mysql # aggregate syntax: 
query I rowsort label-9780
SELECT + 26 + - 22 * COUNT( * ) + - 56 - 14
----
-66

skipif mysql # not compatible
query I rowsort label-9780
SELECT + 26 + - 22 * COUNT ( * ) + - 56 - 14
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-9781
SELECT + 45 DIV + - 81 - - 10 AS col1
----
10

skipif mysql # not compatible
query I rowsort label-9781
SELECT + 45 / + - 81 - - 10 AS col1
----
10

query I rowsort
SELECT - 68 - + 84 AS col1
----
-152

query I rowsort
SELECT + ( - ( - - 70 ) ) AS col1
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-9784
SELECT CASE + + COUNT( 84 ) WHEN + + 84 THEN NULL WHEN - 49 THEN + 23 ELSE + 13 END
----
13

skipif mysql # not compatible
query I rowsort label-9784
SELECT CASE + + COUNT ( 84 ) WHEN + + 84 THEN NULL WHEN - 49 THEN + 23 ELSE + 13 END
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9785
SELECT ALL 20 * + CASE + - 83 WHEN - COUNT( * ) / - 86 * 65 THEN NULL WHEN + 18 + + 76 THEN NULL WHEN 8 * 11 + + ( - 20 ) - 19 * 53 THEN + 86 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9785
SELECT ALL 20 * + CASE + - 83 WHEN - COUNT ( * ) / - 86 * 65 THEN NULL WHEN + 18 + + 76 THEN NULL WHEN 8 * 11 + + ( - 20 ) - 19 * 53 THEN + 86 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9786
SELECT ALL ( + 58 ) * MIN( 79 ) * - 54 * + - 44 + + 29 * + NULLIF ( - 69, COUNT( * ) ) * + 73 - 95 - COUNT( * ) + + 70 AS col1
----
10740733

skipif mysql # not compatible
query I rowsort label-9786
SELECT ALL ( + 58 ) * MIN ( 79 ) * - 54 * + - 44 + + 29 * + NULLIF ( - 69, COUNT ( * ) ) * + 73 - 95 - COUNT ( * ) + + 70 AS col1
----
10740733

onlyif mysql # aggregate syntax: 
query I rowsort label-9787
SELECT DISTINCT + MIN( 53 ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-9787
SELECT DISTINCT + MIN ( 53 ) AS col1
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9788
SELECT - 60 + NULLIF ( - COALESCE ( COALESCE ( 67, + 54 ), + - 76 + + COUNT( * ) ), - COUNT( + 76 ) )
----
-127

skipif mysql # not compatible
query I rowsort label-9788
SELECT - 60 + NULLIF ( - COALESCE ( COALESCE ( 67, + 54 ), + - 76 + + COUNT ( * ) ), - COUNT ( + 76 ) )
----
-127

query I rowsort
SELECT ALL - 66 * 19 * - 43 + + ( 15 )
----
53937

query I rowsort
SELECT + 48 * 68 * + 32 col0
----
104448

query I rowsort
SELECT - 54 + 8 * - + 58 + + 72
----
-446

onlyif mysql # aggregate syntax: 
query I rowsort label-9792
SELECT MIN( - - 64 )
----
64

skipif mysql # not compatible
query I rowsort label-9792
SELECT MIN ( - - 64 )
----
64

query I rowsort
SELECT DISTINCT + 33 * - - 65 + - + 28
----
2117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9794
SELECT - 18 * + - NULLIF ( + ( + 51 ), CASE CASE - CAST( + COUNT( * ) AS SIGNED ) WHEN - 67 - - 30 * - ( + 80 ) * + 77 THEN 25 + + 22 END WHEN - 17 + + 75 / - NULLIF ( + NULLIF ( COUNT( * ), + 66 ) * - SUM( + 95 * 95 ), - 36 * ( + CAST( NULL AS SIGNED ) * + 69 ) ) THEN 83 END ) AS col2
----
918

skipif mysql # not compatible
query I rowsort label-9794
SELECT - 18 * + - NULLIF ( + ( + 51 ), CASE CASE - CAST ( + COUNT ( * ) AS INTEGER ) WHEN - 67 - - 30 * - ( + 80 ) * + 77 THEN 25 + + 22 END WHEN - 17 + + 75 / - NULLIF ( + NULLIF ( COUNT ( * ), + 66 ) * - SUM ( + 95 * 95 ), - 36 * ( + CAST ( NULL AS INTEGER ) * + 69 ) ) THEN 83 END ) AS col2
----
918

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9795
SELECT ALL CAST( - + 85 AS SIGNED ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-9795
SELECT ALL CAST ( - + 85 AS INTEGER ) AS col0
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9796
SELECT - 58 * + ( COALESCE ( - - 35, - 85 ) ) + - 46 * + COUNT( * ) DIV + 51 * + - 23 AS col1
----
-2030

skipif mysql # not compatible
query I rowsort label-9796
SELECT - 58 * + ( COALESCE ( - - 35, - 85 ) ) + - 46 * + COUNT ( * ) / + 51 * + - 23 AS col1
----
-2030

onlyif mysql # aggregate syntax: 
query I rowsort label-9797
SELECT DISTINCT + + COUNT( * ) + 5 * + 33 * 63 AS col0
----
10396

skipif mysql # not compatible
query I rowsort label-9797
SELECT DISTINCT + + COUNT ( * ) + 5 * + 33 * 63 AS col0
----
10396

onlyif mysql # DIV for integer division: 
query I rowsort label-9798
SELECT - - 22 DIV + 49 * - 50 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9798
SELECT - - 22 / + 49 * - 50 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9799
SELECT DISTINCT NULLIF ( NULLIF ( - CASE + 46 WHEN COUNT( * ) THEN - 6 WHEN 23 THEN + - 31 END, - - 70 * - 94 * + 18 * - MAX( ALL - 93 ) / - NULLIF ( NULLIF ( + 16, + MAX( 45 ) + COUNT( * ) ), 19 * 86 ) + + COALESCE ( + 63 + - 61 / 58, + 37 + 55, + 97 ) + COALESCE ( + COUNT( * ) + 88, NULLIF ( 63, 71 * 72 ) * + NULLIF ( + 12 * 62, COUNT( * ) / 90 ) ) * AVG ( + 30 - + 18 ) ), 99 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9799
SELECT DISTINCT NULLIF ( NULLIF ( - CASE + 46 WHEN COUNT ( * ) THEN - 6 WHEN 23 THEN + - 31 END, - - 70 * - 94 * + 18 * - MAX ( ALL - 93 ) / - NULLIF ( NULLIF ( + 16, + MAX ( 45 ) + COUNT ( * ) ), 19 * 86 ) + + COALESCE ( + 63 + - 61 / 58, + 37 + 55, + 97 ) + COALESCE ( + COUNT ( * ) + 88, NULLIF ( 63, 71 * 72 ) * + NULLIF ( + 12 * 62, COUNT ( * ) / 90 ) ) * AVG ( + 30 - + 18 ) ), 99 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9800
SELECT - 85 - + + COUNT( * ) + + + 86 DIV - COUNT( * ) AS col2
----
-172

skipif mysql # not compatible
query I rowsort label-9800
SELECT - 85 - + + COUNT ( * ) + + + 86 / - COUNT ( * ) AS col2
----
-172

onlyif mysql # aggregate syntax: 
query I rowsort label-9801
SELECT - + MIN( + 90 ) AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-9801
SELECT - + MIN ( + 90 ) AS col2
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9802
SELECT - 99 DIV - CAST( - COALESCE ( COALESCE ( - 56, - - 66 + + COUNT( * ) * + NULLIF ( - 51, 52 ) * 5 ), - + 26 ) AS SIGNED ) + COUNT( * ) col0
----
2

skipif mysql # not compatible
query I rowsort label-9802
SELECT - 99 / - CAST ( - COALESCE ( COALESCE ( - 56, - - 66 + + COUNT ( * ) * + NULLIF ( - 51, 52 ) * 5 ), - + 26 ) AS INTEGER ) + COUNT ( * ) col0
----
2

query II rowsort
SELECT ALL + + 74 * - 7 AS col2, 25 * + - COALESCE ( 79, CASE 18 WHEN + 0 THEN NULL ELSE + 16 END * ( - + 75 ) + - 93 )
----
-518
-1975

query I rowsort
SELECT ALL - CASE 8 WHEN + 68 * NULLIF ( + + 23, - - 80 ) * 58 - - 11 THEN 8 * - 17 + - 80 ELSE NULL END - - 66 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9805
SELECT - + 95 DIV 2 + + + 34 + - NULLIF ( - 26, + + 52 * + - 16 + - - 11 * + - CAST( 27 AS SIGNED ) DIV - 72 + - 46 ) + 52 * 80 * 48
----
199693

skipif mysql # not compatible
query I rowsort label-9805
SELECT - + 95 / 2 + + + 34 + - NULLIF ( - 26, + + 52 * + - 16 + - - 11 * + - CAST ( 27 AS INTEGER ) / - 72 + - 46 ) + 52 * 80 * 48
----
199693

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9806
SELECT DISTINCT - ( + - 4 ) AS col1, + 77 DIV - 26 - + - 52 + COUNT( * ) * + MIN( - 40 ) * MAX( DISTINCT - - CAST( + + 32 AS SIGNED ) ) * MAX( 75 ) AS col1
----
4
-95950

skipif mysql # not compatible
query II rowsort label-9806
SELECT DISTINCT - ( + - 4 ) AS col1, + 77 / - 26 - + - 52 + COUNT ( * ) * + MIN ( - 40 ) * MAX ( DISTINCT - - CAST ( + + 32 AS INTEGER ) ) * MAX ( 75 ) AS col1
----
4
-95950

onlyif mysql # aggregate syntax: 
query I rowsort label-9807
SELECT ALL + 73 * + - COUNT( * ) AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-9807
SELECT ALL + 73 * + - COUNT ( * ) AS col1
----
-73

query I rowsort
SELECT ALL + 15 * + 34 AS col1
----
510

onlyif mysql # aggregate syntax: 
query III rowsort label-9809
SELECT ALL MIN( DISTINCT - + 61 ), - 41 * 8 * - 85 AS col2, - 54 AS col1
----
-61
27880
-54

skipif mysql # not compatible
query III rowsort label-9809
SELECT ALL MIN ( DISTINCT - + 61 ), - 41 * 8 * - 85 AS col2, - 54 AS col1
----
-61
27880
-54

query I rowsort
SELECT + 85 * - - 53
----
4505

query I rowsort
SELECT ALL + + ( + + 37 )
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-9812
SELECT - + 32 DIV - - 43 + - - 49
----
49

skipif mysql # not compatible
query I rowsort label-9812
SELECT - + 32 / - - 43 + - - 49
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9813
SELECT ALL - 49 AS col1, COUNT( * ) + + + 63 + CAST( - 88 AS SIGNED ) AS col0
----
-49
-24

skipif mysql # not compatible
query II rowsort label-9813
SELECT ALL - 49 AS col1, COUNT ( * ) + + + 63 + CAST ( - 88 AS INTEGER ) AS col0
----
-49
-24

query I rowsort
SELECT ALL 2 + + 45
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9815
SELECT ALL MIN( 63 ) DIV - ( COUNT( * ) ) - ( MAX( - 2 ) ) DIV + 35 AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-9815
SELECT ALL MIN ( 63 ) / - ( COUNT ( * ) ) - ( MAX ( - 2 ) ) / + 35 AS col1
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9816
SELECT ( + 39 ) * + CAST( NULL AS SIGNED ) * - + 50 * - - COUNT( * ) / + ( - 46 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9816
SELECT ( + 39 ) * + CAST ( NULL AS INTEGER ) * - + 50 * - - COUNT ( * ) / + ( - 46 ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9817
SELECT ALL CAST( + CASE + 7 WHEN - 36 THEN ( - 7 ) * + 26 + CAST( - + 76 AS SIGNED ) + 54 WHEN - 34 * + 54 THEN NULL ELSE NULL END AS SIGNED ) + 57 + + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-9817
SELECT ALL CAST ( + CASE + 7 WHEN - 36 THEN ( - 7 ) * + 26 + CAST ( - + 76 AS INTEGER ) + 54 WHEN - 34 * + 54 THEN NULL ELSE NULL END AS INTEGER ) + 57 + + 66
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9818
SELECT DISTINCT NULLIF ( 12, + 77 ) * - CAST( - 97 AS SIGNED ) + - + 18 - + 43 - 26
----
1077

skipif mysql # not compatible
query I rowsort label-9818
SELECT DISTINCT NULLIF ( 12, + 77 ) * - CAST ( - 97 AS INTEGER ) + - + 18 - + 43 - 26
----
1077

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9819
SELECT ( + 57 ) * - MIN( - + 96 ) - NULLIF ( 53, - 37 * COUNT( * ) ) + MIN( ALL - ( 16 ) ) - ( - + 79 ) DIV 42
----
5404

skipif mysql # not compatible
query I rowsort label-9819
SELECT ( + 57 ) * - MIN ( - + 96 ) - NULLIF ( 53, - 37 * COUNT ( * ) ) + MIN ( ALL - ( 16 ) ) - ( - + 79 ) / 42
----
5404

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9820
SELECT ( 4 ) / - CAST( NULL AS SIGNED ) * 49 / + 62 / - + 6 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9820
SELECT ( 4 ) / - CAST ( NULL AS INTEGER ) * 49 / + 62 / - + 6 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9821
SELECT ALL - SUM( 76 ) AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-9821
SELECT ALL - SUM ( 76 ) AS col0
----
-76

onlyif mysql # DIV for integer division: 
query II rowsort label-9822
SELECT + 97, 93 + - - 61 DIV - 11 AS col0
----
97
88

skipif mysql # not compatible
query II rowsort label-9822
SELECT + 97, 93 + - - 61 / - 11 AS col0
----
97
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9823
SELECT ALL NULLIF ( - 78, 66 ) + - + CAST( 20 AS SIGNED ) col2
----
-98

skipif mysql # not compatible
query I rowsort label-9823
SELECT ALL NULLIF ( - 78, 66 ) + - + CAST ( 20 AS INTEGER ) col2
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-9824
SELECT ALL COUNT( * ) * - 89 AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-9824
SELECT ALL COUNT ( * ) * - 89 AS col1
----
-89

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9825
SELECT ALL - MAX( ALL + CAST( NULL AS DECIMAL ) ) / + 10 + 95 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9825
SELECT ALL - MAX ( ALL + CAST ( NULL AS REAL ) ) / + 10 + 95 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 42 + ( 87 ) AS col1
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-9827
SELECT ALL NULLIF ( + CASE + + 53 WHEN + 83 THEN - 55 WHEN 38 - COUNT( * ) THEN NULL END, 1 + 38 ) + + + 35 * ( + 9 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9827
SELECT ALL NULLIF ( + CASE + + 53 WHEN + 83 THEN - 55 WHEN 38 - COUNT ( * ) THEN NULL END, 1 + 38 ) + + + 35 * ( + 9 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9828
SELECT DISTINCT 59 DIV - COUNT( * ) * + - COUNT( * ) AS col2, - 81 * 28 * - 29 AS col2
----
59
65772

skipif mysql # not compatible
query II rowsort label-9828
SELECT DISTINCT 59 / - COUNT ( * ) * + - COUNT ( * ) AS col2, - 81 * 28 * - 29 AS col2
----
59
65772

onlyif mysql # aggregate syntax: 
query II rowsort label-9829
SELECT ALL - 33, - COUNT( * ) AS col2
----
-33
-1

skipif mysql # not compatible
query II rowsort label-9829
SELECT ALL - 33, - COUNT ( * ) AS col2
----
-33
-1

query I rowsort
SELECT - + ( + + ( + 92 ) )
----
-92

query I rowsort
SELECT + 53 - 67 * - - 99 AS col0
----
-6580

onlyif mysql # DIV for integer division: 
query II rowsort label-9832
SELECT - - 53 AS col1, + 70 * 63 DIV + 26
----
53
169

skipif mysql # not compatible
query II rowsort label-9832
SELECT - - 53 AS col1, + 70 * 63 / + 26
----
53
169

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9833
SELECT ALL + + 71 - - COUNT( * ) + - 24 DIV - - 27
----
72

skipif mysql # not compatible
query I rowsort label-9833
SELECT ALL + + 71 - - COUNT ( * ) + - 24 / - - 27
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-9834
SELECT 0 * 55 DIV + 46 DIV + 1 + - 29
----
-29

skipif mysql # not compatible
query I rowsort label-9834
SELECT 0 * 55 / + 46 / + 1 + - 29
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-9835
SELECT ALL COUNT( DISTINCT - 24 ) * + 54
----
54

skipif mysql # not compatible
query I rowsort label-9835
SELECT ALL COUNT ( DISTINCT - 24 ) * + 54
----
54

query II rowsort
SELECT DISTINCT + 59 AS col1, + 45 AS col1
----
59
45

query I rowsort
SELECT DISTINCT - ( + 19 ) * - 70 AS col1
----
1330

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9838
SELECT - SUM( - + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9838
SELECT - SUM ( - + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9839
SELECT 92 + - 0 + ( - 28 ) * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9839
SELECT 92 + - 0 + ( - 28 ) * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9840
SELECT DISTINCT 3 AS col0, - COUNT( * ) * SUM( ALL - - 10 ) DIV + 8 AS col1
----
3
-1

skipif mysql # not compatible
query II rowsort label-9840
SELECT DISTINCT 3 AS col0, - COUNT ( * ) * SUM ( ALL - - 10 ) / + 8 AS col1
----
3
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9841
SELECT + NULLIF ( 21, COUNT( 89 ) ) col1
----
21

skipif mysql # not compatible
query I rowsort label-9841
SELECT + NULLIF ( 21, COUNT ( 89 ) ) col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9842
SELECT + SUM( DISTINCT + 21 ) col2
----
21

skipif mysql # not compatible
query I rowsort label-9842
SELECT + SUM ( DISTINCT + 21 ) col2
----
21

query I rowsort
SELECT + CASE + 28 WHEN - COALESCE ( 65, + - 58 ) THEN NULL ELSE + 67 END + - 22
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-9844
SELECT + 69 DIV + - 45
----
-1

skipif mysql # not compatible
query I rowsort label-9844
SELECT + 69 / + - 45
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9845
SELECT COUNT( * ) * - ( - CAST( NULL AS SIGNED ) ) + + 23 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9845
SELECT COUNT ( * ) * - ( - CAST ( NULL AS INTEGER ) ) + + 23 AS col0
----
NULL

query I rowsort
SELECT - 78 * + + 32 AS col1
----
-2496

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9847
SELECT DISTINCT - + MAX( DISTINCT + + 87 ) DIV 67 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9847
SELECT DISTINCT - + MAX ( DISTINCT + + 87 ) / 67 AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9848
SELECT ALL CAST( 8 AS SIGNED )
----
8

skipif mysql # not compatible
query I rowsort label-9848
SELECT ALL CAST ( 8 AS INTEGER )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9849
SELECT 79 - + SUM( - ( 57 ) ) + - + COUNT( * )
----
135

skipif mysql # not compatible
query I rowsort label-9849
SELECT 79 - + SUM ( - ( 57 ) ) + - + COUNT ( * )
----
135

query II rowsort
SELECT DISTINCT - ( + - 59 ) AS col2, - 29 * + + 51
----
59
-1479

onlyif mysql # aggregate syntax: 
query I rowsort label-9851
SELECT 94 - - COUNT( * ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-9851
SELECT 94 - - COUNT ( * ) AS col0
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-9852
SELECT ALL - 40 DIV + + 97
----
0

skipif mysql # not compatible
query I rowsort label-9852
SELECT ALL - 40 / + + 97
----
0

query II rowsort
SELECT ALL COALESCE ( + - 28, - 24 * - + 35 * - - 22 - + 4, + + ( - 8 ) ) + - 78 AS col0, + 55 * + 96 * - 27
----
-106
-142560

onlyif mysql # aggregate syntax: 
query I rowsort label-9854
SELECT - 49 * COUNT( * ) + 81
----
32

skipif mysql # not compatible
query I rowsort label-9854
SELECT - 49 * COUNT ( * ) + 81
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9855
SELECT ALL + 77 + - MIN( - 24 )
----
101

skipif mysql # not compatible
query I rowsort label-9855
SELECT ALL + 77 + - MIN ( - 24 )
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-9856
SELECT ALL - COUNT( * ) * 16 AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-9856
SELECT ALL - COUNT ( * ) * 16 AS col1
----
-16

query I rowsort
SELECT DISTINCT + 68 + + 60 * - 32 AS col1
----
-1852

query I rowsort
SELECT ALL 96 + 6 + + - 89 * + 63 * - - 34
----
-190536

query I rowsort
SELECT 94 + - ( - 96 )
----
190

onlyif mysql # DIV for integer division: 
query I rowsort label-9860
SELECT - ( + - 34 ) DIV - 43 - - + 3
----
3

skipif mysql # not compatible
query I rowsort label-9860
SELECT - ( + - 34 ) / - 43 - - + 3
----
3

query I rowsort
SELECT 50 * + ( 12 ) + - 62 * 3 AS col2
----
414

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9862
SELECT ALL SUM( - 1 ) + - - 39 + - CASE + - 56 WHEN + NULLIF ( - - ( - 95 ), - - COUNT( * ) * + - 81 ) / - 33 + - 95 THEN + + 30 + - 13 + + 62 * + COALESCE ( 74, 70 ) ELSE NULL END + + 5 * + CASE 14 - 2 WHEN ( + COUNT( * ) ) + CAST( NULL AS SIGNED ) * + 71 THEN - 40 WHEN 4 * + 73 + - 47 THEN COUNT( * ) WHEN 72 + - 80 * 77 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9862
SELECT ALL SUM ( - 1 ) + - - 39 + - CASE + - 56 WHEN + NULLIF ( - - ( - 95 ), - - COUNT ( * ) * + - 81 ) / - 33 + - 95 THEN + + 30 + - 13 + + 62 * + COALESCE ( 74, 70 ) ELSE NULL END + + 5 * + CASE 14 - 2 WHEN ( + COUNT ( * ) ) + CAST ( NULL AS INTEGER ) * + 71 THEN - 40 WHEN 4 * + 73 + - 47 THEN COUNT ( * ) WHEN 72 + - 80 * 77 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9863
SELECT NULLIF ( 92, 53 * + ( + + 37 ) + + - COUNT( * ) + - + 23 * + COUNT( * ) - + + 98 ) * - + 90 + - SUM( - COALESCE ( - 88, 81 ) )
----
-8368

skipif mysql # not compatible
query I rowsort label-9863
SELECT NULLIF ( 92, 53 * + ( + + 37 ) + + - COUNT ( * ) + - + 23 * + COUNT ( * ) - + + 98 ) * - + 90 + - SUM ( - COALESCE ( - 88, 81 ) )
----
-8368

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9864
SELECT ALL COALESCE ( 72, SUM( ALL - 67 ) * 47 / + COUNT( * ), + 95 * - COUNT( * ) ) + + 86 * - + CASE - COUNT( * ) WHEN - CASE - COUNT( * ) WHEN ( 96 ) + 7 THEN - 99 + - 75 WHEN - ( NULLIF ( - 57, + 83 * 74 + - 17 ) ) * 15 THEN NULL ELSE 99 + COUNT( + 92 ) END THEN NULL WHEN CAST( CASE + 1 WHEN + 27 + 8 * 1 THEN + 83 WHEN COUNT( + 71 ) * SUM( 47 * ( 32 ) ) THEN NULL WHEN COUNT( * ) + + 93 THEN NULL END AS SIGNED ) * - COUNT( * ) THEN 72 * 11 END + - ( 18 + MAX( 20 ) * 33 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9864
SELECT ALL COALESCE ( 72, SUM ( ALL - 67 ) * 47 / + COUNT ( * ), + 95 * - COUNT ( * ) ) + + 86 * - + CASE - COUNT ( * ) WHEN - CASE - COUNT ( * ) WHEN ( 96 ) + 7 THEN - 99 + - 75 WHEN - ( NULLIF ( - 57, + 83 * 74 + - 17 ) ) * 15 THEN NULL ELSE 99 + COUNT ( + 92 ) END THEN NULL WHEN CAST ( CASE + 1 WHEN + 27 + 8 * 1 THEN + 83 WHEN COUNT ( + 71 ) * SUM ( 47 * ( 32 ) ) THEN NULL WHEN COUNT ( * ) + + 93 THEN NULL END AS INTEGER ) * - COUNT ( * ) THEN 72 * 11 END + - ( 18 + MAX ( 20 ) * 33 ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9865
SELECT ALL - CASE + + 37 WHEN - COUNT( * ) + - 23 + 10 / + COUNT( * ) THEN - 43 / + 5 + 15 * - CASE - 74 WHEN + CAST( NULL AS SIGNED ) + - 51 THEN - - 43 END * 37 WHEN COUNT( * ) THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9865
SELECT ALL - CASE + + 37 WHEN - COUNT ( * ) + - 23 + 10 / + COUNT ( * ) THEN - 43 / + 5 + 15 * - CASE - 74 WHEN + CAST ( NULL AS INTEGER ) + - 51 THEN - - 43 END * 37 WHEN COUNT ( * ) THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9866
SELECT ALL 89 * - COUNT( * ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-9866
SELECT ALL 89 * - COUNT ( * ) AS col2
----
-89

query I rowsort
SELECT ALL - 15 - 36 * + 76 AS col1
----
-2751

query I rowsort
SELECT DISTINCT - CASE 19 WHEN + + 70 * - - 53 + 76 THEN - - ( + + 57 ) WHEN - 77 THEN NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9869
SELECT DISTINCT 18 DIV ( 87 )
----
0

skipif mysql # not compatible
query I rowsort label-9869
SELECT DISTINCT 18 / ( 87 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9870
SELECT + MIN( DISTINCT 10 ), + 33 AS col2
----
10
33

skipif mysql # not compatible
query II rowsort label-9870
SELECT + MIN ( DISTINCT 10 ), + 33 AS col2
----
10
33

query I rowsort
SELECT 57 + + - 72
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9872
SELECT ALL + 0 * + COUNT( ALL 46 ) DIV - + 37, + ( + + 33 ) col2
----
0
33

skipif mysql # not compatible
query II rowsort label-9872
SELECT ALL + 0 * + COUNT ( ALL 46 ) / - + 37, + ( + + 33 ) col2
----
0
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9873
SELECT COUNT( - + 84 )
----
1

skipif mysql # not compatible
query I rowsort label-9873
SELECT COUNT ( - + 84 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9874
SELECT 89 * - 8 + + COUNT( * ) * + - 5 + - 89 DIV 76 * + + 63 * - 31 AS col0
----
1236

skipif mysql # not compatible
query I rowsort label-9874
SELECT 89 * - 8 + + COUNT ( * ) * + - 5 + - 89 / 76 * + + 63 * - 31 AS col0
----
1236

query I rowsort
SELECT 76 + + 9 * 80 + - + 71 + - + 16 * - 10 AS col2
----
885

onlyif mysql # aggregate syntax: 
query I rowsort label-9876
SELECT DISTINCT COUNT( * ) * + 41 * 81 + + + COALESCE ( 81, 82 + + 68 + + 77 ) AS col0
----
3402

skipif mysql # not compatible
query I rowsort label-9876
SELECT DISTINCT COUNT ( * ) * + 41 * 81 + + + COALESCE ( 81, 82 + + 68 + + 77 ) AS col0
----
3402

onlyif mysql # DIV for integer division: 
query I rowsort label-9877
SELECT 68 DIV - + 90 * ( + 21 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-9877
SELECT 68 / - + 90 * ( + 21 ) col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9878
SELECT ALL 64 * + COUNT( * )
----
64

skipif mysql # not compatible
query I rowsort label-9878
SELECT ALL 64 * + COUNT ( * )
----
64

query I rowsort
SELECT 45 + 32 AS col0
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-9880
SELECT 37 * - COUNT( * ) col0, - 73 * + COUNT( * ) - + 70 AS col1
----
-37
-143

skipif mysql # not compatible
query II rowsort label-9880
SELECT 37 * - COUNT ( * ) col0, - 73 * + COUNT ( * ) - + 70 AS col1
----
-37
-143

query I rowsort
SELECT 24 + - 26 * ( 57 ) AS col2
----
-1458

onlyif mysql # aggregate syntax: 
query I rowsort label-9882
SELECT + + COUNT( * ) - - + 50 - 56 * - + 82 * - 10 AS col0
----
-45869

skipif mysql # not compatible
query I rowsort label-9882
SELECT + + COUNT ( * ) - - + 50 - 56 * - + 82 * - 10 AS col0
----
-45869

query I rowsort
SELECT - + ( + - 71 )
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9884
SELECT ALL - 32 * - NULLIF ( - - CASE + 44 WHEN + 60 THEN - 50 WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN + + 23 + - - 87 THEN NULL ELSE COUNT( * ) * - 30 + - COALESCE ( + - ( - + 67 ), + 93 ) + - 94 * + MAX( ALL - 16 DIV + 51 ) END, + SUM( ALL CAST( - 42 AS SIGNED ) ) ) AS col1
----
-3104

skipif mysql # not compatible
query I rowsort label-9884
SELECT ALL - 32 * - NULLIF ( - - CASE + 44 WHEN + 60 THEN - 50 WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN + + 23 + - - 87 THEN NULL ELSE COUNT ( * ) * - 30 + - COALESCE ( + - ( - + 67 ), + 93 ) + - 94 * + MAX ( ALL - 16 / + 51 ) END, + SUM ( ALL CAST ( - 42 AS INTEGER ) ) ) AS col1
----
-3104

query I rowsort
SELECT + 6 * - ( - 78 )
----
468

onlyif mysql # aggregate syntax: 
query I rowsort label-9886
SELECT ALL + COUNT( * ) + 81 AS col0
----
82

skipif mysql # not compatible
query I rowsort label-9886
SELECT ALL + COUNT ( * ) + 81 AS col0
----
82

query I rowsort
SELECT + - 35 + 66
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9888
SELECT DISTINCT - COUNT( * ) + + + COUNT( DISTINCT + 99 )
----
0

skipif mysql # not compatible
query I rowsort label-9888
SELECT DISTINCT - COUNT ( * ) + + + COUNT ( DISTINCT + 99 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9889
SELECT - 9 + 93 * - + SUM( ALL 18 )
----
-1683

skipif mysql # not compatible
query I rowsort label-9889
SELECT - 9 + 93 * - + SUM ( ALL 18 )
----
-1683

query I rowsort
SELECT DISTINCT - 9 + + 54 + + 89 + + + 32 AS col1
----
166

query I rowsort
SELECT DISTINCT 32 * 67 AS col1
----
2144

query I rowsort
SELECT COALESCE ( - - 16, 28 * + - 25 * + 86 )
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9893
SELECT - COALESCE ( - 13, + 87 DIV - COUNT( * ), MAX( ALL + 82 ) * - + 73 * - AVG ( 48 ) + 8 ) DIV + 77 + - + 64 + 2 * - 88 + - MAX( + 3 )
----
-243

skipif mysql # not compatible
query I rowsort label-9893
SELECT - COALESCE ( - 13, + 87 / - COUNT ( * ), MAX ( ALL + 82 ) * - + 73 * - AVG ( 48 ) + 8 ) / + 77 + - + 64 + 2 * - 88 + - MAX ( + 3 )
----
-243

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9894
SELECT ALL - 91 DIV 62 * + 59 AS col0, - CAST( NULL AS SIGNED ) col0
----
-59
NULL

skipif mysql # not compatible
query II rowsort label-9894
SELECT ALL - 91 / 62 * + 59 AS col0, - CAST ( NULL AS INTEGER ) col0
----
-59
NULL

query I rowsort
SELECT - 31 + + 63 AS col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9896
SELECT DISTINCT + 23 * - 65 - - NULLIF ( 53, - 64 * - - AVG ( + + 5 ) * 18 - + ( + 10 ) ) + - NULLIF ( 24, - + COUNT( DISTINCT + 77 ) ) AS col0
----
-1466

skipif mysql # not compatible
query I rowsort label-9896
SELECT DISTINCT + 23 * - 65 - - NULLIF ( 53, - 64 * - - AVG ( + + 5 ) * 18 - + ( + 10 ) ) + - NULLIF ( 24, - + COUNT ( DISTINCT + 77 ) ) AS col0
----
-1466

onlyif mysql # aggregate syntax: 
query I rowsort label-9897
SELECT DISTINCT - CASE + COUNT( * ) WHEN ( + + SUM( DISTINCT - + 40 ) ) THEN NULL ELSE + COUNT( ALL 61 ) END * + COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9897
SELECT DISTINCT - CASE + COUNT ( * ) WHEN ( + + SUM ( DISTINCT - + 40 ) ) THEN NULL ELSE + COUNT ( ALL 61 ) END * + COUNT ( * ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9898
SELECT ALL + CAST( + - 3 AS SIGNED ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-9898
SELECT ALL + CAST ( + - 3 AS INTEGER ) AS col0
----
-3

query I rowsort
SELECT - 19 * + + 70 * 79 * + 31 AS col2
----
-3257170

query I rowsort
SELECT DISTINCT + 1 * 20 AS col0
----
20

query I rowsort
SELECT DISTINCT + 74 * 56
----
4144

query II rowsort
SELECT ALL - ( 53 ) * + 30 AS col1, 89 AS col2
----
-1590
89

query I rowsort
SELECT - 89 * + 92 AS col0
----
-8188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9904
SELECT + MIN( + CAST( + 55 AS SIGNED ) ), 92 * + MAX( - 78 ) + + 85 AS col2
----
55
-7091

skipif mysql # not compatible
query II rowsort label-9904
SELECT + MIN ( + CAST ( + 55 AS INTEGER ) ), 92 * + MAX ( - 78 ) + + 85 AS col2
----
55
-7091

query I rowsort
SELECT - - COALESCE ( + 89, 85 + + 39 ) * 14 * + 90 + - 99
----
112041

query I rowsort
SELECT DISTINCT - + 38 * 54 col0
----
-2052

query I rowsort
SELECT ALL + + 18 AS col0
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9908
SELECT CAST( 87 AS SIGNED ) * 51 - 85 + - - 21 * - 65 * ( COUNT( * ) ) + - - COUNT( * ) AS col1
----
2988

skipif mysql # not compatible
query I rowsort label-9908
SELECT CAST ( 87 AS INTEGER ) * 51 - 85 + - - 21 * - 65 * ( COUNT ( * ) ) + - - COUNT ( * ) AS col1
----
2988

query I rowsort
SELECT ALL + + 57 col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9910
SELECT + 97 * + + NULLIF ( - 52, + MIN( + - 55 ) / + 48 ) + - - 4 AS col2
----
-5040

skipif mysql # not compatible
query I rowsort label-9910
SELECT + 97 * + + NULLIF ( - 52, + MIN ( + - 55 ) / + 48 ) + - - 4 AS col2
----
-5040

query I rowsort
SELECT + 8 * + ( + 13 ) * + - 77 - - 77 + - 37 * + - 69 col0
----
-5378

onlyif mysql # DIV for integer division: 
query II rowsort label-9912
SELECT - - 60, - 26 DIV + 28 col2
----
60
0

skipif mysql # not compatible
query II rowsort label-9912
SELECT - - 60, - 26 / + 28 col2
----
60
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9913
SELECT ALL 32, + COUNT( * ) * CAST( 65 AS SIGNED ) AS col0
----
32
65

skipif mysql # not compatible
query II rowsort label-9913
SELECT ALL 32, + COUNT ( * ) * CAST ( 65 AS INTEGER ) AS col0
----
32
65

onlyif mysql # DIV for integer division: 
query I rowsort label-9914
SELECT ALL - 27 DIV 91 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9914
SELECT ALL - 27 / 91 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9915
SELECT - MAX( + CAST( + + 29 AS SIGNED ) ) + 36
----
7

skipif mysql # not compatible
query I rowsort label-9915
SELECT - MAX ( + CAST ( + + 29 AS INTEGER ) ) + 36
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9916
SELECT ALL COUNT( * ) * - 78 + + 33
----
-45

skipif mysql # not compatible
query I rowsort label-9916
SELECT ALL COUNT ( * ) * - 78 + + 33
----
-45

query I rowsort
SELECT ALL - 45 + 33 AS col1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-9918
SELECT DISTINCT + COUNT( * ) * + 1 * - 33 * + 51
----
-1683

skipif mysql # not compatible
query I rowsort label-9918
SELECT DISTINCT + COUNT ( * ) * + 1 * - 33 * + 51
----
-1683

query I rowsort
SELECT ALL + 12 + - 37 + + - 57
----
-82

query I rowsort
SELECT + + 6 + - - 75
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-9921
SELECT DISTINCT + 37 AS col0, COUNT( * ) AS col1
----
37
1

skipif mysql # not compatible
query II rowsort label-9921
SELECT DISTINCT + 37 AS col0, COUNT ( * ) AS col1
----
37
1

query I rowsort
SELECT + - 31 + 62 * - 3 * - 36 * - + 24
----
-160735

query I rowsort
SELECT - ( + 7 )
----
-7

query I rowsort
SELECT ALL 91 + + 8 AS col0
----
99

query I rowsort
SELECT + ( - + 95 ) * - 55
----
5225

onlyif mysql # aggregate syntax: 
query II rowsort label-9926
SELECT ALL COUNT( * ) AS col1, 50
----
1
50

skipif mysql # not compatible
query II rowsort label-9926
SELECT ALL COUNT ( * ) AS col1, 50
----
1
50

onlyif mysql # aggregate syntax: 
query II rowsort label-9927
SELECT - 55 * + 14 * + - COUNT( * ) * + 27, 25 AS col1
----
20790
25

skipif mysql # not compatible
query II rowsort label-9927
SELECT - 55 * + 14 * + - COUNT ( * ) * + 27, 25 AS col1
----
20790
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9928
SELECT ALL SUM( - - 65 ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-9928
SELECT ALL SUM ( - - 65 ) AS col1
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9929
SELECT 78 AS col0, - NULLIF ( + 13, + 8 * - COALESCE ( ( + ( - 1 ) ), + + COUNT( * ) ) * 36 * 35 * - 97 + - 56 + + 43 * + NULLIF ( + - 79, CAST( - NULLIF ( COUNT( * ), + 1 + + CAST( 28 AS SIGNED ) ) AS SIGNED ) * 97 ) + - 6 * 17 - 84 * 43 )
----
78
-13

skipif mysql # not compatible
query II rowsort label-9929
SELECT 78 AS col0, - NULLIF ( + 13, + 8 * - COALESCE ( ( + ( - 1 ) ), + + COUNT ( * ) ) * 36 * 35 * - 97 + - 56 + + 43 * + NULLIF ( + - 79, CAST ( - NULLIF ( COUNT ( * ), + 1 + + CAST ( 28 AS INTEGER ) ) AS INTEGER ) * 97 ) + - 6 * 17 - 84 * 43 )
----
78
-13

query II rowsort
SELECT - 81, 45 AS col1
----
-81
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9931
SELECT ALL ( + + CAST( - COUNT( * ) AS SIGNED ) ) - CASE + NULLIF ( + COUNT( * ), + 1 ) WHEN + 54 THEN NULL WHEN 57 THEN + 8 END * - 4 AS col1, + 4 AS col2
----
NULL
4

skipif mysql # not compatible
query II rowsort label-9931
SELECT ALL ( + + CAST ( - COUNT ( * ) AS INTEGER ) ) - CASE + NULLIF ( + COUNT ( * ), + 1 ) WHEN + 54 THEN NULL WHEN 57 THEN + 8 END * - 4 AS col1, + 4 AS col2
----
NULL
4

query II rowsort
SELECT DISTINCT 84 AS col0, 32 AS col0
----
84
32

query I rowsort
SELECT ALL - 87 * - + ( - 57 ) AS col2
----
-4959

onlyif mysql # aggregate syntax: 
query I rowsort label-9934
SELECT + 19 + + 67 * + + COUNT( * ) * + COUNT( * ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-9934
SELECT + 19 + + 67 * + + COUNT ( * ) * + COUNT ( * ) AS col1
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9935
SELECT - CAST( NULL AS SIGNED ) * - 42 * 97 * COUNT( * ) * - - ( 70 ) + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-9935
SELECT - CAST ( NULL AS INTEGER ) * - 42 * 97 * COUNT ( * ) * - - ( 70 ) + 25
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9936
SELECT ALL 27 DIV + 73 - - 33 - 30 + + - 2 * + - 59 col0
----
121

skipif mysql # not compatible
query I rowsort label-9936
SELECT ALL 27 / + 73 - - 33 - 30 + + - 2 * + - 59 col0
----
121

query I rowsort
SELECT + 83 + - - 4
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9938
SELECT - 65 - COUNT( * ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-9938
SELECT - 65 - COUNT ( * ) AS col1
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-9939
SELECT ALL + 99 AS col0, - COUNT( * )
----
99
-1

skipif mysql # not compatible
query II rowsort label-9939
SELECT ALL + 99 AS col0, - COUNT ( * )
----
99
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9940
SELECT + 53 DIV - COUNT( * ) AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-9940
SELECT + 53 / - COUNT ( * ) AS col0
----
-53

query II rowsort
SELECT DISTINCT + - 24, 12 AS col0
----
-24
12

query I rowsort
SELECT ALL + - 65 * 61 AS col0
----
-3965

query I rowsort
SELECT ALL + 1 * 75
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9944
SELECT ALL - + 52 * - COUNT( * ) * - 57 + - + 89 AS col1
----
-3053

skipif mysql # not compatible
query I rowsort label-9944
SELECT ALL - + 52 * - COUNT ( * ) * - 57 + - + 89 AS col1
----
-3053

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9945
SELECT ALL + COUNT( * ) * + 42 + 32 * - 94 + + CAST( 17 AS SIGNED ) * 40 + 34 DIV + 77 * + 77 + + 2 AS col2
----
-2284

skipif mysql # not compatible
query I rowsort label-9945
SELECT ALL + COUNT ( * ) * + 42 + 32 * - 94 + + CAST ( 17 AS INTEGER ) * 40 + 34 / + 77 * + 77 + + 2 AS col2
----
-2284

onlyif mysql # aggregate syntax: 
query I rowsort label-9946
SELECT ALL - + ( + 47 ) * - + MIN( DISTINCT + 70 ) * + 31 + + 76
----
102066

skipif mysql # not compatible
query I rowsort label-9946
SELECT ALL - + ( + 47 ) * - + MIN ( DISTINCT + 70 ) * + 31 + + 76
----
102066

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9947
SELECT CAST( NULL AS SIGNED ) + + 74 * + + 4 + + 35 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9947
SELECT CAST ( NULL AS INTEGER ) + + 74 * + + 4 + + 35 AS col1
----
NULL

query I rowsort
SELECT - COALESCE ( - + 37, - 55 )
----
37

query I rowsort
SELECT DISTINCT + - 47 + - 43 + + - 81 * 42 - - + COALESCE ( 61, + 49, 36 + ( - - 86 ) + + - 50 )
----
-3431

query I rowsort
SELECT ALL - + 85 + 57
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-9951
SELECT ALL - 41 + - + ( - 20 ) + - COUNT( * ) + - 5
----
-27

skipif mysql # not compatible
query I rowsort label-9951
SELECT ALL - 41 + - + ( - 20 ) + - COUNT ( * ) + - 5
----
-27

query II rowsort
SELECT DISTINCT 56, + 6 AS col1
----
56
6

query I rowsort
SELECT DISTINCT - - 55 + - 79 + ( + + 24 ) AS col2
----
0

query I rowsort
SELECT ALL 55 * - 44 AS col0
----
-2420

query I rowsort
SELECT - 24 + + - 4 * + 36
----
-168

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9956
SELECT ALL - + CAST( NULL AS DECIMAL ) + - + NULLIF ( 19, 19 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9956
SELECT ALL - + CAST ( NULL AS REAL ) + - + NULLIF ( 19, 19 )
----
NULL

query II rowsort
SELECT + 73, 37 AS col2
----
73
37

query I rowsort
SELECT 97 - 27
----
70

query I rowsort
SELECT 48 + - 1 - 35
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9960
SELECT DISTINCT + COALESCE ( - 32, + 78 ) * 2 * + COUNT( * ) AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-9960
SELECT DISTINCT + COALESCE ( - 32, + 78 ) * 2 * + COUNT ( * ) AS col2
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9961
SELECT ALL ( + 27 ) - + 58 + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9961
SELECT ALL ( + 27 ) - + 58 + + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9962
SELECT ALL + 92 * + - 22 AS col2, - COUNT( * ) - - + MAX( 4 )
----
-2024
3

skipif mysql # not compatible
query II rowsort label-9962
SELECT ALL + 92 * + - 22 AS col2, - COUNT ( * ) - - + MAX ( 4 )
----
-2024
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9963
SELECT ( 28 ) * COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-9963
SELECT ( 28 ) * COUNT ( * )
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9964
SELECT CAST( + 18 AS SIGNED ) + + COUNT( * ) / - - CAST( NULL AS SIGNED ) * - + 59 AS col1, 90
----
NULL
90

skipif mysql # not compatible
query II rowsort label-9964
SELECT CAST ( + 18 AS INTEGER ) + + COUNT ( * ) / - - CAST ( NULL AS INTEGER ) * - + 59 AS col1, 90
----
NULL
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9965
SELECT DISTINCT CAST( - COUNT( * ) AS SIGNED ) DIV - 46
----
0

skipif mysql # not compatible
query I rowsort label-9965
SELECT DISTINCT CAST ( - COUNT ( * ) AS INTEGER ) / - 46
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9966
SELECT COUNT( * ) * 6 col2, CAST( NULL AS SIGNED ) AS col0
----
6
NULL

skipif mysql # not compatible
query II rowsort label-9966
SELECT COUNT ( * ) * 6 col2, CAST ( NULL AS INTEGER ) AS col0
----
6
NULL

query I rowsort
SELECT ALL 24 * - ( + 53 )
----
-1272

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9968
SELECT DISTINCT + + CAST( + 65 AS SIGNED ) * MIN( 70 )
----
4550

skipif mysql # not compatible
query I rowsort label-9968
SELECT DISTINCT + + CAST ( + 65 AS INTEGER ) * MIN ( 70 )
----
4550

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9969
SELECT - ( + 52 ) * - COUNT( * ) - + + CASE - + ( + MAX( + + 94 ) ) WHEN - 16 THEN NULL ELSE - - NULLIF ( 29, - - MIN( - 41 ) ) DIV + 80 + - 44 * + - 84 END
----
-3644

skipif mysql # not compatible
query I rowsort label-9969
SELECT - ( + 52 ) * - COUNT ( * ) - + + CASE - + ( + MAX ( + + 94 ) ) WHEN - 16 THEN NULL ELSE - - NULLIF ( 29, - - MIN ( - 41 ) ) / + 80 + - 44 * + - 84 END
----
-3644

query I rowsort
SELECT - 25 * - + 58 - + ( - 96 ) + - + 80 * - - COALESCE ( - NULLIF ( + 32, + 75 ), + 26 )
----
4106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9971
SELECT + COUNT( * ) * - AVG ( ALL - - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9971
SELECT + COUNT ( * ) * - AVG ( ALL - - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9972
SELECT ALL - + MAX( ALL - 17 )
----
17

skipif mysql # not compatible
query I rowsort label-9972
SELECT ALL - + MAX ( ALL - 17 )
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9973
SELECT CASE + - ( - 20 ) WHEN 73 THEN NULL WHEN + 76 THEN COALESCE ( - + 85, + 78 + + CASE CAST( NULL AS DECIMAL ) WHEN - 92 + - - 21 + 27 + + 86 THEN - + 87 ELSE NULL END + - 77 * + - 33 + 87 / ( - 64 * 22 ), COUNT( 89 ) - 66 ) * - CASE 11 - CAST( NULL AS SIGNED ) WHEN 30 / - 67 THEN NULL ELSE - 62 END - - 86 * + 59 END + - 1
----
NULL

skipif mysql # not compatible
query I rowsort label-9973
SELECT CASE + - ( - 20 ) WHEN 73 THEN NULL WHEN + 76 THEN COALESCE ( - + 85, + 78 + + CASE CAST ( NULL AS REAL ) WHEN - 92 + - - 21 + 27 + + 86 THEN - + 87 ELSE NULL END + - 77 * + - 33 + 87 / ( - 64 * 22 ), COUNT ( 89 ) - 66 ) * - CASE 11 - CAST ( NULL AS INTEGER ) WHEN 30 / - 67 THEN NULL ELSE - 62 END - - 86 * + 59 END + - 1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9974
SELECT DISTINCT - 3 + + MAX( - ( - + CAST( 43 AS SIGNED ) ) ) + + 95
----
135

skipif mysql # not compatible
query I rowsort label-9974
SELECT DISTINCT - 3 + + MAX ( - ( - + CAST ( 43 AS INTEGER ) ) ) + + 95
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-9975
SELECT ALL + 45 + COUNT( * ) - 17
----
29

skipif mysql # not compatible
query I rowsort label-9975
SELECT ALL + 45 + COUNT ( * ) - 17
----
29

query I rowsort
SELECT 64 * - COALESCE ( - 80, - - ( - + 1 ) ) - 64
----
5056

onlyif mysql # aggregate syntax: 
query I rowsort label-9977
SELECT DISTINCT + ( SUM( ALL 48 ) ) + - 8
----
40

skipif mysql # not compatible
query I rowsort label-9977
SELECT DISTINCT + ( SUM ( ALL 48 ) ) + - 8
----
40

query I rowsort
SELECT ALL - - ( - 84 ) + - 26
----
-110

query I rowsort
SELECT - - ( + + 40 )
----
40

query I rowsort
SELECT - 13 + - + 28 + 63 AS col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9981
SELECT ALL + COUNT( * ) - 49
----
-48

skipif mysql # not compatible
query I rowsort label-9981
SELECT ALL + COUNT ( * ) - 49
----
-48

query I rowsort
SELECT + 52 + + + 81
----
133

onlyif mysql # aggregate syntax: 
query II rowsort label-9983
SELECT MIN( + - 4 ) AS col2, MAX( + 13 ) col1
----
-4
13

skipif mysql # not compatible
query II rowsort label-9983
SELECT MIN ( + - 4 ) AS col2, MAX ( + 13 ) col1
----
-4
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9984
SELECT + CAST( - 52 AS SIGNED ) AS col2, - COUNT( * ) * - 37 AS col2
----
-52
37

skipif mysql # not compatible
query II rowsort label-9984
SELECT + CAST ( - 52 AS INTEGER ) AS col2, - COUNT ( * ) * - 37 AS col2
----
-52
37

query I rowsort
SELECT - 70 * + 17 + - 4 col2
----
-1194

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9986
SELECT + CAST( NULL AS SIGNED ) / - 13 + - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9986
SELECT + CAST ( NULL AS INTEGER ) / - 13 + - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9987
SELECT ALL NULLIF ( + 22, - CAST( NULL AS SIGNED ) * - 69 ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-9987
SELECT ALL NULLIF ( + 22, - CAST ( NULL AS INTEGER ) * - 69 ) AS col2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9988
SELECT COUNT( * ) - - + 70 AS col0
----
71

skipif mysql # not compatible
query I rowsort label-9988
SELECT COUNT ( * ) - - + 70 AS col0
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9989
SELECT ALL - CAST( NULL AS SIGNED ) - + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-9989
SELECT ALL - CAST ( NULL AS INTEGER ) - + 41
----
NULL

query I rowsort
SELECT 32 + + 66 AS col1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9991
SELECT ALL SUM( - + 54 ) AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-9991
SELECT ALL SUM ( - + 54 ) AS col0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-9992
SELECT ALL - NULLIF ( + 88, - - COUNT( ALL + 40 ) - - 78 ) - - - 53 + - - 3
----
-138

skipif mysql # not compatible
query I rowsort label-9992
SELECT ALL - NULLIF ( + 88, - - COUNT ( ALL + 40 ) - - 78 ) - - - 53 + - - 3
----
-138

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9993
SELECT DISTINCT COUNT( * ) AS col0, - 98 DIV - 34
----
1
2

skipif mysql # not compatible
query II rowsort label-9993
SELECT DISTINCT COUNT ( * ) AS col0, - 98 / - 34
----
1
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9994
SELECT 28 + - - CASE CAST( NULL AS SIGNED ) WHEN CASE + NULLIF ( - - 27, - ( + COALESCE ( + 42, + 75, + 47 + + 89 ) ) ) WHEN + COUNT( * ) * + SUM( ALL - 29 ) THEN + CAST( + 20 AS SIGNED ) END * + COUNT( 36 ) THEN - NULLIF ( SUM( + 2 ), 89 ) * 46 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9994
SELECT 28 + - - CASE CAST ( NULL AS INTEGER ) WHEN CASE + NULLIF ( - - 27, - ( + COALESCE ( + 42, + 75, + 47 + + 89 ) ) ) WHEN + COUNT ( * ) * + SUM ( ALL - 29 ) THEN + CAST ( + 20 AS INTEGER ) END * + COUNT ( 36 ) THEN - NULLIF ( SUM ( + 2 ), 89 ) * 46 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL NULLIF ( 20, - 73 + - + 15 + 20 )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9996
SELECT 38 + COALESCE ( + + COUNT( * ), + + 78 * + 19, + 87 + 28 ) + 51 AS col2
----
90

skipif mysql # not compatible
query I rowsort label-9996
SELECT 38 + COALESCE ( + + COUNT ( * ), + + 78 * + 19, + 87 + 28 ) + 51 AS col2
----
90

query I rowsort
SELECT 54 + + ( - 60 )
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9998
SELECT - - 9 + + CAST( NULL AS SIGNED ) * 7 + 56 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9998
SELECT - - 9 + + CAST ( NULL AS INTEGER ) * 7 + 56 col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9999
SELECT + + COUNT( * ) AS col2, CASE + 0 WHEN + 66 THEN NULL ELSE 37 END
----
1
37

skipif mysql # not compatible
query II rowsort label-9999
SELECT + + COUNT ( * ) AS col2, CASE + 0 WHEN + 66 THEN NULL ELSE 37 END
----
1
37

